package com.ironsource; import java.util.HashMap; import java.util.Map; /* loaded from: classes2.dex */ public class mi { private final boolean a; private String b; private String c; private boolean d; private hf e; private Map f; private an g; private String h; private boolean i; private boolean j; public mi(String str, String str2, boolean z, boolean z2, boolean z3, boolean z4, String str3, Map map, an anVar, hf hfVar) { this.b = str; this.c = str2; this.a = z; this.d = z2; this.f = map; this.g = anVar; this.e = hfVar; this.i = z3; this.j = z4; this.h = str3; } public Map a() { HashMap hashMap = new HashMap(); hashMap.put("instanceId", this.b); hashMap.put("instanceName", this.c); hashMap.put("rewarded", Boolean.toString(this.a)); hashMap.put("inAppBidding", Boolean.toString(this.d)); hashMap.put("isOneFlow", Boolean.toString(this.i)); hashMap.put(v8.r, String.valueOf(2)); hf hfVar = this.e; hashMap.put("width", hfVar != null ? Integer.toString(hfVar.c()) : "0"); hf hfVar2 = this.e; hashMap.put("height", hfVar2 != null ? Integer.toString(hfVar2.a()) : "0"); hf hfVar3 = this.e; hashMap.put("label", hfVar3 != null ? hfVar3.b() : ""); hashMap.put(v8.v, Boolean.toString(i())); if (this.j) { hashMap.put("isMultipleAdObjects", "true"); } String str = this.h; if (str != null) { hashMap.put("adUnitId", str); } Map map = this.f; if (map != null) { hashMap.putAll(map); } return hashMap; } public void a(an anVar) { this.g = anVar; } public void a(String str) { this.h = str; } public final an b() { return this.g; } public String c() { return this.h; } public Map d() { return this.f; } public String e() { return this.b; } public String f() { return this.c.replaceAll("IronSource_", ""); } public String g() { return this.c; } public hf h() { return this.e; } public boolean i() { return h() != null && h().d(); } public boolean j() { return this.d; } public boolean k() { return j() || m(); } public boolean l() { return this.j; } public boolean m() { return this.i; } public boolean n() { return this.a; } }