






#import "ArmPitchView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+SawImage.h"
#import "HourEllipse.h"
#import "NSString+YellowRet.h"
#import "AddAlertView.h"
#import "PortAgeNetCubeWindow.h"
#import "LayoutRevealedViewController.h"
#import "UIDevice+NotDevice.h"
#import "CountHostManager.h"

@interface ArmPitchView()  <UIGestureRecognizerDelegate> {
    CGPoint detachingMethodOriginalPatternsMenuApplier;
    BOOL dayBadSolidEndpointMax;
    BOOL eyePintGlobalSuchDashSmile; 
    BOOL edgaNotifyingExpansionStackRaise; 
}


@property (nonatomic, strong) PortAgeNetCubeWindow *badCentralWindow;
@property (nonatomic, weak) UIWindow *issuerSawDogWindow;


@property (nonatomic, strong) UIImageView *adobeEasyView;
@property (nonatomic, strong) UIView *zipIntegersView;


@property (nonatomic, strong) UIView *constructView;
@property (nonatomic, strong) UILabel *directFunLabel;
@property (nonatomic, assign) BOOL itsSayPushListenerPositions;


@property (nonatomic, strong) NSTimer *offsetsWeeklyTimer;
@property (nonatomic, assign) UIEdgeInsets wetFutureKilovoltsRaiseHierarchy;
@property (nonatomic, assign) CGRect solutionsListCarObservedDescenderCreated;


@property (nonatomic, strong) UIImage *openGenericImage;
@property (nonatomic, copy) NSString *executingIllegalCarDueTemplate;
@property (nonatomic, strong) UIImage *flushBeatImage;
@property (nonatomic, assign) CGFloat searchingDraft;
@property (nonatomic, assign) EggRouteSpanEdge planeUtilityEdge;
@property (nonatomic, assign) NSTimeInterval conjugatePushSummariesHerDisables;
@property (nonatomic, assign) BOOL traitResultPrivacyCreatedHistoryMonitored;
@end

@implementation ArmPitchView


+ (instancetype)shared {
    static ArmPitchView *instance = nil;
    static dispatch_once_t bodyToken;
    dispatch_once(&bodyToken, ^{
        instance = [[super alloc] initWithFrame:CGRectZero];
        [instance helpForBulgarianGivenConsole];
    });
    return instance;
}

- (UIView *)zipIntegersView {
    if (!_zipIntegersView) {
        _zipIntegersView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 8, 8)];
        _zipIntegersView.backgroundColor = UIColor.redColor;
        _zipIntegersView.layer.cornerRadius = 4;
        _zipIntegersView.hidden = YES;
    }
    return _zipIntegersView;
}

- (void)helpForBulgarianGivenConsole {
    self.searchingDraft = 10.0;
    self.conjugatePushSummariesHerDisables = 3.0;
    self.traitResultPrivacyCreatedHistoryMonitored = YES;
    
    
    self.adobeEasyView = [[UIImageView alloc] init];
    self.adobeEasyView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.adobeEasyView];
    
    self.constructView = [[UIView alloc] init];
    self.constructView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.constructView.layer.cornerRadius = 20;
    self.constructView.layer.masksToBounds = YES;
    self.constructView.alpha = 0.0;
    
    self.directFunLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.directFunLabel.text = HourEllipse.alienSemaphore.saturateCivilFindPenSigmaFlexible;
    self.directFunLabel.numberOfLines = 0;
    self.directFunLabel.textColor = [UIColor whiteColor];
    self.directFunLabel.textAlignment = NSTextAlignmentCenter;
    self.directFunLabel.font = [UIFont systemFontOfSize:14];
    [self.constructView addSubview:self.directFunLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(filenameDegree:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(bringFunRetMix)];
    [self addGestureRecognizer:tap];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(behaviorCommandPhotoSenseVibrancySequencer)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setMoreSparseJson:(NSDictionary *)moreSparseJson {
    _moreSparseJson = moreSparseJson;
    if (moreSparseJson && self.badCentralWindow != nil) {
        NSString *action = moreSparseJson[HourEllipse.howSignaling.earMileSeekIcy];
        if ([action isEqualToString:HourEllipse.howSignaling.speakerQuiet]) {
            self.zipIntegersView.hidden = NO;
        }else if ([action isEqualToString:HourEllipse.howSignaling.strokeStrong]) {
            self.zipIntegersView.hidden = YES;
        }else if ([action isEqualToString:HourEllipse.howSignaling.climbingDecryptedDisplayedGatewaysMagenta]) {
            self.zipIntegersView.hidden = NO;
        }
    }
}


+ (void)generator {
    [self.shared logicalOppositeCarWithinLongitudeBitsImage:[UIImage loveClinicalCornerDecryptedAsteriskName:HourEllipse.howSignaling.homeCostJumpSwashesPermanent] wrappers:HourEllipse.passExitsTrySplitArtist gramImage:nil];
}

+ (void)floatingBeganImage:(UIImage *)image {
    [[self shared] logicalOppositeCarWithinLongitudeBitsImage:image gramImage:nil];
}

+ (void)walkingTrapImage:(UIImage *)normalImage gramImage:(nullable UIImage *)gramImage {
    ArmPitchView *instance = [self shared];
    instance.openGenericImage = normalImage;
    instance.executingIllegalCarDueTemplate = nil;
    instance.flushBeatImage = gramImage;
    instance.adobeEasyView.image = normalImage;
}

+ (void)danishLow {
    [[self shared] vignetteRainDryTextualRemaining];
}

+ (BOOL)tiedBlueOnline {
    return [self shared].badCentralWindow != nil;
}


- (void)logicalOppositeCarWithinLongitudeBitsImage:(UIImage *)image gramImage:(nullable UIImage *)gramImage {
    [self logicalOppositeCarWithinLongitudeBitsImage:image wrappers:nil gramImage:gramImage];
}

- (void)logicalOppositeCarWithinLongitudeBitsImage:(UIImage *)image wrappers:(NSString *)wrappers gramImage:(nullable UIImage *)gramImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.openGenericImage = image;
        self.executingIllegalCarDueTemplate = wrappers;
        self.flushBeatImage = gramImage;
        
        if (!self.badCentralWindow) {
            [self planarReceiverAlpineSecretThemeWindow];
            [self cupStartupGatherChooseHold];
            [self animateEjectLexicalReadoutSoccerUniform];
            [self uploadingRingListenAddressesMarginApplying]; 
        }
        
        [self.badCentralWindow makeKeyAndVisible];
        [self.issuerSawDogWindow makeKeyWindow];
        
        [self stoodWayVectorSentencesRequestedRaceAnimation:YES];
        [self appearsAtomSoccerAnimatorChooseTimer];
    });
}

- (void)vignetteRainDryTextualRemaining {
    dispatch_async(dispatch_get_main_queue(), ^{
        [self.badCentralWindow resignKeyWindow];
        self.badCentralWindow.hidden = YES;
        self.badCentralWindow = nil;
    });
}


- (void)planarReceiverAlpineSecretThemeWindow {
    
    self.issuerSawDogWindow = [self catTraverseEscapeRankedStackWindow];
    
    
    PortAgeNetCubeWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[PortAgeNetCubeWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[PortAgeNetCubeWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[LayoutRevealedViewController alloc] init];
    window.hidden = NO;
    self.badCentralWindow = window;
    
    
    [self.badCentralWindow resignKeyWindow];
    [self.issuerSawDogWindow makeKeyWindow];
    
    
    [self addSubview:self.zipIntegersView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.executingIllegalCarDueTemplate) {
        [self.adobeEasyView sd_setImageWithURL:[NSURL URLWithString:self.executingIllegalCarDueTemplate] placeholderImage
                                              :[UIImage loveClinicalCornerDecryptedAsteriskName:HourEllipse.howSignaling.homeCostJumpSwashesPermanent]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.adobeEasyView.image = self.openGenericImage;
    }
    self.adobeEasyView.frame = self.bounds;
    
    [self.badCentralWindow addSubview:self];
    [self.badCentralWindow addSubview:self.constructView];
}


- (void)uploadingRingListenAddressesMarginApplying {
    CGRect obstacleTake = self.solutionsListCarObservedDescenderCreated;
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    UIInterfaceOrientation orientation = [UIApplication sharedApplication].statusBarOrientation;
#pragma clang diagnostic pop
    
    if (UIInterfaceOrientationIsLandscape(orientation)) {
        CGFloat stamp = 180;
        self.constructView.frame = CGRectMake(
         (obstacleTake.size.width - stamp)/2,
          obstacleTake.size.height - stamp/2,
          stamp,
          stamp
        );
        self.constructView.layer.masksToBounds = YES;
        self.constructView.layer.cornerRadius = stamp/2;
        self.directFunLabel.center = CGPointMake(stamp/2, stamp/4);
    }
    
    else {
        CGFloat stamp = 240;
        self.constructView.frame = CGRectMake(

          (obstacleTake.size.width - stamp/2),
          obstacleTake.size.height - stamp/2,
          stamp,
          stamp
        );
        self.constructView.layer.masksToBounds = YES;
        self.constructView.layer.cornerRadius = stamp/2;
        self.directFunLabel.center = CGPointMake(stamp/3, stamp/4);
    }
}


- (void)bringFunRetMix {
    if (self.moreSparseJson) {
        !self.lessAreaHandler ?: self.lessAreaHandler(self.moreSparseJson[HourEllipse.howSignaling.doneInitial]);
        if ([self.moreSparseJson[HourEllipse.howSignaling.earMileSeekIcy] isEqualToString:HourEllipse.howSignaling.climbingDecryptedDisplayedGatewaysMagenta]) {
            self.zipIntegersView.hidden = YES;
            _moreSparseJson = nil;
        }
    }else {
        !self.lessAreaHandler ?: self.lessAreaHandler(nil);
    }
}

- (void)filenameDegree:(UIPanGestureRecognizer *)gesture {
    if (dayBadSolidEndpointMax) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            detachingMethodOriginalPatternsMenuApplier = self.center;
            _adobeEasyView.alpha = 1;
            [self leadEndHelperRopeItem];
            eyePintGlobalSuchDashSmile = NO; 
            edgaNotifyingExpansionStackRaise = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.constructView.layer removeAllAnimations];
            
            
            self.constructView.alpha = 0.0;
            self.constructView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self ageProtocolsFootnoteQuotationWasKilowattUppercaseCenter:
                           CGPointMake(detachingMethodOriginalPatternsMenuApplier.x + translation.x,
                                       detachingMethodOriginalPatternsMenuApplier.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL WrongBitmap = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect keepFrame = self.constructView.frame;
            CGRect nominally = CGRectInset(keepFrame, -280, WrongBitmap?-100:-280); 
            BOOL scoreGoalTab = CGRectContainsPoint(nominally, self.center);
            
            
            
            
            if (scoreGoalTab != edgaNotifyingExpansionStackRaise) {
                edgaNotifyingExpansionStackRaise = scoreGoalTab;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.constructView.alpha = scoreGoalTab ? 1.0 : 0.0;
                    self.constructView.transform = scoreGoalTab ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            scoreGoalTab = CGRectContainsPoint(CGRectInset(keepFrame, 0, 0), self.center);
            if (scoreGoalTab && !eyePintGlobalSuchDashSmile) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                eyePintGlobalSuchDashSmile = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.constructView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!scoreGoalTab) {
                if (eyePintGlobalSuchDashSmile) {
                    self.constructView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                eyePintGlobalSuchDashSmile = NO;
            }
            
            
            nominally = CGRectInset(keepFrame, 0, 0);
            _itsSayPushListenerPositions = CGRectContainsPoint(nominally, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.constructView.alpha = 0.0;
                self.constructView.transform = CGAffineTransformIdentity;
            }];
            
            if (_itsSayPushListenerPositions) {
                [AddAlertView millionCorrectedPromiseOverageHardNow:nil message:HourEllipse.alienSemaphore.busChinaRestTraveledLookSilenced flemishChina:@[HourEllipse.alienSemaphore.barsMembers, HourEllipse.alienSemaphore.selfPop] completion:^(NSInteger wonWaxIndex) {
                    if (wonWaxIndex ==1) {
                        [self vignetteRainDryTextualRemaining];
                    }else {
                        [self stoodWayVectorSentencesRequestedRaceAnimation:YES];
                        [self appearsAtomSoccerAnimatorChooseTimer];
                    }
                }];
            } else {
                [self stoodWayVectorSentencesRequestedRaceAnimation:YES];
                [self appearsAtomSoccerAnimatorChooseTimer];
            }
            eyePintGlobalSuchDashSmile = NO;
            edgaNotifyingExpansionStackRaise = NO;
            break;
        }

        default: break;
    }
}


- (void)stoodWayVectorSentencesRequestedRaceAnimation:(BOOL)animate {
    if (!_traitResultPrivacyCreatedHistoryMonitored) return;
    
    
    if (dayBadSolidEndpointMax && animate) return;
    
    CGRect bodyFrame = [self disparityLastInvisibleSessionClipFrame];
    CGPoint center = self.center;
    
    CGFloat feed = bodyFrame.origin.x;
    CGFloat face = bodyFrame.origin.x + bodyFrame.size.width;
    CGFloat flat = bodyFrame.origin.y;
    CGFloat easy = bodyFrame.origin.y + bodyFrame.size.height;
    
    
    EggRouteSpanEdge oneEyeEdge = StaySuperiorsMergePopOffGolf;
    CGFloat dirtyDogWho = CGFLOAT_MAX;
    
    
    CGFloat tooCar = center.x - feed;
    CGFloat barrier = face - center.x;
    CGFloat segue = center.y - flat;
    CGFloat wordDrop = easy - center.y;
    
    NSArray *boostRest = @[@(tooCar), @(barrier), @(segue), @(wordDrop)];
    NSArray *edges = @[@(SatisfiedUnionHurricaneLettersNumericDash), @(RelationsVerbosePluralKeyboardRefreshedBank),
                       @(AirUrgencyBrowseSidebarCyrillic), @(SeeElderUnorderedZoomTryLanguage)];
    
    for (NSInteger i = 0; i < boostRest.count; i++) {
        CGFloat distance = [boostRest[i] floatValue];
        if (distance < dirtyDogWho) {
            dirtyDogWho = distance;
            oneEyeEdge = [edges[i] integerValue];
        }
    }
    
    
    if (oneEyeEdge == self.planeUtilityEdge) {
        CGPoint neutralCenter = self.center;
        CGPoint indoorCenter = [self lengthsSpecialZeroDecreaseStrokedManagersEdge:oneEyeEdge];
        CGFloat distance = hypot(neutralCenter.x - indoorCenter.x, neutralCenter.y - indoorCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.planeUtilityEdge = oneEyeEdge;
    
    
    CGPoint indoorCenter = [self lengthsSpecialZeroDecreaseStrokedManagersEdge:oneEyeEdge];
    CGPoint lowerCenter = [self fullNetAnimateCutterIndexesObserveAllEdge:oneEyeEdge];
    
    
    dayBadSolidEndpointMax = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->dayBadSolidEndpointMax = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = indoorCenter;
        self.zipIntegersView.center = lowerCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)lengthsSpecialZeroDecreaseStrokedManagersEdge:(EggRouteSpanEdge)edge {
    CGRect bodyFrame = [self disparityLastInvisibleSessionClipFrame];
    CGPoint center = self.center;
    
    CGFloat feed = bodyFrame.origin.x;
    CGFloat face = bodyFrame.origin.x + bodyFrame.size.width;
    CGFloat flat = bodyFrame.origin.y;
    CGFloat easy = bodyFrame.origin.y + bodyFrame.size.height;
    
    CGPoint indoorCenter = center;
    
    switch (edge) {
        case SatisfiedUnionHurricaneLettersNumericDash:
            indoorCenter.x = feed + self.bounds.size.width/2 + _searchingDraft;
            break;
        case RelationsVerbosePluralKeyboardRefreshedBank:
            indoorCenter.x = face - self.bounds.size.width/2 - _searchingDraft;
            break;
        case AirUrgencyBrowseSidebarCyrillic:
            indoorCenter.y = flat + self.bounds.size.height/2 + _searchingDraft;
            break;
        case SeeElderUnorderedZoomTryLanguage:
            indoorCenter.y = easy - self.bounds.size.height/2 - _searchingDraft;
            break;
        default:
            break;
    }
    
    
    return [self ageProtocolsFootnoteQuotationWasKilowattUppercaseCenter:indoorCenter];
}


- (CGPoint)fullNetAnimateCutterIndexesObserveAllEdge:(EggRouteSpanEdge)edge {
    CGPoint lowerCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case SatisfiedUnionHurricaneLettersNumericDash:
            lowerCenter.x = self.bounds.size.width;
            break;
        case RelationsVerbosePluralKeyboardRefreshedBank:
            
            break;
        case AirUrgencyBrowseSidebarCyrillic:
            lowerCenter.x = self.bounds.size.width;
            lowerCenter.y = self.bounds.size.height;
            break;
        case SeeElderUnorderedZoomTryLanguage:
            lowerCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return lowerCenter;
}


- (void)appearsAtomSoccerAnimatorChooseTimer {
    if (_conjugatePushSummariesHerDisables <= 0) return;
    
    [self leadEndHelperRopeItem];
    _offsetsWeeklyTimer = [NSTimer scheduledTimerWithTimeInterval:_conjugatePushSummariesHerDisables
                                                     target:self
                                                   selector:@selector(twentySpousePointRightVowel)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)leadEndHelperRopeItem {
    [_offsetsWeeklyTimer invalidate];
    _offsetsWeeklyTimer = nil;
}

- (void)twentySpousePointRightVowel {
    [UIView animateWithDuration:0.3 animations:^{
        self.adobeEasyView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.planeUtilityEdge) {
            case SatisfiedUnionHurricaneLettersNumericDash:
                frame.origin.x -= self.searchingDraft;
                break;
            case RelationsVerbosePluralKeyboardRefreshedBank:
                frame.origin.x += self.searchingDraft;
                break;
            case AirUrgencyBrowseSidebarCyrillic:
                frame.origin.y -= self.searchingDraft;
                break;
            case SeeElderUnorderedZoomTryLanguage:
                frame.origin.y += self.searchingDraft;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)behaviorCommandPhotoSenseVibrancySequencer {
    [self cupStartupGatherChooseHold];
    [self uploadingRingListenAddressesMarginApplying]; 
    [self stoodWayVectorSentencesRequestedRaceAnimation:YES];
}


- (void)cupStartupGatherChooseHold {
    UIWindow *keyWindow = CountHostManager.shared.maxForceDarkWindow; //self.issuerSawDogWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice mixerHis]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice gallon]) {
        safeArea = UIEdgeInsetsMake(0, 0, 20, 0);
    }else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
        UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
#pragma clang diagnostic pop
        safeArea = keyWindow.safeAreaInsets;
        switch (orientation) {
            case UIInterfaceOrientationPortrait:
                safeArea = UIEdgeInsetsMake(safeArea.top-10, 5, 15, 5);
                break;
            case UIInterfaceOrientationPortraitUpsideDown:
                safeArea = UIEdgeInsetsMake(15, 5, safeArea.bottom-10, 5);
                break;
            case UIInterfaceOrientationLandscapeRight:
                safeArea = UIEdgeInsetsMake(5, safeArea.right-10, 15, 5);
                break;
            case UIInterfaceOrientationLandscapeLeft:
                safeArea = UIEdgeInsetsMake(5, 5, 15, safeArea.left-10);
                break;
            case UIInterfaceOrientationUnknown:
            default:
                safeArea = safeArea;
        }
    }
    
    self.wetFutureKilovoltsRaiseHierarchy = safeArea;
    self.solutionsListCarObservedDescenderCreated = keyWindow.bounds;
}

- (CGRect)disparityLastInvisibleSessionClipFrame {
    
    return CGRectMake(
        self.solutionsListCarObservedDescenderCreated.origin.x + self.wetFutureKilovoltsRaiseHierarchy.left,
        self.solutionsListCarObservedDescenderCreated.origin.y + self.wetFutureKilovoltsRaiseHierarchy.top,
        self.solutionsListCarObservedDescenderCreated.size.width - (self.wetFutureKilovoltsRaiseHierarchy.left + self.wetFutureKilovoltsRaiseHierarchy.right),
        self.solutionsListCarObservedDescenderCreated.size.height - (self.wetFutureKilovoltsRaiseHierarchy.top + self.wetFutureKilovoltsRaiseHierarchy.bottom)
    );
}


- (void)animateEjectLexicalReadoutSoccerUniform {
    NSString *vitalOwnType = [[NSUserDefaults standardUserDefaults] valueForKey:HourEllipse.howSignaling.semanticsRankedContainDownloadAddressesAtom];
    if (vitalOwnType) {
        self.center = CGPointFromString(vitalOwnType);
    }else {
        
        CGRect bodyFrame = [self disparityLastInvisibleSessionClipFrame];
        self.center = CGPointMake(bodyFrame.origin.x + bodyFrame.size.width - self.bounds.size.width/2 - _searchingDraft,
                                  bodyFrame.origin.y + bodyFrame.size.height/2);
    }
}


- (UIWindow *)catTraverseEscapeRankedStackWindow {
    if (@available(iOS 13.0, *)) {
        NSSet<UIScene *> *scenes = [UIApplication sharedApplication].connectedScenes;
        for (UIScene *scene in scenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                UIWindowScene *windowScene = (UIWindowScene *)scene;
                return windowScene.windows.firstObject;
            }
        }
    }
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    return [UIApplication sharedApplication].keyWindow;
#pragma clang diagnostic pop
}

- (CGPoint)ageProtocolsFootnoteQuotationWasKilowattUppercaseCenter:(CGPoint)proposedCenter {
    CGRect bodyFrame = [self disparityLastInvisibleSessionClipFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat feed = bodyFrame.origin.x + buttonSize.width/2;
    CGFloat face = bodyFrame.origin.x + bodyFrame.size.width - buttonSize.width/2;
    CGFloat flat = bodyFrame.origin.y + buttonSize.height/2;
    CGFloat easy = bodyFrame.origin.y + bodyFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(feed, MIN(proposedCenter.x, face)),
        MAX(flat, MIN(proposedCenter.y, easy))
    );
}

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

@end
