function createConsumptionTrendState() { return { consumptionTrendCache: new Map(), consumptionTrendWindowOffsets: new Map(), consumptionTrendSeriesFilters: new Map() }; }