






#import "GetSolveView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+EarImage.h"
#import "LearnWeekly.h"
#import "NSString+YearSetup.h"
#import "ArtAlertView.h"
#import "ArrayScheduledWindow.h"
#import "CoachedAdvisedViewController.h"
#import "UIDevice+WasDevice.h"
#import "HockeySeeManager.h"

@interface GetSolveView()  <UIGestureRecognizerDelegate> {
    CGPoint stylusWeekBankersPhoneDrizzleRecipient;
    BOOL decomposeReasonUnifyDragUtterance;
    BOOL offerDependingOurAllHeightZip; 
    BOOL sexualRowExactnessAdjustingTall; 
}


@property (nonatomic, strong) ArrayScheduledWindow *serverSuchWindow;
@property (nonatomic, weak) UIWindow *sobFingerBinWindow;


@property (nonatomic, strong) UIImageView *manganeseView;
@property (nonatomic, strong) UIView *cursorIrishView;


@property (nonatomic, strong) UIView *quickAutoView;
@property (nonatomic, strong) UILabel *torqueAreLabel;
@property (nonatomic, assign) BOOL iterativeAcceptingLappishBoxIssue;


@property (nonatomic, strong) NSTimer *withIntensityTimer;
@property (nonatomic, assign) UIEdgeInsets qualityPredictedCatToleranceFlat;
@property (nonatomic, assign) CGRect rowsSquaresButtonsSpeakerBodyMerge;


@property (nonatomic, strong) UIImage *composerJobImage;
@property (nonatomic, copy) NSString *gatherSobTriggerIcySubtitles;
@property (nonatomic, strong) UIImage *acceptNapImage;
@property (nonatomic, assign) CGFloat strongPlatform;
@property (nonatomic, assign) ClipOffLooseEdge thumbPaletteEdge;
@property (nonatomic, assign) NSTimeInterval askFutureAddProjectAnimator;
@property (nonatomic, assign) BOOL radialTradGraphicsDesignCloseReserved;
@end

@implementation GetSolveView


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

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

- (void)audiogramMustSceneLaunchDifferent {
    self.strongPlatform = 10.0;
    self.askFutureAddProjectAnimator = 3.0;
    self.radialTradGraphicsDesignCloseReserved = YES;
    
    
    self.manganeseView = [[UIImageView alloc] init];
    self.manganeseView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.manganeseView];
    
    self.quickAutoView = [[UIView alloc] init];
    self.quickAutoView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.quickAutoView.layer.cornerRadius = 20;
    self.quickAutoView.layer.masksToBounds = YES;
    self.quickAutoView.alpha = 0.0;
    
    self.torqueAreLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.torqueAreLabel.text = LearnWeekly.estonianBanner.launchSunLetterPintUnifyMiddle;
    self.torqueAreLabel.numberOfLines = 0;
    self.torqueAreLabel.textColor = [UIColor whiteColor];
    self.torqueAreLabel.textAlignment = NSTextAlignmentCenter;
    self.torqueAreLabel.font = [UIFont systemFontOfSize:14];
    [self.quickAutoView addSubview:self.torqueAreLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(twoZeroSexNeed:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *odd = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(trapFitSawMost)];
    [self addGestureRecognizer:odd];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(watchedItsChestConstantEldestCause)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setFaceFamilyJson:(NSDictionary *)faceFamilyJson {
    _faceFamilyJson = faceFamilyJson;
    if (faceFamilyJson && self.serverSuchWindow != nil) {
        NSString *action = faceFamilyJson[LearnWeekly.reuseRenewal.hitSinTrashKey];
        if ([action isEqualToString:LearnWeekly.reuseRenewal.lightBarsEar]) {
            self.cursorIrishView.hidden = NO;
        }else if ([action isEqualToString:LearnWeekly.reuseRenewal.digitCredits]) {
            self.cursorIrishView.hidden = YES;
        }else if ([action isEqualToString:LearnWeekly.reuseRenewal.frictionParserTradProxyClip]) {
            self.cursorIrishView.hidden = NO;
        }
    }
}


+ (void)clockBusy {
    [self.shared hashAlgorithmNotRaiseSegmentedExportingImage:[UIImage resourcesFunAskHandoffSaltName:LearnWeekly.reuseRenewal.unloadNominallyMajorRadioStay] eighteen:LearnWeekly.trainerNapDigitalDashPersonal fileImage:nil];
}

+ (void)basalDiskBeenImage:(UIImage *)image {
    [[self shared] hashAlgorithmNotRaiseSegmentedExportingImage:image fileImage:nil];
}

+ (void)eastSawSkipImage:(UIImage *)normalImage fileImage:(nullable UIImage *)fileImage {
    GetSolveView *instance = [self shared];
    instance.composerJobImage = normalImage;
    instance.gatherSobTriggerIcySubtitles = nil;
    instance.acceptNapImage = fileImage;
    instance.manganeseView.image = normalImage;
}

+ (void)modeBreak {
    [[self shared] previewsItsExposureFitnessPurchased];
}

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


- (void)hashAlgorithmNotRaiseSegmentedExportingImage:(UIImage *)image fileImage:(nullable UIImage *)fileImage {
    [self hashAlgorithmNotRaiseSegmentedExportingImage:image eighteen:nil fileImage:fileImage];
}

- (void)hashAlgorithmNotRaiseSegmentedExportingImage:(UIImage *)image eighteen:(NSString *)eighteen fileImage:(nullable UIImage *)fileImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.composerJobImage = image;
        self.gatherSobTriggerIcySubtitles = eighteen;
        self.acceptNapImage = fileImage;
        
        if (!self.serverSuchWindow) {
            [self diagnoseLossyMaximumCapsPingWindow];
            [self fillStakeStrokedPartSingular];
            [self absoluteScreenPosterCheckerStartPrivilege];
            [self signScanningRelativeExporterCommentsExistent]; 
        }
        
        [self.serverSuchWindow makeKeyAndVisible];
        [self.sobFingerBinWindow makeKeyWindow];
        
        [self lazyGallonGenderSoftContainedAnyAnimation:YES];
        [self keepTooDeviationButtonYetTimer];
    });
}

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


- (void)diagnoseLossyMaximumCapsPingWindow {
    
    self.sobFingerBinWindow = [self requestedRollbackPacketsWebpageConcertWindow];
    
    
    ArrayScheduledWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[ArrayScheduledWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[ArrayScheduledWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[CoachedAdvisedViewController alloc] init];
    window.hidden = NO;
    self.serverSuchWindow = window;
    
    
    [self.serverSuchWindow resignKeyWindow];
    [self.sobFingerBinWindow makeKeyWindow];
    
    
    [self addSubview:self.cursorIrishView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.gatherSobTriggerIcySubtitles) {
        [self.manganeseView sd_setImageWithURL:[NSURL URLWithString:self.gatherSobTriggerIcySubtitles] placeholderImage
                                              :[UIImage resourcesFunAskHandoffSaltName:LearnWeekly.reuseRenewal.unloadNominallyMajorRadioStay]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.manganeseView.image = self.composerJobImage;
    }
    self.manganeseView.frame = self.bounds;
    
    [self.serverSuchWindow addSubview:self];
    [self.serverSuchWindow addSubview:self.quickAutoView];
}


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

          (cocoaLeadTop.size.width - human/2),
          cocoaLeadTop.size.height - human/2,
          human,
          human
        );
        self.quickAutoView.layer.masksToBounds = YES;
        self.quickAutoView.layer.cornerRadius = human/2;
        self.torqueAreLabel.center = CGPointMake(human/3, human/4);
    }
}


- (void)trapFitSawMost {
    if (self.faceFamilyJson) {
        !self.fourSeedHandler ?: self.fourSeedHandler(self.faceFamilyJson[LearnWeekly.reuseRenewal.highestGain]);
        if ([self.faceFamilyJson[LearnWeekly.reuseRenewal.hitSinTrashKey] isEqualToString:LearnWeekly.reuseRenewal.frictionParserTradProxyClip]) {
            self.cursorIrishView.hidden = YES;
            _faceFamilyJson = nil;
        }
    }else {
        !self.fourSeedHandler ?: self.fourSeedHandler(nil);
    }
}

- (void)twoZeroSexNeed:(UIPanGestureRecognizer *)gesture {
    if (decomposeReasonUnifyDragUtterance) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            stylusWeekBankersPhoneDrizzleRecipient = self.center;
            _manganeseView.alpha = 1;
            [self insidePriceSideRectumIslamic];
            offerDependingOurAllHeightZip = NO; 
            sexualRowExactnessAdjustingTall = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.quickAutoView.layer removeAllAnimations];
            
            
            self.quickAutoView.alpha = 0.0;
            self.quickAutoView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self retRedConvertedReferenceSuchIntegersOneCenter:
                           CGPointMake(stylusWeekBankersPhoneDrizzleRecipient.x + translation.x,
                                       stylusWeekBankersPhoneDrizzleRecipient.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL DownloadOne = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect doneFrame = self.quickAutoView.frame;
            CGRect flagLearn = CGRectInset(doneFrame, -280, DownloadOne?-100:-280); 
            BOOL invertedGram = CGRectContainsPoint(flagLearn, self.center);
            
            
            
            
            if (invertedGram != sexualRowExactnessAdjustingTall) {
                sexualRowExactnessAdjustingTall = invertedGram;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.quickAutoView.alpha = invertedGram ? 1.0 : 0.0;
                    self.quickAutoView.transform = invertedGram ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            invertedGram = CGRectContainsPoint(CGRectInset(doneFrame, 0, 0), self.center);
            if (invertedGram && !offerDependingOurAllHeightZip) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                offerDependingOurAllHeightZip = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.quickAutoView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!invertedGram) {
                if (offerDependingOurAllHeightZip) {
                    self.quickAutoView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                offerDependingOurAllHeightZip = NO;
            }
            
            
            flagLearn = CGRectInset(doneFrame, 0, 0);
            _iterativeAcceptingLappishBoxIssue = CGRectContainsPoint(flagLearn, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.quickAutoView.alpha = 0.0;
                self.quickAutoView.transform = CGAffineTransformIdentity;
            }];
            
            if (_iterativeAcceptingLappishBoxIssue) {
                [ArtAlertView latencySawBlindingRankedPolarMean:nil message:LearnWeekly.estonianBanner.bufferingExpireNanogramsDueFloatEye dogAccessory:@[LearnWeekly.estonianBanner.buddyLookup, LearnWeekly.estonianBanner.nominal] completion:^(NSInteger netMinIndex) {
                    if (netMinIndex ==1) {
                        [self previewsItsExposureFitnessPurchased];
                    }else {
                        [self lazyGallonGenderSoftContainedAnyAnimation:YES];
                        [self keepTooDeviationButtonYetTimer];
                    }
                }];
            } else {
                [self lazyGallonGenderSoftContainedAnyAnimation:YES];
                [self keepTooDeviationButtonYetTimer];
            }
            offerDependingOurAllHeightZip = NO;
            sexualRowExactnessAdjustingTall = NO;
            break;
        }

        default: break;
    }
}


- (void)lazyGallonGenderSoftContainedAnyAnimation:(BOOL)animate {
    if (!_radialTradGraphicsDesignCloseReserved) return;
    
    
    if (decomposeReasonUnifyDragUtterance && animate) return;
    
    CGRect nineFrame = [self littleShelfNotifyingDiscountsRainFrame];
    CGPoint center = self.center;
    
    CGFloat hang = nineFrame.origin.x;
    CGFloat skin = nineFrame.origin.x + nineFrame.size.width;
    CGFloat gasp = nineFrame.origin.y;
    CGFloat best = nineFrame.origin.y + nineFrame.size.height;
    
    
    ClipOffLooseEdge eraPinEdge = CanadianHisNordicLeapPostSpanish;
    CGFloat keyDownMust = CGFLOAT_MAX;
    
    
    CGFloat escape = center.x - hang;
    CGFloat mixLove = skin - center.x;
    CGFloat cross = center.y - gasp;
    CGFloat claimAll = best - center.y;
    
    NSArray *farCredit = @[@(escape), @(mixLove), @(cross), @(claimAll)];
    NSArray *edges = @[@(ExternSlowTagRunningCandidateChild), @(BookFalloffCertAdvanceVoiceRemove),
                       @(BarPascalShoulderUniversalFuture), @(CenteredSpellEachBothBandDraw)];
    
    for (NSInteger i = 0; i < farCredit.count; i++) {
        CGFloat distance = [farCredit[i] floatValue];
        if (distance < keyDownMust) {
            keyDownMust = distance;
            eraPinEdge = [edges[i] integerValue];
        }
    }
    
    
    if (eraPinEdge == self.thumbPaletteEdge) {
        CGPoint tenLeadCenter = self.center;
        CGPoint rhythmCenter = [self iconConflictKirghizColorStripImproperEdge:eraPinEdge];
        CGFloat distance = hypot(tenLeadCenter.x - rhythmCenter.x, tenLeadCenter.y - rhythmCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.thumbPaletteEdge = eraPinEdge;
    
    
    CGPoint rhythmCenter = [self iconConflictKirghizColorStripImproperEdge:eraPinEdge];
    CGPoint slideCenter = [self accountBusBreakingSingularNetworkInhalerRetainEdge:eraPinEdge];
    
    
    decomposeReasonUnifyDragUtterance = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->decomposeReasonUnifyDragUtterance = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = rhythmCenter;
        self.cursorIrishView.center = slideCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)iconConflictKirghizColorStripImproperEdge:(ClipOffLooseEdge)edge {
    CGRect nineFrame = [self littleShelfNotifyingDiscountsRainFrame];
    CGPoint center = self.center;
    
    CGFloat hang = nineFrame.origin.x;
    CGFloat skin = nineFrame.origin.x + nineFrame.size.width;
    CGFloat gasp = nineFrame.origin.y;
    CGFloat best = nineFrame.origin.y + nineFrame.size.height;
    
    CGPoint rhythmCenter = center;
    
    switch (edge) {
        case ExternSlowTagRunningCandidateChild:
            rhythmCenter.x = hang + self.bounds.size.width/2 + _strongPlatform;
            break;
        case BookFalloffCertAdvanceVoiceRemove:
            rhythmCenter.x = skin - self.bounds.size.width/2 - _strongPlatform;
            break;
        case BarPascalShoulderUniversalFuture:
            rhythmCenter.y = gasp + self.bounds.size.height/2 + _strongPlatform;
            break;
        case CenteredSpellEachBothBandDraw:
            rhythmCenter.y = best - self.bounds.size.height/2 - _strongPlatform;
            break;
        default:
            break;
    }
    
    
    return [self retRedConvertedReferenceSuchIntegersOneCenter:rhythmCenter];
}


- (CGPoint)accountBusBreakingSingularNetworkInhalerRetainEdge:(ClipOffLooseEdge)edge {
    CGPoint slideCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case ExternSlowTagRunningCandidateChild:
            slideCenter.x = self.bounds.size.width;
            break;
        case BookFalloffCertAdvanceVoiceRemove:
            
            break;
        case BarPascalShoulderUniversalFuture:
            slideCenter.x = self.bounds.size.width;
            slideCenter.y = self.bounds.size.height;
            break;
        case CenteredSpellEachBothBandDraw:
            slideCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return slideCenter;
}


- (void)keepTooDeviationButtonYetTimer {
    if (_askFutureAddProjectAnimator <= 0) return;
    
    [self insidePriceSideRectumIslamic];
    _withIntensityTimer = [NSTimer scheduledTimerWithTimeInterval:_askFutureAddProjectAnimator
                                                     target:self
                                                   selector:@selector(rotatePenCutRequireList)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)insidePriceSideRectumIslamic {
    [_withIntensityTimer invalidate];
    _withIntensityTimer = nil;
}

- (void)rotatePenCutRequireList {
    [UIView animateWithDuration:0.3 animations:^{
        self.manganeseView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.thumbPaletteEdge) {
            case ExternSlowTagRunningCandidateChild:
                frame.origin.x -= self.strongPlatform;
                break;
            case BookFalloffCertAdvanceVoiceRemove:
                frame.origin.x += self.strongPlatform;
                break;
            case BarPascalShoulderUniversalFuture:
                frame.origin.y -= self.strongPlatform;
                break;
            case CenteredSpellEachBothBandDraw:
                frame.origin.y += self.strongPlatform;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)watchedItsChestConstantEldestCause {
    [self fillStakeStrokedPartSingular];
    [self signScanningRelativeExporterCommentsExistent]; 
    [self lazyGallonGenderSoftContainedAnyAnimation:YES];
}


- (void)fillStakeStrokedPartSingular {
    UIWindow *keyWindow = HockeySeeManager.shared.teamReturnedWindow; //self.sobFingerBinWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice logApply]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice airEra]) {
        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.qualityPredictedCatToleranceFlat = safeArea;
    self.rowsSquaresButtonsSpeakerBodyMerge = keyWindow.bounds;
}

- (CGRect)littleShelfNotifyingDiscountsRainFrame {
    
    return CGRectMake(
        self.rowsSquaresButtonsSpeakerBodyMerge.origin.x + self.qualityPredictedCatToleranceFlat.left,
        self.rowsSquaresButtonsSpeakerBodyMerge.origin.y + self.qualityPredictedCatToleranceFlat.top,
        self.rowsSquaresButtonsSpeakerBodyMerge.size.width - (self.qualityPredictedCatToleranceFlat.left + self.qualityPredictedCatToleranceFlat.right),
        self.rowsSquaresButtonsSpeakerBodyMerge.size.height - (self.qualityPredictedCatToleranceFlat.top + self.qualityPredictedCatToleranceFlat.bottom)
    );
}


- (void)absoluteScreenPosterCheckerStartPrivilege {
    NSString *contactLevel = [[NSUserDefaults standardUserDefaults] valueForKey:LearnWeekly.reuseRenewal.escapesFootImportantRealmYellowWatch];
    if (contactLevel) {
        self.center = CGPointFromString(contactLevel);
    }else {
        
        CGRect nineFrame = [self littleShelfNotifyingDiscountsRainFrame];
        self.center = CGPointMake(nineFrame.origin.x + nineFrame.size.width - self.bounds.size.width/2 - _strongPlatform,
                                  nineFrame.origin.y + nineFrame.size.height/2);
    }
}


- (UIWindow *)requestedRollbackPacketsWebpageConcertWindow {
    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)retRedConvertedReferenceSuchIntegersOneCenter:(CGPoint)proposedCenter {
    CGRect nineFrame = [self littleShelfNotifyingDiscountsRainFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat hang = nineFrame.origin.x + buttonSize.width/2;
    CGFloat skin = nineFrame.origin.x + nineFrame.size.width - buttonSize.width/2;
    CGFloat gasp = nineFrame.origin.y + buttonSize.height/2;
    CGFloat best = nineFrame.origin.y + nineFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(hang, MIN(proposedCenter.x, skin)),
        MAX(gasp, MIN(proposedCenter.y, best))
    );
}

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

@end
