






#import "MoveFontView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+EyeImage.h"
#import "HisTwoEject.h"
#import "NSString+BankDrive.h"
#import "SheAlertView.h"
#import "AgeIdlePipeDidWindow.h"
#import "BeenJobTipNearViewController.h"
#import "UIDevice+KinDevice.h"
#import "VolumeAddManager.h"

@interface MoveFontView()  <UIGestureRecognizerDelegate> {
    CGPoint saltAdobeDescribesLossManyTint;
    BOOL resolvedCreatorOccurUnifyPress;
    BOOL springStreamsNotationTailExecutionPop; 
    BOOL courseDecoderExponentsLoseInverse; 
}


@property (nonatomic, strong) AgeIdlePipeDidWindow *sexKitTaskWindow;
@property (nonatomic, weak) UIWindow *sunAskLittleWindow;


@property (nonatomic, strong) UIImageView *stereoTwoView;
@property (nonatomic, strong) UIView *firstHandleView;


@property (nonatomic, strong) UIView *intentOptView;
@property (nonatomic, strong) UILabel *andDomainLabel;
@property (nonatomic, assign) BOOL hallDropSeventeenCompileShake;


@property (nonatomic, strong) NSTimer *yetOffZipWeekTimer;
@property (nonatomic, assign) UIEdgeInsets figureAmbiguousAndHasDog;
@property (nonatomic, assign) CGRect coursePerformerSpeakCounterUkrainianWrite;


@property (nonatomic, strong) UIImage *eyeExerciseImage;
@property (nonatomic, copy) NSString *noiseStopNumeralSentencesHost;
@property (nonatomic, strong) UIImage *exceptionImage;
@property (nonatomic, assign) CGFloat hockeyObscures;
@property (nonatomic, assign) BuddyMarginsEdge bitParameterEdge;
@property (nonatomic, assign) NSTimeInterval gujaratiGramPoolParsingHusband;
@property (nonatomic, assign) BOOL usesWaxResizePrintableSchemeTool;
@end

@implementation MoveFontView


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

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

- (void)previewsSpeedDiscreteHandlerRow {
    self.hockeyObscures = 10.0;
    self.gujaratiGramPoolParsingHusband = 3.0;
    self.usesWaxResizePrintableSchemeTool = YES;
    
    
    self.stereoTwoView = [[UIImageView alloc] init];
    self.stereoTwoView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.stereoTwoView];
    
    self.intentOptView = [[UIView alloc] init];
    self.intentOptView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.intentOptView.layer.cornerRadius = 20;
    self.intentOptView.layer.masksToBounds = YES;
    self.intentOptView.alpha = 0.0;
    
    self.andDomainLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.andDomainLabel.text = HisTwoEject.nineEchoArmpit.centeredOriginalLiteralAuthorGujaratiSin;
    self.andDomainLabel.numberOfLines = 0;
    self.andDomainLabel.textColor = [UIColor whiteColor];
    self.andDomainLabel.textAlignment = NSTextAlignmentCenter;
    self.andDomainLabel.font = [UIFont systemFontOfSize:14];
    [self.intentOptView addSubview:self.andDomainLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(eldestHandDrum:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *spa = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(toggleFailBlur)];
    [self addGestureRecognizer:spa];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(connectAdvisoryExceededEvaluatedExtendingShe)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setOffTaskPinJson:(NSDictionary *)offTaskPinJson {
    _offTaskPinJson = offTaskPinJson;
    if (offTaskPinJson && self.sexKitTaskWindow != nil) {
        NSString *action = offTaskPinJson[HisTwoEject.mildVitalEar.addBigOwnBuddy];
        if ([action isEqualToString:HisTwoEject.mildVitalEar.performsSave]) {
            self.firstHandleView.hidden = NO;
        }else if ([action isEqualToString:HisTwoEject.mildVitalEar.thickCardSum]) {
            self.firstHandleView.hidden = YES;
        }else if ([action isEqualToString:HisTwoEject.mildVitalEar.applyingMinderCoastUnsafeProvides]) {
            self.firstHandleView.hidden = NO;
        }
    }
}


+ (void)smileSink {
    [self.shared bufferCollapsedSpanishBoundingPermuteNearestImage:[UIImage undoneWasCallContainsRelevanceName:HisTwoEject.mildVitalEar.winRowsFilteredWindowPut] fileNode:HisTwoEject.linerThreadOwnerTorqueDerive skipImage:nil];
}

+ (void)illAxialTatarImage:(UIImage *)image {
    [[self shared] bufferCollapsedSpanishBoundingPermuteNearestImage:image skipImage:nil];
}

+ (void)busSixStoneImage:(UIImage *)normalImage skipImage:(nullable UIImage *)skipImage {
    MoveFontView *instance = [self shared];
    instance.eyeExerciseImage = normalImage;
    instance.noiseStopNumeralSentencesHost = nil;
    instance.exceptionImage = skipImage;
    instance.stereoTwoView.image = normalImage;
}

+ (void)stopHuman {
    [[self shared] provideGreekWaxPlanFlipped];
}

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


- (void)bufferCollapsedSpanishBoundingPermuteNearestImage:(UIImage *)image skipImage:(nullable UIImage *)skipImage {
    [self bufferCollapsedSpanishBoundingPermuteNearestImage:image fileNode:nil skipImage:skipImage];
}

- (void)bufferCollapsedSpanishBoundingPermuteNearestImage:(UIImage *)image fileNode:(NSString *)fileNode skipImage:(nullable UIImage *)skipImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.eyeExerciseImage = image;
        self.noiseStopNumeralSentencesHost = fileNode;
        self.exceptionImage = skipImage;
        
        if (!self.sexKitTaskWindow) {
            [self leapTomorrowParentalSpecifyForWindow];
            [self occurExtendsStiffnessRankDust];
            [self fallbackFavoriteTallSwapTiedMove];
            [self passwordThreadDomainNotifyingBadAxial]; 
        }
        
        [self.sexKitTaskWindow makeKeyAndVisible];
        [self.sunAskLittleWindow makeKeyWindow];
        
        [self trapDisablesSoftballParseUbiquityExtrasAnimation:YES];
        [self shortcutChooseOperationBetterLegibleTimer];
    });
}

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


- (void)leapTomorrowParentalSpecifyForWindow {
    
    self.sunAskLittleWindow = [self printedMotionDisablingRectumExtendingWindow];
    
    
    AgeIdlePipeDidWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[AgeIdlePipeDidWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[AgeIdlePipeDidWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[BeenJobTipNearViewController alloc] init];
    window.hidden = NO;
    self.sexKitTaskWindow = window;
    
    
    [self.sexKitTaskWindow resignKeyWindow];
    [self.sunAskLittleWindow makeKeyWindow];
    
    
    [self addSubview:self.firstHandleView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.noiseStopNumeralSentencesHost) {
        [self.stereoTwoView sd_setImageWithURL:[NSURL URLWithString:self.noiseStopNumeralSentencesHost] placeholderImage
                                              :[UIImage undoneWasCallContainsRelevanceName:HisTwoEject.mildVitalEar.winRowsFilteredWindowPut]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.stereoTwoView.image = self.eyeExerciseImage;
    }
    self.stereoTwoView.frame = self.bounds;
    
    [self.sexKitTaskWindow addSubview:self];
    [self.sexKitTaskWindow addSubview:self.intentOptView];
}


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

          (senderBarHow.size.width - polar/2),
          senderBarHow.size.height - polar/2,
          polar,
          polar
        );
        self.intentOptView.layer.masksToBounds = YES;
        self.intentOptView.layer.cornerRadius = polar/2;
        self.andDomainLabel.center = CGPointMake(polar/3, polar/4);
    }
}


- (void)toggleFailBlur {
    if (self.offTaskPinJson) {
        !self.firstForHandler ?: self.firstForHandler(self.offTaskPinJson[HisTwoEject.mildVitalEar.squashWorld]);
        if ([self.offTaskPinJson[HisTwoEject.mildVitalEar.addBigOwnBuddy] isEqualToString:HisTwoEject.mildVitalEar.applyingMinderCoastUnsafeProvides]) {
            self.firstHandleView.hidden = YES;
            _offTaskPinJson = nil;
        }
    }else {
        !self.firstForHandler ?: self.firstForHandler(nil);
    }
}

- (void)eldestHandDrum:(UIPanGestureRecognizer *)gesture {
    if (resolvedCreatorOccurUnifyPress) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            saltAdobeDescribesLossManyTint = self.center;
            _stereoTwoView.alpha = 1;
            [self halfLoopsDutchAspectCaption];
            springStreamsNotationTailExecutionPop = NO; 
            courseDecoderExponentsLoseInverse = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.intentOptView.layer removeAllAnimations];
            
            
            self.intentOptView.alpha = 0.0;
            self.intentOptView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self pintFlatnessProceedDigitSafetyResizingAdapterCenter:
                           CGPointMake(saltAdobeDescribesLossManyTint.x + translation.x,
                                       saltAdobeDescribesLossManyTint.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL VibrancyKey = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect pickFrame = self.intentOptView.frame;
            CGRect eventFoot = CGRectInset(pickFrame, -280, VibrancyKey?-100:-280); 
            BOOL pingComputer = CGRectContainsPoint(eventFoot, self.center);
            
            
            
            
            if (pingComputer != courseDecoderExponentsLoseInverse) {
                courseDecoderExponentsLoseInverse = pingComputer;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.intentOptView.alpha = pingComputer ? 1.0 : 0.0;
                    self.intentOptView.transform = pingComputer ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            pingComputer = CGRectContainsPoint(CGRectInset(pickFrame, 0, 0), self.center);
            if (pingComputer && !springStreamsNotationTailExecutionPop) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                springStreamsNotationTailExecutionPop = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.intentOptView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!pingComputer) {
                if (springStreamsNotationTailExecutionPop) {
                    self.intentOptView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                springStreamsNotationTailExecutionPop = NO;
            }
            
            
            eventFoot = CGRectInset(pickFrame, 0, 0);
            _hallDropSeventeenCompileShake = CGRectContainsPoint(eventFoot, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.intentOptView.alpha = 0.0;
                self.intentOptView.transform = CGAffineTransformIdentity;
            }];
            
            if (_hallDropSeventeenCompileShake) {
                [SheAlertView portraitGrayWaitSawBothMagnitude:nil message:HisTwoEject.nineEchoArmpit.equalBankCanProfilesTrainingEgg hourNorthBut:@[HisTwoEject.nineEchoArmpit.kinOldFloat, HisTwoEject.nineEchoArmpit.wasMute] completion:^(NSInteger logNapIndex) {
                    if (logNapIndex ==1) {
                        [self provideGreekWaxPlanFlipped];
                    }else {
                        [self trapDisablesSoftballParseUbiquityExtrasAnimation:YES];
                        [self shortcutChooseOperationBetterLegibleTimer];
                    }
                }];
            } else {
                [self trapDisablesSoftballParseUbiquityExtrasAnimation:YES];
                [self shortcutChooseOperationBetterLegibleTimer];
            }
            springStreamsNotationTailExecutionPop = NO;
            courseDecoderExponentsLoseInverse = NO;
            break;
        }

        default: break;
    }
}


- (void)trapDisablesSoftballParseUbiquityExtrasAnimation:(BOOL)animate {
    if (!_usesWaxResizePrintableSchemeTool) return;
    
    
    if (resolvedCreatorOccurUnifyPress && animate) return;
    
    CGRect passFrame = [self waitKeysShakeExponentsTorchFrame];
    CGPoint center = self.center;
    
    CGFloat tied = passFrame.origin.x;
    CGFloat best = passFrame.origin.x + passFrame.size.width;
    CGFloat quit = passFrame.origin.y;
    CGFloat plug = passFrame.origin.y + passFrame.size.height;
    
    
    BuddyMarginsEdge waxOutEdge = ThumbBundlesAlarmStandRomanianLicense;
    CGFloat executorOld = CGFLOAT_MAX;
    
    
    CGFloat jobWho = center.x - tied;
    CGFloat keyWill = best - center.x;
    CGFloat rotor = center.y - quit;
    CGFloat gestures = plug - center.y;
    
    NSArray *videoHalf = @[@(jobWho), @(keyWill), @(rotor), @(gestures)];
    NSArray *edges = @[@(EditLowercaseWorkflowMisplacedActionsTemp), @(LatePrepTemporalFitnessShoulderPreserve),
                       @(UnboundEffectPolarProposalRectangle), @(OlympusIssueSymbolsBrowseDueDeletion)];
    
    for (NSInteger i = 0; i < videoHalf.count; i++) {
        CGFloat distance = [videoHalf[i] floatValue];
        if (distance < executorOld) {
            executorOld = distance;
            waxOutEdge = [edges[i] integerValue];
        }
    }
    
    
    if (waxOutEdge == self.bitParameterEdge) {
        CGPoint upscaleCenter = self.center;
        CGPoint urgentCenter = [self adjectiveAnchorKitLeadExitsOceanEdge:waxOutEdge];
        CGFloat distance = hypot(upscaleCenter.x - urgentCenter.x, upscaleCenter.y - urgentCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.bitParameterEdge = waxOutEdge;
    
    
    CGPoint urgentCenter = [self adjectiveAnchorKitLeadExitsOceanEdge:waxOutEdge];
    CGPoint sceneCenter = [self optNegativeTradTakeMicroDegreeAccordingEdge:waxOutEdge];
    
    
    resolvedCreatorOccurUnifyPress = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->resolvedCreatorOccurUnifyPress = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = urgentCenter;
        self.firstHandleView.center = sceneCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)adjectiveAnchorKitLeadExitsOceanEdge:(BuddyMarginsEdge)edge {
    CGRect passFrame = [self waitKeysShakeExponentsTorchFrame];
    CGPoint center = self.center;
    
    CGFloat tied = passFrame.origin.x;
    CGFloat best = passFrame.origin.x + passFrame.size.width;
    CGFloat quit = passFrame.origin.y;
    CGFloat plug = passFrame.origin.y + passFrame.size.height;
    
    CGPoint urgentCenter = center;
    
    switch (edge) {
        case EditLowercaseWorkflowMisplacedActionsTemp:
            urgentCenter.x = tied + self.bounds.size.width/2 + _hockeyObscures;
            break;
        case LatePrepTemporalFitnessShoulderPreserve:
            urgentCenter.x = best - self.bounds.size.width/2 - _hockeyObscures;
            break;
        case UnboundEffectPolarProposalRectangle:
            urgentCenter.y = quit + self.bounds.size.height/2 + _hockeyObscures;
            break;
        case OlympusIssueSymbolsBrowseDueDeletion:
            urgentCenter.y = plug - self.bounds.size.height/2 - _hockeyObscures;
            break;
        default:
            break;
    }
    
    
    return [self pintFlatnessProceedDigitSafetyResizingAdapterCenter:urgentCenter];
}


- (CGPoint)optNegativeTradTakeMicroDegreeAccordingEdge:(BuddyMarginsEdge)edge {
    CGPoint sceneCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case EditLowercaseWorkflowMisplacedActionsTemp:
            sceneCenter.x = self.bounds.size.width;
            break;
        case LatePrepTemporalFitnessShoulderPreserve:
            
            break;
        case UnboundEffectPolarProposalRectangle:
            sceneCenter.x = self.bounds.size.width;
            sceneCenter.y = self.bounds.size.height;
            break;
        case OlympusIssueSymbolsBrowseDueDeletion:
            sceneCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return sceneCenter;
}


- (void)shortcutChooseOperationBetterLegibleTimer {
    if (_gujaratiGramPoolParsingHusband <= 0) return;
    
    [self halfLoopsDutchAspectCaption];
    _yetOffZipWeekTimer = [NSTimer scheduledTimerWithTimeInterval:_gujaratiGramPoolParsingHusband
                                                     target:self
                                                   selector:@selector(rectumJumpProducerCentersTarget)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)halfLoopsDutchAspectCaption {
    [_yetOffZipWeekTimer invalidate];
    _yetOffZipWeekTimer = nil;
}

- (void)rectumJumpProducerCentersTarget {
    [UIView animateWithDuration:0.3 animations:^{
        self.stereoTwoView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.bitParameterEdge) {
            case EditLowercaseWorkflowMisplacedActionsTemp:
                frame.origin.x -= self.hockeyObscures;
                break;
            case LatePrepTemporalFitnessShoulderPreserve:
                frame.origin.x += self.hockeyObscures;
                break;
            case UnboundEffectPolarProposalRectangle:
                frame.origin.y -= self.hockeyObscures;
                break;
            case OlympusIssueSymbolsBrowseDueDeletion:
                frame.origin.y += self.hockeyObscures;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)connectAdvisoryExceededEvaluatedExtendingShe {
    [self occurExtendsStiffnessRankDust];
    [self passwordThreadDomainNotifyingBadAxial]; 
    [self trapDisablesSoftballParseUbiquityExtrasAnimation:YES];
}


- (void)occurExtendsStiffnessRankDust {
    UIWindow *keyWindow = VolumeAddManager.shared.otherKeyOnceWindow; //self.sunAskLittleWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice eightPub]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice kitNap]) {
        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.figureAmbiguousAndHasDog = safeArea;
    self.coursePerformerSpeakCounterUkrainianWrite = keyWindow.bounds;
}

- (CGRect)waitKeysShakeExponentsTorchFrame {
    
    return CGRectMake(
        self.coursePerformerSpeakCounterUkrainianWrite.origin.x + self.figureAmbiguousAndHasDog.left,
        self.coursePerformerSpeakCounterUkrainianWrite.origin.y + self.figureAmbiguousAndHasDog.top,
        self.coursePerformerSpeakCounterUkrainianWrite.size.width - (self.figureAmbiguousAndHasDog.left + self.figureAmbiguousAndHasDog.right),
        self.coursePerformerSpeakCounterUkrainianWrite.size.height - (self.figureAmbiguousAndHasDog.top + self.figureAmbiguousAndHasDog.bottom)
    );
}


- (void)fallbackFavoriteTallSwapTiedMove {
    NSString *dueLiveIntro = [[NSUserDefaults standardUserDefaults] valueForKey:HisTwoEject.mildVitalEar.canThumbnailPersonHitBackIntegers];
    if (dueLiveIntro) {
        self.center = CGPointFromString(dueLiveIntro);
    }else {
        
        CGRect passFrame = [self waitKeysShakeExponentsTorchFrame];
        self.center = CGPointMake(passFrame.origin.x + passFrame.size.width - self.bounds.size.width/2 - _hockeyObscures,
                                  passFrame.origin.y + passFrame.size.height/2);
    }
}


- (UIWindow *)printedMotionDisablingRectumExtendingWindow {
    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)pintFlatnessProceedDigitSafetyResizingAdapterCenter:(CGPoint)proposedCenter {
    CGRect passFrame = [self waitKeysShakeExponentsTorchFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat tied = passFrame.origin.x + buttonSize.width/2;
    CGFloat best = passFrame.origin.x + passFrame.size.width - buttonSize.width/2;
    CGFloat quit = passFrame.origin.y + buttonSize.height/2;
    CGFloat plug = passFrame.origin.y + passFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(tied, MIN(proposedCenter.x, best)),
        MAX(quit, MIN(proposedCenter.y, plug))
    );
}

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

@end
