package l0;

import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import h2.p0;
import java.util.List;

/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public final class b0 implements h2.e0 {

    /* renamed from: a, reason: collision with root package name */
    private final dn.a f26734a;

    /* loaded from: classes.dex */
    static final class a extends kotlin.jvm.internal.v implements dn.l {

        /* renamed from: p, reason: collision with root package name */
        final /* synthetic */ List f26735p;

        /* renamed from: q, reason: collision with root package name */
        final /* synthetic */ b0 f26736q;

        /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
        a(List list, b0 b0Var) {
            super(1);
            this.f26735p = list;
            this.f26736q = b0Var;
        }

        public final void a(p0.a aVar) {
            List i10;
            i10 = d.i(this.f26735p, this.f26736q.f26734a);
            if (i10 != null) {
                int size = i10.size();
                for (int i11 = 0; i11 < size; i11++) {
                    rm.v vVar = (rm.v) i10.get(i11);
                    h2.p0 p0Var = (h2.p0) vVar.a();
                    dn.a aVar2 = (dn.a) vVar.b();
                    p0.a.j(aVar, p0Var, aVar2 != null ? ((c3.n) aVar2.invoke()).n() : c3.n.f7423b.a(), BitmapDescriptorFactory.HUE_RED, 2, null);
                }
            }
        }

        @Override // dn.l
        public /* bridge */ /* synthetic */ Object invoke(Object obj) {
            a((p0.a) obj);
            return rm.n0.f34904a;
        }
    }

    public b0(dn.a aVar) {
        this.f26734a = aVar;
    }

    @Override // h2.e0
    public h2.f0 f(h2.g0 g0Var, List list, long j10) {
        return h2.g0.j0(g0Var, c3.b.l(j10), c3.b.k(j10), null, new a(list, this), 4, null);
    }
}
