react-aiops 0.1.8 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
- import { jsxs as d, jsx as e, Fragment as ve } from "react/jsx-runtime";
2
- import J, { createContext as je, useContext as we, useState as I, useEffect as Te, useMemo as Tt, useRef as ee } from "react";
3
- const At = {
1
+ import { jsxs as d, jsx as e, Fragment as Ee } from "react/jsx-runtime";
2
+ import j, { createContext as Ue, useContext as re, useState as R, useEffect as Ae, useMemo as yt, useRef as K, useCallback as dt } from "react";
3
+ const Dt = {
4
4
  info: { color: "#00ff88", bg: "rgba(0, 255, 136, 0.1)", border: "#00ff88", icon: "✅" },
5
5
  warning: { color: "#ff8c00", bg: "rgba(255, 140, 0, 0.1)", border: "#ff8c00", icon: "⚠️" },
6
6
  critical: { color: "#ff2255", bg: "rgba(255, 34, 85, 0.1)", border: "#ff2255", icon: "🛑" }
7
7
  };
8
- function It({
8
+ function Nt({
9
9
  name: t,
10
10
  status: n,
11
11
  dbSync: o = !0,
@@ -146,7 +146,7 @@ function It({
146
146
  }
147
147
  ),
148
148
  c.map((p, f) => {
149
- const g = At[p.level];
149
+ const g = Dt[p.level];
150
150
  return /* @__PURE__ */ d(
151
151
  "div",
152
152
  {
@@ -177,13 +177,13 @@ function It({
177
177
  }
178
178
  );
179
179
  }
180
- const w = {
180
+ const P = {
181
181
  online: { color: "#00e5ff", glow: "rgba(0,229,255,0.55)" },
182
182
  warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.55)" },
183
183
  critical: { color: "#ff2255", glow: "rgba(255,34,85,0.55)" },
184
184
  offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
185
- }, yi = "#00e5ff", mi = "#0055cc", Se = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", Qe = "linear-gradient(180deg, rgba(10,25,50,0.35) 0%, rgba(5,15,35,0.25) 60%, rgba(3,10,20,0.15) 100%)";
186
- function Ge(t, n, o) {
185
+ }, Pi = "#00e5ff", Ci = "#0055cc", Te = "linear-gradient(180deg, #071428 0%, #040c1c 60%, #030810 100%)", Ze = "linear-gradient(180deg, rgba(10,25,50,0.35) 0%, rgba(5,15,35,0.25) 60%, rgba(3,10,20,0.15) 100%)";
186
+ function Je(t, n, o) {
187
187
  const i = {
188
188
  position: "absolute",
189
189
  overflow: "hidden",
@@ -233,56 +233,56 @@ function Ge(t, n, o) {
233
233
  }
234
234
  };
235
235
  }
236
- const Ve = "cubic-bezier(0.34, 1.56, 0.64, 1)", _e = "cubic-bezier(0.16, 1, 0.3, 1)";
237
- function ct(t) {
238
- return w[t]?.color ?? w.online.color;
236
+ const Qe = "cubic-bezier(0.34, 1.56, 0.64, 1)", Ge = "cubic-bezier(0.16, 1, 0.3, 1)";
237
+ function mt(t) {
238
+ return P[t]?.color ?? P.online.color;
239
239
  }
240
- function Lt(t, n, o) {
240
+ function Wt(t, n, o) {
241
241
  return t >= o ? "#ff2255" : t >= n ? "#ff8c00" : "#00e5ff";
242
242
  }
243
- function Le(t, n, o, i) {
243
+ function We(t, n, o, i) {
244
244
  return t === "offline" ? "offline" : t === "critical" && n >= i ? "critical" : (t === "critical" || t === "warning") && n >= o ? "warning" : "online";
245
245
  }
246
- function Ot({
246
+ function Mt({
247
247
  component: t,
248
248
  onClose: n,
249
249
  visible: o,
250
250
  sceneWidth: i = 660,
251
251
  sceneHeight: r = 600
252
252
  }) {
253
- const { type: a, name: s, status: l, ex: h, ey: c, context: p = {} } = t, f = ct(l), g = h >= i / 2, u = c >= r / 2, y = {
253
+ const { type: a, name: s, status: l, ex: h, ey: c, context: p = {} } = t, f = mt(l), g = h >= i / 2, u = c >= r / 2, y = {
254
254
  position: "fixed",
255
255
  ...g ? { right: 28 } : { left: 28 },
256
256
  ...u ? { bottom: 110 } : { top: 72 }
257
- }, m = g ? 40 : -40, x = u ? 30 : -30, v = t.dialogMetrics ?? p.dialogMetrics;
258
- let $;
259
- if (v && v.length > 0)
260
- $ = v.map((b, R) => {
261
- const D = b.warnAt ?? 70, C = b.critAt ?? 85;
257
+ }, m = g ? 40 : -40, v = u ? 30 : -30, x = t.dialogMetrics ?? p.dialogMetrics;
258
+ let w;
259
+ if (x && x.length > 0)
260
+ w = x.map((b, k) => {
261
+ const T = b.warnAt ?? 70, $ = b.critAt ?? 85;
262
262
  return {
263
263
  id: b.id,
264
264
  label: b.label,
265
265
  sublabel: b.sublabel,
266
266
  value: b.value,
267
267
  unit: b.unit ?? "%",
268
- status: Le(l, b.value, D, C),
268
+ status: We(l, b.value, T, $),
269
269
  icon: b.icon ?? "cpu",
270
- delay: R,
270
+ delay: k,
271
271
  colorOverride: b.color,
272
- warnAt: D,
273
- critAt: C
272
+ warnAt: T,
273
+ critAt: $
274
274
  };
275
275
  });
276
276
  else {
277
- const b = p.cpuLoad ?? p.traffic ?? 50, R = p.memLoad ?? p.queueDepth ?? 60, D = p.capacity ?? 72, C = Le(l, b, 70, 85), T = Le(l, R, 75, 88), W = Le(l, D, 75, 90);
278
- $ = [
277
+ const b = p.cpuLoad ?? p.traffic ?? 50, k = p.memLoad ?? p.queueDepth ?? 60, T = p.capacity ?? 72, $ = We(l, b, 70, 85), S = We(l, k, 75, 88), N = We(l, T, 75, 90);
278
+ w = [
279
279
  {
280
280
  id: "cpu",
281
281
  label: a === "dispatcher" ? "TRAFFIC" : a === "messageServer" ? "QUEUE" : "CPU",
282
282
  sublabel: a === "dispatcher" ? "PORT LOAD" : a === "messageServer" ? "QUEUE DEPTH" : "PROCESSOR",
283
283
  value: b,
284
284
  unit: "%",
285
- status: C,
285
+ status: $,
286
286
  icon: "cpu",
287
287
  delay: 0
288
288
  },
@@ -290,9 +290,9 @@ function Ot({
290
290
  id: "mem",
291
291
  label: "MEMORY",
292
292
  sublabel: a === "database" ? "BUFFER POOL" : "HEAP USAGE",
293
- value: R,
293
+ value: k,
294
294
  unit: "%",
295
- status: T,
295
+ status: S,
296
296
  icon: "mem",
297
297
  delay: 1
298
298
  },
@@ -300,9 +300,9 @@ function Ot({
300
300
  id: "storage",
301
301
  label: "STORAGE",
302
302
  sublabel: a === "database" ? "TABLESPACE" : "DISK I/O",
303
- value: D,
303
+ value: T,
304
304
  unit: "%",
305
- status: W,
305
+ status: N,
306
306
  icon: "disk",
307
307
  delay: 2
308
308
  }
@@ -322,8 +322,8 @@ function Ot({
322
322
  fontFamily: "'Courier New', monospace",
323
323
  overflow: "hidden",
324
324
  opacity: o ? 1 : 0,
325
- transform: o ? "scale(1) translate(0, 0)" : `scale(0.7) translate(${m}px, ${x}px)`,
326
- transition: `opacity 0.45s ${_e}, transform 0.55s ${Ve}`,
325
+ transform: o ? "scale(1) translate(0, 0)" : `scale(0.7) translate(${m}px, ${v}px)`,
326
+ transition: `opacity 0.45s ${Ge}, transform 0.55s ${Qe}`,
327
327
  pointerEvents: o ? "auto" : "none",
328
328
  zIndex: 9999,
329
329
  animation: o ? "comp-dialog-border-glow 3s ease-in-out infinite" : "none",
@@ -393,12 +393,12 @@ function Ot({
393
393
  borderRight: `2px solid ${f}66`,
394
394
  borderRadius: "0 0 14px 0"
395
395
  }
396
- ].map((b, R) => /* @__PURE__ */ e(
396
+ ].map((b, k) => /* @__PURE__ */ e(
397
397
  "div",
398
398
  {
399
399
  style: { position: "absolute", width: 18, height: 18, pointerEvents: "none", ...b }
400
400
  },
401
- R
401
+ k
402
402
  )),
403
403
  /* @__PURE__ */ d(
404
404
  "div",
@@ -519,7 +519,7 @@ function Ot({
519
519
  position: "relative",
520
520
  zIndex: 2
521
521
  },
522
- children: $.map((b) => /* @__PURE__ */ e(Dt, { metric: b, visible: o, accentColor: f }, b.id))
522
+ children: w.map((b) => /* @__PURE__ */ e(zt, { metric: b, visible: o, accentColor: f }, b.id))
523
523
  }
524
524
  ),
525
525
  /* @__PURE__ */ d(
@@ -568,7 +568,7 @@ function Ot({
568
568
  }
569
569
  );
570
570
  }
571
- function Dt({
571
+ function zt({
572
572
  metric: t,
573
573
  visible: n,
574
574
  accentColor: o
@@ -584,7 +584,7 @@ function Dt({
584
584
  colorOverride: p,
585
585
  warnAt: f = 70,
586
586
  critAt: g = 85
587
- } = t, u = p ?? Lt(a, f, g), y = p ?? ct(l);
587
+ } = t, u = p ?? Wt(a, f, g), y = p ?? mt(l);
588
588
  return /* @__PURE__ */ d(
589
589
  "div",
590
590
  {
@@ -594,7 +594,7 @@ function Dt({
594
594
  gap: 16,
595
595
  opacity: n ? 1 : 0,
596
596
  transform: n ? "translateY(0)" : "translateY(12px)",
597
- transition: `opacity 0.4s ${_e} ${0.3 + c * 0.12}s, transform 0.5s ${Ve} ${0.3 + c * 0.12}s`
597
+ transition: `opacity 0.4s ${Ge} ${0.3 + c * 0.12}s, transform 0.5s ${Qe} ${0.3 + c * 0.12}s`
598
598
  },
599
599
  children: [
600
600
  /* @__PURE__ */ d(
@@ -612,10 +612,10 @@ function Dt({
612
612
  flexShrink: 0,
613
613
  position: "relative",
614
614
  overflow: "hidden",
615
- animation: n ? `comp-dialog-icon-pop 0.5s ${Ve} ${0.35 + c * 0.12}s both` : "none"
615
+ animation: n ? `comp-dialog-icon-pop 0.5s ${Qe} ${0.35 + c * 0.12}s both` : "none"
616
616
  },
617
617
  children: [
618
- /* @__PURE__ */ e(Wt, { type: h, color: y }),
618
+ /* @__PURE__ */ e(Bt, { type: h, color: y }),
619
619
  (l === "warning" || l === "critical") && /* @__PURE__ */ e(
620
620
  "div",
621
621
  {
@@ -714,7 +714,7 @@ function Dt({
714
714
  background: `linear-gradient(90deg, ${u}66, ${u})`,
715
715
  boxShadow: `0 0 8px ${u}44`,
716
716
  transformOrigin: "left center",
717
- animation: n ? `comp-dialog-metric-fill 0.8s ${_e} ${0.4 + c * 0.12}s both` : "none"
717
+ animation: n ? `comp-dialog-metric-fill 0.8s ${Ge} ${0.4 + c * 0.12}s both` : "none"
718
718
  }
719
719
  }
720
720
  ),
@@ -808,7 +808,7 @@ function Dt({
808
808
  }
809
809
  );
810
810
  }
811
- function Wt({ type: t, color: n }) {
811
+ function Bt({ type: t, color: n }) {
812
812
  return t === "cpu" ? /* @__PURE__ */ d("svg", { width: 28, height: 28, viewBox: "0 0 24 24", fill: "none", children: [
813
813
  /* @__PURE__ */ e("rect", { x: "6", y: "6", width: "12", height: "12", rx: "2", stroke: n, strokeWidth: "1.5" }),
814
814
  /* @__PURE__ */ e(
@@ -893,14 +893,14 @@ function Wt({ type: t, color: n }) {
893
893
  /* @__PURE__ */ e("line", { x1: "18", y1: "12", x2: "21", y2: "12", stroke: n, strokeWidth: "0.8" })
894
894
  ] });
895
895
  }
896
- const qe = je(null), Ke = je({ index: 0 });
897
- function xi() {
898
- return we(qe);
896
+ const et = Ue(null), tt = Ue({ index: 0 });
897
+ function Ei() {
898
+ return re(et);
899
899
  }
900
- function vi() {
901
- return we(Ke);
900
+ function Ai() {
901
+ return re(tt);
902
902
  }
903
- function zt({
903
+ function Ft({
904
904
  children: t,
905
905
  logoUrl: n,
906
906
  viewState: o,
@@ -917,28 +917,28 @@ function zt({
917
917
  width: u = 950,
918
918
  height: y = 790,
919
919
  onSelectSystem: m,
920
- onBackgroundClick: x,
921
- onComponentClick: v,
922
- onCloseDrill: $,
920
+ onBackgroundClick: v,
921
+ onComponentClick: x,
922
+ onCloseDrill: w,
923
923
  selectedSystemStatus: b = "online",
924
- selectedSystemDbSync: R = !0,
925
- selectedSystemMetrics: D,
926
- selectedSystemAlerts: C
924
+ selectedSystemDbSync: k = !0,
925
+ selectedSystemMetrics: T,
926
+ selectedSystemAlerts: $
927
927
  }) {
928
- const [T, W] = I(0);
929
- Te(() => {
930
- let z;
928
+ const [S, N] = R(0);
929
+ Ae(() => {
930
+ let I;
931
931
  if ((o === "compact" || o === "collapsing") && f) {
932
- const F = () => {
933
- W((ne) => ne + g), z = requestAnimationFrame(F);
932
+ const U = () => {
933
+ N((se) => se + g), I = requestAnimationFrame(U);
934
934
  };
935
- z = requestAnimationFrame(F);
935
+ I = requestAnimationFrame(U);
936
936
  }
937
- return () => cancelAnimationFrame(z);
937
+ return () => cancelAnimationFrame(I);
938
938
  }, [o, f, g]);
939
- const X = J.Children.toArray(t), j = X.length, N = Tt(() => ({
940
- totalSystems: j,
941
- carouselRotation: T,
939
+ const B = j.Children.toArray(t), z = B.length, H = yt(() => ({
940
+ totalSystems: z,
941
+ carouselRotation: S,
942
942
  viewState: o,
943
943
  animPhase: i,
944
944
  selectedSystem: r,
@@ -948,11 +948,11 @@ function zt({
948
948
  componentScale: c,
949
949
  drillZoom: p,
950
950
  onSelectSystem: m,
951
- onComponentClick: v,
951
+ onComponentClick: x,
952
952
  containerWidth: u
953
953
  }), [
954
- j,
955
- T,
954
+ z,
955
+ S,
956
956
  o,
957
957
  i,
958
958
  r,
@@ -962,10 +962,10 @@ function zt({
962
962
  c,
963
963
  p,
964
964
  m,
965
- v,
965
+ x,
966
966
  u
967
- ]), te = X.map((z, F) => /* @__PURE__ */ e(Ke.Provider, { value: { index: F }, children: z }, F)), ie = o === "expanded" || o === "expanding" && i >= 4;
968
- return /* @__PURE__ */ d(qe.Provider, { value: N, children: [
967
+ ]), ae = B.map((I, U) => /* @__PURE__ */ e(tt.Provider, { value: { index: U }, children: I }, U)), le = o === "expanded" || o === "expanding" && i >= 4;
968
+ return /* @__PURE__ */ d(et.Provider, { value: H, children: [
969
969
  /* @__PURE__ */ d("div", { style: { position: "relative", width: u, height: y, margin: "0 auto", flexShrink: 0 }, children: [
970
970
  n && (o === "compact" || o === "collapsing") && /* @__PURE__ */ e(
971
971
  "img",
@@ -987,24 +987,24 @@ function zt({
987
987
  }
988
988
  }
989
989
  ),
990
- te
990
+ ae
991
991
  ] }),
992
- r && /* @__PURE__ */ e("div", { onClick: (z) => z.stopPropagation(), children: /* @__PURE__ */ e(
993
- It,
992
+ r && /* @__PURE__ */ e("div", { onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(
993
+ Nt,
994
994
  {
995
995
  name: r,
996
996
  status: b,
997
- dbSync: R,
998
- visible: ie && !a,
999
- metrics: D,
1000
- alerts: C
997
+ dbSync: k,
998
+ visible: le && !a,
999
+ metrics: T,
1000
+ alerts: $
1001
1001
  }
1002
1002
  ) }),
1003
- a && /* @__PURE__ */ e("div", { onClick: (z) => z.stopPropagation(), children: /* @__PURE__ */ e(
1004
- Ot,
1003
+ a && /* @__PURE__ */ e("div", { onClick: (I) => I.stopPropagation(), children: /* @__PURE__ */ e(
1004
+ Mt,
1005
1005
  {
1006
1006
  component: a,
1007
- onClose: $,
1007
+ onClose: w,
1008
1008
  visible: s >= 0.3,
1009
1009
  sceneWidth: u,
1010
1010
  sceneHeight: y
@@ -1012,7 +1012,7 @@ function zt({
1012
1012
  ) })
1013
1013
  ] });
1014
1014
  }
1015
- function Mt({
1015
+ function Ht({
1016
1016
  x1: t,
1017
1017
  y1: n,
1018
1018
  x2: o,
@@ -1059,7 +1059,7 @@ function Mt({
1059
1059
  )
1060
1060
  }
1061
1061
  ),
1062
- r && /* @__PURE__ */ d(ve, { children: [
1062
+ r && /* @__PURE__ */ d(Ee, { children: [
1063
1063
  /* @__PURE__ */ e("circle", { r: "3", fill: a, opacity: 0.85, children: /* @__PURE__ */ e(
1064
1064
  "animateMotion",
1065
1065
  {
@@ -1079,14 +1079,14 @@ function Mt({
1079
1079
  ] })
1080
1080
  ] });
1081
1081
  }
1082
- const Nt = [
1082
+ const Ut = [
1083
1083
  { scale: 1, op: 1, delay: "0.0s", bw: "2px", glow: 1 },
1084
1084
  { scale: 0.82, op: 0.88, delay: "0.5s", bw: "1.5px", glow: 0.7 },
1085
1085
  { scale: 0.64, op: 0.72, delay: "1.0s", bw: "1px", glow: 0.5 },
1086
1086
  { scale: 0.47, op: 0.58, delay: "1.5s", bw: "1px", glow: 0.35 },
1087
1087
  { scale: 0.3, op: 0.45, delay: "2.0s", bw: "1px", glow: 0.25 }
1088
1088
  ];
1089
- function Bt({
1089
+ function Yt({
1090
1090
  children: t,
1091
1091
  size: n = 230,
1092
1092
  widthRatio: o = 1,
@@ -1252,7 +1252,7 @@ function Bt({
1252
1252
  background: `radial-gradient(ellipse, ${i}88 0%, ${i}33 40%, transparent 72%)`,
1253
1253
  filter: "blur(12px)"
1254
1254
  } }),
1255
- Nt.map((s, l) => /* @__PURE__ */ e("div", { style: {
1255
+ Ut.map((s, l) => /* @__PURE__ */ e("div", { style: {
1256
1256
  position: "absolute",
1257
1257
  width: a * s.scale,
1258
1258
  height: n * s.scale,
@@ -1295,8 +1295,8 @@ function Bt({
1295
1295
  }, children: r })
1296
1296
  ] });
1297
1297
  }
1298
- const le = je(null), Ft = "cubic-bezier(0.34, 1.56, 0.64, 1)", ot = 330, rt = 340, Ht = 660;
1299
- function pt({
1298
+ const ue = Ue(null), Vt = "cubic-bezier(0.34, 1.56, 0.64, 1)", ct = 330, pt = 340, _t = 660;
1299
+ function xt({
1300
1300
  name: t,
1301
1301
  status: n = "online",
1302
1302
  connections: o = [],
@@ -1313,28 +1313,28 @@ function pt({
1313
1313
  _autoRotateComponents: u,
1314
1314
  _componentScale: y,
1315
1315
  _drillZoom: m,
1316
- _onSelectSystem: x,
1317
- _onComponentClick: v,
1318
- _containerWidth: $
1316
+ _onSelectSystem: v,
1317
+ _onComponentClick: x,
1318
+ _containerWidth: w
1319
1319
  }) {
1320
- const b = we(qe), R = we(Ke), D = a ?? R.index, C = s ?? b?.totalSystems ?? 1, T = l ?? b?.carouselRotation ?? 0, W = h ?? b?.viewState ?? "compact", X = c ?? b?.animPhase ?? 0, j = p ?? b?.selectedSystem ?? null, N = f ?? b?.selectedComponent ?? null, te = g ?? b?.rotateY ?? 20, ie = u ?? b?.autoRotateComponents ?? !0, z = y ?? b?.componentScale ?? 0.35, F = m ?? b?.drillZoom ?? 3.3, ne = x ?? b?.onSelectSystem, $e = v ?? b?.onComponentClick, ke = $ ?? b?.containerWidth ?? 950, V = j === t, M = V && (W === "expanded" || W === "expanding" && X >= 1), P = !M, Re = (ke - Ht) / 2, oe = ot + Re, se = D / C * Math.PI * 2 + T, Ne = 420, Ae = 160, Pe = oe + Math.cos(se) * Ne, de = 450 + Math.sin(se) * Ae, xt = Math.round(de), Be = !V && (W === "expanding" || W === "expanded"), vt = Be ? 0 : 1, Ce = P ? 0.3 + (Math.sin(se) + 1) * 0.1 : 1, wt = P ? Ce : z, Ie = W === "compact" || W === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", nt = V && N, Fe = nt ? F : 1, St = N?.ex ?? 330, $t = N?.ey ?? 300, { size: kt = 90, color: Rt = "#00e5ff", widthRatio: Pt = 3 } = i ?? {}, Ct = {
1320
+ const b = re(et), k = re(tt), T = a ?? k.index, $ = s ?? b?.totalSystems ?? 1, S = l ?? b?.carouselRotation ?? 0, N = h ?? b?.viewState ?? "compact", B = c ?? b?.animPhase ?? 0, z = p ?? b?.selectedSystem ?? null, H = f ?? b?.selectedComponent ?? null, ae = g ?? b?.rotateY ?? 20, le = u ?? b?.autoRotateComponents ?? !0, I = y ?? b?.componentScale ?? 0.35, U = m ?? b?.drillZoom ?? 3.3, se = v ?? b?.onSelectSystem, Ie = x ?? b?.onComponentClick, Oe = w ?? b?.containerWidth ?? 950, Y = z === t, L = Y && (N === "expanded" || N === "expanding" && B >= 1), Q = !L, Le = (Oe - _t) / 2, be = ct + Le, ge = T / $ * Math.PI * 2 + S, Ye = 420, Ve = 160, de = be + Math.cos(ge) * Ye, C = 450 + Math.sin(ge) * Ve, ce = Math.round(C), ee = !Y && (N === "expanding" || N === "expanded"), pe = ee ? 0 : 1, Z = Q ? 0.3 + (Math.sin(ge) + 1) * 0.1 : 1, V = Q ? Z : I, ye = N === "compact" || N === "collapsing" ? "none" : "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)", De = Y && H, _e = De ? U : 1, Ct = H?.ex ?? 330, Et = H?.ey ?? 300, { size: At = 90, color: Tt = "#00e5ff", widthRatio: It = 3 } = i ?? {}, Ot = {
1321
1321
  name: t,
1322
- isSelected: V,
1323
- isExpandedPos: M,
1324
- isCompact: P,
1325
- animPhase: X,
1326
- compactCx: Pe,
1327
- compactCy: de,
1328
- groupScale: Ce,
1329
- effectiveScale: wt,
1330
- transitionValue: Ie,
1331
- rotateY: te,
1332
- autoRotateComponents: ie,
1333
- onComponentClick: $e,
1334
- selectedComponentName: N?.name ?? null,
1335
- expandedOffsetX: Re
1322
+ isSelected: Y,
1323
+ isExpandedPos: L,
1324
+ isCompact: Q,
1325
+ animPhase: B,
1326
+ compactCx: de,
1327
+ compactCy: C,
1328
+ groupScale: Z,
1329
+ effectiveScale: V,
1330
+ transitionValue: ye,
1331
+ rotateY: ae,
1332
+ autoRotateComponents: le,
1333
+ onComponentClick: Ie,
1334
+ selectedComponentName: H?.name ?? null,
1335
+ expandedOffsetX: Le
1336
1336
  };
1337
- return /* @__PURE__ */ e(le.Provider, { value: Ct, children: /* @__PURE__ */ d(
1337
+ return /* @__PURE__ */ e(ue.Provider, { value: Ot, children: /* @__PURE__ */ d(
1338
1338
  "div",
1339
1339
  {
1340
1340
  style: {
@@ -1344,21 +1344,21 @@ function pt({
1344
1344
  width: "100%",
1345
1345
  height: "100%",
1346
1346
  pointerEvents: "none",
1347
- opacity: vt,
1348
- transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Ft}`,
1349
- filter: P && Math.sin(se) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
1350
- zIndex: V ? 500 : Be ? 0 : xt,
1351
- transformOrigin: `${oe}px ${rt}px`,
1352
- transform: nt ? `translate(${-(St - ot) * Fe}px, ${-($t - rt) * Fe}px) scale(${Fe})` : "none"
1347
+ opacity: pe,
1348
+ transition: `opacity 0.8s ease, filter 0.5s ease, transform 0.6s ${Vt}`,
1349
+ filter: Q && Math.sin(ge) < -0.5 ? "brightness(0.5) blur(2px)" : "none",
1350
+ zIndex: Y ? 500 : ee ? 0 : ce,
1351
+ transformOrigin: `${be}px ${pt}px`,
1352
+ transform: De ? `translate(${-(Ct - ct) * _e}px, ${-(Et - pt) * _e}px) scale(${_e})` : "none"
1353
1353
  },
1354
1354
  children: [
1355
- P && !Be && /* @__PURE__ */ e(
1355
+ Q && !ee && /* @__PURE__ */ e(
1356
1356
  "div",
1357
1357
  {
1358
1358
  style: {
1359
1359
  position: "absolute",
1360
- left: Pe,
1361
- top: de,
1360
+ left: de,
1361
+ top: C,
1362
1362
  width: 160,
1363
1363
  height: 180,
1364
1364
  transform: "translate(-50%, -80%)",
@@ -1366,19 +1366,19 @@ function pt({
1366
1366
  cursor: "pointer",
1367
1367
  zIndex: 101
1368
1368
  },
1369
- onClick: (Q) => {
1370
- Q.stopPropagation(), ne?.(t);
1369
+ onClick: (J) => {
1370
+ J.stopPropagation(), se?.(t);
1371
1371
  }
1372
1372
  }
1373
1373
  ),
1374
- P && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
1374
+ Q && (n === "warning" || n === "critical") && /* @__PURE__ */ e(
1375
1375
  "div",
1376
1376
  {
1377
1377
  style: {
1378
1378
  position: "absolute",
1379
- left: Pe,
1380
- top: de - 200,
1381
- transform: `translate(-50%, -50%) scale(${Ce})`,
1379
+ left: de,
1380
+ top: C - 200,
1381
+ transform: `translate(-50%, -50%) scale(${Z})`,
1382
1382
  zIndex: 110,
1383
1383
  pointerEvents: "none",
1384
1384
  animation: "holo-led-blink 1.5s infinite",
@@ -1424,13 +1424,13 @@ function pt({
1424
1424
  {
1425
1425
  style: {
1426
1426
  position: "absolute",
1427
- left: M ? oe : Pe,
1428
- top: M ? 48 : de - 180,
1429
- transform: `translate(-50%, -50%) scale(${M ? 1.2 : Ce * 1.5})`,
1427
+ left: L ? be : de,
1428
+ top: L ? 48 : C - 180,
1429
+ transform: `translate(-50%, -50%) scale(${L ? 1.2 : Z * 1.5})`,
1430
1430
  opacity: 1,
1431
1431
  pointerEvents: "none",
1432
1432
  zIndex: 100,
1433
- transition: Ie,
1433
+ transition: ye,
1434
1434
  fontSize: 36,
1435
1435
  fontWeight: 700,
1436
1436
  letterSpacing: "0.18em",
@@ -1450,25 +1450,25 @@ function pt({
1450
1450
  style: {
1451
1451
  position: "absolute",
1452
1452
  top: 0,
1453
- left: M ? Re : 0,
1453
+ left: L ? Le : 0,
1454
1454
  width: 660,
1455
1455
  height: 640,
1456
1456
  pointerEvents: "none",
1457
1457
  zIndex: 0,
1458
- transition: Ie
1458
+ transition: ye
1459
1459
  },
1460
- children: o.map((Q, Et) => /* @__PURE__ */ e(
1461
- Mt,
1460
+ children: o.map((J, Lt) => /* @__PURE__ */ e(
1461
+ Ht,
1462
1462
  {
1463
- x1: Q.from[0],
1464
- y1: Q.from[1],
1465
- x2: Q.to[0],
1466
- y2: Q.to[1],
1467
- show: V && X >= (Q.visibleAtPhase ?? 0),
1468
- color: Q.color,
1469
- dur: Q.duration
1463
+ x1: J.from[0],
1464
+ y1: J.from[1],
1465
+ x2: J.to[0],
1466
+ y2: J.to[1],
1467
+ show: Y && B >= (J.visibleAtPhase ?? 0),
1468
+ color: J.color,
1469
+ dur: J.duration
1470
1470
  },
1471
- Et
1471
+ Lt
1472
1472
  ))
1473
1473
  }
1474
1474
  ),
@@ -1477,13 +1477,13 @@ function pt({
1477
1477
  {
1478
1478
  style: {
1479
1479
  position: "absolute",
1480
- left: M ? oe : Pe,
1481
- top: M ? 570 : de + 70,
1482
- transform: `translate(-50%, -50%) scaleX(${M ? 1 : 0.4}) scaleY(${M ? 1 : 0.6}) scale(${M ? 1 : Ce})`,
1483
- transition: Ie,
1480
+ left: L ? be : de,
1481
+ top: L ? 570 : C + 70,
1482
+ transform: `translate(-50%, -50%) scaleX(${L ? 1 : 0.4}) scaleY(${L ? 1 : 0.6}) scale(${L ? 1 : Z})`,
1483
+ transition: ye,
1484
1484
  zIndex: 1
1485
1485
  },
1486
- children: /* @__PURE__ */ e(Bt, { size: kt, color: Rt, widthRatio: Pt, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
1486
+ children: /* @__PURE__ */ e(Yt, { size: At, color: Tt, widthRatio: It, children: /* @__PURE__ */ e("div", { className: "base-hotspot" }) })
1487
1487
  }
1488
1488
  ),
1489
1489
  r
@@ -1491,7 +1491,7 @@ function pt({
1491
1491
  }
1492
1492
  ) });
1493
1493
  }
1494
- function L({
1494
+ function W({
1495
1495
  ex: t,
1496
1496
  ey: n,
1497
1497
  status: o,
@@ -1503,20 +1503,20 @@ function L({
1503
1503
  align: h = "right",
1504
1504
  internalRef: c
1505
1505
  }) {
1506
- const p = we(le), f = p?.expandedOffsetX ?? 0;
1506
+ const p = re(ue), f = p?.expandedOffsetX ?? 0;
1507
1507
  if (o === "online") return null;
1508
- const g = l && !!p?.isExpandedPos, u = w[o]?.color ?? w.warning.color, y = Math.abs(a) > Math.abs(s), m = t + f + (y ? Math.sign(a) * 45 : 0), x = n + (y ? 0 : Math.sign(s) * 40), v = t + f + a, $ = n + s;
1508
+ const g = l && !!p?.isExpandedPos, u = P[o]?.color ?? P.warning.color, y = Math.abs(a) > Math.abs(s), m = t + f + (y ? Math.sign(a) * 45 : 0), v = n + (y ? 0 : Math.sign(s) * 40), x = t + f + a, w = n + s;
1509
1509
  let b = "";
1510
1510
  if (y) {
1511
- const T = m + (v - m) / 2;
1512
- b = `M ${m} ${x} L ${T} ${x} L ${T} ${$} L ${v} ${$}`;
1511
+ const S = m + (x - m) / 2;
1512
+ b = `M ${m} ${v} L ${S} ${v} L ${S} ${w} L ${x} ${w}`;
1513
1513
  } else {
1514
- const T = x + ($ - x) / 2;
1515
- b = `M ${m} ${x} L ${m} ${T} L ${v} ${T} L ${v} ${$}`;
1514
+ const S = v + (w - v) / 2;
1515
+ b = `M ${m} ${v} L ${m} ${S} L ${x} ${S} L ${x} ${w}`;
1516
1516
  }
1517
- let R = "translate(0, -50%)";
1518
- h === "left" && (R = "translate(-100%, -50%)"), h === "top" && (R = "translate(-50%, -100%)"), h === "bottom" && (R = "translate(-50%, 0)");
1519
- const D = h === "left" ? -8 : h === "right" ? 8 : 0, C = h === "top" ? -8 : h === "bottom" ? 8 : 0;
1517
+ let k = "translate(0, -50%)";
1518
+ h === "left" && (k = "translate(-100%, -50%)"), h === "top" && (k = "translate(-50%, -100%)"), h === "bottom" && (k = "translate(-50%, 0)");
1519
+ const T = h === "left" ? -8 : h === "right" ? 8 : 0, $ = h === "top" ? -8 : h === "bottom" ? 8 : 0;
1520
1520
  return /* @__PURE__ */ d(
1521
1521
  "div",
1522
1522
  {
@@ -1562,11 +1562,11 @@ function L({
1562
1562
  {
1563
1563
  style: {
1564
1564
  position: "absolute",
1565
- left: v,
1566
- top: $,
1567
- transform: R,
1568
- marginLeft: D,
1569
- marginTop: C,
1565
+ left: x,
1566
+ top: w,
1567
+ transform: k,
1568
+ marginLeft: T,
1569
+ marginTop: $,
1570
1570
  background: "repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255,255,255,0.03) 2px, rgba(255,255,255,0.03) 4px), rgba(2, 8, 16, 0.82)",
1571
1571
  border: `1px solid ${u}55`,
1572
1572
  borderLeft: `2px solid ${u}`,
@@ -1638,7 +1638,7 @@ function L({
1638
1638
  }
1639
1639
  );
1640
1640
  }
1641
- function k({
1641
+ function A({
1642
1642
  ex: t,
1643
1643
  ey: n,
1644
1644
  compactOffset: o,
@@ -1654,21 +1654,21 @@ function k({
1654
1654
  bare: g = !1,
1655
1655
  alert: u
1656
1656
  }) {
1657
- const y = we(le);
1657
+ const y = re(ue);
1658
1658
  if (!y)
1659
1659
  throw new Error("ServiceNode must be used inside a <Service> component.");
1660
1660
  const {
1661
1661
  isExpandedPos: m,
1662
- animPhase: x,
1663
- compactCx: v,
1664
- compactCy: $,
1662
+ animPhase: v,
1663
+ compactCx: x,
1664
+ compactCy: w,
1665
1665
  groupScale: b,
1666
- effectiveScale: R,
1667
- transitionValue: D,
1668
- onComponentClick: C,
1669
- selectedComponentName: T,
1670
- expandedOffsetX: W
1671
- } = y, j = p === 0 || y.isSelected && x >= p ? 1 : 0, N = v + o.x, te = $ + o.y, ie = m ? t + W : N, z = m ? n : te, F = f !== void 0 ? f : y.isCompact ? b : R, ne = !!c && !!T && c.name === T, $e = c?.status ? w[c.status]?.color ?? a : a, ke = c?.status === "offline" ? "#4a6a8a" : $e, V = c && m && C ? () => C({
1666
+ effectiveScale: k,
1667
+ transitionValue: T,
1668
+ onComponentClick: $,
1669
+ selectedComponentName: S,
1670
+ expandedOffsetX: N
1671
+ } = y, z = p === 0 || y.isSelected && v >= p ? 1 : 0, H = x + o.x, ae = w + o.y, le = m ? t + N : H, I = m ? n : ae, U = f !== void 0 ? f : y.isCompact ? b : k, se = !!c && !!S && c.name === S, Ie = c?.status ? P[c.status]?.color ?? a : a, Oe = c?.status === "offline" ? "#4a6a8a" : Ie, Y = c && m && $ ? () => $({
1672
1672
  type: c.type,
1673
1673
  name: c.name,
1674
1674
  status: c.status,
@@ -1678,44 +1678,44 @@ function k({
1678
1678
  dialogMetrics: c.dialogMetrics,
1679
1679
  subComponents: c.subComponents,
1680
1680
  graphSeries: c.graphSeries
1681
- }) : void 0, M = c?.status ?? "online", P = c?.name ?? s ?? "";
1682
- return /* @__PURE__ */ d(ve, { children: [
1681
+ }) : void 0, L = c?.status ?? "online", Q = c?.name ?? s ?? "";
1682
+ return /* @__PURE__ */ d(Ee, { children: [
1683
1683
  /* @__PURE__ */ e(
1684
1684
  "div",
1685
1685
  {
1686
1686
  style: {
1687
1687
  position: "absolute",
1688
- left: ie,
1689
- top: z,
1690
- transform: `translate(-50%, -50%) scale(${F})`,
1691
- opacity: j,
1688
+ left: le,
1689
+ top: I,
1690
+ transform: `translate(-50%, -50%) scale(${U})`,
1691
+ opacity: z,
1692
1692
  zIndex: i,
1693
- transition: D || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
1694
- pointerEvents: m && j >= 0.5 ? "auto" : "none"
1693
+ transition: T || "all 1s cubic-bezier(0.34, 1.56, 0.64, 1)",
1694
+ pointerEvents: m && z >= 0.5 ? "auto" : "none"
1695
1695
  },
1696
1696
  children: g ? r : /* @__PURE__ */ e(
1697
- Ut,
1697
+ jt,
1698
1698
  {
1699
- statusColor: ke,
1699
+ statusColor: Oe,
1700
1700
  label: s,
1701
1701
  subLabel: l,
1702
1702
  delay: h,
1703
1703
  showLabels: m,
1704
1704
  isCompact: y.isCompact,
1705
- onClick: V,
1706
- isSelected: ne,
1705
+ onClick: Y,
1706
+ isSelected: se,
1707
1707
  children: r
1708
1708
  }
1709
1709
  )
1710
1710
  }
1711
1711
  ),
1712
1712
  u && /* @__PURE__ */ e(
1713
- L,
1713
+ W,
1714
1714
  {
1715
1715
  ex: t,
1716
1716
  ey: n,
1717
- status: M,
1718
- title: P,
1717
+ status: L,
1718
+ title: Q,
1719
1719
  msg: u.msg,
1720
1720
  offsetX: u.offsetX ?? 110,
1721
1721
  offsetY: u.offsetY ?? -30,
@@ -1726,7 +1726,7 @@ function k({
1726
1726
  )
1727
1727
  ] });
1728
1728
  }
1729
- function Ut({
1729
+ function jt({
1730
1730
  children: t,
1731
1731
  statusColor: n,
1732
1732
  label: o,
@@ -1737,7 +1737,7 @@ function Ut({
1737
1737
  onClick: l,
1738
1738
  isSelected: h = !1
1739
1739
  }) {
1740
- const [c, p] = I(!1), f = h ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : c && l ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
1740
+ const [c, p] = R(!1), f = h ? `brightness(1.5) drop-shadow(0 0 24px ${n}cc) drop-shadow(0 0 8px ${n}88)` : c && l ? `brightness(1.2) drop-shadow(0 0 12px ${n}77)` : "";
1741
1741
  return /* @__PURE__ */ d(
1742
1742
  "div",
1743
1743
  {
@@ -1766,7 +1766,7 @@ function Ut({
1766
1766
  }
1767
1767
  }
1768
1768
  ),
1769
- /* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && J.isValidElement(t) ? J.cloneElement(t, {
1769
+ /* @__PURE__ */ e("div", { style: s ? { background: "#040c1a", borderRadius: 2 } : void 0, children: s && j.isValidElement(t) ? j.cloneElement(t, {
1770
1770
  _compact: !0
1771
1771
  }) : t })
1772
1772
  ] }),
@@ -1787,7 +1787,7 @@ function Ut({
1787
1787
  }
1788
1788
  );
1789
1789
  }
1790
- function ft({ synced: t, latencyMs: n }) {
1790
+ function vt({ synced: t, latencyMs: n }) {
1791
1791
  const o = t ? "#00ff88" : "#ff8c00";
1792
1792
  return /* @__PURE__ */ d("div", { className: "sync-bridge", children: [
1793
1793
  /* @__PURE__ */ d("div", { className: "sync-arrows", children: [
@@ -1822,8 +1822,8 @@ function ft({ synced: t, latencyMs: n }) {
1822
1822
  ] })
1823
1823
  ] });
1824
1824
  }
1825
- const G = 140, H = 240, Z = 160, ce = Ge(G, H, Z);
1826
- function Yt({
1825
+ const te = 140, _ = 240, oe = 160, me = Je(te, _, oe);
1826
+ function Xt({
1827
1827
  cfg: t,
1828
1828
  name: n,
1829
1829
  cpuLoad: o,
@@ -1842,9 +1842,9 @@ function Yt({
1842
1842
  "div",
1843
1843
  {
1844
1844
  style: {
1845
- width: G,
1846
- height: H,
1847
- background: a ? Se : Qe,
1845
+ width: te,
1846
+ height: _,
1847
+ background: a ? Te : Ze,
1848
1848
  position: "relative",
1849
1849
  overflow: "hidden",
1850
1850
  fontFamily: "'Courier New', monospace",
@@ -2235,13 +2235,13 @@ function Yt({
2235
2235
  }
2236
2236
  );
2237
2237
  }
2238
- function Vt() {
2238
+ function qt() {
2239
2239
  return /* @__PURE__ */ d(
2240
2240
  "div",
2241
2241
  {
2242
2242
  style: {
2243
- width: G,
2244
- height: H,
2243
+ width: te,
2244
+ height: _,
2245
2245
  background: "linear-gradient(180deg, #040c1a 0%, #030810 100%)",
2246
2246
  position: "relative",
2247
2247
  overflow: "hidden",
@@ -2349,7 +2349,7 @@ function Vt() {
2349
2349
  }
2350
2350
  );
2351
2351
  }
2352
- function at({
2352
+ function ft({
2353
2353
  side: t,
2354
2354
  color: n,
2355
2355
  brandLabel: o
@@ -2359,8 +2359,8 @@ function at({
2359
2359
  "div",
2360
2360
  {
2361
2361
  style: {
2362
- width: Z,
2363
- height: H,
2362
+ width: oe,
2363
+ height: _,
2364
2364
  background: i ? "linear-gradient(90deg, #040c1c 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #040c1c 100%)",
2365
2365
  position: "relative",
2366
2366
  overflow: "hidden"
@@ -2379,13 +2379,13 @@ function at({
2379
2379
  }
2380
2380
  }
2381
2381
  ),
2382
- [8, H - 20].map((r) => /* @__PURE__ */ e(
2382
+ [8, _ - 20].map((r) => /* @__PURE__ */ e(
2383
2383
  "div",
2384
2384
  {
2385
2385
  style: {
2386
2386
  position: "absolute",
2387
2387
  top: r,
2388
- left: i ? 10 : Z - 18,
2388
+ left: i ? 10 : oe - 18,
2389
2389
  width: 8,
2390
2390
  height: 8,
2391
2391
  borderRadius: 1,
@@ -2401,8 +2401,8 @@ function at({
2401
2401
  {
2402
2402
  style: {
2403
2403
  position: "absolute",
2404
- top: H * 0.35,
2405
- bottom: H * 0.15,
2404
+ top: _ * 0.35,
2405
+ bottom: _ * 0.15,
2406
2406
  left: i ? 22 : 18,
2407
2407
  right: i ? 18 : 22,
2408
2408
  display: "flex",
@@ -2430,8 +2430,8 @@ function at({
2430
2430
  {
2431
2431
  style: {
2432
2432
  position: "absolute",
2433
- top: H * 0.18,
2434
- left: i ? 12 : Z - 78,
2433
+ top: _ * 0.18,
2434
+ left: i ? 12 : oe - 78,
2435
2435
  fontSize: 7,
2436
2436
  color: "#1a3050",
2437
2437
  letterSpacing: "0.2em",
@@ -2449,14 +2449,14 @@ function at({
2449
2449
  }
2450
2450
  );
2451
2451
  }
2452
- function _t({ cpuLoad: t }) {
2453
- const n = t / 100, o = n > 0.75 ? "rgba(255,34,85,0.16)" : n > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", i = Math.floor((Z - 18) / 7);
2452
+ function Qt({ cpuLoad: t }) {
2453
+ const n = t / 100, o = n > 0.75 ? "rgba(255,34,85,0.16)" : n > 0.45 ? "rgba(255,140,0,0.12)" : "rgba(0,229,255,0.08)", i = Math.floor((oe - 18) / 7);
2454
2454
  return /* @__PURE__ */ d(
2455
2455
  "div",
2456
2456
  {
2457
2457
  style: {
2458
- width: G,
2459
- height: Z,
2458
+ width: te,
2459
+ height: oe,
2460
2460
  background: "linear-gradient(180deg, #0c1c30 0%, #070f1e 40%, #040c1a 100%)",
2461
2461
  position: "relative",
2462
2462
  overflow: "hidden"
@@ -2470,7 +2470,7 @@ function _t({ cpuLoad: t }) {
2470
2470
  top: 0,
2471
2471
  left: 0,
2472
2472
  right: 0,
2473
- height: Z * 0.4,
2473
+ height: oe * 0.4,
2474
2474
  background: `radial-gradient(ellipse at 50% 0%, ${o} 0%, transparent 70%)`
2475
2475
  }
2476
2476
  }
@@ -2529,7 +2529,7 @@ function _t({ cpuLoad: t }) {
2529
2529
  }
2530
2530
  );
2531
2531
  }
2532
- function ae({
2532
+ function he({
2533
2533
  rotateX: t = -22,
2534
2534
  rotateY: n = 20,
2535
2535
  rotateZ: o = 0,
@@ -2542,26 +2542,26 @@ function ae({
2542
2542
  brandLabel: c = "BUSAUD",
2543
2543
  _compact: p
2544
2544
  }) {
2545
- const [f, g] = I(n), u = ee(0), y = ee(0);
2546
- Te(() => {
2545
+ const [f, g] = R(n), u = K(0), y = K(0);
2546
+ Ae(() => {
2547
2547
  if (!r) {
2548
2548
  g(n);
2549
2549
  return;
2550
2550
  }
2551
- const x = (v) => {
2552
- y.current && g(($) => $ + (v - y.current) * 0.027), y.current = v, u.current = requestAnimationFrame(x);
2551
+ const v = (x) => {
2552
+ y.current && g((w) => w + (x - y.current) * 0.027), y.current = x, u.current = requestAnimationFrame(v);
2553
2553
  };
2554
- return u.current = requestAnimationFrame(x), () => {
2554
+ return u.current = requestAnimationFrame(v), () => {
2555
2555
  cancelAnimationFrame(u.current), y.current = 0;
2556
2556
  };
2557
2557
  }, [r, n]);
2558
- const m = w[a] ?? w.online;
2558
+ const m = P[a] ?? P.online;
2559
2559
  return /* @__PURE__ */ d(
2560
2560
  "div",
2561
2561
  {
2562
2562
  style: {
2563
- width: G * i,
2564
- height: H * i,
2563
+ width: te * i,
2564
+ height: _ * i,
2565
2565
  position: "relative",
2566
2566
  display: "flex",
2567
2567
  alignItems: "center",
@@ -2613,8 +2613,8 @@ function ae({
2613
2613
  {
2614
2614
  style: {
2615
2615
  position: "absolute",
2616
- width: G * 1.4 * i,
2617
- height: H * 0.8 * i,
2616
+ width: te * 1.4 * i,
2617
+ height: _ * 0.8 * i,
2618
2618
  background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
2619
2619
  filter: `blur(${Math.round(45 * i)}px)`,
2620
2620
  pointerEvents: "none",
@@ -2637,16 +2637,16 @@ function ae({
2637
2637
  "div",
2638
2638
  {
2639
2639
  style: {
2640
- width: G,
2641
- height: H,
2640
+ width: te,
2641
+ height: _,
2642
2642
  position: "relative",
2643
2643
  transformStyle: "preserve-3d",
2644
2644
  transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
2645
2645
  transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
2646
2646
  },
2647
2647
  children: [
2648
- /* @__PURE__ */ e("div", { style: ce.front, children: /* @__PURE__ */ e(
2649
- Yt,
2648
+ /* @__PURE__ */ e("div", { style: me.front, children: /* @__PURE__ */ e(
2649
+ Xt,
2650
2650
  {
2651
2651
  cfg: m,
2652
2652
  name: s,
@@ -2657,16 +2657,16 @@ function ae({
2657
2657
  brandLabel: c
2658
2658
  }
2659
2659
  ) }),
2660
- /* @__PURE__ */ e("div", { style: ce.back, children: /* @__PURE__ */ e(Vt, {}) }),
2661
- /* @__PURE__ */ e("div", { style: ce.left, children: /* @__PURE__ */ e(at, { side: "left", color: m.color, brandLabel: c }) }),
2662
- /* @__PURE__ */ e("div", { style: ce.right, children: /* @__PURE__ */ e(at, { side: "right", color: m.color, brandLabel: c }) }),
2663
- /* @__PURE__ */ e("div", { style: ce.top, children: /* @__PURE__ */ e(_t, { cpuLoad: l }) }),
2664
- /* @__PURE__ */ e("div", { style: ce.bottom, children: /* @__PURE__ */ e(
2660
+ /* @__PURE__ */ e("div", { style: me.back, children: /* @__PURE__ */ e(qt, {}) }),
2661
+ /* @__PURE__ */ e("div", { style: me.left, children: /* @__PURE__ */ e(ft, { side: "left", color: m.color, brandLabel: c }) }),
2662
+ /* @__PURE__ */ e("div", { style: me.right, children: /* @__PURE__ */ e(ft, { side: "right", color: m.color, brandLabel: c }) }),
2663
+ /* @__PURE__ */ e("div", { style: me.top, children: /* @__PURE__ */ e(Qt, { cpuLoad: l }) }),
2664
+ /* @__PURE__ */ e("div", { style: me.bottom, children: /* @__PURE__ */ e(
2665
2665
  "div",
2666
2666
  {
2667
2667
  style: {
2668
- width: G,
2669
- height: Z,
2668
+ width: te,
2669
+ height: oe,
2670
2670
  background: "linear-gradient(180deg, #030710, #020508)"
2671
2671
  }
2672
2672
  }
@@ -2680,7 +2680,7 @@ function ae({
2680
2680
  }
2681
2681
  );
2682
2682
  }
2683
- function wi({
2683
+ function Ti({
2684
2684
  ex: t,
2685
2685
  ey: n,
2686
2686
  compactOffset: o,
@@ -2697,10 +2697,10 @@ function wi({
2697
2697
  dialogMetrics: u,
2698
2698
  subComponents: y,
2699
2699
  graphSeries: m,
2700
- alert: x
2700
+ alert: v
2701
2701
  }) {
2702
2702
  return /* @__PURE__ */ e(
2703
- k,
2703
+ A,
2704
2704
  {
2705
2705
  ex: t,
2706
2706
  ey: n,
@@ -2720,16 +2720,16 @@ function wi({
2720
2720
  subComponents: y,
2721
2721
  graphSeries: m
2722
2722
  },
2723
- alert: x,
2724
- children: /* @__PURE__ */ e(ae, { status: a, cpuLoad: p, memLoad: f, brandLabel: g })
2723
+ alert: v,
2724
+ children: /* @__PURE__ */ e(he, { status: a, cpuLoad: p, memLoad: f, brandLabel: g })
2725
2725
  }
2726
2726
  );
2727
2727
  }
2728
- const Xe = 12, re = 55, _ = re * 2, ue = 52, Ze = 10, He = 3 * ue + 2 * Ze, pe = 2 * Math.PI * re / Xe, Ue = Array.from({ length: Xe }, (t, n) => n / Xe * 360);
2729
- function Ye(t) {
2728
+ const Ke = 12, fe = 55, G = fe * 2, Se = 52, it = 10, je = 3 * Se + 2 * it, xe = 2 * Math.PI * fe / Ke, Xe = Array.from({ length: Ke }, (t, n) => n / Ke * 360);
2729
+ function qe(t) {
2730
2730
  return Math.cos(t * Math.PI / 180) * 0.42 + 0.58;
2731
2731
  }
2732
- function Xt({
2732
+ function Gt({
2733
2733
  diskY: t,
2734
2734
  diskIdx: n,
2735
2735
  cfg: o,
@@ -2737,25 +2737,25 @@ function Xt({
2737
2737
  capacity: r,
2738
2738
  compact: a
2739
2739
  }) {
2740
- return /* @__PURE__ */ d(ve, { children: [
2741
- Ue.map((s, l) => {
2742
- const h = Ye(s), c = l === 0, p = Math.round(4 + h * 9), f = Math.round(12 + h * 22), g = Math.round(28 + h * 44), u = Math.round(h * 0.55 * 255).toString(16).padStart(2, "0");
2740
+ return /* @__PURE__ */ d(Ee, { children: [
2741
+ Xe.map((s, l) => {
2742
+ const h = qe(s), c = l === 0, p = Math.round(4 + h * 9), f = Math.round(12 + h * 22), g = Math.round(28 + h * 44), u = Math.round(h * 0.55 * 255).toString(16).padStart(2, "0");
2743
2743
  return /* @__PURE__ */ e(
2744
2744
  "div",
2745
2745
  {
2746
2746
  style: {
2747
2747
  position: "absolute",
2748
- width: pe,
2749
- height: ue,
2750
- left: (_ - pe) / 2,
2748
+ width: xe,
2749
+ height: Se,
2750
+ left: (G - xe) / 2,
2751
2751
  top: t,
2752
- transform: `rotateY(${s}deg) translateZ(${re}px)`,
2752
+ transform: `rotateY(${s}deg) translateZ(${fe}px)`,
2753
2753
  backfaceVisibility: "hidden",
2754
2754
  background: c ? a ? "linear-gradient(180deg, rgb(0,28,62), rgb(0,18,44))" : "linear-gradient(180deg, rgba(0,28,62,0.70), rgba(0,18,44,0.76))" : `rgb(${p},${f},${g})`,
2755
2755
  borderLeft: `1px solid ${o.color}${u}`,
2756
2756
  boxShadow: c ? `inset 0 0 18px ${o.color}28` : "none"
2757
2757
  },
2758
- children: c && /* @__PURE__ */ d(ve, { children: [
2758
+ children: c && /* @__PURE__ */ d(Ee, { children: [
2759
2759
  /* @__PURE__ */ e(
2760
2760
  "div",
2761
2761
  {
@@ -2808,10 +2808,10 @@ function Xt({
2808
2808
  {
2809
2809
  style: {
2810
2810
  position: "absolute",
2811
- width: _ + 4,
2812
- height: _ + 4,
2811
+ width: G + 4,
2812
+ height: G + 4,
2813
2813
  left: -2,
2814
- top: t - re,
2814
+ top: t - fe,
2815
2815
  borderRadius: "50%",
2816
2816
  transform: "rotateX(90deg)",
2817
2817
  backfaceVisibility: "hidden",
@@ -2869,10 +2869,10 @@ function Xt({
2869
2869
  {
2870
2870
  style: {
2871
2871
  position: "absolute",
2872
- width: _ + 4,
2873
- height: _ + 4,
2872
+ width: G + 4,
2873
+ height: G + 4,
2874
2874
  left: -2,
2875
- top: t + ue - re,
2875
+ top: t + Se - fe,
2876
2876
  borderRadius: "50%",
2877
2877
  transform: "rotateX(-90deg)",
2878
2878
  backfaceVisibility: "hidden",
@@ -2896,18 +2896,18 @@ function Xt({
2896
2896
  )
2897
2897
  }
2898
2898
  ),
2899
- i && Ue.map((s, l) => {
2900
- const h = Ye(s);
2899
+ i && Xe.map((s, l) => {
2900
+ const h = qe(s);
2901
2901
  return /* @__PURE__ */ e(
2902
2902
  "div",
2903
2903
  {
2904
2904
  style: {
2905
2905
  position: "absolute",
2906
- width: pe + 1.5,
2906
+ width: xe + 1.5,
2907
2907
  height: 6,
2908
- left: (_ - pe - 1.5) / 2,
2909
- top: t + ue - 3,
2910
- transform: `rotateY(${s}deg) translateZ(${re + 1.5}px)`,
2908
+ left: (G - xe - 1.5) / 2,
2909
+ top: t + Se - 3,
2910
+ transform: `rotateY(${s}deg) translateZ(${fe + 1.5}px)`,
2911
2911
  backfaceVisibility: "hidden",
2912
2912
  background: o.color,
2913
2913
  boxShadow: `0 0 8px ${o.color}, 0 0 18px ${o.color}aa, 0 0 30px ${o.glow}`,
@@ -2917,18 +2917,18 @@ function Xt({
2917
2917
  `rng${n}${l}`
2918
2918
  );
2919
2919
  }),
2920
- i && Ue.map((s, l) => {
2921
- const h = Ye(s), c = Math.round(2 + h * 4), p = Math.round(5 + h * 10), f = Math.round(12 + h * 20);
2920
+ i && Xe.map((s, l) => {
2921
+ const h = qe(s), c = Math.round(2 + h * 4), p = Math.round(5 + h * 10), f = Math.round(12 + h * 20);
2922
2922
  return /* @__PURE__ */ e(
2923
2923
  "div",
2924
2924
  {
2925
2925
  style: {
2926
2926
  position: "absolute",
2927
- width: pe,
2928
- height: Ze,
2929
- left: (_ - pe) / 2,
2930
- top: t + ue,
2931
- transform: `rotateY(${s}deg) translateZ(${re}px)`,
2927
+ width: xe,
2928
+ height: it,
2929
+ left: (G - xe) / 2,
2930
+ top: t + Se,
2931
+ transform: `rotateY(${s}deg) translateZ(${fe}px)`,
2932
2932
  backfaceVisibility: "hidden",
2933
2933
  background: `rgb(${c},${p},${f})`
2934
2934
  }
@@ -2938,7 +2938,7 @@ function Xt({
2938
2938
  })
2939
2939
  ] });
2940
2940
  }
2941
- function Ee({
2941
+ function Ne({
2942
2942
  rotateX: t = -22,
2943
2943
  rotateY: n = -15,
2944
2944
  rotateZ: o = 0,
@@ -2950,8 +2950,8 @@ function Ee({
2950
2950
  // connections = 284,
2951
2951
  _compact: l
2952
2952
  }) {
2953
- const [h, c] = I(n), p = ee(0), f = ee(0);
2954
- Te(() => {
2953
+ const [h, c] = R(n), p = K(0), f = K(0);
2954
+ Ae(() => {
2955
2955
  if (!r) {
2956
2956
  c(n);
2957
2957
  return;
@@ -2963,13 +2963,13 @@ function Ee({
2963
2963
  cancelAnimationFrame(p.current), f.current = 0;
2964
2964
  };
2965
2965
  }, [r, n]);
2966
- const g = w[a] ?? w.online;
2966
+ const g = P[a] ?? P.online;
2967
2967
  return /* @__PURE__ */ d(
2968
2968
  "div",
2969
2969
  {
2970
2970
  style: {
2971
- width: _ * i,
2972
- height: He * i,
2971
+ width: G * i,
2972
+ height: je * i,
2973
2973
  position: "relative",
2974
2974
  display: "flex",
2975
2975
  alignItems: "center",
@@ -3029,8 +3029,8 @@ function Ee({
3029
3029
  {
3030
3030
  style: {
3031
3031
  position: "absolute",
3032
- width: _ * 2.8 * i,
3033
- height: He * 0.85 * i,
3032
+ width: G * 2.8 * i,
3033
+ height: je * 0.85 * i,
3034
3034
  background: `radial-gradient(ellipse, ${g.glow} 0%, transparent 65%)`,
3035
3035
  filter: `blur(${Math.round(50 * i)}px)`,
3036
3036
  pointerEvents: "none",
@@ -3053,17 +3053,17 @@ function Ee({
3053
3053
  "div",
3054
3054
  {
3055
3055
  style: {
3056
- width: _,
3057
- height: He,
3056
+ width: G,
3057
+ height: je,
3058
3058
  position: "relative",
3059
3059
  transformStyle: "preserve-3d",
3060
3060
  transform: `rotateX(${t}deg) rotateY(${h}deg) rotateZ(${o}deg)`,
3061
3061
  transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
3062
3062
  },
3063
3063
  children: [0, 1, 2].map((u) => /* @__PURE__ */ e(
3064
- Xt,
3064
+ Gt,
3065
3065
  {
3066
- diskY: u * (ue + Ze),
3066
+ diskY: u * (Se + it),
3067
3067
  diskIdx: u,
3068
3068
  cfg: g,
3069
3069
  hasRingBelow: u < 2,
@@ -3080,7 +3080,7 @@ function Ee({
3080
3080
  }
3081
3081
  );
3082
3082
  }
3083
- function Si({
3083
+ function Ii({
3084
3084
  ex: t,
3085
3085
  ey: n,
3086
3086
  compactOffset: o,
@@ -3098,7 +3098,7 @@ function Si({
3098
3098
  alert: y
3099
3099
  }) {
3100
3100
  return /* @__PURE__ */ e(
3101
- k,
3101
+ A,
3102
3102
  {
3103
3103
  ex: t,
3104
3104
  ey: n,
@@ -3119,12 +3119,12 @@ function Si({
3119
3119
  graphSeries: u
3120
3120
  },
3121
3121
  alert: y,
3122
- children: /* @__PURE__ */ e(Ee, { status: a, capacity: p })
3122
+ children: /* @__PURE__ */ e(Ne, { status: a, capacity: p })
3123
3123
  }
3124
3124
  );
3125
3125
  }
3126
- function Je({ status: t = "online", scale: n = 1 }) {
3127
- const i = (w[t] ?? w.online).color;
3126
+ function nt({ status: t = "online", scale: n = 1 }) {
3127
+ const i = (P[t] ?? P.online).color;
3128
3128
  return /* @__PURE__ */ e(
3129
3129
  "div",
3130
3130
  {
@@ -3235,7 +3235,7 @@ function Je({ status: t = "online", scale: n = 1 }) {
3235
3235
  }
3236
3236
  );
3237
3237
  }
3238
- function $i({
3238
+ function Oi({
3239
3239
  ex: t,
3240
3240
  ey: n,
3241
3241
  compactOffset: o,
@@ -3246,7 +3246,7 @@ function $i({
3246
3246
  visibleAtPhase: l
3247
3247
  }) {
3248
3248
  return /* @__PURE__ */ e(
3249
- k,
3249
+ A,
3250
3250
  {
3251
3251
  ex: t,
3252
3252
  ey: n,
@@ -3254,12 +3254,12 @@ function $i({
3254
3254
  zIndex: i,
3255
3255
  color: s,
3256
3256
  visibleAtPhase: l,
3257
- children: /* @__PURE__ */ e(Je, { status: r, scale: a })
3257
+ children: /* @__PURE__ */ e(nt, { status: r, scale: a })
3258
3258
  }
3259
3259
  );
3260
3260
  }
3261
- const q = 190, U = 72, be = 120, fe = Ge(q, U, be);
3262
- function jt({
3261
+ const ie = 190, X = 72, $e = 120, ve = Je(ie, X, $e);
3262
+ function Kt({
3263
3263
  cfg: t,
3264
3264
  name: n,
3265
3265
  traffic: o,
@@ -3271,9 +3271,9 @@ function jt({
3271
3271
  "div",
3272
3272
  {
3273
3273
  style: {
3274
- width: q,
3275
- height: U,
3276
- background: r ? Se : Qe,
3274
+ width: ie,
3275
+ height: X,
3276
+ background: r ? Te : Ze,
3277
3277
  position: "relative",
3278
3278
  overflow: "hidden",
3279
3279
  fontFamily: "'Courier New', monospace",
@@ -3521,13 +3521,13 @@ function jt({
3521
3521
  }
3522
3522
  );
3523
3523
  }
3524
- function Qt() {
3524
+ function Zt() {
3525
3525
  return /* @__PURE__ */ d(
3526
3526
  "div",
3527
3527
  {
3528
3528
  style: {
3529
- width: q,
3530
- height: U,
3529
+ width: ie,
3530
+ height: X,
3531
3531
  background: "linear-gradient(180deg, #040c1a, #030810)",
3532
3532
  position: "relative",
3533
3533
  overflow: "hidden",
@@ -3542,7 +3542,7 @@ function Qt() {
3542
3542
  {
3543
3543
  style: {
3544
3544
  width: 40,
3545
- height: U - 16,
3545
+ height: X - 16,
3546
3546
  background: "#020710",
3547
3547
  border: "1px solid #1a2d40",
3548
3548
  borderRadius: 2,
@@ -3598,7 +3598,7 @@ function Qt() {
3598
3598
  style: {
3599
3599
  marginLeft: "auto",
3600
3600
  width: 12,
3601
- height: U - 16,
3601
+ height: X - 16,
3602
3602
  background: "#020710",
3603
3603
  border: "1px solid #1a3050",
3604
3604
  borderRadius: 1
@@ -3609,13 +3609,13 @@ function Qt() {
3609
3609
  }
3610
3610
  );
3611
3611
  }
3612
- function lt({ side: t, color: n }) {
3612
+ function ht({ side: t, color: n }) {
3613
3613
  return /* @__PURE__ */ d(
3614
3614
  "div",
3615
3615
  {
3616
3616
  style: {
3617
- width: be,
3618
- height: U,
3617
+ width: $e,
3618
+ height: X,
3619
3619
  background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
3620
3620
  position: "relative",
3621
3621
  overflow: "hidden"
@@ -3639,8 +3639,8 @@ function lt({ side: t, color: n }) {
3639
3639
  {
3640
3640
  style: {
3641
3641
  position: "absolute",
3642
- top: U * 0.25,
3643
- bottom: U * 0.25,
3642
+ top: X * 0.25,
3643
+ bottom: X * 0.25,
3644
3644
  left: 14,
3645
3645
  right: 14,
3646
3646
  display: "flex",
@@ -3666,14 +3666,14 @@ function lt({ side: t, color: n }) {
3666
3666
  }
3667
3667
  );
3668
3668
  }
3669
- function Gt({ traffic: t }) {
3670
- const n = Math.floor((be - 14) / 7);
3669
+ function Jt({ traffic: t }) {
3670
+ const n = Math.floor(($e - 14) / 7);
3671
3671
  return /* @__PURE__ */ d(
3672
3672
  "div",
3673
3673
  {
3674
3674
  style: {
3675
- width: q,
3676
- height: be,
3675
+ width: ie,
3676
+ height: $e,
3677
3677
  background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
3678
3678
  position: "relative",
3679
3679
  overflow: "hidden"
@@ -3687,7 +3687,7 @@ function Gt({ traffic: t }) {
3687
3687
  top: 0,
3688
3688
  left: 0,
3689
3689
  right: 0,
3690
- height: be * 0.35,
3690
+ height: $e * 0.35,
3691
3691
  background: `radial-gradient(ellipse at 50% 0%,
3692
3692
  ${t > 70 ? "rgba(255,34,85,0.14)" : "rgba(0,229,255,0.08)"} 0%,
3693
3693
  transparent 70%)`
@@ -3725,7 +3725,7 @@ function Gt({ traffic: t }) {
3725
3725
  }
3726
3726
  );
3727
3727
  }
3728
- function et({
3728
+ function ot({
3729
3729
  rotateX: t = -20,
3730
3730
  rotateY: n = 20,
3731
3731
  rotateZ: o = 0,
@@ -3737,26 +3737,26 @@ function et({
3737
3737
  activeRoutes: h = 12,
3738
3738
  _compact: c
3739
3739
  }) {
3740
- const [p, f] = I(n), g = ee(0), u = ee(0);
3741
- Te(() => {
3740
+ const [p, f] = R(n), g = K(0), u = K(0);
3741
+ Ae(() => {
3742
3742
  if (!r) {
3743
3743
  f(n);
3744
3744
  return;
3745
3745
  }
3746
- const m = (x) => {
3747
- u.current && f((v) => v + (x - u.current) * 0.027), u.current = x, g.current = requestAnimationFrame(m);
3746
+ const m = (v) => {
3747
+ u.current && f((x) => x + (v - u.current) * 0.027), u.current = v, g.current = requestAnimationFrame(m);
3748
3748
  };
3749
3749
  return g.current = requestAnimationFrame(m), () => {
3750
3750
  cancelAnimationFrame(g.current), u.current = 0;
3751
3751
  };
3752
3752
  }, [r, n]);
3753
- const y = w[a] ?? w.online;
3753
+ const y = P[a] ?? P.online;
3754
3754
  return /* @__PURE__ */ d(
3755
3755
  "div",
3756
3756
  {
3757
3757
  style: {
3758
- width: q * i,
3759
- height: U * i,
3758
+ width: ie * i,
3759
+ height: X * i,
3760
3760
  position: "relative",
3761
3761
  display: "flex",
3762
3762
  alignItems: "center",
@@ -3816,8 +3816,8 @@ function et({
3816
3816
  {
3817
3817
  style: {
3818
3818
  position: "absolute",
3819
- width: q * 1.3 * i,
3820
- height: U * 2 * i,
3819
+ width: ie * 1.3 * i,
3820
+ height: X * 2 * i,
3821
3821
  background: `radial-gradient(ellipse, ${y.glow} 0%, transparent 65%)`,
3822
3822
  filter: `blur(${Math.round(40 * i)}px)`,
3823
3823
  pointerEvents: "none",
@@ -3840,16 +3840,16 @@ function et({
3840
3840
  "div",
3841
3841
  {
3842
3842
  style: {
3843
- width: q,
3844
- height: U,
3843
+ width: ie,
3844
+ height: X,
3845
3845
  position: "relative",
3846
3846
  transformStyle: "preserve-3d",
3847
3847
  transform: `rotateX(${t}deg) rotateY(${p}deg) rotateZ(${o}deg)`,
3848
3848
  transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
3849
3849
  },
3850
3850
  children: [
3851
- /* @__PURE__ */ e("div", { style: fe.front, children: /* @__PURE__ */ e(
3852
- jt,
3851
+ /* @__PURE__ */ e("div", { style: ve.front, children: /* @__PURE__ */ e(
3852
+ Kt,
3853
3853
  {
3854
3854
  cfg: y,
3855
3855
  name: s,
@@ -3858,11 +3858,11 @@ function et({
3858
3858
  compact: c
3859
3859
  }
3860
3860
  ) }),
3861
- /* @__PURE__ */ e("div", { style: fe.back, children: /* @__PURE__ */ e(Qt, {}) }),
3862
- /* @__PURE__ */ e("div", { style: fe.left, children: /* @__PURE__ */ e(lt, { side: "left", color: y.color }) }),
3863
- /* @__PURE__ */ e("div", { style: fe.right, children: /* @__PURE__ */ e(lt, { side: "right", color: y.color }) }),
3864
- /* @__PURE__ */ e("div", { style: fe.top, children: /* @__PURE__ */ e(Gt, { traffic: l }) }),
3865
- /* @__PURE__ */ e("div", { style: fe.bottom, children: /* @__PURE__ */ e("div", { style: { width: q, height: be, background: "#020508" } }) })
3861
+ /* @__PURE__ */ e("div", { style: ve.back, children: /* @__PURE__ */ e(Zt, {}) }),
3862
+ /* @__PURE__ */ e("div", { style: ve.left, children: /* @__PURE__ */ e(ht, { side: "left", color: y.color }) }),
3863
+ /* @__PURE__ */ e("div", { style: ve.right, children: /* @__PURE__ */ e(ht, { side: "right", color: y.color }) }),
3864
+ /* @__PURE__ */ e("div", { style: ve.top, children: /* @__PURE__ */ e(Jt, { traffic: l }) }),
3865
+ /* @__PURE__ */ e("div", { style: ve.bottom, children: /* @__PURE__ */ e("div", { style: { width: ie, height: $e, background: "#020508" } }) })
3866
3866
  ]
3867
3867
  }
3868
3868
  )
@@ -3872,7 +3872,7 @@ function et({
3872
3872
  }
3873
3873
  );
3874
3874
  }
3875
- function ki({
3875
+ function Li({
3876
3876
  ex: t,
3877
3877
  ey: n,
3878
3878
  compactOffset: o,
@@ -3891,7 +3891,7 @@ function ki({
3891
3891
  alert: m
3892
3892
  }) {
3893
3893
  return /* @__PURE__ */ e(
3894
- k,
3894
+ A,
3895
3895
  {
3896
3896
  ex: t,
3897
3897
  ey: n,
@@ -3912,17 +3912,17 @@ function ki({
3912
3912
  graphSeries: y
3913
3913
  },
3914
3914
  alert: m,
3915
- children: /* @__PURE__ */ e(et, { status: a, traffic: p, activeRoutes: f })
3915
+ children: /* @__PURE__ */ e(ot, { status: a, traffic: p, activeRoutes: f })
3916
3916
  }
3917
3917
  );
3918
3918
  }
3919
- const K = 190, Y = 72, ge = 120, he = Ge(K, Y, ge), st = {
3919
+ const ne = 190, q = 72, ke = 120, we = Je(ne, q, ke), ut = {
3920
3920
  online: { color: "#bb55ff", glow: "rgba(187,85,255,0.50)" },
3921
3921
  warning: { color: "#ff8c00", glow: "rgba(255,140,0,0.50)" },
3922
3922
  critical: { color: "#ff2255", glow: "rgba(255,34,85,0.50)" },
3923
3923
  offline: { color: "#1e3a5a", glow: "rgba(30,58,90,0.25)" }
3924
3924
  };
3925
- function qt({
3925
+ function ei({
3926
3926
  cfg: t,
3927
3927
  name: n,
3928
3928
  queueDepth: o,
@@ -3935,9 +3935,9 @@ function qt({
3935
3935
  "div",
3936
3936
  {
3937
3937
  style: {
3938
- width: K,
3939
- height: Y,
3940
- background: a ? Se : Qe,
3938
+ width: ne,
3939
+ height: q,
3940
+ background: a ? Te : Ze,
3941
3941
  position: "relative",
3942
3942
  overflow: "hidden",
3943
3943
  fontFamily: "'Courier New', monospace",
@@ -4181,13 +4181,13 @@ function qt({
4181
4181
  }
4182
4182
  );
4183
4183
  }
4184
- function Kt() {
4184
+ function ti() {
4185
4185
  return /* @__PURE__ */ d(
4186
4186
  "div",
4187
4187
  {
4188
4188
  style: {
4189
- width: K,
4190
- height: Y,
4189
+ width: ne,
4190
+ height: q,
4191
4191
  background: "linear-gradient(180deg, #040c1a, #030810)",
4192
4192
  position: "relative",
4193
4193
  overflow: "hidden",
@@ -4202,7 +4202,7 @@ function Kt() {
4202
4202
  {
4203
4203
  style: {
4204
4204
  width: 40,
4205
- height: Y - 16,
4205
+ height: q - 16,
4206
4206
  background: "#020710",
4207
4207
  border: "1px solid #1a2d40",
4208
4208
  borderRadius: 2,
@@ -4258,7 +4258,7 @@ function Kt() {
4258
4258
  style: {
4259
4259
  marginLeft: "auto",
4260
4260
  width: 12,
4261
- height: Y - 16,
4261
+ height: q - 16,
4262
4262
  background: "#020710",
4263
4263
  border: "1px solid #1a3050",
4264
4264
  borderRadius: 1
@@ -4269,13 +4269,13 @@ function Kt() {
4269
4269
  }
4270
4270
  );
4271
4271
  }
4272
- function dt({ side: t, color: n }) {
4272
+ function bt({ side: t, color: n }) {
4273
4273
  return /* @__PURE__ */ d(
4274
4274
  "div",
4275
4275
  {
4276
4276
  style: {
4277
- width: ge,
4278
- height: Y,
4277
+ width: ke,
4278
+ height: q,
4279
4279
  background: t === "right" ? "linear-gradient(90deg, #04091a 0%, #071428 60%, #040c1c 100%)" : "linear-gradient(90deg, #040c1c 0%, #071428 40%, #04091a 100%)",
4280
4280
  position: "relative",
4281
4281
  overflow: "hidden"
@@ -4299,8 +4299,8 @@ function dt({ side: t, color: n }) {
4299
4299
  {
4300
4300
  style: {
4301
4301
  position: "absolute",
4302
- top: Y * 0.25,
4303
- bottom: Y * 0.25,
4302
+ top: q * 0.25,
4303
+ bottom: q * 0.25,
4304
4304
  left: 14,
4305
4305
  right: 14,
4306
4306
  display: "flex",
@@ -4326,14 +4326,14 @@ function dt({ side: t, color: n }) {
4326
4326
  }
4327
4327
  );
4328
4328
  }
4329
- function Zt({ queueDepth: t, color: n }) {
4330
- const o = Math.floor((ge - 14) / 7);
4329
+ function ii({ queueDepth: t, color: n }) {
4330
+ const o = Math.floor((ke - 14) / 7);
4331
4331
  return /* @__PURE__ */ d(
4332
4332
  "div",
4333
4333
  {
4334
4334
  style: {
4335
- width: K,
4336
- height: ge,
4335
+ width: ne,
4336
+ height: ke,
4337
4337
  background: "linear-gradient(180deg, #0c1c30 0%, #07101e 40%, #040c1a 100%)",
4338
4338
  position: "relative",
4339
4339
  overflow: "hidden"
@@ -4347,7 +4347,7 @@ function Zt({ queueDepth: t, color: n }) {
4347
4347
  top: 0,
4348
4348
  left: 0,
4349
4349
  right: 0,
4350
- height: ge * 0.35,
4350
+ height: ke * 0.35,
4351
4351
  background: `radial-gradient(ellipse at 50% 0%,
4352
4352
  ${t > 70 ? "rgba(255,34,85,0.14)" : `${n}15`} 0%,
4353
4353
  transparent 70%)`
@@ -4385,7 +4385,7 @@ function Zt({ queueDepth: t, color: n }) {
4385
4385
  }
4386
4386
  );
4387
4387
  }
4388
- function ht({
4388
+ function wt({
4389
4389
  rotateX: t = -20,
4390
4390
  rotateY: n = 20,
4391
4391
  rotateZ: o = 0,
@@ -4398,26 +4398,26 @@ function ht({
4398
4398
  instances: c = 3,
4399
4399
  _compact: p
4400
4400
  }) {
4401
- const [f, g] = I(n), u = ee(0), y = ee(0);
4402
- Te(() => {
4401
+ const [f, g] = R(n), u = K(0), y = K(0);
4402
+ Ae(() => {
4403
4403
  if (!r) {
4404
4404
  g(n);
4405
4405
  return;
4406
4406
  }
4407
- const x = (v) => {
4408
- y.current && g(($) => $ + (v - y.current) * 0.027), y.current = v, u.current = requestAnimationFrame(x);
4407
+ const v = (x) => {
4408
+ y.current && g((w) => w + (x - y.current) * 0.027), y.current = x, u.current = requestAnimationFrame(v);
4409
4409
  };
4410
- return u.current = requestAnimationFrame(x), () => {
4410
+ return u.current = requestAnimationFrame(v), () => {
4411
4411
  cancelAnimationFrame(u.current), y.current = 0;
4412
4412
  };
4413
4413
  }, [r, n]);
4414
- const m = st[a] ?? st.online;
4414
+ const m = ut[a] ?? ut.online;
4415
4415
  return /* @__PURE__ */ d(
4416
4416
  "div",
4417
4417
  {
4418
4418
  style: {
4419
- width: K * i,
4420
- height: Y * i,
4419
+ width: ne * i,
4420
+ height: q * i,
4421
4421
  position: "relative",
4422
4422
  display: "flex",
4423
4423
  alignItems: "center",
@@ -4477,8 +4477,8 @@ function ht({
4477
4477
  {
4478
4478
  style: {
4479
4479
  position: "absolute",
4480
- width: K * 1.3 * i,
4481
- height: Y * 2 * i,
4480
+ width: ne * 1.3 * i,
4481
+ height: q * 2 * i,
4482
4482
  background: `radial-gradient(ellipse, ${m.glow} 0%, transparent 65%)`,
4483
4483
  filter: `blur(${Math.round(40 * i)}px)`,
4484
4484
  pointerEvents: "none",
@@ -4501,16 +4501,16 @@ function ht({
4501
4501
  "div",
4502
4502
  {
4503
4503
  style: {
4504
- width: K,
4505
- height: Y,
4504
+ width: ne,
4505
+ height: q,
4506
4506
  position: "relative",
4507
4507
  transformStyle: "preserve-3d",
4508
4508
  transform: `rotateX(${t}deg) rotateY(${f}deg) rotateZ(${o}deg)`,
4509
4509
  transition: r ? "none" : "transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94)"
4510
4510
  },
4511
4511
  children: [
4512
- /* @__PURE__ */ e("div", { style: he.front, children: /* @__PURE__ */ e(
4513
- qt,
4512
+ /* @__PURE__ */ e("div", { style: we.front, children: /* @__PURE__ */ e(
4513
+ ei,
4514
4514
  {
4515
4515
  cfg: m,
4516
4516
  name: s,
@@ -4520,11 +4520,11 @@ function ht({
4520
4520
  compact: p
4521
4521
  }
4522
4522
  ) }),
4523
- /* @__PURE__ */ e("div", { style: he.back, children: /* @__PURE__ */ e(Kt, {}) }),
4524
- /* @__PURE__ */ e("div", { style: he.left, children: /* @__PURE__ */ e(dt, { side: "left", color: m.color }) }),
4525
- /* @__PURE__ */ e("div", { style: he.right, children: /* @__PURE__ */ e(dt, { side: "right", color: m.color }) }),
4526
- /* @__PURE__ */ e("div", { style: he.top, children: /* @__PURE__ */ e(Zt, { queueDepth: l, color: m.color }) }),
4527
- /* @__PURE__ */ e("div", { style: he.bottom, children: /* @__PURE__ */ e("div", { style: { width: K, height: ge, background: "#020508" } }) })
4523
+ /* @__PURE__ */ e("div", { style: we.back, children: /* @__PURE__ */ e(ti, {}) }),
4524
+ /* @__PURE__ */ e("div", { style: we.left, children: /* @__PURE__ */ e(bt, { side: "left", color: m.color }) }),
4525
+ /* @__PURE__ */ e("div", { style: we.right, children: /* @__PURE__ */ e(bt, { side: "right", color: m.color }) }),
4526
+ /* @__PURE__ */ e("div", { style: we.top, children: /* @__PURE__ */ e(ii, { queueDepth: l, color: m.color }) }),
4527
+ /* @__PURE__ */ e("div", { style: we.bottom, children: /* @__PURE__ */ e("div", { style: { width: ne, height: ke, background: "#020508" } }) })
4528
4528
  ]
4529
4529
  }
4530
4530
  )
@@ -4534,7 +4534,7 @@ function ht({
4534
4534
  }
4535
4535
  );
4536
4536
  }
4537
- function Ri({
4537
+ function Di({
4538
4538
  ex: t,
4539
4539
  ey: n,
4540
4540
  compactOffset: o,
@@ -4551,10 +4551,10 @@ function Ri({
4551
4551
  dialogMetrics: u,
4552
4552
  subComponents: y,
4553
4553
  graphSeries: m,
4554
- alert: x
4554
+ alert: v
4555
4555
  }) {
4556
4556
  return /* @__PURE__ */ e(
4557
- k,
4557
+ A,
4558
4558
  {
4559
4559
  ex: t,
4560
4560
  ey: n,
@@ -4574,9 +4574,9 @@ function Ri({
4574
4574
  subComponents: y,
4575
4575
  graphSeries: m
4576
4576
  },
4577
- alert: x,
4577
+ alert: v,
4578
4578
  children: /* @__PURE__ */ e(
4579
- ht,
4579
+ wt,
4580
4580
  {
4581
4581
  status: a,
4582
4582
  queueDepth: p,
@@ -4587,13 +4587,13 @@ function Ri({
4587
4587
  }
4588
4588
  );
4589
4589
  }
4590
- function E(t, n, o = 24) {
4590
+ function O(t, n, o = 24) {
4591
4591
  return Array.from({ length: o }, (i, r) => {
4592
4592
  const a = r / o;
4593
4593
  return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
4594
4594
  });
4595
4595
  }
4596
- function Jt({ data: t, color: n, height: o = 28 }) {
4596
+ function ni({ data: t, color: n, height: o = 28 }) {
4597
4597
  const r = o, a = Math.max(...t, 1), s = t.map((l, h) => {
4598
4598
  const c = h / (t.length - 1) * 120, p = r - l / a * (r - 4) - 2;
4599
4599
  return `${c},${p}`;
@@ -4611,7 +4611,7 @@ function Jt({ data: t, color: n, height: o = 28 }) {
4611
4611
  }
4612
4612
  ) });
4613
4613
  }
4614
- function ei({
4614
+ function oi({
4615
4615
  type: t,
4616
4616
  name: n,
4617
4617
  context: o = {},
@@ -4619,7 +4619,7 @@ function ei({
4619
4619
  animPhase: r,
4620
4620
  series: a
4621
4621
  }) {
4622
- const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ti(t, o), h = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
4622
+ const s = i === "critical" || i === "offline" ? "#ff2255" : i === "warning" ? "#ff8c00" : "#00e5ff", l = a ? a.map((p) => ({ ...p })) : ri(t, o), h = r >= 0.3 ? 0 : -280, c = r >= 0.2 ? 1 : 0;
4623
4623
  return /* @__PURE__ */ d(
4624
4624
  "div",
4625
4625
  {
@@ -4674,7 +4674,7 @@ function ei({
4674
4674
  p.unit
4675
4675
  ] })
4676
4676
  ] }),
4677
- /* @__PURE__ */ e(Jt, { data: p.data, color: p.color, height: 26 })
4677
+ /* @__PURE__ */ e(ni, { data: p.data, color: p.color, height: 26 })
4678
4678
  ]
4679
4679
  },
4680
4680
  p.id
@@ -4683,43 +4683,43 @@ function ei({
4683
4683
  }
4684
4684
  );
4685
4685
  }
4686
- function ti(t, n) {
4686
+ function ri(t, n) {
4687
4687
  if (t === "server") {
4688
4688
  const o = n.cpuLoad ?? 50, i = n.memLoad ?? 60;
4689
4689
  return [
4690
- { id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: E(o, 15) },
4691
- { id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: E(o * 0.7, 12) },
4692
- { id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: E(i, 18) },
4693
- { id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: E(i * 0.85, 14) },
4694
- { id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: E(40, 25) },
4695
- { id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: E(35, 20) },
4696
- { id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: E(30, 22) },
4697
- { id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: E(55, 20) }
4690
+ { id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: O(o, 15) },
4691
+ { id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: O(o * 0.7, 12) },
4692
+ { id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: O(i, 18) },
4693
+ { id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: O(i * 0.85, 14) },
4694
+ { id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: O(40, 25) },
4695
+ { id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: O(35, 20) },
4696
+ { id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: O(30, 22) },
4697
+ { id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: O(55, 20) }
4698
4698
  ];
4699
4699
  }
4700
4700
  if (t === "dispatcher" || t === "messageServer") {
4701
4701
  const o = n.traffic ?? n.queueDepth ?? 50;
4702
4702
  return [
4703
- { id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: E(o, 20) },
4704
- { id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: E(60, 25) },
4705
- { id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: E(45, 20) },
4706
- { id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: E(70, 30) },
4707
- { id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: E(o * 0.9, 15) }
4703
+ { id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: O(o, 20) },
4704
+ { id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: O(60, 25) },
4705
+ { id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: O(45, 20) },
4706
+ { id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: O(70, 30) },
4707
+ { id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: O(o * 0.9, 15) }
4708
4708
  ];
4709
4709
  }
4710
4710
  if (t === "database") {
4711
4711
  const o = n.capacity ?? 70;
4712
4712
  return [
4713
- { id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: E(40, 20) },
4714
- { id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: E(55, 25) },
4715
- { id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: E(35, 18) },
4716
- { id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: E(o, 15) },
4717
- { id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: E(75, 12) }
4713
+ { id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: O(40, 20) },
4714
+ { id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: O(55, 25) },
4715
+ { id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: O(35, 18) },
4716
+ { id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: O(o, 15) },
4717
+ { id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: O(75, 12) }
4718
4718
  ];
4719
4719
  }
4720
4720
  return [];
4721
4721
  }
4722
- function ut({
4722
+ function St({
4723
4723
  w: t,
4724
4724
  h: n,
4725
4725
  color: o,
@@ -4728,14 +4728,14 @@ function ut({
4728
4728
  delay: a = "0s",
4729
4729
  children: s
4730
4730
  }) {
4731
- const l = r ? w[r]?.glow ?? "rgba(0,229,255,0.4)" : "rgba(0,229,255,0.4)";
4731
+ const l = r ? P[r]?.glow ?? "rgba(0,229,255,0.4)" : "rgba(0,229,255,0.4)";
4732
4732
  return /* @__PURE__ */ d(
4733
4733
  "div",
4734
4734
  {
4735
4735
  style: {
4736
4736
  width: t,
4737
4737
  height: n,
4738
- background: Se,
4738
+ background: Te,
4739
4739
  position: "relative",
4740
4740
  overflow: "hidden",
4741
4741
  borderRadius: 2,
@@ -4769,8 +4769,8 @@ function ut({
4769
4769
  width: 4,
4770
4770
  height: 4,
4771
4771
  borderRadius: "50%",
4772
- background: w[r]?.color,
4773
- boxShadow: `0 0 6px ${w[r]?.color}`,
4772
+ background: P[r]?.color,
4773
+ boxShadow: `0 0 6px ${P[r]?.color}`,
4774
4774
  animation: "holo-led-blink 1.2s infinite"
4775
4775
  }
4776
4776
  }
@@ -4812,7 +4812,7 @@ function ut({
4812
4812
  }
4813
4813
  );
4814
4814
  }
4815
- function De({
4815
+ function ze({
4816
4816
  color: t = "#00e5ff",
4817
4817
  label: n = "CPU-0",
4818
4818
  status: o = "online",
@@ -4825,7 +4825,7 @@ function De({
4825
4825
  style: {
4826
4826
  width: 52,
4827
4827
  height: 36,
4828
- background: Se,
4828
+ background: Te,
4829
4829
  position: "relative",
4830
4830
  borderRadius: 2,
4831
4831
  border: `1px solid ${t}55`,
@@ -4896,8 +4896,8 @@ function De({
4896
4896
  width: 4,
4897
4897
  height: 4,
4898
4898
  borderRadius: "50%",
4899
- background: w[o]?.color,
4900
- boxShadow: `0 0 6px ${w[o]?.color}`,
4899
+ background: P[o]?.color,
4900
+ boxShadow: `0 0 6px ${P[o]?.color}`,
4901
4901
  animation: "holo-led-blink 1.2s infinite"
4902
4902
  }
4903
4903
  }
@@ -4923,7 +4923,7 @@ function De({
4923
4923
  )
4924
4924
  ] });
4925
4925
  }
4926
- function We({
4926
+ function Be({
4927
4927
  color: t = "#00e5ff",
4928
4928
  label: n = "HEAP-0",
4929
4929
  status: o = "online",
@@ -4994,7 +4994,7 @@ function We({
4994
4994
  width: 3,
4995
4995
  height: 3,
4996
4996
  borderRadius: "50%",
4997
- background: w[o]?.color,
4997
+ background: P[o]?.color,
4998
4998
  animation: "holo-led-blink 1.2s infinite"
4999
4999
  }
5000
5000
  }
@@ -5020,13 +5020,13 @@ function We({
5020
5020
  )
5021
5021
  ] });
5022
5022
  }
5023
- function ye({
5023
+ function Re({
5024
5024
  color: t = "#00e5ff",
5025
5025
  label: n = "DRIVE-1",
5026
5026
  status: o = "online",
5027
5027
  activity: i = !1
5028
5028
  }) {
5029
- return /* @__PURE__ */ d(ut, { w: 56, h: 22, color: t, label: n, status: o, children: [
5029
+ return /* @__PURE__ */ d(St, { w: 56, h: 22, color: t, label: n, status: o, children: [
5030
5030
  /* @__PURE__ */ e(
5031
5031
  "div",
5032
5032
  {
@@ -5059,7 +5059,7 @@ function ye({
5059
5059
  )
5060
5060
  ] });
5061
5061
  }
5062
- function bt({
5062
+ function $t({
5063
5063
  color: t = "#00e5ff",
5064
5064
  label: n = "NET",
5065
5065
  status: o = "online"
@@ -5070,7 +5070,7 @@ function bt({
5070
5070
  style: {
5071
5071
  width: 48,
5072
5072
  height: 28,
5073
- background: Se,
5073
+ background: Te,
5074
5074
  position: "relative",
5075
5075
  borderRadius: 2,
5076
5076
  border: `1px solid ${t}44`,
@@ -5123,14 +5123,14 @@ function bt({
5123
5123
  }
5124
5124
  );
5125
5125
  }
5126
- function O({
5126
+ function M({
5127
5127
  color: t = "#00e5ff",
5128
5128
  label: n = "THREAD",
5129
5129
  status: o = "online"
5130
5130
  }) {
5131
- return /* @__PURE__ */ e(ut, { w: 44, h: 28, color: t, label: n, status: o });
5131
+ return /* @__PURE__ */ e(St, { w: 44, h: 28, color: t, label: n, status: o });
5132
5132
  }
5133
- function Oe({
5133
+ function Me({
5134
5134
  color: t = "#ff8c00",
5135
5135
  label: n = "PLATTER-0",
5136
5136
  status: o = "online",
@@ -5188,7 +5188,7 @@ function Oe({
5188
5188
  width: 4,
5189
5189
  height: 4,
5190
5190
  borderRadius: "50%",
5191
- background: w[o]?.color,
5191
+ background: P[o]?.color,
5192
5192
  animation: "holo-led-blink 1.2s infinite"
5193
5193
  }
5194
5194
  }
@@ -5214,7 +5214,7 @@ function Oe({
5214
5214
  )
5215
5215
  ] });
5216
5216
  }
5217
- function B({
5217
+ function F({
5218
5218
  color: t = "#00e5ff",
5219
5219
  label: n = "PORT-1",
5220
5220
  status: o = "online"
@@ -5243,7 +5243,7 @@ function B({
5243
5243
  width: 4,
5244
5244
  height: 4,
5245
5245
  borderRadius: "50%",
5246
- background: o && o !== "online" ? w[o]?.color ?? t : t,
5246
+ background: o && o !== "online" ? P[o]?.color ?? t : t,
5247
5247
  boxShadow: `0 0 4px ${t}`,
5248
5248
  animation: o && o !== "online" && o !== "offline" ? "holo-led-blink 1s infinite" : "none"
5249
5249
  }
@@ -5284,7 +5284,7 @@ function B({
5284
5284
  }
5285
5285
  );
5286
5286
  }
5287
- function ii(t, n, o, i) {
5287
+ function ai(t, n, o, i) {
5288
5288
  const r = o === "online" ? "online" : o;
5289
5289
  return t === "server" ? [
5290
5290
  {
@@ -5388,8 +5388,8 @@ function ii(t, n, o, i) {
5388
5388
  }
5389
5389
  ] : [];
5390
5390
  }
5391
- const A = "cubic-bezier(0.34, 1.56, 0.64, 1)", ni = "cubic-bezier(0.16, 1, 0.3, 1)";
5392
- function oi({ items: t, revealPhase: n }) {
5391
+ const D = "cubic-bezier(0.34, 1.56, 0.64, 1)", li = "cubic-bezier(0.16, 1, 0.3, 1)";
5392
+ function si({ items: t, revealPhase: n }) {
5393
5393
  return /* @__PURE__ */ e(
5394
5394
  "div",
5395
5395
  {
@@ -5407,7 +5407,7 @@ function oi({ items: t, revealPhase: n }) {
5407
5407
  style: {
5408
5408
  opacity: n >= 0.2 + i * 0.06 ? 1 : 0,
5409
5409
  transform: `scale(${n >= 0.2 + i * 0.06 ? 1 : 0.6})`,
5410
- transition: `opacity 0.4s ${A} ${i * 0.06}s, transform 0.45s ${A} ${i * 0.06}s`
5410
+ transition: `opacity 0.4s ${D} ${i * 0.06}s, transform 0.45s ${D} ${i * 0.06}s`
5411
5411
  },
5412
5412
  children: o.element
5413
5413
  },
@@ -5416,21 +5416,21 @@ function oi({ items: t, revealPhase: n }) {
5416
5416
  }
5417
5417
  );
5418
5418
  }
5419
- function ri({
5419
+ function di({
5420
5420
  type: t,
5421
5421
  status: n,
5422
5422
  context: o,
5423
5423
  internal: i,
5424
5424
  revealPhase: r
5425
5425
  }) {
5426
- const a = w[n]?.color ?? w.online.color, s = "#ff8c00";
5426
+ const a = P[n]?.color ?? P.online.color, s = "#ff8c00";
5427
5427
  if (t === "server") {
5428
5428
  const l = o.cpuLoad ?? 50, h = o.memLoad ?? 60, c = [
5429
5429
  {
5430
5430
  key: "cpu0",
5431
5431
  delay: 0,
5432
5432
  el: /* @__PURE__ */ e(
5433
- De,
5433
+ ze,
5434
5434
  {
5435
5435
  color: a,
5436
5436
  label: "CPU-0",
@@ -5444,7 +5444,7 @@ function ri({
5444
5444
  key: "cpu1",
5445
5445
  delay: 1,
5446
5446
  el: /* @__PURE__ */ e(
5447
- De,
5447
+ ze,
5448
5448
  {
5449
5449
  color: a,
5450
5450
  label: "CPU-1",
@@ -5458,7 +5458,7 @@ function ri({
5458
5458
  key: "heap0",
5459
5459
  delay: 2,
5460
5460
  el: /* @__PURE__ */ e(
5461
- We,
5461
+ Be,
5462
5462
  {
5463
5463
  color: "#8855ee",
5464
5464
  label: "HEAP-0",
@@ -5472,7 +5472,7 @@ function ri({
5472
5472
  key: "heap1",
5473
5473
  delay: 3,
5474
5474
  el: /* @__PURE__ */ e(
5475
- We,
5475
+ Be,
5476
5476
  {
5477
5477
  color: "#8855ee",
5478
5478
  label: "HEAP-1",
@@ -5485,13 +5485,13 @@ function ri({
5485
5485
  {
5486
5486
  key: "d1",
5487
5487
  delay: 4,
5488
- el: /* @__PURE__ */ e(ye, { color: a, label: "DRIVE-1", status: i[4]?.status, activity: !0 })
5488
+ el: /* @__PURE__ */ e(Re, { color: a, label: "DRIVE-1", status: i[4]?.status, activity: !0 })
5489
5489
  },
5490
5490
  {
5491
5491
  key: "d2",
5492
5492
  delay: 5,
5493
5493
  el: /* @__PURE__ */ e(
5494
- ye,
5494
+ Re,
5495
5495
  {
5496
5496
  color: a,
5497
5497
  label: "DRIVE-2",
@@ -5504,7 +5504,7 @@ function ri({
5504
5504
  key: "d3",
5505
5505
  delay: 6,
5506
5506
  el: /* @__PURE__ */ e(
5507
- ye,
5507
+ Re,
5508
5508
  {
5509
5509
  color: a,
5510
5510
  label: "DRIVE-3",
@@ -5516,12 +5516,12 @@ function ri({
5516
5516
  {
5517
5517
  key: "thread",
5518
5518
  delay: 7,
5519
- el: /* @__PURE__ */ e(O, { color: a, label: "THREAD-POOL", status: i[7]?.status })
5519
+ el: /* @__PURE__ */ e(M, { color: a, label: "THREAD-POOL", status: i[7]?.status })
5520
5520
  },
5521
5521
  {
5522
5522
  key: "net",
5523
5523
  delay: 8,
5524
- el: /* @__PURE__ */ e(bt, { color: a, label: "NET", status: i[8]?.status })
5524
+ el: /* @__PURE__ */ e($t, { color: a, label: "NET", status: i[8]?.status })
5525
5525
  }
5526
5526
  ];
5527
5527
  return /* @__PURE__ */ e(
@@ -5541,7 +5541,7 @@ function ri({
5541
5541
  style: {
5542
5542
  opacity: r >= 0.2 + f * 0.08 ? 1 : 0,
5543
5543
  transform: `scale(${r >= 0.2 + f * 0.08 ? 1 : 0.6})`,
5544
- transition: `opacity 0.4s ${A} ${f * 0.06}s, transform 0.45s ${A} ${f * 0.06}s`
5544
+ transition: `opacity 0.4s ${D} ${f * 0.06}s, transform 0.45s ${D} ${f * 0.06}s`
5545
5545
  },
5546
5546
  children: g
5547
5547
  },
@@ -5559,9 +5559,9 @@ function ri({
5559
5559
  style: {
5560
5560
  opacity: r >= 0.25 + c * 0.04 ? 1 : 0,
5561
5561
  transform: `scale(${r >= 0.25 + c * 0.04 ? 1 : 0.5})`,
5562
- transition: `opacity 0.35s ${A} ${c * 0.04}s, transform 0.4s ${A} ${c * 0.04}s`
5562
+ transition: `opacity 0.35s ${D} ${c * 0.04}s, transform 0.4s ${D} ${c * 0.04}s`
5563
5563
  },
5564
- children: /* @__PURE__ */ e(B, { color: a, label: `PORT-${c + 1}`, status: p?.status })
5564
+ children: /* @__PURE__ */ e(F, { color: a, label: `PORT-${c + 1}`, status: p?.status })
5565
5565
  },
5566
5566
  `p${c}`
5567
5567
  );
@@ -5585,9 +5585,9 @@ function ri({
5585
5585
  style: {
5586
5586
  opacity: r >= 0.7 ? 1 : 0,
5587
5587
  transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
5588
- transition: `all 0.4s ${A} 0.3s`
5588
+ transition: `all 0.4s ${D} 0.3s`
5589
5589
  },
5590
- children: /* @__PURE__ */ e(O, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
5590
+ children: /* @__PURE__ */ e(M, { color: a, label: "HTTP-WORKER", status: i[8]?.status })
5591
5591
  }
5592
5592
  ),
5593
5593
  /* @__PURE__ */ e(
@@ -5596,9 +5596,9 @@ function ri({
5596
5596
  style: {
5597
5597
  opacity: r >= 0.8 ? 1 : 0,
5598
5598
  transform: `scale(${r >= 0.8 ? 1 : 0.6})`,
5599
- transition: `all 0.4s ${A} 0.4s`
5599
+ transition: `all 0.4s ${D} 0.4s`
5600
5600
  },
5601
- children: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
5601
+ children: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "HTTPS-WORKER", status: i[9]?.status })
5602
5602
  }
5603
5603
  )
5604
5604
  ] })
@@ -5625,9 +5625,9 @@ function ri({
5625
5625
  style: {
5626
5626
  opacity: r >= 0.25 + l * 0.1 ? 1 : 0,
5627
5627
  transform: `scale(${r >= 0.25 + l * 0.1 ? 1 : 0.6})`,
5628
- transition: `all 0.4s ${A} ${l * 0.08}s`
5628
+ transition: `all 0.4s ${D} ${l * 0.08}s`
5629
5629
  },
5630
- children: /* @__PURE__ */ e(B, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
5630
+ children: /* @__PURE__ */ e(F, { color: "#bb55ff", label: `INST-${l}`, status: i[l]?.status })
5631
5631
  },
5632
5632
  l
5633
5633
  )),
@@ -5637,9 +5637,9 @@ function ri({
5637
5637
  style: {
5638
5638
  opacity: r >= 0.6 ? 1 : 0,
5639
5639
  transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
5640
- transition: `all 0.4s ${A} 0.25s`
5640
+ transition: `all 0.4s ${D} 0.25s`
5641
5641
  },
5642
- children: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
5642
+ children: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "QUEUE-0", status: i[3]?.status })
5643
5643
  }
5644
5644
  ),
5645
5645
  [4, 5, 6].map((l) => /* @__PURE__ */ e(
@@ -5648,10 +5648,10 @@ function ri({
5648
5648
  style: {
5649
5649
  opacity: r >= 0.7 + (l - 4) * 0.08 ? 1 : 0,
5650
5650
  transform: `scale(${r >= 0.7 ? 1 : 0.6})`,
5651
- transition: `all 0.4s ${A} ${0.35 + (l - 4) * 0.05}s`
5651
+ transition: `all 0.4s ${D} ${0.35 + (l - 4) * 0.05}s`
5652
5652
  },
5653
5653
  children: /* @__PURE__ */ e(
5654
- O,
5654
+ M,
5655
5655
  {
5656
5656
  color: "#bb55ff",
5657
5657
  label: `WORKER-${l - 3}`,
@@ -5684,10 +5684,10 @@ function ri({
5684
5684
  style: {
5685
5685
  opacity: r >= 0.2 + h * 0.12 ? 1 : 0,
5686
5686
  transform: `scale(${r >= 0.2 + h * 0.12 ? 1 : 0.5})`,
5687
- transition: `all 0.45s ${A} ${h * 0.1}s`
5687
+ transition: `all 0.45s ${D} ${h * 0.1}s`
5688
5688
  },
5689
5689
  children: /* @__PURE__ */ e(
5690
- Oe,
5690
+ Me,
5691
5691
  {
5692
5692
  color: s,
5693
5693
  label: `PLATTER-${h}`,
@@ -5704,9 +5704,9 @@ function ri({
5704
5704
  style: {
5705
5705
  opacity: r >= 0.6 ? 1 : 0,
5706
5706
  transform: `scale(${r >= 0.6 ? 1 : 0.6})`,
5707
- transition: `all 0.4s ${A} 0.3s`
5707
+ transition: `all 0.4s ${D} 0.3s`
5708
5708
  },
5709
- children: /* @__PURE__ */ e(O, { color: s, label: "CONN-POOL", status: i[3]?.status })
5709
+ children: /* @__PURE__ */ e(M, { color: s, label: "CONN-POOL", status: i[3]?.status })
5710
5710
  }
5711
5711
  ),
5712
5712
  /* @__PURE__ */ e(
@@ -5715,9 +5715,9 @@ function ri({
5715
5715
  style: {
5716
5716
  opacity: r >= 0.75 ? 1 : 0,
5717
5717
  transform: `scale(${r >= 0.75 ? 1 : 0.6})`,
5718
- transition: `all 0.4s ${A} 0.4s`
5718
+ transition: `all 0.4s ${D} 0.4s`
5719
5719
  },
5720
- children: /* @__PURE__ */ e(O, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
5720
+ children: /* @__PURE__ */ e(M, { color: "#00ff88", label: "QUERY-CACHE", status: i[4]?.status })
5721
5721
  }
5722
5722
  )
5723
5723
  ]
@@ -5726,7 +5726,7 @@ function ri({
5726
5726
  }
5727
5727
  return null;
5728
5728
  }
5729
- function Pi({
5729
+ function Ni({
5730
5730
  type: t,
5731
5731
  name: n,
5732
5732
  status: o,
@@ -5736,7 +5736,7 @@ function Pi({
5736
5736
  subComponents: s,
5737
5737
  graphSeries: l
5738
5738
  }) {
5739
- const h = ii(t, n, o, a), c = w[o]?.color ?? w.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", g = r >= 0.2 ? "50%" : "0%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
5739
+ const h = ai(t, n, o, a), c = P[o]?.color ?? P.online.color, p = r >= 0.1 ? 1 : r * 10, f = r >= 0.2 ? "-50%" : "0%", g = r >= 0.2 ? "50%" : "0%", u = r >= 0.25 ? Math.min(1, (r - 0.25) * 1.5) : 0;
5740
5740
  return /* @__PURE__ */ d(
5741
5741
  "div",
5742
5742
  {
@@ -5760,13 +5760,13 @@ function Pi({
5760
5760
  backdropFilter: "blur(10px)",
5761
5761
  WebkitBackdropFilter: "blur(10px)",
5762
5762
  opacity: p,
5763
- transition: `opacity 0.4s ${ni}`
5763
+ transition: `opacity 0.4s ${li}`
5764
5764
  },
5765
5765
  onClick: i
5766
5766
  }
5767
5767
  ),
5768
5768
  /* @__PURE__ */ e(
5769
- ei,
5769
+ oi,
5770
5770
  {
5771
5771
  type: t,
5772
5772
  name: n,
@@ -5810,7 +5810,7 @@ function Pi({
5810
5810
  borderRight: `2px solid ${c}44`,
5811
5811
  boxShadow: "4px 0 32px rgba(0,0,0,0.6)",
5812
5812
  transform: `translateX(${f})`,
5813
- transition: `transform 0.7s ${A}`
5813
+ transition: `transform 0.7s ${D}`
5814
5814
  }
5815
5815
  }
5816
5816
  ),
@@ -5825,7 +5825,7 @@ function Pi({
5825
5825
  borderLeft: `2px solid ${c}44`,
5826
5826
  boxShadow: "-4px 0 32px rgba(0,0,0,0.6)",
5827
5827
  transform: `translateX(${g})`,
5828
- transition: `transform 0.7s ${A}`
5828
+ transition: `transform 0.7s ${D}`
5829
5829
  }
5830
5830
  }
5831
5831
  )
@@ -5848,7 +5848,7 @@ function Pi({
5848
5848
  display: "flex",
5849
5849
  flexDirection: "column",
5850
5850
  opacity: u >= 0.1 ? 1 : 0,
5851
- transition: `opacity 0.5s ${A} 0.2s`
5851
+ transition: `opacity 0.5s ${D} 0.2s`
5852
5852
  },
5853
5853
  children: [
5854
5854
  /* @__PURE__ */ d(
@@ -5936,8 +5936,8 @@ function Pi({
5936
5936
  }
5937
5937
  }
5938
5938
  ),
5939
- /* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(oi, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
5940
- ri,
5939
+ /* @__PURE__ */ e("div", { style: { flex: 1, padding: "8px 0 24px" }, children: s ? /* @__PURE__ */ e(si, { items: s, revealPhase: u }) : /* @__PURE__ */ e(
5940
+ di,
5941
5941
  {
5942
5942
  type: t,
5943
5943
  name: n,
@@ -5957,7 +5957,218 @@ function Pi({
5957
5957
  }
5958
5958
  );
5959
5959
  }
5960
- function Ci({
5960
+ function ci({ onSubmit: t }) {
5961
+ const [n, o] = R(""), [i, r] = R(""), [a, s] = R(null), [l, h] = R(!1), c = n.trim().length > 0 && i.trim().length > 0;
5962
+ return /* @__PURE__ */ e("div", { className: "cred-overlay", children: /* @__PURE__ */ d("form", { className: "cred-panel", onSubmit: (f) => {
5963
+ f.preventDefault(), c && t({ accessKey: n.trim(), secretKey: i.trim() });
5964
+ }, onClick: (f) => f.stopPropagation(), children: [
5965
+ /* @__PURE__ */ e("div", { className: "cred-scanline" }),
5966
+ /* @__PURE__ */ e("span", { className: "cred-corner cred-corner--tl" }),
5967
+ /* @__PURE__ */ e("span", { className: "cred-corner cred-corner--tr" }),
5968
+ /* @__PURE__ */ e("span", { className: "cred-corner cred-corner--bl" }),
5969
+ /* @__PURE__ */ e("span", { className: "cred-corner cred-corner--br" }),
5970
+ /* @__PURE__ */ e("div", { className: "cred-icon", children: /* @__PURE__ */ d(
5971
+ "svg",
5972
+ {
5973
+ width: "32",
5974
+ height: "32",
5975
+ viewBox: "0 0 24 24",
5976
+ fill: "none",
5977
+ stroke: "#00e5ff",
5978
+ strokeWidth: "1.5",
5979
+ children: [
5980
+ /* @__PURE__ */ e("rect", { x: "5", y: "11", width: "14", height: "10", rx: "2" }),
5981
+ /* @__PURE__ */ e("path", { d: "M8 11V7a4 4 0 118 0v4" })
5982
+ ]
5983
+ }
5984
+ ) }),
5985
+ /* @__PURE__ */ e("div", { className: "cred-title", children: "DATA SOURCE ACCESS" }),
5986
+ /* @__PURE__ */ e("div", { className: "cred-subtitle", children: "AUTHENTICATION REQUIRED" }),
5987
+ /* @__PURE__ */ d("div", { className: "cred-field", children: [
5988
+ /* @__PURE__ */ e("label", { className: "cred-label", children: "ACCESS KEY" }),
5989
+ /* @__PURE__ */ e(
5990
+ "input",
5991
+ {
5992
+ className: "cred-input",
5993
+ type: "text",
5994
+ value: n,
5995
+ onChange: (f) => o(f.target.value),
5996
+ onFocus: () => s("access"),
5997
+ onBlur: () => s(null),
5998
+ placeholder: "Enter access key",
5999
+ autoFocus: !0,
6000
+ style: a === "access" ? {
6001
+ borderColor: "#00e5ff",
6002
+ boxShadow: "0 0 12px rgba(0,229,255,0.25), inset 0 0 8px rgba(0,229,255,0.06)"
6003
+ } : void 0
6004
+ }
6005
+ )
6006
+ ] }),
6007
+ /* @__PURE__ */ d("div", { className: "cred-field", children: [
6008
+ /* @__PURE__ */ e("label", { className: "cred-label", children: "SECRET KEY" }),
6009
+ /* @__PURE__ */ e(
6010
+ "input",
6011
+ {
6012
+ className: "cred-input",
6013
+ type: "password",
6014
+ value: i,
6015
+ onChange: (f) => r(f.target.value),
6016
+ onFocus: () => s("secret"),
6017
+ onBlur: () => s(null),
6018
+ placeholder: "Enter secret key",
6019
+ style: a === "secret" ? {
6020
+ borderColor: "#00e5ff",
6021
+ boxShadow: "0 0 12px rgba(0,229,255,0.25), inset 0 0 8px rgba(0,229,255,0.06)"
6022
+ } : void 0
6023
+ }
6024
+ )
6025
+ ] }),
6026
+ /* @__PURE__ */ d(
6027
+ "button",
6028
+ {
6029
+ className: "cred-btn",
6030
+ type: "submit",
6031
+ disabled: !c,
6032
+ onMouseEnter: () => h(!0),
6033
+ onMouseLeave: () => h(!1),
6034
+ style: {
6035
+ opacity: c ? 1 : 0.35,
6036
+ cursor: c ? "pointer" : "not-allowed",
6037
+ ...l && c ? {
6038
+ background: "rgba(0,229,255,0.12)",
6039
+ boxShadow: "0 0 20px rgba(0,229,255,0.3), inset 0 0 12px rgba(0,229,255,0.08)"
6040
+ } : {}
6041
+ },
6042
+ children: [
6043
+ /* @__PURE__ */ e("span", { className: "cred-btn-glow" }),
6044
+ "CONNECT"
6045
+ ]
6046
+ }
6047
+ ),
6048
+ /* @__PURE__ */ e("div", { className: "cred-footer", children: "CREDENTIALS ARE STORED IN MEMORY ONLY" })
6049
+ ] }) });
6050
+ }
6051
+ const rt = Ue(null);
6052
+ function pi() {
6053
+ const t = re(rt);
6054
+ if (!t)
6055
+ throw new Error("useAIOpsData must be used within an AIOPsDashboard with dataEndpoint configured");
6056
+ return t;
6057
+ }
6058
+ function fi() {
6059
+ return re(rt);
6060
+ }
6061
+ function Wi(t) {
6062
+ const { data: n } = pi();
6063
+ return n[t] ?? null;
6064
+ }
6065
+ function hi(t) {
6066
+ const n = /* @__PURE__ */ new Set();
6067
+ for (const o of Object.values(t))
6068
+ for (const i of Object.values(o))
6069
+ n.add(typeof i == "string" ? i : i.query);
6070
+ return Array.from(n);
6071
+ }
6072
+ function ui(t) {
6073
+ try {
6074
+ const i = t?.data?.result;
6075
+ if (Array.isArray(i) && i.length > 0) {
6076
+ const a = i[0]?.value;
6077
+ if (Array.isArray(a) && a.length === 2) {
6078
+ const s = a[1], l = Number(s);
6079
+ return isNaN(l) ? s : l;
6080
+ }
6081
+ }
6082
+ if (Array.isArray(i) && i.length === 2 && typeof i[0] == "number") {
6083
+ const r = i[1], a = Number(r);
6084
+ return isNaN(a) ? r : a;
6085
+ }
6086
+ return t;
6087
+ } catch {
6088
+ return t;
6089
+ }
6090
+ }
6091
+ function bi({ config: t, children: n }) {
6092
+ const [o, i] = R({}), [r, a] = R(null), [s, l] = R(!1), [h, c] = R(null), [p, f] = R(null), g = K(t);
6093
+ g.current = t;
6094
+ const u = K(r);
6095
+ u.current = r;
6096
+ const y = dt(async () => {
6097
+ const x = u.current, w = g.current;
6098
+ if (x) {
6099
+ l(!0);
6100
+ try {
6101
+ const b = await Promise.allSettled(
6102
+ w.queries.map((S) => {
6103
+ const N = w.endpoint.includes("?") ? "&" : "?", B = `${w.endpoint}${N}query=${encodeURIComponent(S)}`;
6104
+ return fetch(B, {
6105
+ method: "GET",
6106
+ headers: {
6107
+ "access-key": x.accessKey,
6108
+ "access-secret-key": x.secretKey
6109
+ }
6110
+ }).then((z) => {
6111
+ if (!z.ok) throw new Error(`HTTP ${z.status}`);
6112
+ return z.json();
6113
+ }).then((z) => ({ query: S, data: z }));
6114
+ })
6115
+ ), k = {};
6116
+ let T = 0;
6117
+ for (const S of b)
6118
+ S.status === "fulfilled" ? k[S.value.query] = S.value.data : T++;
6119
+ i((S) => ({ ...S, ...k }));
6120
+ const $ = w.queries.length;
6121
+ c(
6122
+ T > 0 ? `${T} of ${$} queries failed to refresh` : null
6123
+ ), T < $ && f(/* @__PURE__ */ new Date());
6124
+ } catch (b) {
6125
+ const k = b instanceof Error ? b.message : "Refresh failed";
6126
+ c(k);
6127
+ } finally {
6128
+ l(!1);
6129
+ }
6130
+ }
6131
+ }, []);
6132
+ Ae(() => {
6133
+ if (!r) return;
6134
+ y();
6135
+ const x = g.current.refreshInterval ?? 6e4, w = window.setInterval(y, x);
6136
+ return () => clearInterval(w);
6137
+ }, [r, y]);
6138
+ const m = dt((x) => {
6139
+ a(x);
6140
+ }, []), v = {
6141
+ data: o,
6142
+ isRefreshing: s,
6143
+ lastRefreshError: h,
6144
+ lastRefreshTime: p,
6145
+ credentialsSet: !!r,
6146
+ setCredentials: m
6147
+ };
6148
+ return /* @__PURE__ */ d(rt.Provider, { value: v, children: [
6149
+ n,
6150
+ !r && /* @__PURE__ */ e(ci, { onSubmit: m })
6151
+ ] });
6152
+ }
6153
+ function Mi(t) {
6154
+ const { dataEndpoint: n, dataBindings: o, dataRefreshInterval: i } = t;
6155
+ if (n && o) {
6156
+ const r = hi(o);
6157
+ return /* @__PURE__ */ e(
6158
+ bi,
6159
+ {
6160
+ config: {
6161
+ endpoint: n,
6162
+ queries: r,
6163
+ refreshInterval: i
6164
+ },
6165
+ children: /* @__PURE__ */ e(gt, { ...t })
6166
+ }
6167
+ );
6168
+ }
6169
+ return /* @__PURE__ */ e(gt, { ...t });
6170
+ }
6171
+ function gt({
5961
6172
  brandName: t = "BUSAUD AIOps",
5962
6173
  brandTag: n = "3D MONITOR",
5963
6174
  services: o = [],
@@ -5965,30 +6176,42 @@ function Ci({
5965
6176
  logoUrl: r,
5966
6177
  carouselSpeed: a = 6e-3,
5967
6178
  fontFamily: s,
5968
- children: l
6179
+ dataBindings: l,
6180
+ dataTransform: h,
6181
+ children: c
5969
6182
  }) {
5970
- const [h] = I(20), [c] = I(!1), [p] = I(!0), [f] = I(0.45), [g] = I(3.3), [u, y] = I("compact"), [m, x] = I(0), [v, $] = I(null), [b, R] = I(null), [D, C] = I(0), T = (P) => {
5971
- u === "compact" && ($(P), y("expanding"), x(0), setTimeout(() => x(1), 50), setTimeout(() => x(2), 800), setTimeout(() => x(3), 1200), setTimeout(() => x(4), 1600), setTimeout(() => x(5), 2e3), setTimeout(() => {
5972
- x(6), y("expanded");
6183
+ const p = fi(), [f] = R(20), [g] = R(!1), [u] = R(!0), [y] = R(0.45), [m] = R(3.3), [v, x] = R("compact"), [w, b] = R(0), [k, T] = R(null), [$, S] = R(null), [N, B] = R(0), z = (C) => {
6184
+ v === "compact" && (T(C), x("expanding"), b(0), setTimeout(() => b(1), 50), setTimeout(() => b(2), 800), setTimeout(() => b(3), 1200), setTimeout(() => b(4), 1600), setTimeout(() => b(5), 2e3), setTimeout(() => {
6185
+ b(6), x("expanded");
5973
6186
  }, 2400));
5974
- }, W = () => {
5975
- b ? (R(null), C(0)) : u === "expanded" && (y("collapsing"), x(0), $(null), setTimeout(() => {
5976
- y((P) => P === "collapsing" ? "compact" : P);
6187
+ }, H = () => {
6188
+ $ ? (S(null), B(0)) : v === "expanded" && (x("collapsing"), b(0), T(null), setTimeout(() => {
6189
+ x((C) => C === "collapsing" ? "compact" : C);
5977
6190
  }, 1e3));
5978
- }, X = (P) => {
5979
- R(P), C(0);
6191
+ }, ae = (C) => {
6192
+ S(C), B(0);
5980
6193
  };
5981
- J.useEffect(() => {
5982
- if (!b) return;
5983
- const P = performance.now(), Re = 1200, oe = () => {
5984
- const Ne = performance.now() - P, Ae = Math.min(1, Ne / Re);
5985
- C(Ae), Ae < 1 && requestAnimationFrame(oe);
5986
- }, se = requestAnimationFrame(oe);
5987
- return () => cancelAnimationFrame(se);
5988
- }, [b]);
5989
- const j = () => {
5990
- R(null), C(0);
5991
- }, N = o.find((P) => P.name === v), te = N?.status ?? "online", ie = N?.dbSync ?? !0, z = N?.metrics, F = N?.alerts, ne = 330, $e = 340, ke = b ? 1.15 : 1, V = b ? -(b.ex - ne) * 0.06 : 0, M = b ? -(b.ey - $e) * 0.06 : 0;
6194
+ j.useEffect(() => {
6195
+ if (!$) return;
6196
+ const C = performance.now(), ce = 1200, ee = () => {
6197
+ const Z = performance.now() - C, V = Math.min(1, Z / ce);
6198
+ B(V), V < 1 && requestAnimationFrame(ee);
6199
+ }, pe = requestAnimationFrame(ee);
6200
+ return () => cancelAnimationFrame(pe);
6201
+ }, [$]);
6202
+ const le = () => {
6203
+ S(null), B(0);
6204
+ }, I = o.find((C) => C.name === k), U = I?.status ?? "online", se = I?.dbSync ?? !0, Ie = I?.metrics, Oe = I?.alerts, Y = h ?? ui, L = p?.data, Q = yt(() => !L || !l ? c : j.Children.map(c, (C) => {
6205
+ if (!j.isValidElement(C)) return C;
6206
+ const ce = C.props.name;
6207
+ if (!ce || !l[ce]) return C;
6208
+ const ee = l[ce], pe = {};
6209
+ for (const [Z, V] of Object.entries(ee)) {
6210
+ const st = typeof V == "string" ? V : V.query, ye = typeof V == "object" && V.transform ? V.transform : Y, De = L[st];
6211
+ De !== void 0 && (pe[Z] = ye(De));
6212
+ }
6213
+ return Object.keys(pe).length > 0 ? j.cloneElement(C, pe) : C;
6214
+ }), [c, L, l, Y]), Le = p?.lastRefreshError ?? null, be = 330, ge = 340, Ye = $ ? 1.15 : 1, Ve = $ ? -($.ex - be) * 0.06 : 0, de = $ ? -($.ey - ge) * 0.06 : 0;
5992
6215
  return /* @__PURE__ */ d("div", { className: "app", style: s ? { fontFamily: s } : void 0, children: [
5993
6216
  /* @__PURE__ */ e(
5994
6217
  "div",
@@ -6003,7 +6226,7 @@ function Ci({
6003
6226
  backgroundPosition: "center center",
6004
6227
  backgroundRepeat: "no-repeat",
6005
6228
  transition: "transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1)",
6006
- transform: `translate(${V}px, ${M}px) scale(${ke})`,
6229
+ transform: `translate(${Ve}px, ${de}px) scale(${Ye})`,
6007
6230
  willChange: "transform"
6008
6231
  }
6009
6232
  }
@@ -6013,150 +6236,156 @@ function Ci({
6013
6236
  /* @__PURE__ */ e("span", { className: "brand-pulse" }),
6014
6237
  /* @__PURE__ */ e("span", { className: "brand-text", children: t })
6015
6238
  ] }),
6016
- /* @__PURE__ */ e("div", { className: "hdr-right", children: /* @__PURE__ */ e("span", { className: "hdr-tag", children: n }) })
6239
+ /* @__PURE__ */ d("div", { className: "hdr-right", children: [
6240
+ Le && /* @__PURE__ */ d("div", { className: "hdr-refresh-error", children: [
6241
+ /* @__PURE__ */ e("span", { className: "refresh-error-dot" }),
6242
+ /* @__PURE__ */ e("span", { className: "refresh-error-text", children: "DATA REFRESH FAILED" })
6243
+ ] }),
6244
+ /* @__PURE__ */ e("span", { className: "hdr-tag", children: n })
6245
+ ] })
6017
6246
  ] }),
6018
6247
  /* @__PURE__ */ e(
6019
6248
  "main",
6020
6249
  {
6021
6250
  className: "scene",
6022
6251
  style: {
6023
- cursor: u === "expanded" ? "zoom-out" : "default"
6252
+ cursor: v === "expanded" ? "zoom-out" : "default"
6024
6253
  },
6025
- onClick: W,
6254
+ onClick: H,
6026
6255
  children: /* @__PURE__ */ e(
6027
- zt,
6256
+ Ft,
6028
6257
  {
6029
- viewState: u,
6030
- animPhase: m,
6031
- selectedSystem: v,
6032
- selectedComponent: b,
6033
- drillAnimPhase: D,
6034
- rotateY: h,
6035
- autoRotateComponents: c,
6036
- componentScale: f,
6037
- drillZoom: g,
6038
- autoRotateCarousel: p,
6258
+ viewState: v,
6259
+ animPhase: w,
6260
+ selectedSystem: k,
6261
+ selectedComponent: $,
6262
+ drillAnimPhase: N,
6263
+ rotateY: f,
6264
+ autoRotateComponents: g,
6265
+ componentScale: y,
6266
+ drillZoom: m,
6267
+ autoRotateCarousel: u,
6039
6268
  carouselSpeed: a,
6040
6269
  logoUrl: r,
6041
- onSelectSystem: T,
6042
- onBackgroundClick: W,
6043
- onComponentClick: X,
6044
- onCloseDrill: j,
6045
- selectedSystemStatus: te,
6046
- selectedSystemDbSync: ie,
6047
- selectedSystemMetrics: z,
6048
- selectedSystemAlerts: F,
6049
- children: l
6270
+ onSelectSystem: z,
6271
+ onBackgroundClick: H,
6272
+ onComponentClick: ae,
6273
+ onCloseDrill: le,
6274
+ selectedSystemStatus: U,
6275
+ selectedSystemDbSync: se,
6276
+ selectedSystemMetrics: Ie,
6277
+ selectedSystemAlerts: Oe,
6278
+ children: Q
6050
6279
  }
6051
6280
  )
6052
6281
  }
6053
6282
  )
6054
6283
  ] });
6055
6284
  }
6056
- function S(t, n, o = 24) {
6285
+ function E(t, n, o = 24) {
6057
6286
  return Array.from({ length: o }, (i, r) => {
6058
6287
  const a = r / o;
6059
6288
  return Math.min(100, Math.max(0, t + Math.sin(a * Math.PI * 2) * n + (Math.random() - 0.5) * 10));
6060
6289
  });
6061
6290
  }
6062
- function gt(t) {
6291
+ function kt(t) {
6063
6292
  return t === "critical" || t === "offline" ? "#ff2255" : t === "warning" ? "#ff8c00" : "#00e5ff";
6064
6293
  }
6065
- function me(t, n, o) {
6066
- const i = t === "online" ? "online" : t, r = gt(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", h = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", c = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
6294
+ function Pe(t, n, o) {
6295
+ const i = t === "online" ? "online" : t, r = kt(t), a = o?.cpuLoad ?? 50, s = o?.memLoad ?? 60, l = i === "critical" || i === "warning" && a > 80 ? i : "online", h = i === "warning" && s > 85 ? "warning" : i === "critical" ? "critical" : "online", c = i === "critical" && n === "APP-03" ? "critical" : "online", p = i === "offline" ? "offline" : "online";
6067
6296
  return [
6068
- { id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(De, { color: r, label: "CPU-0", status: l, load: a }) },
6069
- { id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(De, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
6070
- { id: "heap-0", label: "HEAP-0", status: h, detail: h === "warning" ? "Memory heap usage" : h === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(We, { color: "#8855ee", label: "HEAP-0", status: h, usedPercent: s }) },
6071
- { id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(We, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
6072
- { id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
6073
- { id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
6074
- { id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(ye, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
6075
- { id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(O, { color: r, label: "THREAD-POOL", status: c }) },
6076
- { id: "network", label: "NET", status: p, element: /* @__PURE__ */ e(bt, { color: r, label: "NET", status: p }) }
6297
+ { id: "cpu-0", label: "CPU-0", status: l, detail: i === "critical" ? "Core overload" : i === "warning" ? "Load spike" : void 0, element: /* @__PURE__ */ e(ze, { color: r, label: "CPU-0", status: l, load: a }) },
6298
+ { id: "cpu-1", label: "CPU-1", status: "online", element: /* @__PURE__ */ e(ze, { color: r, label: "CPU-1", status: "online", load: a * 0.7 }) },
6299
+ { id: "heap-0", label: "HEAP-0", status: h, detail: h === "warning" ? "Memory heap usage" : h === "critical" ? "OOM risk" : void 0, element: /* @__PURE__ */ e(Be, { color: "#8855ee", label: "HEAP-0", status: h, usedPercent: s }) },
6300
+ { id: "heap-1", label: "HEAP-1", status: "online", element: /* @__PURE__ */ e(Be, { color: "#8855ee", label: "HEAP-1", status: "online", usedPercent: s * 0.85 }) },
6301
+ { id: "drive-1", label: "DRIVE-1", status: "online", element: /* @__PURE__ */ e(Re, { color: r, label: "DRIVE-1", status: "online", activity: !0 }) },
6302
+ { id: "drive-2", label: "DRIVE-2", status: "online", element: /* @__PURE__ */ e(Re, { color: r, label: "DRIVE-2", status: "online", activity: a > 30 }) },
6303
+ { id: "drive-3", label: "DRIVE-3", status: "online", element: /* @__PURE__ */ e(Re, { color: r, label: "DRIVE-3", status: "online", activity: a > 50 }) },
6304
+ { id: "thread-pool", label: "THREAD-POOL", status: c, detail: c === "critical" ? "Thread exhaustion" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "THREAD-POOL", status: c }) },
6305
+ { id: "network", label: "NET", status: p, element: /* @__PURE__ */ e($t, { color: r, label: "NET", status: p }) }
6077
6306
  ];
6078
6307
  }
6079
- function xe(t) {
6308
+ function Ce(t) {
6080
6309
  const n = t?.cpuLoad ?? 50, o = t?.memLoad ?? 60;
6081
6310
  return [
6082
- { id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: S(n, 15) },
6083
- { id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: S(n * 0.7, 12) },
6084
- { id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: S(o, 18) },
6085
- { id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: S(o * 0.85, 14) },
6086
- { id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: S(40, 25) },
6087
- { id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: S(35, 20) },
6088
- { id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: S(30, 22) },
6089
- { id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: S(55, 20) }
6311
+ { id: "cpu", label: "CPU-0", unit: "%", color: "#00e5ff", data: E(n, 15) },
6312
+ { id: "cpu1", label: "CPU-1", unit: "%", color: "#00e5ff", data: E(n * 0.7, 12) },
6313
+ { id: "heap0", label: "HEAP-0", unit: "%", color: "#8855ee", data: E(o, 18) },
6314
+ { id: "heap1", label: "HEAP-1", unit: "%", color: "#8855ee", data: E(o * 0.85, 14) },
6315
+ { id: "drive1", label: "DRIVE-1 I/O", unit: "%", color: "#ff8c00", data: E(40, 25) },
6316
+ { id: "drive2", label: "DRIVE-2 I/O", unit: "%", color: "#ff8c00", data: E(35, 20) },
6317
+ { id: "drive3", label: "DRIVE-3 I/O", unit: "%", color: "#ff8c00", data: E(30, 22) },
6318
+ { id: "thread", label: "THREAD-POOL", unit: "%", color: "#22aaff", data: E(55, 20) }
6090
6319
  ];
6091
6320
  }
6092
- function yt(t, n, o) {
6093
- const i = t === "online" ? "online" : t, r = gt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
6321
+ function Rt(t, n, o) {
6322
+ const i = t === "online" ? "online" : t, r = kt(t), a = i === "critical" || i === "offline" ? i : "online", s = i === "warning" ? "warning" : "online", l = i === "critical" ? "critical" : "online";
6094
6323
  return [
6095
- { id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-1", status: "online" }) },
6096
- { id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-2", status: "online" }) },
6097
- { id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(B, { color: r, label: "PORT-3", status: a }) },
6098
- { id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-4", status: "online" }) },
6099
- { id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(B, { color: r, label: "PORT-5", status: s }) },
6100
- { id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-6", status: "online" }) },
6101
- { id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-7", status: "online" }) },
6102
- { id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(B, { color: r, label: "PORT-8", status: "online" }) },
6103
- { id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(O, { color: r, label: "HTTP-WORKER", status: l }) },
6104
- { id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
6324
+ { id: "port-1", label: "PORT-1", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-1", status: "online" }) },
6325
+ { id: "port-2", label: "PORT-2", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-2", status: "online" }) },
6326
+ { id: "port-3", label: "PORT-3", status: a, detail: i === "critical" ? "Gateway timeout" : i === "offline" ? "Unreachable" : void 0, element: /* @__PURE__ */ e(F, { color: r, label: "PORT-3", status: a }) },
6327
+ { id: "port-4", label: "PORT-4", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-4", status: "online" }) },
6328
+ { id: "port-5", label: "PORT-5", status: s, detail: s === "warning" ? "Latency spike" : void 0, element: /* @__PURE__ */ e(F, { color: r, label: "PORT-5", status: s }) },
6329
+ { id: "port-6", label: "PORT-6", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-6", status: "online" }) },
6330
+ { id: "port-7", label: "PORT-7", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-7", status: "online" }) },
6331
+ { id: "port-8", label: "PORT-8", status: "online", element: /* @__PURE__ */ e(F, { color: r, label: "PORT-8", status: "online" }) },
6332
+ { id: "http-worker", label: "HTTP-WORKER", status: l, detail: l === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "HTTP-WORKER", status: l }) },
6333
+ { id: "https-worker", label: "HTTPS-WORKER", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "HTTPS-WORKER", status: "online" }) }
6105
6334
  ];
6106
6335
  }
6107
- function mt(t) {
6336
+ function Pt(t) {
6108
6337
  const n = t?.traffic ?? 50;
6109
6338
  return [
6110
- { id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
6111
- { id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: S(60, 25) },
6112
- { id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: S(45, 20) },
6113
- { id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: S(70, 30) },
6114
- { id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
6339
+ { id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: E(n, 20) },
6340
+ { id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: E(60, 25) },
6341
+ { id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: E(45, 20) },
6342
+ { id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: E(70, 30) },
6343
+ { id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: E(n * 0.9, 15) }
6115
6344
  ];
6116
6345
  }
6117
- function ai(t, n, o) {
6346
+ function gi(t, n, o) {
6118
6347
  const i = t === "online" ? "online" : t, r = i === "critical" ? "critical" : "online", a = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", s = i === "critical" ? "critical" : "online";
6119
6348
  return [
6120
- { id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-0", status: "online" }) },
6121
- { id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-1", status: "online" }) },
6122
- { id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(B, { color: "#bb55ff", label: "INST-2", status: r }) },
6123
- { id: "queue-0", label: "QUEUE-0", status: a, detail: i === "critical" ? "Queue full" : i === "offline" ? "Unreachable" : i === "warning" ? "Queue depth warning" : void 0, element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
6124
- { id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
6125
- { id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
6126
- { id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(O, { color: "#bb55ff", label: "WORKER-3", status: s }) }
6349
+ { id: "inst-0", label: "INST-0", status: "online", element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "INST-0", status: "online" }) },
6350
+ { id: "inst-1", label: "INST-1", status: "online", element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "INST-1", status: "online" }) },
6351
+ { id: "inst-2", label: "INST-2", status: r, detail: r === "critical" ? "Instance unreachable" : void 0, element: /* @__PURE__ */ e(F, { color: "#bb55ff", label: "INST-2", status: r }) },
6352
+ { id: "queue-0", label: "QUEUE-0", status: a, detail: i === "critical" ? "Queue full" : i === "offline" ? "Unreachable" : i === "warning" ? "Queue depth warning" : void 0, element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "QUEUE-0", status: a }) },
6353
+ { id: "worker-1", label: "WORKER-1", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-1", status: "online" }) },
6354
+ { id: "worker-2", label: "WORKER-2", status: "online", element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-2", status: "online" }) },
6355
+ { id: "worker-3", label: "WORKER-3", status: s, detail: s === "critical" ? "Worker timeout" : void 0, element: /* @__PURE__ */ e(M, { color: "#bb55ff", label: "WORKER-3", status: s }) }
6127
6356
  ];
6128
6357
  }
6129
- function li(t) {
6358
+ function yi(t) {
6130
6359
  const n = t?.queueDepth ?? 50;
6131
6360
  return [
6132
- { id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: S(n, 20) },
6133
- { id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: S(60, 25) },
6134
- { id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: S(45, 20) },
6135
- { id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: S(70, 30) },
6136
- { id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: S(n * 0.9, 15) }
6361
+ { id: "traffic", label: "TRAFFIC", unit: "%", color: "#00e5ff", data: E(n, 20) },
6362
+ { id: "port1", label: "PORT-1", unit: "kbps", color: "#22aaff", data: E(60, 25) },
6363
+ { id: "port2", label: "PORT-2", unit: "kbps", color: "#22aaff", data: E(45, 20) },
6364
+ { id: "port3", label: "PORT-3", unit: "kbps", color: "#22aaff", data: E(70, 30) },
6365
+ { id: "worker", label: "WORKER", unit: "%", color: "#bb55ff", data: E(n * 0.9, 15) }
6137
6366
  ];
6138
6367
  }
6139
- function ze(t, n, o) {
6368
+ function Fe(t, n, o) {
6140
6369
  const i = t === "online" ? "online" : t, r = "#ff8c00", a = o?.capacity ?? 72, s = i === "critical" || i === "offline" ? i : i === "warning" ? "warning" : "online", l = i === "warning" && n === "DB-STB" ? "warning" : "online", h = i === "critical" ? "critical" : "online", c = i === "warning" ? "warning" : "online";
6141
6370
  return [
6142
- { id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
6143
- { id: "platter-1", label: "PLATTER-1", status: s, detail: i === "critical" ? "I/O failure" : i === "offline" ? "Connection lost" : i === "warning" ? "Slow queries" : void 0, element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-1", status: s, capacityPercent: a }) },
6144
- { id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(Oe, { color: r, label: "PLATTER-2", status: l, capacityPercent: a }) },
6145
- { id: "conn-pool", label: "CONN-POOL", status: h, detail: h === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(O, { color: r, label: "CONN-POOL", status: h }) },
6146
- { id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(O, { color: "#00ff88", label: "QUERY-CACHE", status: c }) }
6371
+ { id: "platter-0", label: "PLATTER-0", status: "online", element: /* @__PURE__ */ e(Me, { color: r, label: "PLATTER-0", status: "online", capacityPercent: a }) },
6372
+ { id: "platter-1", label: "PLATTER-1", status: s, detail: i === "critical" ? "I/O failure" : i === "offline" ? "Connection lost" : i === "warning" ? "Slow queries" : void 0, element: /* @__PURE__ */ e(Me, { color: r, label: "PLATTER-1", status: s, capacityPercent: a }) },
6373
+ { id: "platter-2", label: "PLATTER-2", status: l, detail: l === "warning" ? "Replication lag" : void 0, element: /* @__PURE__ */ e(Me, { color: r, label: "PLATTER-2", status: l, capacityPercent: a }) },
6374
+ { id: "conn-pool", label: "CONN-POOL", status: h, detail: h === "critical" ? "Pool exhausted" : void 0, element: /* @__PURE__ */ e(M, { color: r, label: "CONN-POOL", status: h }) },
6375
+ { id: "query-cache", label: "QUERY-CACHE", status: c, detail: c === "warning" ? "Cache miss rate" : void 0, element: /* @__PURE__ */ e(M, { color: "#00ff88", label: "QUERY-CACHE", status: c }) }
6147
6376
  ];
6148
6377
  }
6149
- function Me(t) {
6378
+ function He(t) {
6150
6379
  const n = t?.capacity ?? 70;
6151
6380
  return [
6152
- { id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: S(40, 20) },
6153
- { id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: S(55, 25) },
6154
- { id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: S(35, 18) },
6155
- { id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: S(n, 15) },
6156
- { id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: S(75, 12) }
6381
+ { id: "platter0", label: "PLATTER-0 I/O", unit: "%", color: "#ff8c00", data: E(40, 20) },
6382
+ { id: "platter1", label: "PLATTER-1 I/O", unit: "%", color: "#ff8c00", data: E(55, 25) },
6383
+ { id: "platter2", label: "PLATTER-2 I/O", unit: "%", color: "#ff8c00", data: E(35, 18) },
6384
+ { id: "connpool", label: "CONN-POOL", unit: "%", color: "#00e5ff", data: E(n, 15) },
6385
+ { id: "cache", label: "QUERY-CACHE", unit: "%", color: "#00ff88", data: E(75, 12) }
6157
6386
  ];
6158
6387
  }
6159
- function tt(t) {
6388
+ function at(t) {
6160
6389
  const n = [
6161
6390
  t.wdStatus,
6162
6391
  t.msStatus,
@@ -6168,8 +6397,8 @@ function tt(t) {
6168
6397
  ];
6169
6398
  return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
6170
6399
  }
6171
- function Ei(t) {
6172
- const n = tt(t), o = n === "critical" || n === "offline", i = n === "warning";
6400
+ function zi(t) {
6401
+ const n = at(t), o = n === "critical" || n === "offline", i = n === "warning";
6173
6402
  return [
6174
6403
  {
6175
6404
  label: "Uptime",
@@ -6190,8 +6419,8 @@ function Ei(t) {
6190
6419
  }
6191
6420
  ];
6192
6421
  }
6193
- function Ti(t) {
6194
- const n = tt(t), o = n === "critical" || n === "offline", i = n === "warning";
6422
+ function Bi(t) {
6423
+ const n = at(t), o = n === "critical" || n === "offline", i = n === "warning";
6195
6424
  return [
6196
6425
  ...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
6197
6426
  ...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
@@ -6199,7 +6428,7 @@ function Ti(t) {
6199
6428
  ...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
6200
6429
  ];
6201
6430
  }
6202
- const si = [
6431
+ const mi = [
6203
6432
  { from: [330, 120], to: [220, 260], visibleAtPhase: 3 },
6204
6433
  { from: [330, 120], to: [440, 260], visibleAtPhase: 3 },
6205
6434
  { from: [220, 260], to: [165, 390], visibleAtPhase: 4 },
@@ -6212,11 +6441,11 @@ const si = [
6212
6441
  { from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
6213
6442
  { from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
6214
6443
  ];
6215
- function di({ config: t }) {
6216
- const n = J.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: h, pdbStatus: c, sdbStatus: p, dbSync: f } = t;
6217
- return /* @__PURE__ */ d(ve, { children: [
6444
+ function xi({ config: t }) {
6445
+ const n = j.useContext(ue), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { wdStatus: r, msStatus: a, srv1Status: s, srv2Status: l, srv3Status: h, pdbStatus: c, sdbStatus: p, dbSync: f } = t;
6446
+ return /* @__PURE__ */ d(Ee, { children: [
6218
6447
  /* @__PURE__ */ e(
6219
- k,
6448
+ A,
6220
6449
  {
6221
6450
  ex: 330,
6222
6451
  ey: 120,
@@ -6224,11 +6453,11 @@ function di({ config: t }) {
6224
6453
  zIndex: 10,
6225
6454
  visibleAtPhase: 2,
6226
6455
  color: "#00e5ff",
6227
- children: /* @__PURE__ */ e(Je, { status: "online", scale: 1.5 })
6456
+ children: /* @__PURE__ */ e(nt, { status: "online", scale: 1.5 })
6228
6457
  }
6229
6458
  ),
6230
6459
  /* @__PURE__ */ e(
6231
- k,
6460
+ A,
6232
6461
  {
6233
6462
  ex: 220,
6234
6463
  ey: 260,
@@ -6243,11 +6472,11 @@ function di({ config: t }) {
6243
6472
  name: "WEB-DISP",
6244
6473
  status: r,
6245
6474
  context: { traffic: 78 },
6246
- subComponents: yt(r),
6247
- graphSeries: mt({ traffic: 78 })
6475
+ subComponents: Rt(r),
6476
+ graphSeries: Pt({ traffic: 78 })
6248
6477
  },
6249
6478
  children: /* @__PURE__ */ e(
6250
- et,
6479
+ ot,
6251
6480
  {
6252
6481
  rotateY: o,
6253
6482
  autoRotate: i,
@@ -6261,7 +6490,7 @@ function di({ config: t }) {
6261
6490
  }
6262
6491
  ),
6263
6492
  /* @__PURE__ */ e(
6264
- k,
6493
+ A,
6265
6494
  {
6266
6495
  ex: 440,
6267
6496
  ey: 260,
@@ -6276,11 +6505,11 @@ function di({ config: t }) {
6276
6505
  name: "MSG-SRV",
6277
6506
  status: a,
6278
6507
  context: { queueDepth: 45 },
6279
- subComponents: ai(a),
6280
- graphSeries: li({ queueDepth: 45 })
6508
+ subComponents: gi(a),
6509
+ graphSeries: yi({ queueDepth: 45 })
6281
6510
  },
6282
6511
  children: /* @__PURE__ */ e(
6283
- ht,
6512
+ wt,
6284
6513
  {
6285
6514
  rotateY: -o,
6286
6515
  autoRotate: i,
@@ -6295,7 +6524,7 @@ function di({ config: t }) {
6295
6524
  }
6296
6525
  ),
6297
6526
  /* @__PURE__ */ e(
6298
- k,
6527
+ A,
6299
6528
  {
6300
6529
  ex: 165,
6301
6530
  ey: 390,
@@ -6310,11 +6539,11 @@ function di({ config: t }) {
6310
6539
  name: "APP-01",
6311
6540
  status: s,
6312
6541
  context: { cpuLoad: 67, memLoad: 72 },
6313
- subComponents: me(s, "APP-01", { cpuLoad: 67, memLoad: 72 }),
6314
- graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
6542
+ subComponents: Pe(s, "APP-01", { cpuLoad: 67, memLoad: 72 }),
6543
+ graphSeries: Ce({ cpuLoad: 67, memLoad: 72 })
6315
6544
  },
6316
6545
  children: /* @__PURE__ */ e(
6317
- ae,
6546
+ he,
6318
6547
  {
6319
6548
  rotateY: o,
6320
6549
  autoRotate: i,
@@ -6328,7 +6557,7 @@ function di({ config: t }) {
6328
6557
  }
6329
6558
  ),
6330
6559
  /* @__PURE__ */ e(
6331
- k,
6560
+ A,
6332
6561
  {
6333
6562
  ex: 330,
6334
6563
  ey: 390,
@@ -6343,11 +6572,11 @@ function di({ config: t }) {
6343
6572
  name: "APP-02",
6344
6573
  status: l,
6345
6574
  context: { cpuLoad: 89, memLoad: 91 },
6346
- subComponents: me(l, "APP-02", { cpuLoad: 89, memLoad: 91 }),
6347
- graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
6575
+ subComponents: Pe(l, "APP-02", { cpuLoad: 89, memLoad: 91 }),
6576
+ graphSeries: Ce({ cpuLoad: 89, memLoad: 91 })
6348
6577
  },
6349
6578
  children: /* @__PURE__ */ e(
6350
- ae,
6579
+ he,
6351
6580
  {
6352
6581
  rotateY: o,
6353
6582
  autoRotate: i,
@@ -6361,7 +6590,7 @@ function di({ config: t }) {
6361
6590
  }
6362
6591
  ),
6363
6592
  /* @__PURE__ */ e(
6364
- k,
6593
+ A,
6365
6594
  {
6366
6595
  ex: 495,
6367
6596
  ey: 390,
@@ -6376,11 +6605,11 @@ function di({ config: t }) {
6376
6605
  name: "APP-03",
6377
6606
  status: h,
6378
6607
  context: { cpuLoad: 45, memLoad: 63 },
6379
- subComponents: me(h, "APP-03", { cpuLoad: 45, memLoad: 63 }),
6380
- graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
6608
+ subComponents: Pe(h, "APP-03", { cpuLoad: 45, memLoad: 63 }),
6609
+ graphSeries: Ce({ cpuLoad: 45, memLoad: 63 })
6381
6610
  },
6382
6611
  children: /* @__PURE__ */ e(
6383
- ae,
6612
+ he,
6384
6613
  {
6385
6614
  rotateY: o,
6386
6615
  autoRotate: i,
@@ -6394,7 +6623,7 @@ function di({ config: t }) {
6394
6623
  }
6395
6624
  ),
6396
6625
  /* @__PURE__ */ e(
6397
- k,
6626
+ A,
6398
6627
  {
6399
6628
  ex: 200,
6400
6629
  ey: 520,
@@ -6409,11 +6638,11 @@ function di({ config: t }) {
6409
6638
  name: "DB-PRI",
6410
6639
  status: c,
6411
6640
  context: { capacity: 72 },
6412
- subComponents: ze(c, "DB-PRI", { capacity: 72 }),
6413
- graphSeries: Me({ capacity: 72 })
6641
+ subComponents: Fe(c, "DB-PRI", { capacity: 72 }),
6642
+ graphSeries: He({ capacity: 72 })
6414
6643
  },
6415
6644
  children: /* @__PURE__ */ e(
6416
- Ee,
6645
+ Ne,
6417
6646
  {
6418
6647
  rotateY: -o,
6419
6648
  autoRotate: i,
@@ -6427,7 +6656,7 @@ function di({ config: t }) {
6427
6656
  }
6428
6657
  ),
6429
6658
  /* @__PURE__ */ e(
6430
- k,
6659
+ A,
6431
6660
  {
6432
6661
  ex: 460,
6433
6662
  ey: 520,
@@ -6442,11 +6671,11 @@ function di({ config: t }) {
6442
6671
  name: "DB-STB",
6443
6672
  status: p,
6444
6673
  context: { capacity: 72 },
6445
- subComponents: ze(p, "DB-STB", { capacity: 72 }),
6446
- graphSeries: Me({ capacity: 72 })
6674
+ subComponents: Fe(p, "DB-STB", { capacity: 72 }),
6675
+ graphSeries: He({ capacity: 72 })
6447
6676
  },
6448
6677
  children: /* @__PURE__ */ e(
6449
- Ee,
6678
+ Ne,
6450
6679
  {
6451
6680
  rotateY: o,
6452
6681
  autoRotate: i,
@@ -6460,7 +6689,7 @@ function di({ config: t }) {
6460
6689
  }
6461
6690
  ),
6462
6691
  /* @__PURE__ */ e(
6463
- k,
6692
+ A,
6464
6693
  {
6465
6694
  ex: 330,
6466
6695
  ey: 520,
@@ -6469,17 +6698,17 @@ function di({ config: t }) {
6469
6698
  visibleAtPhase: 6,
6470
6699
  fixedScale: 1,
6471
6700
  bare: !0,
6472
- children: /* @__PURE__ */ e(ft, { synced: f, latencyMs: f ? 8 : 342 })
6701
+ children: /* @__PURE__ */ e(vt, { synced: f, latencyMs: f ? 8 : 342 })
6473
6702
  }
6474
6703
  ),
6475
- /* @__PURE__ */ e(ci, { config: t })
6704
+ /* @__PURE__ */ e(vi, { config: t })
6476
6705
  ] });
6477
6706
  }
6478
- function ci({ config: t }) {
6479
- const n = J.useContext(le), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: h, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
6707
+ function vi({ config: t }) {
6708
+ const n = j.useContext(ue), { wdStatus: o, msStatus: i, srv1Status: r, srv2Status: a, srv3Status: s, pdbStatus: l, sdbStatus: h, dbSync: c } = t, p = n?.isSelected && n?.isExpandedPos;
6480
6709
  return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
6481
6710
  /* @__PURE__ */ e(
6482
- L,
6711
+ W,
6483
6712
  {
6484
6713
  ex: 220,
6485
6714
  ey: 260,
@@ -6494,7 +6723,7 @@ function ci({ config: t }) {
6494
6723
  }
6495
6724
  ),
6496
6725
  /* @__PURE__ */ e(
6497
- L,
6726
+ W,
6498
6727
  {
6499
6728
  ex: 440,
6500
6729
  ey: 260,
@@ -6509,7 +6738,7 @@ function ci({ config: t }) {
6509
6738
  }
6510
6739
  ),
6511
6740
  /* @__PURE__ */ e(
6512
- L,
6741
+ W,
6513
6742
  {
6514
6743
  ex: 165,
6515
6744
  ey: 390,
@@ -6524,7 +6753,7 @@ function ci({ config: t }) {
6524
6753
  }
6525
6754
  ),
6526
6755
  /* @__PURE__ */ e(
6527
- L,
6756
+ W,
6528
6757
  {
6529
6758
  ex: 330,
6530
6759
  ey: 390,
@@ -6539,7 +6768,7 @@ function ci({ config: t }) {
6539
6768
  }
6540
6769
  ),
6541
6770
  /* @__PURE__ */ e(
6542
- L,
6771
+ W,
6543
6772
  {
6544
6773
  ex: 495,
6545
6774
  ey: 390,
@@ -6554,7 +6783,7 @@ function ci({ config: t }) {
6554
6783
  }
6555
6784
  ),
6556
6785
  /* @__PURE__ */ e(
6557
- L,
6786
+ W,
6558
6787
  {
6559
6788
  ex: 200,
6560
6789
  ey: 520,
@@ -6569,7 +6798,7 @@ function ci({ config: t }) {
6569
6798
  }
6570
6799
  ),
6571
6800
  /* @__PURE__ */ e(
6572
- L,
6801
+ W,
6573
6802
  {
6574
6803
  ex: 460,
6575
6804
  ey: 520,
@@ -6584,7 +6813,7 @@ function ci({ config: t }) {
6584
6813
  }
6585
6814
  ),
6586
6815
  !c && /* @__PURE__ */ e(
6587
- L,
6816
+ W,
6588
6817
  {
6589
6818
  ex: 330,
6590
6819
  ey: 520,
@@ -6600,19 +6829,19 @@ function ci({ config: t }) {
6600
6829
  )
6601
6830
  ] }) : null;
6602
6831
  }
6603
- function Ai({ config: t, ...n }) {
6832
+ function Fi({ config: t, ...n }) {
6604
6833
  return /* @__PURE__ */ e(
6605
- pt,
6834
+ xt,
6606
6835
  {
6607
6836
  name: t.name,
6608
- status: tt(t),
6609
- connections: si,
6837
+ status: at(t),
6838
+ connections: mi,
6610
6839
  ...n,
6611
- children: /* @__PURE__ */ e(di, { config: t })
6840
+ children: /* @__PURE__ */ e(xi, { config: t })
6612
6841
  }
6613
6842
  );
6614
6843
  }
6615
- function it(t) {
6844
+ function lt(t) {
6616
6845
  const n = [
6617
6846
  t.dispStatus,
6618
6847
  t.srv1Status,
@@ -6623,8 +6852,8 @@ function it(t) {
6623
6852
  ];
6624
6853
  return n.includes("critical") ? "critical" : n.includes("warning") ? "warning" : n.includes("offline") ? "offline" : "online";
6625
6854
  }
6626
- function Ii(t) {
6627
- const n = it(t), o = n === "critical" || n === "offline", i = n === "warning";
6855
+ function Hi(t) {
6856
+ const n = lt(t), o = n === "critical" || n === "offline", i = n === "warning";
6628
6857
  return [
6629
6858
  {
6630
6859
  label: "Uptime",
@@ -6645,8 +6874,8 @@ function Ii(t) {
6645
6874
  }
6646
6875
  ];
6647
6876
  }
6648
- function Li(t) {
6649
- const n = it(t), o = n === "critical" || n === "offline", i = n === "warning";
6877
+ function Ui(t) {
6878
+ const n = lt(t), o = n === "critical" || n === "offline", i = n === "warning";
6650
6879
  return [
6651
6880
  ...t.dbSync ? [] : [{ level: "warning", message: "DB Replication Lag Detected" }],
6652
6881
  ...o ? [{ level: "critical", message: "Critical Component Failure" }] : [],
@@ -6654,7 +6883,7 @@ function Li(t) {
6654
6883
  ...!o && !i && t.dbSync ? [{ level: "info", message: "All Systems Nominal" }] : []
6655
6884
  ];
6656
6885
  }
6657
- const pi = [
6886
+ const wi = [
6658
6887
  { from: [330, 120], to: [330, 260], visibleAtPhase: 3 },
6659
6888
  { from: [330, 260], to: [165, 390], visibleAtPhase: 4 },
6660
6889
  { from: [330, 260], to: [330, 390], visibleAtPhase: 4 },
@@ -6663,11 +6892,11 @@ const pi = [
6663
6892
  { from: [330, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" },
6664
6893
  { from: [495, 390], to: [200, 520], visibleAtPhase: 5, color: "#ff8c00" }
6665
6894
  ];
6666
- function fi({ config: t }) {
6667
- const n = J.useContext(le), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: h, sdbStatus: c, dbSync: p } = t;
6668
- return /* @__PURE__ */ d(ve, { children: [
6895
+ function Si({ config: t }) {
6896
+ const n = j.useContext(ue), o = n?.rotateY ?? 20, i = n?.autoRotateComponents ?? !0, { dispStatus: r, srv1Status: a, srv2Status: s, srv3Status: l, pdbStatus: h, sdbStatus: c, dbSync: p } = t;
6897
+ return /* @__PURE__ */ d(Ee, { children: [
6669
6898
  /* @__PURE__ */ e(
6670
- k,
6899
+ A,
6671
6900
  {
6672
6901
  ex: 330,
6673
6902
  ey: 120,
@@ -6675,11 +6904,11 @@ function fi({ config: t }) {
6675
6904
  zIndex: 10,
6676
6905
  visibleAtPhase: 2,
6677
6906
  color: "#00e5ff",
6678
- children: /* @__PURE__ */ e(Je, { status: "online", scale: 1.5 })
6907
+ children: /* @__PURE__ */ e(nt, { status: "online", scale: 1.5 })
6679
6908
  }
6680
6909
  ),
6681
6910
  /* @__PURE__ */ e(
6682
- k,
6911
+ A,
6683
6912
  {
6684
6913
  ex: 330,
6685
6914
  ey: 260,
@@ -6694,11 +6923,11 @@ function fi({ config: t }) {
6694
6923
  name: "DISP-01",
6695
6924
  status: r,
6696
6925
  context: { traffic: 78 },
6697
- subComponents: yt(r),
6698
- graphSeries: mt({ traffic: 78 })
6926
+ subComponents: Rt(r),
6927
+ graphSeries: Pt({ traffic: 78 })
6699
6928
  },
6700
6929
  children: /* @__PURE__ */ e(
6701
- et,
6930
+ ot,
6702
6931
  {
6703
6932
  rotateY: o,
6704
6933
  autoRotate: i,
@@ -6712,7 +6941,7 @@ function fi({ config: t }) {
6712
6941
  }
6713
6942
  ),
6714
6943
  /* @__PURE__ */ e(
6715
- k,
6944
+ A,
6716
6945
  {
6717
6946
  ex: 165,
6718
6947
  ey: 390,
@@ -6727,11 +6956,11 @@ function fi({ config: t }) {
6727
6956
  name: "APP-01",
6728
6957
  status: a,
6729
6958
  context: { cpuLoad: 67, memLoad: 72 },
6730
- subComponents: me(a, "APP-01", { cpuLoad: 67, memLoad: 72 }),
6731
- graphSeries: xe({ cpuLoad: 67, memLoad: 72 })
6959
+ subComponents: Pe(a, "APP-01", { cpuLoad: 67, memLoad: 72 }),
6960
+ graphSeries: Ce({ cpuLoad: 67, memLoad: 72 })
6732
6961
  },
6733
6962
  children: /* @__PURE__ */ e(
6734
- ae,
6963
+ he,
6735
6964
  {
6736
6965
  rotateY: o,
6737
6966
  autoRotate: i,
@@ -6745,7 +6974,7 @@ function fi({ config: t }) {
6745
6974
  }
6746
6975
  ),
6747
6976
  /* @__PURE__ */ e(
6748
- k,
6977
+ A,
6749
6978
  {
6750
6979
  ex: 330,
6751
6980
  ey: 390,
@@ -6760,11 +6989,11 @@ function fi({ config: t }) {
6760
6989
  name: "APP-02",
6761
6990
  status: s,
6762
6991
  context: { cpuLoad: 89, memLoad: 91 },
6763
- subComponents: me(s, "APP-02", { cpuLoad: 89, memLoad: 91 }),
6764
- graphSeries: xe({ cpuLoad: 89, memLoad: 91 })
6992
+ subComponents: Pe(s, "APP-02", { cpuLoad: 89, memLoad: 91 }),
6993
+ graphSeries: Ce({ cpuLoad: 89, memLoad: 91 })
6765
6994
  },
6766
6995
  children: /* @__PURE__ */ e(
6767
- ae,
6996
+ he,
6768
6997
  {
6769
6998
  rotateY: o,
6770
6999
  autoRotate: i,
@@ -6778,7 +7007,7 @@ function fi({ config: t }) {
6778
7007
  }
6779
7008
  ),
6780
7009
  /* @__PURE__ */ e(
6781
- k,
7010
+ A,
6782
7011
  {
6783
7012
  ex: 495,
6784
7013
  ey: 390,
@@ -6793,11 +7022,11 @@ function fi({ config: t }) {
6793
7022
  name: "APP-03",
6794
7023
  status: l,
6795
7024
  context: { cpuLoad: 45, memLoad: 63 },
6796
- subComponents: me(l, "APP-03", { cpuLoad: 45, memLoad: 63 }),
6797
- graphSeries: xe({ cpuLoad: 45, memLoad: 63 })
7025
+ subComponents: Pe(l, "APP-03", { cpuLoad: 45, memLoad: 63 }),
7026
+ graphSeries: Ce({ cpuLoad: 45, memLoad: 63 })
6798
7027
  },
6799
7028
  children: /* @__PURE__ */ e(
6800
- ae,
7029
+ he,
6801
7030
  {
6802
7031
  rotateY: o,
6803
7032
  autoRotate: i,
@@ -6811,7 +7040,7 @@ function fi({ config: t }) {
6811
7040
  }
6812
7041
  ),
6813
7042
  /* @__PURE__ */ e(
6814
- k,
7043
+ A,
6815
7044
  {
6816
7045
  ex: 200,
6817
7046
  ey: 520,
@@ -6826,11 +7055,11 @@ function fi({ config: t }) {
6826
7055
  name: "DB-PRI",
6827
7056
  status: h,
6828
7057
  context: { capacity: 72 },
6829
- subComponents: ze(h, "DB-PRI", { capacity: 72 }),
6830
- graphSeries: Me({ capacity: 72 })
7058
+ subComponents: Fe(h, "DB-PRI", { capacity: 72 }),
7059
+ graphSeries: He({ capacity: 72 })
6831
7060
  },
6832
7061
  children: /* @__PURE__ */ e(
6833
- Ee,
7062
+ Ne,
6834
7063
  {
6835
7064
  rotateY: -o,
6836
7065
  autoRotate: i,
@@ -6844,7 +7073,7 @@ function fi({ config: t }) {
6844
7073
  }
6845
7074
  ),
6846
7075
  /* @__PURE__ */ e(
6847
- k,
7076
+ A,
6848
7077
  {
6849
7078
  ex: 460,
6850
7079
  ey: 520,
@@ -6859,11 +7088,11 @@ function fi({ config: t }) {
6859
7088
  name: "DB-STB",
6860
7089
  status: c,
6861
7090
  context: { capacity: 72 },
6862
- subComponents: ze(c, "DB-STB", { capacity: 72 }),
6863
- graphSeries: Me({ capacity: 72 })
7091
+ subComponents: Fe(c, "DB-STB", { capacity: 72 }),
7092
+ graphSeries: He({ capacity: 72 })
6864
7093
  },
6865
7094
  children: /* @__PURE__ */ e(
6866
- Ee,
7095
+ Ne,
6867
7096
  {
6868
7097
  rotateY: o,
6869
7098
  autoRotate: i,
@@ -6877,7 +7106,7 @@ function fi({ config: t }) {
6877
7106
  }
6878
7107
  ),
6879
7108
  /* @__PURE__ */ e(
6880
- k,
7109
+ A,
6881
7110
  {
6882
7111
  ex: 330,
6883
7112
  ey: 520,
@@ -6886,17 +7115,17 @@ function fi({ config: t }) {
6886
7115
  visibleAtPhase: 6,
6887
7116
  fixedScale: 1,
6888
7117
  bare: !0,
6889
- children: /* @__PURE__ */ e(ft, { synced: p, latencyMs: p ? 8 : 342 })
7118
+ children: /* @__PURE__ */ e(vt, { synced: p, latencyMs: p ? 8 : 342 })
6890
7119
  }
6891
7120
  ),
6892
- /* @__PURE__ */ e(hi, { config: t })
7121
+ /* @__PURE__ */ e($i, { config: t })
6893
7122
  ] });
6894
7123
  }
6895
- function hi({ config: t }) {
6896
- const n = J.useContext(le), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: h } = t, c = n?.isSelected && n?.isExpandedPos;
7124
+ function $i({ config: t }) {
7125
+ const n = j.useContext(ue), { dispStatus: o, srv1Status: i, srv2Status: r, srv3Status: a, pdbStatus: s, sdbStatus: l, dbSync: h } = t, c = n?.isSelected && n?.isExpandedPos;
6897
7126
  return n?.isSelected ? /* @__PURE__ */ d("div", { style: { pointerEvents: "none" }, children: [
6898
7127
  /* @__PURE__ */ e(
6899
- L,
7128
+ W,
6900
7129
  {
6901
7130
  ex: 330,
6902
7131
  ey: 260,
@@ -6911,7 +7140,7 @@ function hi({ config: t }) {
6911
7140
  }
6912
7141
  ),
6913
7142
  /* @__PURE__ */ e(
6914
- L,
7143
+ W,
6915
7144
  {
6916
7145
  ex: 165,
6917
7146
  ey: 390,
@@ -6926,7 +7155,7 @@ function hi({ config: t }) {
6926
7155
  }
6927
7156
  ),
6928
7157
  /* @__PURE__ */ e(
6929
- L,
7158
+ W,
6930
7159
  {
6931
7160
  ex: 330,
6932
7161
  ey: 390,
@@ -6941,7 +7170,7 @@ function hi({ config: t }) {
6941
7170
  }
6942
7171
  ),
6943
7172
  /* @__PURE__ */ e(
6944
- L,
7173
+ W,
6945
7174
  {
6946
7175
  ex: 495,
6947
7176
  ey: 390,
@@ -6956,7 +7185,7 @@ function hi({ config: t }) {
6956
7185
  }
6957
7186
  ),
6958
7187
  /* @__PURE__ */ e(
6959
- L,
7188
+ W,
6960
7189
  {
6961
7190
  ex: 200,
6962
7191
  ey: 520,
@@ -6971,7 +7200,7 @@ function hi({ config: t }) {
6971
7200
  }
6972
7201
  ),
6973
7202
  /* @__PURE__ */ e(
6974
- L,
7203
+ W,
6975
7204
  {
6976
7205
  ex: 460,
6977
7206
  ey: 520,
@@ -6986,7 +7215,7 @@ function hi({ config: t }) {
6986
7215
  }
6987
7216
  ),
6988
7217
  !h && /* @__PURE__ */ e(
6989
- L,
7218
+ W,
6990
7219
  {
6991
7220
  ex: 330,
6992
7221
  ey: 520,
@@ -7002,75 +7231,80 @@ function hi({ config: t }) {
7002
7231
  )
7003
7232
  ] }) : null;
7004
7233
  }
7005
- function Oi({ config: t, ...n }) {
7234
+ function Yi({ config: t, ...n }) {
7006
7235
  return /* @__PURE__ */ e(
7007
- pt,
7236
+ xt,
7008
7237
  {
7009
7238
  name: t.name,
7010
- status: it(t),
7011
- connections: pi,
7239
+ status: lt(t),
7240
+ connections: wi,
7012
7241
  ...n,
7013
- children: /* @__PURE__ */ e(fi, { config: t })
7242
+ children: /* @__PURE__ */ e(Si, { config: t })
7014
7243
  }
7015
7244
  );
7016
7245
  }
7017
7246
  export {
7018
- Ci as AIOPsDashboard,
7019
- De as CPU3D,
7020
- zt as Carousel,
7021
- qe as CarouselContext,
7022
- Ke as CarouselItemContext,
7023
- Ot as ComponentDialog,
7024
- Pi as ComponentDrillView,
7025
- Ee as Database3D,
7026
- Si as DatabaseNode,
7027
- ye as DriveBay3D,
7028
- pi as EXCHANGE_CONNECTIONS,
7029
- Oi as ExchangeService,
7030
- mi as HOLO_BLUE,
7031
- yi as HOLO_CYAN,
7032
- Qe as HOLO_GLASS,
7033
- Se as HOLO_SURFACE,
7034
- ei as HistoricalGraphPanel,
7035
- Bt as HoloBase,
7036
- Je as Human3D,
7037
- $i as HumanNode,
7038
- We as Memory3D,
7039
- ht as MessageServer3D,
7040
- Ri as MessageServerNode,
7041
- bt as NetworkBlock3D,
7042
- L as NodeCallout,
7043
- Oe as Platter3D,
7044
- B as Port3D,
7045
- Ai as SAPService,
7046
- si as SAP_CONNECTIONS,
7047
- w as STATUS_CFG,
7048
- ae as Server3D,
7049
- wi as ServerNode,
7050
- pt as Service,
7051
- le as ServiceContext,
7052
- It as ServiceDialog,
7053
- k as ServiceNode,
7054
- Mt as SvgConnection,
7055
- ft as SyncBridge,
7056
- O as ThreadPool3D,
7057
- et as WebDispatcher3D,
7058
- ki as WebDispatcherNode,
7059
- Li as computeExchangeDialogAlerts,
7060
- Ii as computeExchangeDialogMetrics,
7061
- it as computeExchangeServiceStatus,
7062
- Ti as computeSAPDialogAlerts,
7063
- Ei as computeSAPDialogMetrics,
7064
- tt as computeSAPServiceStatus,
7065
- Me as getDatabaseGraphSeries,
7066
- ze as getDatabaseSubComponents,
7067
- mt as getDispatcherGraphSeries,
7068
- yt as getDispatcherSubComponents,
7069
- li as getMessageServerGraphSeries,
7070
- ai as getMessageServerSubComponents,
7071
- xe as getServerGraphSeries,
7072
- me as getServerSubComponents,
7073
- Ge as makeFaceStyles,
7074
- xi as useCarouselContext,
7075
- vi as useCarouselItemContext
7247
+ Mi as AIOPsDashboard,
7248
+ ze as CPU3D,
7249
+ Ft as Carousel,
7250
+ et as CarouselContext,
7251
+ tt as CarouselItemContext,
7252
+ Mt as ComponentDialog,
7253
+ Ni as ComponentDrillView,
7254
+ bi as DataProvider,
7255
+ Ne as Database3D,
7256
+ Ii as DatabaseNode,
7257
+ Re as DriveBay3D,
7258
+ wi as EXCHANGE_CONNECTIONS,
7259
+ Yi as ExchangeService,
7260
+ Ci as HOLO_BLUE,
7261
+ Pi as HOLO_CYAN,
7262
+ Ze as HOLO_GLASS,
7263
+ Te as HOLO_SURFACE,
7264
+ oi as HistoricalGraphPanel,
7265
+ Yt as HoloBase,
7266
+ nt as Human3D,
7267
+ Oi as HumanNode,
7268
+ Be as Memory3D,
7269
+ wt as MessageServer3D,
7270
+ Di as MessageServerNode,
7271
+ $t as NetworkBlock3D,
7272
+ W as NodeCallout,
7273
+ Me as Platter3D,
7274
+ F as Port3D,
7275
+ Fi as SAPService,
7276
+ mi as SAP_CONNECTIONS,
7277
+ P as STATUS_CFG,
7278
+ he as Server3D,
7279
+ Ti as ServerNode,
7280
+ xt as Service,
7281
+ ue as ServiceContext,
7282
+ Nt as ServiceDialog,
7283
+ A as ServiceNode,
7284
+ Ht as SvgConnection,
7285
+ vt as SyncBridge,
7286
+ M as ThreadPool3D,
7287
+ ot as WebDispatcher3D,
7288
+ Li as WebDispatcherNode,
7289
+ Ui as computeExchangeDialogAlerts,
7290
+ Hi as computeExchangeDialogMetrics,
7291
+ lt as computeExchangeServiceStatus,
7292
+ Bi as computeSAPDialogAlerts,
7293
+ zi as computeSAPDialogMetrics,
7294
+ at as computeSAPServiceStatus,
7295
+ ui as defaultDataTransform,
7296
+ He as getDatabaseGraphSeries,
7297
+ Fe as getDatabaseSubComponents,
7298
+ Pt as getDispatcherGraphSeries,
7299
+ Rt as getDispatcherSubComponents,
7300
+ yi as getMessageServerGraphSeries,
7301
+ gi as getMessageServerSubComponents,
7302
+ Ce as getServerGraphSeries,
7303
+ Pe as getServerSubComponents,
7304
+ Je as makeFaceStyles,
7305
+ pi as useAIOpsData,
7306
+ fi as useAIOpsDataOptional,
7307
+ Ei as useCarouselContext,
7308
+ Ai as useCarouselItemContext,
7309
+ Wi as useQueryResult
7076
7310
  };