package g0;

import g0.d;

/* loaded from: classes.dex */
public abstract class o {

    /* loaded from: classes.dex */
    public interface a {

        /* JADX INFO: Access modifiers changed from: package-private */
        /* renamed from: g0.o$a$a, reason: collision with other inner class name */
        /* loaded from: classes.dex */
        public static final class C0420a extends kotlin.jvm.internal.v implements dn.l {

            /* renamed from: p, reason: collision with root package name */
            public static final C0420a f18963p = new C0420a();

            C0420a() {
                super(1);
            }

            public final Void a(int i10) {
                return null;
            }

            @Override // dn.l
            public /* bridge */ /* synthetic */ Object invoke(Object obj) {
                return a(((Number) obj).intValue());
            }
        }

        dn.l getKey();

        default dn.l getType() {
            return C0420a.f18963p;
        }
    }

    public final Object d(int i10) {
        d.a aVar = e().get(i10);
        return ((a) aVar.c()).getType().invoke(Integer.valueOf(i10 - aVar.b()));
    }

    public abstract d e();

    public final int f() {
        return e().a();
    }

    public final Object g(int i10) {
        Object invoke;
        d.a aVar = e().get(i10);
        int b10 = i10 - aVar.b();
        dn.l key = ((a) aVar.c()).getKey();
        return (key == null || (invoke = key.invoke(Integer.valueOf(b10))) == null) ? h0.a(i10) : invoke;
    }
}
