Anatomy

A 48-year-old female piano player visited the outpatient clinic with numbness and tingling in her left hand. A diagnosis was made of nerve compression in the carpal tunnel, and the patient underwent an endoscopic nerve release. Two weeks postoperatively the patient complained of a profound weakness in the thumb, with loss of thumb opposition. The sensation to the hand, however, was unaffected. Which of the following nerves was injured during the operation?