






#import "BadgeSunIcy.h"
#import "NSString+ArtBeacon.h"
#import "UIImageView+WebCache.h"
#import "ForbidInfo.h"
#import "UIColor+CupColor.h"
#import "UIImage+MidImage.h"
#import "Masonry.h"

#import "YearsShiftConfig.h"
#import "ExternManager.h"
#import "DanceDecodingIntroYouHeavy.h"


@interface XXGCapsuleButton : UIButton
@end

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

static OtherRemaining *_lastCaretReply = nil;
static YetAnother *_greekBlueArt = nil;

@implementation BadgeSunIcy

+ (OtherRemaining *)lastCaretReply {
    if (!_lastCaretReply) {
        _lastCaretReply = [DanceDecodingIntroYouHeavy playbackOutCurlBufferLexiconStop:[OtherRemaining class]];
    }
    return _lastCaretReply;
}

+ (YetAnother *)greekBlueArt {
    if (!_greekBlueArt) {
        _greekBlueArt = [DanceDecodingIntroYouHeavy unboundSkippedLaotianPageOurIts:[YetAnother class]];
    }
    return _greekBlueArt;
}

+ (NSString *)backwardsProblemPredictedBloodLinearlyName {
    return [ExternManager textureSwashesCupSyntheticPolar].preserveName;
}

+ (NSString *)panelDailyAlongImperialSymmetricToken {
    return [ExternManager textureSwashesCupSyntheticPolar].titleCutToken;
}

+ (CGFloat)askHighestEpsilonDaysRedo {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.getConstructSunSingularAsk.pingVowel?:self.greekBlueArt.selfIcyTagCat;
}

+ (NSString *)scalarHomeSocialAppearingDevices {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.airBandSink.gaspMoment;
}

+ (NSString *)ignoresCricketDidMixPasteEthernet {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.getConstructSunSingularAsk.millibarsLanguageEndAirConsole;
}

+ (CGFloat)canListAirSynthesisSave {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.getConstructSunSingularAsk.workoutsDarkDeletingSliceResolved;
}
+ (BOOL)workoutsDarkDeletingSliceResolved {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.getConstructSunSingularAsk.workoutsDarkDeletingSliceResolved;
}

+ (NSString *)drivenSemanticBeaconMandarinPlain {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.icyRawSlight.smallestResize;
}
+ (NSString *)exerciseCardTerminalQuoteApple {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.icyRawSlight.looperEnable;
}

+ (BOOL)indicatorDayHasSlashedTriggers {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.launchingTableIssueInventoryPinkAlcoholInner;
}

+ (BOOL)leaveTrust {
    return YearsShiftConfig.shared.radixIssueHectaresNowThird.icyRawSlight.leaveTrust;
}

+ (BOOL)mealClustersPickerSpaceThatCert {
    return [YearsShiftConfig shared].mealClustersPickerSpaceThatCert;
}

+ (NSArray *)thickManagerMinderHerPast {
    NSArray *loudYouSynthesisOcclusionProviding = [ExternManager exporterLowercasePhotosNameHandlesIrregular];
    NSMutableArray *face = [NSMutableArray arrayWithCapacity:loudYouSynthesisOcclusionProviding.count];
    
    for (ZoomRunOutCap *ear in loudYouSynthesisOcclusionProviding) {
        NSString *image = self.greekBlueArt.mathCheckNearbyDriveWindowScanned;
        switch (ear.revealedType) {
            case BusAdjustingMessagingWonRecorder:
                image = self.greekBlueArt.cousinUndoneEllipseBitResumeWarp;
                break;
            case ChunkPinPowerAccount:
            case SameAffectingRegister:
                image = self.greekBlueArt.mathCheckNearbyDriveWindowScanned;
                break;
            case EntityKannadaHasSonPin:
                image = self.greekBlueArt.mayParentNeedStartedPrototypeOwn;
                break;

case AcceptHelloNapTrademarkExpertWho:
                image = self.greekBlueArt.pedometerTagBreakingSatisfiedRationalFactored;
                break;
            case FooterStylePinDecisionBelow:
                image = self.greekBlueArt.extentsAmbientLayeringJouleDevices;
                break;
            default:
                image = self.greekBlueArt.cousinUndoneEllipseBitResumeWarp;
                break;
        }
        
        NSArray *our = @[ear.preserveName ?: @"",image,ear.pubLandscapeFunctionDeclinedHindiTime];
        [face addObject:our];
    }
    
    
    NSArray *entriesWas = [face sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double pen = [a[2] doubleValue];
        double wet = [b[2] doubleValue];
        if (pen > wet) {
            return NSOrderedAscending; 
        } else if (pen < wet) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return entriesWas;
}

+ (CGSize)alphabetMattingDismissalBigCalorieEncodeSize {
    return CGSizeMake(self.greekBlueArt.helperInactiveThreadPrimaryExtentWidth, self.greekBlueArt.packetUploadingDownhillResolvedDispatchSecurity);
}

+ (UIColor *)wayArmourColor{
    return [UIColor filenameMouthSoloistAbsentBrotherLaw:YearsShiftConfig.shared.radixIssueHectaresNowThird.eraLossFactoriesCoachedChestOnce.wayArmourColor?:self.greekBlueArt.wayArmourColor];
}

+ (UIColor *)lemmaBestColor{
    return [UIColor filenameMouthSoloistAbsentBrotherLaw:YearsShiftConfig.shared.radixIssueHectaresNowThird.eraLossFactoriesCoachedChestOnce.lemmaBestColor?:self.greekBlueArt.lemmaBestColor];
}

+ (UIColor *)childrenPanColor {
    NSString *hex = YearsShiftConfig.shared.radixIssueHectaresNowThird.eraLossFactoriesCoachedChestOnce.childrenPanColor;
    return hex.trapOperatingRedQuitRadio ? [UIColor filenameMouthSoloistAbsentBrotherLaw:hex] : UIColor.whiteColor;
}

+ (UIColor *)bigStartBundlesGenericScrollColor{
    return [UIColor filenameMouthSoloistAbsentBrotherLaw:YearsShiftConfig.shared.radixIssueHectaresNowThird.eraLossFactoriesCoachedChestOnce.bigStartBundlesGenericScrollColor?:self.greekBlueArt.bigStartBundlesGenericScrollColor];
}

+ (NSString *)bikeContactArbiterRadioHockeyImage{
    NSString *image = YearsShiftConfig.shared.radixIssueHectaresNowThird.eraLossFactoriesCoachedChestOnce.bikeContactArbiterRadioHockeyImage;
    return image.trapOperatingRedQuitRadio ? image : nil;
}

+ (NSString *)subgroupProductChapterSexStoodImage{
    NSString *image = YearsShiftConfig.shared.radixIssueHectaresNowThird.eraLossFactoriesCoachedChestOnce.subgroupProductChapterSexStoodImage;
    return image.trapOperatingRedQuitRadio ? image : nil;
}

+ (void)revisionsHardQuotationLaunchSeeAction {
    if (YearsShiftConfig.shared.producedMaxStatus != HashFormatSpousesCarColumnsVital) {
        YearsShiftConfig.shared.producedMaxStatus = TwoAscendedBoxPairElevationIssuer;
    }
}

+ (UIView *)wonLaunchView {
    if (YearsShiftConfig.shared.radixIssueHectaresNowThird.languagesClockwiseExclusivePeerBusResponse.trapOperatingRedQuitRadio) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:YearsShiftConfig.shared.radixIssueHectaresNowThird.languagesClockwiseExclusivePeerBusResponse]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [ForbidInfo relativeName];
        label.textColor = [self lemmaBestColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

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

    return button;
}

+ (NSArray *)serverCallbacksStepsonMightLocationsHuman:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (OffRearModel *ear in YearsShiftConfig.shared.radixIssueHectaresNowThird.skinThousandsLinkageDistortedItsEncoding) {
        UIView *button = [self weekCollectorCommandOwnCloudKit:ear.anyAreRoleText
                                           parentBadColor:[UIColor filenameMouthSoloistAbsentBrotherLaw:ear.scriptTempColor]
                                                getDivide:[self phasePoolRareFutureAuthority:ear]
                                           fourDustTabJob:ear.universal
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)phasePoolRareFutureAuthority:(OffRearModel *)ear {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t forkToken;
    dispatch_once(&forkToken, ^{
        map = @{
            
            self.greekBlueArt.maxRematch    : self.greekBlueArt.cousinUndoneEllipseBitResumeWarp,
            self.greekBlueArt.symptomDate   : self.greekBlueArt.mayParentNeedStartedPrototypeOwn,
            self.greekBlueArt.encodingEuler : self.greekBlueArt.mathCheckNearbyDriveWindowScanned,

self.greekBlueArt.ellipse       : self.greekBlueArt.extentsAmbientLayeringJouleDevices,
            self.greekBlueArt.twoHexOneDate : self.greekBlueArt.pedometerTagBreakingSatisfiedRationalFactored,
            self.greekBlueArt.sawPickIll : self.greekBlueArt.cousinUndoneEllipseBitResumeWarp
        };
    });
    if (ear.gaspMoment.chainPoolTop) {
        
        ear.gaspMoment = map[ear.universal];
    }
    return ear.gaspMoment;
}

+ (UIView *)weekCollectorCommandOwnCloudKit:(NSString *)title
                      parentBadColor:(UIColor *)titleColor
                           getDivide:(NSString *)image
                      fourDustTabJob:(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 sonHindiLongerCompactAnchoring: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 *catImage = [[UIImage indicatedClampingFoggyPrincipalBeginningName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self lemmaBestColor];
        [button setImage:catImage 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 = [BadgeSunIcy detectionRangingReadyDryMajor: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)sonHindiLongerCompactAnchoring:(NSString *)url
{
    NSString *coast =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",coast];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)exceedsExplicitKitSegmentedAdvisedEnhanceCode {
    UITextField *textField = [self smoothWaistField:self.lastCaretReply.addLingerDidMartialQualifiedSheetCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)positionsSerializeNameLandmarkUnwindMicro {
    UITextField *textField = [self smoothWaistField:self.lastCaretReply.hexDebuggingMoodResizingVector isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)mixTelephonyCanadianServiceUrgentAccount {
    return [self smoothWaistField:self.lastCaretReply.napTapTurkmen isSecure:NO];
}

+ (UITextField *)clearedFootLessAvailChinesePassword:(BOOL)isNew {
    UITextField *textField = [self smoothWaistField:isNew?self.lastCaretReply.proxiesInstantSigmaQualifiedTags:self.lastCaretReply.eggCarFunAutoKey isSecure:YES];
    [self tatarSafariBriefSkipChineseRatioFragment:textField tabSize:CGSizeMake(BadgeSunIcy.greekBlueArt.muteEmailTab, BadgeSunIcy.greekBlueArt.muteEmailTab)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *restImage = [UIImage indicatedClampingFoggyPrincipalBeginningName:self.greekBlueArt.revertFamilyOpenRecordingIcy];
    UIImage *anyItsImage = [UIImage indicatedClampingFoggyPrincipalBeginningName:self.greekBlueArt.tableGurationTaggerTeamNap];
    rightButton.frame = CGRectMake(0, 0, BadgeSunIcy.greekBlueArt.muteEmailTab, BadgeSunIcy.greekBlueArt.muteEmailTab);
    [rightButton setImage:restImage forState:UIControlStateNormal];
    [rightButton setImage:anyItsImage forState:UIControlStateSelected];
    CGFloat pressSpecial = (BadgeSunIcy.greekBlueArt.muteEmailTab - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(pressSpecial, pressSpecial, pressSpecial, pressSpecial)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)smoothWaistField:(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 lemmaBestColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.greekBlueArt.alongAirUndo;
    
    textField.backgroundColor = [self bikeContactArbiterRadioHockeyImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self borderedYoungerDuplicateLookupUnboundAssameseRecognize:textField tabSize:CGSizeMake(10, BadgeSunIcy.greekBlueArt.muteEmailTab)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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