package o; import java.util.List; import java.util.UUID; import o.C0690Mh; import o.C15715hv; import o.C17481xBe; import o.InterfaceC6621cYR; import o.ZI; import o.aWE; import o.wRi; /* loaded from: classes4.dex */ public class aWE extends ZI { private final C16857rr a; public C0639Le b; public final uWm c; private final tcj d; public double e; private final xWK g; private final lTY h; private List i; @InterfaceC13391fZD public aWE(C16903sI c16903sI, uWm uwm, xWK xwk, C16857rr c16857rr, tcj tcjVar, lTY lty) { super(c16903sI); this.c = uwm; this.g = xwk; this.a = c16857rr; this.d = tcjVar; this.h = lty; } private C17481xBe b(int i) { List list = this.i; return (list == null || list.size() <= i) ? new C17481xBe(new C17481xBe.RVV()) : this.i.get(i); } /* loaded from: classes4.dex */ public class HBt extends wRi.LWm { private aWE a; private HBt(aWE awe) { this.a = awe; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { hZZ hzz = (hZZ) obj; aWE.e(this.a); if (this.a.f != 0) { this.a.i = hzz.e; C16857rr unused = this.a.a; final List list = (List) C16157lj.c(new Object[]{hzz.e, new InterfaceC1244Ytw(this) { // from class: o.aWH private aWE.HBt d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj2) { return aWE.HBt.b(this.d, (C17481xBe) obj2); } { this.d = this; } }}, -1846295624, 1846295631, (int) System.currentTimeMillis()); if (list.isEmpty()) { aWE awe = this.a; int i = C15715hv.tOB.error_generic_resource; C0690Mh.IeS ieS = C0690Mh.IeS.JUST_DISMISS; C16903sI c16903sI = awe.j; awe.d(c16903sI.c((String) null, c16903sI.e(i), ieS)); return; } aWE awe2 = this.a; ZI.IeS ieS2 = new ZI.IeS(list) { // from class: o.aWG private List d; @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.AGo) obj2).e((List) this.d); } { this.d = list; } }; if (awe2.f != 0) { ieS2.e(awe2.f); } } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { aWE.e(this.a, th, C0690Mh.IeS.JUST_DISMISS); } public static /* synthetic */ String b(HBt hBt, C17481xBe c17481xBe) { C16857rr unused = hBt.a.a; return C16857rr.b(c17481xBe, hBt.a.g.a.M()); } public /* synthetic */ HBt(aWE awe, byte b) { this(awe); } } /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes4.dex */ public class IeS extends wRi.LWm { private aWE a; private IeS(aWE awe) { this.a = awe; } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final /* synthetic */ void onNext(Object obj) { aWE.b(this.a); aWE awe = this.a; ZI.IeS ieS = new ZI.IeS() { // from class: o.aWK @Override // o.ZI.IeS public final void e(Object obj2) { ((InterfaceC6621cYR.AGo) obj2).a(); } }; if (awe.f != 0) { ieS.e(awe.f); } } @Override // o.wRi.LWm, o.InterfaceC13174fSv public final void onError(Throwable th) { aWE.b(this.a, th); } /* synthetic */ IeS(aWE awe, byte b) { this(awe); } } public static /* synthetic */ void d(aWE awe, C0639Le c0639Le, InterfaceC6621cYR.AGo aGo) { String str; if (awe.g.a.M().equals("th")) { str = c0639Le.c; } else { str = c0639Le.d; } aGo.e(str); } static /* synthetic */ void e(aWE awe) { if (awe.f != 0) { awe.f.ar_(); } } static /* synthetic */ void e(aWE awe, Throwable th, C0690Mh.IeS ieS) { if (awe.b(th)) { awe.d(awe.j.d(th, ieS)); } } static /* synthetic */ void b(aWE awe) { if (awe.f != 0) { awe.f.ar_(); } } static /* synthetic */ void b(aWE awe, Throwable th) { if (awe.b(th)) { awe.d(awe.j.e(th)); } } public final void c(int i, String str, boolean z) { if (this.f != 0) { this.f.y(); } KNe kNe = new KNe(); kNe.d = UUID.randomUUID().toString(); C0639Le c0639Le = this.b; if (c0639Le == null) { c0639Le = new C0639Le(0, "", "", "", ""); } kNe.i = c0639Le.e; C0639Le c0639Le2 = this.b; if (c0639Le2 == null) { c0639Le2 = new C0639Le(0, "", "", "", ""); } kNe.h = c0639Le2.b; C0639Le c0639Le3 = this.b; if (c0639Le3 == null) { c0639Le3 = new C0639Le(0, "", "", "", ""); } kNe.g = c0639Le3.c; C0639Le c0639Le4 = this.b; if (c0639Le4 == null) { c0639Le4 = new C0639Le(0, "", "", "", ""); } kNe.b = c0639Le4.d; kNe.e = b(i).a; kNe.a = b(i).d; kNe.c = C15602gz.e(this.e); byte b = 0; if (z) { this.h.b(kNe); lTY lty = this.h; lty.d(lty.i, new IeS(this, b)); return; } this.d.e(new C17328voM(str, kNe)); tcj tcjVar = this.d; tcjVar.d(tcjVar.i, new IeS(this, b)); } }