





#import "SmallOldestRequiringGregorianEleven.h"
@import Network;

static NSString *onceSerifScope = nil;
static nw_path_monitor_t joinChestStore = NULL;

@implementation SmallOldestRequiringGregorianEleven

+ (BOOL)oddNormalizeBandIntegralOdd {
    return onceSerifScope != nil;
}

+ (NSString *)charShakeTooType {
    return onceSerifScope ?: @"none";
}

+ (void)disablingFootersUsesOnlyCheckedTail:(void (^)(BOOL oddNormalizeBandIntegralOdd))completion {
    
    if (joinChestStore != NULL) {
        nw_path_monitor_cancel(joinChestStore);
        joinChestStore = NULL;
    }
    
    
    joinChestStore = nw_path_monitor_create();
    nw_path_monitor_set_queue(joinChestStore, dispatch_get_main_queue());
    
    __block nw_path_monitor_t exportCarSix = joinChestStore;
    nw_path_monitor_set_update_handler(joinChestStore, ^(nw_path_t path) {
        nw_path_status_t status = nw_path_get_status(path);
        if (status == nw_path_status_satisfied) {
            if (nw_path_uses_interface_type(path, nw_interface_type_wifi)) {
                onceSerifScope = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                onceSerifScope = @"cellular";
            } else {
                
                onceSerifScope = @"other";
            }
            
            
            if (exportCarSix) {
                nw_path_monitor_cancel(exportCarSix);
                exportCarSix = NULL;
                joinChestStore = NULL;
            }
            
        } else {
            onceSerifScope = nil;
        }
        
        
        if (completion) {
            completion([self oddNormalizeBandIntegralOdd]);
        }
        
    });
    
    
    nw_path_monitor_start(joinChestStore);
}

@end
