Fix the JavaScript function below. Return ONLY valid JavaScript module source, without markdown fences. Do not use tools or web search. Export paidTotal(orders). Only include rows whose status is "paid". Accept non-negative decimal money amounts as numbers or strings, with at most two decimals. Sum as integer cents. Return a numeric currency total. Reject invalid amounts in paid rows with TypeError (empty string, null, Infinity, NaN, negative amounts, >2 decimals, nonnumeric strings). Ignore invalid amounts in non-paid rows. An empty array returns 0. Throw TypeError for non-array input. All amounts and summed cents must remain within Number.MAX_SAFE_INTEGER; throw RangeError on overflow. Keep the implementation straightforward and include short comments. export function paidTotal(orders) { return orders.reduce((sum, order) => sum + order.amount, 0); }