






#import "FixMaterial.h"
#import "NSString+EasyStorm.h"
#import "UIImageView+WebCache.h"
#import "VisualInfo.h"
#import "UIColor+BitColor.h"
#import "UIImage+TryImage.h"
#import "Masonry.h"

#import "BlobCopticConfig.h"
#import "DeleteManager.h"
#import "ContainsResumedMenGeneratorNext.h"

static HelpSumHeapRed *_dryMicroCapTag = nil;
static PersianSin *_capsLoopsAge = nil;

@implementation FixMaterial

+ (HelpSumHeapRed *)dryMicroCapTag {
    if (!_dryMicroCapTag) {
        _dryMicroCapTag = [ContainsResumedMenGeneratorNext exportAmbiguityFisheyeSockMegahertzObject:[HelpSumHeapRed class]];
    }
    return _dryMicroCapTag;
}

+ (PersianSin *)capsLoopsAge {
    if (!_capsLoopsAge) {
        _capsLoopsAge = [ContainsResumedMenGeneratorNext tooMarginsSideIndexesUptimeDecipher:[PersianSin class]];
    }
    return _capsLoopsAge;
}

+ (NSString *)solidAdjustVendorCanonicalConflictsName {
    return [DeleteManager yetBuddyReverseDingbatsStyle].senseWaxName;
}

+ (NSString *)updatingLoseBikeSentencePopToken {
    return [DeleteManager yetBuddyReverseDingbatsStyle].uploadedToken;
}

+ (CGFloat)elevenCircleUptimeNicknameTriple {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.snapshotPintTokenLocationScroll.beenShort?:self.capsLoopsAge.strideLatvian;
}

+ (NSString *)slabPauseArtsPassiveMen {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.nowEyeGrade.ejectAllow;
}

+ (NSString *)reusableVisionTurkmenLanguageInfinityChecker {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.snapshotPintTokenLocationScroll.gallonDanceDuctilityChestVitality;
}

+ (CGFloat)dispenseThirdTooPointArabic {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.snapshotPintTokenLocationScroll.airInviteeResumedSignalFlash;
}
+ (BOOL)airInviteeResumedSignalFlash {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.snapshotPintTokenLocationScroll.airInviteeResumedSignalFlash;
}

+ (NSString *)useMiterThresholdFoundSpectral {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.theAmpereLaw.awayMetricTaps;
}
+ (NSString *)optimizeOneDifferentPacketsSeparated {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.theAmpereLaw.silentAgeBig;
}

+ (BOOL)darkHowFixingArtsDescent {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.yearTrailingAreInvokeDeliveryPlusTap;
}

+ (BOOL)redCaption {
    return BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.theAmpereLaw.redCaption;
}

+ (BOOL)uighurLookDependingBadgePredicateGranted {
    return [BlobCopticConfig shared].uighurLookDependingBadgePredicateGranted;
}

+ (NSArray *)extrinsicAuditedApplePresentSphere {
    NSArray *floaterRetainedDestroyStepchildRain = [DeleteManager illGloballyBufferedRunPasteTone];
    NSMutableArray *edit = [NSMutableArray arrayWithCapacity:floaterRetainedDestroyStepchildRain.count];
    
    for (OffCatAreaFax *ill in floaterRetainedDestroyStepchildRain) {
        NSString *image = self.capsLoopsAge.velocitySedentaryCacheEnsurePastRecorder;
        switch (ill.routeSeeType) {
            case ZoomingPinTrialRedoneHebrew:
                image = self.capsLoopsAge.birthdayModifierPriorKernelEntryPint;
                break;
            case RenderedTrustAccount:
            case CellYearNoiseRegister:
                image = self.capsLoopsAge.velocitySedentaryCacheEnsurePastRecorder;
                break;
            case WaistNeverGradeBorderEditors:
                image = self.capsLoopsAge.readySubgroupsScanningBeforePopAvail;
                break;

case ObsoleteFrameOutputsEchoSwahiliDivide:
                image = self.capsLoopsAge.contentsCaretReceiverStackedBalticMethod;
                break;
            case SenseIdiomFoodRenewLocale:
                image = self.capsLoopsAge.filmArrivalRestCarbonPanoramas;
                break;
            default:
                image = self.capsLoopsAge.birthdayModifierPriorKernelEntryPint;
                break;
        }
        
        NSArray *mid = @[ill.senseWaxName ?: @"",image,ill.lettishRevertSkinCutPurchasedTime];
        [edit addObject:mid];
    }
    
    
    NSArray *spaDisable = [edit sortedArrayUsingComparator:^NSComparisonResult(NSArray *a, NSArray *b) {
        double sun = [a[2] doubleValue];
        double yet = [b[2] doubleValue];
        if (sun > yet) {
            return NSOrderedAscending; 
        } else if (sun < yet) {
            return NSOrderedDescending;
        }
        return NSOrderedSame;
    }];
    
    return spaDisable;
}

+ (CGSize)elevatedReplacedMisplacedEqualityFlippedRevealedSize {
    return CGSizeMake(self.capsLoopsAge.ambientTeluguBlackInstancesLockWidth, self.capsLoopsAge.boxTakeTouchMoreOneEnvelope);
}

+ (UIColor *)burnEarlyColor{
    return [UIColor commitOutcomeCarCategoryScrollingAsk:BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.longitudeManagersUsabilityOuncesTryChromatic.burnEarlyColor?:self.capsLoopsAge.burnEarlyColor];
}

+ (UIColor *)beforeArtColor{
    return [UIColor commitOutcomeCarCategoryScrollingAsk:BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.longitudeManagersUsabilityOuncesTryChromatic.beforeArtColor?:self.capsLoopsAge.beforeArtColor];
}

+ (UIColor *)referenceTapsWorkspaceIgnoredIdentityColor{
    return [UIColor commitOutcomeCarCategoryScrollingAsk:BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.longitudeManagersUsabilityOuncesTryChromatic.referenceTapsWorkspaceIgnoredIdentityColor?:self.capsLoopsAge.referenceTapsWorkspaceIgnoredIdentityColor];
}

+ (void)minderCardioidAlgorithmDoubleIntroAction {
    if (BlobCopticConfig.shared.picturesIcyStatus != NoiseChlorideInsertOpaqueExistentOfficial) {
        BlobCopticConfig.shared.picturesIcyStatus = GallonsUnlimitedAnchoredTraitFindAny;
    }
}

+ (UIView *)golfNeverView {
    if (BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.greenMagentaScriptExecWaitExtend.boldfaceLogoAloneCatalogExecuting) {
        UIImageView *view = [[UIImageView alloc] init];
        [view sd_setImageWithURL:[NSURL URLWithString:BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.greenMagentaScriptExecWaitExtend]];
        view.contentMode = UIViewContentModeScaleAspectFit;
        return view;
    }else {
        UILabel *label = [[UILabel alloc] init];
        label.text = [VisualInfo soundOldName];
        label.textColor = [self beforeArtColor];
        label.font = [UIFont systemFontOfSize:30];
        label.textAlignment = NSTextAlignmentCenter;
        return label;
    }
}

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

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

+ (UIButton *)rangeSeeHectaresImproperLowercaseColor:(NSString *)title {
    
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    [button setTitle:title forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage narrativeLinerColor:[self beforeArtColor]] forState:UIControlStateNormal];
    [button setBackgroundImage:[UIImage narrativeLinerColor:[[UIColor lightGrayColor] colorWithAlphaComponent:0.5f]] forState:UIControlStateHighlighted];
    button.titleLabel.font = [UIFont systemFontOfSize:16];
    button.layer.cornerRadius = 2.f;
    button.layer.masksToBounds = YES;
    return button;
}

+ (NSArray *)pagerAddPubAddVideoPhase:(id)target action:(SEL)action {
    
    NSMutableArray *array = [[NSMutableArray alloc] init];
    
    for (UrgencyModel *ill in BlobCopticConfig.shared.blobRetryArgumentsScannedPointer.colleagueAdvertiseMouseAccessedSocialShipment) {
        UIView *button = [self menMillibarsHelloSlideTheLargest:ill.regionsWhoText
                                           bringTalkColor:[UIColor commitOutcomeCarCategoryScrollingAsk:ill.likeHisCarColor]
                                                shotMajor:[self decryptedStrictProvidersAscendedRedefined:ill]
                                           tenRoundKeyHer:ill.aliveDrum
                                                   target:target
                                                   action:action];
        [array addObject:button];
    }
    
    return array;
}

+ (NSString *)decryptedStrictProvidersAscendedRedefined:(UrgencyModel *)ill {
    
    static NSDictionary<NSString *, NSString *> *map;
    static dispatch_once_t blueToken;
    dispatch_once(&blueToken, ^{
        map = @{
            
            self.capsLoopsAge.fitFlatBar    : self.capsLoopsAge.birthdayModifierPriorKernelEntryPint,
            self.capsLoopsAge.hormoneSent   : self.capsLoopsAge.readySubgroupsScanningBeforePopAvail,
            self.capsLoopsAge.instancesFont : self.capsLoopsAge.velocitySedentaryCacheEnsurePastRecorder,

self.capsLoopsAge.martial       : self.capsLoopsAge.filmArrivalRestCarbonPanoramas,
            self.capsLoopsAge.instantOutput : self.capsLoopsAge.contentsCaretReceiverStackedBalticMethod,
            self.capsLoopsAge.illStopFat : self.capsLoopsAge.birthdayModifierPriorKernelEntryPint
        };
    });
    if (ill.ejectAllow.thumbPending) {
        
        ill.ejectAllow = map[ill.aliveDrum];
    }
    return ill.ejectAllow;
}

+ (UIView *)menMillibarsHelloSlideTheLargest:(NSString *)title
                      bringTalkColor:(UIColor *)titleColor
                           shotMajor:(NSString *)image
                      tenRoundKeyHer:(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 prefixBrowsingCoercionShotChecked: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 *hexImage = [[UIImage tabularFinishAudiencesKinTriggeredName:image] imageWithRenderingMode:(UIImageRenderingModeAlwaysTemplate)];
        button.tintColor = [self beforeArtColor];
        [button setImage:hexImage 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 = [FixMaterial waistMarkTurnEventElder: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)prefixBrowsingCoercionShotChecked:(NSString *)url
{
    NSString *cover =@"[a-zA-z]+://[^\\s]*";
    NSPredicate *predicate = [NSPredicate predicateWithFormat:@"SELF MATCHES %@",cover];
    return [predicate evaluateWithObject:url];
}

+ (UITextField *)eventualShowCursorDanishCorruptDistanceCode {
    UITextField *textField = [self mailOddSelfField:self.dryMicroCapTag.pushSubtitleFrictionSecondaryBigModalCode isSecure:NO];
    textField.textContentType = UITextContentTypeOneTimeCode;
    return textField;
}

+ (UITextField *)reduceIterationVisitMayHockeyHidden {
    UITextField *textField = [self mailOddSelfField:self.dryMicroCapTag.collapseErrorPitchArcadeBackwards isSecure:NO];
    textField.keyboardType = UIKeyboardTypeNumberPad;
    return textField;
}

+ (UITextField *)wordStylisticSequenceSideSearchAccount {
    return [self mailOddSelfField:self.dryMicroCapTag.hailAlgorithm isSecure:NO];
}

+ (UITextField *)listenerColorObservedEyeRomanianPassword:(BOOL)isNew {
    UITextField *textField = [self mailOddSelfField:isNew?self.dryMicroCapTag.warpRestingBlusteryIntervalsSyntax:self.dryMicroCapTag.quitGreenLossKey isSecure:YES];
    [self factoredVendorEachInteractPacketsBendArtery:textField itsSize:CGSizeMake(FixMaterial.capsLoopsAge.rearrangeSin, FixMaterial.capsLoopsAge.rearrangeSin)];
    UIButton * rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *shotImage = [UIImage tabularFinishAudiencesKinTriggeredName:self.capsLoopsAge.illegalAbnormalProductsFrontRearrange];
    UIImage *hitSayImage = [UIImage tabularFinishAudiencesKinTriggeredName:self.capsLoopsAge.hoursCaseTapTwistActivate];
    rightButton.frame = CGRectMake(0, 0, FixMaterial.capsLoopsAge.rearrangeSin, FixMaterial.capsLoopsAge.rearrangeSin);
    [rightButton setImage:shotImage forState:UIControlStateNormal];
    [rightButton setImage:hitSayImage forState:UIControlStateSelected];
    CGFloat seedTitleSix = (FixMaterial.capsLoopsAge.rearrangeSin - 24)/2;
    [rightButton setImageEdgeInsets:UIEdgeInsetsMake(seedTitleSix, seedTitleSix, seedTitleSix, seedTitleSix)];
    rightButton.contentMode = UIViewContentModeScaleAspectFit;
    [textField.rightView addSubview:rightButton];
    return textField;
}

+ (UITextField *)mailOddSelfField:(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 beforeArtColor].CGColor;
    textField.layer.borderWidth = 0.6;
    textField.layer.cornerRadius = 2;
    textField.backgroundColor = UIColor.whiteColor;
    textField.textColor = UIColor.darkGrayColor;
    textField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:placeholder attributes:@{NSForegroundColorAttributeName: [UIColor lightGrayColor]}];
    [self subgroupsEachBinItsIllegalHeadphoneOpaque:textField itsSize:CGSizeMake(10, FixMaterial.capsLoopsAge.rearrangeSin)];
    textField.rightViewMode = UITextFieldViewModeAlways;
    return textField;
}

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

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