package h3;

import android.webkit.WebView;
import androidx.compose.runtime.snapshots.SnapshotStateObserver;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import o0.C2631b;
import org.json.JSONObject;
import q.C2764a0;
import q.C2784k0;
import q.C2791o;
import q.C2793p;
import r0.InterfaceC2866e;
import w4.C3137A;

/* JADX INFO: renamed from: h3.o4, reason: case insensitive filesystem */
/* JADX INFO: loaded from: classes.dex */
public final /* synthetic */ class C2167o4 implements J4.c {

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

    public /* synthetic */ C2167o4(int i6) {
        this.f18368a = i6;
    }

    /* JADX WARN: Type inference failed for: r2v11, types: [java.lang.Object, w4.h] */
    @Override // J4.c
    public final Object invoke(Object obj) throws Throwable {
        switch (this.f18368a) {
            case 0:
                WebView webView = (WebView) obj;
                kotlin.jvm.internal.o.h(webView, "webView");
                webView.removeJavascriptInterface("TrailerBridge");
                webView.stopLoading();
                webView.onPause();
                webView.loadUrl("about:blank");
                webView.removeAllViews();
                webView.destroy();
                return C3137A.f25453a;
            case 1:
                List it = (List) obj;
                kotlin.jvm.internal.o.h(it, "it");
                Object obj2 = it.get(0);
                kotlin.jvm.internal.o.f(obj2, "null cannot be cast to non-null type kotlin.Int");
                int iIntValue = ((Integer) obj2).intValue();
                Object obj3 = it.get(1);
                kotlin.jvm.internal.o.f(obj3, "null cannot be cast to non-null type kotlin.Int");
                return new D.H(iIntValue, ((Integer) obj3).intValue());
            case 2:
                InterfaceC2866e drawBehind = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind, "$this$drawBehind");
                InterfaceC2866e.E(drawBehind, n5.f18250C, 0L, 0L, 0.0f, null, 126);
                return C3137A.f25453a;
            case 3:
                InterfaceC2866e drawBehind2 = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind2, "$this$drawBehind");
                InterfaceC2866e.E(drawBehind2, n5.f18252D, 0L, 0L, 0.0f, null, 126);
                return C3137A.f25453a;
            case 4:
                InterfaceC2866e drawBehind3 = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind3, "$this$drawBehind");
                InterfaceC2866e.C(drawBehind3, n5.f18269N, 0L, 0L, 0.0f, 126);
                return C3137A.f25453a;
            case 5:
                InterfaceC2866e drawBehind4 = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind4, "$this$drawBehind");
                InterfaceC2866e.C(drawBehind4, n5.f18271O, 0L, 0L, 0.0f, 126);
                return C3137A.f25453a;
            case 6:
                InterfaceC2866e drawBehind5 = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind5, "$this$drawBehind");
                InterfaceC2866e.E(drawBehind5, n5.f18255F, 0L, 0L, 0.0f, null, 126);
                return C3137A.f25453a;
            case 7:
                InterfaceC2866e drawBehind6 = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind6, "$this$drawBehind");
                InterfaceC2866e.E(drawBehind6, n5.f18255F, 0L, 0L, 0.0f, null, 126);
                return C3137A.f25453a;
            case 8:
                InterfaceC2866e drawBehind7 = (InterfaceC2866e) obj;
                kotlin.jvm.internal.o.h(drawBehind7, "$this$drawBehind");
                InterfaceC2866e.E(drawBehind7, n5.f18254E, 0L, 0L, 0.0f, null, 126);
                return C3137A.f25453a;
            case 9:
                ((Integer) obj).getClass();
                return 1;
            case 10:
                Map.Entry entry = (Map.Entry) obj;
                int iIntValue2 = ((Number) entry.getKey()).intValue();
                JSONObject jSONObject = (JSONObject) entry.getValue();
                JSONObject jSONObjectOptJSONObject = jSONObject.optJSONObject("show");
                JSONObject jSONObjectOptJSONObject2 = jSONObject.optJSONObject("episode");
                return "tv:" + iIntValue2 + " " + (jSONObjectOptJSONObject != null ? jSONObjectOptJSONObject.optString("title") : null) + " S" + (jSONObjectOptJSONObject2 != null ? Integer.valueOf(jSONObjectOptJSONObject2.optInt("season")) : null) + "E" + (jSONObjectOptJSONObject2 != null ? Integer.valueOf(jSONObjectOptJSONObject2.optInt("number")) : null) + " " + ((int) jSONObject.optDouble("progress")) + "% paused=" + jSONObject.optString("paused_at");
            case 11:
                return ConcurrentHashMap.newKeySet();
            case 12:
                kotlin.jvm.internal.o.h((i5.a) obj, "<this>");
                return C3137A.f25453a;
            case 13:
                i5.a buildSerialDescriptor = (i5.a) obj;
                kotlin.jvm.internal.o.h(buildSerialDescriptor, "$this$buildSerialDescriptor");
                buildSerialDescriptor.a("JsonPrimitive", new l5.p(new C2144l(25)));
                buildSerialDescriptor.a("JsonNull", new l5.p(new C2144l(26)));
                buildSerialDescriptor.a("JsonLiteral", new l5.p(new C2144l(27)));
                buildSerialDescriptor.a("JsonObject", new l5.p(new C2144l(28)));
                buildSerialDescriptor.a("JsonArray", new l5.p(new C2144l(29)));
                return C3137A.f25453a;
            case 14:
                Map.Entry entry2 = (Map.Entry) obj;
                kotlin.jvm.internal.o.h(entry2, "<destruct>");
                String str = (String) entry2.getKey();
                l5.m mVar = (l5.m) entry2.getValue();
                StringBuilder sb = new StringBuilder();
                m5.z.a(str, sb);
                sb.append(':');
                sb.append(mVar);
                String string = sb.toString();
                kotlin.jvm.internal.o.g(string, "toString(...)");
                return string;
            case 15:
                return C3137A.f25453a;
            case 16:
                C2784k0 c2784k0 = (C2784k0) obj;
                long j4 = c2784k0.f23366f;
                ((SnapshotStateObserver) q.E0.f23160b.getValue()).observeReads(c2784k0, q.E0.f23159a, c2784k0.f23367g);
                long j6 = c2784k0.f23366f;
                if (j4 != j6) {
                    C2764a0 c2764a0 = c2784k0.f23373n;
                    if (c2764a0 != null) {
                        if (c2764a0.f23263a > j6) {
                            c2784k0.s();
                        } else {
                            c2764a0.f23269g = j6;
                            if (c2764a0.f23264b == null) {
                                c2764a0.f23270h = L4.a.e0((1.0d - ((double) c2764a0.f23267e.a(0))) * c2784k0.f23366f);
                            }
                        }
                    } else if (j6 != 0) {
                        c2784k0.v();
                    }
                }
                return C3137A.f25453a;
            case 17:
                ((J4.a) obj).invoke();
                return C3137A.f25453a;
            case 18:
                return new C2791o(((Float) obj).floatValue());
            case 19:
                return new C2791o(((Integer) obj).intValue());
            case 20:
                return Integer.valueOf((int) ((C2791o) obj).f23398a);
            case 21:
                return new C2791o(((h1.f) obj).f16618a);
            case 22:
                return new h1.f(((C2791o) obj).f23398a);
            case 23:
                h1.g gVar = (h1.g) obj;
                return new C2793p(Float.intBitsToFloat((int) (gVar.f16619a >> 32)), Float.intBitsToFloat((int) (4294967295L & gVar.f16619a)));
            case 24:
                C2793p c2793p = (C2793p) obj;
                return new h1.g((((long) Float.floatToRawIntBits(c2793p.f23401a)) << 32) | (((long) Float.floatToRawIntBits(c2793p.f23402b)) & 4294967295L));
            case 25:
                o0.e eVar = (o0.e) obj;
                return new C2793p(Float.intBitsToFloat((int) (eVar.f21799a >> 32)), Float.intBitsToFloat((int) (4294967295L & eVar.f21799a)));
            case 26:
                C2793p c2793p2 = (C2793p) obj;
                return new o0.e((((long) Float.floatToRawIntBits(c2793p2.f23401a)) << 32) | (((long) Float.floatToRawIntBits(c2793p2.f23402b)) & 4294967295L));
            case 27:
                C2631b c2631b = (C2631b) obj;
                return new C2793p(Float.intBitsToFloat((int) (c2631b.f21785a >> 32)), Float.intBitsToFloat((int) (4294967295L & c2631b.f21785a)));
            case 28:
                C2793p c2793p3 = (C2793p) obj;
                return new C2631b((((long) Float.floatToRawIntBits(c2793p3.f23401a)) << 32) | (((long) Float.floatToRawIntBits(c2793p3.f23402b)) & 4294967295L));
            default:
                long j7 = ((h1.j) obj).f16621a;
                return new C2793p((int) (j7 >> 32), (int) (j7 & 4294967295L));
        }
    }
}
