@memberjunction/ng-dashboards 2.48.0 → 2.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +105 -2
- package/dist/AI/ai-dashboard.component.d.ts +2 -0
- package/dist/AI/ai-dashboard.component.d.ts.map +1 -1
- package/dist/AI/ai-dashboard.component.js +66 -43
- package/dist/AI/ai-dashboard.component.js.map +1 -1
- package/dist/AI/components/agents/agent-configuration.component.js +45 -58
- package/dist/AI/components/agents/agent-configuration.component.js.map +1 -1
- package/dist/AI/components/agents/agent-editor.component.d.ts +6 -1
- package/dist/AI/components/agents/agent-editor.component.d.ts.map +1 -1
- package/dist/AI/components/agents/agent-editor.component.js +368 -366
- package/dist/AI/components/agents/agent-editor.component.js.map +1 -1
- package/dist/AI/components/agents/agent-filter-panel.component.js +83 -85
- package/dist/AI/components/agents/agent-filter-panel.component.js.map +1 -1
- package/dist/AI/components/charts/performance-heatmap.component.d.ts +66 -0
- package/dist/AI/components/charts/performance-heatmap.component.d.ts.map +1 -0
- package/dist/AI/components/charts/performance-heatmap.component.js +428 -0
- package/dist/AI/components/charts/performance-heatmap.component.js.map +1 -0
- package/dist/AI/components/charts/time-series-chart.component.d.ts +66 -0
- package/dist/AI/components/charts/time-series-chart.component.d.ts.map +1 -0
- package/dist/AI/components/charts/time-series-chart.component.js +547 -0
- package/dist/AI/components/charts/time-series-chart.component.js.map +1 -0
- package/dist/AI/components/execution-monitoring.component.d.ts +157 -5
- package/dist/AI/components/execution-monitoring.component.d.ts.map +1 -1
- package/dist/AI/components/execution-monitoring.component.js +2032 -20
- package/dist/AI/components/execution-monitoring.component.js.map +1 -1
- package/dist/AI/components/models/model-management.component.js +211 -237
- package/dist/AI/components/models/model-management.component.js.map +1 -1
- package/dist/AI/components/prompts/model-prompt-priority-matrix.component.js +208 -226
- package/dist/AI/components/prompts/model-prompt-priority-matrix.component.js.map +1 -1
- package/dist/AI/components/prompts/prompt-filter-panel.component.js +97 -99
- package/dist/AI/components/prompts/prompt-filter-panel.component.js.map +1 -1
- package/dist/AI/components/prompts/prompt-management.component.js +381 -424
- package/dist/AI/components/prompts/prompt-management.component.js.map +1 -1
- package/dist/AI/components/prompts/prompt-version-control.component.js +173 -191
- package/dist/AI/components/prompts/prompt-version-control.component.js.map +1 -1
- package/dist/AI/components/system/system-config-filter-panel.component.js +85 -87
- package/dist/AI/components/system/system-config-filter-panel.component.js.map +1 -1
- package/dist/AI/components/system/system-configuration.component.js +86 -99
- package/dist/AI/components/system/system-configuration.component.js.map +1 -1
- package/dist/AI/components/widgets/kpi-card.component.d.ts +25 -0
- package/dist/AI/components/widgets/kpi-card.component.d.ts.map +1 -0
- package/dist/AI/components/widgets/kpi-card.component.js +163 -0
- package/dist/AI/components/widgets/kpi-card.component.js.map +1 -0
- package/dist/AI/components/widgets/live-execution-widget.component.d.ts +25 -0
- package/dist/AI/components/widgets/live-execution-widget.component.d.ts.map +1 -0
- package/dist/AI/components/widgets/live-execution-widget.component.js +298 -0
- package/dist/AI/components/widgets/live-execution-widget.component.js.map +1 -0
- package/dist/AI/index.d.ts +7 -0
- package/dist/AI/index.d.ts.map +1 -0
- package/dist/AI/index.js +9 -0
- package/dist/AI/index.js.map +1 -0
- package/dist/AI/services/ai-instrumentation.service.d.ts +109 -0
- package/dist/AI/services/ai-instrumentation.service.d.ts.map +1 -0
- package/dist/AI/services/ai-instrumentation.service.js +490 -0
- package/dist/AI/services/ai-instrumentation.service.js.map +1 -0
- package/dist/Actions/actions-management-dashboard.component.js +40 -41
- package/dist/Actions/actions-management-dashboard.component.js.map +1 -1
- package/dist/Actions/components/actions-list-view.component.js +117 -134
- package/dist/Actions/components/actions-list-view.component.js.map +1 -1
- package/dist/Actions/components/actions-overview.component.js +274 -296
- package/dist/Actions/components/actions-overview.component.js.map +1 -1
- package/dist/Actions/components/categories-list-view.component.js +12 -14
- package/dist/Actions/components/categories-list-view.component.js.map +1 -1
- package/dist/Actions/components/code-management.component.js +12 -14
- package/dist/Actions/components/code-management.component.js.map +1 -1
- package/dist/Actions/components/entity-integration.component.js +12 -14
- package/dist/Actions/components/entity-integration.component.js.map +1 -1
- package/dist/Actions/components/execution-monitoring.component.js +238 -256
- package/dist/Actions/components/execution-monitoring.component.js.map +1 -1
- package/dist/Actions/components/executions-list-view.component.js +12 -14
- package/dist/Actions/components/executions-list-view.component.js.map +1 -1
- package/dist/Actions/components/scheduled-actions.component.js +12 -14
- package/dist/Actions/components/scheduled-actions.component.js.map +1 -1
- package/dist/Actions/components/security-permissions.component.js +12 -14
- package/dist/Actions/components/security-permissions.component.js.map +1 -1
- package/dist/EntityAdmin/components/entity-details.component.js +105 -107
- package/dist/EntityAdmin/components/entity-details.component.js.map +1 -1
- package/dist/EntityAdmin/components/entity-filter-panel.component.js +100 -102
- package/dist/EntityAdmin/components/entity-filter-panel.component.js.map +1 -1
- package/dist/EntityAdmin/components/erd-composite.component.js +84 -100
- package/dist/EntityAdmin/components/erd-composite.component.js.map +1 -1
- package/dist/EntityAdmin/components/erd-diagram.component.js +50 -50
- package/dist/EntityAdmin/components/erd-diagram.component.js.map +1 -1
- package/dist/EntityAdmin/entity-admin-dashboard.component.js +45 -49
- package/dist/EntityAdmin/entity-admin-dashboard.component.js.map +1 -1
- package/dist/generic/base-dashboard.js +28 -40
- package/dist/generic/base-dashboard.js.map +1 -1
- package/dist/module.d.ts +16 -12
- package/dist/module.d.ts.map +1 -1
- package/dist/module.js +36 -15
- package/dist/module.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,547 @@
|
|
|
1
|
+
import { Component, Input, ViewChild, Output, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as d3 from 'd3';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
const _c0 = ["chartSvg"];
|
|
5
|
+
const _c1 = ["tooltip"];
|
|
6
|
+
function TimeSeriesChartComponent_Conditional_1_Conditional_3_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
7
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
8
|
+
i0.ɵɵelementStart(0, "div", 9);
|
|
9
|
+
i0.ɵɵlistener("click", function TimeSeriesChartComponent_Conditional_1_Conditional_3_For_2_Template_div_click_0_listener() { const metric_r2 = i0.ɵɵrestoreView(_r1).$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.toggleMetric(metric_r2)); });
|
|
10
|
+
i0.ɵɵelement(1, "div", 10);
|
|
11
|
+
i0.ɵɵelementStart(2, "span", 11);
|
|
12
|
+
i0.ɵɵtext(3);
|
|
13
|
+
i0.ɵɵelementEnd()();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const metric_r2 = ctx.$implicit;
|
|
16
|
+
const ctx_r2 = i0.ɵɵnextContext(3);
|
|
17
|
+
i0.ɵɵclassProp("legend-item--disabled", !ctx_r2.isMetricVisible(metric_r2));
|
|
18
|
+
i0.ɵɵadvance();
|
|
19
|
+
i0.ɵɵstyleProp("background-color", ctx_r2.getMetricColor(metric_r2));
|
|
20
|
+
i0.ɵɵadvance(2);
|
|
21
|
+
i0.ɵɵtextInterpolate(ctx_r2.getMetricLabel(metric_r2));
|
|
22
|
+
} }
|
|
23
|
+
function TimeSeriesChartComponent_Conditional_1_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
+
i0.ɵɵelementStart(0, "div", 7);
|
|
25
|
+
i0.ɵɵrepeaterCreate(1, TimeSeriesChartComponent_Conditional_1_Conditional_3_For_2_Template, 4, 5, "div", 8, i0.ɵɵrepeaterTrackByIdentity);
|
|
26
|
+
i0.ɵɵelementEnd();
|
|
27
|
+
} if (rf & 2) {
|
|
28
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
29
|
+
i0.ɵɵadvance();
|
|
30
|
+
i0.ɵɵrepeater(ctx_r2.visibleMetrics);
|
|
31
|
+
} }
|
|
32
|
+
function TimeSeriesChartComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
+
i0.ɵɵelementStart(0, "div", 3)(1, "h4", 6);
|
|
34
|
+
i0.ɵɵtext(2);
|
|
35
|
+
i0.ɵɵelementEnd();
|
|
36
|
+
i0.ɵɵtemplate(3, TimeSeriesChartComponent_Conditional_1_Conditional_3_Template, 3, 0, "div", 7);
|
|
37
|
+
i0.ɵɵelementEnd();
|
|
38
|
+
} if (rf & 2) {
|
|
39
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
40
|
+
i0.ɵɵadvance(2);
|
|
41
|
+
i0.ɵɵtextInterpolate(ctx_r2.title);
|
|
42
|
+
i0.ɵɵadvance();
|
|
43
|
+
i0.ɵɵconditional(ctx_r2.showLegend ? 3 : -1);
|
|
44
|
+
} }
|
|
45
|
+
export class TimeSeriesChartComponent {
|
|
46
|
+
data = [];
|
|
47
|
+
title;
|
|
48
|
+
config = {};
|
|
49
|
+
showLegend = true;
|
|
50
|
+
showControls = true;
|
|
51
|
+
dataPointClick = new EventEmitter();
|
|
52
|
+
timeRangeChange = new EventEmitter();
|
|
53
|
+
chartSvg;
|
|
54
|
+
tooltip;
|
|
55
|
+
svg;
|
|
56
|
+
width = 0;
|
|
57
|
+
height = 0;
|
|
58
|
+
margin = { top: 10, right: 70, bottom: 50, left: 70 }; // Increased bottom margin for x-axis labels
|
|
59
|
+
// Chart configuration
|
|
60
|
+
defaultColors = ['#2196f3', '#4caf50', '#ff9800', '#f44336', '#9c27b0'];
|
|
61
|
+
// Metrics configuration
|
|
62
|
+
visibleMetrics = ['executions', 'cost', 'tokens', 'avgTime', 'errors'];
|
|
63
|
+
hiddenMetrics = new Set();
|
|
64
|
+
ngOnInit() {
|
|
65
|
+
this.applyConfig();
|
|
66
|
+
}
|
|
67
|
+
ngAfterViewInit() {
|
|
68
|
+
this.initChart();
|
|
69
|
+
this.updateChart();
|
|
70
|
+
}
|
|
71
|
+
ngOnChanges(changes) {
|
|
72
|
+
if (changes['data'] && !changes['data'].firstChange) {
|
|
73
|
+
this.updateChart();
|
|
74
|
+
}
|
|
75
|
+
if (changes['config'] && !changes['config'].firstChange) {
|
|
76
|
+
this.applyConfig();
|
|
77
|
+
this.updateChart();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
ngOnDestroy() {
|
|
81
|
+
// Cleanup D3 event listeners
|
|
82
|
+
d3.select(window).on('resize.timeseries', null);
|
|
83
|
+
}
|
|
84
|
+
applyConfig() {
|
|
85
|
+
const config = this.config;
|
|
86
|
+
this.margin = { ...this.margin, ...config.margin };
|
|
87
|
+
}
|
|
88
|
+
initChart() {
|
|
89
|
+
this.svg = d3.select(this.chartSvg.nativeElement);
|
|
90
|
+
// Set up responsive behavior
|
|
91
|
+
d3.select(window).on('resize.timeseries', () => this.updateChart());
|
|
92
|
+
}
|
|
93
|
+
updateChart() {
|
|
94
|
+
if (!this.data || this.data.length === 0) {
|
|
95
|
+
this.svg.selectAll('*').remove();
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
this.calculateDimensions();
|
|
99
|
+
this.svg.selectAll('*').remove();
|
|
100
|
+
this.drawChart();
|
|
101
|
+
}
|
|
102
|
+
calculateDimensions() {
|
|
103
|
+
const container = this.chartSvg.nativeElement.parentElement;
|
|
104
|
+
const containerWidth = container.clientWidth;
|
|
105
|
+
const containerHeight = container.clientHeight;
|
|
106
|
+
// Use config dimensions or fallback to container dimensions
|
|
107
|
+
this.width = (this.config.width || containerWidth) - this.margin.left - this.margin.right;
|
|
108
|
+
this.height = (this.config.height || Math.max(containerHeight, 200)) - this.margin.top - this.margin.bottom;
|
|
109
|
+
// Ensure minimum dimensions for usability
|
|
110
|
+
this.width = Math.max(this.width, 200);
|
|
111
|
+
this.height = Math.max(this.height, 150);
|
|
112
|
+
this.svg
|
|
113
|
+
.attr('width', this.width + this.margin.left + this.margin.right)
|
|
114
|
+
.attr('height', this.height + this.margin.top + this.margin.bottom);
|
|
115
|
+
}
|
|
116
|
+
drawChart() {
|
|
117
|
+
const g = this.svg.append('g')
|
|
118
|
+
.attr('transform', `translate(${this.margin.left},${this.margin.top})`);
|
|
119
|
+
// Create scales
|
|
120
|
+
const xScale = d3.scaleTime()
|
|
121
|
+
.domain(d3.extent(this.data, d => d.timestamp))
|
|
122
|
+
.range([0, this.width]);
|
|
123
|
+
// Create separate scales for different metrics
|
|
124
|
+
const scales = this.createMetricScales();
|
|
125
|
+
// Draw grid
|
|
126
|
+
if (this.config.showGrid !== false) {
|
|
127
|
+
this.drawGrid(g, xScale, scales);
|
|
128
|
+
}
|
|
129
|
+
// Draw axes
|
|
130
|
+
this.drawAxes(g, xScale, scales);
|
|
131
|
+
// Draw data lines and areas
|
|
132
|
+
this.drawMetrics(g, xScale, scales);
|
|
133
|
+
// Draw interactive elements
|
|
134
|
+
this.drawInteractiveElements(g, xScale, scales);
|
|
135
|
+
}
|
|
136
|
+
createMetricScales() {
|
|
137
|
+
const scales = {};
|
|
138
|
+
if (this.config.useDualAxis !== false) {
|
|
139
|
+
// Dual axis mode: Left axis (cost, avgTime), Right axis (executions, tokens, errors)
|
|
140
|
+
const leftAxisMetrics = ['cost', 'avgTime'];
|
|
141
|
+
const rightAxisMetrics = ['executions', 'tokens', 'errors'];
|
|
142
|
+
// Create left axis scale (cost and time)
|
|
143
|
+
const leftValues = leftAxisMetrics.flatMap(metric => this.data.map(d => {
|
|
144
|
+
const value = this.getMetricValue(d, metric);
|
|
145
|
+
// Normalize avgTime to seconds for better scale comparison with cost
|
|
146
|
+
return metric === 'avgTime' ? (value || 0) / 1000 : (value || 0);
|
|
147
|
+
}).filter((v) => v != null));
|
|
148
|
+
if (leftValues.length > 0) {
|
|
149
|
+
const maxLeftValue = Math.max(...leftValues);
|
|
150
|
+
const leftScale = d3.scaleLinear()
|
|
151
|
+
.domain([0, maxLeftValue])
|
|
152
|
+
.range([this.height, 0])
|
|
153
|
+
.nice();
|
|
154
|
+
leftAxisMetrics.forEach(metric => scales[metric] = leftScale);
|
|
155
|
+
}
|
|
156
|
+
// Create right axis scale (count-based metrics)
|
|
157
|
+
const rightValues = rightAxisMetrics.flatMap(metric => this.data.map(d => this.getMetricValue(d, metric)).filter((v) => v != null));
|
|
158
|
+
if (rightValues.length > 0) {
|
|
159
|
+
const maxRightValue = Math.max(...rightValues);
|
|
160
|
+
const rightScale = d3.scaleLinear()
|
|
161
|
+
.domain([0, maxRightValue])
|
|
162
|
+
.range([this.height, 0])
|
|
163
|
+
.nice();
|
|
164
|
+
rightAxisMetrics.forEach(metric => scales[metric] = rightScale);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
// Single axis mode (original behavior)
|
|
169
|
+
const metricGroups = {
|
|
170
|
+
count: ['executions', 'errors'],
|
|
171
|
+
cost: ['cost'],
|
|
172
|
+
tokens: ['tokens'],
|
|
173
|
+
time: ['avgTime']
|
|
174
|
+
};
|
|
175
|
+
Object.entries(metricGroups).forEach(([groupName, metrics]) => {
|
|
176
|
+
const allValues = metrics.flatMap(metric => this.data.map(d => this.getMetricValue(d, metric)).filter((v) => v != null));
|
|
177
|
+
if (allValues.length > 0) {
|
|
178
|
+
const maxValue = Math.max(...allValues);
|
|
179
|
+
const scale = d3.scaleLinear()
|
|
180
|
+
.domain([0, maxValue])
|
|
181
|
+
.range([this.height, 0])
|
|
182
|
+
.nice();
|
|
183
|
+
metrics.forEach(metric => scales[metric] = scale);
|
|
184
|
+
}
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
return scales;
|
|
188
|
+
}
|
|
189
|
+
drawGrid(g, xScale, scales) {
|
|
190
|
+
// Vertical grid lines
|
|
191
|
+
g.selectAll('.grid-line-x')
|
|
192
|
+
.data(xScale.ticks(6))
|
|
193
|
+
.enter().append('line')
|
|
194
|
+
.attr('class', 'grid-line grid-line-x')
|
|
195
|
+
.attr('x1', (d) => xScale(d))
|
|
196
|
+
.attr('x2', (d) => xScale(d))
|
|
197
|
+
.attr('y1', 0)
|
|
198
|
+
.attr('y2', this.height);
|
|
199
|
+
// Horizontal grid lines (use first scale)
|
|
200
|
+
const firstScale = Object.values(scales)[0];
|
|
201
|
+
if (firstScale) {
|
|
202
|
+
g.selectAll('.grid-line-y')
|
|
203
|
+
.data(firstScale.ticks(5))
|
|
204
|
+
.enter().append('line')
|
|
205
|
+
.attr('class', 'grid-line grid-line-y')
|
|
206
|
+
.attr('x1', 0)
|
|
207
|
+
.attr('x2', this.width)
|
|
208
|
+
.attr('y1', (d) => firstScale(d))
|
|
209
|
+
.attr('y2', (d) => firstScale(d));
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
drawAxes(g, xScale, scales) {
|
|
213
|
+
// X axis
|
|
214
|
+
g.append('g')
|
|
215
|
+
.attr('class', 'axis axis-x')
|
|
216
|
+
.attr('transform', `translate(0,${this.height})`)
|
|
217
|
+
.call(d3.axisBottom(xScale)
|
|
218
|
+
.ticks(6)
|
|
219
|
+
.tickFormat(d3.timeFormat('%H:%M')));
|
|
220
|
+
if (this.config.useDualAxis !== false) {
|
|
221
|
+
// Dual Y-axis mode
|
|
222
|
+
const leftAxisMetrics = ['cost', 'avgTime'];
|
|
223
|
+
const rightAxisMetrics = ['executions', 'tokens', 'errors'];
|
|
224
|
+
// Left Y axis (cost, time)
|
|
225
|
+
const leftScale = scales[leftAxisMetrics[0]];
|
|
226
|
+
if (leftScale) {
|
|
227
|
+
g.append('g')
|
|
228
|
+
.attr('class', 'axis axis-y axis-y-left')
|
|
229
|
+
.call(d3.axisLeft(leftScale)
|
|
230
|
+
.ticks(5)
|
|
231
|
+
.tickFormat((d) => {
|
|
232
|
+
const value = d;
|
|
233
|
+
// Format based on value range - if > 1, likely cost, else time in seconds
|
|
234
|
+
return value > 1 ? `$${value.toFixed(2)}` : `${value.toFixed(1)}s`;
|
|
235
|
+
}));
|
|
236
|
+
// Left axis label
|
|
237
|
+
g.append('text')
|
|
238
|
+
.attr('class', 'axis-label axis-label-left')
|
|
239
|
+
.attr('transform', 'rotate(-90)')
|
|
240
|
+
.attr('y', 0 - this.margin.left + 20)
|
|
241
|
+
.attr('x', 0 - (this.height / 2))
|
|
242
|
+
.style('text-anchor', 'middle')
|
|
243
|
+
.style('font-size', '12px')
|
|
244
|
+
.style('fill', '#666')
|
|
245
|
+
.text('Cost ($) / Time (s)');
|
|
246
|
+
}
|
|
247
|
+
// Right Y axis (counts)
|
|
248
|
+
const rightScale = scales[rightAxisMetrics[0]];
|
|
249
|
+
if (rightScale) {
|
|
250
|
+
g.append('g')
|
|
251
|
+
.attr('class', 'axis axis-y axis-y-right')
|
|
252
|
+
.attr('transform', `translate(${this.width},0)`)
|
|
253
|
+
.call(d3.axisRight(rightScale)
|
|
254
|
+
.ticks(5)
|
|
255
|
+
.tickFormat((d) => {
|
|
256
|
+
const value = d;
|
|
257
|
+
// Format large numbers with K/M suffixes
|
|
258
|
+
if (value >= 1000000)
|
|
259
|
+
return `${(value / 1000000).toFixed(1)}M`;
|
|
260
|
+
if (value >= 1000)
|
|
261
|
+
return `${(value / 1000).toFixed(1)}K`;
|
|
262
|
+
return value.toString();
|
|
263
|
+
}));
|
|
264
|
+
// Right axis label
|
|
265
|
+
g.append('text')
|
|
266
|
+
.attr('class', 'axis-label axis-label-right')
|
|
267
|
+
.attr('transform', 'rotate(90)')
|
|
268
|
+
.attr('y', 0 - this.width - this.margin.right + 20)
|
|
269
|
+
.attr('x', this.height / 2)
|
|
270
|
+
.style('text-anchor', 'middle')
|
|
271
|
+
.style('font-size', '12px')
|
|
272
|
+
.style('fill', '#666')
|
|
273
|
+
.text('Count (Executions / Tokens)');
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
else {
|
|
277
|
+
// Single Y axis (original behavior)
|
|
278
|
+
const firstScale = Object.values(scales)[0];
|
|
279
|
+
if (firstScale) {
|
|
280
|
+
g.append('g')
|
|
281
|
+
.attr('class', 'axis axis-y')
|
|
282
|
+
.call(d3.axisLeft(firstScale).ticks(5));
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
drawMetrics(g, xScale, scales) {
|
|
287
|
+
// Create a group for lines and areas
|
|
288
|
+
const linesGroup = g.append('g').attr('class', 'lines-group');
|
|
289
|
+
// First draw all lines and areas
|
|
290
|
+
this.visibleMetrics.forEach((metric) => {
|
|
291
|
+
if (this.hiddenMetrics.has(metric) || !scales[metric])
|
|
292
|
+
return;
|
|
293
|
+
const color = this.getMetricColor(metric);
|
|
294
|
+
const scale = scales[metric];
|
|
295
|
+
// Create line generator with proper value transformation
|
|
296
|
+
const line = d3.line()
|
|
297
|
+
.x(d => xScale(d.timestamp))
|
|
298
|
+
.y(d => {
|
|
299
|
+
const value = this.getMetricValue(d, metric) || 0;
|
|
300
|
+
// Normalize avgTime to seconds if using dual axis
|
|
301
|
+
const transformedValue = (this.config.useDualAxis !== false && metric === 'avgTime')
|
|
302
|
+
? value / 1000 : value;
|
|
303
|
+
return scale(transformedValue);
|
|
304
|
+
})
|
|
305
|
+
.curve(d3.curveMonotoneX);
|
|
306
|
+
// Create area generator with proper value transformation
|
|
307
|
+
const area = d3.area()
|
|
308
|
+
.x(d => xScale(d.timestamp))
|
|
309
|
+
.y0(this.height)
|
|
310
|
+
.y1(d => {
|
|
311
|
+
const value = this.getMetricValue(d, metric) || 0;
|
|
312
|
+
// Normalize avgTime to seconds if using dual axis
|
|
313
|
+
const transformedValue = (this.config.useDualAxis !== false && metric === 'avgTime')
|
|
314
|
+
? value / 1000 : value;
|
|
315
|
+
return scale(transformedValue);
|
|
316
|
+
})
|
|
317
|
+
.curve(d3.curveMonotoneX);
|
|
318
|
+
// Draw area (optional)
|
|
319
|
+
if (metric === 'executions' || metric === 'cost') {
|
|
320
|
+
linesGroup.append('path')
|
|
321
|
+
.datum(this.data)
|
|
322
|
+
.attr('class', `chart-area chart-area--${metric}`)
|
|
323
|
+
.attr('d', area)
|
|
324
|
+
.attr('fill', color);
|
|
325
|
+
}
|
|
326
|
+
// Draw line
|
|
327
|
+
linesGroup.append('path')
|
|
328
|
+
.datum(this.data)
|
|
329
|
+
.attr('class', `chart-line chart-line--${metric}`)
|
|
330
|
+
.attr('d', line)
|
|
331
|
+
.attr('stroke', color);
|
|
332
|
+
});
|
|
333
|
+
// Then create dots group on top of everything
|
|
334
|
+
const dotsGroup = g.append('g').attr('class', 'dots-group').style('pointer-events', 'all');
|
|
335
|
+
// Draw all dots in a separate pass so they're all on top
|
|
336
|
+
this.visibleMetrics.forEach((metric) => {
|
|
337
|
+
if (this.hiddenMetrics.has(metric) || !scales[metric])
|
|
338
|
+
return;
|
|
339
|
+
const color = this.getMetricColor(metric);
|
|
340
|
+
const scale = scales[metric];
|
|
341
|
+
// Draw dots with click events - only for non-zero values
|
|
342
|
+
const dotsData = this.data.filter(d => {
|
|
343
|
+
const value = this.getMetricValue(d, metric);
|
|
344
|
+
return value != null && value > 0;
|
|
345
|
+
});
|
|
346
|
+
const dots = dotsGroup.selectAll(`.chart-dot--${metric}`)
|
|
347
|
+
.data(dotsData)
|
|
348
|
+
.enter().append('circle')
|
|
349
|
+
.attr('class', `chart-dot chart-dot--${metric}`)
|
|
350
|
+
.attr('cx', (d) => xScale(d.timestamp))
|
|
351
|
+
.attr('cy', (d) => {
|
|
352
|
+
const value = this.getMetricValue(d, metric) || 0;
|
|
353
|
+
// Normalize avgTime to seconds if using dual axis
|
|
354
|
+
const transformedValue = (this.config.useDualAxis !== false && metric === 'avgTime')
|
|
355
|
+
? value / 1000 : value;
|
|
356
|
+
return scale(transformedValue);
|
|
357
|
+
})
|
|
358
|
+
.attr('r', 4) // Slightly larger for easier clicking
|
|
359
|
+
.attr('stroke', color)
|
|
360
|
+
.attr('stroke-width', 2)
|
|
361
|
+
.attr('fill', 'white')
|
|
362
|
+
.style('cursor', 'pointer')
|
|
363
|
+
.style('pointer-events', 'all') // Ensure clicks are captured
|
|
364
|
+
.style('z-index', 1000) // Ensure dots are on top
|
|
365
|
+
.attr('data-metric', metric) // Add data attribute for debugging
|
|
366
|
+
.on('mouseenter', (event, d) => {
|
|
367
|
+
// Bring to front on hover
|
|
368
|
+
const dot = d3.select(event.currentTarget);
|
|
369
|
+
dot.raise();
|
|
370
|
+
dot.attr('r', 6);
|
|
371
|
+
// Show tooltip
|
|
372
|
+
if (this.config.showTooltip !== false) {
|
|
373
|
+
this.showTooltip(event, d);
|
|
374
|
+
}
|
|
375
|
+
})
|
|
376
|
+
.on('mouseleave', (event, d) => {
|
|
377
|
+
const dot = d3.select(event.currentTarget);
|
|
378
|
+
dot.attr('r', 4);
|
|
379
|
+
// Hide tooltip
|
|
380
|
+
if (this.config.showTooltip !== false) {
|
|
381
|
+
this.hideTooltip();
|
|
382
|
+
}
|
|
383
|
+
})
|
|
384
|
+
.on('click', (event, d) => {
|
|
385
|
+
event.stopPropagation();
|
|
386
|
+
event.preventDefault();
|
|
387
|
+
// Only emit if there's actual data
|
|
388
|
+
const value = this.getMetricValue(d, metric);
|
|
389
|
+
if (value != null && value > 0) {
|
|
390
|
+
this.dataPointClick.emit({ data: d, metric, event });
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
}
|
|
395
|
+
drawInteractiveElements(g, xScale, scales) {
|
|
396
|
+
if (this.config.showTooltip === false)
|
|
397
|
+
return;
|
|
398
|
+
// Note: We don't need an overlay for tooltips as the dots themselves handle interactions
|
|
399
|
+
// The overlay was preventing click events on dots
|
|
400
|
+
}
|
|
401
|
+
findClosestDataPoint(targetDate) {
|
|
402
|
+
if (!this.data.length)
|
|
403
|
+
return null;
|
|
404
|
+
return this.data.reduce((closest, current) => {
|
|
405
|
+
const currentDiff = Math.abs(current.timestamp.getTime() - targetDate.getTime());
|
|
406
|
+
const closestDiff = Math.abs(closest.timestamp.getTime() - targetDate.getTime());
|
|
407
|
+
return currentDiff < closestDiff ? current : closest;
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
showTooltip(event, data) {
|
|
411
|
+
const tooltip = d3.select(this.tooltip.nativeElement);
|
|
412
|
+
const content = `
|
|
413
|
+
<div><strong>${d3.timeFormat('%H:%M')(data.timestamp)}</strong></div>
|
|
414
|
+
<div>Executions: ${data.executions.toLocaleString()}</div>
|
|
415
|
+
<div>Cost: $${data.cost.toFixed(4)}</div>
|
|
416
|
+
<div>Tokens: ${data.tokens.toLocaleString()}</div>
|
|
417
|
+
<div>Avg Time: ${(data.avgTime / 1000).toFixed(1)}s</div>
|
|
418
|
+
<div>Errors: ${data.errors}</div>
|
|
419
|
+
<div style="margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,0.3); font-size: 11px; color: rgba(255,255,255,0.8);">
|
|
420
|
+
Click data points to drill down
|
|
421
|
+
</div>
|
|
422
|
+
`;
|
|
423
|
+
tooltip
|
|
424
|
+
.style('display', 'block')
|
|
425
|
+
.html(content)
|
|
426
|
+
.style('left', (event.offsetX + 10) + 'px')
|
|
427
|
+
.style('top', (event.offsetY - 10) + 'px');
|
|
428
|
+
}
|
|
429
|
+
hideTooltip() {
|
|
430
|
+
d3.select(this.tooltip.nativeElement)
|
|
431
|
+
.style('display', 'none');
|
|
432
|
+
}
|
|
433
|
+
getMetricValue(data, metric) {
|
|
434
|
+
switch (metric) {
|
|
435
|
+
case 'executions': return data.executions;
|
|
436
|
+
case 'cost': return data.cost;
|
|
437
|
+
case 'tokens': return data.tokens;
|
|
438
|
+
case 'avgTime': return data.avgTime;
|
|
439
|
+
case 'errors': return data.errors;
|
|
440
|
+
default: return null;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
getMetricColor(metric) {
|
|
444
|
+
const colors = this.config.colors || this.defaultColors;
|
|
445
|
+
const index = this.visibleMetrics.indexOf(metric);
|
|
446
|
+
return colors[index % colors.length];
|
|
447
|
+
}
|
|
448
|
+
getMetricLabel(metric) {
|
|
449
|
+
const labels = {
|
|
450
|
+
executions: 'Executions',
|
|
451
|
+
cost: 'Cost ($)',
|
|
452
|
+
tokens: 'Tokens',
|
|
453
|
+
avgTime: 'Avg Time (ms)',
|
|
454
|
+
errors: 'Errors'
|
|
455
|
+
};
|
|
456
|
+
return labels[metric] || metric;
|
|
457
|
+
}
|
|
458
|
+
isMetricVisible(metric) {
|
|
459
|
+
return !this.hiddenMetrics.has(metric);
|
|
460
|
+
}
|
|
461
|
+
toggleMetric(metric) {
|
|
462
|
+
if (this.hiddenMetrics.has(metric)) {
|
|
463
|
+
this.hiddenMetrics.delete(metric);
|
|
464
|
+
}
|
|
465
|
+
else {
|
|
466
|
+
this.hiddenMetrics.add(metric);
|
|
467
|
+
}
|
|
468
|
+
this.updateChart();
|
|
469
|
+
}
|
|
470
|
+
static ɵfac = function TimeSeriesChartComponent_Factory(t) { return new (t || TimeSeriesChartComponent)(); };
|
|
471
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimeSeriesChartComponent, selectors: [["app-time-series-chart"]], viewQuery: function TimeSeriesChartComponent_Query(rf, ctx) { if (rf & 1) {
|
|
472
|
+
i0.ɵɵviewQuery(_c0, 7);
|
|
473
|
+
i0.ɵɵviewQuery(_c1, 7);
|
|
474
|
+
} if (rf & 2) {
|
|
475
|
+
let _t;
|
|
476
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.chartSvg = _t.first);
|
|
477
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.tooltip = _t.first);
|
|
478
|
+
} }, inputs: { data: "data", title: "title", config: "config", showLegend: "showLegend", showControls: "showControls" }, outputs: { dataPointClick: "dataPointClick", timeRangeChange: "timeRangeChange" }, features: [i0.ɵɵNgOnChangesFeature], decls: 7, vars: 1, consts: [["chartSvg", ""], ["tooltip", ""], [1, "time-series-chart"], [1, "chart-header"], [1, "chart-container"], [1, "chart-tooltip", 2, "display", "none"], [1, "chart-title"], [1, "chart-legend"], [1, "legend-item", 3, "legend-item--disabled"], [1, "legend-item", 3, "click"], [1, "legend-color"], [1, "legend-label"]], template: function TimeSeriesChartComponent_Template(rf, ctx) { if (rf & 1) {
|
|
479
|
+
i0.ɵɵelementStart(0, "div", 2);
|
|
480
|
+
i0.ɵɵtemplate(1, TimeSeriesChartComponent_Conditional_1_Template, 4, 2, "div", 3);
|
|
481
|
+
i0.ɵɵelementStart(2, "div", 4);
|
|
482
|
+
i0.ɵɵnamespaceSVG();
|
|
483
|
+
i0.ɵɵelement(3, "svg", null, 0);
|
|
484
|
+
i0.ɵɵnamespaceHTML();
|
|
485
|
+
i0.ɵɵelement(5, "div", 5, 1);
|
|
486
|
+
i0.ɵɵelementEnd()();
|
|
487
|
+
} if (rf & 2) {
|
|
488
|
+
i0.ɵɵadvance();
|
|
489
|
+
i0.ɵɵconditional(ctx.title ? 1 : -1);
|
|
490
|
+
} }, styles: [".time-series-chart[_ngcontent-%COMP%] {\n background: white;\n border-radius: 8px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n padding: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden; \n\n }\n\n .chart-header[_ngcontent-%COMP%] {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 8px;\n flex-wrap: wrap;\n gap: 12px;\n flex-shrink: 0; \n\n }\n\n .chart-title[_ngcontent-%COMP%] {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: #333;\n }\n\n .chart-legend[_ngcontent-%COMP%] {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n }\n\n .legend-item[_ngcontent-%COMP%] {\n display: flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n transition: opacity 0.2s ease;\n font-size: 11px;\n }\n\n .legend-item--disabled[_ngcontent-%COMP%] {\n opacity: 0.4;\n }\n\n .legend-color[_ngcontent-%COMP%] {\n width: 12px;\n height: 12px;\n border-radius: 2px;\n }\n\n .legend-label[_ngcontent-%COMP%] {\n color: #666;\n font-weight: 500;\n }\n\n .chart-container[_ngcontent-%COMP%] {\n flex: 1;\n position: relative;\n overflow: hidden;\n min-height: 0; \n\n }\n\n .chart-container[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] {\n width: 100%;\n height: 100%;\n }\n\n .chart-tooltip[_ngcontent-%COMP%] {\n position: absolute;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 8px 12px;\n border-radius: 4px;\n font-size: 12px;\n pointer-events: none;\n z-index: 1000;\n max-width: 200px;\n }\n\n\n \n\n [_nghost-%COMP%] .chart-line {\n fill: none;\n stroke-width: 2;\n }\n\n [_nghost-%COMP%] .chart-area {\n fill-opacity: 0.1;\n }\n\n [_nghost-%COMP%] .chart-dot {\n transition: r 0.1s ease;\n }\n\n [_nghost-%COMP%] .chart-dot:hover {\n filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));\n }\n\n [_nghost-%COMP%] .grid-line {\n stroke: #f0f0f0;\n stroke-width: 1;\n }\n\n [_nghost-%COMP%] .axis {\n font-size: 11px;\n color: #666;\n }\n\n [_nghost-%COMP%] .axis path {\n stroke: #ddd;\n }\n\n [_nghost-%COMP%] .axis .tick line {\n stroke: #ddd;\n }\n\n [_nghost-%COMP%] .axis-y-left {\n color: #2196f3;\n }\n\n [_nghost-%COMP%] .axis-y-right {\n color: #4caf50;\n }\n\n [_nghost-%COMP%] .axis-label {\n font-weight: 500;\n }\n\n @media (max-width: 768px) {\n .chart-header[_ngcontent-%COMP%] {\n flex-direction: column;\n align-items: flex-start;\n }\n \n .chart-legend[_ngcontent-%COMP%] {\n width: 100%;\n justify-content: flex-start;\n }\n \n .chart-controls[_ngcontent-%COMP%] {\n flex-wrap: wrap;\n }\n }"] });
|
|
491
|
+
}
|
|
492
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimeSeriesChartComponent, [{
|
|
493
|
+
type: Component,
|
|
494
|
+
args: [{ selector: 'app-time-series-chart', template: `
|
|
495
|
+
<div class="time-series-chart">
|
|
496
|
+
@if (title) {
|
|
497
|
+
<div class="chart-header">
|
|
498
|
+
<h4 class="chart-title">{{ title }}</h4>
|
|
499
|
+
@if (showLegend) {
|
|
500
|
+
<div class="chart-legend">
|
|
501
|
+
@for (metric of visibleMetrics; track metric) {
|
|
502
|
+
<div
|
|
503
|
+
class="legend-item"
|
|
504
|
+
(click)="toggleMetric(metric)"
|
|
505
|
+
[class.legend-item--disabled]="!isMetricVisible(metric)"
|
|
506
|
+
>
|
|
507
|
+
<div
|
|
508
|
+
class="legend-color"
|
|
509
|
+
[style.background-color]="getMetricColor(metric)"
|
|
510
|
+
></div>
|
|
511
|
+
<span class="legend-label">{{ getMetricLabel(metric) }}</span>
|
|
512
|
+
</div>
|
|
513
|
+
}
|
|
514
|
+
</div>
|
|
515
|
+
}
|
|
516
|
+
</div>
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
<div class="chart-container">
|
|
520
|
+
<svg #chartSvg></svg>
|
|
521
|
+
<div class="chart-tooltip" #tooltip style="display: none;"></div>
|
|
522
|
+
</div>
|
|
523
|
+
</div>
|
|
524
|
+
`, styles: ["\n .time-series-chart {\n background: white;\n border-radius: 8px;\n box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);\n padding: 12px;\n height: 100%;\n display: flex;\n flex-direction: column;\n overflow: hidden; /* Ensure content doesn't overflow */\n }\n\n .chart-header {\n display: flex;\n justify-content: space-between;\n align-items: center;\n margin-bottom: 8px;\n flex-wrap: wrap;\n gap: 12px;\n flex-shrink: 0; /* Prevent header from being squeezed */\n }\n\n .chart-title {\n margin: 0;\n font-size: 14px;\n font-weight: 600;\n color: #333;\n }\n\n .chart-legend {\n display: flex;\n gap: 16px;\n flex-wrap: wrap;\n }\n\n .legend-item {\n display: flex;\n align-items: center;\n gap: 4px;\n cursor: pointer;\n transition: opacity 0.2s ease;\n font-size: 11px;\n }\n\n .legend-item--disabled {\n opacity: 0.4;\n }\n\n .legend-color {\n width: 12px;\n height: 12px;\n border-radius: 2px;\n }\n\n .legend-label {\n color: #666;\n font-weight: 500;\n }\n\n .chart-container {\n flex: 1;\n position: relative;\n overflow: hidden;\n min-height: 0; /* Important: allows flex child to shrink below content size */\n }\n\n .chart-container svg {\n width: 100%;\n height: 100%;\n }\n\n .chart-tooltip {\n position: absolute;\n background: rgba(0, 0, 0, 0.8);\n color: white;\n padding: 8px 12px;\n border-radius: 4px;\n font-size: 12px;\n pointer-events: none;\n z-index: 1000;\n max-width: 200px;\n }\n\n\n /* Chart styles */\n :host ::ng-deep .chart-line {\n fill: none;\n stroke-width: 2;\n }\n\n :host ::ng-deep .chart-area {\n fill-opacity: 0.1;\n }\n\n :host ::ng-deep .chart-dot {\n transition: r 0.1s ease;\n }\n\n :host ::ng-deep .chart-dot:hover {\n filter: drop-shadow(0 0 4px rgba(0,0,0,0.3));\n }\n\n :host ::ng-deep .grid-line {\n stroke: #f0f0f0;\n stroke-width: 1;\n }\n\n :host ::ng-deep .axis {\n font-size: 11px;\n color: #666;\n }\n\n :host ::ng-deep .axis path {\n stroke: #ddd;\n }\n\n :host ::ng-deep .axis .tick line {\n stroke: #ddd;\n }\n\n :host ::ng-deep .axis-y-left {\n color: #2196f3;\n }\n\n :host ::ng-deep .axis-y-right {\n color: #4caf50;\n }\n\n :host ::ng-deep .axis-label {\n font-weight: 500;\n }\n\n @media (max-width: 768px) {\n .chart-header {\n flex-direction: column;\n align-items: flex-start;\n }\n \n .chart-legend {\n width: 100%;\n justify-content: flex-start;\n }\n \n .chart-controls {\n flex-wrap: wrap;\n }\n }\n "] }]
|
|
525
|
+
}], null, { data: [{
|
|
526
|
+
type: Input
|
|
527
|
+
}], title: [{
|
|
528
|
+
type: Input
|
|
529
|
+
}], config: [{
|
|
530
|
+
type: Input
|
|
531
|
+
}], showLegend: [{
|
|
532
|
+
type: Input
|
|
533
|
+
}], showControls: [{
|
|
534
|
+
type: Input
|
|
535
|
+
}], dataPointClick: [{
|
|
536
|
+
type: Output
|
|
537
|
+
}], timeRangeChange: [{
|
|
538
|
+
type: Output
|
|
539
|
+
}], chartSvg: [{
|
|
540
|
+
type: ViewChild,
|
|
541
|
+
args: ['chartSvg', { static: true }]
|
|
542
|
+
}], tooltip: [{
|
|
543
|
+
type: ViewChild,
|
|
544
|
+
args: ['tooltip', { static: true }]
|
|
545
|
+
}] }); })();
|
|
546
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TimeSeriesChartComponent, { className: "TimeSeriesChartComponent", filePath: "src/AI/components/charts/time-series-chart.component.ts", lineNumber: 204 }); })();
|
|
547
|
+
//# sourceMappingURL=time-series-chart.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-series-chart.component.js","sourceRoot":"","sources":["../../../../src/AI/components/charts/time-series-chart.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAoC,SAAS,EAAwC,MAAM,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC1J,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;;;;;;IA8BT,8BAIC;IAFC,0OAAS,8BAAoB,KAAC;IAG9B,0BAGO;IACP,gCAA2B;IAAA,YAA4B;IACzD,AADyD,iBAAO,EAC1D;;;;IAPJ,2EAAwD;IAItD,cAAiD;IAAjD,oEAAiD;IAExB,eAA4B;IAA5B,sDAA4B;;;IAX7D,8BAA0B;IACxB,yIAYC;IACH,iBAAM;;;IAbJ,cAYC;IAZD,oCAYC;;;IAfL,AADF,8BAA0B,YACA;IAAA,YAAW;IAAA,iBAAK;IACxC,+FAAkB;IAiBpB,iBAAM;;;IAlBoB,eAAW;IAAX,kCAAW;IACnC,cAgBC;IAhBD,4CAgBC;;AA+JX,MAAM,OAAO,wBAAwB;IAC1B,IAAI,GAAgB,EAAE,CAAC;IACvB,KAAK,CAAU;IACf,MAAM,GAAqB,EAAE,CAAC;IAC9B,UAAU,GAAG,IAAI,CAAC;IAClB,YAAY,GAAG,IAAI,CAAC;IAEnB,cAAc,GAAsC,IAAI,YAAY,EAAuB,CAAC;IAC5F,eAAe,GAAG,IAAI,YAAY,EAAU,CAAC;IAEd,QAAQ,CAA0B;IACnC,OAAO,CAA8B;IAErE,GAAG,CAAsD;IACzD,KAAK,GAA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