package com.ss.android.ugc.aweme.watch.history.core;

import X.7he;
import X.9EH;
import X.9HM;
import X.A4l;
import X.AnonymousClass2GO;
import X.AnonymousClass2HZ;
import X.AnonymousClass2K7;
import X.AnonymousClass2UX;
import X.AnonymousClass2YD;
import X.AnonymousClass2cN;
import X.AnonymousClass3BB;
import X.AnonymousClass4GE;
import X.AnonymousClass4GH;
import X.AnonymousClass4GJ;
import X.AnonymousClass4GK;
import X.AnonymousClass4GQ;
import X.AnonymousClass4HC;
import X.AnonymousClass4HD;
import X.AnonymousClass4HE;
import X.AnonymousClass4HF;
import X.AnonymousClass4HH;
import X.AnonymousClass4HI;
import X.AnonymousClass4HJ;
import X.AnonymousClass4HK;
import X.AnonymousClass4HL;
import X.AnonymousClass4HQ;
import X.AnonymousClass4HR;
import X.AnonymousClass4IO;
import X.AnonymousClass4IP;
import X.C06912eR;
import X.C12422nK;
import X.C49934Gb;
import X.C49964Ge;
import X.C49974Gf;
import X.C50084Gq;
import X.C50394Hv;
import X.C65674r1;
import X.Crj;
import X.Cw3;
import X.DWM;
import X.DaP;
import X.Etp;
import X.ISm;
import X.Lea;
import X.M12;
import X.Mk2;
import X.Mk3;
import X.Rc9;
import X.SsI;
import X.TnV;
import android.content.Context;
import com.bytedance.covode.number.Covode;
import com.ss.android.ugc.aweme.IAccountUserService;
import com.ss.android.ugc.aweme.detail.vm.BaseDetailShareVM;
import com.ss.android.ugc.aweme.feed.model.Aweme;
import com.ss.android.ugc.aweme.friendstab.service.IFriendsTabService;
import com.ss.android.ugc.aweme.watch.history.api.WatchHistoryApi;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import kotlin.h.b.n;
import org.greenrobot.eventbus.ThreadMode;

public final class WatchHistoryListViewModel extends BaseDetailShareVM<AnonymousClass4IO, C49974Gf, AnonymousClass4HE> implements AnonymousClass2HZ, AnonymousClass2GO {
    public static final String LJI;
    public static final AnonymousClass4HQ LJII = new AnonymousClass4HQ((byte) 0);
    public boolean LIZ;
    public boolean LIZIZ;
    public Map<String, C49974Gf> LIZJ = new LinkedHashMap();
    public AnonymousClass4GE LIZLLL;
    public final IAccountUserService LJ;
    public final C50084Gq LJFF;
    public AnonymousClass4HE LJIIIIZZ;
    public final Crj LJIIIZ = 7he.LIZ(AnonymousClass4HJ.LIZ);
    public final Cw3<C06912eR> LJIIJ;

    public final IFriendsTabService LIZ() {
        return (IFriendsTabService) this.LJIIIZ.getValue();
    }

    public final int getPageType(int i) {
        return 45;
    }

    public final Map<Integer, Object> getSubscriberEventTypes() {
        HashMap hashMap = new HashMap();
        hashMap.put(55, new Rc9(WatchHistoryListViewModel.class, "onReceiveVideoEvent", Etp.class, ThreadMode.POSTING, 0, false));
        return hashMap;
    }

    /* JADX WARNING: type inference failed for: r0v0, types: [X.4HR, X.4IO] */
    public final /* synthetic */ AnonymousClass4HR defaultState() {
        return new AnonymousClass4IO();
    }

    public final void onCleared() {
        WatchHistoryListViewModel.super.onCleared();
        SsI.LIZIZ(this);
    }

    public final void onPrepared() {
        WatchHistoryListViewModel.super.onPrepared();
        SsI.LIZ(this);
    }

    public static boolean LJI() {
        try {
            return AnonymousClass2K7.LIZ.LIZJ();
        } catch (Exception unused) {
            return false;
        }
    }

    static {
        String str;
        Covode.recordClassIndex(123929);
        if (C50394Hv.LIZ.LIZ()) {
            str = "account_history";
        } else {
            str = "media_history";
        }
        LJI = str;
    }

    public final void LIZIZ() {
        9EH.LJJIFFI.LIZ();
        if (!LJI()) {
            AnonymousClass3BB r1 = new AnonymousClass3BB(9EH.LJJIFFI.LIZ());
            r1.LIZIZ(2131827476);
            r1.LIZIZ();
            return;
        }
        manualListRefresh();
    }

    public final void LIZLLL() {
        setState(new AnonymousClass4GJ(this));
        AnonymousClass2UX r2 = new AnonymousClass2UX();
        r2.LIZ("type", LJFF().getValue());
        r2.LIZ("is_success", 0);
        C12422nK.LIZ("show_toast_delete_account_history", r2.LIZ);
    }

    public final AnonymousClass4GQ LJFF() {
        if (this.LIZIZ) {
            return AnonymousClass4GQ.ALL;
        }
        if (this.LIZJ.size() > 1) {
            return AnonymousClass4GQ.MULTIPLE;
        }
        if (!this.LIZJ.isEmpty()) {
            return AnonymousClass4GQ.SINGLE;
        }
        return AnonymousClass4GQ.NONE;
    }

    public final void LIZJ() {
        List listGetAll = listGetAll();
        if (listGetAll != null) {
            ArrayList arrayList = new ArrayList();
            for (Object next : listGetAll) {
                if (this.LIZJ.containsKey(((C49974Gf) next).LIZ())) {
                    arrayList.add(next);
                }
            }
            List<C49974Gf> list = arrayList;
            ArrayList arrayList2 = new ArrayList(9HM.LIZ(list, 10));
            for (C49974Gf r1 : list) {
                String aid = r1.LIZ.getAid();
                n.LIZIZ(aid, "");
                arrayList2.add(new AnonymousClass2YD(aid, String.valueOf(r1.LIZIZ)));
            }
            List LJIIJJI = Lea.LJIIJJI(arrayList2);
            if (LJIIJJI != null && !LJIIJJI.isEmpty()) {
                setState(AnonymousClass4HD.LIZ);
                AnonymousClass2cN LIZ2 = WatchHistoryApi.LIZ.LIZ(LJIIJJI).LIZ(Mk2.LIZ(Mk3.LIZ)).LIZLLL(new C49964Ge(this)).LIZ(AnonymousClass4HI.LIZ).LJII(new AnonymousClass4HF(this)).LIZ(AnonymousClass4HL.LIZ, new AnonymousClass4HK(this));
                n.LIZIZ(LIZ2, "");
                disposeOnClear(LIZ2);
            }
        }
    }

    public final void LJ() {
        String string;
        AnonymousClass4GH r0;
        AnonymousClass4GH r02;
        AnonymousClass4GH r03;
        AnonymousClass2UX r2 = new AnonymousClass2UX();
        r2.LIZ("type", LJFF().getValue());
        r2.LIZ("is_success", 1);
        C12422nK.LIZ("show_toast_delete_account_history", r2.LIZ);
        AnonymousClass4GQ LJFF2 = LJFF();
        Context LIZ2 = 9EH.LJJIFFI.LIZ();
        AnonymousClass4GE r4 = this.LIZLLL;
        M12.LIZ(LJFF2, LIZ2);
        int i = AnonymousClass4GK.LIZIZ[LJFF2.ordinal()];
        if (i != 1) {
            if (i != 2) {
                if (r4 == null || (r03 = r4.LJI) == null || (string = r03.getToastSuccess()) == null) {
                    string = LIZ2.getString(2131834950);
                    n.LIZIZ(string, "");
                }
            } else if (r4 == null || (r02 = r4.LJFF) == null || (string = r02.getToastSuccess()) == null) {
                string = LIZ2.getString(2131834950);
                n.LIZIZ(string, "");
            }
        } else if (r4 == null || (r0 = r4.LJ) == null || (string = r0.getToastSuccess()) == null) {
            string = LIZ2.getString(2131834952);
            n.LIZIZ(string, "");
        }
        this.LIZJ.clear();
        this.LIZIZ = false;
        this.LIZ = false;
        setState(new C49934Gb(string));
    }

    public final /* synthetic */ Aweme getAwemeFromItem(DaP daP) {
        C49974Gf r2 = (C49974Gf) daP;
        M12.LIZ(r2);
        return r2.LIZ;
    }

    public final void newState(DWM<C49974Gf> dwm) {
        M12.LIZ(dwm);
        setState(new AnonymousClass4HH(dwm));
    }

    public final void LIZ(int i) {
        withState(new AnonymousClass4IP(this, i));
    }

    public final Object onRefresh(C65674r1<? super A4l<AnonymousClass4HE>> r4) {
        return onLoadMore(new AnonymousClass4HE(this.LJ.getCurSecUserId(), (String) null), r4);
    }

    public final int deleteItemByAid(String str) {
        M12.LIZ(str);
        List listGetAll = listGetAll();
        int i = -1;
        if (listGetAll != null) {
            int i2 = 0;
            Iterator it = listGetAll.iterator();
            while (true) {
                if (!it.hasNext()) {
                    break;
                } else if (n.LIZ(((C49974Gf) it.next()).LIZ.getAid(), str)) {
                    i = i2;
                    if (i >= 0) {
                        listRemoveItemAt(i);
                    }
                } else {
                    i2++;
                }
            }
        }
        return i;
    }

    @ISm
    public final void onReceiveVideoEvent(Etp etp) {
        M12.LIZ(etp);
        if (!C50394Hv.LIZ.LIZ() && etp.LIZ == 21) {
            Object obj = etp.LIZIZ;
            if (obj instanceof Aweme) {
                int i = 0;
                for (Aweme aid : getAwemeList()) {
                    if (!n.LIZ(aid.getAid(), ((Aweme) obj).getAid())) {
                        i++;
                    } else if (i > 0) {
                        setState(new AnonymousClass4HC(i));
                        return;
                    } else {
                        return;
                    }
                }
            }
        }
    }

    /* JADX WARNING: type inference failed for: r4v1, types: [X.4HG, X.4r1] */
    /* JADX WARNING: type inference failed for: r4v5 */
    /* JADX WARNING: type inference failed for: r4v6 */
    /* JADX WARNING: Removed duplicated region for block: B:12:0x0035  */
    /* JADX WARNING: Removed duplicated region for block: B:26:0x0075 A[Catch:{ Exception -> 0x0181 }] */
    /* JADX WARNING: Removed duplicated region for block: B:28:0x007c A[Catch:{ Exception -> 0x0181 }] */
    /* JADX WARNING: Removed duplicated region for block: B:7:0x001c  */
    /* renamed from: LIZ */
    /* Code decompiled incorrectly, please refer to instructions dump. */
    public final java.lang.Object onLoadMore(X.AnonymousClass4HE r14, X.C65674r1<? super X.A4l<X.AnonymousClass4HE>> r15) {
        /*
            r13 = this;
            boolean r0 = r15 instanceof X.AnonymousClass4HG
            if (r0 == 0) goto L_0x0027
            r4 = r15
            X.4HG r4 = (X.AnonymousClass4HG) r4
            int r0 = r4.label
            r1 = -2147483648(0xffffffff80000000, float:-0.0)
            r0 = r0 & r1
            if (r0 == 0) goto L_0x0027
            int r0 = r4.label
            int r0 = r0 - r1
            r4.label = r0
        L_0x0013:
            java.lang.Object r7 = r4.result
            X.Cof r5 = X.Cof.COROUTINE_SUSPENDED
            int r0 = r4.label
            r6 = 1
            if (r0 == 0) goto L_0x0035
            if (r0 != r6) goto L_0x002d
            java.lang.Object r14 = r4.L$1
            X.4HE r14 = (X.AnonymousClass4HE) r14
            java.lang.Object r5 = r4.L$0
            com.ss.android.ugc.aweme.watch.history.core.WatchHistoryListViewModel r5 = (com.ss.android.ugc.aweme.watch.history.core.WatchHistoryListViewModel) r5
            goto L_0x006e
        L_0x0027:
            X.4HG r4 = new X.4HG
            r4.<init>(r13, r15)
            goto L_0x0013
        L_0x002d:
            java.lang.IllegalStateException r1 = new java.lang.IllegalStateException
            java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
            r1.<init>(r0)
            throw r1
        L_0x0035:
            X.C16372th.LIZ((java.lang.Object) r7)
            java.lang.String r0 = r14.LIZIZ     // Catch:{ Exception -> 0x0181 }
            if (r0 != 0) goto L_0x004d
            X.Cw3<X.2eR> r0 = r13.LJIIJ     // Catch:{ Exception -> 0x0181 }
            X.2eS r0 = r0.getOperator()     // Catch:{ Exception -> 0x0181 }
            X.2eR r0 = (X.C06912eR) r0     // Catch:{ Exception -> 0x0181 }
            X.Ph1 r0 = r0.LIZ()     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x004d
            r0.ee_()     // Catch:{ Exception -> 0x0181 }
        L_0x004d:
            X.Cw3<X.2eR> r0 = r13.LJIIJ     // Catch:{ Exception -> 0x0181 }
            X.2eS r3 = r0.getOperator()     // Catch:{ Exception -> 0x0181 }
            X.2eR r3 = (X.C06912eR) r3     // Catch:{ Exception -> 0x0181 }
            java.lang.String r2 = r14.LIZ     // Catch:{ Exception -> 0x0181 }
            java.lang.String r1 = r14.LIZIZ     // Catch:{ Exception -> 0x0181 }
            int r0 = r14.LIZJ     // Catch:{ Exception -> 0x0181 }
            X.PgU r0 = r3.LIZ(r2, r1, r0)     // Catch:{ Exception -> 0x0181 }
            r4.L$0 = r13     // Catch:{ Exception -> 0x0181 }
            r4.L$1 = r14     // Catch:{ Exception -> 0x0181 }
            r4.label = r6     // Catch:{ Exception -> 0x0181 }
            java.lang.Object r7 = X.F3Z.LIZ(r0, r4)     // Catch:{ Exception -> 0x0181 }
            if (r7 != r5) goto L_0x006c
            return r5
        L_0x006c:
            r5 = r13
            goto L_0x0071
        L_0x006e:
            X.C16372th.LIZ((java.lang.Object) r7)     // Catch:{ Exception -> 0x0181 }
        L_0x0071:
            X.2eM r7 = (X.C06862eM) r7     // Catch:{ Exception -> 0x0181 }
            if (r7 != 0) goto L_0x007c
            X.A4n r0 = X.A4l.LIZ     // Catch:{ Exception -> 0x0181 }
            X.A4o r0 = X.A4n.LIZ(r0)     // Catch:{ Exception -> 0x0181 }
            return r0
        L_0x007c:
            boolean r0 = r7.LIZJ     // Catch:{ Exception -> 0x0181 }
            r1 = 0
            r3 = 10
            r4 = 0
            if (r0 == 0) goto L_0x0108
            X.4HE r8 = new X.4HE     // Catch:{ Exception -> 0x0181 }
            java.lang.String r2 = r14.LIZ     // Catch:{ Exception -> 0x0181 }
            java.lang.String r0 = r7.LIZIZ     // Catch:{ Exception -> 0x0181 }
            r8.<init>(r2, r0)     // Catch:{ Exception -> 0x0181 }
            r5.LJIIIIZZ = r8     // Catch:{ Exception -> 0x0181 }
            X.A4n r9 = X.A4l.LIZ     // Catch:{ Exception -> 0x0181 }
            java.util.List<com.ss.android.ugc.aweme.feed.model.Aweme> r2 = r7.LIZ     // Catch:{ Exception -> 0x0181 }
            if (r2 == 0) goto L_0x00fc
            java.util.ArrayList r8 = new java.util.ArrayList     // Catch:{ Exception -> 0x0181 }
            int r0 = X.9HM.LIZ(r2, r3)     // Catch:{ Exception -> 0x0181 }
            r8.<init>(r0)     // Catch:{ Exception -> 0x0181 }
            java.util.Iterator r12 = r2.iterator()     // Catch:{ Exception -> 0x0181 }
        L_0x00a2:
            boolean r0 = r12.hasNext()     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x00ff
            java.lang.Object r10 = r12.next()     // Catch:{ Exception -> 0x0181 }
            int r11 = r1 + 1
            if (r1 >= 0) goto L_0x00b3
            X.LeS.LIZIZ()     // Catch:{ Exception -> 0x0181 }
        L_0x00b3:
            com.ss.android.ugc.aweme.feed.model.Aweme r10 = (com.ss.android.ugc.aweme.feed.model.Aweme) r10     // Catch:{ Exception -> 0x0181 }
            X.4Gf r3 = new X.4Gf     // Catch:{ Exception -> 0x0181 }
            java.util.List<java.lang.Long> r0 = r7.LJ     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x00e2
            boolean r0 = r0.isEmpty()     // Catch:{ Exception -> 0x0181 }
            r0 = r0 ^ r6
            if (r0 != r6) goto L_0x00e2
            java.util.List<java.lang.Long> r0 = r7.LJ     // Catch:{ Exception -> 0x0181 }
            java.lang.Object r0 = r0.get(r1)     // Catch:{ Exception -> 0x0181 }
            java.lang.Number r0 = (java.lang.Number) r0     // Catch:{ Exception -> 0x0181 }
            long r0 = r0.longValue()     // Catch:{ Exception -> 0x0181 }
        L_0x00ce:
            boolean r2 = r5.LIZ     // Catch:{ Exception -> 0x0181 }
            if (r2 == 0) goto L_0x00e0
            boolean r2 = r5.LIZIZ     // Catch:{ Exception -> 0x0181 }
            java.lang.Boolean r2 = java.lang.Boolean.valueOf(r2)     // Catch:{ Exception -> 0x0181 }
        L_0x00d8:
            r3.<init>(r10, r0, r2)     // Catch:{ Exception -> 0x0181 }
            r8.add(r3)     // Catch:{ Exception -> 0x0181 }
            r1 = r11
            goto L_0x00a2
        L_0x00e0:
            r2 = r4
            goto L_0x00d8
        L_0x00e2:
            java.util.Map<java.lang.String, java.lang.Long> r1 = r7.LIZLLL     // Catch:{ Exception -> 0x0181 }
            if (r1 == 0) goto L_0x00f7
            java.lang.String r0 = r10.getAid()     // Catch:{ Exception -> 0x0181 }
            java.lang.Object r0 = r1.get(r0)     // Catch:{ Exception -> 0x0181 }
            java.lang.Long r0 = (java.lang.Long) r0     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x00f7
            long r0 = r0.longValue()     // Catch:{ Exception -> 0x0181 }
            goto L_0x00ce
        L_0x00f7:
            long r0 = java.lang.System.currentTimeMillis()     // Catch:{ Exception -> 0x0181 }
            goto L_0x00ce
        L_0x00fc:
            X.Lel r8 = X.Lel.INSTANCE     // Catch:{ Exception -> 0x0181 }
            goto L_0x0101
        L_0x00ff:
            java.util.List r8 = (java.util.List) r8     // Catch:{ Exception -> 0x0181 }
        L_0x0101:
            X.4HE r0 = r5.LJIIIIZZ     // Catch:{ Exception -> 0x0181 }
            X.A4p r0 = X.A4n.LIZ(r9, r4, r0, r8, r6)     // Catch:{ Exception -> 0x0181 }
            return r0
        L_0x0108:
            r5.LJIIIIZZ = r4     // Catch:{ Exception -> 0x0181 }
            X.A4n r10 = X.A4l.LIZ     // Catch:{ Exception -> 0x0181 }
            java.util.List<com.ss.android.ugc.aweme.feed.model.Aweme> r2 = r7.LIZ     // Catch:{ Exception -> 0x0181 }
            if (r2 == 0) goto L_0x0177
            java.util.ArrayList r9 = new java.util.ArrayList     // Catch:{ Exception -> 0x0181 }
            int r0 = X.9HM.LIZ(r2, r3)     // Catch:{ Exception -> 0x0181 }
            r9.<init>(r0)     // Catch:{ Exception -> 0x0181 }
            java.util.Iterator r12 = r2.iterator()     // Catch:{ Exception -> 0x0181 }
        L_0x011d:
            boolean r0 = r12.hasNext()     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x017a
            java.lang.Object r8 = r12.next()     // Catch:{ Exception -> 0x0181 }
            int r11 = r1 + 1
            if (r1 >= 0) goto L_0x012e
            X.LeS.LIZIZ()     // Catch:{ Exception -> 0x0181 }
        L_0x012e:
            com.ss.android.ugc.aweme.feed.model.Aweme r8 = (com.ss.android.ugc.aweme.feed.model.Aweme) r8     // Catch:{ Exception -> 0x0181 }
            X.4Gf r3 = new X.4Gf     // Catch:{ Exception -> 0x0181 }
            java.util.List<java.lang.Long> r0 = r7.LJ     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x015d
            boolean r0 = r0.isEmpty()     // Catch:{ Exception -> 0x0181 }
            r0 = r0 ^ r6
            if (r0 != r6) goto L_0x015d
            java.util.List<java.lang.Long> r0 = r7.LJ     // Catch:{ Exception -> 0x0181 }
            java.lang.Object r0 = r0.get(r1)     // Catch:{ Exception -> 0x0181 }
            java.lang.Number r0 = (java.lang.Number) r0     // Catch:{ Exception -> 0x0181 }
            long r1 = r0.longValue()     // Catch:{ Exception -> 0x0181 }
        L_0x0149:
            boolean r0 = r5.LIZ     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x015b
            boolean r0 = r5.LIZIZ     // Catch:{ Exception -> 0x0181 }
            java.lang.Boolean r0 = java.lang.Boolean.valueOf(r0)     // Catch:{ Exception -> 0x0181 }
        L_0x0153:
            r3.<init>(r8, r1, r0)     // Catch:{ Exception -> 0x0181 }
            r9.add(r3)     // Catch:{ Exception -> 0x0181 }
            r1 = r11
            goto L_0x011d
        L_0x015b:
            r0 = r4
            goto L_0x0153
        L_0x015d:
            java.util.Map<java.lang.String, java.lang.Long> r1 = r7.LIZLLL     // Catch:{ Exception -> 0x0181 }
            if (r1 == 0) goto L_0x0172
            java.lang.String r0 = r8.getAid()     // Catch:{ Exception -> 0x0181 }
            java.lang.Object r0 = r1.get(r0)     // Catch:{ Exception -> 0x0181 }
            java.lang.Long r0 = (java.lang.Long) r0     // Catch:{ Exception -> 0x0181 }
            if (r0 == 0) goto L_0x0172
            long r1 = r0.longValue()     // Catch:{ Exception -> 0x0181 }
            goto L_0x0149
        L_0x0172:
            long r1 = java.lang.System.currentTimeMillis()     // Catch:{ Exception -> 0x0181 }
            goto L_0x0149
        L_0x0177:
            X.Lel r9 = X.Lel.INSTANCE     // Catch:{ Exception -> 0x0181 }
            goto L_0x017c
        L_0x017a:
            java.util.List r9 = (java.util.List) r9     // Catch:{ Exception -> 0x0181 }
        L_0x017c:
            X.A4o r0 = r10.LIZ(r9)     // Catch:{ Exception -> 0x0181 }
            return r0
        L_0x0181:
            r1 = move-exception
            X.A4n r0 = X.A4l.LIZ
            X.A4m r0 = r0.LIZ(r1)
            return r0
        */
        throw new UnsupportedOperationException("Method not decompiled: com.ss.android.ugc.aweme.watch.history.core.WatchHistoryListViewModel.onLoadMore(X.4HE, X.4r1):java.lang.Object");
    }

    public WatchHistoryListViewModel(Cw3<C06912eR> cw3, IAccountUserService iAccountUserService, C50084Gq r4) {
        M12.LIZ(cw3, iAccountUserService, r4);
        this.LJIIJ = cw3;
        this.LJ = iAccountUserService;
        this.LJFF = r4;
    }

    public final /* synthetic */ Object getCursorByFeedParam(int i, TnV tnV, int i2, boolean z) {
        M12.LIZ(tnV);
        AnonymousClass4HE r2 = this.LJIIIIZZ;
        if (r2 == null) {
            return new AnonymousClass4HE(this.LJ.getCurSecUserId(), "0");
        }
        return r2;
    }
}
