victory-tooltip 37.1.2 → 37.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # victory-tooltip
2
2
 
3
+ ## 37.2.0
4
+
3
5
  ## 37.1.2
4
6
 
5
7
  ### Patch Changes
@@ -4904,31 +4904,34 @@ __webpack_require__.r(__webpack_exports__);
4904
4904
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
4905
4905
  /* harmony export */ "VictoryPortal": function() { return /* binding */ VictoryPortal; }
4906
4906
  /* harmony export */ });
4907
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
4908
- /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_0__);
4909
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
4910
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
4911
- /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
4912
- /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
4913
- /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
4907
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! lodash/uniqueId */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/uniqueId.js");
4908
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0__);
4909
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! lodash/defaults */ "../../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/defaults.js");
4910
+ /* harmony import */ var lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_defaults__WEBPACK_IMPORTED_MODULE_1__);
4911
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "react");
4912
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
4913
+ /* harmony import */ var _victory_util_log__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../victory-util/log */ "../../victory-core/es/victory-util/log.js");
4914
+ /* harmony import */ var _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../victory-util/helpers */ "../../victory-core/es/victory-util/helpers.js");
4915
+ /* harmony import */ var _portal_context__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./portal-context */ "../../victory-core/es/victory-portal/portal-context.js");
4916
+
4914
4917
 
4915
4918
 
4916
4919
 
4917
4920
 
4918
4921
 
4919
4922
  const defaultProps = {
4920
- groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("g", null)
4923
+ groupComponent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement("g", null)
4921
4924
  };
4922
4925
  const VictoryPortal = initialProps => {
4923
4926
  const props = {
4924
4927
  ...defaultProps,
4925
4928
  ...initialProps
4926
4929
  };
4927
- const id = react__WEBPACK_IMPORTED_MODULE_1___default().useId();
4928
- const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_2__.usePortalContext)();
4930
+ const id = lodash_uniqueId__WEBPACK_IMPORTED_MODULE_0___default()();
4931
+ const portalContext = (0,_portal_context__WEBPACK_IMPORTED_MODULE_3__.usePortalContext)();
4929
4932
  if (!portalContext) {
4930
4933
  const msg = "`renderInPortal` is not supported outside of `VictoryContainer`. " + "Component will be rendered in place";
4931
- _victory_util_log__WEBPACK_IMPORTED_MODULE_3__.warn(msg);
4934
+ _victory_util_log__WEBPACK_IMPORTED_MODULE_4__.warn(msg);
4932
4935
  }
4933
4936
  const children = Array.isArray(props.children) ? props.children[0] : props.children;
4934
4937
  const {
@@ -4939,15 +4942,15 @@ const VictoryPortal = initialProps => {
4939
4942
  groupComponent,
4940
4943
  standalone: false
4941
4944
  } : {};
4942
- const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_0___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_4__.omit(props, ["children", "groupComponent"]), {
4945
+ const newProps = lodash_defaults__WEBPACK_IMPORTED_MODULE_1___default()(standardProps, childProps, _victory_util_helpers__WEBPACK_IMPORTED_MODULE_5__.omit(props, ["children", "groupComponent"]), {
4943
4946
  key: childProps.key ?? id
4944
4947
  });
4945
- const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(children, newProps);
4946
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
4948
+ const child = children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().cloneElement(children, newProps);
4949
+ react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
4947
4950
  portalContext?.addChild(id, child);
4948
4951
  // eslint-disable-next-line react-hooks/exhaustive-deps
4949
4952
  }, [props.children]);
4950
- react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(() => {
4953
+ react__WEBPACK_IMPORTED_MODULE_2___default().useEffect(() => {
4951
4954
  return () => portalContext?.removeChild(id);
4952
4955
  // eslint-disable-next-line react-hooks/exhaustive-deps
4953
4956
  }, []);
@@ -5201,7 +5204,26 @@ const green = {
5201
5204
  "500": "#20C933",
5202
5205
  "900": "#338A17"
5203
5206
  };
5204
- const colors = [blue["500"], pink["500"], teal["500"], purple["500"], green["500"], orange["500"], cyan["500"], red["500"], yellow["500"]];
5207
+ const colors = {
5208
+ blue: blue["500"],
5209
+ pink: pink["500"],
5210
+ teal: teal["500"],
5211
+ purple: purple["500"],
5212
+ green: green["500"],
5213
+ orange: orange["500"],
5214
+ cyan: cyan["500"],
5215
+ red: red["500"],
5216
+ yellow: yellow["500"]
5217
+ };
5218
+ const colorScale = Object.values(colors);
5219
+ const grayscale = [gray["200"], gray["400"], gray["600"], gray["900"]];
5220
+ const warm = [yellow["500"], orange["500"], red["500"], pink["500"]];
5221
+ const cool = [cyan["500"], teal["500"], blue["500"], purple["500"]];
5222
+ const heatmap = [green["500"], yellow["500"], red["500"]];
5223
+ const redPalette = [red["500"], red["300"], red["100"]];
5224
+ const greenPalette = [green["500"], green["300"], green["100"]];
5225
+ const bluePalette = [blue["500"], blue["300"], blue["100"]];
5226
+
5205
5227
  // *
5206
5228
  // * Typography
5207
5229
  // *
@@ -5216,7 +5238,7 @@ const baseProps = {
5216
5238
  width: 450,
5217
5239
  height: 300,
5218
5240
  padding: 50,
5219
- colorScale: colors
5241
+ colorScale
5220
5242
  };
5221
5243
  // *
5222
5244
  // * Labels
@@ -5245,10 +5267,23 @@ const borderRadius = 1;
5245
5267
  // * Theme
5246
5268
  // *
5247
5269
  const clean = {
5270
+ palette: {
5271
+ colors,
5272
+ grayscale,
5273
+ qualitative: colorScale,
5274
+ heatmap,
5275
+ warm,
5276
+ cool,
5277
+ red: redPalette,
5278
+ green: greenPalette,
5279
+ blue: bluePalette
5280
+ },
5248
5281
  area: Object.assign({
5249
5282
  style: {
5250
5283
  data: {
5251
- fill: cyan["500"]
5284
+ fill: blue["500"],
5285
+ strokeWidth: 2,
5286
+ fillOpacity: 0.5
5252
5287
  },
5253
5288
  labels: baseLabelStyles
5254
5289
  }
@@ -5257,7 +5292,7 @@ const clean = {
5257
5292
  style: {
5258
5293
  axis: {
5259
5294
  fill: "transparent",
5260
- stroke: gray["300"],
5295
+ stroke: gray["500"],
5261
5296
  strokeWidth: 1,
5262
5297
  strokeLinecap,
5263
5298
  strokeLinejoin
@@ -5282,10 +5317,10 @@ const clean = {
5282
5317
  polarAxis: Object.assign({
5283
5318
  style: {
5284
5319
  axis: {
5285
- stroke: gray["300"]
5320
+ stroke: gray["500"]
5286
5321
  },
5287
5322
  grid: {
5288
- stroke: gray["200"],
5323
+ stroke: gray["400"],
5289
5324
  strokeDasharray,
5290
5325
  strokeLinecap,
5291
5326
  strokeLinejoin,
@@ -5294,7 +5329,7 @@ const clean = {
5294
5329
  ticks: {
5295
5330
  fill: "transparent",
5296
5331
  size: 5,
5297
- stroke: gray["200"],
5332
+ stroke: gray["400"],
5298
5333
  strokeWidth: 1,
5299
5334
  strokeLinecap,
5300
5335
  strokeLinejoin
@@ -5305,10 +5340,10 @@ const clean = {
5305
5340
  polarDependentAxis: Object.assign({
5306
5341
  style: {
5307
5342
  axis: {
5308
- stroke: gray["300"]
5343
+ stroke: gray["500"]
5309
5344
  },
5310
5345
  grid: {
5311
- stroke: gray["200"],
5346
+ stroke: gray["400"],
5312
5347
  strokeDasharray,
5313
5348
  strokeLinecap,
5314
5349
  strokeLinejoin,
@@ -5317,7 +5352,7 @@ const clean = {
5317
5352
  ticks: {
5318
5353
  fill: "transparent",
5319
5354
  size: 5,
5320
- stroke: gray["200"],
5355
+ stroke: gray["300"],
5321
5356
  strokeWidth: 1,
5322
5357
  strokeLinecap,
5323
5358
  strokeLinejoin
@@ -5330,7 +5365,8 @@ const clean = {
5330
5365
  data: {
5331
5366
  fill: blue["500"],
5332
5367
  padding,
5333
- strokeWidth: 0
5368
+ strokeWidth: 1,
5369
+ fillOpacity: 0.5
5334
5370
  },
5335
5371
  labels: baseLabelStyles
5336
5372
  },
@@ -5367,14 +5403,15 @@ const clean = {
5367
5403
  q1: {
5368
5404
  padding,
5369
5405
  fill: teal["500"],
5370
- rx: borderRadius
5406
+ rx: borderRadius,
5407
+ strokeWidth: 2
5371
5408
  },
5372
5409
  q1Labels: Object.assign({}, baseLabelStyles, {
5373
5410
  padding: 3
5374
5411
  }),
5375
5412
  q3: {
5376
5413
  padding,
5377
- fill: teal["500"],
5414
+ fill: cyan["500"],
5378
5415
  rx: borderRadius
5379
5416
  },
5380
5417
  q3Labels: Object.assign({}, baseLabelStyles, {
@@ -5415,14 +5452,13 @@ const clean = {
5415
5452
  }
5416
5453
  }, baseProps),
5417
5454
  group: Object.assign({
5418
- colorScale: colors
5455
+ colorScale
5419
5456
  }, baseProps),
5420
5457
  histogram: Object.assign({
5421
5458
  style: {
5422
5459
  data: {
5423
5460
  fill: cyan["500"],
5424
- stroke: "transparent",
5425
- strokeWidth: 0
5461
+ fillOpacity: 0.5
5426
5462
  },
5427
5463
  labels: baseLabelStyles
5428
5464
  },
@@ -5433,21 +5469,23 @@ const clean = {
5433
5469
  }, baseProps),
5434
5470
  label: baseLabelStyles,
5435
5471
  legend: {
5436
- colorScale: colors,
5437
- gutter: 10,
5438
- orientation: "vertical",
5472
+ colorScale,
5473
+ gutter: 24,
5474
+ borderPadding: 10,
5475
+ orientation: "horizontal",
5439
5476
  titleOrientation: "top",
5477
+ centerTitle: true,
5440
5478
  style: {
5441
5479
  data: {
5442
5480
  type: "circle"
5443
5481
  },
5444
5482
  labels: {
5445
5483
  ...baseLabelStyles,
5446
- fontSize: 14
5484
+ fontSize: 12
5447
5485
  },
5448
5486
  title: Object.assign({}, baseLabelStyles, {
5449
5487
  padding,
5450
- fontSize: 20
5488
+ fontSize: 16
5451
5489
  }),
5452
5490
  border: {
5453
5491
  stroke: gray["200"],
@@ -5461,7 +5499,7 @@ const clean = {
5461
5499
  data: {
5462
5500
  fill: "transparent",
5463
5501
  opacity: 1,
5464
- stroke: pink["500"],
5502
+ stroke: blue["500"],
5465
5503
  strokeWidth: 2,
5466
5504
  strokeLinecap,
5467
5505
  strokeLinejoin
@@ -5471,16 +5509,22 @@ const clean = {
5471
5509
  }, baseProps),
5472
5510
  pie: Object.assign({
5473
5511
  style: {
5512
+ parent: {
5513
+ backgroundColor: gray.white
5514
+ },
5474
5515
  data: {
5475
5516
  padding,
5476
5517
  stroke: gray.white,
5477
5518
  strokeWidth: 1
5478
5519
  },
5479
- labels: Object.assign({}, baseLabelStyles, {
5480
- padding: 20
5481
- })
5520
+ labels: {
5521
+ ...baseLabelStyles,
5522
+ padding: 20,
5523
+ fill: gray["600"],
5524
+ fontSize: 10
5525
+ }
5482
5526
  },
5483
- colorScale: colors,
5527
+ colorScale,
5484
5528
  cornerRadius: borderRadius
5485
5529
  }, baseProps),
5486
5530
  scatter: Object.assign({
@@ -5491,11 +5535,14 @@ const clean = {
5491
5535
  stroke: "transparent",
5492
5536
  strokeWidth: 0
5493
5537
  },
5494
- labels: baseLabelStyles
5538
+ labels: {
5539
+ ...baseLabelStyles,
5540
+ padding: 20
5541
+ }
5495
5542
  }
5496
5543
  }, baseProps),
5497
5544
  stack: Object.assign({
5498
- colorScale: colors
5545
+ colorScale
5499
5546
  }, baseProps),
5500
5547
  tooltip: {
5501
5548
  style: Object.assign({}, baseLabelStyles, {
@@ -5503,7 +5550,7 @@ const clean = {
5503
5550
  pointerEvents: "none"
5504
5551
  }),
5505
5552
  flyoutStyle: {
5506
- stroke: gray["500"],
5553
+ stroke: gray["300"],
5507
5554
  strokeWidth: 2,
5508
5555
  fill: gray.white,
5509
5556
  pointerEvents: "none"
@@ -5520,9 +5567,10 @@ const clean = {
5520
5567
  voronoi: Object.assign({
5521
5568
  style: {
5522
5569
  data: {
5523
- fill: red["100"],
5524
- stroke: red["500"],
5525
- strokeWidth: 2
5570
+ fill: blue["100"],
5571
+ stroke: blue["500"],
5572
+ strokeWidth: 2,
5573
+ opacity: 0.4
5526
5574
  },
5527
5575
  labels: Object.assign({}, baseLabelStyles, {
5528
5576
  padding: 5,
@@ -5558,9 +5606,28 @@ __webpack_require__.r(__webpack_exports__);
5558
5606
  // *
5559
5607
  // * Colors
5560
5608
  // *
5561
- const colors = ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0"];
5609
+ const colors = {
5610
+ blue: "#4F7DA1",
5611
+ pink: "#E2A37F",
5612
+ teal: "#00796B",
5613
+ purple: "#DF948A",
5614
+ green: "#8BC34A",
5615
+ orange: "#F4511E",
5616
+ cyan: "#006064",
5617
+ red: "#DF5A49",
5618
+ yellow: "#FFF59D"
5619
+ };
5620
+ const colorScale = ["#252525", "#525252", "#737373", "#969696", "#bdbdbd", "#d9d9d9", "#f0f0f0"];
5562
5621
  const charcoal = "#252525";
5563
5622
  const grey = "#969696";
5623
+ const qualitative = ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"];
5624
+ const heatmap = ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"];
5625
+ const warm = ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"];
5626
+ const cool = ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"];
5627
+ const red = ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"];
5628
+ const green = ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"];
5629
+ const blue = ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"];
5630
+
5564
5631
  // *
5565
5632
  // * Typography
5566
5633
  // *
@@ -5574,7 +5641,7 @@ const baseProps = {
5574
5641
  width: 450,
5575
5642
  height: 300,
5576
5643
  padding: 50,
5577
- colorScale: colors
5644
+ colorScale
5578
5645
  };
5579
5646
  // *
5580
5647
  // * Labels
@@ -5596,6 +5663,17 @@ const centeredLabelStyles = Object.assign({
5596
5663
  const strokeLinecap = "round";
5597
5664
  const strokeLinejoin = "round";
5598
5665
  const grayscale = {
5666
+ palette: {
5667
+ colors,
5668
+ grayscale: colorScale,
5669
+ qualitative,
5670
+ heatmap,
5671
+ warm,
5672
+ cool,
5673
+ red,
5674
+ green,
5675
+ blue
5676
+ },
5599
5677
  area: Object.assign({
5600
5678
  style: {
5601
5679
  data: {
@@ -5710,7 +5788,7 @@ const grayscale = {
5710
5788
  }
5711
5789
  }, baseProps),
5712
5790
  group: Object.assign({
5713
- colorScale: colors
5791
+ colorScale
5714
5792
  }, baseProps),
5715
5793
  histogram: Object.assign({
5716
5794
  style: {
@@ -5723,7 +5801,7 @@ const grayscale = {
5723
5801
  }
5724
5802
  }, baseProps),
5725
5803
  legend: {
5726
- colorScale: colors,
5804
+ colorScale,
5727
5805
  gutter: 10,
5728
5806
  orientation: "vertical",
5729
5807
  titleOrientation: "top",
@@ -5758,7 +5836,7 @@ const grayscale = {
5758
5836
  padding: 20
5759
5837
  })
5760
5838
  },
5761
- colorScale: colors,
5839
+ colorScale,
5762
5840
  width: 400,
5763
5841
  height: 400,
5764
5842
  padding: 50
@@ -5774,7 +5852,7 @@ const grayscale = {
5774
5852
  }
5775
5853
  }, baseProps),
5776
5854
  stack: Object.assign({
5777
- colorScale: colors
5855
+ colorScale
5778
5856
  }, baseProps),
5779
5857
  tooltip: {
5780
5858
  style: Object.assign({}, baseLabelStyles, {
@@ -5834,11 +5912,31 @@ const lime300 = "#DCE775";
5834
5912
  const lightGreen500 = "#8BC34A";
5835
5913
  const teal700 = "#00796B";
5836
5914
  const cyan900 = "#006064";
5837
- const colors = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900];
5915
+ const colorScale = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900];
5838
5916
  const blueGrey50 = "#ECEFF1";
5839
5917
  const blueGrey300 = "#90A4AE";
5840
5918
  const blueGrey700 = "#455A64";
5841
5919
  const grey900 = "#212121";
5920
+ const colors = {
5921
+ blue: "#4F7DA1",
5922
+ pink: "#E2A37F",
5923
+ teal: teal700,
5924
+ purple: "#DF948A",
5925
+ green: lightGreen500,
5926
+ orange: deepOrange600,
5927
+ cyan: cyan900,
5928
+ red: "#DF5A49",
5929
+ yellow: yellow200
5930
+ };
5931
+ const grayscale = [blueGrey50, blueGrey300, blueGrey700, grey900];
5932
+ const qualitative = ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"];
5933
+ const heatmap = ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"];
5934
+ const warm = ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"];
5935
+ const cool = ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"];
5936
+ const red = ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"];
5937
+ const green = ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"];
5938
+ const blue = ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"];
5939
+
5842
5940
  // *
5843
5941
  // * Typography
5844
5942
  // *
@@ -5876,6 +5974,17 @@ const strokeDasharray = "10, 5";
5876
5974
  const strokeLinecap = "round";
5877
5975
  const strokeLinejoin = "round";
5878
5976
  const material = {
5977
+ palette: {
5978
+ colors,
5979
+ grayscale,
5980
+ qualitative,
5981
+ heatmap,
5982
+ warm,
5983
+ cool,
5984
+ red,
5985
+ green,
5986
+ blue
5987
+ },
5879
5988
  area: Object.assign({
5880
5989
  style: {
5881
5990
  data: {
@@ -6008,7 +6117,7 @@ const material = {
6008
6117
  }
6009
6118
  }, baseProps),
6010
6119
  group: Object.assign({
6011
- colorScale: colors
6120
+ colorScale
6012
6121
  }, baseProps),
6013
6122
  histogram: Object.assign({
6014
6123
  style: {
@@ -6021,7 +6130,7 @@ const material = {
6021
6130
  }
6022
6131
  }, baseProps),
6023
6132
  legend: {
6024
- colorScale: colors,
6133
+ colorScale,
6025
6134
  gutter: 10,
6026
6135
  orientation: "vertical",
6027
6136
  titleOrientation: "top",
@@ -6047,7 +6156,7 @@ const material = {
6047
6156
  }
6048
6157
  }, baseProps),
6049
6158
  pie: Object.assign({
6050
- colorScale: colors,
6159
+ colorScale,
6051
6160
  style: {
6052
6161
  data: {
6053
6162
  padding,
@@ -6071,7 +6180,7 @@ const material = {
6071
6180
  }
6072
6181
  }, baseProps),
6073
6182
  stack: Object.assign({
6074
- colorScale: colors
6183
+ colorScale
6075
6184
  }, baseProps),
6076
6185
  tooltip: {
6077
6186
  style: Object.assign({}, baseLabelStyles, {
@@ -6870,6 +6979,9 @@ __webpack_require__.r(__webpack_exports__);
6870
6979
  /* harmony export */ "getColorScale": function() { return /* binding */ getColorScale; },
6871
6980
  /* harmony export */ "toTransformString": function() { return /* binding */ toTransformString; }
6872
6981
  /* harmony export */ });
6982
+ /* harmony import */ var _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../victory-theme/victory-theme */ "../../victory-core/es/victory-theme/victory-theme.js");
6983
+
6984
+
6873
6985
  /**
6874
6986
  * Given an object with CSS/SVG transform definitions, return the string value
6875
6987
  * for use with the `transform` CSS property or SVG attribute. Note that we
@@ -6906,20 +7018,37 @@ const toTransformString = function (obj) {
6906
7018
  * of 5 hex string values in that color scale. If no 'name' parameter
6907
7019
  * is given, it will return the Victory default grayscale.
6908
7020
  * @param {String} name The name of the color scale to return (optional).
7021
+ * @param {Object} theme The theme object to retrieve the color scale from (optional).
6909
7022
  * @returns {Array} An array of 5 hex string values composing a color scale.
6910
7023
  */
6911
- function getColorScale(name) {
7024
+ function getColorScale(name, theme) {
7025
+ if (theme === void 0) {
7026
+ theme = _victory_theme_victory_theme__WEBPACK_IMPORTED_MODULE_0__.VictoryTheme.material;
7027
+ }
7028
+ const {
7029
+ palette: {
7030
+ grayscale = ["#cccccc", "#969696", "#636363", "#252525"],
7031
+ qualitative = [],
7032
+ heatmap = [],
7033
+ warm = [],
7034
+ cool = [],
7035
+ red = [],
7036
+ blue = [],
7037
+ green = []
7038
+ } = {}
7039
+ } = theme;
6912
7040
  const scales = {
6913
- grayscale: ["#cccccc", "#969696", "#636363", "#252525"],
6914
- qualitative: ["#334D5C", "#45B29D", "#EFC94C", "#E27A3F", "#DF5A49", "#4F7DA1", "#55DBC1", "#EFDA97", "#E2A37F", "#DF948A"],
6915
- heatmap: ["#428517", "#77D200", "#D6D305", "#EC8E19", "#C92B05"],
6916
- warm: ["#940031", "#C43343", "#DC5429", "#FF821D", "#FFAF55"],
6917
- cool: ["#2746B9", "#0B69D4", "#2794DB", "#31BB76", "#60E83B"],
6918
- red: ["#FCAE91", "#FB6A4A", "#DE2D26", "#A50F15", "#750B0E"],
6919
- blue: ["#002C61", "#004B8F", "#006BC9", "#3795E5", "#65B4F4"],
6920
- green: ["#354722", "#466631", "#649146", "#8AB25C", "#A9C97E"]
7041
+ grayscale,
7042
+ qualitative,
7043
+ heatmap,
7044
+ warm,
7045
+ cool,
7046
+ red,
7047
+ blue,
7048
+ green
6921
7049
  };
6922
- return name ? scales[name] : scales.grayscale;
7050
+ const selectedScale = name && scales[name]?.length ? scales[name] : scales.grayscale;
7051
+ return selectedScale;
6923
7052
  }
6924
7053
 
6925
7054
  /***/ }),
@@ -1,2 +1,2 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryTooltip=e(require("react")):t.VictoryTooltip=e(t.React)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,e,n){var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},1634:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:function(t,e,n){var r=n(8347),i=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),i=n(3608);t.exports=function t(e,n,o,a,s){var l=-1,c=e.length;for(o||(o=i),s||(s=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},4432:function(t,e,n){var r=n(9026),i=n(3110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),i=n(3474);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},7028:function(t,e,n){var r=n(8708),i=n(8705),o=n(2813),a=n(6682),s=n(9667),l=n(163),c=n(4801),u=n(4289),d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,y,b){var v=l(t),x=l(e),m=v?f:s(t),k=x?f:s(e),j=(m=m==d?p:m)==p,O=(k=k==d?p:k)==p,S=m==k;if(S&&c(t)){if(!c(e))return!1;v=!0,j=!1}if(S&&!j)return b||(b=new r),v||u(t)?i(t,e,n,h,y,b):o(t,e,m,n,h,y,b);if(!(1&n)){var w=j&&g.call(t,"__wrapped__"),A=O&&g.call(e,"__wrapped__");if(w||A){var $=w?t.value():t,L=A?e.value():e;return b||(b=new r),y($,L,n,h,b)}}return!!S&&(b||(b=new r),a(t,e,n,h,y,b))}},9548:function(t,e,n){var r=n(8708),i=n(9070);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],d=t[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var p=new r;if(o)var g=o(d,f,u,t,e,p);if(!(void 0===g?i(f,d,3,o,p):g))return!1}}return!0}},3472:function(t,e,n){var r=n(758),i=n(5223),o=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},758:function(t,e,n){var r=n(9548),i=n(597),o=n(6878);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),i=n(9201),o=n(5066),a=n(726),s=n(5385),l=n(6878),c=n(3110);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),i=n(4432),o=n(3472),a=n(383),s=n(9521),l=n(9110),c=n(9409),u=n(5346),d=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return c(t,e,n)}))}},5436:function(t,e,n){var r=n(6371),i=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},6371:function(t,e,n){var r=n(4432),i=n(6539),o=n(9026);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=r(t,c);n(u,c)&&i(l,o(c,t),u)}return l}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:function(t,e,n){var r=n(5346),i=n(4280),o=n(201);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),i=n(9026),o=n(9099),a=n(7709),s=n(3110);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=i(e,t)).length,d=u-1,f=t;null!=f&&++c<u;){var p=s(e[c]),g=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=d){var h=f[p];void 0===(g=l?l(h,p,f):void 0)&&(g=a(h)?h:o(e[c+1])?[]:{})}r(f,p,g),f=f[p]}return t}},9521:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},6316:function(t,e,n){var r=n(2596),i=n(8644),o=n(163),a=n(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},9914:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:function(t,e,n){var r=n(163),i=n(726),o=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},5525:function(t,e,n){var r=n(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,e,n){var r=n(3273),i=n(1634),o=n(9914);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(t),p=l.get(e);if(f&&p)return f==e&&p==t;var g=-1,h=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++g<u;){var b=t[g],v=e[g];if(a)var x=c?a(v,b,g,e,t,l):a(b,v,g,t,e,l);if(void 0!==x){if(x)continue;h=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||s(b,t,n,a,l)))return y.push(e)}))){h=!1;break}}else if(b!==v&&!s(b,v,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},2813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:function(t,e,n){var r=n(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in e:i.call(e,f)))return!1}var p=s.get(t),g=s.get(e);if(p&&g)return p==e&&g==t;var h=!0;s.set(t,e),s.set(e,t);for(var y=l;++d<u;){var b=t[f=c[d]],v=e[f];if(o)var x=l?o(v,b,f,e,t,s):o(b,v,f,t,e,s);if(!(void 0===x?b===v||a(b,v,n,o,s):x)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var m=t.constructor,k=e.constructor;m==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof k&&k instanceof k||(h=!1)}return s.delete(t),s.delete(e),h}},5557:function(t,e,n){var r=n(2645),i=n(4280),o=n(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},597:function(t,e,n){var r=n(5385),i=n(7747);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9817:function(t,e,n){var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),i=n(5075),o=n(163),a=n(9099),s=n(8454),l=n(3110);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,d=!1;++c<u;){var f=l(e[c]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},3608:function(t,e,n){var r=n(2596),i=n(5075),o=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),i=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,e,n){var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},6878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(l),r(t,this,c)}}},2373:function(t,e,n){var r=n(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:function(t,e,n){var r=n(6317),i=n(788),o=n(8286),a=n(8855),s=Object.prototype,l=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var u=e[n],d=a(u),f=-1,p=d.length;++f<p;){var g=d[f],h=t[g];(void 0===h||i(h,s[g])&&!l.call(t,g))&&(t[g]=u[g])}return t}));t.exports=c},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,e,n){var r=n(4432);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},5066:function(t,e,n){var r=n(6776),i=n(3096);t.exports=function(t,e){return null!=t&&i(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),i=n(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),i=n(9667),o=n(5075),a=n(163),s=n(981),l=n(4801),c=n(5782),u=n(4289),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),i=n(7709);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var r=n(563),i=n(9817),o=n(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},7747:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},4143:function(t,e,n){var r=n(8245),i=n(163);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),i=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},8532:function(t,e,n){var r=n(1600),i=n(3301),o=n(726),a=n(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},660:function(t,e,n){var r=n(7010),i=0;t.exports=function(t){var e=++i;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.r(i),r.d(i,{Flyout:function(){return Zt},VictoryTooltip:function(){return Yt}});var t=r(4143),e=r.n(t),n=r(3849),o=r.n(n),a=r(660),s=r.n(a),l=r(1893),c=r.n(l),u=r(9787),d=r.n(u),f=r(4155),p=r.n(f);function g(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function h(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:u}=t,d=e(r)?r:n,f=e(s)?s:a,p={x:e(o)?o:d,x0:e(i)?i:n,y:e(u)?u:f,y0:e(l)?l:a};return c()({},p,t)}function y(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,i="object"==typeof n?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function b(t,e){return x(t)?t(e):t}function v(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>x(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=b(t[r],e),n)),{}):t}function x(t){return"function"==typeof t}r(9082),r(8532);const m=d().createContext(void 0);m.displayName="PortalContext";const k={groupComponent:d().createElement("g",null)},j=t=>{const e={...k,...t},n=d().useId(),r=d().useContext(m),i=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:o}=e,a=i&&i.props||{},s=a.groupComponent?{groupComponent:o,standalone:!1}:{},l=c()(s,a,g(e,["children","groupComponent"]),{key:a.key??n}),u=i&&d().cloneElement(i,l);return d().useEffect((()=>{r?.addChild(n,u)}),[e.children]),d().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:u};function O(){return O=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},O.apply(this,arguments)}j.role="portal";const S=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:b(r,t)?.toString(),tabIndex:b(i,t),...a};return n?d().createElement("rect",O({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("rect",O({},s,{ref:e}))})),w=t=>{const{children:e,desc:n,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:b(r,t)?.toString(),tabIndex:b(o,t),...s};return d().createElement("text",l,a&&d().createElement("title",null,a),n&&d().createElement("desc",null,n),e)},A=t=>{const{desc:e,id:n,tabIndex:r,origin:i,...o}=t,a={id:b(n,t)?.toString(),tabIndex:b(r,t),...o};return d().createElement("tspan",a)};function $(t,e){const{x:n}=h(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}const L=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(((t,e)=>[t,L(e)].join(" ")),L(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];i.push(`${e}(${n})`)}return i.join(" ").trim()};var E=r(1594),P=r.n(E);const W={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},z={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},C={em:1,ex:.5},F={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},_=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),M=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},H=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=n?z.hasOwnProperty(n)?r*z[n]:C.hasOwnProperty(n)?(e?r*e:r*F.fontSize)*C[n]:r:r||0,i},T=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=c()({},n,F);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:H(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:H(String(r.fontSize))})},R=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:_(t).reduce(((t,n,r)=>{const i=T(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,e),i=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=_(t).map(((t,n)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=T(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>W[t]))||"Helvetica";return W[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,e)=>e+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?M(i,r,n):i,height:1.05*(n?M(r,i,n):r)}},D=P()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),I=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",N=P()(((t,e)=>{let n=D();n.isConnected||(D.cache.clear?.(),n=D());const r=_(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=T(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),n.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?M(o,i,e?.angle):o,height:e?.angle?M(i,o,e?.angle):i}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(I).join():I(e)}`)),q=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?R(t,e):N(t,e)}(t,e),B={startsWith:["data-","aria-"],exactMatch:[]};function V(t,e){if(null==t)throw new Error(e)}const G=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return B.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>B.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,b(r,t)]})))},Z={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},X=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:i}=t,o=h(e),a=t.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}(t,t.datum);return n[e]},Y=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Z.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?Z.fontSize:t}return Z.fontSize},J=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},K=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!p()(e)||Array.isArray(n)&&!p()(n)},Q=(t,e)=>{const{direction:n,textAnchor:r,x:i,dx:o}=t;if("rtl"===n)return i-e;switch(r){case"middle":return Math.round(i-e/2);case"end":return Math.round(i-e);default:return i+(o||0)}},U=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=t,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-e);default:return Math.floor(o-e/2)}},tt=(t,e)=>K(t)?((t,e)=>{const{dy:n,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:u}=t,f=e.map(((t,i)=>{const o=J(e,i-1),s=t.textSize,c=t.fontSize*t.lineHeight,d=Math.ceil(c),f=J(a,i),p=J(a,i-1),g=l&&r||0,h=i&&!l?o.fontSize*o.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:d,labelSize:s,heightWithPadding:d+f.top+f.bottom,widthWithPadding:s.width+f.left+f.right+g,y:u,fontSize:t.fontSize,dy:h}}));return f.map(((e,n)=>{const r=Q(t,e.labelSize.width),p=f.slice(0,n+1).reduce(((t,e)=>t+e.dy),u),g=J(a,n),h=e.heightWithPadding,y=l?((t,e,n)=>{const{textAnchor:r}=t,i=e.map((t=>t.widthWithPadding)),o=-i.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return i.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return i.reduce(((t,e,r)=>r>n?t-e:t),0);default:return i.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),o)}})(t,f,n)+r-g.left:r,b=l?U(t,h)-g.top:p,v={key:`tspan-background-${n}`,height:h,style:J(o,n),width:e.widthWithPadding,transform:i,x:y-g.left,y:b};return d().cloneElement(s,c()({},s.props,v))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=t,u=e.map((t=>t.textSize)),f=a?Math.max(...u.map((t=>t.height))):u.reduce(((t,n,r)=>{const i=r?0:l/2;return t+n.height*(e[r].lineHeight-i)}),0),p=a?u.reduce(((t,e,r)=>{const i=r?n:0;return t+e.width+i}),0):Math.max(...u.map((t=>t.width))),g=Q(t,p),h=U(t,f),y={key:"background",height:f+s.top+s.bottom,style:o,transform:r,width:p+s.left+s.right,x:a?g-s.left:g+n-s.left,y:h};return d().cloneElement(i,c()({},i.props,y))})(t,e),et=(t,e,n)=>{const{inline:r}=e,i=J(t,n);return n&&!r?((t,e,n)=>{const r=J(t,e),i=J(t,e-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return K(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,n,e):r?0===n?i.backgroundPadding.top:void 0:i.backgroundPadding.top},nt=t=>{const e=b(t.ariaLabel,t),n=J(t.style),r=(t=>{const e=b(t.lineHeight,t);return Array.isArray(e)&&p()(e)?[1]:e})(t),i=t.direction?b(t.direction,t):"inherit",o=t.textAnchor?b(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?b(t.verticalAnchor,t):n.verticalAnchor||"middle",s=t.dx?b(t.dx,t):0,l=((t,e,n)=>{const r=t.dy?b(t.dy,t):0,i=t.inline?1:t.text.length,o=b(t.capHeight,t),a=e?b(e,t):"middle",s=[...Array(i).keys()].map((e=>J(t.style,e).fontSize)),l=[...Array(i).keys()].map((t=>J(n,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,e)=>t+(o/2+(.5-i)*l[e])*s[e]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),c=void 0!==t.x?t.x:X(t,"x"),u=void 0!==t.y?t.y:X(t,"y"),d=((t,e,n)=>{const{polar:r}=t,i=J(t.style),o=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const i=$(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===i.angle?b(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&b(l,t);return c||s?L(c,s&&{rotate:[s,e,n]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:b(t.dy,t),transform:d,x:c,y:u})},rt={backgroundComponent:d().createElement(S,null),groupComponent:d().createElement("g",null),direction:"inherit",textComponent:d().createElement(w,null),tspanComponent:d().createElement(A,null),capHeight:.71,lineHeight:1},it=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>b(t,e)));const n=b(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=v(t,e);return{fontSize:Y(n)}}const n=t=>{const n=v(t?c()({},t,Z):Z,e);return Object.assign({},n,{fontSize:Y(n)})};return Array.isArray(t)&&!p()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!p()(t)?t.map((t=>v(t,e))):v(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>y({padding:b(e,t)}))):y({padding:b(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),o=b(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:n,text:e,id:o})})(c()({},t,rt));if(null===e.text||void 0===e.text)return null;const n=nt(e),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=n,l=r.map(((t,e)=>{const n=J(i,e),r=H(`${o}em`,n.fontSize),l=J(s,e);return{style:n,fontSize:n.fontSize||Z.fontSize,capHeight:r,text:t,textSize:q(t,n),lineHeight:l,backgroundPadding:J(a,e)}})),u=((t,e)=>{const{ariaLabel:n,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:f,transform:p,x:g,y:h,desc:y,id:v,tabIndex:x,tspanComponent:m,textComponent:k}=t,j=G(t),O={"aria-label":n,key:"text",...a,direction:s,dx:u,x:g,y:h+f,transform:p,className:i,title:o,desc:b(y,t),tabIndex:b(x,t),id:v,...j},S=l.map(((n,i)=>{const o=e[i].style,a={key:`${v}-key-${i}`,x:r?void 0:g,dx:r?u+e[i].backgroundPadding.left:u,dy:et(e,t,i),textAnchor:o.textAnchor||c,style:o,children:n};return d().cloneElement(m,a)}));return d().cloneElement(k,O,S)})(n,l);if(e.backgroundStyle){const t=[tt(n,l),u],r=d().cloneElement(e.groupComponent,{},t);return e.renderInPortal?d().createElement(j,null,r):r}return e.renderInPortal?d().createElement(j,null,u):u};it.displayName="VictoryLabel",it.role="label",it.defaultStyles=Z;const ot=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],at="#252525",st="#969696",lt={width:450,height:300,padding:50,colorScale:ot},ct={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:at,stroke:"transparent"},ut=Object.assign({textAnchor:"middle"},ct),dt={area:Object.assign({style:{data:{fill:at},labels:ct}},lt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:at,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},ut,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:ct}},lt),bar:Object.assign({style:{data:{fill:at,padding:8,strokeWidth:0},labels:ct}},lt),boxplot:Object.assign({style:{max:{padding:8,stroke:at,strokeWidth:1},maxLabels:Object.assign({},ct,{padding:3}),median:{padding:8,stroke:at,strokeWidth:1},medianLabels:Object.assign({},ct,{padding:3}),min:{padding:8,stroke:at,strokeWidth:1},minLabels:Object.assign({},ct,{padding:3}),q1:{padding:8,fill:st},q1Labels:Object.assign({},ct,{padding:3}),q3:{padding:8,fill:st},q3Labels:Object.assign({},ct,{padding:3})},boxWidth:20},lt),candlestick:Object.assign({style:{data:{stroke:at,strokeWidth:1},labels:Object.assign({},ct,{padding:5})},candleColors:{positive:"#ffffff",negative:at}},lt),chart:lt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:at,strokeWidth:2},labels:ct}},lt),group:Object.assign({colorScale:ot},lt),histogram:Object.assign({style:{data:{fill:st,stroke:at,strokeWidth:2},labels:ct}},lt),legend:{colorScale:ot,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ct,title:Object.assign({},ct,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:at,strokeWidth:2},labels:ct}},lt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},ct,{padding:20})},colorScale:ot,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:at,stroke:"transparent",strokeWidth:0},labels:ct}},lt),stack:Object.assign({colorScale:ot},lt),tooltip:{style:Object.assign({},ct,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:at,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},ct,{padding:5,pointerEvents:"none"}),flyout:{stroke:at,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},lt)},ft=["#F4511E","#FFF59D","#DCE775","#8BC34A","#00796B","#006064"],pt="#ECEFF1",gt="#90A4AE",ht="#455A64",yt="#212121",bt={width:350,height:350,padding:50},vt={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:ht,stroke:"transparent",strokeWidth:0},xt=Object.assign({textAnchor:"middle"},vt),mt="round",kt="round",jt={area:Object.assign({style:{data:{fill:yt},labels:vt}},bt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:gt,strokeWidth:2,strokeLinecap:mt,strokeLinejoin:kt},axisLabel:Object.assign({},xt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:pt,strokeDasharray:"10, 5",strokeLinecap:mt,strokeLinejoin:kt,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:gt,strokeWidth:1,strokeLinecap:mt,strokeLinejoin:kt},tickLabels:Object.assign({},vt,{fill:ht})}},bt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:ht,padding:8,strokeWidth:0},labels:vt}},bt),boxplot:Object.assign({style:{max:{padding:8,stroke:ht,strokeWidth:1},maxLabels:Object.assign({},vt,{padding:3}),median:{padding:8,stroke:ht,strokeWidth:1},medianLabels:Object.assign({},vt,{padding:3}),min:{padding:8,stroke:ht,strokeWidth:1},minLabels:Object.assign({},vt,{padding:3}),q1:{padding:8,fill:ht},q1Labels:Object.assign({},vt,{padding:3}),q3:{padding:8,fill:ht},q3Labels:Object.assign({},vt,{padding:3})},boxWidth:20},bt),candlestick:Object.assign({style:{data:{stroke:ht},labels:Object.assign({},vt,{padding:5})},candleColors:{positive:"#ffffff",negative:ht}},bt),chart:bt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ht,strokeWidth:2},labels:vt}},bt),group:Object.assign({colorScale:ft},bt),histogram:Object.assign({style:{data:{fill:ht,stroke:yt,strokeWidth:2},labels:vt}},bt),legend:{colorScale:ft,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:vt,title:Object.assign({},vt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ht,strokeWidth:2},labels:vt}},bt),pie:Object.assign({colorScale:ft,style:{data:{padding:8,stroke:pt,strokeWidth:1},labels:Object.assign({},vt,{padding:20})}},bt),scatter:Object.assign({style:{data:{fill:ht,opacity:1,stroke:"transparent",strokeWidth:0},labels:vt}},bt),stack:Object.assign({colorScale:ft},bt),tooltip:{style:Object.assign({},vt,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:yt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},vt,{padding:5,pointerEvents:"none"}),flyout:{stroke:yt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},bt)},Ot="#FFFFFF",St="#E8E8E8",wt="#E0E0E0",At="#D1D1D1",$t="#292929",Lt="#FF6F2C",Et="#F82B60",Pt="#FF08C2",Wt="#8B46FF",zt="#2D7FF9",Ct="#18BFFF",Ft="#20D9D2",_t=[zt,Pt,Ft,Wt,"#20C933",Lt,Ct,Et,"#FCB400"],Mt={width:450,height:300,padding:50,colorScale:_t},Ht={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:$t,stroke:"transparent"},Tt=Object.assign({textAnchor:"middle"},Ht),Rt="10, 5",Dt="round",It="round",Nt={grayscale:dt,material:jt,clean:{area:Object.assign({style:{data:{fill:Ct},labels:Ht}},Mt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:wt,strokeWidth:1,strokeLinecap:Dt,strokeLinejoin:It},axisLabel:Object.assign({},Tt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:Ht}},Mt),polarAxis:Object.assign({style:{axis:{stroke:wt},grid:{stroke:St,strokeDasharray:Rt,strokeLinecap:Dt,strokeLinejoin:It,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:St,strokeWidth:1,strokeLinecap:Dt,strokeLinejoin:It},tickLabels:Ht}}),polarDependentAxis:Object.assign({style:{axis:{stroke:wt},grid:{stroke:St,strokeDasharray:Rt,strokeLinecap:Dt,strokeLinejoin:It,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:St,strokeWidth:1,strokeLinecap:Dt,strokeLinejoin:It},tickLabels:Ht}}),bar:Object.assign({style:{data:{fill:zt,padding:8,strokeWidth:0},labels:Ht},cornerRadius:{top:1}},Mt),boxplot:Object.assign({style:{max:{padding:8,stroke:At,strokeWidth:2},maxLabels:Object.assign({},Ht,{padding:3}),median:{padding:8,stroke:Ot,strokeWidth:2},medianLabels:Object.assign({},Ht,{padding:3}),min:{padding:8,stroke:At,strokeWidth:2},minLabels:Object.assign({},Ht,{padding:3}),q1:{padding:8,fill:Ft,rx:1},q1Labels:Object.assign({},Ht,{padding:3}),q3:{padding:8,fill:Ft,rx:1},q3Labels:Object.assign({},Ht,{padding:3})},boxWidth:20},Mt),candlestick:Object.assign({style:{data:{stroke:wt,strokeWidth:0,rx:1},labels:Object.assign({},Ht,{padding:5})},candleColors:{positive:Ft,negative:Lt},wickStrokeWidth:2},Mt),chart:Mt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#424242",strokeWidth:2,strokeLinecap:Dt},labels:Ht}},Mt),group:Object.assign({colorScale:_t},Mt),histogram:Object.assign({style:{data:{fill:Ct,stroke:"transparent",strokeWidth:0},labels:Ht},binSpacing:4,cornerRadius:{top:1}},Mt),label:Ht,legend:{colorScale:_t,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:{...Ht,fontSize:14},title:Object.assign({},Ht,{padding:8,fontSize:20}),border:{stroke:St,strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Pt,strokeWidth:2,strokeLinecap:Dt,strokeLinejoin:It},labels:Ht}},Mt),pie:Object.assign({style:{data:{padding:8,stroke:Ot,strokeWidth:1},labels:Object.assign({},Ht,{padding:20})},colorScale:_t,cornerRadius:1},Mt),scatter:Object.assign({style:{data:{fill:Wt,opacity:1,stroke:"transparent",strokeWidth:0},labels:Ht}},Mt),stack:Object.assign({colorScale:_t},Mt),tooltip:{style:Object.assign({},Ht,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:"#757575",strokeWidth:2,fill:Ot,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:"#FFDCE5",stroke:Et,strokeWidth:2},labels:Object.assign({},Ht,{padding:5,pointerEvents:"none"}),flyout:{stroke:$t,strokeWidth:1,fill:"#F2F2F2",pointerEvents:"none"},padding:{left:2,bottom:2}}},Mt)}};function qt(){return qt=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},qt.apply(this,arguments)}const Bt=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={id:b(r,t)?.toString(),tabIndex:b(i,t),...a};return n?d().createElement("path",qt({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("path",qt({},s,{ref:e}))})),Vt=t=>{const e=t.orientation||"top";return"left"===e||"right"===e?(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=u-s*(i/2),p=u+s*(i/2),g=d+o/2,h=d-o/2,y=s*(l-f)>0?0:t.pointerLength,b=`${n} ${n} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${f}, ${d-e/2}\n L ${y?l:f}, ${y?c:d+e/2}\n L ${f}, ${d+e/2}\n L ${f}, ${g-n}\n A ${b} ${f+s*n}, ${g}\n L ${p-s*n}, ${g}\n A ${b} ${p}, ${g-n}\n L ${p}, ${h+n}\n A ${b} ${p-s*n}, ${h}\n L ${f+s*n}, ${h}\n A ${b} ${f}, ${h+n}\n z`})(t):(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=d+s*(o/2),p=d-s*(o/2),g=u+i/2,h=u-i/2,y=s*(c-f)<0?0:t.pointerLength,b=`${n} ${n} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-e/2}, ${f}\n L ${y?l:u+e/2}, ${y?c:f}\n L ${u+e/2}, ${f}\n L ${g-n}, ${f}\n A ${b} ${g}, ${f-s*n}\n L ${g}, ${p+s*n}\n A ${b} ${g-n}, ${p}\n L ${h+n}, ${p}\n A ${b} ${h}, ${p+s*n}\n L ${h}, ${f-s*n}\n A ${b} ${h+n}, ${f}\n z`})(t)},Gt={pathComponent:d().createElement(Bt,null),role:"presentation",shapeRendering:"auto"},Zt=t=>{const e=(t=>{const e=b(t.id,t),n=v(t.style,t);return{...t,id:e,style:n}})(c()({},t,Gt)),n=G(e);V(e.height,"Flyout props[height] is undefined"),V(e.width,"Flyout props[width] is undefined"),V(e.x,"Flyout props[x] is undefined"),V(e.y,"Flyout props[y] is undefined");const r={center:e.center||{x:0,y:0},cornerRadius:e.cornerRadius||0,dx:e.dx,dy:e.dy,height:e.height,orientation:e.orientation||"top",pointerLength:e.pointerLength||0,pointerWidth:e.pointerWidth||0,width:e.width,x:e.x,y:e.y};return d().cloneElement(e.pathComponent,{...e.events,...n,style:e.style,d:Vt(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath})},Xt={cornerRadius:5,pointerLength:10,pointerWidth:10};class Yt extends d().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:d().createElement(it,null),flyoutComponent:d().createElement(Zt,null),groupComponent:d().createElement("g",null)};static defaultEvents(t){const e=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],n=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>e,onFocus:()=>e,onTouchStart:()=>e,onMouseOut:()=>n,onBlur:()=>n,onTouchEnd:()=>n}}]}constructor(t){super(t),this.id=void 0===t.id?s()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:e,horizontal:n,polar:r}=t;if(!r){const t=n?"right":"top",r=n?"left":"bottom";return e&&e.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const e=$(t,t.datum),n=t.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(e):"parallel"===n?e<90||e>270?"right":"left":e>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const e=t.theme||Nt.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>c()({},t,n))):c()({},t.style,n),i=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?c()({},t.flyoutStyle,i):i,a=Array.isArray(r)?r.map((e=>v(e,t))):v(r,t);return{style:a,flyoutStyle:v(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:e,centerOffset:n,dx:r,dy:i}=t,a=b(t.active,t);let s=b(t.text,Object.assign({},t,{active:a}));null==s&&(s=""),"number"==typeof s&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=b(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=y({padding:b(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l)}),f=b(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=b(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=q(s,l),{flyoutHeight:h,flyoutWidth:v}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:d,pointerWidth:f,pointerLength:p}),g),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:h,flyoutWidth:v,flyoutPadding:d,pointerWidth:f,pointerLength:p}),m=o()(n)&&void 0!==n?.x?b(n.x,x):0,k=o()(n)&&void 0!==n?.y?b(n.y,x):0;return{...x,centerOffset:{x:m,y:k},dx:void 0!==r?b(r,x):0,dy:void 0!==i?b(i,x):0,cornerRadius:b(e,x)}}getCalculatedValues(t){const{style:e,text:n,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:e,flyoutStyle:r,labelSize:q(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:e,y:n,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${e} ${n})`:void 0}getDefaultAngle(t){const{polar:e,labelPlacement:n,orientation:r,datum:i}=t;if(!e||!n||"vertical"===n)return 0;const o=$(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}constrainTooltip(t,e,n){const{x:r,y:i}=t,{width:o,height:a}=n,s=[0,e.width],l=[0,e.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],d=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],f=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+d[0]-d[1]),y:Math.round(i+f[0]-f[1])}}getFlyoutCenter(t,e){const{x:n,y:r,dx:i,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=e,p="left"===l?-1:1,g="bottom"===l?-1:1,h={x:"left"===l||"right"===l?n+p*(s+f/2+p*i):n+i,y:"top"===l||"bottom"===l?r-g*(s+d/2-g*a):r+a},y=o()(t.center)&&void 0!==t.center.x?t.center.x:h.x,b=o()(t.center)&&void 0!==t.center.y?t.center.y:h.y,v={x:y+u.x,y:b+u.y};return c?this.constrainTooltip(v,t,e):v}getLabelPadding(t){if(!t)return 0;const e=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...e,0)}getDimensions(t,e){const{orientation:n,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=b(t.cornerRadius,t);return{flyoutHeight:o?b(o,t):(()=>{const t=e.height+s.top+s.bottom,r="top"===n||"bottom"===n?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?b(a,t):(()=>{const t=e.width+s.left+s.right,i="left"===n||"right"===n?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,e){const{flyoutCenter:n,style:r,labelSize:i,dy:o=0,dx:a=0}=e,{text:s,datum:l,activePoints:u,labelComponent:d,index:f,flyoutPadding:p}=t,g=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return c()({},d.props,{key:`${this.id}-label-${f}`,text:s,datum:l,activePoints:u,textAnchor:g,dy:o,dx:a,style:r,x:(()=>{if(!g||"middle"===g)return n.x;const t="end"===g?-1:1;return n.x-t*(i.width/2)})()+(p.left-p.right)/2,y:n.y+(p.top-p.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,r){const i=n.y+r.height/2,o=n.y-r.height/2,a=n.x-r.width/2,s=n.x+r.width/2,l=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:i<t.y?t.y-i:-1},{side:"right",val:s<t.x?t.x-s:-1},{side:"left",val:a>t.x?a-t.x:-1}];return e()(l,"val","desc")[0].side}getFlyoutProps(t,e){const{flyoutDimensions:n,flyoutStyle:r,flyoutCenter:i}=e,{x:o,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,flyoutComponent:v}=t,x=b(t.pointerOrientation,t);return c()({},v.props,{x:o,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,orientation:x||this.getPointerOrientation({x:o,y:a},i,n),key:`${this.id}-tooltip-${f}`,width:n.width,height:n.height,style:r,center:i})}renderTooltip(t){const e=b(t.active,t),{renderInPortal:n}=t;if(!e)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[d().cloneElement(i,this.getFlyoutProps(r,s)),d().cloneElement(o,this.getLabelProps(r,s))],c=d().cloneElement(a,{role:"presentation",transform:s.transform},l);return n?d().createElement(j,null,c):c}render(){const t=function(t,e,n){const r=g(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const e=t=>t.reduce(((t,n)=>{const r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(d().Children.toArray(r.children))}),!1);return e(d().Children.toArray(t.children))}(t),o=void 0===i?{}:{horizontal:i};return c()(o,t,r,e)}(this.props,Xt,"tooltip");return this.renderTooltip(t)}}}(),i}()}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.VictoryTooltip=e(require("react")):t.VictoryTooltip=e(t.React)}(self,(function(t){return function(){var e={503:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},3273:function(t,e,n){var r=n(163);t.exports=function(){if(!arguments.length)return[];var t=arguments[0];return r(t)?t:[t]}},8708:function(t,e,n){var r=n(1171),i=n(7838),o=n(4859),a=n(4073),s=n(8541);function l(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=s,t.exports=l},2596:function(t,e,n){var r=n(2373).Symbol;t.exports=r},6082:function(t){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},8644:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,i=t.length;++n<r;)t[i+n]=e[n];return t}},1634:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},4132:function(t,e,n){var r=n(8347),i=n(788),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];o.call(t,e)&&i(a,n)&&(void 0!==n||e in t)||r(t,e,n)}},3162:function(t,e,n){var r=n(788);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},8347:function(t,e,n){var r=n(5525);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},6457:function(t,e,n){var r=n(9559),i=n(3608);t.exports=function t(e,n,o,a,s){var l=-1,c=e.length;for(o||(o=i),s||(s=[]);++l<c;){var u=e[l];n>0&&o(u)?n>1?t(u,n-1,o,a,s):r(s,u):a||(s[s.length]=u)}return s}},4432:function(t,e,n){var r=n(9026),i=n(3110);t.exports=function(t,e){for(var n=0,o=(e=r(e,t)).length;null!=t&&n<o;)t=t[i(e[n++])];return n&&n==o?t:void 0}},563:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},6776:function(t){t.exports=function(t,e){return null!=t&&e in Object(t)}},6123:function(t){t.exports=function(t,e,n){for(var r=n-1,i=t.length;++r<i;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),i=n(3474);t.exports=function t(e,n,o,a,s){return e===n||(null==e||null==n||!i(e)&&!i(n)?e!=e&&n!=n:r(e,n,o,a,t,s))}},7028:function(t,e,n){var r=n(8708),i=n(8705),o=n(2813),a=n(6682),s=n(9667),l=n(163),c=n(4801),u=n(4289),d="[object Arguments]",f="[object Array]",p="[object Object]",g=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,h,y,b){var v=l(t),x=l(e),m=v?f:s(t),k=x?f:s(e),O=(m=m==d?p:m)==p,j=(k=k==d?p:k)==p,S=m==k;if(S&&c(t)){if(!c(e))return!1;v=!0,O=!1}if(S&&!O)return b||(b=new r),v||u(t)?i(t,e,n,h,y,b):o(t,e,m,n,h,y,b);if(!(1&n)){var A=O&&g.call(t,"__wrapped__"),w=j&&g.call(e,"__wrapped__");if(A||w){var F=A?t.value():t,E=w?e.value():e;return b||(b=new r),y(F,E,n,h,b)}}return!!S&&(b||(b=new r),a(t,e,n,h,y,b))}},9548:function(t,e,n){var r=n(8708),i=n(9070);t.exports=function(t,e,n,o){var a=n.length,s=a,l=!o;if(null==t)return!s;for(t=Object(t);a--;){var c=n[a];if(l&&c[2]?c[1]!==t[c[0]]:!(c[0]in t))return!1}for(;++a<s;){var u=(c=n[a])[0],d=t[u],f=c[1];if(l&&c[2]){if(void 0===d&&!(u in t))return!1}else{var p=new r;if(o)var g=o(d,f,u,t,e,p);if(!(void 0===g?i(f,d,3,o,p):g))return!1}}return!0}},3472:function(t,e,n){var r=n(758),i=n(5223),o=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?o:"object"==typeof t?a(t)?i(t[0],t[1]):r(t):s(t)}},7190:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},383:function(t){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,i=Array(r);++n<r;)i[n]=e(t[n],n,t);return i}},758:function(t,e,n){var r=n(9548),i=n(597),o=n(6878);t.exports=function(t){var e=i(t);return 1==e.length&&e[0][2]?o(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),i=n(9201),o=n(5066),a=n(726),s=n(5385),l=n(6878),c=n(3110);t.exports=function(t,e){return a(t)&&s(e)?l(c(t),e):function(n){var a=i(n,t);return void 0===a&&a===e?o(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),i=n(4432),o=n(3472),a=n(383),s=n(9521),l=n(9110),c=n(9409),u=n(5346),d=n(163);t.exports=function(t,e,n){e=e.length?r(e,(function(t){return d(t)?function(e){return i(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(o));var p=a(t,(function(t,n,i){return{criteria:r(e,(function(e){return e(t)})),index:++f,value:t}}));return s(p,(function(t,e){return c(t,e,n)}))}},5436:function(t,e,n){var r=n(6371),i=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return i(t,n)}))}},6371:function(t,e,n){var r=n(4432),i=n(6539),o=n(9026);t.exports=function(t,e,n){for(var a=-1,s=e.length,l={};++a<s;){var c=e[a],u=r(t,c);n(u,c)&&i(l,o(c,t),u)}return l}},1600:function(t){t.exports=function(t){return function(e){return null==e?void 0:e[t]}}},3301:function(t,e,n){var r=n(4432);t.exports=function(t){return function(e){return r(e,t)}}},6317:function(t,e,n){var r=n(5346),i=n(4280),o=n(201);t.exports=function(t,e){return o(i(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),i=n(9026),o=n(9099),a=n(7709),s=n(3110);t.exports=function(t,e,n,l){if(!a(t))return t;for(var c=-1,u=(e=i(e,t)).length,d=u-1,f=t;null!=f&&++c<u;){var p=s(e[c]),g=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return t;if(c!=d){var h=f[p];void 0===(g=l?l(h,p,f):void 0)&&(g=a(h)?h:o(e[c+1])?[]:{})}r(f,p,g),f=f[p]}return t}},9521:function(t){t.exports=function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}},6316:function(t,e,n){var r=n(2596),i=n(8644),o=n(163),a=n(1995),s=r?r.prototype:void 0,l=s?s.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return i(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n}},9110:function(t){t.exports=function(t){return function(e){return t(e)}}},9914:function(t,e,n){var r=n(6123);t.exports=function(t,e){return!(null==t||!t.length)&&r(t,e,0)>-1}},9026:function(t,e,n){var r=n(163),i=n(726),o=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:i(t,e)?[t]:o(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,i=null===t,o=t==t,a=r(t),s=void 0!==e,l=null===e,c=e==e,u=r(e);if(!l&&!u&&!a&&t>e||a&&s&&c&&!l&&!u||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!u&&t<e||u&&n&&o&&!i&&!a||l&&n&&o||!s&&o||!c)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var i=-1,o=t.criteria,a=e.criteria,s=o.length,l=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=l?c:c*("desc"==n[i]?-1:1)}return t.index-e.index}},5525:function(t,e,n){var r=n(3743),i=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=i},8705:function(t,e,n){var r=n(3273),i=n(1634),o=n(9914);t.exports=function(t,e,n,a,s,l){var c=1&n,u=t.length,d=e.length;if(u!=d&&!(c&&d>u))return!1;var f=l.get(t),p=l.get(e);if(f&&p)return f==e&&p==t;var g=-1,h=!0,y=2&n?new r:void 0;for(l.set(t,e),l.set(e,t);++g<u;){var b=t[g],v=e[g];if(a)var x=c?a(v,b,g,e,t,l):a(b,v,g,t,e,l);if(void 0!==x){if(x)continue;h=!1;break}if(y){if(!i(e,(function(t,e){if(!o(y,e)&&(b===t||s(b,t,n,a,l)))return y.push(e)}))){h=!1;break}}else if(b!==v&&!s(b,v,n,a,l)){h=!1;break}}return l.delete(t),l.delete(e),h}},2813:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},6682:function(t,e,n){var r=n(8143),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,o,a,s){var l=1&n,c=r(t),u=c.length;if(u!=r(e).length&&!l)return!1;for(var d=u;d--;){var f=c[d];if(!(l?f in e:i.call(e,f)))return!1}var p=s.get(t),g=s.get(e);if(p&&g)return p==e&&g==t;var h=!0;s.set(t,e),s.set(e,t);for(var y=l;++d<u;){var b=t[f=c[d]],v=e[f];if(o)var x=l?o(v,b,f,e,t,s):o(b,v,f,t,e,s);if(!(void 0===x?b===v||a(b,v,n,o,s):x)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var m=t.constructor,k=e.constructor;m==k||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof k&&k instanceof k||(h=!1)}return s.delete(t),s.delete(e),h}},5557:function(t,e,n){var r=n(2645),i=n(4280),o=n(201);t.exports=function(t){return o(i(t,void 0,r),t+"")}},2117:function(t,e,n){var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},8143:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},597:function(t,e,n){var r=n(5385),i=n(7747);t.exports=function(t){for(var e=i(t),n=e.length;n--;){var o=e[n],a=t[o];e[n]=[o,a,r(a)]}return e}},3743:function(t){t.exports=function(t,e){return null==t?void 0:t[e]}},9817:function(t,e,n){var r=n(5125)(Object.getPrototypeOf,Object);t.exports=r},9667:function(t){var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},3096:function(t,e,n){var r=n(9026),i=n(5075),o=n(163),a=n(9099),s=n(8454),l=n(3110);t.exports=function(t,e,n){for(var c=-1,u=(e=r(e,t)).length,d=!1;++c<u;){var f=l(e[c]);if(!(d=null!=t&&n(t,f)))break;t=t[f]}return d||++c!=u?d:!!(u=null==t?0:t.length)&&s(u)&&a(f,u)&&(o(t)||i(t))}},3608:function(t,e,n){var r=n(2596),i=n(5075),o=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return o(t)||i(t)||!!(a&&t&&t[a])}},9099:function(t){var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8286:function(t){t.exports=function(){return!1}},726:function(t,e,n){var r=n(163),i=n(1995),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!i(t))||a.test(t)||!o.test(t)||null!=e&&t in Object(e)}},5782:function(t){t.exports=function(){return!1}},5385:function(t,e,n){var r=n(7709);t.exports=function(t){return t==t&&!r(t)}},1171:function(t){t.exports=function(){this.__data__=[],this.size=0}},7838:function(t,e,n){var r=n(3162),i=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():i.call(e,n,1),--this.size,0))}},4859:function(t,e,n){var r=n(3162);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},4073:function(t,e,n){var r=n(3162);t.exports=function(t){return r(this.__data__,t)>-1}},8541:function(t,e,n){var r=n(3162);t.exports=function(t,e){var n=this.__data__,i=r(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}},6878:function(t){t.exports=function(t,e){return function(n){return null!=n&&n[t]===e&&(void 0!==e||t in Object(n))}}},2453:function(t){t.exports=function(t){return t}},5125:function(t){t.exports=function(t,e){return function(n){return t(e(n))}}},4280:function(t,e,n){var r=n(6082),i=Math.max;t.exports=function(t,e,n){return e=i(void 0===e?t.length-1:e,0),function(){for(var o=arguments,a=-1,s=i(o.length-e,0),l=Array(s);++a<s;)l[a]=o[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=o[a];return c[e]=n(l),r(t,this,c)}}},2373:function(t,e,n){var r=n(2117),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();t.exports=o},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(i,(function(t,n,r,i){e.push(r?i.replace(o,"$1"):n||t)})),e}));t.exports=a},3110:function(t,e,n){var r=n(1995);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},1893:function(t,e,n){var r=n(6317),i=n(788),o=n(8286),a=n(8855),s=Object.prototype,l=s.hasOwnProperty,c=r((function(t,e){t=Object(t);var n=-1,r=e.length,c=r>2?e[2]:void 0;for(c&&o(e[0],e[1],c)&&(r=1);++n<r;)for(var u=e[n],d=a(u),f=-1,p=d.length;++f<p;){var g=d[f],h=t[g];(void 0===h||i(h,s[g])&&!l.call(t,g))&&(t[g]=u[g])}return t}));t.exports=c},788:function(t){t.exports=function(t,e){return t===e||t!=t&&e!=e}},2645:function(t,e,n){var r=n(6457);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},9201:function(t,e,n){var r=n(4432);t.exports=function(t,e,n){var i=null==t?void 0:r(t,e);return void 0===i?n:i}},5066:function(t,e,n){var r=n(6776),i=n(3096);t.exports=function(t,e){return null!=t&&i(t,e,r)}},5346:function(t){t.exports=function(t){return t}},5075:function(t){t.exports=function(){return!1}},163:function(t){var e=Array.isArray;t.exports=e},981:function(t,e,n){var r=n(9642),i=n(8454);t.exports=function(t){return null!=t&&i(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),i=n(9667),o=n(5075),a=n(163),s=n(981),l=n(4801),c=n(5782),u=n(4289),d=Object.prototype.hasOwnProperty;t.exports=function(t){if(null==t)return!0;if(s(t)&&(a(t)||"string"==typeof t||"function"==typeof t.splice||l(t)||u(t)||o(t)))return!t.length;var e=i(t);if("[object Map]"==e||"[object Set]"==e)return!t.size;if(c(t))return!r(t).length;for(var n in t)if(d.call(t,n))return!1;return!0}},9642:function(t,e,n){var r=n(563),i=n(7709);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},8454:function(t){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},7709:function(t){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},3474:function(t){t.exports=function(t){return null!=t&&"object"==typeof t}},3849:function(t,e,n){var r=n(563),i=n(9817),o=n(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=r(t))return!1;var e=i(t);if(null===e)return!0;var n=c.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==u}},1995:function(t){t.exports=function(){return!1}},4289:function(t){t.exports=function(){return!1}},7747:function(t,e,n){var r=n(5125)(Object.keys,Object);t.exports=r},8855:function(t){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},1594:function(t,e,n){var r=n(503);function i(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=e?e.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=t.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(i.Cache||r),n}i.Cache=r,t.exports=i},4143:function(t,e,n){var r=n(8245),i=n(163);t.exports=function(t,e,n,o){return null==t?[]:(i(e)||(e=null==e?[]:[e]),i(n=o?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),i=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=i},8532:function(t,e,n){var r=n(1600),i=n(3301),o=n(726),a=n(3110);t.exports=function(t){return o(t)?r(a(t)):i(t)}},7010:function(t,e,n){var r=n(6316);t.exports=function(t){return null==t?"":r(t)}},660:function(t,e,n){var r=n(7010),i=0;t.exports=function(t){var e=++i;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var i=n[t];if(void 0!==i)return i.exports;var o=n[t]={exports:{}};return e[t](o,o.exports,r),o.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i={};return function(){"use strict";r.r(i),r.d(i,{Flyout:function(){return pe},VictoryTooltip:function(){return he}});var t=r(4143),e=r.n(t),n=r(3849),o=r.n(n),a=r(660),s=r.n(a),l=r(1893),c=r.n(l),u=r(9787),d=r.n(u),f=r(4155),p=r.n(f);function g(t,e){void 0===e&&(e=[]);const n={};for(const r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function h(t){const e=t=>void 0!==t,{_x:n,_x1:r,_x0:i,_voronoiX:o,_y:a,_y1:s,_y0:l,_voronoiY:u}=t,d=e(r)?r:n,f=e(s)?s:a,p={x:e(o)?o:d,x0:e(i)?i:n,y:e(u)?u:f,y0:e(l)?l:a};return c()({},p,t)}function y(t,e){void 0===e&&(e="padding");const n=t[e],r="number"==typeof n?n:0,i="object"==typeof n?n:{};return{top:i.top||r,bottom:i.bottom||r,left:i.left||r,right:i.right||r}}function b(t,e){return x(t)?t(e):t}function v(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>x(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=b(t[r],e),n)),{}):t}function x(t){return"function"==typeof t}r(9082),r(8532);const m=d().createContext(void 0);m.displayName="PortalContext";const k={groupComponent:d().createElement("g",null)},O=t=>{const e={...k,...t},n=s()(),r=d().useContext(m),i=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:o}=e,a=i&&i.props||{},l=a.groupComponent?{groupComponent:o,standalone:!1}:{},u=c()(l,a,g(e,["children","groupComponent"]),{key:a.key??n}),f=i&&d().cloneElement(i,u);return d().useEffect((()=>{r?.addChild(n,f)}),[e.children]),d().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:f};function j(){return j=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},j.apply(this,arguments)}O.role="portal";const S=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={vectorEffect:"non-scaling-stroke",id:b(r,t)?.toString(),tabIndex:b(i,t),...a};return n?d().createElement("rect",j({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("rect",j({},s,{ref:e}))})),A=t=>{const{children:e,desc:n,id:r,origin:i,tabIndex:o,title:a,...s}=t,l={id:b(r,t)?.toString(),tabIndex:b(o,t),...s};return d().createElement("text",l,a&&d().createElement("title",null,a),n&&d().createElement("desc",null,n),e)},w=t=>{const{desc:e,id:n,tabIndex:r,origin:i,...o}=t,a={id:b(n,t)?.toString(),tabIndex:b(r,t),...o};return d().createElement("tspan",a)};function F(t,e){const{x:n}=h(e);return("number"==typeof(r=t.scale.x(n))?r/(Math.PI/180):r)%360;var r}const E=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];if(n.length>0)return n.reduce(((t,e)=>[t,E(e)].join(" ")),E(t)).trim();if(null==t||"string"==typeof t)return t;const i=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];i.push(`${e}(${n})`)}return i.join(" ").trim()};var C=r(1594),$=r.n(C);const L={"American Typewriter":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.4203125,.3296875,.6,.6375,.8015625,.8203125,.1875,.45625,.45625,.6375,.5,.2734375,.309375,.2734375,.4390625,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.6375,.2734375,.2734375,.5,.5,.5,.6,.6921875,.7640625,.6921875,.6375,.728125,.6734375,.6203125,.7109375,.784375,.3828125,.6421875,.7859375,.6375,.9484375,.7640625,.65625,.6375,.65625,.7296875,.6203125,.6375,.7109375,.740625,.940625,.784375,.7578125,.6203125,.4375,.5,.4375,.5,.5,.4921875,.5734375,.5890625,.5109375,.6,.528125,.43125,.5578125,.6375,.3109375,.40625,.6234375,.309375,.928125,.6375,.546875,.6,.58125,.4921875,.4921875,.4,.6203125,.625,.825,.6375,.640625,.528125,.5,.5,.5,.6671875],avg:.5793421052631578},Arial:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.278125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.584375,.584375,.584375,.55625,1.015625,.6703125,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.278125,.278125,.4703125,.584375,.334375,.55625,.55625,.5,.55625,.55625,.3125,.55625,.55625,.2234375,.2703125,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.346875,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.334375,.2609375,.334375,.584375],avg:.528733552631579},"Arial Black":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.33125,.334375,.5,.6609375,.6671875,1,.890625,.278125,.390625,.390625,.55625,.6609375,.334375,.334375,.334375,.28125,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.334375,.334375,.6609375,.6609375,.6609375,.6109375,.7453125,.78125,.778125,.778125,.778125,.7234375,.6671875,.834375,.834375,.390625,.6671875,.834375,.6671875,.9453125,.834375,.834375,.7234375,.834375,.78125,.7234375,.7234375,.834375,.7796875,1.003125,.78125,.78125,.7234375,.390625,.28125,.390625,.6609375,.5125,.334375,.6671875,.6671875,.6671875,.6671875,.6671875,.41875,.6671875,.6671875,.334375,.384375,.6671875,.334375,1,.6671875,.6671875,.6671875,.6671875,.4703125,.6109375,.4453125,.6671875,.6140625,.946875,.6671875,.615625,.55625,.390625,.278125,.390625,.6609375],avg:.6213157894736842},Baskerville:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.25,.40625,.6671875,.490625,.875,.7015625,.178125,.2453125,.246875,.4171875,.6671875,.25,.3125,.25,.521875,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.6671875,.6671875,.6671875,.396875,.9171875,.684375,.615625,.71875,.7609375,.625,.553125,.771875,.803125,.3546875,.515625,.78125,.6046875,.928125,.75,.8234375,.5625,.96875,.7296875,.5421875,.6984375,.771875,.7296875,.9484375,.771875,.678125,.6359375,.3640625,.521875,.3640625,.46875,.5125,.334375,.46875,.521875,.428125,.521875,.4375,.3890625,.4765625,.53125,.25,.359375,.4640625,.240625,.803125,.53125,.5,.521875,.521875,.365625,.334375,.2921875,.521875,.4640625,.678125,.4796875,.465625,.428125,.4796875,.5109375,.4796875,.6671875],avg:.5323519736842108},Courier:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},"Courier New":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6015296052631579},cursive:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.1921875,.24375,.40625,.5671875,.3984375,.721875,.909375,.2328125,.434375,.365625,.4734375,.5578125,.19375,.3484375,.19375,.7734375,.503125,.4171875,.5453125,.45,.6046875,.4703125,.5984375,.55625,.503125,.5546875,.20625,.2,.5625,.5546875,.546875,.403125,.70625,.734375,.7078125,.64375,.85,.753125,.75,.6484375,1.0765625,.44375,.5359375,.8359375,.653125,1.0109375,1.1515625,.6796875,.6984375,1.0625,.8234375,.5125,.9234375,.8546875,.70625,.9109375,.7421875,.715625,.6015625,.4640625,.3359375,.4109375,.5421875,.5421875,.4328125,.5125,.5,.3859375,.7375,.359375,.75625,.540625,.5328125,.3203125,.5296875,.5015625,.484375,.7890625,.5640625,.4203125,.703125,.471875,.4734375,.35,.4125,.5640625,.471875,.6484375,.5296875,.575,.4140625,.415625,.20625,.3796875,.5421875],avg:.5604440789473684},fantasy:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.2625,.3265625,.6109375,.534375,.7625,.7828125,.2,.4359375,.4359375,.3765625,.5109375,.2796875,.4609375,.2796875,.5296875,.6640625,.253125,.521875,.4765625,.6640625,.490625,.528125,.5546875,.496875,.5421875,.2796875,.2796875,.5625,.4609375,.5625,.4828125,.609375,.740625,.7234375,.740625,.8265625,.7234375,.6171875,.7359375,.765625,.240625,.5453125,.715625,.6078125,.8640625,.653125,.9125,.6484375,.946875,.6921875,.653125,.6953125,.8015625,.58125,.784375,.671875,.6265625,.690625,.4359375,.5296875,.4359375,.53125,.5,.2875,.5375,.603125,.4984375,.60625,.53125,.434375,.6421875,.56875,.209375,.4671875,.5484375,.2203125,.709375,.55,.5984375,.6140625,.5765625,.40625,.4734375,.3734375,.559375,.4421875,.6421875,.4890625,.578125,.4484375,.2546875,.2203125,.2546875,.55],avg:.536496710526316},Geneva:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3328125,.3046875,.5,.6671875,.6671875,.90625,.728125,.3046875,.446875,.446875,.5078125,.6671875,.3046875,.3796875,.3046875,.5390625,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.6671875,.3046875,.3046875,.6671875,.6671875,.6671875,.56875,.871875,.728125,.6375,.6515625,.7015625,.5765625,.5546875,.675,.690625,.2421875,.4921875,.6640625,.584375,.7890625,.709375,.7359375,.584375,.78125,.60625,.60625,.640625,.6671875,.728125,.946875,.6109375,.6109375,.5765625,.446875,.5390625,.446875,.6671875,.6671875,.5921875,.5546875,.6109375,.546875,.603125,.5765625,.390625,.6109375,.584375,.2359375,.334375,.5390625,.2359375,.8953125,.584375,.60625,.603125,.603125,.3875,.509375,.44375,.584375,.565625,.78125,.53125,.571875,.5546875,.4515625,.246875,.4515625,.6671875],avg:.5762664473684211},Georgia:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2421875,.33125,.4125,.64375,.6109375,.81875,.7109375,.215625,.375,.375,.4734375,.64375,.2703125,.375,.2703125,.46875,.6140625,.4296875,.559375,.553125,.565625,.5296875,.5671875,.503125,.596875,.5671875,.3125,.3125,.64375,.64375,.64375,.4796875,.9296875,.715625,.6546875,.6421875,.75,.6546875,.6,.7265625,.815625,.390625,.51875,.7203125,.6046875,.928125,.7671875,.7453125,.6109375,.7453125,.7234375,.5625,.61875,.7578125,.70625,.99375,.7125,.6640625,.6015625,.375,.46875,.375,.64375,.65,.5,.5046875,.56875,.4546875,.575,.484375,.39375,.509375,.5828125,.29375,.3671875,.546875,.2875,.88125,.5921875,.5390625,.571875,.5640625,.4109375,.4328125,.3453125,.5765625,.5203125,.75625,.50625,.5171875,.4453125,.43125,.375,.43125,.64375],avg:.5551809210526316},"Gill Sans":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2765625,.271875,.3546875,.584375,.5421875,.6765625,.625,.1890625,.3234375,.3234375,.4171875,.584375,.2203125,.3234375,.2203125,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.2203125,.2296875,.584375,.584375,.584375,.334375,1.0109375,.6671875,.5640625,.709375,.75,.5,.4703125,.740625,.7296875,.25,.3125,.65625,.490625,.78125,.78125,.8234375,.5109375,.8234375,.6046875,.459375,.6046875,.709375,.6046875,1.0421875,.709375,.6046875,.646875,.334375,.28125,.334375,.4703125,.5828125,.334375,.428125,.5,.4390625,.5109375,.4796875,.296875,.428125,.5,.2203125,.2265625,.5,.2203125,.771875,.5,.553125,.5,.5,.3984375,.3859375,.334375,.5,.4390625,.7203125,.5,.4390625,.4171875,.334375,.2609375,.334375,.584375],avg:.4933717105263159},Helvetica:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2765625,.3546875,.5546875,.5546875,.8890625,.665625,.190625,.3328125,.3328125,.3890625,.5828125,.2765625,.3328125,.2765625,.3015625,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.5546875,.2765625,.2765625,.584375,.5828125,.584375,.5546875,1.0140625,.665625,.665625,.721875,.721875,.665625,.609375,.7765625,.721875,.2765625,.5,.665625,.5546875,.8328125,.721875,.7765625,.665625,.7765625,.721875,.665625,.609375,.721875,.665625,.94375,.665625,.665625,.609375,.2765625,.3546875,.2765625,.4765625,.5546875,.3328125,.5546875,.5546875,.5,.5546875,.5546875,.2765625,.5546875,.5546875,.221875,.240625,.5,.221875,.8328125,.5546875,.5546875,.5546875,.5546875,.3328125,.5,.2765625,.5546875,.5,.721875,.5,.5,.5,.3546875,.259375,.353125,.5890625],avg:.5279276315789471},"Helvetica Neue":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.259375,.4265625,.55625,.55625,1,.6453125,.278125,.2703125,.26875,.353125,.6,.278125,.3890625,.278125,.36875,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.6,.6,.6,.55625,.8,.6625,.6859375,.7234375,.7046875,.6125,.575,.759375,.7234375,.259375,.5203125,.6703125,.55625,.871875,.7234375,.7609375,.6484375,.7609375,.6859375,.6484375,.575,.7234375,.6140625,.9265625,.6125,.6484375,.6125,.259375,.36875,.259375,.6,.5,.25625,.5375,.59375,.5375,.59375,.5375,.2984375,.575,.55625,.2234375,.2375,.5203125,.2234375,.853125,.55625,.575,.59375,.59375,.334375,.5,.315625,.55625,.5,.759375,.51875,.5,.48125,.334375,.2234375,.334375,.6],avg:.5279440789473684},"Hoefler Text":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2359375,.2234375,.3921875,.7125,.49375,.8859375,.771875,.2125,.3078125,.309375,.375,.4234375,.234375,.3125,.234375,.3,.5828125,.365625,.434375,.3921875,.5234375,.3984375,.5125,.4328125,.46875,.5125,.234375,.234375,.515625,.4234375,.515625,.340625,.7609375,.7359375,.6359375,.721875,.8125,.6375,.5875,.8078125,.853125,.4296875,.503125,.78125,.609375,.9609375,.8515625,.8140625,.6125,.8140625,.71875,.49375,.7125,.76875,.771875,1.125,.7765625,.7734375,.65625,.321875,.3078125,.321875,.3546875,.5,.3375,.446875,.5359375,.45,.5296875,.4546875,.425,.4921875,.54375,.2671875,.240625,.5390625,.25,.815625,.5375,.5234375,.5390625,.5421875,.365625,.36875,.35625,.5171875,.5015625,.75,.5,.509375,.44375,.2421875,.14375,.2421875,.35],avg:.5116447368421051},Inter:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2796875,.2890625,.4671875,.634375,.6421875,.9828125,.6453125,.3,.365625,.365625,.5015625,.6625,.2890625,.4609375,.2890625,.3609375,.63125,.4078125,.6109375,.61875,.646875,.59375,.6203125,.5671875,.61875,.6203125,.2890625,.303125,.6625,.6625,.6625,.5125,.9671875,.690625,.6546875,.73125,.721875,.6015625,.590625,.746875,.74375,.26875,.571875,.671875,.565625,.9046875,.7546875,.765625,.6390625,.765625,.64375,.6421875,.646875,.7453125,.690625,.9859375,.6828125,.6796875,.6296875,.365625,.3609375,.365625,.471875,.45625,.3234375,.5625,.6125,.571875,.6125,.584375,.3703125,.6140625,.5921875,.2421875,.2548828125,.55,.2421875,.8765625,.5921875,.6,.6125,.6125,.3765625,.528125,.328125,.5921875,.5625,.81875,.546875,.5625,.553125,.4265625,.3328125,.4265625,.6625],avg:.5624362664473683},Montserrat:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2625,.2609375,.3734375,.696875,.615625,.8296875,.6703125,.203125,.3296875,.3296875,.3875,.575,.2125,.3828125,.2125,.3953125,.6625,.3625,.56875,.5640625,.6625,.5671875,.609375,.5890625,.6390625,.609375,.2125,.2125,.575,.575,.575,.5671875,1.034375,.7171875,.7546875,.7203125,.8265625,.6703125,.634375,.7734375,.8140625,.303125,.5078125,.7125,.5890625,.95625,.8140625,.8390625,.71875,.8390625,.7234375,.615625,.575,.7921875,.6984375,1.1125,.65625,.6359375,.6515625,.31875,.396875,.31875,.5765625,.5,.6,.590625,.678125,.5640625,.678125,.6046875,.375,.6875,.678125,.2703125,.365625,.6015625,.2703125,1.0625,.678125,.628125,.678125,.678125,.4015625,.4890625,.40625,.6734375,.5421875,.8796875,.534375,.5671875,.5125,.334375,.2953125,.334375,.575],avg:.571792763157895},monospace:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.5984375,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6078125,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.61875,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.615625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6140625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625,.6015625],avg:.6020559210526316},Overpass:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2296875,.2765625,.4203125,.68125,.584375,.8515625,.7015625,.2203125,.3453125,.3453125,.53125,.63125,.2234375,.3953125,.2234375,.509375,.65,.4046875,.6171875,.60625,.6484375,.60625,.6015625,.5375,.615625,.6015625,.2234375,.2234375,.63125,.63125,.63125,.5015625,.8203125,.696875,.6671875,.65,.6859375,.6015625,.559375,.690625,.7078125,.2953125,.565625,.678125,.58125,.8046875,.7109375,.740625,.6421875,.740625,.6765625,.6046875,.590625,.696875,.6640625,.853125,.65,.6671875,.6625,.3734375,.509375,.3734375,.63125,.5125,.4,.5328125,.5625,.51875,.5625,.546875,.3359375,.5625,.565625,.25625,.3203125,.55,.265625,.85,.565625,.5671875,.5625,.5625,.4046875,.4765625,.3796875,.565625,.521875,.7265625,.53125,.5390625,.5125,.3671875,.275,.3671875,.63125],avg:.5430756578947369},Palatino:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.25,.278125,.371875,.60625,.5,.840625,.778125,.209375,.334375,.334375,.390625,.60625,.2578125,.334375,.25,.60625,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.25,.25,.60625,.60625,.60625,.4453125,.7484375,.778125,.6109375,.709375,.775,.6109375,.55625,.7640625,.8328125,.3375,.346875,.7265625,.6109375,.946875,.83125,.7875,.6046875,.7875,.66875,.525,.6140625,.778125,.7234375,1,.6671875,.6671875,.6671875,.334375,.60625,.334375,.60625,.5,.334375,.5,.565625,.4453125,.6109375,.4796875,.340625,.55625,.5828125,.2921875,.2671875,.5640625,.2921875,.8828125,.5828125,.546875,.6015625,.5609375,.3953125,.425,.3265625,.603125,.565625,.834375,.5171875,.55625,.5,.334375,.60625,.334375,.60625],avg:.5408552631578947},RedHatText:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2328125,.2203125,.35625,.6890625,.55,.7390625,.6703125,.2140625,.4015625,.4015625,.4546875,.53125,.2203125,.45625,.2203125,.515625,.6609375,.3078125,.5484375,.5875,.61875,.5703125,.6203125,.559375,.6140625,.6203125,.2203125,.2234375,.465625,.534375,.465625,.5125,.7671875,.6609375,.6703125,.7265625,.728125,.6203125,.6109375,.8,.73125,.253125,.6,.6125,.6078125,.8625,.7390625,.8109375,.6546875,.809375,.6484375,.6234375,.6171875,.7125,.6609375,.8984375,.6546875,.646875,.60625,.3625,.5203125,.3625,.540625,.4609375,.5234375,.5265625,.584375,.509375,.5828125,.5578125,.3703125,.5828125,.553125,.2234375,.24375,.4890625,.2234375,.8453125,.553125,.58125,.584375,.5828125,.353125,.453125,.378125,.553125,.5015625,.6984375,.4875,.4984375,.459375,.3953125,.2921875,.3953125,.58125],avg:.5341940789473685},"sans-serif":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.278125,.278125,.35625,.55625,.55625,.890625,.6671875,.1921875,.334375,.334375,.390625,.584375,.278125,.334375,.278125,.303125,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.55625,.278125,.278125,.5859375,.584375,.5859375,.55625,1.015625,.6671875,.6671875,.7234375,.7234375,.6671875,.6109375,.778125,.7234375,.278125,.5,.6671875,.55625,.834375,.7234375,.778125,.6671875,.778125,.7234375,.6671875,.6109375,.7234375,.6671875,.9453125,.6671875,.6671875,.6109375,.278125,.35625,.278125,.478125,.55625,.334375,.55625,.55625,.5,.55625,.55625,.278125,.55625,.55625,.2234375,.2421875,.5,.2234375,.834375,.55625,.55625,.55625,.55625,.334375,.5,.278125,.55625,.5,.7234375,.5,.5,.5,.35625,.2609375,.3546875,.590625],avg:.5293256578947368},Seravek:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.215625,.296875,.4171875,.6734375,.4953125,.9125,.740625,.2421875,.3375,.3375,.409375,.60625,.2609375,.35625,.25625,.41875,.5921875,.3515625,.475,.4875,.5375,.509375,.5484375,.4546875,.5421875,.5484375,.25625,.2546875,.5875,.6171875,.5875,.4578125,.8140625,.6765625,.5703125,.6109375,.684375,.5109375,.4953125,.678125,.6859375,.2625,.2625,.5859375,.4734375,.846875,.709375,.740625,.509375,.740625,.584375,.5015625,.528125,.675,.5953125,.9453125,.596875,.540625,.540625,.359375,.4203125,.359375,.5109375,.421875,.4046875,.5015625,.5421875,.446875,.5453125,.484375,.38125,.5140625,.5546875,.240625,.2640625,.490625,.2765625,.8625,.5546875,.546875,.5453125,.5453125,.3625,.41875,.3890625,.5453125,.4703125,.7546875,.4921875,.4609375,.453125,.4015625,.2640625,.4015625,.58125],avg:.5044078947368421},serif:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.278125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.7234375,.6109375,.890625,.7234375,.7234375,.55625,.7234375,.6671875,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.340625,.334375,.4703125,.5,.3453125,.4453125,.5,.4453125,.5,.4453125,.3828125,.5,.5,.278125,.3359375,.5,.278125,.778125,.5,.5,.5,.5,.3375,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5126315789473684},Tahoma:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3109375,.3328125,.4015625,.728125,.546875,.9765625,.70625,.2109375,.3828125,.3828125,.546875,.728125,.303125,.3640625,.303125,.3953125,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.546875,.3546875,.3546875,.728125,.728125,.728125,.475,.909375,.6109375,.590625,.6015625,.6796875,.5625,.521875,.66875,.6765625,.3734375,.4171875,.6046875,.4984375,.771875,.66875,.7078125,.5515625,.7078125,.6375,.5578125,.5875,.65625,.60625,.903125,.58125,.5890625,.559375,.3828125,.39375,.3828125,.728125,.5625,.546875,.525,.553125,.4625,.553125,.5265625,.3546875,.553125,.5578125,.2296875,.328125,.51875,.2296875,.840625,.5578125,.54375,.553125,.553125,.3609375,.446875,.3359375,.5578125,.4984375,.7421875,.4953125,.4984375,.4453125,.48125,.3828125,.48125,.728125],avg:.5384374999999998},"Times New Roman":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2484375,.334375,.409375,.5,.5,.834375,.778125,.18125,.334375,.334375,.5,.5640625,.25,.334375,.25,.28125,.5,.5,.5,.5,.5,.5,.5,.5,.5,.5,.278125,.278125,.5640625,.5640625,.5640625,.4453125,.921875,.7234375,.6671875,.6671875,.7234375,.6109375,.55625,.7234375,.7234375,.334375,.390625,.73125,.6109375,.890625,.7375,.7234375,.55625,.7234375,.6765625,.55625,.6109375,.7234375,.7234375,.9453125,.7234375,.7234375,.6109375,.334375,.28125,.334375,.4703125,.51875,.334375,.4453125,.503125,.4453125,.503125,.4453125,.4359375,.5,.5,.278125,.35625,.50625,.278125,.778125,.5,.5,.5046875,.5,.340625,.390625,.2796875,.5,.5,.7234375,.5,.5,.4453125,.48125,.2015625,.48125,.5421875],avg:.5134375},"Trebuchet MS":{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.3015625,.3671875,.325,.53125,.525,.6015625,.70625,.1609375,.3671875,.3671875,.3671875,.525,.3671875,.3671875,.3671875,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.525,.3671875,.3671875,.525,.525,.525,.3671875,.771875,.590625,.5671875,.5984375,.6140625,.5359375,.525,.6765625,.6546875,.2796875,.4765625,.5765625,.5078125,.7109375,.6390625,.675,.5578125,.7421875,.5828125,.48125,.58125,.6484375,.5875,.853125,.5578125,.5703125,.5515625,.3671875,.3578125,.3671875,.525,.53125,.525,.5265625,.5578125,.4953125,.5578125,.546875,.375,.503125,.546875,.2859375,.3671875,.5046875,.2953125,.83125,.546875,.5375,.5578125,.5578125,.3890625,.40625,.396875,.546875,.490625,.7453125,.5015625,.49375,.475,.3671875,.525,.3671875,.525],avg:.5085197368421052},Verdana:{widths:[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.35,.39375,.459375,.81875,.6359375,1.0765625,.759375,.26875,.4546875,.4546875,.6359375,.81875,.3640625,.4546875,.3640625,.4703125,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.6359375,.4546875,.4546875,.81875,.81875,.81875,.546875,1,.684375,.6859375,.6984375,.771875,.6328125,.575,.7765625,.7515625,.421875,.4546875,.69375,.5578125,.84375,.7484375,.7875,.603125,.7875,.7,.684375,.6171875,.7328125,.684375,.9890625,.6859375,.615625,.6859375,.4546875,.46875,.4546875,.81875,.6421875,.6359375,.6015625,.6234375,.521875,.6234375,.596875,.384375,.6234375,.6328125,.275,.3765625,.5921875,.275,.9734375,.6328125,.6078125,.6234375,.6234375,.43125,.521875,.3953125,.6328125,.5921875,.81875,.5921875,.5921875,.5265625,.6359375,.4546875,.6359375,.81875],avg:.6171875000000003}},P={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},W={em:1,ex:.5},z={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},D=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),_=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},B=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let i;return i=n?P.hasOwnProperty(n)?r*P[n]:W.hasOwnProperty(n)?(e?r*e:r*z.fontSize)*W[n]:r:r||0,i},M=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=c()({},n,z);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:B(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:B(String(r.fontSize))})},H=(t,e)=>{const n=Array.isArray(e)?e[0]&&e[0].angle:e&&e.angle,r=((t,e)=>void 0===t||""===t||null===t?0:D(t).reduce(((t,n,r)=>{const i=M(e,r),o=n.toString().match(/[(A-Z)(0-9)]/)?1.15*i.fontSize:i.fontSize;return t+i.lineHeight*o}),0))(t,e),i=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=D(t).map(((t,n)=>{const r=t.toString().length,{fontSize:i,letterSpacing:o,fontFamily:a}=M(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>L[t]))||"Helvetica";return L[e]})(a);return t.toString().split("").map((t=>t.charCodeAt(0)<s.widths.length?s.widths[t.charCodeAt(0)]:s.avg)).reduce(((t,e)=>e+t),0)*i+o*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?_(i,r,n):i,height:1.05*(n?_(r,i,n):r)}},T=$()((()=>{const t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("xlink","http://www.w3.org/1999/xlink"),t.setAttribute("width","300"),t.setAttribute("height","300"),t.setAttribute("viewBox","0 0 300 300"),t.setAttribute("aria-hidden","true");const e=document.createElementNS("http://www.w3.org/2000/svg","text");return t.appendChild(e),t.style.position="fixed",t.style.top="-9999px",t.style.left="-9999px",document.body.appendChild(t),e})),R=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",I=$()(((t,e)=>{let n=T();n.isConnected||(T.cache.clear?.(),n=T());const r=D(t);let i=0;for(const[t,o]of r.entries()){const r=document.createElementNS("http://www.w3.org/2000/svg","tspan"),a=M(e,t);r.style.fontFamily=a.fontFamily,r.style.fontSize=`${a.fontSize}px`,r.style.lineHeight=a.lineHeight,r.style.fontFamily=a.fontFamily,r.style.letterSpacing=a.letterSpacing,r.textContent=o,r.setAttribute("x","0"),r.setAttribute("y",`${i}`),n.appendChild(r),i+=a.lineHeight*r.getBoundingClientRect().height}const{width:o}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?_(o,i,e?.angle):o,height:e?.angle?_(i,o,e?.angle):i}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(R).join():R(e)}`)),N=(t,e)=>function(t,e,n){return void 0===n&&(n=!1),"undefined"==typeof window||void 0===window.document||void 0===window.document.createElement||n?H(t,e):I(t,e)}(t,e),q={startsWith:["data-","aria-"],exactMatch:[]};function V(t,e){if(null==t)throw new Error(e)}const G=t=>{const e={...t};return Object.fromEntries(Object.entries(e).filter((t=>{let[e]=t;return(t=>!(!(t=>{let e=!1;return q.startsWith.forEach((n=>{new RegExp(`\\b(${n})(\\w|-)+`,"g").test(t)&&(e=!0)})),e})(t)&&!(t=>q.exactMatch.includes(t))(t)))(e)})).map((e=>{let[n,r]=e;return[n,b(r,t)]})))},Z={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Ser­avek', 'Trebuchet MS', sans-serif",stroke:"transparent"},X=(t,e)=>{if(!t.datum)return 0;const n=function(t,e){const{scale:n,polar:r,horizontal:i}=t,o=h(e),a=t.origin||{x:0,y:0},s=i?n.y(o.y):n.x(o.x),l=i?n.y(o.y0):n.x(o.x0),c=i?n.x(o.x):n.y(o.y),u=i?n.x(o.x0):n.y(o.y0);return{x:r?c*Math.cos(s)+a.x:s,x0:r?u*Math.cos(l)+a.x:l,y:r?-c*Math.sin(s)+a.y:c,y0:r?-u*Math.sin(l)+a.x:u}}(t,t.datum);return n[e]},Y=t=>{const e=t&&t.fontSize;if("number"==typeof e)return e;if(null==e)return Z.fontSize;if("string"==typeof e){const t=Number(e.replace("px",""));return isNaN(t)?Z.fontSize:t}return Z.fontSize},J=function(t,e){return void 0===e&&(e=0),Array.isArray(t)?t[e]||t[0]:t},K=t=>{const{backgroundStyle:e,backgroundPadding:n}=t;return Array.isArray(e)&&!p()(e)||Array.isArray(n)&&!p()(n)},Q=(t,e)=>{const{direction:n,textAnchor:r,x:i,dx:o}=t;if("rtl"===n)return i-e;switch(r){case"middle":return Math.round(i-e/2);case"end":return Math.round(i-e);default:return i+(o||0)}},U=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:i=0}=t,o=r+i;switch(n){case"start":return Math.floor(o);case"end":return Math.ceil(o-e);default:return Math.floor(o-e/2)}},tt=(t,e)=>K(t)?((t,e)=>{const{dy:n,dx:r,transform:i,backgroundStyle:o,backgroundPadding:a,backgroundComponent:s,inline:l,y:u}=t,f=e.map(((t,i)=>{const o=J(e,i-1),s=t.textSize,c=t.fontSize*t.lineHeight,d=Math.ceil(c),f=J(a,i),p=J(a,i-1),g=l&&r||0,h=i&&!l?o.fontSize*o.lineHeight+p.top+p.bottom:n-.5*c-(t.fontSize-t.capHeight);return{textHeight:d,labelSize:s,heightWithPadding:d+f.top+f.bottom,widthWithPadding:s.width+f.left+f.right+g,y:u,fontSize:t.fontSize,dy:h}}));return f.map(((e,n)=>{const r=Q(t,e.labelSize.width),p=f.slice(0,n+1).reduce(((t,e)=>t+e.dy),u),g=J(a,n),h=e.heightWithPadding,y=l?((t,e,n)=>{const{textAnchor:r}=t,i=e.map((t=>t.widthWithPadding)),o=-i.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return i.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return i.reduce(((t,e,r)=>r>n?t-e:t),0);default:return i.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),o)}})(t,f,n)+r-g.left:r,b=l?U(t,h)-g.top:p,v={key:`tspan-background-${n}`,height:h,style:J(o,n),width:e.widthWithPadding,transform:i,x:y-g.left,y:b};return d().cloneElement(s,c()({},s.props,v))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:i,backgroundStyle:o,inline:a,backgroundPadding:s,capHeight:l}=t,u=e.map((t=>t.textSize)),f=a?Math.max(...u.map((t=>t.height))):u.reduce(((t,n,r)=>{const i=r?0:l/2;return t+n.height*(e[r].lineHeight-i)}),0),p=a?u.reduce(((t,e,r)=>{const i=r?n:0;return t+e.width+i}),0):Math.max(...u.map((t=>t.width))),g=Q(t,p),h=U(t,f),y={key:"background",height:f+s.top+s.bottom,style:o,transform:r,width:p+s.left+s.right,x:a?g-s.left:g+n-s.left,y:h};return d().cloneElement(i,c()({},i.props,y))})(t,e),et=(t,e,n)=>{const{inline:r}=e,i=J(t,n);return n&&!r?((t,e,n)=>{const r=J(t,e),i=J(t,e-1),o=i.fontSize*i.lineHeight,a=r.fontSize*r.lineHeight,s=i.fontSize-i.capHeight,l=r.fontSize-r.capHeight,c=o-i.fontSize/2+r.fontSize/2-o/2+a/2-l/2+s/2;return K(n)?c+r.backgroundPadding.top+i.backgroundPadding.bottom:c})(t,n,e):r?0===n?i.backgroundPadding.top:void 0:i.backgroundPadding.top},nt=t=>{const e=b(t.ariaLabel,t),n=J(t.style),r=(t=>{const e=b(t.lineHeight,t);return Array.isArray(e)&&p()(e)?[1]:e})(t),i=t.direction?b(t.direction,t):"inherit",o=t.textAnchor?b(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?b(t.verticalAnchor,t):n.verticalAnchor||"middle",s=t.dx?b(t.dx,t):0,l=((t,e,n)=>{const r=t.dy?b(t.dy,t):0,i=t.inline?1:t.text.length,o=b(t.capHeight,t),a=e?b(e,t):"middle",s=[...Array(i).keys()].map((e=>J(t.style,e).fontSize)),l=[...Array(i).keys()].map((t=>J(n,t)));if("start"===a)return r+(o/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(o/2-l[0]/2)*s[0]:r+o/2*s[0];if(1===i)return"end"===a?r+(o/2+(.5-i)*l[0])*s[0]:r+(o/2+(.5-i/2)*l[0])*s[0];const c=[...Array(i).keys()].reduce(((t,e)=>t+(o/2+(.5-i)*l[e])*s[e]/i),0);return"end"===a?r+c:r+c/2+o/2*l[i-1]*s[i-1]})(t,a,r),c=void 0!==t.x?t.x:X(t,"x"),u=void 0!==t.y?t.y:X(t,"y"),d=((t,e,n)=>{const{polar:r}=t,i=J(t.style),o=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const i=F(t,r);let o=0;return 0===i||180===i?o=90:i>0&&i<180?o=90-i:i>180&&i<360&&(o=270-i),o+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===i.angle?b(t.angle,t):i.angle,s=void 0===a?o:a,l=t.transform||i.transform,c=l&&b(l,t);return c||s?E(c,s&&{rotate:[s,e,n]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:i,textAnchor:o,verticalAnchor:a,dx:s,dy:l,originalDy:b(t.dy,t),transform:d,x:c,y:u})},rt={backgroundComponent:d().createElement(S,null),groupComponent:d().createElement("g",null),direction:"inherit",textComponent:d().createElement(A,null),tspanComponent:d().createElement(w,null),capHeight:.71,lineHeight:1},it=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>b(t,e)));const n=b(t,e);return null!=n?Array.isArray(n)?n:`${n}`.split("\n"):void 0})(t.text,t),n=((t,e)=>{if(e.disableInlineStyles){const n=v(t,e);return{fontSize:Y(n)}}const n=t=>{const n=v(t?c()({},t,Z):Z,e);return Object.assign({},n,{fontSize:Y(n)})};return Array.isArray(t)&&!p()(t)?t.map((t=>n(t))):n(t)})(t.style,Object.assign({},t,{text:e})),r=((t,e)=>{if(t)return Array.isArray(t)&&!p()(t)?t.map((t=>v(t,e))):v(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),i=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>y({padding:b(e,t)}))):y({padding:b(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),o=b(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:i,style:n,text:e,id:o})})(c()({},t,rt));if(null===e.text||void 0===e.text)return null;const n=nt(e),{text:r,style:i,capHeight:o,backgroundPadding:a,lineHeight:s}=n,l=r.map(((t,e)=>{const n=J(i,e),r=B(`${o}em`,n.fontSize),l=J(s,e);return{style:n,fontSize:n.fontSize||Z.fontSize,capHeight:r,text:t,textSize:N(t,n),lineHeight:l,backgroundPadding:J(a,e)}})),u=((t,e)=>{const{ariaLabel:n,inline:r,className:i,title:o,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:f,transform:p,x:g,y:h,desc:y,id:v,tabIndex:x,tspanComponent:m,textComponent:k}=t,O=G(t),j={"aria-label":n,key:"text",...a,direction:s,dx:u,x:g,y:h+f,transform:p,className:i,title:o,desc:b(y,t),tabIndex:b(x,t),id:v,...O},S=l.map(((n,i)=>{const o=e[i].style,a={key:`${v}-key-${i}`,x:r?void 0:g,dx:r?u+e[i].backgroundPadding.left:u,dy:et(e,t,i),textAnchor:o.textAnchor||c,style:o,children:n};return d().cloneElement(m,a)}));return d().cloneElement(k,j,S)})(n,l);if(e.backgroundStyle){const t=[tt(n,l),u],r=d().cloneElement(e.groupComponent,{},t);return e.renderInPortal?d().createElement(O,null,r):r}return e.renderInPortal?d().createElement(O,null,u):u};it.displayName="VictoryLabel",it.role="label",it.defaultStyles=Z;const ot=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],at="#252525",st="#969696",lt={width:450,height:300,padding:50,colorScale:ot},ct={fontFamily:"'Gill Sans', 'Seravek', 'Trebuchet MS', sans-serif",fontSize:14,letterSpacing:"normal",padding:10,fill:at,stroke:"transparent"},ut=Object.assign({textAnchor:"middle"},ct),dt={palette:{colors:{blue:"#4F7DA1",pink:"#E2A37F",teal:"#00796B",purple:"#DF948A",green:"#8BC34A",orange:"#F4511E",cyan:"#006064",red:"#DF5A49",yellow:"#FFF59D"},grayscale:ot,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:at},labels:ct}},lt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:at,strokeWidth:1,strokeLinecap:"round",strokeLinejoin:"round"},axisLabel:Object.assign({},ut,{padding:25}),grid:{fill:"none",stroke:"none",pointerEvents:"painted"},ticks:{fill:"transparent",size:1,stroke:"transparent"},tickLabels:ct}},lt),bar:Object.assign({style:{data:{fill:at,padding:8,strokeWidth:0},labels:ct}},lt),boxplot:Object.assign({style:{max:{padding:8,stroke:at,strokeWidth:1},maxLabels:Object.assign({},ct,{padding:3}),median:{padding:8,stroke:at,strokeWidth:1},medianLabels:Object.assign({},ct,{padding:3}),min:{padding:8,stroke:at,strokeWidth:1},minLabels:Object.assign({},ct,{padding:3}),q1:{padding:8,fill:st},q1Labels:Object.assign({},ct,{padding:3}),q3:{padding:8,fill:st},q3Labels:Object.assign({},ct,{padding:3})},boxWidth:20},lt),candlestick:Object.assign({style:{data:{stroke:at,strokeWidth:1},labels:Object.assign({},ct,{padding:5})},candleColors:{positive:"#ffffff",negative:at}},lt),chart:lt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",stroke:at,strokeWidth:2},labels:ct}},lt),group:Object.assign({colorScale:ot},lt),histogram:Object.assign({style:{data:{fill:st,stroke:at,strokeWidth:2},labels:ct}},lt),legend:{colorScale:ot,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:ct,title:Object.assign({},ct,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",stroke:at,strokeWidth:2},labels:ct}},lt),pie:{style:{data:{padding:10,stroke:"transparent",strokeWidth:1},labels:Object.assign({},ct,{padding:20})},colorScale:ot,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:at,stroke:"transparent",strokeWidth:0},labels:ct}},lt),stack:Object.assign({colorScale:ot},lt),tooltip:{style:Object.assign({},ct,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:at,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},ct,{padding:5,pointerEvents:"none"}),flyout:{stroke:at,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},lt)},ft="#FFF59D",pt="#F4511E",gt="#8BC34A",ht="#00796B",yt="#006064",bt=[pt,ft,"#DCE775",gt,ht,yt],vt="#ECEFF1",xt="#90A4AE",mt="#455A64",kt="#212121",Ot={blue:"#4F7DA1",pink:"#E2A37F",teal:ht,purple:"#DF948A",green:gt,orange:pt,cyan:yt,red:"#DF5A49",yellow:ft},jt=[vt,xt,mt,kt],St={width:350,height:350,padding:50},At={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:mt,stroke:"transparent",strokeWidth:0},wt=Object.assign({textAnchor:"middle"},At),Ft="round",Et="round",Ct={palette:{colors:Ot,grayscale:jt,qualitative:["#334D5C","#45B29D","#EFC94C","#E27A3F","#DF5A49","#4F7DA1","#55DBC1","#EFDA97","#E2A37F","#DF948A"],heatmap:["#428517","#77D200","#D6D305","#EC8E19","#C92B05"],warm:["#940031","#C43343","#DC5429","#FF821D","#FFAF55"],cool:["#2746B9","#0B69D4","#2794DB","#31BB76","#60E83B"],red:["#FCAE91","#FB6A4A","#DE2D26","#A50F15","#750B0E"],green:["#354722","#466631","#649146","#8AB25C","#A9C97E"],blue:["#002C61","#004B8F","#006BC9","#3795E5","#65B4F4"]},area:Object.assign({style:{data:{fill:kt},labels:At}},St),axis:Object.assign({style:{axis:{fill:"transparent",stroke:xt,strokeWidth:2,strokeLinecap:Ft,strokeLinejoin:Et},axisLabel:Object.assign({},wt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:vt,strokeDasharray:"10, 5",strokeLinecap:Ft,strokeLinejoin:Et,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:xt,strokeWidth:1,strokeLinecap:Ft,strokeLinejoin:Et},tickLabels:Object.assign({},At,{fill:mt})}},St),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:mt,padding:8,strokeWidth:0},labels:At}},St),boxplot:Object.assign({style:{max:{padding:8,stroke:mt,strokeWidth:1},maxLabels:Object.assign({},At,{padding:3}),median:{padding:8,stroke:mt,strokeWidth:1},medianLabels:Object.assign({},At,{padding:3}),min:{padding:8,stroke:mt,strokeWidth:1},minLabels:Object.assign({},At,{padding:3}),q1:{padding:8,fill:mt},q1Labels:Object.assign({},At,{padding:3}),q3:{padding:8,fill:mt},q3Labels:Object.assign({},At,{padding:3})},boxWidth:20},St),candlestick:Object.assign({style:{data:{stroke:mt},labels:Object.assign({},At,{padding:5})},candleColors:{positive:"#ffffff",negative:mt}},St),chart:St,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:mt,strokeWidth:2},labels:At}},St),group:Object.assign({colorScale:bt},St),histogram:Object.assign({style:{data:{fill:mt,stroke:kt,strokeWidth:2},labels:At}},St),legend:{colorScale:bt,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:At,title:Object.assign({},At,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:mt,strokeWidth:2},labels:At}},St),pie:Object.assign({colorScale:bt,style:{data:{padding:8,stroke:vt,strokeWidth:1},labels:Object.assign({},At,{padding:20})}},St),scatter:Object.assign({style:{data:{fill:mt,opacity:1,stroke:"transparent",strokeWidth:0},labels:At}},St),stack:Object.assign({colorScale:bt},St),tooltip:{style:Object.assign({},At,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:kt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"},flyoutPadding:5,cornerRadius:5,pointerLength:10},voronoi:Object.assign({style:{data:{fill:"transparent",stroke:"transparent",strokeWidth:0},labels:Object.assign({},At,{padding:5,pointerEvents:"none"}),flyout:{stroke:kt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},St)},$t="#FFFFFF",Lt="#E8E8E8",Pt="#E0E0E0",Wt="#D1D1D1",zt="#757575",Dt="#5C5C5C",_t="#292929",Bt="#FCB400",Mt="#FF6F2C",Ht="#F82B60",Tt="#FF08C2",Rt="#8B46FF",It="#CFDFFF",Nt="#2D7FF9",qt="#18BFFF",Vt="#20D9D2",Gt="#20C933",Zt={blue:Nt,pink:Tt,teal:Vt,purple:Rt,green:Gt,orange:Mt,cyan:qt,red:Ht,yellow:Bt},Xt=Object.values(Zt),Yt=[Lt,Wt,Dt,_t],Jt=[Bt,Mt,Ht,Tt],Kt=[qt,Vt,Nt,Rt],Qt=[Gt,Bt,Ht],Ut=[Ht,"#FF9EB7","#FFDCE5"],te=[Gt,"#93E088","#D1F7C4"],ee=[Nt,"#9CC7FF",It],ne={width:450,height:300,padding:50,colorScale:Xt},re={fontFamily:"'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif",fontSize:12,fontWeight:300,letterSpacing:"normal",padding:8,fill:_t,stroke:"transparent"},ie=Object.assign({textAnchor:"middle"},re),oe="10, 5",ae="round",se="round",le={grayscale:dt,material:Ct,clean:{palette:{colors:Zt,grayscale:Yt,qualitative:Xt,heatmap:Qt,warm:Jt,cool:Kt,red:Ut,green:te,blue:ee},area:Object.assign({style:{data:{fill:Nt,strokeWidth:2,fillOpacity:.5},labels:re}},ne),axis:Object.assign({style:{axis:{fill:"transparent",stroke:zt,strokeWidth:1,strokeLinecap:ae,strokeLinejoin:se},axisLabel:Object.assign({},ie,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:"none",painterEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:"transparent"},tickLabels:re}},ne),polarAxis:Object.assign({style:{axis:{stroke:zt},grid:{stroke:Wt,strokeDasharray:oe,strokeLinecap:ae,strokeLinejoin:se,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Wt,strokeWidth:1,strokeLinecap:ae,strokeLinejoin:se},tickLabels:re}}),polarDependentAxis:Object.assign({style:{axis:{stroke:zt},grid:{stroke:Wt,strokeDasharray:oe,strokeLinecap:ae,strokeLinejoin:se,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:Pt,strokeWidth:1,strokeLinecap:ae,strokeLinejoin:se},tickLabels:re}}),bar:Object.assign({style:{data:{fill:Nt,padding:8,strokeWidth:1,fillOpacity:.5},labels:re},cornerRadius:{top:1}},ne),boxplot:Object.assign({style:{max:{padding:8,stroke:Wt,strokeWidth:2},maxLabels:Object.assign({},re,{padding:3}),median:{padding:8,stroke:$t,strokeWidth:2},medianLabels:Object.assign({},re,{padding:3}),min:{padding:8,stroke:Wt,strokeWidth:2},minLabels:Object.assign({},re,{padding:3}),q1:{padding:8,fill:Vt,rx:1,strokeWidth:2},q1Labels:Object.assign({},re,{padding:3}),q3:{padding:8,fill:qt,rx:1},q3Labels:Object.assign({},re,{padding:3})},boxWidth:20},ne),candlestick:Object.assign({style:{data:{stroke:Pt,strokeWidth:0,rx:1},labels:Object.assign({},re,{padding:5})},candleColors:{positive:Vt,negative:Mt},wickStrokeWidth:2},ne),chart:ne,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:"#424242",strokeWidth:2,strokeLinecap:ae},labels:re}},ne),group:Object.assign({colorScale:Xt},ne),histogram:Object.assign({style:{data:{fill:qt,fillOpacity:.5},labels:re},binSpacing:4,cornerRadius:{top:1}},ne),label:re,legend:{colorScale:Xt,gutter:24,borderPadding:10,orientation:"horizontal",titleOrientation:"top",centerTitle:!0,style:{data:{type:"circle"},labels:{...re,fontSize:12},title:Object.assign({},re,{padding:8,fontSize:16}),border:{stroke:Lt,strokeWidth:2,padding:16}}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:Nt,strokeWidth:2,strokeLinecap:ae,strokeLinejoin:se},labels:re}},ne),pie:Object.assign({style:{parent:{backgroundColor:$t},data:{padding:8,stroke:$t,strokeWidth:1},labels:{...re,padding:20,fill:Dt,fontSize:10}},colorScale:Xt,cornerRadius:1},ne),scatter:Object.assign({style:{data:{fill:Rt,opacity:1,stroke:"transparent",strokeWidth:0},labels:{...re,padding:20}}},ne),stack:Object.assign({colorScale:Xt},ne),tooltip:{style:Object.assign({},re,{padding:0,pointerEvents:"none"}),flyoutStyle:{stroke:Pt,strokeWidth:2,fill:$t,pointerEvents:"none"},flyoutPadding:{top:8,bottom:8,left:16,right:16},cornerRadius:1,pointerLength:4},voronoi:Object.assign({style:{data:{fill:It,stroke:Nt,strokeWidth:2,opacity:.4},labels:Object.assign({},re,{padding:5,pointerEvents:"none"}),flyout:{stroke:_t,strokeWidth:1,fill:"#F2F2F2",pointerEvents:"none"},padding:{left:2,bottom:2}}},ne)}};function ce(){return ce=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},ce.apply(this,arguments)}const ue=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:i,origin:o,...a}=t,s={id:b(r,t)?.toString(),tabIndex:b(i,t),...a};return n?d().createElement("path",ce({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("path",ce({},s,{ref:e}))})),de=t=>{const e=t.orientation||"top";return"left"===e||"right"===e?(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="left"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=u-s*(i/2),p=u+s*(i/2),g=d+o/2,h=d-o/2,y=s*(l-f)>0?0:t.pointerLength,b=`${n} ${n} ${"left"===r?"0 0 0":"0 0 1"}`;return`M ${f}, ${d-e/2}\n L ${y?l:f}, ${y?c:d+e/2}\n L ${f}, ${d+e/2}\n L ${f}, ${g-n}\n A ${b} ${f+s*n}, ${g}\n L ${p-s*n}, ${g}\n A ${b} ${p}, ${g-n}\n L ${p}, ${h+n}\n A ${b} ${p-s*n}, ${h}\n L ${f+s*n}, ${h}\n A ${b} ${f}, ${h+n}\n z`})(t):(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:i,height:o,center:a}=t,s="bottom"===r?1:-1,l=t.x+(t.dx||0),c=t.y+(t.dy||0),u=a.x,d=a.y,f=d+s*(o/2),p=d-s*(o/2),g=u+i/2,h=u-i/2,y=s*(c-f)<0?0:t.pointerLength,b=`${n} ${n} ${"bottom"===r?"0 0 0":"0 0 1"}`;return`M ${u-e/2}, ${f}\n L ${y?l:u+e/2}, ${y?c:f}\n L ${u+e/2}, ${f}\n L ${g-n}, ${f}\n A ${b} ${g}, ${f-s*n}\n L ${g}, ${p+s*n}\n A ${b} ${g-n}, ${p}\n L ${h+n}, ${p}\n A ${b} ${h}, ${p+s*n}\n L ${h}, ${f-s*n}\n A ${b} ${h+n}, ${f}\n z`})(t)},fe={pathComponent:d().createElement(ue,null),role:"presentation",shapeRendering:"auto"},pe=t=>{const e=(t=>{const e=b(t.id,t),n=v(t.style,t);return{...t,id:e,style:n}})(c()({},t,fe)),n=G(e);V(e.height,"Flyout props[height] is undefined"),V(e.width,"Flyout props[width] is undefined"),V(e.x,"Flyout props[x] is undefined"),V(e.y,"Flyout props[y] is undefined");const r={center:e.center||{x:0,y:0},cornerRadius:e.cornerRadius||0,dx:e.dx,dy:e.dy,height:e.height,orientation:e.orientation||"top",pointerLength:e.pointerLength||0,pointerWidth:e.pointerWidth||0,width:e.width,x:e.x,y:e.y};return d().cloneElement(e.pathComponent,{...e.events,...n,style:e.style,d:de(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath})},ge={cornerRadius:5,pointerLength:10,pointerWidth:10};class he extends d().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:d().createElement(it,null),flyoutComponent:d().createElement(pe,null),groupComponent:d().createElement("g",null)};static defaultEvents(t){const e=t.activateData?[{target:"labels",mutation:()=>({active:!0})},{target:"data",mutation:()=>({active:!0})}]:[{target:"labels",mutation:()=>({active:!0})}],n=t.activateData?[{target:"labels",mutation:()=>({active:void 0})},{target:"data",mutation:()=>({active:void 0})}]:[{target:"labels",mutation:()=>({active:void 0})}];return[{target:"data",eventHandlers:{onMouseOver:()=>e,onFocus:()=>e,onTouchStart:()=>e,onMouseOut:()=>n,onBlur:()=>n,onTouchEnd:()=>n}}]}constructor(t){super(t),this.id=void 0===t.id?s()("tooltip-"):t.id}getDefaultOrientation(t){const{datum:e,horizontal:n,polar:r}=t;if(!r){const t=n?"right":"top",r=n?"left":"bottom";return e&&e.y<0?r:t}return this.getPolarOrientation(t)}getPolarOrientation(t){const e=F(t,t.datum),n=t.labelPlacement||"vertical";return"vertical"===n?this.getVerticalOrientations(e):"parallel"===n?e<90||e>270?"right":"left":e>180?"bottom":"top"}getVerticalOrientations(t){return t<45||t>315?"right":t>=45&&t<=135?"top":t>135&&t<225?"left":"bottom"}getStyles(t){const e=t.theme||le.grayscale,n=e&&e.tooltip&&e.tooltip.style?e.tooltip.style:{},r=Array.isArray(t.style)?t.style.map((t=>c()({},t,n))):c()({},t.style,n),i=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},o=t.flyoutStyle?c()({},t.flyoutStyle,i):i,a=Array.isArray(r)?r.map((e=>v(e,t))):v(r,t);return{style:a,flyoutStyle:v(o,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:e,centerOffset:n,dx:r,dy:i}=t,a=b(t.active,t);let s=b(t.text,Object.assign({},t,{active:a}));null==s&&(s=""),"number"==typeof s&&(s=s.toString());const{style:l,flyoutStyle:c}=this.getStyles(Object.assign({},t,{active:a,text:s})),u=b(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=y({padding:b(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l)}),f=b(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=b(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=N(s,l),{flyoutHeight:h,flyoutWidth:v}=this.getDimensions(Object.assign({},t,{style:l,flyoutStyle:c,active:a,text:s,orientation:u,flyoutPadding:d,pointerWidth:f,pointerLength:p}),g),x=Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u,flyoutHeight:h,flyoutWidth:v,flyoutPadding:d,pointerWidth:f,pointerLength:p}),m=o()(n)&&void 0!==n?.x?b(n.x,x):0,k=o()(n)&&void 0!==n?.y?b(n.y,x):0;return{...x,centerOffset:{x:m,y:k},dx:void 0!==r?b(r,x):0,dy:void 0!==i?b(i,x):0,cornerRadius:b(e,x)}}getCalculatedValues(t){const{style:e,text:n,flyoutStyle:r,flyoutHeight:i,flyoutWidth:o}=t,a={height:i,width:o};return{style:e,flyoutStyle:r,labelSize:N(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:e,y:n,style:r}=t,i=(r||{}).angle||t.angle||this.getDefaultAngle(t);return i?`rotate(${i} ${e} ${n})`:void 0}getDefaultAngle(t){const{polar:e,labelPlacement:n,orientation:r,datum:i}=t;if(!e||!n||"vertical"===n)return 0;const o=F(t,i);let a=0;return 0===o||180===o?a="top"===r&&180===o?270:90:o>0&&o<180?a=90-o:o>180&&o<360&&(a=270-o),a+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}constrainTooltip(t,e,n){const{x:r,y:i}=t,{width:o,height:a}=n,s=[0,e.width],l=[0,e.height],c=[r-o/2,r+o/2],u=[i-a/2,i+a/2],d=[c[0]<s[0]?s[0]-c[0]:0,c[1]>s[1]?c[1]-s[1]:0],f=[u[0]<l[0]?l[0]-u[0]:0,u[1]>l[1]?u[1]-l[1]:0];return{x:Math.round(r+d[0]-d[1]),y:Math.round(i+f[0]-f[1])}}getFlyoutCenter(t,e){const{x:n,y:r,dx:i,dy:a,pointerLength:s,orientation:l,constrainToVisibleArea:c,centerOffset:u}=t,{height:d,width:f}=e,p="left"===l?-1:1,g="bottom"===l?-1:1,h={x:"left"===l||"right"===l?n+p*(s+f/2+p*i):n+i,y:"top"===l||"bottom"===l?r-g*(s+d/2-g*a):r+a},y=o()(t.center)&&void 0!==t.center.x?t.center.x:h.x,b=o()(t.center)&&void 0!==t.center.y?t.center.y:h.y,v={x:y+u.x,y:b+u.y};return c?this.constrainTooltip(v,t,e):v}getLabelPadding(t){if(!t)return 0;const e=Array.isArray(t)?t.map((t=>t.padding)):[t.padding];return Math.max(...e,0)}getDimensions(t,e){const{orientation:n,pointerLength:r,pointerWidth:i,flyoutHeight:o,flyoutWidth:a,flyoutPadding:s}=t,l=b(t.cornerRadius,t);return{flyoutHeight:o?b(o,t):(()=>{const t=e.height+s.top+s.bottom,r="top"===n||"bottom"===n?2*l:2*l+i;return Math.max(r,t)})(),flyoutWidth:a?b(a,t):(()=>{const t=e.width+s.left+s.right,i="left"===n||"right"===n?2*l+r:2*l;return Math.max(i,t)})()}}getLabelProps(t,e){const{flyoutCenter:n,style:r,labelSize:i,dy:o=0,dx:a=0}=e,{text:s,datum:l,activePoints:u,labelComponent:d,index:f,flyoutPadding:p}=t,g=(Array.isArray(r)&&r.length?r[0].textAnchor:r.textAnchor)||"middle";return c()({},d.props,{key:`${this.id}-label-${f}`,text:s,datum:l,activePoints:u,textAnchor:g,dy:o,dx:a,style:r,x:(()=>{if(!g||"middle"===g)return n.x;const t="end"===g?-1:1;return n.x-t*(i.width/2)})()+(p.left-p.right)/2,y:n.y+(p.top-p.bottom)/2,verticalAnchor:"middle",angle:r.angle})}getPointerOrientation(t,n,r){const i=n.y+r.height/2,o=n.y-r.height/2,a=n.x-r.width/2,s=n.x+r.width/2,l=[{side:"top",val:o>t.y?o-t.y:-1},{side:"bottom",val:i<t.y?t.y-i:-1},{side:"right",val:s<t.x?t.x-s:-1},{side:"left",val:a>t.x?a-t.x:-1}];return e()(l,"val","desc")[0].side}getFlyoutProps(t,e){const{flyoutDimensions:n,flyoutStyle:r,flyoutCenter:i}=e,{x:o,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,flyoutComponent:v}=t,x=b(t.pointerOrientation,t);return c()({},v.props,{x:o,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,orientation:x||this.getPointerOrientation({x:o,y:a},i,n),key:`${this.id}-tooltip-${f}`,width:n.width,height:n.height,style:r,center:i})}renderTooltip(t){const e=b(t.active,t),{renderInPortal:n}=t;if(!e)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:i,labelComponent:o,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[d().cloneElement(i,this.getFlyoutProps(r,s)),d().cloneElement(o,this.getLabelProps(r,s))],c=d().cloneElement(a,{role:"presentation",transform:s.transform},l);return n?d().createElement(O,null,c):c}render(){const t=function(t,e,n){const r=g(t.theme&&t.theme[n]?t.theme[n]:{},["style"]),i=function(t){if(void 0!==t.horizontal||!t.children)return t.horizontal;const e=t=>t.reduce(((t,n)=>{const r=n.props||{};return t||r.horizontal||!r.children?t||r.horizontal:e(d().Children.toArray(r.children))}),!1);return e(d().Children.toArray(t.children))}(t),o=void 0===i?{}:{horizontal:i};return c()(o,t,r,e)}(this.props,ge,"tooltip");return this.renderTooltip(t)}}}(),i}()}));
2
2
  //# sourceMappingURL=victory-tooltip.min.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "victory-tooltip",
3
- "version": "37.1.2",
3
+ "version": "37.2.0",
4
4
  "description": "Tooltip Component for Victory",
5
5
  "keywords": [
6
6
  "data visualization",
@@ -21,7 +21,7 @@
21
21
  "license": "MIT",
22
22
  "dependencies": {
23
23
  "lodash": "^4.17.19",
24
- "victory-core": "37.1.2"
24
+ "victory-core": "37.2.0"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=16.6.0"