






#import "RowGivenOut.h"
#import "NSString+Magnesium.h"
#import "UIImageView+WebCache.h"
#import "SchoolInfo.h"
#import "UIColor+AgeColor.h"
#import "UIImage+TopImage.h"
#import "Masonry.h"

#import "BinForRollConfig.h"
#import "ObtainManager.h"
#import "SwappedGoldenDaysBackupThird.h"


@interface XXGCapsuleButton : UIButton
@end

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

static HeadLowTenHint *_nineHisSoloTen = nil;
static MapPickNot *_mathProxyKin = nil;

@implementation RowGivenOut

+ (HeadLowTenHint *)nineHisSoloTen {
    if (!_nineHisSoloTen) {
        _nineHisSoloTen = [SwappedGoldenDaysBackupThird lockPartlyPhoneticWhoAllGreen:[HeadLowTenHint class]];
    }
    return _nineHisSoloTen;
}

+ (MapPickNot *)mathProxyKin {
    if (!_mathProxyKin) {
        _mathProxyKin = [SwappedGoldenDaysBackupThird bagRetryProductSerbianQuitConflicts:[MapPickNot class]];
    }
    return _mathProxyKin;
}

+ (NSString *)slavicShowingLevelCentersLazyName {
    return [ObtainManager greenBevelTimeSetupKelvin].wordPintName;
}

+ (NSString *)providingDeclineFriendsWaySinkToken {
    return [ObtainManager greenBevelTimeSetupKelvin].wrappersToken;
}

+ (CGFloat)entityModeScannerPeakSecondary {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.headlineHusbandFindBaselinesDublin.conflicts?:self.mathProxyKin.rareChestDays;
}

+ (NSString *)volumesEastEllipsisRadioDay {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.smartSonMan.fitSinMany;
}

+ (NSString *)debuggingArmenianPointerFilenamesWhoConflict {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.headlineHusbandFindBaselinesDublin.revealedBasicHundredUkrainianAssistant;
}

+ (CGFloat)rowWeekFactKitMax {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.headlineHusbandFindBaselinesDublin.closureReachableGeorgianWrongDisappear;
}
+ (BOOL)closureReachableGeorgianWrongDisappear {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.headlineHusbandFindBaselinesDublin.closureReachableGeorgianWrongDisappear;
}

+ (NSString *)redTenQuantityAmpereArm {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.advisoryEach.useYouRedoMake;
}
+ (NSString *)returnDeltaUtteranceOpacityPerson {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.advisoryEach.pasteMealSon;
}

+ (BOOL)serverGivenWillImportantPhotos {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.genderErrorUniqueIssueEarGrowPair;
}

+ (BOOL)concertGet {
    return BinForRollConfig.shared.dropSnowUpperPerformedReview.advisoryEach.concertGet;
}

+ (BOOL)boundingGaelicProxyBondGuestShear {
    return [BinForRollConfig shared].boundingGaelicProxyBondGuestShear;
}

+ (NSArray *)gregorianBehaviorsEnablePhoneticHelper {
    NSArray *footBatchRegionsSignChatter = [ObtainManager grayTorqueKitExternalNotifiedDiamond];
    NSMutableArray *star = [NSMutableArray arrayWithCapacity:footBatchRegionsSignChatter.count];
    
    for (HisWonGrayAsk *egg in footBatchRegionsSignChatter) {
        NSString *image = self.mathProxyKin.spacingVerifyFillCivilAllergyAllowable;
        switch (egg.postShotType) {
            case NowAccessedFairPipeGeneric:
                image = self.mathProxyKin.staleAdjectiveLegacyMaxDiastolicCosmic;
                break;
            case UsesTallEqualAccount:
            case FragmentStoodRegister:
                image = self.mathProxyKin.spacingVerifyFillCivilAllergyAllowable;
                break;
            case SeasonPunjabiBlendBurstSolve:
                image = self.mathProxyKin.bridgeBlockerForbiddenAlbanianPasswordsLegible;
                break;

case HelperNetscapePinchPasswordSensorSuch:
                image = self.mathProxyKin.flexibleSessionsSourcesBringRecognizeMemory;
                break;
            case ThreeHexMessageBundlesAperture:
                image = self.mathProxyKin.mirroringThreadEggMostTen;
                break;
            default:
                image = self.mathProxyKin.staleAdjectiveLegacyMaxDiastolicCosmic;
                break;
        }
        
        NSArray *net = @[egg.wordPintName ?: @"",image,egg.bitHighReliableSingularYahooTime];
        [star addObject:net];
    }
    
    
    NSArray *sawSerbian = [star sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double car = [a[2] doubleValue];
        double how = [b[2] doubleValue];
        if (car > how) {
            return NSOrderedAscending; 
        } else if (car < how) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return sawSerbian;
}

+ (CGSize)adjustSensitiveKernelSwipeButEsperantoSize {
    return CGSizeMake(self.mathProxyKin.pencilTopSemicolonChatterDayWidth, self.mathProxyKin.reactorProgramPaddleLetterManagersVirtual);
}

+ (UIColor *)roundWillColor{
    return [UIColor bouncingAppearBundleAwakeBagCaret:BinForRollConfig.shared.dropSnowUpperPerformedReview.internalSmoothSlidingDisplayedLegalAxial.roundWillColor?:self.mathProxyKin.roundWillColor];
}

+ (UIColor *)drainBackColor{
    return [UIColor bouncingAppearBundleAwakeBagCaret:BinForRollConfig.shared.dropSnowUpperPerformedReview.internalSmoothSlidingDisplayedLegalAxial.drainBackColor?:self.mathProxyKin.drainBackColor];
}

+ (UIColor *)poloRestartColor {
    NSString *hex = BinForRollConfig.shared.dropSnowUpperPerformedReview.internalSmoothSlidingDisplayedLegalAxial.poloRestartColor;
    return hex.filenamesCompareDownloadsDomainFlush ? [UIColor bouncingAppearBundleAwakeBagCaret:hex] : UIColor.whiteColor;
}

+ (UIColor *)taskFormatsRepliesCupSucceededColor{
    return [UIColor bouncingAppearBundleAwakeBagCaret:BinForRollConfig.shared.dropSnowUpperPerformedReview.internalSmoothSlidingDisplayedLegalAxial.taskFormatsRepliesCupSucceededColor?:self.mathProxyKin.taskFormatsRepliesCupSucceededColor];
}

+ (NSString *)slightChangedMeasureCallbacksRepublicImage{
    NSString *image = BinForRollConfig.shared.dropSnowUpperPerformedReview.internalSmoothSlidingDisplayedLegalAxial.slightChangedMeasureCallbacksRepublicImage;
    return image.filenamesCompareDownloadsDomainFlush ? image : nil;
}

+ (NSString *)narrativeWarpGoldenWindowsSoloImage{
    NSString *image = BinForRollConfig.shared.dropSnowUpperPerformedReview.internalSmoothSlidingDisplayedLegalAxial.narrativeWarpGoldenWindowsSoloImage;
    return image.filenamesCompareDownloadsDomainFlush ? image : nil;
}

+ (void)torqueOddKitTradInstallsAction {
    if (BinForRollConfig.shared.humidityOwnStatus != CenteredFolderCourseDictationItemCourse) {
        BinForRollConfig.shared.humidityOwnStatus = UnorderedInfiniteForPerformedPreparedProject;
    }
}

+ (UIView *)resultingView {
    if (BinForRollConfig.shared.dropSnowUpperPerformedReview.spokenIndexFactoriesClampingNetSubset.filenamesCompareDownloadsDomainFlush) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:BinForRollConfig.shared.dropSnowUpperPerformedReview.spokenIndexFactoriesClampingNetSubset]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [SchoolInfo embeddedName];
        label.textColor = [self drainBackColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

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

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

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

    return button;
}

+ (NSArray *)throughTotalLeaveGatherMapTranspose:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (SelfPubModel *egg in BinForRollConfig.shared.dropSnowUpperPerformedReview.specifierChainIndicatorAlarmWeekTwenty) {
        UIView *button = [self emailSlashesPulseSizeToggleZip:egg.fatNapMaleText
                                           pointSoftColor:[UIColor bouncingAppearBundleAwakeBagCaret:egg.bengaliGetColor]
                                                motionWon:[self custodianTypePhonogramYearTracking:egg]
                                           youCutEggLeave:egg.hairBelow
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)custodianTypePhonogramYearTracking:(SelfPubModel *)egg {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t slabToken;
    dispatch_once(&slabToken, ^{
        map = @{
            
            self.mathProxyKin.bankArmBin    : self.mathProxyKin.staleAdjectiveLegacyMaxDiastolicCosmic,
            self.mathProxyKin.touchesMake   : self.mathProxyKin.bridgeBlockerForbiddenAlbanianPasswordsLegible,
            self.mathProxyKin.prepDogHitDue : self.mathProxyKin.spacingVerifyFillCivilAllergyAllowable,

self.mathProxyKin.tooSpan       : self.mathProxyKin.mirroringThreadEggMostTen,
            self.mathProxyKin.usesMegabytes : self.mathProxyKin.flexibleSessionsSourcesBringRecognizeMemory,
            self.mathProxyKin.tagsKitPan : self.mathProxyKin.staleAdjectiveLegacyMaxDiastolicCosmic
        };
    });
    if (egg.fitSinMany.hindiDecimal) {
        
        egg.fitSinMany = map[egg.hairBelow];
    }
    return egg.fitSinMany;
}

+ (UIView *)emailSlashesPulseSizeToggleZip:(NSString *)title
                      pointSoftColor:(UIColor *)titleColor
                           motionWon:(NSString *)image
                      youCutEggLeave:(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 filmLetterFloaterBetterLoad: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 *sixImage = [[UIImage guideTabTruncatedDoneMeterName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self drainBackColor];
        [button setImage:sixImage 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 = [RowGivenOut sockComputerMonotonicSerbianLaw: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)filmLetterFloaterBetterLoad:(NSString *)url
{
    NSString *tatar =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",tatar];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)siblingsPublisherMetricToneGenderCreatorCode {
    UITextField *textField = [self deviceMovieField:self.nineHisSoloTen.embeddedLowPosterHandlerOpaqueFractionCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)hexReturnedBlurBlinkFragmentsBusy {
    UITextField *textField = [self deviceMovieField:self.nineHisSoloTen.seekAttitudeFutureVitalRespects isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)signalCanCleanSleepProfileAccount {
    return [self deviceMovieField:self.nineHisSoloTen.lazyChainWarn isSecure:NO];
}

+ (UITextField *)contactRecordedObtainOffMaskPassword:(BOOL)isNew {
    UITextField *textField = [self deviceMovieField:isNew?self.nineHisSoloTen.screenGoldenPlatformBagMastering:self.nineHisSoloTen.pickerRelatedKey isSecure:YES];
    [self threadedEnglishCollectSubMajorEncryptedBlend:textField bagSize:CGSizeMake(RowGivenOut.mathProxyKin.spaGaspScore, RowGivenOut.mathProxyKin.spaGaspScore)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *turnImage = [UIImage guideTabTruncatedDoneMeterName:self.mathProxyKin.intentThirdUtilitiesMixRetry];
    UIImage *subPinImage = [UIImage guideTabTruncatedDoneMeterName:self.mathProxyKin.mapDesktopTelephotoCanonTraveled];
    rightButton.frame = CGRectMake(0, 0, RowGivenOut.mathProxyKin.spaGaspScore, RowGivenOut.mathProxyKin.spaGaspScore);
    [rightButton setImage:turnImage forState:UIControlStateNormal];
    [rightButton setImage:subPinImage forState:UIControlStateSelected];
    CGFloat zipChallenge = (RowGivenOut.mathProxyKin.spaGaspScore - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(zipChallenge, zipChallenge, zipChallenge, zipChallenge)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)deviceMovieField:(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 drainBackColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = self.mathProxyKin.mixDashClamp;
    
    textField.backgroundColor = [self slightChangedMeasureCallbacksRepublicImage] ? UIColor.clearColor : UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self nordicSortGoogleLeakyVersionsActivateLinkage:textField bagSize:CGSizeMake(10, RowGivenOut.mathProxyKin.spaGaspScore)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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