package com.google.android.play.core.e;

import com.bytedance.covode.number.Covode;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;

public final class ad {
    public final Map<String, Map<String, String>> LIZ;

    static {
        Covode.recordClassIndex(44341);
    }

    public /* synthetic */ ad(Map map) {
        this.LIZ = map;
    }

    public final Map<String, Set<String>> LIZ(Collection<String> collection) {
        Set unmodifiableSet;
        HashMap hashMap = new HashMap();
        for (String next : this.LIZ.keySet()) {
            if (!this.LIZ.containsKey(next)) {
                unmodifiableSet = Collections.emptySet();
            } else {
                HashSet hashSet = new HashSet();
                for (Map.Entry entry : this.LIZ.get(next).entrySet()) {
                    if (collection.contains(entry.getKey())) {
                        hashSet.add(entry.getValue());
                    }
                }
                unmodifiableSet = Collections.unmodifiableSet(hashSet);
            }
            hashMap.put(next, unmodifiableSet);
        }
        return hashMap;
    }
}
