






#import "BinFaxEight.h"
#import "NSString+OddArmpit.h"
#import "UIImageView+WebCache.h"
#import "ActiveInfo.h"
#import "UIColor+FunColor.h"
#import "UIImage+EndImage.h"
#import "Masonry.h"

#import "ArteryPlugConfig.h"
#import "AnyCutManager.h"
#import "FreeDescribesArmpitLossyBox.h"


@interface XXGCapsuleButton : UIButton
@end

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

static InfoResizeThin *_signRoomModify = nil;
static FeedSyntax *_icyAboutDrum = nil;

@implementation BinFaxEight

+ (InfoResizeThin *)signRoomModify {
    if (!_signRoomModify) {
        _signRoomModify = [FreeDescribesArmpitLossyBox recordingPartUsesSymmetricSharpnessParagraph:[InfoResizeThin class]];
    }
    return _signRoomModify;
}

+ (FeedSyntax *)icyAboutDrum {
    if (!_icyAboutDrum) {
        _icyAboutDrum = [FreeDescribesArmpitLossyBox flatAdvisoryWarningContainerMostHand:[FeedSyntax class]];
    }
    return _icyAboutDrum;
}

+ (NSString *)legibleUnknownRightMindfulPostalName {
    return [AnyCutManager modelShoulderSparseDuplicateSun].trapPortName;
}

+ (NSString *)scanningTildeYouStoneManToken {
    return [AnyCutManager modelShoulderSparseDuplicateSun].yearLinkToken;
}

+ (CGFloat)spanRotateExistingServerParser {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.expensiveDeliveryYouLanguageSources.modalLeap?:self.icyAboutDrum.netEraCropWho;
}

+ (NSString *)providingGradeHoursRestoresHourly {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.earEmbedded.eyeTrigger;
}

+ (NSString *)localityBackupControlProgressBoundReversed {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.expensiveDeliveryYouLanguageSources.providersKannadaAdditionsAdvancedRed;
}

+ (CGFloat)ascentTryMalayDerivedBin {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.expensiveDeliveryYouLanguageSources.napRetAwakeDismissedTime;
}
+ (BOOL)napRetAwakeDismissedTime {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.expensiveDeliveryYouLanguageSources.napRetAwakeDismissedTime;
}

+ (NSString *)markAddressesWritingTagalogWarn {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.carWakeDance.capRedFaceBlur;
}
+ (NSString *)labelYouTopCutCat {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.carWakeDance.herBehaveBin;
}

+ (BOOL)linearlyRollHisProposedEqual {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.basalFeedAmharicSigmaDemandWonWater;
}

+ (BOOL)earUseWake {
    return ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.carWakeDance.earUseWake;
}

+ (BOOL)commandGainRecorderPackTowerTorque {
    return [ArteryPlugConfig shared].commandGainRecorderPackTowerTorque;
}

+ (NSArray *)elapsedMetalGeometryInviteeMany {
    NSArray *gradeSwipeCallSumLine = [AnyCutManager herPrimeCountPanInstallsLeft];
    NSMutableArray *clip = [NSMutableArray arrayWithCapacity:gradeSwipeCallSumLine.count];
    
    for (TradIllAnyDry *obj in gradeSwipeCallSumLine) {
        NSString *image = self.icyAboutDrum.overageManyRecoveryFoundPerfusionMin;
        switch (obj.crossMenType) {
            case PubInterProgramMeterBasal:
                image = self.icyAboutDrum.fatPubBeforeAdditionsNearCase;
                break;
            case CanAskYetGrowAccount:
            case AlienDenyHardRegister:
                image = self.icyAboutDrum.overageManyRecoveryFoundPerfusionMin;
                break;
            case VitalityMinSynthesisBookCursor:
                image = self.icyAboutDrum.ticketsPopEvictionTriggersArrayEarlier;
                break;
                
case IllGenrePhonogramHomeRaw:
                image = self.icyAboutDrum.hiddenMildWireBasalSum;
                break;
            case TerminalTeethDecryptedTranslateUnwindingThin:
                image = self.icyAboutDrum.forWithTreeStarBrotherOutputs;
                break;

            default:
                image = self.icyAboutDrum.fatPubBeforeAdditionsNearCase;
                break;
        }
        
        NSArray *sob = @[obj.trapPortName ?: @"",image,obj.looperDashIllCrossSpousesTime];
        [clip addObject:sob];
    }
    
    
    NSArray *processIll = [clip sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double fat = [a[2] doubleValue];
        double say = [b[2] doubleValue];
        if (fat > say) {
            return NSOrderedAscending; 
        } else if (fat < say) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return processIll;
}

+ (CGSize)clampPressedAgeFireRunningLeaseSize {
    return CGSizeMake(self.icyAboutDrum.logPacketsUrgentNapBestWidth, self.icyAboutDrum.toggleOperateInitiatedCarExternalFootball);
}

+ (UIColor *)squareBarColor{
    return [UIColor voiceAggregateSlashesSeasonMouthStarting:ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.magnesiumWarpTipMorePanoramasAchieved.squareBarColor?:self.icyAboutDrum.squareBarColor];
}

+ (UIColor *)indentJobColor{
    return [UIColor voiceAggregateSlashesSeasonMouthStarting:ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.magnesiumWarpTipMorePanoramasAchieved.indentJobColor?:self.icyAboutDrum.indentJobColor];
}

+ (UIColor *)hostIcyDiskColor {
    NSString *hex = ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.magnesiumWarpTipMorePanoramasAchieved.hostIcyDiskColor;
    return hex.usageNewtonsAreFractionsFlash ? [UIColor voiceAggregateSlashesSeasonMouthStarting:hex] : UIColor.whiteColor;
}

+ (UIColor *)bankDaysGaelicInspiredReloadColor{
    return [UIColor voiceAggregateSlashesSeasonMouthStarting:ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.magnesiumWarpTipMorePanoramasAchieved.bankDaysGaelicInspiredReloadColor?:self.icyAboutDrum.bankDaysGaelicInspiredReloadColor];
}

+ (NSString *)icyUighurTallRestoreVerifyImage{
    NSString *image = ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.magnesiumWarpTipMorePanoramasAchieved.icyUighurTallRestoreVerifyImage;
    return image.usageNewtonsAreFractionsFlash ? image : nil;
}

+ (NSString *)milesInfiniteHisTwoChannelsImage{
    NSString *image = ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.magnesiumWarpTipMorePanoramasAchieved.milesInfiniteHisTwoChannelsImage;
    return image.usageNewtonsAreFractionsFlash ? image : nil;
}

+ (void)askDecryptRetForBackupAction {
    if (ArteryPlugConfig.shared.sinAltitudeStatus != BuildRankedTruncateTopOrderedPerformed) {
        ArteryPlugConfig.shared.sinAltitudeStatus = NextHeartSearchingScalarPointOver;
    }
}

+ (UIView *)preferredView {
    if (ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.whiteTriggersRightEmptyReceivesAuthor.usageNewtonsAreFractionsFlash) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.whiteTriggersRightEmptyReceivesAuthor]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [ActiveInfo boxTrustName];
        label.textColor = [self indentJobColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

    NSString *ownInputUnion = [self milesInfiniteHisTwoChannelsImage];
    if (ownInputUnion) {
        
        [[SDWebImageManager sharedManager] loadImageWithURL:[NSURL URLWithString:ownInputUnion]
                                                    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 menHitFoggyGetColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
                });
            }
        }];
        
        [button setBackgroundImage:[UIImage menHitFoggyGetColor:[self indentJobColor]] forState:UIControlStateNormal];
    } else {
        
        [button setBackgroundImage:[UIImage menHitFoggyGetColor:[self indentJobColor]] forState:UIControlStateNormal];
        [button setBackgroundImage:[UIImage menHitFoggyGetColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    }

    return button;
}

+ (NSArray *)megawattsFillTelephotoChineseAfterMake:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (TagFormModel *obj in ArteryPlugConfig.shared.secondsDuplicatePatternComposeClinical.bodyLinearParseWhiteMetricObtain) {
        UIView *button = [self retClosePlugAnchorsIntroLeast:obj.butRowsButText
                                           creamyOldColor:[UIColor voiceAggregateSlashesSeasonMouthStarting:obj.minderPortColor]
                                                fillerBad:[self cursiveReadHandlingPassivelyScrolling:obj]
                                           binOddHintRope:obj.mutations
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)cursiveReadHandlingPassivelyScrolling:(TagFormModel *)obj {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t sideToken;
    dispatch_once(&sideToken, ^{
        map = @{
            
            self.icyAboutDrum.textBusUse    : self.icyAboutDrum.fatPubBeforeAdditionsNearCase,
            self.icyAboutDrum.tallNamePop   : self.icyAboutDrum.ticketsPopEvictionTriggersArrayEarlier,
            self.icyAboutDrum.sendNapBusMid : self.icyAboutDrum.overageManyRecoveryFoundPerfusionMin,
self.icyAboutDrum.yearTag       : self.icyAboutDrum.hiddenMildWireBasalSum,
            self.icyAboutDrum.faxAskTopJoule: self.icyAboutDrum.forWithTreeStarBrotherOutputs,

        };
    });
    if (obj.eyeTrigger.funExclusive) {
        
        obj.eyeTrigger = map[obj.mutations];
    }
    return obj.eyeTrigger;
}

+ (UIView *)retClosePlugAnchorsIntroLeast:(NSString *)title
                      creamyOldColor:(UIColor *)titleColor
                           fillerBad:(NSString *)image
                      binOddHintRope:(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 notifiedEyeIrishCardHealth: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 *oddImage = [[UIImage unifyOccurredTryAwakeNaturalName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self indentJobColor];
        [button setImage:oddImage 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 = [BinFaxEight uploadedConditionStaleCityBig: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)notifiedEyeIrishCardHealth:(NSString *)url
{
    NSString *focal =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",focal];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)paymentsSolvePicturesEnglishExactSessionCode {
    UITextField *textField = [self samePressedField:self.signRoomModify.trialBiotinAllSayStrongestDiscoverCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)portraitsTiedOriginalHockeyHailTheme {
    UITextField *textField = [self samePressedField:self.signRoomModify.binMutationsAdvancesIllSay isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)taskBehaviorsSkippedWarnWakeAccount {
    return [self samePressedField:self.signRoomModify.typeDecigrams isSecure:NO];
}

+ (UITextField *)finalizeConflictsRequestUppercaseMeterPassword:(BOOL)isNew {
    UITextField *textField = [self samePressedField:isNew?self.signRoomModify.boxSceneYetMotionBag:self.signRoomModify.uptimeClampedKey isSecure:YES];
    [self maskNibblesFunnelIncrementResultKeyAlways:textField eraSize:CGSizeMake(BinFaxEight.icyAboutDrum.containerHas, BinFaxEight.icyAboutDrum.containerHas)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *edgaImage = [UIImage unifyOccurredTryAwakeNaturalName:self.icyAboutDrum.negotiateDistanceReadyPeriodQuotes];
    UIImage *moduleImage = [UIImage unifyOccurredTryAwakeNaturalName:self.icyAboutDrum.centersPlugBridgeVisionInteger];
    rightButton.frame = CGRectMake(0, 0, BinFaxEight.icyAboutDrum.containerHas, BinFaxEight.icyAboutDrum.containerHas);
    [rightButton setImage:edgaImage forState:UIControlStateNormal];
    [rightButton setImage:moduleImage forState:UIControlStateSelected];
    CGFloat itsMathBlink = (BinFaxEight.icyAboutDrum.containerHas - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(itsMathBlink, itsMathBlink, itsMathBlink, itsMathBlink)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)samePressedField:(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 indentJobColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.icyAboutDrum.noneHertzAsk;
    
    textField.backgroundColor = [self icyUighurTallRestoreVerifyImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self ampereFindFailureBlendPromiseBorderPurple:textField eraSize:CGSizeMake(10, BinFaxEight.icyAboutDrum.containerHas)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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