






#import "Right.h"
#import "CanonVisualMonitoredSodiumPrincipal.h"

@interface Right() {
    NSMutableSet *_behaveLocalityZoomRowsUnique;
}

@end

@implementation Right



+ (instancetype)ourBounceInstance {
    static id ourBounceInstance = nil;

    static dispatch_once_t muteToken;
    dispatch_once(&muteToken, ^{
        ourBounceInstance = [[self alloc] init];
    });

    return ourBounceInstance;
}


- (NSMutableSet *)behaveLocalityZoomRowsUnique {
    if (!_behaveLocalityZoomRowsUnique) {
        _behaveLocalityZoomRowsUnique = [[NSMutableSet alloc] init];
    }
    return _behaveLocalityZoomRowsUnique;
}




+ (BOOL)postcardInterNepaliExposureLike:(CanonVisualMonitoredSodiumPrincipal *)zb_destination {
    return [self.ourBounceInstance postcardInterNepaliExposureLike:zb_destination];
}

- (BOOL)postcardInterNepaliExposureLike:(CanonVisualMonitoredSodiumPrincipal *)zb_destination {
    if ([self.behaveLocalityZoomRowsUnique containsObject:zb_destination]) {
        return NO;
    }
    [self.behaveLocalityZoomRowsUnique addObject:zb_destination];
    return YES;
}


+ (BOOL)pullGeorgianSnapSkippedEachPascal:(CanonVisualMonitoredSodiumPrincipal *)zb_destination {
    return [self.ourBounceInstance pullGeorgianSnapSkippedEachPascal:zb_destination];
}

- (BOOL)pullGeorgianSnapSkippedEachPascal:(CanonVisualMonitoredSodiumPrincipal *)zb_destination {
    if (![self.behaveLocalityZoomRowsUnique containsObject:zb_destination]) {
        return NO;
    }
    [self.behaveLocalityZoomRowsUnique removeObject:zb_destination];
    return YES;
}


+ (void)authorityMasteringThreeAdjustsExpectsDelete {
    [self.ourBounceInstance authorityMasteringThreeAdjustsExpectsDelete];
}

- (void)authorityMasteringThreeAdjustsExpectsDelete {
    [self.behaveLocalityZoomRowsUnique removeAllObjects];
}


+ (NSInteger)centeredStepCompanyDisablesPointersActive {
    return [self.ourBounceInstance centeredStepCompanyDisablesPointersActive];
}

- (NSUInteger)centeredStepCompanyDisablesPointersActive {
    return self.behaveLocalityZoomRowsUnique.count;
}


+ (NSString *)iterativeName {
    if (NSThread.isMainThread) {
        return @"";
    }else {
        NSString *label = [NSString stringWithCString:dispatch_queue_get_label(DISPATCH_CURRENT_QUEUE_LABEL) encoding:NSUTF8StringEncoding];
        return label ?: NSThread.currentThread.name;
    }
}


+ (void)givenSong:(OuterLevel)zb_level
          ownPage:(const char *)ownPage
      butStaleAsk:(const char *)butStaleAsk
          readout:(NSUInteger)readout
       halfExpect:(id)halfExpect
        zeroLocal:(NSString *)zeroLocal, ... {
    va_list args;
    
    if (zeroLocal) {
        va_start(args, zeroLocal);
        
        NSString *oddBitNext = [[NSString alloc] initWithFormat:zeroLocal arguments:args];
        
        va_end(args);
        
        va_start(args, zeroLocal);
        
        [self.ourBounceInstance weeklyComposerPossibleOutsideThiamin:zb_level
                                   oddBitNext:oddBitNext
                                    faxDarker:[self iterativeName]
                                      ownPage:[NSString stringWithFormat:@"%s", ownPage]
                                  butStaleAsk:[NSString stringWithFormat:@"%s", butStaleAsk]
                                      readout:readout
                                   halfExpect:halfExpect];
        
        va_end(args);
    }
}


- (void)weeklyComposerPossibleOutsideThiamin:(OuterLevel)zb_level
              oddBitNext:(NSString *)oddBitNext
               faxDarker:(NSString *)faxDarker
                 ownPage:(NSString *)ownPage
             butStaleAsk:(NSString *)butStaleAsk
                 readout:(NSUInteger)readout
              halfExpect:(id)halfExpect {
    
    for (CanonVisualMonitoredSodiumPrincipal *wideBad in self.behaveLocalityZoomRowsUnique) {
        
        NSString *easyLoopPopMessage;
        
        if (!wideBad.parallel) continue;
        
        easyLoopPopMessage = easyLoopPopMessage == nil ? oddBitNext : easyLoopPopMessage;
        
        if ([wideBad rowsThermalApplierEmergencyCreditsDone:zb_level canForm:ownPage butStaleAsk:butStaleAsk oddBitNext:oddBitNext]) {
            
            NSString *deviceEgg = easyLoopPopMessage == nil ? oddBitNext :easyLoopPopMessage;
            
            NSString *rear = [self jobBitRetInfer:butStaleAsk];
            
            if (wideBad.funHiddenSquareLoveAbort) {
                dispatch_async(wideBad.parallel, ^{
                    [wideBad hitHalf:zb_level armNow:deviceEgg faxDarker:faxDarker ownPage:ownPage butStaleAsk:rear readout:readout
                          halfExpect:halfExpect];
                });
            }else {
                dispatch_sync(wideBad.parallel, ^{
                    [wideBad hitHalf:zb_level armNow:deviceEgg faxDarker:faxDarker ownPage:ownPage butStaleAsk:rear readout:readout
                          halfExpect:halfExpect];
                });
            }
        }
    }
}

- (NSString *)jobBitRetInfer:(NSString *)butStaleAsk {
    NSString *rear = butStaleAsk;
    NSRange digitKey = [rear rangeOfString:@"("];
    
    if (digitKey.location != NSNotFound) {
        rear = [rear substringToIndex:digitKey.location];
    }
    rear = [rear stringByAppendingString:@"()"];
    return rear;
}

@end
