package Q;

import E3.v;
import G0.InterfaceC0279y;
import o0.C2632c;

/* JADX INFO: loaded from: classes.dex */
public final class f implements R.e {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final long f5696a;

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final /* synthetic */ h f5697b;

    public f(h hVar, long j4) {
        this.f5697b = hVar;
        this.f5696a = j4;
    }

    @Override // R.e
    public final N.c M() {
        return i.b(this.f5697b);
    }

    @Override // R.e
    public final C2632c m0(InterfaceC0279y interfaceC0279y) {
        return m1.g.b(s0(interfaceC0279y), 0L);
    }

    @Override // R.e
    public final long s0(InterfaceC0279y interfaceC0279y) {
        InterfaceC0279y interfaceC0279y2 = (InterfaceC0279y) this.f5697b.f5704d.getValue();
        if (interfaceC0279y2 != null) {
            return interfaceC0279y.f0(interfaceC0279y2, this.f5696a);
        }
        A.b.d("Tried to open context menu before the anchor was placed.");
        throw new v();
    }
}
