(A) if the person was released in connection with a charge of, or while awaiting sentence, surrender for service of sentence, or appeal or certiorari after conviction for
(i) an offense punishable by death, life imprisonment, or imprisonment for a term of 15 years or more, a fine under this title or imprisonment for not more than ten years, or both;
(ii) an offense punishable by imprisonment for a term of five years or more, a fine under this title or imprisonment for not more than five years, or both;
(iii) any other felony, a fine under this title or imprisonment for not more than two years, or both; or
(iv) a misdemeanor, a fine under this title or imprisonment for not more than one year, or both; and