






#import "PutBelowEye.h"
#import "NSString+AskFinger.h"
#import "UIImageView+WebCache.h"
#import "ParentInfo.h"
#import "UIColor+OneColor.h"
#import "UIImage+DidImage.h"
#import "Masonry.h"

#import "HitPrefersConfig.h"
#import "BigDayManager.h"
#import "CommandsCopperExclusiveVortexRecovery.h"


@interface XXGCapsuleButton : UIButton
@end

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

static VisitBadAskOur *_listColumnRoot = nil;
static AnyEggMind *_yetRevealHow = nil;

@implementation PutBelowEye

+ (VisitBadAskOur *)listColumnRoot {
    if (!_listColumnRoot) {
        _listColumnRoot = [CommandsCopperExclusiveVortexRecovery variablesPrepareRecordingShortcutsUnsafeIntervals:[VisitBadAskOur class]];
    }
    return _listColumnRoot;
}

+ (AnyEggMind *)yetRevealHow {
    if (!_yetRevealHow) {
        _yetRevealHow = [CommandsCopperExclusiveVortexRecovery plugForTurnNotIntervalChain:[AnyEggMind class]];
    }
    return _yetRevealHow;
}

+ (NSString *)nibblesSeeGrayGloballyMandatoryName {
    return [BigDayManager renderLighterTryBuddyRegister].cutIdiomName;
}

+ (NSString *)jabberNapRatingsScalarNarrativeToken {
    return [BigDayManager renderLighterTryBuddyRegister].arrowRetToken;
}

+ (CGFloat)makerAccountPauseScanFun {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.supportedPubHundredCapturesNet.detailPub?:self.yetRevealHow.rawPinTextOpt;
}

+ (NSString *)settingTornadoDisappearBookBleed {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.hardPassUse.forSymbols;
}

+ (NSString *)asleepAccuracySecondStopChromaRussian {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.supportedPubHundredCapturesNet.basicBirthSoccerPutCookie;
}

+ (CGFloat)tagSequencePresenceDynamicJabber {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.supportedPubHundredCapturesNet.rareForExemplarCapturingHis;
}
+ (BOOL)rareForExemplarCapturingHis {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.supportedPubHundredCapturesNet.rareForExemplarCapturingHis;
}

+ (NSString *)redirectSaturatedSessionsModalSalt {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.prefixesSnow.wetWalkHueCaps;
}
+ (NSString *)foundTextUnfocusedExtendingStation {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.prefixesSnow.cascadeYahoo;
}

+ (BOOL)causeArrowAdditiveWaitingRoot {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.shiftConditionTallPaceSleetRuleHis;
}

+ (BOOL)waitStereo {
    return HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.prefixesSnow.waitStereo;
}

+ (BOOL)operateInferResizingFourteenSleetInstalls {
    return [HitPrefersConfig shared].operateInferResizingFourteenSleetInstalls;
}

+ (NSArray *)darkerSerifBeganPrecisionConverged {
    NSArray *invisibleFilteredItemMightStereo = [BigDayManager updatesShrinkForbiddenOperatingBoldFax];
    NSMutableArray *tool = [NSMutableArray arrayWithCapacity:invisibleFilteredItemMightStereo.count];
    
    for (ModeHungarian *our in invisibleFilteredItemMightStereo) {
        NSString *image = self.yetRevealHow.extendingCapRecentForSwashesMore;
        switch (our.listNeedType) {
            case UploadingEndsSeeInuitEngineer:
                image = self.yetRevealHow.dispatchMinderHeadlineSunNapAttached;
                break;
            case InsteadSpouseAccount:
            case ArtInstantMidRegister:
                image = self.yetRevealHow.extendingCapRecentForSwashesMore;
                break;
            case ChromiumStartingJoiningDetermineLog:
                image = self.yetRevealHow.canonLeapSphereBuddhistCleanupBarriers;
                break;

case AloneMemberGlyphWarpRomanAny:
                image = self.yetRevealHow.hormoneDisparityTopTapsEventTwenty;
                break;
            case FinalTrustedLimitPutFooter:
                image = self.yetRevealHow.bounceYesterdayRevisionsReportingKit;
                break;
            default:
                image = self.yetRevealHow.dispatchMinderHeadlineSunNapAttached;
                break;
        }
        
        NSArray *fit = @[our.cutIdiomName ?: @"",image,our.bankWireIronDryAssistantTime];
        [tool addObject:fit];
    }
    
    
    NSArray *selfTagBox = [tool sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double bit = [a[2] doubleValue];
        double ask = [b[2] doubleValue];
        if (bit > ask) {
            return NSOrderedAscending; 
        } else if (bit < ask) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return selfTagBox;
}

+ (CGSize)northNetMindAffectingRunMessagingSize {
    return CGSizeMake(self.yetRevealHow.aboutStandardTeethSpaceLikeWidth, self.yetRevealHow.cursorsFinishedSecondPaceRunHint);
}

+ (UIColor *)andHebrewColor{
    return [UIColor publisherWidgetTranslateBaseballEntitiesSudden:HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.gracefulNorwegianChannelSoftnessLogoLearn.andHebrewColor?:self.yetRevealHow.andHebrewColor];
}

+ (UIColor *)charAlienColor{
    return [UIColor publisherWidgetTranslateBaseballEntitiesSudden:HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.gracefulNorwegianChannelSoftnessLogoLearn.charAlienColor?:self.yetRevealHow.charAlienColor];
}

+ (UIColor *)tipAirBasicColor {
    NSString *hex = HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.gracefulNorwegianChannelSoftnessLogoLearn.tipAirBasicColor;
    return hex.featuredVitalityEyeFormatsWait ? [UIColor publisherWidgetTranslateBaseballEntitiesSudden:hex] : UIColor.whiteColor;
}

+ (UIColor *)forHasAlphabetLocalCelticColor{
    return [UIColor publisherWidgetTranslateBaseballEntitiesSudden:HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.gracefulNorwegianChannelSoftnessLogoLearn.forHasAlphabetLocalCelticColor?:self.yetRevealHow.forHasAlphabetLocalCelticColor];
}

+ (NSString *)stampEnclosingWebpageCatForceImage{
    NSString *image = HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.gracefulNorwegianChannelSoftnessLogoLearn.stampEnclosingWebpageCatForceImage;
    return image.featuredVitalityEyeFormatsWait ? image : nil;
}

+ (NSString *)layoutFocusedMaxKilogramsMagicImage{
    NSString *image = HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.gracefulNorwegianChannelSoftnessLogoLearn.layoutFocusedMaxKilogramsMagicImage;
    return image.featuredVitalityEyeFormatsWait ? image : nil;
}

+ (void)overdueHundredFoundTryOrderAction {
    if (HitPrefersConfig.shared.inferWinSumStatus != ObtainCornerMoreAttachStableDefault) {
        HitPrefersConfig.shared.inferWinSumStatus = PreventHueCountPreviousUpdatingAdd;
    }
}

+ (UIView *)looseLinkView {
    if (HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.norwegianResonantCautionAdobeZipMust.featuredVitalityEyeFormatsWait) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.norwegianResonantCautionAdobeZipMust]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [ParentInfo pinBezelName];
        label.textColor = [self charAlienColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

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

    return button;
}

+ (NSArray *)splitSnapPutDisorderAbortedEnvelope:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (DogTreeModel *our in HitPrefersConfig.shared.slovakHasTruncateAbsoluteMan.initiallyLongitudeGrayEmbeddingPromiseEuropean) {
        UIView *button = [self nineteenSettingsTeethCancelsPauseCursor:our.shelfLeakyText
                                           buildLateColor:[UIColor publisherWidgetTranslateBaseballEntitiesSudden:our.mayConvertColor]
                                                variation:[self thumbVowelHostSwitchGraceful:our]
                                           unorderedAlong:our.sensorTab
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)thumbVowelHostSwitchGraceful:(DogTreeModel *)our {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t callToken;
    dispatch_once(&callToken, ^{
        map = @{
            
            self.yetRevealHow.sideBarPut    : self.yetRevealHow.dispatchMinderHeadlineSunNapAttached,
            self.yetRevealHow.kerningSnap   : self.yetRevealHow.canonLeapSphereBuddhistCleanupBarriers,
            self.yetRevealHow.filmCapturing : self.yetRevealHow.extendingCapRecentForSwashesMore,

self.yetRevealHow.allThat       : self.yetRevealHow.bounceYesterdayRevisionsReportingKit,
            self.yetRevealHow.blockSnowLead : self.yetRevealHow.hormoneDisparityTopTapsEventTwenty,
            self.yetRevealHow.pubEditEye : self.yetRevealHow.dispatchMinderHeadlineSunNapAttached
        };
    });
    if (our.forSymbols.theIndexBlob) {
        
        our.forSymbols = map[our.sensorTab];
    }
    return our.forSymbols;
}

+ (UIView *)nineteenSettingsTeethCancelsPauseCursor:(NSString *)title
                      buildLateColor:(UIColor *)titleColor
                           variation:(NSString *)image
                      unorderedAlong:(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 pinkFunnelAlternateSpineUtility: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 *eyeImage = [[UIImage unsignedTableRenewExcludedSlabName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self charAlienColor];
        [button setImage:eyeImage 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 = [PutBelowEye tensionAssertRaceResumedPrevent: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)pinkFunnelAlternateSpineUtility:(NSString *)url
{
    NSString *front =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",front];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)icyAmpereInstallLinerRomanLookCode {
    UITextField *textField = [self netBurnTypeField:self.listColumnRoot.flightsCapPredicateMixTableManCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)stereoStateAcceptedGetImportantMask {
    UITextField *textField = [self netBurnTypeField:self.listColumnRoot.adobePencilVirtualWinExported isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)shakeIterationAssemblyLambdaPreparedAccount {
    return [self netBurnTypeField:self.listColumnRoot.recoveryCount isSecure:NO];
}

+ (UITextField *)stayNativeWetCalculateLawPassword:(BOOL)isNew {
    UITextField *textField = [self netBurnTypeField:isNew?self.listColumnRoot.hoursZipSequencesFitMight:self.listColumnRoot.nameResetTrapKey isSecure:YES];
    [self onceKerningYardTruncateVisitPinRegions:textField maySize:CGSizeMake(PutBelowEye.yetRevealHow.eyeGramChunk, PutBelowEye.yetRevealHow.eyeGramChunk)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *tagsImage = [UIImage unsignedTableRenewExcludedSlabName:self.yetRevealHow.labelSkipParentalFreezingDetermine];
    UIImage *bottomImage = [UIImage unsignedTableRenewExcludedSlabName:self.yetRevealHow.violationUnboundedPassAppendedSubgroups];
    rightButton.frame = CGRectMake(0, 0, PutBelowEye.yetRevealHow.eyeGramChunk, PutBelowEye.yetRevealHow.eyeGramChunk);
    [rightButton setImage:tagsImage forState:UIControlStateNormal];
    [rightButton setImage:bottomImage forState:UIControlStateSelected];
    CGFloat bounceFormat = (PutBelowEye.yetRevealHow.eyeGramChunk - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(bounceFormat, bounceFormat, bounceFormat, bounceFormat)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)netBurnTypeField:(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 charAlienColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.yetRevealHow.buildCanPlan;
    
    textField.backgroundColor = [self stampEnclosingWebpageCatForceImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self wrappingDeferredIodinePromisedNominallySerbianAbort:textField maySize:CGSizeMake(10, PutBelowEye.yetRevealHow.eyeGramChunk)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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