diff --git a/Frameworks/BVLinearGradient.xcframework/ios-arm64/libBVLinearGradient.a b/Frameworks/BVLinearGradient.xcframework/ios-arm64/libBVLinearGradient.a index 8d000ba..b460e6a 100644 Binary files a/Frameworks/BVLinearGradient.xcframework/ios-arm64/libBVLinearGradient.a and b/Frameworks/BVLinearGradient.xcframework/ios-arm64/libBVLinearGradient.a differ diff --git a/Frameworks/BVLinearGradient.xcframework/ios-arm64_x86_64-simulator/libBVLinearGradient.a b/Frameworks/BVLinearGradient.xcframework/ios-arm64_x86_64-simulator/libBVLinearGradient.a index 70f5110..aeeb219 100644 Binary files a/Frameworks/BVLinearGradient.xcframework/ios-arm64_x86_64-simulator/libBVLinearGradient.a and b/Frameworks/BVLinearGradient.xcframework/ios-arm64_x86_64-simulator/libBVLinearGradient.a differ diff --git a/Frameworks/DoubleConversion.xcframework/ios-arm64/libDoubleConversion.a b/Frameworks/DoubleConversion.xcframework/ios-arm64/libDoubleConversion.a index 194d565..bdc4b8c 100644 Binary files a/Frameworks/DoubleConversion.xcframework/ios-arm64/libDoubleConversion.a and b/Frameworks/DoubleConversion.xcframework/ios-arm64/libDoubleConversion.a differ diff --git a/Frameworks/DoubleConversion.xcframework/ios-arm64_x86_64-simulator/libDoubleConversion.a b/Frameworks/DoubleConversion.xcframework/ios-arm64_x86_64-simulator/libDoubleConversion.a index e5ddcf5..b703c70 100644 Binary files a/Frameworks/DoubleConversion.xcframework/ios-arm64_x86_64-simulator/libDoubleConversion.a and b/Frameworks/DoubleConversion.xcframework/ios-arm64_x86_64-simulator/libDoubleConversion.a differ diff --git a/Frameworks/DynamicFonts.xcframework/Info.plist b/Frameworks/DynamicFonts.xcframework/Info.plist index 02c73bf..96aff49 100644 --- a/Frameworks/DynamicFonts.xcframework/Info.plist +++ b/Frameworks/DynamicFonts.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libDynamicFonts.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libDynamicFonts.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libDynamicFonts.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libDynamicFonts.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libDynamicFonts.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/DynamicFonts.xcframework/ios-arm64/libDynamicFonts.a b/Frameworks/DynamicFonts.xcframework/ios-arm64/libDynamicFonts.a index 2182ffb..1112cb6 100644 Binary files a/Frameworks/DynamicFonts.xcframework/ios-arm64/libDynamicFonts.a and b/Frameworks/DynamicFonts.xcframework/ios-arm64/libDynamicFonts.a differ diff --git a/Frameworks/DynamicFonts.xcframework/ios-arm64_x86_64-simulator/libDynamicFonts.a b/Frameworks/DynamicFonts.xcframework/ios-arm64_x86_64-simulator/libDynamicFonts.a index e717854..ef1d4ad 100644 Binary files a/Frameworks/DynamicFonts.xcframework/ios-arm64_x86_64-simulator/libDynamicFonts.a and b/Frameworks/DynamicFonts.xcframework/ios-arm64_x86_64-simulator/libDynamicFonts.a differ diff --git a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64/libFBReactNativeSpec.a b/Frameworks/FBReactNativeSpec.xcframework/ios-arm64/libFBReactNativeSpec.a deleted file mode 100644 index 2faba13..0000000 Binary files a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64/libFBReactNativeSpec.a and /dev/null differ diff --git a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64_x86_64-simulator/libFBReactNativeSpec.a b/Frameworks/FBReactNativeSpec.xcframework/ios-arm64_x86_64-simulator/libFBReactNativeSpec.a deleted file mode 100644 index fdac8c0..0000000 Binary files a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64_x86_64-simulator/libFBReactNativeSpec.a and /dev/null differ diff --git a/Frameworks/Newsmemory.xcframework/Info.plist b/Frameworks/Newsmemory.xcframework/Info.plist index 6a0ef53..cb9e4f9 100644 --- a/Frameworks/Newsmemory.xcframework/Info.plist +++ b/Frameworks/Newsmemory.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libNewsmemory.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libNewsmemory.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libNewsmemory.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libNewsmemory.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libNewsmemory.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/Newsmemory.xcframework/ios-arm64/libNewsmemory.a b/Frameworks/Newsmemory.xcframework/ios-arm64/libNewsmemory.a index 57b39a3..e1f7412 100644 Binary files a/Frameworks/Newsmemory.xcframework/ios-arm64/libNewsmemory.a and b/Frameworks/Newsmemory.xcframework/ios-arm64/libNewsmemory.a differ diff --git a/Frameworks/Newsmemory.xcframework/ios-arm64_x86_64-simulator/libNewsmemory.a b/Frameworks/Newsmemory.xcframework/ios-arm64_x86_64-simulator/libNewsmemory.a index dc4036f..ef005a6 100644 Binary files a/Frameworks/Newsmemory.xcframework/ios-arm64_x86_64-simulator/libNewsmemory.a and b/Frameworks/Newsmemory.xcframework/ios-arm64_x86_64-simulator/libNewsmemory.a differ diff --git a/Frameworks/RCT-Folly.xcframework/ios-arm64/libRCT-Folly.a b/Frameworks/RCT-Folly.xcframework/ios-arm64/libRCT-Folly.a index dd2a0c7..75cc688 100644 Binary files a/Frameworks/RCT-Folly.xcframework/ios-arm64/libRCT-Folly.a and b/Frameworks/RCT-Folly.xcframework/ios-arm64/libRCT-Folly.a differ diff --git a/Frameworks/RCT-Folly.xcframework/ios-arm64_x86_64-simulator/libRCT-Folly.a b/Frameworks/RCT-Folly.xcframework/ios-arm64_x86_64-simulator/libRCT-Folly.a index df49e16..6dafb19 100644 Binary files a/Frameworks/RCT-Folly.xcframework/ios-arm64_x86_64-simulator/libRCT-Folly.a and b/Frameworks/RCT-Folly.xcframework/ios-arm64_x86_64-simulator/libRCT-Folly.a differ diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety-umbrella.h b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety-umbrella.h new file mode 100644 index 0000000..86d2b48 --- /dev/null +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety-umbrella.h @@ -0,0 +1,18 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "RCTTypeSafety/RCTConvertHelpers.h" +#import "RCTTypeSafety/RCTTypedModuleConstants.h" + +FOUNDATION_EXPORT double RCTTypeSafetyVersionNumber; +FOUNDATION_EXPORT const unsigned char RCTTypeSafetyVersionString[]; + diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety.modulemap b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety.modulemap new file mode 100644 index 0000000..516cbe8 --- /dev/null +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety.modulemap @@ -0,0 +1,6 @@ +module RCTTypeSafety { + umbrella header "RCTTypeSafety-umbrella.h" + + export * + module * { export * } +} diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTConvertHelpers.h b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTConvertHelpers.h index 0b7144b..49a2aa7 100644 --- a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTConvertHelpers.h +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTConvertHelpers.h @@ -1,16 +1,17 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +#import + #import #import #import -#import namespace facebook { namespace react { @@ -35,22 +36,22 @@ NSArray *RCTConvertVecToArray(const ContainerT &vec) } template -NSArray *RCTConvertOptionalVecToArray(const folly::Optional &vec, id (^convertor)(typename ContainerT::value_type element)) +NSArray *RCTConvertOptionalVecToArray(const std::optional &vec, id (^convertor)(typename ContainerT::value_type element)) { - return vec.hasValue() ? RCTConvertVecToArray(vec.value(), convertor) : nil; + return vec.has_value() ? RCTConvertVecToArray(vec.value(), convertor) : nil; } template -NSArray *RCTConvertOptionalVecToArray(const folly::Optional &vec) +NSArray *RCTConvertOptionalVecToArray(const std::optional &vec) { - return vec.hasValue() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil; + return vec.has_value() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil; } bool RCTBridgingToBool(id value); -folly::Optional RCTBridgingToOptionalBool(id value); +std::optional RCTBridgingToOptionalBool(id value); NSString *RCTBridgingToString(id value); NSString *RCTBridgingToOptionalString(id value); -folly::Optional RCTBridgingToOptionalDouble(id value); +std::optional RCTBridgingToOptionalDouble(id value); double RCTBridgingToDouble(id value); NSArray *RCTBridgingToArray(id value); @@ -64,10 +65,10 @@ facebook::react::LazyVector RCTBridgingToVec(id value, T (^ctor)(id element)) } template -folly::Optional> RCTBridgingToOptionalVec(id value, T (^ctor)(id element)) +std::optional> RCTBridgingToOptionalVec(id value, T (^ctor)(id element)) { if (value == nil || value == (id)kCFNull) { - return folly::none; + return std::nullopt; } else { return RCTBridgingToVec(value, ctor); } diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTTypedModuleConstants.h b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTTypedModuleConstants.h index b3514c0..2bf9037 100644 --- a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTTypedModuleConstants.h +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/Headers/RCTTypeSafety/RCTTypedModuleConstants.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/libRCTTypeSafety.a b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/libRCTTypeSafety.a index 9eb61c7..6d8170f 100644 Binary files a/Frameworks/RCTTypeSafety.xcframework/ios-arm64/libRCTTypeSafety.a and b/Frameworks/RCTTypeSafety.xcframework/ios-arm64/libRCTTypeSafety.a differ diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety-umbrella.h b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety-umbrella.h new file mode 100644 index 0000000..86d2b48 --- /dev/null +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety-umbrella.h @@ -0,0 +1,18 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "RCTTypeSafety/RCTConvertHelpers.h" +#import "RCTTypeSafety/RCTTypedModuleConstants.h" + +FOUNDATION_EXPORT double RCTTypeSafetyVersionNumber; +FOUNDATION_EXPORT const unsigned char RCTTypeSafetyVersionString[]; + diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety.modulemap b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety.modulemap new file mode 100644 index 0000000..516cbe8 --- /dev/null +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety.modulemap @@ -0,0 +1,6 @@ +module RCTTypeSafety { + umbrella header "RCTTypeSafety-umbrella.h" + + export * + module * { export * } +} diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTConvertHelpers.h b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTConvertHelpers.h index 0b7144b..49a2aa7 100644 --- a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTConvertHelpers.h +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTConvertHelpers.h @@ -1,16 +1,17 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ +#import + #import #import #import -#import namespace facebook { namespace react { @@ -35,22 +36,22 @@ NSArray *RCTConvertVecToArray(const ContainerT &vec) } template -NSArray *RCTConvertOptionalVecToArray(const folly::Optional &vec, id (^convertor)(typename ContainerT::value_type element)) +NSArray *RCTConvertOptionalVecToArray(const std::optional &vec, id (^convertor)(typename ContainerT::value_type element)) { - return vec.hasValue() ? RCTConvertVecToArray(vec.value(), convertor) : nil; + return vec.has_value() ? RCTConvertVecToArray(vec.value(), convertor) : nil; } template -NSArray *RCTConvertOptionalVecToArray(const folly::Optional &vec) +NSArray *RCTConvertOptionalVecToArray(const std::optional &vec) { - return vec.hasValue() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil; + return vec.has_value() ? RCTConvertVecToArray(vec.value(), ^id(typename ContainerT::value_type element) { return element; }) : nil; } bool RCTBridgingToBool(id value); -folly::Optional RCTBridgingToOptionalBool(id value); +std::optional RCTBridgingToOptionalBool(id value); NSString *RCTBridgingToString(id value); NSString *RCTBridgingToOptionalString(id value); -folly::Optional RCTBridgingToOptionalDouble(id value); +std::optional RCTBridgingToOptionalDouble(id value); double RCTBridgingToDouble(id value); NSArray *RCTBridgingToArray(id value); @@ -64,10 +65,10 @@ facebook::react::LazyVector RCTBridgingToVec(id value, T (^ctor)(id element)) } template -folly::Optional> RCTBridgingToOptionalVec(id value, T (^ctor)(id element)) +std::optional> RCTBridgingToOptionalVec(id value, T (^ctor)(id element)) { if (value == nil || value == (id)kCFNull) { - return folly::none; + return std::nullopt; } else { return RCTBridgingToVec(value, ctor); } diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTTypedModuleConstants.h b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTTypedModuleConstants.h index b3514c0..2bf9037 100644 --- a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTTypedModuleConstants.h +++ b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTypeSafety/RCTTypedModuleConstants.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/libRCTTypeSafety.a b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/libRCTTypeSafety.a index 1e162f5..5ae4b82 100644 Binary files a/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/libRCTTypeSafety.a and b/Frameworks/RCTTypeSafety.xcframework/ios-arm64_x86_64-simulator/libRCTTypeSafety.a differ diff --git a/Frameworks/RNCAsyncStorage.xcframework/ios-arm64/libRNCAsyncStorage.a b/Frameworks/RNCAsyncStorage.xcframework/ios-arm64/libRNCAsyncStorage.a index aa0e149..7fe5246 100644 Binary files a/Frameworks/RNCAsyncStorage.xcframework/ios-arm64/libRNCAsyncStorage.a and b/Frameworks/RNCAsyncStorage.xcframework/ios-arm64/libRNCAsyncStorage.a differ diff --git a/Frameworks/RNCAsyncStorage.xcframework/ios-arm64_x86_64-simulator/libRNCAsyncStorage.a b/Frameworks/RNCAsyncStorage.xcframework/ios-arm64_x86_64-simulator/libRNCAsyncStorage.a index 7503840..f146903 100644 Binary files a/Frameworks/RNCAsyncStorage.xcframework/ios-arm64_x86_64-simulator/libRNCAsyncStorage.a and b/Frameworks/RNCAsyncStorage.xcframework/ios-arm64_x86_64-simulator/libRNCAsyncStorage.a differ diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilter.h b/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilter.h deleted file mode 100644 index 4b3a291..0000000 --- a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilter.h +++ /dev/null @@ -1,8 +0,0 @@ -#import -#import - -@interface CMIFColorMatrixImageFilter : RCTView - -@property (nonatomic, strong) NSArray *matrix; - -@end diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/libRNColorMatrixImageFilters.a b/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/libRNColorMatrixImageFilters.a deleted file mode 100644 index 1081604..0000000 Binary files a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/libRNColorMatrixImageFilters.a and /dev/null differ diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilter.h b/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilter.h deleted file mode 100644 index 4b3a291..0000000 --- a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilter.h +++ /dev/null @@ -1,8 +0,0 @@ -#import -#import - -@interface CMIFColorMatrixImageFilter : RCTView - -@property (nonatomic, strong) NSArray *matrix; - -@end diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/libRNColorMatrixImageFilters.a b/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/libRNColorMatrixImageFilters.a deleted file mode 100644 index b82af0b..0000000 Binary files a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/libRNColorMatrixImageFilters.a and /dev/null differ diff --git a/Frameworks/RNDateTimePicker.xcframework/Info.plist b/Frameworks/RNDateTimePicker.xcframework/Info.plist index d2a2f90..d4c5b02 100644 --- a/Frameworks/RNDateTimePicker.xcframework/Info.plist +++ b/Frameworks/RNDateTimePicker.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libRNDateTimePicker.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNDateTimePicker.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libRNDateTimePicker.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libRNDateTimePicker.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNDateTimePicker.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/RNDateTimePicker.xcframework/ios-arm64/libRNDateTimePicker.a b/Frameworks/RNDateTimePicker.xcframework/ios-arm64/libRNDateTimePicker.a index c403ad9..df35376 100644 Binary files a/Frameworks/RNDateTimePicker.xcframework/ios-arm64/libRNDateTimePicker.a and b/Frameworks/RNDateTimePicker.xcframework/ios-arm64/libRNDateTimePicker.a differ diff --git a/Frameworks/RNDateTimePicker.xcframework/ios-arm64_x86_64-simulator/libRNDateTimePicker.a b/Frameworks/RNDateTimePicker.xcframework/ios-arm64_x86_64-simulator/libRNDateTimePicker.a index 48c3a6e..0e01112 100644 Binary files a/Frameworks/RNDateTimePicker.xcframework/ios-arm64_x86_64-simulator/libRNDateTimePicker.a and b/Frameworks/RNDateTimePicker.xcframework/ios-arm64_x86_64-simulator/libRNDateTimePicker.a differ diff --git a/Frameworks/RNDefaultPreference.xcframework/Info.plist b/Frameworks/RNDefaultPreference.xcframework/Info.plist index 38f600b..d54d304 100644 --- a/Frameworks/RNDefaultPreference.xcframework/Info.plist +++ b/Frameworks/RNDefaultPreference.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libRNDefaultPreference.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNDefaultPreference.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libRNDefaultPreference.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libRNDefaultPreference.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNDefaultPreference.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/RNDefaultPreference.xcframework/ios-arm64/libRNDefaultPreference.a b/Frameworks/RNDefaultPreference.xcframework/ios-arm64/libRNDefaultPreference.a index 657787a..d96bc72 100644 Binary files a/Frameworks/RNDefaultPreference.xcframework/ios-arm64/libRNDefaultPreference.a and b/Frameworks/RNDefaultPreference.xcframework/ios-arm64/libRNDefaultPreference.a differ diff --git a/Frameworks/RNDefaultPreference.xcframework/ios-arm64_x86_64-simulator/libRNDefaultPreference.a b/Frameworks/RNDefaultPreference.xcframework/ios-arm64_x86_64-simulator/libRNDefaultPreference.a index 434ec0f..2691909 100644 Binary files a/Frameworks/RNDefaultPreference.xcframework/ios-arm64_x86_64-simulator/libRNDefaultPreference.a and b/Frameworks/RNDefaultPreference.xcframework/ios-arm64_x86_64-simulator/libRNDefaultPreference.a differ diff --git a/Frameworks/RNDeviceInfo.xcframework/Info.plist b/Frameworks/RNDeviceInfo.xcframework/Info.plist index f059466..4023da8 100644 --- a/Frameworks/RNDeviceInfo.xcframework/Info.plist +++ b/Frameworks/RNDeviceInfo.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libRNDeviceInfo.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNDeviceInfo.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libRNDeviceInfo.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libRNDeviceInfo.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNDeviceInfo.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/RNDeviceInfo.xcframework/ios-arm64/libRNDeviceInfo.a b/Frameworks/RNDeviceInfo.xcframework/ios-arm64/libRNDeviceInfo.a index f061696..019c632 100644 Binary files a/Frameworks/RNDeviceInfo.xcframework/ios-arm64/libRNDeviceInfo.a and b/Frameworks/RNDeviceInfo.xcframework/ios-arm64/libRNDeviceInfo.a differ diff --git a/Frameworks/RNDeviceInfo.xcframework/ios-arm64_x86_64-simulator/libRNDeviceInfo.a b/Frameworks/RNDeviceInfo.xcframework/ios-arm64_x86_64-simulator/libRNDeviceInfo.a index cc611ec..4dbb19e 100644 Binary files a/Frameworks/RNDeviceInfo.xcframework/ios-arm64_x86_64-simulator/libRNDeviceInfo.a and b/Frameworks/RNDeviceInfo.xcframework/ios-arm64_x86_64-simulator/libRNDeviceInfo.a differ diff --git a/Frameworks/RNFS.xcframework/ios-arm64/libRNFS.a b/Frameworks/RNFS.xcframework/ios-arm64/libRNFS.a index 1373ecc..16a3371 100644 Binary files a/Frameworks/RNFS.xcframework/ios-arm64/libRNFS.a and b/Frameworks/RNFS.xcframework/ios-arm64/libRNFS.a differ diff --git a/Frameworks/RNFS.xcframework/ios-arm64_x86_64-simulator/libRNFS.a b/Frameworks/RNFS.xcframework/ios-arm64_x86_64-simulator/libRNFS.a index 397beb6..8ad1be8 100644 Binary files a/Frameworks/RNFS.xcframework/ios-arm64_x86_64-simulator/libRNFS.a and b/Frameworks/RNFS.xcframework/ios-arm64_x86_64-simulator/libRNFS.a differ diff --git a/Frameworks/RNFastImage.xcframework/Info.plist b/Frameworks/RNFastImage.xcframework/Info.plist index 4dae2c6..70e3f6b 100644 --- a/Frameworks/RNFastImage.xcframework/Info.plist +++ b/Frameworks/RNFastImage.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libRNFastImage.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNFastImage.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libRNFastImage.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libRNFastImage.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNFastImage.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/RNFastImage.xcframework/ios-arm64/libRNFastImage.a b/Frameworks/RNFastImage.xcframework/ios-arm64/libRNFastImage.a index 0ea9f91..da60958 100644 Binary files a/Frameworks/RNFastImage.xcframework/ios-arm64/libRNFastImage.a and b/Frameworks/RNFastImage.xcframework/ios-arm64/libRNFastImage.a differ diff --git a/Frameworks/RNFastImage.xcframework/ios-arm64_x86_64-simulator/libRNFastImage.a b/Frameworks/RNFastImage.xcframework/ios-arm64_x86_64-simulator/libRNFastImage.a index 9969df7..2891e53 100644 Binary files a/Frameworks/RNFastImage.xcframework/ios-arm64_x86_64-simulator/libRNFastImage.a and b/Frameworks/RNFastImage.xcframework/ios-arm64_x86_64-simulator/libRNFastImage.a differ diff --git a/Frameworks/RNGestureHandler.xcframework/ios-arm64/libRNGestureHandler.a b/Frameworks/RNGestureHandler.xcframework/ios-arm64/libRNGestureHandler.a index 50bc49c..d333a93 100644 Binary files a/Frameworks/RNGestureHandler.xcframework/ios-arm64/libRNGestureHandler.a and b/Frameworks/RNGestureHandler.xcframework/ios-arm64/libRNGestureHandler.a differ diff --git a/Frameworks/RNGestureHandler.xcframework/ios-arm64_x86_64-simulator/libRNGestureHandler.a b/Frameworks/RNGestureHandler.xcframework/ios-arm64_x86_64-simulator/libRNGestureHandler.a index 8d1ef77..85bf1c2 100644 Binary files a/Frameworks/RNGestureHandler.xcframework/ios-arm64_x86_64-simulator/libRNGestureHandler.a and b/Frameworks/RNGestureHandler.xcframework/ios-arm64_x86_64-simulator/libRNGestureHandler.a differ diff --git a/Frameworks/RNOpenAppSettings.xcframework/Info.plist b/Frameworks/RNOpenAppSettings.xcframework/Info.plist index 3305c90..d8e2150 100644 --- a/Frameworks/RNOpenAppSettings.xcframework/Info.plist +++ b/Frameworks/RNOpenAppSettings.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libRNOpenAppSettings.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNOpenAppSettings.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libRNOpenAppSettings.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libRNOpenAppSettings.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNOpenAppSettings.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/RNOpenAppSettings.xcframework/ios-arm64/libRNOpenAppSettings.a b/Frameworks/RNOpenAppSettings.xcframework/ios-arm64/libRNOpenAppSettings.a index 6fd3298..01e6b73 100644 Binary files a/Frameworks/RNOpenAppSettings.xcframework/ios-arm64/libRNOpenAppSettings.a and b/Frameworks/RNOpenAppSettings.xcframework/ios-arm64/libRNOpenAppSettings.a differ diff --git a/Frameworks/RNOpenAppSettings.xcframework/ios-arm64_x86_64-simulator/libRNOpenAppSettings.a b/Frameworks/RNOpenAppSettings.xcframework/ios-arm64_x86_64-simulator/libRNOpenAppSettings.a index f8bc663..8bbe185 100644 Binary files a/Frameworks/RNOpenAppSettings.xcframework/ios-arm64_x86_64-simulator/libRNOpenAppSettings.a and b/Frameworks/RNOpenAppSettings.xcframework/ios-arm64_x86_64-simulator/libRNOpenAppSettings.a differ diff --git a/Frameworks/RNReanimated.xcframework/Info.plist b/Frameworks/RNReanimated.xcframework/Info.plist index 5d4b798..a6ff874 100644 --- a/Frameworks/RNReanimated.xcframework/Info.plist +++ b/Frameworks/RNReanimated.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libRNReanimated.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNReanimated.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libRNReanimated.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libRNReanimated.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNReanimated.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/AnimatedSensorModule.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/AnimatedSensorModule.h new file mode 100644 index 0000000..76b652b --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/AnimatedSensorModule.h @@ -0,0 +1,41 @@ +#pragma once + +#include +#include + +#include "PlatformDepMethodsHolder.h" +#include "RuntimeManager.h" + +namespace reanimated { + +using namespace facebook; + +enum SensorType { + ACCELEROMETER = 1, + GYROSCOPE = 2, + GRAVITY = 3, + MAGNETIC_FIELD = 4, + ROTATION_VECTOR = 5, +}; + +class AnimatedSensorModule { + std::unordered_set sensorsIds_; + RegisterSensorFunction platformRegisterSensorFunction_; + UnregisterSensorFunction platformUnregisterSensorFunction_; + RuntimeManager *runtimeManager_; + + public: + AnimatedSensorModule( + const PlatformDepMethodsHolder &platformDepMethodsHolder, + RuntimeManager *runtimeManager); + ~AnimatedSensorModule(); + + jsi::Value registerSensor( + jsi::Runtime &rt, + const jsi::Value &sensorType, + const jsi::Value &interval, + const jsi::Value &sensorDataContainer); + void unregisterSensor(const jsi::Value &sensorId); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ErrorHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ErrorHandler.h new file mode 100644 index 0000000..433c8c3 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ErrorHandler.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include "Scheduler.h" + +namespace reanimated { + +struct ErrorWrapper { + std::string message = ""; + bool handled = true; +}; + +class ErrorHandler { + public: + bool raise() { + if (getError()->handled) { + return false; + } + this->getScheduler()->scheduleOnUI([this]() mutable { this->raiseSpec(); }); + return true; + } + virtual std::shared_ptr getScheduler() = 0; + virtual std::shared_ptr getError() = 0; + virtual void setError(std::string message) = 0; + virtual ~ErrorHandler() {} + + protected: + virtual void raiseSpec() = 0; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/EventHandlerRegistry.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/EventHandlerRegistry.h new file mode 100644 index 0000000..d887a4c --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/EventHandlerRegistry.h @@ -0,0 +1,37 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +class WorkletEventHandler; + +class EventHandlerRegistry { + std::map< + std::string, + std::unordered_map>> + eventMappings; + std::map> eventHandlers; + std::mutex instanceMutex; + + public: + void registerEventHandler(std::shared_ptr eventHandler); + void unregisterEventHandler(unsigned long id); + + void processEvent( + jsi::Runtime &rt, + std::string eventName, + std::string eventPayload); + bool isAnyHandlerWaitingForEvent(std::string eventName); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/FeaturesConfig.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/FeaturesConfig.h new file mode 100644 index 0000000..c07e824 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/FeaturesConfig.h @@ -0,0 +1,19 @@ +#pragma once +#include + +namespace reanimated { + +class FeaturesConfig { + public: + static inline bool isLayoutAnimationEnabled() { + return _isLayoutAnimationEnabled; + } + static inline void setLayoutAnimationEnabled(bool isLayoutAnimationEnabled) { + _isLayoutAnimationEnabled = isLayoutAnimationEnabled; + } + + private: + static bool _isLayoutAnimationEnabled; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/FrozenObject.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/FrozenObject.h new file mode 100644 index 0000000..a5cf9e2 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/FrozenObject.h @@ -0,0 +1,36 @@ +#pragma once + +#include +#include +#include +#include +#include +#include "RuntimeManager.h" +#include "SharedParent.h" +#include "WorkletsCache.h" + +using namespace facebook; + +namespace reanimated { + +class FrozenObject : public jsi::HostObject { + friend WorkletsCache; + friend void extractMutables( + jsi::Runtime &rt, + std::shared_ptr sv, + std::vector> &res); + + private: + std::unordered_map> map; + std::vector namesOrder; + + public: + FrozenObject( + jsi::Runtime &rt, + const jsi::Object &object, + RuntimeManager *runtimeManager); + jsi::Object shallowClone(jsi::Runtime &rt); + bool containsHostFunction = false; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/HostFunctionHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/HostFunctionHandler.h new file mode 100644 index 0000000..9096d42 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/HostFunctionHandler.h @@ -0,0 +1,28 @@ +#pragma once + +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +struct HostFunctionHandler : jsi::HostObject { + std::shared_ptr pureFunction; + std::string functionName; + jsi::Runtime *hostRuntime; + jsi::HostObject a; + + HostFunctionHandler(std::shared_ptr f, jsi::Runtime &rt) { + pureFunction = f; + functionName = f->getProperty(rt, "name").asString(rt).utf8(rt); + hostRuntime = &rt; + } + + std::shared_ptr getPureFunction() { + return pureFunction; + } +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/JSIStoreValueUser.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/JSIStoreValueUser.h new file mode 100644 index 0000000..9424abd --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/JSIStoreValueUser.h @@ -0,0 +1,37 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include "Scheduler.h" + +using namespace facebook; + +namespace reanimated { + +class RuntimeManager; + +struct StaticStoreUser { + std::atomic ctr; + std::unordered_map>> store; + std::recursive_mutex storeMutex; +}; + +class StoreUser { + int identifier = 0; + std::weak_ptr scheduler; + std::shared_ptr storeUserData; + + public: + StoreUser(std::shared_ptr s, const RuntimeManager &runtimeManager); + + std::weak_ptr getWeakRef(jsi::Runtime &rt); + void removeRefs(); + + virtual ~StoreUser(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/LayoutAnimationsProxy.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/LayoutAnimationsProxy.h new file mode 100644 index 0000000..5462669 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/LayoutAnimationsProxy.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include +#include +#include + +namespace reanimated { + +using namespace facebook; + +class MutableValue; + +class LayoutAnimationsProxy { + public: + LayoutAnimationsProxy( + std::function _notifyAboutProgress, + std::function _notifyAboutEnd); + + void + startObserving(int tag, std::shared_ptr sv, jsi::Runtime &rt); + void stopObserving(int tag, bool finished); + void notifyAboutCancellation(int tag); + + private: + std::function notifyAboutProgress; + std::function notifyAboutEnd; + std::map> observedValues; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Logger.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Logger.h new file mode 100644 index 0000000..9c4947e --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Logger.h @@ -0,0 +1,22 @@ +#pragma once + +#include +#include "./LoggerInterface.h" + +namespace reanimated { + +class Logger { + public: + template + static void log(T value) { + if (instance == nullptr) { + throw std::runtime_error("no logger specified"); + } + instance->log(value); + } + + private: + static std::unique_ptr instance; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/LoggerInterface.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/LoggerInterface.h new file mode 100644 index 0000000..1f6004f --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/LoggerInterface.h @@ -0,0 +1,14 @@ +#pragma once + +namespace reanimated { + +class LoggerInterface { + public: + virtual void log(const char *str) = 0; + virtual void log(double d) = 0; + virtual void log(int i) = 0; + virtual void log(bool b) = 0; + virtual ~LoggerInterface() {} +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Mapper.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Mapper.h new file mode 100644 index 0000000..75bb672 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Mapper.h @@ -0,0 +1,51 @@ +#pragma once + +#include +#include +#include +#include +#include "NativeReanimatedModule.h" +#include "ShareableValue.h" + +using namespace facebook; + +namespace reanimated { + +class MapperRegistry; + +struct ViewDescriptor { + int tag; + jsi::Value name; +}; + +class Mapper : public std::enable_shared_from_this { + friend MapperRegistry; + + private: + unsigned long id; + NativeReanimatedModule *module; + std::shared_ptr mapper; + std::vector> inputs; + std::vector> outputs; + bool dirty = true; + std::shared_ptr userUpdater; + UpdaterFunction *updateProps; + int optimalizationLvl = 0; + std::shared_ptr viewDescriptors; + + public: + Mapper( + NativeReanimatedModule *module, + unsigned long id, + std::shared_ptr mapper, + std::vector> inputs, + std::vector> outputs); + void execute(jsi::Runtime &rt); + void enableFastMode( + const int optimalizationLvl, + const std::shared_ptr &updater, + const std::shared_ptr &jsViewDescriptors); + virtual ~Mapper(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MapperRegistry.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MapperRegistry.h new file mode 100644 index 0000000..08ac47c --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MapperRegistry.h @@ -0,0 +1,29 @@ +#pragma once + +#include +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +class Mapper; + +class MapperRegistry { + std::unordered_map> mappers; + std::vector> sortedMappers; + void updateOrder(); + bool updatedSinceLastExecute = false; + + public: + void startMapper(std::shared_ptr mapper); + void stopMapper(unsigned long id); + + void execute(jsi::Runtime &rt); + + bool needRunOnRender(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MutableValue.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MutableValue.h new file mode 100644 index 0000000..b00f4ee --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MutableValue.h @@ -0,0 +1,54 @@ +#pragma once + +#include +#include +#include +#include +#include +#include "JSIStoreValueUser.h" +#include "LayoutAnimationsProxy.h" +#include "MutableValueSetterProxy.h" +#include "RuntimeManager.h" +#include "SharedParent.h" + +using namespace facebook; + +namespace reanimated { + +class MutableValue : public jsi::HostObject, + public std::enable_shared_from_this, + public StoreUser { + private: + friend MutableValueSetterProxy; + friend LayoutAnimationsProxy; + + private: + RuntimeManager *runtimeManager; + std::mutex readWriteMutex; + std::shared_ptr value; + std::weak_ptr animation; + std::map> listeners; + + public: + void setValue(jsi::Runtime &rt, const jsi::Value &newValue); + jsi::Value getValue(jsi::Runtime &rt); + + public: + MutableValue( + jsi::Runtime &rt, + const jsi::Value &initial, + RuntimeManager *runtimeManager, + std::shared_ptr s); + + public: + void + set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value); + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); + std::vector getPropertyNames(jsi::Runtime &rt); + unsigned long addListener( + unsigned long listenerId, + std::function listener); + void removeListener(unsigned long listenerId); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MutableValueSetterProxy.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MutableValueSetterProxy.h new file mode 100644 index 0000000..423f0fc --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/MutableValueSetterProxy.h @@ -0,0 +1,25 @@ +#pragma once + +#include +#include +#include +#include "SharedParent.h" + +using namespace facebook; + +namespace reanimated { + +class MutableValueSetterProxy : public jsi::HostObject { + private: + friend MutableValue; + std::shared_ptr mutableValue; + + public: + explicit MutableValueSetterProxy(std::shared_ptr mutableValue) + : mutableValue(std::move(mutableValue)) {} + void + set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value); + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeMethods.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeMethods.h new file mode 100644 index 0000000..3f0c239 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeMethods.h @@ -0,0 +1,24 @@ +#import +#import +#import +#include +#include +#include + +namespace reanimated { + +std::vector> measure( + int viewTag, + RCTUIManager *uiManager); +void scrollTo( + int scrollViewTag, + RCTUIManager *uiManager, + double x, + double y, + bool animated); +void setGestureState( + id gestureHandlerStateManager, + int handlerTag, + int newState); + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeProxy.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeProxy.h new file mode 100644 index 0000000..18e444a --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeProxy.h @@ -0,0 +1,15 @@ +#if __cplusplus + +#import +#import +#include + +namespace reanimated { + +std::shared_ptr createReanimatedModule( + RCTBridge *bridge, + std::shared_ptr jsInvoker); + +} + +#endif diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeReanimatedModule.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeReanimatedModule.h new file mode 100644 index 0000000..ec06185 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeReanimatedModule.h @@ -0,0 +1,121 @@ +#pragma once + +#include +#include +#include +#include + +#include "AnimatedSensorModule.h" +#include "ErrorHandler.h" +#include "LayoutAnimationsProxy.h" +#include "NativeReanimatedModuleSpec.h" +#include "PlatformDepMethodsHolder.h" +#include "RuntimeDecorator.h" +#include "RuntimeManager.h" +#include "Scheduler.h" +#include "SingleInstanceChecker.h" + +namespace reanimated { + +using FrameCallback = std::function; + +class ShareableValue; +class MutableValue; +class MapperRegistry; +class EventHandlerRegistry; + +class NativeReanimatedModule : public NativeReanimatedModuleSpec, + public RuntimeManager { + friend ShareableValue; + friend MutableValue; + + public: + NativeReanimatedModule( + std::shared_ptr jsInvoker, + std::shared_ptr scheduler, + std::shared_ptr rt, + std::shared_ptr errorHandler, + std::function + propObtainer, + std::shared_ptr layoutAnimationsProxy, + PlatformDepMethodsHolder platformDepMethodsHolder); + + void installCoreFunctions(jsi::Runtime &rt, const jsi::Value &valueSetter) + override; + + jsi::Value makeShareable(jsi::Runtime &rt, const jsi::Value &value) override; + jsi::Value makeMutable(jsi::Runtime &rt, const jsi::Value &value) override; + jsi::Value makeRemote(jsi::Runtime &rt, const jsi::Value &value) override; + + jsi::Value startMapper( + jsi::Runtime &rt, + const jsi::Value &worklet, + const jsi::Value &inputs, + const jsi::Value &outputs, + const jsi::Value &updater, + const jsi::Value &viewDescriptors) override; + void stopMapper(jsi::Runtime &rt, const jsi::Value &mapperId) override; + + jsi::Value registerEventHandler( + jsi::Runtime &rt, + const jsi::Value &eventHash, + const jsi::Value &worklet) override; + void unregisterEventHandler( + jsi::Runtime &rt, + const jsi::Value ®istrationId) override; + + jsi::Value getViewProp( + jsi::Runtime &rt, + const jsi::Value &viewTag, + const jsi::Value &propName, + const jsi::Value &callback) override; + + jsi::Value enableLayoutAnimations(jsi::Runtime &rt, const jsi::Value &config) + override; + jsi::Value configureProps( + jsi::Runtime &rt, + const jsi::Value &uiProps, + const jsi::Value &nativeProps) override; + + void onRender(double timestampMs); + void onEvent(std::string eventName, std::string eventAsString); + bool isAnyHandlerWaitingForEvent(std::string eventName); + + void maybeRequestRender(); + UpdaterFunction updaterFunction; + + jsi::Value registerSensor( + jsi::Runtime &rt, + const jsi::Value &sensorType, + const jsi::Value &interval, + const jsi::Value &sensorDataContainer) override; + void unregisterSensor(jsi::Runtime &rt, const jsi::Value &sensorId) override; + jsi::Value subscribeForKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &keyboardEventContainer) override; + void unsubscribeFromKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &listenerId) override; + + private: + std::shared_ptr mapperRegistry; + std::shared_ptr eventHandlerRegistry; + std::function requestRender; + std::shared_ptr dummyEvent; + std::vector frameCallbacks; + bool renderRequested = false; + std::function + propObtainer; + std::function onRenderCallback; + std::shared_ptr layoutAnimationsProxy; + AnimatedSensorModule animatedSensorModule; + ConfigurePropsFunction configurePropsPlatformFunction; + KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction; + KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction; + +#ifdef DEBUG + SingleInstanceChecker singleInstanceChecker_; +#endif +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeReanimatedModuleSpec.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeReanimatedModuleSpec.h new file mode 100644 index 0000000..30d74cb --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/NativeReanimatedModuleSpec.h @@ -0,0 +1,90 @@ +#pragma once + +#include +#include +#include + +#ifdef ANDROID +#include "TurboModule.h" +#else +#include +#endif + +#include + +using namespace facebook; +using namespace react; + +namespace reanimated { + +class JSI_EXPORT NativeReanimatedModuleSpec : public TurboModule { + protected: + explicit NativeReanimatedModuleSpec(std::shared_ptr jsInvoker); + + public: + virtual void installCoreFunctions( + jsi::Runtime &rt, + const jsi::Value &valueSetter) = 0; + + // SharedValue + virtual jsi::Value makeShareable( + jsi::Runtime &rt, + const jsi::Value &value) = 0; + virtual jsi::Value makeMutable(jsi::Runtime &rt, const jsi::Value &value) = 0; + virtual jsi::Value makeRemote(jsi::Runtime &rt, const jsi::Value &value) = 0; + + // mappers + virtual jsi::Value startMapper( + jsi::Runtime &rt, + const jsi::Value &worklet, + const jsi::Value &inputs, + const jsi::Value &outputs, + const jsi::Value &updater, + const jsi::Value &viewDescriptors) = 0; + virtual void stopMapper(jsi::Runtime &rt, const jsi::Value &mapperId) = 0; + + // events + virtual jsi::Value registerEventHandler( + jsi::Runtime &rt, + const jsi::Value &eventHash, + const jsi::Value &worklet) = 0; + virtual void unregisterEventHandler( + jsi::Runtime &rt, + const jsi::Value ®istrationId) = 0; + + // views + virtual jsi::Value getViewProp( + jsi::Runtime &rt, + const jsi::Value &viewTag, + const jsi::Value &propName, + const jsi::Value &callback) = 0; + + // sensors + virtual jsi::Value registerSensor( + jsi::Runtime &rt, + const jsi::Value &sensorType, + const jsi::Value &interval, + const jsi::Value &sensorDataContainer) = 0; + virtual void unregisterSensor( + jsi::Runtime &rt, + const jsi::Value &sensorId) = 0; + + // keyboard + virtual jsi::Value subscribeForKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &keyboardEventContainer) = 0; + virtual void unsubscribeFromKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &listenerId) = 0; + + // other + virtual jsi::Value enableLayoutAnimations( + jsi::Runtime &rt, + const jsi::Value &config) = 0; + virtual jsi::Value configureProps( + jsi::Runtime &rt, + const jsi::Value &uiProps, + const jsi::Value &nativeProps) = 0; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/PlatformDepMethodsHolder.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/PlatformDepMethodsHolder.h new file mode 100644 index 0000000..d7dcb48 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/PlatformDepMethodsHolder.h @@ -0,0 +1,51 @@ +#pragma once + +#include +#include +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +using UpdaterFunction = std::function; +using RequestRender = + std::function, jsi::Runtime &rt)>; +using ScrollToFunction = std::function; +using MeasuringFunction = + std::function>(int)>; +using TimeProviderFunction = std::function; + +using RegisterSensorFunction = + std::function)>; +using UnregisterSensorFunction = std::function; +using SetGestureStateFunction = std::function; +using ConfigurePropsFunction = std::function; +using KeyboardEventSubscribeFunction = + std::function)>; +using KeyboardEventUnsubscribeFunction = std::function; + +struct PlatformDepMethodsHolder { + RequestRender requestRender; + UpdaterFunction updaterFunction; + ScrollToFunction scrollToFunction; + MeasuringFunction measuringFunction; + TimeProviderFunction getCurrentTime; + RegisterSensorFunction registerSensor; + UnregisterSensorFunction unregisterSensor; + SetGestureStateFunction setGestureStateFunction; + ConfigurePropsFunction configurePropsFunction; + KeyboardEventSubscribeFunction subscribeForKeyboardEvents; + KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEvents; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RCTConvert+REATransition.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RCTConvert+REATransition.h index 17ebf0d..d377dd5 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RCTConvert+REATransition.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RCTConvert+REATransition.h @@ -1,7 +1,6 @@ +#import #import -#import "REATransition.h" - @interface RCTConvert (REATransition) + (REATransitionType)REATransitionType:(id)json; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAllTransitions.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAllTransitions.h index 8ab0480..ca9c76b 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAllTransitions.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAllTransitions.h @@ -1,4 +1,4 @@ -#import "REATransition.h" +#import @interface REATransitionGroup : REATransition @property (nonatomic) BOOL sequence; @@ -8,8 +8,8 @@ @interface REAVisibilityTransition : REATransition @property (nonatomic) REATransitionAnimationType animationType; -- (REATransitionAnimation *)appearView:(UIView*)view inParent:(UIView*)parent; -- (REATransitionAnimation *)disappearView:(UIView*)view fromParent:(UIView*)parent; +- (REATransitionAnimation *)appearView:(UIView *)view inParent:(UIView *)parent; +- (REATransitionAnimation *)disappearView:(UIView *)view fromParent:(UIView *)parent; - (instancetype)initWithConfig:(NSDictionary *)config; @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAlwaysNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAlwaysNode.h index 589251c..3f98691 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAlwaysNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAlwaysNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAAlwaysNode : REANode @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAnimationsManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAnimationsManager.h new file mode 100644 index 0000000..7bfaf64 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAAnimationsManager.h @@ -0,0 +1,32 @@ +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, ViewState) { + Inactive, + Appearing, + Disappearing, + Layout, + ToRemove, +}; + +@interface REAAnimationsManager : NSObject + +- (instancetype)initWithUIManager:(RCTUIManager *)uiManager; +- (void)setRemovingConfigBlock:(void (^)(NSNumber *tag))block; +- (void)setAnimationStartingBlock: + (void (^)(NSNumber *tag, NSString *type, NSDictionary *target, NSNumber *depth))startAnimation; +- (void)notifyAboutProgress:(NSDictionary *)newStyle tag:(NSNumber *)tag; +- (void)notifyAboutEnd:(NSNumber *)tag cancelled:(BOOL)cancelled; +- (void)invalidate; +- (void)onViewRemoval:(UIView *)view before:(REASnapshot *)before; +- (void)onViewCreate:(UIView *)view after:(REASnapshot *)after; +- (void)onViewUpdate:(UIView *)view before:(REASnapshot *)before after:(REASnapshot *)after; +- (void)setToBeRemovedRegistry:(NSMutableDictionary> *> *)toBeRemovedRegister; +- (void)removeLeftovers; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABezierNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABezierNode.h index 0e0a953..d951f22 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABezierNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABezierNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REABezierNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABlockNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABlockNode.h index 54f412c..8c9f429 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABlockNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REABlockNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REABlockNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACallFuncNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACallFuncNode.h index 4502724..ba5eff8 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACallFuncNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACallFuncNode.h @@ -1,7 +1,6 @@ -#import "REANode.h" +#import @interface REACallFuncNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAClockNodes.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAClockNodes.h index fc0fc08..5de608f 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAClockNodes.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAClockNodes.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAClockNode : REANode @property (nonatomic, readonly) BOOL isRunning; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAConcatNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAConcatNode.h index d275eec..75825b8 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAConcatNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAConcatNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REAConcatNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACondNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACondNode.h index 3e4a173..f9acbf1 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACondNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REACondNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REACondNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/READebugNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/READebugNode.h index cd7cd3e..370c346 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/READebugNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/READebugNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface READebugNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventDispatcher.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventDispatcher.h new file mode 100644 index 0000000..fc9f7d9 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventDispatcher.h @@ -0,0 +1,10 @@ +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface REAEventDispatcher : RCTEventDispatcher + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventNode.h index 73027f1..7b849a2 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAEventNode.h @@ -1,5 +1,4 @@ -#import "REANode.h" - +#import #import @interface REAEventNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAFunctionNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAFunctionNode.h index 4b6ef73..1df0188 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAFunctionNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAFunctionNode.h @@ -1,7 +1,6 @@ -#import "REANode.h" +#import @interface REAFunctionNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSErrorHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSErrorHandler.h new file mode 100644 index 0000000..58205a2 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSErrorHandler.h @@ -0,0 +1,21 @@ +#import +#import +#include +#include + +namespace reanimated { + +class REAIOSErrorHandler : public ErrorHandler { + std::shared_ptr scheduler; + void raiseSpec() override; + std::shared_ptr error; + + public: + REAIOSErrorHandler(std::shared_ptr scheduler); + std::shared_ptr getScheduler() override; + std::shared_ptr getError() override; + void setError(std::string message) override; + virtual ~REAIOSErrorHandler() {} +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSLogger.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSLogger.h new file mode 100644 index 0000000..8202343 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSLogger.h @@ -0,0 +1,15 @@ +#import +#include + +namespace reanimated { + +class REAIOSLogger : public LoggerInterface { + public: + void log(const char *str) override; + void log(double d) override; + void log(int i) override; + void log(bool b) override; + virtual ~REAIOSLogger() {} +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSScheduler.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSScheduler.h new file mode 100644 index 0000000..34aea8b --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAIOSScheduler.h @@ -0,0 +1,19 @@ +#import +#import +#import +#include +#include + +namespace reanimated { + +using namespace facebook; +using namespace react; + +class REAIOSScheduler : public Scheduler { + public: + REAIOSScheduler(std::shared_ptr jsInvoker); + void scheduleOnUI(std::function job) override; + virtual ~REAIOSScheduler(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAInitializer.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAInitializer.h new file mode 100644 index 0000000..94c548b --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAInitializer.h @@ -0,0 +1,30 @@ +#import +#import +#import +#import +#import +#import +#import +#import + +#if REACT_NATIVE_MINOR_VERSION >= 64 +#import +#endif + +#if REACT_NATIVE_MINOR_VERSION < 63 +#import +#endif + +NS_ASSUME_NONNULL_BEGIN + +namespace reanimated { + +using namespace facebook; +using namespace react; + +JSIExecutor::RuntimeInstaller REAJSIExecutorRuntimeInstaller( + RCTBridge *bridge, + JSIExecutor::RuntimeInstaller runtimeInstallerToWrap); + +} // namespace reanimated +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAJSCallNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAJSCallNode.h index f13a803..64c04bf 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAJSCallNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAJSCallNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAJSCallNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAKeyboardEventObserver.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAKeyboardEventObserver.h new file mode 100644 index 0000000..37600c0 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAKeyboardEventObserver.h @@ -0,0 +1,17 @@ +#ifndef REAKeyboardEventManager_h +#define REAKeyboardEventManager_h + +#import +#import + +typedef void (^KeyboardEventListenerBlock)(int keyboardState, int height); + +@interface REAKeyboardEventObserver : NSObject + +- (instancetype)init; +- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener; +- (void)unsubscribeFromKeyboardEvents:(int)listenerId; + +@end + +#endif /* REAKeyboardEventManager_h */ diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAModule.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAModule.h index ed60267..d58eda7 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAModule.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAModule.h @@ -5,8 +5,10 @@ #import #import -#import "REAValueNode.h" +#import @interface REAModule : RCTEventEmitter +@property (nonatomic, readonly) REANodesManager *nodesManager; + @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANode.h index 0874400..664b883 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANode.h @@ -3,7 +3,7 @@ @class REANodesManager; -typedef NSNumber* REANodeID; +typedef NSNumber *REANodeID; @protocol REAFinalNode @@ -12,15 +12,14 @@ typedef NSNumber* REANodeID; @end @interface REAUpdateContext : NSObject -@property (nonatomic) NSString* callID; +@property (nonatomic) NSString *callID; @end @interface REANode : NSObject + (void)runPropUpdates:(nonnull REAUpdateContext *)context; -- (instancetype)initWithID:(REANodeID)nodeID - config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; +- (instancetype)initWithID:(REANodeID)nodeID config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; @property (nonatomic, weak, nullable) REANodesManager *nodesManager; @property (nonatomic, nullable) REAUpdateContext *updateContext; @@ -36,4 +35,6 @@ typedef NSNumber* REANodeID; - (void)dangerouslyRescheduleEvaluate; - (void)forceUpdateMemoizedValue:(id)value; +- (void)onDrop; + @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANodesManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANodesManager.h index 9597166..9679a52 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANodesManager.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REANodesManager.h @@ -1,6 +1,5 @@ #import - -#import "REANode.h" +#import #import #import @@ -8,6 +7,7 @@ typedef void (^REAOnAnimationCallback)(CADisplayLink *displayLink); typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); +typedef void (^REAEventHandler)(NSString *eventName, id event); @interface REANodesManager : NSObject @@ -18,10 +18,9 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); @property (nonatomic, nullable) NSSet *uiProps; @property (nonatomic, nullable) NSSet *nativeProps; -- (nonnull instancetype)initWithModule:(REAModule *)reanimatedModule - uiManager:(nonnull RCTUIManager *)uiManager; +- (nonnull instancetype)initWithModule:(REAModule *)reanimatedModule uiManager:(nonnull RCTUIManager *)uiManager; -- (REANode* _Nullable)findNodeByID:(nonnull REANodeID)nodeID; +- (REANode *_Nullable)findNodeByID:(nonnull REANodeID)nodeID; - (void)invalidate; @@ -31,31 +30,28 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); - (void)postOnAnimation:(REAOnAnimationCallback)clb; - (void)postRunUpdatesAfterAnimation; +- (void)registerEventHandler:(REAEventHandler)eventHandler; - (void)enqueueUpdateViewOnNativeThread:(nonnull NSNumber *)reactTag - viewName:(NSString *) viewName - nativeProps:(NSMutableDictionary *)nativeProps; -- (void)getValue:(REANodeID)nodeID - callback:(RCTResponseSenderBlock)callback; + viewName:(NSString *)viewName + nativeProps:(NSMutableDictionary *)nativeProps + trySynchronously:(BOOL)trySync; +- (void)getValue:(REANodeID)nodeID callback:(RCTResponseSenderBlock)callback; // graph -- (void)createNode:(nonnull REANodeID)tag - config:(NSDictionary *__nonnull)config; +- (void)createNode:(nonnull REANodeID)tag config:(NSDictionary *__nonnull)config; - (void)dropNode:(nonnull REANodeID)tag; -- (void)connectNodes:(nonnull REANodeID)parentID - childID:(nonnull REANodeID)childID; +- (void)connectNodes:(nonnull REANodeID)parentID childID:(nonnull REANodeID)childID; -- (void)disconnectNodes:(nonnull REANodeID)parentID - childID:(nonnull REANodeID)childID; +- (void)disconnectNodes:(nonnull REANodeID)parentID childID:(nonnull REANodeID)childID; - (void)connectNodeToView:(nonnull REANodeID)nodeID viewTag:(nonnull NSNumber *)viewTag viewName:(nonnull NSString *)viewName; -- (void)disconnectNodeFromView:(nonnull REANodeID)nodeID - viewTag:(nonnull NSNumber *)viewTag; +- (void)disconnectNodeFromView:(nonnull REANodeID)nodeID viewTag:(nonnull NSNumber *)viewTag; - (void)attachEvent:(nonnull NSNumber *)viewTag eventName:(nonnull NSString *)eventName @@ -67,8 +63,14 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); // configuration -- (void)configureProps:(nonnull NSSet *)nativeProps - uiProps:(nonnull NSSet *)uiProps; +- (void)configureUiProps:(nonnull NSSet *)uiPropsSet + andNativeProps:(nonnull NSSet *)nativePropsSet; + +- (void)updateProps:(nonnull NSDictionary *)props + ofViewWithTag:(nonnull NSNumber *)viewTag + withName:(nonnull NSString *)viewName; + +- (NSString *)obtainProp:(nonnull NSNumber *)viewTag propName:(nonnull NSString *)propName; // events @@ -76,4 +78,6 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); - (void)setValueForNodeID:(nonnull NSNumber *)nodeID value:(nonnull NSNumber *)newValue; +- (void)maybeFlushUpdateBuffer; + @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAOperatorNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAOperatorNode.h index 50c1689..e720458 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAOperatorNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAOperatorNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAOperatorNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAParamNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAParamNode.h index b5e97e8..f0b4cfd 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAParamNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAParamNode.h @@ -1,12 +1,10 @@ -#import "REAValueNode.h" +#import @interface REAParamNode : REAValueNode -- (void)beginContext:(NSNumber*) ref - prevCallID:(NSNumber*) prevCallID; +- (void)beginContext:(NSNumber *)ref prevCallID:(NSNumber *)prevCallID; - (void)endContext; - (void)start; - (void)stop; - (BOOL)isRunning; @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAPropsNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAPropsNode.h index 05171f1..caab8c1 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAPropsNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAPropsNode.h @@ -1,11 +1,9 @@ -#import "REANode.h" +#import @interface REAPropsNode : REANode -- (void)connectToView:(NSNumber *_Nonnull)viewTag - viewName:(NSString *_Nonnull)viewName; +- (void)connectToView:(NSNumber *_Nonnull)viewTag viewName:(NSString *_Nonnull)viewName; - (void)disconnectFromView:(NSNumber *_Nonnull)viewTag; @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASetNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASetNode.h index 5bc6a38..6ec8770 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASetNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASetNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REASetNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASnapshot.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASnapshot.h new file mode 100644 index 0000000..9f61668 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REASnapshot.h @@ -0,0 +1,13 @@ +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface REASnapshot : NSObject + +@property NSMutableDictionary *values; + +- (instancetype)init:(UIView *)view; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAStyleNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAStyleNode.h index 58bc7ba..a1b737c 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAStyleNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAStyleNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REAStyleNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransformNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransformNode.h index 51ae259..fb84d51 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransformNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransformNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REATransformNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransition.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransition.h index 6d4d1f0..529fbd1 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransition.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransition.h @@ -1,9 +1,8 @@ -#import #import +#import +#import #import - -#import "REATransitionAnimation.h" -#import "REATransitionValues.h" +#import // TODO: fix below implementation #define IS_LAYOUT_ONLY(view) ([view isKindOfClass:[RCTView class]] && view.backgroundColor == nil) @@ -53,12 +52,13 @@ typedef NS_ENUM(NSInteger, REATransitionPropagationType) { - (void)playInRoot:(UIView *)root; - (REATransitionValues *)findStartValuesForKey:(NSNumber *)key; - (REATransitionValues *)findEndValuesForKey:(NSNumber *)key; -- (REATransitionAnimation *)animationForTransitioning:(REATransitionValues*)startValues - endValues:(REATransitionValues*)endValues - forRoot:(UIView *)root; -- (NSArray *)animationsForTransitioning:(NSMutableDictionary *)startValues - endValues:(NSMutableDictionary *)endValues - forRoot:(UIView *)root; +- (REATransitionAnimation *)animationForTransitioning:(REATransitionValues *)startValues + endValues:(REATransitionValues *)endValues + forRoot:(UIView *)root; +- (NSArray *) + animationsForTransitioning:(NSMutableDictionary *)startValues + endValues:(NSMutableDictionary *)endValues + forRoot:(UIView *)root; + (REATransition *)inflate:(NSDictionary *)config; @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransitionAnimation.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransitionAnimation.h index b9efb93..896a008 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransitionAnimation.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REATransitionAnimation.h @@ -8,7 +8,7 @@ + (REATransitionAnimation *)transitionWithAnimation:(CAAnimation *)animation layer:(CALayer *)layer - andKeyPath:(NSString*)keyPath; + andKeyPath:(NSString *)keyPath; - (void)play; - (void)delayBy:(CFTimeInterval)delay; - (CFTimeInterval)finishTime; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUIManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUIManager.h new file mode 100644 index 0000000..1bf3cfd --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUIManager.h @@ -0,0 +1,16 @@ +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface REAUIManager : RCTUIManager +@property BOOL blockSetter; +- (void)setBridge:(RCTBridge *)bridge; +- (void)setUp:(REAAnimationsManager *)animationsManager; +- (void)unregisterView:(id)view; +@property (nonatomic, copy) void (^flushUiOperations)(); +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUtils.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUtils.h index 1eb8ad7..05a78f2 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUtils.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAUtils.h @@ -1,5 +1,7 @@ #import -#define REA_LOG_ERROR_IF_NIL(value, errorMsg) ({\ - if (value == nil) RCTLogError(errorMsg);\ -}) +#define REA_LOG_ERROR_IF_NIL(value, errorMsg) \ + ({ \ + if (value == nil) \ + RCTLogError(errorMsg); \ + }) diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAValueNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAValueNode.h index 8de5023..2a33d4d 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAValueNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/REAValueNode.h @@ -1,6 +1,4 @@ -#import - -#import "REANode.h" +#import @class REAValueNode; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RNGestureHandlerStateManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RNGestureHandlerStateManager.h new file mode 100644 index 0000000..e927e96 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RNGestureHandlerStateManager.h @@ -0,0 +1,5 @@ +@protocol RNGestureHandlerStateManager + +- (void)setGestureState:(int)state forHandler:(int)handlerTag; + +@end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedHiddenHeaders.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedHiddenHeaders.h new file mode 100644 index 0000000..c1a0545 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedHiddenHeaders.h @@ -0,0 +1,11 @@ +#pragma once + +#ifdef ANDROID +#include "Logger.h" +#include "LoggerInterface.h" +#include "SpeedChecker.h" +#else +#include "Common/cpp/hidden_headers/Logger.h" +#include "Common/cpp/hidden_headers/LoggerInterface.h" +#include "Common/cpp/hidden_headers/SpeedChecker.h" +#endif diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensor.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensor.h new file mode 100644 index 0000000..02c1fdb --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensor.h @@ -0,0 +1,25 @@ +#if __has_include() +#import +#endif +#import + +@interface ReanimatedSensor : NSObject { + ReanimatedSensorType _sensorType; + double _interval; + double _lastTimestamp; +#if !TARGET_OS_TV + CMMotionManager *_motionManager; +#endif + void (^_setter)(double[]); +} + +- (instancetype)init:(ReanimatedSensorType)sensorType interval:(int)interval setter:(void (^)(double[]))setter; +- (bool)initialize; +- (bool)initializeGyroscope; +- (bool)initializeAccelerometer; +- (bool)initializeGravity; +- (bool)initializeMagnetometer; +- (bool)initializeOrientation; +- (void)cancel; + +@end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensorContainer.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensorContainer.h new file mode 100644 index 0000000..ac5848e --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensorContainer.h @@ -0,0 +1,12 @@ +#import + +@interface ReanimatedSensorContainer : NSObject { + NSNumber *_nextSensorId; + NSMutableDictionary *_sensors; +} + +- (instancetype)init; +- (int)registerSensor:(ReanimatedSensorType)sensorType interval:(int)interval setter:(void (^)(double[]))setter; +- (void)unregisterSensor:(int)sensorId; + +@end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensorType.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensorType.h new file mode 100644 index 0000000..7ff34d7 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedSensorType.h @@ -0,0 +1,7 @@ +typedef NS_ENUM(NSUInteger, ReanimatedSensorType) { + ACCELEROMETER = 1, + GYROSCOPE = 2, + GRAVITY = 3, + MAGNETIC_FIELD = 4, + ROTATION_VECTOR = 5, +}; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedVersion.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedVersion.h new file mode 100644 index 0000000..895669d --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ReanimatedVersion.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +using namespace facebook; + +namespace reanimated { + +jsi::String getReanimatedVersionString(jsi::Runtime &rt); + +}; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RemoteObject.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RemoteObject.h new file mode 100644 index 0000000..46a437d --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RemoteObject.h @@ -0,0 +1,35 @@ +#pragma once + +#include +#include + +#include "FrozenObject.h" +#include "JSIStoreValueUser.h" +#include "SharedParent.h" + +using namespace facebook; + +namespace reanimated { + +class RemoteObject : public jsi::HostObject, public StoreUser { + private: + std::weak_ptr backing; + std::unique_ptr initializer; + + public: + void maybeInitializeOnWorkletRuntime(jsi::Runtime &rt); + RemoteObject( + jsi::Runtime &rt, + const jsi::Object &object, + RuntimeManager *runtimeManager, + std::shared_ptr s) + : StoreUser(s, *runtimeManager), + initializer( + std::make_unique(rt, object, runtimeManager)) {} + void + set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value); + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); + std::vector getPropertyNames(jsi::Runtime &rt); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RuntimeDecorator.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RuntimeDecorator.h new file mode 100644 index 0000000..f387197 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RuntimeDecorator.h @@ -0,0 +1,89 @@ +#pragma once + +#include +#include +#include +#include +#include +#include "LayoutAnimationsProxy.h" +#include "PlatformDepMethodsHolder.h" + +using namespace facebook; + +namespace reanimated { + +using RequestFrameFunction = std::function)>; + +enum RuntimeType { + /** + Represents any runtime that supports the concept of workletization + */ + Worklet, + /** + Represents the Reanimated UI worklet runtime specifically + */ + UI +}; +typedef jsi::Runtime *RuntimePointer; + +class RuntimeDecorator { + public: + static void decorateRuntime(jsi::Runtime &rt, const std::string &label); + static void decorateUIRuntime( + jsi::Runtime &rt, + const UpdaterFunction updater, + const RequestFrameFunction requestFrame, + const ScrollToFunction scrollTo, + const MeasuringFunction measure, + const TimeProviderFunction getCurrentTime, + const RegisterSensorFunction registerSensor, + const UnregisterSensorFunction unregisterSensor, + const SetGestureStateFunction setGestureState, + std::shared_ptr layoutAnimationsProxy); + + /** + Returns true if the given Runtime is the Reanimated UI-Thread Runtime. + */ + inline static bool isUIRuntime(jsi::Runtime &rt); + /** + Returns true if the given Runtime is a Runtime that supports the concept of + Workletization. (REA, Vision, ...) + */ + inline static bool isWorkletRuntime(jsi::Runtime &rt); + /** + Returns true if the given Runtime is the default React-JS Runtime. + */ + inline static bool isReactRuntime(jsi::Runtime &rt); + /** + Register the given Runtime. This function is required for every + RuntimeManager, otherwise future runtime checks will fail. + */ + static void registerRuntime(jsi::Runtime *runtime, RuntimeType runtimeType); + + private: + static std::unordered_map &runtimeRegistry(); +}; + +inline bool RuntimeDecorator::isUIRuntime(jsi::Runtime &rt) { + auto iterator = runtimeRegistry().find(&rt); + if (iterator == runtimeRegistry().end()) + return false; + return iterator->second == RuntimeType::UI; +} + +inline bool RuntimeDecorator::isWorkletRuntime(jsi::Runtime &rt) { + auto iterator = runtimeRegistry().find(&rt); + if (iterator == runtimeRegistry().end()) + return false; + auto type = iterator->second; + return type == RuntimeType::UI || type == RuntimeType::Worklet; +} + +inline bool RuntimeDecorator::isReactRuntime(jsi::Runtime &rt) { + auto iterator = runtimeRegistry().find(&rt); + if (iterator == runtimeRegistry().end()) + return true; + return false; +} + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RuntimeManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RuntimeManager.h new file mode 100644 index 0000000..b0cf203 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/RuntimeManager.h @@ -0,0 +1,75 @@ +#pragma once + +#include +#include +#include "ErrorHandler.h" +#include "JSIStoreValueUser.h" +#include "RuntimeDecorator.h" +#include "Scheduler.h" +#include "ShareableValue.h" +#include "WorkletsCache.h" + +namespace reanimated { + +using namespace facebook; + +/** + A class that manages a jsi::Runtime apart from the React-JS runtime. + */ +class RuntimeManager { + public: + RuntimeManager( + std::shared_ptr runtime, + std::shared_ptr errorHandler, + std::shared_ptr scheduler, + RuntimeType runtimeType = RuntimeType::Worklet) + : runtime(runtime), + errorHandler(errorHandler), + scheduler(scheduler), + workletsCache(std::make_unique()), + storeUserData(std::make_shared()) { + RuntimeDecorator::registerRuntime(this->runtime.get(), runtimeType); + } + + virtual ~RuntimeManager() { + clearStore(); + } + + public: + /** + Holds the jsi::Function worklet that is responsible for updating values in + JS. Can be null. + */ + std::shared_ptr valueSetter; + /** + Holds the jsi::Runtime this RuntimeManager is managing. + */ + std::shared_ptr runtime; + /** + Holds the error handler that will be invoked when any kind of error occurs. + */ + std::shared_ptr errorHandler; + /** + Holds the Scheduler that is responsible for scheduling work on the UI- or + React-JS Thread. + */ + std::shared_ptr scheduler; + /** + Holds a list of adapted Worklets which are cached to avoid unneccessary + recreation. + */ + std::unique_ptr workletsCache; + /** + Holds the JSI-Value Store where JSI::Values are cached on a + per-RuntimeManager basis. + */ + std::shared_ptr storeUserData; + + private: + void clearStore() { + const std::lock_guard lock(storeUserData->storeMutex); + storeUserData->store.clear(); + } +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Scheduler.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Scheduler.h new file mode 100644 index 0000000..295dbeb --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/Scheduler.h @@ -0,0 +1,89 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace reanimated { + +// +// Copyright (c) 2013 Juan Palacios juan.palacios.puyana@gmail.com +// Subject to the BSD 2-Clause License +// - see < http://opensource.org/licenses/BSD-2-Clause> +// +template +class Queue { + public: + T pop() { + std::unique_lock mlock(mutex_); + while (queue_.empty()) { + cond_.wait(mlock); + } + auto item = queue_.front(); + queue_.pop(); + return item; + } + + void pop(T &item) { + std::unique_lock mlock(mutex_); + while (queue_.empty()) { + cond_.wait(mlock); + } + item = queue_.front(); + queue_.pop(); + } + + void push(const T &item) { + std::unique_lock mlock(mutex_); + queue_.push(item); + mlock.unlock(); + cond_.notify_one(); + } + + void push(T &&item) { + std::unique_lock mlock(mutex_); + queue_.push(std::move(item)); + mlock.unlock(); + cond_.notify_one(); + } + + size_t getSize() { + std::unique_lock mlock(mutex_); + const size_t res = queue_.size(); + mlock.unlock(); + cond_.notify_one(); + return res; + } + + private: + std::queue queue_; + std::mutex mutex_; + std::condition_variable cond_; +}; + +class RuntimeManager; + +class Scheduler { + public: + Scheduler(); + void scheduleOnJS(std::function job); + void setJSCallInvoker( + std::shared_ptr jsCallInvoker); + void setRuntimeManager(std::shared_ptr runtimeManager); + virtual void scheduleOnUI(std::function job); + virtual void triggerUI(); + virtual ~Scheduler(); + + protected: + std::atomic scheduledOnUI{}; + Queue> uiJobs; + std::shared_ptr jsCallInvoker_; + std::weak_ptr runtimeManager; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ShareableValue.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ShareableValue.h new file mode 100644 index 0000000..9d54763 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ShareableValue.h @@ -0,0 +1,63 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include "AnimatedSensorModule.h" +#include "HostFunctionHandler.h" +#include "JSIStoreValueUser.h" +#include "LayoutAnimationsProxy.h" +#include "RuntimeManager.h" +#include "Scheduler.h" +#include "SharedParent.h" +#include "ValueWrapper.h" +#include "WorkletsCache.h" + +using namespace facebook; + +namespace reanimated { + +class ShareableValue : public std::enable_shared_from_this, + public StoreUser { + friend WorkletsCache; + friend FrozenObject; + friend LayoutAnimationsProxy; + friend NativeReanimatedModule; + friend AnimatedSensorModule; + friend void extractMutables( + jsi::Runtime &rt, + std::shared_ptr sv, + std::vector> &res); + + private: + RuntimeManager *runtimeManager; + std::unique_ptr valueContainer; + std::unique_ptr hostValue; + std::weak_ptr remoteValue; + bool containsHostFunction = false; + + ShareableValue(RuntimeManager *runtimeManager, std::shared_ptr s) + : StoreUser(s, *runtimeManager), runtimeManager(runtimeManager) {} + + jsi::Value toJSValue(jsi::Runtime &rt); + jsi::Object createHost( + jsi::Runtime &rt, + std::shared_ptr host); + void adapt(jsi::Runtime &rt, const jsi::Value &value, ValueType objectType); + void adaptCache(jsi::Runtime &rt, const jsi::Value &value); + std::string demangleExceptionName(std::string toDemangle); + + public: + ValueType type = ValueType::UndefinedType; + static std::shared_ptr adapt( + jsi::Runtime &rt, + const jsi::Value &value, + RuntimeManager *runtimeManager, + ValueType objectType = ValueType::UndefinedType); + jsi::Value getValue(jsi::Runtime &rt); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SharedParent.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SharedParent.h new file mode 100644 index 0000000..88a28d8 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SharedParent.h @@ -0,0 +1,27 @@ +#pragma once + +namespace reanimated { + +enum class ValueType { + UndefinedType, + NullType, + BoolType, + NumberType, + StringType, + RemoteObjectType, // object that can be instantiated on host side and modified + // on the remote (worklet) side + MutableValueType, // object with 'value' property that can be updated and read + // from any thread + HostFunctionType, // function that will be executed asynchronously on the host + // runtime + WorkletFunctionType, // function that gets run on the UI thread + FrozenObjectType, // frozen object, can only be set and never modified + FrozenArrayType, // frozen array, can only be set and never modified +}; + +class ShareableValue; +class MutableValue; +class RemoteObject; +class NativeReanimatedModule; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SingleInstanceChecker.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SingleInstanceChecker.h new file mode 100644 index 0000000..af3e0c5 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SingleInstanceChecker.h @@ -0,0 +1,66 @@ +#pragma once + +#ifdef DEBUG + +#include + +#include +#include + +#ifdef ANDROID +#include +#endif + +namespace reanimated { + +// This is a class that counts how many instances of a different class there +// are. It is meant only to be used with classes that should only have one +// instance. + +template +class SingleInstanceChecker { + public: + SingleInstanceChecker(); + ~SingleInstanceChecker(); + + private: + void assertWithMessage(bool condition, std::string message) { + if (!condition) { +#ifdef ANDROID + __android_log_print( + ANDROID_LOG_WARN, "Reanimated", "%s", message.c_str()); +#else + std::cerr << "[Reanimated] " << message << std::endl; +#endif + } + } + + // A static field will exist separately for every class template. + // This has to be inline for automatic initialization. + inline static int instanceCount_; +}; + +template +SingleInstanceChecker::SingleInstanceChecker() { + int status = 0; + std::string className = + __cxxabiv1::__cxa_demangle(typeid(T).name(), nullptr, nullptr, &status); + + // Only one instance should exist, but it is possible for two instances + // to co-exist during a reload. + assertWithMessage( + instanceCount_ <= 1, + "More than one instance of " + className + + " present. This may indicate a memory leak due to a retain cycle."); + + instanceCount_++; +} + +template +SingleInstanceChecker::~SingleInstanceChecker() { + instanceCount_--; +} + +} // namespace reanimated + +#endif // DEBUG diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SpeedChecker.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SpeedChecker.h new file mode 100644 index 0000000..9b06830 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/SpeedChecker.h @@ -0,0 +1,29 @@ +#pragma once + +#define CHECK_SPEED 1 + +#include +#include +#include +#include +#include "./Logger.h" + +namespace reanimated { + +class SpeedChecker { + public: + static void checkSpeed(std::string tag, std::function fun) { +#if CHECK_SPEED + auto start = std::chrono::system_clock::now(); +#endif + fun(); +#if CHECK_SPEED + auto end = std::chrono::system_clock::now(); + std::chrono::duration elapsed_seconds = end - start; + tag += " " + std::to_string(elapsed_seconds.count()) + "s"; + Logger::log(tag.c_str()); +#endif + } +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/UIResponder+Reanimated.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/UIResponder+Reanimated.h new file mode 100644 index 0000000..0805b0d --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/UIResponder+Reanimated.h @@ -0,0 +1,10 @@ +#import +#import + +#ifndef DONT_AUTOINSTALL_REANIMATED + +@interface NSObject (Reanimated) + +@end + +#endif diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ValueWrapper.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ValueWrapper.h new file mode 100644 index 0000000..beaf803 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/ValueWrapper.h @@ -0,0 +1,158 @@ +#pragma once + +#include +#include +#include +#include +#include "HostFunctionHandler.h" +#include "JSIStoreValueUser.h" +#include "SharedParent.h" +#include "WorkletsCache.h" + +namespace reanimated { + +class HostFunctionWrapper; +class AnimatedSensorModule; + +class ValueWrapper { + friend AnimatedSensorModule; + + public: + ValueWrapper() {} + explicit ValueWrapper(ValueType _type) : type(_type) {} + ValueType getType() const { + return type; + } + + virtual ~ValueWrapper() {} + + static inline bool asBoolean( + const std::unique_ptr &valueContainer); + static inline double asNumber( + const std::unique_ptr &valueContainer); + static inline const std::string &asString( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asHostFunction( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asFrozenObject( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asRemoteObject( + const std::unique_ptr &valueContainer); + static inline std::vector> &asFrozenArray( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asMutableValue( + const std::unique_ptr &valueContainer); + + static const HostFunctionWrapper *asHostFunctionWrapper( + const std::unique_ptr &valueContainer); + + protected: + ValueType type; +}; + +class BooleanValueWrapper : public ValueWrapper { + public: + explicit BooleanValueWrapper(const bool _value) + : ValueWrapper(ValueType::BoolType), value(_value) {} + bool value; +}; + +class NumberValueWrapper : public ValueWrapper { + public: + explicit NumberValueWrapper(const double _value) + : ValueWrapper(ValueType::NumberType), value(_value) {} + double value; +}; + +class StringValueWrapper : public ValueWrapper { + public: + explicit StringValueWrapper(const std::string &_value) + : ValueWrapper(ValueType::StringType), value(_value) {} + std::string value; +}; + +class HostFunctionWrapper : public ValueWrapper { + public: + explicit HostFunctionWrapper( + const std::shared_ptr &_value) + : ValueWrapper(ValueType::HostFunctionType), value(_value) {} + std::shared_ptr value; +}; + +class FrozenObjectWrapper : public ValueWrapper { + public: + explicit FrozenObjectWrapper(const std::shared_ptr &_value) + : ValueWrapper(ValueType::FrozenObjectType), value(_value) {} + std::shared_ptr value; +}; + +class RemoteObjectWrapper : public ValueWrapper { + public: + explicit RemoteObjectWrapper(const std::shared_ptr &_value) + : ValueWrapper(ValueType::RemoteObjectType), value(_value) {} + std::shared_ptr value; +}; + +class FrozenArrayWrapper : public ValueWrapper { + public: + FrozenArrayWrapper() : ValueWrapper(ValueType::FrozenArrayType) {} + explicit FrozenArrayWrapper( + const std::vector> &_value) + : ValueWrapper(ValueType::FrozenArrayType), value(_value) {} + std::vector> value; +}; + +class MutableValueWrapper : public ValueWrapper { + public: + explicit MutableValueWrapper(const std::shared_ptr &_value) + : ValueWrapper(ValueType::MutableValueType), value(_value) {} + std::shared_ptr value; +}; + +inline bool ValueWrapper::asBoolean( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline double ValueWrapper::asNumber( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::string &ValueWrapper::asString( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asHostFunction( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asFrozenObject( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asRemoteObject( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline std::vector> + &ValueWrapper::asFrozenArray( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asMutableValue( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const HostFunctionWrapper *ValueWrapper::asHostFunctionWrapper( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get()); +} + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/WorkletEventHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/WorkletEventHandler.h new file mode 100644 index 0000000..ca252cd --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/WorkletEventHandler.h @@ -0,0 +1,30 @@ +#pragma once + +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +class EventHandlerRegistry; + +class WorkletEventHandler { + friend EventHandlerRegistry; + + private: + unsigned long id; + std::string eventName; + jsi::Function handler; + + public: + WorkletEventHandler( + unsigned long id, + std::string eventName, + jsi::Function &&handler) + : id(id), eventName(eventName), handler(std::move(handler)) {} + void process(jsi::Runtime &rt, const jsi::Value &eventValue); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/WorkletsCache.h b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/WorkletsCache.h new file mode 100644 index 0000000..b1b0e48 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64/Headers/WorkletsCache.h @@ -0,0 +1,24 @@ +#pragma once + +#include +#include +#include +#include + +namespace reanimated { + +using namespace facebook; + +class FrozenObject; + +class WorkletsCache { + private: + std::unordered_map> worklets; + + public: + std::shared_ptr getFunction( + jsi::Runtime &rt, + std::shared_ptr frozenObj); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64/libRNReanimated.a b/Frameworks/RNReanimated.xcframework/ios-arm64/libRNReanimated.a index 59b0897..4fc4703 100644 Binary files a/Frameworks/RNReanimated.xcframework/ios-arm64/libRNReanimated.a and b/Frameworks/RNReanimated.xcframework/ios-arm64/libRNReanimated.a differ diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/AnimatedSensorModule.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/AnimatedSensorModule.h new file mode 100644 index 0000000..76b652b --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/AnimatedSensorModule.h @@ -0,0 +1,41 @@ +#pragma once + +#include +#include + +#include "PlatformDepMethodsHolder.h" +#include "RuntimeManager.h" + +namespace reanimated { + +using namespace facebook; + +enum SensorType { + ACCELEROMETER = 1, + GYROSCOPE = 2, + GRAVITY = 3, + MAGNETIC_FIELD = 4, + ROTATION_VECTOR = 5, +}; + +class AnimatedSensorModule { + std::unordered_set sensorsIds_; + RegisterSensorFunction platformRegisterSensorFunction_; + UnregisterSensorFunction platformUnregisterSensorFunction_; + RuntimeManager *runtimeManager_; + + public: + AnimatedSensorModule( + const PlatformDepMethodsHolder &platformDepMethodsHolder, + RuntimeManager *runtimeManager); + ~AnimatedSensorModule(); + + jsi::Value registerSensor( + jsi::Runtime &rt, + const jsi::Value &sensorType, + const jsi::Value &interval, + const jsi::Value &sensorDataContainer); + void unregisterSensor(const jsi::Value &sensorId); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ErrorHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ErrorHandler.h new file mode 100644 index 0000000..433c8c3 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ErrorHandler.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include "Scheduler.h" + +namespace reanimated { + +struct ErrorWrapper { + std::string message = ""; + bool handled = true; +}; + +class ErrorHandler { + public: + bool raise() { + if (getError()->handled) { + return false; + } + this->getScheduler()->scheduleOnUI([this]() mutable { this->raiseSpec(); }); + return true; + } + virtual std::shared_ptr getScheduler() = 0; + virtual std::shared_ptr getError() = 0; + virtual void setError(std::string message) = 0; + virtual ~ErrorHandler() {} + + protected: + virtual void raiseSpec() = 0; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/EventHandlerRegistry.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/EventHandlerRegistry.h new file mode 100644 index 0000000..d887a4c --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/EventHandlerRegistry.h @@ -0,0 +1,37 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +class WorkletEventHandler; + +class EventHandlerRegistry { + std::map< + std::string, + std::unordered_map>> + eventMappings; + std::map> eventHandlers; + std::mutex instanceMutex; + + public: + void registerEventHandler(std::shared_ptr eventHandler); + void unregisterEventHandler(unsigned long id); + + void processEvent( + jsi::Runtime &rt, + std::string eventName, + std::string eventPayload); + bool isAnyHandlerWaitingForEvent(std::string eventName); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/FeaturesConfig.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/FeaturesConfig.h new file mode 100644 index 0000000..c07e824 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/FeaturesConfig.h @@ -0,0 +1,19 @@ +#pragma once +#include + +namespace reanimated { + +class FeaturesConfig { + public: + static inline bool isLayoutAnimationEnabled() { + return _isLayoutAnimationEnabled; + } + static inline void setLayoutAnimationEnabled(bool isLayoutAnimationEnabled) { + _isLayoutAnimationEnabled = isLayoutAnimationEnabled; + } + + private: + static bool _isLayoutAnimationEnabled; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/FrozenObject.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/FrozenObject.h new file mode 100644 index 0000000..a5cf9e2 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/FrozenObject.h @@ -0,0 +1,36 @@ +#pragma once + +#include +#include +#include +#include +#include +#include "RuntimeManager.h" +#include "SharedParent.h" +#include "WorkletsCache.h" + +using namespace facebook; + +namespace reanimated { + +class FrozenObject : public jsi::HostObject { + friend WorkletsCache; + friend void extractMutables( + jsi::Runtime &rt, + std::shared_ptr sv, + std::vector> &res); + + private: + std::unordered_map> map; + std::vector namesOrder; + + public: + FrozenObject( + jsi::Runtime &rt, + const jsi::Object &object, + RuntimeManager *runtimeManager); + jsi::Object shallowClone(jsi::Runtime &rt); + bool containsHostFunction = false; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/HostFunctionHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/HostFunctionHandler.h new file mode 100644 index 0000000..9096d42 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/HostFunctionHandler.h @@ -0,0 +1,28 @@ +#pragma once + +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +struct HostFunctionHandler : jsi::HostObject { + std::shared_ptr pureFunction; + std::string functionName; + jsi::Runtime *hostRuntime; + jsi::HostObject a; + + HostFunctionHandler(std::shared_ptr f, jsi::Runtime &rt) { + pureFunction = f; + functionName = f->getProperty(rt, "name").asString(rt).utf8(rt); + hostRuntime = &rt; + } + + std::shared_ptr getPureFunction() { + return pureFunction; + } +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/JSIStoreValueUser.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/JSIStoreValueUser.h new file mode 100644 index 0000000..9424abd --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/JSIStoreValueUser.h @@ -0,0 +1,37 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include "Scheduler.h" + +using namespace facebook; + +namespace reanimated { + +class RuntimeManager; + +struct StaticStoreUser { + std::atomic ctr; + std::unordered_map>> store; + std::recursive_mutex storeMutex; +}; + +class StoreUser { + int identifier = 0; + std::weak_ptr scheduler; + std::shared_ptr storeUserData; + + public: + StoreUser(std::shared_ptr s, const RuntimeManager &runtimeManager); + + std::weak_ptr getWeakRef(jsi::Runtime &rt); + void removeRefs(); + + virtual ~StoreUser(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/LayoutAnimationsProxy.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/LayoutAnimationsProxy.h new file mode 100644 index 0000000..5462669 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/LayoutAnimationsProxy.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include +#include +#include + +namespace reanimated { + +using namespace facebook; + +class MutableValue; + +class LayoutAnimationsProxy { + public: + LayoutAnimationsProxy( + std::function _notifyAboutProgress, + std::function _notifyAboutEnd); + + void + startObserving(int tag, std::shared_ptr sv, jsi::Runtime &rt); + void stopObserving(int tag, bool finished); + void notifyAboutCancellation(int tag); + + private: + std::function notifyAboutProgress; + std::function notifyAboutEnd; + std::map> observedValues; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Logger.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Logger.h new file mode 100644 index 0000000..9c4947e --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Logger.h @@ -0,0 +1,22 @@ +#pragma once + +#include +#include "./LoggerInterface.h" + +namespace reanimated { + +class Logger { + public: + template + static void log(T value) { + if (instance == nullptr) { + throw std::runtime_error("no logger specified"); + } + instance->log(value); + } + + private: + static std::unique_ptr instance; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/LoggerInterface.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/LoggerInterface.h new file mode 100644 index 0000000..1f6004f --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/LoggerInterface.h @@ -0,0 +1,14 @@ +#pragma once + +namespace reanimated { + +class LoggerInterface { + public: + virtual void log(const char *str) = 0; + virtual void log(double d) = 0; + virtual void log(int i) = 0; + virtual void log(bool b) = 0; + virtual ~LoggerInterface() {} +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Mapper.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Mapper.h new file mode 100644 index 0000000..75bb672 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Mapper.h @@ -0,0 +1,51 @@ +#pragma once + +#include +#include +#include +#include +#include "NativeReanimatedModule.h" +#include "ShareableValue.h" + +using namespace facebook; + +namespace reanimated { + +class MapperRegistry; + +struct ViewDescriptor { + int tag; + jsi::Value name; +}; + +class Mapper : public std::enable_shared_from_this { + friend MapperRegistry; + + private: + unsigned long id; + NativeReanimatedModule *module; + std::shared_ptr mapper; + std::vector> inputs; + std::vector> outputs; + bool dirty = true; + std::shared_ptr userUpdater; + UpdaterFunction *updateProps; + int optimalizationLvl = 0; + std::shared_ptr viewDescriptors; + + public: + Mapper( + NativeReanimatedModule *module, + unsigned long id, + std::shared_ptr mapper, + std::vector> inputs, + std::vector> outputs); + void execute(jsi::Runtime &rt); + void enableFastMode( + const int optimalizationLvl, + const std::shared_ptr &updater, + const std::shared_ptr &jsViewDescriptors); + virtual ~Mapper(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MapperRegistry.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MapperRegistry.h new file mode 100644 index 0000000..08ac47c --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MapperRegistry.h @@ -0,0 +1,29 @@ +#pragma once + +#include +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +class Mapper; + +class MapperRegistry { + std::unordered_map> mappers; + std::vector> sortedMappers; + void updateOrder(); + bool updatedSinceLastExecute = false; + + public: + void startMapper(std::shared_ptr mapper); + void stopMapper(unsigned long id); + + void execute(jsi::Runtime &rt); + + bool needRunOnRender(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MutableValue.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MutableValue.h new file mode 100644 index 0000000..b00f4ee --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MutableValue.h @@ -0,0 +1,54 @@ +#pragma once + +#include +#include +#include +#include +#include +#include "JSIStoreValueUser.h" +#include "LayoutAnimationsProxy.h" +#include "MutableValueSetterProxy.h" +#include "RuntimeManager.h" +#include "SharedParent.h" + +using namespace facebook; + +namespace reanimated { + +class MutableValue : public jsi::HostObject, + public std::enable_shared_from_this, + public StoreUser { + private: + friend MutableValueSetterProxy; + friend LayoutAnimationsProxy; + + private: + RuntimeManager *runtimeManager; + std::mutex readWriteMutex; + std::shared_ptr value; + std::weak_ptr animation; + std::map> listeners; + + public: + void setValue(jsi::Runtime &rt, const jsi::Value &newValue); + jsi::Value getValue(jsi::Runtime &rt); + + public: + MutableValue( + jsi::Runtime &rt, + const jsi::Value &initial, + RuntimeManager *runtimeManager, + std::shared_ptr s); + + public: + void + set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value); + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); + std::vector getPropertyNames(jsi::Runtime &rt); + unsigned long addListener( + unsigned long listenerId, + std::function listener); + void removeListener(unsigned long listenerId); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MutableValueSetterProxy.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MutableValueSetterProxy.h new file mode 100644 index 0000000..423f0fc --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/MutableValueSetterProxy.h @@ -0,0 +1,25 @@ +#pragma once + +#include +#include +#include +#include "SharedParent.h" + +using namespace facebook; + +namespace reanimated { + +class MutableValueSetterProxy : public jsi::HostObject { + private: + friend MutableValue; + std::shared_ptr mutableValue; + + public: + explicit MutableValueSetterProxy(std::shared_ptr mutableValue) + : mutableValue(std::move(mutableValue)) {} + void + set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value); + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeMethods.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeMethods.h new file mode 100644 index 0000000..3f0c239 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeMethods.h @@ -0,0 +1,24 @@ +#import +#import +#import +#include +#include +#include + +namespace reanimated { + +std::vector> measure( + int viewTag, + RCTUIManager *uiManager); +void scrollTo( + int scrollViewTag, + RCTUIManager *uiManager, + double x, + double y, + bool animated); +void setGestureState( + id gestureHandlerStateManager, + int handlerTag, + int newState); + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeProxy.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeProxy.h new file mode 100644 index 0000000..18e444a --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeProxy.h @@ -0,0 +1,15 @@ +#if __cplusplus + +#import +#import +#include + +namespace reanimated { + +std::shared_ptr createReanimatedModule( + RCTBridge *bridge, + std::shared_ptr jsInvoker); + +} + +#endif diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeReanimatedModule.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeReanimatedModule.h new file mode 100644 index 0000000..ec06185 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeReanimatedModule.h @@ -0,0 +1,121 @@ +#pragma once + +#include +#include +#include +#include + +#include "AnimatedSensorModule.h" +#include "ErrorHandler.h" +#include "LayoutAnimationsProxy.h" +#include "NativeReanimatedModuleSpec.h" +#include "PlatformDepMethodsHolder.h" +#include "RuntimeDecorator.h" +#include "RuntimeManager.h" +#include "Scheduler.h" +#include "SingleInstanceChecker.h" + +namespace reanimated { + +using FrameCallback = std::function; + +class ShareableValue; +class MutableValue; +class MapperRegistry; +class EventHandlerRegistry; + +class NativeReanimatedModule : public NativeReanimatedModuleSpec, + public RuntimeManager { + friend ShareableValue; + friend MutableValue; + + public: + NativeReanimatedModule( + std::shared_ptr jsInvoker, + std::shared_ptr scheduler, + std::shared_ptr rt, + std::shared_ptr errorHandler, + std::function + propObtainer, + std::shared_ptr layoutAnimationsProxy, + PlatformDepMethodsHolder platformDepMethodsHolder); + + void installCoreFunctions(jsi::Runtime &rt, const jsi::Value &valueSetter) + override; + + jsi::Value makeShareable(jsi::Runtime &rt, const jsi::Value &value) override; + jsi::Value makeMutable(jsi::Runtime &rt, const jsi::Value &value) override; + jsi::Value makeRemote(jsi::Runtime &rt, const jsi::Value &value) override; + + jsi::Value startMapper( + jsi::Runtime &rt, + const jsi::Value &worklet, + const jsi::Value &inputs, + const jsi::Value &outputs, + const jsi::Value &updater, + const jsi::Value &viewDescriptors) override; + void stopMapper(jsi::Runtime &rt, const jsi::Value &mapperId) override; + + jsi::Value registerEventHandler( + jsi::Runtime &rt, + const jsi::Value &eventHash, + const jsi::Value &worklet) override; + void unregisterEventHandler( + jsi::Runtime &rt, + const jsi::Value ®istrationId) override; + + jsi::Value getViewProp( + jsi::Runtime &rt, + const jsi::Value &viewTag, + const jsi::Value &propName, + const jsi::Value &callback) override; + + jsi::Value enableLayoutAnimations(jsi::Runtime &rt, const jsi::Value &config) + override; + jsi::Value configureProps( + jsi::Runtime &rt, + const jsi::Value &uiProps, + const jsi::Value &nativeProps) override; + + void onRender(double timestampMs); + void onEvent(std::string eventName, std::string eventAsString); + bool isAnyHandlerWaitingForEvent(std::string eventName); + + void maybeRequestRender(); + UpdaterFunction updaterFunction; + + jsi::Value registerSensor( + jsi::Runtime &rt, + const jsi::Value &sensorType, + const jsi::Value &interval, + const jsi::Value &sensorDataContainer) override; + void unregisterSensor(jsi::Runtime &rt, const jsi::Value &sensorId) override; + jsi::Value subscribeForKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &keyboardEventContainer) override; + void unsubscribeFromKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &listenerId) override; + + private: + std::shared_ptr mapperRegistry; + std::shared_ptr eventHandlerRegistry; + std::function requestRender; + std::shared_ptr dummyEvent; + std::vector frameCallbacks; + bool renderRequested = false; + std::function + propObtainer; + std::function onRenderCallback; + std::shared_ptr layoutAnimationsProxy; + AnimatedSensorModule animatedSensorModule; + ConfigurePropsFunction configurePropsPlatformFunction; + KeyboardEventSubscribeFunction subscribeForKeyboardEventsFunction; + KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEventsFunction; + +#ifdef DEBUG + SingleInstanceChecker singleInstanceChecker_; +#endif +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeReanimatedModuleSpec.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeReanimatedModuleSpec.h new file mode 100644 index 0000000..30d74cb --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/NativeReanimatedModuleSpec.h @@ -0,0 +1,90 @@ +#pragma once + +#include +#include +#include + +#ifdef ANDROID +#include "TurboModule.h" +#else +#include +#endif + +#include + +using namespace facebook; +using namespace react; + +namespace reanimated { + +class JSI_EXPORT NativeReanimatedModuleSpec : public TurboModule { + protected: + explicit NativeReanimatedModuleSpec(std::shared_ptr jsInvoker); + + public: + virtual void installCoreFunctions( + jsi::Runtime &rt, + const jsi::Value &valueSetter) = 0; + + // SharedValue + virtual jsi::Value makeShareable( + jsi::Runtime &rt, + const jsi::Value &value) = 0; + virtual jsi::Value makeMutable(jsi::Runtime &rt, const jsi::Value &value) = 0; + virtual jsi::Value makeRemote(jsi::Runtime &rt, const jsi::Value &value) = 0; + + // mappers + virtual jsi::Value startMapper( + jsi::Runtime &rt, + const jsi::Value &worklet, + const jsi::Value &inputs, + const jsi::Value &outputs, + const jsi::Value &updater, + const jsi::Value &viewDescriptors) = 0; + virtual void stopMapper(jsi::Runtime &rt, const jsi::Value &mapperId) = 0; + + // events + virtual jsi::Value registerEventHandler( + jsi::Runtime &rt, + const jsi::Value &eventHash, + const jsi::Value &worklet) = 0; + virtual void unregisterEventHandler( + jsi::Runtime &rt, + const jsi::Value ®istrationId) = 0; + + // views + virtual jsi::Value getViewProp( + jsi::Runtime &rt, + const jsi::Value &viewTag, + const jsi::Value &propName, + const jsi::Value &callback) = 0; + + // sensors + virtual jsi::Value registerSensor( + jsi::Runtime &rt, + const jsi::Value &sensorType, + const jsi::Value &interval, + const jsi::Value &sensorDataContainer) = 0; + virtual void unregisterSensor( + jsi::Runtime &rt, + const jsi::Value &sensorId) = 0; + + // keyboard + virtual jsi::Value subscribeForKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &keyboardEventContainer) = 0; + virtual void unsubscribeFromKeyboardEvents( + jsi::Runtime &rt, + const jsi::Value &listenerId) = 0; + + // other + virtual jsi::Value enableLayoutAnimations( + jsi::Runtime &rt, + const jsi::Value &config) = 0; + virtual jsi::Value configureProps( + jsi::Runtime &rt, + const jsi::Value &uiProps, + const jsi::Value &nativeProps) = 0; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/PlatformDepMethodsHolder.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/PlatformDepMethodsHolder.h new file mode 100644 index 0000000..d7dcb48 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/PlatformDepMethodsHolder.h @@ -0,0 +1,51 @@ +#pragma once + +#include +#include +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +using UpdaterFunction = std::function; +using RequestRender = + std::function, jsi::Runtime &rt)>; +using ScrollToFunction = std::function; +using MeasuringFunction = + std::function>(int)>; +using TimeProviderFunction = std::function; + +using RegisterSensorFunction = + std::function)>; +using UnregisterSensorFunction = std::function; +using SetGestureStateFunction = std::function; +using ConfigurePropsFunction = std::function; +using KeyboardEventSubscribeFunction = + std::function)>; +using KeyboardEventUnsubscribeFunction = std::function; + +struct PlatformDepMethodsHolder { + RequestRender requestRender; + UpdaterFunction updaterFunction; + ScrollToFunction scrollToFunction; + MeasuringFunction measuringFunction; + TimeProviderFunction getCurrentTime; + RegisterSensorFunction registerSensor; + UnregisterSensorFunction unregisterSensor; + SetGestureStateFunction setGestureStateFunction; + ConfigurePropsFunction configurePropsFunction; + KeyboardEventSubscribeFunction subscribeForKeyboardEvents; + KeyboardEventUnsubscribeFunction unsubscribeFromKeyboardEvents; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RCTConvert+REATransition.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RCTConvert+REATransition.h index 17ebf0d..d377dd5 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RCTConvert+REATransition.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RCTConvert+REATransition.h @@ -1,7 +1,6 @@ +#import #import -#import "REATransition.h" - @interface RCTConvert (REATransition) + (REATransitionType)REATransitionType:(id)json; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAllTransitions.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAllTransitions.h index 8ab0480..ca9c76b 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAllTransitions.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAllTransitions.h @@ -1,4 +1,4 @@ -#import "REATransition.h" +#import @interface REATransitionGroup : REATransition @property (nonatomic) BOOL sequence; @@ -8,8 +8,8 @@ @interface REAVisibilityTransition : REATransition @property (nonatomic) REATransitionAnimationType animationType; -- (REATransitionAnimation *)appearView:(UIView*)view inParent:(UIView*)parent; -- (REATransitionAnimation *)disappearView:(UIView*)view fromParent:(UIView*)parent; +- (REATransitionAnimation *)appearView:(UIView *)view inParent:(UIView *)parent; +- (REATransitionAnimation *)disappearView:(UIView *)view fromParent:(UIView *)parent; - (instancetype)initWithConfig:(NSDictionary *)config; @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAlwaysNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAlwaysNode.h index 589251c..3f98691 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAlwaysNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAlwaysNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAAlwaysNode : REANode @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAnimationsManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAnimationsManager.h new file mode 100644 index 0000000..7bfaf64 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAAnimationsManager.h @@ -0,0 +1,32 @@ +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +typedef NS_ENUM(NSInteger, ViewState) { + Inactive, + Appearing, + Disappearing, + Layout, + ToRemove, +}; + +@interface REAAnimationsManager : NSObject + +- (instancetype)initWithUIManager:(RCTUIManager *)uiManager; +- (void)setRemovingConfigBlock:(void (^)(NSNumber *tag))block; +- (void)setAnimationStartingBlock: + (void (^)(NSNumber *tag, NSString *type, NSDictionary *target, NSNumber *depth))startAnimation; +- (void)notifyAboutProgress:(NSDictionary *)newStyle tag:(NSNumber *)tag; +- (void)notifyAboutEnd:(NSNumber *)tag cancelled:(BOOL)cancelled; +- (void)invalidate; +- (void)onViewRemoval:(UIView *)view before:(REASnapshot *)before; +- (void)onViewCreate:(UIView *)view after:(REASnapshot *)after; +- (void)onViewUpdate:(UIView *)view before:(REASnapshot *)before after:(REASnapshot *)after; +- (void)setToBeRemovedRegistry:(NSMutableDictionary> *> *)toBeRemovedRegister; +- (void)removeLeftovers; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABezierNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABezierNode.h index 0e0a953..d951f22 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABezierNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABezierNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REABezierNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABlockNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABlockNode.h index 54f412c..8c9f429 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABlockNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REABlockNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REABlockNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACallFuncNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACallFuncNode.h index 4502724..ba5eff8 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACallFuncNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACallFuncNode.h @@ -1,7 +1,6 @@ -#import "REANode.h" +#import @interface REACallFuncNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAClockNodes.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAClockNodes.h index fc0fc08..5de608f 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAClockNodes.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAClockNodes.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAClockNode : REANode @property (nonatomic, readonly) BOOL isRunning; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAConcatNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAConcatNode.h index d275eec..75825b8 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAConcatNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAConcatNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REAConcatNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACondNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACondNode.h index 3e4a173..f9acbf1 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACondNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REACondNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REACondNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/READebugNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/READebugNode.h index cd7cd3e..370c346 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/READebugNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/READebugNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface READebugNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventDispatcher.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventDispatcher.h new file mode 100644 index 0000000..fc9f7d9 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventDispatcher.h @@ -0,0 +1,10 @@ +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface REAEventDispatcher : RCTEventDispatcher + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventNode.h index 73027f1..7b849a2 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAEventNode.h @@ -1,5 +1,4 @@ -#import "REANode.h" - +#import #import @interface REAEventNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAFunctionNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAFunctionNode.h index 4b6ef73..1df0188 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAFunctionNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAFunctionNode.h @@ -1,7 +1,6 @@ -#import "REANode.h" +#import @interface REAFunctionNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSErrorHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSErrorHandler.h new file mode 100644 index 0000000..58205a2 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSErrorHandler.h @@ -0,0 +1,21 @@ +#import +#import +#include +#include + +namespace reanimated { + +class REAIOSErrorHandler : public ErrorHandler { + std::shared_ptr scheduler; + void raiseSpec() override; + std::shared_ptr error; + + public: + REAIOSErrorHandler(std::shared_ptr scheduler); + std::shared_ptr getScheduler() override; + std::shared_ptr getError() override; + void setError(std::string message) override; + virtual ~REAIOSErrorHandler() {} +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSLogger.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSLogger.h new file mode 100644 index 0000000..8202343 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSLogger.h @@ -0,0 +1,15 @@ +#import +#include + +namespace reanimated { + +class REAIOSLogger : public LoggerInterface { + public: + void log(const char *str) override; + void log(double d) override; + void log(int i) override; + void log(bool b) override; + virtual ~REAIOSLogger() {} +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSScheduler.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSScheduler.h new file mode 100644 index 0000000..34aea8b --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAIOSScheduler.h @@ -0,0 +1,19 @@ +#import +#import +#import +#include +#include + +namespace reanimated { + +using namespace facebook; +using namespace react; + +class REAIOSScheduler : public Scheduler { + public: + REAIOSScheduler(std::shared_ptr jsInvoker); + void scheduleOnUI(std::function job) override; + virtual ~REAIOSScheduler(); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAInitializer.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAInitializer.h new file mode 100644 index 0000000..94c548b --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAInitializer.h @@ -0,0 +1,30 @@ +#import +#import +#import +#import +#import +#import +#import +#import + +#if REACT_NATIVE_MINOR_VERSION >= 64 +#import +#endif + +#if REACT_NATIVE_MINOR_VERSION < 63 +#import +#endif + +NS_ASSUME_NONNULL_BEGIN + +namespace reanimated { + +using namespace facebook; +using namespace react; + +JSIExecutor::RuntimeInstaller REAJSIExecutorRuntimeInstaller( + RCTBridge *bridge, + JSIExecutor::RuntimeInstaller runtimeInstallerToWrap); + +} // namespace reanimated +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAJSCallNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAJSCallNode.h index f13a803..64c04bf 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAJSCallNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAJSCallNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAJSCallNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAKeyboardEventObserver.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAKeyboardEventObserver.h new file mode 100644 index 0000000..37600c0 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAKeyboardEventObserver.h @@ -0,0 +1,17 @@ +#ifndef REAKeyboardEventManager_h +#define REAKeyboardEventManager_h + +#import +#import + +typedef void (^KeyboardEventListenerBlock)(int keyboardState, int height); + +@interface REAKeyboardEventObserver : NSObject + +- (instancetype)init; +- (int)subscribeForKeyboardEvents:(KeyboardEventListenerBlock)listener; +- (void)unsubscribeFromKeyboardEvents:(int)listenerId; + +@end + +#endif /* REAKeyboardEventManager_h */ diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAModule.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAModule.h index ed60267..d58eda7 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAModule.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAModule.h @@ -5,8 +5,10 @@ #import #import -#import "REAValueNode.h" +#import @interface REAModule : RCTEventEmitter +@property (nonatomic, readonly) REANodesManager *nodesManager; + @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANode.h index 0874400..664b883 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANode.h @@ -3,7 +3,7 @@ @class REANodesManager; -typedef NSNumber* REANodeID; +typedef NSNumber *REANodeID; @protocol REAFinalNode @@ -12,15 +12,14 @@ typedef NSNumber* REANodeID; @end @interface REAUpdateContext : NSObject -@property (nonatomic) NSString* callID; +@property (nonatomic) NSString *callID; @end @interface REANode : NSObject + (void)runPropUpdates:(nonnull REAUpdateContext *)context; -- (instancetype)initWithID:(REANodeID)nodeID - config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; +- (instancetype)initWithID:(REANodeID)nodeID config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; @property (nonatomic, weak, nullable) REANodesManager *nodesManager; @property (nonatomic, nullable) REAUpdateContext *updateContext; @@ -36,4 +35,6 @@ typedef NSNumber* REANodeID; - (void)dangerouslyRescheduleEvaluate; - (void)forceUpdateMemoizedValue:(id)value; +- (void)onDrop; + @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANodesManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANodesManager.h index 9597166..9679a52 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANodesManager.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REANodesManager.h @@ -1,6 +1,5 @@ #import - -#import "REANode.h" +#import #import #import @@ -8,6 +7,7 @@ typedef void (^REAOnAnimationCallback)(CADisplayLink *displayLink); typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); +typedef void (^REAEventHandler)(NSString *eventName, id event); @interface REANodesManager : NSObject @@ -18,10 +18,9 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); @property (nonatomic, nullable) NSSet *uiProps; @property (nonatomic, nullable) NSSet *nativeProps; -- (nonnull instancetype)initWithModule:(REAModule *)reanimatedModule - uiManager:(nonnull RCTUIManager *)uiManager; +- (nonnull instancetype)initWithModule:(REAModule *)reanimatedModule uiManager:(nonnull RCTUIManager *)uiManager; -- (REANode* _Nullable)findNodeByID:(nonnull REANodeID)nodeID; +- (REANode *_Nullable)findNodeByID:(nonnull REANodeID)nodeID; - (void)invalidate; @@ -31,31 +30,28 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); - (void)postOnAnimation:(REAOnAnimationCallback)clb; - (void)postRunUpdatesAfterAnimation; +- (void)registerEventHandler:(REAEventHandler)eventHandler; - (void)enqueueUpdateViewOnNativeThread:(nonnull NSNumber *)reactTag - viewName:(NSString *) viewName - nativeProps:(NSMutableDictionary *)nativeProps; -- (void)getValue:(REANodeID)nodeID - callback:(RCTResponseSenderBlock)callback; + viewName:(NSString *)viewName + nativeProps:(NSMutableDictionary *)nativeProps + trySynchronously:(BOOL)trySync; +- (void)getValue:(REANodeID)nodeID callback:(RCTResponseSenderBlock)callback; // graph -- (void)createNode:(nonnull REANodeID)tag - config:(NSDictionary *__nonnull)config; +- (void)createNode:(nonnull REANodeID)tag config:(NSDictionary *__nonnull)config; - (void)dropNode:(nonnull REANodeID)tag; -- (void)connectNodes:(nonnull REANodeID)parentID - childID:(nonnull REANodeID)childID; +- (void)connectNodes:(nonnull REANodeID)parentID childID:(nonnull REANodeID)childID; -- (void)disconnectNodes:(nonnull REANodeID)parentID - childID:(nonnull REANodeID)childID; +- (void)disconnectNodes:(nonnull REANodeID)parentID childID:(nonnull REANodeID)childID; - (void)connectNodeToView:(nonnull REANodeID)nodeID viewTag:(nonnull NSNumber *)viewTag viewName:(nonnull NSString *)viewName; -- (void)disconnectNodeFromView:(nonnull REANodeID)nodeID - viewTag:(nonnull NSNumber *)viewTag; +- (void)disconnectNodeFromView:(nonnull REANodeID)nodeID viewTag:(nonnull NSNumber *)viewTag; - (void)attachEvent:(nonnull NSNumber *)viewTag eventName:(nonnull NSString *)eventName @@ -67,8 +63,14 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); // configuration -- (void)configureProps:(nonnull NSSet *)nativeProps - uiProps:(nonnull NSSet *)uiProps; +- (void)configureUiProps:(nonnull NSSet *)uiPropsSet + andNativeProps:(nonnull NSSet *)nativePropsSet; + +- (void)updateProps:(nonnull NSDictionary *)props + ofViewWithTag:(nonnull NSNumber *)viewTag + withName:(nonnull NSString *)viewName; + +- (NSString *)obtainProp:(nonnull NSNumber *)viewTag propName:(nonnull NSString *)propName; // events @@ -76,4 +78,6 @@ typedef void (^REANativeAnimationOp)(RCTUIManager *uiManager); - (void)setValueForNodeID:(nonnull NSNumber *)nodeID value:(nonnull NSNumber *)newValue; +- (void)maybeFlushUpdateBuffer; + @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAOperatorNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAOperatorNode.h index 50c1689..e720458 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAOperatorNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAOperatorNode.h @@ -1,4 +1,4 @@ -#import "REANode.h" +#import @interface REAOperatorNode : REANode diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAParamNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAParamNode.h index b5e97e8..f0b4cfd 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAParamNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAParamNode.h @@ -1,12 +1,10 @@ -#import "REAValueNode.h" +#import @interface REAParamNode : REAValueNode -- (void)beginContext:(NSNumber*) ref - prevCallID:(NSNumber*) prevCallID; +- (void)beginContext:(NSNumber *)ref prevCallID:(NSNumber *)prevCallID; - (void)endContext; - (void)start; - (void)stop; - (BOOL)isRunning; @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAPropsNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAPropsNode.h index 05171f1..caab8c1 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAPropsNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAPropsNode.h @@ -1,11 +1,9 @@ -#import "REANode.h" +#import @interface REAPropsNode : REANode -- (void)connectToView:(NSNumber *_Nonnull)viewTag - viewName:(NSString *_Nonnull)viewName; +- (void)connectToView:(NSNumber *_Nonnull)viewTag viewName:(NSString *_Nonnull)viewName; - (void)disconnectFromView:(NSNumber *_Nonnull)viewTag; @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASetNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASetNode.h index 5bc6a38..6ec8770 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASetNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASetNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REASetNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASnapshot.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASnapshot.h new file mode 100644 index 0000000..9f61668 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REASnapshot.h @@ -0,0 +1,13 @@ +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface REASnapshot : NSObject + +@property NSMutableDictionary *values; + +- (instancetype)init:(UIView *)view; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAStyleNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAStyleNode.h index 58bc7ba..a1b737c 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAStyleNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAStyleNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REAStyleNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransformNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransformNode.h index 51ae259..fb84d51 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransformNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransformNode.h @@ -1,6 +1,5 @@ -#import "REANode.h" +#import @interface REATransformNode : REANode @end - diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransition.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransition.h index 6d4d1f0..529fbd1 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransition.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransition.h @@ -1,9 +1,8 @@ -#import #import +#import +#import #import - -#import "REATransitionAnimation.h" -#import "REATransitionValues.h" +#import // TODO: fix below implementation #define IS_LAYOUT_ONLY(view) ([view isKindOfClass:[RCTView class]] && view.backgroundColor == nil) @@ -53,12 +52,13 @@ typedef NS_ENUM(NSInteger, REATransitionPropagationType) { - (void)playInRoot:(UIView *)root; - (REATransitionValues *)findStartValuesForKey:(NSNumber *)key; - (REATransitionValues *)findEndValuesForKey:(NSNumber *)key; -- (REATransitionAnimation *)animationForTransitioning:(REATransitionValues*)startValues - endValues:(REATransitionValues*)endValues - forRoot:(UIView *)root; -- (NSArray *)animationsForTransitioning:(NSMutableDictionary *)startValues - endValues:(NSMutableDictionary *)endValues - forRoot:(UIView *)root; +- (REATransitionAnimation *)animationForTransitioning:(REATransitionValues *)startValues + endValues:(REATransitionValues *)endValues + forRoot:(UIView *)root; +- (NSArray *) + animationsForTransitioning:(NSMutableDictionary *)startValues + endValues:(NSMutableDictionary *)endValues + forRoot:(UIView *)root; + (REATransition *)inflate:(NSDictionary *)config; @end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransitionAnimation.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransitionAnimation.h index b9efb93..896a008 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransitionAnimation.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REATransitionAnimation.h @@ -8,7 +8,7 @@ + (REATransitionAnimation *)transitionWithAnimation:(CAAnimation *)animation layer:(CALayer *)layer - andKeyPath:(NSString*)keyPath; + andKeyPath:(NSString *)keyPath; - (void)play; - (void)delayBy:(CFTimeInterval)delay; - (CFTimeInterval)finishTime; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUIManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUIManager.h new file mode 100644 index 0000000..1bf3cfd --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUIManager.h @@ -0,0 +1,16 @@ +#import +#import +#import +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface REAUIManager : RCTUIManager +@property BOOL blockSetter; +- (void)setBridge:(RCTBridge *)bridge; +- (void)setUp:(REAAnimationsManager *)animationsManager; +- (void)unregisterView:(id)view; +@property (nonatomic, copy) void (^flushUiOperations)(); +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUtils.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUtils.h index 1eb8ad7..05a78f2 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUtils.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAUtils.h @@ -1,5 +1,7 @@ #import -#define REA_LOG_ERROR_IF_NIL(value, errorMsg) ({\ - if (value == nil) RCTLogError(errorMsg);\ -}) +#define REA_LOG_ERROR_IF_NIL(value, errorMsg) \ + ({ \ + if (value == nil) \ + RCTLogError(errorMsg); \ + }) diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAValueNode.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAValueNode.h index 8de5023..2a33d4d 100644 --- a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAValueNode.h +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/REAValueNode.h @@ -1,6 +1,4 @@ -#import - -#import "REANode.h" +#import @class REAValueNode; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RNGestureHandlerStateManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RNGestureHandlerStateManager.h new file mode 100644 index 0000000..e927e96 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RNGestureHandlerStateManager.h @@ -0,0 +1,5 @@ +@protocol RNGestureHandlerStateManager + +- (void)setGestureState:(int)state forHandler:(int)handlerTag; + +@end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedHiddenHeaders.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedHiddenHeaders.h new file mode 100644 index 0000000..c1a0545 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedHiddenHeaders.h @@ -0,0 +1,11 @@ +#pragma once + +#ifdef ANDROID +#include "Logger.h" +#include "LoggerInterface.h" +#include "SpeedChecker.h" +#else +#include "Common/cpp/hidden_headers/Logger.h" +#include "Common/cpp/hidden_headers/LoggerInterface.h" +#include "Common/cpp/hidden_headers/SpeedChecker.h" +#endif diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensor.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensor.h new file mode 100644 index 0000000..02c1fdb --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensor.h @@ -0,0 +1,25 @@ +#if __has_include() +#import +#endif +#import + +@interface ReanimatedSensor : NSObject { + ReanimatedSensorType _sensorType; + double _interval; + double _lastTimestamp; +#if !TARGET_OS_TV + CMMotionManager *_motionManager; +#endif + void (^_setter)(double[]); +} + +- (instancetype)init:(ReanimatedSensorType)sensorType interval:(int)interval setter:(void (^)(double[]))setter; +- (bool)initialize; +- (bool)initializeGyroscope; +- (bool)initializeAccelerometer; +- (bool)initializeGravity; +- (bool)initializeMagnetometer; +- (bool)initializeOrientation; +- (void)cancel; + +@end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensorContainer.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensorContainer.h new file mode 100644 index 0000000..ac5848e --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensorContainer.h @@ -0,0 +1,12 @@ +#import + +@interface ReanimatedSensorContainer : NSObject { + NSNumber *_nextSensorId; + NSMutableDictionary *_sensors; +} + +- (instancetype)init; +- (int)registerSensor:(ReanimatedSensorType)sensorType interval:(int)interval setter:(void (^)(double[]))setter; +- (void)unregisterSensor:(int)sensorId; + +@end diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensorType.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensorType.h new file mode 100644 index 0000000..7ff34d7 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedSensorType.h @@ -0,0 +1,7 @@ +typedef NS_ENUM(NSUInteger, ReanimatedSensorType) { + ACCELEROMETER = 1, + GYROSCOPE = 2, + GRAVITY = 3, + MAGNETIC_FIELD = 4, + ROTATION_VECTOR = 5, +}; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedVersion.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedVersion.h new file mode 100644 index 0000000..895669d --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ReanimatedVersion.h @@ -0,0 +1,11 @@ +#pragma once + +#include + +using namespace facebook; + +namespace reanimated { + +jsi::String getReanimatedVersionString(jsi::Runtime &rt); + +}; diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RemoteObject.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RemoteObject.h new file mode 100644 index 0000000..46a437d --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RemoteObject.h @@ -0,0 +1,35 @@ +#pragma once + +#include +#include + +#include "FrozenObject.h" +#include "JSIStoreValueUser.h" +#include "SharedParent.h" + +using namespace facebook; + +namespace reanimated { + +class RemoteObject : public jsi::HostObject, public StoreUser { + private: + std::weak_ptr backing; + std::unique_ptr initializer; + + public: + void maybeInitializeOnWorkletRuntime(jsi::Runtime &rt); + RemoteObject( + jsi::Runtime &rt, + const jsi::Object &object, + RuntimeManager *runtimeManager, + std::shared_ptr s) + : StoreUser(s, *runtimeManager), + initializer( + std::make_unique(rt, object, runtimeManager)) {} + void + set(jsi::Runtime &rt, const jsi::PropNameID &name, const jsi::Value &value); + jsi::Value get(jsi::Runtime &rt, const jsi::PropNameID &name); + std::vector getPropertyNames(jsi::Runtime &rt); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RuntimeDecorator.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RuntimeDecorator.h new file mode 100644 index 0000000..f387197 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RuntimeDecorator.h @@ -0,0 +1,89 @@ +#pragma once + +#include +#include +#include +#include +#include +#include "LayoutAnimationsProxy.h" +#include "PlatformDepMethodsHolder.h" + +using namespace facebook; + +namespace reanimated { + +using RequestFrameFunction = std::function)>; + +enum RuntimeType { + /** + Represents any runtime that supports the concept of workletization + */ + Worklet, + /** + Represents the Reanimated UI worklet runtime specifically + */ + UI +}; +typedef jsi::Runtime *RuntimePointer; + +class RuntimeDecorator { + public: + static void decorateRuntime(jsi::Runtime &rt, const std::string &label); + static void decorateUIRuntime( + jsi::Runtime &rt, + const UpdaterFunction updater, + const RequestFrameFunction requestFrame, + const ScrollToFunction scrollTo, + const MeasuringFunction measure, + const TimeProviderFunction getCurrentTime, + const RegisterSensorFunction registerSensor, + const UnregisterSensorFunction unregisterSensor, + const SetGestureStateFunction setGestureState, + std::shared_ptr layoutAnimationsProxy); + + /** + Returns true if the given Runtime is the Reanimated UI-Thread Runtime. + */ + inline static bool isUIRuntime(jsi::Runtime &rt); + /** + Returns true if the given Runtime is a Runtime that supports the concept of + Workletization. (REA, Vision, ...) + */ + inline static bool isWorkletRuntime(jsi::Runtime &rt); + /** + Returns true if the given Runtime is the default React-JS Runtime. + */ + inline static bool isReactRuntime(jsi::Runtime &rt); + /** + Register the given Runtime. This function is required for every + RuntimeManager, otherwise future runtime checks will fail. + */ + static void registerRuntime(jsi::Runtime *runtime, RuntimeType runtimeType); + + private: + static std::unordered_map &runtimeRegistry(); +}; + +inline bool RuntimeDecorator::isUIRuntime(jsi::Runtime &rt) { + auto iterator = runtimeRegistry().find(&rt); + if (iterator == runtimeRegistry().end()) + return false; + return iterator->second == RuntimeType::UI; +} + +inline bool RuntimeDecorator::isWorkletRuntime(jsi::Runtime &rt) { + auto iterator = runtimeRegistry().find(&rt); + if (iterator == runtimeRegistry().end()) + return false; + auto type = iterator->second; + return type == RuntimeType::UI || type == RuntimeType::Worklet; +} + +inline bool RuntimeDecorator::isReactRuntime(jsi::Runtime &rt) { + auto iterator = runtimeRegistry().find(&rt); + if (iterator == runtimeRegistry().end()) + return true; + return false; +} + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RuntimeManager.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RuntimeManager.h new file mode 100644 index 0000000..b0cf203 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/RuntimeManager.h @@ -0,0 +1,75 @@ +#pragma once + +#include +#include +#include "ErrorHandler.h" +#include "JSIStoreValueUser.h" +#include "RuntimeDecorator.h" +#include "Scheduler.h" +#include "ShareableValue.h" +#include "WorkletsCache.h" + +namespace reanimated { + +using namespace facebook; + +/** + A class that manages a jsi::Runtime apart from the React-JS runtime. + */ +class RuntimeManager { + public: + RuntimeManager( + std::shared_ptr runtime, + std::shared_ptr errorHandler, + std::shared_ptr scheduler, + RuntimeType runtimeType = RuntimeType::Worklet) + : runtime(runtime), + errorHandler(errorHandler), + scheduler(scheduler), + workletsCache(std::make_unique()), + storeUserData(std::make_shared()) { + RuntimeDecorator::registerRuntime(this->runtime.get(), runtimeType); + } + + virtual ~RuntimeManager() { + clearStore(); + } + + public: + /** + Holds the jsi::Function worklet that is responsible for updating values in + JS. Can be null. + */ + std::shared_ptr valueSetter; + /** + Holds the jsi::Runtime this RuntimeManager is managing. + */ + std::shared_ptr runtime; + /** + Holds the error handler that will be invoked when any kind of error occurs. + */ + std::shared_ptr errorHandler; + /** + Holds the Scheduler that is responsible for scheduling work on the UI- or + React-JS Thread. + */ + std::shared_ptr scheduler; + /** + Holds a list of adapted Worklets which are cached to avoid unneccessary + recreation. + */ + std::unique_ptr workletsCache; + /** + Holds the JSI-Value Store where JSI::Values are cached on a + per-RuntimeManager basis. + */ + std::shared_ptr storeUserData; + + private: + void clearStore() { + const std::lock_guard lock(storeUserData->storeMutex); + storeUserData->store.clear(); + } +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Scheduler.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Scheduler.h new file mode 100644 index 0000000..295dbeb --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/Scheduler.h @@ -0,0 +1,89 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include + +namespace reanimated { + +// +// Copyright (c) 2013 Juan Palacios juan.palacios.puyana@gmail.com +// Subject to the BSD 2-Clause License +// - see < http://opensource.org/licenses/BSD-2-Clause> +// +template +class Queue { + public: + T pop() { + std::unique_lock mlock(mutex_); + while (queue_.empty()) { + cond_.wait(mlock); + } + auto item = queue_.front(); + queue_.pop(); + return item; + } + + void pop(T &item) { + std::unique_lock mlock(mutex_); + while (queue_.empty()) { + cond_.wait(mlock); + } + item = queue_.front(); + queue_.pop(); + } + + void push(const T &item) { + std::unique_lock mlock(mutex_); + queue_.push(item); + mlock.unlock(); + cond_.notify_one(); + } + + void push(T &&item) { + std::unique_lock mlock(mutex_); + queue_.push(std::move(item)); + mlock.unlock(); + cond_.notify_one(); + } + + size_t getSize() { + std::unique_lock mlock(mutex_); + const size_t res = queue_.size(); + mlock.unlock(); + cond_.notify_one(); + return res; + } + + private: + std::queue queue_; + std::mutex mutex_; + std::condition_variable cond_; +}; + +class RuntimeManager; + +class Scheduler { + public: + Scheduler(); + void scheduleOnJS(std::function job); + void setJSCallInvoker( + std::shared_ptr jsCallInvoker); + void setRuntimeManager(std::shared_ptr runtimeManager); + virtual void scheduleOnUI(std::function job); + virtual void triggerUI(); + virtual ~Scheduler(); + + protected: + std::atomic scheduledOnUI{}; + Queue> uiJobs; + std::shared_ptr jsCallInvoker_; + std::weak_ptr runtimeManager; +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ShareableValue.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ShareableValue.h new file mode 100644 index 0000000..9d54763 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ShareableValue.h @@ -0,0 +1,63 @@ +#pragma once + +#include +#include +#include +#include +#include +#include +#include "AnimatedSensorModule.h" +#include "HostFunctionHandler.h" +#include "JSIStoreValueUser.h" +#include "LayoutAnimationsProxy.h" +#include "RuntimeManager.h" +#include "Scheduler.h" +#include "SharedParent.h" +#include "ValueWrapper.h" +#include "WorkletsCache.h" + +using namespace facebook; + +namespace reanimated { + +class ShareableValue : public std::enable_shared_from_this, + public StoreUser { + friend WorkletsCache; + friend FrozenObject; + friend LayoutAnimationsProxy; + friend NativeReanimatedModule; + friend AnimatedSensorModule; + friend void extractMutables( + jsi::Runtime &rt, + std::shared_ptr sv, + std::vector> &res); + + private: + RuntimeManager *runtimeManager; + std::unique_ptr valueContainer; + std::unique_ptr hostValue; + std::weak_ptr remoteValue; + bool containsHostFunction = false; + + ShareableValue(RuntimeManager *runtimeManager, std::shared_ptr s) + : StoreUser(s, *runtimeManager), runtimeManager(runtimeManager) {} + + jsi::Value toJSValue(jsi::Runtime &rt); + jsi::Object createHost( + jsi::Runtime &rt, + std::shared_ptr host); + void adapt(jsi::Runtime &rt, const jsi::Value &value, ValueType objectType); + void adaptCache(jsi::Runtime &rt, const jsi::Value &value); + std::string demangleExceptionName(std::string toDemangle); + + public: + ValueType type = ValueType::UndefinedType; + static std::shared_ptr adapt( + jsi::Runtime &rt, + const jsi::Value &value, + RuntimeManager *runtimeManager, + ValueType objectType = ValueType::UndefinedType); + jsi::Value getValue(jsi::Runtime &rt); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SharedParent.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SharedParent.h new file mode 100644 index 0000000..88a28d8 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SharedParent.h @@ -0,0 +1,27 @@ +#pragma once + +namespace reanimated { + +enum class ValueType { + UndefinedType, + NullType, + BoolType, + NumberType, + StringType, + RemoteObjectType, // object that can be instantiated on host side and modified + // on the remote (worklet) side + MutableValueType, // object with 'value' property that can be updated and read + // from any thread + HostFunctionType, // function that will be executed asynchronously on the host + // runtime + WorkletFunctionType, // function that gets run on the UI thread + FrozenObjectType, // frozen object, can only be set and never modified + FrozenArrayType, // frozen array, can only be set and never modified +}; + +class ShareableValue; +class MutableValue; +class RemoteObject; +class NativeReanimatedModule; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SingleInstanceChecker.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SingleInstanceChecker.h new file mode 100644 index 0000000..af3e0c5 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SingleInstanceChecker.h @@ -0,0 +1,66 @@ +#pragma once + +#ifdef DEBUG + +#include + +#include +#include + +#ifdef ANDROID +#include +#endif + +namespace reanimated { + +// This is a class that counts how many instances of a different class there +// are. It is meant only to be used with classes that should only have one +// instance. + +template +class SingleInstanceChecker { + public: + SingleInstanceChecker(); + ~SingleInstanceChecker(); + + private: + void assertWithMessage(bool condition, std::string message) { + if (!condition) { +#ifdef ANDROID + __android_log_print( + ANDROID_LOG_WARN, "Reanimated", "%s", message.c_str()); +#else + std::cerr << "[Reanimated] " << message << std::endl; +#endif + } + } + + // A static field will exist separately for every class template. + // This has to be inline for automatic initialization. + inline static int instanceCount_; +}; + +template +SingleInstanceChecker::SingleInstanceChecker() { + int status = 0; + std::string className = + __cxxabiv1::__cxa_demangle(typeid(T).name(), nullptr, nullptr, &status); + + // Only one instance should exist, but it is possible for two instances + // to co-exist during a reload. + assertWithMessage( + instanceCount_ <= 1, + "More than one instance of " + className + + " present. This may indicate a memory leak due to a retain cycle."); + + instanceCount_++; +} + +template +SingleInstanceChecker::~SingleInstanceChecker() { + instanceCount_--; +} + +} // namespace reanimated + +#endif // DEBUG diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SpeedChecker.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SpeedChecker.h new file mode 100644 index 0000000..9b06830 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/SpeedChecker.h @@ -0,0 +1,29 @@ +#pragma once + +#define CHECK_SPEED 1 + +#include +#include +#include +#include +#include "./Logger.h" + +namespace reanimated { + +class SpeedChecker { + public: + static void checkSpeed(std::string tag, std::function fun) { +#if CHECK_SPEED + auto start = std::chrono::system_clock::now(); +#endif + fun(); +#if CHECK_SPEED + auto end = std::chrono::system_clock::now(); + std::chrono::duration elapsed_seconds = end - start; + tag += " " + std::to_string(elapsed_seconds.count()) + "s"; + Logger::log(tag.c_str()); +#endif + } +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/UIResponder+Reanimated.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/UIResponder+Reanimated.h new file mode 100644 index 0000000..0805b0d --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/UIResponder+Reanimated.h @@ -0,0 +1,10 @@ +#import +#import + +#ifndef DONT_AUTOINSTALL_REANIMATED + +@interface NSObject (Reanimated) + +@end + +#endif diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ValueWrapper.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ValueWrapper.h new file mode 100644 index 0000000..beaf803 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/ValueWrapper.h @@ -0,0 +1,158 @@ +#pragma once + +#include +#include +#include +#include +#include "HostFunctionHandler.h" +#include "JSIStoreValueUser.h" +#include "SharedParent.h" +#include "WorkletsCache.h" + +namespace reanimated { + +class HostFunctionWrapper; +class AnimatedSensorModule; + +class ValueWrapper { + friend AnimatedSensorModule; + + public: + ValueWrapper() {} + explicit ValueWrapper(ValueType _type) : type(_type) {} + ValueType getType() const { + return type; + } + + virtual ~ValueWrapper() {} + + static inline bool asBoolean( + const std::unique_ptr &valueContainer); + static inline double asNumber( + const std::unique_ptr &valueContainer); + static inline const std::string &asString( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asHostFunction( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asFrozenObject( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asRemoteObject( + const std::unique_ptr &valueContainer); + static inline std::vector> &asFrozenArray( + const std::unique_ptr &valueContainer); + static inline const std::shared_ptr &asMutableValue( + const std::unique_ptr &valueContainer); + + static const HostFunctionWrapper *asHostFunctionWrapper( + const std::unique_ptr &valueContainer); + + protected: + ValueType type; +}; + +class BooleanValueWrapper : public ValueWrapper { + public: + explicit BooleanValueWrapper(const bool _value) + : ValueWrapper(ValueType::BoolType), value(_value) {} + bool value; +}; + +class NumberValueWrapper : public ValueWrapper { + public: + explicit NumberValueWrapper(const double _value) + : ValueWrapper(ValueType::NumberType), value(_value) {} + double value; +}; + +class StringValueWrapper : public ValueWrapper { + public: + explicit StringValueWrapper(const std::string &_value) + : ValueWrapper(ValueType::StringType), value(_value) {} + std::string value; +}; + +class HostFunctionWrapper : public ValueWrapper { + public: + explicit HostFunctionWrapper( + const std::shared_ptr &_value) + : ValueWrapper(ValueType::HostFunctionType), value(_value) {} + std::shared_ptr value; +}; + +class FrozenObjectWrapper : public ValueWrapper { + public: + explicit FrozenObjectWrapper(const std::shared_ptr &_value) + : ValueWrapper(ValueType::FrozenObjectType), value(_value) {} + std::shared_ptr value; +}; + +class RemoteObjectWrapper : public ValueWrapper { + public: + explicit RemoteObjectWrapper(const std::shared_ptr &_value) + : ValueWrapper(ValueType::RemoteObjectType), value(_value) {} + std::shared_ptr value; +}; + +class FrozenArrayWrapper : public ValueWrapper { + public: + FrozenArrayWrapper() : ValueWrapper(ValueType::FrozenArrayType) {} + explicit FrozenArrayWrapper( + const std::vector> &_value) + : ValueWrapper(ValueType::FrozenArrayType), value(_value) {} + std::vector> value; +}; + +class MutableValueWrapper : public ValueWrapper { + public: + explicit MutableValueWrapper(const std::shared_ptr &_value) + : ValueWrapper(ValueType::MutableValueType), value(_value) {} + std::shared_ptr value; +}; + +inline bool ValueWrapper::asBoolean( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline double ValueWrapper::asNumber( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::string &ValueWrapper::asString( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asHostFunction( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asFrozenObject( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asRemoteObject( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline std::vector> + &ValueWrapper::asFrozenArray( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const std::shared_ptr &ValueWrapper::asMutableValue( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get())->value; +} + +inline const HostFunctionWrapper *ValueWrapper::asHostFunctionWrapper( + const std::unique_ptr &valueContainer) { + return static_cast(valueContainer.get()); +} + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/WorkletEventHandler.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/WorkletEventHandler.h new file mode 100644 index 0000000..ca252cd --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/WorkletEventHandler.h @@ -0,0 +1,30 @@ +#pragma once + +#include +#include +#include + +using namespace facebook; + +namespace reanimated { + +class EventHandlerRegistry; + +class WorkletEventHandler { + friend EventHandlerRegistry; + + private: + unsigned long id; + std::string eventName; + jsi::Function handler; + + public: + WorkletEventHandler( + unsigned long id, + std::string eventName, + jsi::Function &&handler) + : id(id), eventName(eventName), handler(std::move(handler)) {} + void process(jsi::Runtime &rt, const jsi::Value &eventValue); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/WorkletsCache.h b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/WorkletsCache.h new file mode 100644 index 0000000..b1b0e48 --- /dev/null +++ b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/Headers/WorkletsCache.h @@ -0,0 +1,24 @@ +#pragma once + +#include +#include +#include +#include + +namespace reanimated { + +using namespace facebook; + +class FrozenObject; + +class WorkletsCache { + private: + std::unordered_map> worklets; + + public: + std::shared_ptr getFunction( + jsi::Runtime &rt, + std::shared_ptr frozenObj); +}; + +} // namespace reanimated diff --git a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/libRNReanimated.a b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/libRNReanimated.a index 7595d5d..b7c554c 100644 Binary files a/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/libRNReanimated.a and b/Frameworks/RNReanimated.xcframework/ios-arm64_x86_64-simulator/libRNReanimated.a differ diff --git a/Frameworks/RNSVG.xcframework/Info.plist b/Frameworks/RNSVG.xcframework/Info.plist index 5534e77..651a8a6 100644 --- a/Frameworks/RNSVG.xcframework/Info.plist +++ b/Frameworks/RNSVG.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libRNSVG.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNSVG.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libRNSVG.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libRNSVG.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNSVG.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/RNSVG.xcframework/ios-arm64/libRNSVG.a b/Frameworks/RNSVG.xcframework/ios-arm64/libRNSVG.a index ccb8b15..373b8bb 100644 Binary files a/Frameworks/RNSVG.xcframework/ios-arm64/libRNSVG.a and b/Frameworks/RNSVG.xcframework/ios-arm64/libRNSVG.a differ diff --git a/Frameworks/RNSVG.xcframework/ios-arm64_x86_64-simulator/libRNSVG.a b/Frameworks/RNSVG.xcframework/ios-arm64_x86_64-simulator/libRNSVG.a index 30d0c40..5f66018 100644 Binary files a/Frameworks/RNSVG.xcframework/ios-arm64_x86_64-simulator/libRNSVG.a and b/Frameworks/RNSVG.xcframework/ios-arm64_x86_64-simulator/libRNSVG.a differ diff --git a/Frameworks/RNScreens.xcframework/Info.plist b/Frameworks/RNScreens.xcframework/Info.plist index b966bb8..6b3b062 100644 --- a/Frameworks/RNScreens.xcframework/Info.plist +++ b/Frameworks/RNScreens.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libRNScreens.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNScreens.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libRNScreens.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libRNScreens.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNScreens.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTImageComponentView+RNSScreenStackHeaderConfig.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTImageComponentView+RNSScreenStackHeaderConfig.h new file mode 100644 index 0000000..ca75f92 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTImageComponentView+RNSScreenStackHeaderConfig.h @@ -0,0 +1,11 @@ +#ifdef RCT_NEW_ARCH_ENABLED + +#include + +@interface RCTImageComponentView (RNSScreenStackHeaderConfig) + +- (UIImage *)image; + +@end + +#endif // RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTSurfaceTouchHandler+RNSUtility.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTSurfaceTouchHandler+RNSUtility.h new file mode 100644 index 0000000..2f25750 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTSurfaceTouchHandler+RNSUtility.h @@ -0,0 +1,15 @@ +#ifdef RCT_NEW_ARCH_ENABLED + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RCTSurfaceTouchHandler (RNSUtility) + +- (void)rnscreens_cancelTouches; + +@end + +NS_ASSUME_NONNULL_END + +#endif // RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTTouchHandler+RNSUtility.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTTouchHandler+RNSUtility.h new file mode 100644 index 0000000..5482488 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RCTTouchHandler+RNSUtility.h @@ -0,0 +1,15 @@ +#ifndef RCT_NEW_ARCH_ENABLED + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RCTTouchHandler (RNSUtility) + +- (void)rnscreens_cancelTouches; + +@end + +NS_ASSUME_NONNULL_END + +#endif // !RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSConvert.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSConvert.h new file mode 100644 index 0000000..7f81655 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSConvert.h @@ -0,0 +1,44 @@ +#ifdef RCT_NEW_ARCH_ENABLED +#import +#import "RNSEnums.h" + +namespace react = facebook::react; + +@interface RNSConvert : NSObject + ++ (UISemanticContentAttribute)UISemanticContentAttributeFromCppEquivalent: + (react::RNSScreenStackHeaderConfigDirection)direction; + ++ (UINavigationItemBackButtonDisplayMode)UINavigationItemBackButtonDisplayModeFromCppEquivalent: + (react::RNSScreenStackHeaderConfigBackButtonDisplayMode)backButtonDisplayMode; + ++ (RNSScreenStackPresentation)RNSScreenStackPresentationFromCppEquivalent: + (react::RNSScreenStackPresentation)stackPresentation; + ++ (RNSScreenStackAnimation)RNSScreenStackAnimationFromCppEquivalent:(react::RNSScreenStackAnimation)stackAnimation; + ++ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewTypeFromCppEquivalent: + (react::RNSScreenStackHeaderSubviewType)subviewType; + ++ (RNSScreenReplaceAnimation)RNSScreenReplaceAnimationFromCppEquivalent: + (react::RNSScreenReplaceAnimation)replaceAnimation; + ++ (RNSScreenSwipeDirection)RNSScreenSwipeDirectionFromCppEquivalent:(react::RNSScreenSwipeDirection)swipeDirection; + ++ (RNSScreenDetentType)RNSScreenDetentTypeFromAllowedDetents:(react::RNSScreenSheetAllowedDetents)allowedDetents; + ++ (RNSScreenDetentType)RNSScreenDetentTypeFromLargestUndimmedDetent:(react::RNSScreenSheetLargestUndimmedDetent)detent; + ++ (NSDictionary *)gestureResponseDistanceDictFromCppStruct: + (const react::RNSScreenGestureResponseDistanceStruct &)gestureResponseDistance; + +#if !TARGET_OS_VISION ++ (UITextAutocapitalizationType)UITextAutocapitalizationTypeFromCppEquivalent: + (react::RNSSearchBarAutoCapitalize)autoCapitalize; +#endif + ++ (RNSSearchBarPlacement)RNSScreenSearchBarPlacementFromCppEquivalent:(react::RNSSearchBarPlacement)placement; + +@end + +#endif // RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSEnums.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSEnums.h new file mode 100644 index 0000000..ff2560b --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSEnums.h @@ -0,0 +1,72 @@ +typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) { + RNSScreenStackPresentationPush, + RNSScreenStackPresentationModal, + RNSScreenStackPresentationTransparentModal, + RNSScreenStackPresentationContainedModal, + RNSScreenStackPresentationContainedTransparentModal, + RNSScreenStackPresentationFullScreenModal, + RNSScreenStackPresentationFormSheet +}; + +typedef NS_ENUM(NSInteger, RNSScreenStackAnimation) { + RNSScreenStackAnimationDefault, + RNSScreenStackAnimationNone, + RNSScreenStackAnimationFade, + RNSScreenStackAnimationFadeFromBottom, + RNSScreenStackAnimationFlip, + RNSScreenStackAnimationSlideFromBottom, + RNSScreenStackAnimationSimplePush, + RNSScreenStackAnimationSlideFromLeft, +}; + +typedef NS_ENUM(NSInteger, RNSScreenReplaceAnimation) { + RNSScreenReplaceAnimationPop, + RNSScreenReplaceAnimationPush, +}; + +typedef NS_ENUM(NSInteger, RNSScreenSwipeDirection) { + RNSScreenSwipeDirectionHorizontal, + RNSScreenSwipeDirectionVertical, +}; + +typedef NS_ENUM(NSInteger, RNSActivityState) { + RNSActivityStateInactive = 0, + RNSActivityStateTransitioningOrBelowTop = 1, + RNSActivityStateOnTop = 2 +}; + +typedef NS_ENUM(NSInteger, RNSStatusBarStyle) { + RNSStatusBarStyleAuto, + RNSStatusBarStyleInverted, + RNSStatusBarStyleLight, + RNSStatusBarStyleDark, +}; + +typedef NS_ENUM(NSInteger, RNSWindowTrait) { + RNSWindowTraitStyle, + RNSWindowTraitAnimation, + RNSWindowTraitHidden, + RNSWindowTraitOrientation, + RNSWindowTraitHomeIndicatorHidden, +}; + +typedef NS_ENUM(NSInteger, RNSScreenStackHeaderSubviewType) { + RNSScreenStackHeaderSubviewTypeBackButton, + RNSScreenStackHeaderSubviewTypeLeft, + RNSScreenStackHeaderSubviewTypeRight, + RNSScreenStackHeaderSubviewTypeTitle, + RNSScreenStackHeaderSubviewTypeCenter, + RNSScreenStackHeaderSubviewTypeSearchBar, +}; + +typedef NS_ENUM(NSInteger, RNSScreenDetentType) { + RNSScreenDetentTypeMedium, + RNSScreenDetentTypeLarge, + RNSScreenDetentTypeAll, +}; + +typedef NS_ENUM(NSInteger, RNSSearchBarPlacement) { + RNSSearchBarPlacementAutomatic, + RNSSearchBarPlacementInline, + RNSSearchBarPlacementStacked, +}; diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSFullWindowOverlay.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSFullWindowOverlay.h index 3ed1743..65d6100 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSFullWindowOverlay.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSFullWindowOverlay.h @@ -1,6 +1,15 @@ +#import + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else #import #import -#import +#endif + +#ifdef RCT_NEW_ARCH_ENABLED +namespace react = facebook::react; +#endif // RCT_NEW_ARCH_ENABLED @interface RNSFullWindowOverlayManager : RCTViewManager @@ -10,6 +19,16 @@ @end -@interface RNSFullWindowOverlay : RCTView +@interface RNSFullWindowOverlay : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + RCTView +#endif // RCT_NEW_ARCH_ENABLED + +#ifdef RCT_NEW_ARCH_ENABLED +@property (nonatomic) react::LayoutMetrics oldLayoutMetrics; +@property (nonatomic) react::LayoutMetrics newLayoutMetrics; +#endif // RCT_NEW_ARCH_ENABLED @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSHeaderHeightChangeEvent.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSHeaderHeightChangeEvent.h new file mode 100644 index 0000000..73349da --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSHeaderHeightChangeEvent.h @@ -0,0 +1,8 @@ +#import +#import + +@interface RNSHeaderHeightChangeEvent : NSObject + +- (instancetype)initWithEventName:(NSString *)eventName reactTag:(NSNumber *)reactTag headerHeight:(double)headerHeight; + +@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSModalScreen.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSModalScreen.h new file mode 100644 index 0000000..d0a4603 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSModalScreen.h @@ -0,0 +1,8 @@ +#import "RNSScreen.h" + +@interface RNSModalScreen : RNSScreenView +@end + +@interface RNSModalScreenManager : RNSScreenManager + +@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSModule.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSModule.h new file mode 100644 index 0000000..bdd4fe3 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSModule.h @@ -0,0 +1,19 @@ + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else +#import +#endif + +NS_ASSUME_NONNULL_BEGIN + +@interface RNSModule : NSObject +#ifdef RCT_NEW_ARCH_ENABLED + +#else + +#endif + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreen.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreen.h index 95353c0..bbdedcd 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreen.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreen.h @@ -1,59 +1,20 @@ #import -#import #import +#import "RNSEnums.h" #import "RNSScreenContainer.h" -typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) { - RNSScreenStackPresentationPush, - RNSScreenStackPresentationModal, - RNSScreenStackPresentationTransparentModal, - RNSScreenStackPresentationContainedModal, - RNSScreenStackPresentationContainedTransparentModal, - RNSScreenStackPresentationFullScreenModal, - RNSScreenStackPresentationFormSheet -}; +#if RCT_NEW_ARCH_ENABLED +#import +#else +#import +#endif // RCT_NEW_ARCH_ENABLED -typedef NS_ENUM(NSInteger, RNSScreenStackAnimation) { - RNSScreenStackAnimationDefault, - RNSScreenStackAnimationNone, - RNSScreenStackAnimationFade, - RNSScreenStackAnimationFadeFromBottom, - RNSScreenStackAnimationFlip, - RNSScreenStackAnimationSlideFromBottom, - RNSScreenStackAnimationSimplePush, -}; +NS_ASSUME_NONNULL_BEGIN -typedef NS_ENUM(NSInteger, RNSScreenReplaceAnimation) { - RNSScreenReplaceAnimationPop, - RNSScreenReplaceAnimationPush, -}; - -typedef NS_ENUM(NSInteger, RNSScreenSwipeDirection) { - RNSScreenSwipeDirectionHorizontal, - RNSScreenSwipeDirectionVertical, -}; - -typedef NS_ENUM(NSInteger, RNSActivityState) { - RNSActivityStateInactive = 0, - RNSActivityStateTransitioningOrBelowTop = 1, - RNSActivityStateOnTop = 2 -}; - -typedef NS_ENUM(NSInteger, RNSStatusBarStyle) { - RNSStatusBarStyleAuto, - RNSStatusBarStyleInverted, - RNSStatusBarStyleLight, - RNSStatusBarStyleDark, -}; - -typedef NS_ENUM(NSInteger, RNSWindowTrait) { - RNSWindowTraitStyle, - RNSWindowTraitAnimation, - RNSWindowTraitHidden, - RNSWindowTraitOrientation, - RNSWindowTraitHomeIndicatorHidden, -}; +#ifdef RCT_NEW_ARCH_ENABLED +namespace react = facebook::react; +#endif // RCT_NEW_ARCH_ENABLED @interface RCTConvert (RNSScreen) @@ -62,65 +23,124 @@ typedef NS_ENUM(NSInteger, RNSWindowTrait) { #if !TARGET_OS_TV + (RNSStatusBarStyle)RNSStatusBarStyle:(id)json; ++ (UIStatusBarAnimation)UIStatusBarAnimation:(id)json; + (UIInterfaceOrientationMask)UIInterfaceOrientationMask:(id)json; #endif @end -@interface RNSScreen : UIViewController +@class RNSScreenView; + +@interface RNSScreen : UIViewController - (instancetype)initWithView:(UIView *)view; -- (void)notifyFinishTransitioning; - (UIViewController *)findChildVCForConfigAndTrait:(RNSWindowTrait)trait includingModals:(BOOL)includingModals; +- (BOOL)hasNestedStack; +- (void)calculateAndNotifyHeaderHeightChangeIsModal:(BOOL)isModal; +- (void)notifyFinishTransitioning; +- (RNSScreenView *)screenView; +#ifdef RCT_NEW_ARCH_ENABLED +- (void)setViewToSnapshot:(UIView *)snapshot; +- (CGFloat)calculateHeaderHeightIsModal:(BOOL)isModal; +#endif @end -@interface RNSScreenManager : RCTViewManager +@class RNSScreenStackHeaderConfig; -@end +@interface RNSScreenView : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + RCTView +#endif -@interface RNSScreenView : RCTView - -@property (nonatomic, copy) RCTDirectEventBlock onAppear; -@property (nonatomic, copy) RCTDirectEventBlock onDisappear; -@property (nonatomic, copy) RCTDirectEventBlock onDismissed; -@property (nonatomic, copy) RCTDirectEventBlock onWillAppear; -@property (nonatomic, copy) RCTDirectEventBlock onWillDisappear; -@property (nonatomic, copy) RCTDirectEventBlock onNativeDismissCancelled; -@property (nonatomic, copy) RCTDirectEventBlock onTransitionProgress; - -@property (weak, nonatomic) UIView *reactSuperview; -@property (nonatomic, retain) UIViewController *controller; -@property (nonatomic, readonly) BOOL dismissed; -@property (nonatomic) int activityState; +@property (nonatomic) BOOL fullScreenSwipeEnabled; @property (nonatomic) BOOL gestureEnabled; -@property (nonatomic) RNSScreenStackAnimation stackAnimation; -@property (nonatomic) RNSScreenStackPresentation stackPresentation; -@property (nonatomic) RNSScreenReplaceAnimation replaceAnimation; -@property (nonatomic) RNSScreenSwipeDirection swipeDirection; -@property (nonatomic) BOOL preventNativeDismiss; -@property (nonatomic) BOOL hasOrientationSet; +@property (nonatomic) BOOL hasStatusBarHiddenSet; @property (nonatomic) BOOL hasStatusBarStyleSet; @property (nonatomic) BOOL hasStatusBarAnimationSet; -@property (nonatomic) BOOL hasStatusBarHiddenSet; @property (nonatomic) BOOL hasHomeIndicatorHiddenSet; -@property (nonatomic) BOOL customAnimationOnSwipe; -@property (nonatomic) BOOL fullScreenSwipeEnabled; +@property (nonatomic) BOOL hasOrientationSet; +@property (nonatomic) RNSScreenStackAnimation stackAnimation; +@property (nonatomic) RNSScreenStackPresentation stackPresentation; +@property (nonatomic) RNSScreenSwipeDirection swipeDirection; +@property (nonatomic) RNSScreenReplaceAnimation replaceAnimation; + @property (nonatomic, retain) NSNumber *transitionDuration; +@property (nonatomic, readonly) BOOL dismissed; +@property (nonatomic) BOOL hideKeyboardOnSwipe; +@property (nonatomic) BOOL customAnimationOnSwipe; +@property (nonatomic) BOOL preventNativeDismiss; +@property (nonatomic, retain) RNSScreen *controller; +@property (nonatomic, copy) NSDictionary *gestureResponseDistance; +@property (nonatomic) int activityState; +@property (weak, nonatomic) UIView *reactSuperview; #if !TARGET_OS_TV @property (nonatomic) RNSStatusBarStyle statusBarStyle; @property (nonatomic) UIStatusBarAnimation statusBarAnimation; -@property (nonatomic) BOOL statusBarHidden; @property (nonatomic) UIInterfaceOrientationMask screenOrientation; +@property (nonatomic) BOOL statusBarHidden; @property (nonatomic) BOOL homeIndicatorHidden; -#endif + +// Props controlling UISheetPresentationController +@property (nonatomic) RNSScreenDetentType sheetAllowedDetents; +@property (nonatomic) RNSScreenDetentType sheetLargestUndimmedDetent; +@property (nonatomic) BOOL sheetGrabberVisible; +@property (nonatomic) CGFloat sheetCornerRadius; +@property (nonatomic) BOOL sheetExpandsWhenScrolledToEdge; +#endif // !TARGET_OS_TV + +#ifdef RCT_NEW_ARCH_ENABLED +// we recreate the behavior of `reactSetFrame` on new architecture +@property (nonatomic) react::LayoutMetrics oldLayoutMetrics; +@property (nonatomic) react::LayoutMetrics newLayoutMetrics; +@property (weak, nonatomic) RNSScreenStackHeaderConfig *config; +@property (nonatomic, readonly) BOOL hasHeaderConfig; +#else +@property (nonatomic, copy) RCTDirectEventBlock onAppear; +@property (nonatomic, copy) RCTDirectEventBlock onDisappear; +@property (nonatomic, copy) RCTDirectEventBlock onDismissed; +@property (nonatomic, copy) RCTDirectEventBlock onHeaderHeightChange; +@property (nonatomic, copy) RCTDirectEventBlock onWillAppear; +@property (nonatomic, copy) RCTDirectEventBlock onWillDisappear; +@property (nonatomic, copy) RCTDirectEventBlock onNativeDismissCancelled; +@property (nonatomic, copy) RCTDirectEventBlock onTransitionProgress; +@property (nonatomic, copy) RCTDirectEventBlock onGestureCancel; +#endif // RCT_NEW_ARCH_ENABLED - (void)notifyFinishTransitioning; +- (void)notifyHeaderHeightChange:(double)height; + +#ifdef RCT_NEW_ARCH_ENABLED +- (void)notifyWillAppear; +- (void)notifyWillDisappear; +- (void)notifyAppear; +- (void)notifyDisappear; +- (void)updateBounds; +- (void)notifyDismissedWithCount:(int)dismissCount; +- (instancetype)initWithFrame:(CGRect)frame; +#else +- (instancetype)initWithBridge:(RCTBridge *)bridge; +#endif // RCT_NEW_ARCH_ENABLED + - (void)notifyTransitionProgress:(double)progress closing:(BOOL)closing goingForward:(BOOL)goingForward; +- (void)notifyDismissCancelledWithDismissCount:(int)dismissCount; +- (BOOL)isModal; +- (BOOL)isPresentedAsNativeModal; + +/// Looks for header configuration in instance's `reactSubviews` and returns it. If not present returns `nil`. +- (RNSScreenStackHeaderConfig *_Nullable)findHeaderConfig; @end @interface UIView (RNSScreen) - (UIViewController *)parentViewController; @end + +@interface RNSScreenManager : RCTViewManager + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenComponentView.h deleted file mode 100644 index 4fd3044..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenComponentView.h +++ /dev/null @@ -1,23 +0,0 @@ -#import - -#import -#import "RNSScreenController.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface RNSScreenComponentView : RCTViewComponentView - -@property (weak, nonatomic) UIView *reactSuperview; -@property (weak, nonatomic) UIView *config; -@property (nonatomic, retain) RNSScreenController *controller; - -- (void)notifyWillAppear; -- (void)notifyWillDisappear; -- (void)notifyAppear; -- (void)notifyDisappear; -- (void)updateBounds; -- (void)notifyDismissedWithCount:(int)dismissCount; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenContainer.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenContainer.h index 0493e81..998aa97 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenContainer.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenContainer.h @@ -1,5 +1,12 @@ +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else +#endif + #import +NS_ASSUME_NONNULL_BEGIN + @protocol RNSScreenContainerDelegate - (void)markChildUpdated; @@ -7,11 +14,11 @@ @end -@protocol RNScreensViewControllerDelegate +@protocol RNSViewControllerDelegate @end -@interface RNScreensViewController : UIViewController +@interface RNSViewController : UIViewController - (UIViewController *)findActiveChildVC; @@ -21,7 +28,12 @@ @end -@interface RNSScreenContainerView : UIView +@interface RNSScreenContainerView : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif @property (nonatomic, retain) UIViewController *controller; @property (nonatomic, retain) NSMutableArray *reactSubviews; @@ -29,3 +41,5 @@ - (void)maybeDismissVC; @end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenController.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenController.h deleted file mode 100644 index 889a493..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenController.h +++ /dev/null @@ -1,10 +0,0 @@ -#import - -@interface RNSScreenController : UIViewController - -- (instancetype)initWithView:(UIView *)view; -- (void)takeSnapshot; -- (void)setViewToSnapshot; -- (void)resetViewToScreen; - -@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenNavigationContainer.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenNavigationContainer.h index bec5abe..defd0d5 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenNavigationContainer.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenNavigationContainer.h @@ -3,7 +3,7 @@ #import "RNSScreenContainer.h" #import "RNSScreenStack.h" -@interface RNScreensContainerNavigationController : RNScreensNavigationController +@interface RNSContainerNavigationController : RNSNavigationController @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStack.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStack.h index a383cd2..516fc49 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStack.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStack.h @@ -1,21 +1,43 @@ +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else #import #import +#endif #import "RNSScreenContainer.h" -@interface RNScreensNavigationController : UINavigationController +NS_ASSUME_NONNULL_BEGIN + +@interface RNSNavigationController : UINavigationController @end -@interface RNSScreenStackView : UIView - -@property (nonatomic, copy) RCTDirectEventBlock onFinishTransitioning; +@interface RNSScreenStackView : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif - (void)markChildUpdated; - (void)didUpdateChildren; +- (void)startScreenTransition; +- (void)updateScreenTransition:(double)progress; +- (void)finishScreenTransition:(BOOL)canceled; + +@property (nonatomic) BOOL customAnimation; +@property (nonatomic) BOOL disableSwipeBack; + +#ifdef RCT_NEW_ARCH_ENABLED +#else +@property (nonatomic, copy) RCTDirectEventBlock onFinishTransitioning; +#endif // RCT_NEW_ARCH_ENABLED @end @interface RNSScreenStackManager : RCTViewManager @end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackComponentView.h deleted file mode 100644 index e7b0f1a..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackComponentView.h +++ /dev/null @@ -1,15 +0,0 @@ -#import - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface RNSScreenStackComponentView : RCTViewComponentView - -@end - -@interface RNSScreenStackView : UIView -- (instancetype)initWithComponentView:(RNSScreenStackComponentView *)component; -@end - -NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfig.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfig.h index d3d9832..d88f8f9 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfig.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfig.h @@ -1,13 +1,36 @@ -#import +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else #import +#endif +#import #import "RNSScreen.h" +#import "RNSScreenStackHeaderSubview.h" #import "RNSSearchBar.h" -@interface RNSScreenStackHeaderConfig : UIView +@interface NSString (RNSStringUtil) + ++ (BOOL)RNSisBlank:(NSString *)string; + +@end + +@interface RNSScreenStackHeaderConfig : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif @property (nonatomic, weak) RNSScreenView *screenView; +#ifdef RCT_NEW_ARCH_ENABLED +@property (nonatomic) BOOL show; +#else +@property (nonatomic) UIBlurEffectStyle blurEffect; +@property (nonatomic) BOOL hide; +#endif + @property (nonatomic, retain) NSString *title; @property (nonatomic, retain) NSString *titleFontFamily; @property (nonatomic, retain) NSNumber *titleFontSize; @@ -16,10 +39,9 @@ @property (nonatomic, retain) NSString *backTitle; @property (nonatomic, retain) NSString *backTitleFontFamily; @property (nonatomic, retain) NSNumber *backTitleFontSize; +@property (nonatomic, getter=isBackTitleVisible) BOOL backTitleVisible; @property (nonatomic, retain) UIColor *backgroundColor; -@property (nonatomic) UIBlurEffectStyle blurEffect; @property (nonatomic, retain) UIColor *color; -@property (nonatomic) BOOL hide; @property (nonatomic) BOOL largeTitle; @property (nonatomic, retain) NSString *largeTitleFontFamily; @property (nonatomic, retain) NSNumber *largeTitleFontSize; @@ -28,11 +50,12 @@ @property (nonatomic) BOOL largeTitleHideShadow; @property (nonatomic, retain) UIColor *largeTitleColor; @property (nonatomic) BOOL hideBackButton; -@property (nonatomic) BOOL backButtonInCustomView; @property (nonatomic) BOOL disableBackButtonMenu; @property (nonatomic) BOOL hideShadow; @property (nonatomic) BOOL translucent; +@property (nonatomic) BOOL backButtonInCustomView; @property (nonatomic) UISemanticContentAttribute direction; +@property (nonatomic) UINavigationItemBackButtonDisplayMode backButtonDisplayMode; + (void)willShowViewController:(UIViewController *)vc animated:(BOOL)animated @@ -44,25 +67,10 @@ @end -typedef NS_ENUM(NSInteger, RNSScreenStackHeaderSubviewType) { - RNSScreenStackHeaderSubviewTypeBackButton, - RNSScreenStackHeaderSubviewTypeLeft, - RNSScreenStackHeaderSubviewTypeRight, - RNSScreenStackHeaderSubviewTypeTitle, - RNSScreenStackHeaderSubviewTypeCenter, - RNSScreenStackHeaderSubviewTypeSearchBar, -}; - @interface RCTConvert (RNSScreenStackHeader) -+ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewType:(id)json; + (UIBlurEffectStyle)UIBlurEffectStyle:(id)json; + (UISemanticContentAttribute)UISemanticContentAttribute:(id)json; - -@end - -@interface RNSScreenStackHeaderSubviewManager : RCTViewManager - -@property (nonatomic) RNSScreenStackHeaderSubviewType type; ++ (UINavigationItemBackButtonDisplayMode)UINavigationItemBackButtonDisplayMode:(id)json; @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfigComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfigComponentView.h deleted file mode 100644 index 7fd944f..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderConfigComponentView.h +++ /dev/null @@ -1,42 +0,0 @@ -#import - -#import - -#import "RNSScreenComponentView.h" -#import "RNSScreenStackHeaderSubviewComponentView.h" - -@interface RNSScreenStackHeaderConfigComponentView : RCTViewComponentView - -@property (nonatomic, weak) RNSScreenComponentView *screenView; -@property (nonatomic) NSMutableArray *reactSubviews; - -// Properties from props -@property (nonatomic) BOOL show; -@property (nonatomic) BOOL translucent; -@property (nonatomic) BOOL hideShadow; -@property (nonatomic, retain) NSString *title; -@property (nonatomic, retain) NSString *titleFontFamily; -@property (nonatomic, retain) NSNumber *titleFontSize; -@property (nonatomic, retain) NSString *titleFontWeight; -@property (nonatomic, retain) UIColor *titleColor; -@property (nonatomic) BOOL largeTitle; -@property (nonatomic, retain) NSString *largeTitleFontFamily; -@property (nonatomic, retain) NSNumber *largeTitleFontSize; -@property (nonatomic, retain) NSString *largeTitleFontWeight; -@property (nonatomic, retain) UIColor *largeTitleBackgroundColor; -@property (nonatomic) BOOL largeTitleHideShadow; -@property (nonatomic, retain) UIColor *largeTitleColor; -@property (nonatomic, retain) UIColor *backgroundColor; -@property (nonatomic, retain) UIColor *color; -@property (nonatomic) UISemanticContentAttribute direction; -@property (nonatomic, retain) NSString *backTitle; -@property (nonatomic, retain) NSString *backTitleFontFamily; -@property (nonatomic, retain) NSNumber *backTitleFontSize; -@property (nonatomic) BOOL disableBackButtonMenu; -@property (nonatomic) BOOL hideBackButton; - -+ (void)willShowViewController:(UIViewController *)vc - animated:(BOOL)animated - withConfig:(RNSScreenStackHeaderConfigComponentView *)config; - -@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderSubview.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderSubview.h new file mode 100644 index 0000000..6930491 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderSubview.h @@ -0,0 +1,44 @@ + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#endif + +#import +#import +#import "RNSEnums.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface RNSScreenStackHeaderSubview : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif + +@property (nonatomic) RNSScreenStackHeaderSubviewType type; + +@property (nonatomic, weak) UIView *reactSuperview; + +@property (nonatomic, weak) RCTBridge *bridge; + +#ifdef RCT_NEW_ARCH_ENABLED +#else +- (instancetype)initWithBridge:(RCTBridge *)bridge; +#endif // RCT_NEW_ARCH_ENABLED + +@end + +@interface RNSScreenStackHeaderSubviewManager : RCTViewManager + +@property (nonatomic) RNSScreenStackHeaderSubviewType type; + +@end + +@interface RCTConvert (RNSScreenStackHeaderSubview) + ++ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewType:(id)json; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderSubviewComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderSubviewComponentView.h deleted file mode 100644 index eaaa920..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenStackHeaderSubviewComponentView.h +++ /dev/null @@ -1,14 +0,0 @@ -#import - -#import -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface RNSScreenStackHeaderSubviewComponentView : RCTViewComponentView - -@property (nonatomic) facebook::react::RNSScreenStackHeaderSubviewType type; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenViewEvent.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenViewEvent.h new file mode 100644 index 0000000..b46e8a2 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenViewEvent.h @@ -0,0 +1,12 @@ +#import +#import + +@interface RNSScreenViewEvent : NSObject + +- (instancetype)initWithEventName:(NSString *)eventName + reactTag:(NSNumber *)reactTag + progress:(double)progress + closing:(int)closing + goingForward:(int)goingForward; + +@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenWindowTraits.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenWindowTraits.h index 1970b9d..0665bdc 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenWindowTraits.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSScreenWindowTraits.h @@ -4,7 +4,7 @@ + (void)updateWindowTraits; -#if !TARGET_OS_TV +#if !TARGET_OS_TV && !TARGET_OS_VISION + (void)assertViewControllerBasedStatusBarAppearenceSet; #endif + (void)updateStatusBarAppearance; diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSSearchBar.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSSearchBar.h index bf6476e..872ccc7 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSSearchBar.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSSearchBar.h @@ -1,19 +1,40 @@ #import +#ifdef RCT_NEW_ARCH_ENABLED +#import +#import +#endif + #import #import #import +#import "RNSEnums.h" -@interface RNSSearchBar : UIView +@interface RNSSearchBar : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif @property (nonatomic) BOOL hideWhenScrolling; - +@property (nonatomic) RNSSearchBarPlacement placement; @property (nonatomic, retain) UISearchController *controller; -@property (nonatomic, copy) RCTBubblingEventBlock onChangeText; -@property (nonatomic, copy) RCTBubblingEventBlock onCancelButtonPress; -@property (nonatomic, copy) RCTBubblingEventBlock onSearchButtonPress; -@property (nonatomic, copy) RCTBubblingEventBlock onFocus; -@property (nonatomic, copy) RCTBubblingEventBlock onBlur; + +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_16_0) && \ + __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_0 && !TARGET_OS_TV +- (UINavigationItemSearchBarPlacement)placementAsUINavigationItemSearchBarPlacement API_AVAILABLE(ios(16.0)) + API_UNAVAILABLE(tvos, watchos); +#endif // Check for iOS >= 16 && !TARGET_OS_TV + +#ifdef RCT_NEW_ARCH_ENABLED +#else +@property (nonatomic, copy) RCTDirectEventBlock onChangeText; +@property (nonatomic, copy) RCTDirectEventBlock onCancelButtonPress; +@property (nonatomic, copy) RCTDirectEventBlock onSearchButtonPress; +@property (nonatomic, copy) RCTDirectEventBlock onSearchFocus; +@property (nonatomic, copy) RCTDirectEventBlock onSearchBlur; +#endif @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSUIBarButtonItem.h b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSUIBarButtonItem.h index e35f290..d7c6c10 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSUIBarButtonItem.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64/Headers/RNSUIBarButtonItem.h @@ -1,3 +1,5 @@ +#import + @interface RNSUIBarButtonItem : UIBarButtonItem @property (nonatomic) BOOL menuHidden; diff --git a/Frameworks/RNScreens.xcframework/ios-arm64/libRNScreens.a b/Frameworks/RNScreens.xcframework/ios-arm64/libRNScreens.a index 61aab11..3ef80ff 100644 Binary files a/Frameworks/RNScreens.xcframework/ios-arm64/libRNScreens.a and b/Frameworks/RNScreens.xcframework/ios-arm64/libRNScreens.a differ diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTImageComponentView+RNSScreenStackHeaderConfig.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTImageComponentView+RNSScreenStackHeaderConfig.h new file mode 100644 index 0000000..ca75f92 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTImageComponentView+RNSScreenStackHeaderConfig.h @@ -0,0 +1,11 @@ +#ifdef RCT_NEW_ARCH_ENABLED + +#include + +@interface RCTImageComponentView (RNSScreenStackHeaderConfig) + +- (UIImage *)image; + +@end + +#endif // RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTSurfaceTouchHandler+RNSUtility.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTSurfaceTouchHandler+RNSUtility.h new file mode 100644 index 0000000..2f25750 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTSurfaceTouchHandler+RNSUtility.h @@ -0,0 +1,15 @@ +#ifdef RCT_NEW_ARCH_ENABLED + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RCTSurfaceTouchHandler (RNSUtility) + +- (void)rnscreens_cancelTouches; + +@end + +NS_ASSUME_NONNULL_END + +#endif // RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTouchHandler+RNSUtility.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTouchHandler+RNSUtility.h new file mode 100644 index 0000000..5482488 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RCTTouchHandler+RNSUtility.h @@ -0,0 +1,15 @@ +#ifndef RCT_NEW_ARCH_ENABLED + +#import + +NS_ASSUME_NONNULL_BEGIN + +@interface RCTTouchHandler (RNSUtility) + +- (void)rnscreens_cancelTouches; + +@end + +NS_ASSUME_NONNULL_END + +#endif // !RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSConvert.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSConvert.h new file mode 100644 index 0000000..7f81655 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSConvert.h @@ -0,0 +1,44 @@ +#ifdef RCT_NEW_ARCH_ENABLED +#import +#import "RNSEnums.h" + +namespace react = facebook::react; + +@interface RNSConvert : NSObject + ++ (UISemanticContentAttribute)UISemanticContentAttributeFromCppEquivalent: + (react::RNSScreenStackHeaderConfigDirection)direction; + ++ (UINavigationItemBackButtonDisplayMode)UINavigationItemBackButtonDisplayModeFromCppEquivalent: + (react::RNSScreenStackHeaderConfigBackButtonDisplayMode)backButtonDisplayMode; + ++ (RNSScreenStackPresentation)RNSScreenStackPresentationFromCppEquivalent: + (react::RNSScreenStackPresentation)stackPresentation; + ++ (RNSScreenStackAnimation)RNSScreenStackAnimationFromCppEquivalent:(react::RNSScreenStackAnimation)stackAnimation; + ++ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewTypeFromCppEquivalent: + (react::RNSScreenStackHeaderSubviewType)subviewType; + ++ (RNSScreenReplaceAnimation)RNSScreenReplaceAnimationFromCppEquivalent: + (react::RNSScreenReplaceAnimation)replaceAnimation; + ++ (RNSScreenSwipeDirection)RNSScreenSwipeDirectionFromCppEquivalent:(react::RNSScreenSwipeDirection)swipeDirection; + ++ (RNSScreenDetentType)RNSScreenDetentTypeFromAllowedDetents:(react::RNSScreenSheetAllowedDetents)allowedDetents; + ++ (RNSScreenDetentType)RNSScreenDetentTypeFromLargestUndimmedDetent:(react::RNSScreenSheetLargestUndimmedDetent)detent; + ++ (NSDictionary *)gestureResponseDistanceDictFromCppStruct: + (const react::RNSScreenGestureResponseDistanceStruct &)gestureResponseDistance; + +#if !TARGET_OS_VISION ++ (UITextAutocapitalizationType)UITextAutocapitalizationTypeFromCppEquivalent: + (react::RNSSearchBarAutoCapitalize)autoCapitalize; +#endif + ++ (RNSSearchBarPlacement)RNSScreenSearchBarPlacementFromCppEquivalent:(react::RNSSearchBarPlacement)placement; + +@end + +#endif // RCT_NEW_ARCH_ENABLED diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSEnums.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSEnums.h new file mode 100644 index 0000000..ff2560b --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSEnums.h @@ -0,0 +1,72 @@ +typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) { + RNSScreenStackPresentationPush, + RNSScreenStackPresentationModal, + RNSScreenStackPresentationTransparentModal, + RNSScreenStackPresentationContainedModal, + RNSScreenStackPresentationContainedTransparentModal, + RNSScreenStackPresentationFullScreenModal, + RNSScreenStackPresentationFormSheet +}; + +typedef NS_ENUM(NSInteger, RNSScreenStackAnimation) { + RNSScreenStackAnimationDefault, + RNSScreenStackAnimationNone, + RNSScreenStackAnimationFade, + RNSScreenStackAnimationFadeFromBottom, + RNSScreenStackAnimationFlip, + RNSScreenStackAnimationSlideFromBottom, + RNSScreenStackAnimationSimplePush, + RNSScreenStackAnimationSlideFromLeft, +}; + +typedef NS_ENUM(NSInteger, RNSScreenReplaceAnimation) { + RNSScreenReplaceAnimationPop, + RNSScreenReplaceAnimationPush, +}; + +typedef NS_ENUM(NSInteger, RNSScreenSwipeDirection) { + RNSScreenSwipeDirectionHorizontal, + RNSScreenSwipeDirectionVertical, +}; + +typedef NS_ENUM(NSInteger, RNSActivityState) { + RNSActivityStateInactive = 0, + RNSActivityStateTransitioningOrBelowTop = 1, + RNSActivityStateOnTop = 2 +}; + +typedef NS_ENUM(NSInteger, RNSStatusBarStyle) { + RNSStatusBarStyleAuto, + RNSStatusBarStyleInverted, + RNSStatusBarStyleLight, + RNSStatusBarStyleDark, +}; + +typedef NS_ENUM(NSInteger, RNSWindowTrait) { + RNSWindowTraitStyle, + RNSWindowTraitAnimation, + RNSWindowTraitHidden, + RNSWindowTraitOrientation, + RNSWindowTraitHomeIndicatorHidden, +}; + +typedef NS_ENUM(NSInteger, RNSScreenStackHeaderSubviewType) { + RNSScreenStackHeaderSubviewTypeBackButton, + RNSScreenStackHeaderSubviewTypeLeft, + RNSScreenStackHeaderSubviewTypeRight, + RNSScreenStackHeaderSubviewTypeTitle, + RNSScreenStackHeaderSubviewTypeCenter, + RNSScreenStackHeaderSubviewTypeSearchBar, +}; + +typedef NS_ENUM(NSInteger, RNSScreenDetentType) { + RNSScreenDetentTypeMedium, + RNSScreenDetentTypeLarge, + RNSScreenDetentTypeAll, +}; + +typedef NS_ENUM(NSInteger, RNSSearchBarPlacement) { + RNSSearchBarPlacementAutomatic, + RNSSearchBarPlacementInline, + RNSSearchBarPlacementStacked, +}; diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSFullWindowOverlay.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSFullWindowOverlay.h index 3ed1743..65d6100 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSFullWindowOverlay.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSFullWindowOverlay.h @@ -1,6 +1,15 @@ +#import + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else #import #import -#import +#endif + +#ifdef RCT_NEW_ARCH_ENABLED +namespace react = facebook::react; +#endif // RCT_NEW_ARCH_ENABLED @interface RNSFullWindowOverlayManager : RCTViewManager @@ -10,6 +19,16 @@ @end -@interface RNSFullWindowOverlay : RCTView +@interface RNSFullWindowOverlay : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + RCTView +#endif // RCT_NEW_ARCH_ENABLED + +#ifdef RCT_NEW_ARCH_ENABLED +@property (nonatomic) react::LayoutMetrics oldLayoutMetrics; +@property (nonatomic) react::LayoutMetrics newLayoutMetrics; +#endif // RCT_NEW_ARCH_ENABLED @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSHeaderHeightChangeEvent.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSHeaderHeightChangeEvent.h new file mode 100644 index 0000000..73349da --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSHeaderHeightChangeEvent.h @@ -0,0 +1,8 @@ +#import +#import + +@interface RNSHeaderHeightChangeEvent : NSObject + +- (instancetype)initWithEventName:(NSString *)eventName reactTag:(NSNumber *)reactTag headerHeight:(double)headerHeight; + +@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSModalScreen.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSModalScreen.h new file mode 100644 index 0000000..d0a4603 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSModalScreen.h @@ -0,0 +1,8 @@ +#import "RNSScreen.h" + +@interface RNSModalScreen : RNSScreenView +@end + +@interface RNSModalScreenManager : RNSScreenManager + +@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSModule.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSModule.h new file mode 100644 index 0000000..bdd4fe3 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSModule.h @@ -0,0 +1,19 @@ + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else +#import +#endif + +NS_ASSUME_NONNULL_BEGIN + +@interface RNSModule : NSObject +#ifdef RCT_NEW_ARCH_ENABLED + +#else + +#endif + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreen.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreen.h index 95353c0..bbdedcd 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreen.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreen.h @@ -1,59 +1,20 @@ #import -#import #import +#import "RNSEnums.h" #import "RNSScreenContainer.h" -typedef NS_ENUM(NSInteger, RNSScreenStackPresentation) { - RNSScreenStackPresentationPush, - RNSScreenStackPresentationModal, - RNSScreenStackPresentationTransparentModal, - RNSScreenStackPresentationContainedModal, - RNSScreenStackPresentationContainedTransparentModal, - RNSScreenStackPresentationFullScreenModal, - RNSScreenStackPresentationFormSheet -}; +#if RCT_NEW_ARCH_ENABLED +#import +#else +#import +#endif // RCT_NEW_ARCH_ENABLED -typedef NS_ENUM(NSInteger, RNSScreenStackAnimation) { - RNSScreenStackAnimationDefault, - RNSScreenStackAnimationNone, - RNSScreenStackAnimationFade, - RNSScreenStackAnimationFadeFromBottom, - RNSScreenStackAnimationFlip, - RNSScreenStackAnimationSlideFromBottom, - RNSScreenStackAnimationSimplePush, -}; +NS_ASSUME_NONNULL_BEGIN -typedef NS_ENUM(NSInteger, RNSScreenReplaceAnimation) { - RNSScreenReplaceAnimationPop, - RNSScreenReplaceAnimationPush, -}; - -typedef NS_ENUM(NSInteger, RNSScreenSwipeDirection) { - RNSScreenSwipeDirectionHorizontal, - RNSScreenSwipeDirectionVertical, -}; - -typedef NS_ENUM(NSInteger, RNSActivityState) { - RNSActivityStateInactive = 0, - RNSActivityStateTransitioningOrBelowTop = 1, - RNSActivityStateOnTop = 2 -}; - -typedef NS_ENUM(NSInteger, RNSStatusBarStyle) { - RNSStatusBarStyleAuto, - RNSStatusBarStyleInverted, - RNSStatusBarStyleLight, - RNSStatusBarStyleDark, -}; - -typedef NS_ENUM(NSInteger, RNSWindowTrait) { - RNSWindowTraitStyle, - RNSWindowTraitAnimation, - RNSWindowTraitHidden, - RNSWindowTraitOrientation, - RNSWindowTraitHomeIndicatorHidden, -}; +#ifdef RCT_NEW_ARCH_ENABLED +namespace react = facebook::react; +#endif // RCT_NEW_ARCH_ENABLED @interface RCTConvert (RNSScreen) @@ -62,65 +23,124 @@ typedef NS_ENUM(NSInteger, RNSWindowTrait) { #if !TARGET_OS_TV + (RNSStatusBarStyle)RNSStatusBarStyle:(id)json; ++ (UIStatusBarAnimation)UIStatusBarAnimation:(id)json; + (UIInterfaceOrientationMask)UIInterfaceOrientationMask:(id)json; #endif @end -@interface RNSScreen : UIViewController +@class RNSScreenView; + +@interface RNSScreen : UIViewController - (instancetype)initWithView:(UIView *)view; -- (void)notifyFinishTransitioning; - (UIViewController *)findChildVCForConfigAndTrait:(RNSWindowTrait)trait includingModals:(BOOL)includingModals; +- (BOOL)hasNestedStack; +- (void)calculateAndNotifyHeaderHeightChangeIsModal:(BOOL)isModal; +- (void)notifyFinishTransitioning; +- (RNSScreenView *)screenView; +#ifdef RCT_NEW_ARCH_ENABLED +- (void)setViewToSnapshot:(UIView *)snapshot; +- (CGFloat)calculateHeaderHeightIsModal:(BOOL)isModal; +#endif @end -@interface RNSScreenManager : RCTViewManager +@class RNSScreenStackHeaderConfig; -@end +@interface RNSScreenView : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + RCTView +#endif -@interface RNSScreenView : RCTView - -@property (nonatomic, copy) RCTDirectEventBlock onAppear; -@property (nonatomic, copy) RCTDirectEventBlock onDisappear; -@property (nonatomic, copy) RCTDirectEventBlock onDismissed; -@property (nonatomic, copy) RCTDirectEventBlock onWillAppear; -@property (nonatomic, copy) RCTDirectEventBlock onWillDisappear; -@property (nonatomic, copy) RCTDirectEventBlock onNativeDismissCancelled; -@property (nonatomic, copy) RCTDirectEventBlock onTransitionProgress; - -@property (weak, nonatomic) UIView *reactSuperview; -@property (nonatomic, retain) UIViewController *controller; -@property (nonatomic, readonly) BOOL dismissed; -@property (nonatomic) int activityState; +@property (nonatomic) BOOL fullScreenSwipeEnabled; @property (nonatomic) BOOL gestureEnabled; -@property (nonatomic) RNSScreenStackAnimation stackAnimation; -@property (nonatomic) RNSScreenStackPresentation stackPresentation; -@property (nonatomic) RNSScreenReplaceAnimation replaceAnimation; -@property (nonatomic) RNSScreenSwipeDirection swipeDirection; -@property (nonatomic) BOOL preventNativeDismiss; -@property (nonatomic) BOOL hasOrientationSet; +@property (nonatomic) BOOL hasStatusBarHiddenSet; @property (nonatomic) BOOL hasStatusBarStyleSet; @property (nonatomic) BOOL hasStatusBarAnimationSet; -@property (nonatomic) BOOL hasStatusBarHiddenSet; @property (nonatomic) BOOL hasHomeIndicatorHiddenSet; -@property (nonatomic) BOOL customAnimationOnSwipe; -@property (nonatomic) BOOL fullScreenSwipeEnabled; +@property (nonatomic) BOOL hasOrientationSet; +@property (nonatomic) RNSScreenStackAnimation stackAnimation; +@property (nonatomic) RNSScreenStackPresentation stackPresentation; +@property (nonatomic) RNSScreenSwipeDirection swipeDirection; +@property (nonatomic) RNSScreenReplaceAnimation replaceAnimation; + @property (nonatomic, retain) NSNumber *transitionDuration; +@property (nonatomic, readonly) BOOL dismissed; +@property (nonatomic) BOOL hideKeyboardOnSwipe; +@property (nonatomic) BOOL customAnimationOnSwipe; +@property (nonatomic) BOOL preventNativeDismiss; +@property (nonatomic, retain) RNSScreen *controller; +@property (nonatomic, copy) NSDictionary *gestureResponseDistance; +@property (nonatomic) int activityState; +@property (weak, nonatomic) UIView *reactSuperview; #if !TARGET_OS_TV @property (nonatomic) RNSStatusBarStyle statusBarStyle; @property (nonatomic) UIStatusBarAnimation statusBarAnimation; -@property (nonatomic) BOOL statusBarHidden; @property (nonatomic) UIInterfaceOrientationMask screenOrientation; +@property (nonatomic) BOOL statusBarHidden; @property (nonatomic) BOOL homeIndicatorHidden; -#endif + +// Props controlling UISheetPresentationController +@property (nonatomic) RNSScreenDetentType sheetAllowedDetents; +@property (nonatomic) RNSScreenDetentType sheetLargestUndimmedDetent; +@property (nonatomic) BOOL sheetGrabberVisible; +@property (nonatomic) CGFloat sheetCornerRadius; +@property (nonatomic) BOOL sheetExpandsWhenScrolledToEdge; +#endif // !TARGET_OS_TV + +#ifdef RCT_NEW_ARCH_ENABLED +// we recreate the behavior of `reactSetFrame` on new architecture +@property (nonatomic) react::LayoutMetrics oldLayoutMetrics; +@property (nonatomic) react::LayoutMetrics newLayoutMetrics; +@property (weak, nonatomic) RNSScreenStackHeaderConfig *config; +@property (nonatomic, readonly) BOOL hasHeaderConfig; +#else +@property (nonatomic, copy) RCTDirectEventBlock onAppear; +@property (nonatomic, copy) RCTDirectEventBlock onDisappear; +@property (nonatomic, copy) RCTDirectEventBlock onDismissed; +@property (nonatomic, copy) RCTDirectEventBlock onHeaderHeightChange; +@property (nonatomic, copy) RCTDirectEventBlock onWillAppear; +@property (nonatomic, copy) RCTDirectEventBlock onWillDisappear; +@property (nonatomic, copy) RCTDirectEventBlock onNativeDismissCancelled; +@property (nonatomic, copy) RCTDirectEventBlock onTransitionProgress; +@property (nonatomic, copy) RCTDirectEventBlock onGestureCancel; +#endif // RCT_NEW_ARCH_ENABLED - (void)notifyFinishTransitioning; +- (void)notifyHeaderHeightChange:(double)height; + +#ifdef RCT_NEW_ARCH_ENABLED +- (void)notifyWillAppear; +- (void)notifyWillDisappear; +- (void)notifyAppear; +- (void)notifyDisappear; +- (void)updateBounds; +- (void)notifyDismissedWithCount:(int)dismissCount; +- (instancetype)initWithFrame:(CGRect)frame; +#else +- (instancetype)initWithBridge:(RCTBridge *)bridge; +#endif // RCT_NEW_ARCH_ENABLED + - (void)notifyTransitionProgress:(double)progress closing:(BOOL)closing goingForward:(BOOL)goingForward; +- (void)notifyDismissCancelledWithDismissCount:(int)dismissCount; +- (BOOL)isModal; +- (BOOL)isPresentedAsNativeModal; + +/// Looks for header configuration in instance's `reactSubviews` and returns it. If not present returns `nil`. +- (RNSScreenStackHeaderConfig *_Nullable)findHeaderConfig; @end @interface UIView (RNSScreen) - (UIViewController *)parentViewController; @end + +@interface RNSScreenManager : RCTViewManager + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenComponentView.h deleted file mode 100644 index 4fd3044..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenComponentView.h +++ /dev/null @@ -1,23 +0,0 @@ -#import - -#import -#import "RNSScreenController.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface RNSScreenComponentView : RCTViewComponentView - -@property (weak, nonatomic) UIView *reactSuperview; -@property (weak, nonatomic) UIView *config; -@property (nonatomic, retain) RNSScreenController *controller; - -- (void)notifyWillAppear; -- (void)notifyWillDisappear; -- (void)notifyAppear; -- (void)notifyDisappear; -- (void)updateBounds; -- (void)notifyDismissedWithCount:(int)dismissCount; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenContainer.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenContainer.h index 0493e81..998aa97 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenContainer.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenContainer.h @@ -1,5 +1,12 @@ +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else +#endif + #import +NS_ASSUME_NONNULL_BEGIN + @protocol RNSScreenContainerDelegate - (void)markChildUpdated; @@ -7,11 +14,11 @@ @end -@protocol RNScreensViewControllerDelegate +@protocol RNSViewControllerDelegate @end -@interface RNScreensViewController : UIViewController +@interface RNSViewController : UIViewController - (UIViewController *)findActiveChildVC; @@ -21,7 +28,12 @@ @end -@interface RNSScreenContainerView : UIView +@interface RNSScreenContainerView : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif @property (nonatomic, retain) UIViewController *controller; @property (nonatomic, retain) NSMutableArray *reactSubviews; @@ -29,3 +41,5 @@ - (void)maybeDismissVC; @end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenController.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenController.h deleted file mode 100644 index 889a493..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenController.h +++ /dev/null @@ -1,10 +0,0 @@ -#import - -@interface RNSScreenController : UIViewController - -- (instancetype)initWithView:(UIView *)view; -- (void)takeSnapshot; -- (void)setViewToSnapshot; -- (void)resetViewToScreen; - -@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenNavigationContainer.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenNavigationContainer.h index bec5abe..defd0d5 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenNavigationContainer.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenNavigationContainer.h @@ -3,7 +3,7 @@ #import "RNSScreenContainer.h" #import "RNSScreenStack.h" -@interface RNScreensContainerNavigationController : RNScreensNavigationController +@interface RNSContainerNavigationController : RNSNavigationController @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStack.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStack.h index a383cd2..516fc49 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStack.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStack.h @@ -1,21 +1,43 @@ +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else #import #import +#endif #import "RNSScreenContainer.h" -@interface RNScreensNavigationController : UINavigationController +NS_ASSUME_NONNULL_BEGIN + +@interface RNSNavigationController : UINavigationController @end -@interface RNSScreenStackView : UIView - -@property (nonatomic, copy) RCTDirectEventBlock onFinishTransitioning; +@interface RNSScreenStackView : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif - (void)markChildUpdated; - (void)didUpdateChildren; +- (void)startScreenTransition; +- (void)updateScreenTransition:(double)progress; +- (void)finishScreenTransition:(BOOL)canceled; + +@property (nonatomic) BOOL customAnimation; +@property (nonatomic) BOOL disableSwipeBack; + +#ifdef RCT_NEW_ARCH_ENABLED +#else +@property (nonatomic, copy) RCTDirectEventBlock onFinishTransitioning; +#endif // RCT_NEW_ARCH_ENABLED @end @interface RNSScreenStackManager : RCTViewManager @end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackComponentView.h deleted file mode 100644 index e7b0f1a..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackComponentView.h +++ /dev/null @@ -1,15 +0,0 @@ -#import - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface RNSScreenStackComponentView : RCTViewComponentView - -@end - -@interface RNSScreenStackView : UIView -- (instancetype)initWithComponentView:(RNSScreenStackComponentView *)component; -@end - -NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfig.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfig.h index d3d9832..d88f8f9 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfig.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfig.h @@ -1,13 +1,36 @@ -#import +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else #import +#endif +#import #import "RNSScreen.h" +#import "RNSScreenStackHeaderSubview.h" #import "RNSSearchBar.h" -@interface RNSScreenStackHeaderConfig : UIView +@interface NSString (RNSStringUtil) + ++ (BOOL)RNSisBlank:(NSString *)string; + +@end + +@interface RNSScreenStackHeaderConfig : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif @property (nonatomic, weak) RNSScreenView *screenView; +#ifdef RCT_NEW_ARCH_ENABLED +@property (nonatomic) BOOL show; +#else +@property (nonatomic) UIBlurEffectStyle blurEffect; +@property (nonatomic) BOOL hide; +#endif + @property (nonatomic, retain) NSString *title; @property (nonatomic, retain) NSString *titleFontFamily; @property (nonatomic, retain) NSNumber *titleFontSize; @@ -16,10 +39,9 @@ @property (nonatomic, retain) NSString *backTitle; @property (nonatomic, retain) NSString *backTitleFontFamily; @property (nonatomic, retain) NSNumber *backTitleFontSize; +@property (nonatomic, getter=isBackTitleVisible) BOOL backTitleVisible; @property (nonatomic, retain) UIColor *backgroundColor; -@property (nonatomic) UIBlurEffectStyle blurEffect; @property (nonatomic, retain) UIColor *color; -@property (nonatomic) BOOL hide; @property (nonatomic) BOOL largeTitle; @property (nonatomic, retain) NSString *largeTitleFontFamily; @property (nonatomic, retain) NSNumber *largeTitleFontSize; @@ -28,11 +50,12 @@ @property (nonatomic) BOOL largeTitleHideShadow; @property (nonatomic, retain) UIColor *largeTitleColor; @property (nonatomic) BOOL hideBackButton; -@property (nonatomic) BOOL backButtonInCustomView; @property (nonatomic) BOOL disableBackButtonMenu; @property (nonatomic) BOOL hideShadow; @property (nonatomic) BOOL translucent; +@property (nonatomic) BOOL backButtonInCustomView; @property (nonatomic) UISemanticContentAttribute direction; +@property (nonatomic) UINavigationItemBackButtonDisplayMode backButtonDisplayMode; + (void)willShowViewController:(UIViewController *)vc animated:(BOOL)animated @@ -44,25 +67,10 @@ @end -typedef NS_ENUM(NSInteger, RNSScreenStackHeaderSubviewType) { - RNSScreenStackHeaderSubviewTypeBackButton, - RNSScreenStackHeaderSubviewTypeLeft, - RNSScreenStackHeaderSubviewTypeRight, - RNSScreenStackHeaderSubviewTypeTitle, - RNSScreenStackHeaderSubviewTypeCenter, - RNSScreenStackHeaderSubviewTypeSearchBar, -}; - @interface RCTConvert (RNSScreenStackHeader) -+ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewType:(id)json; + (UIBlurEffectStyle)UIBlurEffectStyle:(id)json; + (UISemanticContentAttribute)UISemanticContentAttribute:(id)json; - -@end - -@interface RNSScreenStackHeaderSubviewManager : RCTViewManager - -@property (nonatomic) RNSScreenStackHeaderSubviewType type; ++ (UINavigationItemBackButtonDisplayMode)UINavigationItemBackButtonDisplayMode:(id)json; @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfigComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfigComponentView.h deleted file mode 100644 index 7fd944f..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderConfigComponentView.h +++ /dev/null @@ -1,42 +0,0 @@ -#import - -#import - -#import "RNSScreenComponentView.h" -#import "RNSScreenStackHeaderSubviewComponentView.h" - -@interface RNSScreenStackHeaderConfigComponentView : RCTViewComponentView - -@property (nonatomic, weak) RNSScreenComponentView *screenView; -@property (nonatomic) NSMutableArray *reactSubviews; - -// Properties from props -@property (nonatomic) BOOL show; -@property (nonatomic) BOOL translucent; -@property (nonatomic) BOOL hideShadow; -@property (nonatomic, retain) NSString *title; -@property (nonatomic, retain) NSString *titleFontFamily; -@property (nonatomic, retain) NSNumber *titleFontSize; -@property (nonatomic, retain) NSString *titleFontWeight; -@property (nonatomic, retain) UIColor *titleColor; -@property (nonatomic) BOOL largeTitle; -@property (nonatomic, retain) NSString *largeTitleFontFamily; -@property (nonatomic, retain) NSNumber *largeTitleFontSize; -@property (nonatomic, retain) NSString *largeTitleFontWeight; -@property (nonatomic, retain) UIColor *largeTitleBackgroundColor; -@property (nonatomic) BOOL largeTitleHideShadow; -@property (nonatomic, retain) UIColor *largeTitleColor; -@property (nonatomic, retain) UIColor *backgroundColor; -@property (nonatomic, retain) UIColor *color; -@property (nonatomic) UISemanticContentAttribute direction; -@property (nonatomic, retain) NSString *backTitle; -@property (nonatomic, retain) NSString *backTitleFontFamily; -@property (nonatomic, retain) NSNumber *backTitleFontSize; -@property (nonatomic) BOOL disableBackButtonMenu; -@property (nonatomic) BOOL hideBackButton; - -+ (void)willShowViewController:(UIViewController *)vc - animated:(BOOL)animated - withConfig:(RNSScreenStackHeaderConfigComponentView *)config; - -@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderSubview.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderSubview.h new file mode 100644 index 0000000..6930491 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderSubview.h @@ -0,0 +1,44 @@ + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#endif + +#import +#import +#import "RNSEnums.h" + +NS_ASSUME_NONNULL_BEGIN + +@interface RNSScreenStackHeaderSubview : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif + +@property (nonatomic) RNSScreenStackHeaderSubviewType type; + +@property (nonatomic, weak) UIView *reactSuperview; + +@property (nonatomic, weak) RCTBridge *bridge; + +#ifdef RCT_NEW_ARCH_ENABLED +#else +- (instancetype)initWithBridge:(RCTBridge *)bridge; +#endif // RCT_NEW_ARCH_ENABLED + +@end + +@interface RNSScreenStackHeaderSubviewManager : RCTViewManager + +@property (nonatomic) RNSScreenStackHeaderSubviewType type; + +@end + +@interface RCTConvert (RNSScreenStackHeaderSubview) + ++ (RNSScreenStackHeaderSubviewType)RNSScreenStackHeaderSubviewType:(id)json; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderSubviewComponentView.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderSubviewComponentView.h deleted file mode 100644 index eaaa920..0000000 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenStackHeaderSubviewComponentView.h +++ /dev/null @@ -1,14 +0,0 @@ -#import - -#import -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface RNSScreenStackHeaderSubviewComponentView : RCTViewComponentView - -@property (nonatomic) facebook::react::RNSScreenStackHeaderSubviewType type; - -@end - -NS_ASSUME_NONNULL_END diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenViewEvent.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenViewEvent.h new file mode 100644 index 0000000..b46e8a2 --- /dev/null +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenViewEvent.h @@ -0,0 +1,12 @@ +#import +#import + +@interface RNSScreenViewEvent : NSObject + +- (instancetype)initWithEventName:(NSString *)eventName + reactTag:(NSNumber *)reactTag + progress:(double)progress + closing:(int)closing + goingForward:(int)goingForward; + +@end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenWindowTraits.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenWindowTraits.h index 1970b9d..0665bdc 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenWindowTraits.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSScreenWindowTraits.h @@ -4,7 +4,7 @@ + (void)updateWindowTraits; -#if !TARGET_OS_TV +#if !TARGET_OS_TV && !TARGET_OS_VISION + (void)assertViewControllerBasedStatusBarAppearenceSet; #endif + (void)updateStatusBarAppearance; diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSSearchBar.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSSearchBar.h index bf6476e..872ccc7 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSSearchBar.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSSearchBar.h @@ -1,19 +1,40 @@ #import +#ifdef RCT_NEW_ARCH_ENABLED +#import +#import +#endif + #import #import #import +#import "RNSEnums.h" -@interface RNSSearchBar : UIView +@interface RNSSearchBar : +#ifdef RCT_NEW_ARCH_ENABLED + RCTViewComponentView +#else + UIView +#endif @property (nonatomic) BOOL hideWhenScrolling; - +@property (nonatomic) RNSSearchBarPlacement placement; @property (nonatomic, retain) UISearchController *controller; -@property (nonatomic, copy) RCTBubblingEventBlock onChangeText; -@property (nonatomic, copy) RCTBubblingEventBlock onCancelButtonPress; -@property (nonatomic, copy) RCTBubblingEventBlock onSearchButtonPress; -@property (nonatomic, copy) RCTBubblingEventBlock onFocus; -@property (nonatomic, copy) RCTBubblingEventBlock onBlur; + +#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && defined(__IPHONE_16_0) && \ + __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_0 && !TARGET_OS_TV +- (UINavigationItemSearchBarPlacement)placementAsUINavigationItemSearchBarPlacement API_AVAILABLE(ios(16.0)) + API_UNAVAILABLE(tvos, watchos); +#endif // Check for iOS >= 16 && !TARGET_OS_TV + +#ifdef RCT_NEW_ARCH_ENABLED +#else +@property (nonatomic, copy) RCTDirectEventBlock onChangeText; +@property (nonatomic, copy) RCTDirectEventBlock onCancelButtonPress; +@property (nonatomic, copy) RCTDirectEventBlock onSearchButtonPress; +@property (nonatomic, copy) RCTDirectEventBlock onSearchFocus; +@property (nonatomic, copy) RCTDirectEventBlock onSearchBlur; +#endif @end diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSUIBarButtonItem.h b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSUIBarButtonItem.h index e35f290..d7c6c10 100644 --- a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSUIBarButtonItem.h +++ b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/Headers/RNSUIBarButtonItem.h @@ -1,3 +1,5 @@ +#import + @interface RNSUIBarButtonItem : UIBarButtonItem @property (nonatomic) BOOL menuHidden; diff --git a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/libRNScreens.a b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/libRNScreens.a index 0857ee7..ebcccf1 100644 Binary files a/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/libRNScreens.a and b/Frameworks/RNScreens.xcframework/ios-arm64_x86_64-simulator/libRNScreens.a differ diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/DiscordShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/DiscordShare.h new file mode 100644 index 0000000..4286aa0 --- /dev/null +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/DiscordShare.h @@ -0,0 +1,15 @@ +#import +// import RCTConvert +#import +// import RCTBridge +#import +// import RCTUIManager +#import +// import RCTLog +#import +// import RCTUtils +#import +@interface DiscordShare : NSObject + +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; +@end \ No newline at end of file diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/EmailShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/EmailShare.h index 5b54c08..6fbe4a0 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/EmailShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/EmailShare.h @@ -21,5 +21,5 @@ #import @interface EmailShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/FacebookStories.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/FacebookStories.h index 0e7dfc7..0f2f72c 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/FacebookStories.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/FacebookStories.h @@ -20,5 +20,5 @@ #import @interface FacebookStories : NSObject -- (void *) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void *) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/GenericShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/GenericShare.h index 98fa989..52aa198 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/GenericShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/GenericShare.h @@ -21,6 +21,6 @@ #import @interface GenericShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback serviceType:(NSString*)serviceType +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve serviceType:(NSString*)serviceType inAppBaseUrl:(NSString *)inAppBaseUrl; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/GooglePlusShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/GooglePlusShare.h index ffae815..7bcc464 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/GooglePlusShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/GooglePlusShare.h @@ -18,5 +18,5 @@ #import @interface GooglePlusShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramShare.h index 6ee51cb..af2cf62 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramShare.h @@ -18,8 +18,8 @@ #import @interface InstagramShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; - (void)shareSingleImage:(NSDictionary *)options - failureCallback:(RCTResponseErrorBlock)failureCallback - successCallback:(RCTResponseSenderBlock)successCallback; + reject:(RCTPromiseRejectBlock)reject + resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramStories.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramStories.h index 56757da..54ece78 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramStories.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/InstagramStories.h @@ -19,5 +19,5 @@ #import @interface InstagramStories : NSObject -- (void *) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void *) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/MessengerShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/MessengerShare.h index 01aa7c0..7402f3a 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/MessengerShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/MessengerShare.h @@ -4,5 +4,5 @@ @interface MessengerShare : NSObject -- (void)shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void)shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShare.h index 1b0ef16..3ec51db 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShare.h @@ -1,7 +1,21 @@ -@import UIKit; -// import RCTBridgeModule +//@import UIKit; + +#if __has_include() #import +#elif __has_include("RCTBridgeModule.h") +#import "RCTBridgeModule.h" +#else +#import "React/RCTBridgeModule.h" +#endif + +#if RCT_NEW_ARCH_ENABLED +#import +#endif @interface RNShare : NSObject - @end + +#if RCT_NEW_ARCH_ENABLED +@interface RNShare () +@end +#endif diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShareUtils.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShareUtils.h index 6475423..f9eb3b4 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShareUtils.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/RNShareUtils.h @@ -2,5 +2,6 @@ @interface RNShareUtils : NSObject +(NSString*)getExtensionFromBase64:(NSString*)base64String; -+(NSURL*)getPathFromBase64:(NSString*)base64String with:(NSData*)data; ++(NSURL*)getPathFromBase64:(NSString*)base64String with:(NSData*)data fileName:(NSString*)name; ++(NSURL*)getPathFromFilename:(NSString*)filename with:(NSData*)data; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/SmsShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/SmsShare.h new file mode 100644 index 0000000..9c85520 --- /dev/null +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/SmsShare.h @@ -0,0 +1,16 @@ +#import +// import RCTConvertttt +#import +// import RCTBridge +#import +// import RCTUIManager +#import +// import RCTLog +#import +// import RCTUtils +#import +#import +@interface SmsShare : NSObject + +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; +@end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/TelegramShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/TelegramShare.h index 5533ad3..d0464f9 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/TelegramShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/TelegramShare.h @@ -18,6 +18,6 @@ #import @interface TelegramShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/ViberShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/ViberShare.h index c3bbcf3..5f55d5b 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/ViberShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/ViberShare.h @@ -16,6 +16,6 @@ #import @interface ViberShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/Headers/WhatsAppShare.h b/Frameworks/RNShare.xcframework/ios-arm64/Headers/WhatsAppShare.h index 9c338f2..dce6144 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64/Headers/WhatsAppShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64/Headers/WhatsAppShare.h @@ -19,5 +19,5 @@ #import @interface WhatsAppShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64/libRNShare.a b/Frameworks/RNShare.xcframework/ios-arm64/libRNShare.a index 1cfcbe4..3bfb50e 100644 Binary files a/Frameworks/RNShare.xcframework/ios-arm64/libRNShare.a and b/Frameworks/RNShare.xcframework/ios-arm64/libRNShare.a differ diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/DiscordShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/DiscordShare.h new file mode 100644 index 0000000..4286aa0 --- /dev/null +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/DiscordShare.h @@ -0,0 +1,15 @@ +#import +// import RCTConvert +#import +// import RCTBridge +#import +// import RCTUIManager +#import +// import RCTLog +#import +// import RCTUtils +#import +@interface DiscordShare : NSObject + +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; +@end \ No newline at end of file diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/EmailShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/EmailShare.h index 5b54c08..6fbe4a0 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/EmailShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/EmailShare.h @@ -21,5 +21,5 @@ #import @interface EmailShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/FacebookStories.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/FacebookStories.h index 0e7dfc7..0f2f72c 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/FacebookStories.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/FacebookStories.h @@ -20,5 +20,5 @@ #import @interface FacebookStories : NSObject -- (void *) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void *) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GenericShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GenericShare.h index 98fa989..52aa198 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GenericShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GenericShare.h @@ -21,6 +21,6 @@ #import @interface GenericShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback serviceType:(NSString*)serviceType +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve serviceType:(NSString*)serviceType inAppBaseUrl:(NSString *)inAppBaseUrl; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GooglePlusShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GooglePlusShare.h index ffae815..7bcc464 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GooglePlusShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/GooglePlusShare.h @@ -18,5 +18,5 @@ #import @interface GooglePlusShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramShare.h index 6ee51cb..af2cf62 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramShare.h @@ -18,8 +18,8 @@ #import @interface InstagramShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; - (void)shareSingleImage:(NSDictionary *)options - failureCallback:(RCTResponseErrorBlock)failureCallback - successCallback:(RCTResponseSenderBlock)successCallback; + reject:(RCTPromiseRejectBlock)reject + resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramStories.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramStories.h index 56757da..54ece78 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramStories.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/InstagramStories.h @@ -19,5 +19,5 @@ #import @interface InstagramStories : NSObject -- (void *) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void *) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/MessengerShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/MessengerShare.h index 01aa7c0..7402f3a 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/MessengerShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/MessengerShare.h @@ -4,5 +4,5 @@ @interface MessengerShare : NSObject -- (void)shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void)shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShare.h index 1b0ef16..3ec51db 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShare.h @@ -1,7 +1,21 @@ -@import UIKit; -// import RCTBridgeModule +//@import UIKit; + +#if __has_include() #import +#elif __has_include("RCTBridgeModule.h") +#import "RCTBridgeModule.h" +#else +#import "React/RCTBridgeModule.h" +#endif + +#if RCT_NEW_ARCH_ENABLED +#import +#endif @interface RNShare : NSObject - @end + +#if RCT_NEW_ARCH_ENABLED +@interface RNShare () +@end +#endif diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShareUtils.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShareUtils.h index 6475423..f9eb3b4 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShareUtils.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/RNShareUtils.h @@ -2,5 +2,6 @@ @interface RNShareUtils : NSObject +(NSString*)getExtensionFromBase64:(NSString*)base64String; -+(NSURL*)getPathFromBase64:(NSString*)base64String with:(NSData*)data; ++(NSURL*)getPathFromBase64:(NSString*)base64String with:(NSData*)data fileName:(NSString*)name; ++(NSURL*)getPathFromFilename:(NSString*)filename with:(NSData*)data; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/SmsShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/SmsShare.h new file mode 100644 index 0000000..9c85520 --- /dev/null +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/SmsShare.h @@ -0,0 +1,16 @@ +#import +// import RCTConvertttt +#import +// import RCTBridge +#import +// import RCTUIManager +#import +// import RCTLog +#import +// import RCTUtils +#import +#import +@interface SmsShare : NSObject + +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; +@end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/TelegramShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/TelegramShare.h index 5533ad3..d0464f9 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/TelegramShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/TelegramShare.h @@ -18,6 +18,6 @@ #import @interface TelegramShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/ViberShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/ViberShare.h index c3bbcf3..5f55d5b 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/ViberShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/ViberShare.h @@ -16,6 +16,6 @@ #import @interface ViberShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/WhatsAppShare.h b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/WhatsAppShare.h index 9c338f2..dce6144 100644 --- a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/WhatsAppShare.h +++ b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/Headers/WhatsAppShare.h @@ -19,5 +19,5 @@ #import @interface WhatsAppShare : NSObject -- (void) shareSingle:(NSDictionary *)options failureCallback:(RCTResponseErrorBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void) shareSingle:(NSDictionary *)options reject:(RCTPromiseRejectBlock)reject resolve:(RCTPromiseResolveBlock)resolve; @end diff --git a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/libRNShare.a b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/libRNShare.a index f37a359..3452681 100644 Binary files a/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/libRNShare.a and b/Frameworks/RNShare.xcframework/ios-arm64_x86_64-simulator/libRNShare.a differ diff --git a/Frameworks/RNTextSize.xcframework/Info.plist b/Frameworks/RNTextSize.xcframework/Info.plist index a90e812..413fc65 100644 --- a/Frameworks/RNTextSize.xcframework/Info.plist +++ b/Frameworks/RNTextSize.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libRNTextSize.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNTextSize.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libRNTextSize.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libRNTextSize.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNTextSize.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/RNTextSize.xcframework/ios-arm64/libRNTextSize.a b/Frameworks/RNTextSize.xcframework/ios-arm64/libRNTextSize.a index 92ba1e6..5b20d7c 100644 Binary files a/Frameworks/RNTextSize.xcframework/ios-arm64/libRNTextSize.a and b/Frameworks/RNTextSize.xcframework/ios-arm64/libRNTextSize.a differ diff --git a/Frameworks/RNTextSize.xcframework/ios-arm64_x86_64-simulator/libRNTextSize.a b/Frameworks/RNTextSize.xcframework/ios-arm64_x86_64-simulator/libRNTextSize.a index bc7455f..64befda 100644 Binary files a/Frameworks/RNTextSize.xcframework/ios-arm64_x86_64-simulator/libRNTextSize.a and b/Frameworks/RNTextSize.xcframework/ios-arm64_x86_64-simulator/libRNTextSize.a differ diff --git a/Frameworks/RNVectorIcons.xcframework/ios-arm64/libRNVectorIcons.a b/Frameworks/RNVectorIcons.xcframework/ios-arm64/libRNVectorIcons.a index d3d0753..8261306 100644 Binary files a/Frameworks/RNVectorIcons.xcframework/ios-arm64/libRNVectorIcons.a and b/Frameworks/RNVectorIcons.xcframework/ios-arm64/libRNVectorIcons.a differ diff --git a/Frameworks/RNVectorIcons.xcframework/ios-arm64_x86_64-simulator/libRNVectorIcons.a b/Frameworks/RNVectorIcons.xcframework/ios-arm64_x86_64-simulator/libRNVectorIcons.a index 947da5f..5a635af 100644 Binary files a/Frameworks/RNVectorIcons.xcframework/ios-arm64_x86_64-simulator/libRNVectorIcons.a and b/Frameworks/RNVectorIcons.xcframework/ios-arm64_x86_64-simulator/libRNVectorIcons.a differ diff --git a/Frameworks/RNVolumeController.xcframework/Info.plist b/Frameworks/RNVolumeController.xcframework/Info.plist index aee0e85..3a497eb 100644 --- a/Frameworks/RNVolumeController.xcframework/Info.plist +++ b/Frameworks/RNVolumeController.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libRNVolumeController.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libRNVolumeController.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libRNVolumeController.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libRNVolumeController.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libRNVolumeController.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/RNVolumeController.xcframework/ios-arm64/libRNVolumeController.a b/Frameworks/RNVolumeController.xcframework/ios-arm64/libRNVolumeController.a index fa15038..46d4752 100644 Binary files a/Frameworks/RNVolumeController.xcframework/ios-arm64/libRNVolumeController.a and b/Frameworks/RNVolumeController.xcframework/ios-arm64/libRNVolumeController.a differ diff --git a/Frameworks/RNVolumeController.xcframework/ios-arm64_x86_64-simulator/libRNVolumeController.a b/Frameworks/RNVolumeController.xcframework/ios-arm64_x86_64-simulator/libRNVolumeController.a index 8dcd60e..944b1c0 100644 Binary files a/Frameworks/RNVolumeController.xcframework/ios-arm64_x86_64-simulator/libRNVolumeController.a and b/Frameworks/RNVolumeController.xcframework/ios-arm64_x86_64-simulator/libRNVolumeController.a differ diff --git a/Frameworks/FBReactNativeSpec.xcframework/Info.plist b/Frameworks/React-Codegen.xcframework/Info.plist similarity index 86% rename from Frameworks/FBReactNativeSpec.xcframework/Info.plist rename to Frameworks/React-Codegen.xcframework/Info.plist index 2144156..8bcfc9f 100644 --- a/Frameworks/FBReactNativeSpec.xcframework/Info.plist +++ b/Frameworks/React-Codegen.xcframework/Info.plist @@ -6,13 +6,29 @@ BinaryPath - libFBReactNativeSpec.a + libReact-Codegen.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libReact-Codegen.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + BinaryPath + libReact-Codegen.a HeadersPath Headers LibraryIdentifier ios-arm64_x86_64-simulator LibraryPath - libFBReactNativeSpec.a + libReact-Codegen.a SupportedArchitectures arm64 @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libFBReactNativeSpec.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libFBReactNativeSpec.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64/Headers/FBReactNativeSpec/FBReactNativeSpec.h b/Frameworks/React-Codegen.xcframework/ios-arm64/Headers/FBReactNativeSpec/FBReactNativeSpec.h similarity index 88% rename from Frameworks/FBReactNativeSpec.xcframework/ios-arm64/Headers/FBReactNativeSpec/FBReactNativeSpec.h rename to Frameworks/React-Codegen.xcframework/ios-arm64/Headers/FBReactNativeSpec/FBReactNativeSpec.h index 95f3661..97ef924 100644 --- a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64/Headers/FBReactNativeSpec/FBReactNativeSpec.h +++ b/Frameworks/React-Codegen.xcframework/ios-arm64/Headers/FBReactNativeSpec/FBReactNativeSpec.h @@ -1,8 +1,8 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Do not edit this file as changes may cause incorrect behavior and will be lost + * once the code is regenerated. * * @generated by codegen project: GenerateModuleObjCpp * @@ -22,7 +22,7 @@ #import #import #import -#import +#import #import @@ -30,6 +30,7 @@ - (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess; - (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess; +- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess; - (void)setAccessibilityFocus:(double)reactTag; - (void)announceForAccessibility:(NSString *)announcement; - (void)getRecommendedTimeoutMillis:(double)mSec @@ -50,18 +51,18 @@ namespace facebook { namespace JS { namespace NativeAccessibilityManager { struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { - folly::Optional extraSmall() const; - folly::Optional small() const; - folly::Optional medium() const; - folly::Optional large() const; - folly::Optional extraLarge() const; - folly::Optional extraExtraLarge() const; - folly::Optional extraExtraExtraLarge() const; - folly::Optional accessibilityMedium() const; - folly::Optional accessibilityLarge() const; - folly::Optional accessibilityExtraLarge() const; - folly::Optional accessibilityExtraExtraLarge() const; - folly::Optional accessibilityExtraExtraExtraLarge() const; + std::optional extraSmall() const; + std::optional small() const; + std::optional medium() const; + std::optional large() const; + std::optional extraLarge() const; + std::optional extraExtraLarge() const; + std::optional extraExtraExtraLarge() const; + std::optional accessibilityMedium() const; + std::optional accessibilityLarge() const; + std::optional accessibilityExtraLarge() const; + std::optional accessibilityExtraExtraLarge() const; + std::optional accessibilityExtraExtraExtraLarge() const; SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {} private: @@ -73,6 +74,21 @@ namespace JS { @interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json; @end +namespace JS { + namespace NativeAccessibilityManager { + struct SpecAnnounceForAccessibilityWithOptionsOptions { + std::optional queue() const; + + SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json; +@end @protocol NativeAccessibilityManagerSpec - (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess @@ -83,6 +99,8 @@ namespace JS { onError:(RCTResponseSenderBlock)onError; - (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; - (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess onError:(RCTResponseSenderBlock)onError; - (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess @@ -90,6 +108,8 @@ namespace JS { - (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers; - (void)setAccessibilityFocus:(double)reactTag; - (void)announceForAccessibility:(NSString *)announcement; +- (void)announceForAccessibilityWithOptions:(NSString *)announcement + options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options; @end namespace facebook { @@ -108,14 +128,14 @@ namespace JS { struct SpecShowActionSheetWithOptionsOptions { NSString *title() const; NSString *message() const; - folly::Optional> options() const; - folly::Optional> destructiveButtonIndices() const; - folly::Optional cancelButtonIndex() const; - folly::Optional anchor() const; - folly::Optional tintColor() const; - folly::Optional cancelButtonTintColor() const; + std::optional> options() const; + std::optional> destructiveButtonIndices() const; + std::optional cancelButtonIndex() const; + std::optional anchor() const; + std::optional tintColor() const; + std::optional cancelButtonTintColor() const; NSString *userInterfaceStyle() const; - folly::Optional> disabledButtonIndices() const; + std::optional> disabledButtonIndices() const; SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} private: @@ -133,10 +153,10 @@ namespace JS { NSString *message() const; NSString *url() const; NSString *subject() const; - folly::Optional anchor() const; - folly::Optional tintColor() const; - folly::Optional cancelButtonTintColor() const; - folly::Optional> excludedActivityTypes() const; + std::optional anchor() const; + std::optional tintColor() const; + std::optional cancelButtonTintColor() const; + std::optional> excludedActivityTypes() const; NSString *userInterfaceStyle() const; SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} @@ -156,6 +176,7 @@ namespace JS { - (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options failureCallback:(RCTResponseSenderBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void)dismissActionSheet; @end namespace facebook { @@ -174,12 +195,13 @@ namespace JS { struct Args { NSString *title() const; NSString *message() const; - folly::Optional >> buttons() const; + std::optional >> buttons() const; NSString *type() const; NSString *defaultValue() const; NSString *cancelButtonKey() const; NSString *destructiveButtonKey() const; NSString *keyboardType() const; + NSString *userInterfaceStyle() const; Args(NSDictionary *const v) : _v(v) {} private: @@ -212,7 +234,7 @@ namespace JS { namespace NativeAnimatedModule { struct EventMapping { facebook::react::LazyVector nativeEventPath() const; - folly::Optional animatedValueTag() const; + std::optional animatedValueTag() const; EventMapping(NSDictionary *const v) : _v(v) {} private: @@ -230,6 +252,8 @@ namespace JS { - (void)finishOperationBatch; - (void)createAnimatedNode:(double)tag config:(NSDictionary *)config; +- (void)updateAnimatedNodeConfig:(double)tag + config:(NSDictionary *)config; - (void)getValue:(double)tag saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; - (void)startListeningToAnimatedNodeValue:(double)tag; @@ -263,6 +287,7 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; animatedNodeTag:(double)animatedNodeTag; - (void)addListener:(NSString *)eventName; - (void)removeListeners:(double)count; +- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; @end namespace facebook { @@ -280,7 +305,7 @@ namespace JS { namespace NativeAnimatedTurboModule { struct EventMapping { facebook::react::LazyVector nativeEventPath() const; - folly::Optional animatedValueTag() const; + std::optional animatedValueTag() const; EventMapping(NSDictionary *const v) : _v(v) {} private: @@ -298,6 +323,8 @@ namespace JS { - (void)finishOperationBatch; - (void)createAnimatedNode:(double)tag config:(NSDictionary *)config; +- (void)updateAnimatedNodeConfig:(double)tag + config:(NSDictionary *)config; - (void)getValue:(double)tag saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; - (void)startListeningToAnimatedNodeValue:(double)tag; @@ -331,6 +358,7 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; animatedNodeTag:(double)animatedNodeTag; - (void)addListener:(NSString *)eventName; - (void)removeListeners:(double)count; +- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; @end namespace facebook { @@ -744,10 +772,10 @@ namespace JS { struct Builder { struct Input { - folly::Optional window; - folly::Optional screen; - folly::Optional windowPhysicalPixels; - folly::Optional screenPhysicalPixels; + std::optional window; + std::optional screen; + std::optional windowPhysicalPixels; + std::optional screenPhysicalPixels; }; /** Initialize with a set of values */ @@ -775,7 +803,7 @@ namespace JS { struct Builder { struct Input { RCTRequired Dimensions; - folly::Optional isIPhoneX_deprecated; + std::optional isIPhoneX_deprecated; }; /** Initialize with a set of values */ @@ -816,11 +844,11 @@ namespace facebook { namespace JS { namespace NativeExceptionsManager { struct StackFrame { - folly::Optional column() const; + std::optional column() const; NSString *file() const; - folly::Optional lineNumber() const; + std::optional lineNumber() const; NSString *methodName() const; - folly::Optional collapse() const; + std::optional collapse() const; StackFrame(NSDictionary *const v) : _v(v) {} private: @@ -906,8 +934,8 @@ namespace facebook { namespace JS { namespace NativeFrameRateLogger { struct SpecSetGlobalOptionsOptions { - folly::Optional debug() const; - folly::Optional reportStackTraces() const; + std::optional debug() const; + std::optional reportStackTraces() const; SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {} private: @@ -1060,9 +1088,9 @@ namespace JS { struct Options { JS::NativeImageEditor::OptionsOffset offset() const; JS::NativeImageEditor::OptionsSize size() const; - folly::Optional displaySize() const; + std::optional displaySize() const; NSString *resizeMode() const; - folly::Optional allowExternalStorage() const; + std::optional allowExternalStorage() const; Options(NSDictionary *const v) : _v(v) {} private: @@ -1428,7 +1456,7 @@ namespace JS { RCTRequired major; RCTRequired minor; RCTRequired patch; - RCTRequired> prerelease; + RCTRequired> prerelease; }; /** Initialize with a set of values */ @@ -1519,14 +1547,15 @@ namespace JS { namespace NativePushNotificationManagerIOS { struct Notification { NSString *alertTitle() const; - folly::Optional fireDate() const; + std::optional fireDate() const; NSString *alertBody() const; NSString *alertAction() const; id _Nullable userInfo() const; NSString *category() const; NSString *repeatInterval() const; - folly::Optional applicationIconBadgeNumber() const; - folly::Optional isSilent() const; + std::optional applicationIconBadgeNumber() const; + std::optional isSilent() const; + NSString *soundName() const; Notification(NSDictionary *const v) : _v(v) {} private: @@ -1765,7 +1794,7 @@ namespace JS { struct Builder { struct Input { RCTRequired HEIGHT; - folly::Optional DEFAULT_BACKGROUND_COLOR; + std::optional DEFAULT_BACKGROUND_COLOR; }; /** Initialize with a set of values */ @@ -1898,66 +1927,71 @@ namespace facebook { } // namespace react } // namespace facebook -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const { id const p = _v[@"extraSmall"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const { id const p = _v[@"small"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const { id const p = _v[@"medium"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const { id const p = _v[@"large"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const { id const p = _v[@"extraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const { id const p = _v[@"extraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const { id const p = _v[@"extraExtraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const { id const p = _v[@"accessibilityMedium"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const { id const p = _v[@"accessibilityLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const { id const p = _v[@"accessibilityExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const { id const p = _v[@"accessibilityExtraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const { id const p = _v[@"accessibilityExtraExtraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } +inline std::optional JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const +{ + id const p = _v[@"queue"]; + return RCTBridgingToOptionalBool(p); +} inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const { id const p = _v[@"title"]; @@ -1968,32 +2002,32 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt id const p = _v[@"message"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const { id const p = _v[@"options"]; return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const { id const p = _v[@"destructiveButtonIndices"]; return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const { id const p = _v[@"cancelButtonIndex"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const { id const p = _v[@"anchor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const { id const p = _v[@"tintColor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const { id const p = _v[@"cancelButtonTintColor"]; return RCTBridgingToOptionalDouble(p); @@ -2003,7 +2037,7 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt id const p = _v[@"userInterfaceStyle"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const { id const p = _v[@"disabledButtonIndices"]; return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); @@ -2023,22 +2057,22 @@ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptio id const p = _v[@"subject"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const { id const p = _v[@"anchor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const { id const p = _v[@"tintColor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const { id const p = _v[@"cancelButtonTintColor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const +inline std::optional> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const { id const p = _v[@"excludedActivityTypes"]; return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); @@ -2058,7 +2092,7 @@ inline NSString *JS::NativeAlertManager::Args::message() const id const p = _v[@"message"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional >> JS::NativeAlertManager::Args::buttons() const +inline std::optional >> JS::NativeAlertManager::Args::buttons() const { id const p = _v[@"buttons"]; return RCTBridgingToOptionalVec(p, ^id (id itemValue_0) { return itemValue_0; }); @@ -2088,12 +2122,17 @@ inline NSString *JS::NativeAlertManager::Args::keyboardType() const id const p = _v[@"keyboardType"]; return RCTBridgingToOptionalString(p); } +inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const +{ + id const p = _v[@"userInterfaceStyle"]; + return RCTBridgingToOptionalString(p); +} inline facebook::react::LazyVector JS::NativeAnimatedModule::EventMapping::nativeEventPath() const { id const p = _v[@"nativeEventPath"]; return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); } -inline folly::Optional JS::NativeAnimatedModule::EventMapping::animatedValueTag() const +inline std::optional JS::NativeAnimatedModule::EventMapping::animatedValueTag() const { id const p = _v[@"animatedValueTag"]; return RCTBridgingToOptionalDouble(p); @@ -2103,7 +2142,7 @@ inline facebook::react::LazyVector JS::NativeAnimatedTurboModule::Ev id const p = _v[@"nativeEventPath"]; return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); } -inline folly::Optional JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const +inline std::optional JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const { id const p = _v[@"animatedValueTag"]; return RCTBridgingToOptionalDouble(p); @@ -2174,13 +2213,13 @@ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetr inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto window = i.window; - d[@"window"] = window.hasValue() ? window.value().buildUnsafeRawValue() : nil; + d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil; auto screen = i.screen; - d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil; + d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil; auto windowPhysicalPixels = i.windowPhysicalPixels; - d[@"windowPhysicalPixels"] = windowPhysicalPixels.hasValue() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; + d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; auto screenPhysicalPixels = i.screenPhysicalPixels; - d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; + d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; return d; }) {} inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{ @@ -2191,13 +2230,13 @@ inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _facto auto Dimensions = i.Dimensions.get(); d[@"Dimensions"] = Dimensions.buildUnsafeRawValue(); auto isIPhoneX_deprecated = i.isIPhoneX_deprecated; - d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.hasValue() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; + d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; return d; }) {} inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} -inline folly::Optional JS::NativeExceptionsManager::StackFrame::column() const +inline std::optional JS::NativeExceptionsManager::StackFrame::column() const { id const p = _v[@"column"]; return RCTBridgingToOptionalDouble(p); @@ -2207,7 +2246,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const id const p = _v[@"file"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativeExceptionsManager::StackFrame::lineNumber() const +inline std::optional JS::NativeExceptionsManager::StackFrame::lineNumber() const { id const p = _v[@"lineNumber"]; return RCTBridgingToOptionalDouble(p); @@ -2217,7 +2256,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const id const p = _v[@"methodName"]; return RCTBridgingToString(p); } -inline folly::Optional JS::NativeExceptionsManager::StackFrame::collapse() const +inline std::optional JS::NativeExceptionsManager::StackFrame::collapse() const { id const p = _v[@"collapse"]; return RCTBridgingToOptionalBool(p); @@ -2263,12 +2302,12 @@ inline id _Nullable JS::NativeExceptionsManager::ExceptionData::extraD return p; } -inline folly::Optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const +inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const { id const p = _v[@"debug"]; return RCTBridgingToOptionalBool(p); } -inline folly::Optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const +inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const { id const p = _v[@"reportStackTraces"]; return RCTBridgingToOptionalBool(p); @@ -2327,17 +2366,17 @@ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size() id const p = _v[@"size"]; return JS::NativeImageEditor::OptionsSize(p); } -inline folly::Optional JS::NativeImageEditor::Options::displaySize() const +inline std::optional JS::NativeImageEditor::Options::displaySize() const { id const p = _v[@"displaySize"]; - return (p == nil ? folly::none : folly::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); + return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); } inline NSString *JS::NativeImageEditor::Options::resizeMode() const { id const p = _v[@"resizeMode"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativeImageEditor::Options::allowExternalStorage() const +inline std::optional JS::NativeImageEditor::Options::allowExternalStorage() const { id const p = _v[@"allowExternalStorage"]; return RCTBridgingToOptionalBool(p); @@ -2430,7 +2469,7 @@ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Bui auto patch = i.patch.get(); d[@"patch"] = @(patch); auto prerelease = i.prerelease.get(); - d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil; + d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil; return d; }) {} inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{ @@ -2475,7 +2514,7 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle( id const p = _v[@"alertTitle"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const +inline std::optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const { id const p = _v[@"fireDate"]; return RCTBridgingToOptionalDouble(p); @@ -2505,16 +2544,21 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInter id const p = _v[@"repeatInterval"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const +inline std::optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const { id const p = _v[@"applicationIconBadgeNumber"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::isSilent() const +inline std::optional JS::NativePushNotificationManagerIOS::Notification::isSilent() const { id const p = _v[@"isSilent"]; return RCTBridgingToOptionalBool(p); } +inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const +{ + id const p = _v[@"soundName"]; + return RCTBridgingToOptionalString(p); +} inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ @@ -2551,7 +2595,7 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) auto HEIGHT = i.HEIGHT.get(); d[@"HEIGHT"] = @(HEIGHT); auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR; - d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.hasValue() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; + d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; return d; }) {} inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ diff --git a/Frameworks/React-Codegen.xcframework/ios-arm64/libReact-Codegen.a b/Frameworks/React-Codegen.xcframework/ios-arm64/libReact-Codegen.a new file mode 100644 index 0000000..6c62763 Binary files /dev/null and b/Frameworks/React-Codegen.xcframework/ios-arm64/libReact-Codegen.a differ diff --git a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64_x86_64-simulator/Headers/FBReactNativeSpec/FBReactNativeSpec.h b/Frameworks/React-Codegen.xcframework/ios-arm64_x86_64-simulator/Headers/FBReactNativeSpec/FBReactNativeSpec.h similarity index 88% rename from Frameworks/FBReactNativeSpec.xcframework/ios-arm64_x86_64-simulator/Headers/FBReactNativeSpec/FBReactNativeSpec.h rename to Frameworks/React-Codegen.xcframework/ios-arm64_x86_64-simulator/Headers/FBReactNativeSpec/FBReactNativeSpec.h index 95f3661..97ef924 100644 --- a/Frameworks/FBReactNativeSpec.xcframework/ios-arm64_x86_64-simulator/Headers/FBReactNativeSpec/FBReactNativeSpec.h +++ b/Frameworks/React-Codegen.xcframework/ios-arm64_x86_64-simulator/Headers/FBReactNativeSpec/FBReactNativeSpec.h @@ -1,8 +1,8 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * This code was generated by [react-native-codegen](https://www.npmjs.com/package/react-native-codegen). * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. + * Do not edit this file as changes may cause incorrect behavior and will be lost + * once the code is regenerated. * * @generated by codegen project: GenerateModuleObjCpp * @@ -22,7 +22,7 @@ #import #import #import -#import +#import #import @@ -30,6 +30,7 @@ - (void)isReduceMotionEnabled:(RCTResponseSenderBlock)onSuccess; - (void)isTouchExplorationEnabled:(RCTResponseSenderBlock)onSuccess; +- (void)isAccessibilityServiceEnabled:(RCTResponseSenderBlock)onSuccess; - (void)setAccessibilityFocus:(double)reactTag; - (void)announceForAccessibility:(NSString *)announcement; - (void)getRecommendedTimeoutMillis:(double)mSec @@ -50,18 +51,18 @@ namespace facebook { namespace JS { namespace NativeAccessibilityManager { struct SpecSetAccessibilityContentSizeMultipliersJSMultipliers { - folly::Optional extraSmall() const; - folly::Optional small() const; - folly::Optional medium() const; - folly::Optional large() const; - folly::Optional extraLarge() const; - folly::Optional extraExtraLarge() const; - folly::Optional extraExtraExtraLarge() const; - folly::Optional accessibilityMedium() const; - folly::Optional accessibilityLarge() const; - folly::Optional accessibilityExtraLarge() const; - folly::Optional accessibilityExtraExtraLarge() const; - folly::Optional accessibilityExtraExtraExtraLarge() const; + std::optional extraSmall() const; + std::optional small() const; + std::optional medium() const; + std::optional large() const; + std::optional extraLarge() const; + std::optional extraExtraLarge() const; + std::optional extraExtraExtraLarge() const; + std::optional accessibilityMedium() const; + std::optional accessibilityLarge() const; + std::optional accessibilityExtraLarge() const; + std::optional accessibilityExtraExtraLarge() const; + std::optional accessibilityExtraExtraExtraLarge() const; SpecSetAccessibilityContentSizeMultipliersJSMultipliers(NSDictionary *const v) : _v(v) {} private: @@ -73,6 +74,21 @@ namespace JS { @interface RCTCxxConvert (NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers) + (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecSetAccessibilityContentSizeMultipliersJSMultipliers:(id)json; @end +namespace JS { + namespace NativeAccessibilityManager { + struct SpecAnnounceForAccessibilityWithOptionsOptions { + std::optional queue() const; + + SpecAnnounceForAccessibilityWithOptionsOptions(NSDictionary *const v) : _v(v) {} + private: + NSDictionary *_v; + }; + } +} + +@interface RCTCxxConvert (NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions) ++ (RCTManagedPointer *)JS_NativeAccessibilityManager_SpecAnnounceForAccessibilityWithOptionsOptions:(id)json; +@end @protocol NativeAccessibilityManagerSpec - (void)getCurrentBoldTextState:(RCTResponseSenderBlock)onSuccess @@ -83,6 +99,8 @@ namespace JS { onError:(RCTResponseSenderBlock)onError; - (void)getCurrentReduceMotionState:(RCTResponseSenderBlock)onSuccess onError:(RCTResponseSenderBlock)onError; +- (void)getCurrentPrefersCrossFadeTransitionsState:(RCTResponseSenderBlock)onSuccess + onError:(RCTResponseSenderBlock)onError; - (void)getCurrentReduceTransparencyState:(RCTResponseSenderBlock)onSuccess onError:(RCTResponseSenderBlock)onError; - (void)getCurrentVoiceOverState:(RCTResponseSenderBlock)onSuccess @@ -90,6 +108,8 @@ namespace JS { - (void)setAccessibilityContentSizeMultipliers:(JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers &)JSMultipliers; - (void)setAccessibilityFocus:(double)reactTag; - (void)announceForAccessibility:(NSString *)announcement; +- (void)announceForAccessibilityWithOptions:(NSString *)announcement + options:(JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions &)options; @end namespace facebook { @@ -108,14 +128,14 @@ namespace JS { struct SpecShowActionSheetWithOptionsOptions { NSString *title() const; NSString *message() const; - folly::Optional> options() const; - folly::Optional> destructiveButtonIndices() const; - folly::Optional cancelButtonIndex() const; - folly::Optional anchor() const; - folly::Optional tintColor() const; - folly::Optional cancelButtonTintColor() const; + std::optional> options() const; + std::optional> destructiveButtonIndices() const; + std::optional cancelButtonIndex() const; + std::optional anchor() const; + std::optional tintColor() const; + std::optional cancelButtonTintColor() const; NSString *userInterfaceStyle() const; - folly::Optional> disabledButtonIndices() const; + std::optional> disabledButtonIndices() const; SpecShowActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} private: @@ -133,10 +153,10 @@ namespace JS { NSString *message() const; NSString *url() const; NSString *subject() const; - folly::Optional anchor() const; - folly::Optional tintColor() const; - folly::Optional cancelButtonTintColor() const; - folly::Optional> excludedActivityTypes() const; + std::optional anchor() const; + std::optional tintColor() const; + std::optional cancelButtonTintColor() const; + std::optional> excludedActivityTypes() const; NSString *userInterfaceStyle() const; SpecShowShareActionSheetWithOptionsOptions(NSDictionary *const v) : _v(v) {} @@ -156,6 +176,7 @@ namespace JS { - (void)showShareActionSheetWithOptions:(JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions &)options failureCallback:(RCTResponseSenderBlock)failureCallback successCallback:(RCTResponseSenderBlock)successCallback; +- (void)dismissActionSheet; @end namespace facebook { @@ -174,12 +195,13 @@ namespace JS { struct Args { NSString *title() const; NSString *message() const; - folly::Optional >> buttons() const; + std::optional >> buttons() const; NSString *type() const; NSString *defaultValue() const; NSString *cancelButtonKey() const; NSString *destructiveButtonKey() const; NSString *keyboardType() const; + NSString *userInterfaceStyle() const; Args(NSDictionary *const v) : _v(v) {} private: @@ -212,7 +234,7 @@ namespace JS { namespace NativeAnimatedModule { struct EventMapping { facebook::react::LazyVector nativeEventPath() const; - folly::Optional animatedValueTag() const; + std::optional animatedValueTag() const; EventMapping(NSDictionary *const v) : _v(v) {} private: @@ -230,6 +252,8 @@ namespace JS { - (void)finishOperationBatch; - (void)createAnimatedNode:(double)tag config:(NSDictionary *)config; +- (void)updateAnimatedNodeConfig:(double)tag + config:(NSDictionary *)config; - (void)getValue:(double)tag saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; - (void)startListeningToAnimatedNodeValue:(double)tag; @@ -263,6 +287,7 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; animatedNodeTag:(double)animatedNodeTag; - (void)addListener:(NSString *)eventName; - (void)removeListeners:(double)count; +- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; @end namespace facebook { @@ -280,7 +305,7 @@ namespace JS { namespace NativeAnimatedTurboModule { struct EventMapping { facebook::react::LazyVector nativeEventPath() const; - folly::Optional animatedValueTag() const; + std::optional animatedValueTag() const; EventMapping(NSDictionary *const v) : _v(v) {} private: @@ -298,6 +323,8 @@ namespace JS { - (void)finishOperationBatch; - (void)createAnimatedNode:(double)tag config:(NSDictionary *)config; +- (void)updateAnimatedNodeConfig:(double)tag + config:(NSDictionary *)config; - (void)getValue:(double)tag saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; - (void)startListeningToAnimatedNodeValue:(double)tag; @@ -331,6 +358,7 @@ saveValueCallback:(RCTResponseSenderBlock)saveValueCallback; animatedNodeTag:(double)animatedNodeTag; - (void)addListener:(NSString *)eventName; - (void)removeListeners:(double)count; +- (void)queueAndExecuteBatchedOperations:(NSArray *)operationsAndArgs; @end namespace facebook { @@ -744,10 +772,10 @@ namespace JS { struct Builder { struct Input { - folly::Optional window; - folly::Optional screen; - folly::Optional windowPhysicalPixels; - folly::Optional screenPhysicalPixels; + std::optional window; + std::optional screen; + std::optional windowPhysicalPixels; + std::optional screenPhysicalPixels; }; /** Initialize with a set of values */ @@ -775,7 +803,7 @@ namespace JS { struct Builder { struct Input { RCTRequired Dimensions; - folly::Optional isIPhoneX_deprecated; + std::optional isIPhoneX_deprecated; }; /** Initialize with a set of values */ @@ -816,11 +844,11 @@ namespace facebook { namespace JS { namespace NativeExceptionsManager { struct StackFrame { - folly::Optional column() const; + std::optional column() const; NSString *file() const; - folly::Optional lineNumber() const; + std::optional lineNumber() const; NSString *methodName() const; - folly::Optional collapse() const; + std::optional collapse() const; StackFrame(NSDictionary *const v) : _v(v) {} private: @@ -906,8 +934,8 @@ namespace facebook { namespace JS { namespace NativeFrameRateLogger { struct SpecSetGlobalOptionsOptions { - folly::Optional debug() const; - folly::Optional reportStackTraces() const; + std::optional debug() const; + std::optional reportStackTraces() const; SpecSetGlobalOptionsOptions(NSDictionary *const v) : _v(v) {} private: @@ -1060,9 +1088,9 @@ namespace JS { struct Options { JS::NativeImageEditor::OptionsOffset offset() const; JS::NativeImageEditor::OptionsSize size() const; - folly::Optional displaySize() const; + std::optional displaySize() const; NSString *resizeMode() const; - folly::Optional allowExternalStorage() const; + std::optional allowExternalStorage() const; Options(NSDictionary *const v) : _v(v) {} private: @@ -1428,7 +1456,7 @@ namespace JS { RCTRequired major; RCTRequired minor; RCTRequired patch; - RCTRequired> prerelease; + RCTRequired> prerelease; }; /** Initialize with a set of values */ @@ -1519,14 +1547,15 @@ namespace JS { namespace NativePushNotificationManagerIOS { struct Notification { NSString *alertTitle() const; - folly::Optional fireDate() const; + std::optional fireDate() const; NSString *alertBody() const; NSString *alertAction() const; id _Nullable userInfo() const; NSString *category() const; NSString *repeatInterval() const; - folly::Optional applicationIconBadgeNumber() const; - folly::Optional isSilent() const; + std::optional applicationIconBadgeNumber() const; + std::optional isSilent() const; + NSString *soundName() const; Notification(NSDictionary *const v) : _v(v) {} private: @@ -1765,7 +1794,7 @@ namespace JS { struct Builder { struct Input { RCTRequired HEIGHT; - folly::Optional DEFAULT_BACKGROUND_COLOR; + std::optional DEFAULT_BACKGROUND_COLOR; }; /** Initialize with a set of values */ @@ -1898,66 +1927,71 @@ namespace facebook { } // namespace react } // namespace facebook -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraSmall() const { id const p = _v[@"extraSmall"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::small() const { id const p = _v[@"small"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::medium() const { id const p = _v[@"medium"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::large() const { id const p = _v[@"large"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraLarge() const { id const p = _v[@"extraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraLarge() const { id const p = _v[@"extraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::extraExtraExtraLarge() const { id const p = _v[@"extraExtraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityMedium() const { id const p = _v[@"accessibilityMedium"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityLarge() const { id const p = _v[@"accessibilityLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraLarge() const { id const p = _v[@"accessibilityExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraLarge() const { id const p = _v[@"accessibilityExtraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const +inline std::optional JS::NativeAccessibilityManager::SpecSetAccessibilityContentSizeMultipliersJSMultipliers::accessibilityExtraExtraExtraLarge() const { id const p = _v[@"accessibilityExtraExtraExtraLarge"]; return RCTBridgingToOptionalDouble(p); } +inline std::optional JS::NativeAccessibilityManager::SpecAnnounceForAccessibilityWithOptionsOptions::queue() const +{ + id const p = _v[@"queue"]; + return RCTBridgingToOptionalBool(p); +} inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::title() const { id const p = _v[@"title"]; @@ -1968,32 +2002,32 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt id const p = _v[@"message"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::options() const { id const p = _v[@"options"]; return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::destructiveButtonIndices() const { id const p = _v[@"destructiveButtonIndices"]; return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonIndex() const { id const p = _v[@"cancelButtonIndex"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::anchor() const { id const p = _v[@"anchor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::tintColor() const { id const p = _v[@"tintColor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::cancelButtonTintColor() const { id const p = _v[@"cancelButtonTintColor"]; return RCTBridgingToOptionalDouble(p); @@ -2003,7 +2037,7 @@ inline NSString *JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOpt id const p = _v[@"userInterfaceStyle"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const +inline std::optional> JS::NativeActionSheetManager::SpecShowActionSheetWithOptionsOptions::disabledButtonIndices() const { id const p = _v[@"disabledButtonIndices"]; return RCTBridgingToOptionalVec(p, ^double(id itemValue_0) { return RCTBridgingToDouble(itemValue_0); }); @@ -2023,22 +2057,22 @@ inline NSString *JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptio id const p = _v[@"subject"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::anchor() const { id const p = _v[@"anchor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::tintColor() const { id const p = _v[@"tintColor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const +inline std::optional JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::cancelButtonTintColor() const { id const p = _v[@"cancelButtonTintColor"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const +inline std::optional> JS::NativeActionSheetManager::SpecShowShareActionSheetWithOptionsOptions::excludedActivityTypes() const { id const p = _v[@"excludedActivityTypes"]; return RCTBridgingToOptionalVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); @@ -2058,7 +2092,7 @@ inline NSString *JS::NativeAlertManager::Args::message() const id const p = _v[@"message"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional >> JS::NativeAlertManager::Args::buttons() const +inline std::optional >> JS::NativeAlertManager::Args::buttons() const { id const p = _v[@"buttons"]; return RCTBridgingToOptionalVec(p, ^id (id itemValue_0) { return itemValue_0; }); @@ -2088,12 +2122,17 @@ inline NSString *JS::NativeAlertManager::Args::keyboardType() const id const p = _v[@"keyboardType"]; return RCTBridgingToOptionalString(p); } +inline NSString *JS::NativeAlertManager::Args::userInterfaceStyle() const +{ + id const p = _v[@"userInterfaceStyle"]; + return RCTBridgingToOptionalString(p); +} inline facebook::react::LazyVector JS::NativeAnimatedModule::EventMapping::nativeEventPath() const { id const p = _v[@"nativeEventPath"]; return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); } -inline folly::Optional JS::NativeAnimatedModule::EventMapping::animatedValueTag() const +inline std::optional JS::NativeAnimatedModule::EventMapping::animatedValueTag() const { id const p = _v[@"animatedValueTag"]; return RCTBridgingToOptionalDouble(p); @@ -2103,7 +2142,7 @@ inline facebook::react::LazyVector JS::NativeAnimatedTurboModule::Ev id const p = _v[@"nativeEventPath"]; return RCTBridgingToVec(p, ^NSString *(id itemValue_0) { return RCTBridgingToString(itemValue_0); }); } -inline folly::Optional JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const +inline std::optional JS::NativeAnimatedTurboModule::EventMapping::animatedValueTag() const { id const p = _v[@"animatedValueTag"]; return RCTBridgingToOptionalDouble(p); @@ -2174,13 +2213,13 @@ inline JS::NativeDeviceInfo::DisplayMetricsAndroid::Builder::Builder(DisplayMetr inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(const Input i) : _factory(^{ NSMutableDictionary *d = [NSMutableDictionary new]; auto window = i.window; - d[@"window"] = window.hasValue() ? window.value().buildUnsafeRawValue() : nil; + d[@"window"] = window.has_value() ? window.value().buildUnsafeRawValue() : nil; auto screen = i.screen; - d[@"screen"] = screen.hasValue() ? screen.value().buildUnsafeRawValue() : nil; + d[@"screen"] = screen.has_value() ? screen.value().buildUnsafeRawValue() : nil; auto windowPhysicalPixels = i.windowPhysicalPixels; - d[@"windowPhysicalPixels"] = windowPhysicalPixels.hasValue() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; + d[@"windowPhysicalPixels"] = windowPhysicalPixels.has_value() ? windowPhysicalPixels.value().buildUnsafeRawValue() : nil; auto screenPhysicalPixels = i.screenPhysicalPixels; - d[@"screenPhysicalPixels"] = screenPhysicalPixels.hasValue() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; + d[@"screenPhysicalPixels"] = screenPhysicalPixels.has_value() ? screenPhysicalPixels.value().buildUnsafeRawValue() : nil; return d; }) {} inline JS::NativeDeviceInfo::DimensionsPayload::Builder::Builder(DimensionsPayload i) : _factory(^{ @@ -2191,13 +2230,13 @@ inline JS::NativeDeviceInfo::Constants::Builder::Builder(const Input i) : _facto auto Dimensions = i.Dimensions.get(); d[@"Dimensions"] = Dimensions.buildUnsafeRawValue(); auto isIPhoneX_deprecated = i.isIPhoneX_deprecated; - d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.hasValue() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; + d[@"isIPhoneX_deprecated"] = isIPhoneX_deprecated.has_value() ? @((BOOL)isIPhoneX_deprecated.value()) : nil; return d; }) {} inline JS::NativeDeviceInfo::Constants::Builder::Builder(Constants i) : _factory(^{ return i.unsafeRawValue(); }) {} -inline folly::Optional JS::NativeExceptionsManager::StackFrame::column() const +inline std::optional JS::NativeExceptionsManager::StackFrame::column() const { id const p = _v[@"column"]; return RCTBridgingToOptionalDouble(p); @@ -2207,7 +2246,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::file() const id const p = _v[@"file"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativeExceptionsManager::StackFrame::lineNumber() const +inline std::optional JS::NativeExceptionsManager::StackFrame::lineNumber() const { id const p = _v[@"lineNumber"]; return RCTBridgingToOptionalDouble(p); @@ -2217,7 +2256,7 @@ inline NSString *JS::NativeExceptionsManager::StackFrame::methodName() const id const p = _v[@"methodName"]; return RCTBridgingToString(p); } -inline folly::Optional JS::NativeExceptionsManager::StackFrame::collapse() const +inline std::optional JS::NativeExceptionsManager::StackFrame::collapse() const { id const p = _v[@"collapse"]; return RCTBridgingToOptionalBool(p); @@ -2263,12 +2302,12 @@ inline id _Nullable JS::NativeExceptionsManager::ExceptionData::extraD return p; } -inline folly::Optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const +inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::debug() const { id const p = _v[@"debug"]; return RCTBridgingToOptionalBool(p); } -inline folly::Optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const +inline std::optional JS::NativeFrameRateLogger::SpecSetGlobalOptionsOptions::reportStackTraces() const { id const p = _v[@"reportStackTraces"]; return RCTBridgingToOptionalBool(p); @@ -2327,17 +2366,17 @@ inline JS::NativeImageEditor::OptionsSize JS::NativeImageEditor::Options::size() id const p = _v[@"size"]; return JS::NativeImageEditor::OptionsSize(p); } -inline folly::Optional JS::NativeImageEditor::Options::displaySize() const +inline std::optional JS::NativeImageEditor::Options::displaySize() const { id const p = _v[@"displaySize"]; - return (p == nil ? folly::none : folly::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); + return (p == nil ? std::nullopt : std::make_optional(JS::NativeImageEditor::OptionsDisplaySize(p))); } inline NSString *JS::NativeImageEditor::Options::resizeMode() const { id const p = _v[@"resizeMode"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativeImageEditor::Options::allowExternalStorage() const +inline std::optional JS::NativeImageEditor::Options::allowExternalStorage() const { id const p = _v[@"allowExternalStorage"]; return RCTBridgingToOptionalBool(p); @@ -2430,7 +2469,7 @@ inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Bui auto patch = i.patch.get(); d[@"patch"] = @(patch); auto prerelease = i.prerelease.get(); - d[@"prerelease"] = prerelease.hasValue() ? @((double)prerelease.value()) : nil; + d[@"prerelease"] = prerelease.has_value() ? @((double)prerelease.value()) : nil; return d; }) {} inline JS::NativePlatformConstantsIOS::ConstantsReactNativeVersion::Builder::Builder(ConstantsReactNativeVersion i) : _factory(^{ @@ -2475,7 +2514,7 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::alertTitle( id const p = _v[@"alertTitle"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const +inline std::optional JS::NativePushNotificationManagerIOS::Notification::fireDate() const { id const p = _v[@"fireDate"]; return RCTBridgingToOptionalDouble(p); @@ -2505,16 +2544,21 @@ inline NSString *JS::NativePushNotificationManagerIOS::Notification::repeatInter id const p = _v[@"repeatInterval"]; return RCTBridgingToOptionalString(p); } -inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const +inline std::optional JS::NativePushNotificationManagerIOS::Notification::applicationIconBadgeNumber() const { id const p = _v[@"applicationIconBadgeNumber"]; return RCTBridgingToOptionalDouble(p); } -inline folly::Optional JS::NativePushNotificationManagerIOS::Notification::isSilent() const +inline std::optional JS::NativePushNotificationManagerIOS::Notification::isSilent() const { id const p = _v[@"isSilent"]; return RCTBridgingToOptionalBool(p); } +inline NSString *JS::NativePushNotificationManagerIOS::Notification::soundName() const +{ + id const p = _v[@"soundName"]; + return RCTBridgingToOptionalString(p); +} inline JS::NativeSettingsManager::Constants::Builder::Builder(const Input i) : _factory(^{ @@ -2551,7 +2595,7 @@ inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(const Input i) auto HEIGHT = i.HEIGHT.get(); d[@"HEIGHT"] = @(HEIGHT); auto DEFAULT_BACKGROUND_COLOR = i.DEFAULT_BACKGROUND_COLOR; - d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.hasValue() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; + d[@"DEFAULT_BACKGROUND_COLOR"] = DEFAULT_BACKGROUND_COLOR.has_value() ? @((double)DEFAULT_BACKGROUND_COLOR.value()) : nil; return d; }) {} inline JS::NativeStatusBarManagerIOS::Constants::Builder::Builder(Constants i) : _factory(^{ diff --git a/Frameworks/React-Codegen.xcframework/ios-arm64_x86_64-simulator/libReact-Codegen.a b/Frameworks/React-Codegen.xcframework/ios-arm64_x86_64-simulator/libReact-Codegen.a new file mode 100644 index 0000000..995ad50 Binary files /dev/null and b/Frameworks/React-Codegen.xcframework/ios-arm64_x86_64-simulator/libReact-Codegen.a differ diff --git a/Frameworks/React-Core.xcframework/Info.plist b/Frameworks/React-Core.xcframework/Info.plist index e129825..0e48b45 100644 --- a/Frameworks/React-Core.xcframework/Info.plist +++ b/Frameworks/React-Core.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libReact-Core.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libReact-Core.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libReact-Core.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libReact-Core.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libReact-Core.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/CoreModulesPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/CoreModulesPlugins.h index 0dd2130..55015a5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/CoreModulesPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/CoreModulesPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/NSTextStorage+FontScaling.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/NSTextStorage+FontScaling.h index 61b1634..a87d67d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/NSTextStorage+FontScaling.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/NSTextStorage+FontScaling.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager+Internal.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager+Internal.h index e01e800..36842ee 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager+Internal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager+Internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager.h index 7b5a132..707d576 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAccessibilityManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -23,6 +23,7 @@ extern NSString *const RCTAccessibilityManagerDidUpdateMultiplierNotification; / @property (nonatomic, assign) BOOL isGrayscaleEnabled; @property (nonatomic, assign) BOOL isInvertColorsEnabled; @property (nonatomic, assign) BOOL isReduceMotionEnabled; +@property (nonatomic, assign) BOOL prefersCrossFadeTransitions; @property (nonatomic, assign) BOOL isReduceTransparencyEnabled; @property (nonatomic, assign) BOOL isVoiceOverEnabled; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActionSheetManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActionSheetManager.h index 858afcf..338310b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActionSheetManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActionSheetManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorView.h index 62d5f32..1d50155 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorViewManager.h index 61bbd72..2d31e2c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTActivityIndicatorViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAdditionAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAdditionAnimatedNode.h index 50f3bc1..53c91ba 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAdditionAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAdditionAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertController.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertController.h index f5c206c..62adf2f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertManager.h index 8ea1d9b..2d2a744 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAlertManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedImage.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedImage.h index 933a492..3491149 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedImage.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedImage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedNode.h index 24c0fb3..a6308ee 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationDriver.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationDriver.h index 256464b..2782c2a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationDriver.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationDriver.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationPlugins.h index 406eb68..37e3cc8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationType.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationType.h index 4dcb316..005b6dc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationType.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationType.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationUtils.h index 1f1afa9..cc8c8fa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAnimationUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppSetupUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppSetupUtils.h new file mode 100644 index 0000000..2611a56 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppSetupUtils.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import + +#ifdef __cplusplus + +#if RCT_NEW_ARCH_ENABLED + +#ifndef RCT_USE_HERMES +#if __has_include() +#define RCT_USE_HERMES 1 +#else +#define RCT_USE_HERMES 0 +#endif +#endif + +#if RCT_USE_HERMES +#import +#else +#import +#endif + +#import +#endif + +#if RCT_NEW_ARCH_ENABLED +RCT_EXTERN id RCTAppSetupDefaultModuleFromClass(Class moduleClass); + +std::unique_ptr RCTAppSetupDefaultJsExecutorFactory( + RCTBridge *bridge, + RCTTurboModuleManager *turboModuleManager); +#endif + +#endif // __cplusplus + +RCT_EXTERN_C_BEGIN + +void RCTAppSetupPrepareApp(UIApplication *application); +UIView *RCTAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties); + +RCT_EXTERN_C_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppState.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppState.h index 0921f70..073d553 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppState.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppState.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppearance.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppearance.h index d8c3585..d8bb18b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppearance.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAppearance.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -12,6 +12,7 @@ RCT_EXTERN void RCTEnableAppearancePreference(BOOL enabled); RCT_EXTERN void RCTOverrideAppearancePreference(NSString *const); +RCT_EXTERN NSString *RCTCurrentOverrideAppearancePreference(); RCT_EXTERN NSString *RCTColorSchemePreference(UITraitCollection *traitCollection); @interface RCTAppearance : RCTEventEmitter diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAssert.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAssert.h index e4c7790..e7cb4a0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAssert.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAssert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -74,6 +74,11 @@ RCT_EXTERN NSString *const RCTObjCStackTraceKey; */ RCT_EXTERN NSString *const RCTFatalExceptionName; +/** + * Stringified JSON object containing extra data to attach to the error from JavaScript. + */ +RCT_EXTERN NSString *const RCTJSExtraDataKey; + /** * A block signature to be used for custom assertion handling. */ @@ -170,20 +175,42 @@ RCT_EXTERN NSString *RCTFormatStackTrace(NSArray *> #endif +// MARK: - New Architecture Validation + +typedef enum { + RCTNotAllowedInBridgeless = 1, + RCTNotAllowedInFabricWithoutLegacy = 2, + RCTNotAllowedValidationDisabled = 3, +} RCTNotAllowedValidation; + /** - * Controls for ensuring the new architecture runtime assumption holds. + * // TODO: (T125626909) Only validate legacy architecture usages in Bridgeless mode, not Bridged Fabric mode + * + * Ensure runtime assumptions holds for the new architecture by reporting when assumptions are violated. * Note: this is work in progress. + * + * When level is RCTNotAllowedInFabricWithoutLegacy, validate Fabric assumptions. + * i.e. Report legacy pre-Fabric call sites that should not be used while Fabric is enabled on all surfaces. + * + * When level is RCTNotAllowedInBridgeless, validate Fabric or Bridgeless assumptions. + * i.e. Report Bridge call sites that should not be used while Bridgeless mode is enabled. + * + * Note: enabling this at runtime is not early enough to report issues within ObjC class +load execution. */ +__attribute__((used)) RCT_EXTERN void RCTNewArchitectureSetMinValidationLevel(RCTNotAllowedValidation level); -// Enable reporting of any violation related to the new React Native architecture. -// If RCT_NEW_ARCHITECTURE is defined, it is already enabled by default, otherwise, no violation will be -// reported until enabled. -// Note: enabling this at runtime is not early enough to report issues within ObjC class +load execution. -__attribute__((used)) RCT_EXTERN void RCTEnableNewArchitectureViolationReporting(BOOL enabled); - -// When reporting is enabled, trigger an assertion. -__attribute__((used)) RCT_EXTERN void RCTEnforceNotAllowedForNewArchitecture(id context, NSString *extra); - -// When reporting is enabled, warn about the violation. Use this to prepare a specific callsite -// for stricter enforcement. When ready, switch it to use the variant above. -__attribute__((used)) RCT_EXTERN void RCTWarnNotAllowedForNewArchitecture(id context, NSString *extra); +// When new architecture validation reporting is enabled, trigger an assertion and crash. +__attribute__((used)) RCT_EXTERN void +RCTEnforceNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra); +// When new architecture validation reporting is enabled, trigger an error but do not crash. +// When ready, switch to stricter variant above. +__attribute__((used)) RCT_EXTERN void +RCTErrorNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra); +// When new architecture validation reporting is enabled, log an message. +// When ready, switch to stricter variant above. +__attribute__((used)) RCT_EXTERN void +RCTLogNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra); +// A placeholder for callsites that frequently fail validation. +// When ready, switch to stricter variant above. +__attribute__((used)) RCT_EXTERN void +RCTNewArchitectureValidationPlaceholder(RCTNotAllowedValidation type, id context, NSString *extra); diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAsyncLocalStorage.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAsyncLocalStorage.h index d43281c..66136c8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAsyncLocalStorage.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAsyncLocalStorage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAutoInsetsProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAutoInsetsProtocol.h index fc18a9a..0d12aba 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAutoInsetsProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTAutoInsetsProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegate.h index 3e1839b..c2a4362 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegateAdapter.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegateAdapter.h index a7f3251..1051715 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegateAdapter.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputDelegateAdapter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputViewProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputViewProtocol.h index 09f4fe2..c235907 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputViewProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBackedTextInputViewProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -31,6 +31,10 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign) UITextFieldViewMode clearButtonMode; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; + // This protocol disallows direct access to `selectedTextRange` property because // unwise usage of it can break the `delegate` behavior. So, we always have to diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputShadowView.h index 44b46db..8f4cf7e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputView.h index d73f082..5c6c5cf 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -35,6 +35,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) RCTDirectEventBlock onContentSizeChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onSelectionChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onChange; +@property (nonatomic, copy, nullable) RCTDirectEventBlock onChangeSync; @property (nonatomic, copy, nullable) RCTDirectEventBlock onTextInput; @property (nonatomic, copy, nullable) RCTDirectEventBlock onScroll; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputViewManager.h index 5201bdb..1a9b1a9 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextShadowView.h index 9f2c944..9d0affa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextViewManager.h index b0f9470..56f63c3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBaseTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBlobManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBlobManager.h index 04b905c..34cd8b8 100755 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBlobManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBlobManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderDrawing.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderDrawing.h index 884aa79..4c92868 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderDrawing.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderDrawing.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderStyle.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderStyle.h index 70d6d72..6a97af6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderStyle.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBorderStyle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge+Private.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge+Private.h index 9dd96a5..8412f10 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge+Private.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge+Private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge.h index 8eef1ce..0033a40 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridge.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -164,6 +164,11 @@ RCT_EXTERN void RCTEnableTurboModuleSharedMutexInit(BOOL enabled); RCT_EXTERN BOOL RCTTurboModuleManagerDelegateLockingDisabled(void); RCT_EXTERN void RCTDisableTurboModuleManagerDelegateLocking(BOOL enabled); +// Turn off validAttribute: entries inside ViewConfigs for events +// TODO(109509380): Remove this gating +RCT_EXTERN BOOL RCTViewConfigEventValidAttributesDisabled(void); +RCT_EXTERN void RCTDisableViewConfigEventValidAttributes(BOOL disabled); + typedef enum { kRCTGlobalScope, kRCTGlobalScopeUsingRetainJSCallback, diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeDelegate.h index 00c26f2..0e08196 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeMethod.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeMethod.h index 35d2b89..7169aa7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeMethod.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeMethod.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -9,7 +9,7 @@ @class RCTBridge; -typedef NS_ENUM(NSUInteger, RCTFunctionType) { +typedef NS_ENUM(NSInteger, RCTFunctionType) { RCTFunctionTypeNormal, RCTFunctionTypePromise, RCTFunctionTypeSync, diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModule.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModule.h index fff361a..ae2066f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -437,6 +437,8 @@ typedef NSURL * (^RCTBridgelessBundleURLGetter)(void); typedef UIView * (^RCTBridgelessComponentViewProvider)(NSNumber *); +typedef void (^RCTViewRegistryUIBlock)(RCTViewRegistry *viewRegistry); + /** * A class that allows NativeModules to query for views, given React Tags. */ @@ -445,6 +447,7 @@ typedef UIView * (^RCTBridgelessComponentViewProvider)(NSNumber *); - (void)setBridgelessComponentViewProvider:(RCTBridgelessComponentViewProvider)bridgelessComponentViewProvider; - (UIView *)viewForReactTag:(NSNumber *)reactTag; +- (void)addUIBlock:(RCTViewRegistryUIBlock)block; @end typedef void (^RCTBridgelessJSModuleMethodInvoker)( diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModuleDecorator.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModuleDecorator.h new file mode 100644 index 0000000..225fef4 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBridgeModuleDecorator.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTBridgeModule.h" + +@class RCTBundleManager; +@class RCTCallableJSModules; +@class RCTModuleRegistry; +@class RCTViewRegistry; + +/** + RCTBridgeModuleDecorator contains instances that can be intialized with @synthesize + in RCTBridgeModules. For the Fabric interop layer. + + In Bridgeless, @synthesize ivars are passed from RCTBridgeModuleDecorator. + In Bridge, @synthesize ivars are passed from RCTModuleData. + */ +@interface RCTBridgeModuleDecorator : NSObject +@property (nonatomic, strong, readonly) RCTViewRegistry *viewRegistry_DEPRECATED; +@property (nonatomic, strong, readonly) RCTModuleRegistry *moduleRegistry; +@property (nonatomic, strong, readonly) RCTBundleManager *bundleManager; +@property (nonatomic, strong, readonly) RCTCallableJSModules *callableJSModules; + +- (instancetype)initWithViewRegistry:(RCTViewRegistry *)viewRegistry + moduleRegistry:(RCTModuleRegistry *)moduleRegistry + bundleManager:(RCTBundleManager *)bundleManager + callableJSModules:(RCTCallableJSModules *)callableJSModules; + +- (void)attachInteropAPIsToModule:(id)bridgeModule; + +@end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBundleURLProvider.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBundleURLProvider.h index 26fbbd0..cbf8132 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBundleURLProvider.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTBundleURLProvider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -24,11 +24,6 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); @interface RCTBundleURLProvider : NSObject -/** - * Set default settings on NSUserDefaults. - */ -- (void)setDefaults; - /** * Reset every settings to default. */ @@ -73,25 +68,22 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); /** * Returns the jsBundleURL for a given bundle entrypoint and * the fallback offline JS bundle if the packager is not running. - * if resourceName or extension are nil, "main" and "jsbundle" will be - * used, respectively. + * if extension is nil, "jsbundle" will be used. */ -- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - fallbackResource:(NSString *)resourceName - fallbackExtension:(NSString *)extension; +- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot fallbackExtension:(NSString *)extension; /** * Returns the jsBundleURL for a given bundle entrypoint and * the fallback offline JS bundle if the packager is not running. */ -- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot fallbackResource:(NSString *)resourceName; +- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot; /** * Returns the jsBundleURL for a given bundle entrypoint and - * the fallback offline JS bundle. If resourceName or extension - * are nil, "main" and "jsbundle" will be used, respectively. + * the fallback offline JS bundle. If extension is nil, + * "jsbundle" will be used. */ -- (NSURL *)jsBundleURLForFallbackResource:(NSString *)resourceName fallbackExtension:(NSString *)extension; +- (NSURL *)jsBundleURLForFallbackExtension:(NSString *)extension; /** * Returns the resourceURL for a given bundle entrypoint and @@ -135,13 +127,6 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); enableDev:(BOOL)enableDev enableMinification:(BOOL)enableMinification; -+ (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - packagerHost:(NSString *)packagerHost - enableDev:(BOOL)enableDev - enableMinification:(BOOL)enableMinification - modulesOnly:(BOOL)modulesOnly - runModule:(BOOL)runModule; - + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot packagerHost:(NSString *)packagerHost packagerScheme:(NSString *)scheme @@ -154,8 +139,6 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); * In general, please use the instance method to decide if the packager is running and fallback to the pre-packaged * resource if it is not: -resourceURLForResourceRoot:resourceName:resourceExtension:offlineBundle: */ -+ (NSURL *)resourceURLForResourcePath:(NSString *)path packagerHost:(NSString *)packagerHost query:(NSString *)query; - + (NSURL *)resourceURLForResourcePath:(NSString *)path packagerHost:(NSString *)packagerHost scheme:(NSString *)scheme diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTClipboard.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTClipboard.h index 1dd9789..8606b22 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTClipboard.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTClipboard.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTColorAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTColorAnimatedNode.h new file mode 100644 index 0000000..ae1d132 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTColorAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@interface RCTColorAnimatedNode : RCTAnimatedNode + +@property (nonatomic, assign) int32_t color; + +@end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponent.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponent.h index 4258334..c633085 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -15,6 +15,7 @@ */ typedef void (^RCTDirectEventBlock)(NSDictionary *body); typedef void (^RCTBubblingEventBlock)(NSDictionary *body); +typedef void (^RCTCapturingEventBlock)(NSDictionary *body); /** * Logical node in a tree of application components. Both `ShadowView` and diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentData.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentData.h index 6a1fdb7..352f826 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentData.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentData.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentEvent.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentEvent.h index 0467f8c..e79468d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentEvent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTComponentEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConstants.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConstants.h index c92fc10..cf6e4eb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConstants.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConstants.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -17,7 +17,19 @@ RCT_EXTERN BOOL RCTExperimentGetPreemptiveViewAllocationDisabled(void); RCT_EXTERN void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value); /* - * Remove clipped subviews + * W3C Pointer Events */ -RCT_EXTERN BOOL RCTGetRemoveClippedSubviewsEnabled(void); -RCT_EXTERN void RCTSetRemoveClippedSubviewsEnabled(BOOL value); +RCT_EXTERN BOOL RCTGetDispatchW3CPointerEvents(void); +RCT_EXTERN void RCTSetDispatchW3CPointerEvents(BOOL value); + +/* + * Validate RCTEventEmitter + */ +RCT_EXTERN BOOL RCTGetValidateCanSendEventInRCTEventEmitter(void); +RCT_EXTERN void RCTSetValidateCanSendEventInRCTEventEmitter(BOOL value); + +/* + * Memory Pressure Unloading Level + */ +RCT_EXTERN BOOL RCTGetMemoryPressureUnloadLevel(void); +RCT_EXTERN void RCTSetMemoryPressureUnloadLevel(int value); diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+CoreLocation.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+CoreLocation.h index 251202f..096f2ac 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+CoreLocation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+CoreLocation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Text.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Text.h index eafbdb3..b7c411a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Text.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Text.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Transform.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Transform.h index 07a7b2c..9ad72ae 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Transform.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert+Transform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert.h index 09a380e..c4913f6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTConvert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTCxxConvert.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTCxxConvert.h index 261e61f..b5176f6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTCxxConvert.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTCxxConvert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDataRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDataRequestHandler.h index f0b2c68..24fa02a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDataRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDataRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePicker.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePicker.h index 14f9a2e..e5a60fb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePicker.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePicker.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePickerManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePickerManager.h index bd14cd3..fbc6f52 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePickerManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDatePickerManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDecayAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDecayAnimation.h index e68450e..f9aba7d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDecayAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDecayAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDefines.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDefines.h index 4b9517e..564ae99 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDefines.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDefines.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -157,7 +157,7 @@ * Note: this is work in progress. */ #ifdef REACT_NATIVE_FORCE_NEW_ARCHITECTURE -#define RCT_NEW_ARCHITECTURE 1 +#define RCT_ONLY_NEW_ARCHITECTURE 1 #else -#define RCT_NEW_ARCHITECTURE 0 +#define RCT_ONLY_NEW_ARCHITECTURE 0 #endif diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingView.h index da5ad2d..175adc5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewProtocol.h index 001a18e..ec9ed3a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewSetEnabled.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewSetEnabled.h index 1ad1825..8657489 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewSetEnabled.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevLoadingViewSetEnabled.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevMenu.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevMenu.h index b322afb..eedfff1 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevMenu.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevMenu.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -39,6 +39,11 @@ RCT_EXTERN NSString *const RCTShowDevMenuNotification; */ @property (nonatomic, assign) BOOL hotLoadingEnabled DEPRECATED_ATTRIBUTE; +/** + * Whether the hotkeys that toggles the developer menu is enabled. + */ +@property (nonatomic, assign) BOOL hotkeysEnabled; + /** * Presented items in development menu */ diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSettings.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSettings.h index 9661caf..c576e37 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSettings.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSettings.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSplitBundleLoader.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSplitBundleLoader.h index 52a115c..c5a1efc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSplitBundleLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDevSplitBundleLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDeviceInfo.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDeviceInfo.h index cef03be..5b129ea 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDeviceInfo.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDeviceInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDiffClampAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDiffClampAnimatedNode.h index 085fb3d..82144af 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDiffClampAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDiffClampAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayLink.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayLink.h index 1e79c0b..28bfa7b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayLink.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayLink.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayWeakRefreshable.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayWeakRefreshable.h index c1ea105..d285c0c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayWeakRefreshable.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDisplayWeakRefreshable.h @@ -1,11 +1,12 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import +#import @protocol RCTDisplayRefreshable diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDivisionAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDivisionAnimatedNode.h index 006fd5a..6909be3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDivisionAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTDivisionAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorCustomizer.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorCustomizer.h index aa65296..d634b55 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorCustomizer.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorCustomizer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorInfo.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorInfo.h index a5d74d8..a388b78 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorInfo.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTErrorInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventAnimation.h index c63c1f4..3791ba5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcher.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcher.h index bbcd643..3b31791 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcher.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcher.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcherProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcherProtocol.h index 913cf85..4125e98 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcherProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventDispatcherProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -102,6 +102,11 @@ typedef NS_ENUM(NSInteger, RCTTextEventType) { key:(NSString *)key eventCount:(NSInteger)eventCount; +/** + * Notify Observers of event + */ +- (void)notifyObserversOfEvent:(id)event; + /** * Send a pre-prepared event object. * diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventEmitter.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventEmitter.h index e3bb12f..6ad2133 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventEmitter.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTEventEmitter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -32,6 +32,8 @@ */ - (void)sendEventWithName:(NSString *)name body:(id)body; +- (BOOL)canSendEvents_DEPRECATED; + /** * These methods will be called when the first observer is added and when the * last observer is removed (or when dealloc is called), respectively. These diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTExceptionsManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTExceptionsManager.h index 28ae105..76d3642 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTExceptionsManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTExceptionsManager.h @@ -1,12 +1,11 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import - #import NS_ASSUME_NONNULL_BEGIN @@ -15,10 +14,12 @@ NS_ASSUME_NONNULL_BEGIN - (void)handleSoftJSExceptionWithMessage:(nullable NSString *)message stack:(nullable NSArray *)stack - exceptionId:(NSNumber *)exceptionId; + exceptionId:(NSNumber *)exceptionId + extraDataAsJSON:(nullable NSString *)extraDataAsJSON; - (void)handleFatalJSExceptionWithMessage:(nullable NSString *)message stack:(nullable NSArray *)stack - exceptionId:(NSNumber *)exceptionId; + exceptionId:(NSNumber *)exceptionId + extraDataAsJSON:(nullable NSString *)extraDataAsJSON; @optional - (void)updateJSExceptionWithMessage:(nullable NSString *)message @@ -37,6 +38,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)reportFatalException:(nullable NSString *)message stack:(nullable NSArray *)stack exceptionId:(double)exceptionId; +- (void)reportJsException:(NSString *)errorMap; @property (nonatomic, weak) id delegate; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFPSGraph.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFPSGraph.h index 73dd6bd..7b90481 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFPSGraph.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFPSGraph.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileReaderModule.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileReaderModule.h index 0eb246b..80d3808 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileReaderModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileReaderModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileRequestHandler.h index 7faf39d..d2368c2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFileRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFont.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFont.h index 15437dd..5ddc34d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFont.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFont.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameAnimation.h index 610d3ff..1ce3c83 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameUpdate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameUpdate.h index 07f0889..39d7b72 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameUpdate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTFrameUpdate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTGIFImageDecoder.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTGIFImageDecoder.h index 2d56637..8c39748 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTGIFImageDecoder.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTGIFImageDecoder.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTHTTPRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTHTTPRequestHandler.h index 5a91bd0..3f96a8b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTHTTPRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTHTTPRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nManager.h index 5f21ec4..b500708 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nUtil.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nUtil.h index f3a1550..c105344 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nUtil.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTI18nUtil.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageBlurUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageBlurUtils.h index 18a286e..4edcf3f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageBlurUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageBlurUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageCache.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageCache.h index a4d15b4..b85de92 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageCache.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageCache.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -39,4 +39,7 @@ @end @interface RCTImageCache : NSObject + +RCT_EXTERN void RCTSetImageCacheLimits(NSUInteger maxCachableDecodedImageSizeInBytes, NSUInteger imageCacheTotalCostLimit); + @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageDataDecoder.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageDataDecoder.h index b7fbb00..1d126aa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageDataDecoder.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageDataDecoder.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageEditingManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageEditingManager.h index 216b622..a155cbd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageEditingManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageEditingManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoader.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoader.h index da0df28..c24d5ad 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderLoggable.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderLoggable.h index 3b78c48..08507e7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderLoggable.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderLoggable.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderProtocol.h index f1bb268..5e8f4f8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN * Use PriorityPrefetch to prefetch images at a lower priority. * The priority logic is up to each @RCTImageLoaderProtocol implementation */ -typedef NS_ENUM(NSUInteger, RCTImageLoaderPriority) { +typedef NS_ENUM(NSInteger, RCTImageLoaderPriority) { RCTImageLoaderPriorityImmediate, RCTImageLoaderPriorityPrefetch }; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderWithAttributionProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderWithAttributionProtocol.h index 07aab9d..1bdbe2e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderWithAttributionProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageLoaderWithAttributionProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImagePlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImagePlugins.h index 1e943d8..fb78269 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImagePlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImagePlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageShadowView.h index 3057118..8333da3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageSource.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageSource.h index 928657c..3a5a481 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageSource.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageSource.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageStoreManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageStoreManager.h index 0073381..389f613 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageStoreManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageStoreManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoader.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoader.h index e49ed11..e8ceb26 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoaderWithAttribution.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoaderWithAttribution.h index 118bed1..f417cdc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoaderWithAttribution.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageURLLoaderWithAttribution.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageUtils.h index df04a2c..5763b04 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageView.h index c895a53..c5057fc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageViewManager.h index 9431f35..8202aab 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTImageViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInitializing.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInitializing.h index 56b14b1..dc6323b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInitializing.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInitializing.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryShadowView.h index 8ed5110..8f7ecb8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryView.h index d4c48ce..f86370c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewContent.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewContent.h index f65eea7..e07b07d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewContent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewContent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewManager.h index 251048d..4f1cc32 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInputAccessoryViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspector.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspector.h index 97c8d2e..49acfcd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspector.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspector.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorDevServerHelper.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorDevServerHelper.h index b69fa02..f527f50 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorDevServerHelper.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorDevServerHelper.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorPackagerConnection.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorPackagerConnection.h index de08694..184b05d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorPackagerConnection.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInspectorPackagerConnection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInterpolationAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInterpolationAnimatedNode.h index 8ec4101..2ac1650 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInterpolationAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInterpolationAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInvalidating.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInvalidating.h index bc144cd..ad35375 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInvalidating.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTInvalidating.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSScriptLoaderModule.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSScriptLoaderModule.h index a0ba36e..c05c29f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSScriptLoaderModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSScriptLoaderModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSStackFrame.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSStackFrame.h index 1a66e29..4d72e86 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSStackFrame.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSStackFrame.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSThread.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSThread.h index 8f1bc76..57503e4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSThread.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJSThread.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptExecutor.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptExecutor.h index c42fb05..d191304 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptExecutor.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptLoader.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptLoader.h index 729fa37..a8a95f7 100755 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTJavaScriptLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -11,10 +11,7 @@ extern NSString *const RCTJavaScriptLoaderErrorDomain; -extern const UInt32 RCT_BYTECODE_ALIGNMENT; - -UInt32 RCTReadUInt32LE(NSData *script, UInt32 offset); -bool RCTIsBytecodeBundle(NSData *script); +extern const uint32_t RCT_BYTECODE_ALIGNMENT; NS_ENUM(NSInteger){ RCTJavaScriptLoaderErrorNoScriptURL = 1, diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyCommands.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyCommands.h index 2bdefcf..df94f35 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyCommands.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyCommands.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyboardObserver.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyboardObserver.h index 320b65d..76c491d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyboardObserver.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTKeyboardObserver.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayout.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayout.h index d838032..55340ad 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayout.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayout.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimation.h index e907a99..4248dca 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimationGroup.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimationGroup.h index f13d046..02ae762 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimationGroup.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLayoutAnimationGroup.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingManager.h index 02de122..4eea247 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingPlugins.h index 17e3d6c..4cf0a9b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLinkingPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLocalAssetImageLoader.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLocalAssetImageLoader.h index c04f21e..453acce 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLocalAssetImageLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLocalAssetImageLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLog.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLog.h index 0d79797..2e750b8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLog.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLog.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -11,6 +11,9 @@ #import #import +@class RCTModuleRegistry; +@class RCTCallableJSModules; + #ifndef RCTLOG_ENABLED #define RCTLOG_ENABLED 1 #endif @@ -121,6 +124,20 @@ RCT_EXTERN void RCTPerformBlockWithLogFunction(void (^block)(void), RCTLogFuncti */ RCT_EXTERN void RCTPerformBlockWithLogPrefix(void (^block)(void), NSString *prefix); +/** + * These methods allows static methods in RCTLog to call NativeModules and TurboModules. + * TODO(T112035275) After Bridgeless mixed mode is removed, we can merge these methods + */ +RCT_EXTERN void RCTLogSetBridgeModuleRegistry(RCTModuleRegistry *moduleRegistry); +RCT_EXTERN void RCTLogSetBridgelessModuleRegistry(RCTModuleRegistry *moduleRegistry); + +/** + * This methods allows static methods in RCTLog to call JS methods. + * TODO(T112035275) After Bridgeless mixed mode is removed, we can merge these methods + */ +RCT_EXTERN void RCTLogSetBridgeCallableJSModules(RCTCallableJSModules *callableJSModules); +RCT_EXTERN void RCTLogSetBridgelessCallableJSModules(RCTCallableJSModules *callableJSModules); + /** * Private logging function - ignore this. */ diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBox.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBox.h index e3bf6ad..17f7f4d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBox.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBox.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBoxView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBoxView.h index 7c05bcb..5c790e4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBoxView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTLogBoxView.h @@ -1,11 +1,12 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import +#import #import #import @@ -15,7 +16,8 @@ - (void)createRootViewController:(UIView *)view; -- (instancetype)initWithFrame:(CGRect)frame bridge:(RCTBridge *)bridge; +- (instancetype)initWithWindow:(UIWindow *)window bridge:(RCTBridge *)bridge; +- (instancetype)initWithWindow:(UIWindow *)window surfacePresenter:(id)surfacePresenter; - (void)show; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMacros.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMacros.h index 9144bbe..b636f9a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMacros.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMacros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTManagedPointer.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTManagedPointer.h index 4ed6616..ff444d2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTManagedPointer.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTManagedPointer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedView.h index 4628240..cab90b6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedViewManager.h index a37f85a..6aaf61f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMaskedViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMockDef.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMockDef.h new file mode 100644 index 0000000..6776136 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMockDef.h @@ -0,0 +1,61 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* These macros are used to stub C functions. Here's an example: + * + * Helpers.h + * ------ + * boolean ReturnsTrueOrFalse(void); + * + * FileToBeTested.h + * ------ + * RCT_MOCK_DEF(Testing, ReturnsTrueOrFalse); + * #define ReturnsTrueOrFalse RCT_MOCK_USE(Testing, ReturnsTrueOrFalse) + * + * int FunctionToBeTested(int input) { + * return ReturnsTrueOrFalse() ? input + 1 : input - 1; + * } + * + * Test.h + * ----- + * RCT_MOCK_GET(Testing, ReturnsTrueOrFalse); + * + * boolean _ReturnsTrue(void) { return true; } + * boolean _ReturnsFalse(void) { return false; } + * + * void TestFunctionTrue(void) { + * RCT_MOCK_SET(Testing, ReturnsTrueOrFalse, _ReturnsTrue); + * assert(FunctionToBeTested(5) == 6); + * RCT_MOCK_RESET(Testing, ReturnsTrueOrFalse); + * } + * + * void TestFunctionFalse(void) { + * RCT_MOCK_SET(Testing, ReturnsTrueOrFalse, _ReturnsFalse); + * assert(FunctionToBeTested(5) == 4); + * RCT_MOCK_RESET(Testing, ReturnsTrueOrFalse); + * } + * + */ + +#ifdef RCT_DEV +#define RCT_MOCK_DEF(context, api) \ + __typeof(__typeof(api) *) mockptr_##context##_##api = &api; +#define RCT_MOCK_REF(context, api) \ + extern __typeof(__typeof(api) *) mockptr_##context##_##api; +#define RCT_MOCK_SET(context, api, mockapi) \ + (mockptr_##context##_##api = &mockapi) +#define RCT_MOCK_RESET(context, api) (mockptr_##context##_##api = &api) +#define RCT_MOCK_USE(context, api) (*mockptr_##context##_##api) +#else +#define RCT_MOCK_DEF(context, api) +#define RCT_MOCK_REF(context, api) +#define RCT_MOCK_SET(context, api, mockapi) +#define RCT_MOCK_RESET(context, api) +#define RCT_MOCK_USE(context, api) api +#endif diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostView.h index 01d3861..2fcdcae 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -25,6 +25,11 @@ @property (nonatomic, copy) RCTDirectEventBlock onShow; @property (nonatomic, assign) BOOL visible; +// Android only +@property (nonatomic, assign) BOOL statusBarTranslucent; +@property (nonatomic, assign) BOOL hardwareAccelerated; +@property (nonatomic, assign) BOOL animated; + @property (nonatomic, copy) NSNumber *identifier; @property (nonatomic, weak) id delegate; @@ -33,7 +38,7 @@ @property (nonatomic, copy) RCTDirectEventBlock onOrientationChange; // Fabric only -@property (nonatomic, copy) RCTBubblingEventBlock onDismiss; +@property (nonatomic, copy) RCTDirectEventBlock onDismiss; - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewController.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewController.h index a3f66b6..b12b0f7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewManager.h index e5b0815..11b5298 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalHostViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalManager.h index 4fbe6df..237037f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModalManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleData.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleData.h index 71e1950..a1c5b3a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleData.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleData.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleMethod.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleMethod.h index c93a060..279b906 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleMethod.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuleMethod.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuloAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuloAnimatedNode.h index fc7f69d..6396eda 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuloAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTModuloAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputView.h index 0efd63a..bd183de 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputViewManager.h index 3347fbb..fe8dbc3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultilineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartDataTask.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartDataTask.h index bcf0c57..25a73fd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartDataTask.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartDataTask.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartStreamReader.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartStreamReader.h index 5ef5b61..286842a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartStreamReader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultipartStreamReader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultiplicationAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultiplicationAnimatedNode.h index bb8b3b2..44e7fb7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultiplicationAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTMultiplicationAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedModule.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedModule.h index 13b40fd..f573e85 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedNodesManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedNodesManager.h index 7832538..3dd32b8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedNodesManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedNodesManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -13,82 +13,89 @@ @protocol RCTValueAnimatedNodeObserver; +NS_ASSUME_NONNULL_BEGIN + @interface RCTNativeAnimatedNodesManager : NSObject -- (nonnull instancetype)initWithBridge:(RCTBridge *)bridge +- (nonnull instancetype)initWithBridge:(nullable RCTBridge *)bridge surfacePresenter:(id)surfacePresenter; - (void)updateAnimations; -- (void)stepAnimations:(nonnull CADisplayLink *)displaylink; +- (void)stepAnimations:(CADisplayLink *)displaylink; -- (BOOL)isNodeManagedByFabric:(nonnull NSNumber *)tag; +- (BOOL)isNodeManagedByFabric:(NSNumber *)tag; -- (void)getValue:(nonnull NSNumber *)nodeTag - saveCallback:(nullable RCTResponseSenderBlock)saveCallback; +- (void)getValue:(NSNumber *)nodeTag + saveCallback:(RCTResponseSenderBlock)saveCallback; // graph -- (void)createAnimatedNode:(nonnull NSNumber *)tag - config:(NSDictionary *__nonnull)config; +- (void)createAnimatedNode:(NSNumber *)tag + config:(NSDictionary *)config; -- (void)connectAnimatedNodes:(nonnull NSNumber *)parentTag - childTag:(nonnull NSNumber *)childTag; +- (void)connectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; -- (void)disconnectAnimatedNodes:(nonnull NSNumber *)parentTag - childTag:(nonnull NSNumber *)childTag; +- (void)disconnectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; -- (void)connectAnimatedNodeToView:(nonnull NSNumber *)nodeTag - viewTag:(nonnull NSNumber *)viewTag - viewName:(nonnull NSString *)viewName; +- (void)connectAnimatedNodeToView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag + viewName:(nullable NSString *)viewName; -- (void)restoreDefaultValues:(nonnull NSNumber *)nodeTag; +- (void)restoreDefaultValues:(NSNumber *)nodeTag; -- (void)disconnectAnimatedNodeFromView:(nonnull NSNumber *)nodeTag - viewTag:(nonnull NSNumber *)viewTag; +- (void)disconnectAnimatedNodeFromView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag; -- (void)dropAnimatedNode:(nonnull NSNumber *)tag; +- (void)dropAnimatedNode:(NSNumber *)tag; // mutations -- (void)setAnimatedNodeValue:(nonnull NSNumber *)nodeTag - value:(nonnull NSNumber *)value; +- (void)setAnimatedNodeValue:(NSNumber *)nodeTag + value:(NSNumber *)value; -- (void)setAnimatedNodeOffset:(nonnull NSNumber *)nodeTag - offset:(nonnull NSNumber *)offset; +- (void)setAnimatedNodeOffset:(NSNumber *)nodeTag + offset:(NSNumber *)offset; -- (void)flattenAnimatedNodeOffset:(nonnull NSNumber *)nodeTag; +- (void)flattenAnimatedNodeOffset:(NSNumber *)nodeTag; -- (void)extractAnimatedNodeOffset:(nonnull NSNumber *)nodeTag; +- (void)extractAnimatedNodeOffset:(NSNumber *)nodeTag; + +- (void)updateAnimatedNodeConfig:(NSNumber *)tag + config:(NSDictionary *)config; // drivers -- (void)startAnimatingNode:(nonnull NSNumber *)animationId - nodeTag:(nonnull NSNumber *)nodeTag - config:(NSDictionary *__nonnull)config +- (void)startAnimatingNode:(NSNumber *)animationId + nodeTag:(NSNumber *)nodeTag + config:(NSDictionary *)config endCallback:(nullable RCTResponseSenderBlock)callBack; -- (void)stopAnimation:(nonnull NSNumber *)animationId; +- (void)stopAnimation:(NSNumber *)animationId; - (void)stopAnimationLoop; // events -- (void)addAnimatedEventToView:(nonnull NSNumber *)viewTag - eventName:(nonnull NSString *)eventName - eventMapping:(NSDictionary *__nonnull)eventMapping; +- (void)addAnimatedEventToView:(NSNumber *)viewTag + eventName:(NSString *)eventName + eventMapping:(NSDictionary *)eventMapping; -- (void)removeAnimatedEventFromView:(nonnull NSNumber *)viewTag - eventName:(nonnull NSString *)eventName - animatedNodeTag:(nonnull NSNumber *)animatedNodeTag; +- (void)removeAnimatedEventFromView:(NSNumber *)viewTag + eventName:(NSString *)eventName + animatedNodeTag:(NSNumber *)animatedNodeTag; -- (void)handleAnimatedEvent:(nonnull id)event; +- (void)handleAnimatedEvent:(id)event; // listeners -- (void)startListeningToAnimatedNodeValue:(nonnull NSNumber *)tag - valueObserver:(nonnull id)valueObserver; +- (void)startListeningToAnimatedNodeValue:(NSNumber *)tag + valueObserver:(id)valueObserver; -- (void)stopListeningToAnimatedNodeValue:(nonnull NSNumber *)tag; +- (void)stopListeningToAnimatedNodeValue:(NSNumber *)tag; @end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedTurboModule.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedTurboModule.h index 2da04a1..7c4dc64 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedTurboModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNativeAnimatedTurboModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -9,8 +9,6 @@ #import #import #import -#import -#import #import #import "RCTValueAnimatedNode.h" @@ -18,6 +16,6 @@ // TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. // NOTE: This module is temporarily forked (see RCTNativeAnimatedModule). // When making any changes, be sure to apply them to the fork as well. -@interface RCTNativeAnimatedTurboModule: RCTEventEmitter +@interface RCTNativeAnimatedTurboModule: RCTEventEmitter @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkPlugins.h index b8ea7cd..c596ea8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkTask.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkTask.h index 716a090..c7df919 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkTask.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworkTask.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworking.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworking.h index 2068f32..3ad70f0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworking.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNetworking.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNullability.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNullability.h index f08d276..266f3f5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNullability.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTNullability.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -7,7 +7,7 @@ #import -typedef NS_ENUM(NSUInteger, RCTNullability) { +typedef NS_ENUM(NSInteger, RCTNullability) { RCTNullabilityUnspecified, RCTNullable, RCTNonnullable, diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPLTag.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPLTag.h new file mode 100644 index 0000000..5aa15cb --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPLTag.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +typedef NS_ENUM(NSInteger, RCTPLTag) { + RCTPLScriptDownload = 0, + RCTPLScriptExecution, + RCTPLRAMBundleLoad, + RCTPLRAMStartupCodeSize, + RCTPLRAMStartupNativeRequires, + RCTPLRAMStartupNativeRequiresCount, + RCTPLRAMNativeRequires, + RCTPLRAMNativeRequiresCount, + RCTPLNativeModuleInit, + RCTPLNativeModuleMainThread, + RCTPLNativeModulePrepareConfig, + RCTPLNativeModuleMainThreadUsesCount, + RCTPLNativeModuleSetup, + RCTPLTurboModuleSetup, + RCTPLJSCWrapperOpenLibrary, + RCTPLBridgeStartup, + RCTPLTTI, + RCTPLBundleSize, + RCTPLReactInstanceInit, + RCTPLSize // This is used to count the size +}; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerClient.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerClient.h index 3a7a3fd..6dea84f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerClient.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerClient.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerConnection.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerConnection.h index 795a3fc..014f73f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerConnection.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPackagerConnection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTParserUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTParserUtils.h index 15701f4..5a853a4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTParserUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTParserUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLogger.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLogger.h index b0e4a4e..3438edd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLogger.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLogger.h @@ -1,35 +1,12 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import - -// Keep this in sync with _labelsForTags -typedef NS_ENUM(NSUInteger, RCTPLTag) { - RCTPLScriptDownload = 0, - RCTPLScriptExecution, - RCTPLRAMBundleLoad, - RCTPLRAMStartupCodeSize, - RCTPLRAMStartupNativeRequires, - RCTPLRAMStartupNativeRequiresCount, - RCTPLRAMNativeRequires, - RCTPLRAMNativeRequiresCount, - RCTPLNativeModuleInit, - RCTPLNativeModuleMainThread, - RCTPLNativeModulePrepareConfig, - RCTPLNativeModuleMainThreadUsesCount, - RCTPLNativeModuleSetup, - RCTPLTurboModuleSetup, - RCTPLJSCWrapperOpenLibrary, - RCTPLBridgeStartup, - RCTPLTTI, - RCTPLBundleSize, - RCTPLReactInstanceInit, - RCTPLSize // This is used to count the size -}; +#import "RCTPLTag.h" @interface RCTPerformanceLogger : NSObject @@ -95,10 +72,4 @@ typedef NS_ENUM(NSUInteger, RCTPLTag) { */ - (int64_t)valueForTag:(RCTPLTag)tag; -/** - * Returns an array with values for all tags. - * Use RCTPLTag to go over the array. - */ -- (NSArray *)labelsForTags; - @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLoggerLabels.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLoggerLabels.h new file mode 100644 index 0000000..12e0211 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPerformanceLoggerLabels.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import "RCTPLTag.h" + +// Return the string label for the enum RCTPLTag for performance logging +__attribute__((used)) RCT_EXTERN NSString *RCTPLLabelForTag(RCTPLTag tag); diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPlatform.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPlatform.h index 64ce567..f1e9d6a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPlatform.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPlatform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPointerEvents.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPointerEvents.h index 001c85f..ff8d533 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPointerEvents.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPointerEvents.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProfile.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProfile.h index 7c6dec1..7341566 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProfile.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProfile.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProgressViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProgressViewManager.h index 32b0988..2fb02c8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProgressViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTProgressViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPropsAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPropsAnimatedNode.h index 0b5f532..8c11a43 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPropsAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTPropsAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextShadowView.h index 1b63014..cc4c4d7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextViewManager.h index ef9a076..03a8a75 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRawTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReconnectingWebSocket.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReconnectingWebSocket.h index 25aa3ef..3690b76 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReconnectingWebSocket.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReconnectingWebSocket.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBox.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBox.h index d468f44..5d67a2a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBox.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBox.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxExtraDataViewController.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxExtraDataViewController.h index 8d2b4c2..1308cde 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxExtraDataViewController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxExtraDataViewController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxSetEnabled.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxSetEnabled.h index fd53eb7..f4f46ef 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxSetEnabled.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRedBoxSetEnabled.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControl.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControl.h index c17b226..35c60c2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControl.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControlManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControlManager.h index 107a9db..123af74 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControlManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshControlManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshableProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshableProtocol.h index 9271e2d..b0b06f2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshableProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRefreshableProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReloadCommand.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReloadCommand.h index 4846275..2ab722f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReloadCommand.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTReloadCommand.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTResizeMode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTResizeMode.h index 468a58a..322ce53 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTResizeMode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTResizeMode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootContentView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootContentView.h index dfc6d03..6c93bdd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootContentView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootContentView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootShadowView.h index 74af7e8..a312d9a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootView.h index dd56345..32eeb7a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewDelegate.h index 5749157..e2dbc02 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewInternal.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewInternal.h index 8e28dd4..bfff4e0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewInternal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTRootViewInternal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaShadowView.h index 784a4e0..5a5caaa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaView.h index ae1b6b3..4817b68 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -17,8 +17,6 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initWithBridge:(RCTBridge *)bridge; -@property (nonatomic, assign) BOOL emulateUnlessSupported; - @end NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewLocalData.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewLocalData.h index 24c776c..b78edb7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewLocalData.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewLocalData.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewManager.h index 71dcc3c..4572832 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSafeAreaViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentShadowView.h index ecae476..126a575 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentView.h index 8d33a5a..853a76b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentViewManager.h index 7645c04..9b5dbbf 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollContentViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollEvent.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollEvent.h index 29a645d..f756c22 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollEvent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollView.h index ea1522b..f6f6d42 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -35,6 +35,7 @@ @property (nonatomic, assign) UIEdgeInsets contentInset; @property (nonatomic, assign) BOOL automaticallyAdjustContentInsets; +@property (nonatomic, assign) BOOL automaticallyAdjustKeyboardInsets; @property (nonatomic, assign) BOOL DEPRECATED_sendUpdatedChildFrames; @property (nonatomic, assign) NSTimeInterval scrollEventThrottle; @property (nonatomic, assign) BOOL centerContent; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollViewManager.h index 94f6e19..3709180 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollableProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollableProtocol.h index ec6772e..706900b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollableProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTScrollableProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControl.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControl.h index b428f4d..7cb9ffd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControl.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControlManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControlManager.h index edc9df9..cf85c38 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControlManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSegmentedControlManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsManager.h index 4e76780..1e0263c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsPlugins.h index cf79705..b6a5158 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSettingsPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Internal.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Internal.h index b871ce6..0455863 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Internal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Layout.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Layout.h index 7e09674..e320952 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Layout.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView+Layout.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView.h index 4696b14..226672f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -8,6 +8,8 @@ #import #import +// Keeps RCTConvert.h here before yoga for clang module to generate correct header imports. +#import #import #import #import diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputView.h index d9450db..4846f7d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputViewManager.h index 314993a..6134ddb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSinglelineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSlider.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSlider.h index 355cc36..6eae192 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSlider.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSlider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSliderManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSliderManager.h index 49de42c..cbe0976 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSliderManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSliderManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSourceCode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSourceCode.h index fd0e387..e8332f7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSourceCode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSourceCode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSpringAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSpringAnimation.h index 0c031ec..bb7554c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSpringAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSpringAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStatusBarManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStatusBarManager.h index db02b91..ff1e02e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStatusBarManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStatusBarManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStyleAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStyleAnimatedNode.h index cdcaca4..ec4e92d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStyleAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTStyleAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSubtractionAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSubtractionAnimatedNode.h index e8ec799..043b7c8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSubtractionAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSubtractionAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurface.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurface.h index b776443..1e6d340 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurface.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurface.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceDelegate.h index 895c2eb..21d8b9d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingProxyRootView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingProxyRootView.h index a7077a5..3b2f791 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingProxyRootView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingProxyRootView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingView.h index 0fbbdab..cf301d7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceHostingView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfacePresenterStub.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfacePresenterStub.h index 32a2b80..70510c1 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfacePresenterStub.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfacePresenterStub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -9,6 +9,8 @@ #import +@protocol RCTSurfaceProtocol; + NS_ASSUME_NONNULL_BEGIN // TODO: Eventually this should go away and files should just include RCTSurfacePresenter.h, but @@ -26,6 +28,8 @@ NS_ASSUME_NONNULL_BEGIN @protocol RCTSurfacePresenterStub +- (id)createFabricSurfaceForModuleName:(NSString *)moduleName + initialProperties:(NSDictionary *)initialProperties; - (nullable UIView *)findComponentViewWithTag_DO_NOT_USE_DEPRECATED:(NSInteger)tag; - (BOOL)synchronouslyUpdateViewOnUIThread:(NSNumber *)reactTag props:(NSDictionary *)props; - (void)addObserver:(id)observer; diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceProtocol.h index c274df7..0a4bec6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -68,13 +68,12 @@ NS_ASSUME_NONNULL_BEGIN @property (atomic, assign, readonly) CGSize intrinsicSize; #pragma mark - Start & Stop - /** * Starts or stops the Surface. * Those methods are a no-op for regular RCTSurface (for now), but all call sites must call them appropriately. */ -- (BOOL)start; -- (BOOL)stop; +- (void)start; +- (void)stop; @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowView.h index cab8b4a..2898b16 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowViewDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowViewDelegate.h index 6ad7337..b13e2f4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowViewDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootShadowViewDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootView.h index 052476a..b11d3f4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceRootView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceSizeMeasureMode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceSizeMeasureMode.h index 0ca27cd..edfc5a0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceSizeMeasureMode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceSizeMeasureMode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceStage.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceStage.h index 87bf915..2397b75 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceStage.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceStage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView+Internal.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView+Internal.h index ac4f59f..c208e5d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView+Internal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView+Internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView.h index a61e28c..e6bfad4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSurfaceView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitch.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitch.h index 3b42a50..dfbc7a0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitch.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitch.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitchManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitchManager.h index 06015b1..8e1fc5d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitchManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTSwitchManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextAttributes.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextAttributes.h index ce04362..a95536d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextAttributes.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextAttributes.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextDecorationLineType.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextDecorationLineType.h index ddf9195..bf14d85 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextDecorationLineType.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextDecorationLineType.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextSelection.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextSelection.h index 0bb7583..baa2e0e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextSelection.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextSelection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextShadowView.h index d364db5..f3202b5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextTransform.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextTransform.h index 15d328c..014cd39 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextTransform.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextTransform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextView.h index 5928b70..74d102a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextViewManager.h index 446a5db..4c5db00 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTiming.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTiming.h index 7c197aa..1039f25 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTiming.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTiming.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchEvent.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchEvent.h index 9f3cc4f..13a1f25 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchEvent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchHandler.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchHandler.h index 8481a27..6b1b064 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTouchHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTrackingAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTrackingAnimatedNode.h index 27d61fa..0703c45 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTrackingAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTrackingAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTransformAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTransformAnimatedNode.h index fe16bd2..3d86808 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTransformAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTTransformAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIImageViewAnimated.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIImageViewAnimated.h index 9af8d4e..1215e21 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIImageViewAnimated.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIImageViewAnimated.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManager.h index 65309cc..7747262 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerObserverCoordinator.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerObserverCoordinator.h index f351159..eeb569c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerObserverCoordinator.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerObserverCoordinator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerUtils.h index 2bf9f57..80228db 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIManagerUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextField.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextField.h index f3b3492..358e137 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextField.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextField.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -29,6 +29,9 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign, getter=isEditable) BOOL editable; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextView.h index 5cb03ee..5ccb6b6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUITextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIUtils.h index 14fadee..8fd1850 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUIUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestDelegate.h index 8a9e03f..835f295 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestHandler.h index 89f48f5..54d41df 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTURLRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtils.h index ecb7915..a9502dd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -186,4 +186,6 @@ RCT_EXTERN BOOL RCTValidateTypeOfViewCommandArgument( NSString const *commandName, NSString const *argPos); +RCT_EXTERN BOOL RCTIsAppActive(void); + NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtilsUIOverride.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtilsUIOverride.h index c6988c6..dc9e76c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtilsUIOverride.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTUtilsUIOverride.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTValueAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTValueAnimatedNode.h index a388d00..ccc3346 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTValueAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTValueAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVersion.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVersion.h index 5bc858d..e0357cb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVersion.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVersion.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibration.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibration.h index 1f6ced3..2a9f724 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibration.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibration.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibrationPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibrationPlugins.h index 0676192..098c03a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibrationPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVibrationPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTView.h index c82242d..fe27daa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -10,14 +10,11 @@ #import #import #import -#import extern const UIAccessibilityTraits SwitchAccessibilityTrait; @protocol RCTAutoInsetsProtocol; -@class RCTView; - @interface RCTView : UIView /** @@ -37,11 +34,6 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait; withScrollView:(UIScrollView *)scrollView updateOffset:(BOOL)updateOffset; -/** - * Find the first view controller whose view, or any subview is the specified view. - */ -+ (UIEdgeInsets)contentInsetsForView:(UIView *)curView; - /** * Layout direction of the view. * This is inherited from UIView+React, but we override it here @@ -111,4 +103,16 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait; */ @property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets; +/** + * (Experimental and unused for Paper) Pointer event handlers. + */ +@property (nonatomic, assign) RCTBubblingEventBlock onPointerCancel; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerDown; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerMove; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerUp; +@property (nonatomic, assign) RCTCapturingEventBlock onPointerEnter; +@property (nonatomic, assign) RCTCapturingEventBlock onPointerLeave; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerOver; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerOut; + @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewManager.h index 5c1eba4..1676e69 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewUtils.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewUtils.h new file mode 100644 index 0000000..a6204c5 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTViewUtils.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +RCT_EXTERN_C_BEGIN + +UIEdgeInsets RCTContentInsets(UIView *view); + +RCT_EXTERN_C_END + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextShadowView.h index bce9ea8..eed1726 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextViewManager.h index 91d4f78..2b38808 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTVirtualTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakProxy.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakProxy.h index 472f7f0..5b94da8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakProxy.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakProxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakViewHolder.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakViewHolder.h deleted file mode 100644 index ce39eee..0000000 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWeakViewHolder.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/* - * THIS IS A HACK - * This protocol should only be used for Paper ViewManagers which need to - * use the Fabric Interop layer, and also need to reference their created - * views. This protocol allows the view manager to store a weak reference to - * any created views. It will not affect view lifecycle in any way. - */ -@protocol RCTWeakViewHolder - -@property (nonatomic, strong) NSMapTable *weakViews; - -@end diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketExecutor.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketExecutor.h index 499664b..2c671d1 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketExecutor.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketModule.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketModule.h index c1a48d3..0e39e18 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWebSocketModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWrapperViewController.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWrapperViewController.h index dc9b0d6..b827758 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWrapperViewController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/RCTWrapperViewController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+Private.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+Private.h index a5cb440..dde1598 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+Private.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+Private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+React.h b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+React.h index 67c665b..21a7033 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+React.h +++ b/Frameworks/React-Core.xcframework/ios-arm64/Headers/React/UIView+React.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -120,6 +120,7 @@ @property (nonatomic, copy) NSDictionary *accessibilityState; @property (nonatomic, copy) NSArray *accessibilityActions; @property (nonatomic, copy) NSDictionary *accessibilityValueInternal; +@property (nonatomic, copy) NSString *accessibilityLanguage; /** * Used in debugging to get a description of the view hierarchy rooted at diff --git a/Frameworks/React-Core.xcframework/ios-arm64/libReact-Core.a b/Frameworks/React-Core.xcframework/ios-arm64/libReact-Core.a index c8ba125..221b680 100644 Binary files a/Frameworks/React-Core.xcframework/ios-arm64/libReact-Core.a and b/Frameworks/React-Core.xcframework/ios-arm64/libReact-Core.a differ diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/CoreModulesPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/CoreModulesPlugins.h index 0dd2130..55015a5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/CoreModulesPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/CoreModulesPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/NSTextStorage+FontScaling.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/NSTextStorage+FontScaling.h index 61b1634..a87d67d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/NSTextStorage+FontScaling.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/NSTextStorage+FontScaling.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager+Internal.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager+Internal.h index e01e800..36842ee 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager+Internal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager+Internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager.h index 7b5a132..707d576 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAccessibilityManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -23,6 +23,7 @@ extern NSString *const RCTAccessibilityManagerDidUpdateMultiplierNotification; / @property (nonatomic, assign) BOOL isGrayscaleEnabled; @property (nonatomic, assign) BOOL isInvertColorsEnabled; @property (nonatomic, assign) BOOL isReduceMotionEnabled; +@property (nonatomic, assign) BOOL prefersCrossFadeTransitions; @property (nonatomic, assign) BOOL isReduceTransparencyEnabled; @property (nonatomic, assign) BOOL isVoiceOverEnabled; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActionSheetManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActionSheetManager.h index 858afcf..338310b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActionSheetManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActionSheetManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorView.h index 62d5f32..1d50155 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorViewManager.h index 61bbd72..2d31e2c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTActivityIndicatorViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAdditionAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAdditionAnimatedNode.h index 50f3bc1..53c91ba 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAdditionAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAdditionAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertController.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertController.h index f5c206c..62adf2f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertManager.h index 8ea1d9b..2d2a744 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAlertManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedImage.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedImage.h index 933a492..3491149 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedImage.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedImage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedNode.h index 24c0fb3..a6308ee 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationDriver.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationDriver.h index 256464b..2782c2a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationDriver.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationDriver.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationPlugins.h index 406eb68..37e3cc8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationType.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationType.h index 4dcb316..005b6dc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationType.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationType.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationUtils.h index 1f1afa9..cc8c8fa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAnimationUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppSetupUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppSetupUtils.h new file mode 100644 index 0000000..2611a56 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppSetupUtils.h @@ -0,0 +1,48 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import + +#ifdef __cplusplus + +#if RCT_NEW_ARCH_ENABLED + +#ifndef RCT_USE_HERMES +#if __has_include() +#define RCT_USE_HERMES 1 +#else +#define RCT_USE_HERMES 0 +#endif +#endif + +#if RCT_USE_HERMES +#import +#else +#import +#endif + +#import +#endif + +#if RCT_NEW_ARCH_ENABLED +RCT_EXTERN id RCTAppSetupDefaultModuleFromClass(Class moduleClass); + +std::unique_ptr RCTAppSetupDefaultJsExecutorFactory( + RCTBridge *bridge, + RCTTurboModuleManager *turboModuleManager); +#endif + +#endif // __cplusplus + +RCT_EXTERN_C_BEGIN + +void RCTAppSetupPrepareApp(UIApplication *application); +UIView *RCTAppSetupDefaultRootView(RCTBridge *bridge, NSString *moduleName, NSDictionary *initialProperties); + +RCT_EXTERN_C_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppState.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppState.h index 0921f70..073d553 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppState.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppState.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppearance.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppearance.h index d8c3585..d8bb18b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppearance.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAppearance.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -12,6 +12,7 @@ RCT_EXTERN void RCTEnableAppearancePreference(BOOL enabled); RCT_EXTERN void RCTOverrideAppearancePreference(NSString *const); +RCT_EXTERN NSString *RCTCurrentOverrideAppearancePreference(); RCT_EXTERN NSString *RCTColorSchemePreference(UITraitCollection *traitCollection); @interface RCTAppearance : RCTEventEmitter diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAssert.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAssert.h index e4c7790..e7cb4a0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAssert.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAssert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -74,6 +74,11 @@ RCT_EXTERN NSString *const RCTObjCStackTraceKey; */ RCT_EXTERN NSString *const RCTFatalExceptionName; +/** + * Stringified JSON object containing extra data to attach to the error from JavaScript. + */ +RCT_EXTERN NSString *const RCTJSExtraDataKey; + /** * A block signature to be used for custom assertion handling. */ @@ -170,20 +175,42 @@ RCT_EXTERN NSString *RCTFormatStackTrace(NSArray *> #endif +// MARK: - New Architecture Validation + +typedef enum { + RCTNotAllowedInBridgeless = 1, + RCTNotAllowedInFabricWithoutLegacy = 2, + RCTNotAllowedValidationDisabled = 3, +} RCTNotAllowedValidation; + /** - * Controls for ensuring the new architecture runtime assumption holds. + * // TODO: (T125626909) Only validate legacy architecture usages in Bridgeless mode, not Bridged Fabric mode + * + * Ensure runtime assumptions holds for the new architecture by reporting when assumptions are violated. * Note: this is work in progress. + * + * When level is RCTNotAllowedInFabricWithoutLegacy, validate Fabric assumptions. + * i.e. Report legacy pre-Fabric call sites that should not be used while Fabric is enabled on all surfaces. + * + * When level is RCTNotAllowedInBridgeless, validate Fabric or Bridgeless assumptions. + * i.e. Report Bridge call sites that should not be used while Bridgeless mode is enabled. + * + * Note: enabling this at runtime is not early enough to report issues within ObjC class +load execution. */ +__attribute__((used)) RCT_EXTERN void RCTNewArchitectureSetMinValidationLevel(RCTNotAllowedValidation level); -// Enable reporting of any violation related to the new React Native architecture. -// If RCT_NEW_ARCHITECTURE is defined, it is already enabled by default, otherwise, no violation will be -// reported until enabled. -// Note: enabling this at runtime is not early enough to report issues within ObjC class +load execution. -__attribute__((used)) RCT_EXTERN void RCTEnableNewArchitectureViolationReporting(BOOL enabled); - -// When reporting is enabled, trigger an assertion. -__attribute__((used)) RCT_EXTERN void RCTEnforceNotAllowedForNewArchitecture(id context, NSString *extra); - -// When reporting is enabled, warn about the violation. Use this to prepare a specific callsite -// for stricter enforcement. When ready, switch it to use the variant above. -__attribute__((used)) RCT_EXTERN void RCTWarnNotAllowedForNewArchitecture(id context, NSString *extra); +// When new architecture validation reporting is enabled, trigger an assertion and crash. +__attribute__((used)) RCT_EXTERN void +RCTEnforceNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra); +// When new architecture validation reporting is enabled, trigger an error but do not crash. +// When ready, switch to stricter variant above. +__attribute__((used)) RCT_EXTERN void +RCTErrorNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra); +// When new architecture validation reporting is enabled, log an message. +// When ready, switch to stricter variant above. +__attribute__((used)) RCT_EXTERN void +RCTLogNewArchitectureValidation(RCTNotAllowedValidation type, id context, NSString *extra); +// A placeholder for callsites that frequently fail validation. +// When ready, switch to stricter variant above. +__attribute__((used)) RCT_EXTERN void +RCTNewArchitectureValidationPlaceholder(RCTNotAllowedValidation type, id context, NSString *extra); diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAsyncLocalStorage.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAsyncLocalStorage.h index d43281c..66136c8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAsyncLocalStorage.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAsyncLocalStorage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAutoInsetsProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAutoInsetsProtocol.h index fc18a9a..0d12aba 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAutoInsetsProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTAutoInsetsProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegate.h index 3e1839b..c2a4362 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegateAdapter.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegateAdapter.h index a7f3251..1051715 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegateAdapter.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputDelegateAdapter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputViewProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputViewProtocol.h index 09f4fe2..c235907 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputViewProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBackedTextInputViewProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -31,6 +31,10 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign) UITextFieldViewMode clearButtonMode; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; + // This protocol disallows direct access to `selectedTextRange` property because // unwise usage of it can break the `delegate` behavior. So, we always have to diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputShadowView.h index 44b46db..8f4cf7e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputView.h index d73f082..5c6c5cf 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -35,6 +35,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) RCTDirectEventBlock onContentSizeChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onSelectionChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onChange; +@property (nonatomic, copy, nullable) RCTDirectEventBlock onChangeSync; @property (nonatomic, copy, nullable) RCTDirectEventBlock onTextInput; @property (nonatomic, copy, nullable) RCTDirectEventBlock onScroll; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputViewManager.h index 5201bdb..1a9b1a9 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextShadowView.h index 9f2c944..9d0affa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextViewManager.h index b0f9470..56f63c3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBaseTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBlobManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBlobManager.h index 04b905c..34cd8b8 100755 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBlobManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBlobManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderDrawing.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderDrawing.h index 884aa79..4c92868 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderDrawing.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderDrawing.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderStyle.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderStyle.h index 70d6d72..6a97af6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderStyle.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBorderStyle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge+Private.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge+Private.h index 9dd96a5..8412f10 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge+Private.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge+Private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge.h index 8eef1ce..0033a40 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridge.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -164,6 +164,11 @@ RCT_EXTERN void RCTEnableTurboModuleSharedMutexInit(BOOL enabled); RCT_EXTERN BOOL RCTTurboModuleManagerDelegateLockingDisabled(void); RCT_EXTERN void RCTDisableTurboModuleManagerDelegateLocking(BOOL enabled); +// Turn off validAttribute: entries inside ViewConfigs for events +// TODO(109509380): Remove this gating +RCT_EXTERN BOOL RCTViewConfigEventValidAttributesDisabled(void); +RCT_EXTERN void RCTDisableViewConfigEventValidAttributes(BOOL disabled); + typedef enum { kRCTGlobalScope, kRCTGlobalScopeUsingRetainJSCallback, diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeDelegate.h index 00c26f2..0e08196 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeMethod.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeMethod.h index 35d2b89..7169aa7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeMethod.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeMethod.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -9,7 +9,7 @@ @class RCTBridge; -typedef NS_ENUM(NSUInteger, RCTFunctionType) { +typedef NS_ENUM(NSInteger, RCTFunctionType) { RCTFunctionTypeNormal, RCTFunctionTypePromise, RCTFunctionTypeSync, diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModule.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModule.h index fff361a..ae2066f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -437,6 +437,8 @@ typedef NSURL * (^RCTBridgelessBundleURLGetter)(void); typedef UIView * (^RCTBridgelessComponentViewProvider)(NSNumber *); +typedef void (^RCTViewRegistryUIBlock)(RCTViewRegistry *viewRegistry); + /** * A class that allows NativeModules to query for views, given React Tags. */ @@ -445,6 +447,7 @@ typedef UIView * (^RCTBridgelessComponentViewProvider)(NSNumber *); - (void)setBridgelessComponentViewProvider:(RCTBridgelessComponentViewProvider)bridgelessComponentViewProvider; - (UIView *)viewForReactTag:(NSNumber *)reactTag; +- (void)addUIBlock:(RCTViewRegistryUIBlock)block; @end typedef void (^RCTBridgelessJSModuleMethodInvoker)( diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModuleDecorator.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModuleDecorator.h new file mode 100644 index 0000000..225fef4 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBridgeModuleDecorator.h @@ -0,0 +1,35 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTBridgeModule.h" + +@class RCTBundleManager; +@class RCTCallableJSModules; +@class RCTModuleRegistry; +@class RCTViewRegistry; + +/** + RCTBridgeModuleDecorator contains instances that can be intialized with @synthesize + in RCTBridgeModules. For the Fabric interop layer. + + In Bridgeless, @synthesize ivars are passed from RCTBridgeModuleDecorator. + In Bridge, @synthesize ivars are passed from RCTModuleData. + */ +@interface RCTBridgeModuleDecorator : NSObject +@property (nonatomic, strong, readonly) RCTViewRegistry *viewRegistry_DEPRECATED; +@property (nonatomic, strong, readonly) RCTModuleRegistry *moduleRegistry; +@property (nonatomic, strong, readonly) RCTBundleManager *bundleManager; +@property (nonatomic, strong, readonly) RCTCallableJSModules *callableJSModules; + +- (instancetype)initWithViewRegistry:(RCTViewRegistry *)viewRegistry + moduleRegistry:(RCTModuleRegistry *)moduleRegistry + bundleManager:(RCTBundleManager *)bundleManager + callableJSModules:(RCTCallableJSModules *)callableJSModules; + +- (void)attachInteropAPIsToModule:(id)bridgeModule; + +@end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBundleURLProvider.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBundleURLProvider.h index 26fbbd0..cbf8132 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBundleURLProvider.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTBundleURLProvider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -24,11 +24,6 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); @interface RCTBundleURLProvider : NSObject -/** - * Set default settings on NSUserDefaults. - */ -- (void)setDefaults; - /** * Reset every settings to default. */ @@ -73,25 +68,22 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); /** * Returns the jsBundleURL for a given bundle entrypoint and * the fallback offline JS bundle if the packager is not running. - * if resourceName or extension are nil, "main" and "jsbundle" will be - * used, respectively. + * if extension is nil, "jsbundle" will be used. */ -- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - fallbackResource:(NSString *)resourceName - fallbackExtension:(NSString *)extension; +- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot fallbackExtension:(NSString *)extension; /** * Returns the jsBundleURL for a given bundle entrypoint and * the fallback offline JS bundle if the packager is not running. */ -- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot fallbackResource:(NSString *)resourceName; +- (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot; /** * Returns the jsBundleURL for a given bundle entrypoint and - * the fallback offline JS bundle. If resourceName or extension - * are nil, "main" and "jsbundle" will be used, respectively. + * the fallback offline JS bundle. If extension is nil, + * "jsbundle" will be used. */ -- (NSURL *)jsBundleURLForFallbackResource:(NSString *)resourceName fallbackExtension:(NSString *)extension; +- (NSURL *)jsBundleURLForFallbackExtension:(NSString *)extension; /** * Returns the resourceURL for a given bundle entrypoint and @@ -135,13 +127,6 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); enableDev:(BOOL)enableDev enableMinification:(BOOL)enableMinification; -+ (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot - packagerHost:(NSString *)packagerHost - enableDev:(BOOL)enableDev - enableMinification:(BOOL)enableMinification - modulesOnly:(BOOL)modulesOnly - runModule:(BOOL)runModule; - + (NSURL *)jsBundleURLForBundleRoot:(NSString *)bundleRoot packagerHost:(NSString *)packagerHost packagerScheme:(NSString *)scheme @@ -154,8 +139,6 @@ RCT_EXTERN void RCTBundleURLProviderAllowPackagerServerAccess(BOOL allowed); * In general, please use the instance method to decide if the packager is running and fallback to the pre-packaged * resource if it is not: -resourceURLForResourceRoot:resourceName:resourceExtension:offlineBundle: */ -+ (NSURL *)resourceURLForResourcePath:(NSString *)path packagerHost:(NSString *)packagerHost query:(NSString *)query; - + (NSURL *)resourceURLForResourcePath:(NSString *)path packagerHost:(NSString *)packagerHost scheme:(NSString *)scheme diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTClipboard.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTClipboard.h index 1dd9789..8606b22 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTClipboard.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTClipboard.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTColorAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTColorAnimatedNode.h new file mode 100644 index 0000000..ae1d132 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTColorAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@interface RCTColorAnimatedNode : RCTAnimatedNode + +@property (nonatomic, assign) int32_t color; + +@end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponent.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponent.h index 4258334..c633085 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -15,6 +15,7 @@ */ typedef void (^RCTDirectEventBlock)(NSDictionary *body); typedef void (^RCTBubblingEventBlock)(NSDictionary *body); +typedef void (^RCTCapturingEventBlock)(NSDictionary *body); /** * Logical node in a tree of application components. Both `ShadowView` and diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentData.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentData.h index 6a1fdb7..352f826 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentData.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentData.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentEvent.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentEvent.h index 0467f8c..e79468d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentEvent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTComponentEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConstants.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConstants.h index c92fc10..cf6e4eb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConstants.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConstants.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -17,7 +17,19 @@ RCT_EXTERN BOOL RCTExperimentGetPreemptiveViewAllocationDisabled(void); RCT_EXTERN void RCTExperimentSetPreemptiveViewAllocationDisabled(BOOL value); /* - * Remove clipped subviews + * W3C Pointer Events */ -RCT_EXTERN BOOL RCTGetRemoveClippedSubviewsEnabled(void); -RCT_EXTERN void RCTSetRemoveClippedSubviewsEnabled(BOOL value); +RCT_EXTERN BOOL RCTGetDispatchW3CPointerEvents(void); +RCT_EXTERN void RCTSetDispatchW3CPointerEvents(BOOL value); + +/* + * Validate RCTEventEmitter + */ +RCT_EXTERN BOOL RCTGetValidateCanSendEventInRCTEventEmitter(void); +RCT_EXTERN void RCTSetValidateCanSendEventInRCTEventEmitter(BOOL value); + +/* + * Memory Pressure Unloading Level + */ +RCT_EXTERN BOOL RCTGetMemoryPressureUnloadLevel(void); +RCT_EXTERN void RCTSetMemoryPressureUnloadLevel(int value); diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+CoreLocation.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+CoreLocation.h index 251202f..096f2ac 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+CoreLocation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+CoreLocation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Text.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Text.h index eafbdb3..b7c411a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Text.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Text.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Transform.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Transform.h index 07a7b2c..9ad72ae 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Transform.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert+Transform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert.h index 09a380e..c4913f6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTConvert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTCxxConvert.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTCxxConvert.h index 261e61f..b5176f6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTCxxConvert.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTCxxConvert.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDataRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDataRequestHandler.h index f0b2c68..24fa02a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDataRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDataRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePicker.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePicker.h index 14f9a2e..e5a60fb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePicker.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePicker.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePickerManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePickerManager.h index bd14cd3..fbc6f52 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePickerManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDatePickerManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDecayAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDecayAnimation.h index e68450e..f9aba7d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDecayAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDecayAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDefines.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDefines.h index 4b9517e..564ae99 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDefines.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDefines.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -157,7 +157,7 @@ * Note: this is work in progress. */ #ifdef REACT_NATIVE_FORCE_NEW_ARCHITECTURE -#define RCT_NEW_ARCHITECTURE 1 +#define RCT_ONLY_NEW_ARCHITECTURE 1 #else -#define RCT_NEW_ARCHITECTURE 0 +#define RCT_ONLY_NEW_ARCHITECTURE 0 #endif diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingView.h index da5ad2d..175adc5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewProtocol.h index 001a18e..ec9ed3a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewSetEnabled.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewSetEnabled.h index 1ad1825..8657489 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewSetEnabled.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevLoadingViewSetEnabled.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevMenu.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevMenu.h index b322afb..eedfff1 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevMenu.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevMenu.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -39,6 +39,11 @@ RCT_EXTERN NSString *const RCTShowDevMenuNotification; */ @property (nonatomic, assign) BOOL hotLoadingEnabled DEPRECATED_ATTRIBUTE; +/** + * Whether the hotkeys that toggles the developer menu is enabled. + */ +@property (nonatomic, assign) BOOL hotkeysEnabled; + /** * Presented items in development menu */ diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSettings.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSettings.h index 9661caf..c576e37 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSettings.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSettings.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSplitBundleLoader.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSplitBundleLoader.h index 52a115c..c5a1efc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSplitBundleLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDevSplitBundleLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDeviceInfo.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDeviceInfo.h index cef03be..5b129ea 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDeviceInfo.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDeviceInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDiffClampAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDiffClampAnimatedNode.h index 085fb3d..82144af 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDiffClampAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDiffClampAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayLink.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayLink.h index 1e79c0b..28bfa7b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayLink.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayLink.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayWeakRefreshable.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayWeakRefreshable.h index c1ea105..d285c0c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayWeakRefreshable.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDisplayWeakRefreshable.h @@ -1,11 +1,12 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import +#import @protocol RCTDisplayRefreshable diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDivisionAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDivisionAnimatedNode.h index 006fd5a..6909be3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDivisionAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTDivisionAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorCustomizer.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorCustomizer.h index aa65296..d634b55 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorCustomizer.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorCustomizer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorInfo.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorInfo.h index a5d74d8..a388b78 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorInfo.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTErrorInfo.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventAnimation.h index c63c1f4..3791ba5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcher.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcher.h index bbcd643..3b31791 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcher.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcher.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcherProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcherProtocol.h index 913cf85..4125e98 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcherProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventDispatcherProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -102,6 +102,11 @@ typedef NS_ENUM(NSInteger, RCTTextEventType) { key:(NSString *)key eventCount:(NSInteger)eventCount; +/** + * Notify Observers of event + */ +- (void)notifyObserversOfEvent:(id)event; + /** * Send a pre-prepared event object. * diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventEmitter.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventEmitter.h index e3bb12f..6ad2133 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventEmitter.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTEventEmitter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -32,6 +32,8 @@ */ - (void)sendEventWithName:(NSString *)name body:(id)body; +- (BOOL)canSendEvents_DEPRECATED; + /** * These methods will be called when the first observer is added and when the * last observer is removed (or when dealloc is called), respectively. These diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTExceptionsManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTExceptionsManager.h index 28ae105..76d3642 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTExceptionsManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTExceptionsManager.h @@ -1,12 +1,11 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import - #import NS_ASSUME_NONNULL_BEGIN @@ -15,10 +14,12 @@ NS_ASSUME_NONNULL_BEGIN - (void)handleSoftJSExceptionWithMessage:(nullable NSString *)message stack:(nullable NSArray *)stack - exceptionId:(NSNumber *)exceptionId; + exceptionId:(NSNumber *)exceptionId + extraDataAsJSON:(nullable NSString *)extraDataAsJSON; - (void)handleFatalJSExceptionWithMessage:(nullable NSString *)message stack:(nullable NSArray *)stack - exceptionId:(NSNumber *)exceptionId; + exceptionId:(NSNumber *)exceptionId + extraDataAsJSON:(nullable NSString *)extraDataAsJSON; @optional - (void)updateJSExceptionWithMessage:(nullable NSString *)message @@ -37,6 +38,7 @@ NS_ASSUME_NONNULL_BEGIN - (void)reportFatalException:(nullable NSString *)message stack:(nullable NSArray *)stack exceptionId:(double)exceptionId; +- (void)reportJsException:(NSString *)errorMap; @property (nonatomic, weak) id delegate; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFPSGraph.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFPSGraph.h index 73dd6bd..7b90481 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFPSGraph.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFPSGraph.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileReaderModule.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileReaderModule.h index 0eb246b..80d3808 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileReaderModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileReaderModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileRequestHandler.h index 7faf39d..d2368c2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFileRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFont.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFont.h index 15437dd..5ddc34d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFont.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFont.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameAnimation.h index 610d3ff..1ce3c83 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameUpdate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameUpdate.h index 07f0889..39d7b72 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameUpdate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTFrameUpdate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTGIFImageDecoder.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTGIFImageDecoder.h index 2d56637..8c39748 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTGIFImageDecoder.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTGIFImageDecoder.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTHTTPRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTHTTPRequestHandler.h index 5a91bd0..3f96a8b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTHTTPRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTHTTPRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nManager.h index 5f21ec4..b500708 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nUtil.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nUtil.h index f3a1550..c105344 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nUtil.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTI18nUtil.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageBlurUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageBlurUtils.h index 18a286e..4edcf3f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageBlurUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageBlurUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageCache.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageCache.h index a4d15b4..b85de92 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageCache.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageCache.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -39,4 +39,7 @@ @end @interface RCTImageCache : NSObject + +RCT_EXTERN void RCTSetImageCacheLimits(NSUInteger maxCachableDecodedImageSizeInBytes, NSUInteger imageCacheTotalCostLimit); + @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageDataDecoder.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageDataDecoder.h index b7fbb00..1d126aa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageDataDecoder.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageDataDecoder.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageEditingManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageEditingManager.h index 216b622..a155cbd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageEditingManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageEditingManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoader.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoader.h index da0df28..c24d5ad 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderLoggable.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderLoggable.h index 3b78c48..08507e7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderLoggable.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderLoggable.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderProtocol.h index f1bb268..5e8f4f8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -34,7 +34,7 @@ NS_ASSUME_NONNULL_BEGIN * Use PriorityPrefetch to prefetch images at a lower priority. * The priority logic is up to each @RCTImageLoaderProtocol implementation */ -typedef NS_ENUM(NSUInteger, RCTImageLoaderPriority) { +typedef NS_ENUM(NSInteger, RCTImageLoaderPriority) { RCTImageLoaderPriorityImmediate, RCTImageLoaderPriorityPrefetch }; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderWithAttributionProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderWithAttributionProtocol.h index 07aab9d..1bdbe2e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderWithAttributionProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageLoaderWithAttributionProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImagePlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImagePlugins.h index 1e943d8..fb78269 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImagePlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImagePlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageShadowView.h index 3057118..8333da3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageSource.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageSource.h index 928657c..3a5a481 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageSource.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageSource.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageStoreManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageStoreManager.h index 0073381..389f613 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageStoreManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageStoreManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoader.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoader.h index e49ed11..e8ceb26 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoaderWithAttribution.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoaderWithAttribution.h index 118bed1..f417cdc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoaderWithAttribution.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageURLLoaderWithAttribution.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageUtils.h index df04a2c..5763b04 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageView.h index c895a53..c5057fc 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageViewManager.h index 9431f35..8202aab 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTImageViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInitializing.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInitializing.h index 56b14b1..dc6323b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInitializing.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInitializing.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryShadowView.h index 8ed5110..8f7ecb8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryView.h index d4c48ce..f86370c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewContent.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewContent.h index f65eea7..e07b07d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewContent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewContent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewManager.h index 251048d..4f1cc32 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInputAccessoryViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspector.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspector.h index 97c8d2e..49acfcd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspector.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspector.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorDevServerHelper.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorDevServerHelper.h index b69fa02..f527f50 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorDevServerHelper.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorDevServerHelper.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorPackagerConnection.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorPackagerConnection.h index de08694..184b05d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorPackagerConnection.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInspectorPackagerConnection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInterpolationAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInterpolationAnimatedNode.h index 8ec4101..2ac1650 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInterpolationAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInterpolationAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInvalidating.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInvalidating.h index bc144cd..ad35375 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInvalidating.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTInvalidating.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSScriptLoaderModule.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSScriptLoaderModule.h index a0ba36e..c05c29f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSScriptLoaderModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSScriptLoaderModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSStackFrame.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSStackFrame.h index 1a66e29..4d72e86 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSStackFrame.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSStackFrame.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSThread.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSThread.h index 8f1bc76..57503e4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSThread.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJSThread.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptExecutor.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptExecutor.h index c42fb05..d191304 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptExecutor.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptLoader.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptLoader.h index 729fa37..a8a95f7 100755 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTJavaScriptLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -11,10 +11,7 @@ extern NSString *const RCTJavaScriptLoaderErrorDomain; -extern const UInt32 RCT_BYTECODE_ALIGNMENT; - -UInt32 RCTReadUInt32LE(NSData *script, UInt32 offset); -bool RCTIsBytecodeBundle(NSData *script); +extern const uint32_t RCT_BYTECODE_ALIGNMENT; NS_ENUM(NSInteger){ RCTJavaScriptLoaderErrorNoScriptURL = 1, diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyCommands.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyCommands.h index 2bdefcf..df94f35 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyCommands.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyCommands.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyboardObserver.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyboardObserver.h index 320b65d..76c491d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyboardObserver.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTKeyboardObserver.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayout.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayout.h index d838032..55340ad 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayout.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayout.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimation.h index e907a99..4248dca 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimationGroup.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimationGroup.h index f13d046..02ae762 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimationGroup.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLayoutAnimationGroup.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingManager.h index 02de122..4eea247 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingPlugins.h index 17e3d6c..4cf0a9b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLinkingPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLocalAssetImageLoader.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLocalAssetImageLoader.h index c04f21e..453acce 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLocalAssetImageLoader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLocalAssetImageLoader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLog.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLog.h index 0d79797..2e750b8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLog.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLog.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -11,6 +11,9 @@ #import #import +@class RCTModuleRegistry; +@class RCTCallableJSModules; + #ifndef RCTLOG_ENABLED #define RCTLOG_ENABLED 1 #endif @@ -121,6 +124,20 @@ RCT_EXTERN void RCTPerformBlockWithLogFunction(void (^block)(void), RCTLogFuncti */ RCT_EXTERN void RCTPerformBlockWithLogPrefix(void (^block)(void), NSString *prefix); +/** + * These methods allows static methods in RCTLog to call NativeModules and TurboModules. + * TODO(T112035275) After Bridgeless mixed mode is removed, we can merge these methods + */ +RCT_EXTERN void RCTLogSetBridgeModuleRegistry(RCTModuleRegistry *moduleRegistry); +RCT_EXTERN void RCTLogSetBridgelessModuleRegistry(RCTModuleRegistry *moduleRegistry); + +/** + * This methods allows static methods in RCTLog to call JS methods. + * TODO(T112035275) After Bridgeless mixed mode is removed, we can merge these methods + */ +RCT_EXTERN void RCTLogSetBridgeCallableJSModules(RCTCallableJSModules *callableJSModules); +RCT_EXTERN void RCTLogSetBridgelessCallableJSModules(RCTCallableJSModules *callableJSModules); + /** * Private logging function - ignore this. */ diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBox.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBox.h index e3bf6ad..17f7f4d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBox.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBox.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBoxView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBoxView.h index 7c05bcb..5c790e4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBoxView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTLogBoxView.h @@ -1,11 +1,12 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import +#import #import #import @@ -15,7 +16,8 @@ - (void)createRootViewController:(UIView *)view; -- (instancetype)initWithFrame:(CGRect)frame bridge:(RCTBridge *)bridge; +- (instancetype)initWithWindow:(UIWindow *)window bridge:(RCTBridge *)bridge; +- (instancetype)initWithWindow:(UIWindow *)window surfacePresenter:(id)surfacePresenter; - (void)show; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMacros.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMacros.h index 9144bbe..b636f9a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMacros.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMacros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTManagedPointer.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTManagedPointer.h index 4ed6616..ff444d2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTManagedPointer.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTManagedPointer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedView.h index 4628240..cab90b6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedViewManager.h index a37f85a..6aaf61f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMaskedViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMockDef.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMockDef.h new file mode 100644 index 0000000..6776136 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMockDef.h @@ -0,0 +1,61 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +/* These macros are used to stub C functions. Here's an example: + * + * Helpers.h + * ------ + * boolean ReturnsTrueOrFalse(void); + * + * FileToBeTested.h + * ------ + * RCT_MOCK_DEF(Testing, ReturnsTrueOrFalse); + * #define ReturnsTrueOrFalse RCT_MOCK_USE(Testing, ReturnsTrueOrFalse) + * + * int FunctionToBeTested(int input) { + * return ReturnsTrueOrFalse() ? input + 1 : input - 1; + * } + * + * Test.h + * ----- + * RCT_MOCK_GET(Testing, ReturnsTrueOrFalse); + * + * boolean _ReturnsTrue(void) { return true; } + * boolean _ReturnsFalse(void) { return false; } + * + * void TestFunctionTrue(void) { + * RCT_MOCK_SET(Testing, ReturnsTrueOrFalse, _ReturnsTrue); + * assert(FunctionToBeTested(5) == 6); + * RCT_MOCK_RESET(Testing, ReturnsTrueOrFalse); + * } + * + * void TestFunctionFalse(void) { + * RCT_MOCK_SET(Testing, ReturnsTrueOrFalse, _ReturnsFalse); + * assert(FunctionToBeTested(5) == 4); + * RCT_MOCK_RESET(Testing, ReturnsTrueOrFalse); + * } + * + */ + +#ifdef RCT_DEV +#define RCT_MOCK_DEF(context, api) \ + __typeof(__typeof(api) *) mockptr_##context##_##api = &api; +#define RCT_MOCK_REF(context, api) \ + extern __typeof(__typeof(api) *) mockptr_##context##_##api; +#define RCT_MOCK_SET(context, api, mockapi) \ + (mockptr_##context##_##api = &mockapi) +#define RCT_MOCK_RESET(context, api) (mockptr_##context##_##api = &api) +#define RCT_MOCK_USE(context, api) (*mockptr_##context##_##api) +#else +#define RCT_MOCK_DEF(context, api) +#define RCT_MOCK_REF(context, api) +#define RCT_MOCK_SET(context, api, mockapi) +#define RCT_MOCK_RESET(context, api) +#define RCT_MOCK_USE(context, api) api +#endif diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostView.h index 01d3861..2fcdcae 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -25,6 +25,11 @@ @property (nonatomic, copy) RCTDirectEventBlock onShow; @property (nonatomic, assign) BOOL visible; +// Android only +@property (nonatomic, assign) BOOL statusBarTranslucent; +@property (nonatomic, assign) BOOL hardwareAccelerated; +@property (nonatomic, assign) BOOL animated; + @property (nonatomic, copy) NSNumber *identifier; @property (nonatomic, weak) id delegate; @@ -33,7 +38,7 @@ @property (nonatomic, copy) RCTDirectEventBlock onOrientationChange; // Fabric only -@property (nonatomic, copy) RCTBubblingEventBlock onDismiss; +@property (nonatomic, copy) RCTDirectEventBlock onDismiss; - (instancetype)initWithBridge:(RCTBridge *)bridge NS_DESIGNATED_INITIALIZER; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewController.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewController.h index a3f66b6..b12b0f7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewManager.h index e5b0815..11b5298 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalHostViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalManager.h index 4fbe6df..237037f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModalManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleData.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleData.h index 71e1950..a1c5b3a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleData.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleData.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleMethod.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleMethod.h index c93a060..279b906 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleMethod.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuleMethod.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuloAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuloAnimatedNode.h index fc7f69d..6396eda 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuloAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTModuloAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputView.h index 0efd63a..bd183de 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputViewManager.h index 3347fbb..fe8dbc3 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultilineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartDataTask.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartDataTask.h index bcf0c57..25a73fd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartDataTask.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartDataTask.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartStreamReader.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartStreamReader.h index 5ef5b61..286842a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartStreamReader.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultipartStreamReader.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultiplicationAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultiplicationAnimatedNode.h index bb8b3b2..44e7fb7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultiplicationAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTMultiplicationAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedModule.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedModule.h index 13b40fd..f573e85 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedNodesManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedNodesManager.h index 7832538..3dd32b8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedNodesManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedNodesManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -13,82 +13,89 @@ @protocol RCTValueAnimatedNodeObserver; +NS_ASSUME_NONNULL_BEGIN + @interface RCTNativeAnimatedNodesManager : NSObject -- (nonnull instancetype)initWithBridge:(RCTBridge *)bridge +- (nonnull instancetype)initWithBridge:(nullable RCTBridge *)bridge surfacePresenter:(id)surfacePresenter; - (void)updateAnimations; -- (void)stepAnimations:(nonnull CADisplayLink *)displaylink; +- (void)stepAnimations:(CADisplayLink *)displaylink; -- (BOOL)isNodeManagedByFabric:(nonnull NSNumber *)tag; +- (BOOL)isNodeManagedByFabric:(NSNumber *)tag; -- (void)getValue:(nonnull NSNumber *)nodeTag - saveCallback:(nullable RCTResponseSenderBlock)saveCallback; +- (void)getValue:(NSNumber *)nodeTag + saveCallback:(RCTResponseSenderBlock)saveCallback; // graph -- (void)createAnimatedNode:(nonnull NSNumber *)tag - config:(NSDictionary *__nonnull)config; +- (void)createAnimatedNode:(NSNumber *)tag + config:(NSDictionary *)config; -- (void)connectAnimatedNodes:(nonnull NSNumber *)parentTag - childTag:(nonnull NSNumber *)childTag; +- (void)connectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; -- (void)disconnectAnimatedNodes:(nonnull NSNumber *)parentTag - childTag:(nonnull NSNumber *)childTag; +- (void)disconnectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; -- (void)connectAnimatedNodeToView:(nonnull NSNumber *)nodeTag - viewTag:(nonnull NSNumber *)viewTag - viewName:(nonnull NSString *)viewName; +- (void)connectAnimatedNodeToView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag + viewName:(nullable NSString *)viewName; -- (void)restoreDefaultValues:(nonnull NSNumber *)nodeTag; +- (void)restoreDefaultValues:(NSNumber *)nodeTag; -- (void)disconnectAnimatedNodeFromView:(nonnull NSNumber *)nodeTag - viewTag:(nonnull NSNumber *)viewTag; +- (void)disconnectAnimatedNodeFromView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag; -- (void)dropAnimatedNode:(nonnull NSNumber *)tag; +- (void)dropAnimatedNode:(NSNumber *)tag; // mutations -- (void)setAnimatedNodeValue:(nonnull NSNumber *)nodeTag - value:(nonnull NSNumber *)value; +- (void)setAnimatedNodeValue:(NSNumber *)nodeTag + value:(NSNumber *)value; -- (void)setAnimatedNodeOffset:(nonnull NSNumber *)nodeTag - offset:(nonnull NSNumber *)offset; +- (void)setAnimatedNodeOffset:(NSNumber *)nodeTag + offset:(NSNumber *)offset; -- (void)flattenAnimatedNodeOffset:(nonnull NSNumber *)nodeTag; +- (void)flattenAnimatedNodeOffset:(NSNumber *)nodeTag; -- (void)extractAnimatedNodeOffset:(nonnull NSNumber *)nodeTag; +- (void)extractAnimatedNodeOffset:(NSNumber *)nodeTag; + +- (void)updateAnimatedNodeConfig:(NSNumber *)tag + config:(NSDictionary *)config; // drivers -- (void)startAnimatingNode:(nonnull NSNumber *)animationId - nodeTag:(nonnull NSNumber *)nodeTag - config:(NSDictionary *__nonnull)config +- (void)startAnimatingNode:(NSNumber *)animationId + nodeTag:(NSNumber *)nodeTag + config:(NSDictionary *)config endCallback:(nullable RCTResponseSenderBlock)callBack; -- (void)stopAnimation:(nonnull NSNumber *)animationId; +- (void)stopAnimation:(NSNumber *)animationId; - (void)stopAnimationLoop; // events -- (void)addAnimatedEventToView:(nonnull NSNumber *)viewTag - eventName:(nonnull NSString *)eventName - eventMapping:(NSDictionary *__nonnull)eventMapping; +- (void)addAnimatedEventToView:(NSNumber *)viewTag + eventName:(NSString *)eventName + eventMapping:(NSDictionary *)eventMapping; -- (void)removeAnimatedEventFromView:(nonnull NSNumber *)viewTag - eventName:(nonnull NSString *)eventName - animatedNodeTag:(nonnull NSNumber *)animatedNodeTag; +- (void)removeAnimatedEventFromView:(NSNumber *)viewTag + eventName:(NSString *)eventName + animatedNodeTag:(NSNumber *)animatedNodeTag; -- (void)handleAnimatedEvent:(nonnull id)event; +- (void)handleAnimatedEvent:(id)event; // listeners -- (void)startListeningToAnimatedNodeValue:(nonnull NSNumber *)tag - valueObserver:(nonnull id)valueObserver; +- (void)startListeningToAnimatedNodeValue:(NSNumber *)tag + valueObserver:(id)valueObserver; -- (void)stopListeningToAnimatedNodeValue:(nonnull NSNumber *)tag; +- (void)stopListeningToAnimatedNodeValue:(NSNumber *)tag; @end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedTurboModule.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedTurboModule.h index 2da04a1..7c4dc64 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedTurboModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNativeAnimatedTurboModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -9,8 +9,6 @@ #import #import #import -#import -#import #import #import "RCTValueAnimatedNode.h" @@ -18,6 +16,6 @@ // TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. // NOTE: This module is temporarily forked (see RCTNativeAnimatedModule). // When making any changes, be sure to apply them to the fork as well. -@interface RCTNativeAnimatedTurboModule: RCTEventEmitter +@interface RCTNativeAnimatedTurboModule: RCTEventEmitter @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkPlugins.h index b8ea7cd..c596ea8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkTask.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkTask.h index 716a090..c7df919 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkTask.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworkTask.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworking.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworking.h index 2068f32..3ad70f0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworking.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNetworking.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNullability.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNullability.h index f08d276..266f3f5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNullability.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTNullability.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -7,7 +7,7 @@ #import -typedef NS_ENUM(NSUInteger, RCTNullability) { +typedef NS_ENUM(NSInteger, RCTNullability) { RCTNullabilityUnspecified, RCTNullable, RCTNonnullable, diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPLTag.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPLTag.h new file mode 100644 index 0000000..5aa15cb --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPLTag.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +typedef NS_ENUM(NSInteger, RCTPLTag) { + RCTPLScriptDownload = 0, + RCTPLScriptExecution, + RCTPLRAMBundleLoad, + RCTPLRAMStartupCodeSize, + RCTPLRAMStartupNativeRequires, + RCTPLRAMStartupNativeRequiresCount, + RCTPLRAMNativeRequires, + RCTPLRAMNativeRequiresCount, + RCTPLNativeModuleInit, + RCTPLNativeModuleMainThread, + RCTPLNativeModulePrepareConfig, + RCTPLNativeModuleMainThreadUsesCount, + RCTPLNativeModuleSetup, + RCTPLTurboModuleSetup, + RCTPLJSCWrapperOpenLibrary, + RCTPLBridgeStartup, + RCTPLTTI, + RCTPLBundleSize, + RCTPLReactInstanceInit, + RCTPLSize // This is used to count the size +}; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerClient.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerClient.h index 3a7a3fd..6dea84f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerClient.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerClient.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerConnection.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerConnection.h index 795a3fc..014f73f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerConnection.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPackagerConnection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTParserUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTParserUtils.h index 15701f4..5a853a4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTParserUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTParserUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLogger.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLogger.h index b0e4a4e..3438edd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLogger.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLogger.h @@ -1,35 +1,12 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #import - -// Keep this in sync with _labelsForTags -typedef NS_ENUM(NSUInteger, RCTPLTag) { - RCTPLScriptDownload = 0, - RCTPLScriptExecution, - RCTPLRAMBundleLoad, - RCTPLRAMStartupCodeSize, - RCTPLRAMStartupNativeRequires, - RCTPLRAMStartupNativeRequiresCount, - RCTPLRAMNativeRequires, - RCTPLRAMNativeRequiresCount, - RCTPLNativeModuleInit, - RCTPLNativeModuleMainThread, - RCTPLNativeModulePrepareConfig, - RCTPLNativeModuleMainThreadUsesCount, - RCTPLNativeModuleSetup, - RCTPLTurboModuleSetup, - RCTPLJSCWrapperOpenLibrary, - RCTPLBridgeStartup, - RCTPLTTI, - RCTPLBundleSize, - RCTPLReactInstanceInit, - RCTPLSize // This is used to count the size -}; +#import "RCTPLTag.h" @interface RCTPerformanceLogger : NSObject @@ -95,10 +72,4 @@ typedef NS_ENUM(NSUInteger, RCTPLTag) { */ - (int64_t)valueForTag:(RCTPLTag)tag; -/** - * Returns an array with values for all tags. - * Use RCTPLTag to go over the array. - */ -- (NSArray *)labelsForTags; - @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLoggerLabels.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLoggerLabels.h new file mode 100644 index 0000000..12e0211 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPerformanceLoggerLabels.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import "RCTPLTag.h" + +// Return the string label for the enum RCTPLTag for performance logging +__attribute__((used)) RCT_EXTERN NSString *RCTPLLabelForTag(RCTPLTag tag); diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPlatform.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPlatform.h index 64ce567..f1e9d6a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPlatform.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPlatform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPointerEvents.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPointerEvents.h index 001c85f..ff8d533 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPointerEvents.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPointerEvents.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProfile.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProfile.h index 7c6dec1..7341566 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProfile.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProfile.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProgressViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProgressViewManager.h index 32b0988..2fb02c8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProgressViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTProgressViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPropsAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPropsAnimatedNode.h index 0b5f532..8c11a43 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPropsAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTPropsAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextShadowView.h index 1b63014..cc4c4d7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextViewManager.h index ef9a076..03a8a75 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRawTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReconnectingWebSocket.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReconnectingWebSocket.h index 25aa3ef..3690b76 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReconnectingWebSocket.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReconnectingWebSocket.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBox.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBox.h index d468f44..5d67a2a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBox.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBox.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxExtraDataViewController.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxExtraDataViewController.h index 8d2b4c2..1308cde 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxExtraDataViewController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxExtraDataViewController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxSetEnabled.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxSetEnabled.h index fd53eb7..f4f46ef 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxSetEnabled.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRedBoxSetEnabled.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControl.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControl.h index c17b226..35c60c2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControl.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControlManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControlManager.h index 107a9db..123af74 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControlManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshControlManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshableProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshableProtocol.h index 9271e2d..b0b06f2 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshableProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRefreshableProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReloadCommand.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReloadCommand.h index 4846275..2ab722f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReloadCommand.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTReloadCommand.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTResizeMode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTResizeMode.h index 468a58a..322ce53 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTResizeMode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTResizeMode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootContentView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootContentView.h index dfc6d03..6c93bdd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootContentView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootContentView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootShadowView.h index 74af7e8..a312d9a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootView.h index dd56345..32eeb7a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewDelegate.h index 5749157..e2dbc02 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewInternal.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewInternal.h index 8e28dd4..bfff4e0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewInternal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTRootViewInternal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaShadowView.h index 784a4e0..5a5caaa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaView.h index ae1b6b3..4817b68 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -17,8 +17,6 @@ NS_ASSUME_NONNULL_BEGIN - (instancetype)initWithBridge:(RCTBridge *)bridge; -@property (nonatomic, assign) BOOL emulateUnlessSupported; - @end NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewLocalData.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewLocalData.h index 24c776c..b78edb7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewLocalData.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewLocalData.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewManager.h index 71dcc3c..4572832 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSafeAreaViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentShadowView.h index ecae476..126a575 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentView.h index 8d33a5a..853a76b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentViewManager.h index 7645c04..9b5dbbf 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollContentViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollEvent.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollEvent.h index 29a645d..f756c22 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollEvent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollView.h index ea1522b..f6f6d42 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -35,6 +35,7 @@ @property (nonatomic, assign) UIEdgeInsets contentInset; @property (nonatomic, assign) BOOL automaticallyAdjustContentInsets; +@property (nonatomic, assign) BOOL automaticallyAdjustKeyboardInsets; @property (nonatomic, assign) BOOL DEPRECATED_sendUpdatedChildFrames; @property (nonatomic, assign) NSTimeInterval scrollEventThrottle; @property (nonatomic, assign) BOOL centerContent; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollViewManager.h index 94f6e19..3709180 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollableProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollableProtocol.h index ec6772e..706900b 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollableProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTScrollableProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControl.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControl.h index b428f4d..7cb9ffd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControl.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControlManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControlManager.h index edc9df9..cf85c38 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControlManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSegmentedControlManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsManager.h index 4e76780..1e0263c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsPlugins.h index cf79705..b6a5158 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSettingsPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Internal.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Internal.h index b871ce6..0455863 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Internal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Layout.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Layout.h index 7e09674..e320952 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Layout.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView+Layout.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView.h index 4696b14..226672f 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -8,6 +8,8 @@ #import #import +// Keeps RCTConvert.h here before yoga for clang module to generate correct header imports. +#import #import #import #import diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputView.h index d9450db..4846f7d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputViewManager.h index 314993a..6134ddb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSinglelineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSlider.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSlider.h index 355cc36..6eae192 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSlider.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSlider.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSliderManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSliderManager.h index 49de42c..cbe0976 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSliderManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSliderManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSourceCode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSourceCode.h index fd0e387..e8332f7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSourceCode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSourceCode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSpringAnimation.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSpringAnimation.h index 0c031ec..bb7554c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSpringAnimation.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSpringAnimation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStatusBarManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStatusBarManager.h index db02b91..ff1e02e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStatusBarManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStatusBarManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStyleAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStyleAnimatedNode.h index cdcaca4..ec4e92d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStyleAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTStyleAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSubtractionAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSubtractionAnimatedNode.h index e8ec799..043b7c8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSubtractionAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSubtractionAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurface.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurface.h index b776443..1e6d340 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurface.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurface.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceDelegate.h index 895c2eb..21d8b9d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingProxyRootView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingProxyRootView.h index a7077a5..3b2f791 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingProxyRootView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingProxyRootView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingView.h index 0fbbdab..cf301d7 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceHostingView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfacePresenterStub.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfacePresenterStub.h index 32a2b80..70510c1 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfacePresenterStub.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfacePresenterStub.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -9,6 +9,8 @@ #import +@protocol RCTSurfaceProtocol; + NS_ASSUME_NONNULL_BEGIN // TODO: Eventually this should go away and files should just include RCTSurfacePresenter.h, but @@ -26,6 +28,8 @@ NS_ASSUME_NONNULL_BEGIN @protocol RCTSurfacePresenterStub +- (id)createFabricSurfaceForModuleName:(NSString *)moduleName + initialProperties:(NSDictionary *)initialProperties; - (nullable UIView *)findComponentViewWithTag_DO_NOT_USE_DEPRECATED:(NSInteger)tag; - (BOOL)synchronouslyUpdateViewOnUIThread:(NSNumber *)reactTag props:(NSDictionary *)props; - (void)addObserver:(id)observer; diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceProtocol.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceProtocol.h index c274df7..0a4bec6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceProtocol.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -68,13 +68,12 @@ NS_ASSUME_NONNULL_BEGIN @property (atomic, assign, readonly) CGSize intrinsicSize; #pragma mark - Start & Stop - /** * Starts or stops the Surface. * Those methods are a no-op for regular RCTSurface (for now), but all call sites must call them appropriately. */ -- (BOOL)start; -- (BOOL)stop; +- (void)start; +- (void)stop; @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowView.h index cab8b4a..2898b16 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowViewDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowViewDelegate.h index 6ad7337..b13e2f4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowViewDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootShadowViewDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootView.h index 052476a..b11d3f4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceRootView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceSizeMeasureMode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceSizeMeasureMode.h index 0ca27cd..edfc5a0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceSizeMeasureMode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceSizeMeasureMode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceStage.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceStage.h index 87bf915..2397b75 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceStage.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceStage.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView+Internal.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView+Internal.h index ac4f59f..c208e5d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView+Internal.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView+Internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView.h index a61e28c..e6bfad4 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSurfaceView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitch.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitch.h index 3b42a50..dfbc7a0 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitch.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitch.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitchManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitchManager.h index 06015b1..8e1fc5d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitchManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTSwitchManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextAttributes.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextAttributes.h index ce04362..a95536d 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextAttributes.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextAttributes.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextDecorationLineType.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextDecorationLineType.h index ddf9195..bf14d85 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextDecorationLineType.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextDecorationLineType.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextSelection.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextSelection.h index 0bb7583..baa2e0e 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextSelection.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextSelection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextShadowView.h index d364db5..f3202b5 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextTransform.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextTransform.h index 15d328c..014cd39 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextTransform.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextTransform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextView.h index 5928b70..74d102a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextViewManager.h index 446a5db..4c5db00 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTiming.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTiming.h index 7c197aa..1039f25 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTiming.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTiming.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchEvent.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchEvent.h index 9f3cc4f..13a1f25 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchEvent.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchEvent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchHandler.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchHandler.h index 8481a27..6b1b064 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTouchHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTrackingAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTrackingAnimatedNode.h index 27d61fa..0703c45 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTrackingAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTrackingAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTransformAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTransformAnimatedNode.h index fe16bd2..3d86808 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTransformAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTTransformAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIImageViewAnimated.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIImageViewAnimated.h index 9af8d4e..1215e21 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIImageViewAnimated.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIImageViewAnimated.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManager.h index 65309cc..7747262 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerObserverCoordinator.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerObserverCoordinator.h index f351159..eeb569c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerObserverCoordinator.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerObserverCoordinator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerUtils.h index 2bf9f57..80228db 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIManagerUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextField.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextField.h index f3b3492..358e137 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextField.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextField.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -29,6 +29,9 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign, getter=isEditable) BOOL editable; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextView.h index 5cb03ee..5ccb6b6 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUITextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIUtils.h index 14fadee..8fd1850 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUIUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestDelegate.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestDelegate.h index 8a9e03f..835f295 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestDelegate.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestHandler.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestHandler.h index 89f48f5..54d41df 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestHandler.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTURLRequestHandler.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtils.h index ecb7915..a9502dd 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtils.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -186,4 +186,6 @@ RCT_EXTERN BOOL RCTValidateTypeOfViewCommandArgument( NSString const *commandName, NSString const *argPos); +RCT_EXTERN BOOL RCTIsAppActive(void); + NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtilsUIOverride.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtilsUIOverride.h index c6988c6..dc9e76c 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtilsUIOverride.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTUtilsUIOverride.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTValueAnimatedNode.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTValueAnimatedNode.h index a388d00..ccc3346 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTValueAnimatedNode.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTValueAnimatedNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVersion.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVersion.h index 5bc858d..e0357cb 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVersion.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVersion.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibration.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibration.h index 1f6ced3..2a9f724 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibration.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibration.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibrationPlugins.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibrationPlugins.h index 0676192..098c03a 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibrationPlugins.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVibrationPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTView.h index c82242d..fe27daa 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -10,14 +10,11 @@ #import #import #import -#import extern const UIAccessibilityTraits SwitchAccessibilityTrait; @protocol RCTAutoInsetsProtocol; -@class RCTView; - @interface RCTView : UIView /** @@ -37,11 +34,6 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait; withScrollView:(UIScrollView *)scrollView updateOffset:(BOOL)updateOffset; -/** - * Find the first view controller whose view, or any subview is the specified view. - */ -+ (UIEdgeInsets)contentInsetsForView:(UIView *)curView; - /** * Layout direction of the view. * This is inherited from UIView+React, but we override it here @@ -111,4 +103,16 @@ extern const UIAccessibilityTraits SwitchAccessibilityTrait; */ @property (nonatomic, assign) UIEdgeInsets hitTestEdgeInsets; +/** + * (Experimental and unused for Paper) Pointer event handlers. + */ +@property (nonatomic, assign) RCTBubblingEventBlock onPointerCancel; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerDown; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerMove; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerUp; +@property (nonatomic, assign) RCTCapturingEventBlock onPointerEnter; +@property (nonatomic, assign) RCTCapturingEventBlock onPointerLeave; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerOver; +@property (nonatomic, assign) RCTBubblingEventBlock onPointerOut; + @end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewManager.h index 5c1eba4..1676e69 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewUtils.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewUtils.h new file mode 100644 index 0000000..a6204c5 --- /dev/null +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTViewUtils.h @@ -0,0 +1,18 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +NS_ASSUME_NONNULL_BEGIN + +RCT_EXTERN_C_BEGIN + +UIEdgeInsets RCTContentInsets(UIView *view); + +RCT_EXTERN_C_END + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextShadowView.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextShadowView.h index bce9ea8..eed1726 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextShadowView.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextViewManager.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextViewManager.h index 91d4f78..2b38808 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextViewManager.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTVirtualTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakProxy.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakProxy.h index 472f7f0..5b94da8 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakProxy.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakProxy.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakViewHolder.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakViewHolder.h deleted file mode 100644 index ce39eee..0000000 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWeakViewHolder.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -/* - * THIS IS A HACK - * This protocol should only be used for Paper ViewManagers which need to - * use the Fabric Interop layer, and also need to reference their created - * views. This protocol allows the view manager to store a weak reference to - * any created views. It will not affect view lifecycle in any way. - */ -@protocol RCTWeakViewHolder - -@property (nonatomic, strong) NSMapTable *weakViews; - -@end diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketExecutor.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketExecutor.h index 499664b..2c671d1 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketExecutor.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketModule.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketModule.h index c1a48d3..0e39e18 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketModule.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWebSocketModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWrapperViewController.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWrapperViewController.h index dc9b0d6..b827758 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWrapperViewController.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/RCTWrapperViewController.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+Private.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+Private.h index a5cb440..dde1598 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+Private.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+Private.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+React.h b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+React.h index 67c665b..21a7033 100644 --- a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+React.h +++ b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/Headers/React/UIView+React.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -120,6 +120,7 @@ @property (nonatomic, copy) NSDictionary *accessibilityState; @property (nonatomic, copy) NSArray *accessibilityActions; @property (nonatomic, copy) NSDictionary *accessibilityValueInternal; +@property (nonatomic, copy) NSString *accessibilityLanguage; /** * Used in debugging to get a description of the view hierarchy rooted at diff --git a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/libReact-Core.a b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/libReact-Core.a index 641cf33..4070e98 100644 Binary files a/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/libReact-Core.a and b/Frameworks/React-Core.xcframework/ios-arm64_x86_64-simulator/libReact-Core.a differ diff --git a/Frameworks/React-CoreModules.xcframework/ios-arm64/libReact-CoreModules.a b/Frameworks/React-CoreModules.xcframework/ios-arm64/libReact-CoreModules.a index cc5719c..ea81763 100644 Binary files a/Frameworks/React-CoreModules.xcframework/ios-arm64/libReact-CoreModules.a and b/Frameworks/React-CoreModules.xcframework/ios-arm64/libReact-CoreModules.a differ diff --git a/Frameworks/React-CoreModules.xcframework/ios-arm64_x86_64-simulator/libReact-CoreModules.a b/Frameworks/React-CoreModules.xcframework/ios-arm64_x86_64-simulator/libReact-CoreModules.a index 83f7a74..3bf751a 100644 Binary files a/Frameworks/React-CoreModules.xcframework/ios-arm64_x86_64-simulator/libReact-CoreModules.a and b/Frameworks/React-CoreModules.xcframework/ios-arm64_x86_64-simulator/libReact-CoreModules.a differ diff --git a/Frameworks/React-RCTAnimation.xcframework/Info.plist b/Frameworks/React-RCTAnimation.xcframework/Info.plist index b203443..622e79c 100644 --- a/Frameworks/React-RCTAnimation.xcframework/Info.plist +++ b/Frameworks/React-RCTAnimation.xcframework/Info.plist @@ -7,20 +7,8 @@ BinaryPath libReact-RCTAnimation.a - LibraryIdentifier - ios-arm64 - LibraryPath - libReact-RCTAnimation.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - - - BinaryPath - libReact-RCTAnimation.a + HeadersPath + Headers LibraryIdentifier ios-arm64_x86_64-simulator LibraryPath @@ -35,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libReact-RCTAnimation.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libReact-RCTAnimation.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAdditionAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAdditionAnimatedNode.h new file mode 100644 index 0000000..53c91ba --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAdditionAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTAdditionAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimatedNode.h new file mode 100644 index 0000000..a6308ee --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimatedNode.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class RCTNativeAnimatedNodesManager; + +@interface RCTAnimatedNode : NSObject + +- (instancetype)initWithTag:(NSNumber *)tag + config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, readonly) NSNumber *nodeTag; +@property (nonatomic, weak) RCTNativeAnimatedNodesManager *manager; +@property (nonatomic, copy, readonly) NSDictionary *config; + +@property (nonatomic, copy, readonly) NSMapTable *childNodes; +@property (nonatomic, copy, readonly) NSMapTable *parentNodes; + +@property (nonatomic, readonly) BOOL needsUpdate; + +-(BOOL)isManagedByFabric; + +/** + * Marks a node and its children as needing update. + */ +- (void)setNeedsUpdate NS_REQUIRES_SUPER; + +/** + * The node will update its value if necessary and only after its parents have updated. + */ +- (void)updateNodeIfNecessary NS_REQUIRES_SUPER; + +/** + * Where the actual update code lives. Called internally from updateNodeIfNecessary + */ +- (void)performUpdate NS_REQUIRES_SUPER; + +- (void)addChild:(RCTAnimatedNode *)child NS_REQUIRES_SUPER; +- (void)removeChild:(RCTAnimatedNode *)child NS_REQUIRES_SUPER; + +- (void)onAttachedToNode:(RCTAnimatedNode *)parent NS_REQUIRES_SUPER; +- (void)onDetachedFromNode:(RCTAnimatedNode *)parent NS_REQUIRES_SUPER; + +- (void)detachNode NS_REQUIRES_SUPER; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationDriver.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationDriver.h new file mode 100644 index 0000000..2782c2a --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationDriver.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import + +static CGFloat RCTSingleFrameInterval = (CGFloat)(1.0 / 60.0); + +@class RCTValueAnimatedNode; + +NS_ASSUME_NONNULL_BEGIN + +@protocol RCTAnimationDriver + +@property (nonatomic, readonly) NSNumber *animationId; +@property (nonatomic, readonly) RCTValueAnimatedNode *valueNode; +@property (nonatomic, readonly) BOOL animationHasBegun; +@property (nonatomic, readonly) BOOL animationHasFinished; + +- (instancetype)initWithId:(NSNumber *)animationId + config:(NSDictionary *)config + forNode:(RCTValueAnimatedNode *)valueNode + callBack:(nullable RCTResponseSenderBlock)callback; + +- (void)startAnimation; +- (void)stepAnimationWithTime:(NSTimeInterval)currentTime; +- (void)stopAnimation; +- (void)resetAnimationConfig:(NSDictionary *)config; + +NS_ASSUME_NONNULL_END + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationPlugins.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationPlugins.h new file mode 100644 index 0000000..37e3cc8 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationPlugins.h @@ -0,0 +1,41 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @generated by an internal plugin build system + */ + +#ifdef RN_DISABLE_OSS_PLUGIN_HEADER + +// FB Internal: FBRCTAnimationPlugins.h is autogenerated by the build system. +#import + +#else + +// OSS-compatibility layer + +#import + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage" + +#ifdef __cplusplus +extern "C" { +#endif + +// RCTTurboModuleManagerDelegate should call this to resolve module classes. +Class RCTAnimationClassProvider(const char *name); + +// Lookup functions +Class RCTNativeAnimatedModuleCls(void) __attribute__((used)); +Class RCTNativeAnimatedTurboModuleCls(void) __attribute__((used)); + +#ifdef __cplusplus +} +#endif + +#pragma GCC diagnostic pop + +#endif // RN_DISABLE_OSS_PLUGIN_HEADER diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationUtils.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationUtils.h new file mode 100644 index 0000000..cc8c8fa --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTAnimationUtils.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import + +static NSString *const EXTRAPOLATE_TYPE_IDENTITY = @"identity"; +static NSString *const EXTRAPOLATE_TYPE_CLAMP = @"clamp"; +static NSString *const EXTRAPOLATE_TYPE_EXTEND = @"extend"; + +RCT_EXTERN CGFloat RCTInterpolateValueInRange(CGFloat value, + NSArray *inputRange, + NSArray *outputRange, + NSString *extrapolateLeft, + NSString *extrapolateRight); + +RCT_EXTERN CGFloat RCTInterpolateValue(CGFloat value, + CGFloat inputMin, + CGFloat inputMax, + CGFloat outputMin, + CGFloat outputMax, + NSString *extrapolateLeft, + NSString *extrapolateRight); + +RCT_EXTERN CGFloat RCTRadiansToDegrees(CGFloat radians); +RCT_EXTERN CGFloat RCTDegreesToRadians(CGFloat degrees); + +/** + * Coefficient to slow down animations, respects the ios + * simulator `Slow Animations (⌘T)` option. + */ +RCT_EXTERN CGFloat RCTAnimationDragCoefficient(void); diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTColorAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTColorAnimatedNode.h new file mode 100644 index 0000000..ae1d132 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTColorAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@interface RCTColorAnimatedNode : RCTAnimatedNode + +@property (nonatomic, assign) int32_t color; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDecayAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDecayAnimation.h new file mode 100644 index 0000000..f9aba7d --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDecayAnimation.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimationDriver.h" + +@interface RCTDecayAnimation : NSObject + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDiffClampAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDiffClampAnimatedNode.h new file mode 100644 index 0000000..82144af --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDiffClampAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTDiffClampAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDivisionAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDivisionAnimatedNode.h new file mode 100644 index 0000000..6909be3 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTDivisionAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTDivisionAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTEventAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTEventAnimation.h new file mode 100644 index 0000000..3791ba5 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTEventAnimation.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import "RCTValueAnimatedNode.h" + +@interface RCTEventAnimation : NSObject + +@property (nonatomic, readonly, weak) RCTValueAnimatedNode *valueNode; + +- (instancetype)initWithEventPath:(NSArray *)eventPath + valueNode:(RCTValueAnimatedNode *)valueNode; + +- (void)updateWithEvent:(id)event; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTFrameAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTFrameAnimation.h new file mode 100644 index 0000000..1ce3c83 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTFrameAnimation.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimationDriver.h" + +@interface RCTFrameAnimation : NSObject + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTInterpolationAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTInterpolationAnimatedNode.h new file mode 100644 index 0000000..2ac1650 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTInterpolationAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTInterpolationAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTModuloAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTModuloAnimatedNode.h new file mode 100644 index 0000000..6396eda --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTModuloAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTModuloAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTMultiplicationAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTMultiplicationAnimatedNode.h new file mode 100644 index 0000000..44e7fb7 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTMultiplicationAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTMultiplicationAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedModule.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedModule.h new file mode 100644 index 0000000..f573e85 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedModule.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import + +#import "RCTValueAnimatedNode.h" + +// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. +// NOTE: This module is temporarily forked (see RCTNativeAnimatedTurboModule). +// When making any changes, be sure to apply them to the fork as well. +@interface RCTNativeAnimatedModule : RCTEventEmitter + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedNodesManager.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedNodesManager.h new file mode 100644 index 0000000..3dd32b8 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedNodesManager.h @@ -0,0 +1,101 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import + +@protocol RCTValueAnimatedNodeObserver; + +NS_ASSUME_NONNULL_BEGIN + +@interface RCTNativeAnimatedNodesManager : NSObject + +- (nonnull instancetype)initWithBridge:(nullable RCTBridge *)bridge + surfacePresenter:(id)surfacePresenter; + +- (void)updateAnimations; + +- (void)stepAnimations:(CADisplayLink *)displaylink; + +- (BOOL)isNodeManagedByFabric:(NSNumber *)tag; + +- (void)getValue:(NSNumber *)nodeTag + saveCallback:(RCTResponseSenderBlock)saveCallback; + +// graph + +- (void)createAnimatedNode:(NSNumber *)tag + config:(NSDictionary *)config; + +- (void)connectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; + +- (void)disconnectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; + +- (void)connectAnimatedNodeToView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag + viewName:(nullable NSString *)viewName; + +- (void)restoreDefaultValues:(NSNumber *)nodeTag; + +- (void)disconnectAnimatedNodeFromView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag; + +- (void)dropAnimatedNode:(NSNumber *)tag; + +// mutations + +- (void)setAnimatedNodeValue:(NSNumber *)nodeTag + value:(NSNumber *)value; + +- (void)setAnimatedNodeOffset:(NSNumber *)nodeTag + offset:(NSNumber *)offset; + +- (void)flattenAnimatedNodeOffset:(NSNumber *)nodeTag; + +- (void)extractAnimatedNodeOffset:(NSNumber *)nodeTag; + +- (void)updateAnimatedNodeConfig:(NSNumber *)tag + config:(NSDictionary *)config; + +// drivers + +- (void)startAnimatingNode:(NSNumber *)animationId + nodeTag:(NSNumber *)nodeTag + config:(NSDictionary *)config + endCallback:(nullable RCTResponseSenderBlock)callBack; + +- (void)stopAnimation:(NSNumber *)animationId; + +- (void)stopAnimationLoop; + +// events + +- (void)addAnimatedEventToView:(NSNumber *)viewTag + eventName:(NSString *)eventName + eventMapping:(NSDictionary *)eventMapping; + +- (void)removeAnimatedEventFromView:(NSNumber *)viewTag + eventName:(NSString *)eventName + animatedNodeTag:(NSNumber *)animatedNodeTag; + +- (void)handleAnimatedEvent:(id)event; + +// listeners + +- (void)startListeningToAnimatedNodeValue:(NSNumber *)tag + valueObserver:(id)valueObserver; + +- (void)stopListeningToAnimatedNodeValue:(NSNumber *)tag; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedTurboModule.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedTurboModule.h new file mode 100644 index 0000000..7c4dc64 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTNativeAnimatedTurboModule.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import + +#import "RCTValueAnimatedNode.h" + +// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. +// NOTE: This module is temporarily forked (see RCTNativeAnimatedModule). +// When making any changes, be sure to apply them to the fork as well. +@interface RCTNativeAnimatedTurboModule: RCTEventEmitter + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTPropsAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTPropsAnimatedNode.h new file mode 100644 index 0000000..8c11a43 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTPropsAnimatedNode.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + +#import + +@class RCTBridge; +@class RCTViewPropertyMapper; + +@interface RCTPropsAnimatedNode : RCTAnimatedNode + +- (void)connectToView:(NSNumber *)viewTag + viewName:(NSString *)viewName + bridge:(RCTBridge *)bridge + surfacePresenter:(id)surfacePresenter; + +- (void)disconnectFromView:(NSNumber *)viewTag; + +- (void)restoreDefaultValues; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTSpringAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTSpringAnimation.h new file mode 100644 index 0000000..bb7554c --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTSpringAnimation.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimationDriver.h" + +@interface RCTSpringAnimation : NSObject + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTStyleAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTStyleAnimatedNode.h new file mode 100644 index 0000000..ec4e92d --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTStyleAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + +@interface RCTStyleAnimatedNode : RCTAnimatedNode + +- (NSDictionary *)propsDictionary; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTSubtractionAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTSubtractionAnimatedNode.h new file mode 100644 index 0000000..043b7c8 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTSubtractionAnimatedNode.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTSubtractionAnimatedNode : RCTValueAnimatedNode + +@end + diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTTrackingAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTTrackingAnimatedNode.h new file mode 100644 index 0000000..0703c45 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTTrackingAnimatedNode.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + + +@interface RCTTrackingAnimatedNode : RCTAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTTransformAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTTransformAnimatedNode.h new file mode 100644 index 0000000..3d86808 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTTransformAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + +@interface RCTTransformAnimatedNode : RCTAnimatedNode + +- (NSDictionary *)propsDictionary; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTValueAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTValueAnimatedNode.h new file mode 100644 index 0000000..ccc3346 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/Headers/RCTAnimation/RCTValueAnimatedNode.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import "RCTAnimatedNode.h" + +@class RCTValueAnimatedNode; + +@protocol RCTValueAnimatedNodeObserver + +- (void)animatedNode:(RCTValueAnimatedNode *)node didUpdateValue:(CGFloat)value; + +@end + +@interface RCTValueAnimatedNode : RCTAnimatedNode + +- (void)setOffset:(CGFloat)offset; +- (void)flattenOffset; +- (void)extractOffset; + +@property (nonatomic, assign) CGFloat value; +@property (nonatomic, strong) id animatedObject; +@property (nonatomic, weak) id valueObserver; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/libReact-RCTAnimation.a b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/libReact-RCTAnimation.a index 3c22a32..39ca644 100644 Binary files a/Frameworks/React-RCTAnimation.xcframework/ios-arm64/libReact-RCTAnimation.a and b/Frameworks/React-RCTAnimation.xcframework/ios-arm64/libReact-RCTAnimation.a differ diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAdditionAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAdditionAnimatedNode.h new file mode 100644 index 0000000..53c91ba --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAdditionAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTAdditionAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimatedNode.h new file mode 100644 index 0000000..a6308ee --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimatedNode.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@class RCTNativeAnimatedNodesManager; + +@interface RCTAnimatedNode : NSObject + +- (instancetype)initWithTag:(NSNumber *)tag + config:(NSDictionary *)config NS_DESIGNATED_INITIALIZER; + +@property (nonatomic, readonly) NSNumber *nodeTag; +@property (nonatomic, weak) RCTNativeAnimatedNodesManager *manager; +@property (nonatomic, copy, readonly) NSDictionary *config; + +@property (nonatomic, copy, readonly) NSMapTable *childNodes; +@property (nonatomic, copy, readonly) NSMapTable *parentNodes; + +@property (nonatomic, readonly) BOOL needsUpdate; + +-(BOOL)isManagedByFabric; + +/** + * Marks a node and its children as needing update. + */ +- (void)setNeedsUpdate NS_REQUIRES_SUPER; + +/** + * The node will update its value if necessary and only after its parents have updated. + */ +- (void)updateNodeIfNecessary NS_REQUIRES_SUPER; + +/** + * Where the actual update code lives. Called internally from updateNodeIfNecessary + */ +- (void)performUpdate NS_REQUIRES_SUPER; + +- (void)addChild:(RCTAnimatedNode *)child NS_REQUIRES_SUPER; +- (void)removeChild:(RCTAnimatedNode *)child NS_REQUIRES_SUPER; + +- (void)onAttachedToNode:(RCTAnimatedNode *)parent NS_REQUIRES_SUPER; +- (void)onDetachedFromNode:(RCTAnimatedNode *)parent NS_REQUIRES_SUPER; + +- (void)detachNode NS_REQUIRES_SUPER; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationDriver.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationDriver.h new file mode 100644 index 0000000..2782c2a --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationDriver.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import + +static CGFloat RCTSingleFrameInterval = (CGFloat)(1.0 / 60.0); + +@class RCTValueAnimatedNode; + +NS_ASSUME_NONNULL_BEGIN + +@protocol RCTAnimationDriver + +@property (nonatomic, readonly) NSNumber *animationId; +@property (nonatomic, readonly) RCTValueAnimatedNode *valueNode; +@property (nonatomic, readonly) BOOL animationHasBegun; +@property (nonatomic, readonly) BOOL animationHasFinished; + +- (instancetype)initWithId:(NSNumber *)animationId + config:(NSDictionary *)config + forNode:(RCTValueAnimatedNode *)valueNode + callBack:(nullable RCTResponseSenderBlock)callback; + +- (void)startAnimation; +- (void)stepAnimationWithTime:(NSTimeInterval)currentTime; +- (void)stopAnimation; +- (void)resetAnimationConfig:(NSDictionary *)config; + +NS_ASSUME_NONNULL_END + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationPlugins.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationPlugins.h new file mode 100644 index 0000000..37e3cc8 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationPlugins.h @@ -0,0 +1,41 @@ +/** + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + * + * @generated by an internal plugin build system + */ + +#ifdef RN_DISABLE_OSS_PLUGIN_HEADER + +// FB Internal: FBRCTAnimationPlugins.h is autogenerated by the build system. +#import + +#else + +// OSS-compatibility layer + +#import + +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage" + +#ifdef __cplusplus +extern "C" { +#endif + +// RCTTurboModuleManagerDelegate should call this to resolve module classes. +Class RCTAnimationClassProvider(const char *name); + +// Lookup functions +Class RCTNativeAnimatedModuleCls(void) __attribute__((used)); +Class RCTNativeAnimatedTurboModuleCls(void) __attribute__((used)); + +#ifdef __cplusplus +} +#endif + +#pragma GCC diagnostic pop + +#endif // RN_DISABLE_OSS_PLUGIN_HEADER diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationUtils.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationUtils.h new file mode 100644 index 0000000..cc8c8fa --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTAnimationUtils.h @@ -0,0 +1,38 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import + +#import + +static NSString *const EXTRAPOLATE_TYPE_IDENTITY = @"identity"; +static NSString *const EXTRAPOLATE_TYPE_CLAMP = @"clamp"; +static NSString *const EXTRAPOLATE_TYPE_EXTEND = @"extend"; + +RCT_EXTERN CGFloat RCTInterpolateValueInRange(CGFloat value, + NSArray *inputRange, + NSArray *outputRange, + NSString *extrapolateLeft, + NSString *extrapolateRight); + +RCT_EXTERN CGFloat RCTInterpolateValue(CGFloat value, + CGFloat inputMin, + CGFloat inputMax, + CGFloat outputMin, + CGFloat outputMax, + NSString *extrapolateLeft, + NSString *extrapolateRight); + +RCT_EXTERN CGFloat RCTRadiansToDegrees(CGFloat radians); +RCT_EXTERN CGFloat RCTDegreesToRadians(CGFloat degrees); + +/** + * Coefficient to slow down animations, respects the ios + * simulator `Slow Animations (⌘T)` option. + */ +RCT_EXTERN CGFloat RCTAnimationDragCoefficient(void); diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTColorAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTColorAnimatedNode.h new file mode 100644 index 0000000..ae1d132 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTColorAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +@interface RCTColorAnimatedNode : RCTAnimatedNode + +@property (nonatomic, assign) int32_t color; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDecayAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDecayAnimation.h new file mode 100644 index 0000000..f9aba7d --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDecayAnimation.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimationDriver.h" + +@interface RCTDecayAnimation : NSObject + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDiffClampAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDiffClampAnimatedNode.h new file mode 100644 index 0000000..82144af --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDiffClampAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTDiffClampAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDivisionAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDivisionAnimatedNode.h new file mode 100644 index 0000000..6909be3 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTDivisionAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTDivisionAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTEventAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTEventAnimation.h new file mode 100644 index 0000000..3791ba5 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTEventAnimation.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import "RCTValueAnimatedNode.h" + +@interface RCTEventAnimation : NSObject + +@property (nonatomic, readonly, weak) RCTValueAnimatedNode *valueNode; + +- (instancetype)initWithEventPath:(NSArray *)eventPath + valueNode:(RCTValueAnimatedNode *)valueNode; + +- (void)updateWithEvent:(id)event; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTFrameAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTFrameAnimation.h new file mode 100644 index 0000000..1ce3c83 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTFrameAnimation.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimationDriver.h" + +@interface RCTFrameAnimation : NSObject + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTInterpolationAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTInterpolationAnimatedNode.h new file mode 100644 index 0000000..2ac1650 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTInterpolationAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTInterpolationAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTModuloAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTModuloAnimatedNode.h new file mode 100644 index 0000000..6396eda --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTModuloAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTModuloAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTMultiplicationAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTMultiplicationAnimatedNode.h new file mode 100644 index 0000000..44e7fb7 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTMultiplicationAnimatedNode.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTMultiplicationAnimatedNode : RCTValueAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedModule.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedModule.h new file mode 100644 index 0000000..f573e85 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedModule.h @@ -0,0 +1,23 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import +#import +#import + +#import "RCTValueAnimatedNode.h" + +// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. +// NOTE: This module is temporarily forked (see RCTNativeAnimatedTurboModule). +// When making any changes, be sure to apply them to the fork as well. +@interface RCTNativeAnimatedModule : RCTEventEmitter + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedNodesManager.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedNodesManager.h new file mode 100644 index 0000000..3dd32b8 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedNodesManager.h @@ -0,0 +1,101 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import + +@protocol RCTValueAnimatedNodeObserver; + +NS_ASSUME_NONNULL_BEGIN + +@interface RCTNativeAnimatedNodesManager : NSObject + +- (nonnull instancetype)initWithBridge:(nullable RCTBridge *)bridge + surfacePresenter:(id)surfacePresenter; + +- (void)updateAnimations; + +- (void)stepAnimations:(CADisplayLink *)displaylink; + +- (BOOL)isNodeManagedByFabric:(NSNumber *)tag; + +- (void)getValue:(NSNumber *)nodeTag + saveCallback:(RCTResponseSenderBlock)saveCallback; + +// graph + +- (void)createAnimatedNode:(NSNumber *)tag + config:(NSDictionary *)config; + +- (void)connectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; + +- (void)disconnectAnimatedNodes:(NSNumber *)parentTag + childTag:(NSNumber *)childTag; + +- (void)connectAnimatedNodeToView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag + viewName:(nullable NSString *)viewName; + +- (void)restoreDefaultValues:(NSNumber *)nodeTag; + +- (void)disconnectAnimatedNodeFromView:(NSNumber *)nodeTag + viewTag:(NSNumber *)viewTag; + +- (void)dropAnimatedNode:(NSNumber *)tag; + +// mutations + +- (void)setAnimatedNodeValue:(NSNumber *)nodeTag + value:(NSNumber *)value; + +- (void)setAnimatedNodeOffset:(NSNumber *)nodeTag + offset:(NSNumber *)offset; + +- (void)flattenAnimatedNodeOffset:(NSNumber *)nodeTag; + +- (void)extractAnimatedNodeOffset:(NSNumber *)nodeTag; + +- (void)updateAnimatedNodeConfig:(NSNumber *)tag + config:(NSDictionary *)config; + +// drivers + +- (void)startAnimatingNode:(NSNumber *)animationId + nodeTag:(NSNumber *)nodeTag + config:(NSDictionary *)config + endCallback:(nullable RCTResponseSenderBlock)callBack; + +- (void)stopAnimation:(NSNumber *)animationId; + +- (void)stopAnimationLoop; + +// events + +- (void)addAnimatedEventToView:(NSNumber *)viewTag + eventName:(NSString *)eventName + eventMapping:(NSDictionary *)eventMapping; + +- (void)removeAnimatedEventFromView:(NSNumber *)viewTag + eventName:(NSString *)eventName + animatedNodeTag:(NSNumber *)animatedNodeTag; + +- (void)handleAnimatedEvent:(id)event; + +// listeners + +- (void)startListeningToAnimatedNodeValue:(NSNumber *)tag + valueObserver:(id)valueObserver; + +- (void)stopListeningToAnimatedNodeValue:(NSNumber *)tag; + +@end + +NS_ASSUME_NONNULL_END diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedTurboModule.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedTurboModule.h new file mode 100644 index 0000000..7c4dc64 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTNativeAnimatedTurboModule.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import +#import +#import +#import +#import + +#import "RCTValueAnimatedNode.h" + +// TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%. +// NOTE: This module is temporarily forked (see RCTNativeAnimatedModule). +// When making any changes, be sure to apply them to the fork as well. +@interface RCTNativeAnimatedTurboModule: RCTEventEmitter + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTPropsAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTPropsAnimatedNode.h new file mode 100644 index 0000000..8c11a43 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTPropsAnimatedNode.h @@ -0,0 +1,26 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + +#import + +@class RCTBridge; +@class RCTViewPropertyMapper; + +@interface RCTPropsAnimatedNode : RCTAnimatedNode + +- (void)connectToView:(NSNumber *)viewTag + viewName:(NSString *)viewName + bridge:(RCTBridge *)bridge + surfacePresenter:(id)surfacePresenter; + +- (void)disconnectFromView:(NSNumber *)viewTag; + +- (void)restoreDefaultValues; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTSpringAnimation.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTSpringAnimation.h new file mode 100644 index 0000000..bb7554c --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTSpringAnimation.h @@ -0,0 +1,12 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimationDriver.h" + +@interface RCTSpringAnimation : NSObject + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTStyleAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTStyleAnimatedNode.h new file mode 100644 index 0000000..ec4e92d --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTStyleAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + +@interface RCTStyleAnimatedNode : RCTAnimatedNode + +- (NSDictionary *)propsDictionary; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTSubtractionAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTSubtractionAnimatedNode.h new file mode 100644 index 0000000..043b7c8 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTSubtractionAnimatedNode.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTValueAnimatedNode.h" + +@interface RCTSubtractionAnimatedNode : RCTValueAnimatedNode + +@end + diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTTrackingAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTTrackingAnimatedNode.h new file mode 100644 index 0000000..0703c45 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTTrackingAnimatedNode.h @@ -0,0 +1,13 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + + +@interface RCTTrackingAnimatedNode : RCTAnimatedNode + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTTransformAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTTransformAnimatedNode.h new file mode 100644 index 0000000..3d86808 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTTransformAnimatedNode.h @@ -0,0 +1,14 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import "RCTAnimatedNode.h" + +@interface RCTTransformAnimatedNode : RCTAnimatedNode + +- (NSDictionary *)propsDictionary; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTValueAnimatedNode.h b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTValueAnimatedNode.h new file mode 100644 index 0000000..ccc3346 --- /dev/null +++ b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/Headers/RCTAnimation/RCTValueAnimatedNode.h @@ -0,0 +1,30 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#import + +#import "RCTAnimatedNode.h" + +@class RCTValueAnimatedNode; + +@protocol RCTValueAnimatedNodeObserver + +- (void)animatedNode:(RCTValueAnimatedNode *)node didUpdateValue:(CGFloat)value; + +@end + +@interface RCTValueAnimatedNode : RCTAnimatedNode + +- (void)setOffset:(CGFloat)offset; +- (void)flattenOffset; +- (void)extractOffset; + +@property (nonatomic, assign) CGFloat value; +@property (nonatomic, strong) id animatedObject; +@property (nonatomic, weak) id valueObserver; + +@end diff --git a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/libReact-RCTAnimation.a b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/libReact-RCTAnimation.a index 32ddd1e..2fa1543 100644 Binary files a/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/libReact-RCTAnimation.a and b/Frameworks/React-RCTAnimation.xcframework/ios-arm64_x86_64-simulator/libReact-RCTAnimation.a differ diff --git a/Frameworks/React-RCTBlob.xcframework/Info.plist b/Frameworks/React-RCTBlob.xcframework/Info.plist index 1f02303..fb205b2 100644 --- a/Frameworks/React-RCTBlob.xcframework/Info.plist +++ b/Frameworks/React-RCTBlob.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libReact-RCTBlob.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libReact-RCTBlob.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libReact-RCTBlob.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libReact-RCTBlob.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libReact-RCTBlob.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobCollector.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobCollector.h index 43179d9..fdd6811 100644 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobCollector.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobCollector.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobManager.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobManager.h index 04b905c..34cd8b8 100755 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobManager.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobPlugins.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobPlugins.h index 141ca35..d1fc8cf 100644 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobPlugins.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTBlobPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTFileReaderModule.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTFileReaderModule.h index 0eb246b..80d3808 100644 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTFileReaderModule.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64/Headers/RCTBlob/RCTFileReaderModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64/libReact-RCTBlob.a b/Frameworks/React-RCTBlob.xcframework/ios-arm64/libReact-RCTBlob.a index 526072d..6364a92 100644 Binary files a/Frameworks/React-RCTBlob.xcframework/ios-arm64/libReact-RCTBlob.a and b/Frameworks/React-RCTBlob.xcframework/ios-arm64/libReact-RCTBlob.a differ diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobCollector.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobCollector.h index 43179d9..fdd6811 100644 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobCollector.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobCollector.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobManager.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobManager.h index 04b905c..34cd8b8 100755 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobManager.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobPlugins.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobPlugins.h index 141ca35..d1fc8cf 100644 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobPlugins.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTBlobPlugins.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTFileReaderModule.h b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTFileReaderModule.h index 0eb246b..80d3808 100644 --- a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTFileReaderModule.h +++ b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/Headers/RCTBlob/RCTFileReaderModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/libReact-RCTBlob.a b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/libReact-RCTBlob.a index 70df668..10cb080 100644 Binary files a/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/libReact-RCTBlob.a and b/Frameworks/React-RCTBlob.xcframework/ios-arm64_x86_64-simulator/libReact-RCTBlob.a differ diff --git a/Frameworks/React-RCTImage.xcframework/ios-arm64/libReact-RCTImage.a b/Frameworks/React-RCTImage.xcframework/ios-arm64/libReact-RCTImage.a index bf855cf..d9be1d0 100644 Binary files a/Frameworks/React-RCTImage.xcframework/ios-arm64/libReact-RCTImage.a and b/Frameworks/React-RCTImage.xcframework/ios-arm64/libReact-RCTImage.a differ diff --git a/Frameworks/React-RCTImage.xcframework/ios-arm64_x86_64-simulator/libReact-RCTImage.a b/Frameworks/React-RCTImage.xcframework/ios-arm64_x86_64-simulator/libReact-RCTImage.a index 4dd3479..ac4c760 100644 Binary files a/Frameworks/React-RCTImage.xcframework/ios-arm64_x86_64-simulator/libReact-RCTImage.a and b/Frameworks/React-RCTImage.xcframework/ios-arm64_x86_64-simulator/libReact-RCTImage.a differ diff --git a/Frameworks/React-RCTLinking.xcframework/ios-arm64/libReact-RCTLinking.a b/Frameworks/React-RCTLinking.xcframework/ios-arm64/libReact-RCTLinking.a index 9c45506..d4ce532 100644 Binary files a/Frameworks/React-RCTLinking.xcframework/ios-arm64/libReact-RCTLinking.a and b/Frameworks/React-RCTLinking.xcframework/ios-arm64/libReact-RCTLinking.a differ diff --git a/Frameworks/React-RCTLinking.xcframework/ios-arm64_x86_64-simulator/libReact-RCTLinking.a b/Frameworks/React-RCTLinking.xcframework/ios-arm64_x86_64-simulator/libReact-RCTLinking.a index 2fc88c3..30ebf7d 100644 Binary files a/Frameworks/React-RCTLinking.xcframework/ios-arm64_x86_64-simulator/libReact-RCTLinking.a and b/Frameworks/React-RCTLinking.xcframework/ios-arm64_x86_64-simulator/libReact-RCTLinking.a differ diff --git a/Frameworks/React-RCTNetwork.xcframework/ios-arm64/libReact-RCTNetwork.a b/Frameworks/React-RCTNetwork.xcframework/ios-arm64/libReact-RCTNetwork.a index 831ff69..62c0a24 100644 Binary files a/Frameworks/React-RCTNetwork.xcframework/ios-arm64/libReact-RCTNetwork.a and b/Frameworks/React-RCTNetwork.xcframework/ios-arm64/libReact-RCTNetwork.a differ diff --git a/Frameworks/React-RCTNetwork.xcframework/ios-arm64_x86_64-simulator/libReact-RCTNetwork.a b/Frameworks/React-RCTNetwork.xcframework/ios-arm64_x86_64-simulator/libReact-RCTNetwork.a index 3a22be1..0b640e4 100644 Binary files a/Frameworks/React-RCTNetwork.xcframework/ios-arm64_x86_64-simulator/libReact-RCTNetwork.a and b/Frameworks/React-RCTNetwork.xcframework/ios-arm64_x86_64-simulator/libReact-RCTNetwork.a differ diff --git a/Frameworks/React-RCTSettings.xcframework/ios-arm64/libReact-RCTSettings.a b/Frameworks/React-RCTSettings.xcframework/ios-arm64/libReact-RCTSettings.a index 371500c..b1d5cf3 100644 Binary files a/Frameworks/React-RCTSettings.xcframework/ios-arm64/libReact-RCTSettings.a and b/Frameworks/React-RCTSettings.xcframework/ios-arm64/libReact-RCTSettings.a differ diff --git a/Frameworks/React-RCTSettings.xcframework/ios-arm64_x86_64-simulator/libReact-RCTSettings.a b/Frameworks/React-RCTSettings.xcframework/ios-arm64_x86_64-simulator/libReact-RCTSettings.a index 7d5163b..5445561 100644 Binary files a/Frameworks/React-RCTSettings.xcframework/ios-arm64_x86_64-simulator/libReact-RCTSettings.a and b/Frameworks/React-RCTSettings.xcframework/ios-arm64_x86_64-simulator/libReact-RCTSettings.a differ diff --git a/Frameworks/React-RCTText.xcframework/Info.plist b/Frameworks/React-RCTText.xcframework/Info.plist index 205be05..f08a96d 100644 --- a/Frameworks/React-RCTText.xcframework/Info.plist +++ b/Frameworks/React-RCTText.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libReact-RCTText.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libReact-RCTText.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libReact-RCTText.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libReact-RCTText.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libReact-RCTText.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/NSTextStorage+FontScaling.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/NSTextStorage+FontScaling.h index 61b1634..a87d67d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/NSTextStorage+FontScaling.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/NSTextStorage+FontScaling.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegate.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegate.h index 3e1839b..c2a4362 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegate.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h index a7f3251..1051715 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputViewProtocol.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputViewProtocol.h index 09f4fe2..c235907 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputViewProtocol.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBackedTextInputViewProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -31,6 +31,10 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign) UITextFieldViewMode clearButtonMode; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; + // This protocol disallows direct access to `selectedTextRange` property because // unwise usage of it can break the `delegate` behavior. So, we always have to diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputShadowView.h index 44b46db..8f4cf7e 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputView.h index d73f082..5c6c5cf 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -35,6 +35,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) RCTDirectEventBlock onContentSizeChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onSelectionChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onChange; +@property (nonatomic, copy, nullable) RCTDirectEventBlock onChangeSync; @property (nonatomic, copy, nullable) RCTDirectEventBlock onTextInput; @property (nonatomic, copy, nullable) RCTDirectEventBlock onScroll; diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputViewManager.h index 5201bdb..1a9b1a9 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextShadowView.h index 9f2c944..9d0affa 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextViewManager.h index b0f9470..56f63c3 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTBaseTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTConvert+Text.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTConvert+Text.h index eafbdb3..b7c411a 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTConvert+Text.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTConvert+Text.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryShadowView.h index 8ed5110..8f7ecb8 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryView.h index d4c48ce..f86370c 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewContent.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewContent.h index f65eea7..e07b07d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewContent.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewContent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewManager.h index 251048d..4f1cc32 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTInputAccessoryViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputView.h index 0efd63a..bd183de 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputViewManager.h index 3347fbb..fe8dbc3 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTMultilineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextShadowView.h index 1b63014..cc4c4d7 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextViewManager.h index ef9a076..03a8a75 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTRawTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputView.h index d9450db..4846f7d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputViewManager.h index 314993a..6134ddb 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTSinglelineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextAttributes.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextAttributes.h index ce04362..a95536d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextAttributes.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextAttributes.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextSelection.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextSelection.h index 0bb7583..baa2e0e 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextSelection.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextSelection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextShadowView.h index d364db5..f3202b5 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextTransform.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextTransform.h index 15d328c..014cd39 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextTransform.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextTransform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextView.h index 5928b70..74d102a 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextViewManager.h index 446a5db..4c5db00 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextField.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextField.h index f3b3492..358e137 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextField.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextField.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -29,6 +29,9 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign, getter=isEditable) BOOL editable; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; @end diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextView.h index 5cb03ee..5ccb6b6 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTUITextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextShadowView.h index bce9ea8..eed1726 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextViewManager.h index 91d4f78..2b38808 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64/Headers/RCTText/RCTVirtualTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64/libReact-RCTText.a b/Frameworks/React-RCTText.xcframework/ios-arm64/libReact-RCTText.a index 69347a7..e0db8a7 100644 Binary files a/Frameworks/React-RCTText.xcframework/ios-arm64/libReact-RCTText.a and b/Frameworks/React-RCTText.xcframework/ios-arm64/libReact-RCTText.a differ diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/NSTextStorage+FontScaling.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/NSTextStorage+FontScaling.h index 61b1634..a87d67d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/NSTextStorage+FontScaling.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/NSTextStorage+FontScaling.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegate.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegate.h index 3e1839b..c2a4362 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegate.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegate.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h index a7f3251..1051715 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputDelegateAdapter.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputViewProtocol.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputViewProtocol.h index 09f4fe2..c235907 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputViewProtocol.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBackedTextInputViewProtocol.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -31,6 +31,10 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign) UITextFieldViewMode clearButtonMode; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; + // This protocol disallows direct access to `selectedTextRange` property because // unwise usage of it can break the `delegate` behavior. So, we always have to diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputShadowView.h index 44b46db..8f4cf7e 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputView.h index d73f082..5c6c5cf 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -35,6 +35,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, copy, nullable) RCTDirectEventBlock onContentSizeChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onSelectionChange; @property (nonatomic, copy, nullable) RCTDirectEventBlock onChange; +@property (nonatomic, copy, nullable) RCTDirectEventBlock onChangeSync; @property (nonatomic, copy, nullable) RCTDirectEventBlock onTextInput; @property (nonatomic, copy, nullable) RCTDirectEventBlock onScroll; diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputViewManager.h index 5201bdb..1a9b1a9 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextShadowView.h index 9f2c944..9d0affa 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextViewManager.h index b0f9470..56f63c3 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTBaseTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTConvert+Text.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTConvert+Text.h index eafbdb3..b7c411a 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTConvert+Text.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTConvert+Text.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryShadowView.h index 8ed5110..8f7ecb8 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryView.h index d4c48ce..f86370c 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewContent.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewContent.h index f65eea7..e07b07d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewContent.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewContent.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewManager.h index 251048d..4f1cc32 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTInputAccessoryViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputView.h index 0efd63a..bd183de 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputViewManager.h index 3347fbb..fe8dbc3 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTMultilineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextShadowView.h index 1b63014..cc4c4d7 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextViewManager.h index ef9a076..03a8a75 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTRawTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputView.h index d9450db..4846f7d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputViewManager.h index 314993a..6134ddb 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTSinglelineTextInputViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextAttributes.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextAttributes.h index ce04362..a95536d 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextAttributes.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextAttributes.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextSelection.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextSelection.h index 0bb7583..baa2e0e 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextSelection.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextSelection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextShadowView.h index d364db5..f3202b5 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextTransform.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextTransform.h index 15d328c..014cd39 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextTransform.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextTransform.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextView.h index 5928b70..74d102a 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextViewManager.h index 446a5db..4c5db00 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextField.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextField.h index f3b3492..358e137 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextField.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextField.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -29,6 +29,9 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic, assign, getter=isEditable) BOOL editable; @property (nonatomic, getter=isScrollEnabled) BOOL scrollEnabled; @property (nonatomic, strong, nullable) NSString *inputAccessoryViewID; +@property (nonatomic, assign, readonly) CGFloat zoomScale; +@property (nonatomic, assign, readonly) CGPoint contentOffset; +@property (nonatomic, assign, readonly) UIEdgeInsets contentInset; @end diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextView.h index 5cb03ee..5ccb6b6 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTUITextView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextShadowView.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextShadowView.h index bce9ea8..eed1726 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextShadowView.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextShadowView.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextViewManager.h b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextViewManager.h index 91d4f78..2b38808 100644 --- a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextViewManager.h +++ b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/Headers/RCTText/RCTVirtualTextViewManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/libReact-RCTText.a b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/libReact-RCTText.a index 3fe4258..6e39aab 100644 Binary files a/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/libReact-RCTText.a and b/Frameworks/React-RCTText.xcframework/ios-arm64_x86_64-simulator/libReact-RCTText.a differ diff --git a/Frameworks/React-RCTVibration.xcframework/ios-arm64/libReact-RCTVibration.a b/Frameworks/React-RCTVibration.xcframework/ios-arm64/libReact-RCTVibration.a index 5249330..6cb5e2e 100644 Binary files a/Frameworks/React-RCTVibration.xcframework/ios-arm64/libReact-RCTVibration.a and b/Frameworks/React-RCTVibration.xcframework/ios-arm64/libReact-RCTVibration.a differ diff --git a/Frameworks/React-RCTVibration.xcframework/ios-arm64_x86_64-simulator/libReact-RCTVibration.a b/Frameworks/React-RCTVibration.xcframework/ios-arm64_x86_64-simulator/libReact-RCTVibration.a index 3f99f7d..e33fb71 100644 Binary files a/Frameworks/React-RCTVibration.xcframework/ios-arm64_x86_64-simulator/libReact-RCTVibration.a and b/Frameworks/React-RCTVibration.xcframework/ios-arm64_x86_64-simulator/libReact-RCTVibration.a differ diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/Info.plist b/Frameworks/React-bridging.xcframework/Info.plist similarity index 84% rename from Frameworks/RNColorMatrixImageFilters.xcframework/Info.plist rename to Frameworks/React-bridging.xcframework/Info.plist index eec899c..caedb37 100644 --- a/Frameworks/RNColorMatrixImageFilters.xcframework/Info.plist +++ b/Frameworks/React-bridging.xcframework/Info.plist @@ -6,13 +6,13 @@ BinaryPath - libRNColorMatrixImageFilters.a + libReact-bridging.a HeadersPath Headers LibraryIdentifier ios-arm64 LibraryPath - libRNColorMatrixImageFilters.a + libReact-bridging.a SupportedArchitectures arm64 @@ -22,13 +22,13 @@ BinaryPath - libRNColorMatrixImageFilters.a + libReact-bridging.a HeadersPath Headers LibraryIdentifier ios-arm64_x86_64-simulator LibraryPath - libRNColorMatrixImageFilters.a + libReact-bridging.a SupportedArchitectures arm64 diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/AString.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/AString.h new file mode 100644 index 0000000..cad9124 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/AString.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include + +namespace facebook::react { + +template <> +struct Bridging { + static std::string fromJs(jsi::Runtime &rt, const jsi::String &value) { + return value.utf8(rt); + } + + static jsi::String toJs(jsi::Runtime &rt, const std::string &value) { + return jsi::String::createFromUtf8(rt, value); + } +}; + +template <> +struct Bridging { + static jsi::String toJs(jsi::Runtime &rt, std::string_view value) { + return jsi::String::createFromUtf8( + rt, reinterpret_cast(value.data()), value.length()); + } +}; + +template <> +struct Bridging : Bridging {}; + +template +struct Bridging : Bridging {}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Array.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Array.h new file mode 100644 index 0000000..330e2e1 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Array.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace facebook::react { + +namespace array_detail { + +template +struct BridgingStatic { + static jsi::Array toJs( + jsi::Runtime &rt, + const T &array, + const std::shared_ptr &jsInvoker) { + return toJs(rt, array, jsInvoker, std::make_index_sequence{}); + } + + private: + template + static jsi::Array toJs( + facebook::jsi::Runtime &rt, + const T &array, + const std::shared_ptr &jsInvoker, + std::index_sequence) { + return jsi::Array::createWithElements( + rt, bridging::toJs(rt, std::get(array), jsInvoker)...); + } +}; + +template +struct BridgingDynamic { + static jsi::Array toJs( + jsi::Runtime &rt, + const T &list, + const std::shared_ptr &jsInvoker) { + jsi::Array result(rt, list.size()); + size_t index = 0; + + for (const auto &item : list) { + result.setValueAtIndex(rt, index++, bridging::toJs(rt, item, jsInvoker)); + } + + return result; + } +}; + +} // namespace array_detail + +template +struct Bridging> + : array_detail::BridgingStatic, N> {}; + +template +struct Bridging> + : array_detail::BridgingStatic, 2> {}; + +template +struct Bridging> + : array_detail::BridgingStatic, sizeof...(Types)> {}; + +template +struct Bridging> : array_detail::BridgingDynamic> { +}; + +template +struct Bridging> + : array_detail::BridgingDynamic> {}; + +template +struct Bridging> : array_detail::BridgingDynamic> {}; + +template +struct Bridging> + : array_detail::BridgingDynamic> { + static std::vector fromJs( + facebook::jsi::Runtime &rt, + const jsi::Array &array, + const std::shared_ptr &jsInvoker) { + size_t length = array.length(rt); + + std::vector vector; + vector.reserve(length); + + for (size_t i = 0; i < length; i++) { + vector.push_back( + bridging::fromJs(rt, array.getValueAtIndex(rt, i), jsInvoker)); + } + + return vector; + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Base.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Base.h new file mode 100644 index 0000000..56006f3 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Base.h @@ -0,0 +1,154 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include +#include + +#include +#include +#include + +namespace facebook::react { + +template +struct Bridging; + +template <> +struct Bridging { + // Highly generic code may result in "casting" to void. + static void fromJs(jsi::Runtime &, const jsi::Value &) {} +}; + +namespace bridging { +namespace detail { + +template +struct function_wrapper; + +template +struct function_wrapper { + using type = folly::Function; +}; + +template +struct function_wrapper { + using type = folly::Function; +}; + +template +struct bridging_wrapper { + using type = remove_cvref_t; +}; + +// Convert lambda types to move-only function types since we can't specialize +// Bridging templates for arbitrary lambdas. +template +struct bridging_wrapper< + T, + std::void_t::operator())>> + : function_wrapper::operator())> {}; + +} // namespace detail + +template +using bridging_t = typename detail::bridging_wrapper::type; + +template , int> = 0> +auto fromJs(jsi::Runtime &rt, T &&value, const std::shared_ptr &) + -> decltype(static_cast(convert(rt, std::forward(value)))) { + return convert(rt, std::forward(value)); +} + +template +auto fromJs(jsi::Runtime &rt, T &&value, const std::shared_ptr &) + -> decltype(Bridging>::fromJs( + rt, + convert(rt, std::forward(value)))) { + return Bridging>::fromJs( + rt, convert(rt, std::forward(value))); +} + +template +auto fromJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr &jsInvoker) + -> decltype(Bridging>::fromJs( + rt, + convert(rt, std::forward(value)), + jsInvoker)) { + return Bridging>::fromJs( + rt, convert(rt, std::forward(value)), jsInvoker); +} + +template , int> = 0> +auto toJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr & = nullptr) + -> decltype(convert(rt, std::forward(value))) { + return convert(rt, std::forward(value)); +} + +template +auto toJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr & = nullptr) + -> decltype(Bridging>::toJs(rt, std::forward(value))) { + return Bridging>::toJs(rt, std::forward(value)); +} + +template +auto toJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr &jsInvoker) + -> decltype(Bridging>::toJs( + rt, + std::forward(value), + jsInvoker)) { + return Bridging>::toJs(rt, std::forward(value), jsInvoker); +} + +template +inline constexpr bool supportsFromJs = false; + +template +inline constexpr bool supportsFromJs< + T, + Arg, + std::void_t( + std::declval(), + std::declval(), + nullptr))>> = true; + +template +inline constexpr bool supportsToJs = false; + +template +inline constexpr bool supportsToJs< + T, + Ret, + std::void_t(), + std::declval(), + nullptr))>> = + std::is_convertible_v< + decltype(toJs( + std::declval(), + std::declval(), + nullptr)), + Ret>; + +} // namespace bridging +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Bool.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Bool.h new file mode 100644 index 0000000..b720e12 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Bool.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react { + +template <> +struct Bridging { + static bool fromJs(jsi::Runtime &rt, const jsi::Value &value) { + return value.asBool(); + } + + static jsi::Value toJs(jsi::Runtime &, bool value) { + return value; + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Bridging.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Bridging.h new file mode 100644 index 0000000..26cf99b --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Bridging.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/CallbackWrapper.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/CallbackWrapper.h new file mode 100644 index 0000000..fc2980c --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/CallbackWrapper.h @@ -0,0 +1,103 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include + +#include + +namespace facebook { +namespace react { + +// Helper for passing jsi::Function arg to other methods. +class CallbackWrapper : public LongLivedObject { + private: + CallbackWrapper( + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) + : longLivedObjectCollection_(), + callback_(std::move(callback)), + runtime_(runtime), + jsInvoker_(std::move(jsInvoker)) {} + + CallbackWrapper( + std::shared_ptr longLivedObjectCollection, + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) + : longLivedObjectCollection_(longLivedObjectCollection), + callback_(std::move(callback)), + runtime_(runtime), + jsInvoker_(std::move(jsInvoker)) {} + + // Use a weak_ptr to avoid a retain cycle: LongLivedObjectCollection owns all + // CallbackWrappers. So, CallbackWrapper cannot own its + // LongLivedObjectCollection. + std::weak_ptr longLivedObjectCollection_; + jsi::Function callback_; + jsi::Runtime &runtime_; + std::shared_ptr jsInvoker_; + + public: + static std::weak_ptr createWeak( + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) { + auto wrapper = std::shared_ptr( + new CallbackWrapper(std::move(callback), runtime, jsInvoker)); + LongLivedObjectCollection::get().add(wrapper); + return wrapper; + } + + static std::weak_ptr createWeak( + std::shared_ptr longLivedObjectCollection, + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) { + auto wrapper = std::shared_ptr(new CallbackWrapper( + longLivedObjectCollection, std::move(callback), runtime, jsInvoker)); + longLivedObjectCollection->add(wrapper); + return wrapper; + } + + // Delete the enclosed jsi::Function + void destroy() { + allowRelease(); + } + + jsi::Function &callback() { + return callback_; + } + + jsi::Runtime &runtime() { + return runtime_; + } + + CallInvoker &jsInvoker() { + return *(jsInvoker_); + } + + std::shared_ptr jsInvokerPtr() { + return jsInvoker_; + } + + void allowRelease() override { + if (auto longLivedObjectCollection = longLivedObjectCollection_.lock()) { + if (longLivedObjectCollection != nullptr) { + longLivedObjectCollection->remove(this); + return; + } + } + LongLivedObject::allowRelease(); + } +}; + +} // namespace react +} // namespace facebook diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Class.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Class.h new file mode 100644 index 0000000..d0cc976 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Class.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react::bridging { + +template < + typename T, + typename C, + typename R, + typename... Args, + typename... JSArgs> +T callFromJs( + jsi::Runtime &rt, + R (C::*method)(jsi::Runtime &, Args...), + const std::shared_ptr &jsInvoker, + C *instance, + JSArgs &&...args) { + static_assert( + sizeof...(Args) == sizeof...(JSArgs), "Incorrect arguments length"); + static_assert( + (supportsFromJs && ...), "Incompatible arguments"); + + if constexpr (std::is_void_v) { + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...); + + } else if constexpr (std::is_void_v) { + static_assert( + std::is_same_v, + "Void functions may only return undefined"); + + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...); + return jsi::Value(); + + } else if constexpr (is_jsi_v) { + static_assert(supportsToJs, "Incompatible return type"); + + return toJs( + rt, + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...), + jsInvoker); + + } else if constexpr (is_optional_v) { + static_assert( + is_optional_v + ? supportsToJs + : supportsToJs, + "Incompatible return type"); + + auto result = toJs( + rt, + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...), + jsInvoker); + + if constexpr (std::is_same_v) { + if (result.isNull() || result.isUndefined()) { + return std::nullopt; + } + } + + return convert(rt, std::move(result)); + + } else { + static_assert(std::is_convertible_v, "Incompatible return type"); + + return (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...); + } +} + +template +constexpr size_t getParameterCount(R (*)(Args...)) { + return sizeof...(Args); +} + +template +constexpr size_t getParameterCount(R (C::*)(Args...)) { + return sizeof...(Args); +} + +} // namespace facebook::react::bridging diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Convert.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Convert.h new file mode 100644 index 0000000..d2e0f8e --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Convert.h @@ -0,0 +1,162 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include + +namespace facebook::react::bridging { + +// std::remove_cvref_t is not available until C++20. +template +using remove_cvref_t = std::remove_cv_t>; + +template +inline constexpr bool is_jsi_v = + std::is_same_v> || + std::is_same_v> || + std::is_base_of_v>; + +template +struct is_optional : std::false_type {}; + +template +struct is_optional> : std::true_type {}; + +template +inline constexpr bool is_optional_v = is_optional::value; + +template +struct Converter; + +template +struct ConverterBase { + using BaseT = remove_cvref_t; + + ConverterBase(jsi::Runtime &rt, T &&value) + : rt_(rt), value_(std::forward(value)) {} + + operator BaseT() && { + if constexpr (std::is_lvalue_reference_v) { + // Copy the reference into a Value that then can be moved from. + auto value = jsi::Value(rt_, value_); + + if constexpr (std::is_same_v) { + return std::move(value); + } else if constexpr (std::is_same_v) { + return std::move(value).getString(rt_); + } else if constexpr (std::is_same_v) { + return std::move(value).getObject(rt_); + } else if constexpr (std::is_same_v) { + return std::move(value).getObject(rt_).getArray(rt_); + } else if constexpr (std::is_same_v) { + return std::move(value).getObject(rt_).getFunction(rt_); + } + } else { + return std::move(value_); + } + } + + template < + typename U, + std::enable_if_t< + std::is_lvalue_reference_v && + // Ensure non-reference type can be converted to the desired type. + std::is_convertible_v, U>, + int> = 0> + operator U() && { + return Converter(rt_, std::move(*this).operator BaseT()); + } + + template < + typename U, + std::enable_if_t && std::is_same_v, int> = 0> + operator U() && = delete; // Prevent unwanted upcasting of JSI values. + + protected: + jsi::Runtime &rt_; + T value_; +}; + +template +struct Converter : public ConverterBase { + using ConverterBase::ConverterBase; +}; + +template <> +struct Converter : public ConverterBase { + using ConverterBase::ConverterBase; + + operator jsi::String() && { + return std::move(value_).asString(rt_); + } + + operator jsi::Object() && { + return std::move(value_).asObject(rt_); + } + + operator jsi::Array() && { + return std::move(value_).asObject(rt_).asArray(rt_); + } + + operator jsi::Function() && { + return std::move(value_).asObject(rt_).asFunction(rt_); + } +}; + +template <> +struct Converter : public ConverterBase { + using ConverterBase::ConverterBase; + + operator jsi::Array() && { + return std::move(value_).asArray(rt_); + } + + operator jsi::Function() && { + return std::move(value_).asFunction(rt_); + } +}; + +template +struct Converter> : public ConverterBase { + Converter(jsi::Runtime &rt, std::optional value) + : ConverterBase(rt, value ? std::move(*value) : jsi::Value::null()) {} + + operator std::optional() && { + if (value_.isNull() || value_.isUndefined()) { + return {}; + } + return std::move(value_); + } +}; + +template , int> = 0> +auto convert(jsi::Runtime &rt, T &&value) { + return Converter(rt, std::forward(value)); +} + +template < + typename T, + std::enable_if_t || std::is_scalar_v, int> = 0> +auto convert(jsi::Runtime &rt, std::optional value) { + return Converter>(rt, std::move(value)); +} + +template , int> = 0> +auto convert(jsi::Runtime &rt, T &&value) { + return value; +} + +template +auto convert(jsi::Runtime &rt, Converter &&converter) { + return std::move(converter); +} + +} // namespace facebook::react::bridging diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Error.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Error.h new file mode 100644 index 0000000..eed7730 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Error.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react { + +class Error { + public: + // TODO (T114055466): Retain stack trace (at least caller location) + Error(std::string message) : message_(std::move(message)) {} + + Error(const char *message) : Error(std::string(message)) {} + + const std::string &message() const { + return message_; + } + + private: + std::string message_; +}; + +template <> +struct Bridging { + static jsi::JSError fromJs(jsi::Runtime &rt, const jsi::Value &value) { + return jsi::JSError(rt, jsi::Value(rt, value)); + } + + static jsi::JSError fromJs(jsi::Runtime &rt, jsi::Value &&value) { + return jsi::JSError(rt, std::move(value)); + } + + static jsi::Value toJs(jsi::Runtime &rt, std::string message) { + return jsi::Value(rt, jsi::JSError(rt, std::move(message)).value()); + } +}; + +template <> +struct Bridging { + static jsi::Value toJs(jsi::Runtime &rt, const Error &error) { + return jsi::Value(rt, jsi::JSError(rt, error.message()).value()); + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Function.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Function.h new file mode 100644 index 0000000..fdac94b --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Function.h @@ -0,0 +1,214 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include + +#include + +namespace facebook::react { + +template +class SyncCallback; + +template +class AsyncCallback { + public: + AsyncCallback( + jsi::Runtime &runtime, + jsi::Function function, + std::shared_ptr jsInvoker) + : callback_(std::make_shared>( + runtime, + std::move(function), + std::move(jsInvoker))) {} + + AsyncCallback(const AsyncCallback &) = default; + AsyncCallback &operator=(const AsyncCallback &) = default; + + void operator()(Args... args) const { + call(std::forward(args)...); + } + + void call(Args... args) const { + auto wrapper = callback_->wrapper_.lock(); + if (!wrapper) { + throw std::runtime_error("Failed to call invalidated async callback"); + } + + auto argsTuple = std::make_tuple(std::forward(args)...); + + wrapper->jsInvoker().invokeAsync( + [callback = callback_, + argsPtr = std::make_shared( + std::move(argsTuple))] { callback->apply(std::move(*argsPtr)); }); + } + + private: + friend Bridging; + + std::shared_ptr> callback_; +}; + +template +class SyncCallback { + public: + SyncCallback( + jsi::Runtime &rt, + jsi::Function function, + std::shared_ptr jsInvoker) + : wrapper_(CallbackWrapper::createWeak( + std::move(function), + rt, + std::move(jsInvoker))) {} + + // Disallow moving to prevent function from get called on another thread. + SyncCallback(SyncCallback &&) = delete; + SyncCallback &operator=(SyncCallback &&) = delete; + + ~SyncCallback() { + if (auto wrapper = wrapper_.lock()) { + wrapper->destroy(); + } + } + + R operator()(Args... args) const { + return call(std::forward(args)...); + } + + R call(Args... args) const { + auto wrapper = wrapper_.lock(); + if (!wrapper) { + throw std::runtime_error("Failed to call invalidated sync callback"); + } + + auto &callback = wrapper->callback(); + auto &rt = wrapper->runtime(); + auto jsInvoker = wrapper->jsInvokerPtr(); + + if constexpr (std::is_void_v) { + callback.call( + rt, bridging::toJs(rt, std::forward(args), jsInvoker)...); + } else { + return bridging::fromJs( + rt, + callback.call( + rt, bridging::toJs(rt, std::forward(args), jsInvoker)...), + jsInvoker); + } + } + + private: + friend AsyncCallback; + friend Bridging; + + R apply(std::tuple &&args) const { + return apply(std::move(args), std::index_sequence_for{}); + } + + template + R apply(std::tuple &&args, std::index_sequence) const { + return call(std::move(std::get(args))...); + } + + // Held weakly so lifetime is managed by LongLivedObjectCollection. + std::weak_ptr wrapper_; +}; + +template +struct Bridging> { + static AsyncCallback fromJs( + jsi::Runtime &rt, + jsi::Function &&value, + const std::shared_ptr &jsInvoker) { + return AsyncCallback(rt, std::move(value), jsInvoker); + } + + static jsi::Function toJs( + jsi::Runtime &rt, + const AsyncCallback &value) { + return value.callback_->function_.getFunction(rt); + } +}; + +template +struct Bridging> { + static SyncCallback fromJs( + jsi::Runtime &rt, + jsi::Function &&value, + const std::shared_ptr &jsInvoker) { + return SyncCallback(rt, std::move(value), jsInvoker); + } + + static jsi::Function toJs( + jsi::Runtime &rt, + const SyncCallback &value) { + return value.function_.getFunction(rt); + } +}; + +template +struct Bridging> { + using Func = folly::Function; + using IndexSequence = std::index_sequence_for; + + static constexpr size_t kArgumentCount = sizeof...(Args); + + static jsi::Function toJs( + jsi::Runtime &rt, + Func fn, + const std::shared_ptr &jsInvoker) { + return jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "BridgedFunction"), + kArgumentCount, + [fn = std::make_shared(std::move(fn)), jsInvoker]( + jsi::Runtime &rt, + const jsi::Value &, + const jsi::Value *args, + size_t count) -> jsi::Value { + if (count < kArgumentCount) { + throw jsi::JSError(rt, "Incorrect number of arguments"); + } + + if constexpr (std::is_void_v) { + callFromJs(*fn, rt, args, jsInvoker, IndexSequence{}); + return jsi::Value(); + } else { + return bridging::toJs( + rt, + callFromJs(*fn, rt, args, jsInvoker, IndexSequence{}), + jsInvoker); + } + }); + } + + private: + template + static R callFromJs( + Func &fn, + jsi::Runtime &rt, + const jsi::Value *args, + const std::shared_ptr &jsInvoker, + std::index_sequence) { + return fn(bridging::fromJs(rt, args[Index], jsInvoker)...); + } +}; + +template +struct Bridging> + : Bridging> {}; + +template +struct Bridging : Bridging> {}; + +template +struct Bridging : Bridging> {}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/LongLivedObject.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/LongLivedObject.h new file mode 100644 index 0000000..cfb1008 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/LongLivedObject.h @@ -0,0 +1,58 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include + +namespace facebook { +namespace react { + +/** + * A simple wrapper class that can be registered to a collection that keep it + * alive for extended period of time. This object can be removed from the + * collection when needed. + * + * The subclass of this class must be created using std::make_shared(). + * After creation, add it to the `LongLivedObjectCollection`. + * When done with the object, call `allowRelease()` to allow the OS to release + * it. + */ +class LongLivedObject { + public: + virtual void allowRelease(); + + protected: + LongLivedObject(); + virtual ~LongLivedObject(); +}; + +/** + * A singleton, thread-safe, write-only collection for the `LongLivedObject`s. + */ +class LongLivedObjectCollection { + public: + static LongLivedObjectCollection &get(); + + LongLivedObjectCollection(); + LongLivedObjectCollection(LongLivedObjectCollection const &) = delete; + void operator=(LongLivedObjectCollection const &) = delete; + + void add(std::shared_ptr o) const; + void remove(const LongLivedObject *o) const; + void clear() const; + size_t size() const; + + private: + mutable std::unordered_set> collection_; + mutable std::mutex collectionMutex_; +}; + +} // namespace react +} // namespace facebook diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Number.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Number.h new file mode 100644 index 0000000..4857b9e --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Number.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react { + +template <> +struct Bridging { + static double fromJs(jsi::Runtime &, const jsi::Value &value) { + return value.asNumber(); + } + + static jsi::Value toJs(jsi::Runtime &, double value) { + return value; + } +}; + +template <> +struct Bridging { + static float fromJs(jsi::Runtime &, const jsi::Value &value) { + return (float)value.asNumber(); + } + + static jsi::Value toJs(jsi::Runtime &, float value) { + return (double)value; + } +}; + +template <> +struct Bridging { + static int32_t fromJs(jsi::Runtime &, const jsi::Value &value) { + return (int32_t)value.asNumber(); + } + + static jsi::Value toJs(jsi::Runtime &, int32_t value) { + return value; + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Object.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Object.h new file mode 100644 index 0000000..aefc375 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Object.h @@ -0,0 +1,100 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include + +#include +#include +#include + +namespace facebook::react { + +template <> +struct Bridging { + static jsi::WeakObject fromJs(jsi::Runtime &rt, const jsi::Object &value) { + return jsi::WeakObject(rt, value); + } + + static jsi::Value toJs(jsi::Runtime &rt, jsi::WeakObject &value) { + return value.lock(rt); + } +}; + +template +struct Bridging< + std::shared_ptr, + std::enable_if_t>> { + static std::shared_ptr fromJs(jsi::Runtime &rt, const jsi::Object &value) { + return value.asHostObject(rt); + } + + static jsi::Object toJs(jsi::Runtime &rt, std::shared_ptr value) { + return jsi::Object::createFromHostObject(rt, std::move(value)); + } +}; + +namespace map_detail { + +template +struct Bridging { + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result; + auto propertyNames = value.getPropertyNames(rt); + auto length = propertyNames.length(rt); + + for (size_t i = 0; i < length; i++) { + auto propertyName = propertyNames.getValueAtIndex(rt, i); + + result.emplace( + bridging::fromJs(rt, propertyName, jsInvoker), + bridging::fromJs( + rt, value.getProperty(rt, propertyName.asString(rt)), jsInvoker)); + } + + return result; + } + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &map, + const std::shared_ptr &jsInvoker) { + auto resultObject = jsi::Object(rt); + + for (const auto &[key, value] : map) { + resultObject.setProperty( + rt, + jsi::PropNameID::forUtf8(rt, key), + bridging::toJs(rt, value, jsInvoker)); + } + + return resultObject; + } +}; + +} // namespace map_detail + +#ifdef BUTTER_USE_FOLLY_CONTAINERS +template +struct Bridging> + : map_detail::Bridging> {}; +#endif + +template +struct Bridging> + : map_detail::Bridging> {}; + +template +struct Bridging> + : map_detail::Bridging> {}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Promise.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Promise.h new file mode 100644 index 0000000..00fb015 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Promise.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include + +#include +#include + +namespace facebook::react { + +template +class AsyncPromise { + public: + AsyncPromise(jsi::Runtime &rt, const std::shared_ptr &jsInvoker) + : state_(std::make_shared()) { + auto constructor = rt.global().getPropertyAsFunction(rt, "Promise"); + + auto promise = constructor.callAsConstructor( + rt, + bridging::toJs( + rt, + // Safe to capture this since this is called synchronously. + [this](AsyncCallback resolve, AsyncCallback reject) { + state_->resolve = std::move(resolve); + state_->reject = std::move(reject); + }, + jsInvoker)); + + auto promiseHolder = std::make_shared(promise.asObject(rt)); + LongLivedObjectCollection::get().add(promiseHolder); + + // The shared state can retain the promise holder weakly now. + state_->promiseHolder = promiseHolder; + } + + void resolve(T value) { + std::lock_guard lock(state_->mutex); + + if (state_->resolve) { + state_->resolve->call(std::move(value)); + state_->resolve.reset(); + state_->reject.reset(); + } + } + + void reject(Error error) { + std::lock_guard lock(state_->mutex); + + if (state_->reject) { + state_->reject->call(std::move(error)); + state_->reject.reset(); + state_->resolve.reset(); + } + } + + jsi::Object get(jsi::Runtime &rt) const { + if (auto holder = state_->promiseHolder.lock()) { + return jsi::Value(rt, holder->promise).asObject(rt); + } else { + throw jsi::JSError(rt, "Failed to get invalidated promise"); + } + } + + private: + struct PromiseHolder : LongLivedObject { + PromiseHolder(jsi::Object p) : promise(std::move(p)) {} + + jsi::Object promise; + }; + + struct SharedState { + ~SharedState() { + if (auto holder = promiseHolder.lock()) { + holder->allowRelease(); + } + } + + std::mutex mutex; + std::weak_ptr promiseHolder; + std::optional> resolve; + std::optional> reject; + }; + + std::shared_ptr state_; +}; + +template +struct Bridging> { + static jsi::Object toJs(jsi::Runtime &rt, const AsyncPromise &promise) { + return promise.get(rt); + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Value.h b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Value.h new file mode 100644 index 0000000..07d9498 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64/Headers/react/bridging/react/bridging/Value.h @@ -0,0 +1,107 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include + +namespace facebook::react { + +template <> +struct Bridging { + static std::nullptr_t fromJs(jsi::Runtime &rt, const jsi::Value &value) { + if (value.isNull() || value.isUndefined()) { + return nullptr; + } else { + throw jsi::JSError(rt, "Cannot convert value to nullptr"); + } + } + + static std::nullptr_t toJs(jsi::Runtime &, std::nullptr_t) { + return nullptr; + } +}; + +template +struct Bridging> { + static std::optional fromJs( + jsi::Runtime &rt, + const jsi::Value &value, + const std::shared_ptr &jsInvoker) { + if (value.isNull() || value.isUndefined()) { + return {}; + } + return bridging::fromJs(rt, value, jsInvoker); + } + + template + static std::optional fromJs( + jsi::Runtime &rt, + const std::optional &value, + const std::shared_ptr &jsInvoker) { + if (value) { + return bridging::fromJs(rt, *value, jsInvoker); + } + return {}; + } + + static jsi::Value toJs( + jsi::Runtime &rt, + const std::optional &value, + const std::shared_ptr &jsInvoker) { + if (value) { + return bridging::toJs(rt, *value, jsInvoker); + } + return jsi::Value::null(); + } +}; + +template +struct Bridging< + std::shared_ptr, + std::enable_if_t>> { + static jsi::Value toJs( + jsi::Runtime &rt, + const std::shared_ptr &ptr, + const std::shared_ptr &jsInvoker) { + if (ptr) { + return bridging::toJs(rt, *ptr, jsInvoker); + } + return jsi::Value::null(); + } +}; + +template +struct Bridging> { + static jsi::Value toJs( + jsi::Runtime &rt, + const std::unique_ptr &ptr, + const std::shared_ptr &jsInvoker) { + if (ptr) { + return bridging::toJs(rt, *ptr, jsInvoker); + } + return jsi::Value::null(); + } +}; + +template +struct Bridging> { + static jsi::Value toJs( + jsi::Runtime &rt, + const std::weak_ptr &weakPtr, + const std::shared_ptr &jsInvoker) { + if (auto ptr = weakPtr.lock()) { + return bridging::toJs(rt, *ptr, jsInvoker); + } + return jsi::Value::null(); + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64/libReact-bridging.a b/Frameworks/React-bridging.xcframework/ios-arm64/libReact-bridging.a new file mode 100644 index 0000000..783de86 Binary files /dev/null and b/Frameworks/React-bridging.xcframework/ios-arm64/libReact-bridging.a differ diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/AString.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/AString.h new file mode 100644 index 0000000..cad9124 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/AString.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include + +namespace facebook::react { + +template <> +struct Bridging { + static std::string fromJs(jsi::Runtime &rt, const jsi::String &value) { + return value.utf8(rt); + } + + static jsi::String toJs(jsi::Runtime &rt, const std::string &value) { + return jsi::String::createFromUtf8(rt, value); + } +}; + +template <> +struct Bridging { + static jsi::String toJs(jsi::Runtime &rt, std::string_view value) { + return jsi::String::createFromUtf8( + rt, reinterpret_cast(value.data()), value.length()); + } +}; + +template <> +struct Bridging : Bridging {}; + +template +struct Bridging : Bridging {}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Array.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Array.h new file mode 100644 index 0000000..330e2e1 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Array.h @@ -0,0 +1,108 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include +#include +#include +#include +#include +#include + +namespace facebook::react { + +namespace array_detail { + +template +struct BridgingStatic { + static jsi::Array toJs( + jsi::Runtime &rt, + const T &array, + const std::shared_ptr &jsInvoker) { + return toJs(rt, array, jsInvoker, std::make_index_sequence{}); + } + + private: + template + static jsi::Array toJs( + facebook::jsi::Runtime &rt, + const T &array, + const std::shared_ptr &jsInvoker, + std::index_sequence) { + return jsi::Array::createWithElements( + rt, bridging::toJs(rt, std::get(array), jsInvoker)...); + } +}; + +template +struct BridgingDynamic { + static jsi::Array toJs( + jsi::Runtime &rt, + const T &list, + const std::shared_ptr &jsInvoker) { + jsi::Array result(rt, list.size()); + size_t index = 0; + + for (const auto &item : list) { + result.setValueAtIndex(rt, index++, bridging::toJs(rt, item, jsInvoker)); + } + + return result; + } +}; + +} // namespace array_detail + +template +struct Bridging> + : array_detail::BridgingStatic, N> {}; + +template +struct Bridging> + : array_detail::BridgingStatic, 2> {}; + +template +struct Bridging> + : array_detail::BridgingStatic, sizeof...(Types)> {}; + +template +struct Bridging> : array_detail::BridgingDynamic> { +}; + +template +struct Bridging> + : array_detail::BridgingDynamic> {}; + +template +struct Bridging> : array_detail::BridgingDynamic> {}; + +template +struct Bridging> + : array_detail::BridgingDynamic> { + static std::vector fromJs( + facebook::jsi::Runtime &rt, + const jsi::Array &array, + const std::shared_ptr &jsInvoker) { + size_t length = array.length(rt); + + std::vector vector; + vector.reserve(length); + + for (size_t i = 0; i < length; i++) { + vector.push_back( + bridging::fromJs(rt, array.getValueAtIndex(rt, i), jsInvoker)); + } + + return vector; + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Base.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Base.h new file mode 100644 index 0000000..56006f3 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Base.h @@ -0,0 +1,154 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include +#include + +#include +#include +#include + +namespace facebook::react { + +template +struct Bridging; + +template <> +struct Bridging { + // Highly generic code may result in "casting" to void. + static void fromJs(jsi::Runtime &, const jsi::Value &) {} +}; + +namespace bridging { +namespace detail { + +template +struct function_wrapper; + +template +struct function_wrapper { + using type = folly::Function; +}; + +template +struct function_wrapper { + using type = folly::Function; +}; + +template +struct bridging_wrapper { + using type = remove_cvref_t; +}; + +// Convert lambda types to move-only function types since we can't specialize +// Bridging templates for arbitrary lambdas. +template +struct bridging_wrapper< + T, + std::void_t::operator())>> + : function_wrapper::operator())> {}; + +} // namespace detail + +template +using bridging_t = typename detail::bridging_wrapper::type; + +template , int> = 0> +auto fromJs(jsi::Runtime &rt, T &&value, const std::shared_ptr &) + -> decltype(static_cast(convert(rt, std::forward(value)))) { + return convert(rt, std::forward(value)); +} + +template +auto fromJs(jsi::Runtime &rt, T &&value, const std::shared_ptr &) + -> decltype(Bridging>::fromJs( + rt, + convert(rt, std::forward(value)))) { + return Bridging>::fromJs( + rt, convert(rt, std::forward(value))); +} + +template +auto fromJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr &jsInvoker) + -> decltype(Bridging>::fromJs( + rt, + convert(rt, std::forward(value)), + jsInvoker)) { + return Bridging>::fromJs( + rt, convert(rt, std::forward(value)), jsInvoker); +} + +template , int> = 0> +auto toJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr & = nullptr) + -> decltype(convert(rt, std::forward(value))) { + return convert(rt, std::forward(value)); +} + +template +auto toJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr & = nullptr) + -> decltype(Bridging>::toJs(rt, std::forward(value))) { + return Bridging>::toJs(rt, std::forward(value)); +} + +template +auto toJs( + jsi::Runtime &rt, + T &&value, + const std::shared_ptr &jsInvoker) + -> decltype(Bridging>::toJs( + rt, + std::forward(value), + jsInvoker)) { + return Bridging>::toJs(rt, std::forward(value), jsInvoker); +} + +template +inline constexpr bool supportsFromJs = false; + +template +inline constexpr bool supportsFromJs< + T, + Arg, + std::void_t( + std::declval(), + std::declval(), + nullptr))>> = true; + +template +inline constexpr bool supportsToJs = false; + +template +inline constexpr bool supportsToJs< + T, + Ret, + std::void_t(), + std::declval(), + nullptr))>> = + std::is_convertible_v< + decltype(toJs( + std::declval(), + std::declval(), + nullptr)), + Ret>; + +} // namespace bridging +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Bool.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Bool.h new file mode 100644 index 0000000..b720e12 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Bool.h @@ -0,0 +1,25 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react { + +template <> +struct Bridging { + static bool fromJs(jsi::Runtime &rt, const jsi::Value &value) { + return value.asBool(); + } + + static jsi::Value toJs(jsi::Runtime &, bool value) { + return value; + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Bridging.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Bridging.h new file mode 100644 index 0000000..26cf99b --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Bridging.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/CallbackWrapper.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/CallbackWrapper.h new file mode 100644 index 0000000..fc2980c --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/CallbackWrapper.h @@ -0,0 +1,103 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include + +#include + +namespace facebook { +namespace react { + +// Helper for passing jsi::Function arg to other methods. +class CallbackWrapper : public LongLivedObject { + private: + CallbackWrapper( + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) + : longLivedObjectCollection_(), + callback_(std::move(callback)), + runtime_(runtime), + jsInvoker_(std::move(jsInvoker)) {} + + CallbackWrapper( + std::shared_ptr longLivedObjectCollection, + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) + : longLivedObjectCollection_(longLivedObjectCollection), + callback_(std::move(callback)), + runtime_(runtime), + jsInvoker_(std::move(jsInvoker)) {} + + // Use a weak_ptr to avoid a retain cycle: LongLivedObjectCollection owns all + // CallbackWrappers. So, CallbackWrapper cannot own its + // LongLivedObjectCollection. + std::weak_ptr longLivedObjectCollection_; + jsi::Function callback_; + jsi::Runtime &runtime_; + std::shared_ptr jsInvoker_; + + public: + static std::weak_ptr createWeak( + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) { + auto wrapper = std::shared_ptr( + new CallbackWrapper(std::move(callback), runtime, jsInvoker)); + LongLivedObjectCollection::get().add(wrapper); + return wrapper; + } + + static std::weak_ptr createWeak( + std::shared_ptr longLivedObjectCollection, + jsi::Function &&callback, + jsi::Runtime &runtime, + std::shared_ptr jsInvoker) { + auto wrapper = std::shared_ptr(new CallbackWrapper( + longLivedObjectCollection, std::move(callback), runtime, jsInvoker)); + longLivedObjectCollection->add(wrapper); + return wrapper; + } + + // Delete the enclosed jsi::Function + void destroy() { + allowRelease(); + } + + jsi::Function &callback() { + return callback_; + } + + jsi::Runtime &runtime() { + return runtime_; + } + + CallInvoker &jsInvoker() { + return *(jsInvoker_); + } + + std::shared_ptr jsInvokerPtr() { + return jsInvoker_; + } + + void allowRelease() override { + if (auto longLivedObjectCollection = longLivedObjectCollection_.lock()) { + if (longLivedObjectCollection != nullptr) { + longLivedObjectCollection->remove(this); + return; + } + } + LongLivedObject::allowRelease(); + } +}; + +} // namespace react +} // namespace facebook diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Class.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Class.h new file mode 100644 index 0000000..d0cc976 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Class.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react::bridging { + +template < + typename T, + typename C, + typename R, + typename... Args, + typename... JSArgs> +T callFromJs( + jsi::Runtime &rt, + R (C::*method)(jsi::Runtime &, Args...), + const std::shared_ptr &jsInvoker, + C *instance, + JSArgs &&...args) { + static_assert( + sizeof...(Args) == sizeof...(JSArgs), "Incorrect arguments length"); + static_assert( + (supportsFromJs && ...), "Incompatible arguments"); + + if constexpr (std::is_void_v) { + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...); + + } else if constexpr (std::is_void_v) { + static_assert( + std::is_same_v, + "Void functions may only return undefined"); + + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...); + return jsi::Value(); + + } else if constexpr (is_jsi_v) { + static_assert(supportsToJs, "Incompatible return type"); + + return toJs( + rt, + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...), + jsInvoker); + + } else if constexpr (is_optional_v) { + static_assert( + is_optional_v + ? supportsToJs + : supportsToJs, + "Incompatible return type"); + + auto result = toJs( + rt, + (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...), + jsInvoker); + + if constexpr (std::is_same_v) { + if (result.isNull() || result.isUndefined()) { + return std::nullopt; + } + } + + return convert(rt, std::move(result)); + + } else { + static_assert(std::is_convertible_v, "Incompatible return type"); + + return (instance->*method)( + rt, fromJs(rt, std::forward(args), jsInvoker)...); + } +} + +template +constexpr size_t getParameterCount(R (*)(Args...)) { + return sizeof...(Args); +} + +template +constexpr size_t getParameterCount(R (C::*)(Args...)) { + return sizeof...(Args); +} + +} // namespace facebook::react::bridging diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Convert.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Convert.h new file mode 100644 index 0000000..d2e0f8e --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Convert.h @@ -0,0 +1,162 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include + +namespace facebook::react::bridging { + +// std::remove_cvref_t is not available until C++20. +template +using remove_cvref_t = std::remove_cv_t>; + +template +inline constexpr bool is_jsi_v = + std::is_same_v> || + std::is_same_v> || + std::is_base_of_v>; + +template +struct is_optional : std::false_type {}; + +template +struct is_optional> : std::true_type {}; + +template +inline constexpr bool is_optional_v = is_optional::value; + +template +struct Converter; + +template +struct ConverterBase { + using BaseT = remove_cvref_t; + + ConverterBase(jsi::Runtime &rt, T &&value) + : rt_(rt), value_(std::forward(value)) {} + + operator BaseT() && { + if constexpr (std::is_lvalue_reference_v) { + // Copy the reference into a Value that then can be moved from. + auto value = jsi::Value(rt_, value_); + + if constexpr (std::is_same_v) { + return std::move(value); + } else if constexpr (std::is_same_v) { + return std::move(value).getString(rt_); + } else if constexpr (std::is_same_v) { + return std::move(value).getObject(rt_); + } else if constexpr (std::is_same_v) { + return std::move(value).getObject(rt_).getArray(rt_); + } else if constexpr (std::is_same_v) { + return std::move(value).getObject(rt_).getFunction(rt_); + } + } else { + return std::move(value_); + } + } + + template < + typename U, + std::enable_if_t< + std::is_lvalue_reference_v && + // Ensure non-reference type can be converted to the desired type. + std::is_convertible_v, U>, + int> = 0> + operator U() && { + return Converter(rt_, std::move(*this).operator BaseT()); + } + + template < + typename U, + std::enable_if_t && std::is_same_v, int> = 0> + operator U() && = delete; // Prevent unwanted upcasting of JSI values. + + protected: + jsi::Runtime &rt_; + T value_; +}; + +template +struct Converter : public ConverterBase { + using ConverterBase::ConverterBase; +}; + +template <> +struct Converter : public ConverterBase { + using ConverterBase::ConverterBase; + + operator jsi::String() && { + return std::move(value_).asString(rt_); + } + + operator jsi::Object() && { + return std::move(value_).asObject(rt_); + } + + operator jsi::Array() && { + return std::move(value_).asObject(rt_).asArray(rt_); + } + + operator jsi::Function() && { + return std::move(value_).asObject(rt_).asFunction(rt_); + } +}; + +template <> +struct Converter : public ConverterBase { + using ConverterBase::ConverterBase; + + operator jsi::Array() && { + return std::move(value_).asArray(rt_); + } + + operator jsi::Function() && { + return std::move(value_).asFunction(rt_); + } +}; + +template +struct Converter> : public ConverterBase { + Converter(jsi::Runtime &rt, std::optional value) + : ConverterBase(rt, value ? std::move(*value) : jsi::Value::null()) {} + + operator std::optional() && { + if (value_.isNull() || value_.isUndefined()) { + return {}; + } + return std::move(value_); + } +}; + +template , int> = 0> +auto convert(jsi::Runtime &rt, T &&value) { + return Converter(rt, std::forward(value)); +} + +template < + typename T, + std::enable_if_t || std::is_scalar_v, int> = 0> +auto convert(jsi::Runtime &rt, std::optional value) { + return Converter>(rt, std::move(value)); +} + +template , int> = 0> +auto convert(jsi::Runtime &rt, T &&value) { + return value; +} + +template +auto convert(jsi::Runtime &rt, Converter &&converter) { + return std::move(converter); +} + +} // namespace facebook::react::bridging diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Error.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Error.h new file mode 100644 index 0000000..eed7730 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Error.h @@ -0,0 +1,51 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react { + +class Error { + public: + // TODO (T114055466): Retain stack trace (at least caller location) + Error(std::string message) : message_(std::move(message)) {} + + Error(const char *message) : Error(std::string(message)) {} + + const std::string &message() const { + return message_; + } + + private: + std::string message_; +}; + +template <> +struct Bridging { + static jsi::JSError fromJs(jsi::Runtime &rt, const jsi::Value &value) { + return jsi::JSError(rt, jsi::Value(rt, value)); + } + + static jsi::JSError fromJs(jsi::Runtime &rt, jsi::Value &&value) { + return jsi::JSError(rt, std::move(value)); + } + + static jsi::Value toJs(jsi::Runtime &rt, std::string message) { + return jsi::Value(rt, jsi::JSError(rt, std::move(message)).value()); + } +}; + +template <> +struct Bridging { + static jsi::Value toJs(jsi::Runtime &rt, const Error &error) { + return jsi::Value(rt, jsi::JSError(rt, error.message()).value()); + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Function.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Function.h new file mode 100644 index 0000000..fdac94b --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Function.h @@ -0,0 +1,214 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include + +#include + +namespace facebook::react { + +template +class SyncCallback; + +template +class AsyncCallback { + public: + AsyncCallback( + jsi::Runtime &runtime, + jsi::Function function, + std::shared_ptr jsInvoker) + : callback_(std::make_shared>( + runtime, + std::move(function), + std::move(jsInvoker))) {} + + AsyncCallback(const AsyncCallback &) = default; + AsyncCallback &operator=(const AsyncCallback &) = default; + + void operator()(Args... args) const { + call(std::forward(args)...); + } + + void call(Args... args) const { + auto wrapper = callback_->wrapper_.lock(); + if (!wrapper) { + throw std::runtime_error("Failed to call invalidated async callback"); + } + + auto argsTuple = std::make_tuple(std::forward(args)...); + + wrapper->jsInvoker().invokeAsync( + [callback = callback_, + argsPtr = std::make_shared( + std::move(argsTuple))] { callback->apply(std::move(*argsPtr)); }); + } + + private: + friend Bridging; + + std::shared_ptr> callback_; +}; + +template +class SyncCallback { + public: + SyncCallback( + jsi::Runtime &rt, + jsi::Function function, + std::shared_ptr jsInvoker) + : wrapper_(CallbackWrapper::createWeak( + std::move(function), + rt, + std::move(jsInvoker))) {} + + // Disallow moving to prevent function from get called on another thread. + SyncCallback(SyncCallback &&) = delete; + SyncCallback &operator=(SyncCallback &&) = delete; + + ~SyncCallback() { + if (auto wrapper = wrapper_.lock()) { + wrapper->destroy(); + } + } + + R operator()(Args... args) const { + return call(std::forward(args)...); + } + + R call(Args... args) const { + auto wrapper = wrapper_.lock(); + if (!wrapper) { + throw std::runtime_error("Failed to call invalidated sync callback"); + } + + auto &callback = wrapper->callback(); + auto &rt = wrapper->runtime(); + auto jsInvoker = wrapper->jsInvokerPtr(); + + if constexpr (std::is_void_v) { + callback.call( + rt, bridging::toJs(rt, std::forward(args), jsInvoker)...); + } else { + return bridging::fromJs( + rt, + callback.call( + rt, bridging::toJs(rt, std::forward(args), jsInvoker)...), + jsInvoker); + } + } + + private: + friend AsyncCallback; + friend Bridging; + + R apply(std::tuple &&args) const { + return apply(std::move(args), std::index_sequence_for{}); + } + + template + R apply(std::tuple &&args, std::index_sequence) const { + return call(std::move(std::get(args))...); + } + + // Held weakly so lifetime is managed by LongLivedObjectCollection. + std::weak_ptr wrapper_; +}; + +template +struct Bridging> { + static AsyncCallback fromJs( + jsi::Runtime &rt, + jsi::Function &&value, + const std::shared_ptr &jsInvoker) { + return AsyncCallback(rt, std::move(value), jsInvoker); + } + + static jsi::Function toJs( + jsi::Runtime &rt, + const AsyncCallback &value) { + return value.callback_->function_.getFunction(rt); + } +}; + +template +struct Bridging> { + static SyncCallback fromJs( + jsi::Runtime &rt, + jsi::Function &&value, + const std::shared_ptr &jsInvoker) { + return SyncCallback(rt, std::move(value), jsInvoker); + } + + static jsi::Function toJs( + jsi::Runtime &rt, + const SyncCallback &value) { + return value.function_.getFunction(rt); + } +}; + +template +struct Bridging> { + using Func = folly::Function; + using IndexSequence = std::index_sequence_for; + + static constexpr size_t kArgumentCount = sizeof...(Args); + + static jsi::Function toJs( + jsi::Runtime &rt, + Func fn, + const std::shared_ptr &jsInvoker) { + return jsi::Function::createFromHostFunction( + rt, + jsi::PropNameID::forAscii(rt, "BridgedFunction"), + kArgumentCount, + [fn = std::make_shared(std::move(fn)), jsInvoker]( + jsi::Runtime &rt, + const jsi::Value &, + const jsi::Value *args, + size_t count) -> jsi::Value { + if (count < kArgumentCount) { + throw jsi::JSError(rt, "Incorrect number of arguments"); + } + + if constexpr (std::is_void_v) { + callFromJs(*fn, rt, args, jsInvoker, IndexSequence{}); + return jsi::Value(); + } else { + return bridging::toJs( + rt, + callFromJs(*fn, rt, args, jsInvoker, IndexSequence{}), + jsInvoker); + } + }); + } + + private: + template + static R callFromJs( + Func &fn, + jsi::Runtime &rt, + const jsi::Value *args, + const std::shared_ptr &jsInvoker, + std::index_sequence) { + return fn(bridging::fromJs(rt, args[Index], jsInvoker)...); + } +}; + +template +struct Bridging> + : Bridging> {}; + +template +struct Bridging : Bridging> {}; + +template +struct Bridging : Bridging> {}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/LongLivedObject.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/LongLivedObject.h new file mode 100644 index 0000000..cfb1008 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/LongLivedObject.h @@ -0,0 +1,58 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include + +namespace facebook { +namespace react { + +/** + * A simple wrapper class that can be registered to a collection that keep it + * alive for extended period of time. This object can be removed from the + * collection when needed. + * + * The subclass of this class must be created using std::make_shared(). + * After creation, add it to the `LongLivedObjectCollection`. + * When done with the object, call `allowRelease()` to allow the OS to release + * it. + */ +class LongLivedObject { + public: + virtual void allowRelease(); + + protected: + LongLivedObject(); + virtual ~LongLivedObject(); +}; + +/** + * A singleton, thread-safe, write-only collection for the `LongLivedObject`s. + */ +class LongLivedObjectCollection { + public: + static LongLivedObjectCollection &get(); + + LongLivedObjectCollection(); + LongLivedObjectCollection(LongLivedObjectCollection const &) = delete; + void operator=(LongLivedObjectCollection const &) = delete; + + void add(std::shared_ptr o) const; + void remove(const LongLivedObject *o) const; + void clear() const; + size_t size() const; + + private: + mutable std::unordered_set> collection_; + mutable std::mutex collectionMutex_; +}; + +} // namespace react +} // namespace facebook diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Number.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Number.h new file mode 100644 index 0000000..4857b9e --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Number.h @@ -0,0 +1,47 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +namespace facebook::react { + +template <> +struct Bridging { + static double fromJs(jsi::Runtime &, const jsi::Value &value) { + return value.asNumber(); + } + + static jsi::Value toJs(jsi::Runtime &, double value) { + return value; + } +}; + +template <> +struct Bridging { + static float fromJs(jsi::Runtime &, const jsi::Value &value) { + return (float)value.asNumber(); + } + + static jsi::Value toJs(jsi::Runtime &, float value) { + return (double)value; + } +}; + +template <> +struct Bridging { + static int32_t fromJs(jsi::Runtime &, const jsi::Value &value) { + return (int32_t)value.asNumber(); + } + + static jsi::Value toJs(jsi::Runtime &, int32_t value) { + return value; + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Object.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Object.h new file mode 100644 index 0000000..aefc375 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Object.h @@ -0,0 +1,100 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include + +#include +#include +#include + +namespace facebook::react { + +template <> +struct Bridging { + static jsi::WeakObject fromJs(jsi::Runtime &rt, const jsi::Object &value) { + return jsi::WeakObject(rt, value); + } + + static jsi::Value toJs(jsi::Runtime &rt, jsi::WeakObject &value) { + return value.lock(rt); + } +}; + +template +struct Bridging< + std::shared_ptr, + std::enable_if_t>> { + static std::shared_ptr fromJs(jsi::Runtime &rt, const jsi::Object &value) { + return value.asHostObject(rt); + } + + static jsi::Object toJs(jsi::Runtime &rt, std::shared_ptr value) { + return jsi::Object::createFromHostObject(rt, std::move(value)); + } +}; + +namespace map_detail { + +template +struct Bridging { + static T fromJs( + jsi::Runtime &rt, + const jsi::Object &value, + const std::shared_ptr &jsInvoker) { + T result; + auto propertyNames = value.getPropertyNames(rt); + auto length = propertyNames.length(rt); + + for (size_t i = 0; i < length; i++) { + auto propertyName = propertyNames.getValueAtIndex(rt, i); + + result.emplace( + bridging::fromJs(rt, propertyName, jsInvoker), + bridging::fromJs( + rt, value.getProperty(rt, propertyName.asString(rt)), jsInvoker)); + } + + return result; + } + + static jsi::Object toJs( + jsi::Runtime &rt, + const T &map, + const std::shared_ptr &jsInvoker) { + auto resultObject = jsi::Object(rt); + + for (const auto &[key, value] : map) { + resultObject.setProperty( + rt, + jsi::PropNameID::forUtf8(rt, key), + bridging::toJs(rt, value, jsInvoker)); + } + + return resultObject; + } +}; + +} // namespace map_detail + +#ifdef BUTTER_USE_FOLLY_CONTAINERS +template +struct Bridging> + : map_detail::Bridging> {}; +#endif + +template +struct Bridging> + : map_detail::Bridging> {}; + +template +struct Bridging> + : map_detail::Bridging> {}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Promise.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Promise.h new file mode 100644 index 0000000..00fb015 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Promise.h @@ -0,0 +1,102 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include +#include +#include + +#include +#include + +namespace facebook::react { + +template +class AsyncPromise { + public: + AsyncPromise(jsi::Runtime &rt, const std::shared_ptr &jsInvoker) + : state_(std::make_shared()) { + auto constructor = rt.global().getPropertyAsFunction(rt, "Promise"); + + auto promise = constructor.callAsConstructor( + rt, + bridging::toJs( + rt, + // Safe to capture this since this is called synchronously. + [this](AsyncCallback resolve, AsyncCallback reject) { + state_->resolve = std::move(resolve); + state_->reject = std::move(reject); + }, + jsInvoker)); + + auto promiseHolder = std::make_shared(promise.asObject(rt)); + LongLivedObjectCollection::get().add(promiseHolder); + + // The shared state can retain the promise holder weakly now. + state_->promiseHolder = promiseHolder; + } + + void resolve(T value) { + std::lock_guard lock(state_->mutex); + + if (state_->resolve) { + state_->resolve->call(std::move(value)); + state_->resolve.reset(); + state_->reject.reset(); + } + } + + void reject(Error error) { + std::lock_guard lock(state_->mutex); + + if (state_->reject) { + state_->reject->call(std::move(error)); + state_->reject.reset(); + state_->resolve.reset(); + } + } + + jsi::Object get(jsi::Runtime &rt) const { + if (auto holder = state_->promiseHolder.lock()) { + return jsi::Value(rt, holder->promise).asObject(rt); + } else { + throw jsi::JSError(rt, "Failed to get invalidated promise"); + } + } + + private: + struct PromiseHolder : LongLivedObject { + PromiseHolder(jsi::Object p) : promise(std::move(p)) {} + + jsi::Object promise; + }; + + struct SharedState { + ~SharedState() { + if (auto holder = promiseHolder.lock()) { + holder->allowRelease(); + } + } + + std::mutex mutex; + std::weak_ptr promiseHolder; + std::optional> resolve; + std::optional> reject; + }; + + std::shared_ptr state_; +}; + +template +struct Bridging> { + static jsi::Object toJs(jsi::Runtime &rt, const AsyncPromise &promise) { + return promise.get(rt); + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Value.h b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Value.h new file mode 100644 index 0000000..07d9498 --- /dev/null +++ b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/Headers/react/bridging/react/bridging/Value.h @@ -0,0 +1,107 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#include + +#include +#include + +namespace facebook::react { + +template <> +struct Bridging { + static std::nullptr_t fromJs(jsi::Runtime &rt, const jsi::Value &value) { + if (value.isNull() || value.isUndefined()) { + return nullptr; + } else { + throw jsi::JSError(rt, "Cannot convert value to nullptr"); + } + } + + static std::nullptr_t toJs(jsi::Runtime &, std::nullptr_t) { + return nullptr; + } +}; + +template +struct Bridging> { + static std::optional fromJs( + jsi::Runtime &rt, + const jsi::Value &value, + const std::shared_ptr &jsInvoker) { + if (value.isNull() || value.isUndefined()) { + return {}; + } + return bridging::fromJs(rt, value, jsInvoker); + } + + template + static std::optional fromJs( + jsi::Runtime &rt, + const std::optional &value, + const std::shared_ptr &jsInvoker) { + if (value) { + return bridging::fromJs(rt, *value, jsInvoker); + } + return {}; + } + + static jsi::Value toJs( + jsi::Runtime &rt, + const std::optional &value, + const std::shared_ptr &jsInvoker) { + if (value) { + return bridging::toJs(rt, *value, jsInvoker); + } + return jsi::Value::null(); + } +}; + +template +struct Bridging< + std::shared_ptr, + std::enable_if_t>> { + static jsi::Value toJs( + jsi::Runtime &rt, + const std::shared_ptr &ptr, + const std::shared_ptr &jsInvoker) { + if (ptr) { + return bridging::toJs(rt, *ptr, jsInvoker); + } + return jsi::Value::null(); + } +}; + +template +struct Bridging> { + static jsi::Value toJs( + jsi::Runtime &rt, + const std::unique_ptr &ptr, + const std::shared_ptr &jsInvoker) { + if (ptr) { + return bridging::toJs(rt, *ptr, jsInvoker); + } + return jsi::Value::null(); + } +}; + +template +struct Bridging> { + static jsi::Value toJs( + jsi::Runtime &rt, + const std::weak_ptr &weakPtr, + const std::shared_ptr &jsInvoker) { + if (auto ptr = weakPtr.lock()) { + return bridging::toJs(rt, *ptr, jsInvoker); + } + return jsi::Value::null(); + } +}; + +} // namespace facebook::react diff --git a/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/libReact-bridging.a b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/libReact-bridging.a new file mode 100644 index 0000000..6833567 Binary files /dev/null and b/Frameworks/React-bridging.xcframework/ios-arm64_x86_64-simulator/libReact-bridging.a differ diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxModule.h index 64b7db6..a5a89f7 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxNativeModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxNativeModule.h index a10f0ec..e990213 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxNativeModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/CxxNativeModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ErrorUtils.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ErrorUtils.h index 3ab715b..d9e42f7 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ErrorUtils.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ErrorUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/Instance.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/Instance.h index 7cd11f9..12bfd86 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/Instance.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/Instance.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -56,9 +56,6 @@ class RN_EXPORT Instance { std::unique_ptr string, std::string sourceURL, bool loadSynchronously); - static bool isHBCBundle(const char *sourcePath); - static bool isIndexedRAMBundle(const char *sourcePath); - static bool isIndexedRAMBundle(std::unique_ptr *string); void loadRAMBundleFromString( std::unique_ptr script, const std::string &sourceURL); diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBigString.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBigString.h index c4996c4..bd7297e 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBigString.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBigString.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -82,7 +82,7 @@ class RN_EXPORT JSBigBufferString : public JSBigString { m_data[m_size] = '\0'; } - ~JSBigBufferString() { + ~JSBigBufferString() override { delete[] m_data; } @@ -111,7 +111,7 @@ class RN_EXPORT JSBigBufferString : public JSBigString { class RN_EXPORT JSBigFileString : public JSBigString { public: JSBigFileString(int fd, size_t size, off_t offset = 0); - ~JSBigFileString(); + ~JSBigFileString() override; bool isAscii() const override { return true; diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBundleType.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBundleType.h index be39711..a9cdbc8 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBundleType.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSBundleType.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -19,20 +19,18 @@ namespace facebook { namespace react { /* - * ScriptTag - * * Scripts given to the JS Executors to run could be in any of the following * formats. They are tagged so the executor knows how to run them. + * Hermes bytecode bundles (as encoded by hermesc, not metro) are not treated + * in a special way, they will be identified as ScriptTag::String. */ enum struct ScriptTag { String = 0, RAMBundle, - HBCBundle, + MetroHBCBundle, }; /** - * BundleHeader - * * RAM bundles and BC bundles begin with headers. For RAM bundles this is * 4 bytes, for BC bundles this is 12 bytes. This structure holds the first 12 * bytes from a bundle in a way that gives access to that information. @@ -43,27 +41,33 @@ struct FOLLY_PACK_ATTR BundleHeader { std::memset(this, 0, sizeof(BundleHeader)); } - uint32_t magic; - uint32_t reserved_; + union { + struct { + uint32_t value; + uint32_t reserved_; + } magic32; + uint64_t magic64; + }; uint32_t version; }; FOLLY_PACK_POP /** - * parseTypeFromHeader - * * Takes the first 8 bytes of a bundle, and returns a tag describing the * bundle's format. */ RN_EXPORT ScriptTag parseTypeFromHeader(const BundleHeader &header); /** - * stringForScriptTag - * * Convert an `ScriptTag` enum into a string, useful for emitting in errors * and diagnostic messages. */ RN_EXPORT const char *stringForScriptTag(const ScriptTag &tag); +/** + * Check whether a given bundle is hermesc-generated bytecode + */ +RN_EXPORT bool isHermesBytecodeBundle(const BundleHeader &header); + } // namespace react } // namespace facebook diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSExecutor.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSExecutor.h index b3b29d1..18125ed 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSExecutor.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -128,7 +128,8 @@ class RN_EXPORT JSExecutor { */ virtual std::string getDescription() = 0; - virtual void handleMemoryPressure(__unused int pressureLevel) {} + virtual void handleMemoryPressure(__attribute__((unused)) int pressureLevel) { + } virtual void destroy() {} virtual ~JSExecutor() {} diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSIndexedRAMBundle.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSIndexedRAMBundle.h index 3045eb6..a8aa341 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSIndexedRAMBundle.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSIndexedRAMBundle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSModulesUnbundle.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSModulesUnbundle.h index 52103f7..5637675 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSModulesUnbundle.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JSModulesUnbundle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers-inl.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers-inl.h index fa76074..22bd10a 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers-inl.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers-inl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers.h index 25702ba..9c6973e 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/JsArgumentHelpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MessageQueueThread.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MessageQueueThread.h index 9026a0b..3313b1a 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MessageQueueThread.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MessageQueueThread.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MethodCall.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MethodCall.h index 665cd70..f2fad2f 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MethodCall.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/MethodCall.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ModuleRegistry.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ModuleRegistry.h index fba4496..20e3067 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ModuleRegistry.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ModuleRegistry.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeModule.h index 2441953..a088f5b 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeToJsBridge.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeToJsBridge.h index f9548c5..b8ba6a6 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeToJsBridge.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/NativeToJsBridge.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RAMBundleRegistry.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RAMBundleRegistry.h index 9dcb210..d310ef1 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RAMBundleRegistry.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RAMBundleRegistry.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactMarker.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactMarker.h index 875f7b2..21d8c2a 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactMarker.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactMarker.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -33,25 +33,24 @@ enum ReactMarkerId { #ifdef __APPLE__ using LogTaggedMarker = + std::function; // Bridge only +using LogTaggedMarkerBridgeless = std::function; -using LogTaggedMarkerWithInstanceKey = std::function< - void(const ReactMarkerId, const char *tag, const int instanceKey)>; #else -typedef void (*LogTaggedMarker)(const ReactMarkerId, const char *tag); -typedef void (*LogTaggedMarkerWithInstanceKey)( - const ReactMarkerId, - const char *tag, - const int instanceKey); +typedef void ( + *LogTaggedMarker)(const ReactMarkerId, const char *tag); // Bridge only +typedef void (*LogTaggedMarkerBridgeless)(const ReactMarkerId, const char *tag); #endif #ifndef RN_EXPORT #define RN_EXPORT __attribute__((visibility("default"))) #endif -extern RN_EXPORT LogTaggedMarker logTaggedMarker; -extern RN_EXPORT LogTaggedMarkerWithInstanceKey logTaggedMarkerWithInstanceKey; +extern RN_EXPORT LogTaggedMarker logTaggedMarker; // Bridge only +extern RN_EXPORT LogTaggedMarker logTaggedMarkerBridgeless; -extern RN_EXPORT void logMarker(const ReactMarkerId markerId); +extern RN_EXPORT void logMarker(const ReactMarkerId markerId); // Bridge only +extern RN_EXPORT void logMarkerBridgeless(const ReactMarkerId markerId); } // namespace ReactMarker } // namespace react diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactNativeVersion.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactNativeVersion.h index a99f81f..37bb959 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactNativeVersion.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/ReactNativeVersion.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -16,8 +16,8 @@ namespace facebook::react { constexpr struct { int32_t Major = 0; - int32_t Minor = 67; - int32_t Patch = 5; + int32_t Minor = 70; + int32_t Patch = 15; std::string_view Prerelease = ""; } ReactNativeVersion; diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RecoverableError.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RecoverableError.h index 362fea2..4ea9fa9 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RecoverableError.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/RecoverableError.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SharedProxyCxxModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SharedProxyCxxModule.h index 97d67dd..cb607d3 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SharedProxyCxxModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SharedProxyCxxModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SystraceSection.h b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SystraceSection.h index 3a59f0e..3527f09 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SystraceSection.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64/Headers/cxxreact/SystraceSection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64/libReact-cxxreact.a b/Frameworks/React-cxxreact.xcframework/ios-arm64/libReact-cxxreact.a index 6d53c86..f3d1a17 100644 Binary files a/Frameworks/React-cxxreact.xcframework/ios-arm64/libReact-cxxreact.a and b/Frameworks/React-cxxreact.xcframework/ios-arm64/libReact-cxxreact.a differ diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxModule.h index 64b7db6..a5a89f7 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxNativeModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxNativeModule.h index a10f0ec..e990213 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxNativeModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/CxxNativeModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ErrorUtils.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ErrorUtils.h index 3ab715b..d9e42f7 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ErrorUtils.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ErrorUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/Instance.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/Instance.h index 7cd11f9..12bfd86 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/Instance.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/Instance.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -56,9 +56,6 @@ class RN_EXPORT Instance { std::unique_ptr string, std::string sourceURL, bool loadSynchronously); - static bool isHBCBundle(const char *sourcePath); - static bool isIndexedRAMBundle(const char *sourcePath); - static bool isIndexedRAMBundle(std::unique_ptr *string); void loadRAMBundleFromString( std::unique_ptr script, const std::string &sourceURL); diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBigString.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBigString.h index c4996c4..bd7297e 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBigString.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBigString.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -82,7 +82,7 @@ class RN_EXPORT JSBigBufferString : public JSBigString { m_data[m_size] = '\0'; } - ~JSBigBufferString() { + ~JSBigBufferString() override { delete[] m_data; } @@ -111,7 +111,7 @@ class RN_EXPORT JSBigBufferString : public JSBigString { class RN_EXPORT JSBigFileString : public JSBigString { public: JSBigFileString(int fd, size_t size, off_t offset = 0); - ~JSBigFileString(); + ~JSBigFileString() override; bool isAscii() const override { return true; diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBundleType.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBundleType.h index be39711..a9cdbc8 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBundleType.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSBundleType.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -19,20 +19,18 @@ namespace facebook { namespace react { /* - * ScriptTag - * * Scripts given to the JS Executors to run could be in any of the following * formats. They are tagged so the executor knows how to run them. + * Hermes bytecode bundles (as encoded by hermesc, not metro) are not treated + * in a special way, they will be identified as ScriptTag::String. */ enum struct ScriptTag { String = 0, RAMBundle, - HBCBundle, + MetroHBCBundle, }; /** - * BundleHeader - * * RAM bundles and BC bundles begin with headers. For RAM bundles this is * 4 bytes, for BC bundles this is 12 bytes. This structure holds the first 12 * bytes from a bundle in a way that gives access to that information. @@ -43,27 +41,33 @@ struct FOLLY_PACK_ATTR BundleHeader { std::memset(this, 0, sizeof(BundleHeader)); } - uint32_t magic; - uint32_t reserved_; + union { + struct { + uint32_t value; + uint32_t reserved_; + } magic32; + uint64_t magic64; + }; uint32_t version; }; FOLLY_PACK_POP /** - * parseTypeFromHeader - * * Takes the first 8 bytes of a bundle, and returns a tag describing the * bundle's format. */ RN_EXPORT ScriptTag parseTypeFromHeader(const BundleHeader &header); /** - * stringForScriptTag - * * Convert an `ScriptTag` enum into a string, useful for emitting in errors * and diagnostic messages. */ RN_EXPORT const char *stringForScriptTag(const ScriptTag &tag); +/** + * Check whether a given bundle is hermesc-generated bytecode + */ +RN_EXPORT bool isHermesBytecodeBundle(const BundleHeader &header); + } // namespace react } // namespace facebook diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSExecutor.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSExecutor.h index b3b29d1..18125ed 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSExecutor.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -128,7 +128,8 @@ class RN_EXPORT JSExecutor { */ virtual std::string getDescription() = 0; - virtual void handleMemoryPressure(__unused int pressureLevel) {} + virtual void handleMemoryPressure(__attribute__((unused)) int pressureLevel) { + } virtual void destroy() {} virtual ~JSExecutor() {} diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSIndexedRAMBundle.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSIndexedRAMBundle.h index 3045eb6..a8aa341 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSIndexedRAMBundle.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSIndexedRAMBundle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSModulesUnbundle.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSModulesUnbundle.h index 52103f7..5637675 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSModulesUnbundle.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JSModulesUnbundle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers-inl.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers-inl.h index fa76074..22bd10a 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers-inl.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers-inl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers.h index 25702ba..9c6973e 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/JsArgumentHelpers.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MessageQueueThread.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MessageQueueThread.h index 9026a0b..3313b1a 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MessageQueueThread.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MessageQueueThread.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MethodCall.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MethodCall.h index 665cd70..f2fad2f 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MethodCall.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/MethodCall.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ModuleRegistry.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ModuleRegistry.h index fba4496..20e3067 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ModuleRegistry.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ModuleRegistry.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeModule.h index 2441953..a088f5b 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeToJsBridge.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeToJsBridge.h index f9548c5..b8ba6a6 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeToJsBridge.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/NativeToJsBridge.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RAMBundleRegistry.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RAMBundleRegistry.h index 9dcb210..d310ef1 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RAMBundleRegistry.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RAMBundleRegistry.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactMarker.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactMarker.h index 875f7b2..21d8c2a 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactMarker.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactMarker.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -33,25 +33,24 @@ enum ReactMarkerId { #ifdef __APPLE__ using LogTaggedMarker = + std::function; // Bridge only +using LogTaggedMarkerBridgeless = std::function; -using LogTaggedMarkerWithInstanceKey = std::function< - void(const ReactMarkerId, const char *tag, const int instanceKey)>; #else -typedef void (*LogTaggedMarker)(const ReactMarkerId, const char *tag); -typedef void (*LogTaggedMarkerWithInstanceKey)( - const ReactMarkerId, - const char *tag, - const int instanceKey); +typedef void ( + *LogTaggedMarker)(const ReactMarkerId, const char *tag); // Bridge only +typedef void (*LogTaggedMarkerBridgeless)(const ReactMarkerId, const char *tag); #endif #ifndef RN_EXPORT #define RN_EXPORT __attribute__((visibility("default"))) #endif -extern RN_EXPORT LogTaggedMarker logTaggedMarker; -extern RN_EXPORT LogTaggedMarkerWithInstanceKey logTaggedMarkerWithInstanceKey; +extern RN_EXPORT LogTaggedMarker logTaggedMarker; // Bridge only +extern RN_EXPORT LogTaggedMarker logTaggedMarkerBridgeless; -extern RN_EXPORT void logMarker(const ReactMarkerId markerId); +extern RN_EXPORT void logMarker(const ReactMarkerId markerId); // Bridge only +extern RN_EXPORT void logMarkerBridgeless(const ReactMarkerId markerId); } // namespace ReactMarker } // namespace react diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactNativeVersion.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactNativeVersion.h index a99f81f..37bb959 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactNativeVersion.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/ReactNativeVersion.h @@ -1,5 +1,5 @@ /** - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -16,8 +16,8 @@ namespace facebook::react { constexpr struct { int32_t Major = 0; - int32_t Minor = 67; - int32_t Patch = 5; + int32_t Minor = 70; + int32_t Patch = 15; std::string_view Prerelease = ""; } ReactNativeVersion; diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RecoverableError.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RecoverableError.h index 362fea2..4ea9fa9 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RecoverableError.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/RecoverableError.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SharedProxyCxxModule.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SharedProxyCxxModule.h index 97d67dd..cb607d3 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SharedProxyCxxModule.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SharedProxyCxxModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SystraceSection.h b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SystraceSection.h index 3a59f0e..3527f09 100644 --- a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SystraceSection.h +++ b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/Headers/cxxreact/SystraceSection.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/libReact-cxxreact.a b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/libReact-cxxreact.a index dcd2f5d..1347163 100644 Binary files a/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/libReact-cxxreact.a and b/Frameworks/React-cxxreact.xcframework/ios-arm64_x86_64-simulator/libReact-cxxreact.a differ diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSCRuntime.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSCRuntime.h index 5455423..1d6b225 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSCRuntime.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSCRuntime.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSIDynamic.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSIDynamic.h index 41f9d9f..110dd13 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSIDynamic.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/JSIDynamic.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/decorator.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/decorator.h index be6f4f5..6f239c0 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/decorator.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/decorator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -154,6 +154,9 @@ class RuntimeDecorator : public Base, private jsi::Instrumentation { Runtime::PointerValue* cloneSymbol(const Runtime::PointerValue* pv) override { return plain_.cloneSymbol(pv); }; + Runtime::PointerValue* cloneBigInt(const Runtime::PointerValue* pv) override { + return plain_.cloneBigInt(pv); + }; Runtime::PointerValue* cloneString(const Runtime::PointerValue* pv) override { return plain_.cloneString(pv); }; @@ -176,6 +179,9 @@ class RuntimeDecorator : public Base, private jsi::Instrumentation { PropNameID createPropNameIDFromString(const String& str) override { return plain_.createPropNameIDFromString(str); }; + PropNameID createPropNameIDFromSymbol(const Symbol& sym) override { + return plain_.createPropNameIDFromSymbol(sym); + }; std::string utf8(const PropNameID& id) override { return plain_.utf8(id); }; @@ -312,6 +318,9 @@ class RuntimeDecorator : public Base, private jsi::Instrumentation { bool strictEquals(const Symbol& a, const Symbol& b) const override { return plain_.strictEquals(a, b); }; + bool strictEquals(const BigInt& a, const BigInt& b) const override { + return plain_.strictEquals(a, b); + }; bool strictEquals(const String& a, const String& b) const override { return plain_.strictEquals(a, b); }; diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/instrumentation.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/instrumentation.h index a337a7a..e841af0 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/instrumentation.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/instrumentation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi-inl.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi-inl.h index 63d4a2f..3823e8b 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi-inl.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi-inl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -56,7 +56,12 @@ inline PropNameID&& toPropNameID(Runtime&, PropNameID&& name) { return std::move(name); } -void throwJSError(Runtime&, const char* msg); +/// Helper to throw while still compiling with exceptions turned off. +template +[[noreturn]] inline void throwOrDie(Args&&... args) { + std::rethrow_exception( + std::make_exception_ptr(E{std::forward(args)...})); +} } // namespace detail @@ -184,7 +189,8 @@ inline std::shared_ptr Object::getHostObject(Runtime& runtime) const { template inline std::shared_ptr Object::asHostObject(Runtime& runtime) const { if (!isHostObject(runtime)) { - detail::throwJSError(runtime, "Object is not a HostObject of desired type"); + detail::throwOrDie( + "Object is not a HostObject of desired type"); } return std::static_pointer_cast(runtime.getHostObject(*this)); } diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi.h index ae64498..7c1479f 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -68,6 +68,7 @@ class Runtime; class Pointer; class PropNameID; class Symbol; +class BigInt; class String; class Object; class WeakObject; @@ -200,13 +201,13 @@ class JSI_EXPORT Runtime { /// Hosts may call this function again to resume the draining if it was /// suspended due to either exceptions or the \p maxMicrotasksHint bound. /// E.g. a host may repetitively invoke this function until the queue is - /// drained to implement the "microtask checkpint" defined in WHATWG HTML + /// drained to implement the "microtask checkpoint" defined in WHATWG HTML /// event loop: https://html.spec.whatwg.org/C#perform-a-microtask-checkpoint. /// /// Note that error propagation is only a concern if a host needs to implement - /// `queueMicrotask`, a recent API that allows enqueueing aribitary functions + /// `queueMicrotask`, a recent API that allows enqueueing arbitrary functions /// (hence may throw) as microtasks. Exceptions from ECMA-262 Promise Jobs are - /// handled internally to VMs and are never propagrated to hosts. + /// handled internally to VMs and are never propagated to hosts. /// /// This API offers some queue management to hosts at its best effort due to /// different behaviors and limitations imposed by different VMs and APIs. By @@ -240,6 +241,7 @@ class JSI_EXPORT Runtime { friend class Pointer; friend class PropNameID; friend class Symbol; + friend class BigInt; friend class String; friend class Object; friend class WeakObject; @@ -263,6 +265,7 @@ class JSI_EXPORT Runtime { }; virtual PointerValue* cloneSymbol(const Runtime::PointerValue* pv) = 0; + virtual PointerValue* cloneBigInt(const Runtime::PointerValue* pv) = 0; virtual PointerValue* cloneString(const Runtime::PointerValue* pv) = 0; virtual PointerValue* cloneObject(const Runtime::PointerValue* pv) = 0; virtual PointerValue* clonePropNameID(const Runtime::PointerValue* pv) = 0; @@ -274,6 +277,7 @@ class JSI_EXPORT Runtime { const uint8_t* utf8, size_t length) = 0; virtual PropNameID createPropNameIDFromString(const String& str) = 0; + virtual PropNameID createPropNameIDFromSymbol(const Symbol& sym) = 0; virtual std::string utf8(const PropNameID&) = 0; virtual bool compare(const PropNameID&, const PropNameID&) = 0; @@ -336,6 +340,7 @@ class JSI_EXPORT Runtime { virtual void popScope(ScopeState*); virtual bool strictEquals(const Symbol& a, const Symbol& b) const = 0; + virtual bool strictEquals(const BigInt& a, const BigInt& b) const = 0; virtual bool strictEquals(const String& a, const String& b) const = 0; virtual bool strictEquals(const Object& a, const Object& b) const = 0; @@ -406,6 +411,7 @@ class JSI_EXPORT PropNameID : public Pointer { } /// Create a PropNameID from utf8 values. The data is copied. + /// Results are undefined if \p utf8 contains invalid code points. static PropNameID forUtf8(Runtime& runtime, const uint8_t* utf8, size_t length) { return runtime.createPropNameIDFromUtf8(utf8, length); @@ -413,6 +419,7 @@ class JSI_EXPORT PropNameID : public Pointer { /// Create a PropNameID from utf8-encoded octets stored in a /// std::string. The string data is transformed and copied. + /// Results are undefined if \p utf8 contains invalid code points. static PropNameID forUtf8(Runtime& runtime, const std::string& utf8) { return runtime.createPropNameIDFromUtf8( reinterpret_cast(utf8.data()), utf8.size()); @@ -423,6 +430,11 @@ class JSI_EXPORT PropNameID : public Pointer { return runtime.createPropNameIDFromString(str); } + /// Create a PropNameID from a JS symbol. + static PropNameID forSymbol(Runtime& runtime, const jsi::Symbol& sym) { + return runtime.createPropNameIDFromSymbol(sym); + } + // Creates a vector of PropNameIDs constructed from given arguments. template static std::vector names(Runtime& runtime, Args&&... args); @@ -474,6 +486,18 @@ class JSI_EXPORT Symbol : public Pointer { friend class Value; }; +/// Represents a JS BigInt. Movable, not copyable. +class JSI_EXPORT BigInt : public Pointer { + public: + using Pointer::Pointer; + + BigInt(BigInt&& other) = default; + BigInt& operator=(BigInt&& other) = default; + + friend class Runtime; + friend class Value; +}; + /// Represents a JS String. Movable, not copyable. class JSI_EXPORT String : public Pointer { public: @@ -502,14 +526,16 @@ class JSI_EXPORT String : public Pointer { } /// Create a JS string from utf8-encoded octets. The string data is - /// transformed and copied. + /// transformed and copied. Results are undefined if \p utf8 contains invalid + /// code points. static String createFromUtf8(Runtime& runtime, const uint8_t* utf8, size_t length) { return runtime.createStringFromUtf8(utf8, length); } /// Create a JS string from utf8-encoded octets stored in a - /// std::string. The string data is transformed and copied. + /// std::string. The string data is transformed and copied. Results are + /// undefined if \p utf8 contains invalid code points. static String createFromUtf8(Runtime& runtime, const std::string& utf8) { return runtime.createStringFromUtf8( reinterpret_cast(utf8.data()), utf8.length()); @@ -680,7 +706,7 @@ class JSI_EXPORT Object : public Pointer { std::shared_ptr getHostObject(Runtime& runtime) const; /// \return a shared_ptr which refers to the same underlying - /// \c HostObject that was used to crete this object. If \c isHostObject + /// \c HostObject that was used to create this object. If \c isHostObject /// is false, this will throw. template std::shared_ptr asHostObject(Runtime& runtime) const; @@ -963,6 +989,7 @@ class JSI_EXPORT Value { /* implicit */ Value(T&& other) : Value(kindOf(other)) { static_assert( std::is_base_of::value || + std::is_base_of::value || std::is_base_of::value || std::is_base_of::value, "Value cannot be implicitly move-constructed from this type"); @@ -982,7 +1009,12 @@ class JSI_EXPORT Value { /// Copies a Symbol lvalue into a new JS value. Value(Runtime& runtime, const Symbol& sym) : Value(SymbolKind) { - new (&data_.pointer) String(runtime.cloneSymbol(sym.ptr_)); + new (&data_.pointer) Symbol(runtime.cloneSymbol(sym.ptr_)); + } + + /// Copies a BigInt lvalue into a new JS value. + Value(Runtime& runtime, const BigInt& bigint) : Value(BigIntKind) { + new (&data_.pointer) BigInt(runtime.cloneBigInt(bigint.ptr_)); } /// Copies a String lvalue into a new JS value. @@ -1054,6 +1086,10 @@ class JSI_EXPORT Value { return kind_ == StringKind; } + bool isBigInt() const { + return kind_ == BigIntKind; + } + bool isSymbol() const { return kind_ == SymbolKind; } @@ -1068,6 +1104,10 @@ class JSI_EXPORT Value { return data_.boolean; } + /// \return the boolean value, or throws JSIException if not a + /// boolean. + bool asBool() const; + /// \return the number value, or asserts if not a number. double getNumber() const { assert(isNumber()); @@ -1098,6 +1138,26 @@ class JSI_EXPORT Value { Symbol asSymbol(Runtime& runtime) const&; Symbol asSymbol(Runtime& runtime) &&; + /// \return the BigInt value, or asserts if not a bigint. + BigInt getBigInt(Runtime& runtime) const& { + assert(isBigInt()); + return BigInt(runtime.cloneBigInt(data_.pointer.ptr_)); + } + + /// \return the BigInt value, or asserts if not a bigint. + /// Can be used on rvalue references to avoid cloning more bigints. + BigInt getBigInt(Runtime&) && { + assert(isBigInt()); + auto ptr = data_.pointer.ptr_; + data_.pointer.ptr_ = nullptr; + return static_cast(ptr); + } + + /// \return the BigInt value, or throws JSIException if not a + /// bigint + BigInt asBigInt(Runtime& runtime) const&; + BigInt asBigInt(Runtime& runtime) &&; + /// \return the String value, or asserts if not a string. String getString(Runtime& runtime) const& { assert(isString()); @@ -1150,6 +1210,7 @@ class JSI_EXPORT Value { BooleanKind, NumberKind, SymbolKind, + BigIntKind, StringKind, ObjectKind, PointerKind = SymbolKind, @@ -1176,6 +1237,9 @@ class JSI_EXPORT Value { constexpr static ValueKind kindOf(const Symbol&) { return SymbolKind; } + constexpr static ValueKind kindOf(const BigInt&) { + return BigIntKind; + } constexpr static ValueKind kindOf(const String&) { return StringKind; } @@ -1238,11 +1302,13 @@ class JSI_EXPORT JSIException : public std::exception { JSIException(std::string what) : what_(std::move(what)){}; public: + JSIException(const JSIException&) = default; + virtual const char* what() const noexcept override { return what_.c_str(); } - virtual ~JSIException(); + virtual ~JSIException() override; protected: std::string what_; @@ -1254,6 +1320,8 @@ class JSI_EXPORT JSINativeException : public JSIException { public: JSINativeException(std::string what) : JSIException(std::move(what)) {} + JSINativeException(const JSINativeException&) = default; + virtual ~JSINativeException(); }; @@ -1283,6 +1351,8 @@ class JSI_EXPORT JSError : public JSIException { /// but necessary to avoid ambiguity with the above. JSError(std::string what, Runtime& rt, Value&& value); + JSError(const JSError&) = default; + virtual ~JSError(); const std::string& getStack() const { diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsilib.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsilib.h index d99b66d..c94de89 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsilib.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/jsilib.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -15,7 +15,7 @@ namespace jsi { class FileBuffer : public Buffer { public: FileBuffer(const std::string& path); - ~FileBuffer(); + ~FileBuffer() override; size_t size() const override { return size_; diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/threadsafe.h b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/threadsafe.h index eddbce4..cb10a33 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/threadsafe.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64/Headers/jsi/threadsafe.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64/libReact-jsi.a b/Frameworks/React-jsi.xcframework/ios-arm64/libReact-jsi.a index 484587d..33842e8 100644 Binary files a/Frameworks/React-jsi.xcframework/ios-arm64/libReact-jsi.a and b/Frameworks/React-jsi.xcframework/ios-arm64/libReact-jsi.a differ diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSCRuntime.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSCRuntime.h index 5455423..1d6b225 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSCRuntime.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSCRuntime.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSIDynamic.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSIDynamic.h index 41f9d9f..110dd13 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSIDynamic.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/JSIDynamic.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/decorator.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/decorator.h index be6f4f5..6f239c0 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/decorator.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/decorator.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -154,6 +154,9 @@ class RuntimeDecorator : public Base, private jsi::Instrumentation { Runtime::PointerValue* cloneSymbol(const Runtime::PointerValue* pv) override { return plain_.cloneSymbol(pv); }; + Runtime::PointerValue* cloneBigInt(const Runtime::PointerValue* pv) override { + return plain_.cloneBigInt(pv); + }; Runtime::PointerValue* cloneString(const Runtime::PointerValue* pv) override { return plain_.cloneString(pv); }; @@ -176,6 +179,9 @@ class RuntimeDecorator : public Base, private jsi::Instrumentation { PropNameID createPropNameIDFromString(const String& str) override { return plain_.createPropNameIDFromString(str); }; + PropNameID createPropNameIDFromSymbol(const Symbol& sym) override { + return plain_.createPropNameIDFromSymbol(sym); + }; std::string utf8(const PropNameID& id) override { return plain_.utf8(id); }; @@ -312,6 +318,9 @@ class RuntimeDecorator : public Base, private jsi::Instrumentation { bool strictEquals(const Symbol& a, const Symbol& b) const override { return plain_.strictEquals(a, b); }; + bool strictEquals(const BigInt& a, const BigInt& b) const override { + return plain_.strictEquals(a, b); + }; bool strictEquals(const String& a, const String& b) const override { return plain_.strictEquals(a, b); }; diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/instrumentation.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/instrumentation.h index a337a7a..e841af0 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/instrumentation.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/instrumentation.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi-inl.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi-inl.h index 63d4a2f..3823e8b 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi-inl.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi-inl.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -56,7 +56,12 @@ inline PropNameID&& toPropNameID(Runtime&, PropNameID&& name) { return std::move(name); } -void throwJSError(Runtime&, const char* msg); +/// Helper to throw while still compiling with exceptions turned off. +template +[[noreturn]] inline void throwOrDie(Args&&... args) { + std::rethrow_exception( + std::make_exception_ptr(E{std::forward(args)...})); +} } // namespace detail @@ -184,7 +189,8 @@ inline std::shared_ptr Object::getHostObject(Runtime& runtime) const { template inline std::shared_ptr Object::asHostObject(Runtime& runtime) const { if (!isHostObject(runtime)) { - detail::throwJSError(runtime, "Object is not a HostObject of desired type"); + detail::throwOrDie( + "Object is not a HostObject of desired type"); } return std::static_pointer_cast(runtime.getHostObject(*this)); } diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi.h index ae64498..7c1479f 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsi.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -68,6 +68,7 @@ class Runtime; class Pointer; class PropNameID; class Symbol; +class BigInt; class String; class Object; class WeakObject; @@ -200,13 +201,13 @@ class JSI_EXPORT Runtime { /// Hosts may call this function again to resume the draining if it was /// suspended due to either exceptions or the \p maxMicrotasksHint bound. /// E.g. a host may repetitively invoke this function until the queue is - /// drained to implement the "microtask checkpint" defined in WHATWG HTML + /// drained to implement the "microtask checkpoint" defined in WHATWG HTML /// event loop: https://html.spec.whatwg.org/C#perform-a-microtask-checkpoint. /// /// Note that error propagation is only a concern if a host needs to implement - /// `queueMicrotask`, a recent API that allows enqueueing aribitary functions + /// `queueMicrotask`, a recent API that allows enqueueing arbitrary functions /// (hence may throw) as microtasks. Exceptions from ECMA-262 Promise Jobs are - /// handled internally to VMs and are never propagrated to hosts. + /// handled internally to VMs and are never propagated to hosts. /// /// This API offers some queue management to hosts at its best effort due to /// different behaviors and limitations imposed by different VMs and APIs. By @@ -240,6 +241,7 @@ class JSI_EXPORT Runtime { friend class Pointer; friend class PropNameID; friend class Symbol; + friend class BigInt; friend class String; friend class Object; friend class WeakObject; @@ -263,6 +265,7 @@ class JSI_EXPORT Runtime { }; virtual PointerValue* cloneSymbol(const Runtime::PointerValue* pv) = 0; + virtual PointerValue* cloneBigInt(const Runtime::PointerValue* pv) = 0; virtual PointerValue* cloneString(const Runtime::PointerValue* pv) = 0; virtual PointerValue* cloneObject(const Runtime::PointerValue* pv) = 0; virtual PointerValue* clonePropNameID(const Runtime::PointerValue* pv) = 0; @@ -274,6 +277,7 @@ class JSI_EXPORT Runtime { const uint8_t* utf8, size_t length) = 0; virtual PropNameID createPropNameIDFromString(const String& str) = 0; + virtual PropNameID createPropNameIDFromSymbol(const Symbol& sym) = 0; virtual std::string utf8(const PropNameID&) = 0; virtual bool compare(const PropNameID&, const PropNameID&) = 0; @@ -336,6 +340,7 @@ class JSI_EXPORT Runtime { virtual void popScope(ScopeState*); virtual bool strictEquals(const Symbol& a, const Symbol& b) const = 0; + virtual bool strictEquals(const BigInt& a, const BigInt& b) const = 0; virtual bool strictEquals(const String& a, const String& b) const = 0; virtual bool strictEquals(const Object& a, const Object& b) const = 0; @@ -406,6 +411,7 @@ class JSI_EXPORT PropNameID : public Pointer { } /// Create a PropNameID from utf8 values. The data is copied. + /// Results are undefined if \p utf8 contains invalid code points. static PropNameID forUtf8(Runtime& runtime, const uint8_t* utf8, size_t length) { return runtime.createPropNameIDFromUtf8(utf8, length); @@ -413,6 +419,7 @@ class JSI_EXPORT PropNameID : public Pointer { /// Create a PropNameID from utf8-encoded octets stored in a /// std::string. The string data is transformed and copied. + /// Results are undefined if \p utf8 contains invalid code points. static PropNameID forUtf8(Runtime& runtime, const std::string& utf8) { return runtime.createPropNameIDFromUtf8( reinterpret_cast(utf8.data()), utf8.size()); @@ -423,6 +430,11 @@ class JSI_EXPORT PropNameID : public Pointer { return runtime.createPropNameIDFromString(str); } + /// Create a PropNameID from a JS symbol. + static PropNameID forSymbol(Runtime& runtime, const jsi::Symbol& sym) { + return runtime.createPropNameIDFromSymbol(sym); + } + // Creates a vector of PropNameIDs constructed from given arguments. template static std::vector names(Runtime& runtime, Args&&... args); @@ -474,6 +486,18 @@ class JSI_EXPORT Symbol : public Pointer { friend class Value; }; +/// Represents a JS BigInt. Movable, not copyable. +class JSI_EXPORT BigInt : public Pointer { + public: + using Pointer::Pointer; + + BigInt(BigInt&& other) = default; + BigInt& operator=(BigInt&& other) = default; + + friend class Runtime; + friend class Value; +}; + /// Represents a JS String. Movable, not copyable. class JSI_EXPORT String : public Pointer { public: @@ -502,14 +526,16 @@ class JSI_EXPORT String : public Pointer { } /// Create a JS string from utf8-encoded octets. The string data is - /// transformed and copied. + /// transformed and copied. Results are undefined if \p utf8 contains invalid + /// code points. static String createFromUtf8(Runtime& runtime, const uint8_t* utf8, size_t length) { return runtime.createStringFromUtf8(utf8, length); } /// Create a JS string from utf8-encoded octets stored in a - /// std::string. The string data is transformed and copied. + /// std::string. The string data is transformed and copied. Results are + /// undefined if \p utf8 contains invalid code points. static String createFromUtf8(Runtime& runtime, const std::string& utf8) { return runtime.createStringFromUtf8( reinterpret_cast(utf8.data()), utf8.length()); @@ -680,7 +706,7 @@ class JSI_EXPORT Object : public Pointer { std::shared_ptr getHostObject(Runtime& runtime) const; /// \return a shared_ptr which refers to the same underlying - /// \c HostObject that was used to crete this object. If \c isHostObject + /// \c HostObject that was used to create this object. If \c isHostObject /// is false, this will throw. template std::shared_ptr asHostObject(Runtime& runtime) const; @@ -963,6 +989,7 @@ class JSI_EXPORT Value { /* implicit */ Value(T&& other) : Value(kindOf(other)) { static_assert( std::is_base_of::value || + std::is_base_of::value || std::is_base_of::value || std::is_base_of::value, "Value cannot be implicitly move-constructed from this type"); @@ -982,7 +1009,12 @@ class JSI_EXPORT Value { /// Copies a Symbol lvalue into a new JS value. Value(Runtime& runtime, const Symbol& sym) : Value(SymbolKind) { - new (&data_.pointer) String(runtime.cloneSymbol(sym.ptr_)); + new (&data_.pointer) Symbol(runtime.cloneSymbol(sym.ptr_)); + } + + /// Copies a BigInt lvalue into a new JS value. + Value(Runtime& runtime, const BigInt& bigint) : Value(BigIntKind) { + new (&data_.pointer) BigInt(runtime.cloneBigInt(bigint.ptr_)); } /// Copies a String lvalue into a new JS value. @@ -1054,6 +1086,10 @@ class JSI_EXPORT Value { return kind_ == StringKind; } + bool isBigInt() const { + return kind_ == BigIntKind; + } + bool isSymbol() const { return kind_ == SymbolKind; } @@ -1068,6 +1104,10 @@ class JSI_EXPORT Value { return data_.boolean; } + /// \return the boolean value, or throws JSIException if not a + /// boolean. + bool asBool() const; + /// \return the number value, or asserts if not a number. double getNumber() const { assert(isNumber()); @@ -1098,6 +1138,26 @@ class JSI_EXPORT Value { Symbol asSymbol(Runtime& runtime) const&; Symbol asSymbol(Runtime& runtime) &&; + /// \return the BigInt value, or asserts if not a bigint. + BigInt getBigInt(Runtime& runtime) const& { + assert(isBigInt()); + return BigInt(runtime.cloneBigInt(data_.pointer.ptr_)); + } + + /// \return the BigInt value, or asserts if not a bigint. + /// Can be used on rvalue references to avoid cloning more bigints. + BigInt getBigInt(Runtime&) && { + assert(isBigInt()); + auto ptr = data_.pointer.ptr_; + data_.pointer.ptr_ = nullptr; + return static_cast(ptr); + } + + /// \return the BigInt value, or throws JSIException if not a + /// bigint + BigInt asBigInt(Runtime& runtime) const&; + BigInt asBigInt(Runtime& runtime) &&; + /// \return the String value, or asserts if not a string. String getString(Runtime& runtime) const& { assert(isString()); @@ -1150,6 +1210,7 @@ class JSI_EXPORT Value { BooleanKind, NumberKind, SymbolKind, + BigIntKind, StringKind, ObjectKind, PointerKind = SymbolKind, @@ -1176,6 +1237,9 @@ class JSI_EXPORT Value { constexpr static ValueKind kindOf(const Symbol&) { return SymbolKind; } + constexpr static ValueKind kindOf(const BigInt&) { + return BigIntKind; + } constexpr static ValueKind kindOf(const String&) { return StringKind; } @@ -1238,11 +1302,13 @@ class JSI_EXPORT JSIException : public std::exception { JSIException(std::string what) : what_(std::move(what)){}; public: + JSIException(const JSIException&) = default; + virtual const char* what() const noexcept override { return what_.c_str(); } - virtual ~JSIException(); + virtual ~JSIException() override; protected: std::string what_; @@ -1254,6 +1320,8 @@ class JSI_EXPORT JSINativeException : public JSIException { public: JSINativeException(std::string what) : JSIException(std::move(what)) {} + JSINativeException(const JSINativeException&) = default; + virtual ~JSINativeException(); }; @@ -1283,6 +1351,8 @@ class JSI_EXPORT JSError : public JSIException { /// but necessary to avoid ambiguity with the above. JSError(std::string what, Runtime& rt, Value&& value); + JSError(const JSError&) = default; + virtual ~JSError(); const std::string& getStack() const { diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsilib.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsilib.h index d99b66d..c94de89 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsilib.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/jsilib.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -15,7 +15,7 @@ namespace jsi { class FileBuffer : public Buffer { public: FileBuffer(const std::string& path); - ~FileBuffer(); + ~FileBuffer() override; size_t size() const override { return size_; diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/threadsafe.h b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/threadsafe.h index eddbce4..cb10a33 100644 --- a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/threadsafe.h +++ b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/Headers/jsi/threadsafe.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/libReact-jsi.a b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/libReact-jsi.a index 43a22b8..874c77d 100644 Binary files a/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/libReact-jsi.a and b/Frameworks/React-jsi.xcframework/ios-arm64_x86_64-simulator/libReact-jsi.a differ diff --git a/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSIExecutor.h b/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSIExecutor.h index 615172e..f06d0d3 100644 --- a/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSIExecutor.h +++ b/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSIExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSINativeModules.h b/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSINativeModules.h index a1dff88..c6aaacf 100644 --- a/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSINativeModules.h +++ b/Frameworks/React-jsiexecutor.xcframework/ios-arm64/Headers/jsireact/JSINativeModules.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsiexecutor.xcframework/ios-arm64/libReact-jsiexecutor.a b/Frameworks/React-jsiexecutor.xcframework/ios-arm64/libReact-jsiexecutor.a index 11d9c2c..827c0ac 100644 Binary files a/Frameworks/React-jsiexecutor.xcframework/ios-arm64/libReact-jsiexecutor.a and b/Frameworks/React-jsiexecutor.xcframework/ios-arm64/libReact-jsiexecutor.a differ diff --git a/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSIExecutor.h b/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSIExecutor.h index 615172e..f06d0d3 100644 --- a/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSIExecutor.h +++ b/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSIExecutor.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSINativeModules.h b/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSINativeModules.h index a1dff88..c6aaacf 100644 --- a/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSINativeModules.h +++ b/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/Headers/jsireact/JSINativeModules.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/libReact-jsiexecutor.a b/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/libReact-jsiexecutor.a index dc01eb9..fdf6b0e 100644 Binary files a/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/libReact-jsiexecutor.a and b/Frameworks/React-jsiexecutor.xcframework/ios-arm64_x86_64-simulator/libReact-jsiexecutor.a differ diff --git a/Frameworks/React-jsinspector.xcframework/ios-arm64/Headers/jsinspector/InspectorInterfaces.h b/Frameworks/React-jsinspector.xcframework/ios-arm64/Headers/jsinspector/InspectorInterfaces.h index 345434b..77fd6e1 100644 --- a/Frameworks/React-jsinspector.xcframework/ios-arm64/Headers/jsinspector/InspectorInterfaces.h +++ b/Frameworks/React-jsinspector.xcframework/ios-arm64/Headers/jsinspector/InspectorInterfaces.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsinspector.xcframework/ios-arm64/libReact-jsinspector.a b/Frameworks/React-jsinspector.xcframework/ios-arm64/libReact-jsinspector.a index 93f59c3..799b292 100644 Binary files a/Frameworks/React-jsinspector.xcframework/ios-arm64/libReact-jsinspector.a and b/Frameworks/React-jsinspector.xcframework/ios-arm64/libReact-jsinspector.a differ diff --git a/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/Headers/jsinspector/InspectorInterfaces.h b/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/Headers/jsinspector/InspectorInterfaces.h index 345434b..77fd6e1 100644 --- a/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/Headers/jsinspector/InspectorInterfaces.h +++ b/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/Headers/jsinspector/InspectorInterfaces.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/libReact-jsinspector.a b/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/libReact-jsinspector.a index d248692..1389085 100644 Binary files a/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/libReact-jsinspector.a and b/Frameworks/React-jsinspector.xcframework/ios-arm64_x86_64-simulator/libReact-jsinspector.a differ diff --git a/Frameworks/React-logger.xcframework/ios-arm64/Headers/logger/react_native_log.h b/Frameworks/React-logger.xcframework/ios-arm64/Headers/logger/react_native_log.h index c64f202..9ac23ee 100644 --- a/Frameworks/React-logger.xcframework/ios-arm64/Headers/logger/react_native_log.h +++ b/Frameworks/React-logger.xcframework/ios-arm64/Headers/logger/react_native_log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-logger.xcframework/ios-arm64/libReact-logger.a b/Frameworks/React-logger.xcframework/ios-arm64/libReact-logger.a index 59ca16a..2bfb920 100644 Binary files a/Frameworks/React-logger.xcframework/ios-arm64/libReact-logger.a and b/Frameworks/React-logger.xcframework/ios-arm64/libReact-logger.a differ diff --git a/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/Headers/logger/react_native_log.h b/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/Headers/logger/react_native_log.h index c64f202..9ac23ee 100644 --- a/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/Headers/logger/react_native_log.h +++ b/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/Headers/logger/react_native_log.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/libReact-logger.a b/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/libReact-logger.a index 58f484a..bfe2958 100644 Binary files a/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/libReact-logger.a and b/Frameworks/React-logger.xcframework/ios-arm64_x86_64-simulator/libReact-logger.a differ diff --git a/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/BridgeNativeModulePerfLogger.h b/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/BridgeNativeModulePerfLogger.h index 9ac83b9..c9593ec 100644 --- a/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/BridgeNativeModulePerfLogger.h +++ b/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/BridgeNativeModulePerfLogger.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/NativeModulePerfLogger.h b/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/NativeModulePerfLogger.h index 54def97..2cb386b 100644 --- a/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/NativeModulePerfLogger.h +++ b/Frameworks/React-perflogger.xcframework/ios-arm64/Headers/reactperflogger/NativeModulePerfLogger.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-perflogger.xcframework/ios-arm64/libReact-perflogger.a b/Frameworks/React-perflogger.xcframework/ios-arm64/libReact-perflogger.a index 0a78e8a..5655f79 100644 Binary files a/Frameworks/React-perflogger.xcframework/ios-arm64/libReact-perflogger.a and b/Frameworks/React-perflogger.xcframework/ios-arm64/libReact-perflogger.a differ diff --git a/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/BridgeNativeModulePerfLogger.h b/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/BridgeNativeModulePerfLogger.h index 9ac83b9..c9593ec 100644 --- a/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/BridgeNativeModulePerfLogger.h +++ b/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/BridgeNativeModulePerfLogger.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/NativeModulePerfLogger.h b/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/NativeModulePerfLogger.h index 54def97..2cb386b 100644 --- a/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/NativeModulePerfLogger.h +++ b/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/Headers/reactperflogger/NativeModulePerfLogger.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/libReact-perflogger.a b/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/libReact-perflogger.a index e34654c..0028d3d 100644 Binary files a/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/libReact-perflogger.a and b/Frameworks/React-perflogger.xcframework/ios-arm64_x86_64-simulator/libReact-perflogger.a differ diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon-umbrella.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon-umbrella.h new file mode 100644 index 0000000..c3abd8b --- /dev/null +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon-umbrella.h @@ -0,0 +1,25 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "ReactCommon/LongLivedObject.h" +#import "ReactCommon/TurboCxxModule.h" +#import "ReactCommon/TurboModule.h" +#import "ReactCommon/TurboModuleBinding.h" +#import "ReactCommon/TurboModulePerfLogger.h" +#import "ReactCommon/TurboModuleUtils.h" +#import "ReactCommon/RCTBlockGuard.h" +#import "ReactCommon/RCTTurboModule.h" +#import "ReactCommon/RCTTurboModuleManager.h" + +FOUNDATION_EXPORT double ReactCommonVersionNumber; +FOUNDATION_EXPORT const unsigned char ReactCommonVersionString[]; + diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon.modulemap b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon.modulemap new file mode 100644 index 0000000..d68e84d --- /dev/null +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon.modulemap @@ -0,0 +1,6 @@ +module ReactCommon { + umbrella header "ReactCommon-umbrella.h" + + export * + module * { export * } +} diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/LongLivedObject.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/LongLivedObject.h index 5173b73..1e1fa0c 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/LongLivedObject.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/LongLivedObject.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -7,51 +7,5 @@ #pragma once -#include -#include -#include - -namespace facebook { -namespace react { - -/** - * A simple wrapper class that can be registered to a collection that keep it - * alive for extended period of time. This object can be removed from the - * collection when needed. - * - * The subclass of this class must be created using std::make_shared(). - * After creation, add it to the `LongLivedObjectCollection`. - * When done with the object, call `allowRelease()` to allow the OS to release - * it. - */ -class LongLivedObject { - public: - virtual void allowRelease(); - - protected: - LongLivedObject(); - virtual ~LongLivedObject(); -}; - -/** - * A singleton, thread-safe, write-only collection for the `LongLivedObject`s. - */ -class LongLivedObjectCollection { - public: - static LongLivedObjectCollection &get(); - - LongLivedObjectCollection(); - LongLivedObjectCollection(LongLivedObjectCollection const &) = delete; - void operator=(LongLivedObjectCollection const &) = delete; - - void add(std::shared_ptr o) const; - void remove(const LongLivedObject *o) const; - void clear() const; - - private: - mutable std::unordered_set> collection_; - mutable std::mutex collectionMutex_; -}; - -} // namespace react -} // namespace facebook +// This header is left here for compatibility reasons. +#include diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTBlockGuard.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTBlockGuard.h index 38dbd2b..a4bbb8b 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTBlockGuard.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTBlockGuard.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModule.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModule.h index 1cc512c..1d16b08 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModule.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -16,7 +16,6 @@ #import #import #import -#import #import #import @@ -27,6 +26,7 @@ namespace facebook { namespace react { +class CallbackWrapper; class Instance; typedef std::weak_ptr ( diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModuleManager.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModuleManager.h index 2b9c473..8ac86f4 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModuleManager.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/RCTTurboModuleManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboCxxModule.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboCxxModule.h index e419553..03d19a3 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboCxxModule.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboCxxModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -29,13 +29,15 @@ class JSI_EXPORT TurboCxxModule : public TurboModule { std::unique_ptr cxxModule, std::shared_ptr jsInvoker); - virtual facebook::jsi::Value get( + facebook::jsi::Value get( facebook::jsi::Runtime &runtime, const facebook::jsi::PropNameID &propName) override; + std::vector getPropertyNames( + facebook::jsi::Runtime &runtime) override; + jsi::Value invokeMethod( jsi::Runtime &runtime, - TurboModuleMethodValueKind valueKind, const std::string &methodName, const jsi::Value *args, size_t count); diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModule.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModule.h index 0772986..866a0b4 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModule.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -32,22 +32,47 @@ enum TurboModuleMethodValueKind { PromiseKind, }; +class TurboCxxModule; +class TurboModuleBinding; + /** * Base HostObject class for every module to be exposed to JS */ class JSI_EXPORT TurboModule : public facebook::jsi::HostObject { public: - TurboModule(const std::string &name, std::shared_ptr jsInvoker); - virtual ~TurboModule(); + TurboModule(std::string name, std::shared_ptr jsInvoker); - virtual facebook::jsi::Value get( + // Note: keep this method declared inline to avoid conflicts + // between RTTI and non-RTTI compilation units + facebook::jsi::Value get( facebook::jsi::Runtime &runtime, - const facebook::jsi::PropNameID &propName) override; + const facebook::jsi::PropNameID &propName) override { + { + std::string propNameUtf8 = propName.utf8(runtime); + auto p = methodMap_.find(propNameUtf8); + if (p == methodMap_.end()) { + // Method was not found, let JS decide what to do. + return facebook::jsi::Value::undefined(); + } else { + return get(runtime, propName, p->second); + } + } + } + std::vector getPropertyNames( + facebook::jsi::Runtime &runtime) override { + std::vector result; + result.reserve(methodMap_.size()); + for (auto it = methodMap_.cbegin(); it != methodMap_.cend(); ++it) { + result.push_back(jsi::PropNameID::forUtf8(runtime, it->first)); + } + return result; + } + + protected: const std::string name_; std::shared_ptr jsInvoker_; - protected: struct MethodMetadata { size_t argCount; facebook::jsi::Value (*invoker)( @@ -56,8 +81,17 @@ class JSI_EXPORT TurboModule : public facebook::jsi::HostObject { const facebook::jsi::Value *args, size_t count); }; - std::unordered_map methodMap_; + + private: + friend class TurboCxxModule; + friend class TurboModuleBinding; + std::unique_ptr jsRepresentation_; + + facebook::jsi::Value get( + facebook::jsi::Runtime &runtime, + const facebook::jsi::PropNameID &propName, + const MethodMetadata &meta); }; /** diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleBinding.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleBinding.h index 87679af..1791d4e 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleBinding.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleBinding.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -18,6 +18,12 @@ namespace react { class JSCallInvoker; +enum class TurboModuleBindingMode : uint8_t { + HostObject = 0, + Prototype = 1, + Eager = 2, +}; + /** * Represents the JavaScript binding for the TurboModule system. */ @@ -27,31 +33,24 @@ class TurboModuleBinding { * Installs TurboModuleBinding into JavaScript runtime. * Thread synchronization must be enforced externally. */ - static void install( - jsi::Runtime &runtime, - const TurboModuleProviderFunctionType &&moduleProvider); static void install( jsi::Runtime &runtime, const TurboModuleProviderFunctionType &&moduleProvider, + TurboModuleBindingMode bindingMode, std::shared_ptr longLivedObjectCollection); - TurboModuleBinding(const TurboModuleProviderFunctionType &&moduleProvider); + private: TurboModuleBinding( const TurboModuleProviderFunctionType &&moduleProvider, + TurboModuleBindingMode bindingMode, std::shared_ptr longLivedObjectCollection); virtual ~TurboModuleBinding(); - /** - * Get an TurboModule instance for the given module name. - */ - std::shared_ptr getModule(const std::string &name); - - private: /** * A lookup function exposed to JS to get an instance of a TurboModule * for the given name. */ - jsi::Value jsProxy( + jsi::Value getModule( jsi::Runtime &runtime, const jsi::Value &thisVal, const jsi::Value *args, @@ -59,7 +58,7 @@ class TurboModuleBinding { TurboModuleProviderFunctionType moduleProvider_; std::shared_ptr longLivedObjectCollection_; - bool disableGlobalLongLivedObjectCollection_; + TurboModuleBindingMode bindingMode_; }; } // namespace react diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModulePerfLogger.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModulePerfLogger.h index 2f7fcf8..e0b1b01 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModulePerfLogger.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModulePerfLogger.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleUtils.h b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleUtils.h index 0dc0813..92e1026 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleUtils.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64/Headers/ReactCommon/TurboModuleUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -13,9 +13,8 @@ #include #include -#include - -using namespace facebook; +#include +#include namespace facebook { namespace react { @@ -40,86 +39,6 @@ jsi::Value createPromiseAsJSIValue( jsi::Runtime &rt, const PromiseSetupFunctionType func); -// Helper for passing jsi::Function arg to other methods. -class CallbackWrapper : public LongLivedObject { - private: - CallbackWrapper( - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) - : longLivedObjectCollection_(), - callback_(std::move(callback)), - runtime_(runtime), - jsInvoker_(std::move(jsInvoker)) {} - - CallbackWrapper( - std::shared_ptr longLivedObjectCollection, - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) - : longLivedObjectCollection_(longLivedObjectCollection), - callback_(std::move(callback)), - runtime_(runtime), - jsInvoker_(std::move(jsInvoker)) {} - - // Use a weak_ptr to avoid a retain cycle: LongLivedObjectCollection owns all - // CallbackWrappers. So, CallbackWrapper cannot own its - // LongLivedObjectCollection. - std::weak_ptr longLivedObjectCollection_; - jsi::Function callback_; - jsi::Runtime &runtime_; - std::shared_ptr jsInvoker_; - - public: - static std::weak_ptr createWeak( - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) { - auto wrapper = std::shared_ptr( - new CallbackWrapper(std::move(callback), runtime, jsInvoker)); - LongLivedObjectCollection::get().add(wrapper); - return wrapper; - } - - static std::weak_ptr createWeak( - std::shared_ptr longLivedObjectCollection, - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) { - auto wrapper = std::shared_ptr(new CallbackWrapper( - longLivedObjectCollection, std::move(callback), runtime, jsInvoker)); - longLivedObjectCollection->add(wrapper); - return wrapper; - } - - // Delete the enclosed jsi::Function - void destroy() { - allowRelease(); - } - - jsi::Function &callback() { - return callback_; - } - - jsi::Runtime &runtime() { - return runtime_; - } - - CallInvoker &jsInvoker() { - return *(jsInvoker_); - } - - void allowRelease() override { - if (auto longLivedObjectCollection = longLivedObjectCollection_.lock()) { - if (longLivedObjectCollection != nullptr) { - longLivedObjectCollection->remove(this); - return; - } - } - LongLivedObject::allowRelease(); - } -}; - class RAIICallbackWrapperDestroyer { public: RAIICallbackWrapperDestroyer(std::weak_ptr callbackWrapper) diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64/libReactCommon.a b/Frameworks/ReactCommon.xcframework/ios-arm64/libReactCommon.a index 17590f3..9d646da 100644 Binary files a/Frameworks/ReactCommon.xcframework/ios-arm64/libReactCommon.a and b/Frameworks/ReactCommon.xcframework/ios-arm64/libReactCommon.a differ diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon-umbrella.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon-umbrella.h new file mode 100644 index 0000000..c3abd8b --- /dev/null +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon-umbrella.h @@ -0,0 +1,25 @@ +#ifdef __OBJC__ +#import +#else +#ifndef FOUNDATION_EXPORT +#if defined(__cplusplus) +#define FOUNDATION_EXPORT extern "C" +#else +#define FOUNDATION_EXPORT extern +#endif +#endif +#endif + +#import "ReactCommon/LongLivedObject.h" +#import "ReactCommon/TurboCxxModule.h" +#import "ReactCommon/TurboModule.h" +#import "ReactCommon/TurboModuleBinding.h" +#import "ReactCommon/TurboModulePerfLogger.h" +#import "ReactCommon/TurboModuleUtils.h" +#import "ReactCommon/RCTBlockGuard.h" +#import "ReactCommon/RCTTurboModule.h" +#import "ReactCommon/RCTTurboModuleManager.h" + +FOUNDATION_EXPORT double ReactCommonVersionNumber; +FOUNDATION_EXPORT const unsigned char ReactCommonVersionString[]; + diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon.modulemap b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon.modulemap new file mode 100644 index 0000000..d68e84d --- /dev/null +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon.modulemap @@ -0,0 +1,6 @@ +module ReactCommon { + umbrella header "ReactCommon-umbrella.h" + + export * + module * { export * } +} diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/LongLivedObject.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/LongLivedObject.h index 5173b73..1e1fa0c 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/LongLivedObject.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/LongLivedObject.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -7,51 +7,5 @@ #pragma once -#include -#include -#include - -namespace facebook { -namespace react { - -/** - * A simple wrapper class that can be registered to a collection that keep it - * alive for extended period of time. This object can be removed from the - * collection when needed. - * - * The subclass of this class must be created using std::make_shared(). - * After creation, add it to the `LongLivedObjectCollection`. - * When done with the object, call `allowRelease()` to allow the OS to release - * it. - */ -class LongLivedObject { - public: - virtual void allowRelease(); - - protected: - LongLivedObject(); - virtual ~LongLivedObject(); -}; - -/** - * A singleton, thread-safe, write-only collection for the `LongLivedObject`s. - */ -class LongLivedObjectCollection { - public: - static LongLivedObjectCollection &get(); - - LongLivedObjectCollection(); - LongLivedObjectCollection(LongLivedObjectCollection const &) = delete; - void operator=(LongLivedObjectCollection const &) = delete; - - void add(std::shared_ptr o) const; - void remove(const LongLivedObject *o) const; - void clear() const; - - private: - mutable std::unordered_set> collection_; - mutable std::mutex collectionMutex_; -}; - -} // namespace react -} // namespace facebook +// This header is left here for compatibility reasons. +#include diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTBlockGuard.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTBlockGuard.h index 38dbd2b..a4bbb8b 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTBlockGuard.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTBlockGuard.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModule.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModule.h index 1cc512c..1d16b08 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModule.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -16,7 +16,6 @@ #import #import #import -#import #import #import @@ -27,6 +26,7 @@ namespace facebook { namespace react { +class CallbackWrapper; class Instance; typedef std::weak_ptr ( diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModuleManager.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModuleManager.h index 2b9c473..8ac86f4 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModuleManager.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/RCTTurboModuleManager.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboCxxModule.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboCxxModule.h index e419553..03d19a3 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboCxxModule.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboCxxModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -29,13 +29,15 @@ class JSI_EXPORT TurboCxxModule : public TurboModule { std::unique_ptr cxxModule, std::shared_ptr jsInvoker); - virtual facebook::jsi::Value get( + facebook::jsi::Value get( facebook::jsi::Runtime &runtime, const facebook::jsi::PropNameID &propName) override; + std::vector getPropertyNames( + facebook::jsi::Runtime &runtime) override; + jsi::Value invokeMethod( jsi::Runtime &runtime, - TurboModuleMethodValueKind valueKind, const std::string &methodName, const jsi::Value *args, size_t count); diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModule.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModule.h index 0772986..866a0b4 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModule.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModule.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -32,22 +32,47 @@ enum TurboModuleMethodValueKind { PromiseKind, }; +class TurboCxxModule; +class TurboModuleBinding; + /** * Base HostObject class for every module to be exposed to JS */ class JSI_EXPORT TurboModule : public facebook::jsi::HostObject { public: - TurboModule(const std::string &name, std::shared_ptr jsInvoker); - virtual ~TurboModule(); + TurboModule(std::string name, std::shared_ptr jsInvoker); - virtual facebook::jsi::Value get( + // Note: keep this method declared inline to avoid conflicts + // between RTTI and non-RTTI compilation units + facebook::jsi::Value get( facebook::jsi::Runtime &runtime, - const facebook::jsi::PropNameID &propName) override; + const facebook::jsi::PropNameID &propName) override { + { + std::string propNameUtf8 = propName.utf8(runtime); + auto p = methodMap_.find(propNameUtf8); + if (p == methodMap_.end()) { + // Method was not found, let JS decide what to do. + return facebook::jsi::Value::undefined(); + } else { + return get(runtime, propName, p->second); + } + } + } + std::vector getPropertyNames( + facebook::jsi::Runtime &runtime) override { + std::vector result; + result.reserve(methodMap_.size()); + for (auto it = methodMap_.cbegin(); it != methodMap_.cend(); ++it) { + result.push_back(jsi::PropNameID::forUtf8(runtime, it->first)); + } + return result; + } + + protected: const std::string name_; std::shared_ptr jsInvoker_; - protected: struct MethodMetadata { size_t argCount; facebook::jsi::Value (*invoker)( @@ -56,8 +81,17 @@ class JSI_EXPORT TurboModule : public facebook::jsi::HostObject { const facebook::jsi::Value *args, size_t count); }; - std::unordered_map methodMap_; + + private: + friend class TurboCxxModule; + friend class TurboModuleBinding; + std::unique_ptr jsRepresentation_; + + facebook::jsi::Value get( + facebook::jsi::Runtime &runtime, + const facebook::jsi::PropNameID &propName, + const MethodMetadata &meta); }; /** diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleBinding.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleBinding.h index 87679af..1791d4e 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleBinding.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleBinding.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -18,6 +18,12 @@ namespace react { class JSCallInvoker; +enum class TurboModuleBindingMode : uint8_t { + HostObject = 0, + Prototype = 1, + Eager = 2, +}; + /** * Represents the JavaScript binding for the TurboModule system. */ @@ -27,31 +33,24 @@ class TurboModuleBinding { * Installs TurboModuleBinding into JavaScript runtime. * Thread synchronization must be enforced externally. */ - static void install( - jsi::Runtime &runtime, - const TurboModuleProviderFunctionType &&moduleProvider); static void install( jsi::Runtime &runtime, const TurboModuleProviderFunctionType &&moduleProvider, + TurboModuleBindingMode bindingMode, std::shared_ptr longLivedObjectCollection); - TurboModuleBinding(const TurboModuleProviderFunctionType &&moduleProvider); + private: TurboModuleBinding( const TurboModuleProviderFunctionType &&moduleProvider, + TurboModuleBindingMode bindingMode, std::shared_ptr longLivedObjectCollection); virtual ~TurboModuleBinding(); - /** - * Get an TurboModule instance for the given module name. - */ - std::shared_ptr getModule(const std::string &name); - - private: /** * A lookup function exposed to JS to get an instance of a TurboModule * for the given name. */ - jsi::Value jsProxy( + jsi::Value getModule( jsi::Runtime &runtime, const jsi::Value &thisVal, const jsi::Value *args, @@ -59,7 +58,7 @@ class TurboModuleBinding { TurboModuleProviderFunctionType moduleProvider_; std::shared_ptr longLivedObjectCollection_; - bool disableGlobalLongLivedObjectCollection_; + TurboModuleBindingMode bindingMode_; }; } // namespace react diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModulePerfLogger.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModulePerfLogger.h index 2f7fcf8..e0b1b01 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModulePerfLogger.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModulePerfLogger.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleUtils.h b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleUtils.h index 0dc0813..92e1026 100644 --- a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleUtils.h +++ b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/Headers/ReactCommon/TurboModuleUtils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. @@ -13,9 +13,8 @@ #include #include -#include - -using namespace facebook; +#include +#include namespace facebook { namespace react { @@ -40,86 +39,6 @@ jsi::Value createPromiseAsJSIValue( jsi::Runtime &rt, const PromiseSetupFunctionType func); -// Helper for passing jsi::Function arg to other methods. -class CallbackWrapper : public LongLivedObject { - private: - CallbackWrapper( - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) - : longLivedObjectCollection_(), - callback_(std::move(callback)), - runtime_(runtime), - jsInvoker_(std::move(jsInvoker)) {} - - CallbackWrapper( - std::shared_ptr longLivedObjectCollection, - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) - : longLivedObjectCollection_(longLivedObjectCollection), - callback_(std::move(callback)), - runtime_(runtime), - jsInvoker_(std::move(jsInvoker)) {} - - // Use a weak_ptr to avoid a retain cycle: LongLivedObjectCollection owns all - // CallbackWrappers. So, CallbackWrapper cannot own its - // LongLivedObjectCollection. - std::weak_ptr longLivedObjectCollection_; - jsi::Function callback_; - jsi::Runtime &runtime_; - std::shared_ptr jsInvoker_; - - public: - static std::weak_ptr createWeak( - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) { - auto wrapper = std::shared_ptr( - new CallbackWrapper(std::move(callback), runtime, jsInvoker)); - LongLivedObjectCollection::get().add(wrapper); - return wrapper; - } - - static std::weak_ptr createWeak( - std::shared_ptr longLivedObjectCollection, - jsi::Function &&callback, - jsi::Runtime &runtime, - std::shared_ptr jsInvoker) { - auto wrapper = std::shared_ptr(new CallbackWrapper( - longLivedObjectCollection, std::move(callback), runtime, jsInvoker)); - longLivedObjectCollection->add(wrapper); - return wrapper; - } - - // Delete the enclosed jsi::Function - void destroy() { - allowRelease(); - } - - jsi::Function &callback() { - return callback_; - } - - jsi::Runtime &runtime() { - return runtime_; - } - - CallInvoker &jsInvoker() { - return *(jsInvoker_); - } - - void allowRelease() override { - if (auto longLivedObjectCollection = longLivedObjectCollection_.lock()) { - if (longLivedObjectCollection != nullptr) { - longLivedObjectCollection->remove(this); - return; - } - } - LongLivedObject::allowRelease(); - } -}; - class RAIICallbackWrapperDestroyer { public: RAIICallbackWrapperDestroyer(std::weak_ptr callbackWrapper) diff --git a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/libReactCommon.a b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/libReactCommon.a index f508f53..bcfc21f 100644 Binary files a/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/libReactCommon.a and b/Frameworks/ReactCommon.xcframework/ios-arm64_x86_64-simulator/libReactCommon.a differ diff --git a/Frameworks/ReactNativeART.xcframework/ios-arm64/libReactNativeART.a b/Frameworks/ReactNativeART.xcframework/ios-arm64/libReactNativeART.a index 2947800..3edcb42 100644 Binary files a/Frameworks/ReactNativeART.xcframework/ios-arm64/libReactNativeART.a and b/Frameworks/ReactNativeART.xcframework/ios-arm64/libReactNativeART.a differ diff --git a/Frameworks/ReactNativeART.xcframework/ios-arm64_x86_64-simulator/libReactNativeART.a b/Frameworks/ReactNativeART.xcframework/ios-arm64_x86_64-simulator/libReactNativeART.a index 2056c62..de8b659 100644 Binary files a/Frameworks/ReactNativeART.xcframework/ios-arm64_x86_64-simulator/libReactNativeART.a and b/Frameworks/ReactNativeART.xcframework/ios-arm64_x86_64-simulator/libReactNativeART.a differ diff --git a/Frameworks/TextToSpeech.xcframework/ios-arm64/libTextToSpeech.a b/Frameworks/TextToSpeech.xcframework/ios-arm64/libTextToSpeech.a index d64c862..658eee3 100644 Binary files a/Frameworks/TextToSpeech.xcframework/ios-arm64/libTextToSpeech.a and b/Frameworks/TextToSpeech.xcframework/ios-arm64/libTextToSpeech.a differ diff --git a/Frameworks/TextToSpeech.xcframework/ios-arm64_x86_64-simulator/libTextToSpeech.a b/Frameworks/TextToSpeech.xcframework/ios-arm64_x86_64-simulator/libTextToSpeech.a index 05c96b9..aaefabf 100644 Binary files a/Frameworks/TextToSpeech.xcframework/ios-arm64_x86_64-simulator/libTextToSpeech.a and b/Frameworks/TextToSpeech.xcframework/ios-arm64_x86_64-simulator/libTextToSpeech.a differ diff --git a/Frameworks/Yoga.xcframework/Info.plist b/Frameworks/Yoga.xcframework/Info.plist index 3e26cb0..a143914 100644 --- a/Frameworks/Yoga.xcframework/Info.plist +++ b/Frameworks/Yoga.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libYoga.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libYoga.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libYoga.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libYoga.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libYoga.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/Yoga-umbrella.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/Yoga-umbrella.h index 65d28e5..9c93798 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/Yoga-umbrella.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/Yoga-umbrella.h @@ -10,11 +10,20 @@ #endif #endif +#import "yoga/BitUtils.h" +#import "yoga/CompactValue.h" +#import "yoga/log.h" +#import "yoga/Utils.h" +#import "yoga/YGConfig.h" #import "yoga/YGEnums.h" +#import "yoga/YGFloatOptional.h" +#import "yoga/YGLayout.h" #import "yoga/YGMacros.h" #import "yoga/YGNode.h" +#import "yoga/YGNodePrint.h" #import "yoga/YGStyle.h" #import "yoga/YGValue.h" +#import "yoga/Yoga-internal.h" #import "yoga/Yoga.h" FOUNDATION_EXPORT double yogaVersionNumber; diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/BitUtils.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/BitUtils.h new file mode 100644 index 0000000..a60ea76 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/BitUtils.h @@ -0,0 +1,71 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include +#include +#include "YGEnums.h" + +namespace facebook { +namespace yoga { + +namespace detail { + +constexpr size_t log2ceilFn(size_t n) { + return n < 1 ? 0 : (1 + log2ceilFn(n / 2)); +} + +constexpr int mask(size_t bitWidth, size_t index) { + return ((1 << bitWidth) - 1) << index; +} + +// The number of bits necessary to represent enums defined with YG_ENUM_SEQ_DECL +template +constexpr size_t bitWidthFn() { + static_assert( + enums::count() > 0, "Enums must have at least one entries"); + return log2ceilFn(enums::count() - 1); +} + +template +constexpr Enum getEnumData(int flags, size_t index) { + return static_cast((flags & mask(bitWidthFn(), index)) >> index); +} + +template +void setEnumData(uint32_t& flags, size_t index, int newValue) { + flags = (flags & ~mask(bitWidthFn(), index)) | + ((newValue << index) & (mask(bitWidthFn(), index))); +} + +template +void setEnumData(uint8_t& flags, size_t index, int newValue) { + flags = (flags & ~static_cast(mask(bitWidthFn(), index))) | + ((newValue << index) & + (static_cast(mask(bitWidthFn(), index)))); +} + +constexpr bool getBooleanData(int flags, size_t index) { + return (flags >> index) & 1; +} + +inline void setBooleanData(uint8_t& flags, size_t index, bool value) { + if (value) { + flags |= 1 << index; + } else { + flags &= ~(1 << index); + } +} + +} // namespace detail +} // namespace yoga +} // namespace facebook + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/CompactValue.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/CompactValue.h new file mode 100644 index 0000000..1f03cf7 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/CompactValue.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "YGValue.h" +#include "YGMacros.h" +#include +#include +#include + +static_assert( + std::numeric_limits::is_iec559, + "facebook::yoga::detail::CompactValue only works with IEEE754 floats"); + +#ifdef YOGA_COMPACT_VALUE_TEST +#define VISIBLE_FOR_TESTING public: +#else +#define VISIBLE_FOR_TESTING private: +#endif + +namespace facebook { +namespace yoga { +namespace detail { + +// This class stores YGValue in 32 bits. +// - The value does not matter for Undefined and Auto. NaNs are used for their +// representation. +// - To differentiate between Point and Percent, one exponent bit is used. +// Supported the range [0x40, 0xbf] (0xbf is inclusive for point, but +// exclusive for percent). +// - Value ranges: +// points: 1.08420217e-19f to 36893485948395847680 +// 0x00000000 0x3fffffff +// percent: 1.08420217e-19f to 18446742974197923840 +// 0x40000000 0x7f7fffff +// - Zero is supported, negative zero is not +// - values outside of the representable range are clamped +class YOGA_EXPORT CompactValue { + friend constexpr bool operator==(CompactValue, CompactValue) noexcept; + +public: + static constexpr auto LOWER_BOUND = 1.08420217e-19f; + static constexpr auto UPPER_BOUND_POINT = 36893485948395847680.0f; + static constexpr auto UPPER_BOUND_PERCENT = 18446742974197923840.0f; + + template + static CompactValue of(float value) noexcept { + if (value == 0.0f || (value < LOWER_BOUND && value > -LOWER_BOUND)) { + constexpr auto zero = + Unit == YGUnitPercent ? ZERO_BITS_PERCENT : ZERO_BITS_POINT; + return {Payload{zero}}; + } + + constexpr auto upperBound = + Unit == YGUnitPercent ? UPPER_BOUND_PERCENT : UPPER_BOUND_POINT; + if (value > upperBound || value < -upperBound) { + value = copysignf(upperBound, value); + } + + uint32_t unitBit = Unit == YGUnitPercent ? PERCENT_BIT : 0; + auto data = Payload{value}; + data.repr -= BIAS; + data.repr |= unitBit; + return {data}; + } + + template + static CompactValue ofMaybe(float value) noexcept { + return std::isnan(value) || std::isinf(value) ? ofUndefined() + : of(value); + } + + static constexpr CompactValue ofZero() noexcept { + return CompactValue{Payload{ZERO_BITS_POINT}}; + } + + static constexpr CompactValue ofUndefined() noexcept { + return CompactValue{}; + } + + static constexpr CompactValue ofAuto() noexcept { + return CompactValue{Payload{AUTO_BITS}}; + } + + constexpr CompactValue() noexcept + : payload_(std::numeric_limits::quiet_NaN()) {} + + CompactValue(const YGValue& x) noexcept : payload_(uint32_t{0}) { + switch (x.unit) { + case YGUnitUndefined: + *this = ofUndefined(); + break; + case YGUnitAuto: + *this = ofAuto(); + break; + case YGUnitPoint: + *this = of(x.value); + break; + case YGUnitPercent: + *this = of(x.value); + break; + } + } + + operator YGValue() const noexcept { + switch (payload_.repr) { + case AUTO_BITS: + return YGValueAuto; + case ZERO_BITS_POINT: + return YGValue{0.0f, YGUnitPoint}; + case ZERO_BITS_PERCENT: + return YGValue{0.0f, YGUnitPercent}; + } + + if (std::isnan(payload_.value)) { + return YGValueUndefined; + } + + auto data = payload_; + data.repr &= ~PERCENT_BIT; + data.repr += BIAS; + + return YGValue{ + data.value, payload_.repr & 0x40000000 ? YGUnitPercent : YGUnitPoint}; + } + + bool isUndefined() const noexcept { + return ( + payload_.repr != AUTO_BITS && payload_.repr != ZERO_BITS_POINT && + payload_.repr != ZERO_BITS_PERCENT && std::isnan(payload_.value)); + } + + bool isAuto() const noexcept { return payload_.repr == AUTO_BITS; } + +private: + union Payload { + float value; + uint32_t repr; + Payload() = delete; + constexpr Payload(uint32_t r) : repr(r) {} + constexpr Payload(float v) : value(v) {} + }; + + static constexpr uint32_t BIAS = 0x20000000; + static constexpr uint32_t PERCENT_BIT = 0x40000000; + + // these are signaling NaNs with specific bit pattern as payload they will be + // silenced whenever going through an FPU operation on ARM + x86 + static constexpr uint32_t AUTO_BITS = 0x7faaaaaa; + static constexpr uint32_t ZERO_BITS_POINT = 0x7f8f0f0f; + static constexpr uint32_t ZERO_BITS_PERCENT = 0x7f80f0f0; + + constexpr CompactValue(Payload data) noexcept : payload_(data) {} + + Payload payload_; + + VISIBLE_FOR_TESTING uint32_t repr() { return payload_.repr; } +}; + +template <> +CompactValue CompactValue::of(float) noexcept = delete; +template <> +CompactValue CompactValue::of(float) noexcept = delete; +template <> +CompactValue CompactValue::ofMaybe(float) noexcept = delete; +template <> +CompactValue CompactValue::ofMaybe(float) noexcept = delete; + +constexpr bool operator==(CompactValue a, CompactValue b) noexcept { + return a.payload_.repr == b.payload_.repr; +} + +constexpr bool operator!=(CompactValue a, CompactValue b) noexcept { + return !(a == b); +} + +} // namespace detail +} // namespace yoga +} // namespace facebook + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Utils.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Utils.h new file mode 100644 index 0000000..8588ecc --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Utils.h @@ -0,0 +1,152 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "YGNode.h" +#include "Yoga-internal.h" +#include "CompactValue.h" + +// This struct is an helper model to hold the data for step 4 of flexbox algo, +// which is collecting the flex items in a line. +// +// - itemsOnLine: Number of items which can fit in a line considering the +// available Inner dimension, the flex items computed flexbasis and their +// margin. It may be different than the difference between start and end +// indicates because we skip over absolute-positioned items. +// +// - sizeConsumedOnCurrentLine: It is accumulation of the dimensions and margin +// of all the children on the current line. This will be used in order to +// either set the dimensions of the node if none already exist or to compute +// the remaining space left for the flexible children. +// +// - totalFlexGrowFactors: total flex grow factors of flex items which are to be +// layed in the current line +// +// - totalFlexShrinkFactors: total flex shrink factors of flex items which are +// to be layed in the current line +// +// - endOfLineIndex: Its the end index of the last flex item which was examined +// and it may or may not be part of the current line(as it may be absolutely +// positioned or including it may have caused to overshoot availableInnerDim) +// +// - relativeChildren: Maintain a vector of the child nodes that can shrink +// and/or grow. + +struct YGCollectFlexItemsRowValues { + uint32_t itemsOnLine; + float sizeConsumedOnCurrentLine; + float totalFlexGrowFactors; + float totalFlexShrinkScaledFactors; + uint32_t endOfLineIndex; + std::vector relativeChildren; + float remainingFreeSpace; + // The size of the mainDim for the row after considering size, padding, margin + // and border of flex items. This is used to calculate maxLineDim after going + // through all the rows to decide on the main axis size of owner. + float mainDim; + // The size of the crossDim for the row after considering size, padding, + // margin and border of flex items. Used for calculating containers crossSize. + float crossDim; +}; + +bool YGValueEqual(const YGValue& a, const YGValue& b); +inline bool YGValueEqual( + facebook::yoga::detail::CompactValue a, + facebook::yoga::detail::CompactValue b) { + return YGValueEqual((YGValue) a, (YGValue) b); +} + +// This custom float equality function returns true if either absolute +// difference between two floats is less than 0.0001f or both are undefined. +bool YGFloatsEqual(const float a, const float b); + +bool YGDoubleEqual(const double a, const double b); + +float YGFloatMax(const float a, const float b); + +YGFloatOptional YGFloatOptionalMax( + const YGFloatOptional op1, + const YGFloatOptional op2); + +float YGFloatMin(const float a, const float b); + +// This custom float comparison function compares the array of float with +// YGFloatsEqual, as the default float comparison operator will not work(Look +// at the comments of YGFloatsEqual function). +template +bool YGFloatArrayEqual( + const std::array& val1, + const std::array& val2) { + bool areEqual = true; + for (std::size_t i = 0; i < size && areEqual; ++i) { + areEqual = YGFloatsEqual(val1[i], val2[i]); + } + return areEqual; +} + +// This function returns 0 if YGFloatIsUndefined(val) is true and val otherwise +float YGFloatSanitize(const float val); + +YGFlexDirection YGFlexDirectionCross( + const YGFlexDirection flexDirection, + const YGDirection direction); + +inline bool YGFlexDirectionIsRow(const YGFlexDirection flexDirection) { + return flexDirection == YGFlexDirectionRow || + flexDirection == YGFlexDirectionRowReverse; +} + +inline YGFloatOptional YGResolveValue( + const YGValue value, + const float ownerSize) { + switch (value.unit) { + case YGUnitPoint: + return YGFloatOptional{value.value}; + case YGUnitPercent: + return YGFloatOptional{value.value * ownerSize * 0.01f}; + default: + return YGFloatOptional{}; + } +} + +inline YGFloatOptional YGResolveValue( + yoga::detail::CompactValue value, + float ownerSize) { + return YGResolveValue((YGValue) value, ownerSize); +} + +inline bool YGFlexDirectionIsColumn(const YGFlexDirection flexDirection) { + return flexDirection == YGFlexDirectionColumn || + flexDirection == YGFlexDirectionColumnReverse; +} + +inline YGFlexDirection YGResolveFlexDirection( + const YGFlexDirection flexDirection, + const YGDirection direction) { + if (direction == YGDirectionRTL) { + if (flexDirection == YGFlexDirectionRow) { + return YGFlexDirectionRowReverse; + } else if (flexDirection == YGFlexDirectionRowReverse) { + return YGFlexDirectionRow; + } + } + + return flexDirection; +} + +inline YGFloatOptional YGResolveValueMargin( + yoga::detail::CompactValue value, + const float ownerSize) { + return value.isAuto() ? YGFloatOptional{0} : YGResolveValue(value, ownerSize); +} + +void throwLogicalErrorWithMessage(const char* message); + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGConfig.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGConfig.h new file mode 100644 index 0000000..e15cc12 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGConfig.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "Yoga-internal.h" +#include "Yoga.h" + +struct YOGA_EXPORT YGConfig { + using LogWithContextFn = int (*)( + YGConfigRef config, + YGNodeRef node, + YGLogLevel level, + void* context, + const char* format, + va_list args); + using CloneWithContextFn = YGNodeRef (*)( + YGNodeRef node, + YGNodeRef owner, + int childIndex, + void* cloneContext); + +private: + union { + CloneWithContextFn withContext; + YGCloneNodeFunc noContext; + } cloneNodeCallback_; + union { + LogWithContextFn withContext; + YGLogger noContext; + } logger_; + bool cloneNodeUsesContext_; + bool loggerUsesContext_; + +public: + bool useWebDefaults = false; + bool useLegacyStretchBehaviour = false; + bool shouldDiffLayoutWithoutLegacyStretchBehaviour = false; + bool printTree = false; + float pointScaleFactor = 1.0f; + std::array()> + experimentalFeatures = {}; + void* context = nullptr; + + YGConfig(YGLogger logger); + void log(YGConfig*, YGNode*, YGLogLevel, void*, const char*, va_list); + void setLogger(YGLogger logger) { + logger_.noContext = logger; + loggerUsesContext_ = false; + } + void setLogger(LogWithContextFn logger) { + logger_.withContext = logger; + loggerUsesContext_ = true; + } + void setLogger(std::nullptr_t) { setLogger(YGLogger{nullptr}); } + + YGNodeRef cloneNode( + YGNodeRef node, + YGNodeRef owner, + int childIndex, + void* cloneContext); + void setCloneNodeCallback(YGCloneNodeFunc cloneNode) { + cloneNodeCallback_.noContext = cloneNode; + cloneNodeUsesContext_ = false; + } + void setCloneNodeCallback(CloneWithContextFn cloneNode) { + cloneNodeCallback_.withContext = cloneNode; + cloneNodeUsesContext_ = true; + } + void setCloneNodeCallback(std::nullptr_t) { + setCloneNodeCallback(YGCloneNodeFunc{nullptr}); + } +}; + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGEnums.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGEnums.h index 3dc458d..c14daaa 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGEnums.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGEnums.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGFloatOptional.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGFloatOptional.h new file mode 100644 index 0000000..6af7bba --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGFloatOptional.h @@ -0,0 +1,74 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include +#include +#include "Yoga-internal.h" + +struct YGFloatOptional { +private: + float value_ = std::numeric_limits::quiet_NaN(); + +public: + explicit constexpr YGFloatOptional(float value) : value_(value) {} + constexpr YGFloatOptional() = default; + + // returns the wrapped value, or a value x with YGIsUndefined(x) == true + constexpr float unwrap() const { return value_; } + + bool isUndefined() const { return std::isnan(value_); } +}; + +// operators take YGFloatOptional by value, as it is a 32bit value + +inline bool operator==(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs.unwrap() == rhs.unwrap() || + (lhs.isUndefined() && rhs.isUndefined()); +} +inline bool operator!=(YGFloatOptional lhs, YGFloatOptional rhs) { + return !(lhs == rhs); +} + +inline bool operator==(YGFloatOptional lhs, float rhs) { + return lhs == YGFloatOptional{rhs}; +} +inline bool operator!=(YGFloatOptional lhs, float rhs) { + return !(lhs == rhs); +} + +inline bool operator==(float lhs, YGFloatOptional rhs) { + return rhs == lhs; +} +inline bool operator!=(float lhs, YGFloatOptional rhs) { + return !(lhs == rhs); +} + +inline YGFloatOptional operator+(YGFloatOptional lhs, YGFloatOptional rhs) { + return YGFloatOptional{lhs.unwrap() + rhs.unwrap()}; +} + +inline bool operator>(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs.unwrap() > rhs.unwrap(); +} + +inline bool operator<(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs.unwrap() < rhs.unwrap(); +} + +inline bool operator>=(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs > rhs || lhs == rhs; +} + +inline bool operator<=(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs < rhs || lhs == rhs; +} + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGLayout.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGLayout.h new file mode 100644 index 0000000..e3a4a19 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGLayout.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "BitUtils.h" +#include "YGFloatOptional.h" +#include "Yoga-internal.h" + +using namespace facebook::yoga; + +struct YGLayout { + std::array position = {}; + std::array dimensions = {{YGUndefined, YGUndefined}}; + std::array margin = {}; + std::array border = {}; + std::array padding = {}; + +private: + static constexpr size_t directionOffset = 0; + static constexpr size_t didUseLegacyFlagOffset = + directionOffset + facebook::yoga::detail::bitWidthFn(); + static constexpr size_t doesLegacyStretchFlagAffectsLayoutOffset = + didUseLegacyFlagOffset + 1; + static constexpr size_t hadOverflowOffset = + doesLegacyStretchFlagAffectsLayoutOffset + 1; + uint8_t flags = 0; + +public: + uint32_t computedFlexBasisGeneration = 0; + YGFloatOptional computedFlexBasis = {}; + + // Instead of recomputing the entire layout every single time, we cache some + // information to break early when nothing changed + uint32_t generationCount = 0; + YGDirection lastOwnerDirection = YGDirectionInherit; + + uint32_t nextCachedMeasurementsIndex = 0; + std::array + cachedMeasurements = {}; + std::array measuredDimensions = {{YGUndefined, YGUndefined}}; + + YGCachedMeasurement cachedLayout = YGCachedMeasurement(); + + YGDirection direction() const { + return facebook::yoga::detail::getEnumData( + flags, directionOffset); + } + + void setDirection(YGDirection direction) { + facebook::yoga::detail::setEnumData( + flags, directionOffset, direction); + } + + bool didUseLegacyFlag() const { + return facebook::yoga::detail::getBooleanData( + flags, didUseLegacyFlagOffset); + } + + void setDidUseLegacyFlag(bool val) { + facebook::yoga::detail::setBooleanData(flags, didUseLegacyFlagOffset, val); + } + + bool doesLegacyStretchFlagAffectsLayout() const { + return facebook::yoga::detail::getBooleanData( + flags, doesLegacyStretchFlagAffectsLayoutOffset); + } + + void setDoesLegacyStretchFlagAffectsLayout(bool val) { + facebook::yoga::detail::setBooleanData( + flags, doesLegacyStretchFlagAffectsLayoutOffset, val); + } + + bool hadOverflow() const { + return facebook::yoga::detail::getBooleanData(flags, hadOverflowOffset); + } + void setHadOverflow(bool hadOverflow) { + facebook::yoga::detail::setBooleanData( + flags, hadOverflowOffset, hadOverflow); + } + + bool operator==(YGLayout layout) const; + bool operator!=(YGLayout layout) const { return !(*this == layout); } +}; + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGMacros.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGMacros.h index c6917f1..9211c87 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGMacros.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGMacros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNode.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNode.h index 4b6e627..8c51123 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNode.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNodePrint.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNodePrint.h new file mode 100644 index 0000000..83b3f86 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGNodePrint.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#ifdef DEBUG + +#pragma once + +#ifdef __cplusplus + +#include + +#include "Yoga.h" + +namespace facebook { +namespace yoga { + +void YGNodeToString( + std::string& str, + YGNodeRef node, + YGPrintOptions options, + uint32_t level); + +} // namespace yoga +} // namespace facebook + +#endif + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGStyle.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGStyle.h index aab7599..b463623 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGStyle.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGStyle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGValue.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGValue.h index a200097..11beb3e 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGValue.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/YGValue.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga-internal.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga-internal.h new file mode 100644 index 0000000..492543e --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga-internal.h @@ -0,0 +1,155 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include +#include +#include +#include +#include "CompactValue.h" +#include "Yoga.h" + +using YGVector = std::vector; + +YG_EXTERN_C_BEGIN + +void YGNodeCalculateLayoutWithContext( + YGNodeRef node, + float availableWidth, + float availableHeight, + YGDirection ownerDirection, + void* layoutContext); + +YG_EXTERN_C_END + +namespace facebook { +namespace yoga { + +inline bool isUndefined(float value) { + return std::isnan(value); +} + +inline bool isUndefined(double value) { + return std::isnan(value); +} + +} // namespace yoga +} // namespace facebook + +using namespace facebook; + +extern const std::array trailing; +extern const std::array leading; +extern const YGValue YGValueUndefined; +extern const YGValue YGValueAuto; +extern const YGValue YGValueZero; + +struct YGCachedMeasurement { + float availableWidth; + float availableHeight; + YGMeasureMode widthMeasureMode; + YGMeasureMode heightMeasureMode; + + float computedWidth; + float computedHeight; + + YGCachedMeasurement() + : availableWidth(-1), + availableHeight(-1), + widthMeasureMode(YGMeasureModeUndefined), + heightMeasureMode(YGMeasureModeUndefined), + computedWidth(-1), + computedHeight(-1) {} + + bool operator==(YGCachedMeasurement measurement) const { + bool isEqual = widthMeasureMode == measurement.widthMeasureMode && + heightMeasureMode == measurement.heightMeasureMode; + + if (!yoga::isUndefined(availableWidth) || + !yoga::isUndefined(measurement.availableWidth)) { + isEqual = isEqual && availableWidth == measurement.availableWidth; + } + if (!yoga::isUndefined(availableHeight) || + !yoga::isUndefined(measurement.availableHeight)) { + isEqual = isEqual && availableHeight == measurement.availableHeight; + } + if (!yoga::isUndefined(computedWidth) || + !yoga::isUndefined(measurement.computedWidth)) { + isEqual = isEqual && computedWidth == measurement.computedWidth; + } + if (!yoga::isUndefined(computedHeight) || + !yoga::isUndefined(measurement.computedHeight)) { + isEqual = isEqual && computedHeight == measurement.computedHeight; + } + + return isEqual; + } +}; + +// This value was chosen based on empirical data: +// 98% of analyzed layouts require less than 8 entries. +#define YG_MAX_CACHED_RESULT_COUNT 8 + +namespace facebook { +namespace yoga { +namespace detail { + +template +class Values { +private: + std::array values_; + +public: + Values() = default; + explicit Values(const YGValue& defaultValue) noexcept { + values_.fill(defaultValue); + } + + const CompactValue& operator[](size_t i) const noexcept { return values_[i]; } + CompactValue& operator[](size_t i) noexcept { return values_[i]; } + + template + YGValue get() const noexcept { + return std::get(values_); + } + + template + void set(YGValue& value) noexcept { + std::get(values_) = value; + } + + template + void set(YGValue&& value) noexcept { + set(value); + } + + bool operator==(const Values& other) const noexcept { + for (size_t i = 0; i < Size; ++i) { + if (values_[i] != other.values_[i]) { + return false; + } + } + return true; + } + + Values& operator=(const Values& other) = default; +}; + +} // namespace detail +} // namespace yoga +} // namespace facebook + +static const float kDefaultFlexGrow = 0.0f; +static const float kDefaultFlexShrink = 0.0f; +static const float kWebDefaultFlexShrink = 1.0f; + +extern bool YGFloatsEqual(const float a, const float b); + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga.h index 86cd65e..3444658 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga.h +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/Yoga.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/log.h b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/log.h new file mode 100644 index 0000000..b9bfea4 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64/Headers/yoga/log.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "YGEnums.h" + +struct YGNode; +struct YGConfig; + +namespace facebook { +namespace yoga { + +namespace detail { + +struct Log { + static void log( + YGNode* node, + YGLogLevel level, + void*, + const char* message, + ...) noexcept; + + static void log( + YGConfig* config, + YGLogLevel level, + void*, + const char* format, + ...) noexcept; +}; + +} // namespace detail +} // namespace yoga +} // namespace facebook + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64/libYoga.a b/Frameworks/Yoga.xcframework/ios-arm64/libYoga.a index e278fa4..a44d6ad 100644 Binary files a/Frameworks/Yoga.xcframework/ios-arm64/libYoga.a and b/Frameworks/Yoga.xcframework/ios-arm64/libYoga.a differ diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/Yoga-umbrella.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/Yoga-umbrella.h index 65d28e5..9c93798 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/Yoga-umbrella.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/Yoga-umbrella.h @@ -10,11 +10,20 @@ #endif #endif +#import "yoga/BitUtils.h" +#import "yoga/CompactValue.h" +#import "yoga/log.h" +#import "yoga/Utils.h" +#import "yoga/YGConfig.h" #import "yoga/YGEnums.h" +#import "yoga/YGFloatOptional.h" +#import "yoga/YGLayout.h" #import "yoga/YGMacros.h" #import "yoga/YGNode.h" +#import "yoga/YGNodePrint.h" #import "yoga/YGStyle.h" #import "yoga/YGValue.h" +#import "yoga/Yoga-internal.h" #import "yoga/Yoga.h" FOUNDATION_EXPORT double yogaVersionNumber; diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/BitUtils.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/BitUtils.h new file mode 100644 index 0000000..a60ea76 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/BitUtils.h @@ -0,0 +1,71 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include +#include +#include "YGEnums.h" + +namespace facebook { +namespace yoga { + +namespace detail { + +constexpr size_t log2ceilFn(size_t n) { + return n < 1 ? 0 : (1 + log2ceilFn(n / 2)); +} + +constexpr int mask(size_t bitWidth, size_t index) { + return ((1 << bitWidth) - 1) << index; +} + +// The number of bits necessary to represent enums defined with YG_ENUM_SEQ_DECL +template +constexpr size_t bitWidthFn() { + static_assert( + enums::count() > 0, "Enums must have at least one entries"); + return log2ceilFn(enums::count() - 1); +} + +template +constexpr Enum getEnumData(int flags, size_t index) { + return static_cast((flags & mask(bitWidthFn(), index)) >> index); +} + +template +void setEnumData(uint32_t& flags, size_t index, int newValue) { + flags = (flags & ~mask(bitWidthFn(), index)) | + ((newValue << index) & (mask(bitWidthFn(), index))); +} + +template +void setEnumData(uint8_t& flags, size_t index, int newValue) { + flags = (flags & ~static_cast(mask(bitWidthFn(), index))) | + ((newValue << index) & + (static_cast(mask(bitWidthFn(), index)))); +} + +constexpr bool getBooleanData(int flags, size_t index) { + return (flags >> index) & 1; +} + +inline void setBooleanData(uint8_t& flags, size_t index, bool value) { + if (value) { + flags |= 1 << index; + } else { + flags &= ~(1 << index); + } +} + +} // namespace detail +} // namespace yoga +} // namespace facebook + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/CompactValue.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/CompactValue.h new file mode 100644 index 0000000..1f03cf7 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/CompactValue.h @@ -0,0 +1,188 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "YGValue.h" +#include "YGMacros.h" +#include +#include +#include + +static_assert( + std::numeric_limits::is_iec559, + "facebook::yoga::detail::CompactValue only works with IEEE754 floats"); + +#ifdef YOGA_COMPACT_VALUE_TEST +#define VISIBLE_FOR_TESTING public: +#else +#define VISIBLE_FOR_TESTING private: +#endif + +namespace facebook { +namespace yoga { +namespace detail { + +// This class stores YGValue in 32 bits. +// - The value does not matter for Undefined and Auto. NaNs are used for their +// representation. +// - To differentiate between Point and Percent, one exponent bit is used. +// Supported the range [0x40, 0xbf] (0xbf is inclusive for point, but +// exclusive for percent). +// - Value ranges: +// points: 1.08420217e-19f to 36893485948395847680 +// 0x00000000 0x3fffffff +// percent: 1.08420217e-19f to 18446742974197923840 +// 0x40000000 0x7f7fffff +// - Zero is supported, negative zero is not +// - values outside of the representable range are clamped +class YOGA_EXPORT CompactValue { + friend constexpr bool operator==(CompactValue, CompactValue) noexcept; + +public: + static constexpr auto LOWER_BOUND = 1.08420217e-19f; + static constexpr auto UPPER_BOUND_POINT = 36893485948395847680.0f; + static constexpr auto UPPER_BOUND_PERCENT = 18446742974197923840.0f; + + template + static CompactValue of(float value) noexcept { + if (value == 0.0f || (value < LOWER_BOUND && value > -LOWER_BOUND)) { + constexpr auto zero = + Unit == YGUnitPercent ? ZERO_BITS_PERCENT : ZERO_BITS_POINT; + return {Payload{zero}}; + } + + constexpr auto upperBound = + Unit == YGUnitPercent ? UPPER_BOUND_PERCENT : UPPER_BOUND_POINT; + if (value > upperBound || value < -upperBound) { + value = copysignf(upperBound, value); + } + + uint32_t unitBit = Unit == YGUnitPercent ? PERCENT_BIT : 0; + auto data = Payload{value}; + data.repr -= BIAS; + data.repr |= unitBit; + return {data}; + } + + template + static CompactValue ofMaybe(float value) noexcept { + return std::isnan(value) || std::isinf(value) ? ofUndefined() + : of(value); + } + + static constexpr CompactValue ofZero() noexcept { + return CompactValue{Payload{ZERO_BITS_POINT}}; + } + + static constexpr CompactValue ofUndefined() noexcept { + return CompactValue{}; + } + + static constexpr CompactValue ofAuto() noexcept { + return CompactValue{Payload{AUTO_BITS}}; + } + + constexpr CompactValue() noexcept + : payload_(std::numeric_limits::quiet_NaN()) {} + + CompactValue(const YGValue& x) noexcept : payload_(uint32_t{0}) { + switch (x.unit) { + case YGUnitUndefined: + *this = ofUndefined(); + break; + case YGUnitAuto: + *this = ofAuto(); + break; + case YGUnitPoint: + *this = of(x.value); + break; + case YGUnitPercent: + *this = of(x.value); + break; + } + } + + operator YGValue() const noexcept { + switch (payload_.repr) { + case AUTO_BITS: + return YGValueAuto; + case ZERO_BITS_POINT: + return YGValue{0.0f, YGUnitPoint}; + case ZERO_BITS_PERCENT: + return YGValue{0.0f, YGUnitPercent}; + } + + if (std::isnan(payload_.value)) { + return YGValueUndefined; + } + + auto data = payload_; + data.repr &= ~PERCENT_BIT; + data.repr += BIAS; + + return YGValue{ + data.value, payload_.repr & 0x40000000 ? YGUnitPercent : YGUnitPoint}; + } + + bool isUndefined() const noexcept { + return ( + payload_.repr != AUTO_BITS && payload_.repr != ZERO_BITS_POINT && + payload_.repr != ZERO_BITS_PERCENT && std::isnan(payload_.value)); + } + + bool isAuto() const noexcept { return payload_.repr == AUTO_BITS; } + +private: + union Payload { + float value; + uint32_t repr; + Payload() = delete; + constexpr Payload(uint32_t r) : repr(r) {} + constexpr Payload(float v) : value(v) {} + }; + + static constexpr uint32_t BIAS = 0x20000000; + static constexpr uint32_t PERCENT_BIT = 0x40000000; + + // these are signaling NaNs with specific bit pattern as payload they will be + // silenced whenever going through an FPU operation on ARM + x86 + static constexpr uint32_t AUTO_BITS = 0x7faaaaaa; + static constexpr uint32_t ZERO_BITS_POINT = 0x7f8f0f0f; + static constexpr uint32_t ZERO_BITS_PERCENT = 0x7f80f0f0; + + constexpr CompactValue(Payload data) noexcept : payload_(data) {} + + Payload payload_; + + VISIBLE_FOR_TESTING uint32_t repr() { return payload_.repr; } +}; + +template <> +CompactValue CompactValue::of(float) noexcept = delete; +template <> +CompactValue CompactValue::of(float) noexcept = delete; +template <> +CompactValue CompactValue::ofMaybe(float) noexcept = delete; +template <> +CompactValue CompactValue::ofMaybe(float) noexcept = delete; + +constexpr bool operator==(CompactValue a, CompactValue b) noexcept { + return a.payload_.repr == b.payload_.repr; +} + +constexpr bool operator!=(CompactValue a, CompactValue b) noexcept { + return !(a == b); +} + +} // namespace detail +} // namespace yoga +} // namespace facebook + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Utils.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Utils.h new file mode 100644 index 0000000..8588ecc --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Utils.h @@ -0,0 +1,152 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "YGNode.h" +#include "Yoga-internal.h" +#include "CompactValue.h" + +// This struct is an helper model to hold the data for step 4 of flexbox algo, +// which is collecting the flex items in a line. +// +// - itemsOnLine: Number of items which can fit in a line considering the +// available Inner dimension, the flex items computed flexbasis and their +// margin. It may be different than the difference between start and end +// indicates because we skip over absolute-positioned items. +// +// - sizeConsumedOnCurrentLine: It is accumulation of the dimensions and margin +// of all the children on the current line. This will be used in order to +// either set the dimensions of the node if none already exist or to compute +// the remaining space left for the flexible children. +// +// - totalFlexGrowFactors: total flex grow factors of flex items which are to be +// layed in the current line +// +// - totalFlexShrinkFactors: total flex shrink factors of flex items which are +// to be layed in the current line +// +// - endOfLineIndex: Its the end index of the last flex item which was examined +// and it may or may not be part of the current line(as it may be absolutely +// positioned or including it may have caused to overshoot availableInnerDim) +// +// - relativeChildren: Maintain a vector of the child nodes that can shrink +// and/or grow. + +struct YGCollectFlexItemsRowValues { + uint32_t itemsOnLine; + float sizeConsumedOnCurrentLine; + float totalFlexGrowFactors; + float totalFlexShrinkScaledFactors; + uint32_t endOfLineIndex; + std::vector relativeChildren; + float remainingFreeSpace; + // The size of the mainDim for the row after considering size, padding, margin + // and border of flex items. This is used to calculate maxLineDim after going + // through all the rows to decide on the main axis size of owner. + float mainDim; + // The size of the crossDim for the row after considering size, padding, + // margin and border of flex items. Used for calculating containers crossSize. + float crossDim; +}; + +bool YGValueEqual(const YGValue& a, const YGValue& b); +inline bool YGValueEqual( + facebook::yoga::detail::CompactValue a, + facebook::yoga::detail::CompactValue b) { + return YGValueEqual((YGValue) a, (YGValue) b); +} + +// This custom float equality function returns true if either absolute +// difference between two floats is less than 0.0001f or both are undefined. +bool YGFloatsEqual(const float a, const float b); + +bool YGDoubleEqual(const double a, const double b); + +float YGFloatMax(const float a, const float b); + +YGFloatOptional YGFloatOptionalMax( + const YGFloatOptional op1, + const YGFloatOptional op2); + +float YGFloatMin(const float a, const float b); + +// This custom float comparison function compares the array of float with +// YGFloatsEqual, as the default float comparison operator will not work(Look +// at the comments of YGFloatsEqual function). +template +bool YGFloatArrayEqual( + const std::array& val1, + const std::array& val2) { + bool areEqual = true; + for (std::size_t i = 0; i < size && areEqual; ++i) { + areEqual = YGFloatsEqual(val1[i], val2[i]); + } + return areEqual; +} + +// This function returns 0 if YGFloatIsUndefined(val) is true and val otherwise +float YGFloatSanitize(const float val); + +YGFlexDirection YGFlexDirectionCross( + const YGFlexDirection flexDirection, + const YGDirection direction); + +inline bool YGFlexDirectionIsRow(const YGFlexDirection flexDirection) { + return flexDirection == YGFlexDirectionRow || + flexDirection == YGFlexDirectionRowReverse; +} + +inline YGFloatOptional YGResolveValue( + const YGValue value, + const float ownerSize) { + switch (value.unit) { + case YGUnitPoint: + return YGFloatOptional{value.value}; + case YGUnitPercent: + return YGFloatOptional{value.value * ownerSize * 0.01f}; + default: + return YGFloatOptional{}; + } +} + +inline YGFloatOptional YGResolveValue( + yoga::detail::CompactValue value, + float ownerSize) { + return YGResolveValue((YGValue) value, ownerSize); +} + +inline bool YGFlexDirectionIsColumn(const YGFlexDirection flexDirection) { + return flexDirection == YGFlexDirectionColumn || + flexDirection == YGFlexDirectionColumnReverse; +} + +inline YGFlexDirection YGResolveFlexDirection( + const YGFlexDirection flexDirection, + const YGDirection direction) { + if (direction == YGDirectionRTL) { + if (flexDirection == YGFlexDirectionRow) { + return YGFlexDirectionRowReverse; + } else if (flexDirection == YGFlexDirectionRowReverse) { + return YGFlexDirectionRow; + } + } + + return flexDirection; +} + +inline YGFloatOptional YGResolveValueMargin( + yoga::detail::CompactValue value, + const float ownerSize) { + return value.isAuto() ? YGFloatOptional{0} : YGResolveValue(value, ownerSize); +} + +void throwLogicalErrorWithMessage(const char* message); + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGConfig.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGConfig.h new file mode 100644 index 0000000..e15cc12 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGConfig.h @@ -0,0 +1,81 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "Yoga-internal.h" +#include "Yoga.h" + +struct YOGA_EXPORT YGConfig { + using LogWithContextFn = int (*)( + YGConfigRef config, + YGNodeRef node, + YGLogLevel level, + void* context, + const char* format, + va_list args); + using CloneWithContextFn = YGNodeRef (*)( + YGNodeRef node, + YGNodeRef owner, + int childIndex, + void* cloneContext); + +private: + union { + CloneWithContextFn withContext; + YGCloneNodeFunc noContext; + } cloneNodeCallback_; + union { + LogWithContextFn withContext; + YGLogger noContext; + } logger_; + bool cloneNodeUsesContext_; + bool loggerUsesContext_; + +public: + bool useWebDefaults = false; + bool useLegacyStretchBehaviour = false; + bool shouldDiffLayoutWithoutLegacyStretchBehaviour = false; + bool printTree = false; + float pointScaleFactor = 1.0f; + std::array()> + experimentalFeatures = {}; + void* context = nullptr; + + YGConfig(YGLogger logger); + void log(YGConfig*, YGNode*, YGLogLevel, void*, const char*, va_list); + void setLogger(YGLogger logger) { + logger_.noContext = logger; + loggerUsesContext_ = false; + } + void setLogger(LogWithContextFn logger) { + logger_.withContext = logger; + loggerUsesContext_ = true; + } + void setLogger(std::nullptr_t) { setLogger(YGLogger{nullptr}); } + + YGNodeRef cloneNode( + YGNodeRef node, + YGNodeRef owner, + int childIndex, + void* cloneContext); + void setCloneNodeCallback(YGCloneNodeFunc cloneNode) { + cloneNodeCallback_.noContext = cloneNode; + cloneNodeUsesContext_ = false; + } + void setCloneNodeCallback(CloneWithContextFn cloneNode) { + cloneNodeCallback_.withContext = cloneNode; + cloneNodeUsesContext_ = true; + } + void setCloneNodeCallback(std::nullptr_t) { + setCloneNodeCallback(YGCloneNodeFunc{nullptr}); + } +}; + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGEnums.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGEnums.h index 3dc458d..c14daaa 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGEnums.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGEnums.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGFloatOptional.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGFloatOptional.h new file mode 100644 index 0000000..6af7bba --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGFloatOptional.h @@ -0,0 +1,74 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include +#include +#include "Yoga-internal.h" + +struct YGFloatOptional { +private: + float value_ = std::numeric_limits::quiet_NaN(); + +public: + explicit constexpr YGFloatOptional(float value) : value_(value) {} + constexpr YGFloatOptional() = default; + + // returns the wrapped value, or a value x with YGIsUndefined(x) == true + constexpr float unwrap() const { return value_; } + + bool isUndefined() const { return std::isnan(value_); } +}; + +// operators take YGFloatOptional by value, as it is a 32bit value + +inline bool operator==(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs.unwrap() == rhs.unwrap() || + (lhs.isUndefined() && rhs.isUndefined()); +} +inline bool operator!=(YGFloatOptional lhs, YGFloatOptional rhs) { + return !(lhs == rhs); +} + +inline bool operator==(YGFloatOptional lhs, float rhs) { + return lhs == YGFloatOptional{rhs}; +} +inline bool operator!=(YGFloatOptional lhs, float rhs) { + return !(lhs == rhs); +} + +inline bool operator==(float lhs, YGFloatOptional rhs) { + return rhs == lhs; +} +inline bool operator!=(float lhs, YGFloatOptional rhs) { + return !(lhs == rhs); +} + +inline YGFloatOptional operator+(YGFloatOptional lhs, YGFloatOptional rhs) { + return YGFloatOptional{lhs.unwrap() + rhs.unwrap()}; +} + +inline bool operator>(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs.unwrap() > rhs.unwrap(); +} + +inline bool operator<(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs.unwrap() < rhs.unwrap(); +} + +inline bool operator>=(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs > rhs || lhs == rhs; +} + +inline bool operator<=(YGFloatOptional lhs, YGFloatOptional rhs) { + return lhs < rhs || lhs == rhs; +} + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGLayout.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGLayout.h new file mode 100644 index 0000000..e3a4a19 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGLayout.h @@ -0,0 +1,92 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "BitUtils.h" +#include "YGFloatOptional.h" +#include "Yoga-internal.h" + +using namespace facebook::yoga; + +struct YGLayout { + std::array position = {}; + std::array dimensions = {{YGUndefined, YGUndefined}}; + std::array margin = {}; + std::array border = {}; + std::array padding = {}; + +private: + static constexpr size_t directionOffset = 0; + static constexpr size_t didUseLegacyFlagOffset = + directionOffset + facebook::yoga::detail::bitWidthFn(); + static constexpr size_t doesLegacyStretchFlagAffectsLayoutOffset = + didUseLegacyFlagOffset + 1; + static constexpr size_t hadOverflowOffset = + doesLegacyStretchFlagAffectsLayoutOffset + 1; + uint8_t flags = 0; + +public: + uint32_t computedFlexBasisGeneration = 0; + YGFloatOptional computedFlexBasis = {}; + + // Instead of recomputing the entire layout every single time, we cache some + // information to break early when nothing changed + uint32_t generationCount = 0; + YGDirection lastOwnerDirection = YGDirectionInherit; + + uint32_t nextCachedMeasurementsIndex = 0; + std::array + cachedMeasurements = {}; + std::array measuredDimensions = {{YGUndefined, YGUndefined}}; + + YGCachedMeasurement cachedLayout = YGCachedMeasurement(); + + YGDirection direction() const { + return facebook::yoga::detail::getEnumData( + flags, directionOffset); + } + + void setDirection(YGDirection direction) { + facebook::yoga::detail::setEnumData( + flags, directionOffset, direction); + } + + bool didUseLegacyFlag() const { + return facebook::yoga::detail::getBooleanData( + flags, didUseLegacyFlagOffset); + } + + void setDidUseLegacyFlag(bool val) { + facebook::yoga::detail::setBooleanData(flags, didUseLegacyFlagOffset, val); + } + + bool doesLegacyStretchFlagAffectsLayout() const { + return facebook::yoga::detail::getBooleanData( + flags, doesLegacyStretchFlagAffectsLayoutOffset); + } + + void setDoesLegacyStretchFlagAffectsLayout(bool val) { + facebook::yoga::detail::setBooleanData( + flags, doesLegacyStretchFlagAffectsLayoutOffset, val); + } + + bool hadOverflow() const { + return facebook::yoga::detail::getBooleanData(flags, hadOverflowOffset); + } + void setHadOverflow(bool hadOverflow) { + facebook::yoga::detail::setBooleanData( + flags, hadOverflowOffset, hadOverflow); + } + + bool operator==(YGLayout layout) const; + bool operator!=(YGLayout layout) const { return !(*this == layout); } +}; + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGMacros.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGMacros.h index c6917f1..9211c87 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGMacros.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGMacros.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNode.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNode.h index 4b6e627..8c51123 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNode.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNode.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNodePrint.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNodePrint.h new file mode 100644 index 0000000..83b3f86 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGNodePrint.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#ifdef DEBUG + +#pragma once + +#ifdef __cplusplus + +#include + +#include "Yoga.h" + +namespace facebook { +namespace yoga { + +void YGNodeToString( + std::string& str, + YGNodeRef node, + YGPrintOptions options, + uint32_t level); + +} // namespace yoga +} // namespace facebook + +#endif + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGStyle.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGStyle.h index aab7599..b463623 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGStyle.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGStyle.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGValue.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGValue.h index a200097..11beb3e 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGValue.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/YGValue.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga-internal.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga-internal.h new file mode 100644 index 0000000..492543e --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga-internal.h @@ -0,0 +1,155 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include +#include +#include +#include +#include "CompactValue.h" +#include "Yoga.h" + +using YGVector = std::vector; + +YG_EXTERN_C_BEGIN + +void YGNodeCalculateLayoutWithContext( + YGNodeRef node, + float availableWidth, + float availableHeight, + YGDirection ownerDirection, + void* layoutContext); + +YG_EXTERN_C_END + +namespace facebook { +namespace yoga { + +inline bool isUndefined(float value) { + return std::isnan(value); +} + +inline bool isUndefined(double value) { + return std::isnan(value); +} + +} // namespace yoga +} // namespace facebook + +using namespace facebook; + +extern const std::array trailing; +extern const std::array leading; +extern const YGValue YGValueUndefined; +extern const YGValue YGValueAuto; +extern const YGValue YGValueZero; + +struct YGCachedMeasurement { + float availableWidth; + float availableHeight; + YGMeasureMode widthMeasureMode; + YGMeasureMode heightMeasureMode; + + float computedWidth; + float computedHeight; + + YGCachedMeasurement() + : availableWidth(-1), + availableHeight(-1), + widthMeasureMode(YGMeasureModeUndefined), + heightMeasureMode(YGMeasureModeUndefined), + computedWidth(-1), + computedHeight(-1) {} + + bool operator==(YGCachedMeasurement measurement) const { + bool isEqual = widthMeasureMode == measurement.widthMeasureMode && + heightMeasureMode == measurement.heightMeasureMode; + + if (!yoga::isUndefined(availableWidth) || + !yoga::isUndefined(measurement.availableWidth)) { + isEqual = isEqual && availableWidth == measurement.availableWidth; + } + if (!yoga::isUndefined(availableHeight) || + !yoga::isUndefined(measurement.availableHeight)) { + isEqual = isEqual && availableHeight == measurement.availableHeight; + } + if (!yoga::isUndefined(computedWidth) || + !yoga::isUndefined(measurement.computedWidth)) { + isEqual = isEqual && computedWidth == measurement.computedWidth; + } + if (!yoga::isUndefined(computedHeight) || + !yoga::isUndefined(measurement.computedHeight)) { + isEqual = isEqual && computedHeight == measurement.computedHeight; + } + + return isEqual; + } +}; + +// This value was chosen based on empirical data: +// 98% of analyzed layouts require less than 8 entries. +#define YG_MAX_CACHED_RESULT_COUNT 8 + +namespace facebook { +namespace yoga { +namespace detail { + +template +class Values { +private: + std::array values_; + +public: + Values() = default; + explicit Values(const YGValue& defaultValue) noexcept { + values_.fill(defaultValue); + } + + const CompactValue& operator[](size_t i) const noexcept { return values_[i]; } + CompactValue& operator[](size_t i) noexcept { return values_[i]; } + + template + YGValue get() const noexcept { + return std::get(values_); + } + + template + void set(YGValue& value) noexcept { + std::get(values_) = value; + } + + template + void set(YGValue&& value) noexcept { + set(value); + } + + bool operator==(const Values& other) const noexcept { + for (size_t i = 0; i < Size; ++i) { + if (values_[i] != other.values_[i]) { + return false; + } + } + return true; + } + + Values& operator=(const Values& other) = default; +}; + +} // namespace detail +} // namespace yoga +} // namespace facebook + +static const float kDefaultFlexGrow = 0.0f; +static const float kDefaultFlexShrink = 0.0f; +static const float kWebDefaultFlexShrink = 1.0f; + +extern bool YGFloatsEqual(const float a, const float b); + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga.h index 86cd65e..3444658 100644 --- a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga.h +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/Yoga.h @@ -1,5 +1,5 @@ /* - * Copyright (c) Facebook, Inc. and its affiliates. + * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/log.h b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/log.h new file mode 100644 index 0000000..b9bfea4 --- /dev/null +++ b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/Headers/yoga/log.h @@ -0,0 +1,42 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +#pragma once + +#ifdef __cplusplus + +#include "YGEnums.h" + +struct YGNode; +struct YGConfig; + +namespace facebook { +namespace yoga { + +namespace detail { + +struct Log { + static void log( + YGNode* node, + YGLogLevel level, + void*, + const char* message, + ...) noexcept; + + static void log( + YGConfig* config, + YGLogLevel level, + void*, + const char* format, + ...) noexcept; +}; + +} // namespace detail +} // namespace yoga +} // namespace facebook + +#endif diff --git a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/libYoga.a b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/libYoga.a index f228f66..77d0a20 100644 Binary files a/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/libYoga.a and b/Frameworks/Yoga.xcframework/ios-arm64_x86_64-simulator/libYoga.a differ diff --git a/Frameworks/glog.xcframework/Info.plist b/Frameworks/glog.xcframework/Info.plist index 34ca58e..3feac22 100644 --- a/Frameworks/glog.xcframework/Info.plist +++ b/Frameworks/glog.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libglog.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libglog.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libglog.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libglog.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libglog.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/commandlineflags.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/commandlineflags.h new file mode 100644 index 0000000..c8d5089 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/commandlineflags.h @@ -0,0 +1,133 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- +// This file is a compatibility layer that defines Google's version of +// command line flags that are used for configuration. +// +// We put flags into their own namespace. It is purposefully +// named in an opaque way that people should have trouble typing +// directly. The idea is that DEFINE puts the flag in the weird +// namespace, and DECLARE imports the flag from there into the +// current namespace. The net result is to force people to use +// DECLARE to get access to a flag, rather than saying +// extern bool FLAGS_logtostderr; +// or some such instead. We want this so we can put extra +// functionality (like sanity-checking) in DECLARE if we want, +// and make sure it is picked up everywhere. +// +// We also put the type of the variable in the namespace, so that +// people can't DECLARE_int32 something that they DEFINE_bool'd +// elsewhere. +#ifndef BASE_COMMANDLINEFLAGS_H__ +#define BASE_COMMANDLINEFLAGS_H__ + +#include "config.h" +#include +#include // for memchr +#include // for getenv + +#ifdef HAVE_LIB_GFLAGS + +#include + +#else + +#include "glog/logging.h" + +#define DECLARE_VARIABLE(type, shorttype, name, tn) \ + namespace fL##shorttype { \ + extern GOOGLE_GLOG_DLL_DECL type FLAGS_##name; \ + } \ + using fL##shorttype::FLAGS_##name +#define DEFINE_VARIABLE(type, shorttype, name, value, meaning, tn) \ + namespace fL##shorttype { \ + GOOGLE_GLOG_DLL_DECL type FLAGS_##name(value); \ + char FLAGS_no##name; \ + } \ + using fL##shorttype::FLAGS_##name + +// bool specialization +#define DECLARE_bool(name) \ + DECLARE_VARIABLE(bool, B, name, bool) +#define DEFINE_bool(name, value, meaning) \ + DEFINE_VARIABLE(bool, B, name, value, meaning, bool) + +// int32 specialization +#define DECLARE_int32(name) \ + DECLARE_VARIABLE(GOOGLE_NAMESPACE::int32, I, name, int32) +#define DEFINE_int32(name, value, meaning) \ + DEFINE_VARIABLE(GOOGLE_NAMESPACE::int32, I, name, value, meaning, int32) + +// Special case for string, because we have to specify the namespace +// std::string, which doesn't play nicely with our FLAG__namespace hackery. +#define DECLARE_string(name) \ + namespace fLS { \ + extern GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name; \ + } \ + using fLS::FLAGS_##name +#define DEFINE_string(name, value, meaning) \ + namespace fLS { \ + std::string FLAGS_##name##_buf(value); \ + GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name = FLAGS_##name##_buf; \ + char FLAGS_no##name; \ + } \ + using fLS::FLAGS_##name + +#endif // HAVE_LIB_GFLAGS + +// Define GLOG_DEFINE_* using DEFINE_* . By using these macros, we +// have GLOG_* environ variables even if we have gflags installed. +// +// If both an environment variable and a flag are specified, the value +// specified by a flag wins. E.g., if GLOG_v=0 and --v=1, the +// verbosity will be 1, not 0. + +#define GLOG_DEFINE_bool(name, value, meaning) \ + DEFINE_bool(name, EnvToBool("GLOG_" #name, value), meaning) + +#define GLOG_DEFINE_int32(name, value, meaning) \ + DEFINE_int32(name, EnvToInt("GLOG_" #name, value), meaning) + +#define GLOG_DEFINE_string(name, value, meaning) \ + DEFINE_string(name, EnvToString("GLOG_" #name, value), meaning) + +// These macros (could be functions, but I don't want to bother with a .cc +// file), make it easier to initialize flags from the environment. + +#define EnvToString(envname, dflt) \ + (!getenv(envname) ? (dflt) : getenv(envname)) + +#define EnvToBool(envname, dflt) \ + (!getenv(envname) ? (dflt) : memchr("tTyY1\0", getenv(envname)[0], 6) != NULL) + +#define EnvToInt(envname, dflt) \ + (!getenv(envname) ? (dflt) : strtol(getenv(envname), NULL, 10)) + +#endif // BASE_COMMANDLINEFLAGS_H__ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/googleinit.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/googleinit.h new file mode 100644 index 0000000..5a8b515 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/googleinit.h @@ -0,0 +1,51 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- +// Author: Jacob Hoffman-Andrews + +#ifndef _GOOGLEINIT_H +#define _GOOGLEINIT_H + +class GoogleInitializer { + public: + typedef void (*void_function)(void); + GoogleInitializer(const char*, void_function f) { + f(); + } +}; + +#define REGISTER_MODULE_INITIALIZER(name, body) \ + namespace { \ + static void google_init_module_##name () { body; } \ + GoogleInitializer google_initializer_module_##name(#name, \ + google_init_module_##name); \ + } + +#endif /* _GOOGLEINIT_H */ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/mutex.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/mutex.h new file mode 100644 index 0000000..ced2b99 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/base/mutex.h @@ -0,0 +1,333 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// --- +// Author: Craig Silverstein. +// +// A simple mutex wrapper, supporting locks and read-write locks. +// You should assume the locks are *not* re-entrant. +// +// To use: you should define the following macros in your configure.ac: +// ACX_PTHREAD +// AC_RWLOCK +// The latter is defined in ../autoconf. +// +// This class is meant to be internal-only and should be wrapped by an +// internal namespace. Before you use this module, please give the +// name of your internal namespace for this module. Or, if you want +// to expose it, you'll want to move it to the Google namespace. We +// cannot put this class in global namespace because there can be some +// problems when we have multiple versions of Mutex in each shared object. +// +// NOTE: by default, we have #ifdef'ed out the TryLock() method. +// This is for two reasons: +// 1) TryLock() under Windows is a bit annoying (it requires a +// #define to be defined very early). +// 2) TryLock() is broken for NO_THREADS mode, at least in NDEBUG +// mode. +// If you need TryLock(), and either these two caveats are not a +// problem for you, or you're willing to work around them, then +// feel free to #define GMUTEX_TRYLOCK, or to remove the #ifdefs +// in the code below. +// +// CYGWIN NOTE: Cygwin support for rwlock seems to be buggy: +// http://www.cygwin.com/ml/cygwin/2008-12/msg00017.html +// Because of that, we might as well use windows locks for +// cygwin. They seem to be more reliable than the cygwin pthreads layer. +// +// TRICKY IMPLEMENTATION NOTE: +// This class is designed to be safe to use during +// dynamic-initialization -- that is, by global constructors that are +// run before main() starts. The issue in this case is that +// dynamic-initialization happens in an unpredictable order, and it +// could be that someone else's dynamic initializer could call a +// function that tries to acquire this mutex -- but that all happens +// before this mutex's constructor has run. (This can happen even if +// the mutex and the function that uses the mutex are in the same .cc +// file.) Basically, because Mutex does non-trivial work in its +// constructor, it's not, in the naive implementation, safe to use +// before dynamic initialization has run on it. +// +// The solution used here is to pair the actual mutex primitive with a +// bool that is set to true when the mutex is dynamically initialized. +// (Before that it's false.) Then we modify all mutex routines to +// look at the bool, and not try to lock/unlock until the bool makes +// it to true (which happens after the Mutex constructor has run.) +// +// This works because before main() starts -- particularly, during +// dynamic initialization -- there are no threads, so a) it's ok that +// the mutex operations are a no-op, since we don't need locking then +// anyway; and b) we can be quite confident our bool won't change +// state between a call to Lock() and a call to Unlock() (that would +// require a global constructor in one translation unit to call Lock() +// and another global constructor in another translation unit to call +// Unlock() later, which is pretty perverse). +// +// That said, it's tricky, and can conceivably fail; it's safest to +// avoid trying to acquire a mutex in a global constructor, if you +// can. One way it can fail is that a really smart compiler might +// initialize the bool to true at static-initialization time (too +// early) rather than at dynamic-initialization time. To discourage +// that, we set is_safe_ to true in code (not the constructor +// colon-initializer) and set it to true via a function that always +// evaluates to true, but that the compiler can't know always +// evaluates to true. This should be good enough. + +#ifndef GOOGLE_MUTEX_H_ +#define GOOGLE_MUTEX_H_ + +#include "config.h" // to figure out pthreads support + +#if defined(NO_THREADS) + typedef int MutexType; // to keep a lock-count +#elif defined(_WIN32) || defined(__CYGWIN32__) || defined(__CYGWIN64__) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN // We only need minimal includes +# endif +# ifdef GMUTEX_TRYLOCK + // We need Windows NT or later for TryEnterCriticalSection(). If you + // don't need that functionality, you can remove these _WIN32_WINNT + // lines, and change TryLock() to assert(0) or something. +# ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x0400 +# endif +# endif +// To avoid macro definition of ERROR. +# ifndef NOGDI +# define NOGDI +# endif +// To avoid macro definition of min/max. +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include + typedef CRITICAL_SECTION MutexType; +#elif defined(HAVE_PTHREAD) && defined(HAVE_RWLOCK) + // Needed for pthread_rwlock_*. If it causes problems, you could take it + // out, but then you'd have to unset HAVE_RWLOCK (at least on linux -- it + // *does* cause problems for FreeBSD, or MacOSX, but isn't needed + // for locking there.) +# ifdef __linux__ +# ifndef _XOPEN_SOURCE // Some other header might have already set it for us. +# define _XOPEN_SOURCE 500 // may be needed to get the rwlock calls +# endif +# endif +# include + typedef pthread_rwlock_t MutexType; +#elif defined(HAVE_PTHREAD) +# include + typedef pthread_mutex_t MutexType; +#else +# error Need to implement mutex.h for your architecture, or #define NO_THREADS +#endif + +// We need to include these header files after defining _XOPEN_SOURCE +// as they may define the _XOPEN_SOURCE macro. +#include +#include // for abort() + +#define MUTEX_NAMESPACE glog_internal_namespace_ + +namespace MUTEX_NAMESPACE { + +class Mutex { + public: + // Create a Mutex that is not held by anybody. This constructor is + // typically used for Mutexes allocated on the heap or the stack. + // See below for a recommendation for constructing global Mutex + // objects. + inline Mutex(); + + // Destructor + inline ~Mutex(); + + inline void Lock(); // Block if needed until free then acquire exclusively + inline void Unlock(); // Release a lock acquired via Lock() +#ifdef GMUTEX_TRYLOCK + inline bool TryLock(); // If free, Lock() and return true, else return false +#endif + // Note that on systems that don't support read-write locks, these may + // be implemented as synonyms to Lock() and Unlock(). So you can use + // these for efficiency, but don't use them anyplace where being able + // to do shared reads is necessary to avoid deadlock. + inline void ReaderLock(); // Block until free or shared then acquire a share + inline void ReaderUnlock(); // Release a read share of this Mutex + inline void WriterLock() { Lock(); } // Acquire an exclusive lock + inline void WriterUnlock() { Unlock(); } // Release a lock from WriterLock() + + // TODO(hamaji): Do nothing, implement correctly. + inline void AssertHeld() {} + + private: + MutexType mutex_; + // We want to make sure that the compiler sets is_safe_ to true only + // when we tell it to, and never makes assumptions is_safe_ is + // always true. volatile is the most reliable way to do that. + volatile bool is_safe_; + + inline void SetIsSafe() { is_safe_ = true; } + + // Catch the error of writing Mutex when intending MutexLock. + Mutex(Mutex* /*ignored*/) {} + // Disallow "evil" constructors + Mutex(const Mutex&); + void operator=(const Mutex&); +}; + +// Now the implementation of Mutex for various systems +#if defined(NO_THREADS) + +// When we don't have threads, we can be either reading or writing, +// but not both. We can have lots of readers at once (in no-threads +// mode, that's most likely to happen in recursive function calls), +// but only one writer. We represent this by having mutex_ be -1 when +// writing and a number > 0 when reading (and 0 when no lock is held). +// +// In debug mode, we assert these invariants, while in non-debug mode +// we do nothing, for efficiency. That's why everything is in an +// assert. + +Mutex::Mutex() : mutex_(0) { } +Mutex::~Mutex() { assert(mutex_ == 0); } +void Mutex::Lock() { assert(--mutex_ == -1); } +void Mutex::Unlock() { assert(mutex_++ == -1); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } +#endif +void Mutex::ReaderLock() { assert(++mutex_ > 0); } +void Mutex::ReaderUnlock() { assert(mutex_-- > 0); } + +#elif defined(_WIN32) || defined(__CYGWIN32__) || defined(__CYGWIN64__) + +Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); } +Mutex::~Mutex() { DeleteCriticalSection(&mutex_); } +void Mutex::Lock() { if (is_safe_) EnterCriticalSection(&mutex_); } +void Mutex::Unlock() { if (is_safe_) LeaveCriticalSection(&mutex_); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { return is_safe_ ? + TryEnterCriticalSection(&mutex_) != 0 : true; } +#endif +void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks +void Mutex::ReaderUnlock() { Unlock(); } + +#elif defined(HAVE_PTHREAD) && defined(HAVE_RWLOCK) + +#define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ + if (is_safe_ && fncall(&mutex_) != 0) abort(); \ +} while (0) + +Mutex::Mutex() { + SetIsSafe(); + if (is_safe_ && pthread_rwlock_init(&mutex_, NULL) != 0) abort(); +} +Mutex::~Mutex() { SAFE_PTHREAD(pthread_rwlock_destroy); } +void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock); } +void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { return is_safe_ ? + pthread_rwlock_trywrlock(&mutex_) == 0 : + true; } +#endif +void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock); } +void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock); } +#undef SAFE_PTHREAD + +#elif defined(HAVE_PTHREAD) + +#define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ + if (is_safe_ && fncall(&mutex_) != 0) abort(); \ +} while (0) + +Mutex::Mutex() { + SetIsSafe(); + if (is_safe_ && pthread_mutex_init(&mutex_, NULL) != 0) abort(); +} +Mutex::~Mutex() { SAFE_PTHREAD(pthread_mutex_destroy); } +void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock); } +void Mutex::Unlock() { SAFE_PTHREAD(pthread_mutex_unlock); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { return is_safe_ ? + pthread_mutex_trylock(&mutex_) == 0 : true; } +#endif +void Mutex::ReaderLock() { Lock(); } +void Mutex::ReaderUnlock() { Unlock(); } +#undef SAFE_PTHREAD + +#endif + +// -------------------------------------------------------------------------- +// Some helper classes + +// MutexLock(mu) acquires mu when constructed and releases it when destroyed. +class MutexLock { + public: + explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } + ~MutexLock() { mu_->Unlock(); } + private: + Mutex * const mu_; + // Disallow "evil" constructors + MutexLock(const MutexLock&); + void operator=(const MutexLock&); +}; + +// ReaderMutexLock and WriterMutexLock do the same, for rwlocks +class ReaderMutexLock { + public: + explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } + ~ReaderMutexLock() { mu_->ReaderUnlock(); } + private: + Mutex * const mu_; + // Disallow "evil" constructors + ReaderMutexLock(const ReaderMutexLock&); + void operator=(const ReaderMutexLock&); +}; + +class WriterMutexLock { + public: + explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } + ~WriterMutexLock() { mu_->WriterUnlock(); } + private: + Mutex * const mu_; + // Disallow "evil" constructors + WriterMutexLock(const WriterMutexLock&); + void operator=(const WriterMutexLock&); +}; + +// Catch bug where variable name is omitted, e.g. MutexLock (&mu); +#define MutexLock(x) COMPILE_ASSERT(0, mutex_lock_decl_missing_var_name) +#define ReaderMutexLock(x) COMPILE_ASSERT(0, rmutex_lock_decl_missing_var_name) +#define WriterMutexLock(x) COMPILE_ASSERT(0, wmutex_lock_decl_missing_var_name) + +} // namespace MUTEX_NAMESPACE + +using namespace MUTEX_NAMESPACE; + +#undef MUTEX_NAMESPACE + +#endif /* #define GOOGLE_MUTEX_H__ */ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/config.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/config.h new file mode 100644 index 0000000..f2405f9 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/config.h @@ -0,0 +1,195 @@ +/* src/config.h. Generated from config.h.in by configure. */ +/* src/config.h.in. Generated from configure.ac by autoheader. */ + +/* define if glog doesn't use RTTI */ +/* #undef DISABLE_RTTI */ + +/* Namespace for Google classes */ +#define GOOGLE_NAMESPACE google + +/* Define if you have the `dladdr' function */ +#define HAVE_DLADDR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_EXECINFO_H 1 + +/* Define if you have the `fcntl' function */ +#define HAVE_FCNTL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GLOB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIBUNWIND_H 1 + +/* define if you have google gflags library */ +/* #undef HAVE_LIB_GFLAGS_DISABLED */ + +/* define if you have google gmock library */ +/* #undef HAVE_LIB_GMOCK */ + +/* define if you have google gtest library */ +/* #undef HAVE_LIB_GTEST */ + +/* define if you have libunwind */ +/* #undef HAVE_LIB_UNWIND */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* define if the compiler implements namespaces */ +#define HAVE_NAMESPACES 1 + +/* Define if you have the 'pread' function */ +#define HAVE_PREAD 1 + +/* Define if you have POSIX threads libraries and header files. */ +#define HAVE_PTHREAD 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_PWD_H 1 + +/* Define if you have the 'pwrite' function */ +#define HAVE_PWRITE 1 + +/* define if the compiler implements pthread_rwlock_* */ +#define HAVE_RWLOCK 1 + +/* Define if you have the 'sigaction' function */ +#define HAVE_SIGACTION 1 + +/* Define if you have the `sigaltstack' function */ +#define HAVE_SIGALTSTACK 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYSCALL_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYSLOG_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_UCONTEXT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_UTSNAME_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_UCONTEXT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNWIND_H 1 + +/* define if the compiler supports using expression for operator */ +#define HAVE_USING_OPERATOR 1 + +/* define if your compiler has __attribute__ */ +#define HAVE___ATTRIBUTE__ 1 + +/* define if your compiler has __builtin_expect */ +#define HAVE___BUILTIN_EXPECT 1 + +/* define if your compiler has __sync_val_compare_and_swap */ +#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "glog" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "opensource@google.com" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "glog" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "glog 0.3.5" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "glog" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.3.5" + +/* How to access the PC from a struct ucontext */ +/* #undef PC_FROM_UCONTEXT */ + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* The size of `void *', as computed by sizeof. */ +#define SIZEOF_VOID_P 8 + +/* Define to 1 if you have the ANSI C header files. */ +/* #undef STDC_HEADERS */ + +/* the namespace where STL code like vector<> is defined */ +#define STL_NAMESPACE std + +/* location of source code */ +#define TEST_SRC_DIR "." + +/* Version number of package */ +#define VERSION "0.3.5" + +/* Stops putting the code inside the Google namespace */ +#define _END_GOOGLE_NAMESPACE_ } + +/* Puts following code inside the Google namespace */ +#define _START_GOOGLE_NAMESPACE_ namespace google { +/* Add in so we have Apple Target Conditionals */ +#ifdef __APPLE__ +#include +#include +#endif + +/* Special configuration for ucontext */ +#undef HAVE_UCONTEXT_H +#undef PC_FROM_UCONTEXT +#if defined(__x86_64__) +#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip +#elif defined(__i386__) +#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip +#endif diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/config_for_unittests.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/config_for_unittests.h new file mode 100644 index 0000000..13ea8ea --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/config_for_unittests.h @@ -0,0 +1,66 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- +// All Rights Reserved. +// +// Author: Craig Silverstein +// Copied from google-perftools and modified by Shinichiro Hamaji +// +// This file is needed for windows -- unittests are not part of the +// glog dll, but still want to include config.h just like the +// dll does, so they can use internal tools and APIs for testing. +// +// The problem is that config.h declares GOOGLE_GLOG_DLL_DECL to be +// for exporting symbols, but the unittest needs to *import* symbols +// (since it's not the dll). +// +// The solution is to have this file, which is just like config.h but +// sets GOOGLE_GLOG_DLL_DECL to do a dllimport instead of a dllexport. +// +// The reason we need this extra GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS +// variable is in case people want to set GOOGLE_GLOG_DLL_DECL explicitly +// to something other than __declspec(dllexport). In that case, they +// may want to use something other than __declspec(dllimport) for the +// unittest case. For that, we allow folks to define both +// GOOGLE_GLOG_DLL_DECL and GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS explicitly. +// +// NOTE: This file is equivalent to config.h on non-windows systems, +// which never defined GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS and always +// define GOOGLE_GLOG_DLL_DECL to the empty string. + +#include "config.h" + +#undef GOOGLE_GLOG_DLL_DECL +#ifdef GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS +# define GOOGLE_GLOG_DLL_DECL GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS +#else +// if DLL_DECL_FOR_UNITTESTS isn't defined, use "" +# define GOOGLE_GLOG_DLL_DECL +#endif diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/demangle.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/demangle.h new file mode 100644 index 0000000..991b6ff --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/demangle.h @@ -0,0 +1,85 @@ +// Copyright (c) 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Satoru Takabayashi +// +// An async-signal-safe and thread-safe demangler for Itanium C++ ABI +// (aka G++ V3 ABI). + +// The demangler is implemented to be used in async signal handlers to +// symbolize stack traces. We cannot use libstdc++'s +// abi::__cxa_demangle() in such signal handlers since it's not async +// signal safe (it uses malloc() internally). +// +// Note that this demangler doesn't support full demangling. More +// specifically, it doesn't print types of function parameters and +// types of template arguments. It just skips them. However, it's +// still very useful to extract basic information such as class, +// function, constructor, destructor, and operator names. +// +// See the implementation note in demangle.cc if you are interested. +// +// Example: +// +// | Mangled Name | The Demangler | abi::__cxa_demangle() +// |---------------|---------------|----------------------- +// | _Z1fv | f() | f() +// | _Z1fi | f() | f(int) +// | _Z3foo3bar | foo() | foo(bar) +// | _Z1fIiEvi | f<>() | void f(int) +// | _ZN1N1fE | N::f | N::f +// | _ZN3Foo3BarEv | Foo::Bar() | Foo::Bar() +// | _Zrm1XS_" | operator%() | operator%(X, X) +// | _ZN3FooC1Ev | Foo::Foo() | Foo::Foo() +// | _Z1fSs | f() | f(std::basic_string, +// | | | std::allocator >) +// +// See the unit test for more examples. +// +// Note: we might want to write demanglers for ABIs other than Itanium +// C++ ABI in the future. +// + +#ifndef BASE_DEMANGLE_H_ +#define BASE_DEMANGLE_H_ + +#include "config.h" +#include "glog/logging.h" + +_START_GOOGLE_NAMESPACE_ + +// Demangle "mangled". On success, return true and write the +// demangled symbol name to "out". Otherwise, return false. +// "out" is modified even if demangling is unsuccessful. +bool GOOGLE_GLOG_DLL_DECL Demangle(const char *mangled, char *out, int out_size); + +_END_GOOGLE_NAMESPACE_ + +#endif // BASE_DEMANGLE_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/log_severity.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/log_severity.h new file mode 100644 index 0000000..99945a4 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/log_severity.h @@ -0,0 +1,92 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#ifndef BASE_LOG_SEVERITY_H__ +#define BASE_LOG_SEVERITY_H__ + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +// Variables of type LogSeverity are widely taken to lie in the range +// [0, NUM_SEVERITIES-1]. Be careful to preserve this assumption if +// you ever need to change their values or add a new severity. +typedef int LogSeverity; + +const int GLOG_INFO = 0, GLOG_WARNING = 1, GLOG_ERROR = 2, GLOG_FATAL = 3, + NUM_SEVERITIES = 4; +#ifndef GLOG_NO_ABBREVIATED_SEVERITIES +# ifdef ERROR +# error ERROR macro is defined. Define GLOG_NO_ABBREVIATED_SEVERITIES before including logging.h. See the document for detail. +# endif +const int INFO = GLOG_INFO, WARNING = GLOG_WARNING, + ERROR = GLOG_ERROR, FATAL = GLOG_FATAL; +#endif + +// DFATAL is FATAL in debug mode, ERROR in normal mode +#ifdef NDEBUG +#define DFATAL_LEVEL ERROR +#else +#define DFATAL_LEVEL FATAL +#endif + +extern GOOGLE_GLOG_DLL_DECL const char* const LogSeverityNames[NUM_SEVERITIES]; + +// NDEBUG usage helpers related to (RAW_)DCHECK: +// +// DEBUG_MODE is for small !NDEBUG uses like +// if (DEBUG_MODE) foo.CheckThatFoo(); +// instead of substantially more verbose +// #ifndef NDEBUG +// foo.CheckThatFoo(); +// #endif +// +// IF_DEBUG_MODE is for small !NDEBUG uses like +// IF_DEBUG_MODE( string error; ) +// DCHECK(Foo(&error)) << error; +// instead of substantially more verbose +// #ifndef NDEBUG +// string error; +// DCHECK(Foo(&error)) << error; +// #endif +// +#ifdef NDEBUG +enum { DEBUG_MODE = 0 }; +#define IF_DEBUG_MODE(x) +#else +enum { DEBUG_MODE = 1 }; +#define IF_DEBUG_MODE(x) x +#endif + +#endif // BASE_LOG_SEVERITY_H__ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/logging.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/logging.h new file mode 100644 index 0000000..5abdacd --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/logging.h @@ -0,0 +1,1661 @@ +// Copyright (c) 1999, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Ray Sidney +// +// This file contains #include information about logging-related stuff. +// Pretty much everybody needs to #include this file so that they can +// log various happenings. +// +#ifndef _LOGGING_H_ +#define _LOGGING_H_ + +#include +#include +#include +#include +#include +#include +#include +#if 1 +# include +#endif +#include + +#if defined(_MSC_VER) +#define GLOG_MSVC_PUSH_DISABLE_WARNING(n) __pragma(warning(push)) \ + __pragma(warning(disable:n)) +#define GLOG_MSVC_POP_WARNING() __pragma(warning(pop)) +#else +#define GLOG_MSVC_PUSH_DISABLE_WARNING(n) +#define GLOG_MSVC_POP_WARNING() +#endif + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +// We care a lot about number of bits things take up. Unfortunately, +// systems define their bit-specific ints in a lot of different ways. +// We use our own way, and have a typedef to get there. +// Note: these commands below may look like "#if 1" or "#if 0", but +// that's because they were constructed that way at ./configure time. +// Look at logging.h.in to see how they're calculated (based on your config). +#if 1 +#include // the normal place uint16_t is defined +#endif +#if 1 +#include // the normal place u_int16_t is defined +#endif +#if 1 +#include // a third place for uint16_t or u_int16_t +#endif + +#if 0 +#include +#endif + +namespace google { + +#if 1 // the C99 format +typedef int32_t int32; +typedef uint32_t uint32; +typedef int64_t int64; +typedef uint64_t uint64; +#elif 1 // the BSD format +typedef int32_t int32; +typedef u_int32_t uint32; +typedef int64_t int64; +typedef u_int64_t uint64; +#elif 0 // the windows (vc7) format +typedef __int32 int32; +typedef unsigned __int32 uint32; +typedef __int64 int64; +typedef unsigned __int64 uint64; +#else +#error Do not know how to define a 32-bit integer quantity on your system +#endif + +} + +// The global value of GOOGLE_STRIP_LOG. All the messages logged to +// LOG(XXX) with severity less than GOOGLE_STRIP_LOG will not be displayed. +// If it can be determined at compile time that the message will not be +// printed, the statement will be compiled out. +// +// Example: to strip out all INFO and WARNING messages, use the value +// of 2 below. To make an exception for WARNING messages from a single +// file, add "#define GOOGLE_STRIP_LOG 1" to that file _before_ including +// base/logging.h +#ifndef GOOGLE_STRIP_LOG +#define GOOGLE_STRIP_LOG 0 +#endif + +// GCC can be told that a certain branch is not likely to be taken (for +// instance, a CHECK failure), and use that information in static analysis. +// Giving it this information can help it optimize for the common case in +// the absence of better information (ie. -fprofile-arcs). +// +#ifndef GOOGLE_PREDICT_BRANCH_NOT_TAKEN +#if 1 +#define GOOGLE_PREDICT_BRANCH_NOT_TAKEN(x) (__builtin_expect(x, 0)) +#else +#define GOOGLE_PREDICT_BRANCH_NOT_TAKEN(x) x +#endif +#endif + +#ifndef GOOGLE_PREDICT_FALSE +#if 1 +#define GOOGLE_PREDICT_FALSE(x) (__builtin_expect(x, 0)) +#else +#define GOOGLE_PREDICT_FALSE(x) x +#endif +#endif + +#ifndef GOOGLE_PREDICT_TRUE +#if 1 +#define GOOGLE_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1)) +#else +#define GOOGLE_PREDICT_TRUE(x) x +#endif +#endif + + +// Make a bunch of macros for logging. The way to log things is to stream +// things to LOG(). E.g., +// +// LOG(INFO) << "Found " << num_cookies << " cookies"; +// +// You can capture log messages in a string, rather than reporting them +// immediately: +// +// vector errors; +// LOG_STRING(ERROR, &errors) << "Couldn't parse cookie #" << cookie_num; +// +// This pushes back the new error onto 'errors'; if given a NULL pointer, +// it reports the error via LOG(ERROR). +// +// You can also do conditional logging: +// +// LOG_IF(INFO, num_cookies > 10) << "Got lots of cookies"; +// +// You can also do occasional logging (log every n'th occurrence of an +// event): +// +// LOG_EVERY_N(INFO, 10) << "Got the " << google::COUNTER << "th cookie"; +// +// The above will cause log messages to be output on the 1st, 11th, 21st, ... +// times it is executed. Note that the special google::COUNTER value is used +// to identify which repetition is happening. +// +// You can also do occasional conditional logging (log every n'th +// occurrence of an event, when condition is satisfied): +// +// LOG_IF_EVERY_N(INFO, (size > 1024), 10) << "Got the " << google::COUNTER +// << "th big cookie"; +// +// You can log messages the first N times your code executes a line. E.g. +// +// LOG_FIRST_N(INFO, 20) << "Got the " << google::COUNTER << "th cookie"; +// +// Outputs log messages for the first 20 times it is executed. +// +// Analogous SYSLOG, SYSLOG_IF, and SYSLOG_EVERY_N macros are available. +// These log to syslog as well as to the normal logs. If you use these at +// all, you need to be aware that syslog can drastically reduce performance, +// especially if it is configured for remote logging! Don't use these +// unless you fully understand this and have a concrete need to use them. +// Even then, try to minimize your use of them. +// +// There are also "debug mode" logging macros like the ones above: +// +// DLOG(INFO) << "Found cookies"; +// +// DLOG_IF(INFO, num_cookies > 10) << "Got lots of cookies"; +// +// DLOG_EVERY_N(INFO, 10) << "Got the " << google::COUNTER << "th cookie"; +// +// All "debug mode" logging is compiled away to nothing for non-debug mode +// compiles. +// +// We also have +// +// LOG_ASSERT(assertion); +// DLOG_ASSERT(assertion); +// +// which is syntactic sugar for {,D}LOG_IF(FATAL, assert fails) << assertion; +// +// There are "verbose level" logging macros. They look like +// +// VLOG(1) << "I'm printed when you run the program with --v=1 or more"; +// VLOG(2) << "I'm printed when you run the program with --v=2 or more"; +// +// These always log at the INFO log level (when they log at all). +// The verbose logging can also be turned on module-by-module. For instance, +// --vmodule=mapreduce=2,file=1,gfs*=3 --v=0 +// will cause: +// a. VLOG(2) and lower messages to be printed from mapreduce.{h,cc} +// b. VLOG(1) and lower messages to be printed from file.{h,cc} +// c. VLOG(3) and lower messages to be printed from files prefixed with "gfs" +// d. VLOG(0) and lower messages to be printed from elsewhere +// +// The wildcarding functionality shown by (c) supports both '*' (match +// 0 or more characters) and '?' (match any single character) wildcards. +// +// There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as +// +// if (VLOG_IS_ON(2)) { +// // do some logging preparation and logging +// // that can't be accomplished with just VLOG(2) << ...; +// } +// +// There are also VLOG_IF, VLOG_EVERY_N and VLOG_IF_EVERY_N "verbose level" +// condition macros for sample cases, when some extra computation and +// preparation for logs is not needed. +// VLOG_IF(1, (size > 1024)) +// << "I'm printed when size is more than 1024 and when you run the " +// "program with --v=1 or more"; +// VLOG_EVERY_N(1, 10) +// << "I'm printed every 10th occurrence, and when you run the program " +// "with --v=1 or more. Present occurence is " << google::COUNTER; +// VLOG_IF_EVERY_N(1, (size > 1024), 10) +// << "I'm printed on every 10th occurence of case when size is more " +// " than 1024, when you run the program with --v=1 or more. "; +// "Present occurence is " << google::COUNTER; +// +// The supported severity levels for macros that allow you to specify one +// are (in increasing order of severity) INFO, WARNING, ERROR, and FATAL. +// Note that messages of a given severity are logged not only in the +// logfile for that severity, but also in all logfiles of lower severity. +// E.g., a message of severity FATAL will be logged to the logfiles of +// severity FATAL, ERROR, WARNING, and INFO. +// +// There is also the special severity of DFATAL, which logs FATAL in +// debug mode, ERROR in normal mode. +// +// Very important: logging a message at the FATAL severity level causes +// the program to terminate (after the message is logged). +// +// Unless otherwise specified, logs will be written to the filename +// "...log..", followed +// by the date, time, and pid (you can't prevent the date, time, and pid +// from being in the filename). +// +// The logging code takes two flags: +// --v=# set the verbose level +// --logtostderr log all the messages to stderr instead of to logfiles + +// LOG LINE PREFIX FORMAT +// +// Log lines have this form: +// +// Lmmdd hh:mm:ss.uuuuuu threadid file:line] msg... +// +// where the fields are defined as follows: +// +// L A single character, representing the log level +// (eg 'I' for INFO) +// mm The month (zero padded; ie May is '05') +// dd The day (zero padded) +// hh:mm:ss.uuuuuu Time in hours, minutes and fractional seconds +// threadid The space-padded thread ID as returned by GetTID() +// (this matches the PID on Linux) +// file The file name +// line The line number +// msg The user-supplied message +// +// Example: +// +// I1103 11:57:31.739339 24395 google.cc:2341] Command line: ./some_prog +// I1103 11:57:31.739403 24395 google.cc:2342] Process id 24395 +// +// NOTE: although the microseconds are useful for comparing events on +// a single machine, clocks on different machines may not be well +// synchronized. Hence, use caution when comparing the low bits of +// timestamps from different machines. + +#ifndef DECLARE_VARIABLE +#define MUST_UNDEF_GFLAGS_DECLARE_MACROS +#define DECLARE_VARIABLE(type, shorttype, name, tn) \ + namespace fL##shorttype { \ + extern GOOGLE_GLOG_DLL_DECL type FLAGS_##name; \ + } \ + using fL##shorttype::FLAGS_##name + +// bool specialization +#define DECLARE_bool(name) \ + DECLARE_VARIABLE(bool, B, name, bool) + +// int32 specialization +#define DECLARE_int32(name) \ + DECLARE_VARIABLE(google::int32, I, name, int32) + +// Special case for string, because we have to specify the namespace +// std::string, which doesn't play nicely with our FLAG__namespace hackery. +#define DECLARE_string(name) \ + namespace fLS { \ + extern GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name; \ + } \ + using fLS::FLAGS_##name +#endif + +// Set whether log messages go to stderr instead of logfiles +DECLARE_bool(logtostderr); + +// Set whether log messages go to stderr in addition to logfiles. +DECLARE_bool(alsologtostderr); + +// Set color messages logged to stderr (if supported by terminal). +DECLARE_bool(colorlogtostderr); + +// Log messages at a level >= this flag are automatically sent to +// stderr in addition to log files. +DECLARE_int32(stderrthreshold); + +// Set whether the log prefix should be prepended to each line of output. +DECLARE_bool(log_prefix); + +// Log messages at a level <= this flag are buffered. +// Log messages at a higher level are flushed immediately. +DECLARE_int32(logbuflevel); + +// Sets the maximum number of seconds which logs may be buffered for. +DECLARE_int32(logbufsecs); + +// Log suppression level: messages logged at a lower level than this +// are suppressed. +DECLARE_int32(minloglevel); + +// If specified, logfiles are written into this directory instead of the +// default logging directory. +DECLARE_string(log_dir); + +// Set the log file mode. +DECLARE_int32(logfile_mode); + +// Sets the path of the directory into which to put additional links +// to the log files. +DECLARE_string(log_link); + +DECLARE_int32(v); // in vlog_is_on.cc + +// Sets the maximum log file size (in MB). +DECLARE_int32(max_log_size); + +// Sets whether to avoid logging to the disk if the disk is full. +DECLARE_bool(stop_logging_if_full_disk); + +#ifdef MUST_UNDEF_GFLAGS_DECLARE_MACROS +#undef MUST_UNDEF_GFLAGS_DECLARE_MACROS +#undef DECLARE_VARIABLE +#undef DECLARE_bool +#undef DECLARE_int32 +#undef DECLARE_string +#endif + +// Log messages below the GOOGLE_STRIP_LOG level will be compiled away for +// security reasons. See LOG(severtiy) below. + +// A few definitions of macros that don't generate much code. Since +// LOG(INFO) and its ilk are used all over our code, it's +// better to have compact code for these operations. + +#if GOOGLE_STRIP_LOG == 0 +#define COMPACT_GOOGLE_LOG_INFO google::LogMessage( \ + __FILE__, __LINE__) +#define LOG_TO_STRING_INFO(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_INFO, message) +#else +#define COMPACT_GOOGLE_LOG_INFO google::NullStream() +#define LOG_TO_STRING_INFO(message) google::NullStream() +#endif + +#if GOOGLE_STRIP_LOG <= 1 +#define COMPACT_GOOGLE_LOG_WARNING google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_WARNING) +#define LOG_TO_STRING_WARNING(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_WARNING, message) +#else +#define COMPACT_GOOGLE_LOG_WARNING google::NullStream() +#define LOG_TO_STRING_WARNING(message) google::NullStream() +#endif + +#if GOOGLE_STRIP_LOG <= 2 +#define COMPACT_GOOGLE_LOG_ERROR google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ERROR) +#define LOG_TO_STRING_ERROR(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ERROR, message) +#else +#define COMPACT_GOOGLE_LOG_ERROR google::NullStream() +#define LOG_TO_STRING_ERROR(message) google::NullStream() +#endif + +#if GOOGLE_STRIP_LOG <= 3 +#define COMPACT_GOOGLE_LOG_FATAL google::LogMessageFatal( \ + __FILE__, __LINE__) +#define LOG_TO_STRING_FATAL(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_FATAL, message) +#else +#define COMPACT_GOOGLE_LOG_FATAL google::NullStreamFatal() +#define LOG_TO_STRING_FATAL(message) google::NullStreamFatal() +#endif + +#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON) +#define DCHECK_IS_ON() 0 +#else +#define DCHECK_IS_ON() 1 +#endif + +// For DFATAL, we want to use LogMessage (as opposed to +// LogMessageFatal), to be consistent with the original behavior. +#if !DCHECK_IS_ON() +#define COMPACT_GOOGLE_LOG_DFATAL COMPACT_GOOGLE_LOG_ERROR +#elif GOOGLE_STRIP_LOG <= 3 +#define COMPACT_GOOGLE_LOG_DFATAL google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_FATAL) +#else +#define COMPACT_GOOGLE_LOG_DFATAL google::NullStreamFatal() +#endif + +#define GOOGLE_LOG_INFO(counter) google::LogMessage(__FILE__, __LINE__, google::GLOG_INFO, counter, &google::LogMessage::SendToLog) +#define SYSLOG_INFO(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_INFO, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_WARNING(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_WARNING, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_WARNING(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_WARNING, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_ERROR(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_ERROR(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_FATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_FATAL, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_FATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_FATAL, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_DFATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::DFATAL_LEVEL, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_DFATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::DFATAL_LEVEL, counter, \ + &google::LogMessage::SendToSyslogAndLog) + +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) || defined(__CYGWIN32__) +// A very useful logging macro to log windows errors: +#define LOG_SYSRESULT(result) \ + if (FAILED(HRESULT_FROM_WIN32(result))) { \ + LPSTR message = NULL; \ + LPSTR msg = reinterpret_cast(&message); \ + DWORD message_length = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | \ + FORMAT_MESSAGE_FROM_SYSTEM, \ + 0, result, 0, msg, 100, NULL); \ + if (message_length > 0) { \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, 0, \ + &google::LogMessage::SendToLog).stream() \ + << reinterpret_cast(message); \ + LocalFree(message); \ + } \ + } +#endif + +// We use the preprocessor's merging operator, "##", so that, e.g., +// LOG(INFO) becomes the token GOOGLE_LOG_INFO. There's some funny +// subtle difference between ostream member streaming functions (e.g., +// ostream::operator<<(int) and ostream non-member streaming functions +// (e.g., ::operator<<(ostream&, string&): it turns out that it's +// impossible to stream something like a string directly to an unnamed +// ostream. We employ a neat hack by calling the stream() member +// function of LogMessage which seems to avoid the problem. +#define LOG(severity) COMPACT_GOOGLE_LOG_ ## severity.stream() +#define SYSLOG(severity) SYSLOG_ ## severity(0).stream() + +namespace google { + +// They need the definitions of integer types. +#include "glog/log_severity.h" +#include "glog/vlog_is_on.h" + +// Initialize google's logging library. You will see the program name +// specified by argv0 in log outputs. +GOOGLE_GLOG_DLL_DECL void InitGoogleLogging(const char* argv0); + +// Shutdown google's logging library. +GOOGLE_GLOG_DLL_DECL void ShutdownGoogleLogging(); + +// Install a function which will be called after LOG(FATAL). +GOOGLE_GLOG_DLL_DECL void InstallFailureFunction(void (*fail_func)()); + +class LogSink; // defined below + +// If a non-NULL sink pointer is given, we push this message to that sink. +// For LOG_TO_SINK we then do normal LOG(severity) logging as well. +// This is useful for capturing messages and passing/storing them +// somewhere more specific than the global log of the process. +// Argument types: +// LogSink* sink; +// LogSeverity severity; +// The cast is to disambiguate NULL arguments. +#define LOG_TO_SINK(sink, severity) \ + google::LogMessage( \ + __FILE__, __LINE__, \ + google::GLOG_ ## severity, \ + static_cast(sink), true).stream() +#define LOG_TO_SINK_BUT_NOT_TO_LOGFILE(sink, severity) \ + google::LogMessage( \ + __FILE__, __LINE__, \ + google::GLOG_ ## severity, \ + static_cast(sink), false).stream() + +// If a non-NULL string pointer is given, we write this message to that string. +// We then do normal LOG(severity) logging as well. +// This is useful for capturing messages and storing them somewhere more +// specific than the global log of the process. +// Argument types: +// string* message; +// LogSeverity severity; +// The cast is to disambiguate NULL arguments. +// NOTE: LOG(severity) expands to LogMessage().stream() for the specified +// severity. +#define LOG_TO_STRING(severity, message) \ + LOG_TO_STRING_##severity(static_cast(message)).stream() + +// If a non-NULL pointer is given, we push the message onto the end +// of a vector of strings; otherwise, we report it with LOG(severity). +// This is handy for capturing messages and perhaps passing them back +// to the caller, rather than reporting them immediately. +// Argument types: +// LogSeverity severity; +// vector *outvec; +// The cast is to disambiguate NULL arguments. +#define LOG_STRING(severity, outvec) \ + LOG_TO_STRING_##severity(static_cast*>(outvec)).stream() + +#define LOG_IF(severity, condition) \ + !(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity) +#define SYSLOG_IF(severity, condition) \ + !(condition) ? (void) 0 : google::LogMessageVoidify() & SYSLOG(severity) + +#define LOG_ASSERT(condition) \ + LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition +#define SYSLOG_ASSERT(condition) \ + SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition + +// CHECK dies with a fatal error if condition is not true. It is *not* +// controlled by DCHECK_IS_ON(), so the check will be executed regardless of +// compilation mode. Therefore, it is safe to do things like: +// CHECK(fp->Write(x) == 4) +#define CHECK(condition) \ + LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition))) \ + << "Check failed: " #condition " " + +// A container for a string pointer which can be evaluated to a bool - +// true iff the pointer is NULL. +struct CheckOpString { + CheckOpString(std::string* str) : str_(str) { } + // No destructor: if str_ is non-NULL, we're about to LOG(FATAL), + // so there's no point in cleaning up str_. + operator bool() const { + return GOOGLE_PREDICT_BRANCH_NOT_TAKEN(str_ != NULL); + } + std::string* str_; +}; + +// Function is overloaded for integral types to allow static const +// integrals declared in classes and not defined to be used as arguments to +// CHECK* macros. It's not encouraged though. +template +inline const T& GetReferenceableValue(const T& t) { return t; } +inline char GetReferenceableValue(char t) { return t; } +inline unsigned char GetReferenceableValue(unsigned char t) { return t; } +inline signed char GetReferenceableValue(signed char t) { return t; } +inline short GetReferenceableValue(short t) { return t; } +inline unsigned short GetReferenceableValue(unsigned short t) { return t; } +inline int GetReferenceableValue(int t) { return t; } +inline unsigned int GetReferenceableValue(unsigned int t) { return t; } +inline long GetReferenceableValue(long t) { return t; } +inline unsigned long GetReferenceableValue(unsigned long t) { return t; } +inline long long GetReferenceableValue(long long t) { return t; } +inline unsigned long long GetReferenceableValue(unsigned long long t) { + return t; +} + +// This is a dummy class to define the following operator. +struct DummyClassToDefineOperator {}; + +} + +// Define global operator<< to declare using ::operator<<. +// This declaration will allow use to use CHECK macros for user +// defined classes which have operator<< (e.g., stl_logging.h). +inline std::ostream& operator<<( + std::ostream& out, const google::DummyClassToDefineOperator&) { + return out; +} + +namespace google { + +// This formats a value for a failing CHECK_XX statement. Ordinarily, +// it uses the definition for operator<<, with a few special cases below. +template +inline void MakeCheckOpValueString(std::ostream* os, const T& v) { + (*os) << v; +} + +// Overrides for char types provide readable values for unprintable +// characters. +template <> GOOGLE_GLOG_DLL_DECL +void MakeCheckOpValueString(std::ostream* os, const char& v); +template <> GOOGLE_GLOG_DLL_DECL +void MakeCheckOpValueString(std::ostream* os, const signed char& v); +template <> GOOGLE_GLOG_DLL_DECL +void MakeCheckOpValueString(std::ostream* os, const unsigned char& v); + +// Build the error message string. Specify no inlining for code size. +template +std::string* MakeCheckOpString(const T1& v1, const T2& v2, const char* exprtext) + __attribute__ ((noinline)); + +namespace base { +namespace internal { + +// If "s" is less than base_logging::INFO, returns base_logging::INFO. +// If "s" is greater than base_logging::FATAL, returns +// base_logging::ERROR. Otherwise, returns "s". +LogSeverity NormalizeSeverity(LogSeverity s); + +} // namespace internal + +// A helper class for formatting "expr (V1 vs. V2)" in a CHECK_XX +// statement. See MakeCheckOpString for sample usage. Other +// approaches were considered: use of a template method (e.g., +// base::BuildCheckOpString(exprtext, base::Print, &v1, +// base::Print, &v2), however this approach has complications +// related to volatile arguments and function-pointer arguments). +class GOOGLE_GLOG_DLL_DECL CheckOpMessageBuilder { + public: + // Inserts "exprtext" and " (" to the stream. + explicit CheckOpMessageBuilder(const char *exprtext); + // Deletes "stream_". + ~CheckOpMessageBuilder(); + // For inserting the first variable. + std::ostream* ForVar1() { return stream_; } + // For inserting the second variable (adds an intermediate " vs. "). + std::ostream* ForVar2(); + // Get the result (inserts the closing ")"). + std::string* NewString(); + + private: + std::ostringstream *stream_; +}; + +} // namespace base + +template +std::string* MakeCheckOpString(const T1& v1, const T2& v2, const char* exprtext) { + base::CheckOpMessageBuilder comb(exprtext); + MakeCheckOpValueString(comb.ForVar1(), v1); + MakeCheckOpValueString(comb.ForVar2(), v2); + return comb.NewString(); +} + +// Helper functions for CHECK_OP macro. +// The (int, int) specialization works around the issue that the compiler +// will not instantiate the template version of the function on values of +// unnamed enum type - see comment below. +#define DEFINE_CHECK_OP_IMPL(name, op) \ + template \ + inline std::string* name##Impl(const T1& v1, const T2& v2, \ + const char* exprtext) { \ + if (GOOGLE_PREDICT_TRUE(v1 op v2)) return NULL; \ + else return MakeCheckOpString(v1, v2, exprtext); \ + } \ + inline std::string* name##Impl(int v1, int v2, const char* exprtext) { \ + return name##Impl(v1, v2, exprtext); \ + } + +// We use the full name Check_EQ, Check_NE, etc. in case the file including +// base/logging.h provides its own #defines for the simpler names EQ, NE, etc. +// This happens if, for example, those are used as token names in a +// yacc grammar. +DEFINE_CHECK_OP_IMPL(Check_EQ, ==) // Compilation error with CHECK_EQ(NULL, x)? +DEFINE_CHECK_OP_IMPL(Check_NE, !=) // Use CHECK(x == NULL) instead. +DEFINE_CHECK_OP_IMPL(Check_LE, <=) +DEFINE_CHECK_OP_IMPL(Check_LT, < ) +DEFINE_CHECK_OP_IMPL(Check_GE, >=) +DEFINE_CHECK_OP_IMPL(Check_GT, > ) +#undef DEFINE_CHECK_OP_IMPL + +// Helper macro for binary operators. +// Don't use this macro directly in your code, use CHECK_EQ et al below. + +#if defined(STATIC_ANALYSIS) +// Only for static analysis tool to know that it is equivalent to assert +#define CHECK_OP_LOG(name, op, val1, val2, log) CHECK((val1) op (val2)) +#elif DCHECK_IS_ON() +// In debug mode, avoid constructing CheckOpStrings if possible, +// to reduce the overhead of CHECK statments by 2x. +// Real DCHECK-heavy tests have seen 1.5x speedups. + +// The meaning of "string" might be different between now and +// when this macro gets invoked (e.g., if someone is experimenting +// with other string implementations that get defined after this +// file is included). Save the current meaning now and use it +// in the macro. +typedef std::string _Check_string; +#define CHECK_OP_LOG(name, op, val1, val2, log) \ + while (google::_Check_string* _result = \ + google::Check##name##Impl( \ + google::GetReferenceableValue(val1), \ + google::GetReferenceableValue(val2), \ + #val1 " " #op " " #val2)) \ + log(__FILE__, __LINE__, \ + google::CheckOpString(_result)).stream() +#else +// In optimized mode, use CheckOpString to hint to compiler that +// the while condition is unlikely. +#define CHECK_OP_LOG(name, op, val1, val2, log) \ + while (google::CheckOpString _result = \ + google::Check##name##Impl( \ + google::GetReferenceableValue(val1), \ + google::GetReferenceableValue(val2), \ + #val1 " " #op " " #val2)) \ + log(__FILE__, __LINE__, _result).stream() +#endif // STATIC_ANALYSIS, DCHECK_IS_ON() + +#if GOOGLE_STRIP_LOG <= 3 +#define CHECK_OP(name, op, val1, val2) \ + CHECK_OP_LOG(name, op, val1, val2, google::LogMessageFatal) +#else +#define CHECK_OP(name, op, val1, val2) \ + CHECK_OP_LOG(name, op, val1, val2, google::NullStreamFatal) +#endif // STRIP_LOG <= 3 + +// Equality/Inequality checks - compare two values, and log a FATAL message +// including the two values when the result is not as expected. The values +// must have operator<<(ostream, ...) defined. +// +// You may append to the error message like so: +// CHECK_NE(1, 2) << ": The world must be ending!"; +// +// We are very careful to ensure that each argument is evaluated exactly +// once, and that anything which is legal to pass as a function argument is +// legal here. In particular, the arguments may be temporary expressions +// which will end up being destroyed at the end of the apparent statement, +// for example: +// CHECK_EQ(string("abc")[1], 'b'); +// +// WARNING: These don't compile correctly if one of the arguments is a pointer +// and the other is NULL. To work around this, simply static_cast NULL to the +// type of the desired pointer. + +#define CHECK_EQ(val1, val2) CHECK_OP(_EQ, ==, val1, val2) +#define CHECK_NE(val1, val2) CHECK_OP(_NE, !=, val1, val2) +#define CHECK_LE(val1, val2) CHECK_OP(_LE, <=, val1, val2) +#define CHECK_LT(val1, val2) CHECK_OP(_LT, < , val1, val2) +#define CHECK_GE(val1, val2) CHECK_OP(_GE, >=, val1, val2) +#define CHECK_GT(val1, val2) CHECK_OP(_GT, > , val1, val2) + +// Check that the input is non NULL. This very useful in constructor +// initializer lists. + +#define CHECK_NOTNULL(val) \ + google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val)) + +// Helper functions for string comparisons. +// To avoid bloat, the definitions are in logging.cc. +#define DECLARE_CHECK_STROP_IMPL(func, expected) \ + GOOGLE_GLOG_DLL_DECL std::string* Check##func##expected##Impl( \ + const char* s1, const char* s2, const char* names); +DECLARE_CHECK_STROP_IMPL(strcmp, true) +DECLARE_CHECK_STROP_IMPL(strcmp, false) +DECLARE_CHECK_STROP_IMPL(strcasecmp, true) +DECLARE_CHECK_STROP_IMPL(strcasecmp, false) +#undef DECLARE_CHECK_STROP_IMPL + +// Helper macro for string comparisons. +// Don't use this macro directly in your code, use CHECK_STREQ et al below. +#define CHECK_STROP(func, op, expected, s1, s2) \ + while (google::CheckOpString _result = \ + google::Check##func##expected##Impl((s1), (s2), \ + #s1 " " #op " " #s2)) \ + LOG(FATAL) << *_result.str_ + + +// String (char*) equality/inequality checks. +// CASE versions are case-insensitive. +// +// Note that "s1" and "s2" may be temporary strings which are destroyed +// by the compiler at the end of the current "full expression" +// (e.g. CHECK_STREQ(Foo().c_str(), Bar().c_str())). + +#define CHECK_STREQ(s1, s2) CHECK_STROP(strcmp, ==, true, s1, s2) +#define CHECK_STRNE(s1, s2) CHECK_STROP(strcmp, !=, false, s1, s2) +#define CHECK_STRCASEEQ(s1, s2) CHECK_STROP(strcasecmp, ==, true, s1, s2) +#define CHECK_STRCASENE(s1, s2) CHECK_STROP(strcasecmp, !=, false, s1, s2) + +#define CHECK_INDEX(I,A) CHECK(I < (sizeof(A)/sizeof(A[0]))) +#define CHECK_BOUND(B,A) CHECK(B <= (sizeof(A)/sizeof(A[0]))) + +#define CHECK_DOUBLE_EQ(val1, val2) \ + do { \ + CHECK_LE((val1), (val2)+0.000000000000001L); \ + CHECK_GE((val1), (val2)-0.000000000000001L); \ + } while (0) + +#define CHECK_NEAR(val1, val2, margin) \ + do { \ + CHECK_LE((val1), (val2)+(margin)); \ + CHECK_GE((val1), (val2)-(margin)); \ + } while (0) + +// perror()..googly style! +// +// PLOG() and PLOG_IF() and PCHECK() behave exactly like their LOG* and +// CHECK equivalents with the addition that they postpend a description +// of the current state of errno to their output lines. + +#define PLOG(severity) GOOGLE_PLOG(severity, 0).stream() + +#define GOOGLE_PLOG(severity, counter) \ + google::ErrnoLogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, counter, \ + &google::LogMessage::SendToLog) + +#define PLOG_IF(severity, condition) \ + !(condition) ? (void) 0 : google::LogMessageVoidify() & PLOG(severity) + +// A CHECK() macro that postpends errno if the condition is false. E.g. +// +// if (poll(fds, nfds, timeout) == -1) { PCHECK(errno == EINTR); ... } +#define PCHECK(condition) \ + PLOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition))) \ + << "Check failed: " #condition " " + +// A CHECK() macro that lets you assert the success of a function that +// returns -1 and sets errno in case of an error. E.g. +// +// CHECK_ERR(mkdir(path, 0700)); +// +// or +// +// int fd = open(filename, flags); CHECK_ERR(fd) << ": open " << filename; +#define CHECK_ERR(invocation) \ +PLOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN((invocation) == -1)) \ + << #invocation + +// Use macro expansion to create, for each use of LOG_EVERY_N(), static +// variables with the __LINE__ expansion as part of the variable name. +#define LOG_EVERY_N_VARNAME(base, line) LOG_EVERY_N_VARNAME_CONCAT(base, line) +#define LOG_EVERY_N_VARNAME_CONCAT(base, line) base ## line + +#define LOG_OCCURRENCES LOG_EVERY_N_VARNAME(occurrences_, __LINE__) +#define LOG_OCCURRENCES_MOD_N LOG_EVERY_N_VARNAME(occurrences_mod_n_, __LINE__) + +#define SOME_KIND_OF_LOG_EVERY_N(severity, n, what_to_do) \ + static int LOG_OCCURRENCES = 0, LOG_OCCURRENCES_MOD_N = 0; \ + ++LOG_OCCURRENCES; \ + if (++LOG_OCCURRENCES_MOD_N > n) LOG_OCCURRENCES_MOD_N -= n; \ + if (LOG_OCCURRENCES_MOD_N == 1) \ + google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +#define SOME_KIND_OF_LOG_IF_EVERY_N(severity, condition, n, what_to_do) \ + static int LOG_OCCURRENCES = 0, LOG_OCCURRENCES_MOD_N = 0; \ + ++LOG_OCCURRENCES; \ + if (condition && \ + ((LOG_OCCURRENCES_MOD_N=(LOG_OCCURRENCES_MOD_N + 1) % n) == (1 % n))) \ + google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +#define SOME_KIND_OF_PLOG_EVERY_N(severity, n, what_to_do) \ + static int LOG_OCCURRENCES = 0, LOG_OCCURRENCES_MOD_N = 0; \ + ++LOG_OCCURRENCES; \ + if (++LOG_OCCURRENCES_MOD_N > n) LOG_OCCURRENCES_MOD_N -= n; \ + if (LOG_OCCURRENCES_MOD_N == 1) \ + google::ErrnoLogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +#define SOME_KIND_OF_LOG_FIRST_N(severity, n, what_to_do) \ + static int LOG_OCCURRENCES = 0; \ + if (LOG_OCCURRENCES <= n) \ + ++LOG_OCCURRENCES; \ + if (LOG_OCCURRENCES <= n) \ + google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +namespace glog_internal_namespace_ { +template +struct CompileAssert { +}; +struct CrashReason; + +// Returns true if FailureSignalHandler is installed. +bool IsFailureSignalHandlerInstalled(); +} // namespace glog_internal_namespace_ + +#define GOOGLE_GLOG_COMPILE_ASSERT(expr, msg) \ + typedef google::glog_internal_namespace_::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] + +#define LOG_EVERY_N(severity, n) \ + GOOGLE_GLOG_COMPILE_ASSERT(google::GLOG_ ## severity < \ + google::NUM_SEVERITIES, \ + INVALID_REQUESTED_LOG_SEVERITY); \ + SOME_KIND_OF_LOG_EVERY_N(severity, (n), google::LogMessage::SendToLog) + +#define SYSLOG_EVERY_N(severity, n) \ + SOME_KIND_OF_LOG_EVERY_N(severity, (n), google::LogMessage::SendToSyslogAndLog) + +#define PLOG_EVERY_N(severity, n) \ + SOME_KIND_OF_PLOG_EVERY_N(severity, (n), google::LogMessage::SendToLog) + +#define LOG_FIRST_N(severity, n) \ + SOME_KIND_OF_LOG_FIRST_N(severity, (n), google::LogMessage::SendToLog) + +#define LOG_IF_EVERY_N(severity, condition, n) \ + SOME_KIND_OF_LOG_IF_EVERY_N(severity, (condition), (n), google::LogMessage::SendToLog) + +// We want the special COUNTER value available for LOG_EVERY_X()'ed messages +enum PRIVATE_Counter {COUNTER}; + +#ifdef GLOG_NO_ABBREVIATED_SEVERITIES +// wingdi.h defines ERROR to be 0. When we call LOG(ERROR), it gets +// substituted with 0, and it expands to COMPACT_GOOGLE_LOG_0. To allow us +// to keep using this syntax, we define this macro to do the same thing +// as COMPACT_GOOGLE_LOG_ERROR. +#define COMPACT_GOOGLE_LOG_0 COMPACT_GOOGLE_LOG_ERROR +#define SYSLOG_0 SYSLOG_ERROR +#define LOG_TO_STRING_0 LOG_TO_STRING_ERROR +// Needed for LOG_IS_ON(ERROR). +const LogSeverity GLOG_0 = GLOG_ERROR; +#else +// Users may include windows.h after logging.h without +// GLOG_NO_ABBREVIATED_SEVERITIES nor WIN32_LEAN_AND_MEAN. +// For this case, we cannot detect if ERROR is defined before users +// actually use ERROR. Let's make an undefined symbol to warn users. +# define GLOG_ERROR_MSG ERROR_macro_is_defined_Define_GLOG_NO_ABBREVIATED_SEVERITIES_before_including_logging_h_See_the_document_for_detail +# define COMPACT_GOOGLE_LOG_0 GLOG_ERROR_MSG +# define SYSLOG_0 GLOG_ERROR_MSG +# define LOG_TO_STRING_0 GLOG_ERROR_MSG +# define GLOG_0 GLOG_ERROR_MSG +#endif + +// Plus some debug-logging macros that get compiled to nothing for production + +#if DCHECK_IS_ON() + +#define DLOG(severity) LOG(severity) +#define DVLOG(verboselevel) VLOG(verboselevel) +#define DLOG_IF(severity, condition) LOG_IF(severity, condition) +#define DLOG_EVERY_N(severity, n) LOG_EVERY_N(severity, n) +#define DLOG_IF_EVERY_N(severity, condition, n) \ + LOG_IF_EVERY_N(severity, condition, n) +#define DLOG_ASSERT(condition) LOG_ASSERT(condition) + +// debug-only checking. executed if DCHECK_IS_ON(). +#define DCHECK(condition) CHECK(condition) +#define DCHECK_EQ(val1, val2) CHECK_EQ(val1, val2) +#define DCHECK_NE(val1, val2) CHECK_NE(val1, val2) +#define DCHECK_LE(val1, val2) CHECK_LE(val1, val2) +#define DCHECK_LT(val1, val2) CHECK_LT(val1, val2) +#define DCHECK_GE(val1, val2) CHECK_GE(val1, val2) +#define DCHECK_GT(val1, val2) CHECK_GT(val1, val2) +#define DCHECK_NOTNULL(val) CHECK_NOTNULL(val) +#define DCHECK_STREQ(str1, str2) CHECK_STREQ(str1, str2) +#define DCHECK_STRCASEEQ(str1, str2) CHECK_STRCASEEQ(str1, str2) +#define DCHECK_STRNE(str1, str2) CHECK_STRNE(str1, str2) +#define DCHECK_STRCASENE(str1, str2) CHECK_STRCASENE(str1, str2) + +#else // !DCHECK_IS_ON() + +#define DLOG(severity) \ + true ? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DVLOG(verboselevel) \ + (true || !VLOG_IS_ON(verboselevel)) ?\ + (void) 0 : google::LogMessageVoidify() & LOG(INFO) + +#define DLOG_IF(severity, condition) \ + (true || !(condition)) ? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DLOG_EVERY_N(severity, n) \ + true ? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DLOG_IF_EVERY_N(severity, condition, n) \ + (true || !(condition))? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DLOG_ASSERT(condition) \ + true ? (void) 0 : LOG_ASSERT(condition) + +// MSVC warning C4127: conditional expression is constant +#define DCHECK(condition) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK(condition) + +#define DCHECK_EQ(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_EQ(val1, val2) + +#define DCHECK_NE(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_NE(val1, val2) + +#define DCHECK_LE(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_LE(val1, val2) + +#define DCHECK_LT(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_LT(val1, val2) + +#define DCHECK_GE(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_GE(val1, val2) + +#define DCHECK_GT(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_GT(val1, val2) + +// You may see warnings in release mode if you don't use the return +// value of DCHECK_NOTNULL. Please just use DCHECK for such cases. +#define DCHECK_NOTNULL(val) (val) + +#define DCHECK_STREQ(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STREQ(str1, str2) + +#define DCHECK_STRCASEEQ(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STRCASEEQ(str1, str2) + +#define DCHECK_STRNE(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STRNE(str1, str2) + +#define DCHECK_STRCASENE(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STRCASENE(str1, str2) + +#endif // DCHECK_IS_ON() + +// Log only in verbose mode. + +#define VLOG(verboselevel) LOG_IF(INFO, VLOG_IS_ON(verboselevel)) + +#define VLOG_IF(verboselevel, condition) \ + LOG_IF(INFO, (condition) && VLOG_IS_ON(verboselevel)) + +#define VLOG_EVERY_N(verboselevel, n) \ + LOG_IF_EVERY_N(INFO, VLOG_IS_ON(verboselevel), n) + +#define VLOG_IF_EVERY_N(verboselevel, condition, n) \ + LOG_IF_EVERY_N(INFO, (condition) && VLOG_IS_ON(verboselevel), n) + +namespace base_logging { + +// LogMessage::LogStream is a std::ostream backed by this streambuf. +// This class ignores overflow and leaves two bytes at the end of the +// buffer to allow for a '\n' and '\0'. +class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf { + public: + // REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\n'. + LogStreamBuf(char *buf, int len) { + setp(buf, buf + len - 2); + } + // This effectively ignores overflow. + virtual int_type overflow(int_type ch) { + return ch; + } + + // Legacy public ostrstream method. + size_t pcount() const { return pptr() - pbase(); } + char* pbase() const { return std::streambuf::pbase(); } +}; + +} // namespace base_logging + +// +// This class more or less represents a particular log message. You +// create an instance of LogMessage and then stream stuff to it. +// When you finish streaming to it, ~LogMessage is called and the +// full message gets streamed to the appropriate destination. +// +// You shouldn't actually use LogMessage's constructor to log things, +// though. You should use the LOG() macro (and variants thereof) +// above. +class GOOGLE_GLOG_DLL_DECL LogMessage { +public: + enum { + // Passing kNoLogPrefix for the line number disables the + // log-message prefix. Useful for using the LogMessage + // infrastructure as a printing utility. See also the --log_prefix + // flag for controlling the log-message prefix on an + // application-wide basis. + kNoLogPrefix = -1 + }; + + // LogStream inherit from non-DLL-exported class (std::ostrstream) + // and VC++ produces a warning for this situation. + // However, MSDN says "C4275 can be ignored in Microsoft Visual C++ + // 2005 if you are deriving from a type in the Standard C++ Library" + // http://msdn.microsoft.com/en-us/library/3tdb471s(VS.80).aspx + // Let's just ignore the warning. +#ifdef _MSC_VER +# pragma warning(disable: 4275) +#endif + class GOOGLE_GLOG_DLL_DECL LogStream : public std::ostream { +#ifdef _MSC_VER +# pragma warning(default: 4275) +#endif + public: + LogStream(char *buf, int len, int ctr) + : std::ostream(NULL), + streambuf_(buf, len), + ctr_(ctr), + self_(this) { + rdbuf(&streambuf_); + } + + int ctr() const { return ctr_; } + void set_ctr(int ctr) { ctr_ = ctr; } + LogStream* self() const { return self_; } + + // Legacy std::streambuf methods. + size_t pcount() const { return streambuf_.pcount(); } + char* pbase() const { return streambuf_.pbase(); } + char* str() const { return pbase(); } + + private: + LogStream(const LogStream&); + LogStream& operator=(const LogStream&); + base_logging::LogStreamBuf streambuf_; + int ctr_; // Counter hack (for the LOG_EVERY_X() macro) + LogStream *self_; // Consistency check hack + }; + +public: + // icc 8 requires this typedef to avoid an internal compiler error. + typedef void (LogMessage::*SendMethod)(); + + LogMessage(const char* file, int line, LogSeverity severity, int ctr, + SendMethod send_method); + + // Two special constructors that generate reduced amounts of code at + // LOG call sites for common cases. + + // Used for LOG(INFO): Implied are: + // severity = INFO, ctr = 0, send_method = &LogMessage::SendToLog. + // + // Using this constructor instead of the more complex constructor above + // saves 19 bytes per call site. + LogMessage(const char* file, int line); + + // Used for LOG(severity) where severity != INFO. Implied + // are: ctr = 0, send_method = &LogMessage::SendToLog + // + // Using this constructor instead of the more complex constructor above + // saves 17 bytes per call site. + LogMessage(const char* file, int line, LogSeverity severity); + + // Constructor to log this message to a specified sink (if not NULL). + // Implied are: ctr = 0, send_method = &LogMessage::SendToSinkAndLog if + // also_send_to_log is true, send_method = &LogMessage::SendToSink otherwise. + LogMessage(const char* file, int line, LogSeverity severity, LogSink* sink, + bool also_send_to_log); + + // Constructor where we also give a vector pointer + // for storing the messages (if the pointer is not NULL). + // Implied are: ctr = 0, send_method = &LogMessage::SaveOrSendToLog. + LogMessage(const char* file, int line, LogSeverity severity, + std::vector* outvec); + + // Constructor where we also give a string pointer for storing the + // message (if the pointer is not NULL). Implied are: ctr = 0, + // send_method = &LogMessage::WriteToStringAndLog. + LogMessage(const char* file, int line, LogSeverity severity, + std::string* message); + + // A special constructor used for check failures + LogMessage(const char* file, int line, const CheckOpString& result); + + ~LogMessage(); + + // Flush a buffered message to the sink set in the constructor. Always + // called by the destructor, it may also be called from elsewhere if + // needed. Only the first call is actioned; any later ones are ignored. + void Flush(); + + // An arbitrary limit on the length of a single log message. This + // is so that streaming can be done more efficiently. + static const size_t kMaxLogMessageLen; + + // Theses should not be called directly outside of logging.*, + // only passed as SendMethod arguments to other LogMessage methods: + void SendToLog(); // Actually dispatch to the logs + void SendToSyslogAndLog(); // Actually dispatch to syslog and the logs + + // Call abort() or similar to perform LOG(FATAL) crash. + static void __attribute__ ((noreturn)) Fail(); + + std::ostream& stream(); + + int preserved_errno() const; + + // Must be called without the log_mutex held. (L < log_mutex) + static int64 num_messages(int severity); + + struct LogMessageData; + +private: + // Fully internal SendMethod cases: + void SendToSinkAndLog(); // Send to sink if provided and dispatch to the logs + void SendToSink(); // Send to sink if provided, do nothing otherwise. + + // Write to string if provided and dispatch to the logs. + void WriteToStringAndLog(); + + void SaveOrSendToLog(); // Save to stringvec if provided, else to logs + + void Init(const char* file, int line, LogSeverity severity, + void (LogMessage::*send_method)()); + + // Used to fill in crash information during LOG(FATAL) failures. + void RecordCrashReason(glog_internal_namespace_::CrashReason* reason); + + // Counts of messages sent at each priority: + static int64 num_messages_[NUM_SEVERITIES]; // under log_mutex + + // We keep the data in a separate struct so that each instance of + // LogMessage uses less stack space. + LogMessageData* allocated_; + LogMessageData* data_; + + friend class LogDestination; + + LogMessage(const LogMessage&); + void operator=(const LogMessage&); +}; + +// This class happens to be thread-hostile because all instances share +// a single data buffer, but since it can only be created just before +// the process dies, we don't worry so much. +class GOOGLE_GLOG_DLL_DECL LogMessageFatal : public LogMessage { + public: + LogMessageFatal(const char* file, int line); + LogMessageFatal(const char* file, int line, const CheckOpString& result); + __attribute__ ((noreturn)) ~LogMessageFatal(); +}; + +// A non-macro interface to the log facility; (useful +// when the logging level is not a compile-time constant). +inline void LogAtLevel(int const severity, std::string const &msg) { + LogMessage(__FILE__, __LINE__, severity).stream() << msg; +} + +// A macro alternative of LogAtLevel. New code may want to use this +// version since there are two advantages: 1. this version outputs the +// file name and the line number where this macro is put like other +// LOG macros, 2. this macro can be used as C++ stream. +#define LOG_AT_LEVEL(severity) google::LogMessage(__FILE__, __LINE__, severity).stream() + +// Check if it's compiled in C++11 mode. +// +// GXX_EXPERIMENTAL_CXX0X is defined by gcc and clang up to at least +// gcc-4.7 and clang-3.1 (2011-12-13). __cplusplus was defined to 1 +// in gcc before 4.7 (Crosstool 16) and clang before 3.1, but is +// defined according to the language version in effect thereafter. +// Microsoft Visual Studio 14 (2015) sets __cplusplus==199711 despite +// reasonably good C++11 support, so we set LANG_CXX for it and +// newer versions (_MSC_VER >= 1900). +#if (defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L || \ + (defined(_MSC_VER) && _MSC_VER >= 1900)) +// Helper for CHECK_NOTNULL(). +// +// In C++11, all cases can be handled by a single function. Since the value +// category of the argument is preserved (also for rvalue references), +// member initializer lists like the one below will compile correctly: +// +// Foo() +// : x_(CHECK_NOTNULL(MethodReturningUniquePtr())) {} +template +T CheckNotNull(const char* file, int line, const char* names, T&& t) { + if (t == nullptr) { + LogMessageFatal(file, line, new std::string(names)); + } + return std::forward(t); +} + +#else + +// A small helper for CHECK_NOTNULL(). +template +T* CheckNotNull(const char *file, int line, const char *names, T* t) { + if (t == NULL) { + LogMessageFatal(file, line, new std::string(names)); + } + return t; +} +#endif + +// Allow folks to put a counter in the LOG_EVERY_X()'ed messages. This +// only works if ostream is a LogStream. If the ostream is not a +// LogStream you'll get an assert saying as much at runtime. +GOOGLE_GLOG_DLL_DECL std::ostream& operator<<(std::ostream &os, + const PRIVATE_Counter&); + + +// Derived class for PLOG*() above. +class GOOGLE_GLOG_DLL_DECL ErrnoLogMessage : public LogMessage { + public: + + ErrnoLogMessage(const char* file, int line, LogSeverity severity, int ctr, + void (LogMessage::*send_method)()); + + // Postpends ": strerror(errno) [errno]". + ~ErrnoLogMessage(); + + private: + ErrnoLogMessage(const ErrnoLogMessage&); + void operator=(const ErrnoLogMessage&); +}; + + +// This class is used to explicitly ignore values in the conditional +// logging macros. This avoids compiler warnings like "value computed +// is not used" and "statement has no effect". + +class GOOGLE_GLOG_DLL_DECL LogMessageVoidify { + public: + LogMessageVoidify() { } + // This has to be an operator with a precedence lower than << but + // higher than ?: + void operator&(std::ostream&) { } +}; + + +// Flushes all log files that contains messages that are at least of +// the specified severity level. Thread-safe. +GOOGLE_GLOG_DLL_DECL void FlushLogFiles(LogSeverity min_severity); + +// Flushes all log files that contains messages that are at least of +// the specified severity level. Thread-hostile because it ignores +// locking -- used for catastrophic failures. +GOOGLE_GLOG_DLL_DECL void FlushLogFilesUnsafe(LogSeverity min_severity); + +// +// Set the destination to which a particular severity level of log +// messages is sent. If base_filename is "", it means "don't log this +// severity". Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetLogDestination(LogSeverity severity, + const char* base_filename); + +// +// Set the basename of the symlink to the latest log file at a given +// severity. If symlink_basename is empty, do not make a symlink. If +// you don't call this function, the symlink basename is the +// invocation name of the program. Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetLogSymlink(LogSeverity severity, + const char* symlink_basename); + +// +// Used to send logs to some other kind of destination +// Users should subclass LogSink and override send to do whatever they want. +// Implementations must be thread-safe because a shared instance will +// be called from whichever thread ran the LOG(XXX) line. +class GOOGLE_GLOG_DLL_DECL LogSink { + public: + virtual ~LogSink(); + + // Sink's logging logic (message_len is such as to exclude '\n' at the end). + // This method can't use LOG() or CHECK() as logging system mutex(s) are held + // during this call. + virtual void send(LogSeverity severity, const char* full_filename, + const char* base_filename, int line, + const struct ::tm* tm_time, + const char* message, size_t message_len) = 0; + + // Redefine this to implement waiting for + // the sink's logging logic to complete. + // It will be called after each send() returns, + // but before that LogMessage exits or crashes. + // By default this function does nothing. + // Using this function one can implement complex logic for send() + // that itself involves logging; and do all this w/o causing deadlocks and + // inconsistent rearrangement of log messages. + // E.g. if a LogSink has thread-specific actions, the send() method + // can simply add the message to a queue and wake up another thread that + // handles real logging while itself making some LOG() calls; + // WaitTillSent() can be implemented to wait for that logic to complete. + // See our unittest for an example. + virtual void WaitTillSent(); + + // Returns the normal text output of the log message. + // Can be useful to implement send(). + static std::string ToString(LogSeverity severity, const char* file, int line, + const struct ::tm* tm_time, + const char* message, size_t message_len); +}; + +// Add or remove a LogSink as a consumer of logging data. Thread-safe. +GOOGLE_GLOG_DLL_DECL void AddLogSink(LogSink *destination); +GOOGLE_GLOG_DLL_DECL void RemoveLogSink(LogSink *destination); + +// +// Specify an "extension" added to the filename specified via +// SetLogDestination. This applies to all severity levels. It's +// often used to append the port we're listening on to the logfile +// name. Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetLogFilenameExtension( + const char* filename_extension); + +// +// Make it so that all log messages of at least a particular severity +// are logged to stderr (in addition to logging to the usual log +// file(s)). Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetStderrLogging(LogSeverity min_severity); + +// +// Make it so that all log messages go only to stderr. Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void LogToStderr(); + +// +// Make it so that all log messages of at least a particular severity are +// logged via email to a list of addresses (in addition to logging to the +// usual log file(s)). The list of addresses is just a string containing +// the email addresses to send to (separated by spaces, say). Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetEmailLogging(LogSeverity min_severity, + const char* addresses); + +// A simple function that sends email. dest is a commma-separated +// list of addressess. Thread-safe. +GOOGLE_GLOG_DLL_DECL bool SendEmail(const char *dest, + const char *subject, const char *body); + +GOOGLE_GLOG_DLL_DECL const std::vector& GetLoggingDirectories(); + +// For tests only: Clear the internal [cached] list of logging directories to +// force a refresh the next time GetLoggingDirectories is called. +// Thread-hostile. +void TestOnly_ClearLoggingDirectoriesList(); + +// Returns a set of existing temporary directories, which will be a +// subset of the directories returned by GetLogginDirectories(). +// Thread-safe. +GOOGLE_GLOG_DLL_DECL void GetExistingTempDirectories( + std::vector* list); + +// Print any fatal message again -- useful to call from signal handler +// so that the last thing in the output is the fatal message. +// Thread-hostile, but a race is unlikely. +GOOGLE_GLOG_DLL_DECL void ReprintFatalMessage(); + +// Truncate a log file that may be the append-only output of multiple +// processes and hence can't simply be renamed/reopened (typically a +// stdout/stderr). If the file "path" is > "limit" bytes, copy the +// last "keep" bytes to offset 0 and truncate the rest. Since we could +// be racing with other writers, this approach has the potential to +// lose very small amounts of data. For security, only follow symlinks +// if the path is /proc/self/fd/* +GOOGLE_GLOG_DLL_DECL void TruncateLogFile(const char *path, + int64 limit, int64 keep); + +// Truncate stdout and stderr if they are over the value specified by +// --max_log_size; keep the final 1MB. This function has the same +// race condition as TruncateLogFile. +GOOGLE_GLOG_DLL_DECL void TruncateStdoutStderr(); + +// Return the string representation of the provided LogSeverity level. +// Thread-safe. +GOOGLE_GLOG_DLL_DECL const char* GetLogSeverityName(LogSeverity severity); + +// --------------------------------------------------------------------- +// Implementation details that are not useful to most clients +// --------------------------------------------------------------------- + +// A Logger is the interface used by logging modules to emit entries +// to a log. A typical implementation will dump formatted data to a +// sequence of files. We also provide interfaces that will forward +// the data to another thread so that the invoker never blocks. +// Implementations should be thread-safe since the logging system +// will write to them from multiple threads. + +namespace base { + +class GOOGLE_GLOG_DLL_DECL Logger { + public: + virtual ~Logger(); + + // Writes "message[0,message_len-1]" corresponding to an event that + // occurred at "timestamp". If "force_flush" is true, the log file + // is flushed immediately. + // + // The input message has already been formatted as deemed + // appropriate by the higher level logging facility. For example, + // textual log messages already contain timestamps, and the + // file:linenumber header. + virtual void Write(bool force_flush, + time_t timestamp, + const char* message, + int message_len) = 0; + + // Flush any buffered messages + virtual void Flush() = 0; + + // Get the current LOG file size. + // The returned value is approximate since some + // logged data may not have been flushed to disk yet. + virtual uint32 LogSize() = 0; +}; + +// Get the logger for the specified severity level. The logger +// remains the property of the logging module and should not be +// deleted by the caller. Thread-safe. +extern GOOGLE_GLOG_DLL_DECL Logger* GetLogger(LogSeverity level); + +// Set the logger for the specified severity level. The logger +// becomes the property of the logging module and should not +// be deleted by the caller. Thread-safe. +extern GOOGLE_GLOG_DLL_DECL void SetLogger(LogSeverity level, Logger* logger); + +} + +// glibc has traditionally implemented two incompatible versions of +// strerror_r(). There is a poorly defined convention for picking the +// version that we want, but it is not clear whether it even works with +// all versions of glibc. +// So, instead, we provide this wrapper that automatically detects the +// version that is in use, and then implements POSIX semantics. +// N.B. In addition to what POSIX says, we also guarantee that "buf" will +// be set to an empty string, if this function failed. This means, in most +// cases, you do not need to check the error code and you can directly +// use the value of "buf". It will never have an undefined value. +// DEPRECATED: Use StrError(int) instead. +GOOGLE_GLOG_DLL_DECL int posix_strerror_r(int err, char *buf, size_t len); + +// A thread-safe replacement for strerror(). Returns a string describing the +// given POSIX error code. +GOOGLE_GLOG_DLL_DECL std::string StrError(int err); + +// A class for which we define operator<<, which does nothing. +class GOOGLE_GLOG_DLL_DECL NullStream : public LogMessage::LogStream { + public: + // Initialize the LogStream so the messages can be written somewhere + // (they'll never be actually displayed). This will be needed if a + // NullStream& is implicitly converted to LogStream&, in which case + // the overloaded NullStream::operator<< will not be invoked. + NullStream() : LogMessage::LogStream(message_buffer_, 1, 0) { } + NullStream(const char* /*file*/, int /*line*/, + const CheckOpString& /*result*/) : + LogMessage::LogStream(message_buffer_, 1, 0) { } + NullStream &stream() { return *this; } + private: + // A very short buffer for messages (which we discard anyway). This + // will be needed if NullStream& converted to LogStream& (e.g. as a + // result of a conditional expression). + char message_buffer_[2]; +}; + +// Do nothing. This operator is inline, allowing the message to be +// compiled away. The message will not be compiled away if we do +// something like (flag ? LOG(INFO) : LOG(ERROR)) << message; when +// SKIP_LOG=WARNING. In those cases, NullStream will be implicitly +// converted to LogStream and the message will be computed and then +// quietly discarded. +template +inline NullStream& operator<<(NullStream &str, const T &) { return str; } + +// Similar to NullStream, but aborts the program (without stack +// trace), like LogMessageFatal. +class GOOGLE_GLOG_DLL_DECL NullStreamFatal : public NullStream { + public: + NullStreamFatal() { } + NullStreamFatal(const char* file, int line, const CheckOpString& result) : + NullStream(file, line, result) { } + __attribute__ ((noreturn)) ~NullStreamFatal() throw () { _exit(1); } +}; + +// Install a signal handler that will dump signal information and a stack +// trace when the program crashes on certain signals. We'll install the +// signal handler for the following signals. +// +// SIGSEGV, SIGILL, SIGFPE, SIGABRT, SIGBUS, and SIGTERM. +// +// By default, the signal handler will write the failure dump to the +// standard error. You can customize the destination by installing your +// own writer function by InstallFailureWriter() below. +// +// Note on threading: +// +// The function should be called before threads are created, if you want +// to use the failure signal handler for all threads. The stack trace +// will be shown only for the thread that receives the signal. In other +// words, stack traces of other threads won't be shown. +GOOGLE_GLOG_DLL_DECL void InstallFailureSignalHandler(); + +// Installs a function that is used for writing the failure dump. "data" +// is the pointer to the beginning of a message to be written, and "size" +// is the size of the message. You should not expect the data is +// terminated with '\0'. +GOOGLE_GLOG_DLL_DECL void InstallFailureWriter( + void (*writer)(const char* data, int size)); + +} + +#endif // _LOGGING_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/raw_logging.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/raw_logging.h new file mode 100644 index 0000000..65278f6 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/raw_logging.h @@ -0,0 +1,185 @@ +// Copyright (c) 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Maxim Lifantsev +// +// Thread-safe logging routines that do not allocate any memory or +// acquire any locks, and can therefore be used by low-level memory +// allocation and synchronization code. + +#ifndef BASE_RAW_LOGGING_H_ +#define BASE_RAW_LOGGING_H_ + +#include + +namespace google { + +#include "glog/log_severity.h" +#include "glog/vlog_is_on.h" + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +// This is similar to LOG(severity) << format... and VLOG(level) << format.., +// but +// * it is to be used ONLY by low-level modules that can't use normal LOG() +// * it is desiged to be a low-level logger that does not allocate any +// memory and does not need any locks, hence: +// * it logs straight and ONLY to STDERR w/o buffering +// * it uses an explicit format and arguments list +// * it will silently chop off really long message strings +// Usage example: +// RAW_LOG(ERROR, "Failed foo with %i: %s", status, error); +// RAW_VLOG(3, "status is %i", status); +// These will print an almost standard log lines like this to stderr only: +// E0821 211317 file.cc:123] RAW: Failed foo with 22: bad_file +// I0821 211317 file.cc:142] RAW: status is 20 +#define RAW_LOG(severity, ...) \ + do { \ + switch (google::GLOG_ ## severity) { \ + case 0: \ + RAW_LOG_INFO(__VA_ARGS__); \ + break; \ + case 1: \ + RAW_LOG_WARNING(__VA_ARGS__); \ + break; \ + case 2: \ + RAW_LOG_ERROR(__VA_ARGS__); \ + break; \ + case 3: \ + RAW_LOG_FATAL(__VA_ARGS__); \ + break; \ + default: \ + break; \ + } \ + } while (0) + +// The following STRIP_LOG testing is performed in the header file so that it's +// possible to completely compile out the logging code and the log messages. +#if STRIP_LOG == 0 +#define RAW_VLOG(verboselevel, ...) \ + do { \ + if (VLOG_IS_ON(verboselevel)) { \ + RAW_LOG_INFO(__VA_ARGS__); \ + } \ + } while (0) +#else +#define RAW_VLOG(verboselevel, ...) RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG == 0 + +#if STRIP_LOG == 0 +#define RAW_LOG_INFO(...) google::RawLog__(google::GLOG_INFO, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_INFO(...) google::RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG == 0 + +#if STRIP_LOG <= 1 +#define RAW_LOG_WARNING(...) google::RawLog__(google::GLOG_WARNING, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_WARNING(...) google::RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG <= 1 + +#if STRIP_LOG <= 2 +#define RAW_LOG_ERROR(...) google::RawLog__(google::GLOG_ERROR, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_ERROR(...) google::RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG <= 2 + +#if STRIP_LOG <= 3 +#define RAW_LOG_FATAL(...) google::RawLog__(google::GLOG_FATAL, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_FATAL(...) \ + do { \ + google::RawLogStub__(0, __VA_ARGS__); \ + exit(1); \ + } while (0) +#endif // STRIP_LOG <= 3 + +// Similar to CHECK(condition) << message, +// but for low-level modules: we use only RAW_LOG that does not allocate memory. +// We do not want to provide args list here to encourage this usage: +// if (!cond) RAW_LOG(FATAL, "foo ...", hard_to_compute_args); +// so that the args are not computed when not needed. +#define RAW_CHECK(condition, message) \ + do { \ + if (!(condition)) { \ + RAW_LOG(FATAL, "Check %s failed: %s", #condition, message); \ + } \ + } while (0) + +// Debug versions of RAW_LOG and RAW_CHECK +#ifndef NDEBUG + +#define RAW_DLOG(severity, ...) RAW_LOG(severity, __VA_ARGS__) +#define RAW_DCHECK(condition, message) RAW_CHECK(condition, message) + +#else // NDEBUG + +#define RAW_DLOG(severity, ...) \ + while (false) \ + RAW_LOG(severity, __VA_ARGS__) +#define RAW_DCHECK(condition, message) \ + while (false) \ + RAW_CHECK(condition, message) + +#endif // NDEBUG + +// Stub log function used to work around for unused variable warnings when +// building with STRIP_LOG > 0. +static inline void RawLogStub__(int /* ignored */, ...) { +} + +// Helper function to implement RAW_LOG and RAW_VLOG +// Logs format... at "severity" level, reporting it +// as called from file:line. +// This does not allocate memory or acquire locks. +GOOGLE_GLOG_DLL_DECL void RawLog__(LogSeverity severity, + const char* file, + int line, + const char* format, ...) + __attribute__((__format__ (__printf__, 4, 5))); + +// Hack to propagate time information into this module so that +// this module does not have to directly call localtime_r(), +// which could allocate memory. +GOOGLE_GLOG_DLL_DECL void RawLog__SetLastTime(const struct tm& t, int usecs); + +} + +#endif // BASE_RAW_LOGGING_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/stl_logging.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/stl_logging.h new file mode 100644 index 0000000..40a15aa --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/stl_logging.h @@ -0,0 +1,220 @@ +// Copyright (c) 2003, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Stream output operators for STL containers; to be used for logging *only*. +// Inclusion of this file lets you do: +// +// list x; +// LOG(INFO) << "data: " << x; +// vector v1, v2; +// CHECK_EQ(v1, v2); +// +// If you want to use this header file with hash maps or slist, you +// need to define macros before including this file: +// +// - GLOG_STL_LOGGING_FOR_UNORDERED - and +// - GLOG_STL_LOGGING_FOR_TR1_UNORDERED - +// - GLOG_STL_LOGGING_FOR_EXT_HASH - +// - GLOG_STL_LOGGING_FOR_EXT_SLIST - +// + +#ifndef UTIL_GTL_STL_LOGGING_INL_H_ +#define UTIL_GTL_STL_LOGGING_INL_H_ + +#if !1 +# error We do not support stl_logging for this compiler +#endif + +#include +#include +#include +#include +#include +#include +#include + +#ifdef GLOG_STL_LOGGING_FOR_UNORDERED +# include +# include +#endif + +#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED +# include +# include +#endif + +#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH +# include +# include +#endif +#ifdef GLOG_STL_LOGGING_FOR_EXT_SLIST +# include +#endif + +// Forward declare these two, and define them after all the container streams +// operators so that we can recurse from pair -> container -> container -> pair +// properly. +template +std::ostream& operator<<(std::ostream& out, const std::pair& p); + +namespace google { + +template +void PrintSequence(std::ostream& out, Iter begin, Iter end); + +} + +#define OUTPUT_TWO_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +OUTPUT_TWO_ARG_CONTAINER(std::vector) +OUTPUT_TWO_ARG_CONTAINER(std::deque) +OUTPUT_TWO_ARG_CONTAINER(std::list) +#ifdef GLOG_STL_LOGGING_FOR_EXT_SLIST +OUTPUT_TWO_ARG_CONTAINER(__gnu_cxx::slist) +#endif + +#undef OUTPUT_TWO_ARG_CONTAINER + +#define OUTPUT_THREE_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +OUTPUT_THREE_ARG_CONTAINER(std::set) +OUTPUT_THREE_ARG_CONTAINER(std::multiset) + +#undef OUTPUT_THREE_ARG_CONTAINER + +#define OUTPUT_FOUR_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +OUTPUT_FOUR_ARG_CONTAINER(std::map) +OUTPUT_FOUR_ARG_CONTAINER(std::multimap) +#ifdef GLOG_STL_LOGGING_FOR_UNORDERED +OUTPUT_FOUR_ARG_CONTAINER(std::unordered_set) +OUTPUT_FOUR_ARG_CONTAINER(std::unordered_multiset) +#endif +#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED +OUTPUT_FOUR_ARG_CONTAINER(std::tr1::unordered_set) +OUTPUT_FOUR_ARG_CONTAINER(std::tr1::unordered_multiset) +#endif +#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH +OUTPUT_FOUR_ARG_CONTAINER(__gnu_cxx::hash_set) +OUTPUT_FOUR_ARG_CONTAINER(__gnu_cxx::hash_multiset) +#endif + +#undef OUTPUT_FOUR_ARG_CONTAINER + +#define OUTPUT_FIVE_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +#ifdef GLOG_STL_LOGGING_FOR_UNORDERED +OUTPUT_FIVE_ARG_CONTAINER(std::unordered_map) +OUTPUT_FIVE_ARG_CONTAINER(std::unordered_multimap) +#endif +#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED +OUTPUT_FIVE_ARG_CONTAINER(std::tr1::unordered_map) +OUTPUT_FIVE_ARG_CONTAINER(std::tr1::unordered_multimap) +#endif +#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH +OUTPUT_FIVE_ARG_CONTAINER(__gnu_cxx::hash_map) +OUTPUT_FIVE_ARG_CONTAINER(__gnu_cxx::hash_multimap) +#endif + +#undef OUTPUT_FIVE_ARG_CONTAINER + +template +inline std::ostream& operator<<(std::ostream& out, + const std::pair& p) { + out << '(' << p.first << ", " << p.second << ')'; + return out; +} + +namespace google { + +template +inline void PrintSequence(std::ostream& out, Iter begin, Iter end) { + // Output at most 100 elements -- appropriate if used for logging. + for (int i = 0; begin != end && i < 100; ++i, ++begin) { + if (i > 0) out << ' '; + out << *begin; + } + if (begin != end) { + out << " ..."; + } +} + +} + +// Note that this is technically undefined behavior! We are adding things into +// the std namespace for a reason though -- we are providing new operations on +// types which are themselves defined with this namespace. Without this, these +// operator overloads cannot be found via ADL. If these definitions are not +// found via ADL, they must be #included before they're used, which requires +// this header to be included before apparently independent other headers. +// +// For example, base/logging.h defines various template functions to implement +// CHECK_EQ(x, y) and stream x and y into the log in the event the check fails. +// It does so via the function template MakeCheckOpValueString: +// template +// void MakeCheckOpValueString(strstream* ss, const T& v) { +// (*ss) << v; +// } +// Because 'glog/logging.h' is included before 'glog/stl_logging.h', +// subsequent CHECK_EQ(v1, v2) for vector<...> typed variable v1 and v2 can only +// find these operator definitions via ADL. +// +// Even this solution has problems -- it may pull unintended operators into the +// namespace as well, allowing them to also be found via ADL, and creating code +// that only works with a particular order of includes. Long term, we need to +// move all of the *definitions* into namespace std, bet we need to ensure no +// one references them first. This lets us take that step. We cannot define them +// in both because that would create ambiguous overloads when both are found. +namespace std { using ::operator<<; } + +#endif // UTIL_GTL_STL_LOGGING_INL_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/vlog_is_on.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/vlog_is_on.h new file mode 100644 index 0000000..02b0b86 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/glog/vlog_is_on.h @@ -0,0 +1,129 @@ +// Copyright (c) 1999, 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Ray Sidney and many others +// +// Defines the VLOG_IS_ON macro that controls the variable-verbosity +// conditional logging. +// +// It's used by VLOG and VLOG_IF in logging.h +// and by RAW_VLOG in raw_logging.h to trigger the logging. +// +// It can also be used directly e.g. like this: +// if (VLOG_IS_ON(2)) { +// // do some logging preparation and logging +// // that can't be accomplished e.g. via just VLOG(2) << ...; +// } +// +// The truth value that VLOG_IS_ON(level) returns is determined by +// the three verbosity level flags: +// --v= Gives the default maximal active V-logging level; +// 0 is the default. +// Normally positive values are used for V-logging levels. +// --vmodule= Gives the per-module maximal V-logging levels to override +// the value given by --v. +// E.g. "my_module=2,foo*=3" would change the logging level +// for all code in source files "my_module.*" and "foo*.*" +// ("-inl" suffixes are also disregarded for this matching). +// +// SetVLOGLevel helper function is provided to do limited dynamic control over +// V-logging by overriding the per-module settings given via --vmodule flag. +// +// CAVEAT: --vmodule functionality is not available in non gcc compilers. +// + +#ifndef BASE_VLOG_IS_ON_H_ +#define BASE_VLOG_IS_ON_H_ + +#include "glog/log_severity.h" + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +#if defined(__GNUC__) +// We emit an anonymous static int* variable at every VLOG_IS_ON(n) site. +// (Normally) the first time every VLOG_IS_ON(n) site is hit, +// we determine what variable will dynamically control logging at this site: +// it's either FLAGS_v or an appropriate internal variable +// matching the current source file that represents results of +// parsing of --vmodule flag and/or SetVLOGLevel calls. +#define VLOG_IS_ON(verboselevel) \ + __extension__ \ + ({ static google::int32* vlocal__ = &google::kLogSiteUninitialized; \ + google::int32 verbose_level__ = (verboselevel); \ + (*vlocal__ >= verbose_level__) && \ + ((vlocal__ != &google::kLogSiteUninitialized) || \ + (google::InitVLOG3__(&vlocal__, &FLAGS_v, \ + __FILE__, verbose_level__))); }) +#else +// GNU extensions not available, so we do not support --vmodule. +// Dynamic value of FLAGS_v always controls the logging level. +#define VLOG_IS_ON(verboselevel) (FLAGS_v >= (verboselevel)) +#endif + +// Set VLOG(_IS_ON) level for module_pattern to log_level. +// This lets us dynamically control what is normally set by the --vmodule flag. +// Returns the level that previously applied to module_pattern. +// NOTE: To change the log level for VLOG(_IS_ON) sites +// that have already executed after/during InitGoogleLogging, +// one needs to supply the exact --vmodule pattern that applied to them. +// (If no --vmodule pattern applied to them +// the value of FLAGS_v will continue to control them.) +extern GOOGLE_GLOG_DLL_DECL int SetVLOGLevel(const char* module_pattern, + int log_level); + +// Various declarations needed for VLOG_IS_ON above: ========================= + +// Special value used to indicate that a VLOG_IS_ON site has not been +// initialized. We make this a large value, so the common-case check +// of "*vlocal__ >= verbose_level__" in VLOG_IS_ON definition +// passes in such cases and InitVLOG3__ is then triggered. +extern google::int32 kLogSiteUninitialized; + +// Helper routine which determines the logging info for a particalur VLOG site. +// site_flag is the address of the site-local pointer to the controlling +// verbosity level +// site_default is the default to use for *site_flag +// fname is the current source file name +// verbose_level is the argument to VLOG_IS_ON +// We will return the return value for VLOG_IS_ON +// and if possible set *site_flag appropriately. +extern GOOGLE_GLOG_DLL_DECL bool InitVLOG3__( + google::int32** site_flag, + google::int32* site_default, + const char* fname, + google::int32 verbose_level); + +#endif // BASE_VLOG_IS_ON_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/googletest.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/googletest.h new file mode 100644 index 0000000..b4677b2 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/googletest.h @@ -0,0 +1,596 @@ +// Copyright (c) 2009, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Shinichiro Hamaji +// (based on googletest: http://code.google.com/p/googletest/) + +#ifdef GOOGLETEST_H__ +#error You must not include this file twice. +#endif +#define GOOGLETEST_H__ + +#include "utilities.h" + +#include +#include +#include + +#include +#include +#include +#include + +#include +#include + +#include +#include +#include +#ifdef HAVE_UNISTD_H +# include +#endif + +#include "base/commandlineflags.h" + +using std::map; +using std::string; +using std::vector; + +_START_GOOGLE_NAMESPACE_ + +extern GOOGLE_GLOG_DLL_DECL void (*g_logging_fail_func)(); + +_END_GOOGLE_NAMESPACE_ + +#undef GOOGLE_GLOG_DLL_DECL +#define GOOGLE_GLOG_DLL_DECL + +static inline string GetTempDir() { +#ifndef OS_WINDOWS + return "/tmp"; +#else + char tmp[MAX_PATH]; + GetTempPathA(MAX_PATH, tmp); + return tmp; +#endif +} + +#if defined(OS_WINDOWS) && defined(_MSC_VER) && !defined(TEST_SRC_DIR) +// The test will run in glog/vsproject/ +// (e.g., glog/vsproject/logging_unittest). +static const char TEST_SRC_DIR[] = "../.."; +#elif !defined(TEST_SRC_DIR) +# warning TEST_SRC_DIR should be defined in config.h +static const char TEST_SRC_DIR[] = "."; +#endif + +DEFINE_string(test_tmpdir, GetTempDir(), "Dir we use for temp files"); +DEFINE_string(test_srcdir, TEST_SRC_DIR, + "Source-dir root, needed to find glog_unittest_flagfile"); +DEFINE_bool(run_benchmark, false, "If true, run benchmarks"); +#ifdef NDEBUG +DEFINE_int32(benchmark_iters, 100000000, "Number of iterations per benchmark"); +#else +DEFINE_int32(benchmark_iters, 100000, "Number of iterations per benchmark"); +#endif + +#ifdef HAVE_LIB_GTEST +# include +// Use our ASSERT_DEATH implementation. +# undef ASSERT_DEATH +# undef ASSERT_DEBUG_DEATH +using testing::InitGoogleTest; +#else + +_START_GOOGLE_NAMESPACE_ + +void InitGoogleTest(int*, char**) {} + +// The following is some bare-bones testing infrastructure + +#define EXPECT_TRUE(cond) \ + do { \ + if (!(cond)) { \ + fprintf(stderr, "Check failed: %s\n", #cond); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_FALSE(cond) EXPECT_TRUE(!(cond)) + +#define EXPECT_OP(op, val1, val2) \ + do { \ + if (!((val1) op (val2))) { \ + fprintf(stderr, "Check failed: %s %s %s\n", #val1, #op, #val2); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_EQ(val1, val2) EXPECT_OP(==, val1, val2) +#define EXPECT_NE(val1, val2) EXPECT_OP(!=, val1, val2) +#define EXPECT_GT(val1, val2) EXPECT_OP(>, val1, val2) +#define EXPECT_LT(val1, val2) EXPECT_OP(<, val1, val2) + +#define EXPECT_NAN(arg) \ + do { \ + if (!isnan(arg)) { \ + fprintf(stderr, "Check failed: isnan(%s)\n", #arg); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_INF(arg) \ + do { \ + if (!isinf(arg)) { \ + fprintf(stderr, "Check failed: isinf(%s)\n", #arg); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_DOUBLE_EQ(val1, val2) \ + do { \ + if (((val1) < (val2) - 0.001 || (val1) > (val2) + 0.001)) { \ + fprintf(stderr, "Check failed: %s == %s\n", #val1, #val2); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_STREQ(val1, val2) \ + do { \ + if (strcmp((val1), (val2)) != 0) { \ + fprintf(stderr, "Check failed: streq(%s, %s)\n", #val1, #val2); \ + exit(1); \ + } \ + } while (0) + +vector g_testlist; // the tests to run + +#define TEST(a, b) \ + struct Test_##a##_##b { \ + Test_##a##_##b() { g_testlist.push_back(&Run); } \ + static void Run() { FlagSaver fs; RunTest(); } \ + static void RunTest(); \ + }; \ + static Test_##a##_##b g_test_##a##_##b; \ + void Test_##a##_##b::RunTest() + + +static inline int RUN_ALL_TESTS() { + vector::const_iterator it; + for (it = g_testlist.begin(); it != g_testlist.end(); ++it) { + (*it)(); + } + fprintf(stderr, "Passed %d tests\n\nPASS\n", (int)g_testlist.size()); + return 0; +} + +_END_GOOGLE_NAMESPACE_ + +#endif // ! HAVE_LIB_GTEST + +_START_GOOGLE_NAMESPACE_ + +static bool g_called_abort; +static jmp_buf g_jmp_buf; +static inline void CalledAbort() { + g_called_abort = true; + longjmp(g_jmp_buf, 1); +} + +#ifdef OS_WINDOWS +// TODO(hamaji): Death test somehow doesn't work in Windows. +#define ASSERT_DEATH(fn, msg) +#else +#define ASSERT_DEATH(fn, msg) \ + do { \ + g_called_abort = false; \ + /* in logging.cc */ \ + void (*original_logging_fail_func)() = g_logging_fail_func; \ + g_logging_fail_func = &CalledAbort; \ + if (!setjmp(g_jmp_buf)) fn; \ + /* set back to their default */ \ + g_logging_fail_func = original_logging_fail_func; \ + if (!g_called_abort) { \ + fprintf(stderr, "Function didn't die (%s): %s\n", msg, #fn); \ + exit(1); \ + } \ + } while (0) +#endif + +#ifdef NDEBUG +#define ASSERT_DEBUG_DEATH(fn, msg) +#else +#define ASSERT_DEBUG_DEATH(fn, msg) ASSERT_DEATH(fn, msg) +#endif // NDEBUG + +// Benchmark tools. + +#define BENCHMARK(n) static BenchmarkRegisterer __benchmark_ ## n (#n, &n); + +map g_benchlist; // the benchmarks to run + +class BenchmarkRegisterer { + public: + BenchmarkRegisterer(const char* name, void (*function)(int iters)) { + EXPECT_TRUE(g_benchlist.insert(std::make_pair(name, function)).second); + } +}; + +static inline void RunSpecifiedBenchmarks() { + if (!FLAGS_run_benchmark) { + return; + } + + int iter_cnt = FLAGS_benchmark_iters; + puts("Benchmark\tTime(ns)\tIterations"); + for (map::const_iterator iter = g_benchlist.begin(); + iter != g_benchlist.end(); + ++iter) { + clock_t start = clock(); + iter->second(iter_cnt); + double elapsed_ns = + ((double)clock() - start) / CLOCKS_PER_SEC * 1000*1000*1000; + printf("%s\t%8.2lf\t%10d\n", + iter->first.c_str(), elapsed_ns / iter_cnt, iter_cnt); + } + puts(""); +} + +// ---------------------------------------------------------------------- +// Golden file functions +// ---------------------------------------------------------------------- + +class CapturedStream { + public: + CapturedStream(int fd, const string & filename) : + fd_(fd), + uncaptured_fd_(-1), + filename_(filename) { + Capture(); + } + + ~CapturedStream() { + if (uncaptured_fd_ != -1) { + CHECK(close(uncaptured_fd_) != -1); + } + } + + // Start redirecting output to a file + void Capture() { + // Keep original stream for later + CHECK(uncaptured_fd_ == -1) << ", Stream " << fd_ << " already captured!"; + uncaptured_fd_ = dup(fd_); + CHECK(uncaptured_fd_ != -1); + + // Open file to save stream to + int cap_fd = open(filename_.c_str(), + O_CREAT | O_TRUNC | O_WRONLY, + S_IRUSR | S_IWUSR); + CHECK(cap_fd != -1); + + // Send stdout/stderr to this file + fflush(NULL); + CHECK(dup2(cap_fd, fd_) != -1); + CHECK(close(cap_fd) != -1); + } + + // Remove output redirection + void StopCapture() { + // Restore original stream + if (uncaptured_fd_ != -1) { + fflush(NULL); + CHECK(dup2(uncaptured_fd_, fd_) != -1); + } + } + + const string & filename() const { return filename_; } + + private: + int fd_; // file descriptor being captured + int uncaptured_fd_; // where the stream was originally being sent to + string filename_; // file where stream is being saved +}; +static CapturedStream * s_captured_streams[STDERR_FILENO+1]; +// Redirect a file descriptor to a file. +// fd - Should be STDOUT_FILENO or STDERR_FILENO +// filename - File where output should be stored +static inline void CaptureTestOutput(int fd, const string & filename) { + CHECK((fd == STDOUT_FILENO) || (fd == STDERR_FILENO)); + CHECK(s_captured_streams[fd] == NULL); + s_captured_streams[fd] = new CapturedStream(fd, filename); +} +static inline void CaptureTestStderr() { + CaptureTestOutput(STDERR_FILENO, FLAGS_test_tmpdir + "/captured.err"); +} +// Return the size (in bytes) of a file +static inline size_t GetFileSize(FILE * file) { + fseek(file, 0, SEEK_END); + return static_cast(ftell(file)); +} +// Read the entire content of a file as a string +static inline string ReadEntireFile(FILE * file) { + const size_t file_size = GetFileSize(file); + char * const buffer = new char[file_size]; + + size_t bytes_last_read = 0; // # of bytes read in the last fread() + size_t bytes_read = 0; // # of bytes read so far + + fseek(file, 0, SEEK_SET); + + // Keep reading the file until we cannot read further or the + // pre-determined file size is reached. + do { + bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); + bytes_read += bytes_last_read; + } while (bytes_last_read > 0 && bytes_read < file_size); + + const string content = string(buffer, buffer+bytes_read); + delete[] buffer; + + return content; +} +// Get the captured stdout (when fd is STDOUT_FILENO) or stderr (when +// fd is STDERR_FILENO) as a string +static inline string GetCapturedTestOutput(int fd) { + CHECK(fd == STDOUT_FILENO || fd == STDERR_FILENO); + CapturedStream * const cap = s_captured_streams[fd]; + CHECK(cap) + << ": did you forget CaptureTestStdout() or CaptureTestStderr()?"; + + // Make sure everything is flushed. + cap->StopCapture(); + + // Read the captured file. + FILE * const file = fopen(cap->filename().c_str(), "r"); + const string content = ReadEntireFile(file); + fclose(file); + + delete cap; + s_captured_streams[fd] = NULL; + + return content; +} +// Get the captured stderr of a test as a string. +static inline string GetCapturedTestStderr() { + return GetCapturedTestOutput(STDERR_FILENO); +} + +// Check if the string is [IWEF](\d{4}|DATE) +static inline bool IsLoggingPrefix(const string& s) { + if (s.size() != 5) return false; + if (!strchr("IWEF", s[0])) return false; + for (int i = 1; i <= 4; ++i) { + if (!isdigit(s[i]) && s[i] != "DATE"[i-1]) return false; + } + return true; +} + +// Convert log output into normalized form. +// +// Example: +// I0102 030405 logging_unittest.cc:345] RAW: vlog -1 +// => IDATE TIME__ logging_unittest.cc:LINE] RAW: vlog -1 +static inline string MungeLine(const string& line) { + std::istringstream iss(line); + string before, logcode_date, time, thread_lineinfo; + iss >> logcode_date; + while (!IsLoggingPrefix(logcode_date)) { + before += " " + logcode_date; + if (!(iss >> logcode_date)) { + // We cannot find the header of log output. + return before; + } + } + if (!before.empty()) before += " "; + iss >> time; + iss >> thread_lineinfo; + CHECK(!thread_lineinfo.empty()); + if (thread_lineinfo[thread_lineinfo.size() - 1] != ']') { + // We found thread ID. + string tmp; + iss >> tmp; + CHECK(!tmp.empty()); + CHECK_EQ(']', tmp[tmp.size() - 1]); + thread_lineinfo = "THREADID " + tmp; + } + size_t index = thread_lineinfo.find(':'); + CHECK_NE(string::npos, index); + thread_lineinfo = thread_lineinfo.substr(0, index+1) + "LINE]"; + string rest; + std::getline(iss, rest); + return (before + logcode_date[0] + "DATE TIME__ " + thread_lineinfo + + MungeLine(rest)); +} + +static inline void StringReplace(string* str, + const string& oldsub, + const string& newsub) { + size_t pos = str->find(oldsub); + if (pos != string::npos) { + str->replace(pos, oldsub.size(), newsub.c_str()); + } +} + +static inline string Munge(const string& filename) { + FILE* fp = fopen(filename.c_str(), "rb"); + CHECK(fp != NULL) << filename << ": couldn't open"; + char buf[4096]; + string result; + while (fgets(buf, 4095, fp)) { + string line = MungeLine(buf); + char null_str[256]; + sprintf(null_str, "%p", static_cast(NULL)); + StringReplace(&line, "__NULLP__", null_str); + // Remove 0x prefix produced by %p. VC++ doesn't put the prefix. + StringReplace(&line, " 0x", " "); + + StringReplace(&line, "__SUCCESS__", StrError(0)); + StringReplace(&line, "__ENOENT__", StrError(ENOENT)); + StringReplace(&line, "__EINTR__", StrError(EINTR)); + StringReplace(&line, "__ENXIO__", StrError(ENXIO)); + StringReplace(&line, "__ENOEXEC__", StrError(ENOEXEC)); + result += line + "\n"; + } + fclose(fp); + return result; +} + +static inline void WriteToFile(const string& body, const string& file) { + FILE* fp = fopen(file.c_str(), "wb"); + fwrite(body.data(), 1, body.size(), fp); + fclose(fp); +} + +static inline bool MungeAndDiffTestStderr(const string& golden_filename) { + CapturedStream* cap = s_captured_streams[STDERR_FILENO]; + CHECK(cap) << ": did you forget CaptureTestStderr()?"; + + cap->StopCapture(); + + // Run munge + const string captured = Munge(cap->filename()); + const string golden = Munge(golden_filename); + if (captured != golden) { + fprintf(stderr, + "Test with golden file failed. We'll try to show the diff:\n"); + string munged_golden = golden_filename + ".munged"; + WriteToFile(golden, munged_golden); + string munged_captured = cap->filename() + ".munged"; + WriteToFile(captured, munged_captured); + string diffcmd("diff -u " + munged_golden + " " + munged_captured); + if (system(diffcmd.c_str()) != 0) { + fprintf(stderr, "diff command was failed.\n"); + } + unlink(munged_golden.c_str()); + unlink(munged_captured.c_str()); + return false; + } + LOG(INFO) << "Diff was successful"; + return true; +} + +// Save flags used from logging_unittest.cc. +#ifndef HAVE_LIB_GFLAGS +struct FlagSaver { + FlagSaver() + : v_(FLAGS_v), + stderrthreshold_(FLAGS_stderrthreshold), + logtostderr_(FLAGS_logtostderr), + alsologtostderr_(FLAGS_alsologtostderr) {} + ~FlagSaver() { + FLAGS_v = v_; + FLAGS_stderrthreshold = stderrthreshold_; + FLAGS_logtostderr = logtostderr_; + FLAGS_alsologtostderr = alsologtostderr_; + } + int v_; + int stderrthreshold_; + bool logtostderr_; + bool alsologtostderr_; +}; +#endif + +class Thread { + public: + virtual ~Thread() {} + + void SetJoinable(bool) {} +#if defined(OS_WINDOWS) || defined(OS_CYGWIN) + void Start() { + handle_ = CreateThread(NULL, + 0, + (LPTHREAD_START_ROUTINE)&Thread::InvokeThread, + (LPVOID)this, + 0, + &th_); + CHECK(handle_) << "CreateThread"; + } + void Join() { + WaitForSingleObject(handle_, INFINITE); + } +#elif defined(HAVE_PTHREAD) + void Start() { + pthread_create(&th_, NULL, &Thread::InvokeThread, this); + } + void Join() { + pthread_join(th_, NULL); + } +#else +# error No thread implementation. +#endif + + protected: + virtual void Run() = 0; + + private: + static void* InvokeThread(void* self) { + ((Thread*)self)->Run(); + return NULL; + } + +#if defined(OS_WINDOWS) || defined(OS_CYGWIN) + HANDLE handle_; + DWORD th_; +#else + pthread_t th_; +#endif +}; + +static inline void SleepForMilliseconds(int t) { +#ifndef OS_WINDOWS + usleep(t * 1000); +#else + Sleep(t); +#endif +} + +// Add hook for operator new to ensure there are no memory allocation. + +void (*g_new_hook)() = NULL; + +_END_GOOGLE_NAMESPACE_ + +void* operator new(size_t size) throw(std::bad_alloc) { + if (GOOGLE_NAMESPACE::g_new_hook) { + GOOGLE_NAMESPACE::g_new_hook(); + } + return malloc(size); +} + +void* operator new[](size_t size) throw(std::bad_alloc) { + return ::operator new(size); +} + +void operator delete(void* p) throw() { + free(p); +} + +void operator delete[](void* p) throw() { + ::operator delete(p); +} diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/mock-log.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/mock-log.h new file mode 100644 index 0000000..30a0f74 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/mock-log.h @@ -0,0 +1,156 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Zhanyong Wan +// +// Defines the ScopedMockLog class (using Google C++ Mocking +// Framework), which is convenient for testing code that uses LOG(). + +#ifndef GLOG_SRC_MOCK_LOG_H_ +#define GLOG_SRC_MOCK_LOG_H_ + +// For GOOGLE_NAMESPACE. This must go first so we get _XOPEN_SOURCE. +#include "utilities.h" + +#include + +#include + +#include "glog/logging.h" + +_START_GOOGLE_NAMESPACE_ +namespace glog_testing { + +// A ScopedMockLog object intercepts LOG() messages issued during its +// lifespan. Using this together with Google C++ Mocking Framework, +// it's very easy to test how a piece of code calls LOG(). The +// typical usage: +// +// TEST(FooTest, LogsCorrectly) { +// ScopedMockLog log; +// +// // We expect the WARNING "Something bad!" exactly twice. +// EXPECT_CALL(log, Log(WARNING, _, "Something bad!")) +// .Times(2); +// +// // We allow foo.cc to call LOG(INFO) any number of times. +// EXPECT_CALL(log, Log(INFO, HasSubstr("/foo.cc"), _)) +// .Times(AnyNumber()); +// +// Foo(); // Exercises the code under test. +// } +class ScopedMockLog : public GOOGLE_NAMESPACE::LogSink { + public: + // When a ScopedMockLog object is constructed, it starts to + // intercept logs. + ScopedMockLog() { AddLogSink(this); } + + // When the object is destructed, it stops intercepting logs. + virtual ~ScopedMockLog() { RemoveLogSink(this); } + + // Implements the mock method: + // + // void Log(LogSeverity severity, const string& file_path, + // const string& message); + // + // The second argument to Send() is the full path of the source file + // in which the LOG() was issued. + // + // Note, that in a multi-threaded environment, all LOG() messages from a + // single thread will be handled in sequence, but that cannot be guaranteed + // for messages from different threads. In fact, if the same or multiple + // expectations are matched on two threads concurrently, their actions will + // be executed concurrently as well and may interleave. + MOCK_METHOD3(Log, void(GOOGLE_NAMESPACE::LogSeverity severity, + const std::string& file_path, + const std::string& message)); + + private: + // Implements the send() virtual function in class LogSink. + // Whenever a LOG() statement is executed, this function will be + // invoked with information presented in the LOG(). + // + // The method argument list is long and carries much information a + // test usually doesn't care about, so we trim the list before + // forwarding the call to Log(), which is much easier to use in + // tests. + // + // We still cannot call Log() directly, as it may invoke other LOG() + // messages, either due to Invoke, or due to an error logged in + // Google C++ Mocking Framework code, which would trigger a deadlock + // since a lock is held during send(). + // + // Hence, we save the message for WaitTillSent() which will be called after + // the lock on send() is released, and we'll call Log() inside + // WaitTillSent(). Since while a single send() call may be running at a + // time, multiple WaitTillSent() calls (along with the one send() call) may + // be running simultaneously, we ensure thread-safety of the exchange between + // send() and WaitTillSent(), and that for each message, LOG(), send(), + // WaitTillSent() and Log() are executed in the same thread. + virtual void send(GOOGLE_NAMESPACE::LogSeverity severity, + const char* full_filename, + const char* /*base_filename*/, int /*line*/, + const tm* /*tm_time*/, + const char* message, size_t message_len) { + // We are only interested in the log severity, full file name, and + // log message. + message_info_.severity = severity; + message_info_.file_path = full_filename; + message_info_.message = std::string(message, message_len); + } + + // Implements the WaitTillSent() virtual function in class LogSink. + // It will be executed after send() and after the global logging lock is + // released, so calls within it (or rather within the Log() method called + // within) may also issue LOG() statements. + // + // LOG(), send(), WaitTillSent() and Log() will occur in the same thread for + // a given log message. + virtual void WaitTillSent() { + // First, and very importantly, we save a copy of the message being + // processed before calling Log(), since Log() may indirectly call send() + // and WaitTillSent() in the same thread again. + MessageInfo message_info = message_info_; + Log(message_info.severity, message_info.file_path, message_info.message); + } + + // All relevant information about a logged message that needs to be passed + // from send() to WaitTillSent(). + struct MessageInfo { + GOOGLE_NAMESPACE::LogSeverity severity; + std::string file_path; + std::string message; + }; + MessageInfo message_info_; +}; + +} // namespace glog_testing +_END_GOOGLE_NAMESPACE_ + +#endif // GLOG_SRC_MOCK_LOG_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace.h new file mode 100644 index 0000000..8c3e8fe --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace.h @@ -0,0 +1,60 @@ +// Copyright (c) 2000 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Routines to extract the current stack trace. These functions are +// thread-safe. + +#ifndef BASE_STACKTRACE_H_ +#define BASE_STACKTRACE_H_ + +#include "config.h" + +_START_GOOGLE_NAMESPACE_ + +// This is similar to the GetStackFrames routine, except that it returns +// the stack trace only, and not the stack frame sizes as well. +// Example: +// main() { foo(); } +// foo() { bar(); } +// bar() { +// void* result[10]; +// int depth = GetStackFrames(result, 10, 1); +// } +// +// This produces: +// result[0] foo +// result[1] main +// .... ... +// +// "result" must not be NULL. +extern int GetStackTrace(void** result, int max_depth, int skip_count); + +_END_GOOGLE_NAMESPACE_ + +#endif // BASE_STACKTRACE_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_generic-inl.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_generic-inl.h new file mode 100644 index 0000000..fad81d3 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_generic-inl.h @@ -0,0 +1,59 @@ +// Copyright (c) 2000 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Portable implementation - just use glibc +// +// Note: The glibc implementation may cause a call to malloc. +// This can cause a deadlock in HeapProfiler. +#include +#include +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + static const int kStackLength = 64; + void * stack[kStackLength]; + int size; + + size = backtrace(stack, kStackLength); + skip_count++; // we want to skip the current frame as well + int result_count = size - skip_count; + if (result_count < 0) + result_count = 0; + if (result_count > max_depth) + result_count = max_depth; + for (int i = 0; i < result_count; i++) + result[i] = stack[i + skip_count]; + + return result_count; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_libunwind-inl.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_libunwind-inl.h new file mode 100644 index 0000000..0dc14c6 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_libunwind-inl.h @@ -0,0 +1,87 @@ +// Copyright (c) 2005 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Arun Sharma +// +// Produce stack trace using libunwind + +#include "utilities.h" + +extern "C" { +#define UNW_LOCAL_ONLY +#include +} +#include "glog/raw_logging.h" +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// Sometimes, we can try to get a stack trace from within a stack +// trace, because libunwind can call mmap (maybe indirectly via an +// internal mmap based memory allocator), and that mmap gets trapped +// and causes a stack-trace request. If were to try to honor that +// recursive request, we'd end up with infinite recursion or deadlock. +// Luckily, it's safe to ignore those subsequent traces. In such +// cases, we return 0 to indicate the situation. +static bool g_now_entering = false; + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + void *ip; + int n = 0; + unw_cursor_t cursor; + unw_context_t uc; + + if (sync_val_compare_and_swap(&g_now_entering, false, true)) { + return 0; + } + + unw_getcontext(&uc); + RAW_CHECK(unw_init_local(&cursor, &uc) >= 0, "unw_init_local failed"); + skip_count++; // Do not include the "GetStackTrace" frame + + while (n < max_depth) { + int ret = unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t *) &ip); + if (ret < 0) + break; + if (skip_count > 0) { + skip_count--; + } else { + result[n++] = ip; + } + ret = unw_step(&cursor); + if (ret <= 0) + break; + } + + g_now_entering = false; + return n; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_powerpc-inl.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_powerpc-inl.h new file mode 100644 index 0000000..03b9108 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_powerpc-inl.h @@ -0,0 +1,130 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Craig Silverstein +// +// Produce stack trace. I'm guessing (hoping!) the code is much like +// for x86. For apple machines, at least, it seems to be; see +// http://developer.apple.com/documentation/mac/runtimehtml/RTArch-59.html +// http://www.linux-foundation.org/spec/ELF/ppc64/PPC-elf64abi-1.9.html#STACK +// Linux has similar code: http://patchwork.ozlabs.org/linuxppc/patch?id=8882 + +#include +#include // for uintptr_t +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// Given a pointer to a stack frame, locate and return the calling +// stackframe, or return NULL if no stackframe can be found. Perform sanity +// checks (the strictness of which is controlled by the boolean parameter +// "STRICT_UNWINDING") to reduce the chance that a bad pointer is returned. +template +static void **NextStackFrame(void **old_sp) { + void **new_sp = (void **) *old_sp; + + // Check that the transition from frame pointer old_sp to frame + // pointer new_sp isn't clearly bogus + if (STRICT_UNWINDING) { + // With the stack growing downwards, older stack frame must be + // at a greater address that the current one. + if (new_sp <= old_sp) return NULL; + // Assume stack frames larger than 100,000 bytes are bogus. + if ((uintptr_t)new_sp - (uintptr_t)old_sp > 100000) return NULL; + } else { + // In the non-strict mode, allow discontiguous stack frames. + // (alternate-signal-stacks for example). + if (new_sp == old_sp) return NULL; + // And allow frames upto about 1MB. + if ((new_sp > old_sp) + && ((uintptr_t)new_sp - (uintptr_t)old_sp > 1000000)) return NULL; + } + if ((uintptr_t)new_sp & (sizeof(void *) - 1)) return NULL; + return new_sp; +} + +// This ensures that GetStackTrace stes up the Link Register properly. +void StacktracePowerPCDummyFunction() __attribute__((noinline)); +void StacktracePowerPCDummyFunction() { __asm__ volatile(""); } + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + void **sp; + // Apple OS X uses an old version of gnu as -- both Darwin 7.9.0 (Panther) + // and Darwin 8.8.1 (Tiger) use as 1.38. This means we have to use a + // different asm syntax. I don't know quite the best way to discriminate + // systems using the old as from the new one; I've gone with __APPLE__. +#ifdef __APPLE__ + __asm__ volatile ("mr %0,r1" : "=r" (sp)); +#else + __asm__ volatile ("mr %0,1" : "=r" (sp)); +#endif + + // On PowerPC, the "Link Register" or "Link Record" (LR), is a stack + // entry that holds the return address of the subroutine call (what + // instruction we run after our function finishes). This is the + // same as the stack-pointer of our parent routine, which is what we + // want here. While the compiler will always(?) set up LR for + // subroutine calls, it may not for leaf functions (such as this one). + // This routine forces the compiler (at least gcc) to push it anyway. + StacktracePowerPCDummyFunction(); + + // The LR save area is used by the callee, so the top entry is bogus. + skip_count++; + + int n = 0; + while (sp && n < max_depth) { + if (skip_count > 0) { + skip_count--; + } else { + // PowerPC has 3 main ABIs, which say where in the stack the + // Link Register is. For DARWIN and AIX (used by apple and + // linux ppc64), it's in sp[2]. For SYSV (used by linux ppc), + // it's in sp[1]. +#if defined(_CALL_AIX) || defined(_CALL_DARWIN) + result[n++] = *(sp+2); +#elif defined(_CALL_SYSV) + result[n++] = *(sp+1); +#elif defined(__APPLE__) || ((defined(__linux) || defined(__linux__)) && defined(__PPC64__)) + // This check is in case the compiler doesn't define _CALL_AIX/etc. + result[n++] = *(sp+2); +#elif defined(__linux) + // This check is in case the compiler doesn't define _CALL_SYSV. + result[n++] = *(sp+1); +#else +#error Need to specify the PPC ABI for your archiecture. +#endif + } + // Use strict unwinding rules. + sp = NextStackFrame(sp); + } + return n; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_x86-inl.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_x86-inl.h new file mode 100644 index 0000000..cfd31f7 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_x86-inl.h @@ -0,0 +1,139 @@ +// Copyright (c) 2000 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Produce stack trace + +#include // for uintptr_t + +#include "utilities.h" // for OS_* macros + +#if !defined(OS_WINDOWS) +#include +#include +#endif + +#include // for NULL +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// Given a pointer to a stack frame, locate and return the calling +// stackframe, or return NULL if no stackframe can be found. Perform sanity +// checks (the strictness of which is controlled by the boolean parameter +// "STRICT_UNWINDING") to reduce the chance that a bad pointer is returned. +template +static void **NextStackFrame(void **old_sp) { + void **new_sp = (void **) *old_sp; + + // Check that the transition from frame pointer old_sp to frame + // pointer new_sp isn't clearly bogus + if (STRICT_UNWINDING) { + // With the stack growing downwards, older stack frame must be + // at a greater address that the current one. + if (new_sp <= old_sp) return NULL; + // Assume stack frames larger than 100,000 bytes are bogus. + if ((uintptr_t)new_sp - (uintptr_t)old_sp > 100000) return NULL; + } else { + // In the non-strict mode, allow discontiguous stack frames. + // (alternate-signal-stacks for example). + if (new_sp == old_sp) return NULL; + // And allow frames upto about 1MB. + if ((new_sp > old_sp) + && ((uintptr_t)new_sp - (uintptr_t)old_sp > 1000000)) return NULL; + } + if ((uintptr_t)new_sp & (sizeof(void *) - 1)) return NULL; +#ifdef __i386__ + // On 64-bit machines, the stack pointer can be very close to + // 0xffffffff, so we explicitly check for a pointer into the + // last two pages in the address space + if ((uintptr_t)new_sp >= 0xffffe000) return NULL; +#endif +#if !defined(OS_WINDOWS) + if (!STRICT_UNWINDING) { + // Lax sanity checks cause a crash in 32-bit tcmalloc/crash_reason_test + // on AMD-based machines with VDSO-enabled kernels. + // Make an extra sanity check to insure new_sp is readable. + // Note: NextStackFrame() is only called while the program + // is already on its last leg, so it's ok to be slow here. + static int page_size = getpagesize(); + void *new_sp_aligned = (void *)((uintptr_t)new_sp & ~(page_size - 1)); + if (msync(new_sp_aligned, page_size, MS_ASYNC) == -1) + return NULL; + } +#endif + return new_sp; +} + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + void **sp; +#ifdef __i386__ + // Stack frame format: + // sp[0] pointer to previous frame + // sp[1] caller address + // sp[2] first argument + // ... + sp = (void **)&result - 2; +#endif + +#ifdef __x86_64__ + // __builtin_frame_address(0) can return the wrong address on gcc-4.1.0-k8 + unsigned long rbp; + // Move the value of the register %rbp into the local variable rbp. + // We need 'volatile' to prevent this instruction from getting moved + // around during optimization to before function prologue is done. + // An alternative way to achieve this + // would be (before this __asm__ instruction) to call Noop() defined as + // static void Noop() __attribute__ ((noinline)); // prevent inlining + // static void Noop() { asm(""); } // prevent optimizing-away + __asm__ volatile ("mov %%rbp, %0" : "=r" (rbp)); + // Arguments are passed in registers on x86-64, so we can't just + // offset from &result + sp = (void **) rbp; +#endif + + int n = 0; + while (sp && n < max_depth) { + if (*(sp+1) == (void *)0) { + // In 64-bit code, we often see a frame that + // points to itself and has a return address of 0. + break; + } + if (skip_count > 0) { + skip_count--; + } else { + result[n++] = *(sp+1); + } + // Use strict unwinding rules. + sp = NextStackFrame(sp); + } + return n; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_x86_64-inl.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_x86_64-inl.h new file mode 100644 index 0000000..f7d1dca --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/stacktrace_x86_64-inl.h @@ -0,0 +1,105 @@ +// Copyright (c) 2005 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Arun Sharma +// +// Produce stack trace using libgcc + +extern "C" { +#include // for NULL +#include // ABI defined unwinder +} +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +typedef struct { + void **result; + int max_depth; + int skip_count; + int count; +} trace_arg_t; + + +// Workaround for the malloc() in _Unwind_Backtrace() issue. +static _Unwind_Reason_Code nop_backtrace(struct _Unwind_Context *uc, void *opq) { + return _URC_NO_REASON; +} + + +// This code is not considered ready to run until +// static initializers run so that we are guaranteed +// that any malloc-related initialization is done. +static bool ready_to_run = false; +class StackTraceInit { + public: + StackTraceInit() { + // Extra call to force initialization + _Unwind_Backtrace(nop_backtrace, NULL); + ready_to_run = true; + } +}; + +static StackTraceInit module_initializer; // Force initialization + +static _Unwind_Reason_Code GetOneFrame(struct _Unwind_Context *uc, void *opq) { + trace_arg_t *targ = (trace_arg_t *) opq; + + if (targ->skip_count > 0) { + targ->skip_count--; + } else { + targ->result[targ->count++] = (void *) _Unwind_GetIP(uc); + } + + if (targ->count == targ->max_depth) + return _URC_END_OF_STACK; + + return _URC_NO_REASON; +} + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + if (!ready_to_run) + return 0; + + trace_arg_t targ; + + skip_count += 1; // Do not include the "GetStackTrace" frame + + targ.result = result; + targ.max_depth = max_depth; + targ.skip_count = skip_count; + targ.count = 0; + + _Unwind_Backtrace(GetOneFrame, &targ); + + return targ.count; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/symbolize.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/symbolize.h new file mode 100644 index 0000000..f617184 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/symbolize.h @@ -0,0 +1,155 @@ +// Copyright (c) 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Satoru Takabayashi +// +// This library provides Symbolize() function that symbolizes program +// counters to their corresponding symbol names on linux platforms. +// This library has a minimal implementation of an ELF symbol table +// reader (i.e. it doesn't depend on libelf, etc.). +// +// The algorithm used in Symbolize() is as follows. +// +// 1. Go through a list of maps in /proc/self/maps and find the map +// containing the program counter. +// +// 2. Open the mapped file and find a regular symbol table inside. +// Iterate over symbols in the symbol table and look for the symbol +// containing the program counter. If such a symbol is found, +// obtain the symbol name, and demangle the symbol if possible. +// If the symbol isn't found in the regular symbol table (binary is +// stripped), try the same thing with a dynamic symbol table. +// +// Note that Symbolize() is originally implemented to be used in +// FailureSignalHandler() in base/google.cc. Hence it doesn't use +// malloc() and other unsafe operations. It should be both +// thread-safe and async-signal-safe. + +#ifndef BASE_SYMBOLIZE_H_ +#define BASE_SYMBOLIZE_H_ + +#include "utilities.h" +#include "config.h" +#include "glog/logging.h" + +#ifdef HAVE_SYMBOLIZE + +#if defined(__ELF__) // defined by gcc +#if defined(__OpenBSD__) +#include +#else +#include +#endif + +#if !defined(ANDROID) +#include // For ElfW() macro. +#endif + +// For systems where SIZEOF_VOID_P is not defined, determine it +// based on __LP64__ (defined by gcc on 64-bit systems) +#if !defined(SIZEOF_VOID_P) +# if defined(__LP64__) +# define SIZEOF_VOID_P 8 +# else +# define SIZEOF_VOID_P 4 +# endif +#endif + +// If there is no ElfW macro, let's define it by ourself. +#ifndef ElfW +# if SIZEOF_VOID_P == 4 +# define ElfW(type) Elf32_##type +# elif SIZEOF_VOID_P == 8 +# define ElfW(type) Elf64_##type +# else +# error "Unknown sizeof(void *)" +# endif +#endif + +_START_GOOGLE_NAMESPACE_ + +// Gets the section header for the given name, if it exists. Returns true on +// success. Otherwise, returns false. +bool GetSectionHeaderByName(int fd, const char *name, size_t name_len, + ElfW(Shdr) *out); + +_END_GOOGLE_NAMESPACE_ + +#endif /* __ELF__ */ + +_START_GOOGLE_NAMESPACE_ + +// Restrictions on the callbacks that follow: +// - The callbacks must not use heaps but only use stacks. +// - The callbacks must be async-signal-safe. + +// Installs a callback function, which will be called right before a symbol name +// is printed. The callback is intended to be used for showing a file name and a +// line number preceding a symbol name. +// "fd" is a file descriptor of the object file containing the program +// counter "pc". The callback function should write output to "out" +// and return the size of the output written. On error, the callback +// function should return -1. +typedef int (*SymbolizeCallback)(int fd, void *pc, char *out, size_t out_size, + uint64 relocation); +void InstallSymbolizeCallback(SymbolizeCallback callback); + +// Installs a callback function, which will be called instead of +// OpenObjectFileContainingPcAndGetStartAddress. The callback is expected +// to searches for the object file (from /proc/self/maps) that contains +// the specified pc. If found, sets |start_address| to the start address +// of where this object file is mapped in memory, sets the module base +// address into |base_address|, copies the object file name into +// |out_file_name|, and attempts to open the object file. If the object +// file is opened successfully, returns the file descriptor. Otherwise, +// returns -1. |out_file_name_size| is the size of the file name buffer +// (including the null-terminator). +typedef int (*SymbolizeOpenObjectFileCallback)(uint64_t pc, + uint64_t &start_address, + uint64_t &base_address, + char *out_file_name, + int out_file_name_size); +void InstallSymbolizeOpenObjectFileCallback( + SymbolizeOpenObjectFileCallback callback); + +_END_GOOGLE_NAMESPACE_ + +#endif + +_START_GOOGLE_NAMESPACE_ + +// Symbolizes a program counter. On success, returns true and write the +// symbol name to "out". The symbol name is demangled if possible +// (supports symbols generated by GCC 3.x or newer). Otherwise, +// returns false. +bool Symbolize(void *pc, char *out, int out_size); + +_END_GOOGLE_NAMESPACE_ + +#endif // BASE_SYMBOLIZE_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/utilities.h b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/utilities.h new file mode 100644 index 0000000..5f79968 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64/Headers/glog/src/utilities.h @@ -0,0 +1,226 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Shinichiro Hamaji +// +// Define utilties for glog internal usage. + +#ifndef UTILITIES_H__ +#define UTILITIES_H__ + +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) +# define OS_WINDOWS +#elif defined(__CYGWIN__) || defined(__CYGWIN32__) +# define OS_CYGWIN +#elif defined(linux) || defined(__linux) || defined(__linux__) +# define OS_LINUX +#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) +# define OS_MACOSX +#elif defined(__FreeBSD__) +# define OS_FREEBSD +#elif defined(__NetBSD__) +# define OS_NETBSD +#elif defined(__OpenBSD__) +# define OS_OPENBSD +#else +// TODO(hamaji): Add other platforms. +#endif + +// printf macros for size_t, in the style of inttypes.h +#ifdef _LP64 +#define __PRIS_PREFIX "z" +#else +#define __PRIS_PREFIX +#endif + +// Use these macros after a % in a printf format string +// to get correct 32/64 bit behavior, like this: +// size_t size = records.size(); +// printf("%"PRIuS"\n", size); + +#define PRIdS __PRIS_PREFIX "d" +#define PRIxS __PRIS_PREFIX "x" +#define PRIuS __PRIS_PREFIX "u" +#define PRIXS __PRIS_PREFIX "X" +#define PRIoS __PRIS_PREFIX "o" + +#include "base/mutex.h" // This must go first so we get _XOPEN_SOURCE + +#include + +#if defined(OS_WINDOWS) +# include "port.h" +#endif + +#include "config.h" +#include "glog/logging.h" + +// There are three different ways we can try to get the stack trace: +// +// 1) The libunwind library. This is still in development, and as a +// separate library adds a new dependency, but doesn't need a frame +// pointer. It also doesn't call malloc. +// +// 2) Our hand-coded stack-unwinder. This depends on a certain stack +// layout, which is used by gcc (and those systems using a +// gcc-compatible ABI) on x86 systems, at least since gcc 2.95. +// It uses the frame pointer to do its work. +// +// 3) The gdb unwinder -- also the one used by the c++ exception code. +// It's obviously well-tested, but has a fatal flaw: it can call +// malloc() from the unwinder. This is a problem because we're +// trying to use the unwinder to instrument malloc(). +// +// Note: if you add a new implementation here, make sure it works +// correctly when GetStackTrace() is called with max_depth == 0. +// Some code may do that. + +#if defined(HAVE_LIB_UNWIND) +# define STACKTRACE_H "stacktrace_libunwind-inl.h" +#elif !defined(NO_FRAME_POINTER) +# if defined(__i386__) && __GNUC__ >= 2 +# define STACKTRACE_H "stacktrace_x86-inl.h" +# elif defined(__x86_64__) && __GNUC__ >= 2 && HAVE_UNWIND_H +# define STACKTRACE_H "stacktrace_x86_64-inl.h" +# elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2 +# define STACKTRACE_H "stacktrace_powerpc-inl.h" +# endif +#endif + +#if !defined(STACKTRACE_H) && defined(HAVE_EXECINFO_H) +# define STACKTRACE_H "stacktrace_generic-inl.h" +#endif + +#if defined(STACKTRACE_H) +# define HAVE_STACKTRACE +#endif + +// defined by gcc +#if defined(__ELF__) && defined(OS_LINUX) +# define HAVE_SYMBOLIZE +#elif defined(OS_MACOSX) && defined(HAVE_DLADDR) +// Use dladdr to symbolize. +# define HAVE_SYMBOLIZE +#endif + +#ifndef ARRAYSIZE +// There is a better way, but this is good enough for our purpose. +# define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a))) +#endif + +_START_GOOGLE_NAMESPACE_ + +namespace glog_internal_namespace_ { + +#ifdef HAVE___ATTRIBUTE__ +# define ATTRIBUTE_NOINLINE __attribute__ ((noinline)) +# define HAVE_ATTRIBUTE_NOINLINE +#else +# define ATTRIBUTE_NOINLINE +#endif + +const char* ProgramInvocationShortName(); + +bool IsGoogleLoggingInitialized(); + +bool is_default_thread(); + +int64 CycleClock_Now(); + +int64 UsecToCycles(int64 usec); + +typedef double WallTime; +WallTime WallTime_Now(); + +int32 GetMainThreadPid(); +bool PidHasChanged(); + +pid_t GetTID(); + +const std::string& MyUserName(); + +// Get the part of filepath after the last path separator. +// (Doesn't modify filepath, contrary to basename() in libgen.h.) +const char* const_basename(const char* filepath); + +// Wrapper of __sync_val_compare_and_swap. If the GCC extension isn't +// defined, we try the CPU specific logics (we only support x86 and +// x86_64 for now) first, then use a naive implementation, which has a +// race condition. +template +inline T sync_val_compare_and_swap(T* ptr, T oldval, T newval) { +#if defined(HAVE___SYNC_VAL_COMPARE_AND_SWAP) + return __sync_val_compare_and_swap(ptr, oldval, newval); +#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) + T ret; + __asm__ __volatile__("lock; cmpxchg %1, (%2);" + :"=a"(ret) + // GCC may produces %sil or %dil for + // constraint "r", but some of apple's gas + // dosn't know the 8 bit registers. + // We use "q" to avoid these registers. + :"q"(newval), "q"(ptr), "a"(oldval) + :"memory", "cc"); + return ret; +#else + T ret = *ptr; + if (ret == oldval) { + *ptr = newval; + } + return ret; +#endif +} + +void DumpStackTraceToString(std::string* stacktrace); + +struct CrashReason { + CrashReason() : filename(0), line_number(0), message(0), depth(0) {} + + const char* filename; + int line_number; + const char* message; + + // We'll also store a bit of stack trace context at the time of crash as + // it may not be available later on. + void* stack[32]; + int depth; +}; + +void SetCrashReason(const CrashReason* r); + +void InitGoogleLoggingUtilities(const char* argv0); +void ShutdownGoogleLoggingUtilities(); + +} // namespace glog_internal_namespace_ + +_END_GOOGLE_NAMESPACE_ + +using namespace GOOGLE_NAMESPACE::glog_internal_namespace_; + +#endif // UTILITIES_H__ diff --git a/Frameworks/glog.xcframework/ios-arm64/libglog.a b/Frameworks/glog.xcframework/ios-arm64/libglog.a index f94ddfa..99ca23b 100644 Binary files a/Frameworks/glog.xcframework/ios-arm64/libglog.a and b/Frameworks/glog.xcframework/ios-arm64/libglog.a differ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/commandlineflags.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/commandlineflags.h new file mode 100644 index 0000000..c8d5089 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/commandlineflags.h @@ -0,0 +1,133 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- +// This file is a compatibility layer that defines Google's version of +// command line flags that are used for configuration. +// +// We put flags into their own namespace. It is purposefully +// named in an opaque way that people should have trouble typing +// directly. The idea is that DEFINE puts the flag in the weird +// namespace, and DECLARE imports the flag from there into the +// current namespace. The net result is to force people to use +// DECLARE to get access to a flag, rather than saying +// extern bool FLAGS_logtostderr; +// or some such instead. We want this so we can put extra +// functionality (like sanity-checking) in DECLARE if we want, +// and make sure it is picked up everywhere. +// +// We also put the type of the variable in the namespace, so that +// people can't DECLARE_int32 something that they DEFINE_bool'd +// elsewhere. +#ifndef BASE_COMMANDLINEFLAGS_H__ +#define BASE_COMMANDLINEFLAGS_H__ + +#include "config.h" +#include +#include // for memchr +#include // for getenv + +#ifdef HAVE_LIB_GFLAGS + +#include + +#else + +#include "glog/logging.h" + +#define DECLARE_VARIABLE(type, shorttype, name, tn) \ + namespace fL##shorttype { \ + extern GOOGLE_GLOG_DLL_DECL type FLAGS_##name; \ + } \ + using fL##shorttype::FLAGS_##name +#define DEFINE_VARIABLE(type, shorttype, name, value, meaning, tn) \ + namespace fL##shorttype { \ + GOOGLE_GLOG_DLL_DECL type FLAGS_##name(value); \ + char FLAGS_no##name; \ + } \ + using fL##shorttype::FLAGS_##name + +// bool specialization +#define DECLARE_bool(name) \ + DECLARE_VARIABLE(bool, B, name, bool) +#define DEFINE_bool(name, value, meaning) \ + DEFINE_VARIABLE(bool, B, name, value, meaning, bool) + +// int32 specialization +#define DECLARE_int32(name) \ + DECLARE_VARIABLE(GOOGLE_NAMESPACE::int32, I, name, int32) +#define DEFINE_int32(name, value, meaning) \ + DEFINE_VARIABLE(GOOGLE_NAMESPACE::int32, I, name, value, meaning, int32) + +// Special case for string, because we have to specify the namespace +// std::string, which doesn't play nicely with our FLAG__namespace hackery. +#define DECLARE_string(name) \ + namespace fLS { \ + extern GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name; \ + } \ + using fLS::FLAGS_##name +#define DEFINE_string(name, value, meaning) \ + namespace fLS { \ + std::string FLAGS_##name##_buf(value); \ + GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name = FLAGS_##name##_buf; \ + char FLAGS_no##name; \ + } \ + using fLS::FLAGS_##name + +#endif // HAVE_LIB_GFLAGS + +// Define GLOG_DEFINE_* using DEFINE_* . By using these macros, we +// have GLOG_* environ variables even if we have gflags installed. +// +// If both an environment variable and a flag are specified, the value +// specified by a flag wins. E.g., if GLOG_v=0 and --v=1, the +// verbosity will be 1, not 0. + +#define GLOG_DEFINE_bool(name, value, meaning) \ + DEFINE_bool(name, EnvToBool("GLOG_" #name, value), meaning) + +#define GLOG_DEFINE_int32(name, value, meaning) \ + DEFINE_int32(name, EnvToInt("GLOG_" #name, value), meaning) + +#define GLOG_DEFINE_string(name, value, meaning) \ + DEFINE_string(name, EnvToString("GLOG_" #name, value), meaning) + +// These macros (could be functions, but I don't want to bother with a .cc +// file), make it easier to initialize flags from the environment. + +#define EnvToString(envname, dflt) \ + (!getenv(envname) ? (dflt) : getenv(envname)) + +#define EnvToBool(envname, dflt) \ + (!getenv(envname) ? (dflt) : memchr("tTyY1\0", getenv(envname)[0], 6) != NULL) + +#define EnvToInt(envname, dflt) \ + (!getenv(envname) ? (dflt) : strtol(getenv(envname), NULL, 10)) + +#endif // BASE_COMMANDLINEFLAGS_H__ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/googleinit.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/googleinit.h new file mode 100644 index 0000000..5a8b515 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/googleinit.h @@ -0,0 +1,51 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- +// Author: Jacob Hoffman-Andrews + +#ifndef _GOOGLEINIT_H +#define _GOOGLEINIT_H + +class GoogleInitializer { + public: + typedef void (*void_function)(void); + GoogleInitializer(const char*, void_function f) { + f(); + } +}; + +#define REGISTER_MODULE_INITIALIZER(name, body) \ + namespace { \ + static void google_init_module_##name () { body; } \ + GoogleInitializer google_initializer_module_##name(#name, \ + google_init_module_##name); \ + } + +#endif /* _GOOGLEINIT_H */ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/mutex.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/mutex.h new file mode 100644 index 0000000..ced2b99 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/base/mutex.h @@ -0,0 +1,333 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// --- +// Author: Craig Silverstein. +// +// A simple mutex wrapper, supporting locks and read-write locks. +// You should assume the locks are *not* re-entrant. +// +// To use: you should define the following macros in your configure.ac: +// ACX_PTHREAD +// AC_RWLOCK +// The latter is defined in ../autoconf. +// +// This class is meant to be internal-only and should be wrapped by an +// internal namespace. Before you use this module, please give the +// name of your internal namespace for this module. Or, if you want +// to expose it, you'll want to move it to the Google namespace. We +// cannot put this class in global namespace because there can be some +// problems when we have multiple versions of Mutex in each shared object. +// +// NOTE: by default, we have #ifdef'ed out the TryLock() method. +// This is for two reasons: +// 1) TryLock() under Windows is a bit annoying (it requires a +// #define to be defined very early). +// 2) TryLock() is broken for NO_THREADS mode, at least in NDEBUG +// mode. +// If you need TryLock(), and either these two caveats are not a +// problem for you, or you're willing to work around them, then +// feel free to #define GMUTEX_TRYLOCK, or to remove the #ifdefs +// in the code below. +// +// CYGWIN NOTE: Cygwin support for rwlock seems to be buggy: +// http://www.cygwin.com/ml/cygwin/2008-12/msg00017.html +// Because of that, we might as well use windows locks for +// cygwin. They seem to be more reliable than the cygwin pthreads layer. +// +// TRICKY IMPLEMENTATION NOTE: +// This class is designed to be safe to use during +// dynamic-initialization -- that is, by global constructors that are +// run before main() starts. The issue in this case is that +// dynamic-initialization happens in an unpredictable order, and it +// could be that someone else's dynamic initializer could call a +// function that tries to acquire this mutex -- but that all happens +// before this mutex's constructor has run. (This can happen even if +// the mutex and the function that uses the mutex are in the same .cc +// file.) Basically, because Mutex does non-trivial work in its +// constructor, it's not, in the naive implementation, safe to use +// before dynamic initialization has run on it. +// +// The solution used here is to pair the actual mutex primitive with a +// bool that is set to true when the mutex is dynamically initialized. +// (Before that it's false.) Then we modify all mutex routines to +// look at the bool, and not try to lock/unlock until the bool makes +// it to true (which happens after the Mutex constructor has run.) +// +// This works because before main() starts -- particularly, during +// dynamic initialization -- there are no threads, so a) it's ok that +// the mutex operations are a no-op, since we don't need locking then +// anyway; and b) we can be quite confident our bool won't change +// state between a call to Lock() and a call to Unlock() (that would +// require a global constructor in one translation unit to call Lock() +// and another global constructor in another translation unit to call +// Unlock() later, which is pretty perverse). +// +// That said, it's tricky, and can conceivably fail; it's safest to +// avoid trying to acquire a mutex in a global constructor, if you +// can. One way it can fail is that a really smart compiler might +// initialize the bool to true at static-initialization time (too +// early) rather than at dynamic-initialization time. To discourage +// that, we set is_safe_ to true in code (not the constructor +// colon-initializer) and set it to true via a function that always +// evaluates to true, but that the compiler can't know always +// evaluates to true. This should be good enough. + +#ifndef GOOGLE_MUTEX_H_ +#define GOOGLE_MUTEX_H_ + +#include "config.h" // to figure out pthreads support + +#if defined(NO_THREADS) + typedef int MutexType; // to keep a lock-count +#elif defined(_WIN32) || defined(__CYGWIN32__) || defined(__CYGWIN64__) +# ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN // We only need minimal includes +# endif +# ifdef GMUTEX_TRYLOCK + // We need Windows NT or later for TryEnterCriticalSection(). If you + // don't need that functionality, you can remove these _WIN32_WINNT + // lines, and change TryLock() to assert(0) or something. +# ifndef _WIN32_WINNT +# define _WIN32_WINNT 0x0400 +# endif +# endif +// To avoid macro definition of ERROR. +# ifndef NOGDI +# define NOGDI +# endif +// To avoid macro definition of min/max. +# ifndef NOMINMAX +# define NOMINMAX +# endif +# include + typedef CRITICAL_SECTION MutexType; +#elif defined(HAVE_PTHREAD) && defined(HAVE_RWLOCK) + // Needed for pthread_rwlock_*. If it causes problems, you could take it + // out, but then you'd have to unset HAVE_RWLOCK (at least on linux -- it + // *does* cause problems for FreeBSD, or MacOSX, but isn't needed + // for locking there.) +# ifdef __linux__ +# ifndef _XOPEN_SOURCE // Some other header might have already set it for us. +# define _XOPEN_SOURCE 500 // may be needed to get the rwlock calls +# endif +# endif +# include + typedef pthread_rwlock_t MutexType; +#elif defined(HAVE_PTHREAD) +# include + typedef pthread_mutex_t MutexType; +#else +# error Need to implement mutex.h for your architecture, or #define NO_THREADS +#endif + +// We need to include these header files after defining _XOPEN_SOURCE +// as they may define the _XOPEN_SOURCE macro. +#include +#include // for abort() + +#define MUTEX_NAMESPACE glog_internal_namespace_ + +namespace MUTEX_NAMESPACE { + +class Mutex { + public: + // Create a Mutex that is not held by anybody. This constructor is + // typically used for Mutexes allocated on the heap or the stack. + // See below for a recommendation for constructing global Mutex + // objects. + inline Mutex(); + + // Destructor + inline ~Mutex(); + + inline void Lock(); // Block if needed until free then acquire exclusively + inline void Unlock(); // Release a lock acquired via Lock() +#ifdef GMUTEX_TRYLOCK + inline bool TryLock(); // If free, Lock() and return true, else return false +#endif + // Note that on systems that don't support read-write locks, these may + // be implemented as synonyms to Lock() and Unlock(). So you can use + // these for efficiency, but don't use them anyplace where being able + // to do shared reads is necessary to avoid deadlock. + inline void ReaderLock(); // Block until free or shared then acquire a share + inline void ReaderUnlock(); // Release a read share of this Mutex + inline void WriterLock() { Lock(); } // Acquire an exclusive lock + inline void WriterUnlock() { Unlock(); } // Release a lock from WriterLock() + + // TODO(hamaji): Do nothing, implement correctly. + inline void AssertHeld() {} + + private: + MutexType mutex_; + // We want to make sure that the compiler sets is_safe_ to true only + // when we tell it to, and never makes assumptions is_safe_ is + // always true. volatile is the most reliable way to do that. + volatile bool is_safe_; + + inline void SetIsSafe() { is_safe_ = true; } + + // Catch the error of writing Mutex when intending MutexLock. + Mutex(Mutex* /*ignored*/) {} + // Disallow "evil" constructors + Mutex(const Mutex&); + void operator=(const Mutex&); +}; + +// Now the implementation of Mutex for various systems +#if defined(NO_THREADS) + +// When we don't have threads, we can be either reading or writing, +// but not both. We can have lots of readers at once (in no-threads +// mode, that's most likely to happen in recursive function calls), +// but only one writer. We represent this by having mutex_ be -1 when +// writing and a number > 0 when reading (and 0 when no lock is held). +// +// In debug mode, we assert these invariants, while in non-debug mode +// we do nothing, for efficiency. That's why everything is in an +// assert. + +Mutex::Mutex() : mutex_(0) { } +Mutex::~Mutex() { assert(mutex_ == 0); } +void Mutex::Lock() { assert(--mutex_ == -1); } +void Mutex::Unlock() { assert(mutex_++ == -1); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { if (mutex_) return false; Lock(); return true; } +#endif +void Mutex::ReaderLock() { assert(++mutex_ > 0); } +void Mutex::ReaderUnlock() { assert(mutex_-- > 0); } + +#elif defined(_WIN32) || defined(__CYGWIN32__) || defined(__CYGWIN64__) + +Mutex::Mutex() { InitializeCriticalSection(&mutex_); SetIsSafe(); } +Mutex::~Mutex() { DeleteCriticalSection(&mutex_); } +void Mutex::Lock() { if (is_safe_) EnterCriticalSection(&mutex_); } +void Mutex::Unlock() { if (is_safe_) LeaveCriticalSection(&mutex_); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { return is_safe_ ? + TryEnterCriticalSection(&mutex_) != 0 : true; } +#endif +void Mutex::ReaderLock() { Lock(); } // we don't have read-write locks +void Mutex::ReaderUnlock() { Unlock(); } + +#elif defined(HAVE_PTHREAD) && defined(HAVE_RWLOCK) + +#define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ + if (is_safe_ && fncall(&mutex_) != 0) abort(); \ +} while (0) + +Mutex::Mutex() { + SetIsSafe(); + if (is_safe_ && pthread_rwlock_init(&mutex_, NULL) != 0) abort(); +} +Mutex::~Mutex() { SAFE_PTHREAD(pthread_rwlock_destroy); } +void Mutex::Lock() { SAFE_PTHREAD(pthread_rwlock_wrlock); } +void Mutex::Unlock() { SAFE_PTHREAD(pthread_rwlock_unlock); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { return is_safe_ ? + pthread_rwlock_trywrlock(&mutex_) == 0 : + true; } +#endif +void Mutex::ReaderLock() { SAFE_PTHREAD(pthread_rwlock_rdlock); } +void Mutex::ReaderUnlock() { SAFE_PTHREAD(pthread_rwlock_unlock); } +#undef SAFE_PTHREAD + +#elif defined(HAVE_PTHREAD) + +#define SAFE_PTHREAD(fncall) do { /* run fncall if is_safe_ is true */ \ + if (is_safe_ && fncall(&mutex_) != 0) abort(); \ +} while (0) + +Mutex::Mutex() { + SetIsSafe(); + if (is_safe_ && pthread_mutex_init(&mutex_, NULL) != 0) abort(); +} +Mutex::~Mutex() { SAFE_PTHREAD(pthread_mutex_destroy); } +void Mutex::Lock() { SAFE_PTHREAD(pthread_mutex_lock); } +void Mutex::Unlock() { SAFE_PTHREAD(pthread_mutex_unlock); } +#ifdef GMUTEX_TRYLOCK +bool Mutex::TryLock() { return is_safe_ ? + pthread_mutex_trylock(&mutex_) == 0 : true; } +#endif +void Mutex::ReaderLock() { Lock(); } +void Mutex::ReaderUnlock() { Unlock(); } +#undef SAFE_PTHREAD + +#endif + +// -------------------------------------------------------------------------- +// Some helper classes + +// MutexLock(mu) acquires mu when constructed and releases it when destroyed. +class MutexLock { + public: + explicit MutexLock(Mutex *mu) : mu_(mu) { mu_->Lock(); } + ~MutexLock() { mu_->Unlock(); } + private: + Mutex * const mu_; + // Disallow "evil" constructors + MutexLock(const MutexLock&); + void operator=(const MutexLock&); +}; + +// ReaderMutexLock and WriterMutexLock do the same, for rwlocks +class ReaderMutexLock { + public: + explicit ReaderMutexLock(Mutex *mu) : mu_(mu) { mu_->ReaderLock(); } + ~ReaderMutexLock() { mu_->ReaderUnlock(); } + private: + Mutex * const mu_; + // Disallow "evil" constructors + ReaderMutexLock(const ReaderMutexLock&); + void operator=(const ReaderMutexLock&); +}; + +class WriterMutexLock { + public: + explicit WriterMutexLock(Mutex *mu) : mu_(mu) { mu_->WriterLock(); } + ~WriterMutexLock() { mu_->WriterUnlock(); } + private: + Mutex * const mu_; + // Disallow "evil" constructors + WriterMutexLock(const WriterMutexLock&); + void operator=(const WriterMutexLock&); +}; + +// Catch bug where variable name is omitted, e.g. MutexLock (&mu); +#define MutexLock(x) COMPILE_ASSERT(0, mutex_lock_decl_missing_var_name) +#define ReaderMutexLock(x) COMPILE_ASSERT(0, rmutex_lock_decl_missing_var_name) +#define WriterMutexLock(x) COMPILE_ASSERT(0, wmutex_lock_decl_missing_var_name) + +} // namespace MUTEX_NAMESPACE + +using namespace MUTEX_NAMESPACE; + +#undef MUTEX_NAMESPACE + +#endif /* #define GOOGLE_MUTEX_H__ */ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/config.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/config.h new file mode 100644 index 0000000..f2405f9 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/config.h @@ -0,0 +1,195 @@ +/* src/config.h. Generated from config.h.in by configure. */ +/* src/config.h.in. Generated from configure.ac by autoheader. */ + +/* define if glog doesn't use RTTI */ +/* #undef DISABLE_RTTI */ + +/* Namespace for Google classes */ +#define GOOGLE_NAMESPACE google + +/* Define if you have the `dladdr' function */ +#define HAVE_DLADDR 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_DLFCN_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_EXECINFO_H 1 + +/* Define if you have the `fcntl' function */ +#define HAVE_FCNTL 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_GLOB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_INTTYPES_H 1 + +/* Define to 1 if you have the `pthread' library (-lpthread). */ +#define HAVE_LIBPTHREAD 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_LIBUNWIND_H 1 + +/* define if you have google gflags library */ +/* #undef HAVE_LIB_GFLAGS_DISABLED */ + +/* define if you have google gmock library */ +/* #undef HAVE_LIB_GMOCK */ + +/* define if you have google gtest library */ +/* #undef HAVE_LIB_GTEST */ + +/* define if you have libunwind */ +/* #undef HAVE_LIB_UNWIND */ + +/* Define to 1 if you have the header file. */ +#define HAVE_MEMORY_H 1 + +/* define if the compiler implements namespaces */ +#define HAVE_NAMESPACES 1 + +/* Define if you have the 'pread' function */ +#define HAVE_PREAD 1 + +/* Define if you have POSIX threads libraries and header files. */ +#define HAVE_PTHREAD 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_PWD_H 1 + +/* Define if you have the 'pwrite' function */ +#define HAVE_PWRITE 1 + +/* define if the compiler implements pthread_rwlock_* */ +#define HAVE_RWLOCK 1 + +/* Define if you have the 'sigaction' function */ +#define HAVE_SIGACTION 1 + +/* Define if you have the `sigaltstack' function */ +#define HAVE_SIGALTSTACK 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDINT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STDLIB_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRINGS_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_STRING_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_SYSCALL_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_SYSLOG_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_STAT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_SYSCALL_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TYPES_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_UCONTEXT_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_UTSNAME_H 1 + +/* Define to 1 if you have the header file. */ +/* #undef HAVE_UCONTEXT_H */ + +/* Define to 1 if you have the header file. */ +#define HAVE_UNISTD_H 1 + +/* Define to 1 if you have the header file. */ +#define HAVE_UNWIND_H 1 + +/* define if the compiler supports using expression for operator */ +#define HAVE_USING_OPERATOR 1 + +/* define if your compiler has __attribute__ */ +#define HAVE___ATTRIBUTE__ 1 + +/* define if your compiler has __builtin_expect */ +#define HAVE___BUILTIN_EXPECT 1 + +/* define if your compiler has __sync_val_compare_and_swap */ +#define HAVE___SYNC_VAL_COMPARE_AND_SWAP 1 + +/* Define to the sub-directory in which libtool stores uninstalled libraries. + */ +#define LT_OBJDIR ".libs/" + +/* Name of package */ +#define PACKAGE "glog" + +/* Define to the address where bug reports for this package should be sent. */ +#define PACKAGE_BUGREPORT "opensource@google.com" + +/* Define to the full name of this package. */ +#define PACKAGE_NAME "glog" + +/* Define to the full name and version of this package. */ +#define PACKAGE_STRING "glog 0.3.5" + +/* Define to the one symbol short name of this package. */ +#define PACKAGE_TARNAME "glog" + +/* Define to the home page for this package. */ +#define PACKAGE_URL "" + +/* Define to the version of this package. */ +#define PACKAGE_VERSION "0.3.5" + +/* How to access the PC from a struct ucontext */ +/* #undef PC_FROM_UCONTEXT */ + +/* Define to necessary symbol if this constant uses a non-standard name on + your system. */ +/* #undef PTHREAD_CREATE_JOINABLE */ + +/* The size of `void *', as computed by sizeof. */ +#define SIZEOF_VOID_P 8 + +/* Define to 1 if you have the ANSI C header files. */ +/* #undef STDC_HEADERS */ + +/* the namespace where STL code like vector<> is defined */ +#define STL_NAMESPACE std + +/* location of source code */ +#define TEST_SRC_DIR "." + +/* Version number of package */ +#define VERSION "0.3.5" + +/* Stops putting the code inside the Google namespace */ +#define _END_GOOGLE_NAMESPACE_ } + +/* Puts following code inside the Google namespace */ +#define _START_GOOGLE_NAMESPACE_ namespace google { +/* Add in so we have Apple Target Conditionals */ +#ifdef __APPLE__ +#include +#include +#endif + +/* Special configuration for ucontext */ +#undef HAVE_UCONTEXT_H +#undef PC_FROM_UCONTEXT +#if defined(__x86_64__) +#define PC_FROM_UCONTEXT uc_mcontext->__ss.__rip +#elif defined(__i386__) +#define PC_FROM_UCONTEXT uc_mcontext->__ss.__eip +#endif diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/config_for_unittests.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/config_for_unittests.h new file mode 100644 index 0000000..13ea8ea --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/config_for_unittests.h @@ -0,0 +1,66 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +// --- +// All Rights Reserved. +// +// Author: Craig Silverstein +// Copied from google-perftools and modified by Shinichiro Hamaji +// +// This file is needed for windows -- unittests are not part of the +// glog dll, but still want to include config.h just like the +// dll does, so they can use internal tools and APIs for testing. +// +// The problem is that config.h declares GOOGLE_GLOG_DLL_DECL to be +// for exporting symbols, but the unittest needs to *import* symbols +// (since it's not the dll). +// +// The solution is to have this file, which is just like config.h but +// sets GOOGLE_GLOG_DLL_DECL to do a dllimport instead of a dllexport. +// +// The reason we need this extra GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS +// variable is in case people want to set GOOGLE_GLOG_DLL_DECL explicitly +// to something other than __declspec(dllexport). In that case, they +// may want to use something other than __declspec(dllimport) for the +// unittest case. For that, we allow folks to define both +// GOOGLE_GLOG_DLL_DECL and GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS explicitly. +// +// NOTE: This file is equivalent to config.h on non-windows systems, +// which never defined GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS and always +// define GOOGLE_GLOG_DLL_DECL to the empty string. + +#include "config.h" + +#undef GOOGLE_GLOG_DLL_DECL +#ifdef GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS +# define GOOGLE_GLOG_DLL_DECL GOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS +#else +// if DLL_DECL_FOR_UNITTESTS isn't defined, use "" +# define GOOGLE_GLOG_DLL_DECL +#endif diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/demangle.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/demangle.h new file mode 100644 index 0000000..991b6ff --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/demangle.h @@ -0,0 +1,85 @@ +// Copyright (c) 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Satoru Takabayashi +// +// An async-signal-safe and thread-safe demangler for Itanium C++ ABI +// (aka G++ V3 ABI). + +// The demangler is implemented to be used in async signal handlers to +// symbolize stack traces. We cannot use libstdc++'s +// abi::__cxa_demangle() in such signal handlers since it's not async +// signal safe (it uses malloc() internally). +// +// Note that this demangler doesn't support full demangling. More +// specifically, it doesn't print types of function parameters and +// types of template arguments. It just skips them. However, it's +// still very useful to extract basic information such as class, +// function, constructor, destructor, and operator names. +// +// See the implementation note in demangle.cc if you are interested. +// +// Example: +// +// | Mangled Name | The Demangler | abi::__cxa_demangle() +// |---------------|---------------|----------------------- +// | _Z1fv | f() | f() +// | _Z1fi | f() | f(int) +// | _Z3foo3bar | foo() | foo(bar) +// | _Z1fIiEvi | f<>() | void f(int) +// | _ZN1N1fE | N::f | N::f +// | _ZN3Foo3BarEv | Foo::Bar() | Foo::Bar() +// | _Zrm1XS_" | operator%() | operator%(X, X) +// | _ZN3FooC1Ev | Foo::Foo() | Foo::Foo() +// | _Z1fSs | f() | f(std::basic_string, +// | | | std::allocator >) +// +// See the unit test for more examples. +// +// Note: we might want to write demanglers for ABIs other than Itanium +// C++ ABI in the future. +// + +#ifndef BASE_DEMANGLE_H_ +#define BASE_DEMANGLE_H_ + +#include "config.h" +#include "glog/logging.h" + +_START_GOOGLE_NAMESPACE_ + +// Demangle "mangled". On success, return true and write the +// demangled symbol name to "out". Otherwise, return false. +// "out" is modified even if demangling is unsuccessful. +bool GOOGLE_GLOG_DLL_DECL Demangle(const char *mangled, char *out, int out_size); + +_END_GOOGLE_NAMESPACE_ + +#endif // BASE_DEMANGLE_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/log_severity.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/log_severity.h new file mode 100644 index 0000000..99945a4 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/log_severity.h @@ -0,0 +1,92 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +#ifndef BASE_LOG_SEVERITY_H__ +#define BASE_LOG_SEVERITY_H__ + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +// Variables of type LogSeverity are widely taken to lie in the range +// [0, NUM_SEVERITIES-1]. Be careful to preserve this assumption if +// you ever need to change their values or add a new severity. +typedef int LogSeverity; + +const int GLOG_INFO = 0, GLOG_WARNING = 1, GLOG_ERROR = 2, GLOG_FATAL = 3, + NUM_SEVERITIES = 4; +#ifndef GLOG_NO_ABBREVIATED_SEVERITIES +# ifdef ERROR +# error ERROR macro is defined. Define GLOG_NO_ABBREVIATED_SEVERITIES before including logging.h. See the document for detail. +# endif +const int INFO = GLOG_INFO, WARNING = GLOG_WARNING, + ERROR = GLOG_ERROR, FATAL = GLOG_FATAL; +#endif + +// DFATAL is FATAL in debug mode, ERROR in normal mode +#ifdef NDEBUG +#define DFATAL_LEVEL ERROR +#else +#define DFATAL_LEVEL FATAL +#endif + +extern GOOGLE_GLOG_DLL_DECL const char* const LogSeverityNames[NUM_SEVERITIES]; + +// NDEBUG usage helpers related to (RAW_)DCHECK: +// +// DEBUG_MODE is for small !NDEBUG uses like +// if (DEBUG_MODE) foo.CheckThatFoo(); +// instead of substantially more verbose +// #ifndef NDEBUG +// foo.CheckThatFoo(); +// #endif +// +// IF_DEBUG_MODE is for small !NDEBUG uses like +// IF_DEBUG_MODE( string error; ) +// DCHECK(Foo(&error)) << error; +// instead of substantially more verbose +// #ifndef NDEBUG +// string error; +// DCHECK(Foo(&error)) << error; +// #endif +// +#ifdef NDEBUG +enum { DEBUG_MODE = 0 }; +#define IF_DEBUG_MODE(x) +#else +enum { DEBUG_MODE = 1 }; +#define IF_DEBUG_MODE(x) x +#endif + +#endif // BASE_LOG_SEVERITY_H__ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/logging.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/logging.h new file mode 100644 index 0000000..5abdacd --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/logging.h @@ -0,0 +1,1661 @@ +// Copyright (c) 1999, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Ray Sidney +// +// This file contains #include information about logging-related stuff. +// Pretty much everybody needs to #include this file so that they can +// log various happenings. +// +#ifndef _LOGGING_H_ +#define _LOGGING_H_ + +#include +#include +#include +#include +#include +#include +#include +#if 1 +# include +#endif +#include + +#if defined(_MSC_VER) +#define GLOG_MSVC_PUSH_DISABLE_WARNING(n) __pragma(warning(push)) \ + __pragma(warning(disable:n)) +#define GLOG_MSVC_POP_WARNING() __pragma(warning(pop)) +#else +#define GLOG_MSVC_PUSH_DISABLE_WARNING(n) +#define GLOG_MSVC_POP_WARNING() +#endif + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +// We care a lot about number of bits things take up. Unfortunately, +// systems define their bit-specific ints in a lot of different ways. +// We use our own way, and have a typedef to get there. +// Note: these commands below may look like "#if 1" or "#if 0", but +// that's because they were constructed that way at ./configure time. +// Look at logging.h.in to see how they're calculated (based on your config). +#if 1 +#include // the normal place uint16_t is defined +#endif +#if 1 +#include // the normal place u_int16_t is defined +#endif +#if 1 +#include // a third place for uint16_t or u_int16_t +#endif + +#if 0 +#include +#endif + +namespace google { + +#if 1 // the C99 format +typedef int32_t int32; +typedef uint32_t uint32; +typedef int64_t int64; +typedef uint64_t uint64; +#elif 1 // the BSD format +typedef int32_t int32; +typedef u_int32_t uint32; +typedef int64_t int64; +typedef u_int64_t uint64; +#elif 0 // the windows (vc7) format +typedef __int32 int32; +typedef unsigned __int32 uint32; +typedef __int64 int64; +typedef unsigned __int64 uint64; +#else +#error Do not know how to define a 32-bit integer quantity on your system +#endif + +} + +// The global value of GOOGLE_STRIP_LOG. All the messages logged to +// LOG(XXX) with severity less than GOOGLE_STRIP_LOG will not be displayed. +// If it can be determined at compile time that the message will not be +// printed, the statement will be compiled out. +// +// Example: to strip out all INFO and WARNING messages, use the value +// of 2 below. To make an exception for WARNING messages from a single +// file, add "#define GOOGLE_STRIP_LOG 1" to that file _before_ including +// base/logging.h +#ifndef GOOGLE_STRIP_LOG +#define GOOGLE_STRIP_LOG 0 +#endif + +// GCC can be told that a certain branch is not likely to be taken (for +// instance, a CHECK failure), and use that information in static analysis. +// Giving it this information can help it optimize for the common case in +// the absence of better information (ie. -fprofile-arcs). +// +#ifndef GOOGLE_PREDICT_BRANCH_NOT_TAKEN +#if 1 +#define GOOGLE_PREDICT_BRANCH_NOT_TAKEN(x) (__builtin_expect(x, 0)) +#else +#define GOOGLE_PREDICT_BRANCH_NOT_TAKEN(x) x +#endif +#endif + +#ifndef GOOGLE_PREDICT_FALSE +#if 1 +#define GOOGLE_PREDICT_FALSE(x) (__builtin_expect(x, 0)) +#else +#define GOOGLE_PREDICT_FALSE(x) x +#endif +#endif + +#ifndef GOOGLE_PREDICT_TRUE +#if 1 +#define GOOGLE_PREDICT_TRUE(x) (__builtin_expect(!!(x), 1)) +#else +#define GOOGLE_PREDICT_TRUE(x) x +#endif +#endif + + +// Make a bunch of macros for logging. The way to log things is to stream +// things to LOG(). E.g., +// +// LOG(INFO) << "Found " << num_cookies << " cookies"; +// +// You can capture log messages in a string, rather than reporting them +// immediately: +// +// vector errors; +// LOG_STRING(ERROR, &errors) << "Couldn't parse cookie #" << cookie_num; +// +// This pushes back the new error onto 'errors'; if given a NULL pointer, +// it reports the error via LOG(ERROR). +// +// You can also do conditional logging: +// +// LOG_IF(INFO, num_cookies > 10) << "Got lots of cookies"; +// +// You can also do occasional logging (log every n'th occurrence of an +// event): +// +// LOG_EVERY_N(INFO, 10) << "Got the " << google::COUNTER << "th cookie"; +// +// The above will cause log messages to be output on the 1st, 11th, 21st, ... +// times it is executed. Note that the special google::COUNTER value is used +// to identify which repetition is happening. +// +// You can also do occasional conditional logging (log every n'th +// occurrence of an event, when condition is satisfied): +// +// LOG_IF_EVERY_N(INFO, (size > 1024), 10) << "Got the " << google::COUNTER +// << "th big cookie"; +// +// You can log messages the first N times your code executes a line. E.g. +// +// LOG_FIRST_N(INFO, 20) << "Got the " << google::COUNTER << "th cookie"; +// +// Outputs log messages for the first 20 times it is executed. +// +// Analogous SYSLOG, SYSLOG_IF, and SYSLOG_EVERY_N macros are available. +// These log to syslog as well as to the normal logs. If you use these at +// all, you need to be aware that syslog can drastically reduce performance, +// especially if it is configured for remote logging! Don't use these +// unless you fully understand this and have a concrete need to use them. +// Even then, try to minimize your use of them. +// +// There are also "debug mode" logging macros like the ones above: +// +// DLOG(INFO) << "Found cookies"; +// +// DLOG_IF(INFO, num_cookies > 10) << "Got lots of cookies"; +// +// DLOG_EVERY_N(INFO, 10) << "Got the " << google::COUNTER << "th cookie"; +// +// All "debug mode" logging is compiled away to nothing for non-debug mode +// compiles. +// +// We also have +// +// LOG_ASSERT(assertion); +// DLOG_ASSERT(assertion); +// +// which is syntactic sugar for {,D}LOG_IF(FATAL, assert fails) << assertion; +// +// There are "verbose level" logging macros. They look like +// +// VLOG(1) << "I'm printed when you run the program with --v=1 or more"; +// VLOG(2) << "I'm printed when you run the program with --v=2 or more"; +// +// These always log at the INFO log level (when they log at all). +// The verbose logging can also be turned on module-by-module. For instance, +// --vmodule=mapreduce=2,file=1,gfs*=3 --v=0 +// will cause: +// a. VLOG(2) and lower messages to be printed from mapreduce.{h,cc} +// b. VLOG(1) and lower messages to be printed from file.{h,cc} +// c. VLOG(3) and lower messages to be printed from files prefixed with "gfs" +// d. VLOG(0) and lower messages to be printed from elsewhere +// +// The wildcarding functionality shown by (c) supports both '*' (match +// 0 or more characters) and '?' (match any single character) wildcards. +// +// There's also VLOG_IS_ON(n) "verbose level" condition macro. To be used as +// +// if (VLOG_IS_ON(2)) { +// // do some logging preparation and logging +// // that can't be accomplished with just VLOG(2) << ...; +// } +// +// There are also VLOG_IF, VLOG_EVERY_N and VLOG_IF_EVERY_N "verbose level" +// condition macros for sample cases, when some extra computation and +// preparation for logs is not needed. +// VLOG_IF(1, (size > 1024)) +// << "I'm printed when size is more than 1024 and when you run the " +// "program with --v=1 or more"; +// VLOG_EVERY_N(1, 10) +// << "I'm printed every 10th occurrence, and when you run the program " +// "with --v=1 or more. Present occurence is " << google::COUNTER; +// VLOG_IF_EVERY_N(1, (size > 1024), 10) +// << "I'm printed on every 10th occurence of case when size is more " +// " than 1024, when you run the program with --v=1 or more. "; +// "Present occurence is " << google::COUNTER; +// +// The supported severity levels for macros that allow you to specify one +// are (in increasing order of severity) INFO, WARNING, ERROR, and FATAL. +// Note that messages of a given severity are logged not only in the +// logfile for that severity, but also in all logfiles of lower severity. +// E.g., a message of severity FATAL will be logged to the logfiles of +// severity FATAL, ERROR, WARNING, and INFO. +// +// There is also the special severity of DFATAL, which logs FATAL in +// debug mode, ERROR in normal mode. +// +// Very important: logging a message at the FATAL severity level causes +// the program to terminate (after the message is logged). +// +// Unless otherwise specified, logs will be written to the filename +// "...log..", followed +// by the date, time, and pid (you can't prevent the date, time, and pid +// from being in the filename). +// +// The logging code takes two flags: +// --v=# set the verbose level +// --logtostderr log all the messages to stderr instead of to logfiles + +// LOG LINE PREFIX FORMAT +// +// Log lines have this form: +// +// Lmmdd hh:mm:ss.uuuuuu threadid file:line] msg... +// +// where the fields are defined as follows: +// +// L A single character, representing the log level +// (eg 'I' for INFO) +// mm The month (zero padded; ie May is '05') +// dd The day (zero padded) +// hh:mm:ss.uuuuuu Time in hours, minutes and fractional seconds +// threadid The space-padded thread ID as returned by GetTID() +// (this matches the PID on Linux) +// file The file name +// line The line number +// msg The user-supplied message +// +// Example: +// +// I1103 11:57:31.739339 24395 google.cc:2341] Command line: ./some_prog +// I1103 11:57:31.739403 24395 google.cc:2342] Process id 24395 +// +// NOTE: although the microseconds are useful for comparing events on +// a single machine, clocks on different machines may not be well +// synchronized. Hence, use caution when comparing the low bits of +// timestamps from different machines. + +#ifndef DECLARE_VARIABLE +#define MUST_UNDEF_GFLAGS_DECLARE_MACROS +#define DECLARE_VARIABLE(type, shorttype, name, tn) \ + namespace fL##shorttype { \ + extern GOOGLE_GLOG_DLL_DECL type FLAGS_##name; \ + } \ + using fL##shorttype::FLAGS_##name + +// bool specialization +#define DECLARE_bool(name) \ + DECLARE_VARIABLE(bool, B, name, bool) + +// int32 specialization +#define DECLARE_int32(name) \ + DECLARE_VARIABLE(google::int32, I, name, int32) + +// Special case for string, because we have to specify the namespace +// std::string, which doesn't play nicely with our FLAG__namespace hackery. +#define DECLARE_string(name) \ + namespace fLS { \ + extern GOOGLE_GLOG_DLL_DECL std::string& FLAGS_##name; \ + } \ + using fLS::FLAGS_##name +#endif + +// Set whether log messages go to stderr instead of logfiles +DECLARE_bool(logtostderr); + +// Set whether log messages go to stderr in addition to logfiles. +DECLARE_bool(alsologtostderr); + +// Set color messages logged to stderr (if supported by terminal). +DECLARE_bool(colorlogtostderr); + +// Log messages at a level >= this flag are automatically sent to +// stderr in addition to log files. +DECLARE_int32(stderrthreshold); + +// Set whether the log prefix should be prepended to each line of output. +DECLARE_bool(log_prefix); + +// Log messages at a level <= this flag are buffered. +// Log messages at a higher level are flushed immediately. +DECLARE_int32(logbuflevel); + +// Sets the maximum number of seconds which logs may be buffered for. +DECLARE_int32(logbufsecs); + +// Log suppression level: messages logged at a lower level than this +// are suppressed. +DECLARE_int32(minloglevel); + +// If specified, logfiles are written into this directory instead of the +// default logging directory. +DECLARE_string(log_dir); + +// Set the log file mode. +DECLARE_int32(logfile_mode); + +// Sets the path of the directory into which to put additional links +// to the log files. +DECLARE_string(log_link); + +DECLARE_int32(v); // in vlog_is_on.cc + +// Sets the maximum log file size (in MB). +DECLARE_int32(max_log_size); + +// Sets whether to avoid logging to the disk if the disk is full. +DECLARE_bool(stop_logging_if_full_disk); + +#ifdef MUST_UNDEF_GFLAGS_DECLARE_MACROS +#undef MUST_UNDEF_GFLAGS_DECLARE_MACROS +#undef DECLARE_VARIABLE +#undef DECLARE_bool +#undef DECLARE_int32 +#undef DECLARE_string +#endif + +// Log messages below the GOOGLE_STRIP_LOG level will be compiled away for +// security reasons. See LOG(severtiy) below. + +// A few definitions of macros that don't generate much code. Since +// LOG(INFO) and its ilk are used all over our code, it's +// better to have compact code for these operations. + +#if GOOGLE_STRIP_LOG == 0 +#define COMPACT_GOOGLE_LOG_INFO google::LogMessage( \ + __FILE__, __LINE__) +#define LOG_TO_STRING_INFO(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_INFO, message) +#else +#define COMPACT_GOOGLE_LOG_INFO google::NullStream() +#define LOG_TO_STRING_INFO(message) google::NullStream() +#endif + +#if GOOGLE_STRIP_LOG <= 1 +#define COMPACT_GOOGLE_LOG_WARNING google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_WARNING) +#define LOG_TO_STRING_WARNING(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_WARNING, message) +#else +#define COMPACT_GOOGLE_LOG_WARNING google::NullStream() +#define LOG_TO_STRING_WARNING(message) google::NullStream() +#endif + +#if GOOGLE_STRIP_LOG <= 2 +#define COMPACT_GOOGLE_LOG_ERROR google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ERROR) +#define LOG_TO_STRING_ERROR(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ERROR, message) +#else +#define COMPACT_GOOGLE_LOG_ERROR google::NullStream() +#define LOG_TO_STRING_ERROR(message) google::NullStream() +#endif + +#if GOOGLE_STRIP_LOG <= 3 +#define COMPACT_GOOGLE_LOG_FATAL google::LogMessageFatal( \ + __FILE__, __LINE__) +#define LOG_TO_STRING_FATAL(message) google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_FATAL, message) +#else +#define COMPACT_GOOGLE_LOG_FATAL google::NullStreamFatal() +#define LOG_TO_STRING_FATAL(message) google::NullStreamFatal() +#endif + +#if defined(NDEBUG) && !defined(DCHECK_ALWAYS_ON) +#define DCHECK_IS_ON() 0 +#else +#define DCHECK_IS_ON() 1 +#endif + +// For DFATAL, we want to use LogMessage (as opposed to +// LogMessageFatal), to be consistent with the original behavior. +#if !DCHECK_IS_ON() +#define COMPACT_GOOGLE_LOG_DFATAL COMPACT_GOOGLE_LOG_ERROR +#elif GOOGLE_STRIP_LOG <= 3 +#define COMPACT_GOOGLE_LOG_DFATAL google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_FATAL) +#else +#define COMPACT_GOOGLE_LOG_DFATAL google::NullStreamFatal() +#endif + +#define GOOGLE_LOG_INFO(counter) google::LogMessage(__FILE__, __LINE__, google::GLOG_INFO, counter, &google::LogMessage::SendToLog) +#define SYSLOG_INFO(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_INFO, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_WARNING(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_WARNING, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_WARNING(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_WARNING, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_ERROR(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_ERROR(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_FATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_FATAL, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_FATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_FATAL, counter, \ + &google::LogMessage::SendToSyslogAndLog) +#define GOOGLE_LOG_DFATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::DFATAL_LEVEL, counter, \ + &google::LogMessage::SendToLog) +#define SYSLOG_DFATAL(counter) \ + google::LogMessage(__FILE__, __LINE__, google::DFATAL_LEVEL, counter, \ + &google::LogMessage::SendToSyslogAndLog) + +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) || defined(__CYGWIN32__) +// A very useful logging macro to log windows errors: +#define LOG_SYSRESULT(result) \ + if (FAILED(HRESULT_FROM_WIN32(result))) { \ + LPSTR message = NULL; \ + LPSTR msg = reinterpret_cast(&message); \ + DWORD message_length = FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | \ + FORMAT_MESSAGE_FROM_SYSTEM, \ + 0, result, 0, msg, 100, NULL); \ + if (message_length > 0) { \ + google::LogMessage(__FILE__, __LINE__, google::GLOG_ERROR, 0, \ + &google::LogMessage::SendToLog).stream() \ + << reinterpret_cast(message); \ + LocalFree(message); \ + } \ + } +#endif + +// We use the preprocessor's merging operator, "##", so that, e.g., +// LOG(INFO) becomes the token GOOGLE_LOG_INFO. There's some funny +// subtle difference between ostream member streaming functions (e.g., +// ostream::operator<<(int) and ostream non-member streaming functions +// (e.g., ::operator<<(ostream&, string&): it turns out that it's +// impossible to stream something like a string directly to an unnamed +// ostream. We employ a neat hack by calling the stream() member +// function of LogMessage which seems to avoid the problem. +#define LOG(severity) COMPACT_GOOGLE_LOG_ ## severity.stream() +#define SYSLOG(severity) SYSLOG_ ## severity(0).stream() + +namespace google { + +// They need the definitions of integer types. +#include "glog/log_severity.h" +#include "glog/vlog_is_on.h" + +// Initialize google's logging library. You will see the program name +// specified by argv0 in log outputs. +GOOGLE_GLOG_DLL_DECL void InitGoogleLogging(const char* argv0); + +// Shutdown google's logging library. +GOOGLE_GLOG_DLL_DECL void ShutdownGoogleLogging(); + +// Install a function which will be called after LOG(FATAL). +GOOGLE_GLOG_DLL_DECL void InstallFailureFunction(void (*fail_func)()); + +class LogSink; // defined below + +// If a non-NULL sink pointer is given, we push this message to that sink. +// For LOG_TO_SINK we then do normal LOG(severity) logging as well. +// This is useful for capturing messages and passing/storing them +// somewhere more specific than the global log of the process. +// Argument types: +// LogSink* sink; +// LogSeverity severity; +// The cast is to disambiguate NULL arguments. +#define LOG_TO_SINK(sink, severity) \ + google::LogMessage( \ + __FILE__, __LINE__, \ + google::GLOG_ ## severity, \ + static_cast(sink), true).stream() +#define LOG_TO_SINK_BUT_NOT_TO_LOGFILE(sink, severity) \ + google::LogMessage( \ + __FILE__, __LINE__, \ + google::GLOG_ ## severity, \ + static_cast(sink), false).stream() + +// If a non-NULL string pointer is given, we write this message to that string. +// We then do normal LOG(severity) logging as well. +// This is useful for capturing messages and storing them somewhere more +// specific than the global log of the process. +// Argument types: +// string* message; +// LogSeverity severity; +// The cast is to disambiguate NULL arguments. +// NOTE: LOG(severity) expands to LogMessage().stream() for the specified +// severity. +#define LOG_TO_STRING(severity, message) \ + LOG_TO_STRING_##severity(static_cast(message)).stream() + +// If a non-NULL pointer is given, we push the message onto the end +// of a vector of strings; otherwise, we report it with LOG(severity). +// This is handy for capturing messages and perhaps passing them back +// to the caller, rather than reporting them immediately. +// Argument types: +// LogSeverity severity; +// vector *outvec; +// The cast is to disambiguate NULL arguments. +#define LOG_STRING(severity, outvec) \ + LOG_TO_STRING_##severity(static_cast*>(outvec)).stream() + +#define LOG_IF(severity, condition) \ + !(condition) ? (void) 0 : google::LogMessageVoidify() & LOG(severity) +#define SYSLOG_IF(severity, condition) \ + !(condition) ? (void) 0 : google::LogMessageVoidify() & SYSLOG(severity) + +#define LOG_ASSERT(condition) \ + LOG_IF(FATAL, !(condition)) << "Assert failed: " #condition +#define SYSLOG_ASSERT(condition) \ + SYSLOG_IF(FATAL, !(condition)) << "Assert failed: " #condition + +// CHECK dies with a fatal error if condition is not true. It is *not* +// controlled by DCHECK_IS_ON(), so the check will be executed regardless of +// compilation mode. Therefore, it is safe to do things like: +// CHECK(fp->Write(x) == 4) +#define CHECK(condition) \ + LOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition))) \ + << "Check failed: " #condition " " + +// A container for a string pointer which can be evaluated to a bool - +// true iff the pointer is NULL. +struct CheckOpString { + CheckOpString(std::string* str) : str_(str) { } + // No destructor: if str_ is non-NULL, we're about to LOG(FATAL), + // so there's no point in cleaning up str_. + operator bool() const { + return GOOGLE_PREDICT_BRANCH_NOT_TAKEN(str_ != NULL); + } + std::string* str_; +}; + +// Function is overloaded for integral types to allow static const +// integrals declared in classes and not defined to be used as arguments to +// CHECK* macros. It's not encouraged though. +template +inline const T& GetReferenceableValue(const T& t) { return t; } +inline char GetReferenceableValue(char t) { return t; } +inline unsigned char GetReferenceableValue(unsigned char t) { return t; } +inline signed char GetReferenceableValue(signed char t) { return t; } +inline short GetReferenceableValue(short t) { return t; } +inline unsigned short GetReferenceableValue(unsigned short t) { return t; } +inline int GetReferenceableValue(int t) { return t; } +inline unsigned int GetReferenceableValue(unsigned int t) { return t; } +inline long GetReferenceableValue(long t) { return t; } +inline unsigned long GetReferenceableValue(unsigned long t) { return t; } +inline long long GetReferenceableValue(long long t) { return t; } +inline unsigned long long GetReferenceableValue(unsigned long long t) { + return t; +} + +// This is a dummy class to define the following operator. +struct DummyClassToDefineOperator {}; + +} + +// Define global operator<< to declare using ::operator<<. +// This declaration will allow use to use CHECK macros for user +// defined classes which have operator<< (e.g., stl_logging.h). +inline std::ostream& operator<<( + std::ostream& out, const google::DummyClassToDefineOperator&) { + return out; +} + +namespace google { + +// This formats a value for a failing CHECK_XX statement. Ordinarily, +// it uses the definition for operator<<, with a few special cases below. +template +inline void MakeCheckOpValueString(std::ostream* os, const T& v) { + (*os) << v; +} + +// Overrides for char types provide readable values for unprintable +// characters. +template <> GOOGLE_GLOG_DLL_DECL +void MakeCheckOpValueString(std::ostream* os, const char& v); +template <> GOOGLE_GLOG_DLL_DECL +void MakeCheckOpValueString(std::ostream* os, const signed char& v); +template <> GOOGLE_GLOG_DLL_DECL +void MakeCheckOpValueString(std::ostream* os, const unsigned char& v); + +// Build the error message string. Specify no inlining for code size. +template +std::string* MakeCheckOpString(const T1& v1, const T2& v2, const char* exprtext) + __attribute__ ((noinline)); + +namespace base { +namespace internal { + +// If "s" is less than base_logging::INFO, returns base_logging::INFO. +// If "s" is greater than base_logging::FATAL, returns +// base_logging::ERROR. Otherwise, returns "s". +LogSeverity NormalizeSeverity(LogSeverity s); + +} // namespace internal + +// A helper class for formatting "expr (V1 vs. V2)" in a CHECK_XX +// statement. See MakeCheckOpString for sample usage. Other +// approaches were considered: use of a template method (e.g., +// base::BuildCheckOpString(exprtext, base::Print, &v1, +// base::Print, &v2), however this approach has complications +// related to volatile arguments and function-pointer arguments). +class GOOGLE_GLOG_DLL_DECL CheckOpMessageBuilder { + public: + // Inserts "exprtext" and " (" to the stream. + explicit CheckOpMessageBuilder(const char *exprtext); + // Deletes "stream_". + ~CheckOpMessageBuilder(); + // For inserting the first variable. + std::ostream* ForVar1() { return stream_; } + // For inserting the second variable (adds an intermediate " vs. "). + std::ostream* ForVar2(); + // Get the result (inserts the closing ")"). + std::string* NewString(); + + private: + std::ostringstream *stream_; +}; + +} // namespace base + +template +std::string* MakeCheckOpString(const T1& v1, const T2& v2, const char* exprtext) { + base::CheckOpMessageBuilder comb(exprtext); + MakeCheckOpValueString(comb.ForVar1(), v1); + MakeCheckOpValueString(comb.ForVar2(), v2); + return comb.NewString(); +} + +// Helper functions for CHECK_OP macro. +// The (int, int) specialization works around the issue that the compiler +// will not instantiate the template version of the function on values of +// unnamed enum type - see comment below. +#define DEFINE_CHECK_OP_IMPL(name, op) \ + template \ + inline std::string* name##Impl(const T1& v1, const T2& v2, \ + const char* exprtext) { \ + if (GOOGLE_PREDICT_TRUE(v1 op v2)) return NULL; \ + else return MakeCheckOpString(v1, v2, exprtext); \ + } \ + inline std::string* name##Impl(int v1, int v2, const char* exprtext) { \ + return name##Impl(v1, v2, exprtext); \ + } + +// We use the full name Check_EQ, Check_NE, etc. in case the file including +// base/logging.h provides its own #defines for the simpler names EQ, NE, etc. +// This happens if, for example, those are used as token names in a +// yacc grammar. +DEFINE_CHECK_OP_IMPL(Check_EQ, ==) // Compilation error with CHECK_EQ(NULL, x)? +DEFINE_CHECK_OP_IMPL(Check_NE, !=) // Use CHECK(x == NULL) instead. +DEFINE_CHECK_OP_IMPL(Check_LE, <=) +DEFINE_CHECK_OP_IMPL(Check_LT, < ) +DEFINE_CHECK_OP_IMPL(Check_GE, >=) +DEFINE_CHECK_OP_IMPL(Check_GT, > ) +#undef DEFINE_CHECK_OP_IMPL + +// Helper macro for binary operators. +// Don't use this macro directly in your code, use CHECK_EQ et al below. + +#if defined(STATIC_ANALYSIS) +// Only for static analysis tool to know that it is equivalent to assert +#define CHECK_OP_LOG(name, op, val1, val2, log) CHECK((val1) op (val2)) +#elif DCHECK_IS_ON() +// In debug mode, avoid constructing CheckOpStrings if possible, +// to reduce the overhead of CHECK statments by 2x. +// Real DCHECK-heavy tests have seen 1.5x speedups. + +// The meaning of "string" might be different between now and +// when this macro gets invoked (e.g., if someone is experimenting +// with other string implementations that get defined after this +// file is included). Save the current meaning now and use it +// in the macro. +typedef std::string _Check_string; +#define CHECK_OP_LOG(name, op, val1, val2, log) \ + while (google::_Check_string* _result = \ + google::Check##name##Impl( \ + google::GetReferenceableValue(val1), \ + google::GetReferenceableValue(val2), \ + #val1 " " #op " " #val2)) \ + log(__FILE__, __LINE__, \ + google::CheckOpString(_result)).stream() +#else +// In optimized mode, use CheckOpString to hint to compiler that +// the while condition is unlikely. +#define CHECK_OP_LOG(name, op, val1, val2, log) \ + while (google::CheckOpString _result = \ + google::Check##name##Impl( \ + google::GetReferenceableValue(val1), \ + google::GetReferenceableValue(val2), \ + #val1 " " #op " " #val2)) \ + log(__FILE__, __LINE__, _result).stream() +#endif // STATIC_ANALYSIS, DCHECK_IS_ON() + +#if GOOGLE_STRIP_LOG <= 3 +#define CHECK_OP(name, op, val1, val2) \ + CHECK_OP_LOG(name, op, val1, val2, google::LogMessageFatal) +#else +#define CHECK_OP(name, op, val1, val2) \ + CHECK_OP_LOG(name, op, val1, val2, google::NullStreamFatal) +#endif // STRIP_LOG <= 3 + +// Equality/Inequality checks - compare two values, and log a FATAL message +// including the two values when the result is not as expected. The values +// must have operator<<(ostream, ...) defined. +// +// You may append to the error message like so: +// CHECK_NE(1, 2) << ": The world must be ending!"; +// +// We are very careful to ensure that each argument is evaluated exactly +// once, and that anything which is legal to pass as a function argument is +// legal here. In particular, the arguments may be temporary expressions +// which will end up being destroyed at the end of the apparent statement, +// for example: +// CHECK_EQ(string("abc")[1], 'b'); +// +// WARNING: These don't compile correctly if one of the arguments is a pointer +// and the other is NULL. To work around this, simply static_cast NULL to the +// type of the desired pointer. + +#define CHECK_EQ(val1, val2) CHECK_OP(_EQ, ==, val1, val2) +#define CHECK_NE(val1, val2) CHECK_OP(_NE, !=, val1, val2) +#define CHECK_LE(val1, val2) CHECK_OP(_LE, <=, val1, val2) +#define CHECK_LT(val1, val2) CHECK_OP(_LT, < , val1, val2) +#define CHECK_GE(val1, val2) CHECK_OP(_GE, >=, val1, val2) +#define CHECK_GT(val1, val2) CHECK_OP(_GT, > , val1, val2) + +// Check that the input is non NULL. This very useful in constructor +// initializer lists. + +#define CHECK_NOTNULL(val) \ + google::CheckNotNull(__FILE__, __LINE__, "'" #val "' Must be non NULL", (val)) + +// Helper functions for string comparisons. +// To avoid bloat, the definitions are in logging.cc. +#define DECLARE_CHECK_STROP_IMPL(func, expected) \ + GOOGLE_GLOG_DLL_DECL std::string* Check##func##expected##Impl( \ + const char* s1, const char* s2, const char* names); +DECLARE_CHECK_STROP_IMPL(strcmp, true) +DECLARE_CHECK_STROP_IMPL(strcmp, false) +DECLARE_CHECK_STROP_IMPL(strcasecmp, true) +DECLARE_CHECK_STROP_IMPL(strcasecmp, false) +#undef DECLARE_CHECK_STROP_IMPL + +// Helper macro for string comparisons. +// Don't use this macro directly in your code, use CHECK_STREQ et al below. +#define CHECK_STROP(func, op, expected, s1, s2) \ + while (google::CheckOpString _result = \ + google::Check##func##expected##Impl((s1), (s2), \ + #s1 " " #op " " #s2)) \ + LOG(FATAL) << *_result.str_ + + +// String (char*) equality/inequality checks. +// CASE versions are case-insensitive. +// +// Note that "s1" and "s2" may be temporary strings which are destroyed +// by the compiler at the end of the current "full expression" +// (e.g. CHECK_STREQ(Foo().c_str(), Bar().c_str())). + +#define CHECK_STREQ(s1, s2) CHECK_STROP(strcmp, ==, true, s1, s2) +#define CHECK_STRNE(s1, s2) CHECK_STROP(strcmp, !=, false, s1, s2) +#define CHECK_STRCASEEQ(s1, s2) CHECK_STROP(strcasecmp, ==, true, s1, s2) +#define CHECK_STRCASENE(s1, s2) CHECK_STROP(strcasecmp, !=, false, s1, s2) + +#define CHECK_INDEX(I,A) CHECK(I < (sizeof(A)/sizeof(A[0]))) +#define CHECK_BOUND(B,A) CHECK(B <= (sizeof(A)/sizeof(A[0]))) + +#define CHECK_DOUBLE_EQ(val1, val2) \ + do { \ + CHECK_LE((val1), (val2)+0.000000000000001L); \ + CHECK_GE((val1), (val2)-0.000000000000001L); \ + } while (0) + +#define CHECK_NEAR(val1, val2, margin) \ + do { \ + CHECK_LE((val1), (val2)+(margin)); \ + CHECK_GE((val1), (val2)-(margin)); \ + } while (0) + +// perror()..googly style! +// +// PLOG() and PLOG_IF() and PCHECK() behave exactly like their LOG* and +// CHECK equivalents with the addition that they postpend a description +// of the current state of errno to their output lines. + +#define PLOG(severity) GOOGLE_PLOG(severity, 0).stream() + +#define GOOGLE_PLOG(severity, counter) \ + google::ErrnoLogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, counter, \ + &google::LogMessage::SendToLog) + +#define PLOG_IF(severity, condition) \ + !(condition) ? (void) 0 : google::LogMessageVoidify() & PLOG(severity) + +// A CHECK() macro that postpends errno if the condition is false. E.g. +// +// if (poll(fds, nfds, timeout) == -1) { PCHECK(errno == EINTR); ... } +#define PCHECK(condition) \ + PLOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN(!(condition))) \ + << "Check failed: " #condition " " + +// A CHECK() macro that lets you assert the success of a function that +// returns -1 and sets errno in case of an error. E.g. +// +// CHECK_ERR(mkdir(path, 0700)); +// +// or +// +// int fd = open(filename, flags); CHECK_ERR(fd) << ": open " << filename; +#define CHECK_ERR(invocation) \ +PLOG_IF(FATAL, GOOGLE_PREDICT_BRANCH_NOT_TAKEN((invocation) == -1)) \ + << #invocation + +// Use macro expansion to create, for each use of LOG_EVERY_N(), static +// variables with the __LINE__ expansion as part of the variable name. +#define LOG_EVERY_N_VARNAME(base, line) LOG_EVERY_N_VARNAME_CONCAT(base, line) +#define LOG_EVERY_N_VARNAME_CONCAT(base, line) base ## line + +#define LOG_OCCURRENCES LOG_EVERY_N_VARNAME(occurrences_, __LINE__) +#define LOG_OCCURRENCES_MOD_N LOG_EVERY_N_VARNAME(occurrences_mod_n_, __LINE__) + +#define SOME_KIND_OF_LOG_EVERY_N(severity, n, what_to_do) \ + static int LOG_OCCURRENCES = 0, LOG_OCCURRENCES_MOD_N = 0; \ + ++LOG_OCCURRENCES; \ + if (++LOG_OCCURRENCES_MOD_N > n) LOG_OCCURRENCES_MOD_N -= n; \ + if (LOG_OCCURRENCES_MOD_N == 1) \ + google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +#define SOME_KIND_OF_LOG_IF_EVERY_N(severity, condition, n, what_to_do) \ + static int LOG_OCCURRENCES = 0, LOG_OCCURRENCES_MOD_N = 0; \ + ++LOG_OCCURRENCES; \ + if (condition && \ + ((LOG_OCCURRENCES_MOD_N=(LOG_OCCURRENCES_MOD_N + 1) % n) == (1 % n))) \ + google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +#define SOME_KIND_OF_PLOG_EVERY_N(severity, n, what_to_do) \ + static int LOG_OCCURRENCES = 0, LOG_OCCURRENCES_MOD_N = 0; \ + ++LOG_OCCURRENCES; \ + if (++LOG_OCCURRENCES_MOD_N > n) LOG_OCCURRENCES_MOD_N -= n; \ + if (LOG_OCCURRENCES_MOD_N == 1) \ + google::ErrnoLogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +#define SOME_KIND_OF_LOG_FIRST_N(severity, n, what_to_do) \ + static int LOG_OCCURRENCES = 0; \ + if (LOG_OCCURRENCES <= n) \ + ++LOG_OCCURRENCES; \ + if (LOG_OCCURRENCES <= n) \ + google::LogMessage( \ + __FILE__, __LINE__, google::GLOG_ ## severity, LOG_OCCURRENCES, \ + &what_to_do).stream() + +namespace glog_internal_namespace_ { +template +struct CompileAssert { +}; +struct CrashReason; + +// Returns true if FailureSignalHandler is installed. +bool IsFailureSignalHandlerInstalled(); +} // namespace glog_internal_namespace_ + +#define GOOGLE_GLOG_COMPILE_ASSERT(expr, msg) \ + typedef google::glog_internal_namespace_::CompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1] + +#define LOG_EVERY_N(severity, n) \ + GOOGLE_GLOG_COMPILE_ASSERT(google::GLOG_ ## severity < \ + google::NUM_SEVERITIES, \ + INVALID_REQUESTED_LOG_SEVERITY); \ + SOME_KIND_OF_LOG_EVERY_N(severity, (n), google::LogMessage::SendToLog) + +#define SYSLOG_EVERY_N(severity, n) \ + SOME_KIND_OF_LOG_EVERY_N(severity, (n), google::LogMessage::SendToSyslogAndLog) + +#define PLOG_EVERY_N(severity, n) \ + SOME_KIND_OF_PLOG_EVERY_N(severity, (n), google::LogMessage::SendToLog) + +#define LOG_FIRST_N(severity, n) \ + SOME_KIND_OF_LOG_FIRST_N(severity, (n), google::LogMessage::SendToLog) + +#define LOG_IF_EVERY_N(severity, condition, n) \ + SOME_KIND_OF_LOG_IF_EVERY_N(severity, (condition), (n), google::LogMessage::SendToLog) + +// We want the special COUNTER value available for LOG_EVERY_X()'ed messages +enum PRIVATE_Counter {COUNTER}; + +#ifdef GLOG_NO_ABBREVIATED_SEVERITIES +// wingdi.h defines ERROR to be 0. When we call LOG(ERROR), it gets +// substituted with 0, and it expands to COMPACT_GOOGLE_LOG_0. To allow us +// to keep using this syntax, we define this macro to do the same thing +// as COMPACT_GOOGLE_LOG_ERROR. +#define COMPACT_GOOGLE_LOG_0 COMPACT_GOOGLE_LOG_ERROR +#define SYSLOG_0 SYSLOG_ERROR +#define LOG_TO_STRING_0 LOG_TO_STRING_ERROR +// Needed for LOG_IS_ON(ERROR). +const LogSeverity GLOG_0 = GLOG_ERROR; +#else +// Users may include windows.h after logging.h without +// GLOG_NO_ABBREVIATED_SEVERITIES nor WIN32_LEAN_AND_MEAN. +// For this case, we cannot detect if ERROR is defined before users +// actually use ERROR. Let's make an undefined symbol to warn users. +# define GLOG_ERROR_MSG ERROR_macro_is_defined_Define_GLOG_NO_ABBREVIATED_SEVERITIES_before_including_logging_h_See_the_document_for_detail +# define COMPACT_GOOGLE_LOG_0 GLOG_ERROR_MSG +# define SYSLOG_0 GLOG_ERROR_MSG +# define LOG_TO_STRING_0 GLOG_ERROR_MSG +# define GLOG_0 GLOG_ERROR_MSG +#endif + +// Plus some debug-logging macros that get compiled to nothing for production + +#if DCHECK_IS_ON() + +#define DLOG(severity) LOG(severity) +#define DVLOG(verboselevel) VLOG(verboselevel) +#define DLOG_IF(severity, condition) LOG_IF(severity, condition) +#define DLOG_EVERY_N(severity, n) LOG_EVERY_N(severity, n) +#define DLOG_IF_EVERY_N(severity, condition, n) \ + LOG_IF_EVERY_N(severity, condition, n) +#define DLOG_ASSERT(condition) LOG_ASSERT(condition) + +// debug-only checking. executed if DCHECK_IS_ON(). +#define DCHECK(condition) CHECK(condition) +#define DCHECK_EQ(val1, val2) CHECK_EQ(val1, val2) +#define DCHECK_NE(val1, val2) CHECK_NE(val1, val2) +#define DCHECK_LE(val1, val2) CHECK_LE(val1, val2) +#define DCHECK_LT(val1, val2) CHECK_LT(val1, val2) +#define DCHECK_GE(val1, val2) CHECK_GE(val1, val2) +#define DCHECK_GT(val1, val2) CHECK_GT(val1, val2) +#define DCHECK_NOTNULL(val) CHECK_NOTNULL(val) +#define DCHECK_STREQ(str1, str2) CHECK_STREQ(str1, str2) +#define DCHECK_STRCASEEQ(str1, str2) CHECK_STRCASEEQ(str1, str2) +#define DCHECK_STRNE(str1, str2) CHECK_STRNE(str1, str2) +#define DCHECK_STRCASENE(str1, str2) CHECK_STRCASENE(str1, str2) + +#else // !DCHECK_IS_ON() + +#define DLOG(severity) \ + true ? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DVLOG(verboselevel) \ + (true || !VLOG_IS_ON(verboselevel)) ?\ + (void) 0 : google::LogMessageVoidify() & LOG(INFO) + +#define DLOG_IF(severity, condition) \ + (true || !(condition)) ? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DLOG_EVERY_N(severity, n) \ + true ? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DLOG_IF_EVERY_N(severity, condition, n) \ + (true || !(condition))? (void) 0 : google::LogMessageVoidify() & LOG(severity) + +#define DLOG_ASSERT(condition) \ + true ? (void) 0 : LOG_ASSERT(condition) + +// MSVC warning C4127: conditional expression is constant +#define DCHECK(condition) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK(condition) + +#define DCHECK_EQ(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_EQ(val1, val2) + +#define DCHECK_NE(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_NE(val1, val2) + +#define DCHECK_LE(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_LE(val1, val2) + +#define DCHECK_LT(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_LT(val1, val2) + +#define DCHECK_GE(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_GE(val1, val2) + +#define DCHECK_GT(val1, val2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_GT(val1, val2) + +// You may see warnings in release mode if you don't use the return +// value of DCHECK_NOTNULL. Please just use DCHECK for such cases. +#define DCHECK_NOTNULL(val) (val) + +#define DCHECK_STREQ(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STREQ(str1, str2) + +#define DCHECK_STRCASEEQ(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STRCASEEQ(str1, str2) + +#define DCHECK_STRNE(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STRNE(str1, str2) + +#define DCHECK_STRCASENE(str1, str2) \ + GLOG_MSVC_PUSH_DISABLE_WARNING(4127) \ + while (false) \ + GLOG_MSVC_POP_WARNING() CHECK_STRCASENE(str1, str2) + +#endif // DCHECK_IS_ON() + +// Log only in verbose mode. + +#define VLOG(verboselevel) LOG_IF(INFO, VLOG_IS_ON(verboselevel)) + +#define VLOG_IF(verboselevel, condition) \ + LOG_IF(INFO, (condition) && VLOG_IS_ON(verboselevel)) + +#define VLOG_EVERY_N(verboselevel, n) \ + LOG_IF_EVERY_N(INFO, VLOG_IS_ON(verboselevel), n) + +#define VLOG_IF_EVERY_N(verboselevel, condition, n) \ + LOG_IF_EVERY_N(INFO, (condition) && VLOG_IS_ON(verboselevel), n) + +namespace base_logging { + +// LogMessage::LogStream is a std::ostream backed by this streambuf. +// This class ignores overflow and leaves two bytes at the end of the +// buffer to allow for a '\n' and '\0'. +class GOOGLE_GLOG_DLL_DECL LogStreamBuf : public std::streambuf { + public: + // REQUIREMENTS: "len" must be >= 2 to account for the '\n' and '\n'. + LogStreamBuf(char *buf, int len) { + setp(buf, buf + len - 2); + } + // This effectively ignores overflow. + virtual int_type overflow(int_type ch) { + return ch; + } + + // Legacy public ostrstream method. + size_t pcount() const { return pptr() - pbase(); } + char* pbase() const { return std::streambuf::pbase(); } +}; + +} // namespace base_logging + +// +// This class more or less represents a particular log message. You +// create an instance of LogMessage and then stream stuff to it. +// When you finish streaming to it, ~LogMessage is called and the +// full message gets streamed to the appropriate destination. +// +// You shouldn't actually use LogMessage's constructor to log things, +// though. You should use the LOG() macro (and variants thereof) +// above. +class GOOGLE_GLOG_DLL_DECL LogMessage { +public: + enum { + // Passing kNoLogPrefix for the line number disables the + // log-message prefix. Useful for using the LogMessage + // infrastructure as a printing utility. See also the --log_prefix + // flag for controlling the log-message prefix on an + // application-wide basis. + kNoLogPrefix = -1 + }; + + // LogStream inherit from non-DLL-exported class (std::ostrstream) + // and VC++ produces a warning for this situation. + // However, MSDN says "C4275 can be ignored in Microsoft Visual C++ + // 2005 if you are deriving from a type in the Standard C++ Library" + // http://msdn.microsoft.com/en-us/library/3tdb471s(VS.80).aspx + // Let's just ignore the warning. +#ifdef _MSC_VER +# pragma warning(disable: 4275) +#endif + class GOOGLE_GLOG_DLL_DECL LogStream : public std::ostream { +#ifdef _MSC_VER +# pragma warning(default: 4275) +#endif + public: + LogStream(char *buf, int len, int ctr) + : std::ostream(NULL), + streambuf_(buf, len), + ctr_(ctr), + self_(this) { + rdbuf(&streambuf_); + } + + int ctr() const { return ctr_; } + void set_ctr(int ctr) { ctr_ = ctr; } + LogStream* self() const { return self_; } + + // Legacy std::streambuf methods. + size_t pcount() const { return streambuf_.pcount(); } + char* pbase() const { return streambuf_.pbase(); } + char* str() const { return pbase(); } + + private: + LogStream(const LogStream&); + LogStream& operator=(const LogStream&); + base_logging::LogStreamBuf streambuf_; + int ctr_; // Counter hack (for the LOG_EVERY_X() macro) + LogStream *self_; // Consistency check hack + }; + +public: + // icc 8 requires this typedef to avoid an internal compiler error. + typedef void (LogMessage::*SendMethod)(); + + LogMessage(const char* file, int line, LogSeverity severity, int ctr, + SendMethod send_method); + + // Two special constructors that generate reduced amounts of code at + // LOG call sites for common cases. + + // Used for LOG(INFO): Implied are: + // severity = INFO, ctr = 0, send_method = &LogMessage::SendToLog. + // + // Using this constructor instead of the more complex constructor above + // saves 19 bytes per call site. + LogMessage(const char* file, int line); + + // Used for LOG(severity) where severity != INFO. Implied + // are: ctr = 0, send_method = &LogMessage::SendToLog + // + // Using this constructor instead of the more complex constructor above + // saves 17 bytes per call site. + LogMessage(const char* file, int line, LogSeverity severity); + + // Constructor to log this message to a specified sink (if not NULL). + // Implied are: ctr = 0, send_method = &LogMessage::SendToSinkAndLog if + // also_send_to_log is true, send_method = &LogMessage::SendToSink otherwise. + LogMessage(const char* file, int line, LogSeverity severity, LogSink* sink, + bool also_send_to_log); + + // Constructor where we also give a vector pointer + // for storing the messages (if the pointer is not NULL). + // Implied are: ctr = 0, send_method = &LogMessage::SaveOrSendToLog. + LogMessage(const char* file, int line, LogSeverity severity, + std::vector* outvec); + + // Constructor where we also give a string pointer for storing the + // message (if the pointer is not NULL). Implied are: ctr = 0, + // send_method = &LogMessage::WriteToStringAndLog. + LogMessage(const char* file, int line, LogSeverity severity, + std::string* message); + + // A special constructor used for check failures + LogMessage(const char* file, int line, const CheckOpString& result); + + ~LogMessage(); + + // Flush a buffered message to the sink set in the constructor. Always + // called by the destructor, it may also be called from elsewhere if + // needed. Only the first call is actioned; any later ones are ignored. + void Flush(); + + // An arbitrary limit on the length of a single log message. This + // is so that streaming can be done more efficiently. + static const size_t kMaxLogMessageLen; + + // Theses should not be called directly outside of logging.*, + // only passed as SendMethod arguments to other LogMessage methods: + void SendToLog(); // Actually dispatch to the logs + void SendToSyslogAndLog(); // Actually dispatch to syslog and the logs + + // Call abort() or similar to perform LOG(FATAL) crash. + static void __attribute__ ((noreturn)) Fail(); + + std::ostream& stream(); + + int preserved_errno() const; + + // Must be called without the log_mutex held. (L < log_mutex) + static int64 num_messages(int severity); + + struct LogMessageData; + +private: + // Fully internal SendMethod cases: + void SendToSinkAndLog(); // Send to sink if provided and dispatch to the logs + void SendToSink(); // Send to sink if provided, do nothing otherwise. + + // Write to string if provided and dispatch to the logs. + void WriteToStringAndLog(); + + void SaveOrSendToLog(); // Save to stringvec if provided, else to logs + + void Init(const char* file, int line, LogSeverity severity, + void (LogMessage::*send_method)()); + + // Used to fill in crash information during LOG(FATAL) failures. + void RecordCrashReason(glog_internal_namespace_::CrashReason* reason); + + // Counts of messages sent at each priority: + static int64 num_messages_[NUM_SEVERITIES]; // under log_mutex + + // We keep the data in a separate struct so that each instance of + // LogMessage uses less stack space. + LogMessageData* allocated_; + LogMessageData* data_; + + friend class LogDestination; + + LogMessage(const LogMessage&); + void operator=(const LogMessage&); +}; + +// This class happens to be thread-hostile because all instances share +// a single data buffer, but since it can only be created just before +// the process dies, we don't worry so much. +class GOOGLE_GLOG_DLL_DECL LogMessageFatal : public LogMessage { + public: + LogMessageFatal(const char* file, int line); + LogMessageFatal(const char* file, int line, const CheckOpString& result); + __attribute__ ((noreturn)) ~LogMessageFatal(); +}; + +// A non-macro interface to the log facility; (useful +// when the logging level is not a compile-time constant). +inline void LogAtLevel(int const severity, std::string const &msg) { + LogMessage(__FILE__, __LINE__, severity).stream() << msg; +} + +// A macro alternative of LogAtLevel. New code may want to use this +// version since there are two advantages: 1. this version outputs the +// file name and the line number where this macro is put like other +// LOG macros, 2. this macro can be used as C++ stream. +#define LOG_AT_LEVEL(severity) google::LogMessage(__FILE__, __LINE__, severity).stream() + +// Check if it's compiled in C++11 mode. +// +// GXX_EXPERIMENTAL_CXX0X is defined by gcc and clang up to at least +// gcc-4.7 and clang-3.1 (2011-12-13). __cplusplus was defined to 1 +// in gcc before 4.7 (Crosstool 16) and clang before 3.1, but is +// defined according to the language version in effect thereafter. +// Microsoft Visual Studio 14 (2015) sets __cplusplus==199711 despite +// reasonably good C++11 support, so we set LANG_CXX for it and +// newer versions (_MSC_VER >= 1900). +#if (defined(__GXX_EXPERIMENTAL_CXX0X__) || __cplusplus >= 201103L || \ + (defined(_MSC_VER) && _MSC_VER >= 1900)) +// Helper for CHECK_NOTNULL(). +// +// In C++11, all cases can be handled by a single function. Since the value +// category of the argument is preserved (also for rvalue references), +// member initializer lists like the one below will compile correctly: +// +// Foo() +// : x_(CHECK_NOTNULL(MethodReturningUniquePtr())) {} +template +T CheckNotNull(const char* file, int line, const char* names, T&& t) { + if (t == nullptr) { + LogMessageFatal(file, line, new std::string(names)); + } + return std::forward(t); +} + +#else + +// A small helper for CHECK_NOTNULL(). +template +T* CheckNotNull(const char *file, int line, const char *names, T* t) { + if (t == NULL) { + LogMessageFatal(file, line, new std::string(names)); + } + return t; +} +#endif + +// Allow folks to put a counter in the LOG_EVERY_X()'ed messages. This +// only works if ostream is a LogStream. If the ostream is not a +// LogStream you'll get an assert saying as much at runtime. +GOOGLE_GLOG_DLL_DECL std::ostream& operator<<(std::ostream &os, + const PRIVATE_Counter&); + + +// Derived class for PLOG*() above. +class GOOGLE_GLOG_DLL_DECL ErrnoLogMessage : public LogMessage { + public: + + ErrnoLogMessage(const char* file, int line, LogSeverity severity, int ctr, + void (LogMessage::*send_method)()); + + // Postpends ": strerror(errno) [errno]". + ~ErrnoLogMessage(); + + private: + ErrnoLogMessage(const ErrnoLogMessage&); + void operator=(const ErrnoLogMessage&); +}; + + +// This class is used to explicitly ignore values in the conditional +// logging macros. This avoids compiler warnings like "value computed +// is not used" and "statement has no effect". + +class GOOGLE_GLOG_DLL_DECL LogMessageVoidify { + public: + LogMessageVoidify() { } + // This has to be an operator with a precedence lower than << but + // higher than ?: + void operator&(std::ostream&) { } +}; + + +// Flushes all log files that contains messages that are at least of +// the specified severity level. Thread-safe. +GOOGLE_GLOG_DLL_DECL void FlushLogFiles(LogSeverity min_severity); + +// Flushes all log files that contains messages that are at least of +// the specified severity level. Thread-hostile because it ignores +// locking -- used for catastrophic failures. +GOOGLE_GLOG_DLL_DECL void FlushLogFilesUnsafe(LogSeverity min_severity); + +// +// Set the destination to which a particular severity level of log +// messages is sent. If base_filename is "", it means "don't log this +// severity". Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetLogDestination(LogSeverity severity, + const char* base_filename); + +// +// Set the basename of the symlink to the latest log file at a given +// severity. If symlink_basename is empty, do not make a symlink. If +// you don't call this function, the symlink basename is the +// invocation name of the program. Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetLogSymlink(LogSeverity severity, + const char* symlink_basename); + +// +// Used to send logs to some other kind of destination +// Users should subclass LogSink and override send to do whatever they want. +// Implementations must be thread-safe because a shared instance will +// be called from whichever thread ran the LOG(XXX) line. +class GOOGLE_GLOG_DLL_DECL LogSink { + public: + virtual ~LogSink(); + + // Sink's logging logic (message_len is such as to exclude '\n' at the end). + // This method can't use LOG() or CHECK() as logging system mutex(s) are held + // during this call. + virtual void send(LogSeverity severity, const char* full_filename, + const char* base_filename, int line, + const struct ::tm* tm_time, + const char* message, size_t message_len) = 0; + + // Redefine this to implement waiting for + // the sink's logging logic to complete. + // It will be called after each send() returns, + // but before that LogMessage exits or crashes. + // By default this function does nothing. + // Using this function one can implement complex logic for send() + // that itself involves logging; and do all this w/o causing deadlocks and + // inconsistent rearrangement of log messages. + // E.g. if a LogSink has thread-specific actions, the send() method + // can simply add the message to a queue and wake up another thread that + // handles real logging while itself making some LOG() calls; + // WaitTillSent() can be implemented to wait for that logic to complete. + // See our unittest for an example. + virtual void WaitTillSent(); + + // Returns the normal text output of the log message. + // Can be useful to implement send(). + static std::string ToString(LogSeverity severity, const char* file, int line, + const struct ::tm* tm_time, + const char* message, size_t message_len); +}; + +// Add or remove a LogSink as a consumer of logging data. Thread-safe. +GOOGLE_GLOG_DLL_DECL void AddLogSink(LogSink *destination); +GOOGLE_GLOG_DLL_DECL void RemoveLogSink(LogSink *destination); + +// +// Specify an "extension" added to the filename specified via +// SetLogDestination. This applies to all severity levels. It's +// often used to append the port we're listening on to the logfile +// name. Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetLogFilenameExtension( + const char* filename_extension); + +// +// Make it so that all log messages of at least a particular severity +// are logged to stderr (in addition to logging to the usual log +// file(s)). Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetStderrLogging(LogSeverity min_severity); + +// +// Make it so that all log messages go only to stderr. Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void LogToStderr(); + +// +// Make it so that all log messages of at least a particular severity are +// logged via email to a list of addresses (in addition to logging to the +// usual log file(s)). The list of addresses is just a string containing +// the email addresses to send to (separated by spaces, say). Thread-safe. +// +GOOGLE_GLOG_DLL_DECL void SetEmailLogging(LogSeverity min_severity, + const char* addresses); + +// A simple function that sends email. dest is a commma-separated +// list of addressess. Thread-safe. +GOOGLE_GLOG_DLL_DECL bool SendEmail(const char *dest, + const char *subject, const char *body); + +GOOGLE_GLOG_DLL_DECL const std::vector& GetLoggingDirectories(); + +// For tests only: Clear the internal [cached] list of logging directories to +// force a refresh the next time GetLoggingDirectories is called. +// Thread-hostile. +void TestOnly_ClearLoggingDirectoriesList(); + +// Returns a set of existing temporary directories, which will be a +// subset of the directories returned by GetLogginDirectories(). +// Thread-safe. +GOOGLE_GLOG_DLL_DECL void GetExistingTempDirectories( + std::vector* list); + +// Print any fatal message again -- useful to call from signal handler +// so that the last thing in the output is the fatal message. +// Thread-hostile, but a race is unlikely. +GOOGLE_GLOG_DLL_DECL void ReprintFatalMessage(); + +// Truncate a log file that may be the append-only output of multiple +// processes and hence can't simply be renamed/reopened (typically a +// stdout/stderr). If the file "path" is > "limit" bytes, copy the +// last "keep" bytes to offset 0 and truncate the rest. Since we could +// be racing with other writers, this approach has the potential to +// lose very small amounts of data. For security, only follow symlinks +// if the path is /proc/self/fd/* +GOOGLE_GLOG_DLL_DECL void TruncateLogFile(const char *path, + int64 limit, int64 keep); + +// Truncate stdout and stderr if they are over the value specified by +// --max_log_size; keep the final 1MB. This function has the same +// race condition as TruncateLogFile. +GOOGLE_GLOG_DLL_DECL void TruncateStdoutStderr(); + +// Return the string representation of the provided LogSeverity level. +// Thread-safe. +GOOGLE_GLOG_DLL_DECL const char* GetLogSeverityName(LogSeverity severity); + +// --------------------------------------------------------------------- +// Implementation details that are not useful to most clients +// --------------------------------------------------------------------- + +// A Logger is the interface used by logging modules to emit entries +// to a log. A typical implementation will dump formatted data to a +// sequence of files. We also provide interfaces that will forward +// the data to another thread so that the invoker never blocks. +// Implementations should be thread-safe since the logging system +// will write to them from multiple threads. + +namespace base { + +class GOOGLE_GLOG_DLL_DECL Logger { + public: + virtual ~Logger(); + + // Writes "message[0,message_len-1]" corresponding to an event that + // occurred at "timestamp". If "force_flush" is true, the log file + // is flushed immediately. + // + // The input message has already been formatted as deemed + // appropriate by the higher level logging facility. For example, + // textual log messages already contain timestamps, and the + // file:linenumber header. + virtual void Write(bool force_flush, + time_t timestamp, + const char* message, + int message_len) = 0; + + // Flush any buffered messages + virtual void Flush() = 0; + + // Get the current LOG file size. + // The returned value is approximate since some + // logged data may not have been flushed to disk yet. + virtual uint32 LogSize() = 0; +}; + +// Get the logger for the specified severity level. The logger +// remains the property of the logging module and should not be +// deleted by the caller. Thread-safe. +extern GOOGLE_GLOG_DLL_DECL Logger* GetLogger(LogSeverity level); + +// Set the logger for the specified severity level. The logger +// becomes the property of the logging module and should not +// be deleted by the caller. Thread-safe. +extern GOOGLE_GLOG_DLL_DECL void SetLogger(LogSeverity level, Logger* logger); + +} + +// glibc has traditionally implemented two incompatible versions of +// strerror_r(). There is a poorly defined convention for picking the +// version that we want, but it is not clear whether it even works with +// all versions of glibc. +// So, instead, we provide this wrapper that automatically detects the +// version that is in use, and then implements POSIX semantics. +// N.B. In addition to what POSIX says, we also guarantee that "buf" will +// be set to an empty string, if this function failed. This means, in most +// cases, you do not need to check the error code and you can directly +// use the value of "buf". It will never have an undefined value. +// DEPRECATED: Use StrError(int) instead. +GOOGLE_GLOG_DLL_DECL int posix_strerror_r(int err, char *buf, size_t len); + +// A thread-safe replacement for strerror(). Returns a string describing the +// given POSIX error code. +GOOGLE_GLOG_DLL_DECL std::string StrError(int err); + +// A class for which we define operator<<, which does nothing. +class GOOGLE_GLOG_DLL_DECL NullStream : public LogMessage::LogStream { + public: + // Initialize the LogStream so the messages can be written somewhere + // (they'll never be actually displayed). This will be needed if a + // NullStream& is implicitly converted to LogStream&, in which case + // the overloaded NullStream::operator<< will not be invoked. + NullStream() : LogMessage::LogStream(message_buffer_, 1, 0) { } + NullStream(const char* /*file*/, int /*line*/, + const CheckOpString& /*result*/) : + LogMessage::LogStream(message_buffer_, 1, 0) { } + NullStream &stream() { return *this; } + private: + // A very short buffer for messages (which we discard anyway). This + // will be needed if NullStream& converted to LogStream& (e.g. as a + // result of a conditional expression). + char message_buffer_[2]; +}; + +// Do nothing. This operator is inline, allowing the message to be +// compiled away. The message will not be compiled away if we do +// something like (flag ? LOG(INFO) : LOG(ERROR)) << message; when +// SKIP_LOG=WARNING. In those cases, NullStream will be implicitly +// converted to LogStream and the message will be computed and then +// quietly discarded. +template +inline NullStream& operator<<(NullStream &str, const T &) { return str; } + +// Similar to NullStream, but aborts the program (without stack +// trace), like LogMessageFatal. +class GOOGLE_GLOG_DLL_DECL NullStreamFatal : public NullStream { + public: + NullStreamFatal() { } + NullStreamFatal(const char* file, int line, const CheckOpString& result) : + NullStream(file, line, result) { } + __attribute__ ((noreturn)) ~NullStreamFatal() throw () { _exit(1); } +}; + +// Install a signal handler that will dump signal information and a stack +// trace when the program crashes on certain signals. We'll install the +// signal handler for the following signals. +// +// SIGSEGV, SIGILL, SIGFPE, SIGABRT, SIGBUS, and SIGTERM. +// +// By default, the signal handler will write the failure dump to the +// standard error. You can customize the destination by installing your +// own writer function by InstallFailureWriter() below. +// +// Note on threading: +// +// The function should be called before threads are created, if you want +// to use the failure signal handler for all threads. The stack trace +// will be shown only for the thread that receives the signal. In other +// words, stack traces of other threads won't be shown. +GOOGLE_GLOG_DLL_DECL void InstallFailureSignalHandler(); + +// Installs a function that is used for writing the failure dump. "data" +// is the pointer to the beginning of a message to be written, and "size" +// is the size of the message. You should not expect the data is +// terminated with '\0'. +GOOGLE_GLOG_DLL_DECL void InstallFailureWriter( + void (*writer)(const char* data, int size)); + +} + +#endif // _LOGGING_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/raw_logging.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/raw_logging.h new file mode 100644 index 0000000..65278f6 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/raw_logging.h @@ -0,0 +1,185 @@ +// Copyright (c) 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Maxim Lifantsev +// +// Thread-safe logging routines that do not allocate any memory or +// acquire any locks, and can therefore be used by low-level memory +// allocation and synchronization code. + +#ifndef BASE_RAW_LOGGING_H_ +#define BASE_RAW_LOGGING_H_ + +#include + +namespace google { + +#include "glog/log_severity.h" +#include "glog/vlog_is_on.h" + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +// This is similar to LOG(severity) << format... and VLOG(level) << format.., +// but +// * it is to be used ONLY by low-level modules that can't use normal LOG() +// * it is desiged to be a low-level logger that does not allocate any +// memory and does not need any locks, hence: +// * it logs straight and ONLY to STDERR w/o buffering +// * it uses an explicit format and arguments list +// * it will silently chop off really long message strings +// Usage example: +// RAW_LOG(ERROR, "Failed foo with %i: %s", status, error); +// RAW_VLOG(3, "status is %i", status); +// These will print an almost standard log lines like this to stderr only: +// E0821 211317 file.cc:123] RAW: Failed foo with 22: bad_file +// I0821 211317 file.cc:142] RAW: status is 20 +#define RAW_LOG(severity, ...) \ + do { \ + switch (google::GLOG_ ## severity) { \ + case 0: \ + RAW_LOG_INFO(__VA_ARGS__); \ + break; \ + case 1: \ + RAW_LOG_WARNING(__VA_ARGS__); \ + break; \ + case 2: \ + RAW_LOG_ERROR(__VA_ARGS__); \ + break; \ + case 3: \ + RAW_LOG_FATAL(__VA_ARGS__); \ + break; \ + default: \ + break; \ + } \ + } while (0) + +// The following STRIP_LOG testing is performed in the header file so that it's +// possible to completely compile out the logging code and the log messages. +#if STRIP_LOG == 0 +#define RAW_VLOG(verboselevel, ...) \ + do { \ + if (VLOG_IS_ON(verboselevel)) { \ + RAW_LOG_INFO(__VA_ARGS__); \ + } \ + } while (0) +#else +#define RAW_VLOG(verboselevel, ...) RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG == 0 + +#if STRIP_LOG == 0 +#define RAW_LOG_INFO(...) google::RawLog__(google::GLOG_INFO, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_INFO(...) google::RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG == 0 + +#if STRIP_LOG <= 1 +#define RAW_LOG_WARNING(...) google::RawLog__(google::GLOG_WARNING, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_WARNING(...) google::RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG <= 1 + +#if STRIP_LOG <= 2 +#define RAW_LOG_ERROR(...) google::RawLog__(google::GLOG_ERROR, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_ERROR(...) google::RawLogStub__(0, __VA_ARGS__) +#endif // STRIP_LOG <= 2 + +#if STRIP_LOG <= 3 +#define RAW_LOG_FATAL(...) google::RawLog__(google::GLOG_FATAL, \ + __FILE__, __LINE__, __VA_ARGS__) +#else +#define RAW_LOG_FATAL(...) \ + do { \ + google::RawLogStub__(0, __VA_ARGS__); \ + exit(1); \ + } while (0) +#endif // STRIP_LOG <= 3 + +// Similar to CHECK(condition) << message, +// but for low-level modules: we use only RAW_LOG that does not allocate memory. +// We do not want to provide args list here to encourage this usage: +// if (!cond) RAW_LOG(FATAL, "foo ...", hard_to_compute_args); +// so that the args are not computed when not needed. +#define RAW_CHECK(condition, message) \ + do { \ + if (!(condition)) { \ + RAW_LOG(FATAL, "Check %s failed: %s", #condition, message); \ + } \ + } while (0) + +// Debug versions of RAW_LOG and RAW_CHECK +#ifndef NDEBUG + +#define RAW_DLOG(severity, ...) RAW_LOG(severity, __VA_ARGS__) +#define RAW_DCHECK(condition, message) RAW_CHECK(condition, message) + +#else // NDEBUG + +#define RAW_DLOG(severity, ...) \ + while (false) \ + RAW_LOG(severity, __VA_ARGS__) +#define RAW_DCHECK(condition, message) \ + while (false) \ + RAW_CHECK(condition, message) + +#endif // NDEBUG + +// Stub log function used to work around for unused variable warnings when +// building with STRIP_LOG > 0. +static inline void RawLogStub__(int /* ignored */, ...) { +} + +// Helper function to implement RAW_LOG and RAW_VLOG +// Logs format... at "severity" level, reporting it +// as called from file:line. +// This does not allocate memory or acquire locks. +GOOGLE_GLOG_DLL_DECL void RawLog__(LogSeverity severity, + const char* file, + int line, + const char* format, ...) + __attribute__((__format__ (__printf__, 4, 5))); + +// Hack to propagate time information into this module so that +// this module does not have to directly call localtime_r(), +// which could allocate memory. +GOOGLE_GLOG_DLL_DECL void RawLog__SetLastTime(const struct tm& t, int usecs); + +} + +#endif // BASE_RAW_LOGGING_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/stl_logging.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/stl_logging.h new file mode 100644 index 0000000..40a15aa --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/stl_logging.h @@ -0,0 +1,220 @@ +// Copyright (c) 2003, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Stream output operators for STL containers; to be used for logging *only*. +// Inclusion of this file lets you do: +// +// list x; +// LOG(INFO) << "data: " << x; +// vector v1, v2; +// CHECK_EQ(v1, v2); +// +// If you want to use this header file with hash maps or slist, you +// need to define macros before including this file: +// +// - GLOG_STL_LOGGING_FOR_UNORDERED - and +// - GLOG_STL_LOGGING_FOR_TR1_UNORDERED - +// - GLOG_STL_LOGGING_FOR_EXT_HASH - +// - GLOG_STL_LOGGING_FOR_EXT_SLIST - +// + +#ifndef UTIL_GTL_STL_LOGGING_INL_H_ +#define UTIL_GTL_STL_LOGGING_INL_H_ + +#if !1 +# error We do not support stl_logging for this compiler +#endif + +#include +#include +#include +#include +#include +#include +#include + +#ifdef GLOG_STL_LOGGING_FOR_UNORDERED +# include +# include +#endif + +#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED +# include +# include +#endif + +#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH +# include +# include +#endif +#ifdef GLOG_STL_LOGGING_FOR_EXT_SLIST +# include +#endif + +// Forward declare these two, and define them after all the container streams +// operators so that we can recurse from pair -> container -> container -> pair +// properly. +template +std::ostream& operator<<(std::ostream& out, const std::pair& p); + +namespace google { + +template +void PrintSequence(std::ostream& out, Iter begin, Iter end); + +} + +#define OUTPUT_TWO_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +OUTPUT_TWO_ARG_CONTAINER(std::vector) +OUTPUT_TWO_ARG_CONTAINER(std::deque) +OUTPUT_TWO_ARG_CONTAINER(std::list) +#ifdef GLOG_STL_LOGGING_FOR_EXT_SLIST +OUTPUT_TWO_ARG_CONTAINER(__gnu_cxx::slist) +#endif + +#undef OUTPUT_TWO_ARG_CONTAINER + +#define OUTPUT_THREE_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +OUTPUT_THREE_ARG_CONTAINER(std::set) +OUTPUT_THREE_ARG_CONTAINER(std::multiset) + +#undef OUTPUT_THREE_ARG_CONTAINER + +#define OUTPUT_FOUR_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +OUTPUT_FOUR_ARG_CONTAINER(std::map) +OUTPUT_FOUR_ARG_CONTAINER(std::multimap) +#ifdef GLOG_STL_LOGGING_FOR_UNORDERED +OUTPUT_FOUR_ARG_CONTAINER(std::unordered_set) +OUTPUT_FOUR_ARG_CONTAINER(std::unordered_multiset) +#endif +#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED +OUTPUT_FOUR_ARG_CONTAINER(std::tr1::unordered_set) +OUTPUT_FOUR_ARG_CONTAINER(std::tr1::unordered_multiset) +#endif +#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH +OUTPUT_FOUR_ARG_CONTAINER(__gnu_cxx::hash_set) +OUTPUT_FOUR_ARG_CONTAINER(__gnu_cxx::hash_multiset) +#endif + +#undef OUTPUT_FOUR_ARG_CONTAINER + +#define OUTPUT_FIVE_ARG_CONTAINER(Sequence) \ +template \ +inline std::ostream& operator<<(std::ostream& out, \ + const Sequence& seq) { \ + google::PrintSequence(out, seq.begin(), seq.end()); \ + return out; \ +} + +#ifdef GLOG_STL_LOGGING_FOR_UNORDERED +OUTPUT_FIVE_ARG_CONTAINER(std::unordered_map) +OUTPUT_FIVE_ARG_CONTAINER(std::unordered_multimap) +#endif +#ifdef GLOG_STL_LOGGING_FOR_TR1_UNORDERED +OUTPUT_FIVE_ARG_CONTAINER(std::tr1::unordered_map) +OUTPUT_FIVE_ARG_CONTAINER(std::tr1::unordered_multimap) +#endif +#ifdef GLOG_STL_LOGGING_FOR_EXT_HASH +OUTPUT_FIVE_ARG_CONTAINER(__gnu_cxx::hash_map) +OUTPUT_FIVE_ARG_CONTAINER(__gnu_cxx::hash_multimap) +#endif + +#undef OUTPUT_FIVE_ARG_CONTAINER + +template +inline std::ostream& operator<<(std::ostream& out, + const std::pair& p) { + out << '(' << p.first << ", " << p.second << ')'; + return out; +} + +namespace google { + +template +inline void PrintSequence(std::ostream& out, Iter begin, Iter end) { + // Output at most 100 elements -- appropriate if used for logging. + for (int i = 0; begin != end && i < 100; ++i, ++begin) { + if (i > 0) out << ' '; + out << *begin; + } + if (begin != end) { + out << " ..."; + } +} + +} + +// Note that this is technically undefined behavior! We are adding things into +// the std namespace for a reason though -- we are providing new operations on +// types which are themselves defined with this namespace. Without this, these +// operator overloads cannot be found via ADL. If these definitions are not +// found via ADL, they must be #included before they're used, which requires +// this header to be included before apparently independent other headers. +// +// For example, base/logging.h defines various template functions to implement +// CHECK_EQ(x, y) and stream x and y into the log in the event the check fails. +// It does so via the function template MakeCheckOpValueString: +// template +// void MakeCheckOpValueString(strstream* ss, const T& v) { +// (*ss) << v; +// } +// Because 'glog/logging.h' is included before 'glog/stl_logging.h', +// subsequent CHECK_EQ(v1, v2) for vector<...> typed variable v1 and v2 can only +// find these operator definitions via ADL. +// +// Even this solution has problems -- it may pull unintended operators into the +// namespace as well, allowing them to also be found via ADL, and creating code +// that only works with a particular order of includes. Long term, we need to +// move all of the *definitions* into namespace std, bet we need to ensure no +// one references them first. This lets us take that step. We cannot define them +// in both because that would create ambiguous overloads when both are found. +namespace std { using ::operator<<; } + +#endif // UTIL_GTL_STL_LOGGING_INL_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/vlog_is_on.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/vlog_is_on.h new file mode 100644 index 0000000..02b0b86 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/glog/vlog_is_on.h @@ -0,0 +1,129 @@ +// Copyright (c) 1999, 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Ray Sidney and many others +// +// Defines the VLOG_IS_ON macro that controls the variable-verbosity +// conditional logging. +// +// It's used by VLOG and VLOG_IF in logging.h +// and by RAW_VLOG in raw_logging.h to trigger the logging. +// +// It can also be used directly e.g. like this: +// if (VLOG_IS_ON(2)) { +// // do some logging preparation and logging +// // that can't be accomplished e.g. via just VLOG(2) << ...; +// } +// +// The truth value that VLOG_IS_ON(level) returns is determined by +// the three verbosity level flags: +// --v= Gives the default maximal active V-logging level; +// 0 is the default. +// Normally positive values are used for V-logging levels. +// --vmodule= Gives the per-module maximal V-logging levels to override +// the value given by --v. +// E.g. "my_module=2,foo*=3" would change the logging level +// for all code in source files "my_module.*" and "foo*.*" +// ("-inl" suffixes are also disregarded for this matching). +// +// SetVLOGLevel helper function is provided to do limited dynamic control over +// V-logging by overriding the per-module settings given via --vmodule flag. +// +// CAVEAT: --vmodule functionality is not available in non gcc compilers. +// + +#ifndef BASE_VLOG_IS_ON_H_ +#define BASE_VLOG_IS_ON_H_ + +#include "glog/log_severity.h" + +// Annoying stuff for windows -- makes sure clients can import these functions +#ifndef GOOGLE_GLOG_DLL_DECL +# if defined(_WIN32) && !defined(__CYGWIN__) +# define GOOGLE_GLOG_DLL_DECL __declspec(dllimport) +# else +# define GOOGLE_GLOG_DLL_DECL +# endif +#endif + +#if defined(__GNUC__) +// We emit an anonymous static int* variable at every VLOG_IS_ON(n) site. +// (Normally) the first time every VLOG_IS_ON(n) site is hit, +// we determine what variable will dynamically control logging at this site: +// it's either FLAGS_v or an appropriate internal variable +// matching the current source file that represents results of +// parsing of --vmodule flag and/or SetVLOGLevel calls. +#define VLOG_IS_ON(verboselevel) \ + __extension__ \ + ({ static google::int32* vlocal__ = &google::kLogSiteUninitialized; \ + google::int32 verbose_level__ = (verboselevel); \ + (*vlocal__ >= verbose_level__) && \ + ((vlocal__ != &google::kLogSiteUninitialized) || \ + (google::InitVLOG3__(&vlocal__, &FLAGS_v, \ + __FILE__, verbose_level__))); }) +#else +// GNU extensions not available, so we do not support --vmodule. +// Dynamic value of FLAGS_v always controls the logging level. +#define VLOG_IS_ON(verboselevel) (FLAGS_v >= (verboselevel)) +#endif + +// Set VLOG(_IS_ON) level for module_pattern to log_level. +// This lets us dynamically control what is normally set by the --vmodule flag. +// Returns the level that previously applied to module_pattern. +// NOTE: To change the log level for VLOG(_IS_ON) sites +// that have already executed after/during InitGoogleLogging, +// one needs to supply the exact --vmodule pattern that applied to them. +// (If no --vmodule pattern applied to them +// the value of FLAGS_v will continue to control them.) +extern GOOGLE_GLOG_DLL_DECL int SetVLOGLevel(const char* module_pattern, + int log_level); + +// Various declarations needed for VLOG_IS_ON above: ========================= + +// Special value used to indicate that a VLOG_IS_ON site has not been +// initialized. We make this a large value, so the common-case check +// of "*vlocal__ >= verbose_level__" in VLOG_IS_ON definition +// passes in such cases and InitVLOG3__ is then triggered. +extern google::int32 kLogSiteUninitialized; + +// Helper routine which determines the logging info for a particalur VLOG site. +// site_flag is the address of the site-local pointer to the controlling +// verbosity level +// site_default is the default to use for *site_flag +// fname is the current source file name +// verbose_level is the argument to VLOG_IS_ON +// We will return the return value for VLOG_IS_ON +// and if possible set *site_flag appropriately. +extern GOOGLE_GLOG_DLL_DECL bool InitVLOG3__( + google::int32** site_flag, + google::int32* site_default, + const char* fname, + google::int32 verbose_level); + +#endif // BASE_VLOG_IS_ON_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/googletest.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/googletest.h new file mode 100644 index 0000000..b4677b2 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/googletest.h @@ -0,0 +1,596 @@ +// Copyright (c) 2009, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Shinichiro Hamaji +// (based on googletest: http://code.google.com/p/googletest/) + +#ifdef GOOGLETEST_H__ +#error You must not include this file twice. +#endif +#define GOOGLETEST_H__ + +#include "utilities.h" + +#include +#include +#include + +#include +#include +#include +#include + +#include +#include + +#include +#include +#include +#ifdef HAVE_UNISTD_H +# include +#endif + +#include "base/commandlineflags.h" + +using std::map; +using std::string; +using std::vector; + +_START_GOOGLE_NAMESPACE_ + +extern GOOGLE_GLOG_DLL_DECL void (*g_logging_fail_func)(); + +_END_GOOGLE_NAMESPACE_ + +#undef GOOGLE_GLOG_DLL_DECL +#define GOOGLE_GLOG_DLL_DECL + +static inline string GetTempDir() { +#ifndef OS_WINDOWS + return "/tmp"; +#else + char tmp[MAX_PATH]; + GetTempPathA(MAX_PATH, tmp); + return tmp; +#endif +} + +#if defined(OS_WINDOWS) && defined(_MSC_VER) && !defined(TEST_SRC_DIR) +// The test will run in glog/vsproject/ +// (e.g., glog/vsproject/logging_unittest). +static const char TEST_SRC_DIR[] = "../.."; +#elif !defined(TEST_SRC_DIR) +# warning TEST_SRC_DIR should be defined in config.h +static const char TEST_SRC_DIR[] = "."; +#endif + +DEFINE_string(test_tmpdir, GetTempDir(), "Dir we use for temp files"); +DEFINE_string(test_srcdir, TEST_SRC_DIR, + "Source-dir root, needed to find glog_unittest_flagfile"); +DEFINE_bool(run_benchmark, false, "If true, run benchmarks"); +#ifdef NDEBUG +DEFINE_int32(benchmark_iters, 100000000, "Number of iterations per benchmark"); +#else +DEFINE_int32(benchmark_iters, 100000, "Number of iterations per benchmark"); +#endif + +#ifdef HAVE_LIB_GTEST +# include +// Use our ASSERT_DEATH implementation. +# undef ASSERT_DEATH +# undef ASSERT_DEBUG_DEATH +using testing::InitGoogleTest; +#else + +_START_GOOGLE_NAMESPACE_ + +void InitGoogleTest(int*, char**) {} + +// The following is some bare-bones testing infrastructure + +#define EXPECT_TRUE(cond) \ + do { \ + if (!(cond)) { \ + fprintf(stderr, "Check failed: %s\n", #cond); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_FALSE(cond) EXPECT_TRUE(!(cond)) + +#define EXPECT_OP(op, val1, val2) \ + do { \ + if (!((val1) op (val2))) { \ + fprintf(stderr, "Check failed: %s %s %s\n", #val1, #op, #val2); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_EQ(val1, val2) EXPECT_OP(==, val1, val2) +#define EXPECT_NE(val1, val2) EXPECT_OP(!=, val1, val2) +#define EXPECT_GT(val1, val2) EXPECT_OP(>, val1, val2) +#define EXPECT_LT(val1, val2) EXPECT_OP(<, val1, val2) + +#define EXPECT_NAN(arg) \ + do { \ + if (!isnan(arg)) { \ + fprintf(stderr, "Check failed: isnan(%s)\n", #arg); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_INF(arg) \ + do { \ + if (!isinf(arg)) { \ + fprintf(stderr, "Check failed: isinf(%s)\n", #arg); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_DOUBLE_EQ(val1, val2) \ + do { \ + if (((val1) < (val2) - 0.001 || (val1) > (val2) + 0.001)) { \ + fprintf(stderr, "Check failed: %s == %s\n", #val1, #val2); \ + exit(1); \ + } \ + } while (0) + +#define EXPECT_STREQ(val1, val2) \ + do { \ + if (strcmp((val1), (val2)) != 0) { \ + fprintf(stderr, "Check failed: streq(%s, %s)\n", #val1, #val2); \ + exit(1); \ + } \ + } while (0) + +vector g_testlist; // the tests to run + +#define TEST(a, b) \ + struct Test_##a##_##b { \ + Test_##a##_##b() { g_testlist.push_back(&Run); } \ + static void Run() { FlagSaver fs; RunTest(); } \ + static void RunTest(); \ + }; \ + static Test_##a##_##b g_test_##a##_##b; \ + void Test_##a##_##b::RunTest() + + +static inline int RUN_ALL_TESTS() { + vector::const_iterator it; + for (it = g_testlist.begin(); it != g_testlist.end(); ++it) { + (*it)(); + } + fprintf(stderr, "Passed %d tests\n\nPASS\n", (int)g_testlist.size()); + return 0; +} + +_END_GOOGLE_NAMESPACE_ + +#endif // ! HAVE_LIB_GTEST + +_START_GOOGLE_NAMESPACE_ + +static bool g_called_abort; +static jmp_buf g_jmp_buf; +static inline void CalledAbort() { + g_called_abort = true; + longjmp(g_jmp_buf, 1); +} + +#ifdef OS_WINDOWS +// TODO(hamaji): Death test somehow doesn't work in Windows. +#define ASSERT_DEATH(fn, msg) +#else +#define ASSERT_DEATH(fn, msg) \ + do { \ + g_called_abort = false; \ + /* in logging.cc */ \ + void (*original_logging_fail_func)() = g_logging_fail_func; \ + g_logging_fail_func = &CalledAbort; \ + if (!setjmp(g_jmp_buf)) fn; \ + /* set back to their default */ \ + g_logging_fail_func = original_logging_fail_func; \ + if (!g_called_abort) { \ + fprintf(stderr, "Function didn't die (%s): %s\n", msg, #fn); \ + exit(1); \ + } \ + } while (0) +#endif + +#ifdef NDEBUG +#define ASSERT_DEBUG_DEATH(fn, msg) +#else +#define ASSERT_DEBUG_DEATH(fn, msg) ASSERT_DEATH(fn, msg) +#endif // NDEBUG + +// Benchmark tools. + +#define BENCHMARK(n) static BenchmarkRegisterer __benchmark_ ## n (#n, &n); + +map g_benchlist; // the benchmarks to run + +class BenchmarkRegisterer { + public: + BenchmarkRegisterer(const char* name, void (*function)(int iters)) { + EXPECT_TRUE(g_benchlist.insert(std::make_pair(name, function)).second); + } +}; + +static inline void RunSpecifiedBenchmarks() { + if (!FLAGS_run_benchmark) { + return; + } + + int iter_cnt = FLAGS_benchmark_iters; + puts("Benchmark\tTime(ns)\tIterations"); + for (map::const_iterator iter = g_benchlist.begin(); + iter != g_benchlist.end(); + ++iter) { + clock_t start = clock(); + iter->second(iter_cnt); + double elapsed_ns = + ((double)clock() - start) / CLOCKS_PER_SEC * 1000*1000*1000; + printf("%s\t%8.2lf\t%10d\n", + iter->first.c_str(), elapsed_ns / iter_cnt, iter_cnt); + } + puts(""); +} + +// ---------------------------------------------------------------------- +// Golden file functions +// ---------------------------------------------------------------------- + +class CapturedStream { + public: + CapturedStream(int fd, const string & filename) : + fd_(fd), + uncaptured_fd_(-1), + filename_(filename) { + Capture(); + } + + ~CapturedStream() { + if (uncaptured_fd_ != -1) { + CHECK(close(uncaptured_fd_) != -1); + } + } + + // Start redirecting output to a file + void Capture() { + // Keep original stream for later + CHECK(uncaptured_fd_ == -1) << ", Stream " << fd_ << " already captured!"; + uncaptured_fd_ = dup(fd_); + CHECK(uncaptured_fd_ != -1); + + // Open file to save stream to + int cap_fd = open(filename_.c_str(), + O_CREAT | O_TRUNC | O_WRONLY, + S_IRUSR | S_IWUSR); + CHECK(cap_fd != -1); + + // Send stdout/stderr to this file + fflush(NULL); + CHECK(dup2(cap_fd, fd_) != -1); + CHECK(close(cap_fd) != -1); + } + + // Remove output redirection + void StopCapture() { + // Restore original stream + if (uncaptured_fd_ != -1) { + fflush(NULL); + CHECK(dup2(uncaptured_fd_, fd_) != -1); + } + } + + const string & filename() const { return filename_; } + + private: + int fd_; // file descriptor being captured + int uncaptured_fd_; // where the stream was originally being sent to + string filename_; // file where stream is being saved +}; +static CapturedStream * s_captured_streams[STDERR_FILENO+1]; +// Redirect a file descriptor to a file. +// fd - Should be STDOUT_FILENO or STDERR_FILENO +// filename - File where output should be stored +static inline void CaptureTestOutput(int fd, const string & filename) { + CHECK((fd == STDOUT_FILENO) || (fd == STDERR_FILENO)); + CHECK(s_captured_streams[fd] == NULL); + s_captured_streams[fd] = new CapturedStream(fd, filename); +} +static inline void CaptureTestStderr() { + CaptureTestOutput(STDERR_FILENO, FLAGS_test_tmpdir + "/captured.err"); +} +// Return the size (in bytes) of a file +static inline size_t GetFileSize(FILE * file) { + fseek(file, 0, SEEK_END); + return static_cast(ftell(file)); +} +// Read the entire content of a file as a string +static inline string ReadEntireFile(FILE * file) { + const size_t file_size = GetFileSize(file); + char * const buffer = new char[file_size]; + + size_t bytes_last_read = 0; // # of bytes read in the last fread() + size_t bytes_read = 0; // # of bytes read so far + + fseek(file, 0, SEEK_SET); + + // Keep reading the file until we cannot read further or the + // pre-determined file size is reached. + do { + bytes_last_read = fread(buffer+bytes_read, 1, file_size-bytes_read, file); + bytes_read += bytes_last_read; + } while (bytes_last_read > 0 && bytes_read < file_size); + + const string content = string(buffer, buffer+bytes_read); + delete[] buffer; + + return content; +} +// Get the captured stdout (when fd is STDOUT_FILENO) or stderr (when +// fd is STDERR_FILENO) as a string +static inline string GetCapturedTestOutput(int fd) { + CHECK(fd == STDOUT_FILENO || fd == STDERR_FILENO); + CapturedStream * const cap = s_captured_streams[fd]; + CHECK(cap) + << ": did you forget CaptureTestStdout() or CaptureTestStderr()?"; + + // Make sure everything is flushed. + cap->StopCapture(); + + // Read the captured file. + FILE * const file = fopen(cap->filename().c_str(), "r"); + const string content = ReadEntireFile(file); + fclose(file); + + delete cap; + s_captured_streams[fd] = NULL; + + return content; +} +// Get the captured stderr of a test as a string. +static inline string GetCapturedTestStderr() { + return GetCapturedTestOutput(STDERR_FILENO); +} + +// Check if the string is [IWEF](\d{4}|DATE) +static inline bool IsLoggingPrefix(const string& s) { + if (s.size() != 5) return false; + if (!strchr("IWEF", s[0])) return false; + for (int i = 1; i <= 4; ++i) { + if (!isdigit(s[i]) && s[i] != "DATE"[i-1]) return false; + } + return true; +} + +// Convert log output into normalized form. +// +// Example: +// I0102 030405 logging_unittest.cc:345] RAW: vlog -1 +// => IDATE TIME__ logging_unittest.cc:LINE] RAW: vlog -1 +static inline string MungeLine(const string& line) { + std::istringstream iss(line); + string before, logcode_date, time, thread_lineinfo; + iss >> logcode_date; + while (!IsLoggingPrefix(logcode_date)) { + before += " " + logcode_date; + if (!(iss >> logcode_date)) { + // We cannot find the header of log output. + return before; + } + } + if (!before.empty()) before += " "; + iss >> time; + iss >> thread_lineinfo; + CHECK(!thread_lineinfo.empty()); + if (thread_lineinfo[thread_lineinfo.size() - 1] != ']') { + // We found thread ID. + string tmp; + iss >> tmp; + CHECK(!tmp.empty()); + CHECK_EQ(']', tmp[tmp.size() - 1]); + thread_lineinfo = "THREADID " + tmp; + } + size_t index = thread_lineinfo.find(':'); + CHECK_NE(string::npos, index); + thread_lineinfo = thread_lineinfo.substr(0, index+1) + "LINE]"; + string rest; + std::getline(iss, rest); + return (before + logcode_date[0] + "DATE TIME__ " + thread_lineinfo + + MungeLine(rest)); +} + +static inline void StringReplace(string* str, + const string& oldsub, + const string& newsub) { + size_t pos = str->find(oldsub); + if (pos != string::npos) { + str->replace(pos, oldsub.size(), newsub.c_str()); + } +} + +static inline string Munge(const string& filename) { + FILE* fp = fopen(filename.c_str(), "rb"); + CHECK(fp != NULL) << filename << ": couldn't open"; + char buf[4096]; + string result; + while (fgets(buf, 4095, fp)) { + string line = MungeLine(buf); + char null_str[256]; + sprintf(null_str, "%p", static_cast(NULL)); + StringReplace(&line, "__NULLP__", null_str); + // Remove 0x prefix produced by %p. VC++ doesn't put the prefix. + StringReplace(&line, " 0x", " "); + + StringReplace(&line, "__SUCCESS__", StrError(0)); + StringReplace(&line, "__ENOENT__", StrError(ENOENT)); + StringReplace(&line, "__EINTR__", StrError(EINTR)); + StringReplace(&line, "__ENXIO__", StrError(ENXIO)); + StringReplace(&line, "__ENOEXEC__", StrError(ENOEXEC)); + result += line + "\n"; + } + fclose(fp); + return result; +} + +static inline void WriteToFile(const string& body, const string& file) { + FILE* fp = fopen(file.c_str(), "wb"); + fwrite(body.data(), 1, body.size(), fp); + fclose(fp); +} + +static inline bool MungeAndDiffTestStderr(const string& golden_filename) { + CapturedStream* cap = s_captured_streams[STDERR_FILENO]; + CHECK(cap) << ": did you forget CaptureTestStderr()?"; + + cap->StopCapture(); + + // Run munge + const string captured = Munge(cap->filename()); + const string golden = Munge(golden_filename); + if (captured != golden) { + fprintf(stderr, + "Test with golden file failed. We'll try to show the diff:\n"); + string munged_golden = golden_filename + ".munged"; + WriteToFile(golden, munged_golden); + string munged_captured = cap->filename() + ".munged"; + WriteToFile(captured, munged_captured); + string diffcmd("diff -u " + munged_golden + " " + munged_captured); + if (system(diffcmd.c_str()) != 0) { + fprintf(stderr, "diff command was failed.\n"); + } + unlink(munged_golden.c_str()); + unlink(munged_captured.c_str()); + return false; + } + LOG(INFO) << "Diff was successful"; + return true; +} + +// Save flags used from logging_unittest.cc. +#ifndef HAVE_LIB_GFLAGS +struct FlagSaver { + FlagSaver() + : v_(FLAGS_v), + stderrthreshold_(FLAGS_stderrthreshold), + logtostderr_(FLAGS_logtostderr), + alsologtostderr_(FLAGS_alsologtostderr) {} + ~FlagSaver() { + FLAGS_v = v_; + FLAGS_stderrthreshold = stderrthreshold_; + FLAGS_logtostderr = logtostderr_; + FLAGS_alsologtostderr = alsologtostderr_; + } + int v_; + int stderrthreshold_; + bool logtostderr_; + bool alsologtostderr_; +}; +#endif + +class Thread { + public: + virtual ~Thread() {} + + void SetJoinable(bool) {} +#if defined(OS_WINDOWS) || defined(OS_CYGWIN) + void Start() { + handle_ = CreateThread(NULL, + 0, + (LPTHREAD_START_ROUTINE)&Thread::InvokeThread, + (LPVOID)this, + 0, + &th_); + CHECK(handle_) << "CreateThread"; + } + void Join() { + WaitForSingleObject(handle_, INFINITE); + } +#elif defined(HAVE_PTHREAD) + void Start() { + pthread_create(&th_, NULL, &Thread::InvokeThread, this); + } + void Join() { + pthread_join(th_, NULL); + } +#else +# error No thread implementation. +#endif + + protected: + virtual void Run() = 0; + + private: + static void* InvokeThread(void* self) { + ((Thread*)self)->Run(); + return NULL; + } + +#if defined(OS_WINDOWS) || defined(OS_CYGWIN) + HANDLE handle_; + DWORD th_; +#else + pthread_t th_; +#endif +}; + +static inline void SleepForMilliseconds(int t) { +#ifndef OS_WINDOWS + usleep(t * 1000); +#else + Sleep(t); +#endif +} + +// Add hook for operator new to ensure there are no memory allocation. + +void (*g_new_hook)() = NULL; + +_END_GOOGLE_NAMESPACE_ + +void* operator new(size_t size) throw(std::bad_alloc) { + if (GOOGLE_NAMESPACE::g_new_hook) { + GOOGLE_NAMESPACE::g_new_hook(); + } + return malloc(size); +} + +void* operator new[](size_t size) throw(std::bad_alloc) { + return ::operator new(size); +} + +void operator delete(void* p) throw() { + free(p); +} + +void operator delete[](void* p) throw() { + ::operator delete(p); +} diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/mock-log.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/mock-log.h new file mode 100644 index 0000000..30a0f74 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/mock-log.h @@ -0,0 +1,156 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Zhanyong Wan +// +// Defines the ScopedMockLog class (using Google C++ Mocking +// Framework), which is convenient for testing code that uses LOG(). + +#ifndef GLOG_SRC_MOCK_LOG_H_ +#define GLOG_SRC_MOCK_LOG_H_ + +// For GOOGLE_NAMESPACE. This must go first so we get _XOPEN_SOURCE. +#include "utilities.h" + +#include + +#include + +#include "glog/logging.h" + +_START_GOOGLE_NAMESPACE_ +namespace glog_testing { + +// A ScopedMockLog object intercepts LOG() messages issued during its +// lifespan. Using this together with Google C++ Mocking Framework, +// it's very easy to test how a piece of code calls LOG(). The +// typical usage: +// +// TEST(FooTest, LogsCorrectly) { +// ScopedMockLog log; +// +// // We expect the WARNING "Something bad!" exactly twice. +// EXPECT_CALL(log, Log(WARNING, _, "Something bad!")) +// .Times(2); +// +// // We allow foo.cc to call LOG(INFO) any number of times. +// EXPECT_CALL(log, Log(INFO, HasSubstr("/foo.cc"), _)) +// .Times(AnyNumber()); +// +// Foo(); // Exercises the code under test. +// } +class ScopedMockLog : public GOOGLE_NAMESPACE::LogSink { + public: + // When a ScopedMockLog object is constructed, it starts to + // intercept logs. + ScopedMockLog() { AddLogSink(this); } + + // When the object is destructed, it stops intercepting logs. + virtual ~ScopedMockLog() { RemoveLogSink(this); } + + // Implements the mock method: + // + // void Log(LogSeverity severity, const string& file_path, + // const string& message); + // + // The second argument to Send() is the full path of the source file + // in which the LOG() was issued. + // + // Note, that in a multi-threaded environment, all LOG() messages from a + // single thread will be handled in sequence, but that cannot be guaranteed + // for messages from different threads. In fact, if the same or multiple + // expectations are matched on two threads concurrently, their actions will + // be executed concurrently as well and may interleave. + MOCK_METHOD3(Log, void(GOOGLE_NAMESPACE::LogSeverity severity, + const std::string& file_path, + const std::string& message)); + + private: + // Implements the send() virtual function in class LogSink. + // Whenever a LOG() statement is executed, this function will be + // invoked with information presented in the LOG(). + // + // The method argument list is long and carries much information a + // test usually doesn't care about, so we trim the list before + // forwarding the call to Log(), which is much easier to use in + // tests. + // + // We still cannot call Log() directly, as it may invoke other LOG() + // messages, either due to Invoke, or due to an error logged in + // Google C++ Mocking Framework code, which would trigger a deadlock + // since a lock is held during send(). + // + // Hence, we save the message for WaitTillSent() which will be called after + // the lock on send() is released, and we'll call Log() inside + // WaitTillSent(). Since while a single send() call may be running at a + // time, multiple WaitTillSent() calls (along with the one send() call) may + // be running simultaneously, we ensure thread-safety of the exchange between + // send() and WaitTillSent(), and that for each message, LOG(), send(), + // WaitTillSent() and Log() are executed in the same thread. + virtual void send(GOOGLE_NAMESPACE::LogSeverity severity, + const char* full_filename, + const char* /*base_filename*/, int /*line*/, + const tm* /*tm_time*/, + const char* message, size_t message_len) { + // We are only interested in the log severity, full file name, and + // log message. + message_info_.severity = severity; + message_info_.file_path = full_filename; + message_info_.message = std::string(message, message_len); + } + + // Implements the WaitTillSent() virtual function in class LogSink. + // It will be executed after send() and after the global logging lock is + // released, so calls within it (or rather within the Log() method called + // within) may also issue LOG() statements. + // + // LOG(), send(), WaitTillSent() and Log() will occur in the same thread for + // a given log message. + virtual void WaitTillSent() { + // First, and very importantly, we save a copy of the message being + // processed before calling Log(), since Log() may indirectly call send() + // and WaitTillSent() in the same thread again. + MessageInfo message_info = message_info_; + Log(message_info.severity, message_info.file_path, message_info.message); + } + + // All relevant information about a logged message that needs to be passed + // from send() to WaitTillSent(). + struct MessageInfo { + GOOGLE_NAMESPACE::LogSeverity severity; + std::string file_path; + std::string message; + }; + MessageInfo message_info_; +}; + +} // namespace glog_testing +_END_GOOGLE_NAMESPACE_ + +#endif // GLOG_SRC_MOCK_LOG_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace.h new file mode 100644 index 0000000..8c3e8fe --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace.h @@ -0,0 +1,60 @@ +// Copyright (c) 2000 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Routines to extract the current stack trace. These functions are +// thread-safe. + +#ifndef BASE_STACKTRACE_H_ +#define BASE_STACKTRACE_H_ + +#include "config.h" + +_START_GOOGLE_NAMESPACE_ + +// This is similar to the GetStackFrames routine, except that it returns +// the stack trace only, and not the stack frame sizes as well. +// Example: +// main() { foo(); } +// foo() { bar(); } +// bar() { +// void* result[10]; +// int depth = GetStackFrames(result, 10, 1); +// } +// +// This produces: +// result[0] foo +// result[1] main +// .... ... +// +// "result" must not be NULL. +extern int GetStackTrace(void** result, int max_depth, int skip_count); + +_END_GOOGLE_NAMESPACE_ + +#endif // BASE_STACKTRACE_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_generic-inl.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_generic-inl.h new file mode 100644 index 0000000..fad81d3 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_generic-inl.h @@ -0,0 +1,59 @@ +// Copyright (c) 2000 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Portable implementation - just use glibc +// +// Note: The glibc implementation may cause a call to malloc. +// This can cause a deadlock in HeapProfiler. +#include +#include +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + static const int kStackLength = 64; + void * stack[kStackLength]; + int size; + + size = backtrace(stack, kStackLength); + skip_count++; // we want to skip the current frame as well + int result_count = size - skip_count; + if (result_count < 0) + result_count = 0; + if (result_count > max_depth) + result_count = max_depth; + for (int i = 0; i < result_count; i++) + result[i] = stack[i + skip_count]; + + return result_count; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_libunwind-inl.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_libunwind-inl.h new file mode 100644 index 0000000..0dc14c6 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_libunwind-inl.h @@ -0,0 +1,87 @@ +// Copyright (c) 2005 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Arun Sharma +// +// Produce stack trace using libunwind + +#include "utilities.h" + +extern "C" { +#define UNW_LOCAL_ONLY +#include +} +#include "glog/raw_logging.h" +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// Sometimes, we can try to get a stack trace from within a stack +// trace, because libunwind can call mmap (maybe indirectly via an +// internal mmap based memory allocator), and that mmap gets trapped +// and causes a stack-trace request. If were to try to honor that +// recursive request, we'd end up with infinite recursion or deadlock. +// Luckily, it's safe to ignore those subsequent traces. In such +// cases, we return 0 to indicate the situation. +static bool g_now_entering = false; + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + void *ip; + int n = 0; + unw_cursor_t cursor; + unw_context_t uc; + + if (sync_val_compare_and_swap(&g_now_entering, false, true)) { + return 0; + } + + unw_getcontext(&uc); + RAW_CHECK(unw_init_local(&cursor, &uc) >= 0, "unw_init_local failed"); + skip_count++; // Do not include the "GetStackTrace" frame + + while (n < max_depth) { + int ret = unw_get_reg(&cursor, UNW_REG_IP, (unw_word_t *) &ip); + if (ret < 0) + break; + if (skip_count > 0) { + skip_count--; + } else { + result[n++] = ip; + } + ret = unw_step(&cursor); + if (ret <= 0) + break; + } + + g_now_entering = false; + return n; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_powerpc-inl.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_powerpc-inl.h new file mode 100644 index 0000000..03b9108 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_powerpc-inl.h @@ -0,0 +1,130 @@ +// Copyright (c) 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Craig Silverstein +// +// Produce stack trace. I'm guessing (hoping!) the code is much like +// for x86. For apple machines, at least, it seems to be; see +// http://developer.apple.com/documentation/mac/runtimehtml/RTArch-59.html +// http://www.linux-foundation.org/spec/ELF/ppc64/PPC-elf64abi-1.9.html#STACK +// Linux has similar code: http://patchwork.ozlabs.org/linuxppc/patch?id=8882 + +#include +#include // for uintptr_t +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// Given a pointer to a stack frame, locate and return the calling +// stackframe, or return NULL if no stackframe can be found. Perform sanity +// checks (the strictness of which is controlled by the boolean parameter +// "STRICT_UNWINDING") to reduce the chance that a bad pointer is returned. +template +static void **NextStackFrame(void **old_sp) { + void **new_sp = (void **) *old_sp; + + // Check that the transition from frame pointer old_sp to frame + // pointer new_sp isn't clearly bogus + if (STRICT_UNWINDING) { + // With the stack growing downwards, older stack frame must be + // at a greater address that the current one. + if (new_sp <= old_sp) return NULL; + // Assume stack frames larger than 100,000 bytes are bogus. + if ((uintptr_t)new_sp - (uintptr_t)old_sp > 100000) return NULL; + } else { + // In the non-strict mode, allow discontiguous stack frames. + // (alternate-signal-stacks for example). + if (new_sp == old_sp) return NULL; + // And allow frames upto about 1MB. + if ((new_sp > old_sp) + && ((uintptr_t)new_sp - (uintptr_t)old_sp > 1000000)) return NULL; + } + if ((uintptr_t)new_sp & (sizeof(void *) - 1)) return NULL; + return new_sp; +} + +// This ensures that GetStackTrace stes up the Link Register properly. +void StacktracePowerPCDummyFunction() __attribute__((noinline)); +void StacktracePowerPCDummyFunction() { __asm__ volatile(""); } + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + void **sp; + // Apple OS X uses an old version of gnu as -- both Darwin 7.9.0 (Panther) + // and Darwin 8.8.1 (Tiger) use as 1.38. This means we have to use a + // different asm syntax. I don't know quite the best way to discriminate + // systems using the old as from the new one; I've gone with __APPLE__. +#ifdef __APPLE__ + __asm__ volatile ("mr %0,r1" : "=r" (sp)); +#else + __asm__ volatile ("mr %0,1" : "=r" (sp)); +#endif + + // On PowerPC, the "Link Register" or "Link Record" (LR), is a stack + // entry that holds the return address of the subroutine call (what + // instruction we run after our function finishes). This is the + // same as the stack-pointer of our parent routine, which is what we + // want here. While the compiler will always(?) set up LR for + // subroutine calls, it may not for leaf functions (such as this one). + // This routine forces the compiler (at least gcc) to push it anyway. + StacktracePowerPCDummyFunction(); + + // The LR save area is used by the callee, so the top entry is bogus. + skip_count++; + + int n = 0; + while (sp && n < max_depth) { + if (skip_count > 0) { + skip_count--; + } else { + // PowerPC has 3 main ABIs, which say where in the stack the + // Link Register is. For DARWIN and AIX (used by apple and + // linux ppc64), it's in sp[2]. For SYSV (used by linux ppc), + // it's in sp[1]. +#if defined(_CALL_AIX) || defined(_CALL_DARWIN) + result[n++] = *(sp+2); +#elif defined(_CALL_SYSV) + result[n++] = *(sp+1); +#elif defined(__APPLE__) || ((defined(__linux) || defined(__linux__)) && defined(__PPC64__)) + // This check is in case the compiler doesn't define _CALL_AIX/etc. + result[n++] = *(sp+2); +#elif defined(__linux) + // This check is in case the compiler doesn't define _CALL_SYSV. + result[n++] = *(sp+1); +#else +#error Need to specify the PPC ABI for your archiecture. +#endif + } + // Use strict unwinding rules. + sp = NextStackFrame(sp); + } + return n; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_x86-inl.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_x86-inl.h new file mode 100644 index 0000000..cfd31f7 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_x86-inl.h @@ -0,0 +1,139 @@ +// Copyright (c) 2000 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Produce stack trace + +#include // for uintptr_t + +#include "utilities.h" // for OS_* macros + +#if !defined(OS_WINDOWS) +#include +#include +#endif + +#include // for NULL +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +// Given a pointer to a stack frame, locate and return the calling +// stackframe, or return NULL if no stackframe can be found. Perform sanity +// checks (the strictness of which is controlled by the boolean parameter +// "STRICT_UNWINDING") to reduce the chance that a bad pointer is returned. +template +static void **NextStackFrame(void **old_sp) { + void **new_sp = (void **) *old_sp; + + // Check that the transition from frame pointer old_sp to frame + // pointer new_sp isn't clearly bogus + if (STRICT_UNWINDING) { + // With the stack growing downwards, older stack frame must be + // at a greater address that the current one. + if (new_sp <= old_sp) return NULL; + // Assume stack frames larger than 100,000 bytes are bogus. + if ((uintptr_t)new_sp - (uintptr_t)old_sp > 100000) return NULL; + } else { + // In the non-strict mode, allow discontiguous stack frames. + // (alternate-signal-stacks for example). + if (new_sp == old_sp) return NULL; + // And allow frames upto about 1MB. + if ((new_sp > old_sp) + && ((uintptr_t)new_sp - (uintptr_t)old_sp > 1000000)) return NULL; + } + if ((uintptr_t)new_sp & (sizeof(void *) - 1)) return NULL; +#ifdef __i386__ + // On 64-bit machines, the stack pointer can be very close to + // 0xffffffff, so we explicitly check for a pointer into the + // last two pages in the address space + if ((uintptr_t)new_sp >= 0xffffe000) return NULL; +#endif +#if !defined(OS_WINDOWS) + if (!STRICT_UNWINDING) { + // Lax sanity checks cause a crash in 32-bit tcmalloc/crash_reason_test + // on AMD-based machines with VDSO-enabled kernels. + // Make an extra sanity check to insure new_sp is readable. + // Note: NextStackFrame() is only called while the program + // is already on its last leg, so it's ok to be slow here. + static int page_size = getpagesize(); + void *new_sp_aligned = (void *)((uintptr_t)new_sp & ~(page_size - 1)); + if (msync(new_sp_aligned, page_size, MS_ASYNC) == -1) + return NULL; + } +#endif + return new_sp; +} + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + void **sp; +#ifdef __i386__ + // Stack frame format: + // sp[0] pointer to previous frame + // sp[1] caller address + // sp[2] first argument + // ... + sp = (void **)&result - 2; +#endif + +#ifdef __x86_64__ + // __builtin_frame_address(0) can return the wrong address on gcc-4.1.0-k8 + unsigned long rbp; + // Move the value of the register %rbp into the local variable rbp. + // We need 'volatile' to prevent this instruction from getting moved + // around during optimization to before function prologue is done. + // An alternative way to achieve this + // would be (before this __asm__ instruction) to call Noop() defined as + // static void Noop() __attribute__ ((noinline)); // prevent inlining + // static void Noop() { asm(""); } // prevent optimizing-away + __asm__ volatile ("mov %%rbp, %0" : "=r" (rbp)); + // Arguments are passed in registers on x86-64, so we can't just + // offset from &result + sp = (void **) rbp; +#endif + + int n = 0; + while (sp && n < max_depth) { + if (*(sp+1) == (void *)0) { + // In 64-bit code, we often see a frame that + // points to itself and has a return address of 0. + break; + } + if (skip_count > 0) { + skip_count--; + } else { + result[n++] = *(sp+1); + } + // Use strict unwinding rules. + sp = NextStackFrame(sp); + } + return n; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_x86_64-inl.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_x86_64-inl.h new file mode 100644 index 0000000..f7d1dca --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/stacktrace_x86_64-inl.h @@ -0,0 +1,105 @@ +// Copyright (c) 2005 - 2007, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Arun Sharma +// +// Produce stack trace using libgcc + +extern "C" { +#include // for NULL +#include // ABI defined unwinder +} +#include "stacktrace.h" + +_START_GOOGLE_NAMESPACE_ + +typedef struct { + void **result; + int max_depth; + int skip_count; + int count; +} trace_arg_t; + + +// Workaround for the malloc() in _Unwind_Backtrace() issue. +static _Unwind_Reason_Code nop_backtrace(struct _Unwind_Context *uc, void *opq) { + return _URC_NO_REASON; +} + + +// This code is not considered ready to run until +// static initializers run so that we are guaranteed +// that any malloc-related initialization is done. +static bool ready_to_run = false; +class StackTraceInit { + public: + StackTraceInit() { + // Extra call to force initialization + _Unwind_Backtrace(nop_backtrace, NULL); + ready_to_run = true; + } +}; + +static StackTraceInit module_initializer; // Force initialization + +static _Unwind_Reason_Code GetOneFrame(struct _Unwind_Context *uc, void *opq) { + trace_arg_t *targ = (trace_arg_t *) opq; + + if (targ->skip_count > 0) { + targ->skip_count--; + } else { + targ->result[targ->count++] = (void *) _Unwind_GetIP(uc); + } + + if (targ->count == targ->max_depth) + return _URC_END_OF_STACK; + + return _URC_NO_REASON; +} + +// If you change this function, also change GetStackFrames below. +int GetStackTrace(void** result, int max_depth, int skip_count) { + if (!ready_to_run) + return 0; + + trace_arg_t targ; + + skip_count += 1; // Do not include the "GetStackTrace" frame + + targ.result = result; + targ.max_depth = max_depth; + targ.skip_count = skip_count; + targ.count = 0; + + _Unwind_Backtrace(GetOneFrame, &targ); + + return targ.count; +} + +_END_GOOGLE_NAMESPACE_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/symbolize.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/symbolize.h new file mode 100644 index 0000000..f617184 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/symbolize.h @@ -0,0 +1,155 @@ +// Copyright (c) 2006, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Satoru Takabayashi +// +// This library provides Symbolize() function that symbolizes program +// counters to their corresponding symbol names on linux platforms. +// This library has a minimal implementation of an ELF symbol table +// reader (i.e. it doesn't depend on libelf, etc.). +// +// The algorithm used in Symbolize() is as follows. +// +// 1. Go through a list of maps in /proc/self/maps and find the map +// containing the program counter. +// +// 2. Open the mapped file and find a regular symbol table inside. +// Iterate over symbols in the symbol table and look for the symbol +// containing the program counter. If such a symbol is found, +// obtain the symbol name, and demangle the symbol if possible. +// If the symbol isn't found in the regular symbol table (binary is +// stripped), try the same thing with a dynamic symbol table. +// +// Note that Symbolize() is originally implemented to be used in +// FailureSignalHandler() in base/google.cc. Hence it doesn't use +// malloc() and other unsafe operations. It should be both +// thread-safe and async-signal-safe. + +#ifndef BASE_SYMBOLIZE_H_ +#define BASE_SYMBOLIZE_H_ + +#include "utilities.h" +#include "config.h" +#include "glog/logging.h" + +#ifdef HAVE_SYMBOLIZE + +#if defined(__ELF__) // defined by gcc +#if defined(__OpenBSD__) +#include +#else +#include +#endif + +#if !defined(ANDROID) +#include // For ElfW() macro. +#endif + +// For systems where SIZEOF_VOID_P is not defined, determine it +// based on __LP64__ (defined by gcc on 64-bit systems) +#if !defined(SIZEOF_VOID_P) +# if defined(__LP64__) +# define SIZEOF_VOID_P 8 +# else +# define SIZEOF_VOID_P 4 +# endif +#endif + +// If there is no ElfW macro, let's define it by ourself. +#ifndef ElfW +# if SIZEOF_VOID_P == 4 +# define ElfW(type) Elf32_##type +# elif SIZEOF_VOID_P == 8 +# define ElfW(type) Elf64_##type +# else +# error "Unknown sizeof(void *)" +# endif +#endif + +_START_GOOGLE_NAMESPACE_ + +// Gets the section header for the given name, if it exists. Returns true on +// success. Otherwise, returns false. +bool GetSectionHeaderByName(int fd, const char *name, size_t name_len, + ElfW(Shdr) *out); + +_END_GOOGLE_NAMESPACE_ + +#endif /* __ELF__ */ + +_START_GOOGLE_NAMESPACE_ + +// Restrictions on the callbacks that follow: +// - The callbacks must not use heaps but only use stacks. +// - The callbacks must be async-signal-safe. + +// Installs a callback function, which will be called right before a symbol name +// is printed. The callback is intended to be used for showing a file name and a +// line number preceding a symbol name. +// "fd" is a file descriptor of the object file containing the program +// counter "pc". The callback function should write output to "out" +// and return the size of the output written. On error, the callback +// function should return -1. +typedef int (*SymbolizeCallback)(int fd, void *pc, char *out, size_t out_size, + uint64 relocation); +void InstallSymbolizeCallback(SymbolizeCallback callback); + +// Installs a callback function, which will be called instead of +// OpenObjectFileContainingPcAndGetStartAddress. The callback is expected +// to searches for the object file (from /proc/self/maps) that contains +// the specified pc. If found, sets |start_address| to the start address +// of where this object file is mapped in memory, sets the module base +// address into |base_address|, copies the object file name into +// |out_file_name|, and attempts to open the object file. If the object +// file is opened successfully, returns the file descriptor. Otherwise, +// returns -1. |out_file_name_size| is the size of the file name buffer +// (including the null-terminator). +typedef int (*SymbolizeOpenObjectFileCallback)(uint64_t pc, + uint64_t &start_address, + uint64_t &base_address, + char *out_file_name, + int out_file_name_size); +void InstallSymbolizeOpenObjectFileCallback( + SymbolizeOpenObjectFileCallback callback); + +_END_GOOGLE_NAMESPACE_ + +#endif + +_START_GOOGLE_NAMESPACE_ + +// Symbolizes a program counter. On success, returns true and write the +// symbol name to "out". The symbol name is demangled if possible +// (supports symbols generated by GCC 3.x or newer). Otherwise, +// returns false. +bool Symbolize(void *pc, char *out, int out_size); + +_END_GOOGLE_NAMESPACE_ + +#endif // BASE_SYMBOLIZE_H_ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/utilities.h b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/utilities.h new file mode 100644 index 0000000..5f79968 --- /dev/null +++ b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/Headers/glog/src/utilities.h @@ -0,0 +1,226 @@ +// Copyright (c) 2008, Google Inc. +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are +// met: +// +// * Redistributions of source code must retain the above copyright +// notice, this list of conditions and the following disclaimer. +// * Redistributions in binary form must reproduce the above +// copyright notice, this list of conditions and the following disclaimer +// in the documentation and/or other materials provided with the +// distribution. +// * Neither the name of Google Inc. nor the names of its +// contributors may be used to endorse or promote products derived from +// this software without specific prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +// +// Author: Shinichiro Hamaji +// +// Define utilties for glog internal usage. + +#ifndef UTILITIES_H__ +#define UTILITIES_H__ + +#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) +# define OS_WINDOWS +#elif defined(__CYGWIN__) || defined(__CYGWIN32__) +# define OS_CYGWIN +#elif defined(linux) || defined(__linux) || defined(__linux__) +# define OS_LINUX +#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) +# define OS_MACOSX +#elif defined(__FreeBSD__) +# define OS_FREEBSD +#elif defined(__NetBSD__) +# define OS_NETBSD +#elif defined(__OpenBSD__) +# define OS_OPENBSD +#else +// TODO(hamaji): Add other platforms. +#endif + +// printf macros for size_t, in the style of inttypes.h +#ifdef _LP64 +#define __PRIS_PREFIX "z" +#else +#define __PRIS_PREFIX +#endif + +// Use these macros after a % in a printf format string +// to get correct 32/64 bit behavior, like this: +// size_t size = records.size(); +// printf("%"PRIuS"\n", size); + +#define PRIdS __PRIS_PREFIX "d" +#define PRIxS __PRIS_PREFIX "x" +#define PRIuS __PRIS_PREFIX "u" +#define PRIXS __PRIS_PREFIX "X" +#define PRIoS __PRIS_PREFIX "o" + +#include "base/mutex.h" // This must go first so we get _XOPEN_SOURCE + +#include + +#if defined(OS_WINDOWS) +# include "port.h" +#endif + +#include "config.h" +#include "glog/logging.h" + +// There are three different ways we can try to get the stack trace: +// +// 1) The libunwind library. This is still in development, and as a +// separate library adds a new dependency, but doesn't need a frame +// pointer. It also doesn't call malloc. +// +// 2) Our hand-coded stack-unwinder. This depends on a certain stack +// layout, which is used by gcc (and those systems using a +// gcc-compatible ABI) on x86 systems, at least since gcc 2.95. +// It uses the frame pointer to do its work. +// +// 3) The gdb unwinder -- also the one used by the c++ exception code. +// It's obviously well-tested, but has a fatal flaw: it can call +// malloc() from the unwinder. This is a problem because we're +// trying to use the unwinder to instrument malloc(). +// +// Note: if you add a new implementation here, make sure it works +// correctly when GetStackTrace() is called with max_depth == 0. +// Some code may do that. + +#if defined(HAVE_LIB_UNWIND) +# define STACKTRACE_H "stacktrace_libunwind-inl.h" +#elif !defined(NO_FRAME_POINTER) +# if defined(__i386__) && __GNUC__ >= 2 +# define STACKTRACE_H "stacktrace_x86-inl.h" +# elif defined(__x86_64__) && __GNUC__ >= 2 && HAVE_UNWIND_H +# define STACKTRACE_H "stacktrace_x86_64-inl.h" +# elif (defined(__ppc__) || defined(__PPC__)) && __GNUC__ >= 2 +# define STACKTRACE_H "stacktrace_powerpc-inl.h" +# endif +#endif + +#if !defined(STACKTRACE_H) && defined(HAVE_EXECINFO_H) +# define STACKTRACE_H "stacktrace_generic-inl.h" +#endif + +#if defined(STACKTRACE_H) +# define HAVE_STACKTRACE +#endif + +// defined by gcc +#if defined(__ELF__) && defined(OS_LINUX) +# define HAVE_SYMBOLIZE +#elif defined(OS_MACOSX) && defined(HAVE_DLADDR) +// Use dladdr to symbolize. +# define HAVE_SYMBOLIZE +#endif + +#ifndef ARRAYSIZE +// There is a better way, but this is good enough for our purpose. +# define ARRAYSIZE(a) (sizeof(a) / sizeof(*(a))) +#endif + +_START_GOOGLE_NAMESPACE_ + +namespace glog_internal_namespace_ { + +#ifdef HAVE___ATTRIBUTE__ +# define ATTRIBUTE_NOINLINE __attribute__ ((noinline)) +# define HAVE_ATTRIBUTE_NOINLINE +#else +# define ATTRIBUTE_NOINLINE +#endif + +const char* ProgramInvocationShortName(); + +bool IsGoogleLoggingInitialized(); + +bool is_default_thread(); + +int64 CycleClock_Now(); + +int64 UsecToCycles(int64 usec); + +typedef double WallTime; +WallTime WallTime_Now(); + +int32 GetMainThreadPid(); +bool PidHasChanged(); + +pid_t GetTID(); + +const std::string& MyUserName(); + +// Get the part of filepath after the last path separator. +// (Doesn't modify filepath, contrary to basename() in libgen.h.) +const char* const_basename(const char* filepath); + +// Wrapper of __sync_val_compare_and_swap. If the GCC extension isn't +// defined, we try the CPU specific logics (we only support x86 and +// x86_64 for now) first, then use a naive implementation, which has a +// race condition. +template +inline T sync_val_compare_and_swap(T* ptr, T oldval, T newval) { +#if defined(HAVE___SYNC_VAL_COMPARE_AND_SWAP) + return __sync_val_compare_and_swap(ptr, oldval, newval); +#elif defined(__GNUC__) && (defined(__i386__) || defined(__x86_64__)) + T ret; + __asm__ __volatile__("lock; cmpxchg %1, (%2);" + :"=a"(ret) + // GCC may produces %sil or %dil for + // constraint "r", but some of apple's gas + // dosn't know the 8 bit registers. + // We use "q" to avoid these registers. + :"q"(newval), "q"(ptr), "a"(oldval) + :"memory", "cc"); + return ret; +#else + T ret = *ptr; + if (ret == oldval) { + *ptr = newval; + } + return ret; +#endif +} + +void DumpStackTraceToString(std::string* stacktrace); + +struct CrashReason { + CrashReason() : filename(0), line_number(0), message(0), depth(0) {} + + const char* filename; + int line_number; + const char* message; + + // We'll also store a bit of stack trace context at the time of crash as + // it may not be available later on. + void* stack[32]; + int depth; +}; + +void SetCrashReason(const CrashReason* r); + +void InitGoogleLoggingUtilities(const char* argv0); +void ShutdownGoogleLoggingUtilities(); + +} // namespace glog_internal_namespace_ + +_END_GOOGLE_NAMESPACE_ + +using namespace GOOGLE_NAMESPACE::glog_internal_namespace_; + +#endif // UTILITIES_H__ diff --git a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/libglog.a b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/libglog.a index 16dc913..5f9de67 100644 Binary files a/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/libglog.a and b/Frameworks/glog.xcframework/ios-arm64_x86_64-simulator/libglog.a differ diff --git a/Frameworks/react-native-bridge.xcframework/ios-arm64/libreact-native-bridge.a b/Frameworks/react-native-bridge.xcframework/ios-arm64/libreact-native-bridge.a index b6d4c0e..59f2bd9 100644 Binary files a/Frameworks/react-native-bridge.xcframework/ios-arm64/libreact-native-bridge.a and b/Frameworks/react-native-bridge.xcframework/ios-arm64/libreact-native-bridge.a differ diff --git a/Frameworks/react-native-bridge.xcframework/ios-arm64_x86_64-simulator/libreact-native-bridge.a b/Frameworks/react-native-bridge.xcframework/ios-arm64_x86_64-simulator/libreact-native-bridge.a index aa6f83a..fd8ee39 100644 Binary files a/Frameworks/react-native-bridge.xcframework/ios-arm64_x86_64-simulator/libreact-native-bridge.a and b/Frameworks/react-native-bridge.xcframework/ios-arm64_x86_64-simulator/libreact-native-bridge.a differ diff --git a/Frameworks/react-native-color-matrix-image-filters.xcframework/Info.plist b/Frameworks/react-native-color-matrix-image-filters.xcframework/Info.plist new file mode 100644 index 0000000..af4cf41 --- /dev/null +++ b/Frameworks/react-native-color-matrix-image-filters.xcframework/Info.plist @@ -0,0 +1,48 @@ + + + + + AvailableLibraries + + + BinaryPath + libreact-native-color-matrix-image-filters.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-color-matrix-image-filters.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + + + BinaryPath + libreact-native-color-matrix-image-filters.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64_x86_64-simulator + LibraryPath + libreact-native-color-matrix-image-filters.a + SupportedArchitectures + + arm64 + x86_64 + + SupportedPlatform + ios + SupportedPlatformVariant + simulator + + + CFBundlePackageType + XFWK + XCFrameworkFormatVersion + 1.0 + + diff --git a/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilter.h b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilter.h new file mode 100644 index 0000000..cd0490d --- /dev/null +++ b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilter.h @@ -0,0 +1,17 @@ +#import + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else +#import +#endif + +#ifdef RCT_NEW_ARCH_ENABLED +@interface CMIFColorMatrixImageFilter : RCTViewComponentView +#else +@interface CMIFColorMatrixImageFilter : RCTView + +@property (nonatomic, strong) NSArray *matrix; +#endif + +@end diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilterManager.h b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilterManager.h similarity index 100% rename from Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilterManager.h rename to Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFColorMatrixImageFilterManager.h diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFImageView.h b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFImageView.h similarity index 100% rename from Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64/Headers/CMIFImageView.h rename to Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/Headers/CMIFImageView.h diff --git a/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/libreact-native-color-matrix-image-filters.a b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/libreact-native-color-matrix-image-filters.a new file mode 100644 index 0000000..3971e01 Binary files /dev/null and b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64/libreact-native-color-matrix-image-filters.a differ diff --git a/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilter.h b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilter.h new file mode 100644 index 0000000..cd0490d --- /dev/null +++ b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilter.h @@ -0,0 +1,17 @@ +#import + +#ifdef RCT_NEW_ARCH_ENABLED +#import +#else +#import +#endif + +#ifdef RCT_NEW_ARCH_ENABLED +@interface CMIFColorMatrixImageFilter : RCTViewComponentView +#else +@interface CMIFColorMatrixImageFilter : RCTView + +@property (nonatomic, strong) NSArray *matrix; +#endif + +@end diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilterManager.h b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilterManager.h similarity index 100% rename from Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilterManager.h rename to Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFColorMatrixImageFilterManager.h diff --git a/Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFImageView.h b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFImageView.h similarity index 100% rename from Frameworks/RNColorMatrixImageFilters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFImageView.h rename to Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/Headers/CMIFImageView.h diff --git a/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/libreact-native-color-matrix-image-filters.a b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/libreact-native-color-matrix-image-filters.a new file mode 100644 index 0000000..a421cdc Binary files /dev/null and b/Frameworks/react-native-color-matrix-image-filters.xcframework/ios-arm64_x86_64-simulator/libreact-native-color-matrix-image-filters.a differ diff --git a/Frameworks/react-native-cookies.xcframework/ios-arm64/libreact-native-cookies.a b/Frameworks/react-native-cookies.xcframework/ios-arm64/libreact-native-cookies.a index 632390b..e3b9319 100644 Binary files a/Frameworks/react-native-cookies.xcframework/ios-arm64/libreact-native-cookies.a and b/Frameworks/react-native-cookies.xcframework/ios-arm64/libreact-native-cookies.a differ diff --git a/Frameworks/react-native-cookies.xcframework/ios-arm64_x86_64-simulator/libreact-native-cookies.a b/Frameworks/react-native-cookies.xcframework/ios-arm64_x86_64-simulator/libreact-native-cookies.a index 482c150..4df12e9 100644 Binary files a/Frameworks/react-native-cookies.xcframework/ios-arm64_x86_64-simulator/libreact-native-cookies.a and b/Frameworks/react-native-cookies.xcframework/ios-arm64_x86_64-simulator/libreact-native-cookies.a differ diff --git a/Frameworks/react-native-dfp.xcframework/Info.plist b/Frameworks/react-native-dfp.xcframework/Info.plist index 9023965..522dbb3 100644 --- a/Frameworks/react-native-dfp.xcframework/Info.plist +++ b/Frameworks/react-native-dfp.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libreact-native-dfp.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-dfp.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libreact-native-dfp.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libreact-native-dfp.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-dfp.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/react-native-dfp.xcframework/ios-arm64/libreact-native-dfp.a b/Frameworks/react-native-dfp.xcframework/ios-arm64/libreact-native-dfp.a index 2068f58..e198f22 100644 Binary files a/Frameworks/react-native-dfp.xcframework/ios-arm64/libreact-native-dfp.a and b/Frameworks/react-native-dfp.xcframework/ios-arm64/libreact-native-dfp.a differ diff --git a/Frameworks/react-native-dfp.xcframework/ios-arm64_x86_64-simulator/libreact-native-dfp.a b/Frameworks/react-native-dfp.xcframework/ios-arm64_x86_64-simulator/libreact-native-dfp.a index 437d94d..420424b 100644 Binary files a/Frameworks/react-native-dfp.xcframework/ios-arm64_x86_64-simulator/libreact-native-dfp.a and b/Frameworks/react-native-dfp.xcframework/ios-arm64_x86_64-simulator/libreact-native-dfp.a differ diff --git a/Frameworks/react-native-geolocation.xcframework/ios-arm64/libreact-native-geolocation.a b/Frameworks/react-native-geolocation.xcframework/ios-arm64/libreact-native-geolocation.a index 65b022c..16645ea 100644 Binary files a/Frameworks/react-native-geolocation.xcframework/ios-arm64/libreact-native-geolocation.a and b/Frameworks/react-native-geolocation.xcframework/ios-arm64/libreact-native-geolocation.a differ diff --git a/Frameworks/react-native-geolocation.xcframework/ios-arm64_x86_64-simulator/libreact-native-geolocation.a b/Frameworks/react-native-geolocation.xcframework/ios-arm64_x86_64-simulator/libreact-native-geolocation.a index f445d55..692a138 100644 Binary files a/Frameworks/react-native-geolocation.xcframework/ios-arm64_x86_64-simulator/libreact-native-geolocation.a and b/Frameworks/react-native-geolocation.xcframework/ios-arm64_x86_64-simulator/libreact-native-geolocation.a differ diff --git a/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64/libreact-native-html-to-pdf.a b/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64/libreact-native-html-to-pdf.a index a299df6..57617f2 100644 Binary files a/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64/libreact-native-html-to-pdf.a and b/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64/libreact-native-html-to-pdf.a differ diff --git a/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-html-to-pdf.a b/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-html-to-pdf.a index 8d2a5cf..72f4c78 100644 Binary files a/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-html-to-pdf.a and b/Frameworks/react-native-html-to-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-html-to-pdf.a differ diff --git a/Frameworks/react-native-idle-timer.xcframework/ios-arm64/libreact-native-idle-timer.a b/Frameworks/react-native-idle-timer.xcframework/ios-arm64/libreact-native-idle-timer.a index 90cda81..ad407fc 100644 Binary files a/Frameworks/react-native-idle-timer.xcframework/ios-arm64/libreact-native-idle-timer.a and b/Frameworks/react-native-idle-timer.xcframework/ios-arm64/libreact-native-idle-timer.a differ diff --git a/Frameworks/react-native-idle-timer.xcframework/ios-arm64_x86_64-simulator/libreact-native-idle-timer.a b/Frameworks/react-native-idle-timer.xcframework/ios-arm64_x86_64-simulator/libreact-native-idle-timer.a index 1336f08..23b6326 100644 Binary files a/Frameworks/react-native-idle-timer.xcframework/ios-arm64_x86_64-simulator/libreact-native-idle-timer.a and b/Frameworks/react-native-idle-timer.xcframework/ios-arm64_x86_64-simulator/libreact-native-idle-timer.a differ diff --git a/Frameworks/react-native-image-editor.xcframework/ios-arm64/libreact-native-image-editor.a b/Frameworks/react-native-image-editor.xcframework/ios-arm64/libreact-native-image-editor.a index 8676bb1..743d57d 100644 Binary files a/Frameworks/react-native-image-editor.xcframework/ios-arm64/libreact-native-image-editor.a and b/Frameworks/react-native-image-editor.xcframework/ios-arm64/libreact-native-image-editor.a differ diff --git a/Frameworks/react-native-image-editor.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-editor.a b/Frameworks/react-native-image-editor.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-editor.a index 4aa401f..10bc618 100644 Binary files a/Frameworks/react-native-image-editor.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-editor.a and b/Frameworks/react-native-image-editor.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-editor.a differ diff --git a/Frameworks/react-native-image-marker.xcframework/ios-arm64/libreact-native-image-marker.a b/Frameworks/react-native-image-marker.xcframework/ios-arm64/libreact-native-image-marker.a index d92955e..45416ec 100644 Binary files a/Frameworks/react-native-image-marker.xcframework/ios-arm64/libreact-native-image-marker.a and b/Frameworks/react-native-image-marker.xcframework/ios-arm64/libreact-native-image-marker.a differ diff --git a/Frameworks/react-native-image-marker.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-marker.a b/Frameworks/react-native-image-marker.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-marker.a index dd661e2..cb4e3a7 100644 Binary files a/Frameworks/react-native-image-marker.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-marker.a and b/Frameworks/react-native-image-marker.xcframework/ios-arm64_x86_64-simulator/libreact-native-image-marker.a differ diff --git a/Frameworks/react-native-mail.xcframework/ios-arm64/libreact-native-mail.a b/Frameworks/react-native-mail.xcframework/ios-arm64/libreact-native-mail.a index bd5152f..c3fda37 100644 Binary files a/Frameworks/react-native-mail.xcframework/ios-arm64/libreact-native-mail.a and b/Frameworks/react-native-mail.xcframework/ios-arm64/libreact-native-mail.a differ diff --git a/Frameworks/react-native-mail.xcframework/ios-arm64_x86_64-simulator/libreact-native-mail.a b/Frameworks/react-native-mail.xcframework/ios-arm64_x86_64-simulator/libreact-native-mail.a index f2cc63b..2a71dfd 100644 Binary files a/Frameworks/react-native-mail.xcframework/ios-arm64_x86_64-simulator/libreact-native-mail.a and b/Frameworks/react-native-mail.xcframework/ios-arm64_x86_64-simulator/libreact-native-mail.a differ diff --git a/Frameworks/react-native-netinfo.xcframework/ios-arm64/libreact-native-netinfo.a b/Frameworks/react-native-netinfo.xcframework/ios-arm64/libreact-native-netinfo.a index 14c9ce3..88f3b18 100644 Binary files a/Frameworks/react-native-netinfo.xcframework/ios-arm64/libreact-native-netinfo.a and b/Frameworks/react-native-netinfo.xcframework/ios-arm64/libreact-native-netinfo.a differ diff --git a/Frameworks/react-native-netinfo.xcframework/ios-arm64_x86_64-simulator/libreact-native-netinfo.a b/Frameworks/react-native-netinfo.xcframework/ios-arm64_x86_64-simulator/libreact-native-netinfo.a index 081cdec..0d3f31b 100644 Binary files a/Frameworks/react-native-netinfo.xcframework/ios-arm64_x86_64-simulator/libreact-native-netinfo.a and b/Frameworks/react-native-netinfo.xcframework/ios-arm64_x86_64-simulator/libreact-native-netinfo.a differ diff --git a/Frameworks/react-native-pager-view.xcframework/ios-arm64/libreact-native-pager-view.a b/Frameworks/react-native-pager-view.xcframework/ios-arm64/libreact-native-pager-view.a index 634998a..535c925 100644 Binary files a/Frameworks/react-native-pager-view.xcframework/ios-arm64/libreact-native-pager-view.a and b/Frameworks/react-native-pager-view.xcframework/ios-arm64/libreact-native-pager-view.a differ diff --git a/Frameworks/react-native-pager-view.xcframework/ios-arm64_x86_64-simulator/libreact-native-pager-view.a b/Frameworks/react-native-pager-view.xcframework/ios-arm64_x86_64-simulator/libreact-native-pager-view.a index ebb0a8a..97de8a8 100644 Binary files a/Frameworks/react-native-pager-view.xcframework/ios-arm64_x86_64-simulator/libreact-native-pager-view.a and b/Frameworks/react-native-pager-view.xcframework/ios-arm64_x86_64-simulator/libreact-native-pager-view.a differ diff --git a/Frameworks/react-native-pdf.xcframework/Info.plist b/Frameworks/react-native-pdf.xcframework/Info.plist index 1b91024..e2e759d 100644 --- a/Frameworks/react-native-pdf.xcframework/Info.plist +++ b/Frameworks/react-native-pdf.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libreact-native-pdf.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-pdf.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libreact-native-pdf.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libreact-native-pdf.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-pdf.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/react-native-pdf.xcframework/ios-arm64/libreact-native-pdf.a b/Frameworks/react-native-pdf.xcframework/ios-arm64/libreact-native-pdf.a index 306574d..f72b3a4 100644 Binary files a/Frameworks/react-native-pdf.xcframework/ios-arm64/libreact-native-pdf.a and b/Frameworks/react-native-pdf.xcframework/ios-arm64/libreact-native-pdf.a differ diff --git a/Frameworks/react-native-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-pdf.a b/Frameworks/react-native-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-pdf.a index 6da2b04..d558c7a 100644 Binary files a/Frameworks/react-native-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-pdf.a and b/Frameworks/react-native-pdf.xcframework/ios-arm64_x86_64-simulator/libreact-native-pdf.a differ diff --git a/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64/libreact-native-photo-view-ex.a b/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64/libreact-native-photo-view-ex.a index 1491d12..5b3ded5 100644 Binary files a/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64/libreact-native-photo-view-ex.a and b/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64/libreact-native-photo-view-ex.a differ diff --git a/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64_x86_64-simulator/libreact-native-photo-view-ex.a b/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64_x86_64-simulator/libreact-native-photo-view-ex.a index a716fda..1c45094 100644 Binary files a/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64_x86_64-simulator/libreact-native-photo-view-ex.a and b/Frameworks/react-native-photo-view-ex.xcframework/ios-arm64_x86_64-simulator/libreact-native-photo-view-ex.a differ diff --git a/Frameworks/react-native-print.xcframework/ios-arm64/libreact-native-print.a b/Frameworks/react-native-print.xcframework/ios-arm64/libreact-native-print.a index 48f5e23..1419426 100644 Binary files a/Frameworks/react-native-print.xcframework/ios-arm64/libreact-native-print.a and b/Frameworks/react-native-print.xcframework/ios-arm64/libreact-native-print.a differ diff --git a/Frameworks/react-native-print.xcframework/ios-arm64_x86_64-simulator/libreact-native-print.a b/Frameworks/react-native-print.xcframework/ios-arm64_x86_64-simulator/libreact-native-print.a index ed7e3eb..f992582 100644 Binary files a/Frameworks/react-native-print.xcframework/ios-arm64_x86_64-simulator/libreact-native-print.a and b/Frameworks/react-native-print.xcframework/ios-arm64_x86_64-simulator/libreact-native-print.a differ diff --git a/Frameworks/react-native-safe-area-context.xcframework/ios-arm64/libreact-native-safe-area-context.a b/Frameworks/react-native-safe-area-context.xcframework/ios-arm64/libreact-native-safe-area-context.a index 0220849..90f7b70 100644 Binary files a/Frameworks/react-native-safe-area-context.xcframework/ios-arm64/libreact-native-safe-area-context.a and b/Frameworks/react-native-safe-area-context.xcframework/ios-arm64/libreact-native-safe-area-context.a differ diff --git a/Frameworks/react-native-safe-area-context.xcframework/ios-arm64_x86_64-simulator/libreact-native-safe-area-context.a b/Frameworks/react-native-safe-area-context.xcframework/ios-arm64_x86_64-simulator/libreact-native-safe-area-context.a index c8fc041..bc51a7e 100644 Binary files a/Frameworks/react-native-safe-area-context.xcframework/ios-arm64_x86_64-simulator/libreact-native-safe-area-context.a and b/Frameworks/react-native-safe-area-context.xcframework/ios-arm64_x86_64-simulator/libreact-native-safe-area-context.a differ diff --git a/Frameworks/react-native-slider.xcframework/Info.plist b/Frameworks/react-native-slider.xcframework/Info.plist index eb3d4b0..a305d02 100644 --- a/Frameworks/react-native-slider.xcframework/Info.plist +++ b/Frameworks/react-native-slider.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libreact-native-slider.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-slider.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libreact-native-slider.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libreact-native-slider.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-slider.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/react-native-slider.xcframework/ios-arm64/libreact-native-slider.a b/Frameworks/react-native-slider.xcframework/ios-arm64/libreact-native-slider.a index d867426..403321d 100644 Binary files a/Frameworks/react-native-slider.xcframework/ios-arm64/libreact-native-slider.a and b/Frameworks/react-native-slider.xcframework/ios-arm64/libreact-native-slider.a differ diff --git a/Frameworks/react-native-slider.xcframework/ios-arm64_x86_64-simulator/libreact-native-slider.a b/Frameworks/react-native-slider.xcframework/ios-arm64_x86_64-simulator/libreact-native-slider.a index 264ba3a..4c1a06d 100644 Binary files a/Frameworks/react-native-slider.xcframework/ios-arm64_x86_64-simulator/libreact-native-slider.a and b/Frameworks/react-native-slider.xcframework/ios-arm64_x86_64-simulator/libreact-native-slider.a differ diff --git a/Frameworks/react-native-splash-screen.xcframework/Info.plist b/Frameworks/react-native-splash-screen.xcframework/Info.plist index 3a28bc6..3eb3353 100644 --- a/Frameworks/react-native-splash-screen.xcframework/Info.plist +++ b/Frameworks/react-native-splash-screen.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libreact-native-splash-screen.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-splash-screen.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libreact-native-splash-screen.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libreact-native-splash-screen.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-splash-screen.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/react-native-splash-screen.xcframework/ios-arm64/libreact-native-splash-screen.a b/Frameworks/react-native-splash-screen.xcframework/ios-arm64/libreact-native-splash-screen.a index 44c9686..220460d 100644 Binary files a/Frameworks/react-native-splash-screen.xcframework/ios-arm64/libreact-native-splash-screen.a and b/Frameworks/react-native-splash-screen.xcframework/ios-arm64/libreact-native-splash-screen.a differ diff --git a/Frameworks/react-native-splash-screen.xcframework/ios-arm64_x86_64-simulator/libreact-native-splash-screen.a b/Frameworks/react-native-splash-screen.xcframework/ios-arm64_x86_64-simulator/libreact-native-splash-screen.a index 46ef196..06c48d1 100644 Binary files a/Frameworks/react-native-splash-screen.xcframework/ios-arm64_x86_64-simulator/libreact-native-splash-screen.a and b/Frameworks/react-native-splash-screen.xcframework/ios-arm64_x86_64-simulator/libreact-native-splash-screen.a differ diff --git a/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64/libreact-native-sqlite-storage.a b/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64/libreact-native-sqlite-storage.a index b0b3d72..97710eb 100644 Binary files a/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64/libreact-native-sqlite-storage.a and b/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64/libreact-native-sqlite-storage.a differ diff --git a/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64_x86_64-simulator/libreact-native-sqlite-storage.a b/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64_x86_64-simulator/libreact-native-sqlite-storage.a index a62dfe0..7007ef2 100644 Binary files a/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64_x86_64-simulator/libreact-native-sqlite-storage.a and b/Frameworks/react-native-sqlite-storage.xcframework/ios-arm64_x86_64-simulator/libreact-native-sqlite-storage.a differ diff --git a/Frameworks/react-native-uuid-generator.xcframework/Info.plist b/Frameworks/react-native-uuid-generator.xcframework/Info.plist index 60f65b2..e2dff3a 100644 --- a/Frameworks/react-native-uuid-generator.xcframework/Info.plist +++ b/Frameworks/react-native-uuid-generator.xcframework/Info.plist @@ -4,22 +4,6 @@ AvailableLibraries - - BinaryPath - libreact-native-uuid-generator.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-uuid-generator.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - BinaryPath libreact-native-uuid-generator.a @@ -39,6 +23,22 @@ SupportedPlatformVariant simulator + + BinaryPath + libreact-native-uuid-generator.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-uuid-generator.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + CFBundlePackageType XFWK diff --git a/Frameworks/react-native-uuid-generator.xcframework/ios-arm64/libreact-native-uuid-generator.a b/Frameworks/react-native-uuid-generator.xcframework/ios-arm64/libreact-native-uuid-generator.a index 9a945a9..ec427e4 100644 Binary files a/Frameworks/react-native-uuid-generator.xcframework/ios-arm64/libreact-native-uuid-generator.a and b/Frameworks/react-native-uuid-generator.xcframework/ios-arm64/libreact-native-uuid-generator.a differ diff --git a/Frameworks/react-native-uuid-generator.xcframework/ios-arm64_x86_64-simulator/libreact-native-uuid-generator.a b/Frameworks/react-native-uuid-generator.xcframework/ios-arm64_x86_64-simulator/libreact-native-uuid-generator.a index 5b4f09a..8268958 100644 Binary files a/Frameworks/react-native-uuid-generator.xcframework/ios-arm64_x86_64-simulator/libreact-native-uuid-generator.a and b/Frameworks/react-native-uuid-generator.xcframework/ios-arm64_x86_64-simulator/libreact-native-uuid-generator.a differ diff --git a/Frameworks/react-native-video.xcframework/ios-arm64/libreact-native-video.a b/Frameworks/react-native-video.xcframework/ios-arm64/libreact-native-video.a index 1686044..1734801 100644 Binary files a/Frameworks/react-native-video.xcframework/ios-arm64/libreact-native-video.a and b/Frameworks/react-native-video.xcframework/ios-arm64/libreact-native-video.a differ diff --git a/Frameworks/react-native-video.xcframework/ios-arm64_x86_64-simulator/libreact-native-video.a b/Frameworks/react-native-video.xcframework/ios-arm64_x86_64-simulator/libreact-native-video.a index cf6a91d..b0226f0 100644 Binary files a/Frameworks/react-native-video.xcframework/ios-arm64_x86_64-simulator/libreact-native-video.a and b/Frameworks/react-native-video.xcframework/ios-arm64_x86_64-simulator/libreact-native-video.a differ diff --git a/Frameworks/react-native-web-analytics.xcframework/Info.plist b/Frameworks/react-native-web-analytics.xcframework/Info.plist index b4a84da..4ffdabd 100644 --- a/Frameworks/react-native-web-analytics.xcframework/Info.plist +++ b/Frameworks/react-native-web-analytics.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libreact-native-web-analytics.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-web-analytics.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libreact-native-web-analytics.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libreact-native-web-analytics.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-web-analytics.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/react-native-web-analytics.xcframework/ios-arm64/libreact-native-web-analytics.a b/Frameworks/react-native-web-analytics.xcframework/ios-arm64/libreact-native-web-analytics.a index 7854dc0..bf96c3e 100644 Binary files a/Frameworks/react-native-web-analytics.xcframework/ios-arm64/libreact-native-web-analytics.a and b/Frameworks/react-native-web-analytics.xcframework/ios-arm64/libreact-native-web-analytics.a differ diff --git a/Frameworks/react-native-web-analytics.xcframework/ios-arm64_x86_64-simulator/libreact-native-web-analytics.a b/Frameworks/react-native-web-analytics.xcframework/ios-arm64_x86_64-simulator/libreact-native-web-analytics.a index 9e36850..f937f5d 100644 Binary files a/Frameworks/react-native-web-analytics.xcframework/ios-arm64_x86_64-simulator/libreact-native-web-analytics.a and b/Frameworks/react-native-web-analytics.xcframework/ios-arm64_x86_64-simulator/libreact-native-web-analytics.a differ diff --git a/Frameworks/react-native-webview.xcframework/Info.plist b/Frameworks/react-native-webview.xcframework/Info.plist index 1d7543d..d620387 100644 --- a/Frameworks/react-native-webview.xcframework/Info.plist +++ b/Frameworks/react-native-webview.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + libreact-native-webview.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + libreact-native-webview.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath libreact-native-webview.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - libreact-native-webview.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - libreact-native-webview.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/react-native-webview.xcframework/ios-arm64/libreact-native-webview.a b/Frameworks/react-native-webview.xcframework/ios-arm64/libreact-native-webview.a index 643a77d..b85812e 100644 Binary files a/Frameworks/react-native-webview.xcframework/ios-arm64/libreact-native-webview.a and b/Frameworks/react-native-webview.xcframework/ios-arm64/libreact-native-webview.a differ diff --git a/Frameworks/react-native-webview.xcframework/ios-arm64_x86_64-simulator/libreact-native-webview.a b/Frameworks/react-native-webview.xcframework/ios-arm64_x86_64-simulator/libreact-native-webview.a index 0702a64..36c7a50 100644 Binary files a/Frameworks/react-native-webview.xcframework/ios-arm64_x86_64-simulator/libreact-native-webview.a and b/Frameworks/react-native-webview.xcframework/ios-arm64_x86_64-simulator/libreact-native-webview.a differ diff --git a/Frameworks/react-native-zip-archive.xcframework/ios-arm64/libreact-native-zip-archive.a b/Frameworks/react-native-zip-archive.xcframework/ios-arm64/libreact-native-zip-archive.a index dea23e7..ebff4a3 100644 Binary files a/Frameworks/react-native-zip-archive.xcframework/ios-arm64/libreact-native-zip-archive.a and b/Frameworks/react-native-zip-archive.xcframework/ios-arm64/libreact-native-zip-archive.a differ diff --git a/Frameworks/react-native-zip-archive.xcframework/ios-arm64_x86_64-simulator/libreact-native-zip-archive.a b/Frameworks/react-native-zip-archive.xcframework/ios-arm64_x86_64-simulator/libreact-native-zip-archive.a index 07bc0dd..6627caf 100644 Binary files a/Frameworks/react-native-zip-archive.xcframework/ios-arm64_x86_64-simulator/libreact-native-zip-archive.a and b/Frameworks/react-native-zip-archive.xcframework/ios-arm64_x86_64-simulator/libreact-native-zip-archive.a differ diff --git a/Frameworks/rn-fetch-blob.xcframework/Info.plist b/Frameworks/rn-fetch-blob.xcframework/Info.plist index 540c783..75cf30c 100644 --- a/Frameworks/rn-fetch-blob.xcframework/Info.plist +++ b/Frameworks/rn-fetch-blob.xcframework/Info.plist @@ -4,6 +4,22 @@ AvailableLibraries + + BinaryPath + librn-fetch-blob.a + HeadersPath + Headers + LibraryIdentifier + ios-arm64 + LibraryPath + librn-fetch-blob.a + SupportedArchitectures + + arm64 + + SupportedPlatform + ios + BinaryPath librn-fetch-blob.a @@ -23,22 +39,6 @@ SupportedPlatformVariant simulator - - BinaryPath - librn-fetch-blob.a - HeadersPath - Headers - LibraryIdentifier - ios-arm64 - LibraryPath - librn-fetch-blob.a - SupportedArchitectures - - arm64 - - SupportedPlatform - ios - CFBundlePackageType XFWK diff --git a/Frameworks/rn-fetch-blob.xcframework/ios-arm64/librn-fetch-blob.a b/Frameworks/rn-fetch-blob.xcframework/ios-arm64/librn-fetch-blob.a index b3cd060..a0d17c8 100644 Binary files a/Frameworks/rn-fetch-blob.xcframework/ios-arm64/librn-fetch-blob.a and b/Frameworks/rn-fetch-blob.xcframework/ios-arm64/librn-fetch-blob.a differ diff --git a/Frameworks/rn-fetch-blob.xcframework/ios-arm64_x86_64-simulator/librn-fetch-blob.a b/Frameworks/rn-fetch-blob.xcframework/ios-arm64_x86_64-simulator/librn-fetch-blob.a index 1164f39..b30b896 100644 Binary files a/Frameworks/rn-fetch-blob.xcframework/ios-arm64_x86_64-simulator/librn-fetch-blob.a and b/Frameworks/rn-fetch-blob.xcframework/ios-arm64_x86_64-simulator/librn-fetch-blob.a differ diff --git a/NewsmemorySDK.podspec b/NewsmemorySDK.podspec index 787379e..7035ffa 100644 --- a/NewsmemorySDK.podspec +++ b/NewsmemorySDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'NewsmemorySDK' - s.version = '3.15.08' + s.version = '3.16.09' s.description = 'Components and configuration for Tecnavia Newsmemory ePaper solution SDK.' s.summary = 'Components for Tecnavia Newsmemory SDK.' s.homepage = 'https://www.tecnavia.com' @@ -10,7 +10,7 @@ Pod::Spec.new do |s| s.resources = 'Other/Resources/{Newsmemory.js,*.bundle,fonts/*.ttf,fonts/*.otf,application}', 'Other/assets' - s.platform = :ios, '11.0' + s.platform = :ios, '12.4' @@ -29,8 +29,8 @@ Pod::Spec.new do |s| s.user_target_xcconfig = { 'CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER' => 'NO', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) COCOAPODS=1 $(inherited) SD_WEBP=1 $(inherited) PB_FIELD_32BIT=1 PB_NO_PACKED_STRUCTS=1 PB_ENABLE_MALLOC=1', - 'HEADER_SEARCH_PATHS' => '$(inherited) ${TECNAVIA_FRAMEWORKS_DIR}/BVLinearGradient.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/DoubleConversion.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/DynamicFonts.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/FBReactNativeSpec.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/Newsmemory.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RCT-Folly.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RCTTypeSafety.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNCAsyncStorage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNColorMatrixImageFilters.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNDateTimePicker.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNDefaultPreference.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNDeviceInfo.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNFS.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNFastImage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNGestureHandler.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNOpenAppSettings.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNReanimated.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNSVG.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNScreens.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNShare.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNTextSize.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNVectorIcons.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNVolumeController.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-Core.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-CoreModules.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTAnimation.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTBlob.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTImage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTLinking.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTNetwork.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTSettings.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTText.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTVibration.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-cxxreact.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-jsi.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-jsiexecutor.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-jsinspector.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-logger.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-perflogger.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/ReactCommon.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/ReactNativeART.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/TextToSpeech.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/Yoga.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/glog.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-bridge.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-cookies.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-dfp.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-geolocation.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-html-to-pdf.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-idle-timer.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-image-editor.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-image-marker.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-mail.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-netinfo.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-pager-view.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-pdf.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-photo-view-ex.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-print.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-safe-area-context.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-slider.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-splash-screen.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-sqlite-storage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-uuid-generator.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-video.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-web-analytics.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-webview.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-zip-archive.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/rn-fetch-blob.xcframework/**', - 'LIBRARY_SEARCH_PATHS' => '$(inherited) ', + 'HEADER_SEARCH_PATHS' => '$(inherited) ${TECNAVIA_FRAMEWORKS_DIR}/BVLinearGradient.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/DoubleConversion.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/DynamicFonts.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/Newsmemory.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RCT-Folly.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RCTTypeSafety.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNCAsyncStorage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNDateTimePicker.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNDefaultPreference.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNDeviceInfo.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNFS.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNFastImage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNGestureHandler.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNOpenAppSettings.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNReanimated.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNSVG.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNScreens.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNShare.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNTextSize.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNVectorIcons.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/RNVolumeController.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-Codegen.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-Core.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-CoreModules.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTAnimation.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTBlob.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTImage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTLinking.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTNetwork.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTSettings.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTText.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-RCTVibration.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-bridging.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-cxxreact.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-jsi.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-jsiexecutor.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-jsinspector.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-logger.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/React-perflogger.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/ReactCommon.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/ReactNativeART.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/TextToSpeech.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/Yoga.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/glog.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-bridge.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-color-matrix-image-filters.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-cookies.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-dfp.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-geolocation.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-html-to-pdf.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-idle-timer.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-image-editor.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-image-marker.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-mail.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-netinfo.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-pager-view.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-pdf.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-photo-view-ex.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-print.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-safe-area-context.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-slider.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-splash-screen.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-sqlite-storage.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-uuid-generator.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-video.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-web-analytics.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-webview.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/react-native-zip-archive.xcframework/** ${TECNAVIA_FRAMEWORKS_DIR}/rn-fetch-blob.xcframework/**', + 'OTHER_CFLAGS' => '$(inherited) -DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32 -DREACT_NATIVE_MINOR_VERSION=70 -DREANIMATED_VERSION=2.17.0', 'OTHER_LDFLAGS' => '$(inherited) -ObjC -l"c++" -l"c++abi" -l"iconv" -l"sqlite3" -l"z"', 'OTHER_SWIFT_FLAGS' => '$(inherited) -D COCOAPODS', 'TECNAVIA_FRAMEWORKS_DIR' => '${PODS_ROOT}/${TECNAVIA_SDK_VERSION}/Frameworks', diff --git a/Other/Resources/AccessibilityResources.bundle/Info.plist b/Other/Resources/AccessibilityResources.bundle/Info.plist index c67478c..0753b48 100644 Binary files a/Other/Resources/AccessibilityResources.bundle/Info.plist and b/Other/Resources/AccessibilityResources.bundle/Info.plist differ diff --git a/Other/Resources/Newsmemory.js b/Other/Resources/Newsmemory.js index 1dc3d61..526ea08 100644 --- a/Other/Resources/Newsmemory.js +++ b/Other/Resources/Newsmemory.js @@ -1,2665 +1,2791 @@ var __BUNDLE_START_TIME__=this.nativePerformanceNow?nativePerformanceNow():Date.now(),__DEV__=false,process=this.process||{},__METRO_GLOBAL_PREFIX__='';process.env=process.env||{};process.env.NODE_ENV=process.env.NODE_ENV||"production"; -!(function(r){"use strict";r.__r=o,r[__METRO_GLOBAL_PREFIX__+"__d"]=function(r,i,n){if(null!=e[i])return;var o={dependencyMap:n,factory:r,hasError:!1,importedAll:t,importedDefault:t,isInitialized:!1,publicModule:{exports:{}}};e[i]=o},r.__c=n,r.__registerSegment=function(r,t,i){s[r]=t,i&&i.forEach(function(t){e[t]||v.has(t)||v.set(t,r)})};var e=n(),t={},i={}.hasOwnProperty;function n(){return e=Object.create(null)}function o(r){var t=r,i=e[t];return i&&i.isInitialized?i.publicModule.exports:d(t,i)}function l(r){var i=r;if(e[i]&&e[i].importedDefault!==t)return e[i].importedDefault;var n=o(i),l=n&&n.__esModule?n.default:n;return e[i].importedDefault=l}function u(r){var n=r;if(e[n]&&e[n].importedAll!==t)return e[n].importedAll;var l,u=o(n);if(u&&u.__esModule)l=u;else{if(l={},u)for(var a in u)i.call(u,a)&&(l[a]=u[a]);l.default=u}return e[n].importedAll=l}o.importDefault=l,o.importAll=u;var a=!1;function d(e,t){if(!a&&r.ErrorUtils){var i;a=!0;try{i=h(e,t)}catch(e){r.ErrorUtils.reportFatalError(e)}return a=!1,i}return h(e,t)}var f=16,c=65535;function p(r){return{segmentId:r>>>f,localId:r&c}}o.unpackModuleId=p,o.packModuleId=function(r){return(r.segmentId<0){var n,a=null!==(n=v.get(t))&&void 0!==n?n:0,d=s[a];null!=d&&(d(t),i=e[t],v.delete(t))}var f=r.nativeRequire;if(!i&&f){var c=p(t),h=c.segmentId;f(c.localId,h),i=e[t]}if(!i)throw Error('Requiring unknown module "'+t+'".');if(i.hasError)throw _(t,i.error);i.isInitialized=!0;var m=i,g=m.factory,I=m.dependencyMap;try{var M=i.publicModule;return M.id=t,g(r,o,l,u,M,M.exports,I),i.factory=void 0,i.dependencyMap=void 0,M.exports}catch(r){throw i.hasError=!0,i.error=r,i.isInitialized=!1,i.publicModule.exports=void 0,r}}function _(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+e)}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); -!(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach(function(n,r){e[n]=!0}),e}function r(n,r,u){if(n.formatValueCalls++,n.formatValueCalls>200)return"[TOO BIG formatValueCalls "+n.formatValueCalls+" exceeded limit of 200]";var f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.length){if(v(r)){var g=r.name?': '+r.name:'';return n.stylize('[Function'+g+']','special')}if(p(r))return n.stylize(RegExp.prototype.toString.call(r),'regexp');if(y(r))return n.stylize(Date.prototype.toString.call(r),'date');if(d(r))return o(r)}var h,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.length||j&&0!=r.length?u<0?p(r)?n.stylize(RegExp.prototype.toString.call(r),'regexp'):n.stylize('[Object]','special'):(n.seen.push(r),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+O[1]}function t(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var r="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,'string')}return c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,r,t,o){for(var i=[],a=0,u=e.length;a-1&&(u=l?u.split('\n').map(function(n){return' '+n}).join('\n').substr(2):'\n'+u.split('\n').map(function(n){return' '+n}).join('\n')):u=n.stylize('[Circular]','special')),s(a)){if(l&&i.match(/^\d+$/))return u;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+u}function a(n,e,r){return n.reduce(function(n,e){return 0,e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?r[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+r[1]:r[0]+e+' '+n.join(', ')+' '+r[1]}function u(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,t){return r({seen:[],formatValueCalls:0,stylize:n},e,t.depth)}})(),r='(index)',t={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t>>c,localId:r&f}}i.unpackModuleId=p,i.packModuleId=function(r){return(r.segmentId<0){var o,a=null!==(o=v.get(t))&&void 0!==o?o:0,d=s[a];null!=d&&(d(t),n=e[t],v.delete(t))}var c=r.nativeRequire;if(!n&&c){var f=p(t),h=f.segmentId;c(f.localId,h),n=e[t]}if(!n)throw Error('Requiring unknown module "'+t+'".');if(n.hasError)throw _(t,n.error);n.isInitialized=!0;var m=n,w=m.factory,M=m.dependencyMap;try{var g=n.publicModule;return g.id=t,w(r,i,l,u,g,g.exports,M),n.factory=void 0,n.dependencyMap=void 0,g.exports}catch(r){throw n.hasError=!0,n.error=r,n.isInitialized=!1,n.publicModule.exports=void 0,r}}function _(r,e){return Error('Requiring module "'+r+'", which threw an exception: '+e)}})('undefined'!=typeof globalThis?globalThis:'undefined'!=typeof global?global:'undefined'!=typeof window?window:this); +!(function(n){var e=(function(){function n(n,e){return n}function e(n){var e={};return n.forEach(function(n,r){e[n]=!0}),e}function r(n,r,u){if(n.formatValueCalls++,n.formatValueCalls>200)return"[TOO BIG formatValueCalls "+n.formatValueCalls+" exceeded limit of 200]";var f=t(n,r);if(f)return f;var c=Object.keys(r),s=e(c);if(d(r)&&(c.indexOf('message')>=0||c.indexOf('description')>=0))return o(r);if(0===c.length){if(v(r)){var g=r.name?': '+r.name:'';return n.stylize('[Function'+g+']','special')}if(p(r))return n.stylize(RegExp.prototype.toString.call(r),'regexp');if(y(r))return n.stylize(Date.prototype.toString.call(r),'date');if(d(r))return o(r)}var h,b,m='',j=!1,O=['{','}'];(h=r,Array.isArray(h)&&(j=!0,O=['[',']']),v(r))&&(m=' [Function'+(r.name?': '+r.name:'')+']');return p(r)&&(m=' '+RegExp.prototype.toString.call(r)),y(r)&&(m=' '+Date.prototype.toUTCString.call(r)),d(r)&&(m=' '+o(r)),0!==c.length||j&&0!=r.length?u<0?p(r)?n.stylize(RegExp.prototype.toString.call(r),'regexp'):n.stylize('[Object]','special'):(n.seen.push(r),b=j?i(n,r,u,s,c):c.map(function(e){return l(n,r,u,s,e,j)}),n.seen.pop(),a(b,m,O)):O[0]+m+O[1]}function t(n,e){if(s(e))return n.stylize('undefined','undefined');if('string'==typeof e){var r="'"+JSON.stringify(e).replace(/^"|"$/g,'').replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return n.stylize(r,'string')}return c(e)?n.stylize(''+e,'number'):u(e)?n.stylize(''+e,'boolean'):f(e)?n.stylize('null','null'):void 0}function o(n){return'['+Error.prototype.toString.call(n)+']'}function i(n,e,r,t,o){for(var i=[],a=0,u=e.length;a-1&&(u=l?u.split('\n').map(function(n){return' '+n}).join('\n').substr(2):'\n'+u.split('\n').map(function(n){return' '+n}).join('\n')):u=n.stylize('[Circular]','special')),s(a)){if(l&&i.match(/^\d+$/))return u;(a=JSON.stringify(''+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=n.stylize(a,'name')):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=n.stylize(a,'string'))}return a+': '+u}function a(n,e,r){return n.reduce(function(n,e){return 0,e.indexOf('\n')>=0&&0,n+e.replace(/\u001b\[\d\d?m/g,'').length+1},0)>60?r[0]+(''===e?'':e+'\n ')+' '+n.join(',\n ')+' '+r[1]:r[0]+e+' '+n.join(', ')+' '+r[1]}function u(n){return'boolean'==typeof n}function f(n){return null===n}function c(n){return'number'==typeof n}function s(n){return void 0===n}function p(n){return g(n)&&'[object RegExp]'===h(n)}function g(n){return'object'==typeof n&&null!==n}function y(n){return g(n)&&'[object Date]'===h(n)}function d(n){return g(n)&&('[object Error]'===h(n)||n instanceof Error)}function v(n){return'function'==typeof n}function h(n){return Object.prototype.toString.call(n)}function b(n,e){return Object.prototype.hasOwnProperty.call(n,e)}return function(e,t){return r({seen:[],formatValueCalls:0,stylize:n},e,t.depth)}})(),r='(index)',t={trace:0,info:1,warn:2,error:3},o=[];o[t.trace]='debug',o[t.info]='log',o[t.warn]='warning',o[t.error]='error';var i=1;function l(r){return function(){var l;l=1===arguments.length&&'string'==typeof arguments[0]?arguments[0]:Array.prototype.map.call(arguments,function(n){return e(n,{depth:10})}).join(', ');var a=arguments[0],u=r;'string'==typeof a&&'Warning: '===a.slice(0,9)&&u>=t.error&&(u=t.warn),n.__inspectorLog&&n.__inspectorLog(o[u],l,[].slice.call(arguments),i),s.length&&(l=p('',l)),n.nativeLoggingHook(l,u)}}function a(n,e){return Array.apply(null,Array(e)).map(function(){return n})}var u="\u2502",f="\u2510",c="\u2518",s=[];function p(n,e){return s.join('')+n+' '+(e||'')}if(n.nativeLoggingHook){n.console;n.console={error:l(t.error),info:l(t.info),log:l(t.info),warn:l(t.warn),trace:l(t.trace),debug:l(t.trace),table:function(e){if(!Array.isArray(e)){var o=e;for(var i in e=[],o)if(o.hasOwnProperty(i)){var l=o[i];l[r]=i,e.push(l)}}if(0!==e.length){var u=Object.keys(e[0]).sort(),f=[],c=[];u.forEach(function(n,r){c[r]=n.length;for(var t=0;t';return function(){for(var r=arguments.length,u=new Array(r),e=0;e2&&void 0!==arguments[2]?arguments[2]:{},r=(0,s.default)({},n);return t.forEach(function(t){var n,a,o=e[t];if(a=t,!(void 0===(n=o)||n===Object(n)&&'__isNative'in n||'onHandlerStateChange'===a||'onGestureEvent'===a)){var u=e[t];'simultaneousHandlers'===t||'waitFor'===t?u=_(e[t]):'hitSlop'===t&&'object'!=typeof u&&(u={top:u,left:u,bottom:u,right:u}),r[t]=u}}),r}function _(e){return Array.isArray(e)||(e=[e]),'web'===p.Platform.OS?e.map(function(e){return e.current}).filter(function(e){return e}):e.map(function(e){var t;return O[e]||(null==(t=e.current)?void 0:t.handlerTag)||-1}).filter(function(e){return e>0})}function P(e){var t=function(e){return Array.isArray(e)?e.some(function(e){return e&&null===e.current}):e&&null===e.current};return t(e.simultaneousHandlers)||t(e.waitFor)}var A=(t={},(0,l.default)(t,_r(d[13]).State.UNDETERMINED,void 0),(0,l.default)(t,_r(d[13]).State.BEGAN,'onBegan'),(0,l.default)(t,_r(d[13]).State.FAILED,'onFailed'),(0,l.default)(t,_r(d[13]).State.CANCELLED,'onCancelled'),(0,l.default)(t,_r(d[13]).State.ACTIVE,'onActivated'),(0,l.default)(t,_r(d[13]).State.END,'onEnded'),t)},20,[5,21,7,8,12,14,16,27,6,17,28,407,408,3]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){return r(d[0])(t)||r(d[1])(t)||r(d[2])(t)||r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports},21,[22,24,25,26]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){if(Array.isArray(t))return r(d[0])(t)},m.exports.__esModule=!0,m.exports.default=m.exports},22,[23]); -__d(function(g,r,_i,a,m,e,d){m.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,l=new Array(n);o1?n-1:0),o=1;o0?l[l.length-1]:null,c=l.length>1?l[l.length-2]:null,v='function'==typeof s,h='function'==typeof c;h&&r(d[1])(v,'Cannot have a non-function arg after a function arg.');var y=v?s:null,C=h?c:null,M=v+h,b=l.slice(0,l.length-M);if('sync'===o)return r(d[3]).callNativeSyncHook(n,t,b,C,y);r(d[3]).enqueueNativeCall(n,t,b,C,y)}).type=o,u}function u(n,t){return-1!==n.indexOf(t)}function l(n,t){return r(d[2])(t,n||{})}g.__fbGenNativeModule=n;var f={};if(g.nativeModuleProxy)f=g.nativeModuleProxy;else if(!g.nativeExtensions){var s=g.__fbBatchedBridgeConfig;r(d[1])(s,'__fbBatchedBridgeConfig is not set, cannot invoke native modules');var c=r(d[4]);(s.remoteModuleConfig||[]).forEach(function(o,u){var l=n(o,u);l&&(l.module?f[l.name]=l.module:c(f,l.name,{get:function(){return t(l.name,u)}}))})}m.exports=f},40,[41,36,6,45,50]); -__d(function(g,r,_i,a,m,e,d){m.exports=function(t,o){return r(d[0])(t)||r(d[1])(t,o)||r(d[2])(t,o)||r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports},41,[42,43,25,44]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){if(Array.isArray(t))return t},m.exports.__esModule=!0,m.exports.default=m.exports},42,[]); -__d(function(g,_r,_i,_a,m,_e,d){m.exports=function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var l,n,u,o,f=[],i=!0,a=!1;try{if(u=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;i=!1}else for(;!(i=(l=u.call(r)).done)&&(f.push(l.value),f.length!==t);i=!0);}catch(e){a=!0,n=e}finally{try{if(!i&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(a)throw n}}return f}},m.exports.__esModule=!0,m.exports.default=m.exports},43,[]); -__d(function(g,r,i,a,m,e,d){m.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},m.exports.__esModule=!0,m.exports.default=m.exports},44,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=new(r(d[0]));Object.defineProperty(g,'__fbBatchedBridge',{configurable:!0,value:t}),m.exports=t},45,[46]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){r(d[0])(this,t),this._lazyCallableModules={},this._queue=[[],[],[],0],this._successCallbacks=new Map,this._failureCallbacks=new Map,this._callID=0,this._lastFlush=0,this._eventLoopStartTime=Date.now(),this._reactNativeMicrotasksCallback=null,this.callFunctionReturnFlushedQueue=this.callFunctionReturnFlushedQueue.bind(this),this.flushedQueue=this.flushedQueue.bind(this),this.invokeCallbackAndReturnFlushedQueue=this.invokeCallbackAndReturnFlushedQueue.bind(this)}return r(d[1])(t,[{key:"callFunctionReturnFlushedQueue",value:function(t,l,s){var u=this;return this.__guard(function(){u.__callFunction(t,l,s)}),this.flushedQueue()}},{key:"invokeCallbackAndReturnFlushedQueue",value:function(t,l){var s=this;return this.__guard(function(){s.__invokeCallback(t,l)}),this.flushedQueue()}},{key:"flushedQueue",value:function(){var t=this;this.__guard(function(){t.__callReactNativeMicrotasks()});var l=this._queue;return this._queue=[[],[],[],this._callID],l[0].length?l:null}},{key:"getEventLoopRunningTime",value:function(){return Date.now()-this._eventLoopStartTime}},{key:"registerCallableModule",value:function(t,l){this._lazyCallableModules[t]=function(){return l}}},{key:"registerLazyCallableModule",value:function(t,l){var s,u=l;this._lazyCallableModules[t]=function(){return u&&(s=u(),u=null),s}}},{key:"getCallableModule",value:function(t){var l=this._lazyCallableModules[t];return l?l():null}},{key:"callNativeSyncHook",value:function(t,l,s,u,n){return this.processCallbacks(t,l,s,u,n),g.nativeCallSyncHook(t,l,s)}},{key:"processCallbacks",value:function(t,l,s,u,n){(u||n)&&(u&&s.push(this._callID<<1),n&&s.push(this._callID<<1|1),this._successCallbacks.set(this._callID,n),this._failureCallbacks.set(this._callID,u)),this._callID++}},{key:"enqueueNativeCall",value:function(t,l,s,u,n){this.processCallbacks(t,l,s,u,n),this._queue[0].push(t),this._queue[1].push(l),this._queue[2].push(s);var h=Date.now();if(g.nativeFlushQueueImmediate&&h-this._lastFlush>=5){var o=this._queue;this._queue=[[],[],[],this._callID],this._lastFlush=h,g.nativeFlushQueueImmediate(o)}r(d[2]).counterEvent('pending_js_to_native_queue',this._queue[0].length),this.__spy&&this.__spy({type:1,module:t+'',method:l,args:s})}},{key:"createDebugLookup",value:function(t,l,s){}},{key:"setReactNativeMicrotasksCallback",value:function(t){this._reactNativeMicrotasksCallback=t}},{key:"__guard",value:function(t){if(this.__shouldPauseOnThrow())t();else try{t()}catch(t){r(d[3]).reportFatalError(t)}}},{key:"__shouldPauseOnThrow",value:function(){return'undefined'!=typeof DebuggerInternal&&!0===DebuggerInternal.shouldPauseOnThrow}},{key:"__callReactNativeMicrotasks",value:function(){r(d[2]).beginEvent('JSTimers.callReactNativeMicrotasks()'),null!=this._reactNativeMicrotasksCallback&&this._reactNativeMicrotasksCallback(),r(d[2]).endEvent()}},{key:"__callFunction",value:function(t,l,s){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush,this.__spy?r(d[2]).beginEvent(t+"."+l+"("+r(d[4]).default(s)+")"):r(d[2]).beginEvent(t+"."+l+"(...)"),this.__spy&&this.__spy({type:0,module:t,method:l,args:s});var u=this.getCallableModule(t);r(d[5])(!!u,"Module "+t+" is not a registered callable module (calling "+l+"). A frequent cause of the error is that the application entry file path is incorrect.\n This can also happen when the JS bundle is corrupt or there is an early initialization error when loading React Native."),r(d[5])(!!u[l],"Method "+l+" does not exist on module "+t),u[l].apply(u,s),r(d[2]).endEvent()}},{key:"__invokeCallback",value:function(t,l){this._lastFlush=Date.now(),this._eventLoopStartTime=this._lastFlush;var s=t>>>1,u=1&t?this._successCallbacks.get(s):this._failureCallbacks.get(s);u&&(this._successCallbacks.delete(s),this._failureCallbacks.delete(s),u.apply(void 0,r(d[6])(l)))}}],[{key:"spy",value:function(l){t.prototype.__spy=!0===l?function(t){}:!1===l?null:l}}]),t})();m.exports=t},46,[7,8,47,48,49,36,21]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=!1,t=0,c={installReactHook:function(){!0},setEnabled:function(t){n!==t&&(n=t)},isEnabled:function(){return n},beginEvent:function(t,c){if(n){var o='function'==typeof t?t():t;g.nativeTraceBeginSection(131072,o,c)}},endEvent:function(){n&&g.nativeTraceEndSection(131072)},beginAsyncEvent:function(c){var o=t;if(n){t++;var f='function'==typeof c?c():c;g.nativeTraceBeginAsyncSection(131072,f,o)}return o},endAsyncEvent:function(t,c){if(n){var o='function'==typeof t?t():t;g.nativeTraceEndAsyncSection(131072,o,c)}},counterEvent:function(t,c){if(n){var o='function'==typeof t?t():t;g.nativeTraceCounter&&g.nativeTraceCounter(131072,o,c)}}};m.exports=c},47,[]); -__d(function(g,r,i,a,m,e,d){m.exports=g.ErrorUtils},48,[]); -__d(function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.createStringifySafeWithLimits=o,_e.default=void 0;var t=r(d[0])(r(d[1]));function e(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(i)return(i=i.call(t)).next.bind(i);if(Array.isArray(t)||(i=n(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var o=0;return function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,e){if(t){if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(t,e):void 0}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);nf+"...(truncated)...".length?i.substring(0,f)+"...(truncated)...":i}if('object'!=typeof i||null===i)return i;var u=i;if(Array.isArray(i))h.length>=o?u="[ ... array with "+i.length+" values ... ]":i.length>c&&(u=i.slice(0,c).concat(["... extra "+(i.length-c)+" values truncated ..."]));else{(0,t.default)('object'==typeof i,'This was already found earlier');var l=Object.keys(i);if(h.length>=o)u="{ ... object with "+l.length+" keys ... }";else if(l.length>s){u={};for(var y,v=e(l.slice(0,s));!(y=v()).done;){var b=y.value;u[b]=i[b]}u['...(truncated keys)...']=l.length-s}}return h.unshift(u),u}return function(t){if(void 0===t)return'undefined';if(null===t)return'null';if('function'==typeof t)try{return t.toString()}catch(t){return'[function unknown]'}else{if(t instanceof Error)return t.name+': '+t.message;try{var e=JSON.stringify(t,v);return void 0===e?'["'+typeof t+'" failed to stringify]':e}catch(e){if('function'==typeof t.toString)try{return t.toString()}catch(t){}}}return'["'+typeof t+'" failed to stringify]'}}var u=o({maxDepth:10,maxStringLimit:100,maxArrayLimit:50,maxObjectKeysLimit:50});_e.default=u},49,[5,36]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n,u){var b,c=u.get,o=!1!==u.enumerable,f=!1!==u.writable,l=!1;function s(u){b=u,l=!0,Object.defineProperty(t,n,{value:u,configurable:!0,enumerable:o,writable:f})}Object.defineProperty(t,n,{get:function(){return l||(l=!0,s(c())),b},set:s,configurable:!0,enumerable:o})}},50,[]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('AccessibilityInfo');_e.default=t},51,[39]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('AccessibilityManager');_e.default=t},52,[39]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(c,s){'focus'===s&&t.default&&t.default.setAccessibilityFocus(c)}},53,[5,52]); -__d(function(g,r,i,a,m,e,d){'use strict';var t;t=r(d[0]),m.exports=t},54,[55]); -__d(function(e,n,t,r,l,a,i){"use strict";n(i[0]);var u=n(i[1]);function o(e,n,t,r,l,a,i,u,o){var s=Array.prototype.slice.call(arguments,3);try{n.apply(t,s)}catch(e){this.onError(e)}}var s=!1,c=null,d=!1,f=null,p={onError:function(e){s=!0,c=e}};function h(e,n,t,r,l,a,i,u,d){s=!1,c=null,o.apply(p,arguments)}function g(e,n,t,r,l,a,i,u,o){if(h.apply(this,arguments),s){if(!s)throw Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.");var p=c;s=!1,c=null,d||(d=!0,f=p)}}var m=Array.isArray,v=null,b=null,y=null;function S(e,n,t){var r=e.type||"unknown-event";e.currentTarget=y(t),g(r,n,void 0,e),e.currentTarget=null}function k(e){var n=e._dispatchListeners,t=e._dispatchInstances;if(m(n))throw Error("executeDirectDispatch(...): Invalid `event`.");return e.currentTarget=n?y(t):null,n=n?n(e):null,e.currentTarget=null,e._dispatchListeners=null,e._dispatchInstances=null,n}function w(){return!0}function _(){return!1}function T(e,n,t,r){for(var l in this.dispatchConfig=e,this._targetInst=n,this.nativeEvent=t,this._dispatchInstances=this._dispatchListeners=null,e=this.constructor.Interface)e.hasOwnProperty(l)&&((n=e[l])?this[l]=n(t):"target"===l?this.target=r:this[l]=t[l]);return this.isDefaultPrevented=(null!=t.defaultPrevented?t.defaultPrevented:!1===t.returnValue)?w:_,this.isPropagationStopped=_,this}function x(e,n,t,r){if(this.eventPool.length){var l=this.eventPool.pop();return this.call(l,e,n,t,r),l}return new this(e,n,t,r)}function P(e){if(!(e instanceof this))throw Error("Trying to release an event instance into a pool of a different type.");e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function R(e){e.getPooled=x,e.eventPool=[],e.release=P}n(i[2])(T.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){this.isPersistent=w},isPersistent:_,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=_,this._dispatchInstances=this._dispatchListeners=null}}),T.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},T.extend=function(e){function t(){}function r(){return l.apply(this,arguments)}var l=this;t.prototype=l.prototype;var a=new t;return n(i[2])(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=n(i[2])({},l.Interface,e),r.extend=l.extend,R(r),r},R(T);var E=T.extend({touchHistory:function(){return null}});function C(e){return"topTouchStart"===e}function N(e){return"topTouchMove"===e}var z=["topTouchStart"],I=["topTouchMove"],L=["topTouchCancel","topTouchEnd"],U=[],M={touchBank:U,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function F(e){return e.timeStamp||e.timestamp}function D(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function A(e){var n=D(e),t=U[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=F(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=F(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=F(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:F(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:F(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:F(e)},U[n]=t),M.mostRecentTimeStamp=F(e)}function Q(e){var n=U[D(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}function H(e){var n=U[D(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}var O,j={instrument:function(e){O=e},recordTouchTrack:function(e,n){if(null!=O&&O(e,n),N(e))n.changedTouches.forEach(Q);else if(C(e))n.changedTouches.forEach(A),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(H),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches))for(e=0;ei||(a=i),Ne(a,e,l)}}}),v=function(e){return we.get(e._nativeTag)||null},b=_e,y=function(e){var n=(e=e.stateNode)._nativeTag;if(void 0===n&&(n=(e=e.canonical)._nativeTag),!n)throw Error("All native instances should have a tag.");return e},re.injection.injectGlobalResponderHandler({onChange:function(e,t,r){null!==t?n(i[3]).UIManager.setJSResponder(t.stateNode._nativeTag,r):n(i[3]).UIManager.clearJSResponder()}});var ze=u.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ie=60103,Le=60106,Ue=60107,Me=60108,Fe=60114,De=60109,Ae=60110,Qe=60112,He=60113,Oe=60120,je=60115,Be=60116,Ve=60129,We=60130,Ye=60131,qe=60132;if("function"==typeof Symbol&&Symbol.for){var Xe=Symbol.for;Ie=Xe("react.element"),Le=Xe("react.portal"),Ue=Xe("react.fragment"),Me=Xe("react.strict_mode"),Fe=Xe("react.profiler"),De=Xe("react.provider"),Ae=Xe("react.context"),Qe=Xe("react.forward_ref"),He=Xe("react.suspense"),Oe=Xe("react.suspense_list"),je=Xe("react.memo"),Be=Xe("react.lazy"),Xe("react.scope"),Ve=Xe("react.debug_trace_mode"),We=Xe("react.offscreen"),Ye=Xe("react.legacy_hidden"),qe=Xe("react.cache")}var $e="function"==typeof Symbol&&Symbol.iterator;function Ge(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$e&&e[$e]||e["@@iterator"])?e:null}function Ke(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case Ue:return"Fragment";case Le:return"Portal";case Fe:return"Profiler";case Me:return"StrictMode";case He:return"Suspense";case Oe:return"SuspenseList";case qe:return"Cache"}if("object"==typeof e)switch(e.$$typeof){case Ae:return(e.displayName||"Context")+".Consumer";case De:return(e._context.displayName||"Context")+".Provider";case Qe:var n=e.render;return(e=e.displayName)||(e=""!==(e=n.displayName||n.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case je:return null!==(n=e.displayName||null)?n:Ke(e.type)||"Memo";case Be:n=e._payload,e=e._init;try{return Ke(e(n))}catch(e){}}return null}function Je(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=n.render).displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ke(n);case 23:return"LegacyHidden";case 8:return n===Me?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof n)return n.displayName||n.name||null;if("string"==typeof n)return n}return null}function Ze(e){var n=e,t=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do{0!=(2050&(n=e).flags)&&(t=n.return),e=n.return}while(e)}return 3===n.tag?t:null}function en(e){if(Ze(e)!==e)throw Error("Unable to find node on an unmounted component.")}function nn(e){var n=e.alternate;if(!n){if(null===(n=Ze(e)))throw Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var t=e,r=n;;){var l=t.return;if(null===l)break;var a=l.alternate;if(null===a){if(null!==(r=l.return)){t=r;continue}break}if(l.child===a.child){for(a=l.child;a;){if(a===t)return en(l),e;if(a===r)return en(l),n;a=a.sibling}throw Error("Unable to find node on an unmounted component.")}if(t.return!==r.return)t=l,r=a;else{for(var i=!1,u=l.child;u;){if(u===t){i=!0,t=l,r=a;break}if(u===r){i=!0,r=l,t=a;break}u=u.sibling}if(!i){for(u=a.child;u;){if(u===t){i=!0,t=a,r=l;break}if(u===r){i=!0,r=a,t=l;break}u=u.sibling}if(!i)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(t.alternate!==r)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(3!==t.tag)throw Error("Unable to find node on an unmounted component.");return t.stateNode.current===t?e:n}function tn(e){return null!==(e=nn(e))?rn(e):null}function rn(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var n=rn(e);if(null!==n)return n;e=e.sibling}return null}var ln={},an=null,un=0,on={unsafelyIgnoreFunctions:!0};function sn(e,t){return"object"!=typeof t||null===t||n(i[3]).deepDiffer(e,t,on)}function cn(e,n,t){if(m(n))for(var r=n.length;r--&&0=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function Rn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-Nn(n)]=t}function En(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0Xn||(e.current=qn[Xn],qn[Xn]=null,Xn--)}function Kn(e,n){qn[++Xn]=e.current,e.current=n}var Jn={},Zn=$n(Jn),et=$n(!1),nt=Jn;function tt(e,n){var t=e.type.contextTypes;if(!t)return Jn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function rt(e){return null!==(e=e.childContextTypes)&&void 0!==e}function lt(){Gn(et),Gn(Zn)}function at(e,n,t){if(Zn.current!==Jn)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Kn(Zn,n),Kn(et,t)}function it(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in t))throw Error((Je(e)||"Unknown")+'.getChildContext(): key "'+a+'" is not defined in childContextTypes.');return n(i[2])({},r,l)}function ut(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Jn,nt=Zn.current,Kn(Zn,e),Kn(et,et.current),!0}function ot(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=it(e,n,nt),r.__reactInternalMemoizedMergedChildContext=e,Gn(et),Gn(Zn),Kn(Zn,e)):Gn(et),Kn(et,t)}var st=null,ct=!1,dt=!1;function ft(){if(!dt&&null!==st){dt=!0;var e=0,t=Ln;try{var r=st;for(Ln=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function(e,r,a,u){var o="object"==typeof a&&null!==a&&a.type===Ue&&null===a.key;if(o&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case Ie:e:{var s=a.key;for(o=r;null!==o;){if(o.key===s){if((s=a.type)===Ue){if(7===o.tag){t(e,o.sibling),(r=l(o,a.props.children)).return=e,e=r;break e}}else if(o.elementType===s){t(e,o.sibling),(r=l(o,a.props)).ref=Wt(e,o,a),r.return=e,e=r;break e}t(e,o);break}n(e,o),o=o.sibling}a.type===Ue?((r=Ka(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=Ga(a.type,a.key,a.props,null,e.mode,u)).ref=Wt(e,r,a),u.return=e,e=u)}return i(e);case Le:e:{for(o=a.key;null!==r;){if(r.key===o){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ei(a,e.mode,u)).return=e,e=r}return i(e)}if(m(a))return h(e,r,a,u);if(Ge(a))return g(e,r,a,u);Yt(e,a)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=Za(a,e.mode,u)).return=e,e=r),i(e);if(void 0===a&&!o)switch(e.tag){case 1:case 0:case 11:case 15:throw Error((Je(e)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var Xt=qt(!0),$t=qt(!1),Gt={},Kt=$n(Gt),Jt=$n(Gt),Zt=$n(Gt);function er(e){if(e===Gt)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function nr(e,n){Kn(Zt,n),Kn(Jt,e),Kn(Kt,Gt),Gn(Kt),Kn(Kt,{isInAParentText:!1})}function tr(){Gn(Kt),Gn(Jt),Gn(Zt)}function rr(e){er(Zt.current);var n=er(Kt.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(Kn(Jt,e),Kn(Kt,t))}function lr(e){Jt.current===e&&(Gn(Kt),Gn(Jt))}var ar=$n(0);function ir(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||Mn()||Mn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var ur=[];function or(){for(var e=0;ea))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");a+=1,hr=pr=null,n.updateQueue=null,sr.current=Yr,e=t(r,l)}while(mr)}if(sr.current=Br,n=null!==pr&&null!==pr.next,dr=0,hr=pr=fr=null,gr=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===hr?fr.memoizedState=hr=e:hr=hr.next=e,hr}function kr(){if(null===pr){var e=fr.alternate;e=null!==e?e.memoizedState:null}else e=pr.next;var n=null===hr?fr.memoizedState:hr.next;if(null!==n)hr=n,pr=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(pr=e).memoizedState,baseState:pr.baseState,baseQueue:pr.baseQueue,queue:pr.queue,next:null},null===hr?fr.memoizedState=hr=e:hr=hr.next=e}return hr}function wr(e,n){return"function"==typeof n?n(e):n}function _r(e){var n=kr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=pr,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var i=l.next;l.next=a.next,a.next=i}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var u=i=null,o=null,s=a;do{var c=s.lane;if((dr&c)===c)null!==o&&(o=o.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===o?(u=o=d,i=r):o=o.next=d,fr.lanes|=c,ia|=c}s=s.next}while(null!==s&&s!==a);null===o?i=r:o.next=u,ht(r,n.memoizedState)||(Zr=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=o,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{a=l.lane,fr.lanes|=a,ia|=a,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Tr(e){var n=kr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var i=l=l.next;do{a=e(a,i.action),i=i.next}while(i!==l);ht(a,n.memoizedState)||(Zr=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function xr(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionPrimary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(dr&e)===e)&&(n._workInProgressVersionPrimary=r,ur.push(n))),e)return t(n._source);throw ur.push(n),Error("Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.")}function Pr(e,n,t,r){var l=Zl;if(null===l)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=n._getVersion,i=a(n._source),u=sr.current,o=u.useState(function(){return xr(l,n,t)}),s=o[1],c=o[0];o=hr;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,h=d.source;d=d.subscribe;var g=fr;return e.memoizedState={refs:f,source:n,subscribe:r},u.useEffect(function(){f.getSnapshot=t,f.setSnapshot=s;var e=a(n._source);ht(i,e)||(e=t(n._source),ht(c,e)||(s(e),e=wa(g),l.mutableReadLanes|=e&l.pendingLanes),Cn(l,l.mutableReadLanes))},[t,n,r]),u.useEffect(function(){return r(n._source,function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=wa(g);l.mutableReadLanes|=r&l.pendingLanes}catch(e){t(function(){throw e})}})},[n,r]),ht(p,t)&&ht(h,n)&&ht(d,r)||((e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:c}).dispatch=s=jr.bind(null,fr,e),o.queue=e,o.baseQueue=null,c=xr(l,n,t),o.memoizedState=o.baseState=c),c}function Rr(e,n,t){return Pr(kr(),e,n,t)}function Er(e){var n=Sr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:wr,lastRenderedState:e}).dispatch=jr.bind(null,fr,e),[n.memoizedState,e]}function Cr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=fr.updateQueue)?(n={lastEffect:null},fr.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Nr(){return kr().memoizedState}function zr(e,n,t,r){var l=Sr();fr.flags|=e,l.memoizedState=Cr(1|n,t,void 0,void 0===r?null:r)}function Ir(e,n,t,r){var l=kr();r=void 0===r?null:r;var a=void 0;if(null!==pr){var i=pr.memoizedState;if(a=i.destroy,null!==r&&br(r,i.deps))return void(l.memoizedState=Cr(n,t,a,r))}fr.flags|=e,l.memoizedState=Cr(1|n,t,a,r)}function Lr(e,n){return zr(1049600,4,e,n)}function Ur(e,n){return Ir(1024,4,e,n)}function Mr(e,n){return Ir(4,2,e,n)}function Fr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function Dr(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Ir(4,2,Fr.bind(null,n,e),t)}function Ar(){}function Qr(e,n){var t=kr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&br(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Hr(e,n){var t=kr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&br(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Or(e,n){var t=Ln;Ln=0!==t&&4>t?t:4,e(!0);var r=cr.transition;cr.transition=1;try{e(!1),n()}finally{Ln=t,cr.transition=r}}function jr(e,n,t){var r=ka(),l=wa(e),a={lane:l,action:t,eagerReducer:null,eagerState:null,next:null},i=e.alternate;if(e===fr||null!==i&&i===fr)mr=gr=!0,null===(l=n.pending)?a.next=a:(a.next=l.next,l.next=a),n.pending=a;else{if(null!==Zl&&0!=(1&e.mode)&&0==(8&Jl)){var u=n.interleaved;null===u?(a.next=a,null===Et?Et=[n]:Et.push(n)):(a.next=u.next,u.next=a),n.interleaved=a}else null===(u=n.pending)?a.next=a:(a.next=u.next,u.next=a),n.pending=a;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var o=n.lastRenderedState,s=i(o,t);if(a.eagerReducer=i,a.eagerState=s,ht(s,o))return}catch(e){}a=_a(e,l,r),0!=(4194240&l)&&null!==a&&(e=n.lanes,l|=e&=a.pendingLanes,n.lanes=l,Cn(a,l))}}var Br={readContext:Rt,useCallback:vr,useContext:vr,useEffect:vr,useImperativeHandle:vr,useLayoutEffect:vr,useMemo:vr,useReducer:vr,useRef:vr,useState:vr,useDebugValue:vr,useDeferredValue:vr,useTransition:vr,useMutableSource:vr,useOpaqueIdentifier:vr,unstable_isNewReconciler:!1},Vr={readContext:Rt,useCallback:function(e,n){return Sr().memoizedState=[e,void 0===n?null:n],e},useContext:Rt,useEffect:Lr,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,zr(4,2,Fr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return zr(4,2,e,n)},useMemo:function(e,n){var t=Sr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Sr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=jr.bind(null,fr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Sr().memoizedState=e},useState:Er,useDebugValue:Ar,useDeferredValue:function(e){var n=Er(e),t=n[0],r=n[1];return Lr(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){var e=Er(!1),n=e[0];return e=Or.bind(null,e[1]),Sr().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){var r=Sr();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},Pr(r,e,n,t)},useOpaqueIdentifier:function(){throw Error("Not yet implemented")},unstable_isNewReconciler:!1},Wr={readContext:Rt,useCallback:Qr,useContext:Rt,useEffect:Ur,useImperativeHandle:Dr,useLayoutEffect:Mr,useMemo:Hr,useReducer:_r,useRef:Nr,useState:function(){return _r(wr)},useDebugValue:Ar,useDeferredValue:function(e){var n=_r(wr),t=n[0],r=n[1];return Ur(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){return[_r(wr)[0],kr().memoizedState]},useMutableSource:Rr,useOpaqueIdentifier:function(){return _r(wr)[0]},unstable_isNewReconciler:!1},Yr={readContext:Rt,useCallback:Qr,useContext:Rt,useEffect:Ur,useImperativeHandle:Dr,useLayoutEffect:Mr,useMemo:Hr,useReducer:Tr,useRef:Nr,useState:function(){return Tr(wr)},useDebugValue:Ar,useDeferredValue:function(e){var n=Tr(wr),t=n[0],r=n[1];return Ur(function(){var n=cr.transition;cr.transition=1;try{r(e)}finally{cr.transition=n}},[e]),t},useTransition:function(){return[Tr(wr)[0],kr().memoizedState]},useMutableSource:Rr,useOpaqueIdentifier:function(){return Tr(wr)[0]},unstable_isNewReconciler:!1};function qr(e,n){return{value:e,source:n,stack:vt(n)}}if("function"!=typeof n(i[3]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function Xr(e,t){try{!1!==n(i[3]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var $r="function"==typeof WeakMap?WeakMap:Map;function Gr(e,n,t){(t=It(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){da||(da=!0,fa=r),Xr(e,n)},t}function Kr(e,n,t){(t=It(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return Xr(e,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===pa?pa=new Set([this]):pa.add(this),Xr(e,n));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}var Jr=ze.ReactCurrentOwner,Zr=!1;function el(e,n,t,r){n.child=null===e?$t(n,null,t,r):Xt(n,e.child,t,r)}function nl(e,n,t,r,l){t=t.render;var a=n.ref;return Pt(n,l),r=yr(e,n,t,r,a,l),null===e||Zr?(n.flags|=1,el(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,_l(e,n,l))}function tl(e,n,t,r,l,a){if(null===e){var i=t.type;return"function"!=typeof i||qa(i)||void 0!==i.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=Ga(t.type,null,r,n,n.mode,a)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,rl(e,n,i,r,l,a))}return i=e.child,0==(l&a)&&(l=i.memoizedProps,(t=null!==(t=t.compare)?t:gt)(l,r)&&e.ref===n.ref)?_l(e,n,a):(n.flags|=1,(e=$a(i,r)).ref=n.ref,e.return=n,n.child=e)}function rl(e,n,t,r,l,a){if(null!==e&>(e.memoizedProps,r)&&e.ref===n.ref){if(Zr=!1,0==(a&l))return n.lanes=e.lanes,_l(e,n,a);0!=(32768&e.flags)&&(Zr=!0)}return il(e,n,t,r,a)}function ll(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null},Kn(ra,ta),ta|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null},n.updateQueue=null,Kn(ra,ta),ta|=e,null;n.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:t,Kn(ra,ta),ta|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,Kn(ra,ta),ta|=r;return el(e,n,l,t),n.child}function al(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=256)}function il(e,n,t,r,l){var a=rt(t)?nt:Zn.current;return a=tt(n,a),Pt(n,l),t=yr(e,n,t,r,a,l),null===e||Zr?(n.flags|=1,el(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,_l(e,n,l))}function ul(e,n,t,r,l){if(rt(t)){var a=!0;ut(n)}else a=!1;if(Pt(n,l),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),jt(n,t,r),Vt(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Rt(s):s=tt(n,s=rt(t)?nt:Zn.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&Bt(n,i,r,s),Ct=!1;var f=n.memoizedState;i.state=f,Ft(n,r,i,l),o=n.memoizedState,u!==r||f!==o||et.current||Ct?("function"==typeof c&&(Qt(n,t,c,r),o=n.memoizedState),(u=Ct||Ot(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,zt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:bt(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Rt(o):o=tt(n,o=rt(t)?nt:Zn.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&Bt(n,i,r,o),Ct=!1,f=n.memoizedState,i.state=f,Ft(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||et.current||Ct?("function"==typeof p&&(Qt(n,t,p,r),h=n.memoizedState),(s=Ct||Ot(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=512)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),r=!1)}return ol(e,n,t,r,a,l)}function ol(e,n,t,r,l,a){al(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&ot(n,t,!1),_l(e,n,a);r=n.stateNode,Jr.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=Xt(n,e.child,null,a),n.child=Xt(n,null,u,a)):el(e,n,u,a),n.memoizedState=r.state,l&&ot(n,t,!0),n.child}function sl(e){var n=e.stateNode;n.pendingContext?at(0,n.pendingContext,n.pendingContext!==n.context):n.context&&at(0,n.context,!1),nr(e,n.containerInfo)}var cl,dl,fl,pl,hl={dehydrated:null,retryLane:0};function gl(e){return{baseLanes:e,cachePool:null}}function ml(e,n,t){var r,l=n.pendingProps,a=ar.current,i=!1;return(r=0!=(128&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),Kn(ar,1&a),null===e?(e=l.children,a=l.fallback,i?(e=vl(n,e,a,t),n.child.memoizedState=gl(t),n.memoizedState=hl,e):"number"==typeof l.unstable_expectedLoadTime?(e=vl(n,e,a,t),n.child.memoizedState=gl(t),n.memoizedState=hl,n.lanes=4194304,e):((t=Ja({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,i?(l=yl(e,n,l.children,l.fallback,t),i=n.child,a=e.child.memoizedState,i.memoizedState=null===a?gl(t):{baseLanes:a.baseLanes|t,cachePool:null},i.childLanes=e.childLanes&~t,n.memoizedState=hl,l):(t=bl(e,n,l.children,t),n.memoizedState=null,t))}function vl(e,n,t,r){var l=e.mode,a=e.child;return n={mode:"hidden",children:n},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=n):a=Ja(n,l,0,null),t=Ka(t,l,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,t}function bl(e,n,t,r){var l=e.child;return e=l.sibling,t=$a(l,{mode:"visible",children:t}),0==(1&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t}function yl(e,n,t,r,l){var a=n.mode,i=(e=e.child).sibling,u={mode:"hidden",children:t};return 0==(1&a)&&n.child!==e?((t=n.child).childLanes=0,t.pendingProps=u,n.deletions=null):(t=$a(e,u)).subtreeFlags=1835008&e.subtreeFlags,null!==i?r=$a(i,r):(r=Ka(r,a,l,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function Sl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),xt(e.return,n)}function kl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function wl(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(el(e,n,r.children,t),0!=(2&(r=ar.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Sl(e,t);else if(19===e.tag)Sl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Kn(ar,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===ir(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),kl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===ir(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}kl(n,!0,t,null,a);break;case"together":kl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function _l(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),ia|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=$a(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=$a(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Tl(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function xl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=1835008&l.subtreeFlags,r|=1835008&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Pl(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xl(t),null;case 1:return rt(t.type)&<(),xl(t),null;case 3:return l=t.stateNode,tr(),Gn(et),Gn(Zn),or(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||l.hydrate||(t.flags|=512),dl(e,t),xl(t),null;case 5:lr(t),r=er(Zt.current);var a=t.type;if(null!==e&&null!=t.stateNode)fl(e,t,a,l,r),e.ref!==t.ref&&(t.flags|=256);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return xl(t),null}er(Kt.current),e=Qn(),a=Fn(a);var u=hn(null,ln,l,a.validAttributes);n(i[3]).UIManager.createView(e,a.uiViewClassName,r,u),r=new mn(e,a,t),ke.set(e,t),we.set(e,l),cl(r,t,!1,!1),t.stateNode=r,On(r)&&(t.flags|=4),null!==t.ref&&(t.flags|=256)}return xl(t),null;case 6:if(e&&null!=t.stateNode)pl(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=er(Zt.current),!er(Kt.current).isInAParentText)throw Error("Text strings must be rendered within a component.");r=Qn(),n(i[3]).UIManager.createView(r,"RCTRawText",e,{text:l}),ke.set(r,t),t.stateNode=r}return xl(t),null;case 13:return Gn(ar),l=t.memoizedState,0!=(128&t.flags)?(t.lanes=r,t):(l=null!==l,r=!1,null!==e&&(r=null!==e.memoizedState),l&&!r&&0!=(1&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&ar.current)?0===la&&(la=3):(0!==la&&3!==la||(la=4),null===Zl||0==(268435455&ia)&&0==(268435455&ua)||Ra(Zl,na))),(l||r)&&(t.flags|=4),xl(t),null);case 4:return tr(),dl(e,t),xl(t),null;case 10:return Tt(t.type._context),xl(t),null;case 17:return rt(t.type)&<(),xl(t),null;case 19:if(Gn(ar),null===(a=t.memoizedState))return xl(t),null;if(l=0!=(128&t.flags),null===(u=a.rendering))if(l)Tl(a,!1);else{if(0!==la||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ir(e))){for(t.flags|=128,Tl(a,!1),null!==(e=u.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=r,l=t.child;null!==l;)a=e,(r=l).flags&=1835010,null===(u=r.alternate)?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),l=l.sibling;return Kn(ar,1&ar.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[4]).unstable_now()>ca&&(t.flags|=128,l=!0,Tl(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=ir(u))){if(t.flags|=128,l=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Tl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return xl(t),null}else 2*n(i[4]).unstable_now()-a.renderingStartTime>ca&&1073741824!==r&&(t.flags|=128,l=!0,Tl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[4]).unstable_now(),t.sibling=null,e=ar.current,Kn(ar,l?1&e|2:1&e),t):(xl(t),null);case 22:case 23:return Ca(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),r&&0==(1073741824&ta)&&0!=(1&t.mode)||xl(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Rl(e){switch(e.tag){case 1:rt(e.type)&<();var n=e.flags;return 16384&n?(e.flags=-16385&n|128,e):null;case 3:if(tr(),Gn(et),Gn(Zn),or(),0!=(128&(n=e.flags)))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-16385&n|128,e;case 5:return lr(e),null;case 13:return Gn(ar),16384&(n=e.flags)?(e.flags=-16385&n|128,e):null;case 19:return Gn(ar),null;case 4:return tr(),null;case 10:return Tt(e.type._context),null;case 22:case 23:return Ca(),null;case 24:default:return null}}cl=function(e,n){for(var t=n.child;null!==t;){if(5===t.tag||6===t.tag)e._children.push(t.stateNode);else if(4!==t.tag&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===n)break;for(;null===t.sibling;){if(null===t.return||t.return===n)return;t=t.return}t.sibling.return=t.return,t=t.sibling}},dl=function(){},fl=function(e,n,t,r){e.memoizedProps!==r&&(er(Kt.current),n.updateQueue=Dn)&&(n.flags|=4)},pl=function(e,n,t,r){t!==r&&(n.flags|=4)};var El="function"==typeof WeakSet?WeakSet:Set,Cl=null;function Nl(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){ja(e,n,t)}else t.current=null}var zl=!1;function Il(e,n){for(Cl=n;null!==Cl;)if(n=(e=Cl).child,0!=(516&e.subtreeFlags)&&null!==n)n.return=e,Cl=n;else for(;null!==Cl;){e=Cl;try{var t=e.alternate;if(0!=(512&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:bt(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){ja(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,Cl=n;break}Cl=e.return}return t=zl,zl=!1,t}function Ll(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;if(l.destroy=void 0,void 0!==a){var i=n,u=t;try{a()}catch(e){ja(i,u,e)}}}l=l.next}while(l!==r)}}function Ul(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Ml(e,t){for(var r=null,l=e;;){if(5===l.tag){if(null===r){r=l;var a=l.stateNode;if(t){var u=a.viewConfig,o=hn(null,ln,{style:{display:"none"}},u.validAttributes);n(i[3]).UIManager.updateView(a._nativeTag,u.uiViewClassName,o)}else{a=l.stateNode,o=l.memoizedProps,u=a.viewConfig,o=hn(null,n(i[2])({},o,{style:[o.style,{display:"none"}]}),o,u.validAttributes),n(i[3]).UIManager.updateView(a._nativeTag,u.uiViewClassName,o)}}}else if(6===l.tag){if(null===r)throw Error("Not yet implemented.")}else if((22!==l.tag&&23!==l.tag||null===l.memoizedState||l===e)&&null!==l.child){l.child.return=l,l=l.child;continue}if(l===e)break;for(;null===l.sibling;){if(null===l.return||l.return===e)return;r===l&&(r=null),l=l.return}r===l&&(r=null),l.sibling.return=l.return,l=l.sibling}}function Fl(e,n,t){if(bn&&"function"==typeof bn.onCommitFiberUnmount)try{bn.onCommitFiberUnmount(vn,n)}catch(e){}switch(n.tag){case 0:case 11:case 14:case 15:if(null!==(e=n.updateQueue)&&null!==(e=e.lastEffect)){var r=e=e.next;do{var l=r,a=l.destroy;if(l=l.tag,void 0!==a&&0!=(2&l)){l=n;var i=t;try{a()}catch(e){ja(l,i,e)}}r=r.next}while(r!==e)}break;case 1:if(Nl(n,t),"function"==typeof(e=n.stateNode).componentWillUnmount)try{e.props=n.memoizedProps,e.state=n.memoizedState,e.componentWillUnmount()}catch(e){ja(n,t,e)}break;case 5:Nl(n,t);break;case 4:jl(e,n,t)}}function Dl(e){var n=e.alternate;null!==n&&(e.alternate=null,Dl(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Al(e){return 5===e.tag||3===e.tag||4===e.tag}function Ql(e){e:{for(var n=e.return;null!==n;){if(Al(n))break e;n=n.return}throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}var t=n;switch(n=t.stateNode,t.tag){case 5:var r=!1;break;case 3:case 4:n=n.containerInfo,r=!0;break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}32&t.flags&&(t.flags&=-33);e:n:for(t=e;;){for(;null===t.sibling;){if(null===t.return||Al(t.return)){t=null;break e}t=t.return}for(t.sibling.return=t.return,t=t.sibling;5!==t.tag&&6!==t.tag&&18!==t.tag;){if(2&t.flags)continue n;if(null===t.child||4===t.tag)continue n;t.child.return=t,t=t.child}if(!(2&t.flags)){t=t.stateNode;break e}}r?Hl(e,t,n):Ol(e,t,n)}function Hl(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){if("number"==typeof r)throw Error("Container does not support insertBefore operation")}else n(i[3]).UIManager.setChildren(r,["number"==typeof e?e:e._nativeTag]);else if(4!==l&&null!==(e=e.child))for(Hl(e,t,r),e=e.sibling;null!==e;)Hl(e,t,r),e=e.sibling}function Ol(e,t,r){var l=e.tag;if(5===l||6===l)if(e=e.stateNode,t){var a=(l=r._children).indexOf(e);0<=a?(l.splice(a,1),t=l.indexOf(t),l.splice(t,0,e),n(i[3]).UIManager.manageChildren(r._nativeTag,[a],[t],[],[],[])):(t=l.indexOf(t),l.splice(t,0,e),n(i[3]).UIManager.manageChildren(r._nativeTag,[],[],["number"==typeof e?e:e._nativeTag],[t],[]))}else t="number"==typeof e?e:e._nativeTag,0<=(a=(l=r._children).indexOf(e))?(l.splice(a,1),l.push(e),n(i[3]).UIManager.manageChildren(r._nativeTag,[a],[l.length-1],[],[],[])):(l.push(e),n(i[3]).UIManager.manageChildren(r._nativeTag,[],[],[t],[l.length-1],[]));else if(4!==l&&null!==(e=e.child))for(Ol(e,t,r),e=e.sibling;null!==e;)Ol(e,t,r),e=e.sibling}function jl(e,t,r){for(var l,a,u=t,o=!1;;){if(!o){o=u.return;e:for(;;){if(null===o)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(l=o.stateNode,o.tag){case 5:a=!1;break e;case 3:case 4:l=l.containerInfo,a=!0;break e}o=o.return}o=!0}if(5===u.tag||6===u.tag){e:for(var s=e,c=u,d=r,f=c;;)if(Fl(s,f,d),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===c)break e;for(;null===f.sibling;){if(null===f.return||f.return===c)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}a?(s=l,Hn(u.stateNode),n(i[3]).UIManager.manageChildren(s,[],[],[],[],[0])):(s=l,Hn(d=u.stateNode),d=(c=s._children).indexOf(d),c.splice(d,1),n(i[3]).UIManager.manageChildren(s._nativeTag,[],[],[],[],[d]))}else if(4===u.tag){if(null!==u.child){l=u.stateNode.containerInfo,a=!0,u.child.return=u,u=u.child;continue}}else if(Fl(e,u,r),null!==u.child){u.child.return=u,u=u.child;continue}if(u===t)break;for(;null===u.sibling;){if(null===u.return||u.return===t)return;4===(u=u.return).tag&&(o=!1)}u.sibling.return=u.return,u=u.sibling}}function Bl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return void Ll(3,t,t.return);case 1:return;case 5:var r=t.stateNode;if(null!=r){var l=t.memoizedProps;e=null!==e?e.memoizedProps:l;var a=t.updateQueue;t.updateQueue=null,null!==a&&(t=r.viewConfig,we.set(r._nativeTag,l),null!=(l=hn(null,e,l,t.validAttributes))&&n(i[3]).UIManager.updateView(r._nativeTag,t.uiViewClassName,l))}return;case 6:if(null===t.stateNode)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");return void n(i[3]).UIManager.updateView(t.stateNode,"RCTRawText",{text:t.memoizedProps});case 3:case 12:return;case 13:return null!==t.memoizedState&&(sa=n(i[4]).unstable_now(),Ml(t.child,!0)),void Vl(t);case 19:return void Vl(t);case 17:return;case 22:case 23:return void Ml(t,null!==t.memoizedState)}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}function Vl(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new El),n.forEach(function(n){var r=Va.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Wl(e,n){for(Cl=n;null!==Cl;){var t=(n=Cl).deletions;if(null!==t)for(var r=0;ra&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=n(i[4]).unstable_now()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Xl(l/1960))-l)){e.timeoutHandle=jn(Aa.bind(null,e),l);break}Aa(e);break;case 5:Aa(e);break;default:throw Error("Unknown root exit status.")}}return xa(e,n(i[4]).unstable_now()),e.callbackNode===r?Pa.bind(null,e):null}function Ra(e,n){for(n&=~oa,n&=~ua,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==la&&(la=2),o=qr(o,u),p=i;do{switch(p.tag){case 3:a=o,p.flags|=16384,n&=-n,p.lanes|=n,Mt(p,Gr(p,a,n));break e;case 1:a=o;var w=p.type,_=p.stateNode;if(0==(128&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==_&&"function"==typeof _.componentDidCatch&&(null===pa||!pa.has(_)))){p.flags|=16384,n&=-n,p.lanes|=n,Mt(p,Kr(p,a,n));break e}}p=p.return}while(null!==p)}Da(t)}catch(e){n=e,ea===t&&null!==t&&(ea=t=t.return);continue}break}}function Ia(){var e=$l.current;return $l.current=Br,null===e?Br:e}function La(e,n){var t=Jl;Jl|=8;var r=Ia();for(Zl===e&&na===n||Na(e,n);;)try{Ua();break}catch(n){za(e,n)}if(_t(),Jl=t,$l.current=r,null!==ea)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Zl=null,na=0,la}function Ua(){for(;null!==ea;)Fa(ea)}function Ma(){for(;null!==ea&&!n(i[4]).unstable_shouldYield();)Fa(ea)}function Fa(e){var n=ql(e.alternate,e,ta);e.memoizedProps=e.pendingProps,null===n?Da(e):ea=n,Gl.current=null}function Da(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(8192&n.flags)){if(null!==(t=Pl(t,n,ta)))return void(ea=t)}else{if(null!==(t=Rl(n)))return t.flags&=8191,void(ea=t);null!==e&&(e.flags|=8192,e.subtreeFlags=0,e.deletions=null)}if(null!==(n=n.sibling))return void(ea=n);ea=n=e}while(null!==n);0===la&&(la=5)}function Aa(e){var n=Ln,t=Kl.transition;try{Kl.transition=0,Ln=1,Qa(e,n)}finally{Kl.transition=t,Ln=n}return null}function Qa(e,t){do{Ha()}while(null!==ga);if(0!=(24&Jl))throw Error("Should not already be working.");var r=e.finishedWork,l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(En(e,a),e===Zl&&(ea=Zl=null,na=0),0==(1040&r.subtreeFlags)&&0==(1040&r.flags)||ha||(ha=!0,n(i[4]).unstable_scheduleCallback(n(i[4]).unstable_NormalPriority,function(){return Ha(),null})),a=0!=(8054&r.flags),0!=(8054&r.subtreeFlags)||a){a=Kl.transition,Kl.transition=0;var u=Ln;Ln=1;var o=Jl;Jl|=16,Gl.current=null,Il(e,r),Wl(e,r),e.current=r,Yl(r),n(i[4]).unstable_requestPaint(),Jl=o,Ln=u,Kl.transition=a}else e.current=r;if(ha&&(ha=!1,ga=e,ma=l),0===(a=e.pendingLanes)&&(pa=null),0!=(1&a)?e===ba?va++:(va=0,ba=e):va=0,yn(r.stateNode),xa(e,n(i[4]).unstable_now()),da)throw da=!1,e=fa,fa=null,e;return 0!=(4&Jl)?null:(0!=(1&ma)&&0!==e.tag&&Ha(),ft(),null)}function Ha(){if(null!==ga){var e=Un(ma),n=Kl.transition,t=Ln;try{if(Kl.transition=0,Ln=16>e?16:e,null===ga)var r=!1;else{if(e=ga,ga=null,ma=0,0!=(24&Jl))throw Error("Cannot flush passive effects while already rendering.");var l=Jl;for(Jl|=16,Cl=e.current;null!==Cl;){var a=Cl,i=a.child;if(0!=(16&Cl.flags)){var u=a.deletions;if(null!==u){for(var o=0;on(i[4]).unstable_now()-sa?Na(e,0):oa|=r),xa(e,t)}function Va(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0==(1&e.mode)?n=1:(n=kn,0==(130023424&(kn<<=1))&&(kn=4194304))),t=ka(),null!==(e=Ta(e,n))&&(Rn(e,n,t),xa(e,t))}function Wa(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ya(e,n,t,r){return new Wa(e,n,t,r)}function qa(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Xa(e){if("function"==typeof e)return qa(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Qe)return 11;if(e===je)return 14}return 2}function $a(e,n){var t=e.alternate;return null===t?((t=Ya(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1835008&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function Ga(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)qa(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case Ue:return Ka(t.children,l,a,n);case Ve:i=8,l|=4;break;case Me:i=8,l|=8;break;case Fe:return(e=Ya(12,t,n,2|l)).elementType=Fe,e.lanes=a,e;case He:return(e=Ya(13,t,n,l)).elementType=He,e.lanes=a,e;case Oe:return(e=Ya(19,t,n,l)).elementType=Oe,e.lanes=a,e;case We:return Ja(t,l,a,n);case Ye:return(e=Ya(23,t,n,l)).elementType=Ye,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case De:i=10;break e;case Ae:i=9;break e;case Qe:i=11;break e;case je:i=14;break e;case Be:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Ya(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function Ka(e,n,t,r){return(e=Ya(7,e,r,n)).lanes=t,e}function Ja(e,n,t,r){return(e=Ya(22,e,r,n)).elementType=We,e.lanes=t,e}function Za(e,n,t){return(e=Ya(6,e,null,n)).lanes=t,e}function ei(e,n,t){return(n=Ya(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ni(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=Pn(0),this.expirationTimes=Pn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Pn(0)}function ti(e,n,t){var r=3=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return o(t,n);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?o(t,n):void 0}}function o(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,u=new Array(n);o|\/|[a-z]:\\|\\\\).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,u=/\((\S*)(?::(\d+))(?::(\d+))\)/;function t(t){var o=l.exec(t);if(!o)return null;var c=o[2]&&0===o[2].indexOf('native'),s=o[2]&&0===o[2].indexOf('eval'),v=u.exec(o[2]);return s&&null!=v&&(o[2]=v[1],o[3]=v[2],o[4]=v[3]),{file:c?null:o[2],methodName:o[1]||n,arguments:c?[o[2]]:[],lineNumber:o[3]?+o[3]:null,column:o[4]?+o[4]:null}}var o=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i;function c(l){var u=o.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}var s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,v=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function f(l){var u=s.exec(l);if(!u)return null;var t=u[3]&&u[3].indexOf(' > eval')>-1,o=v.exec(u[3]);return t&&null!=o&&(u[3]=o[1],u[4]=o[2],u[5]=null),{file:u[3],methodName:u[1]||n,arguments:u[2]?u[2].split(','):[],lineNumber:u[4]?+u[4]:null,column:u[5]?+u[5]:null}}var b=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?):(\d+)(?::(\d+))?\s*$/i;function p(l){var u=b.exec(l);return u?{file:u[3],methodName:u[1]||n,arguments:[],lineNumber:+u[4],column:u[5]?+u[5]:null}:null}var x=/^\s*at (?:((?:\[object object\])?[^\\/]+(?: \[as \S+\])?) )?\(?(.*?):(\d+)(?::(\d+))?\)?\s*$/i;function h(l){var u=x.exec(l);return u?{file:u[2],methodName:u[1]||n,arguments:[],lineNumber:+u[3],column:u[4]?+u[4]:null}:null}e.parse=function(n){return n.split('\n').reduce(function(n,l){var u=t(l)||c(l)||f(l)||h(l)||p(l);return u&&n.push(u),n},[])}},68,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';var t=/^ {4}at (.+?)(?: \((native)\)?| \((address at )?(.*?):(\d+):(\d+)\))$/,n=/^ {4}... skipping (\d+) frames$/;function s(s){var i=s.match(t);if(i)return{type:'FRAME',functionName:i[1],location:'native'===i[2]?{type:'NATIVE'}:'address at '===i[3]?{type:'BYTECODE',sourceUrl:i[4],line1Based:Number.parseInt(i[5],10),virtualOffset0Based:Number.parseInt(i[6],10)}:{type:'SOURCE',sourceUrl:i[4],line1Based:Number.parseInt(i[5],10),column1Based:Number.parseInt(i[6],10)}};var u=s.match(n);return u?{type:'SKIPPED',count:Number.parseInt(u[1],10)}:void 0}m.exports=function(t){for(var n=t.split(/\n/),i=[],u=-1,p=0;p-1}m.exports={isNativeFunction:t,hasNativeConstructor:function(n,o){var c=Object.getPrototypeOf(n).constructor;return c.name===o&&t(c)}}},79,[]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])();m.exports=t;try{regeneratorRuntime=t}catch(n){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},80,[81]); -__d(function(_g,_r,_i,_a,m,_e,_d){function t(){"use strict";m.exports=t=function(){return e},m.exports.__esModule=!0,m.exports.default=m.exports;var r,e={},n=Object.prototype,o=n.hasOwnProperty,i=Object.defineProperty||function(t,r,e){t[r]=e.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",h=a.toStringTag||"@@toStringTag";function l(t,r,e){return Object.defineProperty(t,r,{value:e,enumerable:!0,configurable:!0,writable:!0}),t[r]}try{l({},"")}catch(r){l=function(t,r,e){return t[r]=e}}function f(t,r,e,n){var o=r&&r.prototype instanceof w?r:w,a=Object.create(o.prototype),c=new T(n||[]);return i(a,"_invoke",{value:G(t,e,c)}),a}function s(t,r,e){try{return{type:"normal",arg:t.call(r,e)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var p="suspendedStart",y="suspendedYield",v="executing",d="completed",g={};function w(){}function x(){}function L(){}var b={};l(b,c,function(){return this});var E=Object.getPrototypeOf,_=E&&E(E(F([])));_&&_!==n&&o.call(_,c)&&(b=_);var O=L.prototype=w.prototype=Object.create(b);function j(t){["next","throw","return"].forEach(function(r){l(t,r,function(t){return this._invoke(r,t)})})}function k(t,r){function e(n,i,a,c){var u=s(t[n],t,i);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==_r(_d[0]).default(l)&&o.call(l,"__await")?r.resolve(l.__await).then(function(t){e("next",t,a,c)},function(t){e("throw",t,a,c)}):r.resolve(l).then(function(t){h.value=t,a(h)},function(t){return e("throw",t,a,c)})}c(u.arg)}var n;i(this,"_invoke",{value:function(t,o){function i(){return new r(function(r,n){e(t,o,r,n)})}return n=n?n.then(i,i):i()}})}function G(t,e,n){var o=p;return function(i,a){if(o===v)throw new Error("Generator is already running");if(o===d){if("throw"===i)throw a;return{value:r,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=N(c,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===p)throw o=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=v;var h=s(t,e,n);if("normal"===h.type){if(o=n.done?d:y,h.arg===g)continue;return{value:h.arg,done:n.done}}"throw"===h.type&&(o=d,n.method="throw",n.arg=h.arg)}}}function N(t,e){var n=e.method,o=t.iterator[n];if(o===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=r,N(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=s(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,g;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=r),e.delegate=null,g):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,g)}function P(t){var r={tryLoc:t[0]};1 in t&&(r.catchLoc=t[1]),2 in t&&(r.finallyLoc=t[2],r.afterLoc=t[3]),this.tryEntries.push(r)}function S(t){var r=t.completion||{};r.type="normal",delete r.arg,t.completion=r}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(P,this),this.reset(!0)}function F(t){if(t||""===t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),h=o.call(a,"finallyLoc");if(u&&h){if(this.prev=0;--e){var n=this.tryEntries[e];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev=0;--r){var e=this.tryEntries[r];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),S(e),g}},catch:function(t){for(var r=this.tryEntries.length-1;r>=0;--r){var e=this.tryEntries[r];if(e.tryLoc===t){var n=e.completion;if("throw"===n.type){var o=n.arg;S(e)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:F(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=r),g}},e}m.exports=t,m.exports.__esModule=!0,m.exports.default=m.exports},81,[11]); -__d(function(g,r,_i,a,m,e,d){var t=(function(t){"use strict";var n,o=Object.prototype,i=o.hasOwnProperty,c="function"==typeof Symbol?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function l(t,n,o){return Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{l({},"")}catch(t){l=function(t,n,o){return t[n]=o}}function s(t,n,o,i){var c=n&&n.prototype instanceof b?n:b,u=Object.create(c.prototype),h=new A(i||[]);return u._invoke=P(t,o,h),u}function p(t,n,o){try{return{type:"normal",arg:t.call(n,o)}}catch(t){return{type:"throw",arg:t}}}t.wrap=s;var y="suspendedStart",v="suspendedYield",w="executing",L="completed",x={};function b(){}function E(){}function _(){}var j={};j[u]=function(){return this};var O=Object.getPrototypeOf,k=O&&O(O(R([])));k&&k!==o&&i.call(k,u)&&(j=k);var G=_.prototype=b.prototype=Object.create(j);function N(t){["next","throw","return"].forEach(function(n){l(t,n,function(t){return this._invoke(n,t)})})}function F(t,n){function o(c,u,h,f){var l=p(t[c],t,u);if("throw"!==l.type){var s=l.arg,y=s.value;return y&&"object"==typeof y&&i.call(y,"__await")?n.resolve(y.__await).then(function(t){o("next",t,h,f)},function(t){o("throw",t,h,f)}):n.resolve(y).then(function(t){s.value=t,h(s)},function(t){return o("throw",t,h,f)})}f(l.arg)}var c;this._invoke=function(t,i){function u(){return new n(function(n,c){o(t,i,n,c)})}return c=c?c.then(u,u):u()}}function P(t,n,o){var i=y;return function(c,u){if(i===w)throw new Error("Generator is already running");if(i===L){if("throw"===c)throw u;return Y()}for(o.method=c,o.arg=u;;){var h=o.delegate;if(h){var f=S(h,o);if(f){if(f===x)continue;return f}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if(i===y)throw i=L,o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);i=w;var l=p(t,n,o);if("normal"===l.type){if(i=o.done?L:v,l.arg===x)continue;return{value:l.arg,done:o.done}}"throw"===l.type&&(i=L,o.method="throw",o.arg=l.arg)}}}function S(t,o){var i=t.iterator[o.method];if(i===n){if(o.delegate=null,"throw"===o.method){if(t.iterator.return&&(o.method="return",o.arg=n,S(t,o),"throw"===o.method))return x;o.method="throw",o.arg=new TypeError("The iterator does not provide a 'throw' method")}return x}var c=p(i,t.iterator,o.arg);if("throw"===c.type)return o.method="throw",o.arg=c.arg,o.delegate=null,x;var u=c.arg;return u?u.done?(o[t.resultName]=u.value,o.next=t.nextLoc,"return"!==o.method&&(o.method="next",o.arg=n),o.delegate=null,x):u:(o.method="throw",o.arg=new TypeError("iterator result is not an object"),o.delegate=null,x)}function T(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function I(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function A(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(T,this),this.reset(!0)}function R(t){if(t){var o=t[u];if(o)return o.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var c=-1,h=function o(){for(;++c=0;--u){var h=this.tryEntries[u],f=h.completion;if("root"===h.tryLoc)return c("end");if(h.tryLoc<=this.prev){var l=i.call(h,"catchLoc"),s=i.call(h,"finallyLoc");if(l&&s){if(this.prev=0;--o){var c=this.tryEntries[o];if(c.tryLoc<=this.prev&&i.call(c,"finallyLoc")&&this.prev=0;--n){var o=this.tryEntries[n];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),I(o),x}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc===t){var i=o.completion;if("throw"===i.type){var c=i.arg;I(o)}return c}}throw new Error("illegal catch attempt")},delegateYield:function(t,o,i){return this.delegate={iterator:R(t),resultName:o,nextLoc:i},"next"===this.method&&(this.arg=n),x}},t})("object"==typeof m?m.exports:{});try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},82,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var l,n,t=!0===(null==(l=g.HermesInternal)?void 0:null==l.hasPromise?void 0:l.hasPromise())&&!0===(null==(n=g.HermesInternal)?void 0:null==n.useEngineQueue?void 0:n.useEngineQueue()),u=r(d[0]).isNativeFunction(Promise)||t;if(!0!==g.RN$Bridgeless){var o=function(l){r(d[1]).polyfillGlobal(l,function(){return r(d[2])[l]})};o('setTimeout'),o('clearTimeout'),o('setInterval'),o('clearInterval'),o('requestAnimationFrame'),o('cancelAnimationFrame'),o('requestIdleCallback'),o('cancelIdleCallback')}u?(r(d[1]).polyfillGlobal('setImmediate',function(){return r(d[3]).setImmediate}),r(d[1]).polyfillGlobal('clearImmediate',function(){return r(d[3]).clearImmediate})):!0!==g.RN$Bridgeless&&(r(d[1]).polyfillGlobal('setImmediate',function(){return r(d[2]).queueReactNativeMicrotask}),r(d[1]).polyfillGlobal('clearImmediate',function(){return r(d[2]).clearReactNativeMicrotask})),t?r(d[1]).polyfillGlobal('queueMicrotask',function(){var l;return null==(l=g.HermesInternal)?void 0:l.enqueueJob}):r(d[1]).polyfillGlobal('queueMicrotask',function(){return r(d[4]).default})},83,[79,72,84,86,87]); -__d(function(g,r,_i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=16.666666666666668,n=[],i=[],l=[],o=[],c=[],u={},f=1,s=null,v=!1;function h(){var e=l.indexOf(null);return-1===e&&(e=l.length),e}function T(e,t){var o=f++,c=h();return l[c]=o,n[c]=e,i[c]=t,o}function k(e,o,c){e>f&&console.warn('Tried to call timer with ID %s but no such timer exists.',e);var u=l.indexOf(e);if(-1!==u){var v=i[u],h=n[u];if(h&&v){'setInterval'!==v&&p(u);try{'setTimeout'===v||'setInterval'===v||'queueReactNativeMicrotask'===v?h():'requestAnimationFrame'===v?h(g.performance.now()):'requestIdleCallback'===v?h({timeRemaining:function(){return Math.max(0,t-(g.performance.now()-o))},didTimeout:!!c}):console.error('Tried to call a callback with invalid type: '+v)}catch(e){s?s.push(e):s=[e]}}else console.error('No callback found for timerID '+e)}}function w(){if(0===o.length)return!1;var e=o;o=[];for(var t=0;t0}function p(e){l[e]=null,n[e]=null,i[e]=null}function N(e){if(null!=e){var t=l.indexOf(e);if(-1!==t){var n=i[t];p(t),'queueReactNativeMicrotask'!==n&&'requestIdleCallback'!==n&&M(e)}}}var b,I={setTimeout:function(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),l=2;l2?n-2:0),l=2;l1?t-1:0),i=1;i-1&&(c.splice(e,1),k(i,g.performance.now(),!0)),delete u[i],0===c.length&&R(!1)},n);u[i]=l}return i},cancelIdleCallback:function(e){N(e);var t=c.indexOf(e);-1!==t&&c.splice(t,1);var n=u[e];n&&(I.clearTimeout(n),delete u[e]),0===c.length&&R(!1)},clearTimeout:function(e){N(e)},clearInterval:function(e){N(e)},clearReactNativeMicrotask:function(e){N(e);var t=o.indexOf(e);-1!==t&&o.splice(t,1)},cancelAnimationFrame:function(e){N(e)},callTimers:function(e){r(d[2])(0!==e.length,'Cannot call `callTimers` with an empty list of IDs.'),s=null;for(var t=0;t1)for(var i=1;i0){var n=c;c=[];for(var i=0;i1?u-1:0),c=1;c=0,loaded:s,total:n})}},{key:"__didCompleteResponse",value:function(t,s,n){t===this._requestId&&(s&&(''!==this._responseType&&'text'!==this._responseType||(this._response=s),this._hasError=!0,n&&(this._timedOut=!0)),this._clearSubscriptions(),this._requestId=null,this.setReadyState(this.DONE),s?b._interceptor&&b._interceptor.loadingFailed(t,s):b._interceptor&&b._interceptor.loadingFinished(t,this._response.length))}},{key:"_clearSubscriptions",value:function(){(this._subscriptions||[]).forEach(function(t){t&&t.remove()}),this._subscriptions=[]}},{key:"getAllResponseHeaders",value:function(){if(!this.responseHeaders)return null;var t=this.responseHeaders||{};return Object.keys(t).map(function(s){return s+': '+t[s]}).join('\r\n')}},{key:"getResponseHeader",value:function(t){var s=this._lowerCaseResponseHeaders[t.toLowerCase()];return void 0!==s?s:null}},{key:"setRequestHeader",value:function(t,s){if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');this._headers[t.toLowerCase()]=String(s)}},{key:"setTrackingName",value:function(t){return this._trackingName=t,this}},{key:"setPerformanceLogger",value:function(t){return this._performanceLogger=t,this}},{key:"open",value:function(t,s,n){if(this.readyState!==this.UNSENT)throw new Error('Cannot open, already sending');if(void 0!==n&&!n)throw new Error('Synchronous http requests are not supported');if(!s)throw new Error('Cannot load an empty url');this._method=t.toUpperCase(),this._url=s,this._aborted=!1,this.setReadyState(this.OPENED)}},{key:"send",value:function(s){var n=this;if(this.readyState!==this.OPENED)throw new Error('Request has not been opened');if(this._sent)throw new Error('Request has already been sent');this._sent=!0;var o=this._incrementalEvents||!!this.onreadystatechange||!!this.onprogress;this._subscriptions.push(r(d[13]).addListener('didSendNetworkData',function(s){return n.__didUploadProgress.apply(n,(0,t.default)(s))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkResponse',function(s){return n.__didReceiveResponse.apply(n,(0,t.default)(s))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkData',function(s){return n.__didReceiveData.apply(n,(0,t.default)(s))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkIncrementalData',function(s){return n.__didReceiveIncrementalData.apply(n,(0,t.default)(s))})),this._subscriptions.push(r(d[13]).addListener('didReceiveNetworkDataProgress',function(s){return n.__didReceiveDataProgress.apply(n,(0,t.default)(s))})),this._subscriptions.push(r(d[13]).addListener('didCompleteNetworkResponse',function(s){return n.__didCompleteResponse.apply(n,(0,t.default)(s))}));var h='text';'arraybuffer'===this._responseType&&(h='base64'),'blob'===this._responseType&&(h='blob');var u;u='unknown'!==n._trackingName?n._trackingName:n._url,n._perfKey='network_XMLHttpRequest_'+String(u),n._performanceLogger.startTimespan(n._perfKey),r(d[11])(n._method,'XMLHttpRequest method needs to be defined (%s).',u),r(d[11])(n._url,'XMLHttpRequest URL needs to be defined (%s).',u),r(d[13]).sendRequest(n._method,n._trackingName,n._url,n._headers,s,h,o,n.timeout,n.__didCreateRequest.bind(n),n.withCredentials)}},{key:"abort",value:function(){this._aborted=!0,this._requestId&&r(d[13]).abortRequest(this._requestId),this.readyState===this.UNSENT||this.readyState===this.OPENED&&!this._sent||this.readyState===this.DONE||(this._reset(),this.setReadyState(this.DONE)),this._reset()}},{key:"setResponseHeaders",value:function(t){this.responseHeaders=t||null;var s=t||{};this._lowerCaseResponseHeaders=Object.keys(s).reduce(function(t,n){return t[n.toLowerCase()]=s[n],t},{})}},{key:"setReadyState",value:function(t){this.readyState=t,this.dispatchEvent({type:'readystatechange'}),t===this.DONE&&(this._aborted?this.dispatchEvent({type:'abort'}):this._hasError?this._timedOut?this.dispatchEvent({type:'timeout'}):this.dispatchEvent({type:'error'}):this.dispatchEvent({type:'load'}),this.dispatchEvent({type:'loadend'}))}},{key:"addEventListener",value:function(t,s){'readystatechange'!==t&&'progress'!==t||(this._incrementalEvents=!0),(0,n.default)((0,p.default)(b.prototype),"addEventListener",this).call(this,t,s)}}],[{key:"setInterceptor",value:function(t){b._interceptor=t}}]),b})(r(d[9]).apply(void 0,(0,t.default)(k)));w.UNSENT=l,w.OPENED=f,w.HEADERS_RECEIVED=y,w.LOADING=v,w.DONE=R,w._interceptor=null,m.exports=w},89,[5,21,8,90,7,12,14,16,92,96,97,36,99,100]); -__d(function(g,r,i,a,m,e,d){function t(){return"undefined"!=typeof Reflect&&Reflect.get?(m.exports=t=Reflect.get.bind(),m.exports.__esModule=!0,m.exports.default=m.exports):(m.exports=t=function(t,o,p){var s=r(d[0])(t,o);if(s){var l=Object.getOwnPropertyDescriptor(s,o);return l.get?l.get.call(arguments.length<3?t:p):l.value}},m.exports.__esModule=!0,m.exports.default=m.exports),t.apply(this,arguments)}m.exports=t,m.exports.__esModule=!0,m.exports.default=m.exports},90,[91]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t,o){for(;!Object.prototype.hasOwnProperty.call(t,o)&&null!==(t=r(d[0])(t)););return t},m.exports.__esModule=!0,m.exports.default=m.exports},91,[16]); -__d(function(g,_r,i,a,m,e,d){var t=_r(d[0])(_r(d[1])),l=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),o=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5]));var u=(function(){function u(){(0,l.default)(this,u)}return(0,r.default)(u,null,[{key:"createFromParts",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.');var r='xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g,function(t){var l=16*Math.random()|0;return('x'==t?l:3&l|8).toString(16)}),f=t.map(function(t){if(t instanceof ArrayBuffer||g.ArrayBufferView&&t instanceof g.ArrayBufferView)throw new Error("Creating blobs from 'ArrayBuffer' and 'ArrayBufferView' are not supported");return t instanceof _r(d[6])?{data:t.data,type:'blob'}:{data:String(t),type:'string'}}),c=f.reduce(function(t,l){return'string'===l.type?t+g.unescape(encodeURI(l.data)).length:t+l.data.size},0);return o.default.createFromParts(f,r),u.createFromOptions({blobId:r,offset:0,size:c,type:l?l.type:'',lastModified:l?l.lastModified:Date.now()})}},{key:"createFromOptions",value:function(l){return _r(d[7]).register(l.blobId),(0,t.default)(Object.create(_r(d[6]).prototype),{data:null==l.__collector?(0,t.default)({},l,{__collector:(r=l.blobId,null==g.__blobCollectorProvider?null:g.__blobCollectorProvider(r))}):l});var r}},{key:"release",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),_r(d[7]).unregister(t),_r(d[7]).has(t)||o.default.release(t)}},{key:"addNetworkingHandler",value:function(){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addNetworkingHandler()}},{key:"addWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.addWebSocketHandler(t)}},{key:"removeWebSocketHandler",value:function(t){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.removeWebSocketHandler(t)}},{key:"sendOverSocket",value:function(t,l){(0,n.default)(o.default,'NativeBlobModule is available.'),o.default.sendOverSocket(t.data,l)}}]),u})();u.isAvailable=!!o.default,m.exports=u},92,[5,6,7,8,93,36,94,95]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var l=a?Object.getOwnPropertyDescriptor(t,u):null;l&&(l.get||l.set)?Object.defineProperty(o,u,l):o[u]=t[u]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).get('BlobModule'),n=null,r=null;null!=t&&(r={getConstants:function(){return null==n&&(n=t.getConstants()),n},addNetworkingHandler:function(){t.addNetworkingHandler()},addWebSocketHandler:function(e){t.addWebSocketHandler(e)},removeWebSocketHandler:function(e){t.removeWebSocketHandler(e)},sendOverSocket:function(e,n){t.sendOverSocket(e,n)},createFromParts:function(e,n){t.createFromParts(e,n)},release:function(e){t.release(e)}});var o=r;_e.default=o},93,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;r(d[0])(this,t);var o=r(d[1]);this.data=o.createFromParts(n,s).data}return r(d[2])(t,[{key:"data",get:function(){if(!this._data)throw new Error('Blob has been closed and is no longer available');return this._data},set:function(t){this._data=t}},{key:"slice",value:function(t,n){var s=r(d[1]),o=this.data,u=o.offset,l=o.size;return'number'==typeof t&&(t>l&&(t=l),u+=t,l-=t,'number'==typeof n&&(n<0&&(n=this.size+n),l=n-t)),s.createFromOptions({blobId:this.data.blobId,offset:u,size:l})}},{key:"close",value:function(){r(d[1]).release(this.data.blobId),this.data=null}},{key:"size",get:function(){return this.data.size}},{key:"type",get:function(){return this.data.type||''}}]),t})();m.exports=t},94,[7,92,8]); -__d(function(g,r,i,a,m,e,d){var n={};m.exports={register:function(t){n[t]?n[t]++:n[t]=1},unregister:function(t){n[t]&&(n[t]--,n[t]<=0&&delete n[t])},has:function(t){return n[t]&&n[t]>0}}},95,[]); -__d(function(g,r,_i,a,m,e,d){'use strict';Object.defineProperty(e,'__esModule',{value:!0});var t=new WeakMap,n=new WeakMap;function o(n){return t.get(n)}function i(t){null==t.passiveListener?t.event.cancelable&&(t.canceled=!0,"function"==typeof t.event.preventDefault&&t.event.preventDefault()):"undefined"!=typeof console&&"function"==typeof console.error&&console.error("Unable to preventDefault inside passive event listener invocation.",t.passiveListener)}function l(n,o){t.set(this,{eventTarget:n,event:o,eventPhase:2,currentTarget:n,canceled:!1,stopped:!1,immediateStopped:!1,passiveListener:null,timeStamp:o.timeStamp||Date.now()}),Object.defineProperty(this,"isTrusted",{value:!1,enumerable:!0});for(var i=Object.keys(o),l=0;l0){for(var t=new Array(arguments.length),n=0;n1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;this._closed||null==this._points[t]&&(this._points[t]=s,n&&(this._pointExtras[t]=n))}},{key:"removeExtra",value:function(t){var s=this._extras[t];return delete this._extras[t],s}},{key:"setExtra",value:function(t,s){this._closed||this._extras.hasOwnProperty(t)||(this._extras[t]=s)}},{key:"startTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;this._closed||this._timespans[t]||(this._timespans[t]={startTime:s,startExtras:n},u[t]=r(d[4]).beginAsyncEvent(t))}},{key:"stopTimespan",value:function(t){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l(),n=arguments.length>2?arguments[2]:void 0;if(!this._closed){var o=this._timespans[t];o&&null!=o.startTime&&null==o.endTime&&(o.endExtras=n,o.endTime=s,o.totalTime=o.endTime-(o.startTime||0),null!=u[t]&&(r(d[4]).endAsyncEvent(t,u[t]),delete u[t]))}}}]),t})()},98,[5,6,7,8,47]); -__d(function(g,r,_i,a,m,e,d){'use strict';e.byteLength=function(t){var n=i(t),o=n[0],h=n[1];return 3*(o+h)/4-h},e.toByteArray=function(t){var h,u,c=i(t),A=c[0],C=c[1],y=new o(f(t,A,C)),s=0,v=C>0?A-4:A;for(u=0;u>16&255,y[s++]=h>>8&255,y[s++]=255&h;2===C&&(h=n[t.charCodeAt(u)]<<2|n[t.charCodeAt(u+1)]>>4,y[s++]=255&h);1===C&&(h=n[t.charCodeAt(u)]<<10|n[t.charCodeAt(u+1)]<<4|n[t.charCodeAt(u+2)]>>2,y[s++]=h>>8&255,y[s++]=255&h);return y},e.fromByteArray=function(n){for(var o,h=n.length,u=h%3,c=[],i=0,f=h-u;if?f:i+16383));1===u?(o=n[h-1],c.push(t[o>>2]+t[o<<4&63]+'==')):2===u&&(o=(n[h-2]<<8)+n[h-1],c.push(t[o>>10]+t[o>>4&63]+t[o<<2&63]+'='));return c.join('')};for(var t=[],n=[],o='undefined'!=typeof Uint8Array?Uint8Array:Array,h='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',u=0,c=h.length;u0)throw new Error('Invalid string. Length must be a multiple of 4');var o=t.indexOf('=');return-1===o&&(o=n),[o,o===n?0:4-o%4]}function f(t,n,o){return 3*(n+o)/4-o}function A(n,o,h){for(var u,c,i=[],f=o;f>18&63]+t[c>>12&63]+t[c>>6&63]+t[63&c]);return i.join('')}n['-'.charCodeAt(0)]=62,n['_'.charCodeAt(0)]=63},99,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),o={addListener:function(t,u,s){return n.default.addListener(t,u,s)},sendRequest:function(n,o,f,l,c,p,q,R,h,k){var C=(0,s.default)(c);u.default.sendRequest({method:n,url:f,data:(0,t.default)({},C,{trackingName:o}),headers:l,responseType:p,incrementalUpdates:q,timeout:R,withCredentials:k},h)},abortRequest:function(t){u.default.abortRequest(t)},clearCookies:function(t){u.default.clearCookies(t)}};m.exports=o},100,[5,6,30,101,102]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).getEnforcing('Networking');_e.default=t},101,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return'string'==typeof t?{string:t}:t instanceof r(d[0])?{blob:t.data}:t instanceof r(d[1])?{formData:t.getParts()}:t instanceof ArrayBuffer||ArrayBuffer.isView(t)?{base64:r(d[2])(t)}:t}},102,[94,103,104]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){r(d[0])(this,t),this._parts=[]}return r(d[1])(t,[{key:"append",value:function(t,n){this._parts.push([t,n])}},{key:"getParts",value:function(){return this._parts.map(function(t){var n=r(d[2])(t,2),s=n[0],o=n[1],p={'content-disposition':'form-data; name="'+s+'"'};return'object'==typeof o&&o?('string'==typeof o.name&&(p['content-disposition']+='; filename="'+o.name+'"'),'string'==typeof o.type&&(p['content-type']=o.type),r(d[3])({},o,{headers:p,fieldName:s})):{string:String(o),headers:p,fieldName:s}})}}]),t})();m.exports=t},103,[7,8,41,6]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),t instanceof Uint8Array)return r(d[0]).fromByteArray(t);if(!ArrayBuffer.isView(t))throw new Error('data must be ArrayBuffer or typed array');var f=t,n=f.buffer,y=f.byteOffset,o=f.byteLength;return r(d[0]).fromByteArray(new Uint8Array(n,y,o))}},104,[99]); -__d(function(g,r,i,a,m,e,d){'use strict';r(d[0]),m.exports={fetch:fetch,Headers:Headers,Request:Request,Response:Response}},105,[106]); -__d(function(g,r,_i,a,m,_e,d){var t,e;t=this,e=function(t){'use strict';var e='undefined'!=typeof globalThis&&globalThis||'undefined'!=typeof self&&self||void 0!==e&&e,o={searchParams:'URLSearchParams'in e,iterable:'Symbol'in e&&'iterator'in Symbol,blob:'FileReader'in e&&'Blob'in e&&(function(){try{return new Blob,!0}catch(t){return!1}})(),formData:'FormData'in e,arrayBuffer:'ArrayBuffer'in e};if(o.arrayBuffer)var n=['[object Int8Array]','[object Uint8Array]','[object Uint8ClampedArray]','[object Int16Array]','[object Uint16Array]','[object Int32Array]','[object Uint32Array]','[object Float32Array]','[object Float64Array]'],i=ArrayBuffer.isView||function(t){return t&&n.indexOf(Object.prototype.toString.call(t))>-1};function s(t){if('string'!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||''===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function h(t){return'string'!=typeof t&&(t=String(t)),t}function f(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function u(t){this.map={},t instanceof u?t.forEach(function(t,e){this.append(e,t)},this):Array.isArray(t)?t.forEach(function(t){this.append(t[0],t[1])},this):t&&Object.getOwnPropertyNames(t).forEach(function(e){this.append(e,t[e])},this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError('Already read'));t.bodyUsed=!0}function y(t){return new Promise(function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}})}function l(t){var e=new FileReader,o=y(e);return e.readAsArrayBuffer(t),o}function p(t){for(var e=new Uint8Array(t),o=new Array(e.length),n=0;n-1?n:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,('GET'===this.method||'HEAD'===this.method)&&i)throw new TypeError('Body not allowed for GET or HEAD requests');if(this._initBody(i),!('GET'!==this.method&&'HEAD'!==this.method||'no-store'!==e.cache&&'no-cache'!==e.cache)){var s=/([?&])_=[^&]*/;if(s.test(this.url))this.url=this.url.replace(s,'$1_='+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?'&':'?')+'_='+(new Date).getTime()}}}function E(t){var e=new FormData;return t.trim().split('&').forEach(function(t){if(t){var o=t.split('='),n=o.shift().replace(/\+/g,' '),i=o.join('=').replace(/\+/g,' ');e.append(decodeURIComponent(n),decodeURIComponent(i))}}),e}function T(t,e){if(!(this instanceof T))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type='default',this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?'':''+e.statusText,this.headers=new u(e.headers),this.url=e.url||'',this._initBody(t)}_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},w.call(_.prototype),w.call(T.prototype),T.prototype.clone=function(){return new T(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new u(this.headers),url:this.url})},T.error=function(){var t=new T(null,{status:0,statusText:''});return t.type='error',t};var A=[301,302,303,307,308];T.redirect=function(t,e){if(-1===A.indexOf(e))throw new RangeError('Invalid status code');return new T(null,{status:e,headers:{location:t}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function B(n,i){return new Promise(function(s,f){var c=new _(n,i);if(c.signal&&c.signal.aborted)return f(new t.DOMException('Aborted','AbortError'));var y=new XMLHttpRequest;function l(){y.abort()}y.onload=function(){var t,e,o={status:y.status,statusText:y.statusText,headers:(t=y.getAllResponseHeaders()||'',e=new u,t.replace(/\r?\n[\t ]+/g,' ').split('\r').map(function(t){return 0===t.indexOf('\n')?t.substr(1,t.length):t}).forEach(function(t){var o=t.split(':'),n=o.shift().trim();if(n){var i=o.join(':').trim();e.append(n,i)}}),e)};o.url='responseURL'in y?y.responseURL:o.headers.get('X-Request-URL');var n='response'in y?y.response:y.responseText;setTimeout(function(){s(new T(n,o))},0)},y.onerror=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.ontimeout=function(){setTimeout(function(){f(new TypeError('Network request failed'))},0)},y.onabort=function(){setTimeout(function(){f(new t.DOMException('Aborted','AbortError'))},0)},y.open(c.method,(function(t){try{return''===t&&e.location.href?e.location.href:t}catch(e){return t}})(c.url),!0),'include'===c.credentials?y.withCredentials=!0:'omit'===c.credentials&&(y.withCredentials=!1),'responseType'in y&&(o.blob?y.responseType='blob':o.arrayBuffer&&c.headers.get('Content-Type')&&-1!==c.headers.get('Content-Type').indexOf('application/octet-stream')&&(y.responseType='arraybuffer')),!i||'object'!=typeof i.headers||i.headers instanceof u?c.headers.forEach(function(t,e){y.setRequestHeader(e,t)}):Object.getOwnPropertyNames(i.headers).forEach(function(t){y.setRequestHeader(t,h(i.headers[t]))}),c.signal&&(c.signal.addEventListener('abort',l),y.onreadystatechange=function(){4===y.readyState&&c.signal.removeEventListener('abort',l)}),y.send(void 0===c._bodyInit?null:c._bodyInit)})}B.polyfill=!0,e.fetch||(e.fetch=B,e.Headers=u,e.Request=_,e.Response=T),t.Headers=u,t.Request=_,t.Response=T,t.fetch=B,Object.defineProperty(t,'__esModule',{value:!0})},'object'==typeof _e&&void 0!==m?e(_e):'function'==typeof define&&define.amd?define(['exports'],e):e(t.WHATWGFetch={})},106,[]); -__d(function(g,r,i,a,m,_e,d){var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),h=r(d[0])(r(d[10])),y=r(d[0])(r(d[11])),b=r(d[0])(r(d[12])),p=r(d[0])(r(d[13])),v=r(d[0])(r(d[14])),_=r(d[0])(r(d[15])),E=r(d[0])(r(d[16]));function k(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(k=function(){return!!e})()}var S=0,I=1,N=2,O=3,w=0,C=(function(_){(0,n.default)(A,_);var C,L,T=(C=A,L=k(),function(){var e,t=(0,u.default)(C);if(L){var s=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function A(s,n,o){var u;(0,t.default)(this,A),(u=T.call(this)).CONNECTING=S,u.OPEN=I,u.CLOSING=N,u.CLOSED=O,u.readyState=S,u.url=s,'string'==typeof n&&(n=[n]);var l=o||{},c=l.headers,h=void 0===c?{}:c,p=(0,e.default)(l,["headers"]);return p&&'string'==typeof p.origin&&(console.warn('Specifying `origin` as a WebSocket connection option is deprecated. Include it under `headers` instead.'),h.origin=p.origin,delete p.origin),Object.keys(p).length>0&&console.warn('Unrecognized WebSocket connection option(s) `'+Object.keys(p).join('`, `')+"`. Did you mean to put these under `headers`?"),Array.isArray(n)||(n=null),u._eventEmitter=new f.default('ios'!==y.default.OS?null:b.default),u._socketId=w++,u._registerEvents(),b.default.connect(s,n,{headers:h},u._socketId),u}return(0,s.default)(A,[{key:"binaryType",get:function(){return this._binaryType},set:function(e){if('blob'!==e&&'arraybuffer'!==e)throw new Error("binaryType must be either 'blob' or 'arraybuffer'");'blob'!==this._binaryType&&'blob'!==e||((0,E.default)(c.default.isAvailable,'Native module BlobModule is required for blob support'),'blob'===e?c.default.addWebSocketHandler(this._socketId):c.default.removeWebSocketHandler(this._socketId)),this._binaryType=e}},{key:"close",value:function(e,t){this.readyState!==this.CLOSING&&this.readyState!==this.CLOSED&&(this.readyState=this.CLOSING,this._close(e,t))}},{key:"send",value:function(e){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');if(e instanceof l.default)return(0,E.default)(c.default.isAvailable,'Native module BlobModule is required for blob support'),void c.default.sendOverSocket(e,this._socketId);if('string'!=typeof e){if(!(e instanceof ArrayBuffer||ArrayBuffer.isView(e)))throw new Error('Unsupported data type');b.default.sendBinary((0,h.default)(e),this._socketId)}else b.default.send(e,this._socketId)}},{key:"ping",value:function(){if(this.readyState===this.CONNECTING)throw new Error('INVALID_STATE_ERR');b.default.ping(this._socketId)}},{key:"_close",value:function(e,t){var s='number'==typeof e?e:1e3,n='string'==typeof t?t:'';b.default.close(s,n,this._socketId),c.default.isAvailable&&'blob'===this._binaryType&&c.default.removeWebSocketHandler(this._socketId)}},{key:"_unregisterEvents",value:function(){this._subscriptions.forEach(function(e){return e.remove()}),this._subscriptions=[]}},{key:"_registerEvents",value:function(){var e=this;this._subscriptions=[this._eventEmitter.addListener('websocketMessage',function(t){if(t.id===e._socketId){var s=t.data;switch(t.type){case'binary':s=v.default.toByteArray(t.data).buffer;break;case'blob':s=c.default.createFromOptions(t.data)}e.dispatchEvent(new p.default('message',{data:s}))}}),this._eventEmitter.addListener('websocketOpen',function(t){t.id===e._socketId&&(e.readyState=e.OPEN,e.protocol=t.protocol,e.dispatchEvent(new p.default('open')))}),this._eventEmitter.addListener('websocketClosed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new p.default('close',{code:t.code,reason:t.reason})),e._unregisterEvents(),e.close())}),this._eventEmitter.addListener('websocketFailed',function(t){t.id===e._socketId&&(e.readyState=e.CLOSED,e.dispatchEvent(new p.default('error',{message:t.message})),e.dispatchEvent(new p.default('close',{message:t.message})),e._unregisterEvents(),e.close())})]}}]),A})(_.default.apply(void 0,['close','error','message','open']));C.CONNECTING=S,C.OPEN=I,C.CLOSING=N,C.CLOSED=O,m.exports=C},107,[5,108,7,8,12,14,16,94,92,110,104,37,111,112,99,96,36]); -__d(function(g,r,_i,a,m,e,d){m.exports=function(t,o){if(null==t)return{};var n,l,p=r(d[0])(t,o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(l=0;l=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(p[n]=t[n])}return p},m.exports.__esModule=!0,m.exports.default=m.exports},108,[109]); -__d(function(g,r,_i,a,m,e,d){m.exports=function(t,n){if(null==t)return{};var o,u,f={},s=Object.keys(t);for(u=0;u=0||(f[o]=t[o]);return f},m.exports.__esModule=!0,m.exports.default=m.exports},109,[]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=(function(){function s(n){(0,t.default)(this,s),'ios'===l.default.OS&&(0,o.default)(null!=n,'`new NativeEventEmitter()` requires a non-null argument.');var u=!!n&&'function'==typeof n.addListener,v=!!n&&'function'==typeof n.removeListeners;n&&u&&v?this._nativeModule=n:null!=n&&(u||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `addListener` method.'),v||console.warn('`new NativeEventEmitter()` was called with a non-null argument without the required `removeListeners` method.'))}return(0,n.default)(s,[{key:"addListener",value:function(t,n,l){var o,s=this;null==(o=this._nativeModule)||o.addListener(t);var v=u.default.addListener(t,n,l);return{remove:function(){var t;null!=v&&(null==(t=s._nativeModule)||t.removeListeners(1),v.remove(),v=null)}}}},{key:"removeListener",value:function(t,n){var l;null==(l=this._nativeModule)||l.removeListeners(1),u.default.removeListener(t,n)}},{key:"emit",value:function(t){for(var n=arguments.length,l=new Array(n>1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:'UTF-8';if(this._aborted=!1,null==t)throw new TypeError("Failed to execute 'readAsText' on 'FileReader': parameter 1 is not of type 'Blob'");l.default.readAsText(t.data,o).then(function(t){n._aborted||(n._result=t,n._setReadyState(_))},function(t){n._aborted||(n._error=t,n._setReadyState(_))})}},{key:"abort",value:function(){this._aborted=!0,this._readyState!==h&&this._readyState!==_&&(this._reset(),this._setReadyState(_)),this._reset()}},{key:"readyState",get:function(){return this._readyState}},{key:"error",get:function(){return this._error}},{key:"result",get:function(){return this._result}}]),R})(r(d[7]).apply(void 0,['abort','error','load','loadstart','loadend','progress']));y.EMPTY=h,y.LOADING=f,y.DONE=_,m.exports=y},114,[5,7,8,12,14,16,115,96]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).getEnforcing('FileReaderModule');_e.default=t},115,[39]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.URL=e.URLSearchParams=void 0;var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=null;if(s.default&&'string'==typeof s.default.getConstants().BLOB_URI_SCHEME){var h=s.default.getConstants();u=h.BLOB_URI_SCHEME+':','string'==typeof h.BLOB_URI_HOST&&(u+="//"+h.BLOB_URI_HOST+"/")}t=Symbol.iterator;var f=(function(){function s(t){var o=this;(0,n.default)(this,s),this._searchParams=[],'object'==typeof t&&Object.keys(t).forEach(function(n){return o.append(n,t[n])})}return(0,o.default)(s,[{key:"append",value:function(t,n){this._searchParams.push([t,n])}},{key:"delete",value:function(t){throw new Error('URLSearchParams.delete is not implemented')}},{key:"get",value:function(t){throw new Error('URLSearchParams.get is not implemented')}},{key:"getAll",value:function(t){throw new Error('URLSearchParams.getAll is not implemented')}},{key:"has",value:function(t){throw new Error('URLSearchParams.has is not implemented')}},{key:"set",value:function(t,n){throw new Error('URLSearchParams.set is not implemented')}},{key:"sort",value:function(){throw new Error('URLSearchParams.sort is not implemented')}},{key:t,value:function(){return this._searchParams[Symbol.iterator]()}},{key:"toString",value:function(){if(0===this._searchParams.length)return'';var t=this._searchParams.length-1;return this._searchParams.reduce(function(n,o,s){return n+o.join('=')+(s===t?'':'&')},'')}}]),s})();function l(t){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-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)*(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/.test(t)}e.URLSearchParams=f;var c=(function(){function t(o,s){(0,n.default)(this,t),this._searchParamsInstance=null;var u=null;if(!s||l(o))this._url=o,this._url.endsWith('/')||(this._url+='/');else{if('string'==typeof s){if(!l(u=s))throw new TypeError("Invalid base URL: "+u)}else'object'==typeof s&&(u=s.toString());u.endsWith('/')&&(u=u.slice(0,u.length-1)),o.startsWith('/')||(o="/"+o),u.endsWith(o)&&(o=''),this._url=""+u+o}}return(0,o.default)(t,[{key:"hash",get:function(){throw new Error('URL.hash is not implemented')}},{key:"host",get:function(){throw new Error('URL.host is not implemented')}},{key:"hostname",get:function(){throw new Error('URL.hostname is not implemented')}},{key:"href",get:function(){return this.toString()}},{key:"origin",get:function(){throw new Error('URL.origin is not implemented')}},{key:"password",get:function(){throw new Error('URL.password is not implemented')}},{key:"pathname",get:function(){throw new Error('URL.pathname not implemented')}},{key:"port",get:function(){throw new Error('URL.port is not implemented')}},{key:"protocol",get:function(){throw new Error('URL.protocol is not implemented')}},{key:"search",get:function(){throw new Error('URL.search is not implemented')}},{key:"searchParams",get:function(){return null==this._searchParamsInstance&&(this._searchParamsInstance=new f),this._searchParamsInstance}},{key:"toJSON",value:function(){return this.toString()}},{key:"toString",value:function(){if(null===this._searchParamsInstance)return this._url;var t=this._url.indexOf('?')>-1?'&':'?';return this._url+t+this._searchParamsInstance.toString()}},{key:"username",get:function(){throw new Error('URL.username is not implemented')}}],[{key:"createObjectURL",value:function(t){if(null===u)throw new Error('Cannot create URL for blob!');return""+u+t.data.blobId+"?offset="+t.data.offset+"&size="+t.size}},{key:"revokeObjectURL",value:function(t){}}]),t})();e.URL=c},116,[5,7,8,93]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(t=function(){return!!o})()}Object.defineProperty(e,'__esModule',{value:!0});var o=(function(o){r(d[2])(b,o);var l,u,c=(l=b,u=t(),function(){var t,o=r(d[0])(l);if(u){var n=r(d[0])(this).constructor;t=Reflect.construct(o,arguments,n)}else t=o.apply(this,arguments);return r(d[1])(this,t)});function b(){throw r(d[3])(this,b),c.call(this),new TypeError("AbortSignal cannot be constructed directly")}return r(d[4])(b,[{key:"aborted",get:function(){var t=n.get(this);if("boolean"!=typeof t)throw new TypeError("Expected 'this' to be an 'AbortSignal' object, but got "+(null===this?"null":typeof this));return t}}]),b})(r(d[5]).EventTarget);r(d[5]).defineEventAttribute(o.prototype,"abort");var n=new WeakMap;Object.defineProperties(o.prototype,{aborted:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(o.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortSignal"});var l=(function(){function t(){var l;r(d[3])(this,t),u.set(this,(l=Object.create(o.prototype),r(d[5]).EventTarget.call(l),n.set(l,!1),l))}return r(d[4])(t,[{key:"signal",get:function(){return c(this)}},{key:"abort",value:function(){var t;t=c(this),!1===n.get(t)&&(n.set(t,!0),t.dispatchEvent({type:"abort"}))}}]),t})(),u=new WeakMap;function c(t){var o=u.get(t);if(null==o)throw new TypeError("Expected 'this' to be an 'AbortController' object, but got "+(null===t?"null":typeof t));return o}Object.defineProperties(l.prototype,{signal:{enumerable:!0},abort:{enumerable:!0}}),"function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag&&Object.defineProperty(l.prototype,Symbol.toStringTag,{configurable:!0,value:"AbortController"}),e.AbortController=l,e.AbortSignal=o,e.default=l,m.exports=l,m.exports.AbortController=m.exports.default=l,m.exports.AbortSignal=o},117,[16,14,12,7,8,96]); -__d(function(g,r,i,a,m,e,d){'use strict';g.alert||(g.alert=function(t){r(d[0]).alert('Alert',''+t)})},118,[119]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=(function(){function l(){(0,t.default)(this,l)}return(0,n.default)(l,null,[{key:"alert",value:function(t,n,s,u){if('ios'===o.default.OS)l.prompt(t,n,s,'default');else if('android'===o.default.OS){var c=r(d[5]).default;if(!c)return;var f=c.getConstants(),v={title:t||'',message:n||'',cancelable:!1};u&&u.cancelable&&(v.cancelable=u.cancelable);var p=s?s.slice(0,3):[{text:"OK"}],b=p.pop(),y=p.pop(),h=p.pop();h&&(v.buttonNeutral=h.text||''),y&&(v.buttonNegative=y.text||''),b&&(v.buttonPositive=b.text||"OK");c.showAlert(v,function(t){return console.warn(t)},function(t,n){t===f.buttonClicked?n===f.buttonNeutral?h.onPress&&h.onPress():n===f.buttonNegative?y.onPress&&y.onPress():n===f.buttonPositive&&b.onPress&&b.onPress():t===f.dismissed&&u&&u.onDismiss&&u.onDismiss()})}}},{key:"prompt",value:function(t,n,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:'plain-text',c=arguments.length>4?arguments[4]:void 0,f=arguments.length>5?arguments[5]:void 0;if('ios'===o.default.OS){var v,p,b=[],y=[];'function'==typeof l?b=[l]:Array.isArray(l)&&l.forEach(function(t,n){if(b[n]=t.onPress,'cancel'===t.style?v=String(n):'destructive'===t.style&&(p=String(n)),t.text||n<(l||[]).length-1){var o={};o[n]=t.text||'',y.push(o)}}),s.default.alertWithArgs({title:t||'',message:n||void 0,buttons:y,type:u||void 0,defaultValue:c,cancelButtonKey:v,destructiveButtonKey:p,keyboardType:f},function(t,n){var o=b[t];o&&o(n)})}}}]),l})();m.exports=l},119,[5,7,8,37,120,122]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports={alertWithArgs:function(l,n){null!=t.default&&t.default.alertWithArgs(l,n)}}},120,[5,121]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('AlertManager');_e.default=t},121,[39]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('DialogManagerAndroid');_e.default=t},122,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=g.navigator;void 0===t&&(g.navigator=t={}),r(d[0]).polyfillObjectProperty(t,'product',function(){return'ReactNative'})},123,[72]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;if(!0===g.RN$Bridgeless&&g.RN$registerCallableModule)n=g.RN$registerCallableModule;else{var t=r(d[0]);n=function(n,u){return t.registerLazyCallableModule(n,u)}}n('Systrace',function(){return r(d[1])}),n('JSTimers',function(){return r(d[2])}),n('HeapCapture',function(){return r(d[3])}),n('SamplingProfiler',function(){return r(d[4])}),n('RCTLog',function(){return r(d[5])}),n('RCTDeviceEventEmitter',function(){return r(d[6]).default}),n('RCTNativeAppEventEmitter',function(){return r(d[7])}),n('GlobalPerformanceLogger',function(){return r(d[8])}),n('JSDevSupportModule',function(){return r(d[9])}),n('HMRClient',function(){return r(d[10])})},124,[45,47,84,125,127,129,30,130,97,131,133]); -__d(function(g,r,i,a,m,_e,d){var t=r(d[0])(r(d[1])),e={captureHeap:function(e){var u=null;try{g.nativeCaptureHeap(e)}catch(t){u=t.toString()}t.default&&t.default.captureComplete(e,u)}};m.exports=e},125,[5,126]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('JSCHeapCapture');_e.default=t},126,[39]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t={poke:function(t){var o=null,e=null;try{e=g.pokeSamplingProfiler()}catch(t){o=t.toString()}var n=r(d[0]).default;n&&n.operationComplete(t,e,o)}};m.exports=t},127,[128]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('JSCSamplingProfiler');_e.default=t},128,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';var o={log:'log',info:'info',warn:'warn',error:'error',fatal:'error'},n=null,t={logIfNoNativeHook:function(o){for(var l=arguments.length,f=new Array(l>1?l-1:0),v=1;v1?l-1:0),v=1;v1?t-1:0),f=1;f>>8)>>>0}}},145,[146,148]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){if('object'==typeof n&&null!=n&&null!=(0,r(d[2]).normalizeColorObject)(n))return n;if('string'==typeof n||'number'==typeof n)return(0,t.default)(n)}},146,[5,147,148]); -__d(function(_g,_r,i,a,m,e,d){'use strict';function r(r,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<.16666666666666666?r+6*(n-r)*t:t<.5?n:t<.6666666666666666?r+(n-r)*(.6666666666666666-t)*6:r}function n(n,t,u){var s=u<.5?u*(1+t):u+t-u*t,c=2*u-s,l=r(c,s,n+.3333333333333333),o=r(c,s,n),g=r(c,s,n-.3333333333333333);return Math.round(255*l)<<24|Math.round(255*o)<<16|Math.round(255*g)<<8}var t,u='[-+]?\\d*\\.?\\d+',s="[-+]?\\d*\\.?\\d+%";function c(){for(var r=arguments.length,n=new Array(r),t=0;t255?255:n}function o(r){return(parseFloat(r)%360+360)%360/360}function g(r){var n=parseFloat(r);return n<0?0:n>1?255:Math.round(255*n)}function h(r){var n=parseFloat(r);return n<0?0:n>100?1:n/100}function b(r){switch(r){case'transparent':return 0;case'aliceblue':return 4042850303;case'antiquewhite':return 4209760255;case'aqua':return 16777215;case'aquamarine':return 2147472639;case'azure':return 4043309055;case'beige':return 4126530815;case'bisque':return 4293182719;case'black':return 255;case'blanchedalmond':return 4293643775;case'blue':return 65535;case'blueviolet':return 2318131967;case'brown':return 2771004159;case'burlywood':return 3736635391;case'burntsienna':return 3934150143;case'cadetblue':return 1604231423;case'chartreuse':return 2147418367;case'chocolate':return 3530104575;case'coral':return 4286533887;case'cornflowerblue':return 1687547391;case'cornsilk':return 4294499583;case'crimson':return 3692313855;case'cyan':return 16777215;case'darkblue':return 35839;case'darkcyan':return 9145343;case'darkgoldenrod':return 3095792639;case'darkgray':return 2846468607;case'darkgreen':return 6553855;case'darkgrey':return 2846468607;case'darkkhaki':return 3182914559;case'darkmagenta':return 2332068863;case'darkolivegreen':return 1433087999;case'darkorange':return 4287365375;case'darkorchid':return 2570243327;case'darkred':return 2332033279;case'darksalmon':return 3918953215;case'darkseagreen':return 2411499519;case'darkslateblue':return 1211993087;case'darkslategray':case'darkslategrey':return 793726975;case'darkturquoise':return 13554175;case'darkviolet':return 2483082239;case'deeppink':return 4279538687;case'deepskyblue':return 12582911;case'dimgray':case'dimgrey':return 1768516095;case'dodgerblue':return 512819199;case'firebrick':return 2988581631;case'floralwhite':return 4294635775;case'forestgreen':return 579543807;case'fuchsia':return 4278255615;case'gainsboro':return 3705462015;case'ghostwhite':return 4177068031;case'gold':return 4292280575;case'goldenrod':return 3668254975;case'gray':return 2155905279;case'green':return 8388863;case'greenyellow':return 2919182335;case'grey':return 2155905279;case'honeydew':return 4043305215;case'hotpink':return 4285117695;case'indianred':return 3445382399;case'indigo':return 1258324735;case'ivory':return 4294963455;case'khaki':return 4041641215;case'lavender':return 3873897215;case'lavenderblush':return 4293981695;case'lawngreen':return 2096890111;case'lemonchiffon':return 4294626815;case'lightblue':return 2916673279;case'lightcoral':return 4034953471;case'lightcyan':return 3774873599;case'lightgoldenrodyellow':return 4210742015;case'lightgray':return 3553874943;case'lightgreen':return 2431553791;case'lightgrey':return 3553874943;case'lightpink':return 4290167295;case'lightsalmon':return 4288707327;case'lightseagreen':return 548580095;case'lightskyblue':return 2278488831;case'lightslategray':case'lightslategrey':return 2005441023;case'lightsteelblue':return 2965692159;case'lightyellow':return 4294959359;case'lime':return 16711935;case'limegreen':return 852308735;case'linen':return 4210091775;case'magenta':return 4278255615;case'maroon':return 2147483903;case'mediumaquamarine':return 1724754687;case'mediumblue':return 52735;case'mediumorchid':return 3126187007;case'mediumpurple':return 2473647103;case'mediumseagreen':return 1018393087;case'mediumslateblue':return 2070474495;case'mediumspringgreen':return 16423679;case'mediumturquoise':return 1221709055;case'mediumvioletred':return 3340076543;case'midnightblue':return 421097727;case'mintcream':return 4127193855;case'mistyrose':return 4293190143;case'moccasin':return 4293178879;case'navajowhite':return 4292783615;case'navy':return 33023;case'oldlace':return 4260751103;case'olive':return 2155872511;case'olivedrab':return 1804477439;case'orange':return 4289003775;case'orangered':return 4282712319;case'orchid':return 3664828159;case'palegoldenrod':return 4008225535;case'palegreen':return 2566625535;case'paleturquoise':return 2951671551;case'palevioletred':return 3681588223;case'papayawhip':return 4293907967;case'peachpuff':return 4292524543;case'peru':return 3448061951;case'pink':return 4290825215;case'plum':return 3718307327;case'powderblue':return 2967529215;case'purple':return 2147516671;case'rebeccapurple':return 1714657791;case'red':return 4278190335;case'rosybrown':return 3163525119;case'royalblue':return 1097458175;case'saddlebrown':return 2336560127;case'salmon':return 4202722047;case'sandybrown':return 4104413439;case'seagreen':return 780883967;case'seashell':return 4294307583;case'sienna':return 2689740287;case'silver':return 3233857791;case'skyblue':return 2278484991;case'slateblue':return 1784335871;case'slategray':case'slategrey':return 1887473919;case'snow':return 4294638335;case'springgreen':return 16744447;case'steelblue':return 1182971135;case'tan':return 3535047935;case'teal':return 8421631;case'thistle':return 3636451583;case'tomato':return 4284696575;case'turquoise':return 1088475391;case'violet':return 4001558271;case'wheat':return 4125012991;case'white':return 4294967295;case'whitesmoke':return 4126537215;case'yellow':return 4294902015;case'yellowgreen':return 2597139199}return null}m.exports=function(r){if('number'==typeof r)return r>>>0===r&&r>=0&&r<=4294967295?r:null;if('string'!=typeof r)return null;var p,f=(void 0===t&&(t={rgb:new RegExp('rgb'+c(u,u,u)),rgba:new RegExp('rgba'+c(u,u,u,u)),hsl:new RegExp('hsl'+c(u,s,s)),hsla:new RegExp('hsla'+c(u,s,s,u)),hex3:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex4:/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#([0-9a-fA-F]{6})$/,hex8:/^#([0-9a-fA-F]{8})$/}),t);if(p=f.hex6.exec(r))return parseInt(p[1]+'ff',16)>>>0;var y=b(r);return null!=y?y:(p=f.rgb.exec(r))?(l(p[1])<<24|l(p[2])<<16|l(p[3])<<8|255)>>>0:(p=f.rgba.exec(r))?(l(p[1])<<24|l(p[2])<<16|l(p[3])<<8|g(p[4]))>>>0:(p=f.hex3.exec(r))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+'ff',16)>>>0:(p=f.hex8.exec(r))?parseInt(p[1],16)>>>0:(p=f.hex4.exec(r))?parseInt(p[1]+p[1]+p[2]+p[2]+p[3]+p[3]+p[4]+p[4],16)>>>0:(p=f.hsl.exec(r))?(255|n(o(p[1]),h(p[2]),h(p[3])))>>>0:(p=f.hsla.exec(r))?(n(o(p[1]),h(p[2]),h(p[3]))|g(p[4]))>>>0:null}},147,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.processColorObject=e.normalizeColorObject=e.DynamicColorIOSPrivate=e.PlatformColor=void 0;e.PlatformColor=function(){for(var t=arguments.length,n=new Array(t),o=0;o.49999*l?[0,2*Math.atan2(u,m)*C,90]:M<-.49999*l?[0,-2*Math.atan2(u,m)*C,-90]:[t.roundTo3Places(Math.atan2(2*u*m-2*s*c,1-2*v-2*h)*C),t.roundTo3Places(Math.atan2(2*s*m-2*u*c,1-2*f-2*h)*C),t.roundTo3Places(Math.asin(2*u*s+2*c*m)*C)]},roundTo3Places:function(t){var n=t.toString().split('e');return.001*Math.round(n[0]+'e'+(n[1]?+n[1]-3:3))},decomposeMatrix:function(n){r(d[1])(16===n.length,'Matrix decomposition needs a list of 3d matrix values, received %s',n);var a=[],o=[],i=[],u=[],s=[];if(n[15]){for(var c=[],m=[],v=0;v<4;v++){c.push([]);for(var f=0;f<4;f++){var h=n[4*v+f]/n[15];c[v].push(h),m.push(3===f?0:h)}}if(m[15]=1,t.determinant(m)){if(0!==c[0][3]||0!==c[1][3]||0!==c[2][3]){var M=[c[0][3],c[1][3],c[2][3],c[3][3]],l=t.inverse(m),C=t.transpose(l);a=t.multiplyVectorByMatrix(M,C)}else a[0]=a[1]=a[2]=0,a[3]=1;for(var p=0;p<3;p++)s[p]=c[3][p];for(var x=[],T=0;T<3;T++)x[T]=[c[T][0],c[T][1],c[T][2]];i[0]=t.v3Length(x[0]),x[0]=t.v3Normalize(x[0],i[0]),u[0]=t.v3Dot(x[0],x[1]),x[1]=t.v3Combine(x[1],x[0],1,-u[0]),i[1]=t.v3Length(x[1]),x[1]=t.v3Normalize(x[1],i[1]),u[0]/=i[1],u[1]=t.v3Dot(x[0],x[2]),x[2]=t.v3Combine(x[2],x[0],1,-u[1]),u[2]=t.v3Dot(x[1],x[2]),x[2]=t.v3Combine(x[2],x[1],1,-u[2]),i[2]=t.v3Length(x[2]),x[2]=t.v3Normalize(x[2],i[2]),u[1]/=i[2],u[2]/=i[2];var y,S=t.v3Cross(x[1],x[2]);if(t.v3Dot(x[0],S)<0)for(var P=0;P<3;P++)i[P]*=-1,x[P][0]*=-1,x[P][1]*=-1,x[P][2]*=-1;return o[0]=.5*Math.sqrt(Math.max(1+x[0][0]-x[1][1]-x[2][2],0)),o[1]=.5*Math.sqrt(Math.max(1-x[0][0]+x[1][1]-x[2][2],0)),o[2]=.5*Math.sqrt(Math.max(1-x[0][0]-x[1][1]+x[2][2],0)),o[3]=.5*Math.sqrt(Math.max(1+x[0][0]+x[1][1]+x[2][2],0)),x[2][1]>x[1][2]&&(o[0]=-o[0]),x[0][2]>x[2][0]&&(o[1]=-o[1]),x[1][0]>x[0][1]&&(o[2]=-o[2]),{rotationDegrees:y=o[0]<.001&&o[0]>=0&&o[1]<.001&&o[1]>=0?[0,0,t.roundTo3Places(180*Math.atan2(x[0][1],x[0][0])/Math.PI)]:t.quaternionToDegreesXYZ(o,c,x),perspective:a,quaternion:o,scale:i,skew:u,translation:s,rotate:y[2],rotateX:y[0],rotateY:y[1],scaleX:i[0],scaleY:i[1],translateX:s[0],translateY:s[1]}}}}};_m.exports=t},153,[41,36]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.setRuntimeConfigProvider=function(t){(0,o.default)(null==e,'NativeComponentRegistry.setRuntimeConfigProvider() called more than once.'),e=t},_e.get=l,_e.getWithFallback_DEPRECATED=function(t,n){if(null==e){if(f(t))return l(t,n)}else if(null!=e(t))return l(t,n);var r=function(e){return null};return r.displayName="Fallback("+t+")",r},_e.unstable_hasStaticViewConfig=function(t){var n;return!(null!=(n=null==e?void 0:e(t))?n:{native:!0}).native},_e.unstable_hasComponent=function(e){var t=a.get(e);if(null==t){if(!g.__nativeComponentRegistry__hasComponent)throw"unstable_hasComponent('"+e+"'): Global function is not registered";t=g.__nativeComponentRegistry__hasComponent(e),a.set(e,t)}return t};var e,t=_r(d[0])(_r(d[1])),n=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),i=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5]));!(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=i?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,n&&n.set(e,r)})(_r(d[6]));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}var a=new Map;function l(t,o){return n.default.register(t,function(){var n,u=null!=(n=null==e?void 0:e(t))?n:{native:!0,verify:!1},a=u.native,l=u.verify,f=a?(0,r.default)(t):(0,_r(d[7]).createViewConfig)(o());return l&&(a?(0,i.default)(f,(0,_r(d[7]).createViewConfig)(o())):(0,i.default)((0,r.default)(t),f)),f}),t}function f(n){return(0,o.default)(null==e,'Unexpected invocation!'),null!=t.default.getViewManagerConfig(n)}},154,[5,155,138,161,174,36,17,175]); -__d(function(g,r,i,a,m,e,d){var l=r(d[0])(r(d[1])),n=!0===g.RN$Bridgeless?r(d[2]):null==l.default.unstable_UIManager?r(d[3]):l.default.unstable_UIManager;m.exports=n},155,[5,156,157,158]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={unstable_UIManager:null}},156,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={getViewManagerConfig:function(n){return console.warn('Attempting to get config for view manager: '+n),'RCTVirtualText'===n?{}:null},hasViewManagerConfig:function(n){return'RCTVirtualText'===n||'RCTShimmeringView'===n},getConstants:function(){return{}},getConstantsForViewManager:function(n){},getDefaultEventTypes:function(){return[]},lazilyLoadView:function(n){},createView:function(n,t,o,u){},updateView:function(n,t,o){},focus:function(n){},blur:function(n){},findSubviewIn:function(n,t,o){},dispatchViewManagerCommand:function(n,t,o){},measure:function(n,t){},measureInWindow:function(n,t){},viewIsDescendantOf:function(n,t,o){},measureLayout:function(n,t,o,u){},measureLayoutRelativeToParent:function(n,t,o){},setJSResponder:function(n,t){},clearJSResponder:function(){},configureNextLayoutAnimation:function(n,t,o){},removeSubviewsFromContainerWithID:function(n){},replaceExistingNonRootView:function(n,t){},setChildren:function(n,t){},manageChildren:function(n,t,o,u,c,f){},setLayoutAnimationEnabledExperimental:function(n){},sendAccessibilityEvent:function(n,t){},showPopupMenu:function(n,t,o,u){},dismissPopupMenu:function(){}}},157,[]); -__d(function(g,r,i,a,m,_e,d){var n=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),t={},o=new Set,f={},u=!1;function c(){return u||(f=e.default.getConstants(),u=!0),f}function l(n){if(void 0===t[n]&&g.nativeCallSyncHook&&e.default.getConstantsForViewManager)try{t[n]=e.default.getConstantsForViewManager(n)}catch(e){console.error("NativeUIManager.getConstantsForViewManager('"+n+"') threw an exception.",e),t[n]=null}var f=t[n];if(f)return f;if(!g.nativeCallSyncHook)return f;if(e.default.lazilyLoadView&&!o.has(n)){var u=e.default.lazilyLoadView(n);o.add(n),null!=u&&null!=u.viewConfig&&(c()[n]=u.viewConfig,w(n))}return t[n]}var s=(0,n.default)({},e.default,{createView:function(n,o,f,u){void 0===t[o]&&l(o),e.default.createView(n,o,f,u)},getConstants:function(){return c()},getViewManagerConfig:function(n){return l(n)},hasViewManagerConfig:function(n){return null!=l(n)}});function w(n){var e=c()[n];t[n]=e,e.Manager&&(r(d[3])(e,'Constants',{get:function(){var n=r(d[4])[e.Manager],t={};return n&&Object.keys(n).forEach(function(e){var o=n[e];'function'!=typeof o&&(t[e]=o)}),t}}),r(d[3])(e,'Commands',{get:function(){var n=r(d[4])[e.Manager],t={},o=0;return n&&Object.keys(n).forEach(function(e){'function'==typeof n[e]&&(t[e]=o++)}),t}}))}e.default.getViewManagerConfig=s.getViewManagerConfig,Object.keys(c()).forEach(function(n){w(n)}),g.nativeCallSyncHook||Object.keys(c()).forEach(function(n){r(d[5]).includes(n)||(t[n]||(t[n]=c()[n]),r(d[3])(e.default,n,{get:function(){return console.warn("Accessing view manager configs directly off UIManager via UIManager['"+n+"'] is no longer supported. Use UIManager.getViewManagerConfig('"+n+"') instead."),s.getViewManagerConfig(n)}}))}),m.exports=s},158,[5,6,159,50,40,160]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).getEnforcing('UIManager');_e.default=t},159,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=['clearJSResponder','configureNextLayoutAnimation','createView','dismissPopupMenu','dispatchViewManagerCommand','findSubviewIn','getConstantsForViewManager','getDefaultEventTypes','manageChildren','measure','measureInWindow','measureLayout','measureLayoutRelativeToParent','removeRootView','removeSubviewsFromContainerWithID','replaceExistingNonRootView','sendAccessibilityEvent','setChildren','setJSResponder','setLayoutAnimationEnabledExperimental','showPopupMenu','updateView','viewIsDescendantOf','PopupMenu','LazyViewManagersEnabled','ViewManagerNames','StyleConstants','AccessibilityEventTypes','UIView','getViewManagerConfig','hasViewManagerConfig','blur','focus','genericBubblingEventTypes','genericDirectEventTypes','lazilyLoadView']},160,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=!1;function t(n){var t=r(d[0]).getConstants();t.ViewManagerNames||t.LazyViewManagersEnabled?n=s(n,r(d[0]).getDefaultEventTypes()):(n.bubblingEventTypes=s(n.bubblingEventTypes,t.genericBubblingEventTypes),n.directEventTypes=s(n.directEventTypes,t.genericDirectEventTypes))}function s(n,t){if(!t)return n;if(!n)return t;for(var o in t)if(t.hasOwnProperty(o)){var u=t[o];if(n.hasOwnProperty(o)){var c=n[o];'object'==typeof u&&'object'==typeof c&&(u=s(c,u))}n[o]=u}return n}function o(n){switch(n){case'CATransform3D':return r(d[4]);case'CGPoint':return r(d[5]);case'CGSize':return r(d[6]);case'UIEdgeInsets':return r(d[7]);case'Point':return r(d[5])}return null}function u(n){switch(n){case'CGColor':case'UIColor':return r(d[8]);case'CGColorArray':case'UIColorArray':return r(d[9]);case'CGImage':case'UIImage':case'RCTImageSource':return r(d[10]);case'Color':return r(d[8]);case'ColorArray':return r(d[9])}return null}m.exports=function(s){var c=r(d[0]).getViewManagerConfig(s);r(d[1])(null!=c&&null!=c.NativeProps,'requireNativeComponent: "%s" was not found in the UIManager.',s);for(var l=c.baseModuleName,v=c.bubblingEventTypes,b=c.directEventTypes,p=c.NativeProps;l;){var f=r(d[0]).getViewManagerConfig(l);f?(v=r(d[2])({},f.bubblingEventTypes,v),b=r(d[2])({},f.directEventTypes,b),p=r(d[2])({},f.NativeProps,p),l=f.baseModuleName):l=null}var y={};for(var C in p){var E=p[C],T=o(E),w=u(E);y[C]=null==T&&null==w||{diff:T,process:w}}return y.style=r(d[3]),r(d[2])(c,{uiViewClassName:s,validAttributes:y,bubblingEventTypes:v,directEventTypes:b}),n||(t(c),n=!0),c}},161,[155,36,6,162,151,163,150,149,145,164,165]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l={process:t.default},s={alignContent:!0,alignItems:!0,alignSelf:!0,aspectRatio:!0,borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,direction:!0,display:!0,end:!0,flex:!0,flexBasis:!0,flexDirection:!0,flexGrow:!0,flexShrink:!0,flexWrap:!0,height:!0,justifyContent:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,overflow:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,position:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,elevation:!0,shadowColor:l,shadowOffset:{diff:n.default},shadowOpacity:!0,shadowRadius:!0,decomposedMatrix:!0,rotation:!0,scaleX:!0,scaleY:!0,transform:{process:o.default},transformMatrix:!0,translateX:!0,translateY:!0,backfaceVisibility:!0,backgroundColor:l,borderBottomColor:l,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderColor:l,borderEndColor:l,borderLeftColor:l,borderRadius:!0,borderRightColor:l,borderStartColor:l,borderStyle:!0,borderTopColor:l,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,color:l,fontFamily:!0,fontSize:!0,fontStyle:!0,fontVariant:!0,fontWeight:!0,includeFontPadding:!0,letterSpacing:!0,lineHeight:!0,textAlign:!0,textAlignVertical:!0,textDecorationColor:l,textDecorationLine:!0,textDecorationStyle:!0,textShadowColor:l,textShadowOffset:!0,textShadowRadius:!0,textTransform:!0,writingDirection:!0,overlayColor:l,resizeMode:!0,tintColor:l};m.exports=s},162,[5,145,152,150]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={x:void 0,y:void 0};m.exports=function(n,o){return(n=n||t)!==(o=o||t)&&(n.x!==o.x||n.y!==o.y)}},163,[]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1])),l=0;function u(u){var o=(0,n.default)(u);return null==o?(console.error('Invalid value in color array:',u),l):o}m.exports=function(n){return null==n?null:n.map(u)}},164,[5,145]); -__d(function(g,r,i,a,m,e,d){'use strict';var t,n,s,u;function o(){if(u)return u;var t=g.nativeExtensions&&g.nativeExtensions.SourceCode;return t||(t=r(d[0]).default),u=t.getConstants().scriptURL}function f(){if(void 0===n){var t=o(),s=t&&t.match(/^https?:\/\/.*?\//);n=s?s[0]:null}return n}function c(t){if(t){if(t.startsWith('assets://'))return null;(t=t.substring(0,t.lastIndexOf('/')+1)).includes('://')||(t='file://'+t)}return t}m.exports=function(n){if('object'==typeof n)return n;var u=r(d[1]).getAssetByID(n);if(!u)return null;var l=new(r(d[2]))(f(),(void 0===s&&(s=c(o())),s),u);return t?t(l):l.defaultAsset()},m.exports.pickScale=r(d[3]).pickScale,m.exports.setCustomSourceTransformer=function(n){t=n}},165,[166,167,168,169]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).getEnforcing('SourceCode'),n=null,r={getConstants:function(){return null==n&&(n=t.getConstants()),n}};_e.default=r},166,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=[];m.exports={registerAsset:function(s){return t.push(s)},getAssetByID:function(s){return t[s-1]}}},167,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function s(s){var t=r(d[0]).pickScale(s.scales,r(d[1]).get()),n=1===t?'':'@'+t+'x';return r(d[2]).getBasePath(s)+'/'+s.name+n+'.'+s.type}var t=(function(){function t(s,n,u){r(d[3])(this,t),this.serverUrl=s,this.jsbundleUrl=n,this.asset=u}return r(d[4])(t,[{key:"isLoadedFromServer",value:function(){return!!this.serverUrl}},{key:"isLoadedFromFileSystem",value:function(){return!(!this.jsbundleUrl||!this.jsbundleUrl.startsWith('file://'))}},{key:"defaultAsset",value:function(){return this.isLoadedFromServer()?this.assetServerURL():this.scaledAssetURLNearBundle()}},{key:"assetServerURL",value:function(){return r(d[5])(!!this.serverUrl,'need server to load from'),this.fromSource(this.serverUrl+s(this.asset)+"?platform=ios&hash="+this.asset.hash)}},{key:"scaledAssetPath",value:function(){return this.fromSource(s(this.asset))}},{key:"scaledAssetURLNearBundle",value:function(){var t=this.jsbundleUrl||'file://';return this.fromSource(t+s(this.asset).replace(/\.\.\//g,'_'))}},{key:"resourceIdentifierWithoutScale",value:function(){return r(d[5])(!1,'resource identifiers work on Android'),this.fromSource(r(d[2]).getAndroidResourceIdentifier(this.asset))}},{key:"drawableFolderInBundle",value:function(){var s,t,n=this.jsbundleUrl||'file://';return this.fromSource(n+(s=this.asset,t=r(d[0]).pickScale(s.scales,r(d[1]).get()),r(d[2]).getAndroidResourceFolderName(s,t)+'/'+r(d[2]).getAndroidResourceIdentifier(s)+'.'+s.type))}},{key:"fromSource",value:function(s){return{__packager_asset:!0,width:this.asset.width,height:this.asset.height,uri:s,scale:r(d[0]).pickScale(this.asset.scales,r(d[1]).get())}}}]),t})();t.pickScale=r(d[0]).pickScale,m.exports=t},168,[169,170,173,7,8,36]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.pickScale=function(n,u){null==u&&(u=t.default.get());for(var l=0;l=u)return n[l];return n[n.length-1]||1},e.setUrlCacheBreaker=function(t){n=t},e.getUrlCacheBreaker=function(){if(null==n)return'';return n};var n,t=r(d[0])(r(d[1]))},169,[5,170]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(){r(d[0])(this,t)}return r(d[1])(t,null,[{key:"get",value:function(){return r(d[2]).get('window').scale}},{key:"getFontScale",value:function(){return r(d[2]).get('window').fontScale||t.get()}},{key:"getPixelSizeForLayoutSize",value:function(n){return Math.round(n*t.get())}},{key:"roundToNearestPixel",value:function(n){var u=t.get();return Math.round(n*u)/u}},{key:"startDetecting",value:function(){}}]),t})();m.exports=t},170,[7,8,171]); -__d(function(g,r,i,a,m,e,d){var n,t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),f=new o.default,v=!1,h=(function(){function o(){(0,t.default)(this,o)}return(0,s.default)(o,null,[{key:"get",value:function(t){return(0,u.default)(n[t],'No dimension set for key '+t),n[t]}},{key:"set",value:function(t){var s=t.screen,o=t.window,l=t.windowPhysicalPixels;l&&(o={width:l.width/l.scale,height:l.height/l.scale,scale:l.scale,fontScale:l.fontScale});var c=t.screenPhysicalPixels;c?s={width:c.width/c.scale,height:c.height/c.scale,scale:c.scale,fontScale:c.fontScale}:null==s&&(s=o),n={window:o,screen:s},v?f.emit('change',n):v=!0}},{key:"addEventListener",value:function(n,t){return(0,u.default)('change'===n,'Trying to subscribe to unknown event: "%s"',n),f.addListener(n,t)}},{key:"removeEventListener",value:function(n,t){(0,u.default)('change'===n,'Trying to remove listener for unknown event: "%s"',n),f.removeListener(n,t)}}]),o})(),w=g.nativeExtensions&&g.nativeExtensions.DeviceInfo&&g.nativeExtensions.DeviceInfo.Dimensions;w||(l.default.addListener('didUpdateDimensions',function(n){h.set(n)}),w=c.default.getConstants().Dimensions),h.set(w),m.exports=h},171,[5,7,8,31,30,172,36]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(e=function(e){return e?r:n})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var r=e(n);if(r&&r.has(t))return r.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,r&&r.set(t,o),o})(_r(d[0])).getEnforcing('DeviceInfo'),n=null,r={getConstants:function(){return null==n&&(n=t.getConstants()),n}};_e.default=r},172,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';var t={.75:'ldpi',1:'mdpi',1.5:'hdpi',2:'xhdpi',3:'xxhdpi',4:'xxxhdpi'};function n(n){if(n.toString()in t)return t[n.toString()];throw new Error('no such scale '+n.toString())}var o=new Set(['gif','jpeg','jpg','png','svg','webp','xml']);function s(t){var n=t.httpServerLocation;return n.startsWith('/')?n.substr(1):n}m.exports={getAndroidResourceFolderName:function(s,u){if(!o.has(s.type))return'raw';var c=n(u);if(!c)throw new Error("Don't know which android drawable suffix to use for scale: "+u+'\nAsset: '+JSON.stringify(s,null,'\t')+'\nPossible scales are:'+JSON.stringify(t,null,'\t'));return'drawable-'+c},getAndroidResourceIdentifier:function(t){return(s(t)+'/'+t.name).toLowerCase().replace(/\//g,'_').replace(/([^a-z0-9_])/g,'').replace(/^assets_/,'')},getBasePath:s}},173,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,n){for(var o=0,u=['validAttributes','bubblingEventTypes','directEventTypes'];o0){var l,v=null!=(l=n.uiViewClassName)?l:t.uiViewClassName;console.error("'"+v+"' has a view config that does not match native. '"+s+"' is missing: "+c.join(', '))}}},e.lefthandObjectDiff=f,e.getConfigWithoutViewProps=function(n,f){if(!n[f])return{};return Object.keys(n[f]).filter(function(n){return!t.default[f][n]}).reduce(function(t,o){return t[o]=n[f][o],t},{})},e.stringifyViewConfig=function(t){return JSON.stringify(t,function(t,n){return'function'==typeof n?"\u0192 "+n.name:n},2)};var t=r(d[0])(r(d[1])),n=['transform','hitSlop'];function f(t,o){var u={};function s(t,n,o){if(typeof t==typeof n||null==t)if('object'!=typeof t)t===n||(u[o]=n);else{var s=f(t,n);Object.keys(s).length>1&&(u[o]=s)}else u[o]=n}for(var c in t)n.includes(c)||(o?t.hasOwnProperty(c)&&s(t[c],o[c],c):u[c]={});return u}},174,[5,143]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createViewConfig=function(t){return{uiViewClassName:t.uiViewClassName,Commands:{},bubblingEventTypes:u(n.default.bubblingEventTypes,t.bubblingEventTypes),directEventTypes:u(n.default.directEventTypes,t.directEventTypes),validAttributes:u(n.default.validAttributes,t.validAttributes)}};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function u(n,u){var l;return null==n||null==u?null!=(l=null!=n?n:u)?l:{}:(0,t.default)({},n,u)}},175,[5,6,143]); -__d(function(g,r,i,a,m,e,d){'use strict';var n;m.exports=function t(o,u){var f=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,s=arguments.length>3?arguments[3]:void 0,c='number'==typeof f?s:f,l='number'==typeof f?f:-1;if(0===l)return!0;if(o===u)return!1;if('function'==typeof o&&'function'==typeof u){var v=null==c?void 0:c.unsafelyIgnoreFunctions;return null==v&&(!n||!n.onDifferentFunctionsIgnored||c&&'unsafelyIgnoreFunctions'in c||n.onDifferentFunctionsIgnored(o.name,u.name),v=!0),!v}if('object'!=typeof o||null===o)return o!==u;if('object'!=typeof u||null===u)return!0;if(o.constructor!==u.constructor)return!0;if(Array.isArray(o)){var y=o.length;if(u.length!==y)return!0;for(var p=0;p=w},r=function(){},_e.unstable_forceFrameRate=function(e){0>e||125>>1,a=e[r];if(!(void 0!==a&&0x(l,t))void 0!==s&&0>x(s,l)?(e[r]=s,e[u]=t,r=u):(e[r]=l,e[o]=t,r=o);else{if(!(void 0!==s&&0>x(s,t)))break e;e[r]=s,e[u]=t,r=u}}}return n}return null}function x(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}var P=[],F=[],I=1,M=null,C=3,j=!1,A=!1,L=!1;function q(e){for(var n=T(F);null!==n;){if(null===n.callback)g(F);else{if(!(n.startTime<=e))break;g(F),n.sortIndex=n.expirationTime,k(P,n)}n=T(F)}}function R(t){if(L=!1,q(t),!A)if(null!==T(P))A=!0,e(Y);else{var r=T(F);null!==r&&n(R,r.startTime-t)}}function Y(e,r){A=!1,L&&(L=!1,t()),j=!0;var a=C;try{for(q(r),M=T(P);null!==M&&(!(M.expirationTime>r)||e&&!_e.unstable_shouldYield());){var o=M.callback;if("function"==typeof o){M.callback=null,C=M.priorityLevel;var l=o(M.expirationTime<=r);r=_e.unstable_now(),"function"==typeof l?M.callback=l:M===T(P)&&g(P),q(r)}else g(P);M=T(P)}if(null!==M)var u=!0;else{var s=T(F);null!==s&&n(R,s.startTime-r),u=!1}return u}finally{M=null,C=a,j=!1}}var E=r;_e.unstable_IdlePriority=5,_e.unstable_ImmediatePriority=1,_e.unstable_LowPriority=4,_e.unstable_NormalPriority=3,_e.unstable_Profiling=null,_e.unstable_UserBlockingPriority=2,_e.unstable_cancelCallback=function(e){e.callback=null},_e.unstable_continueExecution=function(){A||j||(A=!0,e(Y))},_e.unstable_getCurrentPriorityLevel=function(){return C},_e.unstable_getFirstCallbackNode=function(){return T(P)},_e.unstable_next=function(e){switch(C){case 1:case 2:case 3:var n=3;break;default:n=C}var t=C;C=n;try{return e()}finally{C=t}},_e.unstable_pauseExecution=function(){},_e.unstable_requestPaint=E,_e.unstable_runWithPriority=function(e,n){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=C;C=e;try{return n()}finally{C=t}},_e.unstable_scheduleCallback=function(r,a,o){var l=_e.unstable_now();switch("object"==typeof o&&null!==o?o="number"==typeof(o=o.delay)&&0l?(r.sortIndex=o,k(F,r),null===T(P)&&r===T(F)&&(L?t():L=!0,n(R,o-l))):(r.sortIndex=u,k(P,r),A||j||(A=!0,e(Y))),r},_e.unstable_wrapCallback=function(e){var n=C;return function(){var t=C;C=n;try{return e.apply(this,arguments)}finally{C=t}}}},181,[]); -__d(function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var l=n?Object.getOwnPropertyDescriptor(e,i):null;l&&(l.get||l.set)?Object.defineProperty(a,i,l):a[i]=e[i]}return a.default=e,r&&r.set(e,a),a})(_r(d[3])),a=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5])),i=_r(d[0])(_r(d[6]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var l='android'===a.default.OS?_r(d[7]):_r(d[8]).default,u=r.forwardRef(function(o,u){var s,c,p=o.animating,y=void 0===p||p,h=o.color,v=void 0===h?'ios'===a.default.OS?"#999999":null:h,O=o.hidesWhenStopped,w=void 0===O||O,b=o.onLayout,S=o.size,_=void 0===S?'small':S,j=o.style,z=(0,t.default)(o,["animating","color","hidesWhenStopped","onLayout","size","style"]);switch(_){case'small':s=f.sizeSmall,c='small';break;case'large':s=f.sizeLarge,c='large';break;default:s={height:_,width:_}}var W=(0,e.default)({animating:y,color:v,hidesWhenStopped:w},z,{ref:u,style:s,size:c});return r.createElement(i.default,{onLayout:b,style:n.default.compose(f.container,j)},'android'===a.default.OS?r.createElement(l,(0,e.default)({},W,{styleAttr:'Normal',indeterminate:!0})):r.createElement(l,W))});u.displayName='ActivityIndicator';var f=n.default.create({container:{alignItems:'center',justifyContent:'center'},sizeSmall:{width:20,height:20},sizeLarge:{width:36,height:36}});m.exports=u},182,[5,6,108,17,37,183,184,187,189]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).roundToNearestPixel(.4);0===t&&(t=1/r(d[0]).get());var o={position:'absolute',left:0,right:0,top:0,bottom:0};m.exports={hairlineWidth:t,absoluteFill:o,absoluteFillObject:o,compose:function(t,o){return null!=t&&null!=o?[t,o]:null!=t?t:o},flatten:r(d[1]),setStyleAttributePreprocessor:function(t,o){var l;if(!0===r(d[2])[t])l={process:o};else{if('object'!=typeof r(d[2])[t])return void console.error(t+" is not a valid style attribute");l=r(d[3])({},r(d[2])[t],{process:o})}r(d[2])[t]=l},create:function(t){return t}}},183,[170,178,162,6]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=a(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=f?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[4]));function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(a=function(e){return e?r:t})(e)}var f=n.forwardRef(function(a,f){return n.createElement(r.default.Provider,{value:!1},n.createElement(t.default,(0,e.default)({},a,{ref:f})))});f.displayName='View',m.exports=f},184,[5,6,185,186,17]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.Commands=void 0;var e=a(_r(d[0])),t=_r(d[1])(_r(d[2])),r=_r(d[1])(_r(d[3])),n=_r(d[1])(_r(d[4]));a(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}function a(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var f=a?Object.getOwnPropertyDescriptor(e,u):null;f&&(f.get||f.set)?Object.defineProperty(n,u,f):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n}var u=e.get('RCTView',function(){return'android'===t.default.OS?n.default:{uiViewClassName:'RCTView'}}),f=(0,r.default)({supportedCommands:['hotspotUpdate','setPressed']});_e.Commands=f;var i=u;_e.default=i},185,[154,5,37,141,144,17]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).createContext(!1);m.exports=t},186,[17]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},187,[188]); -__d(function(g,_r,_i,_a,m,_e,d){'use strict';var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),u=_r(d[0])(_r(d[5])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var a=u?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(n,o,a):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[6])),a=_r(d[0])(_r(d[7]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var c=(function(a){(0,r.default)(s,a);var f,c,p=(f=s,c=l(),function(){var e,t=(0,u.default)(f);if(c){var r=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function s(){return(0,e.default)(this,s),p.apply(this,arguments)}return(0,t.default)(s,[{key:"render",value:function(){var e=_r(d[8]);return o.createElement(e,{style:[i.unimplementedView,this.props.style]},this.props.children)}}]),s})(o.Component),i=a.default.create({unimplementedView:{}});m.exports=c},188,[5,7,8,12,14,16,17,183,184]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('ActivityIndicatorView',{paperComponentName:'RCTActivityIndicatorView'});e.default=t},189,[5,190]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2]));var t=function(t,p){var l=p&&null!=p.paperComponentName?p.paperComponentName:t;if(null!=p&&null!=p.paperComponentNameDeprecated)if(o.default.getViewManagerConfig(t))l=t;else{var u;if(null==p.paperComponentNameDeprecated||!o.default.getViewManagerConfig(p.paperComponentNameDeprecated))throw new Error("Failed to find native component for either "+t+" or "+(null!=(u=p.paperComponentNameDeprecated)?u:'(unknown)'));l=p.paperComponentNameDeprecated}return(0,n.default)(l)};e.default=t},190,[5,191,155]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){return r(d[0])(n,function(){return r(d[1])(n)})}},191,[192,161]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).ReactNativeViewConfigRegistry.register;m.exports=function(n,s){return t(n,s)}},192,[136]); -__d(function(g,_r,_i,_a,m,_e,d){'use strict';var t=_r(d[0])(_r(d[1])),e=_r(d[0])(_r(d[2])),o=_r(d[0])(_r(d[3])),i=_r(d[0])(_r(d[4])),s=_r(d[0])(_r(d[5])),a=_r(d[0])(_r(d[6])),r=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=y(e);if(o&&o.has(t))return o.get(t);var i={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var r=s?Object.getOwnPropertyDescriptor(t,a):null;r&&(r.get||r.set)?Object.defineProperty(i,a,r):i[a]=t[a]}return i.default=t,o&&o.set(t,i),i})(_r(d[7])),n=_r(d[0])(_r(d[8])),l=_r(d[0])(_r(d[9])),c=_r(d[0])(_r(d[10])),u=_r(d[0])(_r(d[11])),f=_r(d[0])(_r(d[12])),p=_r(d[0])(_r(d[13])),b=_r(d[0])(_r(d[14]));function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(y=function(t){return t?o:e})(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}var v=(function(l){(0,i.default)(D,l);var y,v,x=(y=D,v=h(),function(){var t,e=(0,a.default)(y);if(v){var o=(0,a.default)(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return(0,s.default)(this,t)});function D(){return(0,e.default)(this,D),x.apply(this,arguments)}return(0,o.default)(D,[{key:"render",value:function(){var e,o,i=this.props,s=i.accessibilityLabel,a=i.color,l=i.onPress,y=i.touchSoundDisabled,h=i.title,v=i.hasTVPreferredFocus,x=i.nextFocusDown,D=i.nextFocusForward,O=i.nextFocusLeft,S=i.nextFocusRight,w=i.nextFocusUp,P=i.testID,A=i.accessible,_=i.accessibilityActions,k=i.accessibilityHint,j=i.onAccessibilityAction,R=[F.button],C=[F.text];a&&('ios'===n.default.OS?C.push({color:a}):R.push({backgroundColor:a}));var L=null!=this.props.disabled?this.props.disabled:null==(e=this.props.accessibilityState)?void 0:e.disabled,M=L!==(null==(o=this.props.accessibilityState)?void 0:o.disabled)?(0,t.default)({},this.props.accessibilityState,{disabled:L}):this.props.accessibilityState;L&&(R.push(F.buttonDisabled),C.push(F.textDisabled)),(0,b.default)('string'==typeof h,'The title prop of a Button must be a string');var W='android'===n.default.OS?h.toUpperCase():h,B='android'===n.default.OS?u.default:f.default;return r.createElement(B,{accessible:A,accessibilityActions:_,onAccessibilityAction:j,accessibilityLabel:s,accessibilityHint:k,accessibilityRole:"button",accessibilityState:M,hasTVPreferredFocus:v,nextFocusDown:x,nextFocusForward:D,nextFocusLeft:O,nextFocusRight:S,nextFocusUp:w,testID:P,disabled:L,onPress:l,touchSoundDisabled:y},r.createElement(p.default,{style:R},r.createElement(c.default,{style:C,disabled:L},W)))}}]),D})(r.Component),F=l.default.create({button:n.default.select({ios:{},android:{elevation:4,backgroundColor:'#2196F3',borderRadius:2}}),text:(0,t.default)({textAlign:'center',margin:8},n.default.select({ios:{color:'#007AFF',fontSize:18},android:{color:'white',fontWeight:'500'}})),buttonDisabled:n.default.select({ios:{},android:{elevation:0,backgroundColor:'#dfdfdf'}}),textDisabled:n.default.select({ios:{color:'#cdcdcd'},android:{color:'#a1a1a1'}})});m.exports=v},193,[5,6,7,8,12,14,16,17,37,183,194,219,220,184,36]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),n=_r(d[0])(_r(d[2])),o=_r(d[0])(_r(d[3])),t=_r(d[0])(_r(d[4])),r=(a(_r(d[5])),_r(d[0])(_r(d[6]))),s=(_r(d[0])(_r(d[7])),_r(d[0])(_r(d[8]))),l=_r(d[0])(_r(d[9])),u=a(_r(d[10]));_r(d[0])(_r(d[11]));function i(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,o=new WeakMap;return(i=function(e){return e?o:n})(e)}function a(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=i(n);if(o&&o.has(e))return o.get(e);var t={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var l=r?Object.getOwnPropertyDescriptor(e,s):null;l&&(l.get||l.set)?Object.defineProperty(t,s,l):t[s]=e[s]}return t.default=e,o&&o.set(e,t),t}var p=u.forwardRef(function(t,i){var a=t.accessible,p=t.allowFontScaling,c=t.ellipsizeMode,R=t.onLongPress,v=t.onPress,P=t.onPressIn,S=t.onPressOut,b=t.onResponderGrant,O=t.onResponderMove,T=t.onResponderRelease,h=t.onResponderTerminate,y=t.onResponderTerminationRequest,M=t.onStartShouldSetResponder,w=t.pressRetentionOffset,_=t.suppressHighlighting,E=(0,o.default)(t,["accessible","allowFontScaling","ellipsizeMode","onLongPress","onPress","onPressIn","onPressOut","onResponderGrant","onResponderMove","onResponderRelease","onResponderTerminate","onResponderTerminationRequest","onStartShouldSetResponder","pressRetentionOffset","suppressHighlighting"]),C=(0,u.useState)(!1),L=(0,n.default)(C,2),j=L[0],x=L[1],D=(null!=v||null!=R||null!=M)&&!0!==E.disabled,q=f(D),G=(0,u.useMemo)(function(){return q?{disabled:!D,pressRectOffset:w,onLongPress:R,onPress:v,onPressIn:function(e){x(!_),null==P||P(e)},onPressOut:function(e){x(!1),null==S||S(e)},onResponderTerminationRequest_DEPRECATED:y,onStartShouldSetResponder_DEPRECATED:M}:null},[q,D,w,R,v,P,S,y,M,_]),H=(0,r.default)(G),k=(0,u.useMemo)(function(){return null==H?null:{onResponderGrant:function(e){H.onResponderGrant(e),null!=b&&b(e)},onResponderMove:function(e){H.onResponderMove(e),null!=O&&O(e)},onResponderRelease:function(e){H.onResponderRelease(e),null!=T&&T(e)},onResponderTerminate:function(e){H.onResponderTerminate(e),null!=h&&h(e)},onResponderTerminationRequest:H.onResponderTerminationRequest,onStartShouldSetResponder:H.onStartShouldSetResponder}},[H,b,O,T,h]),z=null==E.selectionColor?null:(0,s.default)(E.selectionColor),F=E.style,I=E.numberOfLines;return null==I||I>=0||(console.error("'numberOfLines' in must be a non-negative number, received: "+I+". The value will be set to 0."),I=0),(0,u.useContext)(l.default)?u.createElement(_r(d[12]).NativeVirtualText,(0,e.default)({},E,k,{isHighlighted:j,numberOfLines:I,selectionColor:z,style:F,ref:i})):u.createElement(l.default.Provider,{value:!0},u.createElement(_r(d[12]).NativeText,(0,e.default)({},E,k,{accessible:!1!==a,allowFontScaling:!1!==p,ellipsizeMode:null!=c?c:'tail',isHighlighted:j,numberOfLines:I,selectionColor:z,style:F,ref:i})))});function f(e){var o=(0,u.useState)(e),t=(0,n.default)(o,2),r=t[0],s=t[1];return!r&&e&&s(e),r}p.displayName='Text',p.propTypes=t.default,m.exports=p},194,[5,6,41,108,195,209,210,183,145,186,17,36,217]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1]));m.exports={ellipsizeMode:r(d[2]).oneOf(['head','middle','tail','clip']),numberOfLines:r(d[2]).number,textBreakStrategy:r(d[2]).oneOf(['simple','highQuality','balanced']),onLayout:r(d[2]).func,onPress:r(d[2]).func,onLongPress:r(d[2]).func,pressRetentionOffset:r(d[3]),selectable:r(d[2]).bool,selectionColor:r(d[4]),suppressHighlighting:r(d[2]).bool,style:o,testID:r(d[2]).string,nativeID:r(d[2]).string,allowFontScaling:r(d[2]).bool,maxFontSizeMultiplier:r(d[2]).number,accessible:r(d[2]).bool,adjustsFontSizeToFit:r(d[2]).bool,minimumFontScale:r(d[2]).number,disabled:r(d[2]).bool,dataDetectorType:r(d[2]).oneOf(['phoneNumber','link','email','none','all'])}},195,[196,198,201,208,205]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){var t=r(d[0])(n);return function(n,o,c,u){var f=n;n[o]&&((f={})[o]=r(d[1])(n[o]));for(var v=arguments.length,p=new Array(v>4?v-4:0),s=4;s5?v-5:0),j=5;j4?s-4:0),p=4;p3?f-3:0),p=3;p0?E._pressDelayTimeout=setTimeout(function(){E._receiveSignal('DELAY',e)},t):E._receiveSignal('DELAY',e);var n=D(E._config.delayLongPress,10,500-t);E._longPressDelayTimeout=setTimeout(function(){E._handleLongPress(e)},n+t)},onResponderMove:function(e){var t=E._config.onPressMove;null!=t&&t(e);var n=E._responderRegion;if(null!=n){var R=h(e);if(null==R)return E._cancelLongPressDelayTimeout(),void E._receiveSignal('LEAVE_PRESS_RECT',e);if(null!=E._touchActivatePosition){var _=E._touchActivatePosition.pageX-R.pageX,i=E._touchActivatePosition.pageY-R.pageY;Math.hypot(_,i)>10&&E._cancelLongPressDelayTimeout()}E._isTouchWithinResponderRegion(R,n)?E._receiveSignal('ENTER_PRESS_RECT',e):(E._cancelLongPressDelayTimeout(),E._receiveSignal('LEAVE_PRESS_RECT',e))}},onResponderRelease:function(e){E._receiveSignal('RESPONDER_RELEASE',e)},onResponderTerminate:function(e){E._receiveSignal('RESPONDER_TERMINATED',e)},onResponderTerminationRequest:function(){var e=E._config.cancelable;if(null==e){var t=E._config.onResponderTerminationRequest_DEPRECATED;return null==t||t()}return e},onClick:function(e){var t=E._config,n=t.onPress,R=t.disabled;null!=n&&!0!==R&&n(e)}},R='ios'===i.default.OS||'android'===i.default.OS?null:{onMouseEnter:function(e){if((0,_r(d[10]).isHoverEnabled)()){E._isHovered=!0,E._cancelHoverOutDelayTimeout();var t=E._config.onHoverIn;if(null!=t){var n=D(E._config.delayHoverIn);n>0?(e.persist(),E._hoverInDelayTimeout=setTimeout(function(){t(e)},n)):t(e)}}},onMouseLeave:function(e){if(E._isHovered){E._isHovered=!1,E._cancelHoverInDelayTimeout();var t=E._config.onHoverOut;if(null!=t){var n=D(E._config.delayHoverOut);n>0?(e.persist(),E._hoverInDelayTimeout=setTimeout(function(){t(e)},n)):t(e)}}}};return(0,e.default)({},t,n,R)}},{key:"_receiveSignal",value:function(e,E){var t;null!=E.nativeEvent.timestamp&&_.default.emitEvent(function(){return{signal:e,nativeTimestamp:E.nativeEvent.timestamp}});var R=this._touchState,i=null==(t=u[R])?void 0:t[e];null==this._responderID&&'RESPONDER_RELEASE'===e||((0,n.default)(null!=i&&'ERROR'!==i,'Pressability: Invalid signal `%s` for state `%s` on responder: %s',e,R,'number'==typeof this._responderID?this._responderID:'<>'),R!==i&&(this._performTransitionSideEffects(R,i,e,E),this._touchState=i))}},{key:"_performTransitionSideEffects",value:function(e,E,t,n){S(t)&&(this._touchActivatePosition=null,this._cancelLongPressDelayTimeout());var _='NOT_RESPONDER'===e&&'RESPONDER_INACTIVE_PRESS_IN'===E,o=!s(e)&&s(E);if((_||o)&&this._measureResponderRegion(),a(e)&&'LONG_PRESS_DETECTED'===t){var l=this._config.onLongPress;null!=l&&l(n)}var u=r(e),T=r(E);if(!u&&T?this._activate(n):u&&!T&&this._deactivate(n),a(e)&&'RESPONDER_RELEASE'===t){T||u||(this._activate(n),this._deactivate(n));var P=this._config,O=P.onLongPress,c=P.onPress,N=P.android_disableSound;if(null!=c)null!=O&&'RESPONDER_ACTIVE_LONG_PRESS_IN'===e&&this._shouldLongPressCancelPress()||('android'===i.default.OS&&!0!==N&&R.default.playTouchSound(),c(n))}this._cancelPressDelayTimeout()}},{key:"_activate",value:function(e){var E=this._config.onPressIn,t=h(e),n=t.pageX,R=t.pageY;this._touchActivatePosition={pageX:n,pageY:R},this._touchActivateTime=Date.now(),null!=E&&E(e)}},{key:"_deactivate",value:function(e){var E=this._config.onPressOut;if(null!=E){var t,n=D(this._config.minPressDuration,0,130),R=Date.now()-(null!=(t=this._touchActivateTime)?t:0),_=Math.max(n-R,D(this._config.delayPressOut));_>0?(e.persist(),this._pressOutDelayTimeout=setTimeout(function(){E(e)},_)):E(e)}this._touchActivateTime=null}},{key:"_measureResponderRegion",value:function(){null!=this._responderID&&('number'==typeof this._responderID?o.default.measure(this._responderID,this._measureCallback):this._responderID.measure(this._measureCallback))}},{key:"_isTouchWithinResponderRegion",value:function(e,E){var t,n,R,_,i=(0,_r(d[11]).normalizeRect)(this._config.hitSlop),o=(0,_r(d[11]).normalizeRect)(this._config.pressRectOffset),l=E.bottom,u=E.left,r=E.right,s=E.top;return null!=i&&(null!=i.bottom&&(l+=i.bottom),null!=i.left&&(u-=i.left),null!=i.right&&(r+=i.right),null!=i.top&&(s-=i.top)),l+=null!=(t=null==o?void 0:o.bottom)?t:T,u-=null!=(n=null==o?void 0:o.left)?n:P,r+=null!=(R=null==o?void 0:o.right)?R:O,s-=null!=(_=null==o?void 0:o.top)?_:c,e.pageX>u&&e.pageXs&&e.pageY1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Math.max(E,null!=e?e:t)}_e.default=N;var h=function(e){var E=e.nativeEvent,t=E.changedTouches,n=E.touches;return null!=n&&n.length>0?n[0]:null!=t&&t.length>0?t[0]:e.nativeEvent}},211,[5,6,7,8,36,212,214,37,155,17,215,216]); -__d(function(g,r,i,a,m,e,d){var u=r(d[0])(r(d[1])),o={playTouchSound:function(){u.default&&u.default.playTouchSound()}};m.exports=o},212,[5,213]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('SoundManager');_e.default=t},213,[39]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=new((function(){function s(){(0,t.default)(this,s),this._listeners=[]}return(0,n.default)(s,[{key:"addListener",value:function(t){this._listeners.push(t)}},{key:"removeListener",value:function(t){var n=this._listeners.indexOf(t);n>-1&&this._listeners.splice(n,1)}},{key:"emitEvent",value:function(t){if(0!==this._listeners.length){var n=t();this._listeners.forEach(function(t){return t(n)})}}}]),s})());e.default=s},214,[5,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.isHoverEnabled=function(){return n};var n=!1;if('web'===r(d[0])(r(d[1])).default.OS&&Boolean('undefined'!=typeof window&&window.document&&window.document.createElement)){var t=0,o=function(){t=Date.now(),n&&(n=!1)};document.addEventListener('touchstart',o,!0),document.addEventListener('touchmove',o,!0),document.addEventListener('mousemove',function(){n||Date.now()-t<1e3||(n=!0)},!0)}},215,[5,37]); -__d(function(g,r,i,a,m,e,d){function t(t){return{bottom:t,left:t,right:t,top:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.createSquare=t,e.normalizeRect=function(n){return'number'==typeof n?t(n):n}},216,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeVirtualText=e.NativeText=void 0;var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),u=(0,o.default)('RCTText',function(){return{validAttributes:(0,t.default)({},l.default.UIView,{isHighlighted:!0,numberOfLines:!0,ellipsizeMode:!0,allowFontScaling:!0,maxFontSizeMultiplier:!0,disabled:!0,selectable:!0,selectionColor:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,textBreakStrategy:!0,onTextLayout:!0,onInlineViewLayout:!0,dataDetectorType:!0,android_hyphenationFrequency:!0}),directEventTypes:{topTextLayout:{registrationName:'onTextLayout'},topInlineViewLayout:{registrationName:'onInlineViewLayout'}},uiViewClassName:'RCTText'}});e.NativeText=u;var s=g.RN$Bridgeless||n.default.hasViewManagerConfig('RCTVirtualText')?(0,o.default)('RCTVirtualText',function(){return{validAttributes:(0,t.default)({},l.default.UIView,{isHighlighted:!0,maxFontSizeMultiplier:!0}),uiViewClassName:'RCTVirtualText'}}):u;e.NativeVirtualText=s},217,[5,6,218,155,192]); -__d(function(g,r,i,a,m,e,d){'use strict';var s=r(d[0])(r(d[1])),t={pointerEvents:!0,accessible:!0,accessibilityActions:!0,accessibilityLabel:!0,accessibilityLiveRegion:!0,accessibilityRole:!0,accessibilityState:!0,accessibilityValue:!0,accessibilityHint:!0,importantForAccessibility:!0,nativeID:!0,testID:!0,renderToHardwareTextureAndroid:!0,shouldRasterizeIOS:!0,onLayout:!0,onAccessibilityAction:!0,onAccessibilityTap:!0,onMagicTap:!0,onAccessibilityEscape:!0,collapsable:!0,needsOffscreenAlphaCompositing:!0,style:r(d[0])(r(d[2])).default},c={UIView:t,RCTView:(0,s.default)({},t,{removeClippedSubviews:!0})};m.exports=c},218,[5,6,162]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),s=_r(d[0])(_r(d[3])),i=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5])),n=_r(d[0])(_r(d[6])),r=_r(d[0])(_r(d[7])),a=_r(d[0])(_r(d[8])),l=_r(d[0])(_r(d[9])),c=_r(d[0])(_r(d[10])),p=(_r(d[0])(_r(d[11])),_r(d[0])(_r(d[12]))),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var s=h(t);if(s&&s.has(e))return s.get(e);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if("default"!==n&&Object.prototype.hasOwnProperty.call(e,n)){var r=o?Object.getOwnPropertyDescriptor(e,n):null;r&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=e[n]}return i.default=e,s&&s.set(e,i),i})(_r(d[13])),f=_r(d[0])(_r(d[14]));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,s=new WeakMap;return(h=function(e){return e?s:t})(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=(function(p){(0,o.default)(P,p);var f,h,y=(f=P,h=b(),function(){var e,t=(0,r.default)(f);if(h){var s=(0,r.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function P(){var e;(0,s.default)(this,P);for(var t=arguments.length,i=new Array(t),o=0;o=23};var v='android'===c.default.OS?function(e,t){return t&&y.canUseNativeForeground()?{nativeForegroundAndroid:e}:{nativeBackgroundAndroid:e}}:function(e,t){return null};y.displayName='TouchableNativeFeedback',m.exports=y},219,[5,6,108,7,8,12,14,16,211,54,37,184,145,17,36,185]); -__d(function(g,_r,_i,_a,m,_e,d){var t=_r(d[0])(_r(d[1])),e=_r(d[0])(_r(d[2])),s=_r(d[0])(_r(d[3])),i=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5])),n=_r(d[0])(_r(d[6])),r=_r(d[0])(_r(d[7])),a=_r(d[0])(_r(d[8])),l=_r(d[0])(_r(d[9])),p=_r(d[0])(_r(d[10])),c=_r(d[0])(_r(d[11])),u=_r(d[0])(_r(d[12])),f=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=y(e);if(s&&s.has(t))return s.get(t);var i={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in t)if("default"!==n&&Object.prototype.hasOwnProperty.call(t,n)){var r=o?Object.getOwnPropertyDescriptor(t,n):null;r&&(r.get||r.set)?Object.defineProperty(i,n,r):i[n]=t[n]}return i.default=t,s&&s.set(t,i),i})(_r(d[13]));function y(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(y=function(t){return t?s:e})(t)}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}var b=(function(y){(0,o.default)(O,y);var b,v,P=(b=O,v=h(),function(){var t,e=(0,r.default)(b);if(v){var s=(0,r.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,n.default)(this,t)});function O(){var t;(0,s.default)(this,O);for(var e=arguments.length,i=new Array(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{}).iterations;return t},event:r(d[5]).event,createAnimatedComponent:r(d[6]),attachNativeEvent:r(d[7]).attachNativeEvent,forkEvent:r(d[5]).forkEvent,unforkEvent:r(d[5]).unforkEvent,Event:r(d[7]).AnimatedEvent}},222,[6,223,232,227,229,233,249,248]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t=function(){return!!n})()}function n(t){var n=new Set;!(function t(s){'function'==typeof s.update?n.add(s):s.__getChildren().forEach(t)})(t),n.forEach(function(t){return t.update()})}var s=(function(s){r(d[3])(l,s);var u,o,_=(u=l,o=t(),function(){var t,n=r(d[0])(u);if(o){var s=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function l(t){var n;if(r(d[4])(this,l),n=_.call(this),'number'!=typeof t)throw new Error('AnimatedValue: Attempting to set value to undefined');return n._startingValue=n._value=t,n._offset=0,n._animation=null,n}return r(d[5])(l,[{key:"__detach",value:function(){var t=this;this.__isNative&&r(d[2]).API.getValue(this.__getNativeTag(),function(n){t._value=n}),this.stopAnimation(),r(d[6])(r(d[0])(l.prototype),"__detach",this).call(this)}},{key:"__getValue",value:function(){return this._value+this._offset}},{key:"setValue",value:function(t){var n,s,u=this;this._animation&&(this._animation.stop(),this._animation=null),this._updateValue(t,!this.__isNative),this.__isNative&&(n=this.__getNativeTag().toString(),s=function(){r(d[2]).API.setAnimatedNodeValue(u.__getNativeTag(),t)},r(d[2]).API.setWaitingForIdentifier(n),s(),r(d[2]).API.unsetWaitingForIdentifier(n))}},{key:"setOffset",value:function(t){this._offset=t,this.__isNative&&r(d[2]).API.setAnimatedNodeOffset(this.__getNativeTag(),t)}},{key:"flattenOffset",value:function(){this._value+=this._offset,this._offset=0,this.__isNative&&r(d[2]).API.flattenAnimatedNodeOffset(this.__getNativeTag())}},{key:"extractOffset",value:function(){this._offset+=this._value,this._value=0,this.__isNative&&r(d[2]).API.extractAnimatedNodeOffset(this.__getNativeTag())}},{key:"stopAnimation",value:function(t){this.stopTracking(),this._animation&&this._animation.stop(),this._animation=null,t&&t(this.__getValue())}},{key:"resetAnimation",value:function(t){this.stopAnimation(t),this._value=this._startingValue,this.__isNative&&r(d[2]).API.setAnimatedNodeValue(this.__getNativeTag(),this._startingValue)}},{key:"_onAnimatedValueUpdateReceived",value:function(t){this._updateValue(t,!1)}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"animate",value:function(t,n){var s=this,u=null;t.__isInteraction&&(u=r(d[8]).createInteractionHandle());var o=this._animation;this._animation&&this._animation.stop(),this._animation=t,t.start(this._value,function(t){s._updateValue(t,!0)},function(t){s._animation=null,null!==u&&r(d[8]).clearInteractionHandle(u),n&&n(t)},o,this)}},{key:"stopTracking",value:function(){this._tracking&&this._tracking.__detach(),this._tracking=null}},{key:"track",value:function(t){this.stopTracking(),this._tracking=t}},{key:"_updateValue",value:function(t,s){if(void 0===t)throw new Error('AnimatedValue: Attempting to set value to undefined');this._value=t,s&&n(this),r(d[6])(r(d[0])(l.prototype),"__callListeners",this).call(this,this.__getValue())}},{key:"__getNativeConfig",value:function(){return{type:'value',value:this._value,offset:this._offset}}}]),l})(r(d[9]));m.exports=s},223,[16,14,224,12,7,8,90,227,230,228]); -__d(function(g,r,i,a,m,e,d){var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),f='ios'===l.default.OS&&!0===g.RN$Bridgeless?o.default:n.default,c=1,v=1,p=new Set,N=!1,b=[],A={getValue:function(t,n){(0,s.default)(f,'Native animated module is not available'),A.queueOperation(function(){f.getValue(t,n)})},setWaitingForIdentifier:function(t){p.add(t),N=!0},unsetWaitingForIdentifier:function(t){p.delete(t),0===p.size&&(N=!1,A.disableQueue())},disableQueue:function(){(0,s.default)(f,'Native animated module is not available'),'android'===l.default.OS&&f.startOperationBatch();for(var t=0,n=b.length;ta){if('identity'===p)return l;'clamp'===p&&(l=a)}return r===i?r:n===a?t<=n?r:i:(n===-1/0?l=-l:a===1/0?l-=n:l=(l-n)/(a-n),l=o(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function i(t){var n=_r(d[3])(t);return null===n||'number'!=typeof n?t:"rgba("+((4278190080&(n=n||0))>>>24)+", "+((16711680&n)>>>16)+", "+((65280&n)>>>8)+", "+(255&n)/255+")"}var o=/[+-]?(?:\d+\.?\d*|\.\d+)(?:[eE][+-]?\d+)?/g;function u(t){var n=t.outputRange;_r(d[2])(n.length>=2,'Bad output range'),p(n=n.map(i));var r=n[0].match(o).map(function(){return[]});n.forEach(function(t){t.match(o).forEach(function(t,n){r[n].push(+t)})});var u,l=n[0].match(o).map(function(n,i){return a(_r(d[4])({},t,{outputRange:r[i]}))}),c='string'==typeof(u=n[0])&&u.startsWith('rgb');return function(t){var a=0;return n[0].replace(o,function(){var n=+l[a++](t);return c&&(n=a<4?Math.round(n):Math.round(1e3*n)/1e3),String(n)})}}function p(t){for(var n=t[0].replace(o,''),a=1;a=t);++a);return a-1}function c(t){_r(d[2])(t.length>=2,'inputRange must have at least 2 elements');for(var n=1;n=t[n-1],'inputRange must be monotonically non-decreasing '+t)}function f(t,n){_r(d[2])(n.length>=2,t+' must have at least 2 elements'),_r(d[2])(2!==n.length||n[0]!==-1/0||n[1]!==1/0,t+'cannot be ]-infinity;+infinity[ '+n)}var h=(function(n){_r(d[5])(u,n);var r,i,o=(r=u,i=t(),function(){var t,n=_r(d[0])(r);if(i){var a=_r(d[0])(this).constructor;t=Reflect.construct(n,arguments,a)}else t=n.apply(this,arguments);return _r(d[1])(this,t)});function u(t,n){var r;return _r(d[6])(this,u),(r=o.call(this))._parent=t,r._config=n,r._interpolation=a(n),r}return _r(d[7])(u,[{key:"__makeNative",value:function(){this._parent.__makeNative(),_r(d[8])(_r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._parent.__getValue();return _r(d[2])('number'==typeof t,'Cannot interpolate an input which is not a number.'),this._interpolation(t)}},{key:"interpolate",value:function(t){return new u(this,t)}},{key:"__attach",value:function(){this._parent.__addChild(this)}},{key:"__detach",value:function(){this._parent.__removeChild(this),_r(d[8])(_r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__transformDataType",value:function(t){return t.map(_r(d[9]).transformDataType)}},{key:"__getNativeConfig",value:function(){return{inputRange:this._config.inputRange,outputRange:this.__transformDataType(this._config.outputRange),extrapolateLeft:this._config.extrapolateLeft||this._config.extrapolate||'extend',extrapolateRight:this._config.extrapolateRight||this._config.extrapolate||'extend',type:'interpolation'}}}]),u})(_r(d[10]));h.__createInterpolation=a,m.exports=h},227,[16,14,36,146,6,12,7,8,90,224,228]); -__d(function(g,r,_i,a,m,e,d){'use strict';function t(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=i(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var l=0;return function(){return l>=t.length?{done:!0}:{done:!1,value:t[l++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){if(t){if("string"==typeof t)return n(t,i);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?n(t,i):void 0}}function n(t,i){(null==i||i>t.length)&&(i=t.length);for(var n=0,o=new Array(i);n0?setTimeout(h,0):setImmediate(h))}function h(){l=0;var f=o.size;c.forEach(function(n){return o.add(n)}),s.forEach(function(n){return o.delete(n)});var h=o.size;if(0!==f&&0===h?n.emit(t.Events.interactionComplete):0===f&&0!==h&&n.emit(t.Events.interactionStart),0===h)for(;u.hasTasksToProcess();)if(u.processNext(),p>0&&r(d[4]).getEventLoopRunningTime()>=p){v();break}c.clear(),s.clear()}m.exports=t},230,[5,31,36,231,45]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=(function(){function e(t){var u=t.onMoreTasks;r(d[0])(this,e),this._onMoreTasks=u,this._queueStack=[{tasks:[],popable:!1}]}return r(d[1])(e,[{key:"enqueue",value:function(e){this._getCurrentQueue().push(e)}},{key:"enqueueTasks",value:function(e){var t=this;e.forEach(function(e){return t.enqueue(e)})}},{key:"cancelTasks",value:function(e){this._queueStack=this._queueStack.map(function(t){return r(d[2])({},t,{tasks:t.tasks.filter(function(t){return-1===e.indexOf(t)})})}).filter(function(e,t){return e.tasks.length>0||0===t})}},{key:"hasTasksToProcess",value:function(){return this._getCurrentQueue().length>0}},{key:"processNext",value:function(){var e=this._getCurrentQueue();if(e.length){var t=e.shift();try{'object'==typeof t&&t.gen?this._genPromise(t):'object'==typeof t&&t.run?t.run():(r(d[3])('function'==typeof t,'Expected Function, SimpleTask, or PromiseTask, but got:\n'+JSON.stringify(t,null,2)),t())}catch(e){throw e.message='TaskQueue: Error with task '+(t.name||'')+': '+e.message,e}}}},{key:"_getCurrentQueue",value:function(){var e=this._queueStack.length-1,t=this._queueStack[e];return t.popable&&0===t.tasks.length&&this._queueStack.length>1?(this._queueStack.pop(),this._getCurrentQueue()):t.tasks}},{key:"_genPromise",value:function(e){var t=this;this._queueStack.push({tasks:[],popable:!1});var u=this._queueStack.length-1,s=this._queueStack[u];e.gen().then(function(){s.popable=!0,t.hasTasksToProcess()&&t._onMoreTasks()}).catch(function(t){throw t.message="TaskQueue: Error resolving Promise in task "+e.name+": "+t.message,t}).done()}}]),e})();m.exports=e},231,[7,8,6,36]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t=function(){return!!n})()}var n=1,s=(function(s){r(d[2])(f,s);var u,l,o=(u=f,l=t(),function(){var t,n=r(d[0])(u);if(l){var s=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function f(t){var n;r(d[3])(this,f),n=o.call(this);var s=t||{x:0,y:0};return'number'==typeof s.x&&'number'==typeof s.y?(n.x=new(r(d[4]))(s.x),n.y=new(r(d[4]))(s.y)):(r(d[5])(s.x instanceof r(d[4])&&s.y instanceof r(d[4]),"AnimatedValueXY must be initialized with an object of numbers or AnimatedValues."),n.x=s.x,n.y=s.y),n._listeners={},n}return r(d[6])(f,[{key:"setValue",value:function(t){this.x.setValue(t.x),this.y.setValue(t.y)}},{key:"setOffset",value:function(t){this.x.setOffset(t.x),this.y.setOffset(t.y)}},{key:"flattenOffset",value:function(){this.x.flattenOffset(),this.y.flattenOffset()}},{key:"extractOffset",value:function(){this.x.extractOffset(),this.y.extractOffset()}},{key:"__getValue",value:function(){return{x:this.x.__getValue(),y:this.y.__getValue()}}},{key:"resetAnimation",value:function(t){this.x.resetAnimation(),this.y.resetAnimation(),t&&t(this.__getValue())}},{key:"stopAnimation",value:function(t){this.x.stopAnimation(),this.y.stopAnimation(),t&&t(this.__getValue())}},{key:"addListener",value:function(t){var s=this,u=String(n++),l=function(n){n.value;t(s.__getValue())};return this._listeners[u]={x:this.x.addListener(l),y:this.y.addListener(l)},u}},{key:"removeListener",value:function(t){this.x.removeListener(this._listeners[t].x),this.y.removeListener(this._listeners[t].y),delete this._listeners[t]}},{key:"removeAllListeners",value:function(){this.x.removeAllListeners(),this.y.removeAllListeners(),this._listeners={}}},{key:"getLayout",value:function(){return{left:this.x,top:this.y}}},{key:"getTranslateTransform",value:function(){return[{translateX:this.x},{translateY:this.y}]}}]),f})(r(d[7]));m.exports=s},232,[16,14,12,7,223,36,8,228]); -__d(function(g,r,_i,_a,m,e,d){'use strict';var n=function(n,t){return n&&t.onComplete?function(){t.onComplete&&t.onComplete.apply(t,arguments),n&&n.apply(void 0,arguments)}:n||t.onComplete},t=function(n,t,i){if(n instanceof r(d[6])){var o=r(d[7])({},t),u=r(d[7])({},t);for(var s in t){var c=t[s],f=c.x,v=c.y;void 0!==f&&void 0!==v&&(o[s]=f,u[s]=v)}var p=i(n.x,o),l=i(n.y,u);return a([p,l],{stopTogether:!1})}return null},i=function i(o,a){var u=function(t,i,o){o=n(o,i);var a=t,u=i;a.stopTracking(),i.toValue instanceof r(d[8])?a.track(new(r(d[9]))(a,i.toValue,r(d[11]),u,o)):a.animate(new(r(d[11]))(u),o)};return t(o,a,i)||{start:function(n){u(o,a,n)},stop:function(){o.stopAnimation()},reset:function(){o.resetAnimation()},_startNativeLoop:function(n){var t=r(d[7])({},a,{iterations:n});u(o,t)},_isUsingNativeDriver:function(){return a.useNativeDriver||!1}}},o=function(n){var t=0;return{start:function(i){0===n.length?i&&i({finished:!0}):n[t].start(function o(a){a.finished&&++t!==n.length?n[t].start(o):i&&i(a)})},stop:function(){t1&&void 0!==arguments[1]?arguments[1]:{},i=t.iterations,o=void 0===i?-1:i,a=t.resetBeforeIteration,u=void 0===a||a,s=!1,c=0;return{start:function(t){n&&0!==o?n._isUsingNativeDriver()?n._startNativeLoop(o):(function i(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{finished:!0};s||c===o||!1===a.finished?t&&t(a):(c++,u&&n.reset(),n.start(i))})():t&&t({finished:!0})},stop:function(){s=!0,n.stop()},reset:function(){c=0,s=!1,n.reset()},_startNativeLoop:function(){throw new Error('Loops run using the native driver cannot contain Animated.loop animations')},_isUsingNativeDriver:function(){return n._isUsingNativeDriver()}}},event:function(n,t){var i=new(r(d[14]).AnimatedEvent)(n,t);return i.__isNative?i:i.__getHandler()},createAnimatedComponent:r(d[16]),attachNativeEvent:r(d[14]).attachNativeEvent,forkEvent:function(n,t){return n?n instanceof r(d[14]).AnimatedEvent?(n.__addListener(t),n):function(){'function'==typeof n&&n.apply(void 0,arguments),t.apply(void 0,arguments)}:t},unforkEvent:function(n,t){n&&n instanceof r(d[14]).AnimatedEvent&&n.__removeListener(t)},Event:r(d[14]).AnimatedEvent}},233,[234,235,236,237,238,239,232,6,229,240,241,244,247,223,248,227,249]); -__d(function(g,r,i,_a,m,e,d){'use strict';function t(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(t=function(){return!!a})()}var a=(function(a){r(d[2])(o,a);var n,_,u=(n=o,_=t(),function(){var t,a=r(d[0])(n);if(_){var u=r(d[0])(this).constructor;t=Reflect.construct(a,arguments,u)}else t=a.apply(this,arguments);return r(d[1])(this,t)});function o(t,a){var n;return r(d[3])(this,o),(n=u.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof a?new(r(d[4]))(a):a,n}return r(d[5])(o,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()+this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'addition',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),o})(r(d[8]));m.exports=a},234,[16,14,12,7,223,8,90,227,228]); -__d(function(g,r,i,_a,m,e,d){'use strict';function t(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(t=function(){return!!a})()}var a=(function(a){r(d[2])(o,a);var n,_,u=(n=o,_=t(),function(){var t,a=r(d[0])(n);if(_){var u=r(d[0])(this).constructor;t=Reflect.construct(a,arguments,u)}else t=a.apply(this,arguments);return r(d[1])(this,t)});function o(t,a){var n;return r(d[3])(this,o),(n=u.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof a?new(r(d[4]))(a):a,n}return r(d[5])(o,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()-this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'subtraction',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),o})(r(d[8]));m.exports=a},235,[16,14,12,7,223,8,90,227,228]); -__d(function(g,r,i,_a,m,e,d){'use strict';function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t=function(){return!!n})()}var n=(function(n){r(d[2])(u,n);var a,o,_=(a=u,o=t(),function(){var t,n=r(d[0])(a);if(o){var _=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,_)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function u(t,n){var a;return r(d[3])(this,u),(a=_.call(this))._warnedAboutDivideByZero=!1,(0===n||n instanceof r(d[4])&&0===n.__getValue())&&console.error('Detected potential division by zero in AnimatedDivision'),a._a='number'==typeof t?new(r(d[5]))(t):t,a._b='number'==typeof n?new(r(d[5]))(n):n,a}return r(d[6])(u,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[7])(r(d[0])(u.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),n=this._b.__getValue();return 0===n?(this._warnedAboutDivideByZero||(console.error('Detected division by zero in AnimatedDivision'),this._warnedAboutDivideByZero=!0),0):(this._warnedAboutDivideByZero=!1,t/n)}},{key:"interpolate",value:function(t){return new(r(d[8]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[7])(r(d[0])(u.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'division',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),u})(r(d[9]));m.exports=n},236,[16,14,12,7,229,223,8,90,227,228]); -__d(function(g,r,i,_a,m,e,d){'use strict';function t(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(t=function(){return!!a})()}var a=(function(a){r(d[2])(o,a);var n,_,u=(n=o,_=t(),function(){var t,a=r(d[0])(n);if(_){var u=r(d[0])(this).constructor;t=Reflect.construct(a,arguments,u)}else t=a.apply(this,arguments);return r(d[1])(this,t)});function o(t,a){var n;return r(d[3])(this,o),(n=u.call(this))._a='number'==typeof t?new(r(d[4]))(t):t,n._b='number'==typeof a?new(r(d[4]))(a):a,n}return r(d[5])(o,[{key:"__makeNative",value:function(){this._a.__makeNative(),this._b.__makeNative(),r(d[6])(r(d[0])(o.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return this._a.__getValue()*this._b.__getValue()}},{key:"interpolate",value:function(t){return new(r(d[7]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this),this._b.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),this._b.__removeChild(this),r(d[6])(r(d[0])(o.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'multiplication',input:[this._a.__getNativeTag(),this._b.__getNativeTag()]}}}]),o})(r(d[8]));m.exports=a},237,[16,14,12,7,223,8,90,227,228]); -__d(function(g,r,i,_a,m,e,d){'use strict';function t(){try{var u=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(u){}return(t=function(){return!!u})()}var u=(function(u){r(d[2])(_,u);var a,n,o=(a=_,n=t(),function(){var t,u=r(d[0])(a);if(n){var o=r(d[0])(this).constructor;t=Reflect.construct(u,arguments,o)}else t=u.apply(this,arguments);return r(d[1])(this,t)});function _(t,u){var a;return r(d[3])(this,_),(a=o.call(this))._a=t,a._modulus=u,a}return r(d[4])(_,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(_.prototype),"__makeNative",this).call(this)}},{key:"__getValue",value:function(){return(this._a.__getValue()%this._modulus+this._modulus)%this._modulus}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(_.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'modulus',input:this._a.__getNativeTag(),modulus:this._modulus}}}]),_})(r(d[7]));m.exports=u},238,[16,14,12,7,8,90,227,228]); -__d(function(g,r,i,_a,m,e,d){'use strict';function t(){try{var a=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(a){}return(t=function(){return!!a})()}var a=(function(a){r(d[2])(l,a);var n,_,u=(n=l,_=t(),function(){var t,a=r(d[0])(n);if(_){var u=r(d[0])(this).constructor;t=Reflect.construct(a,arguments,u)}else t=a.apply(this,arguments);return r(d[1])(this,t)});function l(t,a,n){var _;return r(d[3])(this,l),(_=u.call(this))._a=t,_._min=a,_._max=n,_._value=_._lastValue=_._a.__getValue(),_}return r(d[4])(l,[{key:"__makeNative",value:function(){this._a.__makeNative(),r(d[5])(r(d[0])(l.prototype),"__makeNative",this).call(this)}},{key:"interpolate",value:function(t){return new(r(d[6]))(this,t)}},{key:"__getValue",value:function(){var t=this._a.__getValue(),a=t-this._lastValue;return this._lastValue=t,this._value=Math.min(Math.max(this._value+a,this._min),this._max),this._value}},{key:"__attach",value:function(){this._a.__addChild(this)}},{key:"__detach",value:function(){this._a.__removeChild(this),r(d[5])(r(d[0])(l.prototype),"__detach",this).call(this)}},{key:"__getNativeConfig",value:function(){return{type:'diffclamp',input:this._a.__getNativeTag(),min:this._min,max:this._max}}}]),l})(r(d[7]));m.exports=a},239,[16,14,12,7,8,90,227,228]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t=function(){return!!n})()}var n=(function(n){r(d[2])(s,n);var _,o,u=(_=s,o=t(),function(){var t,n=r(d[0])(_);if(o){var u=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function s(t,n,_,o,l){var c;return r(d[3])(this,s),(c=u.call(this))._value=t,c._parent=n,c._animationClass=_,c._animationConfig=o,c._useNativeDriver=r(d[4]).shouldUseNativeDriver(o),c._callback=l,c.__attach(),c}return r(d[5])(s,[{key:"__makeNative",value:function(){this.__isNative=!0,this._parent.__makeNative(),r(d[6])(r(d[0])(s.prototype),"__makeNative",this).call(this),this._value.__makeNative()}},{key:"__getValue",value:function(){return this._parent.__getValue()}},{key:"__attach",value:function(){this._parent.__addChild(this),this._useNativeDriver&&this.__makeNative()}},{key:"__detach",value:function(){this._parent.__removeChild(this),r(d[6])(r(d[0])(s.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._value.animate(new this._animationClass(r(d[7])({},this._animationConfig,{toValue:this._animationConfig.toValue.__getValue()})),this._callback)}},{key:"__getNativeConfig",value:function(){var t=new this._animationClass(r(d[7])({},this._animationConfig,{toValue:void 0})).__getNativeAnimationConfig();return{type:'tracking',animationId:r(d[4]).generateNewAnimationId(),animationConfig:t,toValue:this._parent.__getNativeTag(),value:this._value.__getNativeTag()}}}]),s})(r(d[8]));m.exports=n},240,[16,14,12,7,224,8,90,6,229]); -__d(function(g,r,i,a,_m,e,d){'use strict';function t(){try{var s=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(s){}return(t=function(){return!!s})()}var s=(function(s){r(d[2])(h,s);var n,o,l=(n=h,o=t(),function(){var t,s=r(d[0])(n);if(o){var l=r(d[0])(this).constructor;t=Reflect.construct(s,arguments,l)}else t=s.apply(this,arguments);return r(d[1])(this,t)});function h(t){var s,n,o,_,u,f,c,m,v,p,y,V;if(r(d[3])(this,h),(v=l.call(this))._overshootClamping=null!=(s=t.overshootClamping)&&s,v._restDisplacementThreshold=null!=(n=t.restDisplacementThreshold)?n:.001,v._restSpeedThreshold=null!=(o=t.restSpeedThreshold)?o:.001,v._initialVelocity=null!=(_=t.velocity)?_:0,v._lastVelocity=null!=(u=t.velocity)?u:0,v._toValue=t.toValue,v._delay=null!=(f=t.delay)?f:0,v._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),v.__isInteraction=null!=(c=t.isInteraction)?c:!v._useNativeDriver,v.__iterations=null!=(m=t.iterations)?m:1,void 0!==t.stiffness||void 0!==t.damping||void 0!==t.mass)r(d[5])(void 0===t.bounciness&&void 0===t.speed&&void 0===t.tension&&void 0===t.friction,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one'),v._stiffness=null!=(p=t.stiffness)?p:100,v._damping=null!=(y=t.damping)?y:10,v._mass=null!=(V=t.mass)?V:1;else if(void 0!==t.bounciness||void 0!==t.speed){var T,b;r(d[5])(void 0===t.tension&&void 0===t.friction&&void 0===t.stiffness&&void 0===t.damping&&void 0===t.mass,'You can define one of bounciness/speed, tension/friction, or stiffness/damping/mass, but not more than one');var M=r(d[6]).fromBouncinessAndSpeed(null!=(T=t.bounciness)?T:8,null!=(b=t.speed)?b:12);v._stiffness=M.stiffness,v._damping=M.damping,v._mass=1}else{var D,P,S=r(d[6]).fromOrigamiTensionAndFriction(null!=(D=t.tension)?D:40,null!=(P=t.friction)?P:7);v._stiffness=S.stiffness,v._damping=S.damping,v._mass=1}return r(d[5])(v._stiffness>0,'Stiffness value must be greater than 0'),r(d[5])(v._damping>0,'Damping value must be greater than 0'),r(d[5])(v._mass>0,'Mass value must be greater than 0'),v}return r(d[7])(h,[{key:"__getNativeAnimationConfig",value:function(){var t;return{type:'spring',overshootClamping:this._overshootClamping,restDisplacementThreshold:this._restDisplacementThreshold,restSpeedThreshold:this._restSpeedThreshold,stiffness:this._stiffness,damping:this._damping,mass:this._mass,initialVelocity:null!=(t=this._initialVelocity)?t:this._lastVelocity,toValue:this._toValue,iterations:this.__iterations}}},{key:"start",value:function(t,s,n,o,l){var _=this;if(this.__active=!0,this._startPosition=t,this._lastPosition=this._startPosition,this._onUpdate=s,this.__onEnd=n,this._lastTime=Date.now(),this._frameTime=0,o instanceof h){var u=o.getInternalState();this._lastPosition=u.lastPosition,this._lastVelocity=u.lastVelocity,this._initialVelocity=this._lastVelocity,this._lastTime=u.lastTime}var f=function(){_._useNativeDriver?_.__startNativeAnimation(l):_.onUpdate()};this._delay?this._timeout=setTimeout(f,this._delay):f()}},{key:"getInternalState",value:function(){return{lastPosition:this._lastPosition,lastVelocity:this._lastVelocity,lastTime:this._lastTime}}},{key:"onUpdate",value:function(){var t=Date.now();t>this._lastTime+64&&(t=this._lastTime+64);var s=(t-this._lastTime)/1e3;this._frameTime+=s;var n=this._damping,o=this._mass,l=this._stiffness,h=-this._initialVelocity,_=n/(2*Math.sqrt(l*o)),u=Math.sqrt(l/o),f=u*Math.sqrt(1-_*_),c=this._toValue-this._startPosition,m=0,v=0,p=this._frameTime;if(_<1){var y=Math.exp(-_*u*p);m=this._toValue-y*((h+_*u*c)/f*Math.sin(f*p)+c*Math.cos(f*p)),v=_*u*y*(Math.sin(f*p)*(h+_*u*c)/f+c*Math.cos(f*p))-y*(Math.cos(f*p)*(h+_*u*c)-f*c*Math.sin(f*p))}else{var V=Math.exp(-u*p);m=this._toValue-V*(c+(h+u*c)*p),v=V*(h*(p*u-1)+p*c*(u*u))}if(this._lastTime=t,this._lastPosition=m,this._lastVelocity=v,this._onUpdate(m),this.__active){var T=!1;this._overshootClamping&&0!==this._stiffness&&(T=this._startPositionthis._toValue:m18&&A<=44?p(A):h(A),s(2*M-M*M,v,.01));return{stiffness:n(x),damping:t(B)}}}},242,[]); -__d(function(g,r,i,a,m,_e,d){'use strict';var t=1,n=(function(){function n(){r(d[0])(this,n)}return r(d[1])(n,[{key:"start",value:function(t,n,e,o,_){}},{key:"stop",value:function(){this.__nativeId&&r(d[2]).API.stopAnimation(this.__nativeId)}},{key:"__getNativeAnimationConfig",value:function(){throw new Error('This animation type cannot be offloaded to native')}},{key:"__debouncedOnEnd",value:function(t){var n=this.__onEnd;this.__onEnd=null,n&&n(t)}},{key:"__startNativeAnimation",value:function(n){var e=t+":startAnimation";t+=1,r(d[2]).API.setWaitingForIdentifier(e);try{n.__makeNative(),this.__nativeId=r(d[2]).generateNewAnimationId(),r(d[2]).API.startAnimatingNode(this.__nativeId,n.__getNativeTag(),this.__getNativeAnimationConfig(),this.__debouncedOnEnd.bind(this))}catch(t){throw t}finally{r(d[2]).API.unsetWaitingForIdentifier(e)}}}]),n})();m.exports=n},243,[7,8,224]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t=function(){return!!n})()}var n;function s(){if(!n){var t=r(d[2]);n=t.inOut(t.ease)}return n}var o=(function(n){r(d[3])(h,n);var o,u,_=(o=h,u=t(),function(){var t,n=r(d[0])(o);if(u){var s=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function h(t){var n,o,u,l,c,v;return r(d[4])(this,h),(v=_.call(this))._toValue=t.toValue,v._easing=null!=(n=t.easing)?n:s(),v._duration=null!=(o=t.duration)?o:500,v._delay=null!=(u=t.delay)?u:0,v.__iterations=null!=(l=t.iterations)?l:1,v._useNativeDriver=r(d[5]).shouldUseNativeDriver(t),v.__isInteraction=null!=(c=t.isInteraction)?c:!v._useNativeDriver,v}return r(d[6])(h,[{key:"__getNativeAnimationConfig",value:function(){for(var t=[],n=Math.round(this._duration/16.666666666666668),s=0;s=this._startTime+this._duration)return 0===this._duration?this._onUpdate(this._toValue):this._onUpdate(this._fromValue+this._easing(1)*(this._toValue-this._fromValue)),void this.__debouncedOnEnd({finished:!0});this._onUpdate(this._fromValue+this._easing((t-this._startTime)/this._duration)*(this._toValue-this._fromValue)),this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this)))}},{key:"stop",value:function(){r(d[7])(r(d[0])(h.prototype),"stop",this).call(this),this.__active=!1,clearTimeout(this._timeout),g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),h})(r(d[8]));m.exports=o},244,[16,14,245,12,7,224,8,90,243]); -__d(function(g,r,i,a,m,e,d){'use strict';var n,u=(function(){function u(){r(d[0])(this,u)}return r(d[1])(u,null,[{key:"step0",value:function(n){return n>0?1:0}},{key:"step1",value:function(n){return n>=1?1:0}},{key:"linear",value:function(n){return n}},{key:"ease",value:function(t){return n||(n=u.bezier(.42,0,1,1)),n(t)}},{key:"quad",value:function(n){return n*n}},{key:"cubic",value:function(n){return n*n*n}},{key:"poly",value:function(n){return function(u){return Math.pow(u,n)}}},{key:"sin",value:function(n){return 1-Math.cos(n*Math.PI/2)}},{key:"circle",value:function(n){return 1-Math.sqrt(1-n*n)}},{key:"exp",value:function(n){return Math.pow(2,10*(n-1))}},{key:"elastic",value:function(){var n=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(u){return 1-Math.pow(Math.cos(u*Math.PI/2),3)*Math.cos(u*n)}}},{key:"back",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1.70158;return function(u){return u*u*((n+1)*u-n)}}},{key:"bounce",value:function(n){if(n<.36363636363636365)return 7.5625*n*n;if(n<.7272727272727273){var u=n-.5454545454545454;return 7.5625*u*u+.75}if(n<.9090909090909091){var t=n-.8181818181818182;return 7.5625*t*t+.9375}var o=n-.9545454545454546;return 7.5625*o*o+.984375}},{key:"bezier",value:function(n,u,t,o){return r(d[2])(n,u,t,o)}},{key:"in",value:function(n){return n}},{key:"out",value:function(n){return function(u){return 1-n(1-u)}}},{key:"inOut",value:function(n){return function(u){return u<.5?n(2*u)/2:1-n(2*(1-u))/2}}}]),u})();m.exports=u},245,[7,8,246]); -__d(function(g,r,_i,a,m,e,d){'use strict';var n=4,t=.001,u=1e-7,o=10,f=.1,i='function'==typeof Float32Array;function c(n,t){return 1-3*t+3*n}function v(n,t){return 3*t-6*n}function s(n){return 3*n}function w(n,t,u){return((c(t,u)*n+v(t,u))*n+s(t))*n}function l(n,t,u){return 3*c(t,u)*n*n+2*v(t,u)*n+s(t)}function y(n,t,f,i,c){var v,s,l=0,y=t,b=f;do{(v=w(s=y+(b-y)/2,i,c)-n)>0?b=s:y=s}while(Math.abs(v)>u&&++l=0&&n<=1&&o>=0&&o<=1))throw new Error('bezier x values must be in [0, 1] range');var v=i?new Float32Array(11):new Array(11);if(n!==u||o!==c)for(var s=0;s<11;++s)v[s]=w(s*f,n,o);function h(u){for(var i=0,c=1;10!==c&&v[c]<=u;++c)i+=f;var s=i+(u-v[--c])/(v[c+1]-v[c])*f,w=l(s,n,o);return w>=t?b(u,s,n,o):0===w?s:y(u,i,i+f,n,o)}return function(t){return n===u&&o===c?t:0===t?0:1===t?1:w(h(t),u,c)}}},246,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(n){}return(t=function(){return!!n})()}var n=(function(n){r(d[2])(_,n);var s,o,c=(s=_,o=t(),function(){var t,n=r(d[0])(s);if(o){var c=r(d[0])(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return r(d[1])(this,t)});function _(t){var n,s,o,l;return r(d[3])(this,_),(l=c.call(this))._deceleration=null!=(n=t.deceleration)?n:.998,l._velocity=t.velocity,l._useNativeDriver=r(d[4]).shouldUseNativeDriver(t),l.__isInteraction=null!=(s=t.isInteraction)?s:!l._useNativeDriver,l.__iterations=null!=(o=t.iterations)?o:1,l}return r(d[5])(_,[{key:"__getNativeAnimationConfig",value:function(){return{type:'decay',deceleration:this._deceleration,velocity:this._velocity,iterations:this.__iterations}}},{key:"start",value:function(t,n,s,o,c){this.__active=!0,this._lastValue=t,this._fromValue=t,this._onUpdate=n,this.__onEnd=s,this._startTime=Date.now(),this._useNativeDriver?this.__startNativeAnimation(c):this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))}},{key:"onUpdate",value:function(){var t=Date.now(),n=this._fromValue+this._velocity/(1-this._deceleration)*(1-Math.exp(-(1-this._deceleration)*(t-this._startTime)));this._onUpdate(n),Math.abs(this._lastValue-n)<.1?this.__debouncedOnEnd({finished:!0}):(this._lastValue=n,this.__active&&(this._animationFrame=requestAnimationFrame(this.onUpdate.bind(this))))}},{key:"stop",value:function(){r(d[6])(r(d[0])(_.prototype),"stop",this).call(this),this.__active=!1,g.cancelAnimationFrame(this._animationFrame),this.__debouncedOnEnd({finished:!1})}}]),_})(r(d[7]));m.exports=n},247,[16,14,12,7,224,8,90,243]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,n,s){var o=[];r(d[2])(s[0]&&s[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.'),(function t(n,s){if(n instanceof r(d[0]))n.__makeNative(),o.push({nativeEventPath:s,animatedValueTag:n.__getNativeTag()});else if(n instanceof r(d[1]))t(n.x,s.concat('x')),t(n.y,s.concat('y'));else if('object'==typeof n)for(var c in n)t(n[c],s.concat(c))})(s[0].nativeEvent,[]);var c=r(d[3]).findNodeHandle(t);return null!=c&&o.forEach(function(t){r(d[4]).API.addAnimatedEventToView(c,n,t)}),{detach:function(){null!=c&&o.forEach(function(t){r(d[4]).API.removeAnimatedEventFromView(c,n,t.animatedValueTag)})}}}var n=(function(){function n(t,s){r(d[5])(this,n),this._listeners=[],this._argMapping=t,null==s&&(console.warn('Animated.event now requires a second argument for options'),s={useNativeDriver:!1}),s.listener&&this.__addListener(s.listener),this._callListeners=this._callListeners.bind(this),this._attachedEvent=null,this.__isNative=r(d[4]).shouldUseNativeDriver(s)}return r(d[6])(n,[{key:"__addListener",value:function(t){this._listeners.push(t)}},{key:"__removeListener",value:function(t){this._listeners=this._listeners.filter(function(n){return n!==t})}},{key:"__attach",value:function(n,s){r(d[2])(this.__isNative,'Only native driven events need to be attached.'),this._attachedEvent=t(n,s,this._argMapping)}},{key:"__detach",value:function(t,n){r(d[2])(this.__isNative,'Only native driven events need to be detached.'),this._attachedEvent&&this._attachedEvent.detach()}},{key:"__getHandler",value:function(){var t=this;if(this.__isNative)return this._callListeners;return function(){for(var n=arguments.length,s=new Array(n),o=0;o1){for(var s=[],u=0;u1?Math.ceil(t.length/o):t.length}return 0},n._keyExtractor=function(t,o){var l,s=v(n.props.numColumns),u=null!=(l=n.props.keyExtractor)?l:r(d[10]).keyExtractor;return s>1?Array.isArray(t)?t.map(function(t,n){return u(t,o*s+n)}).join(':'):void r(d[11])(Array.isArray(t),"FlatList: Encountered internal consistency error, expected each item to consist of an array with 1-%s columns; instead, received a single item.",s):u(t,o)},n._renderer=function(){var t=n.props,l=t.ListItemComponent,s=t.renderItem,u=t.columnWrapperStyle,c=v(n.props.numColumns),f=l?'ListItemComponent':'renderItem',p=function(t){return l?h.createElement(l,t):s?s(t):null};return(0,o.default)({},f,function(t){if(c>1){var n=t.item,o=t.index;return r(d[11])(Array.isArray(n),'Expected array of items with numColumns > 1'),h.createElement(r(d[12]),{style:r(d[13]).compose(y.row,u)},n.map(function(n,l){var s=p({item:n,index:o*c+l,separators:t.separators});return null!=s?h.createElement(h.Fragment,{key:l},s):null}))}return p(t)})},n._checkProps(n.props),n.props.viewabilityConfigCallbackPairs?n._virtualizedListPairs=n.props.viewabilityConfigCallbackPairs.map(function(t){return{viewabilityConfig:t.viewabilityConfig,onViewableItemsChanged:n._createOnViewableItemsChanged(t.onViewableItemsChanged)}}):n.props.onViewableItemsChanged&&n._virtualizedListPairs.push({viewabilityConfig:n.props.viewabilityConfig,onViewableItemsChanged:n._createOnViewableItemsChanged(n.props.onViewableItemsChanged)}),n}return(0,s.default)(k,[{key:"scrollToEnd",value:function(t){this._listRef&&this._listRef.scrollToEnd(t)}},{key:"scrollToIndex",value:function(t){this._listRef&&this._listRef.scrollToIndex(t)}},{key:"scrollToItem",value:function(t){this._listRef&&this._listRef.scrollToItem(t)}},{key:"scrollToOffset",value:function(t){this._listRef&&this._listRef.scrollToOffset(t)}},{key:"recordInteraction",value:function(){this._listRef&&this._listRef.recordInteraction()}},{key:"flashScrollIndicators",value:function(){this._listRef&&this._listRef.flashScrollIndicators()}},{key:"getScrollResponder",value:function(){if(this._listRef)return this._listRef.getScrollResponder()}},{key:"getNativeScrollRef",value:function(){if(this._listRef)return this._listRef.getScrollRef()}},{key:"getScrollableNode",value:function(){if(this._listRef)return this._listRef.getScrollableNode()}},{key:"setNativeProps",value:function(t){this._listRef&&this._listRef.setNativeProps(t)}},{key:"componentDidUpdate",value:function(t){r(d[11])(t.numColumns===this.props.numColumns,"Changing numColumns on the fly is not supported. Change the key prop on FlatList when changing the number of columns to force a fresh render of the component."),r(d[11])(t.onViewableItemsChanged===this.props.onViewableItemsChanged,'Changing onViewableItemsChanged on the fly is not supported'),r(d[11])(!r(d[14])(t.viewabilityConfig,this.props.viewabilityConfig),'Changing viewabilityConfig on the fly is not supported'),r(d[11])(t.viewabilityConfigCallbackPairs===this.props.viewabilityConfigCallbackPairs,'Changing viewabilityConfigCallbackPairs on the fly is not supported'),this._checkProps(this.props)}},{key:"_checkProps",value:function(t){var n=t.getItem,o=t.getItemCount,l=t.horizontal,s=t.columnWrapperStyle,u=t.onViewableItemsChanged,c=t.viewabilityConfigCallbackPairs,f=v(this.props.numColumns);r(d[11])(!n&&!o,'FlatList does not support custom data formats.'),f>1?r(d[11])(!l,'numColumns does not support horizontal.'):r(d[11])(!s,'columnWrapperStyle not supported for single column lists'),r(d[11])(!(u&&c),"FlatList does not support setting both onViewableItemsChanged and viewabilityConfigCallbackPairs.")}},{key:"_pushMultiColumnViewable",value:function(t,o){var l,s=v(this.props.numColumns),u=null!=(l=this.props.keyExtractor)?l:r(d[10]).keyExtractor;o.item.forEach(function(l,c){r(d[11])(null!=o.index,'Missing index!');var f=o.index*s+c;t.push((0,n.default)({},o,{item:l,key:u(l,f),index:f}))})}},{key:"_createOnViewableItemsChanged",value:function(t){var n=this;return function(o){var l=v(n.props.numColumns);if(t)if(l>1){var s=[],u=[];o.viewableItems.forEach(function(t){return n._pushMultiColumnViewable(u,t)}),o.changed.forEach(function(t){return n._pushMultiColumnViewable(s,t)}),t({viewableItems:u,changed:s})}else t(o)}}},{key:"render",value:function(){var o,l=this.props,s=(l.numColumns,l.columnWrapperStyle,l.removeClippedSubviews),u=(0,t.default)(l,["numColumns","columnWrapperStyle","removeClippedSubviews"]);return h.createElement(r(d[15]),(0,n.default)({},u,{getItem:this._getItem,getItemCount:this._getItemCount,keyExtractor:this._keyExtractor,ref:this._captureRef,viewabilityConfigCallbackPairs:this._virtualizedListPairs,removeClippedSubviews:(o=s,null!=o&&o)},this._renderer()))}}]),k})(h.PureComponent),y=r(d[13]).create({row:{flexDirection:'row'}});m.exports=C},256,[5,108,6,27,7,8,12,14,16,17,257,36,184,183,176,258]); -__d(function(g,r,i,a,m,e,d){'use strict';Object.defineProperty(e,"__esModule",{value:!0}),e.elementsThatOverlapOffsets=f,e.newRangeCount=l,e.computeWindowedRenderLimits=function(n,s,o,u,c,h,v){var b=s(n);if(0===b)return c;var M=v.offset,y=v.velocity,x=v.visibleLength,p=Math.max(0,M),w=p+x,O=(u-1)*x,k=y>1?'after':y<-1?'before':'none',_=Math.max(0,p-.5*O),j=Math.max(0,w+.5*O);if(h(b-1).offset<_)return{first:Math.max(0,b-1-o),last:b-1};var L=f([_,p,w,j],b,h),S=(0,t.default)(L,4),C=S[0],E=S[1],J=S[2],N=S[3];C=null==C?0:C,E=null==E?Math.max(0,C):E,N=null==N?b-1:N,J=null==J?Math.min(N,E+o-1):J;var R={first:E,last:J},B=l(c,R);for(;!(E<=C&&J>=N);){var F=B>=o,P=E<=c.first||E>c.last,T=E>C&&(!F||!P),W=J>=c.last||J=E&&E>=0&&J=C&&J<=N&&E<=R.first&&J>=R.last))throw new Error('Bad window calculation '+JSON.stringify({first:E,last:J,itemCount:b,overscanFirst:C,overscanLast:N,visible:R}));return{first:E,last:J}},e.keyExtractor=function(t,n){if('object'==typeof t&&null!=(null==t?void 0:t.key))return t.key;if('object'==typeof t&&null!=(null==t?void 0:t.id))return t.id;return String(n)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function f(t,f,l){for(var s=[],o=0,u=0;u=t[v]&&(s[v]=u,o++,v===t.length-1))return(0,n.default)(o===t.length,'bad offsets input, should be in increasing order: %s',JSON.stringify(t)),s;return s}function l(t,n){return n.last-n.first+1-Math.max(0,1+Math.min(n.last,t.last)-Math.max(n.first,t.first))}},257,[5,41,36]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),o=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5])),s=_r(d[0])(_r(d[6])),i=_r(d[0])(_r(d[7])),l=_r(d[0])(_r(d[8])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var i=n?Object.getOwnPropertyDescriptor(e,s):null;i&&(i.get||i.set)?Object.defineProperty(o,s,i):o[s]=e[s]}return o.default=e,r&&r.set(e,o),o})(_r(d[9]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function h(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=u(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0;return function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(e,t){if(e){if("string"==typeof e)return p(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r0&&t>0&&null!=s.props.initialScrollIndex&&s.props.initialScrollIndex>0&&!s._hasDoneInitialScroll&&(null==s.props.contentOffset&&s.scrollToIndex({animated:!1,index:s.props.initialScrollIndex}),s._hasDoneInitialScroll=!0),s.props.onContentSizeChange&&s.props.onContentSizeChange(e,t),s._scrollMetrics.contentLength=s._selectLength({height:t,width:e}),s._scheduleCellsToRenderUpdate(),s._maybeCallOnEndReached()},s._convertParentScrollMetrics=function(e){var t=e.offset-s._offsetFromParentVirtualizedList,r=e.visibleLength,o=t-s._scrollMetrics.offset;return{visibleLength:r,contentLength:s._scrollMetrics.contentLength,offset:t,dOffset:o}},s._onScroll=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScroll(e)}),s.props.onScroll&&s.props.onScroll(e);var t=e.timeStamp,r=s._selectLength(e.nativeEvent.layoutMeasurement),o=s._selectLength(e.nativeEvent.contentSize),n=s._selectOffset(e.nativeEvent.contentOffset),i=n-s._scrollMetrics.offset;if(s._isNestedWithSameOrientation()){if(0===s._scrollMetrics.contentLength)return;var l=s._convertParentScrollMetrics({visibleLength:r,offset:n});r=l.visibleLength,o=l.contentLength,n=l.offset,i=l.dOffset}var a=s._scrollMetrics.timestamp?Math.max(1,t-s._scrollMetrics.timestamp):1,c=i/a;a>500&&s._scrollMetrics.dt>500&&o>5*r&&!s._hasWarned.perf&&(_r(d[14])("VirtualizedList: You have a large list that is slow to update - make sure your renderItem function renders components that follow React performance best practices like PureComponent, shouldComponentUpdate, etc.",{dt:a,prevDt:s._scrollMetrics.dt,contentLength:o}),s._hasWarned.perf=!0),s._scrollMetrics={contentLength:o,dt:a,dOffset:i,offset:n,timestamp:t,velocity:c,visibleLength:r},s._updateViewableItems(s.props.data),s.props&&(s._maybeCallOnEndReached(),0!==c&&s._fillRateHelper.activate(),s._computeBlankness(),s._scheduleCellsToRenderUpdate())},s._onScrollBeginDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollBeginDrag(e)}),s._viewabilityTuples.forEach(function(e){e.viewabilityHelper.recordInteraction()}),s._hasInteracted=!0,s.props.onScrollBeginDrag&&s.props.onScrollBeginDrag(e)},s._onScrollEndDrag=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onScrollEndDrag(e)});var t=e.nativeEvent.velocity;t&&(s._scrollMetrics.velocity=s._selectOffset(t)),s._computeBlankness(),s.props.onScrollEndDrag&&s.props.onScrollEndDrag(e)},s._onMomentumScrollBegin=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollBegin(e)}),s.props.onMomentumScrollBegin&&s.props.onMomentumScrollBegin(e)},s._onMomentumScrollEnd=function(e){s._nestedChildLists.forEach(function(t){t.ref&&t.ref._onMomentumScrollEnd(e)}),s._scrollMetrics.velocity=0,s._computeBlankness(),s.props.onMomentumScrollEnd&&s.props.onMomentumScrollEnd(e)},s._updateCellsToRender=function(){var e=s.props,t=e.data,r=e.getItemCount,o=S(e.onEndReachedThreshold),n=s._isVirtualizationDisabled();s._updateViewableItems(t),t&&s.setState(function(e){var i,l=s._scrollMetrics,a=l.contentLength,c=l.offset,u=l.visibleLength;if(n){var p=a-u-c0&&a>0&&(s.props.initialScrollIndex&&!s._scrollMetrics.offset||(i=(0,_r(d[15]).computeWindowedRenderLimits)(s.props.data,s.props.getItemCount,b(s.props.maxToRenderPerBatch),I(s.props.windowSize),e,s._getFrameMetricsApprox,s._scrollMetrics)));if(i&&s._nestedChildLists.size>0)for(var f=i.first,_=i.last,y=f;y<=_;y++){var v=s._indicesToKeys.get(y),C=v&&s._cellKeysToChildListKeys.get(v);if(C){for(var L,S=!1,M=h(C);!(L=M()).done;){var w=L.value,x=s._nestedChildLists.get(w);if(x&&x.ref&&x.ref.hasMore()){S=!0;break}}if(S){i.last=y;break}}}return null!=i&&i.first===e.first&&i.last===e.last&&(i=null),i})},s._createViewToken=function(e,t){var r=s.props,o=r.data,n=(0,r.getItem)(o,e);return{index:e,item:n,key:s._keyExtractor(n,e),isViewable:t}},s._getFrameMetricsApprox=function(e){var t=s._getFrameMetrics(e);if(t&&t.index===e)return t;var r=s.props.getItemLayout;return _r(d[11])(!r,'Should not have to estimate frames when a measurement metrics function is provided'),{length:s._averageCellLength,offset:s._averageCellLength*e}},s._getFrameMetrics=function(e){var t=s.props,r=t.data,o=t.getItem,n=t.getItemCount,i=t.getItemLayout;_r(d[11])(n(r)>e,'Tried to get frame for out of range index '+e);var l=o(r,e),a=l&&s._frames[s._keyExtractor(l,e)];return a&&a.index===e||i&&(a=i(r,e)),a},_r(d[11])(!e.onScroll||!e.onScroll.__isNative,"Components based on VirtualizedList must be wrapped with Animated.createAnimatedComponent to support native onScroll events with useNativeDriver"),_r(d[11])(I(e.windowSize)>0,'VirtualizedList: The windowSize prop must be present and set to a value greater than 0.'),s._fillRateHelper=new(_r(d[16]))(s._getFrameMetrics),s._updateCellsToRenderBatcher=new(_r(d[17]))(s._updateCellsToRender,null!=(o=s.props.updateCellsBatchingPeriod)?o:50),s.props.viewabilityConfigCallbackPairs?s._viewabilityTuples=s.props.viewabilityConfigCallbackPairs.map(function(e){return{viewabilityHelper:new(_r(d[18]))(e.viewabilityConfig),onViewableItemsChanged:e.onViewableItemsChanged}}):s.props.onViewableItemsChanged&&s._viewabilityTuples.push({viewabilityHelper:new(_r(d[18]))(s.props.viewabilityConfig),onViewableItemsChanged:s.props.onViewableItemsChanged});var i={first:s.props.initialScrollIndex||0,last:Math.min(s.props.getItemCount(s.props.data),(s.props.initialScrollIndex||0)+L(s.props.initialNumToRender))-1};if(s._isNestedWithSameOrientation()){var u=s.context.getNestedChildState(s._getListKey());u&&(i=u,s.state=u,s._frames=u.frames)}return s.state=i,s}return(0,o.default)(c,[{key:"scrollToEnd",value:function(e){var t=!e||e.animated,r=this.props.getItemCount(this.props.data)-1,o=this._getFrameMetricsApprox(r),n=Math.max(0,o.offset+o.length+this._footerLength-this._scrollMetrics.visibleLength);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(C(this.props.horizontal)?{x:n,animated:t}:{y:n,animated:t}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToIndex",value:function(e){var t=this.props,r=t.data,o=t.horizontal,n=t.getItemCount,s=t.getItemLayout,i=t.onScrollToIndexFailed,l=e.animated,a=e.index,c=e.viewOffset,h=e.viewPosition;if(_r(d[11])(a>=0,"scrollToIndex out of range: requested index "+a+" but minimum is 0"),_r(d[11])(n(r)>=1,"scrollToIndex out of range: item length "+n(r)+" but minimum is 1"),_r(d[11])(athis._highestMeasuredFrameIndex)return _r(d[11])(!!i,"scrollToIndex should be used in conjunction with getItemLayout or onScrollToIndexFailed, otherwise there is no way to know the location of offscreen indices or handle failures."),void i({averageItemLength:this._averageCellLength,highestMeasuredFrameIndex:this._highestMeasuredFrameIndex,index:a});var u=this._getFrameMetricsApprox(a),p=Math.max(0,u.offset-(h||0)*(this._scrollMetrics.visibleLength-u.length))-(c||0);null!=this._scrollRef&&(null!=this._scrollRef.scrollTo?this._scrollRef.scrollTo(o?{x:p,animated:l}:{y:p,animated:l}):console.warn("No scrollTo method provided. This may be because you have two nested VirtualizedLists with the same orientation, or because you are using a custom component that does not implement scrollTo."))}},{key:"scrollToItem",value:function(e){for(var r=e.item,o=this.props,n=o.data,s=o.getItem,i=(0,o.getItemCount)(n),l=0;l0){y=!1,v='';var M=this._getSpacerKey(!h),w=this.props.initialScrollIndex?-1:L(this.props.initialNumToRender)-1,x=this.state,k=x.first,E=x.last;this._pushCells(f,b,_,0,w,p);var T=Math.max(w+1,k);if(!u&&k>w+1){var z=!1;if(_.size>0)for(var K=i?1:0,O=T-1;O>w;O--)if(_.has(O+K)){var F=this._getFrameMetricsApprox(w),P=this._getFrameMetricsApprox(O),V=P.offset-F.offset-(this.props.initialScrollIndex?0:F.length);f.push(a.createElement(_r(d[10]),{key:"$sticky_lead",style:(0,e.default)({},M,V)})),this._pushCells(f,b,_,O,O,p);var D=this._getFrameMetricsApprox(k).offset-(P.offset+P.length);f.push(a.createElement(_r(d[10]),{key:"$sticky_trail",style:(0,e.default)({},M,D)})),z=!0;break}if(!z){var N=this._getFrameMetricsApprox(w),A=this._getFrameMetricsApprox(k).offset-(N.offset+N.length);f.push(a.createElement(_r(d[10]),{key:"$lead_spacer",style:(0,e.default)({},M,A)}))}}if(this._pushCells(f,b,_,T,E,p),!this._hasWarned.keys&&y&&(console.warn("VirtualizedList: missing keys for items, make sure to specify a key or id property on each item or provide a custom keyExtractor.",v),this._hasWarned.keys=!0),!u&&Ec&&(this._sentEndForContentLength=0)}},{key:"_scheduleCellsToRenderUpdate",value:function(){var e=this.state,t=e.first,r=e.last,o=this._scrollMetrics,n=o.offset,s=o.visibleLength,i=o.velocity,l=this.props.getItemCount(this.props.data),a=!1,c=S(this.props.onEndReachedThreshold)*s/2;if(t>0){var h=n-this._getFrameMetricsApprox(t).offset;a=a||h<0||i<-2&&h2&&u0&&(this._scrollAnimatedValueAttachment=s.default.attachNativeEvent(this._scrollViewRef,'onScroll',[{nativeEvent:{contentOffset:{y:this._scrollAnimatedValue}}}]))}},{key:"_setStickyHeaderRef",value:function(e,o){o?this._stickyHeaderRefs.set(e,o):this._stickyHeaderRefs.delete(e)}},{key:"_onStickyHeaderLayout",value:function(e,o,t){var n=this.props.stickyHeaderIndices;if(n){var r=p.Children.toArray(this.props.children);if(t===this._getKeyForIndex(e,r)){var l=o.nativeEvent.layout.y;this._headerLayoutYs.set(t,l);var i=n[n.indexOf(e)-1];if(null!=i){var a=this._stickyHeaderRefs.get(this._getKeyForIndex(i,r));a&&a.setNextHeaderY&&a.setNextHeaderY(l)}}}}},{key:"render",value:function(){var t=this,n=!0===this.props.horizontal?B:L,r=(0,o.default)(n,2),l=r[0],i=r[1],a=[!0===this.props.horizontal&&F.contentContainerHorizontal,this.props.contentContainerStyle],s=null==this.props.onContentSizeChange?null:{onLayout:this._handleContentOnLayout},u=this.props.stickyHeaderIndices,f=this.props.children;if(null!=u&&u.length>0){var y=p.Children.toArray(this.props.children);f=y.map(function(e,o){var n=e?u.indexOf(o):-1;if(n>-1){var r=e.key,l=u[n+1],i=t.props.StickyHeaderComponent||h.default;return p.createElement(i,{key:r,nativeID:'StickyHeader-'+r,ref:function(e){return t._setStickyHeaderRef(r,e)},nextHeaderLayoutY:t._headerLayoutYs.get(t._getKeyForIndex(l,y)),onLayout:function(e){return t._onStickyHeaderLayout(o,e,r)},scrollAnimatedValue:t._scrollAnimatedValue,inverted:t.props.invertStickyHeaders,hiddenOnScroll:t.props.stickyHeaderHiddenOnScroll,scrollViewHeight:t.state.layoutHeight},e)}return e})}f=p.createElement(O.default.Provider,{value:!0===this.props.horizontal?O.HORIZONTAL:O.VERTICAL},f);var _=Array.isArray(u)&&u.length>0,v=p.createElement(i,(0,e.default)({},s,{ref:this._setInnerViewRef,style:a,removeClippedSubviews:('android'!==c.default.OS||!_)&&this.props.removeClippedSubviews,collapsable:!1}),f),b=void 0!==this.props.alwaysBounceHorizontal?this.props.alwaysBounceHorizontal:this.props.horizontal,R=void 0!==this.props.alwaysBounceVertical?this.props.alwaysBounceVertical:!this.props.horizontal,T=!0===this.props.horizontal?F.baseHorizontal:F.baseVertical,V=(0,e.default)({},this.props,{alwaysBounceHorizontal:b,alwaysBounceVertical:R,style:S.default.compose(T,this.props.style),onContentSizeChange:null,onLayout:this._handleLayout,onMomentumScrollBegin:this._handleMomentumScrollBegin,onMomentumScrollEnd:this._handleMomentumScrollEnd,onResponderGrant:this._handleResponderGrant,onResponderReject:this._handleResponderReject,onResponderRelease:this._handleResponderRelease,onResponderTerminationRequest:this._handleResponderTerminationRequest,onScrollBeginDrag:this._handleScrollBeginDrag,onScrollEndDrag:this._handleScrollEndDrag,onScrollShouldSetResponder:this._handleScrollShouldSetResponder,onStartShouldSetResponder:this._handleStartShouldSetResponder,onStartShouldSetResponderCapture:this._handleStartShouldSetResponderCapture,onTouchEnd:this._handleTouchEnd,onTouchMove:this._handleTouchMove,onTouchStart:this._handleTouchStart,onTouchCancel:this._handleTouchCancel,onScroll:this._handleScroll,scrollEventThrottle:_?1:this.props.scrollEventThrottle,sendMomentumEvents:!(!this.props.onMomentumScrollBegin&&!this.props.onMomentumScrollEnd),snapToStart:!1!==this.props.snapToStart,snapToEnd:!1!==this.props.snapToEnd,pagingEnabled:c.default.select({ios:!0===this.props.pagingEnabled&&null==this.props.snapToInterval&&null==this.props.snapToOffsets,android:!0===this.props.pagingEnabled||null!=this.props.snapToInterval||null!=this.props.snapToOffsets})}),E=this.props.decelerationRate;null!=E&&(V.decelerationRate=(0,k.default)(E));var I=this.props.refreshControl;if(I){if('ios'===c.default.OS)return p.createElement(l,(0,e.default)({},V,{ref:this._setNativeRef}),I,v);if('android'===c.default.OS){var K=(0,H.default)((0,w.default)(V.style)),D=K.outer,A=K.inner;return p.cloneElement(I,{style:S.default.compose(T,D)},p.createElement(l,(0,e.default)({},V,{style:S.default.compose(T,A),ref:this._setNativeRef}),v))}}return p.createElement(l,(0,e.default)({},V,{ref:this._setNativeRef}),v)}}]),N})(p.Component);P.Context=O.default;var F=S.default.create({baseVertical:{flexGrow:1,flexShrink:1,flexDirection:'column',overflow:'scroll'},baseHorizontal:{flexGrow:1,flexShrink:1,flexDirection:'row',overflow:'scroll'},contentContainerHorizontal:{flexDirection:'row'}});function j(o,t){return p.createElement(P,(0,e.default)({},o,{scrollViewRef:t}))}j.displayName='ScrollView';var G=p.forwardRef(j);G.Context=O.default,G.displayName='ScrollView',m.exports=G},259,[5,6,41,7,8,15,12,14,16,233,171,37,17,54,260,183,184,155,261,265,139,263,178,36,267,268,251,269,270,271,272,273,274]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),a=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),r=_r(d[0])(_r(d[5])),l=_r(d[0])(_r(d[6])),i=_r(d[0])(_r(d[7])),s=_r(d[0])(_r(d[8])),o=(_r(d[0])(_r(d[9])),(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=c(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=r?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(n,l,i):n[l]=e[l]}return n.default=e,a&&a.set(e,n),n})(_r(d[10]))),u=_r(d[0])(_r(d[11])),h=_r(d[0])(_r(d[12])),p=_r(d[0])(_r(d[13]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(c=function(e){return e?a:t})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var v=l.default.createAnimatedComponent(h.default),_=(function(l){(0,a.default)(_,l);var u,h,c=(u=_,h=f(),function(){var e,t=(0,r.default)(u);if(h){var a=(0,r.default)(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return(0,n.default)(this,e)});function _(){var t;(0,e.default)(this,_);for(var a=arguments.length,n=new Array(a),r=0;r0){f.push(Y),_.push(0),f.push(Y+1),_.push(1);var L=(c||0)-h-l;L>Y&&(f.push(L,L+1),_.push(L-Y,L-Y))}}}else{f.push(p),_.push(0);var R=(c||0)-h;R>=p?(f.push(R,R+1),_.push(R-p,R-p)):(f.push(p+1),_.push(1))}this.updateTranslateListener(this.props.scrollAnimatedValue.interpolate({inputRange:f,outputRange:_}),a,this.props.hiddenOnScroll?new s.default(this.props.scrollAnimatedValue.interpolate({extrapolateLeft:'clamp',inputRange:[p,p+1],outputRange:[0,1]}).interpolate({inputRange:[0,1],outputRange:[0,-1]}),-this.state.layoutHeight,0):null)}var T=o.Children.only(this.props.children),V=a&&null!=this.state.translateY?{style:{transform:[{translateY:this.state.translateY}]}}:null;return o.createElement(v,{collapsable:!1,nativeID:this.props.nativeID,onLayout:this._onLayout,ref:this._setComponentRef,style:[T.props.style,y.header,{transform:[{translateY:this._translateY}]}],passthroughAnimatedPropExplicitValues:V},o.cloneElement(T,{style:y.fill,onLayout:void 0}))}}]),_})(o.Component),y=u.default.create({header:{zIndex:10,position:'relative'},fill:{flex:1}});m.exports=_},260,[5,7,8,12,14,16,233,234,239,229,17,183,184,37]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),v=(function(){function v(){(0,t.default)(this,v),this._emitter=new u.default('ios'!==s.default.OS?null:f.default)}return(0,n.default)(v,[{key:"addListener",value:function(t,n,u){return this._emitter.addListener(t,n)}},{key:"removeListener",value:function(t,n){this._emitter.removeListener(t,n)}},{key:"removeAllListeners",value:function(t){this._emitter.removeAllListeners(t)}},{key:"dismiss",value:function(){(0,o.default)()}},{key:"scheduleLayoutAnimation",value:function(t){var n=t.duration,u=t.easing;null!=n&&0!==n&&l.default.configureNext({duration:n,update:{duration:n,type:null!=u&&l.default.Types[u]||'keyboard'}})}}]),v})();m.exports=new v},261,[5,7,8,110,262,263,37,264]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0])(r(d[1]));function t(t,u,o){var l,s;if(!n.default.isTesting){var c,p,y=!1,f=function(){y||(y=!0,clearTimeout(b),null==u||u())},b=setTimeout(f,(null!=(l=t.duration)?l:0)+17),I=null==(s=g)?void 0:s.nativeFabricUIManager;if(null!=I&&I.configureNextLayoutAnimation)null==(c=g)||null==(p=c.nativeFabricUIManager)||p.configureNextLayoutAnimation(t,f,null!=o?o:function(){});else null!=r(d[2])&&r(d[2]).configureNextLayoutAnimation&&r(d[2]).configureNextLayoutAnimation(t,null!=f?f:function(){},null!=o?o:function(){})}}function u(n,t,u){return{duration:n,create:{type:t,property:u},update:{type:t},delete:{type:t,property:u}}}var o={easeInEaseOut:u(300,'easeInEaseOut','opacity'),linear:u(500,'linear','opacity'),spring:{duration:700,create:{type:'linear',property:'opacity'},update:{type:'spring',springDamping:.4},delete:{type:'linear',property:'opacity'}}},l={configureNext:t,create:u,Types:Object.freeze({spring:'spring',linear:'linear',easeInEaseOut:'easeInEaseOut',easeIn:'easeIn',easeOut:'easeOut',keyboard:'keyboard'}),Properties:Object.freeze({opacity:'opacity',scaleX:'scaleX',scaleY:'scaleY',scaleXY:'scaleXY'}),checkConfig:function(){console.error('LayoutAnimation.checkConfig(...) has been disabled.')},Presets:o,easeInEaseOut:t.bind(null,o.easeInEaseOut),linear:t.bind(null,o.linear),spring:t.bind(null,o.spring)};m.exports=l},262,[5,37,155]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(){r(d[0]).blurTextInput(r(d[0]).currentlyFocusedInput())}},263,[139]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('KeyboardObserver');_e.default=t},264,[39]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o={setGlobalOptions:function(o){if(void 0!==o.debug&&r(d[2])(t.default,'Trying to debug FrameRateLogger without the native module!'),t.default){var l={debug:!!o.debug,reportStackTraces:!!o.reportStackTraces};t.default.setGlobalOptions(l)}},setContext:function(o){t.default&&t.default.setContext(o)},beginScroll:function(){t.default&&t.default.beginScroll()},endScroll:function(){t.default&&t.default.endScroll()}};m.exports=o},265,[5,266,36]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('FrameRateLogger');_e.default=t},266,[39]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=function(n){return'normal'===n?t.default.select({ios:.998,android:.985}):'fast'===n?t.default.select({ios:.99,android:.9}):n}},267,[5,37]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s){var c=null,t=null;if(null!=s){c={},t={};for(var n=0,l=Object.keys(s);nMath.random(),this._resetData()}return r(d[1])(_,[{key:"activate",value:function(){this._enabled&&null==this._samplesStartTime&&(this._samplesStartTime=g.performance.now())}},{key:"deactivateAndFlush",value:function(){if(this._enabled){var t=this._samplesStartTime;if(null!=t)if(this._info.sample_count0&&(c=Math.min(h,Math.max(0,y.offset-_)));for(var p=0,b=n.last,v=this._getFrameMetrics(b);b>=n.first&&(!v||!v.inLayout);)v=this._getFrameMetrics(b),b--;if(v&&b0?(this._anyBlankStartTime=f,this._info.any_blank_speed_sum+=u,this._info.any_blank_count++,this._info.pixels_blank+=M,T>.5&&(this._mostlyBlankStartTime=f,this._info.mostly_blank_count++)):(u<.01||Math.abs(l)<1)&&this.deactivateAndFlush(),T}},{key:"enabled",value:function(){return this._enabled}},{key:"_resetData",value:function(){this._anyBlankStartTime=null,this._info=new t,this._mostlyBlankStartTime=null,this._samplesStartTime=null}}],[{key:"addListener",value:function(t){return null===l&&console.warn('Call `FillRateHelper.setSampleRate` before `addListener`.'),n.push(t),{remove:function(){n=n.filter(function(n){return t!==n})}}}},{key:"setSampleRate",value:function(t){l=t}},{key:"setMinSampleCount",value:function(t){s=t}}]),_})();m.exports=_},279,[7,8,6]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=(function(){function t(n,l){r(d[0])(this,t),this._delay=l,this._callback=n}return r(d[1])(t,[{key:"dispose",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{abort:!1};this._taskHandle&&(this._taskHandle.cancel(),t.abort||this._callback(),this._taskHandle=null)}},{key:"schedule",value:function(){var t=this;if(!this._taskHandle){var n=setTimeout(function(){t._taskHandle=r(d[2]).runAfterInteractions(function(){t._taskHandle=null,t._callback()})},this._delay);this._taskHandle={cancel:function(){return clearTimeout(n)}}}}}]),t})();m.exports=t},280,[7,8,230]); -__d(function(g,r,_i,a,m,e,d){'use strict';function t(t,i){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=n(t))||i&&t&&"number"==typeof t.length){o&&(t=o);var s=0;return function(){return s>=t.length?{done:!0}:{done:!1,value:t[s++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function n(t,n){if(t){if("string"==typeof t)return i(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?i(t,n):void 0}}function i(t,n){(null==n||n>t.length)&&(n=t.length);for(var i=0,o=new Array(n);i0&&void 0!==arguments[0]?arguments[0]:{viewAreaCoveragePercentThreshold:0};r(d[0])(this,n),this._hasInteracted=!1,this._timers=new Set,this._viewableIndices=[],this._viewableItems=new Map,this._config=t}return r(d[1])(n,[{key:"dispose",value:function(){this._timers.forEach(clearTimeout)}},{key:"computeViewableItems",value:function(t,n,i,o,l){var u=this._config,c=u.itemVisiblePercentThreshold,h=u.viewAreaCoveragePercentThreshold,f=null!=h,v=f?h:c;r(d[2])(null!=v&&null!=c!=(null!=h),'Must set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold');var b=[];if(0===t)return b;var y=-1,w=l||{first:0,last:t-1},_=w.first,p=w.last;if(p>=t)return console.warn('Invalid render range computing viewability '+JSON.stringify({renderRange:l,itemCount:t})),[];for(var I=_;I<=p;I++){var A=o(I);if(A){var S=A.offset-n,T=S+A.length;if(S0)y=I,s(f,v,S,T,i,A.length)&&b.push(I);else if(y>=0)break}}return b}},{key:"onUpdate",value:function(t,n,i,o,s,l,u){var c=this;if((!this._config.waitForInteraction||this._hasInteracted)&&0!==t&&o(0)){var h=[];if(t&&(h=this.computeViewableItems(t,n,i,o,u)),this._viewableIndices.length!==h.length||!this._viewableIndices.every(function(t,n){return t===h[n]}))if(this._viewableIndices=h,this._config.minimumViewTime){var f=setTimeout(function(){c._timers.delete(f),c._onUpdateSync(h,l,s)},this._config.minimumViewTime);this._timers.add(f)}else this._onUpdateSync(h,l,s)}}},{key:"resetViewableIndices",value:function(){this._viewableIndices=[]}},{key:"recordInteraction",value:function(){this._hasInteracted=!0}},{key:"_onUpdateSync",value:function(n,i,o){var s=this;n=n.filter(function(t){return s._viewableIndices.includes(t)});for(var l,u=this._viewableItems,c=new Map(n.map(function(t){var n=o(t,!0);return[n.key,n]})),h=[],f=t(c);!(l=f()).done;){var v=l.value,b=r(d[3])(v,2),y=b[0],w=b[1];u.has(y)||h.push(w)}for(var _,p=t(u);!(_=p()).done;){var I=_.value,A=r(d[3])(I,2),S=A[0],T=A[1];c.has(S)||h.push(r(d[4])({},T,{isViewable:!1}))}h.length>0&&(this._viewableItems=c,i({viewableItems:Array.from(c.values()),changed:h,viewabilityConfig:this._config}))}}]),n})();function s(t,n,i,o,s,c){if(u(i,o,s))return!0;var h=l(i,o,s);return 100*(t?h/s:h/c)>=n}function l(t,n,i){var o=Math.min(n,i)-Math.max(t,0);return Math.max(0,o)}function u(t,n,i){return t>=0&&n<=i&&n>t}m.exports=o},281,[7,8,36,41,6]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.VirtualizedListContextResetter=function(e){var r=e.children;return t.createElement(n.Provider,{value:null},r)},_e.VirtualizedListContextProvider=function(e){var r=e.children,l=e.value,i=(0,t.useMemo)(function(){return{cellKey:null,getScrollMetrics:l.getScrollMetrics,horizontal:l.horizontal,getOutermostParentListRef:l.getOutermostParentListRef,getNestedChildState:l.getNestedChildState,registerAsNestedChild:l.registerAsNestedChild,unregisterAsNestedChild:l.unregisterAsNestedChild,debugInfo:{cellKey:l.debugInfo.cellKey,horizontal:l.debugInfo.horizontal,listKey:l.debugInfo.listKey,parent:l.debugInfo.parent}}},[l.getScrollMetrics,l.horizontal,l.getOutermostParentListRef,l.getNestedChildState,l.registerAsNestedChild,l.unregisterAsNestedChild,l.debugInfo.cellKey,l.debugInfo.horizontal,l.debugInfo.listKey,l.debugInfo.parent]);return t.createElement(n.Provider,{value:i},r)},_e.VirtualizedListCellContextProvider=function(r){var l=r.cellKey,i=r.children,o=(0,t.useContext)(n);return t.createElement(n.Provider,{value:null==o?null:(0,e.default)({},o,{cellKey:l})},i)},_e.VirtualizedListContext=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var l={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=i?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(l,o,u):l[o]=e[o]}return l.default=e,n&&n.set(e,l),l})(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var n=t.createContext(null);_e.VirtualizedListContext=n},282,[5,6,17]); -__d(function(g,_r,_i,_a,m,_e,d){!(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=f?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=t[u]}o.default=t,n&&n.set(t,o)})(_r(d[0]));function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}m.exports=_r(d[1])(_r(d[2]))},283,[17,249,284]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[5])),o=_r(d[0])(_r(d[6])),u=_r(d[0])(_r(d[7])),i=_r(d[0])(_r(d[8])),l=_r(d[0])(_r(d[9])),c=_r(d[0])(_r(d[10])),f=_r(d[0])(_r(d[11])),s=_r(d[0])(_r(d[12]));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}var p=function(e,r){var n,o,u=(0,c.default)(e.source)||{uri:void 0,width:void 0,height:void 0};if(Array.isArray(u))o=(0,l.default)([y.base,e.style])||{},n=u;else{var f=u.width,h=u.height,p=u.uri;o=(0,l.default)([{width:f,height:h},y.base,e.style])||{},n=[u],''===p&&console.warn('source.uri should not be an empty string')}var w=e.resizeMode||o.resizeMode||'cover',v=o.tintColor;if(null!=e.src&&console.warn('The component requires a `source` property rather than `src`.'),null!=e.children)throw new Error('The component cannot contain children. If you want to render content on top of the image, consider using the component or absolute positioning.');return a.createElement(i.default.Consumer,null,function(u){return a.createElement(s.default,(0,t.default)({},e,{ref:r,style:o,resizeMode:w,tintColor:v,source:n,internal_analyticTag:u}))})};p=a.forwardRef(p),null!=u.default.unstable_createImageComponent&&(p=u.default.unstable_createImageComponent(p)),p.displayName='Image',p.getSize=function(e,t,n){f.default.getSize(e).then(function(e){var n=(0,r.default)(e,2),a=n[0],o=n[1];return t(a,o)}).catch(n||function(){console.warn('Failed to get size for image '+e)})},p.getSizeWithHeaders=function(e,t,r,n){return f.default.getSizeWithHeaders(e,t).then(function(e){r(e.width,e.height)}).catch(n||function(){console.warn('Failed to get size for image: '+e)})},p.prefetch=function(e){return f.default.prefetchImage(e)},p.prefetchWithMetadata=function(e,t,r){return f.default.prefetchImageWithMetadata?f.default.prefetchImageWithMetadata(e,t,r||0):f.default.prefetchImage(e)},p.queryCache=function(t){return e.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.default.awrap(f.default.queryCache(t));case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}},null,null,null,Promise)},p.resolveAssetSource=c.default,p.propTypes=n.default;var y=o.default.create({base:{overflow:'hidden'}});m.exports=p},284,[5,80,6,41,285,17,183,288,291,178,165,292,289]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={style:r(d[0])(r(d[1])),source:r(d[2]),defaultSource:r(d[3]).oneOfType([r(d[3]).shape({uri:r(d[3]).string,width:r(d[3]).number,height:r(d[3]).number,scale:r(d[3]).number}),r(d[3]).number]),accessible:r(d[3]).bool,accessibilityLabel:r(d[3]).node,blurRadius:r(d[3]).number,capInsets:r(d[4]),resizeMethod:r(d[3]).oneOf(['auto','resize','scale']),resizeMode:r(d[3]).oneOf(['cover','contain','stretch','repeat','center']),testID:r(d[3]).string,onLayout:r(d[3]).func,onLoadStart:r(d[3]).func,onProgress:r(d[3]).func,onError:r(d[3]).func,onPartialLoad:r(d[3]).func,onLoad:r(d[3]).func,onLoadEnd:r(d[3]).func}},285,[196,286,287,201,208]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])({},r(d[1]),r(d[2]),r(d[3]),{resizeMode:r(d[4]).oneOf(['center','contain','cover','repeat','stretch']),backfaceVisibility:r(d[4]).oneOf(['visible','hidden']),backgroundColor:r(d[5]),borderColor:r(d[5]),borderWidth:r(d[4]).number,borderRadius:r(d[4]).number,overflow:r(d[4]).oneOf(['visible','hidden']),tintColor:r(d[5]),opacity:r(d[4]).number,overlayColor:r(d[4]).string,borderTopLeftRadius:r(d[4]).number,borderTopRightRadius:r(d[4]).number,borderBottomLeftRadius:r(d[4]).number,borderBottomRightRadius:r(d[4]).number});m.exports=o},286,[6,200,204,206,201,205]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).shape({uri:r(d[0]).string,bundle:r(d[0]).string,method:r(d[0]).string,headers:r(d[0]).objectOf(r(d[0]).string),body:r(d[0]).string,cache:r(d[0]).oneOf(['default','reload','force-cache','only-if-cached']),width:r(d[0]).number,height:r(d[0]).number,scale:r(d[0]).number}),t=r(d[0]).oneOfType([n,r(d[0]).number,r(d[0]).arrayOf(n)]);m.exports=t},287,[201]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}o.default=t,n&&n.set(t,o)})(_r(d[0])),_r(d[1])(_r(d[2])),_r(d[1])(_r(d[3]));function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}_e.default={unstable_createImageComponent:null}},288,[17,5,289,290]); -__d(function(g,_r,_i,_a,m,_e,d){function e(r){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(e=function(e){return e?o:t})(r)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var r=(function(r,t){if(!t&&r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var o=e(t);if(o&&o.has(r))return o.get(r);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in r)if("default"!==i&&Object.prototype.hasOwnProperty.call(r,i)){var s=n?Object.getOwnPropertyDescriptor(r,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=r[i]}return a.default=r,o&&o.set(r,a),a})(_r(d[0])).get('RCTImageView',function(){return{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,capInsets:{diff:_r(d[1])},defaultSource:{process:_r(d[2])},defaultSrc:!0,fadeDuration:!0,headers:!0,internal_analyticTag:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:_r(d[3])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:_r(d[3])}}}});_e.default=r},289,[154,149,165,145]); -__d(function(g,_r,_i,_a,m,_e,d){'use strict';function e(r){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(e=function(e){return e?o:t})(r)}var r=(function(r,t){if(!t&&r&&r.__esModule)return r;if(null===r||"object"!=typeof r&&"function"!=typeof r)return{default:r};var o=e(t);if(o&&o.has(r))return o.get(r);var a={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in r)if("default"!==i&&Object.prototype.hasOwnProperty.call(r,i)){var s=n?Object.getOwnPropertyDescriptor(r,i):null;s&&(s.get||s.set)?Object.defineProperty(a,i,s):a[i]=r[i]}return a.default=r,o&&o.set(r,a),a})(_r(d[0])).get('RCTTextInlineImage',function(){return{uiViewClassName:'RCTImageView',bubblingEventTypes:{},directEventTypes:{topLoadStart:{registrationName:'onLoadStart'},topProgress:{registrationName:'onProgress'},topError:{registrationName:'onError'},topPartialLoad:{registrationName:'onPartialLoad'},topLoad:{registrationName:'onLoad'},topLoadEnd:{registrationName:'onLoadEnd'}},validAttributes:{blurRadius:!0,capInsets:{diff:_r(d[1])},defaultSource:{process:_r(d[2])},defaultSrc:!0,fadeDuration:!0,headers:!0,internal_analyticTag:!0,loadingIndicatorSrc:!0,onError:!0,onLoad:!0,onLoadEnd:!0,onLoadStart:!0,onPartialLoad:!0,onProgress:!0,overlayColor:{process:_r(d[3])},progressiveRenderingEnabled:!0,resizeMethod:!0,resizeMode:!0,shouldNotifyLoadEvents:!0,source:!0,src:!0,tintColor:{process:_r(d[3])}}}});m.exports=r},290,[154,149,165,145]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).createContext(null);_e.default=t},291,[17]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).getEnforcing('ImageLoader');_e.default=t},292,[39]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=r(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=f?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,n&&n.set(e,o),o})(_r(d[2]));function r(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(r=function(e){return e?n:t})(e)}var n=t.forwardRef(function(r,n){return t.createElement(_r(d[3]),(0,e.default)({scrollEventThrottle:1e-4},r,{ref:n}))});m.exports=_r(d[4])(n)},293,[5,6,17,259,249]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=f?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o})(_r(d[2])),r=_r(d[0])(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var o=t.forwardRef(function(n,o){return t.createElement(r.default,(0,e.default)({scrollEventThrottle:1e-4},n,{ref:o}))});m.exports=_r(d[4])(o)},294,[5,6,17,295,249]); -__d(function(g,_r,_i,_a,m,_e,d){'use strict';Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),a=_r(d[0])(_r(d[5])),i=_r(d[0])(_r(d[6])),o=_r(d[0])(_r(d[7])),f=_r(d[0])(_r(d[8])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=a?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n})(_r(d[9])),l=_r(d[0])(_r(d[10]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var p=(function(c){(0,a.default)(y,c);var p,v,h=(p=y,v=s(),function(){var e,t=(0,o.default)(p);if(v){var r=(0,o.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,i.default)(this,e)});function y(){var e;(0,r.default)(this,y);for(var t=arguments.length,n=new Array(t),a=0;a=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function v(e,t){if(e){if("string"==typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&this.props.stickySectionHeadersEnabled)i+=this._listRef._getFrameMetricsApprox(t-e.itemIndex).length;var o=(0,n.default)({},e,{viewOffset:i,index:t});this._listRef.scrollToIndex(o)}}},{key:"getListRef",value:function(){return this._listRef}},{key:"render",value:function(){for(var e,r=this,i=this.props,o=(i.ItemSeparatorComponent,i.SectionSeparatorComponent,i.renderItem,i.renderSectionFooter,i.renderSectionHeader,i.sections,i.stickySectionHeadersEnabled,(0,t.default)(i,["ItemSeparatorComponent","SectionSeparatorComponent","renderItem","renderSectionFooter","renderSectionHeader","sections","stickySectionHeadersEnabled"])),a=this.props.ListHeaderComponent?1:0,l=this.props.stickySectionHeadersEnabled?[]:void 0,u=0,c=h(this.props.sections);!(e=c()).done;){var f=e.value;null!=l&&l.push(u+a),u+=2,u+=this.props.getItemCount(f.data)}var v=this._renderItem(u);return p.createElement(s.VirtualizedList,(0,n.default)({},o,{keyExtractor:this._keyExtractor,stickyHeaderIndices:l,renderItem:v,data:this.props.sections,getItem:function(e,t){return r._getItem(r.props,e,t)},getItemCount:function(){return u},onViewableItemsChanged:this.props.onViewableItemsChanged?this._onViewableItemsChanged:void 0,ref:this._captureRef}))}},{key:"_getItem",value:function(e,t,n){if(!t)return null;for(var r=n-1,i=0;i=i(c)+1)t-=i(c)+1;else return-1===t?{section:u,key:s+':header',index:null,header:!0,trailingSection:a[l+1]}:t===i(c)?{section:u,key:s+':footer',index:null,header:!1,trailingSection:a[l+1]}:{section:u,key:s+':'+(u.keyExtractor||o||_r(d[13]).keyExtractor)(r(c,t),t),index:t,leadingItem:r(c,t-1),leadingSection:a[l-1],trailingItem:r(c,t+1),trailingSection:a[l+1]}}}},{key:"_getSeparatorComponent",value:function(e,t,n){if(!(t=t||this._subExtractor(e)))return null;var r=t.section.ItemSeparatorComponent||this.props.ItemSeparatorComponent,i=this.props.SectionSeparatorComponent,o=e===n-1,a=t.index===this.props.getItemCount(t.section.data)-1;return i&&a?i:!r||a||o?null:r}}]),I})(p.PureComponent);function _(t){var r=t.LeadingSeparatorComponent,i=t.SeparatorComponent,o=t.cellKey,a=t.prevCellKey,l=t.setSelfHighlightCallback,u=t.updateHighlightFor,c=t.setSelfUpdatePropsCallback,f=t.updatePropsFor,h=t.item,v=t.index,y=t.section,S=t.inverted,I=p.useState(!1),_=(0,e.default)(I,2),b=_[0],x=_[1],k=p.useState(!1),C=(0,e.default)(k,2),E=C[0],w=C[1],H=p.useState({leadingItem:t.leadingItem,leadingSection:t.leadingSection,section:t.section,trailingItem:t.item,trailingSection:t.trailingSection}),P=(0,e.default)(H,2),F=P[0],M=P[1],O=p.useState({leadingItem:t.item,leadingSection:t.leadingSection,section:t.section,trailingItem:t.trailingItem,trailingSection:t.trailingSection}),R=(0,e.default)(O,2),V=R[0],j=R[1];p.useEffect(function(){return l(o,w),c(o,j),function(){c(o,null),l(o,null)}},[o,l,j,c]);var A={highlight:function(){x(!0),w(!0),null!=a&&u(a,!0)},unhighlight:function(){x(!1),w(!1),null!=a&&u(a,!1)},updateProps:function(e,t){'leading'===e?null!=r?M((0,n.default)({},F,t)):null!=a&&f(a,(0,n.default)({},F,t)):'trailing'===e&&null!=i&&j((0,n.default)({},V,t))}},U=t.renderItem({item:h,index:v,section:y,separators:A}),L=null!=r&&p.createElement(r,(0,n.default)({highlighted:b},F)),B=null!=i&&p.createElement(i,(0,n.default)({highlighted:E},V));return L||B?p.createElement(s.View,null,!1===S?L:B,U,!1===S?B:L):U}m.exports=I},296,[5,41,108,6,7,8,15,12,14,16,36,28,17,257]); -__d(function(g,_r,_i,_a,m,_e,d){!(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=f?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=t[u]}o.default=t,n&&n.set(t,o)})(_r(d[0]));function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}m.exports=_r(d[1])(_r(d[2]))},297,[17,249,194]); -__d(function(g,_r,_i,_a,m,_e,d){!(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in t)if("default"!==u&&Object.prototype.hasOwnProperty.call(t,u)){var a=f?Object.getOwnPropertyDescriptor(t,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=t[u]}o.default=t,n&&n.set(t,o)})(_r(d[0]));function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}m.exports=_r(d[1])(_r(d[2]))},298,[17,249,184]); -__d(function(g,r,i,a,m,e,d){'use strict';var n={};m.exports=function(o,t){n[o]||(console.warn(t),n[o]=!0)}},299,[]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),i=_r(d[0])(_r(d[4])),a=_r(d[0])(_r(d[5])),r=p(_r(d[6])),o=p(_r(d[7])),u=_r(d[0])(_r(d[8])),l=_r(d[0])(_r(d[9])),c=_r(d[0])(_r(d[10]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function p(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var o=a?Object.getOwnPropertyDescriptor(e,r):null;o&&(o.get||o.set)?Object.defineProperty(i,r,o):i[r]=e[r]}return i.default=e,n&&n.set(e,i),i}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var h=(function(u){(0,n.default)(v,u);var f,p,h=(f=v,p=s(),function(){var e,t=(0,a.default)(f);if(p){var n=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,i.default)(this,e)});function v(){var t;(0,e.default)(this,v);for(var n=arguments.length,i=new Array(n),a=0;a is only supported on iOS.'),0===u.Children.count(this.props.children)?null:u.createElement(l.default,{style:[this.props.style,s.container],nativeID:this.props.nativeID,backgroundColor:this.props.backgroundColor},this.props.children)}}]),h})(u.Component),s=i.default.create({container:{position:'absolute'}});m.exports=p},304,[5,7,8,12,14,16,17,37,183,305]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('InputAccessory',{interfaceOnly:!0,paperComponentName:'RCTInputAccessoryView',excludedPlatforms:['android']});e.default=t},305,[5,190]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),a=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),r=_r(d[0])(_r(d[5])),o=_r(d[0])(_r(d[6])),i=_r(d[0])(_r(d[7])),u=_r(d[0])(_r(d[8])),l=_r(d[0])(_r(d[9])),f=_r(d[0])(_r(d[10])),s=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=h(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var i=r?Object.getOwnPropertyDescriptor(e,o):null;i&&(i.get||i.set)?Object.defineProperty(n,o,i):n[o]=e[o]}return n.default=e,a&&a.set(e,n),n})(_r(d[11])),c=_r(d[0])(_r(d[12])),y=_r(d[0])(_r(d[13]));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(h=function(e){return e?a:t})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var v=(function(h){(0,r.default)(k,h);var v,_,b=(v=k,_=p(),function(){var e,t=(0,i.default)(v);if(_){var a=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function k(e){var t;return(0,a.default)(this,k),(t=b.call(this,e))._frame=null,t._keyboardEvent=null,t._subscriptions=[],t._initialFrameHeight=0,t._onKeyboardChange=function(e){t._keyboardEvent=e,t._updateBottomIfNecesarry()},t._onLayout=function(e){var a=null==t._frame;t._frame=e.nativeEvent.layout,t._initialFrameHeight||(t._initialFrameHeight=t._frame.height),a&&t._updateBottomIfNecesarry()},t._updateBottomIfNecesarry=function(){if(null!=t._keyboardEvent){var e=t._keyboardEvent,a=e.duration,n=e.easing,r=e.endCoordinates,o=t._relativeKeyboardHeight(r);t.state.bottom!==o&&(a&&n&&l.default.configureNext({duration:a>10?a:10,update:{duration:a>10?a:10,type:l.default.Types[n]||'keyboard'}}),t.setState({bottom:o}))}else t.setState({bottom:0})},t.state={bottom:0},t.viewRef=s.createRef(),t}return(0,n.default)(k,[{key:"_relativeKeyboardHeight",value:function(e){var t,a=this._frame;if(!a||!e)return 0;var n=e.screenY-(null!=(t=this.props.keyboardVerticalOffset)?t:0);return Math.max(a.y+a.height-n,0)}},{key:"componentDidMount",value:function(){'ios'===f.default.OS?this._subscriptions=[u.default.addListener('keyboardWillChangeFrame',this._onKeyboardChange)]:this._subscriptions=[u.default.addListener('keyboardDidHide',this._onKeyboardChange),u.default.addListener('keyboardDidShow',this._onKeyboardChange)]}},{key:"componentWillUnmount",value:function(){this._subscriptions.forEach(function(e){e.remove()})}},{key:"render",value:function(){var a=this.props,n=a.behavior,r=a.children,o=a.contentContainerStyle,i=a.enabled,u=void 0===i||i,l=(a.keyboardVerticalOffset,a.style),f=(0,t.default)(a,["behavior","children","contentContainerStyle","enabled","keyboardVerticalOffset","style"]),h=!0===u?this.state.bottom:0;switch(n){case'height':var p;return null!=this._frame&&this.state.bottom>0&&(p={height:this._initialFrameHeight-h,flex:0}),s.createElement(y.default,(0,e.default)({ref:this.viewRef,style:c.default.compose(l,p),onLayout:this._onLayout},f),r);case'position':return s.createElement(y.default,(0,e.default)({ref:this.viewRef,style:l,onLayout:this._onLayout},f),s.createElement(y.default,{style:c.default.compose(o,{bottom:h})},r));case'padding':return s.createElement(y.default,(0,e.default)({ref:this.viewRef,style:c.default.compose(l,{paddingBottom:h}),onLayout:this._onLayout},f),r);default:return s.createElement(y.default,(0,e.default)({ref:this.viewRef,onLayout:this._onLayout,style:l},f),r)}}}]),k})(s.Component);_e.default=v},306,[5,6,108,7,8,12,14,16,261,262,37,17,183,184]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),r=_r(d[0])(_r(d[4])),a=_r(d[0])(_r(d[5])),l=_r(d[0])(_r(d[6])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=f(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var o=a?Object.getOwnPropertyDescriptor(e,l):null;o&&(o.get||o.set)?Object.defineProperty(r,l,o):r[l]=e[l]}return r.default=e,n&&n.set(e,r),r})(_r(d[7])),u=_r(d[0])(_r(d[8])),i=_r(d[0])(_r(d[9])),c=_r(d[0])(_r(d[10]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(f=function(e){return e?n:t})(e)}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(s=function(){return!!e})()}var p=(function(f){(0,r.default)(y,f);var p,v,h=(p=y,v=s(),function(){var e,t=(0,l.default)(p);if(v){var n=(0,l.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,a.default)(this,e)});function y(){var e;(0,t.default)(this,y);for(var n=arguments.length,r=new Array(n),a=0;a=21&&(null!=u||null!=a||null!=i)){var r=(0,n.processColor)(u);(0,e.default)(null==r||'number'==typeof r,'Unexpected color given for Ripple color');var t={type:'RippleAndroid',color:r,borderless:!0===a,rippleRadius:i};return{viewProps:!0===s?{nativeForegroundAndroid:t}:{nativeBackgroundAndroid:t},onPressIn:function(e){var n,r,t=o.current;null!=t&&(_r(d[4]).Commands.hotspotUpdate(t,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0),_r(d[4]).Commands.setPressed(t,!0))},onPressMove:function(e){var n,r,t=o.current;null!=t&&_r(d[4]).Commands.hotspotUpdate(t,null!=(n=e.nativeEvent.locationX)?n:0,null!=(r=e.nativeEvent.locationY)?r:0)},onPressOut:function(e){var n=o.current;null!=n&&_r(d[4]).Commands.setPressed(n,!1)}}}return null},[a,u,s,i,o])};var e=_r(d[0])(_r(d[1])),n=_r(d[2]),r=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=t(n);if(r&&r.has(e))return r.get(e);var o={__proto__:null},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=l?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(o,u,a):o[u]=e[u]}return o.default=e,r&&r.set(e,o),o})(_r(d[3]));function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,r=new WeakMap;return(t=function(e){return e?r:n})(e)}},317,[5,36,28,17,185]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},f=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var a=f?Object.getOwnPropertyDescriptor(e,u):null;a&&(a.get||a.set)?Object.defineProperty(n,u,a):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n})(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var f=r.default.create({progressView:{height:2}}),u=t.forwardRef(function(r,o){return t.createElement(n.default,(0,e.default)({},r,{style:[f.progressView,r.style],ref:o}))});m.exports=u},318,[5,6,17,183,319]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0])(r(d[1])).default)('RCTProgressView');e.default=t},319,[5,190]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e,t=_r(d[0])(_r(d[1])),r=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(n,a,o):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[4])),a=_r(d[0])(_r(d[5]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}if('android'===n.default.OS)e=u.forwardRef(function(e,n){e.emulateUnlessSupported;var f=(0,r.default)(e,["emulateUnlessSupported"]);return u.createElement(a.default,(0,t.default)({},f,{ref:n}))});else{var o=_r(d[6]).default;e=u.forwardRef(function(e,r){return u.createElement(o,(0,t.default)({emulateUnlessSupported:!0},e,{ref:r}))})}var l=e;_e.default=l},320,[5,6,108,37,17,184,321]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var f=(0,r(d[0])(r(d[1])).default)('SafeAreaView',{paperComponentName:'RCTSafeAreaView',interfaceOnly:!0});e.default=f},321,[5,190]); -__d(function(g,_r,_i,_a,m,_e,d){var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),r=_r(d[0])(_r(d[4])),a=_r(d[0])(_r(d[5])),o=_r(d[0])(_r(d[6])),u=_r(d[0])(_r(d[7])),l=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[8])),f=_r(d[0])(_r(d[9])),c=_r(d[0])(_r(d[10]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var s=(function(f){(0,a.default)(y,f);var i,s,v=(i=y,s=p(),function(){var e,t=(0,u.default)(i);if(s){var n=(0,u.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function y(){var e;(0,n.default)(this,y);for(var t=arguments.length,r=new Array(t),a=0;a1&&(ge=l.createElement(a.default,null,ge)),te=l.createElement(y,(0,e.default)({ref:Q},u,ce,{accessible:le,autoCapitalize:pe,blurOnSubmit:ne,caretHidden:oe,children:ge,disableFullscreenUI:u.disableFullscreenUI,focusable:ue,mostRecentEventCount:k,onBlur:$,onChange:X,onFocus:Z,onScroll:ee,onSelectionChange:Y,placeholder:ve,selection:w,style:fe,text:q,textBreakStrategy:u.textBreakStrategy}))}return l.createElement(c.default.Provider,{value:!0},te)}var P=l.forwardRef(function(n,u){var r=n.allowFontScaling,o=void 0===r||r,a=n.rejectResponderTermination,c=void 0===a||a,i=n.underlineColorAndroid,s=void 0===i?'transparent':i,f=(0,t.default)(n,["allowFontScaling","rejectResponderTermination","underlineColorAndroid"]);return l.createElement(E,(0,e.default)({allowFontScaling:o,rejectResponderTermination:c,underlineColorAndroid:s},f,{forwardedRef:u}))});P.propTypes=u.default,P.State={currentlyFocusedInput:i.default.currentlyFocusedInput,currentlyFocusedField:i.default.currentlyFocusedField,focusTextInput:i.default.focusTextInput,blurTextInput:i.default.blurTextInput};var j=o.default.create({multilineInput:{paddingTop:5}});m.exports=P},333,[5,6,108,41,17,334,37,183,194,186,139,36,337,251,210,338,140,340]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=['phoneNumber','link','address','calendarEvent','none','all'];m.exports=r(d[0])({},r(d[1]),{autoCapitalize:r(d[2]).oneOf(['none','sentences','words','characters']),autoComplete:r(d[2]).oneOf(['cc-csc','cc-exp','cc-exp-month','cc-exp-year','cc-number','email','name','password','postal-code','street-address','tel','username','off']),autoCorrect:r(d[2]).bool,spellCheck:r(d[2]).bool,autoFocus:r(d[2]).bool,allowFontScaling:r(d[2]).bool,maxFontSizeMultiplier:r(d[2]).number,editable:r(d[2]).bool,keyboardType:r(d[2]).oneOf(['default','email-address','numeric','phone-pad','number-pad','url','ascii-capable','numbers-and-punctuation','name-phone-pad','decimal-pad','twitter','web-search','ascii-capable-number-pad','visible-password']),keyboardAppearance:r(d[2]).oneOf(['default','light','dark']),returnKeyType:r(d[2]).oneOf(['done','go','next','search','send','none','previous','default','emergency-call','google','join','route','yahoo']),returnKeyLabel:r(d[2]).string,maxLength:r(d[2]).number,numberOfLines:r(d[2]).number,disableFullscreenUI:r(d[2]).bool,enablesReturnKeyAutomatically:r(d[2]).bool,multiline:r(d[2]).bool,textBreakStrategy:r(d[2]).oneOf(['simple','highQuality','balanced']),onBlur:r(d[2]).func,onFocus:r(d[2]).func,onChange:r(d[2]).func,onChangeText:r(d[2]).func,onContentSizeChange:r(d[2]).func,onTextInput:r(d[2]).func,onEndEditing:r(d[2]).func,onSelectionChange:r(d[2]).func,onSubmitEditing:r(d[2]).func,onKeyPress:r(d[2]).func,onLayout:r(d[2]).func,onScroll:r(d[2]).func,placeholder:r(d[2]).string,placeholderTextColor:r(d[3]),scrollEnabled:r(d[2]).bool,secureTextEntry:r(d[2]).bool,selectionColor:r(d[3]),selection:r(d[2]).shape({start:r(d[2]).number.isRequired,end:r(d[2]).number}),value:r(d[2]).string,defaultValue:r(d[2]).string,clearButtonMode:r(d[2]).oneOf(['never','while-editing','unless-editing','always']),clearTextOnFocus:r(d[2]).bool,selectTextOnFocus:r(d[2]).bool,blurOnSubmit:r(d[2]).bool,style:r(d[4]).style,underlineColorAndroid:r(d[3]),inlineImageLeft:r(d[2]).string,inlineImagePadding:r(d[2]).number,rejectResponderTermination:r(d[2]).bool,dataDetectorTypes:r(d[2]).oneOfType([r(d[2]).oneOf(n),r(d[2]).arrayOf(r(d[2]).oneOf(n))]),caretHidden:r(d[2]).bool,contextMenuHidden:r(d[2]).bool,inputAccessoryViewID:r(d[2]).string,textContentType:r(d[2]).oneOf(['none','URL','addressCity','addressCityAndState','addressState','countryName','creditCardNumber','emailAddress','familyName','fullStreetAddress','givenName','jobTitle','location','middleName','name','namePrefix','nameSuffix','nickname','organizationName','postalCode','streetAddressLine1','streetAddressLine2','sublocality','telephoneNumber','username','password','newPassword','oneTimeCode']),showSoftInputOnFocus:r(d[2]).bool})},334,[6,335,201,205,195]); -__d(function(g,r,i,a,m,e,d){'use strict';var o=r(d[0])(r(d[1]));m.exports={accessible:r(d[2]).bool,accessibilityLabel:r(d[2]).node,accessibilityHint:r(d[2]).string,accessibilityActions:r(d[2]).arrayOf(r(d[2]).string),accessibilityIgnoresInvertColors:r(d[2]).bool,accessibilityRole:r(d[2]).oneOf(r(d[3]).DeprecatedAccessibilityRoles),accessibilityState:r(d[2]).object,accessibilityValue:r(d[2]).object,accessibilityLiveRegion:r(d[2]).oneOf(['none','polite','assertive']),importantForAccessibility:r(d[2]).oneOf(['auto','yes','no','no-hide-descendants']),accessibilityViewIsModal:r(d[2]).bool,accessibilityElementsHidden:r(d[2]).bool,onAccessibilityAction:r(d[2]).func,onAccessibilityTap:r(d[2]).func,onMagicTap:r(d[2]).func,testID:r(d[2]).string,nativeID:r(d[2]).string,onResponderGrant:r(d[2]).func,onResponderMove:r(d[2]).func,onResponderReject:r(d[2]).func,onResponderRelease:r(d[2]).func,onResponderTerminate:r(d[2]).func,onResponderTerminationRequest:r(d[2]).func,onStartShouldSetResponder:r(d[2]).func,onStartShouldSetResponderCapture:r(d[2]).func,onMoveShouldSetResponder:r(d[2]).func,onMoveShouldSetResponderCapture:r(d[2]).func,hitSlop:r(d[4]),onLayout:r(d[2]).func,pointerEvents:r(d[2]).oneOf(['box-none','none','box-only','auto']),style:o,removeClippedSubviews:r(d[2]).bool,renderToHardwareTextureAndroid:r(d[2]).bool,shouldRasterizeIOS:r(d[2]).bool,collapsable:r(d[2]).bool,needsOffscreenAlphaCompositing:r(d[2]).bool}},335,[196,199,201,336,208]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports={DeprecatedAccessibilityRoles:['none','button','togglebutton','link','search','image','keyboardkey','text','adjustable','imagebutton','header','summary','alert','checkbox','combobox','menu','menubar','menuitem','progressbar','radio','radiogroup','scrollbar','spinbutton','switch','tab','tablist','timer','list','toolbar']}},336,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t,o){if(null!=t)return t;var n=new Error(void 0!==o?o:'Got unexpected '+t);throw n.framesToPop=1,n}m.exports=t,m.exports.default=t,Object.defineProperty(m.exports,'__esModule',{value:!0})},337,[]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.Commands=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=u?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=e[a]}return o.default=e,r&&r.set(e,o),o})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var o=(0,e.default)({supportedCommands:['focus','blur','setTextAndSelection']});_e.Commands=o;var u=r.get('TextInput24a1f5c',function(){return t.default});_e.default=u},338,[5,141,339,154]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n={uiViewClassName:'AndroidTextInput',bubblingEventTypes:{topBlur:{phasedRegistrationNames:{bubbled:'onBlur',captured:'onBlurCapture'}},topEndEditing:{phasedRegistrationNames:{bubbled:'onEndEditing',captured:'onEndEditingCapture'}},topFocus:{phasedRegistrationNames:{bubbled:'onFocus',captured:'onFocusCapture'}},topKeyPress:{phasedRegistrationNames:{bubbled:'onKeyPress',captured:'onKeyPressCapture'}},topSubmitEditing:{phasedRegistrationNames:{bubbled:'onSubmitEditing',captured:'onSubmitEditingCapture'}},topTextInput:{phasedRegistrationNames:{bubbled:'onTextInput',captured:'onTextInputCapture'}}},directEventTypes:{},validAttributes:(0,t.default)({},o.default.validAttributes,{maxFontSizeMultiplier:!0,adjustsFontSizeToFit:!0,minimumFontScale:!0,autoFocus:!0,placeholder:!0,inlineImagePadding:!0,contextMenuHidden:!0,textShadowColor:{process:r(d[3])},maxLength:!0,selectTextOnFocus:!0,textShadowRadius:!0,underlineColorAndroid:{process:r(d[3])},textDecorationLine:!0,blurOnSubmit:!0,textAlignVertical:!0,fontStyle:!0,textShadowOffset:!0,selectionColor:{process:r(d[3])},selection:!0,placeholderTextColor:{process:r(d[3])},importantForAutofill:!0,lineHeight:!0,textTransform:!0,returnKeyType:!0,keyboardType:!0,multiline:!0,color:{process:r(d[3])},autoCompleteType:!0,autoComplete:!0,numberOfLines:!0,letterSpacing:!0,returnKeyLabel:!0,fontSize:!0,onKeyPress:!0,cursorColor:{process:r(d[3])},text:!0,showSoftInputOnFocus:!0,textAlign:!0,autoCapitalize:!0,autoCorrect:!0,caretHidden:!0,secureTextEntry:!0,textBreakStrategy:!0,onScroll:!0,onContentSizeChange:!0,disableFullscreenUI:!0,includeFontPadding:!0,fontWeight:!0,fontFamily:!0,allowFontScaling:!0,onSelectionChange:!0,mostRecentEventCount:!0,inlineImageLeft:!0,editable:!0,fontVariant:!0})};m.exports=n},339,[5,6,143,145]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.Commands=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var u={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var f=o?Object.getOwnPropertyDescriptor(e,a):null;f&&(f.get||f.set)?Object.defineProperty(u,a,f):u[a]=e[a]}return u.default=e,r&&r.set(e,u),u})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var u=(0,e.default)({supportedCommands:['focus','blur','setTextAndSelection']});_e.Commands=u;var o=r.get('RCTMultilineTextInputView',function(){return t.default});_e.default=o},340,[5,141,142,154]); -__d(function(g,_r,_i,_a,m,_e,d){var t=_r(d[0])(_r(d[1])),e=_r(d[0])(_r(d[2])),o=((function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var o=n(e);if(o&&o.has(t))return o.get(t);var i={__proto__:null},E=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=E?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(i,s,a):i[s]=t[s]}i.default=t,o&&o.set(t,i)})(_r(d[3])),_r(d[0])(_r(d[4]))),i=_r(d[0])(_r(d[5])),E=_r(d[0])(_r(d[6])),s=_r(d[0])(_r(d[7])),a=_r(d[0])(_r(d[8]));function n(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,o=new WeakMap;return(n=function(t){return t?o:e})(t)}var l=function(t){var e=t.touches,o=t.changedTouches,i=e&&e.length>0,E=o&&o.length>0;return!i&&E?o[0]:i?e[0]:t},u='NOT_RESPONDER',h='RESPONDER_INACTIVE_PRESS_IN',r='RESPONDER_INACTIVE_PRESS_OUT',R='RESPONDER_ACTIVE_PRESS_IN',_='RESPONDER_ACTIVE_PRESS_OUT',c='RESPONDER_ACTIVE_LONG_PRESS_IN',S='RESPONDER_ACTIVE_LONG_PRESS_OUT',T='ERROR',P={NOT_RESPONDER:!1,RESPONDER_INACTIVE_PRESS_IN:!1,RESPONDER_INACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_PRESS_IN:!1,RESPONDER_ACTIVE_PRESS_OUT:!1,RESPONDER_ACTIVE_LONG_PRESS_IN:!1,RESPONDER_ACTIVE_LONG_PRESS_OUT:!1,ERROR:!1},D=(0,e.default)({},P,{RESPONDER_ACTIVE_PRESS_OUT:!0,RESPONDER_ACTIVE_PRESS_IN:!0}),N=(0,e.default)({},P,{RESPONDER_INACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_PRESS_IN:!0,RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),O=(0,e.default)({},P,{RESPONDER_ACTIVE_LONG_PRESS_IN:!0}),p='DELAY',f='RESPONDER_GRANT',A='RESPONDER_RELEASE',b='RESPONDER_TERMINATED',I='ENTER_PRESS_RECT',L='LEAVE_PRESS_RECT',v='LONG_PRESS_DETECTED',y={NOT_RESPONDER:{DELAY:T,RESPONDER_GRANT:h,RESPONDER_RELEASE:T,RESPONDER_TERMINATED:T,ENTER_PRESS_RECT:T,LEAVE_PRESS_RECT:T,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_IN:{DELAY:R,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:r,LONG_PRESS_DETECTED:T},RESPONDER_INACTIVE_PRESS_OUT:{DELAY:_,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:h,LEAVE_PRESS_RECT:r,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:R,LEAVE_PRESS_RECT:_,LONG_PRESS_DETECTED:T},RESPONDER_ACTIVE_LONG_PRESS_IN:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:c},RESPONDER_ACTIVE_LONG_PRESS_OUT:{DELAY:T,RESPONDER_GRANT:T,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:c,LEAVE_PRESS_RECT:S,LONG_PRESS_DETECTED:T},error:{DELAY:u,RESPONDER_GRANT:h,RESPONDER_RELEASE:u,RESPONDER_TERMINATED:u,ENTER_PRESS_RECT:u,LEAVE_PRESS_RECT:u,LONG_PRESS_DETECTED:u}},C={componentDidMount:function(){i.default.isTV},componentWillUnmount:function(){this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout)},touchableGetInitialState:function(){return{touchable:{touchState:void 0,responderID:null}}},touchableHandleResponderTerminationRequest:function(){return!this.props.rejectResponderTermination},touchableHandleStartShouldSetResponder:function(){return!this.props.disabled},touchableLongPressCancelsPress:function(){return!0},touchableHandleResponderGrant:function(t){var e=t.currentTarget;t.persist(),this.pressOutDelayTimeout&&clearTimeout(this.pressOutDelayTimeout),this.pressOutDelayTimeout=null,this.state.touchable.touchState=u,this.state.touchable.responderID=e,this._receiveSignal(f,t);var o=void 0!==this.touchableGetHighlightDelayMS?Math.max(this.touchableGetHighlightDelayMS(),0):130;0!==(o=isNaN(o)?130:o)?this.touchableDelayTimeout=setTimeout(this._handleDelay.bind(this,t),o):this._handleDelay(t);var i=void 0!==this.touchableGetLongPressDelayMS?Math.max(this.touchableGetLongPressDelayMS(),10):370;i=isNaN(i)?370:i,this.longPressDelayTimeout=setTimeout(this._handleLongDelay.bind(this,t),i+o)},touchableHandleResponderRelease:function(t){this.pressInLocation=null,this._receiveSignal(A,t)},touchableHandleResponderTerminate:function(t){this.pressInLocation=null,this._receiveSignal(b,t)},touchableHandleResponderMove:function(t){if(this.state.touchable.positionOnActivate){var e=this.state.touchable.positionOnActivate,o=this.state.touchable.dimensionsOnActivate,i=this.touchableGetPressRectOffset?this.touchableGetPressRectOffset():{left:20,right:20,top:20,bottom:20},E=i.left,s=i.top,a=i.right,n=i.bottom,u=this.touchableGetHitSlop?this.touchableGetHitSlop():null;u&&(E+=u.left||0,s+=u.top||0,a+=u.right||0,n+=u.bottom||0);var r=l(t.nativeEvent),R=r&&r.pageX,_=r&&r.pageY;if(this.pressInLocation)this._getDistanceBetweenPoints(R,_,this.pressInLocation.pageX,this.pressInLocation.pageY)>10&&this._cancelLongPressDelayTimeout();if(R>e.left-E&&_>e.top-s&&R>`");i!==E&&(this._performSideEffectsForTransition(i,E,t,e),this.state.touchable.touchState=E)}},_cancelLongPressDelayTimeout:function(){this.longPressDelayTimeout&&clearTimeout(this.longPressDelayTimeout),this.longPressDelayTimeout=null},_isHighlight:function(t){return t===R||t===c},_savePressInLocation:function(t){var e=l(t.nativeEvent),o=e&&e.pageX,i=e&&e.pageY,E=e&&e.locationX,s=e&&e.locationY;this.pressInLocation={pageX:o,pageY:i,locationX:E,locationY:s}},_getDistanceBetweenPoints:function(t,e,o,i){var E=t-o,s=e-i;return Math.sqrt(E*E+s*s)},_performSideEffectsForTransition:function(t,e,o,E){var s=this._isHighlight(t),n=this._isHighlight(e);(o===b||o===A)&&this._cancelLongPressDelayTimeout();var l=t===u&&e===h,r=!D[t]&&D[e];if((l||r)&&this._remeasureMetricsOnActivation(),N[t]&&o===v&&this.touchableHandleLongPress&&this.touchableHandleLongPress(E),n&&!s?this._startHighlight(E):!n&&s&&this._endHighlight(E),N[t]&&o===A){var R=!!this.props.onLongPress,_=O[t]&&(!R||!this.touchableLongPressCancelsPress());(!O[t]||_)&&this.touchableHandlePress&&(n||s||(this._startHighlight(E),this._endHighlight(E)),'android'!==i.default.OS||this.props.touchSoundDisabled||a.default.playTouchSound(),this.touchableHandlePress(E))}this.touchableDelayTimeout&&clearTimeout(this.touchableDelayTimeout),this.touchableDelayTimeout=null},_startHighlight:function(t){this._savePressInLocation(t),this.touchableHandleActivePressIn&&this.touchableHandleActivePressIn(t)},_endHighlight:function(t){var e=this;this.touchableHandleActivePressOut&&(this.touchableGetPressOutDelayMS&&this.touchableGetPressOutDelayMS()?this.pressOutDelayTimeout=setTimeout(function(){e.touchableHandleActivePressOut(t)},this.touchableGetPressOutDelayMS()):this.touchableHandleActivePressOut(t))},withoutDefaultFocusAndBlur:{}},G=(C.touchableHandleFocus,C.touchableHandleBlur,(0,t.default)(C,["touchableHandleFocus","touchableHandleBlur"]));C.withoutDefaultFocusAndBlur=G;var V={Mixin:C,renderDebugView:function(t){t.color,t.hitSlop;return null}};m.exports=V},341,[5,108,6,17,342,37,344,155,212]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),o=t.default.twoArgumentPooler;function n(t,o){this.width=t,this.height=o}n.prototype.destructor=function(){this.width=null,this.height=null},n.getPooledFromElement=function(t){return n.getPooled(t.offsetWidth,t.offsetHeight)},t.default.addPoolingTo(n,o),m.exports=n},342,[5,343]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0])(r(d[1])),n=function(t){if(this.instancePool.length){var n=this.instancePool.pop();return this.call(n,t),n}return new this(t)},o=function(n){(0,t.default)(n instanceof this,'Trying to release an instance into a pool of a different type.'),n.destructor(),this.instancePool.lengththis.eventPool.length&&this.eventPool.push(e)}function T(e){e.getPooled=_,e.eventPool=[],e.release=R}n(i[2])(P.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=w)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=w)},persist:function(){this.isPersistent=w},isPersistent:x,destructor:function(){var e,n=this.constructor.Interface;for(e in n)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=x,this._dispatchInstances=this._dispatchListeners=null}}),P.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},P.extend=function(e){function t(){}function r(){return l.apply(this,arguments)}var l=this;t.prototype=l.prototype;var a=new t;return n(i[2])(a,r.prototype),r.prototype=a,r.prototype.constructor=r,r.Interface=n(i[2])({},l.Interface,e),r.extend=l.extend,T(r),r},T(P);var E=P.extend({touchHistory:function(){return null}});function N(e){return"topTouchStart"===e}function C(e){return"topTouchMove"===e}var z=["topTouchStart"],I=["topTouchMove"],L=["topTouchCancel","topTouchEnd"],U=[],M={touchBank:U,numberActiveTouches:0,indexOfSingleActiveTouch:-1,mostRecentTimeStamp:0};function F(e){return e.timeStamp||e.timestamp}function D(e){if(null==(e=e.identifier))throw Error("Touch object is missing identifier.");return e}function A(e){var n=D(e),t=U[n];t?(t.touchActive=!0,t.startPageX=e.pageX,t.startPageY=e.pageY,t.startTimeStamp=F(e),t.currentPageX=e.pageX,t.currentPageY=e.pageY,t.currentTimeStamp=F(e),t.previousPageX=e.pageX,t.previousPageY=e.pageY,t.previousTimeStamp=F(e)):(t={touchActive:!0,startPageX:e.pageX,startPageY:e.pageY,startTimeStamp:F(e),currentPageX:e.pageX,currentPageY:e.pageY,currentTimeStamp:F(e),previousPageX:e.pageX,previousPageY:e.pageY,previousTimeStamp:F(e)},U[n]=t),M.mostRecentTimeStamp=F(e)}function H(e){var n=U[D(e)];n&&(n.touchActive=!0,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}function Q(e){var n=U[D(e)];n&&(n.touchActive=!1,n.previousPageX=n.currentPageX,n.previousPageY=n.currentPageY,n.previousTimeStamp=n.currentTimeStamp,n.currentPageX=e.pageX,n.currentPageY=e.pageY,n.currentTimeStamp=F(e),M.mostRecentTimeStamp=F(e))}var j,B={instrument:function(e){j=e},recordTouchTrack:function(e,n){if(null!=j&&j(e,n),C(e))n.changedTouches.forEach(H);else if(N(e))n.changedTouches.forEach(A),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches&&(M.indexOfSingleActiveTouch=n.touches[0].identifier);else if(("topTouchEnd"===e||"topTouchCancel"===e)&&(n.changedTouches.forEach(Q),M.numberActiveTouches=n.touches.length,1===M.numberActiveTouches))for(e=0;e=(a=n&-n)||16===l&&0!=(4194240&a)))return n;if(0!=(4&r)&&(r|=16&t),0!==(n=e.entangledLanes))for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function wn(e,n,t){e.pendingLanes|=n,536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[n=31-_n(n)]=t}function xn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0 component.");return t=$n,$n+=2,{node:Ln(t,"RCTRawText",n,{text:e},r)}}var Kn=setTimeout,Zn=clearTimeout;function et(e){var n=e.node,t=an(null,Ge,{style:{display:"none"}},e.canonical.viewConfig.validAttributes);return{node:Dn(n,t),canonical:e.canonical}}function nt(e,n,t){return n="",t&&(n=" (created by "+t+")"),"\n in "+(e||"Unknown")+n}function tt(e,n){return e?nt(e.displayName||e.name||null,n,null):""}var rt=Object.prototype.hasOwnProperty,lt=[],at=-1;function it(e){return{current:e}}function ut(e){0>at||(e.current=lt[at],lt[at]=null,at--)}function ot(e,n){lt[++at]=e.current,e.current=n}var st={},ct=it(st),dt=it(!1),ft=st;function pt(e,n){var t=e.type.contextTypes;if(!t)return st;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l,a={};for(l in t)a[l]=n[l];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function ht(e){return null!==(e=e.childContextTypes)&&void 0!==e}function gt(){ut(dt),ut(ct)}function mt(e,n,t){if(ct.current!==st)throw Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");ot(ct,n),ot(dt,t)}function vt(e,t,r){var l=e.stateNode;if(t=t.childContextTypes,"function"!=typeof l.getChildContext)return r;for(var a in l=l.getChildContext())if(!(a in t))throw Error((We(e)||"Unknown")+'.getChildContext(): key "'+a+'" is not defined in childContextTypes.');return n(i[2])({},r,l)}function bt(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||st,ft=ct.current,ot(ct,e),ot(dt,dt.current),!0}function yt(e,n,t){var r=e.stateNode;if(!r)throw Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");t?(e=vt(e,n,ft),r.__reactInternalMemoizedMergedChildContext=e,ut(dt),ut(ct),ot(ct,e)):ut(dt),ot(dt,t)}var St=null,kt=!1,wt=!1;function xt(){if(!wt&&null!==St){wt=!0;var e=0,t=En;try{var r=St;for(En=1;eg?(m=h,h=null):m=h.sibling;var v=f(l,h,u[g],o);if(null===v){null===h&&(h=m);break}e&&h&&null===v.alternate&&n(l,h),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v,h=m}if(g===u.length)return t(l,h),s;if(null===h){for(;gg?(m=h,h=null):m=h.sibling;var b=f(l,h,v.value,o);if(null===b){null===h&&(h=m);break}e&&h&&null===b.alternate&&n(l,h),i=a(b,i,g),null===c?s=b:c.sibling=b,c=b,h=m}if(v.done)return t(l,h),s;if(null===h){for(;!v.done;g++,v=u.next())null!==(v=d(l,v.value,o))&&(i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return s}for(h=r(l,h);!v.done;g++,v=u.next())null!==(v=p(h,l,g,v.value,o))&&(e&&null!==v.alternate&&h.delete(null===v.key?g:v.key),i=a(v,i,g),null===c?s=v:c.sibling=v,c=v);return e&&h.forEach(function(e){return n(l,e)}),s}return function(e,r,a,u){var o="object"==typeof a&&null!==a&&a.type===_e&&null===a.key;if(o&&(a=a.props.children),"object"==typeof a&&null!==a){switch(a.$$typeof){case xe:e:{var s=a.key;for(o=r;null!==o;){if(o.key===s){if((s=a.type)===_e){if(7===o.tag){t(e,o.sibling),(r=l(o,a.props.children)).return=e,e=r;break e}}else if(o.elementType===s){t(e,o.sibling),(r=l(o,a.props)).ref=nr(e,o,a),r.return=e,e=r;break e}t(e,o);break}n(e,o),o=o.sibling}a.type===_e?((r=ti(a.props.children,e.mode,u,a.key)).return=e,e=r):((u=ni(a.type,a.key,a.props,null,e.mode,u)).ref=nr(e,r,a),u.return=e,e=u)}return i(e);case Pe:e:{for(o=a.key;null!==r;){if(r.key===o){if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling),(r=l(r,a.children||[])).return=e,e=r;break e}t(e,r);break}n(e,r),r=r.sibling}(r=ai(a,e.mode,u)).return=e,e=r}return i(e)}if(m(a))return h(e,r,a,u);if(je(a))return g(e,r,a,u);tr(e,a)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),(r=l(r,a)).return=e,e=r):(t(e,r),(r=li(a,e.mode,u)).return=e,e=r),i(e);if(void 0===a&&!o)switch(e.tag){case 1:case 0:case 11:case 15:throw Error((We(e)||"Component")+"(...): Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null.")}return t(e,r)}}var lr=rr(!0),ar=rr(!1),ir={},ur=it(ir),or=it(ir),sr=it(ir);function cr(e){if(e===ir)throw Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function dr(e,n){ot(sr,n),ot(or,e),ot(ur,ir),ut(ur),ot(ur,{isInAParentText:!1})}function fr(){ut(ur),ut(or),ut(sr)}function pr(e){cr(sr.current);var n=cr(ur.current),t=e.type;t="AndroidTextInput"===t||"RCTMultilineTextInputView"===t||"RCTSinglelineTextInputView"===t||"RCTText"===t||"RCTVirtualText"===t,n!==(t=n.isInAParentText!==t?{isInAParentText:t}:n)&&(ot(or,e),ot(ur,t))}function hr(e){or.current===e&&(ut(ur),ut(or))}var gr=it(0);function mr(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(null===t.dehydrated||zn()||zn()))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!=(128&n.flags))return n}else if(null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var vr=[];function br(){for(var e=0;ea))throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");a+=1,Pr=xr=null,n.updateQueue=null,yr.current=tl,e=t(r,l)}while(Rr)}if(yr.current=Zr,n=null!==xr&&null!==xr.next,kr=0,Pr=xr=wr=null,_r=!1,n)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return e}function Cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Pr?wr.memoizedState=Pr=e:Pr=Pr.next=e,Pr}function zr(){if(null===xr){var e=wr.alternate;e=null!==e?e.memoizedState:null}else e=xr.next;var n=null===Pr?wr.memoizedState:Pr.next;if(null!==n)Pr=n,xr=e;else{if(null===e)throw Error("Rendered more hooks than during the previous render.");e={memoizedState:(xr=e).memoizedState,baseState:xr.baseState,baseQueue:xr.baseQueue,queue:xr.queue,next:null},null===Pr?wr.memoizedState=Pr=e:Pr=Pr.next=e}return Pr}function Ir(e,n){return"function"==typeof n?n(e):n}function Lr(e){var n=zr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=xr,l=r.baseQueue,a=t.pending;if(null!==a){if(null!==l){var i=l.next;l.next=a.next,a.next=i}r.baseQueue=l=a,t.pending=null}if(null!==l){a=l.next,r=r.baseState;var u=i=null,o=null,s=a;do{var c=s.lane;if((kr&c)===c)null!==o&&(o=o.next={lane:0,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null}),r=s.eagerReducer===e?s.eagerState:e(r,s.action);else{var d={lane:c,action:s.action,eagerReducer:s.eagerReducer,eagerState:s.eagerState,next:null};null===o?(u=o=d,i=r):o=o.next=d,wr.lanes|=c,da|=c}s=s.next}while(null!==s&&s!==a);null===o?i=r:o.next=u,_t(r,n.memoizedState)||(sl=!0),n.memoizedState=r,n.baseState=i,n.baseQueue=o,t.lastRenderedState=r}if(null!==(e=t.interleaved)){l=e;do{a=l.lane,wr.lanes|=a,da|=a,l=l.next}while(l!==e)}else null===l&&(t.lanes=0);return[n.memoizedState,t.dispatch]}function Ur(e){var n=zr(),t=n.queue;if(null===t)throw Error("Should have a queue. This is likely a bug in React. Please file an issue.");t.lastRenderedReducer=e;var r=t.dispatch,l=t.pending,a=n.memoizedState;if(null!==l){t.pending=null;var i=l=l.next;do{a=e(a,i.action),i=i.next}while(i!==l);_t(a,n.memoizedState)||(sl=!0),n.memoizedState=a,null===n.baseQueue&&(n.baseState=a),t.lastRenderedState=a}return[a,r]}function Mr(e,n,t){var r=n._getVersion;r=r(n._source);var l=n._workInProgressVersionSecondary;if(null!==l?e=l===r:(e=e.mutableReadLanes,(e=(kr&e)===e)&&(n._workInProgressVersionSecondary=r,vr.push(n))),e)return t(n._source);throw vr.push(n),Error("Cannot read from mutable source during the current render without tearing. This may be a bug in React. Please file an issue.")}function Fr(e,n,t,r){var l=la;if(null===l)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");var a=n._getVersion,i=a(n._source),u=yr.current,o=u.useState(function(){return Mr(l,n,t)}),s=o[1],c=o[0];o=Pr;var d=e.memoizedState,f=d.refs,p=f.getSnapshot,h=d.source;d=d.subscribe;var g=wr;return e.memoizedState={refs:f,source:n,subscribe:r},u.useEffect(function(){f.getSnapshot=t,f.setSnapshot=s;var e=a(n._source);_t(i,e)||(e=t(n._source),_t(c,e)||(s(e),e=Ta(g),l.mutableReadLanes|=e&l.pendingLanes),Pn(l,l.mutableReadLanes))},[t,n,r]),u.useEffect(function(){return r(n._source,function(){var e=f.getSnapshot,t=f.setSnapshot;try{t(e(n._source));var r=Ta(g);l.mutableReadLanes|=r&l.pendingLanes}catch(e){t(function(){throw e})}})},[n,r]),_t(p,t)&&_t(h,n)&&_t(d,r)||((e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:c}).dispatch=s=Kr.bind(null,wr,e),o.queue=e,o.baseQueue=null,c=Mr(l,n,t),o.memoizedState=o.baseState=c),c}function Dr(e,n,t){return Fr(zr(),e,n,t)}function Ar(e){var n=Cr();return"function"==typeof e&&(e=e()),n.memoizedState=n.baseState=e,e=(e=n.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ir,lastRenderedState:e}).dispatch=Kr.bind(null,wr,e),[n.memoizedState,e]}function Hr(e,n,t,r){return e={tag:e,create:n,destroy:t,deps:r,next:null},null===(n=wr.updateQueue)?(n={lastEffect:null},wr.updateQueue=n,n.lastEffect=e.next=e):null===(t=n.lastEffect)?n.lastEffect=e.next=e:(r=t.next,t.next=e,e.next=r,n.lastEffect=e),e}function Qr(){return zr().memoizedState}function jr(e,n,t,r){var l=Cr();wr.flags|=e,l.memoizedState=Hr(1|n,t,void 0,void 0===r?null:r)}function Br(e,n,t,r){var l=zr();r=void 0===r?null:r;var a=void 0;if(null!==xr){var i=xr.memoizedState;if(a=i.destroy,null!==r&&Er(r,i.deps))return void(l.memoizedState=Hr(n,t,a,r))}wr.flags|=e,l.memoizedState=Hr(1|n,t,a,r)}function Wr(e,n){return jr(1049600,4,e,n)}function Or(e,n){return Br(1024,4,e,n)}function Vr(e,n){return Br(4,2,e,n)}function Yr(e,n){return"function"==typeof n?(e=e(),n(e),function(){n(null)}):null!==n&&void 0!==n?(e=e(),n.current=e,function(){n.current=null}):void 0}function qr(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,Br(4,2,Yr.bind(null,n,e),t)}function Xr(){}function $r(e,n){var t=zr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Er(n,r[1])?r[0]:(t.memoizedState=[e,n],e)}function Gr(e,n){var t=zr();n=void 0===n?null:n;var r=t.memoizedState;return null!==r&&null!==n&&Er(n,r[1])?r[0]:(e=e(),t.memoizedState=[e,n],e)}function Jr(e,n){var t=En;En=0!==t&&4>t?t:4,e(!0);var r=Sr.transition;Sr.transition=1;try{e(!1),n()}finally{En=t,Sr.transition=r}}function Kr(e,n,t){var r=Ra(),l=Ta(e),a={lane:l,action:t,eagerReducer:null,eagerState:null,next:null},i=e.alternate;if(e===wr||null!==i&&i===wr)Rr=_r=!0,null===(l=n.pending)?a.next=a:(a.next=l.next,l.next=a),n.pending=a;else{if(null!==la&&0!=(1&e.mode)&&0==(8&ra)){var u=n.interleaved;null===u?(a.next=a,null===At?At=[n]:At.push(n)):(a.next=u.next,u.next=a),n.interleaved=a}else null===(u=n.pending)?a.next=a:(a.next=u.next,u.next=a),n.pending=a;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=n.lastRenderedReducer))try{var o=n.lastRenderedState,s=i(o,t);if(a.eagerReducer=i,a.eagerState=s,_t(s,o))return}catch(e){}a=Ea(e,l,r),0!=(4194240&l)&&null!==a&&(e=n.lanes,l|=e&=a.pendingLanes,n.lanes=l,Pn(a,l))}}var Zr={readContext:Dt,useCallback:Tr,useContext:Tr,useEffect:Tr,useImperativeHandle:Tr,useLayoutEffect:Tr,useMemo:Tr,useReducer:Tr,useRef:Tr,useState:Tr,useDebugValue:Tr,useDeferredValue:Tr,useTransition:Tr,useMutableSource:Tr,useOpaqueIdentifier:Tr,unstable_isNewReconciler:!1},el={readContext:Dt,useCallback:function(e,n){return Cr().memoizedState=[e,void 0===n?null:n],e},useContext:Dt,useEffect:Wr,useImperativeHandle:function(e,n,t){return t=null!==t&&void 0!==t?t.concat([e]):null,jr(4,2,Yr.bind(null,n,e),t)},useLayoutEffect:function(e,n){return jr(4,2,e,n)},useMemo:function(e,n){var t=Cr();return n=void 0===n?null:n,e=e(),t.memoizedState=[e,n],e},useReducer:function(e,n,t){var r=Cr();return n=void 0!==t?t(n):n,r.memoizedState=r.baseState=n,e=(e=r.queue={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n}).dispatch=Kr.bind(null,wr,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Cr().memoizedState=e},useState:Ar,useDebugValue:Xr,useDeferredValue:function(e){var n=Ar(e),t=n[0],r=n[1];return Wr(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){var e=Ar(!1),n=e[0];return e=Jr.bind(null,e[1]),Cr().memoizedState=e,[n,e]},useMutableSource:function(e,n,t){var r=Cr();return r.memoizedState={refs:{getSnapshot:n,setSnapshot:null},source:e,subscribe:t},Fr(r,e,n,t)},useOpaqueIdentifier:function(){throw Error("Not yet implemented")},unstable_isNewReconciler:!1},nl={readContext:Dt,useCallback:$r,useContext:Dt,useEffect:Or,useImperativeHandle:qr,useLayoutEffect:Vr,useMemo:Gr,useReducer:Lr,useRef:Qr,useState:function(){return Lr(Ir)},useDebugValue:Xr,useDeferredValue:function(e){var n=Lr(Ir),t=n[0],r=n[1];return Or(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){return[Lr(Ir)[0],zr().memoizedState]},useMutableSource:Dr,useOpaqueIdentifier:function(){return Lr(Ir)[0]},unstable_isNewReconciler:!1},tl={readContext:Dt,useCallback:$r,useContext:Dt,useEffect:Or,useImperativeHandle:qr,useLayoutEffect:Vr,useMemo:Gr,useReducer:Ur,useRef:Qr,useState:function(){return Ur(Ir)},useDebugValue:Xr,useDeferredValue:function(e){var n=Ur(Ir),t=n[0],r=n[1];return Or(function(){var n=Sr.transition;Sr.transition=1;try{r(e)}finally{Sr.transition=n}},[e]),t},useTransition:function(){return[Ur(Ir)[0],zr().memoizedState]},useMutableSource:Dr,useOpaqueIdentifier:function(){return Ur(Ir)[0]},unstable_isNewReconciler:!1};function rl(e,n){try{var t="",r=n;do{t+=Tt(r),r=r.return}while(r);var l=t}catch(e){l="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:n,stack:l}}if("function"!=typeof n(i[3]).ReactFiberErrorDialog.showErrorDialog)throw Error("Expected ReactFiberErrorDialog.showErrorDialog to be a function.");function ll(e,t){try{!1!==n(i[3]).ReactFiberErrorDialog.showErrorDialog({componentStack:null!==t.stack?t.stack:"",error:t.value,errorBoundary:null!==e&&1===e.tag?e.stateNode:null})&&console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var al="function"==typeof WeakMap?WeakMap:Map;function il(e,n,t){(t=Bt(-1,t)).tag=3,t.payload={element:null};var r=n.value;return t.callback=function(){ma||(ma=!0,va=r),ll(e,n)},t}function ul(e,n,t){(t=Bt(-1,t)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var l=n.value;t.payload=function(){return ll(e,n),r(l)}}var a=e.stateNode;return null!==a&&"function"==typeof a.componentDidCatch&&(t.callback=function(){"function"!=typeof r&&(null===ba?ba=new Set([this]):ba.add(this),ll(e,n));var t=n.stack;this.componentDidCatch(n.value,{componentStack:null!==t?t:""})}),t}var ol=we.ReactCurrentOwner,sl=!1;function cl(e,n,t,r){n.child=null===e?ar(n,null,t,r):lr(n,e.child,t,r)}function dl(e,n,t,r,l){t=t.render;var a=n.ref;return Ft(n,l),r=Nr(e,n,t,r,a,l),null===e||sl?(n.flags|=1,cl(e,n,r,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,Ll(e,n,l))}function fl(e,n,t,r,l,a){if(null===e){var i=t.type;return"function"!=typeof i||Ka(i)||void 0!==i.defaultProps||null!==t.compare||void 0!==t.defaultProps?((e=ni(t.type,null,r,n,n.mode,a)).ref=n.ref,e.return=n,n.child=e):(n.tag=15,n.type=i,pl(e,n,i,r,l,a))}return i=e.child,0==(l&a)&&(l=i.memoizedProps,(t=null!==(t=t.compare)?t:Rt)(l,r)&&e.ref===n.ref)?Ll(e,n,a):(n.flags|=1,(e=ei(i,r)).ref=n.ref,e.return=n,n.child=e)}function pl(e,n,t,r,l,a){if(null!==e&&Rt(e.memoizedProps,r)&&e.ref===n.ref){if(sl=!1,0==(a&l))return n.lanes=e.lanes,Ll(e,n,a);0!=(32768&e.flags)&&(sl=!0)}return ml(e,n,t,r,a)}function hl(e,n,t){var r=n.pendingProps,l=r.children,a=null!==e?e.memoizedState:null;if("hidden"===r.mode||"unstable-defer-without-hiding"===r.mode)if(0==(1&n.mode))n.memoizedState={baseLanes:0,cachePool:null},ot(oa,ua),ua|=t;else{if(0==(1073741824&t))return e=null!==a?a.baseLanes|t:t,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null},n.updateQueue=null,ot(oa,ua),ua|=e,null;n.memoizedState={baseLanes:0,cachePool:null},r=null!==a?a.baseLanes:t,ot(oa,ua),ua|=r}else null!==a?(r=a.baseLanes|t,n.memoizedState=null):r=t,ot(oa,ua),ua|=r;return cl(e,n,l,t),n.child}function gl(e,n){var t=n.ref;(null===e&&null!==t||null!==e&&e.ref!==t)&&(n.flags|=256)}function ml(e,n,t,r,l){var a=ht(t)?ft:ct.current;return a=pt(n,a),Ft(n,l),t=Nr(e,n,t,r,a,l),null===e||sl?(n.flags|=1,cl(e,n,t,l),n.child):(n.updateQueue=e.updateQueue,n.flags&=-1029,e.lanes&=~l,Ll(e,n,l))}function vl(e,n,t,r,l){if(ht(t)){var a=!0;bt(n)}else a=!1;if(Ft(n,l),null===n.stateNode)null!==e&&(e.alternate=null,n.alternate=null,n.flags|=2),Kt(n,t,r),er(n,t,r,l),r=!0;else if(null===e){var i=n.stateNode,u=n.memoizedProps;i.props=u;var o=i.context,s=t.contextType;"object"==typeof s&&null!==s?s=Dt(s):s=pt(n,s=ht(t)?ft:ct.current);var c=t.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof i.getSnapshotBeforeUpdate;d||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==r||o!==s)&&Zt(n,i,r,s),Ht=!1;var f=n.memoizedState;i.state=f,Yt(n,r,i,l),o=n.memoizedState,u!==r||f!==o||dt.current||Ht?("function"==typeof c&&($t(n,t,c,r),o=n.memoizedState),(u=Ht||Jt(n,t,u,r,f,o,s))?(d||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||("function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"==typeof i.componentDidMount&&(n.flags|=4)):("function"==typeof i.componentDidMount&&(n.flags|=4),n.memoizedProps=r,n.memoizedState=o),i.props=r,i.state=o,i.context=s,r=u):("function"==typeof i.componentDidMount&&(n.flags|=4),r=!1)}else{i=n.stateNode,jt(e,n),u=n.memoizedProps,s=n.type===n.elementType?u:Et(n.type,u),i.props=s,d=n.pendingProps,f=i.context,"object"==typeof(o=t.contextType)&&null!==o?o=Dt(o):o=pt(n,o=ht(t)?ft:ct.current);var p=t.getDerivedStateFromProps;(c="function"==typeof p||"function"==typeof i.getSnapshotBeforeUpdate)||"function"!=typeof i.UNSAFE_componentWillReceiveProps&&"function"!=typeof i.componentWillReceiveProps||(u!==d||f!==o)&&Zt(n,i,r,o),Ht=!1,f=n.memoizedState,i.state=f,Yt(n,r,i,l);var h=n.memoizedState;u!==d||f!==h||dt.current||Ht?("function"==typeof p&&($t(n,t,p,r),h=n.memoizedState),(s=Ht||Jt(n,t,s,r,f,h,o)||!1)?(c||"function"!=typeof i.UNSAFE_componentWillUpdate&&"function"!=typeof i.componentWillUpdate||("function"==typeof i.componentWillUpdate&&i.componentWillUpdate(r,h,o),"function"==typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,h,o)),"function"==typeof i.componentDidUpdate&&(n.flags|=4),"function"==typeof i.getSnapshotBeforeUpdate&&(n.flags|=512)):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),n.memoizedProps=r,n.memoizedState=h),i.props=r,i.state=h,i.context=o,r=s):("function"!=typeof i.componentDidUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=4),"function"!=typeof i.getSnapshotBeforeUpdate||u===e.memoizedProps&&f===e.memoizedState||(n.flags|=512),r=!1)}return bl(e,n,t,r,a,l)}function bl(e,n,t,r,l,a){gl(e,n);var i=0!=(128&n.flags);if(!r&&!i)return l&&yt(n,t,!1),Ll(e,n,a);r=n.stateNode,ol.current=n;var u=i&&"function"!=typeof t.getDerivedStateFromError?null:r.render();return n.flags|=1,null!==e&&i?(n.child=lr(n,e.child,null,a),n.child=lr(n,null,u,a)):cl(e,n,u,a),n.memoizedState=r.state,l&&yt(n,t,!0),n.child}function yl(e){var n=e.stateNode;n.pendingContext?mt(0,n.pendingContext,n.pendingContext!==n.context):n.context&&mt(0,n.context,!1),dr(e,n.containerInfo)}var Sl,kl,wl,xl,Pl={dehydrated:null,retryLane:0};function _l(e){return{baseLanes:e,cachePool:null}}function Rl(e,n,t){var r,l=n.pendingProps,a=gr.current,i=!1;return(r=0!=(128&n.flags))||(r=(null===e||null!==e.memoizedState)&&0!=(2&a)),r?(i=!0,n.flags&=-129):null!==e&&null===e.memoizedState||void 0===l.fallback||!0===l.unstable_avoidThisFallback||(a|=1),ot(gr,1&a),null===e?(e=l.children,a=l.fallback,i?(e=Tl(n,e,a,t),n.child.memoizedState=_l(t),n.memoizedState=Pl,e):"number"==typeof l.unstable_expectedLoadTime?(e=Tl(n,e,a,t),n.child.memoizedState=_l(t),n.memoizedState=Pl,n.lanes=4194304,e):((t=ri({mode:"visible",children:e},n.mode,t,null)).return=n,n.child=t)):(e.memoizedState,i?(l=Nl(e,n,l.children,l.fallback,t),i=n.child,a=e.child.memoizedState,i.memoizedState=null===a?_l(t):{baseLanes:a.baseLanes|t,cachePool:null},i.childLanes=e.childLanes&~t,n.memoizedState=Pl,l):(t=El(e,n,l.children,t),n.memoizedState=null,t))}function Tl(e,n,t,r){var l=e.mode,a=e.child;return n={mode:"hidden",children:n},0==(1&l)&&null!==a?(a.childLanes=0,a.pendingProps=n):a=ri(n,l,0,null),t=ti(t,l,r,null),a.return=e,t.return=e,a.sibling=t,e.child=a,t}function El(e,n,t,r){var l=e.child;return e=l.sibling,t=ei(l,{mode:"visible",children:t}),0==(1&n.mode)&&(t.lanes=r),t.return=n,t.sibling=null,null!==e&&(null===(r=n.deletions)?(n.deletions=[e],n.flags|=16):r.push(e)),n.child=t}function Nl(e,n,t,r,l){var a=n.mode,i=(e=e.child).sibling,u={mode:"hidden",children:t};return 0==(1&a)&&n.child!==e?((t=n.child).childLanes=0,t.pendingProps=u,n.deletions=null):(t=ei(e,u)).subtreeFlags=1835008&e.subtreeFlags,null!==i?r=ei(i,r):(r=ti(r,a,l,null)).flags|=2,r.return=n,t.return=n,t.sibling=r,n.child=t,r}function Cl(e,n){e.lanes|=n;var t=e.alternate;null!==t&&(t.lanes|=n),Mt(e.return,n)}function zl(e,n,t,r,l){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:r,tail:t,tailMode:l}:(a.isBackwards=n,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=t,a.tailMode=l)}function Il(e,n,t){var r=n.pendingProps,l=r.revealOrder,a=r.tail;if(cl(e,n,r.children,t),0!=(2&(r=gr.current)))r=1&r|2,n.flags|=128;else{if(null!==e&&0!=(128&e.flags))e:for(e=n.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Cl(e,t);else if(19===e.tag)Cl(e,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(ot(gr,r),0==(1&n.mode))n.memoizedState=null;else switch(l){case"forwards":for(t=n.child,l=null;null!==t;)null!==(e=t.alternate)&&null===mr(e)&&(l=t),t=t.sibling;null===(t=l)?(l=n.child,n.child=null):(l=t.sibling,t.sibling=null),zl(n,!1,l,t,a);break;case"backwards":for(t=null,l=n.child,n.child=null;null!==l;){if(null!==(e=l.alternate)&&null===mr(e)){n.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}zl(n,!0,t,null,a);break;case"together":zl(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ll(e,n,t){if(null!==e&&(n.dependencies=e.dependencies),da|=n.lanes,0==(t&n.childLanes))return null;if(null!==e&&n.child!==e.child)throw Error("Resuming work not yet implemented.");if(null!==n.child){for(t=ei(e=n.child,e.pendingProps),n.child=t,t.return=n;null!==e.sibling;)e=e.sibling,(t=t.sibling=ei(e,e.pendingProps)).return=n;t.sibling=null}return n.child}function Ul(e,n){if(null!==e&&e.child===n.child)return!0;if(0!=(16&n.flags))return!1;for(e=n.child;null!==e;){if(0!=(6454&e.flags)||0!=(6454&e.subtreeFlags))return!1;e=e.sibling}return!0}function Ml(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=et(a)),Qn(e,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Qn(e,a.node)}else if(4!==l.tag){if(13===l.tag&&0!=(4&l.flags)&&(a=null!==l.memoizedState)){var i=l.child;if(null!==i&&(null!==i.child&&(i.child.return=i,Ml(e,i,!0,a)),null!==(a=i.sibling))){a.return=l,l=a;continue}}if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}}function Fl(e,n){switch(e.tailMode){case"hidden":n=e.tail;for(var t=null;null!==n;)null!==n.alternate&&(t=n),n=n.sibling;null===t?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?n||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Dl(e){var n=null!==e.alternate&&e.alternate.child===e.child,t=0,r=0;if(n)for(var l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=1835008&l.subtreeFlags,r|=1835008&l.flags,l.return=e,l=l.sibling;else for(l=e.child;null!==l;)t|=l.lanes|l.childLanes,r|=l.subtreeFlags,r|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=r,e.childLanes=t,n}function Al(e,t,r){var l=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dl(t),null;case 1:return ht(t.type)&>(),Dl(t),null;case 3:return l=t.stateNode,fr(),ut(dt),ut(ct),br(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==e&&null!==e.child||l.hydrate||(t.flags|=512),kl(e,t),Dl(t),null;case 5:hr(t),r=cr(sr.current);var a=t.type;if(null!==e&&null!=t.stateNode)wl(e,t,a,l,r),e.ref!==t.ref&&(t.flags|=256);else{if(!l){if(null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Dl(t),null}cr(ur.current),e=$n,$n+=2,a=Xn(a);var u=an(null,Ge,l,a.validAttributes);r=Ln(e,a.uiViewClassName,r,u,t),e=new Gn(e,a,l,t),Sl(e={node:r,canonical:e},t,!1,!1),t.stateNode=e,null!==t.ref&&(t.flags|=256)}return Dl(t),null;case 6:if(e&&null!=t.stateNode)xl(e,t,e.memoizedProps,l);else{if("string"!=typeof l&&null===t.stateNode)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");e=cr(sr.current),r=cr(ur.current),t.stateNode=Jn(l,e,r,t)}return Dl(t),null;case 13:return ut(gr),l=t.memoizedState,0!=(128&t.flags)?(t.lanes=r,t):(l=null!==l,r=!1,null!==e&&(r=null!==e.memoizedState),l&&!r&&0!=(1&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(1&gr.current)?0===sa&&(sa=3):(0!==sa&&3!==sa||(sa=4),null===la||0==(268435455&da)&&0==(268435455&fa)||Ia(la,ia))),l&&(t.flags|=4),Dl(t),null);case 4:return fr(),kl(e,t),Dl(t),null;case 10:return Ut(t.type._context),Dl(t),null;case 17:return ht(t.type)&>(),Dl(t),null;case 19:if(ut(gr),null===(a=t.memoizedState))return Dl(t),null;if(l=0!=(128&t.flags),null===(u=a.rendering))if(l)Fl(a,!1);else{if(0!==sa||null!==e&&0!=(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=mr(e))){for(t.flags|=128,Fl(a,!1),null!==(e=u.updateQueue)&&(t.updateQueue=e,t.flags|=4),t.subtreeFlags=0,e=r,l=t.child;null!==l;)a=e,(r=l).flags&=1835010,null===(u=r.alternate)?(r.childLanes=0,r.lanes=a,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=u.childLanes,r.lanes=u.lanes,r.child=u.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=u.memoizedProps,r.memoizedState=u.memoizedState,r.updateQueue=u.updateQueue,r.type=u.type,a=u.dependencies,r.dependencies=null===a?null:{lanes:a.lanes,firstContext:a.firstContext}),l=l.sibling;return ot(gr,1&gr.current|2),t.child}e=e.sibling}null!==a.tail&&n(i[4]).unstable_now()>ga&&(t.flags|=128,l=!0,Fl(a,!1),t.lanes=4194304)}else{if(!l)if(null!==(e=mr(u))){if(t.flags|=128,l=!0,null!==(e=e.updateQueue)&&(t.updateQueue=e,t.flags|=4),Fl(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate)return Dl(t),null}else 2*n(i[4]).unstable_now()-a.renderingStartTime>ga&&1073741824!==r&&(t.flags|=128,l=!0,Fl(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(e=a.last)?e.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=n(i[4]).unstable_now(),t.sibling=null,e=gr.current,ot(gr,l?1&e|2:1&e),t):(Dl(t),null);case 22:case 23:return Ua(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&"unstable-defer-without-hiding"!==l.mode&&(t.flags|=4),r&&0==(1073741824&ua)&&0!=(1&t.mode)||Dl(t),null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Hl(e){switch(e.tag){case 1:ht(e.type)&>();var n=e.flags;return 16384&n?(e.flags=-16385&n|128,e):null;case 3:if(fr(),ut(dt),ut(ct),br(),0!=(128&(n=e.flags)))throw Error("The root failed to unmount after an error. This is likely a bug in React. Please file an issue.");return e.flags=-16385&n|128,e;case 5:return hr(e),null;case 13:return ut(gr),16384&(n=e.flags)?(e.flags=-16385&n|128,e):null;case 19:return ut(gr),null;case 4:return fr(),null;case 10:return Ut(e.type._context),null;case 22:case 23:return Ua(),null;case 24:default:return null}}Sl=function(e,n,t,r){for(var l=n.child;null!==l;){if(5===l.tag){var a=l.stateNode;t&&r&&(a=et(a)),Hn(e.node,a.node)}else if(6===l.tag){if(a=l.stateNode,t&&r)throw Error("Not yet implemented.");Hn(e.node,a.node)}else if(4!==l.tag){if(13===l.tag&&0!=(4&l.flags)&&(a=null!==l.memoizedState)){var i=l.child;if(null!==i&&(null!==i.child&&(i.child.return=i,Sl(e,i,!0,a)),null!==(a=i.sibling))){a.return=l,l=a;continue}}if(null!==l.child){l.child.return=l,l=l.child;continue}}if(l===n)break;for(;null===l.sibling;){if(null===l.return||l.return===n)return;l=l.return}l.sibling.return=l.return,l=l.sibling}},kl=function(e,n){var t=n.stateNode;if(!Ul(e,n)){e=t.containerInfo;var r=An(e);Ml(r,n,!1,!1),t.pendingChildren=r,n.flags|=4,jn(e,r)}},wl=function(e,n,t,r){t=e.stateNode;var l=e.memoizedProps;if((e=Ul(e,n))&&l===r)n.stateNode=t;else{var a=n.stateNode;cr(ur.current);var i=null;l!==r&&(l=an(null,l,r,a.canonical.viewConfig.validAttributes),a.canonical.currentProps=r,i=l),e&&null===i?n.stateNode=t:(r=i,l=t.node,t={node:e?null!==r?Dn(l,r):Un(l):null!==r?Fn(l,r):Mn(l),canonical:t.canonical},n.stateNode=t,e?n.flags|=4:Sl(t,n,!1,!1))}},xl=function(e,n,t,r){t!==r?(e=cr(sr.current),t=cr(ur.current),n.stateNode=Jn(r,e,t,n),n.flags|=4):n.stateNode=e.stateNode};var Ql="function"==typeof WeakSet?WeakSet:Set,jl=null;function Bl(e,n){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){qa(e,n,t)}else t.current=null}var Wl=!1;function Ol(e,n){for(jl=n;null!==jl;)if(n=(e=jl).child,0!=(516&e.subtreeFlags)&&null!==n)n.return=e,jl=n;else for(;null!==jl;){e=jl;try{var t=e.alternate;if(0!=(512&e.flags))switch(e.tag){case 0:case 11:case 15:break;case 1:if(null!==t){var r=t.memoizedProps,l=t.memoizedState,a=e.stateNode,i=a.getSnapshotBeforeUpdate(e.elementType===e.type?r:Et(e.type,r),l);a.__reactInternalSnapshotBeforeUpdate=i}break;case 3:break;case 5:case 6:case 4:case 17:break;default:throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}catch(n){qa(e,e.return,n)}if(null!==(n=e.sibling)){n.return=e.return,jl=n;break}jl=e.return}return t=Wl,Wl=!1,t}function Vl(e,n,t){var r=n.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;if(l.destroy=void 0,void 0!==a){var i=n,u=t;try{a()}catch(e){qa(i,u,e)}}}l=l.next}while(l!==r)}}function Yl(e,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function ql(e){var n=e.alternate;null!==n&&(e.alternate=null,ql(n)),e.child=null,e.deletions=null,e.sibling=null,e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Xl(e,t){switch(t.tag){case 0:case 11:case 14:case 15:return void Vl(3,t,t.return);case 12:return;case 13:return null!==t.memoizedState&&(ha=n(i[4]).unstable_now()),void $l(t);case 19:return void $l(t);case 22:case 23:return}e:{switch(t.tag){case 1:case 5:case 6:break e;case 3:case 4:break e}throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}}function $l(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new Ql),n.forEach(function(n){var r=$a.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))})}}function Gl(e,n){for(jl=n;null!==jl;){if(null!==(n=(e=jl).deletions))for(var t=0;ta&&(a=o),l&=~u}if(l=a,10<(l=(120>(l=n(i[4]).unstable_now()-l)?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Zl(l/1960))-l)){e.timeoutHandle=Kn(Wa.bind(null,e),l);break}Wa(e);break;case 5:Wa(e);break;default:throw Error("Unknown root exit status.")}}return Ca(e,n(i[4]).unstable_now()),e.callbackNode===r?za.bind(null,e):null}function Ia(e,n){for(n&=~pa,n&=~fa,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0 component higher in the tree to provide a loading indicator or placeholder to display.")}5!==sa&&(sa=2),o=rl(o,u),p=i;do{switch(p.tag){case 3:a=o,p.flags|=16384,n&=-n,p.lanes|=n,Vt(p,il(p,a,n));break e;case 1:a=o;var w=p.type,x=p.stateNode;if(0==(128&p.flags)&&("function"==typeof w.getDerivedStateFromError||null!==x&&"function"==typeof x.componentDidCatch&&(null===ba||!ba.has(x)))){p.flags|=16384,n&=-n,p.lanes|=n,Vt(p,ul(p,a,n));break e}}p=p.return}while(null!==p)}Ba(t)}catch(e){n=e,aa===t&&null!==t&&(aa=t=t.return);continue}break}}function Da(){var e=ea.current;return ea.current=Zr,null===e?Zr:e}function Aa(e,n){var t=ra;ra|=8;var r=Da();for(la===e&&ia===n||Ma(e,n);;)try{Ha();break}catch(n){Fa(e,n)}if(Lt(),ra=t,ea.current=r,null!==aa)throw Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return la=null,ia=0,sa}function Ha(){for(;null!==aa;)ja(aa)}function Qa(){for(;null!==aa&&!n(i[4]).unstable_shouldYield();)ja(aa)}function ja(e){var n=Kl(e.alternate,e,ua);e.memoizedProps=e.pendingProps,null===n?Ba(e):aa=n,na.current=null}function Ba(e){var n=e;do{var t=n.alternate;if(e=n.return,0==(8192&n.flags)){if(null!==(t=Al(t,n,ua)))return void(aa=t)}else{if(null!==(t=Hl(n)))return t.flags&=8191,void(aa=t);null!==e&&(e.flags|=8192,e.subtreeFlags=0,e.deletions=null)}if(null!==(n=n.sibling))return void(aa=n);aa=n=e}while(null!==n);0===sa&&(sa=5)}function Wa(e){var n=En,t=ta.transition;try{ta.transition=0,En=1,Oa(e,n)}finally{ta.transition=t,En=n}return null}function Oa(e,t){do{Va()}while(null!==Sa);if(0!=(24&ra))throw Error("Should not already be working.");var r=e.finishedWork,l=e.finishedLanes;if(null===r)return null;if(e.finishedWork=null,e.finishedLanes=0,r===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=0;var a=r.lanes|r.childLanes;if(xn(e,a),e===la&&(aa=la=null,ia=0),0==(1040&r.subtreeFlags)&&0==(1040&r.flags)||ya||(ya=!0,n(i[4]).unstable_scheduleCallback(n(i[4]).unstable_NormalPriority,function(){return Va(),null})),a=0!=(8054&r.flags),0!=(8054&r.subtreeFlags)||a){a=ta.transition,ta.transition=0;var u=En;En=1;var o=ra;ra|=16,na.current=null,Ol(e,r),Gl(e,r),e.current=r,Jl(r),n(i[4]).unstable_requestPaint(),ra=o,En=u,ta.transition=a}else e.current=r;if(ya&&(ya=!1,Sa=e,ka=l),0===(a=e.pendingLanes)&&(ba=null),0!=(1&a)?e===xa?wa++:(wa=0,xa=e):wa=0,hn(r.stateNode),Ca(e,n(i[4]).unstable_now()),ma)throw ma=!1,e=va,va=null,e;return 0!=(4&ra)?null:(0!=(1&ka)&&0!==e.tag&&Va(),xt(),null)}function Va(){if(null!==Sa){var e=Nn(ka),n=ta.transition,t=En;try{if(ta.transition=0,En=16>e?16:e,null===Sa)var r=!1;else{if(e=Sa,Sa=null,ka=0,0!=(24&ra))throw Error("Cannot flush passive effects while already rendering.");var l=ra;for(ra|=16,jl=e.current;null!==jl;){var a=jl,i=a.child;if(0!=(16&jl.flags)){var u=a.deletions;if(null!==u){for(var o=0;on(i[4]).unstable_now()-ha?Ma(e,0):pa|=r),Ca(e,t)}function $a(e,n){var t=e.stateNode;null!==t&&t.delete(n),0===(n=0)&&(0==(1&e.mode)?n=1:(n=mn,0==(130023424&(mn<<=1))&&(mn=4194304))),t=Ra(),null!==(e=Na(e,n))&&(wn(e,n,t),Ca(e,t))}function Ga(e,n,t,r){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ja(e,n,t,r){return new Ga(e,n,t,r)}function Ka(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Za(e){if("function"==typeof e)return Ka(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===Ce)return 11;if(e===Le)return 14}return 2}function ei(e,n){var t=e.alternate;return null===t?((t=Ja(e.tag,n,e.key,e.mode)).elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=1835008&e.flags,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,n=e.dependencies,t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t}function ni(e,n,t,r,l,a){var i=2;if(r=e,"function"==typeof e)Ka(e)&&(i=1);else if("string"==typeof e)i=5;else e:switch(e){case _e:return ti(t.children,l,a,n);case Me:i=8,l|=4;break;case Re:i=8,l|=8;break;case Te:return(e=Ja(12,t,n,2|l)).elementType=Te,e.lanes=a,e;case ze:return(e=Ja(13,t,n,l)).elementType=ze,e.lanes=a,e;case Ie:return(e=Ja(19,t,n,l)).elementType=Ie,e.lanes=a,e;case Fe:return ri(t,l,a,n);case De:return(e=Ja(23,t,n,l)).elementType=De,e.lanes=a,e;default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Ee:i=10;break e;case Ne:i=9;break e;case Ce:i=11;break e;case Le:i=14;break e;case Ue:i=16,r=null;break e}throw Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(null==e?e:typeof e)+".")}return(n=Ja(i,t,n,l)).elementType=e,n.type=r,n.lanes=a,n}function ti(e,n,t,r){return(e=Ja(7,e,r,n)).lanes=t,e}function ri(e,n,t,r){return(e=Ja(22,e,r,n)).elementType=Fe,e.lanes=t,e}function li(e,n,t){return(e=Ja(6,e,null,n)).lanes=t,e}function ai(e,n,t){return(n=Ja(4,null!==e.children?e.children:[],e.key,n)).lanes=t,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function ii(e,n,t){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=t,this.callbackNode=null,this.callbackPriority=0,this.eventTimes=kn(0),this.expirationTimes=kn(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kn(0)}function ui(e,n,t){var r=3=t.length?{done:!0}:{done:!1,value:t[o++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,n){if(t){if("string"==typeof t)return s(t,n);var u=Object.prototype.toString.call(t).slice(8,-1);return"Object"===u&&t.constructor&&(u=t.constructor.name),"Map"===u||"Set"===u?Array.from(t):"Arguments"===u||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(u)?s(t,n):void 0}}function s(t,n){(null==n||n>t.length)&&(n=t.length);for(var u=0,o=new Array(n);ui&&(f+=u&&o?h.currentPageX:u&&!o?h.currentPageY:!u&&o?h.previousPageX:h.previousPageY,s=1);else for(var v=0;v=i){f+=u&&o?C.currentPageX:u&&!o?C.currentPageY:!u&&o?C.previousPageX:C.previousPageY,s++}}return s>0?f/s:n.noCentroid},currentCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!0)},currentCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!0)},previousCentroidXOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!0,!1)},previousCentroidYOfTouchesChangedAfter:function(t,i){return n.centroidDimension(t,i,!1,!1)},currentCentroidX:function(t){return n.centroidDimension(t,0,!0,!0)},currentCentroidY:function(t){return n.centroidDimension(t,0,!1,!0)},noCentroid:-1};m.exports=n},385,[]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),E=r(d[0])(r(d[4])),t=r(d[0])(r(d[5])),A=r(d[0])(r(d[6])),_=r(d[0])(r(d[7])),u=Object.freeze({GRANTED:'granted',DENIED:'denied',NEVER_ASK_AGAIN:'never_ask_again'}),S=Object.freeze({READ_CALENDAR:'android.permission.READ_CALENDAR',WRITE_CALENDAR:'android.permission.WRITE_CALENDAR',CAMERA:'android.permission.CAMERA',READ_CONTACTS:'android.permission.READ_CONTACTS',WRITE_CONTACTS:'android.permission.WRITE_CONTACTS',GET_ACCOUNTS:'android.permission.GET_ACCOUNTS',ACCESS_FINE_LOCATION:'android.permission.ACCESS_FINE_LOCATION',ACCESS_COARSE_LOCATION:'android.permission.ACCESS_COARSE_LOCATION',ACCESS_BACKGROUND_LOCATION:'android.permission.ACCESS_BACKGROUND_LOCATION',RECORD_AUDIO:'android.permission.RECORD_AUDIO',READ_PHONE_STATE:'android.permission.READ_PHONE_STATE',CALL_PHONE:'android.permission.CALL_PHONE',READ_CALL_LOG:'android.permission.READ_CALL_LOG',WRITE_CALL_LOG:'android.permission.WRITE_CALL_LOG',ADD_VOICEMAIL:'com.android.voicemail.permission.ADD_VOICEMAIL',USE_SIP:'android.permission.USE_SIP',PROCESS_OUTGOING_CALLS:'android.permission.PROCESS_OUTGOING_CALLS',BODY_SENSORS:'android.permission.BODY_SENSORS',SEND_SMS:'android.permission.SEND_SMS',RECEIVE_SMS:'android.permission.RECEIVE_SMS',READ_SMS:'android.permission.READ_SMS',RECEIVE_WAP_PUSH:'android.permission.RECEIVE_WAP_PUSH',RECEIVE_MMS:'android.permission.RECEIVE_MMS',READ_EXTERNAL_STORAGE:'android.permission.READ_EXTERNAL_STORAGE',WRITE_EXTERNAL_STORAGE:'android.permission.WRITE_EXTERNAL_STORAGE',BLUETOOTH_CONNECT:'android.permission.BLUETOOTH_CONNECT',BLUETOOTH_SCAN:'android.permission.BLUETOOTH_SCAN',BLUETOOTH_ADVERTISE:'android.permission.BLUETOOTH_ADVERTISE',ACCESS_MEDIA_LOCATION:'android.permission.ACCESS_MEDIA_LOCATION'}),C=new((function(){function C(){(0,o.default)(this,C),this.PERMISSIONS=S,this.RESULTS=u}return(0,E.default)(C,[{key:"checkPermission",value:function(n){return console.warn('"PermissionsAndroid.checkPermission" is deprecated. Use "PermissionsAndroid.check" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"check",value:function(n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve(!1)}},{key:"requestPermission",value:function(s,o){var E;return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return console.warn('"PermissionsAndroid.requestPermission" is deprecated. Use "PermissionsAndroid.request" instead'),console.warn('"PermissionsAndroid" module works only for Android platform.'),t.abrupt("return",Promise.resolve(!1));case 4:return t.next=6,n.default.awrap(this.request(s,o));case 6:return E=t.sent,t.abrupt("return",E===this.RESULTS.GRANTED);case 8:case"end":return t.stop()}},null,this,null,Promise)}},{key:"request",value:function(o,E){return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return console.warn('"PermissionsAndroid" module works only for Android platform.'),u.abrupt("return",Promise.resolve(this.RESULTS.DENIED));case 3:if((0,_.default)(A.default,'PermissionsAndroid is not installed correctly.'),!E){u.next=10;break}return u.next=7,n.default.awrap(A.default.shouldShowRequestPermissionRationale(o));case 7:if(!u.sent||!t.default){u.next=10;break}return u.abrupt("return",new Promise(function(n,_){var u=(0,s.default)({},E);t.default.showAlert(u,function(){return _(new Error('Error showing rationale'))},function(){return n(A.default.requestPermission(o))})}));case 10:return u.abrupt("return",A.default.requestPermission(o));case 11:case"end":return u.stop()}},null,this,null,Promise)}},{key:"requestMultiple",value:function(n){return console.warn('"PermissionsAndroid" module works only for Android platform.'),Promise.resolve({})}}]),C})());m.exports=C},386,[5,80,6,7,8,122,387,36]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('PermissionsAndroid');_e.default=t},387,[39]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=new n.default('ios'!==c.default.OS?null:l.default),s=new Map,v=(function(){function n(o){var l=this;(0,t.default)(this,n),this._data={},this._remoteNotificationCompleteCallbackCalled=!1,this._isRemote=o.remote,this._isRemote&&(this._notificationId=o.notificationId),o.remote?Object.keys(o).forEach(function(t){var n=o[t];'aps'===t?(l._alert=n.alert,l._sound=n.sound,l._badgeCount=n.badge,l._category=n.category,l._contentAvailable=n['content-available'],l._threadID=n['thread-id']):l._data[t]=n}):(this._badgeCount=o.applicationIconBadgeNumber,this._sound=o.soundName,this._alert=o.alertBody,this._data=o.userInfo,this._category=o.category)}return(0,o.default)(n,[{key:"finish",value:function(t){this._isRemote&&this._notificationId&&!this._remoteNotificationCompleteCallbackCalled&&(this._remoteNotificationCompleteCallbackCalled=!0,(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.onFinishRemoteNotification(this._notificationId,t))}},{key:"getMessage",value:function(){return this._alert}},{key:"getSound",value:function(){return this._sound}},{key:"getCategory",value:function(){return this._category}},{key:"getAlert",value:function(){return this._alert}},{key:"getContentAvailable",value:function(){return this._contentAvailable}},{key:"getBadgeCount",value:function(){return this._badgeCount}},{key:"getData",value:function(){return this._data}},{key:"getThreadID",value:function(){return this._threadID}}],[{key:"presentLocalNotification",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.presentLocalNotification(t)}},{key:"scheduleLocalNotification",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.scheduleLocalNotification(t)}},{key:"cancelAllLocalNotifications",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.cancelAllLocalNotifications()}},{key:"removeAllDeliveredNotifications",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.removeAllDeliveredNotifications()}},{key:"getDeliveredNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getDeliveredNotifications(t)}},{key:"removeDeliveredNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.removeDeliveredNotifications(t)}},{key:"setApplicationIconBadgeNumber",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.setApplicationIconBadgeNumber(t)}},{key:"getApplicationIconBadgeNumber",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getApplicationIconBadgeNumber(t)}},{key:"cancelLocalNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.cancelLocalNotifications(t)}},{key:"getScheduledLocalNotifications",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getScheduledLocalNotifications(t)}},{key:"addEventListener",value:function(t,o){var l;(0,u.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events'),'notification'===t?l=f.addListener("remoteNotificationReceived",function(t){o(new n(t))}):'localNotification'===t?l=f.addListener("localNotificationReceived",function(t){o(new n(t))}):'register'===t?l=f.addListener("remoteNotificationsRegistered",function(t){o(t.deviceToken)}):'registrationError'===t&&(l=f.addListener("remoteNotificationRegistrationError",function(t){o(t)})),s.set(t,l)}},{key:"removeEventListener",value:function(t,o){(0,u.default)('notification'===t||'register'===t||'registrationError'===t||'localNotification'===t,'PushNotificationIOS only supports `notification`, `register`, `registrationError`, and `localNotification` events');var n=s.get(t);n&&(n.remove(),s.delete(t))}},{key:"requestPermissions",value:function(t){var o={alert:!0,badge:!0,sound:!0};return t&&(o={alert:!!t.alert,badge:!!t.badge,sound:!!t.sound}),(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.requestPermissions(o)}},{key:"abandonPermissions",value:function(){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.abandonPermissions()}},{key:"checkPermissions",value:function(t){(0,u.default)('function'==typeof t,'Must provide a valid callback'),(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.checkPermissions(t)}},{key:"getInitialNotification",value:function(){return(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getInitialNotification().then(function(t){return t&&new n(t)})}},{key:"getAuthorizationStatus",value:function(t){(0,u.default)(l.default,'PushNotificationManager is not available.'),l.default.getAuthorizationStatus(t)}}]),n})();v.FetchResult={NewData:'UIBackgroundFetchResultNewData',NoData:'UIBackgroundFetchResultNoData',ResultFailed:'UIBackgroundFetchResultFailed'},m.exports=v},388,[5,7,8,110,389,36,37]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in t)if("default"!==a&&Object.prototype.hasOwnProperty.call(t,a)){var f=u?Object.getOwnPropertyDescriptor(t,a):null;f&&(f.get||f.set)?Object.defineProperty(o,a,f):o[a]=t[a]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('PushNotificationManager');_e.default=t},389,[39]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),c=r(d[0])(r(d[4])),l=[],u={_settings:n.default&&n.default.getConstants().settings,get:function(t){return this._settings[t]},set:function(s){this._settings=(0,t.default)(this._settings,s),n.default.setValues(s)},watchKeys:function(t,s){'string'==typeof t&&(t=[t]),(0,c.default)(Array.isArray(t),'keys should be a string or array of strings');var n=l.length;return l.push({keys:t,callback:s}),n},clearWatch:function(t){t1&&void 0!==arguments[1]?arguments[1]:{};return r(d[6])('object'==typeof t&&null!==t,'Content to share must be a valid object'),r(d[6])('string'==typeof t.url||'string'==typeof t.message,'At least one of URL and message is required'),r(d[6])('object'==typeof o&&null!==o,'Options must be a valid object'),new Promise(function(s,u){var c=r(d[7])(o.tintColor);r(d[6])(null==c||'number'==typeof c,'Unexpected color given for options.tintColor'),r(d[6])(n.default,'NativeActionSheetManager is not registered on iOS, but it should be.'),n.default.showShareActionSheetWithOptions({message:'string'==typeof t.message?t.message:void 0,url:'string'==typeof t.url?t.url:void 0,subject:o.subject,tintColor:'number'==typeof c?c:void 0,excludedActivityTypes:o.excludedActivityTypes},function(t){return u(t)},function(t,o){s(t?{action:'sharedAction',activityType:o}:{action:'dismissedAction',activityType:null})})})}}]),s})());s.sharedAction='sharedAction',s.dismissedAction='dismissedAction',m.exports=s},392,[5,6,7,8,348,393,36,145]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).get('ShareModule');_e.default=t},393,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';var o={show:function(o,t){console.warn('ToastAndroid is not supported on this platform.')},showWithGravity:function(o,t,n){console.warn('ToastAndroid is not supported on this platform.')},showWithGravityAndOffset:function(o,t,n,s,p){console.warn('ToastAndroid is not supported on this platform.')}};m.exports=o},394,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=(0,n.useMemo)(function(){return{getCurrentValue:function(){return u.default.getColorScheme()},subscribe:function(n){var t=u.default.addChangeListener(n);return function(){t.remove()}}}},[]);return(0,r(d[3]).useSubscription)(t)};var n=r(d[0]),u=r(d[1])(r(d[2]))},395,[17,5,349,396]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},396,[397]); -__d(function(g,r,i,_a,m,e,d){'use strict';e.useSubscription=function(t){return r(d[0]).useSyncExternalStore(t.subscribe,t.getCurrentValue)}},397,[398]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},398,[399]); -__d(function(_g,_r,i,_a,_m,_e,_d){'use strict';var t=_r(_d[0]);var n="function"==typeof Object.is?Object.is:function(t,n){return t===n&&(0!==t||1/t==1/n)||t!=t&&n!=n},e=t.useState,u=t.useEffect,r=t.useLayoutEffect,s=t.useDebugValue;function a(t){var e=t.getSnapshot;t=t.value;try{var u=e();return!n(t,u)}catch(t){return!0}}_e.useSyncExternalStore=void 0!==t.useSyncExternalStore?t.useSyncExternalStore:function(t,n){var c=n(),o=e({inst:{value:c,getSnapshot:n}}),f=o[0].inst,S=o[1];return r(function(){f.value=c,f.getSnapshot=n,a(f)&&S({inst:f})},[t,c,n]),u(function(){return a(f)&&S({inst:f}),t(function(){a(f)&&S({inst:f})})},[t]),s(c),c}},399,[17]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var f=(0,u.useState)(function(){return n.default.get('window')}),o=(0,t.default)(f,2),c=o[0],l=o[1];return(0,u.useEffect)(function(){function t(t){var n=t.window;c.width===n.width&&c.height===n.height&&c.scale===n.scale&&c.fontScale===n.fontScale||l(n)}var u=n.default.addEventListener('change',t);return t({window:n.default.get('window')}),function(){u.remove()}},[c]),c};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[3])},400,[5,41,171,17]); -__d(function(g,r,i,a,m,e,d){'use strict';var A=r(d[0])({BOM:"\ufeff",BULLET:"\u2022",BULLET_SP:"\xa0\u2022\xa0",MIDDOT:"\xb7",MIDDOT_SP:"\xa0\xb7\xa0",MIDDOT_KATAKANA:"\u30fb",MDASH:"\u2014",MDASH_SP:"\xa0\u2014\xa0",NDASH:"\u2013",NDASH_SP:"\xa0\u2013\xa0",NBSP:"\xa0",PIZZA:"\ud83c\udf55",TRIANGLE_LEFT:"\u25c0",TRIANGLE_RIGHT:"\u25b6"});m.exports=A},401,[177]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=!1,o=0,u=400;function f(f){var v=arguments.length>1&&void 0!==arguments[1]&&arguments[1];n||(n=!0,0===f[0]&&(t.default.vibrate(u),f=f.slice(1)),0!==f.length?setTimeout(function(){return l(++o,f,v,1)},f[0]):n=!1)}function l(f,v,c,b){if(n&&f===o){if(t.default.vibrate(u),b>=v.length){if(!c)return void(n=!1);b=0}setTimeout(function(){return l(f,v,c,b+1)},v[b])}}var v={vibrate:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!n)if('number'==typeof o)t.default.vibrate(o);else{if(!Array.isArray(o))throw new Error('Vibration pattern should be a number or array');f(o,l)}},cancel:function(){n=!1}};m.exports=v},402,[5,403]); -__d(function(g,_r,_i,_a,m,_e,d){function e(t){if("function"!=typeof WeakMap)return null;var r=new WeakMap,n=new WeakMap;return(e=function(e){return e?n:r})(t)}Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var t=(function(t,r){if(!r&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=e(r);if(n&&n.has(t))return n.get(t);var o={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var f in t)if("default"!==f&&Object.prototype.hasOwnProperty.call(t,f)){var a=u?Object.getOwnPropertyDescriptor(t,f):null;a&&(a.get||a.set)?Object.defineProperty(o,f,a):o[f]=t[f]}return o.default=t,n&&n.set(t,o),o})(_r(d[0])).getEnforcing('Vibration');_e.default=t},403,[39]); -__d(function(g,r,i,a,m,e,d){'use strict';function n(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(n=function(){return!!t})()}var t;t=(function(t){r(d[3])(l,t);var u,o,c=(u=l,o=n(),function(){var n,t=r(d[0])(u);if(o){var c=r(d[0])(this).constructor;n=Reflect.construct(t,arguments,c)}else n=t.apply(this,arguments);return r(d[1])(this,n)});function l(){return r(d[4])(this,l),c.apply(this,arguments)}return r(d[5])(l,[{key:"render",value:function(){return null}}],[{key:"ignoreWarnings",value:function(n){}},{key:"install",value:function(){}},{key:"uninstall",value:function(){}}]),l})(r(d[2]).Component),m.exports=t},404,[16,14,17,12,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.DynamicColorIOS=void 0;e.DynamicColorIOS=function(t){return(0,r(d[0]).DynamicColorIOSPrivate)({light:t.light,dark:t.dark,highContrastLight:t.highContrastLight,highContrastDark:t.highContrastDark})}},405,[148]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=r(d[0]).shape({x:r(d[0]).number,y:r(d[0]).number});m.exports=n},406,[201]); -__d(function(g,r,_i,_a,m,e,d){"use strict";var t=[],n=[];function u(t,n,o,l){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;var a=Object.prototype.toString,c=a.call(t);if(c!=a.call(n))return!1;switch(c){case'[object String]':return t==String(n);case'[object Number]':return!isNaN(t)&&!isNaN(n)&&t==Number(n);case'[object Date]':case'[object Boolean]':return+t==+n;case'[object RegExp]':return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var i=o.length;i--;)if(o[i]==t)return l[i]==n;o.push(t),l.push(n);var s=0;if('[object Array]'===c){if((s=t.length)!==n.length)return!1;for(;s--;)if(!u(t[s],n[s],o,l))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty('valueOf')&&n.hasOwnProperty('valueOf'))return t.valueOf()==n.valueOf();var f=Object.keys(t);if(f.length!=Object.keys(n).length)return!1;for(var p=0;p1&&void 0!==arguments[1]?arguments[1]:{},u=t.forwardRef(function(u,o){var f=Object.keys(u).reduce(function(e,r){var t=a;return t.includes(r)&&(e[r]=u[r]),e},(0,e.default)({},n)),l=(0,t.useRef)(),c=(0,t.useRef)();return(0,t.useImperativeHandle)(o,function(){var e=c.current;return l.current&&e?(l.current.handlerTag=e.handlerTag,l.current):null},[l,c]),t.createElement(_r(d[4]).NativeViewGestureHandler,(0,e.default)({},f,{ref:c}),t.createElement(r,(0,e.default)({},u,{ref:l})))});return u.displayName=r.displayName||'ComponentWrapper',u};var e=_r(d[0])(_r(d[1])),r=_r(d[0])(_r(d[2])),t=(function(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=n(r);if(t&&t.has(e))return t.get(e);var a={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(a,o,f):a[o]=e[o]}return a.default=e,t&&t.set(e,a),a})(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(n=function(e){return e?t:r})(e)}var a=[].concat((0,r.default)(_r(d[4]).nativeViewProps),['onGestureHandlerEvent','onGestureHandlerStateChange'])},412,[5,6,21,17,410]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=(0,r(d[0]).requireNativeComponent)('RNGestureHandlerButton');e.default=t},413,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"TouchableOpacity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"TouchableHighlight",{enumerable:!0,get:function(){return c.default}});var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),c=r(d[0])(r(d[4]))},414,[5,415,416,418,419]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).TouchableNativeFeedback;e.default=t},415,[28]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=n(t);if(r&&r.has(e))return r.get(e);var f={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var o=u?Object.getOwnPropertyDescriptor(e,a):null;o&&(o.get||o.set)?Object.defineProperty(f,a,o):f[a]=e[a]}return f.default=e,r&&r.set(e,f),f})(_r(d[2])),r=_r(d[0])(_r(d[3]));function n(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(n=function(e){return e?r:t})(e)}var f=t.forwardRef(function(n,f){return t.createElement(r.default,(0,e.default)({ref:f},n))});f.defaultProps=r.default.defaultProps;var u=f;_e.default=u},416,[5,6,17,417]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.TOUCHABLE_STATE=void 0;var t=_r(d[0])(_r(d[1])),e=_r(d[0])(_r(d[2])),s=_r(d[0])(_r(d[3])),o=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5])),i=_r(d[0])(_r(d[6])),r=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var s=l(e);if(s&&s.has(t))return s.get(t);var o={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in t)if("default"!==i&&Object.prototype.hasOwnProperty.call(t,i)){var r=n?Object.getOwnPropertyDescriptor(t,i):null;r&&(r.get||r.set)?Object.defineProperty(o,i,r):o[i]=t[i]}return o.default=t,s&&s.set(t,o),o})(_r(d[7])),a=_r(d[8]);function l(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,s=new WeakMap;return(l=function(t){return t?s:e})(t)}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(u=function(){return!!t})()}var p={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};_e.TOUCHABLE_STATE=p;var c=(function(l){(0,o.default)(E,l);var c,h,T=(c=E,h=u(),function(){var t,e=(0,i.default)(c);if(h){var s=(0,i.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,n.default)(this,t)});function E(){var t;(0,e.default)(this,E);for(var s=arguments.length,o=new Array(s),n=0;n0:w,O=t.overshootRight,A=void 0===O?v>0:O,R=s.Animated.add(r,a.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-v-(A?1:i),-v,p,p+(S?1:i)],outputRange:[-v-(A||i>1?1:0),-v,p,p+(S||i>1?1:0)]});o.transX=R,o.showLeftAction=p>0?R.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.Animated.Value(0),o.leftActionTranslate=o.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),o.showRightAction=v>0?R.interpolate({inputRange:[-v,0,1],outputRange:[1,0,0]}):new s.Animated.Value(0),o.rightActionTranslate=o.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})},o.onTapHandlerStateChange=function(t){t.nativeEvent.oldState===_r(d[9]).State.ACTIVE&&o.close()},o.onHandlerStateChange=function(t){t.nativeEvent.oldState===_r(d[9]).State.ACTIVE&&o.handleRelease(t)},o.handleRelease=function(t){var e=t.nativeEvent,n=e.velocityX,i=e.translationX,a=o.state,r=a.leftWidth,s=void 0===r?0:r,l=a.rowWidth,p=void 0===l?0:l,f=a.rowState,h=o.state.rightOffset,c=p-(void 0===h?p:h),v=o.props,w=v.friction,S=v.leftThreshold,O=void 0===S?s/2:S,A=v.rightThreshold,R=void 0===A?c/2:A,y=o.currentOffset()+i/w,b=(i+u*n)/w,W=0;0===f?b>O?W=s:b<-R&&(W=-c):1===f?b>-O&&(W=s):b0&&o.props.onSwipeableLeftOpen?o.props.onSwipeableLeftOpen():n<0&&o.props.onSwipeableRightOpen&&o.props.onSwipeableRightOpen(),0===n?null==o.props.onSwipeableClose||o.props.onSwipeableClose():null==o.props.onSwipeableOpen||o.props.onSwipeableOpen())}),n>0&&o.props.onSwipeableLeftWillOpen?o.props.onSwipeableLeftWillOpen():n<0&&o.props.onSwipeableRightWillOpen&&o.props.onSwipeableRightWillOpen(),0===n?null==o.props.onSwipeableWillClose||o.props.onSwipeableWillClose():null==o.props.onSwipeableWillOpen||o.props.onSwipeableWillOpen()},o.onRowLayout=function(t){var e=t.nativeEvent;o.setState({rowWidth:e.layout.width})},o.currentOffset=function(){var t=o.state,e=t.leftWidth,n=void 0===e?0:e,i=t.rowWidth,a=void 0===i?0:i,r=t.rowState,s=o.state.rightOffset;return 1===r?n:-1===r?-(a-(void 0===s?a:s)):0},o.close=function(){o.animateRow(o.currentOffset(),0)},o.openLeft=function(){var t=o.state.leftWidth,e=void 0===t?0:t;o.animateRow(o.currentOffset(),e)},o.openRight=function(){var t=o.state.rowWidth,e=void 0===t?0:t,n=o.state.rightOffset,i=e-(void 0===n?e:n);o.animateRow(o.currentOffset(),-i)};var i=new s.Animated.Value(0);return o.state={dragX:i,rowTranslation:new s.Animated.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},o.updateAnimatedEvent(n,o.state),o.onGestureEvent=s.Animated.event([{nativeEvent:{translationX:i}}],{useNativeDriver:n.useNativeAnimations}),o}return(0,n.default)(w,[{key:"UNSAFE_componentWillUpdate",value:function(t,e){this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e)}},{key:"render",value:function(){var e=this,n=this.state.rowState,o=this.props,i=o.children,a=o.renderLeftActions,l=o.renderRightActions,p=a&&r.createElement(s.Animated.View,{style:[h.leftActions,{transform:[{translateX:this.leftActionTranslate}]}]},a(this.showLeftAction,this.transX),r.createElement(s.View,{onLayout:function(t){var n=t.nativeEvent;return e.setState({leftWidth:n.layout.x})}})),u=l&&r.createElement(s.Animated.View,{style:[h.rightActions,{transform:[{translateX:this.rightActionTranslate}]}]},l(this.showRightAction,this.transX),r.createElement(s.View,{onLayout:function(t){var n=t.nativeEvent;return e.setState({rightOffset:n.layout.x})}}));return r.createElement(_r(d[10]).PanGestureHandler,(0,t.default)({activeOffsetX:[-10,10]},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}),r.createElement(s.Animated.View,{onLayout:this.onRowLayout,style:[h.container,this.props.containerStyle]},p,u,r.createElement(_r(d[10]).TapGestureHandler,{enabled:0!==n,onHandlerStateChange:this.onTapHandlerStateChange},r.createElement(s.Animated.View,{pointerEvents:0===n?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle]},i))))}}]),w})(r.Component);_e.default=f,f.defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};var h=s.StyleSheet.create({container:{overflow:'hidden'},leftActions:(0,t.default)({},s.StyleSheet.absoluteFillObject,{flexDirection:s.I18nManager.isRTL?'row-reverse':'row'}),rightActions:(0,t.default)({},s.StyleSheet.absoluteFillObject,{flexDirection:s.I18nManager.isRTL?'row':'row-reverse'})})},426,[5,6,7,8,12,14,16,17,28,3,4]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),a=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),r=_r(d[0])(_r(d[5])),i=_r(d[0])(_r(d[6])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=u(t);if(a&&a.has(e))return a.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var o=r?Object.getOwnPropertyDescriptor(e,i):null;o&&(o.get||o.set)?Object.defineProperty(n,i,o):n[i]=e[i]}return n.default=e,a&&a.set(e,n),n})(_r(d[7])),l=_r(d[0])(_r(d[8])),s=_r(d[9]);function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(u=function(e){return e?a:t})(e)}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var c=.05,w='Idle',f='Dragging',v='Settling',h=(function(e){(0,n.default)(b,e);var u,h,S=(u=b,h=p(),function(){var e,t=(0,i.default)(u);if(h){var a=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,a)}else e=t.apply(this,arguments);return(0,r.default)(this,e)});function b(e){var a;(0,t.default)(this,b),(a=S.call(this,e)).accessibilityIsModalView=o.createRef(),a.pointerEventsView=o.createRef(),a.panGestureHandler=o.createRef(),a.drawerShown=!1,a.updateAnimatedEvent=function(e,t){var n=e.drawerPosition,r=e.drawerWidth,i=e.drawerType,o=t.dragX,l=t.touchX,u=t.drawerTranslation,p=t.containerWidth,c=o,w=l;'left'!==n?(c=s.Animated.multiply(new s.Animated.Value(-1),o),w=s.Animated.add(new s.Animated.Value(p),s.Animated.multiply(new s.Animated.Value(-1),l)),l.setValue(p)):l.setValue(0);var f=c;if('front'===i){var v=s.Animated.add(w,s.Animated.multiply(new s.Animated.Value(-1),c)).interpolate({inputRange:[r-1,r,r+1],outputRange:[0,0,1]});f=s.Animated.add(c,v)}a.openValue=s.Animated.add(f,u).interpolate({inputRange:[0,r],outputRange:[0,1],extrapolate:'clamp'});var h={useNativeDriver:e.useNativeAnimations};a.props.onDrawerSlide&&(h.listener=function(e){var t=Math.floor(Math.abs(e.nativeEvent.translationX))/a.state.containerWidth;null==a.props.onDrawerSlide||a.props.onDrawerSlide(t)}),a.onGestureEvent=s.Animated.event([{nativeEvent:{translationX:o,x:l}}],h)},a.handleContainerLayout=function(e){var t=e.nativeEvent;a.setState({containerWidth:t.layout.width})},a.emitStateChanged=function(e,t){null==a.props.onDrawerStateChanged||a.props.onDrawerStateChanged(e,t)},a.openingHandlerStateChange=function(e){var t=e.nativeEvent;t.oldState===_r(d[10]).State.ACTIVE?a.handleRelease({nativeEvent:t}):t.state===_r(d[10]).State.ACTIVE&&(a.emitStateChanged(f,!1),'on-drag'===a.props.keyboardDismissMode&&s.Keyboard.dismiss(),a.props.hideStatusBar&&s.StatusBar.setHidden(!0,a.props.statusBarAnimation||'slide'))},a.onTapHandlerStateChange=function(e){var t=e.nativeEvent;a.drawerShown&&t.oldState===_r(d[10]).State.ACTIVE&&'locked-open'!==a.props.drawerLockMode&&a.closeDrawer()},a.handleRelease=function(e){var t=e.nativeEvent,n=a.props,r=n.drawerWidth,i=n.drawerPosition,o=n.drawerType,l=a.state.containerWidth,s=t.translationX,u=t.velocityX,p=t.x;'left'!==i&&(s=-s,p=l-p,u=-u);var w=p-s,f=0;'front'===o&&(f=w>r?w-r:0);var v=s+f+(a.drawerShown?r:0);v+c*u>r/2?a.animateDrawer(v,r,u):a.animateDrawer(v,0,u)},a.updateShowing=function(e){var t,n,r;a.drawerShown=e,null==(t=a.accessibilityIsModalView.current)||t.setNativeProps({accessibilityViewIsModal:e}),null==(n=a.pointerEventsView.current)||n.setNativeProps({pointerEvents:e?'auto':'none'});var i=a.props,o=i.drawerPosition,l=i.minSwipeDistance,s=i.edgeWidth,u='left'===o,p=(u?1:-1)*(a.drawerShown?-1:1),c=u?{left:0,width:e?void 0:s}:{right:0,width:e?void 0:s};null==(r=a.panGestureHandler.current)||r.setNativeProps({hitSlop:c,activeOffsetX:p*l})},a.animateDrawer=function(e,t,n,r){if(a.state.dragX.setValue(0),a.state.touchX.setValue('left'===a.props.drawerPosition?0:a.state.containerWidth),null!=e){var i=e;a.props.useNativeAnimations&&(e0?i=Math.min(e+n/60,t):e>t&&n<0&&(i=Math.max(e+n/60,t))),a.state.drawerTranslation.setValue(i)}var o=0!==t;a.updateShowing(o),a.emitStateChanged(v,o),a.props.hideStatusBar&&s.StatusBar.setHidden(o,a.props.statusBarAnimation||'slide'),s.Animated.spring(a.state.drawerTranslation,{velocity:n,bounciness:0,toValue:t,useNativeDriver:a.props.useNativeAnimations,speed:null!=r?r:void 0}).start(function(e){e.finished&&(a.emitStateChanged(w,o),o?null==a.props.onDrawerOpen||a.props.onDrawerOpen():null==a.props.onDrawerClose||a.props.onDrawerClose())})},a.openDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.animateDrawer(void 0,a.props.drawerWidth,e.velocity?e.velocity:0),a.forceUpdate()},a.closeDrawer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.animateDrawer(void 0,0,e.velocity?e.velocity:0),a.forceUpdate()},a.renderOverlay=function(){(0,l.default)(a.openValue,'should be set');var e={opacity:a.openValue.interpolate({inputRange:[0,1],outputRange:[0,1],extrapolate:'clamp'}),backgroundColor:a.props.overlayColor};return o.createElement(_r(d[11]).TapGestureHandler,{onHandlerStateChange:a.onTapHandlerStateChange},o.createElement(s.Animated.View,{pointerEvents:a.drawerShown?'auto':'none',ref:a.pointerEventsView,style:[y.overlay,e]}))},a.renderDrawer=function(){var e,t=a.props,n=t.drawerBackgroundColor,r=t.drawerWidth,i=t.drawerPosition,u=t.drawerType,p=t.drawerContainerStyle,c=t.contentContainerStyle,w='left'===i,f='back'!==u,v='front'!==u,h=s.I18nManager.isRTL?w:!w,S={backgroundColor:n,width:r},b=a.openValue;((0,l.default)(b,'should be set'),v)&&(e={transform:[{translateX:b.interpolate({inputRange:[0,1],outputRange:w?[0,r]:[0,-r],extrapolate:'clamp'})}]});var V=0;if(f){var A=w?-r:r;V=b.interpolate({inputRange:[0,1],outputRange:[A,0],extrapolate:'clamp'})}var D={transform:[{translateX:V}],flexDirection:h?'row-reverse':'row'};return o.createElement(s.Animated.View,{style:y.main,onLayout:a.handleContainerLayout},o.createElement(s.Animated.View,{style:['front'===u?y.containerOnBack:y.containerInFront,e,c],importantForAccessibility:a.drawerShown?'no-hide-descendants':'yes'},'function'==typeof a.props.children?a.props.children(a.openValue):a.props.children,a.renderOverlay()),o.createElement(s.Animated.View,{pointerEvents:"box-none",ref:a.accessibilityIsModalView,accessibilityViewIsModal:a.drawerShown,style:[y.drawerContainer,D,p]},o.createElement(s.View,{style:S},a.props.renderNavigationView(a.openValue))))},a.setPanGestureRef=function(e){a.panGestureHandler.current=e,null==a.props.onGestureRef||a.props.onGestureRef(e)};var n=new s.Animated.Value(0),r=new s.Animated.Value(0),i=new s.Animated.Value(0);return a.state={dragX:n,touchX:r,drawerTranslation:i,containerWidth:0},a.updateAnimatedEvent(e,a.state),a}return(0,a.default)(b,[{key:"UNSAFE_componentWillUpdate",value:function(e,t){this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t)}},{key:"render",value:function(){var e=this.props,t=e.drawerPosition,a=e.drawerLockMode,n=e.edgeWidth,r=e.minSwipeDistance,i='left'===t,l=(i?1:-1)*(this.drawerShown?-1:1),s=i?{left:0,width:this.drawerShown?void 0:n}:{right:0,width:this.drawerShown?void 0:n};return o.createElement(_r(d[11]).PanGestureHandler,{ref:this.setPanGestureRef,hitSlop:s,activeOffsetX:l*r,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==a&&'locked-open'!==a},this.renderDrawer())}}]),b})(o.Component);_e.default=h,h.defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1},h.positions={Left:'left',Right:'right'};var y=s.StyleSheet.create({drawerContainer:(0,e.default)({},s.StyleSheet.absoluteFillObject,{zIndex:1001,flexDirection:'row'}),containerInFront:(0,e.default)({},s.StyleSheet.absoluteFillObject,{zIndex:1002}),containerOnBack:(0,e.default)({},s.StyleSheet.absoluteFillObject),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:(0,e.default)({},s.StyleSheet.absoluteFillObject,{zIndex:1e3})})},427,[5,6,7,8,12,14,16,17,36,28,3,4]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),p=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),c=r(d[0])(r(d[8]));r(d[0])(r(d[9]));g.__DEV__=!1,g.btoa||(g.btoa=r(d[10]).encode),g.atob||(g.atob=r(d[10]).decode),g.newsmemoryStartupParams={},g.setNewsmemoryStartupParams=function(n){g.newsmemoryStartupParams=n},g.updateNewsmemoryStartupParams=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=g.getNewsmemoryStartupParams()||{};g.newsmemoryStartupParams=(0,t.default)({},o,n)},g.getNewsmemoryStartupParams=function(){return g.newsmemoryStartupParams},g.isIssueInNewsmemoryStartupParams=function(){if(g.newsmemoryStartupParams){var n=g.newsmemoryStartupParams,t=n.date,o=n.selDate,s=n.issue;return void 0!==o||void 0!==t||void 0!==s}return!1},g.shouldForceNewsmemoryWithStartupParams=function(){return!!g.newsmemoryStartupParams&&("load"===g.newsmemoryStartupParams.schemaPath||g.isIssueInNewsmemoryStartupParams())},g.resetNewsmemoryStartupParams=function(){g.newsmemoryStartupParams={}},g.initBaseValues=function(n){var t=n.language,o=n.pSetup,s=n.machine,u=n.splashBgColor,p=n.loadingColor,l=n.appName,c=n.appVersionName,f=n.appVersionCode,S=n.androidVersionName,C=n.iosIapSharedSecret,P=n.androidAppId,v=n.pushService,b=n.pushChannel,A=n.pushChannelSilent,w=n.masAppId,y=n.hcmAppId,M=n.oneSignalAppId,h=n.facebookAppId,D=n.isAddon,N=n.addonNeedsCloseButton,L=n.addonNeedsSafeArea,I=n.isTecnaviaHelperApp,x=n.debugMode,_=n.densityDPI,T=n.isHuawei,F=n.isKindle,V=n.initialOrientation,R=n.developerName,U=n.externalLinkAccountURL,O=n.token,E=n.apiKey,k=n.enableDebugger;g.splashBgColor=u,g.loadingColor=p,g.appName=l,g.appVersionName=c,g.androidVersionName=S,g.appVersionCode=f,g.iosIapSharedSecret=C,g.androidAppId=P,g.pushService=v,g.pushChannel=b,g.pushChannelSilent=A,g.masAppId=w,g.hcmAppId=y,g.oneSignalAppId=M,g.facebookAppId=h,g.isDebug=g.__DEV__||x,g.showSendLog=!g.__DEV__&&x,g.isApiDebug=g.isDebug,g.cssDebug=g.isDebug,g.isHuawei=T,g.isKindle=F,g.locale=t,g.pSetup=o,g.server=s,g.isTecnaviaHelperApp=I,g.densityDPI=_,g.initialOrientation=V,g.isAddon=D,g.addonNeedsCloseButton=D&&N,g.addonNeedsSafeArea=D&&L,g.apiKey=E,g.enableDebugger=!!k,g.developerName=R||"Tecnavia",g.externalLinkAccountURL=U,O&&g.updateNewsmemoryStartupParams({token:O}),r(d[11]).NetworkUtils.isHTTPS=g.isHTTPS(),r(d[11]).Logger.enableLog=g.isDebug,g.__DEV__&&g.isTaAddon(),g.initialized=!0},g.initialized=!1,g.startup=!0,g.lastAppSide=void 0,g.lastRssCategory=void 0,g.pSetup="",g.server="",g.locale="",g.isDebug=!1,g.showSendLog=!1,g.isAddon=!1,g.addonNeedsCloseButton=!1,g.addonNeedsSafeArea=!1,g.isTecnaviaHelperApp=!1,g.developer="naquilini",g.isApiDebug=!1,g.cssDebug=!1,g.adsTestDevices=["EF6F266379A7547A0AC501AC591D60A1"],g.isLayoutDebug=!1,g.isDimensionsDebug=!1,g.developerName=void 0,g.externalLinkAccountURL=void 0,g.apiKey=void 0,g.unauthorized=!1,g.enableDebugger=!1,g.machineId=void 0,g.openingPushNotificationDate=new Date,g.advertisingTrackingConsent=void 0,g.isTaAddon=function(){return g.isAddon||g.isTecnaviaHelperApp},g.TaAddonNeedsCloseButton=function(){return g.addonNeedsCloseButton},g.appNeedsSafeArea=function(){return!g.isTaAddon()||g.addonNeedsSafeArea},g.getRssFavoritesConfig=function(){return g.rssFavoritesConfig||(g.rssFavoritesConfig=new(r(d[12]).RssFavoritesConfig)),g.rssFavoritesConfig},g.getEpaperLayoutConfig=function(){return g.epaperLayoutConfig||(g.epaperLayoutConfig=new o.default),g.epaperLayoutConfig},g.getLocaleConfig=function(){return g.localeConfig||(g.localeConfig=new(r(d[13]).LocaleConfig)),g.localeConfig},g.getSslConfig=function(){return g.sslConfig||(g.sslConfig=new u.default),g.sslConfig},g.strings=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return g.getLocaleConfig().strings(n,t)},g.date=function(n){return g.getLocaleConfig().date(n)},g.formattedDate=function(n,t){return g.getLocaleConfig().formattedDate(n,t)},g.getAudio=function(){return g.getLocaleConfig().audioMgr},g.getAdsConfig=function(){return g.adsConfig||(g.adsConfig=new(r(d[14]).AdsConfig)),g.adsConfig},g.getVerticalsConfig=function(){return g.verticalsConfig||(g.verticalsConfig=new(r(d[15]).VerticalsConfig)),g.verticalsConfig},g.getNewsmemoryConfig=function(){return g.newsmemoryConfig||(g.newsmemoryConfig=new s.default),g.newsmemoryConfig},g.getRssIndexManager=function(){return g.rssIndexManager||(g.rssIndexManager=new(r(d[16]).RssIndexManager)),g.rssIndexManager},g.getRssIndex=function(n){return g.getRssIndexManager().getIndex(n)},g.getFontsManager=function(){return g.fontsManager||(g.fontsManager=new(r(d[17]).FontsManager)),g.fontsManager},g.getFontsConfig=function(n){return g.getFontsManager().getConfig(n)},g.getUserSettings=function(){return g.userConfig||(g.userConfig=new(r(d[18]).UserConfig)),g.userConfig},g.getAppPSetup=function(){var n,t=g.getUserSettings().notificationEmail;if(t){n=r(d[11]).StringUtils.parseNotificationEmail(t).pSetup;var o=g.getPaperSetupManager();if(o){var s=o.activePSetup;if(s)n!==c.default.parseXpSetup(s).mainpSetup&&o.setActivePSetup(n);else o.setActivePSetup(n)}}n||(n=g.pSetup);return n.trim()},g.getAppServer=function(){var n,t=g.getUserSettings().notificationEmail;t&&(n=r(d[11]).StringUtils.parseNotificationEmail(t).server);n||(n=g.server);return n.trim()},g.isHTTPS=function(){return 0===g.getAppServer().indexOf("https://")},g.getPaperSetupManager=function(){return g.paperSetupManager||(g.paperSetupManager=new(r(d[19]).PaperSetupManager)),g.paperSetupManager},g.getMainPSetup=function(){return g.getPaperSetupManager().getMainPSetupConfig()},g.getActivePSetup=function(){return g.getPaperSetupManager().getActivePSetupConfig()},g.getRSSActivePSetup=function(){return g.getPaperSetupManager().getRSSActivePSetupConfig()},g.initPSetup=function(t,o,s){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPaperSetupManager().init(t,o,s));case 1:case"end":return n.stop()}},null,null,null,Promise)},g.initConfigOnly=function(t,o){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPaperSetupManager().initConfigOnly(t,o));case 1:case"end":return n.stop()}},null,null,null,Promise)},g.setPSetupConfig=function(t,o){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPaperSetupManager().setPSetupConfig(t,o));case 1:case"end":return n.stop()}},null,null,null,Promise)},g.loadPSetup=function(o,s,u,p){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPaperSetupManager().load(o,s,(0,t.default)({fromCache:!0},u),p));case 1:case"end":return n.stop()}},null,null,null,Promise)},g.reloadActivePSetup=function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPaperSetupManager().reload(t));case 1:case"end":return n.stop()}},null,null,null,Promise)},g.getPublicationsManager=function(){return g.publicationsManager||(g.publicationsManager=new l.default),g.publicationsManager},g.loadPublications=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPublicationsManager().load());case 1:case"end":return n.stop()}},null,null,null,Promise)},g.setCurrentPublication=function(n){return g.getPublicationsManager().setCurrentPublication(n)},g.getCurrentPublication=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getPublicationsManager().getCurrentPublication());case 1:case"end":return n.stop()}},null,null,null,Promise)},g.getContentManager=function(){return g.contentManager||(g.contentManager=new p.default),g.contentManager},g.analyzeUsedSpace=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",g.getContentManager().analyze());case 1:case"end":return n.stop()}},null,null,null,Promise)},g.getUsedSpace=function(){var n=g.getContentManager();return{usedSpace:n.usedSpace,numberOfPapersDirs:n.numberOfPapersDirs,numberOfIssuesDirs:n.numberOfIssuesDirs,numberOfPagesDirs:n.numberOfPagesDirs}},r(d[11]).Logger.enableLog=!1,r(d[11]).Logger.enableLogCaller=!1,r(d[11]).Logger.initializedLogSession=!1,r(d[11]).Logger.logSessionFileName="",g.getLocaleConfig().initLocale()},428,[5,80,6,429,1868,1972,1973,1728,605,1729,467,462,1974,1988,2024,2080,2087,1859,2095,1855]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),c=(r(d[0])(r(d[5])),(function(){function c(){(0,n.default)(this,c),this.isTablet=r(d[6]).PlatformUtils.isTablet(),this.config={}}return(0,o.default)(c,[{key:"_addPublicationsButton",value:function(){var t;if(this.mainFooter.buttons&&this.mainFooter.buttons.length>0&&!this.mainFooter.buttons.find(function(t){return t&&t.getAction()===r(d[7]).ACTIONS.openMore.key})){var n=r(d[8]).main.buttons.find(function(t){return t&&t.function===r(d[7]).ACTIONS.openMore.key});n&&this.mainFooter.buttons.push(new(r(d[9]).Icon)(n))}if(this.mainFooter.more&&this.mainFooter.more.length>0&&(t=this.mainFooter.more.find(function(t){return t&&t.getAction()===r(d[7]).ACTIONS.openOptionPagePublications.key})),!t&&(this.mainFooter.buttons&&this.mainFooter.buttons.length>0&&(t=this.mainFooter.buttons.find(function(t){return t&&t.getAction()===r(d[7]).ACTIONS.openOptionPagePublications.key})),!t)){this.mainFooter.more||(this.mainFooter.more=[]);var o=r(d[8]).main.more.find(function(t){return t&&t.function===r(d[7]).ACTIONS.openOptionPagePublications.key});if(o){var s=this.mainFooter.more.length+1;o.id=s,this.mainFooter.more.push(new(r(d[9]).Icon)(o))}}}},{key:"getIconByAction",value:function(t){var n;return this.mainFooter&&(n=this.mainFooter.getButtonByAction(t)),!n&&this.articleFooter&&(n=this.articleFooter.getButtonByAction(t)),!n&&this.firstLevelIndexFooter&&(n=this.firstLevelIndexFooter.getButtonByAction(t)),!n&&this.secondLevelIndexFooter&&(n=this.secondLevelIndexFooter.getButtonByAction(t)),!n&&this.articleHeader&&(n=this.articleHeader.getButtonByAction(t)),!n&&this.firstLevelIndexHeader&&(n=this.firstLevelIndexHeader.getButtonByAction(t)),!n&&this.secondLevelIndexHeader&&(n=this.secondLevelIndexHeader.getButtonByAction(t)),!n&&this.navigationModel&&(n=this.navigationModel.getButtonByAction(t)),n}},{key:"init",value:function(n,o,u){var h,l,f,v,y,p,F,b,x,A,w,I,L=arguments;return t.default.async(function(B){for(;;)switch(B.prev=B.next){case 0:if(h=L.length>3&&void 0!==L[3]&&L[3],this.type=o,!u){B.next=25;break}return B.prev=3,B.next=6,t.default.awrap(s.default.getEpaperLayoutConfig());case 6:l=B.sent,this.config=l&&l.data||{},g.getNewsmemoryConfig().setLayout(n,this.config),B.next=16;break;case 11:return B.prev=11,B.t0=B.catch(3),B.next=15,t.default.awrap(g.getNewsmemoryConfig().getLayout(n));case 15:this.config=B.sent;case 16:return B.prev=16,B.next=19,t.default.awrap(g.getNewsmemoryConfig().resetTranslationAvailable());case 19:B.next=23;break;case 21:B.prev=21,B.t1=B.catch(16);case 23:B.next=28;break;case 25:return B.next=27,t.default.awrap(g.getNewsmemoryConfig().getLayout(n));case 27:this.config=B.sent;case 28:if(!this.config||!this.config.main)switch(this.type){case c.Type.hybridLite:case c.Type.hybrid:case c.Type.lite:default:this.config=this.isTablet?r(d[8]):r(d[10])}f=this.config,v=f.main,y=f.article,p=f.index,F=f.navigation,v&&(this.mainFooter=new(r(d[11]).Footer)(v),b=g.getActivePSetup(),x=b.isGenericApp,r(d[12]).PaperSetupManager.isGenericAppConfigured()&&!x&&(A=g.getPublicationsManager(),(h||A.getPublications().length>1)&&this._addPublicationsButton())),y&&(this.articleFooter=new(r(d[11]).Footer)(y.footer),this.articleHeader=new(r(d[13]).Header)(y)),p&&(w=p.firstLevel,I=p.secondLevel,w&&(this.firstLevelIndexHeader=new(r(d[13]).Header)(w),this.firstLevelIndexFooter=new(r(d[11]).Footer)(w.footer||y.footer)),I&&(this.secondLevelIndexHeader=new(r(d[13]).Header)(I),this.secondLevelIndexFooter=new(r(d[11]).Footer)(I.footer||y.footer))),F&&(this.navigationModel=new(r(d[14]).Navigation)(F));case 34:case"end":return B.stop()}},null,this,[[3,11],[16,21]],Promise)}}]),c})());e.default=c,c.Type={normal:0,lite:1,hybrid:2,hybridLite:3}},429,[5,80,7,8,430,1728,462,1731,1810,1811,1851,1852,1855,1862,1867]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),a=_r(d[0])(_r(d[3])),r=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5])),u=_r(d[0])(_r(d[6])),s=_r(d[0])(_r(d[7])),l=P(_r(d[8])),i=P(_r(d[9])),o=_r(d[0])(_r(d[10])),c=_r(d[0])(_r(d[11])),p=(_r(d[0])(_r(d[12])),_r(d[0])(_r(d[13])),_r(d[0])(_r(d[14]))),f=_r(d[0])(_r(d[15]));_r(d[0])(_r(d[16]));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,a=new WeakMap;return(v=function(e){return e?a:t})(e)}function P(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var a=v(t);if(a&&a.has(e))return a.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var s=n?Object.getOwnPropertyDescriptor(e,u):null;s&&(s.get||s.set)?Object.defineProperty(r,u,s):r[u]=e[u]}return r.default=e,a&&a.set(e,r),r}var w=(function(){function v(){(0,r.default)(this,v)}return(0,n.default)(v,null,[{key:"getDomain",value:function(e){var t=g.getActivePSetup().machine,a=g.getNewsmemoryConfig().cdnServer;return e&&a||t}},{key:"baseUrl",value:function(e){return u.default.baseUrl(v.getDomain(e))}},{key:"getDefaultGETParams",value:function(){return{pSetup:g.getActivePSetup().pSetup}}},{key:"getEncryptedCallsParams",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=g.getActivePSetup(),a=t.pSetup,r=t.encryptFilenames;if(e&&r===_r(d[17]).ENCRYPT_FILENAME_TYPE.XPAPER){var n=i.default.parseXpSetup(a).xpSetup;if(n)return{pSetup:n}}return{}}},{key:"getResourceCDNParams",value:function(e,t,r,n){var u=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s={};return e?(s=(0,a.default)({},v.getEncryptedCallsParams(u),{cc:i.default.encryptFilenames(r,e)}),n&&(s.mtime=n.join(","))):(s[t]=r.join(","),n&&(s.ts=i.default.getCDNChecksum(n))),s}},{key:"get",value:function(t){var r,n,s,l=arguments;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return r=l.length>1&&void 0!==l[1]?l[1]:{},n=l.length>2&&void 0!==l[2]&&l[2],s=l.length>3&&void 0!==l[3]?l[3]:{},e.abrupt("return",u.default.get(v.baseUrl(),r,(0,a.default)({},v.getDefaultGETParams(),t),n,s));case 4:case"end":return e.stop()}},null,null,null,Promise)}},{key:"post",value:function(t){var r,n,s,l,i,o,c=arguments;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:{},n=c.length>2&&void 0!==c[2]?c[2]:{},s=c.length>3&&void 0!==c[3]?c[3]:{responseType:"text"},l=c.length>4&&void 0!==c[4]?c[4]:{},i=(0,a.default)({},u.default.getDefaultParams(),v.getDefaultGETParams(),r),o=_r(d[18]).StringUtils.appendParams(t,i),e.abrupt("return",u.default.post(o,s,n,!0,l));case 7:case"end":return e.stop()}},null,null,null,Promise)}},{key:"login",value:function(r,n){var u,s,l,i,o,c;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return u=r.username,s=r.password,l=r.TAUID,i=r.TOKEN,o=r.challenge,c=(0,t.default)(r,["username","password","TAUID","TOKEN","challenge"]),e.abrupt("return",v.get((0,a.default)({action:"login",timepc:(new Date).getTime()/1e3||0,username:_r(d[18]).JSUtils.isNull(u)?void 0:u,password:s,challenge:o,TAUID:l,TOKEN:i,LocalUA:_r(d[18]).PlatformUtils.getUserAgent()},c),{timeout:n}));case 2:case"end":return e.stop()}},null,null,null,Promise)}},{key:"createIAPUser",value:function(){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",v.get({action:"createIAPUser"}));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"getEditionsAndIssues",value:function(){var t,r,n,s,l,o,c=arguments;return e.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return t=c.length>0&&void 0!==c[0]?c[0]:{},r=g.getActivePSetup(),n=r.loadEditionsUrl,s=i.default.parseXpSetup(g.getActivePSetup().pSetup),l=s.mainpSetup,p.prev=3,p.next=6,e.default.awrap(u.default.get(n,{},(0,a.default)({},v.getDefaultGETParams(),{pSetup:l},t)));case 6:return o=p.sent,p.abrupt("return",o.data);case 10:p.prev=10,p.t0=p.catch(3);case 12:return p.abrupt("return",{});case 13:case"end":return p.stop()}},null,null,[[3,10]],Promise)}},{key:"getIssues",value:function(t){var a,r,n,u,s,l,i;return e.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return a=g.getActivePSetup(),r=a.defaultMaxIssues,n=a.udb,u=g.getNewsmemoryConfig(),o.next=4,e.default.awrap(u.getPrefEdi(n));case 4:return s=o.sent,o.next=7,e.default.awrap(u.getFavEdi());case 7:return l=o.sent,o.prev=8,o.next=11,e.default.awrap(v.get({action:"issues",maxIssues:r,edition:t,prefEdi:s,favEdi:l}));case 11:return i=o.sent,o.abrupt("return",i.data);case 15:o.prev=15,o.t0=o.catch(8);case 17:return o.abrupt("return",[]);case 18:case"end":return o.stop()}},null,null,[[8,15]],Promise)}},{key:"getEditions",value:function(t){var a;return e.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,e.default.awrap(v.get({action:"editions",issue:t}));case 3:return a=r.sent,r.abrupt("return",a.data);case 7:r.prev=7,r.t0=r.catch(0);case 9:return r.abrupt("return",[]);case 10:case"end":return r.stop()}},null,null,[[0,7]],Promise)}},{key:"translateArticle",value:function(t){var r,n,s,l,o,c,p,f,P,w,h,y,D;return e.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return r=g.getActivePSetup(),n=r.translationServer,s=!1,n?l=u.default.baseUrl(n):(s=i.default.isCDNEnabled(),l=v.baseUrl(s)),b.prev=3,o=t.target,c=t.issue,p=t.edition,f=t.filename,P=t.artid,w=t.filetime,h=t.secret,y=(0,a.default)({},u.default.getDefaultParams(!0,s),v.getDefaultGETParams(),{action:"translate",target:o,issue:c,edition:p,artid:P},v.getResourceCDNParams(h,"filename",[f],[w],s)),b.next=8,e.default.awrap(u.default.get(l,{},y,!0));case 8:return D=b.sent,b.abrupt("return",D.data);case 12:b.prev=12,b.t0=b.catch(3);case 14:return b.abrupt("return","");case 15:case"end":return b.stop()}},null,null,[[3,12]],Promise)}},{key:"translationsAvailable",value:function(){var t;return e.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,e.default.awrap(v.get({action:"languages"}));case 3:return t=a.sent,a.abrupt("return",t.data);case 7:a.prev=7,a.t0=a.catch(0);case 9:return a.abrupt("return",{});case 10:case"end":return a.stop()}},null,null,[[0,7]],Promise)}},{key:"share",value:function(t){var r,n,u,s,l,i;return e.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return r=g.getActivePSetup(),n=r.loginStatus,u=n.TAUID,s=n.TOKEN,l=(0,a.default)({action:"share"},t,{TAUID:u,TOKEN:s}),o.prev=3,o.next=6,e.default.awrap(v.get(l));case 6:return i=o.sent,o.abrupt("return",i.data);case 10:o.prev=10,o.t0=o.catch(3);case 12:return o.abrupt("return",{});case 13:case"end":return o.stop()}},null,null,[[3,10]],Promise)}},{key:"downloadEditionDB",value:function(t,r,n,s,o){var c,f,P,w,h,y,D,b,x,U,E,T,k,I,N,S,A,C;return e.default.async(function(R){for(;;)switch(R.prev=R.next){case 0:return c=g.getActivePSetup(),f=c.loginStatus,P=c.encryptFilenames,w=f.TAUID,h=f.TOKEN,y=f.oneTimeToken,D=i.default.normalizeEdition(n)+"_pages",b=(0,a.default)({},u.default.getDefaultParams(),v.getDefaultGETParams(),{action:"adfile",issue:r,adtype:D,edition:n,TAUID:w,TOKEN:h,oneTimeToken:y,uAVCC:f.getReceiptToken(),appendFirstPages:s?1:0}),P>_r(d[17]).ENCRYPT_FILENAME_TYPE.NONE&&(b.e=1),x=g.getNewsmemoryConfig(),(U=x.dbDownloadPSetup)&&(b.pSetup=U),E=_r(d[18]).StringUtils.appendParams(v.baseUrl(),b),T=p.default.getNewspaperIssueDirectory(t,r),k=r+"_"+D+".zip",R.next=12,e.default.awrap(l.default.getEditionDatabaseAndPages(E,k,T,(0,a.default)({completionCallback:function(e){var t=e.speed;I=t}},o)));case 12:return N=R.sent,S=N.filenames,A=N.responseHeaders,C=(0,a.default)({},S,{responseHeaders:A}),I&&(C.speed=I),R.abrupt("return",C);case 18:case"end":return R.stop()}},null,null,null,Promise)}},{key:"getHrImageUrl",value:function(e,t,r,n,s,l,o){var c=t?"jpg":"gif",p=i.default.isCDNEnabled(),f=(0,a.default)({},u.default.getDefaultParams(!0,p),v.getDefaultGETParams(),{action:"hrimage",issue:e,xmlId:r,boxId:n,type:c},v.getResourceCDNParams(o,"filename",[s],[l],p));return _r(d[18]).StringUtils.appendParams(v.baseUrl(p),f)}},{key:"getPagePath",value:function(e,t,a){return p.default.getNewspaperIssueDirectory(e,t)+a+"/"}},{key:"getHrPath",value:function(e,t,a,r,n,u){var s="pag_"+n+"_"+u+"."+(r?"jpg":"gif");return v.getPagePath(e,t,a)+s}},{key:"downloadHRImage",value:function(t,a,r,n,u,s,i,o){var p,f,P,w,h,y,D;return e.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return p="pag_"+u+"_"+s+"."+(i?"jpg":"gif"),f=v.getHrImageUrl(a,i,u,s,r,n,o),b.prev=3,P=v.getPagePath(t,a,r),b.next=7,e.default.awrap(l.default.downloadResourceInFolder(f,P,p));case 7:return w=b.sent,b.next=10,e.default.awrap((0,_r(d[19]).getImageSize)("file://"+w));case 10:return h=b.sent,y=h.width,D=h.height,b.abrupt("return",{path:w,name:c.default.getFilename(w),width:y,height:D});case 16:throw b.prev=16,b.t0=b.catch(3),b.t0;case 19:case"end":return b.stop()}},null,null,[[3,16]],Promise)}},{key:"downloadImage",value:function(t,r,n,s,o,f){var P,w,h,y,D,b,x,U;return e.default.async(function(E){for(;;)switch(E.prev=E.next){case 0:return P=i.default.isCDNEnabled(),w=(0,a.default)({},u.default.getDefaultParams(!0,P),v.getDefaultGETParams(),{action:"base64image",issue:r,image:n},v.getResourceCDNParams(f,"filename",[s],[o],P)),h=_r(d[18]).StringUtils.appendParams(v.baseUrl(P),w),E.prev=3,y=p.default.getNewspaperIssueDirectory(t,r)+s+"/",E.next=7,e.default.awrap(l.default.downloadResourceInFolder(h,y,n));case 7:if(D=E.sent,b=0,x=0,!D.endsWith(_r(d[20]).EPaperImageName.PDF)){E.next=15;break}b=100,x=100,E.next=24;break;case 15:return E.next=17,e.default.awrap((0,_r(d[19]).getImageSize)("file://"+D));case 17:if(U=E.sent,b=U.width,x=U.height,0!==b&&0!==x){E.next=24;break}return E.next=23,e.default.awrap(_r(d[18]).FileUtils.unlink(D));case 23:throw new Error("Invalid size "+b+"x"+x+" for image "+D);case 24:return E.abrupt("return",{path:D,name:c.default.getFilename(D),width:b,height:x});case 27:throw E.prev=27,E.t0=E.catch(3),E.t0;case 30:case"end":return E.stop()}},null,null,[[3,27]],Promise)}},{key:"downloadPageZip",value:function(t,r,n,s,o){var c,f,P,w,h,y,D,b,x;return e.default.async(function(U){for(;;)switch(U.prev=U.next){case 0:return c=i.default.isCDNEnabled(),f=(0,a.default)({},u.default.getDefaultParams(!0,c),v.getDefaultGETParams(),{action:"zippedimages",issue:r},v.getResourceCDNParams(o,"filename",[n],[s],c)),P=_r(d[18]).StringUtils.appendParams(v.baseUrl(c),f),U.prev=3,w=p.default.getNewspaperIssueDirectory(t,r)+n+"/",U.next=7,e.default.awrap(l.default.downloadResourceAndUnzipInFolder(P,w));case 7:return h=_r(d[20]).EPaperImageName.LOW,y=_r(d[20]).EPaperImageName.GRAPH,D=_r(d[20]).EPaperImageName.GIF,b=_r(d[20]).EPaperImageName.PDF,U.next=10,e.default.awrap(l.default.scanPageFolderForImages(w,[h,y,D,b]));case 10:return x=U.sent,U.abrupt("return",x);case 14:throw U.prev=14,U.t0=U.catch(3),U.t0;case 17:case"end":return U.stop()}},null,null,[[3,14]],Promise)}},{key:"downloadHRImagesZip",value:function(t,r,n,s,o){var f,P,w,h,y,D;return e.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return f=i.default.isCDNEnabled(),P=n.substring(0,n.length-2),w=(0,a.default)({},u.default.getDefaultParams(!0,f),v.getDefaultGETParams(),{action:"zippedhrimages",mode:"g",issue:r},v.getResourceCDNParams(o,"page",[P],[s],f)),h=_r(d[18]).StringUtils.appendParams(v.baseUrl(f),w),b.prev=4,y=p.default.getNewspaperIssueDirectory(t,r)+n+"/",b.next=8,e.default.awrap(l.default.downloadResourceInFolder(h,y,i.ARCHIVE_ZIP_GRAPH_FILENAME));case 8:return D=b.sent,b.next=11,e.default.awrap(c.default.exists(D));case 11:if(!b.sent){b.next=14;break}return b.abrupt("return",D);case 14:return b.abrupt("return",null);case 17:throw b.prev=17,b.t0=b.catch(4),b.t0;case 20:case"end":return b.stop()}},null,null,[[4,17]],Promise)}},{key:"downloadMultiplePagesZips",value:function(t,r,n,s,o){var c,f,P,w,h,y,D,b;return e.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return c=i.default.isCDNEnabled(),f=(0,a.default)({},u.default.getDefaultParams(!0,c),v.getDefaultGETParams(),{action:"multizippedimages",issue:r},v.getResourceCDNParams(o,"filenames",n,s,c)),P=_r(d[18]).StringUtils.appendParams(v.baseUrl(c),f),x.prev=3,w=p.default.getNewspaperIssueDirectory(t,r),x.next=7,e.default.awrap(l.default.downloadResourceAndUnzipInFolder(P,w));case 7:return h=_r(d[20]).EPaperImageName.LOW,y=_r(d[20]).EPaperImageName.GRAPH,D=_r(d[20]).EPaperImageName.GIF,b=_r(d[20]).EPaperImageName.PDF,x.abrupt("return",Promise.all(n.map(function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l.default.scanPageFolderForImages(w+t,[h,y,D,b]));case 1:case"end":return e.stop()}},null,null,null,Promise)})));case 11:throw x.prev=11,x.t0=x.catch(3),x.t0;case 14:case"end":return x.stop()}},null,null,[[3,11]],Promise)}},{key:"downloadFullPaper",value:function(t,r,n){var s,i,o,c,f,P,w,h,y,D;return e.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return s=g.getActivePSetup(),i=s.loginStatus,o=i.TAUID,c=i.TOKEN,f=i.oneTimeToken,P=g.getNewsmemoryConfig(),w=P.network,h=(0,a.default)({},u.default.getDefaultParams(),v.getDefaultGETParams(),{action:"zippedpaper",issue:r,edition:n,TAUID:o,TOKEN:c,oneTimeToken:f,network:w,uAVCC:i.getReceiptToken()}),y=_r(d[18]).StringUtils.appendParams(v.baseUrl(),h),b.prev=5,D=p.default.getNewspaperIssueDirectory(t,r),b.next=9,e.default.awrap(l.default.downloadResourceAndUnzipInFolder(y,D));case 9:b.next=14;break;case 11:throw b.prev=11,b.t0=b.catch(5),b.t0;case 14:case"end":return b.stop()}},null,null,[[5,11]],Promise)}},{key:"downloadPaperIndex",value:function(t,a){var r,n,u,s,l,i,o,c;return e.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return r=g.getActivePSetup(),n=r.loginStatus,u=n.TAUID,s=n.TOKEN,l=n.oneTimeToken,i={action:"index",issue:t,edition:a,TAUID:u,TOKEN:s,oneTimeToken:l,uAVCC:n.getReceiptToken()},p.next=5,e.default.awrap(v.get(i));case 5:if(o=p.sent,!(c=o.data)){p.next=9;break}return p.abrupt("return",c);case 9:throw new Error("NewsmemoryAJAX - downloadPaperIndex: no data returned");case 10:case"end":return p.stop()}},null,null,null,Promise)}},{key:"downloadArticles",value:function(t,r,n,u){var s,l,i;return e.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,s=(0,a.default)({action:"articles",issue:t,edition:r},v.getResourceCDNParams(u,"filename",[n])),o.next=4,e.default.awrap(v.get(s));case 4:if(l=o.sent,!(i=l.data)){o.next=8;break}return o.abrupt("return",i);case 8:o.next=12;break;case 10:o.prev=10,o.t0=o.catch(0);case 12:throw new Error("NewsmemoryAJAX - downloadArticles: no data returned");case 13:case"end":return o.stop()}},null,null,[[0,10]],Promise)}},{key:"getAvailableLanguages",value:function(){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",v.get({action:"languages"}));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"getEpaperLayoutConfig",value:function(){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",v.get({action:"buttons"}));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"getApplication",value:function(){var t,r,n,s,l;return e.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=(0,a.default)({},u.default.getDefaultParams(),v.getDefaultGETParams(),{action:"application"}),r=_r(d[18]).StringUtils.appendParams(v.baseUrl(),t),i.prev=2,i.next=5,e.default.awrap(c.default.fetch(r));case 5:if(!(n=i.sent)){i.next=23;break}return s=n.path(),l=f.default.getDirectory()+"/",i.prev=9,i.next=12,e.default.awrap(c.default.unlink(l));case 12:i.next=16;break;case 14:i.prev=14,i.t0=i.catch(9);case 16:return i.next=18,e.default.awrap(c.default.mkdir(l));case 18:return i.next=20,e.default.awrap(c.default.unzip(s,l));case 20:return i.next=22,e.default.awrap(c.default.clearUnusedDownloadedFiles(s));case 22:return i.abrupt("return",!0);case 23:i.next=28;break;case 25:throw i.prev=25,i.t1=i.catch(2),new Error("Failed to download "+r);case 28:return i.abrupt("return",!1);case 29:case"end":return i.stop()}},null,null,[[2,25],[9,14]],Promise)}},{key:"getCDNStatus",value:function(t,a){var r,n,u,s,l,i;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return r=g.getActivePSetup(),n=r.loginStatus,u=n.TAUID,s=n.TOKEN,l=n.oneTimeToken,i={action:"cdn",issue:t,edition:a,TAUID:u,TOKEN:s,oneTimeToken:l,uAVCC:n.getReceiptToken()},e.abrupt("return",v.get(i));case 4:case"end":return e.stop()}},null,null,null,Promise)}},{key:"getChildArtImageUrl",value:function(e,t,r,n,s,l,o,c,p){var f=i.default.isCDNEnabled(),P=(0,a.default)({},u.default.getDefaultParams(!0,!0),v.getDefaultGETParams(),{action:"loadImage",type:"printImage",xmlId:t,issue:e,images:r,medDpi:n,pageW:s,pageH:l},v.getResourceCDNParams(p,"filename",[o],[c],f));return _r(d[18]).StringUtils.appendParams(v.baseUrl(f),P)}},{key:"getInArticleImageUrl",value:function(e,t,r,n,s,l,o,c){var p=i.default.isCDNEnabled(),f=(0,a.default)({},u.default.getDefaultParams(!0,!0),v.getDefaultGETParams(),{action:"loadImage",type:"Image",paper:e,issue:t,edition:r,val:n,imageIssue:s!==t?s:void 0},v.getResourceCDNParams(c,"filename",[l],[o],p));return _r(d[18]).StringUtils.appendParams(v.baseUrl(p),f)}},{key:"getSpecialSectionUrl",value:function(e,t,r,n){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=i.default.isCDNEnabled(),c=(0,a.default)({},u.default.getDefaultParams(!0,o),v.getDefaultGETParams(),{action:e,issue:t},v.getResourceCDNParams(n,"edition",[r],[0],o&&!s));return s&&(c.editionfromcalling=g.getNewsmemoryConfig().editionfromcalling),"indexspecial"===e&&(c.showSections=l?1:0,c.remote=1),_r(d[18]).StringUtils.appendParams(v.baseUrl(o),c)}},{key:"getDownloadPdfUrl",value:function(t,r){var n,s,l,i,o,c,p,f,P,w,h,y;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.getIssue(),s=t.getEdition(),l=t.getSecret(),i=r.getFilename(),o=r.getPage(),c=g.getActivePSetup(),p=c.loginStatus,f=p.TAUID,P=p.TOKEN,w=p.oneTimeToken,h=(0,a.default)({},u.default.getDefaultParams(),v.getDefaultGETParams(),{action:"page",issue:n,edition:s,page:o,TAUID:f,TOKEN:P,oneTimeToken:w,uAVCC:p.getReceiptToken()},v.getResourceCDNParams(l,"filename",[i])),y=_r(d[18]).StringUtils.appendParams(v.baseUrl(),h),e.abrupt("return",y);case 10:case"end":return e.stop()}},null,null,null,Promise)}},{key:"downloadPDF",value:function(t,a){var r,n,u,s,p,f,P,w;return e.default.async(function(h){for(;;)switch(h.prev=h.next){case 0:return h.prev=0,r=g.getActivePSetup(),n=r.paperName,n=i.default.normalizePaperName(n),u=t.getIssue(),s=o.default.removeZerosFromPageNumber(a.getPage()),h.next=7,e.default.awrap(v.getDownloadPdfUrl(t,a));case 7:return p=h.sent,f=n+"_"+u+"_"+s+".pdf",P=c.default.getDownloadedPdfDirectory()+"/"+f,h.next=12,e.default.awrap(c.default.exists(P));case 12:if(h.sent){h.next=18;break}return h.next=15,e.default.awrap(l.default.downloadResourceInFolder(p,c.default.getDownloadedPdfDirectory()+"/",f));case 15:w=h.sent,h.next=19;break;case 18:w=P;case 19:return h.abrupt("return",{path:w,name:f,url:p});case 22:throw h.prev=22,h.t0=h.catch(0),h.t0;case 25:case"end":return h.stop()}},null,null,[[0,22]],Promise)}},{key:"uploadSessionReport",value:function(t,a){var r,n,u,s;return e.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,r=g.getActivePSetup(),n=r.sessionUploadBaseURL,u=n||v.baseUrl(),s=JSON.stringify(a.getReport()),l.next=6,e.default.awrap(v.post(u,{action:"uploadSessionReport"},{sessionId:t,report:s}));case 6:return l.abrupt("return",!0);case 9:l.prev=9,l.t0=l.catch(0);case 11:return l.abrupt("return",!1);case 12:case"end":return l.stop()}},null,null,[[0,9]],Promise)}},{key:"getVideoURL",value:function(e){var t=s.default.getSafeArea(),r=t.width,n=t.height,l=(0,a.default)({},u.default.getDefaultParams(),v.getDefaultGETParams(),{action:"video",videoURL:_r(d[18]).StringUtils.appendParams(e,{width:Math.min(r,n)})});return _r(d[18]).StringUtils.appendParams(v.baseUrl(),l)}},{key:"getCMPBaseURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.default)({},u.default.getDefaultParams(),{action:"cmp"},e);return _r(d[18]).StringUtils.appendParams(v.baseUrl(),t)}},{key:"getCMPVendorListUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.default)({version:s.default.getAppVersion(),action:"cmpVendorList",cc:1,mtime:0},e),r=g,n=r.isApiDebug,u=r.developer;n&&(t.isDebug=n,t.developer=u);var l=g.getNewsmemoryConfig().cdnVersion;void 0!==l&&(t.v=l);var o=i.default.isCDNEnabled();return _r(d[18]).StringUtils.appendParams(v.baseUrl(o),t)}},{key:"getCMPVendorList",value:function(){var t,a,r=arguments;return e.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=r.length>0&&void 0!==r[0]?r[0]:{},n.prev=1,n.next=4,e.default.awrap(u.default.get(v.getCMPVendorListUrl(t),{},{},!0));case 4:return a=n.sent,n.abrupt("return",a.data);case 8:n.prev=8,n.t0=n.catch(1);case 10:return n.abrupt("return",{});case 11:case"end":return n.stop()}},null,null,[[1,8]],Promise)}},{key:"validateReceipt",value:function(){var t,a,r,n,s=arguments;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},a=g.getActivePSetup(),r=a.loginStatus,n=r.TAUID,_r(d[18]).JSUtils.isNull(t.TAUID)&&_r(d[21]).LoginStatus.isValidTAUID(n)&&(t.TAUID=n),e.abrupt("return",u.default.validateReceipt(t));case 5:case"end":return e.stop()}},null,null,null,Promise)}},{key:"customFonts",value:function(r){var n,s,l,i,o,c;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return n=r.pSetup,s=r.machine,l=r.cdnServer,i=r.mtime,o=(0,t.default)(r,["pSetup","machine","cdnServer","mtime"]),c=(0,a.default)({},u.default.getDefaultParams(!0,!0),{pSetup:n,action:"fonts",cc:1,mtime:i},o),e.abrupt("return",u.default.get(u.default.baseUrl(l||s),{},c,!0));case 3:case"end":return e.stop()}},null,null,null,Promise)}}]),v})();_e.default=w},430,[5,80,108,6,7,8,431,458,588,605,746,576,747,646,748,752,753,754,462,590,589,758]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.HTTP_CODES=e.MAX_RETRIES=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),o=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),p=o.default.create();e.MAX_RETRIES=3;var v={PARTIAL_CONTENT:206,UNAUTHORIZED:401,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504};e.HTTP_CODES=v;var h=(function(){function o(){(0,l.default)(this,o)}return(0,s.default)(o,null,[{key:"setReadAndNetworkTimeouts",value:function(t,n){p.defaults.timeout=n,f.default.networkTimeout=n,f.default.readTimeout=r(d[9]).PlatformUtils.isAndroid()?t:n}},{key:"set2GTimeout",value:function(){o.timeout=o.DEFAULT_CONNECTION_TIMEOUT_2G,o.readTimeout=o.DEFAULT_READ_TIMEOUT_2G,o.setReadAndNetworkTimeouts(o.readTimeout,o.timeout)}},{key:"set3GTimeout",value:function(){o.timeout=o.DEFAULT_CONNECTION_TIMEOUT_3G,o.readTimeout=o.DEFAULT_READ_TIMEOUT_3G,o.setReadAndNetworkTimeouts(o.readTimeout,o.timeout)}},{key:"set4GTimeout",value:function(){o.timeout=o.DEFAULT_CONNECTION_TIMEOUT_4G,o.readTimeout=o.DEFAULT_READ_TIMEOUT_4G,o.setReadAndNetworkTimeouts(o.readTimeout,o.timeout)}},{key:"setTimeout",value:function(){r(d[9]).NetworkUtils.is2G()?o.set2GTimeout():r(d[9]).NetworkUtils.is3G()?o.set3GTimeout():(r(d[9]).NetworkUtils.is4G(),o.set4GTimeout())}},{key:"getServer",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getAppServer();return r(d[9]).NetworkUtils.addDefaultProtocol(t.trim())}},{key:"baseUrl",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getAppServer();return o.getServer(t).concat("/default_react_native.php")}},{key:"getDefaultParams",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=g,s=l.getAppPSetup,f=l.isApiDebug,p=l.developer,v={};return f&&(v.isDebug=f,v.developer=p),(0,u.default)({pSetup:s()},n?{}:o.getUserParams(),t?{}:o.getDeviceParams(),{version:c.default.getAppVersion()},v)}},{key:"getUserParams",value:function(){return{MACHINEID:g.machineId,t:(new Date).getTime()}}},{key:"getDeviceParams",value:function(){return{os:r(d[9]).PlatformUtils.isAndroid()?"android":"ios",isEInk:r(d[9]).PlatformUtils.isEInk()?1:void 0,isKindle:c.default.isKindle()?1:void 0,isPhone:r(d[9]).PlatformUtils.isTablet()?0:1,apiVersion:r(d[9]).PlatformUtils.getSystemSDK()}}},{key:"head",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p.head(n));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"ajax",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p.get(n));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"get",value:function(n){var l,s,c,f,v,h=arguments;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return l=h.length>1&&void 0!==h[1]?h[1]:{},s=h.length>2&&void 0!==h[2]?h[2]:{},c=h.length>3&&void 0!==h[3]&&h[3],f=h.length>4&&void 0!==h[4]?h[4]:{},v=s,c||(v=(0,u.default)({},o.getDefaultParams(),v)),T.prev=6,T.next=9,t.default.awrap(p.get(n,(0,u.default)({headers:(0,u.default)({"User-Agent":r(d[9]).PlatformUtils.getUserAgent()},f)},l,{params:v,paramsSerializer:r(d[9]).StringUtils.getQuerystring})));case 9:return T.abrupt("return",T.sent);case 12:throw T.prev=12,T.t0=T.catch(6),T.t0;case 15:case"end":return T.stop()}},null,null,[[6,12]],Promise)}},{key:"post",value:function(n){var l,s,c,f,v,h,T=arguments;return t.default.async(function(P){for(;;)switch(P.prev=P.next){case 0:return l=T.length>1&&void 0!==T[1]?T[1]:{},s=T.length>2&&void 0!==T[2]?T[2]:{},c=T.length>3&&void 0!==T[3]&&T[3],f=T.length>4&&void 0!==T[4]?T[4]:{},v=s,c||(v=(0,u.default)({},o.getDefaultParams(),v)),h=r(d[9]).StringUtils.getQuerystring(v),P.prev=7,P.next=10,t.default.awrap(p.post(n,h,(0,u.default)({headers:(0,u.default)({Accept:"application/x-www-form-urlencoded","User-Agent":r(d[9]).PlatformUtils.getUserAgent()},f)},l)));case 10:return P.abrupt("return",P.sent);case 13:throw P.prev=13,P.t0=P.catch(7),P.t0;case 16:case"end":return P.stop()}},null,null,[[7,13]],Promise)}},{key:"remp",value:function(n,u){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o.get(n,{},u));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"rssIndex",value:function(l){var s,c,f,p,v;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.customUrl,c=l.pSetup,f=l.machine,p=(0,n.default)(l,["customUrl","pSetup","machine"]),v={},s||(v=(0,u.default)({action:"RSSindex",pSetup:c},p)),t.abrupt("return",o.get(s||o.baseUrl(f),{responseType:"text"},v));case 4:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getWithParams",value:function(n){var u,l,s,c=arguments;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return u=c.length>1&&void 0!==c[1]?c[1]:{},l=c.length>2?c[2]:void 0,s=c.length>3&&void 0!==c[3]&&c[3],t.abrupt("return",o.get(o.baseUrl(l),u,n,s));case 4:case"end":return t.stop()}},null,null,null,Promise)}},{key:"cities",value:function(n){var u;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return u=n.wording,t.abrupt("return",o.getWithParams({action:"utilscities",wording:u}));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"closestCities",value:function(n){var u,l;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return u=n.lat,l=n.lon,t.abrupt("return",o.getWithParams({action:"utilsclosestcity",lat:u,lon:l}));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deleteDeviceToPushServer",value:function(l){var s,c;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.token,c=(0,n.default)(l,["token"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"push_deletion_service",package_id:r(d[9]).PlatformUtils.getPackagedId(),reg_id:s},c)));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"registerDeviceToPushServer",value:function(l){var s,c;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.token,c=(0,n.default)(l,["token"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"push_registration_service",package_id:r(d[9]).PlatformUtils.getPackagedId(),reg_id:s},c)));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"notices",value:function(){var l,s,c,f=arguments;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return l=f.length>0&&void 0!==f[0]?f[0]:{},s=l.machine,c=(0,n.default)(l,["machine"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"advertisements"},c),{},s));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"noticeURI",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},l=t.machine,s=(0,n.default)(t,["machine"]);return r(d[9]).StringUtils.appendParams(o.baseUrl(l),(0,u.default)({},o.getDefaultParams(),{action:"notices"},s))}},{key:"sslCertificatesURI",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,l=!!n;return r(d[9]).StringUtils.appendParams(o.baseUrl(n),(0,u.default)({},o.getDefaultParams(l,l),t,{os:"android",action:"certificates"}))}},{key:"pSetup",value:function(l){var s,f;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.machine,f=(0,n.default)(l,["machine"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"message",bundleVersion:c.default.getBundleVersion(),inches:r(d[9]).PlatformUtils.getScreenInches(),device:r(d[9]).PlatformUtils.getDeviceId(),isAddon:g.isTaAddon()?1:void 0},f),{responseType:"text"},s));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getBundleDownloadUrl",value:function(){var t=o.getDefaultParams();return t.action="getBundle",t.bundleVersion=c.default.getBundleVersion(),r(d[9]).StringUtils.appendParams(o.baseUrl(),t)}},{key:"customLanguagePack",value:function(l){var s,c;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.machine,c=(0,n.default)(l,["machine"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"locale"},c),{},s));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"checkConfigUpdate",value:function(l){var s,c;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.machine,c=(0,n.default)(l,["machine"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"checkconfigupdate"},c),{},s));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getConfig",value:function(l){var s,c;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return s=l.machine,c=(0,n.default)(l,["machine"]),t.abrupt("return",o.getWithParams((0,u.default)({action:"config"},c),{},s));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getAppStoreMetadata",value:function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o.getWithParams({action:"appstoremetadata",bundleId:r(d[9]).PlatformUtils.getPackagedId()}));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getGoogleAccessToken",value:function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",o.getWithParams({action:"getGoogleToken"}));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"validateReceipt",value:function(){var n,l=arguments;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=l.length>0&&void 0!==l[0]?l[0]:{},t.abrupt("return",o.post(r(d[9]).StringUtils.appendParams(o.baseUrl(),(0,u.default)({},o.getDefaultParams(),{action:"validatereceipt"})),{},n,!0));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getMaster",value:function(){var t=g.getAppServer();if(r(d[9]).StringUtils.isTecnaviaDomain(t)){var n=t.replace(/https?:\/\//,"").split(/(?:-|\.)(?!com)/);n.length>3&&(5===n.length&&n.splice(0,1),n[0]="server",4===n.length&&(n[3]="admin."+n[3],n.splice(2,1)),t=n.join(g.isHTTPS()?"-":"."))}return t}},{key:"sendLogToServer",value:function(){var n;return t.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return n=r(d[9]).StringUtils.appendParams(o.baseUrl(o.getMaster()),(0,u.default)({},o.getDefaultParams(),{action:"upload_log"})),l.prev=1,l.next=4,t.default.awrap(f.default.post(n,{name:"uploadedfile",filename:r(d[9]).Logger.logSessionFileName,type:"text/plain",data:f.default.wrap(r(d[10]).LOG_BASE_PATH+"/"+r(d[9]).Logger.logSessionFileName)}));case 4:return l.abrupt("return",!0);case 7:return l.prev=7,l.t0=l.catch(1),l.abrupt("return",!1);case 10:case"end":return l.stop()}},null,null,[[1,7]],Promise)}},{key:"sendLog",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t.default.awrap(o.sendLogToServer());case 2:return n=u.sent,u.next=5,t.default.awrap(r(d[9]).Logger.deleteLogFile());case 5:return u.next=7,t.default.awrap(r(d[9]).Logger.createNewSessionLog());case 7:return u.abrupt("return",n);case 8:case"end":return u.stop()}},null,null,null,Promise)}},{key:"requestWithRetry",value:function(n){var u,l,s,o,c,f,p,h,T,P,U=arguments;return t.default.async(function(y){for(;;)switch(y.prev=y.next){case 0:for(u=n.request,l=n.onRetry,s=n.maxRetries,o=void 0===s?3:s,f=0,p=U.length,h=new Array(p>1?p-1:0),T=1;T0&&l&&l(f,o),y.next=7,t.default.awrap(u.apply(void 0,h));case 7:P=y.sent,c=P.data,y.next=15;break;case 11:if(y.prev=11,y.t0=y.catch(3),!y.t0.response||y.t0.response.status!==v.UNAUTHORIZED){y.next=15;break}throw y.t0;case 15:f+=1;case 16:if(!c&&f=200&&e<300}};o.headers={common:{Accept:'application/json, text/plain, */*'}},r(d[0]).forEach(['delete','get','head'],function(e){o.headers[e]={}}),r(d[0]).forEach(['post','put','patch'],function(t){o.headers[t]=r(d[0]).merge(e)}),m.exports=o},441,[436,442,442,453]); -__d(function(g,r,i,a,m,_e,d){'use strict';m.exports=function(e){return new Promise(function(t,o){var s=e.data,n=e.headers;r(d[0]).isFormData(s)&&delete n['Content-Type'];var u=new XMLHttpRequest;if(e.auth){var l=e.auth.username||'',p=e.auth.password||'';n.Authorization='Basic '+btoa(l+':'+p)}var f=r(d[1])(e.baseURL,e.url);if(u.open(e.method.toUpperCase(),r(d[2])(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,u.onreadystatechange=function(){if(u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf('file:'))){var s='getAllResponseHeaders'in u?r(d[3])(u.getAllResponseHeaders()):null,n={data:e.responseType&&'text'!==e.responseType?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:s,config:e,request:u};r(d[4])(t,o,n),u=null}},u.onabort=function(){u&&(o(r(d[5])('Request aborted',e,'ECONNABORTED',u)),u=null)},u.onerror=function(){o(r(d[5])('Network Error',e,null,u)),u=null},u.ontimeout=function(){var t='timeout of '+e.timeout+'ms exceeded';e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),o(r(d[5])(t,e,'ECONNABORTED',u)),u=null},r(d[0]).isStandardBrowserEnv()){var c=r(d[6]),h=(e.withCredentials||r(d[7])(f))&&e.xsrfCookieName?c.read(e.xsrfCookieName):void 0;h&&(n[e.xsrfHeaderName]=h)}if('setRequestHeader'in u&&r(d[0]).forEach(n,function(e,t){void 0===s&&'content-type'===t.toLowerCase()?delete n[t]:u.setRequestHeader(t,e)}),r(d[0]).isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),e.responseType)try{u.responseType=e.responseType}catch(t){if('json'!==e.responseType)throw t}'function'==typeof e.onDownloadProgress&&u.addEventListener('progress',e.onDownloadProgress),'function'==typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener('progress',e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then(function(e){u&&(u.abort(),o(e),u=null)}),void 0===s&&(s=null),u.send(s)})}},442,[436,443,446,447,448,449,451,452]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,n){return t&&!r(d[0])(n)?r(d[1])(t,n):n}},443,[444,445]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},444,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,c){return c?t.replace(/\/+$/,'')+'/'+c.replace(/^\/+/,''):t}},445,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function n(n){return encodeURIComponent(n).replace(/%40/gi,'@').replace(/%3A/gi,':').replace(/%24/g,'$').replace(/%2C/gi,',').replace(/%20/g,'+').replace(/%5B/gi,'[').replace(/%5D/gi,']')}m.exports=function(c,t,o){if(!t)return c;var f;if(o)f=o(t);else if(r(d[0]).isURLSearchParams(t))f=t.toString();else{var s=[];r(d[0]).forEach(t,function(c,t){null!==c&&void 0!==c&&(r(d[0]).isArray(c)?t+='[]':c=[c],r(d[0]).forEach(c,function(c){r(d[0]).isDate(c)?c=c.toISOString():r(d[0]).isObject(c)&&(c=JSON.stringify(c)),s.push(n(t)+'='+n(c))}))}),f=s.join('&')}if(f){var l=c.indexOf('#');-1!==l&&(c=c.slice(0,l)),c+=(-1===c.indexOf('?')?'?':'&')+f}return c}},446,[436]); -__d(function(g,r,_i,a,m,e,d){'use strict';var t=['age','authorization','content-length','content-type','etag','expires','from','host','if-modified-since','if-unmodified-since','last-modified','location','max-forwards','proxy-authorization','referer','retry-after','user-agent'];m.exports=function(i){var o,n,f,s={};return i?(r(d[0]).forEach(i.split('\n'),function(i){if(f=i.indexOf(':'),o=r(d[0]).trim(i.substr(0,f)).toLowerCase(),n=r(d[0]).trim(i.substr(f+1)),o){if(s[o]&&t.indexOf(o)>=0)return;s[o]='set-cookie'===o?(s[o]?s[o]:[]).concat([n]):s[o]?s[o]+', '+n:n}}),s):s}},447,[436]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,s,u){var n=u.config.validateStatus;!n||n(u.status)?t(u):s(r(d[0])('Request failed with status code '+u.status,u.config,null,u.request,u))}},448,[449]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n,t,o,u,c){var s=new Error(n);return r(d[0])(s,t,o,u,c)}},449,[450]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(s,t,n,o,c){return s.config=t,n&&(s.code=n),s.request=o,s.response=c,s.isAxiosError=!0,s.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},s}},450,[]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0]).isStandardBrowserEnv()?{write:function(n,t,o,u,s,c){var p=[];p.push(n+'='+encodeURIComponent(t)),r(d[0]).isNumber(o)&&p.push('expires='+new Date(o).toGMTString()),r(d[0]).isString(u)&&p.push('path='+u),r(d[0]).isString(s)&&p.push('domain='+s),!0===c&&p.push('secure'),document.cookie=p.join('; ')},read:function(n){var t=document.cookie.match(new RegExp('(^|;\\s*)('+n+')=([^;]*)'));return t?decodeURIComponent(t[3]):null},remove:function(n){this.write(n,'',Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},451,[436]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0]).isStandardBrowserEnv()?(function(){var t,o=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement('a');function h(t){var h=t;return o&&(n.setAttribute('href',h),h=n.href),n.setAttribute('href',h),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,''):'',host:n.host,search:n.search?n.search.replace(/^\?/,''):'',hash:n.hash?n.hash.replace(/^#/,''):'',hostname:n.hostname,port:n.port,pathname:'/'===n.pathname.charAt(0)?n.pathname:'/'+n.pathname}}return t=h(window.location.href),function(o){var n=r(d[0]).isString(o)?h(o):o;return n.protocol===t.protocol&&n.host===t.host}})():function(){return!0}},452,[436]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t,o){r(d[0]).forEach(t,function(n,c){c!==o&&c.toUpperCase()===o.toUpperCase()&&(t[o]=n,delete t[c])})}},453,[436]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(t){return!(!t||!t.__CANCEL__)}},454,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function t(t){this.message=t}t.prototype.toString=function(){return'Cancel'+(this.message?': '+this.message:'')},t.prototype.__CANCEL__=!0,m.exports=t},455,[]); -__d(function(g,r,i,a,m,e,d){'use strict';function n(n){if('function'!=typeof n)throw new TypeError('executor must be a function.');var o;this.promise=new Promise(function(n){o=n});var t=this;n(function(n){t.reason||(t.reason=new(r(d[0]))(n),o(t.reason))})}n.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},n.source=function(){var o;return{token:new n(function(n){o=n}),cancel:o}},m.exports=n},456,[455]); -__d(function(g,r,i,a,m,e,d){'use strict';m.exports=function(n){return function(t){return n.apply(null,t)}}},457,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[3]),s=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=(function(){function u(){(0,t.default)(this,u)}return(0,n.default)(u,null,[{key:"isHuawei",value:function(){return g.isHuawei}},{key:"isKindle",value:function(){return g.isKindle}},{key:"getAppVersion",value:function(){return g.appVersionName}},{key:"getBundleVersion",value:function(){return r(d[6]).bundleVersion}},{key:"getAppCode",value:function(){return g.appVersionCode}},{key:"isUsingHermes",value:function(){return!!g.HermesInternal}},{key:"setScreenDimensions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.width,s=t.height,l=t.orientation,c=void 0===l?r(d[7]).PlatformUtils.getStartupOrientation():l,f=t.fullOrientation,v=void 0===f?g.initialOrientation:f,h=t.locked,p=void 0!==h&&h,A=t.lockedOrientation,k=void 0===A?r(d[7]).PlatformUtils.getStartupOrientation():A,D={},S=o.Dimensions.get("window"),y=S.width,T=S.height,O=o.Dimensions.get("screen"),w=O.width,b=O.height;u.isPortrait(c)?(D.width=n||Math.min(w,b),D.height=s||Math.max(y,T),D.isPortrait=!0):(D.width=n||Math.max(y,T),D.height=s||Math.min(y,T),D.isPortrait=!1);var I=!r(d[7]).JSUtils.areEqualShallow(u.screenDimensions,D);u.currentOrientation=c,u.currentFullOrientation=v||c,u.screenDimensions=D,u.orientationIsLocked=p,u.lockedOrientation=k;var P=r(d[7]).PlatformUtils.isIOS()&&!r(d[7]).PlatformUtils.isTablet()&&!u.isPortrait();return r(d[7]).PlatformUtils.setStatusBarHidden(P),I}},{key:"getScreenDimensions",value:function(){return u.screenDimensions}},{key:"setSafeArea",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.insets,n=arguments.length>1?arguments[1]:void 0;u.safeAreaEventCoolDown&&(clearTimeout(u.safeAreaEventCoolDown),u.safeAreaEventCoolDown=void 0),t&&(u.safeAreaEventCoolDown=setTimeout(function(){var o=t.top,s=t.bottom,c=t.left,f=t.right;u.insets=t;var v=n||u.screenDimensions,h={width:v.width-c-f,height:v.height-o-s};u.safeArea&&r(d[7]).JSUtils.areEqualShallow(h,u.safeArea)||(u.safeArea=h,r(d[8]).EventRegister.emit(l.default.ON_SAFE_AREA_CHANGE))},u.SAFE_AREA_CHANGE_COOL_DOWN_MILLISECS))}},{key:"setSafeAreaFromScreenDimensions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.insets,n=t.top,o=t.bottom,s=t.left,l=t.right,c=u.screenDimensions,f={width:c.width-s-l,height:c.height-n-o};u.safeArea=f}},{key:"getSafeArea",value:function(){var t=u.screenDimensions,n=t.width,o=t.height;return g.appNeedsSafeArea()&&u.safeArea?u.safeArea:{width:n,height:o}}},{key:"getSafeAreaWidth",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.insets;return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.screenDimensions).width-t.left-t.right}},{key:"getSafeAreaInsets",value:function(){return u.insets}},{key:"isPortrait",value:function(t){return t?r(d[7]).PlatformUtils.isPortrait(t):void 0===u.screenDimensions.isPortrait||u.screenDimensions.isPortrait}},{key:"getCurrentOrientation",value:function(){return u.currentOrientation}},{key:"getCurrentFullOrientation",value:function(){return u.currentFullOrientation||u.currentOrientation}},{key:"getTextVersionName",value:function(){return r(d[7]).PlatformUtils.isIOS()?g.appVersionName:g.appVersionName!==g.androidVersionName&&g.androidVersionName?g.androidVersionName+" ("+g.appVersionName+")":g.appVersionName}},{key:"setAppearance",value:function(t){u.currentTheme=t}},{key:"getAppearance",value:function(){return u.currentTheme}},{key:"isDark",value:function(){return"dark"===u.currentTheme}},{key:"setCurrentAppState",value:function(t){u.currentAppState=t}},{key:"getCurrentAppState",value:function(){return u.currentAppState}},{key:"isAppActive",value:function(){return"active"===u.currentAppState}},{key:"isAppInBackground",value:function(){return"background"===u.currentAppState}},{key:"getReferenceDpi",value:function(){var t=g.getActivePSetup().deviceDpi;return r(d[7]).PlatformUtils.isIOS()&&t?t/r(d[7]).PlatformUtils.info.pixelRatio:r(d[7]).PlatformUtils.defaultDpi}},{key:"enableIdleTimer",value:function(){u.idleTimerDisabled&&(s.default.setIdleTimerDisabled(!1),u.idleTimerDisabled=!1)}},{key:"disableIdleTimer",value:function(){u.idleTimerDisabled||(s.default.setIdleTimerDisabled(!0),u.idleTimerDisabled=!0)}},{key:"isIdleTimerDisabled",value:function(){return u.idleTimerDisabled}},{key:"delayIdleTimer",value:function(t){u.disableIdleTimer(),u.idleScreenTimerDelay&&u.idleScreenTimerDelay.stop(),u.idleScreenTimerDelay=new(r(d[7]).LongTimer)(t,u.enableIdleTimer).start()}}]),u})();e.default=u,u.SAFE_AREA_CHANGE_COOL_DOWN_MILLISECS=250,u.screenDimensions={},u.insets={top:0,bottom:0,left:0,right:0},u.orientationIsLocked=!1,u.idleTimerDisabled=!1},458,[5,7,8,28,459,460,461,462,574]); -__d(function(g,r,i,a,m,e,d){'use strict';var t=r(d[0]).NativeModules;m.exports=t.IdleTimerManager},459,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var _=r(d[0])(r(d[1])),E=function E(){(0,_.default)(this,E)};e.default=E,E.LIVE_CONFIG_SET_VALUE="live_config_set_value",E.LIVE_CONFIG_GET_VALUE="live_config_get_value",E.TOGGLE_LAYOUT="toggle_layout",E.TOGGLE_DRAWER_ITEM="toggle_drawer_item",E.SYSTEM_FONT_SIZE_CHANGED="system_font_size_changed",E.TOGGLE_FULLSCREEN_FONT_SIZE="toggle_fullscreen_font_size",E.TOGGLE_NEWSMEMORY_GRAPH_SIZE="toggle_newsmemory_graph_size",E.TOGGLE_THEME="toggle_theme",E.GALLERY_THUMBNAIL_CLICK="gallery_thumbnail_click",E.GALLERY_VIEWPAGER_SCROLL="gallery_viewpager_scroll",E.TOGGLE_FAVORITE="toggle_favorite",E.CLEAR_FAVORITES="clear_favorites",E.PAYWALL_GO_BACK_HOME="paywall_go_back_home",E.PAYWALL_OPEN_WEBSCREEN="paywall_open_webscreen",E.PAYWALL_USER_STATUS_UPDATE="paywall_user_status_update",E.PAYWALL_OPEN_NEWSMEMORY_OPTIONSPAGE="paywall_open_newsmemory_optionspage",E.PAYWALL_OPEN_POPUP="paywall_open_popup",E.PAYWALL_VALIDATE="paywall_validate",E.PAYWALL_LOGOUT="paywall_logout",E.ON_ACCESSIBILITY_MODE_CHANGE="on_accessibility_mode_change",E.TRIGGER_RSS_DB_UPDATE="triggerRssDbUpdate",E.ON_RSS_DB_DOWNLOAD="onRssDbDownload",E.ON_RSS_BASE_SCREEN_BLUR="onRssBaseScreenBlur",E.TOGGLE_JOB_FAVORITE="toggle_job_favorite",E.TOGGLE_JOB_SEARCH="toggle_job_search",E.TOGGLE_REAL_ESTATE_FAVORITE="toggle_real_estate_favorite",E.TOGGLE_REAL_ESTATE_SEARCH="toggle_real_estate_search",E.TOGGLE_AUTO_FAVORITE="toggle_auto_favorite",E.TOGGLE_AUTO_SEARCH="toggle_auto_search",E.TOGGLE_EVENTS_FAVORITE="toggle_events_favorite",E.TOGGLE_EVENTS_SEARCH="toggle_events_search",E.TOGGLE_FOOTER_VISIBILITY="toggle_footer_visibility",E.RSS_ACTIVE_SCREEN="rss_active_screen",E.LIST_VERTICAL_SCROLLING="list_vertical_scrolling",E.FOOTER_ITEM_CLICK="footer_item_click",E.TTS_ENGINE_STARTED="tts_start",E.TTS_ENGINE_PROGRESS="tts_progress",E.TTS_ENGINE_STOPPED="tts_stop",E.TOGGLE_ARTICLE_GRAPHIC="toggle_article_graphic",E.TOGGLE_ARTICLE_TEXT="toggle_article_text",E.ENABLE_ARTICLE_EXTRA="enable_article_extra",E.DISABLE_ARTICLE_EXTRA="disable_article_extra",E.TOGGLE_ARTICLE_EXTRA_CHANGE_BUTTON_VISIBILITY="toggle_article_extra_change_button_visibility",E.ARTICLE_GRAPHIC_ZOOM_CHANGE="article_graphic_zoom_change",E.ARTICLE_GRAPH_ZOOM_UNFIT="article_graphic_zoom_unfit",E.ARTICLE_TEXT_ZOOM_CHANGE="article_text_zoom_change",E.ARTICLE_SCROLL_LAYOUT="article_scroll_layout",E.ARTICLE_SCROLL="article_scroll",E.LOAD_NATIVE_ADS="load_native_ads",E.ON_COLOR_CHANGE="on_color_change",E.ON_ORIENTATION_CHANGE="on_orientation_change",E.ON_SAFE_AREA_CHANGE="on_safe_area_change",E.ON_SAFE_AREA_COLOR_CHANGE="on_safe_area_color_change",E.ON_CONNECTIVITY_CHANGE="on_connectivity_change",E.NEWSMEMORY_FOOTER_BUTTON_HIDE="on_newsmemory_footer_button_hide",E.NEWSMEMORY_FOOTER_BUTTON_HIDE_STARTUP="on_newsmemory_footer_button_hide_startup",E.NEWSMEMORY_FOOTER_BUTTON_SHOW="on_newsmemory_footer_button_show",E.NEWSMEMORY_FOOTER_TOGGLE_VISIBILITY="newsmemory_footer_toggle_visibility",E.ON_NEWSMEMORY_FOOTER_BUTTON_ACTIVE="on_newsmemory_footer_button_active",E.ON_NEWSMEMORY_FOOTER_BUTTON_INACTIVE="on_newsmemory_footer_button_inactive",E.TOGGLE_FONT_CHANGE_BUTTON_VISIBILITY="toggle_font_change_button_visibility",E.TOGGLE_GRAPH_CHANGE_BUTTON_VISIBILITY="toggle_graph_change_button_visibility",E.TOGGLE_GRAPH_UNFIT_CHANGE_BUTTON_VISIBILITY="toggle_graph_unfit_change_button_visibility",E.TRANSLATE_CHANGE_BUTTON_VISIBILITY="translate_change_button_visibility",E.TRANSLATE_CHANGE_BUTTON_BADGE="translate_change_button_badge",E.TTS_CHANGE_BUTTON_VISIBILITY="tts_change_button_visibility",E.SHARE_CHANGE_BUTTON_VISIBILITY="share_change_button_visibility",E.TOGGLE_GRAPHIC_CHANGE_BUTTON_VISIBILITY="toggle_graphic_change_button_visibility",E.NEWSMEMORY_TOGGLE_FIT="newsmemory_toggle_fit",E.NEWSMEMORY_REQUEST_DOWNLOAD_IMAGE="newsmemory_request_download_image",E.NEWSMEMORY_REQUEST_DOWNLOADED_IMAGE="newsmemory_request_downloaded_image",E.NEWSMEMORY_SAVE_HR="newsmemory_save_hr",E.NEWSMEMORY_REQUEST_DOWNLOAD_HR="newsmemory_request_download_hr",E.NEWSMEMORY_HR_DOWNLOAD_ERROR="newsmemory_hr_download_error",E.NEWSMEMORY_HR_DOWNLOAD_SUCCESS="newsmemory_hr_download_success",E.NEWSMEMORY_MISSING_HR_WARNING_SHOW="newsmemory_missing_hr_show",E.NEWSMEMORY_MISSING_HR_WARNING_HIDE="newsmemory_missing_hr_hide",E.NEWSMEMORY_DOWNLOAD_EDITION="newsmemory_download_edition",E.NEWSMEMORY_RELOAD_EDITION="newsmemory_reload_edition",E.NEWSMEMORY_DOWNLOAD_LATEST_EDITION="newsmemory_download_latest_edition",E.NEWSMEMORY_DB_DOWNLOAD_STARTED="db_download_started",E.NEWSMEMORY_DB_DOWNLOAD_PROGRESS="db_download_progress",E.NEWSMEMORY_DB_DOWNLOAD_FINISHED="db_download_finished",E.NEWSMEMORY_DB_DOWNLOAD_RETRY="db_download_retry",E.NEWSMEMORY_ON_EXTRA_GO_TO_PAGE_PRESS="newsmemory_on_extra_go_to_page_press",E.NEWSMEMORY_SHOW_EXTRA="newsmemory_show_extra",E.NEWSMEMORY_HIDE_EXTRA="newsmemory_hide_extra",E.NEWSMEMORY_NEWSPAPER_LOADING="newsmemory_newspaper_loading",E.NEWSMEMORY_NEWSPAPER_LOADED="newsmemory_newspaper_loaded",E.NEWSMEMORY_NEWSPAPER_CHANGED="newsmemory_newspaper_changed",E.NEWSMEMORY_LOGIN_CHECK_STARTED="newsmemory_login_check_started",E.NEWSMEMORY_LOGIN_CHECK_ENDED="newsmemory_login_check_ended",E.NEWSMEMORY_DOWNLOAD_PROGRESS="download_progress",E.NEWSMEMORY_INITIAL_DOWNLOAD_STARTED="initial_download_started",E.NEWSMEMORY_INITIAL_DOWNLOAD_FINISHED="initial_download_finished",E.NEWSMEMORY_DOWNLOAD_FULL_EDITION="newsmemory_download_full_edition",E.NEWSMEMORY_FULL_DOWNLOAD_STARTED="full_download_started",E.NEWSMEMORY_FULL_DOWNLOAD_PROGRESS="full_download_progress",E.NEWSMEMORY_FULL_DOWNLOAD_FINISHED="full_download_finished",E.NEWSMEMORY_UPDATE_REQUESTED="update_requested",E.NEWSMEMORY_UPDATE_STARTED="update_started",E.NEWSMEMORY_UPDATE_FINISHED="update_finished",E.NEWSMEMORY_CLEAR_HIGH_RES_QUEUE="clear_high_res_queue",E.NEWSMEMORY_RESTART_HIGH_RES_QUEUE="restart_high_res_queue",E.NEWSMEMORY_RESUME_HIGH_RES_QUEUE="resume_high_res_queue",E.NEWSMEMORY_PAUSE_HIGH_RES_QUEUE="pause_high_res_queue",E.NEWSMEMORY_VIEWPAGER_PAN_UP="newsmemory_viewpager_pan_up",E.NEWSMEMORY_VIEWPAGER_GESTURE_START="newsmemory_viewpager_gesture_start",E.NEWSMEMORY_VIEWPAGER_GESTURE_END="newsmemory_viewpager_gesture_end",E.OPEN_OPTIONSPAGE="open_optionspage",E.OPEN_OPTIONSPAGE_ACCESSIBILITY="open_optionspage_accessibility",E.OPEN_SETTINGS="open_settings",E.CLOSE_OPTIONSPAGE="close_optionspage",E.CLOSE_OPTIONSPAGE_ACCESSIBILITY="close_optionspage_accessibility",E.NEWSMEMORY_INDEX_CHANGE="newsmemory_index_change",E.NEWSMEMORY_ARTICLE_CHANGE="newsmemory_article_change",E.NEWSMEMORY_ARTICLE_JUMP="newsmemory_article_jump",E.NEWSMEMORY_ARTICLE_HIGHLIGHT="newsmemory_article_highlight",E.NEWSMEMORY_ARTICLE_CLOSE="newsmemory_article_close",E.NEWSMEMORY_SHOW_NAVIGATION_BUTTONS="newsmemory_show_navigation_buttons",E.NEWSMEMORY_RESET_NAVIGATION_BUTTONS_POSITION="newsmemory_reset_navigation_buttons_position",E.NEWSMEMORY_REMOVE_HIGHLIGHT="newsmemory_remove_highlight",E.NEWSMEMORY_GENERATE_PNG="newsmemory_generate_png",E.NEWSMEMORY_PNG_GENERATED="newsmemory_png_generated",E.NEWSMEMORY_CONFIG_CHANGE="newsmemory_config_change",E.NEWSMEMORY_ON_CLEAR_STORAGE="newsmemory_clear_storage",E.NEWSMEMORY_OPEN_OFFLINE_EDITION_MENU="newsmemory_open_offline_editions_menu",E.NEWSMEMORY_OPEN_SPECIAL_SECTION="newsmemory_open_special_section",E.NEWSMEMORY_ON_LOAD_MAIN_EDITION_FROM_SPECIAL="newsmemory_on_load_main_edition_from_special",E.NEWSMEMORY_ON_LOAD_SPECIAL="newsmemory_on_load_special",E.NEWSMEMORY_ON_ARTICLE_GRAPH_LOADED="newsmemory_on_article_graph_loaded",E.NEWSMEMORY_ON_ZOOM="newsmemory_on_zoom",E.NEWSMEMORY_ON_CLICK="newsmemory_on_click",E.NEWSMEMORY_ON_LONG_PRESS="newsmemory_on_long_press",E.NEWSMEMORY_DID_FOCUS="newsmemory_did_focus",E.NEWSMEMORY_CLOSE_CURRENT_DB="newsmemory_close_current_db",E.ON_STATE_CHANGE_GOING_FOREGROUND="on_state_change_going_foreground",E.ON_STATE_CHANGE_GOING_BACKGROUND="on_state_change_going_background",E.ON_STATE_CHANGE_GOING_INACTIVE="on_state_change_going_inactive",E.ON_THUMBNAIL_CLOSE="on_thumbnail_close",E.ON_CONNECTION_TYPE_CHANGE="on_connection_type_change",E.SWIPER_SCROLL_BEGIN="swiper_scroll_begin",E.SWIPER_SCROLL_END="swiper_scroll_end",E.CHANGE_ADS_VISIBILITY="change_ads_visibility",E.PAPER_SETUP_API_RETRY="paper_setup_api_retry",E.CONFIG_UPDATE_CHECK="config_update_check",E.CONFIG_FORCE_UPDATE="config_force_update",E.TRIGGER_NEWSMEMORY_RESTART="trigger_newsmemory_restart",E.ON_VOICE_RECOGNITION_START="on_voice_recognition_start",E.ON_VOICE_RECOGNITION="on_voice_recognition",E.ON_SIMULATE_ACCESSIBILITY_CHANGE="on_simulate_accessibility_change",E.ON_POSTPONE_ACTION="on_postpone_action",E.CUSTOM_WEBVIEW_CONTENT="custom_webview_content",E.ON_USER_INTERACT="on_user_interact"},460,[5,7]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.bundleVersion=void 0;e.bundleVersion="001"},461,[]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"Logger",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(_e,"CmpStorage",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"ColorUtils",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"colors",{enumerable:!0,get:function(){return r.colors}}),Object.defineProperty(_e,"CssUtils",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"DateUtils",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"FileUtils",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"FontUtils",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"JSUtils",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(_e,"PromiseTimeout",{enumerable:!0,get:function(){return i.PromiseTimeout}}),Object.defineProperty(_e,"LocationMgr",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"LongTimer",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(_e,"NetworkUtils",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"PlatformUtils",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"StorageUtils",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(_e,"StringUtils",{enumerable:!0,get:function(){return y.default}});var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=P(_r(d[3])),n=_r(d[0])(_r(d[4])),u=_r(d[0])(_r(d[5])),o=_r(d[0])(_r(d[6])),f=_r(d[0])(_r(d[7])),i=P(_r(d[8])),l=_r(d[0])(_r(d[9])),a=_r(d[0])(_r(d[10])),c=_r(d[0])(_r(d[11])),b=_r(d[0])(_r(d[12])),p=_r(d[0])(_r(d[13])),y=_r(d[0])(_r(d[14]));function O(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(O=function(e){return e?r:t})(e)}function P(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=O(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n}},462,[5,463,542,501,556,525,464,557,503,559,564,565,514,544,495]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.LOG_BASE_PATH=void 0;var e=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),t=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),o=r(d[0])(r(d[6])),u=s.default.cacheDirectory+"/logs";_e.LOG_BASE_PATH=u;var c=(function(){function c(){(0,n.default)(this,c)}return(0,t.default)(c,null,[{key:"initFileName",value:function(e){var n=new Date,t=n.getUTCFullYear(),s=("0"+(n.getUTCMonth()+1)).slice(-2),l=("0"+n.getUTCDate()).slice(-2),o=("0"+n.getUTCHours()).slice(-2),u=("0"+n.getUTCMinutes()).slice(-2),f=("0"+n.getUTCSeconds()).slice(-2),p=("00"+n.getUTCMilliseconds()).slice(-3),v=e.replace(/ /g,"_").replace(/\./g,"_");c.logSessionFileName="rn_"+t+s+l+"_"+o+u+f+"_"+p+"_"+v+".txt"}},{key:"areLogsStored",value:function(){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){var n=setInterval(function(){c.insertQueue&&c.insertQueue.length||(clearInterval(n),n=void 0,e())},1e3)}));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"deleteLogFile",value:function(){return e.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return c.initializedLogSession=!1,n.prev=1,n.next=4,e.default.awrap(s.default.unlink(u));case 4:n.next=8;break;case 6:n.prev=6,n.t0=n.catch(1);case 8:case"end":return n.stop()}},null,null,[[1,6]],Promise)}},{key:"createLogsFolderIfNotExist",value:function(){return e.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.default.awrap(s.default.mkdir(u));case 3:n.next=7;break;case 5:n.prev=5,n.t0=n.catch(0);case 7:case"end":return n.stop()}},null,null,[[0,5]],Promise)}},{key:"createNewSessionLog",value:function(){var n;return e.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,o.default.model()&&(n=""+o.default.model().replace(/ /g,"_")),c.initializedLogSession){t.next=8;break}return t.next=5,e.default.awrap(c.deleteLogFile());case 5:return t.next=7,e.default.awrap(c.createLogsFolderIfNotExist());case 7:c.initFileName(n);case 8:c.initializedLogSession=!0,t.next=14;break;case 11:t.prev=11,t.t0=t.catch(0),c.initializedLogSession=!1;case 14:return t.abrupt("return",c.initializedLogSession);case 15:case"end":return t.stop()}},null,null,[[0,11]],Promise)}},{key:"appendLogToFile",value:function(n){return e.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,e.default.awrap(c.createNewSessionLog());case 3:if(!t.sent){t.next=7;break}c.insertTimeoutId&&(clearTimeout(c.insertTimeoutId),c.insertTimeoutId=void 0),c.insertQueue.push(n),c.insertTimeoutId=setTimeout(function(){s.default.appendFile(u+"/"+c.logSessionFileName,c.insertQueue.join("\n")),c.insertTimeoutId=void 0,c.insertQueue=[]},c.BULK_TIMEOUT);case 7:t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}},null,null,[[0,9]],Promise)}},{key:"log",value:function(e,n){switch(e){case"D":break;case"W":console.warn(n);break;case"E":console.error(n)}c.appendLogToFile(l.default.logTimestamp()+" "+n)}},{key:"argsToMessage",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).reduce(function(e,n){if("string"==typeof n||"number"==typeof n)return e+" "+n;try{return e+" "+JSON.stringify(n)}catch(n){return e}},"")}},{key:"debug",value:function(){if(c.enableLog){for(var e=arguments.length,n=new Array(e),t=0;t0));case 7:return r.prev=7,r.t1=r.catch(0),r.abrupt("return",!1);case 10:case"end":return r.stop()}},null,null,[[0,7]],Promise)}},{key:"unlink",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.default.unlink(t));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"mkdir",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.default.mkdir(t));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"appendFile",value:function(t,r){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.fs.appendFile(t,r,"utf8"));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"getFiles",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.fs.ls(t));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"copyFile",value:function(t,r){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.default.copyFile(t,r));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"moveFile",value:function(t,r,n){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.default.moveFile(t,r,n));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"assetPath",value:function(e){return a.default.fs.asset(e)}},{key:"readFileBase64",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.fs.readFile(t,"base64"));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"readFile",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.fs.readFile(t));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"write",value:function(t,r){var n,u=arguments;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return n=u.length>2&&void 0!==u[2]?u[2]:"utf8",e.abrupt("return",a.default.fs.writeFile(t,r,n));case 2:case"end":return e.stop()}},null,null,null,Promise)}},{key:"scanFile",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.fs.scanFile([{path:t}]));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"fetch",value:function(r){var n,a,l,c,f,p,y,v,h,k,b,x,w,P,D,F,T,C=arguments;return e.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:if(n=C.length>1&&void 0!==C[1]?C[1]:{},a=n.timeout,l=void 0===a?o.networkTimeout:a,c=n.readTimeout,f=void 0===c?o.readTimeout:c,p=n.startCallBack,y=n.progressCallback,v=n.cacheEnabled,h=void 0!==v&&v,k=n.requestHeaders,b=void 0===k?{}:k,O.prev=2,x=h?o.temporaryDirectory+"/"+s.default.getMd5(r):o.temporaryDirectory+"/"+s.default.getMd5(r+(new Date).getMilliseconds()),w=-1,P=-1,D={},F={readTimeout:f},i.default.isAndroid()&&(F.connectionTimeout=l),O.t0=!h,O.t0){O.next=14;break}return O.next=13,e.default.awrap(o.exists(x));case 13:O.t0=!O.sent;case 14:if(!O.t0){O.next=18;break}return T=u.default.downloadFile((0,t.default)({fromUrl:r,toFile:x,headers:b},F,{begin:function(e){var t=e.statusCode,r=e.contentLength,n=e.headers;P=t,n&&(D=n,!n["Content-Length"]&&n["Length-If-Chunked"]&&(w=parseInt(n["Length-If-Chunked"],10))),p&&p(Math.max(r,w))},progress:function(e){if(y){var t=e.contentLength,r=e.bytesWritten;-1===t&&(t=w),y(r,t)}}})),O.next=18,e.default.awrap(T.promise);case 18:return O.abrupt("return",{respInfo:{status:P,headers:D},path:function(){return x}});case 21:throw O.prev=21,O.t1=O.catch(2),O.t1;case 24:case"end":return O.stop()}},null,null,[[2,21]],Promise)}},{key:"fetchBase64",value:function(t){var r,n;return e.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,e.default.awrap(o.fetch(t));case 2:return r=u.sent,u.next=5,e.default.awrap(o.readFileBase64(r.path()));case 5:return n=u.sent,u.abrupt("return",n);case 7:case"end":return u.stop()}},null,null,null,Promise)}},{key:"post",value:function(t,r){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.fetch("POST",t,{"Content-Type":"application/octet-stream"},[r]));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"wrap",value:function(e){return a.default.wrap(e)}},{key:"zip",value:function(e,t){return(0,_r(d[11]).zip)(e,t)}},{key:"zipFiles",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,_r(d[11]).zipFiles)(e,t,r)}},{key:"unzip",value:function(t,r){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_r(d[11]).unzip)(t,r));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"zipEntryToBase64",value:function(t,r){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",(0,_r(d[11]).zipEntryToBase64)(t,r));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"clearUnusedDownloadedFiles",value:function(){var t,r,n,u,a=arguments;return e.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:for(t=a.length,r=new Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:"/";e.startsWith("..")&&(e=(t+"/"+e).replace(/\/{2,}/g,"/"));for(var r=e.split("/"),n=0;n3&&void 0!==a[3]&&a[3],e.abrupt("return",l.default.print({html:t,fileName:r,printToLetter:n,isLandscape:u}));case 2:case"end":return e.stop()}},null,null,null,Promise)}},{key:"printFile",value:function(t,r){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",l.default.print({filePath:t,fileName:r}));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"clearCache",value:function(){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",o.unlink(o.getCacheDirectory()));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"addTextWatermarkToImage",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.default.markText(t));case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"addImageWatermarkToImage",value:function(t){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",c.default.markImage(t));case 1:case"end":return e.stop()}},null,null,null,Promise)}}]),o})();_e.default=f,f.networkTimeout=0,f.readTimeout=0,f.mainBundleDirectory=u.default.MainBundlePath,f.cacheDirectory=u.default.CachesDirectoryPath,f.documentDirectory=u.default.DocumentDirectoryPath,f.libraryDirectory=u.default.LibraryDirectoryPath,f.temporaryDirectory=u.default.TemporaryDirectoryPath,f.picturesDirectory=u.default.PicturesDirectoryPath},464,[5,80,6,7,8,465,468,493,494,495,514,524]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]).NativeModules.RNFSManager,n=new(0,r(d[0]).NativeEventEmitter)(e),o=e.RNFSFileTypeRegular,t=e.RNFSFileTypeDirectory,s=0,l=function(){return s+=1},c=function(e){return e.startsWith('file://')?e.slice(7):e};function u(e,n,o){var t={encoding:'utf8'};return n&&('string'==typeof n?t.encoding=n:'object'==typeof n&&(t=n)),o(c(e)).then(function(e){var n;if('utf8'===t.encoding)n=r(d[1]).decode(r(d[2]).decode(e));else if('ascii'===t.encoding)n=r(d[2]).decode(e);else{if('base64'!==t.encoding)throw new Error('Invalid encoding type "'+String(t.encoding)+'"');n=e}return n})}function f(e,n){return n(c(e)).then(function(e){return e.map(function(e){return{ctime:e.ctime&&new Date(1e3*e.ctime)||null,mtime:e.mtime&&new Date(1e3*e.mtime)||null,name:e.name,path:e.path,size:e.size,isFile:function(){return e.type===o},isDirectory:function(){return e.type===t}}})})}var p={mkdir:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.mkdir(c(n),o).then(function(){})},moveFile:function(n,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.moveFile(c(n),c(o),t).then(function(){})},copyFile:function(n,o){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.copyFile(c(n),c(o),t).then(function(){})},pathForBundle:function(n){return e.pathForBundle(n)},pathForGroup:function(n){return e.pathForGroup(n)},getFSInfo:function(){return e.getFSInfo()},getAllExternalFilesDirs:function(){return e.getAllExternalFilesDirs()},unlink:function(n){return e.unlink(c(n)).then(function(){})},exists:function(n){return e.exists(c(n))},stopDownload:function(n){e.stopDownload(n)},resumeDownload:function(n){e.resumeDownload(n)},isResumable:function(n){return e.isResumable(n)},stopUpload:function(n){e.stopUpload(n)},completeHandlerIOS:function(n){return e.completeHandlerIOS(n)},readDir:function(n){return f(n,e.readDir)},readDirAssets:function(n){if(!e.readDirAssets)throw new Error('readDirAssets is not available on this platform');return f(n,e.readDirAssets)},existsAssets:function(n){if(!e.existsAssets)throw new Error('existsAssets is not available on this platform');return e.existsAssets(n)},existsRes:function(n){if(!e.existsRes)throw new Error('existsRes is not available on this platform');return e.existsRes(n)},readdir:function(e){return p.readDir(c(e)).then(function(e){return e.map(function(e){return e.name})})},setReadable:function(n,o,t){return e.setReadable(n,o,t).then(function(e){return e})},stat:function(n){return e.stat(c(n)).then(function(e){return{path:n,ctime:new Date(1e3*e.ctime),mtime:new Date(1e3*e.mtime),size:e.size,mode:e.mode,originalFilepath:e.originalFilepath,isFile:function(){return e.type===o},isDirectory:function(){return e.type===t}}})},readFile:function(n,o){return u(n,o,e.readFile)},read:function(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3?arguments[3]:void 0,l={encoding:'utf8'};return s&&('string'==typeof s?l.encoding=s:'object'==typeof s&&(l=s)),e.read(c(n),o,t).then(function(e){var n;if('utf8'===l.encoding)n=r(d[1]).decode(r(d[2]).decode(e));else if('ascii'===l.encoding)n=r(d[2]).decode(e);else{if('base64'!==l.encoding)throw new Error('Invalid encoding type "'+String(l.encoding)+'"');n=e}return n})},readFileAssets:function(n,o){if(!e.readFileAssets)throw new Error('readFileAssets is not available on this platform');return u(n,o,e.readFileAssets)},readFileRes:function(n,o){if(!e.readFileRes)throw new Error('readFileRes is not available on this platform');return u(n,o,e.readFileRes)},hash:function(n,o){return e.hash(c(n),o)},copyFileAssets:function(n,o){if(!e.copyFileAssets)throw new Error('copyFileAssets is not available on this platform');return e.copyFileAssets(c(n),c(o)).then(function(){})},copyFileRes:function(n,o){if(!e.copyFileRes)throw new Error('copyFileRes is not available on this platform');return e.copyFileRes(n,c(o)).then(function(){})},copyAssetsFileIOS:function(n,o,t,s){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:1,u=arguments.length>6&&void 0!==arguments[6]?arguments[6]:'contain';return e.copyAssetsFileIOS(n,o,t,s,l,c,u)},copyAssetsVideoIOS:function(n,o){return e.copyAssetsVideoIOS(n,o)},writeFile:function(n,o,t){var s,l={encoding:'utf8'};if(t&&('string'==typeof t?l.encoding=t:'object'==typeof t&&(l=r(d[3])({},l,t))),'utf8'===l.encoding)s=r(d[2]).encode(r(d[1]).encode(o));else if('ascii'===l.encoding)s=r(d[2]).encode(o);else{if('base64'!==l.encoding)throw new Error('Invalid encoding type "'+l.encoding+'"');s=o}return e.writeFile(c(n),s,l).then(function(){})},appendFile:function(n,o,t){var s,l={encoding:'utf8'};if(t&&('string'==typeof t?l.encoding=t:'object'==typeof t&&(l=t)),'utf8'===l.encoding)s=r(d[2]).encode(r(d[1]).encode(o));else if('ascii'===l.encoding)s=r(d[2]).encode(o);else{if('base64'!==l.encoding)throw new Error('Invalid encoding type "'+l.encoding+'"');s=o}return e.appendFile(c(n),s)},write:function(n,o,t,s){var l,u={encoding:'utf8'};if(s&&('string'==typeof s?u.encoding=s:'object'==typeof s&&(u=s)),'utf8'===u.encoding)l=r(d[2]).encode(r(d[1]).encode(o));else if('ascii'===u.encoding)l=r(d[2]).encode(o);else{if('base64'!==u.encoding)throw new Error('Invalid encoding type "'+u.encoding+'"');l=o}return void 0===t&&(t=-1),e.write(c(n),l,t).then(function(){})},downloadFile:function(o){if('object'!=typeof o)throw new Error('downloadFile: Invalid value for argument `options`');if('string'!=typeof o.fromUrl)throw new Error('downloadFile: Invalid value for property `fromUrl`');if('string'!=typeof o.toFile)throw new Error('downloadFile: Invalid value for property `toFile`');if(o.headers&&'object'!=typeof o.headers)throw new Error('downloadFile: Invalid value for property `headers`');if(o.background&&'boolean'!=typeof o.background)throw new Error('downloadFile: Invalid value for property `background`');if(o.progressDivider&&'number'!=typeof o.progressDivider)throw new Error('downloadFile: Invalid value for property `progressDivider`');if(o.progressInterval&&'number'!=typeof o.progressInterval)throw new Error('downloadFile: Invalid value for property `progressInterval`');if(o.readTimeout&&'number'!=typeof o.readTimeout)throw new Error('downloadFile: Invalid value for property `readTimeout`');if(o.connectionTimeout&&'number'!=typeof o.connectionTimeout)throw new Error('downloadFile: Invalid value for property `connectionTimeout`');if(o.backgroundTimeout&&'number'!=typeof o.backgroundTimeout)throw new Error('downloadFile: Invalid value for property `backgroundTimeout`');var t=l(),s=[];o.begin&&s.push(n.addListener('DownloadBegin',function(e){e.jobId===t&&o.begin(e)})),o.progress&&s.push(n.addListener('DownloadProgress',function(e){e.jobId===t&&o.progress(e)})),o.resumable&&s.push(n.addListener('DownloadResumable',function(e){e.jobId===t&&o.resumable(e)}));var u={jobId:t,fromUrl:o.fromUrl,toFile:c(o.toFile),headers:o.headers||{},background:!!o.background,progressDivider:o.progressDivider||0,progressInterval:o.progressInterval||0,readTimeout:o.readTimeout||15e3,connectionTimeout:o.connectionTimeout||5e3,backgroundTimeout:o.backgroundTimeout||36e5,hasBeginCallback:o.begin instanceof Function,hasProgressCallback:o.progress instanceof Function,hasResumableCallback:o.resumable instanceof Function};return{jobId:t,promise:e.downloadFile(u).then(function(e){return s.forEach(function(e){return e.remove()}),e}).catch(function(e){return Promise.reject(e)})}},uploadFiles:function(o){if(!e.uploadFiles)return{jobId:-1,promise:Promise.reject(new Error('`uploadFiles` is unsupported on this platform'))};var t=l(),s=[];if('object'!=typeof o)throw new Error('uploadFiles: Invalid value for argument `options`');if('string'!=typeof o.toUrl)throw new Error('uploadFiles: Invalid value for property `toUrl`');if(!Array.isArray(o.files))throw new Error('uploadFiles: Invalid value for property `files`');if(o.headers&&'object'!=typeof o.headers)throw new Error('uploadFiles: Invalid value for property `headers`');if(o.fields&&'object'!=typeof o.fields)throw new Error('uploadFiles: Invalid value for property `fields`');if(o.method&&'string'!=typeof o.method)throw new Error('uploadFiles: Invalid value for property `method`');o.begin?s.push(n.addListener('UploadBegin',o.begin)):o.beginCallback&&s.push(n.addListener('UploadBegin',o.beginCallback)),o.progress?s.push(n.addListener('UploadProgress',o.progress)):o.progressCallback&&s.push(n.addListener('UploadProgress',o.progressCallback));var c={jobId:t,toUrl:o.toUrl,files:o.files,binaryStreamOnly:o.binaryStreamOnly||!1,headers:o.headers||{},fields:o.fields||{},method:o.method||'POST',hasBeginCallback:o.begin instanceof Function||o.beginCallback instanceof Function,hasProgressCallback:o.progress instanceof Function||o.progressCallback instanceof Function};return{jobId:t,promise:e.uploadFiles(c).then(function(e){return s.forEach(function(e){return e.remove()}),e})}},touch:function(n,o,t){if(t&&!(t instanceof Date))throw new Error('touch: Invalid value for argument `ctime`');if(o&&!(o instanceof Date))throw new Error('touch: Invalid value for argument `mtime`');var s;return s=t&&t.getTime(),e.touch(c(n),o&&o.getTime(),s)},scanFile:function(n){return e.scanFile(n)},MainBundlePath:e.RNFSMainBundlePath,CachesDirectoryPath:e.RNFSCachesDirectoryPath,ExternalCachesDirectoryPath:e.RNFSExternalCachesDirectoryPath,DocumentDirectoryPath:e.RNFSDocumentDirectoryPath,DownloadDirectoryPath:e.RNFSDownloadDirectoryPath,ExternalDirectoryPath:e.RNFSExternalDirectoryPath,ExternalStorageDirectoryPath:e.RNFSExternalStorageDirectoryPath,TemporaryDirectoryPath:e.RNFSTemporaryDirectoryPath,LibraryDirectoryPath:e.RNFSLibraryDirectoryPath,PicturesDirectoryPath:e.RNFSPicturesDirectoryPath,FileProtectionKeys:e.RNFSFileProtectionKeys};m.exports=p},465,[28,466,467,6]); -__d(function(g,r,i,a,m,e,d){!(function(n){var t,o,u,f=String.fromCharCode;function c(n){for(var t,o,u=[],f=0,c=n.length;f=55296&&t<=56319&&f65535&&(c+=f((t-=65536)>>>10&1023|55296),t=56320|1023&t),c+=f(t);return c}function v(n){if(n>=55296&&n<=57343)throw Error('Lone surrogate U+'+n.toString(16).toUpperCase()+' is not a scalar value')}function l(n,t){return f(n>>t&63|128)}function s(n){if(0==(4294967168&n))return f(n);var t='';return 0==(4294965248&n)?t=f(n>>6&31|192):0==(4294901760&n)?(v(n),t=f(n>>12&15|224),t+=l(n,6)):0==(4292870144&n)&&(t=f(n>>18&7|240),t+=l(n,12),t+=l(n,6)),t+=f(63&n|128)}function w(){if(u>=o)throw Error('Invalid byte index');var n=255&t[u];if(u++,128==(192&n))return 63&n;throw Error('Invalid continuation byte')}function E(){var n,f;if(u>o)throw Error('Invalid byte index');if(u==o)return!1;if(n=255&t[u],u++,0==(128&n))return n;if(192==(224&n)){if((f=(31&n)<<6|w())>=128)return f;throw Error('Invalid continuation byte')}if(224==(240&n)){if((f=(15&n)<<12|w()<<6|w())>=2048)return v(f),f;throw Error('Invalid continuation byte')}if(240==(248&n)&&(f=(7&n)<<18|w()<<12|w()<<6|w())>=65536&&f<=1114111)return f;throw Error('Invalid UTF-8 detected')}n.version='3.0.0',n.encode=function(n){for(var t=c(n),o=t.length,u=-1,f='';++u>18&63)+d.charAt(c>>12&63)+d.charAt(c>>6&63)+d.charAt(63&c);return 2==f?(n=t.charCodeAt(A)<<8,o=t.charCodeAt(++A),s+=d.charAt((c=n+o)>>10)+d.charAt(c>>4&63)+d.charAt(c<<2&63)+'='):1==f&&(c=t.charCodeAt(A),s+=d.charAt(c>>2)+d.charAt(c<<4&63)+'=='),s},decode:function(t){var n=(t=String(t).replace(f,'')).length;n%4==0&&(n=(t=t.replace(/==?$/,'')).length),(n%4==1||/[^+a-zA-Z0-9/]/.test(t))&&h('Invalid character: the string to be decoded is not correctly encoded.');for(var o,a,c=0,s='',A=-1;++A>(-2*c&6)));return s},version:'0.1.0'};if('function'==typeof define&&'object'==typeof define.amd&&define.amd)define(function(){return s});else if(n&&!n.nodeType)if(o)o.exports=s;else for(var A in s)s.hasOwnProperty(A)&&(n[A]=s[A]);else t.base64=s})(this)},467,[]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[2]),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),u=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),h=r(d[0])(r(d[10])),p=r(d[0])(r(d[11])),b=(o.default.RNFetchBlobSession,o.default.readStream),v=(o.default.createFile,o.default.unlink),y=(o.default.exists,o.default.mkdir,o.default.session),w=(o.default.writeStream,o.default.readFile),F=(o.default.ls,o.default.isDir,o.default.mv,o.default.cp,u.default.Blob),P=t.DeviceEventEmitter,R=t.NativeModules.RNFetchBlob;function B(e){return(e.startsWith('content://')?'RNFetchBlob-content://':'RNFetchBlob-file://')+e}function k(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=arguments.length>1?arguments[1]:void 0,t=arguments.length>2?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};arguments.length>4&&arguments[4];if(!n.default.isFileURI(t))throw"could not fetch file from an invalid URI : "+t;t=n.default.unwrapFileURI(t);var l,u,c=null,f=-1,h='',p=null;switch(e.toLowerCase()){case'post':case'put':break;default:c=o.default.stat(t).then(function(e){return f=e.size,o.default.readStream(t,s.encoding||'utf8',Math.floor(s.bufferSize)||409600,Math.floor(s.interval)||100)}).then(function(e){return new Promise(function(t,n){e.open(),p={state:"2",headers:{source:'system-fs'},status:200,respType:'text',rnfbEncode:s.encoding||'utf8'},u(p),e.onData(function(e){l&&l(0,f,e),s.noCache||(h+=e)}),e.onError(function(e){n(e)}),e.onEnd(function(){t(new S(null,p,h))})})})}return c.progress=function(e){return l=e,c},c.stateChange=function(e){return u=e,c},c.uploadProgress=function(e){return e,c},c}function N(){for(var e,t,o,l,u=(0,s.default)(),f=this||{},h={},p=arguments.length,b=new Array(p),v=0;v1&&void 0!==arguments[1]?arguments[1]:'utf8',o=arguments.length>2?arguments[2]:void 0,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:10;return'string'!=typeof n?Promise.reject(c('EINVAL',new TypeError('Missing argument "path" '))):Promise.resolve(new s.default(n,t,o,u))},mv:function(n,t){return new Promise(function(o,s){if('string'!=typeof n||'string'!=typeof t)return s(c('EINVAL',new TypeError('Missing argument "path" and/or "destination"')));u.mv(n,t,function(n,t){n?s(c('EUNSPECIFIED',new Error(n))):o(t)})})},cp:function(n,t){return new Promise(function(o,s){if('string'!=typeof n||'string'!=typeof t)return s(c('EINVAL',new TypeError('Missing argument "path" and/or "destination"')));u.cp(n,t,function(n,t){n?s(c('EUNSPECIFIED',new Error(n))):o(t)})})},writeStream:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'utf8',s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return'string'!=typeof n?Promise.reject(c('EINVAL',new TypeError('Missing argument "path" '))):new Promise(function(f,c){u.writeStream(n,t,s,function(n,s,u){if(s){var p=new Error(s);p.code=n,c(p)}else f(new o.default(u,t))})})},writeFile:function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'utf8';return'string'!=typeof n?Promise.reject(c('EINVAL',new TypeError('Missing argument "path" '))):'ascii'===o.toLocaleLowerCase()?Array.isArray(t)?u.writeFileArray(n,t,!1):Promise.reject(c('EINVAL',new TypeError('"data" must be an Array when encoding is "ascii"'))):'string'!=typeof t?Promise.reject(c('EINVAL',new TypeError("\"data\" must be a String when encoding is \"utf8\" or \"base64\", but it is \""+typeof t+"\""))):u.writeFile(n,o,t,!1)},appendFile:function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'utf8';return'string'!=typeof n?Promise.reject(c('EINVAL',new TypeError('Missing argument "path" '))):'ascii'===o.toLocaleLowerCase()?Array.isArray(t)?u.writeFileArray(n,t,!0):Promise.reject(c('EINVAL',new TypeError('`data` of ASCII file must be an array with 0..255 numbers'))):'string'!=typeof t?Promise.reject(c('EINVAL'),new TypeError("\"data\" must be a String when encoding is \"utf8\" or \"base64\", but it is \""+typeof t+"\"")):u.writeFile(n,o,t,!0)},pathForAppGroup:function(n){return u.pathForAppGroup(n)},syncPathAppGroup:function(t){return'ios'===n.Platform.OS?u.syncPathAppGroup(t):''},readFile:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'utf8';return'string'!=typeof n?Promise.reject(c('EINVAL',new TypeError('Missing argument "path" '))):u.readFile(n,t)},hash:function(n,t){return'string'!=typeof n||'string'!=typeof t?Promise.reject(c('EINVAL',new TypeError('Missing argument "path" and/or "algorithm"'))):u.hash(n,t)},exists:function(n){return new Promise(function(t,o){if('string'!=typeof n)return o(c('EINVAL',new TypeError('Missing argument "path" ')));try{u.exists(n,function(n){t(n)})}catch(n){o(c('EUNSPECIFIED',new Error(n)))}})},createFile:function(n,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:'utf8';return'ascii'===o.toLowerCase()?Array.isArray(t)?u.createFileASCII(n,t):Promise.reject(c('EINVAL',new TypeError('`data` of ASCII file must be an array with 0..255 numbers'))):u.createFile(n,t,o)},isDir:function(n){return new Promise(function(t,o){if('string'!=typeof n)return o(c('EINVAL',new TypeError('Missing argument "path" ')));try{u.exists(n,function(n,o){t(o)})}catch(n){o(c('EUNSPECIFIED',new Error(n)))}})},stat:p,lstat:function(n){return new Promise(function(t,o){if('string'!=typeof n)return o(c('EINVAL',new TypeError('Missing argument "path" ')));u.lstat(n,function(n,s){n?o(c('EUNSPECIFIED',new Error(n))):t(s)})})},scanFile:function(n){return new Promise(function(t,o){if(void 0===n)return o(c('EINVAL',new TypeError('Missing argument')));u.scanFile(n,function(n){n?o(c('EUNSPECIFIED',new Error(n))):t()})})},dirs:f,slice:function(n,t,o,s){if('string'!=typeof n||'string'!=typeof t)return reject(c('EINVAL',new TypeError('Missing argument "src" and/or "destination"')));var f=Promise.resolve(),E=0;function l(n,t){return n<0?Math.max(0,t+n):n||0===n?n:t}return(o<0||s<0||!o||!s)&&(f=f.then(function(){return p(n)}).then(function(n){E=Math.floor(n.size),o=l(o||0,E),s=l(s,E)})),f.then(function(){return u.slice(n,t,o,s)})},asset:function(t){return'ios'===n.Platform.OS&&/^assets-library\:\/\//.test(t)?t:'bundle-assets://'+t},df:function(){return new Promise(function(n,t){u.df(function(o,s){o?t(c('EUNSPECIFIED',new Error(o))):n(s)})})}};e.default=E},470,[28,5,471,472,473,475]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));function o(t,n){var o="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(o)return(o=o.call(t)).next.bind(o);if(Array.isArray(t)||(o=i(t))||n&&t&&"number"==typeof t.length){o&&(t=o);var u=0;return function(){return u>=t.length?{done:!0}:{done:!1,value:t[u++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,n){if(t){if("string"==typeof t)return u(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o2&&void 0!==arguments[2]?arguments[2]:'';if(this._closed)throw'Blob has been released.';_.verbose('slice called',t,n,o);var l=y+B();_.debug('fs.slice new blob will at',l);var s=new p(u.default.wrap(l),{type:o},!0);return f.default.exists(y).then(function(t){return t?Promise.resolve():f.default.mkdir(y)}).then(function(){return f.default.slice(i._ref,l,t,n)}).then(function(t){_.debug('fs.slice done',t),s._invokeOnCreateEvent(),!0}).catch(function(t){console.warn('Blob.slice failed:',t),!0}),_.debug('slice returning new Blob'),s}},{key:"readBlob",value:function(t){if(this._closed)throw'Blob has been released.';return f.default.readFile(this._ref,t||'utf8')}},{key:"close",value:function(){return this._closed?Promise.reject('Blob has been released.'):(this._closed=!0,f.default.unlink(this._ref).catch(function(t){console.warn(t)}))}},{key:"safeClose",value:function(){return this._closed?Promise.reject('Blob has been released.'):(this._closed=!0,this._isReference?Promise.resolve():f.default.unlink(this._ref).catch(function(t){console.warn(t)}))}},{key:"_invokeOnCreateEvent",value:function(){_.verbose('invoke create event',this._onCreated),this._blobCreated=!0;var t=this._onCreated;for(var n in t)'function'==typeof t[n]&&t[n](this);delete this._onCreated}}],[{key:"clearCache",value:function(){return f.default.unlink(y).then(function(){return f.default.mkdir(y)})}},{key:"build",value:function(t,n){return new Promise(function(i,o){new p(t,n).onCreated(i)})}},{key:"setLog",value:function(t){-1===t?_.disable():_.level(t)}}]),p})(b.default);function B(){return'blob-'+(0,c.default)()}function k(n,i){var o=f.default.writeFile(n,''),l=[],s=0;for(var u in i){var c=i[u];c&&(c.isRNFetchBlobPolyfill?l.push([n,c._ref,'uri']):'string'==typeof c?l.push([n,c,'utf8']):Array.isArray(c)&&l.push([n,c,'ascii']))}var h=function(n){o=o.then(function(i){return i&&(s+=i),_.verbose('mixed blob write',l[n],i),f.default.appendFile.apply(f.default,(0,t.default)(this))}.bind(l[n]))};for(var b in l)h(b);return o.then(function(){return Promise.resolve(s)})}e.default=p},477,[5,21,7,8,12,14,16,468,470,474,478,479]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),t=(function(){function t(l){(0,n.default)(this,t),this._isEnable=!0,this._level=0,this._name=l}return(0,l.default)(t,[{key:"level",value:function(n){this._isEnable=!0,this._level=n}},{key:"enable",value:function(){this._isEnable=!0}},{key:"disable",value:function(){this._isEnable=!1}},{key:"verbose",value:function(){for(var n=arguments.length,l=new Array(n),t=0;t-1&&(n=console).warn.apply(n,[this._name,'error:'].concat(t))}}]),t})();e.default=t},478,[5,7,8]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),i=r(d[0])(r(d[2])),n=new(r(d[0])(r(d[3])).default)('EventTarget');n.disable();var s=(function(){function s(){(0,t.default)(this,s),n.info('constructor called'),this.listeners={}}return(0,i.default)(s,[{key:"addEventListener",value:function(t,i){n.info('add event listener',t,i),t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push(i)}},{key:"removeEventListener",value:function(t,i){if(n.info('remove event listener',t,i),t in this.listeners){var s=this.listeners[t];for(var l in s)if(i===s[l])return s.splice(l,1),this.removeEventListener(t,i)}}},{key:"dispatchEvent",value:function(t,i){if(n.info('dispatch event',i),t in this.listeners){var s=this.listeners[t];for(var l in s)s[l].call(this,i)}}},{key:"clearEventListeners",value:function(){for(var t in this.listeners)delete this.listeners[t]}}]),s})();e.default=s},479,[5,7,8,478]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5]));function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var c=(function(c){(0,u.default)(p,c);var s,v,h=(s=p,v=f(),function(){var t,n=(0,l.default)(s);if(v){var u=(0,l.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function p(n,u){var o;return(0,t.default)(this,p),(o=h.call(this,n,u)).name='',o}return(0,n.default)(p,null,[{key:"build",value:function(t,n,u){return new Promise(function(o,l){void 0===n&&l(new TypeError('data is undefined')),new p(n,u).onCreated(function(n){n.name=t,o(n)})})}}]),p})(r(d[0])(r(d[6])).default);e.default=c},480,[5,7,8,12,14,16,477]); -__d(function(g,r,_i2,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),i=r(d[0])(r(d[6])),u=r(d[0])(r(d[7])),p=r(d[0])(r(d[8])),h=r(d[0])(r(d[9])),c=r(d[0])(r(d[10])),_=r(d[0])(r(d[11])),l=r(d[0])(r(d[12]));function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var y=new h.default('XMLHttpRequest');y.disable();var v=0,b=(function(h){(0,n.default)(k,h);var b,E,R=(b=k,E=f(),function(){var e,t=(0,i.default)(b);if(E){var s=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,s)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function k(){var t;return(0,e.default)(this,k),y.verbose('XMLHttpRequest constructor called'),(t=R.call(this)).upload=new p.default,t._readyState=v,t._uriType='net',t._response='',t._responseText='',t._responseHeaders={},t._responseType='',t._responseURL='',t._responseXML='',t._status=0,t._statusText='',t._timeout=6e4,t._sendFlag=!1,t._uploadStarted=!1,t._increment=!1,t._config={},t._headers={'Content-Type':'text/plain'},t._cleanUp=null,t._headerReceived=function(e){y.debug('header received ',t._task.taskId,e),t.responseURL=t._url,"2"===e.state&&e.taskId===t._task.taskId&&(t._responseHeaders=e.headers,t._statusText=e.status,t._status=Math.floor(e.status),t._dispatchReadStateChange(k.HEADERS_RECEIVED))},t._uploadProgressEvent=function(e,s){t._uploadStarted||(t.upload.dispatchEvent('loadstart'),t._uploadStarted=!0),e>=s&&t.upload.dispatchEvent('load'),t.upload.dispatchEvent('progress',new _.default(!0,e,s))},t._progressEvent=function(e,s,n){y.verbose(t.readyState),t._readyState===k.HEADERS_RECEIVED&&t._dispatchReadStateChange(k.LOADING);var o=!1;s&&s>=0&&(o=!0);var i=new _.default(o,e,s);t._increment&&(t._responseText+=n),t.dispatchEvent('progress',i)},t._onError=function(e){var s=Math.floor(t.status);s>=100&&408!==s||(y.debug('XMLHttpRequest error',e),t._statusText=e,t._status=String(e).match(/\d+/),t._status=t._status?Math.floor(t.status):404,t._dispatchReadStateChange(k.DONE),(e&&String(e.message).match(/(timed\sout|timedout)/)||408==t._status)&&t.dispatchEvent('timeout'),t.dispatchEvent('loadend'),t.dispatchEvent('error',{type:'error',detail:e}),t.clearEventListeners())},t._onDone=function(e){y.debug('XMLHttpRequest done',t._url,e,(0,s.default)(t)),t._statusText=t._status;var n=function(){y.debug('request done state = 4'),t.dispatchEvent('load'),t.dispatchEvent('loadend'),t._dispatchReadStateChange(k.DONE),t.clearEventListeners()};if(e){var o=e.respInfo||{};switch(y.debug(t._url,o,o.respType),t._responseType){case'blob':e.blob().then(function(s){t._responseText=e.text(),t._response=s,n()});break;case'arraybuffer':break;case'json':t._response=e.json(),t._responseText=e.text();break;default:t._responseText=e.text(),t._response=t.responseText,n()}}},t}return(0,t.default)(k,[{key:"UNSENT",get:function(){return v}},{key:"OPENED",get:function(){return 1}},{key:"HEADERS_RECEIVED",get:function(){return 2}},{key:"LOADING",get:function(){return 3}},{key:"DONE",get:function(){return 4}},{key:"open",value:function(e,t,s,n,o){y.verbose('XMLHttpRequest open ',e,t,s,n,o),this._method=e,this._url=t,this._headers={},this._increment=l.default.isJSONStreamURI(this._url),this._url=this._url.replace(/^JSONStream\:\/\//,''),this._dispatchReadStateChange(k.OPENED)}},{key:"send",value:function(e){var t=this;if(this._body=e,this._readyState!==k.OPENED)throw'InvalidStateError : XMLHttpRequest is not opened yet.';var s=Promise.resolve();this._sendFlag=!0,y.verbose('XMLHttpRequest send ',e);var n=this._method,o=this._url,i=this._headers;y.verbose('sending request with args',n,o,i,e),y.verbose(typeof e,e instanceof FormData),e instanceof c.default?(y.debug('sending blob body',e._blobCreated),s=new Promise(function(s,n){e.onCreated(function(n){n.isDerived&&(t._cleanUp=function(){n.close()}),y.debug('body created send request'),e=u.default.wrap(n.getRNFetchBlobRef()),s()})})):'object'==typeof e?(e=JSON.stringify(e),s=Promise.resolve()):(e=e?e.toString():e,s=Promise.resolve()),s.then(function(){for(var s in y.debug('send request invoke',e),i)i[s]=i[s].toString();t._task=u.default.config({auto:!0,timeout:t._timeout,increment:t._increment,binaryContentTypes:k.binaryContentTypes}).fetch(n,o,i,e),t._task.stateChange(t._headerReceived).uploadProgress(t._uploadProgressEvent).progress(t._progressEvent).catch(t._onError).then(t._onDone)})}},{key:"overrideMimeType",value:function(e){y.verbose('XMLHttpRequest overrideMimeType',e),this._headers['Content-Type']=e}},{key:"setRequestHeader",value:function(e,t){if(y.verbose('XMLHttpRequest set header',e,t),1!==this._readyState||this._sendFlag)throw"InvalidStateError : Calling setRequestHeader in wrong state "+this._readyState;if('string'!=typeof e||/[^\u0000-\u00ff]/.test(e))throw'TypeError : header field name should be a string';for(var s=0,n=[/[\(\)\>\<\@\,\:\\\/\[\]\?\=\}\{\s\ \u007f\;\t\0\v\r]/,/tt/];s1&&void 0!==arguments[1]?arguments[1]:{},i=n.body,l=Promise.resolve(),c=null;n.headers=n.headers||{};var b,p,v,y=n['Content-Type']||n['content-type'],R=n.headers['Content-Type']||n.headers['content-type'];n.headers['Content-Type']=y||R,n.headers['content-type']=y||R,n.method=n.method||'GET',i&&(i instanceof FormData?(u.verbose('convert FormData to blob body'),l=f.default.build(i).then(function(t){return c=t,n.headers['Content-Type']='multipart/form-data;boundary='+t.multipartBoundary,Promise.resolve(o.default.wrap(t._ref))})):l=i.isRNFetchBlobPolyfill?Promise.resolve(o.default.wrap(i.blobPath)):'object'!=typeof i&&'application/json'!==n.headers['Content-Type']?Promise.resolve(JSON.stringify(i)):'string'!=typeof i?Promise.resolve(i.toString()):Promise.resolve(i));var P=l.then(function(i){var l=o.default.config(s).fetch(n.method,t,n.headers,i);return b&&l.progress(b),p&&l.uploadProgress(p),v&&l.cancel(),l.then(function(t){return u.verbose('response',t),null!==c&&c instanceof f.default&&c.close(),Promise.resolve(new h(t))})});return P.progress=function(t){b=t},P.uploadProgress=function(t){p=t},P.cancel=function(){v=!0,task.cancel&&task.cancel()},P}}},h=(function(){function s(t){(0,n.default)(this,s);var o=t.info();this.headers=o.headers,this.ok=o.status>=200&&o.status<=299,this.status=o.status,this.type='basic',this.bodyUsed=!1,this.resp=t,this.rnfbRespInfo=o,this.rnfbResp=t}return(0,t.default)(s,[{key:"rawResp",value:function(){return Promise.resolve(this.rnfbResp)}},{key:"arrayBuffer",value:function(){return u.verbose('to arrayBuffer',this.rnfbRespInfo),this.bodyUsed=!0,c(this.rnfbResp,this.rnfbRespInfo)}},{key:"text",value:function(){return u.verbose('to text',this.rnfbResp,this.rnfbRespInfo),this.bodyUsed=!0,b(this.rnfbResp,this.rnfbRespInfo)}},{key:"json",value:function(){return u.verbose('to json',this.rnfbResp,this.rnfbRespInfo),this.bodyUsed=!0,v(this.rnfbResp,this.rnfbRespInfo)}},{key:"blob",value:function(){return u.verbose('to blob',this.rnfbResp,this.rnfbRespInfo),this.bodyUsed=!0,p(this.rnfbResp,this.rnfbRespInfo)}}]),s})();function c(t,s){switch(s.rnfbEncode){case'path':return t.readFile('ascii');default:var n=[],o=t.text();for(var i in o)n[i]=o.charCodeAt(i);return Promise.resolve(n)}}function b(t,s){switch(s.rnfbEncode){case'base64':return Promise.resolve(t.text());case'path':return t.text();default:return Promise.resolve(t.text())}}function p(t,s){return u.verbose('readBlob',t,s),t.blob()}function v(t,s){switch(u.verbose('readJSON',t,s),s.rnfbEncode){case'base64':return Promise.resolve(t.json());case'path':return t.json();default:return Promise.resolve(t.json())}}},486,[5,8,6,7,468,478,470,487,477]); -__d(function(g,_r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(n){return n=n.replace(/\\u([\d\w]{4})/gi,function(n,r){return String.fromCharCode(parseInt(r,16))}),unescape(n)}},487,[]); -__d(function(n,t,r,e,u,i,o){(function(){var t,r=200,e='Unsupported core-js use. Try https://npms.io/search?q=ponyfill.',o='Expected a function',f='Invalid `variable` option passed into `_.template`',a='__lodash_hash_undefined__',c=500,l='__lodash_placeholder__',s=1,h=2,p=4,v=1,_=2,g=1,d=2,y=4,x=8,b=16,w=32,m=64,j=128,A=256,k=512,z=30,O='...',I=800,R=16,E=1,S=2,L=1/0,W=9007199254740991,C=1.7976931348623157e308,U=NaN,B=4294967295,T=4294967294,D=2147483647,$=[['ary',j],['bind',g],['bindKey',d],['curry',x],['curryRight',b],['flip',k],['partial',w],['partialRight',m],['rearg',A]],M='[object Arguments]',F='[object Array]',N='[object AsyncFunction]',P='[object Boolean]',Z='[object Date]',q='[object DOMException]',K='[object Error]',V='[object Function]',G='[object GeneratorFunction]',H='[object Map]',J='[object Number]',Y='[object Null]',Q='[object Object]',X='[object Proxy]',nn='[object RegExp]',tn='[object Set]',rn='[object String]',en='[object Symbol]',un='[object Undefined]',on='[object WeakMap]',fn='[object WeakSet]',an='[object ArrayBuffer]',cn='[object DataView]',ln='[object Float32Array]',sn='[object Float64Array]',hn='[object Int8Array]',pn='[object Int16Array]',vn='[object Int32Array]',_n='[object Uint8Array]',gn='[object Uint8ClampedArray]',dn='[object Uint16Array]',yn='[object Uint32Array]',xn=/\b__p \+= '';/g,bn=/\b(__p \+=) '' \+/g,wn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,mn=/&(?:amp|lt|gt|quot|#39);/g,jn=/[&<>"']/g,An=RegExp(mn.source),kn=RegExp(jn.source),zn=/<%-([\s\S]+?)%>/g,On=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,Rn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,En=/^\w*$/,Sn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ln=/[\\^$.*+?()[\]{}|]/g,Wn=RegExp(Ln.source),Cn=/^\s+/,Un=/\s/,Bn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Tn=/\{\n\/\* \[wrapped with (.+)\] \*/,Dn=/,? & /,$n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Mn=/[()=,{}\[\]\/\s]/,Fn=/\\(\\)?/g,Nn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pn=/\w*$/,Zn=/^[-+]0x[0-9a-f]+$/i,qn=/^0b[01]+$/i,Kn=/^\[object .+?Constructor\]$/,Vn=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Hn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Jn=/($^)/,Yn=/['\n\r\u2028\u2029\\]/g,Qn="[\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000]",Xn="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nt="(?:\\ud83c[\\udde6-\\uddff]){2}",tt="[\\ud800-\\udbff][\\udc00-\\udfff]",rt="[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?"+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",nt,tt].join('|')+")[\\ufe0e\\ufe0f]?(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?)*"),et='(?:'+["[\\u2700-\\u27bf]",nt,tt].join('|')+')'+rt,ut='(?:'+["[^\\ud800-\\udfff][\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]?",Xn,nt,tt,"[\\ud800-\\udfff]"].join('|')+')',it=RegExp("['\u2019]",'g'),ot=RegExp(Xn,'g'),ft=RegExp("\\ud83c[\\udffb-\\udfff](?=\\ud83c[\\udffb-\\udfff])|"+ut+rt,'g'),at=RegExp(["[A-Z\\xc0-\\xd6\\xd8-\\xde]?[a-z\\xdf-\\xf6\\xf8-\\xff]+(?:['\u2019](?:d|ll|m|re|s|t|ve))?(?="+[Qn,"[A-Z\\xc0-\\xd6\\xd8-\\xde]",'$'].join('|')+')',"(?:[A-Z\\xc0-\\xd6\\xd8-\\xde]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?(?="+[Qn,"[A-Z\\xc0-\\xd6\\xd8-\\xde](?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])",'$'].join('|')+')',"[A-Z\\xc0-\\xd6\\xd8-\\xde]?(?:[a-z\\xdf-\\xf6\\xf8-\\xff]|[^\\ud800-\\udfff\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000\\d+\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde])+(?:['\u2019](?:d|ll|m|re|s|t|ve))?","[A-Z\\xc0-\\xd6\\xd8-\\xde]+(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",'\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])','\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])','\\d+',et].join('|'),'g'),ct=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),lt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=['Array','Buffer','DataView','Date','Error','Float32Array','Float64Array','Function','Int8Array','Int16Array','Int32Array','Map','Math','Object','Promise','RegExp','Set','String','Symbol','TypeError','Uint8Array','Uint8ClampedArray','Uint16Array','Uint32Array','WeakMap','_','clearTimeout','isFinite','parseInt','setTimeout'],ht=-1,pt={};pt[ln]=pt[sn]=pt[hn]=pt[pn]=pt[vn]=pt[_n]=pt[gn]=pt[dn]=pt[yn]=!0,pt[M]=pt[F]=pt[an]=pt[P]=pt[cn]=pt[Z]=pt[K]=pt[V]=pt[H]=pt[J]=pt[Q]=pt[nn]=pt[tn]=pt[rn]=pt[on]=!1;var vt={};vt[M]=vt[F]=vt[an]=vt[cn]=vt[P]=vt[Z]=vt[ln]=vt[sn]=vt[hn]=vt[pn]=vt[vn]=vt[H]=vt[J]=vt[Q]=vt[nn]=vt[tn]=vt[rn]=vt[en]=vt[_n]=vt[gn]=vt[dn]=vt[yn]=!0,vt[K]=vt[V]=vt[on]=!1;var _t={'\\':'\\',"'":"'",'\n':'n','\r':'r',"\u2028":'u2028',"\u2029":'u2029'},gt=parseFloat,dt=parseInt,yt='object'==typeof n&&n&&n.Object===Object&&n,xt='object'==typeof self&&self&&self.Object===Object&&self,bt=yt||xt||Function('return this')(),wt='object'==typeof i&&i&&!i.nodeType&&i,mt=wt&&'object'==typeof u&&u&&!u.nodeType&&u,jt=mt&&mt.exports===wt,At=jt&&yt.process,kt=(function(){try{var n=mt&&mt.require&&mt.require('util').types;return n||At&&At.binding&&At.binding('util')}catch(n){}})(),zt=kt&&kt.isArrayBuffer,Ot=kt&&kt.isDate,It=kt&&kt.isMap,Rt=kt&&kt.isRegExp,Et=kt&&kt.isSet,St=kt&&kt.isTypedArray;function Lt(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function Wt(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u-1}function $t(n,t,r){for(var e=-1,u=null==n?0:n.length;++e-1;);return r}function hr(n,t){for(var r=n.length;r--&&Jt(t,n[r],0)>-1;);return r}function pr(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}var vr=tr({'\xc0':'A','\xc1':'A','\xc2':'A','\xc3':'A','\xc4':'A','\xc5':'A','\xe0':'a','\xe1':'a','\xe2':'a','\xe3':'a','\xe4':'a','\xe5':'a','\xc7':'C','\xe7':'c','\xd0':'D','\xf0':'d','\xc8':'E','\xc9':'E','\xca':'E','\xcb':'E','\xe8':'e','\xe9':'e','\xea':'e','\xeb':'e','\xcc':'I','\xcd':'I','\xce':'I','\xcf':'I','\xec':'i','\xed':'i','\xee':'i','\xef':'i','\xd1':'N','\xf1':'n','\xd2':'O','\xd3':'O','\xd4':'O','\xd5':'O','\xd6':'O','\xd8':'O','\xf2':'o','\xf3':'o','\xf4':'o','\xf5':'o','\xf6':'o','\xf8':'o','\xd9':'U','\xda':'U','\xdb':'U','\xdc':'U','\xf9':'u','\xfa':'u','\xfb':'u','\xfc':'u','\xdd':'Y','\xfd':'y','\xff':'y','\xc6':'Ae','\xe6':'ae','\xde':'Th','\xfe':'th','\xdf':'ss',"\u0100":'A',"\u0102":'A',"\u0104":'A',"\u0101":'a',"\u0103":'a',"\u0105":'a',"\u0106":'C',"\u0108":'C',"\u010a":'C',"\u010c":'C',"\u0107":'c',"\u0109":'c',"\u010b":'c',"\u010d":'c',"\u010e":'D',"\u0110":'D',"\u010f":'d',"\u0111":'d',"\u0112":'E',"\u0114":'E',"\u0116":'E',"\u0118":'E',"\u011a":'E',"\u0113":'e',"\u0115":'e',"\u0117":'e',"\u0119":'e',"\u011b":'e',"\u011c":'G',"\u011e":'G',"\u0120":'G',"\u0122":'G',"\u011d":'g',"\u011f":'g',"\u0121":'g',"\u0123":'g',"\u0124":'H',"\u0126":'H',"\u0125":'h',"\u0127":'h',"\u0128":'I',"\u012a":'I',"\u012c":'I',"\u012e":'I',"\u0130":'I',"\u0129":'i',"\u012b":'i',"\u012d":'i',"\u012f":'i',"\u0131":'i',"\u0134":'J',"\u0135":'j',"\u0136":'K',"\u0137":'k',"\u0138":'k',"\u0139":'L',"\u013b":'L',"\u013d":'L',"\u013f":'L',"\u0141":'L',"\u013a":'l',"\u013c":'l',"\u013e":'l',"\u0140":'l',"\u0142":'l',"\u0143":'N',"\u0145":'N',"\u0147":'N',"\u014a":'N',"\u0144":'n',"\u0146":'n',"\u0148":'n',"\u014b":'n',"\u014c":'O',"\u014e":'O',"\u0150":'O',"\u014d":'o',"\u014f":'o',"\u0151":'o',"\u0154":'R',"\u0156":'R',"\u0158":'R',"\u0155":'r',"\u0157":'r',"\u0159":'r',"\u015a":'S',"\u015c":'S',"\u015e":'S',"\u0160":'S',"\u015b":'s',"\u015d":'s',"\u015f":'s',"\u0161":'s',"\u0162":'T',"\u0164":'T',"\u0166":'T',"\u0163":'t',"\u0165":'t',"\u0167":'t',"\u0168":'U',"\u016a":'U',"\u016c":'U',"\u016e":'U',"\u0170":'U',"\u0172":'U',"\u0169":'u',"\u016b":'u',"\u016d":'u',"\u016f":'u',"\u0171":'u',"\u0173":'u',"\u0174":'W',"\u0175":'w',"\u0176":'Y',"\u0177":'y',"\u0178":'Y',"\u0179":'Z',"\u017b":'Z',"\u017d":'Z',"\u017a":'z',"\u017c":'z',"\u017e":'z',"\u0132":'IJ',"\u0133":'ij',"\u0152":'Oe',"\u0153":'oe',"\u0149":"'n","\u017f":'s'}),_r=tr({'&':'&','<':'<','>':'>','"':'"',"'":'''});function gr(n){return'\\'+_t[n]}function dr(n,r){return null==n?t:n[r]}function yr(n){return ct.test(n)}function xr(n){return lt.test(n)}function br(n){for(var t,r=[];!(t=n.next()).done;)r.push(t.value);return r}function wr(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function mr(n,t){return function(r){return n(t(r))}}function jr(n,t){for(var r=-1,e=n.length,u=0,i=[];++r','"':'"',''':"'"});function Lr(n){for(var t=ft.lastIndex=0;ft.test(n);)++t;return t}function Wr(n){return n.match(ft)||[]}function Cr(n){return n.match(at)||[]}var Ur=(function n(u){var i,Un=(u=null==u?bt:Ur.defaults(bt.Object(),u,Ur.pick(bt,st))).Array,$n=u.Date,Qn=u.Error,Xn=u.Function,nt=u.Math,tt=u.Object,rt=u.RegExp,et=u.String,ut=u.TypeError,ft=Un.prototype,at=Xn.prototype,ct=tt.prototype,lt=u['__core-js_shared__'],_t=at.toString,yt=ct.hasOwnProperty,xt=0,wt=(i=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||''))?'Symbol(src)_1.'+i:'',mt=ct.toString,At=_t.call(tt),kt=bt._,qt=rt('^'+_t.call(yt).replace(Ln,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$'),Kt=jt?u.Buffer:t,tr=u.Symbol,zr=u.Uint8Array,Lr=Kt?Kt.allocUnsafe:t,Wr=mr(tt.getPrototypeOf,tt),Br=tt.create,Tr=ct.propertyIsEnumerable,Dr=ft.splice,$r=tr?tr.isConcatSpreadable:t,Mr=tr?tr.iterator:t,Fr=tr?tr.toStringTag:t,Nr=(function(){try{var n=so(tt,'defineProperty');return n({},'',{}),n}catch(n){}})(),Pr=u.clearTimeout!==bt.clearTimeout&&u.clearTimeout,Zr=$n&&$n.now!==bt.Date.now&&$n.now,qr=u.setTimeout!==bt.setTimeout&&u.setTimeout,Kr=nt.ceil,Vr=nt.floor,Gr=tt.getOwnPropertySymbols,Hr=Kt?Kt.isBuffer:t,Jr=u.isFinite,Yr=ft.join,Qr=mr(tt.keys,tt),Xr=nt.max,ne=nt.min,te=$n.now,re=u.parseInt,ee=nt.random,ue=ft.reverse,ie=so(u,'DataView'),oe=so(u,'Map'),fe=so(u,'Promise'),ae=so(u,'Set'),ce=so(u,'WeakMap'),le=so(tt,'create'),se=ce&&new ce,he={},pe=Go(ie),ve=Go(oe),_e=Go(fe),ge=Go(ae),de=Go(ce),ye=tr?tr.prototype:t,xe=ye?ye.valueOf:t,be=ye?ye.toString:t;function we(n){if(pa(n)&&!ra(n)&&!(n instanceof ke)){if(n instanceof Ae)return n;if(yt.call(n,'__wrapped__'))return Jo(n)}return new Ae(n)}var me=(function(){function n(){}return function(r){if(!ha(r))return{};if(Br)return Br(r);n.prototype=r;var e=new n;return n.prototype=t,e}})();function je(){}function Ae(n,r){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!r,this.__index__=0,this.__values__=t}function ke(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=B,this.__views__=[]}function ze(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t=r?n:r)),n}function Ze(n,r,e,u,i,o){var f,a=r&s,c=r&h,l=r&p;if(e&&(f=i?e(n,u,i,o):e(n)),f!==t)return f;if(!ha(n))return n;var v=ra(n);if(v){if(f=bo(n),!a)return mi(n,f)}else{var _=_o(n),g=_==V||_==G;if(oa(n))return vi(n,a);if(_==Q||_==M||g&&!i){if(f=c||g?{}:wo(n),!a)return c?ki(n,Me(f,n)):Ai(n,$e(f,n))}else{if(!vt[_])return i?n:{};f=mo(n,_,a)}}o||(o=new Ee);var d=o.get(n);if(d)return d;o.set(n,f),ya(n)?n.forEach(function(t){f.add(Ze(t,r,e,t,n,o))}):va(n)&&n.forEach(function(t,u){f.set(u,Ze(t,r,e,u,n,o))});var y=v?t:(l?c?uo:eo:c?Za:Pa)(n);return Ct(y||n,function(t,u){y&&(t=n[u=t]),Be(f,u,Ze(t,r,e,u,n,o))}),f}function qe(n){var t=Pa(n);return function(r){return Ke(r,n,t)}}function Ke(n,r,e){var u=e.length;if(null==n)return!u;for(n=tt(n);u--;){var i=e[u],o=r[i],f=n[i];if(f===t&&!(i in n)||!o(f))return!1}return!0}function Ve(n,r,e){if('function'!=typeof n)throw new ut(o);return Fo(function(){n.apply(t,e)},r)}function Ge(n,t,e,u){var i=-1,o=Dt,f=!0,a=n.length,c=[],l=t.length;if(!a)return c;e&&(t=Mt(t,ar(e))),u?(o=$t,f=!1):t.length>=r&&(o=lr,f=!1,t=new Re(t));n:for(;++i-1},Oe.prototype.set=function(n,t){var r=this.__data__,e=Te(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},Ie.prototype.clear=function(){this.size=0,this.__data__={hash:new ze,map:new(oe||Oe),string:new ze}},Ie.prototype.delete=function(n){var t=co(this,n).delete(n);return this.size-=t?1:0,t},Ie.prototype.get=function(n){return co(this,n).get(n)},Ie.prototype.has=function(n){return co(this,n).has(n)},Ie.prototype.set=function(n,t){var r=co(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this},Re.prototype.add=Re.prototype.push=function(n){return this.__data__.set(n,a),this},Re.prototype.has=function(n){return this.__data__.has(n)},Ee.prototype.clear=function(){this.__data__=new Oe,this.size=0},Ee.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},Ee.prototype.get=function(n){return this.__data__.get(n)},Ee.prototype.has=function(n){return this.__data__.has(n)},Ee.prototype.set=function(n,t){var r=this.__data__;if(r instanceof Oe){var e=r.__data__;if(!oe||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new Ie(e)}return r.set(n,t),this.size=r.size,this};var He=Ii(uu),Je=Ii(iu,!0);function Ye(n,t){var r=!0;return He(n,function(n,e,u){return r=!!t(n,e,u)}),r}function Qe(n,r,e){for(var u=-1,i=n.length;++ui?0:i+e),(u=u===t||u>i?i:za(u))<0&&(u+=i),u=e>u?0:Oa(u);e0&&r(f)?t>1?tu(f,t-1,r,e,u):Ft(u,f):e||(u[u.length]=f)}return u}var ru=Ri(),eu=Ri(!0);function uu(n,t){return n&&ru(n,t,Pa)}function iu(n,t){return n&&eu(n,t,Pa)}function ou(n,t){return Tt(t,function(t){return ca(n[t])})}function fu(n,r){for(var e=0,u=(r=li(r,n)).length;null!=n&&et}function su(n,t){return null!=n&&yt.call(n,t)}function hu(n,t){return null!=n&&t in tt(n)}function pu(n,t,r){return n>=ne(t,r)&&n=120&&s.length>=120)?new Re(f&&s):t}s=n[0];var h=-1,p=a[0];n:for(;++h-1;)f!==n&&Dr.call(f,a,1),Dr.call(n,a,1);return n}function Tu(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;ko(u)?Dr.call(n,u,1):ri(n,u)}}return n}function Du(n,t){return n+Vr(ee()*(t-n+1))}function $u(n,t,r,e){for(var u=-1,i=Xr(Kr((t-n)/(r||1)),0),o=Un(i);i--;)o[e?i:++u]=n,n+=r;return o}function Mu(n,t){var r='';if(!n||t<1||t>W)return r;do{t%2&&(r+=n),(t=Vr(t/2))&&(n+=n)}while(t);return r}function Fu(n,t){return No(Bo(n,t,_c),n+'')}function Nu(n){return Le(Qa(n))}function Pu(n,t){var r=Qa(n);return qo(r,Pe(t,0,r.length))}function Zu(n,r,e,u){if(!ha(n))return n;for(var i=-1,o=(r=li(r,n)).length,f=o-1,a=n;null!=a&&++iu?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=Un(u);++e>>1,o=n[i];null!==o&&!ba(o)&&(r?o<=t:o=r){var l=t?null:Vi(n);if(l)return Ar(l);f=!1,i=lr,c=new Re}else c=t?[]:a;n:for(;++u=u?n:Gu(n,r,e)}var pi=Pr||function(n){return bt.clearTimeout(n)};function vi(n,t){if(t)return n.slice();var r=n.length,e=Lr?Lr(r):new n.constructor(r);return n.copy(e),e}function _i(n){var t=new n.constructor(n.byteLength);return new zr(t).set(new zr(n)),t}function gi(n,t){var r=t?_i(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.byteLength)}function di(n,t){var r=t?_i(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function yi(n,r){if(n!==r){var e=n!==t,u=null===n,i=n==n,o=ba(n),f=r!==t,a=null===r,c=r==r,l=ba(r);if(!a&&!l&&!o&&n>r||o&&f&&c&&!a&&!l||u&&f&&c||!e&&c||!i)return 1;if(!u&&!o&&!l&&n=f?a:a*('desc'==r[e]?-1:1)}return n.index-t.index}function bi(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,a=t.length,c=Xr(i-o,0),l=Un(a+c),s=!e;++f1?e[i-1]:t,f=i>2?e[2]:t;for(o=n.length>3&&'function'==typeof o?(i--,o):t,f&&zo(e[0],e[1],f)&&(o=i<3?t:o,i=1),r=tt(r);++u-1?i[o?r[f]:f]:t}}function Bi(n){return ro(function(r){var e=r.length,u=e,i=Ae.prototype.thru;for(n&&r.reverse();u--;){var f=r[u];if('function'!=typeof f)throw new ut(o);if(i&&!a&&'wrapper'==oo(f))var a=new Ae([],!0)}for(u=a?u:e;++u1&&d.reverse(),s&&ca))return!1;var l=o.get(n),s=o.get(r);if(l&&s)return l==r&&s==n;var h=-1,p=!0,g=e&_?new Re:t;for(o.set(n,r),o.set(r,n);++h1?'& ':'')+t[e],t=t.join(r>2?', ':' '),n.replace(Bn,'{\n/* [wrapped with '+t+'] */\n')}function Ao(n){return ra(n)||ta(n)||!!($r&&n&&n[$r])}function ko(n,t){var r=typeof n;return!!(t=null==t?W:t)&&('number'==r||'symbol'!=r&&Gn.test(n))&&n>-1&&n%1==0&&n0){if(++r>=I)return arguments[0]}else r=0;return n.apply(t,arguments)}}function qo(n,r){var e=-1,u=n.length,i=u-1;for(r=r===t?u:r;++e1?n[r-1]:t;return df(n,e='function'==typeof e?(n.pop(),e):t)});function Af(n){var t=we(n);return t.__chain__=!0,t}function kf(n,t){return t(n)}var zf=ro(function(n){var r=n.length,e=r?n[0]:0,u=this.__wrapped__,i=function(t){return Ne(t,n)};return!(r>1||this.__actions__.length)&&u instanceof ke&&ko(e)?((u=u.slice(e,+e+(r?1:0))).__actions__.push({func:kf,args:[i],thisArg:t}),new Ae(u,this.__chain__).thru(function(n){return r&&!n.length&&n.push(t),n})):this.thru(i)});var Of=zi(function(n,t,r){yt.call(n,r)?++n[r]:Fe(n,r,1)});var If=Ui(nf),Rf=Ui(tf);function Ef(n,t){return(ra(n)?Ct:He)(n,ao(t,3))}function Sf(n,t){return(ra(n)?Ut:Je)(n,ao(t,3))}var Lf=zi(function(n,t,r){yt.call(n,r)?n[r].push(t):Fe(n,r,[t])});var Wf=Fu(function(n,t,r){var e=-1,u='function'==typeof t,i=ua(n)?Un(n.length):[];return He(n,function(n){i[++e]=u?Lt(t,n,r):gu(n,t,r)}),i}),Cf=zi(function(n,t,r){Fe(n,r,t)});function Uf(n,t){return(ra(n)?Mt:zu)(n,ao(t,3))}var Bf=zi(function(n,t,r){n[r?0:1].push(t)},function(){return[[],[]]});var Tf=Fu(function(n,t){if(null==n)return[];var r=t.length;return r>1&&zo(n,t[0],t[1])?t=[]:r>2&&zo(t[0],t[1],t[2])&&(t=[t[0]]),Lu(n,tu(t,1),[])}),Df=Zr||function(){return bt.Date.now()};function $f(n,r,e){return r=e?t:r,r=n&&null==r?n.length:r,Hi(n,j,t,t,t,t,r)}function Mf(n,r){var e;if('function'!=typeof r)throw new ut(o);return n=za(n),function(){return--n>0&&(e=r.apply(this,arguments)),n<=1&&(r=t),e}}var Ff=Fu(function(n,t,r){var e=g;if(r.length){var u=jr(r,fo(Ff));e|=w}return Hi(n,e,t,r,u)}),Nf=Fu(function(n,t,r){var e=3;if(r.length){var u=jr(r,fo(Nf));e|=w}return Hi(t,e,n,r,u)});function Pf(n,r,e){var u,i,f,a,c,l,s=0,h=!1,p=!1,v=!0;if('function'!=typeof n)throw new ut(o);function _(r){var e=u,o=i;return u=i=t,s=r,a=n.apply(o,e)}function g(n){return s=n,c=Fo(x,r),h?_(n):a}function d(n){var t=r-(n-l);return p?ne(t,f-(n-s)):t}function y(n){var e=n-l;return l===t||e>=r||e<0||p&&n-s>=f}function x(){var n=Df();if(y(n))return b(n);c=Fo(x,d(n))}function b(n){return c=t,v&&u?_(n):(u=i=t,a)}function w(){var n=Df(),e=y(n);if(u=arguments,i=this,l=n,e){if(c===t)return g(l);if(p)return pi(c),c=Fo(x,r),_(l)}return c===t&&(c=Fo(x,r)),a}return r=Ia(r)||0,ha(e)&&(h=!!e.leading,f=(p='maxWait'in e)?Xr(Ia(e.maxWait)||0,r):f,v='trailing'in e?!!e.trailing:v),w.cancel=function(){c!==t&&pi(c),s=0,u=l=i=c=t},w.flush=function(){return c===t?a:b(Df())},w}var Zf=Fu(function(n,t){return Ve(n,1,t)}),qf=Fu(function(n,t,r){return Ve(n,Ia(t)||0,r)});function Kf(n,t){if('function'!=typeof n||null!=t&&'function'!=typeof t)throw new ut(o);var r=function r(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(Kf.Cache||Ie),r}function Vf(n){if('function'!=typeof n)throw new ut(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Kf.Cache=Ie;var Gf=si(function(n,t){var r=(t=1==t.length&&ra(t[0])?Mt(t[0],ar(ao())):Mt(tu(t,1),ar(ao()))).length;return Fu(function(e){for(var u=-1,i=ne(e.length,r);++u=t}),ta=du((function(){return arguments})())?du:function(n){return pa(n)&&yt.call(n,'callee')&&!Tr.call(n,'callee')},ra=Un.isArray,ea=zt?ar(zt):function(n){return pa(n)&&cu(n)==an};function ua(n){return null!=n&&sa(n.length)&&!ca(n)}function ia(n){return pa(n)&&ua(n)}var oa=Hr||Ic,fa=Ot?ar(Ot):function(n){return pa(n)&&cu(n)==Z};function aa(n){if(!pa(n))return!1;var t=cu(n);return t==K||t==q||'string'==typeof n.message&&'string'==typeof n.name&&!ga(n)}function ca(n){if(!ha(n))return!1;var t=cu(n);return t==V||t==G||t==N||t==X}function la(n){return'number'==typeof n&&n==za(n)}function sa(n){return'number'==typeof n&&n>-1&&n%1==0&&n<=W}function ha(n){var t=typeof n;return null!=n&&('object'==t||'function'==t)}function pa(n){return null!=n&&'object'==typeof n}var va=It?ar(It):function(n){return pa(n)&&_o(n)==H};function _a(n){return'number'==typeof n||pa(n)&&cu(n)==J}function ga(n){if(!pa(n)||cu(n)!=Q)return!1;var t=Wr(n);if(null===t)return!0;var r=yt.call(t,'constructor')&&t.constructor;return'function'==typeof r&&r instanceof r&&_t.call(r)==At}var da=Rt?ar(Rt):function(n){return pa(n)&&cu(n)==nn};var ya=Et?ar(Et):function(n){return pa(n)&&_o(n)==tn};function xa(n){return'string'==typeof n||!ra(n)&&pa(n)&&cu(n)==rn}function ba(n){return'symbol'==typeof n||pa(n)&&cu(n)==en}var wa=St?ar(St):function(n){return pa(n)&&sa(n.length)&&!!pt[cu(n)]};var ma=Zi(ku),ja=Zi(function(n,t){return n<=t});function Aa(n){if(!n)return[];if(ua(n))return xa(n)?Rr(n):mi(n);if(Mr&&n[Mr])return br(n[Mr]());var t=_o(n);return(t==H?wr:t==tn?Ar:Qa)(n)}function ka(n){return n?(n=Ia(n))===L||n===-1/0?(n<0?-1:1)*C:n==n?n:0:0===n?n:0}function za(n){var t=ka(n),r=t%1;return t==t?r?t-r:t:0}function Oa(n){return n?Pe(za(n),0,B):0}function Ia(n){if('number'==typeof n)return n;if(ba(n))return U;if(ha(n)){var t='function'==typeof n.valueOf?n.valueOf():n;n=ha(t)?t+'':t}if('string'!=typeof n)return 0===n?n:+n;n=fr(n);var r=qn.test(n);return r||Vn.test(n)?dt(n.slice(2),r?2:8):Zn.test(n)?U:+n}function Ra(n){return ji(n,Za(n))}function Ea(n){return null==n?'':ni(n)}var Sa=Oi(function(n,t){if(Eo(t)||ua(t))ji(t,Pa(t),n);else for(var r in t)yt.call(t,r)&&Be(n,r,t[r])}),La=Oi(function(n,t){ji(t,Za(t),n)}),Wa=Oi(function(n,t,r,e){ji(t,Za(t),n,e)}),Ca=Oi(function(n,t,r,e){ji(t,Pa(t),n,e)}),Ua=ro(Ne);var Ba=Fu(function(n,r){n=tt(n);var e=-1,u=r.length,i=u>2?r[2]:t;for(i&&zo(r[0],r[1],i)&&(u=1);++e1),t}),ji(n,uo(n),r),e&&(r=Ze(r,7,Qi));for(var u=t.length;u--;)ri(r,t[u]);return r});var Ga=ro(function(n,t){return null==n?{}:Wu(n,t)});function Ha(n,t){if(null==n)return{};var r=Mt(uo(n),function(n){return[n]});return t=ao(t),Cu(n,r,function(n,r){return t(n,r[0])})}var Ja=Gi(Pa),Ya=Gi(Za);function Qa(n){return null==n?[]:cr(n,Pa(n))}var Xa=Li(function(n,t,r){return t=t.toLowerCase(),n+(r?nc(t):t)});function nc(n){return ac(Ea(n).toLowerCase())}function tc(n){return(n=Ea(n))&&n.replace(Hn,vr).replace(ot,'')}var rc=Li(function(n,t,r){return n+(r?'-':'')+t.toLowerCase()}),ec=Li(function(n,t,r){return n+(r?' ':'')+t.toLowerCase()}),uc=Si('toLowerCase');var ic=Li(function(n,t,r){return n+(r?'_':'')+t.toLowerCase()});var oc=Li(function(n,t,r){return n+(r?' ':'')+ac(t)});var fc=Li(function(n,t,r){return n+(r?' ':'')+t.toUpperCase()}),ac=Si('toUpperCase');function cc(n,r,e){return n=Ea(n),(r=e?t:r)===t?xr(n)?Cr(n):Vt(n):n.match(r)||[]}var lc=Fu(function(n,r){try{return Lt(n,t,r)}catch(n){return aa(n)?n:new Qn(n)}}),sc=ro(function(n,t){return Ct(t,function(t){t=Vo(t),Fe(n,t,Ff(n[t],n))}),n});function hc(n){return function(){return n}}var pc=Bi(),vc=Bi(!0);function _c(n){return n}function gc(n){return mu('function'==typeof n?n:Ze(n,s))}var dc=Fu(function(n,t){return function(r){return gu(r,n,t)}}),yc=Fu(function(n,t){return function(r){return gu(n,r,t)}});function xc(n,t,r){var e=Pa(t),u=ou(t,e);null!=r||ha(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=ou(t,Pa(t)));var i=!(ha(r)&&'chain'in r&&!r.chain),o=ca(n);return Ct(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=mi(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,Ft([this.value()],arguments))})}),n}function bc(){}var wc=Mi(Mt),mc=Mi(Bt),jc=Mi(Zt);function Ac(n){return Oo(n)?nr(Vo(n)):Uu(n)}var kc=Pi(),zc=Pi(!0);function Oc(){return[]}function Ic(){return!1}var Rc=$i(function(n,t){return n+t},0),Ec=Ki('ceil'),Sc=$i(function(n,t){return n/t},1),Lc=Ki('floor');var Wc,Cc=$i(function(n,t){return n*t},1),Uc=Ki('round'),Bc=$i(function(n,t){return n-t},0);return we.after=function(n,t){if('function'!=typeof t)throw new ut(o);return n=za(n),function(){if(--n<1)return t.apply(this,arguments)}},we.ary=$f,we.assign=Sa,we.assignIn=La,we.assignInWith=Wa,we.assignWith=Ca,we.at=Ua,we.before=Mf,we.bind=Ff,we.bindAll=sc,we.bindKey=Nf,we.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return ra(n)?n:[n]},we.chain=Af,we.chunk=function(n,r,e){r=(e?zo(n,r,e):r===t)?1:Xr(za(r),0);var u=null==n?0:n.length;if(!u||r<1)return[];for(var i=0,o=0,f=Un(Kr(u/r));i>>0)?(n=Ea(n))&&('string'==typeof r||null!=r&&!da(r))&&!(r=ni(r))&&yr(n)?hi(Rr(n),0,e):n.split(r,e):[]},we.spread=function(n,t){if('function'!=typeof n)throw new ut(o);return t=null==t?0:Xr(za(t),0),Fu(function(r){var e=r[t],u=hi(r,0,t);return e&&Ft(u,e),Lt(n,this,u)})},we.tail=function(n){var t=null==n?0:n.length;return t?Gu(n,1,t):[]},we.take=function(n,r,e){return n&&n.length?Gu(n,0,(r=e||r===t?1:za(r))<0?0:r):[]},we.takeRight=function(n,r,e){var u=null==n?0:n.length;return u?Gu(n,(r=u-(r=e||r===t?1:za(r)))<0?0:r,u):[]},we.takeRightWhile=function(n,t){return n&&n.length?ui(n,ao(t,3),!1,!0):[]},we.takeWhile=function(n,t){return n&&n.length?ui(n,ao(t,3)):[]},we.tap=function(n,t){return t(n),n},we.throttle=function(n,t,r){var e=!0,u=!0;if('function'!=typeof n)throw new ut(o);return ha(r)&&(e='leading'in r?!!r.leading:e,u='trailing'in r?!!r.trailing:u),Pf(n,t,{leading:e,maxWait:t,trailing:u})},we.thru=kf,we.toArray=Aa,we.toPairs=Ja,we.toPairsIn=Ya,we.toPath=function(n){return ra(n)?Mt(n,Vo):ba(n)?[n]:mi(Ko(Ea(n)))},we.toPlainObject=Ra,we.transform=function(n,t,r){var e=ra(n),u=e||oa(n)||wa(n);if(t=ao(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:ha(n)&&ca(i)?me(Wr(n)):{}}return(u?Ct:uu)(n,function(n,e,u){return t(r,n,e,u)}),r},we.unary=function(n){return $f(n,1)},we.union=pf,we.unionBy=vf,we.unionWith=_f,we.uniq=function(n){return n&&n.length?ti(n):[]},we.uniqBy=function(n,t){return n&&n.length?ti(n,ao(t,2)):[]},we.uniqWith=function(n,r){return r='function'==typeof r?r:t,n&&n.length?ti(n,t,r):[]},we.unset=function(n,t){return null==n||ri(n,t)},we.unzip=gf,we.unzipWith=df,we.update=function(n,t,r){return null==n?n:ei(n,t,ci(r))},we.updateWith=function(n,r,e,u){return u='function'==typeof u?u:t,null==n?n:ei(n,r,ci(e),u)},we.values=Qa,we.valuesIn=function(n){return null==n?[]:cr(n,Za(n))},we.without=yf,we.words=cc,we.wrap=function(n,t){return Hf(ci(t),n)},we.xor=xf,we.xorBy=bf,we.xorWith=wf,we.zip=mf,we.zipObject=function(n,t){return fi(n||[],t||[],Be)},we.zipObjectDeep=function(n,t){return fi(n||[],t||[],Zu)},we.zipWith=jf,we.entries=Ja,we.entriesIn=Ya,we.extend=La,we.extendWith=Wa,xc(we,we),we.add=Rc,we.attempt=lc,we.camelCase=Xa,we.capitalize=nc,we.ceil=Ec,we.clamp=function(n,r,e){return e===t&&(e=r,r=t),e!==t&&(e=(e=Ia(e))==e?e:0),r!==t&&(r=(r=Ia(r))==r?r:0),Pe(Ia(n),r,e)},we.clone=function(n){return Ze(n,p)},we.cloneDeep=function(n){return Ze(n,5)},we.cloneDeepWith=function(n,r){return Ze(n,5,r='function'==typeof r?r:t)},we.cloneWith=function(n,r){return Ze(n,p,r='function'==typeof r?r:t)},we.conformsTo=function(n,t){return null==t||Ke(n,t,Pa(t))},we.deburr=tc,we.defaultTo=function(n,t){return null==n||n!=n?t:n},we.divide=Sc,we.endsWith=function(n,r,e){n=Ea(n),r=ni(r);var u=n.length,i=e=e===t?u:Pe(za(e),0,u);return(e-=r.length)>=0&&n.slice(e,i)==r},we.eq=Qf,we.escape=function(n){return(n=Ea(n))&&kn.test(n)?n.replace(jn,_r):n},we.escapeRegExp=function(n){return(n=Ea(n))&&Wn.test(n)?n.replace(Ln,'\\$&'):n},we.every=function(n,r,e){var u=ra(n)?Bt:Ye;return e&&zo(n,r,e)&&(r=t),u(n,ao(r,3))},we.find=If,we.findIndex=nf,we.findKey=function(n,t){return Gt(n,ao(t,3),uu)},we.findLast=Rf,we.findLastIndex=tf,we.findLastKey=function(n,t){return Gt(n,ao(t,3),iu)},we.floor=Lc,we.forEach=Ef,we.forEachRight=Sf,we.forIn=function(n,t){return null==n?n:ru(n,ao(t,3),Za)},we.forInRight=function(n,t){return null==n?n:eu(n,ao(t,3),Za)},we.forOwn=function(n,t){return n&&uu(n,ao(t,3))},we.forOwnRight=function(n,t){return n&&iu(n,ao(t,3))},we.get=Da,we.gt=Xf,we.gte=na,we.has=function(n,t){return null!=n&&xo(n,t,su)},we.hasIn=$a,we.head=ef,we.identity=_c,we.includes=function(n,t,r,e){n=ua(n)?n:Qa(n),r=r&&!e?za(r):0;var u=n.length;return r<0&&(r=Xr(u+r,0)),xa(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&Jt(n,t,r)>-1},we.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return-1;var u=null==r?0:za(r);return u<0&&(u=Xr(e+u,0)),Jt(n,t,u)},we.inRange=function(n,r,e){return r=ka(r),e===t?(e=r,r=0):e=ka(e),pu(n=Ia(n),r,e)},we.invoke=Na,we.isArguments=ta,we.isArray=ra,we.isArrayBuffer=ea,we.isArrayLike=ua,we.isArrayLikeObject=ia,we.isBoolean=function(n){return!0===n||!1===n||pa(n)&&cu(n)==P},we.isBuffer=oa,we.isDate=fa,we.isElement=function(n){return pa(n)&&1===n.nodeType&&!ga(n)},we.isEmpty=function(n){if(null==n)return!0;if(ua(n)&&(ra(n)||'string'==typeof n||'function'==typeof n.splice||oa(n)||wa(n)||ta(n)))return!n.length;var t=_o(n);if(t==H||t==tn)return!n.size;if(Eo(n))return!ju(n).length;for(var r in n)if(yt.call(n,r))return!1;return!0},we.isEqual=function(n,t){return yu(n,t)},we.isEqualWith=function(n,r,e){var u=(e='function'==typeof e?e:t)?e(n,r):t;return u===t?yu(n,r,t,e):!!u},we.isError=aa,we.isFinite=function(n){return'number'==typeof n&&Jr(n)},we.isFunction=ca,we.isInteger=la,we.isLength=sa,we.isMap=va,we.isMatch=function(n,t){return n===t||bu(n,t,lo(t))},we.isMatchWith=function(n,r,e){return e='function'==typeof e?e:t,bu(n,r,lo(r),e)},we.isNaN=function(n){return _a(n)&&n!=+n},we.isNative=function(n){if(Ro(n))throw new Qn(e);return wu(n)},we.isNil=function(n){return null==n},we.isNull=function(n){return null===n},we.isNumber=_a,we.isObject=ha,we.isObjectLike=pa,we.isPlainObject=ga,we.isRegExp=da,we.isSafeInteger=function(n){return la(n)&&n>=-9007199254740991&&n<=W},we.isSet=ya,we.isString=xa,we.isSymbol=ba,we.isTypedArray=wa,we.isUndefined=function(n){return n===t},we.isWeakMap=function(n){return pa(n)&&_o(n)==on},we.isWeakSet=function(n){return pa(n)&&cu(n)==fn},we.join=function(n,t){return null==n?'':Yr.call(n,t)},we.kebabCase=rc,we.last=af,we.lastIndexOf=function(n,r,e){var u=null==n?0:n.length;if(!u)return-1;var i=u;return e!==t&&(i=(i=za(e))<0?Xr(u+i,0):ne(i,u-1)),r==r?Or(n,r,i):Ht(n,Qt,i,!0)},we.lowerCase=ec,we.lowerFirst=uc,we.lt=ma,we.lte=ja,we.max=function(n){return n&&n.length?Qe(n,_c,lu):t},we.maxBy=function(n,r){return n&&n.length?Qe(n,ao(r,2),lu):t},we.mean=function(n){return Xt(n,_c)},we.meanBy=function(n,t){return Xt(n,ao(t,2))},we.min=function(n){return n&&n.length?Qe(n,_c,ku):t},we.minBy=function(n,r){return n&&n.length?Qe(n,ao(r,2),ku):t},we.stubArray=Oc,we.stubFalse=Ic,we.stubObject=function(){return{}},we.stubString=function(){return''},we.stubTrue=function(){return!0},we.multiply=Cc,we.nth=function(n,r){return n&&n.length?Su(n,za(r)):t},we.noConflict=function(){return bt._===this&&(bt._=kt),this},we.noop=bc,we.now=Df,we.pad=function(n,t,r){n=Ea(n);var e=(t=za(t))?Ir(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return Fi(Vr(u),r)+n+Fi(Kr(u),r)},we.padEnd=function(n,t,r){n=Ea(n);var e=(t=za(t))?Ir(n):0;return t&&er){var u=n;n=r,r=u}if(e||n%1||r%1){var i=ee();return ne(n+i*(r-n+gt('1e-'+((i+'').length-1))),r)}return Du(n,r)},we.reduce=function(n,t,r){var e=ra(n)?Nt:rr,u=arguments.length<3;return e(n,ao(t,4),r,u,He)},we.reduceRight=function(n,t,r){var e=ra(n)?Pt:rr,u=arguments.length<3;return e(n,ao(t,4),r,u,Je)},we.repeat=function(n,r,e){return r=(e?zo(n,r,e):r===t)?1:za(r),Mu(Ea(n),r)},we.replace=function(){var n=arguments,t=Ea(n[0]);return n.length<3?t:t.replace(n[1],n[2])},we.result=function(n,r,e){var u=-1,i=(r=li(r,n)).length;for(i||(i=1,n=t);++uW)return[];var r=B,e=ne(n,B);t=ao(t),n-=B;for(var u=ir(e,t);++r=o)return n;var a=e-Ir(u);if(a<1)return u;var c=f?hi(f,0,a).join(''):n.slice(0,a);if(i===t)return c+u;if(f&&(a+=c.length-a),da(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=rt(i.source,Ea(Pn.exec(i))+'g')),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,h===t?a:h)}}else if(n.indexOf(ni(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+u},we.unescape=function(n){return(n=Ea(n))&&An.test(n)?n.replace(mn,Sr):n},we.uniqueId=function(n){var t=++xt;return Ea(n)+t},we.upperCase=fc,we.upperFirst=ac,we.each=Ef,we.eachRight=Sf,we.first=ef,xc(we,(Wc={},uu(we,function(n,t){yt.call(we.prototype,t)||(Wc[t]=n)}),Wc),{chain:!1}),we.VERSION="4.17.21",Ct(['bind','bindKey','curry','curryRight','partial','partialRight'],function(n){we[n].placeholder=we}),Ct(['drop','take'],function(n,r){ke.prototype[n]=function(e){e=e===t?1:Xr(za(e),0);var u=this.__filtered__&&!r?new ke(this):this.clone();return u.__filtered__?u.__takeCount__=ne(e,u.__takeCount__):u.__views__.push({size:ne(e,B),type:n+(u.__dir__<0?'Right':'')}),u},ke.prototype[n+'Right']=function(t){return this.reverse()[n](t).reverse()}}),Ct(['filter','map','takeWhile'],function(n,t){var r=t+1,e=r==E||3==r;ke.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:ao(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),Ct(['head','last'],function(n,t){var r='take'+(t?'Right':'');ke.prototype[n]=function(){return this[r](1).value()[0]}}),Ct(['initial','tail'],function(n,t){var r='drop'+(t?'':'Right');ke.prototype[n]=function(){return this.__filtered__?new ke(this):this[r](1)}}),ke.prototype.compact=function(){return this.filter(_c)},ke.prototype.find=function(n){return this.filter(n).head()},ke.prototype.findLast=function(n){return this.reverse().find(n)},ke.prototype.invokeMap=Fu(function(n,t){return'function'==typeof n?new ke(this):this.map(function(r){return gu(r,n,t)})}),ke.prototype.reject=function(n){return this.filter(Vf(ao(n)))},ke.prototype.slice=function(n,r){n=za(n);var e=this;return e.__filtered__&&(n>0||r<0)?new ke(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),r!==t&&(e=(r=za(r))<0?e.dropRight(-r):e.take(r-n)),e)},ke.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},ke.prototype.toArray=function(){return this.take(B)},uu(ke.prototype,function(n,r){var e=/^(?:filter|find|map|reject)|While$/.test(r),u=/^(?:head|last)$/.test(r),i=we[u?'take'+('last'==r?'Right':''):r],o=u||/^find/.test(r);i&&(we.prototype[r]=function(){var r=this.__wrapped__,f=u?[1]:arguments,a=r instanceof ke,c=f[0],l=a||ra(r),s=function(n){var t=i.apply(we,Ft([n],f));return u&&h?t[0]:t};l&&e&&'function'==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){r=_?r:new ke(this);var g=n.apply(r,f);return g.__actions__.push({func:kf,args:[s],thisArg:t}),new Ae(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?u?g.value()[0]:g.value():g)})}),Ct(['pop','push','shift','sort','splice','unshift'],function(n){var t=ft[n],r=/^(?:push|sort|unshift)$/.test(n)?'tap':'thru',e=/^(?:pop|shift)$/.test(n);we.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(ra(u)?u:[],n)}return this[r](function(r){return t.apply(ra(r)?r:[],n)})}}),uu(ke.prototype,function(n,t){var r=we[t];if(r){var e=r.name+'';yt.call(he,e)||(he[e]=[]),he[e].push({name:t,func:r})}}),he[Ti(t,d).name]=[{name:'wrapper',func:t}],ke.prototype.clone=function(){var n=new ke(this.__wrapped__);return n.__actions__=mi(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=mi(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=mi(this.__views__),n},ke.prototype.reverse=function(){if(this.__filtered__){var n=new ke(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},ke.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=ra(n),e=t<0,u=r?n.length:0,i=go(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=ne(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return ii(n,this.__actions__);var v=[];n:for(;a--&&h=this.__values__.length;return{done:n,value:n?t:this.__values__[this.__index__++]}},we.prototype.plant=function(n){for(var r,e=this;e instanceof je;){var u=Jo(e);u.__index__=0,u.__values__=t,r?i.__wrapped__=u:r=u;var i=u;e=e.__wrapped__}return i.__wrapped__=n,r},we.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof ke){var r=n;return this.__actions__.length&&(r=new ke(this)),(r=r.reverse()).__actions__.push({func:kf,args:[hf],thisArg:t}),new Ae(r,this.__chain__)}return this.thru(hf)},we.prototype.toJSON=we.prototype.valueOf=we.prototype.value=function(){return ii(this.__wrapped__,this.__actions__)},we.prototype.first=we.prototype.head,Mr&&(we.prototype[Mr]=function(){return this}),we})();'function'==typeof define&&'object'==typeof define.amd&&define.amd?(bt._=Ur,define(function(){return Ur})):mt?((mt.exports=Ur)._=Ur,wt._=Ur):bt._=Ur}).call(this)},488,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]),o=t.NativeModules.RNFetchBlob;var n={actionViewIntent:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'text/plain';return'android'===t.Platform.OS?o.actionViewIntent(n,l):Promise.reject('RNFetchBlob.android.actionViewIntent only supports Android.')},getContentIntent:function(n){return'android'===t.Platform.OS?o.getContentIntent(n):Promise.reject('RNFetchBlob.android.getContentIntent only supports Android.')},addCompleteDownload:function(n){return'android'===t.Platform.OS?o.addCompleteDownload(n):Promise.reject('RNFetchBlob.android.addCompleteDownload only supports Android.')},getSDCardDir:function(){return'android'===t.Platform.OS?o.getSDCardDir():Promise.reject('RNFetchBlob.android.getSDCardDir only supports Android.')},getSDCardApplicationDir:function(){return'android'===t.Platform.OS?o.getSDCardApplicationDir():Promise.reject('RNFetchBlob.android.getSDCardApplicationDir only supports Android.')}};e.default=n},489,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]),t=o.NativeModules.RNFetchBlob;var u={openDocument:function(u,n){return'ios'===o.Platform.OS?t.openDocument('file://'+u,n):Promise.reject('RNFetchBlob.previewDocument only supports IOS.')},previewDocument:function(u,n){return'ios'===o.Platform.OS?t.previewDocument('file://'+u,n):Promise.reject('RNFetchBlob.openDocument only supports IOS.')},excludeFromBackupKey:function(o){return t.excludeFromBackupKey('file://'+o)}};e.default=u},490,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),n=function(n){if(window.location='',window.XMLHttpRequest.isRNFBPolyfill||(window.XMLHttpRequest=o.default,console.warn("Use JSONStream will automatically replace window.XMLHttpRequest with RNFetchBlob.polyfill.XMLHttpRequest. You are seeing this warning because you did not replace it manually.")),'string'==typeof n)n=u.default.isFileURI(n)?{url:'JSONStream://'+n,headers:{noCache:!0}}:'JSONStream://'+n;else if('object'==typeof n){var s=n.headers||{};u.default.isFileURI(n.url)&&(s.noCache=!0),n=(0,t.default)(n,{url:'JSONStream://'+n.url,headers:s})}return(0,l.default)(n)};e.default=n},491,[5,6,492,481,469]); -__d(function(_g,_r,_i,_a2,_m,_e,_d){!(function(n,t,e,r,i,u){function o(n,t){return function(){return n.call(this,t.apply(this,arguments))}}function f(n){return function(t){return t[n]}}function c(n,t){return t.apply(u,n)}function a(n){var t=n.length-1,r=e.prototype.slice;if(0==t)return function(){return n.call(this,r.call(arguments))};if(1==t)return function(){return n.call(this,arguments[0],r.call(arguments,1))};var i=e(n.length);return function(){for(var e=0;t>e;e++)i[e]=arguments[e];return i[t]=r.call(arguments,t),n.apply(this,i)}}function s(n){return function(t,e){return n(e,t)}}function l(n,t){return function(e){return n(e)&&t(e)}}function d(){}function h(){return!0}function p(n){return function(){return n}}function v(n,t){return t&&t.constructor===n}function m(n){return n!==u}function b(n,e){return e instanceof t&&k(function(n){return n in e},n)}function g(n,t){return[n,t]}function w(n){return O(n.reduce(s(g),K))}function y(n){return I(function(n,t){return n.unshift(t),n},[],n)}function x(n,t){return t?g(n(P(t)),x(n,Q(t))):K}function I(n,t,e){return e?n(I(n,t,Q(e)),P(e)):t}function L(n,t,e){return(function n(e,r){return e?t(P(e))?(r(P(e)),Q(e)):g(P(e),n(Q(e),r)):K})(n,e||d)}function k(n,t){return!t||n(P(t))&&k(n,Q(t))}function C(n,t){n&&(P(n).apply(null,t),C(Q(n),t))}function O(n){return(function n(t,e){return t?n(Q(t),g(P(t),e)):e})(n,K)}function E(n,t){return t&&(n(P(t))?P(t):E(n,Q(t)))}function j(n){"use strict";function t(){var n=0;X.length>h&&(e("Max buffer length exceeded: textNode"),n=Math.max(n,X.length)),U.length>h&&(e("Max buffer length exceeded: numberNode"),n=Math.max(n,U.length)),N=h-n+K}function e(n){X&&(s(X),l(),X=""),o=r(n+"\nLn: "+Q+"\nCol: "+P+"\nChr: "+f),d(_(u,u,o))}function i(n){return"\r"==n||"\n"==n||" "==n||"\t"==n}var o,f,c,a=n(mn).emit,s=n(bn).emit,l=n(gn).emit,d=n(an).emit,h=65536,p=/[\\"\n]/g,v=0,m=v++,b=v++,g=v++,w=v++,y=v++,x=v++,I=v++,L=v++,k=v++,C=v++,O=v++,E=v++,j=v++,M=v++,R=v++,T=v++,A=v++,q=v++,H=v++,S=v++,B=v,N=h,X="",U="",W=!1,$=!1,z=m,D=[],F=null,G=0,J=0,K=0,P=0,Q=1;n(hn).on(function(n){if(!o){if($)return e("Cannot write after close");var r=0;for(f=n[0];f&&(c=f,f=n[r++]);)switch(K++,"\n"==f?(Q++,P=0):P++,z){case m:if("{"===f)z=g;else if("["===f)z=y;else if(!i(f))return e("Non-whitespace before {[.");continue;case L:case g:if(i(f))continue;if(z===L)D.push(k);else{if("}"===f){s({}),l(),z=D.pop()||b;continue}D.push(w)}if('"'!==f)return e('Malformed object key should start with " ');z=I;continue;case k:case w:if(i(f))continue;if(":"===f)z===w?(D.push(w),X&&(s({}),a(X),X=""),J++):X&&(a(X),X=""),z=b;else if("}"===f)X&&(s(X),l(),X=""),l(),J--,z=D.pop()||b;else{if(","!==f)return e("Bad object");z===w&&D.push(w),X&&(s(X),l(),X=""),z=L}continue;case y:case b:if(i(f))continue;if(z===y){if(s([]),J++,z=b,"]"===f){l(),J--,z=D.pop()||b;continue}D.push(x)}if('"'===f)z=I;else if("{"===f)z=g;else if("["===f)z=y;else if("t"===f)z=C;else if("f"===f)z=j;else if("n"===f)z=A;else if("-"===f)U+=f;else if("0"===f)U+=f,z=B;else{if(-1==="123456789".indexOf(f))return e("Bad value");U+=f,z=B}continue;case x:if(","===f)D.push(x),X&&(s(X),l(),X=""),z=b;else{if("]"!==f){if(i(f))continue;return e("Bad array")}X&&(s(X),l(),X=""),l(),J--,z=D.pop()||b}continue;case I:var u=r-1;n:for(;;){for(;G>0;)if(F+=f,f=n.charAt(r++),4===G?(X+=String.fromCharCode(parseInt(F,16)),G=0,u=r-1):G++,!f)break n;if('"'===f&&!W){z=D.pop()||b,(X+=n.substring(u,r-1))||(s(""),l());break}if(!("\\"!==f||W||(W=!0,X+=n.substring(u,r-1),f=n.charAt(r++))))break;if(W){if(W=!1,"n"===f?X+="\n":"r"===f?X+="\r":"t"===f?X+="\t":"f"===f?X+="\f":"b"===f?X+="\b":"u"===f?(G=1,F=""):X+=f,f=n.charAt(r++),u=r-1,f)continue;break}p.lastIndex=r;var d=p.exec(n);if(!d){r=n.length+1,X+=n.substring(u,r-1);break}if(r=d.index+1,!(f=n.charAt(d.index))){X+=n.substring(u,r-1);break}}continue;case C:if(!f)continue;if("r"!==f)return e("Invalid true started with t"+f);z=O;continue;case O:if(!f)continue;if("u"!==f)return e("Invalid true started with tr"+f);z=E;continue;case E:if(!f)continue;if("e"!==f)return e("Invalid true started with tru"+f);s(!0),l(),z=D.pop()||b;continue;case j:if(!f)continue;if("a"!==f)return e("Invalid false started with f"+f);z=M;continue;case M:if(!f)continue;if("l"!==f)return e("Invalid false started with fa"+f);z=R;continue;case R:if(!f)continue;if("s"!==f)return e("Invalid false started with fal"+f);z=T;continue;case T:if(!f)continue;if("e"!==f)return e("Invalid false started with fals"+f);s(!1),l(),z=D.pop()||b;continue;case A:if(!f)continue;if("u"!==f)return e("Invalid null started with n"+f);z=q;continue;case q:if(!f)continue;if("l"!==f)return e("Invalid null started with nu"+f);z=H;continue;case H:if(!f)continue;if("l"!==f)return e("Invalid null started with nul"+f);s(null),l(),z=D.pop()||b;continue;case S:if("."!==f)return e("Leading zero not followed by .");U+=f,z=B;continue;case B:if(-1!=="0123456789".indexOf(f))U+=f;else if("."===f){if(-1!==U.indexOf("."))return e("Invalid number has two dots");U+=f}else if("e"===f||"E"===f){if(-1!==U.indexOf("e")||-1!==U.indexOf("E"))return e("Invalid number has two exponential");U+=f}else if("+"===f||"-"===f){if("e"!==c&&"E"!==c)return e("Invalid symbol in number");U+=f}else U&&(s(parseFloat(U)),l(),U=""),r--,z=D.pop()||b;continue;default:return e("Unknown state: "+z)}K>=N&&t()}}),n(pn).on(function(){return z==m?(s({}),l(),void($=!0)):((z!==b||0!==J)&&e("Unexpected end"),X&&(s(X),l(),X=""),void($=!0))})}function M(n,t){"use strict";function e(n){return function(t){r=n(r,t)}}var r,i={};for(var u in t)n(u).on(e(t[u]),i);n(fn).on(function(n){var t=P(r),e=Z(t),i=Q(r);i&&(nn(P(i))[e]=n)}),n(cn).on(function(){var n=P(r),t=Z(n),e=Q(r);e&&delete nn(P(e))[t]}),n(vn).on(function(){for(var e in t)n(e).un(i)})}function R(n){var t={};return n&&n.split("\r\n").forEach(function(n){var e=n.indexOf(": ");t[n.substring(0,e)]=n.substring(e+2)}),t}function T(n,t){function e(n){return{"http:":80,"https:":443}[n]}function r(t){return t.port||e(t.protocol||n.protocol)}return!!(t.protocol&&t.protocol!=n.protocol||t.host&&t.host!=n.host||t.host&&r(t)!=r(n))}function A(n){var t=/(\w+:)?(?:\/\/)([\w.-]+)?(?::(\d+))?\/?/.exec(n)||[];return{protocol:t[1]||"",host:t[2]||"",port:t[3]||""}}function q(t,e,r,i,o,f,c){"use strict";function a(){var n=e.responseText,t=n.substr(d);t&&s(t),d=G(n)}var s=t(hn).emit,l=t(an).emit,d=0,h=!0;t(vn).on(function(){e.onreadystatechange=null,e.abort()}),"onprogress"in e&&(e.onprogress=a),e.onreadystatechange=function(){function n(){try{h&&t(dn).emit(e.status,R(e.getAllResponseHeaders())),h=!1}catch(n){}}switch(e.readyState){case 2:case 3:return n();case 4:n(),2==String(e.status)[0]?(a(),t(pn).emit()):l(_(e.status,e.responseText))}};try{for(var p in e.open(r,i,!0),f)e.setRequestHeader(p,f[p]);T(n.location,A(i))||e.setRequestHeader("X-Requested-With","XMLHttpRequest"),e.withCredentials=c,e.send(o)}catch(t){n.setTimeout(D(l,_(u,u,t)),0)}}function H(n,t){return{key:n,node:t}}function S(n){function t(n,t){var r=nn(P(n));return v(e,r)?i(n,G(r),t):n}function r(n,t,e){nn(P(n))[t]=e}function i(n,t,e){n&&r(n,t,e);var i=g(H(t,e),n);return u(i),i}var u=n(un).emit,o=n(on).emit,f=n(ln).emit,c=n(sn).emit,a={};return a[bn]=function(n,e){if(!n)return f(e),i(n,tn,e);var u=t(n,e),o=Q(u),c=Z(P(u));return r(o,c,e),g(H(c,e),o)},a[gn]=function(n){return o(n),Q(n)||c(nn(P(n)))},a[mn]=i,a}function B(n,t,e){function r(n){return function(t){return t.id==n}}var i,u;return{on:function(e,r){var o={listener:e,id:r||e};return t&&t.emit(n,e,o.id),i=g(o,i),u=g(e,u),this},emit:function(){C(u,arguments)},un:function(t){var o;i=L(i,r(t),function(n){o=n}),o&&(u=L(u,function(n){return n==o.listener}),e&&e.emit(n,o.listener,o.id))},listeners:function(){return u},hasListener:function(n){return m(E(n?r(n):h,i))}}}function N(){function n(n){return e[n]=B(n,r,i)}function t(t){return e[t]||n(t)}var e={},r=n("newListener"),i=n("removeListener");return["emit","on","un"].forEach(function(n){t[n]=a(function(e,r){c(r,t(e)[n])})}),t}function _(n,t,e){try{var r=i.parse(t)}catch(n){}return{statusCode:n,body:t,jsonBody:r,thrown:e}}function X(n,t){function e(n,t,e){var r=O(e);n(t,y(Q(x(Z,r))),y(x(nn,r)))}function r(t,r,i){var u=n(t).emit;r.on(function(n){var t=i(n);!1!==t&&e(u,nn(t),n)},t),n("removeListener").on(function(e){e==t&&(n(e).listeners()||r.un(t))})}var i={node:n(on),path:n(un)};n("newListener").on(function(n){var e=/(node|path):(.*)/.exec(n);if(e){var u=i[e[1]];u.hasListener(n)||r(n,u,t(e[2]))}})}function U(n,t){function e(n,t,e){e=e||t;var i=r(t);return n.on(function(){var t=!1;h.forget=function(){t=!0},c(arguments,i),delete h.forget,t&&n.un(e)},e),h}function r(t){return function(){try{return t.apply(h,arguments)}catch(t){n(an).emit(_(u,u,t))}}}function i(t,e){return n(t+":"+e)}function o(n){return function(){var t=n.apply(this,arguments);m(t)&&(t==z.drop?g():w(t))}}function f(n,t,r){var u;u="node"==n?o(r):r,e(i(n,t),u,r)}function s(n,t){for(var e in t)f(n,e,t[e])}function l(n,t,e){return J(t)?f(n,t,e):s(n,t),h}var h,v=/^(node|path):./,b=n(sn),g=n(cn).emit,w=n(fn).emit,y=a(function(t,r){if(h[t])c(r,h[t]);else{var i=n(t),u=r[0];v.test(t)?e(i,u):i.on(u)}return h});return n(ln).on(function(n){h.root=p(n)}),n(dn).on(function(n,t){h.header=function(n){return n?t[n]:t}}),h={on:y,addListener:y,removeListener:function(t,e,r){if("done"==t)b.un(e);else if("node"==t||"path"==t)n.un(t+":"+e,r);else{var i=e;n(t).un(i)}return h},emit:n.emit,node:D(l,"node"),path:D(l,"path"),done:D(e,b),start:D(function(t,e){return n(t).on(r(e),e),h},dn),fail:n(an).on,abort:n(vn).emit,header:d,root:d,source:t}}function W(n,t,e,r,i){var u=N();return t&&q(u,new XMLHttpRequest,n,t,e,r,i),j(u),M(u,S(u)),X(u,en),U(u,t)}function $(n,t,e,r,u,o,f){return u=u?i.parse(i.stringify(u)):{},r?J(r)||(r=i.stringify(r),u["Content-Type"]=u["Content-Type"]||"application/json"):r=null,n(e||"GET",(function(n,t){return!1===t&&(n+=-1==n.indexOf("?")?"?":"&",n+="_="+(new Date).getTime()),n})(t,f),r,u,o||!1)}function z(n){var t=V("resume","pause","pipe"),e=D(b,t);return n?e(n)||J(n)?$(W,n):$(W,n.url,n.method,n.body,n.headers,n.withCredentials,n.cached):W()}var D=a(function(n,t){var e=t.length;return a(function(r){for(var i=0;i1?(e/s.GIGA).toFixed(1)+" GB":e/s.MEGA>1?(e/s.MEGA).toFixed(1)+" MB":e/s.KILO>1?(e/s.KILO).toFixed(1)+" kB":e+" B"),t}},{key:"getFilenameFromHeader",value:function(e){if(e){var t=/.*filename="(.*)"/.exec(e);if(t)return t[1]}return""}},{key:"getUrlInfo",value:function(e){if(e){var t=/^(?:([a-z]*):\/\/)?([^\/?#]*)\/?([^?#]*\/?)?[?]?([^#]*)?[#]?(.*)?/g.exec(e);if(t){var n=t[1]||"",i=t[2]||"",o=t[4]||"",u=t[5]||"",l=t[3]||"",c="";if(l){var f=s.getLastPathSegment(l);f&&f.match(/.+\..+/g)&&(c=f)}return{protocol:n,domain:i,path:l,file:c,gets:o,anchor:u}}}return{protocol:"",domain:"",path:"",file:"",gets:""}}},{key:"isDomainValid",value:function(e){var t=s.getUrlInfo(e),n=t.domain,i=t.protocol;if(n&&i.includes("http")){var o=/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/g.exec(n);return void 0!==o&&null!==o}return!0}},{key:"splitParam",value:function(e){if(e){var t=/([^=]+)(?:=(.*))?/g.exec(e);if(t)return{name:t[1]||"",value:t[2]||""}}return null}},{key:"getLastPathSegment",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"/";return e.substring(e.lastIndexOf(t)+1)}},{key:"getParentPath",value:function(e){return e?e.substring(0,e.lastIndexOf("/")):""}},{key:"removeLastSlash",value:function(e){return e.replace(/\/$/,"")}},{key:"segmentUrl",value:function(e){var t=s.getUrlInfo(e),n=t.protocol+"://"+t.domain;t.path&&(n+="/"+t.path);var i={baseUrl:n,protocol:t.protocol,domain:t.domain,path:t.path,file:t.file,getParams:{},anchor:t.anchor,anchorParams:{}};return i.getParams=s.parseQuerystring(t.gets),i.anchorParams=s.parseQuerystring(t.anchor),i}},{key:"parseQuerystring",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n={};e&&e.split("&").forEach(function(e){var i=s.splitParam(e);i&&(n[i.name]=t?i.value:s.decodeURIComponent(i.value))});return n}},{key:"getQuerystring",value:function(e){return Object.entries(e).filter(function(e){return null!==e[1]&&void 0!==e[1]}).map(function(e){return e[1]=encodeURIComponent(e[1]),e.join("=")}).join("&")}},{key:"removeTilde",value:function(e){return e&&(e=e.replace("~","")),e}},{key:"getRandomHash",value:function(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}},{key:"getRandomIdentifier",value:function(){return Math.floor(Math.random()*Math.pow(2,32)).toString()}},{key:"decodeURIComponent",value:(function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t})(function(e){try{return decodeURIComponent(e)}catch(t){return e}})},{key:"decodeHTML",value:function(e){try{return r(d[10]).AllHtmlEntities.decode(e)}catch(t){return e}}},{key:"fileNameFromPath",value:function(e){return e?e.split("/").pop():""}},{key:"pad",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0";return(e+="").length>=t?e:new Array(t-e.length+1).join(n)+e}},{key:"extractLinkAndTextFromFooterTag",value:function(e){var t={};if(e){var n=s.REGEX_ARTICLE_FOOTER_TAG.exec(e);return n&&(t.matched=n[0],t.url=n[1],t.text=n[2]),t}}},{key:"parseNotificationEmail",value:function(e){var t,n,i=e.split("@");return i.length>1&&i[0].length>0&&i[1].length>0&&s.isTecnaviaDomain(i[1])&&(t=i[0],n=i[1]),{pSetup:t,server:n}}},{key:"validateNotificationEmail",value:function(e){var t=s.parseNotificationEmail(e),n=t.pSetup,i=t.server;return!!n&&!!i}},{key:"isTecnaviaDomain",value:function(e){var t=s.getUrlInfo(g.server);return e.endsWith(".newsmemory.com")||e.endsWith(".eedition.net")||e===t.domain}},{key:"convertNewsmemoryDomainToHTTPS",value:function(e){var t=e;if(-1!==e.indexOf(".newsmemory.com")&&0!==e.indexOf("https://")){var n=(t=e.replace("http://","")).split(".newsmemory.com")[0];t="https://"+(t=t.replace(n,n.replace(/\./g,"-")))}return t}},{key:"removeProtocolFromURL",value:function(e){return e.replace(/^http[s]?:\/\//,"")}},{key:"domainContainsProtocol",value:function(e){return 0===e.indexOf("https://")||0===e.indexOf("http://")}},{key:"isTecnaviaHTTPDomain",value:function(e){return-1!==e.indexOf(".newsmemory.com")&&0!==e.indexOf("https://")&&(0===e.indexOf("http://")||e.match(/(\w+)(\.)([a-zA-Z]+)(\.)([a-zA-Z0-9.]*)newsmemory.com/))}},{key:"getTecnaviaDomainSeparator",value:function(e){return s.isTecnaviaHTTPDomain(e)?".":"-"}},{key:"getTecnaviaDomainParts",value:function(e){var t="",n="",i="",o="";if(s.isTecnaviaDomain(e)){var u=s.getTecnaviaDomainSeparator(e),l=new RegExp("http[s]?://(.*)\\"+u+"([a-zA-Z]{2,3})\\"+u+"(.*).(newsmemory.com|eedition.net)").exec(e);l&&l.length>=5&&(t=l[1],n=l[2],i=l[3],o=l[4])}return{paper:t,state:n,type:i,trailer:o}}},{key:"getTecnaviaDomainState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getAppServer();return s.getTecnaviaDomainParts(e).state}},{key:"isUSTecnaviaDomain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getAppServer(),t=s.getTecnaviaDomainState(e);return t&&2===t.length}},{key:"appendParams",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e;if(Object.keys(t).length>0){var o=s.segmentUrl(i),u=o.baseUrl,l=o.path,c=o.file,f=o.getParams,v=o.anchor;(i=u).includes("?")?i+="&":(c||l.endsWith("/")||(i+="/"),i+="?"),i+=s.getQuerystring((0,n.default)({},f,t)),v&&(i+="#"+v)}return i}},{key:"removeParams",value:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(i.length>0){var o=s.segmentUrl(e),u=o.baseUrl,l=o.getParams,c=o.anchor,v=u;if(!f.default.isEmpty(l)){var p=Object.keys(l).filter(function(e){return!i.includes(e)}).reduce(function(e,i){return(0,n.default)(e,(0,t.default)({},i,l[i]))},{});f.default.isEmpty(p)||(v+="?"+s.getQuerystring(p))}return c&&(v+="#"+c),v}return e}},{key:"analyzeRGBAColor",value:function(e){var t=0,n=0,i=0,o=1;if(e&&e.length){var u=s.REGEX_HEX.exec(e),l=s.REGEX_HEX_SHORT.exec(e);if(u||l)return c.default.hexToRGBAComponents(e);var f=s.REGEX_RGBA.exec(e);f&&(t=parseInt(f[1],10),n=parseInt(f[2],10),i=parseInt(f[3],10),o=parseFloat(f[5]||"1"))}return{red:t,green:n,blue:i,alpha:o}}},{key:"parseColor",value:function(e,t){if(!e||!e.length)return t;var n=s.REGEX_RGBA.exec(e);if(n){var i=n[1],o=n[2],u=n[3],l=n[5]||"";return isNaN(l)?"rgba("+i+","+o+","+u+",1)":(-1===l.indexOf(".")&&"0"!==l&&"1"!==l&&(l=parseInt(l,10)/255),"rgba("+i+","+o+","+u+","+l+")")}return s.REGEX_HEX.exec(e)?e:s.REGEX_HEX_SHORT.exec(e)?e:t}},{key:"textSize",value:function(t,i){var o,u,c=arguments;return e.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return o=c.length>2&&void 0!==c[2]?c[2]:{},f.prev=1,f.next=4,e.default.awrap(l.default.measure((0,n.default)({text:t,width:i},o)));case 4:return u=f.sent,f.abrupt("return",u);case 8:f.prev=8,f.t0=f.catch(1);case 10:return f.abrupt("return",void 0);case 11:case"end":return f.stop()}},null,null,[[1,8]],Promise)}},{key:"getKeyFromText",value:function(e){return"string"==typeof e?e.replace(/[\W_]+/g,"").toLowerCase():e}},{key:"getMorseLikeCode",value:function(e){if(void 0!==e){var t=(parseInt(e,10)>>>0).toString(2);return"."+(t=t.replace(/1/g,".").replace(/0/g," "))+"."}return""}},{key:"getMorseLikeCodeAlt",value:function(e){if(void 0!==e){var t=(parseInt(e,10)>>>0).toString(2);return"."+(t=t.replace(/1/g,".").replace(/0/g,"-"))+"."}return""}},{key:"parseFromString",value:function(e,t){var n=new(r(d[11]).DOMParser)({errorHandler:function(e){}});return void 0!==n?void 0!==t?n.parseFromString(e,t):n.parseFromString(e):e}},{key:"serializeHtml",value:function(e){try{var t=s.parseFromString(e);return(new(r(d[11]).XMLSerializer)).serializeToString(t)}catch(t){return e}}},{key:"isBase64",value:function(e){try{g.atob(e)}catch(e){return!1}return!0}},{key:"isImageBase64",value:function(e){return s.isBase64(e.replace(/data:image\/(jpeg|png);base64,/,""))}},{key:"getGroupFromStrByRegex",value:function(e,t,n){if(e&&t){var i=e.match(t);if(i&&i[n])return i[n]}}},{key:"isLocalURL",value:function(e){return e&&e.startsWith("file://")}},{key:"getReadingTime",value:function(e){return(0,r(d[12]).readingTime)(e)}}]),s})();_e.default=s,s.BULLET="\u2022",s.TILDE="~",s.KILO=1e3,s.MEGA=1e3*s.KILO,s.GIGA=1e3*s.MEGA,s.REGEX_ARTICLE_FOOTER_TAG=/(.*)<\/a>/gm,s.REGEX_CHECK_OPTION_PAGE_TAB="\\/[a-zA-Z_a-zA-Z]*\\.php\\?",s.REGEX_MD5="[a-fA-F0-9]{32}",s.REGEX_FEED_ID="^(([0-9]+)_)?([a-fA-F0-9]{32}){1}$",s.REGEX_OPEN_URL="^openUrl:.*$",s.REGEX_URL=/^((https?|ftp):\/\/|(www|ftp)\.)[a-z0-9-]+(\.[a-z0-9-]+)+([\/?].*)?$/gim,s.REGEX_ARTICLE_URL="((ht|f)tp(s?):\\/\\/|www\\.)(([\\w\\-]+\\.){1,}?([\\w\\-.~]+\\/?)*)",s.REGEX_ARTICLE_IGNORE_URL="(.*(.bmp|.png|.jpg|.gif|.jpeg|.js|.css|.php|.html|.htm))",s.REGEX_PSETUP_SS=".*-xp-(.*_se|_ss)",s.REGEX_REPLACE_0_IN_PAGE_NAME="[a-zA-Z]*([0]*)[1-9]*+[0]*",s.REGEX_RGBA=/([0-9]{1,3}),([0-9]{1,3}),([0-9]{1,3})(,([0-9\\.]+))?/,s.REGEX_HEX=/#([0-9|A-F|a-f]{2})([0-9|A-F|a-f]{2})([0-9|A-F|a-f]{2})([0-9|A-F|a-f]{2})?/,s.REGEX_HEX_SHORT=/#([0-9|A-F|a-f]{1})([0-9|A-F|a-f]{1})([0-9|A-F|a-f]{1})/},495,[5,80,27,6,7,8,496,500,501,503,504,509,513]); -__d(function(g,r,_i,_a,_m,e,_d){var t,n,o,i,s;t=r(_d[0]),n=r(_d[1]).utf8,o=r(_d[2]),i=r(_d[1]).bin,(s=function s(a,u){a.constructor==String?a=u&&'binary'===u.encoding?i.stringToBytes(a):n.stringToBytes(a):o(a)?a=Array.prototype.slice.call(a,0):Array.isArray(a)||a.constructor===Uint8Array||(a=a.toString());for(var c=t.bytesToWords(a),f=8*a.length,y=1732584193,l=-271733879,_=-1732584194,v=271733878,h=0;h>>24)|4278255360&(c[h]<<24|c[h]>>>8);c[f>>>5]|=128<>>9<<4)]=f;var d=s._ff,b=s._gg,T=s._hh,A=s._ii;for(h=0;h>>0,l=l+S>>>0,_=_+p>>>0,v=v+w>>>0}return t.endian([y,l,_,v])})._ff=function(t,n,o,i,s,a,u){var c=t+(n&o|~n&i)+(s>>>0)+u;return(c<>>32-a)+n},s._gg=function(t,n,o,i,s,a,u){var c=t+(n&i|o&~i)+(s>>>0)+u;return(c<>>32-a)+n},s._hh=function(t,n,o,i,s,a,u){var c=t+(n^o^i)+(s>>>0)+u;return(c<>>32-a)+n},s._ii=function(t,n,o,i,s,a,u){var c=t+(o^(n|~i))+(s>>>0)+u;return(c<>>32-a)+n},s._blocksize=16,s._digestsize=16,_m.exports=function(n,o){if(void 0===n||null===n)throw new Error('Illegal argument '+n);var a=t.wordsToBytes(s(n,o));return o&&o.asBytes?a:o&&o.asString?i.bytesToString(a):t.bytesToHex(a)}},496,[497,498,499]); -__d(function(g,r,_i,a,m,e,d){var t,n;t='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',n={rotl:function(t,n){return t<>>32-n},rotr:function(t,n){return t<<32-n|t>>>n},endian:function(t){if(t.constructor==Number)return 16711935&n.rotl(t,8)|4278255360&n.rotl(t,24);for(var o=0;o0;t--)n.push(Math.floor(256*Math.random()));return n},bytesToWords:function(t){for(var n=[],o=0,u=0;o>>5]|=t[o]<<24-u%32;return n},wordsToBytes:function(t){for(var n=[],o=0;o<32*t.length;o+=8)n.push(t[o>>>5]>>>24-o%32&255);return n},bytesToHex:function(t){for(var n=[],o=0;o>>4).toString(16)),n.push((15&t[o]).toString(16));return n.join('')},hexToBytes:function(t){for(var n=[],o=0;o>>6*(3-s)&63)):o.push('=');return o.join('')},base64ToBytes:function(n){n=n.replace(/[^A-Z0-9+\/]/gi,'');for(var o=[],u=0,f=0;u>>6-2*f);return o}},m.exports=n},497,[]); -__d(function(g,r,_i,a,m,e,d){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(n){for(var t=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;if(!_.match(o)&&!_.match(a))return _;var F=g.applyDarknessToChannel(g.getRedChannelFromHex(_),n),l=g.applyDarknessToChannel(g.getGreenChannelFromHex(_),n),t=g.applyDarknessToChannel(g.getBlueChannelFromHex(_),n);return"#".concat(g.componentToHex(F)).concat(g.componentToHex(l)).concat(g.componentToHex(t)).concat(g.componentToHex(r))}},{key:"applyDarknessToColor",value:function(_){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255,F=_;return _.startsWith("rgba")&&(F=g.RGBAToHex(_)),g.applyDarknessToHex(F,n,r)}},{key:"hexToRGBA",value:function(_){return"rgba(\""+parseInt(_.slice(1,3),16)+"\",\""+parseInt(_.slice(3,5),16)+"\",\""+parseInt(_.slice(5,7),16)+"\",\""+parseInt(_.slice(7,9),16)+"\")"}},{key:"hexToRGBAComponents",value:function(_){return _=g.convertHexFromShorthand(_),{red:parseInt(_.slice(1,3),16),green:parseInt(_.slice(3,5),16),blue:parseInt(_.slice(5,7),16),alpha:parseInt(_.slice(7,9),16)}}},{key:"RGBAChannelsToHex",value:function(_,n,r,F){return"#".concat(g.componentToHex(_)).concat(g.componentToHex(n)).concat(g.componentToHex(r)).concat(g.componentToHex(255*F))}},{key:"RGBAToHex",value:function(r){var F=g.RGBAToChannels(r);if(!F)return"";var l=(0,n.default)(F),a=(l[0],l.slice(1));return g.RGBAChannelsToHex.apply(g,(0,_.default)(a))}},{key:"RGBToHex",value:function(_,n,r){return"#".concat(g.componentToHex(_)).concat(g.componentToHex(n)).concat(g.componentToHex(r))}},{key:"getDarknessScore",value:function(_){return 1-(.299*g.getRedChannelFromHex(_)+.587*g.getGreenChannelFromHex(_)+.114*g.getBlueChannelFromHex(_))/255}},{key:"isClearColor",value:function(_){return g.getDarknessScore(_)<.4}},{key:"determineTextColor",value:function(_){return g.isClearColor(_)?l.grey1000:l.white}}]),g})();e.default=g},501,[5,21,502,7,8]); -__d(function(g,r,i,a,m,e,d){m.exports=function(t){return r(d[0])(t)||r(d[1])(t)||r(d[2])(t)||r(d[3])()},m.exports.__esModule=!0,m.exports.default=m.exports},502,[42,24,25,44]); -__d(function(g,_r,i,_a2,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PromiseTimeout=function(t){var e,r,n,o,a=arguments;return u.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:for(e=a.length>1&&void 0!==a[1]?a[1]:2e3,r=a.length,n=new Array(r>2?r-2:0),o=2;o2&&void 0!==arguments[2]?arguments[2]:{};t=null!=(r=t)?r:{},e=null!=(n=e)?n:{};o.print;var a=o.skipKeys,l=void 0===a?[]:a,c=Object.keys(t).find(function(r){return"function"!=typeof t[r]&&!l.includes(r)&&(!u.hasProperty(e,r)||(u.isValidObject(t[r])&&u.isValidObject(e[r])?!u.areEqualDeep(t[r],e[r],o):t[r]!==e[r]))}),f=Object.keys(e).find(function(r){return"function"!=typeof e[r]&&!l.includes(r)&&!u.hasProperty(t,r)}),s=!c&&!f;return s}},{key:"areEqualShallow",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=(r.print,r.skipKeys),o=void 0===n?[]:n,a=Object.keys(t).find(function(r){return"function"!=typeof t[r]&&"object"!=typeof t[r]&&!o.includes(r)&&(!u.hasProperty(e,r)||t[r]!==e[r])}),l=Object.keys(e).find(function(r){return"function"!=typeof e[r]&&"object"!=typeof e[r]&&!o.includes(r)&&!u.hasProperty(t,r)}),c=!a&&!l;return c}},{key:"isValidRect",value:function(t){return t&&u.isNumber(t.start)&&u.isNumber(t.top)&&u.isNumber(t.width)&&u.isNumber(t.height)&&t.width>0&&t.height>0}},{key:"intersectRect",value:function(t,e){return!(e.start>t.start+t.width||e.start+e.widtht.top+t.height||e.top+e.heighte.x&&t.tope.y}},{key:"inInterval",value:function(t,e,r){return t>=e&&t<=r}},{key:"shouldUpdatePureComponent",value:function(t,e,r,n){var u=!1,o=Object.keys(t),a=Object.keys(e);o.length!==a.length&&(u=!0);var l=Object.keys(r||{}),c=Object.keys(n||{});for(var f in l.length!==c.length&&(u=!0),t)t[f]!==e[f]&&(u=!0);for(var s in r)r[s]!==(n||{})[s]&&(u=!0);return u}},{key:"getViewByRef",value:function(t){if(!t)throw new Error("ref.current is null");if("object"==typeof t&&t.current&&(t=t.current),"number"!=typeof t){var e=(0,o.findNodeHandle)(t);if(!e)throw new Error("findNodeHandle failed to resolve view="+String(t));t=e}return t}},{key:"isNull",value:function(t){return void 0===t||null===t}},{key:"isEmpty",value:function(t){if(!u.isNull(t)){if("string"==typeof t)return 0===t.length;if(Array.isArray(t))return 0===t.length;if("object"==typeof t)return 0===Object.keys(t).length}return!0}},{key:"hasProperty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.prototype.hasOwnProperty.call(t,e)}},{key:"isNumber",value:function(t){try{return!("number"!=typeof t||Number.isNaN(t))}catch(t){return!1}}},{key:"max",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(0,t.default)({},e);return Object.keys(r).forEach(function(t){void 0!==r[t]&&(Array.isArray(r[t])&&Array.isArray(e[t])?n[t]=r[t]:"object"==typeof r[t]&&"object"==typeof e[t]?n[t]=u.mergeObjects(e[t],r[t]):n[t]=r[t])}),n}},{key:"flattenObject",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(e).reduce(function(n,o){var a=e[o];return"object"==typeof a?(0,t.default)({},n,u.flattenObject(a,o)):(n[r?r+"."+o:o]=a,n)},{})}},{key:"truncateFloat",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,r=Math.pow(10,e);return Math.floor(t*r)/r}}]),u})();_e.default=a},503,[5,6,21,7,8,80,28]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XmlEntities=r(d[0]).XmlEntities,e.Html4Entities=r(d[1]).Html4Entities,e.Html5Entities=r(d[2]).Html5Entities,e.AllHtmlEntities=r(d[2]).Html5Entities},504,[505,507,508]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t={'<':'<','>':'>','"':'"','&apos':'\'','&':'&','<':'<','>':'>','"':'"',''':'\'','&':'&'},n={60:'lt',62:'gt',34:'quot',39:'apos',38:'amp'},o={'<':'<','>':'>','"':'"','\'':''','&':'&'},u=(function(){function u(){}return u.prototype.encode=function(t){return t&&t.length?t.replace(/[<>"'&]/g,function(t){return o[t]}):''},u.encode=function(t){return(new u).encode(t)},u.prototype.decode=function(n){return n&&n.length?n.replace(/&#?[0-9a-zA-Z]+;?/g,function(n){if('#'===n.charAt(1)){var o='x'===n.charAt(2).toLowerCase()?parseInt(n.substr(3),16):parseInt(n.substr(2));return!isNaN(o)||o>=-32768?o<=65535?String.fromCharCode(o):r(d[0]).fromCodePoint(o):''}return t[n]||n}):''},u.decode=function(t){return(new u).decode(t)},u.prototype.encodeNonUTF=function(t){if(!t||!t.length)return'';for(var o=t.length,u='',c=0;c126?i>=r(d[0]).highSurrogateFrom&&i<=r(d[0]).highSurrogateTo?(u+='&#'+r(d[0]).getCodePoint(t,c)+';',c++):u+='&#'+i+';':u+=t.charAt(c),c++)}return u},u.encodeNonUTF=function(t){return(new u).encodeNonUTF(t)},u.prototype.encodeNonASCII=function(t){if(!t||!t.length)return'';for(var n=t.length,o='',u=0;u=r(d[0]).highSurrogateFrom&&c<=r(d[0]).highSurrogateTo?(o+='&#'+r(d[0]).getCodePoint(t,u)+';',u++):o+='&#'+c+';',u++)}return o},u.encodeNonASCII=function(t){return(new u).encodeNonASCII(t)},u})();e.XmlEntities=u},505,[506]); -__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fromCodePoint=String.fromCodePoint||function(o){return String.fromCharCode(Math.floor((o-65536)/1024)+55296,(o-65536)%1024+56320)},e.getCodePoint=String.prototype.codePointAt?function(o,t){return o.codePointAt(t)}:function(o,t){return 1024*(o.charCodeAt(t)-55296)+o.charCodeAt(t+1)-56320+65536},e.highSurrogateFrom=55296,e.highSurrogateTo=56319},506,[]); -__d(function(g,r,_i,_a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=['apos','nbsp','iexcl','cent','pound','curren','yen','brvbar','sect','uml','copy','ordf','laquo','not','shy','reg','macr','deg','plusmn','sup2','sup3','acute','micro','para','middot','cedil','sup1','ordm','raquo','frac14','frac12','frac34','iquest','Agrave','Aacute','Acirc','Atilde','Auml','Aring','AElig','Ccedil','Egrave','Eacute','Ecirc','Euml','Igrave','Iacute','Icirc','Iuml','ETH','Ntilde','Ograve','Oacute','Ocirc','Otilde','Ouml','times','Oslash','Ugrave','Uacute','Ucirc','Uuml','Yacute','THORN','szlig','agrave','aacute','acirc','atilde','auml','aring','aelig','ccedil','egrave','eacute','ecirc','euml','igrave','iacute','icirc','iuml','eth','ntilde','ograve','oacute','ocirc','otilde','ouml','divide','oslash','ugrave','uacute','ucirc','uuml','yacute','thorn','yuml','quot','amp','lt','gt','OElig','oelig','Scaron','scaron','Yuml','circ','tilde','ensp','emsp','thinsp','zwnj','zwj','lrm','rlm','ndash','mdash','lsquo','rsquo','sbquo','ldquo','rdquo','bdquo','dagger','Dagger','permil','lsaquo','rsaquo','euro','fnof','Alpha','Beta','Gamma','Delta','Epsilon','Zeta','Eta','Theta','Iota','Kappa','Lambda','Mu','Nu','Xi','Omicron','Pi','Rho','Sigma','Tau','Upsilon','Phi','Chi','Psi','Omega','alpha','beta','gamma','delta','epsilon','zeta','eta','theta','iota','kappa','lambda','mu','nu','xi','omicron','pi','rho','sigmaf','sigma','tau','upsilon','phi','chi','psi','omega','thetasym','upsih','piv','bull','hellip','prime','Prime','oline','frasl','weierp','image','real','trade','alefsym','larr','uarr','rarr','darr','harr','crarr','lArr','uArr','rArr','dArr','hArr','forall','part','exist','empty','nabla','isin','notin','ni','prod','sum','minus','lowast','radic','prop','infin','ang','and','or','cap','cup','int','there4','sim','cong','asymp','ne','equiv','le','ge','sub','sup','nsub','sube','supe','oplus','otimes','perp','sdot','lceil','rceil','lfloor','rfloor','lang','rang','loz','spades','clubs','hearts','diams'],t=[39,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,34,38,60,62,338,339,352,353,376,710,732,8194,8195,8201,8204,8205,8206,8207,8211,8212,8216,8217,8218,8220,8221,8222,8224,8225,8240,8249,8250,8364,402,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,931,932,933,934,935,936,937,945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,962,963,964,965,966,967,968,969,977,978,982,8226,8230,8242,8243,8254,8260,8472,8465,8476,8482,8501,8592,8593,8594,8595,8596,8629,8656,8657,8658,8659,8660,8704,8706,8707,8709,8711,8712,8713,8715,8719,8721,8722,8727,8730,8733,8734,8736,8743,8744,8745,8746,8747,8756,8764,8773,8776,8800,8801,8804,8805,8834,8835,8836,8838,8839,8853,8855,8869,8901,8968,8969,8970,8971,9001,9002,9674,9824,9827,9829,9830],o={},n={};!(function(){for(var i=0,u=a.length;i=-32768)&&(n=i<=65535?String.fromCharCode(i):r(d[0]).fromCodePoint(i))}else n=o[t];return n||a}):''},a.decode=function(t){return(new a).decode(t)},a.prototype.encode=function(a){if(!a||!a.length)return'';for(var t=a.length,o='',i=0;i126?u>=r(d[0]).highSurrogateFrom&&u<=r(d[0]).highSurrogateTo?(o+='&#'+r(d[0]).getCodePoint(a,i)+';',i++):o+='&#'+u+';':o+=a.charAt(i),i++}return o},a.encodeNonUTF=function(t){return(new a).encodeNonUTF(t)},a.prototype.encodeNonASCII=function(a){if(!a||!a.length)return'';for(var t=a.length,o='',n=0;n=r(d[0]).highSurrogateFrom&&i<=r(d[0]).highSurrogateTo?(o+='&#'+r(d[0]).getCodePoint(a,n)+';',n++):o+='&#'+i+';',n++)}return o},a.encodeNonASCII=function(t){return(new a).encodeNonASCII(t)},a})();e.Html4Entities=i},507,[506]); -__d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t=[['Aacute',[193]],['aacute',[225]],['Abreve',[258]],['abreve',[259]],['ac',[8766]],['acd',[8767]],['acE',[8766,819]],['Acirc',[194]],['acirc',[226]],['acute',[180]],['Acy',[1040]],['acy',[1072]],['AElig',[198]],['aelig',[230]],['af',[8289]],['Afr',[120068]],['afr',[120094]],['Agrave',[192]],['agrave',[224]],['alefsym',[8501]],['aleph',[8501]],['Alpha',[913]],['alpha',[945]],['Amacr',[256]],['amacr',[257]],['amalg',[10815]],['amp',[38]],['AMP',[38]],['andand',[10837]],['And',[10835]],['and',[8743]],['andd',[10844]],['andslope',[10840]],['andv',[10842]],['ang',[8736]],['ange',[10660]],['angle',[8736]],['angmsdaa',[10664]],['angmsdab',[10665]],['angmsdac',[10666]],['angmsdad',[10667]],['angmsdae',[10668]],['angmsdaf',[10669]],['angmsdag',[10670]],['angmsdah',[10671]],['angmsd',[8737]],['angrt',[8735]],['angrtvb',[8894]],['angrtvbd',[10653]],['angsph',[8738]],['angst',[197]],['angzarr',[9084]],['Aogon',[260]],['aogon',[261]],['Aopf',[120120]],['aopf',[120146]],['apacir',[10863]],['ap',[8776]],['apE',[10864]],['ape',[8778]],['apid',[8779]],['apos',[39]],['ApplyFunction',[8289]],['approx',[8776]],['approxeq',[8778]],['Aring',[197]],['aring',[229]],['Ascr',[119964]],['ascr',[119990]],['Assign',[8788]],['ast',[42]],['asymp',[8776]],['asympeq',[8781]],['Atilde',[195]],['atilde',[227]],['Auml',[196]],['auml',[228]],['awconint',[8755]],['awint',[10769]],['backcong',[8780]],['backepsilon',[1014]],['backprime',[8245]],['backsim',[8765]],['backsimeq',[8909]],['Backslash',[8726]],['Barv',[10983]],['barvee',[8893]],['barwed',[8965]],['Barwed',[8966]],['barwedge',[8965]],['bbrk',[9141]],['bbrktbrk',[9142]],['bcong',[8780]],['Bcy',[1041]],['bcy',[1073]],['bdquo',[8222]],['becaus',[8757]],['because',[8757]],['Because',[8757]],['bemptyv',[10672]],['bepsi',[1014]],['bernou',[8492]],['Bernoullis',[8492]],['Beta',[914]],['beta',[946]],['beth',[8502]],['between',[8812]],['Bfr',[120069]],['bfr',[120095]],['bigcap',[8898]],['bigcirc',[9711]],['bigcup',[8899]],['bigodot',[10752]],['bigoplus',[10753]],['bigotimes',[10754]],['bigsqcup',[10758]],['bigstar',[9733]],['bigtriangledown',[9661]],['bigtriangleup',[9651]],['biguplus',[10756]],['bigvee',[8897]],['bigwedge',[8896]],['bkarow',[10509]],['blacklozenge',[10731]],['blacksquare',[9642]],['blacktriangle',[9652]],['blacktriangledown',[9662]],['blacktriangleleft',[9666]],['blacktriangleright',[9656]],['blank',[9251]],['blk12',[9618]],['blk14',[9617]],['blk34',[9619]],['block',[9608]],['bne',[61,8421]],['bnequiv',[8801,8421]],['bNot',[10989]],['bnot',[8976]],['Bopf',[120121]],['bopf',[120147]],['bot',[8869]],['bottom',[8869]],['bowtie',[8904]],['boxbox',[10697]],['boxdl',[9488]],['boxdL',[9557]],['boxDl',[9558]],['boxDL',[9559]],['boxdr',[9484]],['boxdR',[9554]],['boxDr',[9555]],['boxDR',[9556]],['boxh',[9472]],['boxH',[9552]],['boxhd',[9516]],['boxHd',[9572]],['boxhD',[9573]],['boxHD',[9574]],['boxhu',[9524]],['boxHu',[9575]],['boxhU',[9576]],['boxHU',[9577]],['boxminus',[8863]],['boxplus',[8862]],['boxtimes',[8864]],['boxul',[9496]],['boxuL',[9563]],['boxUl',[9564]],['boxUL',[9565]],['boxur',[9492]],['boxuR',[9560]],['boxUr',[9561]],['boxUR',[9562]],['boxv',[9474]],['boxV',[9553]],['boxvh',[9532]],['boxvH',[9578]],['boxVh',[9579]],['boxVH',[9580]],['boxvl',[9508]],['boxvL',[9569]],['boxVl',[9570]],['boxVL',[9571]],['boxvr',[9500]],['boxvR',[9566]],['boxVr',[9567]],['boxVR',[9568]],['bprime',[8245]],['breve',[728]],['Breve',[728]],['brvbar',[166]],['bscr',[119991]],['Bscr',[8492]],['bsemi',[8271]],['bsim',[8765]],['bsime',[8909]],['bsolb',[10693]],['bsol',[92]],['bsolhsub',[10184]],['bull',[8226]],['bullet',[8226]],['bump',[8782]],['bumpE',[10926]],['bumpe',[8783]],['Bumpeq',[8782]],['bumpeq',[8783]],['Cacute',[262]],['cacute',[263]],['capand',[10820]],['capbrcup',[10825]],['capcap',[10827]],['cap',[8745]],['Cap',[8914]],['capcup',[10823]],['capdot',[10816]],['CapitalDifferentialD',[8517]],['caps',[8745,65024]],['caret',[8257]],['caron',[711]],['Cayleys',[8493]],['ccaps',[10829]],['Ccaron',[268]],['ccaron',[269]],['Ccedil',[199]],['ccedil',[231]],['Ccirc',[264]],['ccirc',[265]],['Cconint',[8752]],['ccups',[10828]],['ccupssm',[10832]],['Cdot',[266]],['cdot',[267]],['cedil',[184]],['Cedilla',[184]],['cemptyv',[10674]],['cent',[162]],['centerdot',[183]],['CenterDot',[183]],['cfr',[120096]],['Cfr',[8493]],['CHcy',[1063]],['chcy',[1095]],['check',[10003]],['checkmark',[10003]],['Chi',[935]],['chi',[967]],['circ',[710]],['circeq',[8791]],['circlearrowleft',[8634]],['circlearrowright',[8635]],['circledast',[8859]],['circledcirc',[8858]],['circleddash',[8861]],['CircleDot',[8857]],['circledR',[174]],['circledS',[9416]],['CircleMinus',[8854]],['CirclePlus',[8853]],['CircleTimes',[8855]],['cir',[9675]],['cirE',[10691]],['cire',[8791]],['cirfnint',[10768]],['cirmid',[10991]],['cirscir',[10690]],['ClockwiseContourIntegral',[8754]],['clubs',[9827]],['clubsuit',[9827]],['colon',[58]],['Colon',[8759]],['Colone',[10868]],['colone',[8788]],['coloneq',[8788]],['comma',[44]],['commat',[64]],['comp',[8705]],['compfn',[8728]],['complement',[8705]],['complexes',[8450]],['cong',[8773]],['congdot',[10861]],['Congruent',[8801]],['conint',[8750]],['Conint',[8751]],['ContourIntegral',[8750]],['copf',[120148]],['Copf',[8450]],['coprod',[8720]],['Coproduct',[8720]],['copy',[169]],['COPY',[169]],['copysr',[8471]],['CounterClockwiseContourIntegral',[8755]],['crarr',[8629]],['cross',[10007]],['Cross',[10799]],['Cscr',[119966]],['cscr',[119992]],['csub',[10959]],['csube',[10961]],['csup',[10960]],['csupe',[10962]],['ctdot',[8943]],['cudarrl',[10552]],['cudarrr',[10549]],['cuepr',[8926]],['cuesc',[8927]],['cularr',[8630]],['cularrp',[10557]],['cupbrcap',[10824]],['cupcap',[10822]],['CupCap',[8781]],['cup',[8746]],['Cup',[8915]],['cupcup',[10826]],['cupdot',[8845]],['cupor',[10821]],['cups',[8746,65024]],['curarr',[8631]],['curarrm',[10556]],['curlyeqprec',[8926]],['curlyeqsucc',[8927]],['curlyvee',[8910]],['curlywedge',[8911]],['curren',[164]],['curvearrowleft',[8630]],['curvearrowright',[8631]],['cuvee',[8910]],['cuwed',[8911]],['cwconint',[8754]],['cwint',[8753]],['cylcty',[9005]],['dagger',[8224]],['Dagger',[8225]],['daleth',[8504]],['darr',[8595]],['Darr',[8609]],['dArr',[8659]],['dash',[8208]],['Dashv',[10980]],['dashv',[8867]],['dbkarow',[10511]],['dblac',[733]],['Dcaron',[270]],['dcaron',[271]],['Dcy',[1044]],['dcy',[1076]],['ddagger',[8225]],['ddarr',[8650]],['DD',[8517]],['dd',[8518]],['DDotrahd',[10513]],['ddotseq',[10871]],['deg',[176]],['Del',[8711]],['Delta',[916]],['delta',[948]],['demptyv',[10673]],['dfisht',[10623]],['Dfr',[120071]],['dfr',[120097]],['dHar',[10597]],['dharl',[8643]],['dharr',[8642]],['DiacriticalAcute',[180]],['DiacriticalDot',[729]],['DiacriticalDoubleAcute',[733]],['DiacriticalGrave',[96]],['DiacriticalTilde',[732]],['diam',[8900]],['diamond',[8900]],['Diamond',[8900]],['diamondsuit',[9830]],['diams',[9830]],['die',[168]],['DifferentialD',[8518]],['digamma',[989]],['disin',[8946]],['div',[247]],['divide',[247]],['divideontimes',[8903]],['divonx',[8903]],['DJcy',[1026]],['djcy',[1106]],['dlcorn',[8990]],['dlcrop',[8973]],['dollar',[36]],['Dopf',[120123]],['dopf',[120149]],['Dot',[168]],['dot',[729]],['DotDot',[8412]],['doteq',[8784]],['doteqdot',[8785]],['DotEqual',[8784]],['dotminus',[8760]],['dotplus',[8724]],['dotsquare',[8865]],['doublebarwedge',[8966]],['DoubleContourIntegral',[8751]],['DoubleDot',[168]],['DoubleDownArrow',[8659]],['DoubleLeftArrow',[8656]],['DoubleLeftRightArrow',[8660]],['DoubleLeftTee',[10980]],['DoubleLongLeftArrow',[10232]],['DoubleLongLeftRightArrow',[10234]],['DoubleLongRightArrow',[10233]],['DoubleRightArrow',[8658]],['DoubleRightTee',[8872]],['DoubleUpArrow',[8657]],['DoubleUpDownArrow',[8661]],['DoubleVerticalBar',[8741]],['DownArrowBar',[10515]],['downarrow',[8595]],['DownArrow',[8595]],['Downarrow',[8659]],['DownArrowUpArrow',[8693]],['DownBreve',[785]],['downdownarrows',[8650]],['downharpoonleft',[8643]],['downharpoonright',[8642]],['DownLeftRightVector',[10576]],['DownLeftTeeVector',[10590]],['DownLeftVectorBar',[10582]],['DownLeftVector',[8637]],['DownRightTeeVector',[10591]],['DownRightVectorBar',[10583]],['DownRightVector',[8641]],['DownTeeArrow',[8615]],['DownTee',[8868]],['drbkarow',[10512]],['drcorn',[8991]],['drcrop',[8972]],['Dscr',[119967]],['dscr',[119993]],['DScy',[1029]],['dscy',[1109]],['dsol',[10742]],['Dstrok',[272]],['dstrok',[273]],['dtdot',[8945]],['dtri',[9663]],['dtrif',[9662]],['duarr',[8693]],['duhar',[10607]],['dwangle',[10662]],['DZcy',[1039]],['dzcy',[1119]],['dzigrarr',[10239]],['Eacute',[201]],['eacute',[233]],['easter',[10862]],['Ecaron',[282]],['ecaron',[283]],['Ecirc',[202]],['ecirc',[234]],['ecir',[8790]],['ecolon',[8789]],['Ecy',[1069]],['ecy',[1101]],['eDDot',[10871]],['Edot',[278]],['edot',[279]],['eDot',[8785]],['ee',[8519]],['efDot',[8786]],['Efr',[120072]],['efr',[120098]],['eg',[10906]],['Egrave',[200]],['egrave',[232]],['egs',[10902]],['egsdot',[10904]],['el',[10905]],['Element',[8712]],['elinters',[9191]],['ell',[8467]],['els',[10901]],['elsdot',[10903]],['Emacr',[274]],['emacr',[275]],['empty',[8709]],['emptyset',[8709]],['EmptySmallSquare',[9723]],['emptyv',[8709]],['EmptyVerySmallSquare',[9643]],['emsp13',[8196]],['emsp14',[8197]],['emsp',[8195]],['ENG',[330]],['eng',[331]],['ensp',[8194]],['Eogon',[280]],['eogon',[281]],['Eopf',[120124]],['eopf',[120150]],['epar',[8917]],['eparsl',[10723]],['eplus',[10865]],['epsi',[949]],['Epsilon',[917]],['epsilon',[949]],['epsiv',[1013]],['eqcirc',[8790]],['eqcolon',[8789]],['eqsim',[8770]],['eqslantgtr',[10902]],['eqslantless',[10901]],['Equal',[10869]],['equals',[61]],['EqualTilde',[8770]],['equest',[8799]],['Equilibrium',[8652]],['equiv',[8801]],['equivDD',[10872]],['eqvparsl',[10725]],['erarr',[10609]],['erDot',[8787]],['escr',[8495]],['Escr',[8496]],['esdot',[8784]],['Esim',[10867]],['esim',[8770]],['Eta',[919]],['eta',[951]],['ETH',[208]],['eth',[240]],['Euml',[203]],['euml',[235]],['euro',[8364]],['excl',[33]],['exist',[8707]],['Exists',[8707]],['expectation',[8496]],['exponentiale',[8519]],['ExponentialE',[8519]],['fallingdotseq',[8786]],['Fcy',[1060]],['fcy',[1092]],['female',[9792]],['ffilig',[64259]],['fflig',[64256]],['ffllig',[64260]],['Ffr',[120073]],['ffr',[120099]],['filig',[64257]],['FilledSmallSquare',[9724]],['FilledVerySmallSquare',[9642]],['fjlig',[102,106]],['flat',[9837]],['fllig',[64258]],['fltns',[9649]],['fnof',[402]],['Fopf',[120125]],['fopf',[120151]],['forall',[8704]],['ForAll',[8704]],['fork',[8916]],['forkv',[10969]],['Fouriertrf',[8497]],['fpartint',[10765]],['frac12',[189]],['frac13',[8531]],['frac14',[188]],['frac15',[8533]],['frac16',[8537]],['frac18',[8539]],['frac23',[8532]],['frac25',[8534]],['frac34',[190]],['frac35',[8535]],['frac38',[8540]],['frac45',[8536]],['frac56',[8538]],['frac58',[8541]],['frac78',[8542]],['frasl',[8260]],['frown',[8994]],['fscr',[119995]],['Fscr',[8497]],['gacute',[501]],['Gamma',[915]],['gamma',[947]],['Gammad',[988]],['gammad',[989]],['gap',[10886]],['Gbreve',[286]],['gbreve',[287]],['Gcedil',[290]],['Gcirc',[284]],['gcirc',[285]],['Gcy',[1043]],['gcy',[1075]],['Gdot',[288]],['gdot',[289]],['ge',[8805]],['gE',[8807]],['gEl',[10892]],['gel',[8923]],['geq',[8805]],['geqq',[8807]],['geqslant',[10878]],['gescc',[10921]],['ges',[10878]],['gesdot',[10880]],['gesdoto',[10882]],['gesdotol',[10884]],['gesl',[8923,65024]],['gesles',[10900]],['Gfr',[120074]],['gfr',[120100]],['gg',[8811]],['Gg',[8921]],['ggg',[8921]],['gimel',[8503]],['GJcy',[1027]],['gjcy',[1107]],['gla',[10917]],['gl',[8823]],['glE',[10898]],['glj',[10916]],['gnap',[10890]],['gnapprox',[10890]],['gne',[10888]],['gnE',[8809]],['gneq',[10888]],['gneqq',[8809]],['gnsim',[8935]],['Gopf',[120126]],['gopf',[120152]],['grave',[96]],['GreaterEqual',[8805]],['GreaterEqualLess',[8923]],['GreaterFullEqual',[8807]],['GreaterGreater',[10914]],['GreaterLess',[8823]],['GreaterSlantEqual',[10878]],['GreaterTilde',[8819]],['Gscr',[119970]],['gscr',[8458]],['gsim',[8819]],['gsime',[10894]],['gsiml',[10896]],['gtcc',[10919]],['gtcir',[10874]],['gt',[62]],['GT',[62]],['Gt',[8811]],['gtdot',[8919]],['gtlPar',[10645]],['gtquest',[10876]],['gtrapprox',[10886]],['gtrarr',[10616]],['gtrdot',[8919]],['gtreqless',[8923]],['gtreqqless',[10892]],['gtrless',[8823]],['gtrsim',[8819]],['gvertneqq',[8809,65024]],['gvnE',[8809,65024]],['Hacek',[711]],['hairsp',[8202]],['half',[189]],['hamilt',[8459]],['HARDcy',[1066]],['hardcy',[1098]],['harrcir',[10568]],['harr',[8596]],['hArr',[8660]],['harrw',[8621]],['Hat',[94]],['hbar',[8463]],['Hcirc',[292]],['hcirc',[293]],['hearts',[9829]],['heartsuit',[9829]],['hellip',[8230]],['hercon',[8889]],['hfr',[120101]],['Hfr',[8460]],['HilbertSpace',[8459]],['hksearow',[10533]],['hkswarow',[10534]],['hoarr',[8703]],['homtht',[8763]],['hookleftarrow',[8617]],['hookrightarrow',[8618]],['hopf',[120153]],['Hopf',[8461]],['horbar',[8213]],['HorizontalLine',[9472]],['hscr',[119997]],['Hscr',[8459]],['hslash',[8463]],['Hstrok',[294]],['hstrok',[295]],['HumpDownHump',[8782]],['HumpEqual',[8783]],['hybull',[8259]],['hyphen',[8208]],['Iacute',[205]],['iacute',[237]],['ic',[8291]],['Icirc',[206]],['icirc',[238]],['Icy',[1048]],['icy',[1080]],['Idot',[304]],['IEcy',[1045]],['iecy',[1077]],['iexcl',[161]],['iff',[8660]],['ifr',[120102]],['Ifr',[8465]],['Igrave',[204]],['igrave',[236]],['ii',[8520]],['iiiint',[10764]],['iiint',[8749]],['iinfin',[10716]],['iiota',[8489]],['IJlig',[306]],['ijlig',[307]],['Imacr',[298]],['imacr',[299]],['image',[8465]],['ImaginaryI',[8520]],['imagline',[8464]],['imagpart',[8465]],['imath',[305]],['Im',[8465]],['imof',[8887]],['imped',[437]],['Implies',[8658]],['incare',[8453]],['in',[8712]],['infin',[8734]],['infintie',[10717]],['inodot',[305]],['intcal',[8890]],['int',[8747]],['Int',[8748]],['integers',[8484]],['Integral',[8747]],['intercal',[8890]],['Intersection',[8898]],['intlarhk',[10775]],['intprod',[10812]],['InvisibleComma',[8291]],['InvisibleTimes',[8290]],['IOcy',[1025]],['iocy',[1105]],['Iogon',[302]],['iogon',[303]],['Iopf',[120128]],['iopf',[120154]],['Iota',[921]],['iota',[953]],['iprod',[10812]],['iquest',[191]],['iscr',[119998]],['Iscr',[8464]],['isin',[8712]],['isindot',[8949]],['isinE',[8953]],['isins',[8948]],['isinsv',[8947]],['isinv',[8712]],['it',[8290]],['Itilde',[296]],['itilde',[297]],['Iukcy',[1030]],['iukcy',[1110]],['Iuml',[207]],['iuml',[239]],['Jcirc',[308]],['jcirc',[309]],['Jcy',[1049]],['jcy',[1081]],['Jfr',[120077]],['jfr',[120103]],['jmath',[567]],['Jopf',[120129]],['jopf',[120155]],['Jscr',[119973]],['jscr',[119999]],['Jsercy',[1032]],['jsercy',[1112]],['Jukcy',[1028]],['jukcy',[1108]],['Kappa',[922]],['kappa',[954]],['kappav',[1008]],['Kcedil',[310]],['kcedil',[311]],['Kcy',[1050]],['kcy',[1082]],['Kfr',[120078]],['kfr',[120104]],['kgreen',[312]],['KHcy',[1061]],['khcy',[1093]],['KJcy',[1036]],['kjcy',[1116]],['Kopf',[120130]],['kopf',[120156]],['Kscr',[119974]],['kscr',[12e4]],['lAarr',[8666]],['Lacute',[313]],['lacute',[314]],['laemptyv',[10676]],['lagran',[8466]],['Lambda',[923]],['lambda',[955]],['lang',[10216]],['Lang',[10218]],['langd',[10641]],['langle',[10216]],['lap',[10885]],['Laplacetrf',[8466]],['laquo',[171]],['larrb',[8676]],['larrbfs',[10527]],['larr',[8592]],['Larr',[8606]],['lArr',[8656]],['larrfs',[10525]],['larrhk',[8617]],['larrlp',[8619]],['larrpl',[10553]],['larrsim',[10611]],['larrtl',[8610]],['latail',[10521]],['lAtail',[10523]],['lat',[10923]],['late',[10925]],['lates',[10925,65024]],['lbarr',[10508]],['lBarr',[10510]],['lbbrk',[10098]],['lbrace',[123]],['lbrack',[91]],['lbrke',[10635]],['lbrksld',[10639]],['lbrkslu',[10637]],['Lcaron',[317]],['lcaron',[318]],['Lcedil',[315]],['lcedil',[316]],['lceil',[8968]],['lcub',[123]],['Lcy',[1051]],['lcy',[1083]],['ldca',[10550]],['ldquo',[8220]],['ldquor',[8222]],['ldrdhar',[10599]],['ldrushar',[10571]],['ldsh',[8626]],['le',[8804]],['lE',[8806]],['LeftAngleBracket',[10216]],['LeftArrowBar',[8676]],['leftarrow',[8592]],['LeftArrow',[8592]],['Leftarrow',[8656]],['LeftArrowRightArrow',[8646]],['leftarrowtail',[8610]],['LeftCeiling',[8968]],['LeftDoubleBracket',[10214]],['LeftDownTeeVector',[10593]],['LeftDownVectorBar',[10585]],['LeftDownVector',[8643]],['LeftFloor',[8970]],['leftharpoondown',[8637]],['leftharpoonup',[8636]],['leftleftarrows',[8647]],['leftrightarrow',[8596]],['LeftRightArrow',[8596]],['Leftrightarrow',[8660]],['leftrightarrows',[8646]],['leftrightharpoons',[8651]],['leftrightsquigarrow',[8621]],['LeftRightVector',[10574]],['LeftTeeArrow',[8612]],['LeftTee',[8867]],['LeftTeeVector',[10586]],['leftthreetimes',[8907]],['LeftTriangleBar',[10703]],['LeftTriangle',[8882]],['LeftTriangleEqual',[8884]],['LeftUpDownVector',[10577]],['LeftUpTeeVector',[10592]],['LeftUpVectorBar',[10584]],['LeftUpVector',[8639]],['LeftVectorBar',[10578]],['LeftVector',[8636]],['lEg',[10891]],['leg',[8922]],['leq',[8804]],['leqq',[8806]],['leqslant',[10877]],['lescc',[10920]],['les',[10877]],['lesdot',[10879]],['lesdoto',[10881]],['lesdotor',[10883]],['lesg',[8922,65024]],['lesges',[10899]],['lessapprox',[10885]],['lessdot',[8918]],['lesseqgtr',[8922]],['lesseqqgtr',[10891]],['LessEqualGreater',[8922]],['LessFullEqual',[8806]],['LessGreater',[8822]],['lessgtr',[8822]],['LessLess',[10913]],['lesssim',[8818]],['LessSlantEqual',[10877]],['LessTilde',[8818]],['lfisht',[10620]],['lfloor',[8970]],['Lfr',[120079]],['lfr',[120105]],['lg',[8822]],['lgE',[10897]],['lHar',[10594]],['lhard',[8637]],['lharu',[8636]],['lharul',[10602]],['lhblk',[9604]],['LJcy',[1033]],['ljcy',[1113]],['llarr',[8647]],['ll',[8810]],['Ll',[8920]],['llcorner',[8990]],['Lleftarrow',[8666]],['llhard',[10603]],['lltri',[9722]],['Lmidot',[319]],['lmidot',[320]],['lmoustache',[9136]],['lmoust',[9136]],['lnap',[10889]],['lnapprox',[10889]],['lne',[10887]],['lnE',[8808]],['lneq',[10887]],['lneqq',[8808]],['lnsim',[8934]],['loang',[10220]],['loarr',[8701]],['lobrk',[10214]],['longleftarrow',[10229]],['LongLeftArrow',[10229]],['Longleftarrow',[10232]],['longleftrightarrow',[10231]],['LongLeftRightArrow',[10231]],['Longleftrightarrow',[10234]],['longmapsto',[10236]],['longrightarrow',[10230]],['LongRightArrow',[10230]],['Longrightarrow',[10233]],['looparrowleft',[8619]],['looparrowright',[8620]],['lopar',[10629]],['Lopf',[120131]],['lopf',[120157]],['loplus',[10797]],['lotimes',[10804]],['lowast',[8727]],['lowbar',[95]],['LowerLeftArrow',[8601]],['LowerRightArrow',[8600]],['loz',[9674]],['lozenge',[9674]],['lozf',[10731]],['lpar',[40]],['lparlt',[10643]],['lrarr',[8646]],['lrcorner',[8991]],['lrhar',[8651]],['lrhard',[10605]],['lrm',[8206]],['lrtri',[8895]],['lsaquo',[8249]],['lscr',[120001]],['Lscr',[8466]],['lsh',[8624]],['Lsh',[8624]],['lsim',[8818]],['lsime',[10893]],['lsimg',[10895]],['lsqb',[91]],['lsquo',[8216]],['lsquor',[8218]],['Lstrok',[321]],['lstrok',[322]],['ltcc',[10918]],['ltcir',[10873]],['lt',[60]],['LT',[60]],['Lt',[8810]],['ltdot',[8918]],['lthree',[8907]],['ltimes',[8905]],['ltlarr',[10614]],['ltquest',[10875]],['ltri',[9667]],['ltrie',[8884]],['ltrif',[9666]],['ltrPar',[10646]],['lurdshar',[10570]],['luruhar',[10598]],['lvertneqq',[8808,65024]],['lvnE',[8808,65024]],['macr',[175]],['male',[9794]],['malt',[10016]],['maltese',[10016]],['Map',[10501]],['map',[8614]],['mapsto',[8614]],['mapstodown',[8615]],['mapstoleft',[8612]],['mapstoup',[8613]],['marker',[9646]],['mcomma',[10793]],['Mcy',[1052]],['mcy',[1084]],['mdash',[8212]],['mDDot',[8762]],['measuredangle',[8737]],['MediumSpace',[8287]],['Mellintrf',[8499]],['Mfr',[120080]],['mfr',[120106]],['mho',[8487]],['micro',[181]],['midast',[42]],['midcir',[10992]],['mid',[8739]],['middot',[183]],['minusb',[8863]],['minus',[8722]],['minusd',[8760]],['minusdu',[10794]],['MinusPlus',[8723]],['mlcp',[10971]],['mldr',[8230]],['mnplus',[8723]],['models',[8871]],['Mopf',[120132]],['mopf',[120158]],['mp',[8723]],['mscr',[120002]],['Mscr',[8499]],['mstpos',[8766]],['Mu',[924]],['mu',[956]],['multimap',[8888]],['mumap',[8888]],['nabla',[8711]],['Nacute',[323]],['nacute',[324]],['nang',[8736,8402]],['nap',[8777]],['napE',[10864,824]],['napid',[8779,824]],['napos',[329]],['napprox',[8777]],['natural',[9838]],['naturals',[8469]],['natur',[9838]],['nbsp',[160]],['nbump',[8782,824]],['nbumpe',[8783,824]],['ncap',[10819]],['Ncaron',[327]],['ncaron',[328]],['Ncedil',[325]],['ncedil',[326]],['ncong',[8775]],['ncongdot',[10861,824]],['ncup',[10818]],['Ncy',[1053]],['ncy',[1085]],['ndash',[8211]],['nearhk',[10532]],['nearr',[8599]],['neArr',[8663]],['nearrow',[8599]],['ne',[8800]],['nedot',[8784,824]],['NegativeMediumSpace',[8203]],['NegativeThickSpace',[8203]],['NegativeThinSpace',[8203]],['NegativeVeryThinSpace',[8203]],['nequiv',[8802]],['nesear',[10536]],['nesim',[8770,824]],['NestedGreaterGreater',[8811]],['NestedLessLess',[8810]],['nexist',[8708]],['nexists',[8708]],['Nfr',[120081]],['nfr',[120107]],['ngE',[8807,824]],['nge',[8817]],['ngeq',[8817]],['ngeqq',[8807,824]],['ngeqslant',[10878,824]],['nges',[10878,824]],['nGg',[8921,824]],['ngsim',[8821]],['nGt',[8811,8402]],['ngt',[8815]],['ngtr',[8815]],['nGtv',[8811,824]],['nharr',[8622]],['nhArr',[8654]],['nhpar',[10994]],['ni',[8715]],['nis',[8956]],['nisd',[8954]],['niv',[8715]],['NJcy',[1034]],['njcy',[1114]],['nlarr',[8602]],['nlArr',[8653]],['nldr',[8229]],['nlE',[8806,824]],['nle',[8816]],['nleftarrow',[8602]],['nLeftarrow',[8653]],['nleftrightarrow',[8622]],['nLeftrightarrow',[8654]],['nleq',[8816]],['nleqq',[8806,824]],['nleqslant',[10877,824]],['nles',[10877,824]],['nless',[8814]],['nLl',[8920,824]],['nlsim',[8820]],['nLt',[8810,8402]],['nlt',[8814]],['nltri',[8938]],['nltrie',[8940]],['nLtv',[8810,824]],['nmid',[8740]],['NoBreak',[8288]],['NonBreakingSpace',[160]],['nopf',[120159]],['Nopf',[8469]],['Not',[10988]],['not',[172]],['NotCongruent',[8802]],['NotCupCap',[8813]],['NotDoubleVerticalBar',[8742]],['NotElement',[8713]],['NotEqual',[8800]],['NotEqualTilde',[8770,824]],['NotExists',[8708]],['NotGreater',[8815]],['NotGreaterEqual',[8817]],['NotGreaterFullEqual',[8807,824]],['NotGreaterGreater',[8811,824]],['NotGreaterLess',[8825]],['NotGreaterSlantEqual',[10878,824]],['NotGreaterTilde',[8821]],['NotHumpDownHump',[8782,824]],['NotHumpEqual',[8783,824]],['notin',[8713]],['notindot',[8949,824]],['notinE',[8953,824]],['notinva',[8713]],['notinvb',[8951]],['notinvc',[8950]],['NotLeftTriangleBar',[10703,824]],['NotLeftTriangle',[8938]],['NotLeftTriangleEqual',[8940]],['NotLess',[8814]],['NotLessEqual',[8816]],['NotLessGreater',[8824]],['NotLessLess',[8810,824]],['NotLessSlantEqual',[10877,824]],['NotLessTilde',[8820]],['NotNestedGreaterGreater',[10914,824]],['NotNestedLessLess',[10913,824]],['notni',[8716]],['notniva',[8716]],['notnivb',[8958]],['notnivc',[8957]],['NotPrecedes',[8832]],['NotPrecedesEqual',[10927,824]],['NotPrecedesSlantEqual',[8928]],['NotReverseElement',[8716]],['NotRightTriangleBar',[10704,824]],['NotRightTriangle',[8939]],['NotRightTriangleEqual',[8941]],['NotSquareSubset',[8847,824]],['NotSquareSubsetEqual',[8930]],['NotSquareSuperset',[8848,824]],['NotSquareSupersetEqual',[8931]],['NotSubset',[8834,8402]],['NotSubsetEqual',[8840]],['NotSucceeds',[8833]],['NotSucceedsEqual',[10928,824]],['NotSucceedsSlantEqual',[8929]],['NotSucceedsTilde',[8831,824]],['NotSuperset',[8835,8402]],['NotSupersetEqual',[8841]],['NotTilde',[8769]],['NotTildeEqual',[8772]],['NotTildeFullEqual',[8775]],['NotTildeTilde',[8777]],['NotVerticalBar',[8740]],['nparallel',[8742]],['npar',[8742]],['nparsl',[11005,8421]],['npart',[8706,824]],['npolint',[10772]],['npr',[8832]],['nprcue',[8928]],['nprec',[8832]],['npreceq',[10927,824]],['npre',[10927,824]],['nrarrc',[10547,824]],['nrarr',[8603]],['nrArr',[8655]],['nrarrw',[8605,824]],['nrightarrow',[8603]],['nRightarrow',[8655]],['nrtri',[8939]],['nrtrie',[8941]],['nsc',[8833]],['nsccue',[8929]],['nsce',[10928,824]],['Nscr',[119977]],['nscr',[120003]],['nshortmid',[8740]],['nshortparallel',[8742]],['nsim',[8769]],['nsime',[8772]],['nsimeq',[8772]],['nsmid',[8740]],['nspar',[8742]],['nsqsube',[8930]],['nsqsupe',[8931]],['nsub',[8836]],['nsubE',[10949,824]],['nsube',[8840]],['nsubset',[8834,8402]],['nsubseteq',[8840]],['nsubseteqq',[10949,824]],['nsucc',[8833]],['nsucceq',[10928,824]],['nsup',[8837]],['nsupE',[10950,824]],['nsupe',[8841]],['nsupset',[8835,8402]],['nsupseteq',[8841]],['nsupseteqq',[10950,824]],['ntgl',[8825]],['Ntilde',[209]],['ntilde',[241]],['ntlg',[8824]],['ntriangleleft',[8938]],['ntrianglelefteq',[8940]],['ntriangleright',[8939]],['ntrianglerighteq',[8941]],['Nu',[925]],['nu',[957]],['num',[35]],['numero',[8470]],['numsp',[8199]],['nvap',[8781,8402]],['nvdash',[8876]],['nvDash',[8877]],['nVdash',[8878]],['nVDash',[8879]],['nvge',[8805,8402]],['nvgt',[62,8402]],['nvHarr',[10500]],['nvinfin',[10718]],['nvlArr',[10498]],['nvle',[8804,8402]],['nvlt',[60,8402]],['nvltrie',[8884,8402]],['nvrArr',[10499]],['nvrtrie',[8885,8402]],['nvsim',[8764,8402]],['nwarhk',[10531]],['nwarr',[8598]],['nwArr',[8662]],['nwarrow',[8598]],['nwnear',[10535]],['Oacute',[211]],['oacute',[243]],['oast',[8859]],['Ocirc',[212]],['ocirc',[244]],['ocir',[8858]],['Ocy',[1054]],['ocy',[1086]],['odash',[8861]],['Odblac',[336]],['odblac',[337]],['odiv',[10808]],['odot',[8857]],['odsold',[10684]],['OElig',[338]],['oelig',[339]],['ofcir',[10687]],['Ofr',[120082]],['ofr',[120108]],['ogon',[731]],['Ograve',[210]],['ograve',[242]],['ogt',[10689]],['ohbar',[10677]],['ohm',[937]],['oint',[8750]],['olarr',[8634]],['olcir',[10686]],['olcross',[10683]],['oline',[8254]],['olt',[10688]],['Omacr',[332]],['omacr',[333]],['Omega',[937]],['omega',[969]],['Omicron',[927]],['omicron',[959]],['omid',[10678]],['ominus',[8854]],['Oopf',[120134]],['oopf',[120160]],['opar',[10679]],['OpenCurlyDoubleQuote',[8220]],['OpenCurlyQuote',[8216]],['operp',[10681]],['oplus',[8853]],['orarr',[8635]],['Or',[10836]],['or',[8744]],['ord',[10845]],['order',[8500]],['orderof',[8500]],['ordf',[170]],['ordm',[186]],['origof',[8886]],['oror',[10838]],['orslope',[10839]],['orv',[10843]],['oS',[9416]],['Oscr',[119978]],['oscr',[8500]],['Oslash',[216]],['oslash',[248]],['osol',[8856]],['Otilde',[213]],['otilde',[245]],['otimesas',[10806]],['Otimes',[10807]],['otimes',[8855]],['Ouml',[214]],['ouml',[246]],['ovbar',[9021]],['OverBar',[8254]],['OverBrace',[9182]],['OverBracket',[9140]],['OverParenthesis',[9180]],['para',[182]],['parallel',[8741]],['par',[8741]],['parsim',[10995]],['parsl',[11005]],['part',[8706]],['PartialD',[8706]],['Pcy',[1055]],['pcy',[1087]],['percnt',[37]],['period',[46]],['permil',[8240]],['perp',[8869]],['pertenk',[8241]],['Pfr',[120083]],['pfr',[120109]],['Phi',[934]],['phi',[966]],['phiv',[981]],['phmmat',[8499]],['phone',[9742]],['Pi',[928]],['pi',[960]],['pitchfork',[8916]],['piv',[982]],['planck',[8463]],['planckh',[8462]],['plankv',[8463]],['plusacir',[10787]],['plusb',[8862]],['pluscir',[10786]],['plus',[43]],['plusdo',[8724]],['plusdu',[10789]],['pluse',[10866]],['PlusMinus',[177]],['plusmn',[177]],['plussim',[10790]],['plustwo',[10791]],['pm',[177]],['Poincareplane',[8460]],['pointint',[10773]],['popf',[120161]],['Popf',[8473]],['pound',[163]],['prap',[10935]],['Pr',[10939]],['pr',[8826]],['prcue',[8828]],['precapprox',[10935]],['prec',[8826]],['preccurlyeq',[8828]],['Precedes',[8826]],['PrecedesEqual',[10927]],['PrecedesSlantEqual',[8828]],['PrecedesTilde',[8830]],['preceq',[10927]],['precnapprox',[10937]],['precneqq',[10933]],['precnsim',[8936]],['pre',[10927]],['prE',[10931]],['precsim',[8830]],['prime',[8242]],['Prime',[8243]],['primes',[8473]],['prnap',[10937]],['prnE',[10933]],['prnsim',[8936]],['prod',[8719]],['Product',[8719]],['profalar',[9006]],['profline',[8978]],['profsurf',[8979]],['prop',[8733]],['Proportional',[8733]],['Proportion',[8759]],['propto',[8733]],['prsim',[8830]],['prurel',[8880]],['Pscr',[119979]],['pscr',[120005]],['Psi',[936]],['psi',[968]],['puncsp',[8200]],['Qfr',[120084]],['qfr',[120110]],['qint',[10764]],['qopf',[120162]],['Qopf',[8474]],['qprime',[8279]],['Qscr',[119980]],['qscr',[120006]],['quaternions',[8461]],['quatint',[10774]],['quest',[63]],['questeq',[8799]],['quot',[34]],['QUOT',[34]],['rAarr',[8667]],['race',[8765,817]],['Racute',[340]],['racute',[341]],['radic',[8730]],['raemptyv',[10675]],['rang',[10217]],['Rang',[10219]],['rangd',[10642]],['range',[10661]],['rangle',[10217]],['raquo',[187]],['rarrap',[10613]],['rarrb',[8677]],['rarrbfs',[10528]],['rarrc',[10547]],['rarr',[8594]],['Rarr',[8608]],['rArr',[8658]],['rarrfs',[10526]],['rarrhk',[8618]],['rarrlp',[8620]],['rarrpl',[10565]],['rarrsim',[10612]],['Rarrtl',[10518]],['rarrtl',[8611]],['rarrw',[8605]],['ratail',[10522]],['rAtail',[10524]],['ratio',[8758]],['rationals',[8474]],['rbarr',[10509]],['rBarr',[10511]],['RBarr',[10512]],['rbbrk',[10099]],['rbrace',[125]],['rbrack',[93]],['rbrke',[10636]],['rbrksld',[10638]],['rbrkslu',[10640]],['Rcaron',[344]],['rcaron',[345]],['Rcedil',[342]],['rcedil',[343]],['rceil',[8969]],['rcub',[125]],['Rcy',[1056]],['rcy',[1088]],['rdca',[10551]],['rdldhar',[10601]],['rdquo',[8221]],['rdquor',[8221]],['CloseCurlyDoubleQuote',[8221]],['rdsh',[8627]],['real',[8476]],['realine',[8475]],['realpart',[8476]],['reals',[8477]],['Re',[8476]],['rect',[9645]],['reg',[174]],['REG',[174]],['ReverseElement',[8715]],['ReverseEquilibrium',[8651]],['ReverseUpEquilibrium',[10607]],['rfisht',[10621]],['rfloor',[8971]],['rfr',[120111]],['Rfr',[8476]],['rHar',[10596]],['rhard',[8641]],['rharu',[8640]],['rharul',[10604]],['Rho',[929]],['rho',[961]],['rhov',[1009]],['RightAngleBracket',[10217]],['RightArrowBar',[8677]],['rightarrow',[8594]],['RightArrow',[8594]],['Rightarrow',[8658]],['RightArrowLeftArrow',[8644]],['rightarrowtail',[8611]],['RightCeiling',[8969]],['RightDoubleBracket',[10215]],['RightDownTeeVector',[10589]],['RightDownVectorBar',[10581]],['RightDownVector',[8642]],['RightFloor',[8971]],['rightharpoondown',[8641]],['rightharpoonup',[8640]],['rightleftarrows',[8644]],['rightleftharpoons',[8652]],['rightrightarrows',[8649]],['rightsquigarrow',[8605]],['RightTeeArrow',[8614]],['RightTee',[8866]],['RightTeeVector',[10587]],['rightthreetimes',[8908]],['RightTriangleBar',[10704]],['RightTriangle',[8883]],['RightTriangleEqual',[8885]],['RightUpDownVector',[10575]],['RightUpTeeVector',[10588]],['RightUpVectorBar',[10580]],['RightUpVector',[8638]],['RightVectorBar',[10579]],['RightVector',[8640]],['ring',[730]],['risingdotseq',[8787]],['rlarr',[8644]],['rlhar',[8652]],['rlm',[8207]],['rmoustache',[9137]],['rmoust',[9137]],['rnmid',[10990]],['roang',[10221]],['roarr',[8702]],['robrk',[10215]],['ropar',[10630]],['ropf',[120163]],['Ropf',[8477]],['roplus',[10798]],['rotimes',[10805]],['RoundImplies',[10608]],['rpar',[41]],['rpargt',[10644]],['rppolint',[10770]],['rrarr',[8649]],['Rrightarrow',[8667]],['rsaquo',[8250]],['rscr',[120007]],['Rscr',[8475]],['rsh',[8625]],['Rsh',[8625]],['rsqb',[93]],['rsquo',[8217]],['rsquor',[8217]],['CloseCurlyQuote',[8217]],['rthree',[8908]],['rtimes',[8906]],['rtri',[9657]],['rtrie',[8885]],['rtrif',[9656]],['rtriltri',[10702]],['RuleDelayed',[10740]],['ruluhar',[10600]],['rx',[8478]],['Sacute',[346]],['sacute',[347]],['sbquo',[8218]],['scap',[10936]],['Scaron',[352]],['scaron',[353]],['Sc',[10940]],['sc',[8827]],['sccue',[8829]],['sce',[10928]],['scE',[10932]],['Scedil',[350]],['scedil',[351]],['Scirc',[348]],['scirc',[349]],['scnap',[10938]],['scnE',[10934]],['scnsim',[8937]],['scpolint',[10771]],['scsim',[8831]],['Scy',[1057]],['scy',[1089]],['sdotb',[8865]],['sdot',[8901]],['sdote',[10854]],['searhk',[10533]],['searr',[8600]],['seArr',[8664]],['searrow',[8600]],['sect',[167]],['semi',[59]],['seswar',[10537]],['setminus',[8726]],['setmn',[8726]],['sext',[10038]],['Sfr',[120086]],['sfr',[120112]],['sfrown',[8994]],['sharp',[9839]],['SHCHcy',[1065]],['shchcy',[1097]],['SHcy',[1064]],['shcy',[1096]],['ShortDownArrow',[8595]],['ShortLeftArrow',[8592]],['shortmid',[8739]],['shortparallel',[8741]],['ShortRightArrow',[8594]],['ShortUpArrow',[8593]],['shy',[173]],['Sigma',[931]],['sigma',[963]],['sigmaf',[962]],['sigmav',[962]],['sim',[8764]],['simdot',[10858]],['sime',[8771]],['simeq',[8771]],['simg',[10910]],['simgE',[10912]],['siml',[10909]],['simlE',[10911]],['simne',[8774]],['simplus',[10788]],['simrarr',[10610]],['slarr',[8592]],['SmallCircle',[8728]],['smallsetminus',[8726]],['smashp',[10803]],['smeparsl',[10724]],['smid',[8739]],['smile',[8995]],['smt',[10922]],['smte',[10924]],['smtes',[10924,65024]],['SOFTcy',[1068]],['softcy',[1100]],['solbar',[9023]],['solb',[10692]],['sol',[47]],['Sopf',[120138]],['sopf',[120164]],['spades',[9824]],['spadesuit',[9824]],['spar',[8741]],['sqcap',[8851]],['sqcaps',[8851,65024]],['sqcup',[8852]],['sqcups',[8852,65024]],['Sqrt',[8730]],['sqsub',[8847]],['sqsube',[8849]],['sqsubset',[8847]],['sqsubseteq',[8849]],['sqsup',[8848]],['sqsupe',[8850]],['sqsupset',[8848]],['sqsupseteq',[8850]],['square',[9633]],['Square',[9633]],['SquareIntersection',[8851]],['SquareSubset',[8847]],['SquareSubsetEqual',[8849]],['SquareSuperset',[8848]],['SquareSupersetEqual',[8850]],['SquareUnion',[8852]],['squarf',[9642]],['squ',[9633]],['squf',[9642]],['srarr',[8594]],['Sscr',[119982]],['sscr',[120008]],['ssetmn',[8726]],['ssmile',[8995]],['sstarf',[8902]],['Star',[8902]],['star',[9734]],['starf',[9733]],['straightepsilon',[1013]],['straightphi',[981]],['strns',[175]],['sub',[8834]],['Sub',[8912]],['subdot',[10941]],['subE',[10949]],['sube',[8838]],['subedot',[10947]],['submult',[10945]],['subnE',[10955]],['subne',[8842]],['subplus',[10943]],['subrarr',[10617]],['subset',[8834]],['Subset',[8912]],['subseteq',[8838]],['subseteqq',[10949]],['SubsetEqual',[8838]],['subsetneq',[8842]],['subsetneqq',[10955]],['subsim',[10951]],['subsub',[10965]],['subsup',[10963]],['succapprox',[10936]],['succ',[8827]],['succcurlyeq',[8829]],['Succeeds',[8827]],['SucceedsEqual',[10928]],['SucceedsSlantEqual',[8829]],['SucceedsTilde',[8831]],['succeq',[10928]],['succnapprox',[10938]],['succneqq',[10934]],['succnsim',[8937]],['succsim',[8831]],['SuchThat',[8715]],['sum',[8721]],['Sum',[8721]],['sung',[9834]],['sup1',[185]],['sup2',[178]],['sup3',[179]],['sup',[8835]],['Sup',[8913]],['supdot',[10942]],['supdsub',[10968]],['supE',[10950]],['supe',[8839]],['supedot',[10948]],['Superset',[8835]],['SupersetEqual',[8839]],['suphsol',[10185]],['suphsub',[10967]],['suplarr',[10619]],['supmult',[10946]],['supnE',[10956]],['supne',[8843]],['supplus',[10944]],['supset',[8835]],['Supset',[8913]],['supseteq',[8839]],['supseteqq',[10950]],['supsetneq',[8843]],['supsetneqq',[10956]],['supsim',[10952]],['supsub',[10964]],['supsup',[10966]],['swarhk',[10534]],['swarr',[8601]],['swArr',[8665]],['swarrow',[8601]],['swnwar',[10538]],['szlig',[223]],['Tab',[9]],['target',[8982]],['Tau',[932]],['tau',[964]],['tbrk',[9140]],['Tcaron',[356]],['tcaron',[357]],['Tcedil',[354]],['tcedil',[355]],['Tcy',[1058]],['tcy',[1090]],['tdot',[8411]],['telrec',[8981]],['Tfr',[120087]],['tfr',[120113]],['there4',[8756]],['therefore',[8756]],['Therefore',[8756]],['Theta',[920]],['theta',[952]],['thetasym',[977]],['thetav',[977]],['thickapprox',[8776]],['thicksim',[8764]],['ThickSpace',[8287,8202]],['ThinSpace',[8201]],['thinsp',[8201]],['thkap',[8776]],['thksim',[8764]],['THORN',[222]],['thorn',[254]],['tilde',[732]],['Tilde',[8764]],['TildeEqual',[8771]],['TildeFullEqual',[8773]],['TildeTilde',[8776]],['timesbar',[10801]],['timesb',[8864]],['times',[215]],['timesd',[10800]],['tint',[8749]],['toea',[10536]],['topbot',[9014]],['topcir',[10993]],['top',[8868]],['Topf',[120139]],['topf',[120165]],['topfork',[10970]],['tosa',[10537]],['tprime',[8244]],['trade',[8482]],['TRADE',[8482]],['triangle',[9653]],['triangledown',[9663]],['triangleleft',[9667]],['trianglelefteq',[8884]],['triangleq',[8796]],['triangleright',[9657]],['trianglerighteq',[8885]],['tridot',[9708]],['trie',[8796]],['triminus',[10810]],['TripleDot',[8411]],['triplus',[10809]],['trisb',[10701]],['tritime',[10811]],['trpezium',[9186]],['Tscr',[119983]],['tscr',[120009]],['TScy',[1062]],['tscy',[1094]],['TSHcy',[1035]],['tshcy',[1115]],['Tstrok',[358]],['tstrok',[359]],['twixt',[8812]],['twoheadleftarrow',[8606]],['twoheadrightarrow',[8608]],['Uacute',[218]],['uacute',[250]],['uarr',[8593]],['Uarr',[8607]],['uArr',[8657]],['Uarrocir',[10569]],['Ubrcy',[1038]],['ubrcy',[1118]],['Ubreve',[364]],['ubreve',[365]],['Ucirc',[219]],['ucirc',[251]],['Ucy',[1059]],['ucy',[1091]],['udarr',[8645]],['Udblac',[368]],['udblac',[369]],['udhar',[10606]],['ufisht',[10622]],['Ufr',[120088]],['ufr',[120114]],['Ugrave',[217]],['ugrave',[249]],['uHar',[10595]],['uharl',[8639]],['uharr',[8638]],['uhblk',[9600]],['ulcorn',[8988]],['ulcorner',[8988]],['ulcrop',[8975]],['ultri',[9720]],['Umacr',[362]],['umacr',[363]],['uml',[168]],['UnderBar',[95]],['UnderBrace',[9183]],['UnderBracket',[9141]],['UnderParenthesis',[9181]],['Union',[8899]],['UnionPlus',[8846]],['Uogon',[370]],['uogon',[371]],['Uopf',[120140]],['uopf',[120166]],['UpArrowBar',[10514]],['uparrow',[8593]],['UpArrow',[8593]],['Uparrow',[8657]],['UpArrowDownArrow',[8645]],['updownarrow',[8597]],['UpDownArrow',[8597]],['Updownarrow',[8661]],['UpEquilibrium',[10606]],['upharpoonleft',[8639]],['upharpoonright',[8638]],['uplus',[8846]],['UpperLeftArrow',[8598]],['UpperRightArrow',[8599]],['upsi',[965]],['Upsi',[978]],['upsih',[978]],['Upsilon',[933]],['upsilon',[965]],['UpTeeArrow',[8613]],['UpTee',[8869]],['upuparrows',[8648]],['urcorn',[8989]],['urcorner',[8989]],['urcrop',[8974]],['Uring',[366]],['uring',[367]],['urtri',[9721]],['Uscr',[119984]],['uscr',[120010]],['utdot',[8944]],['Utilde',[360]],['utilde',[361]],['utri',[9653]],['utrif',[9652]],['uuarr',[8648]],['Uuml',[220]],['uuml',[252]],['uwangle',[10663]],['vangrt',[10652]],['varepsilon',[1013]],['varkappa',[1008]],['varnothing',[8709]],['varphi',[981]],['varpi',[982]],['varpropto',[8733]],['varr',[8597]],['vArr',[8661]],['varrho',[1009]],['varsigma',[962]],['varsubsetneq',[8842,65024]],['varsubsetneqq',[10955,65024]],['varsupsetneq',[8843,65024]],['varsupsetneqq',[10956,65024]],['vartheta',[977]],['vartriangleleft',[8882]],['vartriangleright',[8883]],['vBar',[10984]],['Vbar',[10987]],['vBarv',[10985]],['Vcy',[1042]],['vcy',[1074]],['vdash',[8866]],['vDash',[8872]],['Vdash',[8873]],['VDash',[8875]],['Vdashl',[10982]],['veebar',[8891]],['vee',[8744]],['Vee',[8897]],['veeeq',[8794]],['vellip',[8942]],['verbar',[124]],['Verbar',[8214]],['vert',[124]],['Vert',[8214]],['VerticalBar',[8739]],['VerticalLine',[124]],['VerticalSeparator',[10072]],['VerticalTilde',[8768]],['VeryThinSpace',[8202]],['Vfr',[120089]],['vfr',[120115]],['vltri',[8882]],['vnsub',[8834,8402]],['vnsup',[8835,8402]],['Vopf',[120141]],['vopf',[120167]],['vprop',[8733]],['vrtri',[8883]],['Vscr',[119985]],['vscr',[120011]],['vsubnE',[10955,65024]],['vsubne',[8842,65024]],['vsupnE',[10956,65024]],['vsupne',[8843,65024]],['Vvdash',[8874]],['vzigzag',[10650]],['Wcirc',[372]],['wcirc',[373]],['wedbar',[10847]],['wedge',[8743]],['Wedge',[8896]],['wedgeq',[8793]],['weierp',[8472]],['Wfr',[120090]],['wfr',[120116]],['Wopf',[120142]],['wopf',[120168]],['wp',[8472]],['wr',[8768]],['wreath',[8768]],['Wscr',[119986]],['wscr',[120012]],['xcap',[8898]],['xcirc',[9711]],['xcup',[8899]],['xdtri',[9661]],['Xfr',[120091]],['xfr',[120117]],['xharr',[10231]],['xhArr',[10234]],['Xi',[926]],['xi',[958]],['xlarr',[10229]],['xlArr',[10232]],['xmap',[10236]],['xnis',[8955]],['xodot',[10752]],['Xopf',[120143]],['xopf',[120169]],['xoplus',[10753]],['xotime',[10754]],['xrarr',[10230]],['xrArr',[10233]],['Xscr',[119987]],['xscr',[120013]],['xsqcup',[10758]],['xuplus',[10756]],['xutri',[9651]],['xvee',[8897]],['xwedge',[8896]],['Yacute',[221]],['yacute',[253]],['YAcy',[1071]],['yacy',[1103]],['Ycirc',[374]],['ycirc',[375]],['Ycy',[1067]],['ycy',[1099]],['yen',[165]],['Yfr',[120092]],['yfr',[120118]],['YIcy',[1031]],['yicy',[1111]],['Yopf',[120144]],['yopf',[120170]],['Yscr',[119988]],['yscr',[120014]],['YUcy',[1070]],['yucy',[1102]],['yuml',[255]],['Yuml',[376]],['Zacute',[377]],['zacute',[378]],['Zcaron',[381]],['zcaron',[382]],['Zcy',[1047]],['zcy',[1079]],['Zdot',[379]],['zdot',[380]],['zeetrf',[8488]],['ZeroWidthSpace',[8203]],['Zeta',[918]],['zeta',[950]],['zfr',[120119]],['Zfr',[8488]],['ZHcy',[1046]],['zhcy',[1078]],['zigrarr',[8669]],['zopf',[120171]],['Zopf',[8484]],['Zscr',[119989]],['zscr',[120015]],['zwj',[8205]],['zwnj',[8204]]],o=[['NewLine',[10]]],s={},l={};!(function(s,l){var i=t.length;for(;i--;){var c=t[i],n=c[0],u=c[1],p=u[0],h=u[1],f=p<32||p>126||62===p||60===p||38===p||34===p||39===p,b=void 0;f&&(b=l[p]=l[p]||{}),h?(s[n]=String.fromCharCode(p)+String.fromCharCode(h),f&&(b[h]=n)):(s[n]=String.fromCharCode(p),f&&(b['']=n))}i=o.length;for(;i--;){var q=o[i],n=q[0],w=q[1],p=w[0],h=w[1];s[n]=String.fromCharCode(p)+(h?String.fromCharCode(h):'')}})(s,l);var i=(function(){function t(){}return t.prototype.decode=function(t){return t&&t.length?t.replace(/&(#?[\w\d]+);?/g,function(t,o){var l;if("#"===o.charAt(0)){var i='x'===o.charAt(1)?parseInt(o.substr(2).toLowerCase(),16):parseInt(o.substr(1));(!isNaN(i)||i>=-32768)&&(l=i<=65535?String.fromCharCode(i):r(d[0]).fromCodePoint(i))}else l=s[o];return l||t}):''},t.decode=function(o){return(new t).decode(o)},t.prototype.encode=function(t){if(!t||!t.length)return'';for(var o=t.length,s='',i=0;i126?c>=r(d[0]).highSurrogateFrom&&c<=r(d[0]).highSurrogateTo?(s+='&#'+r(d[0]).getCodePoint(t,i)+';',i++):s+='&#'+c+';':s+=t.charAt(i),i++}return s},t.encodeNonUTF=function(o){return(new t).encodeNonUTF(o)},t.prototype.encodeNonASCII=function(t){if(!t||!t.length)return'';for(var o=t.length,s='',l=0;l=r(d[0]).highSurrogateFrom&&i<=r(d[0]).highSurrogateTo?(s+='&#'+r(d[0]).getCodePoint(t,l)+';',l+=2):(s+='&#'+i+';',l++)}return s},t.encodeNonASCII=function(o){return(new t).encodeNonASCII(o)},t})();e.Html5Entities=i},508,[506]); -__d(function(g,r,_i,a,m,e,d){function t(t){this.options=t||{locator:{}}}function n(t,n,i){if(!t){if(n instanceof o)return n;t=n}var l={},u=t instanceof Function;function s(n){var o=t[n];!o&&u&&(o=2==t.length?function(o){t(n,o)}:t),l[n]=o&&function(t){o('[xmldom '+n+']\t'+t+c(i))}||function(){}}return i=i||{},s('warning'),s('error'),s('fatalError'),l}function o(){this.cdata=!1}function i(t,n){n.lineNumber=t.lineNumber,n.columnNumber=t.columnNumber}function c(t){if(t)return'\n@'+(t.systemId||'')+'#[line:'+t.lineNumber+',col:'+t.columnNumber+']'}function l(t,n,o){return'string'==typeof t?t.substr(n,o):t.length>=n+o||n?new java.lang.String(t,n,o)+'':t}function u(t,n){t.currentElement?t.currentElement.appendChild(n):t.document.appendChild(n)}if(t.prototype.parseFromString=function(t,i){var c=this.options,l=new s,u=c.domBuilder||new o,f=c.errorHandler,h=c.locator,p=c.xmlns||{};if('function'==typeof r)var D=r(d[0]).EntityMap;return h&&u.setDocumentLocator(h),l.errorHandler=n(f,u,h),l.domBuilder=c.domBuilder||u,/\/x?html?$/.test(i)&&(D.nbsp='\xa0',D.copy='\xa9',p['']='http://www.w3.org/1999/xhtml'),p.xml=p.xml||'http://www.w3.org/XML/1998/namespace',t?l.parse(t,p,D):l.errorHandler.error("invalid document source"),u.document},o.prototype={startDocument:function(){this.document=(new f).createDocument(null,null,null),this.locator&&(this.document.documentURI=this.locator.systemId)},startElement:function(t,n,o,c){var l=this.document,s=l.createElementNS(t,o||n),f=c.length;u(this,s),this.currentElement=s,this.locator&&i(this.locator,s);for(var h=0;h',amp:'&',quot:'"',apos:"'",laquo:'\xab',raquo:'\xbb',aacute:'\xe1',eacute:'\xe9',iacute:'\xed',oacute:'\xf3',uacute:'\xfa',Aacute:'\xc1',Eacute:'\xc9',Iacute:'\xcd',Oacute:'\xd3',Uacute:'\xda',nbsp:' ',forall:"\u2200",part:"\u2202",exists:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220b",prod:"\u220f",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221a",prop:"\u221d",infin:"\u221e",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222a",int:"\u222b",there4:"\u2234",sim:"\u223c",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22a5",sdot:"\u22c5",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039a",Lambda:"\u039b",Mu:"\u039c",Nu:"\u039d",Xi:"\u039e",Omicron:"\u039f",Pi:"\u03a0",Rho:"\u03a1",Sigma:"\u03a3",Tau:"\u03a4",Upsilon:"\u03a5",Phi:"\u03a6",Chi:"\u03a7",Psi:"\u03a8",Omega:"\u03a9",alpha:"\u03b1",beta:"\u03b2",gamma:"\u03b3",delta:"\u03b4",epsilon:"\u03b5",zeta:"\u03b6",eta:"\u03b7",theta:"\u03b8",iota:"\u03b9",kappa:"\u03ba",lambda:"\u03bb",mu:"\u03bc",nu:"\u03bd",xi:"\u03be",omicron:"\u03bf",pi:"\u03c0",rho:"\u03c1",sigmaf:"\u03c2",sigma:"\u03c3",tau:"\u03c4",upsilon:"\u03c5",phi:"\u03c6",chi:"\u03c7",psi:"\u03c8",omega:"\u03c9",thetasym:"\u03d1",upsih:"\u03d2",piv:"\u03d6",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02c6",tilde:"\u02dc",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200c",zwj:"\u200d",lrm:"\u200e",rlm:"\u200f",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201a",ldquo:"\u201c",rdquo:"\u201d",bdquo:"\u201e",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203a",oline:"\u203e",euro:"\u20ac",trade:"\u2122",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21b5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230a",rfloor:"\u230b",loz:"\u25ca",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666",laquo:"\xab",raquo:"\xbb",AElig:"\xc6","AElig;":"\xc6",AMP:"&","AMP;":"&",Aacute:"\xc1","Aacute;":"\xc1","Abreve;":"\u0102",Acirc:"\xc2","Acirc;":"\xc2","Acy;":"\u0410","Afr;":"\ud835\udd04",Agrave:"\xc0","Agrave;":"\xc0","Alpha;":"\u0391","Amacr;":"\u0100","And;":"\u2a53","Aogon;":"\u0104","Aopf;":"\ud835\udd38","ApplyFunction;":"\u2061",Aring:"\xc5","Aring;":"\xc5","Ascr;":"\ud835\udc9c","Assign;":"\u2254",Atilde:"\xc3","Atilde;":"\xc3",Auml:"\xc4","Auml;":"\xc4","Backslash;":"\u2216","Barv;":"\u2ae7","Barwed;":"\u2306","Bcy;":"\u0411","Because;":"\u2235","Bernoullis;":"\u212c","Beta;":"\u0392","Bfr;":"\ud835\udd05","Bopf;":"\ud835\udd39","Breve;":"\u02d8","Bscr;":"\u212c","Bumpeq;":"\u224e","CHcy;":"\u0427",COPY:"\xa9","COPY;":"\xa9","Cacute;":"\u0106","Cap;":"\u22d2","CapitalDifferentialD;":"\u2145","Cayleys;":"\u212d","Ccaron;":"\u010c",Ccedil:"\xc7","Ccedil;":"\xc7","Ccirc;":"\u0108","Cconint;":"\u2230","Cdot;":"\u010a","Cedilla;":"\xb8","CenterDot;":"\xb7","Cfr;":"\u212d","Chi;":"\u03a7","CircleDot;":"\u2299","CircleMinus;":"\u2296","CirclePlus;":"\u2295","CircleTimes;":"\u2297","ClockwiseContourIntegral;":"\u2232","CloseCurlyDoubleQuote;":"\u201d","CloseCurlyQuote;":"\u2019","Colon;":"\u2237","Colone;":"\u2a74","Congruent;":"\u2261","Conint;":"\u222f","ContourIntegral;":"\u222e","Copf;":"\u2102","Coproduct;":"\u2210","CounterClockwiseContourIntegral;":"\u2233","Cross;":"\u2a2f","Cscr;":"\ud835\udc9e","Cup;":"\u22d3","CupCap;":"\u224d","DD;":"\u2145","DDotrahd;":"\u2911","DJcy;":"\u0402","DScy;":"\u0405","DZcy;":"\u040f","Dagger;":"\u2021","Darr;":"\u21a1","Dashv;":"\u2ae4","Dcaron;":"\u010e","Dcy;":"\u0414","Del;":"\u2207","Delta;":"\u0394","Dfr;":"\ud835\udd07","DiacriticalAcute;":"\xb4","DiacriticalDot;":"\u02d9","DiacriticalDoubleAcute;":"\u02dd","DiacriticalGrave;":"`","DiacriticalTilde;":"\u02dc","Diamond;":"\u22c4","DifferentialD;":"\u2146","Dopf;":"\ud835\udd3b","Dot;":"\xa8","DotDot;":"\u20dc","DotEqual;":"\u2250","DoubleContourIntegral;":"\u222f","DoubleDot;":"\xa8","DoubleDownArrow;":"\u21d3","DoubleLeftArrow;":"\u21d0","DoubleLeftRightArrow;":"\u21d4","DoubleLeftTee;":"\u2ae4","DoubleLongLeftArrow;":"\u27f8","DoubleLongLeftRightArrow;":"\u27fa","DoubleLongRightArrow;":"\u27f9","DoubleRightArrow;":"\u21d2","DoubleRightTee;":"\u22a8","DoubleUpArrow;":"\u21d1","DoubleUpDownArrow;":"\u21d5","DoubleVerticalBar;":"\u2225","DownArrow;":"\u2193","DownArrowBar;":"\u2913","DownArrowUpArrow;":"\u21f5","DownBreve;":"\u0311","DownLeftRightVector;":"\u2950","DownLeftTeeVector;":"\u295e","DownLeftVector;":"\u21bd","DownLeftVectorBar;":"\u2956","DownRightTeeVector;":"\u295f","DownRightVector;":"\u21c1","DownRightVectorBar;":"\u2957","DownTee;":"\u22a4","DownTeeArrow;":"\u21a7","Downarrow;":"\u21d3","Dscr;":"\ud835\udc9f","Dstrok;":"\u0110","ENG;":"\u014a",ETH:"\xd0","ETH;":"\xd0",Eacute:"\xc9","Eacute;":"\xc9","Ecaron;":"\u011a",Ecirc:"\xca","Ecirc;":"\xca","Ecy;":"\u042d","Edot;":"\u0116","Efr;":"\ud835\udd08",Egrave:"\xc8","Egrave;":"\xc8","Element;":"\u2208","Emacr;":"\u0112","EmptySmallSquare;":"\u25fb","EmptyVerySmallSquare;":"\u25ab","Eogon;":"\u0118","Eopf;":"\ud835\udd3c","Epsilon;":"\u0395","Equal;":"\u2a75","EqualTilde;":"\u2242","Equilibrium;":"\u21cc","Escr;":"\u2130","Esim;":"\u2a73","Eta;":"\u0397",Euml:"\xcb","Euml;":"\xcb","Exists;":"\u2203","ExponentialE;":"\u2147","Fcy;":"\u0424","Ffr;":"\ud835\udd09","FilledSmallSquare;":"\u25fc","FilledVerySmallSquare;":"\u25aa","Fopf;":"\ud835\udd3d","ForAll;":"\u2200","Fouriertrf;":"\u2131","Fscr;":"\u2131","GJcy;":"\u0403",GT:">","GT;":">","Gamma;":"\u0393","Gammad;":"\u03dc","Gbreve;":"\u011e","Gcedil;":"\u0122","Gcirc;":"\u011c","Gcy;":"\u0413","Gdot;":"\u0120","Gfr;":"\ud835\udd0a","Gg;":"\u22d9","Gopf;":"\ud835\udd3e","GreaterEqual;":"\u2265","GreaterEqualLess;":"\u22db","GreaterFullEqual;":"\u2267","GreaterGreater;":"\u2aa2","GreaterLess;":"\u2277","GreaterSlantEqual;":"\u2a7e","GreaterTilde;":"\u2273","Gscr;":"\ud835\udca2","Gt;":"\u226b","HARDcy;":"\u042a","Hacek;":"\u02c7","Hat;":"^","Hcirc;":"\u0124","Hfr;":"\u210c","HilbertSpace;":"\u210b","Hopf;":"\u210d","HorizontalLine;":"\u2500","Hscr;":"\u210b","Hstrok;":"\u0126","HumpDownHump;":"\u224e","HumpEqual;":"\u224f","IEcy;":"\u0415","IJlig;":"\u0132","IOcy;":"\u0401",Iacute:"\xcd","Iacute;":"\xcd",Icirc:"\xce","Icirc;":"\xce","Icy;":"\u0418","Idot;":"\u0130","Ifr;":"\u2111",Igrave:"\xcc","Igrave;":"\xcc","Im;":"\u2111","Imacr;":"\u012a","ImaginaryI;":"\u2148","Implies;":"\u21d2","Int;":"\u222c","Integral;":"\u222b","Intersection;":"\u22c2","InvisibleComma;":"\u2063","InvisibleTimes;":"\u2062","Iogon;":"\u012e","Iopf;":"\ud835\udd40","Iota;":"\u0399","Iscr;":"\u2110","Itilde;":"\u0128","Iukcy;":"\u0406",Iuml:"\xcf","Iuml;":"\xcf","Jcirc;":"\u0134","Jcy;":"\u0419","Jfr;":"\ud835\udd0d","Jopf;":"\ud835\udd41","Jscr;":"\ud835\udca5","Jsercy;":"\u0408","Jukcy;":"\u0404","KHcy;":"\u0425","KJcy;":"\u040c","Kappa;":"\u039a","Kcedil;":"\u0136","Kcy;":"\u041a","Kfr;":"\ud835\udd0e","Kopf;":"\ud835\udd42","Kscr;":"\ud835\udca6","LJcy;":"\u0409",LT:"<","LT;":"<","Lacute;":"\u0139","Lambda;":"\u039b","Lang;":"\u27ea","Laplacetrf;":"\u2112","Larr;":"\u219e","Lcaron;":"\u013d","Lcedil;":"\u013b","Lcy;":"\u041b","LeftAngleBracket;":"\u27e8","LeftArrow;":"\u2190","LeftArrowBar;":"\u21e4","LeftArrowRightArrow;":"\u21c6","LeftCeiling;":"\u2308","LeftDoubleBracket;":"\u27e6","LeftDownTeeVector;":"\u2961","LeftDownVector;":"\u21c3","LeftDownVectorBar;":"\u2959","LeftFloor;":"\u230a","LeftRightArrow;":"\u2194","LeftRightVector;":"\u294e","LeftTee;":"\u22a3","LeftTeeArrow;":"\u21a4","LeftTeeVector;":"\u295a","LeftTriangle;":"\u22b2","LeftTriangleBar;":"\u29cf","LeftTriangleEqual;":"\u22b4","LeftUpDownVector;":"\u2951","LeftUpTeeVector;":"\u2960","LeftUpVector;":"\u21bf","LeftUpVectorBar;":"\u2958","LeftVector;":"\u21bc","LeftVectorBar;":"\u2952","Leftarrow;":"\u21d0","Leftrightarrow;":"\u21d4","LessEqualGreater;":"\u22da","LessFullEqual;":"\u2266","LessGreater;":"\u2276","LessLess;":"\u2aa1","LessSlantEqual;":"\u2a7d","LessTilde;":"\u2272","Lfr;":"\ud835\udd0f","Ll;":"\u22d8","Lleftarrow;":"\u21da","Lmidot;":"\u013f","LongLeftArrow;":"\u27f5","LongLeftRightArrow;":"\u27f7","LongRightArrow;":"\u27f6","Longleftarrow;":"\u27f8","Longleftrightarrow;":"\u27fa","Longrightarrow;":"\u27f9","Lopf;":"\ud835\udd43","LowerLeftArrow;":"\u2199","LowerRightArrow;":"\u2198","Lscr;":"\u2112","Lsh;":"\u21b0","Lstrok;":"\u0141","Lt;":"\u226a","Map;":"\u2905","Mcy;":"\u041c","MediumSpace;":"\u205f","Mellintrf;":"\u2133","Mfr;":"\ud835\udd10","MinusPlus;":"\u2213","Mopf;":"\ud835\udd44","Mscr;":"\u2133","Mu;":"\u039c","NJcy;":"\u040a","Nacute;":"\u0143","Ncaron;":"\u0147","Ncedil;":"\u0145","Ncy;":"\u041d","NegativeMediumSpace;":"\u200b","NegativeThickSpace;":"\u200b","NegativeThinSpace;":"\u200b","NegativeVeryThinSpace;":"\u200b","NestedGreaterGreater;":"\u226b","NestedLessLess;":"\u226a","NewLine;":"\n","Nfr;":"\ud835\udd11","NoBreak;":"\u2060","NonBreakingSpace;":"\xa0","Nopf;":"\u2115","Not;":"\u2aec","NotCongruent;":"\u2262","NotCupCap;":"\u226d","NotDoubleVerticalBar;":"\u2226","NotElement;":"\u2209","NotEqual;":"\u2260","NotEqualTilde;":"\u2242\u0338","NotExists;":"\u2204","NotGreater;":"\u226f","NotGreaterEqual;":"\u2271","NotGreaterFullEqual;":"\u2267\u0338","NotGreaterGreater;":"\u226b\u0338","NotGreaterLess;":"\u2279","NotGreaterSlantEqual;":"\u2a7e\u0338","NotGreaterTilde;":"\u2275","NotHumpDownHump;":"\u224e\u0338","NotHumpEqual;":"\u224f\u0338","NotLeftTriangle;":"\u22ea","NotLeftTriangleBar;":"\u29cf\u0338","NotLeftTriangleEqual;":"\u22ec","NotLess;":"\u226e","NotLessEqual;":"\u2270","NotLessGreater;":"\u2278","NotLessLess;":"\u226a\u0338","NotLessSlantEqual;":"\u2a7d\u0338","NotLessTilde;":"\u2274","NotNestedGreaterGreater;":"\u2aa2\u0338","NotNestedLessLess;":"\u2aa1\u0338","NotPrecedes;":"\u2280","NotPrecedesEqual;":"\u2aaf\u0338","NotPrecedesSlantEqual;":"\u22e0","NotReverseElement;":"\u220c","NotRightTriangle;":"\u22eb","NotRightTriangleBar;":"\u29d0\u0338","NotRightTriangleEqual;":"\u22ed","NotSquareSubset;":"\u228f\u0338","NotSquareSubsetEqual;":"\u22e2","NotSquareSuperset;":"\u2290\u0338","NotSquareSupersetEqual;":"\u22e3","NotSubset;":"\u2282\u20d2","NotSubsetEqual;":"\u2288","NotSucceeds;":"\u2281","NotSucceedsEqual;":"\u2ab0\u0338","NotSucceedsSlantEqual;":"\u22e1","NotSucceedsTilde;":"\u227f\u0338","NotSuperset;":"\u2283\u20d2","NotSupersetEqual;":"\u2289","NotTilde;":"\u2241","NotTildeEqual;":"\u2244","NotTildeFullEqual;":"\u2247","NotTildeTilde;":"\u2249","NotVerticalBar;":"\u2224","Nscr;":"\ud835\udca9",Ntilde:"\xd1","Ntilde;":"\xd1","Nu;":"\u039d","OElig;":"\u0152",Oacute:"\xd3","Oacute;":"\xd3",Ocirc:"\xd4","Ocirc;":"\xd4","Ocy;":"\u041e","Odblac;":"\u0150","Ofr;":"\ud835\udd12",Ograve:"\xd2","Ograve;":"\xd2","Omacr;":"\u014c","Omega;":"\u03a9","Omicron;":"\u039f","Oopf;":"\ud835\udd46","OpenCurlyDoubleQuote;":"\u201c","OpenCurlyQuote;":"\u2018","Or;":"\u2a54","Oscr;":"\ud835\udcaa",Oslash:"\xd8","Oslash;":"\xd8",Otilde:"\xd5","Otilde;":"\xd5","Otimes;":"\u2a37",Ouml:"\xd6","Ouml;":"\xd6","OverBar;":"\u203e","OverBrace;":"\u23de","OverBracket;":"\u23b4","OverParenthesis;":"\u23dc","PartialD;":"\u2202","Pcy;":"\u041f","Pfr;":"\ud835\udd13","Phi;":"\u03a6","Pi;":"\u03a0","PlusMinus;":"\xb1","Poincareplane;":"\u210c","Popf;":"\u2119","Pr;":"\u2abb","Precedes;":"\u227a","PrecedesEqual;":"\u2aaf","PrecedesSlantEqual;":"\u227c","PrecedesTilde;":"\u227e","Prime;":"\u2033","Product;":"\u220f","Proportion;":"\u2237","Proportional;":"\u221d","Pscr;":"\ud835\udcab","Psi;":"\u03a8",QUOT:"\"","QUOT;":"\"","Qfr;":"\ud835\udd14","Qopf;":"\u211a","Qscr;":"\ud835\udcac","RBarr;":"\u2910",REG:"\xae","REG;":"\xae","Racute;":"\u0154","Rang;":"\u27eb","Rarr;":"\u21a0","Rarrtl;":"\u2916","Rcaron;":"\u0158","Rcedil;":"\u0156","Rcy;":"\u0420","Re;":"\u211c","ReverseElement;":"\u220b","ReverseEquilibrium;":"\u21cb","ReverseUpEquilibrium;":"\u296f","Rfr;":"\u211c","Rho;":"\u03a1","RightAngleBracket;":"\u27e9","RightArrow;":"\u2192","RightArrowBar;":"\u21e5","RightArrowLeftArrow;":"\u21c4","RightCeiling;":"\u2309","RightDoubleBracket;":"\u27e7","RightDownTeeVector;":"\u295d","RightDownVector;":"\u21c2","RightDownVectorBar;":"\u2955","RightFloor;":"\u230b","RightTee;":"\u22a2","RightTeeArrow;":"\u21a6","RightTeeVector;":"\u295b","RightTriangle;":"\u22b3","RightTriangleBar;":"\u29d0","RightTriangleEqual;":"\u22b5","RightUpDownVector;":"\u294f","RightUpTeeVector;":"\u295c","RightUpVector;":"\u21be","RightUpVectorBar;":"\u2954","RightVector;":"\u21c0","RightVectorBar;":"\u2953","Rightarrow;":"\u21d2","Ropf;":"\u211d","RoundImplies;":"\u2970","Rrightarrow;":"\u21db","Rscr;":"\u211b","Rsh;":"\u21b1","RuleDelayed;":"\u29f4","SHCHcy;":"\u0429","SHcy;":"\u0428","SOFTcy;":"\u042c","Sacute;":"\u015a","Sc;":"\u2abc","Scaron;":"\u0160","Scedil;":"\u015e","Scirc;":"\u015c","Scy;":"\u0421","Sfr;":"\ud835\udd16","ShortDownArrow;":"\u2193","ShortLeftArrow;":"\u2190","ShortRightArrow;":"\u2192","ShortUpArrow;":"\u2191","Sigma;":"\u03a3","SmallCircle;":"\u2218","Sopf;":"\ud835\udd4a","Sqrt;":"\u221a","Square;":"\u25a1","SquareIntersection;":"\u2293","SquareSubset;":"\u228f","SquareSubsetEqual;":"\u2291","SquareSuperset;":"\u2290","SquareSupersetEqual;":"\u2292","SquareUnion;":"\u2294","Sscr;":"\ud835\udcae","Star;":"\u22c6","Sub;":"\u22d0","Subset;":"\u22d0","SubsetEqual;":"\u2286","Succeeds;":"\u227b","SucceedsEqual;":"\u2ab0","SucceedsSlantEqual;":"\u227d","SucceedsTilde;":"\u227f","SuchThat;":"\u220b","Sum;":"\u2211","Sup;":"\u22d1","Superset;":"\u2283","SupersetEqual;":"\u2287","Supset;":"\u22d1",THORN:"\xde","THORN;":"\xde","TRADE;":"\u2122","TSHcy;":"\u040b","TScy;":"\u0426","Tab;":"\t","Tau;":"\u03a4","Tcaron;":"\u0164","Tcedil;":"\u0162","Tcy;":"\u0422","Tfr;":"\ud835\udd17","Therefore;":"\u2234","Theta;":"\u0398","ThickSpace;":"\u205f\u200a","ThinSpace;":"\u2009","Tilde;":"\u223c","TildeEqual;":"\u2243","TildeFullEqual;":"\u2245","TildeTilde;":"\u2248","Topf;":"\ud835\udd4b","TripleDot;":"\u20db","Tscr;":"\ud835\udcaf","Tstrok;":"\u0166",Uacute:"\xda","Uacute;":"\xda","Uarr;":"\u219f","Uarrocir;":"\u2949","Ubrcy;":"\u040e","Ubreve;":"\u016c",Ucirc:"\xdb","Ucirc;":"\xdb","Ucy;":"\u0423","Udblac;":"\u0170","Ufr;":"\ud835\udd18",Ugrave:"\xd9","Ugrave;":"\xd9","Umacr;":"\u016a","UnderBar;":"_","UnderBrace;":"\u23df","UnderBracket;":"\u23b5","UnderParenthesis;":"\u23dd","Union;":"\u22c3","UnionPlus;":"\u228e","Uogon;":"\u0172","Uopf;":"\ud835\udd4c","UpArrow;":"\u2191","UpArrowBar;":"\u2912","UpArrowDownArrow;":"\u21c5","UpDownArrow;":"\u2195","UpEquilibrium;":"\u296e","UpTee;":"\u22a5","UpTeeArrow;":"\u21a5","Uparrow;":"\u21d1","Updownarrow;":"\u21d5","UpperLeftArrow;":"\u2196","UpperRightArrow;":"\u2197","Upsi;":"\u03d2","Upsilon;":"\u03a5","Uring;":"\u016e","Uscr;":"\ud835\udcb0","Utilde;":"\u0168",Uuml:"\xdc","Uuml;":"\xdc","VDash;":"\u22ab","Vbar;":"\u2aeb","Vcy;":"\u0412","Vdash;":"\u22a9","Vdashl;":"\u2ae6","Vee;":"\u22c1","Verbar;":"\u2016","Vert;":"\u2016","VerticalBar;":"\u2223","VerticalLine;":"|","VerticalSeparator;":"\u2758","VerticalTilde;":"\u2240","VeryThinSpace;":"\u200a","Vfr;":"\ud835\udd19","Vopf;":"\ud835\udd4d","Vscr;":"\ud835\udcb1","Vvdash;":"\u22aa","Wcirc;":"\u0174","Wedge;":"\u22c0","Wfr;":"\ud835\udd1a","Wopf;":"\ud835\udd4e","Wscr;":"\ud835\udcb2","Xfr;":"\ud835\udd1b","Xi;":"\u039e","Xopf;":"\ud835\udd4f","Xscr;":"\ud835\udcb3","YAcy;":"\u042f","YIcy;":"\u0407","YUcy;":"\u042e",Yacute:"\xdd","Yacute;":"\xdd","Ycirc;":"\u0176","Ycy;":"\u042b","Yfr;":"\ud835\udd1c","Yopf;":"\ud835\udd50","Yscr;":"\ud835\udcb4","Yuml;":"\u0178","ZHcy;":"\u0416","Zacute;":"\u0179","Zcaron;":"\u017d","Zcy;":"\u0417","Zdot;":"\u017b","ZeroWidthSpace;":"\u200b","Zeta;":"\u0396","Zfr;":"\u2128","Zopf;":"\u2124","Zscr;":"\ud835\udcb5",aacute:"\xe1","aacute;":"\xe1","abreve;":"\u0103","ac;":"\u223e","acE;":"\u223e\u0333","acd;":"\u223f",acirc:"\xe2","acirc;":"\xe2",acute:"\xb4","acute;":"\xb4","acy;":"\u0430",aelig:"\xe6","aelig;":"\xe6","af;":"\u2061","afr;":"\ud835\udd1e",agrave:"\xe0","agrave;":"\xe0","alefsym;":"\u2135","aleph;":"\u2135","alpha;":"\u03b1","amacr;":"\u0101","amalg;":"\u2a3f",amp:"&","amp;":"&","and;":"\u2227","andand;":"\u2a55","andd;":"\u2a5c","andslope;":"\u2a58","andv;":"\u2a5a","ang;":"\u2220","ange;":"\u29a4","angle;":"\u2220","angmsd;":"\u2221","angmsdaa;":"\u29a8","angmsdab;":"\u29a9","angmsdac;":"\u29aa","angmsdad;":"\u29ab","angmsdae;":"\u29ac","angmsdaf;":"\u29ad","angmsdag;":"\u29ae","angmsdah;":"\u29af","angrt;":"\u221f","angrtvb;":"\u22be","angrtvbd;":"\u299d","angsph;":"\u2222","angst;":"\xc5","angzarr;":"\u237c","aogon;":"\u0105","aopf;":"\ud835\udd52","ap;":"\u2248","apE;":"\u2a70","apacir;":"\u2a6f","ape;":"\u224a","apid;":"\u224b","apos;":"'","approx;":"\u2248","approxeq;":"\u224a",aring:"\xe5","aring;":"\xe5","ascr;":"\ud835\udcb6","ast;":"*","asymp;":"\u2248","asympeq;":"\u224d",atilde:"\xe3","atilde;":"\xe3",auml:"\xe4","auml;":"\xe4","awconint;":"\u2233","awint;":"\u2a11","bNot;":"\u2aed","backcong;":"\u224c","backepsilon;":"\u03f6","backprime;":"\u2035","backsim;":"\u223d","backsimeq;":"\u22cd","barvee;":"\u22bd","barwed;":"\u2305","barwedge;":"\u2305","bbrk;":"\u23b5","bbrktbrk;":"\u23b6","bcong;":"\u224c","bcy;":"\u0431","bdquo;":"\u201e","becaus;":"\u2235","because;":"\u2235","bemptyv;":"\u29b0","bepsi;":"\u03f6","bernou;":"\u212c","beta;":"\u03b2","beth;":"\u2136","between;":"\u226c","bfr;":"\ud835\udd1f","bigcap;":"\u22c2","bigcirc;":"\u25ef","bigcup;":"\u22c3","bigodot;":"\u2a00","bigoplus;":"\u2a01","bigotimes;":"\u2a02","bigsqcup;":"\u2a06","bigstar;":"\u2605","bigtriangledown;":"\u25bd","bigtriangleup;":"\u25b3","biguplus;":"\u2a04","bigvee;":"\u22c1","bigwedge;":"\u22c0","bkarow;":"\u290d","blacklozenge;":"\u29eb","blacksquare;":"\u25aa","blacktriangle;":"\u25b4","blacktriangledown;":"\u25be","blacktriangleleft;":"\u25c2","blacktriangleright;":"\u25b8","blank;":"\u2423","blk12;":"\u2592","blk14;":"\u2591","blk34;":"\u2593","block;":"\u2588","bne;":"=\u20e5","bnequiv;":"\u2261\u20e5","bnot;":"\u2310","bopf;":"\ud835\udd53","bot;":"\u22a5","bottom;":"\u22a5","bowtie;":"\u22c8","boxDL;":"\u2557","boxDR;":"\u2554","boxDl;":"\u2556","boxDr;":"\u2553","boxH;":"\u2550","boxHD;":"\u2566","boxHU;":"\u2569","boxHd;":"\u2564","boxHu;":"\u2567","boxUL;":"\u255d","boxUR;":"\u255a","boxUl;":"\u255c","boxUr;":"\u2559","boxV;":"\u2551","boxVH;":"\u256c","boxVL;":"\u2563","boxVR;":"\u2560","boxVh;":"\u256b","boxVl;":"\u2562","boxVr;":"\u255f","boxbox;":"\u29c9","boxdL;":"\u2555","boxdR;":"\u2552","boxdl;":"\u2510","boxdr;":"\u250c","boxh;":"\u2500","boxhD;":"\u2565","boxhU;":"\u2568","boxhd;":"\u252c","boxhu;":"\u2534","boxminus;":"\u229f","boxplus;":"\u229e","boxtimes;":"\u22a0","boxuL;":"\u255b","boxuR;":"\u2558","boxul;":"\u2518","boxur;":"\u2514","boxv;":"\u2502","boxvH;":"\u256a","boxvL;":"\u2561","boxvR;":"\u255e","boxvh;":"\u253c","boxvl;":"\u2524","boxvr;":"\u251c","bprime;":"\u2035","breve;":"\u02d8",brvbar:"\xa6","brvbar;":"\xa6","bscr;":"\ud835\udcb7","bsemi;":"\u204f","bsim;":"\u223d","bsime;":"\u22cd","bsol;":"\\","bsolb;":"\u29c5","bsolhsub;":"\u27c8","bull;":"\u2022","bullet;":"\u2022","bump;":"\u224e","bumpE;":"\u2aae","bumpe;":"\u224f","bumpeq;":"\u224f","cacute;":"\u0107","cap;":"\u2229","capand;":"\u2a44","capbrcup;":"\u2a49","capcap;":"\u2a4b","capcup;":"\u2a47","capdot;":"\u2a40","caps;":"\u2229\ufe00","caret;":"\u2041","caron;":"\u02c7","ccaps;":"\u2a4d","ccaron;":"\u010d",ccedil:"\xe7","ccedil;":"\xe7","ccirc;":"\u0109","ccups;":"\u2a4c","ccupssm;":"\u2a50","cdot;":"\u010b",cedil:"\xb8","cedil;":"\xb8","cemptyv;":"\u29b2",cent:"\xa2","cent;":"\xa2","centerdot;":"\xb7","cfr;":"\ud835\udd20","chcy;":"\u0447","check;":"\u2713","checkmark;":"\u2713","chi;":"\u03c7","cir;":"\u25cb","cirE;":"\u29c3","circ;":"\u02c6","circeq;":"\u2257","circlearrowleft;":"\u21ba","circlearrowright;":"\u21bb","circledR;":"\xae","circledS;":"\u24c8","circledast;":"\u229b","circledcirc;":"\u229a","circleddash;":"\u229d","cire;":"\u2257","cirfnint;":"\u2a10","cirmid;":"\u2aef","cirscir;":"\u29c2","clubs;":"\u2663","clubsuit;":"\u2663","colon;":":","colone;":"\u2254","coloneq;":"\u2254","comma;":",","commat;":"@","comp;":"\u2201","compfn;":"\u2218","complement;":"\u2201","complexes;":"\u2102","cong;":"\u2245","congdot;":"\u2a6d","conint;":"\u222e","copf;":"\ud835\udd54","coprod;":"\u2210",copy:"\xa9","copy;":"\xa9","copysr;":"\u2117","crarr;":"\u21b5","cross;":"\u2717","cscr;":"\ud835\udcb8","csub;":"\u2acf","csube;":"\u2ad1","csup;":"\u2ad0","csupe;":"\u2ad2","ctdot;":"\u22ef","cudarrl;":"\u2938","cudarrr;":"\u2935","cuepr;":"\u22de","cuesc;":"\u22df","cularr;":"\u21b6","cularrp;":"\u293d","cup;":"\u222a","cupbrcap;":"\u2a48","cupcap;":"\u2a46","cupcup;":"\u2a4a","cupdot;":"\u228d","cupor;":"\u2a45","cups;":"\u222a\ufe00","curarr;":"\u21b7","curarrm;":"\u293c","curlyeqprec;":"\u22de","curlyeqsucc;":"\u22df","curlyvee;":"\u22ce","curlywedge;":"\u22cf",curren:"\xa4","curren;":"\xa4","curvearrowleft;":"\u21b6","curvearrowright;":"\u21b7","cuvee;":"\u22ce","cuwed;":"\u22cf","cwconint;":"\u2232","cwint;":"\u2231","cylcty;":"\u232d","dArr;":"\u21d3","dHar;":"\u2965","dagger;":"\u2020","daleth;":"\u2138","darr;":"\u2193","dash;":"\u2010","dashv;":"\u22a3","dbkarow;":"\u290f","dblac;":"\u02dd","dcaron;":"\u010f","dcy;":"\u0434","dd;":"\u2146","ddagger;":"\u2021","ddarr;":"\u21ca","ddotseq;":"\u2a77",deg:"\xb0","deg;":"\xb0","delta;":"\u03b4","demptyv;":"\u29b1","dfisht;":"\u297f","dfr;":"\ud835\udd21","dharl;":"\u21c3","dharr;":"\u21c2","diam;":"\u22c4","diamond;":"\u22c4","diamondsuit;":"\u2666","diams;":"\u2666","die;":"\xa8","digamma;":"\u03dd","disin;":"\u22f2","div;":"\xf7",divide:"\xf7","divide;":"\xf7","divideontimes;":"\u22c7","divonx;":"\u22c7","djcy;":"\u0452","dlcorn;":"\u231e","dlcrop;":"\u230d","dollar;":"$","dopf;":"\ud835\udd55","dot;":"\u02d9","doteq;":"\u2250","doteqdot;":"\u2251","dotminus;":"\u2238","dotplus;":"\u2214","dotsquare;":"\u22a1","doublebarwedge;":"\u2306","downarrow;":"\u2193","downdownarrows;":"\u21ca","downharpoonleft;":"\u21c3","downharpoonright;":"\u21c2","drbkarow;":"\u2910","drcorn;":"\u231f","drcrop;":"\u230c","dscr;":"\ud835\udcb9","dscy;":"\u0455","dsol;":"\u29f6","dstrok;":"\u0111","dtdot;":"\u22f1","dtri;":"\u25bf","dtrif;":"\u25be","duarr;":"\u21f5","duhar;":"\u296f","dwangle;":"\u29a6","dzcy;":"\u045f","dzigrarr;":"\u27ff","eDDot;":"\u2a77","eDot;":"\u2251",eacute:"\xe9","eacute;":"\xe9","easter;":"\u2a6e","ecaron;":"\u011b","ecir;":"\u2256",ecirc:"\xea","ecirc;":"\xea","ecolon;":"\u2255","ecy;":"\u044d","edot;":"\u0117","ee;":"\u2147","efDot;":"\u2252","efr;":"\ud835\udd22","eg;":"\u2a9a",egrave:"\xe8","egrave;":"\xe8","egs;":"\u2a96","egsdot;":"\u2a98","el;":"\u2a99","elinters;":"\u23e7","ell;":"\u2113","els;":"\u2a95","elsdot;":"\u2a97","emacr;":"\u0113","empty;":"\u2205","emptyset;":"\u2205","emptyv;":"\u2205","emsp13;":"\u2004","emsp14;":"\u2005","emsp;":"\u2003","eng;":"\u014b","ensp;":"\u2002","eogon;":"\u0119","eopf;":"\ud835\udd56","epar;":"\u22d5","eparsl;":"\u29e3","eplus;":"\u2a71","epsi;":"\u03b5","epsilon;":"\u03b5","epsiv;":"\u03f5","eqcirc;":"\u2256","eqcolon;":"\u2255","eqsim;":"\u2242","eqslantgtr;":"\u2a96","eqslantless;":"\u2a95","equals;":"=","equest;":"\u225f","equiv;":"\u2261","equivDD;":"\u2a78","eqvparsl;":"\u29e5","erDot;":"\u2253","erarr;":"\u2971","escr;":"\u212f","esdot;":"\u2250","esim;":"\u2242","eta;":"\u03b7",eth:"\xf0","eth;":"\xf0",euml:"\xeb","euml;":"\xeb","euro;":"\u20ac","excl;":"!","exist;":"\u2203","expectation;":"\u2130","exponentiale;":"\u2147","fallingdotseq;":"\u2252","fcy;":"\u0444","female;":"\u2640","ffilig;":"\ufb03","fflig;":"\ufb00","ffllig;":"\ufb04","ffr;":"\ud835\udd23","filig;":"\ufb01","fjlig;":"fj","flat;":"\u266d","fllig;":"\ufb02","fltns;":"\u25b1","fnof;":"\u0192","fopf;":"\ud835\udd57","forall;":"\u2200","fork;":"\u22d4","forkv;":"\u2ad9","fpartint;":"\u2a0d",frac12:"\xbd","frac12;":"\xbd","frac13;":"\u2153",frac14:"\xbc","frac14;":"\xbc","frac15;":"\u2155","frac16;":"\u2159","frac18;":"\u215b","frac23;":"\u2154","frac25;":"\u2156",frac34:"\xbe","frac34;":"\xbe","frac35;":"\u2157","frac38;":"\u215c","frac45;":"\u2158","frac56;":"\u215a","frac58;":"\u215d","frac78;":"\u215e","frasl;":"\u2044","frown;":"\u2322","fscr;":"\ud835\udcbb","gE;":"\u2267","gEl;":"\u2a8c","gacute;":"\u01f5","gamma;":"\u03b3","gammad;":"\u03dd","gap;":"\u2a86","gbreve;":"\u011f","gcirc;":"\u011d","gcy;":"\u0433","gdot;":"\u0121","ge;":"\u2265","gel;":"\u22db","geq;":"\u2265","geqq;":"\u2267","geqslant;":"\u2a7e","ges;":"\u2a7e","gescc;":"\u2aa9","gesdot;":"\u2a80","gesdoto;":"\u2a82","gesdotol;":"\u2a84","gesl;":"\u22db\ufe00","gesles;":"\u2a94","gfr;":"\ud835\udd24","gg;":"\u226b","ggg;":"\u22d9","gimel;":"\u2137","gjcy;":"\u0453","gl;":"\u2277","glE;":"\u2a92","gla;":"\u2aa5","glj;":"\u2aa4","gnE;":"\u2269","gnap;":"\u2a8a","gnapprox;":"\u2a8a","gne;":"\u2a88","gneq;":"\u2a88","gneqq;":"\u2269","gnsim;":"\u22e7","gopf;":"\ud835\udd58","grave;":"`","gscr;":"\u210a","gsim;":"\u2273","gsime;":"\u2a8e","gsiml;":"\u2a90",gt:">","gt;":">","gtcc;":"\u2aa7","gtcir;":"\u2a7a","gtdot;":"\u22d7","gtlPar;":"\u2995","gtquest;":"\u2a7c","gtrapprox;":"\u2a86","gtrarr;":"\u2978","gtrdot;":"\u22d7","gtreqless;":"\u22db","gtreqqless;":"\u2a8c","gtrless;":"\u2277","gtrsim;":"\u2273","gvertneqq;":"\u2269\ufe00","gvnE;":"\u2269\ufe00","hArr;":"\u21d4","hairsp;":"\u200a","half;":"\xbd","hamilt;":"\u210b","hardcy;":"\u044a","harr;":"\u2194","harrcir;":"\u2948","harrw;":"\u21ad","hbar;":"\u210f","hcirc;":"\u0125","hearts;":"\u2665","heartsuit;":"\u2665","hellip;":"\u2026","hercon;":"\u22b9","hfr;":"\ud835\udd25","hksearow;":"\u2925","hkswarow;":"\u2926","hoarr;":"\u21ff","homtht;":"\u223b","hookleftarrow;":"\u21a9","hookrightarrow;":"\u21aa","hopf;":"\ud835\udd59","horbar;":"\u2015","hscr;":"\ud835\udcbd","hslash;":"\u210f","hstrok;":"\u0127","hybull;":"\u2043","hyphen;":"\u2010",iacute:"\xed","iacute;":"\xed","ic;":"\u2063",icirc:"\xee","icirc;":"\xee","icy;":"\u0438","iecy;":"\u0435",iexcl:"\xa1","iexcl;":"\xa1","iff;":"\u21d4","ifr;":"\ud835\udd26",igrave:"\xec","igrave;":"\xec","ii;":"\u2148","iiiint;":"\u2a0c","iiint;":"\u222d","iinfin;":"\u29dc","iiota;":"\u2129","ijlig;":"\u0133","imacr;":"\u012b","image;":"\u2111","imagline;":"\u2110","imagpart;":"\u2111","imath;":"\u0131","imof;":"\u22b7","imped;":"\u01b5","in;":"\u2208","incare;":"\u2105","infin;":"\u221e","infintie;":"\u29dd","inodot;":"\u0131","int;":"\u222b","intcal;":"\u22ba","integers;":"\u2124","intercal;":"\u22ba","intlarhk;":"\u2a17","intprod;":"\u2a3c","iocy;":"\u0451","iogon;":"\u012f","iopf;":"\ud835\udd5a","iota;":"\u03b9","iprod;":"\u2a3c",iquest:"\xbf","iquest;":"\xbf","iscr;":"\ud835\udcbe","isin;":"\u2208","isinE;":"\u22f9","isindot;":"\u22f5","isins;":"\u22f4","isinsv;":"\u22f3","isinv;":"\u2208","it;":"\u2062","itilde;":"\u0129","iukcy;":"\u0456",iuml:"\xef","iuml;":"\xef","jcirc;":"\u0135","jcy;":"\u0439","jfr;":"\ud835\udd27","jmath;":"\u0237","jopf;":"\ud835\udd5b","jscr;":"\ud835\udcbf","jsercy;":"\u0458","jukcy;":"\u0454","kappa;":"\u03ba","kappav;":"\u03f0","kcedil;":"\u0137","kcy;":"\u043a","kfr;":"\ud835\udd28","kgreen;":"\u0138","khcy;":"\u0445","kjcy;":"\u045c","kopf;":"\ud835\udd5c","kscr;":"\ud835\udcc0","lAarr;":"\u21da","lArr;":"\u21d0","lAtail;":"\u291b","lBarr;":"\u290e","lE;":"\u2266","lEg;":"\u2a8b","lHar;":"\u2962","lacute;":"\u013a","laemptyv;":"\u29b4","lagran;":"\u2112","lambda;":"\u03bb","lang;":"\u27e8","langd;":"\u2991","langle;":"\u27e8","lap;":"\u2a85",laquo:"\xab","laquo;":"\xab","larr;":"\u2190","larrb;":"\u21e4","larrbfs;":"\u291f","larrfs;":"\u291d","larrhk;":"\u21a9","larrlp;":"\u21ab","larrpl;":"\u2939","larrsim;":"\u2973","larrtl;":"\u21a2","lat;":"\u2aab","latail;":"\u2919","late;":"\u2aad","lates;":"\u2aad\ufe00","lbarr;":"\u290c","lbbrk;":"\u2772","lbrace;":"{","lbrack;":"[","lbrke;":"\u298b","lbrksld;":"\u298f","lbrkslu;":"\u298d","lcaron;":"\u013e","lcedil;":"\u013c","lceil;":"\u2308","lcub;":"{","lcy;":"\u043b","ldca;":"\u2936","ldquo;":"\u201c","ldquor;":"\u201e","ldrdhar;":"\u2967","ldrushar;":"\u294b","ldsh;":"\u21b2","le;":"\u2264","leftarrow;":"\u2190","leftarrowtail;":"\u21a2","leftharpoondown;":"\u21bd","leftharpoonup;":"\u21bc","leftleftarrows;":"\u21c7","leftrightarrow;":"\u2194","leftrightarrows;":"\u21c6","leftrightharpoons;":"\u21cb","leftrightsquigarrow;":"\u21ad","leftthreetimes;":"\u22cb","leg;":"\u22da","leq;":"\u2264","leqq;":"\u2266","leqslant;":"\u2a7d","les;":"\u2a7d","lescc;":"\u2aa8","lesdot;":"\u2a7f","lesdoto;":"\u2a81","lesdotor;":"\u2a83","lesg;":"\u22da\ufe00","lesges;":"\u2a93","lessapprox;":"\u2a85","lessdot;":"\u22d6","lesseqgtr;":"\u22da","lesseqqgtr;":"\u2a8b","lessgtr;":"\u2276","lesssim;":"\u2272","lfisht;":"\u297c","lfloor;":"\u230a","lfr;":"\ud835\udd29","lg;":"\u2276","lgE;":"\u2a91","lhard;":"\u21bd","lharu;":"\u21bc","lharul;":"\u296a","lhblk;":"\u2584","ljcy;":"\u0459","ll;":"\u226a","llarr;":"\u21c7","llcorner;":"\u231e","llhard;":"\u296b","lltri;":"\u25fa","lmidot;":"\u0140","lmoust;":"\u23b0","lmoustache;":"\u23b0","lnE;":"\u2268","lnap;":"\u2a89","lnapprox;":"\u2a89","lne;":"\u2a87","lneq;":"\u2a87","lneqq;":"\u2268","lnsim;":"\u22e6","loang;":"\u27ec","loarr;":"\u21fd","lobrk;":"\u27e6","longleftarrow;":"\u27f5","longleftrightarrow;":"\u27f7","longmapsto;":"\u27fc","longrightarrow;":"\u27f6","looparrowleft;":"\u21ab","looparrowright;":"\u21ac","lopar;":"\u2985","lopf;":"\ud835\udd5d","loplus;":"\u2a2d","lotimes;":"\u2a34","lowast;":"\u2217","lowbar;":"_","loz;":"\u25ca","lozenge;":"\u25ca","lozf;":"\u29eb","lpar;":"(","lparlt;":"\u2993","lrarr;":"\u21c6","lrcorner;":"\u231f","lrhar;":"\u21cb","lrhard;":"\u296d","lrm;":"\u200e","lrtri;":"\u22bf","lsaquo;":"\u2039","lscr;":"\ud835\udcc1","lsh;":"\u21b0","lsim;":"\u2272","lsime;":"\u2a8d","lsimg;":"\u2a8f","lsqb;":"[","lsquo;":"\u2018","lsquor;":"\u201a","lstrok;":"\u0142",lt:"<","lt;":"<","ltcc;":"\u2aa6","ltcir;":"\u2a79","ltdot;":"\u22d6","lthree;":"\u22cb","ltimes;":"\u22c9","ltlarr;":"\u2976","ltquest;":"\u2a7b","ltrPar;":"\u2996","ltri;":"\u25c3","ltrie;":"\u22b4","ltrif;":"\u25c2","lurdshar;":"\u294a","luruhar;":"\u2966","lvertneqq;":"\u2268\ufe00","lvnE;":"\u2268\ufe00","mDDot;":"\u223a",macr:"\xaf","macr;":"\xaf","male;":"\u2642","malt;":"\u2720","maltese;":"\u2720","map;":"\u21a6","mapsto;":"\u21a6","mapstodown;":"\u21a7","mapstoleft;":"\u21a4","mapstoup;":"\u21a5","marker;":"\u25ae","mcomma;":"\u2a29","mcy;":"\u043c","mdash;":"\u2014","measuredangle;":"\u2221","mfr;":"\ud835\udd2a","mho;":"\u2127",micro:"\xb5","micro;":"\xb5","mid;":"\u2223","midast;":"*","midcir;":"\u2af0",middot:"\xb7","middot;":"\xb7","minus;":"\u2212","minusb;":"\u229f","minusd;":"\u2238","minusdu;":"\u2a2a","mlcp;":"\u2adb","mldr;":"\u2026","mnplus;":"\u2213","models;":"\u22a7","mopf;":"\ud835\udd5e","mp;":"\u2213","mscr;":"\ud835\udcc2","mstpos;":"\u223e","mu;":"\u03bc","multimap;":"\u22b8","mumap;":"\u22b8","nGg;":"\u22d9\u0338","nGt;":"\u226b\u20d2","nGtv;":"\u226b\u0338","nLeftarrow;":"\u21cd","nLeftrightarrow;":"\u21ce","nLl;":"\u22d8\u0338","nLt;":"\u226a\u20d2","nLtv;":"\u226a\u0338","nRightarrow;":"\u21cf","nVDash;":"\u22af","nVdash;":"\u22ae","nabla;":"\u2207","nacute;":"\u0144","nang;":"\u2220\u20d2","nap;":"\u2249","napE;":"\u2a70\u0338","napid;":"\u224b\u0338","napos;":"\u0149","napprox;":"\u2249","natur;":"\u266e","natural;":"\u266e","naturals;":"\u2115",nbsp:"\xa0","nbsp;":"\xa0","nbump;":"\u224e\u0338","nbumpe;":"\u224f\u0338","ncap;":"\u2a43","ncaron;":"\u0148","ncedil;":"\u0146","ncong;":"\u2247","ncongdot;":"\u2a6d\u0338","ncup;":"\u2a42","ncy;":"\u043d","ndash;":"\u2013","ne;":"\u2260","neArr;":"\u21d7","nearhk;":"\u2924","nearr;":"\u2197","nearrow;":"\u2197","nedot;":"\u2250\u0338","nequiv;":"\u2262","nesear;":"\u2928","nesim;":"\u2242\u0338","nexist;":"\u2204","nexists;":"\u2204","nfr;":"\ud835\udd2b","ngE;":"\u2267\u0338","nge;":"\u2271","ngeq;":"\u2271","ngeqq;":"\u2267\u0338","ngeqslant;":"\u2a7e\u0338","nges;":"\u2a7e\u0338","ngsim;":"\u2275","ngt;":"\u226f","ngtr;":"\u226f","nhArr;":"\u21ce","nharr;":"\u21ae","nhpar;":"\u2af2","ni;":"\u220b","nis;":"\u22fc","nisd;":"\u22fa","niv;":"\u220b","njcy;":"\u045a","nlArr;":"\u21cd","nlE;":"\u2266\u0338","nlarr;":"\u219a","nldr;":"\u2025","nle;":"\u2270","nleftarrow;":"\u219a","nleftrightarrow;":"\u21ae","nleq;":"\u2270","nleqq;":"\u2266\u0338","nleqslant;":"\u2a7d\u0338","nles;":"\u2a7d\u0338","nless;":"\u226e","nlsim;":"\u2274","nlt;":"\u226e","nltri;":"\u22ea","nltrie;":"\u22ec","nmid;":"\u2224","nopf;":"\ud835\udd5f",not:"\xac","not;":"\xac","notin;":"\u2209","notinE;":"\u22f9\u0338","notindot;":"\u22f5\u0338","notinva;":"\u2209","notinvb;":"\u22f7","notinvc;":"\u22f6","notni;":"\u220c","notniva;":"\u220c","notnivb;":"\u22fe","notnivc;":"\u22fd","npar;":"\u2226","nparallel;":"\u2226","nparsl;":"\u2afd\u20e5","npart;":"\u2202\u0338","npolint;":"\u2a14","npr;":"\u2280","nprcue;":"\u22e0","npre;":"\u2aaf\u0338","nprec;":"\u2280","npreceq;":"\u2aaf\u0338","nrArr;":"\u21cf","nrarr;":"\u219b","nrarrc;":"\u2933\u0338","nrarrw;":"\u219d\u0338","nrightarrow;":"\u219b","nrtri;":"\u22eb","nrtrie;":"\u22ed","nsc;":"\u2281","nsccue;":"\u22e1","nsce;":"\u2ab0\u0338","nscr;":"\ud835\udcc3","nshortmid;":"\u2224","nshortparallel;":"\u2226","nsim;":"\u2241","nsime;":"\u2244","nsimeq;":"\u2244","nsmid;":"\u2224","nspar;":"\u2226","nsqsube;":"\u22e2","nsqsupe;":"\u22e3","nsub;":"\u2284","nsubE;":"\u2ac5\u0338","nsube;":"\u2288","nsubset;":"\u2282\u20d2","nsubseteq;":"\u2288","nsubseteqq;":"\u2ac5\u0338","nsucc;":"\u2281","nsucceq;":"\u2ab0\u0338","nsup;":"\u2285","nsupE;":"\u2ac6\u0338","nsupe;":"\u2289","nsupset;":"\u2283\u20d2","nsupseteq;":"\u2289","nsupseteqq;":"\u2ac6\u0338","ntgl;":"\u2279",ntilde:"\xf1","ntilde;":"\xf1","ntlg;":"\u2278","ntriangleleft;":"\u22ea","ntrianglelefteq;":"\u22ec","ntriangleright;":"\u22eb","ntrianglerighteq;":"\u22ed","nu;":"\u03bd","num;":"#","numero;":"\u2116","numsp;":"\u2007","nvDash;":"\u22ad","nvHarr;":"\u2904","nvap;":"\u224d\u20d2","nvdash;":"\u22ac","nvge;":"\u2265\u20d2","nvgt;":">\u20d2","nvinfin;":"\u29de","nvlArr;":"\u2902","nvle;":"\u2264\u20d2","nvlt;":"<\u20d2","nvltrie;":"\u22b4\u20d2","nvrArr;":"\u2903","nvrtrie;":"\u22b5\u20d2","nvsim;":"\u223c\u20d2","nwArr;":"\u21d6","nwarhk;":"\u2923","nwarr;":"\u2196","nwarrow;":"\u2196","nwnear;":"\u2927","oS;":"\u24c8",oacute:"\xf3","oacute;":"\xf3","oast;":"\u229b","ocir;":"\u229a",ocirc:"\xf4","ocirc;":"\xf4","ocy;":"\u043e","odash;":"\u229d","odblac;":"\u0151","odiv;":"\u2a38","odot;":"\u2299","odsold;":"\u29bc","oelig;":"\u0153","ofcir;":"\u29bf","ofr;":"\ud835\udd2c","ogon;":"\u02db",ograve:"\xf2","ograve;":"\xf2","ogt;":"\u29c1","ohbar;":"\u29b5","ohm;":"\u03a9","oint;":"\u222e","olarr;":"\u21ba","olcir;":"\u29be","olcross;":"\u29bb","oline;":"\u203e","olt;":"\u29c0","omacr;":"\u014d","omega;":"\u03c9","omicron;":"\u03bf","omid;":"\u29b6","ominus;":"\u2296","oopf;":"\ud835\udd60","opar;":"\u29b7","operp;":"\u29b9","oplus;":"\u2295","or;":"\u2228","orarr;":"\u21bb","ord;":"\u2a5d","order;":"\u2134","orderof;":"\u2134",ordf:"\xaa","ordf;":"\xaa",ordm:"\xba","ordm;":"\xba","origof;":"\u22b6","oror;":"\u2a56","orslope;":"\u2a57","orv;":"\u2a5b","oscr;":"\u2134",oslash:"\xf8","oslash;":"\xf8","osol;":"\u2298",otilde:"\xf5","otilde;":"\xf5","otimes;":"\u2297","otimesas;":"\u2a36",ouml:"\xf6","ouml;":"\xf6","ovbar;":"\u233d","par;":"\u2225",para:"\xb6","para;":"\xb6","parallel;":"\u2225","parsim;":"\u2af3","parsl;":"\u2afd","part;":"\u2202","pcy;":"\u043f","percnt;":"%","period;":".","permil;":"\u2030","perp;":"\u22a5","pertenk;":"\u2031","pfr;":"\ud835\udd2d","phi;":"\u03c6","phiv;":"\u03d5","phmmat;":"\u2133","phone;":"\u260e","pi;":"\u03c0","pitchfork;":"\u22d4","piv;":"\u03d6","planck;":"\u210f","planckh;":"\u210e","plankv;":"\u210f","plus;":"+","plusacir;":"\u2a23","plusb;":"\u229e","pluscir;":"\u2a22","plusdo;":"\u2214","plusdu;":"\u2a25","pluse;":"\u2a72",plusmn:"\xb1","plusmn;":"\xb1","plussim;":"\u2a26","plustwo;":"\u2a27","pm;":"\xb1","pointint;":"\u2a15","popf;":"\ud835\udd61",pound:"\xa3","pound;":"\xa3","pr;":"\u227a","prE;":"\u2ab3","prap;":"\u2ab7","prcue;":"\u227c","pre;":"\u2aaf","prec;":"\u227a","precapprox;":"\u2ab7","preccurlyeq;":"\u227c","preceq;":"\u2aaf","precnapprox;":"\u2ab9","precneqq;":"\u2ab5","precnsim;":"\u22e8","precsim;":"\u227e","prime;":"\u2032","primes;":"\u2119","prnE;":"\u2ab5","prnap;":"\u2ab9","prnsim;":"\u22e8","prod;":"\u220f","profalar;":"\u232e","profline;":"\u2312","profsurf;":"\u2313","prop;":"\u221d","propto;":"\u221d","prsim;":"\u227e","prurel;":"\u22b0","pscr;":"\ud835\udcc5","psi;":"\u03c8","puncsp;":"\u2008","qfr;":"\ud835\udd2e","qint;":"\u2a0c","qopf;":"\ud835\udd62","qprime;":"\u2057","qscr;":"\ud835\udcc6","quaternions;":"\u210d","quatint;":"\u2a16","quest;":"?","questeq;":"\u225f",quot:"\"","quot;":"\"","rAarr;":"\u21db","rArr;":"\u21d2","rAtail;":"\u291c","rBarr;":"\u290f","rHar;":"\u2964","race;":"\u223d\u0331","racute;":"\u0155","radic;":"\u221a","raemptyv;":"\u29b3","rang;":"\u27e9","rangd;":"\u2992","range;":"\u29a5","rangle;":"\u27e9",raquo:"\xbb","raquo;":"\xbb","rarr;":"\u2192","rarrap;":"\u2975","rarrb;":"\u21e5","rarrbfs;":"\u2920","rarrc;":"\u2933","rarrfs;":"\u291e","rarrhk;":"\u21aa","rarrlp;":"\u21ac","rarrpl;":"\u2945","rarrsim;":"\u2974","rarrtl;":"\u21a3","rarrw;":"\u219d","ratail;":"\u291a","ratio;":"\u2236","rationals;":"\u211a","rbarr;":"\u290d","rbbrk;":"\u2773","rbrace;":"}","rbrack;":"]","rbrke;":"\u298c","rbrksld;":"\u298e","rbrkslu;":"\u2990","rcaron;":"\u0159","rcedil;":"\u0157","rceil;":"\u2309","rcub;":"}","rcy;":"\u0440","rdca;":"\u2937","rdldhar;":"\u2969","rdquo;":"\u201d","rdquor;":"\u201d","rdsh;":"\u21b3","real;":"\u211c","realine;":"\u211b","realpart;":"\u211c","reals;":"\u211d","rect;":"\u25ad",reg:"\xae","reg;":"\xae","rfisht;":"\u297d","rfloor;":"\u230b","rfr;":"\ud835\udd2f","rhard;":"\u21c1","rharu;":"\u21c0","rharul;":"\u296c","rho;":"\u03c1","rhov;":"\u03f1","rightarrow;":"\u2192","rightarrowtail;":"\u21a3","rightharpoondown;":"\u21c1","rightharpoonup;":"\u21c0","rightleftarrows;":"\u21c4","rightleftharpoons;":"\u21cc","rightrightarrows;":"\u21c9","rightsquigarrow;":"\u219d","rightthreetimes;":"\u22cc","ring;":"\u02da","risingdotseq;":"\u2253","rlarr;":"\u21c4","rlhar;":"\u21cc","rlm;":"\u200f","rmoust;":"\u23b1","rmoustache;":"\u23b1","rnmid;":"\u2aee","roang;":"\u27ed","roarr;":"\u21fe","robrk;":"\u27e7","ropar;":"\u2986","ropf;":"\ud835\udd63","roplus;":"\u2a2e","rotimes;":"\u2a35","rpar;":")","rpargt;":"\u2994","rppolint;":"\u2a12","rrarr;":"\u21c9","rsaquo;":"\u203a","rscr;":"\ud835\udcc7","rsh;":"\u21b1","rsqb;":"]","rsquo;":"\u2019","rsquor;":"\u2019","rthree;":"\u22cc","rtimes;":"\u22ca","rtri;":"\u25b9","rtrie;":"\u22b5","rtrif;":"\u25b8","rtriltri;":"\u29ce","ruluhar;":"\u2968","rx;":"\u211e","sacute;":"\u015b","sbquo;":"\u201a","sc;":"\u227b","scE;":"\u2ab4","scap;":"\u2ab8","scaron;":"\u0161","sccue;":"\u227d","sce;":"\u2ab0","scedil;":"\u015f","scirc;":"\u015d","scnE;":"\u2ab6","scnap;":"\u2aba","scnsim;":"\u22e9","scpolint;":"\u2a13","scsim;":"\u227f","scy;":"\u0441","sdot;":"\u22c5","sdotb;":"\u22a1","sdote;":"\u2a66","seArr;":"\u21d8","searhk;":"\u2925","searr;":"\u2198","searrow;":"\u2198",sect:"\xa7","sect;":"\xa7","semi;":";","seswar;":"\u2929","setminus;":"\u2216","setmn;":"\u2216","sext;":"\u2736","sfr;":"\ud835\udd30","sfrown;":"\u2322","sharp;":"\u266f","shchcy;":"\u0449","shcy;":"\u0448","shortmid;":"\u2223","shortparallel;":"\u2225",shy:"\xad","shy;":"\xad","sigma;":"\u03c3","sigmaf;":"\u03c2","sigmav;":"\u03c2","sim;":"\u223c","simdot;":"\u2a6a","sime;":"\u2243","simeq;":"\u2243","simg;":"\u2a9e","simgE;":"\u2aa0","siml;":"\u2a9d","simlE;":"\u2a9f","simne;":"\u2246","simplus;":"\u2a24","simrarr;":"\u2972","slarr;":"\u2190","smallsetminus;":"\u2216","smashp;":"\u2a33","smeparsl;":"\u29e4","smid;":"\u2223","smile;":"\u2323","smt;":"\u2aaa","smte;":"\u2aac","smtes;":"\u2aac\ufe00","softcy;":"\u044c","sol;":"/","solb;":"\u29c4","solbar;":"\u233f","sopf;":"\ud835\udd64","spades;":"\u2660","spadesuit;":"\u2660","spar;":"\u2225","sqcap;":"\u2293","sqcaps;":"\u2293\ufe00","sqcup;":"\u2294","sqcups;":"\u2294\ufe00","sqsub;":"\u228f","sqsube;":"\u2291","sqsubset;":"\u228f","sqsubseteq;":"\u2291","sqsup;":"\u2290","sqsupe;":"\u2292","sqsupset;":"\u2290","sqsupseteq;":"\u2292","squ;":"\u25a1","square;":"\u25a1","squarf;":"\u25aa","squf;":"\u25aa","srarr;":"\u2192","sscr;":"\ud835\udcc8","ssetmn;":"\u2216","ssmile;":"\u2323","sstarf;":"\u22c6","star;":"\u2606","starf;":"\u2605","straightepsilon;":"\u03f5","straightphi;":"\u03d5","strns;":"\xaf","sub;":"\u2282","subE;":"\u2ac5","subdot;":"\u2abd","sube;":"\u2286","subedot;":"\u2ac3","submult;":"\u2ac1","subnE;":"\u2acb","subne;":"\u228a","subplus;":"\u2abf","subrarr;":"\u2979","subset;":"\u2282","subseteq;":"\u2286","subseteqq;":"\u2ac5","subsetneq;":"\u228a","subsetneqq;":"\u2acb","subsim;":"\u2ac7","subsub;":"\u2ad5","subsup;":"\u2ad3","succ;":"\u227b","succapprox;":"\u2ab8","succcurlyeq;":"\u227d","succeq;":"\u2ab0","succnapprox;":"\u2aba","succneqq;":"\u2ab6","succnsim;":"\u22e9","succsim;":"\u227f","sum;":"\u2211","sung;":"\u266a",sup1:"\xb9","sup1;":"\xb9",sup2:"\xb2","sup2;":"\xb2",sup3:"\xb3","sup3;":"\xb3","sup;":"\u2283","supE;":"\u2ac6","supdot;":"\u2abe","supdsub;":"\u2ad8","supe;":"\u2287","supedot;":"\u2ac4","suphsol;":"\u27c9","suphsub;":"\u2ad7","suplarr;":"\u297b","supmult;":"\u2ac2","supnE;":"\u2acc","supne;":"\u228b","supplus;":"\u2ac0","supset;":"\u2283","supseteq;":"\u2287","supseteqq;":"\u2ac6","supsetneq;":"\u228b","supsetneqq;":"\u2acc","supsim;":"\u2ac8","supsub;":"\u2ad4","supsup;":"\u2ad6","swArr;":"\u21d9","swarhk;":"\u2926","swarr;":"\u2199","swarrow;":"\u2199","swnwar;":"\u292a",szlig:"\xdf","szlig;":"\xdf","target;":"\u2316","tau;":"\u03c4","tbrk;":"\u23b4","tcaron;":"\u0165","tcedil;":"\u0163","tcy;":"\u0442","tdot;":"\u20db","telrec;":"\u2315","tfr;":"\ud835\udd31","there4;":"\u2234","therefore;":"\u2234","theta;":"\u03b8","thetasym;":"\u03d1","thetav;":"\u03d1","thickapprox;":"\u2248","thicksim;":"\u223c","thinsp;":"\u2009","thkap;":"\u2248","thksim;":"\u223c",thorn:"\xfe","thorn;":"\xfe","tilde;":"\u02dc",times:"\xd7","times;":"\xd7","timesb;":"\u22a0","timesbar;":"\u2a31","timesd;":"\u2a30","tint;":"\u222d","toea;":"\u2928","top;":"\u22a4","topbot;":"\u2336","topcir;":"\u2af1","topf;":"\ud835\udd65","topfork;":"\u2ada","tosa;":"\u2929","tprime;":"\u2034","trade;":"\u2122","triangle;":"\u25b5","triangledown;":"\u25bf","triangleleft;":"\u25c3","trianglelefteq;":"\u22b4","triangleq;":"\u225c","triangleright;":"\u25b9","trianglerighteq;":"\u22b5","tridot;":"\u25ec","trie;":"\u225c","triminus;":"\u2a3a","triplus;":"\u2a39","trisb;":"\u29cd","tritime;":"\u2a3b","trpezium;":"\u23e2","tscr;":"\ud835\udcc9","tscy;":"\u0446","tshcy;":"\u045b","tstrok;":"\u0167","twixt;":"\u226c","twoheadleftarrow;":"\u219e","twoheadrightarrow;":"\u21a0","uArr;":"\u21d1","uHar;":"\u2963",uacute:"\xfa","uacute;":"\xfa","uarr;":"\u2191","ubrcy;":"\u045e","ubreve;":"\u016d",ucirc:"\xfb","ucirc;":"\xfb","ucy;":"\u0443","udarr;":"\u21c5","udblac;":"\u0171","udhar;":"\u296e","ufisht;":"\u297e","ufr;":"\ud835\udd32",ugrave:"\xf9","ugrave;":"\xf9","uharl;":"\u21bf","uharr;":"\u21be","uhblk;":"\u2580","ulcorn;":"\u231c","ulcorner;":"\u231c","ulcrop;":"\u230f","ultri;":"\u25f8","umacr;":"\u016b",uml:"\xa8","uml;":"\xa8","uogon;":"\u0173","uopf;":"\ud835\udd66","uparrow;":"\u2191","updownarrow;":"\u2195","upharpoonleft;":"\u21bf","upharpoonright;":"\u21be","uplus;":"\u228e","upsi;":"\u03c5","upsih;":"\u03d2","upsilon;":"\u03c5","upuparrows;":"\u21c8","urcorn;":"\u231d","urcorner;":"\u231d","urcrop;":"\u230e","uring;":"\u016f","urtri;":"\u25f9","uscr;":"\ud835\udcca","utdot;":"\u22f0","utilde;":"\u0169","utri;":"\u25b5","utrif;":"\u25b4","uuarr;":"\u21c8",uuml:"\xfc","uuml;":"\xfc","uwangle;":"\u29a7","vArr;":"\u21d5","vBar;":"\u2ae8","vBarv;":"\u2ae9","vDash;":"\u22a8","vangrt;":"\u299c","varepsilon;":"\u03f5","varkappa;":"\u03f0","varnothing;":"\u2205","varphi;":"\u03d5","varpi;":"\u03d6","varpropto;":"\u221d","varr;":"\u2195","varrho;":"\u03f1","varsigma;":"\u03c2","varsubsetneq;":"\u228a\ufe00","varsubsetneqq;":"\u2acb\ufe00","varsupsetneq;":"\u228b\ufe00","varsupsetneqq;":"\u2acc\ufe00","vartheta;":"\u03d1","vartriangleleft;":"\u22b2","vartriangleright;":"\u22b3","vcy;":"\u0432","vdash;":"\u22a2","vee;":"\u2228","veebar;":"\u22bb","veeeq;":"\u225a","vellip;":"\u22ee","verbar;":"|","vert;":"|","vfr;":"\ud835\udd33","vltri;":"\u22b2","vnsub;":"\u2282\u20d2","vnsup;":"\u2283\u20d2","vopf;":"\ud835\udd67","vprop;":"\u221d","vrtri;":"\u22b3","vscr;":"\ud835\udccb","vsubnE;":"\u2acb\ufe00","vsubne;":"\u228a\ufe00","vsupnE;":"\u2acc\ufe00","vsupne;":"\u228b\ufe00","vzigzag;":"\u299a","wcirc;":"\u0175","wedbar;":"\u2a5f","wedge;":"\u2227","wedgeq;":"\u2259","weierp;":"\u2118","wfr;":"\ud835\udd34","wopf;":"\ud835\udd68","wp;":"\u2118","wr;":"\u2240","wreath;":"\u2240","wscr;":"\ud835\udccc","xcap;":"\u22c2","xcirc;":"\u25ef","xcup;":"\u22c3","xdtri;":"\u25bd","xfr;":"\ud835\udd35","xhArr;":"\u27fa","xharr;":"\u27f7","xi;":"\u03be","xlArr;":"\u27f8","xlarr;":"\u27f5","xmap;":"\u27fc","xnis;":"\u22fb","xodot;":"\u2a00","xopf;":"\ud835\udd69","xoplus;":"\u2a01","xotime;":"\u2a02","xrArr;":"\u27f9","xrarr;":"\u27f6","xscr;":"\ud835\udccd","xsqcup;":"\u2a06","xuplus;":"\u2a04","xutri;":"\u25b3","xvee;":"\u22c1","xwedge;":"\u22c0",yacute:"\xfd","yacute;":"\xfd","yacy;":"\u044f","ycirc;":"\u0177","ycy;":"\u044b",yen:"\xa5","yen;":"\xa5","yfr;":"\ud835\udd36","yicy;":"\u0457","yopf;":"\ud835\udd6a","yscr;":"\ud835\udcce","yucy;":"\u044e",yuml:"\xff","yuml;":"\xff","zacute;":"\u017a","zcaron;":"\u017e","zcy;":"\u0437","zdot;":"\u017c","zeetrf;":"\u2128","zeta;":"\u03b6","zfr;":"\ud835\udd37","zhcy;":"\u0436","zigrarr;":"\u21dd","zopf;":"\ud835\udd6b","zscr;":"\ud835\udccf","zwj;":"\u200d","zwnj;":"\u200c"})},510,[]); -__d(function(g,r,_i,_a,_m,_e,d){var e=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,t=new RegExp("[\\-\\.0-9"+e.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),a=new RegExp('^'+e.source+t.source+'*(?::'+e.source+t.source+'*)?$'),n=0,s=1,c=2,i=3,u=4,l=5,o=6,f=7;function m(){}function h(e,t,a,n,s){function c(e){if(e>65535){var t=55296+((e-=65536)>>10),a=56320+(1023&e);return String.fromCharCode(t,a)}return String.fromCharCode(e)}function i(e){var t=e.slice(1,-1);return t in a?a[t]:'#'===t.charAt(0)?c(parseInt(t.substr(1).replace('x','0x'))):(s.error('entity not found:'+e),e)}function u(t){if(t>C){var a=e.substring(C,t).replace(/&#?\w+;/g,i);h&&l(C),n.characters(a,0,t-C),C=t}}function l(t,a){for(;t>=f&&(a=m.exec(e));)o=a.index,f=o+a[0].length,h.lineNumber++;h.columnNumber=t-o+1}for(var o=0,f=0,m=/.*(?:\r\n?|\n)|.*$/g,h=n.locator,N=[{currentNSMap:t}],E={},C=0;;){try{var $=e.indexOf('<',C);if($<0){if(!e.substr(C).match(/^\s*$/)){var A=n.doc,M=A.createTextNode(e.substr(C));A.appendChild(M),n.currentElement=M}return}switch($>C&&u($),e.charAt($+1)){case'/':var O=e.indexOf('>',$+3),T=e.substring($+2,O),S=N.pop();O<0?(T=e.substring($+2).replace(/[\s<].*/,''),s.error("end tag name: "+T+' is not complete:'+S.tagName),O=$+1+T.length):T.match(/\sC?C=O:u(Math.max($,C)+1)}}function w(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function p(e,t,a,m,h,w){for(var p,b=++t,x=n;;){var v=e.charAt(b);switch(v){case'=':if(x===s)p=e.slice(t,b),x=i;else{if(x!==c)throw new Error('attribute equal must after attrName');x=i}break;case'\'':case'"':if(x===i||x===s){if(x===s&&(w.warning('attribute value must after "="'),p=e.slice(t,b)),t=b+1,!((b=e.indexOf(v,t))>0))throw new Error('attribute value no end \''+v+'\' match');N=e.slice(t,b).replace(/&#?\w+;/g,h),a.add(p,N,t-1),x=l}else{if(x!=u)throw new Error('attribute value must after "="');N=e.slice(t,b).replace(/&#?\w+;/g,h),a.add(p,N,t),w.warning('attribute "'+p+'" missed start quot('+v+')!!'),t=b+1,x=l}break;case'/':switch(x){case n:a.setTagName(e.slice(t,b));case l:case o:case f:x=f,a.closed=!0;case u:case s:case c:break;default:throw new Error("attribute invalid close char('/')")}break;case'':return w.error('unexpected end of input'),x==n&&a.setTagName(e.slice(t,b)),b;case'>':switch(x){case n:a.setTagName(e.slice(t,b));case l:case o:case f:break;case u:case s:'/'===(N=e.slice(t,b)).slice(-1)&&(a.closed=!0,N=N.slice(0,-1));case c:x===c&&(N=p),x==u?(w.warning('attribute "'+N+'" missed quot(")!!'),a.add(p,N.replace(/&#?\w+;/g,h),t)):('http://www.w3.org/1999/xhtml'===m['']&&N.match(/^(?:disabled|checked|selected)$/i)||w.warning('attribute "'+N+'" missed value!! "'+N+'" instead!!'),a.add(N,N,t));break;case i:throw new Error('attribute value missed!!')}return b;case"\x80":v=' ';default:if(v<=' ')switch(x){case n:a.setTagName(e.slice(t,b)),x=o;break;case s:p=e.slice(t,b),x=c;break;case u:var N=e.slice(t,b).replace(/&#?\w+;/g,h);w.warning('attribute "'+N+'" missed quot(")!!'),a.add(p,N,t);case l:x=o}else switch(x){case c:a.tagName;'http://www.w3.org/1999/xhtml'===m['']&&p.match(/^(?:disabled|checked|selected)$/i)||w.warning('attribute "'+p+'" missed value!! "'+p+'" instead2!!'),a.add(p,p,t),t=b,x=s;break;case l:w.warning('attribute space is required"'+p+'"!!');case o:x=s,t=b;break;case i:x=u,t=b;break;case f:throw new Error("elements closed character '/' and '>' must be connected to")}}b++}}function b(e,t,a){for(var n=e.tagName,s=null,c=e.length;c--;){var i=e[c],u=i.qName,l=i.value;if((h=u.indexOf(':'))>0)var o=i.prefix=u.slice(0,h),f=u.slice(h+1),m='xmlns'===o&&f;else f=u,o=null,m='xmlns'===u&&'';i.localName=f,!1!==m&&(null==s&&(s={},N(a,a={})),a[m]=s[m]=l,i.uri='http://www.w3.org/2000/xmlns/',t.startPrefixMapping(m,l))}for(c=e.length;c--;){(o=(i=e[c]).prefix)&&('xml'===o&&(i.uri='http://www.w3.org/XML/1998/namespace'),'xmlns'!==o&&(i.uri=a[o||'']))}var h;(h=n.indexOf(':'))>0?(o=e.prefix=n.slice(0,h),f=e.localName=n.slice(h+1)):(o=null,f=e.localName=n);var w=e.uri=a[o||''];if(t.startElement(w,f,n,e),!e.closed)return e.currentNSMap=a,e.localNSMap=s,!0;if(t.endElement(w,f,n),s)for(o in s)t.endPrefixMapping(o)}function x(e,t,a,n,s){if(/^(?:script|textarea)$/i.test(a)){var c=e.indexOf('',t),i=e.substring(t+1,c);if(/[&<]/.test(i))return/^script$/i.test(a)?(s.characters(i,0,i.length),c):(i=i.replace(/&#?\w+;/g,n),s.characters(i,0,i.length),c)}return t+1}function v(e,t,a,n){var s=n[a];return null==s&&((s=e.lastIndexOf(''))t?(a.comment(e,t+4,s-t-4),s+3):(n.error("Unclosed comment"),-1):-1;default:if('CDATA['==e.substr(t+3,6)){var s=e.indexOf(']]>',t+9);return a.startCDATA(),a.characters(e,t+9,s-t-9),a.endCDATA(),s+3}var c=E(e,t),i=c.length;if(i>1&&/!doctype/i.test(c[0][0])){var u=c[1][0],l=i>3&&/^public$/i.test(c[2][0])&&c[3][0],o=i>4&&c[4][0],f=c[i-1];return a.startDTD(u,l&&l.replace(/^(['"])(.*?)\1$/,'$2'),o&&o.replace(/^(['"])(.*?)\1$/,'$2')),a.endDTD(),f.index+f[0].length}}return-1}function D(e,t,a){var n=e.indexOf('?>',t);if(n){var s=e.substring(t,n).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(s){s[0].length;return a.processingInstruction(s[1],s[2]),n+2}return-1}return-1}function k(e){}function E(e,t){var a,n=[],s=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(s.lastIndex=t,s.exec(e);a=s.exec(e);)if(n.push(a),a[1])return n}m.prototype={parse:function(e,t,a){var n=this.domBuilder;n.startDocument(),N(t,t={}),h(e,t,a,n,this.errorHandler),n.endDocument()}},k.prototype={setTagName:function(e){if(!a.test(e))throw new Error('invalid tagName:'+e);this.tagName=e},add:function(e,t,n){if(!a.test(e))throw new Error('invalid attribute:'+e);this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},_e.XMLReader=m},511,[]); -__d(function(g,r,_i,_a,m,_e,d){function e(e,t){for(var n in e)t[n]=e[n]}function t(t,n){var i=t.prototype;if(Object.create){var o=Object.create(n.prototype);i.__proto__=o}if(!(i instanceof n)){function a(){}a.prototype=n.prototype,e(i,a=new a),t.prototype=i=a}i.constructor!=t&&('function'!=typeof t&&console.error("unknow Class:"+t),i.constructor=t)}var n='http://www.w3.org/1999/xhtml',i={},o=i.ELEMENT_NODE=1,a=i.ATTRIBUTE_NODE=2,u=i.TEXT_NODE=3,s=i.CDATA_SECTION_NODE=4,l=i.ENTITY_REFERENCE_NODE=5,c=i.ENTITY_NODE=6,h=i.PROCESSING_INSTRUCTION_NODE=7,p=i.COMMENT_NODE=8,f=i.DOCUMENT_NODE=9,N=i.DOCUMENT_TYPE_NODE=10,v=i.DOCUMENT_FRAGMENT_NODE=11,y=i.NOTATION_NODE=12,b={},E={},w=(b.INDEX_SIZE_ERR=(E[1]="Index size error",1),b.DOMSTRING_SIZE_ERR=(E[2]="DOMString size error",2),b.HIERARCHY_REQUEST_ERR=(E[3]="Hierarchy request error",3),b.WRONG_DOCUMENT_ERR=(E[4]="Wrong document",4),b.INVALID_CHARACTER_ERR=(E[5]="Invalid character",5),b.NO_DATA_ALLOWED_ERR=(E[6]="No data allowed",6),b.NO_MODIFICATION_ALLOWED_ERR=(E[7]="No modification allowed",7),b.NOT_FOUND_ERR=(E[8]="Not found",8)),T=(b.NOT_SUPPORTED_ERR=(E[9]="Not supported",9),b.INUSE_ATTRIBUTE_ERR=(E[10]="Attribute in use",10));b.INVALID_STATE_ERR=(E[11]="Invalid state",11),b.SYNTAX_ERR=(E[12]="Syntax error",12),b.INVALID_MODIFICATION_ERR=(E[13]="Invalid modification",13),b.NAMESPACE_ERR=(E[14]="Invalid namespace",14),b.INVALID_ACCESS_ERR=(E[15]="Invalid access",15);function A(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,E[e]),this.message=E[e],Error.captureStackTrace&&Error.captureStackTrace(this,A);return n.code=e,t&&(this.message=this.message+": "+t),n}function S(){}function _(e,t){this._node=e,this._refresh=t,D(this)}function D(t){var n=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=n){var i=t._refresh(t._node);ae(t,'length',i.length),e(i,t),t._inc=n}}function C(){}function I(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function R(e,t,n,i){if(i?t[I(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var o=e.ownerDocument;o&&(i&&P(o,e,i),k(o,e,n))}}function x(e,t,n){var i=I(t,n);if(!(i>=0))throw A(w,new Error);for(var o=t.length-1;i'==e&&'>')||'&'==e&&'&'||'"'==e&&'"'||'&#'+e.charCodeAt()+';'}function M(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(M(e,t))return!0}while(e=e.nextSibling)}function z(){}function k(e,t,n){e&&e._inc++,'http://www.w3.org/2000/xmlns/'==n.namespaceURI&&(t._nsMap[n.prefix?n.localName:'']=n.value)}function P(e,t,n,i){e&&e._inc++,'http://www.w3.org/2000/xmlns/'==n.namespaceURI&&delete t._nsMap[n.prefix?n.localName:'']}function V(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var o=t.firstChild,a=0;o;)i[a++]=o,o=o.nextSibling;i.length=a}}}function Z(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,V(e.ownerDocument,e),t}function L(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===v){var o=t.firstChild;if(null==o)return t;var a=t.lastChild}else o=a=t;var u=n?n.previousSibling:e.lastChild;o.previousSibling=u,a.nextSibling=n,u?u.nextSibling=o:e.firstChild=o,null==n?e.lastChild=a:n.previousSibling=a;do{o.parentNode=e}while(o!==a&&(o=o.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==v&&(t.firstChild=t.lastChild=null),t}function j(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);i=e.lastChild}i=e.lastChild;return t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,V(e.ownerDocument,e,t),t}function F(){this._nsMap={}}function Y(e){var t=[];/\[[a-z,A-Z]+\=((\'[a-z,A-Z]+\')|(\"[a-z,A-Z]+\"))]/.exec(e);return/\#[a-z,A-Z]+/.exec(e)&&t.push(/#[a-z,A-Z]+/.exec(e)[0]),/\.[a-z,A-Z]+(?![^\[]*\])/.exec(e)&&t.push(/\.[a-z,A-Z]+(?![^\[]*\])/.exec(e)[0]),/^[a-z,A-Z]+/.exec(e)&&t.push(/^[a-z,A-Z]+/.exec(e)[0]),/\[[a-z,A-Z]+\=((\'[\w:,-\.]+\')|(\"[\w:,-\.]+\"))]/.exec(e)&&t.push(/\[[a-z,A-Z]+\=((\'[\w:,-\.]+\')|(\"[\w:,-\.]+\"))]/.exec(e)[0]),t.sort(function(e,t){return e.index-t.index}),t}function $(){}function q(){}function G(){}function H(){}function W(){}function X(){}function Q(){}function J(){}function K(){}function ee(){}function te(){}function ne(){}function re(e,t,i,c){switch(e.nodeType){case o:var y=e.attributes,b=y.length,E=e.firstChild,w=e.tagName;c=n===e.namespaceURI||c,t.push('<',w),i&&t.sort.apply(y,i);for(var T=0;T'),c&&/^script$/i.test(w))E&&t.push(E.data);else for(;E;)re(E,t,i,c),E=E.nextSibling;t.push('')}else t.push('/>');return;case f:case v:for(E=e.firstChild;E;)re(E,t,i,c),E=E.nextSibling;return;case a:return t.push(' ',e.name,'="',e.value.replace(/[<&"]/g,U),'"');case u:return t.push(e.data.replace(/[<&]/g,U));case s:return t.push('');case p:return t.push("\x3c!--",e.data,"--\x3e");case N:var A=e.publicId,S=e.systemId;if(t.push('');else if(S&&'.'!=S)t.push(' SYSTEM "',S,'">');else{var _=e.internalSubset;_&&t.push(" [",_,"]"),t.push(">")}return;case h:return t.push("");case l:return t.push('&',e.nodeName,';');default:t.push('??',e.nodeName)}}function ie(e,t,n){var i;switch(t.nodeType){case o:(i=t.cloneNode(!1)).ownerDocument=e;case v:break;case a:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var u=t.firstChild;u;)i.appendChild(ie(e,u,n)),u=u.nextSibling;return i}function oe(e,t,n){var i=new t.constructor;for(var u in t){var s=t[u];'object'!=typeof s&&s!=i[u]&&(i[u]=s)}switch(t.childNodes&&(i.childNodes=new S),i.ownerDocument=e,i.nodeType){case o:var l=t.attributes,c=i.attributes=new C,h=l.length;c._ownerElement=i;for(var p=0;p0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=2==t.nodeType?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=2==t.nodeType?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},e(i,B),e(i,B.prototype),z.prototype={nodeName:'#document',nodeType:f,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==v){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&1==e.nodeType&&(this.documentElement=e),L(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),Z(this,e)},importNode:function(e,t){return ie(this,e,t)},getElementById:function(e){var t=null;return M(this.documentElement,function(n){if(1==n.nodeType&&n.getAttribute('id')==e)return t=n,!0}),t},getElementByClassName:function(e){var t=null;return M(this.documentElement,function(n){if(1==n.nodeType&&n.hasAttribute('class')&&n.getAttribute('class')==e)return t=n,!0}),t},getElementByAttribute:function(e,t,n){var i=null;return M(this.documentElement,t==n?function(e){if(1==e.nodeType&&e.hasAttribute('attribute'))return i=e,!0}:function(e){if(1==e.nodeType&&e.hasAttribute('attribute')&&e.getAttribute('attribute')==t)return i=e,!0}),i},createElement:function(e){var t=new F;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.childNodes=new S,(t.attributes=new C)._ownerElement=t,t},createDocumentFragment:function(){var e=new ee;return e.ownerDocument=this,e.childNodes=new S,e},createTextNode:function(e){var t=new G;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new H;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new W;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new te;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new $;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new K;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new F,i=t.split(':'),o=n.attributes=new C;return n.childNodes=new S,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,o._ownerElement=n,n},createAttributeNS:function(e,t){var n=new $,i=t.split(':');return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},t(z,B),F.prototype={nodeType:o,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||''},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)},appendChild:function(e){return e.nodeType===v?this.insertBefore(e,null):j(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||''},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new _(this,function(t){var n=[];return M(t,function(i){i===t||i.nodeType!=o||'*'!==e&&i.tagName!=e||n.push(i)}),n})},getElementsByClassName:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return new _(this,function(n){var i=[];return M(n,function(a){a!==n&&a.nodeType==o&&a.hasAttribute('class')&&(t?a.getAttribute('class')===e:a.getAttribute('class').replace(/\s+/g,' ').trim().split(" ").includes(e))&&i.push(a)}),i})},getElementsByTagNameNS:function(e,t){return new _(this,function(n){var i=[];return M(n,function(a){a===n||a.nodeType!==o||'*'!==e&&a.namespaceURI!==e||'*'!==t&&a.localName!=t||i.push(a)}),i})},getElementsByAttribute:function(e,t,n){return new _(this,t==n?function(t){var n=[];return M(t,function(i){i!==t&&i.nodeType==o&&i.hasAttribute(e)&&n.push(i)}),n}:function(n){var i=[];return M(n,function(a){a!==n&&a.nodeType==o&&a.hasAttribute(e)&&a.getAttribute(e)==t&&i.push(a)}),i})},getElementsBySelector:function(e){var t=Y(e);return new _(this,function(e){var n=[];return M(e,function(e){if(1==e.nodeType){var i=0;t.forEach(function(t,n,a){switch(t[0]){case'.':e.hasAttribute('class')&&e.getAttribute('class')==t.substring(1,t.length)&&(i+=1);break;case'#':e.getAttribute('id')==t.substring(1,t.length)&&(i+=1);break;case'[':var u=t.substring(1,t.length-1).split('=');u[1]=u[1].substring(1,u[1].length-1),e.hasAttribute(u[0])&&e.getAttribute(u[0])==u[1]&&(i+=1);break;default:e.nodeType==o&&e.tagName==t&&(i+=1)}}),i==t.length&&n.push(e)}}),n})},querySelect:function(e){var t=[];e.split(' ').forEach(function(e,n,i){''!=e&&t.push(e)});for(var n=[this],i=0;i=.5&&t<1.5?"1 min read":Math.ceil(t)+" min read"}function n(t){return t<.5?.5:t>=.5&&t<1.5?1:Math.ceil(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.readingTime=function(u){var c=l(s(h(u))),o=c.time,f=c.words;return{text:t(o),words:f,time:60*o*1e3,minutes:n(o)}};var u=200,c=500;function o(t){var n=new RegExp("\\w+","g");return(t.match(n)||[]).length}function f(t){var n=new RegExp("[\u3040-\u30ff\u3400-\u4dbf\u4e00-\u9fff\uf900-\ufaff\uff66-\uff9f]","g"),u=(t.match(n)||[]).length;return{count:u,time:u/c,formattedText:t.replace(n,"")}}function l(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u,c=f(t),l=c.count,s=c.time,h=o(c.formattedText);return{characters:l,otherLanguageTime:s,words:h,time:h/n}}function s(t){var n=new RegExp("<\\w+(\\s+(\"[^\"]*\"|\\'[^\\']*'|[^>])+)?>|<\\/\\w+>","gi");return t.replace(n,"")}function h(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}},513,[]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),i=_r(d[4]),r=_r(d[0])(_r(d[5])),a=_r(d[0])(_r(d[6])),u=_r(d[0])(_r(d[7])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=s(t);if(n&&n.has(e))return n.get(e);var i={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=r?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(i,a,u):i[a]=e[a]}return i.default=e,n&&n.set(e,i),i})(_r(d[8]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(s=function(e){return e?n:t})(e)}var l=i.NativeModules.TaUtils,c=(function(){function s(){(0,t.default)(this,s)}return(0,n.default)(s,null,[{key:"initPlatformInfo",value:function(){var t,n,a,u,o,c,f,v;return e.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return t=r.default.isTablet(),n=!1,p.prev=2,p.next=5,e.default.awrap(r.default.isEmulator());case 5:n=p.sent,p.next=10;break;case 8:p.prev=8,p.t0=p.catch(2);case 10:return a="n/a",p.prev=11,p.next=14,e.default.awrap(r.default.getUserAgent());case 14:a=p.sent,p.next=19;break;case 17:p.prev=17,p.t1=p.catch(11);case 19:return u=1,p.prev=20,p.next=23,e.default.awrap(r.default.getFontScale());case 23:u=p.sent,p.next=28;break;case 26:p.prev=26,p.t2=p.catch(20);case 28:return o=30,p.prev=29,p.next=32,e.default.awrap(r.default.getApiLevel());case 32:o=p.sent,p.next=37;break;case 35:p.prev=35,p.t3=p.catch(29);case 37:return c=[],p.prev=38,p.next=41,e.default.awrap(r.default.supported64BitAbis());case 41:c=p.sent,p.next=46;break;case 44:p.prev=44,p.t4=p.catch(38);case 46:return f=[],p.prev=47,p.next=50,e.default.awrap(r.default.supported32BitAbis());case 50:f=p.sent,p.next=55;break;case 53:p.prev=53,p.t5=p.catch(47);case 55:return v=!1,p.prev=56,p.next=59,e.default.awrap(i.AccessibilityInfo.isScreenReaderEnabled());case 59:v=p.sent,p.next=64;break;case 62:p.prev=62,p.t6=p.catch(56);case 64:if(p.t7=r.default.getModel(),p.t8=r.default.getDeviceId(),p.t9=r.default.getDeviceType(),p.t10=r.default.getApplicationName(),p.t11=r.default.getBrand(),p.t12=r.default.getVersion(),p.t13=r.default.getSystemName(),p.t14=r.default.getSystemVersion(),p.t15=r.default.getUniqueId(),p.t16=r.default.getBundleId(),p.t17=a,p.t18=u,p.t19=i.PixelRatio.get(),p.t20=o,p.t21=c,p.t22=f,!s.isAndroid()){p.next=86;break}return p.next=83,e.default.awrap(l.isEInk());case 83:p.t23=p.sent,p.next=87;break;case 86:p.t23=!1;case 87:p.t24=p.t23,p.t25=t,p.t26=t,p.t27=n,p.t28=v,s.info={model:p.t7,deviceId:p.t8,deviceType:p.t9,appName:p.t10,brand:p.t11,version:p.t12,system:p.t13,systemVersion:p.t14,uniqueId:p.t15,bundleId:p.t16,userAgent:p.t17,fontScale:p.t18,pixelRatio:p.t19,apiLevel:p.t20,supported64BitAbis:p.t21,supported32BitAbis:p.t22,isEInk:p.t24,isTablet:p.t25,isTabletTenInches:p.t26,isEmulator:p.t27,systemAccessibilityEnabled:p.t28};case 93:case"end":return p.stop()}},null,null,[[2,8],[11,17],[20,26],[29,35],[38,44],[47,53],[56,62]],Promise)}},{key:"model",value:function(){return s.info.model}},{key:"getDeviceId",value:function(){return s.info.deviceId}},{key:"getDeviceType",value:function(){return s.info.deviceType}},{key:"getScreenInches",value:function(){return s.info.inches}},{key:"appName",value:function(){return s.info.appName}},{key:"getBrand",value:function(){return s.info.brand}},{key:"getSystemName",value:function(){return s.info.system}},{key:"getSystemVersion",value:function(){return s.info.systemVersion}},{key:"getMajorSystemVersion",value:function(){return parseInt(s.info.systemVersion,10)}},{key:"getSystemSDK",value:function(){return s.info.apiLevel}},{key:"hasTLS12",value:function(){return!(s.isAndroid()&&s.info.apiLevel<22)}},{key:"is64bits",value:function(){return s.isIOS()||s.info.supported64BitAbis.length>0}},{key:"getDeviceUniqueId",value:function(){return s.info.uniqueId}},{key:"getRandomUUID",value:function(){return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",a.default.getRandomUUID());case 1:case"end":return e.stop()}},null,null,null,Promise)}},{key:"getPackagedId",value:function(){return s.info.bundleId}},{key:"getUserAgent",value:function(){return s.info.userAgent}},{key:"isIOS",value:function(){return"ios"===i.Platform.OS}},{key:"isAndroid",value:function(){return"android"===i.Platform.OS}},{key:"isEInk",value:function(){return s.info.isEInk}},{key:"isPreviousLollipop",value:function(){return s.isAndroid()&&s.info.apiLevel<21}},{key:"isPreviousMarshmallow",value:function(){return s.isAndroid()&&s.info.apiLevel<23}},{key:"isPreviousNougat",value:function(){return s.isAndroid()&&s.info.apiLevel<25}},{key:"isTablet",value:function(){var e;return(null!=(e=s.info.isTablet)?e:r.default.isTablet())||s.isMac()}},{key:"isTabletTenInches",value:function(){return s.info.isTabletTenInches||s.isMac()}},{key:"isiPad",value:function(){return s.isIOS()&&s.isTablet()}},{key:"isiPhone",value:function(){return s.isIOS()&&!s.isTablet()}},{key:"isiPadRegular",value:function(){var e=i.Dimensions.get("window");return s.isiPad()&&(1024===e.height||1024===e.width)}},{key:"isiPadPro12dot9",value:function(){var e=i.Dimensions.get("window");return s.isiPad()&&(1366===e.height||1366===e.width)}},{key:"isiPadPro11",value:function(){var e=i.Dimensions.get("window");return s.isiPad()&&(1194===e.height||1194===e.width)}},{key:"isiPadPro10dot5",value:function(){var e=i.Dimensions.get("window");return s.isiPad()&&(1112===e.height||1112===e.width)}},{key:"isiPadMini8dot3",value:function(e){if(s.isiPadPro11()){if(e)return 326===e;var t=s.getDeviceId();if(t)return"iPad14,1"===t||"iPad14,2"===t}return!1}},{key:"isiPhoneSE",value:function(){var e=i.Dimensions.get("window");return s.isiPhone()&&(568===e.height||568===e.width)}},{key:"isiPhoneRegular",value:function(){var e=i.Dimensions.get("window");return s.isiPhone()&&(667===e.height||667===e.width)}},{key:"isiPhonePlus",value:function(){var e=i.Dimensions.get("window");return s.isiPhone()&&(736===e.height||736===e.width)}},{key:"isiPhoneX",value:function(){var e=i.Dimensions.get("window");return s.isiPhone()&&(812===e.height||812===e.width)}},{key:"isiPhoneXr",value:function(){var e=i.Dimensions.get("window");return s.isiPhone()&&(896===e.height||896===e.width)}},{key:"isiPhoneXSMax",value:function(){var e=i.Dimensions.get("window");return s.isiPhone()&&(896===e.height||896===e.width)&&3===s.info.pixelRatio}},{key:"isMac",value:function(){return s.isIOS()&&"Desktop"===s.info.deviceType}},{key:"isEmulator",value:function(){return s.info.isEmulator}},{key:"hasLandscapeSplashImage",value:function(){return!s.isiPhoneRegular()&&!s.isiPhoneSE()}},{key:"requestPermission",value:function(t){var n,r,a;return e.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(n=t.title,r=t.message,a=t.permission,!s.isAndroid()){u.next=14;break}return u.prev=2,u.next=5,e.default.awrap(i.PermissionsAndroid.request(a,{title:n,message:r,buttonNeutral:g.strings("btn_ask_later"),buttonNegative:g.strings("btn_cancel"),buttonPositive:g.strings("btn_ok")}));case 5:if(u.sent!==i.PermissionsAndroid.RESULTS.GRANTED){u.next=8;break}return u.abrupt("return",!0);case 8:return u.abrupt("return",!1);case 11:return u.prev=11,u.t0=u.catch(2),u.abrupt("return",!1);case 14:return u.abrupt("return",!0);case 15:case"end":return u.stop()}},null,null,[[2,11]],Promise)}},{key:"isSystemAccessibilityEnabled",value:function(){return s.info.systemAccessibilityEnabled}},{key:"setSystemAccessibilityMode",value:function(e){s.info.systemAccessibilityEnabled=e}},{key:"dpiToPixel",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return s.info?e*(s.info.pixelRatio||1):e}},{key:"setInchesBySizeAndDPI",value:function(e,t){if(s.isAndroid()){var n=t.width,i=t.height,a=s.info.pixelRatio,u=n*a/e,o=i*a/e,l=Math.floor(10*Math.sqrt(Math.pow(u,2)+Math.pow(o,2)))/10;s.info.inches=l,s.info.isTablet=l>6.5,s.info.isTabletTenInches=l>8}else{var c=r.default.isTablet();s.info.isTablet=c,s.info.isTabletTenInches=c}}},{key:"getStartupOrientation",value:function(){var e=i.Dimensions.get("screen"),t=e.width;return e.height>t?s.PORTRAIT:s.LANDSCAPE}},{key:"isRTL",value:function(){return i.I18nManager.isRTL}},{key:"getAppleWebKitVersion",value:function(){if(s.isIOS())try{var e=s.info.userAgent.split("AppleWebKit/");if(e.length>1)return e[1].split(" ")[0]}catch(e){}return""}},{key:"getResolution",value:function(){var e=i.Dimensions.get("window");return i.PixelRatio.getPixelSizeForLayoutSize(e.width)+"x"+i.PixelRatio.getPixelSizeForLayoutSize(e.height)}},{key:"getPixelSizeForLayoutSize",value:function(e){return i.PixelRatio.getPixelSizeForLayoutSize(e)}},{key:"colorTopBar",value:function(e){if(e){s.topBarColor=e;var t=o.default.isClearColor(e),n=t?"dark-content":"light-content";s.isAndroid()&&(t&&s.isPreviousMarshmallow()&&(n="light-content",e="black"),i.StatusBar.setBackgroundColor(e,!0)),i.StatusBar.setBarStyle(n,!0)}}},{key:"hideStatusBar",value:function(){s.setStatusBarHidden(!0)}},{key:"showStatusBar",value:function(){s.setStatusBarHidden(!1)}},{key:"setStatusBarHidden",value:function(e){i.StatusBar.setHidden(e)}},{key:"colorBottomBar",value:function(t){var n,i;return e.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:if(!t||!s.isAndroid()){r.next=11;break}return n=o.default.rgbTOrrggbb(t)||o.colors.black,i=o.default.isClearColor(n),r.prev=3,r.next=6,e.default.awrap((0,u.default)(n,i,!0));case 6:r.next=11;break;case 8:r.prev=8,r.t0=r.catch(3),console.warn(r.t0.message);case 11:case"end":return r.stop()}},null,null,[[3,8]],Promise)}},{key:"colorBars",value:function(){var t,n,i=arguments;return e.default.async(function(r){for(;;)switch(r.prev=r.next){case 0:return t=i.length>0&&void 0!==i[0]?i[0]:o.colors.black,n=i.length>1&&void 0!==i[1]?i[1]:o.colors.black,s.colorTopBar(t),r.next=5,e.default.awrap(s.colorBottomBar(n));case 5:case"end":return r.stop()}},null,null,null,Promise)}},{key:"isPortrait",value:function(e){return e===s.PORTRAIT||e===s.PORTRAIT_UP_SIDE_DOWN}},{key:"isLandscapeLeft",value:function(e){return e&&e===s.LANDSCAPE_LEFT}},{key:"isLandscapeRight",value:function(e){return e&&e===s.LANDSCAPE_RIGHT}},{key:"isPortraitUpsideDown",value:function(e){return e&&e===s.PORTRAIT_UP_SIDE_DOWN}},{key:"hasNotDefaultFontScale",value:function(){return Math.abs(s.info.fontScale-1)>=s.FONT_SIZE_MIN_VARIATION}},{key:"updateFontScale",value:function(){var t,n;return e.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=1,i.prev=1,i.next=4,e.default.awrap(r.default.getFontScale());case 4:t=i.sent,i.next=9;break;case 7:i.prev=7,i.t0=i.catch(1);case 9:return(n=s.info.fontScale!==t)&&(s.info.fontScale=t),i.abrupt("return",n);case 12:case"end":return i.stop()}},null,null,[[1,7]],Promise)}}]),s})();_e.default=c,c.LANDSCAPE="LANDSCAPE",c.LANDSCAPE_LEFT="LANDSCAPELEFT",c.LANDSCAPE_RIGHT="LANDSCAPERIGHT",c.PORTRAIT="PORTRAIT",c.PORTRAIT_UP_SIDE_DOWN="PORTRAITUPSIDEDOWN",c.FONT_SIZE_MIN_VARIATION=.12,c.defaultDpi=160,c.printDefaultDpi=300,c.info={},c.topBarColor=void 0},514,[5,80,7,8,28,515,521,522,501]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.syncUniqueId=p,e.getMacAddress=G,e.getMacAddressSync=K,e.getReadableVersion=ie,e.hasNotch=Gt,e.getTotalDiskCapacityOld=kn,e.getTotalDiskCapacityOldSync=An,e.getFreeDiskStorageOld=Vn,e.getFreeDiskStorageOldSync=Tn,e.isLandscape=qn,e.isLandscapeSync=jn,e.hasSystemFeature=ir,e.hasSystemFeatureSync=lr,e.isLowBatteryLevel=cr,e.getDeviceToken=Er,e.useBatteryLevel=_r,e.useBatteryLevelIsLow=qr,e.usePowerState=jr,e.useIsHeadphonesConnected=Wr,e.useFirstInstallTime=zr,e.useDeviceName=Jr,e.useHasSystemFeature=Qr,e.useIsEmulator=Xr,e.useManufacturer=Yr,e.useBrightness=Zr,e.getDeviceType=e.isAirplaneModeSync=e.isAirplaneMode=e.isBatteryChargingSync=e.isBatteryCharging=e.getPowerStateSync=e.getPowerState=e.getBatteryLevelSync=e.getBatteryLevel=e.getFreeDiskStorageSync=e.getFreeDiskStorage=e.getTotalDiskCapacitySync=e.getTotalDiskCapacity=e.getMaxMemorySync=e.getMaxMemory=e.getTotalMemorySync=e.getTotalMemory=e.getCarrierSync=e.getCarrier=e.getPhoneNumberSync=e.getPhoneNumber=e.getLastUpdateTimeSync=e.getLastUpdateTime=e.getInstallReferrerSync=e.getInstallReferrer=e.getFirstInstallTimeSync=e.getFirstInstallTime=e.hasHmsSync=e.hasHms=e.hasGmsSync=e.hasGms=e.isPinOrFingerprintSetSync=e.isPinOrFingerprintSet=e.isTablet=e.isEmulatorSync=e.isEmulator=e.getIncrementalSync=e.getIncremental=e.getCodenameSync=e.getCodename=e.getSecurityPatchSync=e.getSecurityPatch=e.getPreviewSdkIntSync=e.getPreviewSdkInt=e.getBaseOsSync=e.getBaseOs=e.getTypeSync=e.getType=e.getTagsSync=e.getTags=e.getProductSync=e.getProduct=e.getHostSync=e.getHost=e.getHardwareSync=e.getHardware=e.getFingerprintSync=e.getFingerprint=e.getDisplaySync=e.getDisplay=e.getDeviceSync=e.getDevice=e.getBootloaderSync=e.getBootloader=e.getFontScaleSync=e.getFontScale=e.getUserAgentSync=e.getUserAgent=e.getUsedMemorySync=e.getUsedMemory=e.getDeviceNameSync=e.getDeviceName=e.getVersion=e.getBuildNumber=e.getApplicationName=e.getInstallerPackageNameSync=e.getInstallerPackageName=e.getBundleId=e.getApiLevelSync=e.getApiLevel=e.getBuildIdSync=e.getBuildId=e.getSystemVersion=e.getSystemName=e.getBrand=e.getModel=e.getManufacturerSync=e.getManufacturer=e.getDeviceId=e.isCameraPresentSync=e.isCameraPresent=e.getIpAddressSync=e.getIpAddress=e.getAndroidIdSync=e.getAndroidId=e.getSerialNumberSync=e.getSerialNumber=e.getInstanceIdSync=e.getInstanceId=e.getUniqueId=void 0,e.default=e.getBrightnessSync=e.getBrightness=e.getAvailableLocationProvidersSync=e.getAvailableLocationProviders=e.isTabletMode=e.isKeyboardConnectedSync=e.isKeyboardConnected=e.isMouseConnectedSync=e.isMouseConnected=e.isHeadphonesConnectedSync=e.isHeadphonesConnected=e.isLocationEnabledSync=e.isLocationEnabled=e.getSystemAvailableFeaturesSync=e.getSystemAvailableFeatures=e.supported64BitAbisSync=e.supported64BitAbis=e.supported32BitAbisSync=e.supported32BitAbis=e.supportedAbisSync=e.supportedAbis=e.getDeviceTypeSync=void 0;var t,n=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),u=r(d[3]),s=r(d[4]),l=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({defaultValue:'unknown',memoKey:'uniqueId',supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.uniqueId}})};function p(){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if('ios'!==s.Platform.OS){n.next=6;break}return n.next=3,o.default.awrap(c.default.syncUniqueId());case 3:t=n.sent,n.next=7;break;case 6:t=f();case 7:return n.abrupt("return",t);case 8:case"end":return n.stop()}},null,null,null,Promise)}e.getUniqueId=f;var y=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'instanceId',supportedPlatforms:['android'],getter:function(){return c.default.getInstanceId()},syncGetter:function(){return c.default.getInstanceIdSync()},defaultValue:'unknown'}),S=(0,n.default)(y,2),P=S[0],v=S[1];e.getInstanceIdSync=v,e.getInstanceId=P;var w=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'serialNumber',supportedPlatforms:['android','windows'],getter:function(){return c.default.getSerialNumber()},syncGetter:function(){return c.default.getSerialNumberSync()},defaultValue:'unknown'}),I=(0,n.default)(w,2),b=I[0],F=I[1];e.getSerialNumberSync=F,e.getSerialNumber=b;var k=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'androidId',supportedPlatforms:['android'],getter:function(){return c.default.getAndroidId()},syncGetter:function(){return c.default.getAndroidIdSync()},defaultValue:'unknown'}),A=(0,n.default)(k,2),h=A[0],B=A[1];e.getAndroidIdSync=B,e.getAndroidId=h;var C=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.getIpAddress()},syncGetter:function(){return c.default.getIpAddressSync()},defaultValue:'unknown'}),M=(0,n.default)(C,2),V=M[0],T=M[1];e.getIpAddressSync=T,e.getIpAddress=V;var D=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','windows','web'],getter:function(){return c.default.isCameraPresent()},syncGetter:function(){return c.default.isCameraPresentSync()},defaultValue:!1}),L=(0,n.default)(D,2),O=L[0],N=L[1];function G(){return o.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if('android'!==s.Platform.OS){t.next=4;break}return t.abrupt("return",c.default.getMacAddress());case 4:if('ios'!==s.Platform.OS){t.next=6;break}return t.abrupt("return",'02:00:00:00:00:00');case 6:return t.abrupt("return",'unknown');case 7:case"end":return t.stop()}},null,null,null,Promise)}function K(){return'android'===s.Platform.OS?c.default.getMacAddressSync():'ios'===s.Platform.OS?'02:00:00:00:00:00':'unknown'}e.isCameraPresentSync=N,e.isCameraPresent=O;var x=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({defaultValue:'unknown',memoKey:'deviceId',getter:function(){return c.default.deviceId},supportedPlatforms:['android','ios','windows']})};e.getDeviceId=x;var H=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'manufacturer',supportedPlatforms:['android','ios','windows'],getter:function(){return'ios'==s.Platform.OS?Promise.resolve('Apple'):c.default.getSystemManufacturer()},syncGetter:function(){return'ios'==s.Platform.OS?'Apple':c.default.getSystemManufacturerSync()},defaultValue:'unknown'}),U=(0,n.default)(H,2),E=U[0],R=U[1];e.getManufacturerSync=R,e.getManufacturer=E;var _=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'model',defaultValue:'unknown',supportedPlatforms:['ios','android','windows'],getter:function(){return c.default.model}})};e.getModel=_;var q=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'brand',supportedPlatforms:['android','ios','windows'],defaultValue:'unknown',getter:function(){return c.default.brand}})};e.getBrand=q;var j=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({defaultValue:'unknown',supportedPlatforms:['ios','android','windows'],memoKey:'systemName',getter:function(){return s.Platform.select({ios:c.default.systemName,android:'Android',windows:'Windows',default:'unknown'})}})};e.getSystemName=j;var W=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({defaultValue:'unknown',getter:function(){return c.default.systemVersion},supportedPlatforms:['android','ios','windows'],memoKey:'systemVersion'})};e.getSystemVersion=W;var z=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'buildId',supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.getBuildId()},syncGetter:function(){return c.default.getBuildIdSync()},defaultValue:'unknown'}),J=(0,n.default)(z,2),Q=J[0],X=J[1];e.getBuildIdSync=X,e.getBuildId=Q;var Y=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'apiLevel',supportedPlatforms:['android'],getter:function(){return c.default.getApiLevel()},syncGetter:function(){return c.default.getApiLevelSync()},defaultValue:-1}),Z=(0,n.default)(Y,2),$=Z[0],ee=Z[1];e.getApiLevelSync=ee,e.getApiLevel=$;var te=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'bundleId',supportedPlatforms:['android','ios','windows'],defaultValue:'unknown',getter:function(){return c.default.bundleId}})};e.getBundleId=te;var ne=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'installerPackageName',supportedPlatforms:['android','windows','ios'],getter:function(){return c.default.getInstallerPackageName()},syncGetter:function(){return c.default.getInstallerPackageNameSync()},defaultValue:'unknown'}),re=(0,n.default)(ne,2),ae=re[0],oe=re[1];e.getInstallerPackageNameSync=oe,e.getInstallerPackageName=ae;var ue=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'appName',defaultValue:'unknown',getter:function(){return c.default.appName},supportedPlatforms:['android','ios','windows']})};e.getApplicationName=ue;var se=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'buildNumber',supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.buildNumber},defaultValue:'unknown'})};e.getBuildNumber=se;var de=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'version',defaultValue:'unknown',supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.appVersion}})};function ie(){return de()+'.'+se()}e.getVersion=de;var le=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.getDeviceName()},syncGetter:function(){return c.default.getDeviceNameSync()},defaultValue:'unknown'}),ce=(0,n.default)(le,2),fe=ce[0],ge=ce[1];e.getDeviceNameSync=ge,e.getDeviceName=fe;var pe=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows','web'],getter:function(){return c.default.getUsedMemory()},syncGetter:function(){return c.default.getUsedMemorySync()},defaultValue:-1}),ye=(0,n.default)(pe,2),me=ye[0],Se=ye[1];e.getUsedMemorySync=Se,e.getUsedMemory=me;var Pe=function(){return(0,r(d[7]).getSupportedPlatformInfoAsync)({memoKey:'userAgent',defaultValue:'unknown',supportedPlatforms:['android','ios','web'],getter:function(){return c.default.getUserAgent()}})};e.getUserAgent=Pe;var ve=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'userAgent',defaultValue:'unknown',supportedPlatforms:['android','web'],getter:function(){return c.default.getUserAgentSync()}})};e.getUserAgentSync=ve;var we=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.getFontScale()},syncGetter:function(){return c.default.getFontScaleSync()},defaultValue:-1}),Ie=(0,n.default)(we,2),be=Ie[0],Fe=Ie[1];e.getFontScaleSync=Fe,e.getFontScale=be;var ke=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'bootloader',supportedPlatforms:['android'],getter:function(){return c.default.getBootloader()},syncGetter:function(){return c.default.getBootloaderSync()},defaultValue:'unknown'}),Ae=(0,n.default)(ke,2),he=Ae[0],Be=Ae[1];e.getBootloaderSync=Be,e.getBootloader=he;var Ce=(0,r(d[7]).getSupportedPlatformInfoFunctions)({getter:function(){return c.default.getDevice()},syncGetter:function(){return c.default.getDeviceSync()},defaultValue:'unknown',memoKey:'device',supportedPlatforms:['android']}),Me=(0,n.default)(Ce,2),Ve=Me[0],Te=Me[1];e.getDeviceSync=Te,e.getDevice=Ve;var De=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'display',supportedPlatforms:['android'],getter:function(){return c.default.getDisplay()},syncGetter:function(){return c.default.getDisplaySync()},defaultValue:'unknown'}),Le=(0,n.default)(De,2),Oe=Le[0],Ne=Le[1];e.getDisplaySync=Ne,e.getDisplay=Oe;var Ge=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'fingerprint',supportedPlatforms:['android'],getter:function(){return c.default.getFingerprint()},syncGetter:function(){return c.default.getFingerprintSync()},defaultValue:'unknown'}),Ke=(0,n.default)(Ge,2),xe=Ke[0],He=Ke[1];e.getFingerprintSync=He,e.getFingerprint=xe;var Ue=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'hardware',supportedPlatforms:['android'],getter:function(){return c.default.getHardware()},syncGetter:function(){return c.default.getHardwareSync()},defaultValue:'unknown'}),Ee=(0,n.default)(Ue,2),Re=Ee[0],_e=Ee[1];e.getHardwareSync=_e,e.getHardware=Re;var qe=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'host',supportedPlatforms:['android'],getter:function(){return c.default.getHost()},syncGetter:function(){return c.default.getHostSync()},defaultValue:'unknown'}),je=(0,n.default)(qe,2),We=je[0],ze=je[1];e.getHostSync=ze,e.getHost=We;var Je=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'product',supportedPlatforms:['android'],getter:function(){return c.default.getProduct()},syncGetter:function(){return c.default.getProductSync()},defaultValue:'unknown'}),Qe=(0,n.default)(Je,2),Xe=Qe[0],Ye=Qe[1];e.getProductSync=Ye,e.getProduct=Xe;var Ze=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'tags',supportedPlatforms:['android'],getter:function(){return c.default.getTags()},syncGetter:function(){return c.default.getTagsSync()},defaultValue:'unknown'}),$e=(0,n.default)(Ze,2),et=$e[0],tt=$e[1];e.getTagsSync=tt,e.getTags=et;var nt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'type',supportedPlatforms:['android'],getter:function(){return c.default.getType()},syncGetter:function(){return c.default.getTypeSync()},defaultValue:'unknown'}),rt=(0,n.default)(nt,2),at=rt[0],ot=rt[1];e.getTypeSync=ot,e.getType=at;var ut=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'baseOs',supportedPlatforms:['android','web','windows'],getter:function(){return c.default.getBaseOs()},syncGetter:function(){return c.default.getBaseOsSync()},defaultValue:'unknown'}),st=(0,n.default)(ut,2),dt=st[0],it=st[1];e.getBaseOsSync=it,e.getBaseOs=dt;var lt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'previewSdkInt',supportedPlatforms:['android'],getter:function(){return c.default.getPreviewSdkInt()},syncGetter:function(){return c.default.getPreviewSdkIntSync()},defaultValue:-1}),ct=(0,n.default)(lt,2),ft=ct[0],gt=ct[1];e.getPreviewSdkIntSync=gt,e.getPreviewSdkInt=ft;var pt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'securityPatch',supportedPlatforms:['android'],getter:function(){return c.default.getSecurityPatch()},syncGetter:function(){return c.default.getSecurityPatchSync()},defaultValue:'unknown'}),yt=(0,n.default)(pt,2),mt=yt[0],St=yt[1];e.getSecurityPatchSync=St,e.getSecurityPatch=mt;var Pt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'codeName',supportedPlatforms:['android'],getter:function(){return c.default.getCodename()},syncGetter:function(){return c.default.getCodenameSync()},defaultValue:'unknown'}),vt=(0,n.default)(Pt,2),wt=vt[0],It=vt[1];e.getCodenameSync=It,e.getCodename=wt;var bt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'incremental',supportedPlatforms:['android'],getter:function(){return c.default.getIncremental()},syncGetter:function(){return c.default.getIncrementalSync()},defaultValue:'unknown'}),Ft=(0,n.default)(bt,2),kt=Ft[0],At=Ft[1];e.getIncrementalSync=At,e.getIncremental=kt;var ht=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'emulator',supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.isEmulator()},syncGetter:function(){return c.default.isEmulatorSync()},defaultValue:!1}),Bt=(0,n.default)(ht,2),Ct=Bt[0],Mt=Bt[1];e.isEmulatorSync=Mt,e.isEmulator=Ct;var Vt=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({defaultValue:!1,supportedPlatforms:['android','ios','windows'],memoKey:'tablet',getter:function(){return c.default.isTablet}})};e.isTablet=Vt;var Tt,Dt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.isPinOrFingerprintSet()},syncGetter:function(){return c.default.isPinOrFingerprintSetSync()},defaultValue:!1}),Lt=(0,n.default)(Dt,2),Ot=Lt[0],Nt=Lt[1];function Gt(){if(void 0===Tt){var t=q(),n=_();Tt=-1!==l.default.findIndex(function(o){return o.brand.toLowerCase()===t.toLowerCase()&&o.model.toLowerCase()===n.toLowerCase()})}return Tt}e.isPinOrFingerprintSetSync=Nt,e.isPinOrFingerprintSet=Ot;var Kt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android'],getter:function(){return c.default.hasGms()},syncGetter:function(){return c.default.hasGmsSync()},defaultValue:!1}),xt=(0,n.default)(Kt,2),Ht=xt[0],Ut=xt[1];e.hasGmsSync=Ut,e.hasGms=Ht;var Et=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android'],getter:function(){return c.default.hasHms()},syncGetter:function(){return c.default.hasHmsSync()},defaultValue:!1}),Rt=(0,n.default)(Et,2),_t=Rt[0],qt=Rt[1];e.hasHmsSync=qt,e.hasHms=_t;var jt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'firstInstallTime',supportedPlatforms:['android','windows'],getter:function(){return c.default.getFirstInstallTime()},syncGetter:function(){return c.default.getFirstInstallTimeSync()},defaultValue:-1}),Wt=(0,n.default)(jt,2),zt=Wt[0],Jt=Wt[1];e.getFirstInstallTimeSync=Jt,e.getFirstInstallTime=zt;var Qt=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'installReferrer',supportedPlatforms:['android','windows','web'],getter:function(){return c.default.getInstallReferrer()},syncGetter:function(){return c.default.getInstallReferrerSync()},defaultValue:'unknown'}),Xt=(0,n.default)(Qt,2),Yt=Xt[0],Zt=Xt[1];e.getInstallReferrerSync=Zt,e.getInstallReferrer=Yt;var $t=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'lastUpdateTime',supportedPlatforms:['android'],getter:function(){return c.default.getLastUpdateTime()},syncGetter:function(){return c.default.getLastUpdateTimeSync()},defaultValue:-1}),en=(0,n.default)($t,2),tn=en[0],nn=en[1];e.getLastUpdateTimeSync=nn,e.getLastUpdateTime=tn;var rn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android'],getter:function(){return c.default.getPhoneNumber()},syncGetter:function(){return c.default.getPhoneNumberSync()},defaultValue:'unknown'}),an=(0,n.default)(rn,2),on=an[0],un=an[1];e.getPhoneNumberSync=un,e.getPhoneNumber=on;var sn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios'],getter:function(){return c.default.getCarrier()},syncGetter:function(){return c.default.getCarrierSync()},defaultValue:'unknown'}),dn=(0,n.default)(sn,2),ln=dn[0],cn=dn[1];e.getCarrierSync=cn,e.getCarrier=ln;var fn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'totalMemory',supportedPlatforms:['android','ios','windows','web'],getter:function(){return c.default.getTotalMemory()},syncGetter:function(){return c.default.getTotalMemorySync()},defaultValue:-1}),gn=(0,n.default)(fn,2),pn=gn[0],yn=gn[1];e.getTotalMemorySync=yn,e.getTotalMemory=pn;var mn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'maxMemory',supportedPlatforms:['android','windows','web'],getter:function(){return c.default.getMaxMemory()},syncGetter:function(){return c.default.getMaxMemorySync()},defaultValue:-1}),Sn=(0,n.default)(mn,2),Pn=Sn[0],vn=Sn[1];e.getMaxMemorySync=vn,e.getMaxMemory=Pn;var wn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows','web'],getter:function(){return c.default.getTotalDiskCapacity()},syncGetter:function(){return c.default.getTotalDiskCapacitySync()},defaultValue:-1}),In=(0,n.default)(wn,2),bn=In[0],Fn=In[1];function kn(){return o.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if('android'!==s.Platform.OS){t.next=2;break}return t.abrupt("return",c.default.getTotalDiskCapacityOld());case 2:if('ios'!==s.Platform.OS&&'windows'!==s.Platform.OS&&'web'!==s.Platform.OS){t.next=4;break}return t.abrupt("return",bn());case 4:return t.abrupt("return",-1);case 5:case"end":return t.stop()}},null,null,null,Promise)}function An(){return'android'===s.Platform.OS?c.default.getTotalDiskCapacityOldSync():'ios'===s.Platform.OS||'windows'===s.Platform.OS||'web'===s.Platform.OS?Fn():-1}e.getTotalDiskCapacitySync=Fn,e.getTotalDiskCapacity=bn;var hn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows','web'],getter:function(){return c.default.getFreeDiskStorage()},syncGetter:function(){return c.default.getFreeDiskStorageSync()},defaultValue:-1}),Bn=(0,n.default)(hn,2),Cn=Bn[0],Mn=Bn[1];function Vn(){return o.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if('android'!==s.Platform.OS){t.next=2;break}return t.abrupt("return",c.default.getFreeDiskStorageOld());case 2:if('ios'!==s.Platform.OS&&'windows'!==s.Platform.OS&&'web'!==s.Platform.OS){t.next=4;break}return t.abrupt("return",Cn());case 4:return t.abrupt("return",-1);case 5:case"end":return t.stop()}},null,null,null,Promise)}function Tn(){return'android'===s.Platform.OS?c.default.getFreeDiskStorageOldSync():'ios'===s.Platform.OS||'windows'===s.Platform.OS||'web'===s.Platform.OS?Mn():-1}e.getFreeDiskStorageSync=Mn,e.getFreeDiskStorage=Cn;var Dn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows','web'],getter:function(){return c.default.getBatteryLevel()},syncGetter:function(){return c.default.getBatteryLevelSync()},defaultValue:-1}),Ln=(0,n.default)(Dn,2),On=Ln[0],Nn=Ln[1];e.getBatteryLevelSync=Nn,e.getBatteryLevel=On;var Gn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['ios','android','windows','web'],getter:function(){return c.default.getPowerState()},syncGetter:function(){return c.default.getPowerStateSync()},defaultValue:{}}),Kn=(0,n.default)(Gn,2),xn=Kn[0],Hn=Kn[1];e.getPowerStateSync=Hn,e.getPowerState=xn;var Un=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','windows','web'],getter:function(){return c.default.isBatteryCharging()},syncGetter:function(){return c.default.isBatteryChargingSync()},defaultValue:!1}),En=(0,n.default)(Un,2),Rn=En[0],_n=En[1];function qn(){return o.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.resolve(jn()));case 1:case"end":return t.stop()}},null,null,null,Promise)}function jn(){var t=s.Dimensions.get('window'),n=t.height;return t.width>=n}e.isBatteryChargingSync=_n,e.isBatteryCharging=Rn;var Wn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','web'],getter:function(){return c.default.isAirplaneMode()},syncGetter:function(){return c.default.isAirplaneModeSync()},defaultValue:!1}),zn=(0,n.default)(Wn,2),Jn=zn[0],Qn=zn[1];e.isAirplaneModeSync=Qn,e.isAirplaneMode=Jn;var Xn=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'deviceType',supportedPlatforms:['android','ios','windows'],defaultValue:'unknown',getter:function(){return c.default.deviceType}})};e.getDeviceType=Xn;e.getDeviceTypeSync=function(){return(0,r(d[7]).getSupportedPlatformInfoSync)({memoKey:'deviceType',supportedPlatforms:['android','ios','windows'],defaultValue:'unknown',getter:function(){return c.default.deviceType}})};var Yn=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'_supportedAbis',supportedPlatforms:['android','ios','windows'],getter:function(){return c.default.getSupportedAbis()},syncGetter:function(){return c.default.getSupportedAbisSync()},defaultValue:[]}),Zn=(0,n.default)(Yn,2),$n=Zn[0],er=Zn[1];e.supportedAbisSync=er,e.supportedAbis=$n;var tr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'_supported32BitAbis',supportedPlatforms:['android'],getter:function(){return c.default.getSupported32BitAbis()},syncGetter:function(){return c.default.getSupported32BitAbisSync()},defaultValue:[]}),nr=(0,n.default)(tr,2),rr=nr[0],ar=nr[1];e.supported32BitAbisSync=ar,e.supported32BitAbis=rr;var or=(0,r(d[7]).getSupportedPlatformInfoFunctions)({memoKey:'_supported64BitAbis',supportedPlatforms:['android'],getter:function(){return c.default.getSupported64BitAbis()},syncGetter:function(){return c.default.getSupported64BitAbisSync()},defaultValue:[]}),ur=(0,n.default)(or,2),sr=ur[0],dr=ur[1];function ir(t){return o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if('android'!==s.Platform.OS){n.next=2;break}return n.abrupt("return",c.default.hasSystemFeature(t));case 2:return n.abrupt("return",!1);case 3:case"end":return n.stop()}},null,null,null,Promise)}function lr(t){return'android'===s.Platform.OS&&c.default.hasSystemFeatureSync(t)}function cr(t){return'android'===s.Platform.OS?t<.15:t<.2}e.supported64BitAbisSync=dr,e.supported64BitAbis=sr;var fr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android'],getter:function(){return c.default.getSystemAvailableFeatures()},syncGetter:function(){return c.default.getSystemAvailableFeaturesSync()},defaultValue:[]}),gr=(0,n.default)(fr,2),pr=gr[0],yr=gr[1];e.getSystemAvailableFeaturesSync=yr,e.getSystemAvailableFeatures=pr;var mr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios','web'],getter:function(){return c.default.isLocationEnabled()},syncGetter:function(){return c.default.isLocationEnabledSync()},defaultValue:!1}),Sr=(0,n.default)(mr,2),Pr=Sr[0],vr=Sr[1];e.isLocationEnabledSync=vr,e.isLocationEnabled=Pr;var wr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios'],getter:function(){return c.default.isHeadphonesConnected()},syncGetter:function(){return c.default.isHeadphonesConnectedSync()},defaultValue:!1}),Ir=(0,n.default)(wr,2),br=Ir[0],Fr=Ir[1];e.isHeadphonesConnectedSync=Fr,e.isHeadphonesConnected=br;var kr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['windows'],getter:function(){return c.default.isMouseConnected()},syncGetter:function(){return c.default.isMouseConnectedSync()},defaultValue:!1}),Ar=(0,n.default)(kr,2),hr=Ar[0],Br=Ar[1];e.isMouseConnectedSync=Br,e.isMouseConnected=hr;var Cr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['windows'],getter:function(){return c.default.isKeyboardConnected()},syncGetter:function(){return c.default.isKeyboardConnectedSync()},defaultValue:!1}),Mr=(0,n.default)(Cr,2),Vr=Mr[0],Tr=Mr[1];e.isKeyboardConnectedSync=Tr,e.isKeyboardConnected=Vr;var Dr=function(){return(0,r(d[7]).getSupportedPlatformInfoAsync)({supportedPlatforms:['windows'],getter:function(){return c.default.isTabletMode()},defaultValue:!1})};e.isTabletMode=Dr;var Lr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['android','ios'],getter:function(){return c.default.getAvailableLocationProviders()},syncGetter:function(){return c.default.getAvailableLocationProvidersSync()},defaultValue:{}}),Or=(0,n.default)(Lr,2),Nr=Or[0],Gr=Or[1];e.getAvailableLocationProvidersSync=Gr,e.getAvailableLocationProviders=Nr;var Kr=(0,r(d[7]).getSupportedPlatformInfoFunctions)({supportedPlatforms:['ios'],getter:function(){return c.default.getBrightness()},syncGetter:function(){return c.default.getBrightnessSync()},defaultValue:-1}),xr=(0,n.default)(Kr,2),Hr=xr[0],Ur=xr[1];function Er(){return o.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if('ios'!==s.Platform.OS){t.next=2;break}return t.abrupt("return",c.default.getDeviceToken());case 2:return t.abrupt("return",'unknown');case 3:case"end":return t.stop()}},null,null,null,Promise)}e.getBrightnessSync=Ur,e.getBrightness=Hr;var Rr=new s.NativeEventEmitter(s.NativeModules.RNDeviceInfo);function _r(){var t=(0,u.useState)(null),s=(0,n.default)(t,2),l=s[0],c=s[1];return(0,u.useEffect)(function(){var t;o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.default.awrap(On());case 2:t=n.sent,c(t);case 4:case"end":return n.stop()}},null,null,null,Promise);var n=Rr.addListener('RNDeviceInfo_batteryLevelDidChange',function(t){c(t)});return function(){return n.remove()}},[]),l}function qr(){var t=(0,u.useState)(null),s=(0,n.default)(t,2),l=s[0],c=s[1];return(0,u.useEffect)(function(){var t;o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.default.awrap(On());case 2:cr(t=n.sent)&&c(t);case 4:case"end":return n.stop()}},null,null,null,Promise);var n=Rr.addListener('RNDeviceInfo_batteryLevelIsLow',function(t){c(t)});return function(){return n.remove()}},[]),l}function jr(){var t=(0,u.useState)({}),s=(0,n.default)(t,2),l=s[0],c=s[1];return(0,u.useEffect)(function(){var t;o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.default.awrap(xn());case 2:t=n.sent,c(t);case 4:case"end":return n.stop()}},null,null,null,Promise);var n=Rr.addListener('RNDeviceInfo_powerStateDidChange',function(t){c(t)});return function(){return n.remove()}},[]),l}function Wr(){return(0,r(d[8]).useOnEvent)('RNDeviceInfo_headphoneConnectionDidChange',br,!1)}function zr(){return(0,r(d[8]).useOnMount)(zt,-1)}function Jr(){return(0,r(d[8]).useOnMount)(fe,'unknown')}function Qr(t){var n=(0,u.useCallback)(function(){return ir(t)},[t]);return(0,r(d[8]).useOnMount)(n,!1)}function Xr(){return(0,r(d[8]).useOnMount)(Ct,!1)}function Yr(){return(0,r(d[8]).useOnMount)(E,'unknown')}function Zr(){var t=(0,u.useState)(null),s=(0,n.default)(t,2),l=s[0],c=s[1];return(0,u.useEffect)(function(){var t;o.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,o.default.awrap(Hr());case 2:t=n.sent,c(t);case 4:case"end":return n.stop()}},null,null,null,Promise);var n=Rr.addListener('RNDeviceInfo_brightnessDidChange',function(t){c(t)});return function(){return n.remove()}},[]),l}var $r={getAndroidId:h,getAndroidIdSync:B,getApiLevel:$,getApiLevelSync:ee,getApplicationName:ue,getAvailableLocationProviders:Nr,getAvailableLocationProvidersSync:Gr,getBaseOs:dt,getBaseOsSync:it,getBatteryLevel:On,getBatteryLevelSync:Nn,getBootloader:he,getBootloaderSync:Be,getBrand:q,getBuildId:Q,getBuildIdSync:X,getBuildNumber:se,getBundleId:te,getCarrier:ln,getCarrierSync:cn,getCodename:wt,getCodenameSync:It,getDevice:Ve,getDeviceId:x,getDeviceName:fe,getDeviceNameSync:ge,getDeviceSync:Te,getDeviceToken:Er,getDeviceType:Xn,getDisplay:Oe,getDisplaySync:Ne,getFingerprint:xe,getFingerprintSync:He,getFirstInstallTime:zt,getFirstInstallTimeSync:Jt,getFontScale:be,getFontScaleSync:Fe,getFreeDiskStorage:Cn,getFreeDiskStorageOld:Vn,getFreeDiskStorageSync:Mn,getFreeDiskStorageOldSync:Tn,getHardware:Re,getHardwareSync:_e,getHost:We,getHostSync:ze,getIncremental:kt,getIncrementalSync:At,getInstallerPackageName:ae,getInstallerPackageNameSync:oe,getInstallReferrer:Yt,getInstallReferrerSync:Zt,getInstanceId:P,getInstanceIdSync:v,getIpAddress:V,getIpAddressSync:T,getLastUpdateTime:tn,getLastUpdateTimeSync:nn,getMacAddress:G,getMacAddressSync:K,getManufacturer:E,getManufacturerSync:R,getMaxMemory:Pn,getMaxMemorySync:vn,getModel:_,getPhoneNumber:on,getPhoneNumberSync:un,getPowerState:xn,getPowerStateSync:Hn,getPreviewSdkInt:ft,getPreviewSdkIntSync:gt,getProduct:Xe,getProductSync:Ye,getReadableVersion:ie,getSecurityPatch:mt,getSecurityPatchSync:St,getSerialNumber:b,getSerialNumberSync:F,getSystemAvailableFeatures:pr,getSystemAvailableFeaturesSync:yr,getSystemName:j,getSystemVersion:W,getTags:et,getTagsSync:tt,getTotalDiskCapacity:bn,getTotalDiskCapacityOld:kn,getTotalDiskCapacitySync:Fn,getTotalDiskCapacityOldSync:An,getTotalMemory:pn,getTotalMemorySync:yn,getType:at,getTypeSync:ot,getUniqueId:f,getUsedMemory:me,getUsedMemorySync:Se,getUserAgent:Pe,getUserAgentSync:ve,getVersion:de,getBrightness:Hr,getBrightnessSync:Ur,hasGms:Ht,hasGmsSync:Ut,hasHms:_t,hasHmsSync:qt,hasNotch:Gt,hasSystemFeature:ir,hasSystemFeatureSync:lr,isAirplaneMode:Jn,isAirplaneModeSync:Qn,isBatteryCharging:Rn,isBatteryChargingSync:_n,isCameraPresent:O,isCameraPresentSync:N,isEmulator:Ct,isEmulatorSync:Mt,isHeadphonesConnected:br,isHeadphonesConnectedSync:Fr,isLandscape:qn,isLandscapeSync:jn,isLocationEnabled:Pr,isLocationEnabledSync:vr,isPinOrFingerprintSet:Ot,isPinOrFingerprintSetSync:Nt,isMouseConnected:hr,isMouseConnectedSync:Br,isKeyboardConnected:Vr,isKeyboardConnectedSync:Tr,isTabletMode:Dr,isTablet:Vt,supported32BitAbis:rr,supported32BitAbisSync:ar,supported64BitAbis:sr,supported64BitAbisSync:dr,supportedAbis:$n,supportedAbisSync:er,syncUniqueId:p,useBatteryLevel:_r,useBatteryLevelIsLow:qr,useDeviceName:Jr,useFirstInstallTime:zr,useHasSystemFeature:Qr,useIsEmulator:Xr,usePowerState:jr,useManufacturer:Yr,useIsHeadphonesConnected:Wr,useBrightness:Zr};e.default=$r},515,[5,41,80,17,28,516,517,519,520]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=[{brand:'Apple',model:'iPhone 13 mini'},{brand:'Apple',model:'iPhone 13'},{brand:'Apple',model:'iPhone 13 Pro'},{brand:'Apple',model:'iPhone 13 Pro Max'},{brand:'Apple',model:'iPhone 12 mini'},{brand:'Apple',model:'iPhone 12'},{brand:'Apple',model:'iPhone 12 Pro'},{brand:'Apple',model:'iPhone 12 Pro Max'},{brand:'Apple',model:'iPhone 11'},{brand:'Apple',model:'iPhone 11 Pro'},{brand:'Apple',model:'iPhone 11 Pro Max'},{brand:'Apple',model:'iPhone X'},{brand:'Apple',model:'iPhone XS'},{brand:'Apple',model:'iPhone XS Max'},{brand:'Apple',model:'iPhone XR'},{brand:'Asus',model:'ZenFone 5'},{brand:'Asus',model:'ZenFone 5z'},{brand:'google',model:'Pixel 3 XL'},{brand:'google',model:'Pixel 4a'},{brand:'Huawei',model:'P20'},{brand:'Huawei',model:'P20 Plus'},{brand:'Huawei',model:'P20 Lite'},{brand:'Huawei',model:'ANE-LX1'},{brand:'Huawei',model:'INE-LX1'},{brand:'Huawei',model:'POT-LX1'},{brand:'Huawei',model:'Honor Play'},{brand:'Huawei',model:'Honor 10'},{brand:'Huawei',model:'Mate 20 Lite'},{brand:'Huawei',model:'Mate 20 Pro'},{brand:'Huawei',model:'ELE-L29'},{brand:'Huawei',model:'P30 Lite'},{brand:'Huawei',model:'P30 Pro'},{brand:'Huawei',model:'JNY-LX1'},{brand:'Huawei',model:'Nova 3'},{brand:'Huawei',model:'Nova 3i'},{brand:'Leagoo',model:'S9'},{brand:'LG',model:'G7'},{brand:'LG',model:'G7 ThinQ'},{brand:'LG',model:'G7+ ThinQ'},{brand:'LG',model:'LM-Q910'},{brand:'LG',model:'LM-G710'},{brand:'LG',model:'LM-V405'},{brand:'Motorola',model:'Moto g7 Play'},{brand:'Motorola',model:'Moto g7 Power'},{brand:'Motorola',model:'One'},{brand:'Motorola',model:'Motorola One Vision'},{brand:'Nokia',model:'5.1 Plus'},{brand:'Nokia',model:'Nokia 6.1 Plus'},{brand:'Nokia',model:'7.1'},{brand:'Nokia',model:'8.1'},{brand:'OnePlus',model:'6'},{brand:'OnePlus',model:'A6003'},{brand:'ONEPLUS',model:'A6000'},{brand:'OnePlus',model:'OnePlus A6003'},{brand:'OnePlus',model:'ONEPLUS A6010'},{brand:'OnePlus',model:'ONEPLUS A6013'},{brand:'OnePlus',model:'ONEPLUS A6000'},{brand:'Oppo',model:'R15'},{brand:'Oppo',model:'R15 Pro'},{brand:'Oppo',model:'F7'},{brand:'Oukitel',model:'U18'},{brand:'Redmi',model:'M2004J19C'},{brand:'Sharp',model:'Aquos S3'},{brand:'Vivo',model:'V9'},{brand:'Vivo',model:'X21'},{brand:'Vivo',model:'X21 UD'},{brand:'xiaomi',model:'MI 8'},{brand:'xiaomi',model:'MI 8 Explorer Edition'},{brand:'xiaomi',model:'MI 8 SE'},{brand:'xiaomi',model:'MI 8 UD'},{brand:'xiaomi',model:'MI 8 Lite'},{brand:'xiaomi',model:'Mi 9'},{brand:'xiaomi',model:'POCO F1'},{brand:'xiaomi',model:'POCOPHONE F1'},{brand:'xiaomi',model:'Redmi 6 Pro'},{brand:'xiaomi',model:'Redmi Note 7'},{brand:'xiaomi',model:'Redmi 7'},{brand:'xiaomi',model:'Redmi Note 8'},{brand:'xiaomi',model:'Redmi Note 8 Pro'},{brand:'xiaomi',model:'Mi A2 Lite'},{brand:'Blackview',model:'A30'},{brand:'Samsung',model:'SM-A217F'},{brand:'Samsung',model:'SM-A715F'}];e.default=o},516,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0]),t=o.NativeModules.RNDeviceInfo;if('web'!==o.Platform.OS&&'dom'!==o.Platform.OS||(t=r(d[1])),!t&&('android'===o.Platform.OS||'ios'===o.Platform.OS||'web'===o.Platform.OS||'dom'===o.Platform.OS))throw new Error("react-native-device-info: NativeModule.RNDeviceInfo is null. To fix this issue try these steps:\n \u2022 For react-native <= 0.59: Run `react-native link react-native-device-info` in the project root.\n \u2022 Rebuild and re-run the app.\n \u2022 If you are using CocoaPods on iOS, run `pod install` in the `ios` directory and then rebuild and re-run the app. You may also need to re-open Xcode to get the new pods.\n If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-device-info/react-native-device-info");var n=t;e.default=n},517,[28,518]); -__d(function(g,r,i,a,m,e,_d){Object.defineProperty(e,"__esModule",{value:!0}),e.getPowerStateSync=e.getPowerState=e.getTotalMemory=e.getUsedMemory=e.getMaxMemory=e.getFreeDiskStorageSync=e.getFreeDiskStorage=e.getTotalDiskCapacitySync=e.getTotalDiskCapacity=e.getBaseOs=e.isAirplaneMode=e.isLocationEnabled=e.getBatteryLevelSync=e.getBatteryLevel=e.isCameraPresentSync=e.isCameraPresent=e.isBatteryChargingSync=e.isBatteryCharging=e.getUserAgent=e.getInstallReferrer=e.getUsedMemorySync=e.getTotalMemorySync=e.isLocationEnabledSync=e.getUserAgentSync=e.isAirplaneModeSync=e.getInstallReferrerSync=e.getMaxMemorySync=void 0;var t=r(_d[0])(r(_d[1])),n=r(_d[2]),u=new n.NativeEventEmitter(n.NativeModules.RNDeviceInfo),o=!1,c=-1,s={},l=function(t){var n=t.level,u=t.charging,o=t.chargingtime,c=t.dischargingtime;return{batteryLevel:n,lowPowerMode:!1,batteryState:1===n?'full':u?'charging':'unplugged',chargingtime:o,dischargingtime:c}},f=function(){return window.performance&&window.performance.memory?window.performance.memory.jsHeapSizeLimit:-1};e.getMaxMemorySync=f;var d=function(){return document.referrer};e.getInstallReferrerSync=d;var v=function(){return!!navigator.onLine};e.isAirplaneModeSync=v;var y=function(){return window.navigator.userAgent};e.getUserAgentSync=y;var p=function(){return!!navigator.geolocation};e.isLocationEnabledSync=p;var w=function(){return navigator.deviceMemory?1e9*navigator.deviceMemory:-1};e.getTotalMemorySync=w;var S=function(){return window.performance&&window.performance.memory?window.performance.memory.usedJSHeapSize:-1};e.getUsedMemorySync=S;var x;t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if('undefined'==typeof navigator||!navigator.getBattery){n.next=7;break}return n.next=3,t.default.awrap(navigator.getBattery());case 3:x=n.sent,o=x.charging,x.addEventListener('chargingchange',function(){var t=x.charging;o=t,s=l(x),u.emit('RNDeviceInfo_powerStateDidChange',s)}),x.addEventListener('levelchange',function(){var t=x.level;c=t,s=l(x),u.emit('RNDeviceInfo_batteryLevelDidChange',t),t<.2&&u.emit('RNDeviceInfo_batteryLevelIsLow',t)});case 7:case"end":return n.stop()}},null,null,null,Promise);e.getInstallReferrer=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",d());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.getUserAgent=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",y());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.isBatteryCharging=function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!navigator.getBattery){u.next=5;break}return u.next=3,t.default.awrap(navigator.getBattery());case 3:return n=u.sent,u.abrupt("return",n.level);case 5:return u.abrupt("return",!1);case 6:case"end":return u.stop()}},null,null,null,Promise)};e.isBatteryChargingSync=function(){return o};e.isCameraPresent=function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!navigator.getBattery){u.next=5;break}return u.next=3,t.default.awrap(navigator.mediaDevices.enumerateDevices());case 3:return n=u.sent,u.abrupt("return",!!n.find(function(t){return'videoinput'===t.kind}));case 5:return u.abrupt("return",!1);case 6:case"end":return u.stop()}},null,null,null,Promise)};e.isCameraPresentSync=function(){return!1};e.getBatteryLevel=function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!navigator.getBattery){u.next=5;break}return u.next=3,t.default.awrap(navigator.getBattery());case 3:return n=u.sent,u.abrupt("return",n.level);case 5:return u.abrupt("return",-1);case 6:case"end":return u.stop()}},null,null,null,Promise)};e.getBatteryLevelSync=function(){return c};e.isLocationEnabled=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",p());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.isAirplaneMode=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",v());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.getBaseOs=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(o=void 0,n=window.navigator.userAgent,u=window.navigator.platform,o=u,-1!==['Macintosh','MacIntel','MacPPC','Mac68K'].indexOf(u)?o='Mac OS':-1!==['iPhone','iPad','iPod'].indexOf(u)?o='iOS':-1!==['Win32','Win64','Windows','WinCE'].indexOf(u)?o='Windows':/Android/.test(n)?o='Android':!o&&/Linux/.test(u)&&(o='Linux'),o));case 1:case"end":return t.stop()}var n,u,o},null,null,null,Promise)};e.getTotalDiskCapacity=function(){var n,u;return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(!navigator.storage||!navigator.storage.estimate){o.next=6;break}return o.next=3,t.default.awrap(navigator.storage.estimate());case 3:return n=o.sent,u=n.quota,o.abrupt("return",u);case 6:return o.abrupt("return",-1);case 7:case"end":return o.stop()}},null,null,null,Promise)};e.getTotalDiskCapacitySync=function(){return-1};e.getFreeDiskStorage=function(){var n,u,o;return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(!navigator.storage||!navigator.storage.estimate){c.next=7;break}return c.next=3,t.default.awrap(navigator.storage.estimate());case 3:return n=c.sent,u=n.quota,o=n.usage,c.abrupt("return",u-o);case 7:return c.abrupt("return",-1);case 8:case"end":return c.stop()}},null,null,null,Promise)};e.getFreeDiskStorageSync=function(){return-1};e.getMaxMemory=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",f());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.getUsedMemory=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",S());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.getTotalMemory=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",w());case 1:case"end":return t.stop()}},null,null,null,Promise)};e.getPowerState=function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!navigator.getBattery){u.next=5;break}return u.next=3,t.default.awrap(navigator.getBattery());case 3:return n=u.sent,u.abrupt("return",l(n));case 5:return u.abrupt("return",{});case 6:case"end":return u.stop()}},null,null,null,Promise)};e.getPowerStateSync=function(){return s}},518,[5,80,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.clearMemo=function(){f={}},e.getSupportedPlatformInfoSync=l,e.getSupportedPlatformInfoAsync=s,e.getSupportedPlatformInfoFunctions=function(t){var o=t.syncGetter,f=(0,n.default)(t,["syncGetter"]);return[function(){return s(f)},function(){return l((0,u.default)({},f,{getter:o}))}]};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[4]),f={};function c(t,n,f){var c={};return t.filter(function(t){return o.Platform.OS==t}).forEach(function(t){return c[t]=n}),o.Platform.select((0,u.default)({},c,{default:f}))}function l(t){var n=t.getter,u=t.supportedPlatforms,o=t.defaultValue,l=t.memoKey;if(l&&void 0!=f[l])return f[l];var s=c(u,n,function(){return o})();return l&&(f[l]=s),s}function s(n){var u,o,l,s,p;return t.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:if(u=n.getter,o=n.supportedPlatforms,l=n.defaultValue,!(s=n.memoKey)||void 0==f[s]){v.next=5;break}return v.abrupt("return",f[s]);case 5:return v.next=7,t.default.awrap(c(o,u,function(){return Promise.resolve(l)})());case 7:return p=v.sent,s&&(f[s]=p),v.abrupt("return",p);case 10:case"end":return v.stop()}},null,null,null,Promise)}},519,[5,80,108,6,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useOnMount=f,e.useOnEvent=function(t,o,c){var l=f(o,c),v=l.loading,E=l.result,p=(0,u.useState)(c),_=(0,n.default)(p,2),w=_[0],I=_[1];return(0,u.useEffect)(function(){I(E)},[E]),(0,u.useEffect)(function(){var n=s.addListener(t,I);return function(){return n.remove()}},[t]),{loading:v,result:w}},e.deviceInfoEmitter=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[3]),o=r(d[4]);function f(o,f){var s=(0,u.useState)({loading:!0,result:f}),c=(0,n.default)(s,2),l=c[0],v=c[1];return(0,u.useEffect)(function(){var n;t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.next=2,t.default.awrap(o());case 2:n=u.sent,v({loading:!1,result:n});case 4:case"end":return u.stop()}},null,null,null,Promise)},[o]),l}var s=new o.NativeEventEmitter(o.NativeModules.RNDeviceInfo);e.deviceInfoEmitter=s},520,[5,80,41,17,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0]).NativeModules.RNUUIDGenerator,t={getRandomUUID:function(t){if(!t)return new Promise(function(t,o){n.getRandomUUID(t)});n.getRandomUUID(t)}};e.default=t},521,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"hideNavigationBar",{enumerable:!0,get:function(){return r(d[0]).hideNavigationBar}}),Object.defineProperty(e,"showNavigationBar",{enumerable:!0,get:function(){return r(d[0]).showNavigationBar}}),e.default=void 0,e.default=r(d[0]).changeNavigationBarColor},522,[523]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.showNavigationBar=e.hideNavigationBar=e.changeNavigationBarColor=void 0;var n=r(d[0])(r(d[1])),t=r(d[2]),o=t.NativeModules.NavigationBarColor;e.changeNavigationBarColor=function(){var u,l,s,c,f=arguments;return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(u=f.length>0&&void 0!==f[0]?f[0]:String,l=f.length>1&&void 0!==f[1]&&f[1],s=!(f.length>2&&void 0!==f[2])||f[2],"android"!==t.Platform.OS){n.next=6;break}return c=!!l,n.abrupt("return",o.changeNavigationBarColor(u,c,s));case 6:return n.abrupt("return",Promise.reject(new Error("unsupported platform")));case 7:case"end":return n.stop()}},null,null,null,Promise)};e.hideNavigationBar=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if("android"!==t.Platform.OS){n.next=2;break}return n.abrupt("return",o.hideNavigationBar());case 2:return n.abrupt("return",Promise.reject(new Error("unsupported platform")));case 3:case"end":return n.stop()}},null,null,null,Promise)};e.showNavigationBar=function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if("android"!==t.Platform.OS){n.next=2;break}return n.abrupt("return",o.showNavigationBar());case 2:return n.abrupt("return",Promise.reject(new Error("unsupported platform")));case 3:case"end":return n.stop()}},null,null,null,Promise)}},523,[5,80,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.subscribe=e.zipEntryToBase64=e.unzipAssets=e.zipFiles=e.zip=e.zipWithPassword=e.unzipWithPassword=e.isPasswordProtected=e.unzip=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=(n.default.DeviceEventEmitter,n.default.NativeAppEventEmitter),u=(n.default.Platform,n.default.NativeModules.RNZipArchive);e.unzip=function(t,n){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"UTF-8";return u.unzip(t,n,s)};e.isPasswordProtected=function(t){return u.isPasswordProtected(t).then(function(t){return!!t})};e.unzipWithPassword=function(t,n,s){return u.unzipWithPassword(t,n,s)};e.zipWithPassword=function(t,n,s){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"";return u.zipWithPassword(t,n,s,o)};e.zip=function(t,n){return u.zip(t,n)};e.zipFiles=function(t,n){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return u.zipFiles(t,n,s)};e.unzipAssets=function(t,n){if(!u.unzipAssets)throw new Error("unzipAssets not supported on this platform");return u.unzipAssets(t,n)};e.zipEntryToBase64=function(n,s){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.zipEntryToBase64({archiveName:n,fileName:s}));case 1:case"end":return t.stop()}},null,null,null,Promise)};e.subscribe=function(t){return s.addListener("zipArchiveProgressEvent",t)}},524,[5,80,28]); -__d(function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=(function(){function u(){(0,e.default)(this,u)}return(0,t.default)(u,null,[{key:"getSeparator",value:function(){var e=n.default.locale();return e.includes("de")||e.includes("fr")?".":e.includes("ar")||e.includes("du")?"-":"/"}},{key:"getCalendarText",value:function(e,t){var n="";switch(t){case"0":case"1":case"14":n=e.substr(e.length-2);break;case"2":case"4":case"98":n=e.substr(4,2)}return n.length>0&&"98"!==t&&(n=""+parseInt(n,10)),n}},{key:"getPatternByDateFormat",value:function(e,t,n){var u="";switch(t){case"0":u="DD"+e+"MM"+e+"YYYY";break;case"1":u="MM"+e+"DD"+e+"YYYY";break;case"2":case"98":u="MM YYYY";break;case"4":u="MMMM YYYY";break;default:u="YYYYMMDD"}return n&&"98"!==t&&(u="ddd "+u),u}},{key:"getCurrentYear",value:function(){return(0,n.default)().year()}},{key:"formatDate",value:function(e,t){var u=e;try{u=(0,n.default)(e,"YYYYMMDD").format(t)}catch(e){}return u}},{key:"subDaysToToday",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,n.default)().subtract(e,"days")}},{key:"addDaysToToday",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return(0,n.default)().add(e,"days")}},{key:"addDaysToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,n.default)(e).add(t,"days")}},{key:"subDaysToDate",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return(0,n.default)(e).subtract(t,"days")}},{key:"getMomentStartOfDay",value:function(e){return(0,n.default)(e).startOf("day")}},{key:"getMomentDate",value:function(e,t){return t?(0,n.default)(e,t):(0,n.default)(e)}},{key:"getDaysFromDateToToday",value:function(e){var t=(0,n.default)(e);return(0,n.default)().diff(t,"days")+1}},{key:"getDateString",value:function(e,t){return(0,n.default)(e).format(t)}},{key:"toDate",value:function(e,t){return(0,n.default)(e,t).toDate()}},{key:"unixToString",value:function(e,t){return n.default.unix(e).utc().format(t)}},{key:"stringToUnix",value:function(e,t){return(0,n.default)(e,t).unix()}},{key:"fromNow",value:function(e,t){return t&&"string"==typeof e?(0,n.default)(e,t).fromNow():n.default.unix(e).fromNow()}},{key:"getTodayString",value:function(e){return(0,n.default)().format(e)}},{key:"getYesterdayString",value:function(e){return(0,n.default)().subtract(1,"day").format(e)}},{key:"getTomorrowString",value:function(e){return(0,n.default)().add(1,"day").format(e)}},{key:"getTimeRange",value:function(e){switch(e){case"today":return this.today();case"tomorrow":return this.tomorrow();case"this_week":return this.thisWeek();case"next_week":return this.nextWeek();case"this_weekend":return this.thisWeekend();default:return}}},{key:"getTimeRangeString",value:function(e){switch(e){case"all":return g.strings("all");case"today":return g.strings("str_today");case"tomorrow":return g.strings("str_tomorrow");case"this_week":return g.strings("str_this_week");case"next_week":return g.strings("str_next_week");case"this_weekend":return g.strings("str_this_weekend");case"custom":return g.strings("str_custom");default:return""}}},{key:"logTimestamp",value:function(){return(0,n.default)().format("HH:mm:ss.SSS")}},{key:"today",value:function(){return{begin:(0,n.default)().startOf("day"),end:(0,n.default)().startOf("day")}}},{key:"tomorrow",value:function(){return{begin:(0,n.default)().add(1,"day"),end:(0,n.default)().add(1,"day")}}},{key:"thisWeek",value:function(){var e=(0,n.default)().weekday(1),t=(0,n.default)().weekday(8);return{begin:e.utc().startOf("day"),end:t.utc().startOf("day")}}},{key:"nextWeek",value:function(){var e=(0,n.default)().weekday(8),t=(0,n.default)().weekday(15);return{begin:e.utc().startOf("day"),end:t.utc().startOf("day")}}},{key:"thisWeekend",value:function(){var e=(0,n.default)().weekday(5),t=(0,n.default)().weekday(8);return{begin:e.utc().startOf("day"),end:t.utc().startOf("day")}}},{key:"nextWeekend",value:function(){var e=(0,n.default)().weekday(12),t=(0,n.default)().weekday(15);return{begin:e.utc().startOf("day"),end:t.utc().startOf("day")}}},{key:"customDateRange",value:function(e,t){return{begin:(0,n.default)(e),end:(0,n.default)(t)}}},{key:"initMomentLocale",value:function(e){0===e.indexOf("ar")?(r(d[4]),n.default.locale("ar")):0===e.indexOf("it")?(r(d[5]),n.default.locale("it")):0===e.indexOf("da")?(r(d[6]),n.default.locale("da")):0===e.indexOf("de")?(r(d[7]),n.default.locale("de")):0===e.indexOf("fr-FR")?(r(d[8]),n.default.locale("fr")):0===e.indexOf("nl-NL")?(r(d[9]),n.default.locale("nl")):0===e.indexOf("es-ES")?(r(d[10]),n.default.locale("es")):0===e.indexOf("ro-RO")?(r(d[11]),n.default.locale("ro")):0===e.indexOf("sv")?(r(d[12]),n.default.locale("sv")):0===e.indexOf("pt-PT")?(r(d[13]),n.default.locale("pt")):0===e.indexOf("pt-BR")?(r(d[14]),n.default.locale("pt-br")):0===e.indexOf("nl-BE")?(r(d[15]),n.default.locale("nl-be")):0===e.indexOf("nn-NO")?(r(d[16]),n.default.locale("nn")):0===e.indexOf("nb-NO")?(r(d[17]),n.default.locale("nb")):0===e.indexOf("sl")?(r(d[18]),n.default.locale("sl")):n.default.locale("en")}},{key:"getClosestEventDate",value:function(e){for(var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Date,l=e.instances.length,f="",s=this.getMomentStartOfDay(n),o=0;o=s)return f+=t.utc().format("ddd, LL");return"The Event is over"}},{key:"getCurrentDateString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,t=String(e.getUTCFullYear()),n=String(e.getUTCMonth()+1),u=String(e.getUTCDate()),l=String(e.getUTCHours()),f=String(e.getUTCMinutes()),s=String(e.getUTCSeconds());return"function"==typeof n.padStart?(n=n.padStart(2,"0"),u=u.padStart(2,"0"),l=l.padStart(2,"0"),f=f.padStart(2,"0"),s=s.padStart(2,"0")):(1===n.length&&(n="0"+n),1===u.length&&(u="0"+u),1===l.length&&(l="0"+l),1===f.length&&(f="0"+f),1===s.length&&(s="0"+s)),t+n+u+l+f+s}},{key:"getDayAndMonthStringByLanguage",value:function(e,t,n){switch(t){case"0":case"1":switch(n){case"1":case"2":case"3":case"4":case"11":case"6":case"7":return u.formatDate(e,"D MMMM");case"5":case"9":case"10":return u.formatDate(e,"D [de] MMMM");case"8":case"12":case"13":return u.formatDate(e,"D[.] MMMM");default:return u.formatDate(e,"MMMM Do")}case"2":case"98":return u.formatDate(e,"MM YYYY");case"4":return u.formatDate(e,"MMMM YYYY");default:return u.formatDate(e,"YYYYMMDD")}}},{key:"getUnixTimestampFromDateTimeString",value:function(e){if(e&&(8===e.length&&(e+="_000000"),14===e.length||15===e.length)){var t="YYYYMMDDHHmmss";return 15===e.length&&(t="YYYYMMDD_HHmmss"),1e3*u.stringToUnix(e+" +0000",t+" Z")}}}]),u})();_e.default=u,u.SECOND_IN_MILLS=1e3,u.MINUTE_IN_MILLS=60*u.SECOND_IN_MILLS,u.HOUR_IN_MILLS=60*u.MINUTE_IN_MILLS,u.DAY_IN_MILLS=24*u.HOUR_IN_MILLS,u.dateFormatter=function(e){if(!e)return"";for(var t="",n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?'+':'':'-')+Math.pow(10,Math.max(0,i)).toString().substr(1)+s}var W=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,C=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,U={},H={};function F(e,t,n,s){var i=s;'string'==typeof s&&(i=function(){return this[s]()}),e&&(H[e]=i),t&&(H[t[0]]=function(){return R(i.apply(this,arguments),t[1],t[2])}),n&&(H[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function L(e){var t,n,s,i=e.match(W);for(t=0,n=i.length;t=0&&C.test(e);)e=e.replace(C,s),C.lastIndex=0,n-=1;return e}var E={};function A(e,t){var n=e.toLowerCase();E[n]=E[n+'s']=E[t]=e}function I(e){return'string'==typeof e?E[e]||E[e.toLowerCase()]:void 0}function j(e){var t,n,s={};for(n in e)u(e,n)&&(t=I(n))&&(s[t]=e[n]);return s}var Z={};function z(e,t){Z[e]=t}function $(e){var t,n=[];for(t in e)u(e,t)&&n.push({unit:t,priority:Z[t]});return n.sort(function(e,t){return e.priority-t.priority}),n}function q(e){return e%4==0&&e%100!=0||e%400==0}function B(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function J(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=B(t)),n}function Q(e,t){return function(n){return null!=n?(K(this,e,n),s.updateOffset(this,t),this):X(this,e)}}function X(e,t){return e.isValid()?e._d['get'+(e._isUTC?'UTC':'')+t]():NaN}function K(e,t,n){e.isValid()&&!isNaN(n)&&('FullYear'===t&&q(e.year())&&1===e.month()&&29===e.date()?(n=J(n),e._d['set'+(e._isUTC?'UTC':'')+t](n,e.month(),Ce(n,e.month()))):e._d['set'+(e._isUTC?'UTC':'')+t](n))}var ee,te=/\d/,ne=/\d\d/,se=/\d{3}/,ie=/\d{4}/,re=/[+-]?\d{6}/,ae=/\d\d?/,oe=/\d\d\d\d?/,ue=/\d\d\d\d\d\d?/,le=/\d{1,3}/,he=/\d{1,4}/,de=/[+-]?\d{1,6}/,ce=/\d+/,fe=/[+-]?\d+/,me=/Z|[+-]\d\d:?\d\d/gi,_e=/Z|[+-]\d\d(?::?\d\d)?/gi,ye=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ge(e,t,n){ee[e]=T(t)?t:function(e,s){return e&&n?n:t}}function we(e,t){return u(ee,e)?ee[e](t._strict,t._locale):new RegExp(pe(e.replace('\\','').replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,s,i){return t||n||s||i})))}function pe(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,'\\$&')}ee={};var ve={};function ke(e,t){var n,s,i=t;for('string'==typeof e&&(e=[e]),d(t)&&(i=function(e,n){n[t]=J(e)}),s=e.length,n=0;n68?1900:2e3)};var Ze=Q('FullYear',!0);function ze(e,t,n,s,i,r,a){var o;return e<100&&e>=0?(o=new Date(e+400,t,n,s,i,r,a),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,s,i,r,a),o}function $e(e){var t,n;return e<100&&e>=0?((n=Array.prototype.slice.call(arguments))[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function qe(e,t,n){var s=7+t-n;return-((7+$e(e,0,s).getUTCDay()-t)%7)+s-1}function Be(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+qe(e,s,i);return o<=0?a=je(r=e-1)+o:o>je(e)?(r=e+1,a=o-je(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Je(e,t,n){var s,i,r=qe(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+Qe(i=e.year()-1,t,n):a>Qe(e.year(),t,n)?(s=a-Qe(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function Qe(e,t,n){var s=qe(e,t,n),i=qe(e+1,t,n);return(je(e)-s+i)/7}F('w',['ww',2],'wo','week'),F('W',['WW',2],'Wo','isoWeek'),A('week','w'),A('isoWeek','W'),z('week',5),z('isoWeek',5),ge('w',ae),ge('ww',ae,ne),ge('W',ae),ge('WW',ae,ne),Me(['w','ww','W','WW'],function(e,t,n,s){t[s.substr(0,1)]=J(e)});function Xe(e,t){return'string'!=typeof e?e:isNaN(e)?'number'==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}function Ke(e,t){return'string'==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function et(e,t){return e.slice(t,7).concat(e.slice(0,t))}F('d',0,'do','day'),F('dd',0,0,function(e){return this.localeData().weekdaysMin(this,e)}),F('ddd',0,0,function(e){return this.localeData().weekdaysShort(this,e)}),F('dddd',0,0,function(e){return this.localeData().weekdays(this,e)}),F('e',0,0,'weekday'),F('E',0,0,'isoWeekday'),A('day','d'),A('weekday','e'),A('isoWeekday','E'),z('day',11),z('weekday',11),z('isoWeekday',11),ge('d',ae),ge('e',ae),ge('E',ae),ge('dd',function(e,t){return t.weekdaysMinRegex(e)}),ge('ddd',function(e,t){return t.weekdaysShortRegex(e)}),ge('dddd',function(e,t){return t.weekdaysRegex(e)}),Me(['dd','ddd','dddd'],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:y(n).invalidWeekday=e}),Me(['d','e','E'],function(e,t,n,s){t[s]=J(e)});var tt='Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),nt='Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),st='Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),it=ye,rt=ye,at=ye;function ot(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],s=0;s<7;++s)r=_([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,'').toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,'').toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,'').toLocaleLowerCase();return n?'dddd'===t?-1!==(i=Se.call(this._weekdaysParse,a))?i:null:'ddd'===t?-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:null:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:'dddd'===t?-1!==(i=Se.call(this._weekdaysParse,a))?i:-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:'ddd'===t?-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:-1!==(i=Se.call(this._weekdaysParse,a))?i:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:null:-1!==(i=Se.call(this._minWeekdaysParse,a))?i:-1!==(i=Se.call(this._weekdaysParse,a))?i:-1!==(i=Se.call(this._shortWeekdaysParse,a))?i:null}function ut(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=_([2e3,1]).day(t),s=pe(this.weekdaysMin(n,'')),i=pe(this.weekdaysShort(n,'')),r=pe(this.weekdays(n,'')),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=new RegExp('^('+l.join('|')+')','i'),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp('^('+u.join('|')+')','i'),this._weekdaysShortStrictRegex=new RegExp('^('+o.join('|')+')','i'),this._weekdaysMinStrictRegex=new RegExp('^('+a.join('|')+')','i')}function lt(){return this.hours()%12||12}function ht(e,t){F(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function dt(e,t){return t._meridiemParse}F('H',['HH',2],0,'hour'),F('h',['hh',2],0,lt),F('k',['kk',2],0,function(){return this.hours()||24}),F('hmm',0,0,function(){return''+lt.apply(this)+R(this.minutes(),2)}),F('hmmss',0,0,function(){return''+lt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)}),F('Hmm',0,0,function(){return''+this.hours()+R(this.minutes(),2)}),F('Hmmss',0,0,function(){return''+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)}),ht('a',!0),ht('A',!1),A('hour','h'),z('hour',13),ge('a',dt),ge('A',dt),ge('H',ae),ge('h',ae),ge('k',ae),ge('HH',ae,ne),ge('hh',ae,ne),ge('kk',ae,ne),ge('hmm',oe),ge('hmmss',ue),ge('Hmm',oe),ge('Hmmss',ue),ke(['H','HH'],xe),ke(['k','kk'],function(e,t,n){var s=J(e);t[xe]=24===s?0:s}),ke(['a','A'],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),ke(['h','hh'],function(e,t,n){t[xe]=J(e),y(n).bigHour=!0}),ke('hmm',function(e,t,n){var s=e.length-2;t[xe]=J(e.substr(0,s)),t[Te]=J(e.substr(s)),y(n).bigHour=!0}),ke('hmmss',function(e,t,n){var s=e.length-4,i=e.length-2;t[xe]=J(e.substr(0,s)),t[Te]=J(e.substr(s,2)),t[Ne]=J(e.substr(i)),y(n).bigHour=!0}),ke('Hmm',function(e,t,n){var s=e.length-2;t[xe]=J(e.substr(0,s)),t[Te]=J(e.substr(s))}),ke('Hmmss',function(e,t,n){var s=e.length-4,i=e.length-2;t[xe]=J(e.substr(0,s)),t[Te]=J(e.substr(s,2)),t[Ne]=J(e.substr(i))});var ct=Q('Hours',!0);var ft,mt={calendar:{sameDay:'[Today at] LT',nextDay:'[Tomorrow at] LT',nextWeek:'dddd [at] LT',lastDay:'[Yesterday at] LT',lastWeek:'[Last] dddd [at] LT',sameElse:'L'},longDateFormat:{LTS:'h:mm:ss A',LT:'h:mm A',L:'MM/DD/YYYY',LL:'MMMM D, YYYY',LLL:'MMMM D, YYYY h:mm A',LLLL:'dddd, MMMM D, YYYY h:mm A'},invalidDate:'Invalid date',ordinal:'%d',dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:'in %s',past:'%s ago',s:'a few seconds',ss:'%d seconds',m:'a minute',mm:'%d minutes',h:'an hour',hh:'%d hours',d:'a day',dd:'%d days',w:'a week',ww:'%d weeks',M:'a month',MM:'%d months',y:'a year',yy:'%d years'},months:Ue,monthsShort:He,week:{dow:0,doy:6},weekdays:tt,weekdaysMin:st,weekdaysShort:nt,meridiemParse:/[ap]\.?m?\.?/i},_t={},yt={};function gt(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n0;){if(s=kt(i.slice(0,t).join('-')))return s;if(n&&n.length>=t&>(i,n)>=t-1)break;t--}r++}return ft}function vt(e){return null!=e.match('^[^/\\\\]*$')}function kt(e){var n=null;if(void 0===_t[e]&&void 0!==i&&i&&i.exports&&vt(e))try{n=ft._abbr,t('./locale/'+e),Mt(n)}catch(t){_t[e]=null}return _t[e]}function Mt(e,t){var n;return e&&((n=h(t)?St(e):Dt(e,t))?ft=n:'undefined'!=typeof console&&console.warn&&console.warn('Locale '+e+' not found. Did you forget to load it?')),ft._abbr}function Dt(e,t){if(null!==t){var n,s=mt;if(t.abbr=e,null!=_t[e])x('defineLocaleOverride',"use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=_t[e]._config;else if(null!=t.parentLocale)if(null!=_t[t.parentLocale])s=_t[t.parentLocale]._config;else{if(null==(n=kt(t.parentLocale)))return yt[t.parentLocale]||(yt[t.parentLocale]=[]),yt[t.parentLocale].push({name:e,config:t}),null;s=n._config}return _t[e]=new P(N(s,t)),yt[e]&&yt[e].forEach(function(e){Dt(e.name,e.config)}),Mt(e),_t[e]}return delete _t[e],null}function St(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ft;if(!r(e)){if(t=kt(e))return t;e=[e]}return pt(e)}function Yt(e){var t,n=e._a;return n&&-2===y(e).overflow&&(t=n[Oe]<0||n[Oe]>11?Oe:n[be]<1||n[be]>Ce(n[Ye],n[Oe])?be:n[xe]<0||n[xe]>24||24===n[xe]&&(0!==n[Te]||0!==n[Ne]||0!==n[Pe])?xe:n[Te]<0||n[Te]>59?Te:n[Ne]<0||n[Ne]>59?Ne:n[Pe]<0||n[Pe]>999?Pe:-1,y(e)._overflowDayOfYear&&(tbe)&&(t=be),y(e)._overflowWeeks&&-1===t&&(t=Re),y(e)._overflowWeekday&&-1===t&&(t=We),y(e).overflow=t),e}var Ot=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,bt=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,xt=/Z|[+-]\d\d(?::?\d\d)?/,Tt=[['YYYYYY-MM-DD',/[+-]\d{6}-\d\d-\d\d/],['YYYY-MM-DD',/\d{4}-\d\d-\d\d/],['GGGG-[W]WW-E',/\d{4}-W\d\d-\d/],['GGGG-[W]WW',/\d{4}-W\d\d/,!1],['YYYY-DDD',/\d{4}-\d{3}/],['YYYY-MM',/\d{4}-\d\d/,!1],['YYYYYYMMDD',/[+-]\d{10}/],['YYYYMMDD',/\d{8}/],['GGGG[W]WWE',/\d{4}W\d{3}/],['GGGG[W]WW',/\d{4}W\d{2}/,!1],['YYYYDDD',/\d{7}/],['YYYYMM',/\d{6}/,!1],['YYYY',/\d{4}/,!1]],Nt=[['HH:mm:ss.SSSS',/\d\d:\d\d:\d\d\.\d+/],['HH:mm:ss,SSSS',/\d\d:\d\d:\d\d,\d+/],['HH:mm:ss',/\d\d:\d\d:\d\d/],['HH:mm',/\d\d:\d\d/],['HHmmss.SSSS',/\d\d\d\d\d\d\.\d+/],['HHmmss,SSSS',/\d\d\d\d\d\d,\d+/],['HHmmss',/\d\d\d\d\d\d/],['HHmm',/\d\d\d\d/],['HH',/\d\d/]],Pt=/^\/?Date\((-?\d+)/i,Rt=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Wt={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ct(e){var t,n,s,i,r,a,o=e._i,u=Ot.exec(o)||bt.exec(o),l=Tt.length,h=Nt.length;if(u){for(y(e).iso=!0,t=0,n=l;tje(r)||0===e._dayOfYear)&&(y(e)._overflowDayOfYear=!0),n=$e(r,0,e._dayOfYear),e._a[Oe]=n.getUTCMonth(),e._a[be]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=a[t]=s[t];for(;t<7;t++)e._a[t]=a[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[xe]&&0===e._a[Te]&&0===e._a[Ne]&&0===e._a[Pe]&&(e._nextDay=!0,e._a[xe]=0),e._d=(e._useUTC?$e:ze).apply(null,a),i=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[xe]=24),e._w&&void 0!==e._w.d&&e._w.d!==i&&(y(e).weekdayMismatch=!0)}}function It(e){var t,n,s,i,r,a,o,u,l;null!=(t=e._w).GG||null!=t.W||null!=t.E?(r=1,a=4,n=Gt(t.GG,e._a[Ye],Je(Qt(),1,4).year),s=Gt(t.W,1),((i=Gt(t.E,1))<1||i>7)&&(u=!0)):(r=e._locale._week.dow,a=e._locale._week.doy,l=Je(Qt(),r,a),n=Gt(t.gg,e._a[Ye],l.year),s=Gt(t.w,l.week),null!=t.d?((i=t.d)<0||i>6)&&(u=!0):null!=t.e?(i=t.e+r,(t.e<0||t.e>6)&&(u=!0)):i=r),s<1||s>Qe(n,r,a)?y(e)._overflowWeeks=!0:null!=u?y(e)._overflowWeekday=!0:(o=Be(n,s,i,r,a),e._a[Ye]=o.year,e._dayOfYear=o.dayOfYear)}function jt(e){if(e._f!==s.ISO_8601)if(e._f!==s.RFC_2822){e._a=[],y(e).empty=!0;var t,n,i,r,a,o,u,l=''+e._i,h=l.length,d=0;for(u=(i=G(e._f,e._locale).match(W)||[]).length,t=0;t0&&y(e).unusedInput.push(a),l=l.slice(l.indexOf(n)+n.length),d+=n.length),H[r]?(n?y(e).empty=!1:y(e).unusedTokens.push(r),De(r,n,e)):e._strict&&!n&&y(e).unusedTokens.push(r);y(e).charsLeftOver=h-d,l.length>0&&y(e).unusedInput.push(l),e._a[xe]<=12&&!0===y(e).bigHour&&e._a[xe]>0&&(y(e).bigHour=void 0),y(e).parsedDateParts=e._a.slice(0),y(e).meridiem=e._meridiem,e._a[xe]=Zt(e._locale,e._a[xe],e._meridiem),null!==(o=y(e).era)&&(e._a[Ye]=e._locale.erasConvertYear(o,e._a[Ye])),At(e),Yt(e)}else Lt(e);else Ct(e)}function Zt(e,t,n){var s;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?((s=e.isPM(n))&&t<12&&(t+=12),s||12!==t||(t=0),t):t}function zt(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u)return y(e).invalidFormat=!0,void(e._d=new Date(NaN));for(i=0;ithis?this:e:w()});function en(e,t){var n,s;if(1===t.length&&r(t[0])&&(t=t[0]),!t.length)return Qt();for(n=t[0],s=1;s=0?new Date(e+400,t,n)-Un:new Date(e,t,n).valueOf()}function Ln(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Un:Date.UTC(e,t,n)}function Vn(e,t){return t.erasAbbrRegex(e)}function Gn(){var e,t,n=[],s=[],i=[],r=[],a=this.eras();for(e=0,t=a.length;e(r=Qe(e,s,i))&&(t=r),In.call(this,e,t,n,s,i))}function In(e,t,n,s,i){var r=Be(e,t,n,s,i),a=$e(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}F('N',0,0,'eraAbbr'),F('NN',0,0,'eraAbbr'),F('NNN',0,0,'eraAbbr'),F('NNNN',0,0,'eraName'),F('NNNNN',0,0,'eraNarrow'),F('y',['y',1],'yo','eraYear'),F('y',['yy',2],0,'eraYear'),F('y',['yyy',3],0,'eraYear'),F('y',['yyyy',4],0,'eraYear'),ge('N',Vn),ge('NN',Vn),ge('NNN',Vn),ge('NNNN',function(e,t){return t.erasNameRegex(e)}),ge('NNNNN',function(e,t){return t.erasNarrowRegex(e)}),ke(['N','NN','NNN','NNNN','NNNNN'],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?y(n).era=i:y(n).invalidEra=e}),ge('y',ce),ge('yy',ce),ge('yyy',ce),ge('yyyy',ce),ge('yo',function(e,t){return t._eraYearOrdinalRegex||ce}),ke(['y','yy','yyy','yyyy'],Ye),ke(['yo'],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Ye]=n._locale.eraYearOrdinalParse(e,i):t[Ye]=parseInt(e,10)}),F(0,['gg',2],0,function(){return this.weekYear()%100}),F(0,['GG',2],0,function(){return this.isoWeekYear()%100}),En('gggg','weekYear'),En('ggggg','weekYear'),En('GGGG','isoWeekYear'),En('GGGGG','isoWeekYear'),A('weekYear','gg'),A('isoWeekYear','GG'),z('weekYear',1),z('isoWeekYear',1),ge('G',fe),ge('g',fe),ge('GG',ae,ne),ge('gg',ae,ne),ge('GGGG',he,ie),ge('gggg',he,ie),ge('GGGGG',de,re),ge('ggggg',de,re),Me(['gggg','ggggg','GGGG','GGGGG'],function(e,t,n,s){t[s.substr(0,2)]=J(e)}),Me(['gg','GG'],function(e,t,n,i){t[i]=s.parseTwoDigitYear(e)}),F('Q',0,'Qo','quarter'),A('quarter','Q'),z('quarter',7),ge('Q',te),ke('Q',function(e,t){t[Oe]=3*(J(e)-1)}),F('D',['DD',2],'Do','date'),A('date','D'),z('date',9),ge('D',ae),ge('DD',ae,ne),ge('Do',function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),ke(['D','DD'],be),ke('Do',function(e,t){t[be]=J(e.match(ae)[0])});var jn=Q('Date',!0);F('DDD',['DDDD',3],'DDDo','dayOfYear'),A('dayOfYear','DDD'),z('dayOfYear',4),ge('DDD',le),ge('DDDD',se),ke(['DDD','DDDD'],function(e,t,n){n._dayOfYear=J(e)}),F('m',['mm',2],0,'minute'),A('minute','m'),z('minute',14),ge('m',ae),ge('mm',ae,ne),ke(['m','mm'],Te);var Zn=Q('Minutes',!1);F('s',['ss',2],0,'second'),A('second','s'),z('second',15),ge('s',ae),ge('ss',ae,ne),ke(['s','ss'],Ne);var zn,$n,qn=Q('Seconds',!1);for(F('S',0,0,function(){return~~(this.millisecond()/100)}),F(0,['SS',2],0,function(){return~~(this.millisecond()/10)}),F(0,['SSS',3],0,'millisecond'),F(0,['SSSS',4],0,function(){return 10*this.millisecond()}),F(0,['SSSSS',5],0,function(){return 100*this.millisecond()}),F(0,['SSSSSS',6],0,function(){return 1e3*this.millisecond()}),F(0,['SSSSSSS',7],0,function(){return 1e4*this.millisecond()}),F(0,['SSSSSSSS',8],0,function(){return 1e5*this.millisecond()}),F(0,['SSSSSSSSS',9],0,function(){return 1e6*this.millisecond()}),A('millisecond','ms'),z('millisecond',16),ge('S',le,te),ge('SS',le,ne),ge('SSS',le,se),zn='SSSS';zn.length<=9;zn+='S')ge(zn,ce);function Bn(e,t){t[Pe]=J(1e3*('0.'+e))}for(zn='S';zn.length<=9;zn+='S')ke(zn,Bn);$n=Q('Milliseconds',!1),F('z',0,0,'zoneAbbr'),F('zz',0,0,'zoneName');var Jn=M.prototype;function Qn(e){return e}Jn.add=Mn,Jn.calendar=function(e,t){var n;1===arguments.length&&(arguments[0]?D(n=arguments[0])||c(n)||Sn(n)||d(n)||On(n)||Yn(n)||null===n||void 0===n?(e=arguments[0],t=void 0):bn(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var i=e||Qt(),r=dn(i,this).startOf('day'),a=s.calendarFormat(this,r)||'sameElse',o=t&&(T(t[a])?t[a].call(this,i):t[a]);return this.format(o||this.localeData().calendar(a,this,Qt(i)))},Jn.clone=function(){return new M(this)},Jn.diff=function(e,t,n){var s,i,r;if(!this.isValid())return NaN;if(!(s=dn(e,this)).isValid())return NaN;switch(i=6e4*(s.utcOffset()-this.utcOffset()),t=I(t)){case'year':r=xn(this,s)/12;break;case'month':r=xn(this,s);break;case'quarter':r=xn(this,s)/3;break;case'second':r=(this-s)/1e3;break;case'minute':r=(this-s)/6e4;break;case'hour':r=(this-s)/36e5;break;case'day':r=(this-s-i)/864e5;break;case'week':r=(this-s-i)/6048e5;break;default:r=this-s}return n?r:B(r)},Jn.endOf=function(e){var t,n;if(void 0===(e=I(e))||'millisecond'===e||!this.isValid())return this;switch(n=this._isUTC?Ln:Fn,e){case'year':t=n(this.year()+1,0,1)-1;break;case'quarter':t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case'month':t=n(this.year(),this.month()+1,1)-1;break;case'week':t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case'isoWeek':t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case'day':case'date':t=n(this.year(),this.month(),this.date()+1)-1;break;case'hour':t=this._d.valueOf(),t+=Cn-Hn(t+(this._isUTC?0:this.utcOffset()*Wn),Cn)-1;break;case'minute':t=this._d.valueOf(),t+=Wn-Hn(t,Wn)-1;break;case'second':t=this._d.valueOf(),t+=Rn-Hn(t,Rn)-1}return this._d.setTime(t),s.updateOffset(this,!0),this},Jn.format=function(e){e||(e=this.isUtc()?s.defaultFormatUtc:s.defaultFormat);var t=V(this,e);return this.localeData().postformat(t)},Jn.from=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||Qt(e).isValid())?yn({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Jn.fromNow=function(e){return this.from(Qt(),e)},Jn.to=function(e,t){return this.isValid()&&(D(e)&&e.isValid()||Qt(e).isValid())?yn({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Jn.toNow=function(e){return this.to(Qt(),e)},Jn.get=function(e){return T(this[e=I(e)])?this[e]():this},Jn.invalidAt=function(){return y(this).overflow},Jn.isAfter=function(e,t){var n=D(e)?e:Qt(e);return!(!this.isValid()||!n.isValid())&&('millisecond'===(t=I(t)||'millisecond')?this.valueOf()>n.valueOf():n.valueOf()9999?V(n,t?'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'):T(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace('Z',V(n,'Z')):V(n,t?'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]':'YYYY-MM-DD[T]HH:mm:ss.SSSZ')},Jn.inspect=function(){if(!this.isValid())return'moment.invalid(/* '+this._i+' */)';var e,t,n,s='moment',i='';return this.isLocal()||(s=0===this.utcOffset()?'moment.utc':'moment.parseZone',i='Z'),e='['+s+'("]',t=0<=this.year()&&this.year()<=9999?'YYYY':'YYYYYY',n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},'undefined'!=typeof Symbol&&null!=Symbol.for&&(Jn[Symbol.for('nodejs.util.inspect.custom')]=function(){return'Moment<'+this.format()+'>'}),Jn.toJSON=function(){return this.isValid()?this.toISOString():null},Jn.toString=function(){return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ')},Jn.unix=function(){return Math.floor(this.valueOf()/1e3)},Jn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Jn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Jn.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;ethis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Jn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Jn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Jn.isUtc=fn,Jn.isUTC=fn,Jn.zoneAbbr=function(){return this._isUTC?'UTC':''},Jn.zoneName=function(){return this._isUTC?'Coordinated Universal Time':''},Jn.dates=Y('dates accessor is deprecated. Use date instead.',jn),Jn.months=Y('months accessor is deprecated. Use month instead',Ae),Jn.years=Y('years accessor is deprecated. Use year instead',Ze),Jn.zone=Y('moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',function(e,t){return null!=e?('string'!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),Jn.isDSTShifted=Y('isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',function(){if(!h(this._isDSTShifted))return this._isDSTShifted;var e,t={};return k(t,this),(t=qt(t))._a?(e=t._isUTC?_(t._a):Qt(t._a),this._isDSTShifted=this.isValid()&&on(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Xn=P.prototype;function Kn(e,t,n,s){var i=St(),r=_().set(s,t);return i[n](r,e)}function es(e,t,n){if(d(e)&&(t=e,e=void 0),e=e||'',null!=t)return Kn(e,t,n,'month');var s,i=[];for(s=0;s<12;s++)i[s]=Kn(e,s,n,'month');return i}function ts(e,t,n,s){'boolean'==typeof e?(d(t)&&(n=t,t=void 0),t=t||''):(n=t=e,e=!1,d(t)&&(n=t,t=void 0),t=t||'');var i,r=St(),a=e?r._week.dow:0,o=[];if(null!=n)return Kn(t,(n+a)%7,s,'day');for(i=0;i<7;i++)o[i]=Kn(t,(i+a)%7,s,'day');return o}Xn.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return T(s)?s.call(t,n):s},Xn.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(W).map(function(e){return'MMMM'===e||'MM'===e||'DD'===e||'dddd'===e?e.slice(1):e}).join(''),this._longDateFormat[e])},Xn.invalidDate=function(){return this._invalidDate},Xn.ordinal=function(e){return this._ordinal.replace('%d',e)},Xn.preparse=Qn,Xn.postformat=Qn,Xn.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return T(i)?i(e,t,n,s):i.replace(/%d/i,e)},Xn.pastFuture=function(e,t){var n=this._relativeTime[e>0?'future':'past'];return T(n)?n(t):n.replace(/%s/i,t)},Xn.set=function(e){var t,n;for(n in e)u(e,n)&&(T(t=e[n])?this[n]=t:this['_'+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+'|'+/\d{1,2}/.source)},Xn.eras=function(e,t){var n,i,r,a=this._eras||St('en')._eras;for(n=0,i=a.length;n=0)return u[s]},Xn.erasConvertYear=function(e,t){var n=e.since<=e.until?1:-1;return void 0===t?s(e.since).year():s(e.since).year()+(t-e.offset)*n},Xn.erasAbbrRegex=function(e){return u(this,'_erasAbbrRegex')||Gn.call(this),e?this._erasAbbrRegex:this._erasRegex},Xn.erasNameRegex=function(e){return u(this,'_erasNameRegex')||Gn.call(this),e?this._erasNameRegex:this._erasRegex},Xn.erasNarrowRegex=function(e){return u(this,'_erasNarrowRegex')||Gn.call(this),e?this._erasNarrowRegex:this._erasRegex},Xn.months=function(e,t){return e?r(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||Fe).test(t)?'format':'standalone'][e.month()]:r(this._months)?this._months:this._months.standalone},Xn.monthsShort=function(e,t){return e?r(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[Fe.test(t)?'format':'standalone'][e.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Xn.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return Ge.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=_([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=new RegExp('^'+this.months(i,'').replace('.','')+'$','i'),this._shortMonthsParse[s]=new RegExp('^'+this.monthsShort(i,'').replace('.','')+'$','i')),n||this._monthsParse[s]||(r='^'+this.months(i,'')+'|^'+this.monthsShort(i,''),this._monthsParse[s]=new RegExp(r.replace('.',''),'i')),n&&'MMMM'===t&&this._longMonthsParse[s].test(e))return s;if(n&&'MMM'===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},Xn.monthsRegex=function(e){return this._monthsParseExact?(u(this,'_monthsRegex')||Ie.call(this),e?this._monthsStrictRegex:this._monthsRegex):(u(this,'_monthsRegex')||(this._monthsRegex=Ve),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},Xn.monthsShortRegex=function(e){return this._monthsParseExact?(u(this,'_monthsRegex')||Ie.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,'_monthsShortRegex')||(this._monthsShortRegex=Le),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},Xn.week=function(e){return Je(e,this._week.dow,this._week.doy).week},Xn.firstDayOfYear=function(){return this._week.doy},Xn.firstDayOfWeek=function(){return this._week.dow},Xn.weekdays=function(e,t){var n=r(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?'format':'standalone'];return!0===e?et(n,this._week.dow):e?n[e.day()]:n},Xn.weekdaysMin=function(e){return!0===e?et(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},Xn.weekdaysShort=function(e){return!0===e?et(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},Xn.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return ot.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=_([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=new RegExp('^'+this.weekdays(i,'').replace('.','\\.?')+'$','i'),this._shortWeekdaysParse[s]=new RegExp('^'+this.weekdaysShort(i,'').replace('.','\\.?')+'$','i'),this._minWeekdaysParse[s]=new RegExp('^'+this.weekdaysMin(i,'').replace('.','\\.?')+'$','i')),this._weekdaysParse[s]||(r='^'+this.weekdays(i,'')+'|^'+this.weekdaysShort(i,'')+'|^'+this.weekdaysMin(i,''),this._weekdaysParse[s]=new RegExp(r.replace('.',''),'i')),n&&'dddd'===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&'ddd'===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&'dd'===t&&this._minWeekdaysParse[s].test(e))return s;if(!n&&this._weekdaysParse[s].test(e))return s}},Xn.weekdaysRegex=function(e){return this._weekdaysParseExact?(u(this,'_weekdaysRegex')||ut.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,'_weekdaysRegex')||(this._weekdaysRegex=it),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},Xn.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(u(this,'_weekdaysRegex')||ut.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,'_weekdaysShortRegex')||(this._weekdaysShortRegex=rt),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Xn.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(u(this,'_weekdaysRegex')||ut.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,'_weekdaysMinRegex')||(this._weekdaysMinRegex=at),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Xn.isPM=function(e){return'p'===(e+'').toLowerCase().charAt(0)},Xn.meridiem=function(e,t,n){return e>11?n?'pm':'PM':n?'am':'AM'},Mt('en',{eras:[{since:'0001-01-01',until:1/0,offset:1,name:'Anno Domini',narrow:'AD',abbr:'AD'},{since:'0000-12-31',until:-1/0,offset:1,name:'Before Christ',narrow:'BC',abbr:'BC'}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===J(e%100/10)?'th':1===t?'st':2===t?'nd':3===t?'rd':'th')}}),s.lang=Y('moment.lang is deprecated. Use moment.locale instead.',Mt),s.langData=Y('moment.langData is deprecated. Use moment.localeData instead.',St);var ns=Math.abs;function ss(e,t,n,s){var i=yn(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function is(e){return e<0?Math.floor(e):Math.ceil(e)}function rs(e){return 4800*e/146097}function as(e){return 146097*e/4800}function os(e){return function(){return this.as(e)}}var us=os('ms'),ls=os('s'),hs=os('m'),ds=os('h'),cs=os('d'),fs=os('w'),ms=os('M'),_s=os('Q'),ys=os('y');function gs(e){return function(){return this.isValid()?this._data[e]:NaN}}var ws=gs('milliseconds'),ps=gs('seconds'),vs=gs('minutes'),ks=gs('hours'),Ms=gs('days'),Ds=gs('months'),Ss=gs('years');var Ys=Math.round,Os={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function bs(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}function xs(e,t,n,s){var i=yn(e).abs(),r=Ys(i.as('s')),a=Ys(i.as('m')),o=Ys(i.as('h')),u=Ys(i.as('d')),l=Ys(i.as('M')),h=Ys(i.as('w')),d=Ys(i.as('y')),c=r<=n.ss&&['s',r]||r0,c[4]=s,bs.apply(null,c)}var Ts=Math.abs;function Ns(e){return(e>0)-(e<0)||+e}function Ps(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=Ts(this._milliseconds)/1e3,l=Ts(this._days),h=Ts(this._months),d=this.asSeconds();return d?(t=B((e=B(u/60))/60),u%=60,e%=60,n=B(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,''):'',i=d<0?'-':'',r=Ns(this._months)!==Ns(d)?'-':'',a=Ns(this._days)!==Ns(d)?'-':'',o=Ns(this._milliseconds)!==Ns(d)?'-':'',i+'P'+(n?r+n+'Y':'')+(h?r+h+'M':'')+(l?a+l+'D':'')+(t||e||u?'T':'')+(t?o+t+'H':'')+(e?o+e+'M':'')+(u?o+s+'S':'')):'P0D'}var Rs=sn.prototype;return Rs.isValid=function(){return this._isValid},Rs.abs=function(){var e=this._data;return this._milliseconds=ns(this._milliseconds),this._days=ns(this._days),this._months=ns(this._months),e.milliseconds=ns(e.milliseconds),e.seconds=ns(e.seconds),e.minutes=ns(e.minutes),e.hours=ns(e.hours),e.months=ns(e.months),e.years=ns(e.years),this},Rs.add=function(e,t){return ss(this,e,t,1)},Rs.subtract=function(e,t){return ss(this,e,t,-1)},Rs.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if('month'===(e=I(e))||'quarter'===e||'year'===e)switch(t=this._days+s/864e5,n=this._months+rs(t),e){case'month':return n;case'quarter':return n/3;case'year':return n/12}else switch(t=this._days+Math.round(as(this._months)),e){case'week':return t/7+s/6048e5;case'day':return t+s/864e5;case'hour':return 24*t+s/36e5;case'minute':return 1440*t+s/6e4;case'second':return 86400*t+s/1e3;case'millisecond':return Math.floor(864e5*t)+s;default:throw new Error('Unknown unit '+e)}},Rs.asMilliseconds=us,Rs.asSeconds=ls,Rs.asMinutes=hs,Rs.asHours=ds,Rs.asDays=cs,Rs.asWeeks=fs,Rs.asMonths=ms,Rs.asQuarters=_s,Rs.asYears=ys,Rs.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*J(this._months/12):NaN},Rs._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*is(as(o)+a),a=0,o=0),u.milliseconds=r%1e3,e=B(r/1e3),u.seconds=e%60,t=B(e/60),u.minutes=t%60,n=B(t/60),u.hours=n%24,o+=i=B(rs(a+=B(n/24))),a-=is(as(i)),s=B(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},Rs.clone=function(){return yn(this)},Rs.get=function(e){return e=I(e),this.isValid()?this[e+'s']():NaN},Rs.milliseconds=ws,Rs.seconds=ps,Rs.minutes=vs,Rs.hours=ks,Rs.days=Ms,Rs.weeks=function(){return B(this.days()/7)},Rs.months=Ds,Rs.years=Ss,Rs.humanize=function(e,n){if(!this.isValid())return this.localeData().invalidDate();var s,i,r=!1,o=Os;return'object'==typeof e&&(n=e,e=!1),'boolean'==typeof e&&(r=e),'object'==typeof n&&(o=t(a[0])({},Os,n),null!=n.s&&null==n.ss&&(o.ss=n.s-1)),i=xs(this,!r,o,s=this.localeData()),r&&(i=s.pastFuture(+this,i)),s.postformat(i)},Rs.toISOString=Ps,Rs.toString=Ps,Rs.toJSON=Ps,Rs.locale=Tn,Rs.localeData=Pn,Rs.toIsoString=Y('toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',Ps),Rs.lang=Nn,F('X',0,0,'unix'),F('x',0,0,'valueOf'),ge('x',fe),ge('X',/[+-]?\d+(\.\d{1,3})?/),ke('X',function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),ke('x',function(e,t,n){n._d=new Date(J(e))}),s.version='2.29.4',e=Qt,s.fn=Jn,s.min=function(){return en('isBefore',[].slice.call(arguments,0))},s.max=function(){return en('isAfter',[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=_,s.unix=function(e){return Qt(1e3*e)},s.months=function(e,t){return es(e,t,'months')},s.isDate=c,s.locale=Mt,s.invalid=w,s.duration=yn,s.isMoment=D,s.weekdays=function(e,t,n){return ts(e,t,n,'weekdays')},s.parseZone=function(){return Qt.apply(null,arguments).parseZone()},s.localeData=St,s.isDuration=rn,s.monthsShort=function(e,t){return es(e,t,'monthsShort')},s.weekdaysMin=function(e,t,n){return ts(e,t,n,'weekdaysMin')},s.defineLocale=Dt,s.updateLocale=function(e,t){if(null!=t){var n,s,i=mt;null!=_t[e]&&null!=_t[e].parentLocale?_t[e].set(N(_t[e]._config,t)):(null!=(s=kt(e))&&(i=s._config),t=N(i,t),null==s&&(t.abbr=e),(n=new P(t)).parentLocale=_t[e],_t[e]=n),Mt(e)}else null!=_t[e]&&(null!=_t[e].parentLocale?(_t[e]=_t[e].parentLocale,e===Mt()&&Mt(e)):null!=_t[e]&&delete _t[e]);return _t[e]},s.locales=function(){return O(_t)},s.weekdaysShort=function(e,t,n){return ts(e,t,n,'weekdaysShort')},s.normalizeUnits=I,s.relativeTimeRounding=function(e){return void 0===e?Ys:'function'==typeof e&&(Ys=e,!0)},s.relativeTimeThreshold=function(e,t){return void 0!==Os[e]&&(void 0===t?Os[e]:(Os[e]=t,'s'===e&&(Os.ss=t-1),!0))},s.calendarFormat=function(e,t){var n=e.diff(t,'days',!0);return n<-6?'sameElse':n<-1?'lastWeek':n<0?'lastDay':n<1?'sameDay':n<2?'nextDay':n<7?'nextWeek':'sameElse'},s.prototype=Jn,s.HTML5_FMT={DATETIME_LOCAL:'YYYY-MM-DDTHH:mm',DATETIME_LOCAL_SECONDS:'YYYY-MM-DDTHH:mm:ss',DATETIME_LOCAL_MS:'YYYY-MM-DDTHH:mm:ss.SSS',DATE:'YYYY-MM-DD',TIME:'HH:mm',TIME_SECONDS:'HH:mm:ss',TIME_MS:'HH:mm:ss.SSS',WEEK:'GGGG-[W]WW',MONTH:'YYYY-MM'},s})},526,[6]); -__d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){'use strict';var n={1:'\u0661',2:'\u0662',3:'\u0663',4:'\u0664',5:'\u0665',6:'\u0666',7:'\u0667',8:'\u0668',9:'\u0669',0:'\u0660'},s={'\u0661':'1','\u0662':'2','\u0663':'3','\u0664':'4','\u0665':'5','\u0666':'6','\u0667':'7','\u0668':'8','\u0669':'9','\u0660':'0'},o=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},u={s:['\u0623\u0642\u0644 \u0645\u0646 \u062b\u0627\u0646\u064a\u0629','\u062b\u0627\u0646\u064a\u0629 \u0648\u0627\u062d\u062f\u0629',['\u062b\u0627\u0646\u064a\u062a\u0627\u0646','\u062b\u0627\u0646\u064a\u062a\u064a\u0646'],'%d \u062b\u0648\u0627\u0646','%d \u062b\u0627\u0646\u064a\u0629','%d \u062b\u0627\u0646\u064a\u0629'],m:['\u0623\u0642\u0644 \u0645\u0646 \u062f\u0642\u064a\u0642\u0629','\u062f\u0642\u064a\u0642\u0629 \u0648\u0627\u062d\u062f\u0629',['\u062f\u0642\u064a\u0642\u062a\u0627\u0646','\u062f\u0642\u064a\u0642\u062a\u064a\u0646'],'%d \u062f\u0642\u0627\u0626\u0642','%d \u062f\u0642\u064a\u0642\u0629','%d \u062f\u0642\u064a\u0642\u0629'],h:['\u0623\u0642\u0644 \u0645\u0646 \u0633\u0627\u0639\u0629','\u0633\u0627\u0639\u0629 \u0648\u0627\u062d\u062f\u0629',['\u0633\u0627\u0639\u062a\u0627\u0646','\u0633\u0627\u0639\u062a\u064a\u0646'],'%d \u0633\u0627\u0639\u0627\u062a','%d \u0633\u0627\u0639\u0629','%d \u0633\u0627\u0639\u0629'],d:['\u0623\u0642\u0644 \u0645\u0646 \u064a\u0648\u0645','\u064a\u0648\u0645 \u0648\u0627\u062d\u062f',['\u064a\u0648\u0645\u0627\u0646','\u064a\u0648\u0645\u064a\u0646'],'%d \u0623\u064a\u0627\u0645','%d \u064a\u0648\u0645\u064b\u0627','%d \u064a\u0648\u0645'],M:['\u0623\u0642\u0644 \u0645\u0646 \u0634\u0647\u0631','\u0634\u0647\u0631 \u0648\u0627\u062d\u062f',['\u0634\u0647\u0631\u0627\u0646','\u0634\u0647\u0631\u064a\u0646'],'%d \u0623\u0634\u0647\u0631','%d \u0634\u0647\u0631\u0627','%d \u0634\u0647\u0631'],y:['\u0623\u0642\u0644 \u0645\u0646 \u0639\u0627\u0645','\u0639\u0627\u0645 \u0648\u0627\u062d\u062f',['\u0639\u0627\u0645\u0627\u0646','\u0639\u0627\u0645\u064a\u0646'],'%d \u0623\u0639\u0648\u0627\u0645','%d \u0639\u0627\u0645\u064b\u0627','%d \u0639\u0627\u0645']},c=function(t){return function(n,s,c,_){var f=o(n),M=u[t][o(n)];return 2===f&&(M=M[s?0:1]),M.replace(/%d/i,n)}},_=['\u064a\u0646\u0627\u064a\u0631','\u0641\u0628\u0631\u0627\u064a\u0631','\u0645\u0627\u0631\u0633','\u0623\u0628\u0631\u064a\u0644','\u0645\u0627\u064a\u0648','\u064a\u0648\u0646\u064a\u0648','\u064a\u0648\u0644\u064a\u0648','\u0623\u063a\u0633\u0637\u0633','\u0633\u0628\u062a\u0645\u0628\u0631','\u0623\u0643\u062a\u0648\u0628\u0631','\u0646\u0648\u0641\u0645\u0628\u0631','\u062f\u064a\u0633\u0645\u0628\u0631'];return t.defineLocale('ar',{months:_,monthsShort:_,weekdays:'\u0627\u0644\u0623\u062d\u062f_\u0627\u0644\u0625\u062b\u0646\u064a\u0646_\u0627\u0644\u062b\u0644\u0627\u062b\u0627\u0621_\u0627\u0644\u0623\u0631\u0628\u0639\u0627\u0621_\u0627\u0644\u062e\u0645\u064a\u0633_\u0627\u0644\u062c\u0645\u0639\u0629_\u0627\u0644\u0633\u0628\u062a'.split('_'),weekdaysShort:'\u0623\u062d\u062f_\u0625\u062b\u0646\u064a\u0646_\u062b\u0644\u0627\u062b\u0627\u0621_\u0623\u0631\u0628\u0639\u0627\u0621_\u062e\u0645\u064a\u0633_\u062c\u0645\u0639\u0629_\u0633\u0628\u062a'.split('_'),weekdaysMin:'\u062d_\u0646_\u062b_\u0631_\u062e_\u062c_\u0633'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:"D/\u200fM/\u200fYYYY",LL:'D MMMM YYYY',LLL:'D MMMM YYYY HH:mm',LLLL:'dddd D MMMM YYYY HH:mm'},meridiemParse:/\u0635|\u0645/,isPM:function(t){return'\u0645'===t},meridiem:function(t,n,s){return t<12?'\u0635':'\u0645'},calendar:{sameDay:'[\u0627\u0644\u064a\u0648\u0645 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT',nextDay:'[\u063a\u062f\u064b\u0627 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT',nextWeek:'dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT',lastDay:'[\u0623\u0645\u0633 \u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT',lastWeek:'dddd [\u0639\u0646\u062f \u0627\u0644\u0633\u0627\u0639\u0629] LT',sameElse:'L'},relativeTime:{future:'\u0628\u0639\u062f %s',past:'\u0645\u0646\u0630 %s',s:c('s'),ss:c('s'),m:c('m'),mm:c('m'),h:c('h'),hh:c('h'),d:c('d'),dd:c('d'),M:c('M'),MM:c('M'),y:c('y'),yy:c('y')},preparse:function(t){return t.replace(/[\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\u0660]/g,function(t){return s[t]}).replace(/\u060c/g,',')},postformat:function(t){return t.replace(/\d/g,function(t){return n[t]}).replace(/,/g,'\u060c')},week:{dow:6,doy:12}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?n(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],n):n(t.moment)},527,[526]); -__d(function(g,r,i,a,m,e,d){var t,o;t=this,o=function(t){'use strict';return t.defineLocale('it',{months:'gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre'.split('_'),monthsShort:'gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic'.split('_'),weekdays:'domenica_luned\xec_marted\xec_mercoled\xec_gioved\xec_venerd\xec_sabato'.split('_'),weekdaysShort:'dom_lun_mar_mer_gio_ven_sab'.split('_'),weekdaysMin:'do_lu_ma_me_gi_ve_sa'.split('_'),longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD/MM/YYYY',LL:'D MMMM YYYY',LLL:'D MMMM YYYY HH:mm',LLLL:'dddd D MMMM YYYY HH:mm'},calendar:{sameDay:function(){return'[Oggi a'+(this.hours()>1?'lle ':0===this.hours()?' ':"ll'")+']LT'},nextDay:function(){return'[Domani a'+(this.hours()>1?'lle ':0===this.hours()?' ':"ll'")+']LT'},nextWeek:function(){return'dddd [a'+(this.hours()>1?'lle ':0===this.hours()?' ':"ll'")+']LT'},lastDay:function(){return'[Ieri a'+(this.hours()>1?'lle ':0===this.hours()?' ':"ll'")+']LT'},lastWeek:function(){switch(this.day()){case 0:return'[La scorsa] dddd [a'+(this.hours()>1?'lle ':0===this.hours()?' ':"ll'")+']LT';default:return'[Lo scorso] dddd [a'+(this.hours()>1?'lle ':0===this.hours()?' ':"ll'")+']LT'}},sameElse:'L'},relativeTime:{future:'tra %s',past:'%s fa',s:'alcuni secondi',ss:'%d secondi',m:'un minuto',mm:'%d minuti',h:"un'ora",hh:'%d ore',d:'un giorno',dd:'%d giorni',w:'una settimana',ww:'%d settimane',M:'un mese',MM:'%d mesi',y:'un anno',yy:'%d anni'},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:'%d\xba',week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?o(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],o):o(t.moment)},528,[526]); -__d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){'use strict';return t.defineLocale('da',{months:'januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december'.split('_'),monthsShort:'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),weekdays:'s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag'.split('_'),weekdaysShort:'s\xf8n_man_tir_ons_tor_fre_l\xf8r'.split('_'),weekdaysMin:'s\xf8_ma_ti_on_to_fr_l\xf8'.split('_'),longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD.MM.YYYY',LL:'D. MMMM YYYY',LLL:'D. MMMM YYYY HH:mm',LLLL:'dddd [d.] D. MMMM YYYY [kl.] HH:mm'},calendar:{sameDay:'[i dag kl.] LT',nextDay:'[i morgen kl.] LT',nextWeek:'p\xe5 dddd [kl.] LT',lastDay:'[i g\xe5r kl.] LT',lastWeek:'[i] dddd[s kl.] LT',sameElse:'L'},relativeTime:{future:'om %s',past:'%s siden',s:'f\xe5 sekunder',ss:'%d sekunder',m:'et minut',mm:'%d minutter',h:'en time',hh:'%d timer',d:'en dag',dd:'%d dage',M:'en m\xe5ned',MM:'%d m\xe5neder',y:'et \xe5r',yy:'%d \xe5r'},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:'%d.',week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?n(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],n):n(t.moment)},529,[526]); -__d(function(g,r,i,a,m,e,d){var n,t;n=this,t=function(n){'use strict';function t(n,t,_,o){var M={m:['eine Minute','einer Minute'],h:['eine Stunde','einer Stunde'],d:['ein Tag','einem Tag'],dd:[n+' Tage',n+' Tagen'],w:['eine Woche','einer Woche'],M:['ein Monat','einem Monat'],MM:[n+' Monate',n+' Monaten'],y:['ein Jahr','einem Jahr'],yy:[n+' Jahre',n+' Jahren']};return t?M[_][0]:M[_][1]}return n.defineLocale('de',{months:'Januar_Februar_M\xe4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember'.split('_'),monthsShort:'Jan._Feb._M\xe4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.'.split('_'),monthsParseExact:!0,weekdays:'Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag'.split('_'),weekdaysShort:'So._Mo._Di._Mi._Do._Fr._Sa.'.split('_'),weekdaysMin:'So_Mo_Di_Mi_Do_Fr_Sa'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD.MM.YYYY',LL:'D. MMMM YYYY',LLL:'D. MMMM YYYY HH:mm',LLLL:'dddd, D. MMMM YYYY HH:mm'},calendar:{sameDay:'[heute um] LT [Uhr]',sameElse:'L',nextDay:'[morgen um] LT [Uhr]',nextWeek:'dddd [um] LT [Uhr]',lastDay:'[gestern um] LT [Uhr]',lastWeek:'[letzten] dddd [um] LT [Uhr]'},relativeTime:{future:'in %s',past:'vor %s',s:'ein paar Sekunden',ss:'%d Sekunden',m:t,mm:'%d Minuten',h:t,hh:'%d Stunden',d:t,dd:t,w:t,ww:'%d Wochen',M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:'%d.',week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(n.moment)},530,[526]); -__d(function(g,r,i,a,m,e,d){var n,s;n=this,s=function(n){'use strict';var s=/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?|janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,t=[/^janv/i,/^f\xe9vr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^ao\xfbt/i,/^sept/i,/^oct/i,/^nov/i,/^d\xe9c/i];return n.defineLocale('fr',{months:'janvier_f\xe9vrier_mars_avril_mai_juin_juillet_ao\xfbt_septembre_octobre_novembre_d\xe9cembre'.split('_'),monthsShort:'janv._f\xe9vr._mars_avr._mai_juin_juil._ao\xfbt_sept._oct._nov._d\xe9c.'.split('_'),monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(janvier|f\xe9vrier|mars|avril|mai|juin|juillet|ao\xfbt|septembre|octobre|novembre|d\xe9cembre)/i,monthsShortStrictRegex:/(janv\.?|f\xe9vr\.?|mars|avr\.?|mai|juin|juil\.?|ao\xfbt|sept\.?|oct\.?|nov\.?|d\xe9c\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:'dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi'.split('_'),weekdaysShort:'dim._lun._mar._mer._jeu._ven._sam.'.split('_'),weekdaysMin:'di_lu_ma_me_je_ve_sa'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD/MM/YYYY',LL:'D MMMM YYYY',LLL:'D MMMM YYYY HH:mm',LLLL:'dddd D MMMM YYYY HH:mm'},calendar:{sameDay:'[Aujourd\u2019hui \xe0] LT',nextDay:'[Demain \xe0] LT',nextWeek:'dddd [\xe0] LT',lastDay:'[Hier \xe0] LT',lastWeek:'dddd [dernier \xe0] LT',sameElse:'L'},relativeTime:{future:'dans %s',past:'il y a %s',s:'quelques secondes',ss:'%d secondes',m:'une minute',mm:'%d minutes',h:'une heure',hh:'%d heures',d:'un jour',dd:'%d jours',w:'une semaine',ww:'%d semaines',M:'un mois',MM:'%d mois',y:'un an',yy:'%d ans'},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(n,s){switch(s){case'D':return n+(1===n?'er':'');default:case'M':case'Q':case'DDD':case'd':return n+(1===n?'er':'e');case'w':case'W':return n+(1===n?'re':'e')}},week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?s(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],s):s(n.moment)},531,[526]); -__d(function(g,r,i,a,_m,e,d){var n,t;n=this,t=function(n){'use strict';var t='jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),o='jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),m=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return n.defineLocale('nl',{months:'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),monthsShort:function(n,m){return n?/-MMM-/.test(m)?o[n.month()]:t[n.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),weekdaysShort:'zo._ma._di._wo._do._vr._za.'.split('_'),weekdaysMin:'zo_ma_di_wo_do_vr_za'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD-MM-YYYY',LL:'D MMMM YYYY',LLL:'D MMMM YYYY HH:mm',LLLL:'dddd D MMMM YYYY HH:mm'},calendar:{sameDay:'[vandaag om] LT',nextDay:'[morgen om] LT',nextWeek:'dddd [om] LT',lastDay:'[gisteren om] LT',lastWeek:'[afgelopen] dddd [om] LT',sameElse:'L'},relativeTime:{future:'over %s',past:'%s geleden',s:'een paar seconden',ss:'%d seconden',m:'\xe9\xe9n minuut',mm:'%d minuten',h:'\xe9\xe9n uur',hh:'%d uur',d:'\xe9\xe9n dag',dd:'%d dagen',w:'\xe9\xe9n week',ww:'%d weken',M:'\xe9\xe9n maand',MM:'%d maanden',y:'\xe9\xe9n jaar',yy:'%d jaar'},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?'ste':'de')},week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==_m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(n.moment)},532,[526]); -__d(function(g,r,i,a,_m,e,d){var o,n;o=this,n=function(o){'use strict';var n='ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),s='ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_'),t=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],m=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;return o.defineLocale('es',{months:'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),monthsShort:function(o,t){return o?/-MMM-/.test(t)?s[o.month()]:n[o.month()]:n},monthsRegex:m,monthsShortRegex:m,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:t,longMonthsParse:t,shortMonthsParse:t,weekdays:'domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado'.split('_'),weekdaysShort:'dom._lun._mar._mi\xe9._jue._vie._s\xe1b.'.split('_'),weekdaysMin:'do_lu_ma_mi_ju_vi_s\xe1'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'H:mm',LTS:'H:mm:ss',L:'DD/MM/YYYY',LL:'D [de] MMMM [de] YYYY',LLL:'D [de] MMMM [de] YYYY H:mm',LLLL:'dddd, D [de] MMMM [de] YYYY H:mm'},calendar:{sameDay:function(){return'[hoy a la'+(1!==this.hours()?'s':'')+'] LT'},nextDay:function(){return'[ma\xf1ana a la'+(1!==this.hours()?'s':'')+'] LT'},nextWeek:function(){return'dddd [a la'+(1!==this.hours()?'s':'')+'] LT'},lastDay:function(){return'[ayer a la'+(1!==this.hours()?'s':'')+'] LT'},lastWeek:function(){return'[el] dddd [pasado a la'+(1!==this.hours()?'s':'')+'] LT'},sameElse:'L'},relativeTime:{future:'en %s',past:'hace %s',s:'unos segundos',ss:'%d segundos',m:'un minuto',mm:'%d minutos',h:'una hora',hh:'%d horas',d:'un d\xeda',dd:'%d d\xedas',w:'una semana',ww:'%d semanas',M:'un mes',MM:'%d meses',y:'un a\xf1o',yy:'%d a\xf1os'},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:'%d\xba',week:{dow:1,doy:4},invalidDate:'Fecha inv\xe1lida'})},'object'==typeof e&&void 0!==_m&&'function'==typeof r?n(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],n):n(o.moment)},533,[526]); -__d(function(g,r,i,a,m,e,d){var n,t;n=this,t=function(n){'use strict';function t(n,t,_){var s=' ';return(n%100>=20||n>=100&&n%100==0)&&(s=' de '),n+s+{ss:'secunde',mm:'minute',hh:'ore',dd:'zile',ww:'s\u0103pt\u0103m\xe2ni',MM:'luni',yy:'ani'}[_]}return n.defineLocale('ro',{months:'ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie'.split('_'),monthsShort:'ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.'.split('_'),monthsParseExact:!0,weekdays:'duminic\u0103_luni_mar\u021bi_miercuri_joi_vineri_s\xe2mb\u0103t\u0103'.split('_'),weekdaysShort:'Dum_Lun_Mar_Mie_Joi_Vin_S\xe2m'.split('_'),weekdaysMin:'Du_Lu_Ma_Mi_Jo_Vi_S\xe2'.split('_'),longDateFormat:{LT:'H:mm',LTS:'H:mm:ss',L:'DD.MM.YYYY',LL:'D MMMM YYYY',LLL:'D MMMM YYYY H:mm',LLLL:'dddd, D MMMM YYYY H:mm'},calendar:{sameDay:'[azi la] LT',nextDay:'[m\xe2ine la] LT',nextWeek:'dddd [la] LT',lastDay:'[ieri la] LT',lastWeek:'[fosta] dddd [la] LT',sameElse:'L'},relativeTime:{future:'peste %s',past:'%s \xeen urm\u0103',s:'c\xe2teva secunde',ss:t,m:'un minut',mm:t,h:'o or\u0103',hh:t,d:'o zi',dd:t,w:'o s\u0103pt\u0103m\xe2n\u0103',ww:t,M:'o lun\u0103',MM:t,y:'un an',yy:t},week:{dow:1,doy:7}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(n.moment)},534,[526]); -__d(function(g,r,i,a,m,e,d){var n,t;n=this,t=function(n){'use strict';return n.defineLocale('sv',{months:'januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december'.split('_'),monthsShort:'jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec'.split('_'),weekdays:'s\xf6ndag_m\xe5ndag_tisdag_onsdag_torsdag_fredag_l\xf6rdag'.split('_'),weekdaysShort:'s\xf6n_m\xe5n_tis_ons_tor_fre_l\xf6r'.split('_'),weekdaysMin:'s\xf6_m\xe5_ti_on_to_fr_l\xf6'.split('_'),longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'YYYY-MM-DD',LL:'D MMMM YYYY',LLL:'D MMMM YYYY [kl.] HH:mm',LLLL:'dddd D MMMM YYYY [kl.] HH:mm',lll:'D MMM YYYY HH:mm',llll:'ddd D MMM YYYY HH:mm'},calendar:{sameDay:'[Idag] LT',nextDay:'[Imorgon] LT',lastDay:'[Ig\xe5r] LT',nextWeek:'[P\xe5] dddd LT',lastWeek:'[I] dddd[s] LT',sameElse:'L'},relativeTime:{future:'om %s',past:'f\xf6r %s sedan',s:'n\xe5gra sekunder',ss:'%d sekunder',m:'en minut',mm:'%d minuter',h:'en timme',hh:'%d timmar',d:'en dag',dd:'%d dagar',M:'en m\xe5nad',MM:'%d m\xe5nader',y:'ett \xe5r',yy:'%d \xe5r'},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(n){var t=n%10;return n+(1==~~(n%100/10)?':e':1===t?':a':2===t?':a':':e')},week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(n.moment)},535,[526]); -__d(function(g,r,i,a,m,e,d){var o,s;o=this,s=function(o){'use strict';return o.defineLocale('pt',{months:'janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),monthsShort:'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),weekdays:'Domingo_Segunda-feira_Ter\xe7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xe1bado'.split('_'),weekdaysShort:'Dom_Seg_Ter_Qua_Qui_Sex_S\xe1b'.split('_'),weekdaysMin:'Do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_S\xe1'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD/MM/YYYY',LL:'D [de] MMMM [de] YYYY',LLL:'D [de] MMMM [de] YYYY HH:mm',LLLL:'dddd, D [de] MMMM [de] YYYY HH:mm'},calendar:{sameDay:'[Hoje \xe0s] LT',nextDay:'[Amanh\xe3 \xe0s] LT',nextWeek:'dddd [\xe0s] LT',lastDay:'[Ontem \xe0s] LT',lastWeek:function(){return 0===this.day()||6===this.day()?'[\xdaltimo] dddd [\xe0s] LT':'[\xdaltima] dddd [\xe0s] LT'},sameElse:'L'},relativeTime:{future:'em %s',past:'h\xe1 %s',s:'segundos',ss:'%d segundos',m:'um minuto',mm:'%d minutos',h:'uma hora',hh:'%d horas',d:'um dia',dd:'%d dias',w:'uma semana',ww:'%d semanas',M:'um m\xeas',MM:'%d meses',y:'um ano',yy:'%d anos'},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:'%d\xba',week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?s(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],s):s(o.moment)},536,[526]); -__d(function(g,r,i,a,m,e,d){var s,t;s=this,t=function(s){'use strict';return s.defineLocale('pt-br',{months:'janeiro_fevereiro_mar\xe7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro'.split('_'),monthsShort:'jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez'.split('_'),weekdays:'domingo_segunda-feira_ter\xe7a-feira_quarta-feira_quinta-feira_sexta-feira_s\xe1bado'.split('_'),weekdaysShort:'dom_seg_ter_qua_qui_sex_s\xe1b'.split('_'),weekdaysMin:'do_2\xaa_3\xaa_4\xaa_5\xaa_6\xaa_s\xe1'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD/MM/YYYY',LL:'D [de] MMMM [de] YYYY',LLL:'D [de] MMMM [de] YYYY [\xe0s] HH:mm',LLLL:'dddd, D [de] MMMM [de] YYYY [\xe0s] HH:mm'},calendar:{sameDay:'[Hoje \xe0s] LT',nextDay:'[Amanh\xe3 \xe0s] LT',nextWeek:'dddd [\xe0s] LT',lastDay:'[Ontem \xe0s] LT',lastWeek:function(){return 0===this.day()||6===this.day()?'[\xdaltimo] dddd [\xe0s] LT':'[\xdaltima] dddd [\xe0s] LT'},sameElse:'L'},relativeTime:{future:'em %s',past:'h\xe1 %s',s:'poucos segundos',ss:'%d segundos',m:'um minuto',mm:'%d minutos',h:'uma hora',hh:'%d horas',d:'um dia',dd:'%d dias',M:'um m\xeas',MM:'%d meses',y:'um ano',yy:'%d anos'},dayOfMonthOrdinalParse:/\d{1,2}\xba/,ordinal:'%d\xba',invalidDate:'Data inv\xe1lida'})},'object'==typeof e&&void 0!==m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(s.moment)},537,[526]); -__d(function(g,r,i,a,_m,e,d){var n,t;n=this,t=function(n){'use strict';var t='jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.'.split('_'),o='jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec'.split('_'),m=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],s=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;return n.defineLocale('nl-be',{months:'januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december'.split('_'),monthsShort:function(n,m){return n?/-MMM-/.test(m)?o[n.month()]:t[n.month()]:t},monthsRegex:s,monthsShortRegex:s,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:m,longMonthsParse:m,shortMonthsParse:m,weekdays:'zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag'.split('_'),weekdaysShort:'zo._ma._di._wo._do._vr._za.'.split('_'),weekdaysMin:'zo_ma_di_wo_do_vr_za'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD/MM/YYYY',LL:'D MMMM YYYY',LLL:'D MMMM YYYY HH:mm',LLLL:'dddd D MMMM YYYY HH:mm'},calendar:{sameDay:'[vandaag om] LT',nextDay:'[morgen om] LT',nextWeek:'dddd [om] LT',lastDay:'[gisteren om] LT',lastWeek:'[afgelopen] dddd [om] LT',sameElse:'L'},relativeTime:{future:'over %s',past:'%s geleden',s:'een paar seconden',ss:'%d seconden',m:'\xe9\xe9n minuut',mm:'%d minuten',h:'\xe9\xe9n uur',hh:'%d uur',d:'\xe9\xe9n dag',dd:'%d dagen',M:'\xe9\xe9n maand',MM:'%d maanden',y:'\xe9\xe9n jaar',yy:'%d jaar'},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(n){return n+(1===n||8===n||n>=20?'ste':'de')},week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==_m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(n.moment)},538,[526]); -__d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){'use strict';return t.defineLocale('nn',{months:'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),monthsShort:'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),monthsParseExact:!0,weekdays:'sundag_m\xe5ndag_tysdag_onsdag_torsdag_fredag_laurdag'.split('_'),weekdaysShort:'su._m\xe5._ty._on._to._fr._lau.'.split('_'),weekdaysMin:'su_m\xe5_ty_on_to_fr_la'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD.MM.YYYY',LL:'D. MMMM YYYY',LLL:'D. MMMM YYYY [kl.] H:mm',LLLL:'dddd D. MMMM YYYY [kl.] HH:mm'},calendar:{sameDay:'[I dag klokka] LT',nextDay:'[I morgon klokka] LT',nextWeek:'dddd [klokka] LT',lastDay:'[I g\xe5r klokka] LT',lastWeek:'[F\xf8reg\xe5ande] dddd [klokka] LT',sameElse:'L'},relativeTime:{future:'om %s',past:'%s sidan',s:'nokre sekund',ss:'%d sekund',m:'eit minutt',mm:'%d minutt',h:'ein time',hh:'%d timar',d:'ein dag',dd:'%d dagar',w:'ei veke',ww:'%d veker',M:'ein m\xe5nad',MM:'%d m\xe5nader',y:'eit \xe5r',yy:'%d \xe5r'},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:'%d.',week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?n(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],n):n(t.moment)},539,[526]); -__d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){'use strict';return t.defineLocale('nb',{months:'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),monthsShort:'jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),monthsParseExact:!0,weekdays:'s\xf8ndag_mandag_tirsdag_onsdag_torsdag_fredag_l\xf8rdag'.split('_'),weekdaysShort:'s\xf8._ma._ti._on._to._fr._l\xf8.'.split('_'),weekdaysMin:'s\xf8_ma_ti_on_to_fr_l\xf8'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'HH:mm',LTS:'HH:mm:ss',L:'DD.MM.YYYY',LL:'D. MMMM YYYY',LLL:'D. MMMM YYYY [kl.] HH:mm',LLLL:'dddd D. MMMM YYYY [kl.] HH:mm'},calendar:{sameDay:'[i dag kl.] LT',nextDay:'[i morgen kl.] LT',nextWeek:'dddd [kl.] LT',lastDay:'[i g\xe5r kl.] LT',lastWeek:'[forrige] dddd [kl.] LT',sameElse:'L'},relativeTime:{future:'om %s',past:'%s siden',s:'noen sekunder',ss:'%d sekunder',m:'ett minutt',mm:'%d minutter',h:'en time',hh:'%d timer',d:'en dag',dd:'%d dager',w:'en uke',ww:'%d uker',M:'en m\xe5ned',MM:'%d m\xe5neder',y:'ett \xe5r',yy:'%d \xe5r'},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:'%d.',week:{dow:1,doy:4}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?n(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],n):n(t.moment)},540,[526]); -__d(function(g,r,i,a,m,e,d){var n,t;n=this,t=function(n){'use strict';function t(n,t,s,o){var u=n+' ';switch(s){case's':return t||o?'nekaj sekund':'nekaj sekundami';case'ss':return u+=1===n?t?'sekundo':'sekundi':2===n?t||o?'sekundi':'sekundah':n<5?t||o?'sekunde':'sekundah':'sekund';case'm':return t?'ena minuta':'eno minuto';case'mm':return u+=1===n?t?'minuta':'minuto':2===n?t||o?'minuti':'minutama':n<5?t||o?'minute':'minutami':t||o?'minut':'minutami';case'h':return t?'ena ura':'eno uro';case'hh':return u+=1===n?t?'ura':'uro':2===n?t||o?'uri':'urama':n<5?t||o?'ure':'urami':t||o?'ur':'urami';case'd':return t||o?'en dan':'enim dnem';case'dd':return u+=1===n?t||o?'dan':'dnem':2===n?t||o?'dni':'dnevoma':t||o?'dni':'dnevi';case'M':return t||o?'en mesec':'enim mesecem';case'MM':return u+=1===n?t||o?'mesec':'mesecem':2===n?t||o?'meseca':'mesecema':n<5?t||o?'mesece':'meseci':t||o?'mesecev':'meseci';case'y':return t||o?'eno leto':'enim letom';case'yy':return u+=1===n?t||o?'leto':'letom':2===n?t||o?'leti':'letoma':n<5?t||o?'leta':'leti':t||o?'let':'leti'}}return n.defineLocale('sl',{months:'januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december'.split('_'),monthsShort:'jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.'.split('_'),monthsParseExact:!0,weekdays:'nedelja_ponedeljek_torek_sreda_\u010detrtek_petek_sobota'.split('_'),weekdaysShort:'ned._pon._tor._sre._\u010det._pet._sob.'.split('_'),weekdaysMin:'ne_po_to_sr_\u010de_pe_so'.split('_'),weekdaysParseExact:!0,longDateFormat:{LT:'H:mm',LTS:'H:mm:ss',L:'DD. MM. YYYY',LL:'D. MMMM YYYY',LLL:'D. MMMM YYYY H:mm',LLLL:'dddd, D. MMMM YYYY H:mm'},calendar:{sameDay:'[danes ob] LT',nextDay:'[jutri ob] LT',nextWeek:function(){switch(this.day()){case 0:return'[v] [nedeljo] [ob] LT';case 3:return'[v] [sredo] [ob] LT';case 6:return'[v] [soboto] [ob] LT';case 1:case 2:case 4:case 5:return'[v] dddd [ob] LT'}},lastDay:'[v\u010deraj ob] LT',lastWeek:function(){switch(this.day()){case 0:return'[prej\u0161njo] [nedeljo] [ob] LT';case 3:return'[prej\u0161njo] [sredo] [ob] LT';case 6:return'[prej\u0161njo] [soboto] [ob] LT';case 1:case 2:case 4:case 5:return'[prej\u0161nji] dddd [ob] LT'}},sameElse:'L'},relativeTime:{future:'\u010dez %s',past:'pred %s',s:t,ss:t,m:t,mm:t,h:t,hh:t,d:t,dd:t,M:t,MM:t,y:t,yy:t},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:'%d.',week:{dow:1,doy:7}})},'object'==typeof e&&void 0!==m&&'function'==typeof r?t(r(d[0])):'function'==typeof define&&define.amd?define(['../moment'],t):t(n.moment)},541,[526]); -__d(function(g,r,_i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),a=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=(r(d[0])(r(d[4])),r(d[0])(r(d[5]))),s=r(d[0])(r(d[6])),l=s.default.IABTCF.keys,c=(function(){function c(){(0,a.default)(this,c)}return(0,n.default)(c,null,[{key:"setATTDenied",value:function(t){c.attDenied=t}},{key:"computeBinaryString",value:function(t,a){for(var n="",u=1;u0&&(I=parseInt(O.sort(function(t,a){return t-a}).pop(),10)),void 0===U&&(L=Object.keys(V)).length>0&&(U=L.length),void 0===h&&(B=Object.keys(T)).length>0&&(h=B.length)),A.next=26,t.default.awrap(c.setVendorData(w,I));case 26:return A.next=28,t.default.awrap(c.setRestrictionsData(y,I));case 28:return A.next=30,t.default.awrap(c.setPurposeData(v,U));case 30:return A.next=32,t.default.awrap(c.setPublisherData(b,U));case 32:if(!P||void 0===h){A.next=35;break}return A.next=35,t.default.awrap(s.default.setStandardUserDefaultsValue(l.SpecialFeaturesOptIns,c.computeBinaryString(P,h)));case 35:return A.next=37,t.default.awrap(s.default.setStandardUserDefaultsValue(l.AddtlConsent,k));case 37:case"end":return A.stop()}},null,null,null,Promise)}},{key:"getTCData",value:function(){var a;return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!c.tcData){n.next=2;break}return n.abrupt("return",c.tcData);case 2:return a={},n.prev=3,n.t1=JSON,n.next=7,t.default.awrap(s.default.getItem(s.default.SP.keys.tcData));case 7:if(n.t2=n.sent,n.t0=n.t1.parse.call(n.t1,n.t2),n.t0){n.next=11;break}n.t0={};case 11:a=n.t0,n.next=16;break;case 14:n.prev=14,n.t3=n.catch(3);case 16:return c.tcData=a,n.abrupt("return",a);case 18:case"end":return n.stop()}},null,null,[[3,14]],Promise)}},{key:"clearTCData",value:function(){var a,n,u;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return c.tcData&&(a=c.tcData.restrictions),c.tcData=void 0,n=s.default.SP.keys.tcData,f.next=5,t.default.awrap(s.default.clearItem(n));case 5:return f.next=7,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.AddtlConsent));case 7:return f.next=9,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.CmpSdkID));case 9:return f.next=11,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.CmpSdkVersion));case 11:return f.next=13,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.gdprApplies));case 13:return f.next=15,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PolicyVersion));case 15:return f.next=17,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PublisherCC));case 17:return f.next=19,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PurposeOneTreatment));case 19:return f.next=21,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.UseNonStandardStacks));case 21:return f.next=23,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.TCString));case 23:return f.next=25,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.VendorConsents));case 25:return f.next=27,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.VendorLegitimateInterests));case 27:return f.next=29,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PurposeConsents));case 29:return f.next=31,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PurposeLegitimateInterests));case 31:return f.next=33,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.SpecialFeaturesOptIns));case 33:return f.next=35,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PublisherConsent));case 35:return f.next=37,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PublisherLegitimateInterests));case 37:return f.next=39,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PublisherCustomPurposesConsents));case 39:return f.next=41,t.default.awrap(s.default.clearStandardUserDefaultsItem(l.PublisherCustomPurposesLegitimateInterests));case 41:if(!a){f.next=45;break}return u=Object.keys(a).map(function(t){return s.default.clearStandardUserDefaultsItem(l.PublisherRestrictions+t)}),f.next=45,t.default.awrap(Promise.all(u));case 45:case"end":return f.stop()}},null,null,null,Promise)}},{key:"setUSPData",value:function(a){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!c.attDenied){u.next=2;break}return u.abrupt("return");case 2:return c.uspData=a,u.next=5,t.default.awrap(s.default.setItem(s.default.SP.keys.uspData,a));case 5:return n=a.uspString,u.next=8,t.default.awrap(s.default.setStandardUserDefaultsValue(s.default.US.keys.USPrivacy,n));case 8:case"end":return u.stop()}},null,null,null,Promise)}},{key:"getUSPData",value:function(){var a;return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!c.uspData){n.next=2;break}return n.abrupt("return",c.uspData);case 2:return a={},n.prev=3,n.t1=JSON,n.next=7,t.default.awrap(s.default.getItem(s.default.SP.keys.uspData));case 7:if(n.t2=n.sent,n.t0=n.t1.parse.call(n.t1,n.t2),n.t0){n.next=11;break}n.t0={};case 11:a=n.t0,n.next=16;break;case 14:n.prev=14,n.t3=n.catch(3);case 16:return c.uspData=a,n.abrupt("return",a);case 18:case"end":return n.stop()}},null,null,[[3,14]],Promise)}},{key:"clearUSData",value:function(){var a;return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return c.uspData=void 0,a=s.default.SP.keys.uspData,n.next=4,t.default.awrap(s.default.clearItem(a));case 4:return n.next=6,t.default.awrap(s.default.clearStandardUserDefaultsItem(s.default.US.keys.USPrivacy));case 6:case"end":return n.stop()}},null,null,null,Promise)}},{key:"reset",value:function(){c.tcData=void 0,c.uspData=void 0}},{key:"init",value:function(){var a,n=arguments;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(a=n.length>0&&void 0!==n[0]&&n[0],c.setATTDenied(a),!c.attDenied){u.next=8;break}return u.next=5,t.default.awrap(c.clearTCData());case 5:return u.next=7,t.default.awrap(c.clearUSData());case 7:return u.abrupt("return");case 8:return c.reset(),u.next=11,t.default.awrap(c.getTCData());case 11:return u.next=13,t.default.awrap(c.getUSPData());case 13:case"end":return u.stop()}},null,null,null,Promise)}},{key:"clearAll",value:function(){return t.default.async(function(a){for(;;)switch(a.prev=a.next){case 0:return c.reset(),a.next=3,t.default.awrap(c.clearTCData());case 3:return a.next=5,t.default.awrap(c.clearUSData());case 5:case"end":return a.stop()}},null,null,null,Promise)}}]),c})();e.default=c,c.attDenied=!1},542,[5,80,7,8,463,503,543]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=(function(){function l(){(0,n.default)(this,l)}return(0,s.default)(l,null,[{key:"getDefaultPreferencesName",value:function(){}},{key:"getStandardUserDefaultsValue",value:function(t){return u.default.getItemInDefaultPreferences(l.getDefaultPreferencesName(),t)}},{key:"setStandardUserDefaultsValue",value:function(t,n){return u.default.setItemInDefaultPreferences(l.getDefaultPreferencesName(),t,n)}},{key:"clearStandardUserDefaultsItem",value:function(t){return u.default.clearItemFromDefaultPreferences(l.getDefaultPreferencesName(),t)}},{key:"clearStandardUserDefaults",value:function(){return u.default.clearAllFromDefaultPreferences(l.getDefaultPreferencesName())}},{key:"setStorageName",value:function(t){l.SP.name=t}},{key:"getItem",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.default.getItem(l.SP.name,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"setItem",value:function(n,s){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.default.setItem(l.SP.name,n,s));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"clearItem",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.default.clear(l.SP.name,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),l})();e.default=l,l.SP={name:"cmp",keys:{tcData:"tcData",uspData:"uspData"}},l.IABTCF={keys:{CmpSdkID:"IABTCF_CmpSdkID",CmpSdkVersion:"IABTCF_CmpSdkVersion",PolicyVersion:"IABTCF_PolicyVersion",gdprApplies:"IABTCF_gdprApplies",PublisherCC:"IABTCF_PublisherCC",PurposeOneTreatment:"IABTCF_PurposeOneTreatment",UseNonStandardStacks:"IABTCF_UseNonStandardStacks",TCString:"IABTCF_TCString",VendorConsents:"IABTCF_VendorConsents",VendorLegitimateInterests:"IABTCF_VendorLegitimateInterests",PurposeConsents:"IABTCF_PurposeConsents",PurposeLegitimateInterests:"IABTCF_PurposeLegitimateInterests",SpecialFeaturesOptIns:"IABTCF_SpecialFeaturesOptIns",PublisherRestrictions:"IABTCF_PublisherRestrictions",PublisherConsent:"IABTCF_PublisherConsent",PublisherLegitimateInterests:"IABTCF_PublisherLegitimateInterests",PublisherCustomPurposesConsents:"IABTCF_PublisherCustomPurposesConsents",PublisherCustomPurposesLegitimateInterests:"IABTCF_PublisherCustomPurposesLegitimateInterests",AddtlConsent:"IABTCF_AddtlConsent"}},l.US={keys:{USPrivacy:"IABUSPrivacy_String"}}},543,[5,80,7,8,544]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),c=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),f=(r(d[0])(r(d[7])),(function(){function l(){(0,n.default)(this,l)}return(0,u.default)(l,null,[{key:"setItemInDefaultPreferences",value:function(n,u,c){return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",l.queue.add(function(){return t.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,t.default.awrap(s.default.setName(n));case 3:return l.next=5,t.default.awrap(s.default.set(u,c));case 5:l.next=9;break;case 7:l.prev=7,l.t0=l.catch(0);case 9:case"end":return l.stop()}},null,null,[[0,7]],Promise)}));case 1:case"end":return f.stop()}},null,null,null,Promise)}},{key:"getItemFromDefaultPreferences",value:function(n,u){return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",l.queue.add(function(){var c;return t.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(c="",l.prev=1,!u){l.next=8;break}return l.next=5,t.default.awrap(s.default.setName(n));case 5:return l.next=7,t.default.awrap(s.default.get(u));case 7:c=l.sent;case 8:l.next=12;break;case 10:l.prev=10,l.t0=l.catch(1);case 12:return l.abrupt("return",c);case 13:case"end":return l.stop()}},null,null,[[1,10]],Promise)}));case 1:case"end":return c.stop()}},null,null,null,Promise)}},{key:"clearItemFromDefaultPreferences",value:function(n,u){return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.abrupt("return",l.queue.add(function(){return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,c.next=3,t.default.awrap(s.default.setName(n));case 3:return c.next=5,t.default.awrap(s.default.clear(u));case 5:c.next=9;break;case 7:c.prev=7,c.t0=c.catch(0);case 9:case"end":return c.stop()}},null,null,[[0,7]],Promise)}));case 1:case"end":return c.stop()}},null,null,null,Promise)}},{key:"clearAllFromDefaultPreferences",value:function(n){return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.abrupt("return",l.queue.add(function(){return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,t.default.awrap(s.default.setName(n));case 3:return u.next=5,t.default.awrap(s.default.clearAll());case 5:u.next=9;break;case 7:u.prev=7,u.t0=u.catch(0);case 9:case"end":return u.stop()}},null,null,[[0,7]],Promise)}));case 1:case"end":return u.stop()}},null,null,null,Promise)}},{key:"appendNameToKey",value:function(t,n){return"@"+t+":"+n}},{key:"formatValue",value:function(t){return"object"==typeof t||Array.isArray(t)?JSON.stringify(t):""+t}},{key:"setItem",value:function(n,u,s){var f;return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.prev=0,f=l.appendNameToKey(n,u),o.next=4,t.default.awrap(c.default.setItem(f,l.formatValue(s)));case 4:o.next=8;break;case 6:o.prev=6,o.t0=o.catch(0);case 8:case"end":return o.stop()}},null,null,[[0,6]],Promise)}},{key:"multiSet",value:function(n,u){var s;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return f.prev=0,s=Object.keys(u).map(function(t){return[l.appendNameToKey(n,t),l.formatValue(u[t])]}),f.next=4,t.default.awrap(c.default.multiSet(s));case 4:f.next=8;break;case 6:f.prev=6,f.t0=f.catch(0);case 8:case"end":return f.stop()}},null,null,[[0,6]],Promise)}},{key:"multiGet",value:function(n,u){var l,s;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return l={},f.prev=1,f.next=4,t.default.awrap(c.default.getAllKeys());case 4:return s=f.sent.filter(function(t){return t.includes("@"+n+":")}),f.next=7,t.default.awrap(c.default.multiGet(s));case 7:l=f.sent.reduce(function(t,c){return t[c[0].replace("@"+n+":","")]=u?u(c[1]):c[1],t},{}),f.next=12;break;case 10:f.prev=10,f.t0=f.catch(1);case 12:return f.abrupt("return",l);case 13:case"end":return f.stop()}},null,null,[[1,10]],Promise)}},{key:"getItem",value:function(n,u){var s,f;return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:if(s="",o.prev=1,!u){o.next=7;break}return f=l.appendNameToKey(n,u),o.next=6,t.default.awrap(c.default.getItem(f));case 6:s=o.sent;case 7:o.next=11;break;case 9:o.prev=9,o.t0=o.catch(1);case 11:return o.abrupt("return",s);case 12:case"end":return o.stop()}},null,null,[[1,9]],Promise)}},{key:"clear",value:function(n,u){return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,s.next=3,t.default.awrap(c.default.removeItem(l.appendNameToKey(n,u)));case 3:s.next=7;break;case 5:s.prev=5,s.t0=s.catch(0);case 7:case"end":return s.stop()}},null,null,[[0,5]],Promise)}},{key:"clearAll",value:function(n){var u;return t.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,t.default.awrap(c.default.getAllKeys());case 3:return u=l.sent.filter(function(t){return t.includes("@"+n+":")}),l.next=6,t.default.awrap(c.default.multiRemove(u));case 6:l.next=10;break;case 8:l.prev=8,l.t0=l.catch(0);case 10:case"end":return l.stop()}},null,null,[[0,8]],Promise)}},{key:"clearAllByKeys",value:function(n,u){var l;return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.prev=0,l=u.map(function(t){return"@"+n+":"+t}),s.next=4,t.default.awrap(c.default.multiRemove(l));case 4:s.next=8;break;case 6:s.prev=6,s.t0=s.catch(0);case 8:case"end":return s.stop()}},null,null,[[0,6]],Promise)}},{key:"clearAllByRegExp",value:function(n){var u;return t.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return l.prev=0,l.next=3,t.default.awrap(c.default.getAllKeys());case 3:return u=l.sent.filter(function(t){return!!t.match("@"+n+":")}),l.next=6,t.default.awrap(c.default.multiRemove(u));case 6:l.next=10;break;case 8:l.prev=8,l.t0=l.catch(0);case 10:case"end":return l.stop()}},null,null,[[0,8]],Promise)}}]),l})());e.default=f,f.queue=new l.default(1,1/0)},544,[5,80,7,8,545,551,554,463]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"useAsyncStorage",{enumerable:!0,get:function(){return r(d[0]).useAsyncStorage}}),e.default=void 0;var t=r(d[1])(r(d[2])).default;e.default=t},545,[546,5,547]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useAsyncStorage=function(n){return{getItem:function(){for(var u=arguments.length,f=new Array(u),o=0;o1&&"string"!=typeof s){if(null==s)throw new Error("[AsyncStorage] Passing null/undefined as value is not supported. If you want to remove value, Use .removeItem method instead.\nPassed value: "+s+"\nPassed key: "+o+"\n");console.warn("[AsyncStorage] The value for key \""+o+"\" is not a string. This can lead to unexpected behavior/errors. Consider stringifying it.\nPassed value: "+s+"\nPassed key: "+o+"\n")}},_e.convertError=e,_e.convertErrors=function(t){var o=n(t);return o?o.map(function(n){return e(n)}):null}},550,[]); -__d(function(g,r,i,a,m,e,d){m.exports=process.env.PROMISE_QUEUE_COVERAGE?r(d[0]):r(d[1])},551,[552,553]); -__d(function(g,r,i,a,m,e,d){},552,[]); -__d(function(g,r,i,a,m,e,d){!(function(n,t){'use strict';'object'==typeof m&&m.exports&&'function'==typeof r?m.exports=t():'function'==typeof define&&'object'==typeof define.amd?define(t):n.Queue=t()})(this,function(){'use strict';var n='undefined'!=typeof Promise?Promise:function(){return{then:function(){throw new Error('Queue.configure() before use Queue')}}},t=function(){};function o(n,t,o){this.options=o=o||{},this.pendingPromises=0,this.maxPendingPromises=void 0!==n?n:1/0,this.maxQueuedPromises=void 0!==t?t:1/0,this.queue=[]}return o.configure=function(t){n=t},o.prototype.add=function(o){var u=this;return new n(function(n,s,f){u.queue.length>=u.maxQueuedPromises?s(new Error('Queue limit reached')):(u.queue.push({promiseGenerator:o,resolve:n,reject:s,notify:f||t}),u._dequeue())})},o.prototype.getPendingLength=function(){return this.pendingPromises},o.prototype.getQueueLength=function(){return this.queue.length},o.prototype._dequeue=function(){var t=this;if(this.pendingPromises>=this.maxPendingPromises)return!1;var o,u=this.queue.shift();if(!u)return this.options.onEmpty&&this.options.onEmpty(),!1;try{this.pendingPromises++,(o=u.promiseGenerator(),o&&'function'==typeof o.then?o:new n(function(n){n(o)})).then(function(n){t.pendingPromises--,u.resolve(n),t._dequeue()},function(n){t.pendingPromises--,u.reject(n),t._dequeue()},function(n){u.notify(n)})}catch(n){t.pendingPromises--,u.reject(n),t._dequeue()}return!0},o})},553,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])).default;e.default=t},554,[5,555]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).NativeModules.RNDefaultPreference;e.default=t},555,[28]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=(function(){function o(){(0,t.default)(this,o)}return(0,n.default)(o,null,[{key:"grayscaleValue",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,i=o.parseFilterValue(o.getFilterAttributeStyle(t),"grayscale");return void 0!==i?i:n}},{key:"getAttributeFromStyle",value:function(t){var n,i,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(t)if(Array.isArray(l))for(var v=0;v0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return o.getAttributeFromStyle("filter",t,n)}},{key:"getTintColorAttributeStyle",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;return o.getAttributeFromStyle("tintColor",t,n)}},{key:"deleteKeysFromStyle",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(null===t||void 0===t)return t;if(Array.isArray(t))return t.map(function(t){return o.deleteKeysFromStyle(t,n)});if("object"==typeof t){var i={};return Object.keys(t).forEach(function(o){n.includes(o)||(i[o]=t[o])}),i}return t}},{key:"parseFilterValue",value:function(t,n){var o=new RegExp(n+"\\(([0-9]{1,3})%\\)");if(t){var i=o.exec(t);if(i&&i[1])return parseInt(i[1],10)}}},{key:"getConstraintInsideStyle",value:function(t,n,o){var i={start:0,end:0,top:0,bottom:0};return Object.keys(t).forEach(function(o){o.startsWith(n)&&(o.includes("Left")||o.includes("Start")?i.start=t[o]:o.includes("Right")||o.includes("End")?i.end=t[o]:o.includes("Top")?i.top=t[o]:o.includes("Bottom")?i.bottom=t[o]:o.includes("Horizontal")?(i.start=t[o]/2,i.end=t[o]/2):o.includes("Vertical")?(i.top=t[o]/2,i.bottom=t[o]/2):o!==n&&o!==n+"Width"||(i.start=t[o],i.end=t[o],i.top=t[o],i.bottom=t[o]))}),{start:i.start/o,end:i.end/o,top:i.top/o,bottom:i.bottom/o}}},{key:"updateSizeByApplingStyle",value:function(t,n){var i=o.getConstraintInsideStyle(n,"margin",1),l=o.getConstraintInsideStyle(n,"padding",1),u=o.getConstraintInsideStyle(n,"border",1),s=i.start+i.end+l.start+l.end+u.start+u.end,v=i.top+i.bottom+l.top+l.bottom+u.top+u.bottom;return{width:Math.max(0,t.width-s),height:Math.max(0,t.height-v)}}}]),o})();e.default=o},556,[5,7,8]); -__d(function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),i=r(d[0])(r(d[2])),t=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),l=r(d[5]),o=(r(d[0])(r(d[6])),r(d[0])(r(d[7]))),u=r(d[0])(r(d[8])),s=r(d[0])(r(d[9])),c=(function(){function c(){(0,t.default)(this,c)}return(0,n.default)(c,null,[{key:"fontFormat",value:function(e){var i="",t="";switch(e.split(".").pop()){case"otf":i="woff",t="application/x-font-woff";break;case"ttf":default:i="truetype",t="font/truetype"}return{format:i,mime:t}}},{key:"getDefaultFonts",value:function(){return u.default.isIOS()?c.defaultFonts.ios:c.defaultFonts.android}},{key:"fontMappingForApp",value:function(){var i,t,n,s,h,f,B,S,v,p,N,M,T,b,A=arguments;return e.default.async(function(C){for(;;)switch(C.prev=C.next){case 0:i=A.length>0&&void 0!==A[0]?A[0]:"",t=A.length>1&&void 0!==A[1]?A[1]:"regular",n="",s=null,"string"==typeof i&&(s=i.split(","),n=s.find(function(e){return["DroidKufi-Regular","DroidKufi-Bold","Merriweather-Regular","Merriweather-Light","Merriweather-Bold","OpenSans-Bold","OpenSans-Light","OpenSans-Regular"].includes(e)})),h="",f=n,B="",C.t0=n,C.next="DroidKufi-Regular"===C.t0?11:"DroidKufi-Bold"===C.t0?14:"Merriweather-Regular"===C.t0?17:"Merriweather-Light"===C.t0?20:"Merriweather-Bold"===C.t0?23:"OpenSans-Bold"===C.t0?26:"OpenSans-Light"===C.t0?29:"OpenSans-Regular"===C.t0?32:35;break;case 11:return h=l.Platform.select({android:"DroidKufi-Regular",ios:"DroidArabicKufi"}),B="DroidKufi-Regular.ttf",C.abrupt("break",38);case 14:return h=l.Platform.select({android:"DroidKufi-Bold",ios:"DroidArabicKufi-Bold"}),B="DroidKufi-Bold.ttf",C.abrupt("break",38);case 17:return h=l.Platform.select({android:"Merriweather-Regular",ios:"Merriweather"}),B="Merriweather-Regular.otf",C.abrupt("break",38);case 20:return h=l.Platform.select({android:"Merriweather-Light",ios:"Merriweather"}),B="Merriweather-Light.otf",C.abrupt("break",38);case 23:return h="Merriweather-Bold",B="Merriweather-Bold.otf",C.abrupt("break",38);case 26:return h="OpenSans-Bold",B="OpenSans-Bold.ttf",C.abrupt("break",38);case 29:return h=l.Platform.select({android:"OpenSans-Light",ios:"OpenSans"}),B="OpenSans-Light.ttf",C.abrupt("break",38);case 32:return h=l.Platform.select({android:"OpenSans-Regular",ios:"OpenSans"}),B="OpenSans-Regular.ttf",C.abrupt("break",38);case 35:S="",s&&(S=s.find(function(e){return c.getDefaultFonts().includes(e)})),S?(h=S,f=S):("regular"===t?(h="Nunito-Light",B="Nunito-Light.ttf"):"medium"===t?(h="Nunito-Regular",B="Nunito-Regular.ttf"):(h="Nunito-Bold",B="Nunito-Bold.ttf"),f="Nunito");case 38:if(v="",!B){C.next=56;break}if(!u.default.isIOS()){C.next=55;break}return p=c.fontFormat(B),N=p.format,M=p.mime,T=o.default.assetPath(B),b="",C.prev=44,C.next=47,e.default.awrap(o.default.readFileBase64(T));case 47:b=C.sent,C.next=52;break;case 50:C.prev=50,C.t1=C.catch(44);case 52:v="url(data:"+M+";charset=utf-8;base64,"+b+") format('"+N+"')",C.next=56;break;case 55:v="url('file:///android_asset/fonts/"+B+"')";case 56:return C.abrupt("return",{font:h,fontWeb:f,fileName:B,src:v});case 57:case"end":return C.stop()}},null,null,[[44,50]],Promise)}},{key:"dynamicFontMappingForApp",value:function(i){var t,n,l,s,h,f,B,S,v,p,N,M,T,b,A,C=arguments;return e.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return t=i.name,n=i.fontName,l=i.family,s=i.weight,h=i.localPath,f=C.length>1&&void 0!==C[1]?C[1]:"regular",B="",S="",v="",p="",n?(B=n,S=t,v=o.default.getFilename(h),p=h):("regular"===f?(B="Nunito-Light",v="Nunito-Light.ttf"):"medium"===f?(B="Nunito-Regular",v="Nunito-Regular.ttf"):(B="Nunito-Bold",v="Nunito-Bold.ttf"),S="Nunito",p=o.default.assetPath(v)),N=c.fontFormat(v),M=N.format,T=N.mime,b="",I.prev=9,I.next=12,e.default.awrap(o.default.readFileBase64(p));case 12:b=I.sent,I.next=17;break;case 15:I.prev=15,I.t0=I.catch(9);case 17:return A=u.default.isIOS()?"url(data:"+T+";charset=utf-8;base64,"+b+") format('"+M+"')":"url(\"file://"+h+"\");",I.abrupt("return",{font:B,fontWeb:S,fileName:v,src:A,fontFamily:l,fontWeight:s});case 19:case"end":return I.stop()}},null,null,[[9,15]],Promise)}},{key:"getSystemFontScaleFactor",value:function(e,i){return e?Math.min(Math.max(i,c.fontMinScale),c.fontMaxScale):1}},{key:"getDynamicFonts",value:function(i,t){var n,l,u,c,h,f,B,S,v,p,N,M;return e.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:if(n=[],!i){T.next=37;break}l=0;case 3:if(!(l0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fonts,l=e.regular,o=e.medium,u=e.bold,s=t.fonts,c=t.regular,h=t.medium,f=t.bold,B=[];try{B=JSON.parse(n||"[]")}catch(e){}var S,v=[];try{v=JSON.parse(s||"[]")}catch(e){}v&&(S=B=B.filter(function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).name;return e&&!v.find(function(){var i=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).name;return i&&i===e})})).push.apply(S,(0,i.default)(v));return{regular:c||l,medium:h||o,bold:f||u,fonts:JSON.stringify(B)}}}]),c})();_e.default=c,c.fontMinScale=.7,c.fontMaxScale=1.3,c.defaultFonts={ios:["San Francisco","Academy Engraved LET","AcademyEngravedLetPlain","Al Nile","AlNile-Bold","American Typewriter","AmericanTypewriter-Bold","AmericanTypewriter-Condensed","AmericanTypewriter-CondensedBold","AmericanTypewriter-CondensedLight","AmericanTypewriter-Light","Apple Color Emoji","Apple SD Gothic Neo","AppleColorEmoji","AppleSDGothicNeo-Bold","AppleSDGothicNeo-Light","AppleSDGothicNeo-Medium","AppleSDGothicNeo-Regular","AppleSDGothicNeo-SemiBold","AppleSDGothicNeo-Thin","AppleSDGothicNeo-UltraLight","Arial","Arial Hebrew","Arial Rounded MT Bold","Arial-BoldItalicMT","Arial-BoldMT","Arial-ItalicMT","ArialHebrew","ArialHebrew-Bold","ArialHebrew-Light","ArialMT","ArialRoundedMTBold","Avenir","Avenir Next","Avenir Next Condensed","Avenir-Black","Avenir-BlackOblique","Avenir-Book","Avenir-BookOblique","Avenir-Heavy","Avenir-HeavyOblique","Avenir-Light","Avenir-LightOblique","Avenir-Medium","Avenir-MediumOblique","Avenir-Oblique","Avenir-Roman","AvenirNext-Bold","AvenirNext-BoldItalic","AvenirNext-DemiBold","AvenirNext-DemiBoldItalic","AvenirNext-Heavy","AvenirNext-HeavyItalic","AvenirNext-Italic","AvenirNext-Medium","AvenirNext-MediumItalic","AvenirNext-Regular","AvenirNext-UltraLight","AvenirNext-UltraLightItalic","AvenirNextCondensed-Bold","AvenirNextCondensed-BoldItalic","AvenirNextCondensed-DemiBold","AvenirNextCondensed-DemiBoldItalic","AvenirNextCondensed-Heavy","AvenirNextCondensed-HeavyItalic","AvenirNextCondensed-Italic","AvenirNextCondensed-Medium","AvenirNextCondensed-MediumItalic","AvenirNextCondensed-Regular","AvenirNextCondensed-UltraLight","AvenirNextCondensed-UltraLightItalic","Bangla Sangam MN","Baskerville","Baskerville-Bold","Baskerville-BoldItalic","Baskerville-Italic","Baskerville-SemiBold","Baskerville-SemiBoldItalic","Bodoni 72","Bodoni 72 Oldstyle","Bodoni 72 Smallcaps","Bodoni Ornaments","BodoniOrnamentsITCTT","BodoniSvtyTwoITCTT-Bold","BodoniSvtyTwoITCTT-Book","BodoniSvtyTwoITCTT-BookIta","BodoniSvtyTwoOSITCTT-Bold","BodoniSvtyTwoOSITCTT-Book","BodoniSvtyTwoSCITCTT-Book","Bradley Hand","BradleyHandITCTT-Bold","Chalkboard SE","ChalkboardSE-Bold","ChalkboardSE-Light","ChalkboardSE-Regular","Chalkduster","Chalkduster","Cochin","Cochin-Bold","Cochin-BoldItalic","Cochin-Italic","Copperplate","Copperplate-Bold","Copperplate-Light","Courier","Courier New","Courier-Bold","Courier-BoldOblique","Courier-Oblique","CourierNewPS-BoldItalicMT","CourierNewPS-BoldMT","CourierNewPS-ItalicMT","CourierNewPSMT","Damascus","DamascusBold","DamascusLight","DamascusMedium","DamascusSemiBold","Devanagari Sangam MN","DevanagariSangamMN","DevanagariSangamMN-Bold","Didot","Didot-Bold","Didot-Italic","DiwanMishafi","Euphemia UCAS","EuphemiaUCAS-Bold","EuphemiaUCAS-Italic","Farah","Futura","Futura-CondensedExtraBold","Futura-CondensedMedium","Futura-Medium","Futura-MediumItalic","Geeza Pro","GeezaPro-Bold","Georgia","Georgia-Bold","Georgia-BoldItalic","Georgia-Italic","Gill Sans","GillSans-Bold","GillSans-BoldItalic","GillSans-Italic","GillSans-Light","GillSans-LightItalic","GillSans-SemiBold","GillSans-SemiBoldItalic","GillSans-UltraBold","Gujarati Sangam MN","GujaratiSangamMN","GujaratiSangamMN-Bold","Gurmukhi MN","GurmukhiMN-Bold","Heiti SC","Heiti TC","Helvetica","Helvetica Neue","Helvetica-Bold","Helvetica-BoldOblique","Helvetica-Light","Helvetica-LightOblique","Helvetica-Oblique","HelveticaNeue-Bold","HelveticaNeue-BoldItalic","HelveticaNeue-CondensedBlack","HelveticaNeue-CondensedBold","HelveticaNeue-Italic","HelveticaNeue-Light","HelveticaNeue-LightItalic","HelveticaNeue-Medium","HelveticaNeue-MediumItalic","HelveticaNeue-Thin","HelveticaNeue-ThinItalic","HelveticaNeue-UltraLight","HelveticaNeue-UltraLightItalic","Hiragino Mincho ProN","Hiragino Sans","HiraginoSans-W3","HiraginoSans-W6","HiraMinProN-W3","HiraMinProN-W6","Hoefler Text","HoeflerText-Black","HoeflerText-BlackItalic","HoeflerText-Italic","HoeflerText-Regular","Iowan Old Style","IowanOldStyle-Bold","IowanOldStyle-BoldItalic","IowanOldStyle-Italic","IowanOldStyle-Roman","Kailasa","Kailasa-Bold","Kannada Sangam MN","KannadaSangamMN","KannadaSangamMN-Bold","Khmer Sangam MN","Kohinoor Bangla","Kohinoor Devanagari","Kohinoor Telugu","KohinoorBangla-Light","KohinoorBangla-Regular","KohinoorBangla-Semibold","KohinoorDevanagari-Light","KohinoorDevanagari-Regular","KohinoorDevanagari-Semibold","KohinoorTelugu-Light","KohinoorTelugu-Medium","KohinoorTelugu-Regular","Lao Sangam MN","Malayalam Sangam MN","MalayalamSangamMN","MalayalamSangamMN-Bold","Marker Felt","MarkerFelt-Thin","MarkerFelt-Wide","Menlo","Menlo-Bold","Menlo-BoldItalic","Menlo-Italic","Menlo-Regular","Mishafi","Noteworthy","Noteworthy-Bold","Noteworthy-Light","Optima","Optima-Bold","Optima-BoldItalic","Optima-ExtraBlack","Optima-Italic","Optima-Regular","Oriya Sangam MN","OriyaSangamMN","OriyaSangamMN-Bold","Palatino","Palatino-Bold","Palatino-BoldItalic","Palatino-Italic","Palatino-Roman","Papyrus","Papyrus-Condensed","Party LET","PartyLetPlain","PingFang HK","PingFang SC","PingFang TC","PingFangHK-Light","PingFangHK-Medium","PingFangHK-Regular","PingFangHK-Semibold","PingFangHK-Thin","PingFangHK-Ultralight","PingFangSC-Light","PingFangSC-Medium","PingFangSC-Regular","PingFangSC-Semibold","PingFangSC-Thin","PingFangSC-Ultralight","PingFangTC-Light","PingFangTC-Medium","PingFangTC-Regular","PingFangTC-Semibold","PingFangTC-Thin","PingFangTC-Ultralight","Savoye LET","SavoyeLetPlain","Sinhala Sangam MN","SinhalaSangamMN","SinhalaSangamMN-Bold","Snell Roundhand","SnellRoundhand-Black","SnellRoundhand-Bold","Symbol","Tamil Sangam MN","TamilSangamMN-Bold","Telugu Sangam MN","Thonburi","Thonburi-Bold","Thonburi-Light","Times New Roman","TimesNewRomanPS-BoldItalicMT","TimesNewRomanPS-BoldMT","TimesNewRomanPS-ItalicMT","TimesNewRomanPSMT","Trebuchet MS","Trebuchet-BoldItalic","TrebuchetMS-Bold","TrebuchetMS-Italic","Verdana","Verdana-Bold","Verdana-BoldItalic","Verdana-Italic","Zapf Dingbats","ZapfDingbatsITC","Zapfino"],android:["normal","notoserif","sans-serif","sans-serif-light","sans-serif-thin","sans-serif-condensed","sans-serif-medium","serif","Roboto","monospace"]}},557,[5,80,21,7,8,28,463,464,514,495,558]); -__d(function(g,r,i,a,m,e,d){var n=r(d[0]).NativeModules.DynamicFonts,o={};function t(t,u,f,s){if(!s&&o[t])return Promise.resolve(o[t]);if(!t)throw new Error('Name is a required argument');if(!u)throw new Error('Data is a required argument');return new Promise(function(s,l){n.loadFont({name:t,data:u,type:f},function(n,u){n?l(n):(o[t]=u,s(u))})})}m.exports={loadFont:t,loadFonts:function(n,o){var u=n;return u?(u instanceof Array||(u=[u]),Promise.all(u.filter(function(n){return n}).map(function(n){return t(n.name,n.data,n.type,o)}))):Promise.resolve([])},loadFontFromFile:function(o,t){if(!o)throw new Error('name is a required argument');if(!t)throw new Error('filePath is a required argument');return new Promise(function(u,f){n.loadFontFromFile({name:o,filePath:t},function(n,o){n?f(n):u(o)})})}}},558,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),c=(r(d[0])(r(d[5])),(function(){function t(){(0,n.default)(this,t)}return(0,u.default)(t,null,[{key:"init",value:function(){o.default.setRNConfiguration({skipPermissionRequests:!1})}}]),t})());e.default=function u(){var s=this;(0,n.default)(this,u),this.currentPosition=function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,n){o.default.getCurrentPosition(function(n){t(n)},function(t){n(t)},{timeout:0,enableHighAccuracy:!1,maximumAge:18e5})}));case 1:case"end":return t.stop()}},null,null,null,Promise)},this.watchPosition=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{useSignificantChanges:!0};s.watcherId=o.default.getCurrentPosition(function(n){t&&t(n)},function(t){},n)},this.isWatching=function(){return-1!==s.watcherId},this.unWatch=function(){o.default.clearWatch(s.watcherId)},this.stopAll=function(){o.default.stopObserving()},this.watcherId=-1,c.init()}},559,[5,80,7,8,560,463]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1]));m.exports=t.default},560,[5,561]); -__d(function(g,r,i,a,m,e,d){var o=r(d[0])(r(d[1])),t=[],n=!1,s={setRNConfiguration:function(o){r(d[2]).RNCGeolocation.setConfiguration&&r(d[2]).RNCGeolocation.setConfiguration(o)},requestAuthorization:function(){r(d[2]).RNCGeolocation.requestAuthorization()},getCurrentPosition:function(t,n,s){return o.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:if("function"==typeof t){o.next=2;break}throw new Error("Must provide a valid geo_success callback.");case 2:r(d[2]).RNCGeolocation.getCurrentPosition(s||{},t,n||r(d[3]).logError);case 3:case"end":return o.stop()}},null,null,null,Promise)},watchPosition:function(o,s,c){n||(r(d[2]).RNCGeolocation.startObserving(c||{}),n=!0);var u=t.length;return t.push([r(d[2]).GeolocationEventEmitter.addListener("geolocationDidChange",o),s?r(d[2]).GeolocationEventEmitter.addListener("geolocationError",s):null]),u},clearWatch:function(o){var n=t[o];if(n){n[0].remove();var c=n[1];c&&c.remove(),t[o]=void 0;for(var u=!0,l=0;l1&&void 0!==o[1]?o[1]:{},!l.isAndroid()){f.next=9;break}return f.prev=2,f.next=5,n.default.awrap(c.setCustomNativeProps((0,t.default)({},s,{tag:r(d[7]).JSUtils.getViewByRef(u)})));case 5:f.next=9;break;case 7:f.prev=7,f.t0=f.catch(2);case 9:case"end":return f.stop()}},null,null,[[2,7]],Promise)}},{key:"setCustomOnTouch",value:function(u){var s,o=arguments;return n.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:if(s=o.length>1&&void 0!==o[1]?o[1]:{},!l.isAndroid()){f.next=9;break}return f.prev=2,f.next=5,n.default.awrap(c.setCustomOnTouch((0,t.default)({},s,{tag:r(d[7]).JSUtils.getViewByRef(u)})));case 5:f.next=9;break;case 7:f.prev=7,f.t0=f.catch(2);case 9:case"end":return f.stop()}},null,null,[[2,7]],Promise)}},{key:"isAndroid",value:function(){return"android"===o.Platform.OS}},{key:"saveBundleName",value:function(t,u){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",c.saveBundleName(t,u));case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"resetBundleName",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",c.saveBundleName("",""));case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"getBundleName",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",c.getBundleName());case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"restartReactContext",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",c.restartReactContext());case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"isActionModeVisible",value:function(){var t,u;return n.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(!l.isAndroid()){s.next=11;break}return s.prev=1,s.next=4,n.default.awrap(c.isActionModeVisible());case 4:return t=s.sent,u=t.result,s.abrupt("return",u);case 9:s.prev=9,s.t0=s.catch(1);case 11:return s.abrupt("return",!1);case 12:case"end":return s.stop()}},null,null,[[1,9]],Promise)}},{key:"initializeGlobals",value:function(){return l.isAndroid()?c.initializeGlobals():Promise.resolve()}},{key:"assetsCopy",value:function(t,u){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.assetsCopy(t,u));case 2:return n.abrupt("return",Promise.resolve());case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"getBase64FromRes",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.getBase64FromRes(t));case 2:return n.abrupt("return",Promise.resolve());case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"getStatusBarOrientation",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(l.isAndroid()){n.next=2;break}return n.abrupt("return",c.getStatusBarOrientation());case 2:return n.abrupt("return",Promise.resolve());case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"isOrientationLocked",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.isOrientationLocked());case 2:return n.abrupt("return",Promise.resolve());case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"dispatchTap",value:function(t,u,s){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.dispatchTap(t,u,s));case 2:return n.abrupt("return",Promise.resolve());case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"onClose",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.onClose());case 2:return n.abrupt("return",Promise.resolve(!1));case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"onTrackAction",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.onTrackAction(t));case 2:return n.abrupt("return",Promise.resolve(!1));case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"willOpenURL",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.willOpenURL(t));case 2:return n.abrupt("return",Promise.resolve(!1));case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"onTokenExpired",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!l.isAndroid()){n.next=2;break}return n.abrupt("return",c.onTokenExpired());case 2:return n.abrupt("return",Promise.resolve(!1));case 3:case"end":return n.stop()}},null,null,null,Promise)}}]),l})();e.default=p,p.customPropTypes={descendantFocusability:l.default.oneOf([f.block,f.before,f.after]),focusableInTouchMode:l.default.bool,focus:l.default.bool},p.customDefaultProps={focusableInTouchMode:!0,focusable:!0}},586,[5,80,6,7,8,28,201,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[3]),o=(function(){function o(){(0,t.default)(this,o)}return(0,n.default)(o,null,[{key:"isIOS",value:function(){return"ios"===u.Platform.OS}},{key:"addListener",value:function(t,n){var f;if(o.isIOS()){var l=u.NativeModules.BridgeEmitter;f=new u.NativeEventEmitter(l).addListener(t,function(t){n&&n(t)})}else f=u.DeviceEventEmitter.addListener(t,function(t){n&&n(t)});return f}}]),o})();e.default=o,o.NEW_INTENT="onNewIntent",o.ON_KEY_DOWN="onKeyDown",o.ON_KEY_UP="onKeyUp",o.ON_USER_INTERACT="onUserInteract"},587,[5,7,8,28]); -__d(function(g,_r,_i2,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.DownloadError=_e.MAX_PNG_GENERATION_ATTEMPTS=_e.MAX_DOWNLOAD_ATTEMPTS=_e.DOWNLOAD_WARNING_CODES=_e.DOWNLOAD_ERROR_CODES=void 0;var e=_r(d[0])(_r(d[1])),a=_r(d[0])(_r(d[2])),t=_r(d[0])(_r(d[3])),r=_r(d[0])(_r(d[4])),n=_r(d[0])(_r(d[5])),s=_r(d[0])(_r(d[6])),u=_r(d[0])(_r(d[7])),c=_r(d[0])(_r(d[8])),l=(function(e,a){if(!a&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=o(a);if(t&&t.has(e))return t.get(e);var r={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var u=n?Object.getOwnPropertyDescriptor(e,s):null;u&&(u.get||u.set)?Object.defineProperty(r,s,u):r[s]=e[s]}return r.default=e,t&&t.set(e,r),r})(_r(d[9]));function o(e){if("function"!=typeof WeakMap)return null;var a=new WeakMap,t=new WeakMap;return(o=function(e){return e?t:a})(e)}function i(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(i=function(){return!!e})()}var f={TIMEOUT:0,NO_GRANTS:1,INVALID_ZIP:2,NO_ZIP:3,GENERIC_ERROR:4,NO_GRANTS_ALLOWED_IP:5,SERVICE_ERROR:6};_e.DOWNLOAD_ERROR_CODES=f;_e.DOWNLOAD_WARNING_CODES={VALIDATION_WARNING:1,SUBSCRIPTION_WARNING:2};_e.MAX_DOWNLOAD_ATTEMPTS=3;_e.MAX_PNG_GENERATION_ATTEMPTS=2;var p=(function(e){(0,r.default)(o,e);var u,c,l=(u=o,c=i(),function(){var e,a=(0,s.default)(u);if(c){var t=(0,s.default)(this).constructor;e=Reflect.construct(a,arguments,t)}else e=a.apply(this,arguments);return(0,n.default)(this,e)});function o(e,t){var r;return(0,a.default)(this,o),(r=l.call(this)).code=e,r.message=t,r.params={},r}return(0,t.default)(o,[{key:"getCode",value:function(){return this.code}},{key:"getMessage",value:function(){return this.message}},{key:"setParams",value:function(e){this.params=e}},{key:"getParams",value:function(){return this.params}}]),o})((0,u.default)(Error));_e.DownloadError=p;var x=(function(){function r(){(0,a.default)(this,r)}return(0,t.default)(r,null,[{key:"getDatabase",value:function(a,t){var n,s,u,c=arguments;return e.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:n=c.length>2&&void 0!==c[2]?c[2]:{},s=null,u=0;case 3:if(!(u<3)||s){l.next=19;break}return l.prev=4,l.next=7,e.default.awrap(r.getDBFromApiResponse(a,t,n));case 7:s=l.sent,l.next=16;break;case 10:if(l.prev=10,l.t0=l.catch(4),!(l.t0 instanceof p)){l.next=16;break}throw l.t0;case 16:u++,l.next=3;break;case 19:if(!s){l.next=21;break}return l.abrupt("return",s);case 21:throw new Error("Failed to download db -> "+a);case 22:case"end":return l.stop()}},null,null,[[4,10]],Promise)}},{key:"scanPageFolderForImages",value:function(a,t){var r,n,s,u,l,o,i,f,p;return e.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return r=[],n=_r(d[10]).EPaperImageName.LOW,s=_r(d[10]).EPaperImageName.GRAPH,u=_r(d[10]).EPaperImageName.GIF,l=_r(d[10]).EPaperImageName.PDF,o=_r(d[10]).EPaperImageName.HR,x.next=4,e.default.awrap(c.default.readDir(a));case 4:i=x.sent,f=function(a){var c,f,p,x,b,h;return e.default.async(function(w){for(;;)switch(w.prev=w.next){case 0:if(c=i[a],f=c.path,p=c.name,t&&0!==t.length&&!t.find(function(e){return p.search(e)>-1})){w.next=17;break}if(!(p===n||p===s||p===u||p.search(o)>-1)){w.next=16;break}return w.next=5,e.default.awrap((0,_r(d[11]).getImageSize)("file://"+f));case 5:if(x=w.sent,b=x.width,h=x.height,!(b>0&&h>0)){w.next=12;break}r.push({path:f,name:p,width:b,height:h}),w.next=14;break;case 12:return w.next=14,e.default.awrap(_r(d[12]).FileUtils.unlink(f));case 14:w.next=17;break;case 16:p===l&&r.push({path:f,name:p,width:100,height:100});case 17:case"end":return w.stop()}},null,null,null,Promise)},p=0;case 7:if(!(p3&&void 0!==S[3]?S[3]:{},u={},c={},l=s.retryCallback,o=0;case 5:if(!(o<3)||u.db){C.next=45;break}return C.prev=6,o>0&&l&&"function"==typeof l&&l(o+1,3),i=void 0,C.next=11,e.default.awrap(r.getEditionDBAndPagesFromApiResponse(a,t,n,s));case 11:if(x=C.sent,i=x.files,c=x.responseHeaders,h=(b=i).db,w=b.pages,v=b.secret,!h){C.next=31;break}u.db=h,u.secret=v,k=[],E=0;case 20:if(!(E0&&k.push({path:P,name:O,images:D});case 27:E++,C.next=20;break;case 30:k.length>0&&(u.pages=k);case 31:C.next=42;break;case 33:if(C.prev=33,C.t0=C.catch(6),!(C.t0 instanceof p)){C.next=42;break}if(T=f.TIMEOUT,y=f.SERVICE_ERROR,(F=C.t0.getCode())===T||F===y){C.next=40;break}throw C.t0;case 40:C.next=42;break;case 42:o++,C.next=5;break;case 45:return C.abrupt("return",{filenames:u,responseHeaders:c});case 46:case"end":return C.stop()}},null,null,[[6,33]],Promise)}},{key:"downloadResource",value:function(a){var t,r,n,s,u,o,i,x,b,h,w,v,k,E,R,P,O,I,N,A,_,D,T,y,F,S,C,G,U,W,H=arguments;return e.default.async(function(L){for(;;)switch(L.prev=L.next){case 0:return t=H.length>1&&void 0!==H[1]?H[1]:{},r=null,n=f.TIMEOUT,s=f.NO_GRANTS,u=f.INVALID_ZIP,o=f.NO_ZIP,i=f.GENERIC_ERROR,x=f.SERVICE_ERROR,b=l.HTTP_CODES.PARTIAL_CONTENT,h=l.HTTP_CODES.INTERNAL_SERVER_ERROR,w=l.HTTP_CODES.BAD_GATEWAY,v=l.HTTP_CODES.SERVICE_UNAVAILABLE,k=l.HTTP_CODES.GATEWAY_TIMEOUT,L.prev=4,E=t.progressCallback,R=t.completionCallback,P=t.requestHeaders,O=Date.now(),I=0,L.next=10,e.default.awrap(c.default.fetch(a,{timeout:l.default.timeout,startCallBack:function(e){O=Date.now(),e>0&&(I=8*e/1024)},progressCallback:E,requestHeaders:P}));case 10:r=L.sent,R&&(N=(Date.now()-O)/1e3,R({speed:I/N})),L.next=18;break;case 14:throw L.prev=14,L.t0=L.catch(4),new p(n,L.t0.message);case 18:if(!r){L.next=58;break}if(_=(A=r).respInfo,D=A.path,T=_.status,y=_.headers,T!==h){L.next=27;break}throw new p(i,"Internal server error");case 27:if(T!==w&&T!==v&&T!==k){L.next=33;break}throw new p(x,"Server service/gateway error");case 33:if(T!==b){L.next=54;break}if(C={},y&&y["Ta-Validation-Error"])try{C=JSON.parse(y["Ta-Validation-Error"])}catch(e){}G=parseInt(C.invalid||"1",10),L.t1=G,L.next=2===L.t1?40:3===L.t1?43:(L.t1,46);break;case 40:return F=u,S="The zip is not valid",L.abrupt("break",49);case 43:return F=o,S="No zip present",L.abrupt("break",49);case 46:return F=s,S="No grants",L.abrupt("break",49);case 49:throw(U=new p(F,S)).setParams(C),U;case 54:return W=D(),L.abrupt("return",{responseHeaders:y,resource:W});case 56:L.next=60;break;case 58:throw new Error("No response from download URL: "+a);case 60:case"end":return L.stop()}},null,null,[[4,14]],Promise)}},{key:"downloadResourceInFolder",value:function(a,t,n){var s,u,l,o,i,f,p=arguments;return e.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return s=p.length>3&&void 0!==p[3]?p[3]:{},x.next=3,e.default.awrap(r.downloadResource(a,s));case 3:if(u=x.sent,l=u.responseHeaders,o=u.resource,x.t0=o,!x.t0){x.next=11;break}return x.next=10,e.default.awrap(c.default.exists(o));case 10:x.t0=x.sent;case 11:if(!x.t0){x.next=33;break}return x.next=14,e.default.awrap(c.default.mkdir(t));case 14:return i=n?n===_r(d[10]).EPaperImageName.PDF&&"image/gif"===l["Content-Type"]?_r(d[10]).EPaperImageName.GIF:n:c.default.getFilename(o),f=t+i,x.prev=16,x.next=19,e.default.awrap(c.default.moveFile(o,f));case 19:x.next=32;break;case 21:return x.prev=21,x.t1=x.catch(16),x.prev=23,x.next=26,e.default.awrap(c.default.unlink(f));case 26:x.next=30;break;case 28:x.prev=28,x.t2=x.catch(23);case 30:return x.next=32,e.default.awrap(c.default.moveFile(o,f));case 32:return x.abrupt("return",f);case 33:throw new Error("Unable to download "+a+" and move to "+t);case 34:case"end":return x.stop()}},null,null,[[16,21],[23,28]],Promise)}},{key:"downloadResourceAndUnzipInFolder",value:function(a,t){var n,s,u,l,o,i=arguments;return e.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:{},f.next=3,e.default.awrap(r.downloadResource(a,n));case 3:if(s=f.sent,u=s.resource,l=s.responseHeaders,f.t0=u,!f.t0){f.next=11;break}return f.next=10,e.default.awrap(c.default.exists(u));case 10:f.t0=f.sent;case 11:if(!f.t0){f.next=26;break}return f.next=14,e.default.awrap(c.default.mkdir(t));case 14:return f.prev=14,f.next=17,e.default.awrap(c.default.unzip(u,t));case 17:return o=f.sent,c.default.clearUnusedDownloadedFiles(u),f.abrupt("return",{files:o,responseHeaders:l});case 22:throw f.prev=22,f.t1=f.catch(14),c.default.clearUnusedDownloadedFiles(u),f.t1;case 26:throw new Error("Unable to download "+a+" and move to "+t);case 27:case"end":return f.stop()}},null,null,[[14,22]],Promise)}},{key:"getEditionDBAndPagesFromApiResponse",value:function(a,t,n){var s,u,l,o,i,f,p,x,b,h,w,v,k,E,R,P=arguments;return e.default.async(function(O){for(;;)switch(O.prev=O.next){case 0:return s=P.length>3&&void 0!==P[3]?P[3]:{},u={},o={},O.prev=3,O.next=6,e.default.awrap(r.downloadResourceAndUnzipInFolder(a,n,s));case 6:return i=O.sent,l=i.files,o=i.responseHeaders,O.prev=9,f=n+t,p=n+r.getDatabaseName(f),O.next=14,e.default.awrap(c.default.exists(f));case 14:if(!O.sent){O.next=25;break}return O.prev=15,O.next=18,e.default.awrap(c.default.unzip(f,n));case 18:c.default.clearUnusedDownloadedFiles(f),O.next=25;break;case 21:throw O.prev=21,O.t0=O.catch(15),c.default.clearUnusedDownloadedFiles(f),O.t0;case 25:return O.next=27,e.default.awrap(c.default.exists(p));case 27:if(!O.sent){O.next=73;break}if(u.db=p,O.prev=29,u.pages=[],!Array.isArray(l)){O.next=49;break}x=0;case 33:if(!(x2&&void 0!==p[2]?p[2]:{},s=null,x.prev=2,x.next=5,e.default.awrap(r.downloadResourceAndUnzipInFolder(a,t,n));case 5:if(l=x.sent,u=l.files,x.prev=7,!(u.length>0)){x.next=25;break}if(!((o=u.filter(function(e){return e.endsWith(".db")})).length>0)){x.next=25;break}return i=t+o[0],x.next=14,e.default.awrap(c.default.exists(i));case 14:if(!x.sent){x.next=25;break}if(s=i,"function"!=typeof(f=n.callbackAfterUnzip)){x.next=25;break}return x.prev=18,x.next=21,e.default.awrap(f(s));case 21:x.next=25;break;case 23:x.prev=23,x.t0=x.catch(18);case 25:x.next=30;break;case 27:throw x.prev=27,x.t1=x.catch(7),x.t1;case 30:x.next=35;break;case 32:throw x.prev=32,x.t2=x.catch(2),x.t2;case 35:return x.abrupt("return",s);case 36:case"end":return x.stop()}},null,null,[[2,32],[7,27],[18,23]],Promise)}},{key:"getDatabaseName",value:function(e){return c.default.getFilename(e).replace(".zip",".db")}}]),r})();_e.default=x},588,[5,80,7,8,12,14,16,63,576,431,589,590,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.EPaperImageName=e.EPaperImageType=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s={LOW:"LL",GRAPH:"LG",TEXT:"LT",HR:"HR",HR_ZIP:"HR_ZIP",PNG:"PNG"};e.EPaperImageType=s;var u={LOW:"low.jpg",GRAPH:"graph.jpg",GIF:"text.gif",PDF:"pagetext.pdf",PNG:"pagetext.png",PNG_FALLBACK:"text.png",HR:"pag_[0-9]+_[0-9]+.(jpg|gif)",HR_ZIP:"archive.zipgraph"};e.EPaperImageName=u;var h=(function(){function h(){(0,t.default)(this,h)}return(0,n.default)(h,[{key:"setPageId",value:function(t){this.pageId=t}},{key:"getPageId",value:function(){return this.pageId}},{key:"setType",value:function(t){this.type=t}},{key:"getType",value:function(){return this.type}},{key:"setTypeByName",value:function(t){var n=u.HR,h=null;switch(t){case u.LOW:h=s.LOW;break;case u.GRAPH:h=s.GRAPH;break;case u.PNG:case u.PNG_FALLBACK:h=s.PNG;break;case u.GIF:case u.PDF:h=s.TEXT;break;case u.HR_ZIP:h=s.HR_ZIP;break;default:t.search(n)>-1&&(h=s.HR+"_"+t)}this.setType(h)}},{key:"setName",value:function(t){this.name=t}},{key:"getName",value:function(t){var n="",h=s.LOW,c=s.GRAPH,P=s.TEXT,y=s.PNG,p=s.HR_ZIP;switch(this.type){case h:n=u.LOW;break;case c:n=u.GRAPH;break;case P:n=t?u.GIF:u.PDF;break;case y:n=u.PNG;break;case p:n=u.HR_ZIP;break;default:n=this.name}return n}},{key:"setBase64",value:function(t){this.base64=t}},{key:"getBase64",value:function(){return this.base64}},{key:"setWidth",value:function(t){this.width=t}},{key:"getWidth",value:function(){return this.width}},{key:"setHeight",value:function(t){this.height=t}},{key:"getHeight",value:function(){return this.height}},{key:"isLow",value:function(){return this.type===s.LOW}},{key:"isGraph",value:function(){return this.type===s.GRAPH}},{key:"isText",value:function(){return this.type===s.TEXT}},{key:"isHighRes",value:function(){return this.type.includes(s.HR)}},{key:"isHighResZip",value:function(){return this.type===s.HR_ZIP}},{key:"isTextPNG",value:function(){return this.type===s.PNG}},{key:"isTextGIF",value:function(){return this.name?this.name===u.GIF:this.base64.endsWith(u.GIF)}},{key:"isTextPDF",value:function(){return this.name?this.name===u.PDF:this.base64.endsWith(u.PDF)}}]),h})();e.default=h},589,[5,7,8]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.queryCache=_e.prefetch=_e.imageBase64=_e.getSizeAsync=_e.getSize=_e.getImageSize=_e.getImageBase64String=_e.cropImage=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5])),a=_r(d[0])(_r(d[6])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=h(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(n,a,u):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[7])),l=_r(d[8]),i=_r(d[0])(_r(d[9])),s=_r(d[0])(_r(d[10])),f=_r(d[0])(_r(d[11])),c=_r(d[0])(_r(d[12])),p=_r(d[0])(_r(d[13]));function h(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(h=function(e){return e?r:t})(e)}_e.imageBase64=function(e){var t,r,o,a,u,i,s;return n.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:if(t=e.source,f.prev=1,(r="number"==typeof t)?(a=l.Image.resolveAssetSource(t),o=a.uri):o=t.uri,!(i=_r(d[14]).PlatformUtils.isIOS())&&!g.__DEV__&&r){f.next=26;break}if(!i||!_r(d[14]).StringUtils.isLocalURL(o)){f.next=21;break}return s=o.replace("file://",""),f.prev=8,f.next=11,n.default.awrap(c.default.readFileBase64(s));case 11:u=f.sent,f.next=19;break;case 14:return f.prev=14,f.t0=f.catch(8),f.next=18,n.default.awrap(c.default.fetchBase64(o));case 18:u=f.sent;case 19:f.next=24;break;case 21:return f.next=23,n.default.awrap(c.default.fetchBase64(o));case 23:u=f.sent;case 24:f.next=29;break;case 26:return f.next=28,n.default.awrap(_r(d[15]).OurBridge.getBase64FromRes(o));case 28:u=f.sent;case 29:return f.abrupt("return","data:image/jpeg;base64,"+u);case 32:f.prev=32,f.t1=f.catch(1);case 34:return f.abrupt("return",void 0);case 35:case"end":return f.stop()}},null,null,[[1,32],[8,14]],Promise)};_e.getImageBase64String=function(e){return"data:"+(_r(d[14]).PlatformUtils.isAndroid()?"image/png":"image/jpeg")+";base64,"+e};_e.queryCache=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return l.Image.queryCache(e)};var y=function(e){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){if("string"==typeof e)l.Image.getSize(e,function(e,r){t({width:e,height:r})},function(e){t({width:0,height:0})});else if("number"==typeof e)try{t(l.Image.resolveAssetSource(e))}catch(e){t({width:0,height:0})}else t({width:0,height:0})}));case 1:case"end":return t.stop()}},null,null,null,Promise)};_e.getImageSize=y;_e.getSize=function(e){var t,r,o,a,u,l=arguments;return n.default.async(function(i){for(;;)switch(i.prev=i.next){case 0:return t=l.length>1&&void 0!==l[1]?l[1]:function(){},r=l.length>2&&void 0!==l[2]?l[2]:function(){},i.prev=2,i.next=5,n.default.awrap(y(e));case 5:o=i.sent,a=o.width,u=o.height,t(a,u),i.next=14;break;case 11:i.prev=11,i.t0=i.catch(2),r(i.t0);case 14:case"end":return i.stop()}},null,null,[[2,11]],Promise)};_e.getSizeAsync=function(e){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,r){l.Image.getSize(e,function(e,r){t({width:e,height:r})},function(e){r(e)})}));case 1:case"end":return t.stop()}},null,null,null,Promise)};_e.cropImage=function(e){var t,r=arguments;return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return t=r.length>1&&void 0!==r[1]?r[1]:{},n.abrupt("return",o.default.cropImage(e,t));case 2:case"end":return n.stop()}},null,null,null,Promise)};_e.prefetch=function(e){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",l.Image.prefetch(e));case 1:case"end":return t.stop()}},null,null,null,Promise)};var v=function(e){if(void 0===e||null===e)return!1;if("object"==typeof e){if(e.uri&&!e.uri.length)return!1;if(!_r(d[14]).StringUtils.isDomainValid(e.uri))return!1}return!0},b=function(e){var t,n={},o=[];if(e){t=_r(d[14]).CssUtils.deleteKeysFromStyle(e,["fontSize","filters","image"]);var a=_r(d[14]).CssUtils.getTintColorAttributeStyle(e);a&&(n.tintColor=a);var u=_r(d[14]).CssUtils.getAttributeFromStyle("filters",e);if(u){n.filters=u,o.push(t);var l=_r(d[14]).CssUtils.getAttributeFromStyle("backgroundColor",t);l&&("transparent"===l&&(l=_r(d[14]).colors.transparent),o.push({backgroundColor:l})),"inherit"!==_r(d[14]).CssUtils.getAttributeFromStyle("image",e)&&(t={width:"100%",height:"100%"})}}return(0,r.default)({},n,{filterStyle:o,imageStyle:t})};function S(e){var n=e.source,o=e.error,a=e.animated,i=e.onError,s=e.style,f=e.tintColor,c=(0,t.default)(e,["source","error","animated","onError","style","tintColor"]);if(o)return null;_r(d[14]).PlatformUtils.isIOS()&&!_r(d[14]).NetworkUtils.isOnline()&&n&&n.uri&&!_r(d[14]).StringUtils.isLocalURL(n.uri)&&!o?n.cache="only-if-cached":n&&"web"===n.cache&&(n.cache="reload");var p=[];f&&p.push({tintColor:f}),p.push(s);var h=a?l.Animated.Image:l.Image;return u.default.createElement(h,(0,r.default)({onError:function(e){e.nativeEvent;"function"==typeof i&&i()},source:n,style:p},c))}function C(e){var n=e.source,o=e.error,a=e.onError,l=(0,t.default)(e,["source","error","onError"]);return o?null:(n&&"reload"===n.cache&&(n.cache="web"),u.default.createElement(i.default,(0,r.default)({onError:function(e){e.nativeEvent;"function"==typeof a&&a()},source:n},l)))}var w=u.default.memo(function(n){var o=(0,u.useState)(!1),a=(0,e.default)(o,2),l=a[0],i=a[1],c=(0,u.useState)(!1),h=(0,e.default)(c,2),y=h[0],w=h[1],P=function(e){var t=n.onError;"function"==typeof t&&t(e)},E=n.source,x=n.forceRNComponent,I=n.forceFastComponent,U=n.progress,O=n.forceProgressComponent,_=n.forceZoomComponent,k=n.style,j=(0,t.default)(n,["source","forceRNComponent","forceFastComponent","progress","forceProgressComponent","forceZoomComponent","style"]),A=_r(d[14]).PlatformUtils.isAndroid(),F=A&&!_r(d[14]).PlatformUtils.isPreviousMarshmallow(),z=!A,B=x||j.animated||A&&!F||!I&&(z||F&&!l),R=!y;if(!v(E))return null;var M=b(k),N=M.imageStyle,q=M.filterStyle,D=M.filters,L=(0,t.default)(M,["imageStyle","filterStyle","filters"]),T=null;return O||U?T=u.default.createElement(s.default,(0,r.default)({},j,L,{style:N,source:E})):_?T=u.default.createElement(f.default,(0,r.default)({},j,L,{style:N,source:E})):B?T=u.default.createElement(S,(0,r.default)({},j,L,{style:N,source:E,error:l,onError:function(e){P(e),i(!0)}})):R&&(T=u.default.createElement(C,(0,r.default)({},j,L,{style:N,source:E,error:y,onError:function(e){P(e),w(!0)}}))),u.default.createElement(p.default,(0,r.default)({style:q,filters:D},j,L),T)},function(e,t){return _r(d[14]).JSUtils.equals(e,t)});w.propTypes={animated:a.default.bool,progress:a.default.bool,forceProgressComponent:a.default.bool,forceRNComponent:a.default.bool,forceFastComponent:a.default.bool,forceZoomComponent:a.default.bool,source:a.default.oneOfType([a.default.shape({uri:a.default.string}),a.default.number]),onError:a.default.func,style:a.default.oneOfType([a.default.object,a.default.number,a.default.array])},w.defaultProps={animated:!1,progress:!1,forceProgressComponent:!1,forceRNComponent:!1,forceFastComponent:!1,forceZoomComponent:!1};var P=w;_e.default=P},590,[5,41,108,6,80,591,201,17,28,592,593,594,576,596,462,584]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n=r(d[3]).NativeModules.RNCImageEditor,o=(function(){function o(){(0,t.default)(this,o)}return(0,u.default)(o,null,[{key:"cropImage",value:function(t,u){return n.cropImage(t,u)}}]),o})();e.default=o},591,[5,7,8,28]); -__d(function(g,r,i,a,m,_e,d){'use strict';var e=r(d[0]),o=r(d[1]);function t(e){return e&&'object'==typeof e&&'default'in e?e:{default:e}}var n=t(r(d[2])),l=t(e),s=o.NativeModules.FastImageView;var c=e.memo(function(e){var t=e.source,s=e.tintColor,c=e.onLoadStart,u=e.onProgress,f=e.onLoad,y=e.onError,I=e.onLoadEnd,E=e.style,F=e.fallback,L=e.children,w=e.resizeMode,S=void 0===w?'cover':w,C=e.forwardedRef,b=r(d[3])(e,["source","tintColor","onLoadStart","onProgress","onLoad","onError","onLoadEnd","style","fallback","children","resizeMode","forwardedRef"]);if(F){var M=r(d[2])({},t);delete M.cache;var p=o.Image.resolveAssetSource(M);return l.default.createElement(o.View,{style:[h.imageContainer,E],ref:C},l.default.createElement(o.Image,n.default({},b,{style:o.StyleSheet.absoluteFill,source:p,onLoadStart:c,onProgress:u,onLoad:f,onError:y,onLoadEnd:I,resizeMode:S})),L)}var z=o.Image.resolveAssetSource(t);return l.default.createElement(o.View,{style:[h.imageContainer,E],ref:C},l.default.createElement(v,n.default({},b,{tintColor:s,style:o.StyleSheet.absoluteFill,source:z,onFastImageLoadStart:c,onFastImageProgress:u,onFastImageLoad:f,onFastImageError:y,onFastImageLoadEnd:I,resizeMode:S})),L)}),u=e.forwardRef(function(e,o){return l.default.createElement(c,n.default({forwardedRef:o},e))});u.displayName='FastImage';var f=u;f.resizeMode={contain:'contain',cover:'cover',stretch:'stretch',center:'center'},f.cacheControl={immutable:'immutable',web:'web',cacheOnly:'cacheOnly'},f.priority={low:'low',normal:'normal',high:'high'},f.preload=function(e){return s.preload(e)},f.clearMemoryCache=function(){return s.clearMemoryCache()},f.clearDiskCache=function(){return s.clearDiskCache()};var h=o.StyleSheet.create({imageContainer:{overflow:'hidden'}}),v=o.requireNativeComponent('FastImageView',f,{nativeOnly:{onFastImageLoadStart:!0,onFastImageProgress:!0,onFastImageLoad:!0,onFastImageError:!0,onFastImageLoadEnd:!0}});m.exports=f},592,[17,28,6,108]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.createImageProgress=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),o=_r(d[0])(_r(d[5])),a=_r(d[0])(_r(d[6])),l=_r(d[0])(_r(d[7])),i=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n})(_r(d[8])),s=_r(d[0])(_r(d[9])),u=_r(d[10]);function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var h=u.StyleSheet.create({centered:(0,l.default)({},u.StyleSheet.absoluteFillObject,{alignItems:'center',justifyContent:'center'})}),p=u.ActivityIndicator,y=function(e){return e&&e.uri||String(e)},v=function(c){var v;return(v=(function(s){(0,n.default)(b,s);var h,v,S=(h=b,v=f(),function(){var e,t=(0,a.default)(h);if(v){var r=(0,a.default)(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return(0,o.default)(this,e)});function b(e){var r;return(0,t.default)(this,b),(r=S.call(this,e)).ref=null,r.handleRef=function(e){r.ref=e},r.handleLoadStart=function(){r.state.loading||1===r.state.progress||r.setState({error:null,loading:!0,progress:0}),r.bubbleEvent('onLoadStart')},r.handleProgress=function(e){var t=e.nativeEvent.loaded/e.nativeEvent.total;t!==r.state.progress&&1!==r.state.progress&&r.setState({loading:t<1,progress:t}),r.bubbleEvent('onProgress',e)},r.handleError=function(e){r.setState({loading:!1,error:e.nativeEvent}),r.bubbleEvent('onError',e)},r.handleLoad=function(e){1!==r.state.progress&&r.setState({error:null,loading:!1,progress:1}),r.bubbleEvent('onLoad',e)},r.handleLoadEnd=function(e){r.setState({loading:!1,progress:1}),r.bubbleEvent('onLoadEnd',e)},r.state={sourceKey:y(e.source),error:null,loading:!1,progress:0,thresholdReached:!e.threshold},r}return(0,r.default)(b,[{key:"componentDidMount",value:function(){var e=this;this.props.threshold&&(this.thresholdTimer=setTimeout(function(){e.setState({thresholdReached:!0}),e.thresholdTimer=null},this.props.threshold))}},{key:"componentWillUnmount",value:function(){this.thresholdTimer&&clearTimeout(this.thresholdTimer)}},{key:"setNativeProps",value:function(e){this.ref&&this.ref.setNativeProps(e)}},{key:"measure",value:function(e){this.ref&&this.ref.measure(e)}},{key:"bubbleEvent",value:function(e,t){'function'==typeof this.props[e]&&this.props[e](t)}},{key:"render",value:function(){var t=this.props,r=t.children,n=t.errorContainerStyle,o=t.indicator,a=t.indicatorContainerStyle,s=t.indicatorProps,f=t.renderError,h=t.renderIndicator,y=t.source,v=t.style,S=(t.threshold,t.imageStyle),b=(0,e.default)(t,["children","errorContainerStyle","indicator","indicatorContainerStyle","indicatorProps","renderError","renderIndicator","source","style","threshold","imageStyle"]);if(!y||!y.uri)return i.default.createElement(u.View,{style:v,ref:this.handleRef},i.default.createElement(c,(0,l.default)({},b,{source:y,style:[u.StyleSheet.absoluteFill,S]})),r);var E,P=this.state,L=P.progress,j=P.sourceKey,k=P.thresholdReached,O=P.loading,C=P.error;if(C)f&&(E=i.default.createElement(u.View,{style:n},f(C)));else if((O||L<1)&&k){if(h)E=h(L,!O||!L);else{var I='function'==typeof o?o:p;E=i.default.createElement(I,(0,l.default)({progress:L,indeterminate:!O||!L},s))}E=i.default.createElement(u.View,{style:a},E)}return i.default.createElement(u.View,{style:v,ref:this.handleRef},i.default.createElement(c,(0,l.default)({},b,{key:j,onLoadStart:this.handleLoadStart,onProgress:this.handleProgress,onError:this.handleError,onLoad:this.handleLoad,onLoadEnd:this.handleLoadEnd,source:y,style:[u.StyleSheet.absoluteFill,S]})),E,r)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var r=y(e.source);return r!==t.sourceKey?{sourceKey:r,error:null,loading:!1,progress:0}:null}}]),b})(i.Component)).propTypes={children:s.default.node,errorContainerStyle:s.default.any,indicator:s.default.func,indicatorContainerStyle:s.default.any,indicatorProps:s.default.object,renderIndicator:s.default.func,renderError:s.default.func,source:s.default.any,style:s.default.any,imageStyle:s.default.object,threshold:s.default.number},v.defaultProps={indicatorContainerStyle:h.centered,errorContainerStyle:h.centered,threshold:50},v.prefetch=u.Image.prefetch,v.getSize=u.Image.getSize,v};_e.createImageProgress=v;var S=v(u.Image);_e.default=S},593,[5,108,7,8,12,14,16,6,17,201,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])).default;e.default=t},594,[5,595]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),h=r(d[0])(r(d[9])),p=r(d[10]);function w(){try{var o=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(o){}return(w=function(){return!!o})()}var P=(function(h){(0,l.default)(y,h);var P,S,v=(P=y,S=w(),function(){var o,t=(0,f.default)(P);if(S){var n=(0,f.default)(this).constructor;o=Reflect.construct(t,arguments,n)}else o=t.apply(this,arguments);return(0,c.default)(this,o)});function y(){return(0,n.default)(this,y),v.apply(this,arguments)}return(0,u.default)(y,[{key:"render",value:function(){var n=this.props,u=n.onError,l=n.onLoad,c=n.onLoadEnd,f=n.onLoadStart,h=n.onProgress,w=n.onScale,P=n.onTap,S=n.onViewTap,v=n.source,y=n.loadingIndicatorSource,L=n.style,T=(0,t.default)(n,["onError","onLoad","onLoadEnd","onLoadStart","onProgress","onScale","onTap","onViewTap","source","loadingIndicatorSource","style"]),b=p.Image.resolveAssetSource(v),E=p.Image.resolveAssetSource(y);if(b&&''===b.uri&&console.warn('source.uri should not be an empty string'),T.src&&console.warn('The component requires a `source` property rather than `src`.'),b&&b.uri){var I=b.width,O=b.height,R=(0,t.default)(b,["width","height"]),_=p.StyleSheet.flatten([{width:I,height:O},L]),q=(0,o.default)({onPhotoViewerError:u,onPhotoViewerLoad:l,onPhotoViewerLoadEnd:c,onPhotoViewerLoadStart:f,onPhotoViewerProgress:h,onPhotoViewerScale:w,onPhotoViewerTap:P,onPhotoViewerViewTap:S},T,{style:_,src:R,loadingIndicatorSrc:E&&E.uri||null});return s.default.createElement(V,q)}return null}}]),y})(s.default.PureComponent);e.default=P,P.propTypes=(0,o.default)({source:h.default.oneOfType([h.default.shape({uri:h.default.string}),h.default.number]).isRequired,loadingIndicatorSource:h.default.oneOfType([h.default.shape({uri:h.default.string}),h.default.number]),fadeDuration:h.default.number,minimumZoomScale:h.default.number,maximumZoomScale:h.default.number,resizeMode:h.default.string,scale:h.default.number,onLoad:h.default.func,onLoadEnd:h.default.func,onLoadStart:h.default.func,onProgress:h.default.func,onScale:h.default.func,onTap:h.default.func,onViewTap:h.default.func,showsHorizontalScrollIndicator:h.default.bool,showsVerticalScrollIndicator:h.default.bool},p.ViewPropTypes);var V=(0,p.requireNativeComponent)('RNPhotoView',P,{nativeOnly:{onPhotoViewerError:!0,onPhotoViewerLoad:!0,onPhotoViewerLoadEnd:!0,onPhotoViewerLoadStart:!0,onPhotoViewerProgress:!0,onPhotoViewerScale:!0,onPhotoViewerTap:!0,onPhotoViewerViewTap:!0,src:!0,loadingIndicatorSrc:!0}})},595,[5,6,108,7,8,12,14,16,17,201,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.getFilterComponent=e.FILTERS=void 0;var t,l,o=r(d[0])(r(d[1])),A=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),T=r(d[0])(r(d[4])),O=r(d[0])(r(d[5])),R={COLORMATRIX:"colormatrix",NORMAL:"normal",RGBA:"rgba",SATURATE:"saturate",HUEROTATE:"huerotate",LUMINANCETOALPHA:"luminancetoalpha",INVERT:"invert",GRAYSCALE:"grayscale",SEPIA:"sepia",NIGHTVISION:"nightvision",WARM:"warm",COOL:"cool",BRIGHTNESS:"brightness",CONTRAST:"contrast",TEMPERATURE:"temperature",TINT:"tint",THRESHOLD:"threshold",TECHNICOLOR:"technicolor",POLAROID:"polaroid",TOBGR:"tobgr",KODACHROME:"kodachrome",BROWNI:"browni",VINTAGE:"vintage",NIGHT:"night",PREDATOR:"predator",LSD:"lsd",COLORTONE:"colortone",DUOTONE:"duotone",PROTANOMALY:"protanomaly",DEUTERANOMALY:"deuteranomaly",TRITANOMALY:"tritanomaly",PROTANOPIA:"protanopia",DEUTERANOPIA:"deuteranopia",TRITANOPIA:"tritanopia",ACHROMATOMALY:"achormatomaly",ACHROMATOPSIA:"achromatopsia"};e.FILTERS=R;var f=(t={},(0,T.default)(t,R.COLORMATRIX,r(d[6]).ColorMatrix),(0,T.default)(t,R.NORMAL,r(d[6]).Normal),(0,T.default)(t,R.RGBA,r(d[6]).RGBA),(0,T.default)(t,R.SATURATE,r(d[6]).Saturate),(0,T.default)(t,R.HUEROTATE,r(d[6]).HueRotate),(0,T.default)(t,R.LUMINANCETOALPHA,r(d[6]).LuminanceToAlpha),(0,T.default)(t,R.INVERT,r(d[6]).Invert),(0,T.default)(t,R.GRAYSCALE,r(d[6]).Grayscale),(0,T.default)(t,R.SEPIA,r(d[6]).Sepia),(0,T.default)(t,R.NIGHTVISION,r(d[6]).Nightvision),(0,T.default)(t,R.WARM,r(d[6]).Warm),(0,T.default)(t,R.COOL,r(d[6]).Cool),(0,T.default)(t,R.BRIGHTNESS,r(d[6]).Brightness),(0,T.default)(t,R.CONTRAST,r(d[6]).Contrast),(0,T.default)(t,R.TEMPERATURE,r(d[6]).Temperature),(0,T.default)(t,R.TINT,r(d[6]).Tint),(0,T.default)(t,R.THRESHOLD,r(d[6]).Threshold),(0,T.default)(t,R.TECHNICOLOR,r(d[6]).Technicolor),(0,T.default)(t,R.POLAROID,r(d[6]).Polaroid),(0,T.default)(t,R.TOBGR,r(d[6]).ToBGR),(0,T.default)(t,R.KODACHROME,r(d[6]).Kodachrome),(0,T.default)(t,R.BROWNI,r(d[6]).Browni),(0,T.default)(t,R.VINTAGE,r(d[6]).Vintage),(0,T.default)(t,R.NIGHT,r(d[6]).Night),(0,T.default)(t,R.PREDATOR,r(d[6]).Predator),(0,T.default)(t,R.LSD,r(d[6]).Lsd),(0,T.default)(t,R.COLORTONE,r(d[6]).ColorTone),(0,T.default)(t,R.DUOTONE,r(d[6]).DuoTone),(0,T.default)(t,R.PROTANOMALY,r(d[6]).Protanomaly),(0,T.default)(t,R.DEUTERANOMALY,r(d[6]).Deuteranomaly),(0,T.default)(t,R.TRITANOMALY,r(d[6]).Tritanomaly),(0,T.default)(t,R.PROTANOPIA,r(d[6]).Protanopia),(0,T.default)(t,R.DEUTERANOPIA,r(d[6]).Deuteranopia),(0,T.default)(t,R.TRITANOPIA,r(d[6]).Tritanopia),(0,T.default)(t,R.ACHROMATOMALY,r(d[6]).Achromatomaly),(0,T.default)(t,R.ACHROMATOPSIA,r(d[6]).Achromatopsia),t),n=(l={},(0,T.default)(l,R.NORMAL,r(d[6]).normal),(0,T.default)(l,R.RGBA,r(d[6]).rgba),(0,T.default)(l,R.SATURATE,r(d[6]).saturate),(0,T.default)(l,R.HUEROTATE,r(d[6]).hueRotate),(0,T.default)(l,R.LUMINANCETOALPHA,r(d[6]).luminanceToAlpha),(0,T.default)(l,R.INVERT,r(d[6]).invert),(0,T.default)(l,R.GRAYSCALE,r(d[6]).grayscale),(0,T.default)(l,R.SEPIA,r(d[6]).sepia),(0,T.default)(l,R.NIGHTVISION,r(d[6]).nightvision),(0,T.default)(l,R.WARM,r(d[6]).warm),(0,T.default)(l,R.COOL,r(d[6]).cool),(0,T.default)(l,R.BRIGHTNESS,r(d[6]).brightness),(0,T.default)(l,R.CONTRAST,r(d[6]).contrast),(0,T.default)(l,R.TEMPERATURE,r(d[6]).temperature),(0,T.default)(l,R.TINT,r(d[6]).tint),(0,T.default)(l,R.THRESHOLD,r(d[6]).threshold),(0,T.default)(l,R.TECHNICOLOR,r(d[6]).technicolor),(0,T.default)(l,R.POLAROID,r(d[6]).polaroid),(0,T.default)(l,R.TOBGR,r(d[6]).toBGR),(0,T.default)(l,R.KODACHROME,r(d[6]).kodachrome),(0,T.default)(l,R.BROWNI,r(d[6]).browni),(0,T.default)(l,R.VINTAGE,r(d[6]).vintage),(0,T.default)(l,R.NIGHT,r(d[6]).night),(0,T.default)(l,R.PREDATOR,r(d[6]).predator),(0,T.default)(l,R.LSD,r(d[6]).lsd),(0,T.default)(l,R.COLORTONE,r(d[6]).colorTone),(0,T.default)(l,R.DUOTONE,r(d[6]).duoTone),(0,T.default)(l,R.PROTANOMALY,r(d[6]).protanomaly),(0,T.default)(l,R.DEUTERANOMALY,r(d[6]).deuteranomaly),(0,T.default)(l,R.TRITANOMALY,r(d[6]).tritanomaly),(0,T.default)(l,R.PROTANOPIA,r(d[6]).protanopia),(0,T.default)(l,R.DEUTERANOPIA,r(d[6]).deuteranopia),(0,T.default)(l,R.TRITANOPIA,r(d[6]).tritanopia),(0,T.default)(l,R.ACHROMATOMALY,r(d[6]).achromatomaly),(0,T.default)(l,R.ACHROMATOPSIA,r(d[6]).achromatopsia),l);e.getFilterComponent=function(t){return f[t]};var E=function(t){return n[t]};var N=function(t){var l=t.filters,T=t.children,R=(0,u.default)(t,["filters","children"]);if(Array.isArray(l)&&!r(d[7]).JSUtils.isEmpty(l)){var f=l.reduce(function(t,l){var o=l.filter,u=l.params,T=void 0===u?[]:u,O=E(o);return"function"==typeof O&&t.push(O.apply(void 0,(0,A.default)(T))),t},[]);return O.default.createElement(r(d[6]).ColorMatrix,(0,o.default)({},R,{matrix:(0,r(d[6]).concatColorMatrices)(f)}),T)}return T};e.default=N},596,[5,6,21,108,27,17,597,462]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),c=r(d[0])(r(d[3]));m.exports=(0,t.default)({},o.default,c.default,{concatColorMatrices:r(d[4]).concatColorMatrices})},597,[5,6,598,599,601]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),f=n.default.forwardRef(function(t,u){var f=t.matrix,c=t.parentMatrix,s=t.children,C=(0,l.default)(t,["matrix","parentMatrix","children"]),p=Array.isArray(f[0])?(0,r(d[6]).concatColorMatrices)(f):f,x=c?(0,r(d[6]).concatTwoColorMatrices)(p,c):p,v=n.default.Children.only(s);return v&&v.type&&v.type.isColorMatrixFilter?n.default.cloneElement(v,(0,o.default)({},v.props,{ref:u,parentMatrix:x})):n.default.createElement(r(d[7]).NativeFilter,(0,o.default)({matrix:x,ref:u},C),s)});f.isColorMatrixFilter=!0,f.displayName='ColorMatrix';var c=function(o){var l=o.split(''),n=(0,t.default)(l),u=n[0],f=n.slice(1);return'rgba'===o?'RGBA':u.toUpperCase()+f.join('')},s={ColorTone:function(t){return n.default.forwardRef(function(u,c){var s=u.desaturation,C=u.toned,p=u.lightColor,x=u.darkColor,v=(0,l.default)(u,["desaturation","toned","lightColor","darkColor"]);return n.default.createElement(f,(0,o.default)({matrix:t(s,C,p,x),ref:c},v))})},RGBA:function(t){return n.default.forwardRef(function(u,c){var s=u.red,C=u.green,p=u.blue,x=u.alpha,v=(0,l.default)(u,["red","green","blue","alpha"]);return n.default.createElement(f,(0,o.default)({matrix:t(s,C,p,x),ref:c},v))})},DuoTone:function(t){return n.default.forwardRef(function(u,c){var s=u.firstColor,C=u.secondColor,p=(0,l.default)(u,["firstColor","secondColor"]);return n.default.createElement(f,(0,o.default)({matrix:t(s,C),ref:c},p))})}},C=function(t){return s[t]||function(t){return n.default.forwardRef(function(u,c){var s=u.amount,C=(0,l.default)(u,["amount"]);return n.default.createElement(f,(0,o.default)({matrix:t(s),ref:c},C))})}},p=Object.keys(u.default).reduce(function(t,o){var l=c(o);return t[l]=C(l)(u.default[o]),t[l].displayName=l,t[l].isColorMatrixFilter=!0,t},{ColorMatrix:f});e.default=p},598,[5,502,6,108,17,599,601,602]); -__d(function(_g,_r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=_r(d[0])(_r(d[1])),o=_r(d[2]),t=_r(d[0])(_r(d[3])),r='ios'===o.Platform.OS?1:255,a='ios'===o.Platform.OS?255:1,u=function(n){return[(n>>16&255)/255,(n>>8&255)/255,(255&n)/255]},c={normal:[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],luminanceToAlpha:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0],invert:[-1,0,0,0,r,0,-1,0,0,r,0,0,-1,0,r,0,0,0,1,0],nightvision:[.1,.4,0,0,0,.3,1,.3,0,0,0,.4,.1,0,0,0,0,0,1,0],warm:[1.06,0,0,0,0,0,1.01,0,0,0,0,0,.93,0,0,0,0,0,1,0],cool:[.99,0,0,0,0,0,.93,0,0,0,0,0,1.08,0,0,0,0,0,1,0],technicolor:[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337/a,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398/a,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138/a,0,0,0,1,0],polaroid:[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],toBGR:[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],kodachrome:[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502/a,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203/a,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946/a,0,0,0,1,0],browni:[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873/a,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127/a,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283/a,0,0,0,1,0],vintage:[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123/a,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591/a,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296/a,0,0,0,1,0],lsd:[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],protanomaly:[.817,.183,0,0,0,.333,.667,0,0,0,0,.125,.875,0,0,0,0,0,1,0],deuteranomaly:[.8,.2,0,0,0,.258,.742,0,0,0,0,.142,.858,0,0,0,0,0,1,0],tritanomaly:[.967,.033,0,0,0,0,.733,.267,0,0,0,.183,.817,0,0,0,0,0,1,0],protanopia:[.567,.433,0,0,0,.558,.442,0,0,0,0,.242,.758,0,0,0,0,0,1,0],deuteranopia:[.625,.375,0,0,0,.7,.3,0,0,0,0,.3,.7,0,0,0,0,0,1,0],tritanopia:[.95,.05,0,0,0,0,.433,.567,0,0,0,.475,.525,0,0,0,0,0,1,0],achromatopsia:[.299,.587,.114,0,0,.299,.587,.114,0,0,.299,.587,.114,0,0,0,0,0,1,0],achromatomaly:[.618,.32,.062,0,0,.163,.775,.062,0,0,.163,.32,.516,0,0,0,0,0,1,0]},l={normal:function(){return c.normal},rgba:function(){return[arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,0,0,0,0,0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,0,0,0,0,0,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,0,0,0,0,0,arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,0]},saturate:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0]},hueRotate:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=Math.cos(n),t=Math.sin(n);return[.213+.787*o-.213*t,.715-.715*o-.715*t,.072-.072*o+.928*t,0,0,.213-.213*o+.143*t,.715+.285*o+.14*t,.072-.072*o-.283*t,0,0,.213-.213*o-.787*t,.715-.715*o+.715*t,.072+.928*o+.072*t,0,0,0,0,0,1,0]},luminanceToAlpha:function(){return c.luminanceToAlpha},invert:function(){return c.invert},grayscale:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,o=(0,t.default)(1-n,0,1);return[.2126+.7874*o,.7152-.7152*o,.0722-.0722*o,0,0,.2126-.2126*o,.7152+.2848*o,.0722-.0722*o,0,0,.2126-.2126*o,.7152-.7152*o,.0722+.9278*o,0,0,0,0,0,1,0]},sepia:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,o=(0,t.default)(1-n,0,1);return[.393+.607*o,.769-.769*o,.189-.189*o,0,0,.349-.349*o,.686+.314*o,.168-.168*o,0,0,.272-.272*o,.534-.534*o,.131+.869*o,0,0,0,0,0,1,0]},nightvision:function(){return c.nightvision},warm:function(){return c.warm},cool:function(){return c.cool},brightness:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return[n,0,0,0,0,0,n,0,0,0,0,0,n,0,0,0,0,0,1,0]},contrast:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,o=.5*(1-n);return[n,0,0,0,r*o,0,n,0,0,r*o,0,0,n,0,r*o,0,0,0,1,0]},temperature:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return[1+n,0,0,0,0,0,1,0,0,0,0,0,1-n,0,0,0,0,0,1,0]},tint:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return[1+n,0,0,0,0,0,1,0,0,0,0,0,1+n,0,0,0,0,0,1,0]},threshold:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,o=7.8693,t=15.5397,a=2.091;return[o,t,a,0,-r*n,o,t,a,0,-r*n,o,t,a,0,-r*n,0,0,0,1,0]},technicolor:function(){return c.technicolor},polaroid:function(){return c.polaroid},toBGR:function(){return c.toBGR},kodachrome:function(){return c.kodachrome},browni:function(){return c.browni},vintage:function(){return c.vintage},night:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.1;return[-2*n,-n,0,0,0,-n,0,n,0,0,0,n,2*n,0,0,0,0,0,1,0]},predator:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return[11.224130630493164*n,-4.794486999511719*n,-2.8746118545532227*n,0*n,.40342438220977783*n/a,-3.6330697536468506*n,9.193157196044922*n,-2.951810836791992*n,0*n,-1.316135048866272*n/a,-3.2184197902679443*n,-4.2375030517578125*n,7.476448059082031*n,0*n,.8044459223747253*n/a,0,0,0,1,0]},lsd:function(){return c.lsd},colorTone:function(t,r,a,c){var l=u(void 0===a?16770432:(0,o.processColor)(a)),f=(0,n.default)(l,3),v=f[0],h=f[1],p=f[2],s=u(void 0===c?3375104:(0,o.processColor)(c)),g=(0,n.default)(s,3),y=g[0],b=g[1],w=g[2];return[.3,.59,.11,0,0,v,h,p,void 0===t?.2:t,0,y,b,w,void 0===r?.15:r,0,v-y,h-b,p-w,0,0]},duoTone:function(t,a){var c=u(void 0===t?16770432:(0,o.processColor)(t)),l=(0,n.default)(c,3),f=l[0],v=l[1],h=l[2],p=u(void 0===a?3375104:(0,o.processColor)(a)),s=(0,n.default)(p,3),g=s[0],y=s[1],b=s[2];return[f-g,0,0,0,g*r,v-y,0,0,0,y*r,h-b,0,0,0,b*r,0,0,0,1,0]},protanomaly:function(){return c.protanomaly},deuteranomaly:function(){return c.deuteranomaly},tritanomaly:function(){return c.tritanomaly},protanopia:function(){return c.protanopia},deuteranopia:function(){return c.deuteranopia},tritanopia:function(){return c.tritanopia},achromatopsia:function(){return c.achromatopsia},achromatomaly:function(){return c.achromatomaly}};e.default=l},599,[5,41,28,600]); -__d(function(g,r,i,a,m,e,d){m.exports=function(n,t,o){return to?o:n:nt?t:n}},600,[]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.concatColorMatrices=e.concatTwoColorMatrices=void 0;var o=r(d[0])(r(d[1])),t=function(t,n){(0,o.default)(Array.isArray(t)&&20===t.length,"Color matrix matB should be an array with 20 elements."),(0,o.default)(Array.isArray(n)&&20===n.length,"Color matrix matA should be an array with 20 elements.");for(var l=Array(20),c=0,i=0;i<20;i+=5){for(var s=0;s<4;s++)l[c++]=n[i+0]*t[s+0]+n[i+1]*t[s+5]+n[i+2]*t[s+10]+n[i+3]*t[s+15];l[c++]=n[i+0]*t[4]+n[i+1]*t[9]+n[i+2]*t[14]+n[i+3]*t[19]+n[i+4]}return l};e.concatTwoColorMatrices=t;e.concatColorMatrices=function(n){return(0,o.default)(Array.isArray(n)&&n.length>0,"Matrices should be an array of non zero length."),n.reduce(t)}},601,[5,36]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.NativeFilter=void 0;var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),f=r(d[0])(r(d[3])),n=(0,r(d[4]).requireNativeComponent)('CMIFColorMatrixImageFilter'),o=f.default.forwardRef(function(o,u){var c=o.style,v=(0,l.default)(o,["style"]);return(0,r(d[5]).checkStyle)(c),f.default.createElement(n,(0,t.default)({style:[r(d[5]).defaultStyle.container,c],ref:u},v))});e.NativeFilter=o},602,[5,6,108,17,28,603]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStyle=e.defaultStyle=void 0;var t=r(d[0]),o=r(d[1])(r(d[2])),l=t.StyleSheet.create({container:{backgroundColor:'#fff0'}});e.defaultStyle=l;e.checkStyle=function(l){if(l){var n=t.StyleSheet.flatten(l).backgroundColor;(0,o.default)(0!==(0,t.processColor)(n),"ImageFilter: Can't use '"+n+"' backgroundColor, consider using '#fff0' instead.")}}},603,[28,5,604]); -__d(function(g,r,i,a,m,e,d){'use strict';var n=function(n){if(void 0===n)throw new Error('invariant(...): Second argument must be a string.')};m.exports=function(o,t){for(var f=arguments.length,s=new Array(f>2?f-2:0),u=2;u2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=Math.floor((e.getWidth()+t.getWidthOffsetC())*t.getScaleX()),l=Math.floor((e.getHeight()+t.getHeightOffsetC())*t.getScaleY()),s=Math.floor((e.getLeft()+t.getBboxLeft()-t.getTotalOffsetX())*t.getScaleX())-Math.floor(t.getBboxLeft()*t.getScaleX()),u=Math.floor((e.getTop()+t.getBboxTop()-t.getTotalOffsetY())*t.getScaleY())-Math.floor(t.getBboxTop()*t.getScaleY());e.getLeft()+t.getBboxLeft()-t.getTotalOffsetX()<0&&(n=Math.floor((e.getWidth()+t.getXOffsetC())*t.getScaleX()),s=0),e.getTop()+t.getBboxTop()-t.getTotalOffsetY()<0&&(l=Math.floor((e.getHeight()+t.getYOffsetC())*t.getScaleY()),u=0),e.getLeft()+e.getWidth()+t.getWidthOffsetC()+t.getBboxLeft()+t.getBboxRight()-t.getTotalOffsetX()>t.getPageWidthMedium()&&(n=Math.floor((e.getWidth()+t.getXOffsetC())*t.getScaleX())),e.getTop()+e.getHeight()+t.getHeightOffsetC()+t.getBboxTop()+t.getBboxBottom()-t.getTotalOffsetY()>t.getPageHeightMedium()&&(l=Math.floor((e.getHeight()+t.getYOffsetC())*t.getScaleY()));var f=r(d[18]).JSUtils.isEmpty(i)?1:v.getHrScale(t,i,o),c={top:u*f,start:s*f,width:n*f,height:l*f};return g.isLayoutDebug,c}},{key:"isBorderBoxToFix",value:function(e,t){return e.getLeft()+e.getWidth()-t.getXOffset()===t.getPageWidthMedium()||e.getTop()+e.getHeight()-t.getYOffset()===t.getPageHeightMedium()}},{key:"getHrImageByBox",value:function(e,t){return e.getImages().find(function(e){return e.isHighRes()&&e.getBase64().includes(t)})}},{key:"getHrImageName",value:function(e,t,i){return"pag_"+e+"_"+t+"."+(i?"jpg":"gif")}},{key:"getHrGraphImageName",value:function(e,t){return v.getHrImageName(e,t,!0)}},{key:"getHrTextImageName",value:function(e,t){return v.getHrImageName(e,t,!1)}},{key:"allPageArticlesHrImages",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e?e.getArticles().map(function(i){if(t||!i.isAd()&&!i.isLayout())return v.allPageArticleHrImages(e,i)}).filter(function(e){return!!e}):[]}},{key:"allPageArticleHrImages",value:function(e,t){var i=t.getXmlId(),o={xmlId:i,boxesInfo:t.getBoxesInfo(),boxes:[]};return t.getBoxes().forEach(function(t){var n=v.getHrGraphImageName(i,t.getId()),l=v.getHrTextImageName(i,t.getId()),s=v.getHrImageByBox(e,n),u=v.getHrImageByBox(e,l);t.getHeight()>0&&t.getWidth()>0&&o.boxes.push({box:t,graph:s,text:u})}),o}},{key:"isModeLow",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getNewsmemoryConfig().network)===m.LOW_ONLY}},{key:"isModeMid",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getNewsmemoryConfig().network)===m.MID_AND_LOW}},{key:"isModeFull",value:function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getNewsmemoryConfig().network)===m.FULL}},{key:"getFormattedIssue",value:function(e){var t=g.getActivePSetup(),i=t.dateFormat,o=t.showWeekAfterDate,n=r(d[18]).DateUtils.formatDate(e,r(d[18]).DateUtils.getPatternByDateFormat(r(d[18]).DateUtils.getSeparator(),i,o));return"98"===i&&(n="Numero "+n),n.charAt(0).toUpperCase()+n.substring(1)}},{key:"getPageViewSize",value:function(e,t,i,o){var n=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];if(e){var l=g.getActivePSetup().maxZoom,s=n&&e.isDoubleTruck()?2:1,u=e.getFrameWidth()*o/s/t.width,f=e.getFrameHeight()/t.height,c=Math.max(u,f);return i?(c=u,u<1&&(l*=u)):l*=c,{scaledWidth:e.getFrameWidth()/s/c,scaledHeight:e.getFrameHeight()/c,maxZoom:l}}}},{key:"getZoomingFactor",value:function(){var e=g.getActivePSetup().zoomingFactor;return g.getNewsmemoryConfig().getGraphSize()/100*(e/100)}},{key:"getHorizontalPageDips",value:function(e){var t=1;if(e){var i=e.isDoubleTruck()?2:1;t=Math.max(e.getWidth(),e.getFrameWidth())/i/72*h.default.getReferenceDpi()}return t}},{key:"getVerticalPageDips",value:function(e){var t=1;e&&(t=Math.max(e.getHeight(),e.getFrameHeight())/72*h.default.getReferenceDpi());return t}},{key:"isCDNEnabled",value:function(){var e=g.getNewsmemoryConfig(),t=e.cdnEnabled,i=e.cdnServer;return t&&!!i}},{key:"dosHexTimestamp2Unix",value:function(e){return v.dosTimestamp2Unix(parseInt(e,16))}},{key:"dosTimestamp2Unix",value:function(e){var t=new Date;return t.setUTCFullYear(1980+(e>>25&255)),t.setUTCMonth((e>>21&15)-1),t.setUTCDate(e>>16&31),t.setUTCHours(e>>11&31),t.setUTCMinutes(e>>5&63),t.setUTCSeconds((31&e)<<1),t.getTime()}},{key:"mtime2Unix",value:function(e){if(8===e.length)return-2&Math.floor(v.dosHexTimestamp2Unix(e)/1e3);var t=-2&parseInt(e,10);return r(d[18]).StringUtils.pad(t,6)}},{key:"getCDNChecksum",value:function(e){var t;if(v.isCDNEnabled()){var i=e.reduce(function(e,t){return e+","+v.mtime2Unix(t)},"");t=r(d[18]).StringUtils.getMd5(i)}return t}},{key:"encryptFilenames",value:function(e,t){var i=e.join(","),o=t.split("|"),l=(0,n.default)(o,2),s=l[0],h=l[1];if(s&&h)try{s=u.default.enc.Utf8.parse((0,c.default)(s).toString().substring(0,32)),h=u.default.enc.Utf8.parse((0,c.default)(h).toString().substring(0,16)),i=f.default.encrypt(i,s,{iv:h,mode:u.default.mode.CBC}).toString(),i=u.default.enc.Base64.stringify(u.default.enc.Utf8.parse(i))}catch(e){}return i}},{key:"getSpinnerColor",value:function(){var e=g.getRssIndex().supportColor;return e&&!r(d[18]).ColorUtils.isClearColor(e)?e:g.loadingColor&&!r(d[18]).ColorUtils.isClearColor(g.loadingColor)?g.loadingColor:g.splashBgColor&&!r(d[18]).ColorUtils.isClearColor(g.splashBgColor)?g.splashBgColor:r(d[18]).colors.black}},{key:"getAllArticles",value:function(e){var t=[];e&&e.getPages().forEach(function(e){e&&(t=t.concat(e.getArticles()))});return t}},{key:"getPageSize",value:function(e,t){var i=t.getLowImage(),o=t.getGraphImage(),n=t.getFrameWidth(e.isFirstPageDoubleTruck()),l=t.getFrameHeight();return o?(n=o.getWidth(),l=o.getHeight()):i&&i.getWidth()>0&&(l=i.getHeight()/i.getWidth()*t.getFrameWidth()),{pageWidth:n,pageHeight:l}}},{key:"getPageSizeFixed",value:function(e,t){if(e&&t&&t.isDoubleTruck()&&!t.getGraphImage()){var i=e.getFirstPage();if(i){var o=v.getPageSize(e,i);return i.isDoubleTruck()?o:(o.pageWidth*=2,o)}}return v.getPageSize(e,t)}},{key:"isCustomIndexDisabled",value:function(e){return-1!==e.indexOf('')}},{key:"getPagesToRenderByIndex",value:function(e,t,i,o){for(var n=0,l=0,s=0,u=!1,f=0;f1&&(i=o[0],t=o[1])}return{mainpSetup:i,xpSetup:t}}},{key:"isXPaperActive",value:function(){var e=g.getActivePSetup().pSetup;return!!v.parseXpSetup(e).xpSetup}},{key:"isTrialModeEnabled",value:function(e){return!!e&&v.numberOfPagesInTrialMode(e.getIssue(),e.getEdition())>-1}},{key:"numberOfPagesInTrialMode",value:function(e,t){var i=g.getActivePSetup(),o=i.pageSeeNewspaperPreview,n=i.seeNewspaperPreview,l=i.loginStatus,s=i.lastIssue,u=i.lastEdition;if(!n)return-1;var f=l.oneTimeToken;if(3===n&&!f)return-1;if(4===n&&!l.isLoggedIn())return-1;if(5===n||6===n){if(e!==s||t!==u)return-1;if(6===n&&!l.isLoggedIn())return-1}return l.userHasAccess(e,t)?-1:o}},{key:"getChildArtPrintImageInfo",value:function(e){var t,i,o=0,n=0,l=e.getBoxes().map(function(l){return n=Math.max(l.getLeft()+l.getWidth(),n),o=Math.max(l.getTop()+l.getHeight(),o),t=t?Math.min(t,l.getLeft()):l.getLeft(),i=i?Math.min(i,l.getTop()):l.getTop(),"pag_"+e.getXmlId()+"_"+l.getId()+","+l.getLeft()+","+l.getTop()+","+l.getWidth()+","+l.getHeight()+"0-0"}),s=e.getBoxesInfo();return n=parseInt((n-t)*s.getZoomX(),10),o=parseInt((o-i)*s.getZoomY(),10),{boxesString:l.join(" "),maxX:n,maxY:o,medDpi:Math.ceil(s.getMedDpi())}}},{key:"getFullEditionNameWithArticle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i="";switch(g.getActivePSetup().language){case"0":e.toLowerCase().startsWith("the ")||(i="the ");break;case"1":t&&(e.toLowerCase().startsWith("il ")||e.toLowerCase().startsWith("lo ")||e.toLowerCase().startsWith("la")||e.toLowerCase().startsWith("il ")||e.toLowerCase().startsWith("gli ")||e.toLowerCase().startsWith("le ")||e.toLowerCase().startsWith("l'")?i="de ":e.toLowerCase().startsWith("di ")||(i="di "))}return""+i+e}},{key:"getArticleId",value:function(e){var t=-1;return e&&(t=(t=e.replace(/art_/g,"")).replace(/\.xml/g,"")),t}},{key:"getTOCStyle",value:function(e){var t=g.getActivePSetup(),i=t.tocStyle,o=t.tocStylePreview;return e&&v.numberOfPagesInTrialMode(e.getIssue(),e.getEdition())>-1?o:i}},{key:"oneLevelIndex",value:function(e){return"all_art"===v.getTOCStyle(e)}},{key:"getIndexLayout",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(g.getNewsmemoryConfig().enableTabIndexMode&&!t)return p.TABS;var i=v.getTOCStyle(e);return"all_art"===i?p.ALL_ART:"list_main_thumbs"!==i||t?p.LIST:p.LIST_WITH_THUMBNAIL}},{key:"replaceWatermarkPlaceholders",value:function(e){for(var t,i=e,o=g.getActivePSetup(),n=o.paperName,l=o.loginStatus,s=o.copyright,u=new RegExp(/\$([a-zA-Z0-9]+)/g);null!==(t=u.exec(e));)if(t.length>1){var f,c=t[0],m=void 0;switch(t[1]){case"device":m=r(d[18]).PlatformUtils.model();break;case"platform":m=r(d[18]).PlatformUtils.isAndroid()?"Android":"iOS";break;case"os":m=r(d[18]).PlatformUtils.getSystemName()+" "+r(d[18]).PlatformUtils.getSystemVersion();break;case"appVersion":m=h.default.getAppVersion();break;case"appName":m=r(d[18]).PlatformUtils.appName();break;case"paperName":m=n;break;case"extId":if(l){var p=l.extid;r(d[18]).JSUtils.isNull(p)||(m=p)}break;case"TAUID":if(l){var v=l.TAUID;v>-1&&(m=v)}break;case"machineId":var y=g.machineId;y&&(m=y.substring(y.length-6));break;case"copyright":s&&(m=s)}m=null!=(f=m)?f:"",i=i.replace(c,m)}return i}},{key:"addWatermarkToPageComponent",value:function(n){var l,s,u,f,c,h,m,p,y,x,I,T,S,k=arguments;return e.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:if(l=k.length>1&&void 0!==k[1]?k[1]:{},s=g.getActivePSetup(),u=s.loginStatus,f=s.watermarkText,(c=v.replaceWatermarkPlaceholders(f))||(h=g.machineId)&&(c=h.substring(h.length-6),u&&!r(d[18]).JSUtils.isNull(u.extid)&&(c=u.extid)),!c){e.next=13;break}return c=(c=c.replace("TAUID_","T")).replace("MACID_","M"),m=g.getFontsConfig(),p=m.fontRegular,y="Nunito-Light",p&&(y=p.font),x=l.cssClasses,I=void 0===x?[]:x,T=(0,o.default)(l,["cssClasses"]),S=r(d[21]).Css.getStyleObjByCssClasses(["newsmemory-watermark"].concat((0,i.default)(I))),e.abrupt("return",r(d[18]).FileUtils.addTextWatermarkToImage((0,t.default)({position:"center",quality:90,fontSize:40,fontName:y,color:r(d[18]).colors.white_transparent_135,shadowStyle:{color:r(d[18]).colors.black,dx:0,dy:0,radius:1}},T,S,{src:"file://"+n,text:c})));case 13:throw new Error("Unable to set a watermark text!");case 14:case"end":return e.stop()}},null,null,null,Promise)}}]),v})();_e.default=v},605,[5,80,6,21,108,41,8,7,606,635,614,640,641,642,643,589,646,458,462,648,702,708]); -__d(function(g,r,i,a,m,e,d){var o,t;o=this,t=function(o){return o},"object"==typeof e?m.exports=e=t(r(d[0]),r(d[1]),r(d[2]),r(d[3]),r(d[4]),r(d[5]),r(d[6]),r(d[7]),r(d[8]),r(d[9]),r(d[10]),r(d[11]),r(d[12]),r(d[13]),r(d[14]),r(d[15]),r(d[16]),r(d[17]),r(d[18]),r(d[19]),r(d[20]),r(d[21]),r(d[22]),r(d[23]),r(d[24]),r(d[25]),r(d[26]),r(d[27]),r(d[28]),r(d[29]),r(d[30]),r(d[31]),r(d[32])):"function"==typeof define&&define.amd?define(["./core","./x64-core","./lib-typedarrays","./enc-utf16","./enc-base64","./md5","./sha1","./sha256","./sha224","./sha512","./sha384","./sha3","./ripemd160","./hmac","./pbkdf2","./evpkdf","./cipher-core","./mode-cfb","./mode-ctr","./mode-ctr-gladman","./mode-ofb","./mode-ecb","./pad-ansix923","./pad-iso10126","./pad-iso97971","./pad-zeropadding","./pad-nopadding","./format-hex","./aes","./tripledes","./rc4","./rabbit","./rabbit-legacy"],t):o.CryptoJS=t(o.CryptoJS)},606,[607,608,609,610,611,612,613,614,615,616,617,618,619,620,621,622,623,624,625,626,627,628,629,630,631,632,633,634,635,636,637,638,639]); -__d(function(g,_r2,_i,a,m,_e,d){var t,n;t=this,n=function(){var t=t||(function(t,n){var i=Object.create||(function(){function t(){}return function(n){var i;return t.prototype=n,i=new t,t.prototype=null,i}})(),e={},r=e.lib={},o=r.Base={extend:function(t){var n=i(this);return t&&n.mixIn(t),n.hasOwnProperty('init')&&this.init!==n.init||(n.init=function(){n.$super.init.apply(this,arguments)}),n.init.prototype=n,n.$super=this,n},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var n in t)t.hasOwnProperty(n)&&(this[n]=t[n]);t.hasOwnProperty('toString')&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},s=r.WordArray=o.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=void 0!=n?n:4*t.length},toString:function(t){return(t||u).stringify(this)},concat:function(t){var n=this.words,i=t.words,e=this.sigBytes,r=t.sigBytes;if(this.clamp(),e%4)for(var o=0;o>>2]>>>24-o%4*8&255;n[e+o>>>2]|=s<<24-(e+o)%4*8}else for(o=0;o>>2]=i[o>>>2];return this.sigBytes+=r,this},clamp:function(){var n=this.words,i=this.sigBytes;n[i>>>2]&=4294967295<<32-i%4*8,n.length=t.ceil(i/4)},clone:function(){var t=o.clone.call(this);return t.words=this.words.slice(0),t},random:function(n){for(var i,e=[],r=function(n){n=n;var i=987654321,e=4294967295;return function(){var r=((i=36969*(65535&i)+(i>>16)&e)<<16)+(n=18e3*(65535&n)+(n>>16)&e)&e;return r/=4294967296,(r+=.5)*(t.random()>.5?1:-1)}},o=0;o>>2]>>>24-r%4*8&255;e.push((o>>>4).toString(16)),e.push((15&o).toString(16))}return e.join('')},parse:function(t){for(var n=t.length,i=[],e=0;e>>3]|=parseInt(t.substr(e,2),16)<<24-e%8*4;return new s.init(i,n/2)}},f=c.Latin1={stringify:function(t){for(var n=t.words,i=t.sigBytes,e=[],r=0;r>>2]>>>24-r%4*8&255;e.push(String.fromCharCode(o))}return e.join('')},parse:function(t){for(var n=t.length,i=[],e=0;e>>2]|=(255&t.charCodeAt(e))<<24-e%4*8;return new s.init(i,n)}},h=c.Utf8={stringify:function(t){try{return decodeURIComponent(escape(f.stringify(t)))}catch(t){throw new Error('Malformed UTF-8 data')}},parse:function(t){return f.parse(unescape(encodeURIComponent(t)))}},p=r.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new s.init,this._nDataBytes=0},_append:function(t){'string'==typeof t&&(t=h.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(n){var i=this._data,e=i.words,r=i.sigBytes,o=this.blockSize,c=r/(4*o),u=(c=n?t.ceil(c):t.max((0|c)-this._minBufferSize,0))*o,f=t.min(4*u,r);if(u){for(var h=0;h>>2]|=n[o]<<24-o%4*8;i.call(this,f,t)}else i.apply(this,arguments)}).prototype=t}})(),n.lib.WordArray},"object"==typeof e?m.exports=e=t(r(d[0])):"function"==typeof define&&define.amd?define(["./core"],t):t(n.CryptoJS)},609,[607]); -__d(function(g,r,_i,a,m,e,d){var n,t;n=this,t=function(n){return(function(){var t=n,o=t.lib.WordArray,f=t.enc;f.Utf16=f.Utf16BE={stringify:function(n){for(var t=n.words,o=n.sigBytes,f=[],i=0;i>>2]>>>16-i%4*8&65535;f.push(String.fromCharCode(c))}return f.join('')},parse:function(n){for(var t=n.length,f=[],i=0;i>>1]|=n.charCodeAt(i)<<16-i%2*16;return o.create(f,2*t)}};function i(n){return n<<8&4278255360|n>>>8&16711935}f.Utf16LE={stringify:function(n){for(var t=n.words,o=n.sigBytes,f=[],c=0;c>>2]>>>16-c%4*8&65535);f.push(String.fromCharCode(u))}return f.join('')},parse:function(n){for(var t=n.length,f=[],c=0;c>>1]|=i(n.charCodeAt(c)<<16-c%2*16);return o.create(f,2*t)}}})(),n.enc.Utf16},"object"==typeof e?m.exports=e=t(r(d[0])):"function"==typeof define&&define.amd?define(["./core"],t):t(n.CryptoJS)},610,[607]); -__d(function(g,r,_i,a,m,e,d){var t,n;t=this,n=function(t){return(function(){var n=t,i=n.lib.WordArray;n.enc.Base64={stringify:function(t){var n=t.words,i=t.sigBytes,o=this._map;t.clamp();for(var f=[],c=0;c>>2]>>>24-c%4*8&255)<<16|(n[c+1>>>2]>>>24-(c+1)%4*8&255)<<8|n[c+2>>>2]>>>24-(c+2)%4*8&255,h=0;h<4&&c+.75*h>>6*(3-h)&63));var v=o.charAt(64);if(v)for(;f.length%4;)f.push(v);return f.join('')},parse:function(t){var n=t.length,i=this._map,f=this._reverseMap;if(!f){f=this._reverseMap=[];for(var c=0;c>>6-s%4*2;f[c>>>2]|=(h|v)<<24-c%4*8,c++}return i.create(f,c)}})(),t.enc.Base64},"object"==typeof e?m.exports=e=n(r(d[0])):"function"==typeof define&&define.amd?define(["./core"],n):n(t.CryptoJS)},611,[607]); -__d(function(g,r,_i,_a,m,e,_d){var n,t;n=this,t=function(n){return(function(t){var o=n,a=o.lib,i=a.WordArray,s=a.Hasher,c=o.algo,f=[];!(function(){for(var n=0;n<64;n++)f[n]=4294967296*t.abs(t.sin(n+1))|0})();var h=c.MD5=s.extend({_doReset:function(){this._hash=new i.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(n,t){for(var o=0;o<16;o++){var a=t+o,i=n[a];n[a]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var s=this._hash.words,c=n[t+0],h=n[t+1],l=n[t+2],p=n[t+3],y=n[t+4],D=n[t+5],H=n[t+6],M=n[t+7],w=n[t+8],B=n[t+9],b=n[t+10],x=n[t+11],j=n[t+12],k=n[t+13],z=n[t+14],A=n[t+15],C=s[0],F=s[1],J=s[2],P=s[3];F=d(F=d(F=d(F=d(F=_(F=_(F=_(F=_(F=v(F=v(F=v(F=v(F=u(F=u(F=u(F=u(F,J=u(J,P=u(P,C=u(C,F,J,P,c,7,f[0]),F,J,h,12,f[1]),C,F,l,17,f[2]),P,C,p,22,f[3]),J=u(J,P=u(P,C=u(C,F,J,P,y,7,f[4]),F,J,D,12,f[5]),C,F,H,17,f[6]),P,C,M,22,f[7]),J=u(J,P=u(P,C=u(C,F,J,P,w,7,f[8]),F,J,B,12,f[9]),C,F,b,17,f[10]),P,C,x,22,f[11]),J=u(J,P=u(P,C=u(C,F,J,P,j,7,f[12]),F,J,k,12,f[13]),C,F,z,17,f[14]),P,C,A,22,f[15]),J=v(J,P=v(P,C=v(C,F,J,P,h,5,f[16]),F,J,H,9,f[17]),C,F,x,14,f[18]),P,C,c,20,f[19]),J=v(J,P=v(P,C=v(C,F,J,P,D,5,f[20]),F,J,b,9,f[21]),C,F,A,14,f[22]),P,C,y,20,f[23]),J=v(J,P=v(P,C=v(C,F,J,P,B,5,f[24]),F,J,z,9,f[25]),C,F,p,14,f[26]),P,C,w,20,f[27]),J=v(J,P=v(P,C=v(C,F,J,P,k,5,f[28]),F,J,l,9,f[29]),C,F,M,14,f[30]),P,C,j,20,f[31]),J=_(J,P=_(P,C=_(C,F,J,P,D,4,f[32]),F,J,w,11,f[33]),C,F,x,16,f[34]),P,C,z,23,f[35]),J=_(J,P=_(P,C=_(C,F,J,P,h,4,f[36]),F,J,y,11,f[37]),C,F,M,16,f[38]),P,C,b,23,f[39]),J=_(J,P=_(P,C=_(C,F,J,P,k,4,f[40]),F,J,c,11,f[41]),C,F,p,16,f[42]),P,C,H,23,f[43]),J=_(J,P=_(P,C=_(C,F,J,P,B,4,f[44]),F,J,j,11,f[45]),C,F,A,16,f[46]),P,C,l,23,f[47]),J=d(J,P=d(P,C=d(C,F,J,P,c,6,f[48]),F,J,M,10,f[49]),C,F,z,15,f[50]),P,C,D,21,f[51]),J=d(J,P=d(P,C=d(C,F,J,P,j,6,f[52]),F,J,p,10,f[53]),C,F,b,15,f[54]),P,C,h,21,f[55]),J=d(J,P=d(P,C=d(C,F,J,P,w,6,f[56]),F,J,A,10,f[57]),C,F,H,15,f[58]),P,C,k,21,f[59]),J=d(J,P=d(P,C=d(C,F,J,P,y,6,f[60]),F,J,x,10,f[61]),C,F,l,15,f[62]),P,C,B,21,f[63]),s[0]=s[0]+C|0,s[1]=s[1]+F|0,s[2]=s[2]+J|0,s[3]=s[3]+P|0},_doFinalize:function(){var n=this._data,o=n.words,a=8*this._nDataBytes,i=8*n.sigBytes;o[i>>>5]|=128<<24-i%32;var s=t.floor(a/4294967296),c=a;o[15+(i+64>>>9<<4)]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),o[14+(i+64>>>9<<4)]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8),n.sigBytes=4*(o.length+1),this._process();for(var f=this._hash,h=f.words,u=0;u<4;u++){var v=h[u];h[u]=16711935&(v<<8|v>>>24)|4278255360&(v<<24|v>>>8)}return f},clone:function(){var n=s.clone.call(this);return n._hash=this._hash.clone(),n}});function u(n,t,o,a,i,s,c){var f=n+(t&o|~t&a)+i+c;return(f<>>32-s)+t}function v(n,t,o,a,i,s,c){var f=n+(t&a|o&~a)+i+c;return(f<>>32-s)+t}function _(n,t,o,a,i,s,c){var f=n+(t^o^a)+i+c;return(f<>>32-s)+t}function d(n,t,o,a,i,s,c){var f=n+(o^(t|~a))+i+c;return(f<>>32-s)+t}o.MD5=s._createHelper(h),o.HmacMD5=s._createHmacHelper(h)})(Math),n.MD5},"object"==typeof e?m.exports=e=t(r(_d[0])):"function"==typeof define&&define.amd?define(["./core"],t):t(n.CryptoJS)},612,[607]); -__d(function(g,r,_i,_a,m,_e,_d){var e,t;e=this,t=function(e){var t,n,o,s,a,i;return n=(t=e).lib,o=n.WordArray,s=n.Hasher,a=[],i=t.algo.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],s=n[1],i=n[2],h=n[3],c=n[4],f=0;f<80;f++){if(f<16)a[f]=0|e[t+f];else{var _=a[f-3]^a[f-8]^a[f-14]^a[f-16];a[f]=_<<1|_>>>31}var l=(o<<5|o>>>27)+c+a[f];l+=f<20?1518500249+(s&i|~s&h):f<40?1859775393+(s^i^h):f<60?(s&i|s&h|i&h)-1894007588:(s^i^h)-899497514,c=h,h=i,i=s<<30|s>>>2,s=o,o=l}n[0]=n[0]+o|0,n[1]=n[1]+s|0,n[2]=n[2]+i|0,n[3]=n[3]+h|0,n[4]=n[4]+c|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,o=8*e.sigBytes;return t[o>>>5]|=128<<24-o%32,t[14+(o+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(o+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}}),t.SHA1=s._createHelper(i),t.HmacSHA1=s._createHmacHelper(i),e.SHA1},"object"==typeof _e?m.exports=_e=t(r(_d[0])):"function"==typeof define&&define.amd?define(["./core"],t):t(e.CryptoJS)},613,[607]); -__d(function(_g,r,_i,_a,m,_e,_d){var e,t;e=this,t=function(e){return(function(t){var n=e,o=n.lib,i=o.WordArray,s=o.Hasher,a=n.algo,c=[],f=[];!(function(){function e(e){for(var n=t.sqrt(e),o=2;o<=n;o++)if(!(e%o))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var o=2,i=0;i<64;)e(o)&&(i<8&&(c[i]=n(t.pow(o,.5))),f[i]=n(t.pow(o,.3333333333333333)),i++),o++})();var h=[],u=a.SHA256=s.extend({_doReset:function(){this._hash=new i.init(c.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,o=n[0],i=n[1],s=n[2],a=n[3],c=n[4],u=n[5],l=n[6],_=n[7],d=0;d<64;d++){if(d<16)h[d]=0|e[t+d];else{var v=h[d-15],p=(v<<25|v>>>7)^(v<<14|v>>>18)^v>>>3,H=h[d-2],y=(H<<15|H>>>17)^(H<<13|H>>>19)^H>>>10;h[d]=p+h[d-7]+y+h[d-16]}var w=o&i^o&s^i&s,A=(o<<30|o>>>2)^(o<<19|o>>>13)^(o<<10|o>>>22),S=_+((c<<26|c>>>6)^(c<<21|c>>>11)^(c<<7|c>>>25))+(c&u^~c&l)+f[d]+h[d];_=l,l=u,u=c,c=a+S|0,a=s,s=i,i=o,o=S+(A+w)|0}n[0]=n[0]+o|0,n[1]=n[1]+i|0,n[2]=n[2]+s|0,n[3]=n[3]+a|0,n[4]=n[4]+c|0,n[5]=n[5]+u|0,n[6]=n[6]+l|0,n[7]=n[7]+_|0},_doFinalize:function(){var e=this._data,n=e.words,o=8*this._nDataBytes,i=8*e.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=t.floor(o/4294967296),n[15+(i+64>>>9<<4)]=o,e.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=s.clone.call(this);return e._hash=this._hash.clone(),e}});n.SHA256=s._createHelper(u),n.HmacSHA256=s._createHmacHelper(u)})(Math),e.SHA256},"object"==typeof _e?m.exports=_e=t(r(_d[0])):"function"==typeof define&&define.amd?define(["./core"],t):t(e.CryptoJS)},614,[607]); -__d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){var n,o,c,f,s;return o=(n=t).lib.WordArray,c=n.algo,f=c.SHA256,s=c.SHA224=f.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var t=f._doFinalize.call(this);return t.sigBytes-=4,t}}),n.SHA224=f._createHelper(s),n.HmacSHA224=f._createHmacHelper(s),t.SHA224},"object"==typeof e?m.exports=e=n(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./sha256"],n):n(t.CryptoJS)},615,[607,614]); -__d(function(g,r,_i,a,m,e,d){var i,h;i=this,h=function(i){return(function(){var h=i,o=h.lib.Hasher,n=h.x64,t=n.Word,l=n.WordArray,w=h.algo;function s(){return t.create.apply(t,arguments)}var c=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],f=[];!(function(){for(var i=0;i<80;i++)f[i]=s()})();var _=w.SHA512=o.extend({_doReset:function(){this._hash=new l.init([new t.init(1779033703,4089235720),new t.init(3144134277,2227873595),new t.init(1013904242,4271175723),new t.init(2773480762,1595750129),new t.init(1359893119,2917565137),new t.init(2600822924,725511199),new t.init(528734635,4215389547),new t.init(1541459225,327033209)])},_doProcessBlock:function(i,h){for(var o=this._hash.words,n=o[0],t=o[1],l=o[2],w=o[3],s=o[4],_=o[5],u=o[6],v=o[7],p=n.high,H=n.low,y=t.high,S=t.low,A=l.high,x=l.low,B=w.high,b=w.low,k=s.high,z=s.low,W=_.high,j=_.low,C=u.high,D=u.low,F=v.high,J=v.low,M=p,P=H,R=y,X=S,q=A,E=x,G=B,I=b,K=k,L=z,N=W,O=j,Q=C,T=D,U=F,V=J,Y=0;Y<80;Y++){var Z=f[Y];if(Y<16)var $=Z.high=0|i[h+2*Y],ii=Z.low=0|i[h+2*Y+1];else{var hi=f[Y-15],oi=hi.high,ei=hi.low,ni=(oi>>>1|ei<<31)^(oi>>>8|ei<<24)^oi>>>7,ti=(ei>>>1|oi<<31)^(ei>>>8|oi<<24)^(ei>>>7|oi<<25),ri=f[Y-2],li=ri.high,ai=ri.low,wi=(li>>>19|ai<<13)^(li<<3|ai>>>29)^li>>>6,si=(ai>>>19|li<<13)^(ai<<3|li>>>29)^(ai>>>6|li<<26),gi=f[Y-7],ci=gi.high,fi=gi.low,di=f[Y-16],ui=di.high,vi=di.low;$=($=($=ni+ci+((ii=ti+fi)>>>0>>0?1:0))+wi+((ii=ii+si)>>>0>>0?1:0))+ui+((ii=ii+vi)>>>0>>0?1:0);Z.high=$,Z.low=ii}var pi,Hi=K&N^~K&Q,yi=L&O^~L&T,Si=M&R^M&q^R&q,Ai=P&X^P&E^X&E,xi=(M>>>28|P<<4)^(M<<30|P>>>2)^(M<<25|P>>>7),Bi=(P>>>28|M<<4)^(P<<30|M>>>2)^(P<<25|M>>>7),bi=(K>>>14|L<<18)^(K>>>18|L<<14)^(K<<23|L>>>9),mi=(L>>>14|K<<18)^(L>>>18|K<<14)^(L<<23|K>>>9),ki=c[Y],zi=ki.high,Wi=ki.low,ji=U+bi+((pi=V+mi)>>>0>>0?1:0),Ci=Bi+Ai;U=Q,V=T,Q=N,T=O,N=K,O=L,K=G+(ji=(ji=(ji=ji+Hi+((pi=pi+yi)>>>0>>0?1:0))+zi+((pi=pi+Wi)>>>0>>0?1:0))+$+((pi=pi+ii)>>>0>>0?1:0))+((L=I+pi|0)>>>0>>0?1:0)|0,G=q,I=E,q=R,E=X,R=M,X=P,M=ji+(xi+Si+(Ci>>>0>>0?1:0))+((P=pi+Ci|0)>>>0>>0?1:0)|0}H=n.low=H+P,n.high=p+M+(H>>>0

>>0?1:0),S=t.low=S+X,t.high=y+R+(S>>>0>>0?1:0),x=l.low=x+E,l.high=A+q+(x>>>0>>0?1:0),b=w.low=b+I,w.high=B+G+(b>>>0>>0?1:0),z=s.low=z+L,s.high=k+K+(z>>>0>>0?1:0),j=_.low=j+O,_.high=W+N+(j>>>0>>0?1:0),D=u.low=D+T,u.high=C+Q+(D>>>0>>0?1:0),J=v.low=J+V,v.high=F+U+(J>>>0>>0?1:0)},_doFinalize:function(){var i=this._data,h=i.words,o=8*this._nDataBytes,n=8*i.sigBytes;return h[n>>>5]|=128<<24-n%32,h[30+(n+128>>>10<<5)]=Math.floor(o/4294967296),h[31+(n+128>>>10<<5)]=o,i.sigBytes=4*h.length,this._process(),this._hash.toX32()},clone:function(){var i=o.clone.call(this);return i._hash=this._hash.clone(),i},blockSize:32});h.SHA512=o._createHelper(_),h.HmacSHA512=o._createHmacHelper(_)})(),i.SHA512},"object"==typeof e?m.exports=e=h(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./x64-core"],h):h(i.CryptoJS)},616,[607,608]); -__d(function(g,r,i,a,m,e,d){var n,t;n=this,t=function(n){var t,o,c,f,s,w,H;return o=(t=n).x64,c=o.Word,f=o.WordArray,s=t.algo,w=s.SHA512,H=s.SHA384=w.extend({_doReset:function(){this._hash=new f.init([new c.init(3418070365,3238371032),new c.init(1654270250,914150663),new c.init(2438529370,812702999),new c.init(355462360,4144912697),new c.init(1731405415,4290775857),new c.init(2394180231,1750603025),new c.init(3675008525,1694076839),new c.init(1203062813,3204075428)])},_doFinalize:function(){var n=w._doFinalize.call(this);return n.sigBytes-=16,n}}),t.SHA384=w._createHelper(H),t.HmacSHA384=w._createHmacHelper(H),n.SHA384},"object"==typeof e?m.exports=e=t(r(d[0]),r(d[1]),r(d[2])):"function"==typeof define&&define.amd?define(["./core","./x64-core","./sha512"],t):t(n.CryptoJS)},617,[607,608,616]); -__d(function(g,r,_i,a,m,e,d){var o,t;o=this,t=function(o){return(function(t){var i=o,h=i.lib,n=h.WordArray,f=h.Hasher,s=i.x64.Word,c=i.algo,l=[],v=[],u=[];!(function(){for(var o=1,t=0,i=0;i<24;i++){l[o+5*t]=(i+1)*(i+2)/2%64;var h=(2*o+3*t)%5;o=t%5,t=h}for(o=0;o<5;o++)for(t=0;t<5;t++)v[o+5*t]=t+(2*o+3*t)%5*5;for(var n=1,f=0;f<24;f++){for(var c=0,w=0,_=0;_<7;_++){if(1&n){var p=(1<<_)-1;p<32?w^=1<>>24)|4278255360&(f<<24|f>>>8),s=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),(F=i[n]).high^=s,F.low^=f}for(var c=0;c<24;c++){for(var _=0;_<5;_++){for(var p=0,H=0,S=0;S<5;S++){p^=(F=i[_+5*S]).high,H^=F.low}var y=w[_];y.high=p,y.low=H}for(_=0;_<5;_++){var b=w[(_+4)%5],x=w[(_+1)%5],A=x.high,k=x.low;for(p=b.high^(A<<1|k>>>31),H=b.low^(k<<1|A>>>31),S=0;S<5;S++){(F=i[_+5*S]).high^=p,F.low^=H}}for(var z=1;z<25;z++){var B=(F=i[z]).high,L=F.low,W=l[z];if(W<32)p=B<>>32-W,H=L<>>32-W;else p=L<>>64-W,H=B<>>64-W;var j=w[v[z]];j.high=p,j.low=H}var C=w[0],D=i[0];C.high=D.high,C.low=D.low;for(_=0;_<5;_++)for(S=0;S<5;S++){var F=i[z=_+5*S],J=w[z],M=w[(_+1)%5+5*S],P=w[(_+2)%5+5*S];F.high=J.high^~M.high&P.high,F.low=J.low^~M.low&P.low}F=i[0];var R=u[c];F.high^=R.high,F.low^=R.low}},_doFinalize:function(){var o=this._data,i=o.words,h=(this._nDataBytes,8*o.sigBytes),f=32*this.blockSize;i[h>>>5]|=1<<24-h%32,i[(t.ceil((h+1)/f)*f>>>5)-1]|=128,o.sigBytes=4*i.length,this._process();for(var s=this._state,c=this.cfg.outputLength/8,l=c/8,v=[],u=0;u>>24)|4278255360&(_<<24|_>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),v.push(p),v.push(_)}return new n.init(v,c)},clone:function(){for(var o=f.clone.call(this),t=o._state=this._state.slice(0),i=0;i<25;i++)t[i]=t[i].clone();return o}});i.SHA3=f._createHelper(_),i.HmacSHA3=f._createHmacHelper(_)})(Math),o.SHA3},"object"==typeof e?m.exports=e=t(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./x64-core"],t):t(o.CryptoJS)},618,[607,608]); -__d(function(g,r,_i,a,m,e,d){var t,n;t=this,n=function(t){return(function(n){var o=t,s=o.lib,c=s.WordArray,i=s.Hasher,u=o.algo,f=c.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=c.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),_=c.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=c.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),v=c.create([0,1518500249,1859775393,2400959708,2840853838]),w=c.create([1352829926,1548603684,1836072691,2053994217,0]),p=u.RIPEMD160=i.extend({_doReset:function(){this._hash=c.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(t,n){for(var o=0;o<16;o++){var s=n+o,c=t[s];t[s]=16711935&(c<<8|c>>>24)|4278255360&(c<<24|c>>>8)}var i,u,p,B,E,I,b,x,j,k,z,A=this._hash.words,C=v.words,F=w.words,J=f.words,S=h.words,W=_.words,q=l.words;I=i=A[0],b=u=A[1],x=p=A[2],j=B=A[3],k=E=A[4];for(o=0;o<80;o+=1)z=i+t[n+J[o]]|0,z+=o<16?y(u,p,B)+C[0]:o<32?D(u,p,B)+C[1]:o<48?H(u,p,B)+C[2]:o<64?M(u,p,B)+C[3]:P(u,p,B)+C[4],z=(z=R(z|=0,W[o]))+E|0,i=E,E=B,B=R(p,10),p=u,u=z,z=I+t[n+S[o]]|0,z+=o<16?P(b,x,j)+F[0]:o<32?M(b,x,j)+F[1]:o<48?H(b,x,j)+F[2]:o<64?D(b,x,j)+F[3]:y(b,x,j)+F[4],z=(z=R(z|=0,q[o]))+k|0,I=k,k=j,j=R(x,10),x=b,b=z;z=A[1]+p+j|0,A[1]=A[2]+B+k|0,A[2]=A[3]+E+I|0,A[3]=A[4]+i+b|0,A[4]=A[0]+u+x|0,A[0]=z},_doFinalize:function(){var t=this._data,n=t.words,o=8*this._nDataBytes,s=8*t.sigBytes;n[s>>>5]|=128<<24-s%32,n[14+(s+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),t.sigBytes=4*(n.length+1),this._process();for(var c=this._hash,i=c.words,u=0;u<5;u++){var f=i[u];i[u]=16711935&(f<<8|f>>>24)|4278255360&(f<<24|f>>>8)}return c},clone:function(){var t=i.clone.call(this);return t._hash=this._hash.clone(),t}});function y(t,n,o){return t^n^o}function D(t,n,o){return t&n|~t&o}function H(t,n,o){return(t|~n)^o}function M(t,n,o){return t&o|n&~o}function P(t,n,o){return t^(n|~o)}function R(t,n){return t<>>32-n}o.RIPEMD160=i._createHelper(p),o.HmacRIPEMD160=i._createHmacHelper(p)})(Math),t.RIPEMD160},"object"==typeof e?m.exports=e=n(r(d[0])):"function"==typeof define&&define.amd?define(["./core"],n):n(t.CryptoJS)},619,[607]); -__d(function(g,r,_i,a,m,e,d){var t,i;t=this,i=function(t){var i,n,s;n=(i=t).lib.Base,s=i.enc.Utf8,i.algo.HMAC=n.extend({init:function(t,i){t=this._hasher=new t.init,'string'==typeof i&&(i=s.parse(i));var n=t.blockSize,o=4*n;i.sigBytes>o&&(i=t.finalize(i)),i.clamp();for(var f=this._oKey=i.clone(),h=this._iKey=i.clone(),c=f.words,u=h.words,l=0;l>>2];t.sigBytes-=i}},x=(c.BlockCipher=l.extend({cfg:l.cfg.extend({mode:v,padding:k}),reset:function(){l.reset.call(this);var t=this.cfg,i=t.iv,n=t.mode;if(this._xformMode==this._ENC_XFORM_MODE)var c=n.createEncryptor;else{c=n.createDecryptor;this._minBufferSize=1}this._mode&&this._mode.__creator==c?this._mode.init(this,i&&i.words):(this._mode=c.call(n,this,i&&i.words),this._mode.__creator=c)},_doProcessBlock:function(t,i){this._mode.processBlock(t,i)},_doFinalize:function(){var t=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){t.pad(this._data,this.blockSize);var i=this._process(!0)}else{i=this._process(!0);t.unpad(i)}return i},blockSize:4}),c.CipherParams=o.extend({init:function(t){this.mixIn(t)},toString:function(t){return(t||this.formatter).stringify(this)}})),S=(n.format={}).OpenSSL={stringify:function(t){var i=t.ciphertext,n=t.salt;if(n)var c=s.create([1398893684,1701076831]).concat(n).concat(i);else c=i;return c.toString(h)},parse:function(t){var i=h.parse(t),n=i.words;if(1398893684==n[0]&&1701076831==n[1]){var c=s.create(n.slice(2,4));n.splice(0,4),i.sigBytes-=16}return x.create({ciphertext:i,salt:c})}},B=c.SerializableCipher=o.extend({cfg:o.extend({format:S}),encrypt:function(t,i,n,c){c=this.cfg.extend(c);var o=t.createEncryptor(n,c),s=o.finalize(i),f=o.cfg;return x.create({ciphertext:s,key:n,iv:f.iv,algorithm:t,mode:f.mode,padding:f.padding,blockSize:t.blockSize,formatter:c.format})},decrypt:function(t,i,n,c){return c=this.cfg.extend(c),i=this._parse(i,c.format),t.createDecryptor(n,c).finalize(i.ciphertext)},_parse:function(t,i){return'string'==typeof t?i.parse(t,this):t}}),z=(n.kdf={}).OpenSSL={execute:function(t,i,n,c){c||(c=s.random(8));var o=u.create({keySize:i+n}).compute(t,c),f=s.create(o.words.slice(i),4*n);return o.sigBytes=4*i,x.create({key:o,iv:f,salt:c})}},E=c.PasswordBasedCipher=B.extend({cfg:B.cfg.extend({kdf:z}),encrypt:function(t,i,n,c){var o=(c=this.cfg.extend(c)).kdf.execute(n,t.keySize,t.ivSize);c.iv=o.iv;var s=B.encrypt.call(this,t,i,o.key,c);return s.mixIn(o),s},decrypt:function(t,i,n,c){c=this.cfg.extend(c),i=this._parse(i,c.format);var o=c.kdf.execute(n,t.keySize,t.ivSize,i.salt);return c.iv=o.iv,B.decrypt.call(this,t,i,o.key,c)}})})()},"object"==typeof e?m.exports=e=i(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./evpkdf"],i):i(t.CryptoJS)},623,[607,622]); -__d(function(g,r,_i,a,m,e,d){var i,c;i=this,c=function(i){return i.mode.CFB=(function(){var c=i.lib.BlockCipherMode.extend();function o(i,c,o,t){var n=this._iv;if(n){var s=n.slice(0);this._iv=void 0}else s=this._prevBlock;t.encryptBlock(s,0);for(var l=0;l>24&255)){var t=n>>16&255,o=n>>8&255,i=255&n;255===t?(t=0,255===o?(o=0,255===i?i=0:++i):++o):++t,n=0,n+=t<<16,n+=o<<8,n+=i}else n+=16777216;return n}function i(n){return 0===(n[0]=o(n[0]))&&(n[1]=o(n[1])),n}var c=t.Encryptor=t.extend({processBlock:function(n,t){var o=this._cipher,c=o.blockSize,f=this._iv,u=this._counter;f&&(u=this._counter=f.slice(0),this._iv=void 0),i(u);var s=u.slice(0);o.encryptBlock(s,0);for(var p=0;p>>2]|=c<<24-f%4*8,n.sigBytes+=c},unpad:function(n){var t=255&n.words[n.sigBytes-1>>>2];n.sigBytes-=t}},n.pad.Ansix923},"object"==typeof e?m.exports=e=t(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],t):t(n.CryptoJS)},629,[607,623]); -__d(function(g,r,i,a,m,e,d){var o,n;o=this,n=function(o){return o.pad.Iso10126={pad:function(n,t){var c=4*t,s=c-n.sigBytes%c;n.concat(o.lib.WordArray.random(s-1)).concat(o.lib.WordArray.create([s<<24],1))},unpad:function(o){var n=255&o.words[o.sigBytes-1>>>2];o.sigBytes-=n}},o.pad.Iso10126},"object"==typeof e?m.exports=e=n(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(o.CryptoJS)},630,[607,623]); -__d(function(g,r,i,a,m,e,d){var n,o;n=this,o=function(n){return n.pad.Iso97971={pad:function(o,t){o.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(o,t)},unpad:function(o){n.pad.ZeroPadding.unpad(o),o.sigBytes--}},n.pad.Iso97971},"object"==typeof e?m.exports=e=o(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(n.CryptoJS)},631,[607,623]); -__d(function(g,r,_i,a,m,e,d){var n,i;n=this,i=function(n){return n.pad.ZeroPadding={pad:function(n,i){var o=4*i;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var i=n.words,o=n.sigBytes-1;!(i[o>>>2]>>>24-o%4*8&255);)o--;n.sigBytes=o+1}},n.pad.ZeroPadding},"object"==typeof e?m.exports=e=i(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],i):i(n.CryptoJS)},632,[607,623]); -__d(function(g,r,i,a,m,e,d){var n,o;n=this,o=function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding},"object"==typeof e?m.exports=e=o(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],o):o(n.CryptoJS)},633,[607,623]); -__d(function(g,r,i,a,m,e,d){var t,n;t=this,n=function(t){var n,o,c;return o=(n=t).lib.CipherParams,c=n.enc.Hex,n.format.Hex={stringify:function(t){return t.ciphertext.toString(c)},parse:function(t){var n=c.parse(t);return o.create({ciphertext:n})}},t.format.Hex},"object"==typeof e?m.exports=e=n(r(d[0]),r(d[1])):"function"==typeof define&&define.amd?define(["./core","./cipher-core"],n):n(t.CryptoJS)},634,[607,623]); -__d(function(g,r,_i,a,m,e,_d){var t,i;t=this,i=function(t){return(function(){var i=t,o=i.lib.BlockCipher,n=i.algo,c=[],s=[],f=[],d=[],h=[],y=[],_=[],u=[],v=[],l=[];!(function(){for(var t=[],i=0;i<256;i++)t[i]=i<128?i<<1:i<<1^283;var o=0,n=0;for(i=0;i<256;i++){var k=n^n<<1^n<<2^n<<3^n<<4;k=k>>>8^255&k^99,c[o]=k,s[k]=o;var p=t[o],S=t[p],B=t[S],R=257*t[k]^16843008*k;f[o]=R<<24|R>>>8,d[o]=R<<16|R>>>16,h[o]=R<<8|R>>>24,y[o]=R;R=16843009*B^65537*S^257*p^16843008*o;_[k]=R<<24|R>>>8,u[k]=R<<16|R>>>16,v[k]=R<<8|R>>>24,l[k]=R,o?(o=p^t[t[t[B^p]]],n^=t[t[n]]):o=n=1}})();var k=[0,1,2,4,8,16,32,64,128,27,54],p=n.AES=o.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var t=this._keyPriorReset=this._key,i=t.words,o=t.sigBytes/4,n=4*((this._nRounds=o+6)+1),s=this._keySchedule=[],f=0;f6&&f%o==4&&(d=c[d>>>24]<<24|c[d>>>16&255]<<16|c[d>>>8&255]<<8|c[255&d]):(d=c[(d=d<<8|d>>>24)>>>24]<<24|c[d>>>16&255]<<16|c[d>>>8&255]<<8|c[255&d],d^=k[f/o|0]<<24),s[f]=s[f-o]^d}for(var h=this._invKeySchedule=[],y=0;y>>24]]^u[c[d>>>16&255]]^v[c[d>>>8&255]]^l[c[255&d]]}}},encryptBlock:function(t,i){this._doCryptBlock(t,i,this._keySchedule,f,d,h,y,c)},decryptBlock:function(t,i){var o=t[i+1];t[i+1]=t[i+3],t[i+3]=o,this._doCryptBlock(t,i,this._invKeySchedule,_,u,v,l,s);o=t[i+1];t[i+1]=t[i+3],t[i+3]=o},_doCryptBlock:function(t,i,o,n,c,s,f,d){for(var h=this._nRounds,y=t[i]^o[0],_=t[i+1]^o[1],u=t[i+2]^o[2],v=t[i+3]^o[3],l=4,k=1;k>>24]^c[_>>>16&255]^s[u>>>8&255]^f[255&v]^o[l++],S=n[_>>>24]^c[u>>>16&255]^s[v>>>8&255]^f[255&y]^o[l++],B=n[u>>>24]^c[v>>>16&255]^s[y>>>8&255]^f[255&_]^o[l++],R=n[v>>>24]^c[y>>>16&255]^s[_>>>8&255]^f[255&u]^o[l++];y=p,_=S,u=B,v=R}p=(d[y>>>24]<<24|d[_>>>16&255]<<16|d[u>>>8&255]<<8|d[255&v])^o[l++],S=(d[_>>>24]<<24|d[u>>>16&255]<<16|d[v>>>8&255]<<8|d[255&y])^o[l++],B=(d[u>>>24]<<24|d[v>>>16&255]<<16|d[y>>>8&255]<<8|d[255&_])^o[l++],R=(d[v>>>24]<<24|d[y>>>16&255]<<16|d[_>>>8&255]<<8|d[255&u])^o[l++];t[i]=p,t[i+1]=S,t[i+2]=B,t[i+3]=R},keySize:8});i.AES=o._createHelper(p)})(),t.AES},"object"==typeof e?m.exports=e=i(r(_d[0]),r(_d[1]),r(_d[2]),r(_d[3]),r(_d[4])):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(t.CryptoJS)},635,[607,611,612,622,623]); -__d(function(g,r,_i,a,m,e,d){var t,c;t=this,c=function(t){return(function(){var c=t,i=c.lib,l=i.WordArray,o=i.BlockCipher,s=c.algo,h=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],_=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],n=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],k=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],B=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],p=s.DES=o.extend({_doReset:function(){for(var t=this._key.words,c=[],i=0;i<56;i++){var l=h[i]-1;c[i]=t[l>>>5]>>>31-l%32&1}for(var o=this._subKeys=[],s=0;s<16;s++){var k=o[s]=[],B=n[s];for(i=0;i<24;i++)k[i/6|0]|=c[(_[i]-1+B)%28]<<31-i%6,k[4+(i/6|0)]|=c[28+(_[i+24]-1+B)%28]<<31-i%6;k[0]=k[0]<<1|k[0]>>>31;for(i=1;i<7;i++)k[i]=k[i]>>>4*(i-1)+3;k[7]=k[7]<<5|k[7]>>>27}var p=this._invSubKeys=[];for(i=0;i<16;i++)p[i]=o[15-i]},encryptBlock:function(t,c){this._doCryptBlock(t,c,this._subKeys)},decryptBlock:function(t,c){this._doCryptBlock(t,c,this._invSubKeys)},_doCryptBlock:function(t,c,i){this._lBlock=t[c],this._rBlock=t[c+1],y.call(this,4,252645135),y.call(this,16,65535),f.call(this,2,858993459),f.call(this,8,16711935),y.call(this,1,1431655765);for(var l=0;l<16;l++){for(var o=i[l],s=this._lBlock,h=this._rBlock,_=0,n=0;n<8;n++)_|=k[n][((h^o[n])&B[n])>>>0];this._lBlock=h,this._rBlock=s^_}var p=this._lBlock;this._lBlock=this._rBlock,this._rBlock=p,y.call(this,1,1431655765),f.call(this,8,16711935),f.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),t[c]=this._lBlock,t[c+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function y(t,c){var i=(this._lBlock>>>t^this._rBlock)&c;this._rBlock^=i,this._lBlock^=i<>>t^this._lBlock)&c;this._lBlock^=i,this._rBlock^=i<>>2]>>>24-f%4*8&255;c=(c+n[s]+_)%256;var h=n[s];n[s]=n[c],n[c]=h}this._i=this._j=0},_doProcessBlock:function(t,i){t[i]^=c.call(this)},keySize:8,ivSize:0});function c(){for(var t=this._S,i=this._i,o=this._j,n=0,s=0;s<4;s++){o=(o+t[i=(i+1)%256])%256;var c=t[i];t[i]=t[o],t[o]=c,n|=t[(t[i]+t[o])%256]<<24-8*s}return this._i=i,this._j=o,n}i.RC4=o._createHelper(s);var f=n.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var t=this.cfg.drop;t>0;t--)c.call(this)}});i.RC4Drop=o._createHelper(f)})(),t.RC4},"object"==typeof e?m.exports=e=i(r(d[0]),r(d[1]),r(d[2]),r(d[3]),r(d[4])):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],i):i(t.CryptoJS)},637,[607,611,612,622,623]); -__d(function(g,r,_i,a,m,e,d){var i,t;i=this,t=function(i){return(function(){var t=i,o=t.lib.StreamCipher,f=[],s=[],c=[],n=t.algo.Rabbit=o.extend({_doReset:function(){for(var i=this._key.words,t=this.cfg.iv,o=0;o<4;o++)i[o]=16711935&(i[o]<<8|i[o]>>>24)|4278255360&(i[o]<<24|i[o]>>>8);var f=this._X=[i[0],i[3]<<16|i[2]>>>16,i[1],i[0]<<16|i[3]>>>16,i[2],i[1]<<16|i[0]>>>16,i[3],i[2]<<16|i[1]>>>16],s=this._C=[i[2]<<16|i[2]>>>16,4294901760&i[0]|65535&i[1],i[3]<<16|i[3]>>>16,4294901760&i[1]|65535&i[2],i[0]<<16|i[0]>>>16,4294901760&i[2]|65535&i[3],i[1]<<16|i[1]>>>16,4294901760&i[3]|65535&i[0]];this._b=0;for(o=0;o<4;o++)h.call(this);for(o=0;o<8;o++)s[o]^=f[o+4&7];if(t){var c=t.words,n=c[0],_=c[1],b=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),v=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),l=b>>>16|4294901760&v,p=v<<16|65535&b;s[0]^=b,s[1]^=l,s[2]^=v,s[3]^=p,s[4]^=b,s[5]^=l,s[6]^=v,s[7]^=p;for(o=0;o<4;o++)h.call(this)}},_doProcessBlock:function(i,t){var o=this._X;h.call(this),f[0]=o[0]^o[5]>>>16^o[3]<<16,f[1]=o[2]^o[7]>>>16^o[5]<<16,f[2]=o[4]^o[1]>>>16^o[7]<<16,f[3]=o[6]^o[3]>>>16^o[1]<<16;for(var s=0;s<4;s++)f[s]=16711935&(f[s]<<8|f[s]>>>24)|4278255360&(f[s]<<24|f[s]>>>8),i[t+s]^=f[s]},blockSize:4,ivSize:2});function h(){for(var i=this._X,t=this._C,o=0;o<8;o++)s[o]=t[o];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(o=0;o<8;o++){var f=i[o]+t[o],n=65535&f,h=f>>>16,_=((n*n>>>17)+n*h>>>15)+h*h,b=((4294901760&f)*f|0)+((65535&f)*f|0);c[o]=_^b}i[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,i[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,i[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,i[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,i[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,i[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,i[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,i[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}t.Rabbit=o._createHelper(n)})(),i.Rabbit},"object"==typeof e?m.exports=e=t(r(d[0]),r(d[1]),r(d[2]),r(d[3]),r(d[4])):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(i.CryptoJS)},638,[607,611,612,622,623]); -__d(function(g,r,_i,a,m,e,d){var i,t;i=this,t=function(i){return(function(){var t=i,o=t.lib.StreamCipher,c=[],f=[],s=[],n=t.algo.RabbitLegacy=o.extend({_doReset:function(){var i=this._key.words,t=this.cfg.iv,o=this._X=[i[0],i[3]<<16|i[2]>>>16,i[1],i[0]<<16|i[3]>>>16,i[2],i[1]<<16|i[0]>>>16,i[3],i[2]<<16|i[1]>>>16],c=this._C=[i[2]<<16|i[2]>>>16,4294901760&i[0]|65535&i[1],i[3]<<16|i[3]>>>16,4294901760&i[1]|65535&i[2],i[0]<<16|i[0]>>>16,4294901760&i[2]|65535&i[3],i[1]<<16|i[1]>>>16,4294901760&i[3]|65535&i[0]];this._b=0;for(var f=0;f<4;f++)h.call(this);for(f=0;f<8;f++)c[f]^=o[f+4&7];if(t){var s=t.words,n=s[0],_=s[1],b=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),v=16711935&(_<<8|_>>>24)|4278255360&(_<<24|_>>>8),l=b>>>16|4294901760&v,p=v<<16|65535&b;c[0]^=b,c[1]^=l,c[2]^=v,c[3]^=p,c[4]^=b,c[5]^=l,c[6]^=v,c[7]^=p;for(f=0;f<4;f++)h.call(this)}},_doProcessBlock:function(i,t){var o=this._X;h.call(this),c[0]=o[0]^o[5]>>>16^o[3]<<16,c[1]=o[2]^o[7]>>>16^o[5]<<16,c[2]=o[4]^o[1]>>>16^o[7]<<16,c[3]=o[6]^o[3]>>>16^o[1]<<16;for(var f=0;f<4;f++)c[f]=16711935&(c[f]<<8|c[f]>>>24)|4278255360&(c[f]<<24|c[f]>>>8),i[t+f]^=c[f]},blockSize:4,ivSize:2});function h(){for(var i=this._X,t=this._C,o=0;o<8;o++)f[o]=t[o];t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0>>0?1:0)|0,this._b=t[7]>>>0>>0?1:0;for(o=0;o<8;o++){var c=i[o]+t[o],n=65535&c,h=c>>>16,_=((n*n>>>17)+n*h>>>15)+h*h,b=((4294901760&c)*c|0)+((65535&c)*c|0);s[o]=_^b}i[0]=s[0]+(s[7]<<16|s[7]>>>16)+(s[6]<<16|s[6]>>>16)|0,i[1]=s[1]+(s[0]<<8|s[0]>>>24)+s[7]|0,i[2]=s[2]+(s[1]<<16|s[1]>>>16)+(s[0]<<16|s[0]>>>16)|0,i[3]=s[3]+(s[2]<<8|s[2]>>>24)+s[1]|0,i[4]=s[4]+(s[3]<<16|s[3]>>>16)+(s[2]<<16|s[2]>>>16)|0,i[5]=s[5]+(s[4]<<8|s[4]>>>24)+s[3]|0,i[6]=s[6]+(s[5]<<16|s[5]>>>16)+(s[4]<<16|s[4]>>>16)|0,i[7]=s[7]+(s[6]<<8|s[6]>>>24)+s[5]|0}t.RabbitLegacy=o._createHelper(n)})(),i.RabbitLegacy},"object"==typeof e?m.exports=e=t(r(d[0]),r(d[1]),r(d[2]),r(d[3]),r(d[4])):"function"==typeof define&&define.amd?define(["./core","./enc-base64","./md5","./evpkdf","./cipher-core"],t):t(i.CryptoJS)},639,[607,611,612,622,623]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),h=(function(){function h(n,u,c,o,s){(0,t.default)(this,h),this.id=n,this.top=u,this.left=c,this.width=o,this.height=s}return(0,n.default)(h,[{key:"getId",value:function(){return this.id}},{key:"getTop",value:function(){return this.top}},{key:"getLeft",value:function(){return this.left}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"isEmpty",value:function(){return 0===this.width&&0===this.height}},{key:"toString",value:function(){return"".concat(this.id).concat(",").concat(this.left).concat(",").concat(this.top).concat(",").concat(this.width).concat(",").concat(this.height)}},{key:"contains",value:function(t,n){return this.getLeft()t&&this.getTop()n}}]),h})();e.default=h},640,[5,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=(function(){function u(n){(0,t.default)(this,u),this.infos=n}return(0,n.default)(u,[{key:"getPDFPageWidth",value:function(){return parseInt(this.infos[0],10)}},{key:"getPDFPageHeight",value:function(){return parseInt(this.infos[1],10)}},{key:"getPageWidthMedium",value:function(){return parseInt(this.infos[2],10)}},{key:"getPageHeightMedium",value:function(){return parseInt(this.infos[3],10)}},{key:"getDpi",value:function(){return parseInt(this.infos[4],10)}},{key:"getCustomXOffset",value:function(){return parseInt(this.infos[5],10)}},{key:"getCustomYOffset",value:function(){return parseInt(this.infos[6],10)}},{key:"getXOffset",value:function(){return parseInt(this.infos[7],10)}},{key:"getYOffset",value:function(){return parseInt(this.infos[8],10)}},{key:"getXOffsetC",value:function(){return parseInt(this.infos[11],10)}},{key:"getYOffsetC",value:function(){return parseInt(this.infos[12],10)}},{key:"getWidthOffsetC",value:function(){return parseInt(this.infos[13],10)}},{key:"getHeightOffsetC",value:function(){return parseInt(this.infos[14],10)}},{key:"getBboxLeft",value:function(){return parseInt(this.infos[15],10)}},{key:"getBboxTop",value:function(){return parseInt(this.infos[16],10)}},{key:"getBboxRight",value:function(){return parseInt(this.infos[17],10)}},{key:"getBboxBottom",value:function(){return parseInt(this.infos[18],10)}},{key:"getOriginalPDFPageWidth",value:function(){return this.infos[19]?parseFloat(this.infos[19]):0}},{key:"getOriginalPDFPageHeight",value:function(){return this.infos[20]?parseFloat(this.infos[20]):0}},{key:"getPageWidth",value:function(){return this.getOriginalPDFPageWidth()||this.getPDFPageWidth()}},{key:"getPageHeight",value:function(){return this.getOriginalPDFPageHeight()||this.getPDFPageHeight()}},{key:"toString",value:function(){return this.infos.join(",")}},{key:"getTotalOffsetX",value:function(){return this.getXOffset()+this.getXOffsetC()+this.getCustomXOffset()}},{key:"getTotalOffsetY",value:function(){return this.getYOffset()+this.getYOffsetC()+this.getCustomYOffset()}},{key:"getPercentile",value:function(){return r(d[3]).JSUtils.truncateFloat(this.getDpi()/72)}},{key:"getZoomX",value:function(){return Math.ceil(this.getPageWidth()*this.getPercentile())/this.getPageWidthMedium()}},{key:"getZoomY",value:function(){return Math.ceil(this.getPageHeight()*this.getPercentile())/this.getPageHeightMedium()}},{key:"getMedDpi",value:function(){return this.getPageWidth()/this.getPageWidthMedium()*this.getDpi()}},{key:"getOriginalPageMediumWidth",value:function(){return this.getPageWidthMedium()+this.getBboxLeft()+this.getBboxRight()}},{key:"getOriginalPageMediumHeight",value:function(){return this.getPageHeightMedium()+this.getBboxTop()+this.getBboxBottom()}},{key:"getScaleX",value:function(){return Math.ceil(this.getPageWidth()*this.getPercentile())/this.getOriginalPageMediumWidth()}},{key:"getScaleY",value:function(){return Math.ceil(this.getPageHeight()*this.getPercentile())/this.getOriginalPageMediumHeight()}}]),u})();e.default=u},641,[5,7,8,462]); -__d(function(g,r,i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=(r(d[0])(r(d[3])),r(d[0])(r(d[4])),r(d[0])(r(d[5])),(function(){function n(t,u){(0,e.default)(this,n),this.issue=t,this.edition=u,this.pages=[],this.hasSpecialSections=!1}return(0,t.default)(n,[{key:"getIssue",value:function(){return this.issue}},{key:"setIssue",value:function(e){this.issue=e}},{key:"getIssueId",value:function(){return this.issueId}},{key:"setIssueId",value:function(e){this.issueId=e}},{key:"getEdition",value:function(){return this.edition}},{key:"setEdition",value:function(e){this.edition=e}},{key:"getPages",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]?this.pages:this.pages.filter(function(e){return e.isVisible()})}},{key:"setPages",value:function(e){this.pages=e}},{key:"getFirstPage",value:function(){return this.pages?this.pages[0]:null}},{key:"getPageById",value:function(e){if(this.pages&&void 0!==e)return this.pages.find(function(t){return t.getPageId()===e})}},{key:"getPageByArticle",value:function(e){if(this.pages&&void 0!==e)return this.pages.find(function(t){return t.getPageId()===e.getPageId()})}},{key:"updatePage",value:function(e){var t=this.pages.findIndex(function(t){var n=t.pageId,u=t.issueId;return n===e.pageId&&u===e.issueId});t>=0?this.pages[t]=e:(this.pages.push(e),this.pages.sort(function(e,t){return e.paget.page?1:0}))}},{key:"removePage",value:function(e){var t=this.pages.findIndex(function(t){var n=t.pageId,u=t.issueId;return n===e.pageId&&u===e.issueId});t>=0&&this.pages.splice(t,1)}},{key:"isEmpty",value:function(){return!this.pages||0===this.pages.length}},{key:"setIsLite",value:function(e){this.isLite=e}},{key:"setIsInvalid",value:function(e){this.isInvalid=e}},{key:"isUseShownPage",value:function(){return this.useShownPage}},{key:"setUseShownPage",value:function(e){this.useShownPage=e}},{key:"useArticleInc",value:function(){return this.useArticleInc}},{key:"setUseArticleInc",value:function(e){this.useArticleInc=e}},{key:"setHasSpecialSections",value:function(e){this.hasSpecialSections=e}},{key:"setHasPhotoGalleries",value:function(e){this.hasPhotoGalleries=e}},{key:"getDownloadTime",value:function(){return this.downloadTime}},{key:"setDownloadTime",value:function(e){this.downloadTime=e}},{key:"setUpdated",value:function(e){this.updated=e}},{key:"isUpdated",value:function(){return this.updated}},{key:"setPaper",value:function(e){this.paper=e}},{key:"getPaper",value:function(){return this.paper}},{key:"setModifyTime",value:function(e){this.modifyTime=e}},{key:"getModifyTime",value:function(){return this.modifyTime}},{key:"setCustomIndexModifyTime",value:function(e){this.customIndexModifyTime=e}},{key:"getCustomIndexModifyTime",value:function(){return this.customIndexModifyTime}},{key:"setCustomIndexHtml",value:function(e){this.customIndexHtml=e}},{key:"getCustomIndexHtml",value:function(){return this.customIndexHtml}},{key:"getFirstArticleInChain",value:function(e){var t=e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(e){var u=e.getPageJumps().find(function(e){return e.hasFrom()});if(u){var s=this.getArticleFromPageJump(u.getFrom(),u.getArticleFrom());if(s){var a=this.getFirstArticleInChain(s,n+1);t=a.firstArticle,n=a.currentArticleIndex}}}return{firstArticle:t,currentArticleIndex:n}}},{key:"getChainOfArticle",value:function(e){var t=this,n=[];if(e){var u=this.getFirstArticleInChain(e).firstArticle;do{n.push(u);var s=u.getPageJumps().find(function(e){return e.hasTo()});u=void 0,s&&(function(){var e=t.getArticleFromPageJump(s.getTo(),s.getArticleId());void 0===n.find(function(t){return t.getPageId()===(null==e?void 0:e.getPageId())&&t.getXmlId()===(null==e?void 0:e.getXmlId())})&&(u=e)})()}while(u)}return n}},{key:"getNextArticleInChain",value:function(e){var t=e.getPageJumps().find(function(e){return e.hasTo()});if(t)return this.getArticleFromPageJump(t.getTo(),t.getArticleId())}},{key:"getChildArts",value:function(e){var t,n=[];return e&&(t=this.getPages(!0).find(function(t){return t.getPageId()===e.getPageId()}))&&(n=t.getArticles().filter(function(t){return t.getChildart()===e.getXmlId()})),{page:t,articles:n}}},{key:"getArticleFromPageJump",value:function(e,t){try{var n=this.getPages(!0).find(function(t){return t.getPage()===e});if(n)return n.getArticles().find(function(e){return e.getXmlId()==t})}catch(e){}}},{key:"isFirstPageDoubleTruck",value:function(){var e=this.getFirstPage();return!!e&&e.isDoubleTruck()}}]),n})());_e.default=n},642,[5,7,8,643,646,644]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.EPaperArticleType=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),i=(r(d[0])(r(d[3])),r(d[0])(r(d[4])),r(d[0])(r(d[5])),r(d[0])(r(d[6])),{GRAPHIC:"Graphic",EDITORIAL:"Editorial",ADVERTISEMENT:"Advertisement",LEGENDA:"Legenda",TABLE:"Table",PAGE_LAYOUT:"Page Layout"});e.EPaperArticleType=i;var u=(function(){function u(){(0,t.default)(this,u)}return(0,n.default)(u,[{key:"setPageId",value:function(t){this.pageId=t}},{key:"getPageId",value:function(){return this.pageId}},{key:"setXmlId",value:function(t){this.xmlId=t}},{key:"getXmlId",value:function(){return this.xmlId}},{key:"setType",value:function(t){this.type=t}},{key:"getType",value:function(){return this.type}},{key:"setSubType",value:function(t){this.subType=t}},{key:"getSubType",value:function(){return this.subType}},{key:"setTitle",value:function(t){this.title=t}},{key:"getTitle",value:function(){return this.title}},{key:"setHtml",value:function(t){this.html=t}},{key:"getHtml",value:function(){return this.html}},{key:"setBoxes",value:function(t){this.boxes=t}},{key:"getLeftCoordinate",value:function(){var t,n=this.getBoxes();if(n&&n.length){t=n[0];for(var i=1;iu.left&&(t=u)}}return t}},{key:"getTopCoordinate",value:function(){var t,n=this.getBoxes();if(n&&n.length){t=n[0];for(var i=1;iu.top&&(t=u)}}return t}},{key:"getBoxes",value:function(){return this.boxes}},{key:"setBoxesInfo",value:function(t){this.boxesInfo=t}},{key:"getBoxesInfo",value:function(){return this.boxesInfo}},{key:"setTitleBox",value:function(t){this.titleBox=t}},{key:"getTitleBox",value:function(){return this.titleBox}},{key:"setInc",value:function(t){this.inc=t}},{key:"getInc",value:function(){return this.inc}},{key:"setChildart",value:function(t){this.childart=t}},{key:"getChildart",value:function(){return this.childart}},{key:"setPageJumps",value:function(t){this.pageJumps=t}},{key:"getPageJumps",value:function(){return this.pageJumps}},{key:"isText",value:function(){return this.getType()===i.EDITORIAL}},{key:"isAd",value:function(){return this.getType()===i.ADVERTISEMENT}},{key:"isLayout",value:function(){return this.getType()===i.PAGE_LAYOUT}},{key:"isEmpty",value:function(){return!this.getBoxes()||r(d[7]).JSUtils.isEmpty(this.getBoxes().filter(function(t){return t&&!t.isEmpty()}))}},{key:"equals",value:function(t){return!!t&&(this.getPageId()===t.getPageId()&&this.getXmlId()===t.getXmlId())}},{key:"titleToPrint",value:function(){var t=this.getTitle(),n="article_"+this.getPageId()+"_"+this.getXmlId()+"_";return void 0!==t&&(n+=t.toLowerCase().replace(/ /g,"_")),n}},{key:"isHidden",value:function(){return"hidden"===this.getSubType()}},{key:"isParent",value:function(){return!!this.pageJumps&&this.pageJumps.find(function(t){return t.hasTo()&&t.isParent()})}},{key:"isSlug",value:function(){return!!this.pageJumps&&this.pageJumps.find(function(t){return t.isSlug()})}},{key:"hasFrom",value:function(){return!!this.pageJumps&&this.pageJumps.find(function(t){return t.hasFrom()})}}]),u})();e.default=u},643,[5,7,8,640,641,644,645,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PageJumpType=void 0;var t=r(d[0])(r(d[1])),u=r(d[0])(r(d[2])),n={HIDDEN_SLUG:"hiddenSlug",PARENT:"parent",SLUG:"slug"};e.PageJumpType=n;var o=(function(){function o(){var u=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",h=arguments.length>4&&void 0!==arguments[4]?arguments[4]:-1,c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:-1;(0,t.default)(this,o),this.slug=u,this.from=n,this.to=l,this.type=s,this.articleId=h,this.articleFrom=c}return(0,u.default)(o,[{key:"getSlug",value:function(){return this.slug}},{key:"getFrom",value:function(){return this.from}},{key:"getTo",value:function(){return this.to}},{key:"hasTo",value:function(){return""!==this.to}},{key:"hasFrom",value:function(){return""!==this.from}},{key:"getArticleId",value:function(){return this.articleId}},{key:"getArticleFrom",value:function(){return-1!==this.articleFrom||this.hasTo()?this.articleFrom:this.articleId}},{key:"setSlug",value:function(t){this.slug=t}},{key:"setFrom",value:function(t){this.from=t}},{key:"setTo",value:function(t){this.to=t}},{key:"setType",value:function(t){this.type=t}},{key:"setArticleId",value:function(t){this.articleId=t}},{key:"isHiddenSlug",value:function(){return this.type===n.HIDDEN_SLUG}},{key:"isParent",value:function(){return this.type===n.PARENT}},{key:"isSlug",value:function(){return this.type===n.SLUG}},{key:"toString",value:function(){var t="\""+this.slug+"\":";return t+="{",this.from&&(t+="\"from\":\""+this.from+"\","),this.to&&(t+="\"to\":\""+this.to+"\","),this.type&&(t+="\"type\":\""+this.type+"\","),this.articleId>-1&&(t+="\"artid\":\"art_"+this.articleId+".xml\""),this.articleFrom>-1&&(t+="\"articlefrom\":\"art_"+this.articleFrom+".xml\""),t+="}"}}]),o})();e.default=o},644,[5,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),h=r(d[0])(r(d[2])),n=(function(){function n(h,u,s,f){(0,t.default)(this,n),this.left=parseInt(h,10),this.top=parseInt(u,10),this.width=parseInt(s,10),this.height=parseInt(f,10)}return(0,h.default)(n,[{key:"getTop",value:function(){return this.top}},{key:"getLeft",value:function(){return this.left}},{key:"getWidth",value:function(){return this.width}},{key:"getHeight",value:function(){return this.height}},{key:"isEmpty",value:function(){return 0===this.width&&0===this.height}},{key:"toString",value:function(){return"title,"+this.left+","+this.top+","+this.width+","+this.height}},{key:"contains",value:function(t,h){return this.getLeft()t&&this.getTop()h}}]),n})();e.default=n},645,[5,7,8]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PageType=e.SYMBOL_PAGE_STOP=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));r(d[0])(r(d[3])),r(d[0])(r(d[4])),r(d[0])(r(d[5])),r(d[0])(r(d[6]));e.SYMBOL_PAGE_STOP=".";var u={BROADSHEET:0,DOUBLE_TRUCK:1,TABLOID:2,TABLOID_DOUBLE_TRUCK:3};e.PageType=u;var s=(function(){function s(){(0,t.default)(this,s)}return(0,n.default)(s,[{key:"getIssueId",value:function(){return this.issueId}},{key:"setIssueId",value:function(t){this.issueId=t}},{key:"getPageId",value:function(){return this.pageId}},{key:"setPageId",value:function(t){this.pageId=t}},{key:"getPage",value:function(){return this.page}},{key:"setPage",value:function(t){this.page=t}},{key:"getShownPage",value:function(){return this.shownPage}},{key:"setShownPage",value:function(t){this.shownPage=t}},{key:"getFilename",value:function(){return this.filename}},{key:"setFilename",value:function(t){this.filename=t}},{key:"getSection",value:function(){return this.section}},{key:"setSection",value:function(t){this.section=t}},{key:"getType",value:function(){return this.type}},{key:"setType",value:function(t){this.type=t}},{key:"getModifyTime",value:function(){return this.modifyTime}},{key:"setModifyTime",value:function(t){this.modifyTime=t}},{key:"getExtralinks",value:function(){return this.extralinks}},{key:"setExtralinks",value:function(t){this.extralinks=t}},{key:"getExtraMd5",value:function(){return this.extraMd5}},{key:"setExtraMd5",value:function(t){this.extraMd5=t}},{key:"getBoxesInfo",value:function(){var t=this.getArticles()[0];if(t)return t.getBoxesInfo()}},{key:"getDpi",value:function(){var t=this.getBoxesInfo();return t?t.getDpi():r(d[7]).PlatformUtils.defaultDpi}},{key:"getWidth",value:function(){var t=this.getBoxesInfo();return t?t.getPageWidth():this.frameWidth}},{key:"getHeight",value:function(){var t=this.getBoxesInfo();return t?t.getPageHeight():this.frameHeight}},{key:"getTotalOffset",value:function(){var t=0,n=0,u=this.getBoxesInfo();return u&&(t=u.getTotalOffsetX(),n=u.getTotalOffsetY()),{offsetX:t,offsetY:n}}},{key:"getFrameWidth",value:function(t){return!this.isDoubleTruck()&&t?this.frameWidth/2:this.frameWidth}},{key:"setFrameWidth",value:function(t){this.frameWidth=t}},{key:"getFrameHeight",value:function(){return this.frameHeight}},{key:"setFrameHeight",value:function(t){this.frameHeight=t}},{key:"setEdition",value:function(t){this.edition=t}},{key:"getEdition",value:function(){return this.edition}},{key:"setArticles",value:function(t){this.articles=t}},{key:"getArticles",value:function(){return this.articles?this.articles.filter(function(t){return t&&!t.isEmpty()}):this.articles}},{key:"setImages",value:function(t){this.images=t}},{key:"getImages",value:function(){return this.images}},{key:"getImageByType",value:function(t){return this.images.find(function(n){return n.getType()===t})}},{key:"addImage",value:function(t){if(t){var n=this.images.findIndex(function(n){return n.getType()===t.getType()});n>=0?this.images[n]=t:this.images.push(t)}}},{key:"removeImage",value:function(t){this.images=this.images.filter(function(n){return n.getType()!==t.getType()})}},{key:"removeImageByType",value:function(t){this.images=this.images.filter(function(n){return n.getType()!==t})}},{key:"isDoubleTruck",value:function(){return this.isBroadSheetDoubleTruck()||this.isTabloidDoubleTruck()}},{key:"isTabloid",value:function(){return this.type===u.TABLOID}},{key:"isBroadSheetDoubleTruck",value:function(){return this.type===u.DOUBLE_TRUCK}},{key:"isTabloidDoubleTruck",value:function(){return this.type===u.TABLOID_DOUBLE_TRUCK}},{key:"isBroadSheet",value:function(){return this.type===u.BROADSHEET}},{key:"getLowImage",value:function(){return this.images?this.images.find(function(t){return t.isLow()}):void 0}},{key:"getGraphImage",value:function(){return this.images?this.images.find(function(t){return t.isGraph()}):void 0}},{key:"getTextImage",value:function(){return this.images?this.images.find(function(t){return t.isText()}):void 0}},{key:"getGifImage",value:function(){return this.images?this.images.find(function(t){return t.isTextGIF()}):void 0}},{key:"getPNGImage",value:function(){return this.images?this.images.find(function(t){return t.isTextPNG()}):void 0}},{key:"getHrZip",value:function(){return this.images?this.images.find(function(t){return t.isHighResZip()}):void 0}},{key:"setVisible",value:function(t){this.visible=t}},{key:"isVisible",value:function(){return this.visible}},{key:"setProtected",value:function(t){this.protected=t}},{key:"isProtected",value:function(){return this.protected}}]),s})();e.default=s},646,[5,7,8,647,643,589,641,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.PageExtraType=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o={MAIL:"mailto:",URL:"url",OPEN_APP:"openApp",OPEN_ISSUE:"openIssue",OPEN_ARTICLE:"openArticle",BRIGHT_COVE:"brightcove",EXTERNAL_URL:"externalurl",PAGE:"page",YOUTUBE:"youtube",VIDEO:"video",GALLERY:"gallery",POINTER:"pointer",ADDON:"addon",VIDEO_WEB:"videoweb",PHONE:"phone"};e.PageExtraType=o;var c=(function(){function c(n,o,s,u,h,f){(0,t.default)(this,c),this.type=n,this.content=o,this.imageURL=s,this.coordinates=u,this.size=h,this.pdfSize=f}return(0,n.default)(c,[{key:"getType",value:function(){if(this.content&&(this.type===o.URL||this.type===o.EXTERNAL_URL)){var t=r(d[3]).StringUtils.segmentUrl(r(d[3]).StringUtils.decodeURIComponent(this.content)).getParams;if(r(d[3]).JSUtils.hasProperty(t,"openIssue"))return o.OPEN_ISSUE;if(r(d[3]).JSUtils.hasProperty(t,"openArticle"))return o.OPEN_ARTICLE}return this.type}},{key:"setType",value:function(t){this.type=t}},{key:"getContent",value:function(){return this.content}},{key:"setContent",value:function(t){this.content=t}},{key:"getImageURL",value:function(){return this.imageURL}},{key:"setImageURL",value:function(t){this.imageURL=t}},{key:"getLeft",value:function(){return this.left}},{key:"getCoordinates",value:function(){return this.coordinates}},{key:"setCoordinates",value:function(t,n){this.coordinates={left:t,top:n}}},{key:"getSize",value:function(){return this.size}},{key:"setSize",value:function(t,n){this.size={width:t,height:n}}},{key:"getPdfSize",value:function(){return this.pdfSize}},{key:"setPdfSize",value:function(t,n){this.pdfSize={width:t,height:n}}},{key:"toString",value:function(){return this.type.concat(",").concat(this.coordinates.left).concat(",").concat(this.coordinates.top).concat(",").concat(this.size.width).concat(",").concat(this.size.height).concat(",").concat(this.pdfSize.width).concat(",").concat(this.pdfSize.height).concat(",").concat(this.content).concat(",").concat(this.imageURL)}}]),c})();e.default=c},647,[5,7,8,462]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.adaptIndexForRTL=function(e,t){var n;n=_r(d[1]).PlatformUtils.isRTL()?Math.min(Math.max(0,t-1-e),t-1):e;return n},_e.fixStartupIndex=function(e,t,n,i){var a;a=1===n?e:0===e?e:e===t-1?e-1:i&&t%2==1?e%2==0?e:e-1:i&&e%2==0?e-1:e%2==1?e:e-1;return a},_e.runTiming=function(t,s,p){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},h=c.onEnd,_=void 0===h?[]:h,v=c.startStopClock,w=void 0===v||v,M=c.duration,b=void 0===M?n:M,y=c.easing,O=void 0===y?e.Easing.linear:y,j={finished:new r(0),position:new r(0),frameTime:new r(0),time:new r(0)},k={toValue:new r(0),duration:b,easing:O};return[a(o(t),0,[i(j.finished,0),i(j.frameTime,0),i(j.time,0),i(j.position,s),i(k.toValue,p),w&&f(t)]),l(t,j,k),a(j.finished,[_,w&&u(t)]),j.position]},_e.pagesVisibleArea=function(e){for(var t=e._panX,n=e._panY,i=e._limits,a=e._top,r=e._left,o=e._horizontalMargin,u=e._width,f=e._viewWidth,l=e._viewHeight,s=e._pagesVisible,p=e._scale,c=[],h=i.length-1,_=u*p,v=o-Math.max(0,(f-_*s)/2),w=2*(o-v),M=(a-n)/p,b=-1*r+t,y=0;y1&&(0===y?x=Math.abs(u-j):i[y]>b-f&&(x=i[y]-_>b-f+w?u:Math.abs(b-f+w-i[y])/p)),x>=1&&c.push({x:j,y:M,width:x||0,height:P,index:k})}return c};var e=(function(e,n){if(!n&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=t(n);if(i&&i.has(e))return i.get(e);var a={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=r?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(a,o,u):a[o]=e[o]}return a.default=e,i&&i.set(e,a),a})(_r(d[0]));function t(e){if("function"!=typeof WeakMap)return null;var n=new WeakMap,i=new WeakMap;return(t=function(e){return e?i:n})(e)}var n=300,i=e.default.set,a=e.default.cond,r=e.default.Value,o=e.default.clockRunning,u=e.default.stopClock,f=e.default.startClock,l=e.default.timing},648,[649,462]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0});var e={decay:!0,timing:!0,spring:!0,Easing:!0,Clock:!0,Value:!0,Node:!0,Transition:!0,Transitioning:!0,createTransitioningComponent:!0,SpringUtils:!0,useValue:!0};Object.defineProperty(_e,"Easing",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"Clock",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(_e,"Value",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(_e,"Node",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"Transition",{enumerable:!0,get:function(){return _r(d[0]).Transition}}),Object.defineProperty(_e,"Transitioning",{enumerable:!0,get:function(){return _r(d[0]).Transitioning}}),Object.defineProperty(_e,"createTransitioningComponent",{enumerable:!0,get:function(){return _r(d[0]).createTransitioningComponent}}),Object.defineProperty(_e,"SpringUtils",{enumerable:!0,get:function(){return P.default}}),Object.defineProperty(_e,"useValue",{enumerable:!0,get:function(){return j.default}}),_e.spring=_e.timing=_e.decay=_e.default=void 0;var t=_r(d[1])(_r(d[2])),n=_r(d[3]),r=_r(d[1])(_r(d[4])),a=_r(d[1])(_r(d[5])),i=_r(d[1])(_r(d[6])),u=_r(d[1])(_r(d[7])),o=_r(d[1])(_r(d[8])),l=_(_r(d[9]));Object.keys(l).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===l[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return l[t]}}))});var f=_(_r(d[10]));Object.keys(f).forEach(function(t){"default"!==t&&"__esModule"!==t&&(Object.prototype.hasOwnProperty.call(e,t)||t in _e&&_e[t]===f[t]||Object.defineProperty(_e,t,{enumerable:!0,get:function(){return f[t]}}))});var c=_r(d[1])(_r(d[11])),p=_r(d[1])(_r(d[12])),s=_r(d[1])(_r(d[13])),b=_r(d[1])(_r(d[14])),y=_r(d[1])(_r(d[15])),O=_r(d[1])(_r(d[16])),P=_r(d[1])(_r(d[17])),j=_r(d[1])(_r(d[18]));function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(v=function(e){return e?n:t})(e)}function _(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=v(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var u=a?Object.getOwnPropertyDescriptor(e,i):null;u&&(u.get||u.set)?Object.defineProperty(r,i,u):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}var w=(0,O.default)(p.default,y.default.decayDefaultState);_e.decay=w;var T=(0,O.default)(s.default,y.default.timingDefaultState);_e.timing=T;var h=(0,O.default)(b.default,y.default.springDefaultState);_e.spring=h;var V=(0,t.default)({View:(0,c.default)(n.View),Text:(0,c.default)(n.Text),Image:(0,c.default)(n.Image),ScrollView:(0,c.default)(n.ScrollView),Code:o.default,createAnimatedComponent:c.default,Clock:a.default,Value:i.default,Node:u.default},l,f,{decay:w,timing:T,spring:h,SpringUtils:P.default,addWhitelistedNativeProps:_r(d[19]).addWhitelistedNativeProps,addWhitelistedUIProps:_r(d[19]).addWhitelistedUIProps,useValue:j.default});_e.default=V},649,[650,5,6,28,652,662,670,654,680,656,682,689,694,695,696,697,698,699,700,701]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createTransitioningComponent=D,e.Transition=e.Transitioning=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),p=r(d[0])(r(d[8])),c=r(d[9]),h=r(d[0])(r(d[10]));function v(t){var n=y();return function(){var o,u=(0,l.default)(t);if(n){var f=(0,l.default)(this).constructor;o=Reflect.construct(u,arguments,f)}else o=u.apply(this,arguments);return(0,s.default)(this,o)}}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}var k=p.default.createContext();function M(t,n){var o={type:t};return'durationMs'in n&&(o.durationMs=n.durationMs),'interpolation'in n&&(o.interpolation=n.interpolation),'type'in n&&(o.animation=n.type),'delayMs'in n&&(o.delayMs=n.delayMs),'propagation'in n&&(o.propagation=n.propagation),o}function T(t){return function(n){return p.default.createElement(k.Consumer,null,function(o){return p.default.createElement(t,(0,f.default)({context:o},n))})}}var x=(function(t){(0,u.default)(l,t);var s=v(l);function l(){return(0,n.default)(this,l),s.apply(this,arguments)}return(0,o.default)(l,[{key:"componentDidMount",value:function(){this.props.context.push(M('in',this.props))}},{key:"render",value:function(){return this.props.children||null}}]),l})(p.default.Component),C=(function(t){(0,u.default)(l,t);var s=v(l);function l(){return(0,n.default)(this,l),s.apply(this,arguments)}return(0,o.default)(l,[{key:"componentDidMount",value:function(){this.props.context.push(M('change',this.props))}},{key:"render",value:function(){return this.props.children||null}}]),l})(p.default.Component),w=(function(t){(0,u.default)(l,t);var s=v(l);function l(){return(0,n.default)(this,l),s.apply(this,arguments)}return(0,o.default)(l,[{key:"componentDidMount",value:function(){this.props.context.push(M('out',this.props))}},{key:"render",value:function(){return this.props.children||null}}]),l})(p.default.Component),E=(function(t){(0,u.default)(l,t);var s=v(l);function l(){var t;(0,n.default)(this,l);for(var o=arguments.length,u=new Array(o),f=0;f0&&void 0!==arguments[0]?arguments[0]:1)*Math.PI;return function(n){return(0,r(d[4]).sub)(1,(0,r(d[4]).multiply)((0,r(d[4]).pow)((0,r(d[4]).cos)((0,r(d[4]).multiply)(n,Math.PI,.5)),3),(0,r(d[4]).cos)((0,r(d[4]).multiply)(n,u))))}}},{key:"back",value:function(u){return void 0===u&&(u=1.70158),function(n){return(0,r(d[4]).multiply)(n,n,(0,r(d[4]).sub)((0,r(d[4]).multiply)((0,r(d[4]).add)(u,1),n),u))}}},{key:"bounce",value:function(u){var n=function(u){return(0,r(d[4]).multiply)(7.5625,u,u)};return(0,r(d[4]).cond)((0,r(d[4]).lessThan)(u,.36363636363636365),n(u),(0,r(d[4]).cond)((0,r(d[4]).lessThan)(u,.7272727272727273),(0,r(d[4]).add)(.75,n((0,r(d[4]).sub)(u,.5454545454545454))),(0,r(d[4]).cond)((0,r(d[4]).lessThan)(u,.9057971014492754),(0,r(d[4]).add)(.9375,n((0,r(d[4]).sub)(u,.8181818181818182))),(0,r(d[4]).add)(.984375,n((0,r(d[4]).sub)(u,.9545454545454546))))))}},{key:"bezier",value:function(u,n,l,o){return function(c){return new t.default(c,u,n,l,o)}}},{key:"in",value:function(u){return u}},{key:"out",value:function(u){return function(n){return(0,r(d[4]).sub)(1,u((0,r(d[4]).sub)(1,n)))}}},{key:"inOut",value:function(u){return function(n){return(0,r(d[4]).cond)((0,r(d[4]).lessThan)(n,.5),(0,r(d[4]).divide)(u((0,r(d[4]).multiply)(n,2)),2),(0,r(d[4]).sub)(1,(0,r(d[4]).divide)(u((0,r(d[4]).multiply)((0,r(d[4]).sub)(1,n),2)),2)))}}}]),l})();e.default=l},652,[5,7,8,653,656]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),i=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),c=r(d[0])(r(d[7]));function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}var v=4,s=.001,h=1e-7,y=10,_=11,p=.1,b='function'==typeof Float32Array;function z(t,n){return 1-3*n+3*t}function A(t,n){return 3*n-6*t}function B(t){return 3*t}function w(t,n,u){return((z(n,u)*t+A(n,u))*t+B(n))*t}function R(t,n,u){return 3*z(n,u)*t*t+2*A(n,u)*t+B(n)}function k(t,n,u,o,i){var f=0,c=0,l=0;do{(f=w(c=n+(u-n)/2,o,i)-t)>0?u=c:n=c}while(Math.abs(f)>h&&++l=s?F(n,c,t,u):0===l?c:k(n,o,o+p,t,u)}return function(i){return t===n&&u===o?i:0===i?0:1===i?1:w(c(i),n,o)}}var O=(function(v){(0,u.default)(_,v);var s,h,y=(s=_,h=l(),function(){var t,n=(0,i.default)(s);if(h){var u=(0,i.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function _(n,u,o,i,l){var v;return(0,t.default)(this,_),(0,c.default)(n instanceof f.default,"Reanimated: Bezier node argument should be of type AnimatedNode but got "+n),(v=y.call(this,{type:'bezier',mX1:u,mY1:o,mX2:i,mY2:l,input:n},[n]))._value=n,v._bezier=M(u,o,i,l),v}return(0,n.default)(_,[{key:"toString",value:function(){return"AnimatedBezier, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return this._bezier((0,r(d[8]).val)(this._value))}}]),_})(f.default);e.default=O},653,[5,7,8,12,14,16,654,604,655]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getCallID=function(){return f},e.setCallID=function(t){f=t},e.default=void 0;var t=r(d[0])(r(d[1])),i=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),_=r(d[0])(r(d[4])),o=r(d[5]),l=[],u=1,s=null,h=0,f="";function c(t){if('web'===o.Platform.OS||'windows'===o.Platform.OS||'macos'===o.Platform.OS||['undefined','string','function','boolean','number'].includes(typeof t))return t;if(Array.isArray(t))return t.map(c);if(t instanceof p)return t.__nodeID;if('object'==typeof t){var i={};for(var n in t)n in t&&(i[n]=c(t[n]));return i}return t}function v(){for(var t=new Set,i=function i(n){if(n){if(!t.has(n))if(t.add(n),'function'==typeof n.update)n.update();else{var _=n.__getChildren();if(_)for(var o=0,l=_.length;o1&&void 0!==arguments[1]&&arguments[1];return(0,t.default)(this,C),(0,f.default)(null!==n,'Animated.Value cannot be set to the null'),(u=A.call(this,{type:'value',value:v(n)}))._startingValue=u._value=n,u._animation=null,u._constant=l,u}return(0,n.default)(C,[{key:"__detach",value:function(){var t=this;this._constant||(s.default.getValue?s.default.getValue(this.__nodeID,function(n){return t.__nodeConfig.value=n}):this.__nodeConfig.value=this.__getValue()),this.__detachAnimation(this._animation),(0,u.default)((0,_.default)(C.prototype),"__detach",this).call(this)}},{key:"__detachAnimation",value:function(t){t&&t.__detach(),this._animation===t&&(this._animation=null)}},{key:"__attachAnimation",value:function(t){this.__detachAnimation(this._animation),this._animation=t}},{key:"__onEvaluate",value:function(){return this.__inputNodes&&this.__inputNodes.length&&this.__inputNodes.forEach(r(d[10]).val),this._value}},{key:"setValue",value:function(t){this.__detachAnimation(this._animation),this._updateValue(t)}},{key:"_updateValue",value:function(t){this._value=t,this.__forceUpdateCache(t)}}],[{key:"valueForConstant",value:function(t){return y(),p.get(t)||new C(t,!0)}}]),C})(c.default);e.default=V},659,[5,7,8,90,12,14,16,654,651,604,655]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedSet=function(t,n){return new v(t,(0,r(d[9]).adapt)(n))};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),f=r(d[0])(r(d[6])),c=r(d[0])(r(d[7]));function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}var v=(function(v){(0,u.default)(y,v);var h,_,p=(h=y,_=s(),function(){var t,n=(0,l.default)(h);if(_){var u=(0,l.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function y(n,u){var o;return(0,t.default)(this,y),(0,c.default)(n instanceof f.default,"Reanimated: Animated.set first argument should be of type AnimatedNode but got "+n),(0,c.default)(u instanceof f.default,"Reanimated: Animated.set second argument should be of type AnimatedNode, String or Number but got "+u),o=p.call(this,{type:'set',what:n,value:u},[u]),(0,c.default)(!n._constant,'Value to be set cannot be constant'),o._what=n,o._value=u,o}return(0,n.default)(y,[{key:"toString",value:function(){return"AnimatedSet, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){var t=(0,r(d[8]).val)(this._value);return this._what.setValue(t),t}}]),y})(f.default)},660,[5,7,8,12,14,16,654,604,655,658]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedStartClock=function(t){return new k(t)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8]));function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}var k=(function(l){(0,o.default)(y,l);var k,_,h=(k=y,_=v(),function(){var t,n=(0,c.default)(k);if(_){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function y(n){var o;return(0,t.default)(this,y),(0,s.default)(n instanceof f.default||n instanceof r(d[9]).AnimatedParam,"Reanimated: Animated.startClock argument should be of type AnimatedClock but got "+n),(o=h.call(this,{type:'clockStart',clock:n}))._clockNode=n,o}return(0,n.default)(y,[{key:"toString",value:function(){return"AnimatedStartClock, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return this._clockNode.start(),0}}]),y})(l.default)},661,[5,7,8,12,14,16,654,662,604,663]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),l=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),h=r(d[0])(r(d[6])),_=r(d[0])(r(d[7])),s=r(d[0])(r(d[8]));function o(t){var l=f();return function(){var n,u=(0,h.default)(t);if(l){var _=(0,h.default)(this).constructor;n=Reflect.construct(u,arguments,_)}else n=u.apply(this,arguments);return(0,c.default)(this,n)}}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var v=new((function(c){(0,u.default)(s,c);var _=o(s);function s(){var l;return(0,t.default)(this,s),(l=_.call(this,{type:'MAIN_CLOCK'}))._runFrame=function(){l._updateValue(0),l.__children.length>0&&(l._frameCallback=requestAnimationFrame(l._runFrame))},l}return(0,l.default)(s,[{key:"__onEvaluate",value:function(){return+new Date}},{key:"__attach",value:function(){(0,n.default)((0,h.default)(s.prototype),"__attach",this).call(this),this._frameCallback||(this._frameCallback=requestAnimationFrame(this._runFrame))}},{key:"__detach",value:function(){this._frameCallback&&(cancelAnimationFrame(this._frameCallback),this._frameCallback=null),(0,n.default)((0,h.default)(s.prototype),"__detach",this).call(this)}}]),s})(_.default)),y=(function(c){(0,u.default)(s,c);var _=o(s);function s(){return(0,t.default)(this,s),_.call(this,{type:'clock'})}return(0,l.default)(s,[{key:"toString",value:function(){return"AnimatedClock, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return(0,r(d[9]).val)(v)}},{key:"__attach",value:function(){(0,n.default)((0,h.default)(s.prototype),"__attach",this).call(this),this._started&&!this._attached&&v.__addChild(this),this._attached=!0}},{key:"__detach",value:function(){this._started&&this._attached&&v.__removeChild(this),this._attached=!1,(0,n.default)((0,h.default)(s.prototype),"__detach",this).call(this)}},{key:"start",value:function(){!this._started&&this._attached&&v.__addChild(this),this._started=!0}},{key:"stop",value:function(){this._started&&this._attached&&v.__removeChild(this),this._started=!1}},{key:"isStarted",value:function(){return this._started}}]),s})(s.default);e.default=y},662,[5,7,8,90,12,14,16,659,654,655]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.createAnimatedParam=function(){return new s},_e.AnimatedParam=void 0;var t=_r(d[0])(_r(d[1])),e=_r(d[0])(_r(d[2])),a=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),r=_r(d[0])(_r(d[5])),o=_r(d[0])(_r(d[6])),u=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var a=i(e);if(a&&a.has(t))return a.get(t);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var u=r?Object.getOwnPropertyDescriptor(t,o):null;u&&(u.get||u.set)?Object.defineProperty(n,o,u):n[o]=t[o]}return n.default=t,a&&a.set(t,n),n})(_r(d[7])),l=_r(d[0])(_r(d[8]));function i(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,a=new WeakMap;return(i=function(t){return t?a:e})(t)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var s=(function(i){(0,a.default)(v,i);var s,c,p=(s=v,c=f(),function(){var t,e=(0,r.default)(s);if(c){var a=(0,r.default)(this).constructor;t=Reflect.construct(e,arguments,a)}else t=e.apply(this,arguments);return(0,n.default)(this,t)});function v(){var e;return(0,t.default)(this,v),(e=p.call(this,{type:'param'},[])).argsStack=[],e.__attach(),e}return(0,e.default)(v,[{key:"beginContext",value:function(t,e){this._prevCallID=e,this.argsStack.push(t)}},{key:"endContext",value:function(){this.argsStack.pop()}},{key:"_getTopNode",value:function(){if(0===this.argsStack.length)throw new Error("param: Invocation failed because argsStack is empty");return this.argsStack[this.argsStack.length-1]}},{key:"setValue",value:function(t){var e=this._getTopNode();if(!e.setValue)throw new Error("param: setValue("+t+") failed because the top element has no known method for updating it's current value.");var a=(0,u.getCallID)();(0,u.setCallID)(this._prevCallID),e.setValue(t),(0,u.setCallID)(a)}},{key:"__onEvaluate",value:function(){var t=(0,u.getCallID)();(0,u.setCallID)(this._prevCallID);var e=this._getTopNode(),a=(0,_r(d[9]).val)(e);return(0,u.setCallID)(t),a}},{key:"start",value:function(){var t=this._getTopNode();(0,o.default)(t instanceof l.default||t instanceof v,"param: top node should be of type AnimatedClock but got "+t),t.start()}},{key:"stop",value:function(){var t=this._getTopNode();(0,o.default)(t instanceof l.default||t instanceof v,"param: top node should be of type AnimatedClock but got "+t),t.stop()}},{key:"isRunning",value:function(){var t=this._getTopNode();return t instanceof v?t.isRunning():((0,o.default)(t instanceof l.default,"param: top node should be of type AnimatedClock but got "+t),t.isStarted())}}]),v})(u.default);_e.AnimatedParam=s},663,[5,7,8,12,14,16,604,654,662,655]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedStopClock=function(t){return new v(t)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8]));function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}var v=(function(l){(0,o.default)(h,l);var v,k,_=(v=h,k=p(),function(){var t,n=(0,c.default)(v);if(k){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function h(n){var o;return(0,t.default)(this,h),(0,s.default)(n instanceof f.default||n instanceof r(d[9]).AnimatedParam,"Reanimated: Animated.stopClock argument should be of type AnimatedClock but got "+n),(o=_.call(this,{type:'clockStop',clock:n}))._clockNode=n,o}return(0,n.default)(h,[{key:"toString",value:function(){return"AnimatedStopClock, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return this._clockNode.stop(),0}}]),h})(l.default)},664,[5,7,8,12,14,16,654,662,604,663]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedClockTest=function(t){return new f(t)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),c=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5]));function l(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(l=function(){return!!t})()}var f=(function(f){(0,c.default)(h,f);var s,v,_=(s=h,v=l(),function(){var t,n=(0,o.default)(s);if(v){var c=(0,o.default)(this).constructor;t=Reflect.construct(n,arguments,c)}else t=n.apply(this,arguments);return(0,u.default)(this,t)});function h(n){var c;return(0,t.default)(this,h),(c=_.call(this,{type:'clockTest',clock:n}))._clockNode=n,c}return(0,n.default)(h,[{key:"toString",value:function(){return"AnimatedClockTest, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return this._clockNode.isStarted()?1:0}}]),h})(r(d[0])(r(d[6])).default)},665,[5,7,8,12,14,16,654]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedDebug=function(t,n){return n};r(d[0])(r(d[1]));var t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),c=(r(d[8]),r(d[0])(r(d[9])));function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(s=function(){return!!t})()}!(function(v){(0,u.default)(y,v);var _,b,h=(_=y,b=s(),function(){var t,n=(0,l.default)(_);if(b){var u=(0,l.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function y(n,u){var o;return(0,t.default)(this,y),(0,f.default)('string'==typeof n,"Reanimated: Animated.debug node first argument should be of type string but got "+n),(0,f.default)(u instanceof c.default,"Reanimated: Animated.debug node second argument should be of type AnimatedNode but got "+u),(o=h.call(this,{type:'debug',message:n,value:u},[u]))._message=n,o._value=u,o}(0,n.default)(y,[{key:"toString",value:function(){return"AnimatedDebug, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return(0,r(d[10]).val)(this._value)}}])})(c.default)},666,[5,41,7,8,12,14,16,604,28,654,655]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedCall=function(t,n){return new y(t,n)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),_=r(d[0])(r(d[9]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}var v=new Map;function p(t){var n=v.get(t.id);n&&n._callback(t.args)}var y=(function(y){(0,u.default)(R,y);var k,A,b=(k=R,A=h(),function(){var t,n=(0,c.default)(k);if(A){var l=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,l)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function R(n,l){var u;return(0,t.default)(this,R),(0,f.default)(n.every(function(t){return t instanceof _.default}),"Reanimated: Animated.call node args should be an array with elements of type AnimatedNode. One or more of them are not AnimatedNodes"),(u=b.call(this,{type:'call',input:n},n))._callback=l,u._args=n,u}return(0,n.default)(R,[{key:"toString",value:function(){return"AnimatedCall, id: "+this.__nodeID}},{key:"__attach",value:function(){(0,l.default)((0,c.default)(R.prototype),"__attach",this).call(this),v.set(this.__nodeID,this),1===v.size&&s.default.addListener('onReanimatedCall',p)}},{key:"__detach",value:function(){v.delete(this.__nodeID),0===v.size&&s.default.removeAllListeners('onReanimatedCall'),(0,l.default)((0,c.default)(R.prototype),"__detach",this).call(this)}},{key:"__onEvaluate",value:function(){return this._callback(this._args.map(r(d[10]).val)),0}}]),R})(_.default)},667,[5,7,8,90,12,14,16,604,668,654,655]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),u=new(r(d[2]).NativeEventEmitter)(t.default);e.default=u},668,[5,651,28]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createAnimatedEvent=function(t,n){return new p(t,n)},e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),i=r(d[0])(r(d[4])),u=r(d[0])(r(d[5])),l=r(d[6]),f=r(d[0])(r(d[7])),s=r(d[0])(r(d[8])),c=r(d[0])(r(d[9])),v=r(d[0])(r(d[10])),_=r(d[0])(r(d[11]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}function y(t){var n=[],o=[],i=function(t){return'web'===l.Platform.OS||'windows'===l.Platform.OS||'macos'===l.Platform.OS?t:t.__nodeID},u=function t(u,l){if(u instanceof c.default)n.push(l.concat(i(u)));else if('object'==typeof u&&u.__val)n.push(l.concat(i(u.__val)));else if('function'==typeof u){var f=new c.default(0);o.push((0,r(d[12]).createAnimatedAlways)(u(f))),n.push(l.concat(i(f)))}else if('object'==typeof u)for(var s in u)t(u[s],l.concat(s))};(0,v.default)(t[0]&&t[0].nativeEvent,'Native driven events only support animated values contained inside `nativeEvent`.');var f=t[0].nativeEvent;if('object'==typeof f)u(f,[]);else if('function'==typeof f){var s={get:function(t,n){return'__isProxy'===n||(t[n]||'__val'===n||(t[n]=new Proxy({},s)),t[n])},set:function(t,n,o){return'__val'===n&&(t[n]=o,!0)}},h='function'==typeof Proxy?new Proxy({},s):(0,_.default)();o.push((0,r(d[12]).createAnimatedAlways)(f(h))),u(h,[])}return{eventMappings:n,alwaysNodes:o}}var p=(function(s){(0,o.default)(p,s);var c,v,_=(c=p,v=h(),function(){var t,n=(0,u.default)(c);if(v){var o=(0,u.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,i.default)(this,t)});function p(n){var o;arguments.length>1&&void 0!==arguments[1]&&arguments[1];(0,t.default)(this,p);var i=y(n),u=i.eventMappings,l=i.alwaysNodes;return(o=_.call(this,{type:'event',argMapping:u})).__isNative=!0,o._alwaysNodes=l,o}return(0,n.default)(p,[{key:"toString",value:function(){return"AnimatedEvent, id: "+this.__nodeID}},{key:"attachEvent",value:function(t,n){for(var o=0;o=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function u(t,n){if(t){if("string"==typeof t)return l(t,n);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?l(t,n):void 0}}function l(t,n){(null==n||n>t.length)&&(n=t.length);for(var o=0,i=new Array(n);o3&&void 0!==arguments[3]?arguments[3]:0;return n.length-i==2?f(t,n,o,i):(0,r(d[6]).createAnimatedCond)((0,r(d[5]).lessThan)(t,n[i+1]),f(t,n,o,i),c(t,n,o,i+1))}var p={EXTEND:'extend',CLAMP:'clamp',IDENTITY:'identity'};function h(t,i){for(var u=1;u=i[u-1],'%s must be monotonically non-decreasing. (%s)',t,i)}function v(t,o){(0,n.default)(o.length>=2,'%s must have at least 2 elements. (%s)',t,o)}function y(t,i){for(var u=0;u1?l-1:0),c=1;ct}),lessOrEq:p(function(n,t){return n<=t}),greaterOrEq:p(function(n,t){return n>=t}),neq:p(function(n,t){return n!=t})},_=(function(s){(0,u.default)(_,s);var h,p,v=(h=_,p=l(),function(){var n,t=(0,a.default)(h);if(p){var u=(0,a.default)(this).constructor;n=Reflect.construct(t,arguments,u)}else n=t.apply(this,arguments);return(0,o.default)(this,n)});function _(t,u){var o;return(0,n.default)(this,_),(0,c.default)('string'==typeof t,"Reanimated: Animated.operator node first argument should be of type String, but got: "+t),(0,c.default)(u.every(function(n){return n instanceof f.default||'string'==typeof n||'number'==typeof n}),"Reanimated: Animated.operator node second argument should be one or more of type AnimatedNode, String or Number but got "+u),(o=v.call(this,{type:'op',op:t,input:u},u))._op=t,o._input=u,o}return(0,t.default)(_,[{key:"toString",value:function(){return"AnimatedOperator, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){return this._operation||(this._operation=M[this._op],(0,c.default)(this._operation,"Illegal operator '%s'",this._op)),this._operation(this._input)}}]),_})(f.default)},675,[5,7,8,12,14,16,654,604,655,658]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.evaluateOnce=function(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],l=arguments.length>2?arguments[2]:void 0;Array.isArray(i)||(i=[i]);for(var _=new t.default(0),c=(0,r(d[2]).createAnimatedCond)(_,0,(0,r(d[3]).createAnimatedCall)([n,(0,r(d[4]).createAnimatedSet)(_,1)],function(){l&&l();for(var t=0;t expects the 'exec' prop or children to be an animated node or a function returning an animated node. "+(t?"Got \""+typeof o+"\" type passed to exec":"Got \""+typeof t+"\" type passed to children"))}var u=function(u){var c=u.exec,f=u.children,l=u.dependencies,p=f||c,s=null;return p instanceof t.default?s=function(){return p}:'function'==typeof p&&(s=p),o(s,f,c),(0,n.default)(s,l),null};e.default=u},680,[5,681,654]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,u){if(!(n.default.useEffect instanceof Function))return;n.default.useEffect(function(){if(!(t instanceof Function)){console.warn('useCode() first argument should be a function that returns an animation node.');var n=t;t=function(){return n}}var u=t();if(u){u instanceof Array&&(u=(0,r(d[2]).block)(u));var f=(0,r(d[2]).always)(u);return f.__attach(),function(){return f.__detach()}}},u)};var n=r(d[0])(r(d[1]))},681,[5,17,656]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"acc",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(_e,"color",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"diff",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(_e,"diffClamp",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"interpolate",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"Extrapolate",{enumerable:!0,get:function(){return u.Extrapolate}}),Object.defineProperty(_e,"interpolateColors",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(_e,"onChange",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(_e,"useCode",{enumerable:!0,get:function(){return a.default}});var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),u=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=l(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var f=u?Object.getOwnPropertyDescriptor(e,o):null;f&&(f.get||f.set)?Object.defineProperty(n,o,f):n[o]=e[o]}return n.default=e,r&&r.set(e,n),n})(_r(d[5])),o=_r(d[0])(_r(d[6])),f=_r(d[0])(_r(d[7])),a=_r(d[0])(_r(d[8]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(l=function(e){return e?r:t})(e)}},682,[5,683,684,685,686,671,687,688,681]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){var f=new n.default(0);return t(u,f)};var n=r(d[0])(r(d[1])),t=(0,r(d[2]).proc)(function(n,t){return(0,r(d[2]).set)(t,(0,r(d[2]).add)(t,n))})},683,[5,659,656]); -__d(function(_g,_r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u,o,a){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if('web'===n.Platform.OS)return(0,_r(d[3]).concat)('rgba(',u,',',o,',',a,',',l,')');l=l instanceof r.default?(0,_r(d[3]).round)((0,_r(d[3]).multiply)(l,255)):Math.round(255*l);return t(u,o,a,l)};var n=_r(d[0]),r=_r(d[1])(_r(d[2])),t=(0,_r(d[3]).proc)(function(r,t,u,o){var a=(0,_r(d[3]).add)((0,_r(d[3]).multiply)(o,16777216),(0,_r(d[3]).multiply)((0,_r(d[3]).round)(r),65536),(0,_r(d[3]).multiply)((0,_r(d[3]).round)(t),256),(0,_r(d[3]).round)(u));return'android'===n.Platform.OS?(0,_r(d[3]).cond)((0,_r(d[3]).lessThan)(a,2147483648),a,(0,_r(d[3]).sub)(a,Math.pow(2,32))):a})},684,[28,5,654,656]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(u){var f=new n.default(0),o=new n.default;return t(u,f,o)};var n=r(d[0])(r(d[1])),t=(0,r(d[2]).proc)(function(n,t,u){return(0,r(d[2]).block)([(0,r(d[2]).set)(t,(0,r(d[2]).cond)((0,r(d[2]).defined)(u),(0,r(d[2]).sub)(n,u),0)),(0,r(d[2]).set)(u,n),t])})},685,[5,659,656]); -__d(function(g,r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(a,u,f){var l=new n.default;return(0,r(d[3]).set)(l,(0,r(d[3]).min)((0,r(d[3]).max)((0,r(d[3]).add)((0,r(d[3]).cond)((0,r(d[3]).defined)(l),l,a),(0,t.default)(a)),u),f))};var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2]))},686,[5,659,685,656]); -__d(function(_g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(r,f){var l=f.inputRange,i=f.outputColorRange.map(t.processColor),c=(0,_r(d[4]).round)((0,n.default)(r,{inputRange:l,outputRange:i.map(a),extrapolate:n.Extrapolate.CLAMP})),g=(0,_r(d[4]).round)((0,n.default)(r,{inputRange:l,outputRange:i.map(u),extrapolate:n.Extrapolate.CLAMP})),s=(0,_r(d[4]).round)((0,n.default)(r,{inputRange:l,outputRange:i.map(o),extrapolate:n.Extrapolate.CLAMP})),y=(0,n.default)(r,{inputRange:l,outputRange:i.map(p),extrapolate:n.Extrapolate.CLAMP});return(0,e.default)(c,g,s,y)};var t=_r(d[0]),e=_r(d[1])(_r(d[2])),n=(function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var n=r(e);if(n&&n.has(t))return n.get(t);var a={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in t)if("default"!==o&&Object.prototype.hasOwnProperty.call(t,o)){var p=u?Object.getOwnPropertyDescriptor(t,o):null;p&&(p.get||p.set)?Object.defineProperty(a,o,p):a[o]=t[o]}return a.default=t,n&&n.set(t,a),a})(_r(d[3]));function r(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(r=function(t){return t?n:e})(t)}function a(t){return t>>16&255}function u(t){return t>>8&255}function o(t){return 255&t}function p(t){return(t>>24&255)/255}},687,[28,5,684,671,656]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o,u){var c=new n.default;return t(o,u,c)};var n=r(d[0])(r(d[1])),t=(0,r(d[2]).proc)(function(n,t,o){return(0,r(d[2]).block)([(0,r(d[2]).cond)((0,r(d[2]).not)((0,r(d[2]).defined)(o)),(0,r(d[2]).set)(o,n)),(0,r(d[2]).cond)((0,r(d[2]).neq)(n,o),[(0,r(d[2]).set)(o,n),t])])})},688,[5,659,656]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(C){(0,y.default)('function'!=typeof C||C.prototype&&C.prototype.isReactComponent,"`createAnimatedComponent` does not support stateless functional components; use a class component instead.");var E=(function(y){(0,s.default)(w,y);var E,b,R=(E=w,b=k(),function(){var t,n=(0,c.default)(E);if(b){var o=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,p.default)(this,t)});function w(t){var o;return(0,n.default)(this,w),(o=R.call(this,t))._invokeAnimatedPropsCallbackOnMount=!1,o._animatedPropsCallback=function(){null==o._component?o._invokeAnimatedPropsCallbackOnMount=!0:'function'!=typeof o._component.setNativeProps?o.forceUpdate():o._component.setNativeProps(o._propsAnimated.__getValue())},o._setComponentRef=function(t){t!==o._component&&(o._component=t)},o._attachProps(o.props),o}return(0,o.default)(w,[{key:"componentWillUnmount",value:function(){this._detachPropUpdater(),this._propsAnimated&&this._propsAnimated.__detach(),this._detachNativeEvents()}},{key:"setNativeProps",value:function(t){this._component.setNativeProps(t)}},{key:"componentDidMount",value:function(){this._invokeAnimatedPropsCallbackOnMount&&(this._invokeAnimatedPropsCallbackOnMount=!1,this._animatedPropsCallback()),this._propsAnimated.setNativeView(this._component),this._attachNativeEvents(),this._attachPropUpdater()}},{key:"_getEventViewRef",value:function(){return this._component.getScrollableNode?this._component.getScrollableNode():this._component}},{key:"_attachNativeEvents",value:function(){var t=this._getEventViewRef();for(var n in this.props){var o=this.props[n];o instanceof v.default&&o.attachEvent(t,n)}}},{key:"_detachNativeEvents",value:function(){var t=this._getEventViewRef();for(var n in this.props){var o=this.props[n];o instanceof v.default&&o.detachEvent(t,n)}}},{key:"_reattachNativeEvents",value:function(t){var n=this._getEventViewRef(),o=new Set,s=new Set;for(var p in this.props){var c=this.props[p];c instanceof v.default&&s.add(c.__nodeID)}for(var l in t){var u=this.props[l];u instanceof v.default&&(s.has(u.__nodeID)?o.add(u.__nodeID):u.detachEvent(n,l))}for(var f in this.props){var h=this.props[f];h instanceof v.default&&!o.has(h.__nodeID)&&h.attachEvent(n,f)}}},{key:"_attachProps",value:function(t){var n=this._propsAnimated;this._propsAnimated=(0,r(d[14]).createOrReusePropsNode)(t,this._animatedPropsCallback,n),n!==this._propsAnimated&&n&&n.__detach()}},{key:"_updateFromNative",value:function(t){this._component.setNativeProps(t)}},{key:"_attachPropUpdater",value:function(){var t=(0,u.findNodeHandle)(this);N.set(t,this),1===N.size&&f.default.addListener('onReanimatedPropsChange',P)}},{key:"_detachPropUpdater",value:function(){var t=(0,u.findNodeHandle)(this);N.delete(t),0===N.size&&f.default.removeAllListeners('onReanimatedPropsChange')}},{key:"componentDidUpdate",value:function(t){this._attachProps(this.props),this._reattachNativeEvents(t),this._propsAnimated.setNativeView(this._component)}},{key:"_filterNonAnimatedStyle",value:function(t){var n={};for(var o in t){var s=t[o];'transform'!==o&&(s instanceof _.default?n[o]=s._startingValue:s instanceof h.default||(n[o]=s))}return n}},{key:"_filterNonAnimatedProps",value:function(t){var n={};for(var o in t){var s=t[o];'style'===o?n[o]=this._filterNonAnimatedStyle(u.StyleSheet.flatten(s)):s instanceof v.default?n[o]=A:s instanceof _.default?n[o]=s._startingValue:s instanceof h.default||(n[o]=s)}return n}},{key:"render",value:function(){var n=this._filterNonAnimatedProps(this.props),o=u.Platform.select({web:{},default:{collapsable:!1}});return l.default.createElement(C,(0,t.default)({},n,{ref:this._setComponentRef},o))}},{key:"getNode",value:function(){return this._component}}]),w})(l.default.Component);return E.displayName="AnimatedComponent("+(C.displayName||C.name||'Component')+")",E};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),p=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),u=r(d[8]),f=r(d[0])(r(d[9])),v=r(d[0])(r(d[10])),h=r(d[0])(r(d[11])),_=r(d[0])(r(d[12])),y=r(d[0])(r(d[13]));function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(k=function(){return!!t})()}var N=new Map;function P(t){var n=N.get(t.viewTag);n&&n._updateFromNative(t.props)}function A(){}},689,[5,6,7,8,12,14,16,17,28,668,669,654,670,604,690]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.createOrReusePropsNode=function(t,n,u){t.style&&(t=(0,f.default)({},t,{style:(0,r(d[13]).createOrReuseStyleNode)(t.style,u&&u._props.style)}));var l=w(t);if(u&&(0,p.default)(l,u._config))return u;return new V(t,l,n)};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),s=r(d[8]),_=r(d[0])(r(d[9])),v=r(d[0])(r(d[10])),h=r(d[0])(r(d[11])),p=r(d[0])(r(d[12]));function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(y=function(){return!!t})()}function w(t){var n={};for(var u in t){var l=t[u];l instanceof _.default&&!(l instanceof v.default)&&(n[u]=l.__nodeID)}return n}var V=(function(f){(0,l.default)(k,f);var p,w,V=(p=k,w=y(),function(){var t,n=(0,c.default)(p);if(w){var u=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,o.default)(this,t)});function k(n,u,l){var o;return(0,t.default)(this,k),(o=V.call(this,{type:'props',props:u},Object.values(n).filter(function(t){return!(t instanceof v.default)})))._config=u,o._props=n,o._callback=l,o.__attach(),o}return(0,n.default)(k,[{key:"toString",value:function(){return"AnimatedProps, id: "+this.__nodeID}},{key:"__onEvaluate",value:function(){var t={};for(var n in this._props){var u=this._props[n];u instanceof _.default&&(t[n]=u.__getValue())}return t}},{key:"__detach",value:function(){var t=(0,s.findNodeHandle)(this._animatedView);(0,h.default)(null!=t,'Unable to locate attached view in the native tree'),this._disconnectAnimatedView(t),(0,u.default)((0,c.default)(k.prototype),"__detach",this).call(this)}},{key:"update",value:function(){this._callback(),this._animatedView&&(0,r(d[14]).val)(this)}},{key:"setNativeView",value:function(t){if(this._animatedView!==t){this._animatedView=t;var n=(0,s.findNodeHandle)(this._animatedView);(0,h.default)(null!=n,'Unable to locate attached view in the native tree'),this._connectAnimatedView(n)}}}]),k})(_.default)},690,[5,7,8,90,12,14,16,6,28,654,669,604,691,692,655]); -__d(function(g,r,_i,_a,m,e,d){"use strict";var t=[],n=[];function u(t,n,o,l){if(t===n)return 0!==t||1/t==1/n;if(null==t||null==n)return!1;if('object'!=typeof t||'object'!=typeof n)return!1;var a=Object.prototype.toString,c=a.call(t);if(c!=a.call(n))return!1;switch(c){case'[object String]':return t==String(n);case'[object Number]':return!isNaN(t)&&!isNaN(n)&&t==Number(n);case'[object Date]':case'[object Boolean]':return+t==+n;case'[object RegExp]':return t.source==n.source&&t.global==n.global&&t.multiline==n.multiline&&t.ignoreCase==n.ignoreCase}for(var i=o.length;i--;)if(o[i]==t)return l[i]==n;o.push(t),l.push(n);var s=0;if('[object Array]'===c){if((s=t.length)!==n.length)return!1;for(;s--;)if(!u(t[s],n[s],o,l))return!1}else{if(t.constructor!==n.constructor)return!1;if(t.hasOwnProperty('valueOf')&&n.hasOwnProperty('valueOf'))return t.valueOf()==n.valueOf();var f=Object.keys(t);if(f.length!=Object.keys(n).length)return!1;for(var p=0;p18&&M<=44?y(M):b(M),c(2*v-v*v,h,.01));return(0,n.default)({},f,{stiffness:o(O),damping:l(T)})}var y={makeDefaultConfig:function(){return{stiffness:new u.default(100),mass:new u.default(1),damping:new u.default(10),overshootClamping:!1,restSpeedThreshold:.001,restDisplacementThreshold:.001,toValue:new u.default(0)}},makeConfigFromBouncinessAndSpeed:function(n){var u=n.bounciness,o=n.speed,l=(0,t.default)(n,["bounciness","speed"]);return'number'==typeof u&&'number'==typeof o?c(u,o,l):p(u,o,l)},makeConfigFromOrigamiTensionAndFriction:function(u){var p=u.tension,c=u.friction,y=(0,t.default)(u,["tension","friction"]);return(0,n.default)({},y,{stiffness:'number'==typeof p?o(p):f(p),damping:'number'==typeof c?l(c):s(c)})}};e.default=y},699,[5,6,108,659,656]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var l=u.default.useRef(null);null===l.current&&(l.current=new n.default(t));return l.current};var u=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]))},700,[5,17,670]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.addWhitelistedNativeProps=function(o){l=(0,t.default)({},l,o),s()},e.addWhitelistedUIProps=function(o){n=(0,t.default)({},n,o),s()};var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n={opacity:!0,transform:!0,backgroundColor:!0,borderRightColor:!0,borderBottomColor:!0,borderColor:!0,borderEndColor:!0,borderLeftColor:!0,borderStartColor:!0,borderTopColor:!0,shadowOpacity:!0,shadowRadius:!0,scaleX:!0,scaleY:!0,translateX:!0,translateY:!0},l={borderBottomWidth:!0,borderEndWidth:!0,borderLeftWidth:!0,borderRightWidth:!0,borderStartWidth:!0,borderTopWidth:!0,borderWidth:!0,bottom:!0,flex:!0,flexGrow:!0,flexShrink:!0,height:!0,left:!0,margin:!0,marginBottom:!0,marginEnd:!0,marginHorizontal:!0,marginLeft:!0,marginRight:!0,marginStart:!0,marginTop:!0,marginVertical:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,padding:!0,paddingBottom:!0,paddingEnd:!0,paddingHorizontal:!0,paddingLeft:!0,paddingRight:!0,paddingStart:!0,paddingTop:!0,paddingVertical:!0,right:!0,start:!0,top:!0,width:!0,zIndex:!0,borderBottomEndRadius:!0,borderBottomLeftRadius:!0,borderBottomRightRadius:!0,borderBottomStartRadius:!0,borderRadius:!0,borderTopEndRadius:!0,borderTopLeftRadius:!0,borderTopRightRadius:!0,borderTopStartRadius:!0,opacity:!0,elevation:!0,fontSize:!0,lineHeight:!0,textShadowRadius:!0,letterSpacing:!0,display:!0,backfaceVisibility:!0,overflow:!0,resizeMode:!0,fontStyle:!0,fontWeight:!0,textAlign:!0,textDecorationLine:!0,fontFamily:!0,textAlignVertical:!0,fontVariant:!0,textDecorationStyle:!0,textTransform:!0,writingDirection:!0,color:!0};function s(){o.default.configureProps(Object.keys(l),Object.keys(n))}s()},701,[5,6,651]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.CustomAlert=_e.ModalOverlay=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[0])(_r(d[3])),o=_r(d[0])(_r(d[4])),a=_r(d[0])(_r(d[5])),l=_r(d[0])(_r(d[6])),i=_r(d[0])(_r(d[7])),r=_r(d[0])(_r(d[8])),s=_r(d[9]),u=_r(d[0])(_r(d[10])),c=_r(d[0])(_r(d[11])),f=_r(d[0])(_r(d[12])),v=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=p(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var i=a?Object.getOwnPropertyDescriptor(e,l):null;i&&(i.get||i.set)?Object.defineProperty(o,l,i):o[l]=e[l]}return o.default=e,n&&n.set(e,o),o})(_r(d[13]));function p(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(p=function(e){return e?n:t})(e)}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var h=(function(p){(0,a.default)(M,p);var h,b,O=(h=M,b=y(),function(){var e,t=(0,i.default)(h);if(b){var n=(0,i.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,l.default)(this,e)});function M(e){var n;return(0,t.default)(this,M),(n=O.call(this,e)).state={cancelable:!0,expanded:!1,Component:null,style:void 0,containerStyle:void 0,contentStyle:void 0,supportedOrientations:void 0,onDismiss:void 0,dontUseModal:!1},n.show=n._show.bind((0,o.default)(n)),n.hide=n._hide.bind((0,o.default)(n)),n}return(0,n.default)(M,[{key:"_show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.Component,n=e.style,o=e.containerStyle,a=e.contentStyle,l=e.supportedOrientations,i=e.cancelable,r=e.onDismiss,s=e.dontUseModal,u=void 0!==s&&s;this.setState({expanded:!0,cancelable:i,Component:t,style:n,containerStyle:o,contentStyle:a,supportedOrientations:l,onDismiss:r,dontUseModal:u})}},{key:"_hide",value:function(){var e=this.state.onDismiss;"function"==typeof e&&e(),this.setState({cancelable:!0,expanded:!1,Component:null,style:void 0,contentStyle:void 0,supportedOrientations:void 0,onDismiss:void 0,dontUseModal:!1})}},{key:"render",value:function(){var t=this.state,n=t.expanded,o=t.cancelable,a=t.Component,l=t.style,i=t.containerStyle,c=t.contentStyle,p=t.supportedOrientations,y=t.dontUseModal,h={cancelable:o};o&&(h.onBackdropPress=this.hide,h.onBackButtonPress=this.hide);var b=_r(d[14]).Css.getDefaultBackgroundColor(),O=r.default.createElement(s.View,{style:c},a);if(y){var M=u.default.getSafeAreaInsets(),S=M.top,k=M.bottom,w=u.default.getSafeArea().height;return r.default.createElement(f.default,(0,e.default)({visible:n,containerStyle:i},h,{useNativeDriver:!0}),r.default.createElement(s.View,{style:[v.ModalStyle.container,{backgroundColor:b,marginTop:S,marginBottom:k,maxHeight:w}]},O))}return a?r.default.createElement(v.default,(0,e.default)({visible:n,supportedOrientations:p,style:l,containerStyle:i,backgroundColor:b},h),r.default.createElement(_r(d[15]).GestureHandlerRootView,null,O)):null}}],[{key:"alert",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.title,n=e.message,o=e.buttons,a=void 0===o?[]:o,l=e.options,i=void 0===l?{}:l,s=i.cancelable,u=void 0===s||s,f=i.onDismiss,v=i.dontUseModal,p=void 0!==v&&v;M.show({Component:r.default.createElement(c.default,{title:t,message:n,buttons:a,onDismiss:M.hide}),cancelable:u,onDismiss:f,dontUseModal:p})}},{key:"show",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};M.instance.show(e)}},{key:"hide",value:function(){M.instance.hide()}}]),M})(r.default.Component);_e.ModalOverlay=h;var b={alert:function(t,n,o){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};h.alert({title:t,message:n,buttons:o,options:(0,e.default)({dontUseModal:!0},a)})}};_e.CustomAlert=b},702,[5,6,7,8,15,12,14,16,17,28,458,703,717,718,708,1]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),n=_r(d[3]),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=l(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var u=o?Object.getOwnPropertyDescriptor(e,a):null;u&&(u.get||u.set)?Object.defineProperty(r,a,u):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r})(_r(d[4]));function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(l=function(e){return e?n:t})(e)}var o=n.StyleSheet.create({modal:{padding:10},title:{fontSize:20,margin:10},text:{marginHorizontal:10,marginBottom:10},button:{flex:1,alignItems:"center",justifyContent:"center",height:50,borderWidth:.5,margin:5}});function a(e){var l=e.title,a=e.message,u=e.onDismiss,f=e.buttons;f||(f=[]),0===f.length&&f.push({text:g.strings("btn_ok")});var i=_r(d[5]).Css.getDefaultBackgroundColor(),s=_r(d[5]).Css.getDefaultForegroundColor(),c={flexDirection:"row",width:"100%"};return f.length>2&&(c.flexDirection="column",c.height=f.length*(o.button.height+2*o.button.margin)),t.default.createElement(n.View,{style:[o.modal,{backgroundColor:i}]},l?t.default.createElement(r.default,{style:[o.title,{color:s}],type:r.Type.bold},l):null,a?t.default.createElement(r.default,{style:[o.text,{color:s}]},a):null,f.length?t.default.createElement(n.View,{style:c},f.map(function(e,l){var a=e.Component,f=void 0===a?null:a,i=e.text,c=e.onPress,p=e.style,y=void 0===p?{}:p;return t.default.createElement(n.View,{key:"ta_alert_button_container_"+l,style:{flexDirection:"row",flex:1}},f||t.default.createElement(n.TouchableOpacity,{key:"ta_alert_button_"+l,style:[o.button,{borderColor:s},y],onPress:function(){"function"==typeof u&&u(),"function"==typeof c&&c()}},t.default.createElement(r.default,{style:[o.buttonText,{color:s}],type:r.Type.bold},i)))})):null)}a.propTypes={title:e.default.string,message:e.default.string,buttons:e.default.arrayOf(e.default.shape({Component:e.default.any,text:e.default.string,onPress:e.default.func,style:e.default.oneOfType([e.default.array,e.default.object,e.default.number])})),onDismiss:e.default.func},a.defaultProps={title:"",message:"",buttons:[]};var u=a;_e.default=u},703,[5,201,17,28,704,708]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.Type=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),l=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),u=r(d[6]),s=["uppercase","lowercase","capitalize","none"],f=["flex","none"],y={bold:"bold",medium:"medium",regular:"regular"};_e.Type=y;var p=function(t,e){var l=r(d[7]).CssUtils.getAttributeFromStyle("fontFamily",t),o=r(d[7]).CssUtils.getAttributeFromStyle("fontWeight",t),n={};if(l||(n.fontFamily="system font"),!o)switch(e){case y.bold:n.fontWeight="bold";break;case y.medium:n.fontWeight="normal";break;default:n.fontWeight="normal"}return n},c=function(t,e){var l=r(d[7]).CssUtils.getAttributeFromStyle("textTransform",e,"none",!0),o=t;"upperFirst"===l&&"string"==typeof t?o=(o=o.toLowerCase()).charAt(0).toUpperCase()+o.slice(1):s.includes(l)&&e.push({textTransform:l});var n=r(d[7]).CssUtils.getAttributeFromStyle("display",e,"",!0);return n&&(f.includes(n)||(n="flex"),e.push({display:n})),{children:o,style:e}};function F(o){var s=(0,r(d[8]).useFonts)(),f=s.allowFontScaling,F=s.fontRegular,b=s.fontMedium,h=s.fontBold,v=o.type,S=o.style,x=o.onLayout,A=o.children,U=(0,l.default)(o,["type","style","onLayout","children"]),C=[(function(t){var e={};return t===y.bold&&h?e.fontFamily=h.font:t===y.medium&&b?e.fontFamily=b.font:F&&(e.fontFamily=F.font),e})(v)];S&&(Array.isArray(S)?C.push.apply(C,(0,e.default)(S)):C.push(S)),C.push(p(C,v));var T=c(A,C);return n.default.createElement(u.Text,(0,t.default)({onLayout:function(t){x&&x(t,C)},allowFontScaling:f,minimumFontScale:r(d[7]).FontUtils.fontMinScale,maxFontSizeMultiplier:r(d[7]).FontUtils.fontMaxScale},U,T))}F.propTypes={type:o.default.oneOf(Object.values(y)),onLayout:o.default.func,style:o.default.any,children:o.default.any,supportFontScaling:o.default.bool,useDefaultFonts:o.default.bool},F.defaultProps={type:y.regular,supportFontScaling:!0,useDefaultFonts:!1};var b=F;_e.default=b},704,[5,6,21,108,201,17,28,462,705]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.addDebugOperation=function(e,t){if(g.enableDebugger)try{u.set({enabled:!0,lastOperation:new o(e,t)})}catch(e){}},_e.resetDebugOperations=function(){u.set({lastOperation:void 0})},_e.setDebugOperationsEnabled=function(e){g.enableDebugger=e,u.set({enabled:e})},_e.setFonts=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.set(e)},_e.useDebugContext=function(){return(0,r(d[3]).useReactiveContext)(u).state},_e.useFonts=function(){return(0,r(d[3]).useReactiveContext)(n).state},_e.FontContext=_e.DebugOperation=_e.DebugContext=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=(0,r(d[3]).createReactiveContext)({fontBold:void 0,fontMedium:void 0,fontRegular:void 0,allowFontScaling:!0});_e.FontContext=n;var o=(function(){function n(t,o){(0,e.default)(this,n),this.prefix=t,this.text=o,this.timestamp=(new Date).getTime()}return(0,t.default)(n,[{key:"getTimestamp",value:function(){return this.timestamp}},{key:"toString",value:function(){return this.text?this.prefix+" - "+this.text:this.prefix}}]),n})();_e.DebugOperation=o;var u=(0,r(d[3]).createReactiveContext)({enabled:!1,lastOperation:void 0});_e.DebugContext=u},705,[5,7,8,706]); -__d(function(g,r,_i,_a,m,e,d){function t(t){return t&&'object'==typeof t&&'default'in t?t.default:t}var n,o=r(d[0]),u=t(o),c=t(r(d[1]));function a(){return(a=Object.assign?Object.assign.bind():function(t){for(var n=1;n=0||(c[o]=t[o]);return c}!(function(t){t.equals=function(t,n){return c(t,n)}})(n||(n={}));var i,l=["value","decorator"],s=["children"];function v(t,n){var o;return"function"==typeof i&&(o=i(t,n)),{decoratedState:o,state:t}}e.createReactiveContext=function(t,c){var b,y,p=o.createContext(t),h={};function j(t){void 0===t&&(t=[]);for(var n=0;n_))return!1;var p=f.get(t);if(p&&f.get(o))return p==o;var v=-1,y=!0,b=u&n?new xt:void 0;for(f.set(t,o),f.set(o,t);++v<_;){var j=t[v],w=o[v];if(c)var z=l?c(w,j,v,o,t,f):c(j,w,v,t,o,f);if(void 0!==z){if(z)continue;y=!1;break}if(b){if(!V(o,function(t,e){if(n=e,!b.has(n)&&(j===t||s(j,t,u,c,f)))return b.push(e);var n})){y=!1;break}}else if(j!==w&&!s(j,w,u,c,f)){y=!1;break}}return f.delete(t),f.delete(o),y}function Vt(t,o,u,c,s,h,p){switch(u){case E:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case P:return!(t.byteLength!=o.byteLength||!h(new st(t),new st(o)));case f:case l:case y:return ee(+t,+o);case _:return t.name==o.name&&t.message==o.message;case z:case O:return t==o+'';case v:var b=H;case A:var j=c&e;if(b||(b=J),t.size!=o.size&&!j)return!1;var w=p.get(t);if(w)return w==o;c|=n,p.set(t,o);var S=Nt(b(t),b(o),c,s,h,p);return p.delete(t),S;case k:if(Pt)return Pt.call(t)==Pt.call(o)}return!1}function Gt(t,n,o,u,c,s){var f=o&e,l=qt(t),_=l.length;if(_!=qt(n).length&&!f)return!1;for(var h=_;h--;){var p=l[h];if(!(f?p in n:nt.call(n,p)))return!1}var v=s.get(t);if(v&&s.get(n))return v==n;var y=!0;s.set(t,n),s.set(n,t);for(var b=f;++h<_;){var j=t[p=l[h]],w=n[p];if(u)var z=f?u(w,j,p,n,t,s):u(j,w,p,t,n,s);if(!(void 0===z?j===w||c(j,w,o,u,s):z)){y=!1;break}b||(b='constructor'==p)}if(y&&!b){var A=t.constructor,O=n.constructor;A!=O&&'constructor'in t&&'constructor'in n&&!('function'==typeof A&&A instanceof A&&'function'==typeof O&&O instanceof O)&&(y=!1)}return s.delete(t),s.delete(n),y}function qt(t){return It(t,fe,Qt)}function Ht(t,e){var n,o,u=t.__data__;return('string'==(o=typeof(n=e))||'number'==o||'symbol'==o||'boolean'==o?'__proto__'!==n:null===n)?u['string'==typeof e?'string':'hash']:u.map}function Jt(t,e){var n=q(t,e);return Rt(n)?n:void 0}function Kt(t){var e=nt.call(t,_t),n=t[_t];try{t[_t]=void 0}catch(t){}var o=it.call(t);return e?t[_t]=n:delete t[_t],o}Et.prototype.clear=function(){this.__data__=wt?wt(null):{},this.size=0},Et.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Et.prototype.get=function(e){var n=this.__data__;if(wt){var o=n[e];return o===t?void 0:o}return nt.call(n,e)?n[e]:void 0},Et.prototype.has=function(t){var e=this.__data__;return wt?void 0!==e[t]:nt.call(e,t)},Et.prototype.set=function(e,n){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=wt&&void 0===n?t:n,this},Ft.prototype.clear=function(){this.__data__=[],this.size=0},Ft.prototype.delete=function(t){var e=this.__data__,n=Bt(e,t);return!(n<0||(n==e.length-1?e.pop():lt.call(e,n,1),--this.size,0))},Ft.prototype.get=function(t){var e=this.__data__,n=Bt(e,t);return n<0?void 0:e[n][1]},Ft.prototype.has=function(t){return Bt(this.__data__,t)>-1},Ft.prototype.set=function(t,e){var n=this.__data__,o=Bt(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this},$t.prototype.clear=function(){this.size=0,this.__data__={hash:new Et,map:new(bt||Ft),string:new Et}},$t.prototype.delete=function(t){var e=Ht(this,t).delete(t);return this.size-=e?1:0,e},$t.prototype.get=function(t){return Ht(this,t).get(t)},$t.prototype.has=function(t){return Ht(this,t).has(t)},$t.prototype.set=function(t,e){var n=Ht(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this},xt.prototype.add=xt.prototype.push=function(e){return this.__data__.set(e,t),this},xt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.clear=function(){this.__data__=new Ft,this.size=0},Mt.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},Mt.prototype.get=function(t){return this.__data__.get(t)},Mt.prototype.has=function(t){return this.__data__.has(t)},Mt.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Ft){var o=n.__data__;if(!bt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new $t(o)}return n.set(t,e),this.size=n.size,this};var Qt=ht?function(t){return null==t?[]:(t=Object(t),C(ht(t),function(e){return ft.call(t,e)}))}:function(){return[]},Xt=Lt;function Yt(t,e){return!!(e=null==e?o:e)&&('number'==typeof t||$.test(t))&&t>-1&&t%1==0&&t-1&&t%1==0&&t<=o}function ue(t){var e=typeof t;return null!=t&&('object'==e||'function'==e)}function ce(t){return null!=t&&'object'==typeof t}var se=R?(function(t){return function(e){return t(e)}})(R):function(t){return ce(t)&&ae(t.length)&&!!x[Lt(t)]};function fe(t){return null!=(e=t)&&ae(e.length)&&!ie(e)?Ut(t):Ct(t);var e}m.exports=function(t,e){return Wt(t,e)}},707,[]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.Css=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),u=_r(d[0])(_r(d[5])),l=_r(d[0])(_r(d[6])),a=_r(d[0])(_r(d[7])),o=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=f(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var a=u?Object.getOwnPropertyDescriptor(e,l):null;a&&(a.get||a.set)?Object.defineProperty(n,l,a):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[8])),s=_r(d[0])(_r(d[9])),i=_r(d[0])(_r(d[10])),c=_r(d[0])(_r(d[11]));function f(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(f=function(e){return e?r:t})(e)}function v(e){var t=p();return function(){var r,n=(0,a.default)(e);if(t){var u=(0,a.default)(this).constructor;r=Reflect.construct(n,arguments,u)}else r=n.apply(this,arguments);return(0,l.default)(this,r)}}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(p=function(){return!!e})()}var y=o.default,h=y.Consumer,C=y.Provider,k=function(){return{isPortrait:c.default.isPortrait(),isTablet:_r(d[12]).PlatformUtils.isTablet(),isDark:c.default.isDark()}},T=(function(e){(0,u.default)(l,e);var t=v(l);function l(){return(0,r.default)(this,l),t.apply(this,arguments)}return(0,n.default)(l,[{key:"render",value:function(){return s.default.createElement(C,this.props)}}]),l})(s.default.Component),b=(function(l){(0,u.default)(c,l);var a=v(c);function c(){return(0,r.default)(this,c),a.apply(this,arguments)}return(0,n.default)(c,[{key:"componentDidMount",value:function(){this.onSizeChangeId=_r(d[13]).EventRegister.addEventListener(i.default.ON_ORIENTATION_CHANGE,function(){o.default.set((0,t.default)({},k()))})}},{key:"componentWillUnmount",value:function(){this.onSizeChangeId&&_r(d[13]).EventRegister.rm(this.onSizeChangeId)}},{key:"render",value:function(){return s.default.createElement(h,this.props)}}],[{key:"flatten",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return o.CssHelper.flatten(e,t,r)}},{key:"getStyleByCssClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.CssHelper.getStyle(e,t)}},{key:"getStyleObjByCssClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.CssHelper.getStyleObj(e,t)}},{key:"getActiveTheme",value:function(){return o.CssHelper.getActiveThemeId()}},{key:"getThemeInUse",value:function(){return o.CssHelper.getInUseThemeId()}},{key:"getThemes",value:function(){return o.CssHelper.getThemes()}},{key:"arrayToObject",value:function(e){return o.CssHelper.arrayToObject(e)}},{key:"applyCustomStyles",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=o.CssHelper.mergeRnStyles((0,_r(d[14]).getDefaultStyles)(),e,(0,_r(d[15]).getDebugStyles)());o.default.set((0,t.default)({rnStyles:r},k(),{activeTheme:c.getUserTheme()}))}},{key:"updateCustomStyles",value:function(t){var r;return e.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=c.getUserTheme(),t===r){n.next=6;break}return n.next=4,e.default.awrap(g.getNewsmemoryConfig().setTheme(t));case 4:return o.default.set({activeTheme:t}),n.abrupt("return",!0);case 6:return n.abrupt("return",!1);case 7:case"end":return n.stop()}},null,null,null,Promise)}},{key:"getUserTheme",value:function(){return g.getNewsmemoryConfig().cssTheme}},{key:"getDefaultBackgroundColor",value:function(){var e=o.CssHelper.getActiveBaseColors().background;return e||(o.CssHelper.isActiveThemeDark()?_r(d[12]).colors.grey1010:_r(d[12]).colors.white)}},{key:"getAlternateDefaultBackgroundColor",value:function(){var e=o.CssHelper.getActiveBaseColors().alternateBackground;return e||(o.CssHelper.isActiveThemeDark()?_r(d[12]).colors.grey1200:_r(d[12]).colors.grey200)}},{key:"getDefaultForegroundColor",value:function(){var e=o.CssHelper.getActiveBaseColors().foreground;return e||(o.CssHelper.isActiveThemeDark()?_r(d[12]).colors.white_transparent_135:_r(d[12]).colors.black)}},{key:"isDarkTheme",value:function(){return o.CssHelper.isActiveThemeDark()}},{key:"isAutomaticTheme",value:function(){return o.CssHelper.isActiveThemeAutomatic()}},{key:"resolvePlaceholders",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o.CssHelper.resolvePlaceholders(e,t)}}]),c})(s.default.Component);_e.Css=b,b.Provider=T,b.use=o.useCss},708,[5,80,6,7,8,12,14,16,709,17,460,458,462,574,715,716]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"useCss",{enumerable:!0,get:function(){return a.useCss}}),_e.default=_e.CssHelper=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),a=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=s(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var o=a?Object.getOwnPropertyDescriptor(e,u):null;o&&(o.get||o.set)?Object.defineProperty(n,u,o):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n})(_r(d[5]));function s(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(s=function(e){return e?r:t})(e)}function u(){return(u=Object.assign?Object.assign.bind():function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:[];return _r(d[6]).CssManager.arrayToObject(e)},flatten:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return _r(d[6]).CssManager.flatten(o.get().state,e,t,r)},getStyle:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _r(d[6]).CssManager.getStyle(o.get().state,e,t)},getStyleObj:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return _r(d[6]).CssManager.getStyleObj(o.get().state,e,t)},getInUseThemeId:function(){return _r(d[6]).CssManager.getInUseThemeId(o.get().state)},getInUseTheme:function(){return _r(d[6]).CssManager.getInUseTheme(o.get().state)},getActiveThemeId:function(){return _r(d[6]).CssManager.getActiveThemeId(o.get().state)},getThemes:function(){return _r(d[6]).CssManager.getThemes(o.get().state)},isActiveThemeDark:function(){return _r(d[6]).CssManager.isActiveThemeDark(o.get().state)},isActiveThemeAutomatic:function(){return _r(d[6]).CssManager.isActiveThemeAutomatic(o.get().state)},getActiveBaseColors:function(){return _r(d[6]).CssManager.getActiveBaseColors(o.get().state)},mergeRnStyles:_r(d[7]).CssUtils.mergeRnStyles,resolvePlaceholders:_r(d[7]).CssUtils.resolvePlaceholders};_e.CssHelper=l;var i=o;_e.default=i},709,[5,6,21,108,17,710,711,713]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useCss=function(n){return(0,r(d[0]).useReactiveContext)(t,n)},e.default=void 0;var t=(0,r(d[0]).createReactiveContext)({rnStyles:{}});var n=t;e.default=n},710,[706]); -__d(function(g,r,_i2,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.CssManager=void 0;var t,n=r(d[0])(r(d[1])),i=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),l=r(d[4]);e.CssManager=t,(function(t){function s(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n={},i={};return Object.keys(t).forEach(function(o){o.match(/mw[0-9]{2,}/)?n[o]=t[o]:i[o]=t[o]}),{mw:n,rest:i}}function u(t,n){var i=t.window,l={};if(i&&i.width){for(var s=[],u=Object.keys(n),c=0;c0&&void 0!==arguments[0]?arguments[0]:{},n=t.rnStyles;if(!n)return{};var i=[],o=n.base,l=n.baseLight,s=n.baseDark;null!==o&&void 0!==o&&o.colors&&i.push(v(t,o.colors));var u=f(t);return 1===(null===u||void 0===u?void 0:u.dark)?null!==s&&void 0!==s&&s.colors&&i.push(v(t,s.colors)):null!==l&&void 0!==l&&l.colors&&i.push(v(t,l.colors)),null!==u&&void 0!==u&&u.colors&&i.push(v(t,u.colors)),c(i)}function y(t,n){var i=t.rnStyles;if(!i||!n)return{};var o=[],l=i.base,s=i.baseLight,u=i.baseDark;null!==l&&void 0!==l&&l.styles&&o.push(v(t,l.styles[n]));var y,p,b=f(t);return 1===(null===b||void 0===b?void 0:b.dark)?null!==u&&void 0!==u&&u.styles&&o.push(v(t,u.styles[n])):null!==s&&void 0!==s&&s.styles&&o.push(v(t,s.styles[n])),null!==b&&void 0!==b&&b.styles&&o.push(v(t,b.styles[n])),y=c(o),p=h(t),r(d[6]).CssUtils.resolvePlaceholders(y,p)}function p(t){var i=t.classes,o=t.toggle,l=t.active,s=t.cssKey,u=[];if(i&&i.length){if(u.push.apply(u,(0,n.default)(i)),o)for(var v=0;v2&&void 0!==arguments[2]?arguments[2]:{},l=p((0,o.default)({classes:n},i));return Array.isArray(l)?l.map(function(n){return y(t,n)}):[]}function w(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.ignoreKeys;return c(b(t,n,i),o)}function S(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=j(n);return null!==(t=n.rnStyles)&&void 0!==t&&t.themes&&i?n.rnStyles.themes[i]:void 0}function j(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.rnStyles,i=void 0===n?{}:n,o=t.isDark,l=t.activeTheme,s=i.themes;if("object"==typeof s){var u=Object.keys(s).filter(function(t){return"object"==typeof s[t]});u.length>0&&(l||(l=u.find(function(t){var n;return 1===(null===(n=s[t])||void 0===n?void 0:n.default)})),"automatic"===l&&(l=u.filter(function(t){var n;return"automatic"!==t&&1===(null===(n=s[t])||void 0===n?void 0:n.automatic)}).find(function(t){var n;return 1===(null===(n=s[t])||void 0===n?void 0:n.dark)===o})),l||(l=u[0]))}return l}t.arrayToObject=c,t.getActiveBaseColors=h,t.flatten=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return l.StyleSheet.flatten([].concat((0,n.default)(i),[w(t,o,s)]))},t.getStyle=w,t.getStyleObj=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=i.ignoreKeys;return c(b(t,n,i),o)},t.getThemes=function(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return null!==n&&void 0!==n&&null!==(t=n.rnStyles)&&void 0!==t&&t.themes?Object.keys(n.rnStyles.themes).map(function(t){return(0,o.default)({},n.rnStyles.themes[t],{key:t})}):[]},t.isActiveThemeDark=function(){var t;return 1===(null===(t=S(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}))||void 0===t?void 0:t.dark)},t.isActiveThemeAutomatic=function(){return"automatic"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).activeTheme},t.getInUseTheme=S,t.getInUseThemeId=j,t.getActiveThemeId=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.rnStyles,i=void 0===n?{}:n,o=t.activeTheme;if(o)return o;var l=i.themes;return"object"==typeof l?Object.keys(l).find(function(t){var n;return"object"==typeof l[t]&&1===(null===(n=l[t])||void 0===n?void 0:n.default)}):void 0}})(t||(e.CssManager=t={}))},711,[5,21,108,6,28,712,713,714]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.os=function(){return n.Platform.OS},e.isAndroid=function(){return"android"===n.Platform.OS},e.isIOS=function(){return"ios"===n.Platform.OS||"macos"===n.Platform.OS},e.isWeb=function(){return"web"===n.Platform.OS},e.isWindows=function(){return"windows"===n.Platform.OS},e.dpToPx=function(o){return n.PixelRatio.roundToNearestPixel(o)*n.PixelRatio.get()},e.fontScale=function(){return n.PixelRatio.getFontScale()};var n=r(d[0])},712,[28]); -__d(function(g,r,i,a,m,_e,d){var CssUtils;Object.defineProperty(_e,"__esModule",{value:!0}),_e.CssUtils=void 0,_e.CssUtils=CssUtils,(function(_CssUtils){function filterAutomaticThemes(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r(d[0]).Utils.isEmpty(t)){var s=Object.keys(t).filter(function(e){return 1===t[e].automatic});if(!r(d[0]).Utils.isEmpty(s)){var n=s.filter(function(e){return 0===t[e].dark}),l=s.filter(function(e){return 1===t[e].dark});r(d[0]).Utils.isEmpty(n)||Object.keys(e).filter(function(t){return 1===e[t].automatic&&0===e[t].dark}).forEach(function(t){return delete e[t]}),r(d[0]).Utils.isEmpty(l)||Object.keys(e).filter(function(t){return 1===e[t].automatic&&1===e[t].dark}).forEach(function(t){return delete e[t]})}var u=Object.keys(t).filter(function(e){return 1===t[e].default});r(d[0]).Utils.isEmpty(u)||Object.keys(e).filter(function(t){return 1===e[t].default}).forEach(function(t){return delete e[t]})}}function mergeRnStyles(e){for(var t=arguments.length,s=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:{},params=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},paramKeys=Object.keys(params);return 0===paramKeys.length?style:Object.keys(style).reduce(function(prev,key){var rule=style[key];if("string"!=typeof rule||!rule.match("{.+}"))return prev[key]=rule,prev;var containsParam=paramKeys.some(function(e){return rule.includes("{"+e+"}")});if(!containsParam)return prev[key]=rule,prev;var singleValue=!!rule.match(/^\{[^{]+\}$/);if(paramKeys.forEach(function(e){rule=rule.replace(new RegExp("{"+e+"}","gm"),params[e])}),singleValue)return prev[key]=rule,prev;try{prev[key]=eval(rule)}catch(e){}return prev},{})}_CssUtils.mergeRnStyles=mergeRnStyles,_CssUtils.resolvePlaceholders=resolvePlaceholders})(CssUtils||(_e.CssUtils=CssUtils={}))},713,[714]); -__d(function(g,r,i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.Utils=void 0;var t,n=r(d[0])(r(d[1]));e.Utils=t,(function(t){function o(t){return void 0===t||null===t}t.mergeObjects=function t(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=(0,n.default)({},o);return Object.keys(c).forEach(function(n){void 0!==c[n]&&(Array.isArray(c[n])&&Array.isArray(o[n])?f[n]=c[n]:"object"==typeof c[n]&&"object"==typeof o[n]?f[n]=t(o[n],c[n]):f[n]=c[n])}),f},t.isEmpty=function(t){if(!o(t)){if("string"==typeof t)return 0===t.length;if(Array.isArray(t))return 0===t.length;if("object"==typeof t)return 0===Object.keys(t).length}return!0},t.arrayToObject=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o={};return t.forEach(function(t){Object.keys(t).forEach(function(c){n.includes(c)||(o[c]=t[c])})}),o}})(t||(e.Utils=t={}))},714,[5,6]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getDefaultStyles=function(){return{base:{colors:{foreground:r(d[0]).colors.black,background:r(d[0]).colors.white,alternateBackground:r(d[0]).colors.grey200},styles:{"newsmemory-article-container-splitscreen":{borderColor:r(d[0]).colors.articleContainerBorderColor,landscape:{borderLeftWidth:1},portrait:{borderTopWidth:1}},"newsmemory-thumbnail-download-icon-disabled":{color:r(d[0]).colors.md_grey_400},"drawer-item-icon-publications":{tintColor:r(d[0]).colors.black,width:32.5,height:25},"newsmemory-article-header-icon-toggleArticleExtra":{tintColor:r(d[0]).colors.white}}},baseDark:{colors:{foreground:r(d[0]).colors.white_transparent_135,background:r(d[0]).colors.grey1010,alternateBackground:r(d[0]).colors.grey1200},styles:{spinner:{color:"{foreground}"},"hint-progress-spinner":{color:"{alternateBackground}"},"hint-progress-spinner-text":{color:"{alternateBackground}"},"newsmemory-article-container":{backgroundColor:"{alternateBackground}"},"newsmemory-article-container-splitscreen":{borderColor:"{foreground}"},"newsmemory-index-item-image":{borderColor:"{foreground}"},"newsmemory-article-footer-separator":{backgroundColor:"{foreground}"},"newsmemory-article-header-separator":{backgroundColor:"{foreground}"},"newsmemory-article-mode-sub-header":{backgroundColor:"{alternateBackground}"},"newsmemory-article-mode-sub-header-info":{color:"{foreground}"},"newsmemory-article-mode-sub-header-section":{color:"{foreground}"},"newsmemory-article-refresh-control":{backgroundColor:"{alternateBackground}",color:"{foreground}"},"newsmemory-article-text":{backgroundColor:"{background}"},"newsmemory-article-zoom-level-parent":{backgroundColor:"{background}"},"newsmemory-article-zoom-level-text":{color:"{foreground}"},"newsmemory-copyright-footer":{backgroundColor:"{background}"},"newsmemory-copyright-text":{color:"{foreground}"},"newsmemory-download-circle":{backgroundColor:"{alternateBackground}"},"newsmemory-download-circle-text":{textShadowOffset:{height:0,width:0},textShadowRadius:0,color:"{foreground}"},"newsmemory-footer":{backgroundColor:"{alternateBackground}",borderColor:"{foreground}"},"newsmemory-footer-element-active":{backgroundColor:"{foreground}"},"newsmemory-footer-element-inactive":{color:"{foreground}",tintColor:"{foreground}"},"newsmemory-footer-icon":{color:"{foreground}",tintColor:"{foreground}"},"newsmemory-footer-icon-active":{color:"{alternateBackground}",tintColor:"{alternateBackground}"},"newsmemory-footer-more-icon":{color:"{foreground}",tintColor:"{foreground}"},"newsmemory-footer-more-menu":{color:"{alternateBackground}"},"newsmemory-footer-more-menu-text":{color:"{foreground}"},"newsmemory-footer-text":{color:"{foreground}"},"newsmemory-footer-text-active":{color:"{alternateBackground}"},"newsmemory-index-container":{backgroundColor:"{background}"},"newsmemory-index-first-level-page":{color:"{foreground}"},"newsmemory-index-first-level-section":{color:"{foreground}"},"newsmemory-index-second-level-text":{color:"{foreground}"},"newsmemory-index-second-level-bullet":{color:"{foreground}"},"newsmemory-index-second-level-page":{color:"{foreground}"},"newsmemory-index-second-level-title":{color:"{foreground}"},"newsmemory-index-text":{color:"{foreground}"},"newsmemory-navigation-text":{color:"{foreground}"},"newsmemory-navigation-text-parent":{backgroundColor:"{alternateBackground}"},"newsmemory-pages-container":{backgroundColor:"{background}"},"newsmemory-screen":{backgroundColor:"{alternateBackground}",color:"{foreground}"},"newsmemory-search":{color:"{foreground}"},"newsmemory-search-container":{backgroundColor:"{alternateBackground}"},"newsmemory-search-header-container":{backgroundColor:"{alternateBackground}"},"newsmemory-search-input":{backgroundColor:"{background}",borderColor:"{alternateBackground}",color:"{foreground}"},"newsmemory-search-list":{backgroundColor:"{background}"},"newsmemory-separator":{backgroundColor:"{alternateBackground}"},"newsmemory-thumbnail-download-icon":{color:"{foreground}"},"newsmemory-thumbnails-container":{backgroundColor:"{alternateBackground}"},"newsmemory-thumbnails-page-text":{backgroundColor:"{alternateBackground}",color:"{foreground}"},"newsmemory-thumbnails-page-text-selected":{backgroundColor:r(d[0]).colors.grey400,color:"{alternateBackground}",borderWidth:1,borderColor:"{alternateBackground}"},"newsmemory-thumbnails-pages":{borderColor:"{foreground}"},"newsmemory-thumbnails-pages-selected":{borderColor:"{alternateBackground}"},"newsmemory-thumbnails-section-container":{backgroundColor:"{alternateBackground}"},"newsmemory-thumbnails-section-content":{backgroundColor:"{background}"},"newsmemory-thumbnails-section-text":{color:"{foreground}"},"system-newsmemory-navigation-bar":{backgroundColor:"{alternateBackground}"},"system-newsmemory-status-bar":{backgroundColor:"{background}"},optionspage:{backgroundColor:"{alternateBackground}"},"newsmemory-search-close-icon":{opacity:.6},"newsmemory-article-header-icon":{opacity:.6,src:"default"},"newsmemory-index-header-icon":{opacity:.6,src:"default"},"optionspage-specialsections-close-icon":{opacity:.6},"rss-tab-item":{backgroundColor:"{background}"},"rss-tab-item-text-inactive":{color:"{foreground}"},"rss-content-parent":{backgroundColor:"{alternateBackground}"},"rss-content":{backgroundColor:"{alternateBackground}"},"rss-footer-element":{backgroundColor:"{background}"},"tile-title":{color:"{foreground}"},"tile-grid-image-title":{color:r(d[0]).colors.grey300},"tile-grid-title-epaper":{color:r(d[0]).colors.grey300},"tile-card-title-epaper":{color:"{foreground}"},"tile-summary":{color:"{foreground}"},"tile-header-text-part":{color:"{foreground}"},"tile-grid-image-header-text":{color:r(d[0]).colors.grey300},"tile-halfbox-text":{color:"{foreground}"},"article-pager":{backgroundColor:"{alternateBackground}"},"article-container":{backgroundColor:"{alternateBackground}"},"article-header":{backgroundColor:"{alternateBackground}"},"article-top-content":{backgroundColor:"{alternateBackground}"},"article-header-image-date":{color:"{foreground}"},"article-title":{color:"{foreground}"},"article-body":{backgroundColor:"{alternateBackground}",color:"{foreground}"},"article-body-parent":{backgroundColor:"{background}"},"rss-drawer":{backgroundColor:"{background}"},"drawer-item-parent-inactive":{backgroundColor:"{background}"},"drawer-item-text-inactive":{color:"{foreground}"},"icon-gallery":{tintColor:r(d[0]).colors.grey300},"settings-screen":{backgroundColor:"{alternateBackground}"},"newsmemory-article-caption":{color:"{foreground}"},"navigation-icon":{color:"{foreground}"},"rss-button":{backgroundColor:"{background}"},"rss-button-icon":{color:"{foreground}"},"epaper-logo-image":{filters:[{filter:r(d[1]).FILTERS.GRAYSCALE},{filter:r(d[1]).FILTERS.INVERT}]},"navigation-header-logo":{filters:[{filter:r(d[1]).FILTERS.GRAYSCALE},{filter:r(d[1]).FILTERS.INVERT}]},"drawer-header-logo":{filters:[{filter:r(d[1]).FILTERS.GRAYSCALE},{filter:r(d[1]).FILTERS.INVERT}]},"drawer-item-icon":{filters:[{filter:r(d[1]).FILTERS.GRAYSCALE},{filter:r(d[1]).FILTERS.INVERT}],image:"inherit"}}},themes:{default:{automatic:1,dark:0,default:1,name:g.strings("theme_light"),styles:{}},darkTheme:{automatic:1,dark:1,default:0,name:g.strings("theme_dark"),styles:{}},automatic:{name:g.strings("theme_auto")}}}}},715,[462,596]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.getDebugStyles=function(){if(g.cssDebug)return{};return{}}},716,[]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=_r(d[0])(_r(d[3])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var u in e)if("default"!==u&&Object.prototype.hasOwnProperty.call(e,u)){var i=a?Object.getOwnPropertyDescriptor(e,u):null;i&&(i.get||i.set)?Object.defineProperty(n,u,i):n[u]=e[u]}return n.default=e,r&&r.set(e,n),n})(_r(d[4])),a=_r(d[5]);function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var u=a.StyleSheet.create({container:{position:"absolute",top:0,bottom:0,start:0,right:0,justifyContent:"center",alignItems:"center",backgroundColor:_r(d[6]).colors.transparent600}});function i(r){var o=r.visible,i=r.useNativeDriver,f=r.onBackButtonPress,l=r.onBackdropPress,c=r.containerStyle,s=(0,t.default)(r,["visible","useNativeDriver","onBackButtonPress","onBackdropPress","containerStyle"]);if(!o)return null;var p=a.Dimensions.get("window").width,v=(0,n.useRef)(new a.Animated.Value(0)).current,y=(0,n.useRef)(0),b=(0,n.useCallback)(function(){"function"==typeof l&&l()},[]),k=(0,n.useCallback)(function(){"function"==typeof f&&f()},[]);return(0,n.useEffect)(function(){var e;e=0===y.current?1:0,a.Animated.timing(v,{toValue:e,duration:300,useNativeDriver:i}).start(function(t){t.finished&&(y.current=e)});var t=a.BackHandler.addEventListener("hardwareBackPress",k);return function(){t&&t.remove()}},[o]),n.default.createElement(a.Animated.View,(0,e.default)({style:[u.container,{opacity:v,padding:.05*p},c],onTouchEnd:b},s))}i.propTypes={visible:r.default.bool,useNativeDriver:r.default.bool,onBackButtonPress:r.default.func,onBackdropPress:r.default.func,containerStyle:r.default.oneOfType([r.default.object,r.default.array,r.default.number])},i.defaultProps={visible:!1,useNativeDriver:!0};var f=i;_e.default=f},717,[5,6,108,201,17,28,462]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.ModalStyle=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),o=_r(d[0])(_r(d[3])),n=_r(d[0])(_r(d[4])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var o=c(t);if(o&&o.has(e))return o.get(e);var n={__proto__:null},r=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var l=r?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,o&&o.set(e,n),n})(_r(d[5])),a=_r(d[6]),l=_r(d[0])(_r(d[7])),u=_r(d[0])(_r(d[8])),i=_r(d[0])(_r(d[9])),f=_r(d[0])(_r(d[10]));function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,o=new WeakMap;return(c=function(e){return e?o:t})(e)}var s=a.StyleSheet.create({modal:{padding:10,justifyContent:"center",alignItems:"center"},container:{padding:10,borderRadius:20,width:"100%",maxWidth:600,backgroundColor:_r(d[11]).colors.white,overflow:"hidden"}}),p=(0,r.forwardRef)(function(n,c){var p=n.visible,b=n.onClose,y=n.onCancel,C=n.onConfirm,h=n.onStateChange,v=n.onHide,O=n.hasFooter,k=n.children,S=n.supportedOrientations,w=n.backgroundColor,P=n.foregroundColor,j=n.containerStyle,T=n.style,_=n.needsKeyboardOffsetCheck,D=n.cancelable,M=(0,o.default)(n,["visible","onClose","onCancel","onConfirm","onStateChange","onHide","hasFooter","children","supportedOrientations","backgroundColor","foregroundColor","containerStyle","style","needsKeyboardOffsetCheck","cancelable"]),E=u.default.getSafeAreaInsets(),F=E.top,I=E.bottom,B=u.default.getSafeArea().height,H=(0,r.useState)(!1),x=(0,t.default)(H,2),K=x[0],W=x[1],R=(0,r.useState)(F),A=(0,t.default)(R,2),N=A[0],V=A[1],L=function(){return W(!1)},U=function(e){"function"==typeof e&&e()||L()},q=function(){return"function"==typeof v&&v()},z=function(){return U(b)},G={},J={};return _r(d[11]).PlatformUtils.isIOS()&&(_&&(G.onLayout=function(e){var t=e.nativeEvent;t.layout.height=4||Math.abs(n.dy)>=4;return o&&t.props.onSwipeStart&&t.props.onSwipeStart(),t.currentSwipingDirection=t.getSwipingDirection(n),e=t.createAnimationEventForSwipe(),o}return!1},onStartShouldSetPanResponder:function(e){return!(e._dispatchInstances&&e._dispatchInstances.some(function(e){return/scrollview|flatlist/i.test(e.type)})&&t.props.propagateSwipe&&t.props.scrollTo&&t.props.scrollOffset>0)&&(t.props.onSwipeStart&&t.props.onSwipeStart(),t.currentSwipingDirection=null,!0)},onPanResponderMove:function(i,n){if(!t.currentSwipingDirection){if(0===n.dx&&0===n.dy)return;t.currentSwipingDirection=t.getSwipingDirection(n),e=t.createAnimationEventForSwipe()}if(t.isSwipeDirectionAllowed(n)){var o=1-t.calcDistancePercentage(n);t.backdropRef&&t.backdropRef.transitionTo({opacity:t.props.backdropOpacity*o}),e(i,n),t.props.onSwipeMove&&t.props.onSwipeMove(o)}else if(t.props.scrollTo)if(t.props.scrollHorizontal){var r=-n.dx;r>t.props.scrollOffsetMax&&(r-=(r-t.props.scrollOffsetMax)/2),t.props.scrollTo({x:r,animated:!1})}else{var a=-n.dy;a>t.props.scrollOffsetMax&&(a-=(a-t.props.scrollOffsetMax)/2),t.props.scrollTo({y:a,animated:!1})}},onPanResponderRelease:function(e,i){if(t.getAccDistancePerDirection(i)>t.props.swipeThreshold&&t.isSwipeDirectionAllowed(i)){if(t.props.onSwipeComplete)return t.inSwipeClosingState=!0,void t.props.onSwipeComplete({swipingDirection:t.getSwipingDirection(i)});if(t.props.onSwipe)return t.inSwipeClosingState=!0,void t.props.onSwipe()}t.props.onSwipeCancel&&t.props.onSwipeCancel(),t.backdropRef&&t.backdropRef.transitionTo({opacity:t.props.backdropOpacity}),p.Animated.spring(t.state.pan,{toValue:{x:0,y:0},bounciness:0,useNativeDriver:!1}).start(),t.props.scrollTo&&t.props.scrollOffset>t.props.scrollOffsetMax&&t.props.scrollTo({y:t.props.scrollOffsetMax,animated:!0})}})},t.getAccDistancePerDirection=function(e){switch(t.currentSwipingDirection){case'up':return-e.dy;case'down':return e.dy;case'right':return e.dx;case'left':return-e.dx;default:return 0}},t.getSwipingDirection=function(e){return Math.abs(e.dx)>Math.abs(e.dy)?e.dx>0?'right':'left':e.dy>0?'down':'up'},t.calcDistancePercentage=function(e){switch(t.currentSwipingDirection){case'down':return(e.moveY-e.y0)/((t.props.deviceHeight||t.state.deviceHeight)-e.y0);case'up':return(0,_r(d[13]).reversePercentage)(e.moveY/e.y0);case'left':return(0,_r(d[13]).reversePercentage)(e.moveX/e.x0);case'right':return(e.moveX-e.x0)/((t.props.deviceWidth||t.state.deviceWidth)-e.x0);default:return 0}},t.createAnimationEventForSwipe=function(){return'right'===t.currentSwipingDirection||'left'===t.currentSwipingDirection?p.Animated.event([null,{dx:t.state.pan.x}],{useNativeDriver:!1}):p.Animated.event([null,{dy:t.state.pan.y}],{useNativeDriver:!1})},t.isDirectionIncluded=function(e){return Array.isArray(t.props.swipeDirection)?t.props.swipeDirection.includes(e):t.props.swipeDirection===e},t.isSwipeDirectionAllowed=function(e){var i=e.dy,n=e.dx,o=i>0,r=i<0,a=n<0,s=n>0;return!('up'!==t.currentSwipingDirection||!t.isDirectionIncluded('up')||!r)||(!('down'!==t.currentSwipingDirection||!t.isDirectionIncluded('down')||!o)||(!('right'!==t.currentSwipingDirection||!t.isDirectionIncluded('right')||!s)||!('left'!==t.currentSwipingDirection||!t.isDirectionIncluded('left')||!a)))},t.handleDimensionsUpdate=function(){if(!t.props.deviceHeight&&!t.props.deviceWidth){var e=p.Dimensions.get('window').width,i=p.Dimensions.get('window').height;e===t.state.deviceWidth&&i===t.state.deviceHeight||t.setState({deviceWidth:e,deviceHeight:i})}},t.open=function(){if(!t.isTransitioning&&(t.isTransitioning=!0,t.backdropRef&&t.backdropRef.transitionTo({opacity:t.props.backdropOpacity},t.props.backdropTransitionInTiming),t.state.isSwipeable&&t.state.pan.setValue({x:0,y:0}),t.contentRef)){t.props.onModalWillShow&&t.props.onModalWillShow();var e=p.InteractionManager.createInteractionHandle();t.contentRef.animate(t.animationIn,t.props.animationInTiming).then(function(){t.isTransitioning=!1,p.InteractionManager.clearInteractionHandle(e),t.props.isVisible?t.props.onModalShow():t.close()})}},t.close=function(){if(!t.isTransitioning){t.isTransitioning=!0,t.backdropRef&&t.backdropRef.transitionTo({opacity:0},t.props.backdropTransitionOutTiming);var e=t.animationOut;if(t.inSwipeClosingState&&(t.inSwipeClosingState=!1,'up'===t.currentSwipingDirection?e='slideOutUp':'down'===t.currentSwipingDirection?e='slideOutDown':'right'===t.currentSwipingDirection?e='slideOutRight':'left'===t.currentSwipingDirection&&(e='slideOutLeft')),t.contentRef){t.props.onModalWillHide&&t.props.onModalWillHide();var i=p.InteractionManager.createInteractionHandle();t.contentRef.animate(e,t.props.animationOutTiming).then(function(){t.isTransitioning=!1,p.InteractionManager.clearInteractionHandle(i),t.props.isVisible?t.open():t.setState({showContent:!1},function(){t.setState({isVisible:!1},function(){t.props.onModalHide()})})})}}},t.makeBackdrop=function(){if(!t.props.hasBackdrop)return null;t.props.customBackdrop&&!s.isValidElement(t.props.customBackdrop)&&console.warn('Invalid customBackdrop element passed to Modal. You must provide a valid React element.');var e=t.props,i=e.customBackdrop,n=e.backdropColor,o=e.useNativeDriver,r=e.useNativeDriverForBackdrop,a=e.onBackdropPress,c=!!t.props.customBackdrop,f=[{width:t.getDeviceWidth(),height:t.getDeviceHeight(),backgroundColor:t.state.showContent&&!c?n:'transparent'}],h=s.createElement(l.View,{ref:function(e){return t.backdropRef=e},useNativeDriver:void 0!==r?r:o,style:[u.default.backdrop,f]},c&&i);return c?h:s.createElement(p.TouchableWithoutFeedback,{onPress:a},h)};var o=(0,_r(d[13]).buildAnimations)(w(e)),r=o.animationIn,a=o.animationOut;return t.animationIn=r,t.animationOut=a,t.state.isSwipeable&&(t.state=(0,i.default)({},t.state,{pan:new p.Animated.ValueXY}),t.buildPanResponder()),e.isVisible&&(t.state=(0,i.default)({},t.state,{isVisible:!0,showContent:!0})),t}return(0,t.default)(S,[{key:"componentDidMount",value:function(){this.props.onSwipe&&console.warn('`` is deprecated and will be removed starting from 13.0.0. Use `` instead.'),p.DeviceEventEmitter.addListener('didUpdateDimensions',this.handleDimensionsUpdate),this.state.isVisible&&this.open(),p.BackHandler.addEventListener('hardwareBackPress',this.onBackButtonPress)}},{key:"componentWillUnmount",value:function(){p.BackHandler.removeEventListener('hardwareBackPress',this.onBackButtonPress),p.DeviceEventEmitter.removeListener('didUpdateDimensions',this.handleDimensionsUpdate)}},{key:"componentDidUpdate",value:function(e){if(this.props.animationIn!==e.animationIn||this.props.animationOut!==e.animationOut){var i=(0,_r(d[13]).buildAnimations)(w(this.props)),n=i.animationIn,t=i.animationOut;this.animationIn=n,this.animationOut=t}this.props.backdropOpacity!==e.backdropOpacity&&this.backdropRef&&this.backdropRef.transitionTo({opacity:this.props.backdropOpacity},this.props.backdropTransitionInTiming),this.props.isVisible&&!e.isVisible?this.open():!this.props.isVisible&&e.isVisible&&this.close()}},{key:"render",value:function(){var n=this,t=this.props,o=(t.animationIn,t.animationInTiming,t.animationOut,t.animationOutTiming,t.avoidKeyboard),r=t.coverScreen,a=(t.hasBackdrop,t.backdropColor,t.backdropOpacity,t.backdropTransitionInTiming,t.backdropTransitionOutTiming,t.customBackdrop,t.children),c=(t.isVisible,t.onModalShow,t.onBackButtonPress),f=t.useNativeDriver,h=(t.propagateSwipe,t.style),v=(0,e.default)(t,["animationIn","animationInTiming","animationOut","animationOutTiming","avoidKeyboard","coverScreen","hasBackdrop","backdropColor","backdropOpacity","backdropTransitionInTiming","backdropTransitionOutTiming","customBackdrop","children","isVisible","onModalShow","onBackButtonPress","useNativeDriver","propagateSwipe","style"]),w=(v.testID,(0,e.default)(v,["testID"])),b=[{margin:.05*this.getDeviceWidth(),transform:[{translateY:0}]},u.default.content,h],S={},k={};this.state.isSwipeable&&(S=(0,i.default)({},this.panResponder.panHandlers),k=f?{transform:this.state.pan.getTranslateTransform()}:this.state.pan.getLayout());var D=this.props.hideModalContentWhileAnimating&&this.props.useNativeDriver&&!this.state.showContent?s.createElement(l.View,null):a,y=s.createElement(l.View,(0,i.default)({},S,{ref:function(e){return n.contentRef=e},style:[k,b],pointerEvents:"box-none",useNativeDriver:f},w),D);return!r&&this.state.isVisible?s.createElement(p.View,{pointerEvents:"box-none",style:[u.default.backdrop,u.default.containerBox]},this.makeBackdrop(),y):s.createElement(p.Modal,(0,i.default)({transparent:!0,animationType:'none',visible:this.state.isVisible,onRequestClose:c},v),this.makeBackdrop(),o?s.createElement(p.KeyboardAvoidingView,{behavior:'ios'===p.Platform.OS?'padding':void 0,pointerEvents:"box-none",style:b.concat([{margin:0}])},y):y)}}],[{key:"getDerivedStateFromProps",value:function(e,i){return!i.isVisible&&e.isVisible?{isVisible:!0,showContent:!0}:null}}]),S})(s.Component);_e.ReactNativeModal=b,b.propTypes={animationIn:c.oneOfType([c.string,c.object]),animationInTiming:c.number,animationOut:c.oneOfType([c.string,c.object]),animationOutTiming:c.number,avoidKeyboard:c.bool,coverScreen:c.bool,hasBackdrop:c.bool,backdropColor:c.string,backdropOpacity:c.number,backdropTransitionInTiming:c.number,backdropTransitionOutTiming:c.number,customBackdrop:c.node,children:c.node.isRequired,deviceHeight:c.number,deviceWidth:c.number,isVisible:c.bool.isRequired,hideModalContentWhileAnimating:c.bool,propagateSwipe:c.bool,onModalShow:c.func,onModalWillShow:c.func,onModalHide:c.func,onModalWillHide:c.func,onBackButtonPress:c.func,onBackdropPress:c.func,onSwipeStart:c.func,onSwipeMove:c.func,onSwipeComplete:c.func,onSwipeCancel:c.func,swipeThreshold:c.number,swipeDirection:c.oneOfType([c.arrayOf(c.oneOf(['up','down','left','right'])),c.oneOf(['up','down','left','right'])]),useNativeDriver:c.bool,useNativeDriverForBackdrop:c.bool,style:c.any,scrollTo:c.func,scrollOffset:c.number,scrollOffsetMax:c.number,scrollHorizontal:c.bool,supportedOrientations:c.arrayOf(c.oneOf(['portrait','portrait-upside-down','landscape','landscape-left','landscape-right']))},b.defaultProps={animationIn:'slideInUp',animationInTiming:300,animationOut:'slideOutDown',animationOutTiming:300,avoidKeyboard:!1,coverScreen:!0,hasBackdrop:!0,backdropColor:'black',backdropOpacity:.7,backdropTransitionInTiming:300,backdropTransitionOutTiming:300,customBackdrop:null,useNativeDriver:!1,deviceHeight:null,deviceWidth:null,hideModalContentWhileAnimating:!1,propagateSwipe:!1,isVisible:!1,onModalShow:function(){return null},onModalWillShow:function(){return null},onModalHide:function(){return null},onModalWillHide:function(){return null},onBackdropPress:function(){return null},onBackButtonPress:function(){return null},swipeThreshold:100,scrollTo:null,scrollOffset:0,scrollOffsetMax:0,scrollHorizontal:!1,supportedOrientations:['portrait','landscape']};var S=b;_e.default=S},720,[5,108,6,7,8,12,14,16,17,28,201,721,742,743]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),Object.defineProperty(_e,"registerAnimation",{enumerable:!0,get:function(){return _r(d[0]).registerAnimation}}),Object.defineProperty(_e,"initializeRegistryWithDefinitions",{enumerable:!0,get:function(){return _r(d[0]).initializeRegistryWithDefinitions}}),Object.defineProperty(_e,"createAnimation",{enumerable:!0,get:function(){return r.default}}),_e.Image=_e.Text=_e.View=_e.createAnimatableComponent=void 0;var e=_r(d[1]),t=_r(d[2])(_r(d[3])),n=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=i(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var u=a?Object.getOwnPropertyDescriptor(e,o):null;u&&(u.get||u.set)?Object.defineProperty(r,o,u):r[o]=e[o]}return r.default=e,n&&n.set(e,r),r})(_r(d[4])),r=_r(d[2])(_r(d[5]));function i(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(i=function(e){return e?n:t})(e)}(0,_r(d[0]).initializeRegistryWithDefinitions)(n);var a=t.default;_e.createAnimatableComponent=a;var o=(0,t.default)(e.View);_e.View=o;var u=(0,t.default)(e.Text);_e.Text=u;var f=(0,t.default)(e.Image);_e.Image=f},721,[722,28,5,725,730,723]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.registerAnimation=o,e.getAnimationByName=function(n){return t[n]},e.getAnimationNames=function(){return Object.keys(t)},e.initializeRegistryWithDefinitions=function(t){Object.keys(t).forEach(function(u){o(u,(0,n.default)(t[u]))})};var n=r(d[0])(r(d[1])),t={};function o(n,o){t[n]=o}},722,[5,723]); -__d(function(g,r,_i,_a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(o){var f=JSON.stringify(o);if(u[f])return u[f];var s=Object.keys(o).map(a).filter(i);if(s.sort(t),s.length<2)throw new Error('Animation definitions must have at least two values.');var l={};o.easing&&(l.easing=o.easing);o.style&&(l.style=o.style);for(var c=function(t){var i=s[t],a=o[i];if(a||(0===i?a=o.from:1===i&&(a=o.to)),!a)throw new Error('Missing animation keyframe, this should not happen');a=(0,n.default)(a),Object.keys(a).forEach(function(n){n in l||(l[n]={inputRange:[],outputRange:[]}),l[n].inputRange.push(i),l[n].outputRange.push(a[n])})},h=0;h1?null:t}var u={}},723,[5,724]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f){var o=(0,t.default)({},n.StyleSheet.flatten(f));o.transform&&(o.transform.forEach(function(t){var n=Object.keys(t)[0];o[n]=t[n]}),delete o.transform);return o};var t=r(d[0])(r(d[1])),n=r(d[2])},724,[5,6,28]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=function(y){var h,N=y.displayName||y.name||'Component',D=l.Animated.createAnimatedComponent(y);return(h=(function(s){(0,i.default)(j,s);var y,h,N=(y=j,h=T(),function(){var t,n=(0,r.default)(y);if(h){var e=(0,r.default)(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return(0,a.default)(this,t)});function j(n){var i;(0,t.default)(this,j),(i=N.call(this,n)).ref=null,i.handleRef=function(t){i.ref=t};var a=new l.Animated.Value(k(0,i.props.direction)),r={},u={};return n.animation&&(u=S(n.animation),r=E(u,a)),i.state={animationValue:a,animationStyle:r,compiledAnimation:u,transitionStyle:{},transitionValues:{},currentTransitionValues:{}},n.transition&&(i.state=(0,o.default)({},i.state,i.initializeTransitionState(n.transition))),i.delayTimer=null,(0,_r(d[16]).getAnimationNames)().forEach(function(t){t in(0,e.default)(i)||(i[t]=i.animate.bind((0,e.default)(i),t))}),i}return(0,n.default)(j,[{key:"initializeTransitionState",value:function(t){var n={},e={},i=(0,c.default)(t,this.props.style);return Object.keys(i).forEach(function(t){var a=i[t];if(-1!==b.indexOf(t)||'number'!=typeof a)n[t]=new l.Animated.Value(0),e[t]=a;else{var r=new l.Animated.Value(a);n[t]=r,e[t]=r}}),{currentTransitionValues:i,transitionStyle:e,transitionValues:n}}},{key:"getTransitionState",value:function(t){var n=this,e='string'==typeof t?[t]:t,i=this.state,a=i.transitionValues,r=i.currentTransitionValues,u=i.transitionStyle,s=e.filter(function(t){return!n.state.transitionValues[t]});if(s.length){var l=this.initializeTransitionState(s);a=(0,o.default)({},a,l.transitionValues),r=(0,o.default)({},r,l.currentTransitionValues),u=(0,o.default)({},u,l.transitionStyle)}return{transitionValues:a,currentTransitionValues:r,transitionStyle:u}}},{key:"setNativeProps",value:function(t){this.ref&&this.ref.setNativeProps(t)}},{key:"componentDidMount",value:function(){var t=this,n=this.props,e=n.animation,i=n.duration,a=n.delay,r=n.onAnimationBegin,o=n.iterationDelay;if(e){var u=function(){r(),t.startAnimation(i,0,o,function(n){return t.props.onAnimationEnd(n)}),t.delayTimer=null};a?this.delayTimer=setTimeout(u,a):u()}}},{key:"UNSAFE_componentWillReceiveProps",value:function(t){var n,e,i=this,a=t.animation,r=t.delay,o=t.duration,u=t.easing,s=t.iterationDelay,l=t.transition,f=t.onAnimationBegin;if(l){var p=(0,c.default)(l,t.style);this.transitionTo(p,o,u,r)}else n=a,e=this.props.animation,n!==e&&JSON.stringify(n)!==JSON.stringify(e)&&(a?this.delayTimer?this.setAnimation(a):(f(),this.animate(a,o,s).then(function(t){return i.props.onAnimationEnd(t)})):this.stopAnimation())}},{key:"componentWillUnmount",value:function(){this.delayTimer&&clearTimeout(this.delayTimer)}},{key:"setAnimation",value:function(t,n){var e=S(t);this.setState(function(t){return{animationStyle:E(e,t.animationValue),compiledAnimation:e}},n)}},{key:"animate",value:function(t,n,e){var i=this;return new Promise(function(a){i.setAnimation(t,function(){i.startAnimation(n,0,e,a)})})}},{key:"stopAnimation",value:function(){this.setState({scheduledAnimation:!1,animationStyle:{}}),this.state.animationValue.stopAnimation(),this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"startAnimation",value:function(t,n,e,i){var a=this,r=this.state,o=r.animationValue,u=r.compiledAnimation,s=this.props,f=s.direction,c=s.iterationCount,p=s.useNativeDriver,y=this.props.easing||u.easing||'ease',h=n||0,T=k(h,f),b=O(h,f);o.setValue(T),'string'==typeof y&&(y=v.default[y]);var A='reverse'===f||'alternate'===f&&!b||'alternate-reverse'===f&&!b;A&&(y=l.Easing.out(y));var V={toValue:b,easing:y,isInteraction:c<=1,duration:t||this.props.duration||1e3,useNativeDriver:p,delay:e||0};l.Animated.timing(o,V).start(function(n){h+=1,n.finished&&a.props.animation&&('infinite'===c||h=1?null:new Error('iterationCount must be a positive number or "infinite"')},iterationDelay:s.default.number,onAnimationBegin:s.default.func,onAnimationEnd:s.default.func,onTransitionBegin:s.default.func,onTransitionEnd:s.default.func,style:s.default.oneOfType([s.default.number,s.default.array,s.default.object]),transition:s.default.oneOfType([s.default.string,s.default.arrayOf(s.default.string)]),useNativeDriver:s.default.bool},h.defaultProps={animation:void 0,delay:0,direction:'normal',duration:void 0,easing:void 0,iterationCount:1,iterationDelay:0,onAnimationBegin:function(){},onAnimationEnd:function(){},onTransitionBegin:function(){},onTransitionEnd:function(){},style:void 0,transition:void 0,useNativeDriver:!1},h};var t=_r(d[0])(_r(d[1])),n=_r(d[0])(_r(d[2])),e=_r(d[0])(_r(d[3])),i=_r(d[0])(_r(d[4])),a=_r(d[0])(_r(d[5])),r=_r(d[0])(_r(d[6])),o=_r(d[0])(_r(d[7])),u=(function(t,n){if(!n&&t&&t.__esModule)return t;if(null===t||"object"!=typeof t&&"function"!=typeof t)return{default:t};var e=h(n);if(e&&e.has(t))return e.get(t);var i={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in t)if("default"!==r&&Object.prototype.hasOwnProperty.call(t,r)){var o=a?Object.getOwnPropertyDescriptor(t,r):null;o&&(o.get||o.set)?Object.defineProperty(i,r,o):i[r]=t[r]}return i.default=t,e&&e.set(t,i),i})(_r(d[8])),s=_r(d[0])(_r(d[9])),l=_r(d[10]),f=_r(d[0])(_r(d[11])),c=_r(d[0])(_r(d[12])),p=_r(d[0])(_r(d[13])),y=_r(d[0])(_r(d[14])),v=_r(d[0])(_r(d[15]));function h(t){if("function"!=typeof WeakMap)return null;var n=new WeakMap,e=new WeakMap;return(h=function(t){return t?e:n})(t)}function T(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(T=function(){return!!t})()}var b=['rotate','rotateX','rotateY','rotateZ','skewX','skewY','transformMatrix','backgroundColor','borderColor','borderTopColor','borderRightColor','borderBottomColor','borderLeftColor','shadowColor','color','textDecorationColor','tintColor'],A=['width','height'];function V(t,n){var e={};return Object.keys(n).forEach(function(i){-1===t.indexOf(i)&&(e[i]=n[i])}),e}function O(t,n){switch(n){case'reverse':return 0;case'alternate':return t%2?0:1;case'alternate-reverse':return t%2?1:0;case'normal':default:return 1}}function k(t,n){return O(t,n)?0:1}function S(t){if('string'==typeof t){var n=(0,_r(d[16]).getAnimationByName)(t);if(!n)throw new Error("No animation registred by the name of "+t);return n}return(0,y.default)(t)}function E(t,n){var e={};return Object.keys(t).forEach(function(i){'style'===i?(0,o.default)(e,t.style):'easing'!==i&&(e[i]=n.interpolate(t[i]))}),(0,f.default)(e)}function w(t,n,e,i,a){var r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=arguments.length>6?arguments[6]:void 0,u=arguments.length>7?arguments[7]:void 0,s=arguments.length>8?arguments[8]:void 0,f=i||a||o?l.Animated.timing(n,{toValue:e,delay:o,duration:i||1e3,easing:'function'==typeof a?a:v.default[a||'ease'],useNativeDriver:r}):l.Animated.spring(n,{toValue:e,useNativeDriver:r});setTimeout(function(){return u(t)},o),f.start(function(){return s(t)})}},725,[5,7,8,15,12,14,16,6,17,201,28,726,727,724,723,729,722]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(s){var o={};return Object.keys(s).forEach(function(f){-1!==n.indexOf(f)?(o.transform||(o.transform=[]),o.transform.push((0,t.default)({},f,s[f]))):o[f]=s[f]}),o};var t=r(d[0])(r(d[1])),n=['perspective','rotate','rotateX','rotateY','rotateZ','scale','scaleX','scaleY','skewX','skewY','translateX','translateY']},726,[5,27]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(f,u){var o={},c=(0,t.default)(u);return('string'==typeof f?[f]:f).forEach(function(t){o[t]=t in c?c[t]:(0,n.default)(t,c)}),o};var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]))},727,[5,724,728]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(i,o){if('backgroundColor'===i)return'rgba(0,0,0,0)';if('color'===i||-1!==i.indexOf('Color'))return'rgba(0,0,0,1)';if(0===i.indexOf('rotate')||0===i.indexOf('skew'))return'0deg';if('opacity'===i||0===i.indexOf('scale'))return 1;if('fontSize'===i)return 14;if(0===i.indexOf('margin')||0===i.indexOf('padding'))for(var f,l=0;l0&&"0"===i.substring(0,1);)i=i.substring(1);return""+n+i}},{key:"getNextPageNumber",value:function(e){try{for(var t="",n="",u="",i=0;ie.length&&n.length>0&&(n=n.substring(0,n.length-(u.length-e.length))),t+n+u}catch(t){return e}}},{key:"getPageByPageNumber",value:function(e,t){if(e.length>0)return e.find(function(e){return u.comparePageNumber(e.getPage(),t)})}},{key:"comparePageNumber",value:function(e,t){return u.removeZerosFromPageNumber(e)===u.removeZerosFromPageNumber(t)}},{key:"comparePages",value:function(e,t){return e.modifyTime===t.modifyTime&&e.section===t.section&&e.page===t.page&&e.shownPage===t.shownPage&&e.edition===t.edition&&e.extraMd5===t.extraMd5&&e.type===t.type}},{key:"getNextPage",value:function(e,t){var n=t.findIndex(function(t){return u.comparePages(t,e)})+1;return n>0&&n0&&void 0!==arguments[0]?arguments[0]:{};(0,t.default)(this,D),this.dbDowntime=n.db_downtime||0,this.dbFilename=u.default.getNewsmemoryBaseDirectory()+n.db_filename;var o=g.getActivePSetup().pSetup;this.dbPSetup=n.db_pSetup||o,this.dbPaper=n.db_paper,this.dbIssue=n.db_issue,this.dbEdition=n.db_edition,this.dbStatus=n.db_status,this.dbSecret=n.db_secret,this.dbNetwork=n.db_network,this.editionModel=null}return(0,n.default)(D,[{key:"getFilename",value:function(){return this.dbFilename}},{key:"getIssue",value:function(){return this.dbIssue}},{key:"getPSetup",value:function(){return this.dbPSetup}},{key:"getPaper",value:function(){return this.dbPaper}},{key:"getEdition",value:function(){return this.dbEdition}},{key:"setStatus",value:function(t){this.dbStatus=t}},{key:"getStatus",value:function(){return this.dbStatus}},{key:"getDownloadTime",value:function(){return this.dbDowntime}},{key:"getSecret",value:function(){return this.dbSecret}},{key:"setEditionModel",value:function(t){this.editionModel=t}},{key:"getEditionModel",value:function(){return this.editionModel}},{key:"getPages",value:function(){return this.editionModel?this.editionModel.getPages():[]}},{key:"updatePage",value:function(t){this.editionModel.updatePage(t)}},{key:"isEmpty",value:function(){return!this.editionModel||this.editionModel.isEmpty()}},{key:"hasOnlyDatabaseDownloaded",value:function(){return this.dbStatus===s.DB_DOWNLOADED}},{key:"hasMainComponentsDownloaded",value:function(){return(this.dbStatus&s.LOW_MID_PDF_DOWNLOADED)===s.LOW_MID_PDF_DOWNLOADED}},{key:"isHighResolutionDownloadStarted",value:function(){return this.dbStatus===s.HIGH_RES_DOWNLOAD_STARTED}},{key:"hasHighResolutionDownloaded",value:function(){return(this.dbStatus&s.HIGH_RES_DOWNLOADED)===s.HIGH_RES_DOWNLOADED}},{key:"setDbNetwork",value:function(t){this.dbNetwork=t}},{key:"getDbNetwork",value:function(){return this.dbNetwork}},{key:"isNewspaperCompleteForMode",value:function(){return o.default.isModeFull()?this.hasHighResolutionDownloaded():this.hasMainComponentsDownloaded()}},{key:"equals",value:function(t){return this.dbPSetup===t.dbPSetup&&this.dbPaper===t.dbPaper&&this.dbIssue===t.dbIssue&&this.dbEdition===t.dbEdition}}]),D})();e.default=D},747,[5,7,8,642,646,576,605]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),c=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),o=(function(){function u(){(0,n.default)(this,u)}return(0,s.default)(u,null,[{key:"getNewspaperDirectory",value:function(){return c.default.getNewspaperBaseDirectory()}},{key:"getDatabaseFilePath",value:function(){return c.default.getNewsmemoryBaseDirectory()+"database.db"}},{key:"getNewspaperIssueDirectory",value:function(t,n){return u.getNewspaperDirectory()+t+"/"+n+"/"}},{key:"deleteNewspaperIssueDirectory",value:function(n,s){var l;return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return l=u.getNewspaperIssueDirectory(n,s),o.prev=1,o.next=4,t.default.awrap(c.default.unlink(l));case 4:o.next=8;break;case 6:o.prev=6,o.t0=o.catch(1);case 8:case"end":return o.stop()}},null,null,[[1,6]],Promise)}},{key:"makeNewspaperDirectory",value:function(){var n;return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=u.getNewspaperDirectory(),s.next=3,t.default.awrap(c.default.exists(n));case 3:if(s.sent){s.next=6;break}return s.next=6,t.default.awrap(c.default.mkdir(n));case 6:case"end":return s.stop()}},null,null,null,Promise)}},{key:"deleteNewspaperDirectory",value:function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.default.awrap(c.default.unlink(u.getNewspaperDirectory()));case 3:n.next=7;break;case 5:n.prev=5,n.t0=n.catch(0);case 7:case"end":return n.stop()}},null,null,[[0,5]],Promise)}},{key:"databaseExists",value:function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.database){t.next=2;break}return t.abrupt("return",u.database.exists());case 2:return t.abrupt("return",!1);case 3:case"end":return t.stop()}},null,null,null,Promise)}},{key:"closeDatabase",value:function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.database){t.next=2;break}return t.abrupt("return",u.database.close());case 2:return t.abrupt("return",!1);case 3:case"end":return t.stop()}},null,null,null,Promise)}},{key:"deleteDatabase",value:function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!u.database){t.next=2;break}return t.abrupt("return",u.database.delete());case 2:return t.abrupt("return",!1);case 3:case"end":return t.stop()}},null,null,null,Promise)}},{key:"openTransaction",value:function(n,s){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.database.transaction(n,s));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"checkIfColumnExists",value:function(n,s){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",u.database.columnExists(n,s));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"createDatabasesTable",value:function(){var n,s,c,l,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return p.prev=0,n="CREATE TABLE IF NOT EXISTS databases (db_filename VARCHAR(255), db_paper VARCHAR(50), db_issue VARCHAR(20), db_edition VARCHAR(50), db_downtime DATETIME, db_status INTEGER DEFAULT 0, db_network VARCHAR(1), UNIQUE (db_paper,db_issue,db_edition) ON CONFLICT REPLACE );",p.next=4,t.default.awrap(u.openTransaction(n));case 4:return p.next=6,t.default.awrap(u.checkIfColumnExists("databases","db_status"));case 6:if(p.sent){p.next=11;break}return n="ALTER TABLE databases ADD COLUMN db_status INTEGER DEFAULT 0;",p.next=11,t.default.awrap(u.openTransaction(n));case 11:return p.next=13,t.default.awrap(u.checkIfColumnExists("databases","db_network"));case 13:if(p.sent){p.next=19;break}return s=g.getNewsmemoryConfig(),c=s.network,n="ALTER TABLE databases ADD COLUMN db_network VARCHAR(1) DEFAULT '"+c+"'",p.next=19,t.default.awrap(u.openTransaction(n));case 19:return p.next=21,t.default.awrap(u.checkIfColumnExists("databases","db_pSetup"));case 21:if(p.sent){p.next=27;break}return l=g.getActivePSetup(),o=l.pSetup,n="ALTER TABLE databases ADD COLUMN db_pSetup VARCHAR(255) DEFAULT '"+o+"'",p.next=27,t.default.awrap(u.openTransaction(n));case 27:return p.next=29,t.default.awrap(u.checkIfColumnExists("databases","db_secret"));case 29:if(p.sent){p.next=34;break}return n="ALTER TABLE databases ADD COLUMN db_secret VARCHAR(255) DEFAULT ''",p.next=34,t.default.awrap(u.openTransaction(n));case 34:p.next=39;break;case 36:throw p.prev=36,p.t0=p.catch(0),p.t0;case 39:case"end":return p.stop()}},null,null,[[0,36]],Promise)}},{key:"resetDatabase",value:function(){return t.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.default.awrap(u.closeDatabase());case 2:return n.next=4,t.default.awrap(u.deleteDatabase());case 4:return n.next=6,t.default.awrap(u.createDatabasesTable());case 6:case"end":return n.stop()}},null,null,null,Promise)}},{key:"updateStatus",value:function(n,s,c,l){var o,p,f=arguments;return t.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return o=f.length>4&&void 0!==f[4]?f[4]:g.getActivePSetup().pSetup,p="UPDATE databases SET db_status = ? WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?",b.prev=2,b.next=5,t.default.awrap(u.openTransaction(p,[l,n,s,c,o]));case 5:return b.abrupt("return",!0);case 8:throw b.prev=8,b.t0=b.catch(2),b.t0;case 11:case"end":return b.stop()}},null,null,[[2,8]],Promise)}},{key:"updateNetwork",value:function(n,s,c,l){var o,p,f=arguments;return t.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return o=f.length>4&&void 0!==f[4]?f[4]:g.getActivePSetup().pSetup,p="UPDATE databases SET db_network = ? WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?",b.prev=2,b.next=5,t.default.awrap(u.openTransaction(p,[l,n,s,c,o]));case 5:return b.abrupt("return",!0);case 8:throw b.prev=8,b.t0=b.catch(2),b.t0;case 11:case"end":return b.stop()}},null,null,[[2,8]],Promise)}},{key:"getIssueStatus",value:function(n,s,c){var l,o,p,f=arguments;return t.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return l=f.length>3&&void 0!==f[3]?f[3]:g.getActivePSetup().pSetup,o="SELECT db_status FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;",b.prev=2,b.next=5,t.default.awrap(u.openTransaction(o,[n,s,c,l]));case 5:if(!(p=b.sent)||!p[0]){b.next=8;break}return b.abrupt("return",p[0]);case 8:throw new Error("missing issue on database");case 11:throw b.prev=11,b.t0=b.catch(2),b.t0;case 14:case"end":return b.stop()}},null,null,[[2,11]],Promise)}},{key:"insertIssue",value:function(n,s,l,o){var p,f,b,v,w,E,h=arguments;return t.default.async(function(x){for(;;)switch(x.prev=x.next){case 0:return p=h.length>4&&void 0!==h[4]?h[4]:"",f=h.length>5&&void 0!==h[5]?h[5]:g.getActivePSetup().pSetup,b=h.length>6&&void 0!==h[6]?h[6]:g.getNewsmemoryConfig().network,v="INSERT INTO databases (db_filename, db_paper, db_issue, db_edition, db_downtime, db_pSetup, db_secret, db_network) VALUES (?, ?, ?, ?, ?, ?, ?, ?);",w=parseInt((new Date).getTime()/1e3,10),x.prev=5,E=n.replace(c.default.getNewsmemoryBaseDirectory(),""),x.next=9,t.default.awrap(u.openTransaction(v,[E,s,l,o,w,f,p,b]));case 9:return x.abrupt("return",!0);case 12:throw x.prev=12,x.t0=x.catch(5),x.t0;case 15:case"end":return x.stop()}},null,null,[[5,12]],Promise)}},{key:"getAllIssues",value:function(){var n,s,c;return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return n="SELECT * FROM databases ORDER BY db_issue DESC;",o.prev=1,o.next=4,t.default.awrap(u.openTransaction(n));case 4:return s=o.sent,c=s.map(function(t){return new l.default(t)}),o.abrupt("return",c);case 9:throw o.prev=9,o.t0=o.catch(1),o.t0;case 12:case"end":return o.stop()}},null,null,[[1,9]],Promise)}},{key:"getIssuesByDates",value:function(){var n,s,c,o,p=arguments;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return n=p.length>0&&void 0!==p[0]?p[0]:[],s="SELECT * FROM databases WHERE db_issue IN ( "+Array(n.length).fill("?").join(",")+");",f.prev=2,f.next=5,t.default.awrap(u.openTransaction(s,n));case 5:return c=f.sent,o=c.map(function(t){return new l.default(t)}),f.abrupt("return",o);case 10:throw f.prev=10,f.t0=f.catch(2),f.t0;case 13:case"end":return f.stop()}},null,null,[[2,10]],Promise)}},{key:"getAllIssuesExcept",value:function(){var n,s,c,o,p=arguments;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return n=p.length>0&&void 0!==p[0]?p[0]:[],s="SELECT * FROM databases WHERE db_issue NOT IN ( "+Array(n.length).fill("?").join(",")+") ORDER BY db_downtime DESC;",f.prev=2,f.next=5,t.default.awrap(u.openTransaction(s,n));case 5:return c=f.sent,o=c.map(function(t){return new l.default(t)}),f.abrupt("return",o);case 10:throw f.prev=10,f.t0=f.catch(2),f.t0;case 13:case"end":return f.stop()}},null,null,[[2,10]],Promise)}},{key:"getIssue",value:function(n,s,c){var o,p,f,b=arguments;return t.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return o=b.length>3&&void 0!==b[3]?b[3]:g.getActivePSetup().pSetup,p="SELECT * FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;",v.prev=2,v.next=5,t.default.awrap(u.openTransaction(p,[n,s,c,o]));case 5:if(!(f=v.sent)||!f.length){v.next=8;break}return v.abrupt("return",new l.default(f[0]));case 8:throw new Error("Issue not found");case 11:throw v.prev=11,v.t0=v.catch(2),v.t0;case 14:case"end":return v.stop()}},null,null,[[2,11]],Promise)}},{key:"deleteIssue",value:function(n,s,c){var l,o,p=arguments;return t.default.async(function(f){for(;;)switch(f.prev=f.next){case 0:return l=p.length>3&&void 0!==p[3]?p[3]:g.getActivePSetup().pSetup,o="DELETE FROM databases WHERE db_paper = ? AND db_issue = ? AND db_edition = ? AND db_pSetup = ?;",f.prev=2,f.next=5,t.default.awrap(u.openTransaction(o,[n,s,c,l]));case 5:return f.abrupt("return",!0);case 8:throw f.prev=8,f.t0=f.catch(2),f.t0;case 11:case"end":return f.stop()}},null,null,[[2,8]],Promise)}},{key:"deleteIssueByFilename",value:function(n){var s;return t.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:return s="DELETE FROM databases WHERE db_filename = ?;",c.prev=1,c.next=4,t.default.awrap(u.openTransaction(s,[n]));case 4:return c.abrupt("return",!0);case 7:throw c.prev=7,c.t0=c.catch(1),c.t0;case 10:case"end":return c.stop()}},null,null,[[1,7]],Promise)}},{key:"getIssuesByEdition",value:function(n){var s,c,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return s="SELECT * FROM databases WHERE db_edition = ?;",p.prev=1,p.next=4,t.default.awrap(u.openTransaction(s,[n]));case 4:return c=p.sent,o=c.map(function(t){return new l.default(t)}),p.abrupt("return",o);case 9:throw p.prev=9,p.t0=p.catch(1),p.t0;case 12:case"end":return p.stop()}},null,null,[[1,9]],Promise)}},{key:"getIssuesByPaper",value:function(n){var s,c,o;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return s="SELECT * FROM databases WHERE db_paper = ?;",p.prev=1,p.next=4,t.default.awrap(u.openTransaction(s,[n]));case 4:return c=p.sent,o=c.map(function(t){return new l.default(t)}),p.abrupt("return",o);case 9:throw p.prev=9,p.t0=p.catch(1),p.t0;case 12:case"end":return p.stop()}},null,null,[[1,9]],Promise)}}]),u})();e.default=o,o.database=new u.default(o.getDatabaseFilePath())},748,[5,80,7,8,749,576,747]); -__d(function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),i=(function(){function i(e,n){(0,t.default)(this,i),this.path=e,this.queue=new u.default(1,1/0),this.migrations=n||[]}return(0,n.default)(i,[{key:"getPath",value:function(){return this.path}},{key:"delete",value:function(){var t,n=this;return e.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return u.prev=0,u.next=3,e.default.awrap(this.exists());case 3:if(!u.sent){u.next=6;break}return u.next=6,e.default.awrap(new Promise(function(e,t){s.default.deleteDatabase(n.path,e,t)}));case 6:t=!0,u.next=12;break;case 9:u.prev=9,u.t0=u.catch(0),t=!1;case 12:return u.abrupt("return",t);case 13:case"end":return u.stop()}},null,this,[[0,9]],Promise)}},{key:"exists",value:function(){var t;return e.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,e.default.awrap(c.default.exists(this.path));case 3:t=n.sent,n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),t=!1;case 9:return n.abrupt("return",t);case 10:case"end":return n.stop()}},null,this,[[0,6]],Promise)}},{key:"open",value:function(){var t,n=this;return e.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=!1,u.prev=1,u.next=4,e.default.awrap(new Promise(function(e,t){s.default.openDatabase({name:n.path},e,t)}));case 4:this.db=u.sent,t=!!this.db,u.next=10;break;case 8:u.prev=8,u.t0=u.catch(1);case 10:return u.abrupt("return",t);case 11:case"end":return u.stop()}},null,this,[[1,8]],Promise)}},{key:"close",value:function(){var t,n=this;return e.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return t=!0,u.prev=1,u.next=4,e.default.awrap(new Promise(function(e,t){n.db.close(e,t)}));case 4:u.next=9;break;case 6:u.prev=6,u.t0=u.catch(1),t=!1;case 9:return u.abrupt("return",t);case 10:case"end":return u.stop()}},null,null,[[1,6]],Promise)}},{key:"migrateDB",value:function(){var t,n,u,s,c,i,o;return e.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return t=0,l.prev=1,l.next=4,e.default.awrap(this.executeSqlNoTx("CREATE TABLE IF NOT EXISTS db_info ( key VARCHAR(255) NOT NULL, value VARCHAR(255) NOT NULL, PRIMARY KEY (key, value));"));case 4:return l.next=6,e.default.awrap(this.executeSqlNoTx("SELECT value FROM db_info WHERE key LIKE 'version'"));case 6:(n=l.sent).length>0&&(t=n.item(0).value||0),l.next=13;break;case 10:l.prev=10,l.t0=l.catch(1),t=0;case 13:l.prev=13,u=0;case 15:if(!(u1&&void 0!==s[1]?s[1]:[],c.abrupt("return",this.queue.add(function(){return new Promise(function(s){var c,i;return e.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,e.default.awrap(u.open());case 2:if(!o.sent){o.next=18;break}return o.prev=3,o.next=6,e.default.awrap(u.openTransaction());case 6:return c=o.sent,o.next=9,e.default.awrap(u.executeSql(c,t,n));case 9:i=o.sent,s(i),o.next=16;break;case 13:o.prev=13,o.t0=o.catch(3),s([]);case 16:o.next=19;break;case 18:s([]);case 19:case"end":return o.stop()}},null,null,[[3,13]],Promise)})}));case 2:case"end":return c.stop()}},null,this,null,Promise)}},{key:"tableExists",value:function(t){var n,u;return e.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=!1,s.prev=1,u="SELECT name FROM sqlite_master WHERE type='table' AND name='"+t+"';",s.next=5,e.default.awrap(this.transaction(u,[]));case 5:s.sent.length>0&&(n=!0),s.next=11;break;case 9:s.prev=9,s.t0=s.catch(1);case 11:return s.abrupt("return",n);case 12:case"end":return s.stop()}},null,this,[[1,9]],Promise)}},{key:"columnExists",value:function(t,n){var u,s,c,i;return e.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return u=!1,o.prev=1,s="PRAGMA table_info("+t+");",o.next=5,e.default.awrap(this.transaction(s,[]));case 5:for(c=o.sent,i=0;i0&&!n.inProgress&&(n.inProgress=!0,n.queue.shift().start())}))},n.prototype.abortAllPendingTransactions=function(){var t,e,n,r;if((r=c[this.dbname])&&r.queue.length>0){for(t=0,e=(n=r.queue).length;t0&&!n.inProgress&&e.startNextTransaction()}})(this),n=(function(t){return function(){e&&e(s('Could not open database')),delete t.openDBs[t.dbname],t.abortAllPendingTransactions()}})(this),this.openDBs[this.dbname]="INIT",h.exec("open",this.openargs,r,n))},n.prototype.close=function(t,e){if(this.dbname in this.openDBs){if(c[this.dbname]&&c[this.dbname].inProgress)return void e(s('database cannot be closed while a transaction is in progress'));delete this.openDBs[this.dbname],c[this.dbname];h.exec("close",{path:this.dbname},function(e,n){if(t)return t(n)},function(t,n){if(e)return e(n)})}else{e&&l(function(){return e("cannot close: database is not open")})}},n.prototype.attach=function(t,e,n,r){if(this.dbname in this.openDBs){if(c[this.dbname]&&c[this.dbname].inProgress)return void r(s('database cannot be attached while a transaction is in progress'));h.exec("attach",{path:this.dbname,dbName:t,dbAlias:e},function(t,e){if(n)return n(e)},function(t){if(r)return r(t)})}else{r&&l(function(){return r("cannot attach: database is not open")})}},n.prototype.detach=function(t,e,n){if(this.dbname in this.openDBs){if(c[this.dbname]&&c[this.dbname].inProgress)return void n(s('database cannot be attached while a transaction is in progress'));this.executeSql('DETACH DATABASE '+t,[],function(t,n){if(e)return e(n)},function(t){if(n)return n(t)})}else{n&&l(function(){return n("cannot attach: database is not open")})}},n.prototype.executeSql=function(t,e,n,o){var i,s,c;c=function(t,e){if(n)return n(e)},i=function(t,e){if(o)return o(e)},s=function(n){n.addStatement(t,e,c,i)},this.addTransaction(new r(this,s,null,null,!1,!1))},(r=function(t,e,n,r,o,i){if("function"!=typeof e){var c=s("transaction expected a function");if(n)return n(c);throw c}this.db=t,this.fn=e,this.error=n,this.success=r,this.txlock=o,this.readOnly=i,this.executes=[],o?this.addStatement("BEGIN",[],null,function(t,e){throw s("unable to begin transaction: "+e.message,e.code)}):this.addStatement("SELECT 1",[],null,null)}).prototype.start=function(){var t;try{this.fn(this),this.run()}catch(e){t=e,c[this.db.dbname].inProgress=!1,this.db.startNextTransaction(),this.error&&this.error(s(t))}},r.prototype.executeSql=function(e,n,r,o){if(this.finalized)throw{message:"InvalidStateError: DOM Exception 11: This transaction is already finalized. Transactions are committed after its success or failure handlers are called. If you are using a Promise to handle callbacks, be aware that implementations following the A+ standard adhere to run-to-completion semantics and so Promise resolution occurs on a subsequent tick and therefore after the transaction commits.",code:11};if(this.readOnly&&t.test(e))this.handleStatementFailure(o,{message:'invalid sql for a read-only transaction'});else{this.addStatement(e,n,function(t,e){if(r)return r(t,e)},function(t,e){if(o)return o(e)})}},r.prototype.addStatement=function(t,e,n,r){var o,i,c,u,h,l;if(u='string'==typeof t?t:t.toString(),c=[],e&&e.constructor===Array)for(o=0,i=e.length;o found in addStatement()';return console.error(f),void r(s(f))}c.push(l.toString()),console.warn('addStatement - parameter of type <'+h+'> converted to string using toString()')}this.executes.push({success:n,error:r,sql:u,params:c})},r.prototype.handleStatementSuccess=function(t,e){var n;t&&t(this,{rows:{item:function(t){return n[t]},raw:function(){return n.slice()},length:(n=e.rows||[]).length},rowsAffected:e.rowsAffected||0,insertId:e.insertId||void 0})},r.prototype.handleStatementFailure=function(t,e){if(!t)throw s("a statement with no error handler failed: "+e.message,e.code);if(!1!==t(this,e))throw s("a statement error callback did not return false: "+e.message,e.code)},r.prototype.run=function(){var t,e,n,r,o,i,c,u,l;for(u=null,i=[],t=this.executes,l=t.length,this.executes=[],c=this,e=function(e,n){return function(r){if(!u){try{n?c.handleStatementSuccess(t[e].success,r):c.handleStatementFailure(t[e].error,s(r))}catch(t){var o=JSON.stringify(t);"{}"===o&&(o=t.toString())}n||(u=s(r))}0==--l&&(u?(c.executes=[],c.abort(u)):c.executes.length>0?c.run():c.finish())}},n=0,r=[];n=5&&(o=t[4],t.length>5&&(e=t[5]))):(!!(s=r).readOnly||s.location&&s.location.constructor===String&&i.hasOwnProperty(s.location)?s.dblocation=i[s.location]:s.dblocation=i.default,s.createFromLocation&&(1===s.createFromLocation?s.assetFilename="1":'string'==typeof s.createFromLocation&&(s.assetFilename=s.createFromLocation)),s.androidDatabaseImplementation&&2===s.androidDatabaseImplementation&&(s.androidOldDatabaseImplementation=1),s.androidLockWorkaround&&1===s.androidLockWorkaround&&(s.androidBugWorkaround=1),t.length>=2&&(o=t[1],t.length>2&&(e=t[2]))),new n(s,o,e))}),e.prototype.echoTest=function(t,e){h.exec("echoStringValue",{value:"test-string"},function(n){return"test-string"===n?t():e("Mismatch: got: "+n+" , expected: test-string")},function(t){return e(t)})},e.prototype.deleteDatabase=function(t,e,r){var o={};if(t.constructor===String)o.path=t,o.dblocation=i.default;else{if(!t||!t.name)throw new Error("Please specify db name via name property");o.path=t.name,t.location&&t.location.constructor===String&&i.hasOwnProperty(t.location)?o.dblocation=i[t.location]:o.dblocation=i.default}h.exec("delete",o,function(t){if(delete n.prototype.openDBs[o.path],e)return e(t)},function(t){if(r)return r(t)})},h.sqlitePlugin={SQLiteFactory:e,SQLitePluginTransaction:r,SQLitePlugin:n},m.exports=h.sqlitePlugin},751,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),c=r(d[0])(r(d[4])),l=(function(){function l(){(0,n.default)(this,l)}return(0,u.default)(l,null,[{key:"getMainBundleLocation",value:function(){return c.default.getMainBundleDirectory()+"/application"}},{key:"getDirectory",value:function(){return c.default.getNewsmemoryBaseDirectory()+"application"}},{key:"getDefaultIconsDirectory",value:function(){return"file://"+l.getDirectory()+"/code/icons/"}},{key:"getDefaultArticleTextBanner",value:function(){return"file://"+l.getDirectory()+"/code/images/article-banner.png"}},{key:"getHybridDirectory",value:function(){return l.getDirectory()+"/hybrid"}},{key:"getFontsDirectory",value:function(){return l.getDirectory()+"/fonts"}},{key:"getEditionArticleTextBanner",value:function(t){if(t&&t.length)return"file://"+l.getHybridDirectory()+"/header/logo_"+t+".gif";throw new Error("missing edition")}},{key:"getLogoPath",value:function(n){var u;return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(s.prev=0,!n){s.next=10;break}return n=(n=(n=n.replace(/ /g,"")).replace(/\xfc/g,"u")).replace(/\\-/,""),u=l.getEditionArticleTextBanner(n.toLowerCase()),s.next=8,t.default.awrap(c.default.exists(u));case 8:if(!s.sent){s.next=10;break}return s.abrupt("return",u);case 10:s.next=14;break;case 12:s.prev=12,s.t0=s.catch(0);case 14:return s.abrupt("return",l.getDefaultArticleTextBanner());case 15:case"end":return s.stop()}},null,null,[[0,12]],Promise)}},{key:"getHybridVersionFilePath",value:function(){return l.getHybridDirectory()+"/version.txt"}},{key:"getHybridVersion",value:function(){var n,u;return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return n=l.getHybridVersionFilePath(),s.next=3,t.default.awrap(c.default.exists(n));case 3:if(!s.sent){s.next=8;break}return s.next=6,t.default.awrap(c.default.readFile(n));case 6:return u=s.sent,s.abrupt("return",u);case 8:return s.abrupt("return","-1");case 9:case"end":return s.stop()}},null,null,null,Promise)}},{key:"updateHybridVersion",value:function(n){var u,s;return t.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return u=l.getHybridDirectory(),s=l.getHybridVersionFilePath(),o.next=4,t.default.awrap(c.default.exists(u));case 4:if(o.sent){o.next=7;break}return o.next=7,t.default.awrap(c.default.mkdir(u));case 7:return o.next=9,t.default.awrap(c.default.write(s,n));case 9:case"end":return o.stop()}},null,null,null,Promise)}},{key:"makeFontsDirectory",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=c.default.getFontsDirectory(),u.next=3,t.default.awrap(c.default.exists(n));case 3:if(u.sent){u.next=6;break}return u.next=6,t.default.awrap(c.default.mkdir(n));case 6:case"end":return u.stop()}},null,null,null,Promise)}},{key:"copyApplicationFolder",value:function(){var n,u,s,o,f;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return n=l.getDirectory(),p.prev=1,p.next=4,t.default.awrap(c.default.exists(n));case 4:if(!p.sent){p.next=6;break}return p.abrupt("return",!0);case 6:if(!r(d[5]).PlatformUtils.isIOS()){p.next=12;break}return u=l.getMainBundleLocation(),p.next=10,t.default.awrap(c.default.copyFile(u,n));case 10:p.next=15;break;case 12:return s=c.default.getNewsmemoryBaseDirectory(),p.next=15,t.default.awrap(c.default.assetsCopy("application",s));case 15:return o=l.getFontsDirectory(),p.next=18,t.default.awrap(c.default.exists(o));case 18:if(!p.sent){p.next=34;break}return f=c.default.getFontsDirectory(),p.prev=20,p.next=23,t.default.awrap(c.default.unlink(f));case 23:p.next=27;break;case 25:p.prev=25,p.t0=p.catch(20);case 27:return p.prev=27,p.next=30,t.default.awrap(c.default.moveFile(o,f));case 30:p.next=34;break;case 32:p.prev=32,p.t1=p.catch(27);case 34:return p.abrupt("return",!0);case 37:p.prev=37,p.t2=p.catch(1);case 39:return p.abrupt("return",!1);case 40:case"end":return p.stop()}},null,null,[[1,37],[20,25],[27,32]],Promise)}},{key:"deleteApplicationFolder",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n=l.getDirectory(),u.prev=1,u.next=4,t.default.awrap(c.default.unlink(n));case 4:return u.abrupt("return",!0);case 7:u.prev=7,u.t0=u.catch(1);case 9:return u.abrupt("return",!1);case 10:case"end":return u.stop()}},null,null,[[1,7]],Promise)}}]),l})();e.default=l},752,[5,80,7,8,576,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Action=e.Route=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),l=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),h=r(d[0])(r(d[9]));function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}var p=(function(){function t(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(new Date).getTime();(0,l.default)(this,t),this.time=u,this.name=n}return(0,f.default)(t,[{key:"getName",value:function(){return this.name}},{key:"getTime",value:function(){return this.time}},{key:"toString",value:function(){return"{\"time\": "+this.time+", \"name\": \""+this.name+"\" }"}},{key:"equals",value:function(t){return this.name===t.getName()}}]),t})();e.Route=p;var y=(function(t){(0,o.default)(p,t);var n,u,h=(n=p,u=v(),function(){var t,o=(0,c.default)(n);if(u){var l=(0,c.default)(this).constructor;t=Reflect.construct(o,arguments,l)}else t=o.apply(this,arguments);return(0,s.default)(this,t)});function p(t,n){var u,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(new Date).getTime();return(0,l.default)(this,p),(u=h.call(this,t,o)).params=n,u}return(0,f.default)(p,[{key:"getParams",value:function(){return this.params||{}}},{key:"toString",value:function(){return"{\"time\": "+this.time+", \"name\": \""+this.name+"\", \"params\": "+JSON.stringify(this.params)+" }"}},{key:"equals",value:function(t){return this.name===t.getName()&&r(d[10]).JSUtils.equals(this.params,t.getParams())}}]),p})(p);e.Action=y;var k=(function(){function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:(new Date).getTime(),s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.default.getCurrentOrientation();(0,l.default)(this,o),this.startTime=u,this.startOrientation=s.toLowerCase(),this.actions=t,this.navigation=n}return(0,f.default)(o,[{key:"filterRoute",value:function(t,n){var u=n[n.length-1];return!(!u||!u.equals(t))||n.filter(function(n){return t.getTime()-n.getTime()<1e3&&n.equals(t)}).length>0}},{key:"addAction",value:function(t,n){var u=new y(t,n);this.filterRoute(u,this.actions)||this.actions.push(u)}},{key:"addRoute",value:function(t){var n=new p(t);this.filterRoute(n,this.navigation)||this.navigation.push(n)}},{key:"getActions",value:function(){return this.actions||[]}},{key:"getNavigation",value:function(){return this.navigation||[]}},{key:"getDuration",value:function(){var t=this.actions[this.actions.length-1];return t?t.getTime()-this.startTime:0}},{key:"getActionsCounters",value:function(){return this.actions.reduce(function(t,n){var u=n.getName();return t[u]=t[u]?t[u]+1:1,t},{})}},{key:"getRoutesCounters",value:function(){var t=this;return this.navigation.reduce(function(n,u,o){var s=t.navigation[o-1],c=t.navigation[o+1],l=(new Date).getTime();c&&(l=c.getTime());var f=u.getName(),h=1,v=l-u.getTime();if(n[f]){var p=n[f],y=p.times,k=p.duration;(!s||s&&f!==s.getName())&&(h=y+1),v+=k}return n[f]={times:h,duration:v},n},{})}},{key:"getOrientationInfo",value:function(){var t=[new y("rotate_"+this.startOrientation,{},this.startTime)];if(t.push.apply(t,(0,u.default)(this.actions.filter(function(t){return t.getName().startsWith("rotate_")}))),t&&t.length>0){var n=t.reduce(function(n,u,o){var s=t[o+1],c=(new Date).getTime();s&&(c=s.getTime());var l=u.getName().replace("rotate_",""),f=c-u.getTime();return n[l]&&(f+=n[l]),n[l]=f,n},{}),o=Object.keys(n).reduce(function(t,u){return t+n[u]},0);return Object.keys(n).reduce(function(t,u){return t[u]=o?n[u]/o*100:0,t},{})}return{}}},{key:"getFullReport",value:function(){var t=r(d[10]).PlatformUtils.info,u=t.appName,o=t.bundleId,s=(t.uniqueId,t.version),c=(0,n.default)(t,["appName","bundleId","uniqueId","version"]),l=h.default.getAppVersion(),f={pSetup:g.getAppPSetup(),machine:g.getAppServer(),appName:u,bundleId:o,version:l};return l!==s&&(f.storeVersion=s),{startTime:this.startTime,startOrientation:this.startOrientation,duration:this.getDuration(),actions:this.actions,routes:this.navigation,orientation:this.getOrientationInfo(),deviceInfo:c,appInfo:f}}},{key:"getReport",value:function(){return(0,t.default)({},this.getFullReport(),{actions:this.getActionsCounters(),routes:this.getRoutesCounters()})}},{key:"toString",value:function(){return"{\"startTime\": "+this.startTime+", \"startOrientation\": \""+this.startOrientation+"\",\n \"actions\": "+JSON.stringify(this.actions.map(function(t){return t.toString()}))+", \"navigation\": "+JSON.stringify(this.navigation.map(function(t){return t.toString()}))+"}"}}]),o})();e.default=k},753,[5,6,108,21,12,14,16,7,8,458,462]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.PaperSetupConfig=_e.FIREBASE_DEFAULT_CUSTOM_DIMENSIONS=_e.DEFAULT_CUSTOM_DIMENSIONS=_e.ARTICLE_TITLE_BOX_MODE=_e.MAX_SHARE_CHECK_TYPES=_e.ENCRYPT_FILENAME_TYPE=_e.LATEST_AVAILABLE_EDITION_FORMAT=_e.PAGES_NAVIGATION_BUTTONS_LAYOUT=_e.SHOW_TYPES_ARTICLE=_e.NEWSMEMORY_START_MODE=_e.MERGE_ARTICLES_TYPES=_e.URL_TYPES=_e.NEWSMEMORY_SCREENS_NAME=_e.NEWSMEMORY_SCREENS=_e.BOTH_ENABLED=_e.NEWSMEMORY_ENABLED=_e.RSS_ENABLED=_e.DEFAULT=void 0;var t=r(d[0])(r(d[1])),e=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),n=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),o=r(d[0])(r(d[8])),h=r(d[0])(r(d[9])),p=r(d[0])(r(d[10]));function _(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(_=function(){return!!t})()}_e.DEFAULT="0";_e.RSS_ENABLED="1";_e.NEWSMEMORY_ENABLED="2";_e.BOTH_ENABLED="3";var f={REACT:0,NATIVE:1,HTML5:2};_e.NEWSMEMORY_SCREENS=f;_e.NEWSMEMORY_SCREENS_NAME={REACT:"NewsmemoryScreen",NATIVE:"NewsmemoryNativeScreen",HTML5:"NewsmemoryHTML5Screen"};var x={UNDERLINE:"underline",SQUARED:"squared",ROUNDED:"rounded"};_e.URL_TYPES=x;var b={NORMAL:0,MERGED:1,ONLY_FIRST:2,PAGE_REFS:3};_e.MERGE_ARTICLES_TYPES=b;var w={READ:"read",SWIPE:"swipe",BROWSE:"browse"};_e.NEWSMEMORY_START_MODE=w;var k={ONLY_TEXT:"0",TEXT_AND_GRAPH:"1",ALL:"2"};_e.SHOW_TYPES_ARTICLE=k;var V={HIDDEN:"0",FIXED:"1",ANIMATED:"2"};_e.PAGES_NAVIGATION_BUTTONS_LAYOUT=V;var y={PLAIN_MESSAGE:"0",ONLY_EDITION:"1",ISSUE_AND_EDITION:"2"};_e.LATEST_AVAILABLE_EDITION_FORMAT=y;var E={NONE:0,MAIN:1,XPAPER:2};_e.ENCRYPT_FILENAME_TYPE=E;_e.MAX_SHARE_CHECK_TYPES={LOCAL:1,REMOTE:2};var S={NEVER:"0",EDITORIAL_ONLY:"1",ALL:"2"};_e.ARTICLE_TITLE_BOX_MODE=S;var A="dimension1=$deviceType&dimension2=$issue&dimension3=$edition&dimension4=$page&dimension5=$articleId&dimension6=$action&dimension7=$ePaperAccess&dimension8=$title";_e.DEFAULT_CUSTOM_DIMENSIONS=A;var T="device=$deviceType&issue=$issue&edition=$edition&page=$page&article_id=$articleId&action=$action&epaper_access=$ePaperAccess&app_mode=$appSide&title=$title&site_id=$siteId&remote_site_id=$remoteSiteId";_e.FIREBASE_DEFAULT_CUSTOM_DIMENSIONS=T;var I=["pSetup","paper","layoutStyle","layoutSubStyle","newsmemoryToUse","rssIsEnabled","newsMemoryIsEnabled","migrate","googleAnalyticsAnonymizeIP","clientGoogleAnalyticsAccount","feedbackGoogleAnalyticsAccount","tecnaviaGoogleAnalyticsAccount","TAGoogleAnalyticsEvent","comScoreId","comScorePublisherSecret","comScoreAppName","rempAccountURL","adobeAnalyticsEnabled","adobeAnalyticsConfig","matherAnalyticsEnabled","matomoEnabled","matomoConfig","matomoTrackerEnabled","matomoTrackerConfig","facebookAnalyticsEnabled","attConfig","iubendaEnabled","iubendaConfig","bundleUpdateAvailable","resetAppBundle","isGenericApp","rnStyles","fixButtonsBarToBottom","externalXPapers","pushTags","useAsymmetricCardList","preventScreenshots","showNativeOptionsPageFallbackUrl","lockPanIfNotZoomedByDegrees","showOpenArticleExtraOnTitleBox"],v=["checksum"],N=["json","pSetupFileTime","checksum","lastIssue","lastEdition","demoIssue","external"],P=o.default.SP.keys,L=(function(o){(0,l.default)(R,o);var L,C,M=(L=R,C=_(),function(){var t,e=(0,c.default)(L);if(C){var s=(0,c.default)(this).constructor;t=Reflect.construct(e,arguments,s)}else t=e.apply(this,arguments);return(0,u.default)(this,t)});function R(){var t;(0,e.default)(this,R);for(var s=arguments.length,n=new Array(s),l=0;l0&&void 0!==Z[0]?Z[0]:{},j.next=3,t.default.awrap((0,n.default)((0,c.default)(R.prototype),"init",this).call(this,s));case 3:return j.next=5,t.default.awrap(this.getValue(P.layout_style));case 5:if(this.layoutStyle=j.sent,this.layoutStyle){j.next=8;break}return j.abrupt("return",!1);case 8:if(this.pSetup!==g.getAppPSetup()){j.next=20;break}return j.next=11,t.default.awrap(g.getUserSettings().getForceLayoutSubStyle());case 11:if(l=j.sent,j.t0=l,j.t0){j.next=17;break}return j.next=16,t.default.awrap(this.getValue(P.layout_sub_style));case 16:j.t0=j.sent;case 17:this.layoutSubStyle=j.t0,j.next=23;break;case 20:return j.next=22,t.default.awrap(this.getValue(P.layout_sub_style));case 22:this.layoutSubStyle=j.sent;case 23:return j.next=25,t.default.awrap(this.getValue(P.user_ip));case 25:if(j.t1=j.sent,j.t1){j.next=28;break}j.t1="n/a";case 28:return u=j.t1,r(d[11]).NetworkUtils.setIP(u),j.next=32,t.default.awrap(this.getValue(P.is_allowed_ip));case 32:return j.t2=j.sent,this.isAllowedIP="1"===j.t2,j.next=36,t.default.awrap(this.getValue(P.machine));case 36:return this.machine=j.sent,this.premiumIconURL=this.machine.concat("/eeLayout/").concat(this.layoutStyle).concat("/").concat(this.layoutSubStyle).concat("/images/webapp/tecnavia_premium_article.png"),j.next=40,t.default.awrap(this.getValue(P.paper));case 40:return this.paper=j.sent,j.next=43,t.default.awrap(this.getValue(P.xpaper));case 43:return this.xpaper=j.sent,j.next=46,t.default.awrap(this.getValue(P.app_mode_selection_page_enabled));case 46:return j.t3=j.sent,this.appModeSelectionPageEnabled="1"===j.t3,j.next=50,t.default.awrap(this.getValue(P.app_mode_selection_page_url));case 50:return this.appModeSelectionPageURL=j.sent,j.t5=Number,j.next=54,t.default.awrap(this.getValue(P.app_mode_selection_page_version));case 54:if(j.t6=j.sent,j.t4=j.t5.parseInt.call(j.t5,j.t6,10),j.t4){j.next=58;break}j.t4=0;case 58:return this.appModeSelectionPageVersion=j.t4,j.next=61,t.default.awrap(this.getValue(P.powered_by));case 61:return this.poweredBy=j.sent,j.next=64,t.default.awrap(this.getValue(P.powered_by_url));case 64:return this.poweredByURL=j.sent,j.next=67,t.default.awrap(this.getValue(P.copyright));case 67:return this.copyright=j.sent,j.next=70,t.default.awrap(this.getValue(P.copyright_url));case 70:return this.copyrightURL=j.sent,j.next=73,t.default.awrap(this.getValue(P.add_disclaimer));case 73:return this.addDisclaimer=j.sent,j.next=76,t.default.awrap(this.getValue(P.paper_name));case 76:return this.paperName=j.sent,j.next=79,t.default.awrap(this.getValue(P.language));case 79:return this.language=j.sent,j.next=82,t.default.awrap(this.getValue(P.site_domain));case 82:return this.siteDomain=j.sent,j.next=85,t.default.awrap(this.getValue(P.is_lite));case 85:return j.t7=j.sent,this.isLite="1"===j.t7,j.next=89,t.default.awrap(this.getValue(P.init_x_paper_not_in_view));case 89:if(j.t8=j.sent,j.t8){j.next=92;break}j.t8="";case 92:return this.initpageXpaperNotView=j.t8,j.next=95,t.default.awrap(this.getValue(P.external_xpapers));case 95:if(j.t9=j.sent,j.t9){j.next=98;break}j.t9="";case 98:return this.externalXPapers=j.t9,j.next=101,t.default.awrap(this.getValue(P.special_before_index));case 101:return this.specialBeforeIndex=j.sent,j.next=104,t.default.awrap(this.getValue(P.special_before_index_tablet));case 104:return this.specialBeforeIndexTablet=j.sent,j.next=107,t.default.awrap(this.getValue(P.special_before_index_phone));case 107:return this.specialBeforeIndexPhone=j.sent,j.next=110,t.default.awrap(this.getValue(P.udb));case 110:return this.udb=j.sent,this.loginStatus=new(r(d[12]).LoginStatus),j.next=114,t.default.awrap(this.loginStatus.init(this.udb));case 114:if(j.sent){j.next=115;break}case 115:return j.t10=this.loginStatus,j.next=118,t.default.awrap(this.getValue(P.preview_token));case 118:return j.t11=j.sent,j.t10.setOneTimeToken.call(j.t10,j.t11),j.next=122,t.default.awrap(this.getValue(P.refreshes_tauid));case 122:if(j.t12=j.sent,j.t12){j.next=125;break}j.t12="";case 125:return o=j.t12,this.refreshesTAUIDTimestamp=r(d[11]).DateUtils.getUnixTimestampFromDateTimeString(o),j.next=129,t.default.awrap(this.getValue(P.change_user_agent_for_oauth));case 129:if(j.t13=j.sent,_="1"===j.t13,I="",!_){j.next=149;break}if(!r(d[11]).PlatformUtils.isAndroid()){j.next=142;break}return j.next=136,t.default.awrap(this.getValue(P.custom_user_agent_for_oauth));case 136:if(j.t14=j.sent,j.t14){j.next=139;break}j.t14="";case 139:I=j.t14,j.next=149;break;case 142:return j.next=144,t.default.awrap(this.getValue(P.custom_string_to_append_to_user_agent_for_oauth));case 144:if(j.t15=j.sent,j.t15){j.next=147;break}j.t15="Safari/{APPLE_WEBKIT_VERSION}";case 147:(v=j.t15)&&(v=v.replace("{APPLE_WEBKIT_VERSION}",r(d[11]).PlatformUtils.getAppleWebKitVersion()),I=r(d[11]).PlatformUtils.getUserAgent()+" "+v);case 149:return this.overrideNewsMemoryUserAgent=I,j.t16=parseInt,j.next=153,t.default.awrap(this.getValue(P.newsmemory_to_use));case 153:if(j.t17=j.sent,j.t17){j.next=156;break}j.t17=f.NATIVE;case 156:return j.t18=j.t17,this.newsmemoryToUse=(0,j.t16)(j.t18,10),j.next=160,t.default.awrap(this.getValue(P.newsmemory_to_use_timestamp));case 160:if(j.t19=j.sent,j.t19){j.next=163;break}j.t19="";case 163:if(this.newsmemoryToUseTimestamp=j.t19,j.t20=r(d[11]).PlatformUtils.isAndroid(),!j.t20){j.next=170;break}return j.next=168,t.default.awrap(this.getValue(P.gallery_download_enabled));case 168:j.t21=j.sent,j.t20="1"===j.t21;case 170:return this.galleryDownloadEnabled=j.t20,j.next=173,t.default.awrap(this.getValue(P.gallery_thumbnail_disabled));case 173:return j.t22=j.sent,this.galleryThumbnailEnabled="1"!==j.t22,j.next=177,t.default.awrap(this.getValue(P.open_http_link_on_external_browser));case 177:if(j.t23=j.sent,j.t23){j.next=180;break}j.t23="1";case 180:return j.t24=j.t23,this.openHttpLinkOnExternalBrowser="0"!==j.t24,j.t25=parseInt,j.next=185,t.default.awrap(this.getValue(P.file_time));case 185:if(j.t26=j.sent,j.t26){j.next=188;break}j.t26=-1;case 188:return j.t27=j.t26,this.pSetupFileTime=(0,j.t25)(j.t27,10),j.t28=parseInt,j.next=193,t.default.awrap(this.getValue(P.rss_index_file_time));case 193:if(j.t29=j.sent,j.t29){j.next=196;break}j.t29=-1;case 196:return j.t30=j.t29,this.rssIndexFileTime=(0,j.t28)(j.t30,10),j.t31=parseInt,j.next=201,t.default.awrap(this.getValue(P.custom_language_pack_file_time));case 201:if(j.t32=j.sent,j.t32){j.next=204;break}j.t32=-1;case 204:return j.t33=j.t32,this.customLanguagePackFileTime=(0,j.t31)(j.t33,10),j.next=208,t.default.awrap(this.getValue(P.custom_fonts));case 208:if(j.t34=e=j.sent,null==j.t34){j.next=213;break}j.t35=e,j.next=214;break;case 213:j.t35="";case 214:return this.customFontsString=j.t35,j.t36=parseInt,j.next=218,t.default.awrap(this.getValue(P.custom_fonts_file_time));case 218:if(j.t37=j.sent,j.t37){j.next=221;break}j.t37=-1;case 221:return j.t38=j.t37,this.customFontsFileTime=(0,j.t36)(j.t38,10),j.next=225,t.default.awrap(this.getValue(P.load_editions_url));case 225:return this.loadEditionsUrl=j.sent,j.t39=parseInt,j.next=229,t.default.awrap(this.getValue(P.option_page_mode));case 229:return j.t40=j.sent,N=(0,j.t39)(j.t40,10),j.next=233,t.default.awrap(this.getValue(P.option_page_url));case 233:return L=j.sent,j.next=236,t.default.awrap(this.getValue(P.option_page_coordinates));case 236:if(j.t41=j.sent,j.t41){j.next=239;break}j.t41="";case 239:return C=j.t41,j.next=242,t.default.awrap(this.getValue(P.option_page_modal));case 242:return j.t42=j.sent,M="1"===j.t42,this.optionspageConfig=new(r(d[13]).OptionspageConfig)({mode:N,baseURL:L,coordinatesString:C,modal:M}),j.next=247,t.default.awrap(this.getValue(P.mode_enabled));case 247:return O=j.sent,j.next=250,t.default.awrap(this.checkIfRssIsEnabled());case 250:return this.rssIsEnabled=j.sent,this.newsMemoryIsEnabled="0"===O||"2"===O||"3"===O,j.next=254,t.default.awrap(this.getValue(P.startup_mode));case 254:return this.startupMode=j.sent,j.next=257,t.default.awrap(this.getValue(P.startup_mode_timestamp));case 257:if(j.t43=j.sent,j.t43){j.next=260;break}j.t43="";case 260:return this.startupModeTimestamp=j.t43,j.next=263,t.default.awrap(this.getValue(P.base_rss_update_url));case 263:return D=j.sent,D=r(d[11]).NetworkUtils.addDefaultProtocol(D),D=h.default.replaceUrlPlaceHolder(D),this.baseRssUpdateURL=D,j.next=269,t.default.awrap(this.getValue(P.feedback.enable));case 269:if(j.t44=j.sent,this.feedbackEnabled="1"===j.t44,!this.feedbackEnabled){j.next=275;break}return this.feedbackConfig=new(r(d[14]).FeedbackConfig)(this.pSetup,this.originalMachine),j.next=275,t.default.awrap(this.feedbackConfig.init(s));case 275:return j.next=277,t.default.awrap(this.getValue(P.disable_firebase_analytics));case 277:if(j.t45=j.sent,j.t45){j.next=280;break}j.t45="0";case 280:return j.t46=j.t45,this.disableFirebaseAnalytics="1"===j.t46,j.next=284,t.default.awrap(this.getValue(P.firebase_analytics_custom_dimensions));case 284:if(j.t47=j.sent,j.t47){j.next=287;break}j.t47=T;case 287:return this.firebaseAnalyticsCustomDimensions=j.t47,this.otherFirebaseProjects=[],j.next=291,t.default.awrap(this.getValue(P.other_firebase_projects));case 291:if(F=j.sent)try{this.otherFirebaseProjects=JSON.parse(F)}catch(t){}return j.next=295,t.default.awrap(this.getValue(P.firebase_analytics_send_external_id));case 295:if(j.t48=j.sent,j.t48){j.next=298;break}j.t48="0";case 298:return j.t49=j.t48,this.firebaseAnalyticsSendExternalId="1"===j.t49,j.next=302,t.default.awrap(this.getValue(P.disable_google_analytics_3));case 302:if(j.t50=j.sent,j.t50){j.next=305;break}j.t50="0";case 305:return j.t51=j.t50,this.disableGoogleAnalytics3="1"===j.t51,j.next=309,t.default.awrap(this.getValue(P.g_analytics_anonymize_ip));case 309:if(j.t52=j.sent,j.t52){j.next=312;break}j.t52="1";case 312:return j.t53=j.t52,this.googleAnalyticsAnonymizeIP="1"===j.t53,j.next=316,t.default.awrap(this.getValue(P.g_analytics));case 316:return this.clientGoogleAnalyticsAccount=j.sent,j.next=319,t.default.awrap(this.getValue(P.g_analytics_feedback));case 319:return this.feedbackGoogleAnalyticsAccount=j.sent,j.next=322,t.default.awrap(this.getValue(P.g_analytics_tecnavia));case 322:return this.tecnaviaGoogleAnalyticsAccount=j.sent,j.next=325,t.default.awrap(this.getValue(P.ta_google_analytics_event));case 325:return this.TAGoogleAnalyticsEvent=j.sent,j.next=328,t.default.awrap(this.getValue(P.google_analytics_custom_dimensions));case 328:if(j.t54=j.sent,j.t54){j.next=331;break}j.t54=A;case 331:return this.googleAnalyticsCustomDimensions=j.t54,j.next=334,t.default.awrap(this.getValue(P.remp_account));case 334:return this.rempAccountURL=j.sent,j.next=337,t.default.awrap(this.getValue(P.comscore.app_name));case 337:return this.comScoreAppName=j.sent,j.next=340,t.default.awrap(this.getValue(P.comscore.id));case 340:return this.comScoreId=j.sent,j.next=343,t.default.awrap(this.getValue(P.comscore.publisher_secret));case 343:return this.comScorePublisherSecret=j.sent,j.next=346,t.default.awrap(this.getValue(P.comscore.base_url));case 346:return this.comScoreBaseURL=j.sent,j.next=349,t.default.awrap(this.getValue(P.mather_analytics.enabled));case 349:if(j.t55=j.sent,j.t55){j.next=352;break}j.t55="0";case 352:return j.t56=j.t55,this.matherAnalyticsEnabled="1"===j.t56,j.next=356,t.default.awrap(this.getValue(P.mather_analytics.customer_id));case 356:if(j.t57=j.sent,j.t57){j.next=359;break}j.t57="";case 359:return this.matherAnalyticsCustomerId=j.t57,j.next=362,t.default.awrap(this.getValue(P.mather_analytics.site_id));case 362:if(j.t58=j.sent,j.t58){j.next=365;break}j.t58="";case 365:return this.matherAnalyticsSiteId=j.t58,j.next=368,t.default.awrap(this.getValue(P.mather_analytics.send_email));case 368:if(j.t59=j.sent,j.t59){j.next=371;break}j.t59="0";case 371:return j.t60=j.t59,this.matherAnalyticsSendEmail="1"===j.t60,j.next=375,t.default.awrap(this.getValue(P.adobe_analytics.enabled));case 375:if(j.t61=j.sent,j.t61){j.next=378;break}j.t61="0";case 378:if(j.t62=j.t61,this.adobeAnalyticsEnabled="1"===j.t62,!this.adobeAnalyticsEnabled){j.next=384;break}return this.adobeAnalyticsConfig=new(r(d[15]).AdobeAnalyticsConfig)(this.pSetup,this.originalMachine),j.next=384,t.default.awrap(this.adobeAnalyticsConfig.init(s));case 384:return j.next=386,t.default.awrap(this.getValue(P.matomo.enabled));case 386:if(j.t63=j.sent,j.t63){j.next=389;break}j.t63="0";case 389:if(j.t64=j.t63,this.matomoEnabled="1"===j.t64,!this.matomoEnabled){j.next=395;break}return this.matomoConfig=new(r(d[16]).MatomoConfig)(this.pSetup,this.originalMachine),j.next=395,t.default.awrap(this.matomoConfig.init(s,this.googleAnalyticsCustomDimensions));case 395:return j.next=397,t.default.awrap(this.getValue(P.matomo_tracker.enabled));case 397:if(j.t65=j.sent,j.t65){j.next=400;break}j.t65="0";case 400:if(j.t66=j.t65,this.matomoTrackerEnabled="1"===j.t66,!this.matomoTrackerEnabled){j.next=406;break}return this.matomoTrackerConfig=new(r(d[17]).MatomoTrackerConfig)(this.pSetup,this.originalMachine),j.next=406,t.default.awrap(this.matomoTrackerConfig.init(s));case 406:return j.next=408,t.default.awrap(this.getValue(P.facebook_enabled));case 408:if(j.t67=j.sent,j.t67){j.next=411;break}j.t67="";case 411:return U=j.t67,this.facebookAnalyticsEnabled=U&&"0"!==U,j.next=415,t.default.awrap(this.getValue(P.blueconic.enabled));case 415:if(j.t68=j.sent,j.t68){j.next=418;break}j.t68="0";case 418:if(j.t69=j.t68,this.blueConicEnabled="1"===j.t69,!this.blueConicEnabled){j.next=424;break}return this.blueConicConfig=new(r(d[18]).BlueConicConfig)(this.pSetup,this.originalMachine),j.next=424,t.default.awrap(this.blueConicConfig.init(s));case 424:return this.chartbeatConfig=new(r(d[19]).ChartbeatConfig)(this.pSetup,this.originalMachine),j.next=427,t.default.awrap(this.chartbeatConfig.init(s));case 427:return j.next=429,t.default.awrap(this.getValue(P.default_connectivity));case 429:return this.defaultConnectivity=j.sent,j.next=432,t.default.awrap(this.getValue(P.default_connectivity_timestamp));case 432:if(j.t70=j.sent,j.t70){j.next=435;break}j.t70="";case 435:return this.defaultConnectivityTimestamp=j.t70,j.next=438,t.default.awrap(this.getValue(P.url_type));case 438:if(j.t71=j.sent,j.t71){j.next=441;break}j.t71=x.UNDERLINE;case 441:return this.urlType=j.t71,j.next=444,t.default.awrap(this.getValue(P.showLinksHighlight));case 444:if(j.t72=j.sent,j.t72){j.next=447;break}j.t72="1";case 447:return j.t73=j.t72,this.showLinksHighlight="1"===j.t73,j.next=451,t.default.awrap(this.getValue(P.relabel_fit_page_button));case 451:return j.t74=j.sent,j.next=454,t.default.awrap(this.getValue(P.relabel_offline_button));case 454:return j.t75=j.sent,j.next=457,t.default.awrap(this.getValue(P.relabel_help_button));case 457:return j.t76=j.sent,j.next=460,t.default.awrap(this.getValue(P.relabel_setting_button));case 460:return j.t77=j.sent,j.next=463,t.default.awrap(this.getValue(P.relabel_option_button));case 463:return j.t78=j.sent,j.next=466,t.default.awrap(this.getValue(P.relabel_special_sections_button));case 466:return j.t79=j.sent,j.next=469,t.default.awrap(this.getValue(P.relabel_search_button));case 469:return j.t80=j.sent,j.next=472,t.default.awrap(this.getValue(P.relabel_ebook_button));case 472:return j.t81=j.sent,j.next=475,t.default.awrap(this.getValue(P.relabel_gbook_button));case 475:return j.t82=j.sent,j.next=478,t.default.awrap(this.getValue(P.relabel_phodir_button));case 478:return j.t83=j.sent,j.next=481,t.default.awrap(this.getValue(P.relabel_feed_button));case 481:return j.t84=j.sent,this.relabel={fitPageButton:j.t74,downloadButton:j.t75,helpButton:j.t76,settingsButton:j.t77,editionsButton:j.t78,specialSectionButton:j.t79,searchButton:j.t80,indexButton:j.t81,gBookButton:j.t82,thumbnailButton:j.t83,feedButton:j.t84},j.t86=parseInt,j.next=486,t.default.awrap(this.getValue(P.default_max_issues));case 486:if(j.t87=j.sent,j.t85=(0,j.t86)(j.t87,10),j.t85){j.next=490;break}j.t85=30;case 490:return this.defaultMaxIssues=j.t85,j.next=493,t.default.awrap(this.getValue(P.date_format));case 493:return this.dateFormat=j.sent,j.next=496,t.default.awrap(this.getValue(P.show_week));case 496:return j.t88=j.sent,this.showWeekAfterDate="1"===j.t88,j.next=500,t.default.awrap(this.getValue(P.download_multi_zips));case 500:return j.t89=j.sent,this.downloadMultiZips="1"===j.t89,j.next=504,t.default.awrap(this.getValue(P.show_types_article));case 504:if(j.t90=j.sent,j.t90){j.next=507;break}j.t90=k.TEXT_AND_GRAPH;case 507:return this.showTypesArticle=j.t90,j.next=510,t.default.awrap(this.getValue(P.enable_article_extra));case 510:if(j.t91=j.sent,j.t91){j.next=513;break}j.t91="0";case 513:return j.t92=j.t91,this.enableArticleExtra="1"===j.t92,j.t94=parseInt,j.next=518,t.default.awrap(this.getValue(P.max_zips_to_download_per_request));case 518:if(j.t95=j.sent,j.t93=(0,j.t94)(j.t95,10),j.t93){j.next=522;break}j.t93=10;case 522:return this.maxZipsToDownloadEachRequest=j.t93,this.cssFilesToAdd="csscustom",j.next=526,t.default.awrap(this.getValue(P.css_files_to_add));case 526:return(B=j.sent)&&(this.cssFilesToAdd+=","+B),j.next=530,t.default.awrap(this.getValue(P.email_content));case 530:return this.emailContent=j.sent,j.next=533,t.default.awrap(this.getValue(P.email_subject));case 533:return this.emailSubject=j.sent,j.next=536,t.default.awrap(this.getValue(P.twitter_text));case 536:return this.twitterText=j.sent,j.t97=parseInt,j.next=540,t.default.awrap(this.getValue(P.update_db_percentage));case 540:if(j.t98=j.sent,j.t96=(0,j.t97)(j.t98,10),j.t96){j.next=544;break}j.t96=50;case 544:return this.updateDBPercentage=j.t96,j.next=547,t.default.awrap(this.getValue(P.enable_advanced_gestures_mode));case 547:if(j.t99=j.sent,j.t99){j.next=550;break}j.t99="1";case 550:if(j.t100=j.t99,this.enableAdvancedGesturesMode="1"===j.t100,!this.enableAdvancedGesturesMode){j.next=573;break}return j.next=555,t.default.awrap(this.getValue(P.two_fingers_tap_to_article));case 555:if(j.t101=j.sent,j.t101){j.next=558;break}j.t101="0";case 558:if(j.t102=j.t101,this.twoFingersTapToArticle="1"===j.t102,!this.twoFingersTapToArticle){j.next=570;break}return j.next=563,t.default.awrap(this.getValue(P.single_tap_to_zoom));case 563:if(j.t103=j.sent,j.t103){j.next=566;break}j.t103="1";case 566:j.t104=j.t103,this.singleTapToZoom="1"===j.t104,j.next=571;break;case 570:this.singleTapToZoom=!1;case 571:j.next=575;break;case 573:this.twoFingersTapToArticle=!0,this.singleTapToZoom=!0;case 575:return j.next=577,t.default.awrap(this.getValue(P.lock_horizontal_pan_if_not_zoomed));case 577:if(j.t105=j.sent,j.t105){j.next=580;break}j.t105="0";case 580:return j.t106=j.t105,this.lockHorizontalPanIfNotZoomed="1"===j.t106,j.next=584,t.default.awrap(this._getLockPanIfNotZoomedByDegrees());case 584:return this.lockPanIfNotZoomedByDegrees=j.sent,j.next=587,t.default.awrap(this.getValue(P.machine_for_hr));case 587:if(j.t107=j.sent,j.t107){j.next=590;break}j.t107=this.machine;case 590:return this.machineForHR=j.t107,j.next=593,t.default.awrap(this.getValue(P.translation_available));case 593:return j.t108=j.sent,this.translationAvailable="1"===j.t108,j.next=597,t.default.awrap(this.getValue(P.translation_server));case 597:if(j.t109=j.sent,j.t109){j.next=600;break}j.t109="";case 600:return this.translationServer=j.t109,j.next=603,t.default.awrap(this.getValue(P.use_native_accessibility));case 603:if(j.t111=j.sent,j.t111){j.next=606;break}j.t111="0";case 606:if(j.t112=j.t111,j.t110="1"===j.t112,j.t110){j.next=610;break}j.t110=g.isDebug;case 610:return this.useNativeAccessibility=j.t110,j.next=613,t.default.awrap(this.getValue(P.use_car_mode));case 613:if(j.t114=j.sent,j.t114){j.next=616;break}j.t114="0";case 616:if(j.t115=j.t114,j.t113="1"===j.t115,j.t113){j.next=620;break}j.t113=g.isDebug;case 620:return this.useCarMode=j.t113,j.next=623,t.default.awrap(this.getValue(P.show_native_options_page_fallback_url));case 623:return this.showNativeOptionsPageFallbackUrl=j.sent,j.next=626,t.default.awrap(this.getValue(P.show_native_options_page));case 626:if(j.t116=j.sent,j.t116){j.next=629;break}j.t116="0";case 629:return j.t117=j.t116,this.showNativeOptionsPage="1"===j.t117,j.next=633,t.default.awrap(this.getValue(P.show_native_settings_screen));case 633:if(j.t119=j.sent,j.t119){j.next=636;break}j.t119="0";case 636:if(j.t120=j.t119,j.t118="1"===j.t120,j.t118){j.next=640;break}j.t118=g.isDebug;case 640:return this.showNativeSettingsScreen=j.t118,j.next=643,t.default.awrap(this.getValue(P.enable_translation_customization));case 643:if(j.t121=j.sent,j.t121){j.next=646;break}j.t121="1";case 646:return j.t122=j.t121,this.showTranslationCustomization="1"===j.t122,j.next=650,t.default.awrap(this.getValue(P.show_themes_customization));case 650:if(j.t123=j.sent,j.t123){j.next=653;break}j.t123="1";case 653:return j.t124=j.t123,this.showThemesCustomization="1"===j.t124,j.next=657,t.default.awrap(this.getValue(P.enable_zoom_level_customization));case 657:if(j.t125=j.sent,j.t125){j.next=660;break}j.t125="1";case 660:return j.t126=j.t125,this.enableZoomLevelCustomization="1"===j.t126,j.next=664,t.default.awrap(this.getValue(P.enable_article_types_customization));case 664:if(j.t127=j.sent,j.t127){j.next=667;break}j.t127="1";case 667:return j.t128=j.t127,this.enableArticleTypesCustomization="1"===j.t128,j.next=671,t.default.awrap(this.getValue(P.show_article_column_view_customization));case 671:if(j.t129=j.sent,j.t129){j.next=674;break}j.t129="1";case 674:return j.t130=j.t129,this.showArticleColumnViewCustomization="1"===j.t130,j.next=678,t.default.awrap(this.getValue(P.show_navigation_buttons_layout_customization));case 678:if(j.t131=j.sent,j.t131){j.next=681;break}j.t131="1";case 681:return j.t132=j.t131,this.showNavigationButtonsLayoutCustomization="1"===j.t132,j.next=685,t.default.awrap(this.getValue(P.show_xpaper_navigation_close_button));case 685:if(j.t133=j.sent,j.t133){j.next=688;break}j.t133="0";case 688:return j.t134=j.t133,this.showXPaperNavigationCloseButton="1"===j.t134,j.next=692,t.default.awrap(this.getValue(P.show_highlight_behavior_customization));case 692:if(j.t135=j.sent,j.t135){j.next=695;break}j.t135="1";case 695:return j.t136=j.t135,this.showHighlightBehaviorCustomization="1"===j.t136,j.next=699,t.default.awrap(this.getValue(P.show_open_article_extra_on_title_box));case 699:if(j.t137=j.sent,j.t137){j.next=702;break}j.t137=S.NEVER;case 702:return this.showOpenArticleExtraOnTitleBox=j.t137,j.next=705,t.default.awrap(this.getValue(P.change_favorite_edition));case 705:if(j.t138=j.sent,j.t138){j.next=708;break}j.t138="0";case 708:return j.t139=j.t138,this.changeFavoriteEdition="1"===j.t139,j.next=712,t.default.awrap(this.getValue(P.favorite_edition));case 712:if(j.t140=j.sent,j.t140){j.next=715;break}j.t140="";case 715:return this.favoriteEdition=j.t140,j.next=718,t.default.awrap(this.getValue(P.enable_connectivity_options));case 718:if(j.t141=j.sent,j.t141){j.next=721;break}j.t141="1";case 721:return j.t142=j.t141,this.enableConnectivityOptions="1"===j.t142,j.next=725,t.default.awrap(this.getValue(P.enable_font_size_customization));case 725:if(j.t143=j.sent,j.t143){j.next=728;break}j.t143="1";case 728:return j.t144=j.t143,this.enableFontSizeCustomization="1"===j.t144,j.next=732,t.default.awrap(this.getValue(P.enable_graph_size_customization));case 732:if(j.t145=j.sent,j.t145){j.next=735;break}j.t145="1";case 735:return j.t146=j.t145,this.enableGraphSizeCustomization="1"===j.t146,j.t147=parseInt,j.next=740,t.default.awrap(this.getValue(P.fit_graphic_article));case 740:if(j.t148=j.sent,j.t148){j.next=743;break}j.t148="1";case 743:return j.t149=j.t148,this.fitGraphicArticle=(0,j.t147)(j.t149,10),j.next=747,t.default.awrap(this.getValue(P.sub_path));case 747:return this.subPath=j.sent,j.next=750,t.default.awrap(this.getValue(P.extra_link_color));case 750:if(j.t150=j.sent,j.t150){j.next=753;break}j.t150="255,0,0,0.25";case 753:return this.extraLinkColor=j.t150,j.t151=parseInt,j.next=757,t.default.awrap(this.getValue(P.background_duration_article_selected));case 757:return j.t152=j.sent,z=(0,j.t151)(j.t152,10),this.backgroundDurationArticleSelected=r(d[11]).JSUtils.isNumber(z)?z:r(d[20]).HIDE_ANIMATION_DURATION,j.t153=parseInt,j.next=763,t.default.awrap(this.getValue(P.background_timer_article_selected));case 763:return j.t154=j.sent,H=(0,j.t153)(j.t154,10),this.backgroundTimerArticleSelected=r(d[11]).JSUtils.isNumber(H)?H:r(d[20]).HIDE_ANIMATION_TIMER,j.next=768,t.default.awrap(this.getValue(P.background_color_article.selected));case 768:if(j.t155=j.sent,j.t155){j.next=771;break}j.t155="255,0,0,0.25";case 771:return this.backgroundColorArticleSelected=j.t155,j.next=774,t.default.awrap(this.getValue(P.background_color_article.to_select));case 774:if(j.t156=j.sent,j.t156){j.next=777;break}j.t156=this.backgroundColorArticleSelected;case 777:return this.backgroundColorArticleToSelect=j.t156,j.next=780,t.default.awrap(this.getValue(P.preview_highlight_enabled));case 780:if(j.t157=j.sent,j.t157){j.next=783;break}j.t157="0";case 783:return j.t158=j.t157,this.previewHighlightEnabled="1"===j.t158,j.t159=parseInt,j.next=788,t.default.awrap(this.getValue(P.preview_highlight_duration_seconds));case 788:if(j.t160=j.sent,j.t160){j.next=791;break}j.t160="2";case 791:return j.t161=j.t160,this.previewHighlightDurationSeconds=(0,j.t159)(j.t161,10),j.t162=parseInt,j.next=796,t.default.awrap(this.getValue(P.zooming_factor));case 796:return j.t163=j.sent,this.zoomingFactor=(0,j.t162)(j.t163,10),this.zoomingFactor=this.zoomingFactor<=0?100:this.zoomingFactor,j.t164=parseInt,j.next=802,t.default.awrap(this.getValue(P.max_zoom));case 802:if(j.t165=j.sent,j.t165){j.next=805;break}j.t165="5";case 805:return j.t166=j.t165,this.maxZoom=(0,j.t164)(j.t166,10),j.t167=parseFloat,j.next=810,t.default.awrap(this.getValue(P.pdf_thumbnail_ratio));case 810:if(j.t168=j.sent,j.t168){j.next=813;break}j.t168="0.5";case 813:return j.t169=j.t168,this.pdfThumbnailRatio=(0,j.t167)(j.t169),j.t170=parseFloat,j.next=818,t.default.awrap(this.getValue(P.eink_complete_hr_factor));case 818:if(j.t171=j.sent,j.t171){j.next=821;break}j.t171="2.2";case 821:return j.t172=j.t171,this.einkCompleteHrFactor=(0,j.t170)(j.t172),j.t173=parseInt,j.next=826,t.default.awrap(this.getValue(P.hr_factor));case 826:if(j.t174=j.sent,j.t174){j.next=829;break}j.t174="1";case 829:return j.t175=j.t174,this.hrFactor=(0,j.t173)(j.t175,10),j.t176=parseFloat,j.next=834,t.default.awrap(this.getValue(P.pdf_factor));case 834:if(j.t177=j.sent,j.t177){j.next=837;break}j.t177="1.2";case 837:return j.t178=j.t177,this.pdfFactor=(0,j.t176)(j.t178),j.t179=parseFloat,j.next=842,t.default.awrap(this.getValue(P.pdf_factor_landscape));case 842:if(j.t180=j.sent,j.t180){j.next=845;break}j.t180="1";case 845:return j.t181=j.t180,this.pdfFactorLandscape=(0,j.t179)(j.t181),j.next=849,t.default.awrap(this.getValue(P.force_pdf_in_roaming_mode));case 849:if(j.t182=j.sent,j.t182){j.next=852;break}j.t182="0";case 852:return j.t183=j.t182,this.forcePdfInRoamingMode="1"===j.t183,j.t184=parseInt,j.next=857,t.default.awrap(this.getValue(P.low_pages_to_render));case 857:if(j.t185=j.sent,j.t185){j.next=860;break}j.t185="1";case 860:return j.t186=j.t185,this.lowPagesToRender=(0,j.t184)(j.t186,10),j.t187=parseInt,j.next=865,t.default.awrap(this.getValue(P.mid_pages_to_render));case 865:if(j.t188=j.sent,j.t188){j.next=868;break}j.t188="1";case 868:return j.t189=j.t188,this.midPagesToRender=(0,j.t187)(j.t189,10),j.next=872,t.default.awrap(this.getValue(P.load_mid_res_on_scroll));case 872:if(j.t190=j.sent,j.t190){j.next=875;break}j.t190="1";case 875:return j.t191=j.t190,this.loadMidResOnScroll="1"===j.t191,j.next=879,t.default.awrap(this.getValue(P.enable_article_text_selection));case 879:return j.t192=j.sent,this.enableArticleTextSelection="1"===j.t192,j.next=883,t.default.awrap(this.getValue(P.show_edition_thumbs));case 883:if(j.t193=j.sent,this.showEditionThumbs="1"===j.t193,!r(d[11]).PlatformUtils.isTablet()){j.next=891;break}return j.next=888,t.default.awrap(this.getValue(P.scroll_tiles));case 888:j.t194=j.sent,j.next=894;break;case 891:return j.next=893,t.default.awrap(this.getValue(P.scroll_tiles_phone));case 893:j.t194=j.sent;case 894:return this.scrollTiles=j.t194,this.scrollTiles=parseInt(this.scrollTiles,10),j.next=898,t.default.awrap(this.getValue(P.on_login_error_go_to));case 898:if(j.t195=j.sent,j.t195){j.next=901;break}j.t195=r(d[21]).tabs.home;case 901:return this.onLoginErrorGoTo=j.t195,j.next=904,t.default.awrap(this.getValue(P.on_validation_error_go_to));case 904:if(j.t196=j.sent,j.t196){j.next=907;break}j.t196=r(d[21]).tabs.login;case 907:return this.onValidationErrorGoTo=j.t196,j.t198=parseInt,j.next=911,t.default.awrap(this.getValue(P.time_limit_check_edition));case 911:if(j.t199=j.sent,j.t197=(0,j.t198)(j.t199,10),j.t197){j.next=915;break}j.t197=10;case 915:return j.t200=j.t197,j.t201=60*j.t200,this.timeLimitCheckEdition=1e3*j.t201,j.t203=parseInt,j.next=921,t.default.awrap(this.getValue(P.latest_edition_available_message_format));case 921:if(j.t204=j.sent,j.t202=(0,j.t203)(j.t204,10),j.t202){j.next=925;break}j.t202=y.ISSUE_AND_EDITION;case 925:return this.latestEditionAvailableMessageFormat=j.t202,j.t206=parseInt,j.next=929,t.default.awrap(this.getValue(P.time_limit_check_login));case 929:if(j.t207=j.sent,j.t205=(0,j.t206)(j.t207,10),j.t205){j.next=933;break}j.t205=7200;case 933:return j.t208=j.t205,this.timeLimitCheckLogin=1e3*j.t208,j.t210=parseInt,j.next=938,t.default.awrap(this.getValue(P.time_limit_forget_login));case 938:if(j.t211=j.sent,j.t209=(0,j.t210)(j.t211,10),j.t209){j.next=942;break}j.t209=120;case 942:return j.t212=j.t209,j.t213=60*j.t212,this.timeLimitForgetLogin=1e3*j.t213,j.next=947,t.default.awrap(this.getValue(P.last_pSetup));case 947:if(j.t214=j.sent,j.t214){j.next=950;break}j.t214=this.pSetup;case 950:return this.lastPSetup=j.t214,j.next=953,t.default.awrap(this.getValue(P.last_issue));case 953:return this.lastIssue=j.sent,j.next=956,t.default.awrap(this.getValue(P.last_edition));case 956:return this.lastEdition=j.sent,j.next=959,t.default.awrap(this.getValue(P.demo_issue));case 959:return this.demoIssue=j.sent,j.next=962,t.default.awrap(this.getValue(P.force_article_mode_fullscreen_portrait));case 962:if(j.t215=j.sent,j.t215){j.next=965;break}j.t215="0";case 965:return this.articleModeDefaultFullscreenPortrait=j.t215,j.next=968,t.default.awrap(this.getValue(P.force_article_mode_fullscreen_landscape));case 968:if(j.t216=j.sent,j.t216){j.next=971;break}j.t216="0";case 971:return this.articleModeDefaultFullscreenLandscape=j.t216,j.t217=parseInt,j.next=975,t.default.awrap(this.getValue(P.enable_text_to_speech));case 975:if(j.t218=j.sent,j.t218){j.next=978;break}j.t218="1";case 978:return j.t219=j.t218,j.t220=(0,j.t217)(j.t219,10),this.enableTextToSpeech=1===j.t220,j.t221=parseInt,j.next=984,t.default.awrap(this.getValue(P.enable_text_to_speech_player));case 984:if(j.t222=j.sent,j.t222){j.next=987;break}j.t222="0";case 987:return j.t223=j.t222,j.t224=(0,j.t221)(j.t223,10),this.enableTextToSpeechPlayer=1===j.t224,j.t226=parseFloat,j.next=993,t.default.awrap(this.getValue(P.text_to_speech_rate));case 993:if(j.t227=j.sent,j.t225=(0,j.t226)(j.t227),j.t225){j.next=997;break}j.t225=0;case 997:return this.textToSpeechRate=j.t225,j.t229=parseInt,j.next=1001,t.default.awrap(this.getValue(P.text_to_speech_chunk_length));case 1001:if(j.t230=j.sent,j.t228=(0,j.t229)(j.t230,10),j.t228){j.next=1005;break}j.t228=1e3;case 1005:return this.textToSpeechChunkLength=j.t228,j.t232=parseInt,j.next=1009,t.default.awrap(this.getValue(P.low_speed_limit));case 1009:if(j.t233=j.sent,j.t231=(0,j.t232)(j.t233,10),j.t231){j.next=1013;break}j.t231=250;case 1013:return this.lowSpeedLimit=j.t231,j.t234=parseInt,j.next=1017,t.default.awrap(this.getValue(P.disable_low_speed_limit));case 1017:if(j.t235=j.sent,j.t235){j.next=1020;break}j.t235="0";case 1020:return j.t236=j.t235,j.t237=(0,j.t234)(j.t236,10),this.disableLowSpeedLimit=1===j.t237,j.next=1025,t.default.awrap(this.getValue(P.base_iap_api_url));case 1025:return this.baseInAppPurchaseAPIUrl=j.sent,j.next=1028,t.default.awrap(this.getValue(P.all_skus));case 1028:return this.allAndroidSkus=j.sent,j.t238=parseInt,j.next=1032,t.default.awrap(this.getValue(P.is_nnb));case 1032:return j.t239=j.sent,j.t240=(0,j.t238)(j.t239,10),this.isNNB=1===j.t240,j.t241=parseInt,j.next=1038,t.default.awrap(this.getValue(P.enable_vmode_and_fit_orientation));case 1038:if(j.t242=j.sent,j.t242){j.next=1041;break}j.t242="1";case 1041:return j.t243=j.t242,j.t244=(0,j.t241)(j.t243,10),this.enableVmodeAndFitOrientation=1===j.t244,j.t245=parseInt,j.next=1047,t.default.awrap(this.getValue(P.fit_page_type));case 1047:if(j.t246=j.sent,j.t246){j.next=1050;break}j.t246=this.enableVmodeAndFitOrientation?"7":"6";case 1050:return j.t247=j.t246,this.fitPageType=(0,j.t245)(j.t247,10),j.next=1054,t.default.awrap(this.getValue(P.start_in_index_mode));case 1054:if(j.t248=j.sent,j.t248){j.next=1057;break}j.t248="0";case 1057:return this.startInIndexMode=j.t248,j.next=1060,t.default.awrap(this.getValue(P.epaper_start_mode));case 1060:if(j.t249=j.sent,j.t249){j.next=1063;break}j.t249=w.READ;case 1063:return this.epaperStartMode=j.t249,j.next=1066,t.default.awrap(this.getValue(P.disable_epaper_mode_selection_page));case 1066:if(j.t250=j.sent,j.t250){j.next=1069;break}j.t250="0";case 1069:return j.t251=j.t250,this.disableEPaperModeSelectionPage="1"===j.t251,j.next=1073,t.default.awrap(this.getValue(P.cdn_enabled));case 1073:if(j.t252=j.sent,j.t252){j.next=1076;break}j.t252="1";case 1076:return j.t253=j.t252,this.cdnEnabled="1"===j.t253,j.next=1080,t.default.awrap(this.getValue(P.cdn_server));case 1080:return this.cdnServer=j.sent,j.t254=parseInt,j.next=1084,t.default.awrap(this.getValue(P.cdn_version));case 1084:if(j.t255=j.sent,j.t255){j.next=1087;break}j.t255="0";case 1087:return j.t256=j.t255,this.cdnVersion=(0,j.t254)(j.t256,10),j.next=1091,t.default.awrap(this.getValue(P.disable_rn_demo));case 1091:if(j.t257=j.sent,j.t257){j.next=1094;break}j.t257="0";case 1094:return j.t258=j.t257,this.disableRnDemo="1"===j.t258,j.next=1098,t.default.awrap(this.getValue(P.landing_page_url));case 1098:return this.landingPageURL=j.sent,j.t260=parseInt,j.next=1102,t.default.awrap(this.getValue(P.landing_page_version));case 1102:if(j.t261=j.sent,j.t259=(0,j.t260)(j.t261,10),j.t259){j.next=1106;break}j.t259=0;case 1106:return this.landingPageVersion=j.t259,j.next=1109,t.default.awrap(this.getValue(P.show_landing_page_once));case 1109:return j.t262=j.sent,this.showLandingPageOnce="1"===j.t262,j.next=1113,t.default.awrap(this.getValue(P.forced_shared_secret));case 1113:return this.forcedSharedSecret=j.sent,j.next=1116,t.default.awrap(this.getValue(P.use_ios_sandbox_receipt_validation));case 1116:return j.t263=j.sent,this.useIOSSandboxReceiptValidation="1"===j.t263,j.t264=parseInt,j.next=1121,t.default.awrap(this.getValue(P.use_cc));case 1121:if(j.t265=j.sent,j.t265){j.next=1124;break}j.t265=E.NONE;case 1124:return j.t266=j.t265,this.encryptFilenames=(0,j.t264)(j.t266,10),j.next=1128,t.default.awrap(this.getValue(P.migrate));case 1128:if(j.t267=j.sent,j.t267){j.next=1131;break}j.t267="0";case 1131:return j.t268=j.t267,this.migrate="1"===j.t268,j.next=1135,t.default.awrap(this.getValue(P.hybrid_version));case 1135:if(j.t269=j.sent,j.t269){j.next=1138;break}j.t269="0";case 1138:return this.hybridVersion=j.t269,j.t270=parseInt,j.next=1142,t.default.awrap(this.getValue(P.append_first_pages));case 1142:if(j.t271=j.sent,j.t271){j.next=1145;break}j.t271="1";case 1145:return j.t272=j.t271,j.t273=(0,j.t270)(j.t272,10),this.enableAppendFirstPages=1===j.t273,j.t274=parseFloat,j.next=1151,t.default.awrap(this.getValue(P.png_quality_factor));case 1151:if(j.t275=j.sent,j.t275){j.next=1154;break}j.t275="1.8";case 1154:return j.t276=j.t275,this.pngQualityFactor=(0,j.t274)(j.t276),j.next=1158,t.default.awrap(this.getValue(P.generate_png_based_on_screen_dimensions));case 1158:if(j.t277=j.sent,j.t277){j.next=1161;break}j.t277="1";case 1161:return j.t278=j.t277,this.generatePNGBasedOnScreenDimensions="1"===j.t278,j.next=1165,t.default.awrap(this.getValue(P.consider_pixel_ratio_in_png_generation));case 1165:if(j.t279=j.sent,j.t279){j.next=1168;break}j.t279="1";case 1168:return j.t280=j.t279,this.considerPixelRatioInPNGGeneration="1"===j.t280,j.t281=parseInt,j.next=1173,t.default.awrap(this.getValue(P.png_width_limit));case 1173:if(j.t282=j.sent,j.t282){j.next=1176;break}j.t282="1080";case 1176:return j.t283=j.t282,this.pngWidthLimit=(0,j.t281)(j.t283,10),j.next=1180,t.default.awrap(this.getValue(P.print_enabled));case 1180:if(j.t284=j.sent,j.t284){j.next=1183;break}j.t284="1";case 1183:return j.t285=j.t284,this.enablePrint="1"===j.t285,j.next=1187,t.default.awrap(this.getValue(P.print_to_letter));case 1187:if(j.t286=j.sent,j.t286){j.next=1190;break}j.t286="1";case 1190:return j.t287=j.t286,this.printToLetter="1"===j.t287,j.t288=parseInt,j.next=1195,t.default.awrap(this.getValue(P.print_margin));case 1195:if(j.t289=j.sent,j.t289){j.next=1198;break}j.t289="10";case 1198:return j.t290=j.t289,this.printMargin=(0,j.t288)(j.t290,10),j.next=1202,t.default.awrap(this.getValue(P.generic_app_enabled));case 1202:if(j.t291=j.sent,j.t291){j.next=1205;break}j.t291="0";case 1205:return j.t292=j.t291,this.isGenericApp="1"===j.t292,j.next=1209,t.default.awrap(this.getValue(P.store_url));case 1209:if(j.t293=j.sent,j.t293){j.next=1212;break}j.t293="";case 1212:return this.publicationsPageURL=j.t293,j.next=1215,t.default.awrap(this.getValue(P.iap_active));case 1215:if(j.t294=j.sent,j.t294){j.next=1218;break}j.t294="0";case 1218:return j.t295=j.t294,this.iapActive="1"===j.t295,j.next=1222,t.default.awrap(this.getValue(P.payments));case 1222:if(j.t296=j.sent,j.t296){j.next=1225;break}j.t296="[]";case 1225:return G=j.t296,Y=JSON.parse(G),this.payments=Y.map(function(t){return new p.default(t)}),j.next=1230,t.default.awrap(this.getValue(P.enable_multiple_subscriptions_alert));case 1230:if(j.t297=j.sent,j.t297){j.next=1233;break}j.t297="1";case 1233:return j.t298=j.t297,this.enableMultipleSubscriptionsAlert="1"===j.t298,j.t299=parseInt,j.next=1238,t.default.awrap(this.getValue(P.protect_site));case 1238:if(j.t300=j.sent,j.t300){j.next=1241;break}j.t300="0";case 1241:if(j.t301=j.t300,this.protectSite=(0,j.t299)(j.t301,10),!(this.protectSite>0)){j.next=1254;break}return j.t302=parseInt,j.next=1247,t.default.awrap(this.getValue(P.validate_site));case 1247:if(j.t303=j.sent,j.t303){j.next=1250;break}j.t303="0";case 1250:j.t304=j.t303,this.validateSite=(0,j.t302)(j.t304,10),j.next=1255;break;case 1254:this.validateSite=0;case 1255:return j.next=1257,t.default.awrap(this.getValue(P.pages_navigation_buttons_layout));case 1257:if(j.t305=j.sent,j.t305){j.next=1260;break}j.t305=V.FIXED;case 1260:return this.pagesNavigationButtonsLayout=j.t305,j.next=1263,t.default.awrap(this.getValue(P.animate_layout_footer));case 1263:if(j.t306=j.sent,j.t306){j.next=1266;break}j.t306="0";case 1266:return j.t307=j.t306,this.animateLayoutFooter="1"===j.t307,j.next=1270,t.default.awrap(this.getValue(P.fix_buttons_bar_to_bottom));case 1270:if(j.t309=j.sent,j.t309){j.next=1273;break}j.t309="0";case 1273:if(j.t310=j.t309,j.t308="1"===j.t310,!j.t308){j.next=1277;break}j.t308=r(d[11]).PlatformUtils.isTablet();case 1277:return this.fixButtonsBarToBottom=j.t308,j.t312=parseInt,j.next=1281,t.default.awrap(this.getValue(P.dfp_reload_time));case 1281:if(j.t313=j.sent,j.t311=(0,j.t312)(j.t313,10),j.t311){j.next=1285;break}j.t311=2e4;case 1285:return this.dfpReloadTime=j.t311,j.next=1288,t.default.awrap(this.getValue(P.two_fingers_tap_hint_enabled));case 1288:if(j.t314=j.sent,j.t314){j.next=1291;break}j.t314="1";case 1291:return j.t315=j.t314,this.twoFingersTapHintEnabled="1"===j.t315,j.t316=parseInt,j.next=1296,t.default.awrap(this.getValue(P.two_fingers_tap_max_hints));case 1296:if(j.t317=j.sent,j.t317){j.next=1299;break}j.t317="5";case 1299:return j.t318=j.t317,this.twoFingersTapMaxHints=(0,j.t316)(j.t318,10),j.next=1303,t.default.awrap(this.getValue(P.enable_share));case 1303:if(j.t319=j.sent,j.t319){j.next=1306;break}j.t319="1";case 1306:return j.t320=j.t319,this.enableShare="1"===j.t320,j.t321=parseInt,j.next=1311,t.default.awrap(this.getValue(P.max_shares));case 1311:if(j.t322=j.sent,j.t322){j.next=1314;break}j.t322="0";case 1314:return j.t323=j.t322,this.maxShares=(0,j.t321)(j.t323,10),j.t324=parseInt,j.next=1319,t.default.awrap(this.getValue(P.max_shares_check_type));case 1319:if(j.t325=j.sent,j.t325){j.next=1322;break}j.t325="1";case 1322:return j.t326=j.t325,this.maxSharesCheckType=(0,j.t324)(j.t326,10),j.next=1326,t.default.awrap(this.getValue(P.message_max_share));case 1326:if(j.t327=j.sent,j.t327){j.next=1329;break}j.t327="";case 1329:return this.messageMaxShare=j.t327,j.next=1332,t.default.awrap(this.getValue(P.download_single_pdf));case 1332:if(j.t328=j.sent,j.t328){j.next=1335;break}j.t328="0";case 1335:return j.t329=j.t328,this.downloadSinglePdf="1"===j.t329,j.t330=parseInt,j.next=1340,t.default.awrap(this.getValue(P.merge_articles));case 1340:if(j.t331=j.sent,j.t331){j.next=1343;break}j.t331=b.NORMAL;case 1343:return j.t332=j.t331,this.mergeArticles=(0,j.t330)(j.t332,10),j.t333=parseInt,j.next=1348,t.default.awrap(this.getValue(P.column_view));case 1348:if(j.t334=j.sent,j.t334){j.next=1351;break}j.t334="1";case 1351:return j.t335=j.t334,this.columnView=(0,j.t333)(j.t335,10),j.next=1355,t.default.awrap(this.getValue(P.enable_phone_article_layout_on_tablet_in_landscape));case 1355:if(j.t336=j.sent,j.t336){j.next=1358;break}j.t336="0";case 1358:return j.t337=j.t336,this.enablePhoneArticleLayoutOnTabletInLandscape="1"===j.t337,j.next=1362,t.default.awrap(this.getValue(P.enable_desktop_article_layout_on_ipad_pro_in_landscape));case 1362:if(j.t338=j.sent,j.t338){j.next=1365;break}j.t338="0";case 1365:return j.t339=j.t338,this.enableDesktopArticleLayoutOnIPadProInLandscape="1"===j.t339,j.next=1369,t.default.awrap(this.getValue(P.show_art_complete));case 1369:if(j.t340=j.sent,j.t340){j.next=1372;break}j.t340="0";case 1372:return j.t341=j.t340,this.showArtComplete="1"===j.t341,j.next=1376,t.default.awrap(this.getValue(P.calculate_mid_ads));case 1376:if(j.t342=j.sent,j.t342){j.next=1379;break}j.t342="0";case 1379:return j.t343=j.t342,this.calculateMidAds="1"===j.t343,j.next=1383,t.default.awrap(this.getValue(P.keep_article_position_on_rotation));case 1383:if(j.t344=j.sent,j.t344){j.next=1386;break}j.t344="0";case 1386:return j.t345=j.t344,this.keepArticlePositionOnRotation="1"===j.t345,j.next=1390,t.default.awrap(this.getValue(P.enable_article_image_reposition));case 1390:if(j.t346=j.sent,j.t346){j.next=1393;break}j.t346="0";case 1393:return j.t347=j.t346,this.enableArticleImageReposition="1"===j.t347,j.next=1397,t.default.awrap(this.getValue(P.enable_article_byline_hrs));case 1397:if(j.t348=j.sent,j.t348){j.next=1400;break}j.t348="1";case 1400:return j.t349=j.t348,this.enableArticleBylineHRs="1"===j.t349,j.next=1404,t.default.awrap(this.getValue(P.ads));case 1404:if(j.t350=j.sent,j.t350){j.next=1407;break}j.t350="";case 1407:return this.ads=j.t350,j.next=1410,t.default.awrap(this.getValue(P.enable_instory_ad_marker));case 1410:if(j.t351=j.sent,j.t351){j.next=1413;break}j.t351="0";case 1413:return j.t352=j.t351,this.enableInStoryAdMarker="1"===j.t352,j.next=1417,t.default.awrap(this.getValue(P.instory_ad_marker_text));case 1417:if(j.t353=j.sent,j.t353){j.next=1420;break}j.t353=g.strings("str_advertisement");case 1420:return this.inStoryAdMarkerText=j.t353,j.next=1423,t.default.awrap(this.getValue(P.disable_rn_styles));case 1423:if(j.t354=j.sent,j.t354){j.next=1426;break}j.t354="0";case 1426:return j.t355=j.t354,this.disableRnStyles="1"===j.t355,this.rnStyles={},j.next=1431,t.default.awrap(this.getValue(P.rn_styles));case 1431:if($=j.sent)try{this.rnStyles=JSON.parse($)}catch(t){}return j.t356=parseInt,j.next=1436,t.default.awrap(this.getValue(P.rn_styles_file_time));case 1436:if(j.t357=j.sent,j.t357){j.next=1439;break}j.t357=-1;case 1439:return j.t358=j.t357,this.rnStylesFileTime=(0,j.t356)(j.t358,10),j.t359=parseInt,j.next=1444,t.default.awrap(this.getValue(P.ssl_certificate_file_time));case 1444:if(j.t360=j.sent,j.t360){j.next=1447;break}j.t360=-1;case 1447:return j.t361=j.t360,this.sslCertificateFileTime=(0,j.t359)(j.t361,10),j.t362=parseInt,j.next=1452,t.default.awrap(this.getValue(P.device_dpi));case 1452:if(j.t363=j.sent,j.t363){j.next=1455;break}j.t363=0;case 1455:return j.t364=j.t363,this.deviceDpi=(0,j.t362)(j.t364,10),j.next=1459,t.default.awrap(this.getValue(P.toc_style));case 1459:if(j.t365=j.sent,j.t365){j.next=1462;break}j.t365="list";case 1462:return this.tocStyle=j.t365,j.next=1465,t.default.awrap(this.getValue(P.toc_style_preview));case 1465:if(j.t366=j.sent,j.t366){j.next=1468;break}j.t366="all_art";case 1468:return this.tocStylePreview=j.t366,j.next=1471,t.default.awrap(this.getValue(P.enable_tab_index_mode));case 1471:if(j.t367=j.sent,j.t367){j.next=1474;break}j.t367="0";case 1474:return j.t368=j.t367,this.enableTabIndexMode="1"===j.t368,j.next=1478,t.default.awrap(this.getValue(P.show_tab_index_mode_customization));case 1478:if(j.t369=j.sent,j.t369){j.next=1481;break}j.t369=this.enableTabIndexMode?"1":"0";case 1481:return j.t370=j.t369,this.showTabIndexModeCustomization="1"===j.t370,j.next=1485,t.default.awrap(this.getValue(P.bundle_update_available));case 1485:if(j.t371=j.sent,j.t371){j.next=1488;break}j.t371="0";case 1488:return j.t372=j.t371,this.bundleUpdateAvailable="1"===j.t372,j.next=1492,t.default.awrap(this.getValue(P.reset_app_bundle));case 1492:if(j.t373=j.sent,j.t373){j.next=1495;break}j.t373="0";case 1495:return j.t374=j.t373,this.resetAppBundle="1"===j.t374,j.t375=parseInt,j.next=1500,t.default.awrap(this.getValue(P.see_newspaper_preview));case 1500:if(j.t376=j.sent,j.t376){j.next=1503;break}j.t376="0";case 1503:return j.t377=j.t376,this.seeNewspaperPreview=(0,j.t375)(j.t377,10),j.t379=parseInt,j.next=1508,t.default.awrap(this.getValue(P.page_see_newspaper_preview));case 1508:if(j.t380=j.sent,j.t378=(0,j.t379)(j.t380,10),j.t378){j.next=1512;break}j.t378=2;case 1512:return this.pageSeeNewspaperPreview=j.t378,j.t382=parseInt,j.next=1516,t.default.awrap(this.getValue(P.hours_to_send_push_registration));case 1516:if(j.t383=j.sent,j.t381=(0,j.t382)(j.t383,10),j.t381){j.next=1520;break}j.t381=6;case 1520:return this.hoursToSendPushRegistration=j.t381,j.next=1523,t.default.awrap(this.getValue(P.webview_ios_native_player));case 1523:if(j.t384=j.sent,j.t384){j.next=1526;break}j.t384="0";case 1526:return j.t385=j.t384,this.webviewIOSNativePlayer="1"===j.t385,j.next=1530,t.default.awrap(this.getValue(P.webview_android_allow_fullscreen));case 1530:if(j.t386=j.sent,j.t386){j.next=1533;break}j.t386="1";case 1533:return j.t387=j.t386,this.webviewAndroidAllowFullscreen="1"===j.t387,j.next=1537,t.default.awrap(this.getValue(P.webview_allow_autoplay));case 1537:if(j.t388=j.sent,j.t388){j.next=1540;break}j.t388="0";case 1540:return j.t389=j.t388,this.webviewAllowAutoplay="1"===j.t389,this.webviewCustomHTTPHeaders={},j.next=1545,t.default.awrap(this.getValue(P.webview_custom_http_headers));case 1545:return(W=j.sent)&&(this.webviewCustomHTTPHeaders=r(d[11]).StringUtils.parseQuerystring(W)),this.attConfig=new(r(d[22]).ATTConfig)(this.pSetup,this.originalMachine),j.next=1550,t.default.awrap(this.attConfig.init(s));case 1550:return j.next=1552,t.default.awrap(this.getValue(P.iubenda.enabled));case 1552:if(j.t390=j.sent,j.t390){j.next=1555;break}j.t390="0";case 1555:if(j.t391=j.t390,this.iubendaEnabled="1"===j.t391,!this.iubendaEnabled){j.next=1561;break}return this.iubendaConfig=new(r(d[23]).IubendaConfig)(this.pSetup,this.originalMachine),j.next=1561,t.default.awrap(this.iubendaConfig.init(s));case 1561:return j.next=1563,t.default.awrap(this.getValue(P.osano.enabled));case 1563:if(j.t392=j.sent,j.t392){j.next=1566;break}j.t392="0";case 1566:if(j.t393=j.t392,this.osanoEnabled="1"===j.t393,!this.osanoEnabled){j.next=1572;break}return this.osanoConfig=new(r(d[24]).OsanoConfig)(this.pSetup,this.originalMachine),j.next=1572,t.default.awrap(this.osanoConfig.init(s));case 1572:return j.next=1574,t.default.awrap(this.getValue(P.show_extras_in_article_graphic_mode));case 1574:if(j.t394=j.sent,j.t394){j.next=1577;break}j.t394="0";case 1577:return j.t395=j.t394,this.showExtrasInArticleGraphicMode="1"===j.t395,j.next=1581,t.default.awrap(this.getValue(P.show_extras_to_logged_users_only));case 1581:if(j.t396=j.sent,j.t396){j.next=1584;break}j.t396="0";case 1584:return j.t397=j.t396,this.showExtrasToLoggedUsersOnly="1"===j.t397,j.next=1588,t.default.awrap(this.getValue(P.morse_tauid));case 1588:if(j.t398=j.sent,j.t398){j.next=1591;break}j.t398="0";case 1591:return j.t399=j.t398,this.morseTAUID="1"===j.t399,j.next=1595,t.default.awrap(this.getValue(P.add_watermark));case 1595:if(j.t400=j.sent,j.t400){j.next=1598;break}j.t400="0";case 1598:return j.t401=j.t400,this.addWatermark="1"===j.t401,j.next=1602,t.default.awrap(this.getValue(P.watermark_text));case 1602:if(j.t402=j.sent,j.t402){j.next=1605;break}j.t402="$extId";case 1605:return this.watermarkText=j.t402,j.next=1608,t.default.awrap(this.getValue(P.disable_screen_idle_timer_delay));case 1608:if(j.t403=j.sent,j.t403){j.next=1611;break}j.t403="0";case 1611:return j.t404=j.t403,this.disableScreenIdleTimerDelay="1"===j.t404,j.next=1615,t.default.awrap(this.getValue(P.startup_params));case 1615:if(j.t405=j.sent,j.t405){j.next=1618;break}j.t405="{}";case 1618:X=j.t405;try{this.startupParams=JSON.parse(X)}catch(t){this.startupParams={}}return j.next=1622,t.default.awrap(this.getValue(P.enable_session_collection));case 1622:if(j.t406=j.sent,j.t406){j.next=1625;break}j.t406="0";case 1625:return j.t407=j.t406,this.enableSessionCollection="1"===j.t407,j.next=1629,t.default.awrap(this.getValue(P.enable_session_auto_upload));case 1629:if(j.t408=j.sent,j.t408){j.next=1632;break}j.t408="0";case 1632:return j.t409=j.t408,this.enableSessionAutoUpload="1"===j.t409,j.next=1636,t.default.awrap(this.getValue(P.session_upload_base_url));case 1636:if(j.t410=j.sent,j.t410){j.next=1639;break}j.t410="";case 1639:if(this.sessionUploadBaseURL=j.t410,this.disableReaderAppModal=!0,this.readerAppLearnMoreLink="",!r(d[11]).PlatformUtils.isIOS()){j.next=1656;break}return j.next=1645,t.default.awrap(this.getValue(P.disable_reader_app_modal));case 1645:if(j.t411=j.sent,j.t411){j.next=1648;break}j.t411="0";case 1648:return j.t412=j.t411,this.disableReaderAppModal="1"===j.t412,j.next=1652,t.default.awrap(this.getValue(P.reader_app_learn_more_link));case 1652:if(j.t413=j.sent,j.t413){j.next=1655;break}j.t413="https://apps.apple.com/story/id1614232807";case 1655:this.readerAppLearnMoreLink=j.t413;case 1656:return j.next=1658,t.default.awrap(this.getValue(P.checksum));case 1658:if(j.t414=j.sent,j.t414){j.next=1661;break}j.t414="";case 1661:return this.checksum=j.t414,j.next=1664,t.default.awrap(this.getValue(P.push_tags));case 1664:if(j.t415=j.sent,j.t415){j.next=1667;break}j.t415="";case 1667:return this.pushTags=j.t415,j.next=1670,t.default.awrap(this.getValue(P.ssl_domains));case 1670:if(j.t416=j.sent,j.t416){j.next=1673;break}j.t416="";case 1673:return this.sslDomains=j.t416.split(","),j.next=1676,t.default.awrap(this.getValue(P.use_asymmetric_card_list));case 1676:if(j.t417=j.sent,j.t417){j.next=1679;break}j.t417="1";case 1679:return j.t418=j.t417,this.useAsymmetricCardList="1"===j.t418,j.next=1683,t.default.awrap(this.getValue(P.prevent_screenshots));case 1683:if(j.t419=j.sent,j.t419){j.next=1686;break}j.t419="0";case 1686:return j.t420=j.t419,this.preventScreenshots="1"===j.t420,j.abrupt("return",!0);case 1689:case"end":return j.stop()}},null,this,null,Promise)}},{key:"setLastIssue",value:function(t){this.lastIssue=t,this.setValue(P.last_issue,t)}},{key:"setLastEdition",value:function(t){this.lastEdition=t,this.setValue(P.last_edition,t)}},{key:"setLastPSetup",value:function(t){this.lastPSetup=t,this.setValue(P.last_pSetup,t)}},{key:"setDemoIssue",value:function(t){this.demoIssue=t,this.setValue(P.demo_issue,t)}},{key:"setRssIndexFileTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.rssIndexFileTime=t,this.setValue(P.rss_index_file_time,""+t)}},{key:"setCustomLanguagePackFileTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.customLanguagePackFileTime=t,this.setValue(P.custom_language_pack_file_time,""+t)}},{key:"setCustomFontsFileTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.customFontsFileTime=t,this.setValue(P.custom_fonts_file_time,""+t)}},{key:"setRNStyles",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.rnStyles=t,this.setValue(P.rn_styles,JSON.stringify(t))}},{key:"setRNStylesFileTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.rnStylesFileTime=t,this.setValue(P.rn_styles_file_time,""+t)}},{key:"setSSLCertificateFileTime",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.sslCertificateFileTime=t,this.setValue(P.ssl_certificate_file_time,""+t)}},{key:"setModeEnabled",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.rssIsEnabled="1"===t||"3"===t,this.newsMemoryIsEnabled="0"===t||"2"===t||"3"===t,e||this.setValue(P.mode_enabled,t)}},{key:"checkIfRssIsEnabled",value:function(){var e;return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:return s.next=2,t.default.awrap(this.getValue(P.mode_enabled));case 2:return e=s.sent,s.abrupt("return","1"===e||"3"===e);case 4:case"end":return s.stop()}},null,this,null,Promise)}},{key:"getPaymentByProductId",value:function(t){if(this.payments)return this.payments.find(function(e){return e.checkProductId(t)})}},{key:"setExternal",value:function(t){this.external=t}},{key:"setAllowedIP",value:function(t){this.isAllowedIP=t,this.setValue(P.is_allowed_ip,t?"1":"0")}},{key:"setCDNEnabled",value:function(t){this.cdnEnabled=t,this.setValue(P.cdn_enabled,t?"1":"0")}},{key:"setCDNServer",value:function(t){this.cdnServer=t,this.setValue(P.cdn_server,t)}},{key:"setCDNVersion",value:function(t){this.cdnVersion=parseInt(t,10),this.setValue(P.cdn_version,t)}},{key:"setBundleUpdateAvailable",value:function(t){this.bundleUpdateAvailable=t,this.setValue(P.bundle_update_available,t?"1":"0")}},{key:"setMigrate",value:function(t){this.migrate=t,this.setValue(P.migrate,t?"1":"0")}},{key:"setNativeOptionspageFallbackVersion",value:function(t){this.showNativeOptionsPageFallbackUrl=t,this.setValue(P.show_native_options_page_fallback_url,t)}},{key:"_getDifferences",value:function(t){var e=this,s=[];if(t)try{(s=Object.keys(this).filter(function(s){if("function"==typeof e[s])return!1;if("object"==typeof e[s]){var n={};return e[s]instanceof r(d[25]).PaperSetupBaseConfig&&(n.skipKeys=["json"]),!r(d[11]).JSUtils.areEqualDeep(e[s],t[s],n)}return e[s]!==t[s]})).length}catch(t){}return s}},{key:"_checkIfNeedToRestart",value:function(t){return void 0!==t.find(function(t){return I.includes(t)})}},{key:"_checkIfNeedToUpdate",value:function(t){return void 0!==t.find(function(t){return!N.includes(t)})}},{key:"_checkIfNeedLayoutUpdate",value:function(t){return void 0!==t.find(function(t){return v.includes(t)})}},{key:"_getLockPanIfNotZoomedByDegrees",value:function(){return t.default.async(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.t0=JSON,e.next=4,t.default.awrap(this.getValue(P.lock_pan_if_not_zoomed_by_degrees));case 4:return e.t1=e.sent,e.abrupt("return",e.t0.parse.call(e.t0,e.t1));case 8:e.prev=8,e.t2=e.catch(0);case 10:return e.abrupt("return",[0,90]);case 11:case"end":return e.stop()}},null,this,[[0,8]],Promise)}}]),R})(r(d[25]).PaperSetupBaseConfig);_e.PaperSetupConfig=L},754,[5,80,7,8,90,12,14,16,755,756,757,462,758,760,761,763,764,765,766,767,768,769,1725,1726,1727,762]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),o=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),s=(function(){function s(){(0,o.default)(this,s)}return(0,n.default)(s,null,[{key:"setItem",value:function(o,n,s){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.setItem(o,n,s));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"getItem",value:function(o,n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.getItem(o,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),s})();e.default=s,s.SP={keys:{app_mode_selection_page_enabled:"enableAppModeSelectionPage",app_mode_selection_page_url:"appModeSelectionPageUrl",app_mode_selection_page_version:"appModeSelectionPageVersion",base_rss_update_url:"baseRssUpdateUrl",change_user_agent_for_oauth:"changeUserAgentForOAuth",custom_string_to_append_to_user_agent_for_oauth:"customStringToAppendToUserAgentForOAuth",custom_user_agent_for_oauth:"customUserAgentForOAuth",adobe_analytics:{enabled:"enableAdobeAnalytics",props_list:"adobeAnalyticsPropsList",actions:{edition_load:"adobeAnalyticsEditionLoadActionName",double_tap_to_zoom:"adobeAnalyticsDoubleTapActionName",pinch_to_zoom:"adobeAnalyticsPinchOutActionName",tts:"adobeAnalyticsTextToSpeechActionName",skip_to_end:"adobeAnalyticsSkipToEndActionName",toggle_to_print:"adobeAnalyticsToggleToPrintActionName",toggle_to_digital:"adobeAnalyticsToggleToDigitalActionName",share:"adobeAnalyticsShareActionName",scroll_zoom:"adobeAnalyticsScrollZoomActionName",link_click:"adobeAnalyticsLinkClickActionName"},states:{scrolled:"adobeAnalyticsScrolledStateName",read:"adobeAnalyticsReadStateName",zoomed:"adobeAnalyticsZoomedStateName",index:"adobeAnalyticsIndexStateName",optionspage:"adobeAnalyticsOptionspageStateName"},send_only_edition_load:"adobeAnalyticsSendOnlyEditionLoad",user_types:{unknown:"adobeAnalyticsUserTypeUnknown",subscriber:"adobeAnalyticsUserTypeSubscriber"},media:{print:"adobeAnalyticsPrintMedium",digital:"adobeAnalyticsDigitalMedium",zoomed_suffix:"adobeAnalyticsZoomedMediumSuffix"},first_page_section_prefix:"adobeAnalyticsFirstPageSectionPrefix",content_types:{first_page:"adobeAnalyticsFirstPageContentType",page:"adobeAnalyticsPageContentType",index:"adobeAnalyticsIndexContentType",article:"adobeAnalyticsArticleContentType",optionspage:"adobeAnalyticsOptionspageContentType"},edition_type:"adobeAnalyticsEditionType",device_type:"adobeAnalyticsDeviceType"},blueconic:{enabled:"blueConicEnabled",user_profile_properties:"blueConicUserProfileProperties",view_profile_properties:"blueConicViewProfileProperties"},chartbeat:{account_id:"chartbeatAccountId",domain:"chartbeatDomain",rss_enabled:"chartbeatRssEnabled",epaper_enabled:"chartbeatEpaperEnabled",section_rss_properties:"chartbeatSectionRssProperties",section_epaper_properties:"chartbeatSectionEpaperProperties",author_rss_properties:"chartbeatAuthorRssProperties",author_epaper_properties:"chartbeatAuthorEpaperProperties",rss_title_keys:"chartbeatRssTitleKeys",epaper_title_keys:"chartbeatEpaperTitleKeys",rss_screen_key:"chartbeatRssScreenKey",epaper_screen_key:"chartbeatEpaperScreenKey",rss_custom_data:"chartbeatRssCustomData",epaper_custom_data:"chartbeatEpaperCustomData"},comscore:{app_name:"comScoreAppName",base_url:"comScoreBaseUrl",id:"comScoreID",publisher_secret:"comScorePublisherSecret"},copyright:"copyright",add_disclaimer:"addDisclaimer",copyright_url:"copyrighturl",custom_language_pack_file_time:"customLanguagePackFileTimestamp",custom_fonts:"customFonts",custom_fonts_file_time:"customFontsFileTimestamp",default_connectivity:"defaultConnectivity",default_connectivity_timestamp:"defaultConnectivityTimeStamp",default_max_issues:"DEFAULT_MAX_ISSUES",feedback:{active_days_to_show:"feedbackActiveDaysToShow",ask:"feedbackAskForFeedback",email:"feedbackEmailForFeedback",reset_timestamp:"feedbackResetTimestamp",enable:"feedbackEnable",lower_active_date_range:"feedbackLowerActiveDateRange",request_title:"feedbackRequestFeedbackTitle",request_review_title:"feedbackRequestReviewFeedbackTitle",show_dont_show_again:"feedbackShowDontShowAgain",total_days_to_show:"feedbackTotalDaysToShow",upper_active_date_range:"feedbackUpperActiveDateRange",cool_down_days:"feedbackCoolDownDays",cool_down_days_dont_show_again:"feedbackCoolDownDaysDontShowAgain"},file_time:"pSetupTime",disable_firebase_analytics:"disableFirebaseAnalytics",other_firebase_projects:"otherFirebaseProjects",disable_google_analytics_3:"disableGoogleAnalytics3",g_analytics_anonymize_ip:"googleAnalyticsAnonymizeIP",g_analytics:"googleAnalyticsAccount",g_analytics_feedback:"googleAnalyticsAccountFeedback",g_analytics_tecnavia:"googleAnalyticsAccountTecnavia",gallery_download_enabled:"galleryDownloadEnabled",gallery_thumbnail_disabled:"galleryThumbnailDisabled",open_http_link_on_external_browser:"openHttpLinkOnExternalBrowser",url_type:"urltype",showLinksHighlight:"useAutoGeneratedLinks",is_lite:"newsmemoryLite",language:"language",layout_style:"layoutStyle",layout_sub_style:"layoutSubStyle",mather_analytics:{enabled:"matherAnalyticsEnable",customer_id:"matherCustomerId",site_id:"matherSiteId",send_email:"matherSendEmail"},matomo:{enabled:"matomoEnable",site_id:"matomoSiteId",rss_site_id:"matomoRssSiteId",base_url:"matomoBaseURL",visit_custom_dimensions:"matomoVisitCustomDimensions",custom_dimensions:"matomoCustomDimensions",dispatch_interval:"matomoDispatchInterval"},matomo_tracker:{enabled:"matomoTrackerEnable",site_id:"matomoTrackerSiteId",rss_site_id:"matomoTrackerRssSiteId",base_url:"matomoTrackerBaseURL",action_base_url:"matomoTrackerActionBaseURL",edition_remapping:"matomoTrackerEditionRemapping",titles:{scrolled:"matomoTrackerScrolledTitle",read:"matomoTrackerReadTitle",rss_drawer:"matomoTrackerRssDrawerTitle",rss_read:"matomoTrackerRssReadTitle"},custom_urls:{scrolled:"matomoTrackerScrolledURL",read:"matomoTrackerReadURL",rss_drawer:"matomoTrackerRssDrawerURL",rss_read:"matomoTrackerRssReadURL"},custom_dimensions:{scrolled:"matomoTrackerScrolledCustomDimensions",read:"matomoTrackerReadCustomDimensions",rss_drawer:"matomoTrackerRssDrawerCustomDimensions",rss_read:"matomoTrackerRssReadCustomDimensions"}},mode_enabled:"rssIsEnable",option_page_coordinates:"optionpageCoordinates",option_page_modal:"loginInModalMode",option_page_mode:"optionPage",option_page_url:"optionPageUrl",load_editions_url:"loadEditionsUrl",paper_name:"paperName",powered_by:"poweredBy",powered_by_url:"poweredByurl",relabel_ebook_button:"ebook_button",relabel_feed_button:"feed_button",relabel_fit_page_button:"fitPageImg_button",relabel_gbook_button:"gbook_button",relabel_help_button:"help_button",relabel_offline_button:"OfflineActionLabel",relabel_option_button:"option_button",relabel_phodir_button:"phodir_button",relabel_search_button:"search_button",relabel_setting_button:"setting_button",relabel_special_sections_button:"specialSections_button",remp_account:"rempAccount",rss_index_file_time:"rssConfigFileTimestamp",site_domain:"siteDomain",special_before_index_tablet:"specialBeforeIndexTablet",special_before_index_phone:"specialBeforeIndexPhone",special_before_index:"specialBeforeIndex",startup_mode:"disableRssAtStartup",startup_mode_timestamp:"disableRssAtStartupTimestamp",udb:"udbDatabase",newsmemory_to_use:"newsmemoryToUse",newsmemory_to_use_timestamp:"newsmemoryToUseTimeStamp",paper:"paper",xpaper:"xpaper",date_format:"DATE_FORMAT",show_week:"SHOW_WEEK",init_x_paper_not_in_view:"initpageXpaperNotView",external_xpapers:"externalXPapers",download_multi_zips:"downloadMultiZips",translation_available:"translationAvailable",translation_server:"translationServer",use_native_accessibility:"useNativeAccessibility",use_car_mode:"useCarMode",show_native_options_page_fallback_url:"showNativeOptionsPageFallbackUrl",show_native_options_page:"showNativeOptionsPage",show_native_settings_screen:"showNativeSettingsScreen",enable_translation_customization:"enableTranslationCustomization",show_themes_customization:"showThemesCustomization",enable_zoom_level_customization:"enableZoomLevelCustomization",enable_article_types_customization:"enableArticleTypesCustomization",show_article_column_view_customization:"showArticleColumnViewCustomization",show_navigation_buttons_layout_customization:"showNavigationButtonsLayoutCustomization",show_xpaper_navigation_close_button:"showXPaperNavigationCloseButton",show_highlight_behavior_customization:"showHighlightBehaviorCustomization",show_open_article_extra_on_title_box:"showOpenArticleExtraOnTitleBox",show_tab_index_mode_customization:"showTabIndexModeCustomization",change_favorite_edition:"changeFavoriteEdition",favorite_edition:"favoriteEdition",enable_connectivity_options:"enableConnectivityOptions",enable_font_size_customization:"enableFontSizeCustomization",enable_graph_size_customization:"enableGraphSizeCustomization",show_types_article:"showTypesArticle",enable_article_extra:"enableArticleExtra",max_zips_to_download_per_request:"maxZipsToDownloadEachRequest",css_files_to_add:"cssFilesToAdd",email_content:"emailContent",email_subject:"emailSubject",facebook_enabled:"ipadFacebook",twitter_text:"twitterText",update_db_percentage:"updateDBPerc",enable_advanced_gestures_mode:"enableAdvancedGesturesMode",single_tap_to_zoom:"singleTapToZoom",two_fingers_tap_to_article:"twoFingersTapToArticle",lock_horizontal_pan_if_not_zoomed:"lockHorizontalPanIfNotZoomed",lock_pan_if_not_zoomed_by_degrees:"lockPanIfNotZoomedByDegrees",machine_for_hr:"machineForHR",fit_graphic_article:"fitGraphicArticle",machine:"machine",sub_path:"subPath",extra_link_color:"extraLinkColor",background_duration_article_selected:"backgroundDurationArticleSelected",background_timer_article_selected:"backgroundTimerArticleSelected",background_color_article:{selected:"backgroundColorArticleSelected",to_select:"backgroundColorArticleToSelect"},preview_highlight_enabled:"highlightClickableUrlEnabled",preview_highlight_duration_seconds:"showHighlightingBoxesForSeconds",zooming_factor:"zoomingFactor",max_zoom:"maxZoom",ta_google_analytics_event:"TAGoogleAnalyticsEvent",google_analytics_custom_dimensions:"googleAnalyticsCustomDimensions",firebase_analytics_custom_dimensions:"firebaseAnalyticsCustomDimensions",firebase_analytics_send_external_id:"firebaseAnalyticsSendExternalId",enable_article_text_selection:"enableArticleTextSelection",enable_article_byline_hrs:"enableArticleBylineHrs",on_login_error_go_to:"onLoginErrorGoTo",on_validation_error_go_to:"onValidationErrorGoTo",time_limit_check_edition:"timeLimitForRestart",time_limit_check_login:"timeLimitToCheckLoginOnRestart",time_limit_forget_login:"timeLimitNotRememberLoginOnRestart",last_pSetup:"lastPSetup",last_issue:"lastIssue",last_edition:"lastEdition",latest_edition_available_message_format:"latestEditionAvailableMessageFormat",demo_issue:"demoIssue",show_edition_thumbs:"showEditionThumbs",scroll_tiles_phone:"scrollTilesPhone",scroll_tiles:"scrollTiles",force_article_mode_fullscreen_portrait:"forceArticleModeFullscreenPortrait",force_article_mode_fullscreen_landscape:"forceArticleModeFullscreenLandscape",enable_text_to_speech:"enableTextToSpeech",enable_text_to_speech_player:"enableTextToSpeechPlayer",text_to_speech_rate:"textToSpeechRate",text_to_speech_chunk_length:"textToSpeechChunkLength",low_speed_limit:"lowSpeedLimit",disable_low_speed_limit:"disableLowSpeedLimit",base_iap_api_url:"baseInAppPurchaseAPIUrl",all_skus:"allSkus",is_nnb:"isNNB",enable_vmode_and_fit_orientation:"enableVmodeAndFitOrientation",fit_page_type:"xc_fitPage",start_in_index_mode:"startInIndexMode",epaper_start_mode:"epaperStartMode",disable_epaper_mode_selection_page:"disableEPaperModeSelectionPage",cdn_enabled:"cdnEnabled",cdn_server:"cdnServer",cdn_version:"cdnVersion",disable_rn_demo:"disableRnDemo",pdf_thumbnail_ratio:"pdfThumbnailRatio",eink_complete_hr_factor:"einkCompleteHrFactor",hr_factor:"hrFactor",pdf_factor:"pdfFactor",pdf_factor_landscape:"pdfFactorLandscape",force_pdf_in_roaming_mode:"forcePdfInRoamingMode",low_pages_to_render:"lowPagesToRender",mid_pages_to_render:"midPagesToRender",load_mid_res_on_scroll:"loadMidResOnScroll",show_landing_page_once:"showLandingPageOnce",landing_page_version:"landingPageVersion",landing_page_url:"landingPageURL",forced_shared_secret:"sharedSecret",use_ios_sandbox_receipt_validation:"useIOSSandboxReceiptValidation",use_cc:"useCC",migrate:"migrate",hybrid_version:"hybridVersion",append_first_pages:"appendFirstPages",png_quality_factor:"pngQualityFactor",generate_png_based_on_screen_dimensions:"generatePNGBasedOnScreenDimensions",consider_pixel_ratio_in_png_generation:"considerPixelRatioInPNGGeneration",png_width_limit:"pngWidthLimit",print_enabled:"ipadPrint",print_to_letter:"printToLetter",print_margin:"printMargin",generic_app_enabled:"storeIsEnable",store_url:"customStoreUrl",iap_active:"iapActive",payments:"payments",enable_multiple_subscriptions_alert:"enableMultipleSubscriptionsAlert",protect_site:"protectSite",validate_site:"validateSite",two_fingers_tap_hint_enabled:"twoFingersTapHintEnabled",two_fingers_tap_max_hints:"twoFingersTapMaxHints",download_single_pdf:"downloadSinglePdf",enable_share:"enableShare",max_shares:"maxShares",max_shares_check_type:"maxSharesCheckType",message_max_share:"messageMaxShare",merge_articles:"mergeArt",column_view:"columnView",show_art_complete:"showArtComplete",calculate_mid_ads:"calculateMidAds",pages_navigation_buttons_layout:"pagesNavigationButtonsLayout",animate_layout_footer:"animateLayoutFooter",fix_buttons_bar_to_bottom:"fixButtonsBarToBottom",dfp_reload_time:"dfpReloadTime",ads:"ads",enable_instory_ad_marker:"enableInStoryAdMarker",instory_ad_marker_text:"inStoryAdMarkerText",rn_styles:"rnStyles",disable_rn_styles:"disableRnStyles",rn_styles_file_time:"rnStylesFileTimestamp",ssl_certificate_file_time:"sslCertificateTimestamp",device_dpi:"deviceDpi",toc_style:"tocStyle",toc_style_preview:"tocStylePreview",enable_tab_index_mode:"enableTabIndexMode",bundle_update_available:"bundleUpdateAvailable",reset_app_bundle:"resetAppBundle",see_newspaper_preview:"seeNewspaperPreview",page_see_newspaper_preview:"pageSeeNewspaperPreview",hours_to_send_push_registration:"hoursToSendPushRegistration",preview_token:"previewToken",webview_allow_autoplay:"webviewAllowAutoplay",webview_android_allow_fullscreen:"webviewAndroidAllowFullscreen",webview_ios_native_player:"webviewIOSNativePlayer",webview_custom_http_headers:"webviewCustomHTTPHeaders",app_tracking_transparency:{force_message:"forceAppTrackingTransparencyMessage",disable_message:"disableAppTrackingTransparencyMessage",show_pre_message:"showPreAppTrackingTransparencyMessage",force_pre_message_on_app_update:"forcePreAppTrackingTransparencyMessageOnAppUpdate"},iubenda:{enabled:"iubendaEnabled",site_id:"iubendaSiteId",cookie_policy_id:"iubendaCookiePolicyId",lang:"iubendaLang",reset_consent_date:"iubendaResetConsentDate",force_consent_popup:"iubendaForceConsentPopup",ads_require_consent:"adsRequireConsent",google_ads_present:"googleAdsPresent",ref_privacy_laws:"referencePrivacyLaws"},osano:{enabled:"osanoEnabled",customer_id:"osanoCustomerId",config_id:"osanoConfigurationId",site_domain:"osanoSiteDomain",reset_consent_date:"osanoResetConsentDate"},show_extras_in_article_graphic_mode:"showExtrasInArticleGraphicMode",show_extras_to_logged_users_only:"showExtrasToLoggedUsersOnly",morse_tauid:"morseTAUID",add_watermark:"addWatermarkArticlePag",watermark_text:"watermarkText",disable_screen_idle_timer_delay:"disableScreenIdleTimerDelay",keep_article_position_on_rotation:"keepArticlePositionOnRotation",enable_article_image_reposition:"enableArticleImageReposition",refreshes_tauid:"refreshesTAUID",startup_params:"startupParams",enable_session_collection:"enableSessionCollection",enable_session_auto_upload:"enableSessionAutoUpload",session_upload_base_url:"sessionUploadBaseURL",checksum:"checksum",user_ip:"userIP",is_allowed_ip:"isAllowedIP",push_tags:"pushTags",disable_reader_app_modal:"disableReaderAppModal",reader_app_learn_more_link:"readerAppLearnMoreLink",ssl_domains:"sslDomains",use_asymmetric_card_list:"useAsymmetricCardList",prevent_screenshots:"preventScreenshots",enable_phone_article_layout_on_tablet_in_landscape:"enablePhoneArticleLayoutOnTabletInLandscape",enable_desktop_article_layout_on_ipad_pro_in_landscape:"enableDesktopArticleLayoutOnIPadProInLandscape"}}},755,[5,80,7,8,462]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.WEBVIEW_BASE_URL=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),i=r(d[0])(r(d[3])),o=["load","start","ul"];e.WEBVIEW_BASE_URL="http://localhost/";var c=(function(){function c(){(0,t.default)(this,c)}return(0,n.default)(c,null,[{key:"isExternalUrl",value:function(t){var n=r(d[4]).StringUtils.segmentUrl(t),i=n.protocol,o=n.getParams,c=n.anchorParams;return!(!i||!i.startsWith("xhttp"))||(!(!o||!r(d[4]).JSUtils.hasProperty(o,"xhttp")&&!r(d[4]).JSUtils.hasProperty(o,"xhttps"))||!(!c||!r(d[4]).JSUtils.hasProperty(c,"xhttp")&&!r(d[4]).JSUtils.hasProperty(c,"xhttps")))}},{key:"parseUniversalLink",value:function(t){var n;if(t){if(-1===t.indexOf("?"))for(var i=0;i")?t.replace("",""+n):t.replace("",""+n+"")}},{key:"appendToHead",value:function(t,n){return-1!==t.indexOf("")?t.replace("",n+""):t.replace("",""+n+"")}},{key:"addViewportStyles",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=t;if(i){var o="\n ";n&&(o+="\n "),o+="\n ",i=c.appendToHead(t,o)}return i}},{key:"getZoom",value:function(t,n,i,o){var c=i/(t>0?t:1),l=o/(n>0?n:1),s=c>l?l:c;return Math.round(10*s)/10}},{key:"getJSToZoomContent",value:function(t,n,i){return"\n document.body.style.position = 'absolute';\n document.body.style.left = '"+t+"px';\n document.body.style.top = '"+n+"px';\n document.body.style.transform = 'scale("+i+")'"}},{key:"getJSToCenterContent",value:function(t){return"\n document.body.style.margin = 'auto';\n document.body.style.display = 'table';\n document.body.style.background = '"+t+"';"}},{key:"setupHtmlForWebView",value:function(t){var n=t;return n&&(n=this.addTags(n,"body"),n=this.addTags(n,"html")),n}},{key:"addTags",value:function(t,n){var i=t;return i.includes("<"+n)||(i="<"+n+">".concat(i)+" "),i.includes("")||(i=i.concat("")),i}},{key:"addViewport",value:function(){return"\n var meta = document.createElement('meta');\n meta.name = 'viewport';\n meta.content = 'width=device-width, initial-scale=1';\n document.getElementsByTagName('head')[0].appendChild(meta);"}},{key:"replaceHttpWithHttps",value:function(t){var n,i=/http:\/\/([a-zA-Z0-9\.]+)\.newsmemory\.com/;if(t)do{if(n=i.exec(t)){var o=n[0],c=n[1],l=c.replace(/\./g,"-"),s=o.replace("http","https").replace(c,l);t=t.replace(o,s)}}while(null!==n);return t}},{key:"getRonDinoViewPort",value:function(t){return"\n var myCustomViewport = 'width="+t+", initial-scale=1.0, maximum-scale=1.0, user-scalable=no';\n var viewportElement = document.querySelector('meta[name=viewport]');\n if (viewportElement) {\n viewportElement.content = myCustomViewport;\n } else {\n viewportElement = document.createElement('meta');\n viewportElement.name = 'viewport';\n viewportElement.content = myCustomViewport;\n document.getElementsByTagName('head')[0].appendChild(viewportElement);\n };"}},{key:"getImagesInsidePage",value:function(){return"\n (function getImagesInsidePage() {\n const images = document.getElementsByTagName('img');\n const sources = [];\n for(let i=0; i < images.length; i++){\n sources.push(images[i].src);\n }\n window.ReactNativeWebView.postMessage(JSON.stringify({ content: sources, type: 'GET_RESOURCES' }));\n })();"}},{key:"replaceResourcesInPage",value:function(t){return"\n (function getImagesInsidePage(newSources) {\n const parsed = JSON.parse(newSources);\n const images = document.getElementsByTagName('img');\n for(let i=0; i < images.length; i++){\n if(parsed[images[i].src]){\n images[i].src = parsed[images[i].src];\n }\n }\n })('"+JSON.stringify(t)+"')"}},{key:"addSafeAreaToWebView",value:function(){var t=i.default.getSafeAreaInsets();return"(function() { \n document.body.style.marginTop='"+t.top+"px'; \n document.body.style.marginBottom='"+t.bottom+"px'; \n })();"}},{key:"replaceUrlPlaceHolder",value:function(t){return t.includes("?")||(t+="?"),t.includes("##PAYWALL_SUBSCRIPTION_TYPE#")?t=t.replace("##PAYWALL_SUBSCRIPTION_TYPE#",""):t+="&subType=",(t=t.includes("##MACHINEID#")?t.replace("##MACHINEID#",g.machineId):t+"&MACHINEID="+g.machineId).includes("##WORDPRESS_TOKEN#")&&(t=t.replace("##WORDPRESS_TOKEN#",c.secretTokenForWordpress())),t}},{key:"secretTokenForWordpress",value:function(){var t=(new Date).getTime();return r(d[4]).StringUtils.getMd5(r(d[4]).StringUtils.getMd5("TecnaviaSecret")+g.machineId)+"_"+r(d[4]).StringUtils.getHexOfAsciiOfLong(t/1e3)}}]),c})();e.default=c},756,[5,7,8,458,462]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=(function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";(0,e.default)(this,n);var u=t.split(",");this.type=u[0],this.price=u[1],this.startDate=u[2],this.periodTime=u[3],this.periodValue=u[4],this.recurringPattern=u[5],this.description=u[6],this.productId=u[7]}return(0,t.default)(n,[{key:"getType",value:function(){return this.type}},{key:"getPrice",value:function(){return this.price}},{key:"getPriceNumber",value:function(){return parseFloat(this.price)||-1}},{key:"getStartDate",value:function(){return this.startDate}},{key:"getPeriodTime",value:function(){return this.periodTime}},{key:"isWeekly",value:function(){return"W"===this.periodTime}},{key:"isMonthly",value:function(){return"M"===this.periodTime}},{key:"isYearly",value:function(){return"Y"===this.periodTime}},{key:"getPeriodValue",value:function(){try{return parseInt(this.periodValue,10)||-1}catch(e){return-1}}},{key:"getRecurringPattern",value:function(){return this.recurringPattern}},{key:"getDescription",value:function(){return this.description}},{key:"getProductId",value:function(){return this.productId}},{key:"isNotConsumable",value:function(){return"NC"===this.getType()}},{key:"isConsumable",value:function(){return"A"===this.getType()}},{key:"isNonRenewingSubscription",value:function(){return"P"===this.getType()}},{key:"isRecurringSubscription",value:function(){return"R"===this.getType()}},{key:"isSubscription",value:function(){return this.isNonRenewingSubscription()||this.isRecurringSubscription()}},{key:"checkProductId",value:function(e){return e===this.productId||!(!this.isNotConsumable()||!e.startsWith(this.productId))}}]),n})();_e.default=n},757,[5,7,8]); -__d(function(g,r,_i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.LoginStatus=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),s=(function(){function s(){(0,t.default)(this,s)}return(0,n.default)(s,[{key:"init",value:function(t){var n,s,i;return e.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:this.udb=t,n=Object.values(u.default.SP.keys),s=0;case 3:if(!(s-1}}]),s})();_e.LoginStatus=s},758,[5,80,7,8,759,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=(function(){function l(){(0,n.default)(this,l)}return(0,u.default)(l,null,[{key:"getItem",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.getItem(l.SP.name,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"setItem",value:function(n,u){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.setItem(l.SP.name,n,u));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"removeItem",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.clear(l.SP.name,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"updateItem",value:function(n,u){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!u){t.next=2;break}return t.abrupt("return",l.setItem(n,u));case 2:return t.abrupt("return",l.removeItem(n));case 3:case"end":return t.stop()}},null,null,null,Promise)}},{key:"clearAll",value:function(){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.clearAll(l.SP.name));case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),l})();e.default=l,l.SP={name:"login",keys:{TAUID:"TAUID",TOKEN:"TOKEN",universal_link_token:"universalLinkToken",one_time_token:"oneTimeToken",iap_secret:"iapSecret",has_access:"hasAccess",receipt:"receipt",receipt_date:"receipt_date",challenge:"challenge",username:"username",password:"password",extid:"extid",extra_user_info:"extraUserInfo",last_login_time:"last_login_time",ad_free:"adFree",allowed_ip_user:"allowedIPUser"}}},759,[5,80,7,8,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.OptionspageConfig=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=(function(){function o(n){var s=n.mode,u=n.baseURL,l=n.coordinatesString,h=n.modal;(0,t.default)(this,o),this.mode=s,this.baseURL=u,this.modal=r(d[4]).PlatformUtils.isTablet()&&h,this.coordinatesString=l}return(0,n.default)(o,[{key:"isDisabled",value:function(){return 0===this.mode}},{key:"alwaysOpenAtStartup",value:function(){return 1===this.mode}},{key:"getBaseURL",value:function(){return this.baseURL}},{key:"computeCoordinates",value:function(){var t,n,o,u,l,h,f,p=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s.default.currentOrientation,c=s.default.getSafeArea();if(c)l=c.width,h=c.height,f=s.default.isPortrait(s.default.currentOrientation);else{var b=s.default.getScreenDimensions(v);l=b.width,h=b.height,f=b.isPortrait}var S=l,y=h,O=s.default.isPortrait(v);O!==f&&(S=h,y=l),this.modal?(u=O?S:y,o=O?S:y,n=O?0:Math.abs(S-y)/2,t=O?Math.abs(S-y)/2:0):(u=y,o=S,n=0,t=0);var k=p.split("&");if(8===k.length){var x=k[0],M=k[1],z=k[2],C=k[3],P=k[4],U=k[5],X=k[6],Y=k[7];O?(u=this.parseSize(M,y),o=this.parseSize(C,S),t=this.parseXY(Y,u,y),n=this.parseXY(U,o,S)):(u=this.parseSize(x,y),o=this.parseSize(z,S),t=this.parseXY(X,u,y),n=this.parseXY(P,o,S))}return o>l?(n=0,o=l):n+o>l&&(n=Math.max(0,(l-o)/2)),u>h?(t=0,u=h):t+u>h&&(t=Math.max(0,(h-u)/2)),{left:n,top:t,width:o,height:u}}},{key:"parseSize",value:function(t,n){var s,o=t.indexOf("%");if(o>0)s=parseInt(t.substring(0,o),10)/100*n;else{var u=t.indexOf("px");u>0&&(t=t.substring(0,u)),s=parseInt(t,10)}return s}},{key:"parseXY",value:function(t,n,s){var o,u=t.indexOf("px");if(u>0)t=t.substring(0,u),o=parseInt(t,10);else{if("-1"===t)return s-n;if("0"===t)return(s-n)/2;if("1"===t)return 0;(o=parseInt(t,10))<0&&(o=s-n+o)}return o}},{key:"getCoordinates",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s.default.currentOrientation;return this.computeCoordinates(this.coordinatesString,t)}},{key:"isModal",value:function(){return this.modal}}]),o})();e.OptionspageConfig=o},760,[5,7,8,458,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.FeedbackConfig=void 0;var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),o=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),h=r(d[0])(r(d[8]));function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(f=function(){return!!t})()}var p=(function(p){(0,l.default)(x,p);var _,w,v=(_=x,w=f(),function(){var t,s=(0,c.default)(_);if(w){var n=(0,c.default)(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return(0,o.default)(this,t)});function x(){return(0,s.default)(this,x),v.apply(this,arguments)}return(0,n.default)(x,[{key:"getStorageKeys",value:function(){return h.default.SP.keys.feedback}},{key:"init",value:function(){var s,n,l,o,h,f,p,_,w,v,y,k,b,D,V=arguments;return t.default.async(function(I){for(;;)switch(I.prev=I.next){case 0:return s=V.length>0&&void 0!==V[0]?V[0]:{},I.next=3,t.default.awrap((0,u.default)((0,c.default)(x.prototype),"init",this).call(this,s));case 3:return n=this.getStorageKeys(),l=n.show_dont_show_again,o=n.lower_active_date_range,h=n.upper_active_date_range,f=n.active_days_to_show,p=n.total_days_to_show,_=n.request_title,w=n.request_review_title,v=n.ask,y=n.email,k=n.reset_timestamp,b=n.cool_down_days,D=n.cool_down_days_dont_show_again,I.next=6,t.default.awrap(this.getValue(l));case 6:return I.t0=I.sent,this.showDontShowAgain="1"===I.t0,I.t2=parseInt,I.next=11,t.default.awrap(this.getValue(o));case 11:if(I.t3=I.sent,I.t1=(0,I.t2)(I.t3,10),I.t1){I.next=15;break}I.t1="1";case 15:return I.t4=I.t1,I.t5=r(d[9]).DateUtils.DAY_IN_MILLS,this.lowerActiveDateRange=I.t4*I.t5,I.t7=parseInt,I.next=21,t.default.awrap(this.getValue(h));case 21:if(I.t8=I.sent,I.t6=(0,I.t7)(I.t8,10),I.t6){I.next=25;break}I.t6="3";case 25:return I.t9=I.t6,I.t10=r(d[9]).DateUtils.DAY_IN_MILLS,this.upperActiveDateRange=I.t9*I.t10,I.t11=parseInt,I.next=31,t.default.awrap(this.getValue(f));case 31:if(I.t12=I.sent,I.t12){I.next=34;break}I.t12="6";case 34:return I.t13=I.t12,this.activeDaysToShow=(0,I.t11)(I.t13,10),I.t14=parseInt,I.next=39,t.default.awrap(this.getValue(p));case 39:if(I.t15=I.sent,I.t15){I.next=42;break}I.t15="15";case 42:return I.t16=I.t15,this.totalDaysToShow=(0,I.t14)(I.t16,10),I.next=46,t.default.awrap(this.getValue(_));case 46:return this.requestFeedbackTitle=I.sent,I.next=49,t.default.awrap(this.getValue(w));case 49:return this.requestReviewFeedbackTitle=I.sent,I.next=52,t.default.awrap(this.getValue(v));case 52:return this.askForFeedback=I.sent,I.next=55,t.default.awrap(this.getValue(y));case 55:return this.emailForFeedback=I.sent,I.next=58,t.default.awrap(this.getValue(k));case 58:return this.resetTimestamp=I.sent,this.resetTimestamp&&this.resetTimestamp.length<14&&(this.resetTimestamp=this.resetTimestamp.padEnd(14,"0")),I.t17=parseInt,I.next=63,t.default.awrap(this.getValue(b));case 63:if(I.t18=I.sent,I.t18){I.next=66;break}I.t18="60";case 66:return I.t19=I.t18,this.coolDownDays=(0,I.t17)(I.t19,10),I.t20=parseInt,I.next=71,t.default.awrap(this.getValue(D));case 71:if(I.t21=I.sent,I.t21){I.next=74;break}I.t21="90";case 74:return I.t22=I.t21,this.coolDownDaysDontShowAgain=(0,I.t20)(I.t22,10),I.abrupt("return",!0);case 77:case"end":return I.stop()}},null,this,null,Promise)}}]),x})(r(d[10]).PaperSetupBaseConfig);e.FeedbackConfig=p},761,[5,80,7,8,90,12,14,16,755,462,762]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.PaperSetupBaseConfig=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=(function(){function l(t,u){(0,n.default)(this,l),this.pSetup=t,this.originalMachine=u,this.storageKey=t+"-"+u}return(0,u.default)(l,[{key:"getStorageKeys",value:function(){return{}}},{key:"getJSONKeys",value:function(){var t=r(d[5]).JSUtils.flattenObject(this.getStorageKeys());return Object.values(t)}},{key:"filterJSON",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return n&&n.length>0?Object.keys(t).reduce(function(u,s){return n.includes(s)&&(u[s]=t[s]),u},{}):t}},{key:"init",value:function(){var n,u=arguments;return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return n=u.length>0&&void 0!==u[0]?u[0]:{},this.json=this.filterJSON(n,this.getJSONKeys()),t.abrupt("return",!0);case 3:case"end":return t.stop()}},null,this,null,Promise)}},{key:"setValue",value:function(n,u){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return this.json[n]=u,t.abrupt("return",s.default.setItem(this.storageKey,n,u));case 2:case"end":return t.stop()}},null,this,null,Promise)}},{key:"getValue",value:function(n){var u;return t.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:if(!r(d[5]).JSUtils.hasProperty(this.json,n)){l.next=7;break}if(null!==(u=this.json[n])&&void 0!==u){l.next=6;break}return l.next=5,t.default.awrap(s.default.getItem(this.storageKey,n));case 5:u=l.sent;case 6:return l.abrupt("return",u);case 7:return l.abrupt("return","");case 8:case"end":return l.stop()}},null,this,null,Promise)}}]),l})();e.PaperSetupBaseConfig=l},762,[5,80,7,8,755,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.AdobeAnalyticsConfig=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),o=r(d[0])(r(d[7])),f=r(d[0])(r(d[8]));function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}var h=(function(h){(0,l.default)(w,h);var x,b,k=(x=w,b=p(),function(){var t,n=(0,o.default)(x);if(b){var s=(0,o.default)(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return(0,c.default)(this,t)});function w(){return(0,n.default)(this,w),k.apply(this,arguments)}return(0,s.default)(w,[{key:"getStorageKeys",value:function(){return f.default.SP.keys.adobe_analytics}},{key:"init",value:function(){var n,s,l,c,f,p,h,x,b,k,_,y,V=arguments;return t.default.async(function(T){for(;;)switch(T.prev=T.next){case 0:return n=V.length>0&&void 0!==V[0]?V[0]:{},T.next=3,t.default.awrap((0,u.default)((0,o.default)(w.prototype),"init",this).call(this,n));case 3:return s=this.getStorageKeys(),l=s.props_list,c=s.send_only_edition_load,f=s.first_page_section_prefix,p=s.edition_type,h=s.device_type,x=s.user_types,b=s.actions,k=s.states,_=s.media,y=s.content_types,T.next=6,t.default.awrap(this.getValue(l));case 6:if(T.t0=T.sent,T.t0){T.next=9;break}T.t0="";case 9:return this.propsList=T.t0,T.next=12,t.default.awrap(this.getValue(c));case 12:if(T.t1=T.sent,T.t1){T.next=15;break}T.t1="0";case 15:return T.t2=T.t1,this.sendOnlyEditionLoad="1"===T.t2,T.next=19,t.default.awrap(this.getValue(x.unknown));case 19:if(T.t3=T.sent,T.t3){T.next=22;break}T.t3="";case 22:return this.userTypeUnknown=T.t3,T.next=25,t.default.awrap(this.getValue(x.subscriber));case 25:if(T.t4=T.sent,T.t4){T.next=28;break}T.t4="";case 28:return this.userTypeSubscriber=T.t4,T.next=31,t.default.awrap(this.getValue(b.edition_load));case 31:if(T.t5=T.sent,T.t5){T.next=34;break}T.t5="";case 34:return this.editionLoadActionName=T.t5,T.next=37,t.default.awrap(this.getValue(b.scroll_zoom));case 37:if(T.t6=T.sent,T.t6){T.next=40;break}T.t6="";case 40:return this.scrollZoomActionName=T.t6,T.next=43,t.default.awrap(this.getValue(b.double_tap_to_zoom));case 43:if(T.t7=T.sent,T.t7){T.next=46;break}T.t7="";case 46:return this.doubleTapActionName=T.t7,T.next=49,t.default.awrap(this.getValue(b.pinch_to_zoom));case 49:if(T.t8=T.sent,T.t8){T.next=52;break}T.t8="";case 52:return this.pinchOutActionName=T.t8,T.next=55,t.default.awrap(this.getValue(b.tts));case 55:if(T.t9=T.sent,T.t9){T.next=58;break}T.t9="";case 58:return this.textToSpeechActionName=T.t9,T.next=61,t.default.awrap(this.getValue(b.skip_to_end));case 61:if(T.t10=T.sent,T.t10){T.next=64;break}T.t10="";case 64:return this.skipToEndActionName=T.t10,T.next=67,t.default.awrap(this.getValue(b.toggle_to_print));case 67:if(T.t11=T.sent,T.t11){T.next=70;break}T.t11="";case 70:return this.toggleToPrintActionName=T.t11,T.next=73,t.default.awrap(this.getValue(b.toggle_to_digital));case 73:if(T.t12=T.sent,T.t12){T.next=76;break}T.t12="";case 76:return this.toggleToDigitalActionName=T.t12,T.next=79,t.default.awrap(this.getValue(b.share));case 79:if(T.t13=T.sent,T.t13){T.next=82;break}T.t13="";case 82:return this.shareActionName=T.t13,T.next=85,t.default.awrap(this.getValue(b.link_click));case 85:if(T.t14=T.sent,T.t14){T.next=88;break}T.t14="";case 88:return this.linkClickActionName=T.t14,T.next=91,t.default.awrap(this.getValue(k.scrolled));case 91:if(T.t15=T.sent,T.t15){T.next=94;break}T.t15="";case 94:return this.scrolledStateName=T.t15,T.next=97,t.default.awrap(this.getValue(k.read));case 97:if(T.t16=T.sent,T.t16){T.next=100;break}T.t16="";case 100:return this.readStateName=T.t16,T.next=103,t.default.awrap(this.getValue(k.zoomed));case 103:if(T.t17=T.sent,T.t17){T.next=106;break}T.t17="";case 106:return this.zoomedStateName=T.t17,T.next=109,t.default.awrap(this.getValue(k.index));case 109:if(T.t18=T.sent,T.t18){T.next=112;break}T.t18="";case 112:return this.indexStateName=T.t18,T.next=115,t.default.awrap(this.getValue(k.optionspage));case 115:if(T.t19=T.sent,T.t19){T.next=118;break}T.t19="";case 118:return this.optionspageStateName=T.t19,T.next=121,t.default.awrap(this.getValue(_.print));case 121:if(T.t20=T.sent,T.t20){T.next=124;break}T.t20="print";case 124:return this.printMedium=T.t20,T.next=127,t.default.awrap(this.getValue(_.digital));case 127:if(T.t21=T.sent,T.t21){T.next=130;break}T.t21="digital";case 130:return this.digitalMedium=T.t21,T.next=133,t.default.awrap(this.getValue(_.zoomed_suffix));case 133:if(T.t22=T.sent,T.t22){T.next=136;break}T.t22=" zoom";case 136:return this.zoomedMediumSuffix=T.t22,T.next=139,t.default.awrap(this.getValue(f));case 139:if(T.t23=T.sent,T.t23){T.next=142;break}T.t23="";case 142:return this.firstPageSectionPrefix=T.t23,T.next=145,t.default.awrap(this.getValue(y.page));case 145:if(T.t24=T.sent,T.t24){T.next=148;break}T.t24="";case 148:return this.pageContentType=T.t24,T.next=151,t.default.awrap(this.getValue(y.first_page));case 151:if(T.t25=T.sent,T.t25){T.next=154;break}T.t25=this.pageContentType;case 154:return this.firstPageContentType=T.t25,T.next=157,t.default.awrap(this.getValue(y.index));case 157:if(T.t26=T.sent,T.t26){T.next=160;break}T.t26="";case 160:return this.indexContentType=T.t26,T.next=163,t.default.awrap(this.getValue(y.article));case 163:if(T.t27=T.sent,T.t27){T.next=166;break}T.t27="";case 166:return this.articleContentType=T.t27,T.next=169,t.default.awrap(this.getValue(y.optionspage));case 169:if(T.t28=T.sent,T.t28){T.next=172;break}T.t28="";case 172:return this.optionspageContentType=T.t28,T.next=175,t.default.awrap(this.getValue(p));case 175:if(T.t29=T.sent,T.t29){T.next=178;break}T.t29="Newspaper";case 178:return this.editionType=T.t29,T.next=181,t.default.awrap(this.getValue(h));case 181:if(T.t30=T.sent,T.t30){T.next=184;break}T.t30=r(d[9]).PlatformUtils.isTablet()?"Tablet":"Mobile Phone";case 184:return this.deviceType=T.t30,T.abrupt("return",!0);case 186:case"end":return T.stop()}},null,this,null,Promise)}}]),w})(r(d[10]).PaperSetupBaseConfig);e.AdobeAnalyticsConfig=h},763,[5,80,7,8,90,12,14,16,755,462,762]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.MatomoConfig=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=r(d[0])(r(d[8]));function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(h=function(){return!!t})()}var p=(function(p){(0,o.default)(_,p);var v,x,y=(v=_,x=h(),function(){var t,n=(0,c.default)(v);if(x){var s=(0,c.default)(this).constructor;t=Reflect.construct(n,arguments,s)}else t=n.apply(this,arguments);return(0,l.default)(this,t)});function _(){return(0,n.default)(this,_),y.apply(this,arguments)}return(0,s.default)(_,[{key:"getStorageKeys",value:function(){return f.default.SP.keys.matomo}},{key:"init",value:function(){var n,s,o,l,f,h,p,v,x,y=arguments;return t.default.async(function(b){for(;;)switch(b.prev=b.next){case 0:return n=y.length>0&&void 0!==y[0]?y[0]:{},s=y.length>1&&void 0!==y[1]?y[1]:"",b.next=4,t.default.awrap((0,u.default)((0,c.default)(_.prototype),"init",this).call(this,n));case 4:return o=this.getStorageKeys(),l=o.site_id,f=o.rss_site_id,h=o.base_url,p=o.visit_custom_dimensions,v=o.custom_dimensions,x=o.dispatch_interval,b.next=7,t.default.awrap(this.getValue(l));case 7:if(b.t0=b.sent,b.t0){b.next=10;break}b.t0="";case 10:return this.ePaperSiteId=b.t0,b.next=13,t.default.awrap(this.getValue(f));case 13:if(b.t1=b.sent,b.t1){b.next=16;break}b.t1="";case 16:return this.rssSiteId=b.t1,b.next=19,t.default.awrap(this.getValue(h));case 19:if(b.t2=b.sent,b.t2){b.next=22;break}b.t2="";case 22:return this.baseURL=b.t2,b.next=25,t.default.awrap(this.getValue(p));case 25:if(b.t3=b.sent,b.t3){b.next=28;break}b.t3="";case 28:return this.visitCustomDimensions=b.t3,b.next=31,t.default.awrap(this.getValue(v));case 31:if(b.t4=b.sent,b.t4){b.next=34;break}b.t4=s;case 34:return this.customDimensions=b.t4,b.t5=parseFloat,b.next=38,t.default.awrap(this.getValue(x));case 38:if(b.t6=b.sent,b.t6){b.next=41;break}b.t6="30.0";case 41:return b.t7=b.t6,this.dispatchInterval=(0,b.t5)(b.t7),b.abrupt("return",!0);case 44:case"end":return b.stop()}},null,this,null,Promise)}}]),_})(r(d[9]).PaperSetupBaseConfig);e.MatomoConfig=p},764,[5,80,7,8,90,12,14,16,755,762]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.MatomoTrackerConfig=void 0;var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),o=r(d[0])(r(d[8]));function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}var h=(function(h){(0,u.default)(k,h);var x,_,w=(x=k,_=p(),function(){var t,s=(0,c.default)(x);if(_){var n=(0,c.default)(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return(0,l.default)(this,t)});function k(){return(0,f.default)(this,k),w.apply(this,arguments)}return(0,s.default)(k,[{key:"getStorageKeys",value:function(){return o.default.SP.keys.matomo_tracker}},{key:"init",value:function(){var s,u,l,f,o,p,h,x,_,w,b=arguments;return t.default.async(function(V){for(;;)switch(V.prev=V.next){case 0:return s=b.length>0&&void 0!==b[0]?b[0]:{},V.next=3,t.default.awrap((0,n.default)((0,c.default)(k.prototype),"init",this).call(this,s));case 3:return u=this.getStorageKeys(),l=u.site_id,f=u.rss_site_id,o=u.base_url,p=u.action_base_url,h=u.edition_remapping,x=u.titles,_=u.custom_urls,w=u.custom_dimensions,V.next=6,t.default.awrap(this.getValue(l));case 6:if(V.t0=V.sent,V.t0){V.next=9;break}V.t0="";case 9:return this.ePaperSiteId=V.t0,V.next=12,t.default.awrap(this.getValue(f));case 12:if(V.t1=V.sent,V.t1){V.next=15;break}V.t1="";case 15:return this.rssSiteId=V.t1,V.next=18,t.default.awrap(this.getValue(o));case 18:if(V.t2=V.sent,V.t2){V.next=21;break}V.t2="";case 21:return this.baseURL=V.t2,V.next=24,t.default.awrap(this.getValue(p));case 24:if(V.t3=V.sent,V.t3){V.next=27;break}V.t3="";case 27:return this.actionBaseURL=V.t3,V.t4=r(d[9]).StringUtils,V.next=31,t.default.awrap(this.getValue(h));case 31:if(V.t5=V.sent,V.t5){V.next=34;break}V.t5="";case 34:return V.t6=V.t5,this.editionRemapping=V.t4.parseQuerystring.call(V.t4,V.t6),V.next=38,t.default.awrap(this.getValue(x.scrolled));case 38:if(V.t7=V.sent,V.t7){V.next=41;break}V.t7="";case 41:return V.t8=V.t7,V.next=44,t.default.awrap(this.getValue(x.read));case 44:if(V.t9=V.sent,V.t9){V.next=47;break}V.t9="";case 47:return V.t10=V.t9,V.next=50,t.default.awrap(this.getValue(x.rss_drawer));case 50:if(V.t11=V.sent,V.t11){V.next=53;break}V.t11="";case 53:return V.t12=V.t11,V.next=56,t.default.awrap(this.getValue(x.rss_read));case 56:if(V.t13=V.sent,V.t13){V.next=59;break}V.t13="";case 59:return V.t14=V.t13,this.titles={scrolled:V.t8,read:V.t10,rss_drawer:V.t12,rss_read:V.t14},V.next=63,t.default.awrap(this.getValue(_.scrolled));case 63:if(V.t15=V.sent,V.t15){V.next=66;break}V.t15="";case 66:return V.t16=V.t15,V.next=69,t.default.awrap(this.getValue(_.read));case 69:if(V.t17=V.sent,V.t17){V.next=72;break}V.t17="";case 72:return V.t18=V.t17,V.next=75,t.default.awrap(this.getValue(_.rss_drawer));case 75:if(V.t19=V.sent,V.t19){V.next=78;break}V.t19="";case 78:return V.t20=V.t19,V.next=81,t.default.awrap(this.getValue(_.rss_read));case 81:if(V.t21=V.sent,V.t21){V.next=84;break}V.t21="";case 84:return V.t22=V.t21,this.customURLs={scrolled:V.t16,read:V.t18,rss_drawer:V.t20,rss_read:V.t22},V.next=88,t.default.awrap(this.getValue(w.scrolled));case 88:if(V.t23=V.sent,V.t23){V.next=91;break}V.t23="";case 91:return V.t24=V.t23,V.next=94,t.default.awrap(this.getValue(w.read));case 94:if(V.t25=V.sent,V.t25){V.next=97;break}V.t25="";case 97:return V.t26=V.t25,V.next=100,t.default.awrap(this.getValue(w.rss_drawer));case 100:if(V.t27=V.sent,V.t27){V.next=103;break}V.t27="";case 103:return V.t28=V.t27,V.next=106,t.default.awrap(this.getValue(w.rss_read));case 106:if(V.t29=V.sent,V.t29){V.next=109;break}V.t29="";case 109:return V.t30=V.t29,this.customDimensions={scrolled:V.t24,read:V.t26,rss_drawer:V.t28,rss_read:V.t30},V.abrupt("return",!0);case 112:case"end":return V.stop()}},null,this,null,Promise)}}]),k})(r(d[10]).PaperSetupBaseConfig);e.MatomoTrackerConfig=h},765,[5,80,8,90,12,14,16,7,755,462,762]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.BlueConicConfig=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),s=r(d[0])(r(d[6])),f=r(d[0])(r(d[7])),c=r(d[0])(r(d[8]));function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(p=function(){return!!t})()}var h=(function(h){(0,l.default)(_,h);var v,y,P=(v=_,y=p(),function(){var t,n=(0,f.default)(v);if(y){var u=(0,f.default)(this).constructor;t=Reflect.construct(n,arguments,u)}else t=n.apply(this,arguments);return(0,s.default)(this,t)});function _(){return(0,n.default)(this,_),P.apply(this,arguments)}return(0,u.default)(_,[{key:"getStorageKeys",value:function(){return c.default.SP.keys.blueconic}},{key:"init",value:function(){var n,u,l,s,c=arguments;return t.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return n=c.length>0&&void 0!==c[0]?c[0]:{},p.next=3,t.default.awrap((0,o.default)((0,f.default)(_.prototype),"init",this).call(this,n));case 3:return u=this.getStorageKeys(),l=u.user_profile_properties,s=u.view_profile_properties,p.next=6,t.default.awrap(this.getValue(l));case 6:if(p.t0=p.sent,p.t0){p.next=9;break}p.t0="";case 9:return this.userProfileProperties=p.t0,p.next=12,t.default.awrap(this.getValue(s));case 12:if(p.t1=p.sent,p.t1){p.next=15;break}p.t1="";case 15:return this.viewProfileProperties=p.t1,p.abrupt("return",!0);case 17:case"end":return p.stop()}},null,this,null,Promise)}}]),_})(r(d[9]).PaperSetupBaseConfig);e.BlueConicConfig=h},766,[5,80,7,8,90,12,14,16,755,762]); -__d(function(g,r,_i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.ChartbeatConfig=void 0;var t=r(d[0])(r(d[1])),s=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),i=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),p=r(d[0])(r(d[8]));function o(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(o=function(){return!!t})()}var f=(function(f){(0,i.default)(y,f);var h,_,x=(h=y,_=o(),function(){var t,s=(0,c.default)(h);if(_){var n=(0,c.default)(this).constructor;t=Reflect.construct(s,arguments,n)}else t=s.apply(this,arguments);return(0,l.default)(this,t)});function y(){var n;(0,s.default)(this,y);for(var u=arguments.length,i=new Array(u),l=0;l0&&void 0!==C[0]?C[0]:{},K.next=3,t.default.awrap((0,u.default)((0,c.default)(y.prototype),"init",this).call(this,s));case 3:return n=this.getStorageKeys(),i=n.account_id,l=n.domain,p=n.rss_enabled,o=n.epaper_enabled,f=n.author_rss_properties,h=n.author_epaper_properties,_=n.section_rss_properties,x=n.section_epaper_properties,v=n.rss_title_keys,w=n.epaper_title_keys,b=n.rss_screen_key,k=n.epaper_screen_key,P=n.rss_custom_data,V=n.epaper_custom_data,K.next=6,t.default.awrap(this.getValue(i));case 6:if(K.t0=K.sent,K.t0){K.next=9;break}K.t0="";case 9:return this.accountId=K.t0,K.next=12,t.default.awrap(this.getValue(l));case 12:if(K.t1=K.sent,K.t1){K.next=15;break}K.t1="";case 15:return this.domain=K.t1,K.next=18,t.default.awrap(this.getValue(p));case 18:if(K.t3=K.sent,K.t2="1"===K.t3,K.t2){K.next=22;break}K.t2=!1;case 22:return this.rssEnabled=K.t2,K.next=25,t.default.awrap(this.getValue(o));case 25:if(K.t5=K.sent,K.t4="1"===K.t5,K.t4){K.next=29;break}K.t4=!1;case 29:return this.epaperEnabled=K.t4,K.next=32,t.default.awrap(this._split(_));case 32:return this.sectionRssProperties=K.sent,K.next=35,t.default.awrap(this._split(x));case 35:return this.sectionEpaperProperties=K.sent,K.next=38,t.default.awrap(this._split(f));case 38:return this.authorRssProperties=K.sent,K.next=41,t.default.awrap(this._split(h));case 41:return this.authorEpaperProperties=K.sent,K.next=44,t.default.awrap(this._split(v));case 44:return this.rssTitleKeys=K.sent,K.next=47,t.default.awrap(this._split(w));case 47:return this.epaperTitleKeys=K.sent,K.next=50,t.default.awrap(this.getValue(b));case 50:return this.rssScreenKey=K.sent,K.next=53,t.default.awrap(this.getValue(k));case 53:return this.epaperScreenKey=K.sent,K.next=56,t.default.awrap(this.getValue(P));case 56:return this.rssCustomData=K.sent,K.next=59,t.default.awrap(this.getValue(V));case 59:return this.epaperCustomData=K.sent,K.abrupt("return",!0);case 61:case"end":return K.stop()}},null,this,null,Promise)}}]),y})(r(d[9]).PaperSetupBaseConfig);e.ChartbeatConfig=f},767,[5,80,7,8,90,12,14,16,755,762]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.HIDE_ANIMATION_DURATION=e.HIDE_ANIMATION_TIMER=e.HIDE_ANIMATION_FOOTER_TIMER=e.FOOTER_FONT_SIZE=e.SEARCH_COLOR=e.SEARCH_TEXT_SIZE=e.INFO_SIZE=e.PAGE_SIZE=e.TITLE_SIZE=e.LIST_ITEM_SEPARATOR_COLOR=e.LIST_ITEM_SEPARATOR_HEIGHT=e.LIST_ITEM_PADDING=e.LIST_ITEM_HEIGHT=e.LIST_TITLE_SIZE=e.LOGO_HEIGHT=e.LOGO_PARENT_HEIGHT=e.HEADER_FONT_SIZE=e.HEADER_HR_SIZE=e.HEADER_BUTTON_SIZE=e.HEADER_PARENT_BUTTON_PADDING=e.HEADER_PARENT_BUTTON_SIZE=e.HEADER_BG_COLOR=e.SUB_HEADER_HEIGHT=e.HEADER_PADDING=e.HEADER_HEIGHT=void 0;e.HEADER_HEIGHT=50;e.HEADER_PADDING=10;e.SUB_HEADER_HEIGHT=40;var E=r(d[0]).colors.black;e.HEADER_BG_COLOR=E;e.HEADER_PARENT_BUTTON_SIZE=45;e.HEADER_PARENT_BUTTON_PADDING=7.5;e.HEADER_BUTTON_SIZE=30;e.HEADER_HR_SIZE=1;e.HEADER_FONT_SIZE=18;e.LOGO_PARENT_HEIGHT=50;e.LOGO_HEIGHT="100%";e.LIST_TITLE_SIZE=18;e.LIST_ITEM_HEIGHT=50;e.LIST_ITEM_PADDING=6;e.LIST_ITEM_SEPARATOR_HEIGHT=.5;var _=r(d[0]).colors.grey300;e.LIST_ITEM_SEPARATOR_COLOR=_;e.TITLE_SIZE=22;e.PAGE_SIZE=22;e.INFO_SIZE=16;e.SEARCH_TEXT_SIZE=16;var I=r(d[0]).colors.md_red_400;e.SEARCH_COLOR=I;e.FOOTER_FONT_SIZE=16;e.HIDE_ANIMATION_FOOTER_TIMER=5e3;e.HIDE_ANIMATION_TIMER=3e3;e.HIDE_ANIMATION_DURATION=1e3},768,[462]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=_e.closeTypes=_e.IAPErrorMessages=_e.locals=_e.tabs=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),n=r(d[0])(r(d[5])),c=r(d[0])(r(d[6])),_={access:"access",accessibility:"accessibility",account:"account",archive:"archive",carousel:"carousel",contact:"contact",eenotify:"eenotify",help:"help",home:"home",impressum:"impressum",login:"login",market:"market",purchases:"purchases",puzzle:"puzzle",registration:"registration",rss:"rss",settings:"connection",specialsections:"specialsection",subscribe:"subscribe",uberabos:"uberabos",updates:"updates",validation:"validation",version:"version",generic:"generic"};_e.tabs=_;_e.locals={INITPAGE_SET_NEWSPAPER_AND_READ:"xc_initPage_setNewspaperAndRead",INITPAGE_SET_EXTERNAL_NEWSPAPER:"xc_initPage_setExternalNewspaper",LOAD_LATEST_PUBLICATION:"xc_loadLatestPublication",GET_SAVED_ISSUES:"getSavedIssues",DELETE_ISSUE:"deleteIssue",RETURN_FROM_LOGIN:"returnFromLogin",LOGOUT:"xc_initPage_logout",STORE_USER_INFO:"storeUserInfo",GET_USER_INFO:"getUserInfo",BUY:"xc_buy",RESUME_TRANSACTIONS:"resumeTransactions",FINISH_TRANSACTION:"finishTransaction",REQUEST_PRICE_BY_ID:"xc_requestPriceByID",RESTORE_COMPLETED_TRANSACTIONS:"restoreCompletedTransactions",SAVE_RECEIPT:"saveReceiptForRecurringPayment",GET_KEY:"getFromKey",SET_KEY:"setFromKey",REMOVE_KEY:"removeKey",SET_PREF_EDI:"setPrefEdi",CLEAR_STORAGE:"clearStorage",GET_CONFIG_DUMP:"getConfigDump",OPEN_BROWSER:"xc_openBrowser",OPEN_BROWSER_ALT:"openInAppBrowser",CLOSE:"closeOptionPage",GO_BACK:"backButtonClicked",ALERT:"alert",CONFIRM:"confirm",SET_RN_DEMO:"setRnDemo",OPEN_RSS:"xc_openRSSReader",GET_USED_SPACE:"getIssuesUsedSpace",CLOSE_WINDOW:"closeWindow",GET_PUBLICATIONS_STORED:"getPublicationStored",SET_PUBLICATION:"setPublication",DELETE_PUBLICATION:"deletePublication",OPEN_TAB_HOME:"openTabHome",OPEN_TAB_LOGIN:"openTabLogin",EXEC_JS:"xc_execJavascriptInMainApplication",SHOW_DEBUG_INFO:"showDebugInfo",OPEN_ACCESSIBILITY_MODE:"xc_openAccessibilityMode",OPEN_ARCHIVE:"xc_openArchive",RESTORE_DEFAULT_SETTINGS:"restoreDefaults",CLOSE_ARTICLE:"art_closeTextArticle",OPEN_OPTIONSPAGE:"openOptionPage",SCROLL_TO_PAGE:"xc_scrollToPage",DISPLAY_LOADER:"displayLoader",OPEN_NATIVE_SETTINGS_SCREEN:"openNativeSettingsScreen",FACEBOOK_LOGIN:"facebookLogin"};var l={iap_not_available:"IAP Not Available",unknown:"Unknown Error",cancelled:"Payment Cancelled",user_error:"User Error",item_unavailable:"Item Unavailable",remote_error:"Remote Error",network_error:"Network Error",service_error:"Service Error",receipt_failed:"Receipt Failed",receipt_finished_failed:"Receipt Finished Failed",not_prepared:"Not Prepared",not_ended:"Not Ended",already_owned:"Already Owned",developer_error:"Developer Error",billing_response_json_parse_error:"Error Parsing Billing Response JSON",already_active_subscription:"Already have an active subscription"};_e.IAPErrorMessages=l;_e.closeTypes={close:"close",back:"back",none:"none"};var E=(function(){function E(){(0,s.default)(this,E)}return(0,o.default)(E,null,[{key:"getBaseURL",value:function(){var e=g.getActivePSetup().optionspageConfig;return r(d[7]).NetworkUtils.addDefaultProtocol(e.baseURL)}},{key:"getTabUrl",value:function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=this.getBaseURL(),n=r(d[7]).StringUtils.segmentUrl(o),c=n.protocol,_=n.domain,l=n.path,E=n.getParams,p=(0,t.default)({tab:e},this.getDefaultParams(),E,s);return c+"://"+_+"/"+l+"?"+r(d[7]).StringUtils.getQuerystring(p)}},{key:"getCustomUrl",value:function(e){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r(d[7]).StringUtils.segmentUrl(e),n=o.protocol,c=o.domain,_=o.path,l=o.getParams,E=(0,t.default)(this.getDefaultParams(),l,s);return n+"://"+c+"/"+_+"?"+r(d[7]).StringUtils.getQuerystring(E)}},{key:"getDefaultParams",value:function(){var e=g.getNewsmemoryConfig(),t=e.network,s=e.limit,o=e.connectivity,c=g.getActivePSetup(),_=c.pSetup,l=c.loginStatus.TAUID,E={pSetup:_,MACHINEID:g.machineId,useDB:1,ver:n.default.getAppVersion(),isDebug:g.isDebug,network:t,isPhone:r(d[7]).PlatformUtils.isTablet()?0:1,isKindle:n.default.isKindle()?1:void 0,limit:s,connectivity:o,accessibilityMode:r(d[7]).PlatformUtils.isSystemAccessibilityEnabled()?"1":"0"};return E[r(d[7]).PlatformUtils.isAndroid()?"isAndroid":"isXcode"]=1,l&&(E.TAUID=l),E}},{key:"getHomeTabUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getTabUrl(_.home,e)}},{key:"getLoginTabUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getTabUrl(_.account,e)}},{key:"getHelpTabUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getTabUrl(_.help,e)}},{key:"getSettingsTabUrl",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.getTabUrl(_.settings,e)}},{key:"isSamePage",value:function(e,t){var s=["r","edition"];return r(d[7]).StringUtils.removeParams(e,s)===r(d[7]).StringUtils.removeParams(t,s)}},{key:"optionPageVersion",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:g.getMainPSetup()).optionspageConfig;if(e&&e.baseURL){var t=/(?:opt|optionspage)\.[a-zA-Z0-9]+\.[a-zA-Z0-9.]+/.exec(e.baseURL);if(t)return t[0]}return"n/a"}},{key:"getIAPErrorMessage",value:function(e){var t=c.default.getIapModule().IAPErrorCode,s=l.unknown;if(e&&t){switch(e.code){case t.E_IAP_NOT_AVAILABLE:s=l.iap_not_available;break;case t.E_USER_CANCELLED:s=l.cancelled;break;case t.E_USER_ERROR:s=l.user_error;break;case t.E_ITEM_UNAVAILABLE:s=l.item_unavailable;break;case t.E_REMOTE_ERROR:s=l.remote_error;break;case t.E_NETWORK_ERROR:s=l.network_error;break;case t.E_SERVICE_ERROR:s=l.service_error;break;case t.E_RECEIPT_FAILED:s=l.receipt_failed;break;case t.E_RECEIPT_FINISHED_FAILED:s=l.receipt_finished_failed;break;case t.E_NOT_PREPARED:s=l.not_prepared;break;case t.E_NOT_ENDED:s=l.not_ended;break;case t.E_ALREADY_OWNED:s=l.already_owned;break;case t.E_DEVELOPER_ERROR:s=l.developer_error;break;case t.E_BILLING_RESPONSE_JSON_PARSE_ERROR:s=l.billing_response_json_parse_error;break;case t.E_ACTIVE_SUBSCRIPTION:s=l.already_active_subscription}e.message&&e.code!==t.E_USER_CANCELLED&&(s=e.message)}return s}},{key:"getTabByURL",value:function(e){var t=r(d[7]).StringUtils.segmentUrl(e),s=t.path,o=t.getParams,n=r(d[7]).StringUtils.fileNameFromPath(s),c=o.tab;switch(n){case"initpage.php":c=_.home;break;case"ipad_login.php":c=_.login;break;case"ipad_access.php":c=_.access;break;case"ipad_subscribe.php":c=_.subscribe;break;case"ipad_registration.php":c=_.registration;break;case"ipad_help.php":c=_.help;break;case"ipad_uberabos.php":c=_.uberabos;break;case"ipad_contact.php":c=_.contact;break;case"ipad_impressum.php":c=_.impressum;break;case"ipad_notify.php":c=_.eenotify;break;case"ipad_archive.php":c=_.archive;break;case"ipad_ss.php":c=_.specialsections;break;case"ipad_puzzle.php":c=_.puzzle;break;case"ipad_purchases.php":c=_.purchases;break;case"ipad_updates.php":c=_.updates;break;case"ipad_market.php":c=_.market;break;case"ipad_version.php":c=_.version;break;case"ipad_connection.php":c=_.settings}return c}},{key:"getOptionspageGetParams",value:function(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o={};try{var n=s.extraParams,c=s.edition,_=(0,e.default)(s,["extraParams","edition"]);o=(0,t.default)({},_,r(d[7]).StringUtils.parseQuerystring(n)),c&&(o.edition=r(d[7]).StringUtils.decodeURIComponent(c))}catch(e){}return o}}]),E})();_e.default=E},769,[5,108,6,7,8,458,770,462]); -__d(function(g,_r,_i,_a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e,a=_r(d[0])(_r(d[1])),i=_r(d[0])(_r(d[2])),t=s(_r(d[3])),n=s(_r(d[4])),l=s(_r(d[5])),r=s(_r(d[6])),o=s(_r(d[7])),u=s(_r(d[8]));function v(e){if("function"!=typeof WeakMap)return null;var a=new WeakMap,i=new WeakMap;return(v=function(e){return e?i:a})(e)}function s(e,a){if(!a&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=v(a);if(i&&i.has(e))return i.get(e);var t={__proto__:null},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var r=n?Object.getOwnPropertyDescriptor(e,l):null;r&&(r.get||r.set)?Object.defineProperty(t,l,r):t[l]=e[l]}return t.default=e,i&&i.set(e,t),t}var c=(function(){function v(){(0,a.default)(this,v)}return(0,i.default)(v,null,[{key:"getTrackingTransparency",value:function(){return v.isTrackingTransparencyAvailable()?{getTrackingStatus:(void 0).getTrackingStatus,requestTrackingPermission:(void 0).requestTrackingPermission}:{}}},{key:"getAdMob",value:function(){return v.isAdMobAvailable()?{BannerAd:(void 0).BannerAd,BannerAdSize:(void 0).BannerAdSize,InterstitialAd:(void 0).InterstitialAd,AdEventType:(void 0).AdEventType,TestIds:(void 0).TestIds,RewardedAd:(void 0).RewardedAd,RewardedAdEventType:(void 0).RewardedAdEventType}:{}}},{key:"getDFP",value:function(){return v.isDFPAvailable()?{DFPBanner:t.Banner,Interstitial:t.Interstitial}:{}}},{key:"getBaronWeather",value:function(){return v.isBaronAvailable()?(void 0).default:null}},{key:"getNativoAds",value:function(){return v.isNativoSDKAvailable()?{NativoSDK:(void 0).NativoSDK,NativoWebContent:(void 0).NativoWebContent,NativoAd:(void 0).NativoAd,NativoVideo:(void 0).NativoVideo}:{}}},{key:"getPrebid",value:function(){return v.isPrebidAvailable()?{PrebidBanner:(void 0).PrebidBanner,PrebidInterstitial:(void 0).PrebidInterstitial}:{}}},{key:"getOneSignal",value:function(){return v.isOneSignalAvailable()?(void 0).default:null}},{key:"getRNHtmlToPdf",value:function(){return v.isRNHtmlToPdfAvailable()?o.default:null}},{key:"getMatherAnalytics",value:function(){return v.isMatherAnalyticsAvailable()?{MatherAnalytics:(void 0).MatherAnalytics}:{}}},{key:"getComscore",value:function(){return v.isComScoreAvailable()?(void 0).default:null}},{key:"getAdobeAnalytics",value:function(){return v.isAdobeAnalyticsAvailable()?{Analytics:(void 0).Analytics,ADBMobileConfig:(void 0).Config}:{}}},{key:"getFacebookSDK",value:function(){return v.isFacebookSDKAvailable()?{Settings:(void 0).Settings,AppEventsLogger:(void 0).AppEventsLogger,LoginManager:(void 0).LoginManager,Profile:(void 0).Profile,AccessToken:(void 0).AccessToken,GraphRequest:(void 0).GraphRequest,GraphRequestManager:(void 0).GraphRequestManager}:{}}},{key:"getVoice",value:function(){return v.isVoiceAvailable()?{Voice:(void 0).default}:{}}},{key:"getPushLibraries",value:function(){return v.isPushAvailable()?{CloudMessaging:(void 0).FirebaseCloudMessaging,AmazonDeviceMessaging:(void 0).AmazonDeviceMessaging,HcmDeviceMessaging:(void 0).HcmDeviceMessaging,PushNotification:(void 0).default,PushNotificationIOS:(void 0).default}:{}}},{key:"getMatomo",value:function(){return v.isMatomoAvailable()?void 0:{}}},{key:"getMatomoTracker",value:function(){return v.isMatomoTrackerAvailable()?(void 0).default:{}}},{key:"getGoogleAnalytics3Tracker",value:function(){return v.isGoogleAnalytics3Available()?(void 0).GoogleAnalyticsTracker:{}}},{key:"getIapModule",value:function(){return v.isIapModuleAvailable()?{initConnection:e.initConnection,endConnection:e.endConnection,PurchaseError:e.PurchaseError,ProductPurchase:e.ProductPurchase,IAPErrorCode:e.ErrorCode,Product:e.Product,Subscription:e.Subscription,getProducts:e.getProducts,getSubscriptions:e.getSubscriptions,getPurchaseHistory:e.getPurchaseHistory,flushFailedPurchasesCachedAsPendingAndroid:e.flushFailedPurchasesCachedAsPendingAndroid,purchaseErrorListener:e.purchaseErrorListener,purchaseUpdatedListener:e.purchaseUpdatedListener,finishTransaction:e.finishTransaction,requestPurchase:e.requestPurchase,requestSubscription:e.requestSubscription,getAvailablePurchases:e.getAvailablePurchases,validateReceiptIos:e.validateReceiptIos,validateReceiptAmazon:e.validateReceiptAmazon}:{}}},{key:"getNativeOptionsPage",value:function(){return v.isNativeOptionsPageAvailable()?{OptionsPage:u.default,Methods:u.Methods,Models:u.Models}:{}}},{key:"getCrashlytics",value:function(){return v.isCrashlyticsAvailable()?(void 0).default:void 0}},{key:"getMaps",value:function(){return v.isMapsAvailable()?{Callout:(void 0).Callout,Marker:(void 0).Marker,MapView:(void 0).default}:void 0}},{key:"getIOSClassicEPaper",value:function(){return v.isIOSClassicEPaperAvailable()?(void 0).default:null}},{key:"getIOSExternalLinkAccountAPI",value:function(){return v.isIOSExternalLinkAccountAPIAvailable()?(void 0).default:null}},{key:"getIOSNewsmemorySDK",value:function(){return v.isIOSNewsmemorySDKAvailable()?l.default:null}},{key:"getViafouraWebView",value:function(){return v.isViafouraAvailable()?(void 0).default:null}},{key:"getDailymotionVideoPlayer",value:function(){return v.isDailymotionVideoPlayerAvailable()?{Player:(void 0).default,setConsentString:(void 0).setConsentString}:{}}},{key:"getIubenda",value:function(){return v.isIubendaCMPAvailable()?{Iubenda:n.default,Container:n.Container}:{}}},{key:"getOsano",value:function(){return v.isOsanoAvailable()?{Osano:(void 0).Osano,Container:(void 0).default}:{}}},{key:"getScreenshotPrevent",value:function(){return v.isScreenshotPreventAvailable()?{RNScreenshotPrevent:(void 0).default,addListener:(void 0).addListener}:{}}},{key:"getChartBeat",value:function(){return v.isChartBeatAvailable()?(void 0).default:void 0}},{key:"getFirebaseAnalytics",value:function(){return v.isFirebaseAnalyticsAvailable()?(void 0).default:void 0}},{key:"getWebAnalytics",value:function(){return v.isWebAnalyticsAvailable()?r.default:void 0}},{key:"getBlueConic",value:function(){return v.isBlueConicAvailable()?(void 0).default:void 0}},{key:"isCrashlyticsAvailable",value:function(){return v.isModuleAvailable(void 0,"@react-native-firebase/crashlytics")}},{key:"isFirebaseAnalyticsAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-firebase-analytics")}},{key:"isWebAnalyticsAvailable",value:function(){return v.isModuleAvailable(r,"@tecnavia/react-native-web-analytics")}},{key:"isTrackingTransparencyAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-tracking-transparency")}},{key:"isAdMobAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-admob")}},{key:"isDFPAvailable",value:function(){return v.isModuleAvailable(t,"@tecnavia/react-native-dfp")}},{key:"isBaronAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-baronweather")}},{key:"isPrebidAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-prebid")}},{key:"isNativoSDKAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-nativo-ads")}},{key:"isOneSignalAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-onesignal")}},{key:"isRNHtmlToPdfAvailable",value:function(){return v.isModuleAvailable(o,"react-native-html-to-pdf")}},{key:"isComScoreAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-comscore")}},{key:"isAdobeAnalyticsAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-adbmobile")}},{key:"isMatherAnalyticsAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-mather-analytics")}},{key:"isFacebookSDKAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-fbsdk-next")}},{key:"isVoiceAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-voice")}},{key:"isPushAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-cloud-messaging")}},{key:"isMatomoAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-matomo")}},{key:"isMatomoTrackerAvailable",value:function(){return v.isModuleAvailable(void 0,"matomo-tracker-react-native")}},{key:"isGoogleAnalytics3Available",value:function(){return v.isModuleAvailable(void 0,"react-native-google-analytics-bridge")}},{key:"isIapModuleAvailable",value:function(){return v.isModuleAvailable(e,"react-native-iap")}},{key:"isMapsAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-maps")}},{key:"isNativeOptionsPageAvailable",value:function(){return v.isModuleAvailable(u,"rn-options-page")}},{key:"isIOSClassicEPaperAvailable",value:function(){return _r(d[9]).PlatformUtils.isIOS()&&v.isModuleAvailable(void 0,"@tecnavia/react-native-ios-classic-epaper")}},{key:"isIOSExternalLinkAccountAPIAvailable",value:function(){return _r(d[9]).PlatformUtils.isIOS()&&v.isModuleAvailable(void 0,"@tecnavia/react-native-external-link-account")}},{key:"isIOSNewsmemorySDKAvailable",value:function(){return _r(d[9]).PlatformUtils.isIOS()&&v.isModuleAvailable(l,"@tecnavia/react-native-newsmemory-pod")}},{key:"isViafouraAvailable",value:function(){return v.isModuleAvailable(void 0,"react-native-viafoura")}},{key:"isDailymotionVideoPlayerAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-dailymotion-sdk")}},{key:"isIubendaCMPAvailable",value:function(){return v.isModuleAvailable(n,"@tecnavia/react-native-iubenda-web")}},{key:"isOsanoAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-osano-web")}},{key:"isScreenshotPreventAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-screenshot-prevent")}},{key:"isChartBeatAvailable",value:function(){return v.isModuleAvailable(void 0,"@tecnavia/react-native-chartbeat")}},{key:"isBlueConicAvailable",value:function(){return v.isModuleAvailable(void 0,"@blueconic/blueconic-react-native")}},{key:"isModuleAvailable",value:function(e,a){try{if(e)return!0}catch(e){}return!1}}]),v})();_e.default=c},770,[5,7,8,771,774,792,793,799,800,462]); -__d(function(g,r,i,a,m,e,d){var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2]));m.exports={Banner:t.default,Interstitial:n.default}},771,[5,772,773]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),o=r(d[0])(r(d[3])),s=r(d[0])(r(d[4])),l=r(d[0])(r(d[5])),u=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=r(d[0])(r(d[8])),h=r(d[9]);function v(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(v=function(){return!!t})()}var p=(function(f){(0,s.default)(S,f);var h,p,D=(h=S,p=v(),function(){var t,n=(0,u.default)(h);if(p){var o=(0,u.default)(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return(0,l.default)(this,t)});function S(){var n;return(0,t.default)(this,S),(n=D.call(this)).onSizeChange=n.onSizeChange.bind((0,o.default)(n)),n.onDidFailToReceiveAdWithError=n.onDidFailToReceiveAdWithError.bind((0,o.default)(n)),n.onAdmobDispatchAppEvent=n.onAdmobDispatchAppEvent.bind((0,o.default)(n)),n.state={style:{}},n}return(0,n.default)(S,[{key:"onSizeChange",value:function(t){var n=t.nativeEvent,o=n.height,s=n.width;this.setState({style:{width:s,height:o}})}},{key:"onDidFailToReceiveAdWithError",value:function(t){var n=t.nativeEvent,o=this.props.onDidFailToReceiveAdWithError;"function"==typeof o&&o(n.error)}},{key:"onAdmobDispatchAppEvent",value:function(t){var n=this.props.onAdmobDispatchAppEvent;"function"==typeof n&&n(t)}},{key:"render",value:function(){var t=this.props,n=t.adUnitID,o=t.testDeviceID,s=t.dimensions,l=t.onAdViewDidReceiveAd,u=t.onAdViewWillPresentScreen,f=t.onAdViewWillDismissScreen,h=t.onAdViewDidDismissScreen,v=t.targeting,p=this.props,D=p.bannerSize,S=p.adSizes,b=this.state.style;return s&&s.width&&s.height&&(D=void 0,S=void 0),S&&S.length>0&&(D=void 0),D||s&&s.width&&s.height||S&&!(!S.length>0)||(D="smartBannerPortrait"),c.default.createElement(A,{style:b,onSizeChange:this.onSizeChange,onAdViewDidReceiveAd:l,onDidFailToReceiveAdWithError:this.onDidFailToReceiveAdWithError,onAdViewWillPresentScreen:u,onAdViewWillDismissScreen:f,onAdViewDidDismissScreen:h,onAdmobDispatchAppEvent:this.onAdmobDispatchAppEvent,testDeviceID:o,adUnitID:n,adSizes:S,dimensions:s,bannerSize:D,targeting:v})}}]),S})(c.default.Component);e.default=p,p.propTypes={onDidFailToReceiveAdWithError:f.default.func,onAdmobDispatchAppEvent:f.default.func,onAdViewDidReceiveAd:f.default.func,onAdViewWillPresentScreen:f.default.func,onAdViewWillDismissScreen:f.default.func,onAdViewDidDismissScreen:f.default.func,bannerSize:f.default.string,dimensions:f.default.shape({height:f.default.number,width:f.default.number}),adSizes:f.default.array,adUnitID:f.default.string,testDeviceID:f.default.string,targeting:f.default.object};var A=(0,h.requireNativeComponent)("RNDFPBanner",p)},772,[5,7,8,15,12,14,16,17,201,28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0]).NativeModules.RNDFPInterstitial;e.default=t},773,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Container",{enumerable:!0,get:function(){return n.default}}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=t.default;e.default=u},774,[5,775,785]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),s=r(d[0])(r(d[3])),u=r(d[0])(r(d[4])),o=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),c=r(d[0])(r(d[7])),f=(function(){function f(){(0,o.default)(this,f)}return(0,u.default)(f,null,[{key:"init",value:function(t){var s,u,o;return n.default.async(function(l){for(;;)switch(l.prev=l.next){case 0:return f.config=t,s=t.resetConsentDate,l.next=4,n.default.awrap(c.default.init());case 4:if(u=l.sent,o=u.timestamp,!s||!o){l.next=11;break}if(!(r(d[8]).DateUtils.getDateString(o,"YYYYMMDD")0&&void 0!==arguments[0]?arguments[0]:{},u=s.consentNotNeeded,o=void 0!==u&&u,l=s.purposes,c=s.usprConsents,f=s.tcData,p=s.uspData,v={};return f&&(f.purpose&&(v=f.purpose.consents),n=f.tcString),p&&(t=p.uspString),{consentNotNeeded:o,perPurposeConsents:l||{},perTCFPurposeConsents:v,usprConsents:c||{},consentStrings:{tc:n||"",usp:t||""}}}},{key:"askConsent",value:function(){var t,u,o,l;return n.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return t={},p.next=3,n.default.awrap(c.default.getPreference());case 3:if(u=p.sent,!r(d[8]).JSUtils.isEmpty(u)&&!0!==u.consentNotNeeded){p.next=11;break}return(0,r(d[9]).setShowConsentUI)("ask"),p.next=8,n.default.awrap(f.getConsentPromise());case 8:t=p.sent,p.next=18;break;case 11:return p.next=13,n.default.awrap(c.default.getTCData());case 13:return o=p.sent,p.next=16,n.default.awrap(c.default.getUSPData());case 16:l=p.sent,t=(0,s.default)({},u,{tcData:o,uspData:l});case 18:return p.abrupt("return",f.getConsent(t));case 19:case"end":return p.stop()}},null,null,null,Promise)}},{key:"editPreferences",value:function(){var t,s,u;return n.default.async(function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,n.default.awrap(c.default.getPreference());case 2:return t=o.sent,s=r(d[8]).JSUtils.isEmpty(t)?"ask":"edit",(0,r(d[9]).setShowConsentUI)(s),o.next=7,n.default.awrap(f.getConsentPromise());case 7:return u=o.sent,o.abrupt("return",f.getConsent(u));case 9:case"end":return o.stop()}},null,null,null,Promise)}},{key:"onDismiss",value:function(){f.listeners.onDismiss&&f.listeners.onDismiss(),(0,r(d[9]).setShowConsentUI)(void 0)}},{key:"onPreferenceExpressed",value:function(t,u,o,l){return n.default.async(function(p){for(;;)switch(p.prev=p.next){case 0:return(0,r(d[9]).setShowConsentUI)(void 0),p.prev=1,p.next=4,n.default.awrap(c.default.setPreference(t));case 4:if(!u||r(d[8]).JSUtils.isEmpty(u)){p.next=9;break}return p.next=7,n.default.awrap(c.default.setTCData(u,o));case 7:p.next=11;break;case 9:return p.next=11,n.default.awrap(c.default.clearTCData());case 11:if(!l||r(d[8]).JSUtils.isEmpty(l)){p.next=16;break}return p.next=14,n.default.awrap(c.default.setUSPData(l));case 14:p.next=18;break;case 16:return p.next=18,n.default.awrap(c.default.clearUSData());case 18:f.onConsentChange((0,s.default)({},t,{tcData:u,uspData:l})),p.next=23;break;case 21:p.prev=21,p.t0=p.catch(1);case 23:case"end":return p.stop()}},null,null,[[1,21]],Promise)}},{key:"onPreferenceNotNeeded",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",f.onPreferenceExpressed({consentNotNeeded:!0,timestamp:(new Date).toISOString()}));case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"onOptOut",value:function(){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,n.default.awrap(c.default.setCCPAOptOut(!0));case 2:case"end":return t.stop()}},null,null,null,Promise)}},{key:"addSafeAreaToWebView",value:function(n){var t=n.top,s=n.bottom;return t||s?"(function() { \n var sheet = document.createElement('style');\n sheet.innerHTML = \"body { margin: 0; padding-top: "+t+"px; padding-bottom: "+s+"px; }\";\n document.body.appendChild(sheet);\n })();":""}},{key:"getConsentUI",value:function(n){var u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{top:0,bottom:0,left:0,right:0},o=f.config,c=o.baseUrl,p=o.googleAds,v=o.enableTcf,C=o.perPurposeConsent,x=(0,t.default)(o,["baseUrl","googleAds","enableTcf","perPurposeConsent"]),P=r(d[8]).StringUtils.appendParams(c,(0,s.default)({},x,{perPurposeConsent:C?1:0,googleAds:p?1:0,enableTcf:v?1:0,editPreferences:n&&"edit"===n?1:void 0}));return l.default.createElement(r(d[10]).IubendaWebView,{source:{uri:P},onClose:f.onDismiss,onOptOut:f.onOptOut,onPreferenceExpressed:f.onPreferenceExpressed,onPreferenceNotNeeded:f.onPreferenceNotNeeded,injectedJavaScript:f.addSafeAreaToWebView(u)})}},{key:"addListener",value:function(n,t){return f.listeners[n]=function(n){t&&t(n)},f.listeners[n]}},{key:"addConsentChangeListener",value:function(n){return f.addListener("onConsentChange",n)}},{key:"addDismissListener",value:function(n){return f.addListener("onDismiss",n)}}]),f})();e.default=f,f.listeners={onConsentChange:void 0,onDismiss:void 0}},775,[5,80,108,6,8,7,17,776,462,778,779]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),c=r(d[0])(r(d[4])),l=(function(){function l(){(0,n.default)(this,l)}return(0,u.default)(l,null,[{key:"setPreference",value:function(n){return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.preference=n,u.next=3,t.default.awrap(c.default.setItem(c.default.SP.keys.preference,n));case 3:case"end":return u.stop()}},null,null,null,Promise)}},{key:"getPreference",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!l.preference){u.next=2;break}return u.abrupt("return",l.preference);case 2:return u.prev=2,u.t1=JSON,u.next=6,t.default.awrap(c.default.getItem(c.default.SP.keys.preference));case 6:if(u.t2=u.sent,u.t0=u.t1.parse.call(u.t1,u.t2),u.t0){u.next=10;break}u.t0={};case 10:n=u.t0,u.next=16;break;case 13:u.prev=13,u.t3=u.catch(2),n={};case 16:return l.preference=n,u.abrupt("return",n);case 18:case"end":return u.stop()}},null,null,[[2,13]],Promise)}},{key:"setCCPAOptOut",value:function(n){return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.ccpaOptOut=n,u.next=3,t.default.awrap(c.default.setItem(c.default.SP.keys.ccpaOptOut,n?"1":"0"));case 3:case"end":return u.stop()}},null,null,null,Promise)}},{key:"getCCPAOptOut",value:function(){var n,u;return t.default.async(function(s){for(;;)switch(s.prev=s.next){case 0:if(void 0===l.ccpaOptOut){s.next=2;break}return s.abrupt("return",l.ccpaOptOut);case 2:return s.next=4,t.default.awrap(c.default.getItem(c.default.SP.keys.ccpaOptOut));case 4:if(s.t0=n=s.sent,null==s.t0){s.next=9;break}s.t1=n,s.next=10;break;case 9:s.t1="0";case 10:return s.t2=s.t1,u="1"===s.t2,l.ccpaOptOut=u,s.abrupt("return",u);case 14:case"end":return s.stop()}},null,null,null,Promise)}},{key:"setTCData",value:function(t,n){return r(d[5]).CmpStorage.setTCData(t,n)}},{key:"getOldTCData",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n={},u.prev=1,u.t1=JSON,u.next=5,t.default.awrap(c.default.getItem(c.default.SP.keys.tcData));case 5:if(u.t2=u.sent,u.t0=u.t1.parse.call(u.t1,u.t2),u.t0){u.next=9;break}u.t0={};case 9:n=u.t0,u.next=14;break;case 12:u.prev=12,u.t3=u.catch(1);case 14:return u.abrupt("return",n);case 15:case"end":return u.stop()}},null,null,[[1,12]],Promise)}},{key:"getTCData",value:function(){return r(d[5]).CmpStorage.getTCData()}},{key:"clearTCData",value:function(){return r(d[5]).CmpStorage.clearTCData()}},{key:"setUSPData",value:function(t){return r(d[5]).CmpStorage.setUSPData(t)}},{key:"getOldUSPData",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return n={},u.prev=1,u.t1=JSON,u.next=5,t.default.awrap(c.default.getItem(c.default.SP.keys.uspData));case 5:if(u.t2=u.sent,u.t0=u.t1.parse.call(u.t1,u.t2),u.t0){u.next=9;break}u.t0={};case 9:n=u.t0,u.next=14;break;case 12:u.prev=12,u.t3=u.catch(1);case 14:return u.abrupt("return",n);case 15:case"end":return u.stop()}},null,null,[[1,12]],Promise)}},{key:"getUSPData",value:function(){return r(d[5]).CmpStorage.getUSPData()}},{key:"clearUSData",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.ccpaOptOut=void 0,n=c.default.SP.keys.ccpaOptOut,u.next=4,t.default.awrap(c.default.clearItem(n));case 4:return u.next=6,t.default.awrap(r(d[5]).CmpStorage.clearUSData());case 6:case"end":return u.stop()}},null,null,null,Promise)}},{key:"reset",value:function(){l.preference=void 0,l.ccpaOptOut=void 0}},{key:"init",value:function(){var n,u,s,f,p,o;return t.default.async(function(v){for(;;)switch(v.prev=v.next){case 0:return l.reset(),r(d[5]).CmpStorage.reset(),v.next=4,t.default.awrap(l.getPreference());case 4:return n=v.sent,v.next=7,t.default.awrap(l.getCCPAOptOut());case 7:return u=c.default.SP.keys,s=u.tcData,f=u.uspData,v.next=10,t.default.awrap(l.getOldTCData());case 10:if(p=v.sent,r(d[5]).JSUtils.isEmpty(p)){v.next=18;break}return v.next=14,t.default.awrap(r(d[5]).CmpStorage.setTCData(p));case 14:return v.next=16,t.default.awrap(c.default.clearItem(s));case 16:v.next=20;break;case 18:return v.next=20,t.default.awrap(r(d[5]).CmpStorage.getTCData());case 20:return v.next=22,t.default.awrap(l.getOldUSPData());case 22:if(o=v.sent,r(d[5]).JSUtils.isEmpty(o)){v.next=30;break}return v.next=26,t.default.awrap(r(d[5]).CmpStorage.setUSPData(o));case 26:return v.next=28,t.default.awrap(c.default.clearItem(f));case 28:v.next=32;break;case 30:return v.next=32,t.default.awrap(r(d[5]).CmpStorage.getUSPData());case 32:return v.abrupt("return",n);case 33:case"end":return v.stop()}},null,null,null,Promise)}},{key:"clearAll",value:function(){var n;return t.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:return l.reset(),n=c.default.SP.keys.preference,u.next=4,t.default.awrap(c.default.clearItem(n));case 4:return u.next=6,t.default.awrap(r(d[5]).CmpStorage.clearAll());case 6:case"end":return u.stop()}},null,null,null,Promise)}}]),l})();e.default=l},776,[5,80,7,8,777,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(d[0])(r(d[1])),n=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),l=(function(){function l(){(0,n.default)(this,l)}return(0,u.default)(l,null,[{key:"setStorageName",value:function(t){l.SP.name=t}},{key:"getItem",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.getItem(l.SP.name,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"setItem",value:function(n,u){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.setItem(l.SP.name,n,u));case 1:case"end":return t.stop()}},null,null,null,Promise)}},{key:"clearItem",value:function(n){return t.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",r(d[4]).StorageUtils.clear(l.SP.name,n));case 1:case"end":return t.stop()}},null,null,null,Promise)}}]),l})();e.default=l,l.SP={name:"iubenda",keys:{preference:"preference",ccpaOptOut:"ccpaOptOut",tcData:"tcData",uspData:"uspData"}}},777,[5,80,7,8,462]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.useConsentUI=function(){var u=(0,o.useState)(void 0),f=(0,t.default)(u,2),s=f[0],c=f[1];return(0,o.useEffect)(function(){n=c},[]),s},e.setShowConsentUI=void 0;var n,t=r(d[0])(r(d[1])),o=r(d[2]);e.setShowConsentUI=function(t){"function"==typeof n&&n(t)}},778,[5,41,17]); -__d(function(g,r,i,a,m,_e,d){Object.defineProperty(_e,"__esModule",{value:!0}),_e.IubendaWebView=void 0;var e=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),n=r(d[0])(r(d[3])),o=r(d[0])(r(d[4])),s=r(d[0])(r(d[5])),l=r(d[0])(r(d[6])),u=r(d[0])(r(d[7])),c=r(d[0])(r(d[8])),f=r(d[0])(r(d[9])),p=r(d[0])(r(d[10])),h=r(d[0])(r(d[11])),b=r(d[12]);function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(v=function(){return!!e})()}var y=b.StyleSheet.create({absolute:{position:"absolute",top:0,left:0,right:0,bottom:0}}),E=(function(h){(0,u.default)(w,h);var E,_,k=(E=w,_=v(),function(){var e,t=(0,f.default)(E);if(_){var n=(0,f.default)(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return(0,c.default)(this,e)});function w(e){var t;return(0,o.default)(this,w),(t=k.call(this,e)).onMessage=t._onMessage.bind((0,l.default)(t)),t.close=t._close.bind((0,l.default)(t)),t.onError=t._onError.bind((0,l.default)(t)),t.state={hidden:!1,visible:!1},t}return(0,s.default)(w,[{key:"_logDebug",value:function(e){}},{key:"_logWarn",value:function(e){}},{key:"_logError",value:function(e){}},{key:"_close",value:function(){var e,t=this.props.onClose;"function"==typeof t&&(e=t),this.setState({hidden:!0},e)}},{key:"_onMessage",value:function(e){var t=e.nativeEvent,n=this.props,o=n.onPreferenceExpressed,s=n.onPreferenceNotNeeded,l=n.onConsent,u=n.onOptOut;try{var c=JSON.parse(t.data),f=c.type,p=c.content;switch(this._logDebug(f),f){case"preference-expressed":var h=p.preference,b=p.tcData,v=p.vendorList,y=p.uspData;"function"==typeof o&&o(h,b,v,y);break;case"preference-not-needed":"function"==typeof s&&s();break;case"user-consent":var E=p.consent;"function"==typeof l&&l(E);break;case"ccpa-opt-out":"function"==typeof u&&u();break;case"banner-shown":this.setState({visible:!0});break;case"banner-closed":break;case"error":var _=p.message;this._logError(_);break;case"close":this._close()}}catch(e){this._logError(e.message)}}},{key:"_onError",value:function(e){var t=e.nativeEvent;try{this._logError(JSON.stringify(t))}catch(e){}this.close()}},{key:"render",value:function(){var o=this.props,s=o.source,l=o.style,u=(0,n.default)(o,["source","style"]),c=this.state,f=c.hidden,h=c.visible,v=s.html;if(!s.uri&&!v||f)return null;var E,_=[];l&&(Array.isArray(l)?_=(0,t.default)(l):_.push(l)),_.push({backgroundColor:r(d[13]).colors.transparent});var k=null;return h?k=p.default.createElement(b.ActivityIndicator,{size:"large",style:y.absolute,color:r(d[13]).colors.white}):E=0,p.default.createElement(b.View,{style:[y.absolute,{backgroundColor:"rgba(0, 0, 0, 0.8)",height:E}]},k,p.default.createElement(r(d[14]).WebView,(0,e.default)({style:_,originWhitelist:["http://","https://","xhttp://","xhttps://","local://","file://"],mixedContentMode:"always",allowFileAccess:!0,allowUniversalAccessFromFileURLs:!0,thirdPartyCookiesEnabled:!0,domStorageEnabled:!0,javaScriptEnabled:!0,bounces:!1,cacheEnabled:!0},u,{startInLoadingState:!1,androidForceHasOverlappingRendering:!1,source:s,messagingEnabled:!0,onMessage:this.onMessage,onError:this.onError,onHttpError:this.onError})))}}]),w})(p.default.Component);_e.IubendaWebView=E,E.propTypes={style:h.default.oneOfType([h.default.object,h.default.array,h.default.number]),source:h.default.shape({uri:h.default.string,baseUrl:h.default.string,html:h.default.string}),onPreferenceExpressed:h.default.func,onPreferenceNotNeeded:h.default.func,onConsent:h.default.func,onOptOut:h.default.func,onClose:h.default.func}},779,[5,6,21,108,7,8,15,12,14,16,17,201,28,462,780]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"WebView",{enumerable:!0,get:function(){return t.default}}),e.default=void 0;var t=r(d[0])(r(d[1])),u=t.default;e.default=u},780,[5,781]); -__d(function(_g,r,_i,a,m,_e,_d2){Object.defineProperty(_e,"__esModule",{value:!0}),_e.default=void 0;var e,t=r(_d2[0])(r(_d2[1])),n=r(_d2[0])(r(_d2[2])),o=r(_d2[3]),i=r(_d2[0])(r(_d2[4])),s=r(_d2[0])(r(_d2[5])),d=this&&this.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},function(t,n){function o(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(o.prototype=n.prototype,new o)}),c=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(i,s){function d(e){try{l(o.next(e))}catch(e){s(e)}}function c(e){try{l(o.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(d,c)}l((o=o.apply(e,t||[])).next())})},l=this&&this.__generator||function(e,t){var n,o,i,s,d={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function c(e){return function(t){return l([e,t])}}function l(s){if(n)throw new TypeError("Generator is already executing.");for(;d;)try{if(n=1,o&&(i=2&s[0]?o.return:s[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,s[1])).done)return i;switch(o=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return d.label++,{value:s[1],done:!1};case 5:d.label++,o=s[1],s=[0];continue;case 7:s=d.ops.pop(),d.trys.pop();continue;default:if(!(i=(i=d.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){d=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]` at the top of your app.');return e},_e.withSafeAreaInsets=function(t){return r.forwardRef(function(n,a){return r.createElement(s,null,function(o){return r.createElement(t,(0,e.default)({},n,{insets:o,ref:a}))})})},_e.useSafeArea=function(){return f()},_e.SafeAreaContext=_e.SafeAreaConsumer=_e.SafeAreaFrameContext=_e.SafeAreaInsetsContext=void 0;var e=_r(d[0])(_r(d[1])),t=_r(d[0])(_r(d[2])),r=(function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=o(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var l in e)if("default"!==l&&Object.prototype.hasOwnProperty.call(e,l)){var u=a?Object.getOwnPropertyDescriptor(e,l):null;u&&(u.get||u.set)?Object.defineProperty(n,l,u):n[l]=e[l]}return n.default=e,r&&r.set(e,n),n})(_r(d[3])),n=_r(d[4]),a=_r(d[0])(_r(d[5]));function o(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(o=function(e){return e?r:t})(e)}var l=r.createContext(null);_e.SafeAreaInsetsContext=l,l.displayName='SafeAreaInsetsContext';var u=r.createContext(null);_e.SafeAreaFrameContext=u,u.displayName='SafeAreaFrameContext';var i=n.StyleSheet.create({fill:{flex:1}});function f(){var e=r.useContext(l);if(null==e)throw new Error('No safe area insets value available. Make sure you are rendering `` at the top of your app.');return e}var s=l.Consumer;_e.SafeAreaConsumer=s;var c=l;_e.SafeAreaContext=c},787,[5,6,41,17,28,788]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=(0,r(d[0]).requireNativeComponent)('RNCSafeAreaProvider');e.default=o},788,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeAreaView=void 0;var o=(0,r(d[0]).requireNativeComponent)('RNCSafeAreaView');e.SafeAreaView=o},789,[28]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.initialWindowSafeAreaInsets=e.initialWindowMetrics=void 0;var n=r(d[0]).UIManager.getViewManagerConfig('RNCSafeAreaProvider'),t=null!=n&&null!=n.Constants?n.Constants.initialWindowMetrics:null;e.initialWindowMetrics=t;var l=null==t?void 0:t.insets;e.initialWindowSafeAreaInsets=l},790,[28]); -__d(function(g,r,i,a,m,e,d){},791,[]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),c=r(d[4]),s=c.NativeModules.NewsmemorySDKBridge,l=(function(){function l(){(0,t.default)(this,l)}return(0,u.default)(l,null,[{key:"isIOS",value:function(){return"ios"===c.Platform.OS}},{key:"close",value:function(){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!l.isIOS()){t.next=9;break}return t.prev=1,t.next=4,n.default.awrap(s.close());case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),console.warn(t.t0.message);case 9:case"end":return t.stop()}},null,null,[[1,6]],Promise)}},{key:"willOpenURL",value:function(t){var u;return n.default.async(function(c){for(;;)switch(c.prev=c.next){case 0:if(!l.isIOS()){c.next=10;break}return c.prev=1,c.next=4,n.default.awrap(s.willOpenURL(t));case 4:return u=c.sent,c.abrupt("return",u);case 8:c.prev=8,c.t0=c.catch(1);case 10:return c.abrupt("return",!1);case 11:case"end":return c.stop()}},null,null,[[1,8]],Promise)}},{key:"onTrackAction",value:function(t){return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!l.isIOS()){u.next=9;break}return u.prev=1,u.next=4,n.default.awrap(s.onTrackAction(t));case 4:return u.abrupt("return",!0);case 7:u.prev=7,u.t0=u.catch(1);case 9:return u.abrupt("return",!1);case 10:case"end":return u.stop()}},null,null,[[1,7]],Promise)}},{key:"onReload",value:function(){return n.default.async(function(t){for(;;)switch(t.prev=t.next){case 0:if(!l.isIOS()){t.next=9;break}return t.prev=1,t.next=4,n.default.awrap(s.onReload());case 4:return t.abrupt("return",!0);case 7:t.prev=7,t.t0=t.catch(1);case 9:return t.abrupt("return",!1);case 10:case"end":return t.stop()}},null,null,[[1,7]],Promise)}},{key:"onTokenExpired",value:function(){var t;return n.default.async(function(u){for(;;)switch(u.prev=u.next){case 0:if(!l.isIOS()){u.next=10;break}return u.prev=1,u.next=4,n.default.awrap(s.onTokenExpired());case 4:return t=u.sent,u.abrupt("return",t);case 8:u.prev=8,u.t0=u.catch(1);case 10:return u.abrupt("return",!1);case 11:case"end":return u.stop()}},null,null,[[1,8]],Promise)}}]),l})();e.default=l},792,[5,80,7,8,28]); -__d(function(g,r,i,a,m,e,d){var n;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){return n||(n=new(r(d[0]).WebAnalytics)),n};e.default=t},793,[794]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.WebAnalytics=void 0;var n=r(d[0])(r(d[1])),t=r(d[0])(r(d[2])),u=r(d[0])(r(d[3])),s=r(d[4]).NativeModules.WebAnalytics,l=(function(){function l(){(0,t.default)(this,l)}return(0,u.default)(l,[{key:"debugMode",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s.debugMode(n)}},{key:"initializeWebMode",value:function(){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",s.initializeWebMode(r(d[5]).RAW_HTML));case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"logEvent",value:function(t){var u,l=arguments;return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(u=l.length>1&&void 0!==l[1]?l[1]:{},!(0,r(d[6]).eventNameValidator)(t)||!(0,r(d[6]).eventParamsValidator)(u)){n.next=3;break}return n.abrupt("return",s.logEvent(t,u));case 3:return n.abrupt("return",Promise.reject(new Error("something went wrong on tracking event")));case 4:case"end":return n.stop()}},null,null,null,Promise)}},{key:"logPageView",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(0,r(d[6]).pageObjectValidator)(t)){n.next=2;break}return n.abrupt("return",s.logPageView(t));case 2:return n.abrupt("return",Promise.reject(new Error("something went wrong on tracking page view")));case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"logScreenView",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(0,r(d[6]).screenObjectValidator)(t)){n.next=2;break}return n.abrupt("return",s.logScreenView(t));case 2:return n.abrupt("return",Promise.reject(new Error("something went wrong on tracking screen view")));case 3:case"end":return n.stop()}},null,null,null,Promise)}},{key:"setUserId",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",s.setUserId(t));case 1:case"end":return n.stop()}},null,null,null,Promise)}},{key:"isFirebaseInstance",value:function(n){return(0,r(d[7]).isString)(n.projectId)&&n.projectId.length>0}},{key:"addInstance",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if((0,r(d[7]).isString)(t.name)&&0!==t.name.length){n.next=2;break}throw new Error("name must be a valid string");case 2:if(!this.isFirebaseInstance(t)){n.next=9;break}if((0,r(d[7]).isString)(t.appId)&&0!==t.appId.length){n.next=5;break}throw new Error("appId must be a valid string");case 5:if((0,r(d[7]).isString)(t.apiKey)&&0!==t.apiKey.length){n.next=7;break}throw new Error("apiKey must be a valid string");case 7:n.next=11;break;case 9:if((0,r(d[7]).isString)(t.measurementId)&&0!==t.measurementId.length){n.next=11;break}throw new Error("measurementId must be a valid string");case 11:return n.abrupt("return",s.addInstance(t));case 12:case"end":return n.stop()}},null,this,null,Promise)}},{key:"removeInstance",value:function(t){return n.default.async(function(n){for(;;)switch(n.prev=n.next){case 0:if((0,r(d[7]).isString)(t)&&0!==t.length){n.next=2;break}throw new Error("name must be a valid string");case 2:return n.abrupt("return",s.removeInstance(t));case 3:case"end":return n.stop()}},null,null,null,Promise)}}]),l})();e.WebAnalytics=l},794,[5,80,7,8,28,795,796,797]); -__d(function(g,r,i,a,m,e,d){Object.defineProperty(e,"__esModule",{value:!0}),e.RAW_HTML=void 0;e.RAW_HTML="\n \n \n