victory-tooltip 37.1.1 → 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 +8 -0
- package/dist/victory-tooltip.js +600 -37
- package/dist/victory-tooltip.min.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
package/dist/victory-tooltip.js
CHANGED
|
@@ -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
|
|
4908
|
-
/* harmony import */ var
|
|
4909
|
-
/* harmony import */ var
|
|
4910
|
-
/* harmony import */ var
|
|
4911
|
-
/* harmony import */ var
|
|
4912
|
-
/* harmony import */ var
|
|
4913
|
-
/* harmony import */ var
|
|
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__*/
|
|
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 =
|
|
4928
|
-
const portalContext = (0,
|
|
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
|
-
|
|
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 =
|
|
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__*/
|
|
4946
|
-
|
|
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
|
-
|
|
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
|
}, []);
|
|
@@ -5118,6 +5121,477 @@ const TSpan = props => {
|
|
|
5118
5121
|
|
|
5119
5122
|
/***/ }),
|
|
5120
5123
|
|
|
5124
|
+
/***/ "../../victory-core/es/victory-theme/clean.js":
|
|
5125
|
+
/*!****************************************************!*\
|
|
5126
|
+
!*** ../../victory-core/es/victory-theme/clean.js ***!
|
|
5127
|
+
\****************************************************/
|
|
5128
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
5129
|
+
|
|
5130
|
+
"use strict";
|
|
5131
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5132
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5133
|
+
/* harmony export */ "clean": function() { return /* binding */ clean; }
|
|
5134
|
+
/* harmony export */ });
|
|
5135
|
+
// *
|
|
5136
|
+
// * Colors
|
|
5137
|
+
// *
|
|
5138
|
+
|
|
5139
|
+
const gray = {
|
|
5140
|
+
white: "#FFFFFF",
|
|
5141
|
+
"50": "#FAFAFA",
|
|
5142
|
+
"100": "#F2F2F2",
|
|
5143
|
+
"200": "#E8E8E8",
|
|
5144
|
+
"300": "#E0E0E0",
|
|
5145
|
+
"400": "#D1D1D1",
|
|
5146
|
+
"500": "#757575",
|
|
5147
|
+
"600": "#5C5C5C",
|
|
5148
|
+
"700": "#424242",
|
|
5149
|
+
"800": "#333333",
|
|
5150
|
+
"900": "#292929",
|
|
5151
|
+
black: "#0F0F0F"
|
|
5152
|
+
};
|
|
5153
|
+
const yellow = {
|
|
5154
|
+
"100": "#FFEAB6",
|
|
5155
|
+
"300": "#FFD66E",
|
|
5156
|
+
"500": "#FCB400",
|
|
5157
|
+
"900": "#B87503"
|
|
5158
|
+
};
|
|
5159
|
+
const orange = {
|
|
5160
|
+
"100": "#FEE2D5",
|
|
5161
|
+
"300": "#FFA981",
|
|
5162
|
+
"500": "#FF6F2C",
|
|
5163
|
+
"900": "#D74D26"
|
|
5164
|
+
};
|
|
5165
|
+
const red = {
|
|
5166
|
+
"100": "#FFDCE5",
|
|
5167
|
+
"300": "#FF9EB7",
|
|
5168
|
+
"500": "#F82B60",
|
|
5169
|
+
"900": "#BA1E45"
|
|
5170
|
+
};
|
|
5171
|
+
const pink = {
|
|
5172
|
+
"100": "#FFDAF6",
|
|
5173
|
+
"300": "#F99DE2",
|
|
5174
|
+
"500": "#FF08C2",
|
|
5175
|
+
"900": "#B2158B"
|
|
5176
|
+
};
|
|
5177
|
+
const purple = {
|
|
5178
|
+
"100": "#EDE3FE",
|
|
5179
|
+
"300": "#CDB0FF",
|
|
5180
|
+
"500": "#8B46FF",
|
|
5181
|
+
"900": "#6B1CB0"
|
|
5182
|
+
};
|
|
5183
|
+
const blue = {
|
|
5184
|
+
"100": "#CFDFFF",
|
|
5185
|
+
"300": "#9CC7FF",
|
|
5186
|
+
"500": "#2D7FF9",
|
|
5187
|
+
"900": "#2750AE"
|
|
5188
|
+
};
|
|
5189
|
+
const cyan = {
|
|
5190
|
+
"100": "#D0F0FD",
|
|
5191
|
+
"300": "#77D1F3",
|
|
5192
|
+
"500": "#18BFFF",
|
|
5193
|
+
"900": "#0B76B7"
|
|
5194
|
+
};
|
|
5195
|
+
const teal = {
|
|
5196
|
+
"100": "#C2F5E9",
|
|
5197
|
+
"300": "#72DDC3",
|
|
5198
|
+
"500": "#20D9D2",
|
|
5199
|
+
"900": "#06A09B"
|
|
5200
|
+
};
|
|
5201
|
+
const green = {
|
|
5202
|
+
"100": "#D1F7C4",
|
|
5203
|
+
"300": "#93E088",
|
|
5204
|
+
"500": "#20C933",
|
|
5205
|
+
"900": "#338A17"
|
|
5206
|
+
};
|
|
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
|
+
|
|
5227
|
+
// *
|
|
5228
|
+
// * Typography
|
|
5229
|
+
// *
|
|
5230
|
+
const sansSerif = "'Inter', 'Helvetica Neue', 'Seravek', 'Helvetica', sans-serif";
|
|
5231
|
+
const letterSpacing = "normal";
|
|
5232
|
+
const fontSize = 12;
|
|
5233
|
+
// *
|
|
5234
|
+
// * Layout
|
|
5235
|
+
// *
|
|
5236
|
+
const padding = 8;
|
|
5237
|
+
const baseProps = {
|
|
5238
|
+
width: 450,
|
|
5239
|
+
height: 300,
|
|
5240
|
+
padding: 50,
|
|
5241
|
+
colorScale
|
|
5242
|
+
};
|
|
5243
|
+
// *
|
|
5244
|
+
// * Labels
|
|
5245
|
+
// *
|
|
5246
|
+
const baseLabelStyles = {
|
|
5247
|
+
fontFamily: sansSerif,
|
|
5248
|
+
fontSize,
|
|
5249
|
+
fontWeight: 300,
|
|
5250
|
+
letterSpacing,
|
|
5251
|
+
padding,
|
|
5252
|
+
fill: gray["900"],
|
|
5253
|
+
stroke: "transparent"
|
|
5254
|
+
};
|
|
5255
|
+
const centeredLabelStyles = Object.assign({
|
|
5256
|
+
textAnchor: "middle"
|
|
5257
|
+
}, baseLabelStyles);
|
|
5258
|
+
|
|
5259
|
+
// *
|
|
5260
|
+
// * Strokes
|
|
5261
|
+
// *
|
|
5262
|
+
const strokeDasharray = "10, 5";
|
|
5263
|
+
const strokeLinecap = "round";
|
|
5264
|
+
const strokeLinejoin = "round";
|
|
5265
|
+
const borderRadius = 1;
|
|
5266
|
+
// *
|
|
5267
|
+
// * Theme
|
|
5268
|
+
// *
|
|
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
|
+
},
|
|
5281
|
+
area: Object.assign({
|
|
5282
|
+
style: {
|
|
5283
|
+
data: {
|
|
5284
|
+
fill: blue["500"],
|
|
5285
|
+
strokeWidth: 2,
|
|
5286
|
+
fillOpacity: 0.5
|
|
5287
|
+
},
|
|
5288
|
+
labels: baseLabelStyles
|
|
5289
|
+
}
|
|
5290
|
+
}, baseProps),
|
|
5291
|
+
axis: Object.assign({
|
|
5292
|
+
style: {
|
|
5293
|
+
axis: {
|
|
5294
|
+
fill: "transparent",
|
|
5295
|
+
stroke: gray["500"],
|
|
5296
|
+
strokeWidth: 1,
|
|
5297
|
+
strokeLinecap,
|
|
5298
|
+
strokeLinejoin
|
|
5299
|
+
},
|
|
5300
|
+
axisLabel: Object.assign({}, centeredLabelStyles, {
|
|
5301
|
+
padding,
|
|
5302
|
+
stroke: "transparent"
|
|
5303
|
+
}),
|
|
5304
|
+
grid: {
|
|
5305
|
+
fill: "none",
|
|
5306
|
+
stroke: "none",
|
|
5307
|
+
painterEvents: "painted"
|
|
5308
|
+
},
|
|
5309
|
+
ticks: {
|
|
5310
|
+
fill: "transparent",
|
|
5311
|
+
size: 5,
|
|
5312
|
+
stroke: "transparent"
|
|
5313
|
+
},
|
|
5314
|
+
tickLabels: baseLabelStyles
|
|
5315
|
+
}
|
|
5316
|
+
}, baseProps),
|
|
5317
|
+
polarAxis: Object.assign({
|
|
5318
|
+
style: {
|
|
5319
|
+
axis: {
|
|
5320
|
+
stroke: gray["500"]
|
|
5321
|
+
},
|
|
5322
|
+
grid: {
|
|
5323
|
+
stroke: gray["400"],
|
|
5324
|
+
strokeDasharray,
|
|
5325
|
+
strokeLinecap,
|
|
5326
|
+
strokeLinejoin,
|
|
5327
|
+
pointerEvents: "painted"
|
|
5328
|
+
},
|
|
5329
|
+
ticks: {
|
|
5330
|
+
fill: "transparent",
|
|
5331
|
+
size: 5,
|
|
5332
|
+
stroke: gray["400"],
|
|
5333
|
+
strokeWidth: 1,
|
|
5334
|
+
strokeLinecap,
|
|
5335
|
+
strokeLinejoin
|
|
5336
|
+
},
|
|
5337
|
+
tickLabels: baseLabelStyles
|
|
5338
|
+
}
|
|
5339
|
+
}),
|
|
5340
|
+
polarDependentAxis: Object.assign({
|
|
5341
|
+
style: {
|
|
5342
|
+
axis: {
|
|
5343
|
+
stroke: gray["500"]
|
|
5344
|
+
},
|
|
5345
|
+
grid: {
|
|
5346
|
+
stroke: gray["400"],
|
|
5347
|
+
strokeDasharray,
|
|
5348
|
+
strokeLinecap,
|
|
5349
|
+
strokeLinejoin,
|
|
5350
|
+
pointerEvents: "painted"
|
|
5351
|
+
},
|
|
5352
|
+
ticks: {
|
|
5353
|
+
fill: "transparent",
|
|
5354
|
+
size: 5,
|
|
5355
|
+
stroke: gray["300"],
|
|
5356
|
+
strokeWidth: 1,
|
|
5357
|
+
strokeLinecap,
|
|
5358
|
+
strokeLinejoin
|
|
5359
|
+
},
|
|
5360
|
+
tickLabels: baseLabelStyles
|
|
5361
|
+
}
|
|
5362
|
+
}),
|
|
5363
|
+
bar: Object.assign({
|
|
5364
|
+
style: {
|
|
5365
|
+
data: {
|
|
5366
|
+
fill: blue["500"],
|
|
5367
|
+
padding,
|
|
5368
|
+
strokeWidth: 1,
|
|
5369
|
+
fillOpacity: 0.5
|
|
5370
|
+
},
|
|
5371
|
+
labels: baseLabelStyles
|
|
5372
|
+
},
|
|
5373
|
+
cornerRadius: {
|
|
5374
|
+
top: borderRadius
|
|
5375
|
+
}
|
|
5376
|
+
}, baseProps),
|
|
5377
|
+
boxplot: Object.assign({
|
|
5378
|
+
style: {
|
|
5379
|
+
max: {
|
|
5380
|
+
padding,
|
|
5381
|
+
stroke: gray["400"],
|
|
5382
|
+
strokeWidth: 2
|
|
5383
|
+
},
|
|
5384
|
+
maxLabels: Object.assign({}, baseLabelStyles, {
|
|
5385
|
+
padding: 3
|
|
5386
|
+
}),
|
|
5387
|
+
median: {
|
|
5388
|
+
padding,
|
|
5389
|
+
stroke: gray.white,
|
|
5390
|
+
strokeWidth: 2
|
|
5391
|
+
},
|
|
5392
|
+
medianLabels: Object.assign({}, baseLabelStyles, {
|
|
5393
|
+
padding: 3
|
|
5394
|
+
}),
|
|
5395
|
+
min: {
|
|
5396
|
+
padding,
|
|
5397
|
+
stroke: gray["400"],
|
|
5398
|
+
strokeWidth: 2
|
|
5399
|
+
},
|
|
5400
|
+
minLabels: Object.assign({}, baseLabelStyles, {
|
|
5401
|
+
padding: 3
|
|
5402
|
+
}),
|
|
5403
|
+
q1: {
|
|
5404
|
+
padding,
|
|
5405
|
+
fill: teal["500"],
|
|
5406
|
+
rx: borderRadius,
|
|
5407
|
+
strokeWidth: 2
|
|
5408
|
+
},
|
|
5409
|
+
q1Labels: Object.assign({}, baseLabelStyles, {
|
|
5410
|
+
padding: 3
|
|
5411
|
+
}),
|
|
5412
|
+
q3: {
|
|
5413
|
+
padding,
|
|
5414
|
+
fill: cyan["500"],
|
|
5415
|
+
rx: borderRadius
|
|
5416
|
+
},
|
|
5417
|
+
q3Labels: Object.assign({}, baseLabelStyles, {
|
|
5418
|
+
padding: 3
|
|
5419
|
+
})
|
|
5420
|
+
},
|
|
5421
|
+
boxWidth: 20
|
|
5422
|
+
}, baseProps),
|
|
5423
|
+
candlestick: Object.assign({
|
|
5424
|
+
style: {
|
|
5425
|
+
data: {
|
|
5426
|
+
stroke: gray["300"],
|
|
5427
|
+
strokeWidth: 0,
|
|
5428
|
+
rx: borderRadius
|
|
5429
|
+
},
|
|
5430
|
+
labels: Object.assign({}, baseLabelStyles, {
|
|
5431
|
+
padding: 5
|
|
5432
|
+
})
|
|
5433
|
+
},
|
|
5434
|
+
candleColors: {
|
|
5435
|
+
positive: teal["500"],
|
|
5436
|
+
negative: orange["500"]
|
|
5437
|
+
},
|
|
5438
|
+
wickStrokeWidth: 2
|
|
5439
|
+
}, baseProps),
|
|
5440
|
+
chart: baseProps,
|
|
5441
|
+
errorbar: Object.assign({
|
|
5442
|
+
borderWidth: 8,
|
|
5443
|
+
style: {
|
|
5444
|
+
data: {
|
|
5445
|
+
fill: "transparent",
|
|
5446
|
+
opacity: 1,
|
|
5447
|
+
stroke: gray["700"],
|
|
5448
|
+
strokeWidth: 2,
|
|
5449
|
+
strokeLinecap
|
|
5450
|
+
},
|
|
5451
|
+
labels: baseLabelStyles
|
|
5452
|
+
}
|
|
5453
|
+
}, baseProps),
|
|
5454
|
+
group: Object.assign({
|
|
5455
|
+
colorScale
|
|
5456
|
+
}, baseProps),
|
|
5457
|
+
histogram: Object.assign({
|
|
5458
|
+
style: {
|
|
5459
|
+
data: {
|
|
5460
|
+
fill: cyan["500"],
|
|
5461
|
+
fillOpacity: 0.5
|
|
5462
|
+
},
|
|
5463
|
+
labels: baseLabelStyles
|
|
5464
|
+
},
|
|
5465
|
+
binSpacing: 4,
|
|
5466
|
+
cornerRadius: {
|
|
5467
|
+
top: borderRadius
|
|
5468
|
+
}
|
|
5469
|
+
}, baseProps),
|
|
5470
|
+
label: baseLabelStyles,
|
|
5471
|
+
legend: {
|
|
5472
|
+
colorScale,
|
|
5473
|
+
gutter: 24,
|
|
5474
|
+
borderPadding: 10,
|
|
5475
|
+
orientation: "horizontal",
|
|
5476
|
+
titleOrientation: "top",
|
|
5477
|
+
centerTitle: true,
|
|
5478
|
+
style: {
|
|
5479
|
+
data: {
|
|
5480
|
+
type: "circle"
|
|
5481
|
+
},
|
|
5482
|
+
labels: {
|
|
5483
|
+
...baseLabelStyles,
|
|
5484
|
+
fontSize: 12
|
|
5485
|
+
},
|
|
5486
|
+
title: Object.assign({}, baseLabelStyles, {
|
|
5487
|
+
padding,
|
|
5488
|
+
fontSize: 16
|
|
5489
|
+
}),
|
|
5490
|
+
border: {
|
|
5491
|
+
stroke: gray["200"],
|
|
5492
|
+
strokeWidth: 2,
|
|
5493
|
+
padding: 16
|
|
5494
|
+
}
|
|
5495
|
+
}
|
|
5496
|
+
},
|
|
5497
|
+
line: Object.assign({
|
|
5498
|
+
style: {
|
|
5499
|
+
data: {
|
|
5500
|
+
fill: "transparent",
|
|
5501
|
+
opacity: 1,
|
|
5502
|
+
stroke: blue["500"],
|
|
5503
|
+
strokeWidth: 2,
|
|
5504
|
+
strokeLinecap,
|
|
5505
|
+
strokeLinejoin
|
|
5506
|
+
},
|
|
5507
|
+
labels: baseLabelStyles
|
|
5508
|
+
}
|
|
5509
|
+
}, baseProps),
|
|
5510
|
+
pie: Object.assign({
|
|
5511
|
+
style: {
|
|
5512
|
+
parent: {
|
|
5513
|
+
backgroundColor: gray.white
|
|
5514
|
+
},
|
|
5515
|
+
data: {
|
|
5516
|
+
padding,
|
|
5517
|
+
stroke: gray.white,
|
|
5518
|
+
strokeWidth: 1
|
|
5519
|
+
},
|
|
5520
|
+
labels: {
|
|
5521
|
+
...baseLabelStyles,
|
|
5522
|
+
padding: 20,
|
|
5523
|
+
fill: gray["600"],
|
|
5524
|
+
fontSize: 10
|
|
5525
|
+
}
|
|
5526
|
+
},
|
|
5527
|
+
colorScale,
|
|
5528
|
+
cornerRadius: borderRadius
|
|
5529
|
+
}, baseProps),
|
|
5530
|
+
scatter: Object.assign({
|
|
5531
|
+
style: {
|
|
5532
|
+
data: {
|
|
5533
|
+
fill: purple["500"],
|
|
5534
|
+
opacity: 1,
|
|
5535
|
+
stroke: "transparent",
|
|
5536
|
+
strokeWidth: 0
|
|
5537
|
+
},
|
|
5538
|
+
labels: {
|
|
5539
|
+
...baseLabelStyles,
|
|
5540
|
+
padding: 20
|
|
5541
|
+
}
|
|
5542
|
+
}
|
|
5543
|
+
}, baseProps),
|
|
5544
|
+
stack: Object.assign({
|
|
5545
|
+
colorScale
|
|
5546
|
+
}, baseProps),
|
|
5547
|
+
tooltip: {
|
|
5548
|
+
style: Object.assign({}, baseLabelStyles, {
|
|
5549
|
+
padding: 0,
|
|
5550
|
+
pointerEvents: "none"
|
|
5551
|
+
}),
|
|
5552
|
+
flyoutStyle: {
|
|
5553
|
+
stroke: gray["300"],
|
|
5554
|
+
strokeWidth: 2,
|
|
5555
|
+
fill: gray.white,
|
|
5556
|
+
pointerEvents: "none"
|
|
5557
|
+
},
|
|
5558
|
+
flyoutPadding: {
|
|
5559
|
+
top: 8,
|
|
5560
|
+
bottom: 8,
|
|
5561
|
+
left: 16,
|
|
5562
|
+
right: 16
|
|
5563
|
+
},
|
|
5564
|
+
cornerRadius: borderRadius,
|
|
5565
|
+
pointerLength: 4
|
|
5566
|
+
},
|
|
5567
|
+
voronoi: Object.assign({
|
|
5568
|
+
style: {
|
|
5569
|
+
data: {
|
|
5570
|
+
fill: blue["100"],
|
|
5571
|
+
stroke: blue["500"],
|
|
5572
|
+
strokeWidth: 2,
|
|
5573
|
+
opacity: 0.4
|
|
5574
|
+
},
|
|
5575
|
+
labels: Object.assign({}, baseLabelStyles, {
|
|
5576
|
+
padding: 5,
|
|
5577
|
+
pointerEvents: "none"
|
|
5578
|
+
}),
|
|
5579
|
+
flyout: {
|
|
5580
|
+
stroke: gray["900"],
|
|
5581
|
+
strokeWidth: 1,
|
|
5582
|
+
fill: gray["100"],
|
|
5583
|
+
pointerEvents: "none"
|
|
5584
|
+
},
|
|
5585
|
+
padding: {
|
|
5586
|
+
left: 2,
|
|
5587
|
+
bottom: 2
|
|
5588
|
+
}
|
|
5589
|
+
}
|
|
5590
|
+
}, baseProps)
|
|
5591
|
+
};
|
|
5592
|
+
|
|
5593
|
+
/***/ }),
|
|
5594
|
+
|
|
5121
5595
|
/***/ "../../victory-core/es/victory-theme/grayscale.js":
|
|
5122
5596
|
/*!********************************************************!*\
|
|
5123
5597
|
!*** ../../victory-core/es/victory-theme/grayscale.js ***!
|
|
@@ -5132,9 +5606,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5132
5606
|
// *
|
|
5133
5607
|
// * Colors
|
|
5134
5608
|
// *
|
|
5135
|
-
const colors =
|
|
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"];
|
|
5136
5621
|
const charcoal = "#252525";
|
|
5137
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
|
+
|
|
5138
5631
|
// *
|
|
5139
5632
|
// * Typography
|
|
5140
5633
|
// *
|
|
@@ -5148,7 +5641,7 @@ const baseProps = {
|
|
|
5148
5641
|
width: 450,
|
|
5149
5642
|
height: 300,
|
|
5150
5643
|
padding: 50,
|
|
5151
|
-
colorScale
|
|
5644
|
+
colorScale
|
|
5152
5645
|
};
|
|
5153
5646
|
// *
|
|
5154
5647
|
// * Labels
|
|
@@ -5170,6 +5663,17 @@ const centeredLabelStyles = Object.assign({
|
|
|
5170
5663
|
const strokeLinecap = "round";
|
|
5171
5664
|
const strokeLinejoin = "round";
|
|
5172
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
|
+
},
|
|
5173
5677
|
area: Object.assign({
|
|
5174
5678
|
style: {
|
|
5175
5679
|
data: {
|
|
@@ -5284,7 +5788,7 @@ const grayscale = {
|
|
|
5284
5788
|
}
|
|
5285
5789
|
}, baseProps),
|
|
5286
5790
|
group: Object.assign({
|
|
5287
|
-
colorScale
|
|
5791
|
+
colorScale
|
|
5288
5792
|
}, baseProps),
|
|
5289
5793
|
histogram: Object.assign({
|
|
5290
5794
|
style: {
|
|
@@ -5297,7 +5801,7 @@ const grayscale = {
|
|
|
5297
5801
|
}
|
|
5298
5802
|
}, baseProps),
|
|
5299
5803
|
legend: {
|
|
5300
|
-
colorScale
|
|
5804
|
+
colorScale,
|
|
5301
5805
|
gutter: 10,
|
|
5302
5806
|
orientation: "vertical",
|
|
5303
5807
|
titleOrientation: "top",
|
|
@@ -5332,7 +5836,7 @@ const grayscale = {
|
|
|
5332
5836
|
padding: 20
|
|
5333
5837
|
})
|
|
5334
5838
|
},
|
|
5335
|
-
colorScale
|
|
5839
|
+
colorScale,
|
|
5336
5840
|
width: 400,
|
|
5337
5841
|
height: 400,
|
|
5338
5842
|
padding: 50
|
|
@@ -5348,7 +5852,7 @@ const grayscale = {
|
|
|
5348
5852
|
}
|
|
5349
5853
|
}, baseProps),
|
|
5350
5854
|
stack: Object.assign({
|
|
5351
|
-
colorScale
|
|
5855
|
+
colorScale
|
|
5352
5856
|
}, baseProps),
|
|
5353
5857
|
tooltip: {
|
|
5354
5858
|
style: Object.assign({}, baseLabelStyles, {
|
|
@@ -5408,11 +5912,31 @@ const lime300 = "#DCE775";
|
|
|
5408
5912
|
const lightGreen500 = "#8BC34A";
|
|
5409
5913
|
const teal700 = "#00796B";
|
|
5410
5914
|
const cyan900 = "#006064";
|
|
5411
|
-
const
|
|
5915
|
+
const colorScale = [deepOrange600, yellow200, lime300, lightGreen500, teal700, cyan900];
|
|
5412
5916
|
const blueGrey50 = "#ECEFF1";
|
|
5413
5917
|
const blueGrey300 = "#90A4AE";
|
|
5414
5918
|
const blueGrey700 = "#455A64";
|
|
5415
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
|
+
|
|
5416
5940
|
// *
|
|
5417
5941
|
// * Typography
|
|
5418
5942
|
// *
|
|
@@ -5450,6 +5974,17 @@ const strokeDasharray = "10, 5";
|
|
|
5450
5974
|
const strokeLinecap = "round";
|
|
5451
5975
|
const strokeLinejoin = "round";
|
|
5452
5976
|
const material = {
|
|
5977
|
+
palette: {
|
|
5978
|
+
colors,
|
|
5979
|
+
grayscale,
|
|
5980
|
+
qualitative,
|
|
5981
|
+
heatmap,
|
|
5982
|
+
warm,
|
|
5983
|
+
cool,
|
|
5984
|
+
red,
|
|
5985
|
+
green,
|
|
5986
|
+
blue
|
|
5987
|
+
},
|
|
5453
5988
|
area: Object.assign({
|
|
5454
5989
|
style: {
|
|
5455
5990
|
data: {
|
|
@@ -5582,7 +6117,7 @@ const material = {
|
|
|
5582
6117
|
}
|
|
5583
6118
|
}, baseProps),
|
|
5584
6119
|
group: Object.assign({
|
|
5585
|
-
colorScale
|
|
6120
|
+
colorScale
|
|
5586
6121
|
}, baseProps),
|
|
5587
6122
|
histogram: Object.assign({
|
|
5588
6123
|
style: {
|
|
@@ -5595,7 +6130,7 @@ const material = {
|
|
|
5595
6130
|
}
|
|
5596
6131
|
}, baseProps),
|
|
5597
6132
|
legend: {
|
|
5598
|
-
colorScale
|
|
6133
|
+
colorScale,
|
|
5599
6134
|
gutter: 10,
|
|
5600
6135
|
orientation: "vertical",
|
|
5601
6136
|
titleOrientation: "top",
|
|
@@ -5621,7 +6156,7 @@ const material = {
|
|
|
5621
6156
|
}
|
|
5622
6157
|
}, baseProps),
|
|
5623
6158
|
pie: Object.assign({
|
|
5624
|
-
colorScale
|
|
6159
|
+
colorScale,
|
|
5625
6160
|
style: {
|
|
5626
6161
|
data: {
|
|
5627
6162
|
padding,
|
|
@@ -5645,7 +6180,7 @@ const material = {
|
|
|
5645
6180
|
}
|
|
5646
6181
|
}, baseProps),
|
|
5647
6182
|
stack: Object.assign({
|
|
5648
|
-
colorScale
|
|
6183
|
+
colorScale
|
|
5649
6184
|
}, baseProps),
|
|
5650
6185
|
tooltip: {
|
|
5651
6186
|
style: Object.assign({}, baseLabelStyles, {
|
|
@@ -5698,12 +6233,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5698
6233
|
/* harmony export */ });
|
|
5699
6234
|
/* harmony import */ var _grayscale__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./grayscale */ "../../victory-core/es/victory-theme/grayscale.js");
|
|
5700
6235
|
/* harmony import */ var _material__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./material */ "../../victory-core/es/victory-theme/material.js");
|
|
6236
|
+
/* harmony import */ var _clean__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./clean */ "../../victory-core/es/victory-theme/clean.js");
|
|
6237
|
+
|
|
5701
6238
|
|
|
5702
6239
|
|
|
5703
6240
|
|
|
5704
6241
|
const VictoryTheme = {
|
|
5705
6242
|
grayscale: _grayscale__WEBPACK_IMPORTED_MODULE_0__.grayscale,
|
|
5706
|
-
material: _material__WEBPACK_IMPORTED_MODULE_1__.material
|
|
6243
|
+
material: _material__WEBPACK_IMPORTED_MODULE_1__.material,
|
|
6244
|
+
clean: _clean__WEBPACK_IMPORTED_MODULE_2__.clean
|
|
5707
6245
|
};
|
|
5708
6246
|
|
|
5709
6247
|
/***/ }),
|
|
@@ -6441,6 +6979,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6441
6979
|
/* harmony export */ "getColorScale": function() { return /* binding */ getColorScale; },
|
|
6442
6980
|
/* harmony export */ "toTransformString": function() { return /* binding */ toTransformString; }
|
|
6443
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
|
+
|
|
6444
6985
|
/**
|
|
6445
6986
|
* Given an object with CSS/SVG transform definitions, return the string value
|
|
6446
6987
|
* for use with the `transform` CSS property or SVG attribute. Note that we
|
|
@@ -6477,20 +7018,37 @@ const toTransformString = function (obj) {
|
|
|
6477
7018
|
* of 5 hex string values in that color scale. If no 'name' parameter
|
|
6478
7019
|
* is given, it will return the Victory default grayscale.
|
|
6479
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).
|
|
6480
7022
|
* @returns {Array} An array of 5 hex string values composing a color scale.
|
|
6481
7023
|
*/
|
|
6482
|
-
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;
|
|
6483
7040
|
const scales = {
|
|
6484
|
-
grayscale
|
|
6485
|
-
qualitative
|
|
6486
|
-
heatmap
|
|
6487
|
-
warm
|
|
6488
|
-
cool
|
|
6489
|
-
red
|
|
6490
|
-
blue
|
|
6491
|
-
green
|
|
7041
|
+
grayscale,
|
|
7042
|
+
qualitative,
|
|
7043
|
+
heatmap,
|
|
7044
|
+
warm,
|
|
7045
|
+
cool,
|
|
7046
|
+
red,
|
|
7047
|
+
blue,
|
|
7048
|
+
green
|
|
6492
7049
|
};
|
|
6493
|
-
|
|
7050
|
+
const selectedScale = name && scales[name]?.length ? scales[name] : scales.grayscale;
|
|
7051
|
+
return selectedScale;
|
|
6494
7052
|
}
|
|
6495
7053
|
|
|
6496
7054
|
/***/ }),
|
|
@@ -6517,6 +7075,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6517
7075
|
/* eslint-disable no-magic-numbers */
|
|
6518
7076
|
// Based on measuring specific character widths
|
|
6519
7077
|
// as in the following example https://bl.ocks.org/tophtucker/62f93a4658387bb61e4510c37e2e97cf
|
|
7078
|
+
// For new fonts: pull gist, open index.html locally, add font files (if not generic), enter font name in `font-family` input
|
|
6520
7079
|
// prettier-ignore
|
|
6521
7080
|
const fonts = {
|
|
6522
7081
|
"American Typewriter": {
|
|
@@ -6575,6 +7134,10 @@ const fonts = {
|
|
|
6575
7134
|
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, 0.2359375, 0.2234375, 0.3921875, 0.7125, 0.49375, 0.8859375, 0.771875, 0.2125, 0.3078125, 0.309375, 0.375, 0.4234375, 0.234375, 0.3125, 0.234375, 0.3, 0.5828125, 0.365625, 0.434375, 0.3921875, 0.5234375, 0.3984375, 0.5125, 0.4328125, 0.46875, 0.5125, 0.234375, 0.234375, 0.515625, 0.4234375, 0.515625, 0.340625, 0.7609375, 0.7359375, 0.6359375, 0.721875, 0.8125, 0.6375, 0.5875, 0.8078125, 0.853125, 0.4296875, 0.503125, 0.78125, 0.609375, 0.9609375, 0.8515625, 0.8140625, 0.6125, 0.8140625, 0.71875, 0.49375, 0.7125, 0.76875, 0.771875, 1.125, 0.7765625, 0.7734375, 0.65625, 0.321875, 0.3078125, 0.321875, 0.3546875, 0.5, 0.3375, 0.446875, 0.5359375, 0.45, 0.5296875, 0.4546875, 0.425, 0.4921875, 0.54375, 0.2671875, 0.240625, 0.5390625, 0.25, 0.815625, 0.5375, 0.5234375, 0.5390625, 0.5421875, 0.365625, 0.36875, 0.35625, 0.5171875, 0.5015625, 0.75, 0.5, 0.509375, 0.44375, 0.2421875, 0.14375, 0.2421875, 0.35],
|
|
6576
7135
|
avg: 0.5116447368421051
|
|
6577
7136
|
},
|
|
7137
|
+
"Inter": {
|
|
7138
|
+
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, 0.2796875, 0.2890625, 0.4671875, 0.634375, 0.6421875, 0.9828125, 0.6453125, 0.3, 0.365625, 0.365625, 0.5015625, 0.6625, 0.2890625, 0.4609375, 0.2890625, 0.3609375, 0.63125, 0.4078125, 0.6109375, 0.61875, 0.646875, 0.59375, 0.6203125, 0.5671875, 0.61875, 0.6203125, 0.2890625, 0.303125, 0.6625, 0.6625, 0.6625, 0.5125, 0.9671875, 0.690625, 0.6546875, 0.73125, 0.721875, 0.6015625, 0.590625, 0.746875, 0.74375, 0.26875, 0.571875, 0.671875, 0.565625, 0.9046875, 0.7546875, 0.765625, 0.6390625, 0.765625, 0.64375, 0.6421875, 0.646875, 0.7453125, 0.690625, 0.9859375, 0.6828125, 0.6796875, 0.6296875, 0.365625, 0.3609375, 0.365625, 0.471875, 0.45625, 0.3234375, 0.5625, 0.6125, 0.571875, 0.6125, 0.584375, 0.3703125, 0.6140625, 0.5921875, 0.2421875, 0.2548828125, 0.55, 0.2421875, 0.8765625, 0.5921875, 0.6, 0.6125, 0.6125, 0.3765625, 0.528125, 0.328125, 0.5921875, 0.5625, 0.81875, 0.546875, 0.5625, 0.553125, 0.4265625, 0.3328125, 0.4265625, 0.6625],
|
|
7139
|
+
avg: 0.5624362664473683
|
|
7140
|
+
},
|
|
6578
7141
|
"Montserrat": {
|
|
6579
7142
|
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, 0.2625, 0.2609375, 0.3734375, 0.696875, 0.615625, 0.8296875, 0.6703125, 0.203125, 0.3296875, 0.3296875, 0.3875, 0.575, 0.2125, 0.3828125, 0.2125, 0.3953125, 0.6625, 0.3625, 0.56875, 0.5640625, 0.6625, 0.5671875, 0.609375, 0.5890625, 0.6390625, 0.609375, 0.2125, 0.2125, 0.575, 0.575, 0.575, 0.5671875, 1.034375, 0.7171875, 0.7546875, 0.7203125, 0.8265625, 0.6703125, 0.634375, 0.7734375, 0.8140625, 0.303125, 0.5078125, 0.7125, 0.5890625, 0.95625, 0.8140625, 0.8390625, 0.71875, 0.8390625, 0.7234375, 0.615625, 0.575, 0.7921875, 0.6984375, 1.1125, 0.65625, 0.6359375, 0.6515625, 0.31875, 0.396875, 0.31875, 0.5765625, 0.5, 0.6, 0.590625, 0.678125, 0.5640625, 0.678125, 0.6046875, 0.375, 0.6875, 0.678125, 0.2703125, 0.365625, 0.6015625, 0.2703125, 1.0625, 0.678125, 0.628125, 0.678125, 0.678125, 0.4015625, 0.4890625, 0.40625, 0.6734375, 0.5421875, 0.8796875, 0.534375, 0.5671875, 0.5125, 0.334375, 0.2953125, 0.334375, 0.575],
|
|
6580
7143
|
avg: 0.571792763157895
|
|
@@ -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),o=n(7838),i=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=o,l.prototype.get=i,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),o=n(7838),i=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=o,l.prototype.get=i,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,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},9559:function(t){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+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),o=n(788),i=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var a=t[e];i.call(t,e)&&o(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),o=n(3608);t.exports=function t(e,n,i,a,s){var l=-1,c=e.length;for(i||(i=o),s||(s=[]);++l<c;){var u=e[l];n>0&&i(u)?n>1?t(u,n-1,i,a,s):r(s,u):a||(s[s.length]=u)}return s}},4432:function(t,e,n){var r=n(9026),o=n(3110);t.exports=function(t,e){for(var n=0,i=(e=r(e,t)).length;null!=t&&n<i;)t=t[o(e[n++])];return n&&n==i?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,o=t.length;++r<o;)if(t[r]===e)return r;return-1}},9070:function(t,e,n){var r=n(7028),o=n(3474);t.exports=function t(e,n,i,a,s){return e===n||(null==e||null==n||!o(e)&&!o(n)?e!=e&&n!=n:r(e,n,i,a,t,s))}},7028:function(t,e,n){var r=n(8708),o=n(8705),i=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,v){var b=l(t),x=l(e),m=b?f:s(t),O=x?f:s(e),j=(m=m==d?p:m)==p,k=(O=O==d?p:O)==p,S=m==O;if(S&&c(t)){if(!c(e))return!1;b=!0,j=!1}if(S&&!j)return v||(v=new r),b||u(t)?o(t,e,n,h,y,v):i(t,e,m,n,h,y,v);if(!(1&n)){var w=j&&g.call(t,"__wrapped__"),A=k&&g.call(e,"__wrapped__");if(w||A){var $=w?t.value():t,P=A?e.value():e;return v||(v=new r),y($,P,n,h,v)}}return!!S&&(v||(v=new r),a(t,e,n,h,y,v))}},9548:function(t,e,n){var r=n(8708),o=n(9070);t.exports=function(t,e,n,i){var a=n.length,s=a,l=!i;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(i)var g=i(d,f,u,t,e,p);if(!(void 0===g?o(f,d,3,i,p):g))return!1}}return!0}},3472:function(t,e,n){var r=n(758),o=n(5223),i=n(5346),a=n(163),s=n(8532);t.exports=function(t){return"function"==typeof t?t:null==t?i:"object"==typeof t?a(t)?o(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,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},758:function(t,e,n){var r=n(9548),o=n(597),i=n(6878);t.exports=function(t){var e=o(t);return 1==e.length&&e[0][2]?i(e[0][0],e[0][1]):function(n){return n===t||r(n,t,e)}}},5223:function(t,e,n){var r=n(9070),o=n(9201),i=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=o(n,t);return void 0===a&&a===e?i(n,t):r(e,a,3)}}},8245:function(t,e,n){var r=n(8644),o=n(4432),i=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 o(e,1===t.length?t[0]:t)}:t})):[u];var f=-1;e=r(e,l(i));var p=a(t,(function(t,n,o){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),o=n(5066);t.exports=function(t,e){return r(t,e,(function(e,n){return o(t,n)}))}},6371:function(t,e,n){var r=n(4432),o=n(6539),i=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)&&o(l,i(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),o=n(4280),i=n(201);t.exports=function(t,e){return i(o(t,e,r),t+"")}},6539:function(t,e,n){var r=n(4132),o=n(9026),i=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=o(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:i(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),o=n(8644),i=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(i(e))return o(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),o=n(726),i=n(7801),a=n(7010);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},522:function(t,e,n){var r=n(1995);t.exports=function(t,e){if(t!==e){var n=void 0!==t,o=null===t,i=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||o&&s&&c||!n&&c||!i)return 1;if(!o&&!a&&!u&&t<e||u&&n&&i&&!o&&!a||l&&n&&i||!s&&i||!c)return-1}return 0}},9409:function(t,e,n){var r=n(522);t.exports=function(t,e,n){for(var o=-1,i=t.criteria,a=e.criteria,s=i.length,l=n.length;++o<s;){var c=r(i[o],a[o]);if(c)return o>=l?c:c*("desc"==n[o]?-1:1)}return t.index-e.index}},5525:function(t,e,n){var r=n(3743),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},8705:function(t,e,n){var r=n(3273),o=n(1634),i=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 v=t[g],b=e[g];if(a)var x=c?a(b,v,g,e,t,l):a(v,b,g,t,e,l);if(void 0!==x){if(x)continue;h=!1;break}if(y){if(!o(e,(function(t,e){if(!i(y,e)&&(v===t||s(v,t,n,a,l)))return y.push(e)}))){h=!1;break}}else if(v!==b&&!s(v,b,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),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,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:o.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 v=t[f=c[d]],b=e[f];if(i)var x=l?i(b,v,f,e,t,s):i(v,b,f,t,e,s);if(!(void 0===x?v===b||a(v,b,n,i,s):x)){h=!1;break}y||(y="constructor"==f)}if(h&&!y){var m=t.constructor,O=e.constructor;m==O||!("constructor"in t)||!("constructor"in e)||"function"==typeof m&&m instanceof m&&"function"==typeof O&&O instanceof O||(h=!1)}return s.delete(t),s.delete(e),h}},5557:function(t,e,n){var r=n(2645),o=n(4280),i=n(201);t.exports=function(t){return i(o(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),o=n(7747);t.exports=function(t){for(var e=o(t),n=e.length;n--;){var i=e[n],a=t[i];e[n]=[i,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),o=n(5075),i=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)&&(i(t)||o(t))}},3608:function(t,e,n){var r=n(2596),o=n(5075),i=n(163),a=r?r.isConcatSpreadable:void 0;t.exports=function(t){return i(t)||o(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),o=n(1995),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\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&&!o(t))||a.test(t)||!i.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),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.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__,o=r(n,t);return o<0?(++this.size,n.push([t,e])):n[o][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),o=Math.max;t.exports=function(t,e,n){return e=o(void 0===e?t.length-1:e,0),function(){for(var i=arguments,a=-1,s=o(i.length-e,0),l=Array(s);++a<s;)l[a]=i[e+a];a=-1;for(var c=Array(e+1);++a<e;)c[a]=i[a];return c[e]=n(l),r(t,this,c)}}},2373:function(t,e,n){var r=n(2117),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},201:function(t){t.exports=function(t){return t}},7801:function(t,e,n){var r=n(2453),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(o,(function(t,n,r,o){e.push(r?o.replace(i,"$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),o=n(788),i=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&&i(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||o(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 o=null==t?void 0:r(t,e);return void 0===o?n:o}},5066:function(t,e,n){var r=n(6776),o=n(3096);t.exports=function(t,e){return null!=t&&o(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),o=n(8454);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},4801:function(t){t.exports=function(){return!1}},4155:function(t,e,n){var r=n(7190),o=n(9667),i=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)||i(t)))return!t.length;var e=o(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),o=n(7709);t.exports=function(t){if(!o(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),o=n(9817),i=n(3474),a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,u=l.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(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 o(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=e?e.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=t.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(o.Cache||r),n}o.Cache=r,t.exports=o},4143:function(t,e,n){var r=n(8245),o=n(163);t.exports=function(t,e,n,i){return null==t?[]:(o(e)||(e=null==e?[]:[e]),o(n=i?void 0:n)||(n=null==n?[]:[n]),r(t,e,n))}},9082:function(t,e,n){var r=n(5436),o=n(5557)((function(t,e){return null==t?{}:r(t,e)}));t.exports=o},8532:function(t,e,n){var r=n(1600),o=n(3301),i=n(726),a=n(3110);t.exports=function(t){return i(t)?r(a(t)):o(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),o=0;t.exports=function(t){var e=++o;return r(t)+e}},9787:function(e){"use strict";e.exports=t}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.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 o={};return function(){"use strict";r.r(o),r.d(o,{Flyout:function(){return $t},VictoryTooltip:function(){return Et}});var t=r(4143),e=r.n(t),n=r(3849),i=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:o,_voronoiX:i,_y:a,_y1:s,_y0:l,_voronoiY:u}=t,d=e(r)?r:n,f=e(s)?s:a,p={x:e(i)?i:d,x0:e(o)?o: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,o="object"==typeof n?n:{};return{top:o.top||r,bottom:o.bottom||r,left:o.left||r,right:o.right||r}}function v(t,e){return x(t)?t(e):t}function b(t,e){return e.disableInlineStyles?{}:t&&Object.keys(t).some((e=>x(t[e])))?Object.keys(t).reduce(((n,r)=>(n[r]=v(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 O={groupComponent:d().createElement("g",null)},j=t=>{const e={...O,...t},n=d().useId(),r=d().useContext(m),o=Array.isArray(e.children)?e.children[0]:e.children,{groupComponent:i}=e,a=o&&o.props||{},s=a.groupComponent?{groupComponent:i,standalone:!1}:{},l=c()(s,a,g(e,["children","groupComponent"]),{key:a.key??n}),u=o&&d().cloneElement(o,l);return d().useEffect((()=>{r?.addChild(n,u)}),[e.children]),d().useEffect((()=>()=>r?.removeChild(n)),[]),r?null:u};function k(){return k=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},k.apply(this,arguments)}j.role="portal";const S=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:o,origin:i,...a}=t,s={vectorEffect:"non-scaling-stroke",id:v(r,t)?.toString(),tabIndex:v(o,t),...a};return n?d().createElement("rect",k({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("rect",k({},s,{ref:e}))})),w=t=>{const{children:e,desc:n,id:r,origin:o,tabIndex:i,title:a,...s}=t,l={id:v(r,t)?.toString(),tabIndex:v(i,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:o,...i}=t,a={id:v(n,t)?.toString(),tabIndex:v(r,t),...i};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 P=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,P(e)].join(" ")),P(t)).trim();if(null==t||"string"==typeof t)return t;const o=[];for(const e in t)if(t.hasOwnProperty(e)){const n=t[e];o.push(`${e}(${n})`)}return o.join(" ").trim()};var E=r(1594),z=r.n(E);const C={"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},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}},L={mm:3.8,sm:38,pt:1.33,pc:16,in:96,px:1},W={em:1,ex:.5},_={lineHeight:1,letterSpacing:"0px",fontSize:0,angle:0,fontFamily:""},M=t=>Array.isArray(t)?t:t.toString().split(/\r\n|\r|\n/g),H=(t,e,n)=>{const r=(t=>t*Math.PI/180)(n);return Math.abs(Math.cos(r)*t)+Math.abs(Math.sin(r)*e)},F=(t,e)=>{const n=t.match(/[a-zA-Z%]+/)?.[0],r=Number(t.match(/[0-9.,]+/));let o;return o=n?L.hasOwnProperty(n)?r*L[n]:W.hasOwnProperty(n)?(e?r*e:r*_.fontSize)*W[n]:r:r||0,o},T=(t,e)=>{const n=Array.isArray(t)?t[e]:t,r=c()({},n,_);return Object.assign({},r,{fontFamily:r.fontFamily,letterSpacing:"number"==typeof r.letterSpacing?r.letterSpacing:F(String(r.letterSpacing),r.fontSize),fontSize:"number"==typeof r.fontSize?r.fontSize:F(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:M(t).reduce(((t,n,r)=>{const o=T(e,r),i=n.toString().match(/[(A-Z)(0-9)]/)?1.15*o.fontSize:o.fontSize;return t+o.lineHeight*i}),0))(t,e),o=((t,e)=>{if(void 0===t||""===t||null===t)return 0;const n=M(t).map(((t,n)=>{const r=t.toString().length,{fontSize:o,letterSpacing:i,fontFamily:a}=T(e,n),s=(t=>{const e=t.split(",").map((t=>t.replace(/'|"/g,""))).find((t=>C[t]))||"Helvetica";return C[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)*o+i*Math.max(r-1,0)}));return Math.max(...n)})(t,e);return{width:n?H(o,r,n):o,height:1.05*(n?H(r,o,n):r)}},I=z()((()=>{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})),N=t=>t?`${t.angle}:${t.fontFamily}:${t.fontSize}:${t.letterSpacing}:${t.lineHeight}`:"null",D=z()(((t,e)=>{let n=I();n.isConnected||(I.cache.clear?.(),n=I());const r=M(t);let o=0;for(const[t,i]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=i,r.setAttribute("x","0"),r.setAttribute("y",`${o}`),n.appendChild(r),o+=a.lineHeight*r.getBoundingClientRect().height}const{width:i}=n.getBoundingClientRect();return n.innerHTML="",{width:e?.angle?H(i,o,e?.angle):i,height:e?.angle?H(o,i,e?.angle):o}}),((t,e)=>`${Array.isArray(t)?t.join():t}::${Array.isArray(e)?e.map(N).join():N(e)}`)),V=(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):D(t,e)}(t,e),q={startsWith:["data-","aria-"],exactMatch:[]};function B(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,v(r,t)]})))},Z={fill:"#252525",fontSize:14,fontFamily:"'Gill Sans', 'Gill Sans MT', 'Seravek', '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:o}=t,i=h(e),a=t.origin||{x:0,y:0},s=o?n.y(i.y):n.x(i.x),l=o?n.y(i.y0):n.x(i.x0),c=o?n.x(i.x):n.y(i.y),u=o?n.x(i.x0):n.y(i.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:o,dx:i}=t;if("rtl"===n)return o-e;switch(r){case"middle":return Math.round(o-e/2);case"end":return Math.round(o-e);default:return o+(i||0)}},U=(t,e)=>{const{verticalAnchor:n,y:r,originalDy:o=0}=t,i=r+o;switch(n){case"start":return Math.floor(i);case"end":return Math.ceil(i-e);default:return Math.floor(i-e/2)}},tt=(t,e)=>K(t)?((t,e)=>{const{dy:n,dx:r,transform:o,backgroundStyle:i,backgroundPadding:a,backgroundComponent:s,inline:l,y:u}=t,f=e.map(((t,o)=>{const i=J(e,o-1),s=t.textSize,c=t.fontSize*t.lineHeight,d=Math.ceil(c),f=J(a,o),p=J(a,o-1),g=l&&r||0,h=o&&!l?i.fontSize*i.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,o=e.map((t=>t.widthWithPadding)),i=-o.reduce(((t,e)=>t+e),0)/2;switch(r){case"start":return o.reduce(((t,e,r)=>r<n?t+e:t),0);case"end":return o.reduce(((t,e,r)=>r>n?t-e:t),0);default:return o.reduce(((t,e,r)=>r===n?t+e/2:t+(r<n?e:0)),i)}})(t,f,n)+r-g.left:r,v=l?U(t,h)-g.top:p,b={key:`tspan-background-${n}`,height:h,style:J(i,n),width:e.widthWithPadding,transform:o,x:y-g.left,y:v};return d().cloneElement(s,c()({},s.props,b))}))})(t,e):((t,e)=>{const{dx:n=0,transform:r,backgroundComponent:o,backgroundStyle:i,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 o=r?0:l/2;return t+n.height*(e[r].lineHeight-o)}),0),p=a?u.reduce(((t,e,r)=>{const o=r?n:0;return t+e.width+o}),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:i,transform:r,width:p+s.left+s.right,x:a?g-s.left:g+n-s.left,y:h};return d().cloneElement(o,c()({},o.props,y))})(t,e),et=(t,e,n)=>{const{inline:r}=e,o=J(t,n);return n&&!r?((t,e,n)=>{const r=J(t,e),o=J(t,e-1),i=o.fontSize*o.lineHeight,a=r.fontSize*r.lineHeight,s=o.fontSize-o.capHeight,l=r.fontSize-r.capHeight,c=i-o.fontSize/2+r.fontSize/2-i/2+a/2-l/2+s/2;return K(n)?c+r.backgroundPadding.top+o.backgroundPadding.bottom:c})(t,n,e):r?0===n?o.backgroundPadding.top:void 0:o.backgroundPadding.top},nt=t=>{const e=v(t.ariaLabel,t),n=J(t.style),r=(t=>{const e=v(t.lineHeight,t);return Array.isArray(e)&&p()(e)?[1]:e})(t),o=t.direction?v(t.direction,t):"inherit",i=t.textAnchor?v(t.textAnchor,t):n.textAnchor||"start",a=t.verticalAnchor?v(t.verticalAnchor,t):n.verticalAnchor||"middle",s=t.dx?v(t.dx,t):0,l=((t,e,n)=>{const r=t.dy?v(t.dy,t):0,o=t.inline?1:t.text.length,i=v(t.capHeight,t),a=e?v(e,t):"middle",s=[...Array(o).keys()].map((e=>J(t.style,e).fontSize)),l=[...Array(o).keys()].map((t=>J(n,t)));if("start"===a)return r+(i/2+l[0]/2)*s[0];if(t.inline)return"end"===a?r+(i/2-l[0]/2)*s[0]:r+i/2*s[0];if(1===o)return"end"===a?r+(i/2+(.5-o)*l[0])*s[0]:r+(i/2+(.5-o/2)*l[0])*s[0];const c=[...Array(o).keys()].reduce(((t,e)=>t+(i/2+(.5-o)*l[e])*s[e]/o),0);return"end"===a?r+c:r+c/2+i/2*l[o-1]*s[o-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,o=J(t.style),i=r?function(t,e){const{labelPlacement:n,datum:r}=t;if(!n||"vertical"===n)return 0;const o=$(t,r);let i=0;return 0===o||180===o?i=90:o>0&&o<180?i=90-o:o>180&&o<360&&(i=270-o),i+(o>90&&o<180||o>270?1:-1)*("perpendicular"===n?0:90)}(t):0,a=void 0===o.angle?v(t.angle,t):o.angle,s=void 0===a?i:a,l=t.transform||o.transform,c=l&&v(l,t);return c||s?P(c,s&&{rotate:[s,e,n]}):void 0})(t,c,u);return Object.assign({},t,{ariaLabel:e,lineHeight:r,direction:o,textAnchor:i,verticalAnchor:a,dx:s,dy:l,originalDy:v(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},ot=t=>{const e=(t=>{const e=((t,e)=>{if(null==t)return;if(Array.isArray(t))return t.map((t=>v(t,e)));const n=v(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=b(t,e);return{fontSize:Y(n)}}const n=t=>{const n=b(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=>b(t,e))):b(t,e)})(t.backgroundStyle,Object.assign({},t,{text:e,style:n})),o=(t=>t.backgroundPadding&&Array.isArray(t.backgroundPadding)?t.backgroundPadding.map((e=>y({padding:v(e,t)}))):y({padding:v(t.backgroundPadding,t)}))(Object.assign({},t,{text:e,style:n,backgroundStyle:r})),i=v(t.id,t);return Object.assign({},t,{backgroundStyle:r,backgroundPadding:o,style:n,text:e,id:i})})(c()({},t,rt));if(null===e.text||void 0===e.text)return null;const n=nt(e),{text:r,style:o,capHeight:i,backgroundPadding:a,lineHeight:s}=n,l=r.map(((t,e)=>{const n=J(o,e),r=F(`${i}em`,n.fontSize),l=J(s,e);return{style:n,fontSize:n.fontSize||Z.fontSize,capHeight:r,text:t,textSize:V(t,n),lineHeight:l,backgroundPadding:J(a,e)}})),u=((t,e)=>{const{ariaLabel:n,inline:r,className:o,title:i,events:a,direction:s,text:l,textAnchor:c,dx:u,dy:f,transform:p,x:g,y:h,desc:y,id:b,tabIndex:x,tspanComponent:m,textComponent:O}=t,j=G(t),k={"aria-label":n,key:"text",...a,direction:s,dx:u,x:g,y:h+f,transform:p,className:o,title:i,desc:v(y,t),tabIndex:v(x,t),id:b,...j},S=l.map(((n,o)=>{const i=e[o].style,a={key:`${b}-key-${o}`,x:r?void 0:g,dx:r?u+e[o].backgroundPadding.left:u,dy:et(e,t,o),textAnchor:i.textAnchor||c,style:i,children:n};return d().cloneElement(m,a)}));return d().cloneElement(O,k,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};ot.displayName="VictoryLabel",ot.role="label",ot.defaultStyles=Z;const it=["#252525","#525252","#737373","#969696","#bdbdbd","#d9d9d9","#f0f0f0"],at="#252525",st="#969696",lt={width:450,height:300,padding:50,colorScale:it},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:it},lt),histogram:Object.assign({style:{data:{fill:st,stroke:at,strokeWidth:2},labels:ct}},lt),legend:{colorScale:it,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:it,width:400,height:400,padding:50},scatter:Object.assign({style:{data:{fill:at,stroke:"transparent",strokeWidth:0},labels:ct}},lt),stack:Object.assign({colorScale:it},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",vt={width:350,height:350,padding:50},bt={fontFamily:"'Helvetica Neue', 'Helvetica', sans-serif",fontSize:12,letterSpacing:"normal",padding:8,fill:ht,stroke:"transparent",strokeWidth:0},xt=Object.assign({textAnchor:"middle"},bt),mt="round",Ot="round",jt={grayscale:dt,material:{area:Object.assign({style:{data:{fill:yt},labels:bt}},vt),axis:Object.assign({style:{axis:{fill:"transparent",stroke:gt,strokeWidth:2,strokeLinecap:mt,strokeLinejoin:Ot},axisLabel:Object.assign({},xt,{padding:8,stroke:"transparent"}),grid:{fill:"none",stroke:pt,strokeDasharray:"10, 5",strokeLinecap:mt,strokeLinejoin:Ot,pointerEvents:"painted"},ticks:{fill:"transparent",size:5,stroke:gt,strokeWidth:1,strokeLinecap:mt,strokeLinejoin:Ot},tickLabels:Object.assign({},bt,{fill:ht})}},vt),polarDependentAxis:Object.assign({style:{ticks:{fill:"transparent",size:1,stroke:"transparent"}}}),bar:Object.assign({style:{data:{fill:ht,padding:8,strokeWidth:0},labels:bt}},vt),boxplot:Object.assign({style:{max:{padding:8,stroke:ht,strokeWidth:1},maxLabels:Object.assign({},bt,{padding:3}),median:{padding:8,stroke:ht,strokeWidth:1},medianLabels:Object.assign({},bt,{padding:3}),min:{padding:8,stroke:ht,strokeWidth:1},minLabels:Object.assign({},bt,{padding:3}),q1:{padding:8,fill:ht},q1Labels:Object.assign({},bt,{padding:3}),q3:{padding:8,fill:ht},q3Labels:Object.assign({},bt,{padding:3})},boxWidth:20},vt),candlestick:Object.assign({style:{data:{stroke:ht},labels:Object.assign({},bt,{padding:5})},candleColors:{positive:"#ffffff",negative:ht}},vt),chart:vt,errorbar:Object.assign({borderWidth:8,style:{data:{fill:"transparent",opacity:1,stroke:ht,strokeWidth:2},labels:bt}},vt),group:Object.assign({colorScale:ft},vt),histogram:Object.assign({style:{data:{fill:ht,stroke:yt,strokeWidth:2},labels:bt}},vt),legend:{colorScale:ft,gutter:10,orientation:"vertical",titleOrientation:"top",style:{data:{type:"circle"},labels:bt,title:Object.assign({},bt,{padding:5})}},line:Object.assign({style:{data:{fill:"transparent",opacity:1,stroke:ht,strokeWidth:2},labels:bt}},vt),pie:Object.assign({colorScale:ft,style:{data:{padding:8,stroke:pt,strokeWidth:1},labels:Object.assign({},bt,{padding:20})}},vt),scatter:Object.assign({style:{data:{fill:ht,opacity:1,stroke:"transparent",strokeWidth:0},labels:bt}},vt),stack:Object.assign({colorScale:ft},vt),tooltip:{style:Object.assign({},bt,{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({},bt,{padding:5,pointerEvents:"none"}),flyout:{stroke:yt,strokeWidth:1,fill:"#f0f0f0",pointerEvents:"none"}}},vt)}};function kt(){return kt=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},kt.apply(this,arguments)}const St=(0,u.forwardRef)(((t,e)=>{const{desc:n,id:r,tabIndex:o,origin:i,...a}=t,s={id:v(r,t)?.toString(),tabIndex:v(o,t),...a};return n?d().createElement("path",kt({},s,{ref:e}),d().createElement("desc",null,n)):d().createElement("path",kt({},s,{ref:e}))})),wt=t=>{const e=t.orientation||"top";return"left"===e||"right"===e?(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:o,height:i,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*(o/2),p=u+s*(o/2),g=d+i/2,h=d-i/2,y=s*(l-f)>0?0:t.pointerLength,v=`${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 ${v} ${f+s*n}, ${g}\n L ${p-s*n}, ${g}\n A ${v} ${p}, ${g-n}\n L ${p}, ${h+n}\n A ${v} ${p-s*n}, ${h}\n L ${f+s*n}, ${h}\n A ${v} ${f}, ${h+n}\n z`})(t):(t=>{const{pointerWidth:e,cornerRadius:n,orientation:r,width:o,height:i,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*(i/2),p=d-s*(i/2),g=u+o/2,h=u-o/2,y=s*(c-f)<0?0:t.pointerLength,v=`${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 ${v} ${g}, ${f-s*n}\n L ${g}, ${p+s*n}\n A ${v} ${g-n}, ${p}\n L ${h+n}, ${p}\n A ${v} ${h}, ${p+s*n}\n L ${h}, ${f-s*n}\n A ${v} ${h+n}, ${f}\n z`})(t)},At={pathComponent:d().createElement(St,null),role:"presentation",shapeRendering:"auto"},$t=t=>{const e=(t=>{const e=v(t.id,t),n=b(t.style,t);return{...t,id:e,style:n}})(c()({},t,At)),n=G(e);B(e.height,"Flyout props[height] is undefined"),B(e.width,"Flyout props[width] is undefined"),B(e.x,"Flyout props[x] is undefined"),B(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:wt(r),className:e.className,shapeRendering:e.shapeRendering,role:e.role,transform:e.transform,clipPath:e.clipPath})},Pt={cornerRadius:5,pointerLength:10,pointerWidth:10};class Et extends d().Component{static displayName="VictoryTooltip";static role="tooltip";static defaultProps={active:!1,renderInPortal:!0,labelComponent:d().createElement(ot,null),flyoutComponent:d().createElement($t,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||jt.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),o=e&&e.tooltip&&e.tooltip.flyoutStyle?e.tooltip.flyoutStyle:{},i=t.flyoutStyle?c()({},t.flyoutStyle,o):o,a=Array.isArray(r)?r.map((e=>b(e,t))):b(r,t);return{style:a,flyoutStyle:b(i,Object.assign({},t,{style:a}))}}getEvaluatedProps(t){const{cornerRadius:e,centerOffset:n,dx:r,dy:o}=t,a=v(t.active,t);let s=v(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=v(t.orientation,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c}))||this.getDefaultOrientation(t),d=y({padding:v(t.flyoutPadding,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u}))||this.getLabelPadding(l)}),f=v(t.pointerWidth,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),p=v(t.pointerLength,Object.assign({},t,{active:a,text:s,style:l,flyoutStyle:c,orientation:u})),g=V(s,l),{flyoutHeight:h,flyoutWidth:b}=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:b,flyoutPadding:d,pointerWidth:f,pointerLength:p}),m=i()(n)&&void 0!==n?.x?v(n.x,x):0,O=i()(n)&&void 0!==n?.y?v(n.y,x):0;return{...x,centerOffset:{x:m,y:O},dx:void 0!==r?v(r,x):0,dy:void 0!==o?v(o,x):0,cornerRadius:v(e,x)}}getCalculatedValues(t){const{style:e,text:n,flyoutStyle:r,flyoutHeight:o,flyoutWidth:i}=t,a={height:o,width:i};return{style:e,flyoutStyle:r,labelSize:V(n,e),flyoutDimensions:a,flyoutCenter:this.getFlyoutCenter(t,a),transform:this.getTransform(t)}}getTransform(t){const{x:e,y:n,style:r}=t,o=(r||{}).angle||t.angle||this.getDefaultAngle(t);return o?`rotate(${o} ${e} ${n})`:void 0}getDefaultAngle(t){const{polar:e,labelPlacement:n,orientation:r,datum:o}=t;if(!e||!n||"vertical"===n)return 0;const i=$(t,o);let a=0;return 0===i||180===i?a="top"===r&&180===i?270:90:i>0&&i<180?a=90-i:i>180&&i<360&&(a=270-i),a+(i>90&&i<180||i>270?1:-1)*("perpendicular"===n?0:90)}constrainTooltip(t,e,n){const{x:r,y:o}=t,{width:i,height:a}=n,s=[0,e.width],l=[0,e.height],c=[r-i/2,r+i/2],u=[o-a/2,o+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(o+f[0]-f[1])}}getFlyoutCenter(t,e){const{x:n,y:r,dx:o,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*o):n+o,y:"top"===l||"bottom"===l?r-g*(s+d/2-g*a):r+a},y=i()(t.center)&&void 0!==t.center.x?t.center.x:h.x,v=i()(t.center)&&void 0!==t.center.y?t.center.y:h.y,b={x:y+u.x,y:v+u.y};return c?this.constrainTooltip(b,t,e):b}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:o,flyoutHeight:i,flyoutWidth:a,flyoutPadding:s}=t,l=v(t.cornerRadius,t);return{flyoutHeight:i?v(i,t):(()=>{const t=e.height+s.top+s.bottom,r="top"===n||"bottom"===n?2*l:2*l+o;return Math.max(r,t)})(),flyoutWidth:a?v(a,t):(()=>{const t=e.width+s.left+s.right,o="left"===n||"right"===n?2*l+r:2*l;return Math.max(o,t)})()}}getLabelProps(t,e){const{flyoutCenter:n,style:r,labelSize:o,dy:i=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:i,dx:a,style:r,x:(()=>{if(!g||"middle"===g)return n.x;const t="end"===g?-1:1;return n.x-t*(o.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 o=n.y+r.height/2,i=n.y-r.height/2,a=n.x-r.width/2,s=n.x+r.width/2,l=[{side:"top",val:i>t.y?i-t.y:-1},{side:"bottom",val:o<t.y?t.y-o:-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:o}=e,{x:i,y:a,dx:s,dy:l,datum:u,activePoints:d,index:f,pointerLength:p,pointerWidth:g,cornerRadius:h,events:y,flyoutComponent:b}=t,x=v(t.pointerOrientation,t);return c()({},b.props,{x:i,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:i,y:a},o,n),key:`${this.id}-tooltip-${f}`,width:n.width,height:n.height,style:r,center:o})}renderTooltip(t){const e=v(t.active,t),{renderInPortal:n}=t;if(!e)return null;const r=this.getEvaluatedProps(t),{flyoutComponent:o,labelComponent:i,groupComponent:a}=r,s=this.getCalculatedValues(r),l=[d().cloneElement(o,this.getFlyoutProps(r,s)),d().cloneElement(i,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"]),o=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),i=void 0===o?{}:{horizontal:o};return c()(i,t,r,e)}(this.props,Pt,"tooltip");return this.renderTooltip(t)}}}(),o}()}));
|
|
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', 'Seravek', '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.
|
|
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.
|
|
24
|
+
"victory-core": "37.2.0"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"react": ">=16.6.0"
|