package h.b.p;

import h.b.p.a0.e0;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
import java.util.function.BiFunction;
import java.util.function.Function;

/* JADX INFO: compiled from: JsonElement.kt */
/* JADX INFO: loaded from: classes.dex */
@g.i
@h.b.h(with = x.class)
public final class w extends h implements Map<String, h>, g.h0.c.g0.a {
    public static final a Companion = new a(null);

    /* JADX INFO: renamed from: b, reason: collision with root package name */
    public final Map<String, h> f4584b;

    /* JADX INFO: compiled from: JsonElement.kt */
    @g.i
    public static final class a {
        public a() {
        }

        public final h.b.b<w> serializer() {
            return x.a;
        }

        public a(g.h0.c.g gVar) {
        }
    }

    /* JADX INFO: compiled from: JsonElement.kt */
    @g.i
    public static final class b extends g.h0.c.m implements g.h0.b.l<Map.Entry<? extends String, ? extends h>, CharSequence> {

        /* JADX INFO: renamed from: b, reason: collision with root package name */
        public static final b f4585b = new b();

        public b() {
            super(1);
        }

        @Override // g.h0.b.l
        public CharSequence invoke(Map.Entry<? extends String, ? extends h> entry) {
            Map.Entry<? extends String, ? extends h> entry2 = entry;
            g.h0.c.l.f(entry2, "<name for destructuring parameter 0>");
            String key = entry2.getKey();
            h value = entry2.getValue();
            StringBuilder sb = new StringBuilder();
            e0.a(sb, key);
            sb.append(':');
            sb.append(value);
            String string = sb.toString();
            g.h0.c.l.e(string, "StringBuilder().apply(builderAction).toString()");
            return string;
        }
    }

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    /* JADX WARN: Multi-variable type inference failed */
    public w(Map<String, ? extends h> map) {
        super(null);
        g.h0.c.l.f(map, "content");
        this.f4584b = map;
    }

    @Override // java.util.Map
    public void clear() {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h compute(String str, BiFunction<? super String, ? super h, ? extends h> biFunction) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h computeIfAbsent(String str, Function<? super String, ? extends h> function) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h computeIfPresent(String str, BiFunction<? super String, ? super h, ? extends h> biFunction) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public final boolean containsKey(Object obj) {
        if (!(obj instanceof String)) {
            return false;
        }
        String str = (String) obj;
        g.h0.c.l.f(str, "key");
        return this.f4584b.containsKey(str);
    }

    @Override // java.util.Map
    public final boolean containsValue(Object obj) {
        if (!(obj instanceof h)) {
            return false;
        }
        h hVar = (h) obj;
        g.h0.c.l.f(hVar, "value");
        return this.f4584b.containsValue(hVar);
    }

    @Override // java.util.Map
    public final Set<Map.Entry<String, h>> entrySet() {
        return this.f4584b.entrySet();
    }

    @Override // java.util.Map
    public boolean equals(Object obj) {
        return g.h0.c.l.a(this.f4584b, obj);
    }

    @Override // java.util.Map
    public final h get(Object obj) {
        if (!(obj instanceof String)) {
            return null;
        }
        String str = (String) obj;
        g.h0.c.l.f(str, "key");
        return this.f4584b.get(str);
    }

    @Override // java.util.Map
    public int hashCode() {
        return this.f4584b.hashCode();
    }

    @Override // java.util.Map
    public boolean isEmpty() {
        return this.f4584b.isEmpty();
    }

    @Override // java.util.Map
    public final Set<String> keySet() {
        return this.f4584b.keySet();
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h merge(String str, h hVar, BiFunction<? super h, ? super h, ? extends h> biFunction) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h put(String str, h hVar) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public void putAll(Map<? extends String, ? extends h> map) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h putIfAbsent(String str, h hVar) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public h remove(Object obj) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public boolean remove(Object obj, Object obj2) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ h replace(String str, h hVar) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public /* bridge */ /* synthetic */ boolean replace(String str, h hVar, h hVar2) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public void replaceAll(BiFunction<? super String, ? super h, ? extends h> biFunction) {
        throw new UnsupportedOperationException("Operation is not supported for read-only collection");
    }

    @Override // java.util.Map
    public final int size() {
        return this.f4584b.size();
    }

    public String toString() {
        return g.c0.g.r(this.f4584b.entrySet(), ",", "{", "}", 0, null, b.f4585b, 24);
    }

    @Override // java.util.Map
    public final Collection<h> values() {
        return this.f4584b.values();
    }
}
