@vitessce/vega 3.6.4 → 3.6.5

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 (2) hide show
  1. package/dist/index.js +374 -1123
  2. package/package.json +4 -4
package/dist/index.js CHANGED
@@ -89,8 +89,8 @@ function field$1(field2, name, opt) {
89
89
  }
90
90
  const id = field$1("id");
91
91
  const identity$6 = accessor((_) => _, [], "identity");
92
- const zero$5 = accessor(() => 0, [], "zero");
93
- const one$3 = accessor(() => 1, [], "one");
92
+ const zero$4 = accessor(() => 0, [], "zero");
93
+ const one$2 = accessor(() => 1, [], "one");
94
94
  const truthy = accessor(() => true, [], "true");
95
95
  const falsy = accessor(() => false, [], "false");
96
96
  function log$1$1(method2, level, input) {
@@ -276,7 +276,7 @@ const compareN = (fields, orders, n) => {
276
276
  return c2 * orders[i];
277
277
  };
278
278
  };
279
- function constant$5(_) {
279
+ function constant$4(_) {
280
280
  return isFunction$3(_) ? _ : () => _;
281
281
  }
282
282
  function debounce$1(delay, handler) {
@@ -286,7 +286,7 @@ function debounce$1(delay, handler) {
286
286
  tid = setTimeout(() => (handler(e3), tid = null), delay);
287
287
  };
288
288
  }
289
- function extend$3(_) {
289
+ function extend$1(_) {
290
290
  for (let x2, k, i = 1, len = arguments.length; i < len; ++i) {
291
291
  x2 = arguments[i];
292
292
  for (k in x2) {
@@ -461,7 +461,7 @@ function inherits(child, parent, members) {
461
461
  enumerable: true,
462
462
  configurable: true
463
463
  });
464
- return extend$3(proto, members);
464
+ return extend$1(proto, members);
465
465
  }
466
466
  function inrange(value2, range2, left, right) {
467
467
  let r0 = range2[0], r1 = range2[range2.length - 1], t4;
@@ -994,10 +994,10 @@ function feature(topology, o) {
994
994
  }) } : feature$1(topology, o);
995
995
  }
996
996
  function feature$1(topology, o) {
997
- var id2 = o.id, bbox = o.bbox, properties2 = o.properties == null ? {} : o.properties, geometry = object$2(topology, o);
997
+ var id2 = o.id, bbox = o.bbox, properties2 = o.properties == null ? {} : o.properties, geometry = object$1(topology, o);
998
998
  return id2 == null && bbox == null ? { type: "Feature", properties: properties2, geometry } : bbox == null ? { type: "Feature", id: id2, properties: properties2, geometry } : { type: "Feature", id: id2, bbox, properties: properties2, geometry };
999
999
  }
1000
- function object$2(topology, o) {
1000
+ function object$1(topology, o) {
1001
1001
  var transformPoint = transform$3(topology.transform), arcs = topology.arcs;
1002
1002
  function arc2(i, points2) {
1003
1003
  if (points2.length) points2.pop();
@@ -1118,7 +1118,7 @@ function stitch(topology, arcs) {
1118
1118
  return fragments;
1119
1119
  }
1120
1120
  function mesh(topology) {
1121
- return object$2(topology, meshArcs.apply(this, arguments));
1121
+ return object$1(topology, meshArcs.apply(this, arguments));
1122
1122
  }
1123
1123
  function meshArcs(topology, object2, filter2) {
1124
1124
  var arcs, i, n;
@@ -1179,7 +1179,7 @@ function bisector$1(f) {
1179
1179
  compare2 = (d, x2) => ascending$2(f(d), x2);
1180
1180
  delta = (d, x2) => f(d) - x2;
1181
1181
  } else {
1182
- compare12 = f === ascending$2 || f === descending$1 ? f : zero$4;
1182
+ compare12 = f === ascending$2 || f === descending$1 ? f : zero$3;
1183
1183
  compare2 = f;
1184
1184
  delta = f;
1185
1185
  }
@@ -1211,10 +1211,10 @@ function bisector$1(f) {
1211
1211
  }
1212
1212
  return { left, center, right };
1213
1213
  }
1214
- function zero$4() {
1214
+ function zero$3() {
1215
1215
  return 0;
1216
1216
  }
1217
- function number$7(x2) {
1217
+ function number$6(x2) {
1218
1218
  return x2 === null ? NaN : +x2;
1219
1219
  }
1220
1220
  function* numbers$2(values2, valueof) {
@@ -1236,7 +1236,7 @@ function* numbers$2(values2, valueof) {
1236
1236
  const ascendingBisect = bisector$1(ascending$2);
1237
1237
  const bisectRight$1 = ascendingBisect.right;
1238
1238
  const bisectLeft$1 = ascendingBisect.left;
1239
- bisector$1(number$7).center;
1239
+ bisector$1(number$6).center;
1240
1240
  function variance(values2, valueof) {
1241
1241
  let count2 = 0;
1242
1242
  let delta;
@@ -1489,7 +1489,7 @@ function quantile$1(values2, p, valueof) {
1489
1489
  var n, i = (n - 1) * p, i0 = Math.floor(i), value0 = max$2(quickselect(values2, i0).subarray(0, i0 + 1)), value1 = min$2(values2.subarray(i0 + 1));
1490
1490
  return value0 + (value1 - value0) * (i - i0);
1491
1491
  }
1492
- function quantileSorted(values2, p, valueof = number$7) {
1492
+ function quantileSorted(values2, p, valueof = number$6) {
1493
1493
  if (!(n = values2.length)) return;
1494
1494
  if ((p = +p) <= 0 || n < 2) return +valueof(values2[0], 0, values2);
1495
1495
  if (p >= 1) return +valueof(values2[n - 1], n - 1, values2);
@@ -2106,7 +2106,7 @@ const defaultSpecifiers = {
2106
2106
  ["".concat(HOURS, "-").concat(MINUTES)]: "%H:%M"
2107
2107
  };
2108
2108
  function timeUnitSpecifier(units, specifiers) {
2109
- const s = extend$3({}, defaultSpecifiers, specifiers), u2 = timeUnits(units), n = u2.length;
2109
+ const s = extend$1({}, defaultSpecifiers, specifiers), u2 = timeUnits(units), n = u2.length;
2110
2110
  let fmt = "", start = 0, end, key2;
2111
2111
  for (start = 0; start < n; ) {
2112
2112
  for (end = u2.length; end > start; --end) {
@@ -2182,7 +2182,7 @@ function floor(units, step, get2, inv, newDate2) {
2182
2182
  key2 = key2 || unit2;
2183
2183
  return getUnit(get2[key2], inv[key2], unit2 === b2 && s, p);
2184
2184
  };
2185
- const t4 = /* @__PURE__ */ new Date(), u2 = toSet(units), y2 = u2[YEAR] ? _(YEAR) : constant$5(2012), m2 = u2[MONTH] ? _(MONTH) : u2[QUARTER] ? _(QUARTER) : zero$5, d = u2[WEEK] && u2[DAY] ? _(DAY, 1, WEEK + DAY) : u2[WEEK] ? _(WEEK, 1) : u2[DAY] ? _(DAY, 1) : u2[DATE] ? _(DATE, 1) : u2[DAYOFYEAR] ? _(DAYOFYEAR, 1) : one$3, H = u2[HOURS] ? _(HOURS) : zero$5, M2 = u2[MINUTES] ? _(MINUTES) : zero$5, S = u2[SECONDS] ? _(SECONDS) : zero$5, L = u2[MILLISECONDS] ? _(MILLISECONDS) : zero$5;
2185
+ const t4 = /* @__PURE__ */ new Date(), u2 = toSet(units), y2 = u2[YEAR] ? _(YEAR) : constant$4(2012), m2 = u2[MONTH] ? _(MONTH) : u2[QUARTER] ? _(QUARTER) : zero$4, d = u2[WEEK] && u2[DAY] ? _(DAY, 1, WEEK + DAY) : u2[WEEK] ? _(WEEK, 1) : u2[DAY] ? _(DAY, 1) : u2[DATE] ? _(DATE, 1) : u2[DAYOFYEAR] ? _(DAYOFYEAR, 1) : one$2, H = u2[HOURS] ? _(HOURS) : zero$4, M2 = u2[MINUTES] ? _(MINUTES) : zero$4, S = u2[SECONDS] ? _(SECONDS) : zero$4, L = u2[MILLISECONDS] ? _(MILLISECONDS) : zero$4;
2186
2186
  return function(v) {
2187
2187
  t4.setTime(+v);
2188
2188
  const year2 = y2(t4);
@@ -3002,7 +3002,7 @@ function timeFormatLocale(definition2) {
3002
3002
  function timeFormatDefaultLocale(definition2) {
3003
3003
  return arguments.length ? defaultTimeLocale = timeFormatLocale(definition2) : defaultTimeLocale;
3004
3004
  }
3005
- const createLocale = (number2, time2) => extend$3({}, number2, time2);
3005
+ const createLocale = (number2, time2) => extend$1({}, number2, time2);
3006
3006
  function locale(numberSpec, timeSpec) {
3007
3007
  const number2 = numberSpec ? numberFormatLocale(numberSpec) : numberFormatDefaultLocale();
3008
3008
  const time2 = timeSpec ? timeFormatLocale(timeSpec) : timeFormatDefaultLocale();
@@ -3039,7 +3039,7 @@ async function load$1(uri, options) {
3039
3039
  return opt.localFile ? this.file(url) : this.http(url, options);
3040
3040
  }
3041
3041
  async function sanitize(uri, options) {
3042
- options = extend$3({}, this.options, options);
3042
+ options = extend$1({}, this.options, options);
3043
3043
  const fileAccess = this.fileAccess, result = {
3044
3044
  href: null
3045
3045
  };
@@ -3094,7 +3094,7 @@ async function fileReject() {
3094
3094
  }
3095
3095
  function httpLoader(fetch2) {
3096
3096
  return fetch2 ? async function(url, options) {
3097
- const opt = extend$3({}, this.options.http, options), type2 = options && options.response, response = await fetch2(url, opt);
3097
+ const opt = extend$1({}, this.options.http, options), type2 = options && options.response, response = await fetch2(url, opt);
3098
3098
  return !response.ok ? error(response.status + "" + response.statusText) : isFunction$3(response[type2]) ? response[type2]() : response.text();
3099
3099
  } : httpReject;
3100
3100
  }
@@ -3142,7 +3142,7 @@ function delimitedFormat(delimiter2) {
3142
3142
  const delim = {
3143
3143
  delimiter: delimiter2
3144
3144
  };
3145
- return dsv(data2, format2 ? extend$3(format2, delim) : delim);
3145
+ return dsv(data2, format2 ? extend$1(format2, delim) : delim);
3146
3146
  };
3147
3147
  parse2.responseType = "text";
3148
3148
  return parse2;
@@ -3336,7 +3336,7 @@ function changeset() {
3336
3336
  modify(t4, field2, value2) {
3337
3337
  const m2 = {
3338
3338
  field: field2,
3339
- value: constant$5(value2)
3339
+ value: constant$4(value2)
3340
3340
  };
3341
3341
  if (isFunction$3(t4)) {
3342
3342
  m2.filter = t4;
@@ -3908,9 +3908,9 @@ function on(source2, target2, update2, params2, options) {
3908
3908
  return this;
3909
3909
  }
3910
3910
  function onStream(df, stream2, target2, update2, params2, options) {
3911
- const opt = extend$3({}, options, SKIP$2);
3911
+ const opt = extend$1({}, options, SKIP$2);
3912
3912
  let func, op;
3913
- if (!isFunction$3(target2)) target2 = constant$5(target2);
3913
+ if (!isFunction$3(target2)) target2 = constant$4(target2);
3914
3914
  if (update2 === void 0) {
3915
3915
  func = (e3) => df.touch(target2(e3));
3916
3916
  } else if (isFunction$3(update2)) {
@@ -3942,7 +3942,7 @@ function onOperator(df, source2, target2, update2, params2, options) {
3942
3942
  }
3943
3943
  }
3944
3944
  function updater(target2, update2) {
3945
- update2 = isFunction$3(update2) ? update2 : constant$5(update2);
3945
+ update2 = isFunction$3(update2) ? update2 : constant$4(update2);
3946
3946
  return target2 ? function(_, pulse2) {
3947
3947
  const value2 = update2(_, pulse2);
3948
3948
  if (!target2.skip()) {
@@ -5355,7 +5355,7 @@ function rSquared(data2, x2, y2, uY, predict) {
5355
5355
  });
5356
5356
  return 1 - SSE / SST;
5357
5357
  }
5358
- function linear$3(data2, x2, y2) {
5358
+ function linear$2(data2, x2, y2) {
5359
5359
  let X3 = 0, Y3 = 0, XY = 0, X22 = 0, n = 0;
5360
5360
  visitPoints(data2, x2, y2, (dx, dy) => {
5361
5361
  ++n;
@@ -5450,7 +5450,7 @@ function quad(data2, x2, y2) {
5450
5450
  };
5451
5451
  }
5452
5452
  function poly(data2, x2, y2, order) {
5453
- if (order === 1) return linear$3(data2, x2, y2);
5453
+ if (order === 1) return linear$2(data2, x2, y2);
5454
5454
  if (order === 2) return quad(data2, x2, y2);
5455
5455
  const [xv, yv, ux, uy] = points(data2, x2, y2), n = xv.length, lhs = [], rhs = [], k = order + 1;
5456
5456
  let i, j, l, v, c2;
@@ -5817,7 +5817,7 @@ const AggregateOps = {
5817
5817
  };
5818
5818
  const ValidAggregateOps = Object.keys(AggregateOps);
5819
5819
  function measure(key2, value2) {
5820
- return (out) => extend$3({
5820
+ return (out) => extend$1({
5821
5821
  name: key2,
5822
5822
  out: out || key2
5823
5823
  }, base_op, value2);
@@ -7356,7 +7356,7 @@ inherits(JoinAggregate, Aggregate$1, {
7356
7356
  }
7357
7357
  aggr.changes();
7358
7358
  pulse2.visit(pulse2.SOURCE, (t4) => {
7359
- extend$3(t4, cells[aggr.cellkey(t4)].tuple);
7359
+ extend$1(t4, cells[aggr.cellkey(t4)].tuple);
7360
7360
  });
7361
7361
  return pulse2.reflow(mod).modifies(this._outputs);
7362
7362
  },
@@ -8130,7 +8130,7 @@ inherits(Values$1, Transform, {
8130
8130
  function WindowOp(op, field2, param2, as) {
8131
8131
  const fn = WindowOps[op](field2, param2);
8132
8132
  return {
8133
- init: fn.init || zero$5,
8133
+ init: fn.init || zero$4,
8134
8134
  update: function(w2, t4) {
8135
8135
  t4[as] = fn.next(w2);
8136
8136
  }
@@ -8448,7 +8448,7 @@ function processPartition(list, state, cmp2, _) {
8448
8448
  p1: 0,
8449
8449
  index: 0,
8450
8450
  data: data2,
8451
- compare: sort2 || constant$5(-1)
8451
+ compare: sort2 || constant$4(-1)
8452
8452
  };
8453
8453
  state.init();
8454
8454
  for (let i = 0; i < n; ++i) {
@@ -8512,7 +8512,7 @@ const tx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
8512
8512
  values: Values$1,
8513
8513
  window: Window
8514
8514
  }, Symbol.toStringTag, { value: "Module" }));
8515
- function constant$4(x2) {
8515
+ function constant$3(x2) {
8516
8516
  return function constant2() {
8517
8517
  return x2;
8518
8518
  };
@@ -8672,7 +8672,7 @@ function cornerTangents(x02, y02, x12, y12, r1, rc, cw2) {
8672
8672
  };
8673
8673
  }
8674
8674
  function arc$2$1() {
8675
- var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = constant$4(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context2 = null, path2 = withPath(arc2);
8675
+ var innerRadius = arcInnerRadius, outerRadius = arcOuterRadius, cornerRadius = constant$3(0), padRadius = null, startAngle = arcStartAngle, endAngle = arcEndAngle, padAngle = arcPadAngle, context2 = null, path2 = withPath(arc2);
8676
8676
  function arc2() {
8677
8677
  var buffer, r2, r0 = +innerRadius.apply(this, arguments), r1 = +outerRadius.apply(this, arguments), a0 = startAngle.apply(this, arguments) - halfPi$2, a1 = endAngle.apply(this, arguments) - halfPi$2, da = abs$3(a1 - a0), cw2 = a1 > a0;
8678
8678
  if (!context2) context2 = buffer = path2();
@@ -8740,25 +8740,25 @@ function arc$2$1() {
8740
8740
  return [cos$2(a2) * r2, sin$2(a2) * r2];
8741
8741
  };
8742
8742
  arc2.innerRadius = function(_) {
8743
- return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant$4(+_), arc2) : innerRadius;
8743
+ return arguments.length ? (innerRadius = typeof _ === "function" ? _ : constant$3(+_), arc2) : innerRadius;
8744
8744
  };
8745
8745
  arc2.outerRadius = function(_) {
8746
- return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant$4(+_), arc2) : outerRadius;
8746
+ return arguments.length ? (outerRadius = typeof _ === "function" ? _ : constant$3(+_), arc2) : outerRadius;
8747
8747
  };
8748
8748
  arc2.cornerRadius = function(_) {
8749
- return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant$4(+_), arc2) : cornerRadius;
8749
+ return arguments.length ? (cornerRadius = typeof _ === "function" ? _ : constant$3(+_), arc2) : cornerRadius;
8750
8750
  };
8751
8751
  arc2.padRadius = function(_) {
8752
- return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant$4(+_), arc2) : padRadius;
8752
+ return arguments.length ? (padRadius = _ == null ? null : typeof _ === "function" ? _ : constant$3(+_), arc2) : padRadius;
8753
8753
  };
8754
8754
  arc2.startAngle = function(_) {
8755
- return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$4(+_), arc2) : startAngle;
8755
+ return arguments.length ? (startAngle = typeof _ === "function" ? _ : constant$3(+_), arc2) : startAngle;
8756
8756
  };
8757
8757
  arc2.endAngle = function(_) {
8758
- return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$4(+_), arc2) : endAngle;
8758
+ return arguments.length ? (endAngle = typeof _ === "function" ? _ : constant$3(+_), arc2) : endAngle;
8759
8759
  };
8760
8760
  arc2.padAngle = function(_) {
8761
- return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$4(+_), arc2) : padAngle;
8761
+ return arguments.length ? (padAngle = typeof _ === "function" ? _ : constant$3(+_), arc2) : padAngle;
8762
8762
  };
8763
8763
  arc2.context = function(_) {
8764
8764
  return arguments.length ? (context2 = _ == null ? null : _, arc2) : context2;
@@ -8811,9 +8811,9 @@ function y$3(p) {
8811
8811
  return p[1];
8812
8812
  }
8813
8813
  function line$2$1(x2, y2) {
8814
- var defined2 = constant$4(true), context2 = null, curve2 = curveLinear, output2 = null, path2 = withPath(line2);
8815
- x2 = typeof x2 === "function" ? x2 : x2 === void 0 ? x$3 : constant$4(x2);
8816
- y2 = typeof y2 === "function" ? y2 : y2 === void 0 ? y$3 : constant$4(y2);
8814
+ var defined2 = constant$3(true), context2 = null, curve2 = curveLinear, output2 = null, path2 = withPath(line2);
8815
+ x2 = typeof x2 === "function" ? x2 : x2 === void 0 ? x$3 : constant$3(x2);
8816
+ y2 = typeof y2 === "function" ? y2 : y2 === void 0 ? y$3 : constant$3(y2);
8817
8817
  function line2(data2) {
8818
8818
  var i, n = (data2 = array$4(data2)).length, d, defined0 = false, buffer;
8819
8819
  if (context2 == null) output2 = curve2(buffer = path2());
@@ -8827,13 +8827,13 @@ function line$2$1(x2, y2) {
8827
8827
  if (buffer) return output2 = null, buffer + "" || null;
8828
8828
  }
8829
8829
  line2.x = function(_) {
8830
- return arguments.length ? (x2 = typeof _ === "function" ? _ : constant$4(+_), line2) : x2;
8830
+ return arguments.length ? (x2 = typeof _ === "function" ? _ : constant$3(+_), line2) : x2;
8831
8831
  };
8832
8832
  line2.y = function(_) {
8833
- return arguments.length ? (y2 = typeof _ === "function" ? _ : constant$4(+_), line2) : y2;
8833
+ return arguments.length ? (y2 = typeof _ === "function" ? _ : constant$3(+_), line2) : y2;
8834
8834
  };
8835
8835
  line2.defined = function(_) {
8836
- return arguments.length ? (defined2 = typeof _ === "function" ? _ : constant$4(!!_), line2) : defined2;
8836
+ return arguments.length ? (defined2 = typeof _ === "function" ? _ : constant$3(!!_), line2) : defined2;
8837
8837
  };
8838
8838
  line2.curve = function(_) {
8839
8839
  return arguments.length ? (curve2 = _, context2 != null && (output2 = curve2(context2)), line2) : curve2;
@@ -8844,10 +8844,10 @@ function line$2$1(x2, y2) {
8844
8844
  return line2;
8845
8845
  }
8846
8846
  function area$2$1(x02, y02, y12) {
8847
- var x12 = null, defined2 = constant$4(true), context2 = null, curve2 = curveLinear, output2 = null, path2 = withPath(area2);
8848
- x02 = typeof x02 === "function" ? x02 : x02 === void 0 ? x$3 : constant$4(+x02);
8849
- y02 = typeof y02 === "function" ? y02 : y02 === void 0 ? constant$4(0) : constant$4(+y02);
8850
- y12 = typeof y12 === "function" ? y12 : y12 === void 0 ? y$3 : constant$4(+y12);
8847
+ var x12 = null, defined2 = constant$3(true), context2 = null, curve2 = curveLinear, output2 = null, path2 = withPath(area2);
8848
+ x02 = typeof x02 === "function" ? x02 : x02 === void 0 ? x$3 : constant$3(+x02);
8849
+ y02 = typeof y02 === "function" ? y02 : y02 === void 0 ? constant$3(0) : constant$3(+y02);
8850
+ y12 = typeof y12 === "function" ? y12 : y12 === void 0 ? y$3 : constant$3(+y12);
8851
8851
  function area2(data2) {
8852
8852
  var i, j, k, n = (data2 = array$4(data2)).length, d, defined0 = false, buffer, x0z = new Array(n), y0z = new Array(n);
8853
8853
  if (context2 == null) output2 = curve2(buffer = path2());
@@ -8878,22 +8878,22 @@ function area$2$1(x02, y02, y12) {
8878
8878
  return line$2$1().defined(defined2).curve(curve2).context(context2);
8879
8879
  }
8880
8880
  area2.x = function(_) {
8881
- return arguments.length ? (x02 = typeof _ === "function" ? _ : constant$4(+_), x12 = null, area2) : x02;
8881
+ return arguments.length ? (x02 = typeof _ === "function" ? _ : constant$3(+_), x12 = null, area2) : x02;
8882
8882
  };
8883
8883
  area2.x0 = function(_) {
8884
- return arguments.length ? (x02 = typeof _ === "function" ? _ : constant$4(+_), area2) : x02;
8884
+ return arguments.length ? (x02 = typeof _ === "function" ? _ : constant$3(+_), area2) : x02;
8885
8885
  };
8886
8886
  area2.x1 = function(_) {
8887
- return arguments.length ? (x12 = _ == null ? null : typeof _ === "function" ? _ : constant$4(+_), area2) : x12;
8887
+ return arguments.length ? (x12 = _ == null ? null : typeof _ === "function" ? _ : constant$3(+_), area2) : x12;
8888
8888
  };
8889
8889
  area2.y = function(_) {
8890
- return arguments.length ? (y02 = typeof _ === "function" ? _ : constant$4(+_), y12 = null, area2) : y02;
8890
+ return arguments.length ? (y02 = typeof _ === "function" ? _ : constant$3(+_), y12 = null, area2) : y02;
8891
8891
  };
8892
8892
  area2.y0 = function(_) {
8893
- return arguments.length ? (y02 = typeof _ === "function" ? _ : constant$4(+_), area2) : y02;
8893
+ return arguments.length ? (y02 = typeof _ === "function" ? _ : constant$3(+_), area2) : y02;
8894
8894
  };
8895
8895
  area2.y1 = function(_) {
8896
- return arguments.length ? (y12 = _ == null ? null : typeof _ === "function" ? _ : constant$4(+_), area2) : y12;
8896
+ return arguments.length ? (y12 = _ == null ? null : typeof _ === "function" ? _ : constant$3(+_), area2) : y12;
8897
8897
  };
8898
8898
  area2.lineX0 = area2.lineY0 = function() {
8899
8899
  return arealine().x(x02).y(y02);
@@ -8905,7 +8905,7 @@ function area$2$1(x02, y02, y12) {
8905
8905
  return arealine().x(x12).y(y02);
8906
8906
  };
8907
8907
  area2.defined = function(_) {
8908
- return arguments.length ? (defined2 = typeof _ === "function" ? _ : constant$4(!!_), area2) : defined2;
8908
+ return arguments.length ? (defined2 = typeof _ === "function" ? _ : constant$3(!!_), area2) : defined2;
8909
8909
  };
8910
8910
  area2.curve = function(_) {
8911
8911
  return arguments.length ? (curve2 = _, context2 != null && (output2 = curve2(context2)), area2) : curve2;
@@ -8924,8 +8924,8 @@ const circle$2 = {
8924
8924
  };
8925
8925
  function Symbol$2(type2, size) {
8926
8926
  let context2 = null, path2 = withPath(symbol2);
8927
- type2 = typeof type2 === "function" ? type2 : constant$4(type2 || circle$2);
8928
- size = typeof size === "function" ? size : constant$4(size === void 0 ? 64 : +size);
8927
+ type2 = typeof type2 === "function" ? type2 : constant$3(type2 || circle$2);
8928
+ size = typeof size === "function" ? size : constant$3(size === void 0 ? 64 : +size);
8929
8929
  function symbol2() {
8930
8930
  let buffer;
8931
8931
  if (!context2) context2 = buffer = path2();
@@ -8933,10 +8933,10 @@ function Symbol$2(type2, size) {
8933
8933
  if (buffer) return context2 = null, buffer + "" || null;
8934
8934
  }
8935
8935
  symbol2.type = function(_) {
8936
- return arguments.length ? (type2 = typeof _ === "function" ? _ : constant$4(_), symbol2) : type2;
8936
+ return arguments.length ? (type2 = typeof _ === "function" ? _ : constant$3(_), symbol2) : type2;
8937
8937
  };
8938
8938
  symbol2.size = function(_) {
8939
- return arguments.length ? (size = typeof _ === "function" ? _ : constant$4(+_), symbol2) : size;
8939
+ return arguments.length ? (size = typeof _ === "function" ? _ : constant$3(+_), symbol2) : size;
8940
8940
  };
8941
8941
  symbol2.context = function(_) {
8942
8942
  return arguments.length ? (context2 = _ == null ? null : _, symbol2) : context2;
@@ -9832,21 +9832,21 @@ function ordinal() {
9832
9832
  initRange.apply(scale2, arguments);
9833
9833
  return scale2;
9834
9834
  }
9835
- function define$2(constructor, factory, prototype2) {
9835
+ function define(constructor, factory, prototype2) {
9836
9836
  constructor.prototype = factory.prototype = prototype2;
9837
9837
  prototype2.constructor = constructor;
9838
9838
  }
9839
- function extend$2(parent, definition2) {
9839
+ function extend(parent, definition2) {
9840
9840
  var prototype2 = Object.create(parent.prototype);
9841
9841
  for (var key2 in definition2) prototype2[key2] = definition2[key2];
9842
9842
  return prototype2;
9843
9843
  }
9844
- function Color$2() {
9844
+ function Color() {
9845
9845
  }
9846
- var darker$2 = 0.7;
9847
- var brighter$2 = 1 / darker$2;
9848
- var reI$2 = "\\s*([+-]?\\d+)\\s*", reN$2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP$2 = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex$2 = /^#([0-9a-f]{3,8})$/, reRgbInteger$2 = new RegExp(`^rgb\\(${reI$2},${reI$2},${reI$2}\\)$`), reRgbPercent$2 = new RegExp(`^rgb\\(${reP$2},${reP$2},${reP$2}\\)$`), reRgbaInteger$2 = new RegExp(`^rgba\\(${reI$2},${reI$2},${reI$2},${reN$2}\\)$`), reRgbaPercent$2 = new RegExp(`^rgba\\(${reP$2},${reP$2},${reP$2},${reN$2}\\)$`), reHslPercent$2 = new RegExp(`^hsl\\(${reN$2},${reP$2},${reP$2}\\)$`), reHslaPercent$2 = new RegExp(`^hsla\\(${reN$2},${reP$2},${reP$2},${reN$2}\\)$`);
9849
- var named$2 = {
9846
+ var darker = 0.7;
9847
+ var brighter = 1 / darker;
9848
+ var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp(`^rgb\\(${reI},${reI},${reI}\\)$`), reRgbPercent = new RegExp(`^rgb\\(${reP},${reP},${reP}\\)$`), reRgbaInteger = new RegExp(`^rgba\\(${reI},${reI},${reI},${reN}\\)$`), reRgbaPercent = new RegExp(`^rgba\\(${reP},${reP},${reP},${reN}\\)$`), reHslPercent = new RegExp(`^hsl\\(${reN},${reP},${reP}\\)$`), reHslaPercent = new RegExp(`^hsla\\(${reN},${reP},${reP},${reN}\\)$`);
9849
+ var named = {
9850
9850
  aliceblue: 15792383,
9851
9851
  antiquewhite: 16444375,
9852
9852
  aqua: 65535,
@@ -9996,92 +9996,92 @@ var named$2 = {
9996
9996
  yellow: 16776960,
9997
9997
  yellowgreen: 10145074
9998
9998
  };
9999
- define$2(Color$2, color$6, {
9999
+ define(Color, color$4, {
10000
10000
  copy(channels) {
10001
10001
  return Object.assign(new this.constructor(), this, channels);
10002
10002
  },
10003
10003
  displayable() {
10004
10004
  return this.rgb().displayable();
10005
10005
  },
10006
- hex: color_formatHex$2,
10006
+ hex: color_formatHex,
10007
10007
  // Deprecated! Use color.formatHex.
10008
- formatHex: color_formatHex$2,
10008
+ formatHex: color_formatHex,
10009
10009
  formatHex8: color_formatHex8,
10010
- formatHsl: color_formatHsl$2,
10011
- formatRgb: color_formatRgb$2,
10012
- toString: color_formatRgb$2
10010
+ formatHsl: color_formatHsl,
10011
+ formatRgb: color_formatRgb,
10012
+ toString: color_formatRgb
10013
10013
  });
10014
- function color_formatHex$2() {
10014
+ function color_formatHex() {
10015
10015
  return this.rgb().formatHex();
10016
10016
  }
10017
10017
  function color_formatHex8() {
10018
10018
  return this.rgb().formatHex8();
10019
10019
  }
10020
- function color_formatHsl$2() {
10021
- return hslConvert$2(this).formatHsl();
10020
+ function color_formatHsl() {
10021
+ return hslConvert(this).formatHsl();
10022
10022
  }
10023
- function color_formatRgb$2() {
10023
+ function color_formatRgb() {
10024
10024
  return this.rgb().formatRgb();
10025
10025
  }
10026
- function color$6(format2) {
10026
+ function color$4(format2) {
10027
10027
  var m2, l;
10028
10028
  format2 = (format2 + "").trim().toLowerCase();
10029
- return (m2 = reHex$2.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn$2(m2) : l === 3 ? new Rgb$2(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba$2(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba$2(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger$2.exec(format2)) ? new Rgb$2(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent$2.exec(format2)) ? new Rgb$2(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger$2.exec(format2)) ? rgba$2(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent$2.exec(format2)) ? rgba$2(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent$2.exec(format2)) ? hsla$2(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent$2.exec(format2)) ? hsla$2(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named$2.hasOwnProperty(format2) ? rgbn$2(named$2[format2]) : format2 === "transparent" ? new Rgb$2(NaN, NaN, NaN, 0) : null;
10029
+ return (m2 = reHex.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn(m2) : l === 3 ? new Rgb(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger.exec(format2)) ? new Rgb(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent.exec(format2)) ? new Rgb(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger.exec(format2)) ? rgba(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent.exec(format2)) ? rgba(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
10030
10030
  }
10031
- function rgbn$2(n) {
10032
- return new Rgb$2(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
10031
+ function rgbn(n) {
10032
+ return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
10033
10033
  }
10034
- function rgba$2(r2, g, b2, a2) {
10034
+ function rgba(r2, g, b2, a2) {
10035
10035
  if (a2 <= 0) r2 = g = b2 = NaN;
10036
- return new Rgb$2(r2, g, b2, a2);
10036
+ return new Rgb(r2, g, b2, a2);
10037
10037
  }
10038
- function rgbConvert$2(o) {
10039
- if (!(o instanceof Color$2)) o = color$6(o);
10040
- if (!o) return new Rgb$2();
10038
+ function rgbConvert(o) {
10039
+ if (!(o instanceof Color)) o = color$4(o);
10040
+ if (!o) return new Rgb();
10041
10041
  o = o.rgb();
10042
- return new Rgb$2(o.r, o.g, o.b, o.opacity);
10042
+ return new Rgb(o.r, o.g, o.b, o.opacity);
10043
10043
  }
10044
- function rgb$3(r2, g, b2, opacity2) {
10045
- return arguments.length === 1 ? rgbConvert$2(r2) : new Rgb$2(r2, g, b2, opacity2 == null ? 1 : opacity2);
10044
+ function rgb(r2, g, b2, opacity2) {
10045
+ return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g, b2, opacity2 == null ? 1 : opacity2);
10046
10046
  }
10047
- function Rgb$2(r2, g, b2, opacity2) {
10047
+ function Rgb(r2, g, b2, opacity2) {
10048
10048
  this.r = +r2;
10049
10049
  this.g = +g;
10050
10050
  this.b = +b2;
10051
10051
  this.opacity = +opacity2;
10052
10052
  }
10053
- define$2(Rgb$2, rgb$3, extend$2(Color$2, {
10053
+ define(Rgb, rgb, extend(Color, {
10054
10054
  brighter(k) {
10055
- k = k == null ? brighter$2 : Math.pow(brighter$2, k);
10056
- return new Rgb$2(this.r * k, this.g * k, this.b * k, this.opacity);
10055
+ k = k == null ? brighter : Math.pow(brighter, k);
10056
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
10057
10057
  },
10058
10058
  darker(k) {
10059
- k = k == null ? darker$2 : Math.pow(darker$2, k);
10060
- return new Rgb$2(this.r * k, this.g * k, this.b * k, this.opacity);
10059
+ k = k == null ? darker : Math.pow(darker, k);
10060
+ return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
10061
10061
  },
10062
10062
  rgb() {
10063
10063
  return this;
10064
10064
  },
10065
10065
  clamp() {
10066
- return new Rgb$2(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
10066
+ return new Rgb(clampi(this.r), clampi(this.g), clampi(this.b), clampa(this.opacity));
10067
10067
  },
10068
10068
  displayable() {
10069
10069
  return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
10070
10070
  },
10071
- hex: rgb_formatHex$2,
10071
+ hex: rgb_formatHex,
10072
10072
  // Deprecated! Use color.formatHex.
10073
- formatHex: rgb_formatHex$2,
10073
+ formatHex: rgb_formatHex,
10074
10074
  formatHex8: rgb_formatHex8,
10075
- formatRgb: rgb_formatRgb$2,
10076
- toString: rgb_formatRgb$2
10075
+ formatRgb: rgb_formatRgb,
10076
+ toString: rgb_formatRgb
10077
10077
  }));
10078
- function rgb_formatHex$2() {
10079
- return `#${hex$2(this.r)}${hex$2(this.g)}${hex$2(this.b)}`;
10078
+ function rgb_formatHex() {
10079
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}`;
10080
10080
  }
10081
10081
  function rgb_formatHex8() {
10082
- return `#${hex$2(this.r)}${hex$2(this.g)}${hex$2(this.b)}${hex$2((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
10082
+ return `#${hex(this.r)}${hex(this.g)}${hex(this.b)}${hex((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
10083
10083
  }
10084
- function rgb_formatRgb$2() {
10084
+ function rgb_formatRgb() {
10085
10085
  const a2 = clampa(this.opacity);
10086
10086
  return `${a2 === 1 ? "rgb(" : "rgba("}${clampi(this.r)}, ${clampi(this.g)}, ${clampi(this.b)}${a2 === 1 ? ")" : `, ${a2})`}`;
10087
10087
  }
@@ -10091,21 +10091,21 @@ function clampa(opacity2) {
10091
10091
  function clampi(value2) {
10092
10092
  return Math.max(0, Math.min(255, Math.round(value2) || 0));
10093
10093
  }
10094
- function hex$2(value2) {
10094
+ function hex(value2) {
10095
10095
  value2 = clampi(value2);
10096
10096
  return (value2 < 16 ? "0" : "") + value2.toString(16);
10097
10097
  }
10098
- function hsla$2(h2, s, l, a2) {
10098
+ function hsla(h2, s, l, a2) {
10099
10099
  if (a2 <= 0) h2 = s = l = NaN;
10100
10100
  else if (l <= 0 || l >= 1) h2 = s = NaN;
10101
10101
  else if (s <= 0) h2 = NaN;
10102
- return new Hsl$2(h2, s, l, a2);
10102
+ return new Hsl(h2, s, l, a2);
10103
10103
  }
10104
- function hslConvert$2(o) {
10105
- if (o instanceof Hsl$2) return new Hsl$2(o.h, o.s, o.l, o.opacity);
10106
- if (!(o instanceof Color$2)) o = color$6(o);
10107
- if (!o) return new Hsl$2();
10108
- if (o instanceof Hsl$2) return o;
10104
+ function hslConvert(o) {
10105
+ if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
10106
+ if (!(o instanceof Color)) o = color$4(o);
10107
+ if (!o) return new Hsl();
10108
+ if (o instanceof Hsl) return o;
10109
10109
  o = o.rgb();
10110
10110
  var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, min2 = Math.min(r2, g, b2), max2 = Math.max(r2, g, b2), h2 = NaN, s = max2 - min2, l = (max2 + min2) / 2;
10111
10111
  if (s) {
@@ -10117,37 +10117,37 @@ function hslConvert$2(o) {
10117
10117
  } else {
10118
10118
  s = l > 0 && l < 1 ? 0 : h2;
10119
10119
  }
10120
- return new Hsl$2(h2, s, l, o.opacity);
10120
+ return new Hsl(h2, s, l, o.opacity);
10121
10121
  }
10122
- function hsl$4(h2, s, l, opacity2) {
10123
- return arguments.length === 1 ? hslConvert$2(h2) : new Hsl$2(h2, s, l, opacity2 == null ? 1 : opacity2);
10122
+ function hsl$2(h2, s, l, opacity2) {
10123
+ return arguments.length === 1 ? hslConvert(h2) : new Hsl(h2, s, l, opacity2 == null ? 1 : opacity2);
10124
10124
  }
10125
- function Hsl$2(h2, s, l, opacity2) {
10125
+ function Hsl(h2, s, l, opacity2) {
10126
10126
  this.h = +h2;
10127
10127
  this.s = +s;
10128
10128
  this.l = +l;
10129
10129
  this.opacity = +opacity2;
10130
10130
  }
10131
- define$2(Hsl$2, hsl$4, extend$2(Color$2, {
10131
+ define(Hsl, hsl$2, extend(Color, {
10132
10132
  brighter(k) {
10133
- k = k == null ? brighter$2 : Math.pow(brighter$2, k);
10134
- return new Hsl$2(this.h, this.s, this.l * k, this.opacity);
10133
+ k = k == null ? brighter : Math.pow(brighter, k);
10134
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
10135
10135
  },
10136
10136
  darker(k) {
10137
- k = k == null ? darker$2 : Math.pow(darker$2, k);
10138
- return new Hsl$2(this.h, this.s, this.l * k, this.opacity);
10137
+ k = k == null ? darker : Math.pow(darker, k);
10138
+ return new Hsl(this.h, this.s, this.l * k, this.opacity);
10139
10139
  },
10140
10140
  rgb() {
10141
10141
  var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
10142
- return new Rgb$2(
10143
- hsl2rgb$2(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
10144
- hsl2rgb$2(h2, m1, m2),
10145
- hsl2rgb$2(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
10142
+ return new Rgb(
10143
+ hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
10144
+ hsl2rgb(h2, m1, m2),
10145
+ hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
10146
10146
  this.opacity
10147
10147
  );
10148
10148
  },
10149
10149
  clamp() {
10150
- return new Hsl$2(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
10150
+ return new Hsl(clamph(this.h), clampt(this.s), clampt(this.l), clampa(this.opacity));
10151
10151
  },
10152
10152
  displayable() {
10153
10153
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
@@ -10164,7 +10164,7 @@ function clamph(value2) {
10164
10164
  function clampt(value2) {
10165
10165
  return Math.max(0, Math.min(1, value2 || 0));
10166
10166
  }
10167
- function hsl2rgb$2(h2, m1, m2) {
10167
+ function hsl2rgb(h2, m1, m2) {
10168
10168
  return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
10169
10169
  }
10170
10170
  const radians$1 = Math.PI / 180;
@@ -10173,7 +10173,7 @@ const K = 18, Xn = 0.96422, Yn = 1, Zn = 0.82521, t0 = 4 / 29, t1 = 6 / 29, t2 =
10173
10173
  function labConvert(o) {
10174
10174
  if (o instanceof Lab) return new Lab(o.l, o.a, o.b, o.opacity);
10175
10175
  if (o instanceof Hcl) return hcl2lab(o);
10176
- if (!(o instanceof Rgb$2)) o = rgbConvert$2(o);
10176
+ if (!(o instanceof Rgb)) o = rgbConvert(o);
10177
10177
  var r2 = rgb2lrgb(o.r), g = rgb2lrgb(o.g), b2 = rgb2lrgb(o.b), y2 = xyz2lab((0.2225045 * r2 + 0.7168786 * g + 0.0606169 * b2) / Yn), x2, z2;
10178
10178
  if (r2 === g && g === b2) x2 = z2 = y2;
10179
10179
  else {
@@ -10191,7 +10191,7 @@ function Lab(l, a2, b2, opacity2) {
10191
10191
  this.b = +b2;
10192
10192
  this.opacity = +opacity2;
10193
10193
  }
10194
- define$2(Lab, lab$1, extend$2(Color$2, {
10194
+ define(Lab, lab$1, extend(Color, {
10195
10195
  brighter(k) {
10196
10196
  return new Lab(this.l + K * (k == null ? 1 : k), this.a, this.b, this.opacity);
10197
10197
  },
@@ -10203,7 +10203,7 @@ define$2(Lab, lab$1, extend$2(Color$2, {
10203
10203
  x2 = Xn * lab2xyz(x2);
10204
10204
  y2 = Yn * lab2xyz(y2);
10205
10205
  z2 = Zn * lab2xyz(z2);
10206
- return new Rgb$2(
10206
+ return new Rgb(
10207
10207
  lrgb2rgb(3.1338561 * x2 - 1.6168667 * y2 - 0.4906146 * z2),
10208
10208
  lrgb2rgb(-0.9787684 * x2 + 1.9161415 * y2 + 0.033454 * z2),
10209
10209
  lrgb2rgb(0.0719453 * x2 - 0.2289914 * y2 + 1.4052427 * z2),
@@ -10244,7 +10244,7 @@ function hcl2lab(o) {
10244
10244
  var h2 = o.h * radians$1;
10245
10245
  return new Lab(o.l, Math.cos(h2) * o.c, Math.sin(h2) * o.c, o.opacity);
10246
10246
  }
10247
- define$2(Hcl, hcl$2, extend$2(Color$2, {
10247
+ define(Hcl, hcl$2, extend(Color, {
10248
10248
  brighter(k) {
10249
10249
  return new Hcl(this.h, this.c, this.l + K * (k == null ? 1 : k), this.opacity);
10250
10250
  },
@@ -10258,7 +10258,7 @@ define$2(Hcl, hcl$2, extend$2(Color$2, {
10258
10258
  var A = -0.14861, B$1 = 1.78277, C$1 = -0.29227, D$1 = -0.90649, E = 1.97294, ED = E * D$1, EB = E * B$1, BC_DA = B$1 * C$1 - D$1 * A;
10259
10259
  function cubehelixConvert(o) {
10260
10260
  if (o instanceof Cubehelix) return new Cubehelix(o.h, o.s, o.l, o.opacity);
10261
- if (!(o instanceof Rgb$2)) o = rgbConvert$2(o);
10261
+ if (!(o instanceof Rgb)) o = rgbConvert(o);
10262
10262
  var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, l = (BC_DA * b2 + ED * r2 - EB * g) / (BC_DA + ED - EB), bl2 = b2 - l, k = (E * (g - l) - C$1 * bl2) / D$1, s = Math.sqrt(k * k + bl2 * bl2) / (E * l * (1 - l)), h2 = s ? Math.atan2(k, bl2) * degrees$2 - 120 : NaN;
10263
10263
  return new Cubehelix(h2 < 0 ? h2 + 360 : h2, s, l, o.opacity);
10264
10264
  }
@@ -10271,18 +10271,18 @@ function Cubehelix(h2, s, l, opacity2) {
10271
10271
  this.l = +l;
10272
10272
  this.opacity = +opacity2;
10273
10273
  }
10274
- define$2(Cubehelix, cubehelix$2, extend$2(Color$2, {
10274
+ define(Cubehelix, cubehelix$2, extend(Color, {
10275
10275
  brighter(k) {
10276
- k = k == null ? brighter$2 : Math.pow(brighter$2, k);
10276
+ k = k == null ? brighter : Math.pow(brighter, k);
10277
10277
  return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
10278
10278
  },
10279
10279
  darker(k) {
10280
- k = k == null ? darker$2 : Math.pow(darker$2, k);
10280
+ k = k == null ? darker : Math.pow(darker, k);
10281
10281
  return new Cubehelix(this.h, this.s, this.l * k, this.opacity);
10282
10282
  },
10283
10283
  rgb() {
10284
10284
  var h2 = isNaN(this.h) ? 0 : (this.h + 120) * radians$1, l = +this.l, a2 = isNaN(this.s) ? 0 : this.s * l * (1 - l), cosh2 = Math.cos(h2), sinh2 = Math.sin(h2);
10285
- return new Rgb$2(
10285
+ return new Rgb(
10286
10286
  255 * (l + a2 * (A * cosh2 + B$1 * sinh2)),
10287
10287
  255 * (l + a2 * (C$1 * cosh2 + D$1 * sinh2)),
10288
10288
  255 * (l + a2 * (E * cosh2)),
@@ -10308,34 +10308,34 @@ function basisClosed(values2) {
10308
10308
  return basis$1((t4 - i / n) * n, v0, v1, v2, v3);
10309
10309
  };
10310
10310
  }
10311
- const constant$3 = (x2) => () => x2;
10312
- function linear$2(a2, d) {
10311
+ const constant$2 = (x2) => () => x2;
10312
+ function linear$1(a2, d) {
10313
10313
  return function(t4) {
10314
10314
  return a2 + t4 * d;
10315
10315
  };
10316
10316
  }
10317
- function exponential$1(a2, b2, y2) {
10317
+ function exponential(a2, b2, y2) {
10318
10318
  return a2 = Math.pow(a2, y2), b2 = Math.pow(b2, y2) - a2, y2 = 1 / y2, function(t4) {
10319
10319
  return Math.pow(a2 + t4 * b2, y2);
10320
10320
  };
10321
10321
  }
10322
10322
  function hue$1(a2, b2) {
10323
10323
  var d = b2 - a2;
10324
- return d ? linear$2(a2, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant$3(isNaN(a2) ? b2 : a2);
10324
+ return d ? linear$1(a2, d > 180 || d < -180 ? d - 360 * Math.round(d / 360) : d) : constant$2(isNaN(a2) ? b2 : a2);
10325
10325
  }
10326
- function gamma$1(y2) {
10327
- return (y2 = +y2) === 1 ? nogamma$1 : function(a2, b2) {
10328
- return b2 - a2 ? exponential$1(a2, b2, y2) : constant$3(isNaN(a2) ? b2 : a2);
10326
+ function gamma(y2) {
10327
+ return (y2 = +y2) === 1 ? nogamma : function(a2, b2) {
10328
+ return b2 - a2 ? exponential(a2, b2, y2) : constant$2(isNaN(a2) ? b2 : a2);
10329
10329
  };
10330
10330
  }
10331
- function nogamma$1(a2, b2) {
10331
+ function nogamma(a2, b2) {
10332
10332
  var d = b2 - a2;
10333
- return d ? linear$2(a2, d) : constant$3(isNaN(a2) ? b2 : a2);
10333
+ return d ? linear$1(a2, d) : constant$2(isNaN(a2) ? b2 : a2);
10334
10334
  }
10335
- const rgb$2 = function rgbGamma(y2) {
10336
- var color2 = gamma$1(y2);
10337
- function rgb2(start, end) {
10338
- var r2 = color2((start = rgb$3(start)).r, (end = rgb$3(end)).r), g = color2(start.g, end.g), b2 = color2(start.b, end.b), opacity2 = nogamma$1(start.opacity, end.opacity);
10335
+ const interpolateRgb = function rgbGamma(y2) {
10336
+ var color2 = gamma(y2);
10337
+ function rgb$1(start, end) {
10338
+ var r2 = color2((start = rgb(start)).r, (end = rgb(end)).r), g = color2(start.g, end.g), b2 = color2(start.b, end.b), opacity2 = nogamma(start.opacity, end.opacity);
10339
10339
  return function(t4) {
10340
10340
  start.r = r2(t4);
10341
10341
  start.g = g(t4);
@@ -10344,14 +10344,14 @@ const rgb$2 = function rgbGamma(y2) {
10344
10344
  return start + "";
10345
10345
  };
10346
10346
  }
10347
- rgb2.gamma = rgbGamma;
10348
- return rgb2;
10347
+ rgb$1.gamma = rgbGamma;
10348
+ return rgb$1;
10349
10349
  }(1);
10350
10350
  function rgbSpline$1(spline) {
10351
10351
  return function(colors2) {
10352
10352
  var n = colors2.length, r2 = new Array(n), g = new Array(n), b2 = new Array(n), i, color2;
10353
10353
  for (i = 0; i < n; ++i) {
10354
- color2 = rgb$3(colors2[i]);
10354
+ color2 = rgb(colors2[i]);
10355
10355
  r2[i] = color2.r || 0;
10356
10356
  g[i] = color2.g || 0;
10357
10357
  b2[i] = color2.b || 0;
@@ -10370,7 +10370,7 @@ function rgbSpline$1(spline) {
10370
10370
  }
10371
10371
  var rgbBasis = rgbSpline$1(basis$2);
10372
10372
  var rgbBasisClosed = rgbSpline$1(basisClosed);
10373
- function numberArray$1(a2, b2) {
10373
+ function numberArray(a2, b2) {
10374
10374
  if (!b2) b2 = [];
10375
10375
  var n = a2 ? Math.min(b2.length, a2.length) : 0, c2 = b2.slice(), i;
10376
10376
  return function(t4) {
@@ -10378,22 +10378,22 @@ function numberArray$1(a2, b2) {
10378
10378
  return c2;
10379
10379
  };
10380
10380
  }
10381
- function isNumberArray$1(x2) {
10381
+ function isNumberArray(x2) {
10382
10382
  return ArrayBuffer.isView(x2) && !(x2 instanceof DataView);
10383
10383
  }
10384
10384
  function array$3(a2, b2) {
10385
- return (isNumberArray$1(b2) ? numberArray$1 : genericArray$1)(a2, b2);
10385
+ return (isNumberArray(b2) ? numberArray : genericArray)(a2, b2);
10386
10386
  }
10387
- function genericArray$1(a2, b2) {
10387
+ function genericArray(a2, b2) {
10388
10388
  var nb = b2 ? b2.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x2 = new Array(na), c2 = new Array(nb), i;
10389
- for (i = 0; i < na; ++i) x2[i] = interpolate$1$1(a2[i], b2[i]);
10389
+ for (i = 0; i < na; ++i) x2[i] = interpolate$2(a2[i], b2[i]);
10390
10390
  for (; i < nb; ++i) c2[i] = b2[i];
10391
10391
  return function(t4) {
10392
10392
  for (i = 0; i < na; ++i) c2[i] = x2[i](t4);
10393
10393
  return c2;
10394
10394
  };
10395
10395
  }
10396
- function date$2(a2, b2) {
10396
+ function date$1(a2, b2) {
10397
10397
  var d = /* @__PURE__ */ new Date();
10398
10398
  return a2 = +a2, b2 = +b2, function(t4) {
10399
10399
  return d.setTime(a2 * (1 - t4) + b2 * t4), d;
@@ -10404,13 +10404,13 @@ function interpolateNumber(a2, b2) {
10404
10404
  return a2 * (1 - t4) + b2 * t4;
10405
10405
  };
10406
10406
  }
10407
- function object$1(a2, b2) {
10407
+ function object(a2, b2) {
10408
10408
  var i = {}, c2 = {}, k;
10409
10409
  if (a2 === null || typeof a2 !== "object") a2 = {};
10410
10410
  if (b2 === null || typeof b2 !== "object") b2 = {};
10411
10411
  for (k in b2) {
10412
10412
  if (k in a2) {
10413
- i[k] = interpolate$1$1(a2[k], b2[k]);
10413
+ i[k] = interpolate$2(a2[k], b2[k]);
10414
10414
  } else {
10415
10415
  c2[k] = b2[k];
10416
10416
  }
@@ -10420,21 +10420,21 @@ function object$1(a2, b2) {
10420
10420
  return c2;
10421
10421
  };
10422
10422
  }
10423
- var reA$1 = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB$1 = new RegExp(reA$1.source, "g");
10424
- function zero$3(b2) {
10423
+ var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
10424
+ function zero$2(b2) {
10425
10425
  return function() {
10426
10426
  return b2;
10427
10427
  };
10428
10428
  }
10429
- function one$2(b2) {
10429
+ function one$1(b2) {
10430
10430
  return function(t4) {
10431
10431
  return b2(t4) + "";
10432
10432
  };
10433
10433
  }
10434
- function string$1(a2, b2) {
10435
- var bi = reA$1.lastIndex = reB$1.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
10434
+ function string(a2, b2) {
10435
+ var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
10436
10436
  a2 = a2 + "", b2 = b2 + "";
10437
- while ((am = reA$1.exec(a2)) && (bm = reB$1.exec(b2))) {
10437
+ while ((am = reA.exec(a2)) && (bm = reB.exec(b2))) {
10438
10438
  if ((bs = bm.index) > bi) {
10439
10439
  bs = b2.slice(bi, bs);
10440
10440
  if (s[i]) s[i] += bs;
@@ -10447,21 +10447,21 @@ function string$1(a2, b2) {
10447
10447
  s[++i] = null;
10448
10448
  q.push({ i, x: interpolateNumber(am, bm) });
10449
10449
  }
10450
- bi = reB$1.lastIndex;
10450
+ bi = reB.lastIndex;
10451
10451
  }
10452
10452
  if (bi < b2.length) {
10453
10453
  bs = b2.slice(bi);
10454
10454
  if (s[i]) s[i] += bs;
10455
10455
  else s[++i] = bs;
10456
10456
  }
10457
- return s.length < 2 ? q[0] ? one$2(q[0].x) : zero$3(b2) : (b2 = q.length, function(t4) {
10457
+ return s.length < 2 ? q[0] ? one$1(q[0].x) : zero$2(b2) : (b2 = q.length, function(t4) {
10458
10458
  for (var i2 = 0, o; i2 < b2; ++i2) s[(o = q[i2]).i] = o.x(t4);
10459
10459
  return s.join("");
10460
10460
  });
10461
10461
  }
10462
- function interpolate$1$1(a2, b2) {
10462
+ function interpolate$2(a2, b2) {
10463
10463
  var t4 = typeof b2, c2;
10464
- return b2 == null || t4 === "boolean" ? constant$3(b2) : (t4 === "number" ? interpolateNumber : t4 === "string" ? (c2 = color$6(b2)) ? (b2 = c2, rgb$2) : string$1 : b2 instanceof color$6 ? rgb$2 : b2 instanceof Date ? date$2 : isNumberArray$1(b2) ? numberArray$1 : Array.isArray(b2) ? genericArray$1 : typeof b2.valueOf !== "function" && typeof b2.toString !== "function" || isNaN(b2) ? object$1 : interpolateNumber)(a2, b2);
10464
+ return b2 == null || t4 === "boolean" ? constant$2(b2) : (t4 === "number" ? interpolateNumber : t4 === "string" ? (c2 = color$4(b2)) ? (b2 = c2, interpolateRgb) : string : b2 instanceof color$4 ? interpolateRgb : b2 instanceof Date ? date$1 : isNumberArray(b2) ? numberArray : Array.isArray(b2) ? genericArray : typeof b2.valueOf !== "function" && typeof b2.toString !== "function" || isNaN(b2) ? object : interpolateNumber)(a2, b2);
10465
10465
  }
10466
10466
  function discrete$1(range2) {
10467
10467
  var n = range2.length;
@@ -10614,9 +10614,9 @@ const zoom$1 = function zoomRho(rho, rho2, rho4) {
10614
10614
  };
10615
10615
  return zoom2;
10616
10616
  }(Math.SQRT2, 2, 4);
10617
- function hsl$2(hue2) {
10617
+ function hsl(hue2) {
10618
10618
  return function(start, end) {
10619
- var h2 = hue2((start = hsl$4(start)).h, (end = hsl$4(end)).h), s = nogamma$1(start.s, end.s), l = nogamma$1(start.l, end.l), opacity2 = nogamma$1(start.opacity, end.opacity);
10619
+ var h2 = hue2((start = hsl$2(start)).h, (end = hsl$2(end)).h), s = nogamma(start.s, end.s), l = nogamma(start.l, end.l), opacity2 = nogamma(start.opacity, end.opacity);
10620
10620
  return function(t4) {
10621
10621
  start.h = h2(t4);
10622
10622
  start.s = s(t4);
@@ -10626,10 +10626,10 @@ function hsl$2(hue2) {
10626
10626
  };
10627
10627
  };
10628
10628
  }
10629
- const hsl$3 = hsl$2(hue$1);
10630
- var hslLong = hsl$2(nogamma$1);
10629
+ const hsl$1 = hsl(hue$1);
10630
+ var hslLong = hsl(nogamma);
10631
10631
  function lab(start, end) {
10632
- var l = nogamma$1((start = lab$1(start)).l, (end = lab$1(end)).l), a2 = nogamma$1(start.a, end.a), b2 = nogamma$1(start.b, end.b), opacity2 = nogamma$1(start.opacity, end.opacity);
10632
+ var l = nogamma((start = lab$1(start)).l, (end = lab$1(end)).l), a2 = nogamma(start.a, end.a), b2 = nogamma(start.b, end.b), opacity2 = nogamma(start.opacity, end.opacity);
10633
10633
  return function(t4) {
10634
10634
  start.l = l(t4);
10635
10635
  start.a = a2(t4);
@@ -10640,7 +10640,7 @@ function lab(start, end) {
10640
10640
  }
10641
10641
  function hcl(hue2) {
10642
10642
  return function(start, end) {
10643
- var h2 = hue2((start = hcl$2(start)).h, (end = hcl$2(end)).h), c2 = nogamma$1(start.c, end.c), l = nogamma$1(start.l, end.l), opacity2 = nogamma$1(start.opacity, end.opacity);
10643
+ var h2 = hue2((start = hcl$2(start)).h, (end = hcl$2(end)).h), c2 = nogamma(start.c, end.c), l = nogamma(start.l, end.l), opacity2 = nogamma(start.opacity, end.opacity);
10644
10644
  return function(t4) {
10645
10645
  start.h = h2(t4);
10646
10646
  start.c = c2(t4);
@@ -10651,12 +10651,12 @@ function hcl(hue2) {
10651
10651
  };
10652
10652
  }
10653
10653
  const hcl$1 = hcl(hue$1);
10654
- var hclLong = hcl(nogamma$1);
10654
+ var hclLong = hcl(nogamma);
10655
10655
  function cubehelix(hue2) {
10656
10656
  return function cubehelixGamma(y2) {
10657
10657
  y2 = +y2;
10658
10658
  function cubehelix2(start, end) {
10659
- var h2 = hue2((start = cubehelix$2(start)).h, (end = cubehelix$2(end)).h), s = nogamma$1(start.s, end.s), l = nogamma$1(start.l, end.l), opacity2 = nogamma$1(start.opacity, end.opacity);
10659
+ var h2 = hue2((start = cubehelix$2(start)).h, (end = cubehelix$2(end)).h), s = nogamma(start.s, end.s), l = nogamma(start.l, end.l), opacity2 = nogamma(start.opacity, end.opacity);
10660
10660
  return function(t4) {
10661
10661
  start.h = h2(t4);
10662
10662
  start.s = s(t4);
@@ -10670,9 +10670,9 @@ function cubehelix(hue2) {
10670
10670
  }(1);
10671
10671
  }
10672
10672
  const cubehelix$1 = cubehelix(hue$1);
10673
- var cubehelixLong = cubehelix(nogamma$1);
10674
- function piecewise$1(interpolate2, values2) {
10675
- if (values2 === void 0) values2 = interpolate2, interpolate2 = interpolate$1$1;
10673
+ var cubehelixLong = cubehelix(nogamma);
10674
+ function piecewise(interpolate2, values2) {
10675
+ if (values2 === void 0) values2 = interpolate2, interpolate2 = interpolate$2;
10676
10676
  var i = 0, n = values2.length - 1, v = values2[0], I = new Array(n < 0 ? 0 : n);
10677
10677
  while (i < n) I[i] = interpolate2(v, v = values2[++i]);
10678
10678
  return function(t4) {
@@ -10687,32 +10687,32 @@ function quantize$2(interpolator, n) {
10687
10687
  }
10688
10688
  const $$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10689
10689
  __proto__: null,
10690
- interpolate: interpolate$1$1,
10690
+ interpolate: interpolate$2,
10691
10691
  interpolateArray: array$3,
10692
10692
  interpolateBasis: basis$2,
10693
10693
  interpolateBasisClosed: basisClosed,
10694
10694
  interpolateCubehelix: cubehelix$1,
10695
10695
  interpolateCubehelixLong: cubehelixLong,
10696
- interpolateDate: date$2,
10696
+ interpolateDate: date$1,
10697
10697
  interpolateDiscrete: discrete$1,
10698
10698
  interpolateHcl: hcl$1,
10699
10699
  interpolateHclLong: hclLong,
10700
- interpolateHsl: hsl$3,
10700
+ interpolateHsl: hsl$1,
10701
10701
  interpolateHslLong: hslLong,
10702
10702
  interpolateHue: hue,
10703
10703
  interpolateLab: lab,
10704
10704
  interpolateNumber,
10705
- interpolateNumberArray: numberArray$1,
10706
- interpolateObject: object$1,
10707
- interpolateRgb: rgb$2,
10705
+ interpolateNumberArray: numberArray,
10706
+ interpolateObject: object,
10707
+ interpolateRgb,
10708
10708
  interpolateRgbBasis: rgbBasis,
10709
10709
  interpolateRgbBasisClosed: rgbBasisClosed,
10710
10710
  interpolateRound,
10711
- interpolateString: string$1,
10711
+ interpolateString: string,
10712
10712
  interpolateTransformCss,
10713
10713
  interpolateTransformSvg,
10714
10714
  interpolateZoom: zoom$1,
10715
- piecewise: piecewise$1,
10715
+ piecewise,
10716
10716
  quantize: quantize$2
10717
10717
  }, Symbol.toStringTag, { value: "Module" }));
10718
10718
  function constants$2(x2) {
@@ -10720,7 +10720,7 @@ function constants$2(x2) {
10720
10720
  return x2;
10721
10721
  };
10722
10722
  }
10723
- function number$6(x2) {
10723
+ function number$5(x2) {
10724
10724
  return +x2;
10725
10725
  }
10726
10726
  var unit = [0, 1];
@@ -10766,7 +10766,7 @@ function copy$3(source2, target2) {
10766
10766
  return target2.domain(source2.domain()).range(source2.range()).interpolate(source2.interpolate()).clamp(source2.clamp()).unknown(source2.unknown());
10767
10767
  }
10768
10768
  function transformer$3() {
10769
- var domain2 = unit, range2 = unit, interpolate2 = interpolate$1$1, transform2, untransform, unknown, clamp2 = identity$2, piecewise2, output2, input;
10769
+ var domain2 = unit, range2 = unit, interpolate2 = interpolate$2, transform2, untransform, unknown, clamp2 = identity$2, piecewise2, output2, input;
10770
10770
  function rescale() {
10771
10771
  var n = Math.min(domain2.length, range2.length);
10772
10772
  if (clamp2 !== identity$2) clamp2 = clamper(domain2[0], domain2[n - 1]);
@@ -10781,7 +10781,7 @@ function transformer$3() {
10781
10781
  return clamp2(untransform((input || (input = piecewise2(range2, domain2.map(transform2), interpolateNumber)))(y2)));
10782
10782
  };
10783
10783
  scale2.domain = function(_) {
10784
- return arguments.length ? (domain2 = Array.from(_, number$6), rescale()) : domain2.slice();
10784
+ return arguments.length ? (domain2 = Array.from(_, number$5), rescale()) : domain2.slice();
10785
10785
  };
10786
10786
  scale2.range = function(_) {
10787
10787
  return arguments.length ? (range2 = Array.from(_), rescale()) : range2.slice();
@@ -10876,10 +10876,10 @@ function linearish(scale2) {
10876
10876
  };
10877
10877
  return scale2;
10878
10878
  }
10879
- function linear$1() {
10879
+ function linear() {
10880
10880
  var scale2 = continuous$1();
10881
10881
  scale2.copy = function() {
10882
- return copy$3(scale2, linear$1());
10882
+ return copy$3(scale2, linear());
10883
10883
  };
10884
10884
  initRange.apply(scale2, arguments);
10885
10885
  return linearish(scale2);
@@ -10891,7 +10891,7 @@ function identity$1(domain2) {
10891
10891
  }
10892
10892
  scale2.invert = scale2;
10893
10893
  scale2.domain = scale2.range = function(_) {
10894
- return arguments.length ? (domain2 = Array.from(_, number$6), scale2) : domain2.slice();
10894
+ return arguments.length ? (domain2 = Array.from(_, number$5), scale2) : domain2.slice();
10895
10895
  };
10896
10896
  scale2.unknown = function(_) {
10897
10897
  return arguments.length ? (unknown = _, scale2) : unknown;
@@ -10899,7 +10899,7 @@ function identity$1(domain2) {
10899
10899
  scale2.copy = function() {
10900
10900
  return identity$1(domain2).unknown(unknown);
10901
10901
  };
10902
- domain2 = arguments.length ? Array.from(domain2, number$6) : [0, 1];
10902
+ domain2 = arguments.length ? Array.from(domain2, number$5) : [0, 1];
10903
10903
  return linearish(scale2);
10904
10904
  }
10905
10905
  function nice$1(domain2, interval2) {
@@ -11174,10 +11174,10 @@ function threshold() {
11174
11174
  };
11175
11175
  return initRange.apply(scale2, arguments);
11176
11176
  }
11177
- function date$1(t4) {
11177
+ function date(t4) {
11178
11178
  return new Date(t4);
11179
11179
  }
11180
- function number$5(t4) {
11180
+ function number$4(t4) {
11181
11181
  return t4 instanceof Date ? +t4 : +/* @__PURE__ */ new Date(+t4);
11182
11182
  }
11183
11183
  function calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minute2, second2, format2) {
@@ -11190,7 +11190,7 @@ function calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minut
11190
11190
  return new Date(invert2(y2));
11191
11191
  };
11192
11192
  scale2.domain = function(_) {
11193
- return arguments.length ? domain2(Array.from(_, number$5)) : domain2().map(date$1);
11193
+ return arguments.length ? domain2(Array.from(_, number$4)) : domain2().map(date);
11194
11194
  };
11195
11195
  scale2.ticks = function(interval2) {
11196
11196
  var d = domain2();
@@ -11235,7 +11235,7 @@ function transformer$2() {
11235
11235
  return arguments.length ? ([r0, r1] = _, interpolator = interpolate2(r0, r1), scale2) : [interpolator(0), interpolator(1)];
11236
11236
  };
11237
11237
  }
11238
- scale2.range = range2(interpolate$1$1);
11238
+ scale2.range = range2(interpolate$2);
11239
11239
  scale2.rangeRound = range2(interpolateRound);
11240
11240
  scale2.unknown = function(_) {
11241
11241
  return arguments.length ? (unknown = _, scale2) : unknown;
@@ -11296,10 +11296,10 @@ function transformer$1() {
11296
11296
  function range2(interpolate2) {
11297
11297
  return function(_) {
11298
11298
  var r0, r1, r2;
11299
- return arguments.length ? ([r0, r1, r2] = _, interpolator = piecewise$1(interpolate2, [r0, r1, r2]), scale2) : [interpolator(0), interpolator(0.5), interpolator(1)];
11299
+ return arguments.length ? ([r0, r1, r2] = _, interpolator = piecewise(interpolate2, [r0, r1, r2]), scale2) : [interpolator(0), interpolator(0.5), interpolator(1)];
11300
11300
  };
11301
11301
  }
11302
- scale2.range = range2(interpolate$1$1);
11302
+ scale2.range = range2(interpolate$2);
11303
11303
  scale2.rangeRound = range2(interpolateRound);
11304
11304
  scale2.unknown = function(_) {
11305
11305
  return arguments.length ? (unknown = _, scale2) : unknown;
@@ -11584,7 +11584,7 @@ function scale$4(type2, scale2, metadata2) {
11584
11584
  }
11585
11585
  }
11586
11586
  scale$4(Identity, identity$1);
11587
- scale$4(Linear, linear$1, Continuous);
11587
+ scale$4(Linear, linear, Continuous);
11588
11588
  scale$4(Log, log$3, [Continuous, Log]);
11589
11589
  scale$4(Pow, pow$2, Continuous);
11590
11590
  scale$4(Sqrt, sqrt$2, Continuous);
@@ -11645,7 +11645,7 @@ function interpolateRange$1(interpolator, range2) {
11645
11645
  };
11646
11646
  }
11647
11647
  function interpolateColors(colors2, type2, gamma2) {
11648
- return piecewise$1(interpolate$2(type2 || "rgb", gamma2), colors2);
11648
+ return piecewise(interpolate$1(type2 || "rgb", gamma2), colors2);
11649
11649
  }
11650
11650
  function quantizeInterpolator(interpolator, count2) {
11651
11651
  const samples = new Array(count2), n = count2 + 1;
@@ -11656,7 +11656,7 @@ function scaleFraction(scale$12, min2, max2) {
11656
11656
  const delta = max2 - min2;
11657
11657
  let i, t4, s;
11658
11658
  if (!delta || !Number.isFinite(delta)) {
11659
- return constant$5(0.5);
11659
+ return constant$4(0.5);
11660
11660
  } else {
11661
11661
  i = (t4 = scale$12.type).indexOf("-");
11662
11662
  t4 = i < 0 ? t4 : t4.slice(i + 1);
@@ -11665,7 +11665,7 @@ function scaleFraction(scale$12, min2, max2) {
11665
11665
  return s;
11666
11666
  }
11667
11667
  }
11668
- function interpolate$2(type2, gamma2) {
11668
+ function interpolate$1(type2, gamma2) {
11669
11669
  const interp = $$1[method(type2)];
11670
11670
  return gamma2 != null && interp && interp.gamma ? interp.gamma(gamma2) : interp;
11671
11671
  }
@@ -12559,14 +12559,14 @@ function rectangleWidth(d) {
12559
12559
  function rectangleHeight(d) {
12560
12560
  return d.height;
12561
12561
  }
12562
- function number$4(_) {
12562
+ function number$3(_) {
12563
12563
  return typeof _ === "function" ? _ : () => +_;
12564
12564
  }
12565
12565
  function clamp$1(value2, min2, max2) {
12566
12566
  return Math.max(min2, Math.min(value2, max2));
12567
12567
  }
12568
12568
  function vg_rect() {
12569
- var x2 = rectangleX, y2 = rectangleY, width2 = rectangleWidth, height2 = rectangleHeight, crTL = number$4(0), crTR = crTL, crBL = crTL, crBR = crTL, context2 = null;
12569
+ var x2 = rectangleX, y2 = rectangleY, width2 = rectangleWidth, height2 = rectangleHeight, crTL = number$3(0), crTR = crTL, crBL = crTL, crBR = crTL, context2 = null;
12570
12570
  function rectangle2(_, x02, y02) {
12571
12571
  var buffer, x12 = x02 != null ? x02 : +x2.call(this, _), y12 = y02 != null ? y02 : +y2.call(this, _), w2 = +width2.call(this, _), h2 = +height2.call(this, _), s = Math.min(w2, h2) / 2, tl2 = clamp$1(+crTL.call(this, _), 0, s), tr2 = clamp$1(+crTR.call(this, _), 0, s), bl2 = clamp$1(+crBL.call(this, _), 0, s), br2 = clamp$1(+crBR.call(this, _), 0, s);
12572
12572
  if (!context2) context2 = buffer = path$3();
@@ -12592,7 +12592,7 @@ function vg_rect() {
12592
12592
  }
12593
12593
  rectangle2.x = function(_) {
12594
12594
  if (arguments.length) {
12595
- x2 = number$4(_);
12595
+ x2 = number$3(_);
12596
12596
  return rectangle2;
12597
12597
  } else {
12598
12598
  return x2;
@@ -12600,7 +12600,7 @@ function vg_rect() {
12600
12600
  };
12601
12601
  rectangle2.y = function(_) {
12602
12602
  if (arguments.length) {
12603
- y2 = number$4(_);
12603
+ y2 = number$3(_);
12604
12604
  return rectangle2;
12605
12605
  } else {
12606
12606
  return y2;
@@ -12608,7 +12608,7 @@ function vg_rect() {
12608
12608
  };
12609
12609
  rectangle2.width = function(_) {
12610
12610
  if (arguments.length) {
12611
- width2 = number$4(_);
12611
+ width2 = number$3(_);
12612
12612
  return rectangle2;
12613
12613
  } else {
12614
12614
  return width2;
@@ -12616,7 +12616,7 @@ function vg_rect() {
12616
12616
  };
12617
12617
  rectangle2.height = function(_) {
12618
12618
  if (arguments.length) {
12619
- height2 = number$4(_);
12619
+ height2 = number$3(_);
12620
12620
  return rectangle2;
12621
12621
  } else {
12622
12622
  return height2;
@@ -12624,10 +12624,10 @@ function vg_rect() {
12624
12624
  };
12625
12625
  rectangle2.cornerRadius = function(tl2, tr2, br2, bl2) {
12626
12626
  if (arguments.length) {
12627
- crTL = number$4(tl2);
12628
- crTR = tr2 != null ? number$4(tr2) : crTL;
12629
- crBR = br2 != null ? number$4(br2) : crTL;
12630
- crBL = bl2 != null ? number$4(bl2) : crTR;
12627
+ crTL = number$3(tl2);
12628
+ crTR = tr2 != null ? number$3(tr2) : crTL;
12629
+ crBR = br2 != null ? number$3(br2) : crTL;
12630
+ crBL = bl2 != null ? number$3(bl2) : crTR;
12631
12631
  return rectangle2;
12632
12632
  } else {
12633
12633
  return crTL;
@@ -13197,14 +13197,14 @@ function gradient$2(context2, spec, bounds2) {
13197
13197
  }
13198
13198
  return addStops(gradient2, spec.stops);
13199
13199
  }
13200
- function color$5(context2, item, value2) {
13200
+ function color$3(context2, item, value2) {
13201
13201
  return isGradient(value2) ? gradient$2(context2, value2, item.bounds) : value2;
13202
13202
  }
13203
13203
  function fill(context2, item, opacity2) {
13204
13204
  opacity2 *= item.fillOpacity == null ? 1 : item.fillOpacity;
13205
13205
  if (opacity2 > 0) {
13206
13206
  context2.globalAlpha = opacity2;
13207
- context2.fillStyle = color$5(context2, item, item.fill);
13207
+ context2.fillStyle = color$3(context2, item, item.fill);
13208
13208
  return true;
13209
13209
  } else {
13210
13210
  return false;
@@ -13217,7 +13217,7 @@ function stroke(context2, item, opacity2) {
13217
13217
  opacity2 *= item.strokeOpacity == null ? 1 : item.strokeOpacity;
13218
13218
  if (opacity2 > 0) {
13219
13219
  context2.globalAlpha = opacity2;
13220
- context2.strokeStyle = color$5(context2, item, item.stroke);
13220
+ context2.strokeStyle = color$3(context2, item, item.stroke);
13221
13221
  context2.lineWidth = lw;
13222
13222
  context2.lineCap = item.strokeCap || "butt";
13223
13223
  context2.lineJoin = item.strokeJoin || "miter";
@@ -15604,7 +15604,7 @@ inherits(SVGStringRenderer, Renderer, {
15604
15604
  */
15605
15605
  _render(scene) {
15606
15606
  const m2 = markup();
15607
- m2.open("svg", extend$3({}, metadata, {
15607
+ m2.open("svg", extend$1({}, metadata, {
15608
15608
  class: "marks",
15609
15609
  width: this._width * this._scale,
15610
15610
  height: this._height * this._scale,
@@ -17076,7 +17076,7 @@ inherits(LegendEntries$1, Transform, {
17076
17076
  }
17077
17077
  offset2 = items.reduce((max2, value2) => Math.max(max2, size(value2, _)), 0);
17078
17078
  } else {
17079
- size = constant$5(offset2 = size || 8);
17079
+ size = constant$4(offset2 = size || 8);
17080
17080
  }
17081
17081
  items = items.map((value2, index2) => ingest$1({
17082
17082
  index: index2,
@@ -17259,7 +17259,7 @@ Pie.Definition = {
17259
17259
  };
17260
17260
  inherits(Pie, Transform, {
17261
17261
  transform(_, pulse2) {
17262
- var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$3, start = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values2 = data2.map(field2), n = values2.length, a2 = start, k = (stop3 - start) / sum$1(values2), index2 = range$6(n), i, t4, v;
17262
+ var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$2, start = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values2 = data2.map(field2), n = values2.length, a2 = start, k = (stop3 - start) / sum$1(values2), index2 = range$6(n), i, t4, v;
17263
17263
  if (_.sort) {
17264
17264
  index2.sort((a3, b2) => values2[a3] - values2[b2]);
17265
17265
  }
@@ -17412,11 +17412,11 @@ function configureRange(scale2, _, count2) {
17412
17412
  return scale2.interpolator(interpolateColors(flip$1(range2, _.reverse), _.interpolate, _.interpolateGamma));
17413
17413
  }
17414
17414
  if (range2 && _.interpolate && scale2.interpolate) {
17415
- scale2.interpolate(interpolate$2(_.interpolate, _.interpolateGamma));
17415
+ scale2.interpolate(interpolate$1(_.interpolate, _.interpolateGamma));
17416
17416
  } else if (isFunction$3(scale2.round)) {
17417
17417
  scale2.round(round2);
17418
17418
  } else if (isFunction$3(scale2.rangeRound)) {
17419
- scale2.interpolate(round2 ? interpolateRound : interpolate$1$1);
17419
+ scale2.interpolate(round2 ? interpolateRound : interpolate$2);
17420
17420
  }
17421
17421
  if (range2) scale2.range(flip$1(range2, _.reverse));
17422
17422
  }
@@ -17490,7 +17490,7 @@ Stack$1.Definition = {
17490
17490
  };
17491
17491
  inherits(Stack$1, Transform, {
17492
17492
  transform(_, pulse2) {
17493
- var as = _.as || DefOutput, y02 = as[0], y12 = as[1], sort2 = stableCompare(_.sort), field2 = _.field || one$3, stack2 = _.offset === Center$1 ? stackCenter : _.offset === Normalize ? stackNormalize : stackZero, groups, i, n, max2;
17493
+ var as = _.as || DefOutput, y02 = as[0], y12 = as[1], sort2 = stableCompare(_.sort), field2 = _.field || one$2, stack2 = _.offset === Center$1 ? stackCenter : _.offset === Normalize ? stackNormalize : stackZero, groups, i, n, max2;
17494
17494
  groups = partition$3(pulse2.source, _.groupby, sort2, field2);
17495
17495
  for (i = 0, n = groups.length, max2 = groups.max; i < n; ++i) {
17496
17496
  stack2(groups[i], max2, field2, y02, y12);
@@ -20005,11 +20005,11 @@ function radius(bw, data2, f) {
20005
20005
  const v = bw >= 0 ? bw : estimateBandwidth(data2, f);
20006
20006
  return Math.round((Math.sqrt(4 * v * v + 1) - 1) / 2);
20007
20007
  }
20008
- function number$3(_) {
20009
- return isFunction$3(_) ? _ : constant$5(+_);
20008
+ function number$2(_) {
20009
+ return isFunction$3(_) ? _ : constant$4(+_);
20010
20010
  }
20011
20011
  function density2D() {
20012
- var x2 = (d) => d[0], y2 = (d) => d[1], weight = one$3, bandwidth2 = [-1, -1], dx = 960, dy = 500, k = 2;
20012
+ var x2 = (d) => d[0], y2 = (d) => d[1], weight = one$2, bandwidth2 = [-1, -1], dx = 960, dy = 500, k = 2;
20013
20013
  function density(data2, counts) {
20014
20014
  const rx = radius(bandwidth2[0], data2, x2) >> k, ry = radius(bandwidth2[1], data2, y2) >> k, ox = rx ? rx + 2 : 0, oy = ry ? ry + 2 : 0, n = 2 * ox + (dx >> k), m2 = 2 * oy + (dy >> k), values0 = new Float32Array(n * m2), values1 = new Float32Array(n * m2);
20015
20015
  let values2 = values0;
@@ -20051,13 +20051,13 @@ function density2D() {
20051
20051
  };
20052
20052
  }
20053
20053
  density.x = function(_) {
20054
- return arguments.length ? (x2 = number$3(_), density) : x2;
20054
+ return arguments.length ? (x2 = number$2(_), density) : x2;
20055
20055
  };
20056
20056
  density.y = function(_) {
20057
- return arguments.length ? (y2 = number$3(_), density) : y2;
20057
+ return arguments.length ? (y2 = number$2(_), density) : y2;
20058
20058
  };
20059
20059
  density.weight = function(_) {
20060
- return arguments.length ? (weight = number$3(_), density) : weight;
20060
+ return arguments.length ? (weight = number$2(_), density) : weight;
20061
20061
  };
20062
20062
  density.size = function(_) {
20063
20063
  if (!arguments.length) return [dx, dy];
@@ -20593,9 +20593,9 @@ inherits(Heatmap, Transform, {
20593
20593
  };
20594
20594
  source2.forEach((t4) => {
20595
20595
  const v = field2(t4);
20596
- const o = extend$3({}, t4, obj);
20596
+ const o = extend$1({}, t4, obj);
20597
20597
  if (!shared) o.$max = max$2(v.values || []);
20598
- t4[as] = toCanvas(v, o, color2.dep ? color2 : constant$5(color2(o)), opacity2.dep ? opacity2 : constant$5(opacity2(o)));
20598
+ t4[as] = toCanvas(v, o, color2.dep ? color2 : constant$4(color2(o)), opacity2.dep ? opacity2 : constant$4(opacity2(o)));
20599
20599
  });
20600
20600
  return pulse2.reflow(true).modifies(as);
20601
20601
  }
@@ -20603,10 +20603,10 @@ inherits(Heatmap, Transform, {
20603
20603
  function color_(color2, _) {
20604
20604
  let f;
20605
20605
  if (isFunction$3(color2)) {
20606
- f = (obj) => rgb$3(color2(obj, _));
20606
+ f = (obj) => rgb(color2(obj, _));
20607
20607
  f.dep = dependency(color2);
20608
20608
  } else {
20609
- f = constant$5(rgb$3(color2 || "#888"));
20609
+ f = constant$4(rgb(color2 || "#888"));
20610
20610
  }
20611
20611
  return f;
20612
20612
  }
@@ -20616,7 +20616,7 @@ function opacity_(opacity2, _) {
20616
20616
  f = (obj) => opacity2(obj, _);
20617
20617
  f.dep = dependency(opacity2);
20618
20618
  } else if (opacity2) {
20619
- f = constant$5(opacity2);
20619
+ f = constant$4(opacity2);
20620
20620
  } else {
20621
20621
  f = (obj) => obj.$value / obj.$max || 0;
20622
20622
  f.dep = true;
@@ -20629,7 +20629,7 @@ function dependency(f) {
20629
20629
  return set2.$x || set2.$y || set2.$value || set2.$max;
20630
20630
  }
20631
20631
  function toCanvas(grid, obj, color2, opacity2) {
20632
- const n = grid.width, m2 = grid.height, x12 = grid.x1 || 0, y12 = grid.y1 || 0, x2 = grid.x2 || n, y2 = grid.y2 || m2, val = grid.values, value2 = val ? (i) => val[i] : zero$5, can = domCanvas(x2 - x12, y2 - y12), ctx = can.getContext("2d"), img = ctx.getImageData(0, 0, x2 - x12, y2 - y12), pix = img.data;
20632
+ const n = grid.width, m2 = grid.height, x12 = grid.x1 || 0, y12 = grid.y1 || 0, x2 = grid.x2 || n, y2 = grid.y2 || m2, val = grid.values, value2 = val ? (i) => val[i] : zero$4, can = domCanvas(x2 - x12, y2 - y12), ctx = can.getContext("2d"), img = ctx.getImageData(0, 0, x2 - x12, y2 - y12), pix = img.data;
20633
20633
  for (let j = y12, k = 0; j < y2; ++j) {
20634
20634
  obj.$y = j - y12;
20635
20635
  for (let i = x12, r2 = j * n; i < x2; ++i, k += 4) {
@@ -20999,7 +20999,7 @@ treeProto.visit = tree_visit;
20999
20999
  treeProto.visitAfter = tree_visitAfter;
21000
21000
  treeProto.x = tree_x;
21001
21001
  treeProto.y = tree_y;
21002
- function constant$2(x2) {
21002
+ function constant$1(x2) {
21003
21003
  return function() {
21004
21004
  return x2;
21005
21005
  };
@@ -21015,7 +21015,7 @@ function y$1(d) {
21015
21015
  }
21016
21016
  function forceCollide(radius2) {
21017
21017
  var nodes, radii, random2, strength = 1, iterations2 = 1;
21018
- if (typeof radius2 !== "function") radius2 = constant$2(radius2 == null ? 1 : +radius2);
21018
+ if (typeof radius2 !== "function") radius2 = constant$1(radius2 == null ? 1 : +radius2);
21019
21019
  function force2() {
21020
21020
  var i, n = nodes.length, tree2, node2, xi, yi, ri, ri2;
21021
21021
  for (var k = 0; k < iterations2; ++k) {
@@ -21074,7 +21074,7 @@ function forceCollide(radius2) {
21074
21074
  return arguments.length ? (strength = +_, force2) : strength;
21075
21075
  };
21076
21076
  force2.radius = function(_) {
21077
- return arguments.length ? (radius2 = typeof _ === "function" ? _ : constant$2(+_), initialize2(), force2) : radius2;
21077
+ return arguments.length ? (radius2 = typeof _ === "function" ? _ : constant$1(+_), initialize2(), force2) : radius2;
21078
21078
  };
21079
21079
  return force2;
21080
21080
  }
@@ -21087,7 +21087,7 @@ function find$2(nodeById, nodeId) {
21087
21087
  return node2;
21088
21088
  }
21089
21089
  function forceLink(links) {
21090
- var id2 = index$1, strength = defaultStrength, strengths, distance = constant$2(30), distances, nodes, count2, bias, random2, iterations2 = 1;
21090
+ var id2 = index$1, strength = defaultStrength, strengths, distance = constant$1(30), distances, nodes, count2, bias, random2, iterations2 = 1;
21091
21091
  if (links == null) links = [];
21092
21092
  function defaultStrength(link2) {
21093
21093
  return 1 / Math.min(count2[link2.source.index], count2[link2.target.index]);
@@ -21151,10 +21151,10 @@ function forceLink(links) {
21151
21151
  return arguments.length ? (iterations2 = +_, force2) : iterations2;
21152
21152
  };
21153
21153
  force2.strength = function(_) {
21154
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant$2(+_), initializeStrength(), force2) : strength;
21154
+ return arguments.length ? (strength = typeof _ === "function" ? _ : constant$1(+_), initializeStrength(), force2) : strength;
21155
21155
  };
21156
21156
  force2.distance = function(_) {
21157
- return arguments.length ? (distance = typeof _ === "function" ? _ : constant$2(+_), initializeDistance(), force2) : distance;
21157
+ return arguments.length ? (distance = typeof _ === "function" ? _ : constant$1(+_), initializeDistance(), force2) : distance;
21158
21158
  };
21159
21159
  return force2;
21160
21160
  }
@@ -21444,7 +21444,7 @@ function forceSimulation(nodes) {
21444
21444
  };
21445
21445
  }
21446
21446
  function forceManyBody() {
21447
- var nodes, node2, random2, alpha2, strength = constant$2(-30), strengths, distanceMin2 = 1, distanceMax2 = Infinity, theta2 = 0.81;
21447
+ var nodes, node2, random2, alpha2, strength = constant$1(-30), strengths, distanceMin2 = 1, distanceMax2 = Infinity, theta2 = 0.81;
21448
21448
  function force2(_) {
21449
21449
  var i, n = nodes.length, tree2 = quadtree(nodes, x, y).visitAfter(accumulate);
21450
21450
  for (alpha2 = _, i = 0; i < n; ++i) node2 = nodes[i], tree2.visit(apply2);
@@ -21507,7 +21507,7 @@ function forceManyBody() {
21507
21507
  initialize2();
21508
21508
  };
21509
21509
  force2.strength = function(_) {
21510
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant$2(+_), initialize2(), force2) : strength;
21510
+ return arguments.length ? (strength = typeof _ === "function" ? _ : constant$1(+_), initialize2(), force2) : strength;
21511
21511
  };
21512
21512
  force2.distanceMin = function(_) {
21513
21513
  return arguments.length ? (distanceMin2 = _ * _, force2) : Math.sqrt(distanceMin2);
@@ -21521,8 +21521,8 @@ function forceManyBody() {
21521
21521
  return force2;
21522
21522
  }
21523
21523
  function forceX(x2) {
21524
- var strength = constant$2(0.1), nodes, strengths, xz;
21525
- if (typeof x2 !== "function") x2 = constant$2(x2 == null ? 0 : +x2);
21524
+ var strength = constant$1(0.1), nodes, strengths, xz;
21525
+ if (typeof x2 !== "function") x2 = constant$1(x2 == null ? 0 : +x2);
21526
21526
  function force2(alpha2) {
21527
21527
  for (var i = 0, n = nodes.length, node2; i < n; ++i) {
21528
21528
  node2 = nodes[i], node2.vx += (xz[i] - node2.x) * strengths[i] * alpha2;
@@ -21542,16 +21542,16 @@ function forceX(x2) {
21542
21542
  initialize2();
21543
21543
  };
21544
21544
  force2.strength = function(_) {
21545
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant$2(+_), initialize2(), force2) : strength;
21545
+ return arguments.length ? (strength = typeof _ === "function" ? _ : constant$1(+_), initialize2(), force2) : strength;
21546
21546
  };
21547
21547
  force2.x = function(_) {
21548
- return arguments.length ? (x2 = typeof _ === "function" ? _ : constant$2(+_), initialize2(), force2) : x2;
21548
+ return arguments.length ? (x2 = typeof _ === "function" ? _ : constant$1(+_), initialize2(), force2) : x2;
21549
21549
  };
21550
21550
  return force2;
21551
21551
  }
21552
21552
  function forceY(y2) {
21553
- var strength = constant$2(0.1), nodes, strengths, yz;
21554
- if (typeof y2 !== "function") y2 = constant$2(y2 == null ? 0 : +y2);
21553
+ var strength = constant$1(0.1), nodes, strengths, yz;
21554
+ if (typeof y2 !== "function") y2 = constant$1(y2 == null ? 0 : +y2);
21555
21555
  function force2(alpha2) {
21556
21556
  for (var i = 0, n = nodes.length, node2; i < n; ++i) {
21557
21557
  node2 = nodes[i], node2.vy += (yz[i] - node2.y) * strengths[i] * alpha2;
@@ -21571,10 +21571,10 @@ function forceY(y2) {
21571
21571
  initialize2();
21572
21572
  };
21573
21573
  force2.strength = function(_) {
21574
- return arguments.length ? (strength = typeof _ === "function" ? _ : constant$2(+_), initialize2(), force2) : strength;
21574
+ return arguments.length ? (strength = typeof _ === "function" ? _ : constant$1(+_), initialize2(), force2) : strength;
21575
21575
  };
21576
21576
  force2.y = function(_) {
21577
- return arguments.length ? (y2 = typeof _ === "function" ? _ : constant$2(+_), initialize2(), force2) : y2;
21577
+ return arguments.length ? (y2 = typeof _ === "function" ? _ : constant$1(+_), initialize2(), force2) : y2;
21578
21578
  };
21579
21579
  return force2;
21580
21580
  }
@@ -22098,7 +22098,7 @@ function required(f) {
22098
22098
  function constantZero() {
22099
22099
  return 0;
22100
22100
  }
22101
- function constant$1(x2) {
22101
+ function constant(x2) {
22102
22102
  return function() {
22103
22103
  return x2;
22104
22104
  };
@@ -22299,7 +22299,7 @@ function pack() {
22299
22299
  return arguments.length ? (dx = +x2[0], dy = +x2[1], pack2) : [dx, dy];
22300
22300
  };
22301
22301
  pack2.padding = function(x2) {
22302
- return arguments.length ? (padding2 = typeof x2 === "function" ? x2 : constant$1(+x2), pack2) : padding2;
22302
+ return arguments.length ? (padding2 = typeof x2 === "function" ? x2 : constant(+x2), pack2) : padding2;
22303
22303
  };
22304
22304
  return pack2;
22305
22305
  }
@@ -22717,22 +22717,22 @@ function treemap() {
22717
22717
  return arguments.length ? treemap2.paddingInner(x2).paddingOuter(x2) : treemap2.paddingInner();
22718
22718
  };
22719
22719
  treemap2.paddingInner = function(x2) {
22720
- return arguments.length ? (paddingInner2 = typeof x2 === "function" ? x2 : constant$1(+x2), treemap2) : paddingInner2;
22720
+ return arguments.length ? (paddingInner2 = typeof x2 === "function" ? x2 : constant(+x2), treemap2) : paddingInner2;
22721
22721
  };
22722
22722
  treemap2.paddingOuter = function(x2) {
22723
22723
  return arguments.length ? treemap2.paddingTop(x2).paddingRight(x2).paddingBottom(x2).paddingLeft(x2) : treemap2.paddingTop();
22724
22724
  };
22725
22725
  treemap2.paddingTop = function(x2) {
22726
- return arguments.length ? (paddingTop = typeof x2 === "function" ? x2 : constant$1(+x2), treemap2) : paddingTop;
22726
+ return arguments.length ? (paddingTop = typeof x2 === "function" ? x2 : constant(+x2), treemap2) : paddingTop;
22727
22727
  };
22728
22728
  treemap2.paddingRight = function(x2) {
22729
- return arguments.length ? (paddingRight = typeof x2 === "function" ? x2 : constant$1(+x2), treemap2) : paddingRight;
22729
+ return arguments.length ? (paddingRight = typeof x2 === "function" ? x2 : constant(+x2), treemap2) : paddingRight;
22730
22730
  };
22731
22731
  treemap2.paddingBottom = function(x2) {
22732
- return arguments.length ? (paddingBottom = typeof x2 === "function" ? x2 : constant$1(+x2), treemap2) : paddingBottom;
22732
+ return arguments.length ? (paddingBottom = typeof x2 === "function" ? x2 : constant(+x2), treemap2) : paddingBottom;
22733
22733
  };
22734
22734
  treemap2.paddingLeft = function(x2) {
22735
- return arguments.length ? (paddingLeft = typeof x2 === "function" ? x2 : constant$1(+x2), treemap2) : paddingLeft;
22735
+ return arguments.length ? (paddingLeft = typeof x2 === "function" ? x2 : constant(+x2), treemap2) : paddingLeft;
22736
22736
  };
22737
22737
  return treemap2;
22738
22738
  }
@@ -22907,7 +22907,7 @@ inherits(HierarchyLayout, Transform, {
22907
22907
  if (_.sort) root2.sort(stableCompare(_.sort, (d) => d.data));
22908
22908
  setParams(layout, this.params, _);
22909
22909
  if (layout.separation) {
22910
- layout.separation(_.separation !== false ? defaultSeparation : one$3);
22910
+ layout.separation(_.separation !== false ? defaultSeparation : one$2);
22911
22911
  }
22912
22912
  try {
22913
22913
  this.value = layout(root2);
@@ -23911,7 +23911,7 @@ inherits(Loess, Transform, {
23911
23911
  }
23912
23912
  });
23913
23913
  const Methods = {
23914
- linear: linear$3,
23914
+ linear: linear$2,
23915
23915
  log: log$4,
23916
23916
  exp: exp$1,
23917
23917
  pow: pow$3,
@@ -25662,7 +25662,7 @@ inherits(Wordcloud, Transform, {
25662
25662
  if (!(mod || pulse2.changed(pulse2.ADD_REM) || Params$1.some(modp))) return;
25663
25663
  const data2 = pulse2.materialize(pulse2.SOURCE).source, layout = this.value, as = _.as || Output;
25664
25664
  let fontSize2 = _.fontSize || 14, range2;
25665
- isFunction$3(fontSize2) ? range2 = _.fontSizeRange : fontSize2 = constant$5(fontSize2);
25665
+ isFunction$3(fontSize2) ? range2 = _.fontSizeRange : fontSize2 = constant$4(fontSize2);
25666
25666
  if (range2) {
25667
25667
  const fsize = fontSize2, sizeScale = scale$4("sqrt")().domain(extent(data2, fsize)).range(range2);
25668
25668
  fontSize2 = (x2) => sizeScale(fsize(x2));
@@ -27620,7 +27620,7 @@ function selectionIdTest(name, datum2, op) {
27620
27620
  return true;
27621
27621
  }
27622
27622
  function selectionTuples(array2, base2) {
27623
- return array2.map((x2) => extend$3(base2.fields ? {
27623
+ return array2.map((x2) => extend$1(base2.fields ? {
27624
27624
  values: base2.fields.map((f) => (f.getter || (f.getter = field$1(f.field)))(x2.datum))
27625
27625
  } : {
27626
27626
  [SelectionId]: $selectionId(x2.datum)
@@ -27888,7 +27888,7 @@ function channel_luminance_value(channelValue) {
27888
27888
  return Math.pow((val + 0.055) / 1.055, 2.4);
27889
27889
  }
27890
27890
  function luminance(color2) {
27891
- const c2 = rgb$3(color2), r2 = channel_luminance_value(c2.r), g = channel_luminance_value(c2.g), b2 = channel_luminance_value(c2.b);
27891
+ const c2 = rgb(color2), r2 = channel_luminance_value(c2.r), g = channel_luminance_value(c2.g), b2 = channel_luminance_value(c2.b);
27892
27892
  return 0.2126 * r2 + 0.7152 * g + 0.0722 * b2;
27893
27893
  }
27894
27894
  function contrast(color1, color2) {
@@ -27898,7 +27898,7 @@ function contrast(color1, color2) {
27898
27898
  function merge$1() {
27899
27899
  const args = [].slice.call(arguments);
27900
27900
  args.unshift({});
27901
- return extend$3(...args);
27901
+ return extend$1(...args);
27902
27902
  }
27903
27903
  function equal$1(a2, b2) {
27904
27904
  return a2 === b2 || a2 !== a2 && b2 !== b2 ? true : isArray$1(a2) ? isArray$1(b2) && a2.length === b2.length ? equalArray(a2, b2) : false : isObject$1(a2) && isObject$1(b2) ? equalObject(a2, b2) : false;
@@ -28195,10 +28195,10 @@ const functionContext = {
28195
28195
  span,
28196
28196
  inrange,
28197
28197
  truncate: truncate$1,
28198
- rgb: rgb$3,
28198
+ rgb,
28199
28199
  lab: lab$1,
28200
28200
  hcl: hcl$2,
28201
- hsl: hsl$4,
28201
+ hsl: hsl$2,
28202
28202
  luminance,
28203
28203
  contrast,
28204
28204
  sequence: range$6,
@@ -28271,7 +28271,7 @@ function buildFunctions(codegen2) {
28271
28271
  for (const name in functionContext) {
28272
28272
  fn[name] = thisPrefix + name;
28273
28273
  }
28274
- extend$3(fn, internalScaleFunctions(codegen2, functionContext, astVisitors));
28274
+ extend$1(fn, internalScaleFunctions(codegen2, functionContext, astVisitors));
28275
28275
  return fn;
28276
28276
  }
28277
28277
  function expressionFunction(name, fn, visitor) {
@@ -28324,7 +28324,7 @@ function parser(expr2, scope) {
28324
28324
  }
28325
28325
  });
28326
28326
  return {
28327
- $expr: extend$3({
28327
+ $expr: extend$1({
28328
28328
  code: gen.code
28329
28329
  }, scope.options.ast ? {
28330
28330
  ast
@@ -28932,8 +28932,8 @@ function extension(view, item, point2) {
28932
28932
  return p;
28933
28933
  }
28934
28934
  return {
28935
- view: constant$5(view),
28936
- item: constant$5(item || {}),
28935
+ view: constant$4(view),
28936
+ item: constant$4(item || {}),
28937
28937
  group: group2,
28938
28938
  xy,
28939
28939
  x: (item2) => xy(item2)[0],
@@ -28944,7 +28944,7 @@ const VIEW$1 = "view", TIMER = "timer", WINDOW = "window", NO_TRAP = {
28944
28944
  trap: false
28945
28945
  };
28946
28946
  function initializeEventConfig(config) {
28947
- const events2 = extend$3({
28947
+ const events2 = extend$1({
28948
28948
  defaults: {}
28949
28949
  }, config);
28950
28950
  const unpack = (obj, keys2) => {
@@ -29307,7 +29307,7 @@ function lookup$1(view, el, clear2) {
29307
29307
  }
29308
29308
  return el;
29309
29309
  }
29310
- const number$2 = (_) => +_ || 0;
29310
+ const number$1 = (_) => +_ || 0;
29311
29311
  const paddingObject$1 = (_) => ({
29312
29312
  top: _,
29313
29313
  bottom: _,
@@ -29316,11 +29316,11 @@ const paddingObject$1 = (_) => ({
29316
29316
  });
29317
29317
  function padding$2(_) {
29318
29318
  return isObject$1(_) ? {
29319
- top: number$2(_.top),
29320
- bottom: number$2(_.bottom),
29321
- left: number$2(_.left),
29322
- right: number$2(_.right)
29323
- } : paddingObject$1(number$2(_));
29319
+ top: number$1(_.top),
29320
+ bottom: number$1(_.bottom),
29321
+ left: number$1(_.left),
29322
+ right: number$1(_.right)
29323
+ } : paddingObject$1(number$1(_));
29324
29324
  }
29325
29325
  async function renderHeadless(view, type2, scaleFactor, opt) {
29326
29326
  const module2 = renderModule(type2), ctr = module2 && module2.headless;
@@ -29484,7 +29484,7 @@ function View$1(spec, options) {
29484
29484
  if (options.logger) view.logger(options.logger);
29485
29485
  if (options.logLevel != null) view.logLevel(options.logLevel);
29486
29486
  if (options.locale || spec.locale) {
29487
- const loc = extend$3({}, spec.locale, options.locale);
29487
+ const loc = extend$1({}, spec.locale, options.locale);
29488
29488
  view.locale(locale(loc.number, loc.time));
29489
29489
  }
29490
29490
  view._el = null;
@@ -29507,7 +29507,7 @@ function View$1(spec, options) {
29507
29507
  view._signals = ctx.signals;
29508
29508
  view._bind = (spec.bindings || []).map((_) => ({
29509
29509
  state: null,
29510
- param: extend$3({}, _)
29510
+ param: extend$1({}, _)
29511
29511
  }));
29512
29512
  if (ctx.root) ctx.root.set(root2);
29513
29513
  root2.source = ctx.data.root.input;
@@ -29892,7 +29892,7 @@ function parseAutosize(spec) {
29892
29892
  type: spec || "pad"
29893
29893
  };
29894
29894
  }
29895
- const number$1 = (_) => +_ || 0;
29895
+ const number = (_) => +_ || 0;
29896
29896
  const paddingObject = (_) => ({
29897
29897
  top: _,
29898
29898
  bottom: _,
@@ -29900,14 +29900,14 @@ const paddingObject = (_) => ({
29900
29900
  right: _
29901
29901
  });
29902
29902
  function parsePadding(spec) {
29903
- return !isObject$1(spec) ? paddingObject(number$1(spec)) : spec.signal ? spec : {
29904
- top: number$1(spec.top),
29905
- bottom: number$1(spec.bottom),
29906
- left: number$1(spec.left),
29907
- right: number$1(spec.right)
29903
+ return !isObject$1(spec) ? paddingObject(number(spec)) : spec.signal ? spec : {
29904
+ top: number(spec.top),
29905
+ bottom: number(spec.bottom),
29906
+ left: number(spec.left),
29907
+ right: number(spec.right)
29908
29908
  };
29909
29909
  }
29910
- const encoder = (_) => isObject$1(_) && !isArray$1(_) ? extend$3({}, _) : {
29910
+ const encoder = (_) => isObject$1(_) && !isArray$1(_) ? extend$1({}, _) : {
29911
29911
  value: _
29912
29912
  };
29913
29913
  function addEncode(object2, name, value2, set2) {
@@ -29936,7 +29936,7 @@ function addEncoders(object2, enter, update2) {
29936
29936
  function extendEncode(encode2, extra, skip) {
29937
29937
  for (const name in extra) {
29938
29938
  if (skip && has$2(skip, name)) continue;
29939
- encode2[name] = extend$3(encode2[name] || {}, extra[name]);
29939
+ encode2[name] = extend$1(encode2[name] || {}, extra[name]);
29940
29940
  }
29941
29941
  return encode2;
29942
29942
  }
@@ -29972,7 +29972,7 @@ function applyDefaults(encode2, type2, role, style2, config) {
29972
29972
  if (role == "legend" || String(role).startsWith("axis")) {
29973
29973
  role = null;
29974
29974
  }
29975
- props = role === FrameRole ? config.group : role === MarkRole ? extend$3({}, config.mark, config[type2]) : null;
29975
+ props = role === FrameRole ? config.group : role === MarkRole ? extend$1({}, config.mark, config[type2]) : null;
29976
29976
  for (key2 in props) {
29977
29977
  skip = has$1(key2, encode2) || (key2 === "fill" || key2 === "stroke") && (has$1("fill", encode2) || has$1("stroke", encode2));
29978
29978
  if (!skip) applyDefault(defaults2, key2, props[key2]);
@@ -29985,7 +29985,7 @@ function applyDefaults(encode2, type2, role, style2, config) {
29985
29985
  }
29986
29986
  }
29987
29987
  });
29988
- encode2 = extend$3({}, encode2);
29988
+ encode2 = extend$1({}, encode2);
29989
29989
  for (key2 in defaults2) {
29990
29990
  props = defaults2[key2];
29991
29991
  if (props.signal) {
@@ -29994,8 +29994,8 @@ function applyDefaults(encode2, type2, role, style2, config) {
29994
29994
  enter[key2] = props;
29995
29995
  }
29996
29996
  }
29997
- encode2.enter = extend$3(enter, encode2.enter);
29998
- if (update2) encode2.update = extend$3(update2, encode2.update);
29997
+ encode2.enter = extend$1(enter, encode2.enter);
29998
+ if (update2) encode2.update = extend$1(update2, encode2.update);
29999
29999
  return encode2;
30000
30000
  }
30001
30001
  function applyDefault(defaults2, key2, value2) {
@@ -30010,7 +30010,7 @@ function entry$1(enc) {
30010
30010
  if (enc.gradient != null) {
30011
30011
  return gradient$1(enc);
30012
30012
  }
30013
- let value2 = enc.signal ? `(${enc.signal})` : enc.color ? color$4(enc.color) : enc.field != null ? field(enc.field) : enc.value !== void 0 ? $(enc.value) : void 0;
30013
+ let value2 = enc.signal ? `(${enc.signal})` : enc.color ? color$2(enc.color) : enc.field != null ? field(enc.field) : enc.value !== void 0 ? $(enc.value) : void 0;
30014
30014
  if (enc.scale != null) {
30015
30015
  value2 = scale(enc, value2);
30016
30016
  }
@@ -30032,7 +30032,7 @@ function entry$1(enc) {
30032
30032
  return value2;
30033
30033
  }
30034
30034
  const _color = (type2, x2, y2, z2) => `(${type2}(${[x2, y2, z2].map(entry$1).join(",")})+'')`;
30035
- function color$4(enc) {
30035
+ function color$2(enc) {
30036
30036
  return enc.c ? _color("hcl", enc.h, enc.c, enc.l) : enc.h || enc.s ? _color("hsl", enc.h, enc.s, enc.l) : enc.l || enc.a ? _color("lab", enc.l, enc.a, enc.b) : enc.r || enc.g || enc.b ? _color("rgb", enc.r, enc.g, enc.b) : null;
30037
30037
  }
30038
30038
  function gradient$1(enc) {
@@ -30138,7 +30138,7 @@ function expr(enc) {
30138
30138
  function parse$1(code, scope, params2, fields) {
30139
30139
  const expr2 = parser(code, scope);
30140
30140
  expr2.$fields.forEach((name) => fields[name] = 1);
30141
- extend$3(params2, expr2.$params);
30141
+ extend$1(params2, expr2.$params);
30142
30142
  return expr2.$expr;
30143
30143
  }
30144
30144
  const OUTER = "outer", OUTER_INVALID = ["value", "update", "init", "react", "bind"];
@@ -30340,7 +30340,7 @@ function parseUpdate(spec, scope, target2) {
30340
30340
  force: true
30341
30341
  };
30342
30342
  }
30343
- sources.forEach((source2) => scope.addUpdate(extend$3(streamSource(source2, scope), entry2)));
30343
+ sources.forEach((source2) => scope.addUpdate(extend$1(streamSource(source2, scope), entry2)));
30344
30344
  }
30345
30345
  function streamSource(stream2, scope) {
30346
30346
  return {
@@ -30580,7 +30580,7 @@ function parseScaleRange$1(spec, scope, params2) {
30580
30580
  return scope.signalRef(range2.signal);
30581
30581
  } else if (isString(range2)) {
30582
30582
  if (config && has$2(config, range2)) {
30583
- spec = extend$3({}, spec, {
30583
+ spec = extend$1({}, spec, {
30584
30584
  range: config[range2]
30585
30585
  });
30586
30586
  return parseScaleRange$1(spec, scope, params2);
@@ -30663,10 +30663,10 @@ const Skip = {
30663
30663
  style: 1,
30664
30664
  interactive: 1
30665
30665
  };
30666
- const zero$2 = {
30666
+ const zero$1 = {
30667
30667
  value: 0
30668
30668
  };
30669
- const one$1 = {
30669
+ const one = {
30670
30670
  value: 1
30671
30671
  };
30672
30672
  const GroupMark = "group";
@@ -30766,14 +30766,14 @@ function legendGradient(spec, scale2, config, userEncode) {
30766
30766
  }
30767
30767
  const encode2 = {
30768
30768
  enter: enter = {
30769
- opacity: zero$2,
30770
- x: zero$2,
30771
- y: zero$2,
30769
+ opacity: zero$1,
30770
+ x: zero$1,
30771
+ y: zero$1,
30772
30772
  width: encoder(width2),
30773
30773
  height: encoder(height2)
30774
30774
  },
30775
- update: extend$3({}, enter, {
30776
- opacity: one$1,
30775
+ update: extend$1({}, enter, {
30776
+ opacity: one,
30777
30777
  fill: {
30778
30778
  gradient: scale2,
30779
30779
  start,
@@ -30781,7 +30781,7 @@ function legendGradient(spec, scale2, config, userEncode) {
30781
30781
  }
30782
30782
  }),
30783
30783
  exit: {
30784
- opacity: zero$2
30784
+ opacity: zero$1
30785
30785
  }
30786
30786
  };
30787
30787
  addEncoders(encode2, {
@@ -30802,7 +30802,7 @@ function legendGradientDiscrete(spec, scale2, config, userEncode, dataRef) {
30802
30802
  let u2, v, uu, vv, adjust = "";
30803
30803
  vertical ? (u2 = "y", uu = "y2", v = "x", vv = "width", adjust = "1-") : (u2 = "x", uu = "x2", v = "y", vv = "height");
30804
30804
  const enter = {
30805
- opacity: zero$2,
30805
+ opacity: zero$1,
30806
30806
  fill: {
30807
30807
  scale: scale2,
30808
30808
  field: Value
@@ -30812,7 +30812,7 @@ function legendGradientDiscrete(spec, scale2, config, userEncode, dataRef) {
30812
30812
  signal: adjust + "datum." + Perc,
30813
30813
  mult: length2
30814
30814
  };
30815
- enter[v] = zero$2;
30815
+ enter[v] = zero$1;
30816
30816
  enter[uu] = {
30817
30817
  signal: adjust + "datum." + Perc2,
30818
30818
  mult: length2
@@ -30820,11 +30820,11 @@ function legendGradientDiscrete(spec, scale2, config, userEncode, dataRef) {
30820
30820
  enter[vv] = encoder(thickness);
30821
30821
  const encode2 = {
30822
30822
  enter,
30823
- update: extend$3({}, enter, {
30824
- opacity: one$1
30823
+ update: extend$1({}, enter, {
30824
+ opacity: one
30825
30825
  }),
30826
30826
  exit: {
30827
- opacity: zero$2
30827
+ opacity: zero$1
30828
30828
  }
30829
30829
  };
30830
30830
  addEncoders(encode2, {
@@ -30848,16 +30848,16 @@ function legendGradientLabels(spec, config, userEncode, dataRef) {
30848
30848
  let overlap = _("labelOverlap"), enter, update2, u2, v, adjust = "";
30849
30849
  const encode2 = {
30850
30850
  enter: enter = {
30851
- opacity: zero$2
30851
+ opacity: zero$1
30852
30852
  },
30853
30853
  update: update2 = {
30854
- opacity: one$1,
30854
+ opacity: one,
30855
30855
  text: {
30856
30856
  field: Label
30857
30857
  }
30858
30858
  },
30859
30859
  exit: {
30860
- opacity: zero$2
30860
+ opacity: zero$1
30861
30861
  }
30862
30862
  };
30863
30863
  addEncoders(encode2, {
@@ -30920,7 +30920,7 @@ function legendSymbolGroups(spec, config, userEncode, dataRef, columns) {
30920
30920
  yEncode.mult = 0.5;
30921
30921
  encode2 = {
30922
30922
  enter: enter = {
30923
- opacity: zero$2,
30923
+ opacity: zero$1,
30924
30924
  x: {
30925
30925
  signal: xSignal,
30926
30926
  mult: 0.5,
@@ -30929,12 +30929,12 @@ function legendSymbolGroups(spec, config, userEncode, dataRef, columns) {
30929
30929
  y: yEncode
30930
30930
  },
30931
30931
  update: update2 = {
30932
- opacity: one$1,
30932
+ opacity: one,
30933
30933
  x: enter.x,
30934
30934
  y: enter.y
30935
30935
  },
30936
30936
  exit: {
30937
- opacity: zero$2
30937
+ opacity: zero$1
30938
30938
  }
30939
30939
  };
30940
30940
  let baseFill = null, baseStroke = null;
@@ -30974,7 +30974,7 @@ function legendSymbolGroups(spec, config, userEncode, dataRef, columns) {
30974
30974
  labelOffset.offset = _("labelOffset");
30975
30975
  encode2 = {
30976
30976
  enter: enter = {
30977
- opacity: zero$2,
30977
+ opacity: zero$1,
30978
30978
  x: {
30979
30979
  signal: xSignal,
30980
30980
  offset: labelOffset
@@ -30982,7 +30982,7 @@ function legendSymbolGroups(spec, config, userEncode, dataRef, columns) {
30982
30982
  y: yEncode
30983
30983
  },
30984
30984
  update: update2 = {
30985
- opacity: one$1,
30985
+ opacity: one,
30986
30986
  text: {
30987
30987
  field: Label
30988
30988
  },
@@ -30990,7 +30990,7 @@ function legendSymbolGroups(spec, config, userEncode, dataRef, columns) {
30990
30990
  y: enter.y
30991
30991
  },
30992
30992
  exit: {
30993
- opacity: zero$2
30993
+ opacity: zero$1
30994
30994
  }
30995
30995
  };
30996
30996
  addEncoders(encode2, {
@@ -31018,15 +31018,15 @@ function legendSymbolGroups(spec, config, userEncode, dataRef, columns) {
31018
31018
  value: !height2
31019
31019
  },
31020
31020
  // ignore width/height in bounds calc
31021
- width: zero$2,
31022
- height: height2 ? encoder(height2) : zero$2,
31023
- opacity: zero$2
31021
+ width: zero$1,
31022
+ height: height2 ? encoder(height2) : zero$1,
31023
+ opacity: zero$1
31024
31024
  },
31025
31025
  exit: {
31026
- opacity: zero$2
31026
+ opacity: zero$1
31027
31027
  },
31028
31028
  update: update2 = {
31029
- opacity: one$1,
31029
+ opacity: one,
31030
31030
  row: {
31031
31031
  signal: null
31032
31032
  },
@@ -31087,10 +31087,10 @@ function legendTitle(spec, config, userEncode, dataRef) {
31087
31087
  const _ = lookup(spec, config);
31088
31088
  const encode2 = {
31089
31089
  enter: {
31090
- opacity: zero$2
31090
+ opacity: zero$1
31091
31091
  },
31092
31092
  update: {
31093
- opacity: one$1,
31093
+ opacity: one,
31094
31094
  x: {
31095
31095
  field: {
31096
31096
  group: "padding"
@@ -31103,7 +31103,7 @@ function legendTitle(spec, config, userEncode, dataRef) {
31103
31103
  }
31104
31104
  },
31105
31105
  exit: {
31106
- opacity: zero$2
31106
+ opacity: zero$1
31107
31107
  }
31108
31108
  };
31109
31109
  addEncoders(encode2, {
@@ -31248,7 +31248,7 @@ function parseSubParameter(def2, value2, scope) {
31248
31248
  if (pdef) break;
31249
31249
  }
31250
31250
  if (!pdef) error("Unsupported parameter: " + $(value2));
31251
- const params2 = extend$3(parseParameters(pdef, value2, scope), pdef.key);
31251
+ const params2 = extend$1(parseParameters(pdef, value2, scope), pdef.key);
31252
31252
  return ref(scope.add(Params(params2)));
31253
31253
  }
31254
31254
  const outerExpr = (_) => _ && _.expr;
@@ -31267,7 +31267,7 @@ function parseData$1(from2, group2, scope) {
31267
31267
  dataRef = parent = getDataRef(facet, scope);
31268
31268
  } else {
31269
31269
  if (!from2.data) {
31270
- op = parseTransform(extend$3({
31270
+ op = parseTransform(extend$1({
31271
31271
  type: "aggregate",
31272
31272
  groupby: array$5(facet.groupby)
31273
31273
  }, facet.aggregate), scope);
@@ -31708,7 +31708,7 @@ function parseTitle(spec, scope) {
31708
31708
  }
31709
31709
  function titleEncode(spec) {
31710
31710
  const encode2 = spec.encode;
31711
- return encode2 && encode2.title || extend$3({
31711
+ return encode2 && encode2.title || extend$1({
31712
31712
  name: spec.name,
31713
31713
  interactive: spec.interactive,
31714
31714
  style: spec.style
@@ -31946,7 +31946,7 @@ const ifEnc = (test2, a2, b2) => {
31946
31946
  signal: `${test2} ? (${a2}) : (${b2})`
31947
31947
  };
31948
31948
  } else {
31949
- return [extend$3({
31949
+ return [extend$1({
31950
31950
  test: test2
31951
31951
  }, a2)].concat(b2 || []);
31952
31952
  }
@@ -32024,7 +32024,7 @@ function axisConfig(spec, scope) {
32024
32024
  xy = orient2 === Top || orient2 === Bottom ? config.axisX : config.axisY;
32025
32025
  or2 = config["axis" + orient2[0].toUpperCase() + orient2.slice(1)];
32026
32026
  }
32027
- const result = xy || or2 || band2 ? extend$3({}, axis, xy, or2, band2) : axis;
32027
+ const result = xy || or2 || band2 ? extend$1({}, axis, xy, or2, band2) : axis;
32028
32028
  return result;
32029
32029
  }
32030
32030
  function axisDomain(spec, config, userEncode, dataRef) {
@@ -32032,13 +32032,13 @@ function axisDomain(spec, config, userEncode, dataRef) {
32032
32032
  let enter, update2;
32033
32033
  const encode2 = {
32034
32034
  enter: enter = {
32035
- opacity: zero$2
32035
+ opacity: zero$1
32036
32036
  },
32037
32037
  update: update2 = {
32038
- opacity: one$1
32038
+ opacity: one
32039
32039
  },
32040
32040
  exit: {
32041
- opacity: zero$2
32041
+ opacity: zero$1
32042
32042
  }
32043
32043
  };
32044
32044
  addEncoders(encode2, {
@@ -32051,9 +32051,9 @@ function axisDomain(spec, config, userEncode, dataRef) {
32051
32051
  });
32052
32052
  const pos0 = position$1(spec, 0);
32053
32053
  const pos1 = position$1(spec, 1);
32054
- enter.x = update2.x = ifX(orient2, pos0, zero$2);
32054
+ enter.x = update2.x = ifX(orient2, pos0, zero$1);
32055
32055
  enter.x2 = update2.x2 = ifX(orient2, pos1);
32056
- enter.y = update2.y = ifY(orient2, pos0, zero$2);
32056
+ enter.y = update2.y = ifY(orient2, pos0, zero$1);
32057
32057
  enter.y2 = update2.y2 = ifY(orient2, pos1);
32058
32058
  return guideMark({
32059
32059
  type: RuleMark,
@@ -32073,13 +32073,13 @@ function axisGrid(spec, config, userEncode, dataRef, band2) {
32073
32073
  let enter, exit, update2;
32074
32074
  const encode2 = {
32075
32075
  enter: enter = {
32076
- opacity: zero$2
32076
+ opacity: zero$1
32077
32077
  },
32078
32078
  update: update2 = {
32079
- opacity: one$1
32079
+ opacity: one
32080
32080
  },
32081
32081
  exit: exit = {
32082
- opacity: zero$2
32082
+ opacity: zero$1
32083
32083
  }
32084
32084
  };
32085
32085
  addEncoders(encode2, {
@@ -32117,7 +32117,7 @@ function axisGrid(spec, config, userEncode, dataRef, band2) {
32117
32117
  range: 1,
32118
32118
  mult: sign2,
32119
32119
  offset: offset2
32120
- } : extend$3(sz2, {
32120
+ } : extend$1(sz2, {
32121
32121
  mult: sign2,
32122
32122
  offset: offset2
32123
32123
  });
@@ -32142,7 +32142,7 @@ function offsetValue(offset2, sign2) {
32142
32142
  signal: `(${sign2.signal}) * (${offset2 || 0})`
32143
32143
  } : sign2 * (offset2 || 0);
32144
32144
  } else {
32145
- let entry2 = offset2 = extend$3({}, offset2);
32145
+ let entry2 = offset2 = extend$1({}, offset2);
32146
32146
  while (entry2.mult != null) {
32147
32147
  if (!isObject$1(entry2.mult)) {
32148
32148
  entry2.mult = isSignal(sign2) ? {
@@ -32150,7 +32150,7 @@ function offsetValue(offset2, sign2) {
32150
32150
  } : entry2.mult * sign2;
32151
32151
  return offset2;
32152
32152
  } else {
32153
- entry2 = entry2.mult = extend$3({}, entry2.mult);
32153
+ entry2 = entry2.mult = extend$1({}, entry2.mult);
32154
32154
  }
32155
32155
  }
32156
32156
  entry2.mult = sign2;
@@ -32162,13 +32162,13 @@ function axisTicks(spec, config, userEncode, dataRef, size, band2) {
32162
32162
  let enter, exit, update2;
32163
32163
  const encode2 = {
32164
32164
  enter: enter = {
32165
- opacity: zero$2
32165
+ opacity: zero$1
32166
32166
  },
32167
32167
  update: update2 = {
32168
- opacity: one$1
32168
+ opacity: one
32169
32169
  },
32170
32170
  exit: exit = {
32171
- opacity: zero$2
32171
+ opacity: zero$1
32172
32172
  }
32173
32173
  };
32174
32174
  addEncoders(encode2, {
@@ -32189,10 +32189,10 @@ function axisTicks(spec, config, userEncode, dataRef, size, band2) {
32189
32189
  offset: band2.offset,
32190
32190
  round: _("tickRound")
32191
32191
  };
32192
- update2.y = enter.y = ifX(orient2, zero$2, tickPos);
32192
+ update2.y = enter.y = ifX(orient2, zero$1, tickPos);
32193
32193
  update2.y2 = enter.y2 = ifX(orient2, tickSize);
32194
32194
  exit.x = ifX(orient2, tickPos);
32195
- update2.x = enter.x = ifY(orient2, zero$2, tickPos);
32195
+ update2.x = enter.x = ifY(orient2, zero$1, tickPos);
32196
32196
  update2.x2 = enter.x2 = ifY(orient2, tickSize);
32197
32197
  exit.y = ifY(orient2, tickPos);
32198
32198
  return guideMark({
@@ -32230,14 +32230,14 @@ function axisLabels(spec, config, userEncode, dataRef, size, band2) {
32230
32230
  const offsetExpr = flushExpr(scale2, flush2, `-(${flushOffset})`, flushOffset, 0);
32231
32231
  flushOn = flushOn && flushOffset;
32232
32232
  const enter = {
32233
- opacity: zero$2,
32233
+ opacity: zero$1,
32234
32234
  x: ifX(orient2, tickPos, tickSize),
32235
32235
  y: ifY(orient2, tickPos, tickSize)
32236
32236
  };
32237
32237
  const encode2 = {
32238
32238
  enter,
32239
32239
  update: update2 = {
32240
- opacity: one$1,
32240
+ opacity: one,
32241
32241
  text: {
32242
32242
  field: Label
32243
32243
  },
@@ -32247,7 +32247,7 @@ function axisLabels(spec, config, userEncode, dataRef, size, band2) {
32247
32247
  baseline: baseline2
32248
32248
  },
32249
32249
  exit: {
32250
- opacity: zero$2,
32250
+ opacity: zero$1,
32251
32251
  x: enter.x,
32252
32252
  y: enter.y
32253
32253
  }
@@ -32303,18 +32303,18 @@ function axisTitle(spec, config, userEncode, dataRef) {
32303
32303
  let enter, update2;
32304
32304
  const encode2 = {
32305
32305
  enter: enter = {
32306
- opacity: zero$2,
32306
+ opacity: zero$1,
32307
32307
  anchor: encoder(_("titleAnchor", null)),
32308
32308
  align: {
32309
32309
  signal: alignExpr$1
32310
32310
  }
32311
32311
  },
32312
- update: update2 = extend$3({}, enter, {
32313
- opacity: one$1,
32312
+ update: update2 = extend$1({}, enter, {
32313
+ opacity: one,
32314
32314
  text: encoder(spec.title)
32315
32315
  }),
32316
32316
  exit: {
32317
- opacity: zero$2
32317
+ opacity: zero$1
32318
32318
  }
32319
32319
  };
32320
32320
  const titlePos = {
@@ -32322,7 +32322,7 @@ function axisTitle(spec, config, userEncode, dataRef) {
32322
32322
  };
32323
32323
  update2.x = ifX(orient2, titlePos);
32324
32324
  update2.y = ifY(orient2, titlePos);
32325
- enter.angle = ifX(orient2, zero$2, mult(sign2, 90));
32325
+ enter.angle = ifX(orient2, zero$1, mult(sign2, 90));
32326
32326
  enter.baseline = ifX(orient2, ifTop(orient2, Bottom, Top), {
32327
32327
  value: Bottom
32328
32328
  });
@@ -32517,7 +32517,7 @@ function collectSignals(spec, config) {
32517
32517
  const _ = (name) => value(spec[name], config[name]), signals = [signalObject("background", _("background")), signalObject("autosize", parseAutosize(_("autosize"))), signalObject("padding", parsePadding(_("padding"))), signalObject("width", _("width") || 0), signalObject("height", _("height") || 0)], pre = signals.reduce((p, s) => (p[s.name] = s, p), {}), map2 = {};
32518
32518
  array$5(spec.signals).forEach((s) => {
32519
32519
  if (has$2(pre, s.name)) {
32520
- s = extend$3(pre[s.name], s);
32520
+ s = extend$1(pre[s.name], s);
32521
32521
  } else {
32522
32522
  signals.push(s);
32523
32523
  }
@@ -32790,7 +32790,7 @@ Scope.prototype = Subscope.prototype = {
32790
32790
  if (!this.bindings) {
32791
32791
  error("Nested signals do not support binding: " + $(name));
32792
32792
  }
32793
- this.bindings.push(extend$3({
32793
+ this.bindings.push(extend$1({
32794
32794
  signal: name
32795
32795
  }, bind2));
32796
32796
  },
@@ -33086,7 +33086,7 @@ function parse$2(spec, config, options) {
33086
33086
  return parseView(spec, new Scope(config, options)).toRuntime();
33087
33087
  }
33088
33088
  var version$4 = "5.22.1";
33089
- extend$3(transforms, tx, vtx, encode$1, geo, force, label, tree, reg, voronoi, wordcloud, xf);
33089
+ extend$1(transforms, tx, vtx, encode$1, geo, force, label, tree, reg, voronoi, wordcloud, xf);
33090
33090
  const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
33091
33091
  __proto__: null,
33092
33092
  Bounds,
@@ -33146,7 +33146,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33146
33146
  clampRange,
33147
33147
  codegenExpression: codegen,
33148
33148
  compare: compare$9,
33149
- constant: constant$5,
33149
+ constant: constant$4,
33150
33150
  cumulativeLogNormal,
33151
33151
  cumulativeNormal,
33152
33152
  cumulativeUniform,
@@ -33164,7 +33164,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33164
33164
  dotbin,
33165
33165
  error,
33166
33166
  expressionFunction,
33167
- extend: extend$3,
33167
+ extend: extend$1,
33168
33168
  extent,
33169
33169
  extentIndex,
33170
33170
  falsy,
@@ -33185,7 +33185,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33185
33185
  ingest: ingest$1,
33186
33186
  inherits,
33187
33187
  inrange,
33188
- interpolate: interpolate$2,
33188
+ interpolate: interpolate$1,
33189
33189
  interpolateColors,
33190
33190
  interpolateRange: interpolateRange$1,
33191
33191
  intersect: intersect$2,
@@ -33214,7 +33214,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33214
33214
  merge: merge$4,
33215
33215
  mergeConfig,
33216
33216
  multiLineOffset,
33217
- one: one$3,
33217
+ one: one$2,
33218
33218
  pad: pad$2,
33219
33219
  panLinear,
33220
33220
  panLog,
@@ -33253,7 +33253,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33253
33253
  randomUniform: uniform,
33254
33254
  read,
33255
33255
  regressionExp: exp$1,
33256
- regressionLinear: linear$3,
33256
+ regressionLinear: linear$2,
33257
33257
  regressionLoess: loess,
33258
33258
  regressionLog: log$4,
33259
33259
  regressionPoly: poly,
@@ -33314,7 +33314,7 @@ const vegaImport = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
33314
33314
  visitArray,
33315
33315
  week,
33316
33316
  writeConfig,
33317
- zero: zero$5,
33317
+ zero: zero$4,
33318
33318
  zoomLinear,
33319
33319
  zoomLog,
33320
33320
  zoomPow,
@@ -37813,7 +37813,7 @@ function paletteTransform(value2, userValue) {
37813
37813
  }
37814
37814
  return value2;
37815
37815
  }
37816
- const color$3 = style$1({
37816
+ const color$1 = style$1({
37817
37817
  prop: "color",
37818
37818
  themeKey: "palette",
37819
37819
  transform: paletteTransform
@@ -37829,7 +37829,7 @@ const backgroundColor$3 = style$1({
37829
37829
  themeKey: "palette",
37830
37830
  transform: paletteTransform
37831
37831
  });
37832
- compose(color$3, bgcolor, backgroundColor$3);
37832
+ compose(color$1, bgcolor, backgroundColor$3);
37833
37833
  function sizingTransform(value2) {
37834
37834
  return value2 <= 1 && value2 !== 0 ? `${value2 * 100}%` : value2;
37835
37835
  }
@@ -43322,760 +43322,6 @@ var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
43322
43322
  function cloneDeep(value2) {
43323
43323
  return baseClone(value2, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
43324
43324
  }
43325
- function define$1(constructor, factory, prototype2) {
43326
- constructor.prototype = factory.prototype = prototype2;
43327
- prototype2.constructor = constructor;
43328
- }
43329
- function extend$1(parent, definition2) {
43330
- var prototype2 = Object.create(parent.prototype);
43331
- for (var key2 in definition2) prototype2[key2] = definition2[key2];
43332
- return prototype2;
43333
- }
43334
- function Color$1() {
43335
- }
43336
- var darker$1 = 0.7;
43337
- var brighter$1 = 1 / darker$1;
43338
- var reI$1 = "\\s*([+-]?\\d+)\\s*", reN$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP$1 = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex$1 = /^#([0-9a-f]{3,8})$/, reRgbInteger$1 = new RegExp("^rgb\\(" + [reI$1, reI$1, reI$1] + "\\)$"), reRgbPercent$1 = new RegExp("^rgb\\(" + [reP$1, reP$1, reP$1] + "\\)$"), reRgbaInteger$1 = new RegExp("^rgba\\(" + [reI$1, reI$1, reI$1, reN$1] + "\\)$"), reRgbaPercent$1 = new RegExp("^rgba\\(" + [reP$1, reP$1, reP$1, reN$1] + "\\)$"), reHslPercent$1 = new RegExp("^hsl\\(" + [reN$1, reP$1, reP$1] + "\\)$"), reHslaPercent$1 = new RegExp("^hsla\\(" + [reN$1, reP$1, reP$1, reN$1] + "\\)$");
43339
- var named$1 = {
43340
- aliceblue: 15792383,
43341
- antiquewhite: 16444375,
43342
- aqua: 65535,
43343
- aquamarine: 8388564,
43344
- azure: 15794175,
43345
- beige: 16119260,
43346
- bisque: 16770244,
43347
- black: 0,
43348
- blanchedalmond: 16772045,
43349
- blue: 255,
43350
- blueviolet: 9055202,
43351
- brown: 10824234,
43352
- burlywood: 14596231,
43353
- cadetblue: 6266528,
43354
- chartreuse: 8388352,
43355
- chocolate: 13789470,
43356
- coral: 16744272,
43357
- cornflowerblue: 6591981,
43358
- cornsilk: 16775388,
43359
- crimson: 14423100,
43360
- cyan: 65535,
43361
- darkblue: 139,
43362
- darkcyan: 35723,
43363
- darkgoldenrod: 12092939,
43364
- darkgray: 11119017,
43365
- darkgreen: 25600,
43366
- darkgrey: 11119017,
43367
- darkkhaki: 12433259,
43368
- darkmagenta: 9109643,
43369
- darkolivegreen: 5597999,
43370
- darkorange: 16747520,
43371
- darkorchid: 10040012,
43372
- darkred: 9109504,
43373
- darksalmon: 15308410,
43374
- darkseagreen: 9419919,
43375
- darkslateblue: 4734347,
43376
- darkslategray: 3100495,
43377
- darkslategrey: 3100495,
43378
- darkturquoise: 52945,
43379
- darkviolet: 9699539,
43380
- deeppink: 16716947,
43381
- deepskyblue: 49151,
43382
- dimgray: 6908265,
43383
- dimgrey: 6908265,
43384
- dodgerblue: 2003199,
43385
- firebrick: 11674146,
43386
- floralwhite: 16775920,
43387
- forestgreen: 2263842,
43388
- fuchsia: 16711935,
43389
- gainsboro: 14474460,
43390
- ghostwhite: 16316671,
43391
- gold: 16766720,
43392
- goldenrod: 14329120,
43393
- gray: 8421504,
43394
- green: 32768,
43395
- greenyellow: 11403055,
43396
- grey: 8421504,
43397
- honeydew: 15794160,
43398
- hotpink: 16738740,
43399
- indianred: 13458524,
43400
- indigo: 4915330,
43401
- ivory: 16777200,
43402
- khaki: 15787660,
43403
- lavender: 15132410,
43404
- lavenderblush: 16773365,
43405
- lawngreen: 8190976,
43406
- lemonchiffon: 16775885,
43407
- lightblue: 11393254,
43408
- lightcoral: 15761536,
43409
- lightcyan: 14745599,
43410
- lightgoldenrodyellow: 16448210,
43411
- lightgray: 13882323,
43412
- lightgreen: 9498256,
43413
- lightgrey: 13882323,
43414
- lightpink: 16758465,
43415
- lightsalmon: 16752762,
43416
- lightseagreen: 2142890,
43417
- lightskyblue: 8900346,
43418
- lightslategray: 7833753,
43419
- lightslategrey: 7833753,
43420
- lightsteelblue: 11584734,
43421
- lightyellow: 16777184,
43422
- lime: 65280,
43423
- limegreen: 3329330,
43424
- linen: 16445670,
43425
- magenta: 16711935,
43426
- maroon: 8388608,
43427
- mediumaquamarine: 6737322,
43428
- mediumblue: 205,
43429
- mediumorchid: 12211667,
43430
- mediumpurple: 9662683,
43431
- mediumseagreen: 3978097,
43432
- mediumslateblue: 8087790,
43433
- mediumspringgreen: 64154,
43434
- mediumturquoise: 4772300,
43435
- mediumvioletred: 13047173,
43436
- midnightblue: 1644912,
43437
- mintcream: 16121850,
43438
- mistyrose: 16770273,
43439
- moccasin: 16770229,
43440
- navajowhite: 16768685,
43441
- navy: 128,
43442
- oldlace: 16643558,
43443
- olive: 8421376,
43444
- olivedrab: 7048739,
43445
- orange: 16753920,
43446
- orangered: 16729344,
43447
- orchid: 14315734,
43448
- palegoldenrod: 15657130,
43449
- palegreen: 10025880,
43450
- paleturquoise: 11529966,
43451
- palevioletred: 14381203,
43452
- papayawhip: 16773077,
43453
- peachpuff: 16767673,
43454
- peru: 13468991,
43455
- pink: 16761035,
43456
- plum: 14524637,
43457
- powderblue: 11591910,
43458
- purple: 8388736,
43459
- rebeccapurple: 6697881,
43460
- red: 16711680,
43461
- rosybrown: 12357519,
43462
- royalblue: 4286945,
43463
- saddlebrown: 9127187,
43464
- salmon: 16416882,
43465
- sandybrown: 16032864,
43466
- seagreen: 3050327,
43467
- seashell: 16774638,
43468
- sienna: 10506797,
43469
- silver: 12632256,
43470
- skyblue: 8900331,
43471
- slateblue: 6970061,
43472
- slategray: 7372944,
43473
- slategrey: 7372944,
43474
- snow: 16775930,
43475
- springgreen: 65407,
43476
- steelblue: 4620980,
43477
- tan: 13808780,
43478
- teal: 32896,
43479
- thistle: 14204888,
43480
- tomato: 16737095,
43481
- turquoise: 4251856,
43482
- violet: 15631086,
43483
- wheat: 16113331,
43484
- white: 16777215,
43485
- whitesmoke: 16119285,
43486
- yellow: 16776960,
43487
- yellowgreen: 10145074
43488
- };
43489
- define$1(Color$1, color$2, {
43490
- copy: function(channels) {
43491
- return Object.assign(new this.constructor(), this, channels);
43492
- },
43493
- displayable: function() {
43494
- return this.rgb().displayable();
43495
- },
43496
- hex: color_formatHex$1,
43497
- // Deprecated! Use color.formatHex.
43498
- formatHex: color_formatHex$1,
43499
- formatHsl: color_formatHsl$1,
43500
- formatRgb: color_formatRgb$1,
43501
- toString: color_formatRgb$1
43502
- });
43503
- function color_formatHex$1() {
43504
- return this.rgb().formatHex();
43505
- }
43506
- function color_formatHsl$1() {
43507
- return hslConvert$1(this).formatHsl();
43508
- }
43509
- function color_formatRgb$1() {
43510
- return this.rgb().formatRgb();
43511
- }
43512
- function color$2(format2) {
43513
- var m2, l;
43514
- format2 = (format2 + "").trim().toLowerCase();
43515
- return (m2 = reHex$1.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn$1(m2) : l === 3 ? new Rgb$1(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba$1(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba$1(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger$1.exec(format2)) ? new Rgb$1(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent$1.exec(format2)) ? new Rgb$1(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger$1.exec(format2)) ? rgba$1(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent$1.exec(format2)) ? rgba$1(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent$1.exec(format2)) ? hsla$1(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent$1.exec(format2)) ? hsla$1(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named$1.hasOwnProperty(format2) ? rgbn$1(named$1[format2]) : format2 === "transparent" ? new Rgb$1(NaN, NaN, NaN, 0) : null;
43516
- }
43517
- function rgbn$1(n) {
43518
- return new Rgb$1(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
43519
- }
43520
- function rgba$1(r2, g, b2, a2) {
43521
- if (a2 <= 0) r2 = g = b2 = NaN;
43522
- return new Rgb$1(r2, g, b2, a2);
43523
- }
43524
- function rgbConvert$1(o) {
43525
- if (!(o instanceof Color$1)) o = color$2(o);
43526
- if (!o) return new Rgb$1();
43527
- o = o.rgb();
43528
- return new Rgb$1(o.r, o.g, o.b, o.opacity);
43529
- }
43530
- function rgb$1(r2, g, b2, opacity2) {
43531
- return arguments.length === 1 ? rgbConvert$1(r2) : new Rgb$1(r2, g, b2, opacity2 == null ? 1 : opacity2);
43532
- }
43533
- function Rgb$1(r2, g, b2, opacity2) {
43534
- this.r = +r2;
43535
- this.g = +g;
43536
- this.b = +b2;
43537
- this.opacity = +opacity2;
43538
- }
43539
- define$1(Rgb$1, rgb$1, extend$1(Color$1, {
43540
- brighter: function(k) {
43541
- k = k == null ? brighter$1 : Math.pow(brighter$1, k);
43542
- return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
43543
- },
43544
- darker: function(k) {
43545
- k = k == null ? darker$1 : Math.pow(darker$1, k);
43546
- return new Rgb$1(this.r * k, this.g * k, this.b * k, this.opacity);
43547
- },
43548
- rgb: function() {
43549
- return this;
43550
- },
43551
- displayable: function() {
43552
- return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
43553
- },
43554
- hex: rgb_formatHex$1,
43555
- // Deprecated! Use color.formatHex.
43556
- formatHex: rgb_formatHex$1,
43557
- formatRgb: rgb_formatRgb$1,
43558
- toString: rgb_formatRgb$1
43559
- }));
43560
- function rgb_formatHex$1() {
43561
- return "#" + hex$1(this.r) + hex$1(this.g) + hex$1(this.b);
43562
- }
43563
- function rgb_formatRgb$1() {
43564
- var a2 = this.opacity;
43565
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
43566
- return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")");
43567
- }
43568
- function hex$1(value2) {
43569
- value2 = Math.max(0, Math.min(255, Math.round(value2) || 0));
43570
- return (value2 < 16 ? "0" : "") + value2.toString(16);
43571
- }
43572
- function hsla$1(h2, s, l, a2) {
43573
- if (a2 <= 0) h2 = s = l = NaN;
43574
- else if (l <= 0 || l >= 1) h2 = s = NaN;
43575
- else if (s <= 0) h2 = NaN;
43576
- return new Hsl$1(h2, s, l, a2);
43577
- }
43578
- function hslConvert$1(o) {
43579
- if (o instanceof Hsl$1) return new Hsl$1(o.h, o.s, o.l, o.opacity);
43580
- if (!(o instanceof Color$1)) o = color$2(o);
43581
- if (!o) return new Hsl$1();
43582
- if (o instanceof Hsl$1) return o;
43583
- o = o.rgb();
43584
- var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, min2 = Math.min(r2, g, b2), max2 = Math.max(r2, g, b2), h2 = NaN, s = max2 - min2, l = (max2 + min2) / 2;
43585
- if (s) {
43586
- if (r2 === max2) h2 = (g - b2) / s + (g < b2) * 6;
43587
- else if (g === max2) h2 = (b2 - r2) / s + 2;
43588
- else h2 = (r2 - g) / s + 4;
43589
- s /= l < 0.5 ? max2 + min2 : 2 - max2 - min2;
43590
- h2 *= 60;
43591
- } else {
43592
- s = l > 0 && l < 1 ? 0 : h2;
43593
- }
43594
- return new Hsl$1(h2, s, l, o.opacity);
43595
- }
43596
- function hsl$1(h2, s, l, opacity2) {
43597
- return arguments.length === 1 ? hslConvert$1(h2) : new Hsl$1(h2, s, l, opacity2 == null ? 1 : opacity2);
43598
- }
43599
- function Hsl$1(h2, s, l, opacity2) {
43600
- this.h = +h2;
43601
- this.s = +s;
43602
- this.l = +l;
43603
- this.opacity = +opacity2;
43604
- }
43605
- define$1(Hsl$1, hsl$1, extend$1(Color$1, {
43606
- brighter: function(k) {
43607
- k = k == null ? brighter$1 : Math.pow(brighter$1, k);
43608
- return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
43609
- },
43610
- darker: function(k) {
43611
- k = k == null ? darker$1 : Math.pow(darker$1, k);
43612
- return new Hsl$1(this.h, this.s, this.l * k, this.opacity);
43613
- },
43614
- rgb: function() {
43615
- var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
43616
- return new Rgb$1(
43617
- hsl2rgb$1(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
43618
- hsl2rgb$1(h2, m1, m2),
43619
- hsl2rgb$1(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
43620
- this.opacity
43621
- );
43622
- },
43623
- displayable: function() {
43624
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
43625
- },
43626
- formatHsl: function() {
43627
- var a2 = this.opacity;
43628
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
43629
- return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
43630
- }
43631
- }));
43632
- function hsl2rgb$1(h2, m1, m2) {
43633
- return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
43634
- }
43635
- const constant = (x2) => () => x2;
43636
- function linear(a2, d) {
43637
- return function(t4) {
43638
- return a2 + t4 * d;
43639
- };
43640
- }
43641
- function exponential(a2, b2, y2) {
43642
- return a2 = Math.pow(a2, y2), b2 = Math.pow(b2, y2) - a2, y2 = 1 / y2, function(t4) {
43643
- return Math.pow(a2 + t4 * b2, y2);
43644
- };
43645
- }
43646
- function gamma(y2) {
43647
- return (y2 = +y2) === 1 ? nogamma : function(a2, b2) {
43648
- return b2 - a2 ? exponential(a2, b2, y2) : constant(isNaN(a2) ? b2 : a2);
43649
- };
43650
- }
43651
- function nogamma(a2, b2) {
43652
- var d = b2 - a2;
43653
- return d ? linear(a2, d) : constant(isNaN(a2) ? b2 : a2);
43654
- }
43655
- const interpolateRgb = function rgbGamma2(y2) {
43656
- var color2 = gamma(y2);
43657
- function rgb2(start, end) {
43658
- var r2 = color2((start = rgb$1(start)).r, (end = rgb$1(end)).r), g = color2(start.g, end.g), b2 = color2(start.b, end.b), opacity2 = nogamma(start.opacity, end.opacity);
43659
- return function(t4) {
43660
- start.r = r2(t4);
43661
- start.g = g(t4);
43662
- start.b = b2(t4);
43663
- start.opacity = opacity2(t4);
43664
- return start + "";
43665
- };
43666
- }
43667
- rgb2.gamma = rgbGamma2;
43668
- return rgb2;
43669
- }(1);
43670
- function numberArray(a2, b2) {
43671
- if (!b2) b2 = [];
43672
- var n = a2 ? Math.min(b2.length, a2.length) : 0, c2 = b2.slice(), i;
43673
- return function(t4) {
43674
- for (i = 0; i < n; ++i) c2[i] = a2[i] * (1 - t4) + b2[i] * t4;
43675
- return c2;
43676
- };
43677
- }
43678
- function isNumberArray(x2) {
43679
- return ArrayBuffer.isView(x2) && !(x2 instanceof DataView);
43680
- }
43681
- function genericArray(a2, b2) {
43682
- var nb = b2 ? b2.length : 0, na = a2 ? Math.min(nb, a2.length) : 0, x2 = new Array(na), c2 = new Array(nb), i;
43683
- for (i = 0; i < na; ++i) x2[i] = interpolate$1(a2[i], b2[i]);
43684
- for (; i < nb; ++i) c2[i] = b2[i];
43685
- return function(t4) {
43686
- for (i = 0; i < na; ++i) c2[i] = x2[i](t4);
43687
- return c2;
43688
- };
43689
- }
43690
- function date(a2, b2) {
43691
- var d = /* @__PURE__ */ new Date();
43692
- return a2 = +a2, b2 = +b2, function(t4) {
43693
- return d.setTime(a2 * (1 - t4) + b2 * t4), d;
43694
- };
43695
- }
43696
- function number(a2, b2) {
43697
- return a2 = +a2, b2 = +b2, function(t4) {
43698
- return a2 * (1 - t4) + b2 * t4;
43699
- };
43700
- }
43701
- function object(a2, b2) {
43702
- var i = {}, c2 = {}, k;
43703
- if (a2 === null || typeof a2 !== "object") a2 = {};
43704
- if (b2 === null || typeof b2 !== "object") b2 = {};
43705
- for (k in b2) {
43706
- if (k in a2) {
43707
- i[k] = interpolate$1(a2[k], b2[k]);
43708
- } else {
43709
- c2[k] = b2[k];
43710
- }
43711
- }
43712
- return function(t4) {
43713
- for (k in i) c2[k] = i[k](t4);
43714
- return c2;
43715
- };
43716
- }
43717
- var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
43718
- function zero$1(b2) {
43719
- return function() {
43720
- return b2;
43721
- };
43722
- }
43723
- function one(b2) {
43724
- return function(t4) {
43725
- return b2(t4) + "";
43726
- };
43727
- }
43728
- function string(a2, b2) {
43729
- var bi = reA.lastIndex = reB.lastIndex = 0, am, bm, bs, i = -1, s = [], q = [];
43730
- a2 = a2 + "", b2 = b2 + "";
43731
- while ((am = reA.exec(a2)) && (bm = reB.exec(b2))) {
43732
- if ((bs = bm.index) > bi) {
43733
- bs = b2.slice(bi, bs);
43734
- if (s[i]) s[i] += bs;
43735
- else s[++i] = bs;
43736
- }
43737
- if ((am = am[0]) === (bm = bm[0])) {
43738
- if (s[i]) s[i] += bm;
43739
- else s[++i] = bm;
43740
- } else {
43741
- s[++i] = null;
43742
- q.push({ i, x: number(am, bm) });
43743
- }
43744
- bi = reB.lastIndex;
43745
- }
43746
- if (bi < b2.length) {
43747
- bs = b2.slice(bi);
43748
- if (s[i]) s[i] += bs;
43749
- else s[++i] = bs;
43750
- }
43751
- return s.length < 2 ? q[0] ? one(q[0].x) : zero$1(b2) : (b2 = q.length, function(t4) {
43752
- for (var i2 = 0, o; i2 < b2; ++i2) s[(o = q[i2]).i] = o.x(t4);
43753
- return s.join("");
43754
- });
43755
- }
43756
- function interpolate$1(a2, b2) {
43757
- var t4 = typeof b2, c2;
43758
- return b2 == null || t4 === "boolean" ? constant(b2) : (t4 === "number" ? number : t4 === "string" ? (c2 = color$2(b2)) ? (b2 = c2, interpolateRgb) : string : b2 instanceof color$2 ? interpolateRgb : b2 instanceof Date ? date : isNumberArray(b2) ? numberArray : Array.isArray(b2) ? genericArray : typeof b2.valueOf !== "function" && typeof b2.toString !== "function" || isNaN(b2) ? object : number)(a2, b2);
43759
- }
43760
- function piecewise(interpolate2, values2) {
43761
- if (values2 === void 0) values2 = interpolate2, interpolate2 = interpolate$1;
43762
- var i = 0, n = values2.length - 1, v = values2[0], I = new Array(n < 0 ? 0 : n);
43763
- while (i < n) I[i] = interpolate2(v, v = values2[++i]);
43764
- return function(t4) {
43765
- var i2 = Math.max(0, Math.min(n - 1, Math.floor(t4 *= n)));
43766
- return I[i2](t4 - i2);
43767
- };
43768
- }
43769
- function define(constructor, factory, prototype2) {
43770
- constructor.prototype = factory.prototype = prototype2;
43771
- prototype2.constructor = constructor;
43772
- }
43773
- function extend(parent, definition2) {
43774
- var prototype2 = Object.create(parent.prototype);
43775
- for (var key2 in definition2) prototype2[key2] = definition2[key2];
43776
- return prototype2;
43777
- }
43778
- function Color() {
43779
- }
43780
- var darker = 0.7;
43781
- var brighter = 1 / darker;
43782
- var reI = "\\s*([+-]?\\d+)\\s*", reN = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*", reP = "\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*", reHex = /^#([0-9a-f]{3,8})$/, reRgbInteger = new RegExp("^rgb\\(" + [reI, reI, reI] + "\\)$"), reRgbPercent = new RegExp("^rgb\\(" + [reP, reP, reP] + "\\)$"), reRgbaInteger = new RegExp("^rgba\\(" + [reI, reI, reI, reN] + "\\)$"), reRgbaPercent = new RegExp("^rgba\\(" + [reP, reP, reP, reN] + "\\)$"), reHslPercent = new RegExp("^hsl\\(" + [reN, reP, reP] + "\\)$"), reHslaPercent = new RegExp("^hsla\\(" + [reN, reP, reP, reN] + "\\)$");
43783
- var named = {
43784
- aliceblue: 15792383,
43785
- antiquewhite: 16444375,
43786
- aqua: 65535,
43787
- aquamarine: 8388564,
43788
- azure: 15794175,
43789
- beige: 16119260,
43790
- bisque: 16770244,
43791
- black: 0,
43792
- blanchedalmond: 16772045,
43793
- blue: 255,
43794
- blueviolet: 9055202,
43795
- brown: 10824234,
43796
- burlywood: 14596231,
43797
- cadetblue: 6266528,
43798
- chartreuse: 8388352,
43799
- chocolate: 13789470,
43800
- coral: 16744272,
43801
- cornflowerblue: 6591981,
43802
- cornsilk: 16775388,
43803
- crimson: 14423100,
43804
- cyan: 65535,
43805
- darkblue: 139,
43806
- darkcyan: 35723,
43807
- darkgoldenrod: 12092939,
43808
- darkgray: 11119017,
43809
- darkgreen: 25600,
43810
- darkgrey: 11119017,
43811
- darkkhaki: 12433259,
43812
- darkmagenta: 9109643,
43813
- darkolivegreen: 5597999,
43814
- darkorange: 16747520,
43815
- darkorchid: 10040012,
43816
- darkred: 9109504,
43817
- darksalmon: 15308410,
43818
- darkseagreen: 9419919,
43819
- darkslateblue: 4734347,
43820
- darkslategray: 3100495,
43821
- darkslategrey: 3100495,
43822
- darkturquoise: 52945,
43823
- darkviolet: 9699539,
43824
- deeppink: 16716947,
43825
- deepskyblue: 49151,
43826
- dimgray: 6908265,
43827
- dimgrey: 6908265,
43828
- dodgerblue: 2003199,
43829
- firebrick: 11674146,
43830
- floralwhite: 16775920,
43831
- forestgreen: 2263842,
43832
- fuchsia: 16711935,
43833
- gainsboro: 14474460,
43834
- ghostwhite: 16316671,
43835
- gold: 16766720,
43836
- goldenrod: 14329120,
43837
- gray: 8421504,
43838
- green: 32768,
43839
- greenyellow: 11403055,
43840
- grey: 8421504,
43841
- honeydew: 15794160,
43842
- hotpink: 16738740,
43843
- indianred: 13458524,
43844
- indigo: 4915330,
43845
- ivory: 16777200,
43846
- khaki: 15787660,
43847
- lavender: 15132410,
43848
- lavenderblush: 16773365,
43849
- lawngreen: 8190976,
43850
- lemonchiffon: 16775885,
43851
- lightblue: 11393254,
43852
- lightcoral: 15761536,
43853
- lightcyan: 14745599,
43854
- lightgoldenrodyellow: 16448210,
43855
- lightgray: 13882323,
43856
- lightgreen: 9498256,
43857
- lightgrey: 13882323,
43858
- lightpink: 16758465,
43859
- lightsalmon: 16752762,
43860
- lightseagreen: 2142890,
43861
- lightskyblue: 8900346,
43862
- lightslategray: 7833753,
43863
- lightslategrey: 7833753,
43864
- lightsteelblue: 11584734,
43865
- lightyellow: 16777184,
43866
- lime: 65280,
43867
- limegreen: 3329330,
43868
- linen: 16445670,
43869
- magenta: 16711935,
43870
- maroon: 8388608,
43871
- mediumaquamarine: 6737322,
43872
- mediumblue: 205,
43873
- mediumorchid: 12211667,
43874
- mediumpurple: 9662683,
43875
- mediumseagreen: 3978097,
43876
- mediumslateblue: 8087790,
43877
- mediumspringgreen: 64154,
43878
- mediumturquoise: 4772300,
43879
- mediumvioletred: 13047173,
43880
- midnightblue: 1644912,
43881
- mintcream: 16121850,
43882
- mistyrose: 16770273,
43883
- moccasin: 16770229,
43884
- navajowhite: 16768685,
43885
- navy: 128,
43886
- oldlace: 16643558,
43887
- olive: 8421376,
43888
- olivedrab: 7048739,
43889
- orange: 16753920,
43890
- orangered: 16729344,
43891
- orchid: 14315734,
43892
- palegoldenrod: 15657130,
43893
- palegreen: 10025880,
43894
- paleturquoise: 11529966,
43895
- palevioletred: 14381203,
43896
- papayawhip: 16773077,
43897
- peachpuff: 16767673,
43898
- peru: 13468991,
43899
- pink: 16761035,
43900
- plum: 14524637,
43901
- powderblue: 11591910,
43902
- purple: 8388736,
43903
- rebeccapurple: 6697881,
43904
- red: 16711680,
43905
- rosybrown: 12357519,
43906
- royalblue: 4286945,
43907
- saddlebrown: 9127187,
43908
- salmon: 16416882,
43909
- sandybrown: 16032864,
43910
- seagreen: 3050327,
43911
- seashell: 16774638,
43912
- sienna: 10506797,
43913
- silver: 12632256,
43914
- skyblue: 8900331,
43915
- slateblue: 6970061,
43916
- slategray: 7372944,
43917
- slategrey: 7372944,
43918
- snow: 16775930,
43919
- springgreen: 65407,
43920
- steelblue: 4620980,
43921
- tan: 13808780,
43922
- teal: 32896,
43923
- thistle: 14204888,
43924
- tomato: 16737095,
43925
- turquoise: 4251856,
43926
- violet: 15631086,
43927
- wheat: 16113331,
43928
- white: 16777215,
43929
- whitesmoke: 16119285,
43930
- yellow: 16776960,
43931
- yellowgreen: 10145074
43932
- };
43933
- define(Color, color$1, {
43934
- copy: function(channels) {
43935
- return Object.assign(new this.constructor(), this, channels);
43936
- },
43937
- displayable: function() {
43938
- return this.rgb().displayable();
43939
- },
43940
- hex: color_formatHex,
43941
- // Deprecated! Use color.formatHex.
43942
- formatHex: color_formatHex,
43943
- formatHsl: color_formatHsl,
43944
- formatRgb: color_formatRgb,
43945
- toString: color_formatRgb
43946
- });
43947
- function color_formatHex() {
43948
- return this.rgb().formatHex();
43949
- }
43950
- function color_formatHsl() {
43951
- return hslConvert(this).formatHsl();
43952
- }
43953
- function color_formatRgb() {
43954
- return this.rgb().formatRgb();
43955
- }
43956
- function color$1(format2) {
43957
- var m2, l;
43958
- format2 = (format2 + "").trim().toLowerCase();
43959
- return (m2 = reHex.exec(format2)) ? (l = m2[1].length, m2 = parseInt(m2[1], 16), l === 6 ? rgbn(m2) : l === 3 ? new Rgb(m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, (m2 & 15) << 4 | m2 & 15, 1) : l === 8 ? rgba(m2 >> 24 & 255, m2 >> 16 & 255, m2 >> 8 & 255, (m2 & 255) / 255) : l === 4 ? rgba(m2 >> 12 & 15 | m2 >> 8 & 240, m2 >> 8 & 15 | m2 >> 4 & 240, m2 >> 4 & 15 | m2 & 240, ((m2 & 15) << 4 | m2 & 15) / 255) : null) : (m2 = reRgbInteger.exec(format2)) ? new Rgb(m2[1], m2[2], m2[3], 1) : (m2 = reRgbPercent.exec(format2)) ? new Rgb(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, 1) : (m2 = reRgbaInteger.exec(format2)) ? rgba(m2[1], m2[2], m2[3], m2[4]) : (m2 = reRgbaPercent.exec(format2)) ? rgba(m2[1] * 255 / 100, m2[2] * 255 / 100, m2[3] * 255 / 100, m2[4]) : (m2 = reHslPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, 1) : (m2 = reHslaPercent.exec(format2)) ? hsla(m2[1], m2[2] / 100, m2[3] / 100, m2[4]) : named.hasOwnProperty(format2) ? rgbn(named[format2]) : format2 === "transparent" ? new Rgb(NaN, NaN, NaN, 0) : null;
43960
- }
43961
- function rgbn(n) {
43962
- return new Rgb(n >> 16 & 255, n >> 8 & 255, n & 255, 1);
43963
- }
43964
- function rgba(r2, g, b2, a2) {
43965
- if (a2 <= 0) r2 = g = b2 = NaN;
43966
- return new Rgb(r2, g, b2, a2);
43967
- }
43968
- function rgbConvert(o) {
43969
- if (!(o instanceof Color)) o = color$1(o);
43970
- if (!o) return new Rgb();
43971
- o = o.rgb();
43972
- return new Rgb(o.r, o.g, o.b, o.opacity);
43973
- }
43974
- function rgb(r2, g, b2, opacity2) {
43975
- return arguments.length === 1 ? rgbConvert(r2) : new Rgb(r2, g, b2, opacity2 == null ? 1 : opacity2);
43976
- }
43977
- function Rgb(r2, g, b2, opacity2) {
43978
- this.r = +r2;
43979
- this.g = +g;
43980
- this.b = +b2;
43981
- this.opacity = +opacity2;
43982
- }
43983
- define(Rgb, rgb, extend(Color, {
43984
- brighter: function(k) {
43985
- k = k == null ? brighter : Math.pow(brighter, k);
43986
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
43987
- },
43988
- darker: function(k) {
43989
- k = k == null ? darker : Math.pow(darker, k);
43990
- return new Rgb(this.r * k, this.g * k, this.b * k, this.opacity);
43991
- },
43992
- rgb: function() {
43993
- return this;
43994
- },
43995
- displayable: function() {
43996
- return -0.5 <= this.r && this.r < 255.5 && (-0.5 <= this.g && this.g < 255.5) && (-0.5 <= this.b && this.b < 255.5) && (0 <= this.opacity && this.opacity <= 1);
43997
- },
43998
- hex: rgb_formatHex,
43999
- // Deprecated! Use color.formatHex.
44000
- formatHex: rgb_formatHex,
44001
- formatRgb: rgb_formatRgb,
44002
- toString: rgb_formatRgb
44003
- }));
44004
- function rgb_formatHex() {
44005
- return "#" + hex(this.r) + hex(this.g) + hex(this.b);
44006
- }
44007
- function rgb_formatRgb() {
44008
- var a2 = this.opacity;
44009
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
44010
- return (a2 === 1 ? "rgb(" : "rgba(") + Math.max(0, Math.min(255, Math.round(this.r) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.g) || 0)) + ", " + Math.max(0, Math.min(255, Math.round(this.b) || 0)) + (a2 === 1 ? ")" : ", " + a2 + ")");
44011
- }
44012
- function hex(value2) {
44013
- value2 = Math.max(0, Math.min(255, Math.round(value2) || 0));
44014
- return (value2 < 16 ? "0" : "") + value2.toString(16);
44015
- }
44016
- function hsla(h2, s, l, a2) {
44017
- if (a2 <= 0) h2 = s = l = NaN;
44018
- else if (l <= 0 || l >= 1) h2 = s = NaN;
44019
- else if (s <= 0) h2 = NaN;
44020
- return new Hsl(h2, s, l, a2);
44021
- }
44022
- function hslConvert(o) {
44023
- if (o instanceof Hsl) return new Hsl(o.h, o.s, o.l, o.opacity);
44024
- if (!(o instanceof Color)) o = color$1(o);
44025
- if (!o) return new Hsl();
44026
- if (o instanceof Hsl) return o;
44027
- o = o.rgb();
44028
- var r2 = o.r / 255, g = o.g / 255, b2 = o.b / 255, min2 = Math.min(r2, g, b2), max2 = Math.max(r2, g, b2), h2 = NaN, s = max2 - min2, l = (max2 + min2) / 2;
44029
- if (s) {
44030
- if (r2 === max2) h2 = (g - b2) / s + (g < b2) * 6;
44031
- else if (g === max2) h2 = (b2 - r2) / s + 2;
44032
- else h2 = (r2 - g) / s + 4;
44033
- s /= l < 0.5 ? max2 + min2 : 2 - max2 - min2;
44034
- h2 *= 60;
44035
- } else {
44036
- s = l > 0 && l < 1 ? 0 : h2;
44037
- }
44038
- return new Hsl(h2, s, l, o.opacity);
44039
- }
44040
- function hsl(h2, s, l, opacity2) {
44041
- return arguments.length === 1 ? hslConvert(h2) : new Hsl(h2, s, l, opacity2 == null ? 1 : opacity2);
44042
- }
44043
- function Hsl(h2, s, l, opacity2) {
44044
- this.h = +h2;
44045
- this.s = +s;
44046
- this.l = +l;
44047
- this.opacity = +opacity2;
44048
- }
44049
- define(Hsl, hsl, extend(Color, {
44050
- brighter: function(k) {
44051
- k = k == null ? brighter : Math.pow(brighter, k);
44052
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
44053
- },
44054
- darker: function(k) {
44055
- k = k == null ? darker : Math.pow(darker, k);
44056
- return new Hsl(this.h, this.s, this.l * k, this.opacity);
44057
- },
44058
- rgb: function() {
44059
- var h2 = this.h % 360 + (this.h < 0) * 360, s = isNaN(h2) || isNaN(this.s) ? 0 : this.s, l = this.l, m2 = l + (l < 0.5 ? l : 1 - l) * s, m1 = 2 * l - m2;
44060
- return new Rgb(
44061
- hsl2rgb(h2 >= 240 ? h2 - 240 : h2 + 120, m1, m2),
44062
- hsl2rgb(h2, m1, m2),
44063
- hsl2rgb(h2 < 120 ? h2 + 240 : h2 - 120, m1, m2),
44064
- this.opacity
44065
- );
44066
- },
44067
- displayable: function() {
44068
- return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && (0 <= this.l && this.l <= 1) && (0 <= this.opacity && this.opacity <= 1);
44069
- },
44070
- formatHsl: function() {
44071
- var a2 = this.opacity;
44072
- a2 = isNaN(a2) ? 1 : Math.max(0, Math.min(1, a2));
44073
- return (a2 === 1 ? "hsl(" : "hsla(") + (this.h || 0) + ", " + (this.s || 0) * 100 + "%, " + (this.l || 0) * 100 + "%" + (a2 === 1 ? ")" : ", " + a2 + ")");
44074
- }
44075
- }));
44076
- function hsl2rgb(h2, m1, m2) {
44077
- return (h2 < 60 ? m1 + (m2 - m1) * h2 / 60 : h2 < 180 ? m2 : h2 < 240 ? m1 + (m2 - m1) * (240 - h2) / 60 : m1) * 255;
44078
- }
44079
43325
  var colorScale;
44080
43326
  var hasRequiredColorScale;
44081
43327
  function requireColorScale() {
@@ -53002,12 +52248,17 @@ anndataZarrSchema.extend({
53002
52248
  z.object({
53003
52249
  // TODO: should `image` be a special schema
53004
52250
  // to allow specifying fileUid (like for embeddingType)?
53005
- // TODO: allow multiple images
52251
+ // TODO: allow multiple images?
53006
52252
  image: imageSpatialdataSchema,
53007
52253
  // TODO: should this be a special schema
53008
52254
  // to allow specifying fileUid (like for embeddingType)?
53009
- // TODO: allow multiple labels
52255
+ // TODO: allow multiple labels?
53010
52256
  labels: obsSegmentationsSpatialdataSchema,
52257
+ // TODO: allow multiple shapes?
52258
+ // TODO: unify labels and shapes to obsSegmentations,
52259
+ // then distinguish in expand function based on
52260
+ // "labels/*" vs. "shapes/*" in path?
52261
+ shapes: obsSegmentationsSpatialdataSchema,
53011
52262
  obsFeatureMatrix: obsFeatureMatrixSpatialdataSchema,
53012
52263
  obsSpots: obsSpotsSpatialdataSchema,
53013
52264
  // TODO: obsPoints