正在查看: Perplexity v2.48.1 应用的 C2495m.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Perplexity v2.48.1 应用的 C2495m.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package c3;
import Ck.C0082h;
import Rj.C1382y;
import ai.perplexity.app.android.assistant.action.PermissionsActivity;
import ai.perplexity.app.android.assistant.settings.AssistantLockScreenSettingsActivity;
import android.content.Context;
import android.content.Intent;
import android.media.session.MediaController;
import android.net.Uri;
import android.os.Build;
import com.google.android.gms.internal.measurement.AbstractC2804t1;
import com.google.android.gms.internal.measurement.AbstractC2814v1;
import com.google.android.gms.internal.measurement.B1;
import com.google.android.gms.internal.measurement.W1;
import dn.C3087g;
import e.C3092d;
import e1.C3118c;
import e3.InterfaceC3162K;
import e3.InterfaceC3185s;
import g.AbstractC3678m;
import g.C3677l;
import gc.C3818f;
import i.C3979C;
import i.C3993b;
import i.C4000i;
import i2.C4049b;
import i2.C4051d;
import i2.C4061n;
import j.C4224a;
import java.util.Arrays;
import java.util.LinkedHashMap;
import java.util.Locale;
import jk.C4562i;
import jk.F1;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.internal.Intrinsics;
import kotlin.text.Regex;
import l0.C4856O;
import l0.EnumC4857P;
import om.InterfaceC5540D;
import org.webrtc.MediaStreamTrack;
import p1.C5621c;
import s.AbstractC6297a;
import t5.InterfaceC6532c0;
import u2.AbstractC6698a;
import u6.C6791a;
import um.C6898d;
public final class C2495m implements Function0 {
public final int f36767w;
public final Object f36768x;
public final Object f36769y;
public C2495m(int i10, Object obj, Object obj2) {
this.f36767w = i10;
this.f36768x = obj;
this.f36769y = obj2;
}
@Override
public final Object invoke() {
Object value;
Object value2;
C4061n c4061n;
C4856O c4856o;
int i10;
int i11 = 1;
Object obj = this.f36769y;
Object obj2 = this.f36768x;
switch (this.f36767w) {
case 0:
t5.a1 a1Var = (t5.a1) obj;
((Function3) obj2).invoke(((C2497n) a1Var.getValue()).f36774d, ((C2497n) a1Var.getValue()).f36775e, ((C2497n) a1Var.getValue()).f36772b);
return Unit.f52701a;
case 1:
((C5621c) obj2).a();
((InterfaceC6532c0) obj).setValue(i1.p.f47990l);
return Unit.f52701a;
case 2:
om.H.o((InterfaceC5540D) obj2, null, null, new F((U4.B) obj, null), 3);
return Unit.f52701a;
case 3:
((InterfaceC6532c0) obj).setValue(Boolean.TRUE);
((Hj.P) ((Qa.J) obj2).f20155y).invoke();
return Unit.f52701a;
case 4:
e0.J.w(((C0082h) obj2).f2291x);
((Function0) obj).invoke();
return Unit.f52701a;
case 5:
B1.x(((C0082h) obj2).f2291x);
((Function0) obj).invoke();
return Unit.f52701a;
case 6:
W9.u uVar = (W9.u) obj2;
AbstractC2804t1.A((Context) uVar.f27525x, (String) uVar.f27526y, "");
((Function0) obj).invoke();
return Unit.f52701a;
case 7:
W1.r(((J.d) obj2).f9083x);
((Function0) obj).invoke();
return Unit.f52701a;
case 8:
C0082h c0082h = (C0082h) obj2;
Function0 function0 = (Function0) obj;
Intent intent = new Intent("android.intent.action.VIEW");
intent.addFlags(268435456);
intent.setData(Uri.parse("https://perplexity.ai/assistant/capabilities"));
try {
c0082h.f2291x.startActivity(intent);
function0.invoke();
} catch (Exception e10) {
Jn.c.f10242a.j(e10, "[Perplexity Assistant] Could not open notification listener settings: %s", e10);
}
return Unit.f52701a;
case 9:
J.d dVar = (J.d) obj2;
Intent addFlags = new Intent(dVar.f9083x, (Class<?>) AssistantLockScreenSettingsActivity.class).addFlags(268435456);
Intrinsics.g(addFlags, "addFlags(...)");
dVar.f9083x.startActivity(addFlags);
((Function0) obj).invoke();
return Unit.f52701a;
case 10:
d.L0 l02 = (d.L0) obj2;
l02.f(((d.U0) obj).f40672a.a());
l02.f40612d.setValue(Boolean.TRUE);
return Unit.f52701a;
case 11:
Vc.e eVar = (Vc.e) obj2;
d.M0 m02 = (d.M0) eVar.f26901y;
V6.L l4 = m02.f40626c;
if (l4 == null) {
l4 = new V6.L(m02.f40624a);
m02.f40626c = l4;
}
if (l4.f26709b.areNotificationsEnabled() || Build.VERSION.SDK_INT < 33) {
Vc.e.g(eVar);
} else {
Function0 function02 = PermissionsActivity.f31784s0;
AbstractC2814v1.J((Context) eVar.f26900x, "android.permission.POST_NOTIFICATIONS", new C1382y(eVar, 16), new d.B0(i11), false, false);
}
((Function0) obj).invoke();
return Unit.f52701a;
case 12:
Dn.h.K(((C0082h) obj2).f2291x);
((Function0) obj).invoke();
return Unit.f52701a;
case 13:
e.x xVar = (e.x) obj;
Dn.h.L((C3092d) obj2, xVar.f41387c);
qm.h hVar = xVar.f41391g;
Unit unit = Unit.f52701a;
hVar.m(unit);
return unit;
case 14:
((InterfaceC6532c0) obj2).setValue(Boolean.FALSE);
((C3818f) obj).b();
return Unit.f52701a;
case 15:
((Ok.t) obj2).w0("query_progress", (C3118c) obj);
Jn.c.f10242a.b("Done with request", new Object[0]);
return Unit.f52701a;
case 16:
((Ok.t) obj2).w0(MediaStreamTrack.AUDIO_TRACK_KIND, (e1.p0) obj);
Jn.c.f10242a.b("Done with tts request", new Object[0]);
return Unit.f52701a;
case 17:
Context context = (Context) obj2;
Intrinsics.h(context, "context");
InterfaceC3162K charsAndDurationsListener = (InterfaceC3162K) obj;
Intrinsics.h(charsAndDurationsListener, "charsAndDurationsListener");
b.k kVar = ((b.i) ((b.l) ((InterfaceC3185s) Ce.b.F(context, InterfaceC3185s.class))).f34144U1.get()).f34042a;
return new e3.r(charsAndDurationsListener, (e1.s0) kVar.f34044a.f34134S1.get(), (e1.o0) kVar.f34044a.f34139T1.get(), AbstractC6297a.a());
case 18:
Ce.b.J(((J.d) obj2).f9083x);
((Function0) obj).invoke();
return Unit.f52701a;
case 19:
((f.v) obj2).k((f.i) obj);
return Unit.f52701a;
case 20:
((C3677l) obj2).e((String) obj, "com.spotify.music");
return Unit.f52701a;
case 21:
ek.F f4 = (ek.F) obj2;
AbstractC3678m.p((Context) f4.f43442y, (String) f4.f43441x);
((Function0) obj).invoke();
return Unit.f52701a;
case 22:
MediaController mediaController = (MediaController) obj2;
g.U u10 = (g.U) obj;
try {
int i12 = Result.f52682x;
mediaController.unregisterCallback(u10);
Unit unit2 = Unit.f52701a;
} catch (Throwable th2) {
int i13 = Result.f52682x;
ResultKt.a(th2);
}
return Unit.f52701a;
case 23:
Regex.Companion companion = Regex.f55861x;
return ((Regex) obj2).a((CharSequence) obj);
case 24:
rm.M0 m03 = ((C3979C) obj2).f47579G0;
do {
value = m03.getValue();
} while (!m03.i(value, C3993b.a((C3993b) value, null, false, false, 0.0f, false, null, null, null, false, null, null, null, null, null, null, false, false, false, false, null, false, false, false, false, false, false, false, false, -1610612737)));
C3979C c3979c = ((C4000i) obj).f47760c;
if (((C3993b) c3979c.f47579G0.getValue()).f47699A) {
c3979c.u();
}
return Unit.f52701a;
case 25:
InterfaceC6532c0 interfaceC6532c0 = (InterfaceC6532c0) obj;
String frontendUuid = ((C4061n) interfaceC6532c0.getValue()).f48047b;
String backendUuid = ((C4061n) interfaceC6532c0.getValue()).f48048c;
i1 i1Var = (i1) obj2;
i1Var.getClass();
Intrinsics.h(frontendUuid, "frontendUuid");
Intrinsics.h(backendUuid, "backendUuid");
Ha.a aVar = i1Var.f36580A0;
aVar.getClass();
Intrinsics.h(frontendUuid, "frontendUuid");
Intrinsics.h(backendUuid, "backendUuid");
C4049b c4049b = (C4049b) ((LinkedHashMap) aVar.f7340X).get(backendUuid);
if (c4049b != null) {
rm.M0 m04 = (rm.M0) aVar.f7344z;
if (Intrinsics.c(((C4061n) m04.getValue()).f48047b, c4049b.f48006a)) {
C4856O c4856o2 = c4049b.f48011f;
if (c4856o2.f56079b == EnumC4857P.f56088w) {
do {
value2 = m04.getValue();
c4061n = (C4061n) value2;
c4856o = c4061n.f48049d;
i10 = c4856o2.f56080c;
} while (!m04.i(value2, C4061n.b(c4061n, C4856O.b(c4856o, null, i10 == 0 ? EnumC4857P.f56089x : EnumC4857P.f56090y, 5), 7)));
om.H.o((C6898d) aVar.f7343y, null, null, new C4051d(aVar, c4049b, i10, null), 3);
}
}
}
return Unit.f52701a;
case 26:
((Ok.t) obj2).w0("assistant_progress", (C4224a) obj);
Jn.c.f10242a.b("Done with request", new Object[0]);
return Unit.f52701a;
case 27:
C3087g c3087g = (C3087g) obj2;
if (c3087g != null) {
((j.t) obj).getClass();
c3087g.b(1000, "Normal closure");
}
return Unit.f52701a;
case 28:
((C4562i) obj2).getClass();
C6791a c10 = u6.c.f68124a.q().c();
String language = c10.f68120a.getLanguage();
Locale locale = Locale.ROOT;
String lowerCase = language.toLowerCase(locale);
Intrinsics.g(lowerCase, "toLowerCase(...)");
String upperCase = c10.f68120a.getCountry().toUpperCase(locale);
Intrinsics.g(upperCase, "toUpperCase(...)");
((Context) obj).startActivity(new Intent("android.intent.action.VIEW", Uri.parse(String.format("https://static.afterpay.com/modal/%s.html", Arrays.copyOf(new Object[]{AbstractC6698a.g(lowerCase, "_", upperCase)}, 1)))));
return Unit.f52701a;
default:
return F1.b((E3.k) obj2, (String) obj);
}
}
public C2495m(g.V v2, MediaController mediaController, g.U u10) {
this.f36767w = 22;
this.f36768x = mediaController;
this.f36769y = u10;
}
}