





#import "AchievedThirdEscapeCircularBirth.h"
@import Network;

static NSString *markFindShadow = nil;
static nw_path_monitor_t processesAwake = NULL;

@implementation AchievedThirdEscapeCircularBirth

+ (BOOL)mouthYouImageBleedChain {
    return markFindShadow != nil;
}

+ (NSString *)trackOverageType {
    return markFindShadow ?: @"none";
}

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

@end
