ChatOn v1.35.366360版本的 MD5 值为:cde28447b38d5467efa95e48e7076155
以下内容为反编译后的 a.java 源代码,内容仅作参考
package com.aiby.lib_open_ai.di;
import b8.b;
import jk.g0;
import kotlin.Unit;
import kotlin.collections.EmptyList;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.Intrinsics;
import org.koin.core.definition.Kind;
import p8.f;
import retrofit2.Retrofit;
import vk.f0;
import vk.z;
import wh.h;
import wh.i;
public abstract class a {
public static final fm.a f5287a = pk.a.i(new Function1<fm.a, Unit>() {
@Override
public final Object invoke(Object obj) {
fm.a module = (fm.a) obj;
Intrinsics.checkNotNullParameter(module, "$this$module");
AnonymousClass1 anonymousClass1 = new Function2<org.koin.core.scope.a, gm.a, Retrofit>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
i iVar = h.f20832a;
f0 okHttpClient = (f0) single.b(null, iVar.b(f0.class), null);
b bVar = (b) ((a8.b) single.b(null, iVar.b(a8.b.class), null));
Intrinsics.checkNotNullParameter("https://api.chaton.ai", "defaultBaseUrl");
Intrinsics.checkNotNullParameter(okHttpClient, "okHttpClient");
Retrofit build = new Retrofit.Builder().baseUrl("https://api.chaton.ai").client(okHttpClient).addCallAdapterFactory(bVar.f1762c).addConverterFactory(bVar.f1761b).addConverterFactory(bVar.f1760a).build();
Intrinsics.checkNotNullExpressionValue(build, "build(...)");
return build;
}
};
hm.b bVar = im.a.f12984e;
Kind kind = Kind.f17832d;
EmptyList emptyList = EmptyList.f14040d;
i iVar = h.f20832a;
org.koin.core.definition.a beanDefinition = new org.koin.core.definition.a(bVar, iVar.b(Retrofit.class), anonymousClass1, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition, "beanDefinition");
?? factory = new dm.b(beanDefinition);
module.a(factory);
boolean z8 = module.f10637a;
if (z8) {
module.b(factory);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory, "factory");
org.koin.core.definition.a beanDefinition2 = new org.koin.core.definition.a(bVar, iVar.b(f0.class), new Function2<org.koin.core.scope.a, gm.a, f0>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
i iVar2 = h.f20832a;
return ((b8.a) ((a8.a) single.b(null, iVar2.b(a8.a.class), null))).a((z) single.b(null, iVar2.b(i8.a.class), null), (z) single.b(null, iVar2.b(i8.b.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition2, "beanDefinition");
?? factory2 = new dm.b(beanDefinition2);
module.a(factory2);
if (z8) {
module.b(factory2);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory2, "factory");
org.koin.core.definition.a beanDefinition3 = new org.koin.core.definition.a(bVar, iVar.b(g8.a.class), new Function2<org.koin.core.scope.a, gm.a, g8.a>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
f0 okHttpClient = (f0) single.b(null, h.f20832a.b(f0.class), null);
Intrinsics.checkNotNullParameter(okHttpClient, "okHttpClient");
return new Object();
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition3, "beanDefinition");
?? factory3 = new dm.b(beanDefinition3);
module.a(factory3);
if (z8) {
module.b(factory3);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory3, "factory");
org.koin.core.definition.a beanDefinition4 = new org.koin.core.definition.a(bVar, iVar.b(i8.b.class), new Function2<org.koin.core.scope.a, gm.a, i8.b>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
i iVar2 = h.f20832a;
return new i8.b((o8.a) single.b(null, iVar2.b(o8.a.class), null), (f) single.b(null, iVar2.b(f.class), null), (u8.a) single.b(null, iVar2.b(u8.a.class), null), (o8.b) single.b(null, iVar2.b(o8.b.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition4, "beanDefinition");
?? factory4 = new dm.b(beanDefinition4);
module.a(factory4);
if (z8) {
module.b(factory4);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory4, "factory");
org.koin.core.definition.a beanDefinition5 = new org.koin.core.definition.a(bVar, iVar.b(i8.a.class), new Function2<org.koin.core.scope.a, gm.a, i8.a>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
h8.a apiEnvProvider = (h8.a) single.b(null, h.f20832a.b(h8.a.class), null);
Intrinsics.checkNotNullParameter(apiEnvProvider, "apiEnvProvider");
return new Object();
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition5, "beanDefinition");
?? factory5 = new dm.b(beanDefinition5);
module.a(factory5);
if (z8) {
module.b(factory5);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory5, "factory");
org.koin.core.definition.a beanDefinition6 = new org.koin.core.definition.a(bVar, iVar.b(h8.a.class), new Function2<org.koin.core.scope.a, gm.a, h8.a>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
return new h8.a((u8.a) single.b(null, h.f20832a.b(u8.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition6, "beanDefinition");
?? factory6 = new dm.b(beanDefinition6);
module.a(factory6);
if (z8) {
module.b(factory6);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory6, "factory");
org.koin.core.definition.a beanDefinition7 = new org.koin.core.definition.a(bVar, iVar.b(j8.a.class), new Function2<org.koin.core.scope.a, gm.a, j8.a>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
return new j8.a((u8.a) single.b(null, h.f20832a.b(u8.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition7, "beanDefinition");
?? factory7 = new dm.b(beanDefinition7);
module.a(factory7);
if (z8) {
module.b(factory7);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory7, "factory");
org.koin.core.definition.a beanDefinition8 = new org.koin.core.definition.a(bVar, iVar.b(f8.a.class), new Function2<org.koin.core.scope.a, gm.a, f8.a>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
Object create = ((Retrofit) single.b(null, h.f20832a.b(Retrofit.class), null)).create(f8.a.class);
Intrinsics.checkNotNullExpressionValue(create, "create(...)");
return (f8.a) create;
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition8, "beanDefinition");
?? factory8 = new dm.b(beanDefinition8);
module.a(factory8);
if (z8) {
module.b(factory8);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory8, "factory");
org.koin.core.definition.a beanDefinition9 = new org.koin.core.definition.a(bVar, iVar.b(com.aiby.lib_open_ai.client.i.class), new Function2<org.koin.core.scope.a, gm.a, com.aiby.lib_open_ai.client.i>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
i iVar2 = h.f20832a;
return new com.aiby.lib_open_ai.client.impl.a((f8.a) single.b(null, iVar2.b(f8.a.class), null), (o8.a) single.b(null, iVar2.b(o8.a.class), null), (j8.a) single.b(null, iVar2.b(j8.a.class), null));
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition9, "beanDefinition");
?? factory9 = new dm.b(beanDefinition9);
module.a(factory9);
if (z8) {
module.b(factory9);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory9, "factory");
org.koin.core.definition.a beanDefinition10 = new org.koin.core.definition.a(bVar, iVar.b(k8.a.class), new Function2<org.koin.core.scope.a, gm.a, k8.a>() {
@Override
public final Object invoke(Object obj2, Object obj3) {
org.koin.core.scope.a single = (org.koin.core.scope.a) obj2;
gm.a it = (gm.a) obj3;
Intrinsics.checkNotNullParameter(single, "$this$single");
Intrinsics.checkNotNullParameter(it, "it");
return new com.aiby.lib_open_ai.tokens.impl.a(g0.f13627b);
}
}, kind, emptyList);
Intrinsics.checkNotNullParameter(beanDefinition10, "beanDefinition");
?? factory10 = new dm.b(beanDefinition10);
module.a(factory10);
if (z8) {
module.b(factory10);
}
Intrinsics.checkNotNullParameter(module, "module");
Intrinsics.checkNotNullParameter(factory10, "factory");
return Unit.f14034a;
}
});
}