package com.tencent.mm.plugin.story.model;

import a.f.a.a;
import a.f.b.j;
import a.f.b.k;
import a.k.m;
import a.l;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.g.b.a.aw;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.ArrayList;
import java.util.Iterator;
import org.xwalk.core.XWalkFeature;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "invoke"})
final class k$a extends k implements a<y> {
    final /* synthetic */ long rTd;
    final /* synthetic */ long rTe;
    final /* synthetic */ ArrayList rTf;

    k$a(long j, long j2, ArrayList arrayList) {
        this.rTd = j;
        this.rTe = j2;
        this.rTf = arrayList;
        super(0);
    }

    public final /* synthetic */ Object invoke() {
        k kVar;
        AppMethodBeat.i(109088);
        com.tencent.mm.ab.a aVar = new com.tencent.mm.ab.a("reportWaitPlayList");
        aw awVar = new aw();
        awVar.ch(this.rTd);
        awVar.ci(this.rTe);
        StringBuilder stringBuilder = new StringBuilder();
        StringBuilder stringBuilder2 = new StringBuilder();
        StringBuilder stringBuilder3 = new StringBuilder();
        Iterator it = this.rTf.iterator();
        int i = 1;
        while (it.hasNext()) {
            String str = (String) it.next();
            k kVar2 = k.rTc;
            j.o(str, "username");
            long j = k.aap(str).field_syncId;
            int length = String.valueOf(j).length();
            if (stringBuilder.length() + length < XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION) {
                stringBuilder.append(j).append("|");
            } else if (stringBuilder2.length() + length < XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION) {
                stringBuilder2.append(j).append("|");
            } else if (length + stringBuilder3.length() < XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION) {
                stringBuilder3.append(j).append("|");
            } else {
                awVar.fK(stringBuilder.substring(0, stringBuilder.length()).toString());
                awVar.fL(stringBuilder2.substring(0, stringBuilder2.length()).toString());
                awVar.fM(stringBuilder3.substring(0, stringBuilder3.length()).toString());
                awVar.cj((long) i);
                kVar = k.rTc;
                ab.i(k.cyi(), "split reportWaitPlayList " + this.rTd + ' ' + i + ' ' + awVar.FZ().length() + ' ' + awVar.FZ() + awVar.Ga().length() + ' ' + awVar.Ga() + awVar.Gb().length() + ' ' + awVar.Gb());
                awVar.ajK();
                awVar = new aw();
                awVar.ch(this.rTd);
                awVar.ci(this.rTe);
                length = i + 1;
                m.h(stringBuilder);
                m.h(stringBuilder2);
                m.h(stringBuilder3);
                i = length;
            }
        }
        awVar.fK(stringBuilder.substring(0, stringBuilder.length()).toString());
        awVar.fL(stringBuilder2.substring(0, stringBuilder2.length()).toString());
        awVar.fM(stringBuilder3.substring(0, stringBuilder3.length()).toString());
        awVar.cj((long) i);
        kVar = k.rTc;
        ab.i(k.cyi(), "final reportWaitPlayList " + this.rTd + ' ' + i + ' ' + awVar.FZ().length() + ' ' + awVar.FZ() + awVar.Ga().length() + ' ' + awVar.Ga() + awVar.Gb().length() + ' ' + awVar.Gb());
        awVar.ajK();
        aw awVar2 = new aw();
        aVar.SW();
        y yVar = y.AUy;
        AppMethodBeat.o(109088);
        return yVar;
    }
}
