@vitessce/dev 3.8.9 → 3.8.10

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.
@@ -1338,7 +1338,7 @@ const COMPONENT_COORDINATION_TYPES = {
1338
1338
  CoordinationType$2.HIERARCHY_LEVELS
1339
1339
  ]
1340
1340
  };
1341
- const version$6 = "3.8.9";
1341
+ const version$6 = "3.8.10";
1342
1342
  const META_VERSION = {
1343
1343
  version: version$6
1344
1344
  };
@@ -4960,7 +4960,7 @@ let Array$2 = (_k = class extends (_j2 = Location$1, _i = CONTEXT_MARKER$1, _j2)
4960
4960
  return is_dtype$1(this.dtype, query);
4961
4961
  }
4962
4962
  }, _metadata2 = new WeakMap(), _k);
4963
- function* range$f(start2, stop3, step = 1) {
4963
+ function* range$e(start2, stop3, step = 1) {
4964
4964
  if (stop3 === void 0) {
4965
4965
  stop3 = start2;
4966
4966
  start2 = 0;
@@ -5115,7 +5115,7 @@ let SliceDimIndexer$1 = class SliceDimIndexer {
5115
5115
  *[Symbol.iterator]() {
5116
5116
  const dim_chunk_ix_from = Math.floor(this.start / this.dim_chunk_len);
5117
5117
  const dim_chunk_ix_to = Math.ceil(this.stop / this.dim_chunk_len);
5118
- for (const dim_chunk_ix of range$f(dim_chunk_ix_from, dim_chunk_ix_to)) {
5118
+ for (const dim_chunk_ix of range$e(dim_chunk_ix_from, dim_chunk_ix_to)) {
5119
5119
  const dim_offset = dim_chunk_ix * this.dim_chunk_len;
5120
5120
  const dim_limit = Math.min(this.dim_len, (dim_chunk_ix + 1) * this.dim_chunk_len);
5121
5121
  const dim_chunk_len = dim_limit - dim_offset;
@@ -6487,7 +6487,7 @@ function parseV1(spec, renderString) {
6487
6487
  function* iterDims(dimensions) {
6488
6488
  const keys2 = Object.keys(dimensions);
6489
6489
  const iterables = Object.values(dimensions).map(
6490
- (i2) => Array.isArray(i2) ? i2 : [...range$e(i2)]
6490
+ (i2) => Array.isArray(i2) ? i2 : [...range$d(i2)]
6491
6491
  );
6492
6492
  for (const values3 of product$2(...iterables)) {
6493
6493
  yield Object.fromEntries(keys2.map((key2, i2) => [key2, values3[i2]]));
@@ -6516,7 +6516,7 @@ function* product$2(...iterables) {
6516
6516
  results[i2] = iterators[i2].next();
6517
6517
  }
6518
6518
  }
6519
- function* range$e({ stop: stop3, start: start2 = 0, step = 1 }) {
6519
+ function* range$d({ stop: stop3, start: start2 = 0, step = 1 }) {
6520
6520
  for (let i2 = start2; i2 < stop3; i2 += step) {
6521
6521
  yield i2;
6522
6522
  }
@@ -6779,13 +6779,7 @@ class SpatialDataAutoConfig extends AbstractAutoConfig2 {
6779
6779
  };
6780
6780
  }
6781
6781
  if (relPath.match(/^(shapes)\/([^/]*)$/)) {
6782
- options.obsSpots = {
6783
- path: relPath,
6784
- coordinateSystem: firstCoordinateSystem
6785
- };
6786
- }
6787
- if (relPath.match(/^(points)\/([^/]*)$/)) {
6788
- options.obsPoints = {
6782
+ options.obsSegmentations = {
6789
6783
  path: relPath,
6790
6784
  coordinateSystem: firstCoordinateSystem
6791
6785
  };
@@ -6799,21 +6793,6 @@ class SpatialDataAutoConfig extends AbstractAutoConfig2 {
6799
6793
  // region: null,
6800
6794
  };
6801
6795
  }
6802
- const hasObs = tableEls.find((el) => el.path === `${path2}/obs`);
6803
- if (hasObs) {
6804
- const columnOrder = hasObs.attrs?.["column-order"];
6805
- options.obsSets = {
6806
- // region: null,
6807
- tablePath: relPath,
6808
- obsSets: columnOrder.map((c2) => ({
6809
- // TODO: determine whether this column is string/categorical.
6810
- // TODO: determine whether this column contains too many
6811
- // categories to make sense to consider a cell set.
6812
- path: `${hasObs.path.substring(1)}/${c2}`,
6813
- name: c2
6814
- }))
6815
- };
6816
- }
6817
6796
  }
6818
6797
  });
6819
6798
  return options;
@@ -6968,8 +6947,16 @@ async function parsedUrlToZmetadata(parsedUrl) {
6968
6947
  store = await withConsolidated(initialStore, { metadataKey: "zmetadata" });
6969
6948
  }
6970
6949
  const contents = store.contents();
6950
+ const consolidatedRoot = await open$1(store, { kind: "group" });
6971
6951
  promises = contents.map(async (value2) => {
6972
- const item = await open$1(root$e(store).resolve(value2.path));
6952
+ let item;
6953
+ try {
6954
+ item = await open$1(consolidatedRoot.resolve(value2.path), { kind: value2.kind });
6955
+ } catch {
6956
+ item = {
6957
+ attrs: {}
6958
+ };
6959
+ }
6973
6960
  return {
6974
6961
  ...value2,
6975
6962
  attrs: item.attrs
@@ -7000,9 +6987,10 @@ async function parsedUrlToZmetadata(parsedUrl) {
7000
6987
  // Note: For spatialData, we assume the store is always consolidated.
7001
6988
  // TODO: throw error if spatialdata + not consolidated?
7002
6989
  ];
6990
+ const storeRoot = await open$1(store, { kind: "group" });
7003
6991
  promises = keysToTry.map(async (k) => {
7004
6992
  try {
7005
- const item = await open$1(root$e(store).resolve(k));
6993
+ const item = await open$1(storeRoot.resolve(k));
7006
6994
  return {
7007
6995
  path: k,
7008
6996
  kind: item.kind,
@@ -45095,7 +45083,7 @@ function escapeRegExp(value2) {
45095
45083
  return value2.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
45096
45084
  }
45097
45085
  const clamp$7 = (value2, min2, max2) => Math.max(min2, Math.min(max2, value2));
45098
- function range$d(from2, to) {
45086
+ function range$c(from2, to) {
45099
45087
  return Array.from({
45100
45088
  length: to - from2
45101
45089
  }).map((_, i2) => from2 + i2);
@@ -49493,7 +49481,7 @@ const useGridVirtualScroller = () => {
49493
49481
  const rowModels = params2.rows ?? currentPage.rows;
49494
49482
  const firstRowToRender = baseRenderContext.firstRowIndex;
49495
49483
  const lastRowToRender = Math.min(baseRenderContext.lastRowIndex, rowModels.length);
49496
- const rowIndexes = params2.rows ? range$d(0, params2.rows.length) : range$d(firstRowToRender, lastRowToRender);
49484
+ const rowIndexes = params2.rows ? range$c(0, params2.rows.length) : range$c(firstRowToRender, lastRowToRender);
49497
49485
  let virtualRowIndex = -1;
49498
49486
  if (!isPinnedSection && focusedVirtualCell) {
49499
49487
  if (focusedVirtualCell.rowIndex < firstRowToRender) {
@@ -75187,7 +75175,7 @@ function createRange(fromRight) {
75187
75175
  return baseRange(start2, end2, step);
75188
75176
  };
75189
75177
  }
75190
- var range$c = createRange();
75178
+ var range$b = createRange();
75191
75179
  function sum$8(array2) {
75192
75180
  return array2 && array2.length ? baseSum(array2, identity$i) : 0;
75193
75181
  }
@@ -80654,10 +80642,10 @@ function requireLrucache() {
80654
80642
  lrucache = LRUCache3;
80655
80643
  return lrucache;
80656
80644
  }
80657
- var range$b;
80645
+ var range$a;
80658
80646
  var hasRequiredRange$1;
80659
80647
  function requireRange$1() {
80660
- if (hasRequiredRange$1) return range$b;
80648
+ if (hasRequiredRange$1) return range$a;
80661
80649
  hasRequiredRange$1 = 1;
80662
80650
  const SPACE_CHARACTERS = /\s+/g;
80663
80651
  class Range2 {
@@ -80798,7 +80786,7 @@ function requireRange$1() {
80798
80786
  return false;
80799
80787
  }
80800
80788
  }
80801
- range$b = Range2;
80789
+ range$a = Range2;
80802
80790
  const LRU = requireLrucache();
80803
80791
  const cache2 = new LRU();
80804
80792
  const parseOptions2 = requireParseOptions();
@@ -81028,7 +81016,7 @@ function requireRange$1() {
81028
81016
  }
81029
81017
  return true;
81030
81018
  };
81031
- return range$b;
81019
+ return range$a;
81032
81020
  }
81033
81021
  var comparator$2;
81034
81022
  var hasRequiredComparator$1;
@@ -89944,7 +89932,7 @@ function resolveLayout(layout) {
89944
89932
  const id2 = "ID";
89945
89933
  const columnCount = 12;
89946
89934
  cols[id2] = columnCount;
89947
- layouts[id2] = makeGridLayout(range$c(columnCount + 1), positions);
89935
+ layouts[id2] = makeGridLayout(range$b(columnCount + 1), positions);
89948
89936
  breakpoints2[id2] = 1e3;
89949
89937
  }
89950
89938
  return {
@@ -90336,10 +90324,10 @@ function createLoaders(datasets, configDescription, fileTypes, coordinationTypes
90336
90324
  });
90337
90325
  return result;
90338
90326
  }
90339
- function ascending$9(a2, b2) {
90327
+ function ascending$8(a2, b2) {
90340
90328
  return a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
90341
90329
  }
90342
- function bisector$4(f2) {
90330
+ function bisector$3(f2) {
90343
90331
  let delta = f2;
90344
90332
  let compare2 = f2;
90345
90333
  if (f2.length === 1) {
@@ -90375,14 +90363,14 @@ function bisector$4(f2) {
90375
90363
  return { left: left2, center: center2, right: right2 };
90376
90364
  }
90377
90365
  function ascendingComparator$1(f2) {
90378
- return (d, x2) => ascending$9(f2(d), x2);
90366
+ return (d, x2) => ascending$8(f2(d), x2);
90379
90367
  }
90380
- function number$b(x2) {
90368
+ function number$a(x2) {
90381
90369
  return x2 === null ? NaN : +x2;
90382
90370
  }
90383
- const ascendingBisect$2 = bisector$4(ascending$9);
90384
- const bisectRight$3 = ascendingBisect$2.right;
90385
- bisector$4(number$b).center;
90371
+ const ascendingBisect$1 = bisector$3(ascending$8);
90372
+ const bisectRight$2 = ascendingBisect$1.right;
90373
+ bisector$3(number$a).center;
90386
90374
  function count$2(values3, valueof) {
90387
90375
  let count2 = 0;
90388
90376
  {
@@ -90601,7 +90589,7 @@ function bin$2() {
90601
90589
  for (i2 = 0; i2 < n3; ++i2) {
90602
90590
  x2 = values3[i2];
90603
90591
  if (x02 <= x2 && x2 <= x12) {
90604
- bins2[bisectRight$3(tz, x2, 0, m2)].push(data2[i2]);
90592
+ bins2[bisectRight$2(tz, x2, 0, m2)].push(data2[i2]);
90605
90593
  }
90606
90594
  }
90607
90595
  return bins2;
@@ -90639,7 +90627,7 @@ function min$4(values3, valueof) {
90639
90627
  }
90640
90628
  return min2;
90641
90629
  }
90642
- function quantileSorted$1(values3, p, valueof = number$b) {
90630
+ function quantileSorted$1(values3, p, valueof = number$a) {
90643
90631
  if (!(n3 = values3.length)) return;
90644
90632
  if ((p = +p) <= 0 || n3 < 2) return +valueof(values3[0], 0, values3);
90645
90633
  if (p >= 1) return +valueof(values3[n3 - 1], n3 - 1, values3);
@@ -93094,7 +93082,7 @@ let powers = 0;
93094
93082
  const boolean = increment$1();
93095
93083
  const booleanish = increment$1();
93096
93084
  const overloadedBoolean = increment$1();
93097
- const number$a = increment$1();
93085
+ const number$9 = increment$1();
93098
93086
  const spaceSeparated = increment$1();
93099
93087
  const commaSeparated = increment$1();
93100
93088
  const commaOrSpaceSeparated = increment$1();
@@ -93107,7 +93095,7 @@ const types = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePropert
93107
93095
  booleanish,
93108
93096
  commaOrSpaceSeparated,
93109
93097
  commaSeparated,
93110
- number: number$a,
93098
+ number: number$9,
93111
93099
  overloadedBoolean,
93112
93100
  spaceSeparated
93113
93101
  }, Symbol.toStringTag, { value: "Module" }));
@@ -93206,9 +93194,9 @@ const aria$1 = create$c({
93206
93194
  ariaAutoComplete: null,
93207
93195
  ariaBusy: booleanish,
93208
93196
  ariaChecked: booleanish,
93209
- ariaColCount: number$a,
93210
- ariaColIndex: number$a,
93211
- ariaColSpan: number$a,
93197
+ ariaColCount: number$9,
93198
+ ariaColIndex: number$9,
93199
+ ariaColSpan: number$9,
93212
93200
  ariaControls: spaceSeparated,
93213
93201
  ariaCurrent: null,
93214
93202
  ariaDescribedBy: spaceSeparated,
@@ -93225,7 +93213,7 @@ const aria$1 = create$c({
93225
93213
  ariaKeyShortcuts: null,
93226
93214
  ariaLabel: null,
93227
93215
  ariaLabelledBy: spaceSeparated,
93228
- ariaLevel: number$a,
93216
+ ariaLevel: number$9,
93229
93217
  ariaLive: null,
93230
93218
  ariaModal: booleanish,
93231
93219
  ariaMultiLine: booleanish,
@@ -93233,21 +93221,21 @@ const aria$1 = create$c({
93233
93221
  ariaOrientation: null,
93234
93222
  ariaOwns: spaceSeparated,
93235
93223
  ariaPlaceholder: null,
93236
- ariaPosInSet: number$a,
93224
+ ariaPosInSet: number$9,
93237
93225
  ariaPressed: booleanish,
93238
93226
  ariaReadOnly: booleanish,
93239
93227
  ariaRelevant: null,
93240
93228
  ariaRequired: booleanish,
93241
93229
  ariaRoleDescription: spaceSeparated,
93242
- ariaRowCount: number$a,
93243
- ariaRowIndex: number$a,
93244
- ariaRowSpan: number$a,
93230
+ ariaRowCount: number$9,
93231
+ ariaRowIndex: number$9,
93232
+ ariaRowSpan: number$9,
93245
93233
  ariaSelected: booleanish,
93246
- ariaSetSize: number$a,
93234
+ ariaSetSize: number$9,
93247
93235
  ariaSort: null,
93248
- ariaValueMax: number$a,
93249
- ariaValueMin: number$a,
93250
- ariaValueNow: number$a,
93236
+ ariaValueMax: number$9,
93237
+ ariaValueMin: number$9,
93238
+ ariaValueNow: number$9,
93251
93239
  ariaValueText: null,
93252
93240
  role: null
93253
93241
  }
@@ -93286,13 +93274,13 @@ const html$2 = create$c({
93286
93274
  checked: boolean,
93287
93275
  cite: null,
93288
93276
  className: spaceSeparated,
93289
- cols: number$a,
93277
+ cols: number$9,
93290
93278
  colSpan: null,
93291
93279
  content: null,
93292
93280
  contentEditable: booleanish,
93293
93281
  controls: boolean,
93294
93282
  controlsList: spaceSeparated,
93295
- coords: number$a | commaSeparated,
93283
+ coords: number$9 | commaSeparated,
93296
93284
  crossOrigin: null,
93297
93285
  data: null,
93298
93286
  dateTime: null,
@@ -93314,9 +93302,9 @@ const html$2 = create$c({
93314
93302
  formNoValidate: boolean,
93315
93303
  formTarget: null,
93316
93304
  headers: spaceSeparated,
93317
- height: number$a,
93305
+ height: number$9,
93318
93306
  hidden: boolean,
93319
- high: number$a,
93307
+ high: number$9,
93320
93308
  href: null,
93321
93309
  hrefLang: null,
93322
93310
  htmlFor: spaceSeparated,
@@ -93341,14 +93329,14 @@ const html$2 = create$c({
93341
93329
  list: null,
93342
93330
  loading: null,
93343
93331
  loop: boolean,
93344
- low: number$a,
93332
+ low: number$9,
93345
93333
  manifest: null,
93346
93334
  max: null,
93347
- maxLength: number$a,
93335
+ maxLength: number$9,
93348
93336
  media: null,
93349
93337
  method: null,
93350
93338
  min: null,
93351
- minLength: number$a,
93339
+ minLength: number$9,
93352
93340
  multiple: boolean,
93353
93341
  muted: boolean,
93354
93342
  name: null,
@@ -93444,7 +93432,7 @@ const html$2 = create$c({
93444
93432
  onWaiting: null,
93445
93433
  onWheel: null,
93446
93434
  open: boolean,
93447
- optimum: number$a,
93435
+ optimum: number$9,
93448
93436
  pattern: null,
93449
93437
  ping: spaceSeparated,
93450
93438
  placeholder: null,
@@ -93459,8 +93447,8 @@ const html$2 = create$c({
93459
93447
  rel: spaceSeparated,
93460
93448
  required: boolean,
93461
93449
  reversed: boolean,
93462
- rows: number$a,
93463
- rowSpan: number$a,
93450
+ rows: number$9,
93451
+ rowSpan: number$9,
93464
93452
  sandbox: spaceSeparated,
93465
93453
  scope: null,
93466
93454
  scoped: boolean,
@@ -93470,19 +93458,19 @@ const html$2 = create$c({
93470
93458
  shadowRootDelegatesFocus: boolean,
93471
93459
  shadowRootMode: null,
93472
93460
  shape: null,
93473
- size: number$a,
93461
+ size: number$9,
93474
93462
  sizes: null,
93475
93463
  slot: null,
93476
- span: number$a,
93464
+ span: number$9,
93477
93465
  spellCheck: booleanish,
93478
93466
  src: null,
93479
93467
  srcDoc: null,
93480
93468
  srcLang: null,
93481
93469
  srcSet: null,
93482
- start: number$a,
93470
+ start: number$9,
93483
93471
  step: null,
93484
93472
  style: null,
93485
- tabIndex: number$a,
93473
+ tabIndex: number$9,
93486
93474
  target: null,
93487
93475
  title: null,
93488
93476
  translate: null,
@@ -93490,7 +93478,7 @@ const html$2 = create$c({
93490
93478
  typeMustMatch: boolean,
93491
93479
  useMap: null,
93492
93480
  value: booleanish,
93493
- width: number$a,
93481
+ width: number$9,
93494
93482
  wrap: null,
93495
93483
  writingSuggestions: null,
93496
93484
  // Legacy.
@@ -93507,11 +93495,11 @@ const html$2 = create$c({
93507
93495
  // `<body>`. Use CSS `background-image` instead
93508
93496
  bgColor: null,
93509
93497
  // `<body>` and table elements. Use CSS `background-color` instead
93510
- border: number$a,
93498
+ border: number$9,
93511
93499
  // `<table>`. Use CSS `border-width` instead,
93512
93500
  borderColor: null,
93513
93501
  // `<table>`. Use CSS `border-color` instead,
93514
- bottomMargin: number$a,
93502
+ bottomMargin: number$9,
93515
93503
  // `<body>`
93516
93504
  cellPadding: null,
93517
93505
  // `<table>`
@@ -93545,9 +93533,9 @@ const html$2 = create$c({
93545
93533
  // `<table>`
93546
93534
  frameBorder: null,
93547
93535
  // `<iframe>`. Use CSS `border` instead
93548
- hSpace: number$a,
93536
+ hSpace: number$9,
93549
93537
  // `<img>` and `<object>`
93550
- leftMargin: number$a,
93538
+ leftMargin: number$9,
93551
93539
  // `<body>`
93552
93540
  link: null,
93553
93541
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -93555,9 +93543,9 @@ const html$2 = create$c({
93555
93543
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
93556
93544
  lowSrc: null,
93557
93545
  // `<img>`. Use a `<picture>`
93558
- marginHeight: number$a,
93546
+ marginHeight: number$9,
93559
93547
  // `<body>`
93560
- marginWidth: number$a,
93548
+ marginWidth: number$9,
93561
93549
  // `<body>`
93562
93550
  noResize: boolean,
93563
93551
  // `<frame>`
@@ -93575,7 +93563,7 @@ const html$2 = create$c({
93575
93563
  // `<isindex>`
93576
93564
  rev: null,
93577
93565
  // `<link>`
93578
- rightMargin: number$a,
93566
+ rightMargin: number$9,
93579
93567
  // `<body>`
93580
93568
  rules: null,
93581
93569
  // `<table>`
@@ -93589,7 +93577,7 @@ const html$2 = create$c({
93589
93577
  // `<table>`
93590
93578
  text: null,
93591
93579
  // `<body>`. Use CSS `color` instead
93592
- topMargin: number$a,
93580
+ topMargin: number$9,
93593
93581
  // `<body>`
93594
93582
  valueType: null,
93595
93583
  // `<param>`
@@ -93599,7 +93587,7 @@ const html$2 = create$c({
93599
93587
  // Several. Use CSS `vertical-align` instead
93600
93588
  vLink: null,
93601
93589
  // `<body>`. Use CSS `a:visited {color}` instead
93602
- vSpace: number$a,
93590
+ vSpace: number$9,
93603
93591
  // `<img>` and `<object>`
93604
93592
  // Non-standard Properties.
93605
93593
  allowTransparency: null,
@@ -93609,7 +93597,7 @@ const html$2 = create$c({
93609
93597
  disableRemotePlayback: boolean,
93610
93598
  prefix: null,
93611
93599
  property: null,
93612
- results: number$a,
93600
+ results: number$9,
93613
93601
  security: null,
93614
93602
  unselectable: null
93615
93603
  }
@@ -93794,27 +93782,27 @@ const svg$1 = create$c({
93794
93782
  transform: caseSensitiveTransform,
93795
93783
  properties: {
93796
93784
  about: commaOrSpaceSeparated,
93797
- accentHeight: number$a,
93785
+ accentHeight: number$9,
93798
93786
  accumulate: null,
93799
93787
  additive: null,
93800
93788
  alignmentBaseline: null,
93801
- alphabetic: number$a,
93802
- amplitude: number$a,
93789
+ alphabetic: number$9,
93790
+ amplitude: number$9,
93803
93791
  arabicForm: null,
93804
- ascent: number$a,
93792
+ ascent: number$9,
93805
93793
  attributeName: null,
93806
93794
  attributeType: null,
93807
- azimuth: number$a,
93795
+ azimuth: number$9,
93808
93796
  bandwidth: null,
93809
93797
  baselineShift: null,
93810
93798
  baseFrequency: null,
93811
93799
  baseProfile: null,
93812
93800
  bbox: null,
93813
93801
  begin: null,
93814
- bias: number$a,
93802
+ bias: number$9,
93815
93803
  by: null,
93816
93804
  calcMode: null,
93817
- capHeight: number$a,
93805
+ capHeight: number$9,
93818
93806
  className: spaceSeparated,
93819
93807
  clip: null,
93820
93808
  clipPath: null,
@@ -93835,26 +93823,26 @@ const svg$1 = create$c({
93835
93823
  d: null,
93836
93824
  dataType: null,
93837
93825
  defaultAction: null,
93838
- descent: number$a,
93839
- diffuseConstant: number$a,
93826
+ descent: number$9,
93827
+ diffuseConstant: number$9,
93840
93828
  direction: null,
93841
93829
  display: null,
93842
93830
  dur: null,
93843
- divisor: number$a,
93831
+ divisor: number$9,
93844
93832
  dominantBaseline: null,
93845
93833
  download: boolean,
93846
93834
  dx: null,
93847
93835
  dy: null,
93848
93836
  edgeMode: null,
93849
93837
  editable: null,
93850
- elevation: number$a,
93838
+ elevation: number$9,
93851
93839
  enableBackground: null,
93852
93840
  end: null,
93853
93841
  event: null,
93854
- exponent: number$a,
93842
+ exponent: number$9,
93855
93843
  externalResourcesRequired: null,
93856
93844
  fill: null,
93857
- fillOpacity: number$a,
93845
+ fillOpacity: number$9,
93858
93846
  fillRule: null,
93859
93847
  filter: null,
93860
93848
  filterRes: null,
@@ -93884,27 +93872,27 @@ const svg$1 = create$c({
93884
93872
  gradientTransform: null,
93885
93873
  gradientUnits: null,
93886
93874
  handler: null,
93887
- hanging: number$a,
93875
+ hanging: number$9,
93888
93876
  hatchContentUnits: null,
93889
93877
  hatchUnits: null,
93890
93878
  height: null,
93891
93879
  href: null,
93892
93880
  hrefLang: null,
93893
- horizAdvX: number$a,
93894
- horizOriginX: number$a,
93895
- horizOriginY: number$a,
93881
+ horizAdvX: number$9,
93882
+ horizOriginX: number$9,
93883
+ horizOriginY: number$9,
93896
93884
  id: null,
93897
- ideographic: number$a,
93885
+ ideographic: number$9,
93898
93886
  imageRendering: null,
93899
93887
  initialVisibility: null,
93900
93888
  in: null,
93901
93889
  in2: null,
93902
- intercept: number$a,
93903
- k: number$a,
93904
- k1: number$a,
93905
- k2: number$a,
93906
- k3: number$a,
93907
- k4: number$a,
93890
+ intercept: number$9,
93891
+ k: number$9,
93892
+ k1: number$9,
93893
+ k2: number$9,
93894
+ k3: number$9,
93895
+ k4: number$9,
93908
93896
  kernelMatrix: commaOrSpaceSeparated,
93909
93897
  kernelUnitLength: null,
93910
93898
  keyPoints: null,
@@ -93918,7 +93906,7 @@ const svg$1 = create$c({
93918
93906
  lengthAdjust: null,
93919
93907
  letterSpacing: null,
93920
93908
  lightingColor: null,
93921
- limitingConeAngle: number$a,
93909
+ limitingConeAngle: number$9,
93922
93910
  local: null,
93923
93911
  markerEnd: null,
93924
93912
  markerMid: null,
@@ -93934,7 +93922,7 @@ const svg$1 = create$c({
93934
93922
  media: null,
93935
93923
  mediaCharacterEncoding: null,
93936
93924
  mediaContentEncodings: null,
93937
- mediaSize: number$a,
93925
+ mediaSize: number$9,
93938
93926
  mediaTime: null,
93939
93927
  method: null,
93940
93928
  min: null,
@@ -94040,12 +94028,12 @@ const svg$1 = create$c({
94040
94028
  origin: null,
94041
94029
  overflow: null,
94042
94030
  overlay: null,
94043
- overlinePosition: number$a,
94044
- overlineThickness: number$a,
94031
+ overlinePosition: number$9,
94032
+ overlineThickness: number$9,
94045
94033
  paintOrder: null,
94046
94034
  panose1: null,
94047
94035
  path: null,
94048
- pathLength: number$a,
94036
+ pathLength: number$9,
94049
94037
  patternContentUnits: null,
94050
94038
  patternTransform: null,
94051
94039
  patternUnits: null,
@@ -94055,9 +94043,9 @@ const svg$1 = create$c({
94055
94043
  playbackOrder: null,
94056
94044
  pointerEvents: null,
94057
94045
  points: null,
94058
- pointsAtX: number$a,
94059
- pointsAtY: number$a,
94060
- pointsAtZ: number$a,
94046
+ pointsAtX: number$9,
94047
+ pointsAtY: number$9,
94048
+ pointsAtZ: number$9,
94061
94049
  preserveAlpha: null,
94062
94050
  preserveAspectRatio: null,
94063
94051
  primitiveUnits: null,
@@ -94089,8 +94077,8 @@ const svg$1 = create$c({
94089
94077
  side: null,
94090
94078
  slope: null,
94091
94079
  snapshotTime: null,
94092
- specularConstant: number$a,
94093
- specularExponent: number$a,
94080
+ specularConstant: number$9,
94081
+ specularExponent: number$9,
94094
94082
  spreadMethod: null,
94095
94083
  spacing: null,
94096
94084
  startOffset: null,
@@ -94100,30 +94088,30 @@ const svg$1 = create$c({
94100
94088
  stitchTiles: null,
94101
94089
  stopColor: null,
94102
94090
  stopOpacity: null,
94103
- strikethroughPosition: number$a,
94104
- strikethroughThickness: number$a,
94091
+ strikethroughPosition: number$9,
94092
+ strikethroughThickness: number$9,
94105
94093
  string: null,
94106
94094
  stroke: null,
94107
94095
  strokeDashArray: commaOrSpaceSeparated,
94108
94096
  strokeDashOffset: null,
94109
94097
  strokeLineCap: null,
94110
94098
  strokeLineJoin: null,
94111
- strokeMiterLimit: number$a,
94112
- strokeOpacity: number$a,
94099
+ strokeMiterLimit: number$9,
94100
+ strokeOpacity: number$9,
94113
94101
  strokeWidth: null,
94114
94102
  style: null,
94115
- surfaceScale: number$a,
94103
+ surfaceScale: number$9,
94116
94104
  syncBehavior: null,
94117
94105
  syncBehaviorDefault: null,
94118
94106
  syncMaster: null,
94119
94107
  syncTolerance: null,
94120
94108
  syncToleranceDefault: null,
94121
94109
  systemLanguage: commaOrSpaceSeparated,
94122
- tabIndex: number$a,
94110
+ tabIndex: number$9,
94123
94111
  tableValues: null,
94124
94112
  target: null,
94125
- targetX: number$a,
94126
- targetY: number$a,
94113
+ targetX: number$9,
94114
+ targetY: number$9,
94127
94115
  textAnchor: null,
94128
94116
  textDecoration: null,
94129
94117
  textRendering: null,
@@ -94138,22 +94126,22 @@ const svg$1 = create$c({
94138
94126
  transformOrigin: null,
94139
94127
  u1: null,
94140
94128
  u2: null,
94141
- underlinePosition: number$a,
94142
- underlineThickness: number$a,
94129
+ underlinePosition: number$9,
94130
+ underlineThickness: number$9,
94143
94131
  unicode: null,
94144
94132
  unicodeBidi: null,
94145
94133
  unicodeRange: null,
94146
- unitsPerEm: number$a,
94134
+ unitsPerEm: number$9,
94147
94135
  values: null,
94148
- vAlphabetic: number$a,
94149
- vMathematical: number$a,
94136
+ vAlphabetic: number$9,
94137
+ vMathematical: number$9,
94150
94138
  vectorEffect: null,
94151
- vHanging: number$a,
94152
- vIdeographic: number$a,
94139
+ vHanging: number$9,
94140
+ vIdeographic: number$9,
94153
94141
  version: null,
94154
- vertAdvY: number$a,
94155
- vertOriginX: number$a,
94156
- vertOriginY: number$a,
94142
+ vertAdvY: number$9,
94143
+ vertOriginX: number$9,
94144
+ vertOriginY: number$9,
94157
94145
  viewBox: null,
94158
94146
  viewTarget: null,
94159
94147
  visibility: null,
@@ -94165,7 +94153,7 @@ const svg$1 = create$c({
94165
94153
  x1: null,
94166
94154
  x2: null,
94167
94155
  xChannelSelector: null,
94168
- xHeight: number$a,
94156
+ xHeight: number$9,
94169
94157
  y: null,
94170
94158
  y1: null,
94171
94159
  y2: null,
@@ -105106,7 +105094,7 @@ function treeToExpectedCheckedLevel(currTree, checkedPaths) {
105106
105094
  currTree.tree.forEach((lzn) => {
105107
105095
  const levelZeroPath = [lzn.name];
105108
105096
  const height2 = nodeToHeight(lzn);
105109
- range$c(height2).forEach((i2) => {
105097
+ range$b(height2).forEach((i2) => {
105110
105098
  const levelIndex = i2 + 1;
105111
105099
  const levelNodePaths = nodeToLevelDescendantNamePaths(lzn, levelIndex, [], true);
105112
105100
  if (isEqual$3(levelNodePaths, checkedPaths)) {
@@ -105179,7 +105167,7 @@ function treeToMembershipMap(currTree) {
105179
105167
  if (currTree) {
105180
105168
  currTree.tree.forEach((lzn) => {
105181
105169
  const height2 = nodeToHeight(lzn);
105182
- range$c(height2).forEach((i2) => {
105170
+ range$b(height2).forEach((i2) => {
105183
105171
  const levelIndex = i2 + 1;
105184
105172
  const levelNodePaths = nodeToLevelDescendantNamePaths(lzn, levelIndex, [], true);
105185
105173
  levelNodePaths.forEach((setNamePath) => {
@@ -122818,7 +122806,7 @@ function LevelsButtons(props) {
122818
122806
  }
122819
122807
  }
122820
122808
  const { classes: classes2 } = useStyles$t();
122821
- return jsxRuntimeExports.jsx("div", { className: classes2.levelButtonsContainer, children: range$c(1, height2 + 1).map((i2) => {
122809
+ return jsxRuntimeExports.jsx("div", { className: classes2.levelButtonsContainer, children: range$b(1, height2 + 1).map((i2) => {
122822
122810
  const isChecked = isEqual$3(path2, checkedLevelPath) && i2 === checkedLevelIndex;
122823
122811
  return jsxRuntimeExports.jsx("div", { children: jsxRuntimeExports.jsx(HelpTooltip, { title: getLevelTooltipText(i2), children: jsxRuntimeExports.jsx("input", { className: clsx(classes2.levelRadioButton, { [classes2.levelRadioButtonChecked]: isChecked && !hasColorEncoding }), type: "checkbox", value: i2, checked: isChecked && hasColorEncoding, onChange: onCheck }) }) }, i2);
122824
122812
  }) });
@@ -162592,7 +162580,7 @@ const defaultGetValue = (points2) => points2.length;
162592
162580
  const MAX_32_BIT_FLOAT = 3402823466e29;
162593
162581
  const defaultGetPoints = (bin2) => bin2.points;
162594
162582
  const defaultGetIndex = (bin2) => bin2.index;
162595
- const ascending$8 = (a2, b2) => a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
162583
+ const ascending$7 = (a2, b2) => a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
162596
162584
  const defaultProps$w = {
162597
162585
  getValue: defaultGetValue,
162598
162586
  getPoints: defaultGetPoints,
@@ -162676,7 +162664,7 @@ class BinSorter {
162676
162664
  }
162677
162665
  getValueRange(percentileRange) {
162678
162666
  if (!this.sortedBins) {
162679
- this.sortedBins = this.aggregatedBins.sort((a2, b2) => ascending$8(a2.value, b2.value));
162667
+ this.sortedBins = this.aggregatedBins.sort((a2, b2) => ascending$7(a2.value, b2.value));
162680
162668
  }
162681
162669
  if (!this.sortedBins.length) {
162682
162670
  return [];
@@ -162692,7 +162680,7 @@ class BinSorter {
162692
162680
  }
162693
162681
  getValueDomainByScale(scale2, [lower2 = 0, upper = 100] = []) {
162694
162682
  if (!this.sortedBins) {
162695
- this.sortedBins = this.aggregatedBins.sort((a2, b2) => ascending$8(a2.value, b2.value));
162683
+ this.sortedBins = this.aggregatedBins.sort((a2, b2) => ascending$7(a2.value, b2.value));
162696
162684
  }
162697
162685
  if (!this.sortedBins.length) {
162698
162686
  return [];
@@ -202467,7 +202455,7 @@ function cartesianNormalizeInPlace$1(d) {
202467
202455
  var l2 = sqrt$5(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
202468
202456
  d[0] /= l2, d[1] /= l2, d[2] /= l2;
202469
202457
  }
202470
- var lambda0$3, phi0$1, lambda1$1, phi1$1, lambda2$1, lambda00$4, phi00$4, p0$1, deltaSum$1 = adder(), ranges$1, range$a;
202458
+ var lambda0$3, phi0$1, lambda1$1, phi1$1, lambda2$1, lambda00$4, phi00$4, p0$1, deltaSum$1 = adder(), ranges$1, range$9;
202471
202459
  var boundsStream$3 = {
202472
202460
  point: boundsPoint$3,
202473
202461
  lineStart: boundsLineStart$1,
@@ -202487,11 +202475,11 @@ var boundsStream$3 = {
202487
202475
  if (areaRingSum$3 < 0) lambda0$3 = -(lambda1$1 = 180), phi0$1 = -(phi1$1 = 90);
202488
202476
  else if (deltaSum$1 > epsilon$8) phi1$1 = 90;
202489
202477
  else if (deltaSum$1 < -1e-6) phi0$1 = -90;
202490
- range$a[0] = lambda0$3, range$a[1] = lambda1$1;
202478
+ range$9[0] = lambda0$3, range$9[1] = lambda1$1;
202491
202479
  }
202492
202480
  };
202493
202481
  function boundsPoint$3(lambda, phi2) {
202494
- ranges$1.push(range$a = [lambda0$3 = lambda, lambda1$1 = lambda]);
202482
+ ranges$1.push(range$9 = [lambda0$3 = lambda, lambda1$1 = lambda]);
202495
202483
  if (phi2 < phi0$1) phi0$1 = phi2;
202496
202484
  if (phi2 > phi1$1) phi1$1 = phi2;
202497
202485
  }
@@ -202531,7 +202519,7 @@ function linePoint$1(lambda, phi2) {
202531
202519
  }
202532
202520
  }
202533
202521
  } else {
202534
- ranges$1.push(range$a = [lambda0$3 = lambda, lambda1$1 = lambda]);
202522
+ ranges$1.push(range$9 = [lambda0$3 = lambda, lambda1$1 = lambda]);
202535
202523
  }
202536
202524
  if (phi2 < phi0$1) phi0$1 = phi2;
202537
202525
  if (phi2 > phi1$1) phi1$1 = phi2;
@@ -202541,7 +202529,7 @@ function boundsLineStart$1() {
202541
202529
  boundsStream$3.point = linePoint$1;
202542
202530
  }
202543
202531
  function boundsLineEnd$1() {
202544
- range$a[0] = lambda0$3, range$a[1] = lambda1$1;
202532
+ range$9[0] = lambda0$3, range$9[1] = lambda1$1;
202545
202533
  boundsStream$3.point = boundsPoint$3;
202546
202534
  p0$1 = null;
202547
202535
  }
@@ -202562,7 +202550,7 @@ function boundsRingEnd$1() {
202562
202550
  boundsRingPoint$1(lambda00$4, phi00$4);
202563
202551
  areaStream$3.lineEnd();
202564
202552
  if (abs$5(deltaSum$1) > epsilon$8) lambda0$3 = -(lambda1$1 = 180);
202565
- range$a[0] = lambda0$3, range$a[1] = lambda1$1;
202553
+ range$9[0] = lambda0$3, range$9[1] = lambda1$1;
202566
202554
  p0$1 = null;
202567
202555
  }
202568
202556
  function angle$1(lambda02, lambda12) {
@@ -202595,7 +202583,7 @@ function bounds$2(feature2) {
202595
202583
  if ((delta = angle$1(a2[1], b2[0])) > deltaMax) deltaMax = delta, lambda0$3 = b2[0], lambda1$1 = a2[1];
202596
202584
  }
202597
202585
  }
202598
- ranges$1 = range$a = null;
202586
+ ranges$1 = range$9 = null;
202599
202587
  return lambda0$3 === Infinity || phi0$1 === Infinity ? [[NaN, NaN], [NaN, NaN]] : [[lambda0$3, phi0$1], [lambda1$1, phi1$1]];
202600
202588
  }
202601
202589
  var W0$1, W1$1, X0$3, Y0$3, Z0$3, X1$3, Y1$3, Z1$3, X2$4, Y2$4, Z2$3, lambda00$3, phi00$3, x0$9, y0$9, z0$1;
@@ -202941,10 +202929,10 @@ function link$1(array2) {
202941
202929
  a2.n = b2 = array2[0];
202942
202930
  b2.p = a2;
202943
202931
  }
202944
- function ascending$7(a2, b2) {
202932
+ function ascending$6(a2, b2) {
202945
202933
  return a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
202946
202934
  }
202947
- function bisector$3(compare2) {
202935
+ function bisector$2(compare2) {
202948
202936
  if (compare2.length === 1) compare2 = ascendingComparator(compare2);
202949
202937
  return {
202950
202938
  left: function(a2, x2, lo, hi) {
@@ -202971,11 +202959,11 @@ function bisector$3(compare2) {
202971
202959
  }
202972
202960
  function ascendingComparator(f2) {
202973
202961
  return function(d, x2) {
202974
- return ascending$7(f2(d), x2);
202962
+ return ascending$6(f2(d), x2);
202975
202963
  };
202976
202964
  }
202977
- bisector$3(ascending$7);
202978
- function range$9(start2, stop3, step) {
202965
+ bisector$2(ascending$6);
202966
+ function range$8(start2, stop3, step) {
202979
202967
  start2 = +start2, stop3 = +stop3, step = (n3 = arguments.length) < 2 ? (stop3 = start2, start2 = 0, 1) : n3 < 3 ? 1 : +step;
202980
202968
  var i2 = -1, n3 = Math.max(0, Math.ceil((stop3 - start2) / step)) | 0, range2 = new Array(n3);
202981
202969
  while (++i2 < n3) {
@@ -203257,7 +203245,7 @@ function contains$2(object2, point2) {
203257
203245
  return (object2 && containsObjectType.hasOwnProperty(object2.type) ? containsObjectType[object2.type] : containsGeometry)(object2, point2);
203258
203246
  }
203259
203247
  function graticuleX$1(y02, y12, dy) {
203260
- var y2 = range$9(y02, y12 - epsilon$8, dy).concat(y12);
203248
+ var y2 = range$8(y02, y12 - epsilon$8, dy).concat(y12);
203261
203249
  return function(x2) {
203262
203250
  return y2.map(function(y3) {
203263
203251
  return [x2, y3];
@@ -203265,7 +203253,7 @@ function graticuleX$1(y02, y12, dy) {
203265
203253
  };
203266
203254
  }
203267
203255
  function graticuleY$1(x02, x12, dx) {
203268
- var x2 = range$9(x02, x12 - epsilon$8, dx).concat(x12);
203256
+ var x2 = range$8(x02, x12 - epsilon$8, dx).concat(x12);
203269
203257
  return function(y2) {
203270
203258
  return x2.map(function(x3) {
203271
203259
  return [x3, y2];
@@ -203278,9 +203266,9 @@ function graticule$1() {
203278
203266
  return { type: "MultiLineString", coordinates: lines() };
203279
203267
  }
203280
203268
  function lines() {
203281
- return range$9(ceil$3(X02 / DX) * DX, X12, DX).map(X3).concat(range$9(ceil$3(Y02 / DY) * DY, Y12, DY).map(Y3)).concat(range$9(ceil$3(x02 / dx) * dx, x12, dx).filter(function(x3) {
203269
+ return range$8(ceil$3(X02 / DX) * DX, X12, DX).map(X3).concat(range$8(ceil$3(Y02 / DY) * DY, Y12, DY).map(Y3)).concat(range$8(ceil$3(x02 / dx) * dx, x12, dx).filter(function(x3) {
203282
203270
  return abs$5(x3 % DX) > epsilon$8;
203283
- }).map(x2)).concat(range$9(ceil$3(y02 / dy) * dy, y12, dy).filter(function(y3) {
203271
+ }).map(x2)).concat(range$8(ceil$3(y02 / dy) * dy, y12, dy).filter(function(y3) {
203284
203272
  return abs$5(y3 % DY) > epsilon$8;
203285
203273
  }).map(y2));
203286
203274
  }
@@ -228991,22 +228979,22 @@ async function getDecoder(fileDirectory) {
228991
228979
  const Decoder = await importFn();
228992
228980
  return new Decoder(fileDirectory);
228993
228981
  }
228994
- addDecoder([void 0, 1], () => import("./raw-DW2QNLGU.js").then((m2) => m2.default));
228995
- addDecoder(5, () => import("./lzw-s7DCcl7I.js").then((m2) => m2.default));
228982
+ addDecoder([void 0, 1], () => import("./raw-BFK8nawV.js").then((m2) => m2.default));
228983
+ addDecoder(5, () => import("./lzw-DMfiHSb8.js").then((m2) => m2.default));
228996
228984
  addDecoder(6, () => {
228997
228985
  throw new Error("old style JPEG compression is not supported.");
228998
228986
  });
228999
- addDecoder(7, () => import("./jpeg-QUQIu3So.js").then((m2) => m2.default));
229000
- addDecoder([8, 32946], () => import("./deflate-CJB4Em0i.js").then((m2) => m2.default));
229001
- addDecoder(32773, () => import("./packbits-T1F-rYAi.js").then((m2) => m2.default));
228987
+ addDecoder(7, () => import("./jpeg-BYACNTpB.js").then((m2) => m2.default));
228988
+ addDecoder([8, 32946], () => import("./deflate-Nz0blktd.js").then((m2) => m2.default));
228989
+ addDecoder(32773, () => import("./packbits-B0Er8O1M.js").then((m2) => m2.default));
229002
228990
  addDecoder(
229003
228991
  34887,
229004
- () => import("./lerc-DC8QpFYH.js").then(async (m2) => {
228992
+ () => import("./lerc-DJjWAaxL.js").then(async (m2) => {
229005
228993
  await m2.zstd.init();
229006
228994
  return m2;
229007
228995
  }).then((m2) => m2.default)
229008
228996
  );
229009
- addDecoder(50001, () => import("./webimage-8khvHmiT.js").then((m2) => m2.default));
228997
+ addDecoder(50001, () => import("./webimage-DgB3AHvK.js").then((m2) => m2.default));
229010
228998
  function copyNewSize(array2, width2, height2, samplesPerPixel = 1) {
229011
228999
  return new (Object.getPrototypeOf(array2)).constructor(width2 * height2 * samplesPerPixel);
229012
229000
  }
@@ -232047,7 +232035,7 @@ const Z_FIXED = 4;
232047
232035
  const Z_BINARY = 0;
232048
232036
  const Z_TEXT = 1;
232049
232037
  const Z_UNKNOWN = 2;
232050
- function zero$6(buf) {
232038
+ function zero$5(buf) {
232051
232039
  let len2 = buf.length;
232052
232040
  while (--len2 >= 0) {
232053
232041
  buf[len2] = 0;
@@ -232086,17 +232074,17 @@ const extra_blbits = (
232086
232074
  const bl_order = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
232087
232075
  const DIST_CODE_LEN = 512;
232088
232076
  const static_ltree = new Array((L_CODES + 2) * 2);
232089
- zero$6(static_ltree);
232077
+ zero$5(static_ltree);
232090
232078
  const static_dtree = new Array(D_CODES * 2);
232091
- zero$6(static_dtree);
232079
+ zero$5(static_dtree);
232092
232080
  const _dist_code = new Array(DIST_CODE_LEN);
232093
- zero$6(_dist_code);
232081
+ zero$5(_dist_code);
232094
232082
  const _length_code = new Array(MAX_MATCH - MIN_MATCH + 1);
232095
- zero$6(_length_code);
232083
+ zero$5(_length_code);
232096
232084
  const base_length = new Array(LENGTH_CODES);
232097
- zero$6(base_length);
232085
+ zero$5(base_length);
232098
232086
  const base_dist = new Array(D_CODES);
232099
- zero$6(base_dist);
232087
+ zero$5(base_dist);
232100
232088
  function StaticTreeDesc(static_tree, extra_bits, extra_base, elems, max_length) {
232101
232089
  this.static_tree = static_tree;
232102
232090
  this.extra_bits = extra_bits;
@@ -239962,7 +239950,7 @@ const channels = {
239962
239950
  },
239963
239951
  fs: fs$2
239964
239952
  };
239965
- function range$8(len2) {
239953
+ function range$7(len2) {
239966
239954
  return [...Array(len2).keys()];
239967
239955
  }
239968
239956
  function padWithDefault$2(arr, defaultValue2, padWidth) {
@@ -241062,7 +241050,7 @@ const ScaleBarLayer = class extends CompositeLayer {
241062
241050
  sizeScale: 2 ** -zoom2,
241063
241051
  characterSet: [
241064
241052
  ...displayUnit.split(""),
241065
- ...range$8(10).map((i2) => String(i2)),
241053
+ ...range$7(10).map((i2) => String(i2)),
241066
241054
  ".",
241067
241055
  "e",
241068
241056
  "+"
@@ -242501,7 +242489,7 @@ class BitmaskLayer2 extends XRLayer {
242501
242489
  } = this.state;
242502
242490
  if (textures && model) {
242503
242491
  const scaleFactor = 1 / 2 ** (maxZoom - zoom2);
242504
- const colors2 = Object.fromEntries(range$c(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
242492
+ const colors2 = Object.fromEntries(range$b(MAX_CHANNELS).map((i2) => [`color${i2}`, getColor(channelColors[i2])]));
242505
242493
  model.setUniforms(Object.assign({}, uniforms, {
242506
242494
  ...colors2,
242507
242495
  // Bitmask image channel data textures
@@ -245694,7 +245682,7 @@ class ContourLayerWithText extends ContourLayer {
245694
245682
  let minCirclePointI;
245695
245683
  let minPolygonPoint;
245696
245684
  const numVertices = maxAreaPolygon.geometry.coordinates[0].length;
245697
- const polygonVertices = numVertices > MAX_NUM_VERTICES ? range$c(MAX_NUM_VERTICES).map((i2) => maxAreaPolygon.geometry.coordinates[0][Math.floor(i2 * numVertices / MAX_NUM_VERTICES)]) : [...maxAreaPolygon.geometry.coordinates[0]];
245685
+ const polygonVertices = numVertices > MAX_NUM_VERTICES ? range$b(MAX_NUM_VERTICES).map((i2) => maxAreaPolygon.geometry.coordinates[0][Math.floor(i2 * numVertices / MAX_NUM_VERTICES)]) : [...maxAreaPolygon.geometry.coordinates[0]];
245698
245686
  circlePolygon.geometry.coordinates[0].forEach((circleCoord, circlePointI) => {
245699
245687
  const circlePoint = point$9(circleCoord);
245700
245688
  polygonVertices.forEach((polyCoord) => {
@@ -246114,7 +246102,7 @@ function createQuadTree(obsEmbedding, getCellCoords) {
246114
246102
  if (!obsEmbedding) {
246115
246103
  return null;
246116
246104
  }
246117
- const tree2 = quadtree$1().x((i2) => getCellCoords(i2)[0]).y((i2) => getCellCoords(i2)[1]).addAll(range$c(obsEmbedding.shape[1]));
246105
+ const tree2 = quadtree$1().x((i2) => getCellCoords(i2)[0]).y((i2) => getCellCoords(i2)[1]).addAll(range$b(obsEmbedding.shape[1]));
246118
246106
  return tree2;
246119
246107
  }
246120
246108
  function constant$6(v) {
@@ -246222,8 +246210,14 @@ function forceCollideRects() {
246222
246210
  };
246223
246211
  return force2;
246224
246212
  }
246225
- function getPointSizeDevicePixels(devicePixelRatio2, zoom2, xRange, yRange, width2, height2) {
246226
- const pointSize = 5e-4;
246213
+ const BASE_POINT_SIZE = 5;
246214
+ const LARGE_DATASET_CELL_COUNT = 1e4;
246215
+ const SMALL_DATASET_CELL_COUNT = 100;
246216
+ function getInitialPointSize(numCells = LARGE_DATASET_CELL_COUNT) {
246217
+ return BASE_POINT_SIZE / clamp$6(numCells, SMALL_DATASET_CELL_COUNT, LARGE_DATASET_CELL_COUNT);
246218
+ }
246219
+ function getPointSizeDevicePixels(devicePixelRatio2, zoom2, xRange, yRange, width2, height2, numCells) {
246220
+ const pointSize = getInitialPointSize(numCells);
246227
246221
  const pointScreenSizeMax = 10;
246228
246222
  const pointScreenSizeMin = 1 / devicePixelRatio2;
246229
246223
  const scaleFactor = 2 ** zoom2;
@@ -247182,7 +247176,7 @@ function selection_order() {
247182
247176
  return this;
247183
247177
  }
247184
247178
  function selection_sort(compare2) {
247185
- if (!compare2) compare2 = ascending$6;
247179
+ if (!compare2) compare2 = ascending$5;
247186
247180
  function compareNode(a2, b2) {
247187
247181
  return a2 && b2 ? compare2(a2.__data__, b2.__data__) : !a2 - !b2;
247188
247182
  }
@@ -247196,7 +247190,7 @@ function selection_sort(compare2) {
247196
247190
  }
247197
247191
  return new Selection(sortgroups, this._parents).order();
247198
247192
  }
247199
- function ascending$6(a2, b2) {
247193
+ function ascending$5(a2, b2) {
247200
247194
  return a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
247201
247195
  }
247202
247196
  function selection_call() {
@@ -247605,20 +247599,20 @@ Selection.prototype = {
247605
247599
  function select$1(selector2) {
247606
247600
  return typeof selector2 === "string" ? new Selection([[document.querySelector(selector2)]], [document.documentElement]) : new Selection([[selector2]], root$1);
247607
247601
  }
247608
- function ascending$5(a2, b2) {
247602
+ function ascending$4(a2, b2) {
247609
247603
  return a2 == null || b2 == null ? NaN : a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
247610
247604
  }
247611
- function descending$2(a2, b2) {
247605
+ function descending$1(a2, b2) {
247612
247606
  return a2 == null || b2 == null ? NaN : b2 < a2 ? -1 : b2 > a2 ? 1 : b2 >= a2 ? 0 : NaN;
247613
247607
  }
247614
- function bisector$2(f2) {
247608
+ function bisector$1(f2) {
247615
247609
  let compare12, compare2, delta;
247616
247610
  if (f2.length !== 2) {
247617
- compare12 = ascending$5;
247618
- compare2 = (d, x2) => ascending$5(f2(d), x2);
247611
+ compare12 = ascending$4;
247612
+ compare2 = (d, x2) => ascending$4(f2(d), x2);
247619
247613
  delta = (d, x2) => f2(d) - x2;
247620
247614
  } else {
247621
- compare12 = f2 === ascending$5 || f2 === descending$2 ? f2 : zero$5;
247615
+ compare12 = f2 === ascending$4 || f2 === descending$1 ? f2 : zero$4;
247622
247616
  compare2 = f2;
247623
247617
  delta = f2;
247624
247618
  }
@@ -247650,10 +247644,10 @@ function bisector$2(f2) {
247650
247644
  }
247651
247645
  return { left: left2, center: center2, right: right2 };
247652
247646
  }
247653
- function zero$5() {
247647
+ function zero$4() {
247654
247648
  return 0;
247655
247649
  }
247656
- function number$9(x2) {
247650
+ function number$8(x2) {
247657
247651
  return x2 === null ? NaN : +x2;
247658
247652
  }
247659
247653
  function* numbers$3(values3, valueof) {
@@ -247672,10 +247666,10 @@ function* numbers$3(values3, valueof) {
247672
247666
  }
247673
247667
  }
247674
247668
  }
247675
- const ascendingBisect$1 = bisector$2(ascending$5);
247676
- const bisectRight$2 = ascendingBisect$1.right;
247677
- const bisectLeft$1 = ascendingBisect$1.left;
247678
- bisector$2(number$9).center;
247669
+ const ascendingBisect = bisector$1(ascending$4);
247670
+ const bisectRight$1 = ascendingBisect.right;
247671
+ const bisectLeft$1 = ascendingBisect.left;
247672
+ bisector$1(number$8).center;
247679
247673
  function variance(values3, valueof) {
247680
247674
  let count2 = 0;
247681
247675
  let delta;
@@ -247746,8 +247740,8 @@ class Adder {
247746
247740
  function permute(source2, keys2) {
247747
247741
  return Array.from(keys2, (key2) => source2[key2]);
247748
247742
  }
247749
- function compareDefined(compare2 = ascending$5) {
247750
- if (compare2 === ascending$5) return ascendingDefined;
247743
+ function compareDefined(compare2 = ascending$4) {
247744
+ if (compare2 === ascending$4) return ascendingDefined;
247751
247745
  if (typeof compare2 !== "function") throw new TypeError("compare is not a function");
247752
247746
  return (a2, b2) => {
247753
247747
  const x2 = compare2(a2, b2);
@@ -247758,40 +247752,51 @@ function compareDefined(compare2 = ascending$5) {
247758
247752
  function ascendingDefined(a2, b2) {
247759
247753
  return (a2 == null || !(a2 >= a2)) - (b2 == null || !(b2 >= b2)) || (a2 < b2 ? -1 : a2 > b2 ? 1 : 0);
247760
247754
  }
247761
- var e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
247755
+ const e10 = Math.sqrt(50), e5 = Math.sqrt(10), e2 = Math.sqrt(2);
247756
+ function tickSpec(start2, stop3, count2) {
247757
+ const step = (stop3 - start2) / Math.max(0, count2), power = Math.floor(Math.log10(step)), error2 = step / Math.pow(10, power), factor = error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1;
247758
+ let i1, i2, inc;
247759
+ if (power < 0) {
247760
+ inc = Math.pow(10, -power) / factor;
247761
+ i1 = Math.round(start2 * inc);
247762
+ i2 = Math.round(stop3 * inc);
247763
+ if (i1 / inc < start2) ++i1;
247764
+ if (i2 / inc > stop3) --i2;
247765
+ inc = -inc;
247766
+ } else {
247767
+ inc = Math.pow(10, power) * factor;
247768
+ i1 = Math.round(start2 / inc);
247769
+ i2 = Math.round(stop3 / inc);
247770
+ if (i1 * inc < start2) ++i1;
247771
+ if (i2 * inc > stop3) --i2;
247772
+ }
247773
+ if (i2 < i1 && 0.5 <= count2 && count2 < 2) return tickSpec(start2, stop3, count2 * 2);
247774
+ return [i1, i2, inc];
247775
+ }
247762
247776
  function ticks(start2, stop3, count2) {
247763
- var reverse2, i2 = -1, n3, ticks2, step;
247764
247777
  stop3 = +stop3, start2 = +start2, count2 = +count2;
247765
- if (start2 === stop3 && count2 > 0) return [start2];
247766
- if (reverse2 = stop3 < start2) n3 = start2, start2 = stop3, stop3 = n3;
247767
- if ((step = tickIncrement(start2, stop3, count2)) === 0 || !isFinite(step)) return [];
247768
- if (step > 0) {
247769
- let r0 = Math.round(start2 / step), r1 = Math.round(stop3 / step);
247770
- if (r0 * step < start2) ++r0;
247771
- if (r1 * step > stop3) --r1;
247772
- ticks2 = new Array(n3 = r1 - r0 + 1);
247773
- while (++i2 < n3) ticks2[i2] = (r0 + i2) * step;
247778
+ if (!(count2 > 0)) return [];
247779
+ if (start2 === stop3) return [start2];
247780
+ const reverse2 = stop3 < start2, [i1, i2, inc] = reverse2 ? tickSpec(stop3, start2, count2) : tickSpec(start2, stop3, count2);
247781
+ if (!(i2 >= i1)) return [];
247782
+ const n3 = i2 - i1 + 1, ticks2 = new Array(n3);
247783
+ if (reverse2) {
247784
+ if (inc < 0) for (let i3 = 0; i3 < n3; ++i3) ticks2[i3] = (i2 - i3) / -inc;
247785
+ else for (let i3 = 0; i3 < n3; ++i3) ticks2[i3] = (i2 - i3) * inc;
247774
247786
  } else {
247775
- step = -step;
247776
- let r0 = Math.round(start2 * step), r1 = Math.round(stop3 * step);
247777
- if (r0 / step < start2) ++r0;
247778
- if (r1 / step > stop3) --r1;
247779
- ticks2 = new Array(n3 = r1 - r0 + 1);
247780
- while (++i2 < n3) ticks2[i2] = (r0 + i2) / step;
247787
+ if (inc < 0) for (let i3 = 0; i3 < n3; ++i3) ticks2[i3] = (i1 + i3) / -inc;
247788
+ else for (let i3 = 0; i3 < n3; ++i3) ticks2[i3] = (i1 + i3) * inc;
247781
247789
  }
247782
- if (reverse2) ticks2.reverse();
247783
247790
  return ticks2;
247784
247791
  }
247785
247792
  function tickIncrement(start2, stop3, count2) {
247786
- var step = (stop3 - start2) / Math.max(0, count2), power = Math.floor(Math.log(step) / Math.LN10), error2 = step / Math.pow(10, power);
247787
- return power >= 0 ? (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1) * Math.pow(10, power) : -Math.pow(10, -power) / (error2 >= e10 ? 10 : error2 >= e5 ? 5 : error2 >= e2 ? 2 : 1);
247793
+ stop3 = +stop3, start2 = +start2, count2 = +count2;
247794
+ return tickSpec(start2, stop3, count2)[2];
247788
247795
  }
247789
247796
  function tickStep(start2, stop3, count2) {
247790
- var step0 = Math.abs(stop3 - start2) / Math.max(0, count2), step1 = Math.pow(10, Math.floor(Math.log(step0) / Math.LN10)), error2 = step0 / step1;
247791
- if (error2 >= e10) step1 *= 10;
247792
- else if (error2 >= e5) step1 *= 5;
247793
- else if (error2 >= e2) step1 *= 2;
247794
- return stop3 < start2 ? -step1 : step1;
247797
+ stop3 = +stop3, start2 = +start2, count2 = +count2;
247798
+ const reverse2 = stop3 < start2, inc = reverse2 ? tickIncrement(stop3, start2, count2) : tickIncrement(start2, stop3, count2);
247799
+ return (reverse2 ? -1 : 1) * (inc < 0 ? 1 / -inc : inc);
247795
247800
  }
247796
247801
  function max$3(values3, valueof) {
247797
247802
  let max2;
@@ -247829,7 +247834,11 @@ function min$3(values3, valueof) {
247829
247834
  }
247830
247835
  return min2;
247831
247836
  }
247832
- function quickselect(array2, k, left2 = 0, right2 = array2.length - 1, compare2) {
247837
+ function quickselect(array2, k, left2 = 0, right2 = Infinity, compare2) {
247838
+ k = Math.floor(k);
247839
+ left2 = Math.floor(Math.max(0, left2));
247840
+ right2 = Math.floor(Math.min(array2.length - 1, right2));
247841
+ if (!(left2 <= k && k <= right2)) return array2;
247833
247842
  compare2 = compare2 === void 0 ? ascendingDefined : compareDefined(compare2);
247834
247843
  while (right2 > left2) {
247835
247844
  if (right2 - left2 > 600) {
@@ -247866,15 +247875,15 @@ function swap$1(array2, i2, j) {
247866
247875
  }
247867
247876
  function quantile$1(values3, p, valueof) {
247868
247877
  values3 = Float64Array.from(numbers$3(values3, valueof));
247869
- if (!(n3 = values3.length)) return;
247870
- if ((p = +p) <= 0 || n3 < 2) return min$3(values3);
247878
+ if (!(n3 = values3.length) || isNaN(p = +p)) return;
247879
+ if (p <= 0 || n3 < 2) return min$3(values3);
247871
247880
  if (p >= 1) return max$3(values3);
247872
247881
  var n3, i2 = (n3 - 1) * p, i0 = Math.floor(i2), value0 = max$3(quickselect(values3, i0).subarray(0, i0 + 1)), value1 = min$3(values3.subarray(i0 + 1));
247873
247882
  return value0 + (value1 - value0) * (i2 - i0);
247874
247883
  }
247875
- function quantileSorted(values3, p, valueof = number$9) {
247876
- if (!(n3 = values3.length)) return;
247877
- if ((p = +p) <= 0 || n3 < 2) return +valueof(values3[0], 0, values3);
247884
+ function quantileSorted(values3, p, valueof = number$8) {
247885
+ if (!(n3 = values3.length) || isNaN(p = +p)) return;
247886
+ if (p <= 0 || n3 < 2) return +valueof(values3[0], 0, values3);
247878
247887
  if (p >= 1) return +valueof(values3[n3 - 1], n3 - 1, values3);
247879
247888
  var n3, i2 = (n3 - 1) * p, i0 = Math.floor(i2), value0 = +valueof(values3[i0], i0, values3), value1 = +valueof(values3[i0 + 1], i0 + 1, values3);
247880
247889
  return value0 + (value1 - value0) * (i2 - i0);
@@ -247909,7 +247918,7 @@ function* flatten$2(arrays) {
247909
247918
  function merge$3(arrays) {
247910
247919
  return Array.from(flatten$2(arrays));
247911
247920
  }
247912
- function range$7(start2, stop3, step) {
247921
+ function range$6(start2, stop3, step) {
247913
247922
  start2 = +start2, stop3 = +stop3, step = (n3 = arguments.length) < 2 ? (stop3 = start2, start2 = 0, 1) : n3 < 3 ? 1 : +step;
247914
247923
  var i2 = -1, n3 = Math.max(0, Math.ceil((stop3 - start2) / step)) | 0, range2 = new Array(n3);
247915
247924
  while (++i2 < n3) {
@@ -248580,7 +248589,7 @@ function object$1(a2, b2) {
248580
248589
  };
248581
248590
  }
248582
248591
  var reA = /[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g, reB = new RegExp(reA.source, "g");
248583
- function zero$4(b2) {
248592
+ function zero$3(b2) {
248584
248593
  return function() {
248585
248594
  return b2;
248586
248595
  };
@@ -248613,7 +248622,7 @@ function string(a2, b2) {
248613
248622
  if (s2[i2]) s2[i2] += bs;
248614
248623
  else s2[++i2] = bs;
248615
248624
  }
248616
- return s2.length < 2 ? q[0] ? one$2(q[0].x) : zero$4(b2) : (b2 = q.length, function(t4) {
248625
+ return s2.length < 2 ? q[0] ? one$2(q[0].x) : zero$3(b2) : (b2 = q.length, function(t4) {
248617
248626
  for (var i3 = 0, o2; i3 < b2; ++i3) s2[(o2 = q[i3]).i] = o2.x(t4);
248618
248627
  return s2.join("");
248619
248628
  });
@@ -248879,7 +248888,7 @@ function constants$1(x2) {
248879
248888
  return x2;
248880
248889
  };
248881
248890
  }
248882
- function number$8(x2) {
248891
+ function number$7(x2) {
248883
248892
  return +x2;
248884
248893
  }
248885
248894
  var unit$1 = [0, 1];
@@ -248917,7 +248926,7 @@ function polymap(domain2, range2, interpolate2) {
248917
248926
  r3[i2] = interpolate2(range2[i2], range2[i2 + 1]);
248918
248927
  }
248919
248928
  return function(x2) {
248920
- var i3 = bisectRight$2(domain2, x2, 1, j) - 1;
248929
+ var i3 = bisectRight$1(domain2, x2, 1, j) - 1;
248921
248930
  return r3[i3](d[i3](x2));
248922
248931
  };
248923
248932
  }
@@ -248940,7 +248949,7 @@ function transformer$3() {
248940
248949
  return clamp2(untransform((input || (input = piecewise2(range2, domain2.map(transform3), interpolateNumber)))(y2)));
248941
248950
  };
248942
248951
  scale2.domain = function(_) {
248943
- return arguments.length ? (domain2 = Array.from(_, number$8), rescale()) : domain2.slice();
248952
+ return arguments.length ? (domain2 = Array.from(_, number$7), rescale()) : domain2.slice();
248944
248953
  };
248945
248954
  scale2.range = function(_) {
248946
248955
  return arguments.length ? (range2 = Array.from(_), rescale()) : range2.slice();
@@ -249260,7 +249269,7 @@ function identity$6(domain2) {
249260
249269
  }
249261
249270
  scale2.invert = scale2;
249262
249271
  scale2.domain = scale2.range = function(_) {
249263
- return arguments.length ? (domain2 = Array.from(_, number$8), scale2) : domain2.slice();
249272
+ return arguments.length ? (domain2 = Array.from(_, number$7), scale2) : domain2.slice();
249264
249273
  };
249265
249274
  scale2.unknown = function(_) {
249266
249275
  return arguments.length ? (unknown = _, scale2) : unknown;
@@ -249268,7 +249277,7 @@ function identity$6(domain2) {
249268
249277
  scale2.copy = function() {
249269
249278
  return identity$6(domain2).unknown(unknown);
249270
249279
  };
249271
- domain2 = arguments.length ? Array.from(domain2, number$8) : [0, 1];
249280
+ domain2 = arguments.length ? Array.from(domain2, number$7) : [0, 1];
249272
249281
  return linearish(scale2);
249273
249282
  }
249274
249283
  function nice$1(domain2, interval2) {
@@ -249458,7 +249467,7 @@ function quantile() {
249458
249467
  return scale2;
249459
249468
  }
249460
249469
  function scale2(x2) {
249461
- return x2 == null || isNaN(x2 = +x2) ? unknown : range2[bisectRight$2(thresholds, x2)];
249470
+ return x2 == null || isNaN(x2 = +x2) ? unknown : range2[bisectRight$1(thresholds, x2)];
249462
249471
  }
249463
249472
  scale2.invertExtent = function(y2) {
249464
249473
  var i2 = range2.indexOf(y2);
@@ -249471,7 +249480,7 @@ function quantile() {
249471
249480
  if (!arguments.length) return domain2.slice();
249472
249481
  domain2 = [];
249473
249482
  for (let d of _) if (d != null && !isNaN(d = +d)) domain2.push(d);
249474
- domain2.sort(ascending$5);
249483
+ domain2.sort(ascending$4);
249475
249484
  return rescale();
249476
249485
  };
249477
249486
  scale2.range = function(_) {
@@ -249491,7 +249500,7 @@ function quantile() {
249491
249500
  function quantize$2() {
249492
249501
  var x02 = 0, x12 = 1, n3 = 1, domain2 = [0.5], range2 = [0, 1], unknown;
249493
249502
  function scale2(x2) {
249494
- return x2 != null && x2 <= x2 ? range2[bisectRight$2(domain2, x2, 0, n3)] : unknown;
249503
+ return x2 != null && x2 <= x2 ? range2[bisectRight$1(domain2, x2, 0, n3)] : unknown;
249495
249504
  }
249496
249505
  function rescale() {
249497
249506
  var i2 = -1;
@@ -249523,7 +249532,7 @@ function quantize$2() {
249523
249532
  function threshold() {
249524
249533
  var domain2 = [0.5], range2 = [0, 1], unknown, n3 = 1;
249525
249534
  function scale2(x2) {
249526
- return x2 != null && x2 <= x2 ? range2[bisectRight$2(domain2, x2, 0, n3)] : unknown;
249535
+ return x2 != null && x2 <= x2 ? range2[bisectRight$1(domain2, x2, 0, n3)] : unknown;
249527
249536
  }
249528
249537
  scale2.domain = function(_) {
249529
249538
  return arguments.length ? (domain2 = Array.from(_), n3 = Math.min(domain2.length, range2.length - 1), scale2) : domain2.slice();
@@ -249837,7 +249846,7 @@ function ticker(year2, month2, week2, day2, hour2, minute2) {
249837
249846
  }
249838
249847
  function tickInterval(start2, stop3, count2) {
249839
249848
  const target2 = Math.abs(stop3 - start2) / count2;
249840
- const i2 = bisector$2(([, , step2]) => step2).right(tickIntervals, target2);
249849
+ const i2 = bisector$1(([, , step2]) => step2).right(tickIntervals, target2);
249841
249850
  if (i2 === tickIntervals.length) return year2.every(tickStep(start2 / durationYear$1, stop3 / durationYear$1, count2));
249842
249851
  if (i2 === 0) return millisecond.every(Math.max(tickStep(start2, stop3, count2), 1));
249843
249852
  const [t4, step] = tickIntervals[target2 / tickIntervals[i2 - 1][2] < tickIntervals[i2][2] / target2 ? i2 - 1 : i2];
@@ -250409,7 +250418,7 @@ function defaultLocale$1(definition2) {
250409
250418
  function date(t4) {
250410
250419
  return new Date(t4);
250411
250420
  }
250412
- function number$7(t4) {
250421
+ function number$6(t4) {
250413
250422
  return t4 instanceof Date ? +t4 : +/* @__PURE__ */ new Date(+t4);
250414
250423
  }
250415
250424
  function calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minute2, second2, format2) {
@@ -250422,7 +250431,7 @@ function calendar(ticks2, tickInterval, year2, month2, week2, day2, hour2, minut
250422
250431
  return new Date(invert2(y2));
250423
250432
  };
250424
250433
  scale2.domain = function(_) {
250425
- return arguments.length ? domain2(Array.from(_, number$7)) : domain2().map(date);
250434
+ return arguments.length ? domain2(Array.from(_, number$6)) : domain2().map(date);
250426
250435
  };
250427
250436
  scale2.ticks = function(interval2) {
250428
250437
  var d = domain2();
@@ -250582,7 +250591,7 @@ function translateX(x2) {
250582
250591
  function translateY(y2) {
250583
250592
  return "translate(0," + y2 + ")";
250584
250593
  }
250585
- function number$6(scale2) {
250594
+ function number$5(scale2) {
250586
250595
  return (d) => +scale2(d);
250587
250596
  }
250588
250597
  function center(scale2, offset2) {
@@ -250596,7 +250605,7 @@ function entering() {
250596
250605
  function axis(orient2, scale2) {
250597
250606
  var tickArguments = [], tickValues2 = null, tickFormat2 = null, tickSizeInner = 6, tickSizeOuter = 6, tickPadding = 3, offset2 = typeof window !== "undefined" && window.devicePixelRatio > 1 ? 0 : 0.5, k = orient2 === top || orient2 === left ? -1 : 1, x2 = orient2 === left || orient2 === right ? "x" : "y", transform3 = orient2 === top || orient2 === bottom ? translateX : translateY;
250598
250607
  function axis2(context2) {
250599
- var values3 = tickValues2 == null ? scale2.ticks ? scale2.ticks.apply(scale2, tickArguments) : scale2.domain() : tickValues2, format2 = tickFormat2 == null ? scale2.tickFormat ? scale2.tickFormat.apply(scale2, tickArguments) : identity$5 : tickFormat2, spacing2 = Math.max(tickSizeInner, 0) + tickPadding, range2 = scale2.range(), range0 = +range2[0] + offset2, range1 = +range2[range2.length - 1] + offset2, position2 = (scale2.bandwidth ? center : number$6)(scale2.copy(), offset2), selection = context2.selection ? context2.selection() : context2, path2 = selection.selectAll(".domain").data([null]), tick2 = selection.selectAll(".tick").data(values3, scale2).order(), tickExit = tick2.exit(), tickEnter = tick2.enter().append("g").attr("class", "tick"), line2 = tick2.select("line"), text2 = tick2.select("text");
250608
+ var values3 = tickValues2 == null ? scale2.ticks ? scale2.ticks.apply(scale2, tickArguments) : scale2.domain() : tickValues2, format2 = tickFormat2 == null ? scale2.tickFormat ? scale2.tickFormat.apply(scale2, tickArguments) : identity$5 : tickFormat2, spacing2 = Math.max(tickSizeInner, 0) + tickPadding, range2 = scale2.range(), range0 = +range2[0] + offset2, range1 = +range2[range2.length - 1] + offset2, position2 = (scale2.bandwidth ? center : number$5)(scale2.copy(), offset2), selection = context2.selection ? context2.selection() : context2, path2 = selection.selectAll(".domain").data([null]), tick2 = selection.selectAll(".tick").data(values3, scale2).order(), tickExit = tick2.exit(), tickEnter = tick2.enter().append("g").attr("class", "tick"), line2 = tick2.select("line"), text2 = tick2.select("text");
250600
250609
  path2 = path2.merge(path2.enter().insert("path", ".tick").attr("class", "domain").attr("stroke", "currentColor"));
250601
250610
  tick2 = tick2.merge(tickEnter);
250602
250611
  line2 = line2.merge(tickEnter.append("line").attr("stroke", "currentColor").attr(x2 + "2", k * tickSizeInner));
@@ -250729,6 +250738,9 @@ function ramp(color2, n3 = 256) {
250729
250738
  canvas.width = n3;
250730
250739
  canvas.height = 1;
250731
250740
  const context2 = canvas.getContext("2d");
250741
+ if (!context2) {
250742
+ throw new Error("Could not get 2d context from canvas");
250743
+ }
250732
250744
  for (let i2 = 0; i2 < n3; ++i2) {
250733
250745
  context2.fillStyle = color2(i2 / (n3 - 1));
250734
250746
  context2.fillRect(i2, 0, 1, 1);
@@ -250747,6 +250759,8 @@ function getXlinkHref(cmap) {
250747
250759
  }
250748
250760
  const useStyles$p = makeStyles()(() => ({
250749
250761
  legend: {
250762
+ position: "relative",
250763
+ // Needed for absolute positioning of slider overlay
250750
250764
  top: "2px",
250751
250765
  right: "2px",
250752
250766
  fontSize: "10px !important",
@@ -250778,6 +250792,74 @@ const useStyles$p = makeStyles()(() => ({
250778
250792
  },
250779
250793
  legendInvisible: {
250780
250794
  display: "none"
250795
+ },
250796
+ sliderContainer: {
250797
+ position: "absolute",
250798
+ // Position at the colormap location: top offset = titleHeight
250799
+ top: "10px",
250800
+ // titleHeight
250801
+ left: "2px",
250802
+ // Account for parent padding
250803
+ width: "calc(100% - 4px)",
250804
+ // Account for left and right padding
250805
+ height: "8px",
250806
+ // rectHeight
250807
+ "&:hover $sliderThumb": {
250808
+ opacity: 1
250809
+ }
250810
+ },
250811
+ sliderRoot: {
250812
+ position: "absolute",
250813
+ top: 0,
250814
+ left: 0,
250815
+ width: "100%",
250816
+ height: "8px",
250817
+ // rectHeight
250818
+ padding: 0,
250819
+ "& .MuiSlider-rail": {
250820
+ display: "none"
250821
+ },
250822
+ "& .MuiSlider-track": {
250823
+ display: "none"
250824
+ },
250825
+ "& .MuiSlider-valueLabel": {
250826
+ fontSize: "9px",
250827
+ padding: "2px 4px",
250828
+ backgroundColor: "rgb(0, 0, 0)",
250829
+ borderRadius: "2px"
250830
+ }
250831
+ },
250832
+ sliderThumb: {
250833
+ width: "4px",
250834
+ height: "12px",
250835
+ borderRadius: "2px",
250836
+ backgroundColor: "white",
250837
+ border: "1px solid black",
250838
+ opacity: 0,
250839
+ transition: "opacity 0.15s ease-in-out",
250840
+ "&:hover, &.Mui-focusVisible": {
250841
+ boxShadow: "0 0 0 4px rgba(0, 0, 0, 0.16)",
250842
+ opacity: 1
250843
+ },
250844
+ "&.Mui-active": {
250845
+ boxShadow: "0 0 0 6px rgba(0, 0, 0, 0.16)",
250846
+ opacity: 1
250847
+ }
250848
+ },
250849
+ colormapImage: {
250850
+ position: "absolute",
250851
+ top: "2px",
250852
+ height: "6px",
250853
+ // rectHeight
250854
+ pointerEvents: "none"
250855
+ },
250856
+ grayTrack: {
250857
+ position: "absolute",
250858
+ top: "2px",
250859
+ height: "6px",
250860
+ // rectHeight
250861
+ backgroundColor: "rgba(128, 128, 128, 0.5)",
250862
+ pointerEvents: "none"
250781
250863
  }
250782
250864
  }));
250783
250865
  const titleHeight = 10;
@@ -250787,21 +250869,23 @@ const rectMarginX = 2;
250787
250869
  function combineExtents(extents, featureAggregationStrategy) {
250788
250870
  if (Array.isArray(extents)) {
250789
250871
  if (Array.isArray(extents?.[0])) {
250872
+ const extentsArray = extents;
250790
250873
  if (featureAggregationStrategy === "first") {
250791
- return extents[0];
250874
+ return extentsArray[0];
250792
250875
  }
250793
250876
  if (featureAggregationStrategy === "last") {
250794
- return extents.at(-1);
250877
+ return extentsArray.at(-1) || null;
250795
250878
  }
250796
250879
  if (typeof featureAggregationStrategy === "number") {
250797
250880
  const i2 = featureAggregationStrategy;
250798
- return extents[i2];
250881
+ return extentsArray[i2];
250799
250882
  }
250800
250883
  if (featureAggregationStrategy === "sum") {
250801
- return extents.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]);
250884
+ return extentsArray.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]);
250802
250885
  }
250803
250886
  if (featureAggregationStrategy === "mean") {
250804
- return extents.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]).map((v) => v / extents.length);
250887
+ const sum2 = extentsArray.reduce((a2, h2) => [a2[0] + h2[0], a2[1] + h2[1]]);
250888
+ return [sum2[0] / extentsArray.length, sum2[1] / extentsArray.length];
250805
250889
  }
250806
250890
  } else {
250807
250891
  return extents;
@@ -250815,7 +250899,7 @@ function combineMissings(missings, featureAggregationStrategy) {
250815
250899
  return missings[0];
250816
250900
  }
250817
250901
  if (featureAggregationStrategy === "last") {
250818
- return missings.at(-1);
250902
+ return missings.at(-1) || null;
250819
250903
  }
250820
250904
  if (typeof featureAggregationStrategy === "number") {
250821
250905
  const i2 = featureAggregationStrategy;
@@ -250831,52 +250915,127 @@ function combineMissings(missings, featureAggregationStrategy) {
250831
250915
  return null;
250832
250916
  }
250833
250917
  function Legend(props) {
250834
- const { visible: visibleProp, positionRelative = false, highContrast = false, obsType, featureValueType, considerSelections = true, obsColorEncoding, featureSelection, featureLabelsMap, featureValueColormap, featureValueColormapRange, spatialChannelColor, spatialLayerColor, obsSetSelection, obsSetColor, featureAggregationStrategy, extent: extent2, missing, width: width2 = 100, height: height2 = 36, maxHeight: maxHeight2 = null, theme, showObsLabel = false, pointsVisible = true, contoursVisible = false, contoursFilled, contourPercentiles, contourThresholds } = props;
250835
- const svgRef = useRef();
250918
+ const {
250919
+ visible: visibleProp,
250920
+ positionRelative = false,
250921
+ highContrast = false,
250922
+ obsType,
250923
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
250924
+ featureType: _featureType = void 0,
250925
+ // Unused but accepted for API compatibility
250926
+ featureValueType,
250927
+ considerSelections = true,
250928
+ obsColorEncoding,
250929
+ featureSelection,
250930
+ featureLabelsMap,
250931
+ featureValueColormap,
250932
+ featureValueColormapRange,
250933
+ setFeatureValueColormapRange,
250934
+ spatialChannelColor,
250935
+ spatialLayerColor,
250936
+ obsSetSelection,
250937
+ obsSetColor,
250938
+ featureAggregationStrategy,
250939
+ extent: extent2,
250940
+ missing,
250941
+ width: width2 = 100,
250942
+ height: height2 = 36,
250943
+ maxHeight: maxHeight2 = null,
250944
+ theme,
250945
+ showObsLabel = false,
250946
+ pointsVisible = true,
250947
+ contoursVisible = false,
250948
+ contoursFilled,
250949
+ contourPercentiles,
250950
+ contourThresholds
250951
+ } = props;
250952
+ const svgRef = useRef(null);
250836
250953
  const { classes: classes2 } = useStyles$p();
250954
+ const [localRange, setLocalRange] = useState(featureValueColormapRange);
250955
+ useEffect(() => {
250956
+ setLocalRange(featureValueColormapRange);
250957
+ }, [featureValueColormapRange]);
250958
+ const debouncedSetRange = useMemo$1(() => setFeatureValueColormapRange ? debounce$2((value2) => {
250959
+ setFeatureValueColormapRange(value2);
250960
+ }, 5, { leading: false, trailing: true }) : null, [setFeatureValueColormapRange]);
250961
+ useEffect(() => () => {
250962
+ if (debouncedSetRange) {
250963
+ debouncedSetRange.cancel();
250964
+ }
250965
+ }, [debouncedSetRange]);
250966
+ const handleSliderChange = useCallback((_event, newValue) => {
250967
+ const rangeValue = newValue;
250968
+ setLocalRange(rangeValue);
250969
+ if (debouncedSetRange) {
250970
+ debouncedSetRange(rangeValue);
250971
+ }
250972
+ }, [debouncedSetRange]);
250837
250973
  const isDarkTheme = theme === "dark";
250838
250974
  const isStaticColor = obsColorEncoding === "spatialChannelColor" || obsColorEncoding === "spatialLayerColor";
250839
250975
  const isSetColor = obsColorEncoding === "cellSetSelection";
250840
- const layerColor = Array.isArray(spatialLayerColor) && spatialLayerColor.length === 3 ? spatialLayerColor : getDefaultColor(theme);
250841
- const channelColor = Array.isArray(spatialChannelColor) && spatialChannelColor.length === 3 ? spatialChannelColor : getDefaultColor(theme);
250976
+ const layerColor = Array.isArray(spatialLayerColor) && spatialLayerColor.length === 3 ? spatialLayerColor : getDefaultColor(theme ?? "light");
250977
+ const channelColor = Array.isArray(spatialChannelColor) && spatialChannelColor.length === 3 ? spatialChannelColor : getDefaultColor(theme ?? "light");
250842
250978
  const staticColor = obsColorEncoding === "spatialChannelColor" ? channelColor : layerColor;
250843
- const visible = visibleProp && (!considerSelections || obsColorEncoding === "geneSelection" && featureSelection && Array.isArray(featureSelection) && featureSelection.length >= 1 || isSetColor && obsSetSelection?.length > 0 && obsSetColor?.length > 0 || isStaticColor);
250979
+ const visible = visibleProp && (!considerSelections || ["geneSelection", "geneExpression"].includes(obsColorEncoding ?? "") && featureSelection && Array.isArray(featureSelection) && featureSelection.length >= 1 || isSetColor && (obsSetSelection?.length ?? 0) > 0 && (obsSetColor?.length ?? 0) > 0 || isStaticColor);
250844
250980
  const levelZeroNames = useMemo$1(() => Array.from(new Set(obsSetSelection?.map((setPath) => setPath[0]) || [])), [obsSetSelection]);
250845
- const dynamicHeight = isSetColor && obsSetSelection ? levelZeroNames.length * titleHeight + obsSetSelection?.length * (rectHeight + rectMarginY) : height2 + (!pointsVisible && contoursVisible ? 25 : 0);
250981
+ const dynamicHeight = isSetColor && obsSetSelection ? levelZeroNames.length * titleHeight + (obsSetSelection?.length ?? 0) * (rectHeight + rectMarginY) : height2 + (!pointsVisible && contoursVisible ? 25 : 0);
250846
250982
  const availHeight = maxHeight2 !== null ? Math.max(0, maxHeight2 - 4) : Infinity;
250847
250983
  const needsScroll = Number.isFinite(availHeight) && dynamicHeight > availHeight + 1;
250848
250984
  useEffect(() => {
250849
250985
  const domElement = svgRef.current;
250986
+ if (!domElement)
250987
+ return;
250850
250988
  const foregroundColor = highContrast ? "black" : isDarkTheme ? "white" : "black";
250851
250989
  const svg2 = select$1(domElement);
250852
250990
  svg2.selectAll("g").remove();
250853
250991
  svg2.attr("width", width2).attr("height", dynamicHeight);
250854
250992
  const g2 = svg2.append("g").attr("width", width2).attr("height", dynamicHeight);
250855
- if (!considerSelections || obsColorEncoding === "geneSelection") {
250856
- const [xMin, xMax] = combineExtents(extent2, featureAggregationStrategy) || [0, 1];
250993
+ const showInteractiveSlider2 = setFeatureValueColormapRange && ["geneSelection", "geneExpression"].includes(obsColorEncoding ?? "") && pointsVisible && featureValueColormap;
250994
+ if (!considerSelections || ["geneSelection", "geneExpression"].includes(obsColorEncoding ?? "")) {
250995
+ const combinedExtent = combineExtents(extent2 ?? null, featureAggregationStrategy ?? null) || [0, 1];
250996
+ const [xMin, xMax] = combinedExtent;
250857
250997
  if (featureValueColormap && pointsVisible) {
250858
- const xlinkHref = getXlinkHref(featureValueColormap);
250859
- g2.append("image").attr("x", 0).attr("y", titleHeight).attr("width", width2).attr("height", rectHeight).attr("preserveAspectRatio", "none").attr("href", xlinkHref);
250860
- const [rMin, rMax] = featureValueColormapRange;
250998
+ const xlinkHref2 = getXlinkHref(featureValueColormap);
250999
+ const currentRange = showInteractiveSlider2 ? localRange : featureValueColormapRange;
251000
+ const [rMin, rMax] = currentRange || [0, 1];
251001
+ if (showInteractiveSlider2) ;
251002
+ else if (setFeatureValueColormapRange) {
251003
+ g2.append("image").attr("x", rMin * width2).attr("y", titleHeight).attr("width", (rMax - rMin) * width2).attr("height", rectHeight).attr("preserveAspectRatio", "none").attr("href", xlinkHref2);
251004
+ } else {
251005
+ g2.append("image").attr("x", 0).attr("y", titleHeight).attr("width", width2).attr("height", rectHeight).attr("preserveAspectRatio", "none").attr("href", xlinkHref2);
251006
+ }
250861
251007
  const scaledDataExtent = [
250862
251008
  xMin + (xMax - xMin) * rMin,
250863
251009
  xMax - (xMax - xMin) * (1 - rMax)
250864
251010
  ];
250865
- const x2 = linear$1().domain(scaledDataExtent).range([0.5, width2 - 0.5]);
250866
- const axisTicks2 = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight})`).style("font-size", "10px").call(axisBottom(x2).tickValues(scaledDataExtent));
250867
- axisTicks2.selectAll("line,path").style("stroke", foregroundColor);
250868
- axisTicks2.selectAll("text").style("fill", foregroundColor);
250869
- axisTicks2.selectAll("text").attr("text-anchor", (d, i2) => i2 === 0 ? "start" : "end");
250870
- } else if (contoursVisible) {
251011
+ let x2;
251012
+ if (setFeatureValueColormapRange || showInteractiveSlider2) {
251013
+ x2 = linear$1().domain(scaledDataExtent).range([rMin * width2, rMax * width2]);
251014
+ } else {
251015
+ x2 = linear$1().domain(scaledDataExtent).range([0, width2]);
251016
+ }
251017
+ if (showInteractiveSlider2) {
251018
+ const xGlobal = linear$1().domain([xMin, xMax]).range([0, width2 - 4]);
251019
+ const axisTicks2 = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight})`).style("font-size", "10px").call(axisBottom(xGlobal).tickValues([xMin, xMax]));
251020
+ axisTicks2.selectAll("line,path").style("stroke", foregroundColor);
251021
+ axisTicks2.selectAll("text").style("fill", foregroundColor);
251022
+ axisTicks2.selectAll("text").attr("text-anchor", (_d3, i2) => i2 === 0 ? "start" : "end");
251023
+ } else {
251024
+ const axisTicks2 = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight})`).style("font-size", "10px").call(axisBottom(x2).tickValues(scaledDataExtent));
251025
+ axisTicks2.selectAll("line,path").style("stroke", foregroundColor);
251026
+ axisTicks2.selectAll("text").style("fill", foregroundColor);
251027
+ axisTicks2.selectAll("text").attr("text-anchor", (_d3, i2) => i2 === 0 ? "start" : "end");
251028
+ }
251029
+ } else if (contoursVisible && contourPercentiles) {
250871
251030
  const tSize = 12;
250872
251031
  const xPercentile = linear$1().domain([0, 1]).range([tSize / 2, width2 - tSize / 2 - 2]);
250873
- const axisTicks2 = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight + 15})`).style("font-size", "9px").call(axisBottom(xPercentile).tickValues(contourPercentiles).tickFormat(format$8(".0%")).tickSizeOuter(0));
251032
+ const axisTicks2 = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight + 15})`).style("font-size", "9px").call(axisBottom(xPercentile).tickValues(contourPercentiles).tickFormat((d) => format$8(".0%")(d)).tickSizeOuter(0));
250874
251033
  axisTicks2.selectAll("line,path").style("stroke", foregroundColor);
250875
251034
  axisTicks2.selectAll("text").style("fill", foregroundColor);
250876
251035
  const NEIGHBOR_THRESHOLD = 18;
250877
- const contourPercentages = contourPercentiles.map((x2) => x2 * 100);
251036
+ const contourPercentages = contourPercentiles.map((p) => p * 100);
250878
251037
  if (contourPercentages?.[1] - contourPercentages?.[0] <= NEIGHBOR_THRESHOLD || contourPercentages?.[2] - contourPercentages?.[1] <= NEIGHBOR_THRESHOLD) {
250879
- axisTicks2.selectAll("text").attr("transform", (d, i2) => `translate(0,${i2 === 0 || i2 === contourPercentiles.length - 1 ? 0 : 10})`);
251038
+ axisTicks2.selectAll("text").attr("transform", (_d3, i2) => `translate(0,${i2 === 0 || i2 === contourPercentiles.length - 1 ? 0 : 10})`);
250880
251039
  }
250881
251040
  const triangleGroupG = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight + 4})`);
250882
251041
  contourPercentiles.forEach((p, i2) => {
@@ -250886,7 +251045,7 @@ function Legend(props) {
250886
251045
  const thresholdGroupG = g2.append("g").attr("transform", `translate(0,${titleHeight + rectHeight})`);
250887
251046
  const thresholdFormatter = format$8(".0f");
250888
251047
  contourPercentiles.forEach((p, i2) => {
250889
- const contourThreshold = xMin + (xMax - xMin) * (contourThresholds?.[i2] / 255);
251048
+ const contourThreshold = xMin + (xMax - xMin) * ((contourThresholds?.[i2] ?? 0) / 255);
250890
251049
  const thresholdG = thresholdGroupG.append("g").attr("transform", `translate(${xPercentile(p)},0)`).style("font-size", "7px");
250891
251050
  thresholdG.append("text").text(thresholdFormatter(contourThreshold)).style("fill", foregroundColor).attr("text-anchor", "middle");
250892
251051
  });
@@ -250909,9 +251068,9 @@ function Legend(props) {
250909
251068
  g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", 0).attr("y", y2).text(levelZeroName).style("font-size", "9px").style("fill", foregroundColor);
250910
251069
  y2 += titleHeight;
250911
251070
  setPaths.forEach((setPath) => {
250912
- const setColor2 = obsSetColor?.find((d) => isEqual$3(d.path, setPath))?.color || getDefaultColor(theme);
251071
+ const setColor2 = obsSetColor?.find((d) => isEqual$3(d.path, setPath))?.color || getDefaultColor(theme ?? "light");
250913
251072
  g2.append("rect").attr("x", 0).attr("y", y2).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor2[0]},${setColor2[1]},${setColor2[2]})`);
250914
- g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y2).text(setPath.at(-1)).style("font-size", "9px").style("fill", foregroundColor);
251073
+ g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y2).text(setPath.at(-1) ?? "").style("font-size", "9px").style("fill", foregroundColor);
250915
251074
  y2 += rectHeight + rectMarginY;
250916
251075
  });
250917
251076
  });
@@ -250932,17 +251091,17 @@ function Legend(props) {
250932
251091
  } else {
250933
251092
  featureSelectionLabelRawStr = featureSelectionLabelRaw?.[0];
250934
251093
  }
250935
- const combinedMissing = combineMissings(missing, featureAggregationStrategy);
251094
+ const combinedMissing = combineMissings(missing ?? null, featureAggregationStrategy ?? null);
250936
251095
  const featureSelectionLabel = combinedMissing ? `${featureSelectionLabelRawStr} (${Math.round(combinedMissing * 100)}% NaN)` : featureSelectionLabelRawStr;
250937
- const obsLabel = capitalize$3(obsType);
250938
- const featureLabel = considerSelections ? featureSelectionLabel || capitalize$3(featureValueType) : capitalize$3(featureValueType);
251096
+ const obsLabel = capitalize$3(obsType ?? null);
251097
+ const featureLabel = considerSelections ? featureSelectionLabel || capitalize$3(featureValueType ?? null) : capitalize$3(featureValueType ?? null);
250939
251098
  const mainLabel = showObsLabel ? obsLabel : featureLabel;
250940
251099
  const subLabel = showObsLabel ? featureLabel : null;
250941
251100
  const hasSubLabel = subLabel !== null;
250942
251101
  if (!isSetColor) {
250943
- g2.append("text").attr("text-anchor", hasSubLabel ? "start" : "end").attr("dominant-baseline", "hanging").attr("x", hasSubLabel ? 0 : width2).attr("y", 0).text(mainLabel).style("font-size", "10px").style("fill", foregroundColor);
251102
+ g2.append("text").attr("text-anchor", hasSubLabel ? "start" : "end").attr("dominant-baseline", "hanging").attr("x", hasSubLabel ? 0 : width2 - 4).attr("y", 0).text(mainLabel ?? "").style("font-size", "10px").style("fill", foregroundColor);
250944
251103
  if (hasSubLabel) {
250945
- g2.append("text").attr("text-anchor", "end").attr("dominant-baseline", "hanging").attr("x", width2).attr("y", titleHeight).text(subLabel).style("font-size", "9px").style("fill", foregroundColor);
251104
+ g2.append("text").attr("text-anchor", "end").attr("dominant-baseline", "hanging").attr("x", width2).attr("y", titleHeight + rectHeight).text(subLabel ?? "").style("font-size", "9px").style("fill", foregroundColor);
250946
251105
  }
250947
251106
  }
250948
251107
  }, [
@@ -250950,6 +251109,7 @@ function Legend(props) {
250950
251109
  height2,
250951
251110
  featureValueColormap,
250952
251111
  featureValueColormapRange,
251112
+ localRange,
250953
251113
  considerSelections,
250954
251114
  obsType,
250955
251115
  obsColorEncoding,
@@ -250968,20 +251128,63 @@ function Legend(props) {
250968
251128
  contoursFilled,
250969
251129
  contoursVisible,
250970
251130
  pointsVisible,
250971
- featureAggregationStrategy
251131
+ featureAggregationStrategy,
251132
+ setFeatureValueColormapRange,
251133
+ dynamicHeight,
251134
+ highContrast,
251135
+ isStaticColor,
251136
+ missing,
251137
+ showObsLabel,
251138
+ staticColor
250972
251139
  ]);
250973
- return jsxRuntimeExports.jsx("div", { className: clsx(classes2.legend, {
251140
+ const showInteractiveSlider = setFeatureValueColormapRange && ["geneSelection", "geneExpression"].includes(obsColorEncoding ?? "") && pointsVisible && featureValueColormap;
251141
+ const globalExtent = useMemo$1(() => {
251142
+ const combined = combineExtents(extent2 ?? null, featureAggregationStrategy ?? null);
251143
+ return combined || [0, 1];
251144
+ }, [extent2, featureAggregationStrategy]);
251145
+ const formatSliderValue = useCallback((value2) => {
251146
+ const [xMin, xMax] = globalExtent;
251147
+ const dataValue = xMin + (xMax - xMin) * value2;
251148
+ const range2 = xMax - xMin;
251149
+ if (range2 < 0.01) {
251150
+ return dataValue.toExponential(2);
251151
+ }
251152
+ if (range2 < 1) {
251153
+ return dataValue.toFixed(3);
251154
+ }
251155
+ if (range2 < 100) {
251156
+ return dataValue.toFixed(1);
251157
+ }
251158
+ return Math.round(dataValue).toString();
251159
+ }, [globalExtent]);
251160
+ const xlinkHref = featureValueColormap ? getXlinkHref(featureValueColormap) : null;
251161
+ const currentLocalRange = localRange || [0, 1];
251162
+ return jsxRuntimeExports.jsxs("div", { className: clsx(classes2.legend, {
250974
251163
  [classes2.legendRelative]: positionRelative,
250975
251164
  [classes2.legendAbsolute]: !positionRelative,
250976
251165
  [classes2.legendHighContrast]: highContrast,
250977
251166
  [classes2.legendLowContrast]: !highContrast,
250978
251167
  [classes2.legendInvisible]: !visible
250979
251168
  }), style: {
250980
- ...needsScroll ? { maxHeight: `${Math.floor(availHeight)}px`, overflowY: "auto" } : { maxHeight: void 0, overflowY: "visible" }
250981
- }, children: jsxRuntimeExports.jsx("svg", { ref: svgRef, style: {
251169
+ ...needsScroll ? { maxHeight: `${Math.floor(availHeight)}px`, overflowY: "auto" } : { maxHeight: void 0, overflowY: "visible" },
251170
+ width: `${width2}px`
251171
+ }, children: [jsxRuntimeExports.jsx("svg", { ref: svgRef, style: {
250982
251172
  width: `${width2}px`,
250983
251173
  height: `${dynamicHeight}px`
250984
- } }) });
251174
+ } }), showInteractiveSlider && xlinkHref && jsxRuntimeExports.jsxs("div", { className: classes2.sliderContainer, children: [currentLocalRange[0] > 0 && jsxRuntimeExports.jsx("div", { className: classes2.grayTrack, style: {
251175
+ left: 0,
251176
+ width: `${currentLocalRange[0] * 100}%`
251177
+ } }), currentLocalRange[1] < 1 && jsxRuntimeExports.jsx("div", { className: classes2.grayTrack, style: {
251178
+ left: `${currentLocalRange[1] * 100}%`,
251179
+ width: `${(1 - currentLocalRange[1]) * 100}%`
251180
+ } }), jsxRuntimeExports.jsx("img", { src: xlinkHref, alt: "Colormap gradient", className: classes2.colormapImage, style: {
251181
+ left: `${currentLocalRange[0] * 100}%`,
251182
+ width: `${(currentLocalRange[1] - currentLocalRange[0]) * 100}%`
251183
+ } }), jsxRuntimeExports.jsx(Slider, { className: classes2.sliderRoot, value: currentLocalRange, onChange: handleSliderChange, min: 0, max: 1, step: 0.01, disableSwap: true, valueLabelDisplay: "auto", valueLabelFormat: formatSliderValue, "aria-label": "Colormap range", getAriaLabel: (index2) => index2 === 0 ? "Colormap minimum" : "Colormap maximum", getAriaValueText: (value2) => formatSliderValue(value2), slotProps: {
251184
+ thumb: {
251185
+ className: classes2.sliderThumb
251186
+ }
251187
+ } })] })] });
250985
251188
  }
250986
251189
  const useStyles$o = makeStyles()(() => ({
250987
251190
  multiLegend: {
@@ -251014,8 +251217,12 @@ function MultiLegend(props) {
251014
251217
  const reversedSpotLayerScopes = useMemo$1(() => [...spotLayerScopes || []].reverse(), [spotLayerScopes]);
251015
251218
  const reversedPointLayerScopes = useMemo$1(() => [...pointLayerScopes || []].reverse(), [pointLayerScopes]);
251016
251219
  return jsxRuntimeExports.jsxs("div", { className: classes2.multiLegend, children: [pointLayerScopes ? reversedPointLayerScopes.flatMap((layerScope) => {
251017
- const layerCoordination = pointLayerCoordination[0][layerScope];
251018
- const { spatialLayerVisible, obsColorEncoding, obsType, featureType, featureValueType, spatialLayerColor, legendVisible } = layerCoordination;
251220
+ const layerCoordination = pointLayerCoordination?.[0]?.[layerScope];
251221
+ const layerSetters = pointLayerCoordination?.[1]?.[layerScope];
251222
+ if (!layerCoordination)
251223
+ return null;
251224
+ const { spatialLayerVisible, obsColorEncoding, obsType, featureType, featureValueType, featureSelection, featureValueColormap, featureValueColormapRange, spatialLayerColor, legendVisible } = layerCoordination;
251225
+ const { setFeatureValueColormapRange } = layerSetters || {};
251019
251226
  const isStaticColor = obsColorEncoding === "spatialLayerColor";
251020
251227
  const height2 = isStaticColor ? 20 : 36;
251021
251228
  return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, {
@@ -251030,30 +251237,39 @@ function MultiLegend(props) {
251030
251237
  featureValueType,
251031
251238
  obsColorEncoding,
251032
251239
  spatialLayerColor,
251033
- featureSelection: null,
251240
+ featureSelection,
251034
251241
  // featureLabelsMap={featureLabelsMap} // TODO
251035
- featureValueColormap: "viridis",
251036
- featureValueColormapRange: [0, 1],
251242
+ featureValueColormap: featureValueColormap || "viridis",
251243
+ featureValueColormapRange: featureValueColormapRange || [0, 1],
251244
+ setFeatureValueColormapRange,
251037
251245
  extent: null,
251038
251246
  height: height2
251039
251247
  }, layerScope) : null;
251040
251248
  }) : null, spotLayerScopes ? reversedSpotLayerScopes.flatMap((layerScope) => {
251041
- const layerCoordination = spotLayerCoordination[0][layerScope];
251249
+ const layerCoordination = spotLayerCoordination?.[0][layerScope];
251250
+ const layerSetters = spotLayerCoordination?.[1]?.[layerScope];
251251
+ if (!layerCoordination)
251252
+ return null;
251042
251253
  const { spatialLayerVisible, obsColorEncoding, featureValueColormap, featureValueColormapRange, obsType, featureType, featureValueType, featureSelection, featureAggregationStrategy, spatialLayerColor, legendVisible, obsSetSelection, obsSetColor } = layerCoordination;
251254
+ const { setFeatureValueColormapRange } = layerSetters || {};
251043
251255
  const expressionExtents = spotMultiExpressionExtents?.[layerScope];
251044
251256
  const firstExpressionExtent = expressionExtents?.[0];
251045
251257
  const isStaticColor = obsColorEncoding === "spatialLayerColor";
251046
251258
  const height2 = isStaticColor ? 20 : 36;
251047
251259
  const featureLabelsMap = spotMultiFeatureLabels?.[layerScope]?.featureLabelsMap;
251048
- return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, { maxHeight: maxHeight2, positionRelative: true, highContrast: true, showObsLabel: true, visible: spatialLayerVisible, theme, obsType, featureType, featureValueType, obsColorEncoding, spatialLayerColor, featureSelection, featureAggregationStrategy, featureLabelsMap, featureValueColormap, featureValueColormapRange, extent: firstExpressionExtent, height: height2, obsSetSelection, obsSetColor }, layerScope) : null;
251260
+ return spatialLayerVisible && legendVisible ? jsxRuntimeExports.jsx(Legend, { maxHeight: maxHeight2, positionRelative: true, highContrast: true, showObsLabel: true, visible: spatialLayerVisible, theme, obsType, featureType, featureValueType, obsColorEncoding, spatialLayerColor, featureSelection, featureAggregationStrategy, featureLabelsMap, featureValueColormap, featureValueColormapRange, setFeatureValueColormapRange, extent: firstExpressionExtent, height: height2, obsSetSelection, obsSetColor }, layerScope) : null;
251049
251261
  }) : null, segmentationLayerScopes ? reversedSegmentationLayerScopes.flatMap((layerScope) => {
251050
- const layerCoordination = segmentationLayerCoordination[0][layerScope];
251051
- const channelScopes = segmentationChannelScopesByLayer[layerScope];
251052
- const channelCoordination = segmentationChannelCoordination[0][layerScope];
251262
+ const layerCoordination = segmentationLayerCoordination?.[0][layerScope];
251263
+ const channelScopes = segmentationChannelScopesByLayer?.[layerScope];
251264
+ const channelCoordination = segmentationChannelCoordination?.[0][layerScope];
251265
+ const channelSetters = segmentationChannelCoordination?.[1]?.[layerScope];
251266
+ if (!layerCoordination)
251267
+ return null;
251053
251268
  const { spatialLayerVisible } = layerCoordination;
251054
251269
  const reversedChannelScopes = [...channelScopes || []].reverse();
251055
251270
  return channelCoordination && channelScopes ? reversedChannelScopes.map((cScope) => {
251056
251271
  const { spatialChannelVisible, spatialChannelColor, obsColorEncoding, featureValueColormap, featureValueColormapRange, obsType, featureType, featureValueType, featureSelection, featureAggregationStrategy, legendVisible, obsSetSelection, obsSetColor } = channelCoordination[cScope];
251272
+ const { setFeatureValueColormapRange } = channelSetters?.[cScope] || {};
251057
251273
  const expressionExtents = segmentationMultiExpressionExtents?.[layerScope]?.[cScope];
251058
251274
  const firstExpressionExtent = expressionExtents?.[0];
251059
251275
  const isStaticColor = obsColorEncoding === "spatialChannelColor";
@@ -251074,6 +251290,7 @@ function MultiLegend(props) {
251074
251290
  // featureLabelsMap={featureLabelsMap} // TODO
251075
251291
  featureValueColormap,
251076
251292
  featureValueColormapRange,
251293
+ setFeatureValueColormapRange,
251077
251294
  extent: firstExpressionExtent,
251078
251295
  height: height2,
251079
251296
  spatialChannelColor,
@@ -251123,7 +251340,7 @@ function ChannelNamesLegend(props) {
251123
251340
  const imageWrapperInstance = images?.[layerScope]?.image?.instance;
251124
251341
  const channelNames = imageWrapperInstance?.getChannelNames();
251125
251342
  const channelIndex = imageWrapperInstance?.getChannelIndex(spatialTargetC);
251126
- const channelName = channelNames?.[channelIndex];
251343
+ const channelName = channelIndex !== void 0 ? channelNames?.[channelIndex] : void 0;
251127
251344
  return spatialLayerVisible && spatialChannelVisible && spatialChannelLabelsVisible ? jsxRuntimeExports.jsx(Typography, { variant: "h6", className: classes2.channelNameText, style: {
251128
251345
  color: rgbColor,
251129
251346
  fontSize: `${spatialChannelLabelSize}px`
@@ -251282,7 +251499,7 @@ function EmbeddingScatterplotSubscriber(props) {
251282
251499
  }, [obsEmbedding]);
251283
251500
  useEffect(() => {
251284
251501
  if (xRange && yRange && width2 && height2) {
251285
- const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom2, xRange, yRange, width2, height2);
251502
+ const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom2, xRange, yRange, width2, height2, numCells);
251286
251503
  setDynamicCellRadius(pointSizeDevicePixels);
251287
251504
  const nextCellOpacityScale = getPointOpacity(zoom2, xRange, yRange, width2, height2, numCells, averageFillDensity);
251288
251505
  setDynamicCellOpacity(nextCellOpacityScale);
@@ -251490,6 +251707,7 @@ function EmbeddingScatterplotSubscriber(props) {
251490
251707
  featureLabelsMap,
251491
251708
  featureValueColormap: geneExpressionColormap,
251492
251709
  featureValueColormapRange: geneExpressionColormapRange,
251710
+ setFeatureValueColormapRange: setGeneExpressionColormapRange,
251493
251711
  obsSetSelection: cellSetSelection,
251494
251712
  extent: expressionExtents,
251495
251713
  missing: expressionMissing,
@@ -251717,7 +251935,7 @@ function GatingSubscriber(props) {
251717
251935
  }, [obsXY]);
251718
251936
  useEffect(() => {
251719
251937
  if (xRange && yRange) {
251720
- const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom2, xRange, yRange, width2, height2);
251938
+ const pointSizeDevicePixels = getPointSizeDevicePixels(window.devicePixelRatio, zoom2, xRange, yRange, width2, height2, numCells);
251721
251939
  setDynamicCellRadius(pointSizeDevicePixels);
251722
251940
  const nextCellOpacityScale = getPointOpacity(zoom2, xRange, yRange, width2, height2, numCells, averageFillDensity);
251723
251941
  setDynamicCellOpacity(nextCellOpacityScale);
@@ -266383,7 +266601,7 @@ var equalScalar = /* @__PURE__ */ createEqualScalar({
266383
266601
  config: config$1,
266384
266602
  typed
266385
266603
  });
266386
- var number$5 = /* @__PURE__ */ createNumber({
266604
+ var number$4 = /* @__PURE__ */ createNumber({
266387
266605
  typed
266388
266606
  });
266389
266607
  var multiplyScalar = /* @__PURE__ */ createMultiplyScalar({
@@ -266500,7 +266718,7 @@ var pow$4 = /* @__PURE__ */ createPow({
266500
266718
  identity: identity$4,
266501
266719
  matrix,
266502
266720
  multiply,
266503
- number: number$5,
266721
+ number: number$4,
266504
266722
  typed
266505
266723
  });
266506
266724
  var bignumber = /* @__PURE__ */ createBignumber({
@@ -266510,7 +266728,7 @@ var bignumber = /* @__PURE__ */ createBignumber({
266510
266728
  var numeric$1 = /* @__PURE__ */ createNumeric({
266511
266729
  bignumber,
266512
266730
  fraction,
266513
- number: number$5
266731
+ number: number$4
266514
266732
  });
266515
266733
  var subtract = /* @__PURE__ */ createSubtract({
266516
266734
  DenseMatrix,
@@ -266604,7 +266822,7 @@ var Unit = /* @__PURE__ */ createUnitClass({
266604
266822
  format: format$4,
266605
266823
  isNumeric: isNumeric$1,
266606
266824
  multiplyScalar,
266607
- number: number$5,
266825
+ number: number$4,
266608
266826
  pow: pow$4,
266609
266827
  round,
266610
266828
  subtract
@@ -268434,6 +268652,7 @@ function SpatialSubscriber$1(props) {
268434
268652
  featureLabelsMap,
268435
268653
  featureValueColormap: geneExpressionColormap,
268436
268654
  featureValueColormapRange: geneExpressionColormapRange,
268655
+ setFeatureValueColormapRange: setGeneExpressionColormapRange,
268437
268656
  extent: expressionExtents?.[0]
268438
268657
  })] });
268439
268658
  }
@@ -269812,12 +270031,12 @@ class ErrorBoundary2 extends React__default.Component {
269812
270031
  }
269813
270032
  }
269814
270033
  const LazySpatialThree = React__default.lazy(async () => {
269815
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-DxF5s9IL.js");
270034
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-x9jj_7-2.js");
269816
270035
  return { default: SpatialWrapper2 };
269817
270036
  });
269818
270037
  const SpatialThreeAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialThree, { ...props }) }) }) }));
269819
270038
  const LazySpatialAccelerated = React__default.lazy(async () => {
269820
- const { SpatialWrapper: SpatialWrapper2 } = await import("./index-Cz8VeLk0.js");
270039
+ const { SpatialWrapper: SpatialWrapper2 } = await import("./index-DMKFK_xq.js");
269821
270040
  return { default: SpatialWrapper2 };
269822
270041
  });
269823
270042
  const SpatialAcceleratedAdapter = React__default.forwardRef((props, ref2) => jsxRuntimeExports.jsx("div", { ref: ref2, style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsx(ErrorBoundary2, { children: jsxRuntimeExports.jsx(Suspense, { fallback: jsxRuntimeExports.jsx("div", { children: "Loading..." }), children: jsxRuntimeExports.jsx(LazySpatialAccelerated, { ...props }) }) }) }));
@@ -270695,7 +270914,7 @@ const Heatmap$1 = forwardRef$1((props, deckRef) => {
270695
270914
  }
270696
270915
  const curr = backlog[backlog.length - 1];
270697
270916
  if (dataRef.current && dataRef.current.buffer.byteLength && expressionRowLookUp.size > 0 && !shouldUsePaddedImplementation(dataRef.current.length)) {
270698
- const promises = range$c(yTiles).map((i2) => range$c(xTiles).map(async (j) => workerPool.process({
270917
+ const promises = range$b(yTiles).map((i2) => range$b(xTiles).map(async (j) => workerPool.process({
270699
270918
  curr,
270700
270919
  tileI: i2,
270701
270920
  tileJ: j,
@@ -270804,7 +271023,7 @@ const Heatmap$1 = forwardRef$1((props, deckRef) => {
270804
271023
  });
270805
271024
  };
270806
271025
  const cellOrdering = transpose2 ? axisTopLabels : axisLeftLabels;
270807
- const layers3 = range$c(yTiles * xTiles).map((index2) => getLayer2(Math.floor(index2 / xTiles), index2 % xTiles));
271026
+ const layers3 = range$b(yTiles * xTiles).map((index2) => getLayer2(Math.floor(index2 / xTiles), index2 % xTiles));
270808
271027
  return layers3;
270809
271028
  }
270810
271029
  function getLayer(i2, j, tile) {
@@ -270956,10 +271175,10 @@ const Heatmap$1 = forwardRef$1((props, deckRef) => {
270956
271175
  const cellOrdering = transpose2 ? axisTopLabels : axisLeftLabels;
270957
271176
  const colorBarTileWidthPx = transpose2 ? TILE_SIZE : 1;
270958
271177
  const colorBarTileHeightPx = transpose2 ? 1 : TILE_SIZE;
270959
- const result = range$c(numCellColorTracks).map((track) => {
270960
- const trackResult = range$c(transpose2 ? xTiles : yTiles).map((i2) => {
271178
+ const result = range$b(numCellColorTracks).map((track) => {
271179
+ const trackResult = range$b(transpose2 ? xTiles : yTiles).map((i2) => {
270961
271180
  const tileData = new Uint8ClampedArray(TILE_SIZE * 1 * 4);
270962
- range$c(TILE_SIZE).forEach((tileY) => {
271181
+ range$b(TILE_SIZE).forEach((tileY) => {
270963
271182
  rowI = i2 * TILE_SIZE + tileY;
270964
271183
  if (rowI < cellOrdering.length) {
270965
271184
  cellId = cellOrdering[rowI];
@@ -271089,7 +271308,7 @@ const Heatmap$1 = forwardRef$1((props, deckRef) => {
271089
271308
  }
271090
271309
  }
271091
271310
  const cellColorsViews = useMemo$1(() => {
271092
- const result = range$c(numCellColorTracks).map((track) => {
271311
+ const result = range$b(numCellColorTracks).map((track) => {
271093
271312
  let view;
271094
271313
  if (transpose2) {
271095
271314
  view = new OrthographicView({
@@ -271315,7 +271534,7 @@ function HeatmapSubscriber(props) {
271315
271534
  setTargetY(target2[1]);
271316
271535
  }, colormapRange: geneExpressionColormapRange, setColormapRange: setGeneExpressionColormapRange, height: height2, width: width2, theme, uuid: uuid2, uint8ObsFeatureMatrix: uint8ObsFeatureMatrix?.data, cellColors, colormap: geneExpressionColormap, setIsRendering, setCellHighlight, setGeneHighlight, featureLabelsMap, obsIndex, featureIndex, setTrackHighlight, setComponentHover: () => {
271317
271536
  setComponentHover(uuid2);
271318
- }, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid2, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
271537
+ }, updateViewInfo: setComponentViewInfo, observationsTitle, variablesTitle, variablesDashes: false, observationsDashes: false, cellColorLabels, useDevicePixels: true, onHeatmapClick, setColorEncoding: setHoveredColorEncoding }), tooltipsVisible && jsxRuntimeExports.jsx(HeatmapTooltipSubscriber, { parentUuid: uuid2, width: width2, height: height2, transpose: transpose2, getObsInfo: getObsInfo2, getFeatureInfo, obsHighlight: cellHighlight, featureHighlight: geneHighlight, featureType, featureLabelsMap }), jsxRuntimeExports.jsx(Legend, { visible: true, theme, featureType, featureValueType, obsColorEncoding: "geneExpression", considerSelections: false, featureSelection: geneSelection, obsSetSelection: cellSetSelection, featureValueColormap: geneExpressionColormap, featureValueColormapRange: geneExpressionColormapRange, setFeatureValueColormapRange: setGeneExpressionColormapRange, extent: obsFeatureMatrixExtent })] });
271319
271538
  }
271320
271539
  function _classCallCheck(a2, n3) {
271321
271540
  if (!(a2 instanceof n3)) throw new TypeError("Cannot call a class as a function");
@@ -278507,7 +278726,7 @@ function LayerOptions({ colormap, opacity: opacity2, handleColormapChange, handl
278507
278726
  const domainSelectorId = $bdb11010cef70236$export$f680877a34711e37();
278508
278727
  const opacitySliderId = $bdb11010cef70236$export$f680877a34711e37();
278509
278728
  const zeroTransparentId = $bdb11010cef70236$export$f680877a34711e37();
278510
- return jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", sx: { width: "100%" }, children: [hasZStack && !disable3d && hasViewableResolutions && jsxRuntimeExports.jsx(VolumeDropdown, { loader: loader2, handleSliderChange, handleDomainChange, channels: channels2, handleMultiPropertyChange, resolution, disable3d, setRasterLayerCallback, setAreAllChannelsLoading, setViewState, spatialHeight, spatialWidth, use3d, modelMatrix: modelMatrix2 }), hasDimensionsAndChannels && !use3d && globalControlLabels.map((field2) => shape2[labels2.indexOf(field2)] > 1 && jsxRuntimeExports.jsx(LayerOption, { name: field2, inputId: `${field2}-${globalSelectionSliderId}`, children: jsxRuntimeExports.jsx(GlobalSelectionSlider, { field: field2, inputId: `${field2}-${globalSelectionSliderId}`, value: globalLabelValues[field2], handleChange: handleGlobalChannelsSelectionChange, possibleValues: range$c(shape2[labels2.indexOf(field2)]) }) }, field2)), !disableChannelsIfRgbDetected ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [shouldShowColormap && jsxRuntimeExports.jsx(Grid$1, { children: jsxRuntimeExports.jsx(LayerOption, { name: "Colormap", inputId: colormapSelectId, children: jsxRuntimeExports.jsx(ColormapSelect, { value: colormap || "", inputId: colormapSelectId, handleChange: handleColormapChange }) }) }), shouldShowDomain && jsxRuntimeExports.jsx(Grid$1, { children: jsxRuntimeExports.jsx(LayerOption, { name: "Domain", inputId: domainSelectorId, children: jsxRuntimeExports.jsx(SliderDomainSelector, { value: domainType || DEFAULT_RASTER_DOMAIN_TYPE, inputId: domainSelectorId, handleChange: (value2) => {
278729
+ return jsxRuntimeExports.jsxs(Grid$1, { container: true, direction: "column", sx: { width: "100%" }, children: [hasZStack && !disable3d && hasViewableResolutions && jsxRuntimeExports.jsx(VolumeDropdown, { loader: loader2, handleSliderChange, handleDomainChange, channels: channels2, handleMultiPropertyChange, resolution, disable3d, setRasterLayerCallback, setAreAllChannelsLoading, setViewState, spatialHeight, spatialWidth, use3d, modelMatrix: modelMatrix2 }), hasDimensionsAndChannels && !use3d && globalControlLabels.map((field2) => shape2[labels2.indexOf(field2)] > 1 && jsxRuntimeExports.jsx(LayerOption, { name: field2, inputId: `${field2}-${globalSelectionSliderId}`, children: jsxRuntimeExports.jsx(GlobalSelectionSlider, { field: field2, inputId: `${field2}-${globalSelectionSliderId}`, value: globalLabelValues[field2], handleChange: handleGlobalChannelsSelectionChange, possibleValues: range$b(shape2[labels2.indexOf(field2)]) }) }, field2)), !disableChannelsIfRgbDetected ? jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [shouldShowColormap && jsxRuntimeExports.jsx(Grid$1, { children: jsxRuntimeExports.jsx(LayerOption, { name: "Colormap", inputId: colormapSelectId, children: jsxRuntimeExports.jsx(ColormapSelect, { value: colormap || "", inputId: colormapSelectId, handleChange: handleColormapChange }) }) }), shouldShowDomain && jsxRuntimeExports.jsx(Grid$1, { children: jsxRuntimeExports.jsx(LayerOption, { name: "Domain", inputId: domainSelectorId, children: jsxRuntimeExports.jsx(SliderDomainSelector, { value: domainType || DEFAULT_RASTER_DOMAIN_TYPE, inputId: domainSelectorId, handleChange: (value2) => {
278511
278730
  handleDomainChange(value2);
278512
278731
  } }) }) })] }) : null, !use3d && jsxRuntimeExports.jsx(Grid$1, { children: jsxRuntimeExports.jsx(LayerOption, { name: "Opacity", inputId: opacitySliderId, children: jsxRuntimeExports.jsx(OpacitySlider, { value: opacity2, handleChange: handleOpacityChange, inputId: opacitySliderId }) }) }), shouldShowTransparentColor && !use3d && jsxRuntimeExports.jsx(Grid$1, { children: jsxRuntimeExports.jsx(LayerOption, { name: "Zero Transparent", inputId: zeroTransparentId, children: jsxRuntimeExports.jsx(TransparentColorCheckbox, { value: transparentColor, handleChange: handleTransparentColorChange, inputId: zeroTransparentId }) }) })] });
278513
278732
  }
@@ -281106,7 +281325,7 @@ async function open(location, options = {}) {
281106
281325
  }
281107
281326
  open.v2 = open_v2;
281108
281327
  open.v3 = open_v3;
281109
- function* range$6(start2, stop3, step = 1) {
281328
+ function* range$5(start2, stop3, step = 1) {
281110
281329
  if (stop3 === void 0) {
281111
281330
  stop3 = start2;
281112
281331
  start2 = 0;
@@ -281261,7 +281480,7 @@ class SliceDimIndexer2 {
281261
281480
  *[Symbol.iterator]() {
281262
281481
  const dim_chunk_ix_from = Math.floor(this.start / this.dim_chunk_len);
281263
281482
  const dim_chunk_ix_to = Math.ceil(this.stop / this.dim_chunk_len);
281264
- for (const dim_chunk_ix of range$6(dim_chunk_ix_from, dim_chunk_ix_to)) {
281483
+ for (const dim_chunk_ix of range$5(dim_chunk_ix_from, dim_chunk_ix_to)) {
281265
281484
  const dim_offset = dim_chunk_ix * this.dim_chunk_len;
281266
281485
  const dim_limit = Math.min(this.dim_len, (dim_chunk_ix + 1) * this.dim_chunk_len);
281267
281486
  const dim_chunk_len = dim_limit - dim_offset;
@@ -281719,7 +281938,7 @@ function HiglassGlobalStyles(props) {
281719
281938
  }
281720
281939
  register({ dataFetcher: ZarrMultivecDataFetcher_default, config: ZarrMultivecDataFetcher_default.config }, { pluginType: "dataFetcher" });
281721
281940
  const LazyHiGlassComponent = React__default.lazy(async () => {
281722
- const { HiGlassComponent } = await import("./higlass-DOCdAMGa.js");
281941
+ const { HiGlassComponent } = await import("./higlass-BSYe98wz.js");
281723
281942
  return { default: HiGlassComponent };
281724
281943
  });
281725
281944
  const HG_SIZE = 800;
@@ -284666,7 +284885,7 @@ function NeuroglancerGlobalStyles(props) {
284666
284885
  const { classes: classes2 } = props;
284667
284886
  return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsx(GlobalStyles$3, { styles: globalNeuroglancerCss }), jsxRuntimeExports.jsx(ScopedGlobalStyles, { styles: globalNeuroglancerStyles, parentClassName: classes2.neuroglancerWrapper })] });
284668
284887
  }
284669
- const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-BM1UeLFe.js"));
284888
+ const LazyReactNeuroglancer = React__default.lazy(() => import("./ReactNeuroglancer-DSXzAFHD.js"));
284670
284889
  function createWorker() {
284671
284890
  return new WorkerFactory();
284672
284891
  }
@@ -314935,68 +315154,6 @@ function toSet$1(_) {
314935
315154
  for (let i2 = 0; i2 < n3; ++i2) s2[_[i2]] = true;
314936
315155
  return s2;
314937
315156
  }
314938
- function ascending$4(a2, b2) {
314939
- return a2 == null || b2 == null ? NaN : a2 < b2 ? -1 : a2 > b2 ? 1 : a2 >= b2 ? 0 : NaN;
314940
- }
314941
- function descending$1(a2, b2) {
314942
- return a2 == null || b2 == null ? NaN : b2 < a2 ? -1 : b2 > a2 ? 1 : b2 >= a2 ? 0 : NaN;
314943
- }
314944
- function bisector$1(f2) {
314945
- let compare12, compare2, delta;
314946
- if (f2.length !== 2) {
314947
- compare12 = ascending$4;
314948
- compare2 = (d, x2) => ascending$4(f2(d), x2);
314949
- delta = (d, x2) => f2(d) - x2;
314950
- } else {
314951
- compare12 = f2 === ascending$4 || f2 === descending$1 ? f2 : zero$3;
314952
- compare2 = f2;
314953
- delta = f2;
314954
- }
314955
- function left2(a2, x2, lo = 0, hi = a2.length) {
314956
- if (lo < hi) {
314957
- if (compare12(x2, x2) !== 0) return hi;
314958
- do {
314959
- const mid = lo + hi >>> 1;
314960
- if (compare2(a2[mid], x2) < 0) lo = mid + 1;
314961
- else hi = mid;
314962
- } while (lo < hi);
314963
- }
314964
- return lo;
314965
- }
314966
- function right2(a2, x2, lo = 0, hi = a2.length) {
314967
- if (lo < hi) {
314968
- if (compare12(x2, x2) !== 0) return hi;
314969
- do {
314970
- const mid = lo + hi >>> 1;
314971
- if (compare2(a2[mid], x2) <= 0) lo = mid + 1;
314972
- else hi = mid;
314973
- } while (lo < hi);
314974
- }
314975
- return lo;
314976
- }
314977
- function center2(a2, x2, lo = 0, hi = a2.length) {
314978
- const i2 = left2(a2, x2, lo, hi - 1);
314979
- return i2 > lo && delta(a2[i2 - 1], x2) > -delta(a2[i2], x2) ? i2 - 1 : i2;
314980
- }
314981
- return { left: left2, center: center2, right: right2 };
314982
- }
314983
- function zero$3() {
314984
- return 0;
314985
- }
314986
- function number$4(x2) {
314987
- return x2 === null ? NaN : +x2;
314988
- }
314989
- const ascendingBisect = bisector$1(ascending$4);
314990
- const bisectRight$1 = ascendingBisect.right;
314991
- bisector$1(number$4).center;
314992
- function range$5(start2, stop3, step) {
314993
- start2 = +start2, stop3 = +stop3, step = (n3 = arguments.length) < 2 ? (stop3 = start2, start2 = 0, 1) : n3 < 3 ? 1 : +step;
314994
- var i2 = -1, n3 = Math.max(0, Math.ceil((stop3 - start2) / step)) | 0, range2 = new Array(n3);
314995
- while (++i2 < n3) {
314996
- range2[i2] = start2 + i2 * step;
314997
- }
314998
- return range2;
314999
- }
315000
315157
  function colors$2(specifier) {
315001
315158
  var n3 = specifier.length / 6 | 0, colors2 = new Array(n3), i2 = 0;
315002
315159
  while (i2 < n3) colors2[i2] = "#" + specifier.slice(i2 * 6, ++i2 * 6);
@@ -315186,7 +315343,7 @@ function band$1() {
315186
315343
  start2 = Math.round(start2);
315187
315344
  bandwidth2 = Math.round(bandwidth2);
315188
315345
  }
315189
- const values3 = range$5(n3).map((i2) => start2 + step * i2);
315346
+ const values3 = range$6(n3).map((i2) => start2 + step * i2);
315190
315347
  return ordinalRange(reverse2 ? values3.reverse() : values3);
315191
315348
  }
315192
315349
  scale2.domain = function(_) {
@@ -316950,7 +317107,7 @@ const useStyles$3 = makeStyles()(() => ({
316950
317107
  }
316951
317108
  }));
316952
317109
  function summarize(iterable, keepZeros) {
316953
- const values3 = iterable.filter((d) => keepZeros).sort(ascending$9);
317110
+ const values3 = iterable.filter((d) => keepZeros).sort(ascending$8);
316954
317111
  const minVal = values3[0];
316955
317112
  const maxVal = values3[values3.length - 1];
316956
317113
  const q1 = quantileSorted$1(values3, 0.25);
@@ -318561,7 +318718,7 @@ const Milli = [YEAR, MONTH, DATE, HOURS, MINUTES, SECONDS, MILLISECONDS], Second
318561
318718
  const intervals = [[Seconds, 1, durationSecond], [Seconds, 5, 5 * durationSecond], [Seconds, 15, 15 * durationSecond], [Seconds, 30, 30 * durationSecond], [Minutes, 1, durationMinute], [Minutes, 5, 5 * durationMinute], [Minutes, 15, 15 * durationMinute], [Minutes, 30, 30 * durationMinute], [Hours, 1, durationHour], [Hours, 3, 3 * durationHour], [Hours, 6, 6 * durationHour], [Hours, 12, 12 * durationHour], [Day, 1, durationDay], [Week, 1, durationWeek], [Month, 1, durationMonth], [Month, 3, 3 * durationMonth], [Year, 1, durationYear]];
318562
318719
  function bin$1(opt) {
318563
318720
  const ext = opt.extent, max2 = opt.maxbins || 40, target2 = Math.abs(span(ext)) / max2;
318564
- let i2 = bisector$2((i3) => i3[2]).right(intervals, target2), units, step;
318721
+ let i2 = bisector$1((i3) => i3[2]).right(intervals, target2), units, step;
318565
318722
  if (i2 === intervals.length) {
318566
318723
  units = Year, step = tickStep(ext[0] / durationYear, ext[1] / durationYear, max2);
318567
318724
  } else if (i2) {
@@ -320499,7 +320656,7 @@ function* numbers$1(values3, valueof) {
320499
320656
  }
320500
320657
  function quantiles(array2, p, f2) {
320501
320658
  const values3 = Float64Array.from(numbers$1(array2, f2));
320502
- values3.sort(ascending$5);
320659
+ values3.sort(ascending$4);
320503
320660
  return p.map((_) => quantileSorted(values3, _));
320504
320661
  }
320505
320662
  function quartiles(array2, f2) {
@@ -320558,7 +320715,7 @@ function bootstrapCI(array2, samples, alpha2, f2) {
320558
320715
  }
320559
320716
  mu[j] = a2 / n3;
320560
320717
  }
320561
- mu.sort(ascending$5);
320718
+ mu.sort(ascending$4);
320562
320719
  return [quantile$1(mu, alpha2 / 2), quantile$1(mu, 1 - alpha2 / 2)];
320563
320720
  }
320564
320721
  function dotbin(array2, step, smooth, f2) {
@@ -323531,7 +323688,7 @@ inherits(Quantile$1, Transform2, {
323531
323688
  out.source = this.value;
323532
323689
  return out;
323533
323690
  }
323534
- const source2 = pulse2.materialize(pulse2.SOURCE).source, groups = partition$1$1(source2, _.groupby, _.field), names = (_.groupby || []).map(accessorName), values3 = [], step = _.step || 0.01, p = _.probs || range$7(step / 2, 1 - EPSILON$2, step), n3 = p.length;
323691
+ const source2 = pulse2.materialize(pulse2.SOURCE).source, groups = partition$1$1(source2, _.groupby, _.field), names = (_.groupby || []).map(accessorName), values3 = [], step = _.step || 0.01, p = _.probs || range$6(step / 2, 1 - EPSILON$2, step), n3 = p.length;
323535
323692
  groups.forEach((g2) => {
323536
323693
  const q = quantiles(g2, p);
323537
323694
  for (let i2 = 0; i2 < n3; ++i2) {
@@ -323690,7 +323847,7 @@ inherits(Sequence, Transform2, {
323690
323847
  if (this.value && !_.modified()) return;
323691
323848
  const out = pulse2.materialize().fork(pulse2.MOD), as = _.as || "data";
323692
323849
  out.rem = this.value ? pulse2.rem.concat(this.value) : pulse2.rem;
323693
- this.value = range$7(_.start, _.stop, _.step || 1).map((v) => {
323850
+ this.value = range$6(_.start, _.stop, _.step || 1).map((v) => {
323694
323851
  const t4 = {};
323695
323852
  t4[as] = v;
323696
323853
  return ingest$1(t4);
@@ -324150,7 +324307,7 @@ inherits(Window, Transform2, {
324150
324307
  }
324151
324308
  });
324152
324309
  function processPartition(list2, state, cmp2, _) {
324153
- const sort2 = _.sort, range2 = sort2 && !_.ignorePeers, frame2 = _.frame || [null, 0], data2 = list2.data(cmp2), n3 = data2.length, b2 = range2 ? bisector$2(sort2) : null, w2 = {
324310
+ const sort2 = _.sort, range2 = sort2 && !_.ignorePeers, frame2 = _.frame || [null, 0], data2 = list2.data(cmp2), n3 = data2.length, b2 = range2 ? bisector$1(sort2) : null, w2 = {
324154
324311
  i0: 0,
324155
324312
  i1: 0,
324156
324313
  p0: 0,
@@ -324308,7 +324465,7 @@ function band() {
324308
324465
  start2 = Math.round(start2);
324309
324466
  bandwidth2 = Math.round(bandwidth2);
324310
324467
  }
324311
- const values3 = range$7(n3).map((i2) => start2 + step * i2);
324468
+ const values3 = range$6(n3).map((i2) => start2 + step * i2);
324312
324469
  return ordinalRange(reverse2 ? values3.reverse() : values3);
324313
324470
  }
324314
324471
  scale2.domain = function(_) {
@@ -324390,8 +324547,8 @@ function band() {
324390
324547
  hi = t4;
324391
324548
  }
324392
324549
  if (hi < values3[0] || lo > range$12[1 - reverse2]) return;
324393
- a2 = Math.max(0, bisectRight$2(values3, lo) - 1);
324394
- b2 = lo === hi ? a2 : bisectRight$2(values3, hi) - 1;
324550
+ a2 = Math.max(0, bisectRight$1(values3, lo) - 1);
324551
+ b2 = lo === hi ? a2 : bisectRight$1(values3, hi) - 1;
324395
324552
  if (lo - values3[a2] > bandwidth2 + 1e-10) ++a2;
324396
324553
  if (reverse2) {
324397
324554
  t4 = a2;
@@ -324429,7 +324586,7 @@ const slice$2 = Array.prototype.slice;
324429
324586
  function scaleBinOrdinal() {
324430
324587
  let domain2 = [], range2 = [];
324431
324588
  function scale2(x2) {
324432
- return x2 == null || x2 !== x2 ? void 0 : range2[(bisectRight$2(domain2, x2) - 1) % range2.length];
324589
+ return x2 == null || x2 !== x2 ? void 0 : range2[(bisectRight$1(domain2, x2) - 1) % range2.length];
324433
324590
  }
324434
324591
  scale2.domain = function(_) {
324435
324592
  if (arguments.length) {
@@ -330152,7 +330309,7 @@ Pie.Definition = {
330152
330309
  };
330153
330310
  inherits(Pie, Transform2, {
330154
330311
  transform(_, pulse2) {
330155
- var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$1, start2 = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values3 = data2.map(field2), n3 = values3.length, a2 = start2, k = (stop3 - start2) / sum$2(values3), index2 = range$7(n3), i2, t4, v;
330312
+ var as = _.as || ["startAngle", "endAngle"], startAngle = as[0], endAngle = as[1], field2 = _.field || one$1, start2 = _.startAngle || 0, stop3 = _.endAngle != null ? _.endAngle : 2 * Math.PI, data2 = pulse2.source, values3 = data2.map(field2), n3 = values3.length, a2 = start2, k = (stop3 - start2) / sum$2(values3), index2 = range$6(n3), i2, t4, v;
330156
330313
  if (_.sort) {
330157
330314
  index2.sort((a3, b2) => values3[a3] - values3[b2]);
330158
330315
  }
@@ -330270,7 +330427,7 @@ function configureBins(scale2, _, count2) {
330270
330427
  if (!step) error("Scale bins parameter missing step property.");
330271
330428
  if (start2 < lo) start2 = step * Math.ceil(lo / step);
330272
330429
  if (stop3 > hi) stop3 = step * Math.floor(hi / step);
330273
- bins2 = range$7(start2, stop3 + step / 2, step);
330430
+ bins2 = range$6(start2, stop3 + step / 2, step);
330274
330431
  }
330275
330432
  if (bins2) {
330276
330433
  scale2.bins = bins2;
@@ -331491,7 +331648,7 @@ function clipRectangle(x02, y02, x12, y12) {
331491
331648
  };
331492
331649
  }
331493
331650
  function graticuleX(y02, y12, dy) {
331494
- var y2 = range$7(y02, y12 - epsilon$3, dy).concat(y12);
331651
+ var y2 = range$6(y02, y12 - epsilon$3, dy).concat(y12);
331495
331652
  return function(x2) {
331496
331653
  return y2.map(function(y3) {
331497
331654
  return [x2, y3];
@@ -331499,7 +331656,7 @@ function graticuleX(y02, y12, dy) {
331499
331656
  };
331500
331657
  }
331501
331658
  function graticuleY(x02, x12, dx) {
331502
- var x2 = range$7(x02, x12 - epsilon$3, dx).concat(x12);
331659
+ var x2 = range$6(x02, x12 - epsilon$3, dx).concat(x12);
331503
331660
  return function(y2) {
331504
331661
  return x2.map(function(x3) {
331505
331662
  return [x3, y2];
@@ -331512,9 +331669,9 @@ function graticule() {
331512
331669
  return { type: "MultiLineString", coordinates: lines() };
331513
331670
  }
331514
331671
  function lines() {
331515
- return range$7(ceil(X02 / DX) * DX, X12, DX).map(X3).concat(range$7(ceil(Y02 / DY) * DY, Y12, DY).map(Y3)).concat(range$7(ceil(x02 / dx) * dx, x12, dx).filter(function(x3) {
331672
+ return range$6(ceil(X02 / DX) * DX, X12, DX).map(X3).concat(range$6(ceil(Y02 / DY) * DY, Y12, DY).map(Y3)).concat(range$6(ceil(x02 / dx) * dx, x12, dx).filter(function(x3) {
331516
331673
  return abs$1(x3 % DX) > epsilon$3;
331517
- }).map(x2)).concat(range$7(ceil(y02 / dy) * dy, y12, dy).filter(function(y3) {
331674
+ }).map(x2)).concat(range$6(ceil(y02 / dy) * dy, y12, dy).filter(function(y3) {
331518
331675
  return abs$1(y3 % DY) > epsilon$3;
331519
331676
  }).map(y2));
331520
331677
  }
@@ -332789,7 +332946,7 @@ function within(p, q, r3) {
332789
332946
  function quantize$1(k, nice2, zero2) {
332790
332947
  return function(values3) {
332791
332948
  var ex = extent(values3), start2 = zero2 ? Math.min(ex[0], 0) : ex[0], stop3 = ex[1], span2 = stop3 - start2, step = nice2 ? tickStep(start2, stop3, k) : span2 / (k + 1);
332792
- return range$7(start2 + step, stop3, step);
332949
+ return range$6(start2 + step, stop3, step);
332793
332950
  };
332794
332951
  }
332795
332952
  function Isocontour(params2) {
@@ -338729,7 +338886,7 @@ function SortedIndex() {
338729
338886
  array2 = value2;
338730
338887
  n3 = size2;
338731
338888
  }
338732
- return [bisectLeft$1(array2, range2[0], 0, n3), bisectRight$2(array2, range2[1], 0, n3)];
338889
+ return [bisectLeft$1(array2, range2[0], 0, n3), bisectRight$1(array2, range2[1], 0, n3)];
338733
338890
  }
338734
338891
  return {
338735
338892
  insert: insert2,
@@ -341094,7 +341251,7 @@ const functionContext = {
341094
341251
  hsl: hsl$2,
341095
341252
  luminance,
341096
341253
  contrast,
341097
- sequence: range$7,
341254
+ sequence: range$6,
341098
341255
  format: format$1,
341099
341256
  utcFormat,
341100
341257
  utcParse,
@@ -368378,7 +368535,7 @@ function FeatureBarPlot(props) {
368378
368535
  const xTitle = `${capitalize$3(obsType)}`;
368379
368536
  const autoMarginBottom = marginBottom || 30 + Math.sqrt(maxCharactersForLabel / 2) * 30;
368380
368537
  const foregroundColor = theme === "dark" ? "lightgray" : "black";
368381
- data2.sort((a2, b2) => ascending$9(a2[FEATURE_KEY], b2[FEATURE_KEY]));
368538
+ data2.sort((a2, b2) => ascending$8(a2[FEATURE_KEY], b2[FEATURE_KEY]));
368382
368539
  const svg2 = select$1(domElement);
368383
368540
  svg2.selectAll("g").remove();
368384
368541
  svg2.attr("width", width2).attr("height", height2);
@@ -370009,7 +370166,7 @@ class ClustersJsonAsObsFeatureMatrixLoader extends JsonLoader {
370009
370166
  const normalize2 = (d) => Math.floor((d - min2) / (max2 - min2) * 255);
370010
370167
  return col.map(normalize2);
370011
370168
  });
370012
- const tNormalizedMatrix = range$c(shape2[0]).map((i2) => range$c(shape2[1]).map((j) => normalizedMatrix[j][i2]));
370169
+ const tNormalizedMatrix = range$b(shape2[0]).map((i2) => range$b(shape2[1]).map((j) => normalizedMatrix[j][i2]));
370013
370170
  const normalizedFlatMatrix = tNormalizedMatrix.flat();
370014
370171
  const obsFeatureMatrix = { data: Uint8Array.from(normalizedFlatMatrix) };
370015
370172
  this.cachedResult = { obsIndex, featureIndex, obsFeatureMatrix };
@@ -370060,12 +370217,12 @@ class MoleculesJsonAsObsLabelsLoader extends JsonLoader {
370060
370217
  if (this.cachedResult) {
370061
370218
  return this.cachedResult;
370062
370219
  }
370063
- const obsIndex = range$c(sum$8(Object.values(data2).map((v) => v.length))).map((i2) => String(i2));
370220
+ const obsIndex = range$b(sum$8(Object.values(data2).map((v) => v.length))).map((i2) => String(i2));
370064
370221
  let obsLabels = [];
370065
370222
  Object.entries(data2).forEach(([gene, locations]) => {
370066
370223
  obsLabels = [
370067
370224
  ...obsLabels,
370068
- ...range$c(locations.length).map(() => gene)
370225
+ ...range$b(locations.length).map(() => gene)
370069
370226
  ];
370070
370227
  });
370071
370228
  this.cachedResult = { obsIndex, obsLabels };
@@ -370088,7 +370245,7 @@ class MoleculesJsonAsObsLocationsLoader extends JsonLoader {
370088
370245
  return this.cachedResult;
370089
370246
  }
370090
370247
  const moleculesValues = Object.values(data2);
370091
- const obsIndex = range$c(sum$8(moleculesValues.map((v) => v.length))).map((i2) => String(i2));
370248
+ const obsIndex = range$b(sum$8(moleculesValues.map((v) => v.length))).map((i2) => String(i2));
370092
370249
  const obsLocationsX = new Float32Array(obsIndex.length);
370093
370250
  const obsLocationsY = new Float32Array(obsIndex.length);
370094
370251
  let startAt = 0;