@vitessce/layer-controller 3.9.1 → 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) {
@@ -21509,21 +21509,20 @@ Popper.Utils = (typeof window !== "undefined" ? window : global).PopperUtils;
21509
21509
  Popper.placements = placements;
21510
21510
  Popper.Defaults = Defaults;
21511
21511
  function createChainedFunction(...funcs) {
21512
- return funcs.reduce((acc, func) => {
21513
- if (func == null) {
21514
- return acc;
21515
- }
21516
- {
21517
- if (typeof func !== "function") {
21518
- console.error("Material-UI: Invalid Argument Type, must only provide functions, undefined, or null.");
21512
+ return funcs.reduce(
21513
+ (acc, func) => {
21514
+ if (func == null) {
21515
+ return acc;
21519
21516
  }
21517
+ return function chainedFunction(...args) {
21518
+ acc.apply(this, args);
21519
+ func.apply(this, args);
21520
+ };
21521
+ },
21522
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
21523
+ () => {
21520
21524
  }
21521
- return function chainedFunction(...args) {
21522
- acc.apply(this, args);
21523
- func.apply(this, args);
21524
- };
21525
- }, () => {
21526
- });
21525
+ );
21527
21526
  }
21528
21527
  function setRef(ref, value) {
21529
21528
  if (typeof ref === "function") {
@@ -21562,7 +21561,7 @@ function flipPlacement(placement, theme) {
21562
21561
  }
21563
21562
  }
21564
21563
  function getAnchorEl(anchorEl) {
21565
- return typeof anchorEl === "function" ? anchorEl() : anchorEl;
21564
+ return typeof anchorEl === "function" ? anchorEl(document.body) : anchorEl;
21566
21565
  }
21567
21566
  const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
21568
21567
  const defaultPopperOptions = {};
@@ -21592,25 +21591,18 @@ React.forwardRef((props, ref) => {
21592
21591
  }
21593
21592
  if (popperRef.current) {
21594
21593
  popperRef.current.destroy();
21595
- handlePopperRefRef.current(null);
21594
+ if (handlePopperRefRef.current) {
21595
+ setRef(handlePopperRefRef.current, null);
21596
+ }
21596
21597
  }
21597
21598
  const handlePopperUpdate = (data) => {
21598
21599
  setPlacement(data.placement);
21599
21600
  };
21600
- const resolvedAnchorEl = getAnchorEl(anchorEl);
21601
- {
21602
- if (resolvedAnchorEl && resolvedAnchorEl.nodeType === 1) {
21603
- const box = resolvedAnchorEl.getBoundingClientRect();
21604
- if (box.top === 0 && box.left === 0 && box.right === 0 && box.bottom === 0) {
21605
- console.warn([
21606
- "Material-UI: The `anchorEl` prop provided to the component is invalid.",
21607
- "The anchor element should be part of the document layout.",
21608
- "Make sure the element is present in the document or that it's not display none."
21609
- ].join("\n"));
21610
- }
21611
- }
21601
+ const anchorElement = getAnchorEl(anchorEl);
21602
+ if (!anchorElement) {
21603
+ return;
21612
21604
  }
21613
- const popper = new Popper(getAnchorEl(anchorEl), tooltipRef.current, {
21605
+ const popper = new Popper(anchorElement, tooltipRef.current, {
21614
21606
  placement: rtlPlacement,
21615
21607
  ...popperOptions,
21616
21608
  modifiers: {
@@ -21628,7 +21620,9 @@ React.forwardRef((props, ref) => {
21628
21620
  onCreate: createChainedFunction(handlePopperUpdate, popperOptions.onCreate),
21629
21621
  onUpdate: createChainedFunction(handlePopperUpdate, popperOptions.onUpdate)
21630
21622
  });
21631
- handlePopperRefRef.current(popper);
21623
+ if (handlePopperRefRef.current) {
21624
+ setRef(handlePopperRefRef.current, popper);
21625
+ }
21632
21626
  }, [anchorEl, disablePortal, modifiers2, open, rtlPlacement, popperOptions]);
21633
21627
  const handleRef = React.useCallback((node2) => {
21634
21628
  setRef(ownRef, node2);
@@ -21642,7 +21636,9 @@ React.forwardRef((props, ref) => {
21642
21636
  return;
21643
21637
  }
21644
21638
  popperRef.current.destroy();
21645
- handlePopperRefRef.current(null);
21639
+ if (handlePopperRefRef.current) {
21640
+ setRef(handlePopperRefRef.current, null);
21641
+ }
21646
21642
  };
21647
21643
  const handleExited = () => {
21648
21644
  setExited(true);
@@ -21673,10 +21669,704 @@ React.forwardRef((props, ref) => {
21673
21669
  // Fix Popper.js display issue
21674
21670
  top: 0,
21675
21671
  left: 0,
21676
- display: !open && keepMounted && !transition ? "none" : null,
21672
+ display: !open && keepMounted && !transition ? "none" : void 0,
21677
21673
  ...style2
21678
21674
  }, children: typeof children === "function" ? children(childProps) : children }) });
21679
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
+ });
21680
22370
  const ViewType = {
21681
22371
  DESCRIPTION: "description",
21682
22372
  STATUS: "status",
@@ -21700,6 +22390,7 @@ const ViewType = {
21700
22390
  OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
21701
22391
  FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
21702
22392
  BIOMARKER_SELECT: "biomarkerSelect",
22393
+ BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
21703
22394
  COMPARATIVE_HEADING: "comparativeHeading",
21704
22395
  LINK_CONTROLLER: "linkController",
21705
22396
  NEUROGLANCER: "neuroglancer",
@@ -22460,6 +23151,17 @@ const COMPONENT_COORDINATION_TYPES = {
22460
23151
  CoordinationType.OBS_SET_FILTER
22461
23152
  // TODO: create coordination types for internal state of the biomarker selection view?
22462
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
+ ],
22463
23165
  [ViewType.COMPARATIVE_HEADING]: [
22464
23166
  CoordinationType.DATASET,
22465
23167
  CoordinationType.OBS_TYPE,
@@ -23605,9 +24307,9 @@ function mapCacheHas(key) {
23605
24307
  return getMapData(this, key).has(key);
23606
24308
  }
23607
24309
  function mapCacheSet(key, value) {
23608
- var data = getMapData(this, key), size = data.size;
24310
+ var data = getMapData(this, key), size2 = data.size;
23609
24311
  data.set(key, value);
23610
- this.size += data.size == size ? 0 : 1;
24312
+ this.size += data.size == size2 ? 0 : 1;
23611
24313
  return this;
23612
24314
  }
23613
24315
  function MapCache(entries) {
@@ -30781,12 +31483,12 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
30781
31483
  return original.getVertexAttrib.apply(this, arguments);
30782
31484
  }
30783
31485
  };
30784
- gl.vertexAttribPointer = function vertexAttribPointer(indx, size, type, normalized, stride, offset2) {
31486
+ gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset2) {
30785
31487
  const vao = self2.currentVertexArrayObject;
30786
31488
  vao.maxAttrib = Math.max(vao.maxAttrib, indx);
30787
31489
  const attrib = vao.attribs[indx];
30788
31490
  attrib.buffer = self2.currentArrayBuffer;
30789
- attrib.size = size;
31491
+ attrib.size = size2;
30790
31492
  attrib.type = type;
30791
31493
  attrib.normalized = normalized;
30792
31494
  attrib.stride = stride;
@@ -32678,7 +33380,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
32678
33380
  sourceBuffer,
32679
33381
  readOffset = 0,
32680
33382
  writeOffset = 0,
32681
- size
33383
+ size: size2
32682
33384
  } = _ref;
32683
33385
  const {
32684
33386
  gl
@@ -32686,7 +33388,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
32686
33388
  assertWebGL2Context(gl);
32687
33389
  gl.bindBuffer(36662, sourceBuffer.handle);
32688
33390
  gl.bindBuffer(36663, this.handle);
32689
- gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size);
33391
+ gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size2);
32690
33392
  gl.bindBuffer(36662, null);
32691
33393
  gl.bindBuffer(36663, null);
32692
33394
  this.debugData = null;
@@ -32728,11 +33430,11 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
32728
33430
  target = this.target,
32729
33431
  index: index2 = this.accessor && this.accessor.index,
32730
33432
  offset: offset2 = 0,
32731
- size
33433
+ size: size2
32732
33434
  } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
32733
33435
  if (target === 35345 || target === 35982) {
32734
- if (size !== void 0) {
32735
- this.gl.bindBufferRange(target, index2, this.handle, offset2, size);
33436
+ if (size2 !== void 0) {
33437
+ this.gl.bindBufferRange(target, index2, this.handle, offset2, size2);
32736
33438
  } else {
32737
33439
  assert$7(offset2 === 0);
32738
33440
  this.gl.bindBufferBase(target, index2, this.handle);
@@ -33412,47 +34114,47 @@ class Texture extends Resource$1 {
33412
34114
  };
33413
34115
  }
33414
34116
  _deduceImageSize(data, width2, height2) {
33415
- let size;
34117
+ let size2;
33416
34118
  if (typeof ImageData !== "undefined" && data instanceof ImageData) {
33417
- size = {
34119
+ size2 = {
33418
34120
  width: data.width,
33419
34121
  height: data.height
33420
34122
  };
33421
34123
  } else if (typeof HTMLImageElement !== "undefined" && data instanceof HTMLImageElement) {
33422
- size = {
34124
+ size2 = {
33423
34125
  width: data.naturalWidth,
33424
34126
  height: data.naturalHeight
33425
34127
  };
33426
34128
  } else if (typeof HTMLCanvasElement !== "undefined" && data instanceof HTMLCanvasElement) {
33427
- size = {
34129
+ size2 = {
33428
34130
  width: data.width,
33429
34131
  height: data.height
33430
34132
  };
33431
34133
  } else if (typeof ImageBitmap !== "undefined" && data instanceof ImageBitmap) {
33432
- size = {
34134
+ size2 = {
33433
34135
  width: data.width,
33434
34136
  height: data.height
33435
34137
  };
33436
34138
  } else if (typeof HTMLVideoElement !== "undefined" && data instanceof HTMLVideoElement) {
33437
- size = {
34139
+ size2 = {
33438
34140
  width: data.videoWidth,
33439
34141
  height: data.videoHeight
33440
34142
  };
33441
34143
  } else if (!data) {
33442
- size = {
34144
+ size2 = {
33443
34145
  width: width2 >= 0 ? width2 : 1,
33444
34146
  height: height2 >= 0 ? height2 : 1
33445
34147
  };
33446
34148
  } else {
33447
- size = {
34149
+ size2 = {
33448
34150
  width: width2,
33449
34151
  height: height2
33450
34152
  };
33451
34153
  }
33452
- assert$7(size, "Could not deduced texture size");
33453
- assert$7(width2 === void 0 || size.width === width2, "Deduced texture width does not match supplied width");
33454
- assert$7(height2 === void 0 || size.height === height2, "Deduced texture height does not match supplied height");
33455
- 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;
33456
34158
  }
33457
34159
  _createHandle() {
33458
34160
  return this.gl.createTexture();
@@ -35411,11 +36113,11 @@ function getSamplerSetter() {
35411
36113
  return update2;
35412
36114
  };
35413
36115
  }
35414
- function getArraySetter(functionName, toArray, size, uniformSetter) {
36116
+ function getArraySetter(functionName, toArray, size2, uniformSetter) {
35415
36117
  let cache2 = null;
35416
36118
  let cacheLength = null;
35417
36119
  return (gl, location, value) => {
35418
- const arrayValue = toArray(value, size);
36120
+ const arrayValue = toArray(value, size2);
35419
36121
  const length2 = arrayValue.length;
35420
36122
  let update2 = false;
35421
36123
  if (cache2 === null) {
@@ -35610,11 +36312,11 @@ class ProgramConfiguration {
35610
36312
  const {
35611
36313
  name: name2,
35612
36314
  type,
35613
- size
36315
+ size: size2
35614
36316
  } = gl.getActiveAttrib(program.handle, index2);
35615
36317
  const location = gl.getAttribLocation(program.handle, name2);
35616
36318
  if (location >= 0) {
35617
- this._addAttribute(location, name2, type, size);
36319
+ this._addAttribute(location, name2, type, size2);
35618
36320
  }
35619
36321
  }
35620
36322
  this.attributeInfos.sort((a2, b) => a2.location - b.location);
@@ -35631,20 +36333,20 @@ class ProgramConfiguration {
35631
36333
  const {
35632
36334
  name: name2,
35633
36335
  type,
35634
- size
36336
+ size: size2
35635
36337
  } = gl.getTransformFeedbackVarying(program.handle, location);
35636
- this._addVarying(location, name2, type, size);
36338
+ this._addVarying(location, name2, type, size2);
35637
36339
  }
35638
36340
  this.varyingInfos.sort((a2, b) => a2.location - b.location);
35639
36341
  }
35640
- _addAttribute(location, name2, compositeType, size) {
36342
+ _addAttribute(location, name2, compositeType, size2) {
35641
36343
  const {
35642
36344
  type,
35643
36345
  components
35644
36346
  } = decomposeCompositeGLType(compositeType);
35645
36347
  const accessor = {
35646
36348
  type,
35647
- size: size * components
36349
+ size: size2 * components
35648
36350
  };
35649
36351
  this._inferProperties(location, name2, accessor);
35650
36352
  const attributeInfo = {
@@ -35661,14 +36363,14 @@ class ProgramConfiguration {
35661
36363
  accessor.divisor = 1;
35662
36364
  }
35663
36365
  }
35664
- _addVarying(location, name2, compositeType, size) {
36366
+ _addVarying(location, name2, compositeType, size2) {
35665
36367
  const {
35666
36368
  type,
35667
36369
  components
35668
36370
  } = decomposeCompositeGLType(compositeType);
35669
36371
  const accessor = new Accessor({
35670
36372
  type,
35671
- size: size * components
36373
+ size: size2 * components
35672
36374
  });
35673
36375
  const varying = {
35674
36376
  location,
@@ -36344,7 +37046,7 @@ class VertexArrayObject extends Resource$1 {
36344
37046
  return this.setElementBuffer(buffer, accessor);
36345
37047
  }
36346
37048
  const {
36347
- size,
37049
+ size: size2,
36348
37050
  type,
36349
37051
  stride,
36350
37052
  offset: offset2,
@@ -36361,9 +37063,9 @@ class VertexArrayObject extends Resource$1 {
36361
37063
  gl.bindBuffer(34962, buffer.handle);
36362
37064
  if (integer) {
36363
37065
  assert$7(isWebGL2$1(gl));
36364
- gl2.vertexAttribIPointer(location, size, type, stride, offset2);
37066
+ gl2.vertexAttribIPointer(location, size2, type, stride, offset2);
36365
37067
  } else {
36366
- gl.vertexAttribPointer(location, size, type, normalized, stride, offset2);
37068
+ gl.vertexAttribPointer(location, size2, type, normalized, stride, offset2);
36367
37069
  }
36368
37070
  gl.enableVertexAttribArray(location);
36369
37071
  gl2.vertexAttribDivisor(location, divisor || 0);
@@ -36691,10 +37393,10 @@ class VertexArray {
36691
37393
  const currentAccessor = this.accessors[location] || {};
36692
37394
  const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
36693
37395
  const {
36694
- size,
37396
+ size: size2,
36695
37397
  type
36696
37398
  } = accessor;
36697
- assert$7(Number.isFinite(size) && Number.isFinite(type));
37399
+ assert$7(Number.isFinite(size2) && Number.isFinite(type));
36698
37400
  return {
36699
37401
  location,
36700
37402
  accessor
@@ -36826,12 +37528,12 @@ class VertexArray {
36826
37528
  function formatArrayValue(v, opts) {
36827
37529
  const {
36828
37530
  maxElts = 16,
36829
- size = 1
37531
+ size: size2 = 1
36830
37532
  } = opts;
36831
37533
  let string = "[";
36832
37534
  for (let i2 = 0; i2 < v.length && i2 < maxElts; ++i2) {
36833
37535
  if (i2 > 0) {
36834
- string += ",".concat(i2 % size === 0 ? " " : "");
37536
+ string += ",".concat(i2 % size2 === 0 ? " " : "");
36835
37537
  }
36836
37538
  string += formatValue(v[i2], opts);
36837
37539
  }
@@ -36996,7 +37698,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
36996
37698
  };
36997
37699
  }
36998
37700
  let type = "NOT PROVIDED";
36999
- let size = 1;
37701
+ let size2 = 1;
37000
37702
  let verts = 0;
37001
37703
  let bytes = 0;
37002
37704
  let isInteger;
@@ -37004,7 +37706,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
37004
37706
  let value;
37005
37707
  if (accessor) {
37006
37708
  type = accessor.type;
37007
- size = accessor.size;
37709
+ size2 = accessor.size;
37008
37710
  type = String(type).replace("Array", "");
37009
37711
  isInteger = type.indexOf("nt") !== -1;
37010
37712
  }
@@ -37017,41 +37719,41 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
37017
37719
  marker2 = changed ? "*" : "";
37018
37720
  value = data;
37019
37721
  bytes = buffer.byteLength;
37020
- verts = bytes / data.BYTES_PER_ELEMENT / size;
37722
+ verts = bytes / data.BYTES_PER_ELEMENT / size2;
37021
37723
  let format;
37022
37724
  if (accessor) {
37023
37725
  const instanced = accessor.divisor > 0;
37024
- 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), ")");
37025
37727
  } else {
37026
37728
  isInteger = true;
37027
37729
  format = "".concat(bytes, " bytes");
37028
37730
  }
37029
37731
  return {
37030
37732
  [header]: "".concat(marker2).concat(formatValue(value, {
37031
- size,
37733
+ size: size2,
37032
37734
  isInteger
37033
37735
  })),
37034
37736
  "Format ": format
37035
37737
  };
37036
37738
  }
37037
37739
  value = attribute;
37038
- size = attribute.length;
37740
+ size2 = attribute.length;
37039
37741
  type = String(attribute.constructor.name).replace("Array", "");
37040
37742
  isInteger = type.indexOf("nt") !== -1;
37041
37743
  return {
37042
37744
  [header]: "".concat(formatValue(value, {
37043
- size,
37745
+ size: size2,
37044
37746
  isInteger
37045
37747
  }), " (constant)"),
37046
- "Format ": "".concat(size, "x").concat(type, " (constant)")
37748
+ "Format ": "".concat(size2, "x").concat(type, " (constant)")
37047
37749
  };
37048
37750
  }
37049
37751
  function getGLSLDeclaration$1(name2, accessor) {
37050
37752
  const {
37051
37753
  type,
37052
- size
37754
+ size: size2
37053
37755
  } = accessor;
37054
- const typeAndName = getCompositeGLType(type, size);
37756
+ const typeAndName = getCompositeGLType(type, size2);
37055
37757
  return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
37056
37758
  }
37057
37759
  function getDebugTableForProgramConfiguration(config2) {
@@ -37078,9 +37780,9 @@ function getDebugTableForProgramConfiguration(config2) {
37078
37780
  function getGLSLDeclaration(attributeInfo) {
37079
37781
  const {
37080
37782
  type,
37081
- size
37783
+ size: size2
37082
37784
  } = attributeInfo.accessor;
37083
- const typeAndName = getCompositeGLType(type, size);
37785
+ const typeAndName = getCompositeGLType(type, size2);
37084
37786
  if (typeAndName) {
37085
37787
  return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
37086
37788
  }
@@ -40105,11 +40807,11 @@ class Geometry {
40105
40807
  const attribute = attributes[attributeName];
40106
40808
  const {
40107
40809
  value,
40108
- size,
40810
+ size: size2,
40109
40811
  constant: constant2
40110
40812
  } = attribute;
40111
- if (!constant2 && value && size >= 1) {
40112
- vertexCount = Math.min(vertexCount, value.length / size);
40813
+ if (!constant2 && value && size2 >= 1) {
40814
+ vertexCount = Math.min(vertexCount, value.length / size2);
40113
40815
  }
40114
40816
  }
40115
40817
  assert$7(Number.isFinite(vertexCount));
@@ -40487,20 +41189,20 @@ function unpackIndexedGeometry(geometry2) {
40487
41189
  const {
40488
41190
  constant: constant2,
40489
41191
  value,
40490
- size
41192
+ size: size2
40491
41193
  } = attribute;
40492
- if (constant2 || !size) {
41194
+ if (constant2 || !size2) {
40493
41195
  continue;
40494
41196
  }
40495
- const unpackedValue = new value.constructor(vertexCount * size);
41197
+ const unpackedValue = new value.constructor(vertexCount * size2);
40496
41198
  for (let x = 0; x < vertexCount; ++x) {
40497
41199
  const index2 = indices.value[x];
40498
- for (let i2 = 0; i2 < size; i2++) {
40499
- 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];
40500
41202
  }
40501
41203
  }
40502
41204
  unpackedAttributes[attributeName] = {
40503
- size,
41205
+ size: size2,
40504
41206
  value: unpackedValue
40505
41207
  };
40506
41208
  }
@@ -41421,11 +42123,11 @@ function fitBounds(options) {
41421
42123
  const padding2 = getPaddingObject(options.padding);
41422
42124
  const nw = lngLatToWorld([west, clamp$1(north, -85.051129, MAX_LATITUDE)]);
41423
42125
  const se = lngLatToWorld([east, clamp$1(south, -85.051129, MAX_LATITUDE)]);
41424
- 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)];
41425
42127
  const targetSize = [width2 - padding2.left - padding2.right - Math.abs(offset2[0]) * 2, height2 - padding2.top - padding2.bottom - Math.abs(offset2[1]) * 2];
41426
42128
  assert$5(targetSize[0] > 0 && targetSize[1] > 0);
41427
- const scaleX2 = targetSize[0] / size[0];
41428
- const scaleY2 = targetSize[1] / size[1];
42129
+ const scaleX2 = targetSize[0] / size2[0];
42130
+ const scaleY2 = targetSize[1] / size2[1];
41429
42131
  const offsetX = (padding2.right - padding2.left) / 2 / scaleX2;
41430
42132
  const offsetY = (padding2.top - padding2.bottom) / 2 / scaleY2;
41431
42133
  const center = [(se[0] + nw[0]) / 2 + offsetX, (se[1] + nw[1]) / 2 + offsetY];
@@ -42544,7 +43246,7 @@ class TypedArrayManager {
42544
43246
  Object.assign(this.opts, options);
42545
43247
  }
42546
43248
  allocate(typedArray, count2, {
42547
- size = 1,
43249
+ size: size2 = 1,
42548
43250
  type,
42549
43251
  padding: padding2 = 0,
42550
43252
  copy: copy2 = false,
@@ -42552,7 +43254,7 @@ class TypedArrayManager {
42552
43254
  maxCount
42553
43255
  }) {
42554
43256
  const Type2 = type || typedArray && typedArray.constructor || Float32Array;
42555
- const newSize = count2 * size + padding2;
43257
+ const newSize = count2 * size2 + padding2;
42556
43258
  if (ArrayBuffer.isView(typedArray)) {
42557
43259
  if (newSize <= typedArray.length) {
42558
43260
  return typedArray;
@@ -42563,7 +43265,7 @@ class TypedArrayManager {
42563
43265
  }
42564
43266
  let maxSize = Infinity;
42565
43267
  if (maxCount) {
42566
- maxSize = maxCount * size + padding2;
43268
+ maxSize = maxCount * size2 + padding2;
42567
43269
  }
42568
43270
  const newArray = this._allocate(Type2, newSize, initialize, maxSize);
42569
43271
  if (typedArray && copy2) {
@@ -42577,8 +43279,8 @@ class TypedArrayManager {
42577
43279
  release(typedArray) {
42578
43280
  this._release(typedArray);
42579
43281
  }
42580
- _allocate(Type2, size, initialize, maxSize) {
42581
- 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);
42582
43284
  if (sizeToAllocate > maxSize) {
42583
43285
  sizeToAllocate = maxSize;
42584
43286
  }
@@ -42652,26 +43354,26 @@ function fp64LowPart(x) {
42652
43354
  let scratchArray;
42653
43355
  function toDoublePrecisionArray(typedArray, options) {
42654
43356
  const {
42655
- size = 1,
43357
+ size: size2 = 1,
42656
43358
  startIndex = 0
42657
43359
  } = options;
42658
43360
  const endIndex = options.endIndex !== void 0 ? options.endIndex : typedArray.length;
42659
- const count2 = (endIndex - startIndex) / size;
43361
+ const count2 = (endIndex - startIndex) / size2;
42660
43362
  scratchArray = defaultTypedArrayManager.allocate(scratchArray, count2, {
42661
43363
  type: Float32Array,
42662
- size: size * 2
43364
+ size: size2 * 2
42663
43365
  });
42664
43366
  let sourceIndex = startIndex;
42665
43367
  let targetIndex = 0;
42666
43368
  while (sourceIndex < endIndex) {
42667
- for (let j = 0; j < size; j++) {
43369
+ for (let j = 0; j < size2; j++) {
42668
43370
  const value = typedArray[sourceIndex++];
42669
43371
  scratchArray[targetIndex + j] = value;
42670
- scratchArray[targetIndex + j + size] = fp64LowPart(value);
43372
+ scratchArray[targetIndex + j + size2] = fp64LowPart(value);
42671
43373
  }
42672
- targetIndex += size * 2;
43374
+ targetIndex += size2 * 2;
42673
43375
  }
42674
- return scratchArray.subarray(0, count2 * size * 2);
43376
+ return scratchArray.subarray(0, count2 * size2 * 2);
42675
43377
  }
42676
43378
  const DEGREES_TO_RADIANS$4 = Math.PI / 180;
42677
43379
  const IDENTITY = createMat4();
@@ -46330,15 +47032,15 @@ function getMaskViewport({
46330
47032
  });
46331
47033
  }
46332
47034
  function _doubleBounds(bounds2) {
46333
- const size = {
47035
+ const size2 = {
46334
47036
  x: bounds2[2] - bounds2[0],
46335
47037
  y: bounds2[3] - bounds2[1]
46336
47038
  };
46337
47039
  const center = {
46338
- x: bounds2[0] + 0.5 * size.x,
46339
- y: bounds2[1] + 0.5 * size.y
47040
+ x: bounds2[0] + 0.5 * size2.x,
47041
+ y: bounds2[1] + 0.5 * size2.y
46340
47042
  };
46341
- 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];
46342
47044
  }
46343
47045
  class MaskEffect {
46344
47046
  constructor() {
@@ -50722,13 +51424,13 @@ class ShaderAttribute {
50722
51424
  value
50723
51425
  } = this.source;
50724
51426
  const {
50725
- size
51427
+ size: size2
50726
51428
  } = accessor;
50727
51429
  let constantValue = value;
50728
- if (value && value.length !== size) {
50729
- constantValue = new Float32Array(size);
51430
+ if (value && value.length !== size2) {
51431
+ constantValue = new Float32Array(size2);
50730
51432
  const index2 = accessor.elementOffset || 0;
50731
- for (let i2 = 0; i2 < size; ++i2) {
51433
+ for (let i2 = 0; i2 < size2; ++i2) {
50732
51434
  constantValue[i2] = value[index2 + i2];
50733
51435
  }
50734
51436
  }
@@ -50931,14 +51633,14 @@ class DataColumn {
50931
51633
  const {
50932
51634
  value,
50933
51635
  numInstances,
50934
- size
51636
+ size: size2
50935
51637
  } = this;
50936
- const len2 = numInstances * size;
51638
+ const len2 = numInstances * size2;
50937
51639
  if (value && len2 && value.length >= len2) {
50938
- const min = new Array(size).fill(Infinity);
50939
- const max2 = new Array(size).fill(-Infinity);
51640
+ const min = new Array(size2).fill(Infinity);
51641
+ const max2 = new Array(size2).fill(-Infinity);
50940
51642
  for (let i2 = 0; i2 < len2; ) {
50941
- for (let j = 0; j < size; j++) {
51643
+ for (let j = 0; j < size2; j++) {
50942
51644
  const v = value[i2++];
50943
51645
  if (v < min[j]) min[j] = v;
50944
51646
  if (v > max2[j]) max2[j] = v;
@@ -51104,7 +51806,7 @@ class DataColumn {
51104
51806
  _normalizeValue(value, out, start) {
51105
51807
  const {
51106
51808
  defaultValue: defaultValue2,
51107
- size
51809
+ size: size2
51108
51810
  } = this.settings;
51109
51811
  if (Number.isFinite(value)) {
51110
51812
  out[start] = value;
@@ -51114,7 +51816,7 @@ class DataColumn {
51114
51816
  out[start] = defaultValue2[0];
51115
51817
  return out;
51116
51818
  }
51117
- switch (size) {
51819
+ switch (size2) {
51118
51820
  case 4:
51119
51821
  out[start + 3] = Number.isFinite(value[3]) ? value[3] : defaultValue2[3];
51120
51822
  case 3:
@@ -51125,7 +51827,7 @@ class DataColumn {
51125
51827
  out[start + 0] = Number.isFinite(value[0]) ? value[0] : defaultValue2[0];
51126
51828
  break;
51127
51829
  default:
51128
- let i2 = size;
51830
+ let i2 = size2;
51129
51831
  while (--i2 >= 0) {
51130
51832
  out[start + i2] = Number.isFinite(value[i2]) ? value[i2] : defaultValue2[i2];
51131
51833
  }
@@ -51137,9 +51839,9 @@ class DataColumn {
51137
51839
  return false;
51138
51840
  }
51139
51841
  const {
51140
- size
51842
+ size: size2
51141
51843
  } = this;
51142
- for (let i2 = 0; i2 < size; i2++) {
51844
+ for (let i2 = 0; i2 < size2; i2++) {
51143
51845
  if (value1[i2] !== value2[i2]) {
51144
51846
  return false;
51145
51847
  }
@@ -51178,14 +51880,14 @@ function isAsyncIterable(data) {
51178
51880
  }
51179
51881
  function getAccessorFromBuffer(typedArray, options) {
51180
51882
  const {
51181
- size,
51883
+ size: size2,
51182
51884
  stride,
51183
51885
  offset: offset2,
51184
51886
  startIndices,
51185
51887
  nested
51186
51888
  } = options;
51187
51889
  const bytesPerElement = typedArray.BYTES_PER_ELEMENT;
51188
- const elementStride = stride ? stride / bytesPerElement : size;
51890
+ const elementStride = stride ? stride / bytesPerElement : size2;
51189
51891
  const elementOffset = offset2 ? offset2 / bytesPerElement : 0;
51190
51892
  const vertexCount = Math.floor((typedArray.length - elementOffset) / elementStride);
51191
51893
  return (_, {
@@ -51194,7 +51896,7 @@ function getAccessorFromBuffer(typedArray, options) {
51194
51896
  }) => {
51195
51897
  if (!startIndices) {
51196
51898
  const sourceIndex = index2 * elementStride + elementOffset;
51197
- for (let j = 0; j < size; j++) {
51899
+ for (let j = 0; j < size2; j++) {
51198
51900
  target[j] = typedArray[sourceIndex + j];
51199
51901
  }
51200
51902
  return target;
@@ -51206,20 +51908,20 @@ function getAccessorFromBuffer(typedArray, options) {
51206
51908
  result = new Array(endIndex - startIndex);
51207
51909
  for (let i2 = startIndex; i2 < endIndex; i2++) {
51208
51910
  const sourceIndex = i2 * elementStride + elementOffset;
51209
- target = new Array(size);
51210
- for (let j = 0; j < size; j++) {
51911
+ target = new Array(size2);
51912
+ for (let j = 0; j < size2; j++) {
51211
51913
  target[j] = typedArray[sourceIndex + j];
51212
51914
  }
51213
51915
  result[i2 - startIndex] = target;
51214
51916
  }
51215
- } else if (elementStride === size) {
51216
- result = typedArray.subarray(startIndex * size + elementOffset, endIndex * size + elementOffset);
51917
+ } else if (elementStride === size2) {
51918
+ result = typedArray.subarray(startIndex * size2 + elementOffset, endIndex * size2 + elementOffset);
51217
51919
  } else {
51218
- result = new typedArray.constructor((endIndex - startIndex) * size);
51920
+ result = new typedArray.constructor((endIndex - startIndex) * size2);
51219
51921
  let targetIndex = 0;
51220
51922
  for (let i2 = startIndex; i2 < endIndex; i2++) {
51221
51923
  const sourceIndex = i2 * elementStride + elementOffset;
51222
- for (let j = 0; j < size; j++) {
51924
+ for (let j = 0; j < size2; j++) {
51223
51925
  result[targetIndex++] = typedArray[sourceIndex + j];
51224
51926
  }
51225
51927
  }
@@ -51261,7 +51963,7 @@ function padArrayChunk(options) {
51261
51963
  source,
51262
51964
  target,
51263
51965
  start = 0,
51264
- size,
51966
+ size: size2,
51265
51967
  getData
51266
51968
  } = options;
51267
51969
  const end = options.end || target.length;
@@ -51278,7 +51980,7 @@ function padArrayChunk(options) {
51278
51980
  let i2 = sourceLength;
51279
51981
  while (i2 < targetLength) {
51280
51982
  const datum = getData(i2, source);
51281
- for (let j = 0; j < size; j++) {
51983
+ for (let j = 0; j < size2; j++) {
51282
51984
  target[start + i2] = datum[j] || 0;
51283
51985
  i2++;
51284
51986
  }
@@ -51287,7 +51989,7 @@ function padArrayChunk(options) {
51287
51989
  function padArray({
51288
51990
  source,
51289
51991
  target,
51290
- size,
51992
+ size: size2,
51291
51993
  getData,
51292
51994
  sourceStartIndices,
51293
51995
  targetStartIndices
@@ -51296,7 +51998,7 @@ function padArray({
51296
51998
  padArrayChunk({
51297
51999
  source,
51298
52000
  target,
51299
- size,
52001
+ size: size2,
51300
52002
  getData
51301
52003
  });
51302
52004
  return target;
@@ -51306,14 +52008,14 @@ function padArray({
51306
52008
  const getChunkData = getData && ((i2, chunk) => getData(i2 + targetIndex, chunk));
51307
52009
  const n2 = Math.min(sourceStartIndices.length, targetStartIndices.length);
51308
52010
  for (let i2 = 1; i2 < n2; i2++) {
51309
- const nextSourceIndex = sourceStartIndices[i2] * size;
51310
- const nextTargetIndex = targetStartIndices[i2] * size;
52011
+ const nextSourceIndex = sourceStartIndices[i2] * size2;
52012
+ const nextTargetIndex = targetStartIndices[i2] * size2;
51311
52013
  padArrayChunk({
51312
52014
  source: source.subarray(sourceIndex, nextSourceIndex),
51313
52015
  target,
51314
52016
  start: targetIndex,
51315
52017
  end: nextTargetIndex,
51316
- size,
52018
+ size: size2,
51317
52019
  getData: getChunkData
51318
52020
  });
51319
52021
  sourceIndex = nextSourceIndex;
@@ -51324,7 +52026,7 @@ function padArray({
51324
52026
  source: [],
51325
52027
  target,
51326
52028
  start: targetIndex,
51327
- size,
52029
+ size: size2,
51328
52030
  getData: getChunkData
51329
52031
  });
51330
52032
  }
@@ -51369,8 +52071,8 @@ function getSourceBufferAttribute(gl, attribute) {
51369
52071
  }
51370
52072
  return attribute.value;
51371
52073
  }
51372
- function getAttributeTypeFromSize(size) {
51373
- switch (size) {
52074
+ function getAttributeTypeFromSize(size2) {
52075
+ switch (size2) {
51374
52076
  case 1:
51375
52077
  return "float";
51376
52078
  case 2:
@@ -51380,7 +52082,7 @@ function getAttributeTypeFromSize(size) {
51380
52082
  case 4:
51381
52083
  return "vec4";
51382
52084
  default:
51383
- throw new Error('No defined attribute type for size "'.concat(size, '"'));
52085
+ throw new Error('No defined attribute type for size "'.concat(size2, '"'));
51384
52086
  }
51385
52087
  }
51386
52088
  function cycleBuffers(buffers) {
@@ -51391,10 +52093,10 @@ function getAttributeBufferLength(attribute, numInstances) {
51391
52093
  doublePrecision,
51392
52094
  settings,
51393
52095
  value,
51394
- size
52096
+ size: size2
51395
52097
  } = attribute;
51396
52098
  const multiplier = doublePrecision && value instanceof Float64Array ? 2 : 1;
51397
- return (settings.noAlloc ? value.length : numInstances * size) * multiplier;
52099
+ return (settings.noAlloc ? value.length : numInstances * size2) * multiplier;
51398
52100
  }
51399
52101
  function padBuffer({
51400
52102
  buffer,
@@ -51405,7 +52107,7 @@ function padBuffer({
51405
52107
  getData = (x) => x
51406
52108
  }) {
51407
52109
  const precisionMultiplier = attribute.doublePrecision && attribute.value instanceof Float64Array ? 2 : 1;
51408
- const size = attribute.size * precisionMultiplier;
52110
+ const size2 = attribute.size * precisionMultiplier;
51409
52111
  const byteOffset = attribute.byteOffset;
51410
52112
  const toStartIndices = attribute.startIndices;
51411
52113
  const hasStartIndices = fromStartIndices && toStartIndices;
@@ -51421,7 +52123,7 @@ function padBuffer({
51421
52123
  const getter = getData;
51422
52124
  getData = (value, chunk) => attribute.normalizeConstant(getter(value, chunk));
51423
52125
  }
51424
- 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);
51425
52127
  const source = buffer.getData({
51426
52128
  length: fromLength
51427
52129
  });
@@ -51431,7 +52133,7 @@ function padBuffer({
51431
52133
  target: data,
51432
52134
  sourceStartIndices: fromStartIndices,
51433
52135
  targetStartIndices: toStartIndices,
51434
- size,
52136
+ size: size2,
51435
52137
  getData: getMissingData
51436
52138
  });
51437
52139
  if (buffer.byteLength < data.byteLength + byteOffset) {
@@ -51687,7 +52389,7 @@ class Attribute extends DataColumn {
51687
52389
  settings,
51688
52390
  state,
51689
52391
  value,
51690
- size,
52392
+ size: size2,
51691
52393
  startIndices
51692
52394
  } = attribute;
51693
52395
  const {
@@ -51713,9 +52415,9 @@ class Attribute extends DataColumn {
51713
52415
  let startIndex = i2;
51714
52416
  for (const item of objectValue) {
51715
52417
  attribute._normalizeValue(item, value, startIndex);
51716
- startIndex += size;
52418
+ startIndex += size2;
51717
52419
  }
51718
- } else if (objectValue && objectValue.length > size) {
52420
+ } else if (objectValue && objectValue.length > size2) {
51719
52421
  value.set(objectValue, i2);
51720
52422
  } else {
51721
52423
  attribute._normalizeValue(objectValue, objectInfo.target, 0);
@@ -51726,10 +52428,10 @@ class Attribute extends DataColumn {
51726
52428
  count: numVertices
51727
52429
  });
51728
52430
  }
51729
- i2 += numVertices * size;
52431
+ i2 += numVertices * size2;
51730
52432
  } else {
51731
52433
  attribute._normalizeValue(objectValue, value, i2);
51732
- i2 += size;
52434
+ i2 += size2;
51733
52435
  }
51734
52436
  }
51735
52437
  }
@@ -56927,14 +57629,14 @@ function reversePolygon(points, options) {
56927
57629
  const {
56928
57630
  start = 0,
56929
57631
  end = points.length,
56930
- size = 2
57632
+ size: size2 = 2
56931
57633
  } = options;
56932
- const numPoints = (end - start) / size;
57634
+ const numPoints = (end - start) / size2;
56933
57635
  const numSwaps = Math.floor(numPoints / 2);
56934
57636
  for (let i2 = 0; i2 < numSwaps; ++i2) {
56935
- const b1 = start + i2 * size;
56936
- const b2 = start + (numPoints - 1 - i2) * size;
56937
- 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) {
56938
57640
  const tmp = points[b1 + j];
56939
57641
  points[b1 + j] = points[b2 + j];
56940
57642
  points[b2 + j] = tmp;
@@ -56942,12 +57644,12 @@ function reversePolygon(points, options) {
56942
57644
  }
56943
57645
  }
56944
57646
  function push(target, source) {
56945
- const size = source.length;
57647
+ const size2 = source.length;
56946
57648
  const startIndex = target.length;
56947
57649
  if (startIndex > 0) {
56948
57650
  let isDuplicate = true;
56949
- for (let i2 = 0; i2 < size; i2++) {
56950
- if (target[startIndex - size + i2] !== source[i2]) {
57651
+ for (let i2 = 0; i2 < size2; i2++) {
57652
+ if (target[startIndex - size2 + i2] !== source[i2]) {
56951
57653
  isDuplicate = false;
56952
57654
  break;
56953
57655
  }
@@ -56956,20 +57658,20 @@ function push(target, source) {
56956
57658
  return false;
56957
57659
  }
56958
57660
  }
56959
- for (let i2 = 0; i2 < size; i2++) {
57661
+ for (let i2 = 0; i2 < size2; i2++) {
56960
57662
  target[startIndex + i2] = source[i2];
56961
57663
  }
56962
57664
  return true;
56963
57665
  }
56964
57666
  function copy(target, source) {
56965
- const size = source.length;
56966
- for (let i2 = 0; i2 < size; i2++) {
57667
+ const size2 = source.length;
57668
+ for (let i2 = 0; i2 < size2; i2++) {
56967
57669
  target[i2] = source[i2];
56968
57670
  }
56969
57671
  }
56970
- function getPointAtIndex(positions, index2, size, offset2, out = []) {
56971
- const startI = offset2 + index2 * size;
56972
- 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++) {
56973
57675
  out[i2] = positions[startI + i2];
56974
57676
  }
56975
57677
  return out;
@@ -57007,24 +57709,24 @@ function bitCode(p, bbox2) {
57007
57709
  }
57008
57710
  function cutPolylineByGrid(positions, options) {
57009
57711
  const {
57010
- size = 2,
57712
+ size: size2 = 2,
57011
57713
  broken = false,
57012
57714
  gridResolution = 10,
57013
57715
  gridOffset = [0, 0],
57014
57716
  startIndex = 0,
57015
57717
  endIndex = positions.length
57016
57718
  } = options || {};
57017
- const numPoints = (endIndex - startIndex) / size;
57719
+ const numPoints = (endIndex - startIndex) / size2;
57018
57720
  let part = [];
57019
57721
  const result = [part];
57020
- const a2 = getPointAtIndex(positions, 0, size, startIndex);
57722
+ const a2 = getPointAtIndex(positions, 0, size2, startIndex);
57021
57723
  let b;
57022
57724
  let codeB;
57023
57725
  const cell = getGridCell(a2, gridResolution, gridOffset, []);
57024
57726
  const scratchPoint = [];
57025
57727
  push(part, a2);
57026
57728
  for (let i2 = 1; i2 < numPoints; i2++) {
57027
- b = getPointAtIndex(positions, i2, size, startIndex, b);
57729
+ b = getPointAtIndex(positions, i2, size2, startIndex, b);
57028
57730
  codeB = bitCode(b, cell);
57029
57731
  while (codeB) {
57030
57732
  intersect(a2, b, codeB, cell, scratchPoint);
@@ -57036,7 +57738,7 @@ function cutPolylineByGrid(positions, options) {
57036
57738
  push(part, scratchPoint);
57037
57739
  copy(a2, scratchPoint);
57038
57740
  moveToNeighborCell(cell, gridResolution, codeB);
57039
- if (broken && part.length > size) {
57741
+ if (broken && part.length > size2) {
57040
57742
  part = [];
57041
57743
  result.push(part);
57042
57744
  push(part, a2);
@@ -57061,7 +57763,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57061
57763
  return [];
57062
57764
  }
57063
57765
  const {
57064
- size = 2,
57766
+ size: size2 = 2,
57065
57767
  gridResolution = 10,
57066
57768
  gridOffset = [0, 0],
57067
57769
  edgeTypes = false
@@ -57069,7 +57771,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57069
57771
  const result = [];
57070
57772
  const queue = [{
57071
57773
  pos: positions,
57072
- types: edgeTypes ? new Array(positions.length / size).fill(TYPE_BORDER) : null,
57774
+ types: edgeTypes ? new Array(positions.length / size2).fill(TYPE_BORDER) : null,
57073
57775
  holes: holeIndices || []
57074
57776
  }];
57075
57777
  const bbox2 = [[], []];
@@ -57080,11 +57782,11 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57080
57782
  types,
57081
57783
  holes
57082
57784
  } = queue.shift();
57083
- getBoundingBox$2(pos, size, holes[0] || pos.length, bbox2);
57785
+ getBoundingBox$2(pos, size2, holes[0] || pos.length, bbox2);
57084
57786
  cell = getGridCell(bbox2[0], gridResolution, gridOffset, cell);
57085
57787
  const code = bitCode(bbox2[1], cell);
57086
57788
  if (code) {
57087
- 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);
57088
57790
  const polygonLow = {
57089
57791
  pos: parts[0].pos,
57090
57792
  types: parts[0].types,
@@ -57097,7 +57799,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57097
57799
  };
57098
57800
  queue.push(polygonLow, polygonHigh);
57099
57801
  for (let i2 = 0; i2 < holes.length; i2++) {
57100
- 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);
57101
57803
  if (parts[0]) {
57102
57804
  polygonLow.holes.push(polygonLow.pos.length);
57103
57805
  polygonLow.pos = concatInPlace(polygonLow.pos, parts[0].pos);
@@ -57128,8 +57830,8 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
57128
57830
  }
57129
57831
  return result;
57130
57832
  }
57131
- function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2, edge) {
57132
- const numPoints = (endIndex - startIndex) / size;
57833
+ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2, edge) {
57834
+ const numPoints = (endIndex - startIndex) / size2;
57133
57835
  const resultLow = [];
57134
57836
  const resultHigh = [];
57135
57837
  const typesLow = [];
@@ -57138,15 +57840,15 @@ function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2,
57138
57840
  let p;
57139
57841
  let side;
57140
57842
  let type;
57141
- const prev2 = getPointAtIndex(positions, numPoints - 1, size, startIndex);
57843
+ const prev2 = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
57142
57844
  let prevSide = Math.sign(edge & 8 ? prev2[1] - bbox2[3] : prev2[0] - bbox2[2]);
57143
57845
  let prevType = edgeTypes && edgeTypes[numPoints - 1];
57144
57846
  let lowPointCount = 0;
57145
57847
  let highPointCount = 0;
57146
57848
  for (let i2 = 0; i2 < numPoints; i2++) {
57147
- p = getPointAtIndex(positions, i2, size, startIndex, p);
57849
+ p = getPointAtIndex(positions, i2, size2, startIndex, p);
57148
57850
  side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
57149
- type = edgeTypes && edgeTypes[startIndex / size + i2];
57851
+ type = edgeTypes && edgeTypes[startIndex / size2 + i2];
57150
57852
  if (side && prevSide && prevSide !== side) {
57151
57853
  intersect(prev2, p, edge, bbox2, scratchPoint);
57152
57854
  push(resultLow, scratchPoint) && typesLow.push(prevType);
@@ -57200,12 +57902,12 @@ function moveToNeighborCell(cell, gridResolution, edge) {
57200
57902
  cell[2] -= gridResolution;
57201
57903
  }
57202
57904
  }
57203
- function getBoundingBox$2(positions, size, endIndex, out) {
57905
+ function getBoundingBox$2(positions, size2, endIndex, out) {
57204
57906
  let minX = Infinity;
57205
57907
  let maxX = -Infinity;
57206
57908
  let minY = Infinity;
57207
57909
  let maxY = -Infinity;
57208
- for (let i2 = 0; i2 < endIndex; i2 += size) {
57910
+ for (let i2 = 0; i2 < endIndex; i2 += size2) {
57209
57911
  const x = positions[i2];
57210
57912
  const y = positions[i2 + 1];
57211
57913
  minX = x < minX ? x : minX;
@@ -57222,29 +57924,29 @@ function getBoundingBox$2(positions, size, endIndex, out) {
57222
57924
  const DEFAULT_MAX_LATITUDE = 85.051129;
57223
57925
  function cutPolylineByMercatorBounds(positions, options) {
57224
57926
  const {
57225
- size = 2,
57927
+ size: size2 = 2,
57226
57928
  startIndex = 0,
57227
57929
  endIndex = positions.length,
57228
57930
  normalize: normalize2 = true
57229
57931
  } = options || {};
57230
57932
  const newPositions = positions.slice(startIndex, endIndex);
57231
- wrapLongitudesForShortestPath(newPositions, size, 0, endIndex - startIndex);
57933
+ wrapLongitudesForShortestPath(newPositions, size2, 0, endIndex - startIndex);
57232
57934
  const parts = cutPolylineByGrid(newPositions, {
57233
- size,
57935
+ size: size2,
57234
57936
  broken: true,
57235
57937
  gridResolution: 360,
57236
57938
  gridOffset: [-180, -180]
57237
57939
  });
57238
57940
  if (normalize2) {
57239
57941
  for (const part of parts) {
57240
- shiftLongitudesIntoRange(part, size);
57942
+ shiftLongitudesIntoRange(part, size2);
57241
57943
  }
57242
57944
  }
57243
57945
  return parts;
57244
57946
  }
57245
57947
  function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
57246
57948
  const {
57247
- size = 2,
57949
+ size: size2 = 2,
57248
57950
  normalize: normalize2 = true,
57249
57951
  edgeTypes = false
57250
57952
  } = options || {};
@@ -57256,36 +57958,36 @@ function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
57256
57958
  for (let ringIndex = 0; ringIndex <= holeIndices.length; ringIndex++) {
57257
57959
  const srcEndIndex = holeIndices[ringIndex] || positions.length;
57258
57960
  const targetStartIndex = targetIndex;
57259
- const splitIndex = findSplitIndex(positions, size, srcStartIndex, srcEndIndex);
57961
+ const splitIndex = findSplitIndex(positions, size2, srcStartIndex, srcEndIndex);
57260
57962
  for (let i2 = splitIndex; i2 < srcEndIndex; i2++) {
57261
57963
  newPositions[targetIndex++] = positions[i2];
57262
57964
  }
57263
57965
  for (let i2 = srcStartIndex; i2 < splitIndex; i2++) {
57264
57966
  newPositions[targetIndex++] = positions[i2];
57265
57967
  }
57266
- wrapLongitudesForShortestPath(newPositions, size, targetStartIndex, targetIndex);
57267
- 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);
57268
57970
  srcStartIndex = srcEndIndex;
57269
57971
  newHoleIndices[ringIndex] = targetIndex;
57270
57972
  }
57271
57973
  newHoleIndices.pop();
57272
57974
  const parts = cutPolygonByGrid(newPositions, newHoleIndices, {
57273
- size,
57975
+ size: size2,
57274
57976
  gridResolution: 360,
57275
57977
  gridOffset: [-180, -180],
57276
57978
  edgeTypes
57277
57979
  });
57278
57980
  if (normalize2) {
57279
57981
  for (const part of parts) {
57280
- shiftLongitudesIntoRange(part.positions, size);
57982
+ shiftLongitudesIntoRange(part.positions, size2);
57281
57983
  }
57282
57984
  }
57283
57985
  return parts;
57284
57986
  }
57285
- function findSplitIndex(positions, size, startIndex, endIndex) {
57987
+ function findSplitIndex(positions, size2, startIndex, endIndex) {
57286
57988
  let maxLat = -1;
57287
57989
  let pointIndex = -1;
57288
- for (let i2 = startIndex + 1; i2 < endIndex; i2 += size) {
57990
+ for (let i2 = startIndex + 1; i2 < endIndex; i2 += size2) {
57289
57991
  const lat = Math.abs(positions[i2]);
57290
57992
  if (lat > maxLat) {
57291
57993
  maxLat = lat;
@@ -57294,11 +57996,11 @@ function findSplitIndex(positions, size, startIndex, endIndex) {
57294
57996
  }
57295
57997
  return pointIndex;
57296
57998
  }
57297
- function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
57999
+ function insertPoleVertices(positions, size2, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
57298
58000
  const firstLng = positions[startIndex];
57299
- const lastLng = positions[endIndex - size];
58001
+ const lastLng = positions[endIndex - size2];
57300
58002
  if (Math.abs(firstLng - lastLng) > 180) {
57301
- const p = getPointAtIndex(positions, 0, size, startIndex);
58003
+ const p = getPointAtIndex(positions, 0, size2, startIndex);
57302
58004
  p[0] += Math.round((lastLng - firstLng) / 360) * 360;
57303
58005
  push(positions, p);
57304
58006
  p[1] = Math.sign(p[1]) * maxLatitude;
@@ -57307,10 +58009,10 @@ function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude =
57307
58009
  push(positions, p);
57308
58010
  }
57309
58011
  }
57310
- function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
58012
+ function wrapLongitudesForShortestPath(positions, size2, startIndex, endIndex) {
57311
58013
  let prevLng = positions[0];
57312
58014
  let lng;
57313
- for (let i2 = startIndex; i2 < endIndex; i2 += size) {
58015
+ for (let i2 = startIndex; i2 < endIndex; i2 += size2) {
57314
58016
  lng = positions[i2];
57315
58017
  const delta = lng - prevLng;
57316
58018
  if (delta > 180 || delta < -180) {
@@ -57319,11 +58021,11 @@ function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
57319
58021
  positions[i2] = prevLng = lng;
57320
58022
  }
57321
58023
  }
57322
- function shiftLongitudesIntoRange(positions, size) {
58024
+ function shiftLongitudesIntoRange(positions, size2) {
57323
58025
  let refLng;
57324
- const pointCount = positions.length / size;
58026
+ const pointCount = positions.length / size2;
57325
58027
  for (let i2 = 0; i2 < pointCount; i2++) {
57326
- refLng = positions[i2 * size];
58028
+ refLng = positions[i2 * size2];
57327
58029
  if ((refLng + 180) % 360 !== 0) {
57328
58030
  break;
57329
58031
  }
@@ -57333,7 +58035,7 @@ function shiftLongitudesIntoRange(positions, size) {
57333
58035
  return;
57334
58036
  }
57335
58037
  for (let i2 = 0; i2 < pointCount; i2++) {
57336
- positions[i2 * size] += delta;
58038
+ positions[i2 * size2] += delta;
57337
58039
  }
57338
58040
  }
57339
58041
  class ColumnGeometry extends Geometry {
@@ -57732,14 +58434,14 @@ class GridCellLayer extends ColumnLayer {
57732
58434
  }
57733
58435
  _defineProperty(GridCellLayer, "layerName", "GridCellLayer");
57734
58436
  _defineProperty(GridCellLayer, "defaultProps", defaultProps$E);
57735
- function normalizePath(path, size, gridResolution, wrapLongitude) {
58437
+ function normalizePath(path, size2, gridResolution, wrapLongitude) {
57736
58438
  let flatPath;
57737
58439
  if (Array.isArray(path[0])) {
57738
- const length2 = path.length * size;
58440
+ const length2 = path.length * size2;
57739
58441
  flatPath = new Array(length2);
57740
58442
  for (let i2 = 0; i2 < path.length; i2++) {
57741
- for (let j = 0; j < size; j++) {
57742
- 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;
57743
58445
  }
57744
58446
  }
57745
58447
  } else {
@@ -57747,13 +58449,13 @@ function normalizePath(path, size, gridResolution, wrapLongitude) {
57747
58449
  }
57748
58450
  if (gridResolution) {
57749
58451
  return cutPolylineByGrid(flatPath, {
57750
- size,
58452
+ size: size2,
57751
58453
  gridResolution
57752
58454
  });
57753
58455
  }
57754
58456
  if (wrapLongitude) {
57755
58457
  return cutPolylineByMercatorBounds(flatPath, {
57756
- size
58458
+ size: size2
57757
58459
  });
57758
58460
  }
57759
58461
  return flatPath;
@@ -57796,11 +58498,11 @@ class PathTesselator extends Tesselator {
57796
58498
  }
57797
58499
  getGeometrySize(path) {
57798
58500
  if (isCut$1(path)) {
57799
- let size = 0;
58501
+ let size2 = 0;
57800
58502
  for (const subPath of path) {
57801
- size += this.getGeometrySize(subPath);
58503
+ size2 += this.getGeometrySize(subPath);
57802
58504
  }
57803
- return size;
58505
+ return size2;
57804
58506
  }
57805
58507
  const numPoints = this.getPathLength(path);
57806
58508
  if (numPoints < 2) {
@@ -58608,34 +59310,34 @@ function isNestedRingClosed(simplePolygon) {
58608
59310
  const p1 = simplePolygon[simplePolygon.length - 1];
58609
59311
  return p02[0] === p1[0] && p02[1] === p1[1] && p02[2] === p1[2];
58610
59312
  }
58611
- function isFlatRingClosed(positions, size, startIndex, endIndex) {
58612
- for (let i2 = 0; i2 < size; i2++) {
58613
- 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]) {
58614
59316
  return false;
58615
59317
  }
58616
59318
  }
58617
59319
  return true;
58618
59320
  }
58619
- function copyNestedRing(target, targetStartIndex, simplePolygon, size, windingDirection) {
59321
+ function copyNestedRing(target, targetStartIndex, simplePolygon, size2, windingDirection) {
58620
59322
  let targetIndex = targetStartIndex;
58621
59323
  const len2 = simplePolygon.length;
58622
59324
  for (let i2 = 0; i2 < len2; i2++) {
58623
- for (let j = 0; j < size; j++) {
59325
+ for (let j = 0; j < size2; j++) {
58624
59326
  target[targetIndex++] = simplePolygon[i2][j] || 0;
58625
59327
  }
58626
59328
  }
58627
59329
  if (!isNestedRingClosed(simplePolygon)) {
58628
- for (let j = 0; j < size; j++) {
59330
+ for (let j = 0; j < size2; j++) {
58629
59331
  target[targetIndex++] = simplePolygon[0][j] || 0;
58630
59332
  }
58631
59333
  }
58632
59334
  windingOptions.start = targetStartIndex;
58633
59335
  windingOptions.end = targetIndex;
58634
- windingOptions.size = size;
59336
+ windingOptions.size = size2;
58635
59337
  modifyPolygonWindingDirection(target, windingDirection, windingOptions);
58636
59338
  return targetIndex;
58637
59339
  }
58638
- function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex = 0, srcEndIndex, windingDirection) {
59340
+ function copyFlatRing(target, targetStartIndex, positions, size2, srcStartIndex = 0, srcEndIndex, windingDirection) {
58639
59341
  srcEndIndex = srcEndIndex || positions.length;
58640
59342
  const srcLength = srcEndIndex - srcStartIndex;
58641
59343
  if (srcLength <= 0) {
@@ -58645,14 +59347,14 @@ function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex =
58645
59347
  for (let i2 = 0; i2 < srcLength; i2++) {
58646
59348
  target[targetIndex++] = positions[srcStartIndex + i2];
58647
59349
  }
58648
- if (!isFlatRingClosed(positions, size, srcStartIndex, srcEndIndex)) {
58649
- for (let i2 = 0; i2 < size; i2++) {
59350
+ if (!isFlatRingClosed(positions, size2, srcStartIndex, srcEndIndex)) {
59351
+ for (let i2 = 0; i2 < size2; i2++) {
58650
59352
  target[targetIndex++] = positions[srcStartIndex + i2];
58651
59353
  }
58652
59354
  }
58653
59355
  windingOptions.start = targetStartIndex;
58654
59356
  windingOptions.end = targetIndex;
58655
- windingOptions.size = size;
59357
+ windingOptions.size = size2;
58656
59358
  modifyPolygonWindingDirection(target, windingDirection, windingOptions);
58657
59359
  return targetIndex;
58658
59360
  }
@@ -58783,11 +59485,11 @@ class PolygonTesselator extends Tesselator {
58783
59485
  }
58784
59486
  getGeometrySize(polygon2) {
58785
59487
  if (isCut(polygon2)) {
58786
- let size = 0;
59488
+ let size2 = 0;
58787
59489
  for (const subPolygon of polygon2) {
58788
- size += this.getGeometrySize(subPolygon);
59490
+ size2 += this.getGeometrySize(subPolygon);
58789
59491
  }
58790
- return size;
59492
+ return size2;
58791
59493
  }
58792
59494
  return getPositions(polygon2).length / this.positionSize;
58793
59495
  }
@@ -59658,10 +60360,10 @@ function requireTinySdf() {
59658
60360
  this.fontFamily = fontFamily || "sans-serif";
59659
60361
  this.fontWeight = fontWeight || "normal";
59660
60362
  this.radius = radius || 8;
59661
- var size = this.size = this.fontSize + this.buffer * 2;
59662
- var gridSize = size + this.buffer * 2;
60363
+ var size2 = this.size = this.fontSize + this.buffer * 2;
60364
+ var gridSize = size2 + this.buffer * 2;
59663
60365
  this.canvas = document.createElement("canvas");
59664
- this.canvas.width = this.canvas.height = size;
60366
+ this.canvas.width = this.canvas.height = size2;
59665
60367
  this.ctx = this.canvas.getContext("2d");
59666
60368
  this.ctx.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily;
59667
60369
  this.ctx.textAlign = "left";
@@ -59672,7 +60374,7 @@ function requireTinySdf() {
59672
60374
  this.z = new Float64Array(gridSize + 1);
59673
60375
  this.v = new Uint16Array(gridSize);
59674
60376
  this.useMetrics = this.ctx.measureText("A").actualBoundingBoxLeft !== void 0;
59675
- 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));
59676
60378
  }
59677
60379
  function prepareGrids(imgData, width2, height2, glyphWidth, glyphHeight, gridOuter, gridInner) {
59678
60380
  gridOuter.fill(INF, 0, width2 * height2);
@@ -59929,7 +60631,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
59929
60631
  const y = new Array(numCharacters);
59930
60632
  const rowWidth = new Array(numCharacters);
59931
60633
  const autoWrappingEnabled = (wordBreak === "break-word" || wordBreak === "break-all") && isFinite(maxWidth2) && maxWidth2 > 0;
59932
- const size = [0, 0];
60634
+ const size2 = [0, 0];
59933
60635
  const rowSize = [0, 0];
59934
60636
  let rowOffsetTop = 0;
59935
60637
  let lineStartIndex = 0;
@@ -59950,7 +60652,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
59950
60652
  rowWidth[j] = rowSize[0];
59951
60653
  }
59952
60654
  rowOffsetTop = rowOffsetTop + rowSize[1] * lineHeight;
59953
- size[0] = Math.max(size[0], rowSize[0]);
60655
+ size2[0] = Math.max(size2[0], rowSize[0]);
59954
60656
  }
59955
60657
  lineStartIndex = lineEndIndex;
59956
60658
  }
@@ -59961,12 +60663,12 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
59961
60663
  lineStartIndex++;
59962
60664
  }
59963
60665
  }
59964
- size[1] = rowOffsetTop;
60666
+ size2[1] = rowOffsetTop;
59965
60667
  return {
59966
60668
  x,
59967
60669
  y,
59968
60670
  rowWidth,
59969
- size
60671
+ size: size2
59970
60672
  };
59971
60673
  }
59972
60674
  function getTextFromBuffer({
@@ -61627,14 +62329,14 @@ class GPUGridAggregator {
61627
62329
  }
61628
62330
  static getCellData({
61629
62331
  countsData,
61630
- size = 1
62332
+ size: size2 = 1
61631
62333
  }) {
61632
62334
  const numCells = countsData.length / 4;
61633
- const cellWeights = new Float32Array(numCells * size);
62335
+ const cellWeights = new Float32Array(numCells * size2);
61634
62336
  const cellCounts = new Uint32Array(numCells);
61635
62337
  for (let i2 = 0; i2 < numCells; i2++) {
61636
- for (let sizeIndex = 0; sizeIndex < size; sizeIndex++) {
61637
- 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];
61638
62340
  }
61639
62341
  cellCounts[i2] = countsData[i2 * 4 + 3];
61640
62342
  }
@@ -62615,7 +63317,7 @@ function pointsToGridHashing(props, aggregationParams) {
62615
63317
  } = aggregationParams;
62616
63318
  const positions = attributes.positions.value;
62617
63319
  const {
62618
- size
63320
+ size: size2
62619
63321
  } = attributes.positions.getAccessor();
62620
63322
  const boundingBox = aggregationParams.boundingBox || getPositionBoundingBox(attributes.positions, numInstances);
62621
63323
  const offsets = aggregationParams.posOffset || [180, 90];
@@ -62640,9 +63342,9 @@ function pointsToGridHashing(props, aggregationParams) {
62640
63342
  const position2 = new Array(3);
62641
63343
  for (const pt of iterable) {
62642
63344
  objectInfo.index++;
62643
- position2[0] = positions[objectInfo.index * size];
62644
- position2[1] = positions[objectInfo.index * size + 1];
62645
- 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;
62646
63348
  const [x, y] = projectPoints ? viewport.project(position2) : position2;
62647
63349
  if (Number.isFinite(x) && Number.isFinite(y)) {
62648
63350
  const yIndex = Math.floor((y + offsets[1]) / gridOffset.yOffset);
@@ -62692,7 +63394,7 @@ function getGridLayerDataFromGridHash({
62692
63394
  function getPositionBoundingBox(positionAttribute, numInstance) {
62693
63395
  const positions = positionAttribute.value;
62694
63396
  const {
62695
- size
63397
+ size: size2
62696
63398
  } = positionAttribute.getAccessor();
62697
63399
  let yMin = Infinity;
62698
63400
  let yMax = -Infinity;
@@ -62701,8 +63403,8 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
62701
63403
  let y;
62702
63404
  let x;
62703
63405
  for (let i2 = 0; i2 < numInstance; i2++) {
62704
- x = positions[i2 * size];
62705
- y = positions[i2 * size + 1];
63406
+ x = positions[i2 * size2];
63407
+ y = positions[i2 * size2 + 1];
62706
63408
  if (Number.isFinite(x) && Number.isFinite(y)) {
62707
63409
  yMin = y < yMin ? y : yMin;
62708
63410
  yMax = y > yMax ? y : yMax;
@@ -63795,9 +64497,9 @@ function requireLong() {
63795
64497
  var radixToPower = fromNumber(pow_dbl(radix, 8));
63796
64498
  var result = ZERO2;
63797
64499
  for (var i2 = 0; i2 < str.length; i2 += 8) {
63798
- var size = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size), radix);
63799
- if (size < 8) {
63800
- 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));
63801
64503
  result = result.mul(power).add(fromNumber(value));
63802
64504
  } else {
63803
64505
  result = result.mul(radixToPower);
@@ -66715,10 +67417,10 @@ var libh3 = function(libh32) {
66715
67417
  function abortOnCannotGrowMemory(requestedSize) {
66716
67418
  abort("OOM");
66717
67419
  }
66718
- function emscripten_realloc_buffer(size) {
67420
+ function emscripten_realloc_buffer(size2) {
66719
67421
  try {
66720
- var newBuffer = new ArrayBuffer(size);
66721
- if (newBuffer.byteLength != size) {
67422
+ var newBuffer = new ArrayBuffer(size2);
67423
+ if (newBuffer.byteLength != size2) {
66722
67424
  return;
66723
67425
  }
66724
67426
  new Int8Array(newBuffer).set(HEAP8);
@@ -79652,8 +80354,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
79652
80354
  5125: Uint32Array,
79653
80355
  5126: Float32Array
79654
80356
  };
79655
- function getAccessorTypeFromSize(size) {
79656
- const type = TYPES[size - 1];
80357
+ function getAccessorTypeFromSize(size2) {
80358
+ const type = TYPES[size2 - 1];
79657
80359
  return type || TYPES[0];
79658
80360
  }
79659
80361
  function getComponentTypeFromArray(typedArray) {
@@ -80070,23 +80772,23 @@ class GLTFScenegraph {
80070
80772
  return attributeName;
80071
80773
  }
80072
80774
  }
80073
- _getAccessorMinMax(buffer, size) {
80775
+ _getAccessorMinMax(buffer, size2) {
80074
80776
  const result = {
80075
80777
  min: null,
80076
80778
  max: null
80077
80779
  };
80078
- if (buffer.length < size) {
80780
+ if (buffer.length < size2) {
80079
80781
  return result;
80080
80782
  }
80081
80783
  result.min = [];
80082
80784
  result.max = [];
80083
- const initValues = buffer.subarray(0, size);
80785
+ const initValues = buffer.subarray(0, size2);
80084
80786
  for (const value of initValues) {
80085
80787
  result.min.push(value);
80086
80788
  result.max.push(value);
80087
80789
  }
80088
- for (let index2 = size; index2 < buffer.length; index2 += size) {
80089
- 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++) {
80090
80792
  result.min[0 + componentIndex] = Math.min(result.min[0 + componentIndex], buffer[index2 + componentIndex]);
80091
80793
  result.max[0 + componentIndex] = Math.max(result.max[0 + componentIndex], buffer[index2 + componentIndex]);
80092
80794
  }
@@ -80116,9 +80818,9 @@ const DECODERS = {
80116
80818
  TRIANGLES: "meshopt_decodeIndexBuffer",
80117
80819
  INDICES: "meshopt_decodeIndexSequence"
80118
80820
  };
80119
- async function meshoptDecodeGltfBuffer(target, count2, size, source, mode, filter = "NONE") {
80821
+ async function meshoptDecodeGltfBuffer(target, count2, size2, source, mode, filter = "NONE") {
80120
80822
  const instance = await loadWasmInstance();
80121
- 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"]]);
80122
80824
  }
80123
80825
  let wasmPromise;
80124
80826
  async function loadWasmInstance() {
@@ -80149,18 +80851,18 @@ function unpack(data) {
80149
80851
  }
80150
80852
  return result.buffer.slice(0, write);
80151
80853
  }
80152
- function decode$5(instance, fun, target, count2, size, source, filter) {
80854
+ function decode$5(instance, fun, target, count2, size2, source, filter) {
80153
80855
  const sbrk = instance.exports.sbrk;
80154
80856
  const count4 = count2 + 3 & -4;
80155
- const tp = sbrk(count4 * size);
80857
+ const tp = sbrk(count4 * size2);
80156
80858
  const sp = sbrk(source.length);
80157
80859
  const heap = new Uint8Array(instance.exports.memory.buffer);
80158
80860
  heap.set(source, sp);
80159
- const res = fun(tp, count2, size, sp, source.length);
80861
+ const res = fun(tp, count2, size2, sp, source.length);
80160
80862
  if (res === 0 && filter) {
80161
- filter(tp, count4, size);
80863
+ filter(tp, count4, size2);
80162
80864
  }
80163
- target.set(heap.subarray(tp, tp + count2 * size));
80865
+ target.set(heap.subarray(tp, tp + count2 * size2));
80164
80866
  sbrk(tp - sbrk(0));
80165
80867
  if (res !== 0) {
80166
80868
  throw new Error("Malformed buffer data: ".concat(res));
@@ -80842,11 +81544,11 @@ class DracoParser {
80842
81544
  loaderAttribute.name = attributeName;
80843
81545
  const {
80844
81546
  value,
80845
- size
81547
+ size: size2
80846
81548
  } = this._getAttributeValues(dracoGeometry, loaderAttribute);
80847
81549
  attributes[attributeName] = {
80848
81550
  value,
80849
- size,
81551
+ size: size2,
80850
81552
  byteOffset: loaderAttribute.byte_offset,
80851
81553
  byteStride: loaderAttribute.byte_stride,
80852
81554
  normalized: loaderAttribute.normalized
@@ -81115,36 +81817,36 @@ function getGLTFAccessors(attributes) {
81115
81817
  function getGLTFAccessor(attribute) {
81116
81818
  const {
81117
81819
  buffer,
81118
- size,
81820
+ size: size2,
81119
81821
  count: count2
81120
81822
  } = getAccessorData(attribute);
81121
81823
  const glTFAccessor = {
81122
81824
  value: buffer,
81123
- size,
81825
+ size: size2,
81124
81826
  byteOffset: 0,
81125
81827
  count: count2,
81126
- type: getAccessorTypeFromSize(size),
81828
+ type: getAccessorTypeFromSize(size2),
81127
81829
  componentType: getComponentTypeFromArray(buffer)
81128
81830
  };
81129
81831
  return glTFAccessor;
81130
81832
  }
81131
81833
  function getAccessorData(attribute) {
81132
81834
  let buffer = attribute;
81133
- let size = 1;
81835
+ let size2 = 1;
81134
81836
  let count2 = 0;
81135
81837
  if (attribute && attribute.value) {
81136
81838
  buffer = attribute.value;
81137
- size = attribute.size || 1;
81839
+ size2 = attribute.size || 1;
81138
81840
  }
81139
81841
  if (buffer) {
81140
81842
  if (!ArrayBuffer.isView(buffer)) {
81141
81843
  buffer = toTypedArray(buffer, Float32Array);
81142
81844
  }
81143
- count2 = buffer.length / size;
81845
+ count2 = buffer.length / size2;
81144
81846
  }
81145
81847
  return {
81146
81848
  buffer,
81147
- size,
81849
+ size: size2,
81148
81850
  count: count2
81149
81851
  };
81150
81852
  }
@@ -83387,8 +84089,8 @@ function getObbSize(halfAxes) {
83387
84089
  const axeY = halfAxes.getColumn(1);
83388
84090
  const axeZ = halfAxes.getColumn(2);
83389
84091
  const farthestVertex = scratchVector$1.add(axeY).add(axeZ);
83390
- const size = farthestVertex.len();
83391
- return size;
84092
+ const size2 = farthestVertex.len();
84093
+ return size2;
83392
84094
  }
83393
84095
  const TILE_CONTENT_STATE = {
83394
84096
  UNLOADED: 0,
@@ -85389,15 +86091,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length
85389
86091
  } = tile3DAccessor;
85390
86092
  assert$b(tile3DAccessor.componentType);
85391
86093
  const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
85392
- const size = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
86094
+ const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
85393
86095
  const unpacker = UNPACKER[tile3DAccessor.type];
85394
86096
  const packer = PACKER[tile3DAccessor.type];
85395
86097
  byteOffset += tile3DAccessor.byteOffset;
85396
- const values2 = GLType.createTypedArray(type, buffer, byteOffset, size * length2);
86098
+ const values2 = GLType.createTypedArray(type, buffer, byteOffset, size2 * length2);
85397
86099
  return {
85398
86100
  values: values2,
85399
86101
  type,
85400
- size,
86102
+ size: size2,
85401
86103
  unpacker,
85402
86104
  packer
85403
86105
  };
@@ -103811,8 +104513,8 @@ function fitExtent(projection2, extent2, object2) {
103811
104513
  if (clip2 != null) projection2.clipExtent(clip2);
103812
104514
  return projection2.scale(k * 150).translate([x, y]);
103813
104515
  }
103814
- function fitSize(projection2, size, object2) {
103815
- return fitExtent(projection2, [[0, 0], size], object2);
104516
+ function fitSize(projection2, size2, object2) {
104517
+ return fitExtent(projection2, [[0, 0], size2], object2);
103816
104518
  }
103817
104519
  var maxDepth = 16, cosMinDistance = cos(30 * radians);
103818
104520
  function resample(project2, delta2) {
@@ -103938,8 +104640,8 @@ function projectionMutator(projectAt) {
103938
104640
  projection2.fitExtent = function(extent2, object2) {
103939
104641
  return fitExtent(projection2, extent2, object2);
103940
104642
  };
103941
- projection2.fitSize = function(size, object2) {
103942
- return fitSize(projection2, size, object2);
104643
+ projection2.fitSize = function(size2, object2) {
104644
+ return fitSize(projection2, size2, object2);
103943
104645
  };
103944
104646
  function recenter() {
103945
104647
  projectRotate = compose(rotate2 = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project2);
@@ -104060,8 +104762,8 @@ function albersUsa() {
104060
104762
  albersUsa2.fitExtent = function(extent2, object2) {
104061
104763
  return fitExtent(albersUsa2, extent2, object2);
104062
104764
  };
104063
- albersUsa2.fitSize = function(size, object2) {
104064
- return fitSize(albersUsa2, size, object2);
104765
+ albersUsa2.fitSize = function(size2, object2) {
104766
+ return fitSize(albersUsa2, size2, object2);
104065
104767
  };
104066
104768
  function reset() {
104067
104769
  cache2 = cacheStream = null;
@@ -104224,8 +104926,8 @@ function identity() {
104224
104926
  fitExtent: function(extent2, object2) {
104225
104927
  return fitExtent(projection2, extent2, object2);
104226
104928
  },
104227
- fitSize: function(size, object2) {
104228
- return fitSize(projection2, size, object2);
104929
+ fitSize: function(size2, object2) {
104930
+ return fitSize(projection2, size2, object2);
104229
104931
  }
104230
104932
  };
104231
104933
  }
@@ -104843,18 +105545,18 @@ function requirePolygonClipping_umd() {
104843
105545
  if (presort === void 0) {
104844
105546
  presort = false;
104845
105547
  }
104846
- var size = keys2.length;
105548
+ var size2 = keys2.length;
104847
105549
  var comparator = this._comparator;
104848
- if (presort) sort(keys2, values2, 0, size - 1, comparator);
105550
+ if (presort) sort(keys2, values2, 0, size2 - 1, comparator);
104849
105551
  if (this._root === null) {
104850
- this._root = loadRecursive(keys2, values2, 0, size);
104851
- this._size = size;
105552
+ this._root = loadRecursive(keys2, values2, 0, size2);
105553
+ this._size = size2;
104852
105554
  } else {
104853
105555
  var mergedList = mergeLists(this.toList(), createList(keys2, values2), comparator);
104854
- size = this._size + size;
105556
+ size2 = this._size + size2;
104855
105557
  this._root = sortedListToBST({
104856
105558
  head: mergedList
104857
- }, 0, size);
105559
+ }, 0, size2);
104858
105560
  }
104859
105561
  return this;
104860
105562
  };
@@ -104904,9 +105606,9 @@ function requirePolygonClipping_umd() {
104904
105606
  }()
104905
105607
  );
104906
105608
  function loadRecursive(keys2, values2, start, end) {
104907
- var size = end - start;
104908
- if (size > 0) {
104909
- var middle = start + Math.floor(size / 2);
105609
+ var size2 = end - start;
105610
+ if (size2 > 0) {
105611
+ var middle = start + Math.floor(size2 / 2);
104910
105612
  var key = keys2[middle];
104911
105613
  var data = values2[middle];
104912
105614
  var node2 = new Node2(key, data);
@@ -104946,9 +105648,9 @@ function requirePolygonClipping_umd() {
104946
105648
  return head.next;
104947
105649
  }
104948
105650
  function sortedListToBST(list, start, end) {
104949
- var size = end - start;
104950
- if (size > 0) {
104951
- var middle = start + Math.floor(size / 2);
105651
+ var size2 = end - start;
105652
+ if (size2 > 0) {
105653
+ var middle = start + Math.floor(size2 / 2);
104952
105654
  var left = sortedListToBST(list, start, middle);
104953
105655
  var root2 = list.head;
104954
105656
  root2.left = left;
@@ -116010,19 +116712,19 @@ function requireExtrudeMode() {
116010
116712
  if (editHandle) {
116011
116713
  var featureIndex = editHandle.properties.featureIndex;
116012
116714
  var positionIndexes = editHandle.properties.positionIndexes;
116013
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116014
- positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size) : positionIndexes;
116015
- 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);
116016
116718
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
116017
116719
  if (p1 && p2) {
116018
116720
  var _generatePointsParall = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall2 = _slicedToArray(_generatePointsParall, 2), p3 = _generatePointsParall2[0], p4 = _generatePointsParall2[1];
116019
- 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();
116020
116722
  props.onEdit({
116021
116723
  updatedData,
116022
116724
  editType: "extruding",
116023
116725
  editContext: {
116024
116726
  featureIndexes: [featureIndex],
116025
- positionIndexes: this.nextPositionIndexes(positionIndexes, size),
116727
+ positionIndexes: this.nextPositionIndexes(positionIndexes, size2),
116026
116728
  position: p3
116027
116729
  }
116028
116730
  });
@@ -116037,15 +116739,15 @@ function requireExtrudeMode() {
116037
116739
  var editHandle = (0, _utils.getPickedIntermediateEditHandle)(event.picks);
116038
116740
  if (selectedFeatureIndexes.length && editHandle) {
116039
116741
  var _editHandle$propertie = editHandle.properties, positionIndexes = _editHandle$propertie.positionIndexes, featureIndex = _editHandle$propertie.featureIndex;
116040
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116041
- 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);
116042
116744
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
116043
116745
  if (p1 && p2) {
116044
116746
  var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data);
116045
- if (!this.isOrthogonal(positionIndexes, featureIndex, size, props.data)) {
116747
+ if (!this.isOrthogonal(positionIndexes, featureIndex, size2, props.data)) {
116046
116748
  updatedData = updatedData.addPosition(featureIndex, positionIndexes, p2);
116047
116749
  }
116048
- if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size), featureIndex, size, props.data)) {
116750
+ if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size2), featureIndex, size2, props.data)) {
116049
116751
  updatedData = updatedData.addPosition(featureIndex, positionIndexes, p1);
116050
116752
  this.isPointAdded = true;
116051
116753
  }
@@ -116069,13 +116771,13 @@ function requireExtrudeMode() {
116069
116771
  if (selectedFeatureIndexes.length && editHandle) {
116070
116772
  var featureIndex = editHandle.properties.featureIndex;
116071
116773
  var positionIndexes = editHandle.properties.positionIndexes;
116072
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
116073
- positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size) : positionIndexes;
116074
- 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);
116075
116777
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
116076
116778
  if (p1 && p2) {
116077
116779
  var _generatePointsParall3 = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall4 = _slicedToArray(_generatePointsParall3, 2), p3 = _generatePointsParall4[0], p4 = _generatePointsParall4[1];
116078
- 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();
116079
116781
  props.onEdit({
116080
116782
  updatedData,
116081
116783
  editType: "extruded",
@@ -116093,23 +116795,23 @@ function requireExtrudeMode() {
116093
116795
  key: "coordinatesSize",
116094
116796
  value: function coordinatesSize(positionIndexes, featureIndex, _ref) {
116095
116797
  var features = _ref.features;
116096
- var size = 0;
116798
+ var size2 = 0;
116097
116799
  if (Array.isArray(positionIndexes)) {
116098
116800
  var feature2 = features[featureIndex];
116099
116801
  var coordinates2 = feature2.geometry.coordinates;
116100
116802
  if (positionIndexes.length === 3) {
116101
116803
  var _positionIndexes = _slicedToArray(positionIndexes, 2), a2 = _positionIndexes[0], b = _positionIndexes[1];
116102
116804
  if (coordinates2.length && coordinates2[a2].length) {
116103
- size = coordinates2[a2][b].length;
116805
+ size2 = coordinates2[a2][b].length;
116104
116806
  }
116105
116807
  } else {
116106
116808
  var _positionIndexes2 = _slicedToArray(positionIndexes, 1), _b2 = _positionIndexes2[0];
116107
116809
  if (coordinates2.length && coordinates2[_b2].length) {
116108
- size = coordinates2[_b2].length;
116810
+ size2 = coordinates2[_b2].length;
116109
116811
  }
116110
116812
  }
116111
116813
  }
116112
- return size;
116814
+ return size2;
116113
116815
  }
116114
116816
  }, {
116115
116817
  key: "getBearing",
@@ -116122,15 +116824,15 @@ function requireExtrudeMode() {
116122
116824
  }
116123
116825
  }, {
116124
116826
  key: "isOrthogonal",
116125
- value: function isOrthogonal(positionIndexes, featureIndex, size, features) {
116827
+ value: function isOrthogonal(positionIndexes, featureIndex, size2, features) {
116126
116828
  if (!Array.isArray(positionIndexes)) {
116127
116829
  return false;
116128
116830
  }
116129
- if (positionIndexes[positionIndexes.length - 1] === size - 1) {
116831
+ if (positionIndexes[positionIndexes.length - 1] === size2 - 1) {
116130
116832
  positionIndexes[positionIndexes.length - 1] = 0;
116131
116833
  }
116132
- var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, features);
116133
- 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);
116134
116836
  var currentPoint = this.getPointForPositionIndexes(positionIndexes, featureIndex, features);
116135
116837
  var prevAngle = this.getBearing(currentPoint, prevPoint);
116136
116838
  var nextAngle = this.getBearing(currentPoint, nextPoint);
@@ -116138,25 +116840,25 @@ function requireExtrudeMode() {
116138
116840
  }
116139
116841
  }, {
116140
116842
  key: "nextPositionIndexes",
116141
- value: function nextPositionIndexes(positionIndexes, size) {
116843
+ value: function nextPositionIndexes(positionIndexes, size2) {
116142
116844
  if (!Array.isArray(positionIndexes)) {
116143
116845
  return [];
116144
116846
  }
116145
116847
  var next2 = _toConsumableArray(positionIndexes);
116146
116848
  if (next2.length) {
116147
- 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;
116148
116850
  }
116149
116851
  return next2;
116150
116852
  }
116151
116853
  }, {
116152
116854
  key: "prevPositionIndexes",
116153
- value: function prevPositionIndexes(positionIndexes, size) {
116855
+ value: function prevPositionIndexes(positionIndexes, size2) {
116154
116856
  if (!Array.isArray(positionIndexes)) {
116155
116857
  return [];
116156
116858
  }
116157
116859
  var prev2 = _toConsumableArray(positionIndexes);
116158
116860
  if (prev2.length) {
116159
- 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;
116160
116862
  }
116161
116863
  return prev2;
116162
116864
  }
@@ -128083,22 +128785,22 @@ function addDecoder(cases, importFn) {
128083
128785
  }
128084
128786
  cases.forEach((c) => registry$1.set(c, importFn));
128085
128787
  }
128086
- addDecoder([void 0, 1], () => import("./raw-DvssO6aO.js").then((m) => m.default));
128087
- addDecoder(5, () => import("./lzw-DJfAqgfY.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));
128088
128790
  addDecoder(6, () => {
128089
128791
  throw new Error("old style JPEG compression is not supported.");
128090
128792
  });
128091
- addDecoder(7, () => import("./jpeg-C7ecuzEn.js").then((m) => m.default));
128092
- addDecoder([8, 32946], () => import("./deflate-CyL4JI03.js").then((m) => m.default));
128093
- addDecoder(32773, () => import("./packbits-D614rb-x.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));
128094
128796
  addDecoder(
128095
128797
  34887,
128096
- () => import("./lerc-ZGPFp1Hj.js").then(async (m) => {
128798
+ () => import("./lerc-Bp3OK9tj.js").then(async (m) => {
128097
128799
  await m.zstd.init();
128098
128800
  return m;
128099
128801
  }).then((m) => m.default)
128100
128802
  );
128101
- addDecoder(50001, () => import("./webimage-DJ4Hxbhz.js").then((m) => m.default));
128803
+ addDecoder(50001, () => import("./webimage-DOxsTBut.js").then((m) => m.default));
128102
128804
  function decodeRowAcc(row, stride) {
128103
128805
  let length2 = row.length - stride;
128104
128806
  let offset2 = 0;
@@ -131120,8 +131822,8 @@ class ZodSet extends ZodType {
131120
131822
  maxSize: { value: maxSize, message: errorUtil.toString(message) }
131121
131823
  });
131122
131824
  }
131123
- size(size, message) {
131124
- return this.min(size, message).max(size, message);
131825
+ size(size2, message) {
131826
+ return this.min(size2, message).max(size2, message);
131125
131827
  }
131126
131828
  nonempty(message) {
131127
131829
  return this.min(1, message);
@@ -132914,10 +133616,10 @@ const putShortMSB = (s2, b) => {
132914
133616
  s2.pending_buf[s2.pending++] = b >>> 8 & 255;
132915
133617
  s2.pending_buf[s2.pending++] = b & 255;
132916
133618
  };
132917
- const read_buf = (strm, buf, start, size) => {
133619
+ const read_buf = (strm, buf, start, size2) => {
132918
133620
  let len2 = strm.avail_in;
132919
- if (len2 > size) {
132920
- len2 = size;
133621
+ if (len2 > size2) {
133622
+ len2 = size2;
132921
133623
  }
132922
133624
  if (len2 === 0) {
132923
133625
  return 0;
@@ -139498,9 +140200,9 @@ const SI_PREFIXES = [
139498
140200
  { symbol: "z", exponent: -21 },
139499
140201
  { symbol: "y", exponent: -24 }
139500
140202
  ];
139501
- function sizeToMeters(size, unit) {
140203
+ function sizeToMeters(size2, unit) {
139502
140204
  if (!unit || unit === "m") {
139503
- return size;
140205
+ return size2;
139504
140206
  }
139505
140207
  if (unit.length > 1) {
139506
140208
  let unitPrefix = unit.substring(0, unit.length - 1);
@@ -139509,7 +140211,7 @@ function sizeToMeters(size, unit) {
139509
140211
  }
139510
140212
  const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
139511
140213
  if (unitObj) {
139512
- return size * 10 ** unitObj.exponent;
140214
+ return size2 * 10 ** unitObj.exponent;
139513
140215
  }
139514
140216
  }
139515
140217
  throw new Error("Received unknown unit");
@@ -140413,7 +141115,7 @@ const defaultProps$2$1 = {
140413
141115
  };
140414
141116
  const ScaleBarLayer = class extends CompositeLayer {
140415
141117
  renderLayers() {
140416
- 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;
140417
141119
  const boundingBox = makeBoundingBox(viewState);
140418
141120
  const { zoom } = viewState;
140419
141121
  const viewLength = boundingBox[2][0] - boundingBox[0][0];
@@ -140423,10 +141125,10 @@ const ScaleBarLayer = class extends CompositeLayer {
140423
141125
  (boundingBox[2][1] - boundingBox[0][1]) * 7e-3
140424
141126
  );
140425
141127
  let adjustedBarLength = barLength;
140426
- let displayNumber = (barLength * size).toPrecision(5);
141128
+ let displayNumber = (barLength * size2).toPrecision(5);
140427
141129
  let displayUnit = unit;
140428
141130
  if (snap) {
140429
- const meterSize = sizeToMeters(size, unit);
141131
+ const meterSize = sizeToMeters(size2, unit);
140430
141132
  const numUnits = barLength * meterSize;
140431
141133
  const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
140432
141134
  adjustedBarLength = snappedOrigUnits / meterSize;