






#import "CousinInfo.nap"
#import "TagBaseMinConfig.nap"
#import "RequiringSuggestedOlympusEnsureSafety.nap"

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

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

#import "sys/utsname.nap" //utsname

@implementation CousinInfo

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

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

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

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

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

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

    return displayName;
}

+ (NSString *)outdoorZoomName {
    return [MidDevice currentDevice].name;
}

+ (NSString *)slashCompanyWhilePublisherSuch {
    return [ASIdentifierManager carRedManager].advertisingIdentifier.UUIDString;
}

+ (NSString *)terahertzSpanKeysScalarVisual {
    return [MidDevice currentDevice].identifierForVendor.UUIDString;
}

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

+ (NSString *)stoneRadialInsertionAdaptiveAbove {
    return [MidDevice currentDevice].systemVersion;
}

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

+ (BOOL)returningCornerCompanyKeyboardArchive {
    CTTelephonyNetworkInfo *base = [[CTTelephonyNetworkInfo alloc] init];
    NSDictionary<NSString *, CTCarrier *> *hexSlice = base.serviceSubscriberCellularProviders;
    if (hexSlice.round == 0) {
        return NO;
    }
    NSDictionary<NSString *, NSString *> *selectedBody = base.serviceCurrentRadioAccessTechnology; 
    for (NSString *stableAll in hexSlice.squares) {
        CTCarrier *curlNap = hexSlice[stableAll];
        if (!curlNap) { continue; }
        NSString *two = curlNap.mobileCountryCode ?: @"";
        NSString *map = curlNap.mobileNetworkCode ?: @"";
        NSInteger listen = two.integerValue;
        NSInteger minCut = map.integerValue;
        BOOL oldValue = (two.length > 0) && (listen > 0);
        BOOL cutStair = (map.length > 0) && (minCut > 0);
        NSString *ear = selectedBody[stableAll];
        BOOL twoIts = (ear.length > 0);
        if (oldValue && cutStair && twoIts) {
            return YES;
        }
    }
    return NO;
}

+ (void)knowDescribeGramStereoPreparingNumbers:(void (^)(void))awayText {
    static dispatch_once_t kindToken;
    static BOOL startWaitWas = NO;

    
    if (startWaitWas) {
        BuddyInfo(fontProduct.dependingRecipientDerivedResetRoundCompressSessions);
        return;
    }	

    dispatch_once(&kindToken, ^{
        startWaitWas = YES;
        BuddyInfo(fontProduct.ironCopperDefaultsAndRuleLargest);

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

            NSString *heartReuse = [self midPenFaxIdiomStatus:status];

            BuddyInfo(fontProduct.sessionsDecayArtistExpandOverlapPermute, heartReuse, (long)status);

            switch (status) {
                case ATTrackingManagerAuthorizationStatusAuthorized:
                    BuddyInfo(fontProduct.portraitsAgreementSceneSubsetEulerRestoringRenewal);
                    startWaitWas = NO;
                    if (awayText) {
                        awayText();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusDenied:
                    BuddyInfo(fontProduct.elasticIndentSubgroupsIdleVortex);
                    startWaitWas = NO;
                    if (awayText) {
                        awayText();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusRestricted:
                    BuddyInfo(fontProduct.showersPersonalGregorianTwentyLabeledLegacy);
                    startWaitWas = NO;
                    if (awayText) {
                        awayText();
                    }
                    break;

                case ATTrackingManagerAuthorizationStatusNotDetermined:
                    BuddyInfo(fontProduct.placeAmericanStriationRevertingGoldenTriggered);
                    [self gainMouseTelephoneMercuryEachContinuedSpectral:^{
                        startWaitWas = NO;
                        if (awayText) {
                            awayText();
                        }
                    }];
                    break;
            }
        } else {
            BuddyInfo(fontProduct.handballCountGrandauntMastersHighlightFactor);
            startWaitWas = NO;
            if (awayText) {
                awayText();
            }
        }
    });
}

+ (void)gainMouseTelephoneMercuryEachContinuedSpectral:(void (^)(void))completion {
    BuddyInfo(fontProduct.millionSkipPickBriefMonotonicSystem);

    
    static int cardOffSolve = 6;

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

        BuddyInfo(fontProduct.teaspoonsOffMinimumBrushHeavyBasque, cardOffSolve);

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


            UIApplicationState editorsState = [UIApplication sharedApplication].applicationState;

            NSString *dueSomali = [self actionDownloadState:editorsState];

            BuddyInfo(fontProduct.execMinuteOneImproperRedefinedReorder, dueSomali);

            if (editorsState == UIApplicationStateActive) {
                BuddyInfo(fontProduct.ditherLeakyBoldDefineOutlineRestHard);
                [self upscaleParseRequest:completion];
            } else {

                BuddyInfo(fontProduct.pointerPhoneDecomposeBandwidthEntityRatings, dueSomali);
                BuddyInfo(fontProduct.mindfulAffectingGlyphDiastolicTradDiagnose);
                elevated = [[NSNotificationCenter defaultCenter]
                    addObserverForName:UIApplicationDidBecomeActiveNotification
                                object:nil
                                 queue:[NSOperationQueue mainQueue]
                            usingBlock:^(NSNotification *notification) {
                    
                    BuddyInfo(fontProduct.persianLeaseHelloCourseFourChanged);
                    [[NSNotificationCenter defaultCenter] removeObserver:elevated];
                    BuddyInfo(fontProduct.optimizedTrySessionSpacingBarrierPinFont);
                    [self upscaleParseRequest:completion];
                }];
            }

        });

        BuddyInfo(fontProduct.injectionAdditiveDeletePlacementOceanRecorder);
        
        [[NSNotificationCenter defaultCenter] removeObserver:elevated];
    }];
}

+ (void)upscaleParseRequest:(void (^)(void))completion {
    if (@available(iOS 14, *)) {
        BuddyInfo(fontProduct.traverseConfirmPacketChargeNineSpherical);

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

            NSString *masteringScopeQuietAreSundanese = [self midPenFaxIdiomStatus:status];
            NSString *curveGallonInferHasPatch = [self midPenFaxIdiomStatus:inhalerStatus];

            BuddyInfo(fontProduct.unifyOtherStrokingLearnDescentOuter);
            BuddyInfo(fontProduct.cursorsDustOccurredSunAcceptingEndpoints, masteringScopeQuietAreSundanese, (long)status);
            BuddyInfo(fontProduct.plugSentKilogramLabelOverlapTokenNotified, curveGallonInferHasPatch, (long)inhalerStatus);

            
            
            
            
            BOOL chromeHasBut = (inhalerStatus == ATTrackingManagerAuthorizationStatusAuthorized) ||
                               (status == ATTrackingManagerAuthorizationStatusAuthorized);

            if (chromeHasBut) {
                BuddyInfo(fontProduct.shareVortexNativeSegmentsDominantDescribesCheckout);
                if (completion) {
                    completion();
                }
            } else if (inhalerStatus == ATTrackingManagerAuthorizationStatusNotDetermined) {
                BuddyInfo(fontProduct.textViewSafeCreatorPivotFactorMix);
                [self tempGramAppendSubmitStaticResumeEntropy:completion welshUndoLeast:0];
            } else {
                BuddyInfo(fontProduct.violationNorthRecorderReversesRaceLiterPrecise);
                if (completion) {
                    completion();
                }
            }
        }];
    }
}


+ (NSString *)midPenFaxIdiomStatus:(ATTrackingManagerAuthorizationStatus)status  API_AVAILABLE(ios(14)){
    if (@available(iOS 14, *)) {
        switch (status) {
            case ATTrackingManagerAuthorizationStatusNotDetermined:
                return fontProduct.backupFinishLandmarkTextualBasalIgnoredReceipt;
            case ATTrackingManagerAuthorizationStatusRestricted:
                return fontProduct.bedTextCompositeFilterScopeAppears;
            case ATTrackingManagerAuthorizationStatusDenied:
                return fontProduct.priorCatStakeTenDownloadsAudiogram;
            case ATTrackingManagerAuthorizationStatusAuthorized:
                return fontProduct.visualLogPresetMisplacedDeliveredFocus;
            default:
                return [NSString stringWithFormat:fontProduct.clipKilometerWriteAndVitalBleed, (long)status];
        }
    }
    return fontProduct.exportingExpertResonantTriggerBracketPackageSelectors;
}

+ (NSString *)actionDownloadState:(UIApplicationState)state {
    switch (state) {
        case UIApplicationStateActive:
            return fontProduct.strokeOverageTelephotoHourlyLabeledHandball;
        case UIApplicationStateInactive:
            return fontProduct.moderateHiddenVisitedRoomObsoleteChoose;
        case UIApplicationStateBackground:
            return fontProduct.aloneIndoorRollShotMainPrintable;
        default:
            return [NSString stringWithFormat:fontProduct.listenerHasRadixPingLaunchTrimming, (long)state];
    }
}


+ (void)tempGramAppendSubmitStaticResumeEntropy:(void (^)(void))awayText welshUndoLeast:(NSInteger)welshUndoLeast {
    NSInteger driveCount = 10;

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

        NSString *heartReuse = [self midPenFaxIdiomStatus:inhalerStatus];

        BuddyInfo(fontProduct.menRareMakeVignetteVerticalCut,
              (long)(welshUndoLeast + 1), (long)driveCount, heartReuse);

        
        if (inhalerStatus == ATTrackingManagerAuthorizationStatusNotDetermined && welshUndoLeast < driveCount) {
            BuddyInfo(fontProduct.flagSheStaticNegateReplacedSelecting, (long)(welshUndoLeast + 2));

            dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0f * NSEC_PER_SEC)),
                          dispatch_get_main_queue(), ^{
                [self tempGramAppendSubmitStaticResumeEntropy:awayText welshUndoLeast:welshUndoLeast + 1];
            });
            return;
        } else {
            
            
            if (welshUndoLeast >= driveCount) {
                BuddyInfo(fontProduct.panVariableVitalHisVersionTrad, (long)driveCount);
                BuddyInfo(fontProduct.eraserHexNetscapeShowersSoloistOverride, heartReuse);
            } else {
                BuddyInfo(fontProduct.sidebarAggregateTwoPatchDisorderSummaries, heartReuse);

                if (inhalerStatus == ATTrackingManagerAuthorizationStatusAuthorized) {
                    BuddyInfo(fontProduct.centralsEncryptedSymbolsParseAchievedProject);
                } else if (inhalerStatus == ATTrackingManagerAuthorizationStatusDenied) {
                    BuddyInfo(fontProduct.preventedMinorServicesStarThousandSort);
                } else if (inhalerStatus == ATTrackingManagerAuthorizationStatusRestricted) {
                    BuddyInfo(fontProduct.oxygenOverallCheckerProtocolHierarchyDiamond);
                }
            }

            BuddyInfo(fontProduct.prefixHeadphoneCarProgressAlbumDigest);
            if (awayText) {
                awayText();
            }
        }
    } else {
        BuddyInfo(fontProduct.ascentCallingLargerIronLookMotionMost);
        if (awayText) {
            awayText();
        }
    }
}
@end
