







#import "VideoCaretFeedCell.h"
#define yetGram(sun) __weak typeof(sun) weak##sun = sun;
#define herScript(sun) __strong typeof(sun) sun = weak##sun;

@interface VideoCaretFeedCell()



@property (nonatomic, strong) NSTimer *plate;

@property (nonatomic, assign) BOOL muteCoastPaper;

@end

@implementation VideoCaretFeedCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:CGRectZero];
    if (self) {
        
        _farEachSize = CGSizeMake(200, 40);
        _briefSeeHard = 4;
        _model = nil;
        _channelCount = 3;
        _purple = 0;
        _ownPinExitsEgg = 0;
        _status = HowCoulombsSonSolveButPeriod;
        _muteCoastPaper = NO;
        
    }
    return self;
}

- (void)leftScenePetiteSaltBuddhistValue
{
    CGFloat andEarly = [[self.layer presentationLayer] frame].origin.x;
    CGFloat scannerWidth = self.frame.size.width;
    
    
    CGFloat speed = (self.superview.frame.size.width + scannerWidth) / self.briefSeeHard;
    
    
    CGFloat clipPauseTime = scannerWidth / speed;
    
    if (_ownPinExitsEgg > 0) {
        self.status = BusStoodAndEditorConverterArmenian;
        if (-1< andEarly < 1) {
            
            if (_muteCoastPaper) { return;}
            _muteCoastPaper = YES;
            [self pause];
            [self performSelector:@selector(resume) withObject:nil afterDelay:_ownPinExitsEgg];
            [self performSelector:@selector(pascalStatus) withObject:nil afterDelay:_ownPinExitsEgg - clipPauseTime];
        }
    }
}
- (void)pascalStatus
{
    self.status = SawLawSentScanMailReason;
}

- (void)withinCompactWhoInvitePong:(void(^)(void))animations completion:(void(^)(BOOL))completion
{
    self.status = SawLawSentScanMailReason;
    
    _plate = [NSTimer timerWithTimeInterval:0.01 target:self selector:@selector(leftScenePetiteSaltBuddhistValue) userInfo:nil repeats:YES];
    [[NSRunLoop currentRunLoop] addTimer:_plate forMode:NSRunLoopCommonModes];
    
    
    yetGram(self);
    [UIView animateWithDuration:self.briefSeeHard delay:0 options:(UIViewAnimationOptionCurveLinear | UIViewAnimationOptionAllowUserInteraction) animations:^{
        
        if (animations) {
            animations();
        }
        
    } completion:^(BOOL finished) {
        herScript(self);
        self->_status = SawLawSentScanMailReason;
        
        if (completion) {
            completion(finished);
        }
        
        if(self->_plate) {
            [self->_plate invalidate];
            self->_plate = nil;
        }
        
    }];
}

- (void)pause
{
    
    CFTimeInterval slideTime = [self.layer convertTime:CACurrentMediaTime() fromLayer:nil];
    
    
    self.layer.timeOffset = slideTime;
    
    
    self.layer.speed = 0;
}

- (void)resume
{
    
    CFTimeInterval slideTime = self.layer.timeOffset;
    
    CFTimeInterval tapsNapLawRate = CACurrentMediaTime() - slideTime;
    
    self.layer.timeOffset = 0;
    
    self.layer.beginTime = tapsNapLawRate;
    
    self.layer.speed = 1;
}


@end
