






#import "PriorEarSee.h"
#import "NSString+MathIntro.h"
#import "UIImageView+WebCache.h"
#import "SheTagInfo.h"
#import "UIColor+EarColor.h"
#import "UIImage+BusImage.h"
#import "Masonry.h"

#import "DenyArmMapConfig.h"
#import "NowTryManager.h"
#import "ObtainStrategyReplaceCheckSkin.h"


@interface XXGCapsuleButton : UIButton
@end

@implementation XXGCapsuleButton
- (void)layoutSubviews {
    [super layoutSubviews];
    self.layer.cornerRadius = CGRectGetHeight(self.bounds) / 2.0;
}
@end

static SignalingBevel *_drawCreditLeft = nil;
static KeyNibbles *_netListPhoto = nil;

@implementation PriorEarSee

+ (SignalingBevel *)drawCreditLeft {
    if (!_drawCreditLeft) {
        _drawCreditLeft = [ObtainStrategyReplaceCheckSkin addressRowEngineBridgedIssuerDiscover:[SignalingBevel class]];
    }
    return _drawCreditLeft;
}

+ (KeyNibbles *)netListPhoto {
    if (!_netListPhoto) {
        _netListPhoto = [ObtainStrategyReplaceCheckSkin folderImmutableBarBusyMeasuredHover:[KeyNibbles class]];
    }
    return _netListPhoto;
}

+ (NSString *)expandDiagnoseDarwinEightMainName {
    return [NowTryManager integerDeleteMembersRecentEnd].maxCycleName;
}

+ (NSString *)chromeSampleStreamEngineerDescribeToken {
    return [NowTryManager integerDeleteMembersRecentEnd].zoomFoldToken;
}

+ (CGFloat)usesTrapCatUnorderedUpdate {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.controlsMasterWonSecretCollector.sonUighur?:self.netListPhoto.wonCapsCutPin;
}

+ (NSString *)schoolWatchQuotesBagLike {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.invertMicro.readoutTab;
}

+ (NSString *)basicBrushQuickPanelFlightsDegraded {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.controlsMasterWonSecretCollector.overwriteUpdateFactWakeCentering;
}

+ (CGFloat)conjugateVelocityPinAllowableHandles {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.controlsMasterWonSecretCollector.receiptImageZipDependentObserved;
}
+ (BOOL)receiptImageZipDependentObserved {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.controlsMasterWonSecretCollector.receiptImageZipDependentObserved;
}

+ (NSString *)loadUnboundInvitedAlcoholAll {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.behaviorNear.addLookWorkFix;
}
+ (NSString *)depthSwitchSinPersonPending {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.behaviorNear.wordCardioid;
}

+ (BOOL)decipherFillerDepthInteractLabel {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.fireCycleRepliesRotatingRightKeyResponses;
}

+ (BOOL)oneDisplay {
    return DenyArmMapConfig.shared.basicPriorNoiseHasEntities.behaviorNear.oneDisplay;
}

+ (BOOL)mongolianFlattenMillProfileAdvancedBreak {
    return [DenyArmMapConfig shared].mongolianFlattenMillProfileAdvancedBreak;
}

+ (NSArray *)readYoungestDecryptedEmergencyForbid {
    NSArray *pinkLoveSessionCollisionInterior = [NowTryManager windowConductorSobDecimalWordAssistive];
    NSMutableArray *five = [NSMutableArray arrayWithCapacity:pinkLoveSessionCollisionInterior.count];
    
    for (AdditionsAway *bag in pinkLoveSessionCollisionInterior) {
        NSString *image = self.netListPhoto.resignExpertTagReturnEquallyUplink;
        switch (bag.causeBedType) {
            case LeaveMountAngleTryOut:
                image = self.netListPhoto.amharicEarArtsAlcoholSafeReserved;
                break;
            case BusCatSpanishAccount:
            case MastersCustomRegister:
                image = self.netListPhoto.resignExpertTagReturnEquallyUplink;
                break;
            case StrictlyDetermineJoiningEraFit:
                image = self.netListPhoto.ouncesHisGlyphTopBedShortcuts;
                break;

case HitFaceHandoffPinObservedDisparity:
                image = self.netListPhoto.eraAxesAwayFallbackOffInvite;
                break;
            case PersianSinhaleseWalkingSegmentedOrnaments:
                image = self.netListPhoto.bigUnableNearestThirdApply;
                break;
            default:
                image = self.netListPhoto.amharicEarArtsAlcoholSafeReserved;
                break;
        }
        
        NSArray *six = @[bag.maxCycleName ?: @"",image,bag.airArmWithSpeechRenameTime];
        [five addObject:six];
    }
    
    
    NSArray *playTheWay = [five sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double our = [a[2] doubleValue];
        double pub = [b[2] doubleValue];
        if (our > pub) {
            return NSOrderedAscending; 
        } else if (our < pub) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return playTheWay;
}

+ (CGSize)batteryRectifiedBridgeSpellSpectralPacketSize {
    return CGSizeMake(self.netListPhoto.moreInvitedBezelCopticExcludeWidth, self.netListPhoto.rationalZoomSubscribeUseFiberForce);
}

+ (UIColor *)collectorColor{
    return [UIColor scrollingCardioidBendEndpointCupNot:DenyArmMapConfig.shared.basicPriorNoiseHasEntities.uploadingBlendFlowRenewingCheckoutLayer.collectorColor?:self.netListPhoto.collectorColor];
}

+ (UIColor *)seeKazakhColor{
    return [UIColor scrollingCardioidBendEndpointCupNot:DenyArmMapConfig.shared.basicPriorNoiseHasEntities.uploadingBlendFlowRenewingCheckoutLayer.seeKazakhColor?:self.netListPhoto.seeKazakhColor];
}

+ (UIColor *)wonVersionsColor {
    NSString *hex = DenyArmMapConfig.shared.basicPriorNoiseHasEntities.uploadingBlendFlowRenewingCheckoutLayer.wonVersionsColor;
    return hex.signItemRetTwoThumbnail ? [UIColor scrollingCardioidBendEndpointCupNot:hex] : UIColor.whiteColor;
}

+ (UIColor *)keysRetryHalfDuplexSpacingColor{
    return [UIColor scrollingCardioidBendEndpointCupNot:DenyArmMapConfig.shared.basicPriorNoiseHasEntities.uploadingBlendFlowRenewingCheckoutLayer.keysRetryHalfDuplexSpacingColor?:self.netListPhoto.keysRetryHalfDuplexSpacingColor];
}

+ (NSString *)adjustingTexturedPreventProximityLaunchingImage{
    NSString *image = DenyArmMapConfig.shared.basicPriorNoiseHasEntities.uploadingBlendFlowRenewingCheckoutLayer.adjustingTexturedPreventProximityLaunchingImage;
    return image.signItemRetTwoThumbnail ? image : nil;
}

+ (NSString *)nibblesResponsesAudiencePastCapImage{
    NSString *image = DenyArmMapConfig.shared.basicPriorNoiseHasEntities.uploadingBlendFlowRenewingCheckoutLayer.nibblesResponsesAudiencePastCapImage;
    return image.signItemRetTwoThumbnail ? image : nil;
}

+ (void)talkBeaconsWayZoneStandAction {
    if (DenyArmMapConfig.shared.liftLogForkStatus != PetiteConfirmSpecifiedBrotherAnimatorAdverb) {
        DenyArmMapConfig.shared.liftLogForkStatus = ProxyTurnExpiresBitDiscardsLetter;
    }
}

+ (UIView *)siteThumbView {
    if (DenyArmMapConfig.shared.basicPriorNoiseHasEntities.menBitMobileEngineReferenceSob.signItemRetTwoThumbnail) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:DenyArmMapConfig.shared.basicPriorNoiseHasEntities.menBitMobileEngineReferenceSob]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [SheTagInfo meteringName];
        label.textColor = [self seeKazakhColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

+ (UILabel *)calciumPublisherSourceOpacityCompany:(NSString *)title {
    UILabel *label = [UILabel new];
    label.text = title;
    label.textColor = [self seeKazakhColor];
    label.font = [UIFont systemFontOfSize:13];
    return label;
}

+ (UIButton *)qualityMasterPrecisionMillCause:(NSString *)title {
    UIButton *button = [[UIButton alloc] init];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self seeKazakhColor] forState:UIControlStateNormal];
    [button setTitleColor:UIColor.lightGrayColor forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:13];
    return button;
}

+ (UIButton *)alignmentBlindingScrollInstancesBuildColor:(NSString *)title {

    XXGCapsuleButton *button = [XXGCapsuleButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setTitleColor:[self wonVersionsColor] forState:UIControlStateNormal];
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    
    button.layer.masksToBounds = YES;

    NSString *factDenyClamp = [self nibblesResponsesAudiencePastCapImage];
    if (factDenyClamp) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:factDenyClamp]
                                                    options:0
                                                   progress:nil
                                                  completed:^(UIImage *image, NSData *data, NSError *error, SDImageCacheType cacheType, BOOL finished, NSURL *imageURL) {
            if (image) {
                dispatch_async(dispatch_get_main_queue(), ^{
                    [button setBackgroundImage:image forState:UIControlStateNormal];
                    [button setBackgroundImage:[UIImage skinAnyClipMapColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage skinAnyClipMapColor:[self seeKazakhColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage skinAnyClipMapColor:[self seeKazakhColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage skinAnyClipMapColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)cancelZeroHeadsetPreservedOffPager:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (SortRetModel *bag in DenyArmMapConfig.shared.basicPriorNoiseHasEntities.launchEquallyMaxChargeCenteringLarger) {
        UIView *button = [self includesSheFunnelVendorAbsentCap:bag.alonePatchText
                                           connectedColor:[UIColor scrollingCardioidBendEndpointCupNot:bag.ourLateWinColor]
                                                aloneInfo:[self easySixDerivedAngularDark:bag]
                                           menThreeWayBad:bag.tipTremor
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)easySixDerivedAngularDark:(SortRetModel *)bag {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t plugToken;
    dispatch_once(&plugToken, ^{
        map = @{
            
            self.netListPhoto.peakMaster    : self.netListPhoto.amharicEarArtsAlcoholSafeReserved,
            self.netListPhoto.feedCatalan   : self.netListPhoto.ouncesHisGlyphTopBedShortcuts,
            self.netListPhoto.sixFarKeyWire : self.netListPhoto.resignExpertTagReturnEquallyUplink,

self.netListPhoto.bitFull       : self.netListPhoto.bigUnableNearestThirdApply,
            self.netListPhoto.acceptReports : self.netListPhoto.eraAxesAwayFallbackOffInvite,
            self.netListPhoto.baseSerial : self.netListPhoto.amharicEarArtsAlcoholSafeReserved
        };
    });
    if (bag.readoutTab.lawDiskPause) {
        
        bag.readoutTab = map[bag.tipTremor];
    }
    return bag.readoutTab;
}

+ (UIView *)includesSheFunnelVendorAbsentCap:(NSString *)title
                      connectedColor:(UIColor *)titleColor
                           aloneInfo:(NSString *)image
                      menThreeWayBad:(NSString *)idf
                              target:(id)target
                              action:(SEL)action {
    
    UIView *view = [[UIView alloc] init];
    view.backgroundColor = UIColor.clearColor;
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.layer.masksToBounds = YES;
    button.accessibilityIdentifier = idf;
    
    if ([self monitoredTeluguPositionsDiscountKirghiz:image]) {
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:image] options:0 progress:nil completed:^(UIImage * _Nullable image2, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
            dispatch_async(dispatch_get_main_queue(), ^{
                [button setImage:image2 forState:UIControlStateNormal];
            });
        }];

    }else {
        UIImage *dogImage = [[UIImage canSendMismatchSpousesNextName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self seeKazakhColor];
        [button setImage:dogImage forState:UIControlStateNormal];
    }
    
    button.contentEdgeInsets = UIEdgeInsetsMake(0, 0, 0, 0);
    [[button imageView] setContentMode:UIViewContentModeScaleAspectFill];
    button.contentHorizontalAlignment= UIControlContentHorizontalAlignmentFill;
    button.contentVerticalAlignment = UIControlContentVerticalAlignmentFill;
    [button addTarget:target action:action forControlEvents:(UIControlEventTouchUpInside)];
    [view addSubview:button];
    
    UILabel *label = [PriorEarSee calciumPublisherSourceOpacityCompany:title];
    label.textColor = titleColor;
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:12];
    label.numberOfLines = 0;
    [view addSubview:label];
    
    [button mas_makeConstraints:^(MASConstraintMaker *make) {
        make.center.equalTo(view);
        make.size.equalTo(view);
    }];
    
    [label mas_makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(view.mas_bottom).offset(8);
        make.left.right.equalTo(view);
    }];
    
    return view;
}

+ (BOOL)monitoredTeluguPositionsDiscountKirghiz:(NSString *)url
{
    NSString *daily =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",daily];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)interruptOffsetHectaresPersonalHighlightFeaturesCode {
    UITextField *textField = [self falloffEditField:self.drawCreditLeft.republicInterPostcardCenteringChinaUnfocusedCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)funnelHeapOldRotorOutputsPace {
    UITextField *textField = [self falloffEditField:self.drawCreditLeft.rectifiedPolarDimensionAmbientProducer isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)capSunRemembersClampingStrongestAccount {
    return [self falloffEditField:self.drawCreditLeft.formTabCutRaw isSecure:NO];
}

+ (UITextField *)indianClaimBinSlashesInitiallyPassword:(BOOL)isNew {
    UITextField *textField = [self falloffEditField:isNew?self.drawCreditLeft.uploadingArrowCustodianShutdownSampling:self.drawCreditLeft.featGolfSurgeKey isSecure:YES];
    [self hectaresDefaultProblemRatioMidNewtonsBar:textField cutSize:CGSizeMake(PriorEarSee.netListPhoto.preciseTrust, PriorEarSee.netListPhoto.preciseTrust)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *rateImage = [UIImage canSendMismatchSpousesNextName:self.netListPhoto.artworkWaxEchoWaxResources];
    UIImage *rejectImage = [UIImage canSendMismatchSpousesNextName:self.netListPhoto.offerMastersFragmentSlideNotified];
    rightButton.frame = CGRectMake(0, 0, PriorEarSee.netListPhoto.preciseTrust, PriorEarSee.netListPhoto.preciseTrust);
    [rightButton setImage:rateImage forState:UIControlStateNormal];
    [rightButton setImage:rejectImage forState:UIControlStateSelected];
    CGFloat incomingPull = (PriorEarSee.netListPhoto.preciseTrust - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(incomingPull, incomingPull, incomingPull, incomingPull)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)falloffEditField:(NSString *)placeholder isSecure:(BOOL)isSecure {
    UITextField *textField = [UITextField new];
    textField.secureTextEntry = isSecure;
    textField.clearButtonMode = UITextFieldViewModeWhileEditing;
    textField.autocorrectionType = UITextAutocorrectionTypeNo;
    textField.autocapitalizationType = UITextAutocapitalizationTypeNone;
    textField.font = [UIFont systemFontOfSize:15];
    textField.layer.borderColor = [self seeKazakhColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.netListPhoto.frenchFuture;
    
    textField.backgroundColor = [self adjustingTexturedPreventProximityLaunchingImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self stillInuitNormalGatewaysEngineLayoutStrength:textField cutSize:CGSizeMake(10, PriorEarSee.netListPhoto.preciseTrust)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

+ (void)stillInuitNormalGatewaysEngineLayoutStrength:(UITextField *)textField cutSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *equalSon = [[UIView alloc] initWithFrame:frame];
    textField.leftViewMode = UITextFieldViewModeAlways;
    textField.leftView = equalSon;
}

+ (void)hectaresDefaultProblemRatioMidNewtonsBar:(UITextField *)textField cutSize:(CGSize)size
{
    CGRect frame = {{0,0},size};
    UIView *diastolic = [[UIView alloc] initWithFrame:frame];
    textField.rightViewMode = UITextFieldViewModeAlways;
    textField.rightView = diastolic;
}
@end
