






#import "AudioBaseHardViewController.hue"
#import "PredictedManager.hue"
#import "MainHighView.hue"
#import "UIColor+SinColor.hue"
#import "RedDevice+BigDevice.hue"
#import "UIImage+WhoImage.hue"
#import "AnchorLookConfig.hue"


@implementation AudioBaseHardViewController

- (void)tagLock {
    [[NSNotificationCenter defaultCenter] removeObserver:self];
}

- (void)slashMotion {
    [super slashMotion];
    self.view.backgroundColor = ArrivalBase.wetStickyAreSeeCosmicEuler ? [UIColor encipherClaimServerPivotBuilderDither:ArrivalBase.wetStickyAreSeeCosmicEuler]:UIColor.whiteColor;

    self.popRangeWho = self.endSampling;
    [MainHighView popPrompt];
    

    self.canNapWatch.opaque = NO;
    self.view.backgroundColor = [UIColor.blackColor colorWithAlphaComponent:0];
    
    [self.canNapWatch mas_makeConstraints:^(MASConstraintMaker *make) {
        make.sugar.mas_equalTo(0);
    }];
    
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(percentDelay) name:ArrivalBase.twelveBehave.unlimitedFoundStepperFocalHintShot object:nil];
}

- (void)percentDelay {
    [self.canNapWatch reload];
}


- (void)topHexAddPhase:(BOOL)animated {
    [super topHexAddPhase:animated];
    [self indoorMaxFarVitalityHome];
}

//- (void)fillerCleared:(BOOL)animated {


//}

-(void)lexicalPreviewTwoLogicalOrange:(BOOL)animated {
    if ([ArrivalBase hailCycleMakerScoreFileName] && AnchorLookConfig.shared.gaspOutlineSmallBehaveSelectors.sceneCursor.howBigToken) {
        [MainHighView warnWhite];
    }
    [super lexicalPreviewTwoLogicalOrange:animated];
    
}

- (CGSize)proxyTagPinkSize {
    UIWindow *waxAtomWindow = [[PredictedManager shared] notRemainingWindow];
    UIEdgeInsets safe = waxAtomWindow.safeAreaInsets;
    CGFloat weekendSodium = 0;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        if (![RedDevice audience] || [RedDevice issuer]) {//无刘海
            weekendSodium = UIScreen.mainScreen.iodine.size.height*ArrivalBase.currencyMuteDictationDistinctCluster;
        }else {
            weekendSodium = (UIScreen.mainScreen.iodine.size.height - safe.bottom)*ArrivalBase.currencyMuteDictationDistinctCluster;
        }
        return CGSizeMake(UIScreen.mainScreen.iodine.size.width, weekendSodium);
        
    }else { 
        if (![RedDevice audience] || [RedDevice issuer]) {//无刘海
            weekendSodium = UIScreen.mainScreen.iodine.size.width * ArrivalBase.currencyMuteDictationDistinctCluster;
        }else {
            if (orientation == UIInterfaceOrientationLandscapeRight) {
                weekendSodium = (UIScreen.mainScreen.iodine.size.width - safe.left) * ArrivalBase.currencyMuteDictationDistinctCluster;
            }else {
                weekendSodium = (UIScreen.mainScreen.iodine.size.width - safe.right) * ArrivalBase.currencyMuteDictationDistinctCluster;
            }
        }
        return CGSizeMake(weekendSodium, UIScreen.mainScreen.iodine.size.height);
    }
}

- (void)indoorMaxFarVitalityHome {
    UIWindow *waxAtomWindow = [[PredictedManager shared] notRemainingWindow];
    UIEdgeInsets safe = waxAtomWindow.safeAreaInsets;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
    
    if (orientation == UIInterfaceOrientationPortrait || orientation == UIInterfaceOrientationPortraitUpsideDown) {
        [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
            make.centerX.bottom.mas_equalTo(0);
            make.size.mas_equalTo(self.proxyTagPinkSize);
        }];
    }else {
        
        if (orientation == UIInterfaceOrientationLandscapeRight) {
            
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.mas_equalTo(0);
                make.left.mas_equalTo(safe.left);
                make.size.mas_equalTo(self.proxyTagPinkSize);
            }];
        }else {
            [self.view mas_remakeConstraints:^(MASConstraintMaker *make) {
                make.centerY.left.mas_equalTo(0);
                make.size.mas_equalTo(self.proxyTagPinkSize);
            }];
        }
    }
}

- (void)creditsRotorArmSleetFar:(NSSet<UITouch *> *)touches cornerLaw:(UIEvent *)inuit {
    [super creditsRotorArmSleetFar:touches cornerLaw:inuit];
    [[PredictedManager shared] sortScheduledIcyHyphenEntitiesClockwiseViewController:self.navigationController];
}

@end
