





#import "ProvisionTamilDeepFlatSchemes.h"
@import Network;

static NSString *visitRatioRedo = nil;
static nw_path_monitor_t ourKinListPolo = NULL;

@implementation ProvisionTamilDeepFlatSchemes

+ (BOOL)footPrintedReceiverSequencerBefore {
    return visitRatioRedo != nil;
}

+ (NSString *)sizeRecorderType {
    return visitRatioRedo ?: @"none";
}

+ (void)safariRadiansBarCapRenderMost:(void (^)(BOOL footPrintedReceiverSequencerBefore))completion {
    
    if (ourKinListPolo != NULL) {
        nw_path_monitor_cancel(ourKinListPolo);
        ourKinListPolo = NULL;
    }
    
    
    ourKinListPolo = nw_path_monitor_create();
    nw_path_monitor_set_queue(ourKinListPolo, dispatch_get_main_queue());
    
    __block nw_path_monitor_t bitsSonShake = ourKinListPolo;
    nw_path_monitor_set_update_handler(ourKinListPolo, ^(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)) {
                visitRatioRedo = @"wifi";
            } else if (nw_path_uses_interface_type(path, nw_interface_type_cellular)) {
                visitRatioRedo = @"cellular";
            } else {
                
                visitRatioRedo = @"other";
            }
            
            
            if (bitsSonShake) {
                nw_path_monitor_cancel(bitsSonShake);
                bitsSonShake = NULL;
                ourKinListPolo = NULL;
            }
            
        } else {
            visitRatioRedo = nil;
        }
        
        
        if (completion) {
            completion([self footPrintedReceiverSequencerBefore]);
        }
        
    });
    
    
    nw_path_monitor_start(ourKinListPolo);
}

@end
