package f7; import android.content.Context; import android.webkit.WebSettings; import h5.b0; import h5.f0; import h5.h0; import h5.u; import java.util.Map; import java.util.concurrent.TimeUnit; /* loaded from: classes2.dex */ public abstract class i { public static h5.i a(Context context, String str, Map map) { f0.a aVar = new f0.a(); TimeUnit timeUnit = TimeUnit.SECONDS; aVar.b(60L, timeUnit); aVar.c(60L, timeUnit); aVar.d(60L, timeUnit); f0 a10 = aVar.a(); b0.a v10 = b0.x(str).v(); if (map != null) { for (Map.Entry entry : map.entrySet()) { v10.f((String) entry.getKey(), (String) entry.getValue()); } } return a10.s(context, new h0.a().a("User-Agent", WebSettings.getDefaultUserAgent(context)).a("Content-Type", "application/json").a("Accept", "application/vnd.mobon.v1.full+json").h(v10.j()).b()); } public static h5.i b(Context context, String str, Map map, String str2) { f0.a aVar = new f0.a(); TimeUnit timeUnit = TimeUnit.SECONDS; aVar.b(60L, timeUnit); aVar.c(60L, timeUnit); aVar.d(60L, timeUnit); f0 a10 = aVar.a(); u.a aVar2 = new u.a(); if (map != null) { for (Map.Entry entry : map.entrySet()) { aVar2.a((String) entry.getKey(), (String) entry.getValue()); } } return a10.s(context, (str2.equals("json") ? new h0.a().a("User-Agent", WebSettings.getDefaultUserAgent(context)).a("Content-Type", "application/json").a("Accept", "application/json") : new h0.a().a("User-Agent", WebSettings.getDefaultUserAgent(context)).a("Content-Type", "application/x-www-form-urlencoded").a("Accept", "*/*")).i(str).f(aVar2.b()).b()); } }