






#import "TakeBendView.h"
#import "UIImageView+WebCache.h"
#import "UIImage+RetImage.h"
#import "SaveWayTaps.h"
#import "NSString+Teaspoons.h"
#import "KeyAlertView.h"
#import "YearAirMostBadWindow.h"
#import "UnwrapRegistryViewController.h"
#import "UIDevice+YouDevice.h"
#import "PrimeArtsManager.h"

@interface TakeBendView()  <UIGestureRecognizerDelegate> {
    CGPoint markBurmeseScanSheetSayArtist;
    BOOL spouseSonFaxUnderageCycle;
    BOOL rangeSpecifierWinBasalThemePending; 
    BOOL cacheCommentStepperWinCommand; 
}


@property (nonatomic, strong) YearAirMostBadWindow *bondBitCutWindow;
@property (nonatomic, weak) UIWindow *ourPlanSlantWindow;


@property (nonatomic, strong) UIImageView *rearMeterView;
@property (nonatomic, strong) UIView *mileHomeTooView;


@property (nonatomic, strong) UIView *detailLawView;
@property (nonatomic, strong) UILabel *cloudyNetLabel;
@property (nonatomic, assign) BOOL listenPlanCommentMinMan;


@property (nonatomic, strong) NSTimer *capSizeBagSunTimer;
@property (nonatomic, assign) UIEdgeInsets sendBagIconGetPerson;
@property (nonatomic, assign) CGRect sandboxLocalesPacketsSecureProductsHis;


@property (nonatomic, strong) UIImage *plateFitHasImage;
@property (nonatomic, copy) NSString *arrangerNodeFlushDecryptedTerabytes;
@property (nonatomic, strong) UIImage *mildTraitImage;
@property (nonatomic, assign) CGFloat onlyPinOldPass;
@property (nonatomic, assign) OtherBendTryEdge howMandatoryEdge;
@property (nonatomic, assign) NSTimeInterval senseReorderLookBookmarkEight;
@property (nonatomic, assign) BOOL redCanonSamplerGroupingIncorrectCount;
@end

@implementation TakeBendView


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

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

- (void)revealFinnishNetStrokedReceive {
    self.onlyPinOldPass = 10.0;
    self.senseReorderLookBookmarkEight = 3.0;
    self.redCanonSamplerGroupingIncorrectCount = YES;
    
    
    self.rearMeterView = [[UIImageView alloc] init];
    self.rearMeterView.contentMode = UIViewContentModeScaleAspectFit;
    [self addSubview:self.rearMeterView];
    
    self.detailLawView = [[UIView alloc] init];
    self.detailLawView.backgroundColor = [UIColor colorWithWhite:0 alpha:0.7];
    self.detailLawView.layer.cornerRadius = 20;
    self.detailLawView.layer.masksToBounds = YES;
    self.detailLawView.alpha = 0.0;
    
    self.cloudyNetLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 0, 80, 40)];
    self.cloudyNetLabel.text = SaveWayTaps.hueOldAreaMole.extentStackBoxRenewingHexStable;
    self.cloudyNetLabel.numberOfLines = 0;
    self.cloudyNetLabel.textColor = [UIColor whiteColor];
    self.cloudyNetLabel.textAlignment = NSTextAlignmentCenter;
    self.cloudyNetLabel.font = [UIFont systemFontOfSize:14];
    [self.detailLawView addSubview:self.cloudyNetLabel];
    
    
    UIPanGestureRecognizer *pan = [[UIPanGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(slideDecrement:)];
    pan.delegate = self;
    [self addGestureRecognizer:pan];
    
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
                                   initWithTarget:self
                                   action:@selector(charAndBinTone)];
    [self addGestureRecognizer:tap];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
    
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(pairSolveDeprecateSessionSafeRecent)
                                                 name:UIApplicationDidChangeStatusBarOrientationNotification
                                               object:nil];
#pragma clang diagnostic pop
}

- (void)setDustCupGetJson:(NSDictionary *)dustCupGetJson {
    _dustCupGetJson = dustCupGetJson;
    if (dustCupGetJson && self.bondBitCutWindow != nil) {
        NSString *action = dustCupGetJson[SaveWayTaps.offerHitEasy.portHueGrayBag];
        if ([action isEqualToString:SaveWayTaps.offerHitEasy.loadEmailFit]) {
            self.mileHomeTooView.hidden = NO;
        }else if ([action isEqualToString:SaveWayTaps.offerHitEasy.metricSayAdd]) {
            self.mileHomeTooView.hidden = YES;
        }else if ([action isEqualToString:SaveWayTaps.offerHitEasy.sinEngravedCursorSheMind]) {
            self.mileHomeTooView.hidden = NO;
        }
    }
}


+ (void)largerLaw {
    [self.shared uploadedBoxSoloistUnloadQualifiedSubstringImage:[UIImage builtOptimizeIncludesEstimatedHomepageName:SaveWayTaps.offerHitEasy.containInsertSinPlaneCap] leakyDog:SaveWayTaps.expiredExtentsSegmentsBurnCanceled seekImage:nil];
}

+ (void)writeIconFootImage:(UIImage *)image {
    [[self shared] uploadedBoxSoloistUnloadQualifiedSubstringImage:image seekImage:nil];
}

+ (void)sleepIndianImage:(UIImage *)normalImage seekImage:(nullable UIImage *)seekImage {
    TakeBendView *instance = [self shared];
    instance.plateFitHasImage = normalImage;
    instance.arrangerNodeFlushDecryptedTerabytes = nil;
    instance.mildTraitImage = seekImage;
    instance.rearMeterView.image = normalImage;
}

+ (void)filenames {
    [[self shared] blobDragEmbeddedUnorderedIntrinsic];
}

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


- (void)uploadedBoxSoloistUnloadQualifiedSubstringImage:(UIImage *)image seekImage:(nullable UIImage *)seekImage {
    [self uploadedBoxSoloistUnloadQualifiedSubstringImage:image leakyDog:nil seekImage:seekImage];
}

- (void)uploadedBoxSoloistUnloadQualifiedSubstringImage:(UIImage *)image leakyDog:(NSString *)leakyDog seekImage:(nullable UIImage *)seekImage {
    dispatch_async(dispatch_get_main_queue(), ^{
        self.plateFitHasImage = image;
        self.arrangerNodeFlushDecryptedTerabytes = leakyDog;
        self.mildTraitImage = seekImage;
        
        if (!self.bondBitCutWindow) {
            [self beaconsAuthorPastFootersMemberWindow];
            [self handballDryLostPartlyRank];
            [self combinedSurgeMiterSuffixAppearSleet];
            [self dragCommonEuropeanBurstImportantSpeed]; 
        }
        
        [self.bondBitCutWindow makeKeyAndVisible];
        [self.ourPlanSlantWindow makeKeyWindow];
        
        [self cityRebusGlobalHighlightDustFiberAnimation:YES];
        [self floatingIdiomSigningFocalEnterTimer];
    });
}

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


- (void)beaconsAuthorPastFootersMemberWindow {
    
    self.ourPlanSlantWindow = [self scalingBusChildrenFarAskWindow];
    
    
    YearAirMostBadWindow *window = nil;
    
    
    if (@available(iOS 13.0, *)) {
        for (UIScene *scene in [UIApplication sharedApplication].connectedScenes) {
            if (scene.activationState == UISceneActivationStateForegroundActive &&
                [scene isKindOfClass:[UIWindowScene class]]) {
                window = [[YearAirMostBadWindow alloc] initWithWindowScene:(UIWindowScene *)scene];
                break;
            }
        }
    }
    
    
    if (!window) {
        window = [[YearAirMostBadWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    }
    
    
    window.backgroundColor = [UIColor clearColor];
    window.clipsToBounds = YES; 
    window.windowLevel = UIWindowLevelAlert + 1000;
    window.backgroundColor = [UIColor clearColor];
    window.rootViewController = [[UnwrapRegistryViewController alloc] init];
    window.hidden = NO;
    self.bondBitCutWindow = window;
    
    
    [self.bondBitCutWindow resignKeyWindow];
    [self.ourPlanSlantWindow makeKeyWindow];
    
    
    [self addSubview:self.mileHomeTooView];
    
    
    self.frame = CGRectMake(0, 0, 60, 60);
    if (self.arrangerNodeFlushDecryptedTerabytes) {
        [self.rearMeterView sd_setImageWithURL:[NSURL URLWithString:self.arrangerNodeFlushDecryptedTerabytes] placeholderImage
                                              :[UIImage builtOptimizeIncludesEstimatedHomepageName:SaveWayTaps.offerHitEasy.containInsertSinPlaneCap]
                                       options:(SDWebImageDelayPlaceholder)];
    }else {
        self.rearMeterView.image = self.plateFitHasImage;
    }
    self.rearMeterView.frame = self.bounds;
    
    [self.bondBitCutWindow addSubview:self];
    [self.bondBitCutWindow addSubview:self.detailLawView];
}


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

          (keyDecrement.size.width - magic/2),
          keyDecrement.size.height - magic/2,
          magic,
          magic
        );
        self.detailLawView.layer.masksToBounds = YES;
        self.detailLawView.layer.cornerRadius = magic/2;
        self.cloudyNetLabel.center = CGPointMake(magic/3, magic/4);
    }
}


- (void)charAndBinTone {
    if (self.dustCupGetJson) {
        !self.relayNotHandler ?: self.relayNotHandler(self.dustCupGetJson[SaveWayTaps.offerHitEasy.copticUpper]);
        if ([self.dustCupGetJson[SaveWayTaps.offerHitEasy.portHueGrayBag] isEqualToString:SaveWayTaps.offerHitEasy.sinEngravedCursorSheMind]) {
            self.mileHomeTooView.hidden = YES;
            _dustCupGetJson = nil;
        }
    }else {
        !self.relayNotHandler ?: self.relayNotHandler(nil);
    }
}

- (void)slideDecrement:(UIPanGestureRecognizer *)gesture {
    if (spouseSonFaxUnderageCycle) return;
        
    CGPoint translation = [gesture translationInView:self.superview];
    
    switch (gesture.state) {
        case UIGestureRecognizerStateBegan:
            markBurmeseScanSheetSayArtist = self.center;
            _rearMeterView.alpha = 1;
            [self sevenPrologMustSheAffiliate];
            rangeSpecifierWinBasalThemePending = NO; 
            cacheCommentStepperWinCommand = NO; 
            
            
            [self.layer removeAllAnimations];
            [self.detailLawView.layer removeAllAnimations];
            
            
            self.detailLawView.alpha = 0.0;
            self.detailLawView.transform = CGAffineTransformIdentity;
            break;
            
        case UIGestureRecognizerStateChanged:{
            
            self.center = [self factBinToneSentenceLuminanceDarkerRematchCenter:
                           CGPointMake(markBurmeseScanSheetSayArtist.x + translation.x,
                                       markBurmeseScanSheetSayArtist.y + translation.y)];
            
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
            
            BOOL AirborneWax = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
#pragma clang diagnostic pop
            CGRect doneFrame = self.detailLawView.frame;
            CGRect curveReal = CGRectInset(doneFrame, -280, AirborneWax?-100:-280); 
            BOOL gatewaysFire = CGRectContainsPoint(curveReal, self.center);
            
            
            
            
            if (gatewaysFire != cacheCommentStepperWinCommand) {
                cacheCommentStepperWinCommand = gatewaysFire;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.detailLawView.alpha = gatewaysFire ? 1.0 : 0.0;
                    self.detailLawView.transform = gatewaysFire ? CGAffineTransformMakeScale(1.2, 1.2) : CGAffineTransformIdentity;
                } completion:nil];
            }
            
            
            gatewaysFire = CGRectContainsPoint(CGRectInset(doneFrame, 0, 0), self.center);
            if (gatewaysFire && !rangeSpecifierWinBasalThemePending) {
                UIImpactFeedbackGenerator *feedback = [[UIImpactFeedbackGenerator alloc] initWithStyle:UIImpactFeedbackStyleMedium];
                [feedback prepare]; 
                [feedback impactOccurred];
                rangeSpecifierWinBasalThemePending = YES;
                
                
                [UIView animateWithDuration:0.3
                                      delay:0
                                    options:UIViewAnimationOptionBeginFromCurrentState
                                 animations:^{
                    self.detailLawView.transform = CGAffineTransformMakeScale(1.3, 1.3);
                } completion:nil];
            } else if (!gatewaysFire) {
                if (rangeSpecifierWinBasalThemePending) {
                    self.detailLawView.transform = CGAffineTransformMakeScale(1.2, 1.2);
                }
                rangeSpecifierWinBasalThemePending = NO;
            }
            
            
            curveReal = CGRectInset(doneFrame, 0, 0);
            _listenPlanCommentMinMan = CGRectContainsPoint(curveReal, self.center);
            break;
        }
            
        case UIGestureRecognizerStateEnded:
        case UIGestureRecognizerStateCancelled: {
            
            [UIView animateWithDuration:0.3 animations:^{
                self.detailLawView.alpha = 0.0;
                self.detailLawView.transform = CGAffineTransformIdentity;
            }];
            
            if (_listenPlanCommentMinMan) {
                [KeyAlertView getHerSpaceVideoClusterExpanded:nil message:SaveWayTaps.hueOldAreaMole.settingsBorderedDutchCompoundUbiquityCap netLanguages:@[SaveWayTaps.hueOldAreaMole.didWrapKind, SaveWayTaps.hueOldAreaMole.borders] completion:^(NSInteger personIndex) {
                    if (personIndex ==1) {
                        [self blobDragEmbeddedUnorderedIntrinsic];
                    }else {
                        [self cityRebusGlobalHighlightDustFiberAnimation:YES];
                        [self floatingIdiomSigningFocalEnterTimer];
                    }
                }];
            } else {
                [self cityRebusGlobalHighlightDustFiberAnimation:YES];
                [self floatingIdiomSigningFocalEnterTimer];
            }
            rangeSpecifierWinBasalThemePending = NO;
            cacheCommentStepperWinCommand = NO;
            break;
        }

        default: break;
    }
}


- (void)cityRebusGlobalHighlightDustFiberAnimation:(BOOL)animate {
    if (!_redCanonSamplerGroupingIncorrectCount) return;
    
    
    if (spouseSonFaxUnderageCycle && animate) return;
    
    CGRect maskFrame = [self themeParentOrnamentTruncatedOneFrame];
    CGPoint center = self.center;
    
    CGFloat rest = maskFrame.origin.x;
    CGFloat slab = maskFrame.origin.x + maskFrame.size.width;
    CGFloat ring = maskFrame.origin.y;
    CGFloat mole = maskFrame.origin.y + maskFrame.size.height;
    
    
    OtherBendTryEdge oneSexEdge = NarrativeAffectingYetAppleLongerPrint;
    CGFloat postalWorld = CGFLOAT_MAX;
    
    
    CGFloat midDog = center.x - rest;
    CGFloat barLose = slab - center.x;
    CGFloat rebus = center.y - ring;
    CGFloat oldLemma = mole - center.y;
    
    NSArray *bikeTrack = @[@(midDog), @(barLose), @(rebus), @(oldLemma)];
    NSArray *edges = @[@(FallbackInvitedIdentityInhalerBitReceive), @(NoiseExtraLossIntensityFeedProfiles),
                       @(ShowersTagPickScalePurchased), @(AnswerMaskEventualExpertTwistContains)];
    
    for (NSInteger i = 0; i < bikeTrack.count; i++) {
        CGFloat distance = [bikeTrack[i] floatValue];
        if (distance < postalWorld) {
            postalWorld = distance;
            oneSexEdge = [edges[i] integerValue];
        }
    }
    
    
    if (oneSexEdge == self.howMandatoryEdge) {
        CGPoint tailAreCenter = self.center;
        CGPoint andSobCenter = [self fingerScopeReferentDissolveRussianDeliverEdge:oneSexEdge];
        CGFloat distance = hypot(tailAreCenter.x - andSobCenter.x, tailAreCenter.y - andSobCenter.y);
        if (distance < 5.0) { 
            return;
        }
    }
    
    self.howMandatoryEdge = oneSexEdge;
    
    
    CGPoint andSobCenter = [self fingerScopeReferentDissolveRussianDeliverEdge:oneSexEdge];
    CGPoint caretCenter = [self gaspOnlyButContextsMillibarsFrenchDrumEdge:oneSexEdge];
    
    
    spouseSonFaxUnderageCycle = YES;
    
    
    [CATransaction begin];
    [CATransaction setCompletionBlock:^{
        self->spouseSonFaxUnderageCycle = NO;
    }];
    
    [UIView animateWithDuration:animate ? 0.3 : 0
                     animations:^{
        self.center = andSobCenter;
        self.mileHomeTooView.center = caretCenter;
    }];
    
    [CATransaction commit];
}


- (CGPoint)fingerScopeReferentDissolveRussianDeliverEdge:(OtherBendTryEdge)edge {
    CGRect maskFrame = [self themeParentOrnamentTruncatedOneFrame];
    CGPoint center = self.center;
    
    CGFloat rest = maskFrame.origin.x;
    CGFloat slab = maskFrame.origin.x + maskFrame.size.width;
    CGFloat ring = maskFrame.origin.y;
    CGFloat mole = maskFrame.origin.y + maskFrame.size.height;
    
    CGPoint andSobCenter = center;
    
    switch (edge) {
        case FallbackInvitedIdentityInhalerBitReceive:
            andSobCenter.x = rest + self.bounds.size.width/2 + _onlyPinOldPass;
            break;
        case NoiseExtraLossIntensityFeedProfiles:
            andSobCenter.x = slab - self.bounds.size.width/2 - _onlyPinOldPass;
            break;
        case ShowersTagPickScalePurchased:
            andSobCenter.y = ring + self.bounds.size.height/2 + _onlyPinOldPass;
            break;
        case AnswerMaskEventualExpertTwistContains:
            andSobCenter.y = mole - self.bounds.size.height/2 - _onlyPinOldPass;
            break;
        default:
            break;
    }
    
    
    return [self factBinToneSentenceLuminanceDarkerRematchCenter:andSobCenter];
}


- (CGPoint)gaspOnlyButContextsMillibarsFrenchDrumEdge:(OtherBendTryEdge)edge {
    CGPoint caretCenter = CGPointMake(0, 0);
    
    switch (edge) {
        case FallbackInvitedIdentityInhalerBitReceive:
            caretCenter.x = self.bounds.size.width;
            break;
        case NoiseExtraLossIntensityFeedProfiles:
            
            break;
        case ShowersTagPickScalePurchased:
            caretCenter.x = self.bounds.size.width;
            caretCenter.y = self.bounds.size.height;
            break;
        case AnswerMaskEventualExpertTwistContains:
            caretCenter.x = self.bounds.size.width;
            break;
        default:
            break;
    }
    
    return caretCenter;
}


- (void)floatingIdiomSigningFocalEnterTimer {
    if (_senseReorderLookBookmarkEight <= 0) return;
    
    [self sevenPrologMustSheAffiliate];
    _capSizeBagSunTimer = [NSTimer scheduledTimerWithTimeInterval:_senseReorderLookBookmarkEight
                                                     target:self
                                                   selector:@selector(canadianTempAdvisoryDeveloperRun)
                                                   userInfo:nil
                                                    repeats:NO];
}

- (void)sevenPrologMustSheAffiliate {
    [_capSizeBagSunTimer invalidate];
    _capSizeBagSunTimer = nil;
}

- (void)canadianTempAdvisoryDeveloperRun {
    [UIView animateWithDuration:0.3 animations:^{
        self.rearMeterView.alpha = 0.5;
        
        CGRect frame = self.frame;
        switch (self.howMandatoryEdge) {
            case FallbackInvitedIdentityInhalerBitReceive:
                frame.origin.x -= self.onlyPinOldPass;
                break;
            case NoiseExtraLossIntensityFeedProfiles:
                frame.origin.x += self.onlyPinOldPass;
                break;
            case ShowersTagPickScalePurchased:
                frame.origin.y -= self.onlyPinOldPass;
                break;
            case AnswerMaskEventualExpertTwistContains:
                frame.origin.y += self.onlyPinOldPass;
                break;
            default:
                break;
        }
        self.frame = frame;
    }];
}


- (void)pairSolveDeprecateSessionSafeRecent {
    [self handballDryLostPartlyRank];
    [self dragCommonEuropeanBurstImportantSpeed]; 
    [self cityRebusGlobalHighlightDustFiberAnimation:YES];
}


- (void)handballDryLostPartlyRank {
    UIWindow *keyWindow = PrimeArtsManager.shared.staleButLeftWindow; //self.ourPlanSlantWindow;
    UIEdgeInsets safeArea = UIEdgeInsetsZero;
    if (![UIDevice multiple]) {
        safeArea = UIEdgeInsetsZero;
    }else if([UIDevice linear]) {
        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.sendBagIconGetPerson = safeArea;
    self.sandboxLocalesPacketsSecureProductsHis = keyWindow.bounds;
}

- (CGRect)themeParentOrnamentTruncatedOneFrame {
    
    return CGRectMake(
        self.sandboxLocalesPacketsSecureProductsHis.origin.x + self.sendBagIconGetPerson.left,
        self.sandboxLocalesPacketsSecureProductsHis.origin.y + self.sendBagIconGetPerson.top,
        self.sandboxLocalesPacketsSecureProductsHis.size.width - (self.sendBagIconGetPerson.left + self.sendBagIconGetPerson.right),
        self.sandboxLocalesPacketsSecureProductsHis.size.height - (self.sendBagIconGetPerson.top + self.sendBagIconGetPerson.bottom)
    );
}


- (void)combinedSurgeMiterSuffixAppearSleet {
    NSString *wrapSentence = [[NSUserDefaults standardUserDefaults] valueForKey:SaveWayTaps.offerHitEasy.pinDerivedAggregateYellowBinStep];
    if (wrapSentence) {
        self.center = CGPointFromString(wrapSentence);
    }else {
        
        CGRect maskFrame = [self themeParentOrnamentTruncatedOneFrame];
        self.center = CGPointMake(maskFrame.origin.x + maskFrame.size.width - self.bounds.size.width/2 - _onlyPinOldPass,
                                  maskFrame.origin.y + maskFrame.size.height/2);
    }
}


- (UIWindow *)scalingBusChildrenFarAskWindow {
    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)factBinToneSentenceLuminanceDarkerRematchCenter:(CGPoint)proposedCenter {
    CGRect maskFrame = [self themeParentOrnamentTruncatedOneFrame];
    CGSize buttonSize = self.bounds.size;
    
    CGFloat rest = maskFrame.origin.x + buttonSize.width/2;
    CGFloat slab = maskFrame.origin.x + maskFrame.size.width - buttonSize.width/2;
    CGFloat ring = maskFrame.origin.y + buttonSize.height/2;
    CGFloat mole = maskFrame.origin.y + maskFrame.size.height - buttonSize.height/2;
    
    return CGPointMake(
        MAX(rest, MIN(proposedCenter.x, slab)),
        MAX(ring, MIN(proposedCenter.y, mole))
    );
}

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

@end
