Initial import of ADIF API reverse-engineering toolkit

This commit is contained in:
dasemu committed 2025-12-16 08:37:56 +01:00
commit 60388529c1
11486 files changed
+1086536

No files matched your search

@@ -0,0 +1,47 @@
package kotlin.reflect;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.Type;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
/* JADX INFO: Access modifiers changed from: package-private */
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0003\u0018\u00002\u00020\u00012\u00020\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u0013\u0010\u0006\u001a\u00020\u00072\b\u0010\b\u001a\u0004\u0018\u00010\tH\u0096\u0002J\b\u0010\n\u001a\u00020\u0004H\u0016J\b\u0010\u000b\u001a\u00020\fH\u0016J\b\u0010\r\u001a\u00020\u000eH\u0016J\b\u0010\u000f\u001a\u00020\fH\u0016R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0010"}, d2 = {"Lkotlin/reflect/GenericArrayTypeImpl;", "Ljava/lang/reflect/GenericArrayType;", "Lkotlin/reflect/TypeImpl;", "elementType", "Ljava/lang/reflect/Type;", "(Ljava/lang/reflect/Type;)V", "equals", "", "other", "", "getGenericComponentType", "getTypeName", "", "hashCode", "", "toString", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
@ExperimentalStdlibApi
/* loaded from: classes3.dex */
public final class GenericArrayTypeImpl implements GenericArrayType, TypeImpl {
private final Type elementType;
public GenericArrayTypeImpl(Type elementType) {
Intrinsics.checkNotNullParameter(elementType, "elementType");
this.elementType = elementType;
}
public boolean equals(Object other) {
return (other instanceof GenericArrayType) && Intrinsics.areEqual(getGenericComponentType(), ((GenericArrayType) other).getGenericComponentType());
}
@Override // java.lang.reflect.GenericArrayType
public Type getGenericComponentType() {
return this.elementType;
}
@Override // java.lang.reflect.Type, kotlin.reflect.TypeImpl
public String getTypeName() {
String typeToString;
StringBuilder sb = new StringBuilder();
typeToString = TypesJVMKt.typeToString(this.elementType);
sb.append(typeToString);
sb.append("[]");
return sb.toString();
}
public int hashCode() {
return getGenericComponentType().hashCode();
}
public String toString() {
return getTypeName();
}
}
@@ -0,0 +1,11 @@
package kotlin.reflect;
import java.lang.annotation.Annotation;
import java.util.List;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\u0003\bf\u0018\u00002\u00020\u0001R\u0018\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/KAnnotatedElement;", "", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KAnnotatedElement {
List<Annotation> getAnnotations();
}
@@ -0,0 +1,74 @@
package kotlin.reflect;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.dynamiclinks.DynamicLink;
import java.util.List;
import java.util.Map;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.internal.IntrinsicConstEvaluation;
@Metadata(d1 = {"\u0000T\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\n\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0002\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\u00020\u0002J%\u0010'\u001a\u00028\u00002\u0016\u0010(\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010*0)\"\u0004\u0018\u00010*H&¢\u0006\u0002\u0010+J#\u0010,\u001a\u00028\u00002\u0014\u0010(\u001a\u0010\u0012\u0004\u0012\u00020\u0015\u0012\u0006\u0012\u0004\u0018\u00010*0-H&¢\u0006\u0002\u0010.R\u001a\u0010\u0003\u001a\u00020\u00048&X§\u0004¢\u0006\f\u0012\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0003\u0010\u0007R\u001a\u0010\b\u001a\u00020\u00048&X§\u0004¢\u0006\f\u0012\u0004\b\t\u0010\u0006\u001a\u0004\b\b\u0010\u0007R\u001a\u0010\n\u001a\u00020\u00048&X§\u0004¢\u0006\f\u0012\u0004\b\u000b\u0010\u0006\u001a\u0004\b\n\u0010\u0007R\u001a\u0010\f\u001a\u00020\u00048&X§\u0004¢\u0006\f\u0012\u0004\b\r\u0010\u0006\u001a\u0004\b\f\u0010\u0007R\u001a\u0010\u000e\u001a\u00020\u000f8&X§\u0004¢\u0006\f\u0012\u0004\b\u0010\u0010\u0006\u001a\u0004\b\u0011\u0010\u0012R\u001e\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00150\u0014X¦\u0004¢\u0006\f\u0012\u0004\b\u0016\u0010\u0006\u001a\u0004\b\u0017\u0010\u0018R\u0018\u0010\u0019\u001a\u00020\u001aX¦\u0004¢\u0006\f\u0012\u0004\b\u001b\u0010\u0006\u001a\u0004\b\u001c\u0010\u001dR \u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\u001f0\u00148&X§\u0004¢\u0006\f\u0012\u0004\b \u0010\u0006\u001a\u0004\b!\u0010\u0018R\u001c\u0010\"\u001a\u0004\u0018\u00010#8&X§\u0004¢\u0006\f\u0012\u0004\b$\u0010\u0006\u001a\u0004\b%\u0010&¨\u0006/"}, d2 = {"Lkotlin/reflect/KCallable;", "R", "Lkotlin/reflect/KAnnotatedElement;", "isAbstract", "", "isAbstract$annotations", "()V", "()Z", "isFinal", "isFinal$annotations", "isOpen", "isOpen$annotations", "isSuspend", "isSuspend$annotations", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName$annotations", "getName", "()Ljava/lang/String;", DynamicLink.Builder.KEY_DYNAMIC_LINK_PARAMETERS, "", "Lkotlin/reflect/KParameter;", "getParameters$annotations", "getParameters", "()Ljava/util/List;", "returnType", "Lkotlin/reflect/KType;", "getReturnType$annotations", "getReturnType", "()Lkotlin/reflect/KType;", "typeParameters", "Lkotlin/reflect/KTypeParameter;", "getTypeParameters$annotations", "getTypeParameters", "visibility", "Lkotlin/reflect/KVisibility;", "getVisibility$annotations", "getVisibility", "()Lkotlin/reflect/KVisibility;", "call", "args", "", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "callBy", "", "(Ljava/util/Map;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KCallable<R> extends KAnnotatedElement {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
@IntrinsicConstEvaluation
public static /* synthetic */ void getName$annotations() {
}
public static /* synthetic */ void getParameters$annotations() {
}
public static /* synthetic */ void getReturnType$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getTypeParameters$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getVisibility$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isAbstract$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isFinal$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isOpen$annotations() {
}
@SinceKotlin(version = "1.3")
public static /* synthetic */ void isSuspend$annotations() {
}
}
R call(Object... args);
R callBy(Map<KParameter, ? extends Object> args);
String getName();
List<KParameter> getParameters();
KType getReturnType();
List<KTypeParameter> getTypeParameters();
KVisibility getVisibility();
boolean isAbstract();
boolean isFinal();
boolean isOpen();
boolean isSuspend();
}
@@ -0,0 +1,125 @@
package kotlin.reflect;
import java.util.Collection;
import java.util.List;
import kotlin.Metadata;
import kotlin.SinceKotlin;
@Metadata(d1 = {"\u0000d\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0013\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\b\n\u0002\b\u0003\bf\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u00022\u00020\u00032\u00020\u00042\u00020\u0005J\u0013\u0010D\u001a\u00020\u000e2\b\u0010E\u001a\u0004\u0018\u00010\u0002H¦\u0002J\b\u0010F\u001a\u00020GH&J\u0012\u0010H\u001a\u00020\u000e2\b\u0010I\u001a\u0004\u0018\u00010\u0002H'R$\u0010\u0006\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\b0\u0007X¦\u0004¢\u0006\f\u0012\u0004\b\t\u0010\n\u001a\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u000f\u0010\n\u001a\u0004\b\r\u0010\u0010R\u001a\u0010\u0011\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u0012\u0010\n\u001a\u0004\b\u0011\u0010\u0010R\u001a\u0010\u0013\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u0014\u0010\n\u001a\u0004\b\u0013\u0010\u0010R\u001a\u0010\u0015\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u0016\u0010\n\u001a\u0004\b\u0015\u0010\u0010R\u001a\u0010\u0017\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u0018\u0010\n\u001a\u0004\b\u0017\u0010\u0010R\u001a\u0010\u0019\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u001a\u0010\n\u001a\u0004\b\u0019\u0010\u0010R\u001a\u0010\u001b\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u001c\u0010\n\u001a\u0004\b\u001b\u0010\u0010R\u001a\u0010\u001d\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b\u001e\u0010\n\u001a\u0004\b\u001d\u0010\u0010R\u001a\u0010\u001f\u001a\u00020\u000e8&X§\u0004¢\u0006\f\u0012\u0004\b \u0010\n\u001a\u0004\b\u001f\u0010\u0010R\"\u0010!\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\"0\u0007X¦\u0004¢\u0006\f\u0012\u0004\b#\u0010\n\u001a\u0004\b$\u0010\fR\"\u0010%\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00000\u0007X¦\u0004¢\u0006\f\u0012\u0004\b&\u0010\n\u001a\u0004\b'\u0010\fR\u001a\u0010(\u001a\u0004\u0018\u00018\u0000X¦\u0004¢\u0006\f\u0012\u0004\b)\u0010\n\u001a\u0004\b*\u0010+R\u0014\u0010,\u001a\u0004\u0018\u00010-X¦\u0004¢\u0006\u0006\u001a\u0004\b.\u0010/R(\u00100\u001a\u0010\u0012\f\u0012\n\u0012\u0006\b\u0001\u0012\u00028\u00000\u0000018&X§\u0004¢\u0006\f\u0012\u0004\b2\u0010\n\u001a\u0004\b3\u00104R\u0014\u00105\u001a\u0004\u0018\u00010-X¦\u0004¢\u0006\u0006\u001a\u0004\b6\u0010/R \u00107\u001a\b\u0012\u0004\u0012\u000208018&X§\u0004¢\u0006\f\u0012\u0004\b9\u0010\n\u001a\u0004\b:\u00104R \u0010;\u001a\b\u0012\u0004\u0012\u00020<018&X§\u0004¢\u0006\f\u0012\u0004\b=\u0010\n\u001a\u0004\b>\u00104R\u001c\u0010?\u001a\u0004\u0018\u00010@8&X§\u0004¢\u0006\f\u0012\u0004\bA\u0010\n\u001a\u0004\bB\u0010C¨\u0006J"}, d2 = {"Lkotlin/reflect/KClass;", "T", "", "Lkotlin/reflect/KDeclarationContainer;", "Lkotlin/reflect/KAnnotatedElement;", "Lkotlin/reflect/KClassifier;", "constructors", "", "Lkotlin/reflect/KFunction;", "getConstructors$annotations", "()V", "getConstructors", "()Ljava/util/Collection;", "isAbstract", "", "isAbstract$annotations", "()Z", "isCompanion", "isCompanion$annotations", "isData", "isData$annotations", "isFinal", "isFinal$annotations", "isFun", "isFun$annotations", "isInner", "isInner$annotations", "isOpen", "isOpen$annotations", "isSealed", "isSealed$annotations", "isValue", "isValue$annotations", "members", "Lkotlin/reflect/KCallable;", "getMembers$annotations", "getMembers", "nestedClasses", "getNestedClasses$annotations", "getNestedClasses", "objectInstance", "getObjectInstance$annotations", "getObjectInstance", "()Ljava/lang/Object;", "qualifiedName", "", "getQualifiedName", "()Ljava/lang/String;", "sealedSubclasses", "", "getSealedSubclasses$annotations", "getSealedSubclasses", "()Ljava/util/List;", "simpleName", "getSimpleName", "supertypes", "Lkotlin/reflect/KType;", "getSupertypes$annotations", "getSupertypes", "typeParameters", "Lkotlin/reflect/KTypeParameter;", "getTypeParameters$annotations", "getTypeParameters", "visibility", "Lkotlin/reflect/KVisibility;", "getVisibility$annotations", "getVisibility", "()Lkotlin/reflect/KVisibility;", "equals", "other", "hashCode", "", "isInstance", "value", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KClass<T> extends KDeclarationContainer, KAnnotatedElement, KClassifier {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getConstructors$annotations() {
}
public static /* synthetic */ void getMembers$annotations() {
}
public static /* synthetic */ void getNestedClasses$annotations() {
}
public static /* synthetic */ void getObjectInstance$annotations() {
}
@SinceKotlin(version = "1.3")
public static /* synthetic */ void getSealedSubclasses$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getSupertypes$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getTypeParameters$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getVisibility$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isAbstract$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isCompanion$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isData$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isFinal$annotations() {
}
@SinceKotlin(version = "1.4")
public static /* synthetic */ void isFun$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isInner$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isOpen$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isSealed$annotations() {
}
@SinceKotlin(version = "1.5")
public static /* synthetic */ void isValue$annotations() {
}
}
boolean equals(Object other);
Collection<KFunction<T>> getConstructors();
@Override // kotlin.reflect.KDeclarationContainer
Collection<KCallable<?>> getMembers();
Collection<KClass<?>> getNestedClasses();
T getObjectInstance();
String getQualifiedName();
List<KClass<? extends T>> getSealedSubclasses();
String getSimpleName();
List<KType> getSupertypes();
List<KTypeParameter> getTypeParameters();
KVisibility getVisibility();
int hashCode();
boolean isAbstract();
boolean isCompanion();
boolean isData();
boolean isFinal();
boolean isFun();
boolean isInner();
@SinceKotlin(version = "1.1")
boolean isInstance(Object value);
boolean isOpen();
boolean isSealed();
boolean isValue();
}
@@ -0,0 +1,42 @@
package kotlin.reflect;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.WasExperimental;
import kotlin.internal.LowPriorityInOverloadResolution;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000\u0010\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\u001a+\u0010\u0000\u001a\u0002H\u0001\"\b\b\u0000\u0010\u0001*\u00020\u0002*\b\u0012\u0004\u0012\u0002H\u00010\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002H\u0007¢\u0006\u0002\u0010\u0005\u001a-\u0010\u0006\u001a\u0004\u0018\u0001H\u0001\"\b\b\u0000\u0010\u0001*\u00020\u0002*\b\u0012\u0004\u0012\u0002H\u00010\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0002H\u0007¢\u0006\u0002\u0010\u0005¨\u0006\u0007"}, d2 = {"cast", "T", "", "Lkotlin/reflect/KClass;", "value", "(Lkotlin/reflect/KClass;Ljava/lang/Object;)Ljava/lang/Object;", "safeCast", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KClasses")
@SourceDebugExtension({"SMAP\nKClasses.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KClasses.kt\nkotlin/reflect/KClasses\n+ 2 KClassesImpl.kt\nkotlin/reflect/KClassesImplKt\n*L\n1#1,48:1\n9#2:49\n*S KotlinDebug\n*F\n+ 1 KClasses.kt\nkotlin/reflect/KClasses\n*L\n26#1:49\n*E\n"})
/* loaded from: classes3.dex */
public final class KClasses {
/* JADX WARN: Multi-variable type inference failed */
@LowPriorityInOverloadResolution
@SinceKotlin(version = "1.4")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final <T> T cast(KClass<T> kClass, Object obj) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
if (kClass.isInstance(obj)) {
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of kotlin.reflect.KClasses.cast");
return obj;
}
throw new ClassCastException("Value cannot be cast to " + kClass.getQualifiedName());
}
/* JADX WARN: Multi-variable type inference failed */
@LowPriorityInOverloadResolution
@SinceKotlin(version = "1.4")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final <T> T safeCast(KClass<T> kClass, Object obj) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
if (!kClass.isInstance(obj)) {
return null;
}
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of kotlin.reflect.KClasses.safeCast");
return obj;
}
}
@@ -0,0 +1,13 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u001f\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028À\u0002X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"qualifiedOrSimpleName", "", "Lkotlin/reflect/KClass;", "getQualifiedOrSimpleName", "(Lkotlin/reflect/KClass;)Ljava/lang/String;", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KClassesImplKt {
public static final String getQualifiedOrSimpleName(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
return kClass.getQualifiedName();
}
}
@@ -0,0 +1,10 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bg\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lkotlin/reflect/KClassifier;", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KClassifier {
}
@@ -0,0 +1,10 @@
package kotlin.reflect;
import java.util.Collection;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u00002\u00020\u0001R\u001c\u0010\u0002\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00040\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/KDeclarationContainer;", "", "members", "", "Lkotlin/reflect/KCallable;", "getMembers", "()Ljava/util/Collection;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KDeclarationContainer {
Collection<KCallable<?>> getMembers();
}
@@ -0,0 +1,45 @@
package kotlin.reflect;
import kotlin.Function;
import kotlin.Metadata;
import kotlin.SinceKotlin;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\f\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003R\u001a\u0010\u0004\u001a\u00020\u00058&X§\u0004¢\u0006\f\u0012\u0004\b\u0006\u0010\u0007\u001a\u0004\b\u0004\u0010\bR\u001a\u0010\t\u001a\u00020\u00058&X§\u0004¢\u0006\f\u0012\u0004\b\n\u0010\u0007\u001a\u0004\b\t\u0010\bR\u001a\u0010\u000b\u001a\u00020\u00058&X§\u0004¢\u0006\f\u0012\u0004\b\f\u0010\u0007\u001a\u0004\b\u000b\u0010\bR\u001a\u0010\r\u001a\u00020\u00058&X§\u0004¢\u0006\f\u0012\u0004\b\u000e\u0010\u0007\u001a\u0004\b\r\u0010\bR\u001a\u0010\u000f\u001a\u00020\u00058&X§\u0004¢\u0006\f\u0012\u0004\b\u0010\u0010\u0007\u001a\u0004\b\u000f\u0010\b¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/KFunction;", "R", "Lkotlin/reflect/KCallable;", "Lkotlin/Function;", "isExternal", "", "isExternal$annotations", "()V", "()Z", "isInfix", "isInfix$annotations", "isInline", "isInline$annotations", "isOperator", "isOperator$annotations", "isSuspend", "isSuspend$annotations", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KFunction<R> extends KCallable<R>, Function<R> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isExternal$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isInfix$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isInline$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isOperator$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isSuspend$annotations() {
}
}
boolean isExternal();
boolean isInfix();
boolean isInline();
boolean isOperator();
@Override // kotlin.reflect.KCallable
boolean isSuspend();
}
@@ -0,0 +1,24 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.reflect.KProperty;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\bf\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002:\u0001\tR\u001e\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X¦\u0004¢\u0006\f\u0012\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006\n"}, d2 = {"Lkotlin/reflect/KMutableProperty;", "V", "Lkotlin/reflect/KProperty;", "setter", "Lkotlin/reflect/KMutableProperty$Setter;", "getSetter$annotations", "()V", "getSetter", "()Lkotlin/reflect/KMutableProperty$Setter;", "Setter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KMutableProperty<V> extends KProperty<V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getSetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\bf\u0018\u0000*\u0004\b\u0001\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u00020\u00040\u0003¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/KMutableProperty$Setter;", "V", "Lkotlin/reflect/KProperty$Accessor;", "Lkotlin/reflect/KFunction;", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Setter<V> extends KProperty.Accessor<V>, KFunction<Unit> {
}
Setter<V> getSetter();
}
@@ -0,0 +1,28 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function1;
import kotlin.reflect.KMutableProperty;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0004\bf\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u000eJ\u0015\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00028\u0000H&¢\u0006\u0002\u0010\rR\u001e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005X¦\u0004¢\u0006\f\u0012\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\t¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/KMutableProperty0;", "V", "Lkotlin/reflect/KProperty0;", "Lkotlin/reflect/KMutableProperty;", "setter", "Lkotlin/reflect/KMutableProperty0$Setter;", "getSetter$annotations", "()V", "getSetter", "()Lkotlin/reflect/KMutableProperty0$Setter;", "set", "", "value", "(Ljava/lang/Object;)V", "Setter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KMutableProperty0<V> extends KProperty0<V>, KMutableProperty<V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getSetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\bf\u0018\u0000*\u0004\b\u0001\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u00020\u00040\u0003¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/KMutableProperty0$Setter;", "V", "Lkotlin/reflect/KMutableProperty$Setter;", "Lkotlin/Function1;", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Setter<V> extends KMutableProperty.Setter<V>, Function1<V, Unit> {
}
@Override // kotlin.reflect.KMutableProperty
Setter<V> getSetter();
void set(V value);
}
@@ -0,0 +1,28 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function2;
import kotlin.reflect.KMutableProperty;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0005\bf\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\b\u0012\u0004\u0012\u0002H\u00020\u0004:\u0001\u0010J\u001d\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00028\u00002\u0006\u0010\u000e\u001a\u00028\u0001H&¢\u0006\u0002\u0010\u000fR$\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0006X¦\u0004¢\u0006\f\u0012\u0004\b\u0007\u0010\b\u001a\u0004\b\t\u0010\n¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/KMutableProperty1;", "T", "V", "Lkotlin/reflect/KProperty1;", "Lkotlin/reflect/KMutableProperty;", "setter", "Lkotlin/reflect/KMutableProperty1$Setter;", "getSetter$annotations", "()V", "getSetter", "()Lkotlin/reflect/KMutableProperty1$Setter;", "set", "", "receiver", "value", "(Ljava/lang/Object;Ljava/lang/Object;)V", "Setter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KMutableProperty1<T, V> extends KProperty1<T, V>, KMutableProperty<V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getSetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\bf\u0018\u0000*\u0004\b\u0002\u0010\u0001*\u0004\b\u0003\u0010\u00022\b\u0012\u0004\u0012\u0002H\u00020\u00032\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u00020\u00050\u0004¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/KMutableProperty1$Setter;", "T", "V", "Lkotlin/reflect/KMutableProperty$Setter;", "Lkotlin/Function2;", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Setter<T, V> extends KMutableProperty.Setter<V>, Function2<T, V, Unit> {
}
@Override // kotlin.reflect.KMutableProperty
Setter<T, V> getSetter();
void set(T receiver, V value);
}
@@ -0,0 +1,28 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function3;
import kotlin.reflect.KMutableProperty;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0002\b\u0006\bf\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u0002*\u0004\b\u0002\u0010\u00032\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00042\b\u0012\u0004\u0012\u0002H\u00030\u0005:\u0001\u0012J%\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00028\u00002\u0006\u0010\u000f\u001a\u00028\u00012\u0006\u0010\u0010\u001a\u00028\u0002H&¢\u0006\u0002\u0010\u0011R*\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u0007X¦\u0004¢\u0006\f\u0012\u0004\b\b\u0010\t\u001a\u0004\b\n\u0010\u000b¨\u0006\u0013"}, d2 = {"Lkotlin/reflect/KMutableProperty2;", "D", "E", "V", "Lkotlin/reflect/KProperty2;", "Lkotlin/reflect/KMutableProperty;", "setter", "Lkotlin/reflect/KMutableProperty2$Setter;", "getSetter$annotations", "()V", "getSetter", "()Lkotlin/reflect/KMutableProperty2$Setter;", "set", "", "receiver1", "receiver2", "value", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "Setter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KMutableProperty2<D, E, V> extends KProperty2<D, E, V>, KMutableProperty<V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getSetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\bf\u0018\u0000*\u0004\b\u0003\u0010\u0001*\u0004\b\u0004\u0010\u0002*\u0004\b\u0005\u0010\u00032\b\u0012\u0004\u0012\u0002H\u00030\u00042\u001a\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u0003\u0012\u0004\u0012\u00020\u00060\u0005¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/KMutableProperty2$Setter;", "D", "E", "V", "Lkotlin/reflect/KMutableProperty$Setter;", "Lkotlin/Function3;", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Setter<D, E, V> extends KMutableProperty.Setter<V>, Function3<D, E, V, Unit> {
}
@Override // kotlin.reflect.KMutableProperty
Setter<D, E, V> getSetter();
void set(D receiver1, E receiver2, V value);
}
@@ -0,0 +1,70 @@
package kotlin.reflect;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.enums.EnumEntries;
import kotlin.enums.EnumEntriesKt;
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\bf\u0018\u00002\u00020\u0001:\u0001\u0018R\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005R\u0012\u0010\u0006\u001a\u00020\u0007X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\bR\u001a\u0010\t\u001a\u00020\u00078&X§\u0004¢\u0006\f\u0012\u0004\b\n\u0010\u000b\u001a\u0004\b\t\u0010\bR\u0012\u0010\f\u001a\u00020\rX¦\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0010\u001a\u0004\u0018\u00010\u0011X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013R\u0012\u0010\u0014\u001a\u00020\u0015X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006\u0019"}, d2 = {"Lkotlin/reflect/KParameter;", "Lkotlin/reflect/KAnnotatedElement;", FirebaseAnalytics.Param.INDEX, "", "getIndex", "()I", "isOptional", "", "()Z", "isVararg", "isVararg$annotations", "()V", "kind", "Lkotlin/reflect/KParameter$Kind;", "getKind", "()Lkotlin/reflect/KParameter$Kind;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "type", "Lkotlin/reflect/KType;", "getType", "()Lkotlin/reflect/KType;", "Kind", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KParameter extends KAnnotatedElement {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isVararg$annotations() {
}
}
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0005\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/KParameter$Kind;", "", "(Ljava/lang/String;I)V", "INSTANCE", "EXTENSION_RECEIVER", "VALUE", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Kind {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ Kind[] $VALUES;
public static final Kind INSTANCE = new Kind("INSTANCE", 0);
public static final Kind EXTENSION_RECEIVER = new Kind("EXTENSION_RECEIVER", 1);
public static final Kind VALUE = new Kind("VALUE", 2);
private static final /* synthetic */ Kind[] $values() {
return new Kind[]{INSTANCE, EXTENSION_RECEIVER, VALUE};
}
static {
Kind[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private Kind(String str, int i) {
}
public static EnumEntries<Kind> getEntries() {
return $ENTRIES;
}
public static Kind valueOf(String str) {
return (Kind) Enum.valueOf(Kind.class, str);
}
public static Kind[] values() {
return (Kind[]) $VALUES.clone();
}
}
int getIndex();
Kind getKind();
String getName();
KType getType();
boolean isOptional();
boolean isVararg();
}
@@ -0,0 +1,41 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0007\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002:\u0002\u000f\u0010R\u001e\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004X¦\u0004¢\u0006\f\u0012\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0007\u0010\bR\u001a\u0010\t\u001a\u00020\n8&X§\u0004¢\u0006\f\u0012\u0004\b\u000b\u0010\u0006\u001a\u0004\b\t\u0010\fR\u001a\u0010\r\u001a\u00020\n8&X§\u0004¢\u0006\f\u0012\u0004\b\u000e\u0010\u0006\u001a\u0004\b\r\u0010\f¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/KProperty;", "V", "Lkotlin/reflect/KCallable;", "getter", "Lkotlin/reflect/KProperty$Getter;", "getGetter$annotations", "()V", "getGetter", "()Lkotlin/reflect/KProperty$Getter;", "isConst", "", "isConst$annotations", "()Z", "isLateinit", "isLateinit$annotations", "Accessor", "Getter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KProperty<V> extends KCallable<V> {
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\u00020\u0002R\u0018\u0010\u0003\u001a\b\u0012\u0004\u0012\u00028\u00010\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/KProperty$Accessor;", "V", "", "property", "Lkotlin/reflect/KProperty;", "getProperty", "()Lkotlin/reflect/KProperty;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Accessor<V> {
KProperty<V> getProperty();
}
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getGetter$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isConst$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void isLateinit$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bf\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003¨\u0006\u0004"}, d2 = {"Lkotlin/reflect/KProperty$Getter;", "V", "Lkotlin/reflect/KProperty$Accessor;", "Lkotlin/reflect/KFunction;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Getter<V> extends Accessor<V>, KFunction<V> {
}
Getter<V> getGetter();
boolean isConst();
boolean isLateinit();
}
@@ -0,0 +1,31 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.functions.Function0;
import kotlin.reflect.KProperty;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0002\b\u0002\bf\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u000eJ\r\u0010\n\u001a\u00028\u0000H&¢\u0006\u0002\u0010\u000bJ\n\u0010\f\u001a\u0004\u0018\u00010\rH'R\u001e\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0005X¦\u0004¢\u0006\f\u0012\u0004\b\u0006\u0010\u0007\u001a\u0004\b\b\u0010\t¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/KProperty0;", "V", "Lkotlin/reflect/KProperty;", "Lkotlin/Function0;", "getter", "Lkotlin/reflect/KProperty0$Getter;", "getGetter$annotations", "()V", "getGetter", "()Lkotlin/reflect/KProperty0$Getter;", "get", "()Ljava/lang/Object;", "getDelegate", "", "Getter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KProperty0<V> extends KProperty<V>, Function0<V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getGetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bf\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003¨\u0006\u0004"}, d2 = {"Lkotlin/reflect/KProperty0$Getter;", "V", "Lkotlin/reflect/KProperty$Getter;", "Lkotlin/Function0;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Getter<V> extends KProperty.Getter<V>, Function0<V> {
}
V get();
@SinceKotlin(version = "1.1")
Object getDelegate();
@Override // kotlin.reflect.KProperty
Getter<V> getGetter();
}
@@ -0,0 +1,31 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.functions.Function1;
import kotlin.reflect.KProperty;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0000\n\u0002\b\u0002\bf\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\b\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004:\u0001\u0010J\u0015\u0010\u000b\u001a\u00028\u00012\u0006\u0010\f\u001a\u00028\u0000H&¢\u0006\u0002\u0010\rJ\u0017\u0010\u000e\u001a\u0004\u0018\u00010\u000f2\u0006\u0010\f\u001a\u00028\u0000H'¢\u0006\u0002\u0010\rR$\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u0006X¦\u0004¢\u0006\f\u0012\u0004\b\u0007\u0010\b\u001a\u0004\b\t\u0010\n¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/KProperty1;", "T", "V", "Lkotlin/reflect/KProperty;", "Lkotlin/Function1;", "getter", "Lkotlin/reflect/KProperty1$Getter;", "getGetter$annotations", "()V", "getGetter", "()Lkotlin/reflect/KProperty1$Getter;", "get", "receiver", "(Ljava/lang/Object;)Ljava/lang/Object;", "getDelegate", "", "Getter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KProperty1<T, V> extends KProperty<V>, Function1<T, V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getGetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bf\u0018\u0000*\u0004\b\u0002\u0010\u0001*\u0006\b\u0003\u0010\u0002 \u00012\b\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/KProperty1$Getter;", "T", "V", "Lkotlin/reflect/KProperty$Getter;", "Lkotlin/Function1;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Getter<T, V> extends KProperty.Getter<V>, Function1<T, V> {
}
V get(T receiver);
@SinceKotlin(version = "1.1")
Object getDelegate(T receiver);
@Override // kotlin.reflect.KProperty
Getter<T, V> getGetter();
}
@@ -0,0 +1,31 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.functions.Function2;
import kotlin.reflect.KProperty;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u0000\n\u0002\b\u0002\bf\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u0002*\u0006\b\u0002\u0010\u0003 \u00012\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005:\u0001\u0012J\u001d\u0010\f\u001a\u00028\u00022\u0006\u0010\r\u001a\u00028\u00002\u0006\u0010\u000e\u001a\u00028\u0001H&¢\u0006\u0002\u0010\u000fJ\u001f\u0010\u0010\u001a\u0004\u0018\u00010\u00112\u0006\u0010\r\u001a\u00028\u00002\u0006\u0010\u000e\u001a\u00028\u0001H'¢\u0006\u0002\u0010\u000fR*\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u0007X¦\u0004¢\u0006\f\u0012\u0004\b\b\u0010\t\u001a\u0004\b\n\u0010\u000b¨\u0006\u0013"}, d2 = {"Lkotlin/reflect/KProperty2;", "D", "E", "V", "Lkotlin/reflect/KProperty;", "Lkotlin/Function2;", "getter", "Lkotlin/reflect/KProperty2$Getter;", "getGetter$annotations", "()V", "getGetter", "()Lkotlin/reflect/KProperty2$Getter;", "get", "receiver1", "receiver2", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "getDelegate", "", "Getter", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KProperty2<D, E, V> extends KProperty<V>, Function2<D, E, V> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static /* synthetic */ void getGetter$annotations() {
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\bf\u0018\u0000*\u0004\b\u0003\u0010\u0001*\u0004\b\u0004\u0010\u0002*\u0006\b\u0005\u0010\u0003 \u00012\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/KProperty2$Getter;", "D", "E", "V", "Lkotlin/reflect/KProperty$Getter;", "Lkotlin/Function2;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Getter<D, E, V> extends KProperty.Getter<V>, Function2<D, E, V> {
}
V get(D receiver1, E receiver2);
@SinceKotlin(version = "1.1")
Object getDelegate(D receiver1, E receiver2);
@Override // kotlin.reflect.KProperty
Getter<D, E, V> getGetter();
}
@@ -0,0 +1,28 @@
package kotlin.reflect;
import java.util.List;
import kotlin.Metadata;
import kotlin.SinceKotlin;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0002\bf\u0018\u00002\u00020\u0001R \u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u00038&X§\u0004¢\u0006\f\u0012\u0004\b\u0005\u0010\u0006\u001a\u0004\b\u0007\u0010\bR\u001c\u0010\t\u001a\u0004\u0018\u00010\n8&X§\u0004¢\u0006\f\u0012\u0004\b\u000b\u0010\u0006\u001a\u0004\b\f\u0010\rR\u0012\u0010\u000e\u001a\u00020\u000fX¦\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u0010¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/KType;", "Lkotlin/reflect/KAnnotatedElement;", "arguments", "", "Lkotlin/reflect/KTypeProjection;", "getArguments$annotations", "()V", "getArguments", "()Ljava/util/List;", "classifier", "Lkotlin/reflect/KClassifier;", "getClassifier$annotations", "getClassifier", "()Lkotlin/reflect/KClassifier;", "isMarkedNullable", "", "()Z", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KType extends KAnnotatedElement {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getArguments$annotations() {
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getClassifier$annotations() {
}
}
List<KTypeProjection> getArguments();
KClassifier getClassifier();
boolean isMarkedNullable();
}
@@ -0,0 +1,19 @@
package kotlin.reflect;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.List;
import kotlin.Metadata;
import kotlin.SinceKotlin;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\bg\u0018\u00002\u00020\u0001R\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0002\u0010\u0004R\u0012\u0010\u0005\u001a\u00020\u0006X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\bR\u0018\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u000b0\nX¦\u0004¢\u0006\u0006\u001a\u0004\b\f\u0010\rR\u0012\u0010\u000e\u001a\u00020\u000fX¦\u0004¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011¨\u0006\u0012"}, d2 = {"Lkotlin/reflect/KTypeParameter;", "Lkotlin/reflect/KClassifier;", "isReified", "", "()Z", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "upperBounds", "", "Lkotlin/reflect/KType;", "getUpperBounds", "()Ljava/util/List;", "variance", "Lkotlin/reflect/KVariance;", "getVariance", "()Lkotlin/reflect/KVariance;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KTypeParameter extends KClassifier {
String getName();
List<KType> getUpperBounds();
KVariance getVariance();
boolean isReified();
}
@@ -0,0 +1,183 @@
package kotlin.reflect;
import com.adif.elcanomovil.repositories.circulation.CirculationMapper;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.PublishedApi;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmField;
import kotlin.jvm.JvmStatic;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0087\b\u0018\u0000 \u00152\u00020\u0001:\u0001\u0015B\u0019\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\u0002\u0010\u0006J\u000b\u0010\u000b\u001a\u0004\u0018\u00010\u0003HÆ\u0003J\u000b\u0010\f\u001a\u0004\u0018\u00010\u0005HÆ\u0003J!\u0010\r\u001a\u00020\u00002\n\b\u0002\u0010\u0002\u001a\u0004\u0018\u00010\u00032\n\b\u0002\u0010\u0004\u001a\u0004\u0018\u00010\u0005HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001J\b\u0010\u0013\u001a\u00020\u0014H\u0016R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0016"}, d2 = {"Lkotlin/reflect/KTypeProjection;", "", "variance", "Lkotlin/reflect/KVariance;", "type", "Lkotlin/reflect/KType;", "(Lkotlin/reflect/KVariance;Lkotlin/reflect/KType;)V", "getType", "()Lkotlin/reflect/KType;", "getVariance", "()Lkotlin/reflect/KVariance;", "component1", "component2", "copy", "equals", "", "other", "hashCode", "", "toString", "", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final /* data */ class KTypeProjection {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
@JvmField
public static final KTypeProjection star = new KTypeProjection(null, null);
private final KType type;
private final KVariance variance;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\t\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000bH\u0007J\u0010\u0010\f\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000bH\u0007J\u0010\u0010\r\u001a\u00020\u00042\u0006\u0010\n\u001a\u00020\u000bH\u0007R\u0011\u0010\u0003\u001a\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0016\u0010\u0007\u001a\u00020\u00048\u0000X\u0081\u0004¢\u0006\b\n\u0000\u0012\u0004\b\b\u0010\u0002¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/KTypeProjection$Companion;", "", "()V", "STAR", "Lkotlin/reflect/KTypeProjection;", "getSTAR", "()Lkotlin/reflect/KTypeProjection;", "star", "getStar$annotations", "contravariant", "type", "Lkotlin/reflect/KType;", "covariant", "invariant", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
@PublishedApi
public static /* synthetic */ void getStar$annotations() {
}
@JvmStatic
public final KTypeProjection contravariant(KType type) {
Intrinsics.checkNotNullParameter(type, "type");
return new KTypeProjection(KVariance.IN, type);
}
@JvmStatic
public final KTypeProjection covariant(KType type) {
Intrinsics.checkNotNullParameter(type, "type");
return new KTypeProjection(KVariance.OUT, type);
}
public final KTypeProjection getSTAR() {
return KTypeProjection.star;
}
@JvmStatic
public final KTypeProjection invariant(KType type) {
Intrinsics.checkNotNullParameter(type, "type");
return new KTypeProjection(KVariance.INVARIANT, type);
}
private Companion() {
}
}
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KVariance.values().length];
try {
iArr[KVariance.INVARIANT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KVariance.IN.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KVariance.OUT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public KTypeProjection(KVariance kVariance, KType kType) {
String str;
this.variance = kVariance;
this.type = kType;
if ((kVariance == null) == (kType == null)) {
return;
}
if (kVariance == null) {
str = "Star projection must have no type specified.";
} else {
str = "The projection variance " + kVariance + " requires type to be specified.";
}
throw new IllegalArgumentException(str.toString());
}
@JvmStatic
public static final KTypeProjection contravariant(KType kType) {
return INSTANCE.contravariant(kType);
}
public static /* synthetic */ KTypeProjection copy$default(KTypeProjection kTypeProjection, KVariance kVariance, KType kType, int i, Object obj) {
if ((i & 1) != 0) {
kVariance = kTypeProjection.variance;
}
if ((i & 2) != 0) {
kType = kTypeProjection.type;
}
return kTypeProjection.copy(kVariance, kType);
}
@JvmStatic
public static final KTypeProjection covariant(KType kType) {
return INSTANCE.covariant(kType);
}
@JvmStatic
public static final KTypeProjection invariant(KType kType) {
return INSTANCE.invariant(kType);
}
/* renamed from: component1, reason: from getter */
public final KVariance getVariance() {
return this.variance;
}
/* renamed from: component2, reason: from getter */
public final KType getType() {
return this.type;
}
public final KTypeProjection copy(KVariance variance, KType type) {
return new KTypeProjection(variance, type);
}
public boolean equals(Object other) {
if (this == other) {
return true;
}
if (!(other instanceof KTypeProjection)) {
return false;
}
KTypeProjection kTypeProjection = (KTypeProjection) other;
return this.variance == kTypeProjection.variance && Intrinsics.areEqual(this.type, kTypeProjection.type);
}
public final KType getType() {
return this.type;
}
public final KVariance getVariance() {
return this.variance;
}
public int hashCode() {
KVariance kVariance = this.variance;
int hashCode = (kVariance == null ? 0 : kVariance.hashCode()) * 31;
KType kType = this.type;
return hashCode + (kType != null ? kType.hashCode() : 0);
}
public String toString() {
KVariance kVariance = this.variance;
int i = kVariance == null ? -1 : WhenMappings.$EnumSwitchMapping$0[kVariance.ordinal()];
if (i == -1) {
return CirculationMapper.VIA_ASTERISK;
}
if (i == 1) {
return String.valueOf(this.type);
}
if (i == 2) {
return "in " + this.type;
}
if (i != 3) {
throw new NoWhenBranchMatchedException();
}
return "out " + this.type;
}
}
@@ -0,0 +1,44 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.enums.EnumEntries;
import kotlin.enums.EnumEntriesKt;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0005\b\u0087\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/KVariance;", "", "(Ljava/lang/String;I)V", "INVARIANT", "IN", "OUT", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KVariance {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ KVariance[] $VALUES;
public static final KVariance INVARIANT = new KVariance("INVARIANT", 0);
public static final KVariance IN = new KVariance("IN", 1);
public static final KVariance OUT = new KVariance("OUT", 2);
private static final /* synthetic */ KVariance[] $values() {
return new KVariance[]{INVARIANT, IN, OUT};
}
static {
KVariance[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private KVariance(String str, int i) {
}
public static EnumEntries<KVariance> getEntries() {
return $ENTRIES;
}
public static KVariance valueOf(String str) {
return (KVariance) Enum.valueOf(KVariance.class, str);
}
public static KVariance[] values() {
return (KVariance[]) $VALUES.clone();
}
}
@@ -0,0 +1,45 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.enums.EnumEntries;
import kotlin.enums.EnumEntriesKt;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0006\b\u0087\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004j\u0002\b\u0005j\u0002\b\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/KVisibility;", "", "(Ljava/lang/String;I)V", "PUBLIC", "PROTECTED", "INTERNAL", "PRIVATE", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KVisibility {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ KVisibility[] $VALUES;
public static final KVisibility PUBLIC = new KVisibility("PUBLIC", 0);
public static final KVisibility PROTECTED = new KVisibility("PROTECTED", 1);
public static final KVisibility INTERNAL = new KVisibility("INTERNAL", 2);
public static final KVisibility PRIVATE = new KVisibility("PRIVATE", 3);
private static final /* synthetic */ KVisibility[] $values() {
return new KVisibility[]{PUBLIC, PROTECTED, INTERNAL, PRIVATE};
}
static {
KVisibility[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private KVisibility(String str, int i) {
}
public static EnumEntries<KVisibility> getEntries() {
return $ENTRIES;
}
public static KVisibility valueOf(String str) {
return (KVisibility) Enum.valueOf(KVisibility.class, str);
}
public static KVisibility[] values() {
return (KVisibility[]) $VALUES.clone();
}
}
@@ -0,0 +1,25 @@
package kotlin.reflect;
import java.lang.reflect.Type;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class ParameterizedTypeImpl$getTypeName$1$1 extends FunctionReferenceImpl implements Function1<Type, String> {
public static final ParameterizedTypeImpl$getTypeName$1$1 INSTANCE = new ParameterizedTypeImpl$getTypeName$1$1();
public ParameterizedTypeImpl$getTypeName$1$1() {
super(1, TypesJVMKt.class, "typeToString", "typeToString(Ljava/lang/reflect/Type;)Ljava/lang/String;", 1);
}
@Override // kotlin.jvm.functions.Function1
public final String invoke(Type p02) {
String typeToString;
Intrinsics.checkNotNullParameter(p02, "p0");
typeToString = TypesJVMKt.typeToString(p02);
return typeToString;
}
}
@@ -0,0 +1,87 @@
package kotlin.reflect;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* JADX INFO: Access modifiers changed from: package-private */
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b\u0003\u0018\u00002\u00020\u00012\u00020\u0002B)\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006\u0012\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\b¢\u0006\u0002\u0010\tJ\u0013\u0010\f\u001a\u00020\r2\b\u0010\u000e\u001a\u0004\u0018\u00010\u000fH\u0096\u0002J\u0013\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00060\nH\u0016¢\u0006\u0002\u0010\u0011J\n\u0010\u0012\u001a\u0004\u0018\u00010\u0006H\u0016J\b\u0010\u0013\u001a\u00020\u0006H\u0016J\b\u0010\u0014\u001a\u00020\u0015H\u0016J\b\u0010\u0016\u001a\u00020\u0017H\u0016J\b\u0010\u0018\u001a\u00020\u0015H\u0016R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\u00060\nX\u0082\u0004¢\u0006\u0004\n\u0002\u0010\u000b¨\u0006\u0019"}, d2 = {"Lkotlin/reflect/ParameterizedTypeImpl;", "Ljava/lang/reflect/ParameterizedType;", "Lkotlin/reflect/TypeImpl;", "rawType", "Ljava/lang/Class;", "ownerType", "Ljava/lang/reflect/Type;", "typeArguments", "", "(Ljava/lang/Class;Ljava/lang/reflect/Type;Ljava/util/List;)V", "", "[Ljava/lang/reflect/Type;", "equals", "", "other", "", "getActualTypeArguments", "()[Ljava/lang/reflect/Type;", "getOwnerType", "getRawType", "getTypeName", "", "hashCode", "", "toString", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
@ExperimentalStdlibApi
@SourceDebugExtension({"SMAP\nTypesJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/ParameterizedTypeImpl\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,230:1\n37#2,2:231\n*S KotlinDebug\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/ParameterizedTypeImpl\n*L\n190#1:231,2\n*E\n"})
/* loaded from: classes3.dex */
public final class ParameterizedTypeImpl implements ParameterizedType, TypeImpl {
private final Type ownerType;
private final Class<?> rawType;
private final Type[] typeArguments;
public ParameterizedTypeImpl(Class<?> rawType, Type type, List<? extends Type> typeArguments) {
Intrinsics.checkNotNullParameter(rawType, "rawType");
Intrinsics.checkNotNullParameter(typeArguments, "typeArguments");
this.rawType = rawType;
this.ownerType = type;
this.typeArguments = (Type[]) typeArguments.toArray(new Type[0]);
}
public boolean equals(Object other) {
if (!(other instanceof ParameterizedType)) {
return false;
}
ParameterizedType parameterizedType = (ParameterizedType) other;
return Intrinsics.areEqual(this.rawType, parameterizedType.getRawType()) && Intrinsics.areEqual(this.ownerType, parameterizedType.getOwnerType()) && Arrays.equals(getActualTypeArguments(), parameterizedType.getActualTypeArguments());
}
@Override // java.lang.reflect.ParameterizedType
public Type[] getActualTypeArguments() {
return this.typeArguments;
}
@Override // java.lang.reflect.ParameterizedType
public Type getOwnerType() {
return this.ownerType;
}
@Override // java.lang.reflect.ParameterizedType
public Type getRawType() {
return this.rawType;
}
@Override // java.lang.reflect.Type, kotlin.reflect.TypeImpl
public String getTypeName() {
String typeToString;
String typeToString2;
StringBuilder sb = new StringBuilder();
Type type = this.ownerType;
if (type != null) {
typeToString2 = TypesJVMKt.typeToString(type);
sb.append(typeToString2);
sb.append("$");
sb.append(this.rawType.getSimpleName());
} else {
typeToString = TypesJVMKt.typeToString(this.rawType);
sb.append(typeToString);
}
Type[] typeArr = this.typeArguments;
if (typeArr.length != 0) {
ArraysKt___ArraysKt.joinTo$default(typeArr, sb, (CharSequence) null, "<", ">", 0, (CharSequence) null, ParameterizedTypeImpl$getTypeName$1$1.INSTANCE, 50, (Object) null);
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public int hashCode() {
int hashCode = this.rawType.hashCode();
Type type = this.ownerType;
return Arrays.hashCode(getActualTypeArguments()) ^ (hashCode ^ (type != null ? type.hashCode() : 0));
}
public String toString() {
return getTypeName();
}
}
@@ -0,0 +1,12 @@
package kotlin.reflect;
import java.lang.reflect.Type;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\bc\u0018\u00002\u00020\u0001J\b\u0010\u0002\u001a\u00020\u0003H&¨\u0006\u0004"}, d2 = {"Lkotlin/reflect/TypeImpl;", "Ljava/lang/reflect/Type;", "getTypeName", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
@ExperimentalStdlibApi
/* loaded from: classes3.dex */
interface TypeImpl extends Type {
String getTypeName();
}
@@ -0,0 +1,16 @@
package kotlin.reflect;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.WasExperimental;
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0011\u0010\u0000\u001a\u00020\u0001\"\u0006\b\u0000\u0010\u0002\u0018\u0001H\u0087\b¨\u0006\u0003"}, d2 = {"typeOf", "Lkotlin/reflect/KType;", "T", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class TypeOfKt {
@SinceKotlin(version = "1.6")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final /* synthetic */ <T> KType typeOf() {
throw new UnsupportedOperationException("This function is implemented as an intrinsic on all supported platforms.");
}
}
@@ -0,0 +1,89 @@
package kotlin.reflect;
import C.w;
import java.lang.annotation.Annotation;
import java.lang.reflect.GenericDeclaration;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.NotImplementedError;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* JADX INFO: Access modifiers changed from: package-private */
@Metadata(d1 = {"\u0000V\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u00012\u00020\u0003B\r\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0013\u0010\u0007\u001a\u00020\b2\b\u0010\t\u001a\u0004\u0018\u00010\nH\u0096\u0002J%\u0010\u000b\u001a\u0004\u0018\u0001H\f\"\b\b\u0000\u0010\f*\u00020\r2\f\u0010\u000e\u001a\b\u0012\u0004\u0012\u0002H\f0\u000f¢\u0006\u0002\u0010\u0010J\u0011\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\r0\u0012¢\u0006\u0002\u0010\u0013J\u0013\u0010\u0014\u001a\b\u0012\u0004\u0012\u00020\u00150\u0012H\u0016¢\u0006\u0002\u0010\u0016J\u0011\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\r0\u0012¢\u0006\u0002\u0010\u0013J\b\u0010\u0018\u001a\u00020\u0002H\u0016J\b\u0010\u0019\u001a\u00020\u001aH\u0016J\b\u0010\u001b\u001a\u00020\u001aH\u0016J\b\u0010\u001c\u001a\u00020\u001dH\u0016J\b\u0010\u001e\u001a\u00020\u001aH\u0016R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001f"}, d2 = {"Lkotlin/reflect/TypeVariableImpl;", "Ljava/lang/reflect/TypeVariable;", "Ljava/lang/reflect/GenericDeclaration;", "Lkotlin/reflect/TypeImpl;", "typeParameter", "Lkotlin/reflect/KTypeParameter;", "(Lkotlin/reflect/KTypeParameter;)V", "equals", "", "other", "", "getAnnotation", "T", "", "annotationClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)Ljava/lang/annotation/Annotation;", "getAnnotations", "", "()[Ljava/lang/annotation/Annotation;", "getBounds", "Ljava/lang/reflect/Type;", "()[Ljava/lang/reflect/Type;", "getDeclaredAnnotations", "getGenericDeclaration", "getName", "", "getTypeName", "hashCode", "", "toString", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
@ExperimentalStdlibApi
@SourceDebugExtension({"SMAP\nTypesJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/TypeVariableImpl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 4 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,230:1\n1549#2:231\n1620#2,3:232\n37#3,2:235\n26#4:237\n26#4:238\n*S KotlinDebug\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/TypeVariableImpl\n*L\n116#1:231\n116#1:232,3\n116#1:235,2\n134#1:237\n137#1:238\n*E\n"})
/* loaded from: classes3.dex */
public final class TypeVariableImpl implements TypeVariable<GenericDeclaration>, TypeImpl {
private final KTypeParameter typeParameter;
public TypeVariableImpl(KTypeParameter typeParameter) {
Intrinsics.checkNotNullParameter(typeParameter, "typeParameter");
this.typeParameter = typeParameter;
}
public boolean equals(Object other) {
if (!(other instanceof TypeVariable)) {
return false;
}
TypeVariable typeVariable = (TypeVariable) other;
return Intrinsics.areEqual(getName(), typeVariable.getName()) && Intrinsics.areEqual(getGenericDeclaration(), typeVariable.getGenericDeclaration());
}
public final <T extends Annotation> T getAnnotation(Class<T> annotationClass) {
Intrinsics.checkNotNullParameter(annotationClass, "annotationClass");
return null;
}
public final Annotation[] getAnnotations() {
return new Annotation[0];
}
@Override // java.lang.reflect.TypeVariable
public Type[] getBounds() {
int collectionSizeOrDefault;
Type computeJavaType;
List<KType> upperBounds = this.typeParameter.getUpperBounds();
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(upperBounds, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator<T> it = upperBounds.iterator();
while (it.hasNext()) {
computeJavaType = TypesJVMKt.computeJavaType((KType) it.next(), true);
arrayList.add(computeJavaType);
}
return (Type[]) arrayList.toArray(new Type[0]);
}
public final Annotation[] getDeclaredAnnotations() {
return new Annotation[0];
}
@Override // java.lang.reflect.TypeVariable
public GenericDeclaration getGenericDeclaration() {
throw new NotImplementedError(w.z("An operation is not implemented: ", "getGenericDeclaration() is not yet supported for type variables created from KType: " + this.typeParameter));
}
@Override // java.lang.reflect.TypeVariable
public String getName() {
return this.typeParameter.getName();
}
@Override // java.lang.reflect.Type, kotlin.reflect.TypeImpl
public String getTypeName() {
return getName();
}
public int hashCode() {
return getGenericDeclaration().hashCode() ^ getName().hashCode();
}
public String toString() {
return getTypeName();
}
}
@@ -0,0 +1,22 @@
package kotlin.reflect;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.FunctionReferenceImpl;
import kotlin.jvm.internal.Intrinsics;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class TypesJVMKt$typeToString$unwrap$1 extends FunctionReferenceImpl implements Function1<Class<?>, Class<?>> {
public static final TypesJVMKt$typeToString$unwrap$1 INSTANCE = new TypesJVMKt$typeToString$unwrap$1();
public TypesJVMKt$typeToString$unwrap$1() {
super(1, Class.class, "getComponentType", "getComponentType()Ljava/lang/Class;", 0);
}
@Override // kotlin.jvm.functions.Function1
public final Class<?> invoke(Class<?> p02) {
Intrinsics.checkNotNullParameter(p02, "p0");
return p02.getComponentType();
}
}
@@ -0,0 +1,193 @@
package kotlin.reflect;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.SinceKotlin;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.internal.LowPriorityInOverloadResolution;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.KTypeBase;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.sequences.Sequence;
import kotlin.sequences.SequencesKt;
import kotlin.text.StringsKt__StringsJVMKt;
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\u001a\"\u0010\n\u001a\u00020\u00012\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\f2\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u00070\u000eH\u0003\u001a\u0010\u0010\u000f\u001a\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0001H\u0002\u001a\u0016\u0010\u0012\u001a\u00020\u0001*\u00020\u00022\b\b\u0002\u0010\u0013\u001a\u00020\u0014H\u0003\"\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00078BX\u0083\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\b\u001a\u0004\b\u0005\u0010\t¨\u0006\u0015"}, d2 = {"javaType", "Ljava/lang/reflect/Type;", "Lkotlin/reflect/KType;", "getJavaType$annotations", "(Lkotlin/reflect/KType;)V", "getJavaType", "(Lkotlin/reflect/KType;)Ljava/lang/reflect/Type;", "Lkotlin/reflect/KTypeProjection;", "(Lkotlin/reflect/KTypeProjection;)V", "(Lkotlin/reflect/KTypeProjection;)Ljava/lang/reflect/Type;", "createPossiblyInnerType", "jClass", "Ljava/lang/Class;", "arguments", "", "typeToString", "", "type", "computeJavaType", "forceWrapper", "", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nTypesJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/TypesJVMKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,230:1\n1#2:231\n1549#3:232\n1620#3,3:233\n1549#3:236\n1620#3,3:237\n1549#3:240\n1620#3,3:241\n*S KotlinDebug\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/TypesJVMKt\n*L\n69#1:232\n69#1:233,3\n71#1:236\n71#1:237,3\n77#1:240\n77#1:241,3\n*E\n"})
/* loaded from: classes3.dex */
public final class TypesJVMKt {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KVariance.values().length];
try {
iArr[KVariance.IN.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KVariance.INVARIANT.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KVariance.OUT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
/* JADX INFO: Access modifiers changed from: private */
@ExperimentalStdlibApi
public static final Type computeJavaType(KType kType, boolean z3) {
KClassifier classifier = kType.getClassifier();
if (classifier instanceof KTypeParameter) {
return new TypeVariableImpl((KTypeParameter) classifier);
}
if (!(classifier instanceof KClass)) {
throw new UnsupportedOperationException("Unsupported type classifier: " + kType);
}
KClass kClass = (KClass) classifier;
Class javaObjectType = z3 ? JvmClassMappingKt.getJavaObjectType(kClass) : JvmClassMappingKt.getJavaClass(kClass);
List<KTypeProjection> arguments = kType.getArguments();
if (arguments.isEmpty()) {
return javaObjectType;
}
if (!javaObjectType.isArray()) {
return createPossiblyInnerType(javaObjectType, arguments);
}
if (javaObjectType.getComponentType().isPrimitive()) {
return javaObjectType;
}
KTypeProjection kTypeProjection = (KTypeProjection) CollectionsKt.singleOrNull((List) arguments);
if (kTypeProjection == null) {
throw new IllegalArgumentException("kotlin.Array must have exactly one type argument: " + kType);
}
KVariance variance = kTypeProjection.getVariance();
KType type = kTypeProjection.getType();
int i = variance == null ? -1 : WhenMappings.$EnumSwitchMapping$0[variance.ordinal()];
if (i == -1 || i == 1) {
return javaObjectType;
}
if (i != 2 && i != 3) {
throw new NoWhenBranchMatchedException();
}
Intrinsics.checkNotNull(type);
Type computeJavaType$default = computeJavaType$default(type, false, 1, null);
return computeJavaType$default instanceof Class ? javaObjectType : new GenericArrayTypeImpl(computeJavaType$default);
}
public static /* synthetic */ Type computeJavaType$default(KType kType, boolean z3, int i, Object obj) {
if ((i & 1) != 0) {
z3 = false;
}
return computeJavaType(kType, z3);
}
@ExperimentalStdlibApi
private static final Type createPossiblyInnerType(Class<?> cls, List<KTypeProjection> list) {
int collectionSizeOrDefault;
int collectionSizeOrDefault2;
int collectionSizeOrDefault3;
Class<?> declaringClass = cls.getDeclaringClass();
if (declaringClass == null) {
List<KTypeProjection> list2 = list;
collectionSizeOrDefault3 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault3);
Iterator<T> it = list2.iterator();
while (it.hasNext()) {
arrayList.add(getJavaType((KTypeProjection) it.next()));
}
return new ParameterizedTypeImpl(cls, null, arrayList);
}
if (Modifier.isStatic(cls.getModifiers())) {
List<KTypeProjection> list3 = list;
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list3, 10);
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
Iterator<T> it2 = list3.iterator();
while (it2.hasNext()) {
arrayList2.add(getJavaType((KTypeProjection) it2.next()));
}
return new ParameterizedTypeImpl(cls, declaringClass, arrayList2);
}
int length = cls.getTypeParameters().length;
Type createPossiblyInnerType = createPossiblyInnerType(declaringClass, list.subList(length, list.size()));
List<KTypeProjection> subList = list.subList(0, length);
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(subList, 10);
ArrayList arrayList3 = new ArrayList(collectionSizeOrDefault);
Iterator<T> it3 = subList.iterator();
while (it3.hasNext()) {
arrayList3.add(getJavaType((KTypeProjection) it3.next()));
}
return new ParameterizedTypeImpl(cls, createPossiblyInnerType, arrayList3);
}
public static final Type getJavaType(KType kType) {
Type javaType;
Intrinsics.checkNotNullParameter(kType, "<this>");
return (!(kType instanceof KTypeBase) || (javaType = ((KTypeBase) kType).getJavaType()) == null) ? computeJavaType$default(kType, false, 1, null) : javaType;
}
@LowPriorityInOverloadResolution
@SinceKotlin(version = "1.4")
@ExperimentalStdlibApi
public static /* synthetic */ void getJavaType$annotations(KType kType) {
}
/* JADX INFO: Access modifiers changed from: private */
public static final String typeToString(Type type) {
String name;
String repeat;
if (!(type instanceof Class)) {
return type.toString();
}
Class cls = (Class) type;
if (cls.isArray()) {
Sequence generateSequence = SequencesKt.generateSequence(type, TypesJVMKt$typeToString$unwrap$1.INSTANCE);
StringBuilder sb = new StringBuilder();
sb.append(((Class) SequencesKt.last(generateSequence)).getName());
repeat = StringsKt__StringsJVMKt.repeat("[]", SequencesKt.count(generateSequence));
sb.append(repeat);
name = sb.toString();
} else {
name = cls.getName();
}
Intrinsics.checkNotNull(name);
return name;
}
@ExperimentalStdlibApi
private static /* synthetic */ void getJavaType$annotations(KTypeProjection kTypeProjection) {
}
private static final Type getJavaType(KTypeProjection kTypeProjection) {
KVariance variance = kTypeProjection.getVariance();
if (variance == null) {
return WildcardTypeImpl.INSTANCE.getSTAR();
}
KType type = kTypeProjection.getType();
Intrinsics.checkNotNull(type);
int i = WhenMappings.$EnumSwitchMapping$0[variance.ordinal()];
if (i == 1) {
return new WildcardTypeImpl(null, computeJavaType(type, true));
}
if (i == 2) {
return computeJavaType(type, true);
}
if (i == 3) {
return new WildcardTypeImpl(computeJavaType(type, true), null);
}
throw new NoWhenBranchMatchedException();
}
}
@@ -0,0 +1,95 @@
package kotlin.reflect;
import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import java.util.Arrays;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
/* JADX INFO: Access modifiers changed from: package-private */
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\b\u0003\u0018\u0000 \u00142\u00020\u00012\u00020\u0002:\u0001\u0014B\u0019\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0004¢\u0006\u0002\u0010\u0006J\u0013\u0010\u0007\u001a\u00020\b2\b\u0010\t\u001a\u0004\u0018\u00010\nH\u0096\u0002J\u0013\u0010\u000b\u001a\b\u0012\u0004\u0012\u00020\u00040\fH\u0016¢\u0006\u0002\u0010\rJ\b\u0010\u000e\u001a\u00020\u000fH\u0016J\u0013\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00040\fH\u0016¢\u0006\u0002\u0010\rJ\b\u0010\u0011\u001a\u00020\u0012H\u0016J\b\u0010\u0013\u001a\u00020\u000fH\u0016R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0015"}, d2 = {"Lkotlin/reflect/WildcardTypeImpl;", "Ljava/lang/reflect/WildcardType;", "Lkotlin/reflect/TypeImpl;", "upperBound", "Ljava/lang/reflect/Type;", "lowerBound", "(Ljava/lang/reflect/Type;Ljava/lang/reflect/Type;)V", "equals", "", "other", "", "getLowerBounds", "", "()[Ljava/lang/reflect/Type;", "getTypeName", "", "getUpperBounds", "hashCode", "", "toString", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
@ExperimentalStdlibApi
@SourceDebugExtension({"SMAP\nTypesJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/WildcardTypeImpl\n+ 2 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,230:1\n26#2:231\n*S KotlinDebug\n*F\n+ 1 TypesJVM.kt\nkotlin/reflect/WildcardTypeImpl\n*L\n163#1:231\n*E\n"})
/* loaded from: classes3.dex */
public final class WildcardTypeImpl implements WildcardType, TypeImpl {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final WildcardTypeImpl STAR = new WildcardTypeImpl(null, null);
private final Type lowerBound;
private final Type upperBound;
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/WildcardTypeImpl$Companion;", "", "()V", "STAR", "Lkotlin/reflect/WildcardTypeImpl;", "getSTAR", "()Lkotlin/reflect/WildcardTypeImpl;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final WildcardTypeImpl getSTAR() {
return WildcardTypeImpl.STAR;
}
private Companion() {
}
}
public WildcardTypeImpl(Type type, Type type2) {
this.upperBound = type;
this.lowerBound = type2;
}
public boolean equals(Object other) {
if (!(other instanceof WildcardType)) {
return false;
}
WildcardType wildcardType = (WildcardType) other;
return Arrays.equals(getUpperBounds(), wildcardType.getUpperBounds()) && Arrays.equals(getLowerBounds(), wildcardType.getLowerBounds());
}
@Override // java.lang.reflect.WildcardType
public Type[] getLowerBounds() {
Type type = this.lowerBound;
return type == null ? new Type[0] : new Type[]{type};
}
@Override // java.lang.reflect.Type, kotlin.reflect.TypeImpl
public String getTypeName() {
String typeToString;
String typeToString2;
if (this.lowerBound != null) {
StringBuilder sb = new StringBuilder("? super ");
typeToString2 = TypesJVMKt.typeToString(this.lowerBound);
sb.append(typeToString2);
return sb.toString();
}
Type type = this.upperBound;
if (type == null || Intrinsics.areEqual(type, Object.class)) {
return "?";
}
StringBuilder sb2 = new StringBuilder("? extends ");
typeToString = TypesJVMKt.typeToString(this.upperBound);
sb2.append(typeToString);
return sb2.toString();
}
@Override // java.lang.reflect.WildcardType
public Type[] getUpperBounds() {
Type type = this.upperBound;
if (type == null) {
type = Object.class;
}
return new Type[]{type};
}
public int hashCode() {
return Arrays.hashCode(getLowerBounds()) ^ Arrays.hashCode(getUpperBounds());
}
public String toString() {
return getTypeName();
}
}
@@ -0,0 +1,16 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.internal.Intrinsics;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/full/IllegalCallableAccessException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "Ljava/lang/IllegalAccessException;", "(Ljava/lang/IllegalAccessException;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class IllegalCallableAccessException extends Exception {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IllegalCallableAccessException(IllegalAccessException cause) {
super(cause);
Intrinsics.checkNotNullParameter(cause, "cause");
}
}
@@ -0,0 +1,16 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.internal.Intrinsics;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/full/IllegalPropertyDelegateAccessException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "Ljava/lang/IllegalAccessException;", "(Ljava/lang/IllegalAccessException;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class IllegalPropertyDelegateAccessException extends Exception {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public IllegalPropertyDelegateAccessException(IllegalAccessException cause) {
super("Cannot obtain the delegate of a non-accessible property. Use \"isAccessible = true\" to make the property accessible", cause);
Intrinsics.checkNotNullParameter(cause, "cause");
}
}
@@ -0,0 +1,71 @@
package kotlin.reflect.full;
import java.lang.annotation.Annotation;
import java.lang.annotation.Repeatable;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0002\b\u0003\bÂ\u0002\u0018\u00002\u00020\u0001:\u0001\u000eB\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\b\u0010\t\u001a\u00020\u0004H\u0002J \u0010\n\u001a\f\u0012\u0006\b\u0001\u0012\u00020\f\u0018\u00010\u000b2\u000e\u0010\r\u001a\n\u0012\u0006\b\u0001\u0012\u00020\f0\u000bR\u001c\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\b¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/full/Java8RepeatableContainerLoader;", "", "()V", "cache", "Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "getCache", "()Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "setCache", "(Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;)V", "buildCache", "loadRepeatableContainer", "Ljava/lang/Class;", "", "klass", "Cache", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKAnnotatedElements.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/Java8RepeatableContainerLoader\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,102:1\n1#2:103\n*E\n"})
/* loaded from: classes3.dex */
final class Java8RepeatableContainerLoader {
public static final Java8RepeatableContainerLoader INSTANCE = new Java8RepeatableContainerLoader();
private static Cache cache;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u00002\u00020\u0001B!\u0012\u0010\u0010\u0002\u001a\f\u0012\u0006\b\u0001\u0012\u00020\u0004\u0018\u00010\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007R\u001b\u0010\u0002\u001a\f\u0012\u0006\b\u0001\u0012\u00020\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\f"}, d2 = {"Lkotlin/reflect/full/Java8RepeatableContainerLoader$Cache;", "", "repeatableClass", "Ljava/lang/Class;", "", "valueMethod", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/lang/reflect/Method;)V", "getRepeatableClass", "()Ljava/lang/Class;", "getValueMethod", "()Ljava/lang/reflect/Method;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Cache {
private final Class<? extends Annotation> repeatableClass;
private final Method valueMethod;
public Cache(Class<? extends Annotation> cls, Method method) {
this.repeatableClass = cls;
this.valueMethod = method;
}
public final Class<? extends Annotation> getRepeatableClass() {
return this.repeatableClass;
}
public final Method getValueMethod() {
return this.valueMethod;
}
}
private Java8RepeatableContainerLoader() {
}
private final Cache buildCache() {
try {
Intrinsics.checkNotNull(Repeatable.class, "null cannot be cast to non-null type java.lang.Class<out kotlin.Annotation>");
return new Cache(Repeatable.class, Repeatable.class.getMethod("value", new Class[0]));
} catch (ClassNotFoundException unused) {
return new Cache(null, null);
}
}
public final Class<? extends Annotation> loadRepeatableContainer(Class<? extends Annotation> klass) {
Annotation annotation;
Method valueMethod;
Intrinsics.checkNotNullParameter(klass, "klass");
Cache cache2 = cache;
if (cache2 == null) {
synchronized (this) {
cache2 = cache;
if (cache2 == null) {
cache2 = INSTANCE.buildCache();
cache = cache2;
}
}
}
Class repeatableClass = cache2.getRepeatableClass();
if (repeatableClass == null || (annotation = klass.getAnnotation(repeatableClass)) == null || (valueMethod = cache2.getValueMethod()) == null) {
return null;
}
Object invoke = valueMethod.invoke(annotation, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type java.lang.Class<out kotlin.Annotation>");
return (Class) invoke;
}
}
@@ -0,0 +1,108 @@
package kotlin.reflect.full;
import java.lang.annotation.Annotation;
import java.util.Iterator;
import java.util.List;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.WasExperimental;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KAnnotatedElement;
import kotlin.reflect.KClass;
@Metadata(d1 = {"\u0000\"\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\u001a \u0010\u0000\u001a\u0004\u0018\u0001H\u0001\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b¢\u0006\u0002\u0010\u0004\u001a\u001f\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0006\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b\u001a*\u0010\u0005\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0006\"\b\b\u0000\u0010\u0001*\u00020\u0002*\u00020\u00032\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00010\bH\u0007\u001a\u0019\u0010\t\u001a\u00020\n\"\n\b\u0000\u0010\u0001\u0018\u0001*\u00020\u0002*\u00020\u0003H\u0087\b¨\u0006\u000b"}, d2 = {"findAnnotation", "T", "", "Lkotlin/reflect/KAnnotatedElement;", "(Lkotlin/reflect/KAnnotatedElement;)Ljava/lang/annotation/Annotation;", "findAnnotations", "", "klass", "Lkotlin/reflect/KClass;", "hasAnnotation", "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KAnnotatedElements")
@SourceDebugExtension({"SMAP\nKAnnotatedElements.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/KAnnotatedElements\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,102:1\n20#1:105\n288#2,2:103\n288#2,2:106\n288#2,2:108\n*S KotlinDebug\n*F\n+ 1 KAnnotatedElements.kt\nkotlin/reflect/full/KAnnotatedElements\n*L\n29#1:105\n20#1:103,2\n29#1:106,2\n62#1:108,2\n*E\n"})
/* loaded from: classes3.dex */
public final class KAnnotatedElements {
@SinceKotlin(version = "1.1")
public static final /* synthetic */ <T extends Annotation> T findAnnotation(KAnnotatedElement kAnnotatedElement) {
Object obj;
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
Annotation annotation = (Annotation) obj;
Intrinsics.reifiedOperationMarker(3, "T");
if (annotation != null) {
break;
}
}
Intrinsics.reifiedOperationMarker(1, "T?");
return (T) obj;
}
@SinceKotlin(version = "1.7")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final /* synthetic */ <T extends Annotation> List<T> findAnnotations(KAnnotatedElement kAnnotatedElement) {
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Intrinsics.reifiedOperationMarker(4, "T");
return findAnnotations(kAnnotatedElement, Reflection.getOrCreateKotlinClass(Annotation.class));
}
@SinceKotlin(version = "1.4")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final /* synthetic */ <T extends Annotation> boolean hasAnnotation(KAnnotatedElement kAnnotatedElement) {
Object obj;
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
Annotation annotation = (Annotation) obj;
Intrinsics.reifiedOperationMarker(3, "T");
if (annotation != null) {
break;
}
}
Intrinsics.reifiedOperationMarker(1, "T?");
return ((Annotation) obj) != null;
}
@SinceKotlin(version = "1.7")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public static final <T extends Annotation> List<T> findAnnotations(KAnnotatedElement kAnnotatedElement, KClass<T> klass) {
Object obj;
Intrinsics.checkNotNullParameter(kAnnotatedElement, "<this>");
Intrinsics.checkNotNullParameter(klass, "klass");
List<T> filterIsInstance = CollectionsKt.filterIsInstance(kAnnotatedElement.getAnnotations(), JvmClassMappingKt.getJavaClass((KClass) klass));
if (!filterIsInstance.isEmpty()) {
return filterIsInstance;
}
Class<? extends Annotation> loadRepeatableContainer = Java8RepeatableContainerLoader.INSTANCE.loadRepeatableContainer(JvmClassMappingKt.getJavaClass((KClass) klass));
if (loadRepeatableContainer != null) {
Iterator<T> it = kAnnotatedElement.getAnnotations().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
if (Intrinsics.areEqual(JvmClassMappingKt.getJavaClass(JvmClassMappingKt.getAnnotationClass((Annotation) obj)), loadRepeatableContainer)) {
break;
}
}
Annotation annotation = (Annotation) obj;
if (annotation != null) {
Object invoke = annotation.getClass().getMethod("value", new Class[0]).invoke(annotation, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Array<T of kotlin.reflect.full.KAnnotatedElements.findAnnotations>");
return ArraysKt.asList((Annotation[]) invoke);
}
}
return CollectionsKt.emptyList();
}
}
@@ -0,0 +1,28 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.IntCompanionObject;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
@DebugMetadata(c = "kotlin.reflect.full.KCallables", f = "KCallables.kt", i = {0, 0}, l = {56}, m = "callSuspend", n = {"$this$callSuspend", "args"}, s = {"L$0", "L$1"})
/* loaded from: classes3.dex */
public final class KCallables$callSuspend$1<R> extends ContinuationImpl {
Object L$0;
Object L$1;
int label;
/* synthetic */ Object result;
public KCallables$callSuspend$1(Continuation<? super KCallables$callSuspend$1> continuation) {
super(continuation);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.result = obj;
this.label |= IntCompanionObject.MIN_VALUE;
return KCallables.callSuspend(null, null, this);
}
}
@@ -0,0 +1,29 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.coroutines.Continuation;
import kotlin.coroutines.jvm.internal.ContinuationImpl;
import kotlin.coroutines.jvm.internal.DebugMetadata;
import kotlin.jvm.internal.IntCompanionObject;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
@DebugMetadata(c = "kotlin.reflect.full.KCallables", f = "KCallables.kt", i = {0, 0, 0}, l = {74}, m = "callSuspendBy", n = {"$this$callSuspendBy", "args", "kCallable"}, s = {"L$0", "L$1", "L$2"})
/* loaded from: classes3.dex */
public final class KCallables$callSuspendBy$1<R> extends ContinuationImpl {
Object L$0;
Object L$1;
Object L$2;
int label;
/* synthetic */ Object result;
public KCallables$callSuspendBy$1(Continuation<? super KCallables$callSuspendBy$1> continuation) {
super(continuation);
}
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
public final Object invokeSuspend(Object obj) {
this.result = obj;
this.label |= IntCompanionObject.MIN_VALUE;
return KCallables.callSuspendBy(null, null, this);
}
}
@@ -0,0 +1,316 @@
package kotlin.reflect.full;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KParameter;
@Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\u001a6\u0010\u000f\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u00100\u00022\u0016\u0010\u0011\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00130\u0012\"\u0004\u0018\u00010\u0013H\u0087@¢\u0006\u0002\u0010\u0014\u001a4\u0010\u0015\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u0010*\b\u0012\u0004\u0012\u0002H\u00100\u00022\u0014\u0010\u0011\u001a\u0010\u0012\u0004\u0012\u00020\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00130\u0016H\u0087@¢\u0006\u0002\u0010\u0017\u001a\u001a\u0010\u0018\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\u0019\u001a\u00020\u001aH\u0007\"$\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"$\u0010\u0007\u001a\u0004\u0018\u00010\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\b\u0010\u0004\u001a\u0004\b\t\u0010\u0006\"(\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00010\u000b*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\f\u0010\u0004\u001a\u0004\b\r\u0010\u000e¨\u0006\u001b"}, d2 = {"extensionReceiverParameter", "Lkotlin/reflect/KParameter;", "Lkotlin/reflect/KCallable;", "getExtensionReceiverParameter$annotations", "(Lkotlin/reflect/KCallable;)V", "getExtensionReceiverParameter", "(Lkotlin/reflect/KCallable;)Lkotlin/reflect/KParameter;", "instanceParameter", "getInstanceParameter$annotations", "getInstanceParameter", "valueParameters", "", "getValueParameters$annotations", "getValueParameters", "(Lkotlin/reflect/KCallable;)Ljava/util/List;", "callSuspend", "R", "args", "", "", "(Lkotlin/reflect/KCallable;[Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "callSuspendBy", "", "(Lkotlin/reflect/KCallable;Ljava/util/Map;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "findParameterByName", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KCallables")
@SourceDebugExtension({"SMAP\nKCallables.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KCallables.kt\nkotlin/reflect/full/KCallables\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,82:1\n661#2,11:83\n661#2,11:94\n766#2:105\n857#2,2:106\n661#2,11:108\n1#3:119\n*S KotlinDebug\n*F\n+ 1 KCallables.kt\nkotlin/reflect/full/KCallables\n*L\n23#1:83,11\n31#1:94,11\n38#1:105\n38#1:106,2\n45#1:108,11\n*E\n"})
/* loaded from: classes3.dex */
public final class KCallables {
/* JADX WARN: Removed duplicated region for block: B:20:0x0039 */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@kotlin.SinceKotlin(version = "1.3")
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final <R> java.lang.Object callSuspend(kotlin.reflect.KCallable<? extends R> r4, java.lang.Object[] r5, kotlin.coroutines.Continuation<? super R> r6) {
/*
boolean r0 = r6 instanceof kotlin.reflect.full.KCallables$callSuspend$1
if (r0 == 0) goto L13
r0 = r6
kotlin.reflect.full.KCallables$callSuspend$1 r0 = (kotlin.reflect.full.KCallables$callSuspend$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.label = r1
goto L18
L13:
kotlin.reflect.full.KCallables$callSuspend$1 r0 = new kotlin.reflect.full.KCallables$callSuspend$1
r0.<init>(r6)
L18:
java.lang.Object r6 = r0.result
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.label
r3 = 1
if (r2 == 0) goto L39
if (r2 != r3) goto L31
java.lang.Object r4 = r0.L$1
java.lang.Object[] r4 = (java.lang.Object[]) r4
java.lang.Object r4 = r0.L$0
kotlin.reflect.KCallable r4 = (kotlin.reflect.KCallable) r4
kotlin.ResultKt.throwOnFailure(r6)
goto L7c
L31:
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
r4.<init>(r5)
throw r4
L39:
kotlin.ResultKt.throwOnFailure(r6)
boolean r6 = r4.isSuspend()
if (r6 != 0) goto L4c
int r6 = r5.length
java.lang.Object[] r5 = java.util.Arrays.copyOf(r5, r6)
java.lang.Object r4 = r4.call(r5)
return r4
L4c:
boolean r6 = r4 instanceof kotlin.reflect.KFunction
if (r6 == 0) goto L9e
r0.L$0 = r4
r0.L$1 = r5
r0.label = r3
kotlin.jvm.internal.SpreadBuilder r6 = new kotlin.jvm.internal.SpreadBuilder
r2 = 2
r6.<init>(r2)
r6.addSpread(r5)
r6.add(r0)
int r5 = r6.size()
java.lang.Object[] r5 = new java.lang.Object[r5]
java.lang.Object[] r5 = r6.toArray(r5)
java.lang.Object r6 = r4.call(r5)
java.lang.Object r5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
if (r6 != r5) goto L79
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
L79:
if (r6 != r1) goto L7c
return r1
L7c:
kotlin.reflect.KType r5 = r4.getReturnType()
kotlin.reflect.KClassifier r5 = r5.getClassifier()
java.lang.Class<kotlin.Unit> r0 = kotlin.Unit.class
kotlin.reflect.KClass r0 = kotlin.jvm.internal.Reflection.getOrCreateKotlinClass(r0)
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r5, r0)
if (r5 == 0) goto L9d
kotlin.reflect.KType r4 = r4.getReturnType()
boolean r4 = r4.isMarkedNullable()
if (r4 != 0) goto L9d
kotlin.Unit r4 = kotlin.Unit.INSTANCE
return r4
L9d:
return r6
L9e:
java.lang.IllegalArgumentException r5 = new java.lang.IllegalArgumentException
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "Cannot callSuspend on a property "
r6.<init>(r0)
r6.append(r4)
java.lang.String r4 = ": suspend properties are not supported yet"
r6.append(r4)
java.lang.String r4 = r6.toString()
r5.<init>(r4)
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.full.KCallables.callSuspend(kotlin.reflect.KCallable, java.lang.Object[], kotlin.coroutines.Continuation):java.lang.Object");
}
/* JADX WARN: Removed duplicated region for block: B:20:0x003d */
/* JADX WARN: Removed duplicated region for block: B:8:0x0023 */
@kotlin.SinceKotlin(version = "1.3")
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final <R> java.lang.Object callSuspendBy(kotlin.reflect.KCallable<? extends R> r4, java.util.Map<kotlin.reflect.KParameter, ? extends java.lang.Object> r5, kotlin.coroutines.Continuation<? super R> r6) {
/*
boolean r0 = r6 instanceof kotlin.reflect.full.KCallables$callSuspendBy$1
if (r0 == 0) goto L13
r0 = r6
kotlin.reflect.full.KCallables$callSuspendBy$1 r0 = (kotlin.reflect.full.KCallables$callSuspendBy$1) r0
int r1 = r0.label
r2 = -2147483648(0xffffffff80000000, float:-0.0)
r3 = r1 & r2
if (r3 == 0) goto L13
int r1 = r1 - r2
r0.label = r1
goto L18
L13:
kotlin.reflect.full.KCallables$callSuspendBy$1 r0 = new kotlin.reflect.full.KCallables$callSuspendBy$1
r0.<init>(r6)
L18:
java.lang.Object r6 = r0.result
java.lang.Object r1 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
int r2 = r0.label
r3 = 1
if (r2 == 0) goto L3d
if (r2 != r3) goto L35
java.lang.Object r4 = r0.L$2
kotlin.reflect.jvm.internal.KCallableImpl r4 = (kotlin.reflect.jvm.internal.KCallableImpl) r4
java.lang.Object r4 = r0.L$1
java.util.Map r4 = (java.util.Map) r4
java.lang.Object r4 = r0.L$0
kotlin.reflect.KCallable r4 = (kotlin.reflect.KCallable) r4
kotlin.ResultKt.throwOnFailure(r6)
goto L6d
L35:
java.lang.IllegalStateException r4 = new java.lang.IllegalStateException
java.lang.String r5 = "call to 'resume' before 'invoke' with coroutine"
r4.<init>(r5)
throw r4
L3d:
kotlin.ResultKt.throwOnFailure(r6)
boolean r6 = r4.isSuspend()
if (r6 != 0) goto L4b
java.lang.Object r4 = r4.callBy(r5)
return r4
L4b:
boolean r6 = r4 instanceof kotlin.reflect.KFunction
if (r6 == 0) goto La3
kotlin.reflect.jvm.internal.KCallableImpl r6 = kotlin.reflect.jvm.internal.UtilKt.asKCallableImpl(r4)
if (r6 == 0) goto L8f
r0.L$0 = r4
r0.L$1 = r5
r0.L$2 = r6
r0.label = r3
java.lang.Object r6 = r6.callDefaultMethod$kotlin_reflection(r5, r0)
java.lang.Object r5 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
if (r6 != r5) goto L6a
kotlin.coroutines.jvm.internal.DebugProbesKt.probeCoroutineSuspended(r0)
L6a:
if (r6 != r1) goto L6d
return r1
L6d:
kotlin.reflect.KType r5 = r4.getReturnType()
kotlin.reflect.KClassifier r5 = r5.getClassifier()
java.lang.Class<kotlin.Unit> r0 = kotlin.Unit.class
kotlin.reflect.KClass r0 = kotlin.jvm.internal.Reflection.getOrCreateKotlinClass(r0)
boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual(r5, r0)
if (r5 == 0) goto L8e
kotlin.reflect.KType r4 = r4.getReturnType()
boolean r4 = r4.isMarkedNullable()
if (r4 != 0) goto L8e
kotlin.Unit r4 = kotlin.Unit.INSTANCE
return r4
L8e:
return r6
L8f:
kotlin.reflect.jvm.internal.KotlinReflectionInternalError r5 = new kotlin.reflect.jvm.internal.KotlinReflectionInternalError
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "This callable does not support a default call: "
r6.<init>(r0)
r6.append(r4)
java.lang.String r4 = r6.toString()
r5.<init>(r4)
throw r5
La3:
java.lang.IllegalArgumentException r5 = new java.lang.IllegalArgumentException
java.lang.StringBuilder r6 = new java.lang.StringBuilder
java.lang.String r0 = "Cannot callSuspendBy on a property "
r6.<init>(r0)
r6.append(r4)
java.lang.String r4 = ": suspend properties are not supported yet"
r6.append(r4)
java.lang.String r4 = r6.toString()
r5.<init>(r4)
throw r5
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.full.KCallables.callSuspendBy(kotlin.reflect.KCallable, java.util.Map, kotlin.coroutines.Continuation):java.lang.Object");
}
@SinceKotlin(version = "1.1")
public static final KParameter findParameterByName(KCallable<?> kCallable, String name) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
Intrinsics.checkNotNullParameter(name, "name");
Iterator<T> it = kCallable.getParameters().iterator();
Object obj = null;
boolean z3 = false;
Object obj2 = null;
while (true) {
if (it.hasNext()) {
Object next = it.next();
if (Intrinsics.areEqual(((KParameter) next).getName(), name)) {
if (z3) {
break;
}
z3 = true;
obj2 = next;
}
} else if (z3) {
obj = obj2;
}
}
return (KParameter) obj;
}
public static final KParameter getExtensionReceiverParameter(KCallable<?> kCallable) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
Iterator<T> it = kCallable.getParameters().iterator();
Object obj = null;
boolean z3 = false;
Object obj2 = null;
while (true) {
if (it.hasNext()) {
Object next = it.next();
if (((KParameter) next).getKind() == KParameter.Kind.EXTENSION_RECEIVER) {
if (z3) {
break;
}
z3 = true;
obj2 = next;
}
} else if (z3) {
obj = obj2;
}
}
return (KParameter) obj;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getExtensionReceiverParameter$annotations(KCallable kCallable) {
}
public static final KParameter getInstanceParameter(KCallable<?> kCallable) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
Iterator<T> it = kCallable.getParameters().iterator();
Object obj = null;
boolean z3 = false;
Object obj2 = null;
while (true) {
if (it.hasNext()) {
Object next = it.next();
if (((KParameter) next).getKind() == KParameter.Kind.INSTANCE) {
if (z3) {
break;
}
z3 = true;
obj2 = next;
}
} else if (z3) {
obj = obj2;
}
}
return (KParameter) obj;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getInstanceParameter$annotations(KCallable kCallable) {
}
public static final List<KParameter> getValueParameters(KCallable<?> kCallable) {
Intrinsics.checkNotNullParameter(kCallable, "<this>");
List<KParameter> parameters = kCallable.getParameters();
ArrayList arrayList = new ArrayList();
for (Object obj : parameters) {
if (((KParameter) obj).getKind() == KParameter.Kind.VALUE) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getValueParameters$annotations(KCallable kCallable) {
}
}
@@ -0,0 +1,575 @@
package kotlin.reflect.full;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
import kotlin.Deprecated;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.TypeCastException;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.KFunction;
import kotlin.reflect.KParameter;
import kotlin.reflect.KProperty0;
import kotlin.reflect.KProperty1;
import kotlin.reflect.KProperty2;
import kotlin.reflect.KType;
import kotlin.reflect.jvm.internal.KCallableImpl;
import kotlin.reflect.jvm.internal.KClassImpl;
import kotlin.reflect.jvm.internal.KFunctionImpl;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutor;
import kotlin.reflect.jvm.internal.impl.types.Variance;
import kotlin.reflect.jvm.internal.impl.utils.DFS;
@Metadata(d1 = {"\u0000Z\n\u0000\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0016\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\r\u001a+\u0010S\u001a\u0002H\u001d\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00022\b\u0010T\u001a\u0004\u0018\u00010\u0010H\u0007¢\u0006\u0002\u0010U\u001a!\u0010V\u001a\u0002H\u001d\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u0002H\u0007¢\u0006\u0002\u0010\u0013\u001a\u001c\u0010W\u001a\u000203*\u0006\u0012\u0002\b\u00030\u00022\n\u0010X\u001a\u0006\u0012\u0002\b\u00030\u0002H\u0007\u001a\u001c\u0010Y\u001a\u000203*\u0006\u0012\u0002\b\u00030\u00022\n\u0010Z\u001a\u0006\u0012\u0002\b\u00030\u0002H\u0007\u001a-\u0010[\u001a\u0004\u0018\u0001H\u001d\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00022\b\u0010T\u001a\u0004\u0018\u00010\u0010H\u0007¢\u0006\u0002\u0010U\",\u0010\u0000\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006\"(\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\b0\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\t\u0010\u0004\u001a\u0004\b\n\u0010\u0006\"(\u0010\u000b\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0002*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\f\u0010\u0004\u001a\u0004\b\r\u0010\u000e\"$\u0010\u000f\u001a\u0004\u0018\u00010\u0010*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0011\u0010\u0004\u001a\u0004\b\u0012\u0010\u0013\",\u0010\u0014\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0016\u0010\u0004\u001a\u0004\b\u0017\u0010\u0006\",\u0010\u0018\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0019\u0010\u0004\u001a\u0004\b\u001a\u0010\u0006\"B\u0010\u001b\u001a\u0016\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u001c0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u001e\u0010\u0004\u001a\u0004\b\u001f\u0010\u0006\",\u0010 \u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b!\u0010\u0004\u001a\u0004\b\"\u0010\u0006\">\u0010#\u001a\u0012\u0012\u000e\u0012\f\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u00030$0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b%\u0010\u0004\u001a\u0004\b&\u0010\u0006\",\u0010'\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030(0\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b)\u0010\u0004\u001a\u0004\b*\u0010\u0006\"\"\u0010+\u001a\u00020\b*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b,\u0010\u0004\u001a\u0004\b-\u0010.\",\u0010/\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b0\u0010\u0004\u001a\u0004\b1\u0010\u0006\"\u001c\u00102\u001a\u000203*\u0006\u0012\u0002\b\u0003048BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b2\u00105\"\u001c\u00106\u001a\u000203*\u0006\u0012\u0002\b\u0003048BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b6\u00105\",\u00107\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b8\u0010\u0004\u001a\u0004\b9\u0010\u0006\"B\u0010:\u001a\u0016\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u001c0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b;\u0010\u0004\u001a\u0004\b<\u0010\u0006\",\u0010=\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u0002\b\u00030\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b>\u0010\u0004\u001a\u0004\b?\u0010\u0006\">\u0010@\u001a\u0012\u0012\u000e\u0012\f\u0012\u0004\u0012\u0002H\u001d\u0012\u0002\b\u00030$0\u0001\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\bA\u0010\u0004\u001a\u0004\bB\u0010\u0006\"6\u0010C\u001a\n\u0012\u0004\u0012\u0002H\u001d\u0018\u00010\u0015\"\b\b\u0000\u0010\u001d*\u00020\u0010*\b\u0012\u0004\u0012\u0002H\u001d0\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\bD\u0010\u0004\u001a\u0004\bE\u0010F\",\u0010G\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00150\u0001*\u0006\u0012\u000Line truncated
@JvmName(name = "KClasses")
@SourceDebugExtension({"SMAP\nKClasses.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KClasses.kt\nkotlin/reflect/full/KClasses\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,281:1\n288#2,2:282\n288#2,2:284\n800#2,11:286\n800#2,11:297\n766#2:308\n857#2,2:309\n766#2:311\n857#2,2:312\n800#2,11:314\n766#2:325\n857#2,2:326\n766#2:328\n857#2,2:329\n766#2:331\n857#2,2:332\n766#2:334\n857#2,2:335\n766#2:337\n857#2,2:338\n766#2:340\n857#2,2:341\n766#2:343\n857#2,2:344\n1603#2,9:346\n1855#2:355\n1856#2:357\n1612#2:358\n1549#2:359\n1620#2,3:360\n661#2,4:363\n1726#2,3:367\n665#2,7:370\n1549#2:377\n1620#2,3:378\n1#3:356\n*S KotlinDebug\n*F\n+ 1 KClasses.kt\nkotlin/reflect/full/KClasses\n*L\n36#1:282,2\n47#1:284,2\n89#1:286,11\n96#1:297,11\n103#1:308\n103#1:309,2\n110#1:311\n110#1:312,2\n119#1:314,11\n126#1:325\n126#1:326,2\n133#1:328\n133#1:329,2\n141#1:331\n141#1:332,2\n148#1:334\n148#1:335,2\n155#1:337\n155#1:338,2\n162#1:340\n162#1:341,2\n169#1:343\n169#1:344,2\n184#1:346,9\n184#1:355\n184#1:357\n184#1:358\n223#1:359\n223#1:360,3\n276#1:363,4\n276#1:367,3\n276#1:370,7\n200#1:377\n200#1:378,3\n184#1:356\n*E\n"})
/* loaded from: classes3.dex */
public final class KClasses {
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
public static final Iterable _get_allSupertypes_$lambda$14(KType kType) {
int collectionSizeOrDefault;
KClassifier classifier = kType.getClassifier();
Function0 function0 = null;
Object[] objArr = 0;
KClass kClass = classifier instanceof KClass ? (KClass) classifier : null;
if (kClass == null) {
throw new KotlinReflectionInternalError("Supertype not a class: " + kType);
}
List<KType> supertypes = kClass.getSupertypes();
if (kType.getArguments().isEmpty()) {
return supertypes;
}
Intrinsics.checkNotNull(kType, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
TypeSubstitutor create = TypeSubstitutor.create(((KTypeImpl) kType).getType());
List<KType> list = supertypes;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (KType kType2 : list) {
Intrinsics.checkNotNull(kType2, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
KotlinType substitute = create.substitute(((KTypeImpl) kType2).getType(), Variance.INVARIANT);
if (substitute == null) {
throw new KotlinReflectionInternalError("Type substitution failed: " + kType2 + " (" + kType + ')');
}
Intrinsics.checkNotNull(substitute);
arrayList.add(new KTypeImpl(substitute, function0, 2, objArr == true ? 1 : 0));
}
return arrayList;
}
/* JADX WARN: Multi-variable type inference failed */
@SinceKotlin(version = "1.1")
public static final <T> T cast(KClass<T> kClass, Object obj) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
if (kClass.isInstance(obj)) {
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of kotlin.reflect.full.KClasses.cast");
return obj;
}
throw new TypeCastException("Value cannot be cast to " + kClass.getQualifiedName());
}
@SinceKotlin(version = "1.1")
public static final <T> T createInstance(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Iterator<T> it = kClass.getConstructors().iterator();
T t2 = null;
boolean z3 = false;
T t4 = null;
while (true) {
if (it.hasNext()) {
T next = it.next();
List<KParameter> parameters = ((KFunction) next).getParameters();
if (!(parameters instanceof Collection) || !parameters.isEmpty()) {
Iterator<T> it2 = parameters.iterator();
while (it2.hasNext()) {
if (!((KParameter) it2.next()).isOptional()) {
break;
}
}
}
if (z3) {
break;
}
z3 = true;
t4 = next;
} else if (z3) {
t2 = t4;
}
}
KFunction kFunction = (KFunction) t2;
if (kFunction != null) {
return (T) kFunction.callBy(MapsKt.emptyMap());
}
throw new IllegalArgumentException("Class should have a single no-arg constructor: " + kClass);
}
public static final Collection<KClass<?>> getAllSuperclasses(KClass<?> kClass) {
int collectionSizeOrDefault;
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KType> allSupertypes = getAllSupertypes(kClass);
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(allSupertypes, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (KType kType : allSupertypes) {
KClassifier classifier = kType.getClassifier();
KClass kClass2 = classifier instanceof KClass ? (KClass) classifier : null;
if (kClass2 == null) {
throw new KotlinReflectionInternalError("Supertype not a class: " + kType);
}
arrayList.add(kClass2);
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getAllSuperclasses$annotations(KClass kClass) {
}
public static final Collection<KType> getAllSupertypes(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Object dfs = DFS.dfs(kClass.getSupertypes(), new DFS.Neighbors() { // from class: kotlin.reflect.full.KClasses$$Lambda$0
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.Neighbors
public Iterable getNeighbors(Object obj) {
Iterable _get_allSupertypes_$lambda$14;
_get_allSupertypes_$lambda$14 = KClasses._get_allSupertypes_$lambda$14((KType) obj);
return _get_allSupertypes_$lambda$14;
}
}, new DFS.VisitedWithSet(), new DFS.NodeHandlerWithListResult<KType, KType>() { // from class: kotlin.reflect.full.KClasses$allSupertypes$2
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.AbstractNodeHandler, kotlin.reflect.jvm.internal.impl.utils.DFS.NodeHandler
public boolean beforeChildren(KType current) {
Intrinsics.checkNotNullParameter(current, "current");
((LinkedList) this.result).add(current);
return true;
}
});
Intrinsics.checkNotNullExpressionValue(dfs, "dfs(...)");
return (Collection) dfs;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getAllSupertypes$annotations(KClass kClass) {
}
public static final KClass<?> getCompanionObject(KClass<?> kClass) {
Object obj;
Intrinsics.checkNotNullParameter(kClass, "<this>");
Iterator<T> it = kClass.getNestedClasses().iterator();
while (true) {
if (!it.hasNext()) {
obj = null;
break;
}
obj = it.next();
KClass kClass2 = (KClass) obj;
Intrinsics.checkNotNull(kClass2, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<*>");
if (((KClassImpl) kClass2).getDescriptor().isCompanionObject()) {
break;
}
}
return (KClass) obj;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getCompanionObject$annotations(KClass kClass) {
}
public static final Object getCompanionObjectInstance(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
KClass<?> companionObject = getCompanionObject(kClass);
if (companionObject != null) {
return companionObject.getObjectInstance();
}
return null;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getCompanionObjectInstance$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getDeclaredFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : declaredMembers) {
if (obj instanceof KFunction) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredFunctions$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getDeclaredMemberExtensionFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberExtensionFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty2<T, ?, ?>> getDeclaredMemberExtensionProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KProperty2)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberExtensionProperties$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getDeclaredMemberFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty1<T, ?>> getDeclaredMemberProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> declaredNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getDeclaredNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : declaredNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KProperty1)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMemberProperties$annotations(KClass kClass) {
}
public static final Collection<KCallable<?>> getDeclaredMembers(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
return ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getDeclaredMembers();
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDeclaredMembers$annotations(KClass kClass) {
}
public static final KType getDefaultType(final KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
SimpleType defaultType = ((KClassImpl) kClass).getDescriptor().getDefaultType();
Intrinsics.checkNotNullExpressionValue(defaultType, "getDefaultType(...)");
return new KTypeImpl(defaultType, new Function0<Type>() { // from class: kotlin.reflect.full.KClasses$defaultType$1
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
return ((KClassImpl) kClass).getJClass();
}
});
}
@Deprecated(message = "This function creates a type which rarely makes sense for generic classes. For example, such type can only be used in signatures of members of that class. Use starProjectedType or createType() for clearer semantics.")
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getDefaultType$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallable<?>> members = kClass.getMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : members) {
if (obj instanceof KFunction) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getFunctions$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getMemberExtensionFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberExtensionFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty2<T, ?, ?>> getMemberExtensionProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isExtension(kCallableImpl) && (kCallableImpl instanceof KProperty2)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberExtensionProperties$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getMemberFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KFunction)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberFunctions$annotations(KClass kClass) {
}
public static final <T> Collection<KProperty1<T, ?>> getMemberProperties(KClass<T> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allNonStaticMembers = ((KClassImpl) kClass).getData().getValue().getAllNonStaticMembers();
ArrayList arrayList = new ArrayList();
for (T t2 : allNonStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) t2;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KProperty1)) {
arrayList.add(t2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getMemberProperties$annotations(KClass kClass) {
}
public static final <T> KFunction<T> getPrimaryConstructor(KClass<T> kClass) {
T t2;
Intrinsics.checkNotNullParameter(kClass, "<this>");
Iterator<T> it = ((KClassImpl) kClass).getConstructors().iterator();
while (true) {
if (!it.hasNext()) {
t2 = null;
break;
}
t2 = it.next();
KFunction kFunction = (KFunction) t2;
Intrinsics.checkNotNull(kFunction, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KFunctionImpl");
FunctionDescriptor descriptor = ((KFunctionImpl) kFunction).getDescriptor();
Intrinsics.checkNotNull(descriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ConstructorDescriptor");
if (((ConstructorDescriptor) descriptor).isPrimary()) {
break;
}
}
return (KFunction) t2;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getPrimaryConstructor$annotations(KClass kClass) {
}
public static final Collection<KFunction<?>> getStaticFunctions(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allStaticMembers) {
if (obj instanceof KFunction) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getStaticFunctions$annotations(KClass kClass) {
}
public static final Collection<KProperty0<?>> getStaticProperties(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Collection<KCallableImpl<?>> allStaticMembers = ((KClassImpl.Data) ((KClassImpl) kClass).getData().getValue()).getAllStaticMembers();
ArrayList arrayList = new ArrayList();
for (Object obj : allStaticMembers) {
KCallableImpl kCallableImpl = (KCallableImpl) obj;
if (isNotExtension(kCallableImpl) && (kCallableImpl instanceof KProperty0)) {
arrayList.add(obj);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getStaticProperties$annotations(KClass kClass) {
}
public static final List<KClass<?>> getSuperclasses(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
List<KType> supertypes = kClass.getSupertypes();
ArrayList arrayList = new ArrayList();
Iterator<T> it = supertypes.iterator();
while (it.hasNext()) {
KClassifier classifier = ((KType) it.next()).getClassifier();
KClass kClass2 = classifier instanceof KClass ? (KClass) classifier : null;
if (kClass2 != null) {
arrayList.add(kClass2);
}
}
return arrayList;
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getSuperclasses$annotations(KClass kClass) {
}
private static final boolean isExtension(KCallableImpl<?> kCallableImpl) {
return kCallableImpl.getDescriptor().getExtensionReceiverParameter() != null;
}
private static final boolean isNotExtension(KCallableImpl<?> kCallableImpl) {
return !isExtension(kCallableImpl);
}
@SinceKotlin(version = "1.1")
public static final boolean isSubclassOf(KClass<?> kClass, final KClass<?> base) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Intrinsics.checkNotNullParameter(base, "base");
if (Intrinsics.areEqual(kClass, base)) {
return true;
}
List listOf = CollectionsKt.listOf(kClass);
final KClasses$isSubclassOf$1 kClasses$isSubclassOf$1 = new PropertyReference1() { // from class: kotlin.reflect.full.KClasses$isSubclassOf$1
@Override // kotlin.reflect.KProperty1
public Object get(Object obj) {
return KClasses.getSuperclasses((KClass) obj);
}
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
public String getName() {
return "superclasses";
}
@Override // kotlin.jvm.internal.CallableReference
public KDeclarationContainer getOwner() {
return Reflection.getOrCreateKotlinPackage(KClasses.class, "kotlin-reflection");
}
@Override // kotlin.jvm.internal.CallableReference
public String getSignature() {
return "getSuperclasses(Lkotlin/reflect/KClass;)Ljava/util/List;";
}
};
Boolean ifAny = DFS.ifAny(listOf, new DFS.Neighbors(kClasses$isSubclassOf$1) { // from class: kotlin.reflect.full.KClasses$$Lambda$1
private final KProperty1 arg$0;
{
this.arg$0 = kClasses$isSubclassOf$1;
}
@Override // kotlin.reflect.jvm.internal.impl.utils.DFS.Neighbors
public Iterable getNeighbors(Object obj) {
Iterable isSubclassOf$lambda$16;
isSubclassOf$lambda$16 = KClasses.isSubclassOf$lambda$16(this.arg$0, (KClass) obj);
return isSubclassOf$lambda$16;
}
}, new Function1<KClass<?>, Boolean>() { // from class: kotlin.reflect.full.KClasses$isSubclassOf$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(1);
}
@Override // kotlin.jvm.functions.Function1
public final Boolean invoke(KClass<?> kClass2) {
return Boolean.valueOf(Intrinsics.areEqual(kClass2, base));
}
});
Intrinsics.checkNotNullExpressionValue(ifAny, "ifAny(...)");
return ifAny.booleanValue();
}
/* JADX INFO: Access modifiers changed from: private */
public static final Iterable isSubclassOf$lambda$16(KProperty1 tmp0, KClass kClass) {
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
return (Iterable) tmp0.invoke(kClass);
}
@SinceKotlin(version = "1.1")
public static final boolean isSuperclassOf(KClass<?> kClass, KClass<?> derived) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
Intrinsics.checkNotNullParameter(derived, "derived");
return isSubclassOf(derived, kClass);
}
/* JADX WARN: Multi-variable type inference failed */
@SinceKotlin(version = "1.1")
public static final <T> T safeCast(KClass<T> kClass, Object obj) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
if (!kClass.isInstance(obj)) {
return null;
}
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type T of kotlin.reflect.full.KClasses.safeCast");
return obj;
}
}
@@ -0,0 +1,166 @@
package kotlin.reflect.full;
import java.lang.annotation.Annotation;
import java.util.ArrayList;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.SinceKotlin;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.KVariance;
import kotlin.reflect.jvm.internal.KClassifierImpl;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.types.StarProjectionImpl;
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionBase;
import kotlin.reflect.jvm.internal.impl.types.TypeProjectionImpl;
import kotlin.reflect.jvm.internal.impl.types.Variance;
import kotlin.reflect.jvm.internal.impl.types.checker.KotlinTypeRefiner;
@Metadata(d1 = {"\u00008\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u001b\n\u0000\u001a.\u0010\u0007\u001a\u00020\b2\u0006\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\f2\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002\u001a6\u0010\u0012\u001a\u00020\u0001*\u00020\u00022\u000e\b\u0002\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000e2\b\b\u0002\u0010\u0010\u001a\u00020\u00112\u000e\b\u0002\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00140\u000eH\u0007\"\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00028FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0003\u0010\u0004\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0015"}, d2 = {"starProjectedType", "Lkotlin/reflect/KType;", "Lkotlin/reflect/KClassifier;", "getStarProjectedType$annotations", "(Lkotlin/reflect/KClassifier;)V", "getStarProjectedType", "(Lkotlin/reflect/KClassifier;)Lkotlin/reflect/KType;", "createKotlinType", "Lkotlin/reflect/jvm/internal/impl/types/SimpleType;", "attributes", "Lkotlin/reflect/jvm/internal/impl/types/TypeAttributes;", "typeConstructor", "Lkotlin/reflect/jvm/internal/impl/types/TypeConstructor;", "arguments", "", "Lkotlin/reflect/KTypeProjection;", "nullable", "", "createType", "annotations", "", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KClassifiers")
@SourceDebugExtension({"SMAP\nKClassifiers.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KClassifiers.kt\nkotlin/reflect/full/KClassifiers\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,97:1\n1559#2:98\n1590#2,4:99\n1549#2:103\n1620#2,3:104\n*S KotlinDebug\n*F\n+ 1 KClassifiers.kt\nkotlin/reflect/full/KClassifiers\n*L\n69#1:98\n69#1:99,4\n95#1:103\n95#1:104,3\n*E\n"})
/* loaded from: classes3.dex */
public final class KClassifiers {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KVariance.values().length];
try {
iArr[KVariance.INVARIANT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KVariance.IN.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KVariance.OUT.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
private static final SimpleType createKotlinType(TypeAttributes typeAttributes, TypeConstructor typeConstructor, List<KTypeProjection> list, boolean z3) {
int collectionSizeOrDefault;
TypeProjectionBase starProjectionImpl;
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
List<KTypeProjection> list2 = list;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
int i = 0;
for (Object obj : list2) {
int i4 = i + 1;
if (i < 0) {
CollectionsKt.throwIndexOverflow();
}
KTypeProjection kTypeProjection = (KTypeProjection) obj;
KTypeImpl kTypeImpl = (KTypeImpl) kTypeProjection.getType();
KotlinType type = kTypeImpl != null ? kTypeImpl.getType() : null;
KVariance variance = kTypeProjection.getVariance();
int i5 = variance == null ? -1 : WhenMappings.$EnumSwitchMapping$0[variance.ordinal()];
if (i5 == -1) {
TypeParameterDescriptor typeParameterDescriptor = parameters.get(i);
Intrinsics.checkNotNullExpressionValue(typeParameterDescriptor, "get(...)");
starProjectionImpl = new StarProjectionImpl(typeParameterDescriptor);
} else if (i5 == 1) {
Variance variance2 = Variance.INVARIANT;
Intrinsics.checkNotNull(type);
starProjectionImpl = new TypeProjectionImpl(variance2, type);
} else if (i5 == 2) {
Variance variance3 = Variance.IN_VARIANCE;
Intrinsics.checkNotNull(type);
starProjectionImpl = new TypeProjectionImpl(variance3, type);
} else {
if (i5 != 3) {
throw new NoWhenBranchMatchedException();
}
Variance variance4 = Variance.OUT_VARIANCE;
Intrinsics.checkNotNull(type);
starProjectionImpl = new TypeProjectionImpl(variance4, type);
}
arrayList.add(starProjectionImpl);
i = i4;
}
return KotlinTypeFactory.simpleType$default(typeAttributes, typeConstructor, arrayList, z3, (KotlinTypeRefiner) null, 16, (Object) null);
}
@SinceKotlin(version = "1.1")
public static final KType createType(KClassifier kClassifier, List<KTypeProjection> arguments, boolean z3, List<? extends Annotation> annotations) {
ClassifierDescriptor descriptor;
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
Intrinsics.checkNotNullParameter(arguments, "arguments");
Intrinsics.checkNotNullParameter(annotations, "annotations");
KClassifierImpl kClassifierImpl = kClassifier instanceof KClassifierImpl ? (KClassifierImpl) kClassifier : null;
if (kClassifierImpl == null || (descriptor = kClassifierImpl.getDescriptor()) == null) {
throw new KotlinReflectionInternalError("Cannot create type for an unsupported classifier: " + kClassifier + " (" + kClassifier.getClass() + ')');
}
TypeConstructor typeConstructor = descriptor.getTypeConstructor();
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
List<TypeParameterDescriptor> parameters = typeConstructor.getParameters();
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
if (parameters.size() == arguments.size()) {
return new KTypeImpl(createKotlinType(annotations.isEmpty() ? TypeAttributes.Companion.getEmpty() : TypeAttributes.Companion.getEmpty(), typeConstructor, arguments, z3), null, 2, null);
}
throw new IllegalArgumentException("Class declares " + parameters.size() + " type parameters, but " + arguments.size() + " were provided.");
}
public static /* synthetic */ KType createType$default(KClassifier kClassifier, List list, boolean z3, List list2, int i, Object obj) {
if ((i & 1) != 0) {
list = CollectionsKt.emptyList();
}
if ((i & 2) != 0) {
z3 = false;
}
if ((i & 4) != 0) {
list2 = CollectionsKt.emptyList();
}
return createType(kClassifier, list, z3, list2);
}
public static final KType getStarProjectedType(KClassifier kClassifier) {
ClassifierDescriptor descriptor;
int collectionSizeOrDefault;
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
KClassifierImpl kClassifierImpl = kClassifier instanceof KClassifierImpl ? (KClassifierImpl) kClassifier : null;
if (kClassifierImpl == null || (descriptor = kClassifierImpl.getDescriptor()) == null) {
return createType$default(kClassifier, null, false, null, 7, null);
}
List<TypeParameterDescriptor> parameters = descriptor.getTypeConstructor().getParameters();
Intrinsics.checkNotNullExpressionValue(parameters, "getParameters(...)");
if (parameters.isEmpty()) {
return createType$default(kClassifier, null, false, null, 7, null);
}
List<TypeParameterDescriptor> list = parameters;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (TypeParameterDescriptor typeParameterDescriptor : list) {
arrayList.add(KTypeProjection.INSTANCE.getSTAR());
}
return createType$default(kClassifier, arrayList, false, null, 6, null);
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getStarProjectedType$annotations(KClassifier kClassifier) {
}
}
@@ -0,0 +1,26 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KProperty1;
import kotlin.reflect.KProperty2;
import kotlin.reflect.jvm.internal.KPropertyImpl;
@Metadata(d1 = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a\u0016\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u0002H\u0007\u001a/\u0010\u0000\u001a\u0004\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0003*\u0010\u0012\u0004\u0012\u0002H\u0003\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00042\u0006\u0010\u0005\u001a\u0002H\u0003H\u0007¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"getExtensionDelegate", "", "Lkotlin/reflect/KProperty1;", "D", "Lkotlin/reflect/KProperty2;", "receiver", "(Lkotlin/reflect/KProperty2;Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KProperties")
/* loaded from: classes3.dex */
public final class KProperties {
@SinceKotlin(version = "1.1")
public static final Object getExtensionDelegate(KProperty1<?, ?> kProperty1) {
Intrinsics.checkNotNullParameter(kProperty1, "<this>");
return kProperty1.getDelegate(KPropertyImpl.INSTANCE.getEXTENSION_PROPERTY_DELEGATE());
}
@SinceKotlin(version = "1.1")
public static final <D> Object getExtensionDelegate(KProperty2<D, ?, ?> kProperty2, D d4) {
Intrinsics.checkNotNullParameter(kProperty2, "<this>");
return kProperty2.getDelegate(d4, KPropertyImpl.INSTANCE.getEXTENSION_PROPERTY_DELEGATE());
}
}
@@ -0,0 +1,34 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KType;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0005\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0014\u0010\u0004\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0014\u0010\u0005\u001a\u00020\u0002*\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0001H\u0007¨\u0006\u0007"}, d2 = {"isSubtypeOf", "", "Lkotlin/reflect/KType;", "other", "isSupertypeOf", "withNullability", "nullable", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KTypes")
/* loaded from: classes3.dex */
public final class KTypes {
@SinceKotlin(version = "1.1")
public static final boolean isSubtypeOf(KType kType, KType other) {
Intrinsics.checkNotNullParameter(kType, "<this>");
Intrinsics.checkNotNullParameter(other, "other");
return TypeUtilsKt.isSubtypeOf(((KTypeImpl) kType).getType(), ((KTypeImpl) other).getType());
}
@SinceKotlin(version = "1.1")
public static final boolean isSupertypeOf(KType kType, KType other) {
Intrinsics.checkNotNullParameter(kType, "<this>");
Intrinsics.checkNotNullParameter(other, "other");
return isSubtypeOf(other, kType);
}
@SinceKotlin(version = "1.1")
public static final KType withNullability(KType kType, boolean z3) {
Intrinsics.checkNotNullParameter(kType, "<this>");
return ((KTypeImpl) kType).makeNullableAsSpecified$kotlin_reflection(z3);
}
}
@@ -0,0 +1,23 @@
package kotlin.reflect.full;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.jvm.internal.DefaultConstructorMarker;
@SinceKotlin(version = "1.1")
@Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0007\u0018\u00002\u00060\u0001j\u0002`\u0002B\u0017\u0012\u0010\b\u0002\u0010\u0003\u001a\n\u0018\u00010\u0001j\u0004\u0018\u0001`\u0002¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/full/NoSuchPropertyException;", "Ljava/lang/Exception;", "Lkotlin/Exception;", "cause", "(Ljava/lang/Exception;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class NoSuchPropertyException extends Exception {
/* JADX WARN: Multi-variable type inference failed */
public NoSuchPropertyException() {
this(null, 1, 0 == true ? 1 : 0);
}
public NoSuchPropertyException(Exception exc) {
super(exc);
}
public /* synthetic */ NoSuchPropertyException(Exception exc, int i, DefaultConstructorMarker defaultConstructorMarker) {
this((i & 1) != 0 ? null : exc);
}
}
@@ -0,0 +1,26 @@
package kotlin.reflect.jvm;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import kotlin.Metadata;
import kotlin.RequiresOptIn;
import kotlin.SinceKotlin;
import kotlin.annotation.AnnotationRetention;
import kotlin.annotation.AnnotationTarget;
import kotlin.annotation.MustBeDocumented;
@Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE, ElementType.ANNOTATION_TYPE})
@SinceKotlin(version = "1.5")
@RequiresOptIn(level = RequiresOptIn.Level.WARNING)
@kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS, AnnotationTarget.ANNOTATION_CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.FIELD, AnnotationTarget.LOCAL_VARIABLE, AnnotationTarget.VALUE_PARAMETER, AnnotationTarget.CONSTRUCTOR, AnnotationTarget.FUNCTION, AnnotationTarget.PROPERTY_GETTER, AnnotationTarget.PROPERTY_SETTER, AnnotationTarget.TYPEALIAS})
@Retention(RetentionPolicy.CLASS)
@kotlin.annotation.Retention(AnnotationRetention.BINARY)
@MustBeDocumented
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\b\u0087\u0002\u0018\u00002\u00020\u0001B\u0000¨\u0006\u0002"}, d2 = {"Lkotlin/reflect/jvm/ExperimentalReflectionOnLambdas;", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@Documented
/* loaded from: classes3.dex */
public @interface ExperimentalReflectionOnLambdas {
}
@@ -0,0 +1,166 @@
package kotlin.reflect.jvm;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KCallable;
import kotlin.reflect.KFunction;
import kotlin.reflect.KMutableProperty;
import kotlin.reflect.KProperty;
import kotlin.reflect.jvm.internal.KCallableImpl;
import kotlin.reflect.jvm.internal.UtilKt;
import kotlin.reflect.jvm.internal.calls.Caller;
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\",\u0010\u0002\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00032\u0006\u0010\u0000\u001a\u00020\u00018F@FX\u0086\u000e¢\u0006\f\u001a\u0004\b\u0002\u0010\u0004\"\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"value", "", "isAccessible", "Lkotlin/reflect/KCallable;", "(Lkotlin/reflect/KCallable;)Z", "setAccessible", "(Lkotlin/reflect/KCallable;Z)V", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KCallablesJvm")
/* loaded from: classes3.dex */
public final class KCallablesJvm {
public static final boolean isAccessible(KCallable<?> kCallable) {
Caller<?> defaultCaller;
Intrinsics.checkNotNullParameter(kCallable, "<this>");
if (kCallable instanceof KMutableProperty) {
KProperty kProperty = (KProperty) kCallable;
Field javaField = ReflectJvmMapping.getJavaField(kProperty);
if (javaField != null ? javaField.isAccessible() : true) {
Method javaGetter = ReflectJvmMapping.getJavaGetter(kProperty);
if (javaGetter != null ? javaGetter.isAccessible() : true) {
Method javaSetter = ReflectJvmMapping.getJavaSetter((KMutableProperty) kCallable);
if (javaSetter != null ? javaSetter.isAccessible() : true) {
return true;
}
}
}
return false;
}
if (kCallable instanceof KProperty) {
KProperty kProperty2 = (KProperty) kCallable;
Field javaField2 = ReflectJvmMapping.getJavaField(kProperty2);
if (javaField2 != null ? javaField2.isAccessible() : true) {
Method javaGetter2 = ReflectJvmMapping.getJavaGetter(kProperty2);
if (javaGetter2 != null ? javaGetter2.isAccessible() : true) {
return true;
}
}
return false;
}
if (kCallable instanceof KProperty.Getter) {
Field javaField3 = ReflectJvmMapping.getJavaField(((KProperty.Getter) kCallable).getProperty());
if (javaField3 != null ? javaField3.isAccessible() : true) {
Method javaMethod = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
if (javaMethod != null ? javaMethod.isAccessible() : true) {
return true;
}
}
return false;
}
if (kCallable instanceof KMutableProperty.Setter) {
Field javaField4 = ReflectJvmMapping.getJavaField(((KMutableProperty.Setter) kCallable).getProperty());
if (javaField4 != null ? javaField4.isAccessible() : true) {
Method javaMethod2 = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
if (javaMethod2 != null ? javaMethod2.isAccessible() : true) {
return true;
}
}
return false;
}
if (!(kCallable instanceof KFunction)) {
throw new UnsupportedOperationException("Unknown callable: " + kCallable + " (" + kCallable.getClass() + ')');
}
KFunction kFunction = (KFunction) kCallable;
Method javaMethod3 = ReflectJvmMapping.getJavaMethod(kFunction);
if (javaMethod3 != null ? javaMethod3.isAccessible() : true) {
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kCallable);
Object mo1386getMember = (asKCallableImpl == null || (defaultCaller = asKCallableImpl.getDefaultCaller()) == null) ? null : defaultCaller.mo1386getMember();
AccessibleObject accessibleObject = mo1386getMember instanceof AccessibleObject ? (AccessibleObject) mo1386getMember : null;
if (accessibleObject != null ? accessibleObject.isAccessible() : true) {
Constructor javaConstructor = ReflectJvmMapping.getJavaConstructor(kFunction);
if (javaConstructor != null ? javaConstructor.isAccessible() : true) {
return true;
}
}
}
return false;
}
public static final void setAccessible(KCallable<?> kCallable, boolean z3) {
Caller<?> defaultCaller;
Intrinsics.checkNotNullParameter(kCallable, "<this>");
if (kCallable instanceof KMutableProperty) {
KProperty kProperty = (KProperty) kCallable;
Field javaField = ReflectJvmMapping.getJavaField(kProperty);
if (javaField != null) {
javaField.setAccessible(z3);
}
Method javaGetter = ReflectJvmMapping.getJavaGetter(kProperty);
if (javaGetter != null) {
javaGetter.setAccessible(z3);
}
Method javaSetter = ReflectJvmMapping.getJavaSetter((KMutableProperty) kCallable);
if (javaSetter == null) {
return;
}
javaSetter.setAccessible(z3);
return;
}
if (kCallable instanceof KProperty) {
KProperty kProperty2 = (KProperty) kCallable;
Field javaField2 = ReflectJvmMapping.getJavaField(kProperty2);
if (javaField2 != null) {
javaField2.setAccessible(z3);
}
Method javaGetter2 = ReflectJvmMapping.getJavaGetter(kProperty2);
if (javaGetter2 == null) {
return;
}
javaGetter2.setAccessible(z3);
return;
}
if (kCallable instanceof KProperty.Getter) {
Field javaField3 = ReflectJvmMapping.getJavaField(((KProperty.Getter) kCallable).getProperty());
if (javaField3 != null) {
javaField3.setAccessible(z3);
}
Method javaMethod = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
if (javaMethod == null) {
return;
}
javaMethod.setAccessible(z3);
return;
}
if (kCallable instanceof KMutableProperty.Setter) {
Field javaField4 = ReflectJvmMapping.getJavaField(((KMutableProperty.Setter) kCallable).getProperty());
if (javaField4 != null) {
javaField4.setAccessible(z3);
}
Method javaMethod2 = ReflectJvmMapping.getJavaMethod((KFunction) kCallable);
if (javaMethod2 == null) {
return;
}
javaMethod2.setAccessible(z3);
return;
}
if (!(kCallable instanceof KFunction)) {
throw new UnsupportedOperationException("Unknown callable: " + kCallable + " (" + kCallable.getClass() + ')');
}
KFunction kFunction = (KFunction) kCallable;
Method javaMethod3 = ReflectJvmMapping.getJavaMethod(kFunction);
if (javaMethod3 != null) {
javaMethod3.setAccessible(z3);
}
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kCallable);
Object mo1386getMember = (asKCallableImpl == null || (defaultCaller = asKCallableImpl.getDefaultCaller()) == null) ? null : defaultCaller.mo1386getMember();
AccessibleObject accessibleObject = mo1386getMember instanceof AccessibleObject ? (AccessibleObject) mo1386getMember : null;
if (accessibleObject != null) {
accessibleObject.setAccessible(true);
}
Constructor javaConstructor = ReflectJvmMapping.getJavaConstructor(kFunction);
if (javaConstructor == null) {
return;
}
javaConstructor.setAccessible(z3);
}
}
@@ -0,0 +1,19 @@
package kotlin.reflect.jvm;
import kotlin.Metadata;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KClass;
import kotlin.reflect.jvm.internal.KClassImpl;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0019\u0010\u0000\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00028F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"jvmName", "", "Lkotlin/reflect/KClass;", "getJvmName", "(Lkotlin/reflect/KClass;)Ljava/lang/String;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KClassesJvm")
/* loaded from: classes3.dex */
public final class KClassesJvm {
public static final String getJvmName(KClass<?> kClass) {
Intrinsics.checkNotNullParameter(kClass, "<this>");
String name = ((KClassImpl) kClass).getJClass().getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
return name;
}
}
@@ -0,0 +1,74 @@
package kotlin.reflect.jvm;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.SinceKotlin;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
@Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\"\u001c\u0010\u0000\u001a\u0006\u0012\u0002\b\u00030\u0001*\u00020\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\"\"\u0010\u0000\u001a\u0006\u0012\u0002\b\u00030\u0001*\u00020\u00058FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0006\u0010\u0007\u001a\u0004\b\u0003\u0010\b¨\u0006\t"}, d2 = {"jvmErasure", "Lkotlin/reflect/KClass;", "Lkotlin/reflect/KClassifier;", "getJvmErasure", "(Lkotlin/reflect/KClassifier;)Lkotlin/reflect/KClass;", "Lkotlin/reflect/KType;", "getJvmErasure$annotations", "(Lkotlin/reflect/KType;)V", "(Lkotlin/reflect/KType;)Lkotlin/reflect/KClass;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "KTypesJvm")
@SourceDebugExtension({"SMAP\nKTypesJvm.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KTypesJvm.kt\nkotlin/reflect/jvm/KTypesJvm\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,52:1\n288#2,2:53\n*S KotlinDebug\n*F\n+ 1 KTypesJvm.kt\nkotlin/reflect/jvm/KTypesJvm\n*L\n44#1:53,2\n*E\n"})
/* loaded from: classes3.dex */
public final class KTypesJvm {
public static final KClass<?> getJvmErasure(KType kType) {
KClass<?> jvmErasure;
Intrinsics.checkNotNullParameter(kType, "<this>");
KClassifier classifier = kType.getClassifier();
if (classifier != null && (jvmErasure = getJvmErasure(classifier)) != null) {
return jvmErasure;
}
throw new KotlinReflectionInternalError("Cannot calculate JVM erasure for type: " + kType);
}
@SinceKotlin(version = "1.1")
public static /* synthetic */ void getJvmErasure$annotations(KType kType) {
}
/* JADX WARN: Multi-variable type inference failed */
public static final KClass<?> getJvmErasure(KClassifier kClassifier) {
ClassDescriptor classDescriptor;
KClass<?> jvmErasure;
Intrinsics.checkNotNullParameter(kClassifier, "<this>");
if (kClassifier instanceof KClass) {
return (KClass) kClassifier;
}
if (kClassifier instanceof KTypeParameter) {
List<KType> upperBounds = ((KTypeParameter) kClassifier).getUpperBounds();
Iterator<T> it = upperBounds.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
Object next = it.next();
KType kType = (KType) next;
Intrinsics.checkNotNull(kType, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
ClassifierDescriptor mo1394getDeclarationDescriptor = ((KTypeImpl) kType).getType().getConstructor().mo1394getDeclarationDescriptor();
classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
if (classDescriptor != null && classDescriptor.getKind() != ClassKind.INTERFACE && classDescriptor.getKind() != ClassKind.ANNOTATION_CLASS) {
classDescriptor = next;
break;
}
}
KType kType2 = (KType) classDescriptor;
if (kType2 == null) {
kType2 = (KType) CollectionsKt.firstOrNull((List) upperBounds);
}
return (kType2 == null || (jvmErasure = getJvmErasure(kType2)) == null) ? Reflection.getOrCreateKotlinClass(Object.class) : jvmErasure;
}
throw new KotlinReflectionInternalError("Cannot calculate JVM erasure for type: " + kClassifier);
}
}
@@ -0,0 +1,247 @@
package kotlin.reflect.jvm;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import kotlin.Metadata;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.JvmName;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.KFunction;
import kotlin.reflect.KMutableProperty;
import kotlin.reflect.KProperty;
import kotlin.reflect.KType;
import kotlin.reflect.TypesJVMKt;
import kotlin.reflect.full.KClasses;
import kotlin.reflect.jvm.internal.KCallableImpl;
import kotlin.reflect.jvm.internal.KPackageImpl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.KTypeImpl;
import kotlin.reflect.jvm.internal.UtilKt;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
import kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader;
@Metadata(d1 = {"\u0000V\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a$\u0010%\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0003*\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030'0&2\u0006\u0010(\u001a\u00020\u000eH\u0002\u001a$\u0010)\u001a\b\u0012\u0002\b\u0003\u0018\u00010\n*\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030'0&2\u0006\u0010*\u001a\u00020\tH\u0002\u001a\u000e\u0010+\u001a\u0004\u0018\u00010,*\u00020-H\u0002\"/\u0010\u0000\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u00038F¢\u0006\f\u0012\u0004\b\u0004\u0010\u0005\u001a\u0004\b\u0006\u0010\u0007\"\u001b\u0010\b\u001a\u0004\u0018\u00010\t*\u0006\u0012\u0002\b\u00030\n8F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\f\"\u001b\u0010\r\u001a\u0004\u0018\u00010\u000e*\u0006\u0012\u0002\b\u00030\n8F¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010\"\u001b\u0010\u0011\u001a\u0004\u0018\u00010\u000e*\u0006\u0012\u0002\b\u00030\u00038F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013\"\u001b\u0010\u0014\u001a\u0004\u0018\u00010\u000e*\u0006\u0012\u0002\b\u00030\u00158F¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017\"\u0015\u0010\u0018\u001a\u00020\u0019*\u00020\u001a8F¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001c\"-\u0010\u001d\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0003\"\b\b\u0000\u0010\u0002*\u00020\u001e*\b\u0012\u0004\u0012\u0002H\u00020\u00018F¢\u0006\u0006\u001a\u0004\b\u001f\u0010 \"\u001b\u0010\u001d\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0003*\u00020\u000e8F¢\u0006\u0006\u001a\u0004\b\u001f\u0010!\"\u001b\u0010\"\u001a\b\u0012\u0002\b\u0003\u0018\u00010\n*\u00020\t8F¢\u0006\u0006\u001a\u0004\b#\u0010$¨\u0006."}, d2 = {"javaConstructor", "Ljava/lang/reflect/Constructor;", "T", "Lkotlin/reflect/KFunction;", "getJavaConstructor$annotations", "(Lkotlin/reflect/KFunction;)V", "getJavaConstructor", "(Lkotlin/reflect/KFunction;)Ljava/lang/reflect/Constructor;", "javaField", "Ljava/lang/reflect/Field;", "Lkotlin/reflect/KProperty;", "getJavaField", "(Lkotlin/reflect/KProperty;)Ljava/lang/reflect/Field;", "javaGetter", "Ljava/lang/reflect/Method;", "getJavaGetter", "(Lkotlin/reflect/KProperty;)Ljava/lang/reflect/Method;", "javaMethod", "getJavaMethod", "(Lkotlin/reflect/KFunction;)Ljava/lang/reflect/Method;", "javaSetter", "Lkotlin/reflect/KMutableProperty;", "getJavaSetter", "(Lkotlin/reflect/KMutableProperty;)Ljava/lang/reflect/Method;", "javaType", "Ljava/lang/reflect/Type;", "Lkotlin/reflect/KType;", "getJavaType", "(Lkotlin/reflect/KType;)Ljava/lang/reflect/Type;", "kotlinFunction", "", "getKotlinFunction", "(Ljava/lang/reflect/Constructor;)Lkotlin/reflect/KFunction;", "(Ljava/lang/reflect/Method;)Lkotlin/reflect/KFunction;", "kotlinProperty", "getKotlinProperty", "(Ljava/lang/reflect/Field;)Lkotlin/reflect/KProperty;", "findKFunction", "", "Lkotlin/reflect/KCallable;", FirebaseAnalytics.Param.METHOD, "findKProperty", "field", "getKPackage", "Lkotlin/reflect/KDeclarationContainer;", "Ljava/lang/reflect/Member;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@JvmName(name = "ReflectJvmMapping")
@SourceDebugExtension({"SMAP\nReflectJvmMapping.kt\nKotlin\n*S Kotlin\n*F\n+ 1 ReflectJvmMapping.kt\nkotlin/reflect/jvm/ReflectJvmMapping\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,179:1\n1#2:180\n288#3,2:181\n*S KotlinDebug\n*F\n+ 1 ReflectJvmMapping.kt\nkotlin/reflect/jvm/ReflectJvmMapping\n*L\n177#1:181,2\n*E\n"})
/* loaded from: classes3.dex */
public final class ReflectJvmMapping {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KotlinClassHeader.Kind.values().length];
try {
iArr[KotlinClassHeader.Kind.FILE_FACADE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KotlinClassHeader.Kind.MULTIFILE_CLASS.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KotlinClassHeader.Kind.MULTIFILE_CLASS_PART.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
private static final KFunction<?> findKFunction(Collection<? extends KCallable<?>> collection, Method method) {
for (KCallable<?> kCallable : collection) {
if ((kCallable instanceof KFunction) && Intrinsics.areEqual(kCallable.getName(), method.getName())) {
KFunction<?> kFunction = (KFunction) kCallable;
if (Intrinsics.areEqual(getJavaMethod(kFunction), method)) {
return kFunction;
}
}
}
for (KCallable<?> kCallable2 : collection) {
if ((kCallable2 instanceof KFunction) && !Intrinsics.areEqual(kCallable2.getName(), method.getName())) {
KFunction<?> kFunction2 = (KFunction) kCallable2;
if (Intrinsics.areEqual(getJavaMethod(kFunction2), method)) {
return kFunction2;
}
}
}
return null;
}
private static final KProperty<?> findKProperty(Collection<? extends KCallable<?>> collection, Field field) {
for (KCallable<?> kCallable : collection) {
if ((kCallable instanceof KProperty) && Intrinsics.areEqual(kCallable.getName(), field.getName())) {
KProperty<?> kProperty = (KProperty) kCallable;
if (Intrinsics.areEqual(getJavaField(kProperty), field)) {
return kProperty;
}
}
}
for (KCallable<?> kCallable2 : collection) {
if ((kCallable2 instanceof KProperty) && !Intrinsics.areEqual(kCallable2.getName(), field.getName())) {
KProperty<?> kProperty2 = (KProperty) kCallable2;
if (Intrinsics.areEqual(getJavaField(kProperty2), field)) {
return kProperty2;
}
}
}
return null;
}
public static final <T> Constructor<T> getJavaConstructor(KFunction<? extends T> kFunction) {
Caller<?> caller;
Intrinsics.checkNotNullParameter(kFunction, "<this>");
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kFunction);
Object mo1386getMember = (asKCallableImpl == null || (caller = asKCallableImpl.getCaller()) == null) ? null : caller.mo1386getMember();
if (mo1386getMember instanceof Constructor) {
return (Constructor) mo1386getMember;
}
return null;
}
public static /* synthetic */ void getJavaConstructor$annotations(KFunction kFunction) {
}
public static final Field getJavaField(KProperty<?> kProperty) {
Intrinsics.checkNotNullParameter(kProperty, "<this>");
KPropertyImpl<?> asKPropertyImpl = UtilKt.asKPropertyImpl(kProperty);
if (asKPropertyImpl != null) {
return asKPropertyImpl.getJavaField();
}
return null;
}
public static final Method getJavaGetter(KProperty<?> kProperty) {
Intrinsics.checkNotNullParameter(kProperty, "<this>");
return getJavaMethod(kProperty.getGetter());
}
public static final Method getJavaMethod(KFunction<?> kFunction) {
Caller<?> caller;
Intrinsics.checkNotNullParameter(kFunction, "<this>");
KCallableImpl<?> asKCallableImpl = UtilKt.asKCallableImpl(kFunction);
Object mo1386getMember = (asKCallableImpl == null || (caller = asKCallableImpl.getCaller()) == null) ? null : caller.mo1386getMember();
if (mo1386getMember instanceof Method) {
return (Method) mo1386getMember;
}
return null;
}
public static final Method getJavaSetter(KMutableProperty<?> kMutableProperty) {
Intrinsics.checkNotNullParameter(kMutableProperty, "<this>");
return getJavaMethod(kMutableProperty.getSetter());
}
public static final Type getJavaType(KType kType) {
Intrinsics.checkNotNullParameter(kType, "<this>");
Type javaType = ((KTypeImpl) kType).getJavaType();
return javaType == null ? TypesJVMKt.getJavaType(kType) : javaType;
}
private static final KDeclarationContainer getKPackage(Member member) {
KotlinClassHeader classHeader;
ReflectKotlinClass.Factory factory = ReflectKotlinClass.Factory;
Class<?> declaringClass = member.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
ReflectKotlinClass create = factory.create(declaringClass);
KotlinClassHeader.Kind kind = (create == null || (classHeader = create.getClassHeader()) == null) ? null : classHeader.getKind();
int i = kind == null ? -1 : WhenMappings.$EnumSwitchMapping$0[kind.ordinal()];
if (i != 1 && i != 2 && i != 3) {
return null;
}
Class<?> declaringClass2 = member.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass2, "getDeclaringClass(...)");
return new KPackageImpl(declaringClass2);
}
public static final KFunction<?> getKotlinFunction(Method method) {
KFunction<?> findKFunction;
Intrinsics.checkNotNullParameter(method, "<this>");
if (Modifier.isStatic(method.getModifiers())) {
KDeclarationContainer kPackage = getKPackage(method);
if (kPackage != null) {
return findKFunction(kPackage.getMembers(), method);
}
Class<?> declaringClass = method.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
KClass<?> companionObject = KClasses.getCompanionObject(JvmClassMappingKt.getKotlinClass(declaringClass));
if (companionObject != null) {
Class javaClass = JvmClassMappingKt.getJavaClass((KClass) companionObject);
String name = method.getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
Class<?>[] parameterTypes = method.getParameterTypes();
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
Method declaredMethodOrNull = UtilKt.getDeclaredMethodOrNull(javaClass, name, (Class[]) Arrays.copyOf(parameterTypes, parameterTypes.length));
if (declaredMethodOrNull != null && (findKFunction = findKFunction(KClasses.getFunctions(companionObject), declaredMethodOrNull)) != null) {
return findKFunction;
}
}
}
Class<?> declaringClass2 = method.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass2, "getDeclaringClass(...)");
return findKFunction(KClasses.getFunctions(JvmClassMappingKt.getKotlinClass(declaringClass2)), method);
}
public static final KProperty<?> getKotlinProperty(Field field) {
KProperty<?> findKProperty;
Intrinsics.checkNotNullParameter(field, "<this>");
if (field.isSynthetic()) {
return null;
}
if (Modifier.isStatic(field.getModifiers())) {
KDeclarationContainer kPackage = getKPackage(field);
if (kPackage != null) {
return findKProperty(kPackage.getMembers(), field);
}
Class<?> declaringClass = field.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
KClass<?> companionObject = KClasses.getCompanionObject(JvmClassMappingKt.getKotlinClass(declaringClass));
if (companionObject != null) {
Class<?> declaringClass2 = field.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass2, "getDeclaringClass(...)");
String name = field.getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
Field declaredFieldOrNull = UtilKt.getDeclaredFieldOrNull(declaringClass2, name);
if (declaredFieldOrNull != null && (findKProperty = findKProperty(KClasses.getMemberProperties(companionObject), declaredFieldOrNull)) != null) {
return findKProperty;
}
}
}
Class<?> declaringClass3 = field.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass3, "getDeclaringClass(...)");
return findKProperty(KClasses.getMemberProperties(JvmClassMappingKt.getKotlinClass(declaringClass3)), field);
}
public static final <T> KFunction<T> getKotlinFunction(Constructor<T> constructor) {
T t2;
Intrinsics.checkNotNullParameter(constructor, "<this>");
Class<T> declaringClass = constructor.getDeclaringClass();
Intrinsics.checkNotNullExpressionValue(declaringClass, "getDeclaringClass(...)");
Iterator<T> it = JvmClassMappingKt.getKotlinClass(declaringClass).getConstructors().iterator();
while (true) {
if (!it.hasNext()) {
t2 = null;
break;
}
t2 = it.next();
if (Intrinsics.areEqual(getJavaConstructor((KFunction) t2), constructor)) {
break;
}
}
return (KFunction) t2;
}
}
@@ -0,0 +1,43 @@
package kotlin.reflect.jvm;
import kotlin.Metadata;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.FunctionReference;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class ReflectLambdaKt$reflect$descriptor$1 extends FunctionReference implements Function2<MemberDeserializer, ProtoBuf.Function, SimpleFunctionDescriptor> {
public static final ReflectLambdaKt$reflect$descriptor$1 INSTANCE = new ReflectLambdaKt$reflect$descriptor$1();
public ReflectLambdaKt$reflect$descriptor$1() {
super(2);
}
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
public final String getName() {
return "loadFunction";
}
@Override // kotlin.jvm.internal.CallableReference
public final KDeclarationContainer getOwner() {
return Reflection.getOrCreateKotlinClass(MemberDeserializer.class);
}
@Override // kotlin.jvm.internal.CallableReference
public final String getSignature() {
return "loadFunction(Lorg/jetbrains/kotlin/metadata/ProtoBuf$Function;)Lorg/jetbrains/kotlin/descriptors/SimpleFunctionDescriptor;";
}
@Override // kotlin.jvm.functions.Function2
public final SimpleFunctionDescriptor invoke(MemberDeserializer p02, ProtoBuf.Function p12) {
Intrinsics.checkNotNullParameter(p02, "p0");
Intrinsics.checkNotNullParameter(p12, "p1");
return p02.loadFunction(p12);
}
}
@@ -0,0 +1,46 @@
package kotlin.reflect.jvm;
import kotlin.Function;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KFunction;
import kotlin.reflect.jvm.internal.EmptyContainerForLocal;
import kotlin.reflect.jvm.internal.KFunctionImpl;
import kotlin.reflect.jvm.internal.UtilKt;
import kotlin.reflect.jvm.internal.impl.descriptors.SimpleFunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMetadataVersion;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmNameResolver;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a \u0010\u0000\u001a\n\u0012\u0004\u0012\u0002H\u0002\u0018\u00010\u0001\"\u0004\b\u0000\u0010\u0002*\b\u0012\u0004\u0012\u0002H\u00020\u0003H\u0007¨\u0006\u0004"}, d2 = {"reflect", "Lkotlin/reflect/KFunction;", "R", "Lkotlin/Function;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nreflectLambda.kt\nKotlin\n*S Kotlin\n*F\n+ 1 reflectLambda.kt\nkotlin/reflect/jvm/ReflectLambdaKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,79:1\n1#2:80\n*E\n"})
/* loaded from: classes3.dex */
public final class ReflectLambdaKt {
@ExperimentalReflectionOnLambdas
public static final <R> KFunction<R> reflect(Function<? extends R> function) {
Intrinsics.checkNotNullParameter(function, "<this>");
Metadata metadata = (Metadata) function.getClass().getAnnotation(Metadata.class);
if (metadata == null) {
return null;
}
String[] d12 = metadata.d1();
if (d12.length == 0) {
d12 = null;
}
if (d12 == null) {
return null;
}
Pair<JvmNameResolver, ProtoBuf.Function> readFunctionDataFrom = JvmProtoBufUtil.readFunctionDataFrom(d12, metadata.d2());
JvmNameResolver component1 = readFunctionDataFrom.component1();
ProtoBuf.Function component2 = readFunctionDataFrom.component2();
JvmMetadataVersion jvmMetadataVersion = new JvmMetadataVersion(metadata.mv(), (metadata.xi() & 8) != 0);
Class<?> cls = function.getClass();
ProtoBuf.TypeTable typeTable = component2.getTypeTable();
Intrinsics.checkNotNullExpressionValue(typeTable, "getTypeTable(...)");
return new KFunctionImpl(EmptyContainerForLocal.INSTANCE, (SimpleFunctionDescriptor) UtilKt.deserializeToDescriptor(cls, component2, component1, new TypeTable(typeTable), jvmMetadataVersion, ReflectLambdaKt$reflect$descriptor$1.INSTANCE));
}
}
@@ -0,0 +1,11 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b \u0018\u0000*\u0004\b\u0000\u0010\u00012\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\b\u0010\u0004\u001a\u00020\u0005H&J\u0019\u0010\u0006\u001a\u00028\u00002\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH&¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/CacheByClass;", "V", "", "()V", "clear", "", "get", "key", "Ljava/lang/Class;", "(Ljava/lang/Class;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public abstract class CacheByClass<V> {
public abstract void clear();
public abstract V get(Class<?> key);
}
@@ -0,0 +1,40 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.Result;
import kotlin.ResultKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a0\u0010\u0002\u001a\b\u0012\u0004\u0012\u0002H\u00040\u0003\"\b\b\u0000\u0010\u0004*\u00020\u00052\u0016\u0010\u0006\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\b\u0012\u0004\u0012\u0002H\u00040\u0007H\u0000\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"useClassValue", "", "createCache", "Lkotlin/reflect/jvm/internal/CacheByClass;", "V", "", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCacheByClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/CacheByClassKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,98:1\n1#2:99\n*E\n"})
/* loaded from: classes3.dex */
public final class CacheByClassKt {
private static final boolean useClassValue = false;
static {
Object m116constructorimpl;
try {
Result.Companion companion = Result.INSTANCE;
m116constructorimpl = Result.m116constructorimpl(Class.forName("java.lang.ClassValue"));
} catch (Throwable th) {
Result.Companion companion2 = Result.INSTANCE;
m116constructorimpl = Result.m116constructorimpl(ResultKt.createFailure(th));
}
if (Result.m123isSuccessimpl(m116constructorimpl)) {
m116constructorimpl = Boolean.TRUE;
}
Object m116constructorimpl2 = Result.m116constructorimpl(m116constructorimpl);
Boolean bool = Boolean.FALSE;
if (Result.m122isFailureimpl(m116constructorimpl2)) {
m116constructorimpl2 = bool;
}
((Boolean) m116constructorimpl2).getClass();
}
public static final <V> CacheByClass<V> createCache(Function1<? super Class<?>, ? extends V> compute) {
Intrinsics.checkNotNullParameter(compute, "compute");
return new ConcurrentHashMapCache(compute);
}
}
@@ -0,0 +1,96 @@
package kotlin.reflect.jvm.internal;
import java.util.List;
import java.util.concurrent.ConcurrentHashMap;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KAnnotatedElement;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.full.KClassifiers;
@Metadata(d1 = {"\u0000R\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\b\u0010\u0011\u001a\u00020\u0012H\u0000\u001a6\u0010\u0013\u001a\u00020\u0002\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u00162\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\u0006\u0010\u0018\u001a\u00020\bH\u0000\u001a6\u0010\u0019\u001a\u00020\u0002\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u00162\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u00020\u00070\u00062\u0006\u0010\u0018\u001a\u00020\bH\u0002\u001a&\u0010\u001a\u001a\b\u0012\u0004\u0012\u0002H\u00140\f\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u0016H\u0000\u001a \u0010\u001b\u001a\u00020\u001c\"\b\b\u0000\u0010\u0014*\u00020\r2\f\u0010\u0015\u001a\b\u0012\u0004\u0012\u0002H\u00140\u0016H\u0000\"\u0014\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"6\u0010\u0003\u001a*\u0012&\u0012$\u0012\u001a\u0012\u0018\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0004\u0012\u00020\b0\u0005j\u0002`\t\u0012\u0004\u0012\u00020\u00020\u00040\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u0014\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"$\u0010\u000b\u001a\u0018\u0012\u0014\u0012\u0012\u0012\u000e\b\u0001\u0012\n \u000e*\u0004\u0018\u00010\r0\r0\f0\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u0014\u0010\u000f\u001a\b\u0012\u0004\u0012\u00020\u00100\u0001X\u0082\u0004¢\u0006\u0002\n\u0000*0\b\u0002\u0010\u001d\"\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0004\u0012\u00020\b0\u00052\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0004\u0012\u00020\b0\u0005¨\u0006\u001e"}, d2 = {"CACHE_FOR_BASE_CLASSIFIERS", "Lkotlin/reflect/jvm/internal/CacheByClass;", "Lkotlin/reflect/KType;", "CACHE_FOR_GENERIC_CLASSIFIERS", "Ljava/util/concurrent/ConcurrentHashMap;", "Lkotlin/Pair;", "", "Lkotlin/reflect/KTypeProjection;", "", "Lkotlin/reflect/jvm/internal/Key;", "CACHE_FOR_NULLABLE_BASE_CLASSIFIERS", "K_CLASS_CACHE", "Lkotlin/reflect/jvm/internal/KClassImpl;", "", "kotlin.jvm.PlatformType", "K_PACKAGE_CACHE", "Lkotlin/reflect/jvm/internal/KPackageImpl;", "clearCaches", "", "getOrCreateKType", "T", "jClass", "Ljava/lang/Class;", "arguments", "isMarkedNullable", "getOrCreateKTypeWithTypeArguments", "getOrCreateKotlinClass", "getOrCreateKotlinPackage", "Lkotlin/reflect/KDeclarationContainer;", "Key", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\ncaches.kt\nKotlin\n*S Kotlin\n*F\n+ 1 caches.kt\nkotlin/reflect/jvm/internal/CachesKt\n+ 2 MapsJVM.kt\nkotlin/collections/MapsKt__MapsJVMKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,74:1\n72#2,2:75\n1#3:77\n*S KotlinDebug\n*F\n+ 1 caches.kt\nkotlin/reflect/jvm/internal/CachesKt\n*L\n68#1:75,2\n68#1:77\n*E\n"})
/* loaded from: classes3.dex */
public final class CachesKt {
private static final CacheByClass<KClassImpl<? extends Object>> K_CLASS_CACHE = CacheByClassKt.createCache(new Function1<Class<?>, KClassImpl<? extends Object>>() { // from class: kotlin.reflect.jvm.internal.CachesKt$K_CLASS_CACHE$1
@Override // kotlin.jvm.functions.Function1
public final KClassImpl<? extends Object> invoke(Class<?> it) {
Intrinsics.checkNotNullParameter(it, "it");
return new KClassImpl<>(it);
}
});
private static final CacheByClass<KPackageImpl> K_PACKAGE_CACHE = CacheByClassKt.createCache(new Function1<Class<?>, KPackageImpl>() { // from class: kotlin.reflect.jvm.internal.CachesKt$K_PACKAGE_CACHE$1
@Override // kotlin.jvm.functions.Function1
public final KPackageImpl invoke(Class<?> it) {
Intrinsics.checkNotNullParameter(it, "it");
return new KPackageImpl(it);
}
});
private static final CacheByClass<KType> CACHE_FOR_BASE_CLASSIFIERS = CacheByClassKt.createCache(new Function1<Class<?>, KType>() { // from class: kotlin.reflect.jvm.internal.CachesKt$CACHE_FOR_BASE_CLASSIFIERS$1
@Override // kotlin.jvm.functions.Function1
public final KType invoke(Class<?> it) {
Intrinsics.checkNotNullParameter(it, "it");
return KClassifiers.createType(CachesKt.getOrCreateKotlinClass(it), CollectionsKt.emptyList(), false, CollectionsKt.emptyList());
}
});
private static final CacheByClass<KType> CACHE_FOR_NULLABLE_BASE_CLASSIFIERS = CacheByClassKt.createCache(new Function1<Class<?>, KType>() { // from class: kotlin.reflect.jvm.internal.CachesKt$CACHE_FOR_NULLABLE_BASE_CLASSIFIERS$1
@Override // kotlin.jvm.functions.Function1
public final KType invoke(Class<?> it) {
Intrinsics.checkNotNullParameter(it, "it");
return KClassifiers.createType(CachesKt.getOrCreateKotlinClass(it), CollectionsKt.emptyList(), true, CollectionsKt.emptyList());
}
});
private static final CacheByClass<ConcurrentHashMap<Pair<List<KTypeProjection>, Boolean>, KType>> CACHE_FOR_GENERIC_CLASSIFIERS = CacheByClassKt.createCache(new Function1<Class<?>, ConcurrentHashMap<Pair<? extends List<? extends KTypeProjection>, ? extends Boolean>, KType>>() { // from class: kotlin.reflect.jvm.internal.CachesKt$CACHE_FOR_GENERIC_CLASSIFIERS$1
@Override // kotlin.jvm.functions.Function1
public final ConcurrentHashMap<Pair<List<KTypeProjection>, Boolean>, KType> invoke(Class<?> it) {
Intrinsics.checkNotNullParameter(it, "it");
return new ConcurrentHashMap<>();
}
});
public static final void clearCaches() {
K_CLASS_CACHE.clear();
K_PACKAGE_CACHE.clear();
CACHE_FOR_BASE_CLASSIFIERS.clear();
CACHE_FOR_NULLABLE_BASE_CLASSIFIERS.clear();
CACHE_FOR_GENERIC_CLASSIFIERS.clear();
}
public static final <T> KType getOrCreateKType(Class<T> jClass, List<KTypeProjection> arguments, boolean z3) {
Intrinsics.checkNotNullParameter(jClass, "jClass");
Intrinsics.checkNotNullParameter(arguments, "arguments");
return arguments.isEmpty() ? z3 ? CACHE_FOR_NULLABLE_BASE_CLASSIFIERS.get(jClass) : CACHE_FOR_BASE_CLASSIFIERS.get(jClass) : getOrCreateKTypeWithTypeArguments(jClass, arguments, z3);
}
private static final <T> KType getOrCreateKTypeWithTypeArguments(Class<T> cls, List<KTypeProjection> list, boolean z3) {
ConcurrentHashMap<Pair<List<KTypeProjection>, Boolean>, KType> concurrentHashMap = CACHE_FOR_GENERIC_CLASSIFIERS.get(cls);
Pair<List<KTypeProjection>, Boolean> pair = TuplesKt.to(list, Boolean.valueOf(z3));
KType kType = concurrentHashMap.get(pair);
if (kType == null) {
KType createType = KClassifiers.createType(getOrCreateKotlinClass(cls), list, z3, CollectionsKt.emptyList());
KType putIfAbsent = concurrentHashMap.putIfAbsent(pair, createType);
kType = putIfAbsent == null ? createType : putIfAbsent;
}
Intrinsics.checkNotNullExpressionValue(kType, "getOrPut(...)");
return kType;
}
public static final <T> KClassImpl<T> getOrCreateKotlinClass(Class<T> jClass) {
Intrinsics.checkNotNullParameter(jClass, "jClass");
KAnnotatedElement kAnnotatedElement = K_CLASS_CACHE.get(jClass);
Intrinsics.checkNotNull(kAnnotatedElement, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<T of kotlin.reflect.jvm.internal.CachesKt.getOrCreateKotlinClass>");
return (KClassImpl) kAnnotatedElement;
}
public static final <T> KDeclarationContainer getOrCreateKotlinPackage(Class<T> jClass) {
Intrinsics.checkNotNullParameter(jClass, "jClass");
return K_PACKAGE_CACHE.get(jClass);
}
}
@@ -0,0 +1,41 @@
package kotlin.reflect.jvm.internal;
import java.lang.ref.SoftReference;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0003\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u001d\u0012\u0016\u0010\u0003\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0006J\b\u0010\t\u001a\u00020\nH\u0016J\u0019\u0010\u000b\u001a\u00028\u00002\n\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u0005H\u0016¢\u0006\u0002\u0010\rR\u0014\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\bX\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/ClassValueCache;", "V", "Lkotlin/reflect/jvm/internal/CacheByClass;", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "(Lkotlin/jvm/functions/Function1;)V", "classValue", "Lkotlin/reflect/jvm/internal/ComputableClassValue;", "clear", "", "get", "key", "(Ljava/lang/Class;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCacheByClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/ClassValueCache\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,98:1\n1#2:99\n*E\n"})
/* loaded from: classes3.dex */
final class ClassValueCache<V> extends CacheByClass<V> {
private volatile ComputableClassValue<V> classValue;
public ClassValueCache(Function1<? super Class<?>, ? extends V> compute) {
Intrinsics.checkNotNullParameter(compute, "compute");
this.classValue = new ComputableClassValue<>(compute);
}
@Override // kotlin.reflect.jvm.internal.CacheByClass
public void clear() {
this.classValue = this.classValue.createNewCopy();
}
@Override // kotlin.reflect.jvm.internal.CacheByClass
public V get(Class<?> key) {
Object obj;
Object obj2;
Intrinsics.checkNotNullParameter(key, "key");
ComputableClassValue<V> computableClassValue = this.classValue;
obj = computableClassValue.get(key);
V v3 = (V) ((SoftReference) obj).get();
if (v3 != null) {
return v3;
}
computableClassValue.remove(key);
obj2 = computableClassValue.get(key);
V v4 = (V) ((SoftReference) obj2).get();
return v4 != null ? v4 : computableClassValue.compute.invoke(key);
}
}
@@ -0,0 +1,36 @@
package kotlin.reflect.jvm.internal;
import java.lang.ref.SoftReference;
import kotlin.Metadata;
import kotlin.jvm.JvmField;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0003\u0018\u0000*\u0004\b\u0000\u0010\u00012\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00010\u00030\u0002B\u001d\u0012\u0016\u0010\u0004\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0006\u0012\u0004\u0012\u00028\u00000\u0005¢\u0006\u0002\u0010\u0007J\u001a\u0010\b\u001a\b\u0012\u0004\u0012\u00028\u00000\u00032\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\u0006H\u0014J\f\u0010\n\u001a\b\u0012\u0004\u0012\u00028\u00000\u0000R \u0010\u0004\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0006\u0012\u0004\u0012\u00028\u00000\u00058\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/ComputableClassValue;", "V", "Ljava/lang/ClassValue;", "Ljava/lang/ref/SoftReference;", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "(Lkotlin/jvm/functions/Function1;)V", "computeValue", "type", "createNewCopy", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
final class ComputableClassValue<V> extends ClassValue<SoftReference<V>> {
@JvmField
public final Function1<Class<?>, V> compute;
/* JADX WARN: Multi-variable type inference failed */
public ComputableClassValue(Function1<? super Class<?>, ? extends V> compute) {
Intrinsics.checkNotNullParameter(compute, "compute");
this.compute = compute;
}
@Override // java.lang.ClassValue
public /* bridge */ /* synthetic */ Object computeValue(Class cls) {
return computeValue((Class<?>) cls);
}
public final ComputableClassValue<V> createNewCopy() {
return new ComputableClassValue<>(this.compute);
}
@Override // java.lang.ClassValue
public SoftReference<V> computeValue(Class<?> type) {
Intrinsics.checkNotNullParameter(type, "type");
return new SoftReference<>(this.compute.invoke(type));
}
}
@@ -0,0 +1,40 @@
package kotlin.reflect.jvm.internal;
import java.util.concurrent.ConcurrentHashMap;
import kotlin.Metadata;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0002\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u0002B\u001d\u0012\u0016\u0010\u0003\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\u0004¢\u0006\u0002\u0010\u0006J\b\u0010\t\u001a\u00020\nH\u0016J\u0019\u0010\u000b\u001a\u00028\u00002\n\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u0005H\u0016¢\u0006\u0002\u0010\rR\u001e\u0010\u0007\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\bX\u0082\u0004¢\u0006\u0002\n\u0000R\u001e\u0010\u0003\u001a\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0005\u0012\u0004\u0012\u00028\u00000\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/ConcurrentHashMapCache;", "V", "Lkotlin/reflect/jvm/internal/CacheByClass;", "compute", "Lkotlin/Function1;", "Ljava/lang/Class;", "(Lkotlin/jvm/functions/Function1;)V", "cache", "Ljava/util/concurrent/ConcurrentHashMap;", "clear", "", "get", "key", "(Ljava/lang/Class;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCacheByClass.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/ConcurrentHashMapCache\n+ 2 MapsJVM.kt\nkotlin/collections/MapsKt__MapsJVMKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,98:1\n72#2,2:99\n1#3:101\n*S KotlinDebug\n*F\n+ 1 CacheByClass.kt\nkotlin/reflect/jvm/internal/ConcurrentHashMapCache\n*L\n92#1:99,2\n92#1:101\n*E\n"})
/* loaded from: classes3.dex */
final class ConcurrentHashMapCache<V> extends CacheByClass<V> {
private final ConcurrentHashMap<Class<?>, V> cache;
private final Function1<Class<?>, V> compute;
/* JADX WARN: Multi-variable type inference failed */
public ConcurrentHashMapCache(Function1<? super Class<?>, ? extends V> compute) {
Intrinsics.checkNotNullParameter(compute, "compute");
this.compute = compute;
this.cache = new ConcurrentHashMap<>();
}
@Override // kotlin.reflect.jvm.internal.CacheByClass
public void clear() {
this.cache.clear();
}
@Override // kotlin.reflect.jvm.internal.CacheByClass
public V get(Class<?> key) {
Intrinsics.checkNotNullParameter(key, "key");
ConcurrentHashMap<Class<?>, V> concurrentHashMap = this.cache;
V v3 = (V) concurrentHashMap.get(key);
if (v3 != null) {
return v3;
}
V invoke = this.compute.invoke(key);
V v4 = (V) concurrentHashMap.putIfAbsent(key, invoke);
return v4 == null ? invoke : v4;
}
}
@@ -0,0 +1,58 @@
package kotlin.reflect.jvm.internal;
import com.google.firebase.messaging.Constants;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies;
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0010\u0018\u00002\u0012\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u0002\u0012\u0004\u0012\u00020\u00030\u0001B\r\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J!\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u0003H\u0016¢\u0006\u0002\u0010\u000bJ!\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u00022\u0006\u0010\b\u001a\u00020\r2\u0006\u0010\n\u001a\u00020\u0003H\u0016¢\u0006\u0002\u0010\u000eR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/CreateKCallableVisitor;", "Lkotlin/reflect/jvm/internal/impl/descriptors/impl/DeclarationDescriptorVisitorEmptyBodies;", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;)V", "visitFunctionDescriptor", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", Constants.ScionAnalytics.MessageType.DATA_MESSAGE, "(Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;Lkotlin/Unit;)Lkotlin/reflect/jvm/internal/KCallableImpl;", "visitPropertyDescriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;Lkotlin/Unit;)Lkotlin/reflect/jvm/internal/KCallableImpl;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nutil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 util.kt\nkotlin/reflect/jvm/internal/CreateKCallableVisitor\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,330:1\n1#2:331\n*E\n"})
/* loaded from: classes3.dex */
public class CreateKCallableVisitor extends DeclarationDescriptorVisitorEmptyBodies<KCallableImpl<?>, Unit> {
private final KDeclarationContainerImpl container;
public CreateKCallableVisitor(KDeclarationContainerImpl container) {
Intrinsics.checkNotNullParameter(container, "container");
this.container = container;
}
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorVisitor
public KCallableImpl<?> visitFunctionDescriptor(FunctionDescriptor descriptor, Unit data) {
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
Intrinsics.checkNotNullParameter(data, "data");
return new KFunctionImpl(this.container, descriptor);
}
@Override // kotlin.reflect.jvm.internal.impl.descriptors.impl.DeclarationDescriptorVisitorEmptyBodies, kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptorVisitor
public KCallableImpl<?> visitPropertyDescriptor(PropertyDescriptor descriptor, Unit data) {
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
Intrinsics.checkNotNullParameter(data, "data");
int i = (descriptor.getDispatchReceiverParameter() != null ? 1 : 0) + (descriptor.getExtensionReceiverParameter() != null ? 1 : 0);
if (descriptor.isVar()) {
if (i == 0) {
return new KMutableProperty0Impl(this.container, descriptor);
}
if (i == 1) {
return new KMutableProperty1Impl(this.container, descriptor);
}
if (i == 2) {
return new KMutableProperty2Impl(this.container, descriptor);
}
} else {
if (i == 0) {
return new KProperty0Impl(this.container, descriptor);
}
if (i == 1) {
return new KProperty1Impl(this.container, descriptor);
}
if (i == 2) {
return new KProperty2Impl(this.container, descriptor);
}
}
throw new KotlinReflectionInternalError("Unsupported property: " + descriptor);
}
}
@@ -0,0 +1,62 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.util.Collection;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KCallable;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.name.Name;
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\b\u0010\u000f\u001a\u00020\u0010H\u0002J\u0016\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00120\u00042\u0006\u0010\u0013\u001a\u00020\u0014H\u0016J\u0012\u0010\u0015\u001a\u0004\u0018\u00010\u00162\u0006\u0010\u0017\u001a\u00020\u0018H\u0016J\u0016\u0010\u0019\u001a\b\u0012\u0004\u0012\u00020\u00160\u00042\u0006\u0010\u0013\u001a\u00020\u0014H\u0016R\u001a\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0018\u0010\b\u001a\u0006\u0012\u0002\b\u00030\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u001e\u0010\f\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\r0\u00048VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u0007¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/EmptyContainerForLocal;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "()V", "constructorDescriptors", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ConstructorDescriptor;", "getConstructorDescriptors", "()Ljava/util/Collection;", "jClass", "Ljava/lang/Class;", "getJClass", "()Ljava/lang/Class;", "members", "Lkotlin/reflect/KCallable;", "getMembers", "fail", "", "getFunctions", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", AppMeasurementSdk.ConditionalUserProperty.NAME, "Lkotlin/reflect/jvm/internal/impl/name/Name;", "getLocalProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", FirebaseAnalytics.Param.INDEX, "", "getProperties", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class EmptyContainerForLocal extends KDeclarationContainerImpl {
public static final EmptyContainerForLocal INSTANCE = new EmptyContainerForLocal();
private EmptyContainerForLocal() {
}
private final Void fail() {
throw new KotlinReflectionInternalError("Introspecting local functions, lambdas, anonymous functions, local variables and typealiases is not yet fully supported in Kotlin reflection");
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<ConstructorDescriptor> getConstructorDescriptors() {
fail();
throw null;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<FunctionDescriptor> getFunctions(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
fail();
throw null;
}
@Override // kotlin.jvm.internal.ClassBasedDeclarationContainer
public Class<?> getJClass() {
fail();
throw null;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public PropertyDescriptor getLocalProperty(int index) {
return null;
}
@Override // kotlin.reflect.KDeclarationContainer
public Collection<KCallable<?>> getMembers() {
fail();
throw null;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<PropertyDescriptor> getProperties(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
fail();
throw null;
}
}
@@ -0,0 +1,128 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function10;
import kotlin.jvm.functions.Function11;
import kotlin.jvm.functions.Function12;
import kotlin.jvm.functions.Function13;
import kotlin.jvm.functions.Function14;
import kotlin.jvm.functions.Function15;
import kotlin.jvm.functions.Function16;
import kotlin.jvm.functions.Function17;
import kotlin.jvm.functions.Function18;
import kotlin.jvm.functions.Function19;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.functions.Function20;
import kotlin.jvm.functions.Function21;
import kotlin.jvm.functions.Function22;
import kotlin.jvm.functions.Function3;
import kotlin.jvm.functions.Function4;
import kotlin.jvm.functions.Function5;
import kotlin.jvm.functions.Function6;
import kotlin.jvm.functions.Function7;
import kotlin.jvm.functions.Function8;
import kotlin.jvm.functions.Function9;
import kotlin.reflect.KCallable;
@Metadata(d1 = {"\u0000l\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0018\b`\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00012\u0012\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00032\u001a\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00042\"\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00052*\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u000622\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00072:\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\b2B\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\t2J\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\n2R\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u000b2Z\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\f2b\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\r2j\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u000e2r\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0012\u0006\Line truncated
/* loaded from: classes3.dex */
public interface FunctionWithAllInvokes extends Function0<Object>, Function1<Object, Object>, Function10<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function11<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function12<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function13<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function14<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function15<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function16<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function17<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function18<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function19<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function2<Object, Object, Object>, Function20<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function21<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function22<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function3<Object, Object, Object, Object>, Function4<Object, Object, Object, Object, Object>, Function5<Object, Object, Object, Object, Object, Object>, Function6<Object, Object, Object, Object, Object, Object, Object>, Function7<Object, Object, Object, Object, Object, Object, Object, Object>, Function8<Object, Object, Object, Object, Object, Object, Object, Object, Object>, Function9<Object, Object, Object, Object, Object, Object, Object, Object, Object, Object>, KCallable<Object> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes) {
return functionWithAllInvokes.call(new Object[0]);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj) {
return functionWithAllInvokes.call(obj);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2) {
return functionWithAllInvokes.call(obj, obj2);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3) {
return functionWithAllInvokes.call(obj, obj2, obj3);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20, Object obj21) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20, obj21);
}
public static Object invoke(FunctionWithAllInvokes functionWithAllInvokes, Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20, Object obj21, Object obj22) {
return functionWithAllInvokes.call(obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20, obj21, obj22);
}
}
}
@@ -0,0 +1,190 @@
package kotlin.reflect.jvm.internal;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.Comparator;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.comparisons.ComparisonsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u00002\u00020\u0001:\u0005\u0005\u0006\u0007\b\tB\u0007\b\u0004¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H&\u0082\u0001\u0005\n\u000b\f\r\u000e¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "", "()V", "asString", "", "FakeJavaAnnotationConstructor", "JavaConstructor", "JavaMethod", "KotlinConstructor", "KotlinFunction", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaMethod;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public abstract class JvmFunctionSignature {
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\r\u001a\u00020\u000eH\u0016R\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u001f\u0010\u0007\u001a\u0010\u0012\f\u0012\n \n*\u0004\u0018\u00010\t0\t0\b¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "jClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)V", "getJClass", "()Ljava/lang/Class;", "methods", "", "Ljava/lang/reflect/Method;", "kotlin.jvm.PlatformType", "getMethods", "()Ljava/util/List;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nRuntimeTypeMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,302:1\n6442#2:303\n*S KotlinDebug\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/JvmFunctionSignature$FakeJavaAnnotationConstructor\n*L\n88#1:303\n*E\n"})
/* loaded from: classes3.dex */
public static final class FakeJavaAnnotationConstructor extends JvmFunctionSignature {
private final Class<?> jClass;
private final List<Method> methods;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Type inference failed for: r0v3, types: [kotlin.reflect.jvm.internal.JvmFunctionSignature$FakeJavaAnnotationConstructor$special$$inlined$sortedBy$1] */
public FakeJavaAnnotationConstructor(Class<?> jClass) {
super(null);
List<Method> sortedWith;
Intrinsics.checkNotNullParameter(jClass, "jClass");
this.jClass = jClass;
Method[] declaredMethods = jClass.getDeclaredMethods();
Intrinsics.checkNotNullExpressionValue(declaredMethods, "getDeclaredMethods(...)");
sortedWith = ArraysKt___ArraysKt.sortedWith(declaredMethods, (Comparator) new Comparator() { // from class: kotlin.reflect.jvm.internal.JvmFunctionSignature$FakeJavaAnnotationConstructor$special$$inlined$sortedBy$1
/* JADX WARN: Multi-variable type inference failed */
@Override // java.util.Comparator
public final int compare(T t2, T t4) {
return ComparisonsKt.compareValues(((Method) t2).getName(), ((Method) t4).getName());
}
});
this.methods = sortedWith;
}
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
/* renamed from: asString */
public String get_signature() {
String joinToString$default;
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(this.methods, "", "<init>(", ")V", 0, null, new Function1<Method, CharSequence>() { // from class: kotlin.reflect.jvm.internal.JvmFunctionSignature$FakeJavaAnnotationConstructor$asString$1
@Override // kotlin.jvm.functions.Function1
public final CharSequence invoke(Method method) {
Class<?> returnType = method.getReturnType();
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
return ReflectClassUtilKt.getDesc(returnType);
}
}, 24, null);
return joinToString$default;
}
public final List<Method> getMethods() {
return this.methods;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0007\u001a\u00020\bH\u0016R\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "constructor", "Ljava/lang/reflect/Constructor;", "(Ljava/lang/reflect/Constructor;)V", "getConstructor", "()Ljava/lang/reflect/Constructor;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class JavaConstructor extends JvmFunctionSignature {
private final Constructor<?> constructor;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JavaConstructor(Constructor<?> constructor) {
super(null);
Intrinsics.checkNotNullParameter(constructor, "constructor");
this.constructor = constructor;
}
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
/* renamed from: asString */
public String get_signature() {
String joinToString$default;
Class<?>[] parameterTypes = this.constructor.getParameterTypes();
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
joinToString$default = ArraysKt___ArraysKt.joinToString$default(parameterTypes, "", "<init>(", ")V", 0, (CharSequence) null, new Function1<Class<?>, CharSequence>() { // from class: kotlin.reflect.jvm.internal.JvmFunctionSignature$JavaConstructor$asString$1
@Override // kotlin.jvm.functions.Function1
public final CharSequence invoke(Class<?> cls) {
Intrinsics.checkNotNull(cls);
return ReflectClassUtilKt.getDesc(cls);
}
}, 24, (Object) null);
return joinToString$default;
}
public final Constructor<?> getConstructor() {
return this.constructor;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0007\u001a\u00020\bH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$JavaMethod;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "getMethod", "()Ljava/lang/reflect/Method;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class JavaMethod extends JvmFunctionSignature {
private final Method method;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JavaMethod(Method method) {
super(null);
Intrinsics.checkNotNullParameter(method, "method");
this.method = method;
}
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
/* renamed from: asString */
public String get_signature() {
String signature;
signature = RuntimeTypeMapperKt.getSignature(this.method);
return signature;
}
public final Method getMethod() {
return this.method;
}
}
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0007\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\f\u001a\u00020\u0006H\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinConstructor;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "signature", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmMemberSignature$Method;", "(Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;)V", "_signature", "", "constructorDesc", "getConstructorDesc", "()Ljava/lang/String;", "getSignature", "()Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;", "asString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class KotlinConstructor extends JvmFunctionSignature {
private final String _signature;
private final JvmMemberSignature.Method signature;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KotlinConstructor(JvmMemberSignature.Method signature) {
super(null);
Intrinsics.checkNotNullParameter(signature, "signature");
this.signature = signature;
this._signature = signature.asString();
}
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
/* renamed from: asString, reason: from getter */
public String get_signature() {
return this._signature;
}
public final String getConstructorDesc() {
return this.signature.getDesc();
}
}
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\t\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u000e\u001a\u00020\u0006H\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\n\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\tR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\r¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "signature", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmMemberSignature$Method;", "(Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;)V", "_signature", "", "methodDesc", "getMethodDesc", "()Ljava/lang/String;", "methodName", "getMethodName", "getSignature", "()Lorg/jetbrains/kotlin/metadata/jvm/deserialization/JvmMemberSignature$Method;", "asString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class KotlinFunction extends JvmFunctionSignature {
private final String _signature;
private final JvmMemberSignature.Method signature;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KotlinFunction(JvmMemberSignature.Method signature) {
super(null);
Intrinsics.checkNotNullParameter(signature, "signature");
this.signature = signature;
this._signature = signature.asString();
}
@Override // kotlin.reflect.jvm.internal.JvmFunctionSignature
/* renamed from: asString, reason: from getter */
public String get_signature() {
return this._signature;
}
public final String getMethodDesc() {
return this.signature.getDesc();
}
public final String getMethodName() {
return this.signature.getName();
}
}
public /* synthetic */ JvmFunctionSignature(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* renamed from: asString */
public abstract String get_signature();
private JvmFunctionSignature() {
}
}
@@ -0,0 +1,229 @@
package kotlin.reflect.jvm.internal;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
import kotlin.reflect.jvm.internal.impl.descriptors.PackageFragmentDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.load.java.JvmAbi;
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmPackagePartSource;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
import kotlin.reflect.jvm.internal.impl.name.NameUtils;
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u00002\u00020\u0001:\u0004\u0005\u0006\u0007\bB\u0007\b\u0004¢\u0006\u0002\u0010\u0002J\b\u0010\u0003\u001a\u00020\u0004H&\u0082\u0001\u0004\t\n\u000b\f¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "", "()V", "asString", "", "JavaField", "JavaMethodProperty", "KotlinProperty", "MappedKotlinProperty", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaField;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaMethodProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$KotlinProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature$MappedKotlinProperty;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public abstract class JvmPropertySignature {
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\b\u0010\u0007\u001a\u00020\bH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaField;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "getField", "()Ljava/lang/reflect/Field;", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class JavaField extends JvmPropertySignature {
private final Field field;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JavaField(Field field) {
super(null);
Intrinsics.checkNotNullParameter(field, "field");
this.field = field;
}
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
/* renamed from: asString */
public String getString() {
StringBuilder sb = new StringBuilder();
String name = this.field.getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
sb.append(JvmAbi.getterName(name));
sb.append("()");
Class<?> type = this.field.getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
sb.append(ReflectClassUtilKt.getDesc(type));
return sb.toString();
}
public final Field getField() {
return this.field;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005J\b\u0010\t\u001a\u00020\nH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$JavaMethodProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "getterMethod", "Ljava/lang/reflect/Method;", "setterMethod", "(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V", "getGetterMethod", "()Ljava/lang/reflect/Method;", "getSetterMethod", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class JavaMethodProperty extends JvmPropertySignature {
private final Method getterMethod;
private final Method setterMethod;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JavaMethodProperty(Method getterMethod, Method method) {
super(null);
Intrinsics.checkNotNullParameter(getterMethod, "getterMethod");
this.getterMethod = getterMethod;
this.setterMethod = method;
}
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
/* renamed from: asString */
public String getString() {
String signature;
signature = RuntimeTypeMapperKt.getSignature(this.getterMethod);
return signature;
}
public final Method getGetterMethod() {
return this.getterMethod;
}
public final Method getSetterMethod() {
return this.setterMethod;
}
}
@Metadata(d1 = {"\u00002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0010\u000e\n\u0002\b\u0005\u0018\u00002\u00020\u0001B-\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u000b¢\u0006\u0002\u0010\fJ\b\u0010\u0019\u001a\u00020\u0016H\u0016J\b\u0010\u001a\u001a\u00020\u0016H\u0002R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u0011\u0010\b\u001a\u00020\t¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0012R\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u000e\u0010\u0015\u001a\u00020\u0016X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\n\u001a\u00020\u000b¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018¨\u0006\u001b"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$KotlinProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "proto", "Lkotlin/reflect/jvm/internal/impl/metadata/ProtoBuf$Property;", "signature", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/JvmProtoBuf$JvmPropertySignature;", "nameResolver", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/NameResolver;", "typeTable", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/TypeTable;", "(Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;Lorg/jetbrains/kotlin/metadata/jvm/JvmProtoBuf$JvmPropertySignature;Lorg/jetbrains/kotlin/metadata/deserialization/NameResolver;Lorg/jetbrains/kotlin/metadata/deserialization/TypeTable;)V", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;", "getNameResolver", "()Lorg/jetbrains/kotlin/metadata/deserialization/NameResolver;", "getProto", "()Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;", "getSignature", "()Lorg/jetbrains/kotlin/metadata/jvm/JvmProtoBuf$JvmPropertySignature;", "string", "", "getTypeTable", "()Lorg/jetbrains/kotlin/metadata/deserialization/TypeTable;", "asString", "getManglingSuffix", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nRuntimeTypeMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/JvmPropertySignature$KotlinProperty\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,302:1\n1#2:303\n*E\n"})
/* loaded from: classes3.dex */
public static final class KotlinProperty extends JvmPropertySignature {
private final PropertyDescriptor descriptor;
private final NameResolver nameResolver;
private final ProtoBuf.Property proto;
private final JvmProtoBuf.JvmPropertySignature signature;
private final String string;
private final TypeTable typeTable;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KotlinProperty(PropertyDescriptor descriptor, ProtoBuf.Property proto, JvmProtoBuf.JvmPropertySignature signature, NameResolver nameResolver, TypeTable typeTable) {
super(null);
String str;
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
Intrinsics.checkNotNullParameter(proto, "proto");
Intrinsics.checkNotNullParameter(signature, "signature");
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
this.descriptor = descriptor;
this.proto = proto;
this.signature = signature;
this.nameResolver = nameResolver;
this.typeTable = typeTable;
if (signature.hasGetter()) {
str = nameResolver.getString(signature.getGetter().getName()) + nameResolver.getString(signature.getGetter().getDesc());
} else {
JvmMemberSignature.Field jvmFieldSignature$default = JvmProtoBufUtil.getJvmFieldSignature$default(JvmProtoBufUtil.INSTANCE, proto, nameResolver, typeTable, false, 8, null);
if (jvmFieldSignature$default == null) {
throw new KotlinReflectionInternalError("No field signature for property: " + descriptor);
}
String component1 = jvmFieldSignature$default.component1();
str = JvmAbi.getterName(component1) + getManglingSuffix() + "()" + jvmFieldSignature$default.component2();
}
this.string = str;
}
private final String getManglingSuffix() {
String str;
DeclarationDescriptor containingDeclaration = this.descriptor.getContainingDeclaration();
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
if (Intrinsics.areEqual(this.descriptor.getVisibility(), DescriptorVisibilities.INTERNAL) && (containingDeclaration instanceof DeserializedClassDescriptor)) {
ProtoBuf.Class classProto = ((DeserializedClassDescriptor) containingDeclaration).getClassProto();
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Class, Integer> classModuleName = JvmProtoBuf.classModuleName;
Intrinsics.checkNotNullExpressionValue(classModuleName, "classModuleName");
Integer num = (Integer) ProtoBufUtilKt.getExtensionOrNull(classProto, classModuleName);
if (num == null || (str = this.nameResolver.getString(num.intValue())) == null) {
str = "main";
}
return "$" + NameUtils.sanitizeAsJavaIdentifier(str);
}
if (!Intrinsics.areEqual(this.descriptor.getVisibility(), DescriptorVisibilities.PRIVATE) || !(containingDeclaration instanceof PackageFragmentDescriptor)) {
return "";
}
PropertyDescriptor propertyDescriptor = this.descriptor;
Intrinsics.checkNotNull(propertyDescriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.serialization.deserialization.descriptors.DeserializedPropertyDescriptor");
DeserializedContainerSource containerSource = ((DeserializedPropertyDescriptor) propertyDescriptor).getContainerSource();
if (!(containerSource instanceof JvmPackagePartSource)) {
return "";
}
JvmPackagePartSource jvmPackagePartSource = (JvmPackagePartSource) containerSource;
if (jvmPackagePartSource.getFacadeClassName() == null) {
return "";
}
return "$" + jvmPackagePartSource.getSimpleName().asString();
}
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
/* renamed from: asString, reason: from getter */
public String getString() {
return this.string;
}
public final PropertyDescriptor getDescriptor() {
return this.descriptor;
}
public final NameResolver getNameResolver() {
return this.nameResolver;
}
public final ProtoBuf.Property getProto() {
return this.proto;
}
public final JvmProtoBuf.JvmPropertySignature getSignature() {
return this.signature;
}
public final TypeTable getTypeTable() {
return this.typeTable;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u000e\n\u0000\u0018\u00002\u00020\u0001B\u0017\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005J\b\u0010\t\u001a\u00020\nH\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0006\u0010\u0007R\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0007¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/JvmPropertySignature$MappedKotlinProperty;", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "getterSignature", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "setterSignature", "(Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;)V", "getGetterSignature", "()Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "getSetterSignature", "asString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class MappedKotlinProperty extends JvmPropertySignature {
private final JvmFunctionSignature.KotlinFunction getterSignature;
private final JvmFunctionSignature.KotlinFunction setterSignature;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public MappedKotlinProperty(JvmFunctionSignature.KotlinFunction getterSignature, JvmFunctionSignature.KotlinFunction kotlinFunction) {
super(null);
Intrinsics.checkNotNullParameter(getterSignature, "getterSignature");
this.getterSignature = getterSignature;
this.setterSignature = kotlinFunction;
}
@Override // kotlin.reflect.jvm.internal.JvmPropertySignature
/* renamed from: asString */
public String getString() {
return this.getterSignature.get_signature();
}
public final JvmFunctionSignature.KotlinFunction getGetterSignature() {
return this.getterSignature;
}
public final JvmFunctionSignature.KotlinFunction getSetterSignature() {
return this.setterSignature;
}
}
public /* synthetic */ JvmPropertySignature(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* renamed from: asString */
public abstract String getString();
private JvmPropertySignature() {
}
}
@@ -0,0 +1,542 @@
package kotlin.reflect.jvm.internal;
import com.google.firebase.dynamiclinks.DynamicLink;
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;
import java.lang.reflect.Method;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.comparisons.ComparisonsKt;
import kotlin.coroutines.Continuation;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KParameter;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.KVisibility;
import kotlin.reflect.full.IllegalCallableAccessException;
import kotlin.reflect.jvm.KTypesJvm;
import kotlin.reflect.jvm.ReflectJvmMapping;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCallerKt;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
import kotlin.reflect.jvm.internal.impl.descriptors.ParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.load.java.descriptors.JavaCallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.TypeSubstitutionKt;
@Metadata(d1 = {"\u0000¦\u0001\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010$\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\b \u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00020\u0003B\u0005¢\u0006\u0002\u0010\u0004J%\u0010<\u001a\u00028\u00002\u0016\u0010=\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\b0\u0007\"\u0004\u0018\u00010\bH\u0016¢\u0006\u0002\u0010>J#\u0010?\u001a\u00028\u00002\u0014\u0010=\u001a\u0010\u0012\u0004\u0012\u00020\u000f\u0012\u0006\u0012\u0004\u0018\u00010\b0@H\u0002¢\u0006\u0002\u0010AJ#\u0010B\u001a\u00028\u00002\u0014\u0010=\u001a\u0010\u0012\u0004\u0012\u00020\u000f\u0012\u0006\u0012\u0004\u0018\u00010\b0@H\u0016¢\u0006\u0002\u0010AJ3\u0010C\u001a\u00028\u00002\u0014\u0010=\u001a\u0010\u0012\u0004\u0012\u00020\u000f\u0012\u0006\u0012\u0004\u0018\u00010\b0@2\f\u0010D\u001a\b\u0012\u0002\b\u0003\u0018\u00010EH\u0000¢\u0006\u0004\bF\u0010GJ\u0010\u0010H\u001a\u00020\b2\u0006\u0010I\u001a\u000202H\u0002J\n\u0010J\u001a\u0004\u0018\u00010KH\u0002J\u0015\u0010L\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\b0\u0007H\u0002¢\u0006\u0002\u0010MJ\u0010\u0010N\u001a\u00020O2\u0006\u0010P\u001a\u00020\u000fH\u0002R,\u0010\u0005\u001a \u0012\u001c\u0012\u001a\u0012\u0006\u0012\u0004\u0018\u00010\b \t*\f\u0012\u0006\u0012\u0004\u0018\u00010\b\u0018\u00010\u00070\u00070\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R(\u0010\n\u001a\u001c\u0012\u0018\u0012\u0016\u0012\u0004\u0012\u00020\f \t*\n\u0012\u0004\u0012\u00020\f\u0018\u00010\u000b0\u000b0\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R>\u0010\r\u001a2\u0012.\u0012,\u0012\u0004\u0012\u00020\u000f \t*\u0016\u0012\u0004\u0012\u00020\u000f\u0018\u00010\u000ej\n\u0012\u0004\u0012\u00020\u000f\u0018\u0001`\u00100\u000ej\b\u0012\u0004\u0012\u00020\u000f`\u00100\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001c\u0010\u0011\u001a\u0010\u0012\f\u0012\n \t*\u0004\u0018\u00010\u00120\u00120\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R(\u0010\u0013\u001a\u001c\u0012\u0018\u0012\u0016\u0012\u0004\u0012\u00020\u0014 \t*\n\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u000b0\u000b0\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\f0\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017R\u0016\u0010\u0018\u001a\u0006\u0012\u0002\b\u00030\u0019X¦\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001bR\u0012\u0010\u001c\u001a\u00020\u001dX¦\u0004¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u001fR\u0018\u0010 \u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0019X¦\u0004¢\u0006\u0006\u001a\u0004\b!\u0010\u001bR\u0012\u0010\"\u001a\u00020#X¦\u0004¢\u0006\u0006\u001a\u0004\b$\u0010%R\u0014\u0010&\u001a\u00020'8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b&\u0010(R\u0014\u0010)\u001a\u00020'8DX\u0084\u0004¢\u0006\u0006\u001a\u0004\b)\u0010(R\u0012\u0010*\u001a\u00020'X¦\u0004¢\u0006\u0006\u001a\u0004\b*\u0010(R\u0014\u0010+\u001a\u00020'8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b+\u0010(R\u0014\u0010,\u001a\u00020'8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b,\u0010(R\u001a\u0010-\u001a\b\u0012\u0004\u0012\u00020\u000f0\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b.\u0010\u0017R\u0014\u0010/\u001a\b\u0012\u0004\u0012\u00020'00X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u00101\u001a\u0002028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b3\u00104R\u001a\u00105\u001a\b\u0012\u0004\u0012\u0002060\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b7\u0010\u0017R\u0016\u00108\u001a\u0004\u0018\u0001098VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b:\u0010;¨\u0006Q"}, d2 = {"Lkotlin/reflect/jvm/internal/KCallableImpl;", "R", "Lkotlin/reflect/KCallable;", "Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;", "()V", "_absentArguments", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "", "", "kotlin.jvm.PlatformType", "_annotations", "", "", "_parameters", "Ljava/util/ArrayList;", "Lkotlin/reflect/KParameter;", "Lkotlin/collections/ArrayList;", "_returnType", "Lkotlin/reflect/jvm/internal/KTypeImpl;", "_typeParameters", "Lkotlin/reflect/jvm/internal/KTypeParameterImpl;", "annotations", "getAnnotations", "()Ljava/util/List;", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "getContainer", "()Lkotlin/refLine truncated
@SourceDebugExtension({"SMAP\nKCallableImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KCallableImpl.kt\nkotlin/reflect/jvm/internal/KCallableImpl\n+ 2 util.kt\nkotlin/reflect/jvm/internal/UtilKt\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n+ 4 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 5 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 6 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,276:1\n227#2,5:277\n227#2,2:282\n229#2,3:285\n227#2,5:288\n227#2,5:293\n227#2,2:303\n229#2,3:307\n26#3:284\n1#4:298\n1549#5:299\n1620#5,3:300\n37#6,2:305\n*S KotlinDebug\n*F\n+ 1 KCallableImpl.kt\nkotlin/reflect/jvm/internal/KCallableImpl\n*L\n107#1:277,5\n158#1:282,2\n158#1:285,3\n206#1:288,5\n214#1:293,5\n248#1:303,2\n248#1:307,3\n159#1:284\n234#1:299\n234#1:300,3\n249#1:305,2\n*E\n"})
/* loaded from: classes3.dex */
public abstract class KCallableImpl<R> implements KCallable<R>, KTypeParameterOwnerImpl {
private final ReflectProperties.LazySoftVal<Object[]> _absentArguments;
private final ReflectProperties.LazySoftVal<List<Annotation>> _annotations;
private final ReflectProperties.LazySoftVal<ArrayList<KParameter>> _parameters;
private final ReflectProperties.LazySoftVal<KTypeImpl> _returnType;
private final ReflectProperties.LazySoftVal<List<KTypeParameterImpl>> _typeParameters;
private final Lazy<Boolean> parametersNeedMFVCFlattening;
public KCallableImpl() {
ReflectProperties.LazySoftVal<List<Annotation>> lazySoft = ReflectProperties.lazySoft(new Function0<List<? extends Annotation>>(this) { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_annotations$1
final /* synthetic */ KCallableImpl<R> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends Annotation> invoke() {
return UtilKt.computeAnnotations(this.this$0.getDescriptor());
}
});
Intrinsics.checkNotNullExpressionValue(lazySoft, "lazySoft(...)");
this._annotations = lazySoft;
ReflectProperties.LazySoftVal<ArrayList<KParameter>> lazySoft2 = ReflectProperties.lazySoft(new Function0<ArrayList<KParameter>>(this) { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_parameters$1
final /* synthetic */ KCallableImpl<R> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final ArrayList<KParameter> invoke() {
int i;
final CallableMemberDescriptor descriptor = this.this$0.getDescriptor();
ArrayList<KParameter> arrayList = new ArrayList<>();
final int i4 = 0;
if (this.this$0.isBound()) {
i = 0;
} else {
final ReceiverParameterDescriptor instanceReceiverParameter = UtilKt.getInstanceReceiverParameter(descriptor);
if (instanceReceiverParameter != null) {
arrayList.add(new KParameterImpl(this.this$0, 0, KParameter.Kind.INSTANCE, new Function0<ParameterDescriptor>() { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_parameters$1.1
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final ParameterDescriptor invoke() {
return ReceiverParameterDescriptor.this;
}
}));
i = 1;
} else {
i = 0;
}
final ReceiverParameterDescriptor extensionReceiverParameter = descriptor.getExtensionReceiverParameter();
if (extensionReceiverParameter != null) {
arrayList.add(new KParameterImpl(this.this$0, i, KParameter.Kind.EXTENSION_RECEIVER, new Function0<ParameterDescriptor>() { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_parameters$1.2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final ParameterDescriptor invoke() {
return ReceiverParameterDescriptor.this;
}
}));
i++;
}
}
int size = descriptor.getValueParameters().size();
while (i4 < size) {
arrayList.add(new KParameterImpl(this.this$0, i, KParameter.Kind.VALUE, new Function0<ParameterDescriptor>() { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_parameters$1.3
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final ParameterDescriptor invoke() {
ValueParameterDescriptor valueParameterDescriptor = CallableMemberDescriptor.this.getValueParameters().get(i4);
Intrinsics.checkNotNullExpressionValue(valueParameterDescriptor, "get(...)");
return valueParameterDescriptor;
}
}));
i4++;
i++;
}
if (this.this$0.isAnnotationConstructor() && (descriptor instanceof JavaCallableMemberDescriptor) && arrayList.size() > 1) {
CollectionsKt.sortWith(arrayList, new Comparator() { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_parameters$1$invoke$$inlined$sortBy$1
@Override // java.util.Comparator
public final int compare(T t2, T t4) {
return ComparisonsKt.compareValues(((KParameter) t2).getName(), ((KParameter) t4).getName());
}
});
}
arrayList.trimToSize();
return arrayList;
}
});
Intrinsics.checkNotNullExpressionValue(lazySoft2, "lazySoft(...)");
this._parameters = lazySoft2;
ReflectProperties.LazySoftVal<KTypeImpl> lazySoft3 = ReflectProperties.lazySoft(new Function0<KTypeImpl>(this) { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_returnType$1
final /* synthetic */ KCallableImpl<R> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KTypeImpl invoke() {
KotlinType returnType = this.this$0.getDescriptor().getReturnType();
Intrinsics.checkNotNull(returnType);
final KCallableImpl<R> kCallableImpl = this.this$0;
return new KTypeImpl(returnType, new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_returnType$1.1
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
Type extractContinuationArgument;
extractContinuationArgument = kCallableImpl.extractContinuationArgument();
return extractContinuationArgument == null ? kCallableImpl.getCaller().getReturnType() : extractContinuationArgument;
}
});
}
});
Intrinsics.checkNotNullExpressionValue(lazySoft3, "lazySoft(...)");
this._returnType = lazySoft3;
ReflectProperties.LazySoftVal<List<KTypeParameterImpl>> lazySoft4 = ReflectProperties.lazySoft(new Function0<List<? extends KTypeParameterImpl>>(this) { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_typeParameters$1
final /* synthetic */ KCallableImpl<R> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KTypeParameterImpl> invoke() {
int collectionSizeOrDefault;
List<TypeParameterDescriptor> typeParameters = this.this$0.getDescriptor().getTypeParameters();
Intrinsics.checkNotNullExpressionValue(typeParameters, "getTypeParameters(...)");
List<TypeParameterDescriptor> list = typeParameters;
KTypeParameterOwnerImpl kTypeParameterOwnerImpl = this.this$0;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (TypeParameterDescriptor typeParameterDescriptor : list) {
Intrinsics.checkNotNull(typeParameterDescriptor);
arrayList.add(new KTypeParameterImpl(kTypeParameterOwnerImpl, typeParameterDescriptor));
}
return arrayList;
}
});
Intrinsics.checkNotNullExpressionValue(lazySoft4, "lazySoft(...)");
this._typeParameters = lazySoft4;
ReflectProperties.LazySoftVal<Object[]> lazySoft5 = ReflectProperties.lazySoft(new Function0<Object[]>(this) { // from class: kotlin.reflect.jvm.internal.KCallableImpl$_absentArguments$1
final /* synthetic */ KCallableImpl<R> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Object[] invoke() {
Lazy lazy;
int i;
Object defaultEmptyArray;
List<KParameter> parameters = this.this$0.getParameters();
int size = (this.this$0.isSuspend() ? 1 : 0) + parameters.size();
lazy = ((KCallableImpl) this.this$0).parametersNeedMFVCFlattening;
if (((Boolean) lazy.getValue()).booleanValue()) {
KCallableImpl<R> kCallableImpl = this.this$0;
i = 0;
for (KParameter kParameter : parameters) {
i += kParameter.getKind() == KParameter.Kind.VALUE ? kCallableImpl.getParameterTypeSize(kParameter) : 0;
}
} else {
List<KParameter> list = parameters;
if ((list instanceof Collection) && list.isEmpty()) {
i = 0;
} else {
Iterator<T> it = list.iterator();
i = 0;
while (it.hasNext()) {
if (((KParameter) it.next()).getKind() == KParameter.Kind.VALUE && (i = i + 1) < 0) {
CollectionsKt.throwCountOverflow();
}
}
}
}
int i4 = (i + 31) / 32;
Object[] objArr = new Object[size + i4 + 1];
KCallableImpl<R> kCallableImpl2 = this.this$0;
for (KParameter kParameter2 : parameters) {
if (kParameter2.isOptional() && !UtilKt.isInlineClassType(kParameter2.getType())) {
objArr[kParameter2.getIndex()] = UtilKt.defaultPrimitiveValue(ReflectJvmMapping.getJavaType(kParameter2.getType()));
} else if (kParameter2.isVararg()) {
int index = kParameter2.getIndex();
defaultEmptyArray = kCallableImpl2.defaultEmptyArray(kParameter2.getType());
objArr[index] = defaultEmptyArray;
}
}
for (int i5 = 0; i5 < i4; i5++) {
objArr[size + i5] = 0;
}
return objArr;
}
});
Intrinsics.checkNotNullExpressionValue(lazySoft5, "lazySoft(...)");
this._absentArguments = lazySoft5;
this.parametersNeedMFVCFlattening = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Boolean>(this) { // from class: kotlin.reflect.jvm.internal.KCallableImpl$parametersNeedMFVCFlattening$1
final /* synthetic */ KCallableImpl<R> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // kotlin.jvm.functions.Function0
public final Boolean invoke() {
List<KParameter> parameters = this.this$0.getParameters();
boolean z3 = false;
if (!(parameters instanceof Collection) || !parameters.isEmpty()) {
Iterator<T> it = parameters.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
if (UtilKt.getNeedsMultiFieldValueClassFlattening(((KParameter) it.next()).getType())) {
z3 = true;
break;
}
}
}
return Boolean.valueOf(z3);
}
});
}
private final R callAnnotationConstructor(Map<KParameter, ? extends Object> args) {
int collectionSizeOrDefault;
Object defaultEmptyArray;
List<KParameter> parameters = getParameters();
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(parameters, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (KParameter kParameter : parameters) {
if (args.containsKey(kParameter)) {
defaultEmptyArray = args.get(kParameter);
if (defaultEmptyArray == null) {
throw new IllegalArgumentException("Annotation argument value cannot be null (" + kParameter + ')');
}
} else if (kParameter.isOptional()) {
defaultEmptyArray = null;
} else {
if (!kParameter.isVararg()) {
throw new IllegalArgumentException("No argument provided for a required parameter: " + kParameter);
}
defaultEmptyArray = defaultEmptyArray(kParameter.getType());
}
arrayList.add(defaultEmptyArray);
}
Caller<?> defaultCaller = getDefaultCaller();
if (defaultCaller != null) {
try {
return (R) defaultCaller.call(arrayList.toArray(new Object[0]));
} catch (IllegalAccessException e4) {
throw new IllegalCallableAccessException(e4);
}
}
throw new KotlinReflectionInternalError("This callable does not support a default call: " + getDescriptor());
}
/* JADX INFO: Access modifiers changed from: private */
public final Object defaultEmptyArray(KType type) {
Class javaClass = JvmClassMappingKt.getJavaClass((KClass) KTypesJvm.getJvmErasure(type));
if (javaClass.isArray()) {
Object newInstance = Array.newInstance(javaClass.getComponentType(), 0);
Intrinsics.checkNotNullExpressionValue(newInstance, "run(...)");
return newInstance;
}
throw new KotlinReflectionInternalError("Cannot instantiate the default empty array of type " + javaClass.getSimpleName() + ", because it is not an array type");
}
/* JADX INFO: Access modifiers changed from: private */
public final Type extractContinuationArgument() {
Type[] lowerBounds;
if (isSuspend()) {
Object lastOrNull = CollectionsKt.lastOrNull((List<? extends Object>) getCaller().getParameterTypes());
ParameterizedType parameterizedType = lastOrNull instanceof ParameterizedType ? (ParameterizedType) lastOrNull : null;
if (Intrinsics.areEqual(parameterizedType != null ? parameterizedType.getRawType() : null, Continuation.class)) {
Type[] actualTypeArguments = parameterizedType.getActualTypeArguments();
Intrinsics.checkNotNullExpressionValue(actualTypeArguments, "getActualTypeArguments(...)");
Object single = ArraysKt.single(actualTypeArguments);
WildcardType wildcardType = single instanceof WildcardType ? (WildcardType) single : null;
if (wildcardType != null && (lowerBounds = wildcardType.getLowerBounds()) != null) {
return (Type) ArraysKt.first(lowerBounds);
}
}
}
return null;
}
private final Object[] getAbsentArguments() {
return (Object[]) this._absentArguments.invoke().clone();
}
/* JADX INFO: Access modifiers changed from: private */
public final int getParameterTypeSize(KParameter parameter) {
if (!this.parametersNeedMFVCFlattening.getValue().booleanValue()) {
throw new IllegalArgumentException("Check if parametersNeedMFVCFlattening is true before");
}
if (!UtilKt.getNeedsMultiFieldValueClassFlattening(parameter.getType())) {
return 1;
}
KType type = parameter.getType();
Intrinsics.checkNotNull(type, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KTypeImpl");
List<Method> mfvcUnboxMethods = ValueClassAwareCallerKt.getMfvcUnboxMethods(TypeSubstitutionKt.asSimpleType(((KTypeImpl) type).getType()));
Intrinsics.checkNotNull(mfvcUnboxMethods);
return mfvcUnboxMethods.size();
}
@Override // kotlin.reflect.KCallable
public R call(Object... args) {
Intrinsics.checkNotNullParameter(args, "args");
try {
return (R) getCaller().call(args);
} catch (IllegalAccessException e4) {
throw new IllegalCallableAccessException(e4);
}
}
@Override // kotlin.reflect.KCallable
public R callBy(Map<KParameter, ? extends Object> args) {
Intrinsics.checkNotNullParameter(args, "args");
return isAnnotationConstructor() ? callAnnotationConstructor(args) : callDefaultMethod$kotlin_reflection(args, null);
}
public final R callDefaultMethod$kotlin_reflection(Map<KParameter, ? extends Object> args, Continuation<?> continuationArgument) {
Intrinsics.checkNotNullParameter(args, "args");
List<KParameter> parameters = getParameters();
boolean z3 = false;
if (parameters.isEmpty()) {
try {
return (R) getCaller().call(isSuspend() ? new Continuation[]{continuationArgument} : new Continuation[0]);
} catch (IllegalAccessException e4) {
throw new IllegalCallableAccessException(e4);
}
}
int size = (isSuspend() ? 1 : 0) + parameters.size();
Object[] absentArguments = getAbsentArguments();
if (isSuspend()) {
absentArguments[parameters.size()] = continuationArgument;
}
boolean booleanValue = this.parametersNeedMFVCFlattening.getValue().booleanValue();
int i = 0;
for (KParameter kParameter : parameters) {
int parameterTypeSize = booleanValue ? getParameterTypeSize(kParameter) : 1;
if (args.containsKey(kParameter)) {
absentArguments[kParameter.getIndex()] = args.get(kParameter);
} else if (kParameter.isOptional()) {
if (booleanValue) {
int i4 = i + parameterTypeSize;
for (int i5 = i; i5 < i4; i5++) {
int i6 = (i5 / 32) + size;
Object obj = absentArguments[i6];
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.Int");
absentArguments[i6] = Integer.valueOf(((Integer) obj).intValue() | (1 << (i5 % 32)));
}
} else {
int i7 = (i / 32) + size;
Object obj2 = absentArguments[i7];
Intrinsics.checkNotNull(obj2, "null cannot be cast to non-null type kotlin.Int");
absentArguments[i7] = Integer.valueOf(((Integer) obj2).intValue() | (1 << (i % 32)));
}
z3 = true;
} else if (!kParameter.isVararg()) {
throw new IllegalArgumentException("No argument provided for a required parameter: " + kParameter);
}
if (kParameter.getKind() == KParameter.Kind.VALUE) {
i += parameterTypeSize;
}
}
if (!z3) {
try {
Caller<?> caller = getCaller();
Object[] copyOf = Arrays.copyOf(absentArguments, size);
Intrinsics.checkNotNullExpressionValue(copyOf, "copyOf(...)");
return (R) caller.call(copyOf);
} catch (IllegalAccessException e5) {
throw new IllegalCallableAccessException(e5);
}
}
Caller<?> defaultCaller = getDefaultCaller();
if (defaultCaller != null) {
try {
return (R) defaultCaller.call(absentArguments);
} catch (IllegalAccessException e6) {
throw new IllegalCallableAccessException(e6);
}
}
throw new KotlinReflectionInternalError("This callable does not support a default call: " + getDescriptor());
}
@Override // kotlin.reflect.KAnnotatedElement
public List<Annotation> getAnnotations() {
List<Annotation> invoke = this._annotations.invoke();
Intrinsics.checkNotNullExpressionValue(invoke, "invoke(...)");
return invoke;
}
public abstract Caller<?> getCaller();
public abstract KDeclarationContainerImpl getContainer();
public abstract Caller<?> getDefaultCaller();
public abstract CallableMemberDescriptor getDescriptor();
@Override // kotlin.reflect.KCallable
public List<KParameter> getParameters() {
ArrayList<KParameter> invoke = this._parameters.invoke();
Intrinsics.checkNotNullExpressionValue(invoke, "invoke(...)");
return invoke;
}
@Override // kotlin.reflect.KCallable
public KType getReturnType() {
KTypeImpl invoke = this._returnType.invoke();
Intrinsics.checkNotNullExpressionValue(invoke, "invoke(...)");
return invoke;
}
@Override // kotlin.reflect.KCallable
public List<KTypeParameter> getTypeParameters() {
List<KTypeParameterImpl> invoke = this._typeParameters.invoke();
Intrinsics.checkNotNullExpressionValue(invoke, "invoke(...)");
return invoke;
}
@Override // kotlin.reflect.KCallable
public KVisibility getVisibility() {
DescriptorVisibility visibility = getDescriptor().getVisibility();
Intrinsics.checkNotNullExpressionValue(visibility, "getVisibility(...)");
return UtilKt.toKVisibility(visibility);
}
@Override // kotlin.reflect.KCallable
public boolean isAbstract() {
return getDescriptor().getModality() == Modality.ABSTRACT;
}
public final boolean isAnnotationConstructor() {
return Intrinsics.areEqual(getName(), "<init>") && getContainer().getJClass().isAnnotation();
}
public abstract boolean isBound();
@Override // kotlin.reflect.KCallable
public boolean isFinal() {
return getDescriptor().getModality() == Modality.FINAL;
}
@Override // kotlin.reflect.KCallable
public boolean isOpen() {
return getDescriptor().getModality() == Modality.OPEN;
}
}
@@ -0,0 +1,43 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.FunctionReference;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class KClassImpl$getLocalProperty$2$1$1 extends FunctionReference implements Function2<MemberDeserializer, ProtoBuf.Property, PropertyDescriptor> {
public static final KClassImpl$getLocalProperty$2$1$1 INSTANCE = new KClassImpl$getLocalProperty$2$1$1();
public KClassImpl$getLocalProperty$2$1$1() {
super(2);
}
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
public final String getName() {
return "loadProperty";
}
@Override // kotlin.jvm.internal.CallableReference
public final KDeclarationContainer getOwner() {
return Reflection.getOrCreateKotlinClass(MemberDeserializer.class);
}
@Override // kotlin.jvm.internal.CallableReference
public final String getSignature() {
return "loadProperty(Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;)Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;";
}
@Override // kotlin.jvm.functions.Function2
public final PropertyDescriptor invoke(MemberDeserializer p02, ProtoBuf.Property p12) {
Intrinsics.checkNotNullParameter(p02, "p0");
Intrinsics.checkNotNullParameter(p12, "p1");
return p02.loadProperty(p12);
}
}
@@ -0,0 +1,989 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.Constants;
import java.lang.annotation.Annotation;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.SetsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.TypeIntrinsics;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KFunction;
import kotlin.reflect.KProperty;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.KVisibility;
import kotlin.reflect.jvm.internal.KClassImpl;
import kotlin.reflect.jvm.internal.KDeclarationContainerImpl;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.impl.builtins.CompanionObjectMapping;
import kotlin.reflect.jvm.internal.impl.builtins.CompanionObjectMappingUtilsKt;
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassKind;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
import kotlin.reflect.jvm.internal.impl.descriptors.FindClassInModuleKt;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.Modality;
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.impl.ClassDescriptorImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.impl.EmptyPackageFragmentDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeModuleData;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
import kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
import kotlin.reflect.jvm.internal.impl.name.ClassId;
import kotlin.reflect.jvm.internal.impl.name.FqName;
import kotlin.reflect.jvm.internal.impl.name.Name;
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.resolve.scopes.GivenFunctionsMemberScope;
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
import kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedClassDescriptor;
import kotlin.reflect.jvm.internal.impl.storage.StorageManager;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.utils.CollectionsKt;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlin.text.StringsKt__StringsKt;
import kotlin.text.Typography;
@Metadata(d1 = {"\u0000º\u0001\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000e\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\b\u0000\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u00022\u00020\u00032\b\u0012\u0004\u0012\u0002H\u00010\u00042\u00020\u00052\u00020\u0006:\u0001fB\u0013\u0012\f\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\b¢\u0006\u0002\u0010\tJ\u0018\u0010S\u001a\u00020!2\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010T\u001a\u00020UH\u0002J\u0018\u0010V\u001a\u00020!2\u0006\u0010\u000f\u001a\u00020\u00102\u0006\u0010T\u001a\u00020UH\u0002J\u0013\u0010W\u001a\u00020%2\b\u0010X\u001a\u0004\u0018\u00010\u0002H\u0096\u0002J\u0016\u0010Y\u001a\b\u0012\u0004\u0012\u00020Z0\u00142\u0006\u0010[\u001a\u00020\\H\u0016J\u0012\u0010]\u001a\u0004\u0018\u00010^2\u0006\u0010_\u001a\u00020`H\u0016J\u0016\u0010a\u001a\b\u0012\u0004\u0012\u00020^0\u00142\u0006\u0010[\u001a\u00020\\H\u0016J\b\u0010b\u001a\u00020`H\u0016J\u0012\u0010c\u001a\u00020%2\b\u0010d\u001a\u0004\u0018\u00010\u0002H\u0016J\b\u0010e\u001a\u00020@H\u0016R\u001a\u0010\n\u001a\b\u0012\u0004\u0012\u00020\f0\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u000f\u001a\u00020\u00108BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u001a\u0010\u0013\u001a\b\u0012\u0004\u0012\u00020\u00150\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017R \u0010\u0018\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00190\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u0017R!\u0010\u001b\u001a\u0012\u0012\u000e\u0012\f0\u001dR\b\u0012\u0004\u0012\u00028\u00000\u00000\u001c¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u0014\u0010 \u001a\u00020!8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\"\u0010#R\u0014\u0010$\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b$\u0010&R\u0014\u0010'\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b'\u0010&R\u0014\u0010(\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b(\u0010&R\u0014\u0010)\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b)\u0010&R\u0014\u0010*\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b*\u0010&R\u0014\u0010+\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b+\u0010&R\u0014\u0010,\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b,\u0010&R\u0014\u0010-\u001a\u00020%8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b-\u0010&R\u001a\u0010.\u001a\u00020%8VX\u0096\u0004¢\u0006\f\u0012\u0004\b/\u00100\u001a\u0004\b.\u0010&R\u001a\u0010\u0007\u001a\b\u0012\u0004\u0012\u00028\u00000\bX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b1\u00102R\u0014\u00103\u001a\u0002048@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b5\u00106R\u001e\u00107\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u0003080\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b9\u0010\u0017R\u001e\u0010:\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00040\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b;\u0010\u0017R\u0016\u0010<\u001a\u0004\u0018\u00018\u00008VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b=\u0010>R\u0016\u0010?\u001a\u0004\u0018\u00010@8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bA\u0010BR\"\u0010C\u001a\u0010\u0012\f\u0012\n\u0012\u0006\b\u0001\u0012\u00028\u00000\u00040\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bD\u0010\u000eR\u0016\u0010E\u001a\u0004\u0018\u00010@8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bF\u0010BR\u0014\u0010G\u001a\u0002048@X\u0080\u0004¢\u0006\u0006\u001a\u0004\bH\u00106R\u001a\u0010I\u001a\b\u0012\u0004\u0012\u00020J0\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bK\u0010\u000eR\u001a\u0010L\u001a\b\u0012\u0004\u0012\u00020M0\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bN\u0010\u000eR\u0016\u0010O\u001a\u0004\u0018\u00010P8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\bQ\u0010R¨\u0006g"}, d2 = {"Lkotlin/reflect/jvm/internal/KClassImpl;", "T", "", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "Lkotlin/reflect/KClass;", "Lkotlin/reflect/jvm/internal/KClassifierImpl;", "Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;", "jClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)V", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "classId", "Lkotlin/reflect/jvm/internal/impl/name/ClassId;", "getClassId", "()Lorg/jetbrains/kotlin/name/ClaLine truncated
/* loaded from: classes3.dex */
public final class KClassImpl<T> extends KDeclarationContainerImpl implements KClass<T>, KClassifierImpl, KTypeParameterOwnerImpl {
private final Lazy<KClassImpl<T>.Data> data;
private final Class<T> jClass;
@Metadata(d1 = {"\u0000^\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u000b\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0018\u0002\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\b\u0086\u0004\u0018\u00002\u00060\u0001R\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003J\u0014\u0010N\u001a\u00020<2\n\u0010O\u001a\u0006\u0012\u0002\b\u00030PH\u0002R%\u0010\u0004\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u0007\u0010\bR%\u0010\u000b\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\r\u0010\n\u001a\u0004\b\f\u0010\bR%\u0010\u000e\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\n\u001a\u0004\b\u000f\u0010\bR!\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00130\u00128FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0016\u0010\n\u001a\u0004\b\u0014\u0010\u0015R-\u0010\u0017\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00180\u00058FX\u0086\u0084\u0002¢\u0006\u0012\n\u0004\b\u001c\u0010\n\u0012\u0004\b\u0019\u0010\u001a\u001a\u0004\b\u001b\u0010\bR%\u0010\u001d\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u001f\u0010\n\u001a\u0004\b\u001e\u0010\bR%\u0010 \u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\"\u0010\n\u001a\u0004\b!\u0010\bR%\u0010#\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b%\u0010\n\u001a\u0004\b$\u0010\bR\u001b\u0010&\u001a\u00020'8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b*\u0010\n\u001a\u0004\b(\u0010)R%\u0010+\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b-\u0010\n\u001a\u0004\b,\u0010\bR%\u0010.\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00060\u00058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b0\u0010\n\u001a\u0004\b/\u0010\bR%\u00101\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u0003020\u00058FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b4\u0010\n\u001a\u0004\b3\u0010\bR#\u00105\u001a\u0004\u0018\u00018\u00008FX\u0086\u0084\u0002¢\u0006\u0012\n\u0004\b9\u0010:\u0012\u0004\b6\u0010\u001a\u001a\u0004\b7\u00108R\u001d\u0010;\u001a\u0004\u0018\u00010<8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b?\u0010\n\u001a\u0004\b=\u0010>R)\u0010@\u001a\u0010\u0012\f\u0012\n\u0012\u0006\b\u0001\u0012\u00028\u0000020\u00128FX\u0086\u0084\u0002¢\u0006\f\n\u0004\bB\u0010\n\u001a\u0004\bA\u0010\u0015R\u001d\u0010C\u001a\u0004\u0018\u00010<8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\bE\u0010\n\u001a\u0004\bD\u0010>R!\u0010F\u001a\b\u0012\u0004\u0012\u00020G0\u00128FX\u0086\u0084\u0002¢\u0006\f\n\u0004\bI\u0010\n\u001a\u0004\bH\u0010\u0015R!\u0010J\u001a\b\u0012\u0004\u0012\u00020K0\u00128FX\u0086\u0084\u0002¢\u0006\f\n\u0004\bM\u0010\n\u001a\u0004\bL\u0010\u0015¨\u0006Q"}, d2 = {"Lkotlin/reflect/jvm/internal/KClassImpl$Data;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Data;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "(Lkotlin/reflect/jvm/internal/KClassImpl;)V", "allMembers", "", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "getAllMembers", "()Ljava/util/Collection;", "allMembers$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "allNonStaticMembers", "getAllNonStaticMembers", "allNonStaticMembers$delegate", "allStaticMembers", "getAllStaticMembers", "allStaticMembers$delegate", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "annotations$delegate", "constructors", "Lkotlin/reflect/KFunction;", "getConstructors$annotations", "()V", "getConstructors", "constructors$delegate", "declaredMembers", "getDeclaredMembers", "declaredMembers$delegate", "declaredNonStaticMembers", "getDeclaredNonStaticMembers", "declaredNonStaticMembers$delegate", "declaredStaticMembers", "getDeclaredStaticMembers", "declaredStaticMembers$delegate", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;", "descriptor$delegate", "inheritedNonStaticMembers", "getInheritedNonStaticMembers", "inheritedNonStaticMembers$delegate", "inheritedStaticMembers", "getInheritedStaticMembers", "inheritedStaticMembers$delegate", "nestedClasses", "Lkotlin/reflect/KClass;", "getNestedClasses", "nestedClasses$delegate", "objectInstance", "getObjectInstance$annotations", "getObjectInstance", "()Ljava/lang/Object;", "objectInstance$delegate", "Lkotlin/Lazy;", "qualifiedName", "", "getQualifiedName", "()Ljava/lang/String;", "qualifiedName$delegate", "sealedSubclasses", "getSealedSubclasses", "sealedSubclasses$delegate", "siLine truncated
/* loaded from: classes3.dex */
public final class Data extends KDeclarationContainerImpl.Data {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/ClassDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "annotations", "getAnnotations()Ljava/util/List;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "simpleName", "getSimpleName()Ljava/lang/String;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "qualifiedName", "getQualifiedName()Ljava/lang/String;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "constructors", "getConstructors()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "nestedClasses", "getNestedClasses()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "typeParameters", "getTypeParameters()Ljava/util/List;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "supertypes", "getSupertypes()Ljava/util/List;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "sealedSubclasses", "getSealedSubclasses()Ljava/util/List;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "declaredNonStaticMembers", "getDeclaredNonStaticMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "declaredStaticMembers", "getDeclaredStaticMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "inheritedNonStaticMembers", "getInheritedNonStaticMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "inheritedStaticMembers", "getInheritedStaticMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "allNonStaticMembers", "getAllNonStaticMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "allStaticMembers", "getAllStaticMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "declaredMembers", "getDeclaredMembers()Ljava/util/Collection;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "allMembers", "getAllMembers()Ljava/util/Collection;"))};
/* renamed from: allMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal allMembers;
/* renamed from: allNonStaticMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal allNonStaticMembers;
/* renamed from: allStaticMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal allStaticMembers;
/* renamed from: annotations$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal annotations;
/* renamed from: constructors$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal constructors;
/* renamed from: declaredMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal declaredMembers;
/* renamed from: declaredNonStaticMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal declaredNonStaticMembers;
/* renamed from: declaredStaticMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal declaredStaticMembers;
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal descriptor;
/* renamed from: inheritedNonStaticMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal inheritedNonStaticMembers;
/* renamed from: inheritedStaticMembers$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal inheritedStaticMembers;
/* renamed from: nestedClasses$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal nestedClasses;
/* renamed from: objectInstance$delegate, reason: from kotlin metadata */
private final Lazy objectInstance;
/* renamed from: qualifiedName$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal qualifiedName;
/* renamed from: sealedSubclasses$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal sealedSubclasses;
/* renamed from: simpleName$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal simpleName;
/* renamed from: supertypes$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal supertypes;
/* renamed from: typeParameters$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal typeParameters;
public Data() {
super();
this.descriptor = ReflectProperties.lazySoft(new Function0<ClassDescriptor>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$descriptor$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final ClassDescriptor invoke() {
ClassId classId;
ClassDescriptor findClassAcrossModuleDependencies;
ClassDescriptor createSyntheticClassOrFail;
classId = r1.getClassId();
RuntimeModuleData moduleData = ((KClassImpl.Data) r1.getData().getValue()).getModuleData();
ModuleDescriptor module = moduleData.getModule();
if (classId.isLocal() && r1.getJClass().isAnnotationPresent(Metadata.class)) {
findClassAcrossModuleDependencies = moduleData.getDeserialization().deserializeClass(classId);
} else {
findClassAcrossModuleDependencies = FindClassInModuleKt.findClassAcrossModuleDependencies(module, classId);
}
if (findClassAcrossModuleDependencies != null) {
return findClassAcrossModuleDependencies;
}
createSyntheticClassOrFail = r1.createSyntheticClassOrFail(classId, moduleData);
return createSyntheticClassOrFail;
}
});
this.annotations = ReflectProperties.lazySoft(new Function0<List<? extends Annotation>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$annotations$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends Annotation> invoke() {
return UtilKt.computeAnnotations(this.this$0.getDescriptor());
}
});
this.simpleName = ReflectProperties.lazySoft(new Function0<String>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$simpleName$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final String invoke() {
ClassId classId;
String calculateLocalClassName;
if (r1.getJClass().isAnonymousClass()) {
return null;
}
classId = r1.getClassId();
if (classId.isLocal()) {
calculateLocalClassName = this.calculateLocalClassName(r1.getJClass());
return calculateLocalClassName;
}
String asString = classId.getShortClassName().asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
return asString;
}
});
this.qualifiedName = ReflectProperties.lazySoft(new Function0<String>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$qualifiedName$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final String invoke() {
ClassId classId;
if (r1.getJClass().isAnonymousClass()) {
return null;
}
classId = r1.getClassId();
if (classId.isLocal()) {
return null;
}
return classId.asSingleFqName().asString();
}
});
this.constructors = ReflectProperties.lazySoft(new Function0<List<? extends KFunction<? extends T>>>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$constructors$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final List<KFunction<T>> invoke() {
int collectionSizeOrDefault;
Collection<ConstructorDescriptor> constructorDescriptors = r1.getConstructorDescriptors();
KClassImpl<T> kClassImpl = r1;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(constructorDescriptors, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator<T> it = constructorDescriptors.iterator();
while (it.hasNext()) {
arrayList.add(new KFunctionImpl(kClassImpl, (ConstructorDescriptor) it.next()));
}
return arrayList;
}
});
this.nestedClasses = ReflectProperties.lazySoft(new Function0<List<? extends KClassImpl<? extends Object>>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$nestedClasses$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KClassImpl<? extends Object>> invoke() {
MemberScope unsubstitutedInnerClassesScope = this.this$0.getDescriptor().getUnsubstitutedInnerClassesScope();
Intrinsics.checkNotNullExpressionValue(unsubstitutedInnerClassesScope, "getUnsubstitutedInnerClassesScope(...)");
Collection contributedDescriptors$default = ResolutionScope.DefaultImpls.getContributedDescriptors$default(unsubstitutedInnerClassesScope, null, null, 3, null);
ArrayList<DeclarationDescriptor> arrayList = new ArrayList();
for (Object obj : contributedDescriptors$default) {
if (!DescriptorUtils.isEnumEntry((DeclarationDescriptor) obj)) {
arrayList.add(obj);
}
}
ArrayList arrayList2 = new ArrayList();
for (DeclarationDescriptor declarationDescriptor : arrayList) {
ClassDescriptor classDescriptor = declarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) declarationDescriptor : null;
Class<?> javaClass = classDescriptor != null ? UtilKt.toJavaClass(classDescriptor) : null;
KClassImpl kClassImpl = javaClass != null ? new KClassImpl(javaClass) : null;
if (kClassImpl != null) {
arrayList2.add(kClassImpl);
}
}
return arrayList2;
}
});
this.objectInstance = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<T>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$objectInstance$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final T invoke() {
ClassDescriptor descriptor = this.this$0.getDescriptor();
if (descriptor.getKind() != ClassKind.OBJECT) {
return null;
}
T t2 = (T) ((!descriptor.isCompanionObject() || CompanionObjectMappingUtilsKt.isMappedIntrinsicCompanionObject(CompanionObjectMapping.INSTANCE, descriptor)) ? r2.getJClass().getDeclaredField("INSTANCE") : r2.getJClass().getEnclosingClass().getDeclaredField(descriptor.getName().asString())).get(null);
Intrinsics.checkNotNull(t2, "null cannot be cast to non-null type T of kotlin.reflect.jvm.internal.KClassImpl");
return t2;
}
});
this.typeParameters = ReflectProperties.lazySoft(new Function0<List<? extends KTypeParameterImpl>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$typeParameters$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KTypeParameterImpl> invoke() {
int collectionSizeOrDefault;
List<TypeParameterDescriptor> declaredTypeParameters = this.this$0.getDescriptor().getDeclaredTypeParameters();
Intrinsics.checkNotNullExpressionValue(declaredTypeParameters, "getDeclaredTypeParameters(...)");
List<TypeParameterDescriptor> list = declaredTypeParameters;
KTypeParameterOwnerImpl kTypeParameterOwnerImpl = r2;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
for (TypeParameterDescriptor typeParameterDescriptor : list) {
Intrinsics.checkNotNull(typeParameterDescriptor);
arrayList.add(new KTypeParameterImpl(kTypeParameterOwnerImpl, typeParameterDescriptor));
}
return arrayList;
}
});
this.supertypes = ReflectProperties.lazySoft(new Function0<List<? extends KTypeImpl>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$supertypes$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KTypeImpl> invoke() {
Collection<KotlinType> mo1395getSupertypes = this.this$0.getDescriptor().getTypeConstructor().mo1395getSupertypes();
Intrinsics.checkNotNullExpressionValue(mo1395getSupertypes, "getSupertypes(...)");
ArrayList arrayList = new ArrayList(mo1395getSupertypes.size());
final KClassImpl<T>.Data data = this.this$0;
final KClassImpl<T> kClassImpl = r2;
for (final KotlinType kotlinType : mo1395getSupertypes) {
Intrinsics.checkNotNull(kotlinType);
arrayList.add(new KTypeImpl(kotlinType, new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$supertypes$2$1$1
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
int indexOf;
ClassifierDescriptor mo1394getDeclarationDescriptor = KotlinType.this.getConstructor().mo1394getDeclarationDescriptor();
if (mo1394getDeclarationDescriptor instanceof ClassDescriptor) {
Class<?> javaClass = UtilKt.toJavaClass((ClassDescriptor) mo1394getDeclarationDescriptor);
if (javaClass != null) {
if (Intrinsics.areEqual(kClassImpl.getJClass().getSuperclass(), javaClass)) {
Type genericSuperclass = kClassImpl.getJClass().getGenericSuperclass();
Intrinsics.checkNotNull(genericSuperclass);
return genericSuperclass;
}
Class<?>[] interfaces = kClassImpl.getJClass().getInterfaces();
Intrinsics.checkNotNullExpressionValue(interfaces, "getInterfaces(...)");
indexOf = ArraysKt___ArraysKt.indexOf((Class<?>[]) ((Class[]) interfaces), javaClass);
if (indexOf >= 0) {
Type type = kClassImpl.getJClass().getGenericInterfaces()[indexOf];
Intrinsics.checkNotNull(type);
return type;
}
throw new KotlinReflectionInternalError("No superclass of " + data + " in Java reflection for " + mo1394getDeclarationDescriptor);
}
throw new KotlinReflectionInternalError("Unsupported superclass of " + data + ": " + mo1394getDeclarationDescriptor);
}
throw new KotlinReflectionInternalError("Supertype not a class: " + mo1394getDeclarationDescriptor);
}
}));
}
if (!KotlinBuiltIns.isSpecialClassWithNoSupertypes(this.this$0.getDescriptor())) {
if (!arrayList.isEmpty()) {
Iterator it = arrayList.iterator();
while (it.hasNext()) {
ClassKind kind = DescriptorUtils.getClassDescriptorForType(((KTypeImpl) it.next()).getType()).getKind();
Intrinsics.checkNotNullExpressionValue(kind, "getKind(...)");
if (kind != ClassKind.INTERFACE && kind != ClassKind.ANNOTATION_CLASS) {
break;
}
}
}
SimpleType anyType = DescriptorUtilsKt.getBuiltIns(this.this$0.getDescriptor()).getAnyType();
Intrinsics.checkNotNullExpressionValue(anyType, "getAnyType(...)");
arrayList.add(new KTypeImpl(anyType, new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$supertypes$2.3
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
return Object.class;
}
}));
}
return CollectionsKt.compact(arrayList);
}
});
this.sealedSubclasses = ReflectProperties.lazySoft(new Function0<List<? extends KClassImpl<? extends T>>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$sealedSubclasses$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<KClassImpl<? extends T>> invoke() {
Collection<ClassDescriptor> sealedSubclasses = this.this$0.getDescriptor().getSealedSubclasses();
Intrinsics.checkNotNullExpressionValue(sealedSubclasses, "getSealedSubclasses(...)");
ArrayList arrayList = new ArrayList();
for (ClassDescriptor classDescriptor : sealedSubclasses) {
Intrinsics.checkNotNull(classDescriptor, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
Class<?> javaClass = UtilKt.toJavaClass(classDescriptor);
KClassImpl kClassImpl = javaClass != null ? new KClassImpl(javaClass) : null;
if (kClassImpl != null) {
arrayList.add(kClassImpl);
}
}
return arrayList;
}
});
this.declaredNonStaticMembers = ReflectProperties.lazySoft(new Function0<Collection<? extends KCallableImpl<?>>>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$declaredNonStaticMembers$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Collection<? extends KCallableImpl<?>> invoke() {
KClassImpl<T> kClassImpl = r1;
return kClassImpl.getMembers(kClassImpl.getMemberScope$kotlin_reflection(), KDeclarationContainerImpl.MemberBelonginess.DECLARED);
}
});
this.declaredStaticMembers = ReflectProperties.lazySoft(new Function0<Collection<? extends KCallableImpl<?>>>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$declaredStaticMembers$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Collection<? extends KCallableImpl<?>> invoke() {
KClassImpl<T> kClassImpl = r1;
return kClassImpl.getMembers(kClassImpl.getStaticScope$kotlin_reflection(), KDeclarationContainerImpl.MemberBelonginess.DECLARED);
}
});
this.inheritedNonStaticMembers = ReflectProperties.lazySoft(new Function0<Collection<? extends KCallableImpl<?>>>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$inheritedNonStaticMembers$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Collection<? extends KCallableImpl<?>> invoke() {
KClassImpl<T> kClassImpl = r1;
return kClassImpl.getMembers(kClassImpl.getMemberScope$kotlin_reflection(), KDeclarationContainerImpl.MemberBelonginess.INHERITED);
}
});
this.inheritedStaticMembers = ReflectProperties.lazySoft(new Function0<Collection<? extends KCallableImpl<?>>>() { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$inheritedStaticMembers$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Collection<? extends KCallableImpl<?>> invoke() {
KClassImpl<T> kClassImpl = r1;
return kClassImpl.getMembers(kClassImpl.getStaticScope$kotlin_reflection(), KDeclarationContainerImpl.MemberBelonginess.INHERITED);
}
});
this.allNonStaticMembers = ReflectProperties.lazySoft(new Function0<List<? extends KCallableImpl<?>>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$allNonStaticMembers$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KCallableImpl<?>> invoke() {
Collection inheritedNonStaticMembers;
Collection<KCallableImpl<?>> declaredNonStaticMembers = this.this$0.getDeclaredNonStaticMembers();
inheritedNonStaticMembers = this.this$0.getInheritedNonStaticMembers();
return kotlin.collections.CollectionsKt.plus((Collection) declaredNonStaticMembers, (Iterable) inheritedNonStaticMembers);
}
});
this.allStaticMembers = ReflectProperties.lazySoft(new Function0<List<? extends KCallableImpl<?>>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$allStaticMembers$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KCallableImpl<?>> invoke() {
Collection declaredStaticMembers;
Collection inheritedStaticMembers;
declaredStaticMembers = this.this$0.getDeclaredStaticMembers();
inheritedStaticMembers = this.this$0.getInheritedStaticMembers();
return kotlin.collections.CollectionsKt.plus(declaredStaticMembers, (Iterable) inheritedStaticMembers);
}
});
this.declaredMembers = ReflectProperties.lazySoft(new Function0<List<? extends KCallableImpl<?>>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$declaredMembers$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KCallableImpl<?>> invoke() {
Collection declaredStaticMembers;
Collection<KCallableImpl<?>> declaredNonStaticMembers = this.this$0.getDeclaredNonStaticMembers();
declaredStaticMembers = this.this$0.getDeclaredStaticMembers();
return kotlin.collections.CollectionsKt.plus((Collection) declaredNonStaticMembers, (Iterable) declaredStaticMembers);
}
});
this.allMembers = ReflectProperties.lazySoft(new Function0<List<? extends KCallableImpl<?>>>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$Data$allMembers$2
final /* synthetic */ KClassImpl<T>.Data this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KCallableImpl<?>> invoke() {
return kotlin.collections.CollectionsKt.plus((Collection) this.this$0.getAllNonStaticMembers(), (Iterable) this.this$0.getAllStaticMembers());
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public final String calculateLocalClassName(Class<?> jClass) {
String substringAfter$default;
String substringAfter$default2;
String substringAfter$default3;
String simpleName = jClass.getSimpleName();
Method enclosingMethod = jClass.getEnclosingMethod();
if (enclosingMethod != null) {
Intrinsics.checkNotNull(simpleName);
substringAfter$default3 = StringsKt__StringsKt.substringAfter$default(simpleName, enclosingMethod.getName() + Typography.dollar, (String) null, 2, (Object) null);
return substringAfter$default3;
}
Constructor<?> enclosingConstructor = jClass.getEnclosingConstructor();
if (enclosingConstructor == null) {
Intrinsics.checkNotNull(simpleName);
substringAfter$default = StringsKt__StringsKt.substringAfter$default(simpleName, Typography.dollar, (String) null, 2, (Object) null);
return substringAfter$default;
}
Intrinsics.checkNotNull(simpleName);
substringAfter$default2 = StringsKt__StringsKt.substringAfter$default(simpleName, enclosingConstructor.getName() + Typography.dollar, (String) null, 2, (Object) null);
return substringAfter$default2;
}
/* JADX INFO: Access modifiers changed from: private */
public final Collection<KCallableImpl<?>> getDeclaredStaticMembers() {
T value = this.declaredStaticMembers.getValue(this, $$delegatedProperties[10]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
/* JADX INFO: Access modifiers changed from: private */
public final Collection<KCallableImpl<?>> getInheritedNonStaticMembers() {
T value = this.inheritedNonStaticMembers.getValue(this, $$delegatedProperties[11]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
/* JADX INFO: Access modifiers changed from: private */
public final Collection<KCallableImpl<?>> getInheritedStaticMembers() {
T value = this.inheritedStaticMembers.getValue(this, $$delegatedProperties[12]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final Collection<KCallableImpl<?>> getAllMembers() {
T value = this.allMembers.getValue(this, $$delegatedProperties[16]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final Collection<KCallableImpl<?>> getAllNonStaticMembers() {
T value = this.allNonStaticMembers.getValue(this, $$delegatedProperties[13]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final Collection<KCallableImpl<?>> getAllStaticMembers() {
T value = this.allStaticMembers.getValue(this, $$delegatedProperties[14]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final List<Annotation> getAnnotations() {
T value = this.annotations.getValue(this, $$delegatedProperties[1]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
public final Collection<KFunction<T>> getConstructors() {
T value = this.constructors.getValue(this, $$delegatedProperties[4]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final Collection<KCallableImpl<?>> getDeclaredMembers() {
T value = this.declaredMembers.getValue(this, $$delegatedProperties[15]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final Collection<KCallableImpl<?>> getDeclaredNonStaticMembers() {
T value = this.declaredNonStaticMembers.getValue(this, $$delegatedProperties[9]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final ClassDescriptor getDescriptor() {
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (ClassDescriptor) value;
}
public final Collection<KClass<?>> getNestedClasses() {
T value = this.nestedClasses.getValue(this, $$delegatedProperties[5]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final T getObjectInstance() {
return (T) this.objectInstance.getValue();
}
public final String getQualifiedName() {
return (String) this.qualifiedName.getValue(this, $$delegatedProperties[3]);
}
public final List<KClass<? extends T>> getSealedSubclasses() {
T value = this.sealedSubclasses.getValue(this, $$delegatedProperties[8]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
public final String getSimpleName() {
return (String) this.simpleName.getValue(this, $$delegatedProperties[2]);
}
public final List<KType> getSupertypes() {
T value = this.supertypes.getValue(this, $$delegatedProperties[7]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
public final List<KTypeParameter> getTypeParameters() {
T value = this.typeParameters.getValue(this, $$delegatedProperties[6]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
}
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KotlinClassHeader.Kind.values().length];
try {
iArr[KotlinClassHeader.Kind.FILE_FACADE.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KotlinClassHeader.Kind.MULTIFILE_CLASS.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KotlinClassHeader.Kind.MULTIFILE_CLASS_PART.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[KotlinClassHeader.Kind.SYNTHETIC_CLASS.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[KotlinClassHeader.Kind.UNKNOWN.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[KotlinClassHeader.Kind.CLASS.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public KClassImpl(Class<T> jClass) {
Intrinsics.checkNotNullParameter(jClass, "jClass");
this.jClass = jClass;
this.data = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<KClassImpl<T>.Data>(this) { // from class: kotlin.reflect.jvm.internal.KClassImpl$data$1
final /* synthetic */ KClassImpl<T> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KClassImpl<T>.Data invoke() {
return new KClassImpl.Data();
}
});
}
private final ClassDescriptor createSyntheticClass(ClassId classId, RuntimeModuleData moduleData) {
ModuleDescriptor module = moduleData.getModule();
FqName packageFqName = classId.getPackageFqName();
Intrinsics.checkNotNullExpressionValue(packageFqName, "getPackageFqName(...)");
final ClassDescriptorImpl classDescriptorImpl = new ClassDescriptorImpl(new EmptyPackageFragmentDescriptor(module, packageFqName), classId.getShortClassName(), Modality.FINAL, ClassKind.CLASS, kotlin.collections.CollectionsKt.listOf(moduleData.getModule().getBuiltIns().getAny().getDefaultType()), SourceElement.NO_SOURCE, false, moduleData.getDeserialization().getStorageManager());
final StorageManager storageManager = moduleData.getDeserialization().getStorageManager();
classDescriptorImpl.initialize(new GivenFunctionsMemberScope(classDescriptorImpl, storageManager) { // from class: kotlin.reflect.jvm.internal.KClassImpl$createSyntheticClass$1$1
@Override // kotlin.reflect.jvm.internal.impl.resolve.scopes.GivenFunctionsMemberScope
public List<FunctionDescriptor> computeDeclaredFunctions() {
return kotlin.collections.CollectionsKt.emptyList();
}
}, SetsKt.emptySet(), null);
return classDescriptorImpl;
}
/* JADX INFO: Access modifiers changed from: private */
public final ClassDescriptor createSyntheticClassOrFail(ClassId classId, RuntimeModuleData moduleData) {
KotlinClassHeader classHeader;
if (getJClass().isSynthetic()) {
return createSyntheticClass(classId, moduleData);
}
ReflectKotlinClass create = ReflectKotlinClass.Factory.create(getJClass());
KotlinClassHeader.Kind kind = (create == null || (classHeader = create.getClassHeader()) == null) ? null : classHeader.getKind();
switch (kind == null ? -1 : WhenMappings.$EnumSwitchMapping$0[kind.ordinal()]) {
case -1:
case 6:
throw new KotlinReflectionInternalError("Unresolved class: " + getJClass() + " (kind = " + kind + ')');
case 0:
default:
throw new NoWhenBranchMatchedException();
case 1:
case 2:
case 3:
case 4:
return createSyntheticClass(classId, moduleData);
case 5:
throw new KotlinReflectionInternalError("Unknown class: " + getJClass() + " (kind = " + kind + ')');
}
}
/* JADX INFO: Access modifiers changed from: private */
public final ClassId getClassId() {
return RuntimeTypeMapper.INSTANCE.mapJvmClassToKotlinClassId(getJClass());
}
@Override // kotlin.reflect.KClass
public boolean equals(Object other) {
return (other instanceof KClassImpl) && Intrinsics.areEqual(JvmClassMappingKt.getJavaObjectType(this), JvmClassMappingKt.getJavaObjectType((KClass) other));
}
@Override // kotlin.reflect.KAnnotatedElement
public List<Annotation> getAnnotations() {
return this.data.getValue().getAnnotations();
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<ConstructorDescriptor> getConstructorDescriptors() {
ClassDescriptor descriptor = getDescriptor();
if (descriptor.getKind() == ClassKind.INTERFACE || descriptor.getKind() == ClassKind.OBJECT) {
return kotlin.collections.CollectionsKt.emptyList();
}
Collection<ClassConstructorDescriptor> constructors = descriptor.getConstructors();
Intrinsics.checkNotNullExpressionValue(constructors, "getConstructors(...)");
return constructors;
}
@Override // kotlin.reflect.KClass
public Collection<KFunction<T>> getConstructors() {
return this.data.getValue().getConstructors();
}
public final Lazy<KClassImpl<T>.Data> getData() {
return this.data;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<FunctionDescriptor> getFunctions(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
MemberScope memberScope$kotlin_reflection = getMemberScope$kotlin_reflection();
NoLookupLocation noLookupLocation = NoLookupLocation.FROM_REFLECTION;
return kotlin.collections.CollectionsKt.plus((Collection) memberScope$kotlin_reflection.getContributedFunctions(name, noLookupLocation), (Iterable) getStaticScope$kotlin_reflection().getContributedFunctions(name, noLookupLocation));
}
@Override // kotlin.jvm.internal.ClassBasedDeclarationContainer
public Class<T> getJClass() {
return this.jClass;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public PropertyDescriptor getLocalProperty(int index) {
Class<?> declaringClass;
if (Intrinsics.areEqual(getJClass().getSimpleName(), "DefaultImpls") && (declaringClass = getJClass().getDeclaringClass()) != null && declaringClass.isInterface()) {
KClass kotlinClass = JvmClassMappingKt.getKotlinClass(declaringClass);
Intrinsics.checkNotNull(kotlinClass, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<*>");
return ((KClassImpl) kotlinClass).getLocalProperty(index);
}
ClassDescriptor descriptor = getDescriptor();
DeserializedClassDescriptor deserializedClassDescriptor = descriptor instanceof DeserializedClassDescriptor ? (DeserializedClassDescriptor) descriptor : null;
if (deserializedClassDescriptor != null) {
ProtoBuf.Class classProto = deserializedClassDescriptor.getClassProto();
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Class, List<ProtoBuf.Property>> classLocalVariable = JvmProtoBuf.classLocalVariable;
Intrinsics.checkNotNullExpressionValue(classLocalVariable, "classLocalVariable");
ProtoBuf.Property property = (ProtoBuf.Property) ProtoBufUtilKt.getExtensionOrNull(classProto, classLocalVariable, index);
if (property != null) {
return (PropertyDescriptor) UtilKt.deserializeToDescriptor(getJClass(), property, deserializedClassDescriptor.getC().getNameResolver(), deserializedClassDescriptor.getC().getTypeTable(), deserializedClassDescriptor.getMetadataVersion(), KClassImpl$getLocalProperty$2$1$1.INSTANCE);
}
}
return null;
}
public final MemberScope getMemberScope$kotlin_reflection() {
return getDescriptor().getDefaultType().getMemberScope();
}
@Override // kotlin.reflect.KDeclarationContainer
public Collection<KCallable<?>> getMembers() {
return this.data.getValue().getAllMembers();
}
@Override // kotlin.reflect.KClass
public Collection<KClass<?>> getNestedClasses() {
return this.data.getValue().getNestedClasses();
}
@Override // kotlin.reflect.KClass
public T getObjectInstance() {
return this.data.getValue().getObjectInstance();
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<PropertyDescriptor> getProperties(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
MemberScope memberScope$kotlin_reflection = getMemberScope$kotlin_reflection();
NoLookupLocation noLookupLocation = NoLookupLocation.FROM_REFLECTION;
return kotlin.collections.CollectionsKt.plus((Collection) memberScope$kotlin_reflection.getContributedVariables(name, noLookupLocation), (Iterable) getStaticScope$kotlin_reflection().getContributedVariables(name, noLookupLocation));
}
@Override // kotlin.reflect.KClass
public String getQualifiedName() {
return this.data.getValue().getQualifiedName();
}
@Override // kotlin.reflect.KClass
public List<KClass<? extends T>> getSealedSubclasses() {
return this.data.getValue().getSealedSubclasses();
}
@Override // kotlin.reflect.KClass
public String getSimpleName() {
return this.data.getValue().getSimpleName();
}
public final MemberScope getStaticScope$kotlin_reflection() {
MemberScope staticScope = getDescriptor().getStaticScope();
Intrinsics.checkNotNullExpressionValue(staticScope, "getStaticScope(...)");
return staticScope;
}
@Override // kotlin.reflect.KClass
public List<KType> getSupertypes() {
return this.data.getValue().getSupertypes();
}
@Override // kotlin.reflect.KClass
public List<KTypeParameter> getTypeParameters() {
return this.data.getValue().getTypeParameters();
}
@Override // kotlin.reflect.KClass
public KVisibility getVisibility() {
DescriptorVisibility visibility = getDescriptor().getVisibility();
Intrinsics.checkNotNullExpressionValue(visibility, "getVisibility(...)");
return UtilKt.toKVisibility(visibility);
}
@Override // kotlin.reflect.KClass
public int hashCode() {
return JvmClassMappingKt.getJavaObjectType(this).hashCode();
}
@Override // kotlin.reflect.KClass
public boolean isAbstract() {
return getDescriptor().getModality() == Modality.ABSTRACT;
}
@Override // kotlin.reflect.KClass
public boolean isCompanion() {
return getDescriptor().isCompanionObject();
}
@Override // kotlin.reflect.KClass
public boolean isData() {
return getDescriptor().isData();
}
@Override // kotlin.reflect.KClass
public boolean isFinal() {
return getDescriptor().getModality() == Modality.FINAL;
}
@Override // kotlin.reflect.KClass
public boolean isFun() {
return getDescriptor().isFun();
}
@Override // kotlin.reflect.KClass
public boolean isInner() {
return getDescriptor().isInner();
}
@Override // kotlin.reflect.KClass
public boolean isInstance(Object value) {
Integer functionClassArity = ReflectClassUtilKt.getFunctionClassArity(getJClass());
if (functionClassArity != null) {
return TypeIntrinsics.isFunctionOfArity(value, functionClassArity.intValue());
}
Class wrapperByPrimitive = ReflectClassUtilKt.getWrapperByPrimitive(getJClass());
if (wrapperByPrimitive == null) {
wrapperByPrimitive = getJClass();
}
return wrapperByPrimitive.isInstance(value);
}
@Override // kotlin.reflect.KClass
public boolean isOpen() {
return getDescriptor().getModality() == Modality.OPEN;
}
@Override // kotlin.reflect.KClass
public boolean isSealed() {
return getDescriptor().getModality() == Modality.SEALED;
}
@Override // kotlin.reflect.KClass
public boolean isValue() {
return getDescriptor().isValue();
}
public String toString() {
String str;
String replace$default;
StringBuilder sb = new StringBuilder("class ");
ClassId classId = getClassId();
FqName packageFqName = classId.getPackageFqName();
Intrinsics.checkNotNullExpressionValue(packageFqName, "getPackageFqName(...)");
if (packageFqName.isRoot()) {
str = "";
} else {
str = packageFqName.asString() + '.';
}
String asString = classId.getRelativeClassName().asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
replace$default = StringsKt__StringsJVMKt.replace$default(asString, '.', Typography.dollar, false, 4, (Object) null);
sb.append(str + replace$default);
return sb.toString();
}
@Override // kotlin.reflect.jvm.internal.KClassifierImpl
public ClassDescriptor getDescriptor() {
return this.data.getValue().getDescriptor();
}
}
@@ -0,0 +1,10 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b`\u0018\u00002\u00020\u0001R\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/KClassifierImpl;", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassifierDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/ClassifierDescriptor;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KClassifierImpl {
ClassifierDescriptor getDescriptor();
}
@@ -0,0 +1,545 @@
package kotlin.reflect.jvm.internal;
import C.w;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.lang.reflect.Constructor;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Comparator;
import java.util.Iterator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.SortedMap;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.collections.MapsKt__MapsJVMKt;
import kotlin.enums.EnumEntries;
import kotlin.enums.EnumEntriesKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.ClassBasedDeclarationContainer;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KProperty;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectJavaClassFinderKt;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeModuleData;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.name.Name;
import kotlin.reflect.jvm.internal.impl.renderer.DescriptorRenderer;
import kotlin.text.MatchResult;
import kotlin.text.Regex;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlin.text.StringsKt__StringsKt;
@Metadata(d1 = {"\u0000\u0088\u0001\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010!\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0006\n\u0002\u0010\u0011\n\u0002\b\n\b \u0018\u0000 <2\u00020\u0001:\u0003<=>B\u0005¢\u0006\u0002\u0010\u0002J*\u0010\f\u001a\u00020\r2\u0010\u0010\u000e\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t0\u000f2\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0012\u001a\u00020\u0013H\u0002J\u0014\u0010\u0014\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00152\u0006\u0010\u0010\u001a\u00020\u0011J\u0014\u0010\u0016\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00152\u0006\u0010\u0010\u001a\u00020\u0011J \u0010\u0017\u001a\u0004\u0018\u00010\u00182\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u001a\u001a\u00020\u0013J\u0016\u0010\u001b\u001a\u00020\u001c2\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u001d\u001a\u00020\u0011J\u0018\u0010\u001e\u001a\u0004\u0018\u00010\u00182\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u0010\u001a\u00020\u0011J\u0016\u0010\u001f\u001a\u00020 2\u0006\u0010\u0019\u001a\u00020\u00112\u0006\u0010\u001d\u001a\u00020\u0011J\u0016\u0010!\u001a\b\u0012\u0004\u0012\u00020\u001c0\u00042\u0006\u0010\u0019\u001a\u00020\"H&J\u0012\u0010#\u001a\u0004\u0018\u00010 2\u0006\u0010$\u001a\u00020%H&J\"\u0010&\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030'0\u00042\u0006\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020+H\u0004J\u0016\u0010,\u001a\b\u0012\u0004\u0012\u00020 0\u00042\u0006\u0010\u0019\u001a\u00020\"H&J\u001a\u0010-\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t0.2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002J\u0014\u0010/\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0010\u001a\u00020\u0011H\u0002J$\u00100\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0010\u001a\u00020\u00112\u0006\u00101\u001a\u00020%2\u0006\u00102\u001a\u00020%H\u0002JE\u00103\u001a\u0004\u0018\u00010\u0018*\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0019\u001a\u00020\u00112\u0010\u00104\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t052\n\u00106\u001a\u0006\u0012\u0002\b\u00030\t2\u0006\u00107\u001a\u00020\u0013H\u0002¢\u0006\u0002\u00108J(\u00109\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0015*\u0006\u0012\u0002\b\u00030\t2\u0010\u00104\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t0.H\u0002J=\u0010:\u001a\u0004\u0018\u00010\u0018*\u0006\u0012\u0002\b\u00030\t2\u0006\u0010\u0019\u001a\u00020\u00112\u0010\u00104\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\t052\n\u00106\u001a\u0006\u0012\u0002\b\u00030\tH\u0002¢\u0006\u0002\u0010;R\u0018\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R\u0018\u0010\b\u001a\u0006\u0012\u0002\b\u00030\t8TX\u0094\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000b¨\u0006?"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "Lkotlin/jvm/internal/ClassBasedDeclarationContainer;", "()V", "constructorDescriptors", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ConstructorDescriptor;", "getConstructorDescriptors", "()Ljava/util/Collection;", "methodOwner", "Ljava/lang/Class;", "getMethodOwner", "()Ljava/lang/Class;", "addParametersAndMasks", "", "result", "", "desc", "", "isConstructor", "", "findConstructorBySignature", "Ljava/lang/reflect/Constructor;", "findDefaultConstructor", "findDefaultMethod", "Ljava/lang/reflect/Method;", AppMeasurementSdk.ConditionalUserProperty.NAME, "isMember", "findFunctionDescriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "signature", "findMethodBySignature", "findPropertyDescriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "getFunctions", "Lkotlin/reflect/jvm/internal/impl/name/Name;", "getLocalProperty", FirebaseAnalytics.Param.INDEX, "", "getMembers", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "scope", "Lkotlin/reflect/jvm/internal/impl/resolve/scopes/MemberScope;", "belonginess", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$MemberBelonginess;", "getProperties", "loadParameterTypes", "", "loadReturnType", "parseType", "begin", "end", "lookupMethod", "parameterTypes", "", "returnType", "isStaticDefault", "(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Class;Z)Ljava/lang/reflect/Method;", "tryGetConstructor", "tryGetMethod", "(Ljava/lang/Class;Ljava/lang/String;[Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/reflect/Method;", "Companion", "Data", "MemberBelonginess", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKDeclarationContainerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KDeclarationContainerImpl.kt\nkotlin/reflect/jvm/internal/KDeclarationContainerImpl\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 Maps.kt\nkotlin/collections/MapsKt__MapsKt\n+ 5 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n+ 6 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,314:1\n1603#2,9:315\n1855#2:324\n1856#2:326\n1612#2:327\n766#2:328\n857#2,2:329\n1477#2:331\n1502#2,3:332\n1505#2,3:342\n766#2:345\n857#2,2:346\n766#2:348\n857#2,2:349\n1#3:325\n1#3:351\n372#4,7:335\n1282#5,2:352\n37#6,2:354\n37#6,2:356\n37#6,2:358\n*S KotlinDebug\n*F\n+ 1 KDeclarationContainerImpl.kt\nkotlin/reflect/jvm/internal/KDeclarationContainerImpl\n*L\n58#1:315,9\n58#1:324\n58#1:326\n58#1:327\n83#1:328\n83#1:329,2\n103#1:331\n103#1:332,3\n103#1:342,3\n128#1:345\n128#1:346,2\n142#1:348\n142#1:349,2\n58#1:325\n103#1:335,7\n197#1:352,2\n207#1:354,2\n215#1:356,2\n239#1:358,2\n*E\n"})
/* loaded from: classes3.dex */
public abstract class KDeclarationContainerImpl implements ClassBasedDeclarationContainer {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final Class<?> DEFAULT_CONSTRUCTOR_MARKER = DefaultConstructorMarker.class;
private static final Regex LOCAL_PROPERTY_SIGNATURE = new Regex("<v#(\\d+)>");
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u001e\u0010\u0003\u001a\u0012\u0012\u0002\b\u0003 \u0005*\b\u0012\u0002\b\u0003\u0018\u00010\u00040\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0006\u001a\u00020\u0007X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Companion;", "", "()V", "DEFAULT_CONSTRUCTOR_MARKER", "Ljava/lang/Class;", "kotlin.jvm.PlatformType", "LOCAL_PROPERTY_SIGNATURE", "Lkotlin/text/Regex;", "getLOCAL_PROPERTY_SIGNATURE$kotlin_reflection", "()Lkotlin/text/Regex;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Regex getLOCAL_PROPERTY_SIGNATURE$kotlin_reflection() {
return KDeclarationContainerImpl.LOCAL_PROPERTY_SIGNATURE;
}
private Companion() {
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b¦\u0004\u0018\u00002\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0002R\u001b\u0010\u0003\u001a\u00020\u00048FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0007\u0010\b\u001a\u0004\b\u0005\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Data;", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;)V", "moduleData", "Lkotlin/reflect/jvm/internal/impl/descriptors/runtime/components/RuntimeModuleData;", "getModuleData", "()Lorg/jetbrains/kotlin/descriptors/runtime/components/RuntimeModuleData;", "moduleData$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public abstract class Data {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "moduleData", "getModuleData()Lorg/jetbrains/kotlin/descriptors/runtime/components/RuntimeModuleData;"))};
/* renamed from: moduleData$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal moduleData;
public Data() {
this.moduleData = ReflectProperties.lazySoft(new Function0<RuntimeModuleData>() { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$Data$moduleData$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final RuntimeModuleData invoke() {
return ModuleByClassLoaderKt.getOrCreateModule(KDeclarationContainerImpl.this.getJClass());
}
});
}
/* JADX WARN: Multi-variable type inference failed */
public final RuntimeModuleData getModuleData() {
T value = this.moduleData.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (RuntimeModuleData) value;
}
}
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0084\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006j\u0002\b\u0007j\u0002\b\b¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$MemberBelonginess;", "", "(Ljava/lang/String;I)V", "accept", "", "member", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableMemberDescriptor;", "DECLARED", "INHERITED", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class MemberBelonginess {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ MemberBelonginess[] $VALUES;
public static final MemberBelonginess DECLARED = new MemberBelonginess("DECLARED", 0);
public static final MemberBelonginess INHERITED = new MemberBelonginess("INHERITED", 1);
private static final /* synthetic */ MemberBelonginess[] $values() {
return new MemberBelonginess[]{DECLARED, INHERITED};
}
static {
MemberBelonginess[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private MemberBelonginess(String str, int i) {
}
public static MemberBelonginess valueOf(String str) {
return (MemberBelonginess) Enum.valueOf(MemberBelonginess.class, str);
}
public static MemberBelonginess[] values() {
return (MemberBelonginess[]) $VALUES.clone();
}
public final boolean accept(CallableMemberDescriptor member) {
Intrinsics.checkNotNullParameter(member, "member");
return member.getKind().isReal() == (this == DECLARED);
}
}
private final void addParametersAndMasks(List<Class<?>> result, String desc, boolean isConstructor) {
List<Class<?>> loadParameterTypes = loadParameterTypes(desc);
result.addAll(loadParameterTypes);
int size = (loadParameterTypes.size() + 31) / 32;
for (int i = 0; i < size; i++) {
Class<?> TYPE = Integer.TYPE;
Intrinsics.checkNotNullExpressionValue(TYPE, "TYPE");
result.add(TYPE);
}
if (!isConstructor) {
result.add(Object.class);
return;
}
Class<?> DEFAULT_CONSTRUCTOR_MARKER2 = DEFAULT_CONSTRUCTOR_MARKER;
result.remove(DEFAULT_CONSTRUCTOR_MARKER2);
Intrinsics.checkNotNullExpressionValue(DEFAULT_CONSTRUCTOR_MARKER2, "DEFAULT_CONSTRUCTOR_MARKER");
result.add(DEFAULT_CONSTRUCTOR_MARKER2);
}
/* JADX INFO: Access modifiers changed from: private */
public static final int findPropertyDescriptor$lambda$3(Function2 tmp0, Object obj, Object obj2) {
Intrinsics.checkNotNullParameter(tmp0, "$tmp0");
return ((Number) tmp0.invoke(obj, obj2)).intValue();
}
private final List<Class<?>> loadParameterTypes(String desc) {
boolean contains$default;
int indexOf$default;
int i;
ArrayList arrayList = new ArrayList();
int i4 = 1;
while (desc.charAt(i4) != ')') {
int i5 = i4;
while (desc.charAt(i5) == '[') {
i5++;
}
char charAt = desc.charAt(i5);
contains$default = StringsKt__StringsKt.contains$default("VZCBSIFJD", charAt, false, 2, (Object) null);
if (contains$default) {
i = i5 + 1;
} else {
if (charAt != 'L') {
throw new KotlinReflectionInternalError("Unknown type prefix in the method signature: ".concat(desc));
}
indexOf$default = StringsKt__StringsKt.indexOf$default((CharSequence) desc, ';', i4, false, 4, (Object) null);
i = indexOf$default + 1;
}
arrayList.add(parseType(desc, i4, i));
i4 = i;
}
return arrayList;
}
private final Class<?> loadReturnType(String desc) {
int indexOf$default;
indexOf$default = StringsKt__StringsKt.indexOf$default((CharSequence) desc, ')', 0, false, 6, (Object) null);
return parseType(desc, indexOf$default + 1, desc.length());
}
private final Method lookupMethod(Class<?> cls, String str, Class<?>[] clsArr, Class<?> cls2, boolean z3) {
KDeclarationContainerImpl kDeclarationContainerImpl;
String str2;
Class<?>[] clsArr2;
Class<?> cls3;
boolean z4;
Class<?> tryLoadClass;
if (z3) {
clsArr[0] = cls;
}
Method tryGetMethod = tryGetMethod(cls, str, clsArr, cls2);
if (tryGetMethod != null) {
return tryGetMethod;
}
Class<? super Object> superclass = cls.getSuperclass();
if (superclass != null) {
Method lookupMethod = lookupMethod(superclass, str, clsArr, cls2, z3);
kDeclarationContainerImpl = this;
str2 = str;
clsArr2 = clsArr;
cls3 = cls2;
z4 = z3;
if (lookupMethod != null) {
return lookupMethod;
}
} else {
kDeclarationContainerImpl = this;
str2 = str;
clsArr2 = clsArr;
cls3 = cls2;
z4 = z3;
}
Class<?>[] interfaces = cls.getInterfaces();
Intrinsics.checkNotNullExpressionValue(interfaces, "getInterfaces(...)");
for (Class<?> cls4 : interfaces) {
Intrinsics.checkNotNull(cls4);
Method lookupMethod2 = kDeclarationContainerImpl.lookupMethod(cls4, str2, clsArr2, cls3, z4);
if (lookupMethod2 != null) {
return lookupMethod2;
}
if (z4 && (tryLoadClass = ReflectJavaClassFinderKt.tryLoadClass(ReflectClassUtilKt.getSafeClassLoader(cls4), cls4.getName().concat("$DefaultImpls"))) != null) {
clsArr2[0] = cls4;
Method tryGetMethod2 = kDeclarationContainerImpl.tryGetMethod(tryLoadClass, str2, clsArr2, cls3);
if (tryGetMethod2 != null) {
return tryGetMethod2;
}
}
}
return null;
}
private final Class<?> parseType(String desc, int begin, int end) {
String replace$default;
char charAt = desc.charAt(begin);
if (charAt == 'L') {
ClassLoader safeClassLoader = ReflectClassUtilKt.getSafeClassLoader(getJClass());
String substring = desc.substring(begin + 1, end - 1);
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
replace$default = StringsKt__StringsJVMKt.replace$default(substring, '/', '.', false, 4, (Object) null);
Class<?> loadClass = safeClassLoader.loadClass(replace$default);
Intrinsics.checkNotNullExpressionValue(loadClass, "loadClass(...)");
return loadClass;
}
if (charAt == '[') {
return UtilKt.createArrayType(parseType(desc, begin + 1, end));
}
if (charAt == 'V') {
Class<?> TYPE = Void.TYPE;
Intrinsics.checkNotNullExpressionValue(TYPE, "TYPE");
return TYPE;
}
if (charAt == 'Z') {
return Boolean.TYPE;
}
if (charAt == 'C') {
return Character.TYPE;
}
if (charAt == 'B') {
return Byte.TYPE;
}
if (charAt == 'S') {
return Short.TYPE;
}
if (charAt == 'I') {
return Integer.TYPE;
}
if (charAt == 'F') {
return Float.TYPE;
}
if (charAt == 'J') {
return Long.TYPE;
}
if (charAt == 'D') {
return Double.TYPE;
}
throw new KotlinReflectionInternalError("Unknown type prefix in the method signature: ".concat(desc));
}
private final Constructor<?> tryGetConstructor(Class<?> cls, List<? extends Class<?>> list) {
try {
Class[] clsArr = (Class[]) list.toArray(new Class[0]);
return cls.getDeclaredConstructor((Class[]) Arrays.copyOf(clsArr, clsArr.length));
} catch (NoSuchMethodException unused) {
return null;
}
}
private final Method tryGetMethod(Class<?> cls, String str, Class<?>[] clsArr, Class<?> cls2) {
Method declaredMethod;
try {
declaredMethod = cls.getDeclaredMethod(str, (Class[]) Arrays.copyOf(clsArr, clsArr.length));
} catch (NoSuchMethodException unused) {
}
if (Intrinsics.areEqual(declaredMethod.getReturnType(), cls2)) {
return declaredMethod;
}
Method[] declaredMethods = cls.getDeclaredMethods();
Intrinsics.checkNotNullExpressionValue(declaredMethods, "getDeclaredMethods(...)");
for (Method method : declaredMethods) {
if (Intrinsics.areEqual(method.getName(), str) && Intrinsics.areEqual(method.getReturnType(), cls2) && Arrays.equals(method.getParameterTypes(), clsArr)) {
return method;
}
}
return null;
}
public final Constructor<?> findConstructorBySignature(String desc) {
Intrinsics.checkNotNullParameter(desc, "desc");
return tryGetConstructor(getJClass(), loadParameterTypes(desc));
}
public final Constructor<?> findDefaultConstructor(String desc) {
Intrinsics.checkNotNullParameter(desc, "desc");
Class<?> jClass = getJClass();
ArrayList arrayList = new ArrayList();
addParametersAndMasks(arrayList, desc, true);
Unit unit = Unit.INSTANCE;
return tryGetConstructor(jClass, arrayList);
}
public final Method findDefaultMethod(String name, String desc, boolean isMember) {
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(desc, "desc");
if (Intrinsics.areEqual(name, "<init>")) {
return null;
}
ArrayList arrayList = new ArrayList();
if (isMember) {
arrayList.add(getJClass());
}
addParametersAndMasks(arrayList, desc, false);
return lookupMethod(getMethodOwner(), w.n(name, "$default"), (Class[]) arrayList.toArray(new Class[0]), loadReturnType(desc), isMember);
}
/* JADX WARN: Removed duplicated region for block: B:17:0x00b7 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:21:0x002a A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor findFunctionDescriptor(java.lang.String r11, java.lang.String r12) {
/*
Method dump skipped, instructions count: 334
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.findFunctionDescriptor(java.lang.String, java.lang.String):kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor");
}
public final Method findMethodBySignature(String name, String desc) {
Method lookupMethod;
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(desc, "desc");
if (Intrinsics.areEqual(name, "<init>")) {
return null;
}
Class<?>[] clsArr = (Class[]) loadParameterTypes(desc).toArray(new Class[0]);
Class<?> loadReturnType = loadReturnType(desc);
Method lookupMethod2 = lookupMethod(getMethodOwner(), name, clsArr, loadReturnType, false);
if (lookupMethod2 != null) {
return lookupMethod2;
}
if (!getMethodOwner().isInterface() || (lookupMethod = lookupMethod(Object.class, name, clsArr, loadReturnType, false)) == null) {
return null;
}
return lookupMethod;
}
public final PropertyDescriptor findPropertyDescriptor(String name, String signature) {
SortedMap sortedMap;
String joinToString$default;
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
MatchResult matchEntire = LOCAL_PROPERTY_SIGNATURE.matchEntire(signature);
if (matchEntire != null) {
String str = matchEntire.getDestructured().getMatch().getGroupValues().get(1);
PropertyDescriptor localProperty = getLocalProperty(Integer.parseInt(str));
if (localProperty != null) {
return localProperty;
}
StringBuilder p = com.google.android.gms.measurement.internal.a.p("Local property #", str, " not found in ");
p.append(getJClass());
throw new KotlinReflectionInternalError(p.toString());
}
Name identifier = Name.identifier(name);
Intrinsics.checkNotNullExpressionValue(identifier, "identifier(...)");
Collection<PropertyDescriptor> properties = getProperties(identifier);
ArrayList arrayList = new ArrayList();
for (Object obj : properties) {
if (Intrinsics.areEqual(RuntimeTypeMapper.INSTANCE.mapPropertySignature((PropertyDescriptor) obj).getString(), signature)) {
arrayList.add(obj);
}
}
if (arrayList.isEmpty()) {
throw new KotlinReflectionInternalError("Property '" + name + "' (JVM signature: " + signature + ") not resolved in " + this);
}
if (arrayList.size() == 1) {
return (PropertyDescriptor) CollectionsKt.single((List) arrayList);
}
LinkedHashMap linkedHashMap = new LinkedHashMap();
Iterator it = arrayList.iterator();
while (it.hasNext()) {
Object next = it.next();
DescriptorVisibility visibility = ((PropertyDescriptor) next).getVisibility();
Object obj2 = linkedHashMap.get(visibility);
if (obj2 == null) {
obj2 = new ArrayList();
linkedHashMap.put(visibility, obj2);
}
((List) obj2).add(next);
}
final KDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2 kDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2 = new Function2<DescriptorVisibility, DescriptorVisibility, Integer>() { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2
@Override // kotlin.jvm.functions.Function2
public final Integer invoke(DescriptorVisibility descriptorVisibility, DescriptorVisibility descriptorVisibility2) {
Integer compare = DescriptorVisibilities.compare(descriptorVisibility, descriptorVisibility2);
return Integer.valueOf(compare == null ? 0 : compare.intValue());
}
};
sortedMap = MapsKt__MapsJVMKt.toSortedMap(linkedHashMap, new Comparator(kDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2) { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$$Lambda$0
private final Function2 arg$0;
{
this.arg$0 = kDeclarationContainerImpl$findPropertyDescriptor$mostVisibleProperties$2;
}
@Override // java.util.Comparator
public int compare(Object obj3, Object obj4) {
int findPropertyDescriptor$lambda$3;
findPropertyDescriptor$lambda$3 = KDeclarationContainerImpl.findPropertyDescriptor$lambda$3(this.arg$0, obj3, obj4);
return findPropertyDescriptor$lambda$3;
}
});
Collection values = sortedMap.values();
Intrinsics.checkNotNullExpressionValue(values, "<get-values>(...)");
List list = (List) CollectionsKt.last(values);
if (list.size() == 1) {
Intrinsics.checkNotNull(list);
return (PropertyDescriptor) CollectionsKt.first(list);
}
Name identifier2 = Name.identifier(name);
Intrinsics.checkNotNullExpressionValue(identifier2, "identifier(...)");
joinToString$default = CollectionsKt___CollectionsKt.joinToString$default(getProperties(identifier2), "\n", null, null, 0, null, new Function1<PropertyDescriptor, CharSequence>() { // from class: kotlin.reflect.jvm.internal.KDeclarationContainerImpl$findPropertyDescriptor$allMembers$1
@Override // kotlin.jvm.functions.Function1
public final CharSequence invoke(PropertyDescriptor descriptor) {
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
return DescriptorRenderer.DEBUG_TEXT.render(descriptor) + " | " + RuntimeTypeMapper.INSTANCE.mapPropertySignature(descriptor).getString();
}
}, 30, null);
StringBuilder sb = new StringBuilder("Property '");
sb.append(name);
sb.append("' (JVM signature: ");
sb.append(signature);
sb.append(") not resolved in ");
sb.append(this);
sb.append(':');
sb.append(joinToString$default.length() == 0 ? " no members found" : "\n".concat(joinToString$default));
throw new KotlinReflectionInternalError(sb.toString());
}
public abstract Collection<ConstructorDescriptor> getConstructorDescriptors();
public abstract Collection<FunctionDescriptor> getFunctions(Name name);
public abstract PropertyDescriptor getLocalProperty(int index);
/* JADX WARN: Removed duplicated region for block: B:12:0x0051 A[SYNTHETIC] */
/* JADX WARN: Removed duplicated region for block: B:16:0x0020 A[SYNTHETIC] */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final java.util.Collection<kotlin.reflect.jvm.internal.KCallableImpl<?>> getMembers(kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope r7, kotlin.reflect.jvm.internal.KDeclarationContainerImpl.MemberBelonginess r8) {
/*
r6 = this;
java.lang.String r0 = "scope"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r7, r0)
java.lang.String r0 = "belonginess"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
kotlin.reflect.jvm.internal.KDeclarationContainerImpl$getMembers$visitor$1 r0 = new kotlin.reflect.jvm.internal.KDeclarationContainerImpl$getMembers$visitor$1
r0.<init>(r6)
r6 = 3
r1 = 0
java.util.Collection r6 = kotlin.reflect.jvm.internal.impl.resolve.scopes.ResolutionScope.DefaultImpls.getContributedDescriptors$default(r7, r1, r1, r6, r1)
java.lang.Iterable r6 = (java.lang.Iterable) r6
java.util.ArrayList r7 = new java.util.ArrayList
r7.<init>()
java.util.Iterator r6 = r6.iterator()
L20:
boolean r2 = r6.hasNext()
if (r2 == 0) goto L55
java.lang.Object r2 = r6.next()
kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor r2 = (kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor) r2
boolean r3 = r2 instanceof kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor
if (r3 == 0) goto L4e
r3 = r2
kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor r3 = (kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor) r3
kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility r4 = r3.getVisibility()
kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility r5 = kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities.INVISIBLE_FAKE
boolean r4 = kotlin.jvm.internal.Intrinsics.areEqual(r4, r5)
if (r4 != 0) goto L4e
boolean r3 = r8.accept(r3)
if (r3 == 0) goto L4e
kotlin.Unit r3 = kotlin.Unit.INSTANCE
java.lang.Object r2 = r2.accept(r0, r3)
kotlin.reflect.jvm.internal.KCallableImpl r2 = (kotlin.reflect.jvm.internal.KCallableImpl) r2
goto L4f
L4e:
r2 = r1
L4f:
if (r2 == 0) goto L20
r7.add(r2)
goto L20
L55:
java.util.List r6 = kotlin.collections.CollectionsKt.toList(r7)
java.util.Collection r6 = (java.util.Collection) r6
return r6
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.getMembers(kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope, kotlin.reflect.jvm.internal.KDeclarationContainerImpl$MemberBelonginess):java.util.Collection");
}
public Class<?> getMethodOwner() {
Class<?> wrapperByPrimitive = ReflectClassUtilKt.getWrapperByPrimitive(getJClass());
return wrapperByPrimitive == null ? getJClass() : wrapperByPrimitive;
}
public abstract Collection<PropertyDescriptor> getProperties(Name name);
}
@@ -0,0 +1,498 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.lang.reflect.Constructor;
import java.lang.reflect.Executable;
import java.lang.reflect.GenericDeclaration;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.CallableReference;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.FunctionBase;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.reflect.KFunction;
import kotlin.reflect.KParameter;
import kotlin.reflect.KProperty;
import kotlin.reflect.jvm.internal.FunctionWithAllInvokes;
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.calls.CallerImpl;
import kotlin.reflect.jvm.internal.calls.CallerKt;
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCaller;
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCallerKt;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt;
import kotlin.reflect.jvm.internal.impl.resolve.jvm.InlineClassManglingRulesKt;
@Metadata(d1 = {"\u0000`\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u000e\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0000\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00032\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00042\u00020\u0005B)\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t\u0012\b\u0010\u000b\u001a\u0004\u0018\u00010\u0002¢\u0006\u0002\u0010\fB\u0017\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\r\u001a\u00020\u000e¢\u0006\u0002\u0010\u000fB5\b\u0002\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\u000e\u0012\n\b\u0002\u0010\u0011\u001a\u0004\u0018\u00010\u0002¢\u0006\u0002\u0010\u0012J.\u00102\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u000304032\n\u00105\u001a\u0006\u0012\u0002\b\u0003042\u0006\u0010\r\u001a\u00020\u000e2\u0006\u00106\u001a\u00020)H\u0002J\u0010\u00107\u001a\u0002082\u0006\u00105\u001a\u000209H\u0002J\u0010\u0010:\u001a\u0002082\u0006\u00105\u001a\u000209H\u0002J\u0010\u0010;\u001a\u0002082\u0006\u00105\u001a\u000209H\u0002J\u0013\u0010<\u001a\u00020)2\b\u0010=\u001a\u0004\u0018\u00010\u0002H\u0096\u0002J\b\u0010>\u001a\u00020\u0014H\u0016J\b\u0010?\u001a\u00020\tH\u0016R\u0014\u0010\u0013\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016R\u0016\u0010\u000b\u001a\u0004\u0018\u00010\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u001f\u0010\u0019\u001a\u0006\u0012\u0002\b\u00030\u001a8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u001e\u001a\u0004\b\u001b\u0010\u001cR\u0014\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010 R!\u0010!\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001a8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b#\u0010\u001e\u001a\u0004\b\"\u0010\u001cR\u001b\u0010\r\u001a\u00020\u000e8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b&\u0010'\u001a\u0004\b$\u0010%R\u0014\u0010(\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b(\u0010*R\u0014\u0010+\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b+\u0010*R\u0014\u0010,\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b,\u0010*R\u0014\u0010-\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b-\u0010*R\u0014\u0010.\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b.\u0010*R\u0014\u0010/\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b/\u0010*R\u0014\u0010\b\u001a\u00020\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b0\u00101R\u0010\u0010\u0011\u001a\u0004\u0018\u00010\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006@"}, d2 = {"Lkotlin/reflect/jvm/internal/KFunctionImpl;", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "", "Lkotlin/reflect/KFunction;", "Lkotlin/jvm/internal/FunctionBase;", "Lkotlin/reflect/jvm/internal/FunctionWithAllInvokes;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;)V", "descriptorInitialValue", "rawBoundReceiver", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;Ljava/lang/Object;)V", "arity", "", "getArity", "()I", "getBoundReceiver", "()Ljava/lang/Object;", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "caller$delegate", "Lkotlin/Lazy;", "getContainer", "()Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "defaultCaller", "getDefaultCaller", "defaultCaller$delegate", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;", "descriptor$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "isBound", "", "()Z", "isExternal", "isInfix", "isInline", "isOperator", "isSuspend", "getName", "()Ljava/lang/String;", "createConstructorCaller", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "member", "isDefault", "createInstanceMethodCaller", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", "Ljava/lang/reflect/Method;", "createJvmStaticInObLine truncated
/* loaded from: classes3.dex */
public final class KFunctionImpl extends KCallableImpl<Object> implements FunctionBase<Object>, KFunction<Object>, FunctionWithAllInvokes {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KFunctionImpl.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/FunctionDescriptor;"))};
/* renamed from: caller$delegate, reason: from kotlin metadata */
private final Lazy caller;
private final KDeclarationContainerImpl container;
/* renamed from: defaultCaller$delegate, reason: from kotlin metadata */
private final Lazy defaultCaller;
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal descriptor;
private final Object rawBoundReceiver;
private final String signature;
public /* synthetic */ KFunctionImpl(KDeclarationContainerImpl kDeclarationContainerImpl, String str, String str2, FunctionDescriptor functionDescriptor, Object obj, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(kDeclarationContainerImpl, str, str2, functionDescriptor, (i & 16) != 0 ? CallableReference.NO_RECEIVER : obj);
}
/* JADX INFO: Access modifiers changed from: private */
public final CallerImpl<Constructor<?>> createConstructorCaller(Constructor<?> member, FunctionDescriptor descriptor, boolean isDefault) {
return (isDefault || !InlineClassManglingRulesKt.shouldHideConstructorDueToValueClassTypeValueParameters(descriptor)) ? isBound() ? new CallerImpl.BoundConstructor(member, getBoundReceiver()) : new CallerImpl.Constructor(member) : isBound() ? new CallerImpl.AccessorForHiddenBoundConstructor(member, getBoundReceiver()) : new CallerImpl.AccessorForHiddenConstructor(member);
}
/* JADX INFO: Access modifiers changed from: private */
public final CallerImpl.Method createInstanceMethodCaller(Method member) {
return isBound() ? new CallerImpl.Method.BoundInstance(member, getBoundReceiver()) : new CallerImpl.Method.Instance(member);
}
/* JADX INFO: Access modifiers changed from: private */
public final CallerImpl.Method createJvmStaticInObjectCaller(Method member) {
return isBound() ? new CallerImpl.Method.BoundJvmStaticInObject(member) : new CallerImpl.Method.JvmStaticInObject(member);
}
/* JADX INFO: Access modifiers changed from: private */
public final CallerImpl.Method createStaticMethodCaller(Method member) {
return isBound() ? new CallerImpl.Method.BoundStatic(member, getBoundReceiver()) : new CallerImpl.Method.Static(member);
}
private final Object getBoundReceiver() {
return ValueClassAwareCallerKt.coerceToExpectedReceiverType(this.rawBoundReceiver, getDescriptor());
}
public boolean equals(Object other) {
KFunctionImpl asKFunctionImpl = UtilKt.asKFunctionImpl(other);
return asKFunctionImpl != null && Intrinsics.areEqual(getContainer(), asKFunctionImpl.getContainer()) && Intrinsics.areEqual(getName(), asKFunctionImpl.getName()) && Intrinsics.areEqual(this.signature, asKFunctionImpl.signature) && Intrinsics.areEqual(this.rawBoundReceiver, asKFunctionImpl.rawBoundReceiver);
}
@Override // kotlin.jvm.internal.FunctionBase
public int getArity() {
return CallerKt.getArity(getCaller());
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getCaller() {
return (Caller) this.caller.getValue();
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public KDeclarationContainerImpl getContainer() {
return this.container;
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getDefaultCaller() {
return (Caller) this.defaultCaller.getValue();
}
@Override // kotlin.reflect.KCallable
public String getName() {
String asString = getDescriptor().getName().asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
return asString;
}
public int hashCode() {
return this.signature.hashCode() + ((getName().hashCode() + (getContainer().hashCode() * 31)) * 31);
}
@Override // kotlin.jvm.functions.Function0
public Object invoke() {
return FunctionWithAllInvokes.DefaultImpls.invoke(this);
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public boolean isBound() {
return !Intrinsics.areEqual(this.rawBoundReceiver, CallableReference.NO_RECEIVER);
}
@Override // kotlin.reflect.KFunction
public boolean isExternal() {
return getDescriptor().isExternal();
}
@Override // kotlin.reflect.KFunction
public boolean isInfix() {
return getDescriptor().isInfix();
}
@Override // kotlin.reflect.KFunction
public boolean isInline() {
return getDescriptor().isInline();
}
@Override // kotlin.reflect.KFunction
public boolean isOperator() {
return getDescriptor().isOperator();
}
@Override // kotlin.reflect.KCallable
public boolean isSuspend() {
return getDescriptor().isSuspend();
}
public String toString() {
return ReflectionObjectRenderer.INSTANCE.renderFunction(getDescriptor());
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public FunctionDescriptor getDescriptor() {
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (FunctionDescriptor) value;
}
@Override // kotlin.jvm.functions.Function1
public Object invoke(Object obj) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj);
}
private KFunctionImpl(KDeclarationContainerImpl kDeclarationContainerImpl, final String str, String str2, FunctionDescriptor functionDescriptor, Object obj) {
this.container = kDeclarationContainerImpl;
this.signature = str2;
this.rawBoundReceiver = obj;
this.descriptor = ReflectProperties.lazySoft(functionDescriptor, new Function0<FunctionDescriptor>() { // from class: kotlin.reflect.jvm.internal.KFunctionImpl$descriptor$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final FunctionDescriptor invoke() {
String str3;
KDeclarationContainerImpl container = KFunctionImpl.this.getContainer();
String str4 = str;
str3 = KFunctionImpl.this.signature;
return container.findFunctionDescriptor(str4, str3);
}
});
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this.caller = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Caller<? extends Executable>>() { // from class: kotlin.reflect.jvm.internal.KFunctionImpl$caller$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Caller<? extends Executable> invoke() {
int collectionSizeOrDefault;
Object constructor;
Caller createStaticMethodCaller;
int collectionSizeOrDefault2;
JvmFunctionSignature mapSignature = RuntimeTypeMapper.INSTANCE.mapSignature(KFunctionImpl.this.getDescriptor());
if (mapSignature instanceof JvmFunctionSignature.KotlinConstructor) {
if (KFunctionImpl.this.isAnnotationConstructor()) {
Class<?> jClass = KFunctionImpl.this.getContainer().getJClass();
List<KParameter> parameters = KFunctionImpl.this.getParameters();
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(parameters, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault2);
Iterator<T> it = parameters.iterator();
while (it.hasNext()) {
String name = ((KParameter) it.next()).getName();
Intrinsics.checkNotNull(name);
arrayList.add(name);
}
return new AnnotationConstructorCaller(jClass, arrayList, AnnotationConstructorCaller.CallMode.POSITIONAL_CALL, AnnotationConstructorCaller.Origin.KOTLIN, null, 16, null);
}
constructor = KFunctionImpl.this.getContainer().findConstructorBySignature(((JvmFunctionSignature.KotlinConstructor) mapSignature).getConstructorDesc());
} else if (mapSignature instanceof JvmFunctionSignature.KotlinFunction) {
FunctionDescriptor descriptor = KFunctionImpl.this.getDescriptor();
DeclarationDescriptor containingDeclaration = descriptor.getContainingDeclaration();
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
if (InlineClassesUtilsKt.isMultiFieldValueClass(containingDeclaration) && (descriptor instanceof ConstructorDescriptor) && ((ConstructorDescriptor) descriptor).isPrimary()) {
FunctionDescriptor descriptor2 = KFunctionImpl.this.getDescriptor();
KDeclarationContainerImpl container = KFunctionImpl.this.getContainer();
String methodDesc = ((JvmFunctionSignature.KotlinFunction) mapSignature).getMethodDesc();
List<ValueParameterDescriptor> valueParameters = KFunctionImpl.this.getDescriptor().getValueParameters();
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
return new ValueClassAwareCaller.MultiFieldValueClassPrimaryConstructorCaller(descriptor2, container, methodDesc, valueParameters);
}
JvmFunctionSignature.KotlinFunction kotlinFunction = (JvmFunctionSignature.KotlinFunction) mapSignature;
constructor = KFunctionImpl.this.getContainer().findMethodBySignature(kotlinFunction.getMethodName(), kotlinFunction.getMethodDesc());
} else if (mapSignature instanceof JvmFunctionSignature.JavaMethod) {
constructor = ((JvmFunctionSignature.JavaMethod) mapSignature).getMethod();
} else {
if (!(mapSignature instanceof JvmFunctionSignature.JavaConstructor)) {
if (!(mapSignature instanceof JvmFunctionSignature.FakeJavaAnnotationConstructor)) {
throw new NoWhenBranchMatchedException();
}
List<Method> methods = ((JvmFunctionSignature.FakeJavaAnnotationConstructor) mapSignature).getMethods();
Class<?> jClass2 = KFunctionImpl.this.getContainer().getJClass();
List<Method> list = methods;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
Iterator<T> it2 = list.iterator();
while (it2.hasNext()) {
arrayList2.add(((Method) it2.next()).getName());
}
return new AnnotationConstructorCaller(jClass2, arrayList2, AnnotationConstructorCaller.CallMode.POSITIONAL_CALL, AnnotationConstructorCaller.Origin.JAVA, methods);
}
constructor = ((JvmFunctionSignature.JavaConstructor) mapSignature).getConstructor();
}
if (constructor instanceof Constructor) {
KFunctionImpl kFunctionImpl = KFunctionImpl.this;
createStaticMethodCaller = kFunctionImpl.createConstructorCaller((Constructor) constructor, kFunctionImpl.getDescriptor(), false);
} else if (constructor instanceof Method) {
Method method = (Method) constructor;
if (!Modifier.isStatic(method.getModifiers())) {
createStaticMethodCaller = KFunctionImpl.this.createInstanceMethodCaller(method);
} else if (KFunctionImpl.this.getDescriptor().getAnnotations().mo1389findAnnotation(UtilKt.getJVM_STATIC()) != null) {
createStaticMethodCaller = KFunctionImpl.this.createJvmStaticInObjectCaller(method);
} else {
createStaticMethodCaller = KFunctionImpl.this.createStaticMethodCaller(method);
}
} else {
throw new KotlinReflectionInternalError("Could not compute caller for function: " + KFunctionImpl.this.getDescriptor() + " (member = " + constructor + ')');
}
return ValueClassAwareCallerKt.createValueClassAwareCallerIfNeeded$default(createStaticMethodCaller, KFunctionImpl.this.getDescriptor(), false, 2, null);
}
});
this.defaultCaller = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Caller<? extends Executable>>() { // from class: kotlin.reflect.jvm.internal.KFunctionImpl$defaultCaller$2
{
super(0);
}
/* JADX WARN: Type inference failed for: r5v5, types: [java.lang.reflect.Member, java.lang.Object] */
@Override // kotlin.jvm.functions.Function0
public final Caller<? extends Executable> invoke() {
GenericDeclaration genericDeclaration;
int collectionSizeOrDefault;
int collectionSizeOrDefault2;
Caller caller;
JvmFunctionSignature mapSignature = RuntimeTypeMapper.INSTANCE.mapSignature(KFunctionImpl.this.getDescriptor());
if (mapSignature instanceof JvmFunctionSignature.KotlinFunction) {
FunctionDescriptor descriptor = KFunctionImpl.this.getDescriptor();
DeclarationDescriptor containingDeclaration = descriptor.getContainingDeclaration();
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
if (InlineClassesUtilsKt.isMultiFieldValueClass(containingDeclaration) && (descriptor instanceof ConstructorDescriptor) && ((ConstructorDescriptor) descriptor).isPrimary()) {
throw new KotlinReflectionInternalError(KFunctionImpl.this.getDescriptor().getContainingDeclaration() + " cannot have default arguments");
}
KDeclarationContainerImpl container = KFunctionImpl.this.getContainer();
JvmFunctionSignature.KotlinFunction kotlinFunction = (JvmFunctionSignature.KotlinFunction) mapSignature;
String methodName = kotlinFunction.getMethodName();
String methodDesc = kotlinFunction.getMethodDesc();
Intrinsics.checkNotNull(KFunctionImpl.this.getCaller().mo1386getMember());
genericDeclaration = container.findDefaultMethod(methodName, methodDesc, !Modifier.isStatic(r5.getModifiers()));
} else if (mapSignature instanceof JvmFunctionSignature.KotlinConstructor) {
if (KFunctionImpl.this.isAnnotationConstructor()) {
Class<?> jClass = KFunctionImpl.this.getContainer().getJClass();
List<KParameter> parameters = KFunctionImpl.this.getParameters();
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(parameters, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault2);
Iterator<T> it = parameters.iterator();
while (it.hasNext()) {
String name = ((KParameter) it.next()).getName();
Intrinsics.checkNotNull(name);
arrayList.add(name);
}
return new AnnotationConstructorCaller(jClass, arrayList, AnnotationConstructorCaller.CallMode.CALL_BY_NAME, AnnotationConstructorCaller.Origin.KOTLIN, null, 16, null);
}
genericDeclaration = KFunctionImpl.this.getContainer().findDefaultConstructor(((JvmFunctionSignature.KotlinConstructor) mapSignature).getConstructorDesc());
} else {
if (mapSignature instanceof JvmFunctionSignature.FakeJavaAnnotationConstructor) {
List<Method> methods = ((JvmFunctionSignature.FakeJavaAnnotationConstructor) mapSignature).getMethods();
Class<?> jClass2 = KFunctionImpl.this.getContainer().getJClass();
List<Method> list = methods;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
Iterator<T> it2 = list.iterator();
while (it2.hasNext()) {
arrayList2.add(((Method) it2.next()).getName());
}
return new AnnotationConstructorCaller(jClass2, arrayList2, AnnotationConstructorCaller.CallMode.CALL_BY_NAME, AnnotationConstructorCaller.Origin.JAVA, methods);
}
genericDeclaration = null;
}
if (genericDeclaration instanceof Constructor) {
KFunctionImpl kFunctionImpl = KFunctionImpl.this;
caller = kFunctionImpl.createConstructorCaller((Constructor) genericDeclaration, kFunctionImpl.getDescriptor(), true);
} else if (genericDeclaration instanceof Method) {
if (KFunctionImpl.this.getDescriptor().getAnnotations().mo1389findAnnotation(UtilKt.getJVM_STATIC()) != null) {
DeclarationDescriptor containingDeclaration2 = KFunctionImpl.this.getDescriptor().getContainingDeclaration();
Intrinsics.checkNotNull(containingDeclaration2, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
if (!((ClassDescriptor) containingDeclaration2).isCompanionObject()) {
caller = KFunctionImpl.this.createJvmStaticInObjectCaller((Method) genericDeclaration);
}
}
caller = KFunctionImpl.this.createStaticMethodCaller((Method) genericDeclaration);
} else {
caller = null;
}
if (caller != null) {
return ValueClassAwareCallerKt.createValueClassAwareCallerIfNeeded(caller, KFunctionImpl.this.getDescriptor(), true);
}
return null;
}
});
}
@Override // kotlin.jvm.functions.Function2
public Object invoke(Object obj, Object obj2) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2);
}
@Override // kotlin.jvm.functions.Function3
public Object invoke(Object obj, Object obj2, Object obj3) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3);
}
@Override // kotlin.jvm.functions.Function4
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4);
}
@Override // kotlin.jvm.functions.Function5
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5);
}
@Override // kotlin.jvm.functions.Function6
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6);
}
@Override // kotlin.jvm.functions.Function7
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7);
}
@Override // kotlin.jvm.functions.Function8
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8);
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public KFunctionImpl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
this(container, name, signature, null, obj);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
}
@Override // kotlin.jvm.functions.Function9
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9);
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public KFunctionImpl(kotlin.reflect.jvm.internal.KDeclarationContainerImpl r10, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor r11) {
/*
r9 = this;
java.lang.String r0 = "container"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r10, r0)
java.lang.String r0 = "descriptor"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r11, r0)
kotlin.reflect.jvm.internal.impl.name.Name r0 = r11.getName()
java.lang.String r3 = r0.asString()
java.lang.String r0 = "asString(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
kotlin.reflect.jvm.internal.RuntimeTypeMapper r0 = kotlin.reflect.jvm.internal.RuntimeTypeMapper.INSTANCE
kotlin.reflect.jvm.internal.JvmFunctionSignature r0 = r0.mapSignature(r11)
java.lang.String r4 = r0.get_signature()
r7 = 16
r8 = 0
r6 = 0
r1 = r9
r2 = r10
r5 = r11
r1.<init>(r2, r3, r4, r5, r6, r7, r8)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KFunctionImpl.<init>(kotlin.reflect.jvm.internal.KDeclarationContainerImpl, kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor):void");
}
@Override // kotlin.jvm.functions.Function10
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10);
}
@Override // kotlin.jvm.functions.Function11
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11);
}
@Override // kotlin.jvm.functions.Function12
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12);
}
@Override // kotlin.jvm.functions.Function13
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13);
}
@Override // kotlin.jvm.functions.Function14
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14);
}
@Override // kotlin.jvm.functions.Function15
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15);
}
@Override // kotlin.jvm.functions.Function16
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16);
}
@Override // kotlin.jvm.functions.Function17
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17);
}
@Override // kotlin.jvm.functions.Function18
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18);
}
@Override // kotlin.jvm.functions.Function19
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19);
}
@Override // kotlin.jvm.functions.Function20
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20);
}
@Override // kotlin.jvm.functions.Function21
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20, Object obj21) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20, obj21);
}
@Override // kotlin.jvm.functions.Function22
public Object invoke(Object obj, Object obj2, Object obj3, Object obj4, Object obj5, Object obj6, Object obj7, Object obj8, Object obj9, Object obj10, Object obj11, Object obj12, Object obj13, Object obj14, Object obj15, Object obj16, Object obj17, Object obj18, Object obj19, Object obj20, Object obj21, Object obj22) {
return FunctionWithAllInvokes.DefaultImpls.invoke(this, obj, obj2, obj3, obj4, obj5, obj6, obj7, obj8, obj9, obj10, obj11, obj12, obj13, obj14, obj15, obj16, obj17, obj18, obj19, obj20, obj21, obj22);
}
}
@@ -0,0 +1,101 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KMutableProperty0;
import kotlin.reflect.jvm.internal.KMutableProperty0Impl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0004\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u0019B\u0017\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB)\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\b\u0010\f\u001a\u0004\u0018\u00010\r¢\u0006\u0002\u0010\u000eJ\u0015\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0018R\u001a\u0010\u000f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0012\u001a\b\u0012\u0004\u0012\u00028\u00000\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;", "V", "Lkotlin/reflect/jvm/internal/KProperty0Impl;", "Lkotlin/reflect/KMutableProperty0;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "_setter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KMutableProperty0Impl$Setter;", "setter", "getSetter", "()Lkotlin/reflect/jvm/internal/KMutableProperty0Impl$Setter;", "set", "", "value", "(Ljava/lang/Object;)V", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KMutableProperty0Impl<V> extends KProperty0Impl<V> implements KMutableProperty0<V> {
private final Lazy<Setter<V>> _setter;
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0003\u0018\u0000*\u0004\b\u0001\u0010\u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0013\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005¢\u0006\u0002\u0010\u0006J\u0016\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00028\u0001H\u0096\u0002¢\u0006\u0002\u0010\fR\u001a\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty0Impl$Setter;", "R", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "Lkotlin/reflect/KMutableProperty0$Setter;", "property", "Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;", "(Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KMutableProperty0Impl;", "invoke", "", "value", "(Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Setter<R> extends KPropertyImpl.Setter<R> implements KMutableProperty0.Setter<R> {
private final KMutableProperty0Impl<R> property;
public Setter(KMutableProperty0Impl<R> property) {
Intrinsics.checkNotNullParameter(property, "property");
this.property = property;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ Unit invoke(Object obj) {
invoke2((Setter<R>) obj);
return Unit.INSTANCE;
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
public KMutableProperty0Impl<R> getProperty() {
return this.property;
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public void invoke2(R value) {
getProperty().set(value);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KMutableProperty0Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
super(container, descriptor);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty0Impl$_setter$1
final /* synthetic */ KMutableProperty0Impl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KMutableProperty0Impl.Setter<V> invoke() {
return new KMutableProperty0Impl.Setter<>(this.this$0);
}
});
}
@Override // kotlin.reflect.KMutableProperty0
public void set(V value) {
getSetter().call(value);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KMutableProperty0Impl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
super(container, name, signature, obj);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty0Impl$_setter$1
final /* synthetic */ KMutableProperty0Impl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KMutableProperty0Impl.Setter<V> invoke() {
return new KMutableProperty0Impl.Setter<>(this.this$0);
}
});
}
@Override // kotlin.reflect.KMutableProperty0, kotlin.reflect.KMutableProperty
public Setter<V> getSetter() {
return this._setter.getValue();
}
}
@@ -0,0 +1,101 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KMutableProperty1;
import kotlin.reflect.jvm.internal.KMutableProperty1Impl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0005\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u00022\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004:\u0001\u001bB)\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\u0006\u0010\t\u001a\u00020\b\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u000b¢\u0006\u0002\u0010\fB\u0017\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\r\u001a\u00020\u000e¢\u0006\u0002\u0010\u000fJ\u001d\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001aR \u0010\u0010\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00120\u0011X\u0082\u0004¢\u0006\u0002\n\u0000R \u0010\u0013\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;", "T", "V", "Lkotlin/reflect/jvm/internal/KProperty1Impl;", "Lkotlin/reflect/KMutableProperty1;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "_setter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KMutableProperty1Impl$Setter;", "setter", "getSetter", "()Lkotlin/reflect/jvm/internal/KMutableProperty1Impl$Setter;", "set", "", "receiver", "value", "(Ljava/lang/Object;Ljava/lang/Object;)V", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KMutableProperty1Impl<T, V> extends KProperty1Impl<T, V> implements KMutableProperty1<T, V> {
private final Lazy<Setter<T, V>> _setter;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0004\u0018\u0000*\u0004\b\u0002\u0010\u0001*\u0004\b\u0003\u0010\u00022\b\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004B\u0019\u0012\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0002\u0012\u0004\u0012\u00028\u00030\u0006¢\u0006\u0002\u0010\u0007J\u001e\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00028\u00022\u0006\u0010\r\u001a\u00028\u0003H\u0096\u0002¢\u0006\u0002\u0010\u000eR \u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0002\u0012\u0004\u0012\u00028\u00030\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty1Impl$Setter;", "T", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "Lkotlin/reflect/KMutableProperty1$Setter;", "property", "Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;", "(Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KMutableProperty1Impl;", "invoke", "", "receiver", "value", "(Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Setter<T, V> extends KPropertyImpl.Setter<V> implements KMutableProperty1.Setter<T, V> {
private final KMutableProperty1Impl<T, V> property;
public Setter(KMutableProperty1Impl<T, V> property) {
Intrinsics.checkNotNullParameter(property, "property");
this.property = property;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // kotlin.jvm.functions.Function2
public /* bridge */ /* synthetic */ Unit invoke(Object obj, Object obj2) {
invoke2((Setter<T, V>) obj, obj2);
return Unit.INSTANCE;
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
public KMutableProperty1Impl<T, V> getProperty() {
return this.property;
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public void invoke2(T receiver, V value) {
getProperty().set(receiver, value);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KMutableProperty1Impl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
super(container, name, signature, obj);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<T, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty1Impl$_setter$1
final /* synthetic */ KMutableProperty1Impl<T, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KMutableProperty1Impl.Setter<T, V> invoke() {
return new KMutableProperty1Impl.Setter<>(this.this$0);
}
});
}
@Override // kotlin.reflect.KMutableProperty1
public void set(T receiver, V value) {
getSetter().call(receiver, value);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KMutableProperty1Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
super(container, descriptor);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<T, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty1Impl$_setter$1
final /* synthetic */ KMutableProperty1Impl<T, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KMutableProperty1Impl.Setter<T, V> invoke() {
return new KMutableProperty1Impl.Setter<>(this.this$0);
}
});
}
@Override // kotlin.reflect.KMutableProperty1, kotlin.reflect.KMutableProperty
public Setter<T, V> getSetter() {
return this._setter.getValue();
}
}
@@ -0,0 +1,101 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KMutableProperty2;
import kotlin.reflect.jvm.internal.KMutableProperty2Impl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0006\b\u0000\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u0002*\u0004\b\u0002\u0010\u00032\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005:\u0001\u001bB\u001f\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t¢\u0006\u0002\u0010\u000bB\u0017\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eJ%\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00028\u00002\u0006\u0010\u0018\u001a\u00028\u00012\u0006\u0010\u0019\u001a\u00028\u0002H\u0016¢\u0006\u0002\u0010\u001aR&\u0010\u000f\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\u0012\u001a\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;", "D", "E", "V", "Lkotlin/reflect/jvm/internal/KProperty2Impl;", "Lkotlin/reflect/KMutableProperty2;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "_setter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KMutableProperty2Impl$Setter;", "setter", "getSetter", "()Lkotlin/reflect/jvm/internal/KMutableProperty2Impl$Setter;", "set", "", "receiver1", "receiver2", "value", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KMutableProperty2Impl<D, E, V> extends KProperty2Impl<D, E, V> implements KMutableProperty2<D, E, V> {
private final Lazy<Setter<D, E, V>> _setter;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0002\n\u0002\b\u0005\u0018\u0000*\u0004\b\u0003\u0010\u0001*\u0004\b\u0004\u0010\u0002*\u0004\b\u0005\u0010\u00032\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005B\u001f\u0012\u0018\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007¢\u0006\u0002\u0010\bJ&\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00028\u00032\u0006\u0010\u000e\u001a\u00028\u00042\u0006\u0010\u000f\u001a\u00028\u0005H\u0096\u0002¢\u0006\u0002\u0010\u0010R&\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/jvm/internal/KMutableProperty2Impl$Setter;", "D", "E", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "Lkotlin/reflect/KMutableProperty2$Setter;", "property", "Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;", "(Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KMutableProperty2Impl;", "invoke", "", "receiver1", "receiver2", "value", "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Setter<D, E, V> extends KPropertyImpl.Setter<V> implements KMutableProperty2.Setter<D, E, V> {
private final KMutableProperty2Impl<D, E, V> property;
public Setter(KMutableProperty2Impl<D, E, V> property) {
Intrinsics.checkNotNullParameter(property, "property");
this.property = property;
}
/* JADX WARN: Multi-variable type inference failed */
@Override // kotlin.jvm.functions.Function3
public /* bridge */ /* synthetic */ Unit invoke(Object obj, Object obj2, Object obj3) {
invoke2((Setter<D, E, V>) obj, obj2, obj3);
return Unit.INSTANCE;
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
public KMutableProperty2Impl<D, E, V> getProperty() {
return this.property;
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public void invoke2(D receiver1, E receiver2, V value) {
getProperty().set(receiver1, receiver2, value);
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KMutableProperty2Impl(KDeclarationContainerImpl container, String name, String signature) {
super(container, name, signature);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<D, E, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty2Impl$_setter$1
final /* synthetic */ KMutableProperty2Impl<D, E, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KMutableProperty2Impl.Setter<D, E, V> invoke() {
return new KMutableProperty2Impl.Setter<>(this.this$0);
}
});
}
@Override // kotlin.reflect.KMutableProperty2
public void set(D receiver1, E receiver2, V value) {
getSetter().call(receiver1, receiver2, value);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KMutableProperty2Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
super(container, descriptor);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
this._setter = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Setter<D, E, V>>(this) { // from class: kotlin.reflect.jvm.internal.KMutableProperty2Impl$_setter$1
final /* synthetic */ KMutableProperty2Impl<D, E, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KMutableProperty2Impl.Setter<D, E, V> invoke() {
return new KMutableProperty2Impl.Setter<>(this.this$0);
}
});
}
@Override // kotlin.reflect.KMutableProperty2, kotlin.reflect.KMutableProperty
public Setter<D, E, V> getSetter() {
return this._setter.getValue();
}
}
@@ -0,0 +1,43 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.FunctionReference;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class KPackageImpl$getLocalProperty$1$1$1 extends FunctionReference implements Function2<MemberDeserializer, ProtoBuf.Property, PropertyDescriptor> {
public static final KPackageImpl$getLocalProperty$1$1$1 INSTANCE = new KPackageImpl$getLocalProperty$1$1$1();
public KPackageImpl$getLocalProperty$1$1$1() {
super(2);
}
@Override // kotlin.jvm.internal.CallableReference, kotlin.reflect.KCallable
public final String getName() {
return "loadProperty";
}
@Override // kotlin.jvm.internal.CallableReference
public final KDeclarationContainer getOwner() {
return Reflection.getOrCreateKotlinClass(MemberDeserializer.class);
}
@Override // kotlin.jvm.internal.CallableReference
public final String getSignature() {
return "loadProperty(Lorg/jetbrains/kotlin/metadata/ProtoBuf$Property;)Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;";
}
@Override // kotlin.jvm.functions.Function2
public final PropertyDescriptor invoke(MemberDeserializer p02, ProtoBuf.Property p12) {
Intrinsics.checkNotNullParameter(p02, "p0");
Intrinsics.checkNotNullParameter(p12, "p1");
return p02.loadProperty(p12);
}
}
@@ -0,0 +1,265 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.messaging.Constants;
import java.util.Collection;
import java.util.List;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.Pair;
import kotlin.Triple;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KProperty;
import kotlin.reflect.jvm.internal.KDeclarationContainerImpl;
import kotlin.reflect.jvm.internal.KPackageImpl;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.impl.descriptors.ConstructorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.incremental.components.NoLookupLocation;
import kotlin.reflect.jvm.internal.impl.load.kotlin.header.KotlinClassHeader;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMetadataVersion;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmNameResolver;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
import kotlin.reflect.jvm.internal.impl.name.Name;
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
import kotlin.reflect.jvm.internal.impl.resolve.scopes.MemberScope;
import kotlin.text.StringsKt__StringsJVMKt;
@Metadata(d1 = {"\u0000h\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0000\u0018\u00002\u00020\u0001:\u0001(B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0018\u001a\u00020\u00192\b\u0010\u001a\u001a\u0004\u0018\u00010\u001bH\u0096\u0002J\u0016\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u001d0\u00062\u0006\u0010\u001e\u001a\u00020\u001fH\u0016J\u0012\u0010 \u001a\u0004\u0018\u00010!2\u0006\u0010\"\u001a\u00020#H\u0016J\u0016\u0010$\u001a\b\u0012\u0004\u0012\u00020!0\u00062\u0006\u0010\u001e\u001a\u00020\u001fH\u0016J\b\u0010%\u001a\u00020#H\u0016J\b\u0010&\u001a\u00020'H\u0016R\u001a\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0018\u0010\n\u001a\f\u0012\b\u0012\u00060\fR\u00020\u00000\u000bX\u0082\u0004¢\u0006\u0002\n\u0000R\u0018\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000eR\u001e\u0010\u000f\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00100\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\tR\u0018\u0010\u0012\u001a\u0006\u0012\u0002\b\u00030\u00038TX\u0094\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u000eR\u0014\u0010\u0014\u001a\u00020\u00158BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006)"}, d2 = {"Lkotlin/reflect/jvm/internal/KPackageImpl;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "jClass", "Ljava/lang/Class;", "(Ljava/lang/Class;)V", "constructorDescriptors", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/ConstructorDescriptor;", "getConstructorDescriptors", "()Ljava/util/Collection;", Constants.ScionAnalytics.MessageType.DATA_MESSAGE, "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KPackageImpl$Data;", "getJClass", "()Ljava/lang/Class;", "members", "Lkotlin/reflect/KCallable;", "getMembers", "methodOwner", "getMethodOwner", "scope", "Lkotlin/reflect/jvm/internal/impl/resolve/scopes/MemberScope;", "getScope", "()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;", "equals", "", "other", "", "getFunctions", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", AppMeasurementSdk.ConditionalUserProperty.NAME, "Lkotlin/reflect/jvm/internal/impl/name/Name;", "getLocalProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", FirebaseAnalytics.Param.INDEX, "", "getProperties", "hashCode", "toString", "", "Data", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKPackageImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KPackageImpl.kt\nkotlin/reflect/jvm/internal/KPackageImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,117:1\n1#2:118\n*E\n"})
/* loaded from: classes3.dex */
public final class KPackageImpl extends KDeclarationContainerImpl {
private final Lazy<Data> data;
private final Class<?> jClass;
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0082\u0004\u0018\u00002\u00060\u0001R\u00020\u0002B\u0005¢\u0006\u0002\u0010\u0003R\u001d\u0010\u0004\u001a\u0004\u0018\u00010\u00058BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\b\u0010\t\u001a\u0004\b\u0006\u0010\u0007R%\u0010\n\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\f0\u000b8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\t\u001a\u0004\b\r\u0010\u000eR/\u0010\u0010\u001a\u0016\u0012\u0004\u0012\u00020\u0012\u0012\u0004\u0012\u00020\u0013\u0012\u0004\u0012\u00020\u0014\u0018\u00010\u00118FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u0017\u0010\u0018\u001a\u0004\b\u0015\u0010\u0016R!\u0010\u0019\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001a8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\u001d\u0010\u0018\u001a\u0004\b\u001b\u0010\u001cR\u001b\u0010\u001e\u001a\u00020\u001f8FX\u0086\u0084\u0002¢\u0006\f\n\u0004\b\"\u0010\t\u001a\u0004\b \u0010!¨\u0006#"}, d2 = {"Lkotlin/reflect/jvm/internal/KPackageImpl$Data;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl$Data;", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "(Lkotlin/reflect/jvm/internal/KPackageImpl;)V", "kotlinClass", "Lkotlin/reflect/jvm/internal/impl/descriptors/runtime/components/ReflectKotlinClass;", "getKotlinClass", "()Lorg/jetbrains/kotlin/descriptors/runtime/components/ReflectKotlinClass;", "kotlinClass$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "members", "", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "getMembers", "()Ljava/util/Collection;", "members$delegate", "metadata", "Lkotlin/Triple;", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmNameResolver;", "Lkotlin/reflect/jvm/internal/impl/metadata/ProtoBuf$Package;", "Lkotlin/reflect/jvm/internal/impl/metadata/jvm/deserialization/JvmMetadataVersion;", "getMetadata", "()Lkotlin/Triple;", "metadata$delegate", "Lkotlin/Lazy;", "multifileFacade", "Ljava/lang/Class;", "getMultifileFacade", "()Ljava/lang/Class;", "multifileFacade$delegate", "scope", "Lkotlin/reflect/jvm/internal/impl/resolve/scopes/MemberScope;", "getScope", "()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;", "scope$delegate", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class Data extends KDeclarationContainerImpl.Data {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "kotlinClass", "getKotlinClass()Lorg/jetbrains/kotlin/descriptors/runtime/components/ReflectKotlinClass;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "scope", "getScope()Lorg/jetbrains/kotlin/resolve/scopes/MemberScope;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Data.class), "members", "getMembers()Ljava/util/Collection;"))};
/* renamed from: kotlinClass$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal kotlinClass;
/* renamed from: members$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal members;
/* renamed from: metadata$delegate, reason: from kotlin metadata */
private final Lazy metadata;
/* renamed from: multifileFacade$delegate, reason: from kotlin metadata */
private final Lazy multifileFacade;
/* renamed from: scope$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal scope;
public Data() {
super();
this.kotlinClass = ReflectProperties.lazySoft(new Function0<ReflectKotlinClass>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$kotlinClass$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final ReflectKotlinClass invoke() {
return ReflectKotlinClass.Factory.create(KPackageImpl.this.getJClass());
}
});
this.scope = ReflectProperties.lazySoft(new Function0<MemberScope>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$scope$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final MemberScope invoke() {
ReflectKotlinClass kotlinClass;
kotlinClass = KPackageImpl.Data.this.getKotlinClass();
if (kotlinClass != null) {
return KPackageImpl.Data.this.getModuleData().getPackagePartScopeCache().getPackagePartScope(kotlinClass);
}
return MemberScope.Empty.INSTANCE;
}
});
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this.multifileFacade = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Class<?>>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$multifileFacade$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // kotlin.jvm.functions.Function0
public final Class<?> invoke() {
ReflectKotlinClass kotlinClass;
String replace$default;
KotlinClassHeader classHeader;
kotlinClass = KPackageImpl.Data.this.getKotlinClass();
String multifileClassName = (kotlinClass == null || (classHeader = kotlinClass.getClassHeader()) == null) ? null : classHeader.getMultifileClassName();
if (multifileClassName == null || multifileClassName.length() <= 0) {
return null;
}
ClassLoader classLoader = r2.getJClass().getClassLoader();
replace$default = StringsKt__StringsJVMKt.replace$default(multifileClassName, '/', '.', false, 4, (Object) null);
return classLoader.loadClass(replace$default);
}
});
this.metadata = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Triple<? extends JvmNameResolver, ? extends ProtoBuf.Package, ? extends JvmMetadataVersion>>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$metadata$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Triple<? extends JvmNameResolver, ? extends ProtoBuf.Package, ? extends JvmMetadataVersion> invoke() {
ReflectKotlinClass kotlinClass;
KotlinClassHeader classHeader;
kotlinClass = KPackageImpl.Data.this.getKotlinClass();
if (kotlinClass != null && (classHeader = kotlinClass.getClassHeader()) != null) {
String[] data = classHeader.getData();
String[] strings = classHeader.getStrings();
if (data != null && strings != null) {
Pair<JvmNameResolver, ProtoBuf.Package> readPackageDataFrom = JvmProtoBufUtil.readPackageDataFrom(data, strings);
return new Triple<>(readPackageDataFrom.component1(), readPackageDataFrom.component2(), classHeader.getMetadataVersion());
}
}
return null;
}
});
this.members = ReflectProperties.lazySoft(new Function0<Collection<? extends KCallableImpl<?>>>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$Data$members$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Collection<? extends KCallableImpl<?>> invoke() {
return KPackageImpl.this.getMembers(this.getScope(), KDeclarationContainerImpl.MemberBelonginess.DECLARED);
}
});
}
/* JADX INFO: Access modifiers changed from: private */
/* JADX WARN: Multi-variable type inference failed */
public final ReflectKotlinClass getKotlinClass() {
return (ReflectKotlinClass) this.kotlinClass.getValue(this, $$delegatedProperties[0]);
}
public final Collection<KCallableImpl<?>> getMembers() {
T value = this.members.getValue(this, $$delegatedProperties[2]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (Collection) value;
}
public final Triple<JvmNameResolver, ProtoBuf.Package, JvmMetadataVersion> getMetadata() {
return (Triple) this.metadata.getValue();
}
public final Class<?> getMultifileFacade() {
return (Class) this.multifileFacade.getValue();
}
public final MemberScope getScope() {
T value = this.scope.getValue(this, $$delegatedProperties[1]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (MemberScope) value;
}
}
public KPackageImpl(Class<?> jClass) {
Intrinsics.checkNotNullParameter(jClass, "jClass");
this.jClass = jClass;
this.data = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Data>() { // from class: kotlin.reflect.jvm.internal.KPackageImpl$data$1
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final KPackageImpl.Data invoke() {
return new KPackageImpl.Data();
}
});
}
private final MemberScope getScope() {
return this.data.getValue().getScope();
}
public boolean equals(Object other) {
return (other instanceof KPackageImpl) && Intrinsics.areEqual(getJClass(), ((KPackageImpl) other).getJClass());
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<ConstructorDescriptor> getConstructorDescriptors() {
return CollectionsKt.emptyList();
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<FunctionDescriptor> getFunctions(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
return getScope().getContributedFunctions(name, NoLookupLocation.FROM_REFLECTION);
}
@Override // kotlin.jvm.internal.ClassBasedDeclarationContainer
public Class<?> getJClass() {
return this.jClass;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public PropertyDescriptor getLocalProperty(int index) {
Triple<JvmNameResolver, ProtoBuf.Package, JvmMetadataVersion> metadata = this.data.getValue().getMetadata();
if (metadata != null) {
JvmNameResolver component1 = metadata.component1();
ProtoBuf.Package component2 = metadata.component2();
JvmMetadataVersion component3 = metadata.component3();
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Package, List<ProtoBuf.Property>> packageLocalVariable = JvmProtoBuf.packageLocalVariable;
Intrinsics.checkNotNullExpressionValue(packageLocalVariable, "packageLocalVariable");
ProtoBuf.Property property = (ProtoBuf.Property) ProtoBufUtilKt.getExtensionOrNull(component2, packageLocalVariable, index);
if (property != null) {
Class<?> jClass = getJClass();
ProtoBuf.TypeTable typeTable = component2.getTypeTable();
Intrinsics.checkNotNullExpressionValue(typeTable, "getTypeTable(...)");
return (PropertyDescriptor) UtilKt.deserializeToDescriptor(jClass, property, component1, new TypeTable(typeTable), component3, KPackageImpl$getLocalProperty$1$1$1.INSTANCE);
}
}
return null;
}
@Override // kotlin.reflect.KDeclarationContainer
public Collection<KCallable<?>> getMembers() {
return this.data.getValue().getMembers();
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Class<?> getMethodOwner() {
Class<?> multifileFacade = this.data.getValue().getMultifileFacade();
return multifileFacade == null ? getJClass() : multifileFacade;
}
@Override // kotlin.reflect.jvm.internal.KDeclarationContainerImpl
public Collection<PropertyDescriptor> getProperties(Name name) {
Intrinsics.checkNotNullParameter(name, "name");
return getScope().getContributedVariables(name, NoLookupLocation.FROM_REFLECTION);
}
public int hashCode() {
return getJClass().hashCode();
}
public String toString() {
return "file class " + ReflectClassUtilKt.getClassId(getJClass()).asSingleFqName();
}
}
@@ -0,0 +1,232 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.ArraysKt;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.KotlinReflectionNotSupportedError;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KParameter;
import kotlin.reflect.KProperty;
import kotlin.reflect.KType;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCaller;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.name.Name;
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
@Metadata(d1 = {"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\r\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0004\b\u0000\u0018\u00002\u00020\u0001:\u00013B/\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t¢\u0006\u0002\u0010\u000bJ!\u0010)\u001a\u00020*2\u0012\u0010+\u001a\n\u0012\u0006\b\u0001\u0012\u00020*0,\"\u00020*H\u0002¢\u0006\u0002\u0010-J\u0013\u0010.\u001a\u00020\u001c2\b\u0010/\u001a\u0004\u0018\u000100H\u0096\u0002J\b\u00101\u001a\u00020\u0005H\u0016J\b\u00102\u001a\u00020\"H\u0016R!\u0010\f\u001a\b\u0012\u0004\u0012\u00020\u000e0\r8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0011\u0010\u0012\u001a\u0004\b\u000f\u0010\u0010R\u0015\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u001b\u0010\u0015\u001a\u00020\n8BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\u0018\u0010\u0012\u001a\u0004\b\u0016\u0010\u0017R\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0019\u0010\u001aR\u0014\u0010\u001b\u001a\u00020\u001c8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001b\u0010\u001dR\u0014\u0010\u001e\u001a\u00020\u001c8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001e\u0010\u001dR\u0014\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001f\u0010 R\u0016\u0010!\u001a\u0004\u0018\u00010\"8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b#\u0010$R\u0014\u0010%\u001a\u00020&8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b'\u0010(¨\u00064"}, d2 = {"Lkotlin/reflect/jvm/internal/KParameterImpl;", "Lkotlin/reflect/KParameter;", "callable", "Lkotlin/reflect/jvm/internal/KCallableImpl;", FirebaseAnalytics.Param.INDEX, "", "kind", "Lkotlin/reflect/KParameter$Kind;", "computeDescriptor", "Lkotlin/Function0;", "Lkotlin/reflect/jvm/internal/impl/descriptors/ParameterDescriptor;", "(Lkotlin/reflect/jvm/internal/KCallableImpl;ILkotlin/reflect/KParameter$Kind;Lkotlin/jvm/functions/Function0;)V", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "annotations$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "getCallable", "()Lkotlin/reflect/jvm/internal/KCallableImpl;", "descriptor", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/ParameterDescriptor;", "descriptor$delegate", "getIndex", "()I", "isOptional", "", "()Z", "isVararg", "getKind", "()Lkotlin/reflect/KParameter$Kind;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "type", "Lkotlin/reflect/KType;", "getType", "()Lkotlin/reflect/KType;", "compoundType", "Ljava/lang/reflect/Type;", "types", "", "([Ljava/lang/reflect/Type;)Ljava/lang/reflect/Type;", "equals", "other", "", "hashCode", "toString", "CompoundTypeImpl", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKParameterImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KParameterImpl.kt\nkotlin/reflect/jvm/internal/KParameterImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,107:1\n1#2:108\n*E\n"})
/* loaded from: classes3.dex */
public final class KParameterImpl implements KParameter {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KParameterImpl.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/ParameterDescriptor;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KParameterImpl.class), "annotations", "getAnnotations()Ljava/util/List;"))};
/* renamed from: annotations$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal annotations;
private final KCallableImpl<?> callable;
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal descriptor;
private final int index;
private final KParameter.Kind kind;
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u000e\u0010\u0002\u001a\n\u0012\u0006\b\u0001\u0012\u00020\u00010\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\n\u001a\u00020\u000b2\b\u0010\f\u001a\u0004\u0018\u00010\rH\u0096\u0002J\b\u0010\u000e\u001a\u00020\u000fH\u0016J\b\u0010\u0005\u001a\u00020\u0006H\u0016J\b\u0010\u0010\u001a\u00020\u000fH\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001b\u0010\u0002\u001a\n\u0012\u0006\b\u0001\u0012\u00020\u00010\u0003¢\u0006\n\n\u0002\u0010\t\u001a\u0004\b\u0007\u0010\b¨\u0006\u0011"}, d2 = {"Lkotlin/reflect/jvm/internal/KParameterImpl$CompoundTypeImpl;", "Ljava/lang/reflect/Type;", "types", "", "([Ljava/lang/reflect/Type;)V", "hashCode", "", "getTypes", "()[Ljava/lang/reflect/Type;", "[Ljava/lang/reflect/Type;", "equals", "", "other", "", "getTypeName", "", "toString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class CompoundTypeImpl implements Type {
private final int hashCode;
private final Type[] types;
public CompoundTypeImpl(Type[] types) {
Intrinsics.checkNotNullParameter(types, "types");
this.types = types;
this.hashCode = Arrays.hashCode(types);
}
public boolean equals(Object other) {
return (other instanceof CompoundTypeImpl) && Arrays.equals(this.types, ((CompoundTypeImpl) other).types);
}
@Override // java.lang.reflect.Type
public String getTypeName() {
String joinToString$default;
joinToString$default = ArraysKt___ArraysKt.joinToString$default(this.types, ", ", "[", "]", 0, (CharSequence) null, (Function1) null, 56, (Object) null);
return joinToString$default;
}
/* renamed from: hashCode, reason: from getter */
public int getHashCode() {
return this.hashCode;
}
public String toString() {
return getTypeName();
}
}
public KParameterImpl(KCallableImpl<?> callable, int i, KParameter.Kind kind, Function0<? extends ParameterDescriptor> computeDescriptor) {
Intrinsics.checkNotNullParameter(callable, "callable");
Intrinsics.checkNotNullParameter(kind, "kind");
Intrinsics.checkNotNullParameter(computeDescriptor, "computeDescriptor");
this.callable = callable;
this.index = i;
this.kind = kind;
this.descriptor = ReflectProperties.lazySoft(computeDescriptor);
this.annotations = ReflectProperties.lazySoft(new Function0<List<? extends Annotation>>() { // from class: kotlin.reflect.jvm.internal.KParameterImpl$annotations$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends Annotation> invoke() {
ParameterDescriptor descriptor;
descriptor = KParameterImpl.this.getDescriptor();
return UtilKt.computeAnnotations(descriptor);
}
});
}
/* JADX INFO: Access modifiers changed from: private */
public final Type compoundType(Type... types) {
int length = types.length;
if (length != 0) {
return length != 1 ? new CompoundTypeImpl(types) : (Type) ArraysKt.single(types);
}
throw new KotlinReflectionNotSupportedError("Expected at least 1 type for compound type");
}
/* JADX INFO: Access modifiers changed from: private */
public final ParameterDescriptor getDescriptor() {
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (ParameterDescriptor) value;
}
public boolean equals(Object other) {
if (!(other instanceof KParameterImpl)) {
return false;
}
KParameterImpl kParameterImpl = (KParameterImpl) other;
return Intrinsics.areEqual(this.callable, kParameterImpl.callable) && getIndex() == kParameterImpl.getIndex();
}
@Override // kotlin.reflect.KAnnotatedElement
public List<Annotation> getAnnotations() {
T value = this.annotations.getValue(this, $$delegatedProperties[1]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
public final KCallableImpl<?> getCallable() {
return this.callable;
}
@Override // kotlin.reflect.KParameter
public int getIndex() {
return this.index;
}
@Override // kotlin.reflect.KParameter
public KParameter.Kind getKind() {
return this.kind;
}
@Override // kotlin.reflect.KParameter
public String getName() {
ParameterDescriptor descriptor = getDescriptor();
ValueParameterDescriptor valueParameterDescriptor = descriptor instanceof ValueParameterDescriptor ? (ValueParameterDescriptor) descriptor : null;
if (valueParameterDescriptor == null || valueParameterDescriptor.getContainingDeclaration().hasSynthesizedParameterNames()) {
return null;
}
Name name = valueParameterDescriptor.getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
if (name.isSpecial()) {
return null;
}
return name.asString();
}
@Override // kotlin.reflect.KParameter
public KType getType() {
KotlinType type = getDescriptor().getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
return new KTypeImpl(type, new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KParameterImpl$type$1
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
ParameterDescriptor descriptor;
Type compoundType;
Type compoundType2;
descriptor = KParameterImpl.this.getDescriptor();
if ((descriptor instanceof ReceiverParameterDescriptor) && Intrinsics.areEqual(UtilKt.getInstanceReceiverParameter(KParameterImpl.this.getCallable().getDescriptor()), descriptor) && KParameterImpl.this.getCallable().getDescriptor().getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE) {
DeclarationDescriptor containingDeclaration = KParameterImpl.this.getCallable().getDescriptor().getContainingDeclaration();
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
Class<?> javaClass = UtilKt.toJavaClass((ClassDescriptor) containingDeclaration);
if (javaClass != null) {
return javaClass;
}
throw new KotlinReflectionInternalError("Cannot determine receiver Java type of inherited declaration: " + descriptor);
}
Caller<?> caller = KParameterImpl.this.getCallable().getCaller();
if (caller instanceof ValueClassAwareCaller) {
List slice = CollectionsKt.slice((List) caller.getParameterTypes(), ((ValueClassAwareCaller) caller).getRealSlicesOfParameters(KParameterImpl.this.getIndex()));
KParameterImpl kParameterImpl = KParameterImpl.this;
Type[] typeArr = (Type[]) slice.toArray(new Type[0]);
compoundType2 = kParameterImpl.compoundType((Type[]) Arrays.copyOf(typeArr, typeArr.length));
return compoundType2;
}
if (caller instanceof ValueClassAwareCaller.MultiFieldValueClassPrimaryConstructorCaller) {
KParameterImpl kParameterImpl2 = KParameterImpl.this;
Class[] clsArr = (Class[]) ((ValueClassAwareCaller.MultiFieldValueClassPrimaryConstructorCaller) caller).getOriginalParametersGroups().get(KParameterImpl.this.getIndex()).toArray(new Class[0]);
compoundType = kParameterImpl2.compoundType((Type[]) Arrays.copyOf(clsArr, clsArr.length));
return compoundType;
}
return caller.getParameterTypes().get(KParameterImpl.this.getIndex());
}
});
}
public int hashCode() {
return Integer.hashCode(getIndex()) + (this.callable.hashCode() * 31);
}
@Override // kotlin.reflect.KParameter
public boolean isOptional() {
ParameterDescriptor descriptor = getDescriptor();
ValueParameterDescriptor valueParameterDescriptor = descriptor instanceof ValueParameterDescriptor ? (ValueParameterDescriptor) descriptor : null;
if (valueParameterDescriptor != null) {
return DescriptorUtilsKt.declaresOrInheritsDefaultValue(valueParameterDescriptor);
}
return false;
}
@Override // kotlin.reflect.KParameter
public boolean isVararg() {
ParameterDescriptor descriptor = getDescriptor();
return (descriptor instanceof ValueParameterDescriptor) && ((ValueParameterDescriptor) descriptor).getVarargElementType() != null;
}
public String toString() {
return ReflectionObjectRenderer.INSTANCE.renderParameter(this);
}
}
@@ -0,0 +1,141 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KProperty0;
import kotlin.reflect.jvm.internal.KProperty0Impl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\n\b\u0010\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0001\u001aB\u0017\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB)\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\t\u001a\u00020\n\u0012\u0006\u0010\u000b\u001a\u00020\n\u0012\b\u0010\f\u001a\u0004\u0018\u00010\r¢\u0006\u0002\u0010\u000eJ\r\u0010\u0016\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u0017J\n\u0010\u0018\u001a\u0004\u0018\u00010\rH\u0016J\u000e\u0010\u0019\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u0017R\u001a\u0010\u000f\u001a\u000e\u0012\n\u0012\b\u0012\u0004\u0012\u00028\u00000\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0012\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\r0\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0013\u001a\b\u0012\u0004\u0012\u00028\u00000\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u001b"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty0Impl;", "V", "Lkotlin/reflect/KProperty0;", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "_getter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KProperty0Impl$Getter;", "delegateValue", "getter", "getGetter", "()Lkotlin/reflect/jvm/internal/KProperty0Impl$Getter;", "get", "()Ljava/lang/Object;", "getDelegate", "invoke", "Getter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public class KProperty0Impl<V> extends KPropertyImpl<V> implements KProperty0<V> {
private final Lazy<Getter<V>> _getter;
private final Lazy<Object> delegateValue;
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0013\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005¢\u0006\u0002\u0010\u0006J\u000e\u0010\t\u001a\u00028\u0001H\u0096\u0002¢\u0006\u0002\u0010\nR\u001a\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00010\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\b¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty0Impl$Getter;", "R", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "Lkotlin/reflect/KProperty0$Getter;", "property", "Lkotlin/reflect/jvm/internal/KProperty0Impl;", "(Lkotlin/reflect/jvm/internal/KProperty0Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KProperty0Impl;", "invoke", "()Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Getter<R> extends KPropertyImpl.Getter<R> implements KProperty0.Getter<R> {
private final KProperty0Impl<R> property;
/* JADX WARN: Multi-variable type inference failed */
public Getter(KProperty0Impl<? extends R> property) {
Intrinsics.checkNotNullParameter(property, "property");
this.property = property;
}
@Override // kotlin.jvm.functions.Function0
public R invoke() {
return getProperty().get();
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
public KProperty0Impl<R> getProperty() {
return this.property;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KProperty0Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
super(container, descriptor);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$_getter$1
final /* synthetic */ KProperty0Impl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KProperty0Impl.Getter<V> invoke() {
return new KProperty0Impl.Getter<>(this.this$0);
}
});
this.delegateValue = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Object>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$delegateValue$1
final /* synthetic */ KProperty0Impl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Object invoke() {
KPropertyImpl kPropertyImpl = this.this$0;
return kPropertyImpl.getDelegateImpl(kPropertyImpl.computeDelegateSource(), null, null);
}
});
}
@Override // kotlin.reflect.KProperty0
public V get() {
return getGetter().call(new Object[0]);
}
@Override // kotlin.reflect.KProperty0
public Object getDelegate() {
return this.delegateValue.getValue();
}
@Override // kotlin.jvm.functions.Function0
public V invoke() {
return get();
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KProperty0Impl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
super(container, name, signature, obj);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$_getter$1
final /* synthetic */ KProperty0Impl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KProperty0Impl.Getter<V> invoke() {
return new KProperty0Impl.Getter<>(this.this$0);
}
});
this.delegateValue = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Object>(this) { // from class: kotlin.reflect.jvm.internal.KProperty0Impl$delegateValue$1
final /* synthetic */ KProperty0Impl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Object invoke() {
KPropertyImpl kPropertyImpl = this.this$0;
return kPropertyImpl.getDelegateImpl(kPropertyImpl.computeDelegateSource(), null, null);
}
});
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl, kotlin.reflect.KProperty
public Getter<V> getGetter() {
return this._getter.getValue();
}
}
@@ -0,0 +1,140 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.lang.reflect.Member;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KProperty1;
import kotlin.reflect.jvm.internal.KProperty1Impl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\n\b\u0010\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0006\b\u0001\u0010\u0002 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u00032\b\u0012\u0004\u0012\u0002H\u00020\u0004:\u0001\u001dB)\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\u0006\u0010\t\u001a\u00020\b\u0012\b\u0010\n\u001a\u0004\u0018\u00010\u000b¢\u0006\u0002\u0010\fB\u0017\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\r\u001a\u00020\u000e¢\u0006\u0002\u0010\u000fJ\u0015\u0010\u0018\u001a\u00028\u00012\u0006\u0010\u0019\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u001aJ\u0017\u0010\u001b\u001a\u0004\u0018\u00010\u000b2\u0006\u0010\u0019\u001a\u00028\u0000H\u0016¢\u0006\u0002\u0010\u001aJ\u0016\u0010\u001c\u001a\u00028\u00012\u0006\u0010\u0019\u001a\u00028\u0000H\u0096\u0002¢\u0006\u0002\u0010\u001aR \u0010\u0010\u001a\u0014\u0012\u0010\u0012\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00120\u0011X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0013\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00140\u0011X\u0082\u0004¢\u0006\u0002\n\u0000R \u0010\u0015\u001a\u000e\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u00010\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0017¨\u0006\u001e"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty1Impl;", "T", "V", "Lkotlin/reflect/KProperty1;", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "_getter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KProperty1Impl$Getter;", "delegateSource", "Ljava/lang/reflect/Member;", "getter", "getGetter", "()Lkotlin/reflect/jvm/internal/KProperty1Impl$Getter;", "get", "receiver", "(Ljava/lang/Object;)Ljava/lang/Object;", "getDelegate", "invoke", "Getter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public class KProperty1Impl<T, V> extends KPropertyImpl<V> implements KProperty1<T, V> {
private final Lazy<Getter<T, V>> _getter;
private final Lazy<Member> delegateSource;
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000*\u0004\b\u0002\u0010\u0001*\u0006\b\u0003\u0010\u0002 \u00012\b\u0012\u0004\u0012\u0002H\u00020\u00032\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00020\u0004B\u0019\u0012\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0002\u0012\u0004\u0012\u00028\u00030\u0006¢\u0006\u0002\u0010\u0007J\u0016\u0010\n\u001a\u00028\u00032\u0006\u0010\u000b\u001a\u00028\u0002H\u0096\u0002¢\u0006\u0002\u0010\fR \u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00028\u0002\u0012\u0004\u0012\u00028\u00030\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty1Impl$Getter;", "T", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "Lkotlin/reflect/KProperty1$Getter;", "property", "Lkotlin/reflect/jvm/internal/KProperty1Impl;", "(Lkotlin/reflect/jvm/internal/KProperty1Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KProperty1Impl;", "invoke", "receiver", "(Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Getter<T, V> extends KPropertyImpl.Getter<V> implements KProperty1.Getter<T, V> {
private final KProperty1Impl<T, V> property;
/* JADX WARN: Multi-variable type inference failed */
public Getter(KProperty1Impl<T, ? extends V> property) {
Intrinsics.checkNotNullParameter(property, "property");
this.property = property;
}
@Override // kotlin.jvm.functions.Function1
public V invoke(T receiver) {
return getProperty().get(receiver);
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
public KProperty1Impl<T, V> getProperty() {
return this.property;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KProperty1Impl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
super(container, name, signature, obj);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<T, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$_getter$1
final /* synthetic */ KProperty1Impl<T, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KProperty1Impl.Getter<T, V> invoke() {
return new KProperty1Impl.Getter<>(this.this$0);
}
});
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$delegateSource$1
final /* synthetic */ KProperty1Impl<T, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Member invoke() {
return this.this$0.computeDelegateSource();
}
});
}
@Override // kotlin.reflect.KProperty1
public V get(T receiver) {
return getGetter().call(receiver);
}
@Override // kotlin.reflect.KProperty1
public Object getDelegate(T receiver) {
return getDelegateImpl(this.delegateSource.getValue(), receiver, null);
}
@Override // kotlin.jvm.functions.Function1
public V invoke(T receiver) {
return get(receiver);
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KProperty1Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
super(container, descriptor);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<T, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$_getter$1
final /* synthetic */ KProperty1Impl<T, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KProperty1Impl.Getter<T, V> invoke() {
return new KProperty1Impl.Getter<>(this.this$0);
}
});
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty1Impl$delegateSource$1
final /* synthetic */ KProperty1Impl<T, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Member invoke() {
return this.this$0.computeDelegateSource();
}
});
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl, kotlin.reflect.KProperty
public Getter<T, V> getGetter() {
return this._getter.getValue();
}
}
@@ -0,0 +1,141 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.lang.reflect.Member;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.CallableReference;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KProperty2;
import kotlin.reflect.jvm.internal.KProperty2Impl;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0000\n\u0002\b\u0003\b\u0010\u0018\u0000*\u0004\b\u0000\u0010\u0001*\u0004\b\u0001\u0010\u0002*\u0006\b\u0002\u0010\u0003 \u00012\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u00042\b\u0012\u0004\u0012\u0002H\u00030\u0005:\u0001\u001eB\u001f\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\t¢\u0006\u0002\u0010\u000bB\u0017\b\u0016\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eJ\u001d\u0010\u0017\u001a\u00028\u00022\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001aJ\u001f\u0010\u001b\u001a\u0004\u0018\u00010\u001c2\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0016¢\u0006\u0002\u0010\u001aJ\u001e\u0010\u001d\u001a\u00028\u00022\u0006\u0010\u0018\u001a\u00028\u00002\u0006\u0010\u0019\u001a\u00028\u0001H\u0096\u0002¢\u0006\u0002\u0010\u001aR&\u0010\u000f\u001a\u001a\u0012\u0016\u0012\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00110\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0012\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00130\u0010X\u0082\u0004¢\u0006\u0002\n\u0000R&\u0010\u0014\u001a\u0014\u0012\u0004\u0012\u00028\u0000\u0012\u0004\u0012\u00028\u0001\u0012\u0004\u0012\u00028\u00020\u00118VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u0016¨\u0006\u001f"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty2Impl;", "D", "E", "V", "Lkotlin/reflect/KProperty2;", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "_getter", "Lkotlin/Lazy;", "Lkotlin/reflect/jvm/internal/KProperty2Impl$Getter;", "delegateSource", "Ljava/lang/reflect/Member;", "getter", "getGetter", "()Lkotlin/reflect/jvm/internal/KProperty2Impl$Getter;", "get", "receiver1", "receiver2", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "getDelegate", "", "invoke", "Getter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public class KProperty2Impl<D, E, V> extends KPropertyImpl<V> implements KProperty2<D, E, V> {
private final Lazy<Getter<D, E, V>> _getter;
private final Lazy<Member> delegateSource;
@Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\u0018\u0000*\u0004\b\u0003\u0010\u0001*\u0004\b\u0004\u0010\u0002*\u0006\b\u0005\u0010\u0003 \u00012\b\u0012\u0004\u0012\u0002H\u00030\u00042\u0014\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u0002\u0012\u0004\u0012\u0002H\u00030\u0005B\u001f\u0012\u0018\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007¢\u0006\u0002\u0010\bJ\u001e\u0010\u000b\u001a\u00028\u00052\u0006\u0010\f\u001a\u00028\u00032\u0006\u0010\r\u001a\u00028\u0004H\u0096\u0002¢\u0006\u0002\u0010\u000eR&\u0010\u0006\u001a\u0014\u0012\u0004\u0012\u00028\u0003\u0012\u0004\u0012\u00028\u0004\u0012\u0004\u0012\u00028\u00050\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u000f"}, d2 = {"Lkotlin/reflect/jvm/internal/KProperty2Impl$Getter;", "D", "E", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "Lkotlin/reflect/KProperty2$Getter;", "property", "Lkotlin/reflect/jvm/internal/KProperty2Impl;", "(Lkotlin/reflect/jvm/internal/KProperty2Impl;)V", "getProperty", "()Lkotlin/reflect/jvm/internal/KProperty2Impl;", "invoke", "receiver1", "receiver2", "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Getter<D, E, V> extends KPropertyImpl.Getter<V> implements KProperty2.Getter<D, E, V> {
private final KProperty2Impl<D, E, V> property;
/* JADX WARN: Multi-variable type inference failed */
public Getter(KProperty2Impl<D, E, ? extends V> property) {
Intrinsics.checkNotNullParameter(property, "property");
this.property = property;
}
@Override // kotlin.jvm.functions.Function2
public V invoke(D receiver1, E receiver2) {
return getProperty().get(receiver1, receiver2);
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.KProperty.Accessor
public KProperty2Impl<D, E, V> getProperty() {
return this.property;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KProperty2Impl(KDeclarationContainerImpl container, String name, String signature) {
super(container, name, signature, CallableReference.NO_RECEIVER);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<D, E, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$_getter$1
final /* synthetic */ KProperty2Impl<D, E, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KProperty2Impl.Getter<D, E, V> invoke() {
return new KProperty2Impl.Getter<>(this.this$0);
}
});
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$delegateSource$1
final /* synthetic */ KProperty2Impl<D, E, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Member invoke() {
return this.this$0.computeDelegateSource();
}
});
}
@Override // kotlin.reflect.KProperty2
public V get(D receiver1, E receiver2) {
return getGetter().call(receiver1, receiver2);
}
@Override // kotlin.reflect.KProperty2
public Object getDelegate(D receiver1, E receiver2) {
return getDelegateImpl(this.delegateSource.getValue(), receiver1, receiver2);
}
@Override // kotlin.jvm.functions.Function2
public V invoke(D receiver1, E receiver2) {
return get(receiver1, receiver2);
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl, kotlin.reflect.KProperty
public Getter<D, E, V> getGetter() {
return this._getter.getValue();
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KProperty2Impl(KDeclarationContainerImpl container, PropertyDescriptor descriptor) {
super(container, descriptor);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
this._getter = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Getter<D, E, ? extends V>>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$_getter$1
final /* synthetic */ KProperty2Impl<D, E, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final KProperty2Impl.Getter<D, E, V> invoke() {
return new KProperty2Impl.Getter<>(this.this$0);
}
});
this.delegateSource = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<Member>(this) { // from class: kotlin.reflect.jvm.internal.KProperty2Impl$delegateSource$1
final /* synthetic */ KProperty2Impl<D, E, V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Member invoke() {
return this.this$0.computeDelegateSource();
}
});
}
}
@@ -0,0 +1,523 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.lang.reflect.AccessibleObject;
import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.CallableReference;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KFunction;
import kotlin.reflect.KMutableProperty;
import kotlin.reflect.KProperty;
import kotlin.reflect.full.IllegalPropertyDelegateAccessException;
import kotlin.reflect.jvm.KCallablesJvm;
import kotlin.reflect.jvm.internal.JvmPropertySignature;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.calls.ValueClassAwareCallerKt;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyAccessorDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyGetterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertySetterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
import kotlin.reflect.jvm.internal.impl.load.java.DescriptorsJvmAbiUtil;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorFactory;
import kotlin.text.Typography;
@Metadata(d1 = {"\u0000j\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u000b\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\b\n\u0002\b\u0006\b \u0018\u0000 @*\u0006\b\u0000\u0010\u0001 \u00012\b\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\u0004?@ABB)\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007\u0012\b\u0010\t\u001a\u0004\u0018\u00010\n¢\u0006\u0002\u0010\u000bB\u0017\b\u0016\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eB3\b\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007\u0012\u0006\u0010\b\u001a\u00020\u0007\u0012\b\u0010\u000f\u001a\u0004\u0018\u00010\r\u0012\b\u0010\u0010\u001a\u0004\u0018\u00010\n¢\u0006\u0002\u0010\u0011J\n\u00104\u001a\u0004\u0018\u000105H\u0004J\u0013\u00106\u001a\u00020)2\b\u00107\u001a\u0004\u0018\u00010\nH\u0096\u0002J(\u00108\u001a\u0004\u0018\u00010\n2\b\u00109\u001a\u0004\u0018\u0001052\b\u0010:\u001a\u0004\u0018\u00010\n2\b\u0010;\u001a\u0004\u0018\u00010\nH\u0004J\b\u0010<\u001a\u00020=H\u0016J\b\u0010>\u001a\u00020\u0007H\u0016R\u001c\u0010\u0012\u001a\u0010\u0012\f\u0012\n \u0014*\u0004\u0018\u00010\r0\r0\u0013X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0015\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00170\u0016X\u0082\u0004¢\u0006\u0002\n\u0000R\u0013\u0010\t\u001a\u0004\u0018\u00010\n8F¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0019R\u0018\u0010\u001a\u001a\u0006\u0012\u0002\b\u00030\u001b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001dR\u0014\u0010\u0004\u001a\u00020\u0005X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001fR\u001a\u0010 \u001a\b\u0012\u0002\b\u0003\u0018\u00010\u001b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b!\u0010\u001dR\u0014\u0010\f\u001a\u00020\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\"\u0010#R\u0018\u0010$\u001a\b\u0012\u0004\u0012\u00028\u00000%X¦\u0004¢\u0006\u0006\u001a\u0004\b&\u0010'R\u0014\u0010(\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b(\u0010*R\u0014\u0010+\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b+\u0010*R\u0014\u0010,\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b,\u0010*R\u0014\u0010-\u001a\u00020)8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b-\u0010*R\u0013\u0010.\u001a\u0004\u0018\u00010\u00178F¢\u0006\u0006\u001a\u0004\b/\u00100R\u0014\u0010\u0006\u001a\u00020\u0007X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b1\u00102R\u0010\u0010\u0010\u001a\u0004\u0018\u00010\nX\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\b\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b3\u00102¨\u0006C"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl;", "V", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "Lkotlin/reflect/KProperty;", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "signature", "boundReceiver", "", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Ljava/lang/Object;)V", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;)V", "descriptorInitialValue", "rawBoundReceiver", "(Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;Ljava/lang/String;Ljava/lang/String;Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;Ljava/lang/Object;)V", "_descriptor", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "kotlin.jvm.PlatformType", "_javaField", "Lkotlin/Lazy;", "Ljava/lang/reflect/Field;", "getBoundReceiver", "()Ljava/lang/Object;", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "getContainer", "()Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "defaultCaller", "getDefaultCaller", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyDescriptor;", "getter", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "getGetter", "()Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "isBound", "", "()Z", "isConst", "isLateinit", "isSuspend", "javaField", "getJavaField", "()Ljava/lang/reflect/Field;", "getName", "()Ljava/lang/String;", "getSignature", "computeDelegateSource", "Ljava/lang/reflect/Member;", "equals", "other", "getDelegateImpl", "fieldOrMethod", "receiver1", "receiver2", "hashCode", "", "toString", "Accessor", "Companion", "Getter", "Setter", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKPropertyImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KPropertyImpl.kt\nkotlin/reflect/jvm/internal/KPropertyImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,334:1\n1#2:335\n*E\n"})
/* loaded from: classes3.dex */
public abstract class KPropertyImpl<V> extends KCallableImpl<V> implements KProperty<V> {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private static final Object EXTENSION_PROPERTY_DELEGATE = new Object();
private final ReflectProperties.LazySoftVal<PropertyDescriptor> _descriptor;
private final Lazy<Field> _javaField;
private final KDeclarationContainerImpl container;
private final String name;
private final Object rawBoundReceiver;
private final String signature;
@Metadata(d1 = {"\u0000@\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\b&\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u0001*\u0006\b\u0002\u0010\u0002 \u00012\b\u0012\u0004\u0012\u0002H\u00020\u00032\b\u0012\u0004\u0012\u0002H\u00010\u00042\b\u0012\u0004\u0012\u0002H\u00020\u0005B\u0005¢\u0006\u0002\u0010\u0006R\u0014\u0010\u0007\u001a\u00020\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u001a\u0010\u000b\u001a\b\u0012\u0002\b\u0003\u0018\u00010\f8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0012\u0010\u000f\u001a\u00020\u0010X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u0014\u0010\u0013\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0015R\u0014\u0010\u0016\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u0015R\u0014\u0010\u0017\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0015R\u0014\u0010\u0018\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0015R\u0014\u0010\u0019\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0019\u0010\u0015R\u0014\u0010\u001a\u001a\u00020\u00148VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u0015R\u0018\u0010\u001b\u001a\b\u0012\u0004\u0012\u00028\u00010\u001cX¦\u0004¢\u0006\u0006\u001a\u0004\b\u001d\u0010\u001e¨\u0006\u001f"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "PropertyType", "ReturnType", "Lkotlin/reflect/jvm/internal/KCallableImpl;", "Lkotlin/reflect/KProperty$Accessor;", "Lkotlin/reflect/KFunction;", "()V", "container", "Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "getContainer", "()Lkotlin/reflect/jvm/internal/KDeclarationContainerImpl;", "defaultCaller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getDefaultCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyAccessorDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyAccessorDescriptor;", "isBound", "", "()Z", "isExternal", "isInfix", "isInline", "isOperator", "isSuspend", "property", "Lkotlin/reflect/jvm/internal/KPropertyImpl;", "getProperty", "()Lkotlin/reflect/jvm/internal/KPropertyImpl;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static abstract class Accessor<PropertyType, ReturnType> extends KCallableImpl<ReturnType> implements KFunction<ReturnType>, KProperty.Accessor<PropertyType> {
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public KDeclarationContainerImpl getContainer() {
return getProperty().getContainer();
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getDefaultCaller() {
return null;
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public abstract PropertyAccessorDescriptor getDescriptor();
public abstract KPropertyImpl<PropertyType> getProperty();
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public boolean isBound() {
return getProperty().isBound();
}
@Override // kotlin.reflect.KFunction
public boolean isExternal() {
return getDescriptor().isExternal();
}
@Override // kotlin.reflect.KFunction
public boolean isInfix() {
return getDescriptor().isInfix();
}
@Override // kotlin.reflect.KFunction
public boolean isInline() {
return getDescriptor().isInline();
}
@Override // kotlin.reflect.KFunction
public boolean isOperator() {
return getDescriptor().isOperator();
}
@Override // kotlin.reflect.KCallable
public boolean isSuspend() {
return getDescriptor().isSuspend();
}
}
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0001¢\u0006\b\n\u0000\u001a\u0004\b\u0004\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Companion;", "", "()V", "EXTENSION_PROPERTY_DELEGATE", "getEXTENSION_PROPERTY_DELEGATE", "()Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
public final Object getEXTENSION_PROPERTY_DELEGATE() {
return KPropertyImpl.EXTENSION_PROPERTY_DELEGATE;
}
private Companion() {
}
}
private KPropertyImpl(KDeclarationContainerImpl kDeclarationContainerImpl, String str, String str2, PropertyDescriptor propertyDescriptor, Object obj) {
this.container = kDeclarationContainerImpl;
this.name = str;
this.signature = str2;
this.rawBoundReceiver = obj;
this._javaField = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Field>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$_javaField$1
final /* synthetic */ KPropertyImpl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Field invoke() {
Class<?> enclosingClass;
JvmPropertySignature mapPropertySignature = RuntimeTypeMapper.INSTANCE.mapPropertySignature(this.this$0.getDescriptor());
if (mapPropertySignature instanceof JvmPropertySignature.KotlinProperty) {
JvmPropertySignature.KotlinProperty kotlinProperty = (JvmPropertySignature.KotlinProperty) mapPropertySignature;
PropertyDescriptor descriptor = kotlinProperty.getDescriptor();
JvmMemberSignature.Field jvmFieldSignature$default = JvmProtoBufUtil.getJvmFieldSignature$default(JvmProtoBufUtil.INSTANCE, kotlinProperty.getProto(), kotlinProperty.getNameResolver(), kotlinProperty.getTypeTable(), false, 8, null);
if (jvmFieldSignature$default == null) {
return null;
}
KCallableImpl kCallableImpl = this.this$0;
if (!DescriptorsJvmAbiUtil.isPropertyWithBackingFieldInOuterClass(descriptor) && !JvmProtoBufUtil.isMovedFromInterfaceCompanion(kotlinProperty.getProto())) {
DeclarationDescriptor containingDeclaration = descriptor.getContainingDeclaration();
enclosingClass = containingDeclaration instanceof ClassDescriptor ? UtilKt.toJavaClass((ClassDescriptor) containingDeclaration) : kCallableImpl.getContainer().getJClass();
} else {
enclosingClass = kCallableImpl.getContainer().getJClass().getEnclosingClass();
}
if (enclosingClass == null) {
return null;
}
try {
return enclosingClass.getDeclaredField(jvmFieldSignature$default.getName());
} catch (NoSuchFieldException unused) {
return null;
}
}
if (mapPropertySignature instanceof JvmPropertySignature.JavaField) {
return ((JvmPropertySignature.JavaField) mapPropertySignature).getField();
}
if ((mapPropertySignature instanceof JvmPropertySignature.JavaMethodProperty) || (mapPropertySignature instanceof JvmPropertySignature.MappedKotlinProperty)) {
return null;
}
throw new NoWhenBranchMatchedException();
}
});
ReflectProperties.LazySoftVal<PropertyDescriptor> lazySoft = ReflectProperties.lazySoft(propertyDescriptor, new Function0<PropertyDescriptor>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$_descriptor$1
final /* synthetic */ KPropertyImpl<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final PropertyDescriptor invoke() {
return this.this$0.getContainer().findPropertyDescriptor(this.this$0.getName(), this.this$0.getSignature());
}
});
Intrinsics.checkNotNullExpressionValue(lazySoft, "lazySoft(...)");
this._descriptor = lazySoft;
}
public final Member computeDelegateSource() {
if (!getDescriptor().isDelegated()) {
return null;
}
JvmPropertySignature mapPropertySignature = RuntimeTypeMapper.INSTANCE.mapPropertySignature(getDescriptor());
if (mapPropertySignature instanceof JvmPropertySignature.KotlinProperty) {
JvmPropertySignature.KotlinProperty kotlinProperty = (JvmPropertySignature.KotlinProperty) mapPropertySignature;
if (kotlinProperty.getSignature().hasDelegateMethod()) {
JvmProtoBuf.JvmMethodSignature delegateMethod = kotlinProperty.getSignature().getDelegateMethod();
if (!delegateMethod.hasName() || !delegateMethod.hasDesc()) {
return null;
}
return getContainer().findMethodBySignature(kotlinProperty.getNameResolver().getString(delegateMethod.getName()), kotlinProperty.getNameResolver().getString(delegateMethod.getDesc()));
}
}
return getJavaField();
}
public boolean equals(Object other) {
KPropertyImpl<?> asKPropertyImpl = UtilKt.asKPropertyImpl(other);
return asKPropertyImpl != null && Intrinsics.areEqual(getContainer(), asKPropertyImpl.getContainer()) && Intrinsics.areEqual(getName(), asKPropertyImpl.getName()) && Intrinsics.areEqual(this.signature, asKPropertyImpl.signature) && Intrinsics.areEqual(this.rawBoundReceiver, asKPropertyImpl.rawBoundReceiver);
}
public final Object getBoundReceiver() {
return ValueClassAwareCallerKt.coerceToExpectedReceiverType(this.rawBoundReceiver, getDescriptor());
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getCaller() {
return getGetter().getCaller();
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public KDeclarationContainerImpl getContainer() {
return this.container;
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getDefaultCaller() {
return getGetter().getDefaultCaller();
}
/* JADX WARN: Multi-variable type inference failed */
public final Object getDelegateImpl(Member fieldOrMethod, Object receiver1, Object receiver2) {
try {
Object obj = EXTENSION_PROPERTY_DELEGATE;
if ((receiver1 == obj || receiver2 == obj) && getDescriptor().getExtensionReceiverParameter() == null) {
throw new RuntimeException("'" + this + "' is not an extension property and thus getExtensionDelegate() is not going to work, use getDelegate() instead");
}
Object boundReceiver = isBound() ? getBoundReceiver() : receiver1;
if (boundReceiver == obj) {
boundReceiver = null;
}
if (!isBound()) {
receiver1 = receiver2;
}
if (receiver1 == obj) {
receiver1 = null;
}
AccessibleObject accessibleObject = fieldOrMethod instanceof AccessibleObject ? (AccessibleObject) fieldOrMethod : null;
if (accessibleObject != null) {
accessibleObject.setAccessible(KCallablesJvm.isAccessible(this));
}
if (fieldOrMethod == 0) {
return null;
}
if (fieldOrMethod instanceof Field) {
return ((Field) fieldOrMethod).get(boundReceiver);
}
if (!(fieldOrMethod instanceof Method)) {
throw new AssertionError("delegate field/method " + fieldOrMethod + " neither field nor method");
}
int length = ((Method) fieldOrMethod).getParameterTypes().length;
if (length == 0) {
return ((Method) fieldOrMethod).invoke(null, new Object[0]);
}
if (length == 1) {
Method method = (Method) fieldOrMethod;
if (boundReceiver == null) {
Class<?> cls = ((Method) fieldOrMethod).getParameterTypes()[0];
Intrinsics.checkNotNullExpressionValue(cls, "get(...)");
boundReceiver = UtilKt.defaultPrimitiveValue(cls);
}
return method.invoke(null, boundReceiver);
}
if (length != 2) {
throw new AssertionError("delegate method " + fieldOrMethod + " should take 0, 1, or 2 parameters");
}
Method method2 = (Method) fieldOrMethod;
if (receiver1 == null) {
Class<?> cls2 = ((Method) fieldOrMethod).getParameterTypes()[1];
Intrinsics.checkNotNullExpressionValue(cls2, "get(...)");
receiver1 = UtilKt.defaultPrimitiveValue(cls2);
}
return method2.invoke(null, boundReceiver, receiver1);
} catch (IllegalAccessException e4) {
throw new IllegalPropertyDelegateAccessException(e4);
}
}
public abstract Getter<V> getGetter();
public final Field getJavaField() {
return this._javaField.getValue();
}
@Override // kotlin.reflect.KCallable
public String getName() {
return this.name;
}
public final String getSignature() {
return this.signature;
}
public int hashCode() {
return this.signature.hashCode() + ((getName().hashCode() + (getContainer().hashCode() * 31)) * 31);
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public boolean isBound() {
return !Intrinsics.areEqual(this.rawBoundReceiver, CallableReference.NO_RECEIVER);
}
@Override // kotlin.reflect.KProperty
public boolean isConst() {
return getDescriptor().isConst();
}
@Override // kotlin.reflect.KProperty
public boolean isLateinit() {
return getDescriptor().isLateInit();
}
@Override // kotlin.reflect.KCallable
public boolean isSuspend() {
return false;
}
public String toString() {
return ReflectionObjectRenderer.INSTANCE.renderProperty(getDescriptor());
}
@Metadata(d1 = {"\u0000>\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b&\u0018\u0000*\u0006\b\u0001\u0010\u0001 \u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u0002H\u00010\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003B\u0005¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0015\u001a\u00020\u00162\b\u0010\u0017\u001a\u0004\u0018\u00010\u0018H\u0096\u0002J\b\u0010\u0019\u001a\u00020\u001aH\u0016J\b\u0010\u001b\u001a\u00020\u0012H\u0016R\u001f\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u00068VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u0007\u0010\bR\u001b\u0010\u000b\u001a\u00020\f8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u000f\u0010\u0010\u001a\u0004\b\r\u0010\u000eR\u0014\u0010\u0011\u001a\u00020\u00128VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Getter;", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "Lkotlin/reflect/KProperty$Getter;", "()V", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "caller$delegate", "Lkotlin/Lazy;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyGetterDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertyGetterDescriptor;", "descriptor$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "equals", "", "other", "", "hashCode", "", "toString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static abstract class Getter<V> extends Accessor<V, V> implements KProperty.Getter<V> {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Getter.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/PropertyGetterDescriptor;"))};
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal descriptor = ReflectProperties.lazySoft(new Function0<PropertyGetterDescriptor>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Getter$descriptor$2
final /* synthetic */ KPropertyImpl.Getter<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final PropertyGetterDescriptor invoke() {
PropertyGetterDescriptor getter = this.this$0.getProperty().getDescriptor().getGetter();
return getter == null ? DescriptorFactory.createDefaultGetter(this.this$0.getProperty().getDescriptor(), Annotations.Companion.getEMPTY()) : getter;
}
});
/* renamed from: caller$delegate, reason: from kotlin metadata */
private final Lazy caller = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Caller<?>>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Getter$caller$2
final /* synthetic */ KPropertyImpl.Getter<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Caller<?> invoke() {
return KPropertyImplKt.access$computeCallerForAccessor(this.this$0, true);
}
});
public boolean equals(Object other) {
return (other instanceof Getter) && Intrinsics.areEqual(getProperty(), ((Getter) other).getProperty());
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getCaller() {
return (Caller) this.caller.getValue();
}
@Override // kotlin.reflect.KCallable
public String getName() {
return "<get-" + getProperty().getName() + Typography.greater;
}
public int hashCode() {
return getProperty().hashCode();
}
public String toString() {
return "getter of " + getProperty();
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.jvm.internal.KCallableImpl
public PropertyGetterDescriptor getDescriptor() {
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (PropertyGetterDescriptor) value;
}
}
@Metadata(d1 = {"\u0000B\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\b&\u0018\u0000*\u0004\b\u0001\u0010\u00012\u000e\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u00020\u00030\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0004B\u0005¢\u0006\u0002\u0010\u0005J\u0013\u0010\u0016\u001a\u00020\u00172\b\u0010\u0018\u001a\u0004\u0018\u00010\u0019H\u0096\u0002J\b\u0010\u001a\u001a\u00020\u001bH\u0016J\b\u0010\u001c\u001a\u00020\u0013H\u0016R\u001f\u0010\u0006\u001a\u0006\u0012\u0002\b\u00030\u00078VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\n\u0010\u000b\u001a\u0004\b\b\u0010\tR\u001b\u0010\f\u001a\u00020\r8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0012\u001a\u00020\u00138VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u001d"}, d2 = {"Lkotlin/reflect/jvm/internal/KPropertyImpl$Setter;", "V", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "", "Lkotlin/reflect/KMutableProperty$Setter;", "()V", "caller", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getCaller", "()Lkotlin/reflect/jvm/internal/calls/Caller;", "caller$delegate", "Lkotlin/Lazy;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertySetterDescriptor;", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/PropertySetterDescriptor;", "descriptor$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "equals", "", "other", "", "hashCode", "", "toString", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static abstract class Setter<V> extends Accessor<V, Unit> implements KMutableProperty.Setter<V> {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(Setter.class), "descriptor", "getDescriptor()Lorg/jetbrains/kotlin/descriptors/PropertySetterDescriptor;"))};
/* renamed from: descriptor$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal descriptor = ReflectProperties.lazySoft(new Function0<PropertySetterDescriptor>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Setter$descriptor$2
final /* synthetic */ KPropertyImpl.Setter<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final PropertySetterDescriptor invoke() {
PropertySetterDescriptor setter = this.this$0.getProperty().getDescriptor().getSetter();
if (setter != null) {
return setter;
}
PropertyDescriptor descriptor = this.this$0.getProperty().getDescriptor();
Annotations.Companion companion = Annotations.Companion;
return DescriptorFactory.createDefaultSetter(descriptor, companion.getEMPTY(), companion.getEMPTY());
}
});
/* renamed from: caller$delegate, reason: from kotlin metadata */
private final Lazy caller = LazyKt.lazy(LazyThreadSafetyMode.PUBLICATION, (Function0) new Function0<Caller<?>>(this) { // from class: kotlin.reflect.jvm.internal.KPropertyImpl$Setter$caller$2
final /* synthetic */ KPropertyImpl.Setter<V> this$0;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
this.this$0 = this;
}
@Override // kotlin.jvm.functions.Function0
public final Caller<?> invoke() {
return KPropertyImplKt.access$computeCallerForAccessor(this.this$0, false);
}
});
public boolean equals(Object other) {
return (other instanceof Setter) && Intrinsics.areEqual(getProperty(), ((Setter) other).getProperty());
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public Caller<?> getCaller() {
return (Caller) this.caller.getValue();
}
@Override // kotlin.reflect.KCallable
public String getName() {
return "<set-" + getProperty().getName() + Typography.greater;
}
public int hashCode() {
return getProperty().hashCode();
}
public String toString() {
return "setter of " + getProperty();
}
@Override // kotlin.reflect.jvm.internal.KPropertyImpl.Accessor, kotlin.reflect.jvm.internal.KCallableImpl
public PropertySetterDescriptor getDescriptor() {
T value = this.descriptor.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (PropertySetterDescriptor) value;
}
}
@Override // kotlin.reflect.jvm.internal.KCallableImpl
public PropertyDescriptor getDescriptor() {
PropertyDescriptor invoke = this._descriptor.invoke();
Intrinsics.checkNotNullExpressionValue(invoke, "invoke(...)");
return invoke;
}
/* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */
public KPropertyImpl(KDeclarationContainerImpl container, String name, String signature, Object obj) {
this(container, name, signature, null, obj);
Intrinsics.checkNotNullParameter(container, "container");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(signature, "signature");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public KPropertyImpl(kotlin.reflect.jvm.internal.KDeclarationContainerImpl r8, kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor r9) {
/*
r7 = this;
java.lang.String r0 = "container"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
java.lang.String r0 = "descriptor"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r9, r0)
kotlin.reflect.jvm.internal.impl.name.Name r0 = r9.getName()
java.lang.String r3 = r0.asString()
java.lang.String r0 = "asString(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
kotlin.reflect.jvm.internal.RuntimeTypeMapper r0 = kotlin.reflect.jvm.internal.RuntimeTypeMapper.INSTANCE
kotlin.reflect.jvm.internal.JvmPropertySignature r0 = r0.mapPropertySignature(r9)
java.lang.String r4 = r0.getString()
java.lang.Object r6 = kotlin.jvm.internal.CallableReference.NO_RECEIVER
r1 = r7
r2 = r8
r5 = r9
r1.<init>(r2, r3, r4, r5, r6)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KPropertyImpl.<init>(kotlin.reflect.jvm.internal.KDeclarationContainerImpl, kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor):void");
}
}
@@ -0,0 +1,71 @@
package kotlin.reflect.jvm.internal;
import java.lang.reflect.Field;
import java.lang.reflect.Modifier;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.KPropertyImpl;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.calls.CallerImpl;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmProtoBufUtil;
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.types.TypeUtils;
@Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a \u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u0006*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00022\u0006\u0010\u0007\u001a\u00020\bH\u0002\u001a\f\u0010\t\u001a\u00020\b*\u00020\nH\u0002\"\"\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\n\u0012\u0002\b\u0003\u0012\u0002\b\u00030\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u000b"}, d2 = {"boundReceiver", "", "Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;", "getBoundReceiver", "(Lkotlin/reflect/jvm/internal/KPropertyImpl$Accessor;)Ljava/lang/Object;", "computeCallerForAccessor", "Lkotlin/reflect/jvm/internal/calls/Caller;", "isGetter", "", "isJvmFieldPropertyInCompanionObject", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKPropertyImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KPropertyImpl.kt\nkotlin/reflect/jvm/internal/KPropertyImplKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,334:1\n1#2:335\n*E\n"})
/* loaded from: classes3.dex */
public final class KPropertyImplKt {
public static final /* synthetic */ Caller access$computeCallerForAccessor(KPropertyImpl.Accessor accessor, boolean z3) {
return computeCallerForAccessor(accessor, z3);
}
/* JADX WARN: Removed duplicated region for block: B:14:0x004b */
/* JADX WARN: Removed duplicated region for block: B:16:0x0073 */
/* JADX WARN: Removed duplicated region for block: B:37:0x0112 */
/* JADX WARN: Removed duplicated region for block: B:54:0x0070 */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public static final kotlin.reflect.jvm.internal.calls.Caller<?> computeCallerForAccessor(kotlin.reflect.jvm.internal.KPropertyImpl.Accessor<?, ?> r6, boolean r7) {
/*
Method dump skipped, instructions count: 572
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.KPropertyImplKt.computeCallerForAccessor(kotlin.reflect.jvm.internal.KPropertyImpl$Accessor, boolean):kotlin.reflect.jvm.internal.calls.Caller");
}
private static final CallerImpl<Field> computeCallerForAccessor$computeFieldCaller(KPropertyImpl.Accessor<?, ?> accessor, boolean z3, Field field) {
return (isJvmFieldPropertyInCompanionObject(accessor.getProperty().getDescriptor()) || !Modifier.isStatic(field.getModifiers())) ? z3 ? accessor.isBound() ? new CallerImpl.FieldGetter.BoundInstance(field, getBoundReceiver(accessor)) : new CallerImpl.FieldGetter.Instance(field) : accessor.isBound() ? new CallerImpl.FieldSetter.BoundInstance(field, computeCallerForAccessor$isNotNullProperty(accessor), getBoundReceiver(accessor)) : new CallerImpl.FieldSetter.Instance(field, computeCallerForAccessor$isNotNullProperty(accessor)) : computeCallerForAccessor$isJvmStaticProperty(accessor) ? z3 ? accessor.isBound() ? new CallerImpl.FieldGetter.BoundJvmStaticInObject(field) : new CallerImpl.FieldGetter.JvmStaticInObject(field) : accessor.isBound() ? new CallerImpl.FieldSetter.BoundJvmStaticInObject(field, computeCallerForAccessor$isNotNullProperty(accessor)) : new CallerImpl.FieldSetter.JvmStaticInObject(field, computeCallerForAccessor$isNotNullProperty(accessor)) : z3 ? new CallerImpl.FieldGetter.Static(field) : new CallerImpl.FieldSetter.Static(field, computeCallerForAccessor$isNotNullProperty(accessor));
}
private static final boolean computeCallerForAccessor$isJvmStaticProperty(KPropertyImpl.Accessor<?, ?> accessor) {
return accessor.getProperty().getDescriptor().getAnnotations().hasAnnotation(UtilKt.getJVM_STATIC());
}
private static final boolean computeCallerForAccessor$isNotNullProperty(KPropertyImpl.Accessor<?, ?> accessor) {
return !TypeUtils.isNullableType(accessor.getProperty().getDescriptor().getType());
}
public static final Object getBoundReceiver(KPropertyImpl.Accessor<?, ?> accessor) {
Intrinsics.checkNotNullParameter(accessor, "<this>");
return accessor.getProperty().getBoundReceiver();
}
private static final boolean isJvmFieldPropertyInCompanionObject(PropertyDescriptor propertyDescriptor) {
DeclarationDescriptor containingDeclaration = propertyDescriptor.getContainingDeclaration();
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
if (!DescriptorUtils.isCompanionObject(containingDeclaration)) {
return false;
}
DeclarationDescriptor containingDeclaration2 = containingDeclaration.getContainingDeclaration();
if (DescriptorUtils.isInterface(containingDeclaration2) || DescriptorUtils.isAnnotationClass(containingDeclaration2)) {
return (propertyDescriptor instanceof DeserializedPropertyDescriptor) && JvmProtoBufUtil.isMovedFromInterfaceCompanion(((DeserializedPropertyDescriptor) propertyDescriptor).getProto());
}
return true;
}
}
@@ -0,0 +1,173 @@
package kotlin.reflect.jvm.internal;
import java.lang.reflect.GenericArrayType;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.WildcardType;
import java.util.ArrayList;
import java.util.List;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.LazyThreadSafetyMode;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
import kotlin.reflect.jvm.internal.impl.types.Variance;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\u0010\u0000\u001a\u0016\u0012\u0004\u0012\u00020\u0002 \u0003*\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\u00010\u0001H\n¢\u0006\u0002\b\u0004"}, d2 = {"<anonymous>", "", "Lkotlin/reflect/KTypeProjection;", "kotlin.jvm.PlatformType", "invoke"}, k = 3, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKTypeImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KTypeImpl.kt\nkotlin/reflect/jvm/internal/KTypeImpl$arguments$2\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,136:1\n1559#2:137\n1590#2,4:138\n*S KotlinDebug\n*F\n+ 1 KTypeImpl.kt\nkotlin/reflect/jvm/internal/KTypeImpl$arguments$2\n*L\n81#1:137\n81#1:138,4\n*E\n"})
/* loaded from: classes3.dex */
public final class KTypeImpl$arguments$2 extends Lambda implements Function0<List<? extends KTypeProjection>> {
final /* synthetic */ Function0<Type> $computeJavaType;
final /* synthetic */ KTypeImpl this$0;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[Variance.values().length];
try {
iArr[Variance.INVARIANT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[Variance.IN_VARIANCE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[Variance.OUT_VARIANCE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
public KTypeImpl$arguments$2(KTypeImpl kTypeImpl, Function0<? extends Type> function0) {
super(0);
this.this$0 = kTypeImpl;
this.$computeJavaType = function0;
}
/* JADX INFO: Access modifiers changed from: private */
public static final List<Type> invoke$lambda$0(Lazy<? extends List<? extends Type>> lazy) {
return (List) lazy.getValue();
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KTypeProjection> invoke() {
int collectionSizeOrDefault;
KTypeProjection invariant;
List<TypeProjection> arguments = this.this$0.getType().getArguments();
if (arguments.isEmpty()) {
return CollectionsKt.emptyList();
}
LazyThreadSafetyMode lazyThreadSafetyMode = LazyThreadSafetyMode.PUBLICATION;
final KTypeImpl kTypeImpl = this.this$0;
final Lazy lazy = LazyKt.lazy(lazyThreadSafetyMode, (Function0) new Function0<List<? extends Type>>() { // from class: kotlin.reflect.jvm.internal.KTypeImpl$arguments$2$parameterizedTypeArguments$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends Type> invoke() {
Type javaType = KTypeImpl.this.getJavaType();
Intrinsics.checkNotNull(javaType);
return ReflectClassUtilKt.getParameterizedTypeArguments(javaType);
}
});
List<TypeProjection> list = arguments;
Function0<Type> function0 = this.$computeJavaType;
final KTypeImpl kTypeImpl2 = this.this$0;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
final int i = 0;
for (Object obj : list) {
int i4 = i + 1;
if (i < 0) {
CollectionsKt.throwIndexOverflow();
}
TypeProjection typeProjection = (TypeProjection) obj;
if (typeProjection.isStarProjection()) {
invariant = KTypeProjection.INSTANCE.getSTAR();
} else {
KotlinType type = typeProjection.getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
KTypeImpl kTypeImpl3 = new KTypeImpl(type, function0 == null ? null : new Function0<Type>() { // from class: kotlin.reflect.jvm.internal.KTypeImpl$arguments$2$1$type$1
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
/* JADX WARN: Multi-variable type inference failed */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final Type invoke() {
List invoke$lambda$0;
Type javaType = KTypeImpl.this.getJavaType();
if (javaType instanceof Class) {
Class cls = (Class) javaType;
Class componentType = cls.isArray() ? cls.getComponentType() : Object.class;
Intrinsics.checkNotNull(componentType);
return componentType;
}
if (javaType instanceof GenericArrayType) {
if (i == 0) {
Type genericComponentType = ((GenericArrayType) javaType).getGenericComponentType();
Intrinsics.checkNotNull(genericComponentType);
return genericComponentType;
}
throw new KotlinReflectionInternalError("Array type has been queried for a non-0th argument: " + KTypeImpl.this);
}
if (javaType instanceof ParameterizedType) {
invoke$lambda$0 = KTypeImpl$arguments$2.invoke$lambda$0(lazy);
Type type2 = (Type) invoke$lambda$0.get(i);
if (type2 instanceof WildcardType) {
WildcardType wildcardType = (WildcardType) type2;
Type[] lowerBounds = wildcardType.getLowerBounds();
Intrinsics.checkNotNullExpressionValue(lowerBounds, "getLowerBounds(...)");
Type type3 = (Type) ArraysKt.firstOrNull(lowerBounds);
if (type3 == null) {
Type[] upperBounds = wildcardType.getUpperBounds();
Intrinsics.checkNotNullExpressionValue(upperBounds, "getUpperBounds(...)");
type2 = (Type) ArraysKt.first(upperBounds);
} else {
type2 = type3;
}
}
Intrinsics.checkNotNull(type2);
return type2;
}
throw new KotlinReflectionInternalError("Non-generic type has been queried for arguments: " + KTypeImpl.this);
}
});
int i5 = WhenMappings.$EnumSwitchMapping$0[typeProjection.getProjectionKind().ordinal()];
if (i5 == 1) {
invariant = KTypeProjection.INSTANCE.invariant(kTypeImpl3);
} else if (i5 != 2) {
if (i5 != 3) {
throw new NoWhenBranchMatchedException();
}
invariant = KTypeProjection.INSTANCE.covariant(kTypeImpl3);
} else {
invariant = KTypeProjection.INSTANCE.contravariant(kTypeImpl3);
}
}
arrayList.add(invariant);
i = i4;
}
return arrayList;
}
}
@@ -0,0 +1,177 @@
package kotlin.reflect.jvm.internal;
import java.lang.annotation.Annotation;
import java.lang.reflect.Type;
import java.util.List;
import kotlin.Metadata;
import kotlin.NotImplementedError;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.KTypeBase;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KProperty;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.jvm.KTypesJvm;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeAliasDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.types.FlexibleTypesKt;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
import kotlin.reflect.jvm.internal.impl.types.TypeUtils;
@Metadata(d1 = {"\u0000\\\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\t\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0000\u0018\u00002\u00020\u0001B\u001f\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0010\b\u0002\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0005¢\u0006\u0002\u0010\u0007J\u0012\u0010 \u001a\u0004\u0018\u00010\u00132\u0006\u0010\u0002\u001a\u00020\u0003H\u0002J\u0013\u0010!\u001a\u00020\u00192\b\u0010\"\u001a\u0004\u0018\u00010#H\u0096\u0002J\b\u0010$\u001a\u00020%H\u0016J\u0015\u0010&\u001a\u00020\u00002\u0006\u0010'\u001a\u00020\u0019H\u0000¢\u0006\u0002\b(J\b\u0010)\u001a\u00020*H\u0016R\u001a\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR!\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000e0\t8VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0010\u0010\u0011\u001a\u0004\b\u000f\u0010\fR\u001d\u0010\u0012\u001a\u0004\u0018\u00010\u00138VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0016\u0010\u0011\u001a\u0004\b\u0014\u0010\u0015R\u0016\u0010\u0004\u001a\n\u0012\u0004\u0012\u00020\u0006\u0018\u00010\u0017X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0018\u001a\u00020\u00198VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u001aR\u0016\u0010\u001b\u001a\u0004\u0018\u00010\u00068VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001c\u0010\u001dR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u001e\u0010\u001f¨\u0006+²\u0006\u0010\u0010,\u001a\b\u0012\u0004\u0012\u00020\u00060\tX\u008a\u0084\u0002"}, d2 = {"Lkotlin/reflect/jvm/internal/KTypeImpl;", "Lkotlin/jvm/internal/KTypeBase;", "type", "Lkotlin/reflect/jvm/internal/impl/types/KotlinType;", "computeJavaType", "Lkotlin/Function0;", "Ljava/lang/reflect/Type;", "(Lorg/jetbrains/kotlin/types/KotlinType;Lkotlin/jvm/functions/Function0;)V", "annotations", "", "", "getAnnotations", "()Ljava/util/List;", "arguments", "Lkotlin/reflect/KTypeProjection;", "getArguments", "arguments$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "classifier", "Lkotlin/reflect/KClassifier;", "getClassifier", "()Lkotlin/reflect/KClassifier;", "classifier$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "isMarkedNullable", "", "()Z", "javaType", "getJavaType", "()Ljava/lang/reflect/Type;", "getType", "()Lorg/jetbrains/kotlin/types/KotlinType;", "convert", "equals", "other", "", "hashCode", "", "makeNullableAsSpecified", "nullable", "makeNullableAsSpecified$kotlin_reflection", "toString", "", "kotlin-reflection", "parameterizedTypeArguments"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nKTypeImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 KTypeImpl.kt\nkotlin/reflect/jvm/internal/KTypeImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,136:1\n1#2:137\n*E\n"})
/* loaded from: classes3.dex */
public final class KTypeImpl implements KTypeBase {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KTypeImpl.class), "classifier", "getClassifier()Lkotlin/reflect/KClassifier;")), Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KTypeImpl.class), "arguments", "getArguments()Ljava/util/List;"))};
/* renamed from: arguments$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal arguments;
/* renamed from: classifier$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal classifier;
private final ReflectProperties.LazySoftVal<Type> computeJavaType;
private final KotlinType type;
public KTypeImpl(KotlinType type, Function0<? extends Type> function0) {
Intrinsics.checkNotNullParameter(type, "type");
this.type = type;
ReflectProperties.LazySoftVal<Type> lazySoftVal = null;
ReflectProperties.LazySoftVal<Type> lazySoftVal2 = function0 instanceof ReflectProperties.LazySoftVal ? (ReflectProperties.LazySoftVal) function0 : null;
if (lazySoftVal2 != null) {
lazySoftVal = lazySoftVal2;
} else if (function0 != null) {
lazySoftVal = ReflectProperties.lazySoft(function0);
}
this.computeJavaType = lazySoftVal;
this.classifier = ReflectProperties.lazySoft(new Function0<KClassifier>() { // from class: kotlin.reflect.jvm.internal.KTypeImpl$classifier$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final KClassifier invoke() {
KClassifier convert;
KTypeImpl kTypeImpl = KTypeImpl.this;
convert = kTypeImpl.convert(kTypeImpl.getType());
return convert;
}
});
this.arguments = ReflectProperties.lazySoft(new KTypeImpl$arguments$2(this, function0));
}
/* JADX INFO: Access modifiers changed from: private */
public final KClassifier convert(KotlinType type) {
KotlinType type2;
ClassifierDescriptor mo1394getDeclarationDescriptor = type.getConstructor().mo1394getDeclarationDescriptor();
if (!(mo1394getDeclarationDescriptor instanceof ClassDescriptor)) {
if (mo1394getDeclarationDescriptor instanceof TypeParameterDescriptor) {
return new KTypeParameterImpl(null, (TypeParameterDescriptor) mo1394getDeclarationDescriptor);
}
if (mo1394getDeclarationDescriptor instanceof TypeAliasDescriptor) {
throw new NotImplementedError("An operation is not implemented: Type alias classifiers are not yet supported");
}
return null;
}
Class<?> javaClass = UtilKt.toJavaClass((ClassDescriptor) mo1394getDeclarationDescriptor);
if (javaClass == null) {
return null;
}
if (!javaClass.isArray()) {
if (TypeUtils.isNullableType(type)) {
return new KClassImpl(javaClass);
}
Class<?> primitiveByWrapper = ReflectClassUtilKt.getPrimitiveByWrapper(javaClass);
if (primitiveByWrapper != null) {
javaClass = primitiveByWrapper;
}
return new KClassImpl(javaClass);
}
TypeProjection typeProjection = (TypeProjection) CollectionsKt.singleOrNull((List) type.getArguments());
if (typeProjection == null || (type2 = typeProjection.getType()) == null) {
return new KClassImpl(javaClass);
}
KClassifier convert = convert(type2);
if (convert != null) {
return new KClassImpl(UtilKt.createArrayType(JvmClassMappingKt.getJavaClass((KClass) KTypesJvm.getJvmErasure(convert))));
}
throw new KotlinReflectionInternalError("Cannot determine classifier for array element type: " + this);
}
public boolean equals(Object other) {
if (!(other instanceof KTypeImpl)) {
return false;
}
KTypeImpl kTypeImpl = (KTypeImpl) other;
return Intrinsics.areEqual(this.type, kTypeImpl.type) && Intrinsics.areEqual(getClassifier(), kTypeImpl.getClassifier()) && Intrinsics.areEqual(getArguments(), kTypeImpl.getArguments());
}
@Override // kotlin.reflect.KAnnotatedElement
public List<Annotation> getAnnotations() {
return UtilKt.computeAnnotations(this.type);
}
@Override // kotlin.reflect.KType
public List<KTypeProjection> getArguments() {
T value = this.arguments.getValue(this, $$delegatedProperties[1]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
@Override // kotlin.reflect.KType
public KClassifier getClassifier() {
return (KClassifier) this.classifier.getValue(this, $$delegatedProperties[0]);
}
@Override // kotlin.jvm.internal.KTypeBase
public Type getJavaType() {
ReflectProperties.LazySoftVal<Type> lazySoftVal = this.computeJavaType;
if (lazySoftVal != null) {
return lazySoftVal.invoke();
}
return null;
}
public final KotlinType getType() {
return this.type;
}
public int hashCode() {
int hashCode = this.type.hashCode() * 31;
KClassifier classifier = getClassifier();
return getArguments().hashCode() + ((hashCode + (classifier != null ? classifier.hashCode() : 0)) * 31);
}
@Override // kotlin.reflect.KType
public boolean isMarkedNullable() {
return this.type.isMarkedNullable();
}
public final KTypeImpl makeNullableAsSpecified$kotlin_reflection(boolean nullable) {
if (!FlexibleTypesKt.isFlexible(this.type) && isMarkedNullable() == nullable) {
return this;
}
KotlinType makeNullableAsSpecified = TypeUtils.makeNullableAsSpecified(this.type, nullable);
Intrinsics.checkNotNullExpressionValue(makeNullableAsSpecified, "makeNullableAsSpecified(...)");
return new KTypeImpl(makeNullableAsSpecified, this.computeJavaType);
}
public String toString() {
return ReflectionObjectRenderer.INSTANCE.renderType(this.type);
}
public /* synthetic */ KTypeImpl(KotlinType kotlinType, Function0 function0, int i, DefaultConstructorMarker defaultConstructorMarker) {
this(kotlinType, (i & 2) != 0 ? null : function0);
}
}
@@ -0,0 +1,198 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Unit;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference1Impl;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.TypeParameterReference;
import kotlin.reflect.KClass;
import kotlin.reflect.KProperty;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.KVariance;
import kotlin.reflect.jvm.internal.ReflectProperties;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.TypeParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
import kotlin.reflect.jvm.internal.impl.load.kotlin.JvmPackagePartSource;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedContainerSource;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.Variance;
@Metadata(d1 = {"\u0000b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b\u0000\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\b\u0010\u0003\u001a\u0004\u0018\u00010\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0013\u0010\u001c\u001a\u00020\u000b2\b\u0010\u001d\u001a\u0004\u0018\u00010\u001eH\u0096\u0002J\b\u0010\u001f\u001a\u00020 H\u0016J\b\u0010!\u001a\u00020\u000eH\u0016J\u0010\u0010\"\u001a\u0006\u0012\u0002\b\u00030#*\u00020$H\u0002J\u0010\u0010%\u001a\u0006\u0012\u0002\b\u00030&*\u00020'H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0014\u0010\n\u001a\u00020\u000b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\fR\u0014\u0010\r\u001a\u00020\u000e8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u0010R!\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00130\u00128VX\u0096\u0084\u0002¢\u0006\f\n\u0004\b\u0016\u0010\u0017\u001a\u0004\b\u0014\u0010\u0015R\u0014\u0010\u0018\u001a\u00020\u00198VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001b¨\u0006("}, d2 = {"Lkotlin/reflect/jvm/internal/KTypeParameterImpl;", "Lkotlin/reflect/KTypeParameter;", "Lkotlin/reflect/jvm/internal/KClassifierImpl;", "container", "Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/TypeParameterDescriptor;", "(Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;Lorg/jetbrains/kotlin/descriptors/TypeParameterDescriptor;)V", "getDescriptor", "()Lorg/jetbrains/kotlin/descriptors/TypeParameterDescriptor;", "isReified", "", "()Z", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "getName", "()Ljava/lang/String;", "upperBounds", "", "Lkotlin/reflect/KType;", "getUpperBounds", "()Ljava/util/List;", "upperBounds$delegate", "Lkotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal;", "variance", "Lkotlin/reflect/KVariance;", "getVariance", "()Lkotlin/reflect/KVariance;", "equals", "other", "", "hashCode", "", "toString", "getContainerClass", "Ljava/lang/Class;", "Lkotlin/reflect/jvm/internal/impl/serialization/deserialization/descriptors/DeserializedMemberDescriptor;", "toKClassImpl", "Lkotlin/reflect/jvm/internal/KClassImpl;", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassDescriptor;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KTypeParameterImpl implements KTypeParameter, KClassifierImpl {
static final /* synthetic */ KProperty<Object>[] $$delegatedProperties = {Reflection.property1(new PropertyReference1Impl(Reflection.getOrCreateKotlinClass(KTypeParameterImpl.class), "upperBounds", "getUpperBounds()Ljava/util/List;"))};
private final KTypeParameterOwnerImpl container;
private final TypeParameterDescriptor descriptor;
/* renamed from: upperBounds$delegate, reason: from kotlin metadata */
private final ReflectProperties.LazySoftVal upperBounds;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[Variance.values().length];
try {
iArr[Variance.INVARIANT.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[Variance.IN_VARIANCE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[Variance.OUT_VARIANCE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
public KTypeParameterImpl(KTypeParameterOwnerImpl kTypeParameterOwnerImpl, TypeParameterDescriptor descriptor) {
KClassImpl<?> kClassImpl;
Object accept;
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
this.descriptor = descriptor;
this.upperBounds = ReflectProperties.lazySoft(new Function0<List<? extends KTypeImpl>>() { // from class: kotlin.reflect.jvm.internal.KTypeParameterImpl$upperBounds$2
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final List<? extends KTypeImpl> invoke() {
int collectionSizeOrDefault;
List<KotlinType> upperBounds = KTypeParameterImpl.this.getDescriptor().getUpperBounds();
Intrinsics.checkNotNullExpressionValue(upperBounds, "getUpperBounds(...)");
List<KotlinType> list = upperBounds;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator<T> it = list.iterator();
while (it.hasNext()) {
arrayList.add(new KTypeImpl((KotlinType) it.next(), null, 2, null));
}
return arrayList;
}
});
if (kTypeParameterOwnerImpl == null) {
DeclarationDescriptor containingDeclaration = getDescriptor().getContainingDeclaration();
Intrinsics.checkNotNullExpressionValue(containingDeclaration, "getContainingDeclaration(...)");
if (containingDeclaration instanceof ClassDescriptor) {
accept = toKClassImpl((ClassDescriptor) containingDeclaration);
} else {
if (!(containingDeclaration instanceof CallableMemberDescriptor)) {
throw new KotlinReflectionInternalError("Unknown type parameter container: " + containingDeclaration);
}
DeclarationDescriptor containingDeclaration2 = ((CallableMemberDescriptor) containingDeclaration).getContainingDeclaration();
Intrinsics.checkNotNullExpressionValue(containingDeclaration2, "getContainingDeclaration(...)");
if (containingDeclaration2 instanceof ClassDescriptor) {
kClassImpl = toKClassImpl((ClassDescriptor) containingDeclaration2);
} else {
DeserializedMemberDescriptor deserializedMemberDescriptor = containingDeclaration instanceof DeserializedMemberDescriptor ? (DeserializedMemberDescriptor) containingDeclaration : null;
if (deserializedMemberDescriptor == null) {
throw new KotlinReflectionInternalError("Non-class callable descriptor must be deserialized: " + containingDeclaration);
}
KClass kotlinClass = JvmClassMappingKt.getKotlinClass(getContainerClass(deserializedMemberDescriptor));
Intrinsics.checkNotNull(kotlinClass, "null cannot be cast to non-null type kotlin.reflect.jvm.internal.KClassImpl<*>");
kClassImpl = (KClassImpl) kotlinClass;
}
accept = containingDeclaration.accept(new CreateKCallableVisitor(kClassImpl), Unit.INSTANCE);
}
Intrinsics.checkNotNull(accept);
kTypeParameterOwnerImpl = (KTypeParameterOwnerImpl) accept;
}
this.container = kTypeParameterOwnerImpl;
}
private final Class<?> getContainerClass(DeserializedMemberDescriptor deserializedMemberDescriptor) {
Class<?> klass;
DeserializedContainerSource containerSource = deserializedMemberDescriptor.getContainerSource();
JvmPackagePartSource jvmPackagePartSource = containerSource instanceof JvmPackagePartSource ? (JvmPackagePartSource) containerSource : null;
Object knownJvmBinaryClass = jvmPackagePartSource != null ? jvmPackagePartSource.getKnownJvmBinaryClass() : null;
ReflectKotlinClass reflectKotlinClass = knownJvmBinaryClass instanceof ReflectKotlinClass ? (ReflectKotlinClass) knownJvmBinaryClass : null;
if (reflectKotlinClass != null && (klass = reflectKotlinClass.getKlass()) != null) {
return klass;
}
throw new KotlinReflectionInternalError("Container of deserialized member is not resolved: " + deserializedMemberDescriptor);
}
private final KClassImpl<?> toKClassImpl(ClassDescriptor classDescriptor) {
Class<?> javaClass = UtilKt.toJavaClass(classDescriptor);
KClassImpl<?> kClassImpl = (KClassImpl) (javaClass != null ? JvmClassMappingKt.getKotlinClass(javaClass) : null);
if (kClassImpl != null) {
return kClassImpl;
}
throw new KotlinReflectionInternalError("Type parameter container is not resolved: " + classDescriptor.getContainingDeclaration());
}
public boolean equals(Object other) {
if (!(other instanceof KTypeParameterImpl)) {
return false;
}
KTypeParameterImpl kTypeParameterImpl = (KTypeParameterImpl) other;
return Intrinsics.areEqual(this.container, kTypeParameterImpl.container) && Intrinsics.areEqual(getName(), kTypeParameterImpl.getName());
}
@Override // kotlin.reflect.KTypeParameter
public String getName() {
String asString = getDescriptor().getName().asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
return asString;
}
@Override // kotlin.reflect.KTypeParameter
public List<KType> getUpperBounds() {
T value = this.upperBounds.getValue(this, $$delegatedProperties[0]);
Intrinsics.checkNotNullExpressionValue(value, "getValue(...)");
return (List) value;
}
@Override // kotlin.reflect.KTypeParameter
public KVariance getVariance() {
int i = WhenMappings.$EnumSwitchMapping$0[getDescriptor().getVariance().ordinal()];
if (i == 1) {
return KVariance.INVARIANT;
}
if (i == 2) {
return KVariance.IN;
}
if (i == 3) {
return KVariance.OUT;
}
throw new NoWhenBranchMatchedException();
}
public int hashCode() {
return getName().hashCode() + (this.container.hashCode() * 31);
}
@Override // kotlin.reflect.KTypeParameter
/* renamed from: isReified */
public boolean getIsReified() {
return getDescriptor().isReified();
}
public String toString() {
return TypeParameterReference.INSTANCE.toString(this);
}
@Override // kotlin.reflect.jvm.internal.KClassifierImpl
public TypeParameterDescriptor getDescriptor() {
return this.descriptor;
}
}
@@ -0,0 +1,8 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0003\bf\u0018\u00002\u00020\u0001R\u0018\u0010\u0002\u001a\b\u0012\u0004\u0012\u00020\u00040\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/jvm/internal/KTypeParameterOwnerImpl;", "", "typeParameters", "", "Lkotlin/reflect/KTypeParameter;", "getTypeParameters", "()Ljava/util/List;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface KTypeParameterOwnerImpl {
}
@@ -0,0 +1,14 @@
package kotlin.reflect.jvm.internal;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\u0018\u00002\u00060\u0001j\u0002`\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/KotlinReflectionInternalError;", "Ljava/lang/Error;", "Lkotlin/Error;", "message", "", "(Ljava/lang/String;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class KotlinReflectionInternalError extends Error {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public KotlinReflectionInternalError(String message) {
super(message);
Intrinsics.checkNotNullParameter(message, "message");
}
}
@@ -0,0 +1,53 @@
package kotlin.reflect.jvm.internal;
import java.lang.ref.WeakReference;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeModuleData;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
@Metadata(d1 = {"\u0000 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\b\u0010\u0005\u001a\u00020\u0006H\u0000\u001a\u0010\u0010\u0007\u001a\u00020\u0004*\u0006\u0012\u0002\b\u00030\bH\u0000\" \u0010\u0000\u001a\u0014\u0012\u0004\u0012\u00020\u0002\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00040\u00030\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\t"}, d2 = {"moduleByClassLoader", "Ljava/util/concurrent/ConcurrentMap;", "Lkotlin/reflect/jvm/internal/WeakClassLoaderBox;", "Ljava/lang/ref/WeakReference;", "Lkotlin/reflect/jvm/internal/impl/descriptors/runtime/components/RuntimeModuleData;", "clearModuleByClassLoaderCache", "", "getOrCreateModule", "Ljava/lang/Class;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nmoduleByClassLoader.kt\nKotlin\n*S Kotlin\n*F\n+ 1 moduleByClassLoader.kt\nkotlin/reflect/jvm/internal/ModuleByClassLoaderKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,75:1\n1#2:76\n*E\n"})
/* loaded from: classes3.dex */
public final class ModuleByClassLoaderKt {
private static final ConcurrentMap<WeakClassLoaderBox, WeakReference<RuntimeModuleData>> moduleByClassLoader = new ConcurrentHashMap();
public static final void clearModuleByClassLoaderCache() {
moduleByClassLoader.clear();
}
public static final RuntimeModuleData getOrCreateModule(Class<?> cls) {
Intrinsics.checkNotNullParameter(cls, "<this>");
ClassLoader safeClassLoader = ReflectClassUtilKt.getSafeClassLoader(cls);
WeakClassLoaderBox weakClassLoaderBox = new WeakClassLoaderBox(safeClassLoader);
ConcurrentMap<WeakClassLoaderBox, WeakReference<RuntimeModuleData>> concurrentMap = moduleByClassLoader;
WeakReference<RuntimeModuleData> weakReference = concurrentMap.get(weakClassLoaderBox);
if (weakReference != null) {
RuntimeModuleData runtimeModuleData = weakReference.get();
if (runtimeModuleData != null) {
return runtimeModuleData;
}
concurrentMap.remove(weakClassLoaderBox, weakReference);
}
RuntimeModuleData create = RuntimeModuleData.Companion.create(safeClassLoader);
while (true) {
try {
ConcurrentMap<WeakClassLoaderBox, WeakReference<RuntimeModuleData>> concurrentMap2 = moduleByClassLoader;
WeakReference<RuntimeModuleData> putIfAbsent = concurrentMap2.putIfAbsent(weakClassLoaderBox, new WeakReference<>(create));
if (putIfAbsent == null) {
return create;
}
RuntimeModuleData runtimeModuleData2 = putIfAbsent.get();
if (runtimeModuleData2 != null) {
return runtimeModuleData2;
}
concurrentMap2.remove(weakClassLoaderBox, putIfAbsent);
} finally {
weakClassLoaderBox.setTemporaryStrongRef(null);
}
}
}
}
@@ -0,0 +1,83 @@
package kotlin.reflect.jvm.internal;
import java.lang.ref.SoftReference;
import kotlin.jvm.functions.Function0;
/* loaded from: classes3.dex */
public class ReflectProperties {
/* loaded from: classes3.dex */
public static class LazySoftVal<T> extends Val<T> implements Function0<T> {
private final Function0<T> initializer;
private volatile SoftReference<Object> value;
private static /* synthetic */ void $$$reportNull$$$0(int i) {
throw new IllegalArgumentException("Argument for @NotNull parameter 'initializer' of kotlin/reflect/jvm/internal/ReflectProperties$LazySoftVal.<init> must not be null");
}
public LazySoftVal(T t2, Function0<T> function0) {
if (function0 == null) {
$$$reportNull$$$0(0);
}
this.value = null;
this.initializer = function0;
if (t2 != null) {
this.value = new SoftReference<>(escape(t2));
}
}
@Override // kotlin.reflect.jvm.internal.ReflectProperties.Val, kotlin.jvm.functions.Function0
public T invoke() {
Object obj;
SoftReference<Object> softReference = this.value;
if (softReference != null && (obj = softReference.get()) != null) {
return unescape(obj);
}
T invoke = this.initializer.invoke();
this.value = new SoftReference<>(escape(invoke));
return invoke;
}
}
/* loaded from: classes3.dex */
public static abstract class Val<T> {
private static final Object NULL_VALUE = new Object() { // from class: kotlin.reflect.jvm.internal.ReflectProperties.Val.1
};
public Object escape(T t2) {
return t2 == null ? NULL_VALUE : t2;
}
public final T getValue(Object obj, Object obj2) {
return invoke();
}
public abstract T invoke();
/* JADX WARN: Multi-variable type inference failed */
public T unescape(Object obj) {
if (obj == NULL_VALUE) {
return null;
}
return obj;
}
}
private static /* synthetic */ void $$$reportNull$$$0(int i) {
throw new IllegalArgumentException("Argument for @NotNull parameter 'initializer' of kotlin/reflect/jvm/internal/ReflectProperties.lazySoft must not be null");
}
public static <T> LazySoftVal<T> lazySoft(T t2, Function0<T> function0) {
if (function0 == null) {
$$$reportNull$$$0(0);
}
return new LazySoftVal<>(t2, function0);
}
public static <T> LazySoftVal<T> lazySoft(Function0<T> function0) {
if (function0 == null) {
$$$reportNull$$$0(1);
}
return lazySoft(null, function0);
}
}
@@ -0,0 +1,164 @@
package kotlin.reflect.jvm.internal;
import java.util.Collections;
import java.util.List;
import kotlin.jvm.internal.CallableReference;
import kotlin.jvm.internal.ClassBasedDeclarationContainer;
import kotlin.jvm.internal.FunctionBase;
import kotlin.jvm.internal.FunctionReference;
import kotlin.jvm.internal.Lambda;
import kotlin.jvm.internal.MutablePropertyReference0;
import kotlin.jvm.internal.MutablePropertyReference1;
import kotlin.jvm.internal.MutablePropertyReference2;
import kotlin.jvm.internal.PropertyReference0;
import kotlin.jvm.internal.PropertyReference1;
import kotlin.jvm.internal.PropertyReference2;
import kotlin.jvm.internal.ReflectionFactory;
import kotlin.reflect.KCallable;
import kotlin.reflect.KClass;
import kotlin.reflect.KClassifier;
import kotlin.reflect.KDeclarationContainer;
import kotlin.reflect.KFunction;
import kotlin.reflect.KMutableProperty0;
import kotlin.reflect.KMutableProperty1;
import kotlin.reflect.KMutableProperty2;
import kotlin.reflect.KProperty0;
import kotlin.reflect.KProperty1;
import kotlin.reflect.KProperty2;
import kotlin.reflect.KType;
import kotlin.reflect.KTypeParameter;
import kotlin.reflect.KTypeProjection;
import kotlin.reflect.KVariance;
import kotlin.reflect.full.KClassifiers;
import kotlin.reflect.jvm.ReflectLambdaKt;
/* loaded from: classes3.dex */
public class ReflectionFactoryImpl extends ReflectionFactory {
public static void clearCaches() {
CachesKt.clearCaches();
ModuleByClassLoaderKt.clearModuleByClassLoaderCache();
}
private static KDeclarationContainerImpl getOwner(CallableReference callableReference) {
KDeclarationContainer owner = callableReference.getOwner();
return owner instanceof KDeclarationContainerImpl ? (KDeclarationContainerImpl) owner : EmptyContainerForLocal.INSTANCE;
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KClass createKotlinClass(Class cls) {
return new KClassImpl(cls);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KFunction function(FunctionReference functionReference) {
return new KFunctionImpl(getOwner(functionReference), functionReference.getName(), functionReference.getSignature(), functionReference.getBoundReceiver());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KClass getOrCreateKotlinClass(Class cls) {
return CachesKt.getOrCreateKotlinClass(cls);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KDeclarationContainer getOrCreateKotlinPackage(Class cls, String str) {
return CachesKt.getOrCreateKotlinPackage(cls);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KType mutableCollectionType(KType kType) {
return TypeOfImplKt.createMutableCollectionKType(kType);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KMutableProperty0 mutableProperty0(MutablePropertyReference0 mutablePropertyReference0) {
return new KMutableProperty0Impl(getOwner(mutablePropertyReference0), mutablePropertyReference0.getName(), mutablePropertyReference0.getSignature(), mutablePropertyReference0.getBoundReceiver());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KMutableProperty1 mutableProperty1(MutablePropertyReference1 mutablePropertyReference1) {
return new KMutableProperty1Impl(getOwner(mutablePropertyReference1), mutablePropertyReference1.getName(), mutablePropertyReference1.getSignature(), mutablePropertyReference1.getBoundReceiver());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KMutableProperty2 mutableProperty2(MutablePropertyReference2 mutablePropertyReference2) {
return new KMutableProperty2Impl(getOwner(mutablePropertyReference2), mutablePropertyReference2.getName(), mutablePropertyReference2.getSignature());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KType nothingType(KType kType) {
return TypeOfImplKt.createNothingType(kType);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KType platformType(KType kType, KType kType2) {
return TypeOfImplKt.createPlatformKType(kType, kType2);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KProperty0 property0(PropertyReference0 propertyReference0) {
return new KProperty0Impl(getOwner(propertyReference0), propertyReference0.getName(), propertyReference0.getSignature(), propertyReference0.getBoundReceiver());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KProperty1 property1(PropertyReference1 propertyReference1) {
return new KProperty1Impl(getOwner(propertyReference1), propertyReference1.getName(), propertyReference1.getSignature(), propertyReference1.getBoundReceiver());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KProperty2 property2(PropertyReference2 propertyReference2) {
return new KProperty2Impl(getOwner(propertyReference2), propertyReference2.getName(), propertyReference2.getSignature());
}
@Override // kotlin.jvm.internal.ReflectionFactory
public String renderLambdaToString(Lambda lambda) {
return renderLambdaToString((FunctionBase) lambda);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public void setUpperBounds(KTypeParameter kTypeParameter, List<KType> list) {
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KType typeOf(KClassifier kClassifier, List<KTypeProjection> list, boolean z3) {
return kClassifier instanceof ClassBasedDeclarationContainer ? CachesKt.getOrCreateKType(((ClassBasedDeclarationContainer) kClassifier).getJClass(), list, z3) : KClassifiers.createType(kClassifier, list, z3, Collections.EMPTY_LIST);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KTypeParameter typeParameter(Object obj, String str, KVariance kVariance, boolean z3) {
List<KTypeParameter> typeParameters;
if (obj instanceof KClass) {
typeParameters = ((KClass) obj).getTypeParameters();
} else {
if (!(obj instanceof KCallable)) {
throw new IllegalArgumentException("Type parameter container must be a class or a callable: " + obj);
}
typeParameters = ((KCallable) obj).getTypeParameters();
}
for (KTypeParameter kTypeParameter : typeParameters) {
if (kTypeParameter.getName().equals(str)) {
return kTypeParameter;
}
}
throw new IllegalArgumentException("Type parameter " + str + " is not found in container: " + obj);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KClass createKotlinClass(Class cls, String str) {
return new KClassImpl(cls);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public KClass getOrCreateKotlinClass(Class cls, String str) {
return CachesKt.getOrCreateKotlinClass(cls);
}
@Override // kotlin.jvm.internal.ReflectionFactory
public String renderLambdaToString(FunctionBase functionBase) {
KFunctionImpl asKFunctionImpl;
KFunction reflect = ReflectLambdaKt.reflect(functionBase);
if (reflect != null && (asKFunctionImpl = UtilKt.asKFunctionImpl(reflect)) != null) {
return ReflectionObjectRenderer.INSTANCE.renderLambda(asKFunctionImpl.getDescriptor());
}
return super.renderLambdaToString(functionBase);
}
}
@@ -0,0 +1,179 @@
package kotlin.reflect.jvm.internal;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.KParameter;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ValueParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.name.Name;
import kotlin.reflect.jvm.internal.impl.renderer.DescriptorRenderer;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0002J\u000e\u0010\t\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\nJ\u000e\u0010\u000b\u001a\u00020\u00062\u0006\u0010\f\u001a\u00020\nJ\u000e\u0010\r\u001a\u00020\u00062\u0006\u0010\u000e\u001a\u00020\u000fJ\u000e\u0010\u0010\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u0011J\u000e\u0010\u0012\u001a\u00020\u00062\u0006\u0010\u0013\u001a\u00020\u0014J\u001a\u0010\u0015\u001a\u00020\u0016*\u00060\u0017j\u0002`\u00182\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aH\u0002J\u0018\u0010\u001b\u001a\u00020\u0016*\u00060\u0017j\u0002`\u00182\u0006\u0010\u001c\u001a\u00020\bH\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u001d"}, d2 = {"Lkotlin/reflect/jvm/internal/ReflectionObjectRenderer;", "", "()V", "renderer", "Lkotlin/reflect/jvm/internal/impl/renderer/DescriptorRenderer;", "renderCallable", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableDescriptor;", "renderFunction", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "renderLambda", "invoke", "renderParameter", "parameter", "Lkotlin/reflect/jvm/internal/KParameterImpl;", "renderProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "renderType", "type", "Lkotlin/reflect/jvm/internal/impl/types/KotlinType;", "appendReceiverType", "", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "receiver", "Lkotlin/reflect/jvm/internal/impl/descriptors/ReceiverParameterDescriptor;", "appendReceivers", "callable", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class ReflectionObjectRenderer {
public static final ReflectionObjectRenderer INSTANCE = new ReflectionObjectRenderer();
private static final DescriptorRenderer renderer = DescriptorRenderer.FQ_NAMES_IN_TYPES;
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[KParameter.Kind.values().length];
try {
iArr[KParameter.Kind.EXTENSION_RECEIVER.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[KParameter.Kind.INSTANCE.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[KParameter.Kind.VALUE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
$EnumSwitchMapping$0 = iArr;
}
}
private ReflectionObjectRenderer() {
}
private final void appendReceiverType(StringBuilder sb, ReceiverParameterDescriptor receiverParameterDescriptor) {
if (receiverParameterDescriptor != null) {
KotlinType type = receiverParameterDescriptor.getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
sb.append(renderType(type));
sb.append(".");
}
}
private final void appendReceivers(StringBuilder sb, CallableDescriptor callableDescriptor) {
ReceiverParameterDescriptor instanceReceiverParameter = UtilKt.getInstanceReceiverParameter(callableDescriptor);
ReceiverParameterDescriptor extensionReceiverParameter = callableDescriptor.getExtensionReceiverParameter();
appendReceiverType(sb, instanceReceiverParameter);
boolean z3 = (instanceReceiverParameter == null || extensionReceiverParameter == null) ? false : true;
if (z3) {
sb.append("(");
}
appendReceiverType(sb, extensionReceiverParameter);
if (z3) {
sb.append(")");
}
}
private final String renderCallable(CallableDescriptor descriptor) {
if (descriptor instanceof PropertyDescriptor) {
return renderProperty((PropertyDescriptor) descriptor);
}
if (descriptor instanceof FunctionDescriptor) {
return renderFunction((FunctionDescriptor) descriptor);
}
throw new IllegalStateException(("Illegal callable: " + descriptor).toString());
}
public final String renderFunction(FunctionDescriptor descriptor) {
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
StringBuilder sb = new StringBuilder();
sb.append("fun ");
ReflectionObjectRenderer reflectionObjectRenderer = INSTANCE;
reflectionObjectRenderer.appendReceivers(sb, descriptor);
DescriptorRenderer descriptorRenderer = renderer;
Name name = descriptor.getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
sb.append(descriptorRenderer.renderName(name, true));
List<ValueParameterDescriptor> valueParameters = descriptor.getValueParameters();
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
CollectionsKt___CollectionsKt.joinTo$default(valueParameters, sb, ", ", "(", ")", 0, null, new Function1<ValueParameterDescriptor, CharSequence>() { // from class: kotlin.reflect.jvm.internal.ReflectionObjectRenderer$renderFunction$1$1
@Override // kotlin.jvm.functions.Function1
public final CharSequence invoke(ValueParameterDescriptor valueParameterDescriptor) {
ReflectionObjectRenderer reflectionObjectRenderer2 = ReflectionObjectRenderer.INSTANCE;
KotlinType type = valueParameterDescriptor.getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
return reflectionObjectRenderer2.renderType(type);
}
}, 48, null);
sb.append(": ");
KotlinType returnType = descriptor.getReturnType();
Intrinsics.checkNotNull(returnType);
sb.append(reflectionObjectRenderer.renderType(returnType));
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public final String renderLambda(FunctionDescriptor invoke) {
Intrinsics.checkNotNullParameter(invoke, "invoke");
StringBuilder sb = new StringBuilder();
ReflectionObjectRenderer reflectionObjectRenderer = INSTANCE;
reflectionObjectRenderer.appendReceivers(sb, invoke);
List<ValueParameterDescriptor> valueParameters = invoke.getValueParameters();
Intrinsics.checkNotNullExpressionValue(valueParameters, "getValueParameters(...)");
CollectionsKt___CollectionsKt.joinTo$default(valueParameters, sb, ", ", "(", ")", 0, null, new Function1<ValueParameterDescriptor, CharSequence>() { // from class: kotlin.reflect.jvm.internal.ReflectionObjectRenderer$renderLambda$1$1
@Override // kotlin.jvm.functions.Function1
public final CharSequence invoke(ValueParameterDescriptor valueParameterDescriptor) {
ReflectionObjectRenderer reflectionObjectRenderer2 = ReflectionObjectRenderer.INSTANCE;
KotlinType type = valueParameterDescriptor.getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
return reflectionObjectRenderer2.renderType(type);
}
}, 48, null);
sb.append(" -> ");
KotlinType returnType = invoke.getReturnType();
Intrinsics.checkNotNull(returnType);
sb.append(reflectionObjectRenderer.renderType(returnType));
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public final String renderParameter(KParameterImpl parameter) {
Intrinsics.checkNotNullParameter(parameter, "parameter");
StringBuilder sb = new StringBuilder();
int i = WhenMappings.$EnumSwitchMapping$0[parameter.getKind().ordinal()];
if (i == 1) {
sb.append("extension receiver parameter");
} else if (i == 2) {
sb.append("instance parameter");
} else if (i == 3) {
sb.append("parameter #" + parameter.getIndex() + ' ' + parameter.getName());
}
sb.append(" of ");
sb.append(INSTANCE.renderCallable(parameter.getCallable().getDescriptor()));
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public final String renderProperty(PropertyDescriptor descriptor) {
Intrinsics.checkNotNullParameter(descriptor, "descriptor");
StringBuilder sb = new StringBuilder();
sb.append(descriptor.isVar() ? "var " : "val ");
ReflectionObjectRenderer reflectionObjectRenderer = INSTANCE;
reflectionObjectRenderer.appendReceivers(sb, descriptor);
DescriptorRenderer descriptorRenderer = renderer;
Name name = descriptor.getName();
Intrinsics.checkNotNullExpressionValue(name, "getName(...)");
sb.append(descriptorRenderer.renderName(name, true));
sb.append(": ");
KotlinType type = descriptor.getType();
Intrinsics.checkNotNullExpressionValue(type, "getType(...)");
sb.append(reflectionObjectRenderer.renderType(type));
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
public final String renderType(KotlinType type) {
Intrinsics.checkNotNullParameter(type, "type");
return renderer.renderType(type);
}
}
@@ -0,0 +1,181 @@
package kotlin.reflect.jvm.internal;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.JvmFunctionSignature;
import kotlin.reflect.jvm.internal.JvmPropertySignature;
import kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType;
import kotlin.reflect.jvm.internal.impl.builtins.StandardNames;
import kotlin.reflect.jvm.internal.impl.builtins.jvm.CloneableClassScope;
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableMemberDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertyGetterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.PropertySetterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaField;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaMethod;
import kotlin.reflect.jvm.internal.impl.load.java.JvmAbi;
import kotlin.reflect.jvm.internal.impl.load.java.SpecialBuiltinMembers;
import kotlin.reflect.jvm.internal.impl.load.java.descriptors.JavaPropertyDescriptor;
import kotlin.reflect.jvm.internal.impl.load.java.sources.JavaSourceElement;
import kotlin.reflect.jvm.internal.impl.load.java.structure.JavaElement;
import kotlin.reflect.jvm.internal.impl.load.kotlin.MethodSignatureMappingKt;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.ProtoBufUtilKt;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.JvmProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.jvm.deserialization.JvmMemberSignature;
import kotlin.reflect.jvm.internal.impl.name.ClassId;
import kotlin.reflect.jvm.internal.impl.name.FqName;
import kotlin.reflect.jvm.internal.impl.protobuf.GeneratedMessageLite;
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorFactory;
import kotlin.reflect.jvm.internal.impl.resolve.DescriptorUtils;
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.resolve.jvm.JvmPrimitiveType;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.descriptors.DeserializedPropertyDescriptor;
@Metadata(d1 = {"\u0000P\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bÀ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\rH\u0002J\u0012\u0010\u000e\u001a\u00020\u00042\n\u0010\u000f\u001a\u0006\u0012\u0002\b\u00030\u0007J\u0010\u0010\u0010\u001a\u00020\u00112\u0006\u0010\f\u001a\u00020\rH\u0002J\u0010\u0010\u0012\u001a\u00020\u00132\u0006\u0010\f\u001a\u00020\u0014H\u0002J\u000e\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0018J\u000e\u0010\u0019\u001a\u00020\u001a2\u0006\u0010\u001b\u001a\u00020\rR\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u001e\u0010\u0005\u001a\u0004\u0018\u00010\u0006*\u0006\u0012\u0002\b\u00030\u00078BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006\u001c"}, d2 = {"Lkotlin/reflect/jvm/internal/RuntimeTypeMapper;", "", "()V", "JAVA_LANG_VOID", "Lkotlin/reflect/jvm/internal/impl/name/ClassId;", "primitiveType", "Lkotlin/reflect/jvm/internal/impl/builtins/PrimitiveType;", "Ljava/lang/Class;", "getPrimitiveType", "(Ljava/lang/Class;)Lorg/jetbrains/kotlin/builtins/PrimitiveType;", "isKnownBuiltInFunction", "", "descriptor", "Lkotlin/reflect/jvm/internal/impl/descriptors/FunctionDescriptor;", "mapJvmClassToKotlinClassId", "klass", "mapJvmFunctionSignature", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature$KotlinFunction;", "mapName", "", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableMemberDescriptor;", "mapPropertySignature", "Lkotlin/reflect/jvm/internal/JvmPropertySignature;", "possiblyOverriddenProperty", "Lkotlin/reflect/jvm/internal/impl/descriptors/PropertyDescriptor;", "mapSignature", "Lkotlin/reflect/jvm/internal/JvmFunctionSignature;", "possiblySubstitutedFunction", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nRuntimeTypeMapper.kt\nKotlin\n*S Kotlin\n*F\n+ 1 RuntimeTypeMapper.kt\nkotlin/reflect/jvm/internal/RuntimeTypeMapper\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,302:1\n1#2:303\n*E\n"})
/* loaded from: classes3.dex */
public final class RuntimeTypeMapper {
public static final RuntimeTypeMapper INSTANCE = new RuntimeTypeMapper();
private static final ClassId JAVA_LANG_VOID;
static {
ClassId classId = ClassId.topLevel(new FqName("java.lang.Void"));
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
JAVA_LANG_VOID = classId;
}
private RuntimeTypeMapper() {
}
private final PrimitiveType getPrimitiveType(Class<?> cls) {
if (cls.isPrimitive()) {
return JvmPrimitiveType.get(cls.getSimpleName()).getPrimitiveType();
}
return null;
}
private final boolean isKnownBuiltInFunction(FunctionDescriptor descriptor) {
if (DescriptorFactory.isEnumValueOfMethod(descriptor) || DescriptorFactory.isEnumValuesMethod(descriptor)) {
return true;
}
return Intrinsics.areEqual(descriptor.getName(), CloneableClassScope.Companion.getCLONE_NAME()) && descriptor.getValueParameters().isEmpty();
}
private final JvmFunctionSignature.KotlinFunction mapJvmFunctionSignature(FunctionDescriptor descriptor) {
return new JvmFunctionSignature.KotlinFunction(new JvmMemberSignature.Method(mapName(descriptor), MethodSignatureMappingKt.computeJvmDescriptor$default(descriptor, false, false, 1, null)));
}
private final String mapName(CallableMemberDescriptor descriptor) {
String jvmMethodNameIfSpecial = SpecialBuiltinMembers.getJvmMethodNameIfSpecial(descriptor);
if (jvmMethodNameIfSpecial != null) {
return jvmMethodNameIfSpecial;
}
if (descriptor instanceof PropertyGetterDescriptor) {
String asString = DescriptorUtilsKt.getPropertyIfAccessor(descriptor).getName().asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
return JvmAbi.getterName(asString);
}
if (descriptor instanceof PropertySetterDescriptor) {
String asString2 = DescriptorUtilsKt.getPropertyIfAccessor(descriptor).getName().asString();
Intrinsics.checkNotNullExpressionValue(asString2, "asString(...)");
return JvmAbi.setterName(asString2);
}
String asString3 = descriptor.getName().asString();
Intrinsics.checkNotNullExpressionValue(asString3, "asString(...)");
return asString3;
}
public final ClassId mapJvmClassToKotlinClassId(Class<?> klass) {
Intrinsics.checkNotNullParameter(klass, "klass");
if (klass.isArray()) {
Class<?> componentType = klass.getComponentType();
Intrinsics.checkNotNullExpressionValue(componentType, "getComponentType(...)");
PrimitiveType primitiveType = getPrimitiveType(componentType);
if (primitiveType != null) {
return new ClassId(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, primitiveType.getArrayTypeName());
}
ClassId classId = ClassId.topLevel(StandardNames.FqNames.array.toSafe());
Intrinsics.checkNotNullExpressionValue(classId, "topLevel(...)");
return classId;
}
if (Intrinsics.areEqual(klass, Void.TYPE)) {
return JAVA_LANG_VOID;
}
PrimitiveType primitiveType2 = getPrimitiveType(klass);
if (primitiveType2 != null) {
return new ClassId(StandardNames.BUILT_INS_PACKAGE_FQ_NAME, primitiveType2.getTypeName());
}
ClassId classId2 = ReflectClassUtilKt.getClassId(klass);
if (!classId2.isLocal()) {
JavaToKotlinClassMap javaToKotlinClassMap = JavaToKotlinClassMap.INSTANCE;
FqName asSingleFqName = classId2.asSingleFqName();
Intrinsics.checkNotNullExpressionValue(asSingleFqName, "asSingleFqName(...)");
ClassId mapJavaToKotlin = javaToKotlinClassMap.mapJavaToKotlin(asSingleFqName);
if (mapJavaToKotlin != null) {
return mapJavaToKotlin;
}
}
return classId2;
}
public final JvmPropertySignature mapPropertySignature(PropertyDescriptor possiblyOverriddenProperty) {
Intrinsics.checkNotNullParameter(possiblyOverriddenProperty, "possiblyOverriddenProperty");
PropertyDescriptor original = ((PropertyDescriptor) DescriptorUtils.unwrapFakeOverride(possiblyOverriddenProperty)).getOriginal();
Intrinsics.checkNotNullExpressionValue(original, "getOriginal(...)");
if (original instanceof DeserializedPropertyDescriptor) {
DeserializedPropertyDescriptor deserializedPropertyDescriptor = (DeserializedPropertyDescriptor) original;
ProtoBuf.Property proto = deserializedPropertyDescriptor.getProto();
GeneratedMessageLite.GeneratedExtension<ProtoBuf.Property, JvmProtoBuf.JvmPropertySignature> propertySignature = JvmProtoBuf.propertySignature;
Intrinsics.checkNotNullExpressionValue(propertySignature, "propertySignature");
JvmProtoBuf.JvmPropertySignature jvmPropertySignature = (JvmProtoBuf.JvmPropertySignature) ProtoBufUtilKt.getExtensionOrNull(proto, propertySignature);
if (jvmPropertySignature != null) {
return new JvmPropertySignature.KotlinProperty(original, proto, jvmPropertySignature, deserializedPropertyDescriptor.getNameResolver(), deserializedPropertyDescriptor.getTypeTable());
}
} else if (original instanceof JavaPropertyDescriptor) {
SourceElement source = ((JavaPropertyDescriptor) original).getSource();
JavaSourceElement javaSourceElement = source instanceof JavaSourceElement ? (JavaSourceElement) source : null;
JavaElement javaElement = javaSourceElement != null ? javaSourceElement.getJavaElement() : null;
if (javaElement instanceof ReflectJavaField) {
return new JvmPropertySignature.JavaField(((ReflectJavaField) javaElement).getMember());
}
if (!(javaElement instanceof ReflectJavaMethod)) {
throw new KotlinReflectionInternalError("Incorrect resolution sequence for Java field " + original + " (source = " + javaElement + ')');
}
Method member = ((ReflectJavaMethod) javaElement).getMember();
PropertySetterDescriptor setter = original.getSetter();
SourceElement source2 = setter != null ? setter.getSource() : null;
JavaSourceElement javaSourceElement2 = source2 instanceof JavaSourceElement ? (JavaSourceElement) source2 : null;
JavaElement javaElement2 = javaSourceElement2 != null ? javaSourceElement2.getJavaElement() : null;
ReflectJavaMethod reflectJavaMethod = javaElement2 instanceof ReflectJavaMethod ? (ReflectJavaMethod) javaElement2 : null;
return new JvmPropertySignature.JavaMethodProperty(member, reflectJavaMethod != null ? reflectJavaMethod.getMember() : null);
}
PropertyGetterDescriptor getter = original.getGetter();
Intrinsics.checkNotNull(getter);
JvmFunctionSignature.KotlinFunction mapJvmFunctionSignature = mapJvmFunctionSignature(getter);
PropertySetterDescriptor setter2 = original.getSetter();
return new JvmPropertySignature.MappedKotlinProperty(mapJvmFunctionSignature, setter2 != null ? mapJvmFunctionSignature(setter2) : null);
}
/* JADX WARN: Code restructure failed: missing block: B:25:0x0095, code lost:
if (r8 != false) goto L36;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public final kotlin.reflect.jvm.internal.JvmFunctionSignature mapSignature(kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor r9) {
/*
Method dump skipped, instructions count: 518
To view this dump add '--comments-level debug' option
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.RuntimeTypeMapper.mapSignature(kotlin.reflect.jvm.internal.impl.descriptors.FunctionDescriptor):kotlin.reflect.jvm.internal.JvmFunctionSignature");
}
}
@@ -0,0 +1,33 @@
package kotlin.reflect.jvm.internal;
import java.lang.reflect.Method;
import kotlin.Metadata;
import kotlin.collections.ArraysKt___ArraysKt;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u0018\u0010\u0000\u001a\u00020\u0001*\u00020\u00028BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"signature", "", "Ljava/lang/reflect/Method;", "getSignature", "(Ljava/lang/reflect/Method;)Ljava/lang/String;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class RuntimeTypeMapperKt {
/* JADX INFO: Access modifiers changed from: private */
public static final String getSignature(Method method) {
String joinToString$default;
StringBuilder sb = new StringBuilder();
sb.append(method.getName());
Class<?>[] parameterTypes = method.getParameterTypes();
Intrinsics.checkNotNullExpressionValue(parameterTypes, "getParameterTypes(...)");
joinToString$default = ArraysKt___ArraysKt.joinToString$default(parameterTypes, "", "(", ")", 0, (CharSequence) null, new Function1<Class<?>, CharSequence>() { // from class: kotlin.reflect.jvm.internal.RuntimeTypeMapperKt$signature$1
@Override // kotlin.jvm.functions.Function1
public final CharSequence invoke(Class<?> cls) {
Intrinsics.checkNotNull(cls);
return ReflectClassUtilKt.getDesc(cls);
}
}, 24, (Object) null);
sb.append(joinToString$default);
Class<?> returnType = method.getReturnType();
Intrinsics.checkNotNullExpressionValue(returnType, "getReturnType(...)");
sb.append(ReflectClassUtilKt.getDesc(returnType));
return sb.toString();
}
}
@@ -0,0 +1,72 @@
package kotlin.reflect.jvm.internal;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KType;
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
import kotlin.reflect.jvm.internal.impl.name.FqName;
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.KotlinTypeFactory;
import kotlin.reflect.jvm.internal.impl.types.SimpleType;
import kotlin.reflect.jvm.internal.impl.types.TypeAttributes;
import kotlin.reflect.jvm.internal.impl.types.TypeConstructor;
import kotlin.reflect.jvm.internal.impl.types.typeUtil.TypeUtilsKt;
@Metadata(d1 = {"\u0000\u0010\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0000\u001a\u0010\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0000\u001a\u0010\u0010\u0003\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0001H\u0000\u001a\u0018\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u00012\u0006\u0010\u0006\u001a\u00020\u0001H\u0000\u001a\f\u0010\u0007\u001a\u00020\b*\u00020\bH\u0002¨\u0006\t"}, d2 = {"createMutableCollectionKType", "Lkotlin/reflect/KType;", "type", "createNothingType", "createPlatformKType", "lowerBound", "upperBound", "readOnlyToMutable", "Lkotlin/reflect/jvm/internal/impl/descriptors/ClassDescriptor;", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\ntypeOfImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 typeOfImpl.kt\nkotlin/reflect/jvm/internal/TypeOfImplKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,51:1\n1#2:52\n*E\n"})
/* loaded from: classes3.dex */
public final class TypeOfImplKt {
public static final KType createMutableCollectionKType(KType type) {
Intrinsics.checkNotNullParameter(type, "type");
KotlinType type2 = ((KTypeImpl) type).getType();
if (!(type2 instanceof SimpleType)) {
throw new IllegalArgumentException(("Non-simple type cannot be a mutable collection type: " + type).toString());
}
ClassifierDescriptor mo1394getDeclarationDescriptor = type2.getConstructor().mo1394getDeclarationDescriptor();
ClassDescriptor classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
if (classDescriptor == null) {
throw new IllegalArgumentException("Non-class type cannot be a mutable collection type: " + type);
}
SimpleType simpleType = (SimpleType) type2;
TypeConstructor typeConstructor = readOnlyToMutable(classDescriptor).getTypeConstructor();
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
return new KTypeImpl(KotlinTypeFactory.simpleType$default(simpleType, (TypeAttributes) null, typeConstructor, (List) null, false, 26, (Object) null), null, 2, null);
}
public static final KType createNothingType(KType type) {
Intrinsics.checkNotNullParameter(type, "type");
KotlinType type2 = ((KTypeImpl) type).getType();
if (!(type2 instanceof SimpleType)) {
throw new IllegalArgumentException(("Non-simple type cannot be a Nothing type: " + type).toString());
}
SimpleType simpleType = (SimpleType) type2;
TypeConstructor typeConstructor = TypeUtilsKt.getBuiltIns(type2).getNothing().getTypeConstructor();
Intrinsics.checkNotNullExpressionValue(typeConstructor, "getTypeConstructor(...)");
return new KTypeImpl(KotlinTypeFactory.simpleType$default(simpleType, (TypeAttributes) null, typeConstructor, (List) null, false, 26, (Object) null), null, 2, null);
}
public static final KType createPlatformKType(KType lowerBound, KType upperBound) {
Intrinsics.checkNotNullParameter(lowerBound, "lowerBound");
Intrinsics.checkNotNullParameter(upperBound, "upperBound");
KotlinType type = ((KTypeImpl) lowerBound).getType();
Intrinsics.checkNotNull(type, "null cannot be cast to non-null type org.jetbrains.kotlin.types.SimpleType");
KotlinType type2 = ((KTypeImpl) upperBound).getType();
Intrinsics.checkNotNull(type2, "null cannot be cast to non-null type org.jetbrains.kotlin.types.SimpleType");
return new KTypeImpl(KotlinTypeFactory.flexibleType((SimpleType) type, (SimpleType) type2), null, 2, null);
}
private static final ClassDescriptor readOnlyToMutable(ClassDescriptor classDescriptor) {
FqName readOnlyToMutable = JavaToKotlinClassMap.INSTANCE.readOnlyToMutable(DescriptorUtilsKt.getFqNameUnsafe(classDescriptor));
if (readOnlyToMutable != null) {
ClassDescriptor builtInClassByFqName = DescriptorUtilsKt.getBuiltIns(classDescriptor).getBuiltInClassByFqName(readOnlyToMutable);
Intrinsics.checkNotNullExpressionValue(builtInClassByFqName, "getBuiltInClassByFqName(...)");
return builtInClassByFqName;
}
throw new IllegalArgumentException("Not a readonly collection: " + classDescriptor);
}
}
@@ -0,0 +1,8 @@
package kotlin.reflect.jvm.internal;
/* loaded from: classes3.dex */
class Util {
public static Object getEnumConstantByName(Class<? extends Enum<?>> cls, String str) {
return Enum.valueOf(cls, str);
}
}
@@ -0,0 +1,693 @@
package kotlin.reflect.jvm.internal;
import com.google.android.gms.maps.model.BitmapDescriptorFactory;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import com.google.firebase.remoteconfig.RemoteConfigConstants;
import java.lang.annotation.Annotation;
import java.lang.reflect.Array;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Metadata;
import kotlin.NoWhenBranchMatchedException;
import kotlin.Pair;
import kotlin.TuplesKt;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
import kotlin.collections.MapsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.functions.Function2;
import kotlin.jvm.internal.FunctionReference;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.PropertyReference;
import kotlin.jvm.internal.RepeatableContainer;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KCallable;
import kotlin.reflect.KType;
import kotlin.reflect.KVisibility;
import kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt;
import kotlin.reflect.jvm.internal.impl.builtins.KotlinBuiltIns;
import kotlin.reflect.jvm.internal.impl.builtins.PrimitiveType;
import kotlin.reflect.jvm.internal.impl.builtins.jvm.JavaToKotlinClassMap;
import kotlin.reflect.jvm.internal.impl.descriptors.CallableDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ClassifierDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DeclarationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibilities;
import kotlin.reflect.jvm.internal.impl.descriptors.DescriptorVisibility;
import kotlin.reflect.jvm.internal.impl.descriptors.ModuleDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.ReceiverParameterDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.SourceElement;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotated;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.AnnotationDescriptor;
import kotlin.reflect.jvm.internal.impl.descriptors.annotations.Annotations;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectAnnotationSource;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectJavaClassFinderKt;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.ReflectKotlinClass;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeModuleData;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.components.RuntimeSourceElementFactory;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaAnnotation;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaClass;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectJavaElement;
import kotlin.reflect.jvm.internal.impl.load.kotlin.KotlinJvmBinaryClass;
import kotlin.reflect.jvm.internal.impl.load.kotlin.KotlinJvmBinarySourceElement;
import kotlin.reflect.jvm.internal.impl.metadata.ProtoBuf;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.BinaryVersion;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.NameResolver;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.TypeTable;
import kotlin.reflect.jvm.internal.impl.metadata.deserialization.VersionRequirementTable;
import kotlin.reflect.jvm.internal.impl.name.ClassId;
import kotlin.reflect.jvm.internal.impl.name.FqName;
import kotlin.reflect.jvm.internal.impl.name.FqNameUnsafe;
import kotlin.reflect.jvm.internal.impl.name.Name;
import kotlin.reflect.jvm.internal.impl.protobuf.MessageLite;
import kotlin.reflect.jvm.internal.impl.resolve.InlineClassesUtilsKt;
import kotlin.reflect.jvm.internal.impl.resolve.constants.AnnotationValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.ArrayValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.ConstantValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.EnumValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.ErrorValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.KClassValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.NullValue;
import kotlin.reflect.jvm.internal.impl.resolve.constants.TypedArrayValue;
import kotlin.reflect.jvm.internal.impl.resolve.descriptorUtil.DescriptorUtilsKt;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationComponents;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.DeserializationContext;
import kotlin.reflect.jvm.internal.impl.serialization.deserialization.MemberDeserializer;
import kotlin.reflect.jvm.internal.impl.types.KotlinType;
import kotlin.reflect.jvm.internal.impl.types.TypeProjection;
import kotlin.text.StringsKt__StringsJVMKt;
import kotlin.text.Typography;
@Metadata(d1 = {"\u0000à\u0001\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u001b\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0012\u0010\u000f\u001a\u0004\u0018\u00010\u00102\u0006\u0010\u0011\u001a\u00020\u0012H\u0000\u001al\u0010\u0013\u001a\u0002H\u0014\"\b\b\u0000\u0010\u0015*\u00020\u0016\"\b\b\u0001\u0010\u0014*\u00020\u00062\n\u0010\u0017\u001a\u0006\u0012\u0002\b\u00030\u00182\u0006\u0010\u0019\u001a\u0002H\u00152\u0006\u0010\u001a\u001a\u00020\u001b2\u0006\u0010\u001c\u001a\u00020\u001d2\u0006\u0010\u001e\u001a\u00020\u001f2\u001d\u0010 \u001a\u0019\u0012\u0004\u0012\u00020\"\u0012\u0004\u0012\u0002H\u0015\u0012\u0004\u0012\u0002H\u00140!¢\u0006\u0002\b#H\u0000¢\u0006\u0002\u0010$\u001a.\u0010%\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00182\u0006\u0010&\u001a\u00020'2\u0006\u0010(\u001a\u00020)2\u0006\u0010*\u001a\u00020)2\u0006\u0010+\u001a\u00020,H\u0002\u001a(\u0010%\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u00182\u0006\u0010&\u001a\u00020'2\u0006\u0010-\u001a\u00020.2\b\b\u0002\u0010+\u001a\u00020,H\u0002\u001a%\u0010/\u001a\u0002H0\"\u0004\b\u0000\u001002\f\u00101\u001a\b\u0012\u0004\u0012\u0002H002H\u0080\bø\u0001\u0000¢\u0006\u0002\u00103\u001a\u0016\u00104\u001a\u0004\u0018\u00010\u0010*\u0002052\u0006\u0010&\u001a\u00020'H\u0002\u001a\u0014\u00106\u001a\b\u0012\u0002\b\u0003\u0018\u000107*\u0004\u0018\u00010\u0010H\u0000\u001a\u0010\u00108\u001a\u0004\u0018\u000109*\u0004\u0018\u00010\u0010H\u0000\u001a\u0014\u0010:\u001a\b\u0012\u0002\b\u0003\u0018\u00010;*\u0004\u0018\u00010\u0010H\u0000\u001a\u0012\u0010<\u001a\b\u0012\u0004\u0012\u00020>0=*\u00020?H\u0000\u001a\u0014\u0010@\u001a\u0006\u0012\u0002\b\u00030\u0018*\u0006\u0012\u0002\b\u00030\u0018H\u0000\u001a\u001a\u0010A\u001a\u0004\u0018\u00010B*\u0006\u0012\u0002\b\u00030\u00182\u0006\u0010C\u001a\u00020)H\u0000\u001a;\u0010D\u001a\u0004\u0018\u00010E*\u0006\u0012\u0002\b\u00030\u00182\u0006\u0010C\u001a\u00020)2\u001a\u0010F\u001a\u000e\u0012\n\b\u0001\u0012\u0006\u0012\u0002\b\u00030\u00180G\"\u0006\u0012\u0002\b\u00030\u0018H\u0000¢\u0006\u0002\u0010H\u001a\u000e\u0010I\u001a\u0004\u0018\u00010>*\u00020JH\u0002\u001a\u0012\u0010K\u001a\b\u0012\u0002\b\u0003\u0018\u00010\u0018*\u00020LH\u0000\u001a\u000e\u0010M\u001a\u0004\u0018\u00010N*\u00020OH\u0000\u001a\u001a\u0010P\u001a\u0004\u0018\u00010\u0010*\u0006\u0012\u0002\b\u00030Q2\u0006\u0010&\u001a\u00020'H\u0002\u001a\u0018\u0010R\u001a\b\u0012\u0004\u0012\u00020>0=*\b\u0012\u0004\u0012\u00020>0=H\u0002\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003\"\u001a\u0010\u0004\u001a\u0004\u0018\u00010\u0005*\u00020\u00068@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b\"\u0018\u0010\t\u001a\u00020\n*\u00020\u000b8@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\f\"\u0018\u0010\r\u001a\u00020\n*\u00020\u000b8@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\f\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006S"}, d2 = {"JVM_STATIC", "Lkotlin/reflect/jvm/internal/impl/name/FqName;", "getJVM_STATIC", "()Lorg/jetbrains/kotlin/name/FqName;", "instanceReceiverParameter", "Lkotlin/reflect/jvm/internal/impl/descriptors/ReceiverParameterDescriptor;", "Lkotlin/reflect/jvm/internal/impl/descriptors/CallableDescriptor;", "getInstanceReceiverParameter", "(Lorg/jetbrains/kotlin/descriptors/CallableDescriptor;)Lorg/jetbrains/kotlin/descriptors/ReceiverParameterDescriptor;", "isInlineClassType", "", "Lkotlin/reflect/KType;", "(Lkotlin/reflect/KType;)Z", "needsMultiFieldValueClassFlattening", "getNeedsMultiFieldValueClassFlattening", "defaultPrimitiveValue", "", "type", "Ljava/lang/reflect/Type;", "deserializeToDescriptor", "D", "M", "Lkotlin/reflect/jvm/internal/impl/protobuf/MessageLite;", "moduleAnchor", "Ljava/lang/Class;", "proto", "nameResolver", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/NameResolver;", "typeTable", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/TypeTable;", "metadataVersion", "Lkotlin/reflect/jvm/internal/impl/metadata/deserialization/BinaryVersion;", "cLine truncated
@SourceDebugExtension({"SMAP\nutil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 util.kt\nkotlin/reflect/jvm/internal/UtilKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,330:1\n1603#2,9:331\n1855#2:340\n1856#2:342\n1612#2:343\n1747#2,3:344\n1360#2:347\n1446#2,5:348\n1603#2,9:353\n1855#2:362\n1856#2:365\n1612#2:366\n1549#2:367\n1620#2,3:368\n1#3:341\n1#3:363\n1#3:364\n1#3:371\n*S KotlinDebug\n*F\n+ 1 util.kt\nkotlin/reflect/jvm/internal/UtilKt\n*L\n134#1:331,9\n134#1:340\n134#1:342\n134#1:343\n143#1:344,3\n144#1:347\n144#1:348,5\n164#1:353,9\n164#1:362\n164#1:365\n164#1:366\n194#1:367\n194#1:368,3\n134#1:341\n164#1:364\n*E\n"})
/* loaded from: classes3.dex */
public final class UtilKt {
private static final FqName JVM_STATIC = new FqName("kotlin.jvm.JvmStatic");
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public /* synthetic */ class WhenMappings {
public static final /* synthetic */ int[] $EnumSwitchMapping$0;
static {
int[] iArr = new int[PrimitiveType.values().length];
try {
iArr[PrimitiveType.BOOLEAN.ordinal()] = 1;
} catch (NoSuchFieldError unused) {
}
try {
iArr[PrimitiveType.CHAR.ordinal()] = 2;
} catch (NoSuchFieldError unused2) {
}
try {
iArr[PrimitiveType.BYTE.ordinal()] = 3;
} catch (NoSuchFieldError unused3) {
}
try {
iArr[PrimitiveType.SHORT.ordinal()] = 4;
} catch (NoSuchFieldError unused4) {
}
try {
iArr[PrimitiveType.INT.ordinal()] = 5;
} catch (NoSuchFieldError unused5) {
}
try {
iArr[PrimitiveType.FLOAT.ordinal()] = 6;
} catch (NoSuchFieldError unused6) {
}
try {
iArr[PrimitiveType.LONG.ordinal()] = 7;
} catch (NoSuchFieldError unused7) {
}
try {
iArr[PrimitiveType.DOUBLE.ordinal()] = 8;
} catch (NoSuchFieldError unused8) {
}
$EnumSwitchMapping$0 = iArr;
}
}
/* JADX WARN: Multi-variable type inference failed */
private static final Object arrayToRuntimeValue(ArrayValue arrayValue, ClassLoader classLoader) {
KotlinType type;
int collectionSizeOrDefault;
Class loadClass$default;
TypedArrayValue typedArrayValue = arrayValue instanceof TypedArrayValue ? (TypedArrayValue) arrayValue : null;
if (typedArrayValue != null && (type = typedArrayValue.getType()) != null) {
List<? extends ConstantValue<?>> value = arrayValue.getValue();
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(value, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator<T> it = value.iterator();
while (it.hasNext()) {
arrayList.add(toRuntimeValue((ConstantValue) it.next(), classLoader));
}
PrimitiveType primitiveArrayElementType = KotlinBuiltIns.getPrimitiveArrayElementType(type);
int i = 0;
switch (primitiveArrayElementType == null ? -1 : WhenMappings.$EnumSwitchMapping$0[primitiveArrayElementType.ordinal()]) {
case -1:
if (!KotlinBuiltIns.isArray(type)) {
throw new IllegalStateException(("Not an array type: " + type).toString());
}
KotlinType type2 = ((TypeProjection) CollectionsKt.single((List) type.getArguments())).getType();
Intrinsics.checkNotNullExpressionValue(type2, "getType(...)");
ClassifierDescriptor mo1394getDeclarationDescriptor = type2.getConstructor().mo1394getDeclarationDescriptor();
ClassDescriptor classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
if (classDescriptor == null) {
throw new IllegalStateException(("Not a class type: " + type2).toString());
}
if (KotlinBuiltIns.isString(type2)) {
int size = arrayValue.getValue().size();
String[] strArr = new String[size];
while (i < size) {
Object obj = arrayList.get(i);
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.String");
strArr[i] = obj;
i++;
}
return strArr;
}
if (KotlinBuiltIns.isKClass(classDescriptor)) {
int size2 = arrayValue.getValue().size();
Class[] clsArr = new Class[size2];
while (i < size2) {
Object obj2 = arrayList.get(i);
Intrinsics.checkNotNull(obj2, "null cannot be cast to non-null type java.lang.Class<*>");
clsArr[i] = obj2;
i++;
}
return clsArr;
}
ClassId classId = DescriptorUtilsKt.getClassId(classDescriptor);
if (classId != null && (loadClass$default = loadClass$default(classLoader, classId, 0, 4, null)) != null) {
Object newInstance = Array.newInstance((Class<?>) loadClass$default, arrayValue.getValue().size());
Intrinsics.checkNotNull(newInstance, "null cannot be cast to non-null type kotlin.Array<in kotlin.Any?>");
Object[] objArr = (Object[]) newInstance;
int size3 = arrayList.size();
while (i < size3) {
objArr[i] = arrayList.get(i);
i++;
}
return objArr;
}
break;
case 0:
default:
throw new NoWhenBranchMatchedException();
case 1:
int size4 = arrayValue.getValue().size();
boolean[] zArr = new boolean[size4];
while (i < size4) {
Object obj3 = arrayList.get(i);
Intrinsics.checkNotNull(obj3, "null cannot be cast to non-null type kotlin.Boolean");
zArr[i] = ((Boolean) obj3).booleanValue();
i++;
}
return zArr;
case 2:
int size5 = arrayValue.getValue().size();
char[] cArr = new char[size5];
while (i < size5) {
Object obj4 = arrayList.get(i);
Intrinsics.checkNotNull(obj4, "null cannot be cast to non-null type kotlin.Char");
cArr[i] = ((Character) obj4).charValue();
i++;
}
return cArr;
case 3:
int size6 = arrayValue.getValue().size();
byte[] bArr = new byte[size6];
while (i < size6) {
Object obj5 = arrayList.get(i);
Intrinsics.checkNotNull(obj5, "null cannot be cast to non-null type kotlin.Byte");
bArr[i] = ((Byte) obj5).byteValue();
i++;
}
return bArr;
case 4:
int size7 = arrayValue.getValue().size();
short[] sArr = new short[size7];
while (i < size7) {
Object obj6 = arrayList.get(i);
Intrinsics.checkNotNull(obj6, "null cannot be cast to non-null type kotlin.Short");
sArr[i] = ((Short) obj6).shortValue();
i++;
}
return sArr;
case 5:
int size8 = arrayValue.getValue().size();
int[] iArr = new int[size8];
while (i < size8) {
Object obj7 = arrayList.get(i);
Intrinsics.checkNotNull(obj7, "null cannot be cast to non-null type kotlin.Int");
iArr[i] = ((Integer) obj7).intValue();
i++;
}
return iArr;
case 6:
int size9 = arrayValue.getValue().size();
float[] fArr = new float[size9];
while (i < size9) {
Object obj8 = arrayList.get(i);
Intrinsics.checkNotNull(obj8, "null cannot be cast to non-null type kotlin.Float");
fArr[i] = ((Float) obj8).floatValue();
i++;
}
return fArr;
case 7:
int size10 = arrayValue.getValue().size();
long[] jArr = new long[size10];
while (i < size10) {
Object obj9 = arrayList.get(i);
Intrinsics.checkNotNull(obj9, "null cannot be cast to non-null type kotlin.Long");
jArr[i] = ((Long) obj9).longValue();
i++;
}
return jArr;
case 8:
int size11 = arrayValue.getValue().size();
double[] dArr = new double[size11];
while (i < size11) {
Object obj10 = arrayList.get(i);
Intrinsics.checkNotNull(obj10, "null cannot be cast to non-null type kotlin.Double");
dArr[i] = ((Double) obj10).doubleValue();
i++;
}
return dArr;
}
}
return null;
}
public static final KCallableImpl<?> asKCallableImpl(Object obj) {
KCallableImpl<?> kCallableImpl = obj instanceof KCallableImpl ? (KCallableImpl) obj : null;
if (kCallableImpl != null) {
return kCallableImpl;
}
KFunctionImpl asKFunctionImpl = asKFunctionImpl(obj);
return asKFunctionImpl != null ? asKFunctionImpl : asKPropertyImpl(obj);
}
public static final KFunctionImpl asKFunctionImpl(Object obj) {
KFunctionImpl kFunctionImpl = obj instanceof KFunctionImpl ? (KFunctionImpl) obj : null;
if (kFunctionImpl != null) {
return kFunctionImpl;
}
FunctionReference functionReference = obj instanceof FunctionReference ? (FunctionReference) obj : null;
KCallable compute = functionReference != null ? functionReference.compute() : null;
if (compute instanceof KFunctionImpl) {
return (KFunctionImpl) compute;
}
return null;
}
public static final KPropertyImpl<?> asKPropertyImpl(Object obj) {
KPropertyImpl<?> kPropertyImpl = obj instanceof KPropertyImpl ? (KPropertyImpl) obj : null;
if (kPropertyImpl != null) {
return kPropertyImpl;
}
PropertyReference propertyReference = obj instanceof PropertyReference ? (PropertyReference) obj : null;
KCallable compute = propertyReference != null ? propertyReference.compute() : null;
if (compute instanceof KPropertyImpl) {
return (KPropertyImpl) compute;
}
return null;
}
public static final List<Annotation> computeAnnotations(Annotated annotated) {
Annotation annotationInstance;
Intrinsics.checkNotNullParameter(annotated, "<this>");
Annotations annotations = annotated.getAnnotations();
ArrayList arrayList = new ArrayList();
for (AnnotationDescriptor annotationDescriptor : annotations) {
SourceElement source = annotationDescriptor.getSource();
if (source instanceof ReflectAnnotationSource) {
annotationInstance = ((ReflectAnnotationSource) source).getAnnotation();
} else if (source instanceof RuntimeSourceElementFactory.RuntimeSourceElement) {
ReflectJavaElement javaElement = ((RuntimeSourceElementFactory.RuntimeSourceElement) source).getJavaElement();
ReflectJavaAnnotation reflectJavaAnnotation = javaElement instanceof ReflectJavaAnnotation ? (ReflectJavaAnnotation) javaElement : null;
annotationInstance = reflectJavaAnnotation != null ? reflectJavaAnnotation.getAnnotation() : null;
} else {
annotationInstance = toAnnotationInstance(annotationDescriptor);
}
if (annotationInstance != null) {
arrayList.add(annotationInstance);
}
}
return unwrapRepeatableAnnotations(arrayList);
}
public static final Class<?> createArrayType(Class<?> cls) {
Intrinsics.checkNotNullParameter(cls, "<this>");
return Array.newInstance(cls, 0).getClass();
}
public static final Object defaultPrimitiveValue(Type type) {
Intrinsics.checkNotNullParameter(type, "type");
if (!(type instanceof Class) || !((Class) type).isPrimitive()) {
return null;
}
if (Intrinsics.areEqual(type, Boolean.TYPE)) {
return Boolean.FALSE;
}
if (Intrinsics.areEqual(type, Character.TYPE)) {
return (char) 0;
}
if (Intrinsics.areEqual(type, Byte.TYPE)) {
return (byte) 0;
}
if (Intrinsics.areEqual(type, Short.TYPE)) {
return (short) 0;
}
if (Intrinsics.areEqual(type, Integer.TYPE)) {
return 0;
}
if (Intrinsics.areEqual(type, Float.TYPE)) {
return Float.valueOf(BitmapDescriptorFactory.HUE_RED);
}
if (Intrinsics.areEqual(type, Long.TYPE)) {
return 0L;
}
if (Intrinsics.areEqual(type, Double.TYPE)) {
return Double.valueOf(FirebaseRemoteConfig.DEFAULT_VALUE_FOR_DOUBLE);
}
if (Intrinsics.areEqual(type, Void.TYPE)) {
throw new IllegalStateException("Parameter with void type is illegal");
}
throw new UnsupportedOperationException("Unknown primitive: " + type);
}
public static final <M extends MessageLite, D extends CallableDescriptor> D deserializeToDescriptor(Class<?> moduleAnchor, M proto, NameResolver nameResolver, TypeTable typeTable, BinaryVersion metadataVersion, Function2<? super MemberDeserializer, ? super M, ? extends D> createDescriptor) {
List<ProtoBuf.TypeParameter> typeParameterList;
Intrinsics.checkNotNullParameter(moduleAnchor, "moduleAnchor");
Intrinsics.checkNotNullParameter(proto, "proto");
Intrinsics.checkNotNullParameter(nameResolver, "nameResolver");
Intrinsics.checkNotNullParameter(typeTable, "typeTable");
Intrinsics.checkNotNullParameter(metadataVersion, "metadataVersion");
Intrinsics.checkNotNullParameter(createDescriptor, "createDescriptor");
RuntimeModuleData orCreateModule = ModuleByClassLoaderKt.getOrCreateModule(moduleAnchor);
if (proto instanceof ProtoBuf.Function) {
typeParameterList = ((ProtoBuf.Function) proto).getTypeParameterList();
} else {
if (!(proto instanceof ProtoBuf.Property)) {
throw new IllegalStateException(("Unsupported message: " + proto).toString());
}
typeParameterList = ((ProtoBuf.Property) proto).getTypeParameterList();
}
List<ProtoBuf.TypeParameter> list = typeParameterList;
DeserializationComponents deserialization = orCreateModule.getDeserialization();
ModuleDescriptor module = orCreateModule.getModule();
VersionRequirementTable empty = VersionRequirementTable.Companion.getEMPTY();
Intrinsics.checkNotNull(list);
return createDescriptor.invoke(new MemberDeserializer(new DeserializationContext(deserialization, nameResolver, module, typeTable, empty, metadataVersion, null, null, list)), proto);
}
public static final Field getDeclaredFieldOrNull(Class<?> cls, String name) {
Intrinsics.checkNotNullParameter(cls, "<this>");
Intrinsics.checkNotNullParameter(name, "name");
try {
return cls.getDeclaredField(name);
} catch (NoSuchFieldException unused) {
return null;
}
}
public static final Method getDeclaredMethodOrNull(Class<?> cls, String name, Class<?>... parameterTypes) {
Intrinsics.checkNotNullParameter(cls, "<this>");
Intrinsics.checkNotNullParameter(name, "name");
Intrinsics.checkNotNullParameter(parameterTypes, "parameterTypes");
try {
return cls.getDeclaredMethod(name, (Class[]) Arrays.copyOf(parameterTypes, parameterTypes.length));
} catch (NoSuchMethodException unused) {
return null;
}
}
public static final ReceiverParameterDescriptor getInstanceReceiverParameter(CallableDescriptor callableDescriptor) {
Intrinsics.checkNotNullParameter(callableDescriptor, "<this>");
if (callableDescriptor.getDispatchReceiverParameter() == null) {
return null;
}
DeclarationDescriptor containingDeclaration = callableDescriptor.getContainingDeclaration();
Intrinsics.checkNotNull(containingDeclaration, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.ClassDescriptor");
return ((ClassDescriptor) containingDeclaration).getThisAsReceiverParameter();
}
public static final FqName getJVM_STATIC() {
return JVM_STATIC;
}
public static final boolean getNeedsMultiFieldValueClassFlattening(KType kType) {
KotlinType type;
Intrinsics.checkNotNullParameter(kType, "<this>");
KTypeImpl kTypeImpl = kType instanceof KTypeImpl ? (KTypeImpl) kType : null;
return (kTypeImpl == null || (type = kTypeImpl.getType()) == null || !InlineClassesUtilsKt.needsMfvcFlattening(type)) ? false : true;
}
public static final boolean isInlineClassType(KType kType) {
KotlinType type;
Intrinsics.checkNotNullParameter(kType, "<this>");
KTypeImpl kTypeImpl = kType instanceof KTypeImpl ? (KTypeImpl) kType : null;
return (kTypeImpl == null || (type = kTypeImpl.getType()) == null || !InlineClassesUtilsKt.isInlineClassType(type)) ? false : true;
}
private static final Class<?> loadClass(ClassLoader classLoader, ClassId classId, int i) {
JavaToKotlinClassMap javaToKotlinClassMap = JavaToKotlinClassMap.INSTANCE;
FqNameUnsafe unsafe = classId.asSingleFqName().toUnsafe();
Intrinsics.checkNotNullExpressionValue(unsafe, "toUnsafe(...)");
ClassId mapKotlinToJava = javaToKotlinClassMap.mapKotlinToJava(unsafe);
if (mapKotlinToJava != null) {
classId = mapKotlinToJava;
}
String asString = classId.getPackageFqName().asString();
Intrinsics.checkNotNullExpressionValue(asString, "asString(...)");
String asString2 = classId.getRelativeClassName().asString();
Intrinsics.checkNotNullExpressionValue(asString2, "asString(...)");
return loadClass(classLoader, asString, asString2, i);
}
public static /* synthetic */ Class loadClass$default(ClassLoader classLoader, ClassId classId, int i, int i4, Object obj) {
if ((i4 & 4) != 0) {
i = 0;
}
return loadClass(classLoader, classId, i);
}
private static final Annotation toAnnotationInstance(AnnotationDescriptor annotationDescriptor) {
ClassDescriptor annotationClass = DescriptorUtilsKt.getAnnotationClass(annotationDescriptor);
Class<?> javaClass = annotationClass != null ? toJavaClass(annotationClass) : null;
if (javaClass == null) {
javaClass = null;
}
if (javaClass == null) {
return null;
}
Set<Map.Entry<Name, ConstantValue<?>>> entrySet = annotationDescriptor.getAllValueArguments().entrySet();
ArrayList arrayList = new ArrayList();
Iterator<T> it = entrySet.iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Name name = (Name) entry.getKey();
ConstantValue constantValue = (ConstantValue) entry.getValue();
ClassLoader classLoader = javaClass.getClassLoader();
Intrinsics.checkNotNullExpressionValue(classLoader, "getClassLoader(...)");
Object runtimeValue = toRuntimeValue(constantValue, classLoader);
Pair pair = runtimeValue != null ? TuplesKt.to(name.asString(), runtimeValue) : null;
if (pair != null) {
arrayList.add(pair);
}
}
return (Annotation) AnnotationConstructorCallerKt.createAnnotationInstance$default(javaClass, MapsKt.toMap(arrayList), null, 4, null);
}
public static final Class<?> toJavaClass(ClassDescriptor classDescriptor) {
Intrinsics.checkNotNullParameter(classDescriptor, "<this>");
SourceElement source = classDescriptor.getSource();
Intrinsics.checkNotNullExpressionValue(source, "getSource(...)");
if (source instanceof KotlinJvmBinarySourceElement) {
KotlinJvmBinaryClass binaryClass = ((KotlinJvmBinarySourceElement) source).getBinaryClass();
Intrinsics.checkNotNull(binaryClass, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.runtime.components.ReflectKotlinClass");
return ((ReflectKotlinClass) binaryClass).getKlass();
}
if (source instanceof RuntimeSourceElementFactory.RuntimeSourceElement) {
ReflectJavaElement javaElement = ((RuntimeSourceElementFactory.RuntimeSourceElement) source).getJavaElement();
Intrinsics.checkNotNull(javaElement, "null cannot be cast to non-null type org.jetbrains.kotlin.descriptors.runtime.structure.ReflectJavaClass");
return ((ReflectJavaClass) javaElement).getElement();
}
ClassId classId = DescriptorUtilsKt.getClassId(classDescriptor);
if (classId == null) {
return null;
}
return loadClass(ReflectClassUtilKt.getSafeClassLoader(classDescriptor.getClass()), classId, 0);
}
public static final KVisibility toKVisibility(DescriptorVisibility descriptorVisibility) {
Intrinsics.checkNotNullParameter(descriptorVisibility, "<this>");
if (Intrinsics.areEqual(descriptorVisibility, DescriptorVisibilities.PUBLIC)) {
return KVisibility.PUBLIC;
}
if (Intrinsics.areEqual(descriptorVisibility, DescriptorVisibilities.PROTECTED)) {
return KVisibility.PROTECTED;
}
if (Intrinsics.areEqual(descriptorVisibility, DescriptorVisibilities.INTERNAL)) {
return KVisibility.INTERNAL;
}
if (Intrinsics.areEqual(descriptorVisibility, DescriptorVisibilities.PRIVATE) ? true : Intrinsics.areEqual(descriptorVisibility, DescriptorVisibilities.PRIVATE_TO_THIS)) {
return KVisibility.PRIVATE;
}
return null;
}
private static final Object toRuntimeValue(ConstantValue<?> constantValue, ClassLoader classLoader) {
if (constantValue instanceof AnnotationValue) {
return toAnnotationInstance(((AnnotationValue) constantValue).getValue());
}
if (constantValue instanceof ArrayValue) {
return arrayToRuntimeValue((ArrayValue) constantValue, classLoader);
}
if (constantValue instanceof EnumValue) {
Pair<? extends ClassId, ? extends Name> value = ((EnumValue) constantValue).getValue();
ClassId component1 = value.component1();
Name component2 = value.component2();
Class loadClass$default = loadClass$default(classLoader, component1, 0, 4, null);
if (loadClass$default != null) {
return Util.getEnumConstantByName(loadClass$default, component2.asString());
}
return null;
}
if (!(constantValue instanceof KClassValue)) {
if (constantValue instanceof ErrorValue ? true : constantValue instanceof NullValue) {
return null;
}
return constantValue.getValue();
}
KClassValue.Value value2 = ((KClassValue) constantValue).getValue();
if (value2 instanceof KClassValue.Value.NormalClass) {
KClassValue.Value.NormalClass normalClass = (KClassValue.Value.NormalClass) value2;
return loadClass(classLoader, normalClass.getClassId(), normalClass.getArrayDimensions());
}
if (!(value2 instanceof KClassValue.Value.LocalClass)) {
throw new NoWhenBranchMatchedException();
}
ClassifierDescriptor mo1394getDeclarationDescriptor = ((KClassValue.Value.LocalClass) value2).getType().getConstructor().mo1394getDeclarationDescriptor();
ClassDescriptor classDescriptor = mo1394getDeclarationDescriptor instanceof ClassDescriptor ? (ClassDescriptor) mo1394getDeclarationDescriptor : null;
if (classDescriptor != null) {
return toJavaClass(classDescriptor);
}
return null;
}
/* JADX WARN: Multi-variable type inference failed */
/* JADX WARN: Type inference failed for: r7v0, types: [java.util.List<? extends java.lang.annotation.Annotation>] */
/* JADX WARN: Type inference failed for: r7v1, types: [java.util.Collection, java.util.ArrayList] */
/* JADX WARN: Type inference failed for: r7v2, types: [java.util.List<java.lang.annotation.Annotation>] */
private static final List<Annotation> unwrapRepeatableAnnotations(List<? extends Annotation> list) {
List listOf;
Iterable<Annotation> iterable = (Iterable) list;
if (!(iterable instanceof Collection) || !((Collection) iterable).isEmpty()) {
Iterator it = iterable.iterator();
while (true) {
if (!it.hasNext()) {
break;
}
if (Intrinsics.areEqual(JvmClassMappingKt.getJavaClass(JvmClassMappingKt.getAnnotationClass((Annotation) it.next())).getSimpleName(), "Container")) {
list = new ArrayList<>();
for (Annotation annotation : iterable) {
Class javaClass = JvmClassMappingKt.getJavaClass(JvmClassMappingKt.getAnnotationClass(annotation));
if (!Intrinsics.areEqual(javaClass.getSimpleName(), "Container") || javaClass.getAnnotation(RepeatableContainer.class) == null) {
listOf = CollectionsKt.listOf(annotation);
} else {
Object invoke = javaClass.getDeclaredMethod("value", new Class[0]).invoke(annotation, new Object[0]);
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Array<out kotlin.Annotation>");
listOf = ArraysKt.asList((Annotation[]) invoke);
}
CollectionsKt__MutableCollectionsKt.addAll((Collection) list, listOf);
}
}
}
}
return list;
}
private static final Class<?> loadClass(ClassLoader classLoader, String str, String str2, int i) {
String replace$default;
if (Intrinsics.areEqual(str, "kotlin")) {
switch (str2.hashCode()) {
case -901856463:
if (str2.equals("BooleanArray")) {
return boolean[].class;
}
break;
case -763279523:
if (str2.equals("ShortArray")) {
return short[].class;
}
break;
case -755911549:
if (str2.equals("CharArray")) {
return char[].class;
}
break;
case -74930671:
if (str2.equals("ByteArray")) {
return byte[].class;
}
break;
case 22374632:
if (str2.equals("DoubleArray")) {
return double[].class;
}
break;
case 63537721:
if (str2.equals("Array")) {
return Object[].class;
}
break;
case 601811914:
if (str2.equals("IntArray")) {
return int[].class;
}
break;
case 948852093:
if (str2.equals("FloatArray")) {
return float[].class;
}
break;
case 2104330525:
if (str2.equals("LongArray")) {
return long[].class;
}
break;
}
}
StringBuilder sb = new StringBuilder();
if (i > 0) {
for (int i4 = 0; i4 < i; i4++) {
sb.append("[");
}
sb.append("L");
}
if (str.length() > 0) {
sb.append(str.concat("."));
}
replace$default = StringsKt__StringsJVMKt.replace$default(str2, '.', Typography.dollar, false, 4, (Object) null);
sb.append(replace$default);
if (i > 0) {
sb.append(";");
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return ReflectJavaClassFinderKt.tryLoadClass(classLoader, sb2);
}
}
@@ -0,0 +1,39 @@
package kotlin.reflect.jvm.internal;
import java.lang.ref.WeakReference;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u00000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0013\u0010\u0011\u001a\u00020\u00122\b\u0010\u0013\u001a\u0004\u0018\u00010\u0001H\u0096\u0002J\b\u0010\u0014\u001a\u00020\u0006H\u0016J\b\u0010\u0015\u001a\u00020\u0016H\u0016R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0017\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00030\n¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u001c\u0010\r\u001a\u0004\u0018\u00010\u0003X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u000f\"\u0004\b\u0010\u0010\u0004¨\u0006\u0017"}, d2 = {"Lkotlin/reflect/jvm/internal/WeakClassLoaderBox;", "", "classLoader", "Ljava/lang/ClassLoader;", "(Ljava/lang/ClassLoader;)V", "identityHashCode", "", "getIdentityHashCode", "()I", "ref", "Ljava/lang/ref/WeakReference;", "getRef", "()Ljava/lang/ref/WeakReference;", "temporaryStrongRef", "getTemporaryStrongRef", "()Ljava/lang/ClassLoader;", "setTemporaryStrongRef", "equals", "", "other", "hashCode", "toString", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
final class WeakClassLoaderBox {
private final int identityHashCode;
private final WeakReference<ClassLoader> ref;
private ClassLoader temporaryStrongRef;
public WeakClassLoaderBox(ClassLoader classLoader) {
Intrinsics.checkNotNullParameter(classLoader, "classLoader");
this.ref = new WeakReference<>(classLoader);
this.identityHashCode = System.identityHashCode(classLoader);
this.temporaryStrongRef = classLoader;
}
public boolean equals(Object other) {
return (other instanceof WeakClassLoaderBox) && this.ref.get() == ((WeakClassLoaderBox) other).ref.get();
}
/* renamed from: hashCode, reason: from getter */
public int getIdentityHashCode() {
return this.identityHashCode;
}
public final void setTemporaryStrongRef(ClassLoader classLoader) {
this.temporaryStrongRef = classLoader;
}
public String toString() {
String obj;
ClassLoader classLoader = this.ref.get();
return (classLoader == null || (obj = classLoader.toString()) == null) ? "<null>" : obj;
}
}
@@ -0,0 +1,5 @@
package kotlin.reflect.jvm.internal;
/* loaded from: classes3.dex */
public abstract /* synthetic */ class a {
}
@@ -0,0 +1,235 @@
package kotlin.reflect.jvm.internal.calls;
import java.lang.reflect.Member;
import java.lang.reflect.Method;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import kotlin.Metadata;
import kotlin.collections.CollectionsKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.MapsKt;
import kotlin.enums.EnumEntries;
import kotlin.enums.EnumEntriesKt;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.jvm.internal.calls.Caller;
import kotlin.reflect.jvm.internal.impl.descriptors.runtime.structure.ReflectClassUtilKt;
@Metadata(d1 = {"\u0000J\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0011\n\u0002\b\u0004\b\u0000\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001:\u0002 !B?\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006\u0012\u0006\u0010\b\u001a\u00020\t\u0012\u0006\u0010\n\u001a\u00020\u000b\u0012\u000e\b\u0002\u0010\f\u001a\b\u0012\u0004\u0012\u00020\r0\u0006¢\u0006\u0002\u0010\u000eJ\u001b\u0010\u001c\u001a\u0004\u0018\u00010\u00102\n\u0010\u001d\u001a\u0006\u0012\u0002\b\u00030\u001eH\u0016¢\u0006\u0002\u0010\u001fR\u000e\u0010\b\u001a\u00020\tX\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u000f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00100\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0018\u0010\u0011\u001a\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00040\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0016\u0010\u0012\u001a\u0004\u0018\u00010\u00028VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014R\u0014\u0010\f\u001a\b\u0012\u0004\u0012\u00020\r0\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0005\u001a\b\u0012\u0004\u0012\u00020\u00070\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u001a\u0010\u0015\u001a\b\u0012\u0004\u0012\u00020\u00160\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\u00168VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001b¨\u0006\""}, d2 = {"Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "", "jClass", "Ljava/lang/Class;", "parameterNames", "", "", "callMode", "Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$CallMode;", "origin", "Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$Origin;", "methods", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/util/List;Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$CallMode;Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$Origin;Ljava/util/List;)V", "defaultValues", "", "erasedParameterTypes", "member", "getMember", "()Ljava/lang/Void;", "parameterTypes", "Ljava/lang/reflect/Type;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "CallMode", "Origin", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nAnnotationConstructorCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 4 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n*L\n1#1,181:1\n1549#2:182\n1620#2,3:183\n1549#2:186\n1620#2,2:187\n1622#2:190\n1549#2:191\n1620#2,3:192\n1549#2:195\n1620#2,3:196\n1#3:189\n11155#4:199\n11266#4,4:200\n*S KotlinDebug\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller\n*L\n28#1:182\n28#1:183,3\n35#1:186\n35#1:187,2\n35#1:190\n37#1:191\n37#1:192,3\n20#1:195\n20#1:196,3\n53#1:199\n53#1:200,4\n*E\n"})
/* loaded from: classes3.dex */
public final class AnnotationConstructorCaller implements Caller {
private final CallMode callMode;
private final List<Object> defaultValues;
private final List<Class<?>> erasedParameterTypes;
private final Class<?> jClass;
private final List<Method> methods;
private final List<String> parameterNames;
private final List<Type> parameterTypes;
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0004\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$CallMode;", "", "(Ljava/lang/String;I)V", "CALL_BY_NAME", "POSITIONAL_CALL", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class CallMode {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ CallMode[] $VALUES;
public static final CallMode CALL_BY_NAME = new CallMode("CALL_BY_NAME", 0);
public static final CallMode POSITIONAL_CALL = new CallMode("POSITIONAL_CALL", 1);
private static final /* synthetic */ CallMode[] $values() {
return new CallMode[]{CALL_BY_NAME, POSITIONAL_CALL};
}
static {
CallMode[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private CallMode(String str, int i) {
}
public static CallMode valueOf(String str) {
return (CallMode) Enum.valueOf(CallMode.class, str);
}
public static CallMode[] values() {
return (CallMode[]) $VALUES.clone();
}
}
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
@Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0004\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002j\u0002\b\u0003j\u0002\b\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/AnnotationConstructorCaller$Origin;", "", "(Ljava/lang/String;I)V", "JAVA", "KOTLIN", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Origin {
private static final /* synthetic */ EnumEntries $ENTRIES;
private static final /* synthetic */ Origin[] $VALUES;
public static final Origin JAVA = new Origin("JAVA", 0);
public static final Origin KOTLIN = new Origin("KOTLIN", 1);
private static final /* synthetic */ Origin[] $values() {
return new Origin[]{JAVA, KOTLIN};
}
static {
Origin[] $values = $values();
$VALUES = $values;
$ENTRIES = EnumEntriesKt.enumEntries($values);
}
private Origin(String str, int i) {
}
public static Origin valueOf(String str) {
return (Origin) Enum.valueOf(Origin.class, str);
}
public static Origin[] values() {
return (Origin[]) $VALUES.clone();
}
}
public AnnotationConstructorCaller(Class<?> jClass, List<String> parameterNames, CallMode callMode, Origin origin, List<Method> methods) {
int collectionSizeOrDefault;
int collectionSizeOrDefault2;
int collectionSizeOrDefault3;
Intrinsics.checkNotNullParameter(jClass, "jClass");
Intrinsics.checkNotNullParameter(parameterNames, "parameterNames");
Intrinsics.checkNotNullParameter(callMode, "callMode");
Intrinsics.checkNotNullParameter(origin, "origin");
Intrinsics.checkNotNullParameter(methods, "methods");
this.jClass = jClass;
this.parameterNames = parameterNames;
this.callMode = callMode;
this.methods = methods;
List<Method> list = methods;
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(list, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator<T> it = list.iterator();
while (it.hasNext()) {
arrayList.add(((Method) it.next()).getGenericReturnType());
}
this.parameterTypes = arrayList;
List<Method> list2 = this.methods;
collectionSizeOrDefault2 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list2, 10);
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault2);
Iterator<T> it2 = list2.iterator();
while (it2.hasNext()) {
Class<?> returnType = ((Method) it2.next()).getReturnType();
Intrinsics.checkNotNull(returnType);
Class<?> wrapperByPrimitive = ReflectClassUtilKt.getWrapperByPrimitive(returnType);
if (wrapperByPrimitive != null) {
returnType = wrapperByPrimitive;
}
arrayList2.add(returnType);
}
this.erasedParameterTypes = arrayList2;
List<Method> list3 = this.methods;
collectionSizeOrDefault3 = CollectionsKt__IterablesKt.collectionSizeOrDefault(list3, 10);
ArrayList arrayList3 = new ArrayList(collectionSizeOrDefault3);
Iterator<T> it3 = list3.iterator();
while (it3.hasNext()) {
arrayList3.add(((Method) it3.next()).getDefaultValue());
}
this.defaultValues = arrayList3;
if (this.callMode == CallMode.POSITIONAL_CALL && origin == Origin.JAVA && !CollectionsKt.minus(this.parameterNames, "value").isEmpty()) {
throw new UnsupportedOperationException("Positional call of a Java annotation constructor is allowed only if there are no parameters or one parameter named \"value\". This restriction exists because Java annotations (in contrast to Kotlin)do not impose any order on their arguments. Use KCallable#callBy instead.");
}
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
ArrayList arrayList = new ArrayList(args.length);
int length = args.length;
int i = 0;
int i4 = 0;
while (i < length) {
Object obj = args[i];
int i5 = i4 + 1;
Object transformKotlinToJvm = (obj == null && this.callMode == CallMode.CALL_BY_NAME) ? this.defaultValues.get(i4) : AnnotationConstructorCallerKt.transformKotlinToJvm(obj, this.erasedParameterTypes.get(i4));
if (transformKotlinToJvm == null) {
AnnotationConstructorCallerKt.throwIllegalArgumentType(i4, this.parameterNames.get(i4), this.erasedParameterTypes.get(i4));
throw null;
}
arrayList.add(transformKotlinToJvm);
i++;
i4 = i5;
}
return AnnotationConstructorCallerKt.createAnnotationInstance(this.jClass, MapsKt.toMap(CollectionsKt.zip(this.parameterNames, arrayList)), this.methods);
}
public void checkArguments(Object[] objArr) {
Caller.DefaultImpls.checkArguments(this, objArr);
}
public Void getMember() {
return null;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public List<Type> getParameterTypes() {
return this.parameterTypes;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Type getReturnType() {
return this.jClass;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
/* renamed from: getMember, reason: collision with other method in class */
public /* bridge */ /* synthetic */ Member mo1386getMember() {
return (Member) getMember();
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ AnnotationConstructorCaller(java.lang.Class r7, java.util.List r8, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller.CallMode r9, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller.Origin r10, java.util.List r11, int r12, kotlin.jvm.internal.DefaultConstructorMarker r13) {
/*
r6 = this;
r12 = r12 & 16
if (r12 == 0) goto L32
r11 = r8
java.lang.Iterable r11 = (java.lang.Iterable) r11
java.util.ArrayList r12 = new java.util.ArrayList
int r13 = kotlin.collections.CollectionsKt.g(r11)
r12.<init>(r13)
java.util.Iterator r11 = r11.iterator()
L14:
boolean r13 = r11.hasNext()
if (r13 == 0) goto L2b
java.lang.Object r13 = r11.next()
java.lang.String r13 = (java.lang.String) r13
r0 = 0
java.lang.Class[] r0 = new java.lang.Class[r0]
java.lang.reflect.Method r13 = r7.getDeclaredMethod(r13, r0)
r12.add(r13)
goto L14
L2b:
r5 = r12
L2c:
r0 = r6
r1 = r7
r2 = r8
r3 = r9
r4 = r10
goto L34
L32:
r5 = r11
goto L2c
L34:
r0.<init>(r1, r2, r3, r4, r5)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller.<init>(java.lang.Class, java.util.List, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller$CallMode, kotlin.reflect.jvm.internal.calls.AnnotationConstructorCaller$Origin, java.util.List, int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
}
@@ -0,0 +1,336 @@
package kotlin.reflect.jvm.internal.calls;
import com.google.android.gms.measurement.api.AppMeasurementSdk;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.lang.annotation.Annotation;
import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;
import java.lang.reflect.Proxy;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Set;
import kotlin.Lazy;
import kotlin.LazyKt;
import kotlin.Metadata;
import kotlin.collections.ArraysKt;
import kotlin.collections.CollectionsKt__IterablesKt;
import kotlin.collections.CollectionsKt___CollectionsKt;
import kotlin.jvm.JvmClassMappingKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.Reflection;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.reflect.KClass;
import kotlin.reflect.jvm.internal.KotlinReflectionInternalError;
import kotlin.text.Typography;
import kotlinx.coroutines.scheduling.WorkQueueKt;
@Metadata(d1 = {"\u00004\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010$\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0001\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\u001aI\u0010\u0000\u001a\u0002H\u0001\"\b\b\u0000\u0010\u0001*\u00020\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00010\u00042\u0012\u0010\u0005\u001a\u000e\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u00020\u00020\u00062\u000e\b\u0002\u0010\b\u001a\b\u0012\u0004\u0012\u00020\n0\tH\u0000¢\u0006\u0002\u0010\u000b\u001a$\u0010\f\u001a\u00020\r2\u0006\u0010\u000e\u001a\u00020\u000f2\u0006\u0010\u0010\u001a\u00020\u00072\n\u0010\u0011\u001a\u0006\u0012\u0002\b\u00030\u0004H\u0002\u001a\u001c\u0010\u0012\u001a\u0004\u0018\u00010\u0002*\u0004\u0018\u00010\u00022\n\u0010\u0013\u001a\u0006\u0012\u0002\b\u00030\u0004H\u0002¨\u0006\u0014²\u0006\u0014\u0010\u0015\u001a\u00020\u000f\"\b\b\u0000\u0010\u0001*\u00020\u0002X\u008a\u0084\u0002²\u0006\u0014\u0010\u0016\u001a\u00020\u0007\"\b\b\u0000\u0010\u0001*\u00020\u0002X\u008a\u0084\u0002"}, d2 = {"createAnnotationInstance", "T", "", "annotationClass", "Ljava/lang/Class;", "values", "", "", "methods", "", "Ljava/lang/reflect/Method;", "(Ljava/lang/Class;Ljava/util/Map;Ljava/util/List;)Ljava/lang/Object;", "throwIllegalArgumentType", "", FirebaseAnalytics.Param.INDEX, "", AppMeasurementSdk.ConditionalUserProperty.NAME, "expectedJvmType", "transformKotlinToJvm", "expectedType", "kotlin-reflection", "hashCode", "toString"}, k = 2, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nAnnotationConstructorCaller.kt\nKotlin\n*S Kotlin\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCallerKt\n+ 2 _Arrays.kt\nkotlin/collections/ArraysKt___ArraysKt\n+ 3 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n+ 4 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 5 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,181:1\n11065#2:182\n11400#2,3:183\n37#3,2:186\n18#3:195\n1549#4:188\n1620#4,3:189\n1726#4,3:192\n26#5:196\n*S KotlinDebug\n*F\n+ 1 AnnotationConstructorCaller.kt\nkotlin/reflect/jvm/internal/calls/AnnotationConstructorCallerKt\n*L\n75#1:182\n75#1:183,3\n75#1:186,2\n173#1:195\n102#1:188\n102#1:189,3\n106#1:192,3\n173#1:196\n*E\n"})
/* loaded from: classes3.dex */
public final class AnnotationConstructorCallerKt {
public static final <T> T createAnnotationInstance(final Class<T> annotationClass, final Map<String, ? extends Object> values, List<Method> methods) {
Intrinsics.checkNotNullParameter(annotationClass, "annotationClass");
Intrinsics.checkNotNullParameter(values, "values");
Intrinsics.checkNotNullParameter(methods, "methods");
Lazy lazy = LazyKt.lazy(new Function0<Integer>() { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$hashCode$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
/* JADX WARN: Can't rename method to resolve collision */
@Override // kotlin.jvm.functions.Function0
public final Integer invoke() {
int hashCode;
Iterator<T> it = values.entrySet().iterator();
int i = 0;
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
String str = (String) entry.getKey();
Object value = entry.getValue();
if (value instanceof boolean[]) {
hashCode = Arrays.hashCode((boolean[]) value);
} else if (value instanceof char[]) {
hashCode = Arrays.hashCode((char[]) value);
} else if (value instanceof byte[]) {
hashCode = Arrays.hashCode((byte[]) value);
} else if (value instanceof short[]) {
hashCode = Arrays.hashCode((short[]) value);
} else if (value instanceof int[]) {
hashCode = Arrays.hashCode((int[]) value);
} else if (value instanceof float[]) {
hashCode = Arrays.hashCode((float[]) value);
} else if (value instanceof long[]) {
hashCode = Arrays.hashCode((long[]) value);
} else if (value instanceof double[]) {
hashCode = Arrays.hashCode((double[]) value);
} else {
hashCode = value instanceof Object[] ? Arrays.hashCode((Object[]) value) : value.hashCode();
}
i += hashCode ^ (str.hashCode() * WorkQueueKt.MASK);
}
return Integer.valueOf(i);
}
});
T t2 = (T) Proxy.newProxyInstance(annotationClass.getClassLoader(), new Class[]{annotationClass}, new InvocationHandler(annotationClass, values, LazyKt.lazy(new Function0<String>() { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$toString$2
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
{
super(0);
}
@Override // kotlin.jvm.functions.Function0
public final String invoke() {
Class<T> cls = annotationClass;
Map<String, Object> map = values;
StringBuilder sb = new StringBuilder();
sb.append('@');
sb.append(cls.getCanonicalName());
CollectionsKt___CollectionsKt.joinTo$default(map.entrySet(), sb, ", ", "(", ")", 0, null, new Function1<Map.Entry<? extends String, ? extends Object>, CharSequence>() { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$createAnnotationInstance$toString$2$1$1
@Override // kotlin.jvm.functions.Function1
public /* bridge */ /* synthetic */ CharSequence invoke(Map.Entry<? extends String, ? extends Object> entry) {
return invoke2((Map.Entry<String, ? extends Object>) entry);
}
/* renamed from: invoke, reason: avoid collision after fix types in other method */
public final CharSequence invoke2(Map.Entry<String, ? extends Object> entry) {
String obj;
Intrinsics.checkNotNullParameter(entry, "entry");
String key = entry.getKey();
Object value = entry.getValue();
if (value instanceof boolean[]) {
obj = Arrays.toString((boolean[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof char[]) {
obj = Arrays.toString((char[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof byte[]) {
obj = Arrays.toString((byte[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof short[]) {
obj = Arrays.toString((short[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof int[]) {
obj = Arrays.toString((int[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof float[]) {
obj = Arrays.toString((float[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof long[]) {
obj = Arrays.toString((long[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof double[]) {
obj = Arrays.toString((double[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else if (value instanceof Object[]) {
obj = Arrays.toString((Object[]) value);
Intrinsics.checkNotNullExpressionValue(obj, "toString(...)");
} else {
obj = value.toString();
}
return key + '=' + obj;
}
}, 48, null);
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
}), lazy, methods) { // from class: kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt$$Lambda$0
private final Class arg$0;
private final Map arg$1;
private final Lazy arg$2;
private final Lazy arg$3;
private final List arg$4;
{
this.arg$0 = annotationClass;
this.arg$1 = values;
this.arg$2 = r3;
this.arg$3 = lazy;
this.arg$4 = methods;
}
@Override // java.lang.reflect.InvocationHandler
public Object invoke(Object obj, Method method, Object[] objArr) {
Object createAnnotationInstance$lambda$4;
createAnnotationInstance$lambda$4 = AnnotationConstructorCallerKt.createAnnotationInstance$lambda$4(this.arg$0, this.arg$1, this.arg$2, this.arg$3, this.arg$4, obj, method, objArr);
return createAnnotationInstance$lambda$4;
}
});
Intrinsics.checkNotNull(t2, "null cannot be cast to non-null type T of kotlin.reflect.jvm.internal.calls.AnnotationConstructorCallerKt.createAnnotationInstance");
return t2;
}
public static /* synthetic */ Object createAnnotationInstance$default(Class cls, Map map, List list, int i, Object obj) {
int collectionSizeOrDefault;
if ((i & 4) != 0) {
Set keySet = map.keySet();
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(keySet, 10);
ArrayList arrayList = new ArrayList(collectionSizeOrDefault);
Iterator it = keySet.iterator();
while (it.hasNext()) {
arrayList.add(cls.getDeclaredMethod((String) it.next(), new Class[0]));
}
list = arrayList;
}
return createAnnotationInstance(cls, map, list);
}
private static final <T> boolean createAnnotationInstance$equals(Class<T> cls, List<Method> list, Map<String, ? extends Object> map, Object obj) {
boolean areEqual;
boolean z3;
KClass annotationClass;
Class cls2 = null;
Annotation annotation = obj instanceof Annotation ? (Annotation) obj : null;
if (annotation != null && (annotationClass = JvmClassMappingKt.getAnnotationClass(annotation)) != null) {
cls2 = JvmClassMappingKt.getJavaClass(annotationClass);
}
if (Intrinsics.areEqual(cls2, cls)) {
List<Method> list2 = list;
if (!(list2 instanceof Collection) || !list2.isEmpty()) {
for (Method method : list2) {
Object obj2 = map.get(method.getName());
Object invoke = method.invoke(obj, new Object[0]);
if (obj2 instanceof boolean[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.BooleanArray");
areEqual = Arrays.equals((boolean[]) obj2, (boolean[]) invoke);
} else if (obj2 instanceof char[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.CharArray");
areEqual = Arrays.equals((char[]) obj2, (char[]) invoke);
} else if (obj2 instanceof byte[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.ByteArray");
areEqual = Arrays.equals((byte[]) obj2, (byte[]) invoke);
} else if (obj2 instanceof short[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.ShortArray");
areEqual = Arrays.equals((short[]) obj2, (short[]) invoke);
} else if (obj2 instanceof int[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.IntArray");
areEqual = Arrays.equals((int[]) obj2, (int[]) invoke);
} else if (obj2 instanceof float[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.FloatArray");
areEqual = Arrays.equals((float[]) obj2, (float[]) invoke);
} else if (obj2 instanceof long[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.LongArray");
areEqual = Arrays.equals((long[]) obj2, (long[]) invoke);
} else if (obj2 instanceof double[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.DoubleArray");
areEqual = Arrays.equals((double[]) obj2, (double[]) invoke);
} else if (obj2 instanceof Object[]) {
Intrinsics.checkNotNull(invoke, "null cannot be cast to non-null type kotlin.Array<*>");
areEqual = Arrays.equals((Object[]) obj2, (Object[]) invoke);
} else {
areEqual = Intrinsics.areEqual(obj2, invoke);
}
if (!areEqual) {
z3 = false;
break;
}
}
}
z3 = true;
if (z3) {
return true;
}
}
return false;
}
private static final int createAnnotationInstance$lambda$2(Lazy<Integer> lazy) {
return lazy.getValue().intValue();
}
private static final String createAnnotationInstance$lambda$3(Lazy<String> lazy) {
return lazy.getValue();
}
public static final Object createAnnotationInstance$lambda$4(Class annotationClass, Map values, Lazy toString$delegate, Lazy hashCode$delegate, List methods, Object obj, Method method, Object[] objArr) {
Intrinsics.checkNotNullParameter(annotationClass, "$annotationClass");
Intrinsics.checkNotNullParameter(values, "$values");
Intrinsics.checkNotNullParameter(toString$delegate, "$toString$delegate");
Intrinsics.checkNotNullParameter(hashCode$delegate, "$hashCode$delegate");
Intrinsics.checkNotNullParameter(methods, "$methods");
String name = method.getName();
if (name != null) {
int hashCode = name.hashCode();
if (hashCode != -1776922004) {
if (hashCode != 147696667) {
if (hashCode == 1444986633 && name.equals("annotationType")) {
return annotationClass;
}
} else if (name.equals("hashCode")) {
return Integer.valueOf(createAnnotationInstance$lambda$2(hashCode$delegate));
}
} else if (name.equals("toString")) {
return createAnnotationInstance$lambda$3(toString$delegate);
}
}
if (Intrinsics.areEqual(name, "equals") && objArr != null && objArr.length == 1) {
Intrinsics.checkNotNull(objArr);
return Boolean.valueOf(createAnnotationInstance$equals(annotationClass, methods, values, ArraysKt.single(objArr)));
}
if (values.containsKey(name)) {
return values.get(name);
}
StringBuilder sb = new StringBuilder("Method is not supported: ");
sb.append(method);
sb.append(" (args: ");
if (objArr == null) {
objArr = new Object[0];
}
sb.append(ArraysKt.toList(objArr));
sb.append(')');
throw new KotlinReflectionInternalError(sb.toString());
}
public static final Void throwIllegalArgumentType(int i, String str, Class<?> cls) {
String qualifiedName;
KClass orCreateKotlinClass = Intrinsics.areEqual(cls, Class.class) ? Reflection.getOrCreateKotlinClass(KClass.class) : (cls.isArray() && Intrinsics.areEqual(cls.getComponentType(), Class.class)) ? Reflection.getOrCreateKotlinClass(KClass[].class) : JvmClassMappingKt.getKotlinClass(cls);
if (Intrinsics.areEqual(orCreateKotlinClass.getQualifiedName(), Reflection.getOrCreateKotlinClass(Object[].class).getQualifiedName())) {
StringBuilder sb = new StringBuilder();
sb.append(orCreateKotlinClass.getQualifiedName());
sb.append(Typography.less);
Class<?> componentType = JvmClassMappingKt.getJavaClass(orCreateKotlinClass).getComponentType();
Intrinsics.checkNotNullExpressionValue(componentType, "getComponentType(...)");
sb.append(JvmClassMappingKt.getKotlinClass(componentType).getQualifiedName());
sb.append(Typography.greater);
qualifiedName = sb.toString();
} else {
qualifiedName = orCreateKotlinClass.getQualifiedName();
}
throw new IllegalArgumentException("Argument #" + i + ' ' + str + " is not of the required type " + qualifiedName);
}
public static final Object transformKotlinToJvm(Object obj, Class<?> cls) {
if (obj instanceof Class) {
return null;
}
if (obj instanceof KClass) {
obj = JvmClassMappingKt.getJavaClass((KClass) obj);
} else if (obj instanceof Object[]) {
Object[] objArr = (Object[]) obj;
if (objArr instanceof Class[]) {
return null;
}
if (objArr instanceof KClass[]) {
Intrinsics.checkNotNull(obj, "null cannot be cast to non-null type kotlin.Array<kotlin.reflect.KClass<*>>");
KClass[] kClassArr = (KClass[]) obj;
ArrayList arrayList = new ArrayList(kClassArr.length);
for (KClass kClass : kClassArr) {
arrayList.add(JvmClassMappingKt.getJavaClass(kClass));
}
obj = arrayList.toArray(new Class[0]);
} else {
obj = objArr;
}
}
if (cls.isInstance(obj)) {
return obj;
}
return null;
}
}
@@ -0,0 +1,8 @@
package kotlin.reflect.jvm.internal.calls;
import kotlin.Metadata;
@Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bf\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface BoundCaller {
}
@@ -0,0 +1,37 @@
package kotlin.reflect.jvm.internal.calls;
import com.google.android.gms.measurement.internal.a;
import java.lang.reflect.Member;
import java.lang.reflect.Type;
import java.util.List;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0010 \n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\b`\u0018\u0000*\f\b\u0000\u0010\u0001 \u0001*\u0004\u0018\u00010\u00022\u00020\u0003J\u001b\u0010\u000f\u001a\u0004\u0018\u00010\u00032\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0011H&¢\u0006\u0002\u0010\u0012J\u0019\u0010\u0013\u001a\u00020\u00142\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0011H\u0016¢\u0006\u0002\u0010\u0015R\u0012\u0010\u0004\u001a\u00028\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006R\u0018\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0012\u0010\f\u001a\u00020\tX¦\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000e¨\u0006\u0016"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/Caller;", "M", "Ljava/lang/reflect/Member;", "", "member", "getMember", "()Ljava/lang/reflect/Member;", "parameterTypes", "", "Ljava/lang/reflect/Type;", "getParameterTypes", "()Ljava/util/List;", "returnType", "getReturnType", "()Ljava/lang/reflect/Type;", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "checkArguments", "", "([Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public interface Caller<M extends Member> {
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class DefaultImpls {
public static <M extends Member> void checkArguments(Caller<? extends M> caller, Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
if (CallerKt.getArity(caller) == args.length) {
return;
}
StringBuilder sb = new StringBuilder("Callable expects ");
sb.append(CallerKt.getArity(caller));
sb.append(" arguments, but ");
throw new IllegalArgumentException(a.m(sb, args.length, " were provided."));
}
}
Object call(Object[] args);
/* renamed from: getMember */
M mo1386getMember();
List<Type> getParameterTypes();
Type getReturnType();
}
@@ -0,0 +1,850 @@
package kotlin.reflect.jvm.internal.calls;
import com.google.firebase.analytics.FirebaseAnalytics;
import java.lang.reflect.Field;
import java.lang.reflect.Member;
import java.lang.reflect.Type;
import java.util.Arrays;
import java.util.List;
import kotlin.Metadata;
import kotlin.Unit;
import kotlin.collections.ArraysKt;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.jvm.internal.SpreadBuilder;
import kotlin.reflect.jvm.internal.calls.Caller;
@Metadata(d1 = {"\u0000Z\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0007\n\u0002\u0010 \n\u0002\b\u0005\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b0\u0018\u0000 \u001e*\n\b\u0000\u0010\u0001 \u0001*\u00020\u00022\b\u0012\u0004\u0012\u0002H\u00010\u0003:\b\u001b\u001c\u001d\u001e\u001f !\"B3\b\u0004\u0012\u0006\u0010\u0004\u001a\u00028\u0000\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\f\u0010\u0007\u001a\b\u0012\u0002\b\u0003\u0018\u00010\b\u0012\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00060\n¢\u0006\u0002\u0010\u000bJ\u0012\u0010\u0017\u001a\u00020\u00182\b\u0010\u0019\u001a\u0004\u0018\u00010\u001aH\u0004R\u0017\u0010\u0007\u001a\b\u0012\u0002\b\u0003\u0018\u00010\b¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\rR\u0013\u0010\u0004\u001a\u00028\u0000¢\u0006\n\n\u0002\u0010\u0010\u001a\u0004\b\u000e\u0010\u000fR\u001a\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\u00060\u0012X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u0016\u0082\u0001\u0007#$%&'()¨\u0006*"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "M", "Ljava/lang/reflect/Member;", "Lkotlin/reflect/jvm/internal/calls/Caller;", "member", "returnType", "Ljava/lang/reflect/Type;", "instanceClass", "Ljava/lang/Class;", "valueParameterTypes", "", "(Ljava/lang/reflect/Member;Ljava/lang/reflect/Type;Ljava/lang/Class;[Ljava/lang/reflect/Type;)V", "getInstanceClass", "()Ljava/lang/Class;", "getMember", "()Ljava/lang/reflect/Member;", "Ljava/lang/reflect/Member;", "parameterTypes", "", "getParameterTypes", "()Ljava/util/List;", "getReturnType", "()Ljava/lang/reflect/Type;", "checkObjectInstance", "", "obj", "", "AccessorForHiddenBoundConstructor", "AccessorForHiddenConstructor", "BoundConstructor", "Companion", "Constructor", "FieldGetter", "FieldSetter", "Method", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$BoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Constructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,265:1\n1#2:266\n*E\n"})
/* loaded from: classes3.dex */
public abstract class CallerImpl<M extends Member> implements Caller<M> {
/* renamed from: Companion, reason: from kotlin metadata */
public static final Companion INSTANCE = new Companion(null);
private final Class<?> instanceClass;
private final M member;
private final List<Type> parameterTypes;
private final Type returnType;
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u00012\u00020\u0003B\u001b\u0012\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0002\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "constructor", "boundReceiver", "", "(Ljava/lang/reflect/Constructor;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n262#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenBoundConstructor\n*L\n76#1:266\n76#1:267\n*E\n"})
/* loaded from: classes3.dex */
public static final class AccessorForHiddenBoundConstructor extends CallerImpl<java.lang.reflect.Constructor<?>> implements BoundCaller {
private final Object boundReceiver;
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public AccessorForHiddenBoundConstructor(java.lang.reflect.Constructor<?> r8, java.lang.Object r9) {
/*
r7 = this;
java.lang.String r0 = "constructor"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
java.lang.Class r3 = r8.getDeclaringClass()
java.lang.String r0 = "getDeclaringClass(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
java.lang.reflect.Type[] r0 = r8.getGenericParameterTypes()
java.lang.String r1 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
int r1 = r0.length
r2 = 2
if (r1 > r2) goto L1f
r0 = 0
java.lang.reflect.Type[] r0 = new java.lang.reflect.Type[r0]
goto L26
L1f:
int r1 = r0.length
r2 = 1
int r1 = r1 - r2
java.lang.Object[] r0 = kotlin.collections.ArraysKt.copyOfRange(r0, r2, r1)
L26:
r5 = r0
java.lang.reflect.Type[] r5 = (java.lang.reflect.Type[]) r5
r6 = 0
r4 = 0
r1 = r7
r2 = r8
r1.<init>(r2, r3, r4, r5, r6)
r1.boundReceiver = r9
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.AccessorForHiddenBoundConstructor.<init>(java.lang.reflect.Constructor, java.lang.Object):void");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
java.lang.reflect.Constructor<?> mo1386getMember = mo1386getMember();
SpreadBuilder spreadBuilder = new SpreadBuilder(3);
spreadBuilder.add(this.boundReceiver);
spreadBuilder.addSpread(args);
spreadBuilder.add(null);
return mo1386getMember.newInstance(spreadBuilder.toArray(new Object[spreadBuilder.size()]));
}
}
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001B\u0011\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0002¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "constructor", "(Ljava/lang/reflect/Constructor;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n258#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$AccessorForHiddenConstructor\n*L\n62#1:266\n62#1:267\n*E\n"})
/* loaded from: classes3.dex */
public static final class AccessorForHiddenConstructor extends CallerImpl<java.lang.reflect.Constructor<?>> {
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public AccessorForHiddenConstructor(java.lang.reflect.Constructor<?> r8) {
/*
r7 = this;
java.lang.String r0 = "constructor"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
java.lang.Class r3 = r8.getDeclaringClass()
java.lang.String r0 = "getDeclaringClass(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
java.lang.reflect.Type[] r0 = r8.getGenericParameterTypes()
java.lang.String r1 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
int r1 = r0.length
r2 = 0
r4 = 1
if (r1 > r4) goto L1f
java.lang.reflect.Type[] r0 = new java.lang.reflect.Type[r2]
goto L25
L1f:
int r1 = r0.length
int r1 = r1 - r4
java.lang.Object[] r0 = kotlin.collections.ArraysKt.copyOfRange(r0, r2, r1)
L25:
r5 = r0
java.lang.reflect.Type[] r5 = (java.lang.reflect.Type[]) r5
r6 = 0
r4 = 0
r1 = r7
r2 = r8
r1.<init>(r2, r3, r4, r5, r6)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.AccessorForHiddenConstructor.<init>(java.lang.reflect.Constructor):void");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
java.lang.reflect.Constructor<?> mo1386getMember = mo1386getMember();
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
spreadBuilder.addSpread(args);
spreadBuilder.add(null);
return mo1386getMember.newInstance(spreadBuilder.toArray(new Object[spreadBuilder.size()]));
}
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00030\u0002B\u001b\u0012\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$BoundConstructor;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "constructor", "boundReceiver", "", "(Ljava/lang/reflect/Constructor;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundConstructor extends CallerImpl<java.lang.reflect.Constructor<?>> implements BoundCaller {
private final Object boundReceiver;
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public BoundConstructor(java.lang.reflect.Constructor<?> r8, java.lang.Object r9) {
/*
r7 = this;
java.lang.String r0 = "constructor"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
java.lang.Class r3 = r8.getDeclaringClass()
java.lang.String r0 = "getDeclaringClass(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
java.lang.reflect.Type[] r5 = r8.getGenericParameterTypes()
java.lang.String r0 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r0)
r6 = 0
r4 = 0
r1 = r7
r2 = r8
r1.<init>(r2, r3, r4, r5, r6)
r1.boundReceiver = r9
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.BoundConstructor.<init>(java.lang.reflect.Constructor, java.lang.Object):void");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
java.lang.reflect.Constructor<?> mo1386getMember = mo1386getMember();
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
spreadBuilder.add(this.boundReceiver);
spreadBuilder.addSpread(args);
return mo1386getMember.newInstance(spreadBuilder.toArray(new Object[spreadBuilder.size()]));
}
}
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J(\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00050\u0004\"\u0006\b\u0001\u0010\u0005\u0018\u0001*\n\u0012\u0006\b\u0001\u0012\u0002H\u00050\u0004H\u0086\b¢\u0006\u0002\u0010\u0006J(\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\u00050\u0004\"\u0006\b\u0001\u0010\u0005\u0018\u0001*\n\u0012\u0006\b\u0001\u0012\u0002H\u00050\u0004H\u0086\b¢\u0006\u0002\u0010\u0006J(\u0010\b\u001a\b\u0012\u0004\u0012\u0002H\u00050\u0004\"\u0006\b\u0001\u0010\u0005\u0018\u0001*\n\u0012\u0006\b\u0001\u0012\u0002H\u00050\u0004H\u0086\b¢\u0006\u0002\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Companion;", "", "()V", "dropFirst", "", "T", "([Ljava/lang/Object;)[Ljava/lang/Object;", "dropFirstAndLast", "dropLast", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 2 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n26#2:266\n26#2:267\n26#2:268\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n*L\n254#1:266\n258#1:267\n262#1:268\n*E\n"})
/* loaded from: classes3.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
private Companion() {
}
}
@Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\f\u0012\b\u0012\u0006\u0012\u0002\b\u00030\u00020\u0001B\u0011\u0012\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0002¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Constructor;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Constructor;", "constructor", "(Ljava/lang/reflect/Constructor;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Constructor extends CallerImpl<java.lang.reflect.Constructor<?>> {
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public Constructor(java.lang.reflect.Constructor<?> r8) {
/*
r7 = this;
java.lang.String r0 = "constructor"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r8, r0)
java.lang.Class r3 = r8.getDeclaringClass()
java.lang.String r0 = "getDeclaringClass(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
java.lang.Class r0 = r8.getDeclaringClass()
java.lang.Class r1 = r0.getDeclaringClass()
if (r1 == 0) goto L24
int r0 = r0.getModifiers()
boolean r0 = java.lang.reflect.Modifier.isStatic(r0)
if (r0 != 0) goto L24
L22:
r4 = r1
goto L26
L24:
r1 = 0
goto L22
L26:
java.lang.reflect.Type[] r5 = r8.getGenericParameterTypes()
java.lang.String r0 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r5, r0)
r6 = 0
r1 = r7
r2 = r8
r1.<init>(r2, r3, r4, r5, r6)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Constructor.<init>(java.lang.reflect.Constructor):void");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return mo1386getMember().newInstance(Arrays.copyOf(args, args.length));
}
}
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0005\f\r\u000e\u000f\u0010B\u0017\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u001b\u0010\u0007\u001a\u0004\u0018\u00010\b2\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000b\u0082\u0001\u0005\u0011\u0012\u0013\u0014\u0015¨\u0006\u0016"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Field;", "field", "requiresInstance", "", "(Ljava/lang/reflect/Field;Z)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "BoundInstance", "BoundJvmStaticInObject", "Instance", "JvmStaticInObject", "Static", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Static;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter\n+ 2 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n26#2:266\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter\n*L\n172#1:266\n*E\n"})
/* loaded from: classes3.dex */
public static abstract class FieldGetter extends CallerImpl<Field> {
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "boundReceiver", "", "(Ljava/lang/reflect/Field;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundInstance extends FieldGetter implements BoundCaller {
private final Object boundReceiver;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BoundInstance(Field field, Object obj) {
super(field, false, null);
Intrinsics.checkNotNullParameter(field, "field");
this.boundReceiver = obj;
}
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldGetter, kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return mo1386getMember().get(this.boundReceiver);
}
}
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005¨\u0006\u0006"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundJvmStaticInObject extends FieldGetter implements BoundCaller {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BoundJvmStaticInObject(Field field) {
super(field, false, null);
Intrinsics.checkNotNullParameter(field, "field");
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Instance extends FieldGetter {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Instance(Field field) {
super(field, true, null);
Intrinsics.checkNotNullParameter(field, "field");
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u0019\u0010\u0005\u001a\u00020\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "checkArguments", "", "args", "", "([Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class JvmStaticInObject extends FieldGetter {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JvmStaticInObject(Field field) {
super(field, true, null);
Intrinsics.checkNotNullParameter(field, "field");
}
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl
public void checkArguments(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
super.checkArguments(args);
checkObjectInstance(ArraysKt.firstOrNull(args));
}
}
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004¨\u0006\u0005"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter$Static;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldGetter;", "field", "Ljava/lang/reflect/Field;", "(Ljava/lang/reflect/Field;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Static extends FieldGetter {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Static(Field field) {
super(field, false, null);
Intrinsics.checkNotNullParameter(field, "field");
}
}
public /* synthetic */ FieldGetter(Field field, boolean z3, DefaultConstructorMarker defaultConstructorMarker) {
this(field, z3);
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return mo1386getMember().get(getInstanceClass() != null ? ArraysKt.first(args) : null);
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private FieldGetter(java.lang.reflect.Field r7, boolean r8) {
/*
r6 = this;
java.lang.reflect.Type r2 = r7.getGenericType()
java.lang.String r0 = "getGenericType(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0)
if (r8 == 0) goto L11
java.lang.Class r8 = r7.getDeclaringClass()
Lf:
r3 = r8
goto L13
L11:
r8 = 0
goto Lf
L13:
r8 = 0
java.lang.reflect.Type[] r4 = new java.lang.reflect.Type[r8]
r5 = 0
r0 = r6
r1 = r7
r0.<init>(r1, r2, r3, r4, r5)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.FieldGetter.<init>(java.lang.reflect.Field, boolean):void");
}
}
@Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0005\u0010\u0011\u0012\u0013\u0014B\u001f\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0005¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\t2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0016¢\u0006\u0002\u0010\fJ\u0019\u0010\r\u001a\u00020\u000e2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0016¢\u0006\u0002\u0010\u000fR\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0001\u0005\u0015\u0016\u0017\u0018\u0019¨\u0006\u001a"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Field;", "field", "notNull", "", "requiresInstance", "(Ljava/lang/reflect/Field;ZZ)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "checkArguments", "", "([Ljava/lang/Object;)V", "BoundInstance", "BoundJvmStaticInObject", "Instance", "JvmStaticInObject", "Static", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Static;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static abstract class FieldSetter extends CallerImpl<Field> {
private final boolean notNull;
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u001f\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\b\u0010\u0007\u001a\u0004\u0018\u00010\b¢\u0006\u0002\u0010\tJ\u0019\u0010\n\u001a\u00020\b2\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\fH\u0016¢\u0006\u0002\u0010\rR\u0010\u0010\u0007\u001a\u0004\u0018\u00010\bX\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "boundReceiver", "", "(Ljava/lang/reflect/Field;ZLjava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundInstance extends FieldSetter implements BoundCaller {
private final Object boundReceiver;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BoundInstance(Field field, boolean z3, Object obj) {
super(field, z3, false, null);
Intrinsics.checkNotNullParameter(field, "field");
this.boundReceiver = obj;
}
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter, kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
mo1386getMember().set(this.boundReceiver, ArraysKt.first(args));
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0019\u0010\b\u001a\u00020\t2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\u000bH\u0016¢\u0006\u0002\u0010\f¨\u0006\r"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundJvmStaticInObject extends FieldSetter implements BoundCaller {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BoundJvmStaticInObject(Field field, boolean z3) {
super(field, z3, false, null);
Intrinsics.checkNotNullParameter(field, "field");
}
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter, kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
mo1386getMember().set(null, ArraysKt.last(args));
return Unit.INSTANCE;
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Instance extends FieldSetter {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Instance(Field field, boolean z3) {
super(field, z3, true, null);
Intrinsics.checkNotNullParameter(field, "field");
}
}
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0019\u0010\u0007\u001a\u00020\b2\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000b¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "checkArguments", "", "args", "", "([Ljava/lang/Object;)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class JvmStaticInObject extends FieldSetter {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JvmStaticInObject(Field field, boolean z3) {
super(field, z3, true, null);
Intrinsics.checkNotNullParameter(field, "field");
}
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter, kotlin.reflect.jvm.internal.calls.CallerImpl
public void checkArguments(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
super.checkArguments(args);
checkObjectInstance(ArraysKt.firstOrNull(args));
}
}
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter$Static;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$FieldSetter;", "field", "Ljava/lang/reflect/Field;", "notNull", "", "(Ljava/lang/reflect/Field;Z)V", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Static extends FieldSetter {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Static(Field field, boolean z3) {
super(field, z3, false, null);
Intrinsics.checkNotNullParameter(field, "field");
}
}
public /* synthetic */ FieldSetter(Field field, boolean z3, boolean z4, DefaultConstructorMarker defaultConstructorMarker) {
this(field, z3, z4);
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
mo1386getMember().set(getInstanceClass() != null ? ArraysKt.first(args) : null, ArraysKt.last(args));
return Unit.INSTANCE;
}
@Override // kotlin.reflect.jvm.internal.calls.CallerImpl
public void checkArguments(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
super.checkArguments(args);
if (this.notNull && ArraysKt.last(args) == null) {
throw new IllegalArgumentException("null is not allowed as a value for this property.");
}
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private FieldSetter(java.lang.reflect.Field r8, boolean r9, boolean r10) {
/*
r7 = this;
java.lang.String r0 = "TYPE"
java.lang.Class r3 = java.lang.Void.TYPE
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r0)
if (r10 == 0) goto Lf
java.lang.Class r10 = r8.getDeclaringClass()
Ld:
r4 = r10
goto L11
Lf:
r10 = 0
goto Ld
L11:
java.lang.reflect.Type r10 = r8.getGenericType()
java.lang.String r0 = "getGenericType(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r10, r0)
r0 = 1
java.lang.reflect.Type[] r5 = new java.lang.reflect.Type[r0]
r0 = 0
r5[r0] = r10
r6 = 0
r1 = r7
r2 = r8
r1.<init>(r2, r3, r4, r5, r6)
r1.notNull = r9
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.FieldSetter.<init>(java.lang.reflect.Field, boolean, boolean):void");
}
}
@Metadata(d1 = {"\u0000H\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\n\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\b6\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001:\u0007\u0010\u0011\u0012\u0013\u0014\u0015\u0016B)\b\u0004\u0012\u0006\u0010\u0003\u001a\u00020\u0002\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005\u0012\u000e\b\u0002\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007¢\u0006\u0002\u0010\tJ%\u0010\u000b\u001a\u0004\u0018\u00010\f2\b\u0010\r\u001a\u0004\u0018\u00010\f2\n\u0010\u000e\u001a\u0006\u0012\u0002\b\u00030\u0007H\u0004¢\u0006\u0002\u0010\u000fR\u000e\u0010\n\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000\u0082\u0001\u0007\u0017\u0018\u0019\u001a\u001b\u001c\u001d¨\u0006\u001e"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl;", "Ljava/lang/reflect/Method;", FirebaseAnalytics.Param.METHOD, "requiresInstance", "", "parameterTypes", "", "Ljava/lang/reflect/Type;", "(Ljava/lang/reflect/Method;Z[Ljava/lang/reflect/Type;)V", "isVoidMethod", "callMethod", "", "instance", "args", "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;", "BoundInstance", "BoundJvmStaticInObject", "BoundStatic", "BoundStaticMultiFieldValueClass", "Instance", "JvmStaticInObject", "Static", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Static;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static abstract class Method extends CallerImpl<java.lang.reflect.Method> {
private final boolean isVoidMethod;
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\b\u001a\u0004\u0018\u00010\u00062\n\u0010\t\u001a\u0006\u0012\u0002\b\u00030\nH\u0016¢\u0006\u0002\u0010\u000bR\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundInstance;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "boundReceiver", "", "(Ljava/lang/reflect/Method;Ljava/lang/Object;)V", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundInstance extends Method implements BoundCaller {
private final Object boundReceiver;
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BoundInstance(java.lang.reflect.Method method, Object obj) {
super(method, false, null, 4, null);
Intrinsics.checkNotNullParameter(method, "method");
this.boundReceiver = obj;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return callMethod(this.boundReceiver, args);
}
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\r\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005J\u001b\u0010\u0006\u001a\u0004\u0018\u00010\u00072\n\u0010\b\u001a\u0006\u0012\u0002\b\u00030\tH\u0016¢\u0006\u0002\u0010\n¨\u0006\u000b"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundJvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class BoundJvmStaticInObject extends Method implements BoundCaller {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public BoundJvmStaticInObject(java.lang.reflect.Method method) {
super(method, false, null, 4, null);
Intrinsics.checkNotNullParameter(method, "method");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return callMethod(null, args);
}
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u00012\u00020\u0002B\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007J\u001b\u0010\n\u001a\u0004\u0018\u00010\u00062\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\fH\u0016¢\u0006\u0002\u0010\rR\u0016\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\t¨\u0006\u000e"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "boundReceiver", "", "(Ljava/lang/reflect/Method;Ljava/lang/Object;)V", "getBoundReceiver$kotlin_reflection", "()Ljava/lang/Object;", "call", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n254#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStatic\n*L\n126#1:266\n126#1:267\n*E\n"})
/* loaded from: classes3.dex */
public static final class BoundStatic extends Method implements BoundCaller {
private final Object boundReceiver;
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public BoundStatic(java.lang.reflect.Method r5, java.lang.Object r6) {
/*
r4 = this;
java.lang.String r0 = "method"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
java.lang.reflect.Type[] r0 = r5.getGenericParameterTypes()
java.lang.String r1 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
int r1 = r0.length
r2 = 0
r3 = 1
if (r1 > r3) goto L16
java.lang.reflect.Type[] r0 = new java.lang.reflect.Type[r2]
goto L1b
L16:
int r1 = r0.length
java.lang.Object[] r0 = kotlin.collections.ArraysKt.copyOfRange(r0, r3, r1)
L1b:
java.lang.reflect.Type[] r0 = (java.lang.reflect.Type[]) r0
r1 = 0
r4.<init>(r5, r2, r0, r1)
r4.boundReceiver = r6
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.BoundStatic.<init>(java.lang.reflect.Method, java.lang.Object):void");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
spreadBuilder.add(this.boundReceiver);
spreadBuilder.addSpread(args);
return callMethod(null, spreadBuilder.toArray(new Object[spreadBuilder.size()]));
}
/* renamed from: getBoundReceiver$kotlin_reflection, reason: from getter */
public final Object getBoundReceiver() {
return this.boundReceiver;
}
}
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\u0006\u0018\u00002\u00020\u00012\u00020\u0002B\u001d\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u000e\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0006¢\u0006\u0002\u0010\bJ\u001b\u0010\u0010\u001a\u0004\u0018\u00010\u00072\n\u0010\u0011\u001a\u0006\u0012\u0002\b\u00030\u0006H\u0016¢\u0006\u0002\u0010\u0012R\u001e\u0010\u0005\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0006X\u0080\u0004¢\u0006\n\n\u0002\u0010\u000b\u001a\u0004\b\t\u0010\nR\u0011\u0010\f\u001a\u00020\r8F¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000f¨\u0006\u0013"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass;", "Lkotlin/reflect/jvm/internal/calls/BoundCaller;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "boundReceiverComponents", "", "", "(Ljava/lang/reflect/Method;[Ljava/lang/Object;)V", "getBoundReceiverComponents$kotlin_reflection", "()[Ljava/lang/Object;", "[Ljava/lang/Object;", "receiverComponentsCount", "", "getReceiverComponentsCount", "()I", "call", "args", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass\n+ 2 ArraysJVM.kt\nkotlin/collections/ArraysKt__ArraysJVMKt\n*L\n1#1,265:1\n37#2,2:266\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$BoundStaticMultiFieldValueClass\n*L\n139#1:266,2\n*E\n"})
/* loaded from: classes3.dex */
public static final class BoundStaticMultiFieldValueClass extends Method implements BoundCaller {
private final Object[] boundReceiverComponents;
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public BoundStaticMultiFieldValueClass(java.lang.reflect.Method r4, java.lang.Object[] r5) {
/*
r3 = this;
java.lang.String r0 = "method"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r4, r0)
java.lang.String r0 = "boundReceiverComponents"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r5, r0)
java.lang.reflect.Type[] r0 = r4.getGenericParameterTypes()
java.lang.String r1 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
int r1 = r5.length
java.util.List r0 = kotlin.collections.ArraysKt.drop(r0, r1)
java.util.Collection r0 = (java.util.Collection) r0
r1 = 0
java.lang.reflect.Type[] r2 = new java.lang.reflect.Type[r1]
java.lang.Object[] r0 = r0.toArray(r2)
java.lang.reflect.Type[] r0 = (java.lang.reflect.Type[]) r0
r2 = 0
r3.<init>(r4, r1, r0, r2)
r3.boundReceiverComponents = r5
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.BoundStaticMultiFieldValueClass.<init>(java.lang.reflect.Method, java.lang.Object[]):void");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
SpreadBuilder spreadBuilder = new SpreadBuilder(2);
spreadBuilder.addSpread(this.boundReceiverComponents);
spreadBuilder.addSpread(args);
return callMethod(null, spreadBuilder.toArray(new Object[spreadBuilder.size()]));
}
/* renamed from: getBoundReceiverComponents$kotlin_reflection, reason: from getter */
public final Object[] getBoundReceiverComponents() {
return this.boundReceiverComponents;
}
public final int getReceiverComponentsCount() {
return this.boundReceiverComponents.length;
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n254#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Instance\n*L\n113#1:266\n113#1:267\n*E\n"})
/* loaded from: classes3.dex */
public static final class Instance extends Method {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Instance(java.lang.reflect.Method method) {
super(method, false, null, 6, null);
Intrinsics.checkNotNullParameter(method, "method");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return callMethod(args[0], args.length <= 1 ? new Object[0] : ArraysKt.copyOfRange(args, 1, args.length));
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nCallerImpl.kt\nKotlin\n*S Kotlin\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject\n+ 2 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Companion\n+ 3 ArrayIntrinsics.kt\nkotlin/ArrayIntrinsicsKt\n*L\n1#1,265:1\n254#2:266\n26#3:267\n*S KotlinDebug\n*F\n+ 1 CallerImpl.kt\nkotlin/reflect/jvm/internal/calls/CallerImpl$Method$JvmStaticInObject\n*L\n121#1:266\n121#1:267\n*E\n"})
/* loaded from: classes3.dex */
public static final class JvmStaticInObject extends Method {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public JvmStaticInObject(java.lang.reflect.Method method) {
super(method, true, null, 4, null);
Intrinsics.checkNotNullParameter(method, "method");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
checkObjectInstance(ArraysKt.firstOrNull(args));
return callMethod(null, args.length <= 1 ? new Object[0] : ArraysKt.copyOfRange(args, 1, args.length));
}
}
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u00062\n\u0010\u0007\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¢\u0006\u0002\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method$Static;", "Lkotlin/reflect/jvm/internal/calls/CallerImpl$Method;", FirebaseAnalytics.Param.METHOD, "Ljava/lang/reflect/Method;", "(Ljava/lang/reflect/Method;)V", "call", "", "args", "", "([Ljava/lang/Object;)Ljava/lang/Object;", "kotlin-reflection"}, k = 1, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public static final class Static extends Method {
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
public Static(java.lang.reflect.Method method) {
super(method, false, null, 6, null);
Intrinsics.checkNotNullParameter(method, "method");
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public Object call(Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
checkArguments(args);
return callMethod(null, args);
}
}
public /* synthetic */ Method(java.lang.reflect.Method method, boolean z3, Type[] typeArr, DefaultConstructorMarker defaultConstructorMarker) {
this(method, z3, typeArr);
}
public final Object callMethod(Object instance, Object[] args) {
Intrinsics.checkNotNullParameter(args, "args");
return this.isVoidMethod ? Unit.INSTANCE : mo1386getMember().invoke(instance, Arrays.copyOf(args, args.length));
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public /* synthetic */ Method(java.lang.reflect.Method r1, boolean r2, java.lang.reflect.Type[] r3, int r4, kotlin.jvm.internal.DefaultConstructorMarker r5) {
/*
r0 = this;
r5 = r4 & 2
if (r5 == 0) goto Le
int r2 = r1.getModifiers()
boolean r2 = java.lang.reflect.Modifier.isStatic(r2)
r2 = r2 ^ 1
Le:
r4 = r4 & 4
if (r4 == 0) goto L1b
java.lang.reflect.Type[] r3 = r1.getGenericParameterTypes()
java.lang.String r4 = "getGenericParameterTypes(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r3, r4)
L1b:
r4 = 0
r0.<init>(r1, r2, r3, r4)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.<init>(java.lang.reflect.Method, boolean, java.lang.reflect.Type[], int, kotlin.jvm.internal.DefaultConstructorMarker):void");
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private Method(java.lang.reflect.Method r7, boolean r8, java.lang.reflect.Type[] r9) {
/*
r6 = this;
java.lang.reflect.Type r2 = r7.getGenericReturnType()
java.lang.String r0 = "getGenericReturnType(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0)
if (r8 == 0) goto L11
java.lang.Class r8 = r7.getDeclaringClass()
Lf:
r3 = r8
goto L13
L11:
r8 = 0
goto Lf
L13:
r5 = 0
r0 = r6
r1 = r7
r4 = r9
r0.<init>(r1, r2, r3, r4, r5)
java.lang.reflect.Type r6 = r0.getReturnType()
java.lang.Class r7 = java.lang.Void.TYPE
boolean r6 = kotlin.jvm.internal.Intrinsics.areEqual(r6, r7)
r0.isVoidMethod = r6
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.Method.<init>(java.lang.reflect.Method, boolean, java.lang.reflect.Type[]):void");
}
}
public /* synthetic */ CallerImpl(Member member, Type type, Class cls, Type[] typeArr, DefaultConstructorMarker defaultConstructorMarker) {
this(member, type, cls, typeArr);
}
public void checkArguments(Object[] objArr) {
Caller.DefaultImpls.checkArguments(this, objArr);
}
public final void checkObjectInstance(Object obj) {
if (obj == null || !this.member.getDeclaringClass().isInstance(obj)) {
throw new IllegalArgumentException("An object member requires the object instance passed as the first argument.");
}
}
public final Class<?> getInstanceClass() {
return this.instanceClass;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
/* renamed from: getMember */
public final M mo1386getMember() {
return this.member;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public List<Type> getParameterTypes() {
return this.parameterTypes;
}
@Override // kotlin.reflect.jvm.internal.calls.Caller
public final Type getReturnType() {
return this.returnType;
}
/* JADX WARN: Code restructure failed: missing block: B:4:0x0025, code lost:
if (r1 == null) goto L6;
*/
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
private CallerImpl(M r1, java.lang.reflect.Type r2, java.lang.Class<?> r3, java.lang.reflect.Type[] r4) {
/*
r0 = this;
r0.<init>()
r0.member = r1
r0.returnType = r2
r0.instanceClass = r3
if (r3 == 0) goto L27
kotlin.jvm.internal.SpreadBuilder r1 = new kotlin.jvm.internal.SpreadBuilder
r2 = 2
r1.<init>(r2)
r1.add(r3)
r1.addSpread(r4)
int r2 = r1.size()
java.lang.reflect.Type[] r2 = new java.lang.reflect.Type[r2]
java.lang.Object[] r1 = r1.toArray(r2)
java.util.List r1 = kotlin.collections.CollectionsKt.listOf(r1)
if (r1 != 0) goto L2b
L27:
java.util.List r1 = kotlin.collections.ArraysKt.toList(r4)
L2b:
r0.parameterTypes = r1
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.reflect.jvm.internal.calls.CallerImpl.<init>(java.lang.reflect.Member, java.lang.reflect.Type, java.lang.Class, java.lang.reflect.Type[]):void");
}
}
@@ -0,0 +1,13 @@
package kotlin.reflect.jvm.internal.calls;
import kotlin.Metadata;
import kotlin.jvm.internal.Intrinsics;
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\b\u0003\"\u001c\u0010\u0000\u001a\u00020\u0001*\u0006\u0012\u0002\b\u00030\u00028@X\u0080\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0005"}, d2 = {"arity", "", "Lkotlin/reflect/jvm/internal/calls/Caller;", "getArity", "(Lkotlin/reflect/jvm/internal/calls/Caller;)I", "kotlin-reflection"}, k = 2, mv = {1, 9, 0}, xi = 48)
/* loaded from: classes3.dex */
public final class CallerKt {
public static final int getArity(Caller<?> caller) {
Intrinsics.checkNotNullParameter(caller, "<this>");
return caller.getParameterTypes().size();
}
}
Loaded 100 of 11486 files, more files were not shown because too many files have changed in this diff. Show more