package o; import java.util.ArrayList; import java.util.List; import o.PRA; import org.threeten.bp.OffsetDateTime; /* loaded from: classes.dex */ public final class KOU extends ZTC { private final GqH a = new GqH(); private final NhM c = new NhM(); @InterfaceC13391fZD public KOU() { } public final List a(List list) { if (list == null) { list = new ArrayList<>(); } YKU yku = new YKU(list); return (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(this) { // from class: o.EmY private KOU b; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return KOU.a(this.b, (wwc) obj); } { this.b = this; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } public static /* synthetic */ C5762bzF a(KOU kou, wwc wwcVar) { Iterable arrayList; List arrayList2; List arrayList3; List arrayList4; yzb yzbVar = wwcVar.f9304o; vDw vdw = null; String str = (yzbVar == null || yzbVar.e.isEmpty()) ? null : yzbVar.c; ZGL b = yzbVar != null ? ZGL.b(yzbVar.e) : null; yzb yzbVar2 = wwcVar.k; String str2 = (yzbVar2 == null || yzbVar2.e.isEmpty()) ? null : yzbVar2.c; String str3 = (yzbVar2 == null || yzbVar2.e.isEmpty()) ? null : yzbVar2.e; String str4 = wwcVar.e != null ? wwcVar.e.e : null; String str5 = wwcVar.f != null ? wwcVar.f.a : null; yzb yzbVar3 = wwcVar.n; String str6 = (yzbVar3 == null || yzbVar3.e.isEmpty()) ? null : yzbVar3.c; final GqH gqH = kou.a; if (wwcVar.t == null) { arrayList = new ArrayList(); } else { arrayList = wwcVar.t; } YKU yku = new YKU(arrayList); List list = (List) new YKU(yku.a, new wxK(yku.b, new InterfaceC1244Ytw(gqH) { // from class: o.TUk private GqH d; @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { C7516cpm c7516cpm = (C7516cpm) obj; FUr a = FUr.a(); a.d = c7516cpm.e; a.b = (OffsetDateTime) ZTC.e(new Object[]{c7516cpm.a, null}, 267499366, -267499366, (int) System.currentTimeMillis()); a.a = c7516cpm.c; a.c = FGY.a(c7516cpm.b); return a; } { this.d = gqH; } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); C5762bzF b2 = C5762bzF.b(); b2.d = wwcVar.d; b2.p = b; b2.t = str; b2.k = str3; b2.m = str2; b2.f8593o = str6; b2.f = wwcVar.g; b2.g = wwcVar.h; b2.c = BDh.a(str4); b2.a = str4; b2.r = list; b2.e = e(wwcVar); b2.i = wwcVar.c; b2.q = wwcVar.m; b2.b = wwcVar.a; b2.n = str5; List list2 = wwcVar.i; if (list2 == null || list2.isEmpty()) { arrayList2 = new ArrayList<>(); } else { YKU yku2 = new YKU(list2); arrayList2 = (List) new YKU(yku2.a, new wxK(yku2.b, new InterfaceC1244Ytw() { // from class: o.jjJ @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { rVe rve = (rVe) obj; return new Cxv(rve.e, rve.a); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } b2.l = arrayList2; List list3 = wwcVar.l; if (list3 != null && !list3.isEmpty()) { YKU yku3 = new YKU(list3); arrayList3 = (List) new YKU(yku3.a, new wxK(yku3.b, new InterfaceC1244Ytw() { // from class: o.DJk @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { ToK toK = (ToK) obj; return new C14827gQM(toK.b, toK.d); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } else { arrayList3 = new ArrayList<>(); } b2.s = arrayList3; List list4 = wwcVar.r; if (list4 != null && !list4.isEmpty()) { YKU yku4 = new YKU(list4); arrayList4 = (List) new YKU(yku4.a, new wxK(yku4.b, new InterfaceC1244Ytw() { // from class: o.nQd @Override // o.InterfaceC1244Ytw public final Object d(Object obj) { return new HsO(((WkZ) obj).e); } })).a(new PRA.Sts(new PRA.AnonymousClass4(), new PRA.AnonymousClass8())); } else { arrayList4 = new ArrayList<>(); } b2.w = arrayList4; C4018bNj c4018bNj = wwcVar.b; if (c4018bNj != null) { C14957gcv.e(kou.c, ""); yzb yzbVar4 = c4018bNj.g; vdw = new vDw(new JZY(yzbVar4.h, yzbVar4.e, yzbVar4.c, yzbVar4.g), c4018bNj.b, c4018bNj.d, c4018bNj.a, c4018bNj.c, c4018bNj.j, c4018bNj.e); } b2.j = vdw; b2.h = wwcVar.j; return b2; } }