@silurus/ooxml 0.81.0 → 0.82.1

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.
Files changed (61) hide show
  1. package/README.md +4 -8
  2. package/dist/assets/render-worker-Cy-QsDge.js +10 -0
  3. package/dist/assets/{render-worker-DtU8oQZ7.js → render-worker-Dw_wQRIh.js} +1 -1
  4. package/dist/assets/{render-worker-C2ACcLes.js → render-worker-aHayzR7v.js} +4 -4
  5. package/dist/{canvas-viewer-mechanics-CqxKRGCp.js → canvas-viewer-mechanics-CS_qbr6T.js} +1 -1
  6. package/dist/chart-ex.mjs +4 -4
  7. package/dist/comment-occurrence-C34fWs_F.js +6 -0
  8. package/dist/comment-ui-runtime-C1RV_3iu.js +112 -0
  9. package/dist/comment-ui-runtime-DTGN3Vyy.js +2 -0
  10. package/dist/comment-ui-runtime-DgCZpPR0.js +171 -0
  11. package/dist/comments-Cf9W7r3M.js +241 -0
  12. package/dist/{document-pull-client-Ux4a_ax8.js → document-pull-client-B1WOjA0z.js} +2206 -2193
  13. package/dist/{docx-SEyQ4gS-.js → docx-HoZXZUPA.js} +674 -249
  14. package/dist/docx.mjs +6 -5
  15. package/dist/docx_parser_bg.wasm +0 -0
  16. package/dist/dom-interaction-boundary-C8F6HO5x.js +119 -0
  17. package/dist/highlight-rect-MaCt0om0.js +13 -0
  18. package/dist/index.mjs +3 -3
  19. package/dist/{line-distribute-BBGvvwLt.js → line-distribute-iXsUCIH-.js} +2 -2
  20. package/dist/{line-metrics-Baz31mML.js → line-metrics-B3syvDn2.js} +52 -52
  21. package/dist/math.mjs +2 -2
  22. package/dist/node.mjs +10 -10
  23. package/dist/{plot-area-frame-Dg1VIpUU.js → plot-area-frame-DHV02PJU.js} +591 -590
  24. package/dist/{pptx-5lQrMvMR.js → pptx-DEUP4Yq5.js} +537 -243
  25. package/dist/pptx.mjs +6 -6
  26. package/dist/pptx_parser_bg.wasm +0 -0
  27. package/dist/read-only-comment-decoration-DcFevX_Q.js +96 -0
  28. package/dist/read-only-comment-margin-DrUX-YrP.js +189 -0
  29. package/dist/region-map.mjs +2 -2
  30. package/dist/{render-DEHjijQD.js → render-BC8p7vZQ.js} +1 -1
  31. package/dist/{render-worker-host-B1nbV_k7.js → render-worker-host-BNnXCtAu.js} +1 -1
  32. package/dist/{render-worker-host-Bze5M6k5.js → render-worker-host-CmPBviYJ.js} +1 -1
  33. package/dist/{render-worker-host-Dg_74V64.js → render-worker-host-DhnkTyjj.js} +1 -1
  34. package/dist/{renderer-DuopJE1K.js → renderer-CYr9YTXM.js} +436 -435
  35. package/dist/{resource-measurement-DRLp4nFt.js → resource-measurement-CsW4_eYt.js} +2 -2
  36. package/dist/{session-CNVc3VJ4.js → session-Da7LEQUB.js} +3 -3
  37. package/dist/{slide-pull-client-CzutXnGc.js → slide-pull-client-Bg9DusLX.js} +413 -300
  38. package/dist/source-key-BklvnEyQ.js +42 -0
  39. package/dist/{three-d-BYiWCNlz.js → three-d-7MaVzQuZ.js} +48 -47
  40. package/dist/three-d.mjs +324 -323
  41. package/dist/types/chart-ex.d.ts +2 -2
  42. package/dist/types/docx.d.ts +183 -19
  43. package/dist/types/index.d.ts +343 -26
  44. package/dist/types/math.d.ts +1 -1
  45. package/dist/types/node.d.ts +428 -348
  46. package/dist/types/pptx.d.ts +132 -11
  47. package/dist/types/region-map.d.ts +2 -2
  48. package/dist/types/three-d.d.ts +2 -2
  49. package/dist/types/xlsx.d.ts +78 -10
  50. package/dist/units-BzZ0gAxs.js +4 -0
  51. package/dist/{worksheet-pull-client-Cxj3Ej0s.js → worksheet-pull-client-CYtwXP5D.js} +3 -3
  52. package/dist/{xlsx-Bl3TIEVu.js → xlsx-DMWeXT-c.js} +429 -218
  53. package/dist/xlsx.mjs +6 -6
  54. package/dist/xlsx_parser_bg.wasm +0 -0
  55. package/package.json +2 -1
  56. package/dist/assets/render-worker-Cx5uR77k.js +0 -10
  57. package/dist/highlight-rect-BqcZMHUE.js +0 -48
  58. /package/dist/{mathjax-DJa-Q93p.js → mathjax-DwIrafQ6.js} +0 -0
  59. /package/dist/{renderer-module-contract-0bO_5SC0.js → renderer-module-contract-DLbb7zY0.js} +0 -0
  60. /package/dist/{transfer-D0U6Uhn4.js → transfer-R6NjgBKD.js} +0 -0
  61. /package/dist/{visible-index-DbDuGMCE.js → visible-index-BFE3PWiY.js} +0 -0
package/dist/three-d.mjs CHANGED
@@ -1,7 +1,8 @@
1
- import { A as e, At as t, B as n, Bt as r, Ct as i, Dt as a, E as o, Et as s, H as c, Ht as l, It as u, J as d, Jt as f, Kt as p, Lt as m, Mt as h, Nt as g, R as _, Rt as v, St as y, Ut as b, Wt as x, Xt as S, Y as C, Yt as w, _t as T, a as E, an as D, at as O, b as k, bt as A, ct as j, ft as M, ht as N, it as P, jt as F, kt as I, mt as L, n as R, ot as ee, r as z, rn as B, st as V, t as H, v as U, vt as te, wt as W, x as G, xt as ne, yt as re } from "./plot-area-frame-Dg1VIpUU.js";
2
- import { D as K, E as q, O as ie, _ as J, a as Y, c as ae, d as X, g as oe, h as se, i as ce, k as le, m as ue, n as de, o as fe, r as pe, s as me, t as he, x as ge } from "./three-d-BYiWCNlz.js";
3
- import { t as _e } from "./renderer-module-contract-0bO_5SC0.js";
4
- function ve(e) {
1
+ import { A as e, At as t, B as n, Bt as r, Ct as i, Dt as a, E as o, Et as s, H as c, Ht as l, It as u, J as d, Jt as f, Kt as p, Lt as m, Mt as h, Nt as g, R as _, Rt as v, St as y, Ut as b, Wt as x, Xt as S, Y as C, Yt as w, _t as T, a as E, at as D, b as O, bt as k, ct as A, ft as j, ht as M, it as N, jt as P, kt as F, mt as I, n as L, ot as R, r as z, st as ee, t as B, v as V, vt as te, wt as ne, x as H, xt as re, yt as ie } from "./plot-area-frame-DHV02PJU.js";
2
+ import { a as U, r as W } from "./units-BzZ0gAxs.js";
3
+ import { D as G, E as K, O as ae, _ as q, a as J, c as oe, d as Y, g as se, h as ce, i as le, k as ue, m as de, n as fe, o as pe, r as me, s as he, t as ge, x as _e } from "./three-d-7MaVzQuZ.js";
4
+ import { t as ve } from "./renderer-module-contract-DLbb7zY0.js";
5
+ function ye(e) {
5
6
  switch (e) {
6
7
  case "cylinder":
7
8
  case "cone":
@@ -11,8 +12,8 @@ function ve(e) {
11
12
  default: return "box";
12
13
  }
13
14
  }
14
- var ye = (e) => Math.max(0, Math.min(1, e));
15
- function be(e, t) {
15
+ var be = (e) => Math.max(0, Math.min(1, e));
16
+ function xe(e, t) {
16
17
  if (t.length < 3) return null;
17
18
  let n = e[t[0]];
18
19
  for (let r = 1; r + 1 < t.length; r++) for (let i = r + 1; i < t.length; i++) {
@@ -37,7 +38,7 @@ function be(e, t) {
37
38
  }
38
39
  return null;
39
40
  }
40
- function xe(e, t) {
41
+ function Se(e, t) {
41
42
  let n = e.reduce((t, n) => ({
42
43
  x: t.x + n.x / e.length,
43
44
  y: t.y + n.y / e.length,
@@ -48,7 +49,7 @@ function xe(e, t) {
48
49
  depth: 0
49
50
  });
50
51
  return t.map((t) => {
51
- let r = be(e, t.indices);
52
+ let r = xe(e, t.indices);
52
53
  if (!r) return t;
53
54
  let i = t.indices.reduce((n, r) => ({
54
55
  x: n.x + e[r].x / t.indices.length,
@@ -69,7 +70,7 @@ function xe(e, t) {
69
70
  };
70
71
  });
71
72
  }
72
- function Se(e) {
73
+ function Ce(e) {
73
74
  let { horizontal: t, crossStart: n, crossSize: r, baseCoord: i, endCoord: a, nearDepth: o, farDepth: s } = e;
74
75
  if (![
75
76
  n,
@@ -79,7 +80,7 @@ function Se(e) {
79
80
  o,
80
81
  s
81
82
  ].every(Number.isFinite) || r <= 0 || i === a || o === s) return null;
82
- let c = ve(e.shape), l = c === "cylinder" || c === "cone" || c === "coneToMax", u = c !== "box" && c !== "cylinder", d = c === "coneToMax" || c === "pyramidToMax", f = l ? Math.max(8, Math.min(64, Math.trunc(e.roundSegments ?? 32))) : 4, p = ye(e.baseScale ?? (d ? e.toMaxBaseScale ?? 1 : 1)), m = ye(e.endScale ?? (u ? d ? e.toMaxEndScale ?? 0 : 0 : 1));
83
+ let c = ye(e.shape), l = c === "cylinder" || c === "cone" || c === "coneToMax", u = c !== "box" && c !== "cylinder", d = c === "coneToMax" || c === "pyramidToMax", f = l ? Math.max(8, Math.min(64, Math.trunc(e.roundSegments ?? 32))) : 4, p = be(e.baseScale ?? (d ? e.toMaxBaseScale ?? 1 : 1)), m = be(e.endScale ?? (u ? d ? e.toMaxEndScale ?? 0 : 0 : 1));
83
84
  if (p === 0 && m === 0) return null;
84
85
  let h = n + r / 2, g = r / 2, _ = (o + s) / 2, v = Math.abs(s - o) / 2, y = [], b = (e, n) => {
85
86
  if (n === 0) {
@@ -146,11 +147,11 @@ function Se(e) {
146
147
  return {
147
148
  shape: c,
148
149
  vertices: y,
149
- faces: xe(y, w),
150
+ faces: Se(y, w),
150
151
  silhouetteEdges: T
151
152
  };
152
153
  }
153
- function Ce(e) {
154
+ function we(e) {
154
155
  let { x0: t, x1: n, lower0: r, lower1: i, upper0: a, upper1: o, nearDepth: s, farDepth: c, capStart: l, capEnd: u } = e;
155
156
  if (![
156
157
  t,
@@ -210,7 +211,7 @@ function Ce(e) {
210
211
  return {
211
212
  shape: "areaStrip",
212
213
  vertices: _,
213
- faces: xe(_, [
214
+ faces: Se(_, [
214
215
  {
215
216
  indices: [
216
217
  0,
@@ -275,17 +276,17 @@ function Ce(e) {
275
276
  silhouetteEdges: []
276
277
  };
277
278
  }
278
- function we(e) {
279
+ function Te(e) {
279
280
  let t = e.upper0 - e.lower0, n = e.upper1 - e.lower1;
280
281
  if (Number.isFinite(t) && Number.isFinite(n) && t * n < 0) {
281
282
  let r = t / (t - n), i = e.x0 + (e.x1 - e.x0) * r, a = e.lower0 + (e.lower1 - e.lower0) * r;
282
- return [Ce({
283
+ return [we({
283
284
  ...e,
284
285
  x1: i,
285
286
  lower1: a,
286
287
  upper1: a,
287
288
  capEnd: !1
288
- }), Ce({
289
+ }), we({
289
290
  ...e,
290
291
  x0: i,
291
292
  lower0: a,
@@ -293,10 +294,10 @@ function we(e) {
293
294
  capStart: !1
294
295
  })].filter((e) => e != null);
295
296
  }
296
- let r = Ce(e);
297
+ let r = we(e);
297
298
  return r ? [r] : [];
298
299
  }
299
- function Te(e) {
300
+ function Ee(e) {
300
301
  let t = e.outline;
301
302
  if (t.length < 3 || t.length > 64 || ![e.nearDepth, e.farDepth].every(Number.isFinite) || Math.abs(e.nearDepth - e.farDepth) < 1e-9 || !t.every((e) => Number.isFinite(e.x) && Number.isFinite(e.y))) return null;
302
303
  let n = Math.min(e.nearDepth, e.farDepth), r = Math.max(e.nearDepth, e.farDepth), i = t.length, a = [...t.map((e) => ({
@@ -309,7 +310,7 @@ function Te(e) {
309
310
  return {
310
311
  shape: "lineRibbon",
311
312
  vertices: a,
312
- faces: xe(a, [
313
+ faces: Se(a, [
313
314
  {
314
315
  indices: o,
315
316
  role: "side",
@@ -337,7 +338,7 @@ function Te(e) {
337
338
  silhouetteEdges: []
338
339
  };
339
340
  }
340
- function Ee(e) {
341
+ function De(e) {
341
342
  let { centerX: t, centerY: n, centerDepth: r, radius: i, modelDepth: a, thickness: o, startAngle: s, endAngle: c } = e;
342
343
  if (![
343
344
  t,
@@ -429,13 +430,13 @@ function Ee(e) {
429
430
  return {
430
431
  shape: "pieSector",
431
432
  vertices: m,
432
- faces: xe(m, v),
433
+ faces: Se(m, v),
433
434
  silhouetteEdges: h.slice(0, u ? void 0 : -1).map((e, t) => [e, g[t]])
434
435
  };
435
436
  }
436
437
  //#endregion
437
438
  //#region packages/core/src/chart/three-d-scene.ts
438
- function De(e, t) {
439
+ function Oe(e, t) {
439
440
  if (![e, t].every(Number.isFinite)) return null;
440
441
  let n = t - e;
441
442
  if (n === 0) return e >= 0 && e <= 1 ? {
@@ -448,7 +449,7 @@ function De(e, t) {
448
449
  endT: o
449
450
  } : null;
450
451
  }
451
- function Oe(e, t, n, r) {
452
+ function ke(e, t, n, r) {
452
453
  if (![
453
454
  e,
454
455
  t,
@@ -477,12 +478,12 @@ function Oe(e, t, n, r) {
477
478
  }
478
479
  return l;
479
480
  }
480
- var ke = (e) => ({
481
+ var Ae = (e) => ({
481
482
  minX: Math.min(...e.map((e) => e.x)),
482
483
  maxX: Math.max(...e.map((e) => e.x)),
483
484
  minY: Math.min(...e.map((e) => e.y)),
484
485
  maxY: Math.max(...e.map((e) => e.y))
485
- }), Ae = (e, t) => {
486
+ }), je = (e, t) => {
486
487
  let n = !1;
487
488
  for (let r = 0, i = e.length - 1; r < e.length; i = r++) {
488
489
  let a = e[r], o = e[i], s = (a.x - t.x) * (o.y - t.y) - (a.y - t.y) * (o.x - t.x), c = Math.max(1, Math.abs(a.x), Math.abs(a.y), Math.abs(o.x), Math.abs(o.y));
@@ -490,7 +491,7 @@ var ke = (e) => ({
490
491
  a.y > t.y != o.y > t.y && t.x < (o.x - a.x) * (t.y - a.y) / (o.y - a.y) + a.x && (n = !n);
491
492
  }
492
493
  return n;
493
- }, je = (e, t, n, r) => {
494
+ }, Me = (e, t, n, r) => {
494
495
  let i = {
495
496
  x: t.x - e.x,
496
497
  y: t.y - e.y
@@ -508,23 +509,23 @@ var ke = (e) => ({
508
509
  y: e.y + i.y * c
509
510
  };
510
511
  };
511
- function Me(e, t, n, r) {
512
+ function Ne(e, t, n, r) {
512
513
  let i = [], a = (e) => {
513
514
  i.length >= 12 || i.some((t) => Math.hypot(t.x - e.x, t.y - e.y) < 1e-7) || i.push(e);
514
515
  }, o = {
515
516
  x: (Math.max(n.minX, r.minX) + Math.min(n.maxX, r.maxX)) / 2,
516
517
  y: (Math.max(n.minY, r.minY) + Math.min(n.maxY, r.maxY)) / 2
517
518
  };
518
- Ae(e, o) && Ae(t, o) && a(o);
519
- for (let n of e) Ae(t, n) && a(n);
520
- for (let n of t) Ae(e, n) && a(n);
519
+ je(e, o) && je(t, o) && a(o);
520
+ for (let n of e) je(t, n) && a(n);
521
+ for (let n of t) je(e, n) && a(n);
521
522
  for (let n = 0; n < e.length && i.length < 12; n++) for (let r = 0; r < t.length && i.length < 12; r++) {
522
- let i = je(e[n], e[(n + 1) % e.length], t[r], t[(r + 1) % t.length]);
523
+ let i = Me(e[n], e[(n + 1) % e.length], t[r], t[(r + 1) % t.length]);
523
524
  i && a(i);
524
525
  }
525
526
  return i;
526
527
  }
527
- function Ne(e, t) {
528
+ function Pe(e, t) {
528
529
  let n = e.cameraDepths;
529
530
  if (!n || n.length !== e.points.length || e.points.length < 3) return e.cameraDepth;
530
531
  let r = e.cameraWeights?.length === e.points.length ? e.cameraWeights : e.points.map(() => 1), i = e.points[0];
@@ -538,17 +539,17 @@ function Ne(e, t) {
538
539
  }
539
540
  return e.cameraDepth;
540
541
  }
541
- function Pe(e) {
542
+ function Fe(e) {
542
543
  if (e.length < 2) return [...e];
543
- let t = [...e.keys()].sort((t, n) => e[t].cameraDepth - e[n].cameraDepth || t - n), n = e.map((e) => ke(e.points)), r = [...e.keys()].sort((e, t) => n[e].minX - n[t].minX || e - t), i = e.map(() => /* @__PURE__ */ new Set()), a = e.map(() => 0), o = [], s = 0;
544
+ let t = [...e.keys()].sort((t, n) => e[t].cameraDepth - e[n].cameraDepth || t - n), n = e.map((e) => Ae(e.points)), r = [...e.keys()].sort((e, t) => n[e].minX - n[t].minX || e - t), i = e.map(() => /* @__PURE__ */ new Set()), a = e.map(() => 0), o = [], s = 0;
544
545
  for (let c of r) {
545
546
  for (let e = o.length - 1; e >= 0; e--) n[o[e]].maxX < n[c].minX - 1e-9 && o.splice(e, 1);
546
547
  for (let r of o) {
547
548
  if (++s > 2e5) return t.map((t) => e[t]);
548
549
  if (n[r].maxY < n[c].minY - 1e-9 || n[c].maxY < n[r].minY - 1e-9) continue;
549
- let o = Me(e[r].points, e[c].points, n[r], n[c]), l = 0;
550
+ let o = Ne(e[r].points, e[c].points, n[r], n[c]), l = 0;
550
551
  for (let t of o) {
551
- let n = Ne(e[r], t) - Ne(e[c], t), i = 1e-8 * Math.max(1, Math.abs(e[r].cameraDepth), Math.abs(e[c].cameraDepth));
552
+ let n = Pe(e[r], t) - Pe(e[c], t), i = 1e-8 * Math.max(1, Math.abs(e[r].cameraDepth), Math.abs(e[c].cameraDepth));
552
553
  if (Math.abs(n) <= i) continue;
553
554
  let a = n < 0 ? -1 : 1;
554
555
  if (l !== 0 && l !== a) {
@@ -574,29 +575,29 @@ function Pe(e) {
574
575
  }
575
576
  //#endregion
576
577
  //#region packages/core/src/chart/three-d-stroke.ts
577
- var Z = 1e-9, Fe = 1e4, Ie = (e, t, n) => ({
578
+ var X = 1e-9, Ie = 1e4, Le = (e, t, n) => ({
578
579
  x: e.x + (t.x - e.x) * n,
579
580
  y: e.y + (t.y - e.y) * n,
580
581
  cameraDepth: e.cameraDepth + (t.cameraDepth - e.cameraDepth) * n,
581
582
  cameraWeight: (e.cameraWeight ?? 1) + ((t.cameraWeight ?? 1) - (e.cameraWeight ?? 1)) * n
582
- }), Le = (e, t) => Math.hypot(e.x - t.x, e.y - t.y) <= Z;
583
- function Re(e, t, n = 0) {
584
- let r = t.filter((e) => Number.isFinite(e) && e > Z);
583
+ }), Re = (e, t) => Math.hypot(e.x - t.x, e.y - t.y) <= X;
584
+ function ze(e, t, n = 0) {
585
+ let r = t.filter((e) => Number.isFinite(e) && e > X);
585
586
  if (r.length === 0) return e.length >= 2 ? [[...e]] : [];
586
587
  r.length % 2 == 1 && r.push(...r);
587
- let i = [], a = 0, o = r[0], s = !0, c = r.reduce((e, t) => e + t, 0), l = c > Z && Number.isFinite(n) ? (n % c + c) % c : 0;
588
- for (; l > Z;) {
588
+ let i = [], a = 0, o = r[0], s = !0, c = r.reduce((e, t) => e + t, 0), l = c > X && Number.isFinite(n) ? (n % c + c) % c : 0;
589
+ for (; l > X;) {
589
590
  let e = Math.min(l, o);
590
- l -= e, o -= e, o <= Z && (a = (a + 1) % r.length, o = r[a], s = a % 2 == 0);
591
+ l -= e, o -= e, o <= X && (a = (a + 1) % r.length, o = r[a], s = a % 2 == 0);
591
592
  }
592
593
  let u = null;
593
594
  for (let t = 0; t + 1 < e.length; t++) {
594
595
  let n = e[t], c = e[t + 1], l = Math.hypot(c.x - n.x, c.y - n.y);
595
- if (!(l > Z)) continue;
596
+ if (!(l > X)) continue;
596
597
  let d = 0;
597
- for (; d < l - Z;) {
598
- let e = Math.min(o, l - d), t = Ie(n, c, d / l), f = Ie(n, c, (d + e) / l);
599
- if (s && (u ??= [], (u.length === 0 || !Le(u.at(-1), t)) && u.push(t), u.push(f)), d += e, o -= e, o <= Z) {
598
+ for (; d < l - X;) {
599
+ let e = Math.min(o, l - d), t = Le(n, c, d / l), f = Le(n, c, (d + e) / l);
600
+ if (s && (u ??= [], (u.length === 0 || !Re(u.at(-1), t)) && u.push(t), u.push(f)), d += e, o -= e, o <= X) {
600
601
  if (s && u && u.length >= 2) {
601
602
  if (i.length >= 1e4) return null;
602
603
  i.push(u);
@@ -609,13 +610,13 @@ function Re(e, t, n = 0) {
609
610
  if (i.length >= 1e4) return null;
610
611
  i.push(u);
611
612
  }
612
- if (i.length > 1 && Le(e[0], e.at(-1)) && Le(i[0][0], e[0]) && Le(i.at(-1).at(-1), e.at(-1))) {
613
+ if (i.length > 1 && Re(e[0], e.at(-1)) && Re(i[0][0], e[0]) && Re(i.at(-1).at(-1), e.at(-1))) {
613
614
  let e = i.shift(), t = i.pop();
614
615
  i.unshift([...t, ...e.slice(1)]);
615
616
  }
616
617
  return i;
617
618
  }
618
- var ze = (e, t) => ({
619
+ var Be = (e, t) => ({
619
620
  kind: e,
620
621
  points: t.map(({ x: e, y: t }) => ({
621
622
  x: e,
@@ -624,7 +625,7 @@ var ze = (e, t) => ({
624
625
  cameraDepths: t.map((e) => e.cameraDepth),
625
626
  cameraWeights: t.map((e) => e.cameraWeight ?? 1),
626
627
  cameraDepth: t.reduce((e, t) => e + t.cameraDepth, 0) / t.length
627
- }), Be = (e, t, n) => {
628
+ }), Ve = (e, t, n) => {
628
629
  let r = [];
629
630
  for (let n = 0; n < 12; n++) {
630
631
  let i = Math.PI * 2 * n / 12;
@@ -634,17 +635,17 @@ var ze = (e, t) => ({
634
635
  y: e.y + Math.sin(i) * t
635
636
  });
636
637
  }
637
- return ze(n, r);
638
+ return Be(n, r);
638
639
  };
639
- function Ve(e, t, n) {
640
+ function He(e, t, n) {
640
641
  let r = Number.isFinite(n.width) ? Math.max(0, n.width) : 0;
641
- if (!(r > Z) || t.length < 3) return null;
642
+ if (!(r > X) || t.length < 3) return null;
642
643
  let i = r / 2;
643
- if ((n.lineJoin ?? "miter") === "round") return Be(e, i, "join");
644
+ if ((n.lineJoin ?? "miter") === "round") return Ve(e, i, "join");
644
645
  let a = [];
645
646
  for (let n of t) {
646
647
  let t = n.x - e.x, r = n.y - e.y, o = Math.hypot(t, r);
647
- if (!(o > Z)) continue;
648
+ if (!(o > X)) continue;
648
649
  let s = -r / o * i, c = t / o * i;
649
650
  a.push({
650
651
  ...e,
@@ -660,20 +661,20 @@ function Ve(e, t, n) {
660
661
  a.sort((e, t) => e.x - t.x || e.y - t.y);
661
662
  let o = (e, t, n) => (t.x - e.x) * (n.y - e.y) - (t.y - e.y) * (n.x - e.x), s = [];
662
663
  for (let e of a) {
663
- for (; s.length >= 2 && o(s.at(-2), s.at(-1), e) <= Z;) s.pop();
664
+ for (; s.length >= 2 && o(s.at(-2), s.at(-1), e) <= X;) s.pop();
664
665
  s.push(e);
665
666
  }
666
667
  let c = [];
667
668
  for (let e of [...a].reverse()) {
668
- for (; c.length >= 2 && o(c.at(-2), c.at(-1), e) <= Z;) c.pop();
669
+ for (; c.length >= 2 && o(c.at(-2), c.at(-1), e) <= X;) c.pop();
669
670
  c.push(e);
670
671
  }
671
672
  let l = [...s.slice(0, -1), ...c.slice(0, -1)];
672
- return l.length >= 3 ? ze("join", l) : null;
673
+ return l.length >= 3 ? Be("join", l) : null;
673
674
  }
674
- var He = (e, t, n, r) => {
675
+ var Ue = (e, t, n, r) => {
675
676
  let i = t.x * r.y - t.y * r.x;
676
- if (Math.abs(i) <= Z) return null;
677
+ if (Math.abs(i) <= X) return null;
677
678
  let a = {
678
679
  x: n.x - e.x,
679
680
  y: n.y - e.y
@@ -683,17 +684,17 @@ var He = (e, t, n, r) => {
683
684
  y: e.y + t.y * o
684
685
  };
685
686
  };
686
- function Ue(e, t) {
687
+ function We(e, t) {
687
688
  let n = Number.isFinite(t.width) ? Math.max(0, t.width) : 0;
688
- if (!(n > Z) || e.length < 2) return [];
689
- let r = n / 2, i = t.lineCap ?? "butt", a = t.lineJoin ?? "miter", o = Math.max(1, t.miterLimit ?? 10), s = [], c = Re(e, t.dash ?? [], t.dashOffset);
689
+ if (!(n > X) || e.length < 2) return [];
690
+ let r = n / 2, i = t.lineCap ?? "butt", a = t.lineJoin ?? "miter", o = Math.max(1, t.miterLimit ?? 10), s = [], c = ze(e, t.dash ?? [], t.dashOffset);
690
691
  if (c == null) return null;
691
692
  let l = (e) => s.length >= 1e4 ? !1 : (s.push(e), !0);
692
693
  for (let n = 0; n < c.length; n++) {
693
- let s = c[n], u = s.length > 2 && Le(s[0], s.at(-1)), d = n === 0 && Le(s[0], e[0]) ? t.startCap ?? i : i, f = n + 1 === c.length && Le(s.at(-1), e.at(-1)) ? t.endCap ?? i : i, p = [];
694
+ let s = c[n], u = s.length > 2 && Re(s[0], s.at(-1)), d = n === 0 && Re(s[0], e[0]) ? t.startCap ?? i : i, f = n + 1 === c.length && Re(s.at(-1), e.at(-1)) ? t.endCap ?? i : i, p = [];
694
695
  for (let e = 0; e + 1 < s.length; e++) {
695
696
  let t = s[e], n = s[e + 1], r = Math.hypot(n.x - t.x, n.y - t.y);
696
- p.push(r > Z ? {
697
+ p.push(r > X ? {
697
698
  x: (n.x - t.x) / r,
698
699
  y: (n.y - t.y) / r
699
700
  } : null);
@@ -713,7 +714,7 @@ function Ue(e, t) {
713
714
  x: s[e + 1].x + n.x * _,
714
715
  y: s[e + 1].y + n.y * _
715
716
  };
716
- if (!l(ze("segment", [
717
+ if (!l(Be("segment", [
717
718
  {
718
719
  ...v,
719
720
  x: v.x + i.x,
@@ -736,12 +737,12 @@ function Ue(e, t) {
736
737
  }
737
738
  ]))) return null;
738
739
  }
739
- if (!u && d === "round" && !l(Be(s[0], r, "cap")) || !u && f === "round" && !l(Be(s.at(-1), r, "cap"))) return null;
740
+ if (!u && d === "round" && !l(Ve(s[0], r, "cap")) || !u && f === "round" && !l(Ve(s.at(-1), r, "cap"))) return null;
740
741
  let m = (e, t, n) => {
741
742
  if (!t || !n) return !0;
742
743
  let i = t.x * n.y - t.y * n.x;
743
- if (Math.abs(i) <= Z) return !0;
744
- if (a === "round") return l(Be(e, r, "join"));
744
+ if (Math.abs(i) <= X) return !0;
745
+ if (a === "round") return l(Ve(e, r, "join"));
745
746
  let s = i > 0 ? -1 : 1, c = {
746
747
  ...e,
747
748
  x: e.x + -t.y * r * s,
@@ -752,8 +753,8 @@ function Ue(e, t) {
752
753
  y: e.y + n.x * r * s
753
754
  };
754
755
  if (a === "miter") {
755
- let i = He(c, t, u, n);
756
- if (i && Math.hypot(i.x - e.x, i.y - e.y) <= r * o) return !!l(ze("join", [
756
+ let i = Ue(c, t, u, n);
757
+ if (i && Math.hypot(i.x - e.x, i.y - e.y) <= r * o) return !!l(Be("join", [
757
758
  c,
758
759
  {
759
760
  ...e,
@@ -762,7 +763,7 @@ function Ue(e, t) {
762
763
  u
763
764
  ]));
764
765
  }
765
- return l(ze("join", [
766
+ return l(Be("join", [
766
767
  c,
767
768
  e,
768
769
  u
@@ -775,30 +776,30 @@ function Ue(e, t) {
775
776
  }
776
777
  //#endregion
777
778
  //#region packages/core/src/chart/three-d-outline.ts
778
- var We = 1e-9, Ge = (e, t) => Math.hypot(e.x - t.x, e.y - t.y, e.depth - t.depth) <= We, Ke = (e, t) => e.x - t.x || e.y - t.y || e.depth - t.depth, qe = (e, t) => {
779
+ var Ge = 1e-9, Ke = (e, t) => Math.hypot(e.x - t.x, e.y - t.y, e.depth - t.depth) <= Ge, qe = (e, t) => e.x - t.x || e.y - t.y || e.depth - t.depth, Je = (e, t) => {
779
780
  let n = Math.min(e.length, t.length);
780
781
  for (let r = 0; r < n; r++) {
781
- let n = Ke(e[r], t[r]);
782
+ let n = qe(e[r], t[r]);
782
783
  if (n !== 0) return n;
783
784
  }
784
785
  return e.length - t.length;
785
786
  };
786
- function Je(e) {
787
+ function Ye(e) {
787
788
  let t = [...e].reverse();
788
- return qe(e, t) <= 0 ? e : t;
789
+ return Je(e, t) <= 0 ? e : t;
789
790
  }
790
- function Ye(e) {
791
- let t = Ge(e[0], e.at(-1)) ? e.slice(0, -1) : [...e];
791
+ function Xe(e) {
792
+ let t = Ke(e[0], e.at(-1)) ? e.slice(0, -1) : [...e];
792
793
  if (t.length === 0) return [];
793
794
  let n = 0;
794
- for (let e = 1; e < t.length; e++) Ke(t[e], t[n]) < 0 && (n = e);
795
- let r = t.map((e, r) => t[(n + r) % t.length]), i = t.map((e, r) => t[(n - r + t.length) % t.length]), a = qe(r, i) <= 0 ? r : i;
795
+ for (let e = 1; e < t.length; e++) qe(t[e], t[n]) < 0 && (n = e);
796
+ let r = t.map((e, r) => t[(n + r) % t.length]), i = t.map((e, r) => t[(n - r + t.length) % t.length]), a = Je(r, i) <= 0 ? r : i;
796
797
  return [...a, a[0]];
797
798
  }
798
- function Xe(e) {
799
+ function Ze(e) {
799
800
  let t = [], n = (e) => {
800
- let n = t.find((t) => Ge(t.point, e));
801
- if (n) return Ke(e, n.point) < 0 && (n.point = e), n;
801
+ let n = t.find((t) => Ke(t.point, e));
802
+ if (n) return qe(e, n.point) < 0 && (n.point = e), n;
802
803
  let r = {
803
804
  point: e,
804
805
  edges: [],
@@ -807,11 +808,11 @@ function Xe(e) {
807
808
  return t.push(r), r;
808
809
  }, r = [];
809
810
  for (let [t, i] of e) {
810
- if (Ge(t, i)) continue;
811
+ if (Ke(t, i)) continue;
811
812
  let e = n(t), a = n(i);
812
813
  e !== a && r.push([e, a]);
813
814
  }
814
- t.sort((e, t) => Ke(e.point, t.point)), t.forEach((e, t) => {
815
+ t.sort((e, t) => qe(e.point, t.point)), t.forEach((e, t) => {
815
816
  e.order = t;
816
817
  });
817
818
  let i = [], a = /* @__PURE__ */ new Set();
@@ -839,32 +840,32 @@ function Xe(e) {
839
840
  }
840
841
  return n;
841
842
  }, c = [];
842
- for (let e of t) if (e.edges.length !== 2) for (let t of e.edges) o.has(t) || c.push(Je(s(e, t)));
843
+ for (let e of t) if (e.edges.length !== 2) for (let t of e.edges) o.has(t) || c.push(Ye(s(e, t)));
843
844
  for (let e = 0; e < i.length; e++) {
844
845
  if (o.has(e)) continue;
845
846
  let t = i[e], n = t.first.order <= t.second.order ? t.first : t.second;
846
- c.push(Ye(s(n, e)));
847
+ c.push(Xe(s(n, e)));
847
848
  }
848
849
  let l = t.filter((e) => e.edges.length > 2).map((e) => ({
849
850
  point: e.point,
850
851
  neighbours: e.edges.map((t) => {
851
852
  let n = i[t];
852
853
  return n.first === e ? n.second.point : n.first.point;
853
- }).sort(Ke)
854
+ }).sort(qe)
854
855
  }));
855
856
  return {
856
- paths: c.sort(qe),
857
+ paths: c.sort(Je),
857
858
  junctions: l
858
859
  };
859
860
  }
860
861
  //#endregion
861
862
  //#region packages/core/src/chart/three-d-renderer.ts
862
- function Ze(e) {
863
+ function Qe(e) {
863
864
  let t = /* @__PURE__ */ new Map();
864
865
  for (let n of e.legendEntries ?? []) t.set(n.idx, n);
865
866
  return t;
866
867
  }
867
- function Qe(e, t, n) {
868
+ function $e(e, t, n) {
868
869
  let i = r(t?.fontSizeHpt ?? e.legendFontSizeHpt, n) ?? 9 * n, a = t?.fontFace ?? e.legendFontFace;
869
870
  return {
870
871
  fontPx: i,
@@ -872,14 +873,14 @@ function Qe(e, t, n) {
872
873
  color: t?.fontColor ? `#${t.fontColor}` : e.legendFontColor ? `#${e.legendFontColor}` : "#595959"
873
874
  };
874
875
  }
875
- var $e = [
876
+ var et = [
876
877
  "4472C4",
877
878
  "ED7D31",
878
879
  "70AD47",
879
880
  "A5A5A5",
880
881
  "FFC000",
881
882
  "5B9BD5"
882
- ], et = C, tt = d, nt = new Set([
883
+ ], tt = C, nt = d, rt = new Set([
883
884
  "line",
884
885
  "stackedLine",
885
886
  "stackedLinePct",
@@ -893,11 +894,11 @@ var $e = [
893
894
  "stackedBarPct",
894
895
  "stackedBarHPct"
895
896
  ]);
896
- function rt(e, t) {
897
- let n = Number.isFinite(t) && t > 0 ? t / D : 1, r = Number.isFinite(e) && e >= 0 ? e / B : 0;
897
+ function it(e, t) {
898
+ let n = Number.isFinite(t) && t > 0 ? t / U : 1, r = Number.isFinite(e) && e >= 0 ? e / W : 0;
898
899
  return Math.max(.25, r) * n;
899
900
  }
900
- function it(e, t) {
901
+ function at(e, t) {
901
902
  let n = Number.isSafeInteger(t) && t > 0 ? t : 0, r = Array.from({ length: n }, () => []);
902
903
  for (let t of e) {
903
904
  let e = t.categoryIndex;
@@ -905,18 +906,18 @@ function it(e, t) {
905
906
  }
906
907
  return r;
907
908
  }
908
- var at = (e, t) => `#${t?.color ?? $e[e % $e.length]}`;
909
- function ot(e, t, n) {
909
+ var ot = (e, t) => `#${t?.color ?? et[e % et.length]}`;
910
+ function st(e, t, n) {
910
911
  let r = 0;
911
912
  for (let i of e) for (let e of [t(i), n(i)]) {
912
913
  if (e == null) continue;
913
- let t = j(e);
914
- if (e.fillType === "gradient" && t > et || t > tt - r) return !1;
914
+ let t = A(e);
915
+ if (e.fillType === "gradient" && t > tt || t > nt - r) return !1;
915
916
  r += t;
916
917
  }
917
918
  return !0;
918
919
  }
919
- function st(e, t) {
920
+ function ct(e, t) {
920
921
  let n = Array.from({ length: t }, () => ({
921
922
  maxMagnitude: 0,
922
923
  scaledTotal: 0
@@ -931,7 +932,7 @@ function st(e, t) {
931
932
  }
932
933
  return n;
933
934
  }
934
- function ct(e, t, n, r) {
935
+ function lt(e, t, n, r) {
935
936
  let i = e.series[t]?.values[n] ?? 0;
936
937
  if (!Number.isFinite(i)) return 0;
937
938
  if (!r) return i;
@@ -941,11 +942,11 @@ function ct(e, t, n, r) {
941
942
  };
942
943
  return a > 0 && o > 0 ? i / a / o * 100 : 0;
943
944
  }
944
- function Q(e, t) {
945
+ function Z(e, t) {
945
946
  let n = e + t;
946
947
  return Number.isFinite(n) ? n : t < 0 ? -Number.MAX_VALUE : Number.MAX_VALUE;
947
948
  }
948
- function lt(e) {
949
+ function ut(e) {
949
950
  let t = [];
950
951
  for (let [n, r] of [
951
952
  [e.threeD?.floor, "floor"],
@@ -965,7 +966,7 @@ function lt(e) {
965
966
  for (let i = 0; i < n.values.length; i++) {
966
967
  let a = n.values[i];
967
968
  if (a == null || !Number.isFinite(a) || Math.abs(a) <= 0) continue;
968
- let o = dt(e, n, r.get(i), i, 0);
969
+ let o = Q(e, n, r.get(i), i, 0);
969
970
  t.push({
970
971
  fill: o.fill,
971
972
  line: o.lineFill
@@ -973,7 +974,7 @@ function lt(e) {
973
974
  }
974
975
  }
975
976
  } else if (e.chartType === "clusteredBar" || e.chartType === "clusteredBarH" || e.chartType.startsWith("stackedBar")) {
976
- let n = e.chartType.startsWith("stacked"), r = e.chartType.endsWith("Pct"), i = n || e.dispBlanksAs === "zero", a = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, o = Math.max(1, e.categories.length, ...e.series.map((e) => Math.max(e.values.length, e.categories?.length ?? 0))), s = r ? st(e, o) : void 0, c = (t, n) => {
977
+ let n = e.chartType.startsWith("stacked"), r = e.chartType.endsWith("Pct"), i = n || e.dispBlanksAs === "zero", a = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, o = Math.max(1, e.categories.length, ...e.series.map((e) => Math.max(e.values.length, e.categories?.length ?? 0))), s = r ? ct(e, o) : void 0, c = (t, n) => {
977
978
  if (t === n) return !1;
978
979
  let r = Math.min(t, n), i = Math.max(t, n), o = e.valMin, s = e.valMax;
979
980
  return o != null && Number.isFinite(o) && i <= o || s != null && Number.isFinite(s) && r >= s ? !1 : !a || i > 0;
@@ -983,9 +984,9 @@ function lt(e) {
983
984
  for (let p = 0; p < o; p++) {
984
985
  let o = d.values[p];
985
986
  if (!(o != null && Number.isFinite(o) && (!a || o > 0) || o == null && i)) continue;
986
- let m = ct(e, r, p, s), h = n ? m >= 0 ? l[p] : u[p] : 0, g = Q(h, m);
987
+ let m = lt(e, r, p, s), h = n ? m >= 0 ? l[p] : u[p] : 0, g = Z(h, m);
987
988
  if (n && (m >= 0 ? l[p] = g : u[p] = g), !c(h, g)) continue;
988
- let _ = dt(e, d, f.get(p), p, r);
989
+ let _ = Q(e, d, f.get(p), p, r);
989
990
  t.push({
990
991
  fill: _.fill,
991
992
  line: _.lineFill
@@ -993,11 +994,11 @@ function lt(e) {
993
994
  }
994
995
  }
995
996
  } else {
996
- let n = e.chartType.toLowerCase().includes("area"), r = e.chartType.startsWith("stacked"), i = e.chartType.endsWith("Pct"), a = r || e.dispBlanksAs === "zero", o = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, s = Math.max(e.categories.length, ...e.series.map((e) => Math.max(e.categories?.length ?? 0, e.values.length))), c = i ? st(e, s) : void 0, l = e.series.map(() => Array(s).fill(0));
997
+ let n = e.chartType.toLowerCase().includes("area"), r = e.chartType.startsWith("stacked"), i = e.chartType.endsWith("Pct"), a = r || e.dispBlanksAs === "zero", o = e.valAxisLogBase != null && Number.isFinite(e.valAxisLogBase) && e.valAxisLogBase >= 2, s = Math.max(e.categories.length, ...e.series.map((e) => Math.max(e.categories?.length ?? 0, e.values.length))), c = i ? ct(e, s) : void 0, l = e.series.map(() => Array(s).fill(0));
997
998
  if (r) {
998
999
  let t = Array(s).fill(0), n = Array(s).fill(0);
999
1000
  for (let r = 0; r < e.series.length; r++) for (let i = 0; i < s; i++) {
1000
- let a = ct(e, r, i, c), o = Q(a >= 0 ? t[i] : n[i], a);
1001
+ let a = lt(e, r, i, c), o = Z(a >= 0 ? t[i] : n[i], a);
1001
1002
  l[r][i] = o, a >= 0 ? t[i] = o : n[i] = o;
1002
1003
  }
1003
1004
  }
@@ -1007,12 +1008,12 @@ function lt(e) {
1007
1008
  let f = u.values[s];
1008
1009
  if (f != null && Number.isFinite(f) && (!o || f > 0) || f == null && a) {
1009
1010
  p++;
1010
- let a = r ? l[i][s] : ct(e, i, s, c), o = m == null ? a : Math.min(m, a), f = m == null ? a : Math.max(m, a), _ = e.valMin != null && Number.isFinite(e.valMin) && f <= e.valMin || e.valMax != null && Number.isFinite(e.valMax) && o >= e.valMax;
1011
+ let a = r ? l[i][s] : lt(e, i, s, c), o = m == null ? a : Math.min(m, a), f = m == null ? a : Math.max(m, a), _ = e.valMin != null && Number.isFinite(e.valMin) && f <= e.valMin || e.valMax != null && Number.isFinite(e.valMax) && o >= e.valMax;
1011
1012
  if (p >= 2 && (n || u.smooth === !0 || !_)) {
1012
1013
  if (h = !0, n) break;
1013
1014
  let r = d.get(s);
1014
1015
  if (ft(r)) {
1015
- let n = dt(e, u, r, s, i);
1016
+ let n = Q(e, u, r, s, i);
1016
1017
  t.push({
1017
1018
  fill: void 0,
1018
1019
  line: n.lineFill
@@ -1023,7 +1024,7 @@ function lt(e) {
1023
1024
  } else (e.dispBlanksAs ?? "gap") === "gap" && (p = 0, m = null);
1024
1025
  }
1025
1026
  if (!h) continue;
1026
- let _ = dt(e, u, void 0, i, i);
1027
+ let _ = Q(e, u, void 0, i, i);
1027
1028
  n ? t.push({
1028
1029
  fill: _.fill,
1029
1030
  line: _.lineFill
@@ -1033,9 +1034,9 @@ function lt(e) {
1033
1034
  });
1034
1035
  }
1035
1036
  }
1036
- return ot(t, (e) => e.fill, (e) => e.line);
1037
+ return st(t, (e) => e.fill, (e) => e.line);
1037
1038
  }
1038
- function ut(e, t) {
1039
+ function dt(e, t) {
1039
1040
  return e?.fillType === "solid" ? {
1040
1041
  color: `#${e.color}`,
1041
1042
  fill: void 0
@@ -1044,17 +1045,17 @@ function ut(e, t) {
1044
1045
  fill: e
1045
1046
  };
1046
1047
  }
1047
- function dt(e, t, r, i, a) {
1048
- let o = t.dataPointColors?.[i] ? `#${t.dataPointColors[i]}` : at(a, t), s = e.chartType === "pie" || e.varyColors === !0 && e.series.length === 1 && e.chartType.includes("Bar") ? i : a, c, l = o, u = _(r?.chartexStyle, i);
1049
- if (u !== void 0) ({color: l, fill: c} = ut(u, l));
1048
+ function Q(e, t, r, i, a) {
1049
+ let o = t.dataPointColors?.[i] ? `#${t.dataPointColors[i]}` : ot(a, t), s = e.chartType === "pie" || e.varyColors === !0 && e.series.length === 1 && e.chartType.includes("Bar") ? i : a, c, l = o, u = _(r?.chartexStyle, i);
1050
+ if (u !== void 0) ({color: l, fill: c} = dt(u, l));
1050
1051
  else if (r?.fillHidden === !0 || r?.color === "00000000") c = null;
1051
1052
  else if (r?.color) l = `#${r.color}`;
1052
1053
  else {
1053
1054
  let n = _(t.chartexStyle, s);
1054
- if (n !== void 0) ({color: l, fill: c} = ut(n, l));
1055
+ if (n !== void 0) ({color: l, fill: c} = dt(n, l));
1055
1056
  else {
1056
1057
  let t = _(e.chartStyleRoles?.dataPoint3D, s);
1057
- t !== void 0 && ({color: l, fill: c} = ut(t, l));
1058
+ t !== void 0 && ({color: l, fill: c} = dt(t, l));
1058
1059
  }
1059
1060
  }
1060
1061
  let d, f = null, p = n(r?.chartexStyle, i);
@@ -1112,7 +1113,7 @@ function _t(e, t, n, r) {
1112
1113
  gt(n) || (ht(e, t), e.fillStyle = n, e.fill(), r > 0 && (ht(e, t), e.fillStyle = `rgba(0,0,0,${r})`, e.fill()));
1113
1114
  }
1114
1115
  function vt(e, t, n, r, i, a, o, s, c, l, u, d) {
1115
- return we({
1116
+ return Te({
1116
1117
  x0: t,
1117
1118
  x1: n,
1118
1119
  lower0: r,
@@ -1140,7 +1141,7 @@ function yt(e, t, n, r, i, a, o, s, c, l, u, d, f, p, m = !1, h = !1, g, _) {
1140
1141
  l,
1141
1142
  u
1142
1143
  ].every(Number.isFinite) || a <= 0 || o <= 0 || s === c) return [];
1143
- let v = Se({
1144
+ let v = Ce({
1144
1145
  shape: t,
1145
1146
  horizontal: n,
1146
1147
  crossStart: n ? i : r,
@@ -1178,7 +1179,7 @@ function bt(e, t, n, r, i, a = !1) {
1178
1179
  facing: a,
1179
1180
  face: {
1180
1181
  points: o,
1181
- color: X(n, pt(e, i)),
1182
+ color: Y(n, pt(e, i)),
1182
1183
  paintRole: "fill",
1183
1184
  shade: 0,
1184
1185
  cameraDepth: i.reduce((t, n) => t + e.cameraDepth(n.x, n.y, n.depth), 0) / i.length,
@@ -1215,11 +1216,11 @@ function bt(e, t, n, r, i, a = !1) {
1215
1216
  let t = [d ? void 0 : e.meshFace.baseRimEdge, f ? void 0 : e.meshFace.endRimEdge].filter((e) => e != null);
1216
1217
  for (let [e, n] of t) l(e, n);
1217
1218
  }
1218
- let p = Xe([...c.values()].map(([e, n]) => [t.vertices[e], t.vertices[n]]));
1219
+ let p = Ze([...c.values()].map(([e, n]) => [t.vertices[e], t.vertices[n]]));
1219
1220
  if (!r) return s;
1220
1221
  let m = (e, t) => Math.hypot(e.x - t.x, e.y - t.y, e.depth - t.depth) <= 1e-9, h = (e) => p.junctions.some((t) => m(t.point, e));
1221
1222
  for (let t of p.paths) {
1222
- let n = t.map((t) => e.project(t.x, t.y, t.depth)), a = t.map((t) => e.cameraDepth(t.x, t.y, t.depth)), o = t.map((t) => e.cameraProjectionWeight(t.x, t.y, t.depth)), c = Ue(n.map((e, t) => ({
1223
+ let n = t.map((t) => e.project(t.x, t.y, t.depth)), a = t.map((t) => e.cameraDepth(t.x, t.y, t.depth)), o = t.map((t) => e.cameraProjectionWeight(t.x, t.y, t.depth)), c = We(n.map((e, t) => ({
1223
1224
  ...e,
1224
1225
  cameraDepth: a[t],
1225
1226
  cameraWeight: o[t]
@@ -1249,7 +1250,7 @@ function bt(e, t, n, r, i, a = !1) {
1249
1250
  }));
1250
1251
  }
1251
1252
  for (let t of p.junctions) {
1252
- let n = Ve({
1253
+ let n = He({
1253
1254
  ...e.project(t.point.x, t.point.y, t.point.depth),
1254
1255
  cameraDepth: e.cameraDepth(t.point.x, t.point.y, t.point.depth),
1255
1256
  cameraWeight: e.cameraProjectionWeight(t.point.x, t.point.y, t.point.depth)
@@ -1290,7 +1291,7 @@ function xt(e, t, n, r, i, a, o) {
1290
1291
  depth: e.centerDepth
1291
1292
  }), h = [], g = (t, n = !1) => {
1292
1293
  if (t.length < 2 || o.exceeded) return;
1293
- let r = t[0], i = t.at(-1), s = Math.hypot(r.x - i.x, r.y - i.y, r.depth - i.depth) <= 1e-9, c = Ue((n && !s ? [...t, r] : [...t]).map((t) => ({
1294
+ let r = t[0], i = t.at(-1), s = Math.hypot(r.x - i.x, r.y - i.y, r.depth - i.depth) <= 1e-9, c = We((n && !s ? [...t, r] : [...t]).map((t) => ({
1294
1295
  ...e.project(t.x, t.y, t.depth),
1295
1296
  cameraDepth: e.cameraDepth(t.x, t.y, t.depth),
1296
1297
  cameraWeight: e.cameraProjectionWeight(t.x, t.y, t.depth)
@@ -1371,7 +1372,7 @@ function xt(e, t, n, r, i, a, o) {
1371
1372
  return h;
1372
1373
  }
1373
1374
  function St(e, t) {
1374
- t.paint !== null && (t.paint === void 0 ? _t(e, t.points, t.color, t.shade) : (ht(e, t.points), e.fillStyle = t.paint, e.fill()), t.outline && (e.strokeStyle = t.outlineColor ?? "rgba(0,0,0,0.42)", e.lineWidth = t.outlineWidth ?? .75, e.setLineDash(G(t.outlineDash ?? "solid", e.lineWidth)), e.lineCap = t.outlineCap ?? "butt", e.lineJoin = t.outlineJoin ?? "miter", t.outline && (ht(e, t.points), e.stroke()), e.setLineDash([])));
1375
+ t.paint !== null && (t.paint === void 0 ? _t(e, t.points, t.color, t.shade) : (ht(e, t.points), e.fillStyle = t.paint, e.fill()), t.outline && (e.strokeStyle = t.outlineColor ?? "rgba(0,0,0,0.42)", e.lineWidth = t.outlineWidth ?? .75, e.setLineDash(H(t.outlineDash ?? "solid", e.lineWidth)), e.lineCap = t.outlineCap ?? "butt", e.lineJoin = t.outlineJoin ?? "miter", t.outline && (ht(e, t.points), e.stroke()), e.setLineDash([])));
1375
1376
  }
1376
1377
  function Ct(e, t, n, r, i) {
1377
1378
  if (r === void 0) return;
@@ -1381,7 +1382,7 @@ function Ct(e, t, n, r, i) {
1381
1382
  for (let e of a) e.paint = null;
1382
1383
  return;
1383
1384
  }
1384
- let o = a.flatMap((e) => e.points), s = Math.min(...o.map((e) => e.x)), c = Math.max(...o.map((e) => e.x)), l = Math.min(...o.map((e) => e.y)), u = Math.max(...o.map((e) => e.y)), d = U(r, e, s, l, c - s, u - l, i);
1385
+ let o = a.flatMap((e) => e.points), s = Math.min(...o.map((e) => e.x)), c = Math.max(...o.map((e) => e.x)), l = Math.min(...o.map((e) => e.y)), u = Math.max(...o.map((e) => e.y)), d = V(r, e, s, l, c - s, u - l, i);
1385
1386
  for (let e of a) e.paint = d;
1386
1387
  }
1387
1388
  function wt(e, t) {
@@ -1398,7 +1399,7 @@ function Et(e, t, n, r, i, a = 1, o = 6) {
1398
1399
  }
1399
1400
  e.save(), e.translate(n.x, n.y + a * o), e.rotate(r), e.textAlign = a < 0 ? "left" : "right", e.textBaseline = "middle", e.fillText(t, 0, 0), e.restore();
1400
1401
  }
1401
- function Dt(t, n, r, i, a, o, s, c = void 0, l = 0, u = D) {
1402
+ function Dt(t, n, r, i, a, o, s, c = void 0, l = 0, u = U) {
1402
1403
  if (!(i > 0) || !Number.isFinite(n.x) || !Number.isFinite(n.y)) return;
1403
1404
  let d = i / 2;
1404
1405
  switch (t.beginPath(), r) {
@@ -1437,18 +1438,18 @@ function Dt(t, n, r, i, a, o, s, c = void 0, l = 0, u = D) {
1437
1438
  t.arc(n.x, n.y, d, 0, Math.PI * 2);
1438
1439
  break;
1439
1440
  }
1440
- let f = c?.fillType === "image" ? c : void 0, p = f ? null : c === void 0 ? a === "transparent" ? null : a : c == null ? null : U(c, t, n.x - d, n.y - d, i, i, l);
1441
+ let f = c?.fillType === "image" ? c : void 0, p = f ? null : c === void 0 ? a === "transparent" ? null : a : c == null ? null : V(c, t, n.x - d, n.y - d, i, i, l);
1441
1442
  p == null ? f && (t.save(), t.clip(), e(t, f, n.x - d, n.y - d, i, i, u, l), t.restore()) : (t.fillStyle = p, t.fill()), t.strokeStyle = o, t.lineWidth = s, t.stroke();
1442
1443
  }
1443
1444
  function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b, x = c, S = 0) {
1444
1445
  let C = m, w = n.seriesDataLabels;
1445
- if (A(w, C) || t.showDataLabelsOverMax !== !0 && b != null && Number.isFinite(b) && x > b) return;
1446
- let E = C?.showVal ?? w?.showVal ?? t.showDataLabels, D = C?.showCatName ?? w?.showCatName ?? !1, O = C?.showSerName ?? w?.showSerName ?? !1, k = C?.showPercent ?? w?.showPercent ?? !1, j = C?.text, M = ue({
1446
+ if (k(w, C) || t.showDataLabelsOverMax !== !0 && b != null && Number.isFinite(b) && x > b) return;
1447
+ let E = C?.showVal ?? w?.showVal ?? t.showDataLabels, D = C?.showCatName ?? w?.showCatName ?? !1, O = C?.showSerName ?? w?.showSerName ?? !1, A = C?.showPercent ?? w?.showPercent ?? !1, j = C?.text, M = de({
1447
1448
  customText: j,
1448
1449
  showCategory: D,
1449
1450
  showSeries: O,
1450
1451
  showValue: E,
1451
- showPercent: k,
1452
+ showPercent: A,
1452
1453
  category: n.categories?.[s] ?? t.categories[s] ?? `${s + 1}`,
1453
1454
  seriesName: n.name || `Series ${o + 1}`,
1454
1455
  sourceValue: c,
@@ -1460,9 +1461,9 @@ function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b
1460
1461
  separator: C?.separator ?? w?.separator
1461
1462
  });
1462
1463
  if (!M) return;
1463
- let N = r(C?.fontSizeHpt ?? w?.fontSizeHpt ?? t.dataLabelFontSizeHpt, d) ?? 9 * d, P = C?.fontBold ?? w?.fontBold ?? t.dataLabelFontBold ?? !1, F = ne(C, w), I = $(t, C?.fontFace ?? w?.fontFace ?? t.dataLabelFontFace);
1464
+ let N = r(C?.fontSizeHpt ?? w?.fontSizeHpt ?? t.dataLabelFontSizeHpt, d) ?? 9 * d, P = C?.fontBold ?? w?.fontBold ?? t.dataLabelFontBold ?? !1, F = re(C, w), I = $(t, C?.fontFace ?? w?.fontFace ?? t.dataLabelFontFace);
1464
1465
  e.font = `${F.fontItalic ? "italic " : ""}${P ? "bold " : ""}${N}px ${I}`;
1465
- let L = `#${C?.fontColor ?? w?.fontColor ?? n.labelColor ?? t.dataLabelFontColor ?? "111111"}`, R = j && C?.richRuns?.length ? oe(e, {
1466
+ let L = `#${C?.fontColor ?? w?.fontColor ?? n.labelColor ?? t.dataLabelFontColor ?? "111111"}`, R = j && C?.richRuns?.length ? se(e, {
1466
1467
  runs: C.richRuns,
1467
1468
  ptToPx: d,
1468
1469
  fontFamily: I,
@@ -1471,9 +1472,9 @@ function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b
1471
1472
  fallbackBaseline: F.fontBaseline,
1472
1473
  fallbackColorHidden: F.fontPaintAuthored === !0 && (F.fontHidden === !0 || F.fontColor == null),
1473
1474
  fontFamilyForFace: (e) => $(t, e)
1474
- }, N, L) : null, ee = R ? [] : y(M, Math.max(N, u.w * .45), Math.max(N * 1.2, u.h * .35), N * 1.2, (t) => e.measureText(t).width, F);
1475
- if (!R && !ee.length) return;
1476
- let z = R?.width ?? Math.max(...ee.map((t) => e.measureText(t).width)), V = R?.height ?? ee.length * N * 1.2, H = re(F, d), U = i(z + H.left + H.right, V + H.top + H.bottom, F.textRotation, F.textVerticalMode), q = a({
1475
+ }, N, L) : null, z = R ? [] : y(M, Math.max(N, u.w * .45), Math.max(N * 1.2, u.h * .35), N * 1.2, (t) => e.measureText(t).width, F);
1476
+ if (!R && !z.length) return;
1477
+ let ee = R?.width ?? Math.max(...z.map((t) => e.measureText(t).width)), B = R?.height ?? z.length * N * 1.2, V = ie(F, d), U = i(ee + V.left + V.right, B + V.top + V.bottom, F.textRotation, F.textVerticalMode), K = a({
1477
1478
  kind: "point",
1478
1479
  x: l.x,
1479
1480
  y: l.y,
@@ -1483,24 +1484,24 @@ function Ot(e, t, n, o, s, c, l, u, d, f = 0, p, m, h = "t", g = l, _ = !0, v, b
1483
1484
  w: U.w,
1484
1485
  h: U.h
1485
1486
  }, N, C?.manualLayout, u);
1486
- if (!q) return;
1487
- let J = K(C?.labelBox, w?.labelBox);
1488
- w?.showLeaderLines && w.leaderLineHidden !== !0 && _ && (e.beginPath(), e.moveTo(g.x, g.y), e.lineTo(Math.max(q.rect.x, Math.min(g.x, q.rect.x + q.rect.w)), Math.max(q.rect.y, Math.min(g.y, q.rect.y + q.rect.h))), e.strokeStyle = `#${w.leaderLineColor ?? "808080"}`, e.lineWidth = w.leaderLineWidthEmu == null ? .75 * d : Math.max(.25, w.leaderLineWidthEmu / B * d), e.setLineDash(G(w.leaderLineDash ?? "solid", e.lineWidth)), e.stroke()), ie(e, J, q.rect, d, S), e.save(), e.beginPath(), e.rect(q.clip.x, q.clip.y, q.clip.w, q.clip.h), e.clip();
1489
- let Y = te(F, q.textAlign), ae = T(q.x, q.y, q.rect, V + H.top + H.bottom, F, C?.manualLayout != null, Y, q.textAlign, z + H.left + H.right, U.radians), X = W(e, ae.x, ae.y, U.radians, Y, q.textBaseline, H);
1487
+ if (!K) return;
1488
+ let q = G(C?.labelBox, w?.labelBox);
1489
+ w?.showLeaderLines && w.leaderLineHidden !== !0 && _ && (e.beginPath(), e.moveTo(g.x, g.y), e.lineTo(Math.max(K.rect.x, Math.min(g.x, K.rect.x + K.rect.w)), Math.max(K.rect.y, Math.min(g.y, K.rect.y + K.rect.h))), e.strokeStyle = `#${w.leaderLineColor ?? "808080"}`, e.lineWidth = w.leaderLineWidthEmu == null ? .75 * d : Math.max(.25, w.leaderLineWidthEmu / W * d), e.setLineDash(H(w.leaderLineDash ?? "solid", e.lineWidth)), e.stroke()), ae(e, q, K.rect, d, S), e.save(), e.beginPath(), e.rect(K.clip.x, K.clip.y, K.clip.w, K.clip.h), e.clip();
1490
+ let J = te(F, K.textAlign), oe = T(K.x, K.y, K.rect, B + V.top + V.bottom, F, C?.manualLayout != null, J, K.textAlign, ee + V.left + V.right, U.radians), Y = ne(e, oe.x, oe.y, U.radians, J, K.textBaseline, V);
1490
1491
  if (R) {
1491
- se(e, R, X.x, X.y, Y, q.textBaseline, C?.manualLayout ? Math.max(0, q.rect.w - H.left - H.right) : R.width), e.restore();
1492
+ ce(e, R, Y.x, Y.y, J, K.textBaseline, C?.manualLayout ? Math.max(0, K.rect.w - V.left - V.right) : R.width), e.restore();
1492
1493
  return;
1493
1494
  }
1494
1495
  if (!(F.fontPaintAuthored === !0 && (F.fontHidden === !0 || F.fontColor == null))) {
1495
- e.fillStyle = L, e.textAlign = Y, e.textBaseline = "middle";
1496
- let t = N * 1.2, n = (F.fontBaseline ?? 0) * N, r = X.y - (ee.length - 1) * t / 2 - n;
1497
- ee.forEach((n, i) => e.fillText(n, X.x, r + i * t));
1496
+ e.fillStyle = L, e.textAlign = J, e.textBaseline = "middle";
1497
+ let t = N * 1.2, n = (F.fontBaseline ?? 0) * N, r = Y.y - (z.length - 1) * t / 2 - n;
1498
+ z.forEach((n, i) => e.fillText(n, Y.x, r + i * t));
1498
1499
  }
1499
1500
  e.restore();
1500
1501
  }
1501
1502
  function kt(e, t, n) {
1502
1503
  let r = t.seriesDataLabels;
1503
- return A(r, n) ? !1 : n?.text ? !0 : (n?.showVal ?? r?.showVal ?? e.showDataLabels) || (n?.showCatName ?? r?.showCatName ?? !1) || (n?.showSerName ?? r?.showSerName ?? !1) || (n?.showPercent ?? r?.showPercent ?? !1);
1504
+ return k(r, n) ? !1 : n?.text ? !0 : (n?.showVal ?? r?.showVal ?? e.showDataLabels) || (n?.showCatName ?? r?.showCatName ?? !1) || (n?.showSerName ?? r?.showSerName ?? !1) || (n?.showPercent ?? r?.showPercent ?? !1);
1504
1505
  }
1505
1506
  function At(e, n, r, i, a, o) {
1506
1507
  let s = g(n, r.h, i);
@@ -1518,12 +1519,12 @@ function At(e, n, r, i, a, o) {
1518
1519
  }, r, i) : null;
1519
1520
  e.fillText(n.title, a ? a.x + a.w / 2 : r.x + r.w / 2, a?.y ?? i.y);
1520
1521
  }
1521
- let c = Ze(n);
1522
+ let c = Qe(n);
1522
1523
  e.save();
1523
1524
  let d = (n.chartType === "pie" ? n.series[0]?.categories?.length ? n.series[0].categories : n.categories : n.series.map((e, t) => e.name || `Series ${t + 1}`)).flatMap((e, t) => c.get(t)?.deleted === !0 ? [] : [{
1524
1525
  label: e,
1525
1526
  index: t
1526
- }]), f = d.map((e) => Qe(n, c.get(e.index), i)), p = Math.max(0, ...f.map((e) => e.fontPx)), _ = d.map((t, n) => (e.font = f[n].font, 7 * i + 4 + e.measureText(t.label).width)), y = v(n, r.w, r.h, .23, {
1527
+ }]), f = d.map((e) => $e(n, c.get(e.index), i)), p = Math.max(0, ...f.map((e) => e.fontPx)), _ = d.map((t, n) => (e.font = f[n].font, 7 * i + 4 + e.measureText(t.label).width)), y = v(n, r.w, r.h, .23, {
1527
1528
  itemWidths: _,
1528
1529
  rowHeight: Math.max(p * 1.45, 12),
1529
1530
  itemGap: 12,
@@ -1554,7 +1555,7 @@ function At(e, n, r, i, a, o) {
1554
1555
  w: Math.max(1, D.plotRect.pw),
1555
1556
  h: Math.max(1, D.plotRect.ph)
1556
1557
  };
1557
- H(e, n, O.x, O.y, O.w, O.h, i, o);
1558
+ B(e, n, O.x, O.y, O.w, O.h, i, o);
1558
1559
  let k = y ? y.side === "r" ? {
1559
1560
  x: r.x + r.w - y.reserveW,
1560
1561
  y: O.y,
@@ -1588,7 +1589,7 @@ function At(e, n, r, i, a, o) {
1588
1589
  }
1589
1590
  function jt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
1590
1591
  e.save(), e.font = `${l ? "italic " : ""}${c ? "bold " : ""}${a}px ${o}`, e.fillStyle = s ? `#${s}` : "#555";
1591
- let m = f ? t : J(e, t, p), h = F(i, u, d), g = r;
1592
+ let m = f ? t : q(e, t, p), h = P(i, u, d), g = r;
1592
1593
  if (f) {
1593
1594
  let t = e.measureText(m).width, i = Math.abs(Math.cos(h)), o = Math.abs(Math.sin(h)), s = {
1594
1595
  x: r.x - (t * i + a * o) / 2,
@@ -1609,7 +1610,7 @@ function jt(e, t, n, r, i, a, o, s, c, l, u, d, f, p) {
1609
1610
  }
1610
1611
  function Mt(e, n, r, i, a, o) {
1611
1612
  if (n.valAxisTitle) {
1612
- let s = I(n.valAxisTitleFontSizeHpt, o), c = a ? "horizontal" : "left";
1613
+ let s = F(n.valAxisTitleFontSizeHpt, o), c = a ? "horizontal" : "left";
1613
1614
  jt(e, n.valAxisTitle, r, a ? {
1614
1615
  x: i.x + i.w / 2,
1615
1616
  y: i.y + i.h + t(r.h) + s / 2
@@ -1619,7 +1620,7 @@ function Mt(e, n, r, i, a, o) {
1619
1620
  }, c, s, $(n, n.valAxisTitleFontFace, "major"), n.valAxisTitleFontColor, n.valAxisTitleFontBold ?? !0, n.valAxisTitleFontItalic ?? !1, n.valAxisTitleRotation, n.valAxisTitleVerticalMode, n.valAxisTitleManualLayout, a ? i.w : i.h);
1620
1621
  }
1621
1622
  if (n.catAxisTitle) {
1622
- let s = I(n.catAxisTitleFontSizeHpt, o), c = a ? "left" : "horizontal";
1623
+ let s = F(n.catAxisTitleFontSizeHpt, o), c = a ? "left" : "horizontal";
1623
1624
  jt(e, n.catAxisTitle, r, a ? {
1624
1625
  x: i.x - t(r.w) - s / 2,
1625
1626
  y: i.y + i.h / 2
@@ -1669,7 +1670,7 @@ function Nt(e, t, n, i, a, o, s, c, l, u, d) {
1669
1670
  f.tickLabelPos !== "none" && n % T === 0 && e.fillText(t.series[n].name || `Series ${n + 1}`, o.x + x.x * (6 * d + 3), o.y + x.y * (6 * d + 3));
1670
1671
  }
1671
1672
  if (e.setLineDash([]), f.title) {
1672
- let r = I(f.titleFontSizeHpt, d);
1673
+ let r = F(f.titleFontSizeHpt, d);
1673
1674
  jt(e, f.title, n, {
1674
1675
  x: C.x + x.x * (D + r + 12),
1675
1676
  y: C.y + x.y * (D + r + 12)
@@ -1678,35 +1679,35 @@ function Nt(e, t, n, i, a, o, s, c, l, u, d) {
1678
1679
  }
1679
1680
  function Pt(e, t, n, r, i, a, o, s) {
1680
1681
  if (t.lineHidden !== !0) {
1681
- let s = t.lineWidthEmu == null ? Math.max(1, 2 * o) : Math.max(.5, t.lineWidthEmu / B * o);
1682
- e.beginPath(), e.moveTo(r, i), e.lineTo(r + a, i), e.strokeStyle = t.lineColor ? `#${t.lineColor}` : X(n, .7), e.lineWidth = s, e.setLineDash(G(t.chartexStyle?.lineDash ?? "solid", s)), e.stroke(), e.setLineDash([]);
1682
+ let s = t.lineWidthEmu == null ? Math.max(1, 2 * o) : Math.max(.5, t.lineWidthEmu / W * o);
1683
+ e.beginPath(), e.moveTo(r, i), e.lineTo(r + a, i), e.strokeStyle = t.lineColor ? `#${t.lineColor}` : Y(n, .7), e.lineWidth = s, e.setLineDash(H(t.chartexStyle?.lineDash ?? "solid", s)), e.stroke(), e.setLineDash([]);
1683
1684
  }
1684
1685
  if (t.showMarker !== !0 || t.markerSymbol === "none") return;
1685
- let c = t.markerSymbol ?? "circle", l = L(t, n.replace(/^#/, "")), u = l === "00000000" ? "transparent" : l.startsWith("#") ? l : `#${l}`, d = t.markerLine ?? t.lineColor ?? n.replace(/^#/, ""), f = d === "00000000" ? "rgba(0,0,0,0)" : d.startsWith("#") ? d : `#${d}`, p = t.markerLineWidthEmu == null ? Math.max(.75, o) : Math.max(.25, t.markerLineWidthEmu / B * o);
1686
+ let c = t.markerSymbol ?? "circle", l = I(t, n.replace(/^#/, "")), u = l === "00000000" ? "transparent" : l.startsWith("#") ? l : `#${l}`, d = t.markerLine ?? t.lineColor ?? n.replace(/^#/, ""), f = d === "00000000" ? "rgba(0,0,0,0)" : d.startsWith("#") ? d : `#${d}`, p = t.markerLineWidthEmu == null ? Math.max(.75, o) : Math.max(.25, t.markerLineWidthEmu / W * o);
1686
1687
  Dt(e, {
1687
1688
  x: r + a / 2,
1688
1689
  y: i
1689
- }, c, Math.min(a, Math.max(2, (t.markerSize ?? 5) * o)), u, f, p, N(t), s, o);
1690
+ }, c, Math.min(a, Math.max(2, (t.markerSize ?? 5) * o)), u, f, p, M(t), s, o);
1690
1691
  }
1691
1692
  function Ft(e, t, n, r, i = !1, a, o = 0) {
1692
1693
  if (!n) return;
1693
- R(e, t, n, r, o);
1694
+ L(e, t, n, r, o);
1694
1695
  let c = new Map(t.series[0]?.dataPointOverrides?.map((e) => [e.idx, e]) ?? []), l = i ? (t.series[0]?.categories?.length ? t.series[0].categories : t.categories).map((e, n) => {
1695
1696
  let r = t.series[0]?.dataPointColors?.[n];
1696
1697
  return {
1697
1698
  label: e,
1698
- color: r === "00000000" ? "transparent" : r ? `#${r}` : at(n),
1699
+ color: r === "00000000" ? "transparent" : r ? `#${r}` : ot(n),
1699
1700
  series: t.series[0],
1700
1701
  point: c.get(n),
1701
1702
  sourceIndex: n
1702
1703
  };
1703
1704
  }) : t.series.map((e, t) => ({
1704
1705
  label: e.name || `Series ${t + 1}`,
1705
- color: at(t, e),
1706
+ color: ot(t, e),
1706
1707
  series: e,
1707
1708
  point: void 0,
1708
1709
  sourceIndex: t
1709
- })), u = Ze(t), d = l.filter((e) => u.get(e.sourceIndex)?.deleted !== !0), f = a != null && a.labels.length === d.length && a.labels.every((e, t) => e === d[t].label), p = f ? a.styles : d.map((e) => Qe(t, u.get(e.sourceIndex), r));
1710
+ })), u = Qe(t), d = l.filter((e) => u.get(e.sourceIndex)?.deleted !== !0), f = a != null && a.labels.length === d.length && a.labels.every((e, t) => e === d[t].label), p = f ? a.styles : d.map((e) => $e(t, u.get(e.sourceIndex), r));
1710
1711
  e.textAlign = "left", e.textBaseline = "middle";
1711
1712
  let m = Math.max(Math.max(0, ...p.map((e) => e.fontPx)) * 1.45, 12), h = Math.min(7 * r, m * .7);
1712
1713
  if (t.legendPos === "t" || t.legendPos === "b" || t.legendManualLayout != null && n.w >= n.h) {
@@ -1721,9 +1722,9 @@ function Ft(e, t, n, r, i = !1, a, o = 0) {
1721
1722
  else {
1722
1723
  u.color !== "transparent" && (e.fillStyle = u.color, e.fillRect(f, l - h / 2, h, h));
1723
1724
  let t = u.point?.lineHidden ?? u.series?.lineHidden, n = u.point?.lineColor ?? u.series?.lineColor;
1724
- t !== !0 && n && (e.strokeStyle = `#${n}`, e.lineWidth = (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu ?? 0) / B * r), e.setLineDash(G(u.point?.lineDash ?? u.series?.chartexStyle?.lineDash ?? "solid", e.lineWidth)), e.strokeRect(f, l - h / 2, h, h), e.setLineDash([]));
1725
+ t !== !0 && n && (e.strokeStyle = `#${n}`, e.lineWidth = (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (u.point?.lineWidthEmu ?? u.series?.lineWidthEmu ?? 0) / W * r), e.setLineDash(H(u.point?.lineDash ?? u.series?.chartexStyle?.lineDash ?? "solid", e.lineWidth)), e.strokeRect(f, l - h / 2, h, h), e.setLineDash([]));
1725
1726
  }
1726
- e.fillStyle = m.color, e.fillText(J(e, u.label, g), f + h + 4, l), f += c[n] + 12;
1727
+ e.fillStyle = m.color, e.fillText(q(e, u.label, g), f + h + 4, l), f += c[n] + 12;
1727
1728
  }
1728
1729
  l += m;
1729
1730
  }
@@ -1742,7 +1743,7 @@ function Ft(e, t, n, r, i = !1, a, o = 0) {
1742
1743
  else {
1743
1744
  c.color !== "transparent" && (e.fillStyle = c.color, e.fillRect(n.x + 4, b - h / 2, h, h));
1744
1745
  let t = c.point?.lineHidden ?? c.series?.lineHidden, i = c.point?.lineColor ?? c.series?.lineColor;
1745
- t !== !0 && i && (e.strokeStyle = `#${i}`, e.lineWidth = (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu ?? 0) / B * r), e.setLineDash(G(c.point?.lineDash ?? c.series?.chartexStyle?.lineDash ?? "solid", e.lineWidth)), e.strokeRect(n.x + 4, b - h / 2, h, h), e.setLineDash([]));
1746
+ t !== !0 && i && (e.strokeStyle = `#${i}`, e.lineWidth = (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu) == null ? .75 * r : Math.max(.25, (c.point?.lineWidthEmu ?? c.series?.lineWidthEmu ?? 0) / W * r), e.setLineDash(H(c.point?.lineDash ?? c.series?.chartexStyle?.lineDash ?? "solid", e.lineWidth)), e.strokeRect(n.x + 4, b - h / 2, h, h), e.setLineDash([]));
1746
1747
  }
1747
1748
  e.fillStyle = l.color;
1748
1749
  let x = b - (v.length - 1) * _ / 2;
@@ -1751,7 +1752,7 @@ function Ft(e, t, n, r, i = !1, a, o = 0) {
1751
1752
  }
1752
1753
  function It(e, t, n, r, i, a) {
1753
1754
  let o = i ? 100 : 1, s = e.valAxisMinorTickMark ?? "none";
1754
- return q({
1755
+ return K({
1755
1756
  dataMin: t,
1756
1757
  dataMax: n,
1757
1758
  explicitMin: e.valMin == null ? i ? t : null : e.valMin * o,
@@ -1804,23 +1805,23 @@ function Rt(e) {
1804
1805
  };
1805
1806
  }
1806
1807
  function zt(e, t, n, r, i = "A6A6A6", a = .75) {
1807
- let o = t != null && Number.isFinite(t) && t >= 0 ? Math.max(.25, t / B * r) : a * r;
1808
+ let o = t != null && Number.isFinite(t) && t >= 0 ? Math.max(.25, t / W * r) : a * r;
1808
1809
  return {
1809
1810
  color: `#${e ?? i}`,
1810
1811
  width: o,
1811
- dash: G(n ?? "solid", o)
1812
+ dash: H(n ?? "solid", o)
1812
1813
  };
1813
1814
  }
1814
1815
  function Bt(e, t, n, r) {
1815
1816
  let i = zt(e, t, n, r, "898989", 1);
1816
1817
  if (t == null || !Number.isFinite(t) || t < 0) return i;
1817
- let a = t / B * r;
1818
+ let a = t / W * r;
1818
1819
  if (!(a > 0)) return i;
1819
1820
  let o = a;
1820
1821
  return {
1821
1822
  ...i,
1822
1823
  width: o,
1823
- dash: G(n ?? "solid", o)
1824
+ dash: H(n ?? "solid", o)
1824
1825
  };
1825
1826
  }
1826
1827
  function Vt(e, t, n, r) {
@@ -1832,13 +1833,13 @@ function Ht(e, t) {
1832
1833
  function Ut(e, t, n, r, i, a, s, l, u) {
1833
1834
  let { front: d } = n, f = d.x, m = d.x + d.w, h = Rt(n), { sideX: g, floorY: _, oppositeFloorY: v, nearDepth: y, farDepth: b } = h, x = Xt(t, n, r, a, s, l, i), S = [], C = t.catAxisLinePaintAuthored === !0, T = t.valAxisLinePaintAuthored === !0, E = i === "vertical" ? C && !t.catAxisHidden && !t.catAxisLineHidden : T && !t.valAxisHidden && !t.valAxisLineHidden, D = i === "vertical" ? T && !t.valAxisHidden && !t.valAxisLineHidden : C && !t.catAxisHidden && !t.catAxisLineHidden;
1834
1835
  E && S.push([x.horizontalStart, x.horizontalEnd]), D && S.push([x.verticalStart, x.verticalEnd]);
1835
- let O = t.threeD?.seriesAxis, A = O?.linePaintAuthored === !0;
1836
- if (O && !O.hidden && !O.lineHidden && A && t.threeD?.barGrouping === "standard" && t.series.length > 0) {
1836
+ let k = t.threeD?.seriesAxis, A = k?.linePaintAuthored === !0;
1837
+ if (k && !k.hidden && !k.lineHidden && A && t.threeD?.barGrouping === "standard" && t.series.length > 0) {
1837
1838
  let e = i === "vertical" ? h.seriesAxisX : x.axisX, t = i === "horizontal" ? _ === n.front.y ? n.front.y + n.front.h : n.front.y : _;
1838
1839
  S.push([n.project(e, t, y), n.project(e, t, b)]);
1839
1840
  }
1840
1841
  let j = (e, t) => Math.hypot(e.x - t.x, e.y - t.y) <= 1e-6, M = (e, t) => S.some(([n, r]) => j(e, n) && j(t, r) || j(e, r) && j(t, n)), N = (e, t) => {
1841
- let r = Y(n, e, t?.thicknessPercent), i = r.faces.map((e, t) => ({
1842
+ let r = J(n, e, t?.thicknessPercent), i = r.faces.map((e, t) => ({
1842
1843
  scenePoints: e,
1843
1844
  faceIndex: t
1844
1845
  })).filter(({ scenePoints: e }) => r.thickness === 0 || n.cameraFacing(e)).map(({ scenePoints: e, faceIndex: t }) => ({
@@ -1852,31 +1853,31 @@ function Ut(e, t, n, r, i, a, s, l, u) {
1852
1853
  faces: i,
1853
1854
  visibleFaceIndices: new Set(i.map((e) => e.faceIndex))
1854
1855
  };
1855
- }, P = N("floor", t.threeD?.floor), F = N("sideWall", t.threeD?.sideWall), I = N("backWall", t.threeD?.backWall), L = P.faces, R = F.faces, ee = I.faces, z = (i, a, s, l) => {
1856
+ }, P = N("floor", t.threeD?.floor), F = N("sideWall", t.threeD?.sideWall), I = N("backWall", t.threeD?.backWall), L = P.faces, R = F.faces, z = I.faces, ee = (i, a, s, l) => {
1856
1857
  let u = c(t, a, s), d = i.faces;
1857
1858
  if (!u.fill || !d.length) return;
1858
1859
  if (u.fill.fillType === "image") {
1859
1860
  let t = o(u.fill);
1860
1861
  if (!t) return;
1861
- le(e, u.fill, t, a, l, i.slab, i.faces.map((e) => e.faceIndex), (e) => n.projectUnbounded(e.x, e.y, e.depth), r.max - r.min);
1862
+ ue(e, u.fill, t, a, l, i.slab, i.faces.map((e) => e.faceIndex), (e) => n.projectUnbounded(e.x, e.y, e.depth), r.max - r.min);
1862
1863
  return;
1863
1864
  }
1864
- let f = d.flatMap((e) => e.points), p = Math.min(...f.map((e) => e.x)), m = Math.max(...f.map((e) => e.x)), h = Math.min(...f.map((e) => e.y)), g = Math.max(...f.map((e) => e.y)), _ = u.fill.fillType === "solid" ? `#${u.fill.color}` : U(u.fill, e, p, h, m - p, g - h);
1865
+ let f = d.flatMap((e) => e.points), p = Math.min(...f.map((e) => e.x)), m = Math.max(...f.map((e) => e.x)), h = Math.min(...f.map((e) => e.y)), g = Math.max(...f.map((e) => e.y)), _ = u.fill.fillType === "solid" ? `#${u.fill.color}` : V(u.fill, e, p, h, m - p, g - h);
1865
1866
  if (_) for (let t of d) t.points.length < 3 || (ht(e, t.points), e.fillStyle = _, e.fill());
1866
1867
  };
1867
- z(P, t.threeD?.floor, "floor", "floor"), z(F, t.threeD?.sideWall, "wall", "sideWall"), z(I, t.threeD?.backWall, "wall", "backWall");
1868
- let V = (t, r, i, a, o = !0) => {
1869
- for (let s of fe(t.slab, r, i, a)) {
1868
+ ee(P, t.threeD?.floor, "floor", "floor"), ee(F, t.threeD?.sideWall, "wall", "sideWall"), ee(I, t.threeD?.backWall, "wall", "backWall");
1869
+ let B = (t, r, i, a, o = !0) => {
1870
+ for (let s of pe(t.slab, r, i, a)) {
1870
1871
  if (!o && s.faceIndex !== 0 || !t.visibleFaceIndices.has(s.faceIndex)) continue;
1871
1872
  let [r, i] = s.scenePoints.map((e) => n.projectUnbounded(e.x, e.y, e.depth));
1872
1873
  e.beginPath(), e.moveTo(r.x, r.y), e.lineTo(i.x, i.y), e.stroke();
1873
1874
  }
1874
- }, H = (t, a, o) => {
1875
+ }, te = (t, a, o) => {
1875
1876
  Ht(e, a);
1876
1877
  for (let a of t) {
1877
1878
  let t = r.fraction(a);
1878
1879
  if (o) {
1879
- i === "horizontal" ? (V(P, "floor", "x", t), V(I, "backWall", "x", t)) : (V(F, "sideWall", "y", t), V(I, "backWall", "y", t));
1880
+ i === "horizontal" ? (B(P, "floor", "x", t), B(I, "backWall", "x", t)) : (B(F, "sideWall", "y", t), B(I, "backWall", "y", t));
1880
1881
  continue;
1881
1882
  }
1882
1883
  if (i === "horizontal") {
@@ -1888,23 +1889,23 @@ function Ut(e, t, n, r, i, a, s, l, u) {
1888
1889
  }
1889
1890
  }
1890
1891
  };
1891
- t.valAxisMinorGridlines === !0 && H(r.minorTicks, zt(t.valAxisMinorGridlineColor, t.valAxisMinorGridlineWidthEmu, t.valAxisMinorGridlineDash, u, "D9D9D9", .5), !0), t.valAxisMajorGridlines === !0 && H(r.majorTicks, zt(t.valAxisGridlineColor, t.valAxisGridlineWidthEmu, t.valAxisGridlineDash, u, "898989", 1), !0);
1892
- let te = (t, n) => {
1892
+ t.valAxisMinorGridlines === !0 && te(r.minorTicks, zt(t.valAxisMinorGridlineColor, t.valAxisMinorGridlineWidthEmu, t.valAxisMinorGridlineDash, u, "D9D9D9", .5), !0), t.valAxisMajorGridlines === !0 && te(r.majorTicks, zt(t.valAxisGridlineColor, t.valAxisGridlineWidthEmu, t.valAxisGridlineDash, u, "898989", 1), !0);
1893
+ let ne = (t, n) => {
1893
1894
  Ht(e, n);
1894
- for (let e of t) i === "vertical" ? (V(P, "floor", "x", e), V(I, "backWall", "x", e)) : (V(F, "sideWall", "y", e), V(I, "backWall", "y", e));
1895
+ for (let e of t) i === "vertical" ? (B(P, "floor", "x", e), B(I, "backWall", "x", e)) : (B(F, "sideWall", "y", e), B(I, "backWall", "y", e));
1895
1896
  };
1896
- t.catAxisMinorGridlines === !0 && te(w(a, s), zt(t.catAxisMinorGridlineColor, t.catAxisMinorGridlineWidthEmu, t.catAxisMinorGridlineDash, u, "E0E0E0", .5)), t.catAxisMajorGridlines === !0 && te(p(a, s), zt(t.catAxisGridlineColor, t.catAxisGridlineWidthEmu, t.catAxisGridlineDash, u, "E0E0E0", .5));
1897
- let W = (n, r, i) => {
1897
+ t.catAxisMinorGridlines === !0 && ne(w(a, s), zt(t.catAxisMinorGridlineColor, t.catAxisMinorGridlineWidthEmu, t.catAxisMinorGridlineDash, u, "E0E0E0", .5)), t.catAxisMajorGridlines === !0 && ne(p(a, s), zt(t.catAxisGridlineColor, t.catAxisGridlineWidthEmu, t.catAxisGridlineDash, u, "E0E0E0", .5));
1898
+ let H = (n, r, i) => {
1898
1899
  if (!n.length) return;
1899
1900
  let a = c(t, r, i);
1900
1901
  if (a.line === null) return;
1901
1902
  let o = a.line ?? {
1902
1903
  fillType: "solid",
1903
1904
  color: "898989"
1904
- }, s = n.flatMap((e) => e.points), l = Math.min(...s.map((e) => e.x)), d = Math.max(...s.map((e) => e.x)), f = Math.min(...s.map((e) => e.y)), p = Math.max(...s.map((e) => e.y)), m = o.fillType === "solid" ? `#${o.color}` : U(o, e, l, f, d - l, p - f);
1905
+ }, s = n.flatMap((e) => e.points), l = Math.min(...s.map((e) => e.x)), d = Math.max(...s.map((e) => e.x)), f = Math.min(...s.map((e) => e.y)), p = Math.max(...s.map((e) => e.y)), m = o.fillType === "solid" ? `#${o.color}` : V(o, e, l, f, d - l, p - f);
1905
1906
  if (!m) return;
1906
- let h = a.lineWidthEmu == null ? u : Math.max(.25, a.lineWidthEmu / B * u);
1907
- e.strokeStyle = m, e.lineWidth = h, e.setLineDash(k(a.lineCustomDash, a.lineDash, h)), e.lineCap = a.lineCap === "rnd" ? "round" : a.lineCap === "sq" ? "square" : "butt", e.lineJoin = a.lineJoin === "round" || a.lineJoin === "bevel" ? a.lineJoin : "miter";
1907
+ let h = a.lineWidthEmu == null ? u : Math.max(.25, a.lineWidthEmu / W * u);
1908
+ e.strokeStyle = m, e.lineWidth = h, e.setLineDash(O(a.lineCustomDash, a.lineDash, h)), e.lineCap = a.lineCap === "rnd" ? "round" : a.lineCap === "sq" ? "square" : "butt", e.lineJoin = a.lineJoin === "round" || a.lineJoin === "bevel" ? a.lineJoin : "miter";
1908
1909
  for (let t of n) {
1909
1910
  if (t.points.length < 2) continue;
1910
1911
  let n = t.points.map((e, n) => ({
@@ -1920,7 +1921,7 @@ function Ut(e, t, n, r, i, a, s, l, u) {
1920
1921
  e.lineTo(t.points[0].x, t.points[0].y), e.closePath(), e.stroke();
1921
1922
  }
1922
1923
  };
1923
- W(L, t.threeD?.floor, "floor"), W(R, t.threeD?.sideWall, "wall"), W(ee, t.threeD?.backWall, "wall"), e.setLineDash([]);
1924
+ H(L, t.threeD?.floor, "floor"), H(R, t.threeD?.sideWall, "wall"), H(z, t.threeD?.backWall, "wall"), e.setLineDash([]);
1924
1925
  }
1925
1926
  function Wt(e, t, n, r, i, a, o, s, c) {
1926
1927
  let l = Xt(t, n, r, i, a, o, c), u = c === "vertical" ? !t.catAxisHidden && !t.catAxisLineHidden : !t.valAxisHidden && !t.valAxisLineHidden, d = c === "vertical" ? !t.valAxisHidden && !t.valAxisLineHidden : !t.catAxisHidden && !t.catAxisLineHidden;
@@ -2017,63 +2018,63 @@ function Zt(e, t, n, r, i, a, o, s, c, l) {
2017
2018
  }
2018
2019
  function Qt(e, t, n, i, a) {
2019
2020
  if (!t.threeD) return !1;
2020
- let o = t.chartType === "clusteredBar" || t.chartType === "clusteredBarH" || t.chartType.startsWith("stackedBar"), s = t.chartType.endsWith("H") || t.chartType.includes("BarH"), c = t.chartType.startsWith("stacked"), l = o && !c && t.threeD.barGrouping === "standard", { plot: u, legend: d, legendMeasure: p } = At(e, t, n, i, s ? "horizontal" : "vertical", a), m = ce(t.threeD, u, {
2021
+ let o = t.chartType === "clusteredBar" || t.chartType === "clusteredBarH" || t.chartType.startsWith("stackedBar"), s = t.chartType.endsWith("H") || t.chartType.includes("BarH"), c = t.chartType.startsWith("stacked"), l = o && !c && t.threeD.barGrouping === "standard", { plot: u, legend: d, legendMeasure: p } = At(e, t, n, i, s ? "horizontal" : "vertical", a), m = le(t.threeD, u, {
2021
2022
  sceneDepthScale: o ? l ? .65 : .1 : .4,
2022
2023
  perspectiveTangentGain: l ? 1 : 2,
2023
2024
  sceneHeightScale: !o && !(t.threeD.heightPercentAuthored ?? t.threeD.heightPercent != null) ? 1 / 3 : void 0
2024
2025
  });
2025
2026
  if (!m) return !0;
2026
- m = de(m, t.threeD, u);
2027
- let h = t.chartType.endsWith("Pct"), g = t.series.find((e) => (e.categories?.length ?? 0) > 0)?.categories ?? t.categories, _ = Math.max(1, g.length, ...t.series.map((e) => e.values.length)), v = h ? st(t, _) : void 0, y = t.catAxisOrientation === "maxMin", b = t.catAxisCrossBetween === "between", x = t.dispBlanksAs ?? "gap", C = t.valAxisLogBase != null && Number.isFinite(t.valAxisLogBase) && t.valAxisLogBase >= 2, w = (e, n) => {
2027
+ m = fe(m, t.threeD, u);
2028
+ let h = t.chartType.endsWith("Pct"), g = t.series.find((e) => (e.categories?.length ?? 0) > 0)?.categories ?? t.categories, _ = Math.max(1, g.length, ...t.series.map((e) => e.values.length)), v = h ? ct(t, _) : void 0, y = t.catAxisOrientation === "maxMin", b = t.catAxisCrossBetween === "between", x = t.dispBlanksAs ?? "gap", C = t.valAxisLogBase != null && Number.isFinite(t.valAxisLogBase) && t.valAxisLogBase >= 2, w = (e, n) => {
2028
2029
  let r = t.series[e]?.values[n];
2029
2030
  return r != null && Number.isFinite(r) && (!C || r > 0) || r == null && (c || x === "zero");
2030
- }, T = (e, n) => ct(t, e, n, v), A = 0, j = 0;
2031
+ }, T = (e, n) => lt(t, e, n, v), k = 0, A = 0;
2031
2032
  if (c) {
2032
2033
  for (let e = 0; e < _; e++) {
2033
2034
  let n = 0, r = 0;
2034
2035
  for (let i = 0; i < t.series.length; i++) {
2035
2036
  let t = T(i, e);
2036
- t >= 0 ? n = Q(n, t) : r = Q(r, t);
2037
+ t >= 0 ? n = Z(n, t) : r = Z(r, t);
2037
2038
  }
2038
- A = Math.min(A, r), j = Math.max(j, n);
2039
+ k = Math.min(k, r), A = Math.max(A, n);
2039
2040
  }
2040
- h && (A = A < 0 ? -100 : 0, j = j > 0 ? 100 : 0, A === 0 && j === 0 && (j = 1));
2041
+ h && (k = k < 0 ? -100 : 0, A = A > 0 ? 100 : 0, k === 0 && A === 0 && (A = 1));
2041
2042
  } else {
2042
- let e = ge(t.series.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e) && (!C || e > 0)), C ? {
2043
+ let e = _e(t.series.flatMap((e) => e.values).filter((e) => e != null && Number.isFinite(e) && (!C || e > 0)), C ? {
2043
2044
  min: 1,
2044
2045
  max: 10
2045
2046
  } : {
2046
2047
  min: 0,
2047
2048
  max: 1
2048
2049
  });
2049
- A = C ? e.min : Math.min(0, e.min), j = C ? e.max : Math.max(0, e.max);
2050
+ k = C ? e.min : Math.min(0, e.min), A = C ? e.max : Math.max(0, e.max);
2050
2051
  }
2051
- let N = s ? m.project(m.front.x, m.topology.axisY === "min" ? m.front.y : m.front.y + m.front.h, m.topology.nearDepth) : m.project(m.topology.axisX === "min" ? m.front.x : m.front.x + m.front.w, m.front.y, m.topology.nearDepth), F = s ? m.project(m.front.x + m.front.w, m.topology.axisY === "min" ? m.front.y : m.front.y + m.front.h, m.topology.nearDepth) : m.project(m.topology.axisX === "min" ? m.front.x : m.front.x + m.front.w, m.front.y + m.front.h, m.topology.nearDepth), I = Math.hypot(F.x - N.x, F.y - N.y) / i, L = It(t, A, j, I, h, s ? "horizontal" : "vertical"), R = (e) => Number.isFinite(e) ? Math.max(L.min, Math.min(L.max, e)) : L.min;
2052
- o || Ut(e, t, m, L, s ? "horizontal" : "vertical", _, b, y, i);
2053
- let { front: H } = m, U = Math.max(1, t.series.length), te = [], W = t.series.map((e) => new Map(e.dataPointOverrides?.map((e) => [e.idx, e]) ?? [])), G = t.series.map((e) => new Map(e.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []));
2052
+ let M = s ? m.project(m.front.x, m.topology.axisY === "min" ? m.front.y : m.front.y + m.front.h, m.topology.nearDepth) : m.project(m.topology.axisX === "min" ? m.front.x : m.front.x + m.front.w, m.front.y, m.topology.nearDepth), P = s ? m.project(m.front.x + m.front.w, m.topology.axisY === "min" ? m.front.y : m.front.y + m.front.h, m.topology.nearDepth) : m.project(m.topology.axisX === "min" ? m.front.x : m.front.x + m.front.w, m.front.y + m.front.h, m.topology.nearDepth), F = Math.hypot(P.x - M.x, P.y - M.y) / i, I = It(t, k, A, F, h, s ? "horizontal" : "vertical"), L = (e) => Number.isFinite(e) ? Math.max(I.min, Math.min(I.max, e)) : I.min;
2053
+ o || Ut(e, t, m, I, s ? "horizontal" : "vertical", _, b, y, i);
2054
+ let { front: B } = m, V = Math.max(1, t.series.length), te = [], ne = t.series.map((e) => new Map(e.dataPointOverrides?.map((e) => [e.idx, e]) ?? [])), H = t.series.map((e) => new Map(e.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []));
2054
2055
  if (o) {
2055
- let r = m.prismInterval(0, 1, !0), o = [], u = Array(_).fill(0), d = Array(_).fill(0), f = (s ? H.h : H.w) / _, p = t.barGapWidth != null && Number.isFinite(t.barGapWidth) && t.barGapWidth >= 0 ? t.barGapWidth : 150;
2056
+ let r = m.prismInterval(0, 1, !0), o = [], u = Array(_).fill(0), d = Array(_).fill(0), f = (s ? B.h : B.w) / _, p = t.barGapWidth != null && Number.isFinite(t.barGapWidth) && t.barGapWidth >= 0 ? t.barGapWidth : 150;
2056
2057
  for (let e = 0; e < t.series.length; e++) {
2057
- let n = t.series[e], a = l ? m.prismInterval(e, U, !1) : r, g = me(f, p, l ? 0 : e, l ? 1 : U, c || l);
2058
+ let n = t.series[e], a = l ? m.prismInterval(e, V, !1) : r, g = he(f, p, l ? 0 : e, l ? 1 : V, c || l);
2058
2059
  for (let r = 0; r < _; r++) {
2059
2060
  if (!w(e, r)) continue;
2060
- let l = T(e, r), p = dt(t, n, W[e].get(r), r, e), m = p.fill === null ? "transparent" : p.color, v = p.lineFill !== null && (p.lineColor != null || p.lineFill !== void 0), b = c ? l >= 0 ? u[r] : d[r] : 0, x = Q(b, l);
2061
+ let l = T(e, r), p = Q(t, n, ne[e].get(r), r, e), m = p.fill === null ? "transparent" : p.color, v = p.lineFill !== null && (p.lineColor != null || p.lineFill !== void 0), b = c ? l >= 0 ? u[r] : d[r] : 0, x = Z(b, l);
2061
2062
  c && (l >= 0 ? u[r] = x : d[r] = x);
2062
- let S = R(b), E = R(x), O = n.threeDShape ?? t.threeD.shape ?? "box", k = O === "cone" || O === "pyramid", A = O === "coneToMax" || O === "pyramidToMax", j = (e) => {
2063
- if (!k) return 1;
2064
- let t = C && !(b > 0) ? L.min : b, n = L.fraction(t), r = L.fraction(x), i = L.fraction(e), a = r - n;
2063
+ let S = L(b), E = L(x), D = n.threeDShape ?? t.threeD.shape ?? "box", O = D === "cone" || D === "pyramid", k = D === "coneToMax" || D === "pyramidToMax", A = (e) => {
2064
+ if (!O) return 1;
2065
+ let t = C && !(b > 0) ? I.min : b, n = I.fraction(t), r = I.fraction(x), i = I.fraction(e), a = r - n;
2065
2066
  return a === 0 || !Number.isFinite(a) || !Number.isFinite(i - n) ? +(e === t) : Math.max(0, Math.min(1, 1 - (i - n) / a));
2066
- }, M = (e) => {
2067
- if (!A) return 1;
2068
- let t = x >= b ? L.max : L.min, n = C ? L.min : 0, r = L.fraction(t), i = L.fraction(n), a = L.fraction(e), o = Math.abs(r - i);
2067
+ }, j = (e) => {
2068
+ if (!k) return 1;
2069
+ let t = x >= b ? I.max : I.min, n = C ? I.min : 0, r = I.fraction(t), i = I.fraction(n), a = I.fraction(e), o = Math.abs(r - i);
2069
2070
  return !(o > 0) || ![
2070
2071
  r,
2071
2072
  i,
2072
2073
  a
2073
- ].every(Number.isFinite) ? ae(e, L.min, L.max) : Math.max(0, Math.min(1, Math.abs(r - a) / o));
2074
- }, N = A ? M(S) : j(S), P = A ? M(E) : j(E);
2074
+ ].every(Number.isFinite) ? oe(e, I.min, I.max) : Math.max(0, Math.min(1, Math.abs(r - a) / o));
2075
+ }, M = k ? j(S) : A(S), N = k ? j(E) : A(E);
2075
2076
  if (s) {
2076
- let t = H.x + L.fraction(S) * H.w, n = H.x + L.fraction(E) * H.w, s = y ? _ - 1 - r : r, c = H.y + s * f + g.offset;
2077
+ let t = B.x + I.fraction(S) * B.w, n = B.x + I.fraction(E) * B.w, s = y ? _ - 1 - r : r, c = B.y + s * f + g.offset;
2077
2078
  o.push({
2078
2079
  x: Math.min(t, n),
2079
2080
  y: c,
@@ -2086,16 +2087,16 @@ function Qt(e, t, n, i, a) {
2086
2087
  color: m,
2087
2088
  fillPaint: p.fill,
2088
2089
  lineFill: p.lineFill,
2089
- shape: O,
2090
+ shape: D,
2090
2091
  baseCoord: t,
2091
2092
  endCoord: n,
2092
- baseScale: N,
2093
- endScale: P,
2093
+ baseScale: M,
2094
+ endScale: N,
2094
2095
  omitBaseCap: !1,
2095
2096
  omitEndCap: !1,
2096
2097
  outline: v,
2097
2098
  outlineColor: p.lineColor ?? "rgba(0,0,0,0.42)",
2098
- outlineWidth: p.lineWidthEmu == null ? .75 * i / D : rt(p.lineWidthEmu, i),
2099
+ outlineWidth: p.lineWidthEmu == null ? .75 * i / U : it(p.lineWidthEmu, i),
2099
2100
  outlineDash: p.lineDash ?? "solid",
2100
2101
  outlineCustomDash: p.lineCustomDash,
2101
2102
  outlineCap: p.lineCap,
@@ -2104,7 +2105,7 @@ function Qt(e, t, n, i, a) {
2104
2105
  plottedLabelValue: x
2105
2106
  });
2106
2107
  } else {
2107
- let t = H.y + H.h - L.fraction(S) * H.h, n = H.y + H.h - L.fraction(E) * H.h, s = y ? _ - 1 - r : r, c = H.x + s * f + g.offset;
2108
+ let t = B.y + B.h - I.fraction(S) * B.h, n = B.y + B.h - I.fraction(E) * B.h, s = y ? _ - 1 - r : r, c = B.x + s * f + g.offset;
2108
2109
  o.push({
2109
2110
  x: c,
2110
2111
  y: Math.min(t, n),
@@ -2117,16 +2118,16 @@ function Qt(e, t, n, i, a) {
2117
2118
  color: m,
2118
2119
  fillPaint: p.fill,
2119
2120
  lineFill: p.lineFill,
2120
- shape: O,
2121
+ shape: D,
2121
2122
  baseCoord: t,
2122
2123
  endCoord: n,
2123
- baseScale: N,
2124
- endScale: P,
2124
+ baseScale: M,
2125
+ endScale: N,
2125
2126
  omitBaseCap: !1,
2126
2127
  omitEndCap: !1,
2127
2128
  outline: v,
2128
2129
  outlineColor: p.lineColor ?? "rgba(0,0,0,0.42)",
2129
- outlineWidth: p.lineWidthEmu == null ? .75 * i / D : rt(p.lineWidthEmu, i),
2130
+ outlineWidth: p.lineWidthEmu == null ? .75 * i / U : it(p.lineWidthEmu, i),
2130
2131
  outlineDash: p.lineDash ?? "solid",
2131
2132
  outlineCustomDash: p.lineCustomDash,
2132
2133
  outlineCap: p.lineCap,
@@ -2138,7 +2139,7 @@ function Qt(e, t, n, i, a) {
2138
2139
  }
2139
2140
  }
2140
2141
  if (c) {
2141
- let e = it(o, _);
2142
+ let e = at(o, _);
2142
2143
  for (let t = 0; t < _; t++) {
2143
2144
  let n = e[t];
2144
2145
  for (let e of [-1, 1]) {
@@ -2155,25 +2156,25 @@ function Qt(e, t, n, i, a) {
2155
2156
  }
2156
2157
  }
2157
2158
  }
2158
- Ut(e, t, m, L, s ? "horizontal" : "vertical", _, b, y, i);
2159
+ Ut(e, t, m, I, s ? "horizontal" : "vertical", _, b, y, i);
2159
2160
  let g = {
2160
- remaining: Fe,
2161
+ remaining: Ie,
2161
2162
  exceeded: !1
2162
2163
  }, v = o.flatMap((t) => {
2163
2164
  let n = yt(m, t.shape, s, t.x, t.y, t.width, t.height, t.baseCoord, t.endCoord, t.nearDepth, t.farDepth, t.color, t.baseScale, t.endScale, t.omitBaseCap, t.omitEndCap, t.outline && t.outlineColor ? {
2164
2165
  color: t.outlineColor,
2165
2166
  width: t.outlineWidth,
2166
- dash: k(t.outlineCustomDash, t.outlineDash, t.outlineWidth),
2167
+ dash: O(t.outlineCustomDash, t.outlineDash, t.outlineWidth),
2167
2168
  cap: t.outlineCap,
2168
2169
  join: t.outlineJoin
2169
2170
  } : void 0, g);
2170
2171
  return Ct(e, n, "fill", t.fillPaint, a), Ct(e, n, "outline", t.lineFill, a), n;
2171
2172
  });
2172
2173
  if (g.exceeded) return wt(e, n), !0;
2173
- for (let t of Pe(v)) St(e, t);
2174
+ for (let t of Fe(v)) St(e, t);
2174
2175
  for (let r of o) {
2175
- let o = t.series[r.seriesIndex], c = s ? m.project(r.endCoord, r.y + r.height / 2, (r.nearDepth + r.farDepth) / 2) : m.project(r.x + r.width / 2, r.endCoord, (r.nearDepth + r.farDepth) / 2), l = G[r.seriesIndex].get(r.categoryIndex);
2176
- kt(t, o, l) && te.push(() => Ot(e, t, o, r.seriesIndex, r.categoryIndex, r.labelValue, c, n, i, 0, void 0, l, "t", c, !0, t.valAxisDisplayUnits, L.max, r.plottedLabelValue, a));
2176
+ let o = t.series[r.seriesIndex], c = s ? m.project(r.endCoord, r.y + r.height / 2, (r.nearDepth + r.farDepth) / 2) : m.project(r.x + r.width / 2, r.endCoord, (r.nearDepth + r.farDepth) / 2), l = H[r.seriesIndex].get(r.categoryIndex);
2177
+ kt(t, o, l) && te.push(() => Ot(e, t, o, r.seriesIndex, r.categoryIndex, r.labelValue, c, n, i, 0, void 0, l, "t", c, !0, t.valAxisDisplayUnits, I.max, r.plottedLabelValue, a));
2177
2178
  }
2178
2179
  } else {
2179
2180
  let r = t.series.map(() => Array(_).fill(0)), o = t.series.map(() => Array(_).fill(0));
@@ -2181,37 +2182,37 @@ function Qt(e, t, n, i, a) {
2181
2182
  let e = Array(_).fill(0), n = Array(_).fill(0);
2182
2183
  for (let i = 0; i < t.series.length; i++) for (let t = 0; t < _; t++) {
2183
2184
  let a = T(i, t), s = a >= 0 ? e[t] : n[t];
2184
- r[i][t] = s, o[i][t] = Q(s, a), a >= 0 ? e[t] = Q(e[t], a) : n[t] = Q(n[t], a);
2185
+ r[i][t] = s, o[i][t] = Z(s, a), a >= 0 ? e[t] = Z(e[t], a) : n[t] = Z(n[t], a);
2185
2186
  }
2186
2187
  }
2187
2188
  let s = (e) => {
2188
- let t = m.seriesDepth(e, U, c), n = 0, r = 0;
2189
+ let t = m.seriesDepth(e, V, c), n = 0, r = 0;
2189
2190
  for (let i = 0; i < _; i++) {
2190
2191
  if (!w(e, i)) continue;
2191
- let a = c ? o[e][i] : T(e, i), s = H.x + S(i, _, b, y) * H.w, l = H.y + H.h - L.fraction(R(a)) * H.h;
2192
+ let a = c ? o[e][i] : T(e, i), s = B.x + S(i, _, b, y) * B.w, l = B.y + B.h - I.fraction(L(a)) * B.h;
2192
2193
  n += m.cameraDepth(s, l, t), r++;
2193
2194
  }
2194
2195
  return r > 0 ? n / r : -Infinity;
2195
- }, l = t.series.map((e, t) => t).sort((e, t) => s(e) - s(t) || t - e), u = t.series.map((e, n) => dt(t, e, void 0, n, n)), d = [], f = [], p = !1;
2196
+ }, l = t.series.map((e, t) => t).sort((e, t) => s(e) - s(t) || t - e), u = t.series.map((e, n) => Q(t, e, void 0, n, n)), d = [], f = [], p = !1;
2196
2197
  for (let s of l) {
2197
2198
  if (p) break;
2198
- let l = t.series[s], g = u[s], v = g.fill === null ? "transparent" : g.color, C = c ? m.prismInterval(0, 1, !0) : m.prismInterval(s, U, !1), E = H.x + H.w / 2, D = H.y + H.h / 2, A = m.cameraDepth(E, D, C.near) >= m.cameraDepth(E, D, C.far) ? C.near : C.far, j = [], N = [], F = [], I = [], R = [], z = [], ne = [], re = [], K = [], q = [];
2199
+ let l = t.series[s], g = u[s], v = g.fill === null ? "transparent" : g.color, C = c ? m.prismInterval(0, 1, !0) : m.prismInterval(s, V, !1), E = B.x + B.w / 2, k = B.y + B.h / 2, A = m.cameraDepth(E, k, C.near) >= m.cameraDepth(E, k, C.far) ? C.near : C.far, M = [], P = [], F = [], L = [], z = [], re = [], ie = [], U = [], G = [], K = [];
2199
2200
  for (let e = 0; e < _; e++) {
2200
2201
  if (!w(s, e)) {
2201
- j.push(null), N.push(null), F.push(null), I.push(null), R.push(null), z.push(null), ne.push(null), re.push(null), K.push(null), q.push(null);
2202
+ M.push(null), P.push(null), F.push(null), L.push(null), z.push(null), re.push(null), ie.push(null), U.push(null), G.push(null), K.push(null);
2202
2203
  continue;
2203
2204
  }
2204
- let n = c ? o[s][e] : T(s, e), i = c ? r[s][e] : 0, a = H.x + S(e, _, b, y) * H.w, l = L.fraction(n), u = L.fraction(i), d = Number.isFinite(u) ? u : i <= L.min ? 0 : 1, f = Number.isFinite(l) && l >= 0 && l <= 1, p = Number.isFinite(l) ? Math.max(0, Math.min(1, l)) : n <= L.min ? 0 : 1, h = H.y + H.h - p * H.h, g = H.y + H.h - Math.max(0, Math.min(1, d)) * H.h;
2205
- j.push(t.chartType.toLowerCase().includes("area") || f ? m.project(a, h, A) : null), N.push(m.project(a, g, A)), F.push(f ? m.cameraDepth(a, h, A) : null), I.push(m.cameraDepth(a, g, A)), R.push(n), z.push(a), ne.push(h), re.push(g), K.push(l), q.push(d);
2205
+ let n = c ? o[s][e] : T(s, e), i = c ? r[s][e] : 0, a = B.x + S(e, _, b, y) * B.w, l = I.fraction(n), u = I.fraction(i), d = Number.isFinite(u) ? u : i <= I.min ? 0 : 1, f = Number.isFinite(l) && l >= 0 && l <= 1, p = Number.isFinite(l) ? Math.max(0, Math.min(1, l)) : n <= I.min ? 0 : 1, h = B.y + B.h - p * B.h, g = B.y + B.h - Math.max(0, Math.min(1, d)) * B.h;
2206
+ M.push(t.chartType.toLowerCase().includes("area") || f ? m.project(a, h, A) : null), P.push(m.project(a, g, A)), F.push(f ? m.cameraDepth(a, h, A) : null), L.push(m.cameraDepth(a, g, A)), z.push(n), re.push(a), ie.push(h), U.push(g), G.push(l), K.push(d);
2206
2207
  }
2207
- let ie = [], J = null;
2208
- for (let e = 0; e < j.length; e++) {
2209
- let t = j[e], n = N[e];
2208
+ let ae = [], q = null;
2209
+ for (let e = 0; e < M.length; e++) {
2210
+ let t = M[e], n = P[e];
2210
2211
  if (!t || !n) {
2211
- x === "gap" && (J && ie.push(J), J = null);
2212
+ x === "gap" && (q && ae.push(q), q = null);
2212
2213
  continue;
2213
2214
  }
2214
- J ??= {
2215
+ q ??= {
2215
2216
  upper: [],
2216
2217
  lower: [],
2217
2218
  upperDepths: [],
@@ -2222,17 +2223,17 @@ function Qt(e, t, n, i, a) {
2222
2223
  lowerYs: [],
2223
2224
  upperFractions: [],
2224
2225
  lowerFractions: []
2225
- }, J.upper.push(t), J.lower.push(n), J.upperDepths.push(F[e] ?? 0), J.lowerDepths.push(I[e] ?? 0), J.indices.push(e), J.sceneXs.push(z[e] ?? 0), J.upperYs.push(ne[e] ?? 0), J.lowerYs.push(re[e] ?? 0), J.upperFractions.push(K[e] ?? 0), J.lowerFractions.push(q[e] ?? 0);
2226
+ }, q.upper.push(t), q.lower.push(n), q.upperDepths.push(F[e] ?? 0), q.lowerDepths.push(L[e] ?? 0), q.indices.push(e), q.sceneXs.push(re[e] ?? 0), q.upperYs.push(ie[e] ?? 0), q.lowerYs.push(U[e] ?? 0), q.upperFractions.push(G[e] ?? 0), q.lowerFractions.push(K[e] ?? 0);
2226
2227
  }
2227
- J && ie.push(J);
2228
- let Y = [], ae = [];
2228
+ q && ae.push(q);
2229
+ let J = [], oe = [];
2229
2230
  if (t.chartType.toLowerCase().includes("area")) {
2230
- for (let t of ie) {
2231
+ for (let t of ae) {
2231
2232
  let n = null;
2232
2233
  for (let r = 0; r + 1 < t.upper.length; r++) {
2233
- let i = Oe(t.lowerFractions[r], t.lowerFractions[r + 1], t.upperFractions[r], t.upperFractions[r + 1]);
2234
+ let i = ke(t.lowerFractions[r], t.lowerFractions[r + 1], t.upperFractions[r], t.upperFractions[r + 1]);
2234
2235
  for (let a = 0; a < i.length; a++) {
2235
- let o = i[a], s = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.startT, c = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.endT, l = H.y + H.h - o.lowerStart * H.h, u = H.y + H.h - o.lowerEnd * H.h, f = H.y + H.h - o.upperStart * H.h, h = H.y + H.h - o.upperEnd * H.h, g = {
2236
+ let o = i[a], s = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.startT, c = t.sceneXs[r] + (t.sceneXs[r + 1] - t.sceneXs[r]) * o.endT, l = B.y + B.h - o.lowerStart * B.h, u = B.y + B.h - o.lowerEnd * B.h, f = B.y + B.h - o.upperStart * B.h, h = B.y + B.h - o.upperEnd * B.h, g = {
2236
2237
  ...m.project(s, f, A),
2237
2238
  cameraDepth: m.cameraDepth(s, f, A),
2238
2239
  cameraWeight: m.cameraProjectionWeight(s, f, A)
@@ -2241,7 +2242,7 @@ function Qt(e, t, n, i, a) {
2241
2242
  cameraDepth: m.cameraDepth(c, h, A),
2242
2243
  cameraWeight: m.cameraProjectionWeight(c, h, A)
2243
2244
  };
2244
- n != null && Math.hypot(n.at(-1).x - g.x, n.at(-1).y - g.y) <= 1e-8 ? n.push(_) : (n && n.length >= 2 && Y.push(n), n = [g, _]);
2245
+ n != null && Math.hypot(n.at(-1).x - g.x, n.at(-1).y - g.y) <= 1e-8 ? n.push(_) : (n && n.length >= 2 && J.push(n), n = [g, _]);
2245
2246
  let y = vt(m, s, c, l, u, f, h, C.near, C.far, v, r === 0 && a === 0 && o.startT === 0, r + 2 === t.upper.length && a + 1 === i.length && o.endT === 1);
2246
2247
  for (let t of y) {
2247
2248
  if (d.length >= 1e4) {
@@ -2255,41 +2256,41 @@ function Qt(e, t, n, i, a) {
2255
2256
  cameraWeights: t.cameraWeights,
2256
2257
  layer: 0,
2257
2258
  paint: () => St(e, t)
2258
- }), ae.push(t);
2259
+ }), oe.push(t);
2259
2260
  }
2260
2261
  if (p) break;
2261
2262
  }
2262
2263
  if (p) break;
2263
2264
  }
2264
- if (n && n.length >= 2 && Y.push(n), p) break;
2265
+ if (n && n.length >= 2 && J.push(n), p) break;
2265
2266
  }
2266
- Ct(e, ae, "fill", g.fill, a);
2267
+ Ct(e, oe, "fill", g.fill, a);
2267
2268
  }
2268
- let oe = [];
2269
+ let se = [];
2269
2270
  if (!t.chartType.toLowerCase().includes("area")) {
2270
2271
  let e = [], t = null;
2271
2272
  for (let n = 0; n < _; n++) {
2272
- let r = R[n], i = r == null ? NaN : L.fraction(r);
2273
+ let r = z[n], i = r == null ? NaN : I.fraction(r);
2273
2274
  if (r == null || !Number.isFinite(i)) {
2274
2275
  x === "gap" && t && (e.push(t), t = null);
2275
2276
  continue;
2276
2277
  }
2277
2278
  t ??= [], t.push({
2278
- x: H.x + S(n, _, b, y) * H.w,
2279
+ x: B.x + S(n, _, b, y) * B.w,
2279
2280
  fraction: i,
2280
2281
  ownerIndex: n
2281
2282
  });
2282
2283
  }
2283
2284
  t && e.push(t);
2284
2285
  let n = (e) => {
2285
- let t = Math.max(0, Math.min(1, e.fraction)), n = H.y + H.h - t * H.h;
2286
+ let t = Math.max(0, Math.min(1, e.fraction)), n = B.y + B.h - t * B.h;
2286
2287
  return {
2287
2288
  ...m.project(e.x, n, A),
2288
2289
  cameraDepth: m.cameraDepth(e.x, n, A),
2289
2290
  cameraWeight: m.cameraProjectionWeight(e.x, n, A)
2290
2291
  };
2291
2292
  }, r = (e) => {
2292
- e && e.path.length >= 2 && oe.push(e);
2293
+ e && e.path.length >= 2 && se.push(e);
2293
2294
  };
2294
2295
  for (let t of e) {
2295
2296
  if (t.length < 2) continue;
@@ -2318,7 +2319,7 @@ function Qt(e, t, n, i, a) {
2318
2319
  }
2319
2320
  let i = null, a = 0;
2320
2321
  for (let t = 0; t + 1 < e.length; t++) {
2321
- let o = e[t], s = e[t + 1], c = (e) => m.project(e.x, H.y + H.h - e.fraction * H.h, A), l = c(o), u = c(s), d = Math.hypot(u.x - l.x, u.y - l.y), f = Number.isFinite(d) ? d : Math.hypot(s.x - o.x, (s.fraction - o.fraction) * H.h), p = De(o.fraction, s.fraction);
2322
+ let o = e[t], s = e[t + 1], c = (e) => m.project(e.x, B.y + B.h - e.fraction * B.h, A), l = c(o), u = c(s), d = Math.hypot(u.x - l.x, u.y - l.y), f = Number.isFinite(d) ? d : Math.hypot(s.x - o.x, (s.fraction - o.fraction) * B.h), p = Oe(o.fraction, s.fraction);
2322
2323
  if (!p || p.endT - p.startT <= 1e-12) {
2323
2324
  r(i), i = null, a += f;
2324
2325
  continue;
@@ -2329,7 +2330,7 @@ function Qt(e, t, n, i, a) {
2329
2330
  ownerIndex: s.ownerIndex
2330
2331
  }), g = c(h(p.startT)), _ = Math.hypot(g.x - l.x, g.y - l.y), v = n(h(p.startT)), y = n(h(p.endT)), b = h(p.startT), x = h(p.endT), S = (e) => ({
2331
2332
  x: e.x,
2332
- y: H.y + H.h - Math.max(0, Math.min(1, e.fraction)) * H.h
2333
+ y: B.y + B.h - Math.max(0, Math.min(1, e.fraction)) * B.h
2333
2334
  });
2334
2335
  i != null && Math.hypot(i.path.at(-1).x - v.x, i.path.at(-1).y - v.y) <= 1e-8 && i.ownerIndex === s.ownerIndex ? (i.path.push(y), i.modelPath.push(S(x)), i.endClipped = t + 1 < e.length - 1 || p.endT < 1) : (r(i), i = {
2335
2336
  path: [v, y],
@@ -2343,29 +2344,29 @@ function Qt(e, t, n, i, a) {
2343
2344
  r(i);
2344
2345
  }
2345
2346
  }
2346
- let se = t.chartType.toLowerCase().includes("area"), ce = l.lineHidden != null || l.lineColor != null || l.lineWidthEmu != null || l.chartexStyle?.lineHidden != null || l.chartexStyle?.lineColors?.some(Boolean) || l.chartexStyle?.lineWidthEmu != null || l.chartexStyle?.lineDash != null || l.chartexStyle?.lineCap != null || l.chartexStyle?.lineJoin != null || g.lineColor != null || g.lineFill !== void 0;
2347
- if (!se || g.lineFill !== null && ce) {
2347
+ let ce = t.chartType.toLowerCase().includes("area"), le = l.lineHidden != null || l.lineColor != null || l.lineWidthEmu != null || l.chartexStyle?.lineHidden != null || l.chartexStyle?.lineColors?.some(Boolean) || l.chartexStyle?.lineWidthEmu != null || l.chartexStyle?.lineDash != null || l.chartexStyle?.lineCap != null || l.chartexStyle?.lineJoin != null || g.lineColor != null || g.lineFill !== void 0;
2348
+ if (!ce || g.lineFill !== null && le) {
2348
2349
  let n = /* @__PURE__ */ new Map(), r = (e) => {
2349
- let r = W[s].get(e);
2350
+ let r = ne[s].get(e);
2350
2351
  if (!ft(r)) return g;
2351
2352
  let i = n.get(e);
2352
- return i || (i = dt(t, l, r, e, s), n.set(e, i)), i;
2353
+ return i || (i = Q(t, l, r, e, s), n.set(e, i)), i;
2353
2354
  }, o = /* @__PURE__ */ new Map(), c = {
2354
- remaining: Fe,
2355
+ remaining: Ie,
2355
2356
  exceeded: !1
2356
2357
  }, u = (t, n, r, a = r, s = 0, l) => {
2357
2358
  if (n.lineFill === null) return;
2358
- let u = n === g ? v : n.color, f = n.lineColor ?? X(u, .7), h = n.lineWidthEmu ? Math.max(.5, n.lineWidthEmu / B) * i : se ? .75 * i : Math.max(1, 2 * i), _ = {
2359
+ let u = n === g ? v : n.color, f = n.lineColor ?? Y(u, .7), h = n.lineWidthEmu ? Math.max(.5, n.lineWidthEmu / W) * i : ce ? .75 * i : Math.max(1, 2 * i), _ = {
2359
2360
  width: h,
2360
- dash: k(n.lineCustomDash, n.lineDash, h),
2361
+ dash: O(n.lineCustomDash, n.lineDash, h),
2361
2362
  dashOffset: s,
2362
2363
  lineCap: n.lineCap,
2363
2364
  startCap: r,
2364
2365
  endCap: a,
2365
2366
  lineJoin: n.lineJoin
2366
2367
  };
2367
- if (!se && l && l.length >= 2) {
2368
- let t = Ue(l.map((e) => ({
2368
+ if (!ce && l && l.length >= 2) {
2369
+ let t = We(l.map((e) => ({
2369
2370
  ...e,
2370
2371
  cameraDepth: 0,
2371
2372
  cameraWeight: 1
@@ -2376,7 +2377,7 @@ function Qt(e, t, n, i, a) {
2376
2377
  }
2377
2378
  let r = o.get(n) ?? [];
2378
2379
  for (let n of t) {
2379
- let t = Te({
2380
+ let t = Ee({
2380
2381
  outline: n.points,
2381
2382
  nearDepth: C.near,
2382
2383
  farDepth: C.far
@@ -2403,7 +2404,7 @@ function Qt(e, t, n, i, a) {
2403
2404
  o.set(n, r);
2404
2405
  return;
2405
2406
  }
2406
- let y = Ue(t, _);
2407
+ let y = We(t, _);
2407
2408
  if (y == null) {
2408
2409
  p = !0;
2409
2410
  return;
@@ -2433,82 +2434,82 @@ function Qt(e, t, n, i, a) {
2433
2434
  });
2434
2435
  }
2435
2436
  };
2436
- if (se) for (let e of Y) u(e, g, g.lineCap);
2437
- else for (let e of oe) {
2437
+ if (ce) for (let e of J) u(e, g, g.lineCap);
2438
+ else for (let e of se) {
2438
2439
  let t = r(e.ownerIndex);
2439
2440
  u(e.path, t, e.startClipped ? "butt" : t.lineCap, e.endClipped ? "butt" : t.lineCap, e.dashOffset, e.modelPath);
2440
2441
  }
2441
2442
  for (let [t, n] of o) Ct(e, n, "outline", t.lineFill, a);
2442
2443
  }
2443
- let le = (se ? l.showMarker === !0 || M(l) : l.showMarker === !0) && l.markerSymbol !== "none";
2444
- if ((t.chartType.toLowerCase().includes("line") || se) && (le || O(l))) for (let t = 0; t < j.length; t++) {
2445
- let n = j[t];
2444
+ let ue = (ce ? l.showMarker === !0 || j(l) : l.showMarker === !0) && l.markerSymbol !== "none";
2445
+ if ((t.chartType.toLowerCase().includes("line") || ce) && (ue || D(l))) for (let t = 0; t < M.length; t++) {
2446
+ let n = M[t];
2446
2447
  if (!n) continue;
2447
- let r = W[s].get(t), o = P(l, r, "circle", le);
2448
+ let r = ne[s].get(t), o = N(l, r, "circle", ue);
2448
2449
  if (o === "none") continue;
2449
- let c = r?.markerSize ?? l.markerSize ?? 5, u = ee(l, r, t, l.color ?? $e[s % $e.length]), d = V(l, r, t), p = r?.markerLine ?? l.markerLine ?? l.lineColor ?? l.color ?? $e[s % $e.length], m = (r?.markerLineWidthEmu ?? l.markerLineWidthEmu) == null ? Math.max(.75, l.lineWidthEmu == null ? i : l.lineWidthEmu / B * i) : Math.max(.25, (r?.markerLineWidthEmu ?? l.markerLineWidthEmu ?? 0) / B * i);
2450
+ let c = r?.markerSize ?? l.markerSize ?? 5, u = R(l, r, t, l.color ?? et[s % et.length]), d = ee(l, r, t), p = r?.markerLine ?? l.markerLine ?? l.lineColor ?? l.color ?? et[s % et.length], m = (r?.markerLineWidthEmu ?? l.markerLineWidthEmu) == null ? Math.max(.75, l.lineWidthEmu == null ? i : l.lineWidthEmu / W * i) : Math.max(.25, (r?.markerLineWidthEmu ?? l.markerLineWidthEmu ?? 0) / W * i);
2450
2451
  f.push(() => Dt(e, n, o, Math.max(2, c) * i, u === "00000000" ? "transparent" : `#${u}`, `#${p}`, m, d, a, i));
2451
2452
  }
2452
- for (let r = 0; r < j.length; r++) {
2453
- let u = j[r];
2453
+ for (let r = 0; r < M.length; r++) {
2454
+ let u = M[r];
2454
2455
  if (!u) continue;
2455
- let d = T(s, r), f = W[s].get(r), p = f?.markerSize ?? l.markerSize ?? 5, m = G[s].get(r);
2456
- kt(t, l, m) && te.push(() => Ot(e, t, l, s, r, h ? d / 100 : d, u, n, i, l.showMarker === !0 || f?.markerSymbol != null ? p * i / 2 : 0, void 0, m, "t", u, !0, t.valAxisDisplayUnits, L.max, c ? o[s][r] : d, a));
2456
+ let d = T(s, r), f = ne[s].get(r), p = f?.markerSize ?? l.markerSize ?? 5, m = H[s].get(r);
2457
+ kt(t, l, m) && te.push(() => Ot(e, t, l, s, r, h ? d / 100 : d, u, n, i, l.showMarker === !0 || f?.markerSymbol != null ? p * i / 2 : 0, void 0, m, "t", u, !0, t.valAxisDisplayUnits, I.max, c ? o[s][r] : d, a));
2457
2458
  }
2458
2459
  }
2459
2460
  if (p) return wt(e, n), !0;
2460
- for (let e of Pe(d)) e.paint();
2461
+ for (let e of Fe(d)) e.paint();
2461
2462
  for (let e of f) e();
2462
2463
  }
2463
- Wt(e, t, m, L, _, b, y, i, s ? "horizontal" : "vertical"), Zt(e, t, m, L, _, b, y, s ? "horizontal" : "vertical", o, i), Nt(e, t, n, m, L, _, b, y, s ? "horizontal" : "vertical", o, i);
2464
- let ne = Xt(t, m, L, _, b, y, s ? "horizontal" : "vertical"), re = (e, t) => {
2465
- if (t !== "low" && t !== "high") return ne;
2466
- let n = m.topology.nearDepth, r = ne.axisX, i = ne.axisY;
2464
+ Wt(e, t, m, I, _, b, y, i, s ? "horizontal" : "vertical"), Zt(e, t, m, I, _, b, y, s ? "horizontal" : "vertical", o, i), Nt(e, t, n, m, I, _, b, y, s ? "horizontal" : "vertical", o, i);
2465
+ let re = Xt(t, m, I, _, b, y, s ? "horizontal" : "vertical"), ie = (e, t) => {
2466
+ if (t !== "low" && t !== "high") return re;
2467
+ let n = m.topology.nearDepth, r = re.axisX, i = re.axisY;
2467
2468
  if (e === "value" === s) {
2468
- let e = H.y, r = H.y + H.h, a = m.project(H.x + H.w / 2, e, n), o = m.project(H.x + H.w / 2, r, n), s = a.y >= o.y ? e : r;
2469
+ let e = B.y, r = B.y + B.h, a = m.project(B.x + B.w / 2, e, n), o = m.project(B.x + B.w / 2, r, n), s = a.y >= o.y ? e : r;
2469
2470
  i = t === "low" ? s : s === e ? r : e;
2470
2471
  } else {
2471
- let e = H.x, i = H.x + H.w, a = m.project(e, H.y + H.h / 2, n), o = m.project(i, H.y + H.h / 2, n), s = a.x <= o.x ? e : i;
2472
+ let e = B.x, i = B.x + B.w, a = m.project(e, B.y + B.h / 2, n), o = m.project(i, B.y + B.h / 2, n), s = a.x <= o.x ? e : i;
2472
2473
  r = t === "low" ? s : s === e ? i : e;
2473
2474
  }
2474
2475
  return {
2475
2476
  axisX: r,
2476
2477
  axisY: i,
2477
2478
  depth: n,
2478
- horizontalStart: m.project(H.x, i, n),
2479
- horizontalEnd: m.project(H.x + H.w, i, n),
2480
- verticalStart: m.project(r, H.y + H.h, n),
2481
- verticalEnd: m.project(r, H.y, n)
2479
+ horizontalStart: m.project(B.x, i, n),
2480
+ horizontalEnd: m.project(B.x + B.w, i, n),
2481
+ verticalStart: m.project(r, B.y + B.h, n),
2482
+ verticalEnd: m.project(r, B.y, n)
2482
2483
  };
2483
- }, K = re("value", t.valAxisTickLabelPos), q = re("category", t.catAxisTickLabelPos), ie = r(t.valAxisFontSizeHpt, i) ?? 9 * i;
2484
- if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${ie}px ${mt(t.valAxisFontFace)}`, e.fillStyle = t.valAxisFontColor ? `#${t.valAxisFontColor}` : "#595959", e.textAlign = s ? "center" : "right", e.textBaseline = s ? "top" : "middle", !t.valAxisHidden && t.valAxisTickLabelPos !== "none") {
2485
- let { axisX: n, axisY: r, depth: a } = K, o = m.project(H.x + H.w / 2, H.y + H.h / 2, a), c = Gt(s ? K.horizontalStart : K.verticalStart, s ? K.horizontalEnd : K.verticalEnd, o, s ? "vertical" : "horizontal");
2484
+ }, G = ie("value", t.valAxisTickLabelPos), K = ie("category", t.catAxisTickLabelPos), ae = r(t.valAxisFontSizeHpt, i) ?? 9 * i;
2485
+ if (e.font = `${t.valAxisFontItalic ? "italic " : ""}${t.valAxisFontBold ? "bold " : ""}${ae}px ${mt(t.valAxisFontFace)}`, e.fillStyle = t.valAxisFontColor ? `#${t.valAxisFontColor}` : "#595959", e.textAlign = s ? "center" : "right", e.textBaseline = s ? "top" : "middle", !t.valAxisHidden && t.valAxisTickLabelPos !== "none") {
2486
+ let { axisX: n, axisY: r, depth: a } = G, o = m.project(B.x + B.w / 2, B.y + B.h / 2, a), c = Gt(s ? G.horizontalStart : G.verticalStart, s ? G.horizontalEnd : G.verticalEnd, o, s ? "vertical" : "horizontal");
2486
2487
  e.textAlign = Math.abs(c.x) < .2 ? "center" : c.x < 0 ? "right" : "left", e.textBaseline = Math.abs(c.y) < .2 ? "middle" : c.y < 0 ? "bottom" : "top";
2487
2488
  let l = Yt(t.valAxisMajorTickMark, t.valAxisLineHidden, i, 5), u = t.valAxisDisplayUnits?.divisor;
2488
- for (let i of L.majorTicks) {
2489
- let o = s ? m.project(H.x + L.fraction(i) * H.w, r, a) : m.project(n, H.y + H.h - L.fraction(i) * H.h, a);
2489
+ for (let i of I.majorTicks) {
2490
+ let o = s ? m.project(B.x + I.fraction(i) * B.w, r, a) : m.project(n, B.y + B.h - I.fraction(i) * B.h, a);
2490
2491
  e.fillText(E(h ? i / 100 : u != null && Number.isFinite(u) && u > 0 ? i / u : i, h ? t.valAxisFormatCode ?? "0%" : t.valAxisFormatCode, t.date1904), o.x + c.x * l, o.y + c.y * l);
2491
2492
  }
2492
2493
  }
2493
- let J = r(t.catAxisFontSizeHpt, i) ?? 9 * i;
2494
- if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${J}px ${mt(t.catAxisFontFace)}`, e.fillStyle = t.catAxisFontColor ? `#${t.catAxisFontColor}` : "#595959", !t.catAxisHidden && t.catAxisTickLabelPos !== "none") {
2494
+ let q = r(t.catAxisFontSizeHpt, i) ?? 9 * i;
2495
+ if (e.font = `${t.catAxisFontItalic ? "italic " : ""}${t.catAxisFontBold ? "bold " : ""}${q}px ${mt(t.catAxisFontFace)}`, e.fillStyle = t.catAxisFontColor ? `#${t.catAxisFontColor}` : "#595959", !t.catAxisHidden && t.catAxisTickLabelPos !== "none") {
2495
2496
  let n = f(Yt(t.catAxisMajorTickMark, t.catAxisLineHidden, i, 6), t.catAxisLabelOffsetPercent), r = Array.from({ length: _ }, (e, n) => z(String(g[n] ?? n + 1), t.catAxisFormatCode, t.date1904)), a = Tt(t);
2496
2497
  if (a == null && (a = 0, !s && _ > 1)) {
2497
- let t = Infinity, n = null, i = q.axisY;
2498
+ let t = Infinity, n = null, i = K.axisY;
2498
2499
  for (let e = 0; e < _; e++) {
2499
- let r = S(e, _, b, y), a = m.project(H.x + r * H.w, i, m.topology.nearDepth);
2500
+ let r = S(e, _, b, y), a = m.project(B.x + r * B.w, i, m.topology.nearDepth);
2500
2501
  n && (t = Math.min(t, Math.hypot(a.x - n.x, a.y - n.y))), n = a;
2501
2502
  }
2502
2503
  Math.max(0, ...r.map((t) => e.measureText(t).width)) > t * .9 && (a = -Math.PI / 4);
2503
2504
  }
2504
2505
  let o = Math.max(1, Math.floor(t.catAxisTickLabelSkip ?? 1));
2505
2506
  for (let t = 0; t < _; t += o) {
2506
- let i = S(t, _, b, y), { axisX: o, axisY: c, depth: l } = q, u = s ? m.project(o, H.y + S(t, _, b, y) * H.h, l) : m.project(H.x + i * H.w, c, l);
2507
+ let i = S(t, _, b, y), { axisX: o, axisY: c, depth: l } = K, u = s ? m.project(o, B.y + S(t, _, b, y) * B.h, l) : m.project(B.x + i * B.w, c, l);
2507
2508
  if (s) {
2508
- let i = m.project(o, H.y + H.h / 2, l), a = m.project(H.x + H.w / 2, H.y + H.h / 2, l), s = i.x <= a.x;
2509
+ let i = m.project(o, B.y + B.h / 2, l), a = m.project(B.x + B.w / 2, B.y + B.h / 2, l), s = i.x <= a.x;
2509
2510
  e.textAlign = s ? "right" : "left", e.textBaseline = "middle", e.fillText(r[t], u.x + (s ? -n : n), u.y);
2510
2511
  } else {
2511
- let i = m.project(H.x + H.w / 2, H.y + H.h / 2, l), o = Gt(q.horizontalStart, q.horizontalEnd, i, "vertical");
2512
+ let i = m.project(B.x + B.w / 2, B.y + B.h / 2, l), o = Gt(K.horizontalStart, K.horizontalEnd, i, "vertical");
2512
2513
  Et(e, r[t], u, a, s, o.y < 0 ? -1 : 1, n);
2513
2514
  }
2514
2515
  }
@@ -2529,7 +2530,7 @@ function $t(e, t, n, i, a) {
2529
2530
  if (!(c > 0)) return !0;
2530
2531
  let l = s.reduce((e, t) => e + t.value / c, 0);
2531
2532
  if (!(l > 0) || !Number.isFinite(l)) return !0;
2532
- let { plot: u, legend: d, legendMeasure: f } = At(e, t, n, i, "radial", a), p = ce({
2533
+ let { plot: u, legend: d, legendMeasure: f } = At(e, t, n, i, "radial", a), p = le({
2533
2534
  ...t.threeD,
2534
2535
  rotationY: t.threeD.rotationY ?? 0,
2535
2536
  heightPercent: void 0,
@@ -2543,9 +2544,9 @@ function $t(e, t, n, i, a) {
2543
2544
  for (let e of m.values()) e.explosion != null && Number.isFinite(e.explosion) && (h = Math.max(h, Math.max(0, Math.min(100, e.explosion)) / 100));
2544
2545
  let { scene: g } = p, _ = Math.min(g.w * .45 / (1 + h), p.modelDepth * .45 / (1 + h), g.h / .45);
2545
2546
  if (!(_ > 0)) return !0;
2546
- let v = g.x + g.w / 2, y = g.y + g.h / 2, b = .5, x = _ * .3 * pe(t.threeD), S = 0, C = [], w = new Map(o.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []), T = Math.max(48, Math.min(128, Math.ceil(Math.PI * 2 * _ / 4)));
2547
+ let v = g.x + g.w / 2, y = g.y + g.h / 2, b = .5, x = _ * .3 * me(t.threeD), S = 0, C = [], w = new Map(o.dataLabelOverrides?.map((e) => [e.idx, e]) ?? []), T = Math.max(48, Math.min(128, Math.ceil(Math.PI * 2 * _ / 4)));
2547
2548
  for (let e of s) {
2548
- let n = e.value / c / l, r = Lt(t.firstSliceAngle, S, n), i = m.get(e.index), a = dt(t, o, i, e.index, 0), s = r.middle, u = i?.explosion != null && Number.isFinite(i.explosion) ? Math.max(0, Math.min(100, i.explosion)) / 100 : 0, d = v + Math.cos(s) * _ * u, f = b + Math.sin(s) * _ * u / p.modelDepth, h = Math.max(2, Math.ceil(T * n)), g = Ee({
2549
+ let n = e.value / c / l, r = Lt(t.firstSliceAngle, S, n), i = m.get(e.index), a = Q(t, o, i, e.index, 0), s = r.middle, u = i?.explosion != null && Number.isFinite(i.explosion) ? Math.max(0, Math.min(100, i.explosion)) / 100 : 0, d = v + Math.cos(s) * _ * u, f = b + Math.sin(s) * _ * u / p.modelDepth, h = Math.max(2, Math.ceil(T * n)), g = De({
2549
2550
  centerX: d,
2550
2551
  centerY: y,
2551
2552
  centerDepth: f,
@@ -2581,23 +2582,23 @@ function $t(e, t, n, i, a) {
2581
2582
  lineJoin: a.lineJoin
2582
2583
  }), S += n;
2583
2584
  }
2584
- p = he(p, C.flatMap((e) => e.mesh.vertices), u, .08);
2585
+ p = ge(p, C.flatMap((e) => e.mesh.vertices), u, .08);
2585
2586
  let E = [], D = {
2586
- remaining: Fe,
2587
+ remaining: Ie,
2587
2588
  exceeded: !1
2588
- }, O = (e) => {
2589
- let t = e.lineWidthEmu == null ? .75 * i : Math.max(.25, e.lineWidthEmu / B * i);
2589
+ }, k = (e) => {
2590
+ let t = e.lineWidthEmu == null ? .75 * i : Math.max(.25, e.lineWidthEmu / W * i);
2590
2591
  return e.lineFill !== null && (e.lineColor != null || e.lineFill !== void 0) ? {
2591
2592
  color: e.lineColor ?? "rgba(0,0,0,0.42)",
2592
2593
  width: t,
2593
- dash: k(e.lineCustomDash, e.lineDash, t),
2594
+ dash: O(e.lineCustomDash, e.lineDash, t),
2594
2595
  cap: e.lineCap,
2595
2596
  join: e.lineJoin
2596
2597
  } : void 0;
2597
2598
  }, A = C.flatMap((t) => {
2598
2599
  let n = bt(p, t.mesh, t.color, void 0, D);
2599
2600
  return Ct(e, n, "fill", t.fillPaint, a), n;
2600
- }), j = [], M = C.map(O), N = M[0], P = (e) => e == null ? null : [
2601
+ }), j = [], M = C.map(k), N = M[0], P = (e) => e == null ? null : [
2601
2602
  e.color,
2602
2603
  e.width,
2603
2604
  e.dash.join(","),
@@ -2613,15 +2614,15 @@ function $t(e, t, n, i, a) {
2613
2614
  }
2614
2615
  if (D.exceeded) return wt(e, n), !0;
2615
2616
  if (F) {
2616
- for (let t of Pe(A)) St(e, t);
2617
- for (let t of Pe(j)) St(e, t);
2618
- } else for (let t of Pe([...A, ...j])) St(e, t);
2617
+ for (let t of Fe(A)) St(e, t);
2618
+ for (let t of Fe(j)) St(e, t);
2619
+ } else for (let t of Fe([...A, ...j])) St(e, t);
2619
2620
  for (let n of C) {
2620
2621
  let s = (n.start + n.end) / 2, c = w.get(n.index);
2621
2622
  if (kt(t, o, c)) {
2622
2623
  let l = o.seriesDataLabels, d = r(c?.fontSizeHpt ?? l?.fontSizeHpt ?? t.dataLabelFontSizeHpt, i) ?? 9 * i;
2623
2624
  e.font = `${c?.fontBold ?? l?.fontBold ?? t.dataLabelFontBold ? "bold " : ""}${d}px ${$(t, c?.fontFace ?? l?.fontFace ?? t.dataLabelFontFace)}`;
2624
- let f = ue({
2625
+ let f = de({
2625
2626
  customText: c?.text,
2626
2627
  showCategory: c?.showCatName ?? l?.showCatName ?? !1,
2627
2628
  showSeries: c?.showSerName ?? l?.showSerName ?? !1,
@@ -2634,7 +2635,7 @@ function $t(e, t, n, i, a) {
2634
2635
  formatCode: c?.formatCode ?? l?.formatCode ?? t.dataLabelFormatCode ?? o.valFormatCode,
2635
2636
  separator: c?.separator ?? l?.separator,
2636
2637
  date1904: t.date1904
2637
- }), m = $(t, c?.fontFace ?? l?.fontFace ?? t.dataLabelFontFace), h = c?.text && c.richRuns?.length ? oe(e, {
2638
+ }), m = $(t, c?.fontFace ?? l?.fontFace ?? t.dataLabelFontFace), h = c?.text && c.richRuns?.length ? se(e, {
2638
2639
  runs: c.richRuns,
2639
2640
  ptToPx: i,
2640
2641
  fontFamily: m,
@@ -2652,7 +2653,7 @@ function $t(e, t, n, i, a) {
2652
2653
  for (let e of E) e();
2653
2654
  let I = o.categories?.length ? o.categories : t.categories, L = Array.from({ length: I.length }, (e, t) => {
2654
2655
  let n = m.get(t), r = n?.fillHidden === !0 ? "00000000" : n?.color ?? o.dataPointColors?.[t] ?? o.color;
2655
- return r === "00000000" ? "00000000" : X(r ? `#${r}` : at(t), .8).replace(/^#/, "");
2656
+ return r === "00000000" ? "00000000" : Y(r ? `#${r}` : ot(t), .8).replace(/^#/, "");
2656
2657
  });
2657
2658
  return Ft(e, {
2658
2659
  ...t,
@@ -2665,10 +2666,10 @@ function $t(e, t, n, i, a) {
2665
2666
  }, d, i, !0, f, a), !0;
2666
2667
  }
2667
2668
  function en(e, t, n, r, i = 0) {
2668
- return !t.threeD || !(t.chartType === "pie" || nt.has(t.chartType)) ? !1 : lt(t) ? $t(e, t, n, r, i) ? !0 : Qt(e, t, n, r, i) : (wt(e, n), !0);
2669
+ return !t.threeD || !(t.chartType === "pie" || rt.has(t.chartType)) ? !1 : ut(t) ? $t(e, t, n, r, i) ? !0 : Qt(e, t, n, r, i) : (wt(e, n), !0);
2669
2670
  }
2670
2671
  //#endregion
2671
2672
  //#region src/three-d.ts
2672
- var tn = _e({ render: en }, "threeD");
2673
+ var tn = ve({ render: en }, "threeD");
2673
2674
  //#endregion
2674
2675
  export { tn as threeD };