ADD week 5
This commit is contained in:
		| @@ -0,0 +1,43 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: CoroutineContextImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b'\u0018\u00002\u00020\u0001B\u0011\u0012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003¢\u0006\u0002\u0010\u0004R\u0018\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/coroutines/AbstractCoroutineContextElement;", "Lkotlin/coroutines/CoroutineContext$Element;", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "(Lkotlin/coroutines/CoroutineContext$Key;)V", "getKey", "()Lkotlin/coroutines/CoroutineContext$Key;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class AbstractCoroutineContextElement implements CoroutineContext.Element { | ||||
|     private final CoroutineContext.Key<?> key; | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext.Element | ||||
|     public CoroutineContext.Key<?> getKey() { | ||||
|         return this.key; | ||||
|     } | ||||
|  | ||||
|     public AbstractCoroutineContextElement(CoroutineContext.Key<?> key) { | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         this.key = key; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext | ||||
|     public <R> R fold(R r, Function2<? super R, ? super CoroutineContext.Element, ? extends R> function2) { | ||||
|         return (R) CoroutineContext.Element.DefaultImpls.fold(this, r, function2); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext | ||||
|     public <E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key) { | ||||
|         return (E) CoroutineContext.Element.DefaultImpls.get(this, key); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext | ||||
|     public CoroutineContext minusKey(CoroutineContext.Key<?> key) { | ||||
|         return CoroutineContext.Element.DefaultImpls.minusKey(this, key); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public CoroutineContext plus(CoroutineContext coroutineContext) { | ||||
|         return CoroutineContext.Element.DefaultImpls.plus(this, coroutineContext); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,38 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.coroutines.CoroutineContext.Element; | ||||
| import kotlin.jvm.functions.Function1; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: CoroutineContextImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000b\n\u0002\b\u0006\b'\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u0002*\b\b\u0001\u0010\u0003*\u0002H\u00012\b\u0012\u0004\u0012\u0002H\u00030\u0004B8\u0012\f\u0010\u0005\u001a\b\u0012\u0004\u0012\u00028\u00000\u0004\u0012#\u0010\u0006\u001a\u001f\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0006\u0012\u0004\u0018\u00018\u00010\u0007¢\u0006\u0002\u0010\u000bJ\u0019\u0010\r\u001a\u00020\u000e2\n\u0010\u000f\u001a\u0006\u0012\u0002\b\u00030\u0004H\u0000¢\u0006\u0002\b\u0010J\u0019\u0010\u0011\u001a\u0004\u0018\u00018\u00012\u0006\u0010\n\u001a\u00020\u0002H\u0000¢\u0006\u0004\b\u0012\u0010\u0013R+\u0010\u0006\u001a\u001f\u0012\u0013\u0012\u00110\u0002¢\u0006\f\b\b\u0012\b\b\t\u0012\u0004\b\b(\n\u0012\u0006\u0012\u0004\u0018\u00018\u00010\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\f\u001a\u0006\u0012\u0002\b\u00030\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lkotlin/coroutines/AbstractCoroutineContextKey;", "B", "Lkotlin/coroutines/CoroutineContext$Element;", "E", "Lkotlin/coroutines/CoroutineContext$Key;", "baseKey", "safeCast", "Lkotlin/Function1;", "Lkotlin/ParameterName;", "name", "element", "(Lkotlin/coroutines/CoroutineContext$Key;Lkotlin/jvm/functions/Function1;)V", "topmostKey", "isSubKey", "", "key", "isSubKey$kotlin_stdlib", "tryCast", "tryCast$kotlin_stdlib", "(Lkotlin/coroutines/CoroutineContext$Element;)Lkotlin/coroutines/CoroutineContext$Element;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class AbstractCoroutineContextKey<B extends CoroutineContext.Element, E extends B> implements CoroutineContext.Key<E> { | ||||
|     private final Function1<CoroutineContext.Element, E> safeCast; | ||||
|     private final CoroutineContext.Key<?> topmostKey; | ||||
|  | ||||
|     public final boolean isSubKey$kotlin_stdlib(CoroutineContext.Key<?> key) { | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         return key == this || this.topmostKey == key; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     /* JADX WARN: Type inference failed for: r2v1, types: [kotlin.coroutines.CoroutineContext$Key<?>] */ | ||||
|     /* JADX WARN: Type inference failed for: r2v5 */ | ||||
|     /* JADX WARN: Type inference failed for: r2v6 */ | ||||
|     /* JADX WARN: Type inference failed for: r3v0, types: [java.lang.Object, kotlin.jvm.functions.Function1<? super kotlin.coroutines.CoroutineContext$Element, ? extends E extends B>, kotlin.jvm.functions.Function1<kotlin.coroutines.CoroutineContext$Element, E extends B>] */ | ||||
|     public AbstractCoroutineContextKey(CoroutineContext.Key<B> baseKey, Function1<? super CoroutineContext.Element, ? extends E> safeCast) { | ||||
|         Intrinsics.checkNotNullParameter(baseKey, "baseKey"); | ||||
|         Intrinsics.checkNotNullParameter(safeCast, "safeCast"); | ||||
|         this.safeCast = safeCast; | ||||
|         this.topmostKey = baseKey instanceof AbstractCoroutineContextKey ? (CoroutineContext.Key<B>) ((AbstractCoroutineContextKey) baseKey).topmostKey : baseKey; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Incorrect return type in method signature: (Lkotlin/coroutines/CoroutineContext$Element;)TE; */ | ||||
|     public final CoroutineContext.Element tryCast$kotlin_stdlib(CoroutineContext.Element element) { | ||||
|         Intrinsics.checkNotNullParameter(element, "element"); | ||||
|         return (CoroutineContext.Element) this.safeCast.invoke(element); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										183
									
								
								02-Easy5/E5/sources/kotlin/coroutines/CombinedContext.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										183
									
								
								02-Easy5/E5/sources/kotlin/coroutines/CombinedContext.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,183 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
| import kotlin.jvm.internal.Ref; | ||||
|  | ||||
| /* compiled from: CoroutineContextImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000L\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0003\b\u0001\u0018\u00002\u00020\u00012\u00060\u0002j\u0002`\u0003:\u0001!B\u0015\u0012\u0006\u0010\u0004\u001a\u00020\u0001\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\u0010\u0010\b\u001a\u00020\t2\u0006\u0010\u0005\u001a\u00020\u0006H\u0002J\u0010\u0010\n\u001a\u00020\t2\u0006\u0010\u000b\u001a\u00020\u0000H\u0002J\u0013\u0010\f\u001a\u00020\t2\b\u0010\r\u001a\u0004\u0018\u00010\u000eH\u0096\u0002J5\u0010\u000f\u001a\u0002H\u0010\"\u0004\b\u0000\u0010\u00102\u0006\u0010\u0011\u001a\u0002H\u00102\u0018\u0010\u0012\u001a\u0014\u0012\u0004\u0012\u0002H\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u0002H\u00100\u0013H\u0016¢\u0006\u0002\u0010\u0014J(\u0010\u0015\u001a\u0004\u0018\u0001H\u0016\"\b\b\u0000\u0010\u0016*\u00020\u00062\f\u0010\u0017\u001a\b\u0012\u0004\u0012\u0002H\u00160\u0018H\u0096\u0002¢\u0006\u0002\u0010\u0019J\b\u0010\u001a\u001a\u00020\u001bH\u0016J\u0014\u0010\u001c\u001a\u00020\u00012\n\u0010\u0017\u001a\u0006\u0012\u0002\b\u00030\u0018H\u0016J\b\u0010\u001d\u001a\u00020\u001bH\u0002J\b\u0010\u001e\u001a\u00020\u001fH\u0016J\b\u0010 \u001a\u00020\u000eH\u0002R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0004\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\""}, d2 = {"Lkotlin/coroutines/CombinedContext;", "Lkotlin/coroutines/CoroutineContext;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "left", "element", "Lkotlin/coroutines/CoroutineContext$Element;", "(Lkotlin/coroutines/CoroutineContext;Lkotlin/coroutines/CoroutineContext$Element;)V", "contains", "", "containsAll", "context", "equals", "other", "", "fold", "R", "initial", "operation", "Lkotlin/Function2;", "(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "get", "E", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;", "hashCode", "", "minusKey", "size", "toString", "", "writeReplace", "Serialized", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class CombinedContext implements CoroutineContext, Serializable { | ||||
|     private final CoroutineContext.Element element; | ||||
|     private final CoroutineContext left; | ||||
|  | ||||
|     public CombinedContext(CoroutineContext left, CoroutineContext.Element element) { | ||||
|         Intrinsics.checkNotNullParameter(left, "left"); | ||||
|         Intrinsics.checkNotNullParameter(element, "element"); | ||||
|         this.left = left; | ||||
|         this.element = element; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public CoroutineContext plus(CoroutineContext coroutineContext) { | ||||
|         return CoroutineContext.DefaultImpls.plus(this, coroutineContext); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public <E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key) { | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         CombinedContext combinedContext = this; | ||||
|         while (true) { | ||||
|             E e = (E) combinedContext.element.get(key); | ||||
|             if (e != null) { | ||||
|                 return e; | ||||
|             } | ||||
|             CoroutineContext coroutineContext = combinedContext.left; | ||||
|             if (coroutineContext instanceof CombinedContext) { | ||||
|                 combinedContext = (CombinedContext) coroutineContext; | ||||
|             } else { | ||||
|                 return (E) coroutineContext.get(key); | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public <R> R fold(R initial, Function2<? super R, ? super CoroutineContext.Element, ? extends R> operation) { | ||||
|         Intrinsics.checkNotNullParameter(operation, "operation"); | ||||
|         return operation.invoke((Object) this.left.fold(initial, operation), this.element); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public CoroutineContext minusKey(CoroutineContext.Key<?> key) { | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         if (this.element.get(key) != null) { | ||||
|             return this.left; | ||||
|         } | ||||
|         CoroutineContext minusKey = this.left.minusKey(key); | ||||
|         if (minusKey == this.left) { | ||||
|             return this; | ||||
|         } | ||||
|         return minusKey == EmptyCoroutineContext.INSTANCE ? this.element : new CombinedContext(minusKey, this.element); | ||||
|     } | ||||
|  | ||||
|     private final int size() { | ||||
|         int i = 2; | ||||
|         CombinedContext combinedContext = this; | ||||
|         while (true) { | ||||
|             CoroutineContext coroutineContext = combinedContext.left; | ||||
|             combinedContext = coroutineContext instanceof CombinedContext ? (CombinedContext) coroutineContext : null; | ||||
|             if (combinedContext == null) { | ||||
|                 return i; | ||||
|             } | ||||
|             i++; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     private final boolean contains(CoroutineContext.Element element) { | ||||
|         return Intrinsics.areEqual(get(element.getKey()), element); | ||||
|     } | ||||
|  | ||||
|     private final boolean containsAll(CombinedContext context) { | ||||
|         while (contains(context.element)) { | ||||
|             CoroutineContext coroutineContext = context.left; | ||||
|             if (coroutineContext instanceof CombinedContext) { | ||||
|                 context = (CombinedContext) coroutineContext; | ||||
|             } else { | ||||
|                 Intrinsics.checkNotNull(coroutineContext, "null cannot be cast to non-null type kotlin.coroutines.CoroutineContext.Element"); | ||||
|                 return contains((CoroutineContext.Element) coroutineContext); | ||||
|             } | ||||
|         } | ||||
|         return false; | ||||
|     } | ||||
|  | ||||
|     public boolean equals(Object other) { | ||||
|         if (this != other) { | ||||
|             if (other instanceof CombinedContext) { | ||||
|                 CombinedContext combinedContext = (CombinedContext) other; | ||||
|                 if (combinedContext.size() != size() || !combinedContext.containsAll(this)) { | ||||
|                 } | ||||
|             } | ||||
|             return false; | ||||
|         } | ||||
|         return true; | ||||
|     } | ||||
|  | ||||
|     public int hashCode() { | ||||
|         return this.left.hashCode() + this.element.hashCode(); | ||||
|     } | ||||
|  | ||||
|     public String toString() { | ||||
|         return "[" + ((String) fold("", new Function2<String, CoroutineContext.Element, String>() { // from class: kotlin.coroutines.CombinedContext$toString$1 | ||||
|             @Override // kotlin.jvm.functions.Function2 | ||||
|             public final String invoke(String acc, CoroutineContext.Element element) { | ||||
|                 Intrinsics.checkNotNullParameter(acc, "acc"); | ||||
|                 Intrinsics.checkNotNullParameter(element, "element"); | ||||
|                 if (acc.length() == 0) { | ||||
|                     return element.toString(); | ||||
|                 } | ||||
|                 return acc + ", " + element; | ||||
|             } | ||||
|         })) + ']'; | ||||
|     } | ||||
|  | ||||
|     private final Object writeReplace() { | ||||
|         int size = size(); | ||||
|         final CoroutineContext[] coroutineContextArr = new CoroutineContext[size]; | ||||
|         final Ref.IntRef intRef = new Ref.IntRef(); | ||||
|         fold(Unit.INSTANCE, new Function2<Unit, CoroutineContext.Element, Unit>() { // from class: kotlin.coroutines.CombinedContext$writeReplace$1 | ||||
|             /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|             { | ||||
|                 super(2); | ||||
|             } | ||||
|  | ||||
|             @Override // kotlin.jvm.functions.Function2 | ||||
|             public /* bridge */ /* synthetic */ Unit invoke(Unit unit, CoroutineContext.Element element) { | ||||
|                 invoke2(unit, element); | ||||
|                 return Unit.INSTANCE; | ||||
|             } | ||||
|  | ||||
|             /* renamed from: invoke, reason: avoid collision after fix types in other method */ | ||||
|             public final void invoke2(Unit unit, CoroutineContext.Element element) { | ||||
|                 Intrinsics.checkNotNullParameter(unit, "<anonymous parameter 0>"); | ||||
|                 Intrinsics.checkNotNullParameter(element, "element"); | ||||
|                 CoroutineContext[] coroutineContextArr2 = coroutineContextArr; | ||||
|                 int i = intRef.element; | ||||
|                 intRef.element = i + 1; | ||||
|                 coroutineContextArr2[i] = element; | ||||
|             } | ||||
|         }); | ||||
|         if (intRef.element != size) { | ||||
|             throw new IllegalStateException("Check failed.".toString()); | ||||
|         } | ||||
|         return new Serialized(coroutineContextArr); | ||||
|     } | ||||
|  | ||||
|     /* compiled from: CoroutineContextImpl.kt */ | ||||
|     @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\u0002\b\u0002\u0018\u0000 \f2\u00060\u0001j\u0002`\u0002:\u0001\fB\u0013\u0012\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004¢\u0006\u0002\u0010\u0006J\b\u0010\n\u001a\u00020\u000bH\u0002R\u0019\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004¢\u0006\n\n\u0002\u0010\t\u001a\u0004\b\u0007\u0010\b¨\u0006\r"}, d2 = {"Lkotlin/coroutines/CombinedContext$Serialized;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "elements", "", "Lkotlin/coroutines/CoroutineContext;", "([Lkotlin/coroutines/CoroutineContext;)V", "getElements", "()[Lkotlin/coroutines/CoroutineContext;", "[Lkotlin/coroutines/CoroutineContext;", "readResolve", "", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
|     private static final class Serialized implements Serializable { | ||||
|         private static final long serialVersionUID = 0; | ||||
|         private final CoroutineContext[] elements; | ||||
|  | ||||
|         public final CoroutineContext[] getElements() { | ||||
|             return this.elements; | ||||
|         } | ||||
|  | ||||
|         public Serialized(CoroutineContext[] elements) { | ||||
|             Intrinsics.checkNotNullParameter(elements, "elements"); | ||||
|             this.elements = elements; | ||||
|         } | ||||
|  | ||||
|         private final Object readResolve() { | ||||
|             CoroutineContext[] coroutineContextArr = this.elements; | ||||
|             CoroutineContext coroutineContext = EmptyCoroutineContext.INSTANCE; | ||||
|             for (CoroutineContext coroutineContext2 : coroutineContextArr) { | ||||
|                 coroutineContext = coroutineContext.plus(coroutineContext2); | ||||
|             } | ||||
|             return coroutineContext; | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										12
									
								
								02-Easy5/E5/sources/kotlin/coroutines/Continuation.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								02-Easy5/E5/sources/kotlin/coroutines/Continuation.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| /* compiled from: Continuation.kt */ | ||||
| @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\bg\u0018\u0000*\u0006\b\u0000\u0010\u0001 \u00002\u00020\u0002J\u001e\u0010\u0007\u001a\u00020\b2\f\u0010\t\u001a\b\u0012\u0004\u0012\u00028\u00000\nH&ø\u0001\u0000¢\u0006\u0002\u0010\u000bR\u0012\u0010\u0003\u001a\u00020\u0004X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0005\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\f"}, d2 = {"Lkotlin/coroutines/Continuation;", "T", "", "context", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "resumeWith", "", "result", "Lkotlin/Result;", "(Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public interface Continuation<T> { | ||||
|     CoroutineContext getContext(); | ||||
|  | ||||
|     void resumeWith(Object result); | ||||
| } | ||||
| @@ -0,0 +1,95 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: ContinuationInterceptor.kt */ | ||||
| @Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\bg\u0018\u0000 \u000f2\u00020\u0001:\u0001\u000fJ(\u0010\u0002\u001a\u0004\u0018\u0001H\u0003\"\b\b\u0000\u0010\u0003*\u00020\u00012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0005H\u0096\u0002¢\u0006\u0002\u0010\u0006J\"\u0010\u0007\u001a\b\u0012\u0004\u0012\u0002H\t0\b\"\u0004\b\u0000\u0010\t2\f\u0010\n\u001a\b\u0012\u0004\u0012\u0002H\t0\bH&J\u0014\u0010\u000b\u001a\u00020\f2\n\u0010\u0004\u001a\u0006\u0012\u0002\b\u00030\u0005H\u0016J\u0014\u0010\r\u001a\u00020\u000e2\n\u0010\n\u001a\u0006\u0012\u0002\b\u00030\bH\u0016¨\u0006\u0010"}, d2 = {"Lkotlin/coroutines/ContinuationInterceptor;", "Lkotlin/coroutines/CoroutineContext$Element;", "get", "E", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;", "interceptContinuation", "Lkotlin/coroutines/Continuation;", "T", "continuation", "minusKey", "Lkotlin/coroutines/CoroutineContext;", "releaseInterceptedContinuation", "", "Key", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public interface ContinuationInterceptor extends CoroutineContext.Element { | ||||
|  | ||||
|     /* renamed from: Key, reason: from kotlin metadata */ | ||||
|     public static final Companion INSTANCE = Companion.$$INSTANCE; | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext | ||||
|     <E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key); | ||||
|  | ||||
|     <T> Continuation<T> interceptContinuation(Continuation<? super T> continuation); | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext.Element, kotlin.coroutines.CoroutineContext | ||||
|     CoroutineContext minusKey(CoroutineContext.Key<?> key); | ||||
|  | ||||
|     void releaseInterceptedContinuation(Continuation<?> continuation); | ||||
|  | ||||
|     /* compiled from: ContinuationInterceptor.kt */ | ||||
|     @Metadata(k = 3, mv = {1, 8, 0}, xi = 48) | ||||
|     public static final class DefaultImpls { | ||||
|         public static void releaseInterceptedContinuation(ContinuationInterceptor continuationInterceptor, Continuation<?> continuation) { | ||||
|             Intrinsics.checkNotNullParameter(continuation, "continuation"); | ||||
|         } | ||||
|  | ||||
|         public static <R> R fold(ContinuationInterceptor continuationInterceptor, R r, Function2<? super R, ? super CoroutineContext.Element, ? extends R> operation) { | ||||
|             Intrinsics.checkNotNullParameter(operation, "operation"); | ||||
|             return (R) CoroutineContext.Element.DefaultImpls.fold(continuationInterceptor, r, operation); | ||||
|         } | ||||
|  | ||||
|         public static CoroutineContext plus(ContinuationInterceptor continuationInterceptor, CoroutineContext context) { | ||||
|             Intrinsics.checkNotNullParameter(context, "context"); | ||||
|             return CoroutineContext.Element.DefaultImpls.plus(continuationInterceptor, context); | ||||
|         } | ||||
|  | ||||
|         public static <E extends CoroutineContext.Element> E get(ContinuationInterceptor continuationInterceptor, CoroutineContext.Key<E> key) { | ||||
|             Intrinsics.checkNotNullParameter(key, "key"); | ||||
|             if (key instanceof AbstractCoroutineContextKey) { | ||||
|                 AbstractCoroutineContextKey abstractCoroutineContextKey = (AbstractCoroutineContextKey) key; | ||||
|                 if (!abstractCoroutineContextKey.isSubKey$kotlin_stdlib(continuationInterceptor.getKey())) { | ||||
|                     return null; | ||||
|                 } | ||||
|                 E e = (E) abstractCoroutineContextKey.tryCast$kotlin_stdlib(continuationInterceptor); | ||||
|                 if (e instanceof CoroutineContext.Element) { | ||||
|                     return e; | ||||
|                 } | ||||
|                 return null; | ||||
|             } | ||||
|             if (ContinuationInterceptor.INSTANCE != key) { | ||||
|                 return null; | ||||
|             } | ||||
|             Intrinsics.checkNotNull(continuationInterceptor, "null cannot be cast to non-null type E of kotlin.coroutines.ContinuationInterceptor.get"); | ||||
|             return continuationInterceptor; | ||||
|         } | ||||
|  | ||||
|         public static CoroutineContext minusKey(ContinuationInterceptor continuationInterceptor, CoroutineContext.Key<?> key) { | ||||
|             Intrinsics.checkNotNullParameter(key, "key"); | ||||
|             if (key instanceof AbstractCoroutineContextKey) { | ||||
|                 AbstractCoroutineContextKey abstractCoroutineContextKey = (AbstractCoroutineContextKey) key; | ||||
|                 boolean isSubKey$kotlin_stdlib = abstractCoroutineContextKey.isSubKey$kotlin_stdlib(continuationInterceptor.getKey()); | ||||
|                 Object obj = continuationInterceptor; | ||||
|                 if (isSubKey$kotlin_stdlib) { | ||||
|                     CoroutineContext.Element tryCast$kotlin_stdlib = abstractCoroutineContextKey.tryCast$kotlin_stdlib(continuationInterceptor); | ||||
|                     obj = continuationInterceptor; | ||||
|                     if (tryCast$kotlin_stdlib != null) { | ||||
|                         obj = EmptyCoroutineContext.INSTANCE; | ||||
|                     } | ||||
|                 } | ||||
|                 return (CoroutineContext) obj; | ||||
|             } | ||||
|             Object obj2 = continuationInterceptor; | ||||
|             if (ContinuationInterceptor.INSTANCE == key) { | ||||
|                 obj2 = EmptyCoroutineContext.INSTANCE; | ||||
|             } | ||||
|             return (CoroutineContext) obj2; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /* compiled from: ContinuationInterceptor.kt */ | ||||
|     @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0003¨\u0006\u0004"}, d2 = {"Lkotlin/coroutines/ContinuationInterceptor$Key;", "Lkotlin/coroutines/CoroutineContext$Key;", "Lkotlin/coroutines/ContinuationInterceptor;", "()V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
|     /* renamed from: kotlin.coroutines.ContinuationInterceptor$Key, reason: from kotlin metadata */ | ||||
|     public static final class Companion implements CoroutineContext.Key<ContinuationInterceptor> { | ||||
|         static final /* synthetic */ Companion $$INSTANCE = new Companion(); | ||||
|  | ||||
|         private Companion() { | ||||
|         } | ||||
|     } | ||||
| } | ||||
							
								
								
									
										95
									
								
								02-Easy5/E5/sources/kotlin/coroutines/ContinuationKt.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										95
									
								
								02-Easy5/E5/sources/kotlin/coroutines/ContinuationKt.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,95 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.NotImplementedError; | ||||
| import kotlin.Result; | ||||
| import kotlin.ResultKt; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.intrinsics.IntrinsicsKt; | ||||
| import kotlin.coroutines.jvm.internal.DebugProbesKt; | ||||
| import kotlin.jvm.functions.Function1; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.internal.InlineMarker; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: Continuation.kt */ | ||||
| @Metadata(d1 = {"\u0000>\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u0003\n\u0002\b\u0004\u001a?\u0010\u0006\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007\"\u0004\b\u0000\u0010\b2\u0006\u0010\t\u001a\u00020\u00012\u001a\b\u0004\u0010\n\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\f\u0012\u0004\u0012\u00020\r0\u000bH\u0087\bø\u0001\u0000ø\u0001\u0001\u001a@\u0010\u000e\u001a\u0002H\b\"\u0004\b\u0000\u0010\b2\u001a\b\u0004\u0010\u000f\u001a\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u0007\u0012\u0004\u0012\u00020\r0\u000bH\u0087Hø\u0001\u0001\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0002\u0010\u0010\u001aD\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\r0\u0007\"\u0004\b\u0000\u0010\b*\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u0007\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u000b2\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007H\u0007ø\u0001\u0001¢\u0006\u0002\u0010\u0014\u001a]\u0010\u0011\u001a\b\u0012\u0004\u0012\u00020\r0\u0007\"\u0004\b\u0000\u0010\u0015\"\u0004\b\u0001\u0010\b*#\b\u0001\u0012\u0004\u0012\u0002H\u0015\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u0007\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u0016¢\u0006\u0002\b\u00172\u0006\u0010\u0018\u001a\u0002H\u00152\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007H\u0007ø\u0001\u0001¢\u0006\u0002\u0010\u0019\u001a&\u0010\u001a\u001a\u00020\r\"\u0004\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\u00072\u0006\u0010\u001b\u001a\u0002H\bH\u0087\b¢\u0006\u0002\u0010\u001c\u001a!\u0010\u001d\u001a\u00020\r\"\u0004\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\u00072\u0006\u0010\u001e\u001a\u00020\u001fH\u0087\b\u001a>\u0010 \u001a\u00020\r\"\u0004\b\u0000\u0010\b*\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u0007\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u000b2\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007H\u0007ø\u0001\u0001¢\u0006\u0002\u0010!\u001aW\u0010 \u001a\u00020\r\"\u0004\b\u0000\u0010\u0015\"\u0004\b\u0001\u0010\b*#\b\u0001\u0012\u0004\u0012\u0002H\u0015\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\b0\u0007\u0012\u0006\u0012\u0004\u0018\u00010\u00120\u0016¢\u0006\u0002\b\u00172\u0006\u0010\u0018\u001a\u0002H\u00152\f\u0010\u0013\u001a\b\u0012\u0004\u0012\u0002H\b0\u0007H\u0007ø\u0001\u0001¢\u0006\u0002\u0010\"\"\u001b\u0010\u0000\u001a\u00020\u00018Æ\u0002X\u0087\u0004¢\u0006\f\u0012\u0004\b\u0002\u0010\u0003\u001a\u0004\b\u0004\u0010\u0005\u0082\u0002\u000b\n\u0005\b\u009920\u0001\n\u0002\b\u0019¨\u0006#"}, d2 = {"coroutineContext", "Lkotlin/coroutines/CoroutineContext;", "getCoroutineContext$annotations", "()V", "getCoroutineContext", "()Lkotlin/coroutines/CoroutineContext;", "Continuation", "Lkotlin/coroutines/Continuation;", "T", "context", "resumeWith", "Lkotlin/Function1;", "Lkotlin/Result;", "", "suspendCoroutine", "block", "(Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "createCoroutine", "", "completion", "(Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;", "R", "Lkotlin/Function2;", "Lkotlin/ExtensionFunctionType;", "receiver", "(Lkotlin/jvm/functions/Function2;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;", "resume", "value", "(Lkotlin/coroutines/Continuation;Ljava/lang/Object;)V", "resumeWithException", "exception", "", "startCoroutine", "(Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)V", "(Lkotlin/jvm/functions/Function2;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)V", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class ContinuationKt { | ||||
|     public static /* synthetic */ void getCoroutineContext$annotations() { | ||||
|     } | ||||
|  | ||||
|     private static final <T> void resume(Continuation<? super T> continuation, T t) { | ||||
|         Intrinsics.checkNotNullParameter(continuation, "<this>"); | ||||
|         Result.Companion companion = Result.INSTANCE; | ||||
|         continuation.resumeWith(Result.m288constructorimpl(t)); | ||||
|     } | ||||
|  | ||||
|     private static final <T> void resumeWithException(Continuation<? super T> continuation, Throwable exception) { | ||||
|         Intrinsics.checkNotNullParameter(continuation, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(exception, "exception"); | ||||
|         Result.Companion companion = Result.INSTANCE; | ||||
|         continuation.resumeWith(Result.m288constructorimpl(ResultKt.createFailure(exception))); | ||||
|     } | ||||
|  | ||||
|     private static final <T> Continuation<T> Continuation(final CoroutineContext context, final Function1<? super Result<? extends T>, Unit> resumeWith) { | ||||
|         Intrinsics.checkNotNullParameter(context, "context"); | ||||
|         Intrinsics.checkNotNullParameter(resumeWith, "resumeWith"); | ||||
|         return new Continuation<T>() { // from class: kotlin.coroutines.ContinuationKt$Continuation$1 | ||||
|             @Override // kotlin.coroutines.Continuation | ||||
|             /* renamed from: getContext, reason: from getter */ | ||||
|             public CoroutineContext get$context() { | ||||
|                 return CoroutineContext.this; | ||||
|             } | ||||
|  | ||||
|             @Override // kotlin.coroutines.Continuation | ||||
|             public void resumeWith(Object result) { | ||||
|                 resumeWith.invoke(Result.m287boximpl(result)); | ||||
|             } | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     public static final <T> Continuation<Unit> createCoroutine(Function1<? super Continuation<? super T>, ? extends Object> function1, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function1, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         return new SafeContinuation(IntrinsicsKt.intercepted(IntrinsicsKt.createCoroutineUnintercepted(function1, completion)), IntrinsicsKt.getCOROUTINE_SUSPENDED()); | ||||
|     } | ||||
|  | ||||
|     public static final <R, T> Continuation<Unit> createCoroutine(Function2<? super R, ? super Continuation<? super T>, ? extends Object> function2, R r, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function2, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         return new SafeContinuation(IntrinsicsKt.intercepted(IntrinsicsKt.createCoroutineUnintercepted(function2, r, completion)), IntrinsicsKt.getCOROUTINE_SUSPENDED()); | ||||
|     } | ||||
|  | ||||
|     public static final <T> void startCoroutine(Function1<? super Continuation<? super T>, ? extends Object> function1, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function1, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         Continuation intercepted = IntrinsicsKt.intercepted(IntrinsicsKt.createCoroutineUnintercepted(function1, completion)); | ||||
|         Result.Companion companion = Result.INSTANCE; | ||||
|         intercepted.resumeWith(Result.m288constructorimpl(Unit.INSTANCE)); | ||||
|     } | ||||
|  | ||||
|     public static final <R, T> void startCoroutine(Function2<? super R, ? super Continuation<? super T>, ? extends Object> function2, R r, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function2, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         Continuation intercepted = IntrinsicsKt.intercepted(IntrinsicsKt.createCoroutineUnintercepted(function2, r, completion)); | ||||
|         Result.Companion companion = Result.INSTANCE; | ||||
|         intercepted.resumeWith(Result.m288constructorimpl(Unit.INSTANCE)); | ||||
|     } | ||||
|  | ||||
|     private static final <T> Object suspendCoroutine(Function1<? super Continuation<? super T>, Unit> function1, Continuation<? super T> continuation) { | ||||
|         InlineMarker.mark(0); | ||||
|         SafeContinuation safeContinuation = new SafeContinuation(IntrinsicsKt.intercepted(continuation)); | ||||
|         function1.invoke(safeContinuation); | ||||
|         Object orThrow = safeContinuation.getOrThrow(); | ||||
|         if (orThrow == IntrinsicsKt.getCOROUTINE_SUSPENDED()) { | ||||
|             DebugProbesKt.probeCoroutineSuspended(continuation); | ||||
|         } | ||||
|         InlineMarker.mark(1); | ||||
|         return orThrow; | ||||
|     } | ||||
|  | ||||
|     private static final CoroutineContext getCoroutineContext() { | ||||
|         throw new NotImplementedError("Implemented as intrinsic"); | ||||
|     } | ||||
| } | ||||
							
								
								
									
										102
									
								
								02-Easy5/E5/sources/kotlin/coroutines/CoroutineContext.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										102
									
								
								02-Easy5/E5/sources/kotlin/coroutines/CoroutineContext.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,102 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: CoroutineContext.kt */ | ||||
| @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0007\bg\u0018\u00002\u00020\u0001:\u0002\u0011\u0012J5\u0010\u0002\u001a\u0002H\u0003\"\u0004\b\u0000\u0010\u00032\u0006\u0010\u0004\u001a\u0002H\u00032\u0018\u0010\u0005\u001a\u0014\u0012\u0004\u0012\u0002H\u0003\u0012\u0004\u0012\u00020\u0007\u0012\u0004\u0012\u0002H\u00030\u0006H&¢\u0006\u0002\u0010\bJ(\u0010\t\u001a\u0004\u0018\u0001H\n\"\b\b\u0000\u0010\n*\u00020\u00072\f\u0010\u000b\u001a\b\u0012\u0004\u0012\u0002H\n0\fH¦\u0002¢\u0006\u0002\u0010\rJ\u0014\u0010\u000e\u001a\u00020\u00002\n\u0010\u000b\u001a\u0006\u0012\u0002\b\u00030\fH&J\u0011\u0010\u000f\u001a\u00020\u00002\u0006\u0010\u0010\u001a\u00020\u0000H\u0096\u0002¨\u0006\u0013"}, d2 = {"Lkotlin/coroutines/CoroutineContext;", "", "fold", "R", "initial", "operation", "Lkotlin/Function2;", "Lkotlin/coroutines/CoroutineContext$Element;", "(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "get", "E", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;", "minusKey", "plus", "context", "Element", "Key", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public interface CoroutineContext { | ||||
|  | ||||
|     /* compiled from: CoroutineContext.kt */ | ||||
|     @Metadata(d1 = {"\u0000\u0010\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\bf\u0018\u0000*\b\b\u0000\u0010\u0001*\u00020\u00022\u00020\u0003¨\u0006\u0004"}, d2 = {"Lkotlin/coroutines/CoroutineContext$Key;", "E", "Lkotlin/coroutines/CoroutineContext$Element;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
|     public interface Key<E extends Element> { | ||||
|     } | ||||
|  | ||||
|     <R> R fold(R initial, Function2<? super R, ? super Element, ? extends R> operation); | ||||
|  | ||||
|     <E extends Element> E get(Key<E> key); | ||||
|  | ||||
|     CoroutineContext minusKey(Key<?> key); | ||||
|  | ||||
|     CoroutineContext plus(CoroutineContext context); | ||||
|  | ||||
|     /* compiled from: CoroutineContext.kt */ | ||||
|     @Metadata(k = 3, mv = {1, 8, 0}, xi = 48) | ||||
|     public static final class DefaultImpls { | ||||
|         public static CoroutineContext plus(CoroutineContext coroutineContext, CoroutineContext context) { | ||||
|             Intrinsics.checkNotNullParameter(context, "context"); | ||||
|             return context == EmptyCoroutineContext.INSTANCE ? coroutineContext : (CoroutineContext) context.fold(coroutineContext, new Function2<CoroutineContext, Element, CoroutineContext>() { // from class: kotlin.coroutines.CoroutineContext$plus$1 | ||||
|                 @Override // kotlin.jvm.functions.Function2 | ||||
|                 public final CoroutineContext invoke(CoroutineContext acc, CoroutineContext.Element element) { | ||||
|                     CombinedContext combinedContext; | ||||
|                     Intrinsics.checkNotNullParameter(acc, "acc"); | ||||
|                     Intrinsics.checkNotNullParameter(element, "element"); | ||||
|                     CoroutineContext minusKey = acc.minusKey(element.getKey()); | ||||
|                     if (minusKey == EmptyCoroutineContext.INSTANCE) { | ||||
|                         return element; | ||||
|                     } | ||||
|                     ContinuationInterceptor continuationInterceptor = (ContinuationInterceptor) minusKey.get(ContinuationInterceptor.Key); | ||||
|                     if (continuationInterceptor == null) { | ||||
|                         combinedContext = new CombinedContext(minusKey, element); | ||||
|                     } else { | ||||
|                         CoroutineContext minusKey2 = minusKey.minusKey(ContinuationInterceptor.Key); | ||||
|                         combinedContext = minusKey2 == EmptyCoroutineContext.INSTANCE ? new CombinedContext(element, continuationInterceptor) : new CombinedContext(new CombinedContext(minusKey2, element), continuationInterceptor); | ||||
|                     } | ||||
|                     return combinedContext; | ||||
|                 } | ||||
|             }); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     /* compiled from: CoroutineContext.kt */ | ||||
|     @Metadata(d1 = {"\u0000\u001a\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0018\u0002\n\u0002\b\u0006\bf\u0018\u00002\u00020\u0001J5\u0010\u0006\u001a\u0002H\u0007\"\u0004\b\u0000\u0010\u00072\u0006\u0010\b\u001a\u0002H\u00072\u0018\u0010\t\u001a\u0014\u0012\u0004\u0012\u0002H\u0007\u0012\u0004\u0012\u00020\u0000\u0012\u0004\u0012\u0002H\u00070\nH\u0016¢\u0006\u0002\u0010\u000bJ(\u0010\f\u001a\u0004\u0018\u0001H\r\"\b\b\u0000\u0010\r*\u00020\u00002\f\u0010\u0002\u001a\b\u0012\u0004\u0012\u0002H\r0\u0003H\u0096\u0002¢\u0006\u0002\u0010\u000eJ\u0014\u0010\u000f\u001a\u00020\u00012\n\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003H\u0016R\u0016\u0010\u0002\u001a\u0006\u0012\u0002\b\u00030\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005¨\u0006\u0010"}, d2 = {"Lkotlin/coroutines/CoroutineContext$Element;", "Lkotlin/coroutines/CoroutineContext;", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "getKey", "()Lkotlin/coroutines/CoroutineContext$Key;", "fold", "R", "initial", "operation", "Lkotlin/Function2;", "(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "get", "E", "(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;", "minusKey", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
|     public interface Element extends CoroutineContext { | ||||
|         @Override // kotlin.coroutines.CoroutineContext | ||||
|         <R> R fold(R initial, Function2<? super R, ? super Element, ? extends R> operation); | ||||
|  | ||||
|         @Override // kotlin.coroutines.CoroutineContext | ||||
|         <E extends Element> E get(Key<E> key); | ||||
|  | ||||
|         Key<?> getKey(); | ||||
|  | ||||
|         @Override // kotlin.coroutines.CoroutineContext | ||||
|         CoroutineContext minusKey(Key<?> key); | ||||
|  | ||||
|         /* compiled from: CoroutineContext.kt */ | ||||
|         @Metadata(k = 3, mv = {1, 8, 0}, xi = 48) | ||||
|         public static final class DefaultImpls { | ||||
|             public static CoroutineContext plus(Element element, CoroutineContext context) { | ||||
|                 Intrinsics.checkNotNullParameter(context, "context"); | ||||
|                 return DefaultImpls.plus(element, context); | ||||
|             } | ||||
|  | ||||
|             /* JADX WARN: Multi-variable type inference failed */ | ||||
|             public static <E extends Element> E get(Element element, Key<E> key) { | ||||
|                 Intrinsics.checkNotNullParameter(key, "key"); | ||||
|                 if (!Intrinsics.areEqual(element.getKey(), key)) { | ||||
|                     return null; | ||||
|                 } | ||||
|                 Intrinsics.checkNotNull(element, "null cannot be cast to non-null type E of kotlin.coroutines.CoroutineContext.Element.get"); | ||||
|                 return element; | ||||
|             } | ||||
|  | ||||
|             public static <R> R fold(Element element, R r, Function2<? super R, ? super Element, ? extends R> operation) { | ||||
|                 Intrinsics.checkNotNullParameter(operation, "operation"); | ||||
|                 return operation.invoke(r, element); | ||||
|             } | ||||
|  | ||||
|             public static CoroutineContext minusKey(Element element, Key<?> key) { | ||||
|                 Intrinsics.checkNotNullParameter(key, "key"); | ||||
|                 boolean areEqual = Intrinsics.areEqual(element.getKey(), key); | ||||
|                 Object obj = element; | ||||
|                 if (areEqual) { | ||||
|                     obj = EmptyCoroutineContext.INSTANCE; | ||||
|                 } | ||||
|                 return (CoroutineContext) obj; | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,55 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: CoroutineContextImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000\u0018\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a+\u0010\u0000\u001a\u0004\u0018\u0001H\u0001\"\b\b\u0000\u0010\u0001*\u00020\u0002*\u00020\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00010\u0004H\u0007¢\u0006\u0002\u0010\u0005\u001a\u0018\u0010\u0006\u001a\u00020\u0007*\u00020\u00022\n\u0010\u0003\u001a\u0006\u0012\u0002\b\u00030\u0004H\u0007¨\u0006\b"}, d2 = {"getPolymorphicElement", "E", "Lkotlin/coroutines/CoroutineContext$Element;", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "(Lkotlin/coroutines/CoroutineContext$Element;Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;", "minusPolymorphicKey", "Lkotlin/coroutines/CoroutineContext;", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class CoroutineContextImplKt { | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     public static final <E extends CoroutineContext.Element> E getPolymorphicElement(CoroutineContext.Element element, CoroutineContext.Key<E> key) { | ||||
|         Intrinsics.checkNotNullParameter(element, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         if (key instanceof AbstractCoroutineContextKey) { | ||||
|             AbstractCoroutineContextKey abstractCoroutineContextKey = (AbstractCoroutineContextKey) key; | ||||
|             if (!abstractCoroutineContextKey.isSubKey$kotlin_stdlib(element.getKey())) { | ||||
|                 return null; | ||||
|             } | ||||
|             E e = (E) abstractCoroutineContextKey.tryCast$kotlin_stdlib(element); | ||||
|             if (e instanceof CoroutineContext.Element) { | ||||
|                 return e; | ||||
|             } | ||||
|             return null; | ||||
|         } | ||||
|         if (element.getKey() == key) { | ||||
|             return element; | ||||
|         } | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     public static final CoroutineContext minusPolymorphicKey(CoroutineContext.Element element, CoroutineContext.Key<?> key) { | ||||
|         Intrinsics.checkNotNullParameter(element, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         if (key instanceof AbstractCoroutineContextKey) { | ||||
|             AbstractCoroutineContextKey abstractCoroutineContextKey = (AbstractCoroutineContextKey) key; | ||||
|             boolean isSubKey$kotlin_stdlib = abstractCoroutineContextKey.isSubKey$kotlin_stdlib(element.getKey()); | ||||
|             Object obj = element; | ||||
|             if (isSubKey$kotlin_stdlib) { | ||||
|                 CoroutineContext.Element tryCast$kotlin_stdlib = abstractCoroutineContextKey.tryCast$kotlin_stdlib(element); | ||||
|                 obj = element; | ||||
|                 if (tryCast$kotlin_stdlib != null) { | ||||
|                     obj = EmptyCoroutineContext.INSTANCE; | ||||
|                 } | ||||
|             } | ||||
|             return (CoroutineContext) obj; | ||||
|         } | ||||
|         CoroutineContext.Key<?> key2 = element.getKey(); | ||||
|         Object obj2 = element; | ||||
|         if (key2 == key) { | ||||
|             obj2 = EmptyCoroutineContext.INSTANCE; | ||||
|         } | ||||
|         return (CoroutineContext) obj2; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,54 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: CoroutineContextImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000D\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\bÇ\u0002\u0018\u00002\u00020\u00012\u00060\u0002j\u0002`\u0003B\u0007\b\u0002¢\u0006\u0002\u0010\u0004J5\u0010\u0007\u001a\u0002H\b\"\u0004\b\u0000\u0010\b2\u0006\u0010\t\u001a\u0002H\b2\u0018\u0010\n\u001a\u0014\u0012\u0004\u0012\u0002H\b\u0012\u0004\u0012\u00020\f\u0012\u0004\u0012\u0002H\b0\u000bH\u0016¢\u0006\u0002\u0010\rJ(\u0010\u000e\u001a\u0004\u0018\u0001H\u000f\"\b\b\u0000\u0010\u000f*\u00020\f2\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u000f0\u0011H\u0096\u0002¢\u0006\u0002\u0010\u0012J\b\u0010\u0013\u001a\u00020\u0014H\u0016J\u0014\u0010\u0015\u001a\u00020\u00012\n\u0010\u0010\u001a\u0006\u0012\u0002\b\u00030\u0011H\u0016J\u0011\u0010\u0016\u001a\u00020\u00012\u0006\u0010\u0017\u001a\u00020\u0001H\u0096\u0002J\b\u0010\u0018\u001a\u00020\u0019H\u0002J\b\u0010\u001a\u001a\u00020\u001bH\u0016R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u001c"}, d2 = {"Lkotlin/coroutines/EmptyCoroutineContext;", "Lkotlin/coroutines/CoroutineContext;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "()V", "serialVersionUID", "", "fold", "R", "initial", "operation", "Lkotlin/Function2;", "Lkotlin/coroutines/CoroutineContext$Element;", "(Ljava/lang/Object;Lkotlin/jvm/functions/Function2;)Ljava/lang/Object;", "get", "E", "key", "Lkotlin/coroutines/CoroutineContext$Key;", "(Lkotlin/coroutines/CoroutineContext$Key;)Lkotlin/coroutines/CoroutineContext$Element;", "hashCode", "", "minusKey", "plus", "context", "readResolve", "", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class EmptyCoroutineContext implements CoroutineContext, Serializable { | ||||
|     public static final EmptyCoroutineContext INSTANCE = new EmptyCoroutineContext(); | ||||
|     private static final long serialVersionUID = 0; | ||||
|  | ||||
|     private final Object readResolve() { | ||||
|         return INSTANCE; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public <R> R fold(R initial, Function2<? super R, ? super CoroutineContext.Element, ? extends R> operation) { | ||||
|         Intrinsics.checkNotNullParameter(operation, "operation"); | ||||
|         return initial; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public <E extends CoroutineContext.Element> E get(CoroutineContext.Key<E> key) { | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     public int hashCode() { | ||||
|         return 0; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public CoroutineContext plus(CoroutineContext context) { | ||||
|         Intrinsics.checkNotNullParameter(context, "context"); | ||||
|         return context; | ||||
|     } | ||||
|  | ||||
|     public String toString() { | ||||
|         return "EmptyCoroutineContext"; | ||||
|     } | ||||
|  | ||||
|     private EmptyCoroutineContext() { | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.CoroutineContext | ||||
|     public CoroutineContext minusKey(CoroutineContext.Key<?> key) { | ||||
|         Intrinsics.checkNotNullParameter(key, "key"); | ||||
|         return this; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,19 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| 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.annotation.AnnotationRetention; | ||||
| import kotlin.annotation.AnnotationTarget; | ||||
|  | ||||
| /* compiled from: Continuation.kt */ | ||||
| @Target({ElementType.TYPE}) | ||||
| @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/coroutines/RestrictsSuspension;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| @kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS}) | ||||
| @Retention(RetentionPolicy.CLASS) | ||||
| @kotlin.annotation.Retention(AnnotationRetention.BINARY) | ||||
| /* loaded from: classes.dex */ | ||||
| public @interface RestrictsSuspension { | ||||
| } | ||||
							
								
								
									
										108
									
								
								02-Easy5/E5/sources/kotlin/coroutines/SafeContinuation.java
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										108
									
								
								02-Easy5/E5/sources/kotlin/coroutines/SafeContinuation.java
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,108 @@ | ||||
| package kotlin.coroutines; | ||||
|  | ||||
| import androidx.concurrent.futures.AbstractResolvableFuture$SafeAtomicHelper$$ExternalSyntheticBackportWithForwarding0; | ||||
| import java.util.concurrent.atomic.AtomicReferenceFieldUpdater; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.Result; | ||||
| import kotlin.coroutines.intrinsics.CoroutineSingletons; | ||||
| import kotlin.coroutines.intrinsics.IntrinsicsKt; | ||||
| import kotlin.coroutines.jvm.internal.CoroutineStackFrame; | ||||
| import kotlin.jvm.internal.DefaultConstructorMarker; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: SafeContinuationJvm.kt */ | ||||
| @Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0000\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0002\b\u0001\u0018\u0000 \u001a*\u0006\b\u0000\u0010\u0001 \u00002\b\u0012\u0004\u0012\u0002H\u00010\u00022\u00020\u0003:\u0001\u001aB\u0015\b\u0011\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002¢\u0006\u0002\u0010\u0005B\u001f\b\u0000\u0012\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\bJ\n\u0010\u0011\u001a\u0004\u0018\u00010\u0007H\u0001J\n\u0010\u0012\u001a\u0004\u0018\u00010\u0013H\u0016J\u001e\u0010\u0014\u001a\u00020\u00152\f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00028\u00000\u0016H\u0016ø\u0001\u0000¢\u0006\u0002\u0010\u0017J\b\u0010\u0018\u001a\u00020\u0019H\u0016R\u0016\u0010\t\u001a\u0004\u0018\u00010\u00038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0014\u0010\f\u001a\u00020\r8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000fR\u0014\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0002X\u0082\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0010\u001a\u0004\u0018\u00010\u0007X\u0082\u000e¢\u0006\u0002\n\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001b"}, d2 = {"Lkotlin/coroutines/SafeContinuation;", "T", "Lkotlin/coroutines/Continuation;", "Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;", "delegate", "(Lkotlin/coroutines/Continuation;)V", "initialResult", "", "(Lkotlin/coroutines/Continuation;Ljava/lang/Object;)V", "callerFrame", "getCallerFrame", "()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;", "context", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "result", "getOrThrow", "getStackTraceElement", "Ljava/lang/StackTraceElement;", "resumeWith", "", "Lkotlin/Result;", "(Ljava/lang/Object;)V", "toString", "", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class SafeContinuation<T> implements Continuation<T>, CoroutineStackFrame { | ||||
|     private static final Companion Companion = new Companion(null); | ||||
|     private static final AtomicReferenceFieldUpdater<SafeContinuation<?>, Object> RESULT = AtomicReferenceFieldUpdater.newUpdater(SafeContinuation.class, Object.class, "result"); | ||||
|     private final Continuation<T> delegate; | ||||
|     private volatile Object result; | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.CoroutineStackFrame | ||||
|     public StackTraceElement getStackTraceElement() { | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     public SafeContinuation(Continuation<? super T> delegate, Object obj) { | ||||
|         Intrinsics.checkNotNullParameter(delegate, "delegate"); | ||||
|         this.delegate = delegate; | ||||
|         this.result = obj; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: 'this' call moved to the top of the method (can break code semantics) */ | ||||
|     public SafeContinuation(Continuation<? super T> delegate) { | ||||
|         this(delegate, CoroutineSingletons.UNDECIDED); | ||||
|         Intrinsics.checkNotNullParameter(delegate, "delegate"); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public CoroutineContext getContext() { | ||||
|         return this.delegate.getContext(); | ||||
|     } | ||||
|  | ||||
|     /* compiled from: SafeContinuationJvm.kt */ | ||||
|     @Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0082\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002Rd\u0010\u0003\u001aR\u0012\u0014\u0012\u0012\u0012\u0002\b\u0003 \u0006*\b\u0012\u0002\b\u0003\u0018\u00010\u00050\u0005\u0012\f\u0012\n \u0006*\u0004\u0018\u00010\u00010\u0001 \u0006*(\u0012\u0014\u0012\u0012\u0012\u0002\b\u0003 \u0006*\b\u0012\u0002\b\u0003\u0018\u00010\u00050\u0005\u0012\f\u0012\n \u0006*\u0004\u0018\u00010\u00010\u0001\u0018\u00010\u00040\u0004X\u0082\u0004¢\u0006\b\n\u0000\u0012\u0004\b\u0007\u0010\u0002¨\u0006\b"}, d2 = {"Lkotlin/coroutines/SafeContinuation$Companion;", "", "()V", "RESULT", "Ljava/util/concurrent/atomic/AtomicReferenceFieldUpdater;", "Lkotlin/coroutines/SafeContinuation;", "kotlin.jvm.PlatformType", "getRESULT$annotations", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
|     private static final class Companion { | ||||
|         public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) { | ||||
|             this(); | ||||
|         } | ||||
|  | ||||
|         private static /* synthetic */ void getRESULT$annotations() { | ||||
|         } | ||||
|  | ||||
|         private Companion() { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public void resumeWith(Object result) { | ||||
|         while (true) { | ||||
|             Object obj = this.result; | ||||
|             if (obj == CoroutineSingletons.UNDECIDED) { | ||||
|                 if (AbstractResolvableFuture$SafeAtomicHelper$$ExternalSyntheticBackportWithForwarding0.m(RESULT, this, CoroutineSingletons.UNDECIDED, result)) { | ||||
|                     return; | ||||
|                 } | ||||
|             } else { | ||||
|                 if (obj != IntrinsicsKt.getCOROUTINE_SUSPENDED()) { | ||||
|                     throw new IllegalStateException("Already resumed"); | ||||
|                 } | ||||
|                 if (AbstractResolvableFuture$SafeAtomicHelper$$ExternalSyntheticBackportWithForwarding0.m(RESULT, this, IntrinsicsKt.getCOROUTINE_SUSPENDED(), CoroutineSingletons.RESUMED)) { | ||||
|                     this.delegate.resumeWith(result); | ||||
|                     return; | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public final Object getOrThrow() { | ||||
|         Object obj = this.result; | ||||
|         if (obj == CoroutineSingletons.UNDECIDED) { | ||||
|             if (AbstractResolvableFuture$SafeAtomicHelper$$ExternalSyntheticBackportWithForwarding0.m(RESULT, this, CoroutineSingletons.UNDECIDED, IntrinsicsKt.getCOROUTINE_SUSPENDED())) { | ||||
|                 return IntrinsicsKt.getCOROUTINE_SUSPENDED(); | ||||
|             } | ||||
|             obj = this.result; | ||||
|         } | ||||
|         if (obj == CoroutineSingletons.RESUMED) { | ||||
|             return IntrinsicsKt.getCOROUTINE_SUSPENDED(); | ||||
|         } | ||||
|         if (obj instanceof Result.Failure) { | ||||
|             throw ((Result.Failure) obj).exception; | ||||
|         } | ||||
|         return obj; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.CoroutineStackFrame | ||||
|     public CoroutineStackFrame getCallerFrame() { | ||||
|         Continuation<T> continuation = this.delegate; | ||||
|         if (continuation instanceof CoroutineStackFrame) { | ||||
|             return (CoroutineStackFrame) continuation; | ||||
|         } | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     public String toString() { | ||||
|         return "SafeContinuation for " + this.delegate; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,24 @@ | ||||
| package kotlin.coroutines.cancellation; | ||||
|  | ||||
| import java.util.concurrent.CancellationException; | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| /* compiled from: CancellationException.kt */ | ||||
| @Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a!\u0010\u0000\u001a\u00060\u0001j\u0002`\u00022\b\u0010\u0003\u001a\u0004\u0018\u00010\u00042\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0087\b\u001a\u0017\u0010\u0000\u001a\u00060\u0001j\u0002`\u00022\b\u0010\u0005\u001a\u0004\u0018\u00010\u0006H\u0087\b*\u001a\b\u0007\u0010\u0000\"\u00020\u00012\u00020\u0001B\f\b\u0007\u0012\b\b\b\u0012\u0004\b\b(\t¨\u0006\n"}, d2 = {"CancellationException", "Ljava/util/concurrent/CancellationException;", "Lkotlin/coroutines/cancellation/CancellationException;", "message", "", "cause", "", "Lkotlin/SinceKotlin;", "version", "1.4", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class CancellationExceptionKt { | ||||
|     public static /* synthetic */ void CancellationException$annotations() { | ||||
|     } | ||||
|  | ||||
|     private static final CancellationException CancellationException(String str, Throwable th) { | ||||
|         CancellationException cancellationException = new CancellationException(str); | ||||
|         cancellationException.initCause(th); | ||||
|         return cancellationException; | ||||
|     } | ||||
|  | ||||
|     private static final CancellationException CancellationException(Throwable th) { | ||||
|         CancellationException cancellationException = new CancellationException(th != null ? th.toString() : null); | ||||
|         cancellationException.initCause(th); | ||||
|         return cancellationException; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,12 @@ | ||||
| package kotlin.coroutines.intrinsics; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| /* compiled from: Intrinsics.kt */ | ||||
| @Metadata(d1 = {"\u0000\f\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\b\u0005\b\u0081\u0001\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/coroutines/intrinsics/CoroutineSingletons;", "", "(Ljava/lang/String;I)V", "COROUTINE_SUSPENDED", "UNDECIDED", "RESUMED", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public enum CoroutineSingletons { | ||||
|     COROUTINE_SUSPENDED, | ||||
|     UNDECIDED, | ||||
|     RESUMED | ||||
| } | ||||
| @@ -0,0 +1,10 @@ | ||||
| package kotlin.coroutines.intrinsics; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| @Metadata(d1 = {"kotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsJvmKt", "kotlin/coroutines/intrinsics/IntrinsicsKt__IntrinsicsKt"}, k = 4, mv = {1, 8, 0}, xi = 49) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class IntrinsicsKt extends IntrinsicsKt__IntrinsicsKt { | ||||
|     private IntrinsicsKt() { | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,253 @@ | ||||
| package kotlin.coroutines.intrinsics; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.ResultKt; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.coroutines.EmptyCoroutineContext; | ||||
| import kotlin.coroutines.jvm.internal.BaseContinuationImpl; | ||||
| import kotlin.coroutines.jvm.internal.ContinuationImpl; | ||||
| import kotlin.coroutines.jvm.internal.DebugProbesKt; | ||||
| import kotlin.coroutines.jvm.internal.RestrictedContinuationImpl; | ||||
| import kotlin.jvm.functions.Function1; | ||||
| import kotlin.jvm.functions.Function2; | ||||
| import kotlin.jvm.functions.Function3; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
| import kotlin.jvm.internal.TypeIntrinsics; | ||||
|  | ||||
| /* JADX INFO: Access modifiers changed from: package-private */ | ||||
| /* compiled from: IntrinsicsJvm.kt */ | ||||
| @Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0003\u001aF\u0010\u0000\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001\"\u0004\b\u0000\u0010\u00032\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u00012\u001c\b\u0004\u0010\u0005\u001a\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0006H\u0083\b¢\u0006\u0002\b\b\u001aD\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001\"\u0004\b\u0000\u0010\u0003*\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u00062\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0001H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\n\u001a]\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00020\u0001\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0003*#\b\u0001\u0012\u0004\u0012\u0002H\u000b\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00070\f¢\u0006\u0002\b\r2\u0006\u0010\u000e\u001a\u0002H\u000b2\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0001H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u000f\u001a\u001e\u0010\u0010\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0001\"\u0004\b\u0000\u0010\u0003*\b\u0012\u0004\u0012\u0002H\u00030\u0001H\u0007\u001aA\u0010\u0011\u001a\u0004\u0018\u00010\u0007\"\u0004\b\u0000\u0010\u0003*\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u00062\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0001H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u0012\u001aZ\u0010\u0011\u001a\u0004\u0018\u00010\u0007\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0003*#\b\u0001\u0012\u0004\u0012\u0002H\u000b\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00070\f¢\u0006\u0002\b\r2\u0006\u0010\u000e\u001a\u0002H\u000b2\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0001H\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\u0013\u001an\u0010\u0011\u001a\u0004\u0018\u00010\u0007\"\u0004\b\u0000\u0010\u000b\"\u0004\b\u0001\u0010\u0014\"\u0004\b\u0002\u0010\u0003*)\b\u0001\u0012\u0004\u0012\u0002H\u000b\u0012\u0004\u0012\u0002H\u0014\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00030\u0001\u0012\u0006\u0012\u0004\u0018\u00010\u00070\u0015¢\u0006\u0002\b\r2\u0006\u0010\u000e\u001a\u0002H\u000b2\u0006\u0010\u0016\u001a\u0002H\u00142\f\u0010\u0004\u001a\b\u0012\u0004\u0012\u0002H\u00030\u0001H\u0081\bø\u0001\u0000¢\u0006\u0002\u0010\u0017\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0018"}, d2 = {"createCoroutineFromSuspendFunction", "Lkotlin/coroutines/Continuation;", "", "T", "completion", "block", "Lkotlin/Function1;", "", "createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt", "createCoroutineUnintercepted", "(Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;", "R", "Lkotlin/Function2;", "Lkotlin/ExtensionFunctionType;", "receiver", "(Lkotlin/jvm/functions/Function2;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Lkotlin/coroutines/Continuation;", "intercepted", "startCoroutineUninterceptedOrReturn", "(Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "(Lkotlin/jvm/functions/Function2;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "P", "Lkotlin/Function3;", "param", "(Lkotlin/jvm/functions/Function3;Ljava/lang/Object;Ljava/lang/Object;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/coroutines/intrinsics/IntrinsicsKt") | ||||
| /* loaded from: classes.dex */ | ||||
| public class IntrinsicsKt__IntrinsicsJvmKt { | ||||
|     private static final <T> Object startCoroutineUninterceptedOrReturn(Function1<? super Continuation<? super T>, ? extends Object> function1, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function1, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         return ((Function1) TypeIntrinsics.beforeCheckcastToFunctionOfArity(function1, 1)).invoke(completion); | ||||
|     } | ||||
|  | ||||
|     private static final <R, T> Object startCoroutineUninterceptedOrReturn(Function2<? super R, ? super Continuation<? super T>, ? extends Object> function2, R r, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function2, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         return ((Function2) TypeIntrinsics.beforeCheckcastToFunctionOfArity(function2, 2)).invoke(r, completion); | ||||
|     } | ||||
|  | ||||
|     private static final <R, P, T> Object startCoroutineUninterceptedOrReturn(Function3<? super R, ? super P, ? super Continuation<? super T>, ? extends Object> function3, R r, P p, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function3, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         return ((Function3) TypeIntrinsics.beforeCheckcastToFunctionOfArity(function3, 3)).invoke(r, p, completion); | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     public static final <T> Continuation<Unit> createCoroutineUnintercepted(final Function1<? super Continuation<? super T>, ? extends Object> function1, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function1, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         final Continuation<?> probeCoroutineCreated = DebugProbesKt.probeCoroutineCreated(completion); | ||||
|         if (function1 instanceof BaseContinuationImpl) { | ||||
|             return ((BaseContinuationImpl) function1).create(probeCoroutineCreated); | ||||
|         } | ||||
|         final CoroutineContext coroutineContext = probeCoroutineCreated.get$context(); | ||||
|         if (coroutineContext == EmptyCoroutineContext.INSTANCE) { | ||||
|             return new RestrictedContinuationImpl(probeCoroutineCreated, function1) { // from class: kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$1 | ||||
|                 final /* synthetic */ Function1 $this_createCoroutineUnintercepted$inlined; | ||||
|                 private int label; | ||||
|  | ||||
|                 /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|                 { | ||||
|                     super(probeCoroutineCreated); | ||||
|                     this.$this_createCoroutineUnintercepted$inlined = function1; | ||||
|                     Intrinsics.checkNotNull(probeCoroutineCreated, "null cannot be cast to non-null type kotlin.coroutines.Continuation<kotlin.Any?>"); | ||||
|                 } | ||||
|  | ||||
|                 @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|                 protected Object invokeSuspend(Object result) { | ||||
|                     int i = this.label; | ||||
|                     if (i != 0) { | ||||
|                         if (i == 1) { | ||||
|                             this.label = 2; | ||||
|                             ResultKt.throwOnFailure(result); | ||||
|                             return result; | ||||
|                         } | ||||
|                         throw new IllegalStateException("This coroutine had already completed".toString()); | ||||
|                     } | ||||
|                     this.label = 1; | ||||
|                     ResultKt.throwOnFailure(result); | ||||
|                     Intrinsics.checkNotNull(this.$this_createCoroutineUnintercepted$inlined, "null cannot be cast to non-null type kotlin.Function1<kotlin.coroutines.Continuation<T of kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted$lambda$0>, kotlin.Any?>"); | ||||
|                     return ((Function1) TypeIntrinsics.beforeCheckcastToFunctionOfArity(this.$this_createCoroutineUnintercepted$inlined, 1)).invoke(this); | ||||
|                 } | ||||
|             }; | ||||
|         } | ||||
|         return new ContinuationImpl(probeCoroutineCreated, coroutineContext, function1) { // from class: kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$2 | ||||
|             final /* synthetic */ Function1 $this_createCoroutineUnintercepted$inlined; | ||||
|             private int label; | ||||
|  | ||||
|             /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|             { | ||||
|                 super(probeCoroutineCreated, coroutineContext); | ||||
|                 this.$this_createCoroutineUnintercepted$inlined = function1; | ||||
|                 Intrinsics.checkNotNull(probeCoroutineCreated, "null cannot be cast to non-null type kotlin.coroutines.Continuation<kotlin.Any?>"); | ||||
|             } | ||||
|  | ||||
|             @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|             protected Object invokeSuspend(Object result) { | ||||
|                 int i = this.label; | ||||
|                 if (i != 0) { | ||||
|                     if (i == 1) { | ||||
|                         this.label = 2; | ||||
|                         ResultKt.throwOnFailure(result); | ||||
|                         return result; | ||||
|                     } | ||||
|                     throw new IllegalStateException("This coroutine had already completed".toString()); | ||||
|                 } | ||||
|                 this.label = 1; | ||||
|                 ResultKt.throwOnFailure(result); | ||||
|                 Intrinsics.checkNotNull(this.$this_createCoroutineUnintercepted$inlined, "null cannot be cast to non-null type kotlin.Function1<kotlin.coroutines.Continuation<T of kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted$lambda$0>, kotlin.Any?>"); | ||||
|                 return ((Function1) TypeIntrinsics.beforeCheckcastToFunctionOfArity(this.$this_createCoroutineUnintercepted$inlined, 1)).invoke(this); | ||||
|             } | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     public static final <R, T> Continuation<Unit> createCoroutineUnintercepted(final Function2<? super R, ? super Continuation<? super T>, ? extends Object> function2, final R r, Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(function2, "<this>"); | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         final Continuation<?> probeCoroutineCreated = DebugProbesKt.probeCoroutineCreated(completion); | ||||
|         if (function2 instanceof BaseContinuationImpl) { | ||||
|             return ((BaseContinuationImpl) function2).create(r, probeCoroutineCreated); | ||||
|         } | ||||
|         final CoroutineContext coroutineContext = probeCoroutineCreated.get$context(); | ||||
|         if (coroutineContext == EmptyCoroutineContext.INSTANCE) { | ||||
|             return new RestrictedContinuationImpl(probeCoroutineCreated, function2, r) { // from class: kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$3 | ||||
|                 final /* synthetic */ Object $receiver$inlined; | ||||
|                 final /* synthetic */ Function2 $this_createCoroutineUnintercepted$inlined; | ||||
|                 private int label; | ||||
|  | ||||
|                 /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|                 { | ||||
|                     super(probeCoroutineCreated); | ||||
|                     this.$this_createCoroutineUnintercepted$inlined = function2; | ||||
|                     this.$receiver$inlined = r; | ||||
|                     Intrinsics.checkNotNull(probeCoroutineCreated, "null cannot be cast to non-null type kotlin.coroutines.Continuation<kotlin.Any?>"); | ||||
|                 } | ||||
|  | ||||
|                 @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|                 protected Object invokeSuspend(Object result) { | ||||
|                     int i = this.label; | ||||
|                     if (i != 0) { | ||||
|                         if (i == 1) { | ||||
|                             this.label = 2; | ||||
|                             ResultKt.throwOnFailure(result); | ||||
|                             return result; | ||||
|                         } | ||||
|                         throw new IllegalStateException("This coroutine had already completed".toString()); | ||||
|                     } | ||||
|                     this.label = 1; | ||||
|                     ResultKt.throwOnFailure(result); | ||||
|                     Intrinsics.checkNotNull(this.$this_createCoroutineUnintercepted$inlined, "null cannot be cast to non-null type kotlin.Function2<R of kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted$lambda$1, kotlin.coroutines.Continuation<T of kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted$lambda$1>, kotlin.Any?>"); | ||||
|                     return ((Function2) TypeIntrinsics.beforeCheckcastToFunctionOfArity(this.$this_createCoroutineUnintercepted$inlined, 2)).invoke(this.$receiver$inlined, this); | ||||
|                 } | ||||
|             }; | ||||
|         } | ||||
|         return new ContinuationImpl(probeCoroutineCreated, coroutineContext, function2, r) { // from class: kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineUnintercepted$$inlined$createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt$4 | ||||
|             final /* synthetic */ Object $receiver$inlined; | ||||
|             final /* synthetic */ Function2 $this_createCoroutineUnintercepted$inlined; | ||||
|             private int label; | ||||
|  | ||||
|             /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|             { | ||||
|                 super(probeCoroutineCreated, coroutineContext); | ||||
|                 this.$this_createCoroutineUnintercepted$inlined = function2; | ||||
|                 this.$receiver$inlined = r; | ||||
|                 Intrinsics.checkNotNull(probeCoroutineCreated, "null cannot be cast to non-null type kotlin.coroutines.Continuation<kotlin.Any?>"); | ||||
|             } | ||||
|  | ||||
|             @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|             protected Object invokeSuspend(Object result) { | ||||
|                 int i = this.label; | ||||
|                 if (i != 0) { | ||||
|                     if (i == 1) { | ||||
|                         this.label = 2; | ||||
|                         ResultKt.throwOnFailure(result); | ||||
|                         return result; | ||||
|                     } | ||||
|                     throw new IllegalStateException("This coroutine had already completed".toString()); | ||||
|                 } | ||||
|                 this.label = 1; | ||||
|                 ResultKt.throwOnFailure(result); | ||||
|                 Intrinsics.checkNotNull(this.$this_createCoroutineUnintercepted$inlined, "null cannot be cast to non-null type kotlin.Function2<R of kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted$lambda$1, kotlin.coroutines.Continuation<T of kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt.createCoroutineUnintercepted$lambda$1>, kotlin.Any?>"); | ||||
|                 return ((Function2) TypeIntrinsics.beforeCheckcastToFunctionOfArity(this.$this_createCoroutineUnintercepted$inlined, 2)).invoke(this.$receiver$inlined, this); | ||||
|             } | ||||
|         }; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     public static final <T> Continuation<T> intercepted(Continuation<? super T> continuation) { | ||||
|         Continuation<T> continuation2; | ||||
|         Intrinsics.checkNotNullParameter(continuation, "<this>"); | ||||
|         ContinuationImpl continuationImpl = continuation instanceof ContinuationImpl ? (ContinuationImpl) continuation : null; | ||||
|         return (continuationImpl == null || (continuation2 = (Continuation<T>) continuationImpl.intercepted()) == null) ? continuation : continuation2; | ||||
|     } | ||||
|  | ||||
|     private static final <T> Continuation<Unit> createCoroutineFromSuspendFunction$IntrinsicsKt__IntrinsicsJvmKt(final Continuation<? super T> continuation, final Function1<? super Continuation<? super T>, ? extends Object> function1) { | ||||
|         final CoroutineContext coroutineContext = continuation.get$context(); | ||||
|         if (coroutineContext == EmptyCoroutineContext.INSTANCE) { | ||||
|             return new RestrictedContinuationImpl(continuation, function1) { // from class: kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineFromSuspendFunction$1 | ||||
|                 final /* synthetic */ Function1<Continuation<? super T>, Object> $block; | ||||
|                 private int label; | ||||
|  | ||||
|                 /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|                 /* JADX WARN: Multi-variable type inference failed */ | ||||
|                 { | ||||
|                     super(continuation); | ||||
|                     this.$block = function1; | ||||
|                     Intrinsics.checkNotNull(continuation, "null cannot be cast to non-null type kotlin.coroutines.Continuation<kotlin.Any?>"); | ||||
|                 } | ||||
|  | ||||
|                 @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|                 protected Object invokeSuspend(Object result) { | ||||
|                     int i = this.label; | ||||
|                     if (i == 0) { | ||||
|                         this.label = 1; | ||||
|                         ResultKt.throwOnFailure(result); | ||||
|                         return this.$block.invoke(this); | ||||
|                     } | ||||
|                     if (i == 1) { | ||||
|                         this.label = 2; | ||||
|                         ResultKt.throwOnFailure(result); | ||||
|                         return result; | ||||
|                     } | ||||
|                     throw new IllegalStateException("This coroutine had already completed".toString()); | ||||
|                 } | ||||
|             }; | ||||
|         } | ||||
|         return new ContinuationImpl(continuation, coroutineContext, function1) { // from class: kotlin.coroutines.intrinsics.IntrinsicsKt__IntrinsicsJvmKt$createCoroutineFromSuspendFunction$2 | ||||
|             final /* synthetic */ Function1<Continuation<? super T>, Object> $block; | ||||
|             private int label; | ||||
|  | ||||
|             /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */ | ||||
|             /* JADX WARN: Multi-variable type inference failed */ | ||||
|             { | ||||
|                 super(continuation, coroutineContext); | ||||
|                 this.$block = function1; | ||||
|                 Intrinsics.checkNotNull(continuation, "null cannot be cast to non-null type kotlin.coroutines.Continuation<kotlin.Any?>"); | ||||
|             } | ||||
|  | ||||
|             @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|             protected Object invokeSuspend(Object result) { | ||||
|                 int i = this.label; | ||||
|                 if (i == 0) { | ||||
|                     this.label = 1; | ||||
|                     ResultKt.throwOnFailure(result); | ||||
|                     return this.$block.invoke(this); | ||||
|                 } | ||||
|                 if (i == 1) { | ||||
|                     this.label = 2; | ||||
|                     ResultKt.throwOnFailure(result); | ||||
|                     return result; | ||||
|                 } | ||||
|                 throw new IllegalStateException("This coroutine had already completed".toString()); | ||||
|             } | ||||
|         }; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,23 @@ | ||||
| package kotlin.coroutines.intrinsics; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.NotImplementedError; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.jvm.functions.Function1; | ||||
|  | ||||
| /* JADX INFO: Access modifiers changed from: package-private */ | ||||
| /* compiled from: Intrinsics.kt */ | ||||
| @Metadata(d1 = {"\u0000\u0016\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001aB\u0010\u0006\u001a\u0002H\u0007\"\u0004\b\u0000\u0010\u00072\u001c\b\u0004\u0010\b\u001a\u0016\u0012\n\u0012\b\u0012\u0004\u0012\u0002H\u00070\n\u0012\u0006\u0012\u0004\u0018\u00010\u00010\tH\u0087Hø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001¢\u0006\u0002\u0010\u000b\"\u001a\u0010\u0000\u001a\u00020\u00018FX\u0087\u0004¢\u0006\f\u0012\u0004\b\u0002\u0010\u0003\u001a\u0004\b\u0004\u0010\u0005\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\f"}, d2 = {"COROUTINE_SUSPENDED", "", "getCOROUTINE_SUSPENDED$annotations", "()V", "getCOROUTINE_SUSPENDED", "()Ljava/lang/Object;", "suspendCoroutineUninterceptedOrReturn", "T", "block", "Lkotlin/Function1;", "Lkotlin/coroutines/Continuation;", "(Lkotlin/jvm/functions/Function1;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/coroutines/intrinsics/IntrinsicsKt") | ||||
| /* loaded from: classes.dex */ | ||||
| public class IntrinsicsKt__IntrinsicsKt extends IntrinsicsKt__IntrinsicsJvmKt { | ||||
|     public static /* synthetic */ void getCOROUTINE_SUSPENDED$annotations() { | ||||
|     } | ||||
|  | ||||
|     private static final <T> Object suspendCoroutineUninterceptedOrReturn(Function1<? super Continuation<? super T>, ? extends Object> function1, Continuation<? super T> continuation) { | ||||
|         throw new NotImplementedError("Implementation of suspendCoroutineUninterceptedOrReturn is intrinsic"); | ||||
|     } | ||||
|  | ||||
|     public static final Object getCOROUTINE_SUSPENDED() { | ||||
|         return CoroutineSingletons.COROUTINE_SUSPENDED; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,94 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import java.io.Serializable; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.Result; | ||||
| import kotlin.ResultKt; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.intrinsics.IntrinsicsKt; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\b!\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00012\u00020\u00032\u00020\u0004B\u0017\u0012\u0010\u0010\u0005\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0018\u00010\u0001¢\u0006\u0002\u0010\u0006J$\u0010\f\u001a\b\u0012\u0004\u0012\u00020\r0\u00012\b\u0010\u000e\u001a\u0004\u0018\u00010\u00022\n\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u0001H\u0016J\u001a\u0010\f\u001a\b\u0012\u0004\u0012\u00020\r0\u00012\n\u0010\u0005\u001a\u0006\u0012\u0002\b\u00030\u0001H\u0016J\n\u0010\u000f\u001a\u0004\u0018\u00010\u0010H\u0016J\"\u0010\u0011\u001a\u0004\u0018\u00010\u00022\u000e\u0010\u0012\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0013H$ø\u0001\u0000¢\u0006\u0002\u0010\u0014J\b\u0010\u0015\u001a\u00020\rH\u0014J\u001e\u0010\u0016\u001a\u00020\r2\u000e\u0010\u0012\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0013ø\u0001\u0000¢\u0006\u0002\u0010\u0017J\b\u0010\u0018\u001a\u00020\u0019H\u0016R\u0016\u0010\u0007\u001a\u0004\u0018\u00010\u00038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u001b\u0010\u0005\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0002\u0018\u00010\u0001¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u001a"}, d2 = {"Lkotlin/coroutines/jvm/internal/BaseContinuationImpl;", "Lkotlin/coroutines/Continuation;", "", "Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;", "Ljava/io/Serializable;", "completion", "(Lkotlin/coroutines/Continuation;)V", "callerFrame", "getCallerFrame", "()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;", "getCompletion", "()Lkotlin/coroutines/Continuation;", "create", "", "value", "getStackTraceElement", "Ljava/lang/StackTraceElement;", "invokeSuspend", "result", "Lkotlin/Result;", "(Ljava/lang/Object;)Ljava/lang/Object;", "releaseIntercepted", "resumeWith", "(Ljava/lang/Object;)V", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class BaseContinuationImpl implements Continuation<Object>, CoroutineStackFrame, Serializable { | ||||
|     private final Continuation<Object> completion; | ||||
|  | ||||
|     public final Continuation<Object> getCompletion() { | ||||
|         return this.completion; | ||||
|     } | ||||
|  | ||||
|     protected abstract Object invokeSuspend(Object result); | ||||
|  | ||||
|     protected void releaseIntercepted() { | ||||
|     } | ||||
|  | ||||
|     public BaseContinuationImpl(Continuation<Object> continuation) { | ||||
|         this.completion = continuation; | ||||
|     } | ||||
|  | ||||
|     /* JADX WARN: Multi-variable type inference failed */ | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public final void resumeWith(Object result) { | ||||
|         Object invokeSuspend; | ||||
|         Continuation continuation = this; | ||||
|         while (true) { | ||||
|             DebugProbesKt.probeCoroutineResumed(continuation); | ||||
|             BaseContinuationImpl baseContinuationImpl = (BaseContinuationImpl) continuation; | ||||
|             Continuation continuation2 = baseContinuationImpl.completion; | ||||
|             Intrinsics.checkNotNull(continuation2); | ||||
|             try { | ||||
|                 invokeSuspend = baseContinuationImpl.invokeSuspend(result); | ||||
|             } catch (Throwable th) { | ||||
|                 Result.Companion companion = Result.INSTANCE; | ||||
|                 result = Result.m288constructorimpl(ResultKt.createFailure(th)); | ||||
|             } | ||||
|             if (invokeSuspend == IntrinsicsKt.getCOROUTINE_SUSPENDED()) { | ||||
|                 return; | ||||
|             } | ||||
|             Result.Companion companion2 = Result.INSTANCE; | ||||
|             result = Result.m288constructorimpl(invokeSuspend); | ||||
|             baseContinuationImpl.releaseIntercepted(); | ||||
|             if (!(continuation2 instanceof BaseContinuationImpl)) { | ||||
|                 continuation2.resumeWith(result); | ||||
|                 return; | ||||
|             } | ||||
|             continuation = continuation2; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public Continuation<Unit> create(Continuation<?> completion) { | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         throw new UnsupportedOperationException("create(Continuation) has not been overridden"); | ||||
|     } | ||||
|  | ||||
|     public Continuation<Unit> create(Object value, Continuation<?> completion) { | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         throw new UnsupportedOperationException("create(Any?;Continuation) has not been overridden"); | ||||
|     } | ||||
|  | ||||
|     public String toString() { | ||||
|         StringBuilder sb = new StringBuilder("Continuation at "); | ||||
|         Serializable stackTraceElement = getStackTraceElement(); | ||||
|         if (stackTraceElement == null) { | ||||
|             stackTraceElement = getClass().getName(); | ||||
|         } | ||||
|         sb.append(stackTraceElement); | ||||
|         return sb.toString(); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.CoroutineStackFrame | ||||
|     public CoroutineStackFrame getCallerFrame() { | ||||
|         Continuation<Object> continuation = this.completion; | ||||
|         if (continuation instanceof CoroutineStackFrame) { | ||||
|             return (CoroutineStackFrame) continuation; | ||||
|         } | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.CoroutineStackFrame | ||||
|     public StackTraceElement getStackTraceElement() { | ||||
|         return DebugMetadataKt.getStackTraceElement(this); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,40 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| /* compiled from: boxing.kt */ | ||||
| @Metadata(d1 = {"\u0000T\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0005\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0006\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0007\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\n\n\u0000\u001a\u0010\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0001\u001a\u0010\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0002\u001a\u00020\u0006H\u0001\u001a\u0010\u0010\u0007\u001a\u00020\b2\u0006\u0010\u0002\u001a\u00020\tH\u0001\u001a\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\u0002\u001a\u00020\fH\u0001\u001a\u0010\u0010\r\u001a\u00020\u000e2\u0006\u0010\u0002\u001a\u00020\u000fH\u0001\u001a\u0010\u0010\u0010\u001a\u00020\u00112\u0006\u0010\u0002\u001a\u00020\u0012H\u0001\u001a\u0010\u0010\u0013\u001a\u00020\u00142\u0006\u0010\u0002\u001a\u00020\u0015H\u0001\u001a\u0010\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u0002\u001a\u00020\u0018H\u0001¨\u0006\u0019"}, d2 = {"boxBoolean", "Ljava/lang/Boolean;", "primitive", "", "boxByte", "Ljava/lang/Byte;", "", "boxChar", "Ljava/lang/Character;", "", "boxDouble", "Ljava/lang/Double;", "", "boxFloat", "Ljava/lang/Float;", "", "boxInt", "Ljava/lang/Integer;", "", "boxLong", "Ljava/lang/Long;", "", "boxShort", "Ljava/lang/Short;", "", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class Boxing { | ||||
|     public static final Boolean boxBoolean(boolean z) { | ||||
|         return Boolean.valueOf(z); | ||||
|     } | ||||
|  | ||||
|     public static final Byte boxByte(byte b) { | ||||
|         return Byte.valueOf(b); | ||||
|     } | ||||
|  | ||||
|     public static final Short boxShort(short s) { | ||||
|         return new Short(s); | ||||
|     } | ||||
|  | ||||
|     public static final Integer boxInt(int i) { | ||||
|         return new Integer(i); | ||||
|     } | ||||
|  | ||||
|     public static final Long boxLong(long j) { | ||||
|         return new Long(j); | ||||
|     } | ||||
|  | ||||
|     public static final Float boxFloat(float f) { | ||||
|         return new Float(f); | ||||
|     } | ||||
|  | ||||
|     public static final Double boxDouble(double d) { | ||||
|         return new Double(d); | ||||
|     } | ||||
|  | ||||
|     public static final Character boxChar(char c) { | ||||
|         return new Character(c); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,29 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\bÀ\u0002\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0003J \u0010\b\u001a\u00020\t2\u000e\u0010\n\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u000bH\u0016ø\u0001\u0000¢\u0006\u0002\u0010\fJ\b\u0010\r\u001a\u00020\u000eH\u0016R\u0014\u0010\u0004\u001a\u00020\u00058VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u000f"}, d2 = {"Lkotlin/coroutines/jvm/internal/CompletedContinuation;", "Lkotlin/coroutines/Continuation;", "", "()V", "context", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "resumeWith", "", "result", "Lkotlin/Result;", "(Ljava/lang/Object;)V", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class CompletedContinuation implements Continuation<Object> { | ||||
|     public static final CompletedContinuation INSTANCE = new CompletedContinuation(); | ||||
|  | ||||
|     public String toString() { | ||||
|         return "This continuation is already complete"; | ||||
|     } | ||||
|  | ||||
|     private CompletedContinuation() { | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public CoroutineContext getContext() { | ||||
|         throw new IllegalStateException("This continuation is already complete".toString()); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public void resumeWith(Object result) { | ||||
|         throw new IllegalStateException("This continuation is already complete".toString()); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,54 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.ContinuationInterceptor; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\u0002\n\u0000\b!\u0018\u00002\u00020\u0001B\u0019\b\u0016\u0012\u0010\u0010\u0002\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005B!\u0012\u0010\u0010\u0002\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0004\u0018\u00010\u0003\u0012\b\u0010\u0006\u001a\u0004\u0018\u00010\u0007¢\u0006\u0002\u0010\bJ\u000e\u0010\f\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00040\u0003J\b\u0010\r\u001a\u00020\u000eH\u0014R\u0010\u0010\u0006\u001a\u0004\u0018\u00010\u0007X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\t\u001a\u00020\u00078VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0018\u0010\f\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0004\u0018\u00010\u0003X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u000f"}, d2 = {"Lkotlin/coroutines/jvm/internal/ContinuationImpl;", "Lkotlin/coroutines/jvm/internal/BaseContinuationImpl;", "completion", "Lkotlin/coroutines/Continuation;", "", "(Lkotlin/coroutines/Continuation;)V", "_context", "Lkotlin/coroutines/CoroutineContext;", "(Lkotlin/coroutines/Continuation;Lkotlin/coroutines/CoroutineContext;)V", "context", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "intercepted", "releaseIntercepted", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class ContinuationImpl extends BaseContinuationImpl { | ||||
|     private final CoroutineContext _context; | ||||
|     private transient Continuation<Object> intercepted; | ||||
|  | ||||
|     public ContinuationImpl(Continuation<Object> continuation, CoroutineContext coroutineContext) { | ||||
|         super(continuation); | ||||
|         this._context = coroutineContext; | ||||
|     } | ||||
|  | ||||
|     public ContinuationImpl(Continuation<Object> continuation) { | ||||
|         this(continuation, continuation != null ? continuation.getContext() : null); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public CoroutineContext getContext() { | ||||
|         CoroutineContext coroutineContext = this._context; | ||||
|         Intrinsics.checkNotNull(coroutineContext); | ||||
|         return coroutineContext; | ||||
|     } | ||||
|  | ||||
|     public final Continuation<Object> intercepted() { | ||||
|         ContinuationImpl continuationImpl = this.intercepted; | ||||
|         if (continuationImpl == null) { | ||||
|             ContinuationInterceptor continuationInterceptor = (ContinuationInterceptor) getContext().get(ContinuationInterceptor.INSTANCE); | ||||
|             if (continuationInterceptor == null || (continuationImpl = continuationInterceptor.interceptContinuation(this)) == null) { | ||||
|                 continuationImpl = this; | ||||
|             } | ||||
|             this.intercepted = continuationImpl; | ||||
|         } | ||||
|         return continuationImpl; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|     protected void releaseIntercepted() { | ||||
|         Continuation<?> continuation = this.intercepted; | ||||
|         if (continuation != null && continuation != this) { | ||||
|             CoroutineContext.Element element = getContext().get(ContinuationInterceptor.INSTANCE); | ||||
|             Intrinsics.checkNotNull(element); | ||||
|             ((ContinuationInterceptor) element).releaseInterceptedContinuation(continuation); | ||||
|         } | ||||
|         this.intercepted = CompletedContinuation.INSTANCE; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,12 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| /* compiled from: CoroutineStackFrame.kt */ | ||||
| @Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0000\bg\u0018\u00002\u00020\u0001J\n\u0010\u0005\u001a\u0004\u0018\u00010\u0006H&R\u0014\u0010\u0002\u001a\u0004\u0018\u00010\u0000X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004¨\u0006\u0007"}, d2 = {"Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;", "", "callerFrame", "getCallerFrame", "()Lkotlin/coroutines/jvm/internal/CoroutineStackFrame;", "getStackTraceElement", "Ljava/lang/StackTraceElement;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public interface CoroutineStackFrame { | ||||
|     CoroutineStackFrame getCallerFrame(); | ||||
|  | ||||
|     StackTraceElement getStackTraceElement(); | ||||
| } | ||||
| @@ -0,0 +1,32 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| 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.annotation.AnnotationTarget; | ||||
|  | ||||
| /* compiled from: DebugMetadata.kt */ | ||||
| @Target({ElementType.TYPE}) | ||||
| @Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u001b\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0015\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0011\b\u0081\u0002\u0018\u00002\u00020\u0001B\\\u0012\b\b\u0002\u0010\u0002\u001a\u00020\u0003\u0012\b\b\u0002\u0010\u0004\u001a\u00020\u0005\u0012\b\b\u0002\u0010\u0006\u001a\u00020\u0007\u0012\u000e\b\u0002\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00050\t\u0012\u000e\b\u0002\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00050\t\u0012\b\b\u0002\u0010\u000b\u001a\u00020\u0007\u0012\b\b\u0002\u0010\f\u001a\u00020\u0005\u0012\b\b\u0002\u0010\r\u001a\u00020\u0005R\u0011\u0010\r\u001a\u00020\u00058\u0007¢\u0006\u0006\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u000b\u001a\u00020\u00078\u0007¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011R\u0011\u0010\u0006\u001a\u00020\u00078\u0007¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0011R\u0017\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00050\t8\u0007¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014R\u0011\u0010\f\u001a\u00020\u00058\u0007¢\u0006\u0006\u001a\u0004\b\u0015\u0010\u000fR\u0011\u0010\u0004\u001a\u00020\u00058\u0007¢\u0006\u0006\u001a\u0004\b\u0016\u0010\u000fR\u0017\u0010\n\u001a\b\u0012\u0004\u0012\u00020\u00050\t8\u0007¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0014R\u0011\u0010\u0002\u001a\u00020\u00038\u0007¢\u0006\u0006\u001a\u0004\b\u0018\u0010\u0019¨\u0006\u001a"}, d2 = {"Lkotlin/coroutines/jvm/internal/DebugMetadata;", "", "version", "", "sourceFile", "", "lineNumbers", "", "localNames", "", "spilled", "indexToLabel", "methodName", "className", "c", "()Ljava/lang/String;", "i", "()[I", "l", "n", "()[Ljava/lang/String;", "m", "f", "s", "v", "()I", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| @kotlin.annotation.Target(allowedTargets = {AnnotationTarget.CLASS}) | ||||
| @Retention(RetentionPolicy.RUNTIME) | ||||
| /* loaded from: classes.dex */ | ||||
| public @interface DebugMetadata { | ||||
|     String c() default ""; | ||||
|  | ||||
|     String f() default ""; | ||||
|  | ||||
|     int[] i() default {}; | ||||
|  | ||||
|     int[] l() default {}; | ||||
|  | ||||
|     String m() default ""; | ||||
|  | ||||
|     String[] n() default {}; | ||||
|  | ||||
|     String[] s() default {}; | ||||
|  | ||||
|     int v() default 1; | ||||
| } | ||||
| @@ -0,0 +1,75 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import java.lang.reflect.Field; | ||||
| import java.util.ArrayList; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: DebugMetadata.kt */ | ||||
| @Metadata(d1 = {"\u00000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\u0018\u0010\u0002\u001a\u00020\u00032\u0006\u0010\u0004\u001a\u00020\u00012\u0006\u0010\u0005\u001a\u00020\u0001H\u0002\u001a\u000e\u0010\u0006\u001a\u0004\u0018\u00010\u0007*\u00020\bH\u0002\u001a\f\u0010\t\u001a\u00020\u0001*\u00020\bH\u0002\u001a\u0019\u0010\n\u001a\n\u0012\u0004\u0012\u00020\f\u0018\u00010\u000b*\u00020\bH\u0001¢\u0006\u0002\u0010\r\u001a\u0013\u0010\u000e\u001a\u0004\u0018\u00010\u000f*\u00020\bH\u0001¢\u0006\u0002\b\u0010\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082T¢\u0006\u0002\n\u0000¨\u0006\u0011"}, d2 = {"COROUTINES_DEBUG_METADATA_VERSION", "", "checkDebugMetadataVersion", "", "expected", "actual", "getDebugMetadataAnnotation", "Lkotlin/coroutines/jvm/internal/DebugMetadata;", "Lkotlin/coroutines/jvm/internal/BaseContinuationImpl;", "getLabel", "getSpilledVariableFieldMapping", "", "", "(Lkotlin/coroutines/jvm/internal/BaseContinuationImpl;)[Ljava/lang/String;", "getStackTraceElementImpl", "Ljava/lang/StackTraceElement;", "getStackTraceElement", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class DebugMetadataKt { | ||||
|     private static final int COROUTINES_DEBUG_METADATA_VERSION = 1; | ||||
|  | ||||
|     public static final StackTraceElement getStackTraceElement(BaseContinuationImpl baseContinuationImpl) { | ||||
|         String str; | ||||
|         Intrinsics.checkNotNullParameter(baseContinuationImpl, "<this>"); | ||||
|         DebugMetadata debugMetadataAnnotation = getDebugMetadataAnnotation(baseContinuationImpl); | ||||
|         if (debugMetadataAnnotation == null) { | ||||
|             return null; | ||||
|         } | ||||
|         checkDebugMetadataVersion(1, debugMetadataAnnotation.v()); | ||||
|         int label = getLabel(baseContinuationImpl); | ||||
|         int i = label < 0 ? -1 : debugMetadataAnnotation.l()[label]; | ||||
|         String moduleName = ModuleNameRetriever.INSTANCE.getModuleName(baseContinuationImpl); | ||||
|         if (moduleName == null) { | ||||
|             str = debugMetadataAnnotation.c(); | ||||
|         } else { | ||||
|             str = moduleName + '/' + debugMetadataAnnotation.c(); | ||||
|         } | ||||
|         return new StackTraceElement(str, debugMetadataAnnotation.m(), debugMetadataAnnotation.f(), i); | ||||
|     } | ||||
|  | ||||
|     private static final DebugMetadata getDebugMetadataAnnotation(BaseContinuationImpl baseContinuationImpl) { | ||||
|         return (DebugMetadata) baseContinuationImpl.getClass().getAnnotation(DebugMetadata.class); | ||||
|     } | ||||
|  | ||||
|     private static final int getLabel(BaseContinuationImpl baseContinuationImpl) { | ||||
|         try { | ||||
|             Field declaredField = baseContinuationImpl.getClass().getDeclaredField("label"); | ||||
|             declaredField.setAccessible(true); | ||||
|             Object obj = declaredField.get(baseContinuationImpl); | ||||
|             Integer num = obj instanceof Integer ? (Integer) obj : null; | ||||
|             return (num != null ? num.intValue() : 0) - 1; | ||||
|         } catch (Exception unused) { | ||||
|             return -1; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     private static final void checkDebugMetadataVersion(int i, int i2) { | ||||
|         if (i2 <= i) { | ||||
|             return; | ||||
|         } | ||||
|         throw new IllegalStateException(("Debug metadata version mismatch. Expected: " + i + ", got " + i2 + ". Please update the Kotlin standard library.").toString()); | ||||
|     } | ||||
|  | ||||
|     public static final String[] getSpilledVariableFieldMapping(BaseContinuationImpl baseContinuationImpl) { | ||||
|         Intrinsics.checkNotNullParameter(baseContinuationImpl, "<this>"); | ||||
|         DebugMetadata debugMetadataAnnotation = getDebugMetadataAnnotation(baseContinuationImpl); | ||||
|         if (debugMetadataAnnotation == null) { | ||||
|             return null; | ||||
|         } | ||||
|         checkDebugMetadataVersion(1, debugMetadataAnnotation.v()); | ||||
|         ArrayList arrayList = new ArrayList(); | ||||
|         int label = getLabel(baseContinuationImpl); | ||||
|         int[] i = debugMetadataAnnotation.i(); | ||||
|         int length = i.length; | ||||
|         for (int i2 = 0; i2 < length; i2++) { | ||||
|             if (i[i2] == label) { | ||||
|                 arrayList.add(debugMetadataAnnotation.s()[i2]); | ||||
|                 arrayList.add(debugMetadataAnnotation.n()[i2]); | ||||
|             } | ||||
|         } | ||||
|         return (String[]) arrayList.toArray(new String[0]); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,32 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import androidx.constraintlayout.core.motion.utils.TypedValues; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
| import kotlinx.coroutines.debug.internal.DebugProbesImpl; | ||||
| import org.jetbrains.annotations.NotNull; | ||||
|  | ||||
| /* JADX WARN: Classes with same name are omitted: | ||||
|   classes.dex | ||||
|  */ | ||||
| /* compiled from: DebugProbes.kt */ | ||||
| @Metadata(mv = {1, 8, 0}, k = 2, xi = 48, d1 = {"<EFBFBD><EFBFBD>\u0012\n<EFBFBD><EFBFBD>\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0002\n\u0002\b\u0003\u001a\"\u0010<EFBFBD><EFBFBD>\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0004\b<EFBFBD><EFBFBD>\u0010\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001H<EFBFBD><EFBFBD>\u001a\u0014\u0010\u0004\u001a\u00020\u00052\n\u0010\u0006\u001a\u0006\u0012\u0002\b\u00030\u0001H<EFBFBD><EFBFBD>\u001a\u0014\u0010\u0007\u001a\u00020\u00052\n\u0010\u0006\u001a\u0006\u0012\u0002\b\u00030\u0001H<EFBFBD><EFBFBD>¨\u0006\b"}, d2 = {"probeCoroutineCreated", "Lkotlin/coroutines/Continuation;", "T", "completion", "probeCoroutineResumed", "", TypedValues.AttributesType.S_FRAME, "probeCoroutineSuspended", "kotlinx-coroutines-integration-testing_debugAgentTest"}) | ||||
| /* loaded from: E5.apk:DebugProbesKt.bin */ | ||||
| public final class DebugProbesKt { | ||||
|     @NotNull | ||||
|     public static final <T> Continuation<T> probeCoroutineCreated(@NotNull Continuation<? super T> completion) { | ||||
|         Intrinsics.checkNotNullParameter(completion, "completion"); | ||||
|         return DebugProbesImpl.INSTANCE.probeCoroutineCreated$kotlinx_coroutines_core(completion); | ||||
|     } | ||||
|  | ||||
|     public static final void probeCoroutineResumed(@NotNull Continuation<?> frame) { | ||||
|         Intrinsics.checkNotNullParameter(frame, "frame"); | ||||
|         DebugProbesImpl.INSTANCE.probeCoroutineResumed$kotlinx_coroutines_core(frame); | ||||
|     } | ||||
|  | ||||
|     public static final void probeCoroutineSuspended(@NotNull Continuation<?> frame) { | ||||
|         Intrinsics.checkNotNullParameter(frame, "frame"); | ||||
|         DebugProbesImpl.INSTANCE.probeCoroutineSuspended$kotlinx_coroutines_core(frame); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,70 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import java.lang.reflect.Method; | ||||
| import kotlin.Metadata; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: DebugMetadata.kt */ | ||||
| @Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\bÂ\u0002\u0018\u00002\u00020\u0001:\u0001\u000bB\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0006\u001a\u00020\u00042\u0006\u0010\u0007\u001a\u00020\bH\u0002J\u0010\u0010\t\u001a\u0004\u0018\u00010\n2\u0006\u0010\u0007\u001a\u00020\bR\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\f"}, d2 = {"Lkotlin/coroutines/jvm/internal/ModuleNameRetriever;", "", "()V", "cache", "Lkotlin/coroutines/jvm/internal/ModuleNameRetriever$Cache;", "notOnJava9", "buildCache", "continuation", "Lkotlin/coroutines/jvm/internal/BaseContinuationImpl;", "getModuleName", "", "Cache", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| final class ModuleNameRetriever { | ||||
|     private static Cache cache; | ||||
|     public static final ModuleNameRetriever INSTANCE = new ModuleNameRetriever(); | ||||
|     private static final Cache notOnJava9 = new Cache(null, null, null); | ||||
|  | ||||
|     /* compiled from: DebugMetadata.kt */ | ||||
|     @Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\b\u0002\u0018\u00002\u00020\u0001B#\u0012\b\u0010\u0002\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0004\u001a\u0004\u0018\u00010\u0003\u0012\b\u0010\u0005\u001a\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0006R\u0012\u0010\u0004\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0002\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0012\u0010\u0005\u001a\u0004\u0018\u00010\u00038\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u0007"}, d2 = {"Lkotlin/coroutines/jvm/internal/ModuleNameRetriever$Cache;", "", "getModuleMethod", "Ljava/lang/reflect/Method;", "getDescriptorMethod", "nameMethod", "(Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;Ljava/lang/reflect/Method;)V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
|     private static final class Cache { | ||||
|         public final Method getDescriptorMethod; | ||||
|         public final Method getModuleMethod; | ||||
|         public final Method nameMethod; | ||||
|  | ||||
|         public Cache(Method method, Method method2, Method method3) { | ||||
|             this.getModuleMethod = method; | ||||
|             this.getDescriptorMethod = method2; | ||||
|             this.nameMethod = method3; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     private ModuleNameRetriever() { | ||||
|     } | ||||
|  | ||||
|     public final String getModuleName(BaseContinuationImpl continuation) { | ||||
|         Intrinsics.checkNotNullParameter(continuation, "continuation"); | ||||
|         Cache cache2 = cache; | ||||
|         if (cache2 == null) { | ||||
|             cache2 = buildCache(continuation); | ||||
|         } | ||||
|         if (cache2 == notOnJava9) { | ||||
|             return null; | ||||
|         } | ||||
|         Method method = cache2.getModuleMethod; | ||||
|         Object invoke = method != null ? method.invoke(continuation.getClass(), new Object[0]) : null; | ||||
|         if (invoke == null) { | ||||
|             return null; | ||||
|         } | ||||
|         Method method2 = cache2.getDescriptorMethod; | ||||
|         Object invoke2 = method2 != null ? method2.invoke(invoke, new Object[0]) : null; | ||||
|         if (invoke2 == null) { | ||||
|             return null; | ||||
|         } | ||||
|         Method method3 = cache2.nameMethod; | ||||
|         Object invoke3 = method3 != null ? method3.invoke(invoke2, new Object[0]) : null; | ||||
|         if (invoke3 instanceof String) { | ||||
|             return (String) invoke3; | ||||
|         } | ||||
|         return null; | ||||
|     } | ||||
|  | ||||
|     private final Cache buildCache(BaseContinuationImpl continuation) { | ||||
|         try { | ||||
|             Cache cache2 = new Cache(Class.class.getDeclaredMethod("getModule", new Class[0]), continuation.getClass().getClassLoader().loadClass("java.lang.Module").getDeclaredMethod("getDescriptor", new Class[0]), continuation.getClass().getClassLoader().loadClass("java.lang.module.ModuleDescriptor").getDeclaredMethod("name", new Class[0])); | ||||
|             cache = cache2; | ||||
|             return cache2; | ||||
|         } catch (Exception unused) { | ||||
|             Cache cache3 = notOnJava9; | ||||
|             cache = cache3; | ||||
|             return cache3; | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,23 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.coroutines.EmptyCoroutineContext; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b!\u0018\u00002\u00020\u0001B\u0017\u0012\u0010\u0010\u0002\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0004\u0018\u00010\u0003¢\u0006\u0002\u0010\u0005R\u0014\u0010\u0006\u001a\u00020\u00078VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\b\u0010\t¨\u0006\n"}, d2 = {"Lkotlin/coroutines/jvm/internal/RestrictedContinuationImpl;", "Lkotlin/coroutines/jvm/internal/BaseContinuationImpl;", "completion", "Lkotlin/coroutines/Continuation;", "", "(Lkotlin/coroutines/Continuation;)V", "context", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class RestrictedContinuationImpl extends BaseContinuationImpl { | ||||
|     public RestrictedContinuationImpl(Continuation<Object> continuation) { | ||||
|         super(continuation); | ||||
|         if (continuation != null && continuation.getContext() != EmptyCoroutineContext.INSTANCE) { | ||||
|             throw new IllegalArgumentException("Coroutines with restricted suspension must have EmptyCoroutineContext".toString()); | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public CoroutineContext getContext() { | ||||
|         return EmptyCoroutineContext.INSTANCE; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,38 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.jvm.internal.FunctionBase; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
| import kotlin.jvm.internal.Reflection; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\b!\u0018\u00002\u00020\u00012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00022\u00020\u0004B\u000f\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007B\u001f\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0010\u0010\b\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0018\u00010\t¢\u0006\u0002\u0010\nJ\b\u0010\r\u001a\u00020\u000eH\u0016R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lkotlin/coroutines/jvm/internal/RestrictedSuspendLambda;", "Lkotlin/coroutines/jvm/internal/RestrictedContinuationImpl;", "Lkotlin/jvm/internal/FunctionBase;", "", "Lkotlin/coroutines/jvm/internal/SuspendFunction;", "arity", "", "(I)V", "completion", "Lkotlin/coroutines/Continuation;", "(ILkotlin/coroutines/Continuation;)V", "getArity", "()I", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class RestrictedSuspendLambda extends RestrictedContinuationImpl implements FunctionBase<Object>, SuspendFunction { | ||||
|     private final int arity; | ||||
|  | ||||
|     @Override // kotlin.jvm.internal.FunctionBase | ||||
|     public int getArity() { | ||||
|         return this.arity; | ||||
|     } | ||||
|  | ||||
|     public RestrictedSuspendLambda(int i, Continuation<Object> continuation) { | ||||
|         super(continuation); | ||||
|         this.arity = i; | ||||
|     } | ||||
|  | ||||
|     public RestrictedSuspendLambda(int i) { | ||||
|         this(i, null); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|     public String toString() { | ||||
|         if (getCompletion() == null) { | ||||
|             String renderLambdaToString = Reflection.renderLambdaToString(this); | ||||
|             Intrinsics.checkNotNullExpressionValue(renderLambdaToString, "renderLambdaToString(this)"); | ||||
|             return renderLambdaToString; | ||||
|         } | ||||
|         return super.toString(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,55 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.Result; | ||||
| import kotlin.ResultKt; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.CoroutineContext; | ||||
| import kotlin.coroutines.EmptyCoroutineContext; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: RunSuspend.kt */ | ||||
| @Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001B\u0005¢\u0006\u0002\u0010\u0003J\u0006\u0010\u000e\u001a\u00020\u0002J\u001e\u0010\u000f\u001a\u00020\u00022\f\u0010\b\u001a\b\u0012\u0004\u0012\u00020\u00020\tH\u0016ø\u0001\u0000¢\u0006\u0002\u0010\u0010R\u0014\u0010\u0004\u001a\u00020\u00058VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007R(\u0010\b\u001a\n\u0012\u0004\u0012\u00020\u0002\u0018\u00010\tX\u0086\u000eø\u0001\u0000ø\u0001\u0001¢\u0006\u000e\n\u0000\u001a\u0004\b\n\u0010\u000b\"\u0004\b\f\u0010\r\u0082\u0002\b\n\u0002\b\u0019\n\u0002\b!¨\u0006\u0011"}, d2 = {"Lkotlin/coroutines/jvm/internal/RunSuspend;", "Lkotlin/coroutines/Continuation;", "", "()V", "context", "Lkotlin/coroutines/CoroutineContext;", "getContext", "()Lkotlin/coroutines/CoroutineContext;", "result", "Lkotlin/Result;", "getResult-xLWZpok", "()Lkotlin/Result;", "setResult", "(Lkotlin/Result;)V", "await", "resumeWith", "(Ljava/lang/Object;)V", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| final class RunSuspend implements Continuation<Unit> { | ||||
|     private Result<Unit> result; | ||||
|  | ||||
|     /* renamed from: getResult-xLWZpok, reason: not valid java name */ | ||||
|     public final Result<Unit> m1506getResultxLWZpok() { | ||||
|         return this.result; | ||||
|     } | ||||
|  | ||||
|     public final void setResult(Result<Unit> result) { | ||||
|         this.result = result; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public CoroutineContext getContext() { | ||||
|         return EmptyCoroutineContext.INSTANCE; | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.Continuation | ||||
|     public void resumeWith(Object result) { | ||||
|         synchronized (this) { | ||||
|             this.result = Result.m287boximpl(result); | ||||
|             Intrinsics.checkNotNull(this, "null cannot be cast to non-null type java.lang.Object"); | ||||
|             notifyAll(); | ||||
|             Unit unit = Unit.INSTANCE; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     public final void await() { | ||||
|         synchronized (this) { | ||||
|             while (true) { | ||||
|                 Result<Unit> result = this.result; | ||||
|                 if (result == null) { | ||||
|                     Intrinsics.checkNotNull(this, "null cannot be cast to non-null type java.lang.Object"); | ||||
|                     wait(); | ||||
|                 } else { | ||||
|                     ResultKt.throwOnFailure(result.getValue()); | ||||
|                 } | ||||
|             } | ||||
|         } | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,20 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.Unit; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.coroutines.ContinuationKt; | ||||
| import kotlin.jvm.functions.Function1; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
|  | ||||
| /* compiled from: RunSuspend.kt */ | ||||
| @Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\u001a.\u0010\u0000\u001a\u00020\u00012\u001c\u0010\u0002\u001a\u0018\b\u0001\u0012\n\u0012\b\u0012\u0004\u0012\u00020\u00010\u0004\u0012\u0006\u0012\u0004\u0018\u00010\u00050\u0003H\u0001ø\u0001\u0000¢\u0006\u0002\u0010\u0006\u0082\u0002\u0004\n\u0002\b\u0019¨\u0006\u0007"}, d2 = {"runSuspend", "", "block", "Lkotlin/Function1;", "Lkotlin/coroutines/Continuation;", "", "(Lkotlin/jvm/functions/Function1;)V", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public final class RunSuspendKt { | ||||
|     public static final void runSuspend(Function1<? super Continuation<? super Unit>, ? extends Object> block) { | ||||
|         Intrinsics.checkNotNullParameter(block, "block"); | ||||
|         RunSuspend runSuspend = new RunSuspend(); | ||||
|         ContinuationKt.startCoroutine(block, runSuspend); | ||||
|         runSuspend.await(); | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,9 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000\n\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\ba\u0018\u00002\u00020\u0001¨\u0006\u0002"}, d2 = {"Lkotlin/coroutines/jvm/internal/SuspendFunction;", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public interface SuspendFunction { | ||||
| } | ||||
| @@ -0,0 +1,38 @@ | ||||
| package kotlin.coroutines.jvm.internal; | ||||
|  | ||||
| import kotlin.Metadata; | ||||
| import kotlin.coroutines.Continuation; | ||||
| import kotlin.jvm.internal.FunctionBase; | ||||
| import kotlin.jvm.internal.Intrinsics; | ||||
| import kotlin.jvm.internal.Reflection; | ||||
|  | ||||
| /* compiled from: ContinuationImpl.kt */ | ||||
| @Metadata(d1 = {"\u0000,\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0000\b!\u0018\u00002\u00020\u00012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u00022\u00020\u0004B\u000f\b\u0016\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007B\u001f\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0010\u0010\b\u001a\f\u0012\u0006\u0012\u0004\u0018\u00010\u0003\u0018\u00010\t¢\u0006\u0002\u0010\nJ\b\u0010\r\u001a\u00020\u000eH\u0016R\u0014\u0010\u0005\u001a\u00020\u0006X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\f¨\u0006\u000f"}, d2 = {"Lkotlin/coroutines/jvm/internal/SuspendLambda;", "Lkotlin/coroutines/jvm/internal/ContinuationImpl;", "Lkotlin/jvm/internal/FunctionBase;", "", "Lkotlin/coroutines/jvm/internal/SuspendFunction;", "arity", "", "(I)V", "completion", "Lkotlin/coroutines/Continuation;", "(ILkotlin/coroutines/Continuation;)V", "getArity", "()I", "toString", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48) | ||||
| /* loaded from: classes.dex */ | ||||
| public abstract class SuspendLambda extends ContinuationImpl implements FunctionBase<Object>, SuspendFunction { | ||||
|     private final int arity; | ||||
|  | ||||
|     @Override // kotlin.jvm.internal.FunctionBase | ||||
|     public int getArity() { | ||||
|         return this.arity; | ||||
|     } | ||||
|  | ||||
|     public SuspendLambda(int i, Continuation<Object> continuation) { | ||||
|         super(continuation); | ||||
|         this.arity = i; | ||||
|     } | ||||
|  | ||||
|     public SuspendLambda(int i) { | ||||
|         this(i, null); | ||||
|     } | ||||
|  | ||||
|     @Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl | ||||
|     public String toString() { | ||||
|         if (getCompletion() == null) { | ||||
|             String renderLambdaToString = Reflection.renderLambdaToString(this); | ||||
|             Intrinsics.checkNotNullExpressionValue(renderLambdaToString, "renderLambdaToString(this)"); | ||||
|             return renderLambdaToString; | ||||
|         } | ||||
|         return super.toString(); | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user