@ecan-bi/indicator-library 1.1.31 → 1.1.33

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.
@@ -0,0 +1,3762 @@
1
+ /*! @ecan-bi/indicator-library@1.1.33 */
2
+ import { defineAsyncComponent as Ai, unref as G, defineComponent as An, ref as ue, computed as ye, provide as ae, nextTick as Ci, resolveComponent as no, openBlock as io, createElementBlock as ao, createVNode as ro, createCommentVNode as jo, createElementVNode as Cn, normalizeClass as _i, inject as Ot, watch as Io, onMounted as Ti, onBeforeUnmount as Li, withCtx as Oi } from "vue";
3
+ import { cloneDeep as ze } from "lodash-es";
4
+ import je from "dayjs";
5
+ import * as Ni from "echarts";
6
+ import { Spin as ji } from "ant-design-vue";
7
+ const _n = (e) => (e.install = (t) => {
8
+ t.component(e.name, e);
9
+ }, e), Tn = "$request";
10
+ var wn;
11
+ const Ii = ((wn = window == null ? void 0 : window.config) == null ? void 0 : wn.indicatorURL) || "", Ln = "INDICATOR_TOKEN", ki = "DATA_LIST", Di = "SELECTED_COMPONENT", On = "GRAPHIC_CONFIG", Fi = "UPDATE_GRAPHIC_CONFIG", Ei = "SHOW_STYLE_CONFIG", nl = "REFRESH_DATA", Nn = "CHARTS_OPTIONS", Mi = "TABLE_OPTIONS", Vi = 18, zi = "UPDATE_CHARTS_OPTIONS", $i = "UPDATE_TABLE_OPTIONS", Ri = "SOURCE_TYPE", il = "CHANGE_CONDITION", al = "DATA_VIEW_COLUMNS", Pi = "RENDER_USED_COMPONENTS", Gi = "UPDATE_USED_COMPONENT", Wi = "UPDATE_COMPONENTS_CONFIG", Ui = "MAP_ATTRIBUTE_PROPS", Hi = "PAGE_CONFIG", Bi = "IS_PIVOT_TABLE", Yi = "IS_IFRAME_MODE", Ki = {
12
+ name: "柱状图",
13
+ type: "bar",
14
+ width: "400px",
15
+ height: "400px",
16
+ xAxisLabelFormatter: "{value}",
17
+ yAxisLabelFormatter: "{value}",
18
+ yAxisLineAlwaysDisplay: !1,
19
+ titleText: "",
20
+ titleSubtext: "",
21
+ titleFontSize: "12px",
22
+ titleColor: "#333",
23
+ fontWeight: 400,
24
+ textAlign: "left",
25
+ colors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
26
+ legendShow: !0,
27
+ legendTextStyleColor: "#333",
28
+ legendOrient: "horizontal",
29
+ legendTop: "top",
30
+ legendLeft: "center",
31
+ tooltipShow: !0,
32
+ tooltipTextStyleColor: "",
33
+ tooltipFormatter: "{marker} {a} {c}",
34
+ xAxisSplitLineShow: !0,
35
+ xAxisSplitLineInterval: 0,
36
+ xAxisSplitAreaShow: !1,
37
+ xAxisSplitLineStyleColor: "#333",
38
+ xAxisLabelInterval: 0,
39
+ xAxisLabelColor: "#333",
40
+ xAxisLabelWidth: void 0,
41
+ xAxisLabelRotate: 0,
42
+ xAxisLabelOverflow: "none",
43
+ xAxisLineShow: !0,
44
+ xAxisLineStyleColor: "#333",
45
+ xAxisTickShow: !0,
46
+ xAxisMinInterval: 0,
47
+ yAxisMinInterval: 0,
48
+ yAxisLabelWidth: void 0,
49
+ yAxisLabelRotate: 0,
50
+ yAxisLabelOverflow: "none",
51
+ yAxisSplitLineShow: !0,
52
+ yAxisSplitAreaShow: !1,
53
+ yAxisSplitLineStyleColor: "#333",
54
+ yAxisLabelColor: "#333",
55
+ yAxisLineStyleColor: "#333",
56
+ valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
57
+ keyTypeDataFieldNames: { name: "name", types: [] },
58
+ dataFieldConfigType: "value",
59
+ barWidth: "40%",
60
+ gridContainLabel: !0,
61
+ gridTop: "10%",
62
+ gridBottom: "10%",
63
+ gridLeft: "5%",
64
+ gridRight: "5%",
65
+ graphicConfig: {},
66
+ toolboxShow: !1,
67
+ toolboxOrient: "horizontal",
68
+ toolboxItemSize: 16,
69
+ toolboxItemGap: 8,
70
+ toolboxLeft: "right",
71
+ toolboxTop: "top",
72
+ toolboxIconStyleBorderColor: "#666",
73
+ toolboxDownloadUrl: "",
74
+ toolboxInfoText: "当前无说明信息",
75
+ isUseHorizontalAxis: !1,
76
+ axisInverse: !1,
77
+ xAxisInverse: !1,
78
+ yAxisInverse: !1,
79
+ isStack: !1,
80
+ stackColumns: [],
81
+ labelShow: !1,
82
+ labelFontSize: "12px",
83
+ labelPosition: "inside",
84
+ labelColor: "",
85
+ labelWidth: 100,
86
+ labelOverflow: "none",
87
+ labelFormatter: "{c}",
88
+ toolboxLocation: !1,
89
+ toolboxDownloadShow: !0,
90
+ toolboxDataZoomShow: !0,
91
+ toolboxInfoShow: !0,
92
+ gradientShow: !1,
93
+ gradientColors: ["#5470c6", "#91cc75", "#fac858", "#ee6666", "#73c0de", "#3ba272", "#fc8452", "#9a60b4", "#ea7ccc"],
94
+ gradientOffset: 1,
95
+ barBorderRadius: "",
96
+ yAxisLabelShow: !0,
97
+ yAxisSplitLineType: "solid",
98
+ xAxisSplitLineType: "solid",
99
+ legendItemGap: 10,
100
+ legendItemWidth: 25,
101
+ legendItemHeight: 14,
102
+ showBarBackground: !1,
103
+ legendType: "",
104
+ legendFontSize: "12px",
105
+ xAxisLabelFontSize: "12px",
106
+ yAxisLabelFontSize: "12px",
107
+ graphicType: "ecanBar",
108
+ tooltipPosition: "",
109
+ isShowMarkLine: !1,
110
+ markLineType: "average",
111
+ legendFormatter: "{name}",
112
+ legendWidth: null,
113
+ legendHeight: null,
114
+ legendTextWidth: null,
115
+ legendScroll: !1,
116
+ yAxisName: "",
117
+ xAxisName: "",
118
+ defaultRangeValue: !1,
119
+ startValue: "",
120
+ endValue: "",
121
+ xAxisMaxValue: null,
122
+ yAxisMaxValue: null,
123
+ colorsType: "默认"
124
+ }, qi = {
125
+ name: "折线图",
126
+ type: "line",
127
+ width: "400px",
128
+ height: "400px",
129
+ colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
130
+ colorsType: "默认",
131
+ legendShow: !0,
132
+ legendOrient: "horizontal",
133
+ legendTop: "top",
134
+ legendLeft: "center",
135
+ legendCustomPosition: !1,
136
+ legendTextStyleColor: "#333",
137
+ legendTextStyleFontSize: "12px",
138
+ legendTextItemGap: 10,
139
+ legendTopPadding: 10,
140
+ legendBottomPadding: 10,
141
+ legendLeftPadding: 10,
142
+ legendRightPadding: 10,
143
+ titleText: "",
144
+ titleSubtext: "",
145
+ symbolSize: 4,
146
+ lineStyleWidth: 2,
147
+ smooth: !1,
148
+ xAxisName: "",
149
+ xAxisType: "category",
150
+ xAxisShow: !0,
151
+ xAxisLabelWidth: void 0,
152
+ xAxisLabelRotate: 0,
153
+ xAxisLabelOverflow: "none",
154
+ xAxisLabelInterval: 0,
155
+ xAxisSplitLineShow: !0,
156
+ xAxisSplitLineStyleColor: "#333",
157
+ xAxisLabelColor: "#333",
158
+ xAxisLineStyleColor: "#333",
159
+ xAxisTickShow: !0,
160
+ xAxisLabelFormatter: "{value}",
161
+ // 格式化
162
+ xAxisMinInterval: 0,
163
+ yAxisName: "",
164
+ yAxisMinInterval: 0,
165
+ yAxisSplitLineShow: !0,
166
+ yAxisSplitLineStyleColor: "#333",
167
+ yAxisLabelColor: "#333",
168
+ yAxisLineStyleColor: "#333",
169
+ yAxisLineAlwaysDisplay: !1,
170
+ yAxisLabelShow: !0,
171
+ yAxisLabelFormatter: "{value}",
172
+ yAxisSplitLineType: "solid",
173
+ xAxisSplitLineType: "solid",
174
+ gridContainLabel: !0,
175
+ gridTop: "10%",
176
+ gridBottom: "10%",
177
+ gridLeft: "5%",
178
+ gridRight: "5%",
179
+ tooltipShow: !0,
180
+ tooltipTextStyleColor: "",
181
+ tooltipFormatter: "{marker} {a} {c}",
182
+ tooltipBorderColor: "#333",
183
+ tooltipBackgroundColor: "#fff",
184
+ toolboxShow: !1,
185
+ toolboxDownloadShow: !0,
186
+ toolboxDataZoomShow: !0,
187
+ toolboxInfoShow: !0,
188
+ toolboxOrient: "horizontal",
189
+ toolboxItemSize: 16,
190
+ toolboxItemGap: 8,
191
+ toolboxLeft: "right",
192
+ toolboxTop: "top",
193
+ toolboxIconStyleBorderColor: "#666",
194
+ toolboxDownloadUrl: "",
195
+ toolboxInfoText: "当前无说明信息",
196
+ areaStyleOpacity: 0,
197
+ // 新加属性
198
+ titleFontSize: "12px",
199
+ titleColor: "#333",
200
+ fontWeight: 400,
201
+ textAlign: "left",
202
+ titleLeft: "",
203
+ xAxisSplitAreaShow: !1,
204
+ xAxisSplitLineInterval: 0,
205
+ xAxisLineShow: !0,
206
+ yAxisSplitAreaShow: !1,
207
+ valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
208
+ keyTypeDataFieldNames: { name: "name", types: [] },
209
+ dataFieldConfigType: "value",
210
+ graphicConfig: {},
211
+ areaGradientShow: !1,
212
+ areaGradientColor: "",
213
+ isBoundaryGap: !0,
214
+ legendItemGap: 10,
215
+ legendItemWidth: 25,
216
+ legendItemHeight: 14,
217
+ legendType: "",
218
+ shadowColor: "",
219
+ shadowBlur: 0,
220
+ shadowOffsetY: 0,
221
+ shadowOffsetX: 0,
222
+ legendFontSize: "12px",
223
+ xAxisLabelFontSize: "12px",
224
+ yAxisLabelFontSize: "12px",
225
+ graphicType: "ecanLine",
226
+ tooltipPosition: "",
227
+ isShowMarkLine: !1,
228
+ markLineType: "average",
229
+ legendFormatter: "{name}",
230
+ legendWidth: null,
231
+ legendHeight: null,
232
+ legendTextWidth: null,
233
+ legendScroll: !1,
234
+ xAxisMaxValue: null,
235
+ yAxisMaxValue: null
236
+ }, Zi = {
237
+ name: "饼图",
238
+ type: "pie",
239
+ width: "400px",
240
+ height: "400px",
241
+ titleText: "",
242
+ titleSubtext: "",
243
+ colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
244
+ colorsType: "默认",
245
+ backgroundColor: "",
246
+ toolboxDownloadShow: !0,
247
+ toolboxDataZoomShow: !0,
248
+ toolboxInfoShow: !0,
249
+ tooltipShow: !0,
250
+ tooltipTextStyleColor: "",
251
+ tooltipTrigger: "item",
252
+ tooltipFormatter: "{marker} {b} {c} ({d}%)",
253
+ tooltipBorderColor: "#333",
254
+ tooltipBackgroundColor: "#fff",
255
+ legendShow: !0,
256
+ legendTextStyleColor: "#333",
257
+ legendOrient: "vertical",
258
+ legendTop: "top",
259
+ legendLeft: "left",
260
+ innerRadius: "0%",
261
+ outerRadius: "60%",
262
+ centerLeft: "50%",
263
+ centerTop: "50%",
264
+ minAngle: 0,
265
+ labelShow: !0,
266
+ labelColor: "#333",
267
+ isUseLabelColors: !1,
268
+ labelFontSize: 12,
269
+ labelPosition: "outside",
270
+ labelFormatter: "{b}\\n{d}%",
271
+ labelLineShow: !0,
272
+ labelLineLength: 10,
273
+ labelLineLength2: 15,
274
+ roseType: "",
275
+ gridContainLabel: !0,
276
+ gridTop: "10%",
277
+ gridBottom: "10%",
278
+ gridLeft: "5%",
279
+ gridRight: "5%",
280
+ toolboxShow: !1,
281
+ toolboxOrient: "horizontal",
282
+ toolboxItemSize: 16,
283
+ toolboxItemGap: 8,
284
+ toolboxLeft: "right",
285
+ toolboxTop: "top",
286
+ toolboxIconStyleBorderColor: "#666",
287
+ toolboxDownloadUrl: "",
288
+ toolboxInfoText: "当前无说明信息",
289
+ titleFontSize: "12px",
290
+ titleColor: "#333",
291
+ fontWeight: 400,
292
+ textAlign: "left",
293
+ titleLeft: "",
294
+ labelWidth: 100,
295
+ labelOverflow: "none",
296
+ valueTypeDataFieldNames: { name: "name", value: "value", type: "type" },
297
+ dataFieldConfigType: "value",
298
+ graphicConfig: {},
299
+ legendItemGap: 10,
300
+ legendItemWidth: 25,
301
+ legendItemHeight: 14,
302
+ legendFormatter: "{name}",
303
+ legendFontSize: "12px",
304
+ graphicType: "ecanPie",
305
+ legendWidth: null,
306
+ legendHeight: null,
307
+ legendTextWidth: null,
308
+ legendScroll: !1
309
+ }, Qi = {
310
+ name: "自定义图表",
311
+ type: "customGraph",
312
+ width: "400px",
313
+ height: "400px",
314
+ option: {},
315
+ optionCode: ""
316
+ }, Xi = {
317
+ name: "组合图表",
318
+ type: "comboGraph",
319
+ width: "400px",
320
+ height: "400px",
321
+ titleText: "",
322
+ titleSubtext: "",
323
+ colors: ["#FFBF53", "#04B1C2", "#F07474", "#C55784", "#9A5FB3", "#CF62D7", "#5E78EA", "#51B3F0", "#69D4DC", "#49B788", "#9CCC66", "#C18C00"],
324
+ colorsType: "默认",
325
+ legendShow: !0,
326
+ legendTextStyleColor: "#333",
327
+ legendOrient: "horizontal",
328
+ legendTop: "top",
329
+ legendLeft: "center",
330
+ tooltipShow: !0,
331
+ tooltipTextStyleColor: "",
332
+ tooltipTrigger: "item",
333
+ tooltipFormatter: "{marker} {a} {c}",
334
+ tooltipBorderColor: "#333",
335
+ tooltipBackgroundColor: "#fff",
336
+ xAxisLabelInterval: 0,
337
+ xAxisSplitLineShow: !0,
338
+ xAxisLabelRotate: 0,
339
+ xAxisLabelOverflow: "none",
340
+ xAxisLabelWidth: void 0,
341
+ xAxisSplitLineStyleColor: "#333",
342
+ xAxisLabelColor: "#333",
343
+ xAxisLineStyleColor: "#333",
344
+ xAxisTickShow: !0,
345
+ xAxisMinInterval: 0,
346
+ yAxisMinInterval: 0,
347
+ yAxisSplitLineShow: !0,
348
+ yAxisSplitLineStyleColor: "#333",
349
+ yAxisLabelColor: "#333",
350
+ yAxisLineStyleColor: "#333",
351
+ yAxisLineAlwaysDisplay: !1,
352
+ yAxisLabelShow: !0,
353
+ seriesTypes: [
354
+ {
355
+ type: "bar",
356
+ axisIndex: 0
357
+ },
358
+ {
359
+ type: "line",
360
+ axisIndex: 0
361
+ }
362
+ ],
363
+ yAxis: [
364
+ {
365
+ axisLabelFormatter: "{value}"
366
+ },
367
+ {
368
+ axisLabelFormatter: "{value}"
369
+ }
370
+ ],
371
+ gridContainLabel: !0,
372
+ gridTop: "10%",
373
+ gridBottom: "10%",
374
+ gridLeft: "5%",
375
+ gridRight: "5%",
376
+ toolboxShow: !1,
377
+ toolboxLocation: !1,
378
+ toolboxDownloadShow: !0,
379
+ toolboxDataZoomShow: !0,
380
+ toolboxInfoShow: !0,
381
+ toolboxOrient: "horizontal",
382
+ toolboxItemSize: 16,
383
+ toolboxItemGap: 8,
384
+ toolboxLeft: "right",
385
+ toolboxTop: "top",
386
+ toolboxIconStyleBorderColor: "#666",
387
+ toolboxDownloadUrl: "",
388
+ toolboxInfoText: "当前无说明信息",
389
+ areaStyleOpacity: 0,
390
+ symbolSize: 4,
391
+ lineStyleWidth: 2,
392
+ smooth: !1,
393
+ barWidth: "40%"
394
+ }, ko = {
395
+ bar: Ki,
396
+ line: qi,
397
+ pie: Zi,
398
+ customGraph: Qi,
399
+ comboGraph: Xi
400
+ }, Ji = {
401
+ name: "表格",
402
+ type: "table",
403
+ size: "medium",
404
+ allOverflow: "title",
405
+ hoverRow: !0,
406
+ hoverColor: "#f5f7fa",
407
+ headerCellStyleMethod: "",
408
+ rowStyleMethod: "",
409
+ boderList: [],
410
+ columnDropEnable: !0,
411
+ showTotalBool: !1,
412
+ totalName: "",
413
+ expandAll: !1
414
+ }, Do = (e) => Ai({
415
+ loader: e,
416
+ delay: 200
417
+ });
418
+ function Fo(e, t) {
419
+ var n = {};
420
+ for (var i in e)
421
+ Object.prototype.hasOwnProperty.call(e, i) && t.indexOf(i) < 0 && (n[i] = e[i]);
422
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") {
423
+ var a = 0;
424
+ for (i = Object.getOwnPropertySymbols(e); a < i.length; a++)
425
+ t.indexOf(i[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, i[a]) && (n[i[a]] = e[i[a]]);
426
+ }
427
+ return n;
428
+ }
429
+ function ea(e, t) {
430
+ const n = /* @__PURE__ */ Object.create(null), i = e.split(",");
431
+ for (let a = 0; a < i.length; a++)
432
+ n[i[a]] = !0;
433
+ return (a) => !!n[a];
434
+ }
435
+ const jn = () => {
436
+ }, bo = Object.assign, ta = Object.prototype.hasOwnProperty, Rt = (e, t) => ta.call(e, t), De = Array.isArray, mt = (e) => kn(e) === "[object Map]", Ut = (e) => typeof e == "function", In = (e) => typeof e == "string", Ht = (e) => typeof e == "symbol", Bt = (e) => e !== null && typeof e == "object", oa = Object.prototype.toString, kn = (e) => oa.call(e), Dn = (e) => kn(e).slice(8, -1), xo = (e) => In(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, na = ((e) => {
437
+ const t = /* @__PURE__ */ Object.create(null);
438
+ return (n) => t[n] || (t[n] = e(n));
439
+ })((e) => e.charAt(0).toUpperCase() + e.slice(1)), wt = (e, t) => !Object.is(e, t);
440
+ let Eo;
441
+ const lo = () => Eo || (Eo = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
442
+ function Mo(e, ...t) {
443
+ console.warn(`[Vue warn] ${e}`, ...t);
444
+ }
445
+ const bt = (e) => {
446
+ const t = new Set(e);
447
+ return t.w = 0, t.n = 0, t;
448
+ }, Fn = (e) => (e.w & Re) > 0, En = (e) => (e.n & Re) > 0, so = /* @__PURE__ */ new WeakMap();
449
+ let ht = 0, Re = 1, de;
450
+ const Ze = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), co = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
451
+ class ia {
452
+ constructor(t, n = null, i) {
453
+ this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, function(a, r) {
454
+ r && r.active && r.effects.push(a);
455
+ }(this, i);
456
+ }
457
+ run() {
458
+ if (!this.active)
459
+ return this.fn();
460
+ let t = de, n = We;
461
+ for (; t; ) {
462
+ if (t === this)
463
+ return;
464
+ t = t.parent;
465
+ }
466
+ try {
467
+ return this.parent = de, de = this, We = !0, Re = 1 << ++ht, ht <= 30 ? (({ deps: i }) => {
468
+ if (i.length)
469
+ for (let a = 0; a < i.length; a++)
470
+ i[a].w |= Re;
471
+ })(this) : Vo(this), this.fn();
472
+ } finally {
473
+ ht <= 30 && ((i) => {
474
+ const { deps: a } = i;
475
+ if (a.length) {
476
+ let r = 0;
477
+ for (let l = 0; l < a.length; l++) {
478
+ const o = a[l];
479
+ Fn(o) && !En(o) ? o.delete(i) : a[r++] = o, o.w &= ~Re, o.n &= ~Re;
480
+ }
481
+ a.length = r;
482
+ }
483
+ })(this), Re = 1 << --ht, de = this.parent, We = n, this.parent = void 0, this.deferStop && this.stop();
484
+ }
485
+ }
486
+ stop() {
487
+ de === this ? this.deferStop = !0 : this.active && (Vo(this), this.onStop && this.onStop(), this.active = !1);
488
+ }
489
+ }
490
+ function Vo(e) {
491
+ const { deps: t } = e;
492
+ if (t.length) {
493
+ for (let n = 0; n < t.length; n++)
494
+ t[n].delete(e);
495
+ t.length = 0;
496
+ }
497
+ }
498
+ let We = !0;
499
+ const Mn = [];
500
+ function Vn() {
501
+ Mn.push(We), We = !1;
502
+ }
503
+ function zn() {
504
+ const e = Mn.pop();
505
+ We = e === void 0 || e;
506
+ }
507
+ function be(e, t, n) {
508
+ if (We && de) {
509
+ let i = so.get(e);
510
+ i || so.set(e, i = /* @__PURE__ */ new Map());
511
+ let a = i.get(n);
512
+ a || i.set(n, a = bt()), uo(a, process.env.NODE_ENV !== "production" ? { effect: de, target: e, type: t, key: n } : void 0);
513
+ }
514
+ }
515
+ function uo(e, t) {
516
+ let n = !1;
517
+ ht <= 30 ? En(e) || (e.n |= Re, n = !Fn(e)) : n = !e.has(de), n && (e.add(de), de.deps.push(e), process.env.NODE_ENV !== "production" && de.onTrack && de.onTrack(bo({ effect: de }, t)));
518
+ }
519
+ function Ue(e, t, n, i, a, r) {
520
+ const l = so.get(e);
521
+ if (!l)
522
+ return;
523
+ let o = [];
524
+ if (t === "clear")
525
+ o = [...l.values()];
526
+ else if (n === "length" && De(e)) {
527
+ const d = Number(i);
528
+ l.forEach((h, u) => {
529
+ (u === "length" || !Ht(u) && u >= d) && o.push(h);
530
+ });
531
+ } else
532
+ switch (n !== void 0 && o.push(l.get(n)), t) {
533
+ case "add":
534
+ De(e) ? xo(n) && o.push(l.get("length")) : (o.push(l.get(Ze)), mt(e) && o.push(l.get(co)));
535
+ break;
536
+ case "delete":
537
+ De(e) || (o.push(l.get(Ze)), mt(e) && o.push(l.get(co)));
538
+ break;
539
+ case "set":
540
+ mt(e) && o.push(l.get(Ze));
541
+ }
542
+ const c = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: i, oldValue: a, oldTarget: r } : void 0;
543
+ if (o.length === 1)
544
+ o[0] && (process.env.NODE_ENV !== "production" ? ot(o[0], c) : ot(o[0]));
545
+ else {
546
+ const d = [];
547
+ for (const h of o)
548
+ h && d.push(...h);
549
+ process.env.NODE_ENV !== "production" ? ot(bt(d), c) : ot(bt(d));
550
+ }
551
+ }
552
+ function ot(e, t) {
553
+ const n = De(e) ? e : [...e];
554
+ for (const i of n)
555
+ i.computed && zo(i, t);
556
+ for (const i of n)
557
+ i.computed || zo(i, t);
558
+ }
559
+ function zo(e, t) {
560
+ (e !== de || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(bo({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
561
+ }
562
+ const aa = ea("__proto__,__v_isRef,__isVue"), $n = new Set(Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(Ht)), $o = ra();
563
+ function ra() {
564
+ const e = {};
565
+ return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
566
+ e[t] = function(...n) {
567
+ const i = U(this);
568
+ for (let r = 0, l = this.length; r < l; r++)
569
+ be(i, "get", r + "");
570
+ const a = i[t](...n);
571
+ return a === -1 || a === !1 ? i[t](...n.map(U)) : a;
572
+ };
573
+ }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
574
+ e[t] = function(...n) {
575
+ Vn();
576
+ const i = U(this)[t].apply(this, n);
577
+ return zn(), i;
578
+ };
579
+ }), e;
580
+ }
581
+ function la(e) {
582
+ const t = U(this);
583
+ return be(t, "has", e), t.hasOwnProperty(e);
584
+ }
585
+ class Rn {
586
+ constructor(t = !1, n = !1) {
587
+ this._isReadonly = t, this._shallow = n;
588
+ }
589
+ get(t, n, i) {
590
+ const a = this._isReadonly, r = this._shallow;
591
+ if (n === "__v_isReactive")
592
+ return !a;
593
+ if (n === "__v_isReadonly")
594
+ return a;
595
+ if (n === "__v_isShallow")
596
+ return r;
597
+ if (n === "__v_raw" && i === (a ? r ? va : Un : r ? xa : Wn).get(t))
598
+ return t;
599
+ const l = De(t);
600
+ if (!a) {
601
+ if (l && Rt($o, n))
602
+ return Reflect.get($o, n, i);
603
+ if (n === "hasOwnProperty")
604
+ return la;
605
+ }
606
+ const o = Reflect.get(t, n, i);
607
+ return (Ht(n) ? $n.has(n) : aa(n)) ? o : (a || be(t, "get", n), r ? o : Ge(o) ? l && xo(n) ? o : o.value : Bt(o) ? a ? Bn(o) : Hn(o) : o);
608
+ }
609
+ }
610
+ class sa extends Rn {
611
+ constructor(t = !1) {
612
+ super(!1, t);
613
+ }
614
+ set(t, n, i, a) {
615
+ let r = t[n];
616
+ if (Pt(r) && Ge(r) && !Ge(i))
617
+ return !1;
618
+ if (!this._shallow && (Kn(i) || Pt(i) || (r = U(r), i = U(i)), !De(t) && Ge(r) && !Ge(i)))
619
+ return r.value = i, !0;
620
+ const l = De(t) && xo(n) ? Number(n) < t.length : Rt(t, n), o = Reflect.set(t, n, i, a);
621
+ return t === U(a) && (l ? wt(i, r) && Ue(t, "set", n, i, r) : Ue(t, "add", n, i)), o;
622
+ }
623
+ deleteProperty(t, n) {
624
+ const i = Rt(t, n), a = t[n], r = Reflect.deleteProperty(t, n);
625
+ return r && i && Ue(t, "delete", n, void 0, a), r;
626
+ }
627
+ has(t, n) {
628
+ const i = Reflect.has(t, n);
629
+ return Ht(n) && $n.has(n) || be(t, "has", n), i;
630
+ }
631
+ ownKeys(t) {
632
+ return be(t, "iterate", De(t) ? "length" : Ze), Reflect.ownKeys(t);
633
+ }
634
+ }
635
+ class ca extends Rn {
636
+ constructor(t = !1) {
637
+ super(!0, t);
638
+ }
639
+ set(t, n) {
640
+ return process.env.NODE_ENV !== "production" && Mo(`Set operation on key "${String(n)}" failed: target is readonly.`, t), !0;
641
+ }
642
+ deleteProperty(t, n) {
643
+ return process.env.NODE_ENV !== "production" && Mo(`Delete operation on key "${String(n)}" failed: target is readonly.`, t), !0;
644
+ }
645
+ }
646
+ const ua = new sa(), da = new ca(), vo = (e) => e, Yt = (e) => Reflect.getPrototypeOf(e);
647
+ function Nt(e, t, n = !1, i = !1) {
648
+ const a = U(e = e.__v_raw), r = U(t);
649
+ n || (wt(t, r) && be(a, "get", t), be(a, "get", r));
650
+ const { has: l } = Yt(a), o = i ? vo : n ? So : xt;
651
+ return l.call(a, t) ? o(e.get(t)) : l.call(a, r) ? o(e.get(r)) : void (e !== a && e.get(t));
652
+ }
653
+ function jt(e, t = !1) {
654
+ const n = this.__v_raw, i = U(n), a = U(e);
655
+ return t || (wt(e, a) && be(i, "has", e), be(i, "has", a)), e === a ? n.has(e) : n.has(e) || n.has(a);
656
+ }
657
+ function It(e, t = !1) {
658
+ return e = e.__v_raw, !t && be(U(e), "iterate", Ze), Reflect.get(e, "size", e);
659
+ }
660
+ function Ro(e) {
661
+ e = U(e);
662
+ const t = U(this);
663
+ return Yt(t).has.call(t, e) || (t.add(e), Ue(t, "add", e, e)), this;
664
+ }
665
+ function Po(e, t) {
666
+ t = U(t);
667
+ const n = U(this), { has: i, get: a } = Yt(n);
668
+ let r = i.call(n, e);
669
+ r ? process.env.NODE_ENV !== "production" && Gn(n, i, e) : (e = U(e), r = i.call(n, e));
670
+ const l = a.call(n, e);
671
+ return n.set(e, t), r ? wt(t, l) && Ue(n, "set", e, t, l) : Ue(n, "add", e, t), this;
672
+ }
673
+ function Go(e) {
674
+ const t = U(this), { has: n, get: i } = Yt(t);
675
+ let a = n.call(t, e);
676
+ a ? process.env.NODE_ENV !== "production" && Gn(t, n, e) : (e = U(e), a = n.call(t, e));
677
+ const r = i ? i.call(t, e) : void 0, l = t.delete(e);
678
+ return a && Ue(t, "delete", e, void 0, r), l;
679
+ }
680
+ function Wo() {
681
+ const e = U(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? mt(e) ? new Map(e) : new Set(e) : void 0, i = e.clear();
682
+ return t && Ue(e, "clear", void 0, void 0, n), i;
683
+ }
684
+ function kt(e, t) {
685
+ return function(n, i) {
686
+ const a = this, r = a.__v_raw, l = U(r), o = t ? vo : e ? So : xt;
687
+ return !e && be(l, "iterate", Ze), r.forEach((c, d) => n.call(i, o(c), o(d), a));
688
+ };
689
+ }
690
+ function Dt(e, t, n) {
691
+ return function(...i) {
692
+ const a = this.__v_raw, r = U(a), l = mt(r), o = e === "entries" || e === Symbol.iterator && l, c = e === "keys" && l, d = a[e](...i), h = n ? vo : t ? So : xt;
693
+ return !t && be(r, "iterate", c ? co : Ze), { next() {
694
+ const { value: u, done: y } = d.next();
695
+ return y ? { value: u, done: y } : { value: o ? [h(u[0]), h(u[1])] : h(u), done: y };
696
+ }, [Symbol.iterator]() {
697
+ return this;
698
+ } };
699
+ };
700
+ }
701
+ function Me(e) {
702
+ return function(...t) {
703
+ if (process.env.NODE_ENV !== "production") {
704
+ const n = t[0] ? `on key "${t[0]}" ` : "";
705
+ console.warn(`${na(e)} operation ${n}failed: target is readonly.`, U(this));
706
+ }
707
+ return e !== "delete" && this;
708
+ };
709
+ }
710
+ function fa() {
711
+ const e = { get(a) {
712
+ return Nt(this, a);
713
+ }, get size() {
714
+ return It(this);
715
+ }, has: jt, add: Ro, set: Po, delete: Go, clear: Wo, forEach: kt(!1, !1) }, t = { get(a) {
716
+ return Nt(this, a, !1, !0);
717
+ }, get size() {
718
+ return It(this);
719
+ }, has: jt, add: Ro, set: Po, delete: Go, clear: Wo, forEach: kt(!1, !0) }, n = { get(a) {
720
+ return Nt(this, a, !0);
721
+ }, get size() {
722
+ return It(this, !0);
723
+ }, has(a) {
724
+ return jt.call(this, a, !0);
725
+ }, add: Me("add"), set: Me("set"), delete: Me("delete"), clear: Me("clear"), forEach: kt(!0, !1) }, i = { get(a) {
726
+ return Nt(this, a, !0, !0);
727
+ }, get size() {
728
+ return It(this, !0);
729
+ }, has(a) {
730
+ return jt.call(this, a, !0);
731
+ }, add: Me("add"), set: Me("set"), delete: Me("delete"), clear: Me("clear"), forEach: kt(!0, !0) };
732
+ return ["keys", "values", "entries", Symbol.iterator].forEach((a) => {
733
+ e[a] = Dt(a, !1, !1), n[a] = Dt(a, !0, !1), t[a] = Dt(a, !1, !0), i[a] = Dt(a, !0, !0);
734
+ }), [e, n, t, i];
735
+ }
736
+ const [pa, ha, ma, ya] = fa();
737
+ function Pn(e, t) {
738
+ const n = t ? e ? ya : ma : e ? ha : pa;
739
+ return (i, a, r) => a === "__v_isReactive" ? !e : a === "__v_isReadonly" ? e : a === "__v_raw" ? i : Reflect.get(Rt(n, a) && a in i ? n : i, a, r);
740
+ }
741
+ const ga = { get: Pn(!1, !1) }, ba = { get: Pn(!0, !1) };
742
+ function Gn(e, t, n) {
743
+ const i = U(n);
744
+ if (i !== n && t.call(e, i)) {
745
+ const a = Dn(e);
746
+ console.warn(`Reactive ${a} contains both the raw and reactive versions of the same object${a === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
747
+ }
748
+ }
749
+ const Wn = /* @__PURE__ */ new WeakMap(), xa = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), va = /* @__PURE__ */ new WeakMap();
750
+ function Hn(e) {
751
+ return Pt(e) ? e : Yn(e, !1, ua, ga, Wn);
752
+ }
753
+ function Bn(e) {
754
+ return Yn(e, !0, da, ba, Un);
755
+ }
756
+ function Yn(e, t, n, i, a) {
757
+ if (!Bt(e))
758
+ return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
759
+ if (e.__v_raw && (!t || !e.__v_isReactive))
760
+ return e;
761
+ const r = a.get(e);
762
+ if (r)
763
+ return r;
764
+ const l = (o = e).__v_skip || !Object.isExtensible(o) ? 0 : function(d) {
765
+ switch (d) {
766
+ case "Object":
767
+ case "Array":
768
+ return 1;
769
+ case "Map":
770
+ case "Set":
771
+ case "WeakMap":
772
+ case "WeakSet":
773
+ return 2;
774
+ default:
775
+ return 0;
776
+ }
777
+ }(Dn(o));
778
+ var o;
779
+ if (l === 0)
780
+ return e;
781
+ const c = new Proxy(e, l === 2 ? i : n);
782
+ return a.set(e, c), c;
783
+ }
784
+ function Pt(e) {
785
+ return !(!e || !e.__v_isReadonly);
786
+ }
787
+ function Kn(e) {
788
+ return !(!e || !e.__v_isShallow);
789
+ }
790
+ function U(e) {
791
+ const t = e && e.__v_raw;
792
+ return t ? U(t) : e;
793
+ }
794
+ const xt = (e) => Bt(e) ? Hn(e) : e, So = (e) => Bt(e) ? Bn(e) : e;
795
+ function qn(e) {
796
+ We && de && (e = U(e), process.env.NODE_ENV !== "production" ? uo(e.dep || (e.dep = bt()), { target: e, type: "get", key: "value" }) : uo(e.dep || (e.dep = bt())));
797
+ }
798
+ function Zn(e, t) {
799
+ const n = (e = U(e)).dep;
800
+ n && (process.env.NODE_ENV !== "production" ? ot(n, { target: e, type: "set", key: "value", newValue: t }) : ot(n));
801
+ }
802
+ function Ge(e) {
803
+ return !(!e || e.__v_isRef !== !0);
804
+ }
805
+ function Ce(e) {
806
+ return function(t, n) {
807
+ return Ge(t) ? t : new Sa(t, n);
808
+ }(e, !1);
809
+ }
810
+ class Sa {
811
+ constructor(t, n) {
812
+ this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : U(t), this._value = n ? t : xt(t);
813
+ }
814
+ get value() {
815
+ return qn(this), this._value;
816
+ }
817
+ set value(t) {
818
+ const n = this.__v_isShallow || Kn(t) || Pt(t);
819
+ t = n ? t : U(t), wt(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : xt(t), Zn(this, t));
820
+ }
821
+ }
822
+ function z(e) {
823
+ return Ge(e) ? e.value : e;
824
+ }
825
+ class wa {
826
+ constructor(t, n, i, a) {
827
+ this._setter = n, this.dep = void 0, this.__v_isRef = !0, this.__v_isReadonly = !1, this._dirty = !0, this.effect = new ia(t, () => {
828
+ this._dirty || (this._dirty = !0, Zn(this));
829
+ }), this.effect.computed = this, this.effect.active = this._cacheable = !a, this.__v_isReadonly = i;
830
+ }
831
+ get value() {
832
+ const t = U(this);
833
+ return qn(t), !t._dirty && t._cacheable || (t._dirty = !1, t._value = t.effect.run()), t._value;
834
+ }
835
+ set value(t) {
836
+ this._setter(t);
837
+ }
838
+ }
839
+ const Ye = [];
840
+ function wo(e, ...t) {
841
+ if (process.env.NODE_ENV === "production")
842
+ return;
843
+ Vn();
844
+ const n = Ye.length ? Ye[Ye.length - 1].component : null, i = n && n.appContext.config.warnHandler, a = function() {
845
+ let r = Ye[Ye.length - 1];
846
+ if (!r)
847
+ return [];
848
+ const l = [];
849
+ for (; r; ) {
850
+ const o = l[0];
851
+ o && o.vnode === r ? o.recurseCount++ : l.push({ vnode: r, recurseCount: 0 });
852
+ const c = r.component && r.component.parent;
853
+ r = c && c.vnode;
854
+ }
855
+ return l;
856
+ }();
857
+ if (i)
858
+ Ao(i, n, 11, [e + t.join(""), n && n.proxy, a.map(({ vnode: r }) => `at <${Ko(n, r.type)}>`).join(`
859
+ `), a]);
860
+ else {
861
+ const r = [`[Vue warn]: ${e}`, ...t];
862
+ a.length && r.push(`
863
+ `, ...function(l) {
864
+ const o = [];
865
+ return l.forEach((c, d) => {
866
+ o.push(...d === 0 ? [] : [`
867
+ `], ...function({ vnode: h, recurseCount: u }) {
868
+ const y = u > 0 ? `... (${u} recursive calls)` : "", L = !!h.component && h.component.parent == null, N = ` at <${Ko(h.component, h.type, L)}`, A = ">" + y;
869
+ return h.props ? [N, ...Aa(h.props), A] : [N + A];
870
+ }(c));
871
+ }), o;
872
+ }(a)), console.warn(...r);
873
+ }
874
+ zn();
875
+ }
876
+ function Aa(e) {
877
+ const t = [], n = Object.keys(e);
878
+ return n.slice(0, 3).forEach((i) => {
879
+ t.push(...Qn(i, e[i]));
880
+ }), n.length > 3 && t.push(" ..."), t;
881
+ }
882
+ function Qn(e, t, n) {
883
+ return In(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : Ge(t) ? (t = Qn(e, U(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : Ut(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = U(t), n ? t : [`${e}=`, t]);
884
+ }
885
+ const Uo = { sp: "serverPrefetch hook", bc: "beforeCreate hook", c: "created hook", bm: "beforeMount hook", m: "mounted hook", bu: "beforeUpdate hook", u: "updated", bum: "beforeUnmount hook", um: "unmounted hook", a: "activated hook", da: "deactivated hook", ec: "errorCaptured hook", rtc: "renderTracked hook", rtg: "renderTriggered hook", 0: "setup function", 1: "render function", 2: "watcher getter", 3: "watcher callback", 4: "watcher cleanup function", 5: "native event handler", 6: "component event handler", 7: "vnode hook", 8: "directive hook", 9: "transition hook", 10: "app errorHandler", 11: "app warnHandler", 12: "ref function", 13: "async component loader", 14: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core" };
886
+ function Ao(e, t, n, i) {
887
+ let a;
888
+ try {
889
+ a = i ? e(...i) : e();
890
+ } catch (r) {
891
+ (function(l, o, c, d = !0) {
892
+ const h = o ? o.vnode : null;
893
+ if (o) {
894
+ let u = o.parent;
895
+ const y = o.proxy, L = process.env.NODE_ENV !== "production" ? Uo[c] : c;
896
+ for (; u; ) {
897
+ const A = u.ec;
898
+ if (A) {
899
+ for (let g = 0; g < A.length; g++)
900
+ if (A[g](l, y, L) === !1)
901
+ return;
902
+ }
903
+ u = u.parent;
904
+ }
905
+ const N = o.appContext.config.errorHandler;
906
+ if (N)
907
+ return void Ao(N, null, 10, [l, y, L]);
908
+ }
909
+ (function(u, y, L, N = !0) {
910
+ if (process.env.NODE_ENV !== "production") {
911
+ const g = Uo[y];
912
+ if (L && (A = L, Ye.push(A)), wo("Unhandled error" + (g ? ` during execution of ${g}` : "")), L && Ye.pop(), N)
913
+ throw u;
914
+ console.error(u);
915
+ } else
916
+ console.error(u);
917
+ var A;
918
+ })(l, c, h, d);
919
+ })(r, t, n);
920
+ }
921
+ return a;
922
+ }
923
+ let Gt = !1, fo = !1;
924
+ const we = [];
925
+ let Pe = 0;
926
+ const nt = [];
927
+ let _e = null, $e = 0;
928
+ const Ca = Promise.resolve();
929
+ function _a(e) {
930
+ we.length && we.includes(e, Gt && e.allowRecurse ? Pe + 1 : Pe) || (e.id == null ? we.push(e) : we.splice(function(t) {
931
+ let n = Pe + 1, i = we.length;
932
+ for (; n < i; ) {
933
+ const a = n + i >>> 1, r = we[a], l = vt(r);
934
+ l < t || l === t && r.pre ? n = a + 1 : i = a;
935
+ }
936
+ return n;
937
+ }(e.id), 0, e), Xn());
938
+ }
939
+ function Xn() {
940
+ Gt || fo || (fo = !0, Ca.then(Jn));
941
+ }
942
+ const vt = (e) => e.id == null ? 1 / 0 : e.id, Ta = (e, t) => {
943
+ const n = vt(e) - vt(t);
944
+ if (n === 0) {
945
+ if (e.pre && !t.pre)
946
+ return -1;
947
+ if (t.pre && !e.pre)
948
+ return 1;
949
+ }
950
+ return n;
951
+ };
952
+ function Jn(e) {
953
+ fo = !1, Gt = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), we.sort(Ta);
954
+ const t = process.env.NODE_ENV !== "production" ? (n) => Ho(e, n) : jn;
955
+ try {
956
+ for (Pe = 0; Pe < we.length; Pe++) {
957
+ const n = we[Pe];
958
+ if (n && n.active !== !1) {
959
+ if (process.env.NODE_ENV !== "production" && t(n))
960
+ continue;
961
+ Ao(n, null, 14);
962
+ }
963
+ }
964
+ } finally {
965
+ Pe = 0, we.length = 0, function(n) {
966
+ if (nt.length) {
967
+ const i = [...new Set(nt)];
968
+ if (nt.length = 0, _e)
969
+ return void _e.push(...i);
970
+ for (_e = i, process.env.NODE_ENV !== "production" && (n = n || /* @__PURE__ */ new Map()), _e.sort((a, r) => vt(a) - vt(r)), $e = 0; $e < _e.length; $e++)
971
+ process.env.NODE_ENV !== "production" && Ho(n, _e[$e]) || _e[$e]();
972
+ _e = null, $e = 0;
973
+ }
974
+ }(e), Gt = !1, (we.length || nt.length) && Jn(e);
975
+ }
976
+ }
977
+ function Ho(e, t) {
978
+ if (e.has(t)) {
979
+ const n = e.get(t);
980
+ if (n > 100) {
981
+ const i = t.ownerInstance, a = i && ei(i.type);
982
+ return wo(`Maximum recursive updates exceeded${a ? ` in component <${a}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
983
+ }
984
+ e.set(t, n + 1);
985
+ } else
986
+ e.set(t, 1);
987
+ }
988
+ const ct = /* @__PURE__ */ new Set();
989
+ process.env.NODE_ENV !== "production" && (lo().__VUE_HMR_RUNTIME__ = { createRecord: Xt(function(e, t) {
990
+ return Ft.has(e) ? !1 : (Ft.set(e, { initialDef: ut(t), instances: /* @__PURE__ */ new Set() }), !0);
991
+ }), rerender: Xt(function(e, t) {
992
+ const n = Ft.get(e);
993
+ n && (n.initialDef.render = t, [...n.instances].forEach((i) => {
994
+ t && (i.render = t, ut(i.type).render = t), i.renderCache = [], i.update();
995
+ }));
996
+ }), reload: Xt(function(e, t) {
997
+ const n = Ft.get(e);
998
+ if (!n)
999
+ return;
1000
+ t = ut(t), Bo(n.initialDef, t);
1001
+ const i = [...n.instances];
1002
+ for (const r of i) {
1003
+ const l = ut(r.type);
1004
+ ct.has(l) || (l !== n.initialDef && Bo(l, t), ct.add(l)), r.appContext.propsCache.delete(r.type), r.appContext.emitsCache.delete(r.type), r.appContext.optionsCache.delete(r.type), r.ceReload ? (ct.add(l), r.ceReload(t.styles), ct.delete(l)) : r.parent ? _a(r.parent.update) : r.appContext.reload ? r.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
1005
+ }
1006
+ a = () => {
1007
+ for (const r of i)
1008
+ ct.delete(ut(r.type));
1009
+ }, De(a) ? nt.push(...a) : _e && _e.includes(a, a.allowRecurse ? $e + 1 : $e) || nt.push(a), Xn();
1010
+ var a;
1011
+ }) });
1012
+ const Ft = /* @__PURE__ */ new Map();
1013
+ function ut(e) {
1014
+ return Ut(t = e) && "__vccOpts" in t ? e.__vccOpts : e;
1015
+ var t;
1016
+ }
1017
+ function Bo(e, t) {
1018
+ bo(e, t);
1019
+ for (const n in e)
1020
+ n === "__file" || n in t || delete e[n];
1021
+ }
1022
+ function Xt(e) {
1023
+ return (t, n) => {
1024
+ try {
1025
+ return e(t, n);
1026
+ } catch (i) {
1027
+ console.error(i), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
1028
+ }
1029
+ };
1030
+ }
1031
+ let Jt;
1032
+ process.env.NODE_ENV;
1033
+ let Yo = "__VUE_INSTANCE_SETTERS__";
1034
+ (Jt = lo()[Yo]) || (Jt = lo()[Yo] = []), Jt.push((e) => e);
1035
+ const La = /(?:^|[-_])(\w)/g, Oa = (e) => e.replace(La, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1036
+ function ei(e, t = !0) {
1037
+ return Ut(e) ? e.displayName || e.name : e.name || t && e.__name;
1038
+ }
1039
+ function Ko(e, t, n = !1) {
1040
+ let i = ei(t);
1041
+ if (!i && t.__file) {
1042
+ const a = t.__file.match(/([^/\\]+)\.\w+$/);
1043
+ a && (i = a[1]);
1044
+ }
1045
+ if (!i && e && e.parent) {
1046
+ const a = (r) => {
1047
+ for (const l in r)
1048
+ if (r[l] === t)
1049
+ return l;
1050
+ };
1051
+ i = a(e.components || e.parent.type.components) || a(e.appContext.components);
1052
+ }
1053
+ return i ? Oa(i) : n ? "App" : "Anonymous";
1054
+ }
1055
+ const Be = (e, t) => function(n, i, a = !1) {
1056
+ let r, l;
1057
+ const o = Ut(n);
1058
+ return o ? (r = n, l = process.env.NODE_ENV !== "production" ? () => {
1059
+ console.warn("Write operation failed: computed value is readonly");
1060
+ } : jn) : (r = n.get, l = n.set), new wa(r, l, o || !l, a);
1061
+ }(e, 0, !1);
1062
+ function Na(e) {
1063
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1064
+ }
1065
+ var qo, Zo = { exports: {} };
1066
+ function ja() {
1067
+ return qo || (qo = 1, Zo.exports = function() {
1068
+ var e = 1e3, t = 6e4, n = 36e5, i = "millisecond", a = "second", r = "minute", l = "hour", o = "day", c = "week", d = "month", h = "quarter", u = "year", y = "date", L = "Invalid Date", N = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, A = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
1069
+ var w = ["th", "st", "nd", "rd"], v = b % 100;
1070
+ return "[" + b + (w[(v - 20) % 10] || w[v] || w[0]) + "]";
1071
+ } }, p = function(b, w, v) {
1072
+ var _ = String(b);
1073
+ return !_ || _.length >= w ? b : "" + Array(w + 1 - _.length).join(v) + b;
1074
+ }, m = { s: p, z: function(b) {
1075
+ var w = -b.utcOffset(), v = Math.abs(w), _ = Math.floor(v / 60), T = v % 60;
1076
+ return (w <= 0 ? "+" : "-") + p(_, 2, "0") + ":" + p(T, 2, "0");
1077
+ }, m: function b(w, v) {
1078
+ if (w.date() < v.date())
1079
+ return -b(v, w);
1080
+ var _ = 12 * (v.year() - w.year()) + (v.month() - w.month()), T = w.clone().add(_, d), F = v - T < 0, D = w.clone().add(_ + (F ? -1 : 1), d);
1081
+ return +(-(_ + (v - T) / (F ? T - D : D - T)) || 0);
1082
+ }, a: function(b) {
1083
+ return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
1084
+ }, p: function(b) {
1085
+ return { M: d, y: u, w: c, d: o, D: y, h: l, m: r, s: a, ms: i, Q: h }[b] || String(b || "").toLowerCase().replace(/s$/, "");
1086
+ }, u: function(b) {
1087
+ return b === void 0;
1088
+ } }, s = "en", S = {};
1089
+ S[s] = g;
1090
+ var O = "$isDayjsObject", C = function(b) {
1091
+ return b instanceof j || !(!b || !b[O]);
1092
+ }, I = function b(w, v, _) {
1093
+ var T;
1094
+ if (!w)
1095
+ return s;
1096
+ if (typeof w == "string") {
1097
+ var F = w.toLowerCase();
1098
+ S[F] && (T = F), v && (S[F] = v, T = F);
1099
+ var D = w.split("-");
1100
+ if (!T && D.length > 1)
1101
+ return b(D[0]);
1102
+ } else {
1103
+ var E = w.name;
1104
+ S[E] = w, T = E;
1105
+ }
1106
+ return !_ && T && (s = T), T || !_ && s;
1107
+ }, x = function(b, w) {
1108
+ if (C(b))
1109
+ return b.clone();
1110
+ var v = typeof w == "object" ? w : {};
1111
+ return v.date = b, v.args = arguments, new j(v);
1112
+ }, f = m;
1113
+ f.l = I, f.i = C, f.w = function(b, w) {
1114
+ return x(b, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
1115
+ };
1116
+ var j = function() {
1117
+ function b(v) {
1118
+ this.$L = I(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[O] = !0;
1119
+ }
1120
+ var w = b.prototype;
1121
+ return w.parse = function(v) {
1122
+ this.$d = function(_) {
1123
+ var T = _.date, F = _.utc;
1124
+ if (T === null)
1125
+ return /* @__PURE__ */ new Date(NaN);
1126
+ if (f.u(T))
1127
+ return /* @__PURE__ */ new Date();
1128
+ if (T instanceof Date)
1129
+ return new Date(T);
1130
+ if (typeof T == "string" && !/Z$/i.test(T)) {
1131
+ var D = T.match(N);
1132
+ if (D) {
1133
+ var E = D[2] - 1 || 0, R = (D[7] || "0").substring(0, 3);
1134
+ return F ? new Date(Date.UTC(D[1], E, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, R)) : new Date(D[1], E, D[3] || 1, D[4] || 0, D[5] || 0, D[6] || 0, R);
1135
+ }
1136
+ }
1137
+ return new Date(T);
1138
+ }(v), this.init();
1139
+ }, w.init = function() {
1140
+ var v = this.$d;
1141
+ this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
1142
+ }, w.$utils = function() {
1143
+ return f;
1144
+ }, w.isValid = function() {
1145
+ return this.$d.toString() !== L;
1146
+ }, w.isSame = function(v, _) {
1147
+ var T = x(v);
1148
+ return this.startOf(_) <= T && T <= this.endOf(_);
1149
+ }, w.isAfter = function(v, _) {
1150
+ return x(v) < this.startOf(_);
1151
+ }, w.isBefore = function(v, _) {
1152
+ return this.endOf(_) < x(v);
1153
+ }, w.$g = function(v, _, T) {
1154
+ return f.u(v) ? this[_] : this.set(T, v);
1155
+ }, w.unix = function() {
1156
+ return Math.floor(this.valueOf() / 1e3);
1157
+ }, w.valueOf = function() {
1158
+ return this.$d.getTime();
1159
+ }, w.startOf = function(v, _) {
1160
+ var T = this, F = !!f.u(_) || _, D = f.p(v), E = function(ie, re) {
1161
+ var oe = f.w(T.$u ? Date.UTC(T.$y, re, ie) : new Date(T.$y, re, ie), T);
1162
+ return F ? oe : oe.endOf(o);
1163
+ }, R = function(ie, re) {
1164
+ return f.w(T.toDate()[ie].apply(T.toDate("s"), (F ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(re)), T);
1165
+ }, M = this.$W, W = this.$M, Z = this.$D, se = "set" + (this.$u ? "UTC" : "");
1166
+ switch (D) {
1167
+ case u:
1168
+ return F ? E(1, 0) : E(31, 11);
1169
+ case d:
1170
+ return F ? E(1, W) : E(0, W + 1);
1171
+ case c:
1172
+ var H = this.$locale().weekStart || 0, pe = (M < H ? M + 7 : M) - H;
1173
+ return E(F ? Z - pe : Z + (6 - pe), W);
1174
+ case o:
1175
+ case y:
1176
+ return R(se + "Hours", 0);
1177
+ case l:
1178
+ return R(se + "Minutes", 1);
1179
+ case r:
1180
+ return R(se + "Seconds", 2);
1181
+ case a:
1182
+ return R(se + "Milliseconds", 3);
1183
+ default:
1184
+ return this.clone();
1185
+ }
1186
+ }, w.endOf = function(v) {
1187
+ return this.startOf(v, !1);
1188
+ }, w.$set = function(v, _) {
1189
+ var T, F = f.p(v), D = "set" + (this.$u ? "UTC" : ""), E = (T = {}, T[o] = D + "Date", T[y] = D + "Date", T[d] = D + "Month", T[u] = D + "FullYear", T[l] = D + "Hours", T[r] = D + "Minutes", T[a] = D + "Seconds", T[i] = D + "Milliseconds", T)[F], R = F === o ? this.$D + (_ - this.$W) : _;
1190
+ if (F === d || F === u) {
1191
+ var M = this.clone().set(y, 1);
1192
+ M.$d[E](R), M.init(), this.$d = M.set(y, Math.min(this.$D, M.daysInMonth())).$d;
1193
+ } else
1194
+ E && this.$d[E](R);
1195
+ return this.init(), this;
1196
+ }, w.set = function(v, _) {
1197
+ return this.clone().$set(v, _);
1198
+ }, w.get = function(v) {
1199
+ return this[f.p(v)]();
1200
+ }, w.add = function(v, _) {
1201
+ var T, F = this;
1202
+ v = Number(v);
1203
+ var D = f.p(_), E = function(W) {
1204
+ var Z = x(F);
1205
+ return f.w(Z.date(Z.date() + Math.round(W * v)), F);
1206
+ };
1207
+ if (D === d)
1208
+ return this.set(d, this.$M + v);
1209
+ if (D === u)
1210
+ return this.set(u, this.$y + v);
1211
+ if (D === o)
1212
+ return E(1);
1213
+ if (D === c)
1214
+ return E(7);
1215
+ var R = (T = {}, T[r] = t, T[l] = n, T[a] = e, T)[D] || 1, M = this.$d.getTime() + v * R;
1216
+ return f.w(M, this);
1217
+ }, w.subtract = function(v, _) {
1218
+ return this.add(-1 * v, _);
1219
+ }, w.format = function(v) {
1220
+ var _ = this, T = this.$locale();
1221
+ if (!this.isValid())
1222
+ return T.invalidDate || L;
1223
+ var F = v || "YYYY-MM-DDTHH:mm:ssZ", D = f.z(this), E = this.$H, R = this.$m, M = this.$M, W = T.weekdays, Z = T.months, se = T.meridiem, H = function(re, oe, Te, Le) {
1224
+ return re && (re[oe] || re(_, F)) || Te[oe].slice(0, Le);
1225
+ }, pe = function(re) {
1226
+ return f.s(E % 12 || 12, re, "0");
1227
+ }, ie = se || function(re, oe, Te) {
1228
+ var Le = re < 12 ? "AM" : "PM";
1229
+ return Te ? Le.toLowerCase() : Le;
1230
+ };
1231
+ return F.replace(A, function(re, oe) {
1232
+ return oe || function(Te) {
1233
+ switch (Te) {
1234
+ case "YY":
1235
+ return String(_.$y).slice(-2);
1236
+ case "YYYY":
1237
+ return f.s(_.$y, 4, "0");
1238
+ case "M":
1239
+ return M + 1;
1240
+ case "MM":
1241
+ return f.s(M + 1, 2, "0");
1242
+ case "MMM":
1243
+ return H(T.monthsShort, M, Z, 3);
1244
+ case "MMMM":
1245
+ return H(Z, M);
1246
+ case "D":
1247
+ return _.$D;
1248
+ case "DD":
1249
+ return f.s(_.$D, 2, "0");
1250
+ case "d":
1251
+ return String(_.$W);
1252
+ case "dd":
1253
+ return H(T.weekdaysMin, _.$W, W, 2);
1254
+ case "ddd":
1255
+ return H(T.weekdaysShort, _.$W, W, 3);
1256
+ case "dddd":
1257
+ return W[_.$W];
1258
+ case "H":
1259
+ return String(E);
1260
+ case "HH":
1261
+ return f.s(E, 2, "0");
1262
+ case "h":
1263
+ return pe(1);
1264
+ case "hh":
1265
+ return pe(2);
1266
+ case "a":
1267
+ return ie(E, R, !0);
1268
+ case "A":
1269
+ return ie(E, R, !1);
1270
+ case "m":
1271
+ return String(R);
1272
+ case "mm":
1273
+ return f.s(R, 2, "0");
1274
+ case "s":
1275
+ return String(_.$s);
1276
+ case "ss":
1277
+ return f.s(_.$s, 2, "0");
1278
+ case "SSS":
1279
+ return f.s(_.$ms, 3, "0");
1280
+ case "Z":
1281
+ return D;
1282
+ }
1283
+ return null;
1284
+ }(re) || D.replace(":", "");
1285
+ });
1286
+ }, w.utcOffset = function() {
1287
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
1288
+ }, w.diff = function(v, _, T) {
1289
+ var F, D = this, E = f.p(_), R = x(v), M = (R.utcOffset() - this.utcOffset()) * t, W = this - R, Z = function() {
1290
+ return f.m(D, R);
1291
+ };
1292
+ switch (E) {
1293
+ case u:
1294
+ F = Z() / 12;
1295
+ break;
1296
+ case d:
1297
+ F = Z();
1298
+ break;
1299
+ case h:
1300
+ F = Z() / 3;
1301
+ break;
1302
+ case c:
1303
+ F = (W - M) / 6048e5;
1304
+ break;
1305
+ case o:
1306
+ F = (W - M) / 864e5;
1307
+ break;
1308
+ case l:
1309
+ F = W / n;
1310
+ break;
1311
+ case r:
1312
+ F = W / t;
1313
+ break;
1314
+ case a:
1315
+ F = W / e;
1316
+ break;
1317
+ default:
1318
+ F = W;
1319
+ }
1320
+ return T ? F : f.a(F);
1321
+ }, w.daysInMonth = function() {
1322
+ return this.endOf(d).$D;
1323
+ }, w.$locale = function() {
1324
+ return S[this.$L];
1325
+ }, w.locale = function(v, _) {
1326
+ if (!v)
1327
+ return this.$L;
1328
+ var T = this.clone(), F = I(v, _, !0);
1329
+ return F && (T.$L = F), T;
1330
+ }, w.clone = function() {
1331
+ return f.w(this.$d, this);
1332
+ }, w.toDate = function() {
1333
+ return new Date(this.valueOf());
1334
+ }, w.toJSON = function() {
1335
+ return this.isValid() ? this.toISOString() : null;
1336
+ }, w.toISOString = function() {
1337
+ return this.$d.toISOString();
1338
+ }, w.toString = function() {
1339
+ return this.$d.toUTCString();
1340
+ }, b;
1341
+ }(), k = j.prototype;
1342
+ return x.prototype = k, [["$ms", i], ["$s", a], ["$m", r], ["$H", l], ["$W", o], ["$M", d], ["$y", u], ["$D", y]].forEach(function(b) {
1343
+ k[b[1]] = function(w) {
1344
+ return this.$g(w, b[0], b[1]);
1345
+ };
1346
+ }), x.extend = function(b, w) {
1347
+ return b.$i || (b(w, j, x), b.$i = !0), x;
1348
+ }, x.locale = I, x.isDayjs = C, x.unix = function(b) {
1349
+ return x(1e3 * b);
1350
+ }, x.en = S[s], x.Ls = S, x.p = {}, x;
1351
+ }()), Zo.exports;
1352
+ }
1353
+ var ge = Na(ja()), ti = typeof global == "object" && global && global.Object === Object && global, Ia = typeof self == "object" && self && self.Object === Object && self, Fe = ti || Ia || Function("return this")(), it = Fe.Symbol, oi = Object.prototype, ka = oi.hasOwnProperty, Da = oi.toString, dt = it ? it.toStringTag : void 0, Fa = Object.prototype.toString, Qo = it ? it.toStringTag : void 0;
1354
+ function At(e) {
1355
+ return e == null ? e === void 0 ? "[object Undefined]" : "[object Null]" : Qo && Qo in Object(e) ? function(t) {
1356
+ var n = ka.call(t, dt), i = t[dt];
1357
+ try {
1358
+ t[dt] = void 0;
1359
+ var a = !0;
1360
+ } catch {
1361
+ }
1362
+ var r = Da.call(t);
1363
+ return a && (n ? t[dt] = i : delete t[dt]), r;
1364
+ }(e) : function(t) {
1365
+ return Fa.call(t);
1366
+ }(e);
1367
+ }
1368
+ function Ct(e) {
1369
+ return e != null && typeof e == "object";
1370
+ }
1371
+ var Co = Array.isArray;
1372
+ function Kt(e) {
1373
+ var t = typeof e;
1374
+ return e != null && (t == "object" || t == "function");
1375
+ }
1376
+ function ni(e) {
1377
+ if (!Kt(e))
1378
+ return !1;
1379
+ var t = At(e);
1380
+ return t == "[object Function]" || t == "[object GeneratorFunction]" || t == "[object AsyncFunction]" || t == "[object Proxy]";
1381
+ }
1382
+ var Xo, eo = Fe["__core-js_shared__"], Jo = (Xo = /[^.]+$/.exec(eo && eo.keys && eo.keys.IE_PROTO || "")) ? "Symbol(src)_1." + Xo : "", Ea = Function.prototype.toString;
1383
+ function Qe(e) {
1384
+ if (e != null) {
1385
+ try {
1386
+ return Ea.call(e);
1387
+ } catch {
1388
+ }
1389
+ try {
1390
+ return e + "";
1391
+ } catch {
1392
+ }
1393
+ }
1394
+ return "";
1395
+ }
1396
+ var Ma = /^\[object .+?Constructor\]$/, Va = Function.prototype, za = Object.prototype, $a = Va.toString, Ra = za.hasOwnProperty, Pa = RegExp("^" + $a.call(Ra).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
1397
+ function Ga(e) {
1398
+ return !(!Kt(e) || (t = e, Jo && Jo in t)) && (ni(e) ? Pa : Ma).test(Qe(e));
1399
+ var t;
1400
+ }
1401
+ function Xe(e, t) {
1402
+ var n = function(i, a) {
1403
+ return i == null ? void 0 : i[a];
1404
+ }(e, t);
1405
+ return Ga(n) ? n : void 0;
1406
+ }
1407
+ var po = Xe(Fe, "WeakMap"), en = Object.create, Wa = function() {
1408
+ function e() {
1409
+ }
1410
+ return function(t) {
1411
+ if (!Kt(t))
1412
+ return {};
1413
+ if (en)
1414
+ return en(t);
1415
+ e.prototype = t;
1416
+ var n = new e();
1417
+ return e.prototype = void 0, n;
1418
+ };
1419
+ }(), tn = function() {
1420
+ try {
1421
+ var e = Xe(Object, "defineProperty");
1422
+ return e({}, "", {}), e;
1423
+ } catch {
1424
+ }
1425
+ }(), Ua = /^(?:0|[1-9]\d*)$/;
1426
+ function Ha(e, t) {
1427
+ var n = typeof e;
1428
+ return !!(t = t ?? 9007199254740991) && (n == "number" || n != "symbol" && Ua.test(e)) && e > -1 && e % 1 == 0 && e < t;
1429
+ }
1430
+ function ii(e, t) {
1431
+ return e === t || e != e && t != t;
1432
+ }
1433
+ var Ba = Object.prototype.hasOwnProperty;
1434
+ function Ya(e, t, n) {
1435
+ var i = e[t];
1436
+ Ba.call(e, t) && ii(i, n) && (n !== void 0 || t in e) || function(a, r, l) {
1437
+ r == "__proto__" && tn ? tn(a, r, { configurable: !0, enumerable: !0, value: l, writable: !0 }) : a[r] = l;
1438
+ }(e, t, n);
1439
+ }
1440
+ function ai(e) {
1441
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= 9007199254740991;
1442
+ }
1443
+ var Ka = Object.prototype;
1444
+ function ri(e) {
1445
+ var t = e && e.constructor;
1446
+ return e === (typeof t == "function" && t.prototype || Ka);
1447
+ }
1448
+ function on(e) {
1449
+ return Ct(e) && At(e) == "[object Arguments]";
1450
+ }
1451
+ var li = Object.prototype, qa = li.hasOwnProperty, Za = li.propertyIsEnumerable, Qa = on(function() {
1452
+ return arguments;
1453
+ }()) ? on : function(e) {
1454
+ return Ct(e) && qa.call(e, "callee") && !Za.call(e, "callee");
1455
+ }, si = typeof exports == "object" && exports && !exports.nodeType && exports, nn = si && typeof module == "object" && module && !module.nodeType && module, an = nn && nn.exports === si ? Fe.Buffer : void 0, ci = (an ? an.isBuffer : void 0) || function() {
1456
+ return !1;
1457
+ }, J = {};
1458
+ function _o(e) {
1459
+ return function(t) {
1460
+ return e(t);
1461
+ };
1462
+ }
1463
+ J["[object Float32Array]"] = J["[object Float64Array]"] = J["[object Int8Array]"] = J["[object Int16Array]"] = J["[object Int32Array]"] = J["[object Uint8Array]"] = J["[object Uint8ClampedArray]"] = J["[object Uint16Array]"] = J["[object Uint32Array]"] = !0, J["[object Arguments]"] = J["[object Array]"] = J["[object ArrayBuffer]"] = J["[object Boolean]"] = J["[object DataView]"] = J["[object Date]"] = J["[object Error]"] = J["[object Function]"] = J["[object Map]"] = J["[object Number]"] = J["[object Object]"] = J["[object RegExp]"] = J["[object Set]"] = J["[object String]"] = J["[object WeakMap]"] = !1;
1464
+ var ui = typeof exports == "object" && exports && !exports.nodeType && exports, yt = ui && typeof module == "object" && module && !module.nodeType && module, to = yt && yt.exports === ui && ti.process, at = function() {
1465
+ try {
1466
+ var e = yt && yt.require && yt.require("util").types;
1467
+ return e || to && to.binding && to.binding("util");
1468
+ } catch {
1469
+ }
1470
+ }(), rn = at && at.isTypedArray, Xa = rn ? _o(rn) : function(e) {
1471
+ return Ct(e) && ai(e.length) && !!J[At(e)];
1472
+ }, Ja = Object.prototype.hasOwnProperty;
1473
+ function er(e, t) {
1474
+ var n = Co(e), i = !n && Qa(e), a = !n && !i && ci(e), r = !n && !i && !a && Xa(e), l = n || i || a || r, o = l ? function(h, u) {
1475
+ for (var y = -1, L = Array(h); ++y < h; )
1476
+ L[y] = u(y);
1477
+ return L;
1478
+ }(e.length, String) : [], c = o.length;
1479
+ for (var d in e)
1480
+ !Ja.call(e, d) || l && (d == "length" || a && (d == "offset" || d == "parent") || r && (d == "buffer" || d == "byteLength" || d == "byteOffset") || Ha(d, c)) || o.push(d);
1481
+ return o;
1482
+ }
1483
+ function di(e, t) {
1484
+ return function(n) {
1485
+ return e(t(n));
1486
+ };
1487
+ }
1488
+ var tr = di(Object.keys, Object), or = Object.prototype.hasOwnProperty;
1489
+ function nr(e) {
1490
+ return (t = e) != null && ai(t.length) && !ni(t) ? er(e) : function(n) {
1491
+ if (!ri(n))
1492
+ return tr(n);
1493
+ var i = [];
1494
+ for (var a in Object(n))
1495
+ or.call(n, a) && a != "constructor" && i.push(a);
1496
+ return i;
1497
+ }(e);
1498
+ var t;
1499
+ }
1500
+ var ft = Xe(Object, "create"), ir = Object.prototype.hasOwnProperty, ar = Object.prototype.hasOwnProperty;
1501
+ function Ke(e) {
1502
+ var t = -1, n = e == null ? 0 : e.length;
1503
+ for (this.clear(); ++t < n; ) {
1504
+ var i = e[t];
1505
+ this.set(i[0], i[1]);
1506
+ }
1507
+ }
1508
+ function Et(e, t) {
1509
+ for (var n = e.length; n--; )
1510
+ if (ii(e[n][0], t))
1511
+ return n;
1512
+ return -1;
1513
+ }
1514
+ Ke.prototype.clear = function() {
1515
+ this.__data__ = ft ? ft(null) : {}, this.size = 0;
1516
+ }, Ke.prototype.delete = function(e) {
1517
+ var t = this.has(e) && delete this.__data__[e];
1518
+ return this.size -= t ? 1 : 0, t;
1519
+ }, Ke.prototype.get = function(e) {
1520
+ var t = this.__data__;
1521
+ if (ft) {
1522
+ var n = t[e];
1523
+ return n === "__lodash_hash_undefined__" ? void 0 : n;
1524
+ }
1525
+ return ir.call(t, e) ? t[e] : void 0;
1526
+ }, Ke.prototype.has = function(e) {
1527
+ var t = this.__data__;
1528
+ return ft ? t[e] !== void 0 : ar.call(t, e);
1529
+ }, Ke.prototype.set = function(e, t) {
1530
+ var n = this.__data__;
1531
+ return this.size += this.has(e) ? 0 : 1, n[e] = ft && t === void 0 ? "__lodash_hash_undefined__" : t, this;
1532
+ };
1533
+ var rr = Array.prototype.splice;
1534
+ function ke(e) {
1535
+ var t = -1, n = e == null ? 0 : e.length;
1536
+ for (this.clear(); ++t < n; ) {
1537
+ var i = e[t];
1538
+ this.set(i[0], i[1]);
1539
+ }
1540
+ }
1541
+ ke.prototype.clear = function() {
1542
+ this.__data__ = [], this.size = 0;
1543
+ }, ke.prototype.delete = function(e) {
1544
+ var t = this.__data__, n = Et(t, e);
1545
+ return !(n < 0) && (n == t.length - 1 ? t.pop() : rr.call(t, n, 1), --this.size, !0);
1546
+ }, ke.prototype.get = function(e) {
1547
+ var t = this.__data__, n = Et(t, e);
1548
+ return n < 0 ? void 0 : t[n][1];
1549
+ }, ke.prototype.has = function(e) {
1550
+ return Et(this.__data__, e) > -1;
1551
+ }, ke.prototype.set = function(e, t) {
1552
+ var n = this.__data__, i = Et(n, e);
1553
+ return i < 0 ? (++this.size, n.push([e, t])) : n[i][1] = t, this;
1554
+ };
1555
+ var St = Xe(Fe, "Map");
1556
+ function Mt(e, t) {
1557
+ var n, i, a = e.__data__;
1558
+ return ((i = typeof (n = t)) == "string" || i == "number" || i == "symbol" || i == "boolean" ? n !== "__proto__" : n === null) ? a[typeof t == "string" ? "string" : "hash"] : a.map;
1559
+ }
1560
+ function et(e) {
1561
+ var t = -1, n = e == null ? 0 : e.length;
1562
+ for (this.clear(); ++t < n; ) {
1563
+ var i = e[t];
1564
+ this.set(i[0], i[1]);
1565
+ }
1566
+ }
1567
+ et.prototype.clear = function() {
1568
+ this.size = 0, this.__data__ = { hash: new Ke(), map: new (St || ke)(), string: new Ke() };
1569
+ }, et.prototype.delete = function(e) {
1570
+ var t = Mt(this, e).delete(e);
1571
+ return this.size -= t ? 1 : 0, t;
1572
+ }, et.prototype.get = function(e) {
1573
+ return Mt(this, e).get(e);
1574
+ }, et.prototype.has = function(e) {
1575
+ return Mt(this, e).has(e);
1576
+ }, et.prototype.set = function(e, t) {
1577
+ var n = Mt(this, e), i = n.size;
1578
+ return n.set(e, t), this.size += n.size == i ? 0 : 1, this;
1579
+ };
1580
+ var lr = di(Object.getPrototypeOf, Object);
1581
+ function tt(e) {
1582
+ var t = this.__data__ = new ke(e);
1583
+ this.size = t.size;
1584
+ }
1585
+ tt.prototype.clear = function() {
1586
+ this.__data__ = new ke(), this.size = 0;
1587
+ }, tt.prototype.delete = function(e) {
1588
+ var t = this.__data__, n = t.delete(e);
1589
+ return this.size = t.size, n;
1590
+ }, tt.prototype.get = function(e) {
1591
+ return this.__data__.get(e);
1592
+ }, tt.prototype.has = function(e) {
1593
+ return this.__data__.has(e);
1594
+ }, tt.prototype.set = function(e, t) {
1595
+ var n = this.__data__;
1596
+ if (n instanceof ke) {
1597
+ var i = n.__data__;
1598
+ if (!St || i.length < 199)
1599
+ return i.push([e, t]), this.size = ++n.size, this;
1600
+ n = this.__data__ = new et(i);
1601
+ }
1602
+ return n.set(e, t), this.size = n.size, this;
1603
+ };
1604
+ var sr = Object.prototype.propertyIsEnumerable, ln = Object.getOwnPropertySymbols, cr = ln ? function(e) {
1605
+ return e == null ? [] : (e = Object(e), function(t, n) {
1606
+ for (var i = -1, a = t == null ? 0 : t.length, r = 0, l = []; ++i < a; ) {
1607
+ var o = t[i];
1608
+ n(o, i, t) && (l[r++] = o);
1609
+ }
1610
+ return l;
1611
+ }(ln(e), function(t) {
1612
+ return sr.call(e, t);
1613
+ }));
1614
+ } : function() {
1615
+ return [];
1616
+ };
1617
+ function ur(e) {
1618
+ return function(t, n, i) {
1619
+ var a = n(t);
1620
+ return Co(t) ? a : function(r, l) {
1621
+ for (var o = -1, c = l.length, d = r.length; ++o < c; )
1622
+ r[d + o] = l[o];
1623
+ return r;
1624
+ }(a, i(t));
1625
+ }(e, nr, cr);
1626
+ }
1627
+ var ho = Xe(Fe, "DataView"), mo = Xe(Fe, "Promise"), yo = Xe(Fe, "Set"), sn = "[object Map]", cn = "[object Promise]", un = "[object Set]", dn = "[object WeakMap]", fn = "[object DataView]", dr = Qe(ho), fr = Qe(St), pr = Qe(mo), hr = Qe(yo), mr = Qe(po), Ie = At;
1628
+ (ho && Ie(new ho(new ArrayBuffer(1))) != fn || St && Ie(new St()) != sn || mo && Ie(mo.resolve()) != cn || yo && Ie(new yo()) != un || po && Ie(new po()) != dn) && (Ie = function(e) {
1629
+ var t = At(e), n = t == "[object Object]" ? e.constructor : void 0, i = n ? Qe(n) : "";
1630
+ if (i)
1631
+ switch (i) {
1632
+ case dr:
1633
+ return fn;
1634
+ case fr:
1635
+ return sn;
1636
+ case pr:
1637
+ return cn;
1638
+ case hr:
1639
+ return un;
1640
+ case mr:
1641
+ return dn;
1642
+ }
1643
+ return t;
1644
+ });
1645
+ var yr = Object.prototype.hasOwnProperty, pn = Fe.Uint8Array;
1646
+ function oo(e) {
1647
+ var t = new e.constructor(e.byteLength);
1648
+ return new pn(t).set(new pn(e)), t;
1649
+ }
1650
+ var gr = /\w*$/, hn = it ? it.prototype : void 0, mn = hn ? hn.valueOf : void 0;
1651
+ function br(e, t, n) {
1652
+ var i, a, r, l, o, c = e.constructor;
1653
+ switch (t) {
1654
+ case "[object ArrayBuffer]":
1655
+ return oo(e);
1656
+ case "[object Boolean]":
1657
+ case "[object Date]":
1658
+ return new c(+e);
1659
+ case "[object DataView]":
1660
+ return o = oo((l = e).buffer), new l.constructor(o, l.byteOffset, l.byteLength);
1661
+ case "[object Float32Array]":
1662
+ case "[object Float64Array]":
1663
+ case "[object Int8Array]":
1664
+ case "[object Int16Array]":
1665
+ case "[object Int32Array]":
1666
+ case "[object Uint8Array]":
1667
+ case "[object Uint8ClampedArray]":
1668
+ case "[object Uint16Array]":
1669
+ case "[object Uint32Array]":
1670
+ return function(d) {
1671
+ var h = oo(d.buffer);
1672
+ return new d.constructor(h, d.byteOffset, d.length);
1673
+ }(e);
1674
+ case "[object Map]":
1675
+ case "[object Set]":
1676
+ return new c();
1677
+ case "[object Number]":
1678
+ case "[object String]":
1679
+ return new c(e);
1680
+ case "[object RegExp]":
1681
+ return (r = new (a = e).constructor(a.source, gr.exec(a))).lastIndex = a.lastIndex, r;
1682
+ case "[object Symbol]":
1683
+ return i = e, mn ? Object(mn.call(i)) : {};
1684
+ }
1685
+ }
1686
+ var yn = at && at.isMap, xr = yn ? _o(yn) : function(e) {
1687
+ return Ct(e) && Ie(e) == "[object Map]";
1688
+ }, gn = at && at.isSet, vr = gn ? _o(gn) : function(e) {
1689
+ return Ct(e) && Ie(e) == "[object Set]";
1690
+ }, fi = "[object Arguments]", pi = "[object Function]", hi = "[object Object]", X = {};
1691
+ function $t(e, t, n, i, a, r) {
1692
+ var l;
1693
+ if (l !== void 0)
1694
+ return l;
1695
+ if (!Kt(e))
1696
+ return e;
1697
+ var o = Co(e);
1698
+ if (o)
1699
+ l = function(y) {
1700
+ var L = y.length, N = new y.constructor(L);
1701
+ return L && typeof y[0] == "string" && yr.call(y, "index") && (N.index = y.index, N.input = y.input), N;
1702
+ }(e);
1703
+ else {
1704
+ var c = Ie(e), d = c == pi || c == "[object GeneratorFunction]";
1705
+ if (ci(e))
1706
+ return e.slice();
1707
+ if (c == hi || c == fi || d && !a)
1708
+ l = d ? {} : function(y) {
1709
+ return typeof y.constructor != "function" || ri(y) ? {} : Wa(lr(y));
1710
+ }(e);
1711
+ else {
1712
+ if (!X[c])
1713
+ return a ? e : {};
1714
+ l = br(e, c);
1715
+ }
1716
+ }
1717
+ r || (r = new tt());
1718
+ var h = r.get(e);
1719
+ if (h)
1720
+ return h;
1721
+ r.set(e, l), vr(e) ? e.forEach(function(y) {
1722
+ l.add($t(y, t, n, y, e, r));
1723
+ }) : xr(e) && e.forEach(function(y, L) {
1724
+ l.set(L, $t(y, t, n, L, e, r));
1725
+ });
1726
+ var u = o ? void 0 : ur(e);
1727
+ return function(y, L) {
1728
+ for (var N = -1, A = y == null ? 0 : y.length; ++N < A && L(y[N], N, y) !== !1; )
1729
+ ;
1730
+ }(u || e, function(y, L) {
1731
+ u && (y = e[L = y]), Ya(l, L, $t(y, t, n, L, e, r));
1732
+ }), l;
1733
+ }
1734
+ X[fi] = X["[object Array]"] = X["[object ArrayBuffer]"] = X["[object DataView]"] = X["[object Boolean]"] = X["[object Date]"] = X["[object Float32Array]"] = X["[object Float64Array]"] = X["[object Int8Array]"] = X["[object Int16Array]"] = X["[object Int32Array]"] = X["[object Map]"] = X["[object Number]"] = X[hi] = X["[object RegExp]"] = X["[object Set]"] = X["[object String]"] = X["[object Symbol]"] = X["[object Uint8Array]"] = X["[object Uint8ClampedArray]"] = X["[object Uint16Array]"] = X["[object Uint32Array]"] = !0, X["[object Error]"] = X[pi] = X["[object WeakMap]"] = !1;
1735
+ function rt(e) {
1736
+ return $t(e, 5);
1737
+ }
1738
+ let Sr = (e, t) => () => {
1739
+ let n = "", i = t;
1740
+ for (; i--; )
1741
+ n += e[Math.random() * e.length | 0];
1742
+ return n;
1743
+ };
1744
+ const gt = (e, t) => {
1745
+ let n = e;
1746
+ const i = /[.*+?^${}()()|[\]\\]/, a = Object.assign({ dayjs: ge }, t);
1747
+ let r = "";
1748
+ const l = [];
1749
+ for (const d in a) {
1750
+ let h = d;
1751
+ i.test(d) && (h = Sr("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ", 6)(), n = n.split(d).join(h)), r += `${h},`, l.push(a[d]);
1752
+ }
1753
+ r = r.replace(/,$/, "");
1754
+ const o = `function (${r}){return ${n}}`;
1755
+ let c;
1756
+ try {
1757
+ c = Function(`"use strict";return (${o})`)()(...l);
1758
+ } catch {
1759
+ return e;
1760
+ }
1761
+ return c;
1762
+ }, me = (e = "", { textData: t, codeData: n } = {}, { useNewline: i = !1, useSpace: a = !1 } = {}) => {
1763
+ const r = Ar, l = wr, o = window.config || {}, c = Object.assign(Object.assign({}, o), t), d = String(e || "").match(/\{(.+?)\}/g);
1764
+ if (d == null || d.length === 0)
1765
+ return e;
1766
+ for (let h = 0; h < d.length; h++) {
1767
+ const u = d[h];
1768
+ let y = u.slice(1, -1).trim();
1769
+ const L = /[\u4e00-\u9fa5a-z-_A-Z0-9]*/g, N = y.match(L);
1770
+ for (let A = 0; A < N.length; A++) {
1771
+ const g = N[A], p = c[g];
1772
+ p != null && typeof p != "function" && (y = y.replace(g, p));
1773
+ }
1774
+ (/\(.*\)/g.test(y) || /[+/\\*]/g.test(y)) && (y = gt(y, n)), e = e.replace(u, y);
1775
+ }
1776
+ return i && (e = e == null ? void 0 : e.replace(/\n|\\n/g, "<br/>")), a && (e = e == null ? void 0 : e.replace(/\s{2,}?/g, "&nbsp;&nbsp;")), e = (e = e.replace(/Qfw\((.*?)\)/g, (h, u) => r(u))).replace(/QwfFixed\((.*?)\)/g, (h, u) => l(u));
1777
+ }, te = (e, t) => {
1778
+ if (typeof e == "string" && typeof t == "string")
1779
+ return e.toLocaleLowerCase().includes(t.toLocaleLowerCase());
1780
+ if (typeof e == "string" && Array.isArray(t)) {
1781
+ const n = t.length;
1782
+ for (let i = 0; i < n; i++) {
1783
+ const a = t[i];
1784
+ if (typeof a == "string" && e.toLocaleLowerCase().includes(a.toLocaleLowerCase()))
1785
+ return !0;
1786
+ }
1787
+ }
1788
+ return !1;
1789
+ }, fe = (e, t) => Object.prototype.hasOwnProperty.call(e, t), Wt = (e) => {
1790
+ const t = [];
1791
+ for (const n of e)
1792
+ n.conditions ? t.push(...Wt(n.conditions)) : (n == null ? void 0 : n.dataType) === "component" && t.push(n);
1793
+ return t;
1794
+ }, pt = (e = "", t) => {
1795
+ var n;
1796
+ const i = e.match(/\{(.+?)\}/g), a = ((n = e.split(`
1797
+ `)) === null || n === void 0 ? void 0 : n.length) - 1;
1798
+ let r = "";
1799
+ if (a)
1800
+ for (let o = 0; o < a; o++)
1801
+ r += `
1802
+ `;
1803
+ let l = e;
1804
+ if (i != null && i.length) {
1805
+ for (const o of i) {
1806
+ const c = me(o, { textData: t }, { useNewline: !1, useSpace: !1 });
1807
+ c && (l = l.replace(o, c));
1808
+ }
1809
+ return `${r}{text|${l}}`;
1810
+ }
1811
+ return e;
1812
+ };
1813
+ function wr(e) {
1814
+ return Number(e).toLocaleString("zh-CN", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
1815
+ }
1816
+ function Ar(e) {
1817
+ return Number(e).toLocaleString();
1818
+ }
1819
+ const Cr = ["table", "bar", "combograph", "line", "pie", "radar", "scatter", "list", "circulate"];
1820
+ let mi = /* @__PURE__ */ new Map(), yi = [];
1821
+ const _r = ["keyValue", "conditionKey", "conditionLabel", "conditionName", "conditionValueType", "customValue", "id", "keyName"], _t = (e) => mi.get(e), bn = (e, t) => {
1822
+ if (t)
1823
+ fe(e, "indexCode") && (e.hrpIndexCode = e.indexCode, delete e.indexCode), fe(e, "indexCodeNum") && (e.hrpIndexCodeNum = e.indexCodeNum, delete e.indexCodeNum), fe(e, "dataType") && delete e.dataType, e.fieldValue || delete e.fieldValue;
1824
+ else {
1825
+ const { calcWays: n = [], dateCalcTypes: i = [], activeKey: a, componentId: r = "" } = e;
1826
+ if (a === 5 && (n != null && n.length) && (i != null && i.length) && r) {
1827
+ const l = n[0].split("-");
1828
+ (l == null ? void 0 : l.length) > 1 && l[0] === "rangeValue" && (e.calcWays = ((o, c = {}) => {
1829
+ const { around: d, unit: h, id: u } = o;
1830
+ let y = "";
1831
+ const { pageMode: L = "", componentList: N = [] } = (c == null ? void 0 : c.graphicConfig) || {};
1832
+ let A = null, g = null;
1833
+ if (L === "design") {
1834
+ const p = N == null ? void 0 : N.find((x) => x.id === u);
1835
+ if (!p)
1836
+ return [];
1837
+ const { interval: m, intervalUnit: s, startTime: S, endTime: O, operate: C, useCurrentTime: I } = p || {};
1838
+ if (I && (A = ge().subtract(m, s), g = ge()), S && (A = ge(S)), O && (g = ge(O)), C) {
1839
+ const { type: x, value: f, mode: j } = C;
1840
+ switch (x) {
1841
+ case "add":
1842
+ A = A && A.add(f, j), g = g && g.add(f, j);
1843
+ break;
1844
+ case "minus":
1845
+ A = A && A.subtract(f, j), g = g && g.subtract(f, j);
1846
+ }
1847
+ }
1848
+ } else {
1849
+ const p = _t(u) || {};
1850
+ z(p.startTime) && (A = ge(z(p.startTime))), z(p.endTime) && (g = ge(z(p.endTime)));
1851
+ }
1852
+ return A && g && (y = `${d === "before" ? "-" : ""}${g.diff(A, h.toLowerCase()) + 1}`), y ? [y] : [];
1853
+ })({ around: l[1], unit: i[0], id: r })), delete e.radioValue;
1854
+ }
1855
+ if (fe(e, "dataType")) {
1856
+ if (e.fieldType === "DATE" && (e.label = e.fieldName), e.dataType === "component")
1857
+ if (e.fieldValue === "PARENT") {
1858
+ let l = e.modelKey;
1859
+ l && e.prop && (l += `-${e.prop}`), e.fieldValue = "${" + l + "}";
1860
+ } else
1861
+ e.fieldValue = "${" + Tt(e.componentId, e.fieldValue) + "}";
1862
+ delete e.dataType;
1863
+ }
1864
+ fe(e, "activeKey") && delete e.activeKey, fe(e, "radioValue") && delete e.radioValue, fe(e, "indexCode") && (e.hrpIndexCode = e.indexCode, delete e.indexCode), fe(e, "indexCodeNum") && (e.hrpIndexCodeNum = e.indexCodeNum, delete e.indexCodeNum), e.dataType !== "component" && e.useCurrentTime && (e.fieldValue = ge().format(e.dateFormat)), fe(e, "modelKey") && delete e.modelKey, fe(e, "prop") && delete e.prop, delete e.useCurrentTime;
1865
+ }
1866
+ }, qe = (e, t) => {
1867
+ const n = [];
1868
+ return e != null && e.length && rt(e).forEach((i) => {
1869
+ if (i.join && i.conditions) {
1870
+ const a = !i.conditions.some((r) => r.join && r.conditions);
1871
+ i.conditions.forEach((r, l) => {
1872
+ bn(r, t);
1873
+ const o = {};
1874
+ if (l < i.conditions.length - 1 && (o.join = i.join), a)
1875
+ n.push(Object.assign(Object.assign({}, o), r));
1876
+ else if (r.join && r.conditions) {
1877
+ const c = t ? "sqlConditions" : "conditions";
1878
+ n.push(Object.assign({ [c]: qe([r], t) }, o));
1879
+ } else
1880
+ n.push(Object.assign(Object.assign({}, o), r));
1881
+ });
1882
+ } else
1883
+ bn(i, t), n.push(i);
1884
+ }), n;
1885
+ }, Vt = (e = {}, t) => {
1886
+ if (e != null && e.sortCpnts && t) {
1887
+ const O = xi(e);
1888
+ O && (t.sort = O);
1889
+ }
1890
+ const { label: n, name: i, location: a, show: r, indexCode: l, indexCodeNum: o, calcType: c = "COLUMN", builtInFormula: d, builtInValueSource: h, builtInCalcWay: u, formula: y, conditions: L, aggregate: N, distinct: A, dimByCount: g, dataTo: p, sort: m } = e;
1891
+ let s;
1892
+ if (L && (s = qe(L)), c === "COMPONENT") {
1893
+ const O = {};
1894
+ return qt(O, h), { label: n.trim(), columnName: i, show: r, calcType: c, componentAlias: u, componentValue: O.fieldValue || null };
1895
+ }
1896
+ const S = { label: n.trim(), columnName: i, location: a, show: r, calcType: p === "1" ? "VIEW" : c, hrpIndexCode: l, hrpIndexCodeNum: o, aggregate: N, builtInFormula: d, builtInValueSource: h, formula: y, conditions: s };
1897
+ if (m && (S.sort = { columnName: i, label: S.label, order: m, type: "NORMAL" }), d !== "DATE_OFFSET")
1898
+ return i === "the_count" && (S.calcType = "AGGREGATE", S.distinct = !!A, S.typeGuid = g), Object.assign(Object.assign({}, S), { builtInCalcWay: u });
1899
+ {
1900
+ const O = u.split("-");
1901
+ if ((O == null ? void 0 : O.length) === 3) {
1902
+ let C = O[0];
1903
+ return O[2] === "before" && O[0] !== "0" && (C = `-${O[0]}`), Object.assign(Object.assign({}, S), { calcWays: [C], dateCalcTypes: [O[1]] });
1904
+ }
1905
+ }
1906
+ }, Tt = (e, t) => {
1907
+ const n = yi.find((a) => a.id === e), { keyName: i } = n || {};
1908
+ if (i) {
1909
+ const a = /-(startTime|endTime)/g, r = t.match(a);
1910
+ return r != null && r.length ? `${i}${r[0]}` : i;
1911
+ }
1912
+ return t || "";
1913
+ }, Tr = (e) => {
1914
+ if (!e)
1915
+ return [];
1916
+ const t = rt((e == null ? void 0 : e.controlList) || []).filter((g) => g.conditionKey !== "parentCode"), { classificationList: n = [], rowHeaderList: i = [], dimensionList: a = [], seriesList: r = [], leftAxisList: l = [], rightAxisList: o = [], queryColumnList: c = [], indexLibColumns: d = [], indicators: h = [], specialIndicators: u = [] } = e;
1917
+ bi(t);
1918
+ const y = [...n, ...i, ...a, ...r, ...l, ...o, ...c, ...d, ...h, ...u], L = [];
1919
+ for (const g of y) {
1920
+ const p = Wt((g == null ? void 0 : g.conditions) || []);
1921
+ if (p != null && p.length) {
1922
+ const m = p.filter((s) => (s == null ? void 0 : s.dataType) === "component").map((s) => {
1923
+ const S = {};
1924
+ return s != null && s.dateFormat && (S.format = s.dateFormat), s.fieldValue === "PARENT" && (S.id = "PARENT", S.keyName = s.modelKey, S.modelKey = s.modelKey, S.prop = s.prop), Object.assign({ conditionKey: s.fieldName, conditionLabel: s.fieldName, conditionName: s.fieldName, conditionValueType: s.fieldType, id: s.componentId, keyName: s.fieldValue, rule: s.rule, notGlobal: !0, indexCode: s.indexCode, typeGuid: s.typeGuid, indexCodeNum: s.indexCodeNum }, S);
1925
+ });
1926
+ if (m != null && m.length)
1927
+ for (const s of m)
1928
+ L.find((S) => S.keyName === s.keyName) || L.push(s);
1929
+ }
1930
+ }
1931
+ const N = L.length, A = t;
1932
+ for (let g = 0; g < N; g++) {
1933
+ const p = L[g];
1934
+ if ((p == null ? void 0 : p.conditionKey) === "parentCode")
1935
+ continue;
1936
+ const { id: m, keyName: s, prop: S, format: O, modelKey: C, dataType: I = "component", customValue: x } = p, f = Tt(m, s), j = gi(p);
1937
+ qt(j, m, { prop: S, dateFormat: O, modelKey: C, keyName: f }), I === "" && (j.fieldValue = x || ""), A.push(j);
1938
+ }
1939
+ for (let g = A.length - 1; g >= 0; g--) {
1940
+ const p = A[g];
1941
+ p.globalCondition || Wt(A).find((m) => m.alias === p.alias && m.globalCondition) && A.splice(g, 1);
1942
+ }
1943
+ return A;
1944
+ };
1945
+ function gi(e) {
1946
+ const { id: t, keyName: n, conditionLabel: i, conditionKey: a, conditionValueType: r, prop: l, rule: o = "NONE", notGlobal: c = !1, indexCode: d, typeGuid: h, indexCodeNum: u, dataType: y = "component" } = e, L = Tt(t, n);
1947
+ let N = L || t;
1948
+ N && l && (N += `-${l}`);
1949
+ let A = o;
1950
+ return A === "NONE" && (A = ["startTime", "endTime"].includes(l) ? l === "startTime" ? "GREATER_EQUAL" : "LESS_EQUAL" : L != null && L.includes("startTime") ? l === "GREATER_EQUAL" : L != null && L.includes("endTime") ? l === "LESS_EQUAL" : "EQUAL"), t === "PARENT" && (N = e.modelKey, N && l && (N += `-${l}`), A = o), { rule: A, label: i, fieldName: a, fieldValue: "", valueType: r, alias: N, globalCondition: !c, indexCode: d, typeGuid: h, indexCodeNum: u, dataType: y };
1951
+ }
1952
+ function bi(e) {
1953
+ if (e != null && e.length)
1954
+ for (const t of e)
1955
+ if (t != null && t.conditions)
1956
+ bi(t.conditions);
1957
+ else {
1958
+ const { id: n, keyName: i, prop: a, modelKey: r, format: l, dataType: o = "component", customValue: c } = t, d = Tt(n, i), h = gi(t);
1959
+ qt(h, n, { prop: a, dateFormat: l, modelKey: r, keyName: d }), o === "" && (h.fieldValue = c || "");
1960
+ for (const u in h)
1961
+ t[u] = h[u];
1962
+ for (const u of _r)
1963
+ delete t[u];
1964
+ }
1965
+ }
1966
+ function qt(e, t, n) {
1967
+ const { prop: i = "", dateFormat: a = "", modelKey: r = "", keyName: l = "", operateValue: o, operateMode: c, operateType: d } = n || {}, h = r || l;
1968
+ if (t === "PARENT" && h && i) {
1969
+ const m = window.config.record;
1970
+ let s = i, S = a;
1971
+ const O = i.match(/\{(.+?)\}/g);
1972
+ if (O != null && O.length) {
1973
+ const C = O[0].slice(1, -1).trim();
1974
+ s = i.replace(O[0], ""), S = C, e.dateFormat = S;
1975
+ }
1976
+ if (m && m[h]) {
1977
+ const C = z(m[h][s]);
1978
+ ge.isDayjs(C) ? e.fieldValue = C.format(S || "YYYY-MM-DD") : e.fieldValue = C;
1979
+ }
1980
+ return;
1981
+ }
1982
+ const u = _t(t) || {}, { value: y, format: L = "YYYY-MM-DD", type: N = "", useCurrentTime: A, RECORD: g } = u || {}, p = a || L;
1983
+ if (te(N, "date")) {
1984
+ let m;
1985
+ if (m = A ? y ? z(y) : ge() : z(y), typeof m == "string" && (m = ge(m)), o && c && d)
1986
+ switch (d) {
1987
+ case "add":
1988
+ m = m.add(o, c);
1989
+ break;
1990
+ case "minus":
1991
+ m = m.subtract(o, c);
1992
+ }
1993
+ e.fieldValue = m == null ? void 0 : m.format(p), e.dateFormat = p;
1994
+ } else if (te(N, "rangepicker")) {
1995
+ let m = i;
1996
+ if (!i) {
1997
+ const S = l && l.split("-");
1998
+ S != null && S.length && (m = S[S.length - 1]);
1999
+ }
2000
+ if (!m)
2001
+ return;
2002
+ let s = null;
2003
+ if (z(u[m]) && (s = ge(z(u[m]))), o && c && d) {
2004
+ if (o === "rangeValue") {
2005
+ if (u.startTime && u.endTime) {
2006
+ const S = z(u.endTime).diff(z(u.startTime), c) + 1;
2007
+ switch (d) {
2008
+ case "add":
2009
+ s = s && s.add(S, c);
2010
+ break;
2011
+ case "minus":
2012
+ s = s && s.subtract(S, c);
2013
+ }
2014
+ }
2015
+ } else if (!isNaN(+o))
2016
+ switch (d) {
2017
+ case "add":
2018
+ s = s && s.add(o, c);
2019
+ break;
2020
+ case "minus":
2021
+ s = s && s.subtract(o, c);
2022
+ }
2023
+ }
2024
+ if (s && (e.fieldValue = s == null ? void 0 : s.format(p)), m === "rangeValue" && u.startTime && u.endTime) {
2025
+ const S = function(O) {
2026
+ const C = O.split("-");
2027
+ let I = "";
2028
+ if (C != null && C.length)
2029
+ switch (C[C.length - 1]) {
2030
+ case "YYYY":
2031
+ I = "year";
2032
+ break;
2033
+ case "MM":
2034
+ I = "month";
2035
+ break;
2036
+ case "DD":
2037
+ I = "day";
2038
+ }
2039
+ return I;
2040
+ }(p);
2041
+ S && (e.fieldValue = z(u.endTime).diff(z(u.startTime), S) + 1);
2042
+ }
2043
+ e.dateFormat = p;
2044
+ } else
2045
+ te(N, Cr) ? e.fieldValue = r && g ? g[r] : !r && g ? g.value : z(y) : te(N, "select") && Array.isArray(z(y)) ? e.fieldValue = z(y).join(",") : e.fieldValue = z(y);
2046
+ }
2047
+ const zt = (e) => {
2048
+ if (e) {
2049
+ const t = Array.isArray(e) ? rt(e) : [rt(e)];
2050
+ let n = "", i = [];
2051
+ const a = [], r = [], l = [];
2052
+ for (const o of t) {
2053
+ let c = o.label, d = o.columnName;
2054
+ if (o.defaultCode && (c = o.columnName, delete o.defaultCode), d === "component-value" && o.componentId) {
2055
+ const h = _t(o.componentId) || {}, { value: u } = h;
2056
+ z(u) && (c = d = z(u));
2057
+ }
2058
+ n = o.type, n === "CUSTOM" && (i = o.customOrderColumns), a.push(c), r.push(d), l.push(o.order);
2059
+ }
2060
+ return n !== "CUSTOM" && (a == null ? void 0 : a.length) > 1 && (n = "COMBINATION"), n === "CUSTOM" ? { label: a.join(","), columnName: r.join(","), type: n, customOrderColumns: i } : { label: a.join(","), columnName: r.join(","), order: l.join(","), type: n };
2061
+ }
2062
+ return e;
2063
+ }, xi = (e) => {
2064
+ const { sortCpnts: t = [] } = e;
2065
+ let n, i = "";
2066
+ for (const a of t) {
2067
+ const r = _t(a) || {}, { type: l, RECORD: o } = r;
2068
+ if (te(l, "image") && te(o == null ? void 0 : o.value, ["asc", "desc"])) {
2069
+ i = o.value.toUpperCase();
2070
+ break;
2071
+ }
2072
+ }
2073
+ return i && (n = { label: e.label, columnName: e.name, order: i, type: "NORMAL" }), n;
2074
+ }, rl = (e, t = {}) => {
2075
+ var n, i, a, r, l, o, c, d;
2076
+ const { graphicConfig: h, type: u, globalModel: y, isGroupTable: L = !1, allComponentList: N } = e;
2077
+ y && (mi = y), N != null && N.length && (yi = N);
2078
+ const A = te(u, "pivottable");
2079
+ let g, { source: p, dataViewId: m, plugin: s = "1", layer: S, chartType: O, classificationList: C = [], rowHeaderList: I = [], dimensionList: x = [], seriesList: f = [], leftAxisList: j = [], rightAxisList: k = [], queryColumnList: b = [], indexLibColumns: w = [], indicators: v = [], specialIndicators: _ = [], controlList: T = [], formFields: F = {}, variableList: D = [], variableConditions: E = [], dataSourceId: R = "", idxLibMode: M, preview: W = !1, edvDataSetId: Z, compositeIndicator: se } = h || {}, H = [];
2080
+ if ((h == null ? void 0 : h.pageMode) === "design" ? (H = ((n = h.sqlConditions) !== null && n !== void 0 ? n : []).map((V) => {
2081
+ const P = {};
2082
+ if (fe(V, "globalCondition") || V.join || (P.globalCondition = !0), !V.join) {
2083
+ const $ = V.rule || "EQUAL";
2084
+ P.rule = $ === "NONE" ? "EQUAL" : $;
2085
+ }
2086
+ return Object.assign(Object.assign({}, V), P);
2087
+ }), E != null && E.length && (H = H.concat(E))) : (H = Tr(h), D != null && D.length && (H = H.concat(function(V) {
2088
+ const P = [];
2089
+ if (V != null && V.length) {
2090
+ for (const $ of V)
2091
+ if ($.variableName) {
2092
+ const Y = Tt($.id, $.keyName), B = { variateName: $.variableName, globalCondition: $.globalCondition || !1, valueType: $.variableType, alias: Y || "" };
2093
+ qt(B, $.id, { dateFormat: $.format, prop: $.dateTypeValue, keyName: Y, operateType: $.operateType, operateMode: $.operateMode, operateValue: $.operateValue }), $.dataType === "" && (B.fieldValue = $.variableValue), $.format && (B.dateFormat = $.format), $.label && (B.label = $.label), P.push(B);
2094
+ }
2095
+ }
2096
+ return P;
2097
+ }(D)))), H == null ? void 0 : H.length) {
2098
+ const V = H.filter(($) => $.globalCondition), P = H.filter(($) => !$.globalCondition);
2099
+ (V == null ? void 0 : V.length) > 1 && (H = [{ join: "&&", conditions: V }, ...P]);
2100
+ }
2101
+ H != null && H.length && (H = qe(H, "1")), S == null && (S = te(u, ["table", "card"]) || te(u, ["list", "circulate"]) && (C == null ? void 0 : C.length) > 1 ? "1" : te(u, ["select", "checkbox", "radio", "treeSelect"]) ? "3" : te(u, ["indexPanel"]) ? "4" : "2"), te(u, ["indexPanel"]) && (s = "3");
2102
+ const pe = [];
2103
+ let ie, re = "";
2104
+ if (Array.isArray(C) && C.length > 0 && (!["ecanList", "ecanCirculate"].includes(u) || (C == null ? void 0 : C.length) === 1)) {
2105
+ const V = C.length;
2106
+ for (let P = 0; P < V; P++) {
2107
+ const $ = C[P] || {}, { label: Y = "", name: B = "", show: ce = !1, sort: he, customGroup: Oe, conditions: Q, dateFormat: K, typeGuid: ne = "", truncations: ee = [] } = $;
2108
+ if (ce || V === 1) {
2109
+ re = ne, g = { label: Y.trim(), columnName: B, show: ce, sort: xi($) || zt(he) || he, customGroup: Oe, conditions: qe(Q), typeGuid: ne }, K && (g.dateFormat = K), B !== "the_date" || g.dateFormat || (g.dateFormat = "YYYY-MM-DD");
2110
+ const q = {};
2111
+ if (Array.isArray(ee) && ee.length > 0) {
2112
+ const le = ee.length;
2113
+ for (let xe = 0; xe < le; xe++) {
2114
+ const ve = ee[xe] || {}, { rule: Ae = "", num: Ne = 0, name: He = "" } = ve;
2115
+ Ae && Ne && (q.num = Ne, q.rule = Ae, He && (q.otherGroupName = He));
2116
+ }
2117
+ }
2118
+ if (!((i = Object.keys(q)) === null || i === void 0) && i.length && (g.truncation = q), !te(u, ["scatter", "valueline"]))
2119
+ break;
2120
+ pe.push(g);
2121
+ }
2122
+ }
2123
+ }
2124
+ if (Array.isArray(f) && f.length > 0) {
2125
+ const V = f.length;
2126
+ for (let P = 0; P < V; P++) {
2127
+ const $ = f[P] || {}, { label: Y = "", name: B = "", show: ce = !1, sort: he, customGroup: Oe, conditions: Q, typeGuid: K, dateFormat: ne = "" } = $;
2128
+ if (ce || V === 1) {
2129
+ ie = { label: Y.trim(), columnName: B, show: ce, sort: zt(he), customGroup: Oe, conditions: qe(Q), typeGuid: K }, ne ? ie.dateFormat = ne : B === "the_date" && (ie.dateFormat = "YYYY-MM-DD");
2130
+ break;
2131
+ }
2132
+ }
2133
+ }
2134
+ const oe = [];
2135
+ j == null || j.forEach((V) => {
2136
+ V.location = "LEFT", oe.push(Vt(V, g));
2137
+ }), k == null || k.forEach((V) => {
2138
+ V.location = "RIGHT", oe.push(Vt(V, g));
2139
+ });
2140
+ let Te = v;
2141
+ t != null && t.pivotTableCal && (Te = ((a = t.pivotTableCal) === null || a === void 0 ? void 0 : a.indicators) || []), Te == null || Te.forEach((V) => {
2142
+ V.location = "LEFT", oe.push(Vt(V, g));
2143
+ });
2144
+ const Le = [];
2145
+ _ == null || _.forEach((V) => {
2146
+ V.location = "LEFT", Le.push(Vt(V, g));
2147
+ });
2148
+ const Ee = [];
2149
+ ["ecanList", "ecanCirculate"].includes(u) && (C == null ? void 0 : C.length) > 1 && (b = C), t != null && t.pivotTableCal && (b = ((r = t.pivotTableCal) === null || r === void 0 ? void 0 : r.dimensions) || []), b == null || b.forEach((V) => {
2150
+ const { label: P, name: $, location: Y, show: B, indexCode: ce, sort: he, typeGuid: Oe, indexCodeNum: Q, dateFormat: K, conditions: ne } = V;
2151
+ let ee = zt(he);
2152
+ if (t.sort) {
2153
+ const { field: le, order: xe } = t.sort;
2154
+ let ve = oe.find((Ae) => Ae.label === le);
2155
+ ve || P !== le || (ve = V), ve && (ee = { columnName: ve.columnName, label: t.sort.field, order: xe.toUpperCase(), type: "NORMAL" });
2156
+ }
2157
+ const q = { label: P, columnName: $, location: Y, show: B, sort: ee, calcType: "COLUMN", hrpIndexCode: ce, hrpIndexCodeNum: Q, conditions: qe(ne), typeGuid: Oe };
2158
+ K && (q.dateFormat = K), $ !== "the_date" || q.dateFormat || (q.dateFormat = "YYYY-MM-DD"), Ee.push(q);
2159
+ });
2160
+ const lt = [];
2161
+ ["ecanTable"].includes(u) && h.isIndexSet && w.forEach((V) => {
2162
+ const P = { label: V.label, calcType: V.calcType, show: V.show };
2163
+ V.formula && (P.formula = V.formula), lt.push(P);
2164
+ });
2165
+ let st = [], Je = [];
2166
+ if (Array.isArray(I) && I.length > 0 ? Je = I : Array.isArray(x) && x.length > 0 && (Je = x), Je == null ? void 0 : Je.length) {
2167
+ const V = Je.length;
2168
+ for (let P = 0; P < V; P++) {
2169
+ const $ = Je[P] || {}, { label: Y = "", name: B = "", show: ce = !1, sort: he, customGroup: Oe, conditions: Q, truncations: K, typeGuid: ne = "", dateFormat: ee } = $;
2170
+ let q = zt(he);
2171
+ if (t.sort) {
2172
+ const { field: ve, order: Ae } = t.sort;
2173
+ let Ne = oe.find((He) => He.label === ve);
2174
+ Ne || $.label !== ve || (Ne = $), Ne && (q = { columnName: Ne.columnName, label: t.sort.field, order: Ae.toUpperCase(), type: "NORMAL" });
2175
+ }
2176
+ const le = { label: Y.trim(), columnName: B, show: ce, sort: q, customGroup: Oe, conditions: qe(Q), typeGuid: ne };
2177
+ ee && (le.dateFormat = ee), B !== "the_date" || le.dateFormat || (le.dateFormat = "YYYY-MM-DD");
2178
+ const xe = {};
2179
+ if (Array.isArray(K) && K.length > 0) {
2180
+ const ve = K.length;
2181
+ for (let Ae = 0; Ae < ve; Ae++) {
2182
+ const Ne = K[Ae] || {}, { rule: He = "", num: Oo = 0, name: No = "" } = Ne;
2183
+ He && Oo && (xe.num = Oo, xe.rule = He, No && (xe.otherGroupName = No));
2184
+ }
2185
+ }
2186
+ !((l = Object.keys(xe)) === null || l === void 0) && l.length && (le.truncation = xe), st.push(le);
2187
+ }
2188
+ }
2189
+ let Lo, Zt = [];
2190
+ const Lt = [];
2191
+ if (t != null && t.pivotTableCal) {
2192
+ let V = [];
2193
+ const { calc: P = [], filter: $ = [], truncations: Y = [], sorts: B = [], aggregateMethod: ce = [], rowDimensionKeys: he = [], colDimensionKeys: Oe = [] } = t.pivotTableCal;
2194
+ if (oe.push(...P), $ == null ? void 0 : $.length) {
2195
+ const Q = function K(ne) {
2196
+ const ee = [];
2197
+ for (const q of ne)
2198
+ q.conditions ? ee.push(...K(q.conditions)) : q.conditionKey === "the_date" && ee.push(q);
2199
+ return ee;
2200
+ }(T);
2201
+ for (const K of $) {
2202
+ const { type: ne } = K, ee = Fo(K, ["type"]);
2203
+ ne === "indicators" ? V = oe : ne === "dimension" && (V = Ee);
2204
+ const q = V.find((le) => le.columnName === K.fieldName && le.label === K.label);
2205
+ if (q) {
2206
+ if (ne === "indicators")
2207
+ q.filter = { rule: ee.rule, fieldValue: ee.fieldValue };
2208
+ else if (ne === "dimension") {
2209
+ let le = !0;
2210
+ ee.fieldName === "the_date" && (Q == null ? void 0 : Q.length) === 2 && (le = !1, Lt.push(ee)), le && (q.conditions || (q.conditions = []), q.conditions.push(ee));
2211
+ }
2212
+ }
2213
+ }
2214
+ }
2215
+ if (Y != null && Y.length)
2216
+ for (const Q of Y) {
2217
+ const K = Ee.find((ne) => ne.label === Q.key);
2218
+ K && (K.truncation = { num: Q.num, rule: Q.rule });
2219
+ }
2220
+ if (B != null && B.length)
2221
+ for (const Q of B) {
2222
+ const { fieldType: K, columnData: ne } = Q, ee = Fo(Q, ["fieldType", "columnData"]);
2223
+ K === "indicators" ? (V = oe, Lo = ne) : K === "dimension" && (V = Ee);
2224
+ const q = V.find((le) => le.label === ee.label);
2225
+ q && (q.sort = Object.assign(Object.assign({}, ee), { columnName: q.columnName }));
2226
+ }
2227
+ if (!((o = Object.keys(ce)) === null || o === void 0) && o.length)
2228
+ for (const Q in ce) {
2229
+ const K = Ee.find((ne) => ne.label === Q);
2230
+ K && (!((c = ce[Q]) === null || c === void 0) && c.length) && (K.aggregateMethod = ce[Q]);
2231
+ }
2232
+ st = [], Zt = [];
2233
+ for (const Q of Ee)
2234
+ he.includes(Q.columnName) ? st.push(Q) : Oe.includes(Q.columnName) && Zt.push(Q);
2235
+ }
2236
+ if (te(u, ["text", "proportion", "counter", "gauge"]) ? O = "zb" : te(u, ["valueline"]) ? O = "valueline" : te(u, ["indexPanel"]) ? O = "indexPanel" : te(u, ["boxplot"]) ? O = "boxplot" : te(u, ["budget"]) && (O = "budget"), L || u === "card") {
2237
+ if (st.length === 0 || oe.length === 0)
2238
+ return;
2239
+ O = "grouptable";
2240
+ } else if (S === "1" && !Ee.length && !lt.length || ["2", "4"].includes(S) && oe.length === 0 || !(S !== "3" || (re || p === "EDV_DATA_SET") && F.labelField && F.valueField) || S === "3" && u === "ecanDataSelect" && oe.length === 0)
2241
+ return;
2242
+ let Qt;
2243
+ if (x != null && x.length && (S = "1", O = "grouptable"), A || te(u, ["scatter", "valueline"]) || !(!((d = Object.keys(F)) === null || d === void 0) && d.length)) {
2244
+ let V = {};
2245
+ V = te(u, ["scatter", "valueline"]) ? { classifications: pe } : { classification: g }, lt != null && lt.length && (V.indexLibColumns = lt, V.isIndexSet = !0), Le != null && Le.length && (V.specialIndicatorList = Le), te(u, "table") && h.isIndexSet && (V.compositeIndicator = se), h.isIndexQuery && (V.isIndexQuery = h.isIndexQuery);
2246
+ const P = H.map(($) => {
2247
+ const { fieldValue: Y } = $, B = {};
2248
+ return Y && Array.isArray(Y) && (B.fieldValue = JSON.stringify(Y)), Object.assign(Object.assign({}, $), B);
2249
+ });
2250
+ Lt != null && Lt.length && function $(Y) {
2251
+ for (const B of Y)
2252
+ if (B.sqlConditions)
2253
+ $(B.sqlConditions);
2254
+ else if (B.fieldName === "the_date") {
2255
+ const ce = Lt.find((he) => he.prop === B.prop);
2256
+ ce && (B.fieldValue = ce.fieldValue);
2257
+ }
2258
+ }(P), Qt = Object.assign({ url: "/diagram", source: p, dataViewId: m, plugin: A ? "5" : s, layer: S, chartType: A ? "pivot-table" : O, series: ie, indicatorList: oe, queryColumns: L ? [] : Ee, pageFlag: !0, edvDataSetId: Z || "", sqlConditions: P, idxLibMode: M, dataSourceId: R, preview: W, rowHeaders: st, keyName: e.keyName, columnData: Lo, columnHeaders: Zt }, V);
2259
+ } else {
2260
+ const V = Wt(T).find((Y) => Y.conditionKey === "parentCode"), P = {};
2261
+ if (V) {
2262
+ const Y = _t(V.id) || {};
2263
+ Y != null && Y.itemCodes ? P.parentItemCodes = Y.itemCodes : P.parentItemCodes = null;
2264
+ }
2265
+ u === "ecanDataSelect" && (P.indicatorList = oe.filter((Y) => Y.show)), p === "EDV_DATA_SET" && (P.edvDataSetId = Z), g != null && g.sort && (P.sort = g.sort);
2266
+ let $ = "normalSelect";
2267
+ u === "ecanDataSelect" ? $ = "normalSelectData" : u === "ecanTreeSelect" && ($ = "treeSelect"), Qt = Object.assign({ url: "/diagram/formData", source: p, dataViewId: m, plugin: "4", layer: S, chartType: u === "ecanTreeSelect" ? "treeSelect" : "normalSelect", rangeIndexTypeGuid: re, type: $, labelField: F.labelField, valueField: F.valueField, parentField: F.parentField, sqlConditions: H, idxLibMode: "WITH_DATE_DIM_TABLE", dataSourceId: R, keyName: e.keyName }, P);
2268
+ }
2269
+ return Qt;
2270
+ }, Lr = (e = [], t, n = !1) => {
2271
+ let { name: i = "name", types: a = [] } = t || {};
2272
+ i = (i == null ? void 0 : i.trim()) || i;
2273
+ const r = /* @__PURE__ */ new Set(), l = /* @__PURE__ */ new Map(), o = e.length, c = a.length;
2274
+ if (o !== 1 || n)
2275
+ for (let u = 0; u < o; u++) {
2276
+ const y = e[u], L = y[i];
2277
+ r.add(L);
2278
+ for (let N = 0; N < c; N++) {
2279
+ const A = a[N], { label: g, value: p } = A, m = Object.assign(Object.assign({}, y), { value: y[p] });
2280
+ if (l.has(g)) {
2281
+ const s = l.get(g);
2282
+ s.push(m), l.set(g, s);
2283
+ } else
2284
+ l.set(g, [m]);
2285
+ }
2286
+ }
2287
+ else {
2288
+ const u = [];
2289
+ for (let L = 0; L < c; L++) {
2290
+ const N = a[L], { label: A, value: g } = N, p = Object.assign(Object.assign({}, e[0]), { value: e[0][g] });
2291
+ r.add(A), u.push(p);
2292
+ }
2293
+ const y = e[0][i] || "";
2294
+ l.set(y, u);
2295
+ }
2296
+ const d = Array.from(r), h = [];
2297
+ for (const [u, y] of l)
2298
+ h.push({ name: u, data: y });
2299
+ return { dimensions: d, dataset: h };
2300
+ }, Or = (e, t) => {
2301
+ let { name: n = "name", value: i = "value", type: a = "type" } = t || {};
2302
+ n = n == null ? void 0 : n.trim(), i = i == null ? void 0 : i.trim(), a = a == null ? void 0 : a.trim();
2303
+ const r = /* @__PURE__ */ new Map(), l = e.length;
2304
+ for (let d = 0; d < l; d++) {
2305
+ const h = e[d], u = h[n] || "", y = h[i] || "", L = h[a] || "";
2306
+ if (r.has(L)) {
2307
+ const N = r.get(L);
2308
+ N.push(Object.assign({ name: u, value: y }, h)), r.set(L, N);
2309
+ } else
2310
+ r.set(L, [Object.assign({ name: u, value: y }, h)]);
2311
+ }
2312
+ const o = [], c = [];
2313
+ for (const [d, h] of r)
2314
+ if (c.push({ name: d, data: h }), h == null ? void 0 : h.length)
2315
+ if (o.length)
2316
+ for (const u of h)
2317
+ o.includes(u.name) || o.push(u.name);
2318
+ else
2319
+ o.push(...h.map((u) => u.name));
2320
+ return { dimensions: o, dataset: c };
2321
+ }, Se = (e, t) => {
2322
+ var n;
2323
+ if (e == null)
2324
+ return t;
2325
+ const i = e.match(/\{.*\}/g);
2326
+ if (i == null || i.length === 0)
2327
+ return t;
2328
+ const a = i.length;
2329
+ for (let r = 0; r < a; r++) {
2330
+ const l = i[r];
2331
+ if (l == null || l === "")
2332
+ break;
2333
+ let o = (n = l.slice(1, -1)) === null || n === void 0 ? void 0 : n.trim();
2334
+ o = o == null ? void 0 : o.replace(/value/g, t);
2335
+ try {
2336
+ let c = o;
2337
+ (/\(.*\)/g.test(o) || /[+/\\*]/g.test(o)) && (c = gt(o)), e = e.replace(l, c);
2338
+ } catch {
2339
+ e = e.replace(l, o);
2340
+ }
2341
+ }
2342
+ return e;
2343
+ }, Nr = (e, t, n) => {
2344
+ let i = e.dataFieldNames;
2345
+ if (e.dataType === "indicator" && (n == null ? void 0 : n.pageMode) !== "design" && t) {
2346
+ const { formFields: a = {} } = t;
2347
+ a != null && a.labelField && (a != null && a.valueField) && (i = { name: a.labelField, value: a.valueField });
2348
+ }
2349
+ return i;
2350
+ };
2351
+ function xn(e, t, n) {
2352
+ switch (t) {
2353
+ case "startX":
2354
+ e[0].coord[0] = +n;
2355
+ break;
2356
+ case "startY":
2357
+ e[0].coord[1] = +n;
2358
+ break;
2359
+ case "endX":
2360
+ e[1].coord[0] = +n;
2361
+ break;
2362
+ case "endY":
2363
+ e[1].coord[1] = +n;
2364
+ }
2365
+ }
2366
+ const Ve = (e, t, n) => {
2367
+ let i = 0, a = [];
2368
+ switch (t.x ? a = z(n).map((l) => l.value[0]) : t.y && (a = z(n).map((l) => l.value[1])), e) {
2369
+ case "max":
2370
+ i = Math.max(...a);
2371
+ break;
2372
+ case "min":
2373
+ i = Math.min(...a);
2374
+ break;
2375
+ case "average":
2376
+ r = a, i = Array.isArray(r) && r.length !== 0 ? r.reduce((l, o) => l + o, 0) / r.length : 0;
2377
+ break;
2378
+ case "median":
2379
+ i = function(l) {
2380
+ if (!Array.isArray(l) || l.length === 0)
2381
+ return 0;
2382
+ const o = [...l].sort((h, u) => h - u), c = o.length, d = Math.floor(c / 2);
2383
+ return c % 2 != 0 ? o[d] : (o[d - 1] + o[d]) / 2;
2384
+ }(a);
2385
+ }
2386
+ var r;
2387
+ return i;
2388
+ }, jr = { 最大值: "{max}", 最小值: "{min}", 平均值: "{average}", 中位数: "{median}" };
2389
+ function Ir(e, t, n, i, a, r, l) {
2390
+ const o = Nr(e, i, l), c = e.xAxisLabelFormatter, d = e.yAxisLabelFormatter, h = a ? ((I, x, f, j) => {
2391
+ const { xAxisMarkLineValue: k = [], yAxisMarkLineValue: b = [] } = I, { xAxisMinValue: w, xAxisMaxValue: v, yAxisMinValue: _, yAxisMaxValue: T } = x, F = k.map((R) => Object.assign(Object.assign({}, R), { x: !0 })), D = b.map((R) => Object.assign(Object.assign({}, R), { y: !0 })), E = F.concat(D);
2392
+ if (E != null && E.length) {
2393
+ const R = [];
2394
+ for (const M of E) {
2395
+ const W = { label: { show: !0, formatter: "", rich: { ft: {} } } }, Z = {};
2396
+ let se = M.value;
2397
+ const H = se == null ? void 0 : se.match(/\{(.+?)\}/g);
2398
+ let pe = "";
2399
+ if (W.label.formatter = M.label ? `{ft|${M.label}}` : "", (M.offsetHorizontal || M.offsetVertical) && (M.x ? W.label.rich.ft.padding = [0, M.offsetHorizontal || 0, M.offsetVertical || 0, 0] : M.y && (W.label.rich.ft.padding = [M.offsetVertical || 0, 0, 0, M.offsetHorizontal || 0])), M.labelColor && (W.label.rich.ft.color = M.labelColor), M.lineColor && (Z.color = M.lineColor), M.lineType && (Z.type = M.lineType), M.x ? pe = "xAxis" : M.y && (pe = "yAxis"), H == null ? void 0 : H.length) {
2400
+ for (const ie of H)
2401
+ se = se.replace(ie, ie.slice(1, -1));
2402
+ if (se) {
2403
+ let ie;
2404
+ ie = j && j.value[se] ? z(j)[se] : gt(se, { axisMax: M.x ? z(v) : M.y ? z(T) : 0, axisMin: M.x ? z(w) : M.y ? z(_) : 0, max: Ve("max", M, f), min: Ve("min", M, f), average: Ve("average", M, f), median: Ve("median", M, f) }), isNaN(+ie) || R.push(Object.assign({ [pe]: +ie, lineStyle: Z }, W));
2405
+ }
2406
+ } else
2407
+ isNaN(+M.value) || R.push(Object.assign({ [pe]: M.value, lineStyle: Z }, W));
2408
+ }
2409
+ return { symbol: ["none", "none"], data: R };
2410
+ }
2411
+ return { data: [] };
2412
+ })(e, a, t, r) : void 0, u = a ? ((I, x, f) => {
2413
+ const { axisMarkArea: j = [] } = I, { xAxisMinValue: k, xAxisMaxValue: b, yAxisMinValue: w, yAxisMaxValue: v } = x;
2414
+ if (j != null && j.length) {
2415
+ const _ = [];
2416
+ for (const T of j) {
2417
+ const F = [{ name: T.label || "", coord: [], itemStyle: { color: T.color || "transparent" }, label: { show: !!T.label, position: "inside", fontSize: 16, color: "#000" } }, { coord: [] }];
2418
+ for (const D in T)
2419
+ if (["startX", "startY", "endX", "endY"].includes(D)) {
2420
+ let E = jr[T[D]] || T[D];
2421
+ const R = E == null ? void 0 : E.match(/\{(.+?)\}/g);
2422
+ if (R != null && R.length) {
2423
+ for (const M of R)
2424
+ E = E.replace(M, M.slice(1, -1));
2425
+ if (E) {
2426
+ const M = { x: D.includes("X"), y: D.includes("Y") }, W = gt(E, { xMax: z(b), xMin: z(k), yMax: z(v), yMin: z(w), max: Ve("max", M, f), min: Ve("min", M, f), average: Ve("average", M, f), median: Ve("median", M, f) });
2427
+ isNaN(+W) || xn(F, D, W);
2428
+ }
2429
+ } else
2430
+ isNaN(+T[D]) || xn(F, D, T[D]);
2431
+ }
2432
+ F.every((D) => {
2433
+ var E;
2434
+ return (E = D.coord) === null || E === void 0 ? void 0 : E.length;
2435
+ }) && _.push(F);
2436
+ }
2437
+ return { data: _ };
2438
+ }
2439
+ return { data: [] };
2440
+ })(e, a, t) : void 0, { visualColorKey: y, visualColorCondition: L, visualSizeKey: N, visualSizeCondition: A } = e;
2441
+ let g;
2442
+ y && (g = function(I, x, f) {
2443
+ const j = (b) => {
2444
+ if (b.name)
2445
+ return b.name;
2446
+ const w = !!(b != null && b.value1), v = !!(b != null && b.value2);
2447
+ return w && !v ? `${b.rule1}${b.value1}` : !w && v ? `${b.rule2}${b.value2}` : `${b.value1}-${b.value2}`;
2448
+ }, k = {};
2449
+ return f.forEach((b) => {
2450
+ (b.value1 || b.value2) && (k[j(b)] = { data: [], color: b.color });
2451
+ }), k.其他 = { data: [] }, I.forEach((b) => {
2452
+ const w = Number(b.record[x]);
2453
+ let v = !1;
2454
+ for (const _ of f) {
2455
+ if (!_.value1 && !_.value2)
2456
+ continue;
2457
+ const T = _.value1 ? Number(_.value1) : -1 / 0, F = _.value2 ? Number(_.value2) : 1 / 0;
2458
+ let D = !0, E = !0;
2459
+ if (_.rule1 === ">=" ? D = w >= T : _.rule1 === ">" ? D = w > T : _.rule1 === "<=" ? D = w <= T : _.rule1 === "<" ? D = w < T : _.rule1 === "==" && (D = w === T), _.value2 !== "" && (_.rule2 === ">=" ? E = w >= F : _.rule2 === ">" ? E = w > F : _.rule2 === "<=" ? E = w <= F : _.rule2 === "<" ? E = w < F : _.rule2 === "==" && (E = w === F)), D && E) {
2460
+ k[j(_)].data.push(b), v = !0;
2461
+ break;
2462
+ }
2463
+ }
2464
+ v || k.其他.data.push(b);
2465
+ }), k;
2466
+ }(t, y, rt(L).reverse()));
2467
+ const p = (I) => {
2468
+ var x;
2469
+ let f = "", j = e.labelFormatter;
2470
+ j === "" && (j = "{c}");
2471
+ const { seriesName: k, data: b } = I || {}, w = (x = b == null ? void 0 : b.record) !== null && x !== void 0 ? x : {}, v = w[o.name], _ = w[o.value];
2472
+ return f += me(j, { textData: Object.assign({ name: v, value: _, a: k, b: v, c: _ || 0 }, w) }, { useNewline: !0, useSpace: !0 }), f;
2473
+ }, m = function(I) {
2474
+ const x = [];
2475
+ for (const f of I) {
2476
+ let j = "";
2477
+ f.value1 && (j += `value ${f.rule1} ${f.value1}`), f.value2 && (j += `${f.value1 ? "&&" : ""} value ${f.rule2} ${f.value2}`), j && x.push({ rule: j, size: f.size });
2478
+ }
2479
+ return x.reverse();
2480
+ }(A), s = (I, x) => {
2481
+ if (N) {
2482
+ const { record: f = {} } = x.data || {}, j = f[N], k = m.find((b) => gt(b.rule, { value: j }));
2483
+ if (k)
2484
+ return k.size;
2485
+ }
2486
+ return e.symbolSize;
2487
+ }, S = { type: "scatter", data: z(t), symbolSize: s, itemStyle: { color: e.symbolColor }, label: { show: e.labelShow, fontSize: e.labelFontSize, position: e.labelPosition, color: e.labelColor, width: e.labelWidth, overflow: e.labelOverflow, formatter: p }, markLine: h, markArea: u }, O = [], C = [];
2488
+ if (g)
2489
+ for (const I in g) {
2490
+ const x = g[I], f = rt(S);
2491
+ f.symbolSize = s, f.label.formatter = p, f.itemStyle.color = x.color || e.symbolColor, f.data = x.data, f.name = I, C.push(f), O.push(I);
2492
+ }
2493
+ else
2494
+ C.push(S);
2495
+ return { xAxis: { z: 5, splitLine: { show: e.xAxisSplitLineShow, lineStyle: { color: e.xAxisSplitLineStyleColor }, interval: e.xAxisSplitLineInterval }, splitArea: { show: e.xAxisSplitAreaShow }, axisLabel: { show: e.xAxisLabelShow, fontSize: e.xAxisLabelFontSize, color: e.xAxisLabelColor, interval: e.xAxisLabelInterval || 0, rotate: e.xAxisLabelRotate, width: e.xAxisLabelWidth, overflow: e.xAxisLabelOverflow, formatter: (I) => (typeof I != "string" || I[0] !== "0" || isNaN(+I) || (I = (+I).toString()), Se(c, I)) }, axisLine: { lineStyle: { color: e.xAxisLineStyleColor }, symbol: ["none", e.showXAxisLineArrow ? "arrow" : "none"], symbolSize: [8, 12], onZero: !1 }, axisTick: { show: e.xAxisTickShow }, name: e.xAxisName, nameLocation: e.xAxisLineInverse ? "start" : "end", nameTextStyle: { fontSize: e.xAxisLabelFontSize, color: e.xAxisLabelColor, align: "left" }, inverse: e.xAxisLineInverse, max: e.xAxisMax, min: e.xAxisMin }, yAxis: { z: 5, splitLine: { show: e.yAxisSplitLineShow, lineStyle: { color: e.yAxisSplitLineStyleColor, type: e.yAxisSplitLineType } }, axisTick: { show: e.yAxisTickShow }, splitArea: { show: e.yAxisSplitAreaShow }, axisLabel: { show: e.yAxisLabelShow, fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, formatter: (I) => Se(d, I) }, axisLine: { show: e.yAxisLineAlwaysDisplay, lineStyle: { color: e.yAxisLineStyleColor }, symbol: ["none", e.showYAxisLineArrow ? "arrow" : "none"], symbolSize: [8, 12], onZero: !1 }, name: e.yAxisName, nameLocation: e.yAxisLineInverse ? "start" : "end", nameTextStyle: { fontSize: e.yAxisLabelFontSize, color: e.yAxisLabelColor, align: "right" }, inverse: e.yAxisLineInverse, max: e.yAxisMax, min: e.yAxisMin }, tooltip: { show: e.tooltipShow, trigger: e.tooltipTrigger, formatter(I) {
2496
+ var x, f;
2497
+ const { marker: j, seriesName: k, componentType: b } = I, w = (f = (x = I == null ? void 0 : I.data) === null || x === void 0 ? void 0 : x.record) !== null && f !== void 0 ? f : {}, v = w[o.name], _ = w[o.value];
2498
+ return ["markLine", "markArea"].includes(b) ? "" : me(e.tooltipFormatter, { textData: Object.assign({ marker: j, seriesName: k, a: k, b: v, c: _ }, w) }, { useNewline: !0, useSpace: !0 });
2499
+ }, axisPointer: { type: e.crossShow || e.crossShow === void 0 ? "cross" : "" }, textStyle: { fontSize: z(n) }, position: e.tooltipPosition || void 0 }, legend: { show: e.legendShow, orient: e.legendOrient, top: e.legendTop, left: e.legendLeft, textStyle: { color: e.legendTextStyleColor, fontSize: n }, data: O }, series: C };
2500
+ }
2501
+ function kr(e) {
2502
+ let t = "";
2503
+ switch (e) {
2504
+ case 1:
2505
+ t = "万";
2506
+ break;
2507
+ case 3:
2508
+ t = "百万";
2509
+ break;
2510
+ case 4:
2511
+ t = "千万";
2512
+ }
2513
+ return t;
2514
+ }
2515
+ const Dr = (e, t, n, i, a, r, l) => {
2516
+ switch (((o, c) => {
2517
+ if (!o)
2518
+ return o || "";
2519
+ if (o.toLowerCase().startsWith(c.toLowerCase())) {
2520
+ const d = o.slice(c.length);
2521
+ return d ? d.charAt(0).toLowerCase() + d.slice(1) : "";
2522
+ }
2523
+ return o;
2524
+ })(e.type, "ecan")) {
2525
+ case "bar":
2526
+ return function(o, c, d, h) {
2527
+ const u = o.yAxisLabelFormatter, y = o.xAxisLabelFormatter, L = Ce(c.dataset), N = Ce(c.dimensions), A = Be(() => {
2528
+ const { gradientShow: p, gradientColors: m, gradientOffset: s, barBorderRadius: S } = o, O = z(L), C = O.length, I = [];
2529
+ for (let x = 0; x < C; x++) {
2530
+ const f = Object.assign(Object.assign({}, O[x]), { type: "bar", barWidth: o.barWidth.value + o.barWidth.suffix, showBackground: o.showBarBackground });
2531
+ if (o.isStack && (f.stack = "stack"), f.label = { show: o.labelShow, fontSize: o.labelFontSize, position: o.labelPosition, color: o.labelColor, width: o.labelWidth, overflow: o.labelOverflow, formatter: (j) => {
2532
+ let k = "", b = o.labelFormatter;
2533
+ b === "" && (b = "{c}");
2534
+ const { seriesName: w, name: v, value: _, data: T } = j || {};
2535
+ return k += me(b, { textData: Object.assign({ name: v, value: _, a: w, b: v, c: _ || 0 }, T) }, { useNewline: !0, useSpace: !0 }), k;
2536
+ } }, f.itemStyle = {}, p) {
2537
+ let j = o.colors[x];
2538
+ if (!j && o.colors.length) {
2539
+ const k = (x + 1) % o.colors.length - 1;
2540
+ j = k > 0 ? o.colors[k] : o.colors[0];
2541
+ }
2542
+ j || (j = "#5470C6"), f.itemStyle = { color: { x: o.isUseHorizontalAxis ? 1 : 0, y: 0, x2: 0, y2: o.isUseHorizontalAxis ? 0 : 1, colorStops: [{ offset: 0, color: j }, { offset: s, color: m[x] }, { offset: 1, color: m[x] }] } };
2543
+ }
2544
+ if (S && (!o.isStack || x === C - 1)) {
2545
+ const j = S.split(",");
2546
+ if (j != null && j.length) {
2547
+ const k = [];
2548
+ for (const b of j) {
2549
+ const w = parseFloat(b);
2550
+ isNaN(w) || k.push(w);
2551
+ }
2552
+ f.itemStyle.borderRadius = k;
2553
+ }
2554
+ }
2555
+ o.isShowMarkLine && (f.markLine = { data: [{ type: o.markLineType }] }), I.push(f);
2556
+ }
2557
+ return I;
2558
+ }), g = Be(() => z(N).map((p) => {
2559
+ let m = {};
2560
+ return m = p && typeof p == "object" ? Object.assign(Object.assign({}, p), { textStyle: { fontSize: d } }) : { value: p, textStyle: { fontSize: d } }, m;
2561
+ }));
2562
+ return { tooltip: { trigger: "axis", show: o.tooltipShow, formatter: (p) => {
2563
+ var m;
2564
+ const s = p.length;
2565
+ let S = "", O = o.tooltipFormatter;
2566
+ h != null && h.getCurrentData && h.getCurrentData((m = p[0]) === null || m === void 0 ? void 0 : m.data), O === "" && (O = "{marker} {a} {c}");
2567
+ for (let C = 0; C < s; C++) {
2568
+ const { marker: I, seriesName: x, name: f, value: j, data: k } = p[C] || {};
2569
+ if (C === 0) {
2570
+ let b = f;
2571
+ f === "undefined" && (b = ""), typeof f != "string" || f[0] !== "0" || isNaN(+f) || (b = (+f).toString()), S += `${Se(y, b)}${b ? "<br/>" : ""}`;
2572
+ }
2573
+ S += me(O, { textData: Object.assign({ marker: I, name: f, value: j, a: x, b: f, c: k.sourceValue || j || 0 }, k) }, { useNewline: !0, useSpace: !0 }), S += "<br/>";
2574
+ }
2575
+ return S;
2576
+ }, textStyle: { color: o.tooltipTextStyleColor, fontSize: d.value }, position: o.tooltipPosition || void 0 }, legend: { type: o.legendScroll ? "scroll" : "plain", width: o.legendWidth, height: o.legendHeight, show: o.legendShow, orient: o.legendOrient, top: o.legendTop, left: o.legendLeft, textStyle: { rich: { text: { width: o.legendTextWidth, color: o.legendTextStyleColor } } }, itemHeight: o.legendItemHeight, itemWidth: o.legendItemWidth, itemGap: o.legendItemGap, data: z(L).map((p, m) => ({ name: p.name, itemStyle: { color: o.colors[m] }, icon: o.legendType })), formatter: (p) => pt(o.legendFormatter, { name: p }) }, xAxis: { type: o.isUseHorizontalAxis ? "value" : "category", data: o.isUseHorizontalAxis ? null : z(g), inverse: o.isUseHorizontalAxis ? o.xAxisInverse : o.axisInverse, minInterval: o.xAxisMinInterval, splitLine: { show: o.xAxisSplitLineShow, lineStyle: { color: o.xAxisSplitLineStyleColor, type: o.xAxisSplitLineType }, interval: o.xAxisSplitLineInterval }, splitArea: { show: o.xAxisSplitAreaShow }, axisLabel: { show: o.xAxisLabelShow, color: o.xAxisLabelColor, interval: o.xAxisLabelInterval || 0, rotate: o.xAxisLabelRotate, width: o.xAxisLabelWidth, overflow: o.xAxisLabelOverflow, fontSize: o.xAxisLabelFontSize, formatter: (p) => (typeof p != "string" || p[0] !== "0" || isNaN(+p) || (p = (+p).toString()), Se(y, p)) }, axisLine: { show: o.xAxisLineShow, lineStyle: { color: o.xAxisLineStyleColor } }, axisTick: { show: o.xAxisTickShow }, name: o.xAxisName, nameTextStyle: { fontSize: o.xAxisLabelFontSize, color: o.xAxisLabelColor, align: "left" }, max: o.xAxisMaxValue || null }, yAxis: { type: o.isUseHorizontalAxis ? "category" : "value", data: o.isUseHorizontalAxis ? z(N) : null, inverse: o.isUseHorizontalAxis ? o.axisInverse : o.yAxisInverse, minInterval: o.yAxisMinInterval, splitLine: { show: o.yAxisSplitLineShow, lineStyle: { color: o.yAxisSplitLineStyleColor, type: o.yAxisSplitLineType } }, splitArea: { show: o.yAxisSplitAreaShow }, axisTick: { show: o.yAxisTickShow }, axisLabel: { show: o.yAxisLabelShow, fontSize: o.yAxisLabelFontSize, color: o.yAxisLabelColor, rotate: o.yAxisLabelRotate, width: o.yAxisLabelWidth, overflow: o.yAxisLabelOverflow, formatter: (p) => Se(u, p) }, axisLine: { show: o.yAxisLineAlwaysDisplay, lineStyle: { color: o.yAxisLineStyleColor } }, name: o.yAxisName, nameTextStyle: { fontSize: o.yAxisLabelFontSize, color: o.yAxisLabelColor, align: "right" }, max: o.yAxisMaxValue || null }, series: z(A) };
2577
+ }(e, t, n, l);
2578
+ case "line":
2579
+ return function(o, c, d, h) {
2580
+ const u = o.yAxisLabelFormatter, y = o.xAxisLabelFormatter, L = Ce(c.dataset), N = Ce(c.dimensions), A = c.dataset, g = Be(() => {
2581
+ const p = [], m = A.length;
2582
+ for (let S = 0; S < m; S++) {
2583
+ const O = {};
2584
+ o.shadowColor && (O.shadowColor = o.shadowColor, O.shadowBlur = o.shadowBlur, O.shadowOffsetY = o.shadowOffsetY, O.shadowOffsetX = o.shadowOffsetX);
2585
+ let C = o.colors[S];
2586
+ if (!C && o.colors.length) {
2587
+ const I = (S + 1) % o.colors.length - 1;
2588
+ C = I > 0 ? o.colors[I] : o.colors[0];
2589
+ }
2590
+ C || (C = "#5470C6"), p.push(Object.assign(Object.assign(Object.assign({ type: "line" }, A[S]), { symbolSize: o.symbolSize, smooth: o.smooth, areaStyle: { color: o.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: C }, { offset: 1, color: o.areaGradientColor || "transparent" }], global: !1 } : C, opacity: o.areaStyleOpacity }, lineStyle: Object.assign({ width: o.lineStyleWidth }, O) }), (s = o).isShowMarkLine ? { markLine: { data: [{ type: s.markLineType }] } } : {}));
2591
+ }
2592
+ var s;
2593
+ return p;
2594
+ });
2595
+ return { tooltip: { trigger: "axis", textStyle: { fontSize: d.value, color: o.tooltipTextStyleColor }, show: o.tooltipShow, formatter: (p) => {
2596
+ var m;
2597
+ const s = p.length;
2598
+ let S = "", O = o.tooltipFormatter;
2599
+ h != null && h.getCurrentData && h.getCurrentData((m = p[0]) === null || m === void 0 ? void 0 : m.data), O === "" && (O = "{marker} {a} {c}");
2600
+ for (let C = 0; C < s; C++) {
2601
+ const { marker: I, seriesName: x, name: f, value: j, data: k } = p[C] || {};
2602
+ if (C === 0) {
2603
+ let b = f;
2604
+ typeof f != "string" || f[0] !== "0" || isNaN(+f) || (b = (+f).toString()), S += `${Se(y, b)}<br/>`;
2605
+ }
2606
+ S += me(O, { textData: Object.assign({ marker: I, name: f, value: j, a: x, b: f, c: j || 0 }, k) }, { useNewline: !0, useSpace: !0 }), S += "<br/>";
2607
+ }
2608
+ return S;
2609
+ }, position: o.tooltipPosition || void 0 }, xAxis: { type: "category", boundaryGap: o.isBoundaryGap, data: z(N).map((p) => {
2610
+ let m = {};
2611
+ return m = p && typeof p == "object" ? Object.assign({}, p) : { value: p }, m;
2612
+ }), minInterval: o.xAxisMinInterval, splitLine: { show: o.xAxisSplitLineShow, lineStyle: { color: o.xAxisSplitLineStyleColor }, interval: o.xAxisSplitLineInterval }, splitArea: { show: o.xAxisSplitAreaShow }, axisLabel: { show: o.xAxisLabelShow, color: o.xAxisLabelColor, interval: o.xAxisLabelInterval || 0, rotate: o.xAxisLabelRotate, width: o.xAxisLabelWidth, overflow: o.xAxisLabelOverflow, fontSize: o.xAxisLabelFontSize, formatter: (p) => (typeof p != "string" || p[0] !== "0" || isNaN(+p) || (p = (+p).toString()), Se(y, p)) }, axisLine: { show: o.xAxisLineShow, lineStyle: { color: o.xAxisLineStyleColor } }, axisTick: { show: o.xAxisTickShow }, name: o.xAxisName, nameTextStyle: { fontSize: o.xAxisLabelFontSize, color: o.xAxisLabelColor, align: "left" }, max: o.xAxisMaxValue || null }, yAxis: { type: "value", minInterval: o.yAxisMinInterval, splitLine: { show: o.yAxisSplitLineShow, lineStyle: { color: o.yAxisSplitLineStyleColor, type: o.yAxisSplitLineType } }, splitArea: { show: o.yAxisSplitAreaShow }, axisLabel: { show: o.yAxisLabelShow, fontSize: o.yAxisLabelFontSize, color: o.yAxisLabelColor, formatter: (p) => Se(u, p) }, axisLine: { show: o.yAxisLineAlwaysDisplay, lineStyle: { color: o.yAxisLineStyleColor } }, name: o.yAxisName, nameTextStyle: { fontSize: o.yAxisLabelFontSize, color: o.yAxisLabelColor, align: "right" }, max: o.yAxisMaxValue || null }, legend: { type: o.legendScroll ? "scroll" : "plain", width: o.legendWidth, height: o.legendHeight, show: o.legendShow, orient: o.legendOrient, top: o.legendTop, left: o.legendLeft, textStyle: { lineHeight: parseFloat(o.legendFontSize) + 8, rich: { text: { width: o.legendTextWidth, color: o.legendTextStyleColor, fontSize: o.legendFontSize } } }, itemHeight: o.legendItemHeight, itemWidth: o.legendItemWidth, itemGap: o.legendItemGap, data: z(L).map((p) => ({ name: p.name, icon: o.legendType })), formatter: (p) => pt(o.legendFormatter, { name: p }) }, series: z(g) };
2613
+ }(e, t, n, l);
2614
+ case "pie":
2615
+ return function(o, c, d) {
2616
+ var h, u;
2617
+ const y = Ce(c.dataset);
2618
+ let { data: L = [] } = z(y)[0] || {};
2619
+ if (Array.isArray(o.colors)) {
2620
+ const N = o.isUseLabelColors, A = o.colors;
2621
+ L = L.map((g, p) => Object.assign({ label: N ? { color: A[p] } : {} }, g));
2622
+ }
2623
+ return { tooltip: { show: o.tooltipShow, trigger: o.tooltipTrigger, formatter: (N) => {
2624
+ const { marker: A, seriesName: g, name: p, value: m, percent: s, data: S } = N || {};
2625
+ return me(o.tooltipFormatter, { textData: Object.assign({ marker: A, name: p, value: m, percent: s, a: g, b: p, c: m, d: s }, S) }, { useNewline: !0, useSpace: !0 });
2626
+ }, textStyle: { color: o.tooltipTextStyleColor }, position: o.tooltipPosition || void 0 }, legend: { type: o.legendScroll ? "scroll" : "plain", width: o.legendWidth, height: o.legendHeight, show: o.legendShow, orient: o.legendOrient, top: o.legendTop, left: o.legendLeft, align: "left", textStyle: { lineHeight: d + 8, rich: { text: { width: o.legendTextWidth, color: o.legendTextStyleColor, fontSize: d } } }, itemHeight: o.legendItemHeight, itemWidth: o.legendItemWidth, itemGap: o.legendItemGap, data: (u = (h = z(y)[0]) === null || h === void 0 ? void 0 : h.data) === null || u === void 0 ? void 0 : u.map((N) => ({ name: N.name, icon: o.legendType })), formatter: (N) => {
2627
+ const { data: A } = y.value[0] || {};
2628
+ let g, p = 0, m = "0%";
2629
+ if (A)
2630
+ for (const s of A)
2631
+ s.name === N && (g = +s.value), p += +s.value;
2632
+ return p && (m = `${(g / p * 100).toFixed(2)}%`), pt(o.legendFormatter, { name: N, value: g, percent: m });
2633
+ } }, series: [{ data: L, type: "pie", radius: [o.innerRadius, o.outerRadius], center: [o.centerLeft, o.centerTop], roseType: o.roseType, avoidLabelOverlap: !0, minAngle: o.minAngle, label: { show: o.labelPosition !== "center" && o.labelShow, color: o.labelColor, fontSize: o.labelFontSize, position: o.labelPosition, formatter: (N) => {
2634
+ let A = "", g = o.labelFormatter;
2635
+ g === "" && (g = `{b}
2636
+ {d}%`), g = g.replace(/\\n/g, `
2637
+ `);
2638
+ const { name: p, value: m, data: s, percent: S } = N || {};
2639
+ return A += me(g, { textData: Object.assign({ name: p, value: m, b: p, d: m || 0, percent: S }, s) }, { useNewline: !1, useSpace: !1 }), A;
2640
+ }, width: o.labelWidth, overflow: o.labelOverflow }, labelLine: { show: o.labelLineShow, length: o.labelLineLength, length2: o.labelLineLength2 }, emphasis: { itemStyle: { shadowBlur: 10, shadowOffsetX: 0, shadowColor: "rgba(0, 0, 0, 0.5)" }, label: {} } }] };
2641
+ }(e, t, n);
2642
+ case "radar":
2643
+ return function(o, c, d) {
2644
+ const h = Ce(c.dimensions), u = Ce(c.dataset), y = Be(() => {
2645
+ var A;
2646
+ const g = [], p = [], m = z(u), s = m.length;
2647
+ for (let S = 0; S < s; S++) {
2648
+ const { data: O = [] } = m[S];
2649
+ for (let C = 0; C < O.length; C++)
2650
+ p.push(O[C].value);
2651
+ }
2652
+ if (!((A = h.value) === null || A === void 0) && A.length) {
2653
+ const S = p != null && p.length ? 1.2 * Math.max(...p) : 0;
2654
+ for (const O of h.value)
2655
+ g.push({ name: O, max: S });
2656
+ }
2657
+ return g;
2658
+ }), L = Be(() => {
2659
+ const A = z(u), g = A.length, p = [];
2660
+ for (let m = 0; m < g; m++) {
2661
+ const { name: s, data: S = [] } = A[m], O = [{ name: s, value: S.map((f) => f.value) }];
2662
+ let C = o.colors[m];
2663
+ if (!C && o.colors.length) {
2664
+ const f = (m + 1) % o.colors.length - 1;
2665
+ C = f > 0 ? o.colors[f] : o.colors[0];
2666
+ }
2667
+ C || (C = "#5470C6");
2668
+ let I = C;
2669
+ if (o.gradientShow) {
2670
+ const { gradientOffset: f, gradientColors: j } = o;
2671
+ I = { x: 0.7, y: 0, x2: 0, y2: 0, colorStops: [{ offset: 0, color: C }, { offset: f, color: j[m] }, { offset: 1, color: j[m] }] };
2672
+ }
2673
+ const x = { type: "radar", name: s, data: O, areaStyle: { color: I, opacity: o.areaStyleOpacity }, tooltip: { trigger: "item" }, symbolSize: o.symbolSize, lineStyle: { width: o.lineStyleWidth }, label: { show: o.labelShow, fontSize: o.labelFontSize, position: o.labelPosition, color: o.labelColor, width: o.labelWidth, overflow: o.labelOverflow, formatter: (f) => {
2674
+ const { data: j, value: k } = f;
2675
+ let b = 0, w = "0%";
2676
+ if (j)
2677
+ for (const v of j.value)
2678
+ b += +v;
2679
+ return b && (w = `${(k / b * 100).toFixed(2)}%`), me(o.labelFormatter, { textData: { value: k, percent: w } }, { useNewline: !1, useSpace: !1 });
2680
+ } } };
2681
+ p.push(x);
2682
+ }
2683
+ return p;
2684
+ }), N = Be(() => ({ tooltip: { trigger: "axis", textStyle: { fontSize: d.value }, show: o.tooltipShow, formatter: (A) => {
2685
+ let g = "", p = o.tooltipFormatter;
2686
+ p === "" && (p = "{marker} {a} {c}");
2687
+ for (let m = 0; m < z(y).length; m++) {
2688
+ const s = z(y)[m], { marker: S, seriesName: O, value: C } = A || {};
2689
+ m === 0 && O && (g += `${O}<br/>`), g += me(p, { textData: { marker: S, name: s.name, value: C[m], a: s.name, b: s.name, c: C[m] || 0, type: O } }, { useNewline: !0, useSpace: !0 }), g += "<br/>";
2690
+ }
2691
+ return g;
2692
+ }, position: o.tooltipPosition || void 0 }, radar: { indicator: z(y), axisName: { color: o.axisNameColor } }, legend: { type: o.legendScroll ? "scroll" : "plain", width: o.legendWidth, height: o.legendHeight, show: o.legendShow, orient: o.legendOrient, top: o.legendTop, left: o.legendLeft, textStyle: { lineHeight: parseFloat(o.legendFontSize) + 8, rich: { text: { width: o.legendTextWidth, color: o.legendTextStyleColor, fontSize: o.legendFontSize } } }, itemHeight: o.legendItemHeight, itemWidth: o.legendItemWidth, itemGap: o.legendItemGap, data: z(u).map((A) => ({ name: A.name, icon: o.legendType })), formatter: (A) => pt(o.legendFormatter, { name: A }) }, series: z(L) }));
2693
+ return z(N);
2694
+ }(e, t, n);
2695
+ case "scatter":
2696
+ return Ir(e, t, n, i, a, r, l);
2697
+ case "comboGraph":
2698
+ return function(o, c, d, h) {
2699
+ const u = Ce(c.dimensions), y = Ce(c.dataset), L = c.dataset, N = (m) => {
2700
+ const s = [];
2701
+ let S = 0;
2702
+ return o.seriesTypes.forEach((O, C) => {
2703
+ var I, x;
2704
+ O.axisIndex === m && (!((x = (I = z(y)[C]) === null || I === void 0 ? void 0 : I.data) === null || x === void 0) && x.length) && s.push(...z(y)[C].data.map((f) => +f.value));
2705
+ }), s.some((O) => O >= 1e7) ? S = 4 : s.some((O) => O >= 1e6) ? S = 3 : s.some((O) => O >= 1e4) && (S = 1), S;
2706
+ }, A = Ce([0, 0]), g = Be(() => {
2707
+ const m = o.yAxis;
2708
+ return m == null ? void 0 : m.map((s, S) => {
2709
+ const O = A.value[S];
2710
+ let C;
2711
+ return O && (C = 1e4 * Math.pow(10, O - 1)), { type: "value", minInterval: o.yAxisMinInterval, splitLine: { show: S === 0 ? o.yAxisLeftSplitLineShow : o.yAxisRightSplitLineShow, lineStyle: { color: o.yAxisSplitLineStyleColor, type: S === 0 ? o.yAxisLeftSplitLineType : o.yAxisRightSplitLineType } }, splitArea: { show: o.yAxisSplitAreaShow }, axisLabel: { show: o.yAxisLabelShow, fontSize: o.yAxisLabelFontSize, color: o.yAxisLabelColor, formatter(I) {
2712
+ let x = I;
2713
+ return C && (x = (+I / C).toString()), Se(s.axisLabelFormatter, x);
2714
+ } }, axisLine: { show: o.yAxisLineAlwaysDisplay, lineStyle: { color: o.yAxisLineStyleColor } }, name: kr(O) + (S === 0 ? o.yAxisLeftName : o.yAxisRightName), nameTextStyle: { fontSize: o.yAxisLabelFontSize, color: o.yAxisLabelColor, align: S === 0 ? "right" : "left" }, max: o.yAxisMaxValue || null };
2715
+ });
2716
+ });
2717
+ return A.value[0] = o.yAxisLeftUnitAdapt ? N(0) : 0, A.value[1] = o.yAxisRightUnitAdapt ? N(1) : 0, { legend: { type: o.legendScroll ? "scroll" : "plain", width: o.legendWidth, height: o.legendHeight, show: o.legendShow, orient: o.legendOrient, top: o.legendTop, left: o.legendLeft, textStyle: { lineHeight: parseFloat(o.legendFontSize) + 8, rich: { text: { width: o.legendTextWidth, color: o.legendTextStyleColor, fontSize: o.legendFontSize } } }, itemHeight: o.legendItemHeight, itemWidth: o.legendItemWidth, itemGap: o.legendItemGap, data: z(y).map((m, s) => ({ name: m.name, itemStyle: { color: o.colors[s] }, icon: o.legendType })), formatter: (m) => pt(o.legendFormatter, { name: m }) }, tooltip: { trigger: "axis", show: o.tooltipShow, formatter: (m) => {
2718
+ var s;
2719
+ const S = m.length;
2720
+ let O = "", C = o.tooltipFormatter;
2721
+ h != null && h.getCurrentData && h.getCurrentData((s = m[0]) === null || s === void 0 ? void 0 : s.data), C === "" && (C = "{marker} {a} {c}");
2722
+ const I = o.seriesTypes;
2723
+ for (let x = 0; x < S; x++) {
2724
+ const f = I[x], { tooltipFormatter: j } = f || {}, { marker: k, seriesName: b, name: w, value: v, data: _ } = m[x] || {};
2725
+ if (x === 0) {
2726
+ let T = w;
2727
+ typeof w != "string" || w[0] !== "0" || isNaN(+w) || (T = (+w).toString()), O += `${Se(o.xAxisLabelFormatter, T)}<br/>`;
2728
+ }
2729
+ O += me(j || C, { textData: Object.assign({ marker: k, name: w, value: v, seriesName: b, a: b, b: w, c: v || 0 }, _) }, { useNewline: !0, useSpace: !0 }), O += "<br/>";
2730
+ }
2731
+ return O;
2732
+ }, textStyle: { color: o.tooltipTextStyleColor, fontSize: d.value }, position: o.tooltipPosition || void 0 }, xAxis: { minInterval: o.xAxisMinInterval, type: "category", data: z(u).map((m) => {
2733
+ let s = {};
2734
+ return s = m && typeof m == "object" ? Object.assign({}, m) : { value: m }, s;
2735
+ }), splitLine: { show: o.xAxisSplitLineShow, lineStyle: { color: o.xAxisSplitLineStyleColor }, interval: o.xAxisSplitLineInterval }, splitArea: { show: o.xAxisSplitAreaShow }, axisLabel: { show: o.xAxisLabelShow, color: o.xAxisLabelColor, interval: o.xAxisLabelInterval || 0, rotate: o.xAxisLabelRotate, width: o.xAxisLabelWidth, overflow: o.xAxisLabelOverflow, fontSize: o.xAxisLabelFontSize, formatter: (m) => (typeof m != "string" || m[0] !== "0" || isNaN(+m) || (m = (+m).toString()), Se(o.xAxisLabelFormatter, m)) }, axisLine: { show: o.xAxisLineShow, lineStyle: { color: o.xAxisLineStyleColor } }, axisTick: { show: o.xAxisTickShow }, name: o.xAxisName, nameTextStyle: { fontSize: o.xAxisLabelFontSize, color: o.xAxisLabelColor, align: "left" }, max: o.xAxisMaxValue || null }, yAxis: z(g), series: function(m) {
2736
+ const s = [], S = m.length, O = o.seriesTypes;
2737
+ for (let C = 0; C < S; C++) {
2738
+ const I = O[C], { type: x, axisIndex: f } = I || {};
2739
+ let j = Object.assign({ type: x, yAxisIndex: f }, m[C]), k = o.colors[C];
2740
+ if (!k && o.colors.length) {
2741
+ const b = (C + 1) % o.colors.length - 1;
2742
+ k = b > 0 ? o.colors[b] : o.colors[0];
2743
+ }
2744
+ if (k || (k = "#5470C6"), x === "line") {
2745
+ const b = {};
2746
+ o.shadowColor && (b.shadowColor = o.shadowColor, b.shadowBlur = o.shadowBlur, b.shadowOffsetY = o.shadowOffsetY, b.shadowOffsetX = o.shadowOffsetX), j = Object.assign(Object.assign({}, j), { symbolSize: o.symbolSize, smooth: o.smooth, itemStyle: { color: k }, areaStyle: { color: o.areaGradientShow ? { type: "linear", x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: k }, { offset: 1, color: o.areaGradientColor || "transparent" }], global: !1 } : k, opacity: o.areaStyleOpacity }, lineStyle: Object.assign({ width: o.lineStyleWidth }, b) });
2747
+ }
2748
+ if (x === "bar") {
2749
+ const { gradientShow: b, gradientColors: w, gradientOffset: v } = o, _ = { color: k };
2750
+ if (o.barBorderRadius) {
2751
+ const T = o.barBorderRadius.split(",");
2752
+ if (T != null && T.length) {
2753
+ const F = [];
2754
+ for (const D of T) {
2755
+ const E = parseFloat(D);
2756
+ isNaN(E) || F.push(E);
2757
+ }
2758
+ _.borderRadius = F;
2759
+ }
2760
+ }
2761
+ b && (_.color = { x: 0, y: 0, x2: 0, y2: 1, colorStops: [{ offset: 0, color: k }, { offset: v, color: w[C] }, { offset: 1, color: w[C] }] }), j = Object.assign(Object.assign({}, j), { barWidth: o.barWidth.value + o.barWidth.suffix, itemStyle: _, label: { show: o.labelShow, fontSize: o.labelFontSize, position: o.labelPosition, color: o.labelColor, width: o.labelWidth, overflow: o.labelOverflow, formatter: (T) => {
2762
+ let F = "", D = o.labelFormatter;
2763
+ D === "" && (D = "{c}");
2764
+ const { seriesName: E, name: R, value: M, data: W } = T || {};
2765
+ return F += me(D, { textData: Object.assign({ name: R, value: M, a: E, b: R, c: M || 0 }, W) }, { useNewline: !0, useSpace: !0 }), F;
2766
+ } } });
2767
+ }
2768
+ o.isShowMarkLine && (j.markLine = { data: [{ type: o.markLineType }] }), s.push(j);
2769
+ }
2770
+ return s;
2771
+ }(L) };
2772
+ }(e, t, n, l);
2773
+ default:
2774
+ return {};
2775
+ }
2776
+ }, Fr = (e, t, { fontSize: n = 12, graphicConfig: i = {}, maxValueObj: a = {}, fontFamily: r = null, componentValues: l = null, callBackMethodMap: o = {} }) => Object.assign(Object.assign({}, function(c, d, h) {
2777
+ return { textStyle: { fontFamily: z(d) }, toolbox: { show: c.toolboxShow, left: c.toolboxLeft, top: c.toolboxTop, itemSize: c.toolboxItemSize, itemGap: c.toolboxItemGap, feature: { myLocation: { show: !!c.toolboxLocation, title: "快速定位", icon: "path://M512 512m-80 0a80 80 0 1 0 160 0 80 80 0 1 0-160 0Z, M960 480h-33.632C910.752 276.16 747.84 113.248 544 97.632V64a32 32 0 1 0-64 0v33.632C276.16 113.248 113.248 276.16 97.632 480H64a32 32 0 0 0 0 64h33.632C113.248 747.84 276.16 910.752 480 926.368V960a32 32 0 1 0 64 0v-33.632C747.84 910.752 910.752 747.84 926.368 544H960a32 32 0 1 0 0-64zM544 862.368V800a32 32 0 1 0-64 0v62.368C311.424 847.104 176.896 712.576 161.632 544H224a32 32 0 1 0 0-64H161.632C176.896 311.424 311.424 176.896 480 161.632V224a32 32 0 0 0 64 0V161.632c168.576 15.296 303.104 149.792 318.368 318.368H800a32 32 0 1 0 0 64h62.368c-15.264 168.576-149.792 303.104-318.368 318.368z", onclick() {
2778
+ h.toolboxLocationFun && h.toolboxLocationFun(c);
2779
+ } }, myDownload: { show: c.toolboxDownloadUrl && c.toolboxDownloadShow, title: "数据下载", icon: "path://M502.010485 765.939573c3.773953 3.719718 8.686846 5.573949 13.596669 5.573949 0.075725 0 0.151449-0.010233 0.227174-0.011256 0.329505 0.016373 0.654916 0.050142 0.988514 0.050142 0.706081 0 1.400906-0.042979 2.087545-0.116657 4.352121-0.366344 8.607028-2.190899 11.961426-5.496178l335.053985-330.166675c7.619538-7.509021 7.709589-19.773346 0.200568-27.393907s-19.774369-7.711636-27.39493-0.201591L536.193005 706.304358 536.193005 50.019207c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 657.032164-306.881342-302.44838c-7.618515-7.509021-19.883863-7.419993-27.393907 0.199545-7.509021 7.619538-7.419993 19.884886 0.199545 27.393907L502.010485 765.939573z, M867.170139 711.020776c-10.698666 0-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 13.054317-10.620895 23.675212-23.676236 23.675212L205.182103 919.486668c-13.054317 0-23.676236-10.620895-23.676236-23.675212L181.505867 730.391962c0-10.698666-8.67252-19.371186-19.371186-19.371186s-19.371186 8.67252-19.371186 19.371186l0 165.419494c0 34.416857 28.000728 62.416562 62.417585 62.416562l618.941638 0c34.417881 0 62.417585-27.999704 62.417585-62.416562L886.540302 730.391962C886.541325 719.693296 877.868805 711.020776 867.170139 711.020776z", onclick() {
2780
+ h.toolboxDownloadShowFun && h.toolboxDownloadShowFun(c);
2781
+ } }, myDataZoom: { show: c.toolboxDataZoomShow, title: "放大", icon: "path://M932.42 902.246667L792 761.793333A403.84 403.84 0 0 0 896 490.666667c0-223.86-181.473333-405.333333-405.333333-405.333334S85.333333 266.806667 85.333333 490.666667s181.473333 405.333333 405.333334 405.333333a403.84 403.84 0 0 0 271.126666-104l140.453334 140.453333a21.333333 21.333333 0 0 0 30.173333-30.173333zM128 490.666667c0-200.293333 162.373333-362.666667 362.666667-362.666667s362.666667 162.373333 362.666666 362.666667-162.373333 362.666667-362.666666 362.666666-362.666667-162.373333-362.666667-362.666666z m512 0a21.333333 21.333333 0 0 1-21.333333 21.333333H512v106.666667a21.333333 21.333333 0 0 1-42.666667 0V512H362.666667a21.333333 21.333333 0 0 1 0-42.666667h106.666666V362.666667a21.333333 21.333333 0 0 1 42.666667 0v106.666666h106.666667a21.333333 21.333333 0 0 1 21.333333 21.333334z", onclick() {
2782
+ h.toolboxDataZoomShowFun && h.toolboxDataZoomShowFun(c);
2783
+ } }, myInfo: { show: c.toolboxInfoShow, title: "详情", icon: "path://M512.50142 958.397886c-119.320573 0-231.499491-46.465265-315.871087-130.837884C112.258737 743.188406 65.792449 631.010511 65.792449 511.688915c0-119.319549 46.466288-231.499491 130.837884-315.871087C281.002952 111.445208 393.180847 64.979944 512.50142 64.979944s231.499491 46.465265 315.871087 130.837884c84.372619 84.372619 130.837884 196.551538 130.837884 315.871087 0 119.321596-46.465265 231.499491-130.837884 315.871087C744.000911 911.932622 631.821993 958.397886 512.50142 958.397886zM512.50142 105.962334c-223.718271 0-405.726581 182.00831-405.726581 405.726581s182.00831 405.726581 405.726581 405.726581c223.718271 0 405.727605-182.00831 405.727605-405.726581S736.220714 105.962334 512.50142 105.962334z M510.150886 775.953647c-18.107403 0-32.745798-14.678304-32.745798-32.785707L477.405087 452.191846c0-18.108426 14.638395-32.785707 32.745798-32.785707 18.107403 0 32.745798 14.678304 32.745798 32.785707l0 290.976094C542.896684 761.275343 528.258289 775.953647 510.150886 775.953647z M511.357364 296.458969m-45.080731 0a44.054 44.054 0 1 0 90.161463 0 44.054 44.054 0 1 0-90.161463 0Z", onclick() {
2784
+ h.toolboxInfoShowFun && h.toolboxInfoShowFun(c);
2785
+ } }, mySource: { show: c.toolboxInfoSource, title: "指标来源", icon: "path://M473 71a8 8 0 0 1 8-8h64a8 8 0 0 1 8 8v77.161C722.848 166.622 857.812 301.289 876.729 471H952a8 8 0 0 1 8 8v64a8 8 0 0 1-8 8h-75.053C858.871 721.652 723.515 857.305 553 875.839V951a8 8 0 0 1-8 8h-64a8 8 0 0 1-8-8v-75.161C302.818 857.341 167.659 722.182 149.161 552H72a8 8 0 0 1-8-8v-64a8 8 0 0 1 8-8h77.161C167.659 301.818 302.818 166.659 473 148.161V71z m326 441c0-157.953-128.047-286-286-286S227 354.047 227 512s128.047 286 286 286 286-128.047 286-286z m-286 60c33.137 0 60-26.863 60-60s-26.863-60-60-60-60 26.863-60 60 26.863 60 60 60z", onclick() {
2786
+ h.toolboxSourceShowFun && h.toolboxSourceShowFun(c);
2787
+ } } } }, title: { text: c.titleText, subtext: c.titleSubtext, textStyle: { fontSize: c.titleFontSize, fontWeight: c.fontWeight, color: c.titleColor }, left: c.textAlign }, grid: { top: c.gridTop, bottom: c.gridBottom, left: c.gridLeft, right: c.gridRight, containLabel: c.gridContainLabel }, color: c.colors };
2788
+ }(e, r, o)), Dr(e, t, n, i, a, l, o)), go = (e) => {
2789
+ const t = [];
2790
+ if (e != null && e.length)
2791
+ for (const n of e)
2792
+ n.conditions ? t.push(...go(n.conditions)) : (n == null ? void 0 : n.dataType) === "component" && t.push(n);
2793
+ return t;
2794
+ }, Er = (e, t) => {
2795
+ var A;
2796
+ const n = ze((e == null ? void 0 : e.controlList) || []), {
2797
+ classificationList: i = [],
2798
+ rowHeaderList: a = [],
2799
+ dimensionList: r = [],
2800
+ seriesList: l = [],
2801
+ leftAxisList: o = [],
2802
+ rightAxisList: c = [],
2803
+ queryColumnList: d = [],
2804
+ indicators: h = []
2805
+ } = e;
2806
+ Si(n, t);
2807
+ const u = n, y = [
2808
+ ...i,
2809
+ ...a,
2810
+ ...r,
2811
+ ...l,
2812
+ ...o,
2813
+ ...c,
2814
+ ...d,
2815
+ ...h
2816
+ ], L = [];
2817
+ for (const g of y) {
2818
+ const p = go((g == null ? void 0 : g.conditions) || []);
2819
+ if (p != null && p.length) {
2820
+ const m = p.filter((s) => vn(s, t) ? (s == null ? void 0 : s.dataType) === "component" : !1).map((s) => {
2821
+ const S = vn(s, t), O = {};
2822
+ return s != null && s.dateFormat && (O.format = s.dateFormat), {
2823
+ conditionKey: s.fieldName,
2824
+ conditionLabel: s.fieldName,
2825
+ conditionName: s.fieldName,
2826
+ conditionValueType: s.fieldType,
2827
+ id: S.id,
2828
+ keyName: s.fieldValue,
2829
+ rule: s.rule,
2830
+ notGlobal: !0,
2831
+ indexCode: s.indexCode,
2832
+ typeGuid: s.typeGuid,
2833
+ indexCodeNum: s.indexCodeNum,
2834
+ ...O
2835
+ };
2836
+ });
2837
+ if (m != null && m.length)
2838
+ for (const s of m)
2839
+ L.find((S) => S.keyName === s.keyName) || L.push(s);
2840
+ }
2841
+ }
2842
+ const N = L.length;
2843
+ for (let g = 0; g < N; g++) {
2844
+ const p = L[g];
2845
+ if (p && !((A = Object.keys(p)) != null && A.length) || (p == null ? void 0 : p.conditionKey) === "parentCode")
2846
+ continue;
2847
+ const {
2848
+ id: m,
2849
+ keyName: s,
2850
+ prop: S,
2851
+ format: O,
2852
+ dataType: C = "component",
2853
+ customValue: I
2854
+ } = p, x = vi(p);
2855
+ To({
2856
+ sqlCondition: x,
2857
+ renderUsedComponents: t,
2858
+ id: m,
2859
+ dateFormat: O,
2860
+ prop: S,
2861
+ keyName: s,
2862
+ dataType: C,
2863
+ customValue: I
2864
+ }), u.push(x);
2865
+ }
2866
+ for (let g = u.length - 1; g >= 0; g--) {
2867
+ const p = u[g];
2868
+ p.globalCondition || go(u).find((s) => s.alias === p.alias && s.globalCondition) && u.splice(g, 1);
2869
+ }
2870
+ return u;
2871
+ }, ll = (e, t) => {
2872
+ const n = [];
2873
+ if (e != null && e.length) {
2874
+ for (const i of e)
2875
+ if (i.variableName) {
2876
+ const a = {
2877
+ variateName: i.variableName,
2878
+ globalCondition: i.globalCondition || !1,
2879
+ valueType: i.variableType,
2880
+ alias: i.keyName || ""
2881
+ };
2882
+ To({
2883
+ sqlCondition: a,
2884
+ renderUsedComponents: t,
2885
+ id: i.id,
2886
+ dateFormat: i.format,
2887
+ prop: i.dateTypeValue,
2888
+ keyName: i.keyName,
2889
+ dataType: i.dataType,
2890
+ customValue: i.variableValue,
2891
+ operateType: i.operateType,
2892
+ operateMode: i.operateMode,
2893
+ operateValue: i.operateValue
2894
+ }), i.format && (a.dateFormat = i.format), i.label && (a.label = i.label), n.push(a);
2895
+ }
2896
+ }
2897
+ return n;
2898
+ };
2899
+ function vi(e) {
2900
+ const {
2901
+ id: t,
2902
+ keyName: n,
2903
+ conditionLabel: i,
2904
+ conditionKey: a,
2905
+ conditionValueType: r,
2906
+ prop: l,
2907
+ rule: o = "NONE",
2908
+ notGlobal: c = !1,
2909
+ indexCode: d,
2910
+ indexCodeNum: h,
2911
+ typeGuid: u,
2912
+ dataType: y = "component"
2913
+ } = e;
2914
+ let L = n || t;
2915
+ return L && l && (L += `-${l}`), {
2916
+ rule: o,
2917
+ label: i,
2918
+ fieldName: a,
2919
+ fieldValue: "",
2920
+ // 在关联控件中取
2921
+ valueType: r,
2922
+ alias: L,
2923
+ globalCondition: !c,
2924
+ indexCode: d,
2925
+ indexCodeNum: h,
2926
+ typeGuid: u,
2927
+ dataType: y
2928
+ };
2929
+ }
2930
+ const Mr = [
2931
+ "keyValue",
2932
+ "conditionKey",
2933
+ "conditionLabel",
2934
+ "conditionName",
2935
+ "conditionValueType",
2936
+ "customValue",
2937
+ "id",
2938
+ "keyName"
2939
+ ];
2940
+ function Si(e, t) {
2941
+ if (e != null && e.length)
2942
+ for (const n of e)
2943
+ if (n != null && n.conditions)
2944
+ Si(n.conditions, t);
2945
+ else {
2946
+ const {
2947
+ id: i,
2948
+ keyName: a,
2949
+ prop: r,
2950
+ format: l,
2951
+ dataType: o = "component",
2952
+ customValue: c
2953
+ } = n, d = vi(n);
2954
+ To({
2955
+ sqlCondition: d,
2956
+ renderUsedComponents: t,
2957
+ id: i,
2958
+ dateFormat: l,
2959
+ prop: r,
2960
+ keyName: a,
2961
+ dataType: o,
2962
+ customValue: c
2963
+ });
2964
+ for (const h in d)
2965
+ n[h] = d[h];
2966
+ for (const h of Mr)
2967
+ delete n[h];
2968
+ }
2969
+ }
2970
+ function To(e) {
2971
+ const {
2972
+ sqlCondition: t,
2973
+ renderUsedComponents: n,
2974
+ id: i,
2975
+ dateFormat: a,
2976
+ prop: r,
2977
+ keyName: l,
2978
+ dataType: o,
2979
+ customValue: c,
2980
+ operateValue: d,
2981
+ operateMode: h,
2982
+ operateType: u
2983
+ } = e, y = G(n).find((s) => s.id === i), { value: L, format: N = "YYYY-MM-DD", operate: A, type: g = "", useCurrentTime: p } = y || {}, m = a || N;
2984
+ if (te(g, "date")) {
2985
+ let s;
2986
+ if (p ? s = je() : s = je(L), A && L) {
2987
+ const { mode: S, type: O, value: C } = A;
2988
+ if (C)
2989
+ switch (O) {
2990
+ case "add":
2991
+ s = s.add(C, S);
2992
+ break;
2993
+ case "minus":
2994
+ s = s.subtract(C, S);
2995
+ break;
2996
+ }
2997
+ }
2998
+ if (d && h && u)
2999
+ switch (u) {
3000
+ case "add":
3001
+ s = s.add(d, h);
3002
+ break;
3003
+ case "minus":
3004
+ s = s.subtract(d, h);
3005
+ break;
3006
+ }
3007
+ t.fieldValue = (s == null ? void 0 : s.format(m)) || "", t.dateFormat = m;
3008
+ } else if (g === "ecanRangePicker") {
3009
+ const { interval: s, intervalUnit: S, startTime: O, endTime: C } = y || {};
3010
+ let I = r;
3011
+ if (!r) {
3012
+ const f = l == null ? void 0 : l.split("-");
3013
+ f != null && f.length && (I = f[f.length - 1]);
3014
+ }
3015
+ if (!I)
3016
+ return;
3017
+ let x = null;
3018
+ if (p && (I === "startTime" ? x = je().subtract(s, S) : I === "endTime" && (x = je())), y[I] && (x = je(y[I])), A) {
3019
+ const { type: f, value: j, mode: k } = A;
3020
+ switch (f) {
3021
+ case "add":
3022
+ x = x && x.add(j, k);
3023
+ break;
3024
+ case "minus":
3025
+ x = x && x.subtract(j, k);
3026
+ }
3027
+ }
3028
+ if (d && h && u) {
3029
+ if (d === "rangeValue") {
3030
+ if (O && C) {
3031
+ const f = je(C).diff(je(O), h) + 1;
3032
+ switch (u) {
3033
+ case "add":
3034
+ x = x && x.add(f, h);
3035
+ break;
3036
+ case "minus":
3037
+ x = x && x.subtract(f, h);
3038
+ }
3039
+ }
3040
+ } else if (!isNaN(+d))
3041
+ switch (u) {
3042
+ case "add":
3043
+ x = x && x.add(d, h);
3044
+ break;
3045
+ case "minus":
3046
+ x = x && x.subtract(d, h);
3047
+ }
3048
+ }
3049
+ if (x && (t.fieldValue = x == null ? void 0 : x.format(m)), I === "rangeValue" && O && C) {
3050
+ const f = Vr(m);
3051
+ f && (t.fieldValue = je(C).diff(je(O), f) + 1);
3052
+ }
3053
+ t.dateFormat = m;
3054
+ } else {
3055
+ const s = L && L.match(/\{(.+?)\}/g);
3056
+ s != null && s.length ? t.fieldValue = "" : t.fieldValue = L;
3057
+ }
3058
+ o === "" && (t.fieldValue = c || "");
3059
+ }
3060
+ const sl = (e) => {
3061
+ let t = "";
3062
+ switch (e) {
3063
+ case "ecanDatePicker":
3064
+ case "ecanRangePicker":
3065
+ t = "dateChange";
3066
+ break;
3067
+ case "ecanTimeDisplay":
3068
+ t = "timeChange";
3069
+ break;
3070
+ case "ecanSelect":
3071
+ case "ecanTreeSelect":
3072
+ t = "selectChange";
3073
+ break;
3074
+ case "ecanTabs":
3075
+ t = "tabChange";
3076
+ break;
3077
+ case "ecanInput":
3078
+ t = "inputChange";
3079
+ break;
3080
+ case "ecanCheckbox":
3081
+ case "ecanRadio":
3082
+ t = "checkboxChange";
3083
+ break;
3084
+ case "ecanText":
3085
+ t = "valueChange";
3086
+ break;
3087
+ case "ecanImage":
3088
+ t = "click";
3089
+ break;
3090
+ }
3091
+ return t;
3092
+ };
3093
+ function vn(e, t) {
3094
+ var n;
3095
+ if (e.componentId)
3096
+ return t.find((i) => i.id === e.componentId);
3097
+ if (e.dataType === "component")
3098
+ if (e.fieldType === "DATE") {
3099
+ const i = (n = e.fieldValue) == null ? void 0 : n.split("-");
3100
+ return i != null && i.length ? i[0] : null;
3101
+ } else
3102
+ return t.find((i) => i.keyName === e.fieldValue);
3103
+ else
3104
+ return null;
3105
+ }
3106
+ function Vr(e) {
3107
+ const t = e.split("-");
3108
+ let n = "";
3109
+ if (t != null && t.length)
3110
+ switch (t[t.length - 1]) {
3111
+ case "YYYY":
3112
+ n = "year";
3113
+ break;
3114
+ case "MM":
3115
+ n = "month";
3116
+ break;
3117
+ case "DD":
3118
+ n = "day";
3119
+ break;
3120
+ }
3121
+ return n;
3122
+ }
3123
+ function cl(e, t) {
3124
+ let n = e[t.label];
3125
+ if ((n || n === 0) && n !== "" && t.dataFormat && t.dataFormat.length !== 0) {
3126
+ if (t.dataFormat.includes("#.00") && (typeof n != "number" && (n = n.replace(/,/g, "")), Number(n) || Number(n) === 0)) {
3127
+ const i = t.retentiondigit ? t.retentiondigit - 0 : t.retentiondigit;
3128
+ n = Number(n).toFixed(i);
3129
+ }
3130
+ if (t.dataFormat.includes("#,000")) {
3131
+ const i = n.toString();
3132
+ i.includes(",") || (n = zr(i));
3133
+ }
3134
+ }
3135
+ return n;
3136
+ }
3137
+ function zr(e) {
3138
+ let t = "", n = "", i = "", a = "";
3139
+ e.indexOf(".") > -1 ? (n = e.split(".")[0], i = e.split(".")[1]) : n = e;
3140
+ let r = 0, l = 0;
3141
+ for (l = n.length - 1; l >= 0; )
3142
+ r % 3 === 0 && r !== 0 ? n[l] === "-" ? t += n[l] : t += "," + n[l] : t += n[l], l--, r++;
3143
+ return t = t.split("").reverse().join(""), e.indexOf(".") > -1 ? a = t + "." + i : a = t, a;
3144
+ }
3145
+ const ul = (e) => ({
3146
+ DIM: "维度",
3147
+ BUILT_IN_DIM: "维度",
3148
+ IDX: "指标",
3149
+ BUILT_IN_IDX: "指标",
3150
+ FIELD: "数据集"
3151
+ })[e], dl = (e) => ({
3152
+ 0: "文本",
3153
+ 1: "数值",
3154
+ 2: "日期"
3155
+ })[e], fl = (e) => {
3156
+ if (!e)
3157
+ return "";
3158
+ const t = e.split(","), n = [];
3159
+ for (const i of t)
3160
+ i === "0" ? n.push("手工录入") : i === "1" ? n.push("系统取数") : i === "2" && n.push("运算加工");
3161
+ return n.join("、");
3162
+ }, pl = (e) => {
3163
+ if (!e)
3164
+ return "";
3165
+ const t = e.split(","), n = [];
3166
+ for (const i of t)
3167
+ switch (i) {
3168
+ case "1":
3169
+ n.push("人力系统");
3170
+ break;
3171
+ case "2":
3172
+ n.push("绩效系统");
3173
+ break;
3174
+ case "3":
3175
+ n.push("预算系统");
3176
+ break;
3177
+ case "4":
3178
+ n.push("财务系统");
3179
+ break;
3180
+ case "5":
3181
+ n.push("成本系统");
3182
+ break;
3183
+ case "6":
3184
+ n.push("物流系统");
3185
+ break;
3186
+ case "7":
3187
+ n.push("固定资产系统");
3188
+ break;
3189
+ case "8":
3190
+ n.push("OA办公系统");
3191
+ break;
3192
+ case "9":
3193
+ n.push("电子档案系统");
3194
+ break;
3195
+ case "10":
3196
+ n.push("个人收入系统");
3197
+ break;
3198
+ case "11":
3199
+ n.push("奖金二次分配系统");
3200
+ break;
3201
+ case "12":
3202
+ n.push("财务管理系统");
3203
+ break;
3204
+ case "13":
3205
+ n.push("报销系统");
3206
+ break;
3207
+ case "14":
3208
+ n.push("科研管理系统");
3209
+ break;
3210
+ case "15":
3211
+ n.push("审计系统");
3212
+ break;
3213
+ case "16":
3214
+ n.push("分组器系统");
3215
+ break;
3216
+ case "17":
3217
+ n.push("消毒供应系统");
3218
+ break;
3219
+ }
3220
+ return n.join("、");
3221
+ }, hl = (e) => e === "0" ? "指标库" : e === "1" ? "视图" : e === "2" ? "数据集" : "其他", $r = An({
3222
+ name: "IndicatorLibrary",
3223
+ components: {
3224
+ DataList: Do(() => import("./index-0c539231.mjs")),
3225
+ DataConfig: Do(() => import("./index-7adb97fb.mjs"))
3226
+ },
3227
+ props: {
3228
+ isShowStyleConfig: {
3229
+ // 是否显示样式配置
3230
+ type: Boolean,
3231
+ default: !1
3232
+ },
3233
+ sourceType: {
3234
+ // 数据源类型
3235
+ type: String,
3236
+ default: ""
3237
+ },
3238
+ indicatorToken: {
3239
+ // 指标库token
3240
+ type: String,
3241
+ default: ""
3242
+ },
3243
+ selectedComponent: {
3244
+ // 当前组件
3245
+ type: Object,
3246
+ default: () => {
3247
+ }
3248
+ },
3249
+ request: {
3250
+ // 外部请求方法
3251
+ default: null
3252
+ },
3253
+ renderUsedComponentList: {
3254
+ // 当前画布上渲染的组件
3255
+ type: Array,
3256
+ default: () => []
3257
+ },
3258
+ mapAttributeProps: {
3259
+ type: Object,
3260
+ default: () => ({
3261
+ startTime: {
3262
+ label: "开始时间值",
3263
+ component: "time-pick"
3264
+ },
3265
+ endTime: {
3266
+ label: "结束时间值",
3267
+ component: "time-pick"
3268
+ }
3269
+ })
3270
+ },
3271
+ pageConfig: {
3272
+ type: Object,
3273
+ default: () => {
3274
+ }
3275
+ },
3276
+ isIframeMode: {
3277
+ type: Boolean,
3278
+ default: !1
3279
+ }
3280
+ },
3281
+ setup(e, { expose: t, emit: n }) {
3282
+ const i = ue(), a = ue(!1), r = ye(() => e.sourceType), l = ye(() => e.indicatorToken || ""), o = ye(() => e.selectedComponent), c = ye(() => e.renderUsedComponentList), d = ye(
3283
+ () => {
3284
+ var k;
3285
+ return ((k = G(o)) == null ? void 0 : k.tableColumns) || [];
3286
+ }
3287
+ ), h = ye(() => e.isShowStyleConfig), u = ye(() => {
3288
+ var k, b;
3289
+ return (b = (k = G(o)) == null ? void 0 : k.type) == null ? void 0 : b.includes("PivotTable");
3290
+ });
3291
+ let y = G(o).graphicConfig ? ze(G(o).graphicConfig) : ue({});
3292
+ y = ue(y);
3293
+ let L = G(o).chartsOptions ? ze(G(o).chartsOptions) : ue(ze(ko.line));
3294
+ L = ue(L);
3295
+ let N = G(o).tableOptions ? ze(G(o).tableOptions) : ue(ze(Ji));
3296
+ N = ue(N);
3297
+ const A = ue([]), g = (k) => {
3298
+ A.value = k;
3299
+ }, p = (k) => {
3300
+ y.value = {
3301
+ ...G(y),
3302
+ ...G(k)
3303
+ };
3304
+ }, m = (k, b = !0) => {
3305
+ b ? L.value = {
3306
+ ...G(L),
3307
+ ...G(k)
3308
+ } : L.value = {
3309
+ ...G(k)
3310
+ };
3311
+ }, s = (k) => {
3312
+ N.value = {
3313
+ ...G(N),
3314
+ ...G(k)
3315
+ };
3316
+ }, S = () => A, O = () => {
3317
+ a.value = !0, G(o).graphicConfig && (y.value = ze(G(o).graphicConfig)), G(o).chartsOptions && (L.value = ze(G(o).chartsOptions || ko.line)), Ci(() => {
3318
+ a.value = !1;
3319
+ });
3320
+ }, C = () => ({
3321
+ graphicConfig: G(y),
3322
+ chartsOptions: G(L),
3323
+ tableOptions: G(N),
3324
+ tableColumns: G(d),
3325
+ columnsConfigMap: G(o).columnsConfigMap
3326
+ }), I = () => ({
3327
+ ...G(i).getSaveData(),
3328
+ graphicConfig: G(y)
3329
+ });
3330
+ window.getIndicatorData = C, window.getPivotGraphicData = I, e.request && ae(Tn, e.request), ae(ki, {
3331
+ setDataList: g,
3332
+ getDataList: S
3333
+ });
3334
+ const x = (k) => {
3335
+ n("updateUsedComponent", k);
3336
+ }, f = (k, b) => {
3337
+ n("updateComponentsConfig", k, { controlList: b });
3338
+ }, j = ye(() => Er(y.value, c.value));
3339
+ return ae(Bi, u), ae(Yi, e.isIframeMode), ae(Di, o), ae(On, y), ae(Nn, L), ae(Mi, N), ae(Ri, r), ae(Ei, h), ae(Ln, l), ae(Fi, p), ae(zi, m), ae($i, s), ae(Pi, c), ae(Gi, x), ae(Wi, f), ae(Ui, e.mapAttributeProps), ae(Hi, e.pageConfig), t({
3340
+ graphicConfig: y,
3341
+ chartsOptions: L,
3342
+ updateIndicatorData: O
3343
+ }), {
3344
+ sqlConditions: j,
3345
+ isUpdate: a,
3346
+ isPivotTable: u,
3347
+ dataConfigRef: i
3348
+ };
3349
+ }
3350
+ });
3351
+ const wi = (e, t) => {
3352
+ const n = e.__vccOpts || e;
3353
+ for (const [i, a] of t)
3354
+ n[i] = a;
3355
+ return n;
3356
+ }, Rr = {
3357
+ key: 0,
3358
+ class: "config-modal"
3359
+ }, Pr = {
3360
+ key: 0,
3361
+ class: "config-modal-left"
3362
+ };
3363
+ function Gr(e, t, n, i, a, r) {
3364
+ const l = no("data-list"), o = no("data-config");
3365
+ return e.isUpdate ? jo("", !0) : (io(), ao("div", Rr, [
3366
+ e.isPivotTable ? jo("", !0) : (io(), ao("div", Pr, [
3367
+ ro(l)
3368
+ ])),
3369
+ Cn("div", {
3370
+ class: _i(["config-modal-right", e.isPivotTable ? "full" : ""])
3371
+ }, [
3372
+ ro(o, {
3373
+ ref: "dataConfigRef",
3374
+ sqlConditions: e.sqlConditions
3375
+ }, null, 8, ["sqlConditions"])
3376
+ ], 2)
3377
+ ]));
3378
+ }
3379
+ const Wr = /* @__PURE__ */ wi($r, [["render", Gr], ["__scopeId", "data-v-8e51e65f"]]), Ur = _n(Wr), Hr = (e = {}) => {
3380
+ const t = (r = {}) => {
3381
+ const { label: l, name: o, location: c, show: d, indexCode: h, typeGuid: u } = r;
3382
+ return {
3383
+ label: l,
3384
+ columnName: o,
3385
+ location: c,
3386
+ show: d,
3387
+ calcType: "COLUMN",
3388
+ hrpIndexCode: h,
3389
+ typeGuid: u
3390
+ };
3391
+ }, n = (r) => {
3392
+ fe(r, "dataType") && (r.fieldType === "DATE" && (r.label = r.fieldName, r.dataType === "component" && (r.fieldValue = "${" + r.fieldValue + "}")), delete r.dataType), fe(r, "activeKey") && delete r.activeKey, fe(r, "radioValue") && delete r.radioValue;
3393
+ }, i = (r) => {
3394
+ const l = [];
3395
+ return r != null && r.length && r.forEach((o) => {
3396
+ if (o.join && o.conditions) {
3397
+ const c = !o.conditions.some((d) => d.join && d.conditions);
3398
+ o.conditions.forEach((d, h) => {
3399
+ n(d), c ? h < o.conditions.length - 1 ? l.push({
3400
+ join: o.join,
3401
+ ...d
3402
+ }) : l.push(d) : d.join && d.conditions ? l.push({
3403
+ conditions: i([d]),
3404
+ join: o.join
3405
+ }) : l.push(d);
3406
+ });
3407
+ } else
3408
+ n(o), l.push(o);
3409
+ }), l;
3410
+ }, a = (r = {}) => {
3411
+ const {
3412
+ label: l,
3413
+ name: o,
3414
+ location: c,
3415
+ show: d,
3416
+ indexCode: h,
3417
+ calcType: u = "COLUMN",
3418
+ builtInFormula: y,
3419
+ builtInValueSource: L,
3420
+ builtInCalcWay: N,
3421
+ formula: A,
3422
+ conditions: g,
3423
+ aggregate: p
3424
+ } = r;
3425
+ let m;
3426
+ return g && (m = i(g)), {
3427
+ label: l.trim(),
3428
+ columnName: o,
3429
+ location: c,
3430
+ show: d,
3431
+ calcType: u,
3432
+ hrpIndexCode: h,
3433
+ aggregate: p,
3434
+ builtInFormula: y,
3435
+ builtInValueSource: L,
3436
+ builtInCalcWay: N,
3437
+ formula: A,
3438
+ conditions: m
3439
+ };
3440
+ };
3441
+ return async () => {
3442
+ const { graphicConfig: r, type: l, request: o, isGroupTable: c } = e;
3443
+ let {
3444
+ source: d,
3445
+ dataViewId: h,
3446
+ plugin: u = "1",
3447
+ // 插件类型
3448
+ layer: y,
3449
+ // 后台图表类型,值分0,1
3450
+ chartType: L,
3451
+ // 前端图表类型,实测没用
3452
+ classificationList: N = [],
3453
+ seriesList: A = [],
3454
+ leftAxisList: g = [],
3455
+ rightAxisList: p = [],
3456
+ queryColumnList: m = [],
3457
+ indicators: s = [],
3458
+ // controlList = [],
3459
+ dataSourceId: S,
3460
+ // 所属数据源ID
3461
+ idxLibMode: O,
3462
+ // 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
3463
+ preview: C = !1,
3464
+ // 预览开关
3465
+ sqlConditions: I = [],
3466
+ rowHeaderList: x = []
3467
+ } = r || {};
3468
+ y == null && (te(l, ["table", "card"]) ? y = "1" : y = "2");
3469
+ let f;
3470
+ if (Array.isArray(N) && N.length > 0) {
3471
+ const v = N.length;
3472
+ for (let _ = 0; _ < v; _++) {
3473
+ const T = N[_] || {}, { label: F = "", name: D = "", show: E = !1, sort: R, customGroup: M, conditions: W, typeGuid: Z } = T;
3474
+ if (E || v === 1) {
3475
+ f = {
3476
+ label: F.trim(),
3477
+ columnName: D,
3478
+ show: E,
3479
+ sort: R,
3480
+ customGroup: M,
3481
+ typeGuid: Z,
3482
+ conditions: i(W)
3483
+ };
3484
+ break;
3485
+ }
3486
+ }
3487
+ }
3488
+ let j;
3489
+ if (Array.isArray(A) && A.length > 0) {
3490
+ const v = A.length;
3491
+ for (let _ = 0; _ < v; _++) {
3492
+ const T = A[_] || {}, { label: F = "", name: D = "", show: E = !1, sort: R, customGroup: M, conditions: W, typeGuid: Z } = T;
3493
+ if (E || v === 1) {
3494
+ j = {
3495
+ label: F.trim(),
3496
+ columnName: D,
3497
+ show: E,
3498
+ sort: R,
3499
+ customGroup: M,
3500
+ conditions: i(W),
3501
+ typeGuid: Z
3502
+ };
3503
+ break;
3504
+ }
3505
+ }
3506
+ }
3507
+ const k = [];
3508
+ if (Array.isArray(x) && x.length > 0) {
3509
+ const v = x.length;
3510
+ for (let _ = 0; _ < v; _++) {
3511
+ const T = x[_] || {}, { label: F = "", name: D = "", show: E = !1, sort: R, customGroup: M, conditions: W, typeGuid: Z } = T;
3512
+ k.push({
3513
+ typeGuid: Z,
3514
+ label: F.trim(),
3515
+ columnName: D,
3516
+ show: E,
3517
+ sort: R,
3518
+ customGroup: M,
3519
+ conditions: i(W)
3520
+ });
3521
+ }
3522
+ }
3523
+ const b = [];
3524
+ m == null || m.forEach((v) => {
3525
+ b.push(t(v));
3526
+ });
3527
+ const w = [];
3528
+ if (g == null || g.forEach((v) => {
3529
+ v.location = "LEFT", w.push(a(v));
3530
+ }), p == null || p.forEach((v) => {
3531
+ v.location = "RIGHT", w.push(a(v));
3532
+ }), s == null || s.forEach((v) => {
3533
+ v.location = "LEFT", w.push(a(v));
3534
+ }), c || l === "card") {
3535
+ if (L = "grouptable", w.length === 0 || k.length === 0)
3536
+ return;
3537
+ } else {
3538
+ if (y === "1" && b.length === 0)
3539
+ return;
3540
+ if (y === "2" && w.length === 0)
3541
+ return;
3542
+ }
3543
+ try {
3544
+ return await o.post(`${Ii}/diagram`, {
3545
+ source: d,
3546
+ dataViewId: h,
3547
+ plugin: u,
3548
+ layer: y,
3549
+ chartType: L,
3550
+ classification: f,
3551
+ series: j,
3552
+ indicatorList: w,
3553
+ queryColumns: b,
3554
+ pageFlag: !0,
3555
+ sqlConditions: I,
3556
+ rowHeaders: k,
3557
+ dataSourceId: S,
3558
+ idxLibMode: O,
3559
+ preview: C
3560
+ });
3561
+ } catch (v) {
3562
+ console.error(v);
3563
+ }
3564
+ };
3565
+ }, Br = An({
3566
+ name: "ChartGraph",
3567
+ components: {
3568
+ ASpin: ji
3569
+ },
3570
+ props: {
3571
+ graphicConfig: {
3572
+ // 指标库配置
3573
+ type: Object,
3574
+ default: () => {
3575
+ }
3576
+ },
3577
+ chartsOptions: {
3578
+ // 图表配置
3579
+ type: Object,
3580
+ default: () => {
3581
+ }
3582
+ }
3583
+ },
3584
+ setup(e, { expose: t }) {
3585
+ const n = ye(() => e.chartsOptions ? G(e.chartsOptions) : c), i = ye(() => e.graphicConfig ? G(e.graphicConfig) : o), a = Ot(Tn);
3586
+ let r = null;
3587
+ const l = Ot(Ln) || "", o = Ot(On) || {}, c = Ot(Nn) || {}, d = ue(null), h = ue(null), u = ue(), y = ue(!1), L = ue(!1), N = ye(() => L.value ? Vi : 12), A = ue({}), g = ue(), p = ye(() => {
3588
+ const f = G(n.value);
3589
+ return (f == null ? void 0 : f.type) === "customGraph" ? g.value : Fr(f, G(A), N.value);
3590
+ }), m = (f = [], j, k = !1) => {
3591
+ const b = k ? j : null;
3592
+ A.value = Lr(f, b);
3593
+ }, s = (f = [], j) => {
3594
+ A.value = Or(f, j);
3595
+ }, S = async () => {
3596
+ var f, j, k;
3597
+ try {
3598
+ const b = Hr({
3599
+ graphicConfig: G(i.value),
3600
+ type: (f = G(n.value)) == null ? void 0 : f.type,
3601
+ request: a,
3602
+ indicatorToken: l
3603
+ });
3604
+ y.value = !0;
3605
+ const w = await b(), { columns: v = [], rows: _ = [] } = ((j = w == null ? void 0 : w.data) == null ? void 0 : j.data) ?? {};
3606
+ if (((k = G(n.value)) == null ? void 0 : k.type) === "pie") {
3607
+ let T = [];
3608
+ if (v.length > 0) {
3609
+ const F = v[0], D = v[1];
3610
+ T = _.map((E) => ({
3611
+ name: E[F],
3612
+ value: E[D]
3613
+ }));
3614
+ }
3615
+ s(T);
3616
+ } else {
3617
+ let T;
3618
+ v.length > 0 && (T = {
3619
+ name: v[0],
3620
+ types: v.slice(1).map((F) => ({
3621
+ label: F,
3622
+ value: F
3623
+ }))
3624
+ }), m(_, T, !0);
3625
+ }
3626
+ } catch (b) {
3627
+ console.error(b);
3628
+ } finally {
3629
+ y.value = !1;
3630
+ }
3631
+ }, O = {
3632
+ title: {
3633
+ text: "暂无数据",
3634
+ x: "center",
3635
+ y: "center",
3636
+ textStyle: {
3637
+ fontSize: 14,
3638
+ fontWeight: "normal"
3639
+ }
3640
+ }
3641
+ }, C = () => {
3642
+ G(A).dataset.length === 0 ? u.value.setOption(O, !0) : u.value.setOption(p.value, !0);
3643
+ }, I = () => {
3644
+ G(n.value).type !== "customGraph" && S();
3645
+ }, x = () => {
3646
+ var f;
3647
+ (f = u.value) == null || f.resize();
3648
+ };
3649
+ return Io(
3650
+ p,
3651
+ () => {
3652
+ C();
3653
+ },
3654
+ {
3655
+ deep: !0
3656
+ }
3657
+ ), Io(
3658
+ () => G(n.value).optionCode,
3659
+ (f) => {
3660
+ try {
3661
+ const j = eval;
3662
+ g.value = j(f);
3663
+ } catch (j) {
3664
+ console.error(j);
3665
+ }
3666
+ },
3667
+ {
3668
+ immediate: !0
3669
+ }
3670
+ ), Ti(() => {
3671
+ h.value && (r = new ResizeObserver(x), r.observe(h.value)), u.value = Ni.init(d.value);
3672
+ }), Li(() => {
3673
+ u.value.dispose(), r && (r.disconnect(), r = null);
3674
+ }), t({
3675
+ refreshData: I
3676
+ }), {
3677
+ echartRef: d,
3678
+ loading: y
3679
+ };
3680
+ }
3681
+ });
3682
+ const Yr = {
3683
+ class: "ecan-chart-graph",
3684
+ ref: "chartWrapRef"
3685
+ }, Kr = {
3686
+ style: { width: "100%", height: "100%" },
3687
+ ref: "echartRef"
3688
+ };
3689
+ function qr(e, t, n, i, a, r) {
3690
+ const l = no("a-spin");
3691
+ return io(), ao("div", Yr, [
3692
+ ro(l, {
3693
+ spinning: e.loading,
3694
+ wrapperClassName: "chart-spin",
3695
+ tip: "数据加载中..."
3696
+ }, {
3697
+ default: Oi(() => [
3698
+ Cn("div", Kr, null, 512)
3699
+ ]),
3700
+ _: 1
3701
+ }, 8, ["spinning"])
3702
+ ], 512);
3703
+ }
3704
+ const Zr = /* @__PURE__ */ wi(Br, [["render", qr], ["__scopeId", "data-v-845f7ab1"]]), Qr = _n(Zr), Sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3705
+ __proto__: null,
3706
+ EcanChartGraph: Qr,
3707
+ EcanIndicatorLibrary: Ur
3708
+ }, Symbol.toStringTag, { value: "Module" })), Xr = (e, t) => {
3709
+ const { request: n } = t;
3710
+ e.provide("$request", n), Object.keys(Sn).forEach((i) => {
3711
+ const a = Sn[i];
3712
+ a.install && e.use(a);
3713
+ });
3714
+ }, ml = {
3715
+ install: Xr
3716
+ };
3717
+ export {
3718
+ Yi as A,
3719
+ ml as B,
3720
+ il as C,
3721
+ ki as D,
3722
+ Ur as E,
3723
+ Qr as F,
3724
+ On as G,
3725
+ Ln as I,
3726
+ Ui as M,
3727
+ te as N,
3728
+ Hi as P,
3729
+ Tn as R,
3730
+ Di as S,
3731
+ fe as T,
3732
+ Fi as U,
3733
+ rl as Z,
3734
+ wi as _,
3735
+ Ii as a,
3736
+ ul as b,
3737
+ pl as c,
3738
+ hl as d,
3739
+ Ri as e,
3740
+ Pi as f,
3741
+ fl as g,
3742
+ al as h,
3743
+ Gi as i,
3744
+ go as j,
3745
+ Er as k,
3746
+ sl as l,
3747
+ dl as m,
3748
+ ll as n,
3749
+ Nn as o,
3750
+ zi as p,
3751
+ $i as q,
3752
+ Mi as r,
3753
+ nl as s,
3754
+ ko as t,
3755
+ Bi as u,
3756
+ Wi as v,
3757
+ cl as w,
3758
+ Hr as x,
3759
+ Zr as y,
3760
+ Ei as z
3761
+ };
3762
+ //# sourceMappingURL=index-7df05e51.mjs.map