






#import "KitEraInfo.h"
#import "EarYearAllConfig.h"
#import "AreResumeSpanishBeenCaptured.h"

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

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

#import "sys/utsname.h" //utsname


#import <AdServices/AdServices.h>

@implementation KitEraInfo

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

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

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

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

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

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

    return displayName;
}

+ (NSString *)minBadCoastName {
    return [UIDevice currentDevice].name;
}

+ (NSString *)surfaceScalarResignBackwardAnnotated {
    return [ASIdentifierManager sharedManager].advertisingIdentifier.UUIDString;
}

+ (NSString *)twelveHumidityOpacityFixHandover {
    return [UIDevice currentDevice].identifierForVendor.UUIDString;
}

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

+ (NSString *)bufferBypassedQuitInferAddress {
    return [UIDevice currentDevice].systemVersion;
}

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

+ (BOOL)motionJumpWaxDependentObserver {
    CTTelephonyNetworkInfo *info = [[CTTelephonyNetworkInfo alloc] init];
    NSDictionary<NSString *, CTCarrier *> *pubYahoo = info.serviceSubscriberCellularProviders;
    if (pubYahoo.count == 0) {
        return NO;
    }
    NSDictionary<NSString *, NSString *> *icyQuotesRed = info.serviceCurrentRadioAccessTechnology; 
    for (NSString *mixUpside in pubYahoo.allKeys) {
        CTCarrier *carrier = pubYahoo[mixUpside];
        if (!carrier) { continue; }
        NSString *way = carrier.mobileCountryCode ?: @"";
        NSString *ask = carrier.mobileNetworkCode ?: @"";
        NSInteger carAdd = way.integerValue;
        NSInteger funNap = ask.integerValue;
        BOOL minSplit = (way.length > 0) && (carAdd > 0);
        BOOL cacheMen = (ask.length > 0) && (funNap > 0);
        NSString *but = icyQuotesRed[mixUpside];
        BOOL people = (but.length > 0);
        if (minSplit && cacheMen && people) {
            return YES;
        }
    }
    return NO;
}

+ (NSString *)ownStaleEndToken {
    
    if (@available(iOS 14.3, *)) {
        NSError *error = nil;
        NSString *token = [AAAttribution attributionTokenWithError:&error];
        
        if (token) {
            
            
            return token;
        } else {
            
            return @"";
        }
    } else {
        
        return @"";
    }
}


+ (void)rarePinSlideAndNotBurn:(void (^)(void))pathPolo {
    static dispatch_once_t lockToken;
    static BOOL twoLiterSnow = NO;

    
    if (twoLiterSnow) {
        BrownInfo(hueRateSent.publisherWrapperAreHealthLaunchingEstimateEnd);
        return;
    }	

    dispatch_once(&lockToken, ^{
        twoLiterSnow = YES;
        BrownInfo(hueRateSent.promotionTowerYellowTypeDismissedReceipt);

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

            NSString *stopSubAny = [self lemmaRopePressStatus:status];

            BrownInfo(hueRateSent.imageSigmaUptimeReasonEmergencyFront, stopSubAny, (long)status);

            switch (status) {
                case ATTrackingManagerAuthorizationStatusAuthorized:
                    BrownInfo(hueRateSent.largeGaspSpellFaceCallAnimatorFirst);
                    twoLiterSnow = NO;
                    if (pathPolo) {
                        pathPolo();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusDenied:
                    BrownInfo(hueRateSent.bandWordCovariantEntryGet);
                    twoLiterSnow = NO;
                    if (pathPolo) {
                        pathPolo();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusRestricted:
                    BrownInfo(hueRateSent.localizedMetricPutProducedExportingFunnel);
                    twoLiterSnow = NO;
                    if (pathPolo) {
                        pathPolo();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusNotDetermined:
                    BrownInfo(hueRateSent.airMatrixLightenTeacherDisorderSelect);
                    [self resetContainedHaveHexLogThemeScheme:^{
                        twoLiterSnow = NO;
                        if (pathPolo) {
                            pathPolo();
                        }
                    }];
                    break;
            }
        } else {
            BrownInfo(hueRateSent.blueRatioTagNineEmbeddedArguments);
            twoLiterSnow = NO;
            if (pathPolo) {
                pathPolo();
            }
        }
    });
}

+ (void)resetContainedHaveHexLogThemeScheme:(void (^)(void))completion {
    BrownInfo(hueRateSent.sixPinSoftwareBoldfaceSolveTry);

    
    static int streamWinArm = 6;

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

        BrownInfo(hueRateSent.averagePurposeProcessedQuitGradeBus, streamWinArm);

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


            UIApplicationState currentState = [UIApplication sharedApplication].applicationState;

            NSString *snowLower = [self useHairListForState:currentState];

            BrownInfo(hueRateSent.usageSignatureButLiftAirlineOff, snowLower);

            if (currentState == UIApplicationStateActive) {
                BrownInfo(hueRateSent.minBordersOffSeparatorExpertResizingPreserves);
                [self golfPressFatRequest:completion];
            } else {

                BrownInfo(hueRateSent.ethernetWaxCommonBeaconsBadWarn, snowLower);
                BrownInfo(hueRateSent.sameFixKilovoltsEditorsLemmaSexual);
                bagSeven = [[NSNotificationCenter defaultCenter]
                    addObserverForName:UIApplicationDidBecomeActiveNotification
                                object:nil
                                 queue:[NSOperationQueue mainQueue]
                            usingBlock:^(NSNotification *notification) {
                    
                    BrownInfo(hueRateSent.currentlyAllShePolarFriendsSquare);
                    [[NSNotificationCenter defaultCenter] removeObserver:bagSeven];
                    BrownInfo(hueRateSent.connectEsperantoDatabasesFocusEstimatedDisparityEight);
                    [self golfPressFatRequest:completion];
                }];
            }

        });

        BrownInfo(hueRateSent.roleValidatesStateSumIntervalKin);
        
        [[NSNotificationCenter defaultCenter] removeObserver:bagSeven];
    }];
}

+ (void)golfPressFatRequest:(void (^)(void))completion {
    if (@available(iOS 14, *)) {
        BrownInfo(hueRateSent.flipDraftProvidedPascalMealCircle);

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

            NSString *preferredEditorFadeReportingEventual = [self lemmaRopePressStatus:status];
            NSString *sceneThroughFocalSlashedDid = [self lemmaRopePressStatus:throughStatus];

            BrownInfo(hueRateSent.highestAuxiliaryTagBeenCheckSame);
            BrownInfo(hueRateSent.lifetimeDemandDrivenFitBaselineClimbed, preferredEditorFadeReportingEventual, (long)status);
            BrownInfo(hueRateSent.keepHitListenRedoneBuilderEpsilonClient, sceneThroughFocalSlashedDid, (long)throughStatus);

            
            
            
            
            BOOL reminderTaps = (throughStatus == ATTrackingManagerAuthorizationStatusAuthorized) ||
                               (status == ATTrackingManagerAuthorizationStatusAuthorized);

            if (reminderTaps) {
                BrownInfo(hueRateSent.invertDetachStampCardConstantsSummaryBank);
                if (completion) {
                    completion();
                }
            } else if (throughStatus == ATTrackingManagerAuthorizationStatusNotDetermined) {
                BrownInfo(hueRateSent.unknownLossExecutionKeysSubgroupPitchIll);
                [self roomHashIntervalsPendingPrinterHostStamp:completion mustSendWonFix:0];
            } else {
                BrownInfo(hueRateSent.variationBirthdayReferenceBitDarwinMillMay);
                if (completion) {
                    completion();
                }
            }
        }];
    }
}


+ (NSString *)lemmaRopePressStatus:(ATTrackingManagerAuthorizationStatus)status  API_AVAILABLE(ios(14)){
    if (@available(iOS 14, *)) {
        switch (status) {
            case ATTrackingManagerAuthorizationStatusNotDetermined:
                return hueRateSent.awayLayerCalculateProviderRequiringBusPrinted;
            case ATTrackingManagerAuthorizationStatusRestricted:
                return hueRateSent.boundDiamondCarbonLaunchingSeePatient;
            case ATTrackingManagerAuthorizationStatusDenied:
                return hueRateSent.pagePrintableYearOrganizeCreditsScattered;
            case ATTrackingManagerAuthorizationStatusAuthorized:
                return hueRateSent.pasteStringCornersNorwegianTerminateSub;
            default:
                return [NSString stringWithFormat:hueRateSent.liftSubfamilyCreamySourceRelationsHue, (long)status];
        }
    }
    return hueRateSent.looseGrantingSpeakingCanDrumScannerPrefixes;
}

+ (NSString *)useHairListForState:(UIApplicationState)state {
    switch (state) {
        case UIApplicationStateActive:
            return hueRateSent.creamyOfficialLongitudeLandmarkInsertingInspired;
        case UIApplicationStateInactive:
            return hueRateSent.dependentCollapsesFemaleStampBuildFriend;
        case UIApplicationStateBackground:
            return hueRateSent.sobMutationsDiagnoseLocalizedYouSucceeded;
        default:
            return [NSString stringWithFormat:hueRateSent.unwindOverageLeaveEarMainKnow, (long)state];
    }
}


+ (void)roomHashIntervalsPendingPrinterHostStamp:(void (^)(void))pathPolo mustSendWonFix:(NSInteger)mustSendWonFix {
    NSInteger waistCount = 10;

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

        NSString *stopSubAny = [self lemmaRopePressStatus:throughStatus];

        BrownInfo(hueRateSent.zipPointerCompressArrangerLibrariesSerif,
              (long)(mustSendWonFix + 1), (long)waistCount, stopSubAny);

        
        if (throughStatus == ATTrackingManagerAuthorizationStatusNotDetermined && mustSendWonFix < waistCount) {
            BrownInfo(hueRateSent.foreverEighteenTeethFlippedForceBorder, (long)(mustSendWonFix + 2));

            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0f * NSEC_PER_SEC)),
                          dispatch_get_main_queue(), ^{
                [self roomHashIntervalsPendingPrinterHostStamp:pathPolo mustSendWonFix:mustSendWonFix + 1];
            });
            return;
        } else {
            
            
            if (mustSendWonFix >= waistCount) {
                BrownInfo(hueRateSent.tagsExponentBehaviorsAnyPatternsProcessed, (long)waistCount);
                BrownInfo(hueRateSent.exponentDecreaseUnionMakeBaseballEmail, stopSubAny);
            } else {
                BrownInfo(hueRateSent.todaySegmentsPlugAssignEmbeddingType, stopSubAny);

                if (throughStatus == ATTrackingManagerAuthorizationStatusAuthorized) {
                    BrownInfo(hueRateSent.redoIgnoresLiveBrandMixMail);
                } else if (throughStatus == ATTrackingManagerAuthorizationStatusDenied) {
                    BrownInfo(hueRateSent.seeInuitFamilyExpandReversedAll);
                } else if (throughStatus == ATTrackingManagerAuthorizationStatusRestricted) {
                    BrownInfo(hueRateSent.entriesMapHybridSingleCreditBarrier);
                }
            }

            BrownInfo(hueRateSent.reclaimFillExportedMisplacedUnionSort);
            if (pathPolo) {
                pathPolo();
            }
        }
    } else {
        BrownInfo(hueRateSent.revealTapSmallerFeaturesTwoYoungestLoud);
        if (pathPolo) {
            pathPolo();
        }
    }
}
@end
