@vitessce/scatterplot-embedding 3.9.2 → 3.9.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -529,9 +529,9 @@ function mapCacheHas(key) {
529
529
  return getMapData(this, key).has(key);
530
530
  }
531
531
  function mapCacheSet(key, value) {
532
- var data = getMapData(this, key), size = data.size;
532
+ var data = getMapData(this, key), size2 = data.size;
533
533
  data.set(key, value);
534
- this.size += data.size == size ? 0 : 1;
534
+ this.size += data.size == size2 ? 0 : 1;
535
535
  return this;
536
536
  }
537
537
  function MapCache(entries) {
@@ -1060,7 +1060,7 @@ function baseIsEqual(value, other, bitmask, customizer, stack2) {
1060
1060
  }
1061
1061
  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack2);
1062
1062
  }
1063
- var now$1 = function() {
1063
+ var now$2 = function() {
1064
1064
  return root$1.Date.now();
1065
1065
  };
1066
1066
  var FUNC_ERROR_TEXT = "Expected a function";
@@ -1098,7 +1098,7 @@ function debounce$1(func, wait, options) {
1098
1098
  return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1099
1099
  }
1100
1100
  function timerExpired() {
1101
- var time = now$1();
1101
+ var time = now$2();
1102
1102
  if (shouldInvoke(time)) {
1103
1103
  return trailingEdge(time);
1104
1104
  }
@@ -1120,10 +1120,10 @@ function debounce$1(func, wait, options) {
1120
1120
  lastArgs = lastCallTime = lastThis = timerId = void 0;
1121
1121
  }
1122
1122
  function flush() {
1123
- return timerId === void 0 ? result : trailingEdge(now$1());
1123
+ return timerId === void 0 ? result : trailingEdge(now$2());
1124
1124
  }
1125
1125
  function debounced() {
1126
- var time = now$1(), isInvoking = shouldInvoke(time);
1126
+ var time = now$2(), isInvoking = shouldInvoke(time);
1127
1127
  lastArgs = arguments;
1128
1128
  lastThis = this;
1129
1129
  lastCallTime = time;
@@ -1146,7 +1146,7 @@ function debounce$1(func, wait, options) {
1146
1146
  debounced.flush = flush;
1147
1147
  return debounced;
1148
1148
  }
1149
- function isEqual$1(value, other) {
1149
+ function isEqual$2(value, other) {
1150
1150
  return baseIsEqual(value, other);
1151
1151
  }
1152
1152
  function isNil(value) {
@@ -6013,8 +6013,8 @@ class ZodSet extends ZodType {
6013
6013
  maxSize: { value: maxSize, message: errorUtil.toString(message) }
6014
6014
  });
6015
6015
  }
6016
- size(size, message) {
6017
- return this.min(size, message).max(size, message);
6016
+ size(size2, message) {
6017
+ return this.min(size2, message).max(size2, message);
6018
6018
  }
6019
6019
  nonempty(message) {
6020
6020
  return this.min(1, message);
@@ -9628,6 +9628,7 @@ const ViewType$1 = {
9628
9628
  OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
9629
9629
  FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
9630
9630
  BIOMARKER_SELECT: "biomarkerSelect",
9631
+ BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
9631
9632
  COMPARATIVE_HEADING: "comparativeHeading",
9632
9633
  LINK_CONTROLLER: "linkController",
9633
9634
  NEUROGLANCER: "neuroglancer",
@@ -10825,6 +10826,17 @@ const COMPONENT_COORDINATION_TYPES = {
10825
10826
  CoordinationType$1.OBS_SET_FILTER
10826
10827
  // TODO: create coordination types for internal state of the biomarker selection view?
10827
10828
  ],
10829
+ [ViewType$1.BIOMARKER_SELECT_ALT]: [
10830
+ CoordinationType$1.DATASET,
10831
+ CoordinationType$1.OBS_TYPE,
10832
+ CoordinationType$1.SAMPLE_TYPE,
10833
+ CoordinationType$1.FEATURE_SELECTION,
10834
+ CoordinationType$1.SAMPLE_SET_SELECTION,
10835
+ CoordinationType$1.SAMPLE_SET_FILTER,
10836
+ CoordinationType$1.OBS_SET_SELECTION,
10837
+ CoordinationType$1.OBS_SET_FILTER
10838
+ // TODO: create coordination types for internal state of the biomarker selection view?
10839
+ ],
10828
10840
  [ViewType$1.COMPARATIVE_HEADING]: [
10829
10841
  CoordinationType$1.DATASET,
10830
10842
  CoordinationType$1.OBS_TYPE,
@@ -12027,11 +12039,11 @@ function requireTinycolor() {
12027
12039
  var bestColor = null;
12028
12040
  var bestScore = 0;
12029
12041
  var readability;
12030
- var includeFallbackColors, level, size;
12042
+ var includeFallbackColors, level, size2;
12031
12043
  args = args || {};
12032
12044
  includeFallbackColors = args.includeFallbackColors;
12033
12045
  level = args.level;
12034
- size = args.size;
12046
+ size2 = args.size;
12035
12047
  for (var i2 = 0; i2 < colorList.length; i2++) {
12036
12048
  readability = tinycolor2.readability(baseColor, colorList[i2]);
12037
12049
  if (readability > bestScore) {
@@ -12039,7 +12051,7 @@ function requireTinycolor() {
12039
12051
  bestColor = tinycolor2(colorList[i2]);
12040
12052
  }
12041
12053
  }
12042
- if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size }) || !includeFallbackColors) {
12054
+ if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size2 }) || !includeFallbackColors) {
12043
12055
  return bestColor;
12044
12056
  } else {
12045
12057
  args.includeFallbackColors = false;
@@ -12343,17 +12355,17 @@ function requireTinycolor() {
12343
12355
  return false;
12344
12356
  }
12345
12357
  function validateWCAG2Parms(parms) {
12346
- var level, size;
12358
+ var level, size2;
12347
12359
  parms = parms || { "level": "AA", "size": "small" };
12348
12360
  level = (parms.level || "AA").toUpperCase();
12349
- size = (parms.size || "small").toLowerCase();
12361
+ size2 = (parms.size || "small").toLowerCase();
12350
12362
  if (level !== "AA" && level !== "AAA") {
12351
12363
  level = "AA";
12352
12364
  }
12353
- if (size !== "small" && size !== "large") {
12354
- size = "small";
12365
+ if (size2 !== "small" && size2 !== "large") {
12366
+ size2 = "small";
12355
12367
  }
12356
- return { "level": level, "size": size };
12368
+ return { "level": level, "size": size2 };
12357
12369
  }
12358
12370
  if (module2.exports) {
12359
12371
  module2.exports = tinycolor2;
@@ -12471,7 +12483,7 @@ function treeToCellColorsBySetNames(currTree, selectedNamePaths, cellSetColor, t
12471
12483
  const node2 = treeFindNodeByNamePath(currTree, setNamePath);
12472
12484
  if (node2) {
12473
12485
  const nodeSet = nodeToSet(node2);
12474
- const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$1(d.path, setNamePath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
12486
+ const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$2(d.path, setNamePath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
12475
12487
  cellColorsArray = [
12476
12488
  ...cellColorsArray,
12477
12489
  ...nodeSet.map(([cellId, prob]) => [
@@ -12512,7 +12524,7 @@ function treeToCellPolygonsBySetNames(currTree, obsIndex, obsEmbedding, selected
12512
12524
  const node2 = treeFindNodeByNamePath(currTree, setNamePath);
12513
12525
  if (node2) {
12514
12526
  const nodeSet = nodeToSet(node2);
12515
- const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$1(d.path, setNamePath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
12527
+ const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$2(d.path, setNamePath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
12516
12528
  const cellPositions = nodeSet.map(([cellId]) => {
12517
12529
  const cellIdx = obsIndexMap.get(cellId);
12518
12530
  return [
@@ -13166,41 +13178,41 @@ function requireJson2csv_umd() {
13166
13178
  Buffer3.prototype.__proto__ = Uint8Array.prototype;
13167
13179
  Buffer3.__proto__ = Uint8Array;
13168
13180
  }
13169
- function assertSize(size) {
13170
- if (typeof size !== "number") {
13181
+ function assertSize(size2) {
13182
+ if (typeof size2 !== "number") {
13171
13183
  throw new TypeError('"size" argument must be a number');
13172
- } else if (size < 0) {
13184
+ } else if (size2 < 0) {
13173
13185
  throw new RangeError('"size" argument must not be negative');
13174
13186
  }
13175
13187
  }
13176
- function alloc2(that, size, fill, encoding) {
13177
- assertSize(size);
13178
- if (size <= 0) {
13179
- return createBuffer(that, size);
13188
+ function alloc2(that, size2, fill, encoding) {
13189
+ assertSize(size2);
13190
+ if (size2 <= 0) {
13191
+ return createBuffer(that, size2);
13180
13192
  }
13181
13193
  if (fill !== void 0) {
13182
- return typeof encoding === "string" ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill);
13194
+ return typeof encoding === "string" ? createBuffer(that, size2).fill(fill, encoding) : createBuffer(that, size2).fill(fill);
13183
13195
  }
13184
- return createBuffer(that, size);
13196
+ return createBuffer(that, size2);
13185
13197
  }
13186
- Buffer3.alloc = function(size, fill, encoding) {
13187
- return alloc2(null, size, fill, encoding);
13198
+ Buffer3.alloc = function(size2, fill, encoding) {
13199
+ return alloc2(null, size2, fill, encoding);
13188
13200
  };
13189
- function allocUnsafe(that, size) {
13190
- assertSize(size);
13191
- that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
13201
+ function allocUnsafe(that, size2) {
13202
+ assertSize(size2);
13203
+ that = createBuffer(that, size2 < 0 ? 0 : checked(size2) | 0);
13192
13204
  if (!Buffer3.TYPED_ARRAY_SUPPORT) {
13193
- for (var i2 = 0; i2 < size; ++i2) {
13205
+ for (var i2 = 0; i2 < size2; ++i2) {
13194
13206
  that[i2] = 0;
13195
13207
  }
13196
13208
  }
13197
13209
  return that;
13198
13210
  }
13199
- Buffer3.allocUnsafe = function(size) {
13200
- return allocUnsafe(null, size);
13211
+ Buffer3.allocUnsafe = function(size2) {
13212
+ return allocUnsafe(null, size2);
13201
13213
  };
13202
- Buffer3.allocUnsafeSlow = function(size) {
13203
- return allocUnsafe(null, size);
13214
+ Buffer3.allocUnsafeSlow = function(size2) {
13215
+ return allocUnsafe(null, size2);
13204
13216
  };
13205
13217
  function fromString(that, string2, encoding) {
13206
13218
  if (typeof encoding !== "string" || encoding === "") {
@@ -15090,11 +15102,11 @@ function requireJson2csv_umd() {
15090
15102
  var end = charStr.length - 1;
15091
15103
  var charCode = charStr.charCodeAt(end);
15092
15104
  if (charCode >= 55296 && charCode <= 56319) {
15093
- var size = this.surrogateSize;
15094
- this.charLength += size;
15095
- this.charReceived += size;
15096
- this.charBuffer.copy(this.charBuffer, size, 0, size);
15097
- buffer.copy(this.charBuffer, 0, 0, size);
15105
+ var size2 = this.surrogateSize;
15106
+ this.charLength += size2;
15107
+ this.charReceived += size2;
15108
+ this.charBuffer.copy(this.charBuffer, size2, 0, size2);
15109
+ buffer.copy(this.charBuffer, 0, 0, size2);
15098
15110
  return charStr.substring(0, end);
15099
15111
  }
15100
15112
  return charStr;
@@ -17041,27 +17053,27 @@ function requireJson2csv_umd() {
17041
17053
  this.stringBuffer[this.stringBufferOffset++] = char2;
17042
17054
  };
17043
17055
  proto.appendStringBuf = function(buf, start, end) {
17044
- var size = buf.length;
17056
+ var size2 = buf.length;
17045
17057
  if (typeof start === "number") {
17046
17058
  if (typeof end === "number") {
17047
17059
  if (end < 0) {
17048
- size = buf.length - start + end;
17060
+ size2 = buf.length - start + end;
17049
17061
  } else {
17050
- size = end - start;
17062
+ size2 = end - start;
17051
17063
  }
17052
17064
  } else {
17053
- size = buf.length - start;
17065
+ size2 = buf.length - start;
17054
17066
  }
17055
17067
  }
17056
- if (size < 0) {
17057
- size = 0;
17068
+ if (size2 < 0) {
17069
+ size2 = 0;
17058
17070
  }
17059
- if (this.stringBufferOffset + size > STRING_BUFFER_SIZE) {
17071
+ if (this.stringBufferOffset + size2 > STRING_BUFFER_SIZE) {
17060
17072
  this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
17061
17073
  this.stringBufferOffset = 0;
17062
17074
  }
17063
17075
  buf.copy(this.stringBuffer, this.stringBufferOffset, start, end);
17064
- this.stringBufferOffset += size;
17076
+ this.stringBufferOffset += size2;
17065
17077
  };
17066
17078
  proto.write = function(buffer) {
17067
17079
  if (typeof buffer === "string") buffer = new Buffer3(buffer);
@@ -17911,9 +17923,9 @@ function stratifyArrays(sampleEdges, sampleIdToObsIdsMap, sampleSets, sampleSetS
17911
17923
  sampleSetKeys.forEach((sampleSetKey) => {
17912
17924
  var _a3, _b2;
17913
17925
  result.get(cellSetKey).set(sampleSetKey, new InternMap([], JSON.stringify));
17914
- const sampleIdsInSampleSet = (_a3 = sampleSetInfo && sampleSetKey ? sampleSetInfo == null ? void 0 : sampleSetInfo.find((n2) => isEqual$1(n2.path, sampleSetKey)) : null) == null ? void 0 : _a3.ids;
17926
+ const sampleIdsInSampleSet = (_a3 = sampleSetInfo && sampleSetKey ? sampleSetInfo == null ? void 0 : sampleSetInfo.find((n2) => isEqual$2(n2.path, sampleSetKey)) : null) == null ? void 0 : _a3.ids;
17915
17927
  const obsIdsInSampleSet = sampleIdsInSampleSet ? sampleIdsInSampleSet.flatMap((sampleId) => (sampleIdToObsIdsMap == null ? void 0 : sampleIdToObsIdsMap.get(sampleId)) || []) : null;
17916
- const obsIdsInCellSet = (_b2 = cellSetInfo && cellSetKey ? cellSetInfo == null ? void 0 : cellSetInfo.find((n2) => isEqual$1(n2.path, cellSetKey)) : null) == null ? void 0 : _b2.ids;
17928
+ const obsIdsInCellSet = (_b2 = cellSetInfo && cellSetKey ? cellSetInfo == null ? void 0 : cellSetInfo.find((n2) => isEqual$2(n2.path, cellSetKey)) : null) == null ? void 0 : _b2.ids;
17917
17929
  let subObsIndex = obsIndex;
17918
17930
  if (obsIdsInSampleSet && obsIdsInCellSet) {
17919
17931
  subObsIndex = Array.from(new Set(obsIdsInSampleSet).intersection(new Set(obsIdsInCellSet)));
@@ -19041,13 +19053,13 @@ function tree_root() {
19041
19053
  return this._root;
19042
19054
  }
19043
19055
  function tree_size() {
19044
- var size = 0;
19056
+ var size2 = 0;
19045
19057
  this.visit(function(node2) {
19046
19058
  if (!node2.length) do
19047
- ++size;
19059
+ ++size2;
19048
19060
  while (node2 = node2.next);
19049
19061
  });
19050
- return size;
19062
+ return size2;
19051
19063
  }
19052
19064
  function tree_visit(callback) {
19053
19065
  var quads = [], q, node2 = this._root, child, x02, y02, x12, y12;
@@ -19212,7 +19224,7 @@ function set$1(type, name2, callback) {
19212
19224
  var frame = 0, timeout = 0, interval = 0, pokeDelay = 1e3, taskHead, taskTail, clockLast = 0, clockNow = 0, clockSkew = 0, clock = typeof performance === "object" && performance.now ? performance : Date, setFrame = typeof window === "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(f2) {
19213
19225
  setTimeout(f2, 17);
19214
19226
  };
19215
- function now() {
19227
+ function now$1() {
19216
19228
  return clockNow || (setFrame(clearNow), clockNow = clock.now() + clockSkew);
19217
19229
  }
19218
19230
  function clearNow() {
@@ -19225,7 +19237,7 @@ Timer.prototype = timer.prototype = {
19225
19237
  constructor: Timer,
19226
19238
  restart: function(callback, delay, time) {
19227
19239
  if (typeof callback !== "function") throw new TypeError("callback is not a function");
19228
- time = (time == null ? now() : +time) + (delay == null ? 0 : +delay);
19240
+ time = (time == null ? now$1() : +time) + (delay == null ? 0 : +delay);
19229
19241
  if (!this._next && taskTail !== this) {
19230
19242
  if (taskTail) taskTail._next = this;
19231
19243
  else taskHead = this;
@@ -19249,7 +19261,7 @@ function timer(callback, delay, time) {
19249
19261
  return t;
19250
19262
  }
19251
19263
  function timerFlush() {
19252
- now();
19264
+ now$1();
19253
19265
  ++frame;
19254
19266
  var t = taskHead, e3;
19255
19267
  while (t) {
@@ -22503,12 +22515,12 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
22503
22515
  return original.getVertexAttrib.apply(this, arguments);
22504
22516
  }
22505
22517
  };
22506
- gl.vertexAttribPointer = function vertexAttribPointer(indx, size, type, normalized, stride, offset2) {
22518
+ gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset2) {
22507
22519
  const vao = self2.currentVertexArrayObject;
22508
22520
  vao.maxAttrib = Math.max(vao.maxAttrib, indx);
22509
22521
  const attrib = vao.attribs[indx];
22510
22522
  attrib.buffer = self2.currentArrayBuffer;
22511
- attrib.size = size;
22523
+ attrib.size = size2;
22512
22524
  attrib.type = type;
22513
22525
  attrib.normalized = normalized;
22514
22526
  attrib.stride = stride;
@@ -24400,7 +24412,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
24400
24412
  sourceBuffer,
24401
24413
  readOffset = 0,
24402
24414
  writeOffset = 0,
24403
- size
24415
+ size: size2
24404
24416
  } = _ref;
24405
24417
  const {
24406
24418
  gl
@@ -24408,7 +24420,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
24408
24420
  assertWebGL2Context(gl);
24409
24421
  gl.bindBuffer(36662, sourceBuffer.handle);
24410
24422
  gl.bindBuffer(36663, this.handle);
24411
- gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size);
24423
+ gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size2);
24412
24424
  gl.bindBuffer(36662, null);
24413
24425
  gl.bindBuffer(36663, null);
24414
24426
  this.debugData = null;
@@ -24450,11 +24462,11 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
24450
24462
  target = this.target,
24451
24463
  index: index2 = this.accessor && this.accessor.index,
24452
24464
  offset: offset2 = 0,
24453
- size
24465
+ size: size2
24454
24466
  } = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
24455
24467
  if (target === 35345 || target === 35982) {
24456
- if (size !== void 0) {
24457
- this.gl.bindBufferRange(target, index2, this.handle, offset2, size);
24468
+ if (size2 !== void 0) {
24469
+ this.gl.bindBufferRange(target, index2, this.handle, offset2, size2);
24458
24470
  } else {
24459
24471
  assert$9(offset2 === 0);
24460
24472
  this.gl.bindBufferBase(target, index2, this.handle);
@@ -25134,47 +25146,47 @@ class Texture extends Resource$1 {
25134
25146
  };
25135
25147
  }
25136
25148
  _deduceImageSize(data, width2, height2) {
25137
- let size;
25149
+ let size2;
25138
25150
  if (typeof ImageData !== "undefined" && data instanceof ImageData) {
25139
- size = {
25151
+ size2 = {
25140
25152
  width: data.width,
25141
25153
  height: data.height
25142
25154
  };
25143
25155
  } else if (typeof HTMLImageElement !== "undefined" && data instanceof HTMLImageElement) {
25144
- size = {
25156
+ size2 = {
25145
25157
  width: data.naturalWidth,
25146
25158
  height: data.naturalHeight
25147
25159
  };
25148
25160
  } else if (typeof HTMLCanvasElement !== "undefined" && data instanceof HTMLCanvasElement) {
25149
- size = {
25161
+ size2 = {
25150
25162
  width: data.width,
25151
25163
  height: data.height
25152
25164
  };
25153
25165
  } else if (typeof ImageBitmap !== "undefined" && data instanceof ImageBitmap) {
25154
- size = {
25166
+ size2 = {
25155
25167
  width: data.width,
25156
25168
  height: data.height
25157
25169
  };
25158
25170
  } else if (typeof HTMLVideoElement !== "undefined" && data instanceof HTMLVideoElement) {
25159
- size = {
25171
+ size2 = {
25160
25172
  width: data.videoWidth,
25161
25173
  height: data.videoHeight
25162
25174
  };
25163
25175
  } else if (!data) {
25164
- size = {
25176
+ size2 = {
25165
25177
  width: width2 >= 0 ? width2 : 1,
25166
25178
  height: height2 >= 0 ? height2 : 1
25167
25179
  };
25168
25180
  } else {
25169
- size = {
25181
+ size2 = {
25170
25182
  width: width2,
25171
25183
  height: height2
25172
25184
  };
25173
25185
  }
25174
- assert$9(size, "Could not deduced texture size");
25175
- assert$9(width2 === void 0 || size.width === width2, "Deduced texture width does not match supplied width");
25176
- assert$9(height2 === void 0 || size.height === height2, "Deduced texture height does not match supplied height");
25177
- return size;
25186
+ assert$9(size2, "Could not deduced texture size");
25187
+ assert$9(width2 === void 0 || size2.width === width2, "Deduced texture width does not match supplied width");
25188
+ assert$9(height2 === void 0 || size2.height === height2, "Deduced texture height does not match supplied height");
25189
+ return size2;
25178
25190
  }
25179
25191
  _createHandle() {
25180
25192
  return this.gl.createTexture();
@@ -27133,11 +27145,11 @@ function getSamplerSetter() {
27133
27145
  return update2;
27134
27146
  };
27135
27147
  }
27136
- function getArraySetter(functionName, toArray, size, uniformSetter) {
27148
+ function getArraySetter(functionName, toArray, size2, uniformSetter) {
27137
27149
  let cache2 = null;
27138
27150
  let cacheLength = null;
27139
27151
  return (gl, location, value) => {
27140
- const arrayValue = toArray(value, size);
27152
+ const arrayValue = toArray(value, size2);
27141
27153
  const length2 = arrayValue.length;
27142
27154
  let update2 = false;
27143
27155
  if (cache2 === null) {
@@ -27332,11 +27344,11 @@ class ProgramConfiguration {
27332
27344
  const {
27333
27345
  name: name2,
27334
27346
  type,
27335
- size
27347
+ size: size2
27336
27348
  } = gl.getActiveAttrib(program.handle, index2);
27337
27349
  const location = gl.getAttribLocation(program.handle, name2);
27338
27350
  if (location >= 0) {
27339
- this._addAttribute(location, name2, type, size);
27351
+ this._addAttribute(location, name2, type, size2);
27340
27352
  }
27341
27353
  }
27342
27354
  this.attributeInfos.sort((a2, b) => a2.location - b.location);
@@ -27353,20 +27365,20 @@ class ProgramConfiguration {
27353
27365
  const {
27354
27366
  name: name2,
27355
27367
  type,
27356
- size
27368
+ size: size2
27357
27369
  } = gl.getTransformFeedbackVarying(program.handle, location);
27358
- this._addVarying(location, name2, type, size);
27370
+ this._addVarying(location, name2, type, size2);
27359
27371
  }
27360
27372
  this.varyingInfos.sort((a2, b) => a2.location - b.location);
27361
27373
  }
27362
- _addAttribute(location, name2, compositeType, size) {
27374
+ _addAttribute(location, name2, compositeType, size2) {
27363
27375
  const {
27364
27376
  type,
27365
27377
  components
27366
27378
  } = decomposeCompositeGLType(compositeType);
27367
27379
  const accessor = {
27368
27380
  type,
27369
- size: size * components
27381
+ size: size2 * components
27370
27382
  };
27371
27383
  this._inferProperties(location, name2, accessor);
27372
27384
  const attributeInfo = {
@@ -27383,14 +27395,14 @@ class ProgramConfiguration {
27383
27395
  accessor.divisor = 1;
27384
27396
  }
27385
27397
  }
27386
- _addVarying(location, name2, compositeType, size) {
27398
+ _addVarying(location, name2, compositeType, size2) {
27387
27399
  const {
27388
27400
  type,
27389
27401
  components
27390
27402
  } = decomposeCompositeGLType(compositeType);
27391
27403
  const accessor = new Accessor({
27392
27404
  type,
27393
- size: size * components
27405
+ size: size2 * components
27394
27406
  });
27395
27407
  const varying = {
27396
27408
  location,
@@ -28066,7 +28078,7 @@ class VertexArrayObject extends Resource$1 {
28066
28078
  return this.setElementBuffer(buffer, accessor);
28067
28079
  }
28068
28080
  const {
28069
- size,
28081
+ size: size2,
28070
28082
  type,
28071
28083
  stride,
28072
28084
  offset: offset2,
@@ -28083,9 +28095,9 @@ class VertexArrayObject extends Resource$1 {
28083
28095
  gl.bindBuffer(34962, buffer.handle);
28084
28096
  if (integer) {
28085
28097
  assert$9(isWebGL2$1(gl));
28086
- gl2.vertexAttribIPointer(location, size, type, stride, offset2);
28098
+ gl2.vertexAttribIPointer(location, size2, type, stride, offset2);
28087
28099
  } else {
28088
- gl.vertexAttribPointer(location, size, type, normalized, stride, offset2);
28100
+ gl.vertexAttribPointer(location, size2, type, normalized, stride, offset2);
28089
28101
  }
28090
28102
  gl.enableVertexAttribArray(location);
28091
28103
  gl2.vertexAttribDivisor(location, divisor || 0);
@@ -28413,10 +28425,10 @@ class VertexArray {
28413
28425
  const currentAccessor = this.accessors[location] || {};
28414
28426
  const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
28415
28427
  const {
28416
- size,
28428
+ size: size2,
28417
28429
  type
28418
28430
  } = accessor;
28419
- assert$9(Number.isFinite(size) && Number.isFinite(type));
28431
+ assert$9(Number.isFinite(size2) && Number.isFinite(type));
28420
28432
  return {
28421
28433
  location,
28422
28434
  accessor
@@ -28548,12 +28560,12 @@ class VertexArray {
28548
28560
  function formatArrayValue(v, opts) {
28549
28561
  const {
28550
28562
  maxElts = 16,
28551
- size = 1
28563
+ size: size2 = 1
28552
28564
  } = opts;
28553
28565
  let string2 = "[";
28554
28566
  for (let i2 = 0; i2 < v.length && i2 < maxElts; ++i2) {
28555
28567
  if (i2 > 0) {
28556
- string2 += ",".concat(i2 % size === 0 ? " " : "");
28568
+ string2 += ",".concat(i2 % size2 === 0 ? " " : "");
28557
28569
  }
28558
28570
  string2 += formatValue$1(v[i2], opts);
28559
28571
  }
@@ -28718,7 +28730,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
28718
28730
  };
28719
28731
  }
28720
28732
  let type = "NOT PROVIDED";
28721
- let size = 1;
28733
+ let size2 = 1;
28722
28734
  let verts = 0;
28723
28735
  let bytes = 0;
28724
28736
  let isInteger;
@@ -28726,7 +28738,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
28726
28738
  let value;
28727
28739
  if (accessor) {
28728
28740
  type = accessor.type;
28729
- size = accessor.size;
28741
+ size2 = accessor.size;
28730
28742
  type = String(type).replace("Array", "");
28731
28743
  isInteger = type.indexOf("nt") !== -1;
28732
28744
  }
@@ -28739,41 +28751,41 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
28739
28751
  marker2 = changed ? "*" : "";
28740
28752
  value = data;
28741
28753
  bytes = buffer.byteLength;
28742
- verts = bytes / data.BYTES_PER_ELEMENT / size;
28754
+ verts = bytes / data.BYTES_PER_ELEMENT / size2;
28743
28755
  let format2;
28744
28756
  if (accessor) {
28745
28757
  const instanced = accessor.divisor > 0;
28746
- format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
28758
+ format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
28747
28759
  } else {
28748
28760
  isInteger = true;
28749
28761
  format2 = "".concat(bytes, " bytes");
28750
28762
  }
28751
28763
  return {
28752
28764
  [header]: "".concat(marker2).concat(formatValue$1(value, {
28753
- size,
28765
+ size: size2,
28754
28766
  isInteger
28755
28767
  })),
28756
28768
  "Format ": format2
28757
28769
  };
28758
28770
  }
28759
28771
  value = attribute;
28760
- size = attribute.length;
28772
+ size2 = attribute.length;
28761
28773
  type = String(attribute.constructor.name).replace("Array", "");
28762
28774
  isInteger = type.indexOf("nt") !== -1;
28763
28775
  return {
28764
28776
  [header]: "".concat(formatValue$1(value, {
28765
- size,
28777
+ size: size2,
28766
28778
  isInteger
28767
28779
  }), " (constant)"),
28768
- "Format ": "".concat(size, "x").concat(type, " (constant)")
28780
+ "Format ": "".concat(size2, "x").concat(type, " (constant)")
28769
28781
  };
28770
28782
  }
28771
28783
  function getGLSLDeclaration$1(name2, accessor) {
28772
28784
  const {
28773
28785
  type,
28774
- size
28786
+ size: size2
28775
28787
  } = accessor;
28776
- const typeAndName = getCompositeGLType(type, size);
28788
+ const typeAndName = getCompositeGLType(type, size2);
28777
28789
  return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
28778
28790
  }
28779
28791
  function getDebugTableForProgramConfiguration(config2) {
@@ -28800,9 +28812,9 @@ function getDebugTableForProgramConfiguration(config2) {
28800
28812
  function getGLSLDeclaration(attributeInfo) {
28801
28813
  const {
28802
28814
  type,
28803
- size
28815
+ size: size2
28804
28816
  } = attributeInfo.accessor;
28805
- const typeAndName = getCompositeGLType(type, size);
28817
+ const typeAndName = getCompositeGLType(type, size2);
28806
28818
  if (typeAndName) {
28807
28819
  return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
28808
28820
  }
@@ -35424,11 +35436,11 @@ class Geometry {
35424
35436
  const attribute = attributes[attributeName];
35425
35437
  const {
35426
35438
  value,
35427
- size,
35439
+ size: size2,
35428
35440
  constant: constant2
35429
35441
  } = attribute;
35430
- if (!constant2 && value && size >= 1) {
35431
- vertexCount = Math.min(vertexCount, value.length / size);
35442
+ if (!constant2 && value && size2 >= 1) {
35443
+ vertexCount = Math.min(vertexCount, value.length / size2);
35432
35444
  }
35433
35445
  }
35434
35446
  assert$9(Number.isFinite(vertexCount));
@@ -35806,20 +35818,20 @@ function unpackIndexedGeometry(geometry2) {
35806
35818
  const {
35807
35819
  constant: constant2,
35808
35820
  value,
35809
- size
35821
+ size: size2
35810
35822
  } = attribute;
35811
- if (constant2 || !size) {
35823
+ if (constant2 || !size2) {
35812
35824
  continue;
35813
35825
  }
35814
- const unpackedValue = new value.constructor(vertexCount * size);
35826
+ const unpackedValue = new value.constructor(vertexCount * size2);
35815
35827
  for (let x = 0; x < vertexCount; ++x) {
35816
35828
  const index2 = indices.value[x];
35817
- for (let i2 = 0; i2 < size; i2++) {
35818
- unpackedValue[x * size + i2] = value[index2 * size + i2];
35829
+ for (let i2 = 0; i2 < size2; i2++) {
35830
+ unpackedValue[x * size2 + i2] = value[index2 * size2 + i2];
35819
35831
  }
35820
35832
  }
35821
35833
  unpackedAttributes[attributeName] = {
35822
- size,
35834
+ size: size2,
35823
35835
  value: unpackedValue
35824
35836
  };
35825
35837
  }
@@ -36299,7 +36311,7 @@ const COORDINATE_SYSTEM_GLSL_CONSTANTS = Object.keys(COORDINATE_SYSTEM).map((key
36299
36311
  const PROJECTION_MODE_GLSL_CONSTANTS = Object.keys(PROJECTION_MODE).map((key) => "const int PROJECTION_MODE_".concat(key, " = ").concat(PROJECTION_MODE[key], ";")).join("");
36300
36312
  const UNIT_GLSL_CONSTANTS = Object.keys(UNIT).map((key) => "const int UNIT_".concat(key.toUpperCase(), " = ").concat(UNIT[key], ";")).join("");
36301
36313
  const projectShader = "".concat(COORDINATE_SYSTEM_GLSL_CONSTANTS, "\n").concat(PROJECTION_MODE_GLSL_CONSTANTS, "\n").concat(UNIT_GLSL_CONSTANTS, '\n\nuniform int project_uCoordinateSystem;\nuniform int project_uProjectionMode;\nuniform float project_uScale;\nuniform bool project_uWrapLongitude;\nuniform vec3 project_uCommonUnitsPerMeter;\nuniform vec3 project_uCommonUnitsPerWorldUnit;\nuniform vec3 project_uCommonUnitsPerWorldUnit2;\nuniform vec4 project_uCenter;\nuniform mat4 project_uModelMatrix;\nuniform mat4 project_uViewProjectionMatrix;\nuniform vec2 project_uViewportSize;\nuniform float project_uDevicePixelRatio;\nuniform float project_uFocalDistance;\nuniform vec3 project_uCameraPosition;\nuniform vec3 project_uCoordinateOrigin;\nuniform vec3 project_uCommonOrigin;\nuniform bool project_uPseudoMeters;\n\nconst float TILE_SIZE = 512.0;\nconst float PI = 3.1415926536;\nconst float WORLD_SCALE = TILE_SIZE / (PI * 2.0);\nconst vec3 ZERO_64_LOW = vec3(0.0);\nconst float EARTH_RADIUS = 6370972.0; // meters\nconst float GLOBE_RADIUS = 256.0;\n\n// returns an adjustment factor for uCommonUnitsPerMeter\nfloat project_size_at_latitude(float lat) {\n float y = clamp(lat, -89.9, 89.9);\n return 1.0 / cos(radians(y));\n}\n\nfloat project_size() {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR &&\n project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT &&\n project_uPseudoMeters == false) {\n\n // uCommonUnitsPerMeter in low-zoom Web Mercator is non-linear\n // Adjust by 1 / cos(latitude)\n // If geometry.position (vertex in common space) is populated, use it\n // Otherwise use geometry.worldPosition (anchor in world space)\n \n if (geometry.position.w == 0.0) {\n return project_size_at_latitude(geometry.worldPosition.y);\n }\n\n // latitude from common y: 2.0 * (atan(exp(y / TILE_SIZE * 2.0 * PI - PI)) - PI / 4.0)\n // Taylor series of 1 / cos(latitude)\n // Max error < 0.003\n \n float y = geometry.position.y / TILE_SIZE * 2.0 - 1.0;\n float y2 = y * y;\n float y4 = y2 * y2;\n float y6 = y4 * y2;\n return 1.0 + 4.9348 * y2 + 4.0587 * y4 + 1.5642 * y6;\n }\n return 1.0;\n}\n\nfloat project_size_at_latitude(float meters, float lat) {\n return meters * project_uCommonUnitsPerMeter.z * project_size_at_latitude(lat);\n}\n\n//\n// Scaling offsets - scales meters to "world distance"\n// Note the scalar version of project_size is for scaling the z component only\n//\nfloat project_size(float meters) {\n return meters * project_uCommonUnitsPerMeter.z * project_size();\n}\n\nvec2 project_size(vec2 meters) {\n return meters * project_uCommonUnitsPerMeter.xy * project_size();\n}\n\nvec3 project_size(vec3 meters) {\n return meters * project_uCommonUnitsPerMeter * project_size();\n}\n\nvec4 project_size(vec4 meters) {\n return vec4(meters.xyz * project_uCommonUnitsPerMeter, meters.w);\n}\n\n// Get rotation matrix that aligns the z axis with the given up vector\n// Find 3 unit vectors ux, uy, uz that are perpendicular to each other and uz == up\nmat3 project_get_orientation_matrix(vec3 up) {\n vec3 uz = normalize(up);\n // Tangent on XY plane\n vec3 ux = abs(uz.z) == 1.0 ? vec3(1.0, 0.0, 0.0) : normalize(vec3(uz.y, -uz.x, 0));\n vec3 uy = cross(uz, ux);\n return mat3(ux, uy, uz);\n}\n\nbool project_needs_rotation(vec3 commonPosition, out mat3 transform) {\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n transform = project_get_orientation_matrix(commonPosition);\n return true;\n }\n return false;\n}\n\n//\n// Projecting normal - transform deltas from current coordinate system to\n// normals in the worldspace\n//\nvec3 project_normal(vec3 vector) {\n // Apply model matrix\n vec4 normal_modelspace = project_uModelMatrix * vec4(vector, 0.0);\n vec3 n = normalize(normal_modelspace.xyz * project_uCommonUnitsPerMeter);\n mat3 rotation;\n if (project_needs_rotation(geometry.position.xyz, rotation)) {\n n = rotation * n;\n }\n return n;\n}\n\nvec4 project_offset_(vec4 offset) {\n float dy = offset.y;\n vec3 commonUnitsPerWorldUnit = project_uCommonUnitsPerWorldUnit + project_uCommonUnitsPerWorldUnit2 * dy;\n return vec4(offset.xyz * commonUnitsPerWorldUnit, offset.w);\n}\n\n//\n// Projecting positions - non-linear projection: lnglats => unit tile [0-1, 0-1]\n//\nvec2 project_mercator_(vec2 lnglat) {\n float x = lnglat.x;\n if (project_uWrapLongitude) {\n x = mod(x + 180., 360.0) - 180.;\n }\n float y = clamp(lnglat.y, -89.9, 89.9);\n return vec2(\n radians(x) + PI,\n PI + log(tan_fp32(PI * 0.25 + radians(y) * 0.5))\n ) * WORLD_SCALE;\n}\n\nvec3 project_globe_(vec3 lnglatz) {\n float lambda = radians(lnglatz.x);\n float phi = radians(lnglatz.y);\n float cosPhi = cos(phi);\n float D = (lnglatz.z / EARTH_RADIUS + 1.0) * GLOBE_RADIUS;\n\n return vec3(\n sin(lambda) * cosPhi,\n -cos(lambda) * cosPhi,\n sin(phi)\n ) * D;\n}\n\n//\n// Projects positions (defined by project_uCoordinateSystem) to common space (defined by project_uProjectionMode)\n//\nvec4 project_position(vec4 position, vec3 position64Low) {\n vec4 position_world = project_uModelMatrix * position;\n\n // Work around for a Mac+NVIDIA bug https://github.com/visgl/deck.gl/issues/4145\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_mercator_(position_world.xy),\n project_size_at_latitude(position_world.z, position_world.y),\n position_world.w\n );\n }\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN) {\n position_world.xyz += project_uCoordinateOrigin;\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_GLOBE) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n return vec4(\n project_globe_(position_world.xyz),\n position_world.w\n );\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n if (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n if (abs(position_world.y - project_uCoordinateOrigin.y) > 0.25) {\n // Too far from the projection center for offset mode to be accurate\n // Only use high parts\n return vec4(\n project_mercator_(position_world.xy) - project_uCommonOrigin.xy,\n project_size(position_world.z),\n position_world.w\n );\n }\n }\n }\n if (project_uProjectionMode == PROJECTION_MODE_IDENTITY ||\n (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET &&\n (project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT ||\n project_uCoordinateSystem == COORDINATE_SYSTEM_CARTESIAN))) {\n // Subtract high part of 64 bit value. Convert remainder to float32, preserving precision.\n position_world.xyz -= project_uCoordinateOrigin;\n }\n\n // Translation is already added to the high parts\n return project_offset_(position_world + project_uModelMatrix * vec4(position64Low, 0.0));\n}\n\nvec4 project_position(vec4 position) {\n return project_position(position, ZERO_64_LOW);\n}\n\nvec3 project_position(vec3 position, vec3 position64Low) {\n vec4 projected_position = project_position(vec4(position, 1.0), position64Low);\n return projected_position.xyz;\n}\n\nvec3 project_position(vec3 position) {\n vec4 projected_position = project_position(vec4(position, 1.0), ZERO_64_LOW);\n return projected_position.xyz;\n}\n\nvec2 project_position(vec2 position) {\n vec4 projected_position = project_position(vec4(position, 0.0, 1.0), ZERO_64_LOW);\n return projected_position.xy;\n}\n\nvec4 project_common_position_to_clipspace(vec4 position, mat4 viewProjectionMatrix, vec4 center) {\n return viewProjectionMatrix * position + center;\n}\n\n//\n// Projects from common space coordinates to clip space.\n// Uses project_uViewProjectionMatrix\n//\nvec4 project_common_position_to_clipspace(vec4 position) {\n return project_common_position_to_clipspace(position, project_uViewProjectionMatrix, project_uCenter);\n}\n\n// Returns a clip space offset that corresponds to a given number of screen pixels\nvec2 project_pixel_size_to_clipspace(vec2 pixels) {\n vec2 offset = pixels / project_uViewportSize * project_uDevicePixelRatio * 2.0;\n return offset * project_uFocalDistance;\n}\n\nfloat project_size_to_pixel(float meters) {\n return project_size(meters) * project_uScale;\n}\nfloat project_size_to_pixel(float size, int unit) {\n if (unit == UNIT_METERS) return project_size_to_pixel(size);\n if (unit == UNIT_COMMON) return size * project_uScale;\n // UNIT_PIXELS\n return size;\n}\nfloat project_pixel_size(float pixels) {\n return pixels / project_uScale;\n}\nvec2 project_pixel_size(vec2 pixels) {\n return pixels / project_uScale;\n}\n');
36302
- function isEqual(a2, b) {
36314
+ function isEqual$1(a2, b) {
36303
36315
  if (a2 === b) {
36304
36316
  return true;
36305
36317
  }
@@ -36322,7 +36334,7 @@ function memoize$3(compute) {
36322
36334
  let cachedResult;
36323
36335
  return (args) => {
36324
36336
  for (const key in args) {
36325
- if (!isEqual(args[key], cachedArgs[key])) {
36337
+ if (!isEqual$1(args[key], cachedArgs[key])) {
36326
36338
  cachedResult = compute(args);
36327
36339
  cachedArgs = args;
36328
36340
  break;
@@ -36740,11 +36752,11 @@ function fitBounds(options) {
36740
36752
  const padding2 = getPaddingObject(options.padding);
36741
36753
  const nw = lngLatToWorld([west, clamp$2(north, -85.051129, MAX_LATITUDE)]);
36742
36754
  const se = lngLatToWorld([east, clamp$2(south, -85.051129, MAX_LATITUDE)]);
36743
- const size = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
36755
+ const size2 = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
36744
36756
  const targetSize = [width2 - padding2.left - padding2.right - Math.abs(offset2[0]) * 2, height2 - padding2.top - padding2.bottom - Math.abs(offset2[1]) * 2];
36745
36757
  assert$6(targetSize[0] > 0 && targetSize[1] > 0);
36746
- const scaleX2 = targetSize[0] / size[0];
36747
- const scaleY2 = targetSize[1] / size[1];
36758
+ const scaleX2 = targetSize[0] / size2[0];
36759
+ const scaleY2 = targetSize[1] / size2[1];
36748
36760
  const offsetX = (padding2.right - padding2.left) / 2 / scaleX2;
36749
36761
  const offsetY = (padding2.top - padding2.bottom) / 2 / scaleY2;
36750
36762
  const center2 = [(se[0] + nw[0]) / 2 + offsetX, (se[1] + nw[1]) / 2 + offsetY];
@@ -37863,7 +37875,7 @@ class TypedArrayManager {
37863
37875
  Object.assign(this.opts, options);
37864
37876
  }
37865
37877
  allocate(typedArray, count2, {
37866
- size = 1,
37878
+ size: size2 = 1,
37867
37879
  type,
37868
37880
  padding: padding2 = 0,
37869
37881
  copy: copy2 = false,
@@ -37871,7 +37883,7 @@ class TypedArrayManager {
37871
37883
  maxCount
37872
37884
  }) {
37873
37885
  const Type2 = type || typedArray && typedArray.constructor || Float32Array;
37874
- const newSize = count2 * size + padding2;
37886
+ const newSize = count2 * size2 + padding2;
37875
37887
  if (ArrayBuffer.isView(typedArray)) {
37876
37888
  if (newSize <= typedArray.length) {
37877
37889
  return typedArray;
@@ -37882,7 +37894,7 @@ class TypedArrayManager {
37882
37894
  }
37883
37895
  let maxSize = Infinity;
37884
37896
  if (maxCount) {
37885
- maxSize = maxCount * size + padding2;
37897
+ maxSize = maxCount * size2 + padding2;
37886
37898
  }
37887
37899
  const newArray = this._allocate(Type2, newSize, initialize, maxSize);
37888
37900
  if (typedArray && copy2) {
@@ -37896,8 +37908,8 @@ class TypedArrayManager {
37896
37908
  release(typedArray) {
37897
37909
  this._release(typedArray);
37898
37910
  }
37899
- _allocate(Type2, size, initialize, maxSize) {
37900
- let sizeToAllocate = Math.max(Math.ceil(size * this.opts.overAlloc), 1);
37911
+ _allocate(Type2, size2, initialize, maxSize) {
37912
+ let sizeToAllocate = Math.max(Math.ceil(size2 * this.opts.overAlloc), 1);
37901
37913
  if (sizeToAllocate > maxSize) {
37902
37914
  sizeToAllocate = maxSize;
37903
37915
  }
@@ -37971,26 +37983,26 @@ function fp64LowPart(x) {
37971
37983
  let scratchArray;
37972
37984
  function toDoublePrecisionArray(typedArray, options) {
37973
37985
  const {
37974
- size = 1,
37986
+ size: size2 = 1,
37975
37987
  startIndex = 0
37976
37988
  } = options;
37977
37989
  const endIndex = options.endIndex !== void 0 ? options.endIndex : typedArray.length;
37978
- const count2 = (endIndex - startIndex) / size;
37990
+ const count2 = (endIndex - startIndex) / size2;
37979
37991
  scratchArray = defaultTypedArrayManager.allocate(scratchArray, count2, {
37980
37992
  type: Float32Array,
37981
- size: size * 2
37993
+ size: size2 * 2
37982
37994
  });
37983
37995
  let sourceIndex = startIndex;
37984
37996
  let targetIndex = 0;
37985
37997
  while (sourceIndex < endIndex) {
37986
- for (let j = 0; j < size; j++) {
37998
+ for (let j = 0; j < size2; j++) {
37987
37999
  const value = typedArray[sourceIndex++];
37988
38000
  scratchArray[targetIndex + j] = value;
37989
- scratchArray[targetIndex + j + size] = fp64LowPart(value);
38001
+ scratchArray[targetIndex + j + size2] = fp64LowPart(value);
37990
38002
  }
37991
- targetIndex += size * 2;
38003
+ targetIndex += size2 * 2;
37992
38004
  }
37993
- return scratchArray.subarray(0, count2 * size * 2);
38005
+ return scratchArray.subarray(0, count2 * size2 * 2);
37994
38006
  }
37995
38007
  const DEGREES_TO_RADIANS$4 = Math.PI / 180;
37996
38008
  const IDENTITY = createMat4();
@@ -41649,15 +41661,15 @@ function getMaskViewport({
41649
41661
  });
41650
41662
  }
41651
41663
  function _doubleBounds(bounds2) {
41652
- const size = {
41664
+ const size2 = {
41653
41665
  x: bounds2[2] - bounds2[0],
41654
41666
  y: bounds2[3] - bounds2[1]
41655
41667
  };
41656
41668
  const center2 = {
41657
- x: bounds2[0] + 0.5 * size.x,
41658
- y: bounds2[1] + 0.5 * size.y
41669
+ x: bounds2[0] + 0.5 * size2.x,
41670
+ y: bounds2[1] + 0.5 * size2.y
41659
41671
  };
41660
- return [center2.x - size.x, center2.y - size.y, center2.x + size.x, center2.y + size.y];
41672
+ return [center2.x - size2.x, center2.y - size2.y, center2.x + size2.x, center2.y + size2.y];
41661
41673
  }
41662
41674
  class MaskEffect {
41663
41675
  constructor() {
@@ -46041,13 +46053,13 @@ class ShaderAttribute {
46041
46053
  value
46042
46054
  } = this.source;
46043
46055
  const {
46044
- size
46056
+ size: size2
46045
46057
  } = accessor;
46046
46058
  let constantValue = value;
46047
- if (value && value.length !== size) {
46048
- constantValue = new Float32Array(size);
46059
+ if (value && value.length !== size2) {
46060
+ constantValue = new Float32Array(size2);
46049
46061
  const index2 = accessor.elementOffset || 0;
46050
- for (let i2 = 0; i2 < size; ++i2) {
46062
+ for (let i2 = 0; i2 < size2; ++i2) {
46051
46063
  constantValue[i2] = value[index2 + i2];
46052
46064
  }
46053
46065
  }
@@ -46250,14 +46262,14 @@ class DataColumn {
46250
46262
  const {
46251
46263
  value,
46252
46264
  numInstances,
46253
- size
46265
+ size: size2
46254
46266
  } = this;
46255
- const len2 = numInstances * size;
46267
+ const len2 = numInstances * size2;
46256
46268
  if (value && len2 && value.length >= len2) {
46257
- const min = new Array(size).fill(Infinity);
46258
- const max2 = new Array(size).fill(-Infinity);
46269
+ const min = new Array(size2).fill(Infinity);
46270
+ const max2 = new Array(size2).fill(-Infinity);
46259
46271
  for (let i2 = 0; i2 < len2; ) {
46260
- for (let j = 0; j < size; j++) {
46272
+ for (let j = 0; j < size2; j++) {
46261
46273
  const v = value[i2++];
46262
46274
  if (v < min[j]) min[j] = v;
46263
46275
  if (v > max2[j]) max2[j] = v;
@@ -46423,7 +46435,7 @@ class DataColumn {
46423
46435
  _normalizeValue(value, out, start) {
46424
46436
  const {
46425
46437
  defaultValue: defaultValue2,
46426
- size
46438
+ size: size2
46427
46439
  } = this.settings;
46428
46440
  if (Number.isFinite(value)) {
46429
46441
  out[start] = value;
@@ -46433,7 +46445,7 @@ class DataColumn {
46433
46445
  out[start] = defaultValue2[0];
46434
46446
  return out;
46435
46447
  }
46436
- switch (size) {
46448
+ switch (size2) {
46437
46449
  case 4:
46438
46450
  out[start + 3] = Number.isFinite(value[3]) ? value[3] : defaultValue2[3];
46439
46451
  case 3:
@@ -46444,7 +46456,7 @@ class DataColumn {
46444
46456
  out[start + 0] = Number.isFinite(value[0]) ? value[0] : defaultValue2[0];
46445
46457
  break;
46446
46458
  default:
46447
- let i2 = size;
46459
+ let i2 = size2;
46448
46460
  while (--i2 >= 0) {
46449
46461
  out[start + i2] = Number.isFinite(value[i2]) ? value[i2] : defaultValue2[i2];
46450
46462
  }
@@ -46456,9 +46468,9 @@ class DataColumn {
46456
46468
  return false;
46457
46469
  }
46458
46470
  const {
46459
- size
46471
+ size: size2
46460
46472
  } = this;
46461
- for (let i2 = 0; i2 < size; i2++) {
46473
+ for (let i2 = 0; i2 < size2; i2++) {
46462
46474
  if (value1[i2] !== value2[i2]) {
46463
46475
  return false;
46464
46476
  }
@@ -46497,14 +46509,14 @@ function isAsyncIterable(data) {
46497
46509
  }
46498
46510
  function getAccessorFromBuffer(typedArray, options) {
46499
46511
  const {
46500
- size,
46512
+ size: size2,
46501
46513
  stride,
46502
46514
  offset: offset2,
46503
46515
  startIndices,
46504
46516
  nested: nested2
46505
46517
  } = options;
46506
46518
  const bytesPerElement = typedArray.BYTES_PER_ELEMENT;
46507
- const elementStride = stride ? stride / bytesPerElement : size;
46519
+ const elementStride = stride ? stride / bytesPerElement : size2;
46508
46520
  const elementOffset = offset2 ? offset2 / bytesPerElement : 0;
46509
46521
  const vertexCount = Math.floor((typedArray.length - elementOffset) / elementStride);
46510
46522
  return (_, {
@@ -46513,7 +46525,7 @@ function getAccessorFromBuffer(typedArray, options) {
46513
46525
  }) => {
46514
46526
  if (!startIndices) {
46515
46527
  const sourceIndex = index2 * elementStride + elementOffset;
46516
- for (let j = 0; j < size; j++) {
46528
+ for (let j = 0; j < size2; j++) {
46517
46529
  target[j] = typedArray[sourceIndex + j];
46518
46530
  }
46519
46531
  return target;
@@ -46525,20 +46537,20 @@ function getAccessorFromBuffer(typedArray, options) {
46525
46537
  result = new Array(endIndex - startIndex);
46526
46538
  for (let i2 = startIndex; i2 < endIndex; i2++) {
46527
46539
  const sourceIndex = i2 * elementStride + elementOffset;
46528
- target = new Array(size);
46529
- for (let j = 0; j < size; j++) {
46540
+ target = new Array(size2);
46541
+ for (let j = 0; j < size2; j++) {
46530
46542
  target[j] = typedArray[sourceIndex + j];
46531
46543
  }
46532
46544
  result[i2 - startIndex] = target;
46533
46545
  }
46534
- } else if (elementStride === size) {
46535
- result = typedArray.subarray(startIndex * size + elementOffset, endIndex * size + elementOffset);
46546
+ } else if (elementStride === size2) {
46547
+ result = typedArray.subarray(startIndex * size2 + elementOffset, endIndex * size2 + elementOffset);
46536
46548
  } else {
46537
- result = new typedArray.constructor((endIndex - startIndex) * size);
46549
+ result = new typedArray.constructor((endIndex - startIndex) * size2);
46538
46550
  let targetIndex = 0;
46539
46551
  for (let i2 = startIndex; i2 < endIndex; i2++) {
46540
46552
  const sourceIndex = i2 * elementStride + elementOffset;
46541
- for (let j = 0; j < size; j++) {
46553
+ for (let j = 0; j < size2; j++) {
46542
46554
  result[targetIndex++] = typedArray[sourceIndex + j];
46543
46555
  }
46544
46556
  }
@@ -46580,7 +46592,7 @@ function padArrayChunk(options) {
46580
46592
  source,
46581
46593
  target,
46582
46594
  start = 0,
46583
- size,
46595
+ size: size2,
46584
46596
  getData
46585
46597
  } = options;
46586
46598
  const end = options.end || target.length;
@@ -46597,7 +46609,7 @@ function padArrayChunk(options) {
46597
46609
  let i2 = sourceLength;
46598
46610
  while (i2 < targetLength) {
46599
46611
  const datum2 = getData(i2, source);
46600
- for (let j = 0; j < size; j++) {
46612
+ for (let j = 0; j < size2; j++) {
46601
46613
  target[start + i2] = datum2[j] || 0;
46602
46614
  i2++;
46603
46615
  }
@@ -46606,7 +46618,7 @@ function padArrayChunk(options) {
46606
46618
  function padArray({
46607
46619
  source,
46608
46620
  target,
46609
- size,
46621
+ size: size2,
46610
46622
  getData,
46611
46623
  sourceStartIndices,
46612
46624
  targetStartIndices
@@ -46615,7 +46627,7 @@ function padArray({
46615
46627
  padArrayChunk({
46616
46628
  source,
46617
46629
  target,
46618
- size,
46630
+ size: size2,
46619
46631
  getData
46620
46632
  });
46621
46633
  return target;
@@ -46625,14 +46637,14 @@ function padArray({
46625
46637
  const getChunkData = getData && ((i2, chunk) => getData(i2 + targetIndex, chunk));
46626
46638
  const n2 = Math.min(sourceStartIndices.length, targetStartIndices.length);
46627
46639
  for (let i2 = 1; i2 < n2; i2++) {
46628
- const nextSourceIndex = sourceStartIndices[i2] * size;
46629
- const nextTargetIndex = targetStartIndices[i2] * size;
46640
+ const nextSourceIndex = sourceStartIndices[i2] * size2;
46641
+ const nextTargetIndex = targetStartIndices[i2] * size2;
46630
46642
  padArrayChunk({
46631
46643
  source: source.subarray(sourceIndex, nextSourceIndex),
46632
46644
  target,
46633
46645
  start: targetIndex,
46634
46646
  end: nextTargetIndex,
46635
- size,
46647
+ size: size2,
46636
46648
  getData: getChunkData
46637
46649
  });
46638
46650
  sourceIndex = nextSourceIndex;
@@ -46643,7 +46655,7 @@ function padArray({
46643
46655
  source: [],
46644
46656
  target,
46645
46657
  start: targetIndex,
46646
- size,
46658
+ size: size2,
46647
46659
  getData: getChunkData
46648
46660
  });
46649
46661
  }
@@ -46688,8 +46700,8 @@ function getSourceBufferAttribute(gl, attribute) {
46688
46700
  }
46689
46701
  return attribute.value;
46690
46702
  }
46691
- function getAttributeTypeFromSize(size) {
46692
- switch (size) {
46703
+ function getAttributeTypeFromSize(size2) {
46704
+ switch (size2) {
46693
46705
  case 1:
46694
46706
  return "float";
46695
46707
  case 2:
@@ -46699,7 +46711,7 @@ function getAttributeTypeFromSize(size) {
46699
46711
  case 4:
46700
46712
  return "vec4";
46701
46713
  default:
46702
- throw new Error('No defined attribute type for size "'.concat(size, '"'));
46714
+ throw new Error('No defined attribute type for size "'.concat(size2, '"'));
46703
46715
  }
46704
46716
  }
46705
46717
  function cycleBuffers(buffers) {
@@ -46710,10 +46722,10 @@ function getAttributeBufferLength(attribute, numInstances) {
46710
46722
  doublePrecision,
46711
46723
  settings,
46712
46724
  value,
46713
- size
46725
+ size: size2
46714
46726
  } = attribute;
46715
46727
  const multiplier = doublePrecision && value instanceof Float64Array ? 2 : 1;
46716
- return (settings.noAlloc ? value.length : numInstances * size) * multiplier;
46728
+ return (settings.noAlloc ? value.length : numInstances * size2) * multiplier;
46717
46729
  }
46718
46730
  function padBuffer({
46719
46731
  buffer,
@@ -46724,7 +46736,7 @@ function padBuffer({
46724
46736
  getData = (x) => x
46725
46737
  }) {
46726
46738
  const precisionMultiplier = attribute.doublePrecision && attribute.value instanceof Float64Array ? 2 : 1;
46727
- const size = attribute.size * precisionMultiplier;
46739
+ const size2 = attribute.size * precisionMultiplier;
46728
46740
  const byteOffset = attribute.byteOffset;
46729
46741
  const toStartIndices = attribute.startIndices;
46730
46742
  const hasStartIndices = fromStartIndices && toStartIndices;
@@ -46740,7 +46752,7 @@ function padBuffer({
46740
46752
  const getter = getData;
46741
46753
  getData = (value, chunk) => attribute.normalizeConstant(getter(value, chunk));
46742
46754
  }
46743
- const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 + size), chunk);
46755
+ const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 + size2), chunk);
46744
46756
  const source = buffer.getData({
46745
46757
  length: fromLength
46746
46758
  });
@@ -46750,7 +46762,7 @@ function padBuffer({
46750
46762
  target: data,
46751
46763
  sourceStartIndices: fromStartIndices,
46752
46764
  targetStartIndices: toStartIndices,
46753
- size,
46765
+ size: size2,
46754
46766
  getData: getMissingData
46755
46767
  });
46756
46768
  if (buffer.byteLength < data.byteLength + byteOffset) {
@@ -47006,7 +47018,7 @@ class Attribute extends DataColumn {
47006
47018
  settings,
47007
47019
  state,
47008
47020
  value,
47009
- size,
47021
+ size: size2,
47010
47022
  startIndices
47011
47023
  } = attribute;
47012
47024
  const {
@@ -47032,9 +47044,9 @@ class Attribute extends DataColumn {
47032
47044
  let startIndex = i2;
47033
47045
  for (const item of objectValue) {
47034
47046
  attribute._normalizeValue(item, value, startIndex);
47035
- startIndex += size;
47047
+ startIndex += size2;
47036
47048
  }
47037
- } else if (objectValue && objectValue.length > size) {
47049
+ } else if (objectValue && objectValue.length > size2) {
47038
47050
  value.set(objectValue, i2);
47039
47051
  } else {
47040
47052
  attribute._normalizeValue(objectValue, objectInfo.target, 0);
@@ -47045,10 +47057,10 @@ class Attribute extends DataColumn {
47045
47057
  count: numVertices
47046
47058
  });
47047
47059
  }
47048
- i2 += numVertices * size;
47060
+ i2 += numVertices * size2;
47049
47061
  } else {
47050
47062
  attribute._normalizeValue(objectValue, value, i2);
47051
- i2 += size;
47063
+ i2 += size2;
47052
47064
  }
47053
47065
  }
47054
47066
  }
@@ -52246,14 +52258,14 @@ function reversePolygon(points, options) {
52246
52258
  const {
52247
52259
  start = 0,
52248
52260
  end = points.length,
52249
- size = 2
52261
+ size: size2 = 2
52250
52262
  } = options;
52251
- const numPoints = (end - start) / size;
52263
+ const numPoints = (end - start) / size2;
52252
52264
  const numSwaps = Math.floor(numPoints / 2);
52253
52265
  for (let i2 = 0; i2 < numSwaps; ++i2) {
52254
- const b1 = start + i2 * size;
52255
- const b2 = start + (numPoints - 1 - i2) * size;
52256
- for (let j = 0; j < size; ++j) {
52266
+ const b1 = start + i2 * size2;
52267
+ const b2 = start + (numPoints - 1 - i2) * size2;
52268
+ for (let j = 0; j < size2; ++j) {
52257
52269
  const tmp = points[b1 + j];
52258
52270
  points[b1 + j] = points[b2 + j];
52259
52271
  points[b2 + j] = tmp;
@@ -52261,12 +52273,12 @@ function reversePolygon(points, options) {
52261
52273
  }
52262
52274
  }
52263
52275
  function push(target, source) {
52264
- const size = source.length;
52276
+ const size2 = source.length;
52265
52277
  const startIndex = target.length;
52266
52278
  if (startIndex > 0) {
52267
52279
  let isDuplicate = true;
52268
- for (let i2 = 0; i2 < size; i2++) {
52269
- if (target[startIndex - size + i2] !== source[i2]) {
52280
+ for (let i2 = 0; i2 < size2; i2++) {
52281
+ if (target[startIndex - size2 + i2] !== source[i2]) {
52270
52282
  isDuplicate = false;
52271
52283
  break;
52272
52284
  }
@@ -52275,20 +52287,20 @@ function push(target, source) {
52275
52287
  return false;
52276
52288
  }
52277
52289
  }
52278
- for (let i2 = 0; i2 < size; i2++) {
52290
+ for (let i2 = 0; i2 < size2; i2++) {
52279
52291
  target[startIndex + i2] = source[i2];
52280
52292
  }
52281
52293
  return true;
52282
52294
  }
52283
52295
  function copy$3(target, source) {
52284
- const size = source.length;
52285
- for (let i2 = 0; i2 < size; i2++) {
52296
+ const size2 = source.length;
52297
+ for (let i2 = 0; i2 < size2; i2++) {
52286
52298
  target[i2] = source[i2];
52287
52299
  }
52288
52300
  }
52289
- function getPointAtIndex(positions, index2, size, offset2, out = []) {
52290
- const startI = offset2 + index2 * size;
52291
- for (let i2 = 0; i2 < size; i2++) {
52301
+ function getPointAtIndex(positions, index2, size2, offset2, out = []) {
52302
+ const startI = offset2 + index2 * size2;
52303
+ for (let i2 = 0; i2 < size2; i2++) {
52292
52304
  out[i2] = positions[startI + i2];
52293
52305
  }
52294
52306
  return out;
@@ -52326,24 +52338,24 @@ function bitCode(p, bbox2) {
52326
52338
  }
52327
52339
  function cutPolylineByGrid(positions, options) {
52328
52340
  const {
52329
- size = 2,
52341
+ size: size2 = 2,
52330
52342
  broken = false,
52331
52343
  gridResolution = 10,
52332
52344
  gridOffset = [0, 0],
52333
52345
  startIndex = 0,
52334
52346
  endIndex = positions.length
52335
52347
  } = options || {};
52336
- const numPoints = (endIndex - startIndex) / size;
52348
+ const numPoints = (endIndex - startIndex) / size2;
52337
52349
  let part = [];
52338
52350
  const result = [part];
52339
- const a2 = getPointAtIndex(positions, 0, size, startIndex);
52351
+ const a2 = getPointAtIndex(positions, 0, size2, startIndex);
52340
52352
  let b;
52341
52353
  let codeB;
52342
52354
  const cell = getGridCell(a2, gridResolution, gridOffset, []);
52343
52355
  const scratchPoint = [];
52344
52356
  push(part, a2);
52345
52357
  for (let i2 = 1; i2 < numPoints; i2++) {
52346
- b = getPointAtIndex(positions, i2, size, startIndex, b);
52358
+ b = getPointAtIndex(positions, i2, size2, startIndex, b);
52347
52359
  codeB = bitCode(b, cell);
52348
52360
  while (codeB) {
52349
52361
  intersect(a2, b, codeB, cell, scratchPoint);
@@ -52355,7 +52367,7 @@ function cutPolylineByGrid(positions, options) {
52355
52367
  push(part, scratchPoint);
52356
52368
  copy$3(a2, scratchPoint);
52357
52369
  moveToNeighborCell(cell, gridResolution, codeB);
52358
- if (broken && part.length > size) {
52370
+ if (broken && part.length > size2) {
52359
52371
  part = [];
52360
52372
  result.push(part);
52361
52373
  push(part, a2);
@@ -52380,7 +52392,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
52380
52392
  return [];
52381
52393
  }
52382
52394
  const {
52383
- size = 2,
52395
+ size: size2 = 2,
52384
52396
  gridResolution = 10,
52385
52397
  gridOffset = [0, 0],
52386
52398
  edgeTypes = false
@@ -52388,7 +52400,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
52388
52400
  const result = [];
52389
52401
  const queue = [{
52390
52402
  pos: positions,
52391
- types: edgeTypes ? new Array(positions.length / size).fill(TYPE_BORDER) : null,
52403
+ types: edgeTypes ? new Array(positions.length / size2).fill(TYPE_BORDER) : null,
52392
52404
  holes: holeIndices || []
52393
52405
  }];
52394
52406
  const bbox2 = [[], []];
@@ -52399,11 +52411,11 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
52399
52411
  types,
52400
52412
  holes
52401
52413
  } = queue.shift();
52402
- getBoundingBox$2(pos, size, holes[0] || pos.length, bbox2);
52414
+ getBoundingBox$2(pos, size2, holes[0] || pos.length, bbox2);
52403
52415
  cell = getGridCell(bbox2[0], gridResolution, gridOffset, cell);
52404
52416
  const code = bitCode(bbox2[1], cell);
52405
52417
  if (code) {
52406
- let parts = bisectPolygon(pos, types, size, 0, holes[0] || pos.length, cell, code);
52418
+ let parts = bisectPolygon(pos, types, size2, 0, holes[0] || pos.length, cell, code);
52407
52419
  const polygonLow = {
52408
52420
  pos: parts[0].pos,
52409
52421
  types: parts[0].types,
@@ -52416,7 +52428,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
52416
52428
  };
52417
52429
  queue.push(polygonLow, polygonHigh);
52418
52430
  for (let i2 = 0; i2 < holes.length; i2++) {
52419
- parts = bisectPolygon(pos, types, size, holes[i2], holes[i2 + 1] || pos.length, cell, code);
52431
+ parts = bisectPolygon(pos, types, size2, holes[i2], holes[i2 + 1] || pos.length, cell, code);
52420
52432
  if (parts[0]) {
52421
52433
  polygonLow.holes.push(polygonLow.pos.length);
52422
52434
  polygonLow.pos = concatInPlace(polygonLow.pos, parts[0].pos);
@@ -52447,8 +52459,8 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
52447
52459
  }
52448
52460
  return result;
52449
52461
  }
52450
- function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2, edge) {
52451
- const numPoints = (endIndex - startIndex) / size;
52462
+ function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2, edge) {
52463
+ const numPoints = (endIndex - startIndex) / size2;
52452
52464
  const resultLow = [];
52453
52465
  const resultHigh = [];
52454
52466
  const typesLow = [];
@@ -52457,15 +52469,15 @@ function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2,
52457
52469
  let p;
52458
52470
  let side;
52459
52471
  let type;
52460
- const prev2 = getPointAtIndex(positions, numPoints - 1, size, startIndex);
52472
+ const prev2 = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
52461
52473
  let prevSide = Math.sign(edge & 8 ? prev2[1] - bbox2[3] : prev2[0] - bbox2[2]);
52462
52474
  let prevType = edgeTypes && edgeTypes[numPoints - 1];
52463
52475
  let lowPointCount = 0;
52464
52476
  let highPointCount = 0;
52465
52477
  for (let i2 = 0; i2 < numPoints; i2++) {
52466
- p = getPointAtIndex(positions, i2, size, startIndex, p);
52478
+ p = getPointAtIndex(positions, i2, size2, startIndex, p);
52467
52479
  side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
52468
- type = edgeTypes && edgeTypes[startIndex / size + i2];
52480
+ type = edgeTypes && edgeTypes[startIndex / size2 + i2];
52469
52481
  if (side && prevSide && prevSide !== side) {
52470
52482
  intersect(prev2, p, edge, bbox2, scratchPoint);
52471
52483
  push(resultLow, scratchPoint) && typesLow.push(prevType);
@@ -52519,12 +52531,12 @@ function moveToNeighborCell(cell, gridResolution, edge) {
52519
52531
  cell[2] -= gridResolution;
52520
52532
  }
52521
52533
  }
52522
- function getBoundingBox$2(positions, size, endIndex, out) {
52534
+ function getBoundingBox$2(positions, size2, endIndex, out) {
52523
52535
  let minX = Infinity;
52524
52536
  let maxX = -Infinity;
52525
52537
  let minY = Infinity;
52526
52538
  let maxY = -Infinity;
52527
- for (let i2 = 0; i2 < endIndex; i2 += size) {
52539
+ for (let i2 = 0; i2 < endIndex; i2 += size2) {
52528
52540
  const x = positions[i2];
52529
52541
  const y = positions[i2 + 1];
52530
52542
  minX = x < minX ? x : minX;
@@ -52541,29 +52553,29 @@ function getBoundingBox$2(positions, size, endIndex, out) {
52541
52553
  const DEFAULT_MAX_LATITUDE = 85.051129;
52542
52554
  function cutPolylineByMercatorBounds(positions, options) {
52543
52555
  const {
52544
- size = 2,
52556
+ size: size2 = 2,
52545
52557
  startIndex = 0,
52546
52558
  endIndex = positions.length,
52547
52559
  normalize: normalize2 = true
52548
52560
  } = options || {};
52549
52561
  const newPositions = positions.slice(startIndex, endIndex);
52550
- wrapLongitudesForShortestPath(newPositions, size, 0, endIndex - startIndex);
52562
+ wrapLongitudesForShortestPath(newPositions, size2, 0, endIndex - startIndex);
52551
52563
  const parts = cutPolylineByGrid(newPositions, {
52552
- size,
52564
+ size: size2,
52553
52565
  broken: true,
52554
52566
  gridResolution: 360,
52555
52567
  gridOffset: [-180, -180]
52556
52568
  });
52557
52569
  if (normalize2) {
52558
52570
  for (const part of parts) {
52559
- shiftLongitudesIntoRange(part, size);
52571
+ shiftLongitudesIntoRange(part, size2);
52560
52572
  }
52561
52573
  }
52562
52574
  return parts;
52563
52575
  }
52564
52576
  function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
52565
52577
  const {
52566
- size = 2,
52578
+ size: size2 = 2,
52567
52579
  normalize: normalize2 = true,
52568
52580
  edgeTypes = false
52569
52581
  } = options || {};
@@ -52575,36 +52587,36 @@ function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
52575
52587
  for (let ringIndex = 0; ringIndex <= holeIndices.length; ringIndex++) {
52576
52588
  const srcEndIndex = holeIndices[ringIndex] || positions.length;
52577
52589
  const targetStartIndex = targetIndex;
52578
- const splitIndex = findSplitIndex(positions, size, srcStartIndex, srcEndIndex);
52590
+ const splitIndex = findSplitIndex(positions, size2, srcStartIndex, srcEndIndex);
52579
52591
  for (let i2 = splitIndex; i2 < srcEndIndex; i2++) {
52580
52592
  newPositions[targetIndex++] = positions[i2];
52581
52593
  }
52582
52594
  for (let i2 = srcStartIndex; i2 < splitIndex; i2++) {
52583
52595
  newPositions[targetIndex++] = positions[i2];
52584
52596
  }
52585
- wrapLongitudesForShortestPath(newPositions, size, targetStartIndex, targetIndex);
52586
- insertPoleVertices(newPositions, size, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
52597
+ wrapLongitudesForShortestPath(newPositions, size2, targetStartIndex, targetIndex);
52598
+ insertPoleVertices(newPositions, size2, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
52587
52599
  srcStartIndex = srcEndIndex;
52588
52600
  newHoleIndices[ringIndex] = targetIndex;
52589
52601
  }
52590
52602
  newHoleIndices.pop();
52591
52603
  const parts = cutPolygonByGrid(newPositions, newHoleIndices, {
52592
- size,
52604
+ size: size2,
52593
52605
  gridResolution: 360,
52594
52606
  gridOffset: [-180, -180],
52595
52607
  edgeTypes
52596
52608
  });
52597
52609
  if (normalize2) {
52598
52610
  for (const part of parts) {
52599
- shiftLongitudesIntoRange(part.positions, size);
52611
+ shiftLongitudesIntoRange(part.positions, size2);
52600
52612
  }
52601
52613
  }
52602
52614
  return parts;
52603
52615
  }
52604
- function findSplitIndex(positions, size, startIndex, endIndex) {
52616
+ function findSplitIndex(positions, size2, startIndex, endIndex) {
52605
52617
  let maxLat = -1;
52606
52618
  let pointIndex = -1;
52607
- for (let i2 = startIndex + 1; i2 < endIndex; i2 += size) {
52619
+ for (let i2 = startIndex + 1; i2 < endIndex; i2 += size2) {
52608
52620
  const lat = Math.abs(positions[i2]);
52609
52621
  if (lat > maxLat) {
52610
52622
  maxLat = lat;
@@ -52613,11 +52625,11 @@ function findSplitIndex(positions, size, startIndex, endIndex) {
52613
52625
  }
52614
52626
  return pointIndex;
52615
52627
  }
52616
- function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
52628
+ function insertPoleVertices(positions, size2, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
52617
52629
  const firstLng = positions[startIndex];
52618
- const lastLng = positions[endIndex - size];
52630
+ const lastLng = positions[endIndex - size2];
52619
52631
  if (Math.abs(firstLng - lastLng) > 180) {
52620
- const p = getPointAtIndex(positions, 0, size, startIndex);
52632
+ const p = getPointAtIndex(positions, 0, size2, startIndex);
52621
52633
  p[0] += Math.round((lastLng - firstLng) / 360) * 360;
52622
52634
  push(positions, p);
52623
52635
  p[1] = Math.sign(p[1]) * maxLatitude;
@@ -52626,10 +52638,10 @@ function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude =
52626
52638
  push(positions, p);
52627
52639
  }
52628
52640
  }
52629
- function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
52641
+ function wrapLongitudesForShortestPath(positions, size2, startIndex, endIndex) {
52630
52642
  let prevLng = positions[0];
52631
52643
  let lng;
52632
- for (let i2 = startIndex; i2 < endIndex; i2 += size) {
52644
+ for (let i2 = startIndex; i2 < endIndex; i2 += size2) {
52633
52645
  lng = positions[i2];
52634
52646
  const delta = lng - prevLng;
52635
52647
  if (delta > 180 || delta < -180) {
@@ -52638,11 +52650,11 @@ function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
52638
52650
  positions[i2] = prevLng = lng;
52639
52651
  }
52640
52652
  }
52641
- function shiftLongitudesIntoRange(positions, size) {
52653
+ function shiftLongitudesIntoRange(positions, size2) {
52642
52654
  let refLng;
52643
- const pointCount = positions.length / size;
52655
+ const pointCount = positions.length / size2;
52644
52656
  for (let i2 = 0; i2 < pointCount; i2++) {
52645
- refLng = positions[i2 * size];
52657
+ refLng = positions[i2 * size2];
52646
52658
  if ((refLng + 180) % 360 !== 0) {
52647
52659
  break;
52648
52660
  }
@@ -52652,7 +52664,7 @@ function shiftLongitudesIntoRange(positions, size) {
52652
52664
  return;
52653
52665
  }
52654
52666
  for (let i2 = 0; i2 < pointCount; i2++) {
52655
- positions[i2 * size] += delta;
52667
+ positions[i2 * size2] += delta;
52656
52668
  }
52657
52669
  }
52658
52670
  class ColumnGeometry extends Geometry {
@@ -53051,14 +53063,14 @@ class GridCellLayer extends ColumnLayer {
53051
53063
  }
53052
53064
  _defineProperty(GridCellLayer, "layerName", "GridCellLayer");
53053
53065
  _defineProperty(GridCellLayer, "defaultProps", defaultProps$E);
53054
- function normalizePath(path, size, gridResolution, wrapLongitude) {
53066
+ function normalizePath(path, size2, gridResolution, wrapLongitude) {
53055
53067
  let flatPath;
53056
53068
  if (Array.isArray(path[0])) {
53057
- const length2 = path.length * size;
53069
+ const length2 = path.length * size2;
53058
53070
  flatPath = new Array(length2);
53059
53071
  for (let i2 = 0; i2 < path.length; i2++) {
53060
- for (let j = 0; j < size; j++) {
53061
- flatPath[i2 * size + j] = path[i2][j] || 0;
53072
+ for (let j = 0; j < size2; j++) {
53073
+ flatPath[i2 * size2 + j] = path[i2][j] || 0;
53062
53074
  }
53063
53075
  }
53064
53076
  } else {
@@ -53066,13 +53078,13 @@ function normalizePath(path, size, gridResolution, wrapLongitude) {
53066
53078
  }
53067
53079
  if (gridResolution) {
53068
53080
  return cutPolylineByGrid(flatPath, {
53069
- size,
53081
+ size: size2,
53070
53082
  gridResolution
53071
53083
  });
53072
53084
  }
53073
53085
  if (wrapLongitude) {
53074
53086
  return cutPolylineByMercatorBounds(flatPath, {
53075
- size
53087
+ size: size2
53076
53088
  });
53077
53089
  }
53078
53090
  return flatPath;
@@ -53115,11 +53127,11 @@ class PathTesselator extends Tesselator {
53115
53127
  }
53116
53128
  getGeometrySize(path) {
53117
53129
  if (isCut$1(path)) {
53118
- let size = 0;
53130
+ let size2 = 0;
53119
53131
  for (const subPath of path) {
53120
- size += this.getGeometrySize(subPath);
53132
+ size2 += this.getGeometrySize(subPath);
53121
53133
  }
53122
- return size;
53134
+ return size2;
53123
53135
  }
53124
53136
  const numPoints = this.getPathLength(path);
53125
53137
  if (numPoints < 2) {
@@ -53927,34 +53939,34 @@ function isNestedRingClosed(simplePolygon) {
53927
53939
  const p1 = simplePolygon[simplePolygon.length - 1];
53928
53940
  return p02[0] === p1[0] && p02[1] === p1[1] && p02[2] === p1[2];
53929
53941
  }
53930
- function isFlatRingClosed(positions, size, startIndex, endIndex) {
53931
- for (let i2 = 0; i2 < size; i2++) {
53932
- if (positions[startIndex + i2] !== positions[endIndex - size + i2]) {
53942
+ function isFlatRingClosed(positions, size2, startIndex, endIndex) {
53943
+ for (let i2 = 0; i2 < size2; i2++) {
53944
+ if (positions[startIndex + i2] !== positions[endIndex - size2 + i2]) {
53933
53945
  return false;
53934
53946
  }
53935
53947
  }
53936
53948
  return true;
53937
53949
  }
53938
- function copyNestedRing(target, targetStartIndex, simplePolygon, size, windingDirection) {
53950
+ function copyNestedRing(target, targetStartIndex, simplePolygon, size2, windingDirection) {
53939
53951
  let targetIndex = targetStartIndex;
53940
53952
  const len2 = simplePolygon.length;
53941
53953
  for (let i2 = 0; i2 < len2; i2++) {
53942
- for (let j = 0; j < size; j++) {
53954
+ for (let j = 0; j < size2; j++) {
53943
53955
  target[targetIndex++] = simplePolygon[i2][j] || 0;
53944
53956
  }
53945
53957
  }
53946
53958
  if (!isNestedRingClosed(simplePolygon)) {
53947
- for (let j = 0; j < size; j++) {
53959
+ for (let j = 0; j < size2; j++) {
53948
53960
  target[targetIndex++] = simplePolygon[0][j] || 0;
53949
53961
  }
53950
53962
  }
53951
53963
  windingOptions.start = targetStartIndex;
53952
53964
  windingOptions.end = targetIndex;
53953
- windingOptions.size = size;
53965
+ windingOptions.size = size2;
53954
53966
  modifyPolygonWindingDirection(target, windingDirection, windingOptions);
53955
53967
  return targetIndex;
53956
53968
  }
53957
- function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex = 0, srcEndIndex, windingDirection) {
53969
+ function copyFlatRing(target, targetStartIndex, positions, size2, srcStartIndex = 0, srcEndIndex, windingDirection) {
53958
53970
  srcEndIndex = srcEndIndex || positions.length;
53959
53971
  const srcLength = srcEndIndex - srcStartIndex;
53960
53972
  if (srcLength <= 0) {
@@ -53964,14 +53976,14 @@ function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex =
53964
53976
  for (let i2 = 0; i2 < srcLength; i2++) {
53965
53977
  target[targetIndex++] = positions[srcStartIndex + i2];
53966
53978
  }
53967
- if (!isFlatRingClosed(positions, size, srcStartIndex, srcEndIndex)) {
53968
- for (let i2 = 0; i2 < size; i2++) {
53979
+ if (!isFlatRingClosed(positions, size2, srcStartIndex, srcEndIndex)) {
53980
+ for (let i2 = 0; i2 < size2; i2++) {
53969
53981
  target[targetIndex++] = positions[srcStartIndex + i2];
53970
53982
  }
53971
53983
  }
53972
53984
  windingOptions.start = targetStartIndex;
53973
53985
  windingOptions.end = targetIndex;
53974
- windingOptions.size = size;
53986
+ windingOptions.size = size2;
53975
53987
  modifyPolygonWindingDirection(target, windingDirection, windingOptions);
53976
53988
  return targetIndex;
53977
53989
  }
@@ -54102,11 +54114,11 @@ class PolygonTesselator extends Tesselator {
54102
54114
  }
54103
54115
  getGeometrySize(polygon2) {
54104
54116
  if (isCut(polygon2)) {
54105
- let size = 0;
54117
+ let size2 = 0;
54106
54118
  for (const subPolygon of polygon2) {
54107
- size += this.getGeometrySize(subPolygon);
54119
+ size2 += this.getGeometrySize(subPolygon);
54108
54120
  }
54109
- return size;
54121
+ return size2;
54110
54122
  }
54111
54123
  return getPositions(polygon2).length / this.positionSize;
54112
54124
  }
@@ -54977,10 +54989,10 @@ function requireTinySdf() {
54977
54989
  this.fontFamily = fontFamily || "sans-serif";
54978
54990
  this.fontWeight = fontWeight || "normal";
54979
54991
  this.radius = radius || 8;
54980
- var size = this.size = this.fontSize + this.buffer * 2;
54981
- var gridSize = size + this.buffer * 2;
54992
+ var size2 = this.size = this.fontSize + this.buffer * 2;
54993
+ var gridSize = size2 + this.buffer * 2;
54982
54994
  this.canvas = document.createElement("canvas");
54983
- this.canvas.width = this.canvas.height = size;
54995
+ this.canvas.width = this.canvas.height = size2;
54984
54996
  this.ctx = this.canvas.getContext("2d");
54985
54997
  this.ctx.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily;
54986
54998
  this.ctx.textAlign = "left";
@@ -54991,7 +55003,7 @@ function requireTinySdf() {
54991
55003
  this.z = new Float64Array(gridSize + 1);
54992
55004
  this.v = new Uint16Array(gridSize);
54993
55005
  this.useMetrics = this.ctx.measureText("A").actualBoundingBoxLeft !== void 0;
54994
- this.middle = Math.round(size / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
55006
+ this.middle = Math.round(size2 / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
54995
55007
  }
54996
55008
  function prepareGrids(imgData, width2, height2, glyphWidth, glyphHeight, gridOuter, gridInner) {
54997
55009
  gridOuter.fill(INF, 0, width2 * height2);
@@ -55248,7 +55260,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
55248
55260
  const y = new Array(numCharacters);
55249
55261
  const rowWidth = new Array(numCharacters);
55250
55262
  const autoWrappingEnabled = (wordBreak === "break-word" || wordBreak === "break-all") && isFinite(maxWidth2) && maxWidth2 > 0;
55251
- const size = [0, 0];
55263
+ const size2 = [0, 0];
55252
55264
  const rowSize = [0, 0];
55253
55265
  let rowOffsetTop = 0;
55254
55266
  let lineStartIndex = 0;
@@ -55269,7 +55281,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
55269
55281
  rowWidth[j] = rowSize[0];
55270
55282
  }
55271
55283
  rowOffsetTop = rowOffsetTop + rowSize[1] * lineHeight;
55272
- size[0] = Math.max(size[0], rowSize[0]);
55284
+ size2[0] = Math.max(size2[0], rowSize[0]);
55273
55285
  }
55274
55286
  lineStartIndex = lineEndIndex;
55275
55287
  }
@@ -55280,12 +55292,12 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
55280
55292
  lineStartIndex++;
55281
55293
  }
55282
55294
  }
55283
- size[1] = rowOffsetTop;
55295
+ size2[1] = rowOffsetTop;
55284
55296
  return {
55285
55297
  x,
55286
55298
  y,
55287
55299
  rowWidth,
55288
- size
55300
+ size: size2
55289
55301
  };
55290
55302
  }
55291
55303
  function getTextFromBuffer({
@@ -56946,14 +56958,14 @@ class GPUGridAggregator {
56946
56958
  }
56947
56959
  static getCellData({
56948
56960
  countsData,
56949
- size = 1
56961
+ size: size2 = 1
56950
56962
  }) {
56951
56963
  const numCells = countsData.length / 4;
56952
- const cellWeights = new Float32Array(numCells * size);
56964
+ const cellWeights = new Float32Array(numCells * size2);
56953
56965
  const cellCounts = new Uint32Array(numCells);
56954
56966
  for (let i2 = 0; i2 < numCells; i2++) {
56955
- for (let sizeIndex = 0; sizeIndex < size; sizeIndex++) {
56956
- cellWeights[i2 * size + sizeIndex] = countsData[i2 * 4 + sizeIndex];
56967
+ for (let sizeIndex = 0; sizeIndex < size2; sizeIndex++) {
56968
+ cellWeights[i2 * size2 + sizeIndex] = countsData[i2 * 4 + sizeIndex];
56957
56969
  }
56958
56970
  cellCounts[i2] = countsData[i2 * 4 + 3];
56959
56971
  }
@@ -57934,7 +57946,7 @@ function pointsToGridHashing(props, aggregationParams) {
57934
57946
  } = aggregationParams;
57935
57947
  const positions = attributes.positions.value;
57936
57948
  const {
57937
- size
57949
+ size: size2
57938
57950
  } = attributes.positions.getAccessor();
57939
57951
  const boundingBox = aggregationParams.boundingBox || getPositionBoundingBox(attributes.positions, numInstances);
57940
57952
  const offsets = aggregationParams.posOffset || [180, 90];
@@ -57959,9 +57971,9 @@ function pointsToGridHashing(props, aggregationParams) {
57959
57971
  const position2 = new Array(3);
57960
57972
  for (const pt of iterable) {
57961
57973
  objectInfo.index++;
57962
- position2[0] = positions[objectInfo.index * size];
57963
- position2[1] = positions[objectInfo.index * size + 1];
57964
- position2[2] = size >= 3 ? positions[objectInfo.index * size + 2] : 0;
57974
+ position2[0] = positions[objectInfo.index * size2];
57975
+ position2[1] = positions[objectInfo.index * size2 + 1];
57976
+ position2[2] = size2 >= 3 ? positions[objectInfo.index * size2 + 2] : 0;
57965
57977
  const [x, y] = projectPoints ? viewport.project(position2) : position2;
57966
57978
  if (Number.isFinite(x) && Number.isFinite(y)) {
57967
57979
  const yIndex = Math.floor((y + offsets[1]) / gridOffset.yOffset);
@@ -58011,7 +58023,7 @@ function getGridLayerDataFromGridHash({
58011
58023
  function getPositionBoundingBox(positionAttribute, numInstance) {
58012
58024
  const positions = positionAttribute.value;
58013
58025
  const {
58014
- size
58026
+ size: size2
58015
58027
  } = positionAttribute.getAccessor();
58016
58028
  let yMin = Infinity;
58017
58029
  let yMax = -Infinity;
@@ -58020,8 +58032,8 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
58020
58032
  let y;
58021
58033
  let x;
58022
58034
  for (let i2 = 0; i2 < numInstance; i2++) {
58023
- x = positions[i2 * size];
58024
- y = positions[i2 * size + 1];
58035
+ x = positions[i2 * size2];
58036
+ y = positions[i2 * size2 + 1];
58025
58037
  if (Number.isFinite(x) && Number.isFinite(y)) {
58026
58038
  yMin = y < yMin ? y : yMin;
58027
58039
  yMax = y > yMax ? y : yMax;
@@ -59114,9 +59126,9 @@ function requireLong() {
59114
59126
  var radixToPower = fromNumber(pow_dbl(radix, 8));
59115
59127
  var result = ZERO2;
59116
59128
  for (var i2 = 0; i2 < str.length; i2 += 8) {
59117
- var size = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size), radix);
59118
- if (size < 8) {
59119
- var power = fromNumber(pow_dbl(radix, size));
59129
+ var size2 = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size2), radix);
59130
+ if (size2 < 8) {
59131
+ var power = fromNumber(pow_dbl(radix, size2));
59120
59132
  result = result.mul(power).add(fromNumber(value));
59121
59133
  } else {
59122
59134
  result = result.mul(radixToPower);
@@ -62034,10 +62046,10 @@ var libh3 = function(libh32) {
62034
62046
  function abortOnCannotGrowMemory(requestedSize) {
62035
62047
  abort("OOM");
62036
62048
  }
62037
- function emscripten_realloc_buffer(size) {
62049
+ function emscripten_realloc_buffer(size2) {
62038
62050
  try {
62039
- var newBuffer = new ArrayBuffer(size);
62040
- if (newBuffer.byteLength != size) {
62051
+ var newBuffer = new ArrayBuffer(size2);
62052
+ if (newBuffer.byteLength != size2) {
62041
62053
  return;
62042
62054
  }
62043
62055
  new Int8Array(newBuffer).set(HEAP8);
@@ -74971,8 +74983,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
74971
74983
  5125: Uint32Array,
74972
74984
  5126: Float32Array
74973
74985
  };
74974
- function getAccessorTypeFromSize(size) {
74975
- const type = TYPES[size - 1];
74986
+ function getAccessorTypeFromSize(size2) {
74987
+ const type = TYPES[size2 - 1];
74976
74988
  return type || TYPES[0];
74977
74989
  }
74978
74990
  function getComponentTypeFromArray(typedArray) {
@@ -75389,23 +75401,23 @@ class GLTFScenegraph {
75389
75401
  return attributeName;
75390
75402
  }
75391
75403
  }
75392
- _getAccessorMinMax(buffer, size) {
75404
+ _getAccessorMinMax(buffer, size2) {
75393
75405
  const result = {
75394
75406
  min: null,
75395
75407
  max: null
75396
75408
  };
75397
- if (buffer.length < size) {
75409
+ if (buffer.length < size2) {
75398
75410
  return result;
75399
75411
  }
75400
75412
  result.min = [];
75401
75413
  result.max = [];
75402
- const initValues = buffer.subarray(0, size);
75414
+ const initValues = buffer.subarray(0, size2);
75403
75415
  for (const value of initValues) {
75404
75416
  result.min.push(value);
75405
75417
  result.max.push(value);
75406
75418
  }
75407
- for (let index2 = size; index2 < buffer.length; index2 += size) {
75408
- for (let componentIndex = 0; componentIndex < size; componentIndex++) {
75419
+ for (let index2 = size2; index2 < buffer.length; index2 += size2) {
75420
+ for (let componentIndex = 0; componentIndex < size2; componentIndex++) {
75409
75421
  result.min[0 + componentIndex] = Math.min(result.min[0 + componentIndex], buffer[index2 + componentIndex]);
75410
75422
  result.max[0 + componentIndex] = Math.max(result.max[0 + componentIndex], buffer[index2 + componentIndex]);
75411
75423
  }
@@ -75435,9 +75447,9 @@ const DECODERS = {
75435
75447
  TRIANGLES: "meshopt_decodeIndexBuffer",
75436
75448
  INDICES: "meshopt_decodeIndexSequence"
75437
75449
  };
75438
- async function meshoptDecodeGltfBuffer(target, count2, size, source, mode, filter2 = "NONE") {
75450
+ async function meshoptDecodeGltfBuffer(target, count2, size2, source, mode, filter2 = "NONE") {
75439
75451
  const instance = await loadWasmInstance();
75440
- decode$5(instance, instance.exports[DECODERS[mode]], target, count2, size, source, instance.exports[FILTERS[filter2 || "NONE"]]);
75452
+ decode$5(instance, instance.exports[DECODERS[mode]], target, count2, size2, source, instance.exports[FILTERS[filter2 || "NONE"]]);
75441
75453
  }
75442
75454
  let wasmPromise;
75443
75455
  async function loadWasmInstance() {
@@ -75468,18 +75480,18 @@ function unpack(data) {
75468
75480
  }
75469
75481
  return result.buffer.slice(0, write);
75470
75482
  }
75471
- function decode$5(instance, fun, target, count2, size, source, filter2) {
75483
+ function decode$5(instance, fun, target, count2, size2, source, filter2) {
75472
75484
  const sbrk = instance.exports.sbrk;
75473
75485
  const count4 = count2 + 3 & -4;
75474
- const tp = sbrk(count4 * size);
75486
+ const tp = sbrk(count4 * size2);
75475
75487
  const sp = sbrk(source.length);
75476
75488
  const heap = new Uint8Array(instance.exports.memory.buffer);
75477
75489
  heap.set(source, sp);
75478
- const res = fun(tp, count2, size, sp, source.length);
75490
+ const res = fun(tp, count2, size2, sp, source.length);
75479
75491
  if (res === 0 && filter2) {
75480
- filter2(tp, count4, size);
75492
+ filter2(tp, count4, size2);
75481
75493
  }
75482
- target.set(heap.subarray(tp, tp + count2 * size));
75494
+ target.set(heap.subarray(tp, tp + count2 * size2));
75483
75495
  sbrk(tp - sbrk(0));
75484
75496
  if (res !== 0) {
75485
75497
  throw new Error("Malformed buffer data: ".concat(res));
@@ -76161,11 +76173,11 @@ class DracoParser {
76161
76173
  loaderAttribute.name = attributeName;
76162
76174
  const {
76163
76175
  value,
76164
- size
76176
+ size: size2
76165
76177
  } = this._getAttributeValues(dracoGeometry, loaderAttribute);
76166
76178
  attributes[attributeName] = {
76167
76179
  value,
76168
- size,
76180
+ size: size2,
76169
76181
  byteOffset: loaderAttribute.byte_offset,
76170
76182
  byteStride: loaderAttribute.byte_stride,
76171
76183
  normalized: loaderAttribute.normalized
@@ -76434,36 +76446,36 @@ function getGLTFAccessors(attributes) {
76434
76446
  function getGLTFAccessor(attribute) {
76435
76447
  const {
76436
76448
  buffer,
76437
- size,
76449
+ size: size2,
76438
76450
  count: count2
76439
76451
  } = getAccessorData(attribute);
76440
76452
  const glTFAccessor = {
76441
76453
  value: buffer,
76442
- size,
76454
+ size: size2,
76443
76455
  byteOffset: 0,
76444
76456
  count: count2,
76445
- type: getAccessorTypeFromSize(size),
76457
+ type: getAccessorTypeFromSize(size2),
76446
76458
  componentType: getComponentTypeFromArray(buffer)
76447
76459
  };
76448
76460
  return glTFAccessor;
76449
76461
  }
76450
76462
  function getAccessorData(attribute) {
76451
76463
  let buffer = attribute;
76452
- let size = 1;
76464
+ let size2 = 1;
76453
76465
  let count2 = 0;
76454
76466
  if (attribute && attribute.value) {
76455
76467
  buffer = attribute.value;
76456
- size = attribute.size || 1;
76468
+ size2 = attribute.size || 1;
76457
76469
  }
76458
76470
  if (buffer) {
76459
76471
  if (!ArrayBuffer.isView(buffer)) {
76460
76472
  buffer = toTypedArray(buffer, Float32Array);
76461
76473
  }
76462
- count2 = buffer.length / size;
76474
+ count2 = buffer.length / size2;
76463
76475
  }
76464
76476
  return {
76465
76477
  buffer,
76466
- size,
76478
+ size: size2,
76467
76479
  count: count2
76468
76480
  };
76469
76481
  }
@@ -78706,8 +78718,8 @@ function getObbSize(halfAxes) {
78706
78718
  const axeY = halfAxes.getColumn(1);
78707
78719
  const axeZ = halfAxes.getColumn(2);
78708
78720
  const farthestVertex = scratchVector$1.add(axeY).add(axeZ);
78709
- const size = farthestVertex.len();
78710
- return size;
78721
+ const size2 = farthestVertex.len();
78722
+ return size2;
78711
78723
  }
78712
78724
  const TILE_CONTENT_STATE = {
78713
78725
  UNLOADED: 0,
@@ -80708,15 +80720,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length
80708
80720
  } = tile3DAccessor;
80709
80721
  assert$d(tile3DAccessor.componentType);
80710
80722
  const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
80711
- const size = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
80723
+ const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
80712
80724
  const unpacker = UNPACKER[tile3DAccessor.type];
80713
80725
  const packer = PACKER[tile3DAccessor.type];
80714
80726
  byteOffset += tile3DAccessor.byteOffset;
80715
- const values2 = GLType.createTypedArray(type, buffer, byteOffset, size * length2);
80727
+ const values2 = GLType.createTypedArray(type, buffer, byteOffset, size2 * length2);
80716
80728
  return {
80717
80729
  values: values2,
80718
80730
  type,
80719
- size,
80731
+ size: size2,
80720
80732
  unpacker,
80721
80733
  packer
80722
80734
  };
@@ -99066,8 +99078,8 @@ function fitExtent(projection2, extent2, object2) {
99066
99078
  if (clip2 != null) projection2.clipExtent(clip2);
99067
99079
  return projection2.scale(k * 150).translate([x, y]);
99068
99080
  }
99069
- function fitSize(projection2, size, object2) {
99070
- return fitExtent(projection2, [[0, 0], size], object2);
99081
+ function fitSize(projection2, size2, object2) {
99082
+ return fitExtent(projection2, [[0, 0], size2], object2);
99071
99083
  }
99072
99084
  var maxDepth = 16, cosMinDistance = cos(30 * radians);
99073
99085
  function resample(project2, delta2) {
@@ -99193,8 +99205,8 @@ function projectionMutator(projectAt) {
99193
99205
  projection2.fitExtent = function(extent2, object2) {
99194
99206
  return fitExtent(projection2, extent2, object2);
99195
99207
  };
99196
- projection2.fitSize = function(size, object2) {
99197
- return fitSize(projection2, size, object2);
99208
+ projection2.fitSize = function(size2, object2) {
99209
+ return fitSize(projection2, size2, object2);
99198
99210
  };
99199
99211
  function recenter() {
99200
99212
  projectRotate = compose$1(rotate2 = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project2);
@@ -99315,8 +99327,8 @@ function albersUsa() {
99315
99327
  albersUsa2.fitExtent = function(extent2, object2) {
99316
99328
  return fitExtent(albersUsa2, extent2, object2);
99317
99329
  };
99318
- albersUsa2.fitSize = function(size, object2) {
99319
- return fitSize(albersUsa2, size, object2);
99330
+ albersUsa2.fitSize = function(size2, object2) {
99331
+ return fitSize(albersUsa2, size2, object2);
99320
99332
  };
99321
99333
  function reset() {
99322
99334
  cache2 = cacheStream = null;
@@ -99479,8 +99491,8 @@ function identity$3() {
99479
99491
  fitExtent: function(extent2, object2) {
99480
99492
  return fitExtent(projection2, extent2, object2);
99481
99493
  },
99482
- fitSize: function(size, object2) {
99483
- return fitSize(projection2, size, object2);
99494
+ fitSize: function(size2, object2) {
99495
+ return fitSize(projection2, size2, object2);
99484
99496
  }
99485
99497
  };
99486
99498
  }
@@ -100098,18 +100110,18 @@ function requirePolygonClipping_umd() {
100098
100110
  if (presort === void 0) {
100099
100111
  presort = false;
100100
100112
  }
100101
- var size = keys2.length;
100113
+ var size2 = keys2.length;
100102
100114
  var comparator2 = this._comparator;
100103
- if (presort) sort(keys2, values2, 0, size - 1, comparator2);
100115
+ if (presort) sort(keys2, values2, 0, size2 - 1, comparator2);
100104
100116
  if (this._root === null) {
100105
- this._root = loadRecursive(keys2, values2, 0, size);
100106
- this._size = size;
100117
+ this._root = loadRecursive(keys2, values2, 0, size2);
100118
+ this._size = size2;
100107
100119
  } else {
100108
100120
  var mergedList = mergeLists(this.toList(), createList(keys2, values2), comparator2);
100109
- size = this._size + size;
100121
+ size2 = this._size + size2;
100110
100122
  this._root = sortedListToBST({
100111
100123
  head: mergedList
100112
- }, 0, size);
100124
+ }, 0, size2);
100113
100125
  }
100114
100126
  return this;
100115
100127
  };
@@ -100159,9 +100171,9 @@ function requirePolygonClipping_umd() {
100159
100171
  }()
100160
100172
  );
100161
100173
  function loadRecursive(keys2, values2, start, end) {
100162
- var size = end - start;
100163
- if (size > 0) {
100164
- var middle = start + Math.floor(size / 2);
100174
+ var size2 = end - start;
100175
+ if (size2 > 0) {
100176
+ var middle = start + Math.floor(size2 / 2);
100165
100177
  var key = keys2[middle];
100166
100178
  var data = values2[middle];
100167
100179
  var node2 = new Node2(key, data);
@@ -100201,9 +100213,9 @@ function requirePolygonClipping_umd() {
100201
100213
  return head.next;
100202
100214
  }
100203
100215
  function sortedListToBST(list, start, end) {
100204
- var size = end - start;
100205
- if (size > 0) {
100206
- var middle = start + Math.floor(size / 2);
100216
+ var size2 = end - start;
100217
+ if (size2 > 0) {
100218
+ var middle = start + Math.floor(size2 / 2);
100207
100219
  var left = sortedListToBST(list, start, middle);
100208
100220
  var root2 = list.head;
100209
100221
  root2.left = left;
@@ -111265,19 +111277,19 @@ function requireExtrudeMode() {
111265
111277
  if (editHandle) {
111266
111278
  var featureIndex = editHandle.properties.featureIndex;
111267
111279
  var positionIndexes = editHandle.properties.positionIndexes;
111268
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
111269
- positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size) : positionIndexes;
111270
- var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, props.data);
111280
+ var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
111281
+ positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
111282
+ var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
111271
111283
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
111272
111284
  if (p1 && p2) {
111273
111285
  var _generatePointsParall = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall2 = _slicedToArray(_generatePointsParall, 2), p3 = _generatePointsParall2[0], p4 = _generatePointsParall2[1];
111274
- var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
111286
+ var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
111275
111287
  props.onEdit({
111276
111288
  updatedData,
111277
111289
  editType: "extruding",
111278
111290
  editContext: {
111279
111291
  featureIndexes: [featureIndex],
111280
- positionIndexes: this.nextPositionIndexes(positionIndexes, size),
111292
+ positionIndexes: this.nextPositionIndexes(positionIndexes, size2),
111281
111293
  position: p3
111282
111294
  }
111283
111295
  });
@@ -111292,15 +111304,15 @@ function requireExtrudeMode() {
111292
111304
  var editHandle = (0, _utils.getPickedIntermediateEditHandle)(event.picks);
111293
111305
  if (selectedFeatureIndexes.length && editHandle) {
111294
111306
  var _editHandle$propertie = editHandle.properties, positionIndexes = _editHandle$propertie.positionIndexes, featureIndex = _editHandle$propertie.featureIndex;
111295
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
111296
- var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, props.data);
111307
+ var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
111308
+ var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
111297
111309
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
111298
111310
  if (p1 && p2) {
111299
111311
  var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data);
111300
- if (!this.isOrthogonal(positionIndexes, featureIndex, size, props.data)) {
111312
+ if (!this.isOrthogonal(positionIndexes, featureIndex, size2, props.data)) {
111301
111313
  updatedData = updatedData.addPosition(featureIndex, positionIndexes, p2);
111302
111314
  }
111303
- if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size), featureIndex, size, props.data)) {
111315
+ if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size2), featureIndex, size2, props.data)) {
111304
111316
  updatedData = updatedData.addPosition(featureIndex, positionIndexes, p1);
111305
111317
  this.isPointAdded = true;
111306
111318
  }
@@ -111324,13 +111336,13 @@ function requireExtrudeMode() {
111324
111336
  if (selectedFeatureIndexes.length && editHandle) {
111325
111337
  var featureIndex = editHandle.properties.featureIndex;
111326
111338
  var positionIndexes = editHandle.properties.positionIndexes;
111327
- var size = this.coordinatesSize(positionIndexes, featureIndex, props.data);
111328
- positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size) : positionIndexes;
111329
- var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, props.data);
111339
+ var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
111340
+ positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
111341
+ var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
111330
111342
  var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
111331
111343
  if (p1 && p2) {
111332
111344
  var _generatePointsParall3 = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall4 = _slicedToArray(_generatePointsParall3, 2), p3 = _generatePointsParall4[0], p4 = _generatePointsParall4[1];
111333
- var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
111345
+ var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
111334
111346
  props.onEdit({
111335
111347
  updatedData,
111336
111348
  editType: "extruded",
@@ -111348,23 +111360,23 @@ function requireExtrudeMode() {
111348
111360
  key: "coordinatesSize",
111349
111361
  value: function coordinatesSize(positionIndexes, featureIndex, _ref) {
111350
111362
  var features = _ref.features;
111351
- var size = 0;
111363
+ var size2 = 0;
111352
111364
  if (Array.isArray(positionIndexes)) {
111353
111365
  var feature2 = features[featureIndex];
111354
111366
  var coordinates2 = feature2.geometry.coordinates;
111355
111367
  if (positionIndexes.length === 3) {
111356
111368
  var _positionIndexes = _slicedToArray(positionIndexes, 2), a2 = _positionIndexes[0], b = _positionIndexes[1];
111357
111369
  if (coordinates2.length && coordinates2[a2].length) {
111358
- size = coordinates2[a2][b].length;
111370
+ size2 = coordinates2[a2][b].length;
111359
111371
  }
111360
111372
  } else {
111361
111373
  var _positionIndexes2 = _slicedToArray(positionIndexes, 1), _b2 = _positionIndexes2[0];
111362
111374
  if (coordinates2.length && coordinates2[_b2].length) {
111363
- size = coordinates2[_b2].length;
111375
+ size2 = coordinates2[_b2].length;
111364
111376
  }
111365
111377
  }
111366
111378
  }
111367
- return size;
111379
+ return size2;
111368
111380
  }
111369
111381
  }, {
111370
111382
  key: "getBearing",
@@ -111377,15 +111389,15 @@ function requireExtrudeMode() {
111377
111389
  }
111378
111390
  }, {
111379
111391
  key: "isOrthogonal",
111380
- value: function isOrthogonal(positionIndexes, featureIndex, size, features) {
111392
+ value: function isOrthogonal(positionIndexes, featureIndex, size2, features) {
111381
111393
  if (!Array.isArray(positionIndexes)) {
111382
111394
  return false;
111383
111395
  }
111384
- if (positionIndexes[positionIndexes.length - 1] === size - 1) {
111396
+ if (positionIndexes[positionIndexes.length - 1] === size2 - 1) {
111385
111397
  positionIndexes[positionIndexes.length - 1] = 0;
111386
111398
  }
111387
- var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size), featureIndex, features);
111388
- var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes, size), featureIndex, features);
111399
+ var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, features);
111400
+ var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes, size2), featureIndex, features);
111389
111401
  var currentPoint = this.getPointForPositionIndexes(positionIndexes, featureIndex, features);
111390
111402
  var prevAngle = this.getBearing(currentPoint, prevPoint);
111391
111403
  var nextAngle = this.getBearing(currentPoint, nextPoint);
@@ -111393,25 +111405,25 @@ function requireExtrudeMode() {
111393
111405
  }
111394
111406
  }, {
111395
111407
  key: "nextPositionIndexes",
111396
- value: function nextPositionIndexes(positionIndexes, size) {
111408
+ value: function nextPositionIndexes(positionIndexes, size2) {
111397
111409
  if (!Array.isArray(positionIndexes)) {
111398
111410
  return [];
111399
111411
  }
111400
111412
  var next2 = _toConsumableArray(positionIndexes);
111401
111413
  if (next2.length) {
111402
- next2[next2.length - 1] = next2[next2.length - 1] === size - 1 ? 0 : next2[next2.length - 1] + 1;
111414
+ next2[next2.length - 1] = next2[next2.length - 1] === size2 - 1 ? 0 : next2[next2.length - 1] + 1;
111403
111415
  }
111404
111416
  return next2;
111405
111417
  }
111406
111418
  }, {
111407
111419
  key: "prevPositionIndexes",
111408
- value: function prevPositionIndexes(positionIndexes, size) {
111420
+ value: function prevPositionIndexes(positionIndexes, size2) {
111409
111421
  if (!Array.isArray(positionIndexes)) {
111410
111422
  return [];
111411
111423
  }
111412
111424
  var prev2 = _toConsumableArray(positionIndexes);
111413
111425
  if (prev2.length) {
111414
- prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ? size - 2 : prev2[prev2.length - 1] - 1;
111426
+ prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ? size2 - 2 : prev2[prev2.length - 1] - 1;
111415
111427
  }
111416
111428
  return prev2;
111417
111429
  }
@@ -123410,22 +123422,22 @@ function addDecoder(cases, importFn) {
123410
123422
  }
123411
123423
  cases.forEach((c2) => registry$1.set(c2, importFn));
123412
123424
  }
123413
- addDecoder([void 0, 1], () => import("./raw-DN9VDLw4.js").then((m2) => m2.default));
123414
- addDecoder(5, () => import("./lzw-CD_6nkaP.js").then((m2) => m2.default));
123425
+ addDecoder([void 0, 1], () => import("./raw-DR0jpevb.js").then((m2) => m2.default));
123426
+ addDecoder(5, () => import("./lzw-BJeBHXe5.js").then((m2) => m2.default));
123415
123427
  addDecoder(6, () => {
123416
123428
  throw new Error("old style JPEG compression is not supported.");
123417
123429
  });
123418
- addDecoder(7, () => import("./jpeg-apiltN1B.js").then((m2) => m2.default));
123419
- addDecoder([8, 32946], () => import("./deflate-ByvNJ45k.js").then((m2) => m2.default));
123420
- addDecoder(32773, () => import("./packbits-4HWilLQb.js").then((m2) => m2.default));
123430
+ addDecoder(7, () => import("./jpeg-Z95qR9G6.js").then((m2) => m2.default));
123431
+ addDecoder([8, 32946], () => import("./deflate-B3amQysb.js").then((m2) => m2.default));
123432
+ addDecoder(32773, () => import("./packbits-Bg747Gns.js").then((m2) => m2.default));
123421
123433
  addDecoder(
123422
123434
  34887,
123423
- () => import("./lerc-hQf_oOH-.js").then(async (m2) => {
123435
+ () => import("./lerc-CYJUh1Nd.js").then(async (m2) => {
123424
123436
  await m2.zstd.init();
123425
123437
  return m2;
123426
123438
  }).then((m2) => m2.default)
123427
123439
  );
123428
- addDecoder(50001, () => import("./webimage-CQtI0xlA.js").then((m2) => m2.default));
123440
+ addDecoder(50001, () => import("./webimage-FX5f_cgB.js").then((m2) => m2.default));
123429
123441
  function decodeRowAcc(row, stride) {
123430
123442
  let length2 = row.length - stride;
123431
123443
  let offset2 = 0;
@@ -124655,10 +124667,10 @@ const putShortMSB = (s2, b) => {
124655
124667
  s2.pending_buf[s2.pending++] = b >>> 8 & 255;
124656
124668
  s2.pending_buf[s2.pending++] = b & 255;
124657
124669
  };
124658
- const read_buf = (strm, buf, start, size) => {
124670
+ const read_buf = (strm, buf, start, size2) => {
124659
124671
  let len2 = strm.avail_in;
124660
- if (len2 > size) {
124661
- len2 = size;
124672
+ if (len2 > size2) {
124673
+ len2 = size2;
124662
124674
  }
124663
124675
  if (len2 === 0) {
124664
124676
  return 0;
@@ -131181,9 +131193,9 @@ const SI_PREFIXES = [
131181
131193
  { symbol: "z", exponent: -21 },
131182
131194
  { symbol: "y", exponent: -24 }
131183
131195
  ];
131184
- function sizeToMeters(size, unit2) {
131196
+ function sizeToMeters(size2, unit2) {
131185
131197
  if (!unit2 || unit2 === "m") {
131186
- return size;
131198
+ return size2;
131187
131199
  }
131188
131200
  if (unit2.length > 1) {
131189
131201
  let unitPrefix = unit2.substring(0, unit2.length - 1);
@@ -131192,7 +131204,7 @@ function sizeToMeters(size, unit2) {
131192
131204
  }
131193
131205
  const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
131194
131206
  if (unitObj) {
131195
- return size * 10 ** unitObj.exponent;
131207
+ return size2 * 10 ** unitObj.exponent;
131196
131208
  }
131197
131209
  }
131198
131210
  throw new Error("Received unknown unit");
@@ -132096,7 +132108,7 @@ const defaultProps$2$1 = {
132096
132108
  };
132097
132109
  const ScaleBarLayer = class extends CompositeLayer {
132098
132110
  renderLayers() {
132099
- const { id, unit: unit2, size, position: position2, viewState, length: length2, snap } = this.props;
132111
+ const { id, unit: unit2, size: size2, position: position2, viewState, length: length2, snap } = this.props;
132100
132112
  const boundingBox = makeBoundingBox(viewState);
132101
132113
  const { zoom } = viewState;
132102
132114
  const viewLength = boundingBox[2][0] - boundingBox[0][0];
@@ -132106,10 +132118,10 @@ const ScaleBarLayer = class extends CompositeLayer {
132106
132118
  (boundingBox[2][1] - boundingBox[0][1]) * 7e-3
132107
132119
  );
132108
132120
  let adjustedBarLength = barLength;
132109
- let displayNumber = (barLength * size).toPrecision(5);
132121
+ let displayNumber = (barLength * size2).toPrecision(5);
132110
132122
  let displayUnit = unit2;
132111
132123
  if (snap) {
132112
- const meterSize = sizeToMeters(size, unit2);
132124
+ const meterSize = sizeToMeters(size2, unit2);
132113
132125
  const numUnits = barLength * meterSize;
132114
132126
  const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
132115
132127
  adjustedBarLength = snappedOrigUnits / meterSize;
@@ -137298,9 +137310,9 @@ function parse(value, root2, parent, rule, rules, rulesets, pseudo, points, decl
137298
137310
  function ruleset(value, root2, parent, index2, offset2, rules, points, type, props, children2, length2) {
137299
137311
  var post = offset2 - 1;
137300
137312
  var rule = offset2 === 0 ? rules : [""];
137301
- var size = sizeof(rule);
137313
+ var size2 = sizeof(rule);
137302
137314
  for (var i2 = 0, j = 0, k = 0; i2 < index2; ++i2)
137303
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i2])), z2 = value; x < size; ++x)
137315
+ for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i2])), z2 = value; x < size2; ++x)
137304
137316
  if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
137305
137317
  props[k++] = z2;
137306
137318
  return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children2, length2);
@@ -137693,14 +137705,14 @@ var createCache = function createCache2(options) {
137693
137705
  cache2.sheet.hydrate(nodesToHydrate);
137694
137706
  return cache2;
137695
137707
  };
137696
- function _extends$2() {
137697
- return _extends$2 = Object.assign ? Object.assign.bind() : function(n2) {
137708
+ function _extends$3() {
137709
+ return _extends$3 = Object.assign ? Object.assign.bind() : function(n2) {
137698
137710
  for (var e3 = 1; e3 < arguments.length; e3++) {
137699
137711
  var t = arguments[e3];
137700
137712
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
137701
137713
  }
137702
137714
  return n2;
137703
- }, _extends$2.apply(null, arguments);
137715
+ }, _extends$3.apply(null, arguments);
137704
137716
  }
137705
137717
  var reactIs$1 = { exports: {} };
137706
137718
  var reactIs_development$1 = {};
@@ -139193,7 +139205,7 @@ var createStyled$1 = function createStyled(tag, options) {
139193
139205
  }
139194
139206
  });
139195
139207
  Styled.withComponent = function(nextTag, nextOptions) {
139196
- var newStyled2 = createStyled(nextTag, _extends$2({}, options, nextOptions, {
139208
+ var newStyled2 = createStyled(nextTag, _extends$3({}, options, nextOptions, {
139197
139209
  shouldForwardProp: composeShouldForwardProps(Styled, nextOptions, true)
139198
139210
  }));
139199
139211
  return newStyled2.apply(void 0, styles);
@@ -141283,6 +141295,56 @@ const systemDefaultTheme$1 = createTheme$1();
141283
141295
  function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
141284
141296
  return useTheme$2(defaultTheme2);
141285
141297
  }
141298
+ const splitProps = (props) => {
141299
+ var _a3;
141300
+ const result = {
141301
+ systemProps: {},
141302
+ otherProps: {}
141303
+ };
141304
+ const config2 = ((_a3 = props == null ? void 0 : props.theme) == null ? void 0 : _a3.unstable_sxConfig) ?? defaultSxConfig;
141305
+ Object.keys(props).forEach((prop) => {
141306
+ if (config2[prop]) {
141307
+ result.systemProps[prop] = props[prop];
141308
+ } else {
141309
+ result.otherProps[prop] = props[prop];
141310
+ }
141311
+ });
141312
+ return result;
141313
+ };
141314
+ function extendSxProp$1(props) {
141315
+ const {
141316
+ sx: inSx,
141317
+ ...other
141318
+ } = props;
141319
+ const {
141320
+ systemProps,
141321
+ otherProps
141322
+ } = splitProps(other);
141323
+ let finalSx;
141324
+ if (Array.isArray(inSx)) {
141325
+ finalSx = [systemProps, ...inSx];
141326
+ } else if (typeof inSx === "function") {
141327
+ finalSx = (...args) => {
141328
+ const result = inSx(...args);
141329
+ if (!isPlainObject(result)) {
141330
+ return systemProps;
141331
+ }
141332
+ return {
141333
+ ...systemProps,
141334
+ ...result
141335
+ };
141336
+ };
141337
+ } else {
141338
+ finalSx = {
141339
+ ...systemProps,
141340
+ ...inSx
141341
+ };
141342
+ }
141343
+ return {
141344
+ ...otherProps,
141345
+ sx: finalSx
141346
+ };
141347
+ }
141286
141348
  const defaultGenerator = (componentName) => componentName;
141287
141349
  const createClassNameGenerator = () => {
141288
141350
  let generate = defaultGenerator;
@@ -142654,17 +142716,17 @@ function createTypography(palette, typography) {
142654
142716
  }
142655
142717
  }
142656
142718
  const coef = fontSize / 14;
142657
- const pxToRem = pxToRem2 || ((size) => `${size / htmlFontSize * coef}rem`);
142658
- const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({
142719
+ const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
142720
+ const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
142659
142721
  fontFamily,
142660
142722
  fontWeight,
142661
- fontSize: pxToRem(size),
142723
+ fontSize: pxToRem(size2),
142662
142724
  // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
142663
142725
  lineHeight,
142664
142726
  // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
142665
142727
  // across font-families can cause issues with the kerning.
142666
142728
  ...fontFamily === defaultFontFamily ? {
142667
- letterSpacing: `${round(letterSpacing / size)}em`
142729
+ letterSpacing: `${round(letterSpacing / size2)}em`
142668
142730
  } : {},
142669
142731
  ...casing,
142670
142732
  ...allVariants
@@ -143475,6 +143537,9 @@ const { tss } = createTss({
143475
143537
  "usePlugin": useMuiThemeStyleOverridesPlugin
143476
143538
  });
143477
143539
  const useStyles$4 = tss.create({});
143540
+ function internal_createExtendSxProp() {
143541
+ return extendSxProp$1;
143542
+ }
143478
143543
  const memoTheme = unstable_memoTheme;
143479
143544
  ({
143480
143545
  // ┌────────────────────────────── Warning ──────────────────────────────┐
@@ -143497,7 +143562,7 @@ function getSvgIconUtilityClass(slot) {
143497
143562
  return generateUtilityClass("MuiSvgIcon", slot);
143498
143563
  }
143499
143564
  generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
143500
- const useUtilityClasses$7 = (ownerState) => {
143565
+ const useUtilityClasses$8 = (ownerState) => {
143501
143566
  const {
143502
143567
  color: color2,
143503
143568
  fontSize,
@@ -143642,7 +143707,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
143642
143707
  if (!inheritViewBox) {
143643
143708
  more.viewBox = viewBox;
143644
143709
  }
143645
- const classes = useUtilityClasses$7(ownerState);
143710
+ const classes = useUtilityClasses$8(ownerState);
143646
143711
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
143647
143712
  as: component,
143648
143713
  className: clsx(classes.root, className),
@@ -143914,14 +143979,14 @@ function chainPropTypes(propType1, propType2) {
143914
143979
  return propType1(...args) || propType2(...args);
143915
143980
  };
143916
143981
  }
143917
- function _extends$1() {
143918
- return _extends$1 = Object.assign ? Object.assign.bind() : function(n2) {
143982
+ function _extends$2() {
143983
+ return _extends$2 = Object.assign ? Object.assign.bind() : function(n2) {
143919
143984
  for (var e3 = 1; e3 < arguments.length; e3++) {
143920
143985
  var t = arguments[e3];
143921
143986
  for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n2[r2] = t[r2]);
143922
143987
  }
143923
143988
  return n2;
143924
- }, _extends$1.apply(null, arguments);
143989
+ }, _extends$2.apply(null, arguments);
143925
143990
  }
143926
143991
  function _objectWithoutPropertiesLoose(r2, e3) {
143927
143992
  if (null == r2) return {};
@@ -143932,16 +143997,16 @@ function _objectWithoutPropertiesLoose(r2, e3) {
143932
143997
  }
143933
143998
  return t;
143934
143999
  }
143935
- function _setPrototypeOf(t, e3) {
143936
- return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e4) {
144000
+ function _setPrototypeOf$1(t, e3) {
144001
+ return _setPrototypeOf$1 = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e4) {
143937
144002
  return t2.__proto__ = e4, t2;
143938
- }, _setPrototypeOf(t, e3);
144003
+ }, _setPrototypeOf$1(t, e3);
143939
144004
  }
143940
- function _inheritsLoose(t, o2) {
143941
- t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o2);
144005
+ function _inheritsLoose$1(t, o2) {
144006
+ t.prototype = Object.create(o2.prototype), t.prototype.constructor = t, _setPrototypeOf$1(t, o2);
143942
144007
  }
143943
144008
  const TransitionGroupContext = React__default.createContext(null);
143944
- function _assertThisInitialized(e3) {
144009
+ function _assertThisInitialized$1(e3) {
143945
144010
  if (void 0 === e3) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
143946
144011
  return e3;
143947
144012
  }
@@ -144049,11 +144114,11 @@ var defaultProps = {
144049
144114
  }
144050
144115
  };
144051
144116
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
144052
- _inheritsLoose(TransitionGroup2, _React$Component);
144117
+ _inheritsLoose$1(TransitionGroup2, _React$Component);
144053
144118
  function TransitionGroup2(props, context) {
144054
144119
  var _this;
144055
144120
  _this = _React$Component.call(this, props, context) || this;
144056
- var handleExited = _this.handleExited.bind(_assertThisInitialized(_this));
144121
+ var handleExited = _this.handleExited.bind(_assertThisInitialized$1(_this));
144057
144122
  _this.state = {
144058
144123
  contextValue: {
144059
144124
  isMounting: true
@@ -144090,7 +144155,7 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
144090
144155
  }
144091
144156
  if (this.mounted) {
144092
144157
  this.setState(function(state) {
144093
- var children2 = _extends$1({}, state.children);
144158
+ var children2 = _extends$2({}, state.children);
144094
144159
  delete children2[child.key];
144095
144160
  return {
144096
144161
  children: children2
@@ -144288,7 +144353,7 @@ function getPaperUtilityClass(slot) {
144288
144353
  return generateUtilityClass("MuiPaper", slot);
144289
144354
  }
144290
144355
  generateUtilityClasses("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
144291
- const useUtilityClasses$6 = (ownerState) => {
144356
+ const useUtilityClasses$7 = (ownerState) => {
144292
144357
  const {
144293
144358
  square,
144294
144359
  elevation,
@@ -144361,7 +144426,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
144361
144426
  square,
144362
144427
  variant
144363
144428
  };
144364
- const classes = useUtilityClasses$6(ownerState);
144429
+ const classes = useUtilityClasses$7(ownerState);
144365
144430
  {
144366
144431
  if (theme.shadows[elevation] === void 0) {
144367
144432
  console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join("\n"));
@@ -145047,7 +145112,7 @@ function getButtonBaseUtilityClass(slot) {
145047
145112
  return generateUtilityClass("MuiButtonBase", slot);
145048
145113
  }
145049
145114
  const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
145050
- const useUtilityClasses$5 = (ownerState) => {
145115
+ const useUtilityClasses$6 = (ownerState) => {
145051
145116
  const {
145052
145117
  disabled,
145053
145118
  focusVisible,
@@ -145263,7 +145328,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
145263
145328
  tabIndex,
145264
145329
  focusVisible
145265
145330
  };
145266
- const classes = useUtilityClasses$5(ownerState);
145331
+ const classes = useUtilityClasses$6(ownerState);
145267
145332
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonBaseRoot, {
145268
145333
  as: ComponentProp,
145269
145334
  className: clsx(classes.root, className),
@@ -145600,7 +145665,7 @@ function getSwitchBaseUtilityClass(slot) {
145600
145665
  return generateUtilityClass("PrivateSwitchBase", slot);
145601
145666
  }
145602
145667
  generateUtilityClasses("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
145603
- const useUtilityClasses$4 = (ownerState) => {
145668
+ const useUtilityClasses$5 = (ownerState) => {
145604
145669
  const {
145605
145670
  classes,
145606
145671
  checked,
@@ -145737,7 +145802,7 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
145737
145802
  disableFocusRipple,
145738
145803
  edge
145739
145804
  };
145740
- const classes = useUtilityClasses$4(ownerState);
145805
+ const classes = useUtilityClasses$5(ownerState);
145741
145806
  const externalForwardedProps = {
145742
145807
  slots,
145743
145808
  slotProps: {
@@ -145946,15 +146011,15 @@ function getCheckboxUtilityClass(slot) {
145946
146011
  return generateUtilityClass("MuiCheckbox", slot);
145947
146012
  }
145948
146013
  const checkboxClasses = generateUtilityClasses("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]);
145949
- const useUtilityClasses$3 = (ownerState) => {
146014
+ const useUtilityClasses$4 = (ownerState) => {
145950
146015
  const {
145951
146016
  classes,
145952
146017
  indeterminate,
145953
146018
  color: color2,
145954
- size
146019
+ size: size2
145955
146020
  } = ownerState;
145956
146021
  const slots = {
145957
- root: ["root", indeterminate && "indeterminate", `color${capitalize(color2)}`, `size${capitalize(size)}`]
146022
+ root: ["root", indeterminate && "indeterminate", `color${capitalize(color2)}`, `size${capitalize(size2)}`]
145958
146023
  };
145959
146024
  const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
145960
146025
  return {
@@ -146039,7 +146104,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
146039
146104
  indeterminate = false,
146040
146105
  indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
146041
146106
  inputProps,
146042
- size = "medium",
146107
+ size: size2 = "medium",
146043
146108
  disableRipple = false,
146044
146109
  className,
146045
146110
  slots = {},
@@ -146053,9 +146118,9 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
146053
146118
  disableRipple,
146054
146119
  color: color2,
146055
146120
  indeterminate,
146056
- size
146121
+ size: size2
146057
146122
  };
146058
- const classes = useUtilityClasses$3(ownerState);
146123
+ const classes = useUtilityClasses$4(ownerState);
146059
146124
  const externalInputProps = slotProps.input ?? inputProps;
146060
146125
  const [RootSlot, rootSlotProps] = useSlot("root", {
146061
146126
  ref,
@@ -146071,10 +146136,10 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
146071
146136
  additionalProps: {
146072
146137
  type: "checkbox",
146073
146138
  icon: /* @__PURE__ */ React.cloneElement(icon, {
146074
- fontSize: icon.props.fontSize ?? size
146139
+ fontSize: icon.props.fontSize ?? size2
146075
146140
  }),
146076
146141
  checkedIcon: /* @__PURE__ */ React.cloneElement(indeterminateIcon, {
146077
- fontSize: indeterminateIcon.props.fontSize ?? size
146142
+ fontSize: indeterminateIcon.props.fontSize ?? size2
146078
146143
  }),
146079
146144
  disableRipple,
146080
146145
  slots,
@@ -146204,6 +146269,266 @@ Checkbox.propTypes = {
146204
146269
  */
146205
146270
  value: PropTypes.any
146206
146271
  };
146272
+ function getTypographyUtilityClass(slot) {
146273
+ return generateUtilityClass("MuiTypography", slot);
146274
+ }
146275
+ generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
146276
+ const v6Colors = {
146277
+ primary: true,
146278
+ secondary: true,
146279
+ error: true,
146280
+ info: true,
146281
+ success: true,
146282
+ warning: true,
146283
+ textPrimary: true,
146284
+ textSecondary: true,
146285
+ textDisabled: true
146286
+ };
146287
+ const extendSxProp = internal_createExtendSxProp();
146288
+ const useUtilityClasses$3 = (ownerState) => {
146289
+ const {
146290
+ align,
146291
+ gutterBottom,
146292
+ noWrap,
146293
+ paragraph,
146294
+ variant,
146295
+ classes
146296
+ } = ownerState;
146297
+ const slots = {
146298
+ root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
146299
+ };
146300
+ return composeClasses(slots, getTypographyUtilityClass, classes);
146301
+ };
146302
+ const TypographyRoot = styled("span", {
146303
+ name: "MuiTypography",
146304
+ slot: "Root",
146305
+ overridesResolver: (props, styles) => {
146306
+ const {
146307
+ ownerState
146308
+ } = props;
146309
+ return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
146310
+ }
146311
+ })(memoTheme(({
146312
+ theme
146313
+ }) => {
146314
+ var _a3;
146315
+ return {
146316
+ margin: 0,
146317
+ variants: [{
146318
+ props: {
146319
+ variant: "inherit"
146320
+ },
146321
+ style: {
146322
+ // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
146323
+ font: "inherit",
146324
+ lineHeight: "inherit",
146325
+ letterSpacing: "inherit"
146326
+ }
146327
+ }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
146328
+ props: {
146329
+ variant
146330
+ },
146331
+ style: value
146332
+ })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
146333
+ props: {
146334
+ color: color2
146335
+ },
146336
+ style: {
146337
+ color: (theme.vars || theme).palette[color2].main
146338
+ }
146339
+ })), ...Object.entries(((_a3 = theme.palette) == null ? void 0 : _a3.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
146340
+ props: {
146341
+ color: `text${capitalize(color2)}`
146342
+ },
146343
+ style: {
146344
+ color: (theme.vars || theme).palette.text[color2]
146345
+ }
146346
+ })), {
146347
+ props: ({
146348
+ ownerState
146349
+ }) => ownerState.align !== "inherit",
146350
+ style: {
146351
+ textAlign: "var(--Typography-textAlign)"
146352
+ }
146353
+ }, {
146354
+ props: ({
146355
+ ownerState
146356
+ }) => ownerState.noWrap,
146357
+ style: {
146358
+ overflow: "hidden",
146359
+ textOverflow: "ellipsis",
146360
+ whiteSpace: "nowrap"
146361
+ }
146362
+ }, {
146363
+ props: ({
146364
+ ownerState
146365
+ }) => ownerState.gutterBottom,
146366
+ style: {
146367
+ marginBottom: "0.35em"
146368
+ }
146369
+ }, {
146370
+ props: ({
146371
+ ownerState
146372
+ }) => ownerState.paragraph,
146373
+ style: {
146374
+ marginBottom: 16
146375
+ }
146376
+ }]
146377
+ };
146378
+ }));
146379
+ const defaultVariantMapping = {
146380
+ h1: "h1",
146381
+ h2: "h2",
146382
+ h3: "h3",
146383
+ h4: "h4",
146384
+ h5: "h5",
146385
+ h6: "h6",
146386
+ subtitle1: "h6",
146387
+ subtitle2: "h6",
146388
+ body1: "p",
146389
+ body2: "p",
146390
+ inherit: "p"
146391
+ };
146392
+ const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
146393
+ const {
146394
+ color: color2,
146395
+ ...themeProps
146396
+ } = useDefaultProps({
146397
+ props: inProps,
146398
+ name: "MuiTypography"
146399
+ });
146400
+ const isSxColor = !v6Colors[color2];
146401
+ const props = extendSxProp({
146402
+ ...themeProps,
146403
+ ...isSxColor && {
146404
+ color: color2
146405
+ }
146406
+ });
146407
+ const {
146408
+ align = "inherit",
146409
+ className,
146410
+ component,
146411
+ gutterBottom = false,
146412
+ noWrap = false,
146413
+ paragraph = false,
146414
+ variant = "body1",
146415
+ variantMapping = defaultVariantMapping,
146416
+ ...other
146417
+ } = props;
146418
+ const ownerState = {
146419
+ ...props,
146420
+ align,
146421
+ color: color2,
146422
+ className,
146423
+ component,
146424
+ gutterBottom,
146425
+ noWrap,
146426
+ paragraph,
146427
+ variant,
146428
+ variantMapping
146429
+ };
146430
+ const Component2 = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
146431
+ const classes = useUtilityClasses$3(ownerState);
146432
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
146433
+ as: Component2,
146434
+ ref,
146435
+ className: clsx(classes.root, className),
146436
+ ...other,
146437
+ ownerState,
146438
+ style: {
146439
+ ...align !== "inherit" && {
146440
+ "--Typography-textAlign": align
146441
+ },
146442
+ ...other.style
146443
+ }
146444
+ });
146445
+ });
146446
+ Typography.propTypes = {
146447
+ // ┌────────────────────────────── Warning ──────────────────────────────┐
146448
+ // │ These PropTypes are generated from the TypeScript type definitions. │
146449
+ // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
146450
+ // └─────────────────────────────────────────────────────────────────────┘
146451
+ /**
146452
+ * Set the text-align on the component.
146453
+ * @default 'inherit'
146454
+ */
146455
+ align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
146456
+ /**
146457
+ * The content of the component.
146458
+ */
146459
+ children: PropTypes.node,
146460
+ /**
146461
+ * Override or extend the styles applied to the component.
146462
+ */
146463
+ classes: PropTypes.object,
146464
+ /**
146465
+ * @ignore
146466
+ */
146467
+ className: PropTypes.string,
146468
+ /**
146469
+ * The color of the component.
146470
+ * It supports both default and custom theme colors, which can be added as shown in the
146471
+ * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
146472
+ */
146473
+ color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
146474
+ /**
146475
+ * The component used for the root node.
146476
+ * Either a string to use a HTML element or a component.
146477
+ */
146478
+ component: PropTypes.elementType,
146479
+ /**
146480
+ * If `true`, the text will have a bottom margin.
146481
+ * @default false
146482
+ */
146483
+ gutterBottom: PropTypes.bool,
146484
+ /**
146485
+ * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
146486
+ *
146487
+ * Note that text overflow can only happen with block or inline-block level elements
146488
+ * (the element needs to have a width in order to overflow).
146489
+ * @default false
146490
+ */
146491
+ noWrap: PropTypes.bool,
146492
+ /**
146493
+ * If `true`, the element will be a paragraph element.
146494
+ * @default false
146495
+ * @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.
146496
+ */
146497
+ paragraph: PropTypes.bool,
146498
+ /**
146499
+ * @ignore
146500
+ */
146501
+ style: PropTypes.object,
146502
+ /**
146503
+ * The system prop that allows defining system overrides as well as additional CSS styles.
146504
+ */
146505
+ sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
146506
+ /**
146507
+ * Applies the theme typography styles.
146508
+ * @default 'body1'
146509
+ */
146510
+ variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
146511
+ /**
146512
+ * The component maps the variant prop to a range of different HTML element types.
146513
+ * For instance, subtitle1 to `<h6>`.
146514
+ * If you wish to change that mapping, you can provide your own.
146515
+ * Alternatively, you can use the `component` prop.
146516
+ * @default {
146517
+ * h1: 'h1',
146518
+ * h2: 'h2',
146519
+ * h3: 'h3',
146520
+ * h4: 'h4',
146521
+ * h5: 'h5',
146522
+ * h6: 'h6',
146523
+ * subtitle1: 'h6',
146524
+ * subtitle2: 'h6',
146525
+ * body1: 'p',
146526
+ * body2: 'p',
146527
+ * inherit: 'p',
146528
+ * }
146529
+ */
146530
+ variantMapping: PropTypes.object
146531
+ };
146207
146532
  const visuallyHidden = {
146208
146533
  border: 0,
146209
146534
  clip: "rect(0 0 0 0)",
@@ -147423,10 +147748,10 @@ const useUtilityClasses$2 = (ownerState) => {
147423
147748
  track,
147424
147749
  classes,
147425
147750
  color: color2,
147426
- size
147751
+ size: size2
147427
147752
  } = ownerState;
147428
147753
  const slots = {
147429
- root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`, size && `size${capitalize(size)}`],
147754
+ root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`, size2 && `size${capitalize(size2)}`],
147430
147755
  rail: ["rail"],
147431
147756
  track: ["track"],
147432
147757
  mark: ["mark"],
@@ -147434,7 +147759,7 @@ const useUtilityClasses$2 = (ownerState) => {
147434
147759
  markLabel: ["markLabel"],
147435
147760
  markLabelActive: ["markLabelActive"],
147436
147761
  valueLabel: ["valueLabel"],
147437
- thumb: ["thumb", disabled && "disabled", size && `thumbSize${capitalize(size)}`, color2 && `thumbColor${capitalize(color2)}`],
147762
+ thumb: ["thumb", disabled && "disabled", size2 && `thumbSize${capitalize(size2)}`, color2 && `thumbColor${capitalize(color2)}`],
147438
147763
  active: ["active"],
147439
147764
  disabled: ["disabled"],
147440
147765
  focusVisible: ["focusVisible"]
@@ -147473,7 +147798,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
147473
147798
  onChangeCommitted,
147474
147799
  orientation = "horizontal",
147475
147800
  shiftStep = 10,
147476
- size = "medium",
147801
+ size: size2 = "medium",
147477
147802
  step = 1,
147478
147803
  scale: scale2 = Identity,
147479
147804
  slotProps,
@@ -147496,7 +147821,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
147496
147821
  orientation,
147497
147822
  marks: marksProp,
147498
147823
  color: color2,
147499
- size,
147824
+ size: size2,
147500
147825
  step,
147501
147826
  shiftStep,
147502
147827
  scale: scale2,
@@ -147995,11 +148320,11 @@ const useUtilityClasses$1 = (ownerState) => {
147995
148320
  variant,
147996
148321
  align,
147997
148322
  padding: padding2,
147998
- size,
148323
+ size: size2,
147999
148324
  stickyHeader
148000
148325
  } = ownerState;
148001
148326
  const slots = {
148002
- root: ["root", variant, stickyHeader && "stickyHeader", align !== "inherit" && `align${capitalize(align)}`, padding2 !== "normal" && `padding${capitalize(padding2)}`, `size${capitalize(size)}`]
148327
+ root: ["root", variant, stickyHeader && "stickyHeader", align !== "inherit" && `align${capitalize(align)}`, padding2 !== "normal" && `padding${capitalize(padding2)}`, `size${capitalize(size2)}`]
148003
148328
  };
148004
148329
  return composeClasses(slots, getTableCellUtilityClass, classes);
148005
148330
  };
@@ -148590,7 +148915,7 @@ var defineProperty = function(obj, key, value) {
148590
148915
  }
148591
148916
  return obj;
148592
148917
  };
148593
- var _extends = Object.assign || function(target) {
148918
+ var _extends$1 = Object.assign || function(target) {
148594
148919
  for (var i2 = 1; i2 < arguments.length; i2++) {
148595
148920
  var source = arguments[i2];
148596
148921
  for (var key in source) {
@@ -148602,7 +148927,7 @@ var _extends = Object.assign || function(target) {
148602
148927
  return target;
148603
148928
  };
148604
148929
  function getClientRect(offsets) {
148605
- return _extends({}, offsets, {
148930
+ return _extends$1({}, offsets, {
148606
148931
  right: offsets.left + offsets.width,
148607
148932
  bottom: offsets.top + offsets.height
148608
148933
  });
@@ -148786,7 +149111,7 @@ function computeAutoPlacement(placement, refRect, popper, reference, boundariesE
148786
149111
  }
148787
149112
  };
148788
149113
  var sortedAreas = Object.keys(rects).map(function(key) {
148789
- return _extends({
149114
+ return _extends$1({
148790
149115
  key
148791
149116
  }, rects[key], {
148792
149117
  area: getArea(rects[key])
@@ -149094,9 +149419,9 @@ function computeStyle(data, options) {
149094
149419
  var attributes = {
149095
149420
  "x-placement": data.placement
149096
149421
  };
149097
- data.attributes = _extends({}, attributes, data.attributes);
149098
- data.styles = _extends({}, styles, data.styles);
149099
- data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);
149422
+ data.attributes = _extends$1({}, attributes, data.attributes);
149423
+ data.styles = _extends$1({}, styles, data.styles);
149424
+ data.arrowStyles = _extends$1({}, data.offsets.arrow, data.arrowStyles);
149100
149425
  return data;
149101
149426
  }
149102
149427
  function isModifierRequired(modifiers2, requestingName, requestedName) {
@@ -149231,7 +149556,7 @@ function flip(data, options) {
149231
149556
  variation = getOppositeVariation(variation);
149232
149557
  }
149233
149558
  data.placement = placement + (variation ? "-" + variation : "");
149234
- data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
149559
+ data.offsets.popper = _extends$1({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));
149235
149560
  data = runModifiers(data.instance.modifiers, data, "flip");
149236
149561
  }
149237
149562
  });
@@ -149274,13 +149599,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
149274
149599
  var rect = getClientRect(element);
149275
149600
  return rect[measurement] / 100 * value;
149276
149601
  } else if (unit2 === "vh" || unit2 === "vw") {
149277
- var size = void 0;
149602
+ var size2 = void 0;
149278
149603
  if (unit2 === "vh") {
149279
- size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
149604
+ size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
149280
149605
  } else {
149281
- size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
149606
+ size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
149282
149607
  }
149283
- return size / 100 * value;
149608
+ return size2 / 100 * value;
149284
149609
  } else {
149285
149610
  return value;
149286
149611
  }
@@ -149390,7 +149715,7 @@ function preventOverflow(data, options) {
149390
149715
  };
149391
149716
  order.forEach(function(placement) {
149392
149717
  var side = ["left", "top"].indexOf(placement) !== -1 ? "primary" : "secondary";
149393
- popper = _extends({}, popper, check[side](placement));
149718
+ popper = _extends$1({}, popper, check[side](placement));
149394
149719
  });
149395
149720
  data.offsets.popper = popper;
149396
149721
  return data;
@@ -149408,7 +149733,7 @@ function shift(data) {
149408
149733
  start: defineProperty({}, side, reference[side]),
149409
149734
  end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])
149410
149735
  };
149411
- data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);
149736
+ data.offsets.popper = _extends$1({}, popper, shiftOffsets[shiftvariation]);
149412
149737
  }
149413
149738
  return data;
149414
149739
  }
@@ -149811,7 +150136,7 @@ var Popper$1 = function() {
149811
150136
  return requestAnimationFrame(_this.update);
149812
150137
  };
149813
150138
  this.update = debounce(this.update.bind(this));
149814
- this.options = _extends({}, Popper2.Defaults, options);
150139
+ this.options = _extends$1({}, Popper2.Defaults, options);
149815
150140
  this.state = {
149816
150141
  isDestroyed: false,
149817
150142
  isCreated: false,
@@ -149820,11 +150145,11 @@ var Popper$1 = function() {
149820
150145
  this.reference = reference && reference.jquery ? reference[0] : reference;
149821
150146
  this.popper = popper && popper.jquery ? popper[0] : popper;
149822
150147
  this.options.modifiers = {};
149823
- Object.keys(_extends({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
149824
- _this.options.modifiers[name2] = _extends({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
150148
+ Object.keys(_extends$1({}, Popper2.Defaults.modifiers, options.modifiers)).forEach(function(name2) {
150149
+ _this.options.modifiers[name2] = _extends$1({}, Popper2.Defaults.modifiers[name2] || {}, options.modifiers ? options.modifiers[name2] : {});
149825
150150
  });
149826
150151
  this.modifiers = Object.keys(this.options.modifiers).map(function(name2) {
149827
- return _extends({
150152
+ return _extends$1({
149828
150153
  name: name2
149829
150154
  }, _this.options.modifiers[name2]);
149830
150155
  }).sort(function(a2, b) {
@@ -150054,6 +150379,700 @@ const Popper = React.forwardRef((props, ref) => {
150054
150379
  ...style2
150055
150380
  }, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
150056
150381
  });
150382
+ function _extends() {
150383
+ _extends = Object.assign ? Object.assign.bind() : function(target) {
150384
+ for (var i2 = 1; i2 < arguments.length; i2++) {
150385
+ var source = arguments[i2];
150386
+ for (var key in source) {
150387
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
150388
+ target[key] = source[key];
150389
+ }
150390
+ }
150391
+ }
150392
+ return target;
150393
+ };
150394
+ return _extends.apply(this, arguments);
150395
+ }
150396
+ function _assertThisInitialized(self2) {
150397
+ if (self2 === void 0) {
150398
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
150399
+ }
150400
+ return self2;
150401
+ }
150402
+ function _setPrototypeOf(o2, p) {
150403
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o3, p2) {
150404
+ o3.__proto__ = p2;
150405
+ return o3;
150406
+ };
150407
+ return _setPrototypeOf(o2, p);
150408
+ }
150409
+ function _inheritsLoose(subClass, superClass) {
150410
+ subClass.prototype = Object.create(superClass.prototype);
150411
+ subClass.prototype.constructor = subClass;
150412
+ _setPrototypeOf(subClass, superClass);
150413
+ }
150414
+ var safeIsNaN = Number.isNaN || function ponyfill(value) {
150415
+ return typeof value === "number" && value !== value;
150416
+ };
150417
+ function isEqual(first, second) {
150418
+ if (first === second) {
150419
+ return true;
150420
+ }
150421
+ if (safeIsNaN(first) && safeIsNaN(second)) {
150422
+ return true;
150423
+ }
150424
+ return false;
150425
+ }
150426
+ function areInputsEqual(newInputs, lastInputs) {
150427
+ if (newInputs.length !== lastInputs.length) {
150428
+ return false;
150429
+ }
150430
+ for (var i2 = 0; i2 < newInputs.length; i2++) {
150431
+ if (!isEqual(newInputs[i2], lastInputs[i2])) {
150432
+ return false;
150433
+ }
150434
+ }
150435
+ return true;
150436
+ }
150437
+ function memoizeOne(resultFn, isEqual2) {
150438
+ if (isEqual2 === void 0) {
150439
+ isEqual2 = areInputsEqual;
150440
+ }
150441
+ var lastThis;
150442
+ var lastArgs = [];
150443
+ var lastResult;
150444
+ var calledOnce = false;
150445
+ function memoized() {
150446
+ var newArgs = [];
150447
+ for (var _i = 0; _i < arguments.length; _i++) {
150448
+ newArgs[_i] = arguments[_i];
150449
+ }
150450
+ if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
150451
+ return lastResult;
150452
+ }
150453
+ lastResult = resultFn.apply(this, newArgs);
150454
+ calledOnce = true;
150455
+ lastThis = this;
150456
+ lastArgs = newArgs;
150457
+ return lastResult;
150458
+ }
150459
+ return memoized;
150460
+ }
150461
+ var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
150462
+ var now = hasNativePerformanceNow ? function() {
150463
+ return performance.now();
150464
+ } : function() {
150465
+ return Date.now();
150466
+ };
150467
+ function cancelTimeout(timeoutID) {
150468
+ cancelAnimationFrame(timeoutID.id);
150469
+ }
150470
+ function requestTimeout(callback, delay) {
150471
+ var start = now();
150472
+ function tick() {
150473
+ if (now() - start >= delay) {
150474
+ callback.call(null);
150475
+ } else {
150476
+ timeoutID.id = requestAnimationFrame(tick);
150477
+ }
150478
+ }
150479
+ var timeoutID = {
150480
+ id: requestAnimationFrame(tick)
150481
+ };
150482
+ return timeoutID;
150483
+ }
150484
+ var size = -1;
150485
+ function getScrollbarSize(recalculate) {
150486
+ if (recalculate === void 0) {
150487
+ recalculate = false;
150488
+ }
150489
+ if (size === -1 || recalculate) {
150490
+ var div = document.createElement("div");
150491
+ var style2 = div.style;
150492
+ style2.width = "50px";
150493
+ style2.height = "50px";
150494
+ style2.overflow = "scroll";
150495
+ document.body.appendChild(div);
150496
+ size = div.offsetWidth - div.clientWidth;
150497
+ document.body.removeChild(div);
150498
+ }
150499
+ return size;
150500
+ }
150501
+ var cachedRTLResult = null;
150502
+ function getRTLOffsetType(recalculate) {
150503
+ if (recalculate === void 0) {
150504
+ recalculate = false;
150505
+ }
150506
+ if (cachedRTLResult === null || recalculate) {
150507
+ var outerDiv = document.createElement("div");
150508
+ var outerStyle = outerDiv.style;
150509
+ outerStyle.width = "50px";
150510
+ outerStyle.height = "50px";
150511
+ outerStyle.overflow = "scroll";
150512
+ outerStyle.direction = "rtl";
150513
+ var innerDiv = document.createElement("div");
150514
+ var innerStyle = innerDiv.style;
150515
+ innerStyle.width = "100px";
150516
+ innerStyle.height = "100px";
150517
+ outerDiv.appendChild(innerDiv);
150518
+ document.body.appendChild(outerDiv);
150519
+ if (outerDiv.scrollLeft > 0) {
150520
+ cachedRTLResult = "positive-descending";
150521
+ } else {
150522
+ outerDiv.scrollLeft = 1;
150523
+ if (outerDiv.scrollLeft === 0) {
150524
+ cachedRTLResult = "negative";
150525
+ } else {
150526
+ cachedRTLResult = "positive-ascending";
150527
+ }
150528
+ }
150529
+ document.body.removeChild(outerDiv);
150530
+ return cachedRTLResult;
150531
+ }
150532
+ return cachedRTLResult;
150533
+ }
150534
+ var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
150535
+ var defaultItemKey$1 = function defaultItemKey3(index2, data) {
150536
+ return index2;
150537
+ };
150538
+ var devWarningsDirection = null;
150539
+ var devWarningsTagName$1 = null;
150540
+ {
150541
+ if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
150542
+ devWarningsDirection = /* @__PURE__ */ new WeakSet();
150543
+ devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
150544
+ }
150545
+ }
150546
+ function createListComponent(_ref) {
150547
+ var _class;
150548
+ 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;
150549
+ return _class = /* @__PURE__ */ function(_PureComponent) {
150550
+ _inheritsLoose(List, _PureComponent);
150551
+ function List(props) {
150552
+ var _this;
150553
+ _this = _PureComponent.call(this, props) || this;
150554
+ _this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
150555
+ _this._outerRef = void 0;
150556
+ _this._resetIsScrollingTimeoutId = null;
150557
+ _this.state = {
150558
+ instance: _assertThisInitialized(_this),
150559
+ isScrolling: false,
150560
+ scrollDirection: "forward",
150561
+ scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
150562
+ scrollUpdateWasRequested: false
150563
+ };
150564
+ _this._callOnItemsRendered = void 0;
150565
+ _this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
150566
+ return _this.props.onItemsRendered({
150567
+ overscanStartIndex,
150568
+ overscanStopIndex,
150569
+ visibleStartIndex,
150570
+ visibleStopIndex
150571
+ });
150572
+ });
150573
+ _this._callOnScroll = void 0;
150574
+ _this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
150575
+ return _this.props.onScroll({
150576
+ scrollDirection,
150577
+ scrollOffset,
150578
+ scrollUpdateWasRequested
150579
+ });
150580
+ });
150581
+ _this._getItemStyle = void 0;
150582
+ _this._getItemStyle = function(index2) {
150583
+ var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
150584
+ var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
150585
+ var style2;
150586
+ if (itemStyleCache.hasOwnProperty(index2)) {
150587
+ style2 = itemStyleCache[index2];
150588
+ } else {
150589
+ var _offset = getItemOffset3(_this.props, index2, _this._instanceProps);
150590
+ var size2 = getItemSize3(_this.props, index2, _this._instanceProps);
150591
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
150592
+ var isRtl = direction === "rtl";
150593
+ var offsetHorizontal = isHorizontal ? _offset : 0;
150594
+ itemStyleCache[index2] = style2 = {
150595
+ position: "absolute",
150596
+ left: isRtl ? void 0 : offsetHorizontal,
150597
+ right: isRtl ? offsetHorizontal : void 0,
150598
+ top: !isHorizontal ? _offset : 0,
150599
+ height: !isHorizontal ? size2 : "100%",
150600
+ width: isHorizontal ? size2 : "100%"
150601
+ };
150602
+ }
150603
+ return style2;
150604
+ };
150605
+ _this._getItemStyleCache = void 0;
150606
+ _this._getItemStyleCache = memoizeOne(function(_, __, ___) {
150607
+ return {};
150608
+ });
150609
+ _this._onScrollHorizontal = function(event) {
150610
+ var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
150611
+ _this.setState(function(prevState) {
150612
+ if (prevState.scrollOffset === scrollLeft) {
150613
+ return null;
150614
+ }
150615
+ var direction = _this.props.direction;
150616
+ var scrollOffset = scrollLeft;
150617
+ if (direction === "rtl") {
150618
+ switch (getRTLOffsetType()) {
150619
+ case "negative":
150620
+ scrollOffset = -scrollLeft;
150621
+ break;
150622
+ case "positive-descending":
150623
+ scrollOffset = scrollWidth - clientWidth - scrollLeft;
150624
+ break;
150625
+ }
150626
+ }
150627
+ scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
150628
+ return {
150629
+ isScrolling: true,
150630
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
150631
+ scrollOffset,
150632
+ scrollUpdateWasRequested: false
150633
+ };
150634
+ }, _this._resetIsScrollingDebounced);
150635
+ };
150636
+ _this._onScrollVertical = function(event) {
150637
+ var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
150638
+ _this.setState(function(prevState) {
150639
+ if (prevState.scrollOffset === scrollTop) {
150640
+ return null;
150641
+ }
150642
+ var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
150643
+ return {
150644
+ isScrolling: true,
150645
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
150646
+ scrollOffset,
150647
+ scrollUpdateWasRequested: false
150648
+ };
150649
+ }, _this._resetIsScrollingDebounced);
150650
+ };
150651
+ _this._outerRefSetter = function(ref) {
150652
+ var outerRef = _this.props.outerRef;
150653
+ _this._outerRef = ref;
150654
+ if (typeof outerRef === "function") {
150655
+ outerRef(ref);
150656
+ } else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
150657
+ outerRef.current = ref;
150658
+ }
150659
+ };
150660
+ _this._resetIsScrollingDebounced = function() {
150661
+ if (_this._resetIsScrollingTimeoutId !== null) {
150662
+ cancelTimeout(_this._resetIsScrollingTimeoutId);
150663
+ }
150664
+ _this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
150665
+ };
150666
+ _this._resetIsScrolling = function() {
150667
+ _this._resetIsScrollingTimeoutId = null;
150668
+ _this.setState({
150669
+ isScrolling: false
150670
+ }, function() {
150671
+ _this._getItemStyleCache(-1, null);
150672
+ });
150673
+ };
150674
+ return _this;
150675
+ }
150676
+ List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
150677
+ validateSharedProps$1(nextProps, prevState);
150678
+ validateProps5(nextProps);
150679
+ return null;
150680
+ };
150681
+ var _proto = List.prototype;
150682
+ _proto.scrollTo = function scrollTo(scrollOffset) {
150683
+ scrollOffset = Math.max(0, scrollOffset);
150684
+ this.setState(function(prevState) {
150685
+ if (prevState.scrollOffset === scrollOffset) {
150686
+ return null;
150687
+ }
150688
+ return {
150689
+ scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
150690
+ scrollOffset,
150691
+ scrollUpdateWasRequested: true
150692
+ };
150693
+ }, this._resetIsScrollingDebounced);
150694
+ };
150695
+ _proto.scrollToItem = function scrollToItem(index2, align) {
150696
+ if (align === void 0) {
150697
+ align = "auto";
150698
+ }
150699
+ var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
150700
+ var scrollOffset = this.state.scrollOffset;
150701
+ index2 = Math.max(0, Math.min(index2, itemCount - 1));
150702
+ var scrollbarSize = 0;
150703
+ if (this._outerRef) {
150704
+ var outerRef = this._outerRef;
150705
+ if (layout === "vertical") {
150706
+ scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
150707
+ } else {
150708
+ scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
150709
+ }
150710
+ }
150711
+ this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
150712
+ };
150713
+ _proto.componentDidMount = function componentDidMount() {
150714
+ var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
150715
+ if (typeof initialScrollOffset === "number" && this._outerRef != null) {
150716
+ var outerRef = this._outerRef;
150717
+ if (direction === "horizontal" || layout === "horizontal") {
150718
+ outerRef.scrollLeft = initialScrollOffset;
150719
+ } else {
150720
+ outerRef.scrollTop = initialScrollOffset;
150721
+ }
150722
+ }
150723
+ this._callPropsCallbacks();
150724
+ };
150725
+ _proto.componentDidUpdate = function componentDidUpdate() {
150726
+ var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
150727
+ var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
150728
+ if (scrollUpdateWasRequested && this._outerRef != null) {
150729
+ var outerRef = this._outerRef;
150730
+ if (direction === "horizontal" || layout === "horizontal") {
150731
+ if (direction === "rtl") {
150732
+ switch (getRTLOffsetType()) {
150733
+ case "negative":
150734
+ outerRef.scrollLeft = -scrollOffset;
150735
+ break;
150736
+ case "positive-ascending":
150737
+ outerRef.scrollLeft = scrollOffset;
150738
+ break;
150739
+ default:
150740
+ var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
150741
+ outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
150742
+ break;
150743
+ }
150744
+ } else {
150745
+ outerRef.scrollLeft = scrollOffset;
150746
+ }
150747
+ } else {
150748
+ outerRef.scrollTop = scrollOffset;
150749
+ }
150750
+ }
150751
+ this._callPropsCallbacks();
150752
+ };
150753
+ _proto.componentWillUnmount = function componentWillUnmount() {
150754
+ if (this._resetIsScrollingTimeoutId !== null) {
150755
+ cancelTimeout(this._resetIsScrollingTimeoutId);
150756
+ }
150757
+ };
150758
+ _proto.render = function render() {
150759
+ var _this$props5 = this.props, children2 = _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;
150760
+ var isScrolling = this.state.isScrolling;
150761
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
150762
+ var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
150763
+ var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
150764
+ var items = [];
150765
+ if (itemCount > 0) {
150766
+ for (var _index = startIndex; _index <= stopIndex; _index++) {
150767
+ items.push(createElement(children2, {
150768
+ data: itemData,
150769
+ key: itemKey(_index, itemData),
150770
+ index: _index,
150771
+ isScrolling: useIsScrolling ? isScrolling : void 0,
150772
+ style: this._getItemStyle(_index)
150773
+ }));
150774
+ }
150775
+ }
150776
+ var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
150777
+ return createElement(outerElementType || outerTagName || "div", {
150778
+ className,
150779
+ onScroll,
150780
+ ref: this._outerRefSetter,
150781
+ style: _extends({
150782
+ position: "relative",
150783
+ height: height2,
150784
+ width: width2,
150785
+ overflow: "auto",
150786
+ WebkitOverflowScrolling: "touch",
150787
+ willChange: "transform",
150788
+ direction
150789
+ }, style2)
150790
+ }, createElement(innerElementType || innerTagName || "div", {
150791
+ children: items,
150792
+ ref: innerRef,
150793
+ style: {
150794
+ height: isHorizontal ? "100%" : estimatedTotalSize,
150795
+ pointerEvents: isScrolling ? "none" : void 0,
150796
+ width: isHorizontal ? estimatedTotalSize : "100%"
150797
+ }
150798
+ }));
150799
+ };
150800
+ _proto._callPropsCallbacks = function _callPropsCallbacks() {
150801
+ if (typeof this.props.onItemsRendered === "function") {
150802
+ var itemCount = this.props.itemCount;
150803
+ if (itemCount > 0) {
150804
+ var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
150805
+ this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
150806
+ }
150807
+ }
150808
+ if (typeof this.props.onScroll === "function") {
150809
+ var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
150810
+ this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
150811
+ }
150812
+ };
150813
+ _proto._getRangeToRender = function _getRangeToRender() {
150814
+ var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
150815
+ var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
150816
+ if (itemCount === 0) {
150817
+ return [0, 0, 0, 0];
150818
+ }
150819
+ var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
150820
+ var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
150821
+ var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
150822
+ var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
150823
+ return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
150824
+ };
150825
+ return List;
150826
+ }(PureComponent), _class.defaultProps = {
150827
+ direction: "ltr",
150828
+ itemData: void 0,
150829
+ layout: "vertical",
150830
+ overscanCount: 2,
150831
+ useIsScrolling: false
150832
+ }, _class;
150833
+ }
150834
+ var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
150835
+ var children2 = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
150836
+ var instance = _ref3.instance;
150837
+ {
150838
+ if (innerTagName != null || outerTagName != null) {
150839
+ if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
150840
+ devWarningsTagName$1.add(instance);
150841
+ console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
150842
+ }
150843
+ }
150844
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
150845
+ switch (direction) {
150846
+ case "horizontal":
150847
+ case "vertical":
150848
+ if (devWarningsDirection && !devWarningsDirection.has(instance)) {
150849
+ devWarningsDirection.add(instance);
150850
+ console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
150851
+ }
150852
+ break;
150853
+ case "ltr":
150854
+ case "rtl":
150855
+ break;
150856
+ default:
150857
+ throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
150858
+ }
150859
+ switch (layout) {
150860
+ case "horizontal":
150861
+ case "vertical":
150862
+ break;
150863
+ default:
150864
+ throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
150865
+ }
150866
+ if (children2 == null) {
150867
+ throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children2 === null ? "null" : typeof children2) + '" was specified.'));
150868
+ }
150869
+ if (isHorizontal && typeof width2 !== "number") {
150870
+ throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
150871
+ } else if (!isHorizontal && typeof height2 !== "number") {
150872
+ throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
150873
+ }
150874
+ }
150875
+ };
150876
+ var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
150877
+ var getItemMetadata$1 = function getItemMetadata3(props, index2, instanceProps) {
150878
+ var _ref = props, itemSize = _ref.itemSize;
150879
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
150880
+ if (index2 > lastMeasuredIndex) {
150881
+ var offset2 = 0;
150882
+ if (lastMeasuredIndex >= 0) {
150883
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
150884
+ offset2 = itemMetadata.offset + itemMetadata.size;
150885
+ }
150886
+ for (var i2 = lastMeasuredIndex + 1; i2 <= index2; i2++) {
150887
+ var size2 = itemSize(i2);
150888
+ itemMetadataMap[i2] = {
150889
+ offset: offset2,
150890
+ size: size2
150891
+ };
150892
+ offset2 += size2;
150893
+ }
150894
+ instanceProps.lastMeasuredIndex = index2;
150895
+ }
150896
+ return itemMetadataMap[index2];
150897
+ };
150898
+ var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
150899
+ var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
150900
+ var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
150901
+ if (lastMeasuredItemOffset >= offset2) {
150902
+ return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
150903
+ } else {
150904
+ return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
150905
+ }
150906
+ };
150907
+ var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
150908
+ while (low <= high) {
150909
+ var middle = low + Math.floor((high - low) / 2);
150910
+ var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
150911
+ if (currentOffset === offset2) {
150912
+ return middle;
150913
+ } else if (currentOffset < offset2) {
150914
+ low = middle + 1;
150915
+ } else if (currentOffset > offset2) {
150916
+ high = middle - 1;
150917
+ }
150918
+ }
150919
+ if (low > 0) {
150920
+ return low - 1;
150921
+ } else {
150922
+ return 0;
150923
+ }
150924
+ };
150925
+ var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index2, offset2) {
150926
+ var itemCount = props.itemCount;
150927
+ var interval2 = 1;
150928
+ while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
150929
+ index2 += interval2;
150930
+ interval2 *= 2;
150931
+ }
150932
+ return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
150933
+ };
150934
+ var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
150935
+ var itemCount = _ref2.itemCount;
150936
+ var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
150937
+ var totalSizeOfMeasuredItems = 0;
150938
+ if (lastMeasuredIndex >= itemCount) {
150939
+ lastMeasuredIndex = itemCount - 1;
150940
+ }
150941
+ if (lastMeasuredIndex >= 0) {
150942
+ var itemMetadata = itemMetadataMap[lastMeasuredIndex];
150943
+ totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
150944
+ }
150945
+ var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
150946
+ var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
150947
+ return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
150948
+ };
150949
+ var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
150950
+ getItemOffset: function getItemOffset(props, index2, instanceProps) {
150951
+ return getItemMetadata$1(props, index2, instanceProps).offset;
150952
+ },
150953
+ getItemSize: function getItemSize(props, index2, instanceProps) {
150954
+ return instanceProps.itemMetadataMap[index2].size;
150955
+ },
150956
+ getEstimatedTotalSize,
150957
+ getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
150958
+ var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
150959
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
150960
+ var size2 = isHorizontal ? width2 : height2;
150961
+ var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
150962
+ var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
150963
+ var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
150964
+ var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
150965
+ if (align === "smart") {
150966
+ if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
150967
+ align = "auto";
150968
+ } else {
150969
+ align = "center";
150970
+ }
150971
+ }
150972
+ switch (align) {
150973
+ case "start":
150974
+ return maxOffset;
150975
+ case "end":
150976
+ return minOffset;
150977
+ case "center":
150978
+ return Math.round(minOffset + (maxOffset - minOffset) / 2);
150979
+ case "auto":
150980
+ default:
150981
+ if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
150982
+ return scrollOffset;
150983
+ } else if (scrollOffset < minOffset) {
150984
+ return minOffset;
150985
+ } else {
150986
+ return maxOffset;
150987
+ }
150988
+ }
150989
+ },
150990
+ getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
150991
+ return findNearestItem$1(props, instanceProps, offset2);
150992
+ },
150993
+ getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
150994
+ var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
150995
+ var isHorizontal = direction === "horizontal" || layout === "horizontal";
150996
+ var size2 = isHorizontal ? width2 : height2;
150997
+ var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
150998
+ var maxOffset = scrollOffset + size2;
150999
+ var offset2 = itemMetadata.offset + itemMetadata.size;
151000
+ var stopIndex = startIndex;
151001
+ while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
151002
+ stopIndex++;
151003
+ offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
151004
+ }
151005
+ return stopIndex;
151006
+ },
151007
+ initInstanceProps: function initInstanceProps2(props, instance) {
151008
+ var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
151009
+ var instanceProps = {
151010
+ itemMetadataMap: {},
151011
+ estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
151012
+ lastMeasuredIndex: -1
151013
+ };
151014
+ instance.resetAfterIndex = function(index2, shouldForceUpdate) {
151015
+ if (shouldForceUpdate === void 0) {
151016
+ shouldForceUpdate = true;
151017
+ }
151018
+ instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
151019
+ instance._getItemStyleCache(-1);
151020
+ if (shouldForceUpdate) {
151021
+ instance.forceUpdate();
151022
+ }
151023
+ };
151024
+ return instanceProps;
151025
+ },
151026
+ shouldResetStyleCacheOnItemSizeChange: false,
151027
+ validateProps: function validateProps2(_ref5) {
151028
+ var itemSize = _ref5.itemSize;
151029
+ {
151030
+ if (typeof itemSize !== "function") {
151031
+ throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
151032
+ }
151033
+ }
151034
+ }
151035
+ });
151036
+ const VariableSizeList = VariableSizeList$1;
151037
+ const LIST_ROW_HEIGHT = 48;
151038
+ makeStyles()(() => ({
151039
+ searchInput: {
151040
+ lineHeight: "initial",
151041
+ height: "auto !important"
151042
+ }
151043
+ }));
151044
+ const OuterElementContext = React__default.createContext({});
151045
+ const OuterElementType = React__default.forwardRef((props, ref) => {
151046
+ const outerProps = React__default.useContext(OuterElementContext);
151047
+ return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
151048
+ });
151049
+ function ListRow(props) {
151050
+ const { data, index: index2, style: style2 } = props;
151051
+ const dataSet = data[index2];
151052
+ const inlineStyle = {
151053
+ ...style2,
151054
+ top: style2.top + 8
151055
+ };
151056
+ const [props0, option, getItemLabel] = dataSet;
151057
+ const { key, ...optionProps } = props0;
151058
+ return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
151059
+ }
151060
+ function useResetCache(itemCount) {
151061
+ const ref = useRef(null);
151062
+ useEffect(() => {
151063
+ if (ref.current != null) {
151064
+ ref.current.resetAfterIndex(0, true);
151065
+ }
151066
+ }, [itemCount]);
151067
+ return ref;
151068
+ }
151069
+ React__default.forwardRef((props, ref) => {
151070
+ const { children: children2, ...other } = props;
151071
+ const items = children2;
151072
+ const itemCount = items.length;
151073
+ const gridRef = useResetCache(itemCount);
151074
+ 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 }) }) });
151075
+ });
150057
151076
  const useStyles$3 = makeStyles()(() => ({
150058
151077
  toolButton: {
150059
151078
  display: "inline-flex",
@@ -150405,7 +151424,7 @@ function forceCollideRects() {
150405
151424
  let strength = 1;
150406
151425
  let iterations = 1;
150407
151426
  let sizes;
150408
- let size = constant$2([0, 0]);
151427
+ let size2 = constant$2([0, 0]);
150409
151428
  function xCenter(d) {
150410
151429
  return d.x + d.vx + sizes[d.index][0] / 2;
150411
151430
  }
@@ -150472,7 +151491,7 @@ function forceCollideRects() {
150472
151491
  }
150473
151492
  force.initialize = (v) => {
150474
151493
  nodes = v;
150475
- sizes = nodes.map(size);
151494
+ sizes = nodes.map(size2);
150476
151495
  masses = sizes.map((d) => d[0] + d[1]);
150477
151496
  };
150478
151497
  force.iterations = (...v) => {
@@ -150491,10 +151510,10 @@ function forceCollideRects() {
150491
151510
  };
150492
151511
  force.size = (...v) => {
150493
151512
  if (v.length) {
150494
- size = typeof v[0] === "function" ? v[0] : constant$2(v[0]);
151513
+ size2 = typeof v[0] === "function" ? v[0] : constant$2(v[0]);
150495
151514
  return force;
150496
151515
  }
150497
- return size;
151516
+ return size2;
150498
151517
  };
150499
151518
  return force;
150500
151519
  }
@@ -150613,9 +151632,9 @@ class Scatterplot extends AbstractSpatialOrScatterplot {
150613
151632
  const deckData = arrs.get("deckData");
150614
151633
  let contourColor = contourColorProp || getDefaultColor(theme);
150615
151634
  if (contourColorEncoding === "cellSetSelection") {
150616
- contourColor = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$1(obsSetKey, d.path))) == null ? void 0 : _a3.color) || contourColor;
151635
+ contourColor = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$2(obsSetKey, d.path))) == null ? void 0 : _a3.color) || contourColor;
150617
151636
  } else if (contourColorEncoding === "sampleSetSelection") {
150618
- contourColor = ((_b2 = sampleSetColor == null ? void 0 : sampleSetColor.find((d) => isEqual$1(sampleSetKey, d.path))) == null ? void 0 : _b2.color) || contourColor;
151637
+ contourColor = ((_b2 = sampleSetColor == null ? void 0 : sampleSetColor.find((d) => isEqual$2(sampleSetKey, d.path))) == null ? void 0 : _b2.color) || contourColor;
150619
151638
  }
150620
151639
  const contours = contourThresholds.map((threshold, i2) => ({
150621
151640
  i: i2,
@@ -151622,9 +152641,9 @@ function selection_node() {
151622
152641
  return null;
151623
152642
  }
151624
152643
  function selection_size() {
151625
- let size = 0;
151626
- for (const node2 of this) ++size;
151627
- return size;
152644
+ let size2 = 0;
152645
+ for (const node2 of this) ++size2;
152646
+ return size2;
151628
152647
  }
151629
152648
  function selection_empty() {
151630
152649
  return !this.node();
@@ -153604,7 +154623,7 @@ function Legend(props) {
153604
154623
  y += titleHeight;
153605
154624
  setPaths.forEach((setPath) => {
153606
154625
  var _a3;
153607
- const setColor2 = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$1(d.path, setPath))) == null ? void 0 : _a3.color) || getDefaultColor(theme ?? "light");
154626
+ const setColor2 = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$2(d.path, setPath))) == null ? void 0 : _a3.color) || getDefaultColor(theme ?? "light");
153608
154627
  g2.append("rect").attr("x", 0).attr("y", y).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor2[0]},${setColor2[1]},${setColor2[2]})`);
153609
154628
  g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y).text(setPath.at(-1) ?? "").style("font-size", "9px").style("fill", foregroundColor);
153610
154629
  y += rectHeight + rectMarginY;
@@ -154034,10 +155053,10 @@ function EmbeddingScatterplotSubscriber(props) {
154034
155053
  matrixObsIndex
154035
155054
  ]);
154036
155055
  const [cellSetPolygonCache, setCellSetPolygonCache] = useState([]);
154037
- const cacheHas2 = (cache2, key) => cache2.findIndex((el) => isEqual$1(el[0], key)) !== -1;
155056
+ const cacheHas2 = (cache2, key) => cache2.findIndex((el) => isEqual$2(el[0], key)) !== -1;
154038
155057
  const cacheGet = (cache2, key) => {
154039
155058
  var _a3;
154040
- return (_a3 = cache2.find((el) => isEqual$1(el[0], key))) == null ? void 0 : _a3[1];
155059
+ return (_a3 = cache2.find((el) => isEqual$2(el[0], key))) == null ? void 0 : _a3[1];
154041
155060
  };
154042
155061
  const cellSetPolygons = useMemo(() => {
154043
155062
  var _a3;
@@ -154182,8 +155201,8 @@ function EmbeddingScatterplotSubscriber(props) {
154182
155201
  if (!(typeof scaleFactor === "number" && typeof center2[0] === "number" && typeof center2[1] === "number") || Number.isNaN(scaleFactor)) {
154183
155202
  return null;
154184
155203
  }
154185
- const size = Math.max(xRange, yRange);
154186
- const radius = size * Math.sqrt(2) / 2 * circleScaleFactor;
155204
+ const size2 = Math.max(xRange, yRange);
155205
+ const radius = size2 * Math.sqrt(2) / 2 * circleScaleFactor;
154187
155206
  const numPoints = 96;
154188
155207
  const options = { steps: numPoints, units: "degrees" };
154189
155208
  const circlePolygon = circle$2(center2, radius, options);