package o; import com.google.zxing.NotFoundException; import com.google.zxing.ReaderException; import java.util.ArrayList; import java.util.Collection; import java.util.Map; /* loaded from: classes2.dex */ public final class jzR extends xue { private static final xue[] d = new xue[0]; private final xue[] b; public jzR(Map map) { Collection collection = map == null ? null : (Collection) map.get(CGg.POSSIBLE_FORMATS); boolean z = (map == null || map.get(CGg.ASSUME_CODE_39_CHECK_DIGIT) == null) ? false : true; ArrayList arrayList = new ArrayList(); if (collection != null) { if (collection.contains(PTS.EAN_13) || collection.contains(PTS.UPC_A) || collection.contains(PTS.EAN_8) || collection.contains(PTS.UPC_E)) { arrayList.add(new tnl(map)); } if (collection.contains(PTS.CODE_39)) { arrayList.add(new C16068krh(z)); } if (collection.contains(PTS.CODE_93)) { arrayList.add(new IiO()); } if (collection.contains(PTS.CODE_128)) { arrayList.add(new fQC()); } if (collection.contains(PTS.ITF)) { arrayList.add(new Bwv()); } if (collection.contains(PTS.CODABAR)) { arrayList.add(new C17084tlL()); } if (collection.contains(PTS.RSS_14)) { arrayList.add(new Ycl()); } if (collection.contains(PTS.RSS_EXPANDED)) { arrayList.add(new Qdn()); } } if (arrayList.isEmpty()) { arrayList.add(new tnl(map)); arrayList.add(new C16068krh()); arrayList.add(new C17084tlL()); arrayList.add(new IiO()); arrayList.add(new fQC()); arrayList.add(new Bwv()); arrayList.add(new Ycl()); arrayList.add(new Qdn()); } this.b = (xue[]) arrayList.toArray(d); } @Override // o.xue public final WFF d(int i, C17416wdP c17416wdP, Map map) throws NotFoundException { for (xue xueVar : this.b) { try { return xueVar.d(i, c17416wdP, map); } catch (ReaderException unused) { } } throw NotFoundException.b(); } @Override // o.xue, o.zIz public final void c() { for (xue xueVar : this.b) { xueVar.c(); } } }