@vitessce/layer-controller 3.9.2 → 3.9.3

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.
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
3
3
  var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
4
4
  var _a2, _b;
5
5
  import * as React from "react";
6
- import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, useState, useEffect, useCallback } from "react";
6
+ import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback } from "react";
7
7
  import * as ReactDOM from "react-dom";
8
8
  import ReactDOM__default from "react-dom";
9
9
  import { PopperMenu, TitleInfo, useLoaders, useCoordination, useAuxiliaryCoordination, useComponentLayout, useClosestVitessceContainerSize, useWindowDimensions, useObsLocationsData, useObsSegmentationsData, useImageData, useReady } from "@vitessce/vit-s";
@@ -419,9 +419,9 @@ function parse$4(value, root2, parent, rule, rules, rulesets, pseudo, points, de
419
419
  function ruleset(value, root2, parent, index2, offset2, rules, points, type, props, children, length2) {
420
420
  var post = offset2 - 1;
421
421
  var rule = offset2 === 0 ? rules : [""];
422
- var size = sizeof(rule);
422
+ var size2 = sizeof(rule);
423
423
  for (var i2 = 0, j = 0, k = 0; i2 < index2; ++i2)
424
- for (var x = 0, y = substr(value, post + 1, post = abs$1(j = points[i2])), z = value; x < size; ++x)
424
+ for (var x = 0, y = substr(value, post + 1, post = abs$1(j = points[i2])), z = value; x < size2; ++x)
425
425
  if (z = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
426
426
  props[k++] = z;
427
427
  return node$1(value, root2, parent, offset2 === 0 ? RULESET : type, props, children, length2);
@@ -814,14 +814,14 @@ var createCache = function createCache2(options) {
814
814
  cache2.sheet.hydrate(nodesToHydrate);
815
815
  return cache2;
816
816
  };
817
- function _extends$2() {
818
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n2) {
817
+ function _extends$3() {
818
+ return _extends$3 = Object.assign ? Object.assign.bind() : function(n2) {
819
819
  for (var e2 = 1; e2 < arguments.length; e2++) {
820
820
  var t = arguments[e2];
821
821
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
822
822
  }
823
823
  return n2;
824
- }, _extends$2.apply(null, arguments);
824
+ }, _extends$3.apply(null, arguments);
825
825
  }
826
826
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
827
827
  function getDefaultExportFromCjs(x) {
@@ -2389,7 +2389,7 @@ var createStyled$1 = function createStyled(tag, options) {
2389
2389
  }
2390
2390
  });
2391
2391
  Styled.withComponent = function(nextTag, nextOptions) {
2392
- var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
2392
+ var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
2393
2393
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
2394
2394
  }));
2395
2395
  return newStyled2.apply(void 0, styles2);
@@ -6673,9 +6673,9 @@ const generateGridStyles = ({
6673
6673
  }
6674
6674
  };
6675
6675
  };
6676
- const generateSizeClassNames = (size) => {
6676
+ const generateSizeClassNames = (size2) => {
6677
6677
  const classNames = [];
6678
- Object.entries(size).forEach(([key, value]) => {
6678
+ Object.entries(size2).forEach(([key, value]) => {
6679
6679
  if (value !== false && value !== void 0) {
6680
6680
  classNames.push(`grid-${key}-${String(value)}`);
6681
6681
  }
@@ -6771,10 +6771,10 @@ function createGrid(options = {}) {
6771
6771
  direction,
6772
6772
  spacing,
6773
6773
  wrap,
6774
- size
6774
+ size: size2
6775
6775
  } = ownerState;
6776
6776
  const slots = {
6777
- root: ["root", container && "container", wrap !== "wrap" && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : []]
6777
+ root: ["root", container && "container", wrap !== "wrap" && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size2), ...container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : []]
6778
6778
  };
6779
6779
  return composeClasses(slots, (slot) => generateUtilityClass(componentName, slot), {});
6780
6780
  };
@@ -6823,7 +6823,7 @@ function createGrid(options = {}) {
6823
6823
  unstable_level: level = 0,
6824
6824
  ...other
6825
6825
  } = props;
6826
- const size = parseResponsiveProp(sizeProp, theme.breakpoints, (val) => val !== false);
6826
+ const size2 = parseResponsiveProp(sizeProp, theme.breakpoints, (val) => val !== false);
6827
6827
  const offset2 = parseResponsiveProp(offsetProp, theme.breakpoints);
6828
6828
  const columns = inProps.columns ?? (level ? void 0 : columnsProp);
6829
6829
  const spacing = inProps.spacing ?? (level ? void 0 : spacingProp);
@@ -6839,7 +6839,7 @@ function createGrid(options = {}) {
6839
6839
  spacing,
6840
6840
  rowSpacing,
6841
6841
  columnSpacing,
6842
- size,
6842
+ size: size2,
6843
6843
  offset: offset2
6844
6844
  };
6845
6845
  const classes = useUtilityClasses2(ownerState, theme);
@@ -7304,17 +7304,17 @@ function createTypography(palette, typography) {
7304
7304
  }
7305
7305
  }
7306
7306
  const coef = fontSize / 14;
7307
- const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
7308
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({
7307
+ const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
7308
+ const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
7309
7309
  fontFamily,
7310
7310
  fontWeight,
7311
- fontSize: pxToRem(size),
7311
+ fontSize: pxToRem(size2),
7312
7312
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
7313
7313
  lineHeight,
7314
7314
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
7315
7315
  // across font-families can cause issues with the kerning.
7316
7316
  ...fontFamily === defaultFontFamily ? {
7317
- letterSpacing: `${round$1(letterSpacing / size)}em`
7317
+ letterSpacing: `${round$1(letterSpacing / size2)}em`
7318
7318
  } : {},
7319
7319
  ...casing,
7320
7320
  ...allVariants
@@ -8665,14 +8665,14 @@ function chainPropTypes(propType1, propType2) {
8665
8665
  return propType1(...args) || propType2(...args);
8666
8666
  };
8667
8667
  }
8668
- function _extends$1() {
8669
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
8668
+ function _extends$2() {
8669
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n2) {
8670
8670
  for (var e2 = 1; e2 < arguments.length; e2++) {
8671
8671
  var t = arguments[e2];
8672
8672
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
8673
8673
  }
8674
8674
  return n2;
8675
- }, _extends$1.apply(null, arguments);
8675
+ }, _extends$2.apply(null, arguments);
8676
8676
  }
8677
8677
  function _objectWithoutPropertiesLoose(r2, e2) {
8678
8678
  if (null == r2) return {};
@@ -8683,13 +8683,13 @@ function _objectWithoutPropertiesLoose(r2, e2) {
8683
8683
  }
8684
8684
  return t;
8685
8685
  }
8686
- function _setPrototypeOf(t, e2) {
8687
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
8686
+ function _setPrototypeOf$1(t, e2) {
8687
+ return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e3) {
8688
8688
  return t2.__proto__ = e3, t2;
8689
- }, _setPrototypeOf(t, e2);
8689
+ }, _setPrototypeOf$1(t, e2);
8690
8690
  }
8691
- function _inheritsLoose(t, o2) {
8692
- t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
8691
+ function _inheritsLoose$1(t, o2) {
8692
+ t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o2);
8693
8693
  }
8694
8694
  const config$1 = {
8695
8695
  disabled: false
@@ -8721,7 +8721,7 @@ var ENTERING = "entering";
8721
8721
  var ENTERED = "entered";
8722
8722
  var EXITING = "exiting";
8723
8723
  var Transition$1 = /* @__PURE__ */ function(_React$Component) {
8724
- _inheritsLoose(Transition2, _React$Component);
8724
+ _inheritsLoose$1(Transition2, _React$Component);
8725
8725
  function Transition2(props, context) {
8726
8726
  var _this;
8727
8727
  _this = _React$Component.call(this, props, context) || this;
@@ -9137,7 +9137,7 @@ Transition$1.EXITED = EXITED;
9137
9137
  Transition$1.ENTERING = ENTERING;
9138
9138
  Transition$1.ENTERED = ENTERED;
9139
9139
  Transition$1.EXITING = EXITING;
9140
- function _assertThisInitialized(e2) {
9140
+ function _assertThisInitialized$1(e2) {
9141
9141
  if (void 0 === e2) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
9142
9142
  return e2;
9143
9143
  }
@@ -9245,11 +9245,11 @@ var defaultProps$P = {
9245
9245
  }
9246
9246
  };
9247
9247
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9248
- _inheritsLoose(TransitionGroup2, _React$Component);
9248
+ _inheritsLoose$1(TransitionGroup2, _React$Component);
9249
9249
  function TransitionGroup2(props, context) {
9250
9250
  var _this;
9251
9251
  _this = _React$Component.call(this, props, context) || this;
9252
- var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
9252
+ var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
9253
9253
  _this.state = {
9254
9254
  contextValue: {
9255
9255
  isMounting: true
@@ -9286,7 +9286,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
9286
9286
  }
9287
9287
  if (this.mounted) {
9288
9288
  this.setState(function(state) {
9289
- var children = _extends$1({}, state.children);
9289
+ var children = _extends$2({}, state.children);
9290
9290
  delete children[child.key];
9291
9291
  return {
9292
9292
  children
@@ -9585,7 +9585,7 @@ const Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(inProps, re
9585
9585
  const autoTransitionDuration = React.useRef();
9586
9586
  const collapsedSize = typeof collapsedSizeProp === "number" ? `${collapsedSizeProp}px` : collapsedSizeProp;
9587
9587
  const isHorizontal = orientation === "horizontal";
9588
- const size = isHorizontal ? "width" : "height";
9588
+ const size2 = isHorizontal ? "width" : "height";
9589
9589
  const nodeRef = React.useRef(null);
9590
9590
  const handleRef = useForkRef$1(ref, nodeRef);
9591
9591
  const normalizedTransitionCallback = (callback) => (maybeIsAppearing) => {
@@ -9603,7 +9603,7 @@ const Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(inProps, re
9603
9603
  if (wrapperRef.current && isHorizontal) {
9604
9604
  wrapperRef.current.style.position = "absolute";
9605
9605
  }
9606
- node2.style[size] = collapsedSize;
9606
+ node2.style[size2] = collapsedSize;
9607
9607
  if (onEnter) {
9608
9608
  onEnter(node2, isAppearing);
9609
9609
  }
@@ -9630,20 +9630,20 @@ const Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(inProps, re
9630
9630
  } else {
9631
9631
  node2.style.transitionDuration = typeof transitionDuration === "string" ? transitionDuration : `${transitionDuration}ms`;
9632
9632
  }
9633
- node2.style[size] = `${wrapperSize}px`;
9633
+ node2.style[size2] = `${wrapperSize}px`;
9634
9634
  node2.style.transitionTimingFunction = transitionTimingFunction;
9635
9635
  if (onEntering) {
9636
9636
  onEntering(node2, isAppearing);
9637
9637
  }
9638
9638
  });
9639
9639
  const handleEntered = normalizedTransitionCallback((node2, isAppearing) => {
9640
- node2.style[size] = "auto";
9640
+ node2.style[size2] = "auto";
9641
9641
  if (onEntered) {
9642
9642
  onEntered(node2, isAppearing);
9643
9643
  }
9644
9644
  });
9645
9645
  const handleExit = normalizedTransitionCallback((node2) => {
9646
- node2.style[size] = `${getWrapperSize()}px`;
9646
+ node2.style[size2] = `${getWrapperSize()}px`;
9647
9647
  if (onExit) {
9648
9648
  onExit(node2);
9649
9649
  }
@@ -9668,7 +9668,7 @@ const Collapse = /* @__PURE__ */ React.forwardRef(function Collapse2(inProps, re
9668
9668
  } else {
9669
9669
  node2.style.transitionDuration = typeof transitionDuration === "string" ? transitionDuration : `${transitionDuration}ms`;
9670
9670
  }
9671
- node2.style[size] = collapsedSize;
9671
+ node2.style[size2] = collapsedSize;
9672
9672
  node2.style.transitionTimingFunction = transitionTimingFunction;
9673
9673
  if (onExiting) {
9674
9674
  onExiting(node2);
@@ -11825,7 +11825,7 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
11825
11825
  className,
11826
11826
  color: color2 = "primary",
11827
11827
  disableShrink = false,
11828
- size = 40,
11828
+ size: size2 = 40,
11829
11829
  style: style2,
11830
11830
  thickness = 3.6,
11831
11831
  value = 0,
@@ -11836,7 +11836,7 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
11836
11836
  ...props,
11837
11837
  color: color2,
11838
11838
  disableShrink,
11839
- size,
11839
+ size: size2,
11840
11840
  thickness,
11841
11841
  value,
11842
11842
  variant
@@ -11855,8 +11855,8 @@ const CircularProgress = /* @__PURE__ */ React.forwardRef(function CircularProgr
11855
11855
  return /* @__PURE__ */ jsxRuntimeExports.jsx(CircularProgressRoot, {
11856
11856
  className: clsx(classes.root, className),
11857
11857
  style: {
11858
- width: size,
11859
- height: size,
11858
+ width: size2,
11859
+ height: size2,
11860
11860
  ...rootStyle,
11861
11861
  ...style2
11862
11862
  },
@@ -11956,11 +11956,11 @@ const useUtilityClasses$g = (ownerState) => {
11956
11956
  disabled,
11957
11957
  color: color2,
11958
11958
  edge,
11959
- size,
11959
+ size: size2,
11960
11960
  loading
11961
11961
  } = ownerState;
11962
11962
  const slots = {
11963
- root: ["root", loading && "loading", disabled && "disabled", color2 !== "default" && `color${capitalize$1(color2)}`, edge && `edge${capitalize$1(edge)}`, `size${capitalize$1(size)}`],
11963
+ root: ["root", loading && "loading", disabled && "disabled", color2 !== "default" && `color${capitalize$1(color2)}`, edge && `edge${capitalize$1(edge)}`, `size${capitalize$1(size2)}`],
11964
11964
  loadingIndicator: ["loadingIndicator"],
11965
11965
  loadingWrapper: ["loadingWrapper"]
11966
11966
  };
@@ -12113,7 +12113,7 @@ const IconButton = /* @__PURE__ */ React.forwardRef(function IconButton2(inProps
12113
12113
  color: color2 = "default",
12114
12114
  disabled = false,
12115
12115
  disableFocusRipple = false,
12116
- size = "medium",
12116
+ size: size2 = "medium",
12117
12117
  id: idProp,
12118
12118
  loading = null,
12119
12119
  loadingIndicator: loadingIndicatorProp,
@@ -12133,7 +12133,7 @@ const IconButton = /* @__PURE__ */ React.forwardRef(function IconButton2(inProps
12133
12133
  disableFocusRipple,
12134
12134
  loading,
12135
12135
  loadingIndicator,
12136
- size
12136
+ size: size2
12137
12137
  };
12138
12138
  const classes = useUtilityClasses$g(ownerState);
12139
12139
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(IconButtonRoot, {
@@ -12627,13 +12627,13 @@ const useUtilityClasses$f = (ownerState) => {
12627
12627
  hiddenLabel,
12628
12628
  multiline,
12629
12629
  readOnly,
12630
- size,
12630
+ size: size2,
12631
12631
  startAdornment,
12632
12632
  type
12633
12633
  } = ownerState;
12634
12634
  const slots = {
12635
- root: ["root", `color${capitalize$1(color2)}`, disabled && "disabled", error2 && "error", fullWidth && "fullWidth", focused && "focused", formControl && "formControl", size && size !== "medium" && `size${capitalize$1(size)}`, multiline && "multiline", startAdornment && "adornedStart", endAdornment && "adornedEnd", hiddenLabel && "hiddenLabel", readOnly && "readOnly"],
12636
- input: ["input", disabled && "disabled", type === "search" && "inputTypeSearch", multiline && "inputMultiline", size === "small" && "inputSizeSmall", hiddenLabel && "inputHiddenLabel", startAdornment && "inputAdornedStart", endAdornment && "inputAdornedEnd", readOnly && "readOnly"]
12635
+ root: ["root", `color${capitalize$1(color2)}`, disabled && "disabled", error2 && "error", fullWidth && "fullWidth", focused && "focused", formControl && "formControl", size2 && size2 !== "medium" && `size${capitalize$1(size2)}`, multiline && "multiline", startAdornment && "adornedStart", endAdornment && "adornedEnd", hiddenLabel && "hiddenLabel", readOnly && "readOnly"],
12636
+ input: ["input", disabled && "disabled", type === "search" && "inputTypeSearch", multiline && "inputMultiline", size2 === "small" && "inputSizeSmall", hiddenLabel && "inputHiddenLabel", startAdornment && "inputAdornedStart", endAdornment && "inputAdornedEnd", readOnly && "readOnly"]
12637
12637
  };
12638
12638
  return composeClasses(slots, getInputBaseUtilityClass, classes);
12639
12639
  };
@@ -12668,8 +12668,8 @@ const InputBaseRoot = styled("div", {
12668
12668
  }, {
12669
12669
  props: ({
12670
12670
  ownerState,
12671
- size
12672
- }) => ownerState.multiline && size === "small",
12671
+ size: size2
12672
+ }) => ownerState.multiline && size2 === "small",
12673
12673
  style: {
12674
12674
  paddingTop: 1
12675
12675
  }
@@ -12851,7 +12851,7 @@ const InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(inProps,
12851
12851
  readOnly,
12852
12852
  renderSuffix,
12853
12853
  rows,
12854
- size,
12854
+ size: size2,
12855
12855
  slotProps = {},
12856
12856
  slots = {},
12857
12857
  startAdornment,
@@ -13364,16 +13364,16 @@ const useUtilityClasses$e = (ownerState) => {
13364
13364
  color: color2,
13365
13365
  disableElevation,
13366
13366
  fullWidth,
13367
- size,
13367
+ size: size2,
13368
13368
  variant,
13369
13369
  loading,
13370
13370
  loadingPosition,
13371
13371
  classes
13372
13372
  } = ownerState;
13373
13373
  const slots = {
13374
- root: ["root", loading && "loading", variant, `${variant}${capitalize$1(color2)}`, `size${capitalize$1(size)}`, `${variant}Size${capitalize$1(size)}`, `color${capitalize$1(color2)}`, disableElevation && "disableElevation", fullWidth && "fullWidth", loading && `loadingPosition${capitalize$1(loadingPosition)}`],
13375
- startIcon: ["icon", "startIcon", `iconSize${capitalize$1(size)}`],
13376
- endIcon: ["icon", "endIcon", `iconSize${capitalize$1(size)}`],
13374
+ root: ["root", loading && "loading", variant, `${variant}${capitalize$1(color2)}`, `size${capitalize$1(size2)}`, `${variant}Size${capitalize$1(size2)}`, `color${capitalize$1(color2)}`, disableElevation && "disableElevation", fullWidth && "fullWidth", loading && `loadingPosition${capitalize$1(loadingPosition)}`],
13375
+ startIcon: ["icon", "startIcon", `iconSize${capitalize$1(size2)}`],
13376
+ endIcon: ["icon", "endIcon", `iconSize${capitalize$1(size2)}`],
13377
13377
  loadingIndicator: ["loadingIndicator"],
13378
13378
  loadingWrapper: ["loadingWrapper"]
13379
13379
  };
@@ -13832,7 +13832,7 @@ const Button = /* @__PURE__ */ React.forwardRef(function Button2(inProps, ref) {
13832
13832
  loading = null,
13833
13833
  loadingIndicator: loadingIndicatorProp,
13834
13834
  loadingPosition = "center",
13835
- size = "medium",
13835
+ size: size2 = "medium",
13836
13836
  startIcon: startIconProp,
13837
13837
  type,
13838
13838
  variant = "text",
@@ -13855,7 +13855,7 @@ const Button = /* @__PURE__ */ React.forwardRef(function Button2(inProps, ref) {
13855
13855
  loading,
13856
13856
  loadingIndicator,
13857
13857
  loadingPosition,
13858
- size,
13858
+ size: size2,
13859
13859
  type,
13860
13860
  variant
13861
13861
  };
@@ -14377,10 +14377,10 @@ const useUtilityClasses$c = (ownerState) => {
14377
14377
  classes,
14378
14378
  indeterminate,
14379
14379
  color: color2,
14380
- size
14380
+ size: size2
14381
14381
  } = ownerState;
14382
14382
  const slots = {
14383
- root: ["root", indeterminate && "indeterminate", `color${capitalize$1(color2)}`, `size${capitalize$1(size)}`]
14383
+ root: ["root", indeterminate && "indeterminate", `color${capitalize$1(color2)}`, `size${capitalize$1(size2)}`]
14384
14384
  };
14385
14385
  const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
14386
14386
  return {
@@ -14465,7 +14465,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
14465
14465
  indeterminate = false,
14466
14466
  indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
14467
14467
  inputProps,
14468
- size = "medium",
14468
+ size: size2 = "medium",
14469
14469
  disableRipple = false,
14470
14470
  className,
14471
14471
  slots = {},
@@ -14479,7 +14479,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
14479
14479
  disableRipple,
14480
14480
  color: color2,
14481
14481
  indeterminate,
14482
- size
14482
+ size: size2
14483
14483
  };
14484
14484
  const classes = useUtilityClasses$c(ownerState);
14485
14485
  const externalInputProps = slotProps.input ?? inputProps;
@@ -14497,10 +14497,10 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
14497
14497
  additionalProps: {
14498
14498
  type: "checkbox",
14499
14499
  icon: /* @__PURE__ */ React.cloneElement(icon, {
14500
- fontSize: icon.props.fontSize ?? size
14500
+ fontSize: icon.props.fontSize ?? size2
14501
14501
  }),
14502
14502
  checkedIcon: /* @__PURE__ */ React.cloneElement(indeterminateIcon, {
14503
- fontSize: indeterminateIcon.props.fontSize ?? size
14503
+ fontSize: indeterminateIcon.props.fontSize ?? size2
14504
14504
  }),
14505
14505
  disableRipple,
14506
14506
  slots,
@@ -14630,11 +14630,271 @@ Checkbox.propTypes = {
14630
14630
  */
14631
14631
  value: PropTypes.any
14632
14632
  };
14633
+ function getTypographyUtilityClass(slot) {
14634
+ return generateUtilityClass("MuiTypography", slot);
14635
+ }
14636
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
14637
+ const v6Colors = {
14638
+ primary: true,
14639
+ secondary: true,
14640
+ error: true,
14641
+ info: true,
14642
+ success: true,
14643
+ warning: true,
14644
+ textPrimary: true,
14645
+ textSecondary: true,
14646
+ textDisabled: true
14647
+ };
14648
+ const extendSxProp = internal_createExtendSxProp();
14649
+ const useUtilityClasses$b = (ownerState) => {
14650
+ const {
14651
+ align,
14652
+ gutterBottom,
14653
+ noWrap,
14654
+ paragraph,
14655
+ variant,
14656
+ classes
14657
+ } = ownerState;
14658
+ const slots = {
14659
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize$1(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
14660
+ };
14661
+ return composeClasses(slots, getTypographyUtilityClass, classes);
14662
+ };
14663
+ const TypographyRoot = styled("span", {
14664
+ name: "MuiTypography",
14665
+ slot: "Root",
14666
+ overridesResolver: (props, styles2) => {
14667
+ const {
14668
+ ownerState
14669
+ } = props;
14670
+ return [styles2.root, ownerState.variant && styles2[ownerState.variant], ownerState.align !== "inherit" && styles2[`align${capitalize$1(ownerState.align)}`], ownerState.noWrap && styles2.noWrap, ownerState.gutterBottom && styles2.gutterBottom, ownerState.paragraph && styles2.paragraph];
14671
+ }
14672
+ })(memoTheme(({
14673
+ theme
14674
+ }) => {
14675
+ var _a3;
14676
+ return {
14677
+ margin: 0,
14678
+ variants: [{
14679
+ props: {
14680
+ variant: "inherit"
14681
+ },
14682
+ style: {
14683
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
14684
+ font: "inherit",
14685
+ lineHeight: "inherit",
14686
+ letterSpacing: "inherit"
14687
+ }
14688
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
14689
+ props: {
14690
+ variant
14691
+ },
14692
+ style: value
14693
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
14694
+ props: {
14695
+ color: color2
14696
+ },
14697
+ style: {
14698
+ color: (theme.vars || theme).palette[color2].main
14699
+ }
14700
+ })), ...Object.entries(((_a3 = theme.palette) == null ? void 0 : _a3.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
14701
+ props: {
14702
+ color: `text${capitalize$1(color2)}`
14703
+ },
14704
+ style: {
14705
+ color: (theme.vars || theme).palette.text[color2]
14706
+ }
14707
+ })), {
14708
+ props: ({
14709
+ ownerState
14710
+ }) => ownerState.align !== "inherit",
14711
+ style: {
14712
+ textAlign: "var(--Typography-textAlign)"
14713
+ }
14714
+ }, {
14715
+ props: ({
14716
+ ownerState
14717
+ }) => ownerState.noWrap,
14718
+ style: {
14719
+ overflow: "hidden",
14720
+ textOverflow: "ellipsis",
14721
+ whiteSpace: "nowrap"
14722
+ }
14723
+ }, {
14724
+ props: ({
14725
+ ownerState
14726
+ }) => ownerState.gutterBottom,
14727
+ style: {
14728
+ marginBottom: "0.35em"
14729
+ }
14730
+ }, {
14731
+ props: ({
14732
+ ownerState
14733
+ }) => ownerState.paragraph,
14734
+ style: {
14735
+ marginBottom: 16
14736
+ }
14737
+ }]
14738
+ };
14739
+ }));
14740
+ const defaultVariantMapping = {
14741
+ h1: "h1",
14742
+ h2: "h2",
14743
+ h3: "h3",
14744
+ h4: "h4",
14745
+ h5: "h5",
14746
+ h6: "h6",
14747
+ subtitle1: "h6",
14748
+ subtitle2: "h6",
14749
+ body1: "p",
14750
+ body2: "p",
14751
+ inherit: "p"
14752
+ };
14753
+ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
14754
+ const {
14755
+ color: color2,
14756
+ ...themeProps
14757
+ } = useDefaultProps({
14758
+ props: inProps,
14759
+ name: "MuiTypography"
14760
+ });
14761
+ const isSxColor = !v6Colors[color2];
14762
+ const props = extendSxProp({
14763
+ ...themeProps,
14764
+ ...isSxColor && {
14765
+ color: color2
14766
+ }
14767
+ });
14768
+ const {
14769
+ align = "inherit",
14770
+ className,
14771
+ component,
14772
+ gutterBottom = false,
14773
+ noWrap = false,
14774
+ paragraph = false,
14775
+ variant = "body1",
14776
+ variantMapping = defaultVariantMapping,
14777
+ ...other
14778
+ } = props;
14779
+ const ownerState = {
14780
+ ...props,
14781
+ align,
14782
+ color: color2,
14783
+ className,
14784
+ component,
14785
+ gutterBottom,
14786
+ noWrap,
14787
+ paragraph,
14788
+ variant,
14789
+ variantMapping
14790
+ };
14791
+ const Component2 = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
14792
+ const classes = useUtilityClasses$b(ownerState);
14793
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
14794
+ as: Component2,
14795
+ ref,
14796
+ className: clsx(classes.root, className),
14797
+ ...other,
14798
+ ownerState,
14799
+ style: {
14800
+ ...align !== "inherit" && {
14801
+ "--Typography-textAlign": align
14802
+ },
14803
+ ...other.style
14804
+ }
14805
+ });
14806
+ });
14807
+ Typography.propTypes = {
14808
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
14809
+ // │ These PropTypes are generated from the TypeScript type definitions. │
14810
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
14811
+ // └─────────────────────────────────────────────────────────────────────┘
14812
+ /**
14813
+ * Set the text-align on the component.
14814
+ * @default 'inherit'
14815
+ */
14816
+ align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
14817
+ /**
14818
+ * The content of the component.
14819
+ */
14820
+ children: PropTypes.node,
14821
+ /**
14822
+ * Override or extend the styles applied to the component.
14823
+ */
14824
+ classes: PropTypes.object,
14825
+ /**
14826
+ * @ignore
14827
+ */
14828
+ className: PropTypes.string,
14829
+ /**
14830
+ * The color of the component.
14831
+ * It supports both default and custom theme colors, which can be added as shown in the
14832
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
14833
+ */
14834
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
14835
+ /**
14836
+ * The component used for the root node.
14837
+ * Either a string to use a HTML element or a component.
14838
+ */
14839
+ component: PropTypes.elementType,
14840
+ /**
14841
+ * If `true`, the text will have a bottom margin.
14842
+ * @default false
14843
+ */
14844
+ gutterBottom: PropTypes.bool,
14845
+ /**
14846
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
14847
+ *
14848
+ * Note that text overflow can only happen with block or inline-block level elements
14849
+ * (the element needs to have a width in order to overflow).
14850
+ * @default false
14851
+ */
14852
+ noWrap: PropTypes.bool,
14853
+ /**
14854
+ * If `true`, the element will be a paragraph element.
14855
+ * @default false
14856
+ * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
14857
+ */
14858
+ paragraph: PropTypes.bool,
14859
+ /**
14860
+ * @ignore
14861
+ */
14862
+ style: PropTypes.object,
14863
+ /**
14864
+ * The system prop that allows defining system overrides as well as additional CSS styles.
14865
+ */
14866
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
14867
+ /**
14868
+ * Applies the theme typography styles.
14869
+ * @default 'body1'
14870
+ */
14871
+ variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
14872
+ /**
14873
+ * The component maps the variant prop to a range of different HTML element types.
14874
+ * For instance, subtitle1 to `<h6>`.
14875
+ * If you wish to change that mapping, you can provide your own.
14876
+ * Alternatively, you can use the `component` prop.
14877
+ * @default {
14878
+ * h1: 'h1',
14879
+ * h2: 'h2',
14880
+ * h3: 'h3',
14881
+ * h4: 'h4',
14882
+ * h5: 'h5',
14883
+ * h6: 'h6',
14884
+ * subtitle1: 'h6',
14885
+ * subtitle2: 'h6',
14886
+ * body1: 'p',
14887
+ * body2: 'p',
14888
+ * inherit: 'p',
14889
+ * }
14890
+ */
14891
+ variantMapping: PropTypes.object
14892
+ };
14633
14893
  function getFormControlUtilityClasses(slot) {
14634
14894
  return generateUtilityClass("MuiFormControl", slot);
14635
14895
  }
14636
14896
  generateUtilityClasses("MuiFormControl", ["root", "marginNone", "marginNormal", "marginDense", "fullWidth", "disabled"]);
14637
- const useUtilityClasses$b = (ownerState) => {
14897
+ const useUtilityClasses$a = (ownerState) => {
14638
14898
  const {
14639
14899
  classes,
14640
14900
  margin: margin2,
@@ -14707,7 +14967,7 @@ const FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(inPro
14707
14967
  hiddenLabel = false,
14708
14968
  margin: margin2 = "none",
14709
14969
  required = false,
14710
- size = "medium",
14970
+ size: size2 = "medium",
14711
14971
  variant = "outlined",
14712
14972
  ...other
14713
14973
  } = props;
@@ -14721,10 +14981,10 @@ const FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(inPro
14721
14981
  hiddenLabel,
14722
14982
  margin: margin2,
14723
14983
  required,
14724
- size,
14984
+ size: size2,
14725
14985
  variant
14726
14986
  };
14727
- const classes = useUtilityClasses$b(ownerState);
14987
+ const classes = useUtilityClasses$a(ownerState);
14728
14988
  const [adornedStart, setAdornedStart] = React.useState(() => {
14729
14989
  let initialAdornedStart = false;
14730
14990
  if (children) {
@@ -14789,7 +15049,7 @@ const FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(inPro
14789
15049
  focused,
14790
15050
  fullWidth,
14791
15051
  hiddenLabel,
14792
- size,
15052
+ size: size2,
14793
15053
  onBlur: () => {
14794
15054
  setFocused(false);
14795
15055
  },
@@ -14802,7 +15062,7 @@ const FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(inPro
14802
15062
  required,
14803
15063
  variant
14804
15064
  };
14805
- }, [adornedStart, color2, disabled, error2, filled, focused, fullWidth, hiddenLabel, registerEffect, onEmpty, onFilled, required, size, variant]);
15065
+ }, [adornedStart, color2, disabled, error2, filled, focused, fullWidth, hiddenLabel, registerEffect, onEmpty, onFilled, required, size2, variant]);
14806
15066
  return /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlContext.Provider, {
14807
15067
  value: childContext,
14808
15068
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(FormControlRoot, {
@@ -14895,266 +15155,6 @@ FormControl.propTypes = {
14895
15155
  */
14896
15156
  variant: PropTypes.oneOf(["filled", "outlined", "standard"])
14897
15157
  };
14898
- function getTypographyUtilityClass(slot) {
14899
- return generateUtilityClass("MuiTypography", slot);
14900
- }
14901
- generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
14902
- const v6Colors = {
14903
- primary: true,
14904
- secondary: true,
14905
- error: true,
14906
- info: true,
14907
- success: true,
14908
- warning: true,
14909
- textPrimary: true,
14910
- textSecondary: true,
14911
- textDisabled: true
14912
- };
14913
- const extendSxProp = internal_createExtendSxProp();
14914
- const useUtilityClasses$a = (ownerState) => {
14915
- const {
14916
- align,
14917
- gutterBottom,
14918
- noWrap,
14919
- paragraph,
14920
- variant,
14921
- classes
14922
- } = ownerState;
14923
- const slots = {
14924
- root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize$1(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
14925
- };
14926
- return composeClasses(slots, getTypographyUtilityClass, classes);
14927
- };
14928
- const TypographyRoot = styled("span", {
14929
- name: "MuiTypography",
14930
- slot: "Root",
14931
- overridesResolver: (props, styles2) => {
14932
- const {
14933
- ownerState
14934
- } = props;
14935
- return [styles2.root, ownerState.variant && styles2[ownerState.variant], ownerState.align !== "inherit" && styles2[`align${capitalize$1(ownerState.align)}`], ownerState.noWrap && styles2.noWrap, ownerState.gutterBottom && styles2.gutterBottom, ownerState.paragraph && styles2.paragraph];
14936
- }
14937
- })(memoTheme(({
14938
- theme
14939
- }) => {
14940
- var _a3;
14941
- return {
14942
- margin: 0,
14943
- variants: [{
14944
- props: {
14945
- variant: "inherit"
14946
- },
14947
- style: {
14948
- // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
14949
- font: "inherit",
14950
- lineHeight: "inherit",
14951
- letterSpacing: "inherit"
14952
- }
14953
- }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
14954
- props: {
14955
- variant
14956
- },
14957
- style: value
14958
- })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
14959
- props: {
14960
- color: color2
14961
- },
14962
- style: {
14963
- color: (theme.vars || theme).palette[color2].main
14964
- }
14965
- })), ...Object.entries(((_a3 = theme.palette) == null ? void 0 : _a3.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
14966
- props: {
14967
- color: `text${capitalize$1(color2)}`
14968
- },
14969
- style: {
14970
- color: (theme.vars || theme).palette.text[color2]
14971
- }
14972
- })), {
14973
- props: ({
14974
- ownerState
14975
- }) => ownerState.align !== "inherit",
14976
- style: {
14977
- textAlign: "var(--Typography-textAlign)"
14978
- }
14979
- }, {
14980
- props: ({
14981
- ownerState
14982
- }) => ownerState.noWrap,
14983
- style: {
14984
- overflow: "hidden",
14985
- textOverflow: "ellipsis",
14986
- whiteSpace: "nowrap"
14987
- }
14988
- }, {
14989
- props: ({
14990
- ownerState
14991
- }) => ownerState.gutterBottom,
14992
- style: {
14993
- marginBottom: "0.35em"
14994
- }
14995
- }, {
14996
- props: ({
14997
- ownerState
14998
- }) => ownerState.paragraph,
14999
- style: {
15000
- marginBottom: 16
15001
- }
15002
- }]
15003
- };
15004
- }));
15005
- const defaultVariantMapping = {
15006
- h1: "h1",
15007
- h2: "h2",
15008
- h3: "h3",
15009
- h4: "h4",
15010
- h5: "h5",
15011
- h6: "h6",
15012
- subtitle1: "h6",
15013
- subtitle2: "h6",
15014
- body1: "p",
15015
- body2: "p",
15016
- inherit: "p"
15017
- };
15018
- const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
15019
- const {
15020
- color: color2,
15021
- ...themeProps
15022
- } = useDefaultProps({
15023
- props: inProps,
15024
- name: "MuiTypography"
15025
- });
15026
- const isSxColor = !v6Colors[color2];
15027
- const props = extendSxProp({
15028
- ...themeProps,
15029
- ...isSxColor && {
15030
- color: color2
15031
- }
15032
- });
15033
- const {
15034
- align = "inherit",
15035
- className,
15036
- component,
15037
- gutterBottom = false,
15038
- noWrap = false,
15039
- paragraph = false,
15040
- variant = "body1",
15041
- variantMapping = defaultVariantMapping,
15042
- ...other
15043
- } = props;
15044
- const ownerState = {
15045
- ...props,
15046
- align,
15047
- color: color2,
15048
- className,
15049
- component,
15050
- gutterBottom,
15051
- noWrap,
15052
- paragraph,
15053
- variant,
15054
- variantMapping
15055
- };
15056
- const Component2 = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
15057
- const classes = useUtilityClasses$a(ownerState);
15058
- return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
15059
- as: Component2,
15060
- ref,
15061
- className: clsx(classes.root, className),
15062
- ...other,
15063
- ownerState,
15064
- style: {
15065
- ...align !== "inherit" && {
15066
- "--Typography-textAlign": align
15067
- },
15068
- ...other.style
15069
- }
15070
- });
15071
- });
15072
- Typography.propTypes = {
15073
- // ┌────────────────────────────── Warning ──────────────────────────────┐
15074
- // │ These PropTypes are generated from the TypeScript type definitions. │
15075
- // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
15076
- // └─────────────────────────────────────────────────────────────────────┘
15077
- /**
15078
- * Set the text-align on the component.
15079
- * @default 'inherit'
15080
- */
15081
- align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
15082
- /**
15083
- * The content of the component.
15084
- */
15085
- children: PropTypes.node,
15086
- /**
15087
- * Override or extend the styles applied to the component.
15088
- */
15089
- classes: PropTypes.object,
15090
- /**
15091
- * @ignore
15092
- */
15093
- className: PropTypes.string,
15094
- /**
15095
- * The color of the component.
15096
- * It supports both default and custom theme colors, which can be added as shown in the
15097
- * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
15098
- */
15099
- color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
15100
- /**
15101
- * The component used for the root node.
15102
- * Either a string to use a HTML element or a component.
15103
- */
15104
- component: PropTypes.elementType,
15105
- /**
15106
- * If `true`, the text will have a bottom margin.
15107
- * @default false
15108
- */
15109
- gutterBottom: PropTypes.bool,
15110
- /**
15111
- * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
15112
- *
15113
- * Note that text overflow can only happen with block or inline-block level elements
15114
- * (the element needs to have a width in order to overflow).
15115
- * @default false
15116
- */
15117
- noWrap: PropTypes.bool,
15118
- /**
15119
- * If `true`, the element will be a paragraph element.
15120
- * @default false
15121
- * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
15122
- */
15123
- paragraph: PropTypes.bool,
15124
- /**
15125
- * @ignore
15126
- */
15127
- style: PropTypes.object,
15128
- /**
15129
- * The system prop that allows defining system overrides as well as additional CSS styles.
15130
- */
15131
- sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
15132
- /**
15133
- * Applies the theme typography styles.
15134
- * @default 'body1'
15135
- */
15136
- variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
15137
- /**
15138
- * The component maps the variant prop to a range of different HTML element types.
15139
- * For instance, subtitle1 to `<h6>`.
15140
- * If you wish to change that mapping, you can provide your own.
15141
- * Alternatively, you can use the `component` prop.
15142
- * @default {
15143
- * h1: 'h1',
15144
- * h2: 'h2',
15145
- * h3: 'h3',
15146
- * h4: 'h4',
15147
- * h5: 'h5',
15148
- * h6: 'h6',
15149
- * subtitle1: 'h6',
15150
- * subtitle2: 'h6',
15151
- * body1: 'p',
15152
- * body2: 'p',
15153
- * inherit: 'p',
15154
- * }
15155
- */
15156
- variantMapping: PropTypes.object
15157
- };
15158
15158
  function getFormLabelUtilityClasses(slot) {
15159
15159
  return generateUtilityClass("MuiFormLabel", slot);
15160
15160
  }
@@ -15450,14 +15450,14 @@ const useUtilityClasses$8 = (ownerState) => {
15450
15450
  const {
15451
15451
  classes,
15452
15452
  formControl,
15453
- size,
15453
+ size: size2,
15454
15454
  shrink,
15455
15455
  disableAnimation,
15456
15456
  variant,
15457
15457
  required
15458
15458
  } = ownerState;
15459
15459
  const slots = {
15460
- root: ["root", formControl && "formControl", !disableAnimation && "animated", shrink && "shrink", size && size !== "medium" && `size${capitalize$1(size)}`, variant],
15460
+ root: ["root", formControl && "formControl", !disableAnimation && "animated", shrink && "shrink", size2 && size2 !== "medium" && `size${capitalize$1(size2)}`, variant],
15461
15461
  asterisk: [required && "asterisk"]
15462
15462
  };
15463
15463
  const composedClasses = composeClasses(slots, getInputLabelUtilityClasses, classes);
@@ -15563,8 +15563,8 @@ const InputLabelRoot = styled(FormLabel, {
15563
15563
  props: ({
15564
15564
  variant,
15565
15565
  ownerState,
15566
- size
15567
- }) => variant === "filled" && ownerState.shrink && size === "small",
15566
+ size: size2
15567
+ }) => variant === "filled" && ownerState.shrink && size2 === "small",
15568
15568
  style: {
15569
15569
  transform: "translate(12px, 4px) scale(0.75)"
15570
15570
  }
@@ -17894,10 +17894,10 @@ const useUtilityClasses$3 = (ownerState) => {
17894
17894
  track,
17895
17895
  classes,
17896
17896
  color: color2,
17897
- size
17897
+ size: size2
17898
17898
  } = ownerState;
17899
17899
  const slots = {
17900
- root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize$1(color2)}`, size && `size${capitalize$1(size)}`],
17900
+ root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize$1(color2)}`, size2 && `size${capitalize$1(size2)}`],
17901
17901
  rail: ["rail"],
17902
17902
  track: ["track"],
17903
17903
  mark: ["mark"],
@@ -17905,7 +17905,7 @@ const useUtilityClasses$3 = (ownerState) => {
17905
17905
  markLabel: ["markLabel"],
17906
17906
  markLabelActive: ["markLabelActive"],
17907
17907
  valueLabel: ["valueLabel"],
17908
- thumb: ["thumb", disabled && "disabled", size && `thumbSize${capitalize$1(size)}`, color2 && `thumbColor${capitalize$1(color2)}`],
17908
+ thumb: ["thumb", disabled && "disabled", size2 && `thumbSize${capitalize$1(size2)}`, color2 && `thumbColor${capitalize$1(color2)}`],
17909
17909
  active: ["active"],
17910
17910
  disabled: ["disabled"],
17911
17911
  focusVisible: ["focusVisible"]
@@ -17944,7 +17944,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
17944
17944
  onChangeCommitted,
17945
17945
  orientation = "horizontal",
17946
17946
  shiftStep = 10,
17947
- size = "medium",
17947
+ size: size2 = "medium",
17948
17948
  step = 1,
17949
17949
  scale: scale2 = Identity,
17950
17950
  slotProps,
@@ -17967,7 +17967,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
17967
17967
  orientation,
17968
17968
  marks: marksProp,
17969
17969
  color: color2,
17970
- size,
17970
+ size: size2,
17971
17971
  step,
17972
17972
  shiftStep,
17973
17973
  scale: scale2,
@@ -19300,7 +19300,7 @@ const Tabs = /* @__PURE__ */ React.forwardRef(function Tabs2(inProps, ref) {
19300
19300
  const start = vertical ? "top" : "left";
19301
19301
  const end = vertical ? "bottom" : "right";
19302
19302
  const clientSize = vertical ? "clientHeight" : "clientWidth";
19303
- const size = vertical ? "height" : "width";
19303
+ const size2 = vertical ? "height" : "width";
19304
19304
  const ownerState = {
19305
19305
  ...props,
19306
19306
  component,
@@ -19418,13 +19418,13 @@ const Tabs = /* @__PURE__ */ React.forwardRef(function Tabs2(inProps, ref) {
19418
19418
  const newIndicatorStyle = {
19419
19419
  [startIndicator]: startValue,
19420
19420
  // May be wrong until the font is loaded.
19421
- [size]: tabMeta ? tabMeta[size] : 0
19421
+ [size2]: tabMeta ? tabMeta[size2] : 0
19422
19422
  };
19423
- if (typeof indicatorStyle[startIndicator] !== "number" || typeof indicatorStyle[size] !== "number") {
19423
+ if (typeof indicatorStyle[startIndicator] !== "number" || typeof indicatorStyle[size2] !== "number") {
19424
19424
  setIndicatorStyle(newIndicatorStyle);
19425
19425
  } else {
19426
19426
  const dStart = Math.abs(indicatorStyle[startIndicator] - newIndicatorStyle[startIndicator]);
19427
- const dSize = Math.abs(indicatorStyle[size] - newIndicatorStyle[size]);
19427
+ const dSize = Math.abs(indicatorStyle[size2] - newIndicatorStyle[size2]);
19428
19428
  if (dStart >= 1 || dSize >= 1) {
19429
19429
  setIndicatorStyle(newIndicatorStyle);
19430
19430
  }
@@ -20209,7 +20209,7 @@ var defineProperty = function(obj, key, value) {
20209
20209
  }
20210
20210
  return obj;
20211
20211
  };
20212
- var _extends = Object.assign || function(target) {
20212
+ var _extends$1 = Object.assign || function(target) {
20213
20213
  for (var i2 = 1; i2 < arguments.length; i2++) {
20214
20214
  var source = arguments[i2];
20215
20215
  for (var key in source) {
@@ -20221,7 +20221,7 @@ var _extends = Object.assign || function(target) {
20221
20221
  return target;
20222
20222
  };
20223
20223
  function getClientRect(offsets) {
20224
- return _extends({}, offsets, {
20224
+ return _extends$1({}, offsets, {
20225
20225
  right: offsets.left + offsets.width,
20226
20226
  bottom: offsets.top + offsets.height
20227
20227
  });
@@ -20405,7 +20405,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
20405
20405
  }
20406
20406
  };
20407
20407
  var sortedAreas = Object.keys(rects).map(function(key) {
20408
- return _extends({
20408
+ return _extends$1({
20409
20409
  key
20410
20410
  }, rects[key], {
20411
20411
  area: getArea(rects[key])
@@ -20713,9 +20713,9 @@ function computeStyle(data, options) {
20713
20713
  var attributes = {
20714
20714
  "x-placement": data.placement
20715
20715
  };
20716
- data.attributes = _extends({}, attributes, data.attributes);
20717
- data.styles = _extends({}, styles2, data.styles);
20718
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
20716
+ data.attributes = _extends$1({}, attributes, data.attributes);
20717
+ data.styles = _extends$1({}, styles2, data.styles);
20718
+ data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
20719
20719
  return data;
20720
20720
  }
20721
20721
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -20850,7 +20850,7 @@ function flip(data, options) {
20850
20850
  variation = getOppositeVariation(variation);
20851
20851
  }
20852
20852
  data.placement = placement + (variation ? "-" + variation : "");
20853
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
20853
+ data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
20854
20854
  data = runModifiers(data.instance.modifiers, data, "flip");
20855
20855
  }
20856
20856
  });
@@ -20893,13 +20893,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
20893
20893
  var rect = getClientRect(element);
20894
20894
  return rect[measurement] / 100 * value;
20895
20895
  } else if (unit === "vh" || unit === "vw") {
20896
- var size = void 0;
20896
+ var size2 = void 0;
20897
20897
  if (unit === "vh") {
20898
- size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
20898
+ size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
20899
20899
  } else {
20900
- size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
20900
+ size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
20901
20901
  }
20902
- return size / 100 * value;
20902
+ return size2 / 100 * value;
20903
20903
  } else {
20904
20904
  return value;
20905
20905
  }
@@ -21009,7 +21009,7 @@ function preventOverflow(data, options) {
21009
21009
  };
21010
21010
  order.forEach(function(placement) {
21011
21011
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
21012
- popper = _extends({}, popper, check[side](placement));
21012
+ popper = _extends$1({}, popper, check[side](placement));
21013
21013
  });
21014
21014
  data.offsets.popper = popper;
21015
21015
  return data;
@@ -21027,7 +21027,7 @@ function shift(data) {
21027
21027
  start: defineProperty({}, side, reference[side]),
21028
21028
  end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
21029
21029
  };
21030
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
21030
+ data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
21031
21031
  }
21032
21032
  return data;
21033
21033
  }
@@ -21430,7 +21430,7 @@ var Popper = function() {
21430
21430
  return requestAnimationFrame(_this.update);
21431
21431
  };
21432
21432
  this.update = debounce$1(this.update.bind(this));
21433
- this.options = _extends({}, Popper2.Defaults, options);
21433
+ this.options = _extends$1({}, Popper2.Defaults, options);
21434
21434
  this.state = {
21435
21435
  isDestroyed: false,
21436
21436
  isCreated: false,
@@ -21439,11 +21439,11 @@ var Popper = function() {
21439
21439
  this.reference = reference && reference.jquery ? reference[0] : reference;
21440
21440
  this.popper = popper && popper.jquery ? popper[0] : popper;
21441
21441
  this.options.modifiers = {};
21442
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
21443
- _this.options.modifiers[name2] = _extends({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
21442
+ Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
21443
+ _this.options.modifiers[name2] = _extends$1({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
21444
21444
  });
21445
21445
  this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
21446
- return _extends({
21446
+ return _extends$1({
21447
21447
  name: name2
21448
21448
  }, _this.options.modifiers[name2]);
21449
21449
  }).sort(function(a2, b) {
@@ -21673,6 +21673,700 @@ React.forwardRef((props, ref) => {
21673
21673
  ...style2
21674
21674
  }, children: typeof children === "function" ? children(childProps) : children }) });
21675
21675
  });
21676
+ function _extends() {
21677
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
21678
+ for (var i2 = 1; i2 < arguments.length; i2++) {
21679
+ var source = arguments[i2];
21680
+ for (var key in source) {
21681
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
21682
+ target[key] = source[key];
21683
+ }
21684
+ }
21685
+ }
21686
+ return target;
21687
+ };
21688
+ return _extends.apply(this, arguments);
21689
+ }
21690
+ function _assertThisInitialized(self2) {
21691
+ if (self2 === void 0) {
21692
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
21693
+ }
21694
+ return self2;
21695
+ }
21696
+ function _setPrototypeOf(o2, p) {
21697
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
21698
+ o3.__proto__ = p2;
21699
+ return o3;
21700
+ };
21701
+ return _setPrototypeOf(o2, p);
21702
+ }
21703
+ function _inheritsLoose(subClass, superClass) {
21704
+ subClass.prototype = Object.create(superClass.prototype);
21705
+ subClass.prototype.constructor = subClass;
21706
+ _setPrototypeOf(subClass, superClass);
21707
+ }
21708
+ var safeIsNaN = Number.isNaN || function ponyfill(value) {
21709
+ return typeof value === "number" && value !== value;
21710
+ };
21711
+ function isEqual$2(first, second) {
21712
+ if (first === second) {
21713
+ return true;
21714
+ }
21715
+ if (safeIsNaN(first) && safeIsNaN(second)) {
21716
+ return true;
21717
+ }
21718
+ return false;
21719
+ }
21720
+ function areInputsEqual(newInputs, lastInputs) {
21721
+ if (newInputs.length !== lastInputs.length) {
21722
+ return false;
21723
+ }
21724
+ for (var i2 = 0; i2 < newInputs.length; i2++) {
21725
+ if (!isEqual$2(newInputs[i2], lastInputs[i2])) {
21726
+ return false;
21727
+ }
21728
+ }
21729
+ return true;
21730
+ }
21731
+ function memoizeOne(resultFn, isEqual2) {
21732
+ if (isEqual2 === void 0) {
21733
+ isEqual2 = areInputsEqual;
21734
+ }
21735
+ var lastThis;
21736
+ var lastArgs = [];
21737
+ var lastResult;
21738
+ var calledOnce = false;
21739
+ function memoized() {
21740
+ var newArgs = [];
21741
+ for (var _i = 0; _i < arguments.length; _i++) {
21742
+ newArgs[_i] = arguments[_i];
21743
+ }
21744
+ if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
21745
+ return lastResult;
21746
+ }
21747
+ lastResult = resultFn.apply(this, newArgs);
21748
+ calledOnce = true;
21749
+ lastThis = this;
21750
+ lastArgs = newArgs;
21751
+ return lastResult;
21752
+ }
21753
+ return memoized;
21754
+ }
21755
+ var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
21756
+ var now$1 = hasNativePerformanceNow ? function() {
21757
+ return performance.now();
21758
+ } : function() {
21759
+ return Date.now();
21760
+ };
21761
+ function cancelTimeout(timeoutID) {
21762
+ cancelAnimationFrame(timeoutID.id);
21763
+ }
21764
+ function requestTimeout(callback, delay) {
21765
+ var start = now$1();
21766
+ function tick() {
21767
+ if (now$1() - start >= delay) {
21768
+ callback.call(null);
21769
+ } else {
21770
+ timeoutID.id = requestAnimationFrame(tick);
21771
+ }
21772
+ }
21773
+ var timeoutID = {
21774
+ id: requestAnimationFrame(tick)
21775
+ };
21776
+ return timeoutID;
21777
+ }
21778
+ var size = -1;
21779
+ function getScrollbarSize(recalculate) {
21780
+ if (recalculate === void 0) {
21781
+ recalculate = false;
21782
+ }
21783
+ if (size === -1 || recalculate) {
21784
+ var div = document.createElement("div");
21785
+ var style2 = div.style;
21786
+ style2.width = "50px";
21787
+ style2.height = "50px";
21788
+ style2.overflow = "scroll";
21789
+ document.body.appendChild(div);
21790
+ size = div.offsetWidth - div.clientWidth;
21791
+ document.body.removeChild(div);
21792
+ }
21793
+ return size;
21794
+ }
21795
+ var cachedRTLResult = null;
21796
+ function getRTLOffsetType(recalculate) {
21797
+ if (recalculate === void 0) {
21798
+ recalculate = false;
21799
+ }
21800
+ if (cachedRTLResult === null || recalculate) {
21801
+ var outerDiv = document.createElement("div");
21802
+ var outerStyle = outerDiv.style;
21803
+ outerStyle.width = "50px";
21804
+ outerStyle.height = "50px";
21805
+ outerStyle.overflow = "scroll";
21806
+ outerStyle.direction = "rtl";
21807
+ var innerDiv = document.createElement("div");
21808
+ var innerStyle = innerDiv.style;
21809
+ innerStyle.width = "100px";
21810
+ innerStyle.height = "100px";
21811
+ outerDiv.appendChild(innerDiv);
21812
+ document.body.appendChild(outerDiv);
21813
+ if (outerDiv.scrollLeft > 0) {
21814
+ cachedRTLResult = "positive-descending";
21815
+ } else {
21816
+ outerDiv.scrollLeft = 1;
21817
+ if (outerDiv.scrollLeft === 0) {
21818
+ cachedRTLResult = "negative";
21819
+ } else {
21820
+ cachedRTLResult = "positive-ascending";
21821
+ }
21822
+ }
21823
+ document.body.removeChild(outerDiv);
21824
+ return cachedRTLResult;
21825
+ }
21826
+ return cachedRTLResult;
21827
+ }
21828
+ var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
21829
+ var defaultItemKey$1 = function defaultItemKey3(index2, data) {
21830
+ return index2;
21831
+ };
21832
+ var devWarningsDirection = null;
21833
+ var devWarningsTagName$1 = null;
21834
+ {
21835
+ if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
21836
+ devWarningsDirection = /* @__PURE__ */ new WeakSet();
21837
+ devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
21838
+ }
21839
+ }
21840
+ function createListComponent(_ref) {
21841
+ var _class;
21842
+ var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
21843
+ return _class = /* @__PURE__ */ function(_PureComponent) {
21844
+ _inheritsLoose(List2, _PureComponent);
21845
+ function List2(props) {
21846
+ var _this;
21847
+ _this = _PureComponent.call(this, props) || this;
21848
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
21849
+ _this._outerRef = void 0;
21850
+ _this._resetIsScrollingTimeoutId = null;
21851
+ _this.state = {
21852
+ instance: _assertThisInitialized(_this),
21853
+ isScrolling: false,
21854
+ scrollDirection: "forward",
21855
+ scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
21856
+ scrollUpdateWasRequested: false
21857
+ };
21858
+ _this._callOnItemsRendered = void 0;
21859
+ _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
21860
+ return _this.props.onItemsRendered({
21861
+ overscanStartIndex,
21862
+ overscanStopIndex,
21863
+ visibleStartIndex,
21864
+ visibleStopIndex
21865
+ });
21866
+ });
21867
+ _this._callOnScroll = void 0;
21868
+ _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
21869
+ return _this.props.onScroll({
21870
+ scrollDirection,
21871
+ scrollOffset,
21872
+ scrollUpdateWasRequested
21873
+ });
21874
+ });
21875
+ _this._getItemStyle = void 0;
21876
+ _this._getItemStyle = function(index2) {
21877
+ var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
21878
+ var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
21879
+ var style2;
21880
+ if (itemStyleCache.hasOwnProperty(index2)) {
21881
+ style2 = itemStyleCache[index2];
21882
+ } else {
21883
+ var _offset = getItemOffset3(_this.props, index2, _this._instanceProps);
21884
+ var size2 = getItemSize3(_this.props, index2, _this._instanceProps);
21885
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
21886
+ var isRtl = direction === "rtl";
21887
+ var offsetHorizontal = isHorizontal ? _offset : 0;
21888
+ itemStyleCache[index2] = style2 = {
21889
+ position: "absolute",
21890
+ left: isRtl ? void 0 : offsetHorizontal,
21891
+ right: isRtl ? offsetHorizontal : void 0,
21892
+ top: !isHorizontal ? _offset : 0,
21893
+ height: !isHorizontal ? size2 : "100%",
21894
+ width: isHorizontal ? size2 : "100%"
21895
+ };
21896
+ }
21897
+ return style2;
21898
+ };
21899
+ _this._getItemStyleCache = void 0;
21900
+ _this._getItemStyleCache = memoizeOne(function(_, __, ___) {
21901
+ return {};
21902
+ });
21903
+ _this._onScrollHorizontal = function(event) {
21904
+ var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
21905
+ _this.setState(function(prevState) {
21906
+ if (prevState.scrollOffset === scrollLeft) {
21907
+ return null;
21908
+ }
21909
+ var direction = _this.props.direction;
21910
+ var scrollOffset = scrollLeft;
21911
+ if (direction === "rtl") {
21912
+ switch (getRTLOffsetType()) {
21913
+ case "negative":
21914
+ scrollOffset = -scrollLeft;
21915
+ break;
21916
+ case "positive-descending":
21917
+ scrollOffset = scrollWidth - clientWidth - scrollLeft;
21918
+ break;
21919
+ }
21920
+ }
21921
+ scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
21922
+ return {
21923
+ isScrolling: true,
21924
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
21925
+ scrollOffset,
21926
+ scrollUpdateWasRequested: false
21927
+ };
21928
+ }, _this._resetIsScrollingDebounced);
21929
+ };
21930
+ _this._onScrollVertical = function(event) {
21931
+ var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
21932
+ _this.setState(function(prevState) {
21933
+ if (prevState.scrollOffset === scrollTop) {
21934
+ return null;
21935
+ }
21936
+ var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
21937
+ return {
21938
+ isScrolling: true,
21939
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
21940
+ scrollOffset,
21941
+ scrollUpdateWasRequested: false
21942
+ };
21943
+ }, _this._resetIsScrollingDebounced);
21944
+ };
21945
+ _this._outerRefSetter = function(ref) {
21946
+ var outerRef = _this.props.outerRef;
21947
+ _this._outerRef = ref;
21948
+ if (typeof outerRef === "function") {
21949
+ outerRef(ref);
21950
+ } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
21951
+ outerRef.current = ref;
21952
+ }
21953
+ };
21954
+ _this._resetIsScrollingDebounced = function() {
21955
+ if (_this._resetIsScrollingTimeoutId !== null) {
21956
+ cancelTimeout(_this._resetIsScrollingTimeoutId);
21957
+ }
21958
+ _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
21959
+ };
21960
+ _this._resetIsScrolling = function() {
21961
+ _this._resetIsScrollingTimeoutId = null;
21962
+ _this.setState({
21963
+ isScrolling: false
21964
+ }, function() {
21965
+ _this._getItemStyleCache(-1, null);
21966
+ });
21967
+ };
21968
+ return _this;
21969
+ }
21970
+ List2.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
21971
+ validateSharedProps$1(nextProps, prevState);
21972
+ validateProps5(nextProps);
21973
+ return null;
21974
+ };
21975
+ var _proto = List2.prototype;
21976
+ _proto.scrollTo = function scrollTo(scrollOffset) {
21977
+ scrollOffset = Math.max(0, scrollOffset);
21978
+ this.setState(function(prevState) {
21979
+ if (prevState.scrollOffset === scrollOffset) {
21980
+ return null;
21981
+ }
21982
+ return {
21983
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
21984
+ scrollOffset,
21985
+ scrollUpdateWasRequested: true
21986
+ };
21987
+ }, this._resetIsScrollingDebounced);
21988
+ };
21989
+ _proto.scrollToItem = function scrollToItem(index2, align) {
21990
+ if (align === void 0) {
21991
+ align = "auto";
21992
+ }
21993
+ var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
21994
+ var scrollOffset = this.state.scrollOffset;
21995
+ index2 = Math.max(0, Math.min(index2, itemCount - 1));
21996
+ var scrollbarSize = 0;
21997
+ if (this._outerRef) {
21998
+ var outerRef = this._outerRef;
21999
+ if (layout === "vertical") {
22000
+ scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
22001
+ } else {
22002
+ scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
22003
+ }
22004
+ }
22005
+ this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
22006
+ };
22007
+ _proto.componentDidMount = function componentDidMount() {
22008
+ var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
22009
+ if (typeof initialScrollOffset === "number" && this._outerRef != null) {
22010
+ var outerRef = this._outerRef;
22011
+ if (direction === "horizontal" || layout === "horizontal") {
22012
+ outerRef.scrollLeft = initialScrollOffset;
22013
+ } else {
22014
+ outerRef.scrollTop = initialScrollOffset;
22015
+ }
22016
+ }
22017
+ this._callPropsCallbacks();
22018
+ };
22019
+ _proto.componentDidUpdate = function componentDidUpdate() {
22020
+ var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
22021
+ var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
22022
+ if (scrollUpdateWasRequested && this._outerRef != null) {
22023
+ var outerRef = this._outerRef;
22024
+ if (direction === "horizontal" || layout === "horizontal") {
22025
+ if (direction === "rtl") {
22026
+ switch (getRTLOffsetType()) {
22027
+ case "negative":
22028
+ outerRef.scrollLeft = -scrollOffset;
22029
+ break;
22030
+ case "positive-ascending":
22031
+ outerRef.scrollLeft = scrollOffset;
22032
+ break;
22033
+ default:
22034
+ var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
22035
+ outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
22036
+ break;
22037
+ }
22038
+ } else {
22039
+ outerRef.scrollLeft = scrollOffset;
22040
+ }
22041
+ } else {
22042
+ outerRef.scrollTop = scrollOffset;
22043
+ }
22044
+ }
22045
+ this._callPropsCallbacks();
22046
+ };
22047
+ _proto.componentWillUnmount = function componentWillUnmount() {
22048
+ if (this._resetIsScrollingTimeoutId !== null) {
22049
+ cancelTimeout(this._resetIsScrollingTimeoutId);
22050
+ }
22051
+ };
22052
+ _proto.render = function render() {
22053
+ var _this$props5 = this.props, children = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
22054
+ var isScrolling = this.state.isScrolling;
22055
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
22056
+ var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
22057
+ var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
22058
+ var items = [];
22059
+ if (itemCount > 0) {
22060
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
22061
+ items.push(createElement(children, {
22062
+ data: itemData,
22063
+ key: itemKey(_index, itemData),
22064
+ index: _index,
22065
+ isScrolling: useIsScrolling ? isScrolling : void 0,
22066
+ style: this._getItemStyle(_index)
22067
+ }));
22068
+ }
22069
+ }
22070
+ var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
22071
+ return createElement(outerElementType || outerTagName || "div", {
22072
+ className,
22073
+ onScroll,
22074
+ ref: this._outerRefSetter,
22075
+ style: _extends({
22076
+ position: "relative",
22077
+ height: height2,
22078
+ width: width2,
22079
+ overflow: "auto",
22080
+ WebkitOverflowScrolling: "touch",
22081
+ willChange: "transform",
22082
+ direction
22083
+ }, style2)
22084
+ }, createElement(innerElementType || innerTagName || "div", {
22085
+ children: items,
22086
+ ref: innerRef,
22087
+ style: {
22088
+ height: isHorizontal ? "100%" : estimatedTotalSize,
22089
+ pointerEvents: isScrolling ? "none" : void 0,
22090
+ width: isHorizontal ? estimatedTotalSize : "100%"
22091
+ }
22092
+ }));
22093
+ };
22094
+ _proto._callPropsCallbacks = function _callPropsCallbacks() {
22095
+ if (typeof this.props.onItemsRendered === "function") {
22096
+ var itemCount = this.props.itemCount;
22097
+ if (itemCount > 0) {
22098
+ var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
22099
+ this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
22100
+ }
22101
+ }
22102
+ if (typeof this.props.onScroll === "function") {
22103
+ var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
22104
+ this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
22105
+ }
22106
+ };
22107
+ _proto._getRangeToRender = function _getRangeToRender() {
22108
+ var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
22109
+ var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
22110
+ if (itemCount === 0) {
22111
+ return [0, 0, 0, 0];
22112
+ }
22113
+ var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
22114
+ var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
22115
+ var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
22116
+ var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
22117
+ return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
22118
+ };
22119
+ return List2;
22120
+ }(PureComponent), _class.defaultProps = {
22121
+ direction: "ltr",
22122
+ itemData: void 0,
22123
+ layout: "vertical",
22124
+ overscanCount: 2,
22125
+ useIsScrolling: false
22126
+ }, _class;
22127
+ }
22128
+ var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
22129
+ var children = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
22130
+ var instance = _ref3.instance;
22131
+ {
22132
+ if (innerTagName != null || outerTagName != null) {
22133
+ if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
22134
+ devWarningsTagName$1.add(instance);
22135
+ console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
22136
+ }
22137
+ }
22138
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
22139
+ switch (direction) {
22140
+ case "horizontal":
22141
+ case "vertical":
22142
+ if (devWarningsDirection && !devWarningsDirection.has(instance)) {
22143
+ devWarningsDirection.add(instance);
22144
+ console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
22145
+ }
22146
+ break;
22147
+ case "ltr":
22148
+ case "rtl":
22149
+ break;
22150
+ default:
22151
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
22152
+ }
22153
+ switch (layout) {
22154
+ case "horizontal":
22155
+ case "vertical":
22156
+ break;
22157
+ default:
22158
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
22159
+ }
22160
+ if (children == null) {
22161
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children === null ? "null" : typeof children) + '" was specified.'));
22162
+ }
22163
+ if (isHorizontal && typeof width2 !== "number") {
22164
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
22165
+ } else if (!isHorizontal && typeof height2 !== "number") {
22166
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
22167
+ }
22168
+ }
22169
+ };
22170
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
22171
+ var getItemMetadata$1 = function getItemMetadata3(props, index2, instanceProps) {
22172
+ var _ref = props, itemSize = _ref.itemSize;
22173
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
22174
+ if (index2 > lastMeasuredIndex) {
22175
+ var offset2 = 0;
22176
+ if (lastMeasuredIndex >= 0) {
22177
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
22178
+ offset2 = itemMetadata.offset + itemMetadata.size;
22179
+ }
22180
+ for (var i2 = lastMeasuredIndex + 1; i2 <= index2; i2++) {
22181
+ var size2 = itemSize(i2);
22182
+ itemMetadataMap[i2] = {
22183
+ offset: offset2,
22184
+ size: size2
22185
+ };
22186
+ offset2 += size2;
22187
+ }
22188
+ instanceProps.lastMeasuredIndex = index2;
22189
+ }
22190
+ return itemMetadataMap[index2];
22191
+ };
22192
+ var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
22193
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
22194
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
22195
+ if (lastMeasuredItemOffset >= offset2) {
22196
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
22197
+ } else {
22198
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
22199
+ }
22200
+ };
22201
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
22202
+ while (low <= high) {
22203
+ var middle = low + Math.floor((high - low) / 2);
22204
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
22205
+ if (currentOffset === offset2) {
22206
+ return middle;
22207
+ } else if (currentOffset < offset2) {
22208
+ low = middle + 1;
22209
+ } else if (currentOffset > offset2) {
22210
+ high = middle - 1;
22211
+ }
22212
+ }
22213
+ if (low > 0) {
22214
+ return low - 1;
22215
+ } else {
22216
+ return 0;
22217
+ }
22218
+ };
22219
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index2, offset2) {
22220
+ var itemCount = props.itemCount;
22221
+ var interval = 1;
22222
+ while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
22223
+ index2 += interval;
22224
+ interval *= 2;
22225
+ }
22226
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
22227
+ };
22228
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
22229
+ var itemCount = _ref2.itemCount;
22230
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
22231
+ var totalSizeOfMeasuredItems = 0;
22232
+ if (lastMeasuredIndex >= itemCount) {
22233
+ lastMeasuredIndex = itemCount - 1;
22234
+ }
22235
+ if (lastMeasuredIndex >= 0) {
22236
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
22237
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
22238
+ }
22239
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
22240
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
22241
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
22242
+ };
22243
+ var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
22244
+ getItemOffset: function getItemOffset(props, index2, instanceProps) {
22245
+ return getItemMetadata$1(props, index2, instanceProps).offset;
22246
+ },
22247
+ getItemSize: function getItemSize(props, index2, instanceProps) {
22248
+ return instanceProps.itemMetadataMap[index2].size;
22249
+ },
22250
+ getEstimatedTotalSize,
22251
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
22252
+ var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
22253
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
22254
+ var size2 = isHorizontal ? width2 : height2;
22255
+ var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
22256
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
22257
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
22258
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
22259
+ if (align === "smart") {
22260
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
22261
+ align = "auto";
22262
+ } else {
22263
+ align = "center";
22264
+ }
22265
+ }
22266
+ switch (align) {
22267
+ case "start":
22268
+ return maxOffset;
22269
+ case "end":
22270
+ return minOffset;
22271
+ case "center":
22272
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
22273
+ case "auto":
22274
+ default:
22275
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
22276
+ return scrollOffset;
22277
+ } else if (scrollOffset < minOffset) {
22278
+ return minOffset;
22279
+ } else {
22280
+ return maxOffset;
22281
+ }
22282
+ }
22283
+ },
22284
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
22285
+ return findNearestItem$1(props, instanceProps, offset2);
22286
+ },
22287
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
22288
+ var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
22289
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
22290
+ var size2 = isHorizontal ? width2 : height2;
22291
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
22292
+ var maxOffset = scrollOffset + size2;
22293
+ var offset2 = itemMetadata.offset + itemMetadata.size;
22294
+ var stopIndex = startIndex;
22295
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
22296
+ stopIndex++;
22297
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
22298
+ }
22299
+ return stopIndex;
22300
+ },
22301
+ initInstanceProps: function initInstanceProps2(props, instance) {
22302
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
22303
+ var instanceProps = {
22304
+ itemMetadataMap: {},
22305
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
22306
+ lastMeasuredIndex: -1
22307
+ };
22308
+ instance.resetAfterIndex = function(index2, shouldForceUpdate) {
22309
+ if (shouldForceUpdate === void 0) {
22310
+ shouldForceUpdate = true;
22311
+ }
22312
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
22313
+ instance._getItemStyleCache(-1);
22314
+ if (shouldForceUpdate) {
22315
+ instance.forceUpdate();
22316
+ }
22317
+ };
22318
+ return instanceProps;
22319
+ },
22320
+ shouldResetStyleCacheOnItemSizeChange: false,
22321
+ validateProps: function validateProps2(_ref5) {
22322
+ var itemSize = _ref5.itemSize;
22323
+ {
22324
+ if (typeof itemSize !== "function") {
22325
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
22326
+ }
22327
+ }
22328
+ }
22329
+ });
22330
+ const VariableSizeList = VariableSizeList$1;
22331
+ const LIST_ROW_HEIGHT = 48;
22332
+ makeStyles()(() => ({
22333
+ searchInput: {
22334
+ lineHeight: "initial",
22335
+ height: "auto !important"
22336
+ }
22337
+ }));
22338
+ const OuterElementContext = React__default.createContext({});
22339
+ const OuterElementType = React__default.forwardRef((props, ref) => {
22340
+ const outerProps = React__default.useContext(OuterElementContext);
22341
+ return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
22342
+ });
22343
+ function ListRow(props) {
22344
+ const { data, index: index2, style: style2 } = props;
22345
+ const dataSet = data[index2];
22346
+ const inlineStyle = {
22347
+ ...style2,
22348
+ top: style2.top + 8
22349
+ };
22350
+ const [props0, option, getItemLabel] = dataSet;
22351
+ const { key, ...optionProps } = props0;
22352
+ return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
22353
+ }
22354
+ function useResetCache(itemCount) {
22355
+ const ref = useRef(null);
22356
+ useEffect(() => {
22357
+ if (ref.current != null) {
22358
+ ref.current.resetAfterIndex(0, true);
22359
+ }
22360
+ }, [itemCount]);
22361
+ return ref;
22362
+ }
22363
+ React__default.forwardRef((props, ref) => {
22364
+ const { children, ...other } = props;
22365
+ const items = children;
22366
+ const itemCount = items.length;
22367
+ const gridRef = useResetCache(itemCount);
22368
+ return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
22369
+ });
21676
22370
  const ViewType = {
21677
22371
  DESCRIPTION: "description",
21678
22372
  STATUS: "status",
@@ -21696,6 +22390,7 @@ const ViewType = {
21696
22390
  OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
21697
22391
  FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
21698
22392
  BIOMARKER_SELECT: "biomarkerSelect",
22393
+ BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
21699
22394
  COMPARATIVE_HEADING: "comparativeHeading",
21700
22395
  LINK_CONTROLLER: "linkController",
21701
22396
  NEUROGLANCER: "neuroglancer",
@@ -22456,6 +23151,17 @@ const COMPONENT_COORDINATION_TYPES = {
22456
23151
  CoordinationType.OBS_SET_FILTER
22457
23152
  // TODO: create coordination types for internal state of the biomarker selection view?
22458
23153
  ],
23154
+ [ViewType.BIOMARKER_SELECT_ALT]: [
23155
+ CoordinationType.DATASET,
23156
+ CoordinationType.OBS_TYPE,
23157
+ CoordinationType.SAMPLE_TYPE,
23158
+ CoordinationType.FEATURE_SELECTION,
23159
+ CoordinationType.SAMPLE_SET_SELECTION,
23160
+ CoordinationType.SAMPLE_SET_FILTER,
23161
+ CoordinationType.OBS_SET_SELECTION,
23162
+ CoordinationType.OBS_SET_FILTER
23163
+ // TODO: create coordination types for internal state of the biomarker selection view?
23164
+ ],
22459
23165
  [ViewType.COMPARATIVE_HEADING]: [
22460
23166
  CoordinationType.DATASET,
22461
23167
  CoordinationType.OBS_TYPE,
@@ -23601,9 +24307,9 @@ function mapCacheHas(key) {
23601
24307
  return getMapData(this, key).has(key);
23602
24308
  }
23603
24309
  function mapCacheSet(key, value) {
23604
- var data = getMapData(this, key), size = data.size;
24310
+ var data = getMapData(this, key), size2 = data.size;
23605
24311
  data.set(key, value);
23606
- this.size += data.size == size ? 0 : 1;
24312
+ this.size += data.size == size2 ? 0 : 1;
23607
24313
  return this;
23608
24314
  }
23609
24315
  function MapCache(entries) {
@@ -30777,12 +31483,12 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
30777
31483
  return original.getVertexAttrib.apply(this, arguments);
30778
31484
  }
30779
31485
  };
30780
- gl.vertexAttribPointer = function vertexAttribPointer(indx, size, type, normalized, stride, offset2) {
31486
+ gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset2) {
30781
31487
  const vao = self2.currentVertexArrayObject;
30782
31488
  vao.maxAttrib = Math.max(vao.maxAttrib, indx);
30783
31489
  const attrib = vao.attribs[indx];
30784
31490
  attrib.buffer = self2.currentArrayBuffer;
30785
- attrib.size = size;
31491
+ attrib.size = size2;
30786
31492
  attrib.type = type;
30787
31493
  attrib.normalized = normalized;
30788
31494
  attrib.stride = stride;
@@ -32674,7 +33380,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
32674
33380
  sourceBuffer,
32675
33381
  readOffset = 0,
32676
33382
  writeOffset = 0,
32677
- size
33383
+ size: size2
32678
33384
  } = _ref;
32679
33385
  const {
32680
33386
  gl
@@ -32682,7 +33388,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
32682
33388
  assertWebGL2Context(gl);
32683
33389
  gl.bindBuffer(36662, sourceBuffer.handle);
32684
33390
  gl.bindBuffer(36663, this.handle);
32685
- gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size);
33391
+ gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size2);
32686
33392
  gl.bindBuffer(36662, null);
32687
33393
  gl.bindBuffer(36663, null);
32688
33394
  this.debugData = null;
@@ -32724,11 +33430,11 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
32724
33430
  target = this.target,
32725
33431
  index: index2 = this.accessor && this.accessor.index,
32726
33432
  offset: offset2 = 0,
32727
- size
33433
+ size: size2
32728
33434
  } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
32729
33435
  if (target === 35345 || target === 35982) {
32730
- if (size !== void 0) {
32731
- this.gl.bindBufferRange(target, index2, this.handle, offset2, size);
33436
+ if (size2 !== void 0) {
33437
+ this.gl.bindBufferRange(target, index2, this.handle, offset2, size2);
32732
33438
  } else {
32733
33439
  assert$7(offset2 === 0);
32734
33440
  this.gl.bindBufferBase(target, index2, this.handle);
@@ -33408,47 +34114,47 @@ class Texture extends Resource$1 {
33408
34114
  };
33409
34115
  }
33410
34116
  _deduceImageSize(data, width2, height2) {
33411
- let size;
34117
+ let size2;
33412
34118
  if (typeof ImageData !== "undefined" && data instanceof ImageData) {
33413
- size = {
34119
+ size2 = {
33414
34120
  width: data.width,
33415
34121
  height: data.height
33416
34122
  };
33417
34123
  } else if (typeof HTMLImageElement !== "undefined" && data instanceof HTMLImageElement) {
33418
- size = {
34124
+ size2 = {
33419
34125
  width: data.naturalWidth,
33420
34126
  height: data.naturalHeight
33421
34127
  };
33422
34128
  } else if (typeof HTMLCanvasElement !== "undefined" && data instanceof HTMLCanvasElement) {
33423
- size = {
34129
+ size2 = {
33424
34130
  width: data.width,
33425
34131
  height: data.height
33426
34132
  };
33427
34133
  } else if (typeof ImageBitmap !== "undefined" && data instanceof ImageBitmap) {
33428
- size = {
34134
+ size2 = {
33429
34135
  width: data.width,
33430
34136
  height: data.height
33431
34137
  };
33432
34138
  } else if (typeof HTMLVideoElement !== "undefined" && data instanceof HTMLVideoElement) {
33433
- size = {
34139
+ size2 = {
33434
34140
  width: data.videoWidth,
33435
34141
  height: data.videoHeight
33436
34142
  };
33437
34143
  } else if (!data) {
33438
- size = {
34144
+ size2 = {
33439
34145
  width: width2 >= 0 ? width2 : 1,
33440
34146
  height: height2 >= 0 ? height2 : 1
33441
34147
  };
33442
34148
  } else {
33443
- size = {
34149
+ size2 = {
33444
34150
  width: width2,
33445
34151
  height: height2
33446
34152
  };
33447
34153
  }
33448
- assert$7(size, "Could not deduced texture size");
33449
- assert$7(width2 === void 0 || size.width === width2, "Deduced texture width does not match supplied width");
33450
- assert$7(height2 === void 0 || size.height === height2, "Deduced texture height does not match supplied height");
33451
- return size;
34154
+ assert$7(size2, "Could not deduced texture size");
34155
+ assert$7(width2 === void 0 || size2.width === width2, "Deduced texture width does not match supplied width");
34156
+ assert$7(height2 === void 0 || size2.height === height2, "Deduced texture height does not match supplied height");
34157
+ return size2;
33452
34158
  }
33453
34159
  _createHandle() {
33454
34160
  return this.gl.createTexture();
@@ -35407,11 +36113,11 @@ function getSamplerSetter() {
35407
36113
  return update2;
35408
36114
  };
35409
36115
  }
35410
- function getArraySetter(functionName, toArray, size, uniformSetter) {
36116
+ function getArraySetter(functionName, toArray, size2, uniformSetter) {
35411
36117
  let cache2 = null;
35412
36118
  let cacheLength = null;
35413
36119
  return (gl, location, value) => {
35414
- const arrayValue = toArray(value, size);
36120
+ const arrayValue = toArray(value, size2);
35415
36121
  const length2 = arrayValue.length;
35416
36122
  let update2 = false;
35417
36123
  if (cache2 === null) {
@@ -35606,11 +36312,11 @@ class ProgramConfiguration {
35606
36312
  const {
35607
36313
  name: name2,
35608
36314
  type,
35609
- size
36315
+ size: size2
35610
36316
  } = gl.getActiveAttrib(program.handle, index2);
35611
36317
  const location = gl.getAttribLocation(program.handle, name2);
35612
36318
  if (location >= 0) {
35613
- this._addAttribute(location, name2, type, size);
36319
+ this._addAttribute(location, name2, type, size2);
35614
36320
  }
35615
36321
  }
35616
36322
  this.attributeInfos.sort((a2, b) => a2.location - b.location);
@@ -35627,20 +36333,20 @@ class ProgramConfiguration {
35627
36333
  const {
35628
36334
  name: name2,
35629
36335
  type,
35630
- size
36336
+ size: size2
35631
36337
  } = gl.getTransformFeedbackVarying(program.handle, location);
35632
- this._addVarying(location, name2, type, size);
36338
+ this._addVarying(location, name2, type, size2);
35633
36339
  }
35634
36340
  this.varyingInfos.sort((a2, b) => a2.location - b.location);
35635
36341
  }
35636
- _addAttribute(location, name2, compositeType, size) {
36342
+ _addAttribute(location, name2, compositeType, size2) {
35637
36343
  const {
35638
36344
  type,
35639
36345
  components
35640
36346
  } = decomposeCompositeGLType(compositeType);
35641
36347
  const accessor = {
35642
36348
  type,
35643
- size: size * components
36349
+ size: size2 * components
35644
36350
  };
35645
36351
  this._inferProperties(location, name2, accessor);
35646
36352
  const attributeInfo = {
@@ -35657,14 +36363,14 @@ class ProgramConfiguration {
35657
36363
  accessor.divisor = 1;
35658
36364
  }
35659
36365
  }
35660
- _addVarying(location, name2, compositeType, size) {
36366
+ _addVarying(location, name2, compositeType, size2) {
35661
36367
  const {
35662
36368
  type,
35663
36369
  components
35664
36370
  } = decomposeCompositeGLType(compositeType);
35665
36371
  const accessor = new Accessor({
35666
36372
  type,
35667
- size: size * components
36373
+ size: size2 * components
35668
36374
  });
35669
36375
  const varying = {
35670
36376
  location,
@@ -36340,7 +37046,7 @@ class VertexArrayObject extends Resource$1 {
36340
37046
  return this.setElementBuffer(buffer, accessor);
36341
37047
  }
36342
37048
  const {
36343
- size,
37049
+ size: size2,
36344
37050
  type,
36345
37051
  stride,
36346
37052
  offset: offset2,
@@ -36357,9 +37063,9 @@ class VertexArrayObject extends Resource$1 {
36357
37063
  gl.bindBuffer(34962, buffer.handle);
36358
37064
  if (integer) {
36359
37065
  assert$7(isWebGL2$1(gl));
36360
- gl2.vertexAttribIPointer(location, size, type, stride, offset2);
37066
+ gl2.vertexAttribIPointer(location, size2, type, stride, offset2);
36361
37067
  } else {
36362
- gl.vertexAttribPointer(location, size, type, normalized, stride, offset2);
37068
+ gl.vertexAttribPointer(location, size2, type, normalized, stride, offset2);
36363
37069
  }
36364
37070
  gl.enableVertexAttribArray(location);
36365
37071
  gl2.vertexAttribDivisor(location, divisor || 0);
@@ -36687,10 +37393,10 @@ class VertexArray {
36687
37393
  const currentAccessor = this.accessors[location] || {};
36688
37394
  const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
36689
37395
  const {
36690
- size,
37396
+ size: size2,
36691
37397
  type
36692
37398
  } = accessor;
36693
- assert$7(Number.isFinite(size) && Number.isFinite(type));
37399
+ assert$7(Number.isFinite(size2) && Number.isFinite(type));
36694
37400
  return {
36695
37401
  location,
36696
37402
  accessor
@@ -36822,12 +37528,12 @@ class VertexArray {
36822
37528
  function formatArrayValue(v, opts) {
36823
37529
  const {
36824
37530
  maxElts = 16,
36825
- size = 1
37531
+ size: size2 = 1
36826
37532
  } = opts;
36827
37533
  let string = "[";
36828
37534
  for (let i2 = 0; i2 < v.length && i2 < maxElts; ++i2) {
36829
37535
  if (i2 > 0) {
36830
- string += ",".concat(i2 % size === 0 ? " " : "");
37536
+ string += ",".concat(i2 % size2 === 0 ? " " : "");
36831
37537
  }
36832
37538
  string += formatValue(v[i2], opts);
36833
37539
  }
@@ -36992,7 +37698,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
36992
37698
  };
36993
37699
  }
36994
37700
  let type = "NOT PROVIDED";
36995
- let size = 1;
37701
+ let size2 = 1;
36996
37702
  let verts = 0;
36997
37703
  let bytes = 0;
36998
37704
  let isInteger;
@@ -37000,7 +37706,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
37000
37706
  let value;
37001
37707
  if (accessor) {
37002
37708
  type = accessor.type;
37003
- size = accessor.size;
37709
+ size2 = accessor.size;
37004
37710
  type = String(type).replace("Array", "");
37005
37711
  isInteger = type.indexOf("nt") !== -1;
37006
37712
  }
@@ -37013,41 +37719,41 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
37013
37719
  marker2 = changed ? "*" : "";
37014
37720
  value = data;
37015
37721
  bytes = buffer.byteLength;
37016
- verts = bytes / data.BYTES_PER_ELEMENT / size;
37722
+ verts = bytes / data.BYTES_PER_ELEMENT / size2;
37017
37723
  let format;
37018
37724
  if (accessor) {
37019
37725
  const instanced = accessor.divisor > 0;
37020
- format = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
37726
+ format = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
37021
37727
  } else {
37022
37728
  isInteger = true;
37023
37729
  format = "".concat(bytes, " bytes");
37024
37730
  }
37025
37731
  return {
37026
37732
  [header]: "".concat(marker2).concat(formatValue(value, {
37027
- size,
37733
+ size: size2,
37028
37734
  isInteger
37029
37735
  })),
37030
37736
  "Format ": format
37031
37737
  };
37032
37738
  }
37033
37739
  value = attribute;
37034
- size = attribute.length;
37740
+ size2 = attribute.length;
37035
37741
  type = String(attribute.constructor.name).replace("Array", "");
37036
37742
  isInteger = type.indexOf("nt") !== -1;
37037
37743
  return {
37038
37744
  [header]: "".concat(formatValue(value, {
37039
- size,
37745
+ size: size2,
37040
37746
  isInteger
37041
37747
  }), " (constant)"),
37042
- "Format ": "".concat(size, "x").concat(type, " (constant)")
37748
+ "Format ": "".concat(size2, "x").concat(type, " (constant)")
37043
37749
  };
37044
37750
  }
37045
37751
  function getGLSLDeclaration$1(name2, accessor) {
37046
37752
  const {
37047
37753
  type,
37048
- size
37754
+ size: size2
37049
37755
  } = accessor;
37050
- const typeAndName = getCompositeGLType(type, size);
37756
+ const typeAndName = getCompositeGLType(type, size2);
37051
37757
  return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
37052
37758
  }
37053
37759
  function getDebugTableForProgramConfiguration(config2) {
@@ -37074,9 +37780,9 @@ function getDebugTableForProgramConfiguration(config2) {
37074
37780
  function getGLSLDeclaration(attributeInfo) {
37075
37781
  const {
37076
37782
  type,
37077
- size
37783
+ size: size2
37078
37784
  } = attributeInfo.accessor;
37079
- const typeAndName = getCompositeGLType(type, size);
37785
+ const typeAndName = getCompositeGLType(type, size2);
37080
37786
  if (typeAndName) {
37081
37787
  return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
37082
37788
  }
@@ -40101,11 +40807,11 @@ class Geometry {
40101
40807
  const attribute = attributes[attributeName];
40102
40808
  const {
40103
40809
  value,
40104
- size,
40810
+ size: size2,
40105
40811
  constant: constant2
40106
40812
  } = attribute;
40107
- if (!constant2 && value && size >= 1) {
40108
- vertexCount = Math.min(vertexCount, value.length / size);
40813
+ if (!constant2 && value && size2 >= 1) {
40814
+ vertexCount = Math.min(vertexCount, value.length / size2);
40109
40815
  }
40110
40816
  }
40111
40817
  assert$7(Number.isFinite(vertexCount));
@@ -40483,20 +41189,20 @@ function unpackIndexedGeometry(geometry2) {
40483
41189
  const {
40484
41190
  constant: constant2,
40485
41191
  value,
40486
- size
41192
+ size: size2
40487
41193
  } = attribute;
40488
- if (constant2 || !size) {
41194
+ if (constant2 || !size2) {
40489
41195
  continue;
40490
41196
  }
40491
- const unpackedValue = new value.constructor(vertexCount * size);
41197
+ const unpackedValue = new value.constructor(vertexCount * size2);
40492
41198
  for (let x = 0; x < vertexCount; ++x) {
40493
41199
  const index2 = indices.value[x];
40494
- for (let i2 = 0; i2 < size; i2++) {
40495
- unpackedValue[x * size + i2] = value[index2 * size + i2];
41200
+ for (let i2 = 0; i2 < size2; i2++) {
41201
+ unpackedValue[x * size2 + i2] = value[index2 * size2 + i2];
40496
41202
  }
40497
41203
  }
40498
41204
  unpackedAttributes[attributeName] = {
40499
- size,
41205
+ size: size2,
40500
41206
  value: unpackedValue
40501
41207
  };
40502
41208
  }
@@ -41417,11 +42123,11 @@ function fitBounds(options) {
41417
42123
  const padding2 = getPaddingObject(options.padding);
41418
42124
  const nw = lngLatToWorld([west, clamp$1(north, -85.051129, MAX_LATITUDE)]);
41419
42125
  const se = lngLatToWorld([east, clamp$1(south, -85.051129, MAX_LATITUDE)]);
41420
- const size = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
42126
+ const size2 = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
41421
42127
  const targetSize = [width2 - padding2.left - padding2.right - Math.abs(offset2[0]) * 2, height2 - padding2.top - padding2.bottom - Math.abs(offset2[1]) * 2];
41422
42128
  assert$5(targetSize[0] > 0 && targetSize[1] > 0);
41423
- const scaleX2 = targetSize[0] / size[0];
41424
- const scaleY2 = targetSize[1] / size[1];
42129
+ const scaleX2 = targetSize[0] / size2[0];
42130
+ const scaleY2 = targetSize[1] / size2[1];
41425
42131
  const offsetX = (padding2.right - padding2.left) / 2 / scaleX2;
41426
42132
  const offsetY = (padding2.top - padding2.bottom) / 2 / scaleY2;
41427
42133
  const center = [(se[0] + nw[0]) / 2 + offsetX, (se[1] + nw[1]) / 2 + offsetY];
@@ -42540,7 +43246,7 @@ class TypedArrayManager {
42540
43246
  Object.assign(this.opts, options);
42541
43247
  }
42542
43248
  allocate(typedArray, count2, {
42543
- size = 1,
43249
+ size: size2 = 1,
42544
43250
  type,
42545
43251
  padding: padding2 = 0,
42546
43252
  copy: copy2 = false,
@@ -42548,7 +43254,7 @@ class TypedArrayManager {
42548
43254
  maxCount
42549
43255
  }) {
42550
43256
  const Type2 = type || typedArray && typedArray.constructor || Float32Array;
42551
- const newSize = count2 * size + padding2;
43257
+ const newSize = count2 * size2 + padding2;
42552
43258
  if (ArrayBuffer.isView(typedArray)) {
42553
43259
  if (newSize <= typedArray.length) {
42554
43260
  return typedArray;
@@ -42559,7 +43265,7 @@ class TypedArrayManager {
42559
43265
  }
42560
43266
  let maxSize = Infinity;
42561
43267
  if (maxCount) {
42562
- maxSize = maxCount * size + padding2;
43268
+ maxSize = maxCount * size2 + padding2;
42563
43269
  }
42564
43270
  const newArray = this._allocate(Type2, newSize, initialize, maxSize);
42565
43271
  if (typedArray && copy2) {
@@ -42573,8 +43279,8 @@ class TypedArrayManager {
42573
43279
  release(typedArray) {
42574
43280
  this._release(typedArray);
42575
43281
  }
42576
- _allocate(Type2, size, initialize, maxSize) {
42577
- let sizeToAllocate = Math.max(Math.ceil(size * this.opts.overAlloc), 1);
43282
+ _allocate(Type2, size2, initialize, maxSize) {
43283
+ let sizeToAllocate = Math.max(Math.ceil(size2 * this.opts.overAlloc), 1);
42578
43284
  if (sizeToAllocate > maxSize) {
42579
43285
  sizeToAllocate = maxSize;
42580
43286
  }
@@ -42648,26 +43354,26 @@ function fp64LowPart(x) {
42648
43354
  let scratchArray;
42649
43355
  function toDoublePrecisionArray(typedArray, options) {
42650
43356
  const {
42651
- size = 1,
43357
+ size: size2 = 1,
42652
43358
  startIndex = 0
42653
43359
  } = options;
42654
43360
  const endIndex = options.endIndex !== void 0 ? options.endIndex : typedArray.length;
42655
- const count2 = (endIndex - startIndex) / size;
43361
+ const count2 = (endIndex - startIndex) / size2;
42656
43362
  scratchArray = defaultTypedArrayManager.allocate(scratchArray, count2, {
42657
43363
  type: Float32Array,
42658
- size: size * 2
43364
+ size: size2 * 2
42659
43365
  });
42660
43366
  let sourceIndex = startIndex;
42661
43367
  let targetIndex = 0;
42662
43368
  while (sourceIndex < endIndex) {
42663
- for (let j = 0; j < size; j++) {
43369
+ for (let j = 0; j < size2; j++) {
42664
43370
  const value = typedArray[sourceIndex++];
42665
43371
  scratchArray[targetIndex + j] = value;
42666
- scratchArray[targetIndex + j + size] = fp64LowPart(value);
43372
+ scratchArray[targetIndex + j + size2] = fp64LowPart(value);
42667
43373
  }
42668
- targetIndex += size * 2;
43374
+ targetIndex += size2 * 2;
42669
43375
  }
42670
- return scratchArray.subarray(0, count2 * size * 2);
43376
+ return scratchArray.subarray(0, count2 * size2 * 2);
42671
43377
  }
42672
43378
  const DEGREES_TO_RADIANS$4 = Math.PI / 180;
42673
43379
  const IDENTITY = createMat4();
@@ -46326,15 +47032,15 @@ function getMaskViewport({
46326
47032
  });
46327
47033
  }
46328
47034
  function _doubleBounds(bounds2) {
46329
- const size = {
47035
+ const size2 = {
46330
47036
  x: bounds2[2] - bounds2[0],
46331
47037
  y: bounds2[3] - bounds2[1]
46332
47038
  };
46333
47039
  const center = {
46334
- x: bounds2[0] + 0.5 * size.x,
46335
- y: bounds2[1] + 0.5 * size.y
47040
+ x: bounds2[0] + 0.5 * size2.x,
47041
+ y: bounds2[1] + 0.5 * size2.y
46336
47042
  };
46337
- return [center.x - size.x, center.y - size.y, center.x + size.x, center.y + size.y];
47043
+ return [center.x - size2.x, center.y - size2.y, center.x + size2.x, center.y + size2.y];
46338
47044
  }
46339
47045
  class MaskEffect {
46340
47046
  constructor() {
@@ -50718,13 +51424,13 @@ class ShaderAttribute {
50718
51424
  value
50719
51425
  } = this.source;
50720
51426
  const {
50721
- size
51427
+ size: size2
50722
51428
  } = accessor;
50723
51429
  let constantValue = value;
50724
- if (value && value.length !== size) {
50725
- constantValue = new Float32Array(size);
51430
+ if (value && value.length !== size2) {
51431
+ constantValue = new Float32Array(size2);
50726
51432
  const index2 = accessor.elementOffset || 0;
50727
- for (let i2 = 0; i2 < size; ++i2) {
51433
+ for (let i2 = 0; i2 < size2; ++i2) {
50728
51434
  constantValue[i2] = value[index2 + i2];
50729
51435
  }
50730
51436
  }
@@ -50927,14 +51633,14 @@ class DataColumn {
50927
51633
  const {
50928
51634
  value,
50929
51635
  numInstances,
50930
- size
51636
+ size: size2
50931
51637
  } = this;
50932
- const len2 = numInstances * size;
51638
+ const len2 = numInstances * size2;
50933
51639
  if (value && len2 && value.length >= len2) {
50934
- const min = new Array(size).fill(Infinity);
50935
- const max2 = new Array(size).fill(-Infinity);
51640
+ const min = new Array(size2).fill(Infinity);
51641
+ const max2 = new Array(size2).fill(-Infinity);
50936
51642
  for (let i2 = 0; i2 < len2; ) {
50937
- for (let j = 0; j < size; j++) {
51643
+ for (let j = 0; j < size2; j++) {
50938
51644
  const v = value[i2++];
50939
51645
  if (v < min[j]) min[j] = v;
50940
51646
  if (v > max2[j]) max2[j] = v;
@@ -51100,7 +51806,7 @@ class DataColumn {
51100
51806
  _normalizeValue(value, out, start) {
51101
51807
  const {
51102
51808
  defaultValue: defaultValue2,
51103
- size
51809
+ size: size2
51104
51810
  } = this.settings;
51105
51811
  if (Number.isFinite(value)) {
51106
51812
  out[start] = value;
@@ -51110,7 +51816,7 @@ class DataColumn {
51110
51816
  out[start] = defaultValue2[0];
51111
51817
  return out;
51112
51818
  }
51113
- switch (size) {
51819
+ switch (size2) {
51114
51820
  case 4:
51115
51821
  out[start + 3] = Number.isFinite(value[3]) ? value[3] : defaultValue2[3];
51116
51822
  case 3:
@@ -51121,7 +51827,7 @@ class DataColumn {
51121
51827
  out[start + 0] = Number.isFinite(value[0]) ? value[0] : defaultValue2[0];
51122
51828
  break;
51123
51829
  default:
51124
- let i2 = size;
51830
+ let i2 = size2;
51125
51831
  while (--i2 >= 0) {
51126
51832
  out[start + i2] = Number.isFinite(value[i2]) ? value[i2] : defaultValue2[i2];
51127
51833
  }
@@ -51133,9 +51839,9 @@ class DataColumn {
51133
51839
  return false;
51134
51840
  }
51135
51841
  const {
51136
- size
51842
+ size: size2
51137
51843
  } = this;
51138
- for (let i2 = 0; i2 < size; i2++) {
51844
+ for (let i2 = 0; i2 < size2; i2++) {
51139
51845
  if (value1[i2] !== value2[i2]) {
51140
51846
  return false;
51141
51847
  }
@@ -51174,14 +51880,14 @@ function isAsyncIterable(data) {
51174
51880
  }
51175
51881
  function getAccessorFromBuffer(typedArray, options) {
51176
51882
  const {
51177
- size,
51883
+ size: size2,
51178
51884
  stride,
51179
51885
  offset: offset2,
51180
51886
  startIndices,
51181
51887
  nested
51182
51888
  } = options;
51183
51889
  const bytesPerElement = typedArray.BYTES_PER_ELEMENT;
51184
- const elementStride = stride ? stride / bytesPerElement : size;
51890
+ const elementStride = stride ? stride / bytesPerElement : size2;
51185
51891
  const elementOffset = offset2 ? offset2 / bytesPerElement : 0;
51186
51892
  const vertexCount = Math.floor((typedArray.length - elementOffset) / elementStride);
51187
51893
  return (_, {
@@ -51190,7 +51896,7 @@ function getAccessorFromBuffer(typedArray, options) {
51190
51896
  }) => {
51191
51897
  if (!startIndices) {
51192
51898
  const sourceIndex = index2 * elementStride + elementOffset;
51193
- for (let j = 0; j < size; j++) {
51899
+ for (let j = 0; j < size2; j++) {
51194
51900
  target[j] = typedArray[sourceIndex + j];
51195
51901
  }
51196
51902
  return target;
@@ -51202,20 +51908,20 @@ function getAccessorFromBuffer(typedArray, options) {
51202
51908
  result = new Array(endIndex - startIndex);
51203
51909
  for (let i2 = startIndex; i2 < endIndex; i2++) {
51204
51910
  const sourceIndex = i2 * elementStride + elementOffset;
51205
- target = new Array(size);
51206
- for (let j = 0; j < size; j++) {
51911
+ target = new Array(size2);
51912
+ for (let j = 0; j < size2; j++) {
51207
51913
  target[j] = typedArray[sourceIndex + j];
51208
51914
  }
51209
51915
  result[i2 - startIndex] = target;
51210
51916
  }
51211
- } else if (elementStride === size) {
51212
- result = typedArray.subarray(startIndex * size + elementOffset, endIndex * size + elementOffset);
51917
+ } else if (elementStride === size2) {
51918
+ result = typedArray.subarray(startIndex * size2 + elementOffset, endIndex * size2 + elementOffset);
51213
51919
  } else {
51214
- result = new typedArray.constructor((endIndex - startIndex) * size);
51920
+ result = new typedArray.constructor((endIndex - startIndex) * size2);
51215
51921
  let targetIndex = 0;
51216
51922
  for (let i2 = startIndex; i2 < endIndex; i2++) {
51217
51923
  const sourceIndex = i2 * elementStride + elementOffset;
51218
- for (let j = 0; j < size; j++) {
51924
+ for (let j = 0; j < size2; j++) {
51219
51925
  result[targetIndex++] = typedArray[sourceIndex + j];
51220
51926
  }
51221
51927
  }
@@ -51257,7 +51963,7 @@ function padArrayChunk(options) {
51257
51963
  source,
51258
51964
  target,
51259
51965
  start = 0,
51260
- size,
51966
+ size: size2,
51261
51967
  getData
51262
51968
  } = options;
51263
51969
  const end = options.end || target.length;
@@ -51274,7 +51980,7 @@ function padArrayChunk(options) {
51274
51980
  let i2 = sourceLength;
51275
51981
  while (i2 < targetLength) {
51276
51982
  const datum = getData(i2, source);
51277
- for (let j = 0; j < size; j++) {
51983
+ for (let j = 0; j < size2; j++) {
51278
51984
  target[start + i2] = datum[j] || 0;
51279
51985
  i2++;
51280
51986
  }
@@ -51283,7 +51989,7 @@ function padArrayChunk(options) {
51283
51989
  function padArray({
51284
51990
  source,
51285
51991
  target,
51286
- size,
51992
+ size: size2,
51287
51993
  getData,
51288
51994
  sourceStartIndices,
51289
51995
  targetStartIndices
@@ -51292,7 +51998,7 @@ function padArray({
51292
51998
  padArrayChunk({
51293
51999
  source,
51294
52000
  target,
51295
- size,
52001
+ size: size2,
51296
52002
  getData
51297
52003
  });
51298
52004
  return target;
@@ -51302,14 +52008,14 @@ function padArray({
51302
52008
  const getChunkData = getData && ((i2, chunk) => getData(i2 + targetIndex, chunk));
51303
52009
  const n2 = Math.min(sourceStartIndices.length, targetStartIndices.length);
51304
52010
  for (let i2 = 1; i2 < n2; i2++) {
51305
- const nextSourceIndex = sourceStartIndices[i2] * size;
51306
- const nextTargetIndex = targetStartIndices[i2] * size;
52011
+ const nextSourceIndex = sourceStartIndices[i2] * size2;
52012
+ const nextTargetIndex = targetStartIndices[i2] * size2;
51307
52013
  padArrayChunk({
51308
52014
  source: source.subarray(sourceIndex, nextSourceIndex),
51309
52015
  target,
51310
52016
  start: targetIndex,
51311
52017
  end: nextTargetIndex,
51312
- size,
52018
+ size: size2,
51313
52019
  getData: getChunkData
51314
52020
  });
51315
52021
  sourceIndex = nextSourceIndex;
@@ -51320,7 +52026,7 @@ function padArray({
51320
52026
  source: [],
51321
52027
  target,
51322
52028
  start: targetIndex,
51323
- size,
52029
+ size: size2,
51324
52030
  getData: getChunkData
51325
52031
  });
51326
52032
  }
@@ -51365,8 +52071,8 @@ function getSourceBufferAttribute(gl, attribute) {
51365
52071
  }
51366
52072
  return attribute.value;
51367
52073
  }
51368
- function getAttributeTypeFromSize(size) {
51369
- switch (size) {
52074
+ function getAttributeTypeFromSize(size2) {
52075
+ switch (size2) {
51370
52076
  case 1:
51371
52077
  return "float";
51372
52078
  case 2:
@@ -51376,7 +52082,7 @@ function getAttributeTypeFromSize(size) {
51376
52082
  case 4:
51377
52083
  return "vec4";
51378
52084
  default:
51379
- throw new Error('No defined attribute type for size "'.concat(size, '"'));
52085
+ throw new Error('No defined attribute type for size "'.concat(size2, '"'));
51380
52086
  }
51381
52087
  }
51382
52088
  function cycleBuffers(buffers) {
@@ -51387,10 +52093,10 @@ function getAttributeBufferLength(attribute, numInstances) {
51387
52093
  doublePrecision,
51388
52094
  settings,
51389
52095
  value,
51390
- size
52096
+ size: size2
51391
52097
  } = attribute;
51392
52098
  const multiplier = doublePrecision && value instanceof Float64Array ? 2 : 1;
51393
- return (settings.noAlloc ? value.length : numInstances * size) * multiplier;
52099
+ return (settings.noAlloc ? value.length : numInstances * size2) * multiplier;
51394
52100
  }
51395
52101
  function padBuffer({
51396
52102
  buffer,
@@ -51401,7 +52107,7 @@ function padBuffer({
51401
52107
  getData = (x) => x
51402
52108
  }) {
51403
52109
  const precisionMultiplier = attribute.doublePrecision && attribute.value instanceof Float64Array ? 2 : 1;
51404
- const size = attribute.size * precisionMultiplier;
52110
+ const size2 = attribute.size * precisionMultiplier;
51405
52111
  const byteOffset = attribute.byteOffset;
51406
52112
  const toStartIndices = attribute.startIndices;
51407
52113
  const hasStartIndices = fromStartIndices && toStartIndices;
@@ -51417,7 +52123,7 @@ function padBuffer({
51417
52123
  const getter = getData;
51418
52124
  getData = (value, chunk) => attribute.normalizeConstant(getter(value, chunk));
51419
52125
  }
51420
- const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 + size), chunk);
52126
+ const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 + size2), chunk);
51421
52127
  const source = buffer.getData({
51422
52128
  length: fromLength
51423
52129
  });
@@ -51427,7 +52133,7 @@ function padBuffer({
51427
52133
  target: data,
51428
52134
  sourceStartIndices: fromStartIndices,
51429
52135
  targetStartIndices: toStartIndices,
51430
- size,
52136
+ size: size2,
51431
52137
  getData: getMissingData
51432
52138
  });
51433
52139
  if (buffer.byteLength < data.byteLength + byteOffset) {
@@ -51683,7 +52389,7 @@ class Attribute extends DataColumn {
51683
52389
  settings,
51684
52390
  state,
51685
52391
  value,
51686
- size,
52392
+ size: size2,
51687
52393
  startIndices
51688
52394
  } = attribute;
51689
52395
  const {
@@ -51709,9 +52415,9 @@ class Attribute extends DataColumn {
51709
52415
  let startIndex = i2;
51710
52416
  for (const item of objectValue) {
51711
52417
  attribute._normalizeValue(item, value, startIndex);
51712
- startIndex += size;
52418
+ startIndex += size2;
51713
52419
  }
51714
- } else if (objectValue && objectValue.length > size) {
52420
+ } else if (objectValue && objectValue.length > size2) {
51715
52421
  value.set(objectValue, i2);
51716
52422
  } else {
51717
52423
  attribute._normalizeValue(objectValue, objectInfo.target, 0);
@@ -51722,10 +52428,10 @@ class Attribute extends DataColumn {
51722
52428
  count: numVertices
51723
52429
  });
51724
52430
  }
51725
- i2 += numVertices * size;
52431
+ i2 += numVertices * size2;
51726
52432
  } else {
51727
52433
  attribute._normalizeValue(objectValue, value, i2);
51728
- i2 += size;
52434
+ i2 += size2;
51729
52435
  }
51730
52436
  }
51731
52437
  }
@@ -56923,14 +57629,14 @@ function reversePolygon(points, options) {
56923
57629
  const {
56924
57630
  start = 0,
56925
57631
  end = points.length,
56926
- size = 2
57632
+ size: size2 = 2
56927
57633
  } = options;
56928
- const numPoints = (end - start) / size;
57634
+ const numPoints = (end - start) / size2;
56929
57635
  const numSwaps = Math.floor(numPoints / 2);
56930
57636
  for (let i2 = 0; i2 < numSwaps; ++i2) {
56931
- const b1 = start + i2 * size;
56932
- const b2 = start + (numPoints - 1 - i2) * size;
56933
- for (let j = 0; j < size; ++j) {
57637
+ const b1 = start + i2 * size2;
57638
+ const b2 = start + (numPoints - 1 - i2) * size2;
57639
+ for (let j = 0; j < size2; ++j) {
56934
57640
  const tmp = points[b1 + j];
56935
57641
  points[b1 + j] = points[b2 + j];
56936
57642
  points[b2 + j] = tmp;
@@ -56938,12 +57644,12 @@ function reversePolygon(points, options) {
56938
57644
  }
56939
57645
  }
56940
57646
  function push(target, source) {
56941
- const size = source.length;
57647
+ const size2 = source.length;
56942
57648
  const startIndex = target.length;
56943
57649
  if (startIndex > 0) {
56944
57650
  let isDuplicate = true;
56945
- for (let i2 = 0; i2 < size; i2++) {
56946
- if (target[startIndex - size + i2] !== source[i2]) {
57651
+ for (let i2 = 0; i2 < size2; i2++) {
57652
+ if (target[startIndex - size2 + i2] !== source[i2]) {
56947
57653
  isDuplicate = false;
56948
57654
  break;
56949
57655
  }
@@ -56952,20 +57658,20 @@ function push(target, source) {
56952
57658
  return false;
56953
57659
  }
56954
57660
  }
56955
- for (let i2 = 0; i2 < size; i2++) {
57661
+ for (let i2 = 0; i2 < size2; i2++) {
56956
57662
  target[startIndex + i2] = source[i2];
56957
57663
  }
56958
57664
  return true;
56959
57665
  }
56960
57666
  function copy(target, source) {
56961
- const size = source.length;
56962
- for (let i2 = 0; i2 < size; i2++) {
57667
+ const size2 = source.length;
57668
+ for (let i2 = 0; i2 < size2; i2++) {
56963
57669
  target[i2] = source[i2];
56964
57670
  }
56965
57671
  }
56966
- function getPointAtIndex(positions, index2, size, offset2, out = []) {
56967
- const startI = offset2 + index2 * size;
56968
- for (let i2 = 0; i2 < size; i2++) {
57672
+ function getPointAtIndex(positions, index2, size2, offset2, out = []) {
57673
+ const startI = offset2 + index2 * size2;
57674
+ for (let i2 = 0; i2 < size2; i2++) {
56969
57675
  out[i2] = positions[startI + i2];
56970
57676
  }
56971
57677
  return out;
@@ -57003,24 +57709,24 @@ function bitCode(p, bbox2) {
57003
57709
  }
57004
57710
  function cutPolylineByGrid(positions, options) {
57005
57711
  const {
57006
- size = 2,
57712
+ size: size2 = 2,
57007
57713
  broken = false,
57008
57714
  gridResolution = 10,
57009
57715
  gridOffset = [0, 0],
57010
57716
  startIndex = 0,
57011
57717
  endIndex = positions.length
57012
57718
  } = options || {};
57013
- const numPoints = (endIndex - startIndex) / size;
57719
+ const numPoints = (endIndex - startIndex) / size2;
57014
57720
  let part = [];
57015
57721
  const result = [part];
57016
- const a2 = getPointAtIndex(positions, 0, size, startIndex);
57722
+ const a2 = getPointAtIndex(positions, 0, size2, startIndex);
57017
57723
  let b;
57018
57724
  let codeB;
57019
57725
  const cell = getGridCell(a2, gridResolution, gridOffset, []);
57020
57726
  const scratchPoint = [];
57021
57727
  push(part, a2);
57022
57728
  for (let i2 = 1; i2 < numPoints; i2++) {
57023
- b = getPointAtIndex(positions, i2, size, startIndex, b);
57729
+ b = getPointAtIndex(positions, i2, size2, startIndex, b);
57024
57730
  codeB = bitCode(b, cell);
57025
57731
  while (codeB) {
57026
57732
  intersect(a2, b, codeB, cell, scratchPoint);
@@ -57032,7 +57738,7 @@ function cutPolylineByGrid(positions, options) {
57032
57738
  push(part, scratchPoint);
57033
57739
  copy(a2, scratchPoint);
57034
57740
  moveToNeighborCell(cell, gridResolution, codeB);
57035
- if (broken && part.length > size) {
57741
+ if (broken && part.length > size2) {
57036
57742
  part = [];
57037
57743
  result.push(part);
57038
57744
  push(part, a2);
@@ -57057,7 +57763,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57057
57763
  return [];
57058
57764
  }
57059
57765
  const {
57060
- size = 2,
57766
+ size: size2 = 2,
57061
57767
  gridResolution = 10,
57062
57768
  gridOffset = [0, 0],
57063
57769
  edgeTypes = false
@@ -57065,7 +57771,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57065
57771
  const result = [];
57066
57772
  const queue = [{
57067
57773
  pos: positions,
57068
- types: edgeTypes ? new Array(positions.length / size).fill(TYPE_BORDER) : null,
57774
+ types: edgeTypes ? new Array(positions.length / size2).fill(TYPE_BORDER) : null,
57069
57775
  holes: holeIndices || []
57070
57776
  }];
57071
57777
  const bbox2 = [[], []];
@@ -57076,11 +57782,11 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57076
57782
  types,
57077
57783
  holes
57078
57784
  } = queue.shift();
57079
- getBoundingBox$2(pos, size, holes[0] || pos.length, bbox2);
57785
+ getBoundingBox$2(pos, size2, holes[0] || pos.length, bbox2);
57080
57786
  cell = getGridCell(bbox2[0], gridResolution, gridOffset, cell);
57081
57787
  const code = bitCode(bbox2[1], cell);
57082
57788
  if (code) {
57083
- let parts = bisectPolygon(pos, types, size, 0, holes[0] || pos.length, cell, code);
57789
+ let parts = bisectPolygon(pos, types, size2, 0, holes[0] || pos.length, cell, code);
57084
57790
  const polygonLow = {
57085
57791
  pos: parts[0].pos,
57086
57792
  types: parts[0].types,
@@ -57093,7 +57799,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57093
57799
  };
57094
57800
  queue.push(polygonLow, polygonHigh);
57095
57801
  for (let i2 = 0; i2 < holes.length; i2++) {
57096
- parts = bisectPolygon(pos, types, size, holes[i2], holes[i2 + 1] || pos.length, cell, code);
57802
+ parts = bisectPolygon(pos, types, size2, holes[i2], holes[i2 + 1] || pos.length, cell, code);
57097
57803
  if (parts[0]) {
57098
57804
  polygonLow.holes.push(polygonLow.pos.length);
57099
57805
  polygonLow.pos = concatInPlace(polygonLow.pos, parts[0].pos);
@@ -57124,8 +57830,8 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57124
57830
  }
57125
57831
  return result;
57126
57832
  }
57127
- function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2, edge) {
57128
- const numPoints = (endIndex - startIndex) / size;
57833
+ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2, edge) {
57834
+ const numPoints = (endIndex - startIndex) / size2;
57129
57835
  const resultLow = [];
57130
57836
  const resultHigh = [];
57131
57837
  const typesLow = [];
@@ -57134,15 +57840,15 @@ function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2,
57134
57840
  let p;
57135
57841
  let side;
57136
57842
  let type;
57137
- const prev2 = getPointAtIndex(positions, numPoints - 1, size, startIndex);
57843
+ const prev2 = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
57138
57844
  let prevSide = Math.sign(edge & 8 ? prev2[1] - bbox2[3] : prev2[0] - bbox2[2]);
57139
57845
  let prevType = edgeTypes && edgeTypes[numPoints - 1];
57140
57846
  let lowPointCount = 0;
57141
57847
  let highPointCount = 0;
57142
57848
  for (let i2 = 0; i2 < numPoints; i2++) {
57143
- p = getPointAtIndex(positions, i2, size, startIndex, p);
57849
+ p = getPointAtIndex(positions, i2, size2, startIndex, p);
57144
57850
  side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
57145
- type = edgeTypes && edgeTypes[startIndex / size + i2];
57851
+ type = edgeTypes && edgeTypes[startIndex / size2 + i2];
57146
57852
  if (side && prevSide && prevSide !== side) {
57147
57853
  intersect(prev2, p, edge, bbox2, scratchPoint);
57148
57854
  push(resultLow, scratchPoint) && typesLow.push(prevType);
@@ -57196,12 +57902,12 @@ function moveToNeighborCell(cell, gridResolution, edge) {
57196
57902
  cell[2] -= gridResolution;
57197
57903
  }
57198
57904
  }
57199
- function getBoundingBox$2(positions, size, endIndex, out) {
57905
+ function getBoundingBox$2(positions, size2, endIndex, out) {
57200
57906
  let minX = Infinity;
57201
57907
  let maxX = -Infinity;
57202
57908
  let minY = Infinity;
57203
57909
  let maxY = -Infinity;
57204
- for (let i2 = 0; i2 < endIndex; i2 += size) {
57910
+ for (let i2 = 0; i2 < endIndex; i2 += size2) {
57205
57911
  const x = positions[i2];
57206
57912
  const y = positions[i2 + 1];
57207
57913
  minX = x < minX ? x : minX;
@@ -57218,29 +57924,29 @@ function getBoundingBox$2(positions, size, endIndex, out) {
57218
57924
  const DEFAULT_MAX_LATITUDE = 85.051129;
57219
57925
  function cutPolylineByMercatorBounds(positions, options) {
57220
57926
  const {
57221
- size = 2,
57927
+ size: size2 = 2,
57222
57928
  startIndex = 0,
57223
57929
  endIndex = positions.length,
57224
57930
  normalize: normalize2 = true
57225
57931
  } = options || {};
57226
57932
  const newPositions = positions.slice(startIndex, endIndex);
57227
- wrapLongitudesForShortestPath(newPositions, size, 0, endIndex - startIndex);
57933
+ wrapLongitudesForShortestPath(newPositions, size2, 0, endIndex - startIndex);
57228
57934
  const parts = cutPolylineByGrid(newPositions, {
57229
- size,
57935
+ size: size2,
57230
57936
  broken: true,
57231
57937
  gridResolution: 360,
57232
57938
  gridOffset: [-180, -180]
57233
57939
  });
57234
57940
  if (normalize2) {
57235
57941
  for (const part of parts) {
57236
- shiftLongitudesIntoRange(part, size);
57942
+ shiftLongitudesIntoRange(part, size2);
57237
57943
  }
57238
57944
  }
57239
57945
  return parts;
57240
57946
  }
57241
57947
  function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
57242
57948
  const {
57243
- size = 2,
57949
+ size: size2 = 2,
57244
57950
  normalize: normalize2 = true,
57245
57951
  edgeTypes = false
57246
57952
  } = options || {};
@@ -57252,36 +57958,36 @@ function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
57252
57958
  for (let ringIndex = 0; ringIndex <= holeIndices.length; ringIndex++) {
57253
57959
  const srcEndIndex = holeIndices[ringIndex] || positions.length;
57254
57960
  const targetStartIndex = targetIndex;
57255
- const splitIndex = findSplitIndex(positions, size, srcStartIndex, srcEndIndex);
57961
+ const splitIndex = findSplitIndex(positions, size2, srcStartIndex, srcEndIndex);
57256
57962
  for (let i2 = splitIndex; i2 < srcEndIndex; i2++) {
57257
57963
  newPositions[targetIndex++] = positions[i2];
57258
57964
  }
57259
57965
  for (let i2 = srcStartIndex; i2 < splitIndex; i2++) {
57260
57966
  newPositions[targetIndex++] = positions[i2];
57261
57967
  }
57262
- wrapLongitudesForShortestPath(newPositions, size, targetStartIndex, targetIndex);
57263
- insertPoleVertices(newPositions, size, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
57968
+ wrapLongitudesForShortestPath(newPositions, size2, targetStartIndex, targetIndex);
57969
+ insertPoleVertices(newPositions, size2, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
57264
57970
  srcStartIndex = srcEndIndex;
57265
57971
  newHoleIndices[ringIndex] = targetIndex;
57266
57972
  }
57267
57973
  newHoleIndices.pop();
57268
57974
  const parts = cutPolygonByGrid(newPositions, newHoleIndices, {
57269
- size,
57975
+ size: size2,
57270
57976
  gridResolution: 360,
57271
57977
  gridOffset: [-180, -180],
57272
57978
  edgeTypes
57273
57979
  });
57274
57980
  if (normalize2) {
57275
57981
  for (const part of parts) {
57276
- shiftLongitudesIntoRange(part.positions, size);
57982
+ shiftLongitudesIntoRange(part.positions, size2);
57277
57983
  }
57278
57984
  }
57279
57985
  return parts;
57280
57986
  }
57281
- function findSplitIndex(positions, size, startIndex, endIndex) {
57987
+ function findSplitIndex(positions, size2, startIndex, endIndex) {
57282
57988
  let maxLat = -1;
57283
57989
  let pointIndex = -1;
57284
- for (let i2 = startIndex + 1; i2 < endIndex; i2 += size) {
57990
+ for (let i2 = startIndex + 1; i2 < endIndex; i2 += size2) {
57285
57991
  const lat = Math.abs(positions[i2]);
57286
57992
  if (lat > maxLat) {
57287
57993
  maxLat = lat;
@@ -57290,11 +57996,11 @@ function findSplitIndex(positions, size, startIndex, endIndex) {
57290
57996
  }
57291
57997
  return pointIndex;
57292
57998
  }
57293
- function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
57999
+ function insertPoleVertices(positions, size2, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
57294
58000
  const firstLng = positions[startIndex];
57295
- const lastLng = positions[endIndex - size];
58001
+ const lastLng = positions[endIndex - size2];
57296
58002
  if (Math.abs(firstLng - lastLng) > 180) {
57297
- const p = getPointAtIndex(positions, 0, size, startIndex);
58003
+ const p = getPointAtIndex(positions, 0, size2, startIndex);
57298
58004
  p[0] += Math.round((lastLng - firstLng) / 360) * 360;
57299
58005
  push(positions, p);
57300
58006
  p[1] = Math.sign(p[1]) * maxLatitude;
@@ -57303,10 +58009,10 @@ function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude =
57303
58009
  push(positions, p);
57304
58010
  }
57305
58011
  }
57306
- function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
58012
+ function wrapLongitudesForShortestPath(positions, size2, startIndex, endIndex) {
57307
58013
  let prevLng = positions[0];
57308
58014
  let lng;
57309
- for (let i2 = startIndex; i2 < endIndex; i2 += size) {
58015
+ for (let i2 = startIndex; i2 < endIndex; i2 += size2) {
57310
58016
  lng = positions[i2];
57311
58017
  const delta = lng - prevLng;
57312
58018
  if (delta > 180 || delta < -180) {
@@ -57315,11 +58021,11 @@ function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
57315
58021
  positions[i2] = prevLng = lng;
57316
58022
  }
57317
58023
  }
57318
- function shiftLongitudesIntoRange(positions, size) {
58024
+ function shiftLongitudesIntoRange(positions, size2) {
57319
58025
  let refLng;
57320
- const pointCount = positions.length / size;
58026
+ const pointCount = positions.length / size2;
57321
58027
  for (let i2 = 0; i2 < pointCount; i2++) {
57322
- refLng = positions[i2 * size];
58028
+ refLng = positions[i2 * size2];
57323
58029
  if ((refLng + 180) % 360 !== 0) {
57324
58030
  break;
57325
58031
  }
@@ -57329,7 +58035,7 @@ function shiftLongitudesIntoRange(positions, size) {
57329
58035
  return;
57330
58036
  }
57331
58037
  for (let i2 = 0; i2 < pointCount; i2++) {
57332
- positions[i2 * size] += delta;
58038
+ positions[i2 * size2] += delta;
57333
58039
  }
57334
58040
  }
57335
58041
  class ColumnGeometry extends Geometry {
@@ -57728,14 +58434,14 @@ class GridCellLayer extends ColumnLayer {
57728
58434
  }
57729
58435
  _defineProperty(GridCellLayer, "layerName", "GridCellLayer");
57730
58436
  _defineProperty(GridCellLayer, "defaultProps", defaultProps$E);
57731
- function normalizePath(path, size, gridResolution, wrapLongitude) {
58437
+ function normalizePath(path, size2, gridResolution, wrapLongitude) {
57732
58438
  let flatPath;
57733
58439
  if (Array.isArray(path[0])) {
57734
- const length2 = path.length * size;
58440
+ const length2 = path.length * size2;
57735
58441
  flatPath = new Array(length2);
57736
58442
  for (let i2 = 0; i2 < path.length; i2++) {
57737
- for (let j = 0; j < size; j++) {
57738
- flatPath[i2 * size + j] = path[i2][j] || 0;
58443
+ for (let j = 0; j < size2; j++) {
58444
+ flatPath[i2 * size2 + j] = path[i2][j] || 0;
57739
58445
  }
57740
58446
  }
57741
58447
  } else {
@@ -57743,13 +58449,13 @@ function normalizePath(path, size, gridResolution, wrapLongitude) {
57743
58449
  }
57744
58450
  if (gridResolution) {
57745
58451
  return cutPolylineByGrid(flatPath, {
57746
- size,
58452
+ size: size2,
57747
58453
  gridResolution
57748
58454
  });
57749
58455
  }
57750
58456
  if (wrapLongitude) {
57751
58457
  return cutPolylineByMercatorBounds(flatPath, {
57752
- size
58458
+ size: size2
57753
58459
  });
57754
58460
  }
57755
58461
  return flatPath;
@@ -57792,11 +58498,11 @@ class PathTesselator extends Tesselator {
57792
58498
  }
57793
58499
  getGeometrySize(path) {
57794
58500
  if (isCut$1(path)) {
57795
- let size = 0;
58501
+ let size2 = 0;
57796
58502
  for (const subPath of path) {
57797
- size += this.getGeometrySize(subPath);
58503
+ size2 += this.getGeometrySize(subPath);
57798
58504
  }
57799
- return size;
58505
+ return size2;
57800
58506
  }
57801
58507
  const numPoints = this.getPathLength(path);
57802
58508
  if (numPoints < 2) {
@@ -58604,34 +59310,34 @@ function isNestedRingClosed(simplePolygon) {
58604
59310
  const p1 = simplePolygon[simplePolygon.length - 1];
58605
59311
  return p02[0] === p1[0] && p02[1] === p1[1] && p02[2] === p1[2];
58606
59312
  }
58607
- function isFlatRingClosed(positions, size, startIndex, endIndex) {
58608
- for (let i2 = 0; i2 < size; i2++) {
58609
- if (positions[startIndex + i2] !== positions[endIndex - size + i2]) {
59313
+ function isFlatRingClosed(positions, size2, startIndex, endIndex) {
59314
+ for (let i2 = 0; i2 < size2; i2++) {
59315
+ if (positions[startIndex + i2] !== positions[endIndex - size2 + i2]) {
58610
59316
  return false;
58611
59317
  }
58612
59318
  }
58613
59319
  return true;
58614
59320
  }
58615
- function copyNestedRing(target, targetStartIndex, simplePolygon, size, windingDirection) {
59321
+ function copyNestedRing(target, targetStartIndex, simplePolygon, size2, windingDirection) {
58616
59322
  let targetIndex = targetStartIndex;
58617
59323
  const len2 = simplePolygon.length;
58618
59324
  for (let i2 = 0; i2 < len2; i2++) {
58619
- for (let j = 0; j < size; j++) {
59325
+ for (let j = 0; j < size2; j++) {
58620
59326
  target[targetIndex++] = simplePolygon[i2][j] || 0;
58621
59327
  }
58622
59328
  }
58623
59329
  if (!isNestedRingClosed(simplePolygon)) {
58624
- for (let j = 0; j < size; j++) {
59330
+ for (let j = 0; j < size2; j++) {
58625
59331
  target[targetIndex++] = simplePolygon[0][j] || 0;
58626
59332
  }
58627
59333
  }
58628
59334
  windingOptions.start = targetStartIndex;
58629
59335
  windingOptions.end = targetIndex;
58630
- windingOptions.size = size;
59336
+ windingOptions.size = size2;
58631
59337
  modifyPolygonWindingDirection(target, windingDirection, windingOptions);
58632
59338
  return targetIndex;
58633
59339
  }
58634
- function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex = 0, srcEndIndex, windingDirection) {
59340
+ function copyFlatRing(target, targetStartIndex, positions, size2, srcStartIndex = 0, srcEndIndex, windingDirection) {
58635
59341
  srcEndIndex = srcEndIndex || positions.length;
58636
59342
  const srcLength = srcEndIndex - srcStartIndex;
58637
59343
  if (srcLength <= 0) {
@@ -58641,14 +59347,14 @@ function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex =
58641
59347
  for (let i2 = 0; i2 < srcLength; i2++) {
58642
59348
  target[targetIndex++] = positions[srcStartIndex + i2];
58643
59349
  }
58644
- if (!isFlatRingClosed(positions, size, srcStartIndex, srcEndIndex)) {
58645
- for (let i2 = 0; i2 < size; i2++) {
59350
+ if (!isFlatRingClosed(positions, size2, srcStartIndex, srcEndIndex)) {
59351
+ for (let i2 = 0; i2 < size2; i2++) {
58646
59352
  target[targetIndex++] = positions[srcStartIndex + i2];
58647
59353
  }
58648
59354
  }
58649
59355
  windingOptions.start = targetStartIndex;
58650
59356
  windingOptions.end = targetIndex;
58651
- windingOptions.size = size;
59357
+ windingOptions.size = size2;
58652
59358
  modifyPolygonWindingDirection(target, windingDirection, windingOptions);
58653
59359
  return targetIndex;
58654
59360
  }
@@ -58779,11 +59485,11 @@ class PolygonTesselator extends Tesselator {
58779
59485
  }
58780
59486
  getGeometrySize(polygon2) {
58781
59487
  if (isCut(polygon2)) {
58782
- let size = 0;
59488
+ let size2 = 0;
58783
59489
  for (const subPolygon of polygon2) {
58784
- size += this.getGeometrySize(subPolygon);
59490
+ size2 += this.getGeometrySize(subPolygon);
58785
59491
  }
58786
- return size;
59492
+ return size2;
58787
59493
  }
58788
59494
  return getPositions(polygon2).length / this.positionSize;
58789
59495
  }
@@ -59654,10 +60360,10 @@ function requireTinySdf() {
59654
60360
  this.fontFamily = fontFamily || "sans-serif";
59655
60361
  this.fontWeight = fontWeight || "normal";
59656
60362
  this.radius = radius || 8;
59657
- var size = this.size = this.fontSize + this.buffer * 2;
59658
- var gridSize = size + this.buffer * 2;
60363
+ var size2 = this.size = this.fontSize + this.buffer * 2;
60364
+ var gridSize = size2 + this.buffer * 2;
59659
60365
  this.canvas = document.createElement("canvas");
59660
- this.canvas.width = this.canvas.height = size;
60366
+ this.canvas.width = this.canvas.height = size2;
59661
60367
  this.ctx = this.canvas.getContext("2d");
59662
60368
  this.ctx.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily;
59663
60369
  this.ctx.textAlign = "left";
@@ -59668,7 +60374,7 @@ function requireTinySdf() {
59668
60374
  this.z = new Float64Array(gridSize + 1);
59669
60375
  this.v = new Uint16Array(gridSize);
59670
60376
  this.useMetrics = this.ctx.measureText("A").actualBoundingBoxLeft !== void 0;
59671
- this.middle = Math.round(size / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
60377
+ this.middle = Math.round(size2 / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
59672
60378
  }
59673
60379
  function prepareGrids(imgData, width2, height2, glyphWidth, glyphHeight, gridOuter, gridInner) {
59674
60380
  gridOuter.fill(INF, 0, width2 * height2);
@@ -59925,7 +60631,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
59925
60631
  const y = new Array(numCharacters);
59926
60632
  const rowWidth = new Array(numCharacters);
59927
60633
  const autoWrappingEnabled = (wordBreak === "break-word" || wordBreak === "break-all") && isFinite(maxWidth2) && maxWidth2 > 0;
59928
- const size = [0, 0];
60634
+ const size2 = [0, 0];
59929
60635
  const rowSize = [0, 0];
59930
60636
  let rowOffsetTop = 0;
59931
60637
  let lineStartIndex = 0;
@@ -59946,7 +60652,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
59946
60652
  rowWidth[j] = rowSize[0];
59947
60653
  }
59948
60654
  rowOffsetTop = rowOffsetTop + rowSize[1] * lineHeight;
59949
- size[0] = Math.max(size[0], rowSize[0]);
60655
+ size2[0] = Math.max(size2[0], rowSize[0]);
59950
60656
  }
59951
60657
  lineStartIndex = lineEndIndex;
59952
60658
  }
@@ -59957,12 +60663,12 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
59957
60663
  lineStartIndex++;
59958
60664
  }
59959
60665
  }
59960
- size[1] = rowOffsetTop;
60666
+ size2[1] = rowOffsetTop;
59961
60667
  return {
59962
60668
  x,
59963
60669
  y,
59964
60670
  rowWidth,
59965
- size
60671
+ size: size2
59966
60672
  };
59967
60673
  }
59968
60674
  function getTextFromBuffer({
@@ -61623,14 +62329,14 @@ class GPUGridAggregator {
61623
62329
  }
61624
62330
  static getCellData({
61625
62331
  countsData,
61626
- size = 1
62332
+ size: size2 = 1
61627
62333
  }) {
61628
62334
  const numCells = countsData.length / 4;
61629
- const cellWeights = new Float32Array(numCells * size);
62335
+ const cellWeights = new Float32Array(numCells * size2);
61630
62336
  const cellCounts = new Uint32Array(numCells);
61631
62337
  for (let i2 = 0; i2 < numCells; i2++) {
61632
- for (let sizeIndex = 0; sizeIndex < size; sizeIndex++) {
61633
- cellWeights[i2 * size + sizeIndex] = countsData[i2 * 4 + sizeIndex];
62338
+ for (let sizeIndex = 0; sizeIndex < size2; sizeIndex++) {
62339
+ cellWeights[i2 * size2 + sizeIndex] = countsData[i2 * 4 + sizeIndex];
61634
62340
  }
61635
62341
  cellCounts[i2] = countsData[i2 * 4 + 3];
61636
62342
  }
@@ -62611,7 +63317,7 @@ function pointsToGridHashing(props, aggregationParams) {
62611
63317
  } = aggregationParams;
62612
63318
  const positions = attributes.positions.value;
62613
63319
  const {
62614
- size
63320
+ size: size2
62615
63321
  } = attributes.positions.getAccessor();
62616
63322
  const boundingBox = aggregationParams.boundingBox || getPositionBoundingBox(attributes.positions, numInstances);
62617
63323
  const offsets = aggregationParams.posOffset || [180, 90];
@@ -62636,9 +63342,9 @@ function pointsToGridHashing(props, aggregationParams) {
62636
63342
  const position2 = new Array(3);
62637
63343
  for (const pt of iterable) {
62638
63344
  objectInfo.index++;
62639
- position2[0] = positions[objectInfo.index * size];
62640
- position2[1] = positions[objectInfo.index * size + 1];
62641
- position2[2] = size >= 3 ? positions[objectInfo.index * size + 2] : 0;
63345
+ position2[0] = positions[objectInfo.index * size2];
63346
+ position2[1] = positions[objectInfo.index * size2 + 1];
63347
+ position2[2] = size2 >= 3 ? positions[objectInfo.index * size2 + 2] : 0;
62642
63348
  const [x, y] = projectPoints ? viewport.project(position2) : position2;
62643
63349
  if (Number.isFinite(x) && Number.isFinite(y)) {
62644
63350
  const yIndex = Math.floor((y + offsets[1]) / gridOffset.yOffset);
@@ -62688,7 +63394,7 @@ function getGridLayerDataFromGridHash({
62688
63394
  function getPositionBoundingBox(positionAttribute, numInstance) {
62689
63395
  const positions = positionAttribute.value;
62690
63396
  const {
62691
- size
63397
+ size: size2
62692
63398
  } = positionAttribute.getAccessor();
62693
63399
  let yMin = Infinity;
62694
63400
  let yMax = -Infinity;
@@ -62697,8 +63403,8 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
62697
63403
  let y;
62698
63404
  let x;
62699
63405
  for (let i2 = 0; i2 < numInstance; i2++) {
62700
- x = positions[i2 * size];
62701
- y = positions[i2 * size + 1];
63406
+ x = positions[i2 * size2];
63407
+ y = positions[i2 * size2 + 1];
62702
63408
  if (Number.isFinite(x) && Number.isFinite(y)) {
62703
63409
  yMin = y < yMin ? y : yMin;
62704
63410
  yMax = y > yMax ? y : yMax;
@@ -63791,9 +64497,9 @@ function requireLong() {
63791
64497
  var radixToPower = fromNumber(pow_dbl(radix, 8));
63792
64498
  var result = ZERO2;
63793
64499
  for (var i2 = 0; i2 < str.length; i2 += 8) {
63794
- var size = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size), radix);
63795
- if (size < 8) {
63796
- var power = fromNumber(pow_dbl(radix, size));
64500
+ var size2 = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size2), radix);
64501
+ if (size2 < 8) {
64502
+ var power = fromNumber(pow_dbl(radix, size2));
63797
64503
  result = result.mul(power).add(fromNumber(value));
63798
64504
  } else {
63799
64505
  result = result.mul(radixToPower);
@@ -66711,10 +67417,10 @@ var libh3 = function(libh32) {
66711
67417
  function abortOnCannotGrowMemory(requestedSize) {
66712
67418
  abort("OOM");
66713
67419
  }
66714
- function emscripten_realloc_buffer(size) {
67420
+ function emscripten_realloc_buffer(size2) {
66715
67421
  try {
66716
- var newBuffer = new ArrayBuffer(size);
66717
- if (newBuffer.byteLength != size) {
67422
+ var newBuffer = new ArrayBuffer(size2);
67423
+ if (newBuffer.byteLength != size2) {
66718
67424
  return;
66719
67425
  }
66720
67426
  new Int8Array(newBuffer).set(HEAP8);
@@ -79648,8 +80354,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
79648
80354
  5125: Uint32Array,
79649
80355
  5126: Float32Array
79650
80356
  };
79651
- function getAccessorTypeFromSize(size) {
79652
- const type = TYPES[size - 1];
80357
+ function getAccessorTypeFromSize(size2) {
80358
+ const type = TYPES[size2 - 1];
79653
80359
  return type || TYPES[0];
79654
80360
  }
79655
80361
  function getComponentTypeFromArray(typedArray) {
@@ -80066,23 +80772,23 @@ class GLTFScenegraph {
80066
80772
  return attributeName;
80067
80773
  }
80068
80774
  }
80069
- _getAccessorMinMax(buffer, size) {
80775
+ _getAccessorMinMax(buffer, size2) {
80070
80776
  const result = {
80071
80777
  min: null,
80072
80778
  max: null
80073
80779
  };
80074
- if (buffer.length < size) {
80780
+ if (buffer.length < size2) {
80075
80781
  return result;
80076
80782
  }
80077
80783
  result.min = [];
80078
80784
  result.max = [];
80079
- const initValues = buffer.subarray(0, size);
80785
+ const initValues = buffer.subarray(0, size2);
80080
80786
  for (const value of initValues) {
80081
80787
  result.min.push(value);
80082
80788
  result.max.push(value);
80083
80789
  }
80084
- for (let index2 = size; index2 < buffer.length; index2 += size) {
80085
- for (let componentIndex = 0; componentIndex < size; componentIndex++) {
80790
+ for (let index2 = size2; index2 < buffer.length; index2 += size2) {
80791
+ for (let componentIndex = 0; componentIndex < size2; componentIndex++) {
80086
80792
  result.min[0 + componentIndex] = Math.min(result.min[0 + componentIndex], buffer[index2 + componentIndex]);
80087
80793
  result.max[0 + componentIndex] = Math.max(result.max[0 + componentIndex], buffer[index2 + componentIndex]);
80088
80794
  }
@@ -80112,9 +80818,9 @@ const DECODERS = {
80112
80818
  TRIANGLES: "meshopt_decodeIndexBuffer",
80113
80819
  INDICES: "meshopt_decodeIndexSequence"
80114
80820
  };
80115
- async function meshoptDecodeGltfBuffer(target, count2, size, source, mode, filter = "NONE") {
80821
+ async function meshoptDecodeGltfBuffer(target, count2, size2, source, mode, filter = "NONE") {
80116
80822
  const instance = await loadWasmInstance();
80117
- decode$5(instance, instance.exports[DECODERS[mode]], target, count2, size, source, instance.exports[FILTERS[filter || "NONE"]]);
80823
+ decode$5(instance, instance.exports[DECODERS[mode]], target, count2, size2, source, instance.exports[FILTERS[filter || "NONE"]]);
80118
80824
  }
80119
80825
  let wasmPromise;
80120
80826
  async function loadWasmInstance() {
@@ -80145,18 +80851,18 @@ function unpack(data) {
80145
80851
  }
80146
80852
  return result.buffer.slice(0, write);
80147
80853
  }
80148
- function decode$5(instance, fun, target, count2, size, source, filter) {
80854
+ function decode$5(instance, fun, target, count2, size2, source, filter) {
80149
80855
  const sbrk = instance.exports.sbrk;
80150
80856
  const count4 = count2 + 3 & -4;
80151
- const tp = sbrk(count4 * size);
80857
+ const tp = sbrk(count4 * size2);
80152
80858
  const sp = sbrk(source.length);
80153
80859
  const heap = new Uint8Array(instance.exports.memory.buffer);
80154
80860
  heap.set(source, sp);
80155
- const res = fun(tp, count2, size, sp, source.length);
80861
+ const res = fun(tp, count2, size2, sp, source.length);
80156
80862
  if (res === 0 && filter) {
80157
- filter(tp, count4, size);
80863
+ filter(tp, count4, size2);
80158
80864
  }
80159
- target.set(heap.subarray(tp, tp + count2 * size));
80865
+ target.set(heap.subarray(tp, tp + count2 * size2));
80160
80866
  sbrk(tp - sbrk(0));
80161
80867
  if (res !== 0) {
80162
80868
  throw new Error("Malformed buffer data: ".concat(res));
@@ -80838,11 +81544,11 @@ class DracoParser {
80838
81544
  loaderAttribute.name = attributeName;
80839
81545
  const {
80840
81546
  value,
80841
- size
81547
+ size: size2
80842
81548
  } = this._getAttributeValues(dracoGeometry, loaderAttribute);
80843
81549
  attributes[attributeName] = {
80844
81550
  value,
80845
- size,
81551
+ size: size2,
80846
81552
  byteOffset: loaderAttribute.byte_offset,
80847
81553
  byteStride: loaderAttribute.byte_stride,
80848
81554
  normalized: loaderAttribute.normalized
@@ -81111,36 +81817,36 @@ function getGLTFAccessors(attributes) {
81111
81817
  function getGLTFAccessor(attribute) {
81112
81818
  const {
81113
81819
  buffer,
81114
- size,
81820
+ size: size2,
81115
81821
  count: count2
81116
81822
  } = getAccessorData(attribute);
81117
81823
  const glTFAccessor = {
81118
81824
  value: buffer,
81119
- size,
81825
+ size: size2,
81120
81826
  byteOffset: 0,
81121
81827
  count: count2,
81122
- type: getAccessorTypeFromSize(size),
81828
+ type: getAccessorTypeFromSize(size2),
81123
81829
  componentType: getComponentTypeFromArray(buffer)
81124
81830
  };
81125
81831
  return glTFAccessor;
81126
81832
  }
81127
81833
  function getAccessorData(attribute) {
81128
81834
  let buffer = attribute;
81129
- let size = 1;
81835
+ let size2 = 1;
81130
81836
  let count2 = 0;
81131
81837
  if (attribute && attribute.value) {
81132
81838
  buffer = attribute.value;
81133
- size = attribute.size || 1;
81839
+ size2 = attribute.size || 1;
81134
81840
  }
81135
81841
  if (buffer) {
81136
81842
  if (!ArrayBuffer.isView(buffer)) {
81137
81843
  buffer = toTypedArray(buffer, Float32Array);
81138
81844
  }
81139
- count2 = buffer.length / size;
81845
+ count2 = buffer.length / size2;
81140
81846
  }
81141
81847
  return {
81142
81848
  buffer,
81143
- size,
81849
+ size: size2,
81144
81850
  count: count2
81145
81851
  };
81146
81852
  }
@@ -83383,8 +84089,8 @@ function getObbSize(halfAxes) {
83383
84089
  const axeY = halfAxes.getColumn(1);
83384
84090
  const axeZ = halfAxes.getColumn(2);
83385
84091
  const farthestVertex = scratchVector$1.add(axeY).add(axeZ);
83386
- const size = farthestVertex.len();
83387
- return size;
84092
+ const size2 = farthestVertex.len();
84093
+ return size2;
83388
84094
  }
83389
84095
  const TILE_CONTENT_STATE = {
83390
84096
  UNLOADED: 0,
@@ -85385,15 +86091,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length
85385
86091
  } = tile3DAccessor;
85386
86092
  assert$b(tile3DAccessor.componentType);
85387
86093
  const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
85388
- const size = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
86094
+ const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
85389
86095
  const unpacker = UNPACKER[tile3DAccessor.type];
85390
86096
  const packer = PACKER[tile3DAccessor.type];
85391
86097
  byteOffset += tile3DAccessor.byteOffset;
85392
- const values2 = GLType.createTypedArray(type, buffer, byteOffset, size * length2);
86098
+ const values2 = GLType.createTypedArray(type, buffer, byteOffset, size2 * length2);
85393
86099
  return {
85394
86100
  values: values2,
85395
86101
  type,
85396
- size,
86102
+ size: size2,
85397
86103
  unpacker,
85398
86104
  packer
85399
86105
  };
@@ -103807,8 +104513,8 @@ function fitExtent(projection2, extent2, object2) {
103807
104513
  if (clip2 != null) projection2.clipExtent(clip2);
103808
104514
  return projection2.scale(k * 150).translate([x, y]);
103809
104515
  }
103810
- function fitSize(projection2, size, object2) {
103811
- return fitExtent(projection2, [[0, 0], size], object2);
104516
+ function fitSize(projection2, size2, object2) {
104517
+ return fitExtent(projection2, [[0, 0], size2], object2);
103812
104518
  }
103813
104519
  var maxDepth = 16, cosMinDistance = cos(30 * radians);
103814
104520
  function resample(project2, delta2) {
@@ -103934,8 +104640,8 @@ function projectionMutator(projectAt) {
103934
104640
  projection2.fitExtent = function(extent2, object2) {
103935
104641
  return fitExtent(projection2, extent2, object2);
103936
104642
  };
103937
- projection2.fitSize = function(size, object2) {
103938
- return fitSize(projection2, size, object2);
104643
+ projection2.fitSize = function(size2, object2) {
104644
+ return fitSize(projection2, size2, object2);
103939
104645
  };
103940
104646
  function recenter() {
103941
104647
  projectRotate = compose(rotate2 = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project2);
@@ -104056,8 +104762,8 @@ function albersUsa() {
104056
104762
  albersUsa2.fitExtent = function(extent2, object2) {
104057
104763
  return fitExtent(albersUsa2, extent2, object2);
104058
104764
  };
104059
- albersUsa2.fitSize = function(size, object2) {
104060
- return fitSize(albersUsa2, size, object2);
104765
+ albersUsa2.fitSize = function(size2, object2) {
104766
+ return fitSize(albersUsa2, size2, object2);
104061
104767
  };
104062
104768
  function reset() {
104063
104769
  cache2 = cacheStream = null;
@@ -104220,8 +104926,8 @@ function identity() {
104220
104926
  fitExtent: function(extent2, object2) {
104221
104927
  return fitExtent(projection2, extent2, object2);
104222
104928
  },
104223
- fitSize: function(size, object2) {
104224
- return fitSize(projection2, size, object2);
104929
+ fitSize: function(size2, object2) {
104930
+ return fitSize(projection2, size2, object2);
104225
104931
  }
104226
104932
  };
104227
104933
  }
@@ -104839,18 +105545,18 @@ function requirePolygonClipping_umd() {
104839
105545
  if (presort === void 0) {
104840
105546
  presort = false;
104841
105547
  }
104842
- var size = keys2.length;
105548
+ var size2 = keys2.length;
104843
105549
  var comparator = this._comparator;
104844
- if (presort) sort(keys2, values2, 0, size - 1, comparator);
105550
+ if (presort) sort(keys2, values2, 0, size2 - 1, comparator);
104845
105551
  if (this._root === null) {
104846
- this._root = loadRecursive(keys2, values2, 0, size);
104847
- this._size = size;
105552
+ this._root = loadRecursive(keys2, values2, 0, size2);
105553
+ this._size = size2;
104848
105554
  } else {
104849
105555
  var mergedList = mergeLists(this.toList(), createList(keys2, values2), comparator);
104850
- size = this._size + size;
105556
+ size2 = this._size + size2;
104851
105557
  this._root = sortedListToBST({
104852
105558
  head: mergedList
104853
- }, 0, size);
105559
+ }, 0, size2);
104854
105560
  }
104855
105561
  return this;
104856
105562
  };
@@ -104900,9 +105606,9 @@ function requirePolygonClipping_umd() {
104900
105606
  }()
104901
105607
  );
104902
105608
  function loadRecursive(keys2, values2, start, end) {
104903
- var size = end - start;
104904
- if (size > 0) {
104905
- var middle = start + Math.floor(size / 2);
105609
+ var size2 = end - start;
105610
+ if (size2 > 0) {
105611
+ var middle = start + Math.floor(size2 / 2);
104906
105612
  var key = keys2[middle];
104907
105613
  var data = values2[middle];
104908
105614
  var node2 = new Node2(key, data);
@@ -104942,9 +105648,9 @@ function requirePolygonClipping_umd() {
104942
105648
  return head.next;
104943
105649
  }
104944
105650
  function sortedListToBST(list, start, end) {
104945
- var size = end - start;
104946
- if (size > 0) {
104947
- var middle = start + Math.floor(size / 2);
105651
+ var size2 = end - start;
105652
+ if (size2 > 0) {
105653
+ var middle = start + Math.floor(size2 / 2);
104948
105654
  var left = sortedListToBST(list, start, middle);
104949
105655
  var root2 = list.head;
104950
105656
  root2.left = left;
@@ -116006,19 +116712,19 @@ function requireExtrudeMode() {
116006
116712
  if (editHandle) {
116007
116713
  var featureIndex = editHandle.properties.featureIndex;
116008
116714
  var positionIndexes = editHandle.properties.positionIndexes;
116009
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116010
- positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size) : positionIndexes;
116011
- var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, props.data);
116715
+ var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116716
+ positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
116717
+ var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
116012
116718
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
116013
116719
  if (p1 && p2) {
116014
116720
  var _generatePointsParall = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall2 = _slicedToArray(_generatePointsParall, 2), p3 = _generatePointsParall2[0], p4 = _generatePointsParall2[1];
116015
- var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
116721
+ var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
116016
116722
  props.onEdit({
116017
116723
  updatedData,
116018
116724
  editType: "extruding",
116019
116725
  editContext: {
116020
116726
  featureIndexes: [featureIndex],
116021
- positionIndexes: this.nextPositionIndexes(positionIndexes, size),
116727
+ positionIndexes: this.nextPositionIndexes(positionIndexes, size2),
116022
116728
  position: p3
116023
116729
  }
116024
116730
  });
@@ -116033,15 +116739,15 @@ function requireExtrudeMode() {
116033
116739
  var editHandle = (0, _utils.getPickedIntermediateEditHandle)(event.picks);
116034
116740
  if (selectedFeatureIndexes.length && editHandle) {
116035
116741
  var _editHandle$propertie = editHandle.properties, positionIndexes = _editHandle$propertie.positionIndexes, featureIndex = _editHandle$propertie.featureIndex;
116036
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116037
- var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, props.data);
116742
+ var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116743
+ var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
116038
116744
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
116039
116745
  if (p1 && p2) {
116040
116746
  var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data);
116041
- if (!this.isOrthogonal(positionIndexes, featureIndex, size, props.data)) {
116747
+ if (!this.isOrthogonal(positionIndexes, featureIndex, size2, props.data)) {
116042
116748
  updatedData = updatedData.addPosition(featureIndex, positionIndexes, p2);
116043
116749
  }
116044
- if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size), featureIndex, size, props.data)) {
116750
+ if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size2), featureIndex, size2, props.data)) {
116045
116751
  updatedData = updatedData.addPosition(featureIndex, positionIndexes, p1);
116046
116752
  this.isPointAdded = true;
116047
116753
  }
@@ -116065,13 +116771,13 @@ function requireExtrudeMode() {
116065
116771
  if (selectedFeatureIndexes.length && editHandle) {
116066
116772
  var featureIndex = editHandle.properties.featureIndex;
116067
116773
  var positionIndexes = editHandle.properties.positionIndexes;
116068
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116069
- positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size) : positionIndexes;
116070
- var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, props.data);
116774
+ var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116775
+ positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
116776
+ var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
116071
116777
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
116072
116778
  if (p1 && p2) {
116073
116779
  var _generatePointsParall3 = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall4 = _slicedToArray(_generatePointsParall3, 2), p3 = _generatePointsParall4[0], p4 = _generatePointsParall4[1];
116074
- var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
116780
+ var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
116075
116781
  props.onEdit({
116076
116782
  updatedData,
116077
116783
  editType: "extruded",
@@ -116089,23 +116795,23 @@ function requireExtrudeMode() {
116089
116795
  key: "coordinatesSize",
116090
116796
  value: function coordinatesSize(positionIndexes, featureIndex, _ref) {
116091
116797
  var features = _ref.features;
116092
- var size = 0;
116798
+ var size2 = 0;
116093
116799
  if (Array.isArray(positionIndexes)) {
116094
116800
  var feature2 = features[featureIndex];
116095
116801
  var coordinates2 = feature2.geometry.coordinates;
116096
116802
  if (positionIndexes.length === 3) {
116097
116803
  var _positionIndexes = _slicedToArray(positionIndexes, 2), a2 = _positionIndexes[0], b = _positionIndexes[1];
116098
116804
  if (coordinates2.length && coordinates2[a2].length) {
116099
- size = coordinates2[a2][b].length;
116805
+ size2 = coordinates2[a2][b].length;
116100
116806
  }
116101
116807
  } else {
116102
116808
  var _positionIndexes2 = _slicedToArray(positionIndexes, 1), _b2 = _positionIndexes2[0];
116103
116809
  if (coordinates2.length && coordinates2[_b2].length) {
116104
- size = coordinates2[_b2].length;
116810
+ size2 = coordinates2[_b2].length;
116105
116811
  }
116106
116812
  }
116107
116813
  }
116108
- return size;
116814
+ return size2;
116109
116815
  }
116110
116816
  }, {
116111
116817
  key: "getBearing",
@@ -116118,15 +116824,15 @@ function requireExtrudeMode() {
116118
116824
  }
116119
116825
  }, {
116120
116826
  key: "isOrthogonal",
116121
- value: function isOrthogonal(positionIndexes, featureIndex, size, features) {
116827
+ value: function isOrthogonal(positionIndexes, featureIndex, size2, features) {
116122
116828
  if (!Array.isArray(positionIndexes)) {
116123
116829
  return false;
116124
116830
  }
116125
- if (positionIndexes[positionIndexes.length - 1] === size - 1) {
116831
+ if (positionIndexes[positionIndexes.length - 1] === size2 - 1) {
116126
116832
  positionIndexes[positionIndexes.length - 1] = 0;
116127
116833
  }
116128
- var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, features);
116129
- var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes, size), featureIndex, features);
116834
+ var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, features);
116835
+ var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes, size2), featureIndex, features);
116130
116836
  var currentPoint = this.getPointForPositionIndexes(positionIndexes, featureIndex, features);
116131
116837
  var prevAngle = this.getBearing(currentPoint, prevPoint);
116132
116838
  var nextAngle = this.getBearing(currentPoint, nextPoint);
@@ -116134,25 +116840,25 @@ function requireExtrudeMode() {
116134
116840
  }
116135
116841
  }, {
116136
116842
  key: "nextPositionIndexes",
116137
- value: function nextPositionIndexes(positionIndexes, size) {
116843
+ value: function nextPositionIndexes(positionIndexes, size2) {
116138
116844
  if (!Array.isArray(positionIndexes)) {
116139
116845
  return [];
116140
116846
  }
116141
116847
  var next2 = _toConsumableArray(positionIndexes);
116142
116848
  if (next2.length) {
116143
- next2[next2.length - 1] = next2[next2.length - 1] === size - 1 ? 0 : next2[next2.length - 1] + 1;
116849
+ next2[next2.length - 1] = next2[next2.length - 1] === size2 - 1 ? 0 : next2[next2.length - 1] + 1;
116144
116850
  }
116145
116851
  return next2;
116146
116852
  }
116147
116853
  }, {
116148
116854
  key: "prevPositionIndexes",
116149
- value: function prevPositionIndexes(positionIndexes, size) {
116855
+ value: function prevPositionIndexes(positionIndexes, size2) {
116150
116856
  if (!Array.isArray(positionIndexes)) {
116151
116857
  return [];
116152
116858
  }
116153
116859
  var prev2 = _toConsumableArray(positionIndexes);
116154
116860
  if (prev2.length) {
116155
- prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ? size - 2 : prev2[prev2.length - 1] - 1;
116861
+ prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ? size2 - 2 : prev2[prev2.length - 1] - 1;
116156
116862
  }
116157
116863
  return prev2;
116158
116864
  }
@@ -128079,22 +128785,22 @@ function addDecoder(cases, importFn) {
128079
128785
  }
128080
128786
  cases.forEach((c) => registry$1.set(c, importFn));
128081
128787
  }
128082
- addDecoder([void 0, 1], () => import("./raw-D9IbY0yO.js").then((m) => m.default));
128083
- addDecoder(5, () => import("./lzw-D-jYFTkN.js").then((m) => m.default));
128788
+ addDecoder([void 0, 1], () => import("./raw-kwXDn3Gr.js").then((m) => m.default));
128789
+ addDecoder(5, () => import("./lzw-Cwjzw73c.js").then((m) => m.default));
128084
128790
  addDecoder(6, () => {
128085
128791
  throw new Error("old style JPEG compression is not supported.");
128086
128792
  });
128087
- addDecoder(7, () => import("./jpeg-CsRFjvjp.js").then((m) => m.default));
128088
- addDecoder([8, 32946], () => import("./deflate-phr9wiNk.js").then((m) => m.default));
128089
- addDecoder(32773, () => import("./packbits-DGzSq1LG.js").then((m) => m.default));
128793
+ addDecoder(7, () => import("./jpeg-BQnbvzFc.js").then((m) => m.default));
128794
+ addDecoder([8, 32946], () => import("./deflate-CGoHOEkT.js").then((m) => m.default));
128795
+ addDecoder(32773, () => import("./packbits-DY4aLBgc.js").then((m) => m.default));
128090
128796
  addDecoder(
128091
128797
  34887,
128092
- () => import("./lerc-CyQkkL3x.js").then(async (m) => {
128798
+ () => import("./lerc-Bp3OK9tj.js").then(async (m) => {
128093
128799
  await m.zstd.init();
128094
128800
  return m;
128095
128801
  }).then((m) => m.default)
128096
128802
  );
128097
- addDecoder(50001, () => import("./webimage-yeUEpC5w.js").then((m) => m.default));
128803
+ addDecoder(50001, () => import("./webimage-DOxsTBut.js").then((m) => m.default));
128098
128804
  function decodeRowAcc(row, stride) {
128099
128805
  let length2 = row.length - stride;
128100
128806
  let offset2 = 0;
@@ -131116,8 +131822,8 @@ class ZodSet extends ZodType {
131116
131822
  maxSize: { value: maxSize, message: errorUtil.toString(message) }
131117
131823
  });
131118
131824
  }
131119
- size(size, message) {
131120
- return this.min(size, message).max(size, message);
131825
+ size(size2, message) {
131826
+ return this.min(size2, message).max(size2, message);
131121
131827
  }
131122
131828
  nonempty(message) {
131123
131829
  return this.min(1, message);
@@ -132910,10 +133616,10 @@ const putShortMSB = (s2, b) => {
132910
133616
  s2.pending_buf[s2.pending++] = b >>> 8 & 255;
132911
133617
  s2.pending_buf[s2.pending++] = b & 255;
132912
133618
  };
132913
- const read_buf = (strm, buf, start, size) => {
133619
+ const read_buf = (strm, buf, start, size2) => {
132914
133620
  let len2 = strm.avail_in;
132915
- if (len2 > size) {
132916
- len2 = size;
133621
+ if (len2 > size2) {
133622
+ len2 = size2;
132917
133623
  }
132918
133624
  if (len2 === 0) {
132919
133625
  return 0;
@@ -139494,9 +140200,9 @@ const SI_PREFIXES = [
139494
140200
  { symbol: "z", exponent: -21 },
139495
140201
  { symbol: "y", exponent: -24 }
139496
140202
  ];
139497
- function sizeToMeters(size, unit) {
140203
+ function sizeToMeters(size2, unit) {
139498
140204
  if (!unit || unit === "m") {
139499
- return size;
140205
+ return size2;
139500
140206
  }
139501
140207
  if (unit.length > 1) {
139502
140208
  let unitPrefix = unit.substring(0, unit.length - 1);
@@ -139505,7 +140211,7 @@ function sizeToMeters(size, unit) {
139505
140211
  }
139506
140212
  const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
139507
140213
  if (unitObj) {
139508
- return size * 10 ** unitObj.exponent;
140214
+ return size2 * 10 ** unitObj.exponent;
139509
140215
  }
139510
140216
  }
139511
140217
  throw new Error("Received unknown unit");
@@ -140409,7 +141115,7 @@ const defaultProps$2$1 = {
140409
141115
  };
140410
141116
  const ScaleBarLayer = class extends CompositeLayer {
140411
141117
  renderLayers() {
140412
- const { id, unit, size, position: position2, viewState, length: length2, snap } = this.props;
141118
+ const { id, unit, size: size2, position: position2, viewState, length: length2, snap } = this.props;
140413
141119
  const boundingBox = makeBoundingBox(viewState);
140414
141120
  const { zoom } = viewState;
140415
141121
  const viewLength = boundingBox[2][0] - boundingBox[0][0];
@@ -140419,10 +141125,10 @@ const ScaleBarLayer = class extends CompositeLayer {
140419
141125
  (boundingBox[2][1] - boundingBox[0][1]) * 7e-3
140420
141126
  );
140421
141127
  let adjustedBarLength = barLength;
140422
- let displayNumber = (barLength * size).toPrecision(5);
141128
+ let displayNumber = (barLength * size2).toPrecision(5);
140423
141129
  let displayUnit = unit;
140424
141130
  if (snap) {
140425
- const meterSize = sizeToMeters(size, unit);
141131
+ const meterSize = sizeToMeters(size2, unit);
140426
141132
  const numUnits = barLength * meterSize;
140427
141133
  const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
140428
141134
  adjustedBarLength = snappedOrigUnits / meterSize;