package kotlin.text;

import com.amplifyframework.core.model.ModelIdentifier;
import com.google.android.gms.common.api.Api;

/* loaded from: classes3.dex */
public final class g {

    /* renamed from: d, reason: collision with root package name */
    public static final b f26503d = new b(null);

    /* renamed from: e, reason: collision with root package name */
    private static final g f26504e;

    /* renamed from: f, reason: collision with root package name */
    private static final g f26505f;

    /* renamed from: a, reason: collision with root package name */
    private final boolean f26506a;

    /* renamed from: b, reason: collision with root package name */
    private final a f26507b;

    /* renamed from: c, reason: collision with root package name */
    private final c f26508c;

    /* loaded from: classes3.dex */
    public static final class a {

        /* renamed from: g, reason: collision with root package name */
        public static final C0573a f26509g = new C0573a(null);

        /* renamed from: h, reason: collision with root package name */
        private static final a f26510h = new a(Api.BaseClientBuilder.API_PRIORITY_OTHER, Api.BaseClientBuilder.API_PRIORITY_OTHER, "  ", "", "", "");

        /* renamed from: a, reason: collision with root package name */
        private final int f26511a;

        /* renamed from: b, reason: collision with root package name */
        private final int f26512b;

        /* renamed from: c, reason: collision with root package name */
        private final String f26513c;

        /* renamed from: d, reason: collision with root package name */
        private final String f26514d;

        /* renamed from: e, reason: collision with root package name */
        private final String f26515e;

        /* renamed from: f, reason: collision with root package name */
        private final String f26516f;

        /* renamed from: kotlin.text.g$a$a, reason: collision with other inner class name */
        /* loaded from: classes3.dex */
        public static final class C0573a {
            private C0573a() {
            }

            public /* synthetic */ C0573a(kotlin.jvm.internal.k kVar) {
                this();
            }

            public final a a() {
                return a.f26510h;
            }
        }

        public a(int i10, int i11, String groupSeparator, String byteSeparator, String bytePrefix, String byteSuffix) {
            kotlin.jvm.internal.t.g(groupSeparator, "groupSeparator");
            kotlin.jvm.internal.t.g(byteSeparator, "byteSeparator");
            kotlin.jvm.internal.t.g(bytePrefix, "bytePrefix");
            kotlin.jvm.internal.t.g(byteSuffix, "byteSuffix");
            this.f26511a = i10;
            this.f26512b = i11;
            this.f26513c = groupSeparator;
            this.f26514d = byteSeparator;
            this.f26515e = bytePrefix;
            this.f26516f = byteSuffix;
        }

        public final StringBuilder b(StringBuilder sb2, String indent) {
            kotlin.jvm.internal.t.g(sb2, "sb");
            kotlin.jvm.internal.t.g(indent, "indent");
            sb2.append(indent);
            sb2.append("bytesPerLine = ");
            sb2.append(this.f26511a);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("bytesPerGroup = ");
            sb2.append(this.f26512b);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("groupSeparator = \"");
            sb2.append(this.f26513c);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append("\",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("byteSeparator = \"");
            sb2.append(this.f26514d);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append("\",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("bytePrefix = \"");
            sb2.append(this.f26515e);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append("\",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("byteSuffix = \"");
            sb2.append(this.f26516f);
            sb2.append(ModelIdentifier.Helper.PRIMARY_KEY_ENCAPSULATE_CHAR);
            return sb2;
        }

        public String toString() {
            StringBuilder sb2 = new StringBuilder();
            sb2.append("BytesHexFormat(");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            StringBuilder b10 = b(sb2, "    ");
            b10.append('\n');
            kotlin.jvm.internal.t.f(b10, "append(...)");
            sb2.append(")");
            String sb3 = sb2.toString();
            kotlin.jvm.internal.t.f(sb3, "toString(...)");
            return sb3;
        }
    }

    /* loaded from: classes3.dex */
    public static final class b {
        private b() {
        }

        public /* synthetic */ b(kotlin.jvm.internal.k kVar) {
            this();
        }

        public final g a() {
            return g.f26504e;
        }
    }

    /* loaded from: classes3.dex */
    public static final class c {

        /* renamed from: d, reason: collision with root package name */
        public static final a f26517d = new a(null);

        /* renamed from: e, reason: collision with root package name */
        private static final c f26518e = new c("", "", false);

        /* renamed from: a, reason: collision with root package name */
        private final String f26519a;

        /* renamed from: b, reason: collision with root package name */
        private final String f26520b;

        /* renamed from: c, reason: collision with root package name */
        private final boolean f26521c;

        /* loaded from: classes3.dex */
        public static final class a {
            private a() {
            }

            public /* synthetic */ a(kotlin.jvm.internal.k kVar) {
                this();
            }

            public final c a() {
                return c.f26518e;
            }
        }

        public c(String prefix, String suffix, boolean z10) {
            kotlin.jvm.internal.t.g(prefix, "prefix");
            kotlin.jvm.internal.t.g(suffix, "suffix");
            this.f26519a = prefix;
            this.f26520b = suffix;
            this.f26521c = z10;
        }

        public final StringBuilder b(StringBuilder sb2, String indent) {
            kotlin.jvm.internal.t.g(sb2, "sb");
            kotlin.jvm.internal.t.g(indent, "indent");
            sb2.append(indent);
            sb2.append("prefix = \"");
            sb2.append(this.f26519a);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append("\",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("suffix = \"");
            sb2.append(this.f26520b);
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append("\",");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append(indent);
            sb2.append("removeLeadingZeros = ");
            sb2.append(this.f26521c);
            return sb2;
        }

        public final String c() {
            return this.f26519a;
        }

        public final boolean d() {
            return this.f26521c;
        }

        public final String e() {
            return this.f26520b;
        }

        public String toString() {
            StringBuilder sb2 = new StringBuilder();
            sb2.append("NumberHexFormat(");
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            sb2.append('\n');
            kotlin.jvm.internal.t.f(sb2, "append(...)");
            StringBuilder b10 = b(sb2, "    ");
            b10.append('\n');
            kotlin.jvm.internal.t.f(b10, "append(...)");
            sb2.append(")");
            String sb3 = sb2.toString();
            kotlin.jvm.internal.t.f(sb3, "toString(...)");
            return sb3;
        }
    }

    static {
        a.C0573a c0573a = a.f26509g;
        a a10 = c0573a.a();
        c.a aVar = c.f26517d;
        f26504e = new g(false, a10, aVar.a());
        f26505f = new g(true, c0573a.a(), aVar.a());
    }

    public g(boolean z10, a bytes, c number) {
        kotlin.jvm.internal.t.g(bytes, "bytes");
        kotlin.jvm.internal.t.g(number, "number");
        this.f26506a = z10;
        this.f26507b = bytes;
        this.f26508c = number;
    }

    public final c b() {
        return this.f26508c;
    }

    public final boolean c() {
        return this.f26506a;
    }

    public String toString() {
        StringBuilder sb2 = new StringBuilder();
        sb2.append("HexFormat(");
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append('\n');
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append("    upperCase = ");
        sb2.append(this.f26506a);
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append(",");
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append('\n');
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append("    bytes = BytesHexFormat(");
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append('\n');
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        StringBuilder b10 = this.f26507b.b(sb2, "        ");
        b10.append('\n');
        kotlin.jvm.internal.t.f(b10, "append(...)");
        sb2.append("    ),");
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append('\n');
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append("    number = NumberHexFormat(");
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append('\n');
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        StringBuilder b11 = this.f26508c.b(sb2, "        ");
        b11.append('\n');
        kotlin.jvm.internal.t.f(b11, "append(...)");
        sb2.append("    )");
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append('\n');
        kotlin.jvm.internal.t.f(sb2, "append(...)");
        sb2.append(")");
        String sb3 = sb2.toString();
        kotlin.jvm.internal.t.f(sb3, "toString(...)");
        return sb3;
    }
}
