package D;

import I0.AbstractC0303l;
import K.C0464l0;
import K.P0;
import T0.C0596g;
import V2.AbstractC0661f3;
import V2.C0636a3;
import V4.B0;
import V4.C0772m;
import V4.D0;
import a0.C0897f0;
import a0.H1;
import a0.I1;
import a0.N1;
import a0.Y1;
import a0.w2;
import a0.x2;
import a0.y2;
import a3.AbstractC0978q;
import a3.K;
import a3.Y;
import android.app.ActivityOptions;
import android.app.PendingIntent;
import android.app.RemoteAction;
import android.os.Build;
import android.util.Log;
import android.view.View;
import android.view.inputmethod.BaseInputConnection;
import android.view.inputmethod.InputMethodManager;
import androidx.compose.runtime.snapshots.SnapshotStateObserver;
import androidx.lifecycle.X;
import androidx.lifecycle.j0;
import androidx.media3.ui.SubtitleView;
import c0.AbstractC1225z;
import c0.C1224y;
import coil.decode.BitmapFactoryDecoder;
import coil.decode.SvgDecoder;
import d3.P;
import java.util.List;
import o0.C2632c;
import w4.C3137A;
import x.EnumC3207z0;

/* JADX INFO: renamed from: D.f, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C0135f implements J4.a {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final /* synthetic */ int f818a;

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

    public /* synthetic */ C0135f(Object obj, int i6) {
        this.f818a = i6;
        this.f819b = obj;
    }

    /* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:28:0x006f  */
    @Override // J4.a
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    public final Object invoke() {
        x2 x2Var;
        boolean z6;
        switch (this.f818a) {
            case 0:
                return Integer.valueOf(((H) this.f819b).i().f903n);
            case 1:
                Object obj = ((List) this.f819b).get(2);
                kotlin.jvm.internal.o.f(obj, "null cannot be cast to non-null type kotlin.Int");
                return (Integer) obj;
            case 2:
                return (C2632c) this.f819b;
            case 3:
                ((I.h) this.f819b).f2125D.invoke(Boolean.valueOf(!r0.f2124C));
                return C3137A.f25453a;
            case 4:
                return (C0596g) this.f819b;
            case 5:
                return ((C0464l0) this.f819b).d();
            case 6:
                return new P0((EnumC3207z0) this.f819b, 0.0f);
            case 7:
                return new h1.j(((h1.k) this.f819b).c());
            case 8:
                return ((R.e) this.f819b).M();
            case 9:
                ((N.g) this.f819b).close();
                return C3137A.f25453a;
            case 10:
                PendingIntent actionIntent = ((RemoteAction) this.f819b).getActionIntent();
                if (Build.VERSION.SDK_INT >= 34) {
                    try {
                        actionIntent.send(ActivityOptions.makeBasic().setPendingIntentBackgroundActivityStartMode(1).toBundle());
                    } catch (PendingIntent.CanceledException e6) {
                        Log.e("TextClassification", "error sending pendingIntent: " + actionIntent + " error: " + e6);
                    }
                    break;
                } else {
                    actionIntent.send();
                }
                return C3137A.f25453a;
            case 11:
                Q.l lVar = (Q.l) this.f819b;
                return lVar.isAttached() ? Q.i.b(lVar) : N.c.f5113b;
            case 12:
                return this.f819b;
            case 13:
                Object systemService = ((View) ((T.p) this.f819b).f6345b).getContext().getSystemService("input_method");
                kotlin.jvm.internal.o.f(systemService, "null cannot be cast to non-null type android.view.inputmethod.InputMethodManager");
                return (InputMethodManager) systemService;
            case 14:
                return new BaseInputConnection(((T.x) this.f819b).f6375a, false);
            case 15:
                ((D0) this.f819b).cancel(null);
                return C3137A.f25453a;
            case 16:
                U.i iVar = (U.i) this.f819b;
                iVar.f6800r = null;
                AbstractC0303l.t(iVar).D();
                AbstractC0303l.t(iVar).C();
                AbstractC0303l.k(iVar);
                return Boolean.TRUE;
            case 17:
                U.m mVar = (U.m) this.f819b;
                mVar.f6823n = null;
                AbstractC0303l.t(mVar).D();
                AbstractC0303l.t(mVar).C();
                AbstractC0303l.k(mVar);
                return Boolean.TRUE;
            case 18:
                AbstractC0303l.k((Z.a) this.f819b);
                return C3137A.f25453a;
            case 19:
                w2 w2Var = ((y2) this.f819b).f10353o;
                return Float.valueOf((w2Var == null || (x2Var = ((C0897f0) w2Var).f9856a) == null) ? 0.0f : x2Var.a());
            case 20:
                return new h1.f(W.b.r0(AbstractC1225z.f13387d, AbstractC1225z.f13388e, ((C1224y) this.f819b).invoke()));
            case 21:
                ((Boolean) ((H1) this.f819b).f9378m.getValue()).booleanValue();
                return C3137A.f25453a;
            case 22:
                C0772m c0772m = ((N1) ((I1) this.f819b)).f9570b;
                if (c0772m.isActive()) {
                    c0772m.resumeWith(Y1.f9704a);
                }
                return Boolean.TRUE;
            case 23:
                B0 b02 = ((K) this.f819b).f10564a;
                if (b02 != null) {
                    z6 = b02.isActive();
                }
                return Boolean.valueOf(z6);
            case 24:
                return Boolean.valueOf(AbstractC0978q.c((C0636a3) AbstractC0661f3.f7767d.getValue(), (Y) this.f819b));
            case 25:
                return SnapshotStateObserver.sendNotifications$lambda$0((SnapshotStateObserver) this.f819b);
            case 26:
                return X.g((j0) this.f819b);
            case 27:
                return BitmapFactoryDecoder.decode$lambda$1$lambda$0((BitmapFactoryDecoder) this.f819b);
            case 28:
                return SvgDecoder.decode$lambda$2((SvgDecoder) this.f819b);
            default:
                P p6 = (P) this.f819b;
                SubtitleView subtitleView = p6.f15276c;
                int height = subtitleView.getHeight();
                int i6 = p6.f15281h;
                if (height > 0) {
                    subtitleView.setBottomPaddingFraction(i6 > 0 ? L4.a.u(i6 / height, 0.0f, 1.0f) : 0.0f);
                }
                return C3137A.f25453a;
        }
    }
}
