Japan's wholesale inflation slows, import costs flatten on weak yen