Inverter and energy storage integrated machine