package o; import java.util.List; import o.PRA; import o.ZI; import o.aPS; import o.cYQ; import o.wRi; /* loaded from: classes4.dex */ public class aPS extends ZI { public TTa a; private C16720qg c; @InterfaceC13391fZD public aPS(TTa tTa, C16720qg c16720qg, C16903sI c16903sI) { super(c16903sI); this.a = tTa; this.c = c16720qg; } @Override // o.ZI public final void w_() { super.w_(); this.a.c.f(); } /* loaded from: classes4.dex */ public final class HBt extends wRi.LWm { private aPS b; @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onComplete() { } private HBt(aPS aps) { this.b = aps; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { C16510ouf c16510ouf = (C16510ouf) obj; if (this.b.f != 0 && c16510ouf != null) { final C16720qg c16720qg = this.b.c; C14957gcv.e(c16510ouf, ""); final JJ c = JJ.c(); List list = c16510ouf.b; C14957gcv.c(list, ""); List list2 = (List) C16157lj.c(new Object[]{list, new InterfaceC1244Ytw(c16720qg) { // from class: o.qh private C16720qg a; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return C16720qg.b(this.a, (Lqn) obj2); } { this.a = c16720qg; } }, new InterfaceC1244Ytw() { // from class: o.qj @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { Integer valueOf; valueOf = Integer.valueOf(((JL) obj2).j); return valueOf; } }}, -200592982, 200592993, (int) System.currentTimeMillis()); C14957gcv.c(list2, ""); c.b = list2; C14957gcv.c(c, ""); YKU yku = new YKU(c.b); YKU yku2 = new YKU(yku.a, new GEP(yku.b, new Jel() { // from class: o.aPZ @Override // o.Jel public final boolean e(Object obj2) { return aPS.HBt.b((JL) obj2); } })); final List list3 = (List) new YKU(yku2.a, new C17745zRk(yku2.b, xNZ.a(new InterfaceC1244Ytw() { // from class: o.aPW @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return Integer.valueOf(((JL) obj2).g); } }))).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); aPS aps = this.b; ZI.IeS ieS = new ZI.IeS(list3, c) { // from class: o.aPX private JJ a; private List b; @Override // o.ZI.IeS public final void e(Object obj2) { ((cYQ.Sts) obj2).e(this.b, this.a.b); } { this.b = list3; this.a = c; } }; if (aps.f != 0) { ieS.e(aps.f); } } aPS.e(this.b); } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(final Throwable th) { aPS.d(this.b); aPS aps = this.b; ZI.IeS ieS = new ZI.IeS(this, th) { // from class: o.aPQ private aPS.HBt c; private Throwable e; @Override // o.ZI.IeS public final void e(Object obj) { cYQ.Sts sts = (cYQ.Sts) obj; sts.d(this.c.b.j.e(this.e)); } { this.c = this; this.e = th; } }; if (aps.f != 0) { ieS.e(aps.f); } } /* JADX INFO: Access modifiers changed from: package-private */ public static /* synthetic */ boolean b(JL jl) { return jl.f == JI.SHOW_IMAGE_ON_BANNER; } public /* synthetic */ HBt(aPS aps, byte b) { this(aps); } } static /* synthetic */ void d(aPS aps) { if (aps.f != 0) { aps.f.ar_(); } } static /* synthetic */ void e(aPS aps) { if (aps.f != 0) { aps.f.ar_(); } } }