package kotlinx.coroutines.reactive;

/* JADX INFO: compiled from: r8-map-id-ae6aab8d9a1033945587ffdd1bc6222159522c1d66e66a2c4cecb065134dd0a6 */
/* JADX INFO: loaded from: E:\ios\vf_dex\classes3.dex */
@kotlin.Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u0011\n\u0002\u0018\u0002\n\u0002\b\u0003\u001a-\u0010\u0004\u001a\b\u0012\u0004\u0012\u00028\u00000\u0001\"\u0004\b\u0000\u0010\u0000*\b\u0012\u0004\u0012\u00028\u00000\u00012\u0006\u0010\u0003\u001a\u00020\u0002H\u0000¢\u0006\u0004\b\u0004\u0010\u0005\"\u001a\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00070\u00068\u0002X\u0082\u0004¢\u0006\u0006\n\u0004\b\u0004\u0010\b¨\u0006\n"}, d2 = {"T", "Lorg/reactivestreams/Publisher;", "Lkotlin/coroutines/CoroutineContext;", "coroutineContext", "a", "(Lorg/reactivestreams/Publisher;Lkotlin/coroutines/CoroutineContext;)Lorg/reactivestreams/Publisher;", okhttp3.HttpUrl.FRAGMENT_ENCODE_SET, "Lkotlinx/coroutines/reactive/ContextInjector;", "[Lkotlinx/coroutines/reactive/ContextInjector;", "contextInjectors", "kotlinx-coroutines-reactive"}, k = 2, mv = {2, 1, 0}, xi = 48)
@kotlin.jvm.internal.SourceDebugExtension
public final class ReactiveFlowKt {
    private static final kotlinx.coroutines.reactive.ContextInjector[] a = (kotlinx.coroutines.reactive.ContextInjector[]) kotlin.sequences.SequencesKt.c0(kotlin.sequences.SequencesKt.h(java.util.ServiceLoader.load(kotlinx.coroutines.reactive.ContextInjector.class, kotlinx.coroutines.reactive.ContextInjector.class.getClassLoader()).iterator())).toArray(new kotlinx.coroutines.reactive.ContextInjector[0]);

    public static final org.reactivestreams.Publisher a(org.reactivestreams.Publisher publisher, kotlin.coroutines.CoroutineContext coroutineContext) {
        for (kotlinx.coroutines.reactive.ContextInjector contextInjector : a) {
            publisher = contextInjector.a(publisher, coroutineContext);
        }
        return publisher;
    }
}
