@hpcc-js/layout 3.7.0 → 3.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,20 +1,20 @@
1
- import { Button as e, Database as t, FAChar as n, HTMLWidget as r, IconBar as i, Palette as a, Platform as o, ProgressBar as s, SVGWidget as c, Spacer as l, Text as u, TitleBar as d, ToggleButton as f, Utility as p, d3Event as m, dispatch as h, drag as g, format as _, formatLocale as v, formatPrefix as y, formatSpecifier as b, scaleLinear as x, scaleOrdinal as S, select as C, selectAll as w, sum as ee } from "@hpcc-js/common";
2
- import { Table as T } from "@hpcc-js/dgrid2";
3
- import { instanceOfIHighlight as E } from "@hpcc-js/api";
1
+ import { Button as e, Database as t, FAChar as n, HTMLWidget as r, IconBar as i, Palette as a, Platform as o, ProgressBar as s, SVGWidget as c, Spacer as l, Text as u, TitleBar as d, ToggleButton as f, Utility as p, dispatch as m, drag as h, format as g, formatLocale as _, formatPrefix as v, formatSpecifier as y, scaleLinear as b, scaleOrdinal as x, select as S, selectAll as C, sum as ee } from "@hpcc-js/common";
2
+ import { Table as w } from "@hpcc-js/dgrid2";
3
+ import { instanceOfIHighlight as T } from "@hpcc-js/api";
4
4
  //#region \0rolldown/runtime.js
5
- var D = Object.create, O = Object.defineProperty, __name = (e, t) => O(e, "name", {
5
+ var E = Object.create, D = Object.defineProperty, __name = (e, t) => D(e, "name", {
6
6
  value: t,
7
7
  configurable: !0
8
- }), k = Object.getOwnPropertyDescriptor, A = Object.getOwnPropertyNames, j = Object.getPrototypeOf, M = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), __copyProps = (e, t, n, r) => {
9
- if (t && typeof t == "object" || typeof t == "function") for (var i = A(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !M.call(e, s) && s !== n && O(e, s, {
8
+ }), O = Object.getOwnPropertyDescriptor, k = Object.getOwnPropertyNames, A = Object.getPrototypeOf, j = Object.prototype.hasOwnProperty, __commonJSMin = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), __copyProps = (e, t, n, r) => {
9
+ if (t && typeof t == "object" || typeof t == "function") for (var i = k(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !j.call(e, s) && s !== n && D(e, s, {
10
10
  get: ((e) => t[e]).bind(null, s),
11
- enumerable: !(r = k(t, s)) || r.enumerable
11
+ enumerable: !(r = O(t, s)) || r.enumerable
12
12
  });
13
13
  return e;
14
- }, __toESM = (e, t, n) => (n = e == null ? {} : D(j(e)), __copyProps(t || !e || !e.__esModule || !M.call(e, "default") ? O(n, "default", {
14
+ }, __toESM = (e, t, n) => (n = e == null ? {} : E(A(e)), __copyProps(t || !e || !e.__esModule || !j.call(e, "default") ? D(n, "default", {
15
15
  value: e,
16
16
  enumerable: !0
17
- }) : n, e)), N = "@hpcc-js/layout", te = "3.7.0", ne = "3.34.1", AbsoluteSurface = class extends r {
17
+ }) : n, e)), M = "@hpcc-js/layout", N = "3.8.0", te = "3.35.0", AbsoluteSurface = class extends r {
18
18
  constructor() {
19
19
  super(), this._tag = "div";
20
20
  }
@@ -140,27 +140,27 @@ var Surface = class extends r {
140
140
  }).style("text-align", this.surfaceTitleAlignment()).style("color", this.surfaceTitleFontColor()).style("font-size", this.surfaceTitleFontSize_exists() ? this.surfaceTitleFontSize() + "px" : null).style("font-family", this.surfaceTitleFontFamily()).style("font-weight", this.surfaceTitleFontBold() ? "bold" : "normal").style("background-color", this.surfaceTitleBackgroundColor()).style("padding", this.surfaceTitlePadding_exists() ? this.surfaceTitlePadding() + "px" : null).style("title", this.altText_exists() ? this.altText() : null), r.exit().remove();
141
141
  let i = t.select(".surfaceTitle").append("div").attr("class", "html-button-container").selectAll(".surface-button").data(this.buttonAnnotations());
142
142
  i.enter().append("button").classed("surface-button", !0).each(function(e, t) {
143
- let r = n._surfaceButtons[t] = C(this).attr("class", "surface-button" + (e.class ? " " + e.class : "")).attr("id", e.id).style("padding", e.padding).style("width", e.width).style("height", e.height).style("cursor", "pointer");
144
- e.font === "FontAwesome" ? r.style("background", "transparent").style("border", "none").on("click", function(e) {
145
- n.click(e);
143
+ let r = n._surfaceButtons[t] = S(this).attr("class", "surface-button" + (e.class ? " " + e.class : "")).attr("id", e.id).style("padding", e.padding).style("width", e.width).style("height", e.height).style("cursor", "pointer");
144
+ e.font === "FontAwesome" ? r.style("background", "transparent").style("border", "none").on("click", function(e, t) {
145
+ n.click(t);
146
146
  }).append("i").attr("class", "fa").text(function() {
147
147
  return e.label;
148
148
  }) : r.text(function() {
149
149
  return e.label;
150
- }).on("click", function(e) {
151
- n.click(e);
150
+ }).on("click", function(e, t) {
151
+ n.click(t);
152
152
  });
153
153
  }), i.exit().each(function(e, t) {
154
- let r = C(this);
154
+ let r = S(this);
155
155
  delete n._surfaceButtons[t], r.remove();
156
156
  });
157
157
  let a = t.selectAll("#" + this._id + " > .surfaceWidget").data(this.widget() ? [this.widget()] : [], function(e) {
158
158
  return e._id;
159
159
  });
160
160
  a.enter().append("div").attr("class", "surfaceWidget").each(function(e) {
161
- C(n.element().node().parentElement).classed("content-icon content-icon-" + e.classID().split("_")[1], !0), e.target(this);
161
+ S(n.element().node().parentElement).classed("content-icon content-icon-" + e.classID().split("_")[1], !0), e.target(this);
162
162
  }).merge(a).style("padding", this.surfacePadding_exists() ? this.surfacePadding() + "px" : null).each(function(e) {
163
- let r = n.widgetSize(t.select("h3"), C(this));
163
+ let r = n.widgetSize(t.select("h3"), S(this));
164
164
  r.width < 0 && (r.width = 0), r.height < 0 && (r.height = 0), e.resize({
165
165
  width: r.width,
166
166
  height: r.height
@@ -225,13 +225,13 @@ var Cell = class extends Surface {
225
225
  onMouseEnter() {
226
226
  let e = this.indicateTheseIds(), t = this.indicatorOpacity(), n = this.indicatorBorderColor(), r = this.indicatorGlowColor();
227
227
  for (let i = 0; i < e.length; i++) {
228
- let a = C("#" + e[i]), o = a.datum();
228
+ let a = S("#" + e[i]), o = a.datum();
229
229
  a && o && a.append("div").attr("class", "update-indicator").style("width", o.width() + "px").style("height", o.height() + "px").style("opacity", t).style("border-color", n).style("-webkit-box-shadow", "inset 0px 0px 30px 0px " + r).style("-moz-box-shadow", "inset 0px 0px 30px 0px " + r).style("box-shadow", "inset 0px 0px 30px 0px " + r);
230
230
  }
231
231
  }
232
232
  onMouseLeave() {
233
233
  let e = this.indicateTheseIds();
234
- for (let t = 0; t < e.length; t++) w("#" + e[t] + " > div.update-indicator").remove();
234
+ for (let t = 0; t < e.length; t++) C("#" + e[t] + " > div.update-indicator").remove();
235
235
  }
236
236
  };
237
237
  Cell.prototype._class += " layout_Cell", Cell.prototype.publish("gridRow", 0, "number", "Grid Row Position", null, { tags: ["Private"] }), Cell.prototype.publish("gridCol", 0, "number", "Grid Column Position", null, { tags: ["Private"] }), Cell.prototype.publish("gridRowSpan", 1, "number", "Grid Row Span", null, { tags: ["Private"] }), Cell.prototype.publish("gridColSpan", 1, "number", "Grid Column Span", null, { tags: ["Private"] }), Cell.prototype.publish("indicatorGlowColor", "#EEEE11", "html-color", "Glow color of update-indicator", null, { tags: ["Basic"] }), Cell.prototype.publish("indicatorBorderColor", "#F48A00", "html-color", "Border color of update-indicator", null, { tags: ["Basic"] }), Cell.prototype.publish("indicatorOpacity", .8, "number", "Opacity of update-indicator", null, { tags: ["Basic"] });
@@ -393,10 +393,10 @@ var Border = class extends r {
393
393
  clearContent(e) {
394
394
  if (!e) this.content().forEach(function(e) {
395
395
  return e.target(null), !1;
396
- }), C("#" + this.id() + " > div.borderHandle").classed("borderHandleDisabled", !0), delete this._watch, this.content([]), this.sectionTypes([]);
396
+ }), S("#" + this.id() + " > div.borderHandle").classed("borderHandleDisabled", !0), delete this._watch, this.content([]), this.sectionTypes([]);
397
397
  else {
398
398
  let t = this.sectionTypes().indexOf(e);
399
- t >= 0 && (this._watch && this.content()[t] && delete this._watch[this.content()[t].id()], this.content()[t].target(null), C("#" + this.id() + " > div.borderHandle_" + e).classed("borderHandleDisabled", !0), this.content().splice(t, 1), this.sectionTypes().splice(t, 1));
399
+ t >= 0 && (this._watch && this.content()[t] && delete this._watch[this.content()[t].id()], this.content()[t].target(null), S("#" + this.id() + " > div.borderHandle_" + e).classed("borderHandleDisabled", !0), this.content().splice(t, 1), this.sectionTypes().splice(t, 1));
400
400
  }
401
401
  }
402
402
  hasContent(e, t, n) {
@@ -420,37 +420,36 @@ var Border = class extends r {
420
420
  setLayoutOffsets() {
421
421
  this._offsetX = this._element.node().getBoundingClientRect().left + this.gutter() / 2, this._offsetY = this._element.node().getBoundingClientRect().top + this.gutter() / 2;
422
422
  }
423
- dragStart(e) {
424
- let t = m();
425
- t.sourceEvent.stopPropagation();
423
+ dragStart(e, t) {
424
+ e.sourceEvent.stopPropagation();
426
425
  let n = this;
427
- this._dragCell = e, this._dragCellStartSize = this[e + "Size"](), this[e + "ShrinkWrap"]() && (this[e + "Percentage"](0), this[e + "ShrinkWrap"](!1));
428
- let r = C("#" + n.id() + " > div.borderHandle_" + e);
429
- n._handleTop = parseFloat(r.style("top").split("px")[0]), n._handleLeft = parseFloat(r.style("left").split("px")[0]), this._dragPrevX = t.sourceEvent.clientX, this._dragPrevY = t.sourceEvent.clientY;
426
+ this._dragCell = t, this._dragCellStartSize = this[t + "Size"](), this[t + "ShrinkWrap"]() && (this[t + "Percentage"](0), this[t + "ShrinkWrap"](!1));
427
+ let r = S("#" + n.id() + " > div.borderHandle_" + t);
428
+ n._handleTop = parseFloat(r.style("top").split("px")[0]), n._handleLeft = parseFloat(r.style("left").split("px")[0]), this._dragPrevX = e.sourceEvent.clientX, this._dragPrevY = e.sourceEvent.clientY;
430
429
  }
431
- dragTick(e) {
432
- let t = this, n = m(), r = this._dragPrevX - n.sourceEvent.clientX, i = this._dragPrevY - n.sourceEvent.clientY;
433
- switch (e) {
430
+ dragTick(e, t) {
431
+ let n = this, r = this._dragPrevX - e.sourceEvent.clientX, i = this._dragPrevY - e.sourceEvent.clientY;
432
+ switch (t) {
434
433
  case "top":
435
434
  case "bottom":
436
- _moveHandles(e, i);
435
+ _moveHandles(t, i);
437
436
  break;
438
437
  case "right":
439
- case "left": _moveHandles(e, r);
438
+ case "left": _moveHandles(t, r);
440
439
  }
441
- function _moveHandles(e, n) {
442
- if (n === 0) return;
443
- let r = w("#" + t.id() + " > div.borderHandle"), i = C("#" + t.id() + " > div.borderHandle_" + e);
444
- i.classed("borderHandle_top") ? (i.style("top", t._handleTop - n + "px"), t._cellSizes.topHeight = t._handleTop - n, t._cellSizes.leftHeight = t._cellSizes.height, t._cellSizes.leftHeight -= t._cellSizes.topHeight, t._cellSizes.leftHeight -= t._cellSizes.bottomHeight, t._cellSizes.rightHeight = t._cellSizes.leftHeight) : i.classed("borderHandle_right") ? (i.style("left", t._handleLeft - n + "px"), t._cellSizes.rightWidth = t._cellSizes.width - t._handleLeft + n) : i.classed("borderHandle_bottom") ? (i.style("top", t._handleTop - n + "px"), t._cellSizes.bottomHeight = t._cellSizes.height - t._handleTop + n, t._cellSizes.leftHeight = t._cellSizes.height, t._cellSizes.leftHeight -= t._cellSizes.bottomHeight, t._cellSizes.leftHeight -= t._cellSizes.topHeight, t._cellSizes.rightHeight = t._cellSizes.leftHeight) : i.classed("borderHandle_left") && (i.style("left", t._handleLeft - n + "px"), t._cellSizes.leftWidth = t._handleLeft - n), r.each(function() {
445
- let e = C(this);
446
- e.classed("borderHandle_top") ? (e.style("width", t._cellSizes.width + "px"), e.style("top", t._cellSizes.topHeight - 3 + "px")) : e.classed("borderHandle_right") ? (e.style("left", t._cellSizes.width - t._cellSizes.rightWidth + "px"), e.style("top", t._cellSizes.topHeight + 3 + "px"), e.style("height", t._cellSizes.rightHeight + "px")) : e.classed("borderHandle_bottom") ? (e.style("width", t._cellSizes.width + "px"), e.style("top", t._cellSizes.height - t._cellSizes.bottomHeight - 3 + "px")) : e.classed("borderHandle_left") && (e.style("left", t._cellSizes.leftWidth + "px"), e.style("height", t._cellSizes.leftHeight + "px"), e.style("top", t._cellSizes.topHeight + 3 + "px"));
440
+ function _moveHandles(e, t) {
441
+ if (t === 0) return;
442
+ let r = C("#" + n.id() + " > div.borderHandle"), i = S("#" + n.id() + " > div.borderHandle_" + e);
443
+ i.classed("borderHandle_top") ? (i.style("top", n._handleTop - t + "px"), n._cellSizes.topHeight = n._handleTop - t, n._cellSizes.leftHeight = n._cellSizes.height, n._cellSizes.leftHeight -= n._cellSizes.topHeight, n._cellSizes.leftHeight -= n._cellSizes.bottomHeight, n._cellSizes.rightHeight = n._cellSizes.leftHeight) : i.classed("borderHandle_right") ? (i.style("left", n._handleLeft - t + "px"), n._cellSizes.rightWidth = n._cellSizes.width - n._handleLeft + t) : i.classed("borderHandle_bottom") ? (i.style("top", n._handleTop - t + "px"), n._cellSizes.bottomHeight = n._cellSizes.height - n._handleTop + t, n._cellSizes.leftHeight = n._cellSizes.height, n._cellSizes.leftHeight -= n._cellSizes.bottomHeight, n._cellSizes.leftHeight -= n._cellSizes.topHeight, n._cellSizes.rightHeight = n._cellSizes.leftHeight) : i.classed("borderHandle_left") && (i.style("left", n._handleLeft - t + "px"), n._cellSizes.leftWidth = n._handleLeft - t), r.each(function() {
444
+ let e = S(this);
445
+ e.classed("borderHandle_top") ? (e.style("width", n._cellSizes.width + "px"), e.style("top", n._cellSizes.topHeight - 3 + "px")) : e.classed("borderHandle_right") ? (e.style("left", n._cellSizes.width - n._cellSizes.rightWidth + "px"), e.style("top", n._cellSizes.topHeight + 3 + "px"), e.style("height", n._cellSizes.rightHeight + "px")) : e.classed("borderHandle_bottom") ? (e.style("width", n._cellSizes.width + "px"), e.style("top", n._cellSizes.height - n._cellSizes.bottomHeight - 3 + "px")) : e.classed("borderHandle_left") && (e.style("left", n._cellSizes.leftWidth + "px"), e.style("height", n._cellSizes.leftHeight + "px"), e.style("top", n._cellSizes.topHeight + 3 + "px"));
447
446
  });
448
447
  }
449
448
  }
450
- dragEnd(e) {
451
- if (e) {
452
- let t = m(), n = this._dragPrevX - t.sourceEvent.clientX, r = this._dragPrevY - t.sourceEvent.clientY;
453
- switch (e) {
449
+ dragEnd(e, t) {
450
+ if (t) {
451
+ let n = this._dragPrevX - e.sourceEvent.clientX, r = this._dragPrevY - e.sourceEvent.clientY;
452
+ switch (t) {
454
453
  case "top":
455
454
  r !== 0 && (this.topPercentage(0), this.topSize(this.topSize() === 0 ? this.getContent("top").getBBox().height - r : this.topSize() - r));
456
455
  break;
@@ -462,7 +461,7 @@ var Border = class extends r {
462
461
  break;
463
462
  case "left": n !== 0 && (this.leftPercentage(0), this.leftSize(this.leftSize() === 0 ? this.getContent("left").getBBox().width - n : this.leftSize() - n));
464
463
  }
465
- this._dragPrevX = t.sourceEvent.clientX, this._dragPrevY = t.sourceEvent.clientY;
464
+ this._dragPrevX = e.sourceEvent.clientX, this._dragPrevY = e.sourceEvent.clientY;
466
465
  }
467
466
  this.render();
468
467
  }
@@ -479,7 +478,7 @@ var Border = class extends r {
479
478
  "right",
480
479
  "bottom"
481
480
  ], t.selectAll("div.borderHandle").data(this._borderHandles).enter().append("div").classed("borderHandle", !0).each(function(e) {
482
- C(this).classed("borderHandle_" + e, !0).classed("borderHandleDisabled", n.getContent(e) === null);
481
+ S(this).classed("borderHandle_" + e, !0).classed("borderHandleDisabled", n.getContent(e) === null);
483
482
  });
484
483
  }
485
484
  update(e, t) {
@@ -489,13 +488,13 @@ var Border = class extends r {
489
488
  let r = this.contentDiv.selectAll(".cell_" + this._id).data(this.content(), function(e) {
490
489
  return e._id;
491
490
  }), i = r.enter().append("div").classed("cell_" + this._id, !0).style("position", "absolute").each(function(e, t) {
492
- C(this).classed("border-cell border-cell-" + n._sectionTypeArr[t], !0), e.target(this), C("#" + n.id() + " > div.borderHandle_" + n._sectionTypeArr[t]).classed("borderHandleDisabled", !1);
491
+ S(this).classed("border-cell border-cell-" + n._sectionTypeArr[t], !0), e.target(this), S("#" + n.id() + " > div.borderHandle_" + n._sectionTypeArr[t]).classed("borderHandleDisabled", !1);
493
492
  }).merge(r);
494
493
  i.each(function(e, t) {
495
494
  let r = n.sectionTypes()[t];
496
495
  n[r + "ShrinkWrap"] !== void 0 && n[r + "ShrinkWrap"]() ? (e.render(), n._shrinkWrapBoxes[r] = e.widget().getBBox(!0)) : delete n._shrinkWrapBoxes[r];
497
496
  });
498
- let a = g().on("start", function(e, t) {
497
+ let a = h().on("start", function(e, t) {
499
498
  n.dragStart.call(n, e, t);
500
499
  }).on("drag", function(e, t) {
501
500
  n.dragTick.call(n, e, t);
@@ -519,7 +518,7 @@ var Border = class extends r {
519
518
  }), r.exit().each(function(e) {
520
519
  e.target(null);
521
520
  }).remove(), this.getCellSizes(), t.selectAll("#" + this.id() + " > div.borderHandle").each(function() {
522
- let e = C(this);
521
+ let e = S(this);
523
522
  e.classed("borderHandle_top") ? (e.style("width", n._cellSizes.width + "px"), e.style("top", n._cellSizes.topHeight - 3 + "px")) : e.classed("borderHandle_right") ? (e.style("left", n._cellSizes.width - n._cellSizes.rightWidth + "px"), e.style("top", n._cellSizes.topHeight + 3 + "px"), e.style("height", n._cellSizes.rightHeight + "px")) : e.classed("borderHandle_bottom") ? (e.style("width", n._cellSizes.width + "px"), e.style("top", n._cellSizes.height - n._cellSizes.bottomHeight - 3 + "px")) : e.classed("borderHandle_left") && (e.style("left", n._cellSizes.leftWidth + "px"), e.style("height", n._cellSizes.leftHeight + "px"), e.style("top", n._cellSizes.topHeight + 3 + "px"));
524
523
  });
525
524
  }
@@ -528,7 +527,7 @@ var Border = class extends r {
528
527
  e._cellSizes = {};
529
528
  let t = this.element().node().getBoundingClientRect();
530
529
  e._cellSizes.width = t.width, e._cellSizes.height = t.height, this.element().selectAll("#" + this.id() + " > div > div.border-cell").each(function() {
531
- let t = C(this);
530
+ let t = S(this);
532
531
  if (typeof t.node == "function") {
533
532
  let n = t.node().getBoundingClientRect();
534
533
  t.classed("border-cell-top") ? e._cellSizes.topHeight = n.height : t.classed("border-cell-left") ? (e._cellSizes.leftWidth = n.width, e._cellSizes.leftHeight = n.height) : t.classed("border-cell-right") ? (e._cellSizes.rightWidth = n.width, e._cellSizes.rightHeight = n.height) : t.classed("border-cell-bottom") && (e._cellSizes.bottomHeight = n.height);
@@ -757,7 +756,7 @@ var Carousel = class extends r {
757
756
  e.target(this);
758
757
  }).merge(i).style("left", (e, t) => `${(t - this._prevActive) * r}px`).style("width", `${r}px`);
759
758
  this._prevActive !== n && (a.style("display", (e, t) => t === this._prevActive || t === n ? null : "none").transition().duration(this.transitionDuration()).style("left", (e, t) => `${(t - n) * r}px`).on("end", function(e, t) {
760
- C(this).style("display", () => t === n ? null : "none");
759
+ S(this).style("display", () => t === n ? null : "none");
761
760
  }), this._prevActive = n), i.exit().each(function(e) {
762
761
  e.target(null);
763
762
  }).remove();
@@ -779,103 +778,128 @@ var Carousel = class extends r {
779
778
  };
780
779
  Carousel.prototype._class += " layout_Carousel", Carousel.prototype.publish("widgets", [], "widgetArray", "Widgets", null, { render: !1 }), Carousel.prototype.publish("active", 0, "number", "Active widget"), Carousel.prototype.publish("transitionDuration", 500, "number", "Transition duration");
781
780
  //#endregion
782
- //#region ../../node_modules/d3-path/src/path.js
783
- var P = Math.PI, F = 2 * P, I = 1e-6, re = F - I;
784
- function Path() {
785
- this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "";
781
+ //#region ../../node_modules/d3-shape/src/constant.js
782
+ function constant_default(e) {
783
+ return function constant() {
784
+ return e;
785
+ };
786
786
  }
787
- function path() {
788
- return new Path();
787
+ __name(constant_default, "default");
788
+ //#endregion
789
+ //#region ../../node_modules/d3-shape/src/math.js
790
+ var P = Math.cos, F = Math.sin, I = Math.sqrt, L = Math.PI;
791
+ L / 2;
792
+ var R = 2 * L, z = Math.PI, B = 2 * z, V = 1e-6, ne = B - V;
793
+ function append(e) {
794
+ this._ += e[0];
795
+ for (let t = 1, n = e.length; t < n; ++t) this._ += arguments[t] + e[t];
789
796
  }
790
- Path.prototype = path.prototype = {
791
- constructor: Path,
792
- moveTo: function(e, t) {
793
- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t);
794
- },
795
- closePath: function() {
796
- this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._ += "Z");
797
- },
798
- lineTo: function(e, t) {
799
- this._ += "L" + (this._x1 = +e) + "," + (this._y1 = +t);
800
- },
801
- quadraticCurveTo: function(e, t, n, r) {
802
- this._ += "Q" + +e + "," + +t + "," + (this._x1 = +n) + "," + (this._y1 = +r);
803
- },
804
- bezierCurveTo: function(e, t, n, r, i, a) {
805
- this._ += "C" + +e + "," + +t + "," + +n + "," + +r + "," + (this._x1 = +i) + "," + (this._y1 = +a);
806
- },
807
- arcTo: function(e, t, n, r, i) {
808
- e = +e, t = +t, n = +n, r = +r, i = +i;
809
- var a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
810
- if (i < 0) throw Error("negative radius: " + i);
811
- if (this._x1 === null) this._ += "M" + (this._x1 = e) + "," + (this._y1 = t);
812
- else if (d > I) {
813
- if (!(Math.abs(u * s - c * l) > I) || !i) this._ += "L" + (this._x1 = e) + "," + (this._y1 = t);
797
+ function appendRound(e) {
798
+ let t = Math.floor(e);
799
+ if (!(t >= 0)) throw Error(`invalid digits: ${e}`);
800
+ if (t > 15) return append;
801
+ let n = 10 ** t;
802
+ return function(e) {
803
+ this._ += e[0];
804
+ for (let t = 1, r = e.length; t < r; ++t) this._ += Math.round(arguments[t] * n) / n + e[t];
805
+ };
806
+ }
807
+ var Path = class {
808
+ constructor(e) {
809
+ this._x0 = this._y0 = this._x1 = this._y1 = null, this._ = "", this._append = e == null ? append : appendRound(e);
810
+ }
811
+ moveTo(e, t) {
812
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}`;
813
+ }
814
+ closePath() {
815
+ this._x1 !== null && (this._x1 = this._x0, this._y1 = this._y0, this._append`Z`);
816
+ }
817
+ lineTo(e, t) {
818
+ this._append`L${this._x1 = +e},${this._y1 = +t}`;
819
+ }
820
+ quadraticCurveTo(e, t, n, r) {
821
+ this._append`Q${+e},${+t},${this._x1 = +n},${this._y1 = +r}`;
822
+ }
823
+ bezierCurveTo(e, t, n, r, i, a) {
824
+ this._append`C${+e},${+t},${+n},${+r},${this._x1 = +i},${this._y1 = +a}`;
825
+ }
826
+ arcTo(e, t, n, r, i) {
827
+ if (e = +e, t = +t, n = +n, r = +r, i = +i, i < 0) throw Error(`negative radius: ${i}`);
828
+ let a = this._x1, o = this._y1, s = n - e, c = r - t, l = a - e, u = o - t, d = l * l + u * u;
829
+ if (this._x1 === null) this._append`M${this._x1 = e},${this._y1 = t}`;
830
+ else if (d > V) {
831
+ if (!(Math.abs(u * s - c * l) > V) || !i) this._append`L${this._x1 = e},${this._y1 = t}`;
814
832
  else {
815
- var f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((P - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
816
- Math.abs(y - 1) > I && (this._ += "L" + (e + y * l) + "," + (t + y * u)), this._ += "A" + i + "," + i + ",0,0," + +(u * f > l * p) + "," + (this._x1 = e + b * s) + "," + (this._y1 = t + b * c);
833
+ let f = n - a, p = r - o, m = s * s + c * c, h = f * f + p * p, g = Math.sqrt(m), _ = Math.sqrt(d), v = i * Math.tan((z - Math.acos((m + d - h) / (2 * g * _))) / 2), y = v / _, b = v / g;
834
+ Math.abs(y - 1) > V && this._append`L${e + y * l},${t + y * u}`, this._append`A${i},${i},0,0,${+(u * f > l * p)},${this._x1 = e + b * s},${this._y1 = t + b * c}`;
817
835
  }
818
836
  }
819
- },
820
- arc: function(e, t, n, r, i, a) {
821
- e = +e, t = +t, n = +n, a = !!a;
822
- var o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
823
- if (n < 0) throw Error("negative radius: " + n);
824
- this._x1 === null ? this._ += "M" + c + "," + l : (Math.abs(this._x1 - c) > I || Math.abs(this._y1 - l) > I) && (this._ += "L" + c + "," + l), n && (d < 0 && (d = d % F + F), d > re ? this._ += "A" + n + "," + n + ",0,1," + u + "," + (e - o) + "," + (t - s) + "A" + n + "," + n + ",0,1," + u + "," + (this._x1 = c) + "," + (this._y1 = l) : d > I && (this._ += "A" + n + "," + n + ",0," + +(d >= P) + "," + u + "," + (this._x1 = e + n * Math.cos(i)) + "," + (this._y1 = t + n * Math.sin(i))));
825
- },
826
- rect: function(e, t, n, r) {
827
- this._ += "M" + (this._x0 = this._x1 = +e) + "," + (this._y0 = this._y1 = +t) + "h" + +n + "v" + +r + "h" + -n + "Z";
828
- },
829
- toString: function() {
837
+ }
838
+ arc(e, t, n, r, i, a) {
839
+ if (e = +e, t = +t, n = +n, a = !!a, n < 0) throw Error(`negative radius: ${n}`);
840
+ let o = n * Math.cos(r), s = n * Math.sin(r), c = e + o, l = t + s, u = 1 ^ a, d = a ? r - i : i - r;
841
+ this._x1 === null ? this._append`M${c},${l}` : (Math.abs(this._x1 - c) > V || Math.abs(this._y1 - l) > V) && this._append`L${c},${l}`, n && (d < 0 && (d = d % B + B), d > ne ? this._append`A${n},${n},0,1,${u},${e - o},${t - s}A${n},${n},0,1,${u},${this._x1 = c},${this._y1 = l}` : d > V && this._append`A${n},${n},0,${+(d >= z)},${u},${this._x1 = e + n * Math.cos(i)},${this._y1 = t + n * Math.sin(i)}`);
842
+ }
843
+ rect(e, t, n, r) {
844
+ this._append`M${this._x0 = this._x1 = +e},${this._y0 = this._y1 = +t}h${n = +n}v${+r}h${-n}Z`;
845
+ }
846
+ toString() {
830
847
  return this._;
831
848
  }
832
849
  };
850
+ Path.prototype;
833
851
  //#endregion
834
- //#region ../../node_modules/d3-shape/src/constant.js
835
- function constant_default(e) {
836
- return function constant() {
852
+ //#region ../../node_modules/d3-shape/src/path.js
853
+ function withPath(e) {
854
+ let t = 3;
855
+ return e.digits = function(n) {
856
+ if (!arguments.length) return t;
857
+ if (n == null) t = null;
858
+ else {
859
+ let e = Math.floor(n);
860
+ if (!(e >= 0)) throw RangeError(`invalid digits: ${n}`);
861
+ t = e;
862
+ }
837
863
  return e;
838
- };
864
+ }, () => new Path(t);
839
865
  }
840
- __name(constant_default, "default");
841
866
  //#endregion
842
- //#region ../../node_modules/d3-shape/src/math.js
843
- var L = Math.PI;
844
- L / 2;
845
- var R = 2 * L, z = { draw: function(e, t) {
846
- var n = Math.sqrt(t / L);
867
+ //#region ../../node_modules/d3-shape/src/symbol/circle.js
868
+ var H = { draw(e, t) {
869
+ let n = I(t / L);
847
870
  e.moveTo(n, 0), e.arc(0, 0, n, 0, R);
848
- } }, ie = { draw: function(e, t) {
849
- var n = Math.sqrt(t / 5) / 2;
871
+ } }, re = { draw(e, t) {
872
+ let n = I(t / 5) / 2;
850
873
  e.moveTo(-3 * n, -n), e.lineTo(-n, -n), e.lineTo(-n, -3 * n), e.lineTo(n, -3 * n), e.lineTo(n, -n), e.lineTo(3 * n, -n), e.lineTo(3 * n, n), e.lineTo(n, n), e.lineTo(n, 3 * n), e.lineTo(-n, 3 * n), e.lineTo(-n, n), e.lineTo(-3 * n, n), e.closePath();
851
- } }, B = Math.sqrt(1 / 3), ae = B * 2, oe = { draw: function(e, t) {
852
- var n = Math.sqrt(t / ae), r = n * B;
874
+ } }, U = I(1 / 3), ie = U * 2, ae = { draw(e, t) {
875
+ let n = I(t / ie), r = n * U;
853
876
  e.moveTo(0, -n), e.lineTo(r, 0), e.lineTo(0, n), e.lineTo(-r, 0), e.closePath();
854
- } }, se = .8908130915292852, V = Math.sin(L / 10) / Math.sin(7 * L / 10), ce = Math.sin(R / 10) * V, le = -Math.cos(R / 10) * V, H = { draw: function(e, t) {
855
- var n = Math.sqrt(t * se), r = ce * n, i = le * n;
877
+ } }, oe = { draw(e, t) {
878
+ let n = I(t), r = -n / 2;
879
+ e.rect(r, r, n, n);
880
+ } }, se = .8908130915292852, W = F(L / 10) / F(7 * L / 10), ce = F(R / 10) * W, le = -P(R / 10) * W, ue = { draw(e, t) {
881
+ let n = I(t * se), r = ce * n, i = le * n;
856
882
  e.moveTo(0, -n), e.lineTo(r, i);
857
- for (var a = 1; a < 5; ++a) {
858
- var o = R * a / 5, s = Math.cos(o), c = Math.sin(o);
859
- e.lineTo(c * n, -s * n), e.lineTo(s * r - c * i, c * r + s * i);
883
+ for (let t = 1; t < 5; ++t) {
884
+ let a = R * t / 5, o = P(a), s = F(a);
885
+ e.lineTo(s * n, -o * n), e.lineTo(o * r - s * i, s * r + o * i);
860
886
  }
861
887
  e.closePath();
862
- } }, U = { draw: function(e, t) {
863
- var n = Math.sqrt(t), r = -n / 2;
864
- e.rect(r, r, n, n);
865
- } }, W = Math.sqrt(3), ue = { draw: function(e, t) {
866
- var n = -Math.sqrt(t / (W * 3));
867
- e.moveTo(0, n * 2), e.lineTo(-W * n, -n), e.lineTo(W * n, -n), e.closePath();
868
- } }, G = -.5, K = Math.sqrt(3) / 2, q = 1 / Math.sqrt(12), de = (q / 2 + 1) * 3, fe = { draw: function(e, t) {
869
- var n = Math.sqrt(t / de), r = n / 2, i = n * q, a = r, o = n * q + n, s = -a, c = o;
870
- e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(G * r - K * i, K * r + G * i), e.lineTo(G * a - K * o, K * a + G * o), e.lineTo(G * s - K * c, K * s + G * c), e.lineTo(G * r + K * i, G * i - K * r), e.lineTo(G * a + K * o, G * o - K * a), e.lineTo(G * s + K * c, G * c - K * s), e.closePath();
888
+ } }, G = I(3), de = { draw(e, t) {
889
+ let n = -I(t / (G * 3));
890
+ e.moveTo(0, n * 2), e.lineTo(-G * n, -n), e.lineTo(G * n, -n), e.closePath();
891
+ } }, K = -.5, q = I(3) / 2, J = 1 / I(12), fe = (J / 2 + 1) * 3, pe = { draw(e, t) {
892
+ let n = I(t / fe), r = n / 2, i = n * J, a = r, o = n * J + n, s = -a, c = o;
893
+ e.moveTo(r, i), e.lineTo(a, o), e.lineTo(s, c), e.lineTo(K * r - q * i, q * r + K * i), e.lineTo(K * a - q * o, q * a + K * o), e.lineTo(K * s - q * c, q * s + K * c), e.lineTo(K * r + q * i, K * i - q * r), e.lineTo(K * a + q * o, K * o - q * a), e.lineTo(K * s + q * c, K * c - q * s), e.closePath();
871
894
  } };
872
895
  //#endregion
873
896
  //#region ../../node_modules/d3-shape/src/symbol.js
874
- function symbol_default() {
875
- var e = constant_default(z), t = constant_default(64), n = null;
897
+ function Symbol$1(e, t) {
898
+ let n = null, r = withPath(symbol);
899
+ e = typeof e == "function" ? e : constant_default(e || H), t = typeof t == "function" ? t : constant_default(t === void 0 ? 64 : +t);
876
900
  function symbol() {
877
- var r;
878
- if (n ||= r = path(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), r) return n = null, r + "" || null;
901
+ let i;
902
+ if (n ||= i = r(), e.apply(this, arguments).draw(n, +t.apply(this, arguments)), i) return n = null, i + "" || null;
879
903
  }
880
904
  return symbol.type = function(t) {
881
905
  return arguments.length ? (e = typeof t == "function" ? t : constant_default(t), symbol) : e;
@@ -885,27 +909,27 @@ function symbol_default() {
885
909
  return arguments.length ? (n = e ?? null, symbol) : n;
886
910
  }, symbol;
887
911
  }
888
- __name(symbol_default, "default");
912
+ __name(Symbol$1, "Symbol");
889
913
  //#endregion
890
914
  //#region ../../node_modules/d3-svg-legend/indexRollupNext.js
891
- var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
915
+ var me = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
892
916
  return typeof e;
893
917
  } : function(e) {
894
918
  return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
895
- }, J = function d3_identity(e) {
919
+ }, Y = function d3_identity(e) {
896
920
  return e;
897
- }, Y = function d3_reverse(e) {
921
+ }, X = function d3_reverse(e) {
898
922
  for (var t = [], n = 0, r = e.length; n < r; n++) t[n] = e[r - n - 1];
899
923
  return t;
900
- }, X = function d3_textWrapping(e, t) {
924
+ }, Z = function d3_textWrapping(e, t) {
901
925
  e.each(function() {
902
- var e = C(this), n = e.text().split(/\s+/).reverse(), r, i = [], a = 1.2;
926
+ var e = S(this), n = e.text().split(/\s+/).reverse(), r, i = [], a = 1.2;
903
927
  e.attr("y");
904
928
  for (var o = parseFloat(e.attr("dy")) || 0, s = e.text(null).append("tspan").attr("x", 0).attr("dy", o + "em"); r = n.pop();) i.push(r), s.text(i.join(" ")), s.node().getComputedTextLength() > t && i.length > 1 && (i.pop(), s.text(i.join(" ")), i = [r], s = e.append("tspan").attr("x", 0).attr("dy", a + o + "em").text(r));
905
929
  });
906
- }, me = function d3_mergeLabels() {
930
+ }, he = function d3_mergeLabels() {
907
931
  var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [], t = arguments[1], n = arguments[2], r = arguments[3], i = arguments[4];
908
- if ((t === void 0 ? "undefined" : pe(t)) === "object") {
932
+ if ((t === void 0 ? "undefined" : me(t)) === "object") {
909
933
  if (t.length === 0) return e;
910
934
  for (var a = t.length; a < e.length; a++) t.push(e[a]);
911
935
  return t;
@@ -922,7 +946,7 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
922
946
  return o;
923
947
  }
924
948
  return e;
925
- }, he = function d3_linearLegend(e, t, n) {
949
+ }, ge = function d3_linearLegend(e, t, n) {
926
950
  var r = [];
927
951
  if (t.length > 1) r = t;
928
952
  else for (var i = e.domain(), a = (i[i.length - 1] - i[0]) / (t - 1), o = 0; o < t; o++) r.push(i[0] + o * a);
@@ -934,7 +958,7 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
934
958
  return e(t);
935
959
  }
936
960
  };
937
- }, ge = function d3_quantLegend(e, t, n) {
961
+ }, _e = function d3_quantLegend(e, t, n) {
938
962
  var r = e.range().map(function(r) {
939
963
  var i = e.invertExtent(r);
940
964
  return t(i[0]) + " " + n + " " + t(i[1]);
@@ -942,9 +966,9 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
942
966
  return {
943
967
  data: e.range(),
944
968
  labels: r,
945
- feature: J
969
+ feature: Y
946
970
  };
947
- }, _e = function d3_ordinalLegend(e) {
971
+ }, ve = function d3_ordinalLegend(e) {
948
972
  return {
949
973
  data: e.domain(),
950
974
  labels: e.domain(),
@@ -952,11 +976,11 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
952
976
  return e(t);
953
977
  }
954
978
  };
955
- }, ve = function d3_cellOver(e, t, n) {
979
+ }, ye = function d3_cellOver(e, t, n) {
956
980
  e.call("cellover", n, t);
957
- }, Z = function d3_cellOut(e, t, n) {
981
+ }, be = function d3_cellOut(e, t, n) {
958
982
  e.call("cellout", n, t);
959
- }, ye = function d3_cellClick(e, t, n) {
983
+ }, xe = function d3_cellClick(e, t, n) {
960
984
  e.call("cellclick", n, t);
961
985
  }, Q = {
962
986
  d3_drawShapes: function d3_drawShapes(e, t, n, r, i, a) {
@@ -964,12 +988,12 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
964
988
  },
965
989
  d3_addText: function d3_addText(e, t, n, r, i) {
966
990
  t.append("text").attr("class", r + "label");
967
- var a = e.selectAll("g." + r + "cell text." + r + "label").data(n).text(J);
968
- return i && e.selectAll("g." + r + "cell text." + r + "label").call(X, i), a;
991
+ var a = e.selectAll("g." + r + "cell text." + r + "label").data(n).text(Y);
992
+ return i && e.selectAll("g." + r + "cell text." + r + "label").call(Z, i), a;
969
993
  },
970
994
  d3_calcType: function d3_calcType(e, t, n, r, i, a) {
971
- var o = e.invertExtent ? ge(e, i, a) : e.ticks ? he(e, n, i) : _e(e), s = e.range && e.range() || e.domain();
972
- return o.labels = me(o.labels, r, e.domain(), s, a), t && (o.labels = Y(o.labels), o.data = Y(o.data)), o;
995
+ var o = e.invertExtent ? _e(e, i, a) : e.ticks ? ge(e, n, i) : ve(e), s = e.range && e.range() || e.domain();
996
+ return o.labels = he(o.labels, r, e.domain(), s, a), t && (o.labels = X(o.labels), o.data = X(o.data)), o;
973
997
  },
974
998
  d3_filterCells: function d3_filterCells(e, t) {
975
999
  var n = e.data.map(function(t, n) {
@@ -993,16 +1017,16 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
993
1017
  },
994
1018
  d3_addEvents: function d3_addEvents(e, t) {
995
1019
  e.on("mouseover.legend", function(e) {
996
- ve(t, e, this);
1020
+ ye(t, e, this);
997
1021
  }).on("mouseout.legend", function(e) {
998
- Z(t, e, this);
1022
+ be(t, e, this);
999
1023
  }).on("click.legend", function(e) {
1000
- ye(t, e, this);
1024
+ xe(t, e, this);
1001
1025
  });
1002
1026
  },
1003
1027
  d3_title: function d3_title(e, t, n, r) {
1004
1028
  if (t !== "") {
1005
- e.selectAll("text." + n + "legendTitle").data([t]).enter().append("text").attr("class", n + "legendTitle"), e.selectAll("text." + n + "legendTitle").text(t), r && e.selectAll("text." + n + "legendTitle").call(X, r);
1029
+ e.selectAll("text." + n + "legendTitle").data([t]).enter().append("text").attr("class", n + "legendTitle"), e.selectAll("text." + n + "legendTitle").text(t), r && e.selectAll("text." + n + "legendTitle").call(Z, r);
1006
1030
  var i = e.select("." + n + "legendCells"), a = e.select("." + n + "legendTitle").nodes().map(function(e) {
1007
1031
  return e.getBBox().height;
1008
1032
  })[0], o = -i.nodes().map(function(e) {
@@ -1012,31 +1036,31 @@ var pe = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? fun
1012
1036
  }
1013
1037
  },
1014
1038
  d3_defaultLocale: {
1015
- format: _,
1016
- formatPrefix: y
1039
+ format: g,
1040
+ formatPrefix: v
1017
1041
  },
1018
1042
  d3_defaultFormatSpecifier: ".01f",
1019
1043
  d3_defaultDelimiter: "to"
1020
1044
  };
1021
1045
  function color() {
1022
- var e = x(), t = "rect", n = 15, r = 15, i = 10, a = 2, o = [5], s = void 0, c = [], l = "", u = !1, d = "", f = Q.d3_defaultLocale, p = Q.d3_defaultFormatSpecifier, m = 10, g = "middle", _ = Q.d3_defaultDelimiter, y = void 0, S = "vertical", C = !1, w = void 0, T = void 0, E = h("cellover", "cellout", "cellclick");
1023
- function legend(h) {
1024
- var v = Q.d3_calcType(e, C, o, c, f.format(p), _);
1025
- h.selectAll("g").data([e]).enter().append("g").attr("class", l + "legendCells"), s && Q.d3_filterCells(v, s);
1026
- var b = h.select("." + l + "legendCells").selectAll("." + l + "cell").data(v.data), x = b.enter().append("g").attr("class", l + "cell");
1027
- x.append(t).attr("class", l + "swatch");
1028
- var D = h.selectAll("g." + l + "cell " + t + "." + l + "swatch").data(v.data);
1029
- Q.d3_addEvents(x, E), b.exit().transition().style("opacity", 0).remove(), D.exit().transition().style("opacity", 0).remove(), D = D.merge(D), Q.d3_drawShapes(t, D, r, n, i, w);
1030
- var O = Q.d3_addText(h, x, v.labels, l, y);
1031
- b = x.merge(b);
1046
+ var e = b(), t = "rect", n = 15, r = 15, i = 10, a = 2, o = [5], s = void 0, c = [], l = "", u = !1, d = "", f = Q.d3_defaultLocale, p = Q.d3_defaultFormatSpecifier, h = 10, g = "middle", v = Q.d3_defaultDelimiter, x = void 0, S = "vertical", C = !1, w = void 0, T = void 0, E = m("cellover", "cellout", "cellclick");
1047
+ function legend(m) {
1048
+ var _ = Q.d3_calcType(e, C, o, c, f.format(p), v);
1049
+ m.selectAll("g").data([e]).enter().append("g").attr("class", l + "legendCells"), s && Q.d3_filterCells(_, s);
1050
+ var y = m.select("." + l + "legendCells").selectAll("." + l + "cell").data(_.data), b = y.enter().append("g").attr("class", l + "cell");
1051
+ b.append(t).attr("class", l + "swatch");
1052
+ var D = m.selectAll("g." + l + "cell " + t + "." + l + "swatch").data(_.data);
1053
+ Q.d3_addEvents(b, E), y.exit().transition().style("opacity", 0).remove(), D.exit().transition().style("opacity", 0).remove(), D = D.merge(D), Q.d3_drawShapes(t, D, r, n, i, w);
1054
+ var O = Q.d3_addText(m, b, _.labels, l, x);
1055
+ y = b.merge(y);
1032
1056
  var k = O.nodes().map(function(e) {
1033
1057
  return e.getBBox();
1034
1058
  }), A = D.nodes().map(function(e) {
1035
1059
  return e.getBBox();
1036
1060
  });
1037
1061
  u ? D.attr("class", function(e) {
1038
- return l + "swatch " + v.feature(e);
1039
- }) : t == "line" ? D.style("stroke", v.feature) : D.style("fill", v.feature);
1062
+ return l + "swatch " + _.feature(e);
1063
+ }) : t == "line" ? D.style("stroke", _.feature) : D.style("fill", _.feature);
1040
1064
  var j = void 0, M = void 0, N = g == "start" ? 0 : g == "middle" ? .5 : 1;
1041
1065
  S === "vertical" ? (function() {
1042
1066
  var e = k.map(function(e, t) {
@@ -1045,13 +1069,13 @@ function color() {
1045
1069
  j = function cellTrans(t, n) {
1046
1070
  return "translate(0, " + (ee(e.slice(0, n)) + n * a) + ")";
1047
1071
  }, M = function textTrans(e, t) {
1048
- return "translate( " + (A[t].width + A[t].x + m) + ", " + (A[t].y + A[t].height / 2 + 5) + ")";
1072
+ return "translate( " + (A[t].width + A[t].x + h) + ", " + (A[t].y + A[t].height / 2 + 5) + ")";
1049
1073
  };
1050
1074
  })() : S === "horizontal" && (j = function cellTrans(e, t) {
1051
1075
  return "translate(" + t * (A[t].width + a) + ",0)";
1052
1076
  }, M = function textTrans(e, t) {
1053
- return "translate(" + (A[t].width * N + A[t].x) + ",\n " + (A[t].height + A[t].y + m + 8) + ")";
1054
- }), Q.d3_placement(S, b, j, O, M, g), Q.d3_title(h, d, l, T), b.transition().style("opacity", 1);
1077
+ return "translate(" + (A[t].width * N + A[t].x) + ",\n " + (A[t].height + A[t].y + h + 8) + ")";
1078
+ }), Q.d3_placement(S, y, j, O, M, g), Q.d3_title(m, d, l, T), y.transition().style("opacity", 1);
1055
1079
  }
1056
1080
  return legend.scale = function(t) {
1057
1081
  return arguments.length ? (e = t, legend) : e;
@@ -1074,15 +1098,15 @@ function color() {
1074
1098
  }, legend.labelAlign = function(e) {
1075
1099
  return arguments.length ? ((e == "start" || e == "end" || e == "middle") && (g = e), legend) : g;
1076
1100
  }, legend.locale = function(e) {
1077
- return arguments.length ? (f = v(e), legend) : f;
1101
+ return arguments.length ? (f = _(e), legend) : f;
1078
1102
  }, legend.labelFormat = function(e) {
1079
- return arguments.length ? (p = b(e), legend) : legend.locale().format(p);
1103
+ return arguments.length ? (p = y(e), legend) : legend.locale().format(p);
1080
1104
  }, legend.labelOffset = function(e) {
1081
- return arguments.length ? (m = +e, legend) : m;
1105
+ return arguments.length ? (h = +e, legend) : h;
1082
1106
  }, legend.labelDelimiter = function(e) {
1083
- return arguments.length ? (_ = e, legend) : _;
1107
+ return arguments.length ? (v = e, legend) : v;
1084
1108
  }, legend.labelWrap = function(e) {
1085
- return arguments.length ? (y = e, legend) : y;
1109
+ return arguments.length ? (x = e, legend) : x;
1086
1110
  }, legend.useClass = function(e) {
1087
1111
  return arguments.length ? ((e === !0 || e === !1) && (u = e), legend) : u;
1088
1112
  }, legend.orient = function(e) {
@@ -1111,18 +1135,18 @@ var Legend = class extends c {
1111
1135
  _legendOrdinal;
1112
1136
  _disabled = [];
1113
1137
  _symbolTypeMap = {
1114
- circle: z,
1115
- cross: ie,
1116
- diamond: oe,
1117
- square: U,
1118
- star: H,
1119
- triangle: ue,
1120
- wye: fe
1138
+ circle: H,
1139
+ cross: re,
1140
+ diamond: ae,
1141
+ square: oe,
1142
+ star: ue,
1143
+ triangle: de,
1144
+ wye: pe
1121
1145
  };
1122
1146
  constructor(e) {
1123
1147
  super(), this._owner = e, this._drawStartPos = "origin";
1124
1148
  let t = this;
1125
- this._legendOrdinal = color().shape("path", symbol_default().type(z).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick", function(e) {
1149
+ this._legendOrdinal = color().shape("path", Symbol$1().type(H).size(150)()).shapePadding(10).shapeRadius(10).on("cellclick", function(e) {
1126
1150
  t.onClick(e, this);
1127
1151
  }).on("cellover", (e) => {
1128
1152
  t.onOver(e, this);
@@ -1250,7 +1274,7 @@ var Legend = class extends c {
1250
1274
  }
1251
1275
  break;
1252
1276
  case "rainbow":
1253
- let s = this.getPalette(), c = _(this.rainbowFormat()), l = this.getWidget(), u = this.rainbowBins(), d = l._dataMinWeight, f = l._dataMaxWeight, p = (f - d) / (u - 1);
1277
+ let s = this.getPalette(), c = g(this.rainbowFormat()), l = this.getWidget(), u = this.rainbowBins(), d = l._dataMinWeight, f = l._dataMaxWeight, p = (f - d) / (u - 1);
1254
1278
  e.push([s(d, d, f), c(d)]);
1255
1279
  for (let t = 1; t < u - 1; ++t) {
1256
1280
  let n = p * t;
@@ -1269,8 +1293,8 @@ var Legend = class extends c {
1269
1293
  super.update(e, t);
1270
1294
  let { dataArr: n, maxLabelWidth: r, total: i } = this.calcMetaData(), a = this.shapeRadius(), o = this.radiusToSymbolSize(a), s = this.itemPadding();
1271
1295
  this.orientation() === "horizontal" && (s += r - a * 2);
1272
- let c = S().domain(n.map((e) => e[1])).range(n.map((e) => e[0]));
1273
- this._legendOrdinal.shape("path", symbol_default().type(this._symbolTypeMap[this.symbolType()]).size(o)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(s).scale(c).labels((e) => n[e.i][2]), this._g.call(this._legendOrdinal), this.updateDisabled(t, n);
1296
+ let c = x().domain(n.map((e) => e[1])).range(n.map((e) => e[0]));
1297
+ this._legendOrdinal.shape("path", Symbol$1().type(this._symbolTypeMap[this.symbolType()]).size(o)()).orient(this.orientation()).title(this.title()).labelWrap(this.labelMaxWidth()).labelAlign(this.labelAlign()).shapePadding(s).scale(c).labels((e) => n[e.i][2]), this._g.call(this._legendOrdinal), this.updateDisabled(t, n);
1274
1298
  let l = this._g.select(".legendCells").node().getBBox(), u = Math.abs(l.x), d = Math.abs(l.y) + 1;
1275
1299
  if (this.orientation() === "horizontal") {
1276
1300
  if (this.labelAlign() === "start" ? u += 1 : this.labelAlign() === "end" && --u, this.width() > l.width) {
@@ -1319,7 +1343,7 @@ var Legend = class extends c {
1319
1343
  }
1320
1344
  }
1321
1345
  onOver(e, t) {
1322
- if (E(this._owner)) switch (this.getPaletteType()) {
1346
+ if (T(this._owner)) switch (this.getPaletteType()) {
1323
1347
  case "ordinal": switch (this.dataFamily()) {
1324
1348
  case "2D":
1325
1349
  case "ND": this._disabled.indexOf(e) < 0 && this._owner.highlightColumn(e);
@@ -1327,7 +1351,7 @@ var Legend = class extends c {
1327
1351
  }
1328
1352
  }
1329
1353
  onOut(e, t) {
1330
- if (E(this._owner)) switch (this.getPaletteType()) {
1354
+ if (T(this._owner)) switch (this.getPaletteType()) {
1331
1355
  case "ordinal": switch (this.dataFamily()) {
1332
1356
  case "2D":
1333
1357
  case "ND": this._owner.highlightColumn();
@@ -1500,7 +1524,7 @@ var ChartPanel = class extends Border2 {
1500
1524
  this._toggleLegend
1501
1525
  ]);
1502
1526
  _carousel = new Carousel();
1503
- _table = new T();
1527
+ _table = new w();
1504
1528
  _widget;
1505
1529
  _hideLegendToggleList = ["dgrid_Table", "dgrid2_Table"];
1506
1530
  constructor() {
@@ -1548,7 +1572,7 @@ var ChartPanel = class extends Border2 {
1548
1572
  if (e) {
1549
1573
  let t = `series-${this.cssTag(e)}`;
1550
1574
  this._centerWA.element().selectAll(".series").each(function() {
1551
- let e = C(this), n = e.classed(t);
1575
+ let e = S(this), n = e.classed(t);
1552
1576
  e.classed("highlight", n).classed("lowlight", !n);
1553
1577
  });
1554
1578
  } else this._centerWA.element().selectAll(".series").classed("highlight", !1).classed("lowlight", !1);
@@ -1684,7 +1708,7 @@ var FlexGrid = class extends r {
1684
1708
  super();
1685
1709
  }
1686
1710
  enter(e, t) {
1687
- super.enter(e, t), C(e.parentNode).style("height", "100%").style("width", "100%");
1711
+ super.enter(e, t), S(e.parentNode).style("height", "100%").style("width", "100%");
1688
1712
  }
1689
1713
  update(e, t) {
1690
1714
  super.update(e, t);
@@ -1755,8 +1779,7 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
1755
1779
  direction: "horizontal"
1756
1780
  },
1757
1781
  toString: function() {
1758
- var e = this.grid.length, t = "\n #|", n = "\n --", r, i, a;
1759
- for (i = 0; i < e; i++) t += " " + this._padNumber(i, " "), n += "---";
1782
+ for (var e = this.grid.length, t = "\n #|", n = "\n --", r, i = 0, a; i < e; i++) t += " " + this._padNumber(i, " "), n += "---";
1760
1783
  for (t += n, i = 0; i < this._options.lanes; i++) for (t += "\n" + this._padNumber(i, " ") + "|", a = 0; a < e; a++) t += " ", r = this.grid[a][i], t += r ? this._padNumber(this.items.indexOf(r), "0") : "--";
1761
1784
  return t += "\n", t;
1762
1785
  },
@@ -1777,8 +1800,7 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
1777
1800
  this._pullItemsToLeft();
1778
1801
  },
1779
1802
  findPositionForItem: function(e, t, n) {
1780
- var r, i, a;
1781
- for (r = t.x; r < this.grid.length; r++) if (n !== void 0) {
1803
+ for (var r = t.x, i, a; r < this.grid.length; r++) if (n !== void 0) {
1782
1804
  if (a = [r, n], this._itemFitsAtPosition(e, a)) return a;
1783
1805
  } else for (i = t.y; i < this._options.lanes; i++) if (a = [r, i], this._itemFitsAtPosition(e, a)) return a;
1784
1806
  var o = this.grid.length, s = 0;
@@ -1841,12 +1863,10 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
1841
1863
  for (this._ensureColumns(t.x + t.w), n = t.x; n < t.x + t.w; n++) for (r = t.y; r < t.y + t.h; r++) this.grid[n][r] = e;
1842
1864
  },
1843
1865
  _deleteItemPositionFromGrid: function(e) {
1844
- var t = this._getItemPosition(e), n, r;
1845
- for (n = t.x; n < t.x + t.w; n++) if (this.grid[n]) for (r = t.y; r < t.y + t.h; r++) this.grid[n][r] == e && (this.grid[n][r] = null);
1866
+ for (var t = this._getItemPosition(e), n = t.x, r; n < t.x + t.w; n++) if (this.grid[n]) for (r = t.y; r < t.y + t.h; r++) this.grid[n][r] == e && (this.grid[n][r] = null);
1846
1867
  },
1847
1868
  _ensureColumns: function(e) {
1848
- var t;
1849
- for (t = 0; t < e; t++) this.grid[t] || this.grid.push(new GridCol(this._options.lanes));
1869
+ for (var t = 0; t < e; t++) this.grid[t] || this.grid.push(new GridCol(this._options.lanes));
1850
1870
  },
1851
1871
  _getItemsCollidingWithItem: function(e) {
1852
1872
  for (var t = [], n = 0; n < this.items.length; n++) e != this.items[n] && this._itemsAreColliding(e, this.items[n]) && t.push(n);
@@ -1924,7 +1944,7 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
1924
1944
  };
1925
1945
  return GridCol.prototype = [], GridList;
1926
1946
  });
1927
- })))(), 1), be = $ && $.default || $, Grid = class extends r {
1947
+ })))(), 1), Se = $ && $.default || $, Grid = class extends r {
1928
1948
  divItems;
1929
1949
  gridList;
1930
1950
  items;
@@ -2016,7 +2036,7 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
2016
2036
  this.itemsMap = {}, this.items = this.content().map(function(e) {
2017
2037
  let t = this.cellToGridItem(e);
2018
2038
  return this.itemsMap[t.id] = t, t;
2019
- }, this), this.origItems = this.content().map(this.cellToGridItem), this.gridList = new be(this.items, {
2039
+ }, this), this.origItems = this.content().map(this.cellToGridItem), this.gridList = new Se(this.items, {
2020
2040
  direction: this.snapping(),
2021
2041
  lanes: this.snapping() === "horizontal" ? this.snappingRows() : this.snappingColumns()
2022
2042
  });
@@ -2027,74 +2047,72 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
2027
2047
  enter(e, t) {
2028
2048
  super.enter(e, t), this._scrollBarWidth = o.getScrollbarWidth();
2029
2049
  let n = this;
2030
- this._d3Drag = g().subject(function(e) {
2050
+ this._d3Drag = h().subject(function(e) {
2031
2051
  let t = n.cellToGridItem(e);
2032
2052
  return {
2033
2053
  x: t.x * n.cellWidth,
2034
2054
  y: t.y * n.cellHeight
2035
2055
  };
2036
- }).on("start", function(e) {
2056
+ }).on("start", function(e, r) {
2037
2057
  if (!n.designMode()) return;
2038
- m().sourceEvent.stopPropagation(), n.initGridList();
2039
- let r = n.itemsMap[e.id()];
2058
+ e.sourceEvent.stopPropagation(), n.initGridList();
2059
+ let i = n.itemsMap[r.id()];
2040
2060
  n.dragItem = t.append("div").attr("class", "dragging").style("transform", function() {
2041
- return "translate(" + r.x * n.cellWidth + "px, " + r.y * n.cellHeight + "px)";
2061
+ return "translate(" + i.x * n.cellWidth + "px, " + i.y * n.cellHeight + "px)";
2042
2062
  }).style("width", function() {
2043
- return r.w * n.cellWidth - n.gutter() + "px";
2063
+ return i.w * n.cellWidth - n.gutter() + "px";
2044
2064
  }).style("height", function() {
2045
- return r.h * n.cellHeight - n.gutter() + "px";
2046
- }), n.selectionBagClick(e);
2047
- }).on("drag", function(e) {
2065
+ return i.h * n.cellHeight - n.gutter() + "px";
2066
+ }), n.selectionBagClick(e, r);
2067
+ }).on("drag", function(e, t) {
2048
2068
  if (!n.designMode()) return;
2049
- let t = m();
2050
- t.sourceEvent.stopPropagation();
2051
- let r = n.itemsMap[e.id()];
2052
- t.x < 0 && (t.x = 0), t.x + r.w * n.cellWidth > n.snappingColumns() * n.cellWidth && (t.x = n.snappingColumns() * n.cellWidth - r.w * n.cellWidth), t.y < 0 && (t.y = 0), t.y + r.h * n.cellWidth > n.snappingRows() * n.cellWidth && (t.y = n.snappingRows() * n.cellWidth - r.h * n.cellWidth);
2053
- let i = [Math.max(0, Math.floor((t.x + n.cellWidth / 2) / n.cellWidth)), Math.max(0, Math.floor((t.y + n.cellHeight / 2) / n.cellHeight))];
2054
- (r.x !== i[0] || r.y !== i[1]) && (n.snapping() === "none" ? (r.x = i[0], r.y = i[1]) : (n.resetItemsPos(), n.gridList.moveItemToPosition(r, i)), (e.gridCol() !== r.x || e.gridRow() !== r.y) && (n.items.forEach(n.gridItemToCell), n.updateGrid(!1, 100))), n.dragItem.style("transform", function() {
2055
- return "translate(" + t.x + "px, " + t.y + "px)";
2069
+ e.sourceEvent.stopPropagation();
2070
+ let r = n.itemsMap[t.id()];
2071
+ e.x < 0 && (e.x = 0), e.x + r.w * n.cellWidth > n.snappingColumns() * n.cellWidth && (e.x = n.snappingColumns() * n.cellWidth - r.w * n.cellWidth), e.y < 0 && (e.y = 0), e.y + r.h * n.cellWidth > n.snappingRows() * n.cellWidth && (e.y = n.snappingRows() * n.cellWidth - r.h * n.cellWidth);
2072
+ let i = [Math.max(0, Math.floor((e.x + n.cellWidth / 2) / n.cellWidth)), Math.max(0, Math.floor((e.y + n.cellHeight / 2) / n.cellHeight))];
2073
+ (r.x !== i[0] || r.y !== i[1]) && (n.snapping() === "none" ? (r.x = i[0], r.y = i[1]) : (n.resetItemsPos(), n.gridList.moveItemToPosition(r, i)), (t.gridCol() !== r.x || t.gridRow() !== r.y) && (n.items.forEach(n.gridItemToCell), n.updateGrid(!1, 100))), n.dragItem.style("transform", function() {
2074
+ return "translate(" + e.x + "px, " + e.y + "px)";
2056
2075
  }).style("width", function() {
2057
2076
  return r.w * n.cellWidth + "px";
2058
2077
  }).style("height", function() {
2059
2078
  return r.h * n.cellHeight + "px";
2060
2079
  });
2061
- }).on("end", function() {
2062
- n.designMode() && (m().sourceEvent.stopPropagation(), n.dragItem.remove(), n.dragItem = null, n.killGridList());
2063
- }), this._d3DragResize = g().subject(function(e) {
2080
+ }).on("end", function(e) {
2081
+ n.designMode() && (e.sourceEvent.stopPropagation(), n.dragItem.remove(), n.dragItem = null, n.killGridList());
2082
+ }), this._d3DragResize = h().subject(function(e) {
2064
2083
  let t = n.cellToGridItem(e);
2065
2084
  return {
2066
2085
  x: (t.x + t.w - 1) * n.cellWidth,
2067
2086
  y: (t.y + t.h - 1) * n.cellHeight
2068
2087
  };
2069
- }).on("start", function(e) {
2088
+ }).on("start", function(e, r) {
2070
2089
  if (!n.designMode()) return;
2071
- m().sourceEvent.stopPropagation(), n.initGridList();
2072
- let r = n.itemsMap[e.id()];
2090
+ e.sourceEvent.stopPropagation(), n.initGridList();
2091
+ let i = n.itemsMap[r.id()];
2073
2092
  n.dragItem = t.append("div").attr("class", "resizing").style("transform", function() {
2074
- return "translate(" + r.x * n.cellWidth + "px, " + r.y * n.cellHeight + "px)";
2093
+ return "translate(" + i.x * n.cellWidth + "px, " + i.y * n.cellHeight + "px)";
2075
2094
  }).style("width", function() {
2076
- return r.w * n.cellWidth - n.gutter() + "px";
2095
+ return i.w * n.cellWidth - n.gutter() + "px";
2077
2096
  }).style("height", function() {
2078
- return r.h * n.cellHeight - n.gutter() + "px";
2097
+ return i.h * n.cellHeight - n.gutter() + "px";
2079
2098
  }), n.dragItemPos = {
2080
- x: r.x,
2081
- y: r.y
2099
+ x: i.x,
2100
+ y: i.y
2082
2101
  };
2083
- }).on("drag", function(e) {
2102
+ }).on("drag", function(e, t) {
2084
2103
  if (!n.designMode()) return;
2085
- let t = m();
2086
- t.sourceEvent.stopPropagation();
2087
- let r = n.itemsMap[e.id()], i = [Math.max(0, Math.round(t.x / n.cellWidth)), Math.max(0, Math.round(t.y / n.cellHeight))], a = {
2104
+ e.sourceEvent.stopPropagation();
2105
+ let r = n.itemsMap[t.id()], i = [Math.max(0, Math.round(e.x / n.cellWidth)), Math.max(0, Math.round(e.y / n.cellHeight))], a = {
2088
2106
  w: Math.max(1, i[0] - r.x + 1),
2089
2107
  h: Math.max(1, i[1] - r.y + 1)
2090
2108
  };
2091
- (r.w !== a.w || r.h !== a.h) && (n.snapping() === "none" ? (r.w = a.w, r.h = a.h) : (n.resetItemsPos(), n.gridList.resizeItem(r, a)), (e.gridColSpan() !== r.w || e.gridRowSpan() !== r.h) && (n.items.forEach(n.gridItemToCell), n.updateGrid(r.id, 100))), n.dragItem.style("width", function() {
2092
- return (-r.x + 1) * n.cellWidth + t.x - n.gutter() + "px";
2109
+ (r.w !== a.w || r.h !== a.h) && (n.snapping() === "none" ? (r.w = a.w, r.h = a.h) : (n.resetItemsPos(), n.gridList.resizeItem(r, a)), (t.gridColSpan() !== r.w || t.gridRowSpan() !== r.h) && (n.items.forEach(n.gridItemToCell), n.updateGrid(r.id, 100))), n.dragItem.style("width", function() {
2110
+ return (-r.x + 1) * n.cellWidth + e.x - n.gutter() + "px";
2093
2111
  }).style("height", function() {
2094
- return (-r.y + 1) * n.cellHeight + t.y - n.gutter() + "px";
2112
+ return (-r.y + 1) * n.cellHeight + e.y - n.gutter() + "px";
2095
2113
  });
2096
- }).on("end", function() {
2097
- n.designMode() && (m().sourceEvent.stopPropagation(), n.dragItem.remove(), n.dragItem = null, n.killGridList());
2114
+ }).on("end", function(e) {
2115
+ n.designMode() && (e.sourceEvent.stopPropagation(), n.dragItem.remove(), n.dragItem = null, n.killGridList());
2098
2116
  });
2099
2117
  }
2100
2118
  updateGrid(e, t = 0, n = !1) {
@@ -2125,9 +2143,9 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
2125
2143
  this.divItems = a.enter().append("div").attr("class", "ddCell").each(function(e) {
2126
2144
  e.target(this), e.__grid_watch = e.monitor(function(t, n, r) {
2127
2145
  i._renderCount && (t === "snapping" || t.indexOf("grid") === 0) && n !== r && (i.gridList || (i.initGridList(), i.snapping() !== "none" && i.gridList.resizeGrid(i.snapping() === "horizontal" ? i.snappingRows() : i.snappingColumns()), i.items.forEach(i.gridItemToCell), i.updateGrid(e.id(), 100), i.killGridList()));
2128
- }), C(this).append("div").attr("class", "resizeHandle").call(i._d3DragResize).append("div").attr("class", "resizeHandleDisplay");
2146
+ }), S(this).append("div").attr("class", "resizeHandle").call(i._d3DragResize).append("div").attr("class", "resizeHandleDisplay");
2129
2147
  }).merge(a), this.divItems.each(function(e) {
2130
- let t = C(this);
2148
+ let t = S(this);
2131
2149
  i.designMode() ? t.call(i._d3Drag) : t.on("mousedown.drag", null).on("touchstart.drag", null);
2132
2150
  }), this.divItems.select(".resizeHandle").style("display", this.designMode() ? null : "none"), this.updateGrid(!0), a.exit().each(function(e) {
2133
2151
  e.target(null), e.__grid_watch && e.__grid_watch.remove();
@@ -2161,13 +2179,13 @@ var $ = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin(((e, t) => {
2161
2179
  selectionBagClear() {
2162
2180
  this._selectionBag.isEmpty() || (this._selectionBag.clear(), this.postSelectionChange());
2163
2181
  }
2164
- selectionBagClick(e) {
2165
- if (e !== null) {
2166
- let t = this._createSelectionObject(e);
2167
- if (m().sourceEvent.ctrlKey) this._selectionBag.isSelected(t) ? (this._selectionBag.remove(t), this.postSelectionChange()) : (this._selectionBag.append(t), this.postSelectionChange());
2182
+ selectionBagClick(e, t) {
2183
+ if (t !== null) {
2184
+ let n = this._createSelectionObject(t);
2185
+ if (e.sourceEvent.ctrlKey) this._selectionBag.isSelected(n) ? (this._selectionBag.remove(n), this.postSelectionChange()) : (this._selectionBag.append(n), this.postSelectionChange());
2168
2186
  else {
2169
2187
  let e = this._selectionBag.get();
2170
- e.length === 1 && e[0]._id === t._id ? this.selectionBagClear() : this._selectionBag.set([t]), this.postSelectionChange();
2188
+ e.length === 1 && e[0]._id === n._id ? this.selectionBagClear() : this._selectionBag.set([n]), this.postSelectionChange();
2171
2189
  }
2172
2190
  }
2173
2191
  }
@@ -2379,7 +2397,7 @@ var Tabbed = class extends r {
2379
2397
  return n.activeTabIdx() === t ? "block" : "none";
2380
2398
  }).each(function(e, t) {
2381
2399
  if (e.visible(n.activeTabIdx() === t), n.activeTabIdx() === t) {
2382
- let t = n.widgetSize(C(this));
2400
+ let t = n.widgetSize(S(this));
2383
2401
  e.surfaceBorderWidth(n.showTabs() ? null : 0).surfacePadding(n.showTabs() ? null : 0).resize(t);
2384
2402
  }
2385
2403
  }), i.exit().each(function(e, t) {
@@ -2414,7 +2432,7 @@ var Toolbar = class extends r {
2414
2432
  });
2415
2433
  i.enter().insert("div", "div.toolbar-title").each(function(e, t) {
2416
2434
  let r = n.widgetClasses()[t] ? n.widgetClasses()[t] + " toolbar-child" : "toolbar-child";
2417
- C(this).classed(r, !0), e.target(this);
2435
+ S(this).classed(r, !0), e.target(this);
2418
2436
  }), i.exit().each(function(e) {
2419
2437
  e.target(null);
2420
2438
  }).remove(), i.order();
@@ -2460,7 +2478,7 @@ var VerticalList = class extends FlexGrid {
2460
2478
  };
2461
2479
  VerticalList.prototype._class += " layout_VerticalList";
2462
2480
  //#endregion
2463
- export { AbsoluteSurface, Accordion, ne as BUILD_VERSION, Border, Border2, Carousel, Cell, ChartPanel, FlexGrid, Grid, HorizontalList, Layered, Legend, Modal, N as PKG_NAME, te as PKG_VERSION, Popup, Surface, Tabbed, Toolbar, VerticalList, WidgetDiv };
2481
+ export { AbsoluteSurface, Accordion, te as BUILD_VERSION, Border, Border2, Carousel, Cell, ChartPanel, FlexGrid, Grid, HorizontalList, Layered, Legend, Modal, M as PKG_NAME, N as PKG_VERSION, Popup, Surface, Tabbed, Toolbar, VerticalList, WidgetDiv };
2464
2482
 
2465
2483
  //# sourceMappingURL=index.js.map
2466
2484
  (function(){try{if(typeof document<`u`){var e=document.createElement(`style`);e.appendChild(document.createTextNode(`.layout_AbsoluteSurface{pointer-events:none!important}.layout_AbsoluteSurface>.placeholder{pointer-events:all;position:relative;overflow:hidden}.layout_Accordion>ul{position:relative}.layout_Accordion.open>span{font-style:italic}.layout_Accordion.closed>ul{height:0;overflow:hidden}.layout_Accordion.open>ul{display:block}.layout_Accordion>.collapsible-icon,.layout_Accordion>.collapsible-title{cursor:pointer;box-sizing:border-box}.layout_Accordion>.collapsible-title{color:#fff;width:100%;height:26px;padding:4px 8px;font-size:13px;display:block;box-shadow:inset 0 -1px 1px #0003}.layout_Accordion li{background-color:#fff}.layout_Accordion>ul,.layout_Accordion>.collapsible-title{background-color:#333}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>.collapsible-title{background-color:#555}.layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#777}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#999}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#bbb}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ccc}.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion .layout_Accordion>.collapsible-title{background-color:#ddd}.layout_Accordion>ul,.layout_Accordion>span{padding-left:0}.layout_Accordion .layout_Accordion>ul,.layout_Accordion .layout_Accordion>span{padding-left:12px}.layout_Accordion>.collapsible-title:before{padding:4px 8px;position:absolute;top:0;left:0}.layout_Accordion>.collapsible-icon{color:#fff;width:24px;height:24px;position:absolute;top:0;right:0}.layout_Surface{box-sizing:border-box;border:1px solid #e5e5e5;width:100%;height:100%;margin:0;overflow:hidden}.layout_Surface.shadow2{box-shadow:0 2px 2px #00000024,0 3px 1px -2px #0003,0 1px 5px #0000001f}.layout_Surface>h3{background-color:#e5e5e5;margin:0;padding:2px}.layout_Surface .html-button-container{position:absolute;top:3px;right:0}.layout_Surface>div{padding:8px}.layout_Surface .html-button-container .surface-button{margin-right:5px}.layout_Surface .html-button-container .surface-button i{opacity:.8}.layout_Surface .html-button-container .surface-button:hover{opacity:1}.layout_Surface .html-button-container .surface-button:active{opacity:.5}div[draggable=true].hideDragCellContent.content-icon:before{content:"";font-family:FontAwesome;font-size:100px;position:absolute;top:calc(50% - 74px);left:calc(50% - 56px)}div[draggable=true].hideDragCellContent.content-icon-Line:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Pie:before{content:"";top:calc(50% - 72px);left:calc(50% - 45px)}div[draggable=true].hideDragCellContent.content-icon-Area:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Gauge:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Table:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Form:before{content:""}div[draggable=true].hideDragCellContent.content-icon-Grid:before,div[draggable=true].hideDragCellContent.content-icon-Graph:before,div[draggable=true].hideDragCellContent.content-icon-Border:before,div[draggable=true].hideDragCellContent.content-icon-Tabbed:before,div[draggable=true].hideDragCellContent.content-icon-Accordion:before,div[draggable=true].hideDragCellContent.content-icon-MultiChart:before,div[draggable=true].hideDragCellContent.content-icon-MultiChartSurface:before{content:""}div[draggable=true].hideDragCellContent.content-icon-ChoroplethStates:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethStatesHeat:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCounties:before,div[draggable=true].hideDragCellContent.content-icon-ChoroplethCountries:before,div[draggable=true].hideDragCellContent.content-icon-GMap:before,div[draggable=true].hideDragCellContent.content-icon-GMapHeat:before,div[draggable=true].hideDragCellContent.content-icon-GMapGraph:before,div[draggable=true].hideDragCellContent.content-icon-Text:before,div[draggable=true].hideDragCellContent.content-icon-TextBox:before,div[draggable=true].hideDragCellContent.content-icon-FAChar:before{content:""}.layout_Cell .update-indicator{box-sizing:border-box;z-index:1000;pointer-events:none;border-style:solid;border-width:0;padding:0;position:absolute;top:0;left:0}.layout_Border{width:100%;height:100%}.layout_Border>.border-content{width:100%;height:100%;position:relative}.layout_Border>.borderHandle{opacity:.3;visibility:hidden;background-color:#444;width:6px;height:6px;position:absolute}.layout_Border.design-mode>.borderHandle{visibility:visible}.layout_Border>.borderHandle:hover{background-color:#666}.layout_Border>.borderHandle.borderHandleDisabled{display:none}.layout_Border>.borderHandle_top,.layout_Border>.borderHandle_bottom{cursor:ns-resize}.layout_Border>.borderHandle_left,.layout_Border>.borderHandle_right{cursor:ew-resize}.layout_Border .cell{border:1px solid #e5e5e5;border-radius:5px;display:inline-block;overflow:hidden}.layout_Border .cell h2{-webkit-margin:0px;text-align:center;margin:0;padding-top:4px}.layout_Border .layout_BorderCell.over{border:2px dashed #000}.layout_Border .dragItem{z-index:-1;opacity:.33}.layout_Border .notDragItem{z-index:-1;opacity:1}.layout_Border div[draggable=true]{opacity:.75;cursor:default}.layout_Border div[draggable=true] .dragHandle{opacity:1}.layout_Border div[draggable=true] .dragHandle_n,.layout_Border div[draggable=true] .dragHandle_e,.layout_Border div[draggable=true] .dragHandle_s,.layout_Border div[draggable=true] .dragHandle_w{background-color:#aaa}.layout_Border div[draggable=true] .dragHandle_nw,.layout_Border div[draggable=true] .dragHandle_ne,.layout_Border div[draggable=true] .dragHandle_se,.layout_Border div[draggable=true] .dragHandle_sw{background-color:#333}.layout_Border div[draggable=true] .dragHandle_nw{cursor:nw-resize}.layout_Border div[draggable=true] .dragHandle_n{cursor:n-resize}.layout_Border div[draggable=true] .dragHandle_ne{cursor:ne-resize}.layout_Border div[draggable=true] .dragHandle_e{cursor:e-resize}.layout_Border div[draggable=true] .dragHandle_se{cursor:se-resize}.layout_Border div[draggable=true] .dragHandle_s{cursor:s-resize}.layout_Border div[draggable=true] .dragHandle_sw{cursor:sw-resize}.layout_Border div[draggable=true] .dragHandle_w{cursor:w-resize}.layout_Border div[draggable=false]>div>.dragHandle{display:none}.layout_Border .grid-drop-target{box-sizing:border-box;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px);border:2px dashed #7f8c8d;border-radius:0;position:fixed}.layout_Border .grid-drop-target.drop-target-over{background:repeating-linear-gradient(-45deg,#0000,#0000 6px,#119bd71a 6px 12px);border:2px dashed #179bd7}.layout_Border2{flex-direction:column;display:flex}.layout_Border2>.body{flex-flow:row;margin:0;padding:0;display:flex}.layout_Border2>.body>.center{flex:1}.layout_Border2>.header,.layout_Border2>.footer{display:block}.layout_Carousel>div{position:relative;overflow:hidden}.layout_Carousel>div>.carouselItem{position:absolute}.layout_Modal-header{background-color:#3f51b5;overflow:hidden}.layout_Modal-body{background-color:#fff;overflow:hidden scroll}.layout_Modal-title,.layout_Modal-annotations{position:absolute}.layout_Modal-closeButton{cursor:pointer}.layout_Modal-closeButton:hover{opacity:.7}.layout_Modal-closeButton:active{opacity:.5}.layout_Modal-fade{opacity:.5;z-index:10000;background-color:#000;position:fixed}.layout_Modal-content{z-index:10100;background-color:#fff;position:fixed}.layout_Modal-fade-hidden{display:none}.layout_Modal-fadeClickable{cursor:pointer}.layout_ChartPanel .series.highlight{stroke-width:2px;opacity:1}.layout_ChartPanel .series.lowlight{opacity:.3!important}.layout_FlexGrid{display:flex}.FlexGrid-list-item{border-style:solid;flex-grow:1;overflow:hidden}.layout_Grid>.ddCell{position:absolute}.layout_Grid>.laneBackground{background:#f5f5f5;border-style:solid;border-width:1px;position:absolute}.layout_Grid>.lane{opacity:.25;pointer-events:none;border-style:none;border-radius:0;position:absolute}.layout_Grid>.ddCell.draggable{cursor:move;background-color:#f8f8ff;border-style:solid;border-width:1px;border-radius:0}.layout_Grid>.ddCell.draggable>.resizeHandle{cursor:nwse-resize;border-style:none;width:8px;height:8px;position:absolute;bottom:0;right:0}.layout_Grid>.ddCell.draggable .resizeHandleDisplay{background-color:none;border:2px solid #a9a9a9;border-width:0 2px 2px 0;width:4px;height:4px;position:absolute;bottom:2px;right:2px}.layout_Grid>.ddCell.draggable .resizeHandleDisplay:hover{border-color:orange}.layout_Grid>.dragging{background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6464641a 4px 8px);border:1px solid gray;border-radius:0;position:absolute}.layout_Grid>.resizing{opacity:.3;background:repeating-linear-gradient(-45deg,#0000,#0000 4px,orange 4px 8px);border:1px solid gray;border-radius:0;position:absolute}.layout_Grid>.ddCell.draggable .common_Widget.selected{background:repeating-linear-gradient(-45deg,#0000,#0000 4px,#6400001a 4px 8px);border:1px solid red;border-radius:0;position:absolute}.layout_Grid #drag-me:before{content:"#" attr(id);font-weight:700}.layout_Layered{pointer-events:none}.layout_Layered>.container>.content{position:absolute}.layout_Layered>.container>.content>div>.common_Widget,.layout_Layered>.container>.content>div>svg>.common_Widget{pointer-events:all}.layout_Tabbed .tab-button{background-color:#ccc;border-top:1px solid #ddd;border-left:1px solid #ddd;border-right:1px solid #ddd;margin-right:4px;padding:2px 2px 4px;display:inline-block;position:relative;top:1px}.layout_Tabbed .tab-button.active{z-index:999;background-color:#fff}.layout_Tabbed .on_bottom .tab-button{border-top:none;border-bottom:1px solid #ddd;top:-1px}.layout_Toolbar{white-space:nowrap;background-color:#ddd;height:100%;overflow:hidden}.layout_Toolbar .toolbar-title{text-overflow:ellipsis;white-space:nowrap;margin-left:4px;font-weight:700;display:inline-block;position:relative;top:50%;overflow:hidden;transform:translateY(-50%)}.layout_Toolbar .toolbar-child{float:right;margin-left:4px;margin-right:4px;line-height:16px;position:relative;top:50%;transform:translateY(-50%)}/*$vite$:1*/`)),document.head.appendChild(e)}}catch(e){console.error(`vite-plugin-css-injected-by-js`,e)}})();