






#import "OurGradeView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+TopImage.h"
#import "RowGivenOut.h"
#import "NSString+Magnesium.h"
#import "AreAlertView.h"
#import "MomentaryMightWindow.h"
#import "BitShotWayPrepViewController.h"
#import "UIDevice+DogDevice.h"
#import "CapUniqueManager.h"

@interface OurGradeView()  <UIGestureRecognizerDelegate> {
    CGPoint bayerSobWalkLaunchingPinkThe;
    BOOL dialogWalkingSongModifierExtend;
    BOOL lowerPriceDrawDiscoveryResultsPrimaries; 
    BOOL shiftAudiencesExactHasCenters; 
}


@property (nonatomic, strong) MomentaryMightWindow *wetTryTiedWindow;
@property (nonatomic, weak) UIWindow *kannadaAvailWindow;


@property (nonatomic, strong) UIImageView *activatedView;
@property (nonatomic, strong) UIView *generateWinView;


@property (nonatomic, strong) UIView *starSleetView;
@property (nonatomic, strong) UILabel *angleBeatLabel;
@property (nonatomic, assign) BOOL suffixPresetManualSlashesBottom;


@property (nonatomic, strong) NSTimer *addressesGrayTimer;
@property (nonatomic, assign) UIEdgeInsets needRevertDialogFlowAdjust;
@property (nonatomic, assign) CGRect femaleAskExtractPreventedPublishMeter;


@property (nonatomic, strong) UIImage *coverMaxCutImage;
@property (nonatomic, copy) NSString *signalingWindowsSomaliUniversalTip;
@property (nonatomic, strong) UIImage *batchUserImage;
@property (nonatomic, assign) CGFloat tapsMergeQuick;
@property (nonatomic, assign) BracketedRunEdge mindFollowerEdge;
@property (nonatomic, assign) NSTimeInterval renewedDrawingRefusedBeginIndicated;
@property (nonatomic, assign) BOOL redInvokeExporterRadiansLocalizesMargin;
@end

@implementation OurGradeView


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

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

- (void)dingbatsDueParentPassDismiss {
    self.tapsMergeQuick = 10.0;
    self.renewedDrawingRefusedBeginIndicated = 3.0;
    self.redInvokeExporterRadiansLocalizesMargin = YES;
    
    
    self.activatedView = [[UIImageView alloc] init];
    self.activatedView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.activatedView];
    
    self.starSleetView = [[UIView alloc] init];
    self.starSleetView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.starSleetView.layer.cornerRadius = 20;
    self.starSleetView.layer.masksToBounds = YES;
    self.starSleetView.alpha = 0.0;
    
    self.angleBeatLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.angleBeatLabel.text = RowGivenOut.nineHisSoloTen.advertiseLossyUplinkTrackingOpaqueMegabytes;
    self.angleBeatLabel.numberOfLines = 0;
    self.angleBeatLabel.textColor = [UIColor whiteColor];
    self.angleBeatLabel.textAlignment = NSTextAlignmentCenter;
    self.angleBeatLabel.font = [UIFont systemFontOfSize:14];
    [self.starSleetView addSubview:self.angleBeatLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(infoDueBinPath:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *but = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(watchWarnPitch)];
    [self addGestureRecognizer:but];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(catTopNotifiedAdvanceCurveList)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setMaxWrapperJson:(NSDictionary *)maxWrapperJson {
    _maxWrapperJson = maxWrapperJson;
    if (maxWrapperJson && self.wetTryTiedWindow != nil) {
        NSString *action = maxWrapperJson[RowGivenOut.mathProxyKin.autoChargeDraw];
        if ([action isEqualToString:RowGivenOut.mathProxyKin.batchOnceAnd]) {
            self.generateWinView.hidden = NO;
        }else if ([action isEqualToString:RowGivenOut.mathProxyKin.tipTwoPoster]) {
            self.generateWinView.hidden = YES;
        }else if ([action isEqualToString:RowGivenOut.mathProxyKin.caretCommandsNativeAgeWide]) {
            self.generateWinView.hidden = NO;
        }
    }
}


+ (void)mixerFire {
    [self.shared aboveGesturesControlsArbitrarySeeDiamondImage:[UIImage guideTabTruncatedDoneMeterName:RowGivenOut.mathProxyKin.moderateFlowFiveDuplicateWaist] loudTrad:RowGivenOut.volumesEastEllipsisRadioDay headImage:nil];
}

+ (void)attachHandoffImage:(UIImage *)image {
    [[self shared] aboveGesturesControlsArbitrarySeeDiamondImage:image headImage:nil];
}

+ (void)airCanonBinImage:(UIImage *)normalImage headImage:(nullable UIImage *)headImage {
    OurGradeView *instance = [self shared];
    instance.coverMaxCutImage = normalImage;
    instance.signalingWindowsSomaliUniversalTip = nil;
    instance.batchUserImage = headImage;
    instance.activatedView.image = normalImage;
}

+ (void)eraUpside {
    [[self shared] parallelCompositeCommentsExportingBuffer];
}

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


- (void)aboveGesturesControlsArbitrarySeeDiamondImage:(UIImage *)image headImage:(nullable UIImage *)headImage {
    [self aboveGesturesControlsArbitrarySeeDiamondImage:image loudTrad:nil headImage:headImage];
}

- (void)aboveGesturesControlsArbitrarySeeDiamondImage:(UIImage *)image loudTrad:(NSString *)loudTrad headImage:(nullable UIImage *)headImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.coverMaxCutImage = image;
        self.signalingWindowsSomaliUniversalTip = loudTrad;
        self.batchUserImage = headImage;
        
        if (!self.wetTryTiedWindow) {
            [self recordPointersAlongSubReachedWindow];
            [self weekdayIdentifyGoldenMaleSerial];
            [self swapReturnedEdgaProtocolTrimmingDisable];
            [self pencilAssetSessionPanEmptyTexture]; 
        }
        
        [self.wetTryTiedWindow makeKeyAndVisible];
        [self.kannadaAvailWindow makeKeyWindow];
        
        [self subscriptLargeReceivingEscapeAdjustsOwnerAnimation:YES];
        [self fatalFadeSignalingDigitalWorldTimer];
    });
}

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


- (void)recordPointersAlongSubReachedWindow {
    
    self.kannadaAvailWindow = [self theParseSafeCupShipmentWindow];
    
    
    MomentaryMightWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[MomentaryMightWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[MomentaryMightWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[BitShotWayPrepViewController alloc] init];
    window.hidden = NO;
    self.wetTryTiedWindow = window;
    
    
    [self.wetTryTiedWindow resignKeyWindow];
    [self.kannadaAvailWindow makeKeyWindow];
    
    
    [self addSubview:self.generateWinView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.signalingWindowsSomaliUniversalTip) {
        [self.activatedView sd_setImageWithURL:[NSURL URLWithString:self.signalingWindowsSomaliUniversalTip] placeholderImage
                                              :[UIImage guideTabTruncatedDoneMeterName:RowGivenOut.mathProxyKin.moderateFlowFiveDuplicateWaist]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.activatedView.image = self.coverMaxCutImage;
    }
    self.activatedView.frame = self.bounds;
    
    [self.wetTryTiedWindow addSubview:self];
    [self.wetTryTiedWindow addSubview:self.starSleetView];
}


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

          (safariOldBag.size.width - quote/2),
          safariOldBag.size.height - quote/2,
          quote,
          quote
        );
        self.starSleetView.layer.masksToBounds = YES;
        self.starSleetView.layer.cornerRadius = quote/2;
        self.angleBeatLabel.center = CGPointMake(quote/3, quote/4);
    }
}


- (void)watchWarnPitch {
    if (self.maxWrapperJson) {
        !self.moreDownHandler ?: self.moreDownHandler(self.maxWrapperJson[RowGivenOut.mathProxyKin.eyeBothNine]);
        if ([self.maxWrapperJson[RowGivenOut.mathProxyKin.autoChargeDraw] isEqualToString:RowGivenOut.mathProxyKin.caretCommandsNativeAgeWide]) {
            self.generateWinView.hidden = YES;
            _maxWrapperJson = nil;
        }
    }else {
        !self.moreDownHandler ?: self.moreDownHandler(nil);
    }
}

- (void)infoDueBinPath:(UIPanGestureRecognizer *)gesture {
    if (dialogWalkingSongModifierExtend) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            bayerSobWalkLaunchingPinkThe = self.center;
            _activatedView.alpha = 1;
            [self obscuredCacheCriticalCornerEnhance];
            lowerPriceDrawDiscoveryResultsPrimaries = NO; 
            shiftAudiencesExactHasCenters = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.starSleetView.layer removeAllAnimations];
            
            
            self.starSleetView.alpha = 0.0;
            self.starSleetView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self meterDatumNineCanceledStreetVisitOwnerCenter:
                           CGPointMake(bayerSobWalkLaunchingPinkThe.x + translation.x,
                                       bayerSobWalkLaunchingPinkThe.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL LiterOneKin = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect boldFrame = self.starSleetView.frame;
            CGRect bendIrish = CGRectInset(boldFrame, -280, LiterOneKin?-100:-280); 
            BOOL coverDrawing = CGRectContainsPoint(bendIrish, self.center);
            
            
            
            
            if (coverDrawing != shiftAudiencesExactHasCenters) {
                shiftAudiencesExactHasCenters = coverDrawing;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.starSleetView.alpha = coverDrawing ? 1.0 : 0.0;
                    self.starSleetView.transform = coverDrawing ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            coverDrawing = CGRectContainsPoint(CGRectInset(boldFrame, 0, 0), self.center);
            if (coverDrawing && !lowerPriceDrawDiscoveryResultsPrimaries) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                lowerPriceDrawDiscoveryResultsPrimaries = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.starSleetView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!coverDrawing) {
                if (lowerPriceDrawDiscoveryResultsPrimaries) {
                    self.starSleetView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                lowerPriceDrawDiscoveryResultsPrimaries = NO;
            }
            
            
            bendIrish = CGRectInset(boldFrame, 0, 0);
            _suffixPresetManualSlashesBottom = CGRectContainsPoint(bendIrish, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.starSleetView.alpha = 0.0;
                self.starSleetView.transform = CGAffineTransformIdentity;
            }];
            
            if (_suffixPresetManualSlashesBottom) {
                [AreAlertView internalTemporalAlignZipLayeringNatural:nil message:RowGivenOut.nineHisSoloTen.exponentRenewingMantissaDefinesParserCapacity toneDenseSaw:@[RowGivenOut.nineHisSoloTen.idiomColumn, RowGivenOut.nineHisSoloTen.mealTwo] completion:^(NSInteger outHasIndex) {
                    if (outHasIndex ==1) {
                        [self parallelCompositeCommentsExportingBuffer];
                    }else {
                        [self subscriptLargeReceivingEscapeAdjustsOwnerAnimation:YES];
                        [self fatalFadeSignalingDigitalWorldTimer];
                    }
                }];
            } else {
                [self subscriptLargeReceivingEscapeAdjustsOwnerAnimation:YES];
                [self fatalFadeSignalingDigitalWorldTimer];
            }
            lowerPriceDrawDiscoveryResultsPrimaries = NO;
            shiftAudiencesExactHasCenters = NO;
            break;
        }

        default: break;
    }
}


- (void)subscriptLargeReceivingEscapeAdjustsOwnerAnimation:(BOOL)animate {
    if (!_redInvokeExporterRadiansLocalizesMargin) return;
    
    
    if (dialogWalkingSongModifierExtend && animate) return;
    
    CGRect prepFrame = [self deciliterOutdoorUploadingDefaultChargeFrame];
    CGPoint center = self.center;
    
    CGFloat best = prepFrame.origin.x;
    CGFloat mill = prepFrame.origin.x + prepFrame.size.width;
    CGFloat bond = prepFrame.origin.y;
    CGFloat days = prepFrame.origin.y + prepFrame.size.height;
    
    
    BracketedRunEdge menYouEdge = AgreementCurvePacketsRecursiveFilenamesPack;
    CGFloat bagQuietWon = CGFLOAT_MAX;
    
    
    CGFloat farSpa = center.x - best;
    CGFloat planPin = mill - center.x;
    CGFloat later = center.y - bond;
    CGFloat warpMask = days - center.y;
    
    NSArray *opaqueMax = @[@(farSpa), @(planPin), @(later), @(warpMask)];
    NSArray *edges = @[@(BridgingOpaqueParallelCardClusterInside), @(PartiallyUsesIncomingUseFocusOwner),
                       @(TooMalformedTailMalformedSuspended), @(RealmAffectingTagsItemDescribesShe)];
    
    for (NSInteger i = 0; i < opaqueMax.count; i++) {
        CGFloat distance = [opaqueMax[i] floatValue];
        if (distance < bagQuietWon) {
            bagQuietWon = distance;
            menYouEdge = [edges[i] integerValue];
        }
    }
    
    
    if (menYouEdge == self.mindFollowerEdge) {
        CGPoint modeMinCenter = self.center;
        CGPoint formatCenter = [self supportedMediaVibrancyZeroNarrativeLabeledEdge:menYouEdge];
        CGFloat distance = hypot(modeMinCenter.x - formatCenter.x, modeMinCenter.y - formatCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.mindFollowerEdge = menYouEdge;
    
    
    CGPoint formatCenter = [self supportedMediaVibrancyZeroNarrativeLabeledEdge:menYouEdge];
    CGPoint alongCenter = [self betweenPointerIndexStarSockValueKindEdge:menYouEdge];
    
    
    dialogWalkingSongModifierExtend = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->dialogWalkingSongModifierExtend = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = formatCenter;
        self.generateWinView.center = alongCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)supportedMediaVibrancyZeroNarrativeLabeledEdge:(BracketedRunEdge)edge {
    CGRect prepFrame = [self deciliterOutdoorUploadingDefaultChargeFrame];
    CGPoint center = self.center;
    
    CGFloat best = prepFrame.origin.x;
    CGFloat mill = prepFrame.origin.x + prepFrame.size.width;
    CGFloat bond = prepFrame.origin.y;
    CGFloat days = prepFrame.origin.y + prepFrame.size.height;
    
    CGPoint formatCenter = center;
    
    switch (edge) {
        case BridgingOpaqueParallelCardClusterInside:
            formatCenter.x = best + self.bounds.size.width/2 + _tapsMergeQuick;
            break;
        case PartiallyUsesIncomingUseFocusOwner:
            formatCenter.x = mill - self.bounds.size.width/2 - _tapsMergeQuick;
            break;
        case TooMalformedTailMalformedSuspended:
            formatCenter.y = bond + self.bounds.size.height/2 + _tapsMergeQuick;
            break;
        case RealmAffectingTagsItemDescribesShe:
            formatCenter.y = days - self.bounds.size.height/2 - _tapsMergeQuick;
            break;
        default:
            break;
    }
    
    
    return [self meterDatumNineCanceledStreetVisitOwnerCenter:formatCenter];
}


- (CGPoint)betweenPointerIndexStarSockValueKindEdge:(BracketedRunEdge)edge {
    CGPoint alongCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case BridgingOpaqueParallelCardClusterInside:
            alongCenter.x = self.bounds.size.width;
            break;
        case PartiallyUsesIncomingUseFocusOwner:
            
            break;
        case TooMalformedTailMalformedSuspended:
            alongCenter.x = self.bounds.size.width;
            alongCenter.y = self.bounds.size.height;
            break;
        case RealmAffectingTagsItemDescribesShe:
            alongCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return alongCenter;
}


- (void)fatalFadeSignalingDigitalWorldTimer {
    if (_renewedDrawingRefusedBeginIndicated <= 0) return;
    
    [self obscuredCacheCriticalCornerEnhance];
    _addressesGrayTimer = [NSTimer scheduledTimerWithTimeInterval:_renewedDrawingRefusedBeginIndicated
                                                     target:self
                                                   selector:@selector(scanExponentReversesBookChallenge)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)obscuredCacheCriticalCornerEnhance {
    [_addressesGrayTimer invalidate];
    _addressesGrayTimer = nil;
}

- (void)scanExponentReversesBookChallenge {
    [UIView animateWithDuration:0.3 animations:^{
        self.activatedView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.mindFollowerEdge) {
            case BridgingOpaqueParallelCardClusterInside:
                frame.origin.x -= self.tapsMergeQuick;
                break;
            case PartiallyUsesIncomingUseFocusOwner:
                frame.origin.x += self.tapsMergeQuick;
                break;
            case TooMalformedTailMalformedSuspended:
                frame.origin.y -= self.tapsMergeQuick;
                break;
            case RealmAffectingTagsItemDescribesShe:
                frame.origin.y += self.tapsMergeQuick;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)catTopNotifiedAdvanceCurveList {
    [self weekdayIdentifyGoldenMaleSerial];
    [self pencilAssetSessionPanEmptyTexture]; 
    [self subscriptLargeReceivingEscapeAdjustsOwnerAnimation:YES];
}


- (void)weekdayIdentifyGoldenMaleSerial {
    UIWindow *keyWindow = CapUniqueManager.shared.leaveRedBestWindow; //self.kannadaAvailWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice backTree]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice stereo]) {
        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.needRevertDialogFlowAdjust = safeArea;
    self.femaleAskExtractPreventedPublishMeter = keyWindow.bounds;
}

- (CGRect)deciliterOutdoorUploadingDefaultChargeFrame {
    
    return CGRectMake(
        self.femaleAskExtractPreventedPublishMeter.origin.x + self.needRevertDialogFlowAdjust.left,
        self.femaleAskExtractPreventedPublishMeter.origin.y + self.needRevertDialogFlowAdjust.top,
        self.femaleAskExtractPreventedPublishMeter.size.width - (self.needRevertDialogFlowAdjust.left + self.needRevertDialogFlowAdjust.right),
        self.femaleAskExtractPreventedPublishMeter.size.height - (self.needRevertDialogFlowAdjust.top + self.needRevertDialogFlowAdjust.bottom)
    );
}


- (void)swapReturnedEdgaProtocolTrimmingDisable {
    NSString *nowWaxOrigin = [[NSUserDefaults standardUserDefaults] valueForKey:RowGivenOut.mathProxyKin.wristWakePointKnowOverlayMandarin];
    if (nowWaxOrigin) {
        self.center = CGPointFromString(nowWaxOrigin);
    }else {
        
        CGRect prepFrame = [self deciliterOutdoorUploadingDefaultChargeFrame];
        self.center = CGPointMake(prepFrame.origin.x + prepFrame.size.width - self.bounds.size.width/2 - _tapsMergeQuick,
                                  prepFrame.origin.y + prepFrame.size.height/2);
    }
}


- (UIWindow *)theParseSafeCupShipmentWindow {
    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)meterDatumNineCanceledStreetVisitOwnerCenter:(CGPoint)proposedCenter {
    CGRect prepFrame = [self deciliterOutdoorUploadingDefaultChargeFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat best = prepFrame.origin.x + buttonSize.width/2;
    CGFloat mill = prepFrame.origin.x + prepFrame.size.width - buttonSize.width/2;
    CGFloat bond = prepFrame.origin.y + buttonSize.height/2;
    CGFloat days = prepFrame.origin.y + prepFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(best, MIN(proposedCenter.x, mill)),
        MAX(bond, MIN(proposedCenter.y, days))
    );
}

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

@end
