apkfuckery/com.discord/smali_classes2/c0/u$a.smali

1805 lines
34 KiB
Smali
Raw Normal View History

2020-04-17 19:35:49 +00:00
.class public final Lc0/u$a;
2019-12-06 03:29:40 +00:00
.super Ljava/lang/Object;
.source "HttpUrl.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
2020-04-17 19:35:49 +00:00
value = Lc0/u;
2019-12-06 03:29:40 +00:00
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "a"
.end annotation
.annotation system Ldalvik/annotation/MemberClasses;
value = {
2020-04-17 19:35:49 +00:00
Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
}
.end annotation
# static fields
2020-04-17 19:35:49 +00:00
.field public static final i:Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
# instance fields
.field public a:Ljava/lang/String;
.field public b:Ljava/lang/String;
.field public c:Ljava/lang/String;
.field public d:Ljava/lang/String;
.field public e:I
.field public final f:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public g:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field public h:Ljava/lang/String;
# direct methods
.method public static constructor <clinit>()V
.locals 2
2020-04-17 19:35:49 +00:00
new-instance v0, Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
2020-04-17 19:35:49 +00:00
invoke-direct {v0, v1}, Lc0/u$a$a;-><init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
sput-object v0, Lc0/u$a;->i:Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
return-void
.end method
.method public constructor <init>()V
.locals 2
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
const-string v0, ""
2020-04-17 19:35:49 +00:00
iput-object v0, p0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput-object v0, p0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v1, -0x1
2020-04-17 19:35:49 +00:00
iput v1, p0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
2020-04-17 19:35:49 +00:00
iput-object v1, p0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
return-void
.end method
# virtual methods
2020-04-17 19:35:49 +00:00
.method public final a(Lc0/u;Ljava/lang/String;)Lc0/u$a;
2019-12-06 03:29:40 +00:00
.locals 27
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v12, p2
2020-03-14 02:12:46 +00:00
if-eqz v12, :cond_27
2019-12-06 03:29:40 +00:00
const/4 v2, 0x3
const/4 v3, 0x0
2020-04-17 19:35:49 +00:00
invoke-static {v12, v3, v3, v2}, Lc0/c0/a;->a(Ljava/lang/String;III)I
2019-12-06 03:29:40 +00:00
move-result v2
invoke-virtual/range {p2 .. p2}, Ljava/lang/String;->length()I
move-result v4
2020-04-17 19:35:49 +00:00
invoke-static {v12, v2, v4}, Lc0/c0/a;->b(Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v13
2020-04-17 19:35:49 +00:00
sget-object v4, Lc0/u$a;->i:Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v4, v12, v2, v13}, Lc0/u$a$a;->c(Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v4
const-string v14, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
const/4 v5, -0x1
const/4 v6, 0x1
if-eq v4, v5, :cond_2
const-string v7, "https:"
2020-04-17 19:35:49 +00:00
invoke-static {v12, v7, v2, v6}, Ly/a0/p;->startsWith(Ljava/lang/String;Ljava/lang/String;IZ)Z
2019-12-06 03:29:40 +00:00
move-result v7
if-eqz v7, :cond_0
const-string v3, "https"
2020-04-17 19:35:49 +00:00
iput-object v3, v0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
add-int/lit8 v2, v2, 0x6
goto :goto_0
:cond_0
const-string v7, "http:"
2020-04-17 19:35:49 +00:00
invoke-static {v12, v7, v2, v6}, Ly/a0/p;->startsWith(Ljava/lang/String;Ljava/lang/String;IZ)Z
2019-12-06 03:29:40 +00:00
move-result v7
if-eqz v7, :cond_1
const-string v3, "http"
2020-04-17 19:35:49 +00:00
iput-object v3, v0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
add-int/lit8 v2, v2, 0x5
goto :goto_0
:cond_1
const-string v1, "Expected URL scheme \'http\' or \'https\' but was \'"
2020-04-17 17:35:24 +00:00
invoke-static {v1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-virtual {v12, v3, v4}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
2020-04-17 19:35:49 +00:00
invoke-static {v2, v14}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v2, "\'"
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
new-instance v2, Ljava/lang/IllegalArgumentException;
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v2
:cond_2
2020-03-14 02:12:46 +00:00
if-eqz v1, :cond_26
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v3, v1, Lc0/u;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput-object v3, v0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
:goto_0
2020-04-17 19:35:49 +00:00
sget-object v3, Lc0/u$a;->i:Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v3, v12, v2, v13}, Lc0/u$a$a;->d(Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v3
const/4 v4, 0x2
const/16 v7, 0x3f
const/16 v8, 0x5c
const/16 v9, 0x2f
const/16 v10, 0x23
if-ge v3, v4, :cond_6
if-eqz v1, :cond_6
2020-04-17 19:35:49 +00:00
iget-object v4, v1, Lc0/u;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v11, v0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {v4, v11}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
move-result v4
xor-int/2addr v4, v6
if-eqz v4, :cond_3
goto :goto_1
:cond_3
2020-04-17 19:35:49 +00:00
invoke-virtual/range {p1 .. p1}, Lc0/u;->e()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v3
2020-04-17 19:35:49 +00:00
iput-object v3, v0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual/range {p1 .. p1}, Lc0/u;->a()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v3
2020-04-17 19:35:49 +00:00
iput-object v3, v0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v3, v1, Lc0/u;->e:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput-object v3, v0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget v3, v1, Lc0/u;->f:I
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput v3, v0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v3, v0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v3}, Ljava/util/List;->clear()V
2020-04-17 19:35:49 +00:00
iget-object v3, v0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual/range {p1 .. p1}, Lc0/u;->c()Ljava/util/List;
2019-12-06 03:29:40 +00:00
move-result-object v4
invoke-interface {v3, v4}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
if-eq v2, v13, :cond_4
invoke-virtual {v12, v2}, Ljava/lang/String;->charAt(I)C
move-result v3
if-ne v3, v10, :cond_5
:cond_4
2020-04-17 19:35:49 +00:00
invoke-virtual/range {p1 .. p1}, Lc0/u;->d()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
invoke-virtual {v0, v1}, Lc0/u$a;->a(Ljava/lang/String;)Lc0/u$a;
2019-12-06 03:29:40 +00:00
:cond_5
move v15, v2
move/from16 v17, v13
goto/16 :goto_a
:cond_6
:goto_1
add-int/2addr v2, v3
const/4 v1, 0x0
const/4 v3, 0x0
move v7, v2
const/16 v1, 0x3f
const/4 v15, 0x0
const/16 v16, 0x0
:goto_2
const-string v2, "@/\\?#"
2020-04-17 19:35:49 +00:00
invoke-static {v12, v2, v7, v13}, Lc0/c0/a;->a(Ljava/lang/String;Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v11
if-eq v11, v13, :cond_7
invoke-virtual {v12, v11}, Ljava/lang/String;->charAt(I)C
move-result v2
goto :goto_3
:cond_7
const/4 v2, -0x1
:goto_3
if-eq v2, v5, :cond_c
if-eq v2, v10, :cond_c
if-eq v2, v9, :cond_c
if-eq v2, v8, :cond_c
if-eq v2, v1, :cond_c
const/16 v1, 0x40
if-eq v2, v1, :cond_8
move/from16 v17, v13
goto/16 :goto_6
:cond_8
const-string v10, "%40"
if-nez v15, :cond_b
const/16 v1, 0x3a
2020-04-17 19:35:49 +00:00
invoke-static {v12, v1, v7, v11}, Lc0/c0/a;->a(Ljava/lang/String;CII)I
2019-12-06 03:29:40 +00:00
move-result v9
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v6, 0x1
const/4 v8, 0x0
const/16 v17, 0x0
const/16 v18, 0x0
const/16 v19, 0x0
const/16 v20, 0xf0
const-string v5, " \"\':;<=>@[]^`{}|/\\?#"
move-object/from16 v2, p2
move v3, v7
move v4, v9
move v7, v8
move/from16 v8, v17
move/from16 v21, v9
move/from16 v9, v18
move-object/from16 v22, v10
move-object/from16 v10, v19
move/from16 p1, v15
move v15, v11
move/from16 v11, v20
2020-04-17 19:35:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
if-eqz v16, :cond_9
new-instance v2, Ljava/lang/StringBuilder;
invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V
2020-04-17 19:35:49 +00:00
iget-object v3, v0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-object/from16 v3, v22
invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
:cond_9
2020-04-17 19:35:49 +00:00
iput-object v1, v0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move/from16 v1, v21
if-eq v1, v15, :cond_a
2020-04-17 19:35:49 +00:00
sget-object v2, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
add-int/lit8 v3, v1, 0x1
const/4 v6, 0x1
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v11, 0xf0
const-string v5, " \"\':;<=>@[]^`{}|/\\?#"
move-object v1, v2
move-object/from16 v2, p2
move v4, v15
2020-04-17 19:35:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
iput-object v1, v0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v1, 0x1
goto :goto_4
:cond_a
move/from16 v1, p1
:goto_4
const/16 v16, 0x1
move/from16 v17, v13
goto :goto_5
:cond_b
move-object v3, v10
move/from16 p1, v15
move v15, v11
new-instance v11, Ljava/lang/StringBuilder;
invoke-direct {v11}, Ljava/lang/StringBuilder;-><init>()V
2020-04-17 19:35:49 +00:00
iget-object v1, v0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v11, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v11, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v6, 0x1
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x0
const/16 v17, 0x0
const/16 v18, 0xf0
const-string v5, " \"\':;<=>@[]^`{}|/\\?#"
move-object/from16 v2, p2
move v3, v7
move v4, v15
move v7, v8
move v8, v9
move v9, v10
move-object/from16 v10, v17
move/from16 v17, v13
move-object v13, v11
move/from16 v11, v18
2020-04-17 19:35:49 +00:00
invoke-static/range {v1 .. v11}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-virtual {v13, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
2020-04-17 19:35:49 +00:00
iput-object v1, v0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move/from16 v1, p1
:goto_5
add-int/lit8 v7, v15, 0x1
move v15, v1
:goto_6
const/16 v10, 0x23
const/16 v9, 0x2f
const/16 v8, 0x5c
const/16 v1, 0x3f
const/4 v5, -0x1
move/from16 v13, v17
goto/16 :goto_2
:cond_c
move v15, v11
move/from16 v17, v13
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u$a;->i:Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, v12, v7, v15}, Lc0/u$a$a;->b(Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v8
add-int/lit8 v9, v8, 0x1
const/16 v10, 0x22
if-ge v9, v15, :cond_f
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
const/4 v6, 0x4
move-object/from16 v2, p2
move v3, v7
move v4, v8
2020-04-17 19:35:49 +00:00
invoke-static/range {v1 .. v6}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IIZI)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 17:35:24 +00:00
invoke-static {v1}, Lf/n/a/j/a;->b(Ljava/lang/String;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
iput-object v1, v0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u$a;->i:Lc0/u$a$a;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, v12, v9, v15}, Lc0/u$a$a;->a(Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v1
2020-04-17 19:35:49 +00:00
iput v1, v0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget v1, v0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
const/4 v2, -0x1
if-eq v1, v2, :cond_d
const/4 v1, 0x1
goto :goto_7
:cond_d
const/4 v1, 0x0
:goto_7
if-eqz v1, :cond_e
goto :goto_8
:cond_e
const-string v1, "Invalid URL port: \""
2020-04-17 17:35:24 +00:00
invoke-static {v1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-virtual {v12, v9, v15}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
2020-04-17 19:35:49 +00:00
invoke-static {v2, v14}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
new-instance v2, Ljava/lang/IllegalArgumentException;
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v2
:cond_f
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
const/4 v6, 0x4
move-object/from16 v2, p2
move v3, v7
move v4, v8
2020-04-17 19:35:49 +00:00
invoke-static/range {v1 .. v6}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IIZI)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 17:35:24 +00:00
invoke-static {v1}, Lf/n/a/j/a;->b(Ljava/lang/String;)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
iput-object v1, v0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v2, v0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
if-eqz v2, :cond_25
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, v2}, Lc0/u$b;->a(Ljava/lang/String;)I
2019-12-06 03:29:40 +00:00
move-result v1
2020-04-17 19:35:49 +00:00
iput v1, v0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
:goto_8
2020-04-17 19:35:49 +00:00
iget-object v1, v0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_10
const/4 v1, 0x1
goto :goto_9
:cond_10
const/4 v1, 0x0
:goto_9
2020-03-14 02:12:46 +00:00
if-eqz v1, :cond_24
2019-12-06 03:29:40 +00:00
:goto_a
const-string v1, "?#"
move/from16 v2, v17
2020-04-17 19:35:49 +00:00
invoke-static {v12, v1, v15, v2}, Lc0/c0/a;->a(Ljava/lang/String;Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v1
if-ne v15, v1, :cond_11
2020-03-14 02:12:46 +00:00
move-object v11, v0
2019-12-06 03:29:40 +00:00
move v5, v2
2020-03-14 02:12:46 +00:00
move-object v4, v12
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
goto/16 :goto_17
2019-12-06 03:29:40 +00:00
:cond_11
invoke-virtual {v12, v15}, Ljava/lang/String;->charAt(I)C
move-result v3
const-string v4, ""
const/16 v5, 0x2f
if-eq v3, v5, :cond_13
const/16 v5, 0x5c
if-ne v3, v5, :cond_12
goto :goto_b
:cond_12
2020-04-17 19:35:49 +00:00
iget-object v3, v0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v3}, Ljava/util/List;->size()I
move-result v5
2020-03-14 02:12:46 +00:00
const/4 v6, 0x1
sub-int/2addr v5, v6
2019-12-06 03:29:40 +00:00
invoke-interface {v3, v5, v4}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
2020-03-14 02:12:46 +00:00
move-object v8, v0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v3, v1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v7, v2
2019-12-06 03:29:40 +00:00
move-object v9, v4
2020-03-14 02:12:46 +00:00
move-object v4, v12
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v5, v4
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v2, v3
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v1, v8
2019-12-06 03:29:40 +00:00
goto :goto_d
:cond_13
:goto_b
2020-03-14 02:12:46 +00:00
const/4 v3, 0x1
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v5, v0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-interface {v5}, Ljava/util/List;->clear()V
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v5, v0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-interface {v5, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v8, v0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v3, v1
move v7, v2
2019-12-06 03:29:40 +00:00
move-object v9, v4
2020-03-14 02:12:46 +00:00
move-object v4, v12
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v5, v4
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/4 v6, 0x1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v2, v3
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v1, v8
2019-12-06 03:29:40 +00:00
:goto_c
2020-03-14 02:12:46 +00:00
add-int/2addr v15, v6
2019-12-06 03:29:40 +00:00
:cond_14
:goto_d
2020-03-14 02:12:46 +00:00
if-ge v15, v3, :cond_21
2019-12-06 03:29:40 +00:00
const-string v10, "/\\"
2020-04-17 19:35:49 +00:00
invoke-static {v12, v10, v15, v3}, Lc0/c0/a;->a(Ljava/lang/String;Ljava/lang/String;II)I
2019-12-06 03:29:40 +00:00
move-result v10
2020-03-14 02:12:46 +00:00
if-ge v10, v3, :cond_15
2019-12-06 03:29:40 +00:00
const/4 v11, 0x1
goto :goto_e
:cond_15
const/4 v11, 0x0
:goto_e
const/16 v21, 0x1
2020-04-17 19:35:49 +00:00
sget-object v16, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/16 v22, 0x0
const/16 v23, 0x0
const/16 v24, 0x0
const/16 v25, 0x0
const/16 v26, 0xf0
const-string v20, " \"<>^`{}|/\\?#"
move-object/from16 v17, v12
move/from16 v18, v15
move/from16 v19, v10
2020-04-17 19:35:49 +00:00
invoke-static/range {v16 .. v26}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v13
2020-03-14 02:12:46 +00:00
const-string v14, "."
2020-04-17 19:35:49 +00:00
invoke-static {v13, v14}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-03-14 02:12:46 +00:00
move-result v14
if-nez v14, :cond_17
const-string v14, "%2e"
2020-04-17 19:35:49 +00:00
invoke-static {v13, v14, v6}, Ly/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-12-06 03:29:40 +00:00
move-result v14
if-eqz v14, :cond_16
2020-03-14 02:12:46 +00:00
goto :goto_f
2019-12-06 03:29:40 +00:00
:cond_16
2020-03-14 02:12:46 +00:00
const/4 v14, 0x0
goto :goto_10
:cond_17
:goto_f
const/4 v14, 0x1
:goto_10
if-eqz v14, :cond_18
goto/16 :goto_16
:cond_18
const-string v14, ".."
2020-04-17 19:35:49 +00:00
invoke-static {v13, v14}, Ly/u/b/j;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
2020-03-14 02:12:46 +00:00
move-result v14
if-nez v14, :cond_1a
const-string v14, "%2e."
2020-04-17 19:35:49 +00:00
invoke-static {v13, v14, v6}, Ly/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-03-14 02:12:46 +00:00
move-result v14
if-nez v14, :cond_1a
const-string v14, ".%2e"
2020-04-17 19:35:49 +00:00
invoke-static {v13, v14, v6}, Ly/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2019-12-06 03:29:40 +00:00
move-result v14
2020-03-14 02:12:46 +00:00
if-nez v14, :cond_1a
const-string v14, "%2e%2e"
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-static {v13, v14, v6}, Ly/a0/p;->equals(Ljava/lang/String;Ljava/lang/String;Z)Z
2020-03-14 02:12:46 +00:00
move-result v14
if-eqz v14, :cond_19
2019-12-06 03:29:40 +00:00
goto :goto_11
2020-03-14 02:12:46 +00:00
:cond_19
const/4 v14, 0x0
goto :goto_12
:cond_1a
:goto_11
const/4 v14, 0x1
:goto_12
if-eqz v14, :cond_1d
2020-04-17 19:35:49 +00:00
iget-object v13, v8, Lc0/u$a;->f:Ljava/util/List;
2020-03-14 02:12:46 +00:00
invoke-interface {v13}, Ljava/util/List;->size()I
move-result v14
sub-int/2addr v14, v6
invoke-interface {v13, v14}, Ljava/util/List;->remove(I)Ljava/lang/Object;
move-result-object v13
check-cast v13, Ljava/lang/String;
invoke-interface {v13}, Ljava/lang/CharSequence;->length()I
move-result v13
if-nez v13, :cond_1b
const/4 v13, 0x1
goto :goto_13
:cond_1b
const/4 v13, 0x0
:goto_13
if-eqz v13, :cond_1c
2020-04-17 19:35:49 +00:00
iget-object v13, v8, Lc0/u$a;->f:Ljava/util/List;
2020-03-14 02:12:46 +00:00
invoke-interface {v13}, Ljava/util/Collection;->isEmpty()Z
move-result v13
xor-int/2addr v13, v6
if-eqz v13, :cond_1c
2020-04-17 19:35:49 +00:00
iget-object v13, v8, Lc0/u$a;->f:Ljava/util/List;
2020-03-14 02:12:46 +00:00
invoke-interface {v13}, Ljava/util/List;->size()I
move-result v14
sub-int/2addr v14, v6
invoke-interface {v13, v14, v9}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
goto :goto_16
:cond_1c
2020-04-17 19:35:49 +00:00
iget-object v13, v8, Lc0/u$a;->f:Ljava/util/List;
2020-03-14 02:12:46 +00:00
invoke-interface {v13, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_16
:cond_1d
2020-04-17 19:35:49 +00:00
iget-object v14, v8, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v14}, Ljava/util/List;->size()I
move-result v15
2020-03-14 02:12:46 +00:00
sub-int/2addr v15, v6
2019-12-06 03:29:40 +00:00
invoke-interface {v14, v15}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v14
check-cast v14, Ljava/lang/CharSequence;
invoke-interface {v14}, Ljava/lang/CharSequence;->length()I
move-result v14
2020-03-14 02:12:46 +00:00
if-nez v14, :cond_1e
2019-12-06 03:29:40 +00:00
const/4 v14, 0x1
2020-03-14 02:12:46 +00:00
goto :goto_14
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:cond_1e
2019-12-06 03:29:40 +00:00
const/4 v14, 0x0
2020-03-14 02:12:46 +00:00
:goto_14
if-eqz v14, :cond_1f
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v14, v8, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v14}, Ljava/util/List;->size()I
move-result v15
2020-03-14 02:12:46 +00:00
sub-int/2addr v15, v6
2019-12-06 03:29:40 +00:00
invoke-interface {v14, v15, v13}, Ljava/util/List;->set(ILjava/lang/Object;)Ljava/lang/Object;
2020-03-14 02:12:46 +00:00
goto :goto_15
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:cond_1f
2020-04-17 19:35:49 +00:00
iget-object v14, v8, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v14, v13}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2020-03-14 02:12:46 +00:00
:goto_15
if-eqz v11, :cond_20
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v13, v8, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
invoke-interface {v13, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z
2020-03-14 02:12:46 +00:00
:cond_20
:goto_16
2019-12-06 03:29:40 +00:00
move v15, v10
if-eqz v11, :cond_14
2020-03-14 02:12:46 +00:00
goto/16 :goto_c
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:cond_21
move-object v11, v1
2019-12-06 03:29:40 +00:00
move v1, v2
2020-03-14 02:12:46 +00:00
move-object v12, v5
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v5, v7
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:goto_17
if-ge v1, v5, :cond_22
invoke-virtual {v12, v1}, Ljava/lang/String;->charAt(I)C
2019-12-06 03:29:40 +00:00
move-result v2
const/16 v3, 0x3f
2020-03-14 02:12:46 +00:00
if-ne v2, v3, :cond_22
2019-12-06 03:29:40 +00:00
const/16 v2, 0x23
2020-04-17 19:35:49 +00:00
invoke-static {v12, v2, v1, v5}, Lc0/c0/a;->a(Ljava/lang/String;CII)I
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result v3
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
sget-object v6, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
add-int/lit8 v15, v1, 0x1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v18, 0x1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v19, 0x0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v20, 0x1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v21, 0x0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v22, 0x0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v23, 0xd0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const-string v17, " \"\'<>#"
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v13, v6
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v14, v4
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move/from16 v16, v3
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-static/range {v13 .. v23}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
invoke-virtual {v6, v1}, Lc0/u$b;->d(Ljava/lang/String;)Ljava/util/List;
2019-12-06 03:29:40 +00:00
move-result-object v1
2020-04-17 19:35:49 +00:00
iput-object v1, v11, Lc0/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move v1, v3
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
goto :goto_18
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:cond_22
const/16 v2, 0x23
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:goto_18
if-ge v1, v5, :cond_23
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
invoke-virtual {v12, v1}, Ljava/lang/String;->charAt(I)C
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result v3
if-ne v3, v2, :cond_23
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
sget-object v2, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
add-int/lit8 v1, v1, 0x1
const/4 v7, 0x1
const/4 v8, 0x0
const/4 v9, 0x0
const/4 v10, 0x1
2020-03-14 02:12:46 +00:00
const/4 v12, 0x0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const/16 v13, 0xb0
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
const-string v6, ""
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v3, v4
2019-12-06 03:29:40 +00:00
2020-03-10 23:21:53 +00:00
move v4, v1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-object v1, v11
move-object v11, v12
move v12, v13
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-static/range {v2 .. v12}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
move-result-object v2
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iput-object v2, v1, Lc0/u$a;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
goto :goto_19
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:cond_23
move-object v1, v11
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:goto_19
return-object v1
2019-12-06 03:29:40 +00:00
2020-03-14 02:12:46 +00:00
:cond_24
2019-12-06 03:29:40 +00:00
const-string v1, "Invalid URL host: \""
2020-04-17 17:35:24 +00:00
invoke-static {v1}, Lf/e/b/a/a;->a(Ljava/lang/String;)Ljava/lang/StringBuilder;
2019-12-06 03:29:40 +00:00
move-result-object v1
invoke-virtual {v12, v7, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
2020-04-17 19:35:49 +00:00
invoke-static {v2, v14}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v1, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v1
new-instance v2, Ljava/lang/IllegalArgumentException;
invoke-virtual {v1}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v1
invoke-direct {v2, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v2
2020-03-14 02:12:46 +00:00
:cond_25
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
throw v1
2020-03-14 02:12:46 +00:00
:cond_26
2019-12-06 03:29:40 +00:00
new-instance v1, Ljava/lang/IllegalArgumentException;
const-string v2, "Expected URL scheme \'http\' or \'https\' but no colon was found"
invoke-direct {v1, v2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v1
2020-03-14 02:12:46 +00:00
:cond_27
2019-12-06 03:29:40 +00:00
const/4 v1, 0x0
const-string v2, "input"
2020-04-17 19:35:49 +00:00
invoke-static {v2}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v1
.end method
2020-04-17 19:35:49 +00:00
.method public final a(Ljava/lang/String;)Lc0/u$a;
2020-02-20 19:33:18 +00:00
.locals 11
if-eqz p1, :cond_0
2020-04-17 19:35:49 +00:00
sget-object v0, Lc0/u;->l:Lc0/u$b;
2020-02-20 19:33:18 +00:00
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v5, 0x1
const/4 v6, 0x0
const/4 v7, 0x1
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0xd3
const-string v4, " \"\'<>#"
move-object v1, p1
2020-04-17 19:35:49 +00:00
invoke-static/range {v0 .. v10}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2020-02-20 19:33:18 +00:00
move-result-object p1
if-eqz p1, :cond_0
2020-04-17 19:35:49 +00:00
sget-object v0, Lc0/u;->l:Lc0/u$b;
2020-02-20 19:33:18 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v0, p1}, Lc0/u$b;->d(Ljava/lang/String;)Ljava/util/List;
2020-02-20 19:33:18 +00:00
move-result-object p1
goto :goto_0
:cond_0
const/4 p1, 0x0
:goto_0
2020-04-17 19:35:49 +00:00
iput-object p1, p0, Lc0/u$a;->g:Ljava/util/List;
2020-02-20 19:33:18 +00:00
return-object p0
.end method
2020-04-17 19:35:49 +00:00
.method public final a()Lc0/u;
2019-12-06 03:29:40 +00:00
.locals 18
move-object/from16 v0, p0
2020-04-17 19:35:49 +00:00
new-instance v11, Lc0/u;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v2, v0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v2, :cond_4
2020-04-17 19:35:49 +00:00
sget-object v3, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v4, v0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x7
2020-04-17 19:35:49 +00:00
invoke-static/range {v3 .. v8}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IIZI)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v3
2020-04-17 19:35:49 +00:00
sget-object v4, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v5, v0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v8, 0x0
const/4 v9, 0x7
2020-04-17 19:35:49 +00:00
invoke-static/range {v4 .. v9}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IIZI)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v4
2020-04-17 19:35:49 +00:00
iget-object v5, v0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v5, :cond_3
2020-04-17 19:35:49 +00:00
invoke-virtual/range {p0 .. p0}, Lc0/u$a;->b()I
2019-12-06 03:29:40 +00:00
move-result v6
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v7, v0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
const/4 v8, 0x0
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, v7, v8}, Lc0/u$b;->a(Ljava/util/List;Z)Ljava/util/List;
2019-12-06 03:29:40 +00:00
move-result-object v7
if-eqz v7, :cond_2
2020-04-17 19:35:49 +00:00
iget-object v1, v0, Lc0/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
const/4 v8, 0x0
if-eqz v1, :cond_0
2020-04-17 19:35:49 +00:00
sget-object v9, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v10, 0x1
2020-04-17 19:35:49 +00:00
invoke-virtual {v9, v1, v10}, Lc0/u$b;->a(Ljava/util/List;Z)Ljava/util/List;
2019-12-06 03:29:40 +00:00
move-result-object v1
move-object v9, v1
goto :goto_0
:cond_0
move-object v9, v8
:goto_0
2020-04-17 19:35:49 +00:00
iget-object v13, v0, Lc0/u$a;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v13, :cond_1
2020-04-17 19:35:49 +00:00
sget-object v12, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x7
2020-04-17 19:35:49 +00:00
invoke-static/range {v12 .. v17}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IIZI)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v1
move-object v10, v1
goto :goto_1
:cond_1
move-object v10, v8
:goto_1
2020-04-17 19:35:49 +00:00
invoke-virtual/range {p0 .. p0}, Lc0/u$a;->toString()Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object v12
move-object v1, v11
move-object v8, v9
move-object v9, v10
move-object v10, v12
2020-04-17 19:35:49 +00:00
invoke-direct/range {v1 .. v10}, Lc0/u;-><init>(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILjava/util/List;Ljava/util/List;Ljava/lang/String;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
return-object v11
:cond_2
2020-04-17 19:35:49 +00:00
new-instance v1, Ly/l;
2019-12-06 03:29:40 +00:00
const-string v2, "null cannot be cast to non-null type kotlin.collections.List<kotlin.String>"
2020-04-17 19:35:49 +00:00
invoke-direct {v1, v2}, Ly/l;-><init>(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
throw v1
:cond_3
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "host == null"
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
:cond_4
new-instance v1, Ljava/lang/IllegalStateException;
const-string v2, "scheme == null"
invoke-direct {v1, v2}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V
throw v1
.end method
.method public final b()I
.locals 2
2020-04-17 19:35:49 +00:00
iget v0, p0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
const/4 v1, -0x1
if-eq v0, v1, :cond_0
goto :goto_0
:cond_0
2020-04-17 19:35:49 +00:00
sget-object v0, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_1
2020-04-17 19:35:49 +00:00
invoke-virtual {v0, v1}, Lc0/u$b;->a(Ljava/lang/String;)I
2019-12-06 03:29:40 +00:00
move-result v0
:goto_0
return v0
:cond_1
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
const/4 v0, 0x0
throw v0
.end method
2020-04-17 19:35:49 +00:00
.method public final b(Ljava/lang/String;)Lc0/u$a;
2019-12-06 03:29:40 +00:00
.locals 11
if-eqz p1, :cond_0
2020-04-17 19:35:49 +00:00
sget-object v0, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0xfb
const-string v4, " \"\':;<=>@[]^`{}|/\\?#"
move-object v1, p1
2020-04-17 19:35:49 +00:00
invoke-static/range {v0 .. v10}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object p1
2020-04-17 19:35:49 +00:00
iput-object p1, p0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
const-string p1, "password"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
2020-04-17 19:35:49 +00:00
.method public final c(Ljava/lang/String;)Lc0/u$a;
2019-12-06 03:29:40 +00:00
.locals 11
if-eqz p1, :cond_0
2020-04-17 19:35:49 +00:00
sget-object v0, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/4 v7, 0x0
const/4 v8, 0x0
const/4 v9, 0x0
const/16 v10, 0xfb
const-string v4, " \"\':;<=>@[]^`{}|/\\?#"
move-object v1, p1
2020-04-17 19:35:49 +00:00
invoke-static/range {v0 .. v10}, Lc0/u$b;->a(Lc0/u$b;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;I)Ljava/lang/String;
2019-12-06 03:29:40 +00:00
move-result-object p1
2020-04-17 19:35:49 +00:00
iput-object p1, p0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
return-object p0
:cond_0
const-string p1, "username"
2020-04-17 19:35:49 +00:00
invoke-static {p1}, Ly/u/b/j;->a(Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
const/4 p1, 0x0
throw p1
.end method
.method public toString()Ljava/lang/String;
.locals 6
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_0
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const-string v1, "://"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_0
:cond_0
const-string v1, "//"
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:goto_0
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
const/4 v2, 0x1
const/4 v3, 0x0
if-lez v1, :cond_1
const/4 v1, 0x1
goto :goto_1
:cond_1
const/4 v1, 0x0
:goto_1
const/16 v4, 0x3a
if-nez v1, :cond_3
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
if-lez v1, :cond_2
const/4 v1, 0x1
goto :goto_2
:cond_2
const/4 v1, 0x0
:goto_2
if-eqz v1, :cond_6
:cond_3
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->b:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
move-result v1
if-lez v1, :cond_4
goto :goto_3
:cond_4
const/4 v2, 0x0
:goto_3
if-eqz v2, :cond_5
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->c:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_5
const/16 v1, 0x40
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
:cond_6
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
const/4 v2, 0x0
if-eqz v1, :cond_9
if-eqz v1, :cond_8
const/4 v5, 0x2
2020-04-17 19:35:49 +00:00
invoke-static {v1, v4, v3, v5}, Ly/a0/u;->contains$default(Ljava/lang/CharSequence;CZI)Z
2019-12-06 03:29:40 +00:00
move-result v1
if-eqz v1, :cond_7
const/16 v1, 0x5b
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/16 v1, 0x5d
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
goto :goto_4
:cond_7
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->d:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto :goto_4
:cond_8
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v2
:cond_9
:goto_4
2020-04-17 19:35:49 +00:00
iget v1, p0, Lc0/u$a;->e:I
2019-12-06 03:29:40 +00:00
const/4 v3, -0x1
if-ne v1, v3, :cond_a
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_d
:cond_a
2020-04-17 19:35:49 +00:00
invoke-virtual {p0}, Lc0/u$a;->b()I
2019-12-06 03:29:40 +00:00
move-result v1
2020-04-17 19:35:49 +00:00
iget-object v3, p0, Lc0/u$a;->a:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_c
2020-04-17 19:35:49 +00:00
sget-object v5, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_b
2020-04-17 19:35:49 +00:00
invoke-virtual {v5, v3}, Lc0/u$b;->a(Ljava/lang/String;)I
2019-12-06 03:29:40 +00:00
move-result v3
if-eq v1, v3, :cond_d
goto :goto_5
:cond_b
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v2
:cond_c
:goto_5
invoke-virtual {v0, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
:cond_d
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v3, p0, Lc0/u$a;->f:Ljava/util/List;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, v3, v0}, Lc0/u$b;->a(Ljava/util/List;Ljava/lang/StringBuilder;)V
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_f
const/16 v1, 0x3f
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
sget-object v1, Lc0/u;->l:Lc0/u$b;
2019-12-06 03:29:40 +00:00
2020-04-17 19:35:49 +00:00
iget-object v3, p0, Lc0/u$a;->g:Ljava/util/List;
2019-12-06 03:29:40 +00:00
if-eqz v3, :cond_e
2020-04-17 19:35:49 +00:00
invoke-virtual {v1, v3, v0}, Lc0/u$b;->b(Ljava/util/List;Ljava/lang/StringBuilder;)V
2019-12-06 03:29:40 +00:00
goto :goto_6
:cond_e
2020-04-17 19:35:49 +00:00
invoke-static {}, Ly/u/b/j;->throwNpe()V
2019-12-06 03:29:40 +00:00
throw v2
:cond_f
:goto_6
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
if-eqz v1, :cond_10
const/16 v1, 0x23
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
2020-04-17 19:35:49 +00:00
iget-object v1, p0, Lc0/u$a;->h:Ljava/lang/String;
2019-12-06 03:29:40 +00:00
invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_10
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
const-string v1, "StringBuilder().apply(builderAction).toString()"
2020-04-17 19:35:49 +00:00
invoke-static {v0, v1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
2019-12-06 03:29:40 +00:00
return-object v0
.end method