.class public Ly/a0/l; .super Ljava/lang/Object; .source "Indent.kt" # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Ljava/lang/Object;->()V return-void .end method .method public static synthetic trimMargin$default(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String; .locals 13 const/4 v0, 0x1 and-int/2addr p2, v0 if-eqz p2, :cond_0 const-string p1, "|" :cond_0 const/4 p2, 0x0 if-eqz p0, :cond_f if-eqz p1, :cond_e const-string v1, "" invoke-static {p1}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z move-result v2 xor-int/2addr v2, v0 if-eqz v2, :cond_d const-string v2, "\r\n" const-string v3, "\n" const-string v4, "\r" filled-new-array {v2, v3, v4}, [Ljava/lang/String; move-result-object v2 const/4 v3, 0x6 const/4 v4, 0x0 invoke-static {p0, v2, v4, v4, v3}, Ly/a0/u;->splitToSequence$default(Ljava/lang/CharSequence;[Ljava/lang/String;ZII)Lkotlin/sequences/Sequence; move-result-object v2 invoke-static {v2}, Le/n/a/j/a;->toList(Lkotlin/sequences/Sequence;)Ljava/util/List; move-result-object v2 invoke-virtual {p0}, Ljava/lang/String;->length()I move-result p0 invoke-interface {v2}, Ljava/util/List;->size()I move-result v3 mul-int/lit8 v3, v3, 0x0 add-int/2addr v3, p0 invoke-interface {v1}, Ljava/lang/CharSequence;->length()I move-result p0 if-nez p0, :cond_1 const/4 p0, 0x1 goto :goto_0 :cond_1 const/4 p0, 0x0 :goto_0 if-eqz p0, :cond_2 sget-object p0, Ly/a0/j;->d:Ly/a0/j; goto :goto_1 :cond_2 new-instance p0, Ly/a0/k; invoke-direct {p0, v1}, Ly/a0/k;->(Ljava/lang/String;)V :goto_1 invoke-static {v2}, Le/n/a/j/a;->getLastIndex(Ljava/util/List;)I move-result v1 new-instance v5, Ljava/util/ArrayList; invoke-direct {v5}, Ljava/util/ArrayList;->()V invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator; move-result-object v2 const/4 v6, 0x0 :goto_2 invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z move-result v7 if-eqz v7, :cond_c invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object; move-result-object v7 add-int/lit8 v8, v6, 0x1 if-ltz v6, :cond_b check-cast v7, Ljava/lang/String; if-eqz v6, :cond_3 if-ne v6, v1, :cond_4 :cond_3 invoke-static {v7}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z move-result v6 if-eqz v6, :cond_4 move-object v6, p2 goto :goto_7 :cond_4 invoke-interface {v7}, Ljava/lang/CharSequence;->length()I move-result v6 const/4 v9, 0x0 :goto_3 const/4 v10, -0x1 if-ge v9, v6, :cond_6 invoke-interface {v7, v9}, Ljava/lang/CharSequence;->charAt(I)C move-result v11 invoke-static {v11}, Le/n/a/j/a;->isWhitespace(C)Z move-result v11 xor-int/2addr v11, v0 if-eqz v11, :cond_5 goto :goto_4 :cond_5 add-int/lit8 v9, v9, 0x1 goto :goto_3 :cond_6 const/4 v9, -0x1 :goto_4 if-ne v9, v10, :cond_7 goto :goto_5 :cond_7 const/4 v6, 0x4 invoke-static {v7, p1, v9, v4, v6}, Ly/a0/p;->startsWith$default(Ljava/lang/String;Ljava/lang/String;IZI)Z move-result v6 if-eqz v6, :cond_8 invoke-virtual {p1}, Ljava/lang/String;->length()I move-result v6 add-int/2addr v6, v9 invoke-virtual {v7, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String; move-result-object v6 const-string v9, "(this as java.lang.String).substring(startIndex)" invoke-static {v6, v9}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V goto :goto_6 :cond_8 :goto_5 move-object v6, p2 :goto_6 if-eqz v6, :cond_9 invoke-interface {p0, v6}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object; move-result-object v6 check-cast v6, Ljava/lang/String; if-eqz v6, :cond_9 goto :goto_7 :cond_9 move-object v6, v7 :goto_7 if-eqz v6, :cond_a invoke-interface {v5, v6}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z :cond_a move v6, v8 goto :goto_2 :cond_b invoke-static {}, Le/n/a/j/a;->throwIndexOverflow()V throw p2 :cond_c new-instance p0, Ljava/lang/StringBuilder; invoke-direct {p0, v3}, Ljava/lang/StringBuilder;->(I)V const/4 v10, -0x1 const/4 v12, 0x0 const-string v7, "\n" const-string v9, "" const-string v11, "..." move-object v6, p0 move-object v8, v9 invoke-static/range {v5 .. v12}, Ly/q/l;->joinTo(Ljava/lang/Iterable;Ljava/lang/Appendable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/Appendable; invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p0 const-string p1, "mapIndexedNotNull { inde\u2026\"\\n\")\n .toString()" invoke-static {p0, p1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V return-object p0 :cond_d new-instance p0, Ljava/lang/IllegalArgumentException; const-string p1, "marginPrefix must be non-blank string." invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 :cond_e const-string p0, "marginPrefix" invoke-static {p0}, Ly/u/b/j;->a(Ljava/lang/String;)V throw p2 :cond_f const-string p0, "$this$trimMargin" invoke-static {p0}, Ly/u/b/j;->a(Ljava/lang/String;)V throw p2 .end method