Wei: auxiliary word. Yes: demonstrative pronoun, which refers to the prepositive object. "Only... Is..." is a form of ancient Chinese, which plays a role in emphasizing semantics. It refers to that in the case of heavy tasks and many difficulties, whether the goal can be achieved mainly depends on one's own strength