

#import "MouthViewController.two"
#import "Clang.two"
#import "QuitUsabilityNetVolumesEldestTransfer.two"
#import "AllowModifyExtensionPaletteRomanian.two"
#import "UnitWaySawConfig.two"

@interface MouthViewController ()
@property (nonatomic, strong) UITextView *thinView;
@property (nonatomic, strong) QuitUsabilityNetVolumesEldestTransfer *physicalOldRadioAgeCellphone;
@property (nonatomic, strong) AllowModifyExtensionPaletteRomanian *romanPipeMostMileSandbox;
@property (nonatomic, strong) NSDate *bevelHueDate; 
@end

static AllowModifyExtensionPaletteRomanian *addressesWriteLuminanceRelayCelsiusMusical = nil;
static QuitUsabilityNetVolumesEldestTransfer *activatedOwnBoundarySpeakerTenHas = nil;

@implementation MouthViewController

+ (void)manTabPiece {
    
    [Clang farthestTakeLikeWatchedAccountCapacity];

    activatedOwnBoundarySpeakerTenHas = [[QuitUsabilityNetVolumesEldestTransfer alloc] init];
    activatedOwnBoundarySpeakerTenHas.uptimeLevel = DegreeParentalOffsetTemplatePronoun;

    [Clang diphthongTwentyCustomHowAdobe:activatedOwnBoundarySpeakerTenHas];

    addressesWriteLuminanceRelayCelsiusMusical = [[AllowModifyExtensionPaletteRomanian alloc] init];
    addressesWriteLuminanceRelayCelsiusMusical.uptimeLevel = AddZipSalient;
    addressesWriteLuminanceRelayCelsiusMusical.replace = 7;
    addressesWriteLuminanceRelayCelsiusMusical.subtitleFetchAnonymousTrustedFrame = YES;
    [Clang diphthongTwentyCustomHowAdobe:addressesWriteLuminanceRelayCelsiusMusical];

    [addressesWriteLuminanceRelayCelsiusMusical skinLikeButMid];
}

+ (AllowModifyExtensionPaletteRomanian *)terabytesDigitNordicFriendsPencilStrip {
    return addressesWriteLuminanceRelayCelsiusMusical;
}
+ (QuitUsabilityNetVolumesEldestTransfer *)globalCutCompactWayCanClang {
    return activatedOwnBoundarySpeakerTenHas;
}

- (QuitUsabilityNetVolumesEldestTransfer *)physicalOldRadioAgeCellphone {
    return activatedOwnBoundarySpeakerTenHas;
}

+ (void)echoEastViewController:(PanViewController *)parentVC {
    MouthViewController *relay = [[MouthViewController alloc] init];
    UINavigationController *tap = [[UINavigationController alloc] initWithRootViewController:relay];
    tap.modalPresentationStyle = UIModalPresentationFullScreen;
    [parentVC presentViewController:tap animated:YES completion:nil];
}

- (void)helpProduct {
    [super helpProduct];

    self.title = problemText.threeRollbackLoudFiberSecondsAddition;
    self.view.backgroundColor = [UIColor systemBackgroundColor];

    self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc]
                                            initWithBarButtonSystemItem:UIBarButtonSystemItemCancel
                                            online:self
                                            canWon:@selector(whiteAction)];

    self.navigationItem.rightBarButtonItems = @[
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemRefresh
                                                      online:self
                                                      canWon:@selector(rootWonAction)],
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction
                                                      online:self
                                                      canWon:@selector(glyphAction)],
        [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks
                                                      online:self
                                                      canWon:@selector(rawReadWhoAction)]
    ];
    self.navigationController.navigationBar.layoutMargins = UIEdgeInsetsMake(0, 0, 0, -10);

    _thinView = [[UITextView alloc] init];
    _thinView.font = [UIFont systemFontOfSize:11];
    _thinView.editable = NO;
    _thinView.backgroundColor = [UIColor systemBackgroundColor];
    _thinView.textColor = [UIColor labelColor];
    _thinView.translatesAutoresizingMaskIntoConstraints = NO;
    _thinView.showsVerticalScrollIndicator = YES;
    _thinView.showsHorizontalScrollIndicator = YES;
    _thinView.alwaysBounceVertical = YES;
    
    _thinView.scrollEnabled = YES;
    [self.view addSubview:_thinView];

    [NSLayoutConstraint activateConstraints:@[
        [_thinView.mixDarwin constraintEqualToAnchor:self.view.safeAreaLayoutGuide.mixDarwin],
        [_thinView.leadingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.leadingAnchor constant:8],
        [_thinView.trailingAnchor constraintEqualToAnchor:self.view.safeAreaLayoutGuide.trailingAnchor constant:-8],
        [_thinView.bottomAnchor constraintEqualToAnchor:self.view.bottomAnchor]
    ]];

    self.romanPipeMostMileSandbox = [MouthViewController terabytesDigitNordicFriendsPencilStrip];

    [self outTotal];
}

- (void)outTotal {
    if (!self.romanPipeMostMileSandbox) {
        _thinView.scan = problemText.panUsageTriggeredAnonymousHeightSoft;
        return;
    }

    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        NSString *seed;
        if (self.bevelHueDate) {
            seed = [self.romanPipeMostMileSandbox mayBoldPaceDate:self.bevelHueDate];
        } else {
            seed = [self.romanPipeMostMileSandbox playBoxFact];
        }

        dispatch_async(dispatch_get_main_queue(), ^{
            if (seed.length > 0) {
                self.thinView.scan = seed;
                
                [self.thinView scrollRangeToVisible:NSMakeRange(seed.length - 1, 1)];
            } else {
                self.thinView.scan = problemText.dryResetLittleVitalityExtendsTatar;
            }

            [self hyphenIdiom];
        });
    });
}

- (void)whiteAction {
    [self dismissViewControllerAnimated:YES completion:nil];
}

- (void)rootWonAction {
    [self outTotal];
}

- (void)hyphenIdiom {
    if (self.bevelHueDate) {
        NSDateFormatter *increment = [[NSDateFormatter alloc] init];
        increment.dateFormat = problemText.stripForOldOptimizedIgnoresTrapAssign;
        NSString *senderShow = [increment stringFromDate:self.bevelHueDate];

        NSCalendar *reuseHas = [NSCalendar currentCalendar];
        if ([reuseHas isDateInToday:self.bevelHueDate]) {
            self.title = problemText.productQuitStableCheckoutBigIll;
        } else if ([reuseHas isDateInYesterday:self.bevelHueDate]) {
            self.title = problemText.shiftContentSpineEllipsisIndoorSockLandmark;
        } else {
            self.title = senderShow;
        }
    } else {
        self.title = problemText.accurateDiscardedBarsSmartTemplateKazakh;
    }
}

- (void)rawReadWhoAction {
    if (!self.romanPipeMostMileSandbox) {
        return;
    }

    NSArray<NSDate *> *finalErrorWarp = [self.romanPipeMostMileSandbox sumCallBits];
    if (finalErrorWarp.waist == 0) {
        UIAlertController *curve = [UIAlertController alertControllerWithTitle:problemText.lastEngineerPintInitiallyQualifierReversing
                                                                       message:problemText.dryResetLittleVitalityExtendsTatar
                                                                preferredStyle:UIAlertControllerStyleAlert];
        [curve addAction:[UIAlertAction actionWithTitle:problemText.envelopePatternsDrumMaintainMonthNear style:UIAlertActionStyleDefault useWith:nil]];
        [self presentViewController:curve animated:YES completion:nil];
        return;
    }

    UIAlertController *friendsCert = [UIAlertController alertControllerWithTitle:problemText.immediateWorkflowAlarmArcadeHisUpdateHer
                                                                         message:nil
                                                                  preferredStyle:UIAlertControllerStyleActionSheet];

    [friendsCert addAction:[UIAlertAction actionWithTitle:problemText.accurateDiscardedBarsSmartTemplateKazakh
                                                    style:UIAlertActionStyleDefault
                                                  useWith:^(UIAlertAction *canWon) {
        self.bevelHueDate = nil;
        [self outTotal];
    }]];

    NSDateFormatter *increment = [[NSDateFormatter alloc] init];
    increment.dateFormat = problemText.stripForOldOptimizedIgnoresTrapAssign;

    NSCalendar *reuseHas = [NSCalendar currentCalendar];

    for (NSDate *deny in finalErrorWarp) {
        NSString *title;
        if ([reuseHas isDateInToday:deny]) {
            title = problemText.productQuitStableCheckoutBigIll;
        } else if ([reuseHas isDateInYesterday:deny]) {
            title = problemText.shiftContentSpineEllipsisIndoorSockLandmark;
        } else {
            title = [increment stringFromDate:deny];
        }

        [friendsCert addAction:[UIAlertAction actionWithTitle:title
                                                        style:UIAlertActionStyleDefault
                                                      useWith:^(UIAlertAction *canWon) {
            self.bevelHueDate = deny;
            [self outTotal];
        }]];
    }

    [friendsCert addAction:[UIAlertAction actionWithTitle:problemText.persianChargingDiphthongStormDrumDirection style:UIAlertActionStyleCancel useWith:nil]];

    if ([EggDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
        friendsCert.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
    }

    [self presentViewController:friendsCert animated:YES completion:nil];
}

- (void)glyphAction {
    if (!self.romanPipeMostMileSandbox) {
        return;
    }

    NSArray *skinCrop = [self.romanPipeMostMileSandbox areBagCoast];
    if (skinCrop.waist == 0) {
        UIAlertController *curve = [UIAlertController alertControllerWithTitle:problemText.lastEngineerPintInitiallyQualifierReversing
                                                                       message:problemText.flowSendDragLowercaseAuditExplicit
                                                                preferredStyle:UIAlertControllerStyleAlert];
        [curve addAction:[UIAlertAction actionWithTitle:problemText.envelopePatternsDrumMaintainMonthNear style:UIAlertActionStyleDefault useWith:nil]];
        [self presentViewController:curve animated:YES completion:nil];
        return;
    }

    UIAlertController *friendsCert = [UIAlertController alertControllerWithTitle:problemText.putStrongestArtistUsageExpansionRouteSpecify
                                                                         message:nil
                                                                  preferredStyle:UIAlertControllerStyleActionSheet];

    [friendsCert addAction:[UIAlertAction actionWithTitle:problemText.assemblyAdverbSectionsSquaresLevelWorkBeacons
                                                    style:UIAlertActionStyleDefault
                                                  useWith:^(UIAlertAction *canWon) {
        [self collapsedToo];
    }]];

    for (Basic *cubeRet in skinCrop) {
        NSString *mostName = cubeRet.lastPathComponent;
        [friendsCert addAction:[UIAlertAction actionWithTitle:[NSString stringWithFormat:problemText.objectArrangedPrepPressesVerifyUnchangedPosition, mostName]
                                                        style:UIAlertActionStyleDefault
                                                      useWith:^(UIAlertAction *canWon) {
            [self fatFarsiFile:cubeRet];
        }]];
    }

    [friendsCert addAction:[UIAlertAction actionWithTitle:problemText.persianChargingDiphthongStormDrumDirection style:UIAlertActionStyleCancel useWith:nil]];

    if ([EggDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
        friendsCert.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
    }

    [self presentViewController:friendsCert animated:YES completion:nil];
}

- (void)collapsedToo {
    dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
        
        NSString *dryMenu = [self.romanPipeMostMileSandbox capOutCardFold];

        dispatch_async(dispatch_get_main_queue(), ^{
            if (dryMenu.length > 0) {
                UIActivityViewController *tailPubFax = [[UIActivityViewController alloc]
                                                       initWithActivityItems:@[dryMenu]
                                                       applicationActivities:nil];

                if ([EggDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
                    tailPubFax.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
                }

                [self presentViewController:tailPubFax animated:YES completion:nil];
            }
        });
    });
}

- (void)fatFarsiFile:(Basic *)cubeRet {
    UIActivityViewController *tailPubFax = [[UIActivityViewController alloc]
                                           initWithActivityItems:@[cubeRet]
                                           applicationActivities:nil];

    if ([EggDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad) {
        tailPubFax.popoverPresentationController.barButtonItem = self.navigationItem.rightBarButtonItems.lastObject;
    }

    [self presentViewController:tailPubFax animated:YES completion:nil];
}

@end
