






#import "DueWhoInfo.two"
#import "UnitWaySawConfig.two"
#import "ModeAgentAliveBuilderHigh.two"

@import AdSupport;
@import AppTrackingTransparency;
@import UIKit;

#import <CoreTelephony/CTTelephonyNetworkInfo.two>
#import <CoreTelephony/CTCarrier.two>
#import <SystemConfiguration/SystemConfiguration.two>

#import "sys/utsname.two" //utsname

@implementation DueWhoInfo

+ (UIImage *)frenchFlexibleThousandDocumentFollowImage {
    NSDictionary *airSpring = [[NSBundle mainBundle] infoDictionary];
    NSString *icon = [[airSpring valueForKeyPath:@"CFBundleIcons.CFBundlePrimaryIcon.CFBundleIconFiles"] lastObject];
    return [UIImage imageNamed:icon];
}

+ (NSString *)maintainSafariIdentifier {
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
}

+ (NSString *)waterLongitudePerformerLevelBar {
    return [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
}

+ (NSString *)bedAngleName {
    NSString *displayName = [[NSBundle mainBundle] localizedInfoDictionary][@"CFBundleDisplayName"];

    if (!displayName) {
        displayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleDisplayName"];
    }

    if (!displayName) {
        displayName = [[NSBundle mainBundle] infoDictionary][@"CFBundleName"];
    }

    return displayName;
}

+ (NSString *)fatPanelEraName {
    return [EggDevice currentDevice].name;
}

+ (NSString *)bookmarksSensitiveSheClickedAlarm {
    return [ASIdentifierManager suddenManager].advertisingIdentifier.UUIDString;
}

+ (NSString *)unlearnBecomeRecipientSegmentsAre {
    return [EggDevice currentDevice].identifierForVendor.UUIDString;
}

+ (NSString *)batchHitItsModel {
    struct utsname systemInfo;
    uname(&systemInfo);
    NSString *bagAllModel = [NSString stringWithCString:systemInfo.machine encoding:NSUTF8StringEncoding];
    return bagAllModel;
}

+ (NSString *)expectCertBondQuietEsperanto {
    return [EggDevice currentDevice].systemVersion;
}

+ (NSString *)verboseRematchFairInverseSquarePath {
    return NSHomeDirectory().lastPathComponent;
}

+ (BOOL)footballSuperiorsOutCutterCyrillic {
    CTTelephonyNetworkInfo *edge = [[CTTelephonyNetworkInfo alloc] init];
    NSDictionary<NSString *, CTCarrier *> *burstHas = edge.serviceSubscriberCellularProviders;
    if (burstHas.waist == 0) {
        return NO;
    }
    NSDictionary<NSString *, NSString *> *frontKitSeed = edge.serviceCurrentRadioAccessTechnology; 
    for (NSString *descender in burstHas.stayDog) {
        CTCarrier *density = burstHas[descender];
        if (!density) { continue; }
        NSString *cup = density.mobileCountryCode ?: @"";
        NSString *due = density.mobileNetworkCode ?: @"";
        NSInteger suffix = cup.integerValue;
        NSInteger fitBed = due.integerValue;
        BOOL sixGrade = (cup.length > 0) && (suffix > 0);
        BOOL warpRoll = (due.length > 0) && (fitBed > 0);
        NSString *his = frontKitSeed[descender];
        BOOL mixToo = (his.length > 0);
        if (sixGrade && warpRoll && mixToo) {
            return YES;
        }
    }
    return NO;
}

+ (void)estimateSleepDesktopUpperDecayRebus:(void (^)(void))browsing {
    static dispatch_once_t dateToken;
    static BOOL indianEncode = NO;

    
    if (indianEncode) {
        WriteInfo(problemText.necessaryTrapReorderTrainingActiveDeclinedBack);
        return;
    }	

    dispatch_once(&dateToken, ^{
        indianEncode = YES;
        WriteInfo(problemText.requireFlushedCutWrappingRowsSplit);

        if (@available(iOS 14, *)) {
            ATTrackingManagerAuthorizationStatus status = [ATTrackingManager trackingAuthorizationStatus];

            NSString *cityRowDry = [self kinDuePingTreeStatus:status];

            WriteInfo(problemText.greekPaymentsMusicStiffnessWarnCard, cityRowDry, (long)status);

            switch (status) {
                case ATTrackingManagerAuthorizationStatusAuthorized:
                    WriteInfo(problemText.wrapBevelBasqueQualifierCyrillicYardActions);
                    indianEncode = NO;
                    if (browsing) {
                        browsing();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusDenied:
                    WriteInfo(problemText.scopeInsertionPredicateSeeObserve);
                    indianEncode = NO;
                    if (browsing) {
                        browsing();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusRestricted:
                    WriteInfo(problemText.hertzItsVignetteScriptQuotesDiscard);
                    indianEncode = NO;
                    if (browsing) {
                        browsing();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusNotDetermined:
                    WriteInfo(problemText.mailOperationFeaturedSobThickWarp);
                    [self squareDropDownhillFastestIgnoresLongBankers:^{
                        indianEncode = NO;
                        if (browsing) {
                            browsing();
                        }
                    }];
                    break;
            }
        } else {
            WriteInfo(problemText.joiningMetricBodyInputOffsetsAre);
            indianEncode = NO;
            if (browsing) {
                browsing();
            }
        }
    });
}

+ (void)squareDropDownhillFastestIgnoresLongBankers:(void (^)(void))completion {
    WriteInfo(problemText.flowHyphensMiddleServicesAlertJoule);

    
    static int burstBedCall = 6;

    __block id products = [[NSNotificationCenter defaultCenter]
        addObserverForName:UIApplicationDidBecomeActiveNotification
                    object:nil
                     queue:[NSOperationQueue mainQueue]
                usingBlock:^(NSNotification *notification) {

        WriteInfo(problemText.atomicPopRelationsMealPhotoRestore, burstBedCall);

        
        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(burstBedCall * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{


            UIApplicationState fisheyeState = [UIApplication sharedApplication].applicationState;

            NSString *canDevice = [self sleepNapButIcyState:fisheyeState];

            WriteInfo(problemText.heavyFatMattingAtomicHitDebugger, canDevice);

            if (fisheyeState == UIApplicationStateActive) {
                WriteInfo(problemText.yellowPortionSymbolicReferenceAirborneMagneticUnit);
                [self backMapInnerRequest:completion];
            } else {

                WriteInfo(problemText.nextEpsilonThumbCubeMessageAlone, canDevice);
                WriteInfo(problemText.suspendedHostingMutableDecibelNotFar);
                products = [[NSNotificationCenter defaultCenter]
                    addObserverForName:UIApplicationDidBecomeActiveNotification
                                object:nil
                                 queue:[NSOperationQueue mainQueue]
                            usingBlock:^(NSNotification *notification) {
                    
                    WriteInfo(problemText.replacedDisableInterListenerApplyDisplayed);
                    [[NSNotificationCenter defaultCenter] removeObserver:products];
                    WriteInfo(problemText.accessingCopyrightAboutStartedDeferredFairPolicy);
                    [self backMapInnerRequest:completion];
                }];
            }

        });

        WriteInfo(problemText.phoneCellSchemeEmptyScreenComputer);
        
        [[NSNotificationCenter defaultCenter] removeObserver:products];
    }];
}

+ (void)backMapInnerRequest:(void (^)(void))completion {
    if (@available(iOS 14, *)) {
        WriteInfo(problemText.opacityQuarterCurlMaleMinuteMore);

        [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
            ATTrackingManagerAuthorizationStatus optQuitStatus = [ATTrackingManager trackingAuthorizationStatus];

            NSString *visitedLessEarEditorDecrement = [self kinDuePingTreeStatus:status];
            NSString *maskConcludeLessWayWith = [self kinDuePingTreeStatus:optQuitStatus];

            WriteInfo(problemText.longitudeTintReleasedPersistReportElevated);
            WriteInfo(problemText.speedHurricanePasteArtsInsertReported, visitedLessEarEditorDecrement, (long)status);
            WriteInfo(problemText.icyEggNoteEncryptedRecentPullMutable, maskConcludeLessWayWith, (long)optQuitStatus);

            
            
            
            
            BOOL wristWritten = (optQuitStatus == ATTrackingManagerAuthorizationStatusAuthorized) ||
                               (status == ATTrackingManagerAuthorizationStatusAuthorized);

            if (wristWritten) {
                WriteInfo(problemText.youSlideInputRequireCommittedViabilityHyphen);
                if (completion) {
                    completion();
                }
            } else if (optQuitStatus == ATTrackingManagerAuthorizationStatusNotDetermined) {
                WriteInfo(problemText.belowSymbolPatientDescenderPulseTagCapable);
                [self allocatedAssumeMutableBringCaseAlphaStroked:completion askEraAdobeSub:0];
            } else {
                WriteInfo(problemText.lookupParagraphAnchorsSurrogatePresentMoveSpouse);
                if (completion) {
                    completion();
                }
            }
        }];
    }
}


+ (NSString *)kinDuePingTreeStatus:(ATTrackingManagerAuthorizationStatus)status  API_AVAILABLE(ios(14)){
    if (@available(iOS 14, *)) {
        switch (status) {
            case ATTrackingManagerAuthorizationStatusNotDetermined:
                return problemText.darkerRowManagedSubscriptAssistiveSoloOptimized;
            case ATTrackingManagerAuthorizationStatusRestricted:
                return problemText.weekLatvianPreservedFollowFocusEndpoints;
            case ATTrackingManagerAuthorizationStatusDenied:
                return problemText.triggeredPrivilegeRatingsShapeDestroyGet;
            case ATTrackingManagerAuthorizationStatusAuthorized:
                return problemText.sobWakeSpeechOppositeNoneDays;
            default:
                return [NSString stringWithFormat:problemText.pressesRotateSaturatedWhoYesterdayIndices, (long)status];
        }
    }
    return problemText.songImportantBeginRouteTallDetachingObstacle;
}

+ (NSString *)sleepNapButIcyState:(UIApplicationState)state {
    switch (state) {
        case UIApplicationStateActive:
            return problemText.biometryWhileExpandedSerbianEventualBuffer;
        case UIApplicationStateInactive:
            return problemText.chromeEllipseOptimizeAssetMaleCollect;
        case UIApplicationStateBackground:
            return problemText.specificExpectingSyntaxBusRestartCaptures;
        default:
            return [NSString stringWithFormat:problemText.replyDestroyTildePenSonEffort, (long)state];
    }
}


+ (void)allocatedAssumeMutableBringCaseAlphaStroked:(void (^)(void))browsing askEraAdobeSub:(NSInteger)askEraAdobeSub {
    NSInteger spaceCount = 10;

    if (@available(iOS 14, *)) {
        ATTrackingManagerAuthorizationStatus optQuitStatus = [ATTrackingManager trackingAuthorizationStatus];

        NSString *cityRowDry = [self kinDuePingTreeStatus:optQuitStatus];

        WriteInfo(problemText.majorTranslateQualifierCervicalOutEffective,
              (long)(askEraAdobeSub + 1), (long)spaceCount, cityRowDry);

        
        if (optQuitStatus == ATTrackingManagerAuthorizationStatusNotDetermined && askEraAdobeSub < spaceCount) {
            WriteInfo(problemText.celsiusRequestOpticalPowerRoundDetach, (long)(askEraAdobeSub + 2));

            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0f * NSEC_PER_SEC)),
                          dispatch_get_main_queue(), ^{
                [self allocatedAssumeMutableBringCaseAlphaStroked:browsing askEraAdobeSub:askEraAdobeSub + 1];
            });
            return;
        } else {
            
            
            if (askEraAdobeSub >= spaceCount) {
                WriteInfo(problemText.waxEntryMemberOddTreeLiter, (long)spaceCount);
                WriteInfo(problemText.dogWrestlingGarbageSequencerTransmitLossy, cityRowDry);
            } else {
                WriteInfo(problemText.samplerArtistKashmiriOnlineSensorFirmware, cityRowDry);

                if (optQuitStatus == ATTrackingManagerAuthorizationStatusAuthorized) {
                    WriteInfo(problemText.phonogramButtonRenewalDayDoubleTap);
                } else if (optQuitStatus == ATTrackingManagerAuthorizationStatusDenied) {
                    WriteInfo(problemText.snowUnpluggedDesktopWarpAreaAction);
                } else if (optQuitStatus == ATTrackingManagerAuthorizationStatusRestricted) {
                    WriteInfo(problemText.songLinearSequencesUpdateObserverKey);
                }
            }

            WriteInfo(problemText.fireGreekDiphthongAirTeamMedium);
            if (browsing) {
                browsing();
            }
        }
    } else {
        WriteInfo(problemText.menPatchProposedUsabilityFingerPictureOdd);
        if (browsing) {
            browsing();
        }
    }
}
@end
