@vitessce/heatmap 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as React from "react";
2
- import React__default, { Children, isValidElement, cloneElement, useRef, useEffect, useLayoutEffect, createElement, forwardRef, useState, useMemo, useImperativeHandle, useReducer, useCallback } from "react";
2
+ import React__default, { Children, isValidElement, cloneElement, useRef, useEffect, useLayoutEffect, createElement, forwardRef, useState, useMemo, useImperativeHandle, useReducer, useCallback, useId } from "react";
3
3
  import { useVitessceContainer, useComponentHover, useComponentViewInfo, usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useMultiObsLabels, useFeatureLabelsData, useObsFeatureMatrixData, useObsSetsData, useReady, useUrls, useUint8ObsFeatureMatrix, useGetObsInfo, useGetObsMembership, TitleInfo } from "@vitessce/vit-s";
4
4
  import * as ReactDOM from "react-dom";
5
5
  function _mergeNamespaces(n2, m) {
@@ -787,9 +787,9 @@ var reactJsxRuntime_development = {};
787
787
  }
788
788
  if (isArray2(node)) {
789
789
  for (var i2 = 0; i2 < node.length; i2++) {
790
- var child2 = node[i2];
791
- if (isValidElement2(child2)) {
792
- validateExplicitKey(child2, parentType);
790
+ var child = node[i2];
791
+ if (isValidElement2(child)) {
792
+ validateExplicitKey(child, parentType);
793
793
  }
794
794
  }
795
795
  } else if (isValidElement2(node)) {
@@ -939,332 +939,363 @@ var reactJsxRuntime_development = {};
939
939
  jsxRuntime.exports = reactJsxRuntime_development;
940
940
  }
941
941
  var jsxRuntimeExports = jsxRuntime.exports;
942
- var irregularPlurals$1 = { exports: {} };
943
- const addendum = "addenda";
944
- const aircraft = "aircraft";
945
- const alga = "algae";
946
- const alumna = "alumnae";
947
- const alumnus = "alumni";
948
- const amoeba = "amoebae";
949
- const analysis = "analyses";
950
- const antenna = "antennae";
951
- const antithesis = "antitheses";
952
- const apex = "apices";
953
- const appendix = "appendices";
954
- const automaton = "automata";
955
- const axis$1 = "axes";
956
- const bacillus = "bacilli";
957
- const bacterium = "bacteria";
958
- const barracks = "barracks";
959
- const basis$1 = "bases";
960
- const beau = "beaux";
961
- const bison = "bison";
962
- const buffalo = "buffalo";
963
- const bureau = "bureaus";
964
- const cactus = "cacti";
965
- const calf = "calves";
966
- const carp = "carp";
967
- const census = "censuses";
968
- const chassis = "chassis";
969
- const cherub = "cherubim";
970
- const child = "children";
971
- const cod = "cod";
972
- const codex = "codices";
973
- const concerto = "concerti";
974
- const corpus = "corpora";
975
- const crisis = "crises";
976
- const criterion = "criteria";
977
- const curriculum = "curricula";
978
- const datum$1 = "data";
979
- const deer = "deer";
980
- const diagnosis = "diagnoses";
981
- const die = "dice";
982
- const dwarf = "dwarfs";
983
- const echo = "echoes";
984
- const elf = "elves";
985
- const elk = "elk";
986
- const ellipsis = "ellipses";
987
- const embargo = "embargoes";
988
- const emphasis = "emphases";
989
- const erratum = "errata";
990
- const fez = "fezes";
991
- const firmware = "firmware";
992
- const fish = "fish";
993
- const focus = "foci";
994
- const foot = "feet";
995
- const formula = "formulae";
996
- const fungus = "fungi";
997
- const gallows = "gallows";
998
- const genus = "genera";
999
- const goose = "geese";
1000
- const graffito = "graffiti";
1001
- const grouse = "grouse";
1002
- const half = "halves";
1003
- const hero = "heroes";
1004
- const hoof = "hooves";
1005
- const hovercraft = "hovercraft";
1006
- const hypothesis = "hypotheses";
1007
- const index$1 = "indices";
1008
- const kakapo = "kakapo";
1009
- const knife = "knives";
1010
- const larva = "larvae";
1011
- const leaf = "leaves";
1012
- const libretto = "libretti";
1013
- const life = "lives";
1014
- const loaf = "loaves";
1015
- const locus = "loci";
1016
- const louse = "lice";
1017
- const man = "men";
1018
- const matrix = "matrices";
1019
- const means = "means";
1020
- const medium = "media";
1021
- const media = "media";
1022
- const memorandum = "memoranda";
1023
- const millennium = "millennia";
1024
- const minutia = "minutiae";
1025
- const moose = "moose";
1026
- const mouse = "mice";
1027
- const nebula$1 = "nebulae";
1028
- const nemesis = "nemeses";
1029
- const neurosis = "neuroses";
1030
- const news = "news";
1031
- const nucleus = "nuclei";
1032
- const oasis = "oases";
1033
- const offspring = "offspring";
1034
- const opus = "opera";
1035
- const ovum = "ova";
1036
- const ox = "oxen";
1037
- const paralysis = "paralyses";
1038
- const parenthesis = "parentheses";
1039
- const person = "people";
1040
- const phenomenon = "phenomena";
1041
- const phylum = "phyla";
1042
- const pike = "pike";
1043
- const polyhedron = "polyhedra";
1044
- const potato = "potatoes";
1045
- const prognosis = "prognoses";
1046
- const quiz = "quizzes";
1047
- const radius = "radii";
1048
- const referendum = "referenda";
1049
- const salmon = "salmon";
1050
- const scarf = "scarves";
1051
- const self$1 = "selves";
1052
- const series = "series";
1053
- const sheep = "sheep";
1054
- const shelf = "shelves";
1055
- const shrimp = "shrimp";
1056
- const soliloquy = "soliloquies";
1057
- const spacecraft = "spacecraft";
1058
- const species = "species";
1059
- const spectrum = "spectra";
1060
- const squid = "squid";
1061
- const stimulus = "stimuli";
1062
- const stratum = "strata";
1063
- const swine = "swine";
1064
- const syllabus = "syllabi";
1065
- const symposium = "symposia";
1066
- const synopsis = "synopses";
1067
- const synthesis = "syntheses";
1068
- const tableau = "tableaus";
1069
- const that = "those";
1070
- const thesis = "theses";
1071
- const thief = "thieves";
1072
- const tomato = "tomatoes";
1073
- const tooth = "teeth";
1074
- const trout = "trout";
1075
- const tuna = "tuna";
1076
- const vertebra = "vertebrae";
1077
- const vertex = "vertices";
1078
- const veto = "vetoes";
1079
- const vita = "vitae";
1080
- const vortex = "vortices";
1081
- const watercraft = "watercraft";
1082
- const wharf = "wharves";
1083
- const wife = "wives";
1084
- const wolf = "wolves";
1085
- const woman = "women";
1086
- const require$$0$7 = {
1087
- addendum,
1088
- aircraft,
1089
- alga,
1090
- alumna,
1091
- alumnus,
1092
- amoeba,
1093
- analysis,
1094
- antenna,
1095
- antithesis,
1096
- apex,
1097
- appendix,
1098
- automaton,
1099
- axis: axis$1,
1100
- bacillus,
1101
- bacterium,
1102
- barracks,
1103
- basis: basis$1,
1104
- beau,
1105
- bison,
1106
- buffalo,
1107
- bureau,
1108
- cactus,
1109
- calf,
1110
- carp,
1111
- census,
1112
- chassis,
1113
- cherub,
1114
- child,
1115
- "château": "châteaus",
1116
- cod,
1117
- codex,
1118
- concerto,
1119
- corpus,
1120
- crisis,
1121
- criterion,
1122
- curriculum,
1123
- datum: datum$1,
1124
- deer,
1125
- diagnosis,
1126
- die,
1127
- dwarf,
1128
- echo,
1129
- elf,
1130
- elk,
1131
- ellipsis,
1132
- embargo,
1133
- emphasis,
1134
- erratum,
1135
- "faux pas": "faux pas",
1136
- fez,
1137
- firmware,
1138
- fish,
1139
- focus,
1140
- foot,
1141
- formula,
1142
- fungus,
1143
- gallows,
1144
- genus,
1145
- goose,
1146
- graffito,
1147
- grouse,
1148
- half,
1149
- hero,
1150
- hoof,
1151
- hovercraft,
1152
- hypothesis,
1153
- index: index$1,
1154
- kakapo,
1155
- knife,
1156
- larva,
1157
- leaf,
1158
- libretto,
1159
- life,
1160
- loaf,
1161
- locus,
1162
- louse,
1163
- man,
1164
- matrix,
1165
- means,
1166
- medium,
1167
- media,
1168
- memorandum,
1169
- millennium,
1170
- minutia,
1171
- moose,
1172
- mouse,
1173
- nebula: nebula$1,
1174
- nemesis,
1175
- neurosis,
1176
- news,
1177
- nucleus,
1178
- oasis,
1179
- offspring,
1180
- opus,
1181
- ovum,
1182
- ox,
1183
- paralysis,
1184
- parenthesis,
1185
- person,
1186
- phenomenon,
1187
- phylum,
1188
- pike,
1189
- polyhedron,
1190
- potato,
1191
- prognosis,
1192
- quiz,
1193
- radius,
1194
- referendum,
1195
- salmon,
1196
- scarf,
1197
- self: self$1,
1198
- series,
1199
- sheep,
1200
- shelf,
1201
- shrimp,
1202
- soliloquy,
1203
- spacecraft,
1204
- species,
1205
- spectrum,
1206
- squid,
1207
- stimulus,
1208
- stratum,
1209
- swine,
1210
- syllabus,
1211
- symposium,
1212
- synopsis,
1213
- synthesis,
1214
- tableau,
1215
- that,
1216
- thesis,
1217
- thief,
1218
- "this": "these",
1219
- tomato,
1220
- tooth,
1221
- trout,
1222
- tuna,
1223
- vertebra,
1224
- vertex,
1225
- veto,
1226
- vita,
1227
- vortex,
1228
- watercraft,
1229
- wharf,
1230
- wife,
1231
- wolf,
1232
- woman
1233
- };
1234
- irregularPlurals$1.exports;
1235
- (function(module2) {
1236
- const irregularPlurals2 = require$$0$7;
1237
- Object.defineProperty(module2, "exports", {
1238
- get() {
1239
- return new Map(Object.entries(irregularPlurals2));
942
+ function commonjsRequire(path) {
943
+ throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
944
+ }
945
+ var pluralize$1 = { exports: {} };
946
+ (function(module2, exports2) {
947
+ (function(root2, pluralize2) {
948
+ if (typeof commonjsRequire === "function" && true && true) {
949
+ module2.exports = pluralize2();
950
+ } else {
951
+ root2.pluralize = pluralize2();
1240
952
  }
1241
- });
1242
- })(irregularPlurals$1);
1243
- var irregularPluralsExports = irregularPlurals$1.exports;
1244
- const irregularPlurals = /* @__PURE__ */ getDefaultExportFromCjs(irregularPluralsExports);
1245
- function plur(word, plural, count2) {
1246
- if (typeof plural === "number") {
1247
- count2 = plural;
1248
- }
1249
- if (irregularPlurals.has(word.toLowerCase())) {
1250
- plural = irregularPlurals.get(word.toLowerCase());
1251
- const firstLetter = word.charAt(0);
1252
- const isFirstLetterUpperCase = firstLetter === firstLetter.toUpperCase();
1253
- if (isFirstLetterUpperCase) {
1254
- plural = firstLetter + plural.slice(1);
953
+ })(commonjsGlobal, function() {
954
+ var pluralRules = [];
955
+ var singularRules = [];
956
+ var uncountables = {};
957
+ var irregularPlurals = {};
958
+ var irregularSingles = {};
959
+ function sanitizeRule(rule) {
960
+ if (typeof rule === "string") {
961
+ return new RegExp("^" + rule + "$", "i");
962
+ }
963
+ return rule;
1255
964
  }
1256
- const isWholeWordUpperCase = word === word.toUpperCase();
1257
- if (isWholeWordUpperCase) {
1258
- plural = plural.toUpperCase();
965
+ function restoreCase(word, token) {
966
+ if (word === token)
967
+ return token;
968
+ if (word === word.toLowerCase())
969
+ return token.toLowerCase();
970
+ if (word === word.toUpperCase())
971
+ return token.toUpperCase();
972
+ if (word[0] === word[0].toUpperCase()) {
973
+ return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();
974
+ }
975
+ return token.toLowerCase();
976
+ }
977
+ function interpolate2(str, args) {
978
+ return str.replace(/\$(\d{1,2})/g, function(match, index2) {
979
+ return args[index2] || "";
980
+ });
1259
981
  }
1260
- } else if (typeof plural !== "string") {
1261
- plural = (word.replace(/(?:s|x|z|ch|sh)$/i, "$&e").replace(/([^aeiou])y$/i, "$1ie") + "s").replace(/i?e?s$/i, (match) => {
1262
- const isTailLowerCase = word.slice(-1) === word.slice(-1).toLowerCase();
1263
- return isTailLowerCase ? match.toLowerCase() : match.toUpperCase();
1264
- });
1265
- }
1266
- return Math.abs(count2) === 1 ? word : plural;
1267
- }
982
+ function replace(word, rule) {
983
+ return word.replace(rule[0], function(match, index2) {
984
+ var result = interpolate2(rule[1], arguments);
985
+ if (match === "") {
986
+ return restoreCase(word[index2 - 1], result);
987
+ }
988
+ return restoreCase(match, result);
989
+ });
990
+ }
991
+ function sanitizeWord(token, word, rules) {
992
+ if (!token.length || uncountables.hasOwnProperty(token)) {
993
+ return word;
994
+ }
995
+ var len2 = rules.length;
996
+ while (len2--) {
997
+ var rule = rules[len2];
998
+ if (rule[0].test(word))
999
+ return replace(word, rule);
1000
+ }
1001
+ return word;
1002
+ }
1003
+ function replaceWord(replaceMap, keepMap, rules) {
1004
+ return function(word) {
1005
+ var token = word.toLowerCase();
1006
+ if (keepMap.hasOwnProperty(token)) {
1007
+ return restoreCase(word, token);
1008
+ }
1009
+ if (replaceMap.hasOwnProperty(token)) {
1010
+ return restoreCase(word, replaceMap[token]);
1011
+ }
1012
+ return sanitizeWord(token, word, rules);
1013
+ };
1014
+ }
1015
+ function checkWord(replaceMap, keepMap, rules, bool) {
1016
+ return function(word) {
1017
+ var token = word.toLowerCase();
1018
+ if (keepMap.hasOwnProperty(token))
1019
+ return true;
1020
+ if (replaceMap.hasOwnProperty(token))
1021
+ return false;
1022
+ return sanitizeWord(token, token, rules) === token;
1023
+ };
1024
+ }
1025
+ function pluralize2(word, count2, inclusive) {
1026
+ var pluralized = count2 === 1 ? pluralize2.singular(word) : pluralize2.plural(word);
1027
+ return (inclusive ? count2 + " " : "") + pluralized;
1028
+ }
1029
+ pluralize2.plural = replaceWord(
1030
+ irregularSingles,
1031
+ irregularPlurals,
1032
+ pluralRules
1033
+ );
1034
+ pluralize2.isPlural = checkWord(
1035
+ irregularSingles,
1036
+ irregularPlurals,
1037
+ pluralRules
1038
+ );
1039
+ pluralize2.singular = replaceWord(
1040
+ irregularPlurals,
1041
+ irregularSingles,
1042
+ singularRules
1043
+ );
1044
+ pluralize2.isSingular = checkWord(
1045
+ irregularPlurals,
1046
+ irregularSingles,
1047
+ singularRules
1048
+ );
1049
+ pluralize2.addPluralRule = function(rule, replacement) {
1050
+ pluralRules.push([sanitizeRule(rule), replacement]);
1051
+ };
1052
+ pluralize2.addSingularRule = function(rule, replacement) {
1053
+ singularRules.push([sanitizeRule(rule), replacement]);
1054
+ };
1055
+ pluralize2.addUncountableRule = function(word) {
1056
+ if (typeof word === "string") {
1057
+ uncountables[word.toLowerCase()] = true;
1058
+ return;
1059
+ }
1060
+ pluralize2.addPluralRule(word, "$0");
1061
+ pluralize2.addSingularRule(word, "$0");
1062
+ };
1063
+ pluralize2.addIrregularRule = function(single, plural) {
1064
+ plural = plural.toLowerCase();
1065
+ single = single.toLowerCase();
1066
+ irregularSingles[single] = plural;
1067
+ irregularPlurals[plural] = single;
1068
+ };
1069
+ [
1070
+ // Pronouns.
1071
+ ["I", "we"],
1072
+ ["me", "us"],
1073
+ ["he", "they"],
1074
+ ["she", "they"],
1075
+ ["them", "them"],
1076
+ ["myself", "ourselves"],
1077
+ ["yourself", "yourselves"],
1078
+ ["itself", "themselves"],
1079
+ ["herself", "themselves"],
1080
+ ["himself", "themselves"],
1081
+ ["themself", "themselves"],
1082
+ ["is", "are"],
1083
+ ["was", "were"],
1084
+ ["has", "have"],
1085
+ ["this", "these"],
1086
+ ["that", "those"],
1087
+ // Words ending in with a consonant and `o`.
1088
+ ["echo", "echoes"],
1089
+ ["dingo", "dingoes"],
1090
+ ["volcano", "volcanoes"],
1091
+ ["tornado", "tornadoes"],
1092
+ ["torpedo", "torpedoes"],
1093
+ // Ends with `us`.
1094
+ ["genus", "genera"],
1095
+ ["viscus", "viscera"],
1096
+ // Ends with `ma`.
1097
+ ["stigma", "stigmata"],
1098
+ ["stoma", "stomata"],
1099
+ ["dogma", "dogmata"],
1100
+ ["lemma", "lemmata"],
1101
+ ["schema", "schemata"],
1102
+ ["anathema", "anathemata"],
1103
+ // Other irregular rules.
1104
+ ["ox", "oxen"],
1105
+ ["axe", "axes"],
1106
+ ["die", "dice"],
1107
+ ["yes", "yeses"],
1108
+ ["foot", "feet"],
1109
+ ["eave", "eaves"],
1110
+ ["goose", "geese"],
1111
+ ["tooth", "teeth"],
1112
+ ["quiz", "quizzes"],
1113
+ ["human", "humans"],
1114
+ ["proof", "proofs"],
1115
+ ["carve", "carves"],
1116
+ ["valve", "valves"],
1117
+ ["looey", "looies"],
1118
+ ["thief", "thieves"],
1119
+ ["groove", "grooves"],
1120
+ ["pickaxe", "pickaxes"],
1121
+ ["passerby", "passersby"]
1122
+ ].forEach(function(rule) {
1123
+ return pluralize2.addIrregularRule(rule[0], rule[1]);
1124
+ });
1125
+ [
1126
+ [/s?$/i, "s"],
1127
+ [/[^\u0000-\u007F]$/i, "$0"],
1128
+ [/([^aeiou]ese)$/i, "$1"],
1129
+ [/(ax|test)is$/i, "$1es"],
1130
+ [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, "$1es"],
1131
+ [/(e[mn]u)s?$/i, "$1s"],
1132
+ [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, "$1"],
1133
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1i"],
1134
+ [/(alumn|alg|vertebr)(?:a|ae)$/i, "$1ae"],
1135
+ [/(seraph|cherub)(?:im)?$/i, "$1im"],
1136
+ [/(her|at|gr)o$/i, "$1oes"],
1137
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, "$1a"],
1138
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, "$1a"],
1139
+ [/sis$/i, "ses"],
1140
+ [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, "$1$2ves"],
1141
+ [/([^aeiouy]|qu)y$/i, "$1ies"],
1142
+ [/([^ch][ieo][ln])ey$/i, "$1ies"],
1143
+ [/(x|ch|ss|sh|zz)$/i, "$1es"],
1144
+ [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, "$1ices"],
1145
+ [/\b((?:tit)?m|l)(?:ice|ouse)$/i, "$1ice"],
1146
+ [/(pe)(?:rson|ople)$/i, "$1ople"],
1147
+ [/(child)(?:ren)?$/i, "$1ren"],
1148
+ [/eaux$/i, "$0"],
1149
+ [/m[ae]n$/i, "men"],
1150
+ ["thou", "you"]
1151
+ ].forEach(function(rule) {
1152
+ return pluralize2.addPluralRule(rule[0], rule[1]);
1153
+ });
1154
+ [
1155
+ [/s$/i, ""],
1156
+ [/(ss)$/i, "$1"],
1157
+ [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i, "$1fe"],
1158
+ [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, "$1f"],
1159
+ [/ies$/i, "y"],
1160
+ [/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, "$1ie"],
1161
+ [/\b(mon|smil)ies$/i, "$1ey"],
1162
+ [/\b((?:tit)?m|l)ice$/i, "$1ouse"],
1163
+ [/(seraph|cherub)im$/i, "$1"],
1164
+ [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, "$1"],
1165
+ [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, "$1sis"],
1166
+ [/(movie|twelve|abuse|e[mn]u)s$/i, "$1"],
1167
+ [/(test)(?:is|es)$/i, "$1is"],
1168
+ [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, "$1us"],
1169
+ [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, "$1um"],
1170
+ [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, "$1on"],
1171
+ [/(alumn|alg|vertebr)ae$/i, "$1a"],
1172
+ [/(cod|mur|sil|vert|ind)ices$/i, "$1ex"],
1173
+ [/(matr|append)ices$/i, "$1ix"],
1174
+ [/(pe)(rson|ople)$/i, "$1rson"],
1175
+ [/(child)ren$/i, "$1"],
1176
+ [/(eau)x?$/i, "$1"],
1177
+ [/men$/i, "man"]
1178
+ ].forEach(function(rule) {
1179
+ return pluralize2.addSingularRule(rule[0], rule[1]);
1180
+ });
1181
+ [
1182
+ // Singular words with no plurals.
1183
+ "adulthood",
1184
+ "advice",
1185
+ "agenda",
1186
+ "aid",
1187
+ "aircraft",
1188
+ "alcohol",
1189
+ "ammo",
1190
+ "analytics",
1191
+ "anime",
1192
+ "athletics",
1193
+ "audio",
1194
+ "bison",
1195
+ "blood",
1196
+ "bream",
1197
+ "buffalo",
1198
+ "butter",
1199
+ "carp",
1200
+ "cash",
1201
+ "chassis",
1202
+ "chess",
1203
+ "clothing",
1204
+ "cod",
1205
+ "commerce",
1206
+ "cooperation",
1207
+ "corps",
1208
+ "debris",
1209
+ "diabetes",
1210
+ "digestion",
1211
+ "elk",
1212
+ "energy",
1213
+ "equipment",
1214
+ "excretion",
1215
+ "expertise",
1216
+ "firmware",
1217
+ "flounder",
1218
+ "fun",
1219
+ "gallows",
1220
+ "garbage",
1221
+ "graffiti",
1222
+ "hardware",
1223
+ "headquarters",
1224
+ "health",
1225
+ "herpes",
1226
+ "highjinks",
1227
+ "homework",
1228
+ "housework",
1229
+ "information",
1230
+ "jeans",
1231
+ "justice",
1232
+ "kudos",
1233
+ "labour",
1234
+ "literature",
1235
+ "machinery",
1236
+ "mackerel",
1237
+ "mail",
1238
+ "media",
1239
+ "mews",
1240
+ "moose",
1241
+ "music",
1242
+ "mud",
1243
+ "manga",
1244
+ "news",
1245
+ "only",
1246
+ "personnel",
1247
+ "pike",
1248
+ "plankton",
1249
+ "pliers",
1250
+ "police",
1251
+ "pollution",
1252
+ "premises",
1253
+ "rain",
1254
+ "research",
1255
+ "rice",
1256
+ "salmon",
1257
+ "scissors",
1258
+ "series",
1259
+ "sewage",
1260
+ "shambles",
1261
+ "shrimp",
1262
+ "software",
1263
+ "species",
1264
+ "staff",
1265
+ "swine",
1266
+ "tennis",
1267
+ "traffic",
1268
+ "transportation",
1269
+ "trout",
1270
+ "tuna",
1271
+ "wealth",
1272
+ "welfare",
1273
+ "whiting",
1274
+ "wildebeest",
1275
+ "wildlife",
1276
+ "you",
1277
+ /pok[eé]mon$/i,
1278
+ // Regexes.
1279
+ /[^aeiou]ese$/i,
1280
+ // "chinese", "japanese"
1281
+ /deer$/i,
1282
+ // "deer", "reindeer"
1283
+ /fish$/i,
1284
+ // "fish", "blowfish", "angelfish"
1285
+ /measles$/i,
1286
+ /o[iu]s$/i,
1287
+ // "carnivorous"
1288
+ /pox$/i,
1289
+ // "chickpox", "smallpox"
1290
+ /sheep$/i
1291
+ ].forEach(pluralize2.addUncountableRule);
1292
+ return pluralize2;
1293
+ });
1294
+ })(pluralize$1);
1295
+ var pluralizeExports = pluralize$1.exports;
1296
+ const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
1297
+ plur.addPluralRule("glomerulus", "glomeruli");
1298
+ plur.addPluralRule("interstitium", "interstitia");
1268
1299
  function fromEntries(iterable) {
1269
1300
  return [...iterable].reduce((obj, { 0: key, 1: val }) => Object.assign(obj, { [key]: val }), {});
1270
1301
  }
@@ -1275,6 +1306,9 @@ function commaNumber(n2) {
1275
1306
  function capitalize$1(word) {
1276
1307
  return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
1277
1308
  }
1309
+ function pluralize(word, count2 = null) {
1310
+ return plur(word, count2);
1311
+ }
1278
1312
  function getLongestString(strings2) {
1279
1313
  return strings2.reduce((prevLongest, currentValue) => prevLongest.length > currentValue.length ? prevLongest : currentValue);
1280
1314
  }
@@ -4051,12 +4085,12 @@ function findCandidate(tree, a2, b, c, d, maxDist, segTree) {
4051
4085
  var node = tree.data;
4052
4086
  while (node) {
4053
4087
  for (var i2 = 0; i2 < node.children.length; i2++) {
4054
- var child2 = node.children[i2];
4055
- var dist = node.leaf ? sqSegDist(child2, b, c) : sqSegBoxDist(b, c, child2);
4088
+ var child = node.children[i2];
4089
+ var dist = node.leaf ? sqSegDist(child, b, c) : sqSegBoxDist(b, c, child);
4056
4090
  if (dist > maxDist)
4057
4091
  continue;
4058
4092
  queue.push({
4059
- node: child2,
4093
+ node: child,
4060
4094
  dist
4061
4095
  });
4062
4096
  }
@@ -8005,7 +8039,7 @@ function nodeTransform(node, predicate, transform2, transformedPaths, currPath =
8005
8039
  if ("children" in node) {
8006
8040
  return {
8007
8041
  ...node,
8008
- children: node.children.map((child2) => nodeTransform(child2, predicate, transform2, transformedPaths, newPath.concat([child2.name])))
8042
+ children: node.children.map((child) => nodeTransform(child, predicate, transform2, transformedPaths, newPath.concat([child.name])))
8009
8043
  };
8010
8044
  }
8011
8045
  return node;
@@ -12534,7 +12568,7 @@ function nodeFindNodeByNamePath(node, path, currLevelIndex) {
12534
12568
  return node;
12535
12569
  }
12536
12570
  if (node.children) {
12537
- const foundNodes = node.children.map((child2) => nodeFindNodeByNamePath(child2, path, currLevelIndex + 1)).filter(Boolean);
12571
+ const foundNodes = node.children.map((child) => nodeFindNodeByNamePath(child, path, currLevelIndex + 1)).filter(Boolean);
12538
12572
  if (foundNodes.length === 1) {
12539
12573
  return foundNodes[0];
12540
12574
  }
@@ -12643,10 +12677,10 @@ var json2csv_umd = { exports: {} };
12643
12677
  this._maxListeners = n2;
12644
12678
  return this;
12645
12679
  };
12646
- function $getMaxListeners(that2) {
12647
- if (that2._maxListeners === void 0)
12680
+ function $getMaxListeners(that) {
12681
+ if (that._maxListeners === void 0)
12648
12682
  return EventEmitter2.defaultMaxListeners;
12649
- return that2._maxListeners;
12683
+ return that._maxListeners;
12650
12684
  }
12651
12685
  EventEmitter2.prototype.getMaxListeners = function getMaxListeners2() {
12652
12686
  return $getMaxListeners(this);
@@ -13150,20 +13184,20 @@ var json2csv_umd = { exports: {} };
13150
13184
  function kMaxLength() {
13151
13185
  return Buffer3.TYPED_ARRAY_SUPPORT ? 2147483647 : 1073741823;
13152
13186
  }
13153
- function createBuffer(that2, length2) {
13187
+ function createBuffer(that, length2) {
13154
13188
  if (kMaxLength() < length2) {
13155
13189
  throw new RangeError("Invalid typed array length");
13156
13190
  }
13157
13191
  if (Buffer3.TYPED_ARRAY_SUPPORT) {
13158
- that2 = new Uint8Array(length2);
13159
- that2.__proto__ = Buffer3.prototype;
13192
+ that = new Uint8Array(length2);
13193
+ that.__proto__ = Buffer3.prototype;
13160
13194
  } else {
13161
- if (that2 === null) {
13162
- that2 = new Buffer3(length2);
13195
+ if (that === null) {
13196
+ that = new Buffer3(length2);
13163
13197
  }
13164
- that2.length = length2;
13198
+ that.length = length2;
13165
13199
  }
13166
- return that2;
13200
+ return that;
13167
13201
  }
13168
13202
  function Buffer3(arg, encodingOrOffset, length2) {
13169
13203
  if (!Buffer3.TYPED_ARRAY_SUPPORT && !(this instanceof Buffer3)) {
@@ -13184,17 +13218,17 @@ var json2csv_umd = { exports: {} };
13184
13218
  arr.__proto__ = Buffer3.prototype;
13185
13219
  return arr;
13186
13220
  };
13187
- function from(that2, value, encodingOrOffset, length2) {
13221
+ function from(that, value, encodingOrOffset, length2) {
13188
13222
  if (typeof value === "number") {
13189
13223
  throw new TypeError('"value" argument must not be a number');
13190
13224
  }
13191
13225
  if (typeof ArrayBuffer !== "undefined" && value instanceof ArrayBuffer) {
13192
- return fromArrayBuffer(that2, value, encodingOrOffset, length2);
13226
+ return fromArrayBuffer(that, value, encodingOrOffset, length2);
13193
13227
  }
13194
13228
  if (typeof value === "string") {
13195
- return fromString(that2, value, encodingOrOffset);
13229
+ return fromString(that, value, encodingOrOffset);
13196
13230
  }
13197
- return fromObject(that2, value);
13231
+ return fromObject(that, value);
13198
13232
  }
13199
13233
  Buffer3.from = function(value, encodingOrOffset, length2) {
13200
13234
  return from(null, value, encodingOrOffset, length2);
@@ -13210,28 +13244,28 @@ var json2csv_umd = { exports: {} };
13210
13244
  throw new RangeError('"size" argument must not be negative');
13211
13245
  }
13212
13246
  }
13213
- function alloc(that2, size, fill, encoding) {
13247
+ function alloc(that, size, fill, encoding) {
13214
13248
  assertSize(size);
13215
13249
  if (size <= 0) {
13216
- return createBuffer(that2, size);
13250
+ return createBuffer(that, size);
13217
13251
  }
13218
13252
  if (fill !== void 0) {
13219
- return typeof encoding === "string" ? createBuffer(that2, size).fill(fill, encoding) : createBuffer(that2, size).fill(fill);
13253
+ return typeof encoding === "string" ? createBuffer(that, size).fill(fill, encoding) : createBuffer(that, size).fill(fill);
13220
13254
  }
13221
- return createBuffer(that2, size);
13255
+ return createBuffer(that, size);
13222
13256
  }
13223
13257
  Buffer3.alloc = function(size, fill, encoding) {
13224
13258
  return alloc(null, size, fill, encoding);
13225
13259
  };
13226
- function allocUnsafe2(that2, size) {
13260
+ function allocUnsafe2(that, size) {
13227
13261
  assertSize(size);
13228
- that2 = createBuffer(that2, size < 0 ? 0 : checked(size) | 0);
13262
+ that = createBuffer(that, size < 0 ? 0 : checked(size) | 0);
13229
13263
  if (!Buffer3.TYPED_ARRAY_SUPPORT) {
13230
13264
  for (var i2 = 0; i2 < size; ++i2) {
13231
- that2[i2] = 0;
13265
+ that[i2] = 0;
13232
13266
  }
13233
13267
  }
13234
- return that2;
13268
+ return that;
13235
13269
  }
13236
13270
  Buffer3.allocUnsafe = function(size) {
13237
13271
  return allocUnsafe2(null, size);
@@ -13239,7 +13273,7 @@ var json2csv_umd = { exports: {} };
13239
13273
  Buffer3.allocUnsafeSlow = function(size) {
13240
13274
  return allocUnsafe2(null, size);
13241
13275
  };
13242
- function fromString(that2, string2, encoding) {
13276
+ function fromString(that, string2, encoding) {
13243
13277
  if (typeof encoding !== "string" || encoding === "") {
13244
13278
  encoding = "utf8";
13245
13279
  }
@@ -13247,22 +13281,22 @@ var json2csv_umd = { exports: {} };
13247
13281
  throw new TypeError('"encoding" must be a valid string encoding');
13248
13282
  }
13249
13283
  var length2 = byteLength(string2, encoding) | 0;
13250
- that2 = createBuffer(that2, length2);
13251
- var actual = that2.write(string2, encoding);
13284
+ that = createBuffer(that, length2);
13285
+ var actual = that.write(string2, encoding);
13252
13286
  if (actual !== length2) {
13253
- that2 = that2.slice(0, actual);
13287
+ that = that.slice(0, actual);
13254
13288
  }
13255
- return that2;
13289
+ return that;
13256
13290
  }
13257
- function fromArrayLike(that2, array2) {
13291
+ function fromArrayLike(that, array2) {
13258
13292
  var length2 = array2.length < 0 ? 0 : checked(array2.length) | 0;
13259
- that2 = createBuffer(that2, length2);
13293
+ that = createBuffer(that, length2);
13260
13294
  for (var i2 = 0; i2 < length2; i2 += 1) {
13261
- that2[i2] = array2[i2] & 255;
13295
+ that[i2] = array2[i2] & 255;
13262
13296
  }
13263
- return that2;
13297
+ return that;
13264
13298
  }
13265
- function fromArrayBuffer(that2, array2, byteOffset, length2) {
13299
+ function fromArrayBuffer(that, array2, byteOffset, length2) {
13266
13300
  array2.byteLength;
13267
13301
  if (byteOffset < 0 || array2.byteLength < byteOffset) {
13268
13302
  throw new RangeError("'offset' is out of bounds");
@@ -13278,32 +13312,32 @@ var json2csv_umd = { exports: {} };
13278
13312
  array2 = new Uint8Array(array2, byteOffset, length2);
13279
13313
  }
13280
13314
  if (Buffer3.TYPED_ARRAY_SUPPORT) {
13281
- that2 = array2;
13282
- that2.__proto__ = Buffer3.prototype;
13315
+ that = array2;
13316
+ that.__proto__ = Buffer3.prototype;
13283
13317
  } else {
13284
- that2 = fromArrayLike(that2, array2);
13318
+ that = fromArrayLike(that, array2);
13285
13319
  }
13286
- return that2;
13320
+ return that;
13287
13321
  }
13288
- function fromObject(that2, obj) {
13322
+ function fromObject(that, obj) {
13289
13323
  if (internalIsBuffer(obj)) {
13290
13324
  var len2 = checked(obj.length) | 0;
13291
- that2 = createBuffer(that2, len2);
13292
- if (that2.length === 0) {
13293
- return that2;
13325
+ that = createBuffer(that, len2);
13326
+ if (that.length === 0) {
13327
+ return that;
13294
13328
  }
13295
- obj.copy(that2, 0, 0, len2);
13296
- return that2;
13329
+ obj.copy(that, 0, 0, len2);
13330
+ return that;
13297
13331
  }
13298
13332
  if (obj) {
13299
13333
  if (typeof ArrayBuffer !== "undefined" && obj.buffer instanceof ArrayBuffer || "length" in obj) {
13300
13334
  if (typeof obj.length !== "number" || isnan(obj.length)) {
13301
- return createBuffer(that2, 0);
13335
+ return createBuffer(that, 0);
13302
13336
  }
13303
- return fromArrayLike(that2, obj);
13337
+ return fromArrayLike(that, obj);
13304
13338
  }
13305
13339
  if (obj.type === "Buffer" && isArray2(obj.data)) {
13306
- return fromArrayLike(that2, obj.data);
13340
+ return fromArrayLike(that, obj.data);
13307
13341
  }
13308
13342
  }
13309
13343
  throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.");
@@ -20244,15 +20278,15 @@ function createTheme() {
20244
20278
  var depth = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
20245
20279
  var key;
20246
20280
  for (key in node) {
20247
- var child2 = node[key];
20281
+ var child = node[key];
20248
20282
  if (depth === 1) {
20249
- if (key.indexOf("Mui") === 0 && child2) {
20250
- traverse2(child2, key, depth + 1);
20283
+ if (key.indexOf("Mui") === 0 && child) {
20284
+ traverse2(child, key, depth + 1);
20251
20285
  }
20252
- } else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child2).length > 0) {
20286
+ } else if (pseudoClasses2.indexOf(key) !== -1 && Object.keys(child).length > 0) {
20253
20287
  {
20254
20288
  console.error(["Material-UI: The `".concat(parentKey, "` component increases ") + "the CSS specificity of the `".concat(key, "` internal state."), "You can not override it like this: ", JSON.stringify(node, null, 2), "", "Instead, you need to use the $ruleName syntax:", JSON.stringify({
20255
- root: _defineProperty$e({}, "&$".concat(key), child2)
20289
+ root: _defineProperty$e({}, "&$".concat(key), child)
20256
20290
  }, null, 2), "", "https://mui.com/r/pseudo-classes-guide"].join("\n"));
20257
20291
  }
20258
20292
  node[key] = {};
@@ -21570,11 +21604,11 @@ var DomRenderer = /* @__PURE__ */ function() {
21570
21604
  if (sheet)
21571
21605
  sheets.add(sheet);
21572
21606
  this.sheet = sheet;
21573
- var _ref = this.sheet ? this.sheet.options : {}, media2 = _ref.media, meta2 = _ref.meta, element = _ref.element;
21607
+ var _ref = this.sheet ? this.sheet.options : {}, media = _ref.media, meta2 = _ref.meta, element = _ref.element;
21574
21608
  this.element = element || createStyle();
21575
21609
  this.element.setAttribute("data-jss", "");
21576
- if (media2)
21577
- this.element.setAttribute("media", media2);
21610
+ if (media)
21611
+ this.element.setAttribute("media", media);
21578
21612
  if (meta2)
21579
21613
  this.element.setAttribute("data-meta", meta2);
21580
21614
  var nonce = getNonce();
@@ -23764,15 +23798,15 @@ function _assertThisInitialized$v(self2) {
23764
23798
  return self2;
23765
23799
  }
23766
23800
  function getChildMapping(children2, mapFn) {
23767
- var mapper = function mapper2(child2) {
23768
- return mapFn && isValidElement(child2) ? mapFn(child2) : child2;
23801
+ var mapper = function mapper2(child) {
23802
+ return mapFn && isValidElement(child) ? mapFn(child) : child;
23769
23803
  };
23770
23804
  var result = /* @__PURE__ */ Object.create(null);
23771
23805
  if (children2)
23772
23806
  Children.map(children2, function(c) {
23773
23807
  return c;
23774
- }).forEach(function(child2) {
23775
- result[child2.key] = mapper(child2);
23808
+ }).forEach(function(child) {
23809
+ result[child.key] = mapper(child);
23776
23810
  });
23777
23811
  return result;
23778
23812
  }
@@ -23810,17 +23844,17 @@ function mergeChildMappings(prev, next) {
23810
23844
  }
23811
23845
  return childMapping;
23812
23846
  }
23813
- function getProp(child2, prop, props2) {
23814
- return props2[prop] != null ? props2[prop] : child2.props[prop];
23847
+ function getProp(child, prop, props2) {
23848
+ return props2[prop] != null ? props2[prop] : child.props[prop];
23815
23849
  }
23816
23850
  function getInitialChildMapping(props2, onExited) {
23817
- return getChildMapping(props2.children, function(child2) {
23818
- return cloneElement(child2, {
23819
- onExited: onExited.bind(null, child2),
23851
+ return getChildMapping(props2.children, function(child) {
23852
+ return cloneElement(child, {
23853
+ onExited: onExited.bind(null, child),
23820
23854
  in: true,
23821
- appear: getProp(child2, "appear", props2),
23822
- enter: getProp(child2, "enter", props2),
23823
- exit: getProp(child2, "exit", props2)
23855
+ appear: getProp(child, "appear", props2),
23856
+ enter: getProp(child, "enter", props2),
23857
+ exit: getProp(child, "exit", props2)
23824
23858
  });
23825
23859
  });
23826
23860
  }
@@ -23828,30 +23862,30 @@ function getNextChildMapping(nextProps, prevChildMapping, onExited) {
23828
23862
  var nextChildMapping = getChildMapping(nextProps.children);
23829
23863
  var children2 = mergeChildMappings(prevChildMapping, nextChildMapping);
23830
23864
  Object.keys(children2).forEach(function(key) {
23831
- var child2 = children2[key];
23832
- if (!isValidElement(child2))
23865
+ var child = children2[key];
23866
+ if (!isValidElement(child))
23833
23867
  return;
23834
23868
  var hasPrev = key in prevChildMapping;
23835
23869
  var hasNext = key in nextChildMapping;
23836
23870
  var prevChild = prevChildMapping[key];
23837
23871
  var isLeaving = isValidElement(prevChild) && !prevChild.props.in;
23838
23872
  if (hasNext && (!hasPrev || isLeaving)) {
23839
- children2[key] = cloneElement(child2, {
23840
- onExited: onExited.bind(null, child2),
23873
+ children2[key] = cloneElement(child, {
23874
+ onExited: onExited.bind(null, child),
23841
23875
  in: true,
23842
- exit: getProp(child2, "exit", nextProps),
23843
- enter: getProp(child2, "enter", nextProps)
23876
+ exit: getProp(child, "exit", nextProps),
23877
+ enter: getProp(child, "enter", nextProps)
23844
23878
  });
23845
23879
  } else if (!hasNext && hasPrev && !isLeaving) {
23846
- children2[key] = cloneElement(child2, {
23880
+ children2[key] = cloneElement(child, {
23847
23881
  in: false
23848
23882
  });
23849
23883
  } else if (hasNext && hasPrev && isValidElement(prevChild)) {
23850
- children2[key] = cloneElement(child2, {
23851
- onExited: onExited.bind(null, child2),
23884
+ children2[key] = cloneElement(child, {
23885
+ onExited: onExited.bind(null, child),
23852
23886
  in: prevChild.props.in,
23853
- exit: getProp(child2, "exit", nextProps),
23854
- enter: getProp(child2, "enter", nextProps)
23887
+ exit: getProp(child, "exit", nextProps),
23888
+ enter: getProp(child, "enter", nextProps)
23855
23889
  });
23856
23890
  }
23857
23891
  });
@@ -23864,8 +23898,8 @@ var values = Object.values || function(obj) {
23864
23898
  };
23865
23899
  var defaultProps$N = {
23866
23900
  component: "div",
23867
- childFactory: function childFactory(child2) {
23868
- return child2;
23901
+ childFactory: function childFactory(child) {
23902
+ return child;
23869
23903
  }
23870
23904
  };
23871
23905
  var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
@@ -23902,17 +23936,17 @@ var TransitionGroup = /* @__PURE__ */ function(_React$Component) {
23902
23936
  firstRender: false
23903
23937
  };
23904
23938
  };
23905
- _proto.handleExited = function handleExited(child2, node) {
23939
+ _proto.handleExited = function handleExited(child, node) {
23906
23940
  var currentChildMapping = getChildMapping(this.props.children);
23907
- if (child2.key in currentChildMapping)
23941
+ if (child.key in currentChildMapping)
23908
23942
  return;
23909
- if (child2.props.onExited) {
23910
- child2.props.onExited(node);
23943
+ if (child.props.onExited) {
23944
+ child.props.onExited(node);
23911
23945
  }
23912
23946
  if (this.mounted) {
23913
23947
  this.setState(function(state) {
23914
23948
  var children2 = _extends$1({}, state.children);
23915
- delete children2[child2.key];
23949
+ delete children2[child.key];
23916
23950
  return {
23917
23951
  children: children2
23918
23952
  };
@@ -24844,8 +24878,8 @@ IconButton.propTypes = {
24844
24878
  * The icon element.
24845
24879
  */
24846
24880
  children: chainPropTypes(PropTypes.node, function(props2) {
24847
- var found = React.Children.toArray(props2.children).some(function(child2) {
24848
- return /* @__PURE__ */ React.isValidElement(child2) && child2.props.onClick;
24881
+ var found = React.Children.toArray(props2.children).some(function(child) {
24882
+ return /* @__PURE__ */ React.isValidElement(child) && child.props.onClick;
24849
24883
  });
24850
24884
  if (found) {
24851
24885
  return new Error(["Material-UI: You are providing an onClick event listener to a child of a button element.", "Firefox will never trigger the event.", "You should move the onClick listener to the parent button element.", "https://github.com/mui-org/material-ui/issues/13957"].join("\n"));
@@ -28378,11 +28412,11 @@ function EnterNode(parent, datum2) {
28378
28412
  }
28379
28413
  EnterNode.prototype = {
28380
28414
  constructor: EnterNode,
28381
- appendChild: function(child2) {
28382
- return this._parent.insertBefore(child2, this._next);
28415
+ appendChild: function(child) {
28416
+ return this._parent.insertBefore(child, this._next);
28383
28417
  },
28384
- insertBefore: function(child2, next) {
28385
- return this._parent.insertBefore(child2, next);
28418
+ insertBefore: function(child, next) {
28419
+ return this._parent.insertBefore(child, next);
28386
28420
  },
28387
28421
  querySelector: function(selector2) {
28388
28422
  return this._parent.querySelector(selector2);
@@ -34799,7 +34833,7 @@ let Resource$1 = class Resource {
34799
34833
  }
34800
34834
  this._handle = null;
34801
34835
  if (children2 && deleteChildren) {
34802
- children2.filter(Boolean).forEach((child2) => child2.delete());
34836
+ children2.filter(Boolean).forEach((child) => child.delete());
34803
34837
  }
34804
34838
  return this;
34805
34839
  }
@@ -40902,12 +40936,12 @@ function fp64ify(a2) {
40902
40936
  function fp64LowPart$1(a2) {
40903
40937
  return a2 - Math.fround(a2);
40904
40938
  }
40905
- function fp64ifyMatrix4(matrix2) {
40939
+ function fp64ifyMatrix4(matrix) {
40906
40940
  const matrixFP64 = new Float32Array(32);
40907
40941
  for (let i2 = 0; i2 < 4; ++i2) {
40908
40942
  for (let j = 0; j < 4; ++j) {
40909
40943
  const index2 = i2 * 4 + j;
40910
- fp64ify(matrix2[j * 4 + i2], matrixFP64, index2 * 2);
40944
+ fp64ify(matrix[j * 4 + i2], matrixFP64, index2 * 2);
40911
40945
  }
40912
40946
  }
40913
40947
  return matrixFP64;
@@ -43887,7 +43921,7 @@ class SphericalCoordinates {
43887
43921
  constructor({
43888
43922
  phi = 0,
43889
43923
  theta = 0,
43890
- radius: radius2 = 1,
43924
+ radius = 1,
43891
43925
  bearing: bearing2,
43892
43926
  pitch,
43893
43927
  altitude,
@@ -43899,7 +43933,7 @@ class SphericalCoordinates {
43899
43933
  _defineProperty$e(this, "radiusScale", void 0);
43900
43934
  this.phi = phi;
43901
43935
  this.theta = theta;
43902
- this.radius = radius2 || altitude || 1;
43936
+ this.radius = radius || altitude || 1;
43903
43937
  this.radiusScale = radiusScale || 1;
43904
43938
  if (bearing2 !== void 0) {
43905
43939
  this.bearing = bearing2;
@@ -43951,8 +43985,8 @@ class SphericalCoordinates {
43951
43985
  get z() {
43952
43986
  return (this.radius - 1) * this.radiusScale;
43953
43987
  }
43954
- set(radius2, phi, theta) {
43955
- this.radius = radius2;
43988
+ set(radius, phi, theta) {
43989
+ this.radius = radius;
43956
43990
  this.phi = phi;
43957
43991
  this.theta = theta;
43958
43992
  return this.check();
@@ -46450,7 +46484,7 @@ class ConeGeometry extends TruncatedConeGeometry {
46450
46484
  let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
46451
46485
  const {
46452
46486
  id = uid("cone-geometry"),
46453
- radius: radius2 = 1,
46487
+ radius = 1,
46454
46488
  cap = true
46455
46489
  } = props2;
46456
46490
  super({
@@ -46459,7 +46493,7 @@ class ConeGeometry extends TruncatedConeGeometry {
46459
46493
  topRadius: 0,
46460
46494
  topCap: Boolean(cap),
46461
46495
  bottomCap: Boolean(cap),
46462
- bottomRadius: radius2
46496
+ bottomRadius: radius
46463
46497
  });
46464
46498
  }
46465
46499
  }
@@ -46506,13 +46540,13 @@ class CylinderGeometry extends TruncatedConeGeometry {
46506
46540
  let props2 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
46507
46541
  const {
46508
46542
  id = uid("cylinder-geometry"),
46509
- radius: radius2 = 1
46543
+ radius = 1
46510
46544
  } = props2;
46511
46545
  super({
46512
46546
  ...props2,
46513
46547
  id,
46514
- bottomRadius: radius2,
46515
- topRadius: radius2
46548
+ bottomRadius: radius,
46549
+ topRadius: radius
46516
46550
  });
46517
46551
  }
46518
46552
  }
@@ -46860,7 +46894,7 @@ function tesselateSphere(props2) {
46860
46894
  nlong = 10
46861
46895
  } = props2;
46862
46896
  let {
46863
- radius: radius2 = 1
46897
+ radius = 1
46864
46898
  } = props2;
46865
46899
  const startLat = 0;
46866
46900
  const endLat = Math.PI;
@@ -46869,9 +46903,9 @@ function tesselateSphere(props2) {
46869
46903
  const endLong = 2 * Math.PI;
46870
46904
  const longRange = endLong - startLong;
46871
46905
  const numVertices = (nlat + 1) * (nlong + 1);
46872
- if (typeof radius2 === "number") {
46873
- const value = radius2;
46874
- radius2 = (n1, n2, n3, u, v) => value;
46906
+ if (typeof radius === "number") {
46907
+ const value = radius;
46908
+ radius = (n1, n2, n3, u, v) => value;
46875
46909
  }
46876
46910
  const positions = new Float32Array(numVertices * 3);
46877
46911
  const normals = new Float32Array(numVertices * 3);
@@ -46894,7 +46928,7 @@ function tesselateSphere(props2) {
46894
46928
  const ux = cosTheta * sinPhi;
46895
46929
  const uy = cosPhi;
46896
46930
  const uz = sinTheta * sinPhi;
46897
- const r2 = radius2(ux, uy, uz, u, v);
46931
+ const r2 = radius(ux, uy, uz, u, v);
46898
46932
  positions[i3 + 0] = r2 * ux;
46899
46933
  positions[i3 + 1] = r2 * uy;
46900
46934
  positions[i3 + 2] = r2 * uz;
@@ -47413,8 +47447,8 @@ const project32 = {
47413
47447
  function createMat4$1() {
47414
47448
  return [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1];
47415
47449
  }
47416
- function transformVector$1(matrix2, vector) {
47417
- const result = transformMat4([], vector, matrix2);
47450
+ function transformVector$1(matrix, vector) {
47451
+ const result = transformMat4([], vector, matrix);
47418
47452
  scale$2(result, result, 1 / result[3]);
47419
47453
  return result;
47420
47454
  }
@@ -48901,7 +48935,7 @@ function createProjectionMatrix({
48901
48935
  far
48902
48936
  }) {
48903
48937
  const aspect = width / height;
48904
- const matrix2 = orthographic2 ? new Matrix4().orthographic({
48938
+ const matrix = orthographic2 ? new Matrix4().orthographic({
48905
48939
  fovy: fovyRadians,
48906
48940
  aspect,
48907
48941
  focalDistance,
@@ -48922,10 +48956,10 @@ function createProjectionMatrix({
48922
48956
  } = padding;
48923
48957
  const offsetX = clamp$1((left2 + width - right2) / 2, 0, width) - width / 2;
48924
48958
  const offsetY = clamp$1((top2 + height - bottom2) / 2, 0, height) - height / 2;
48925
- matrix2[8] -= offsetX * 2 / width;
48926
- matrix2[9] += offsetY * 2 / height;
48959
+ matrix[8] -= offsetX * 2 / width;
48960
+ matrix[9] += offsetY * 2 / height;
48927
48961
  }
48928
- return matrix2;
48962
+ return matrix;
48929
48963
  }
48930
48964
  class Viewport {
48931
48965
  constructor(opts2 = {}) {
@@ -53315,7 +53349,7 @@ class DeckPicker {
53315
53349
  viewports,
53316
53350
  x: x2,
53317
53351
  y: y2,
53318
- radius: radius2 = 0,
53352
+ radius = 0,
53319
53353
  depth = 1,
53320
53354
  mode = "query",
53321
53355
  unproject3D,
@@ -53338,7 +53372,7 @@ class DeckPicker {
53338
53372
  this._resizeBuffer();
53339
53373
  const devicePixelRange = cssToDevicePixels(this.gl, [x2, y2], true);
53340
53374
  const devicePixel = [devicePixelRange.x + Math.floor(devicePixelRange.width / 2), devicePixelRange.y + Math.floor(devicePixelRange.height / 2)];
53341
- const deviceRadius = Math.round(radius2 * pixelRatio);
53375
+ const deviceRadius = Math.round(radius * pixelRatio);
53342
53376
  const {
53343
53377
  width,
53344
53378
  height
@@ -53351,10 +53385,10 @@ class DeckPicker {
53351
53385
  deviceHeight: height
53352
53386
  });
53353
53387
  const cullRect = {
53354
- x: x2 - radius2,
53355
- y: y2 - radius2,
53356
- width: radius2 * 2 + 1,
53357
- height: radius2 * 2 + 1
53388
+ x: x2 - radius,
53389
+ y: y2 - radius,
53390
+ width: radius * 2 + 1,
53391
+ height: radius * 2 + 1
53358
53392
  };
53359
53393
  let infos;
53360
53394
  const result = [];
@@ -53725,10 +53759,10 @@ var hammer$1 = { exports: {} };
53725
53759
  var merge2 = deprecate(function merge3(dest, src2) {
53726
53760
  return extend2(dest, src2, true);
53727
53761
  }, "merge", "Use `assign`.");
53728
- function inherit(child2, base, properties) {
53762
+ function inherit(child, base, properties) {
53729
53763
  var baseP = base.prototype, childP;
53730
- childP = child2.prototype = Object.create(baseP);
53731
- childP.constructor = child2;
53764
+ childP = child.prototype = Object.create(baseP);
53765
+ childP.constructor = child;
53732
53766
  childP._super = baseP;
53733
53767
  if (properties) {
53734
53768
  assign2(childP, properties);
@@ -60855,8 +60889,8 @@ class GlobeViewport extends Viewport {
60855
60889
  };
60856
60890
  }
60857
60891
  }
60858
- function transformVector(matrix2, vector) {
60859
- const result = transformMat4([], vector, matrix2);
60892
+ function transformVector(matrix, vector) {
60893
+ const result = transformMat4([], vector, matrix);
60860
60894
  scale$2(result, result, 1 / result[3]);
60861
60895
  return result;
60862
60896
  }
@@ -61828,27 +61862,27 @@ function createMesh(bounds2, resolution) {
61828
61862
  const indices = new Uint32Array(vertexCount);
61829
61863
  const texCoords = new Float32Array(uCount * vCount * 2);
61830
61864
  const positions = new Float64Array(uCount * vCount * 3);
61831
- let vertex2 = 0;
61865
+ let vertex = 0;
61832
61866
  let index2 = 0;
61833
61867
  for (let u = 0; u < uCount; u++) {
61834
61868
  const ut = u / (uCount - 1);
61835
61869
  for (let v = 0; v < vCount; v++) {
61836
61870
  const vt = v / (vCount - 1);
61837
61871
  const p = interpolateQuad(bounds2, ut, vt);
61838
- positions[vertex2 * 3 + 0] = p[0];
61839
- positions[vertex2 * 3 + 1] = p[1];
61840
- positions[vertex2 * 3 + 2] = p[2] || 0;
61841
- texCoords[vertex2 * 2 + 0] = ut;
61842
- texCoords[vertex2 * 2 + 1] = 1 - vt;
61872
+ positions[vertex * 3 + 0] = p[0];
61873
+ positions[vertex * 3 + 1] = p[1];
61874
+ positions[vertex * 3 + 2] = p[2] || 0;
61875
+ texCoords[vertex * 2 + 0] = ut;
61876
+ texCoords[vertex * 2 + 1] = 1 - vt;
61843
61877
  if (u > 0 && v > 0) {
61844
- indices[index2++] = vertex2 - vCount;
61845
- indices[index2++] = vertex2 - vCount - 1;
61846
- indices[index2++] = vertex2 - 1;
61847
- indices[index2++] = vertex2 - vCount;
61848
- indices[index2++] = vertex2 - 1;
61849
- indices[index2++] = vertex2;
61878
+ indices[index2++] = vertex - vCount;
61879
+ indices[index2++] = vertex - vCount - 1;
61880
+ indices[index2++] = vertex - 1;
61881
+ indices[index2++] = vertex - vCount;
61882
+ indices[index2++] = vertex - 1;
61883
+ indices[index2++] = vertex;
61850
61884
  }
61851
- vertex2++;
61885
+ vertex++;
61852
61886
  }
61853
61887
  }
61854
61888
  return {
@@ -64046,7 +64080,7 @@ class ColumnGeometry extends Geometry {
64046
64080
  }
64047
64081
  function tesselateColumn(props2) {
64048
64082
  const {
64049
- radius: radius2,
64083
+ radius,
64050
64084
  height = 1,
64051
64085
  nradial = 10
64052
64086
  } = props2;
@@ -64073,8 +64107,8 @@ function tesselateColumn(props2) {
64073
64107
  const sin2 = Math.sin(a2);
64074
64108
  const cos2 = Math.cos(a2);
64075
64109
  for (let k = 0; k < 2; k++) {
64076
- positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius2;
64077
- positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius2;
64110
+ positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius;
64111
+ positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius;
64078
64112
  positions[i2 + 2] = (1 / 2 - k) * height;
64079
64113
  normals[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2;
64080
64114
  normals[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2;
@@ -64092,8 +64126,8 @@ function tesselateColumn(props2) {
64092
64126
  const vertexIndex = (v + nradial) % nradial;
64093
64127
  const sin2 = Math.sin(a2);
64094
64128
  const cos2 = Math.cos(a2);
64095
- positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius2;
64096
- positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius2;
64129
+ positions[i2 + 0] = vertices ? vertices[vertexIndex * 2] : cos2 * radius;
64130
+ positions[i2 + 1] = vertices ? vertices[vertexIndex * 2 + 1] : sin2 * radius;
64097
64131
  positions[i2 + 2] = height / 2;
64098
64132
  normals[i2 + 2] = 1;
64099
64133
  i2 += 3;
@@ -64329,7 +64363,7 @@ class ColumnLayer extends Layer {
64329
64363
  wireframe,
64330
64364
  offset: offset5,
64331
64365
  coverage,
64332
- radius: radius2,
64366
+ radius,
64333
64367
  angle: angle2
64334
64368
  } = this.props;
64335
64369
  const {
@@ -64339,7 +64373,7 @@ class ColumnLayer extends Layer {
64339
64373
  edgeDistance
64340
64374
  } = this.state;
64341
64375
  model.setUniforms(uniforms).setUniforms({
64342
- radius: radius2,
64376
+ radius,
64343
64377
  angle: angle2 / 180 * Math.PI,
64344
64378
  offset: offset5,
64345
64379
  extruded,
@@ -66371,13 +66405,13 @@ var tinySdf = { exports: {} };
66371
66405
  tinySdf.exports = TinySDF;
66372
66406
  tinySdf.exports.default = TinySDF;
66373
66407
  var INF = 1e20;
66374
- function TinySDF(fontSize, buffer2, radius2, cutoff, fontFamily, fontWeight) {
66408
+ function TinySDF(fontSize, buffer2, radius, cutoff, fontFamily, fontWeight) {
66375
66409
  this.fontSize = fontSize || 24;
66376
66410
  this.buffer = buffer2 === void 0 ? 3 : buffer2;
66377
66411
  this.cutoff = cutoff || 0.25;
66378
66412
  this.fontFamily = fontFamily || "sans-serif";
66379
66413
  this.fontWeight = fontWeight || "normal";
66380
- this.radius = radius2 || 8;
66414
+ this.radius = radius || 8;
66381
66415
  var size = this.size = this.fontSize + this.buffer * 2;
66382
66416
  var gridSize = size + this.buffer * 2;
66383
66417
  this.canvas = document.createElement("canvas");
@@ -66417,10 +66451,10 @@ function prepareGrids(imgData, width, height, glyphWidth, glyphHeight, gridOuter
66417
66451
  }
66418
66452
  }
66419
66453
  }
66420
- function extractAlpha(alphaChannel, width, height, gridOuter, gridInner, radius2, cutoff) {
66454
+ function extractAlpha(alphaChannel, width, height, gridOuter, gridInner, radius, cutoff) {
66421
66455
  for (var i2 = 0; i2 < width * height; i2++) {
66422
66456
  var d = Math.sqrt(gridOuter[i2]) - Math.sqrt(gridInner[i2]);
66423
- alphaChannel[i2] = Math.round(255 - 255 * (d / radius2 + cutoff));
66457
+ alphaChannel[i2] = Math.round(255 - 255 * (d / radius + cutoff));
66424
66458
  }
66425
66459
  }
66426
66460
  TinySDF.prototype._draw = function(char, getMetrics) {
@@ -66873,7 +66907,7 @@ class FontAtlasManager {
66873
66907
  fontSize,
66874
66908
  buffer: buffer2,
66875
66909
  sdf,
66876
- radius: radius2,
66910
+ radius,
66877
66911
  cutoff
66878
66912
  } = this.props;
66879
66913
  let canvas = cachedFontAtlas && cachedFontAtlas.data;
@@ -66907,7 +66941,7 @@ class FontAtlasManager {
66907
66941
  }
66908
66942
  setTextStyle(ctx, fontFamily, fontSize, fontWeight);
66909
66943
  if (sdf) {
66910
- const tinySDF = new TinySDF$1(fontSize, buffer2, radius2, cutoff, fontFamily, fontWeight);
66944
+ const tinySDF = new TinySDF$1(fontSize, buffer2, radius, cutoff, fontFamily, fontWeight);
66911
66945
  const imageData = ctx.getImageData(0, 0, tinySDF.size, tinySDF.size);
66912
66946
  for (const char of characterSet) {
66913
66947
  populateAlphaChannel(tinySDF.draw(char), imageData);
@@ -66934,11 +66968,11 @@ class FontAtlasManager {
66934
66968
  fontSize,
66935
66969
  buffer: buffer2,
66936
66970
  sdf,
66937
- radius: radius2,
66971
+ radius,
66938
66972
  cutoff
66939
66973
  } = this.props;
66940
66974
  if (sdf) {
66941
- return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2, " ").concat(radius2, " ").concat(cutoff);
66975
+ return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2, " ").concat(radius, " ").concat(cutoff);
66942
66976
  }
66943
66977
  return "".concat(fontFamily, " ").concat(fontWeight, " ").concat(fontSize, " ").concat(buffer2);
66944
66978
  }
@@ -68246,9 +68280,6 @@ class GeoCellLayer extends CompositeLayer {
68246
68280
  }
68247
68281
  _defineProperty$f(GeoCellLayer, "layerName", "GeoCellLayer");
68248
68282
  _defineProperty$f(GeoCellLayer, "defaultProps", defaultProps$t);
68249
- function commonjsRequire(path) {
68250
- throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
68251
- }
68252
68283
  var long = { exports: {} };
68253
68284
  (function(module2) {
68254
68285
  /**
@@ -69221,16 +69252,16 @@ class AxisAlignedBoundingBox {
69221
69252
  const scratchVector$5 = new Vector3();
69222
69253
  const scratchVector2$2 = new Vector3();
69223
69254
  class BoundingSphere {
69224
- constructor(center2 = [0, 0, 0], radius2 = 0) {
69255
+ constructor(center2 = [0, 0, 0], radius = 0) {
69225
69256
  _defineProperty$f(this, "center", void 0);
69226
69257
  _defineProperty$f(this, "radius", void 0);
69227
69258
  this.radius = -0;
69228
69259
  this.center = new Vector3();
69229
- this.fromCenterRadius(center2, radius2);
69260
+ this.fromCenterRadius(center2, radius);
69230
69261
  }
69231
- fromCenterRadius(center2, radius2) {
69262
+ fromCenterRadius(center2, radius) {
69232
69263
  this.center.from(center2);
69233
- this.radius = radius2;
69264
+ this.radius = radius;
69234
69265
  return this;
69235
69266
  }
69236
69267
  fromCornerPoints(corner, oppositeCorner) {
@@ -69266,9 +69297,9 @@ class BoundingSphere {
69266
69297
  }
69267
69298
  expand(point2) {
69268
69299
  const scratchPoint = scratchVector$5.from(point2);
69269
- const radius2 = scratchPoint.subtract(this.center).magnitude();
69270
- if (radius2 > this.radius) {
69271
- this.radius = radius2;
69300
+ const radius = scratchPoint.subtract(this.center).magnitude();
69301
+ if (radius > this.radius) {
69302
+ this.radius = radius;
69272
69303
  }
69273
69304
  return this;
69274
69305
  }
@@ -69289,13 +69320,13 @@ class BoundingSphere {
69289
69320
  }
69290
69321
  intersectPlane(plane) {
69291
69322
  const center2 = this.center;
69292
- const radius2 = this.radius;
69323
+ const radius = this.radius;
69293
69324
  const normal = plane.normal;
69294
69325
  const distanceToPlane = normal.dot(center2) + plane.distance;
69295
- if (distanceToPlane < -radius2) {
69326
+ if (distanceToPlane < -radius) {
69296
69327
  return INTERSECTION.OUTSIDE;
69297
69328
  }
69298
- if (distanceToPlane < radius2) {
69329
+ if (distanceToPlane < radius) {
69299
69330
  return INTERSECTION.INTERSECTING;
69300
69331
  }
69301
69332
  return INTERSECTION.INSIDE;
@@ -69549,7 +69580,7 @@ class CullingVolume {
69549
69580
  fromBoundingSphere(boundingSphere) {
69550
69581
  this.planes.length = 2 * faces.length;
69551
69582
  const center2 = boundingSphere.center;
69552
- const radius2 = boundingSphere.radius;
69583
+ const radius = boundingSphere.radius;
69553
69584
  let planeIndex = 0;
69554
69585
  for (const faceNormal of faces) {
69555
69586
  let plane0 = this.planes[planeIndex];
@@ -69560,10 +69591,10 @@ class CullingVolume {
69560
69591
  if (!plane1) {
69561
69592
  plane1 = this.planes[planeIndex + 1] = new Plane();
69562
69593
  }
69563
- const plane0Center = scratchPlaneCenter.copy(faceNormal).scale(-radius2).add(center2);
69594
+ const plane0Center = scratchPlaneCenter.copy(faceNormal).scale(-radius).add(center2);
69564
69595
  -faceNormal.dot(plane0Center);
69565
69596
  plane0.fromPointNormal(plane0Center, faceNormal);
69566
- const plane1Center = scratchPlaneCenter.copy(faceNormal).scale(radius2).add(center2);
69597
+ const plane1Center = scratchPlaneCenter.copy(faceNormal).scale(radius).add(center2);
69567
69598
  const negatedFaceNormal = scratchPlaneNormal.copy(faceNormal).negate();
69568
69599
  -negatedFaceNormal.dot(plane1Center);
69569
69600
  plane1.fromPointNormal(plane1Center, negatedFaceNormal);
@@ -69633,7 +69664,7 @@ const scratchUnitary = new Matrix3();
69633
69664
  const scratchDiagonal = new Matrix3();
69634
69665
  const jMatrix = new Matrix3();
69635
69666
  const jMatrixTranspose = new Matrix3();
69636
- function computeEigenDecomposition(matrix2, result = {}) {
69667
+ function computeEigenDecomposition(matrix, result = {}) {
69637
69668
  const EIGEN_TOLERANCE = _MathUtils.EPSILON20;
69638
69669
  const EIGEN_MAX_SWEEPS = 10;
69639
69670
  let count2 = 0;
@@ -69641,7 +69672,7 @@ function computeEigenDecomposition(matrix2, result = {}) {
69641
69672
  const unitaryMatrix = scratchUnitary;
69642
69673
  const diagonalMatrix = scratchDiagonal;
69643
69674
  unitaryMatrix.identity();
69644
- diagonalMatrix.copy(matrix2);
69675
+ diagonalMatrix.copy(matrix);
69645
69676
  const epsilon3 = EIGEN_TOLERANCE * computeFrobeniusNorm(diagonalMatrix);
69646
69677
  while (sweep < EIGEN_MAX_SWEEPS && offDiagonalFrobeniusNorm(diagonalMatrix) > epsilon3) {
69647
69678
  shurDecomposition(diagonalMatrix, jMatrix);
@@ -69658,30 +69689,30 @@ function computeEigenDecomposition(matrix2, result = {}) {
69658
69689
  result.diagonal = diagonalMatrix.toTarget(result.diagonal);
69659
69690
  return result;
69660
69691
  }
69661
- function computeFrobeniusNorm(matrix2) {
69692
+ function computeFrobeniusNorm(matrix) {
69662
69693
  let norm = 0;
69663
69694
  for (let i2 = 0; i2 < 9; ++i2) {
69664
- const temp2 = matrix2[i2];
69695
+ const temp2 = matrix[i2];
69665
69696
  norm += temp2 * temp2;
69666
69697
  }
69667
69698
  return Math.sqrt(norm);
69668
69699
  }
69669
69700
  const rowVal = [1, 0, 0];
69670
69701
  const colVal = [2, 2, 1];
69671
- function offDiagonalFrobeniusNorm(matrix2) {
69702
+ function offDiagonalFrobeniusNorm(matrix) {
69672
69703
  let norm = 0;
69673
69704
  for (let i2 = 0; i2 < 3; ++i2) {
69674
- const temp2 = matrix2[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])];
69705
+ const temp2 = matrix[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])];
69675
69706
  norm += 2 * temp2 * temp2;
69676
69707
  }
69677
69708
  return Math.sqrt(norm);
69678
69709
  }
69679
- function shurDecomposition(matrix2, result) {
69710
+ function shurDecomposition(matrix, result) {
69680
69711
  const tolerance = _MathUtils.EPSILON15;
69681
69712
  let maxDiagonal = 0;
69682
69713
  let rotAxis = 1;
69683
69714
  for (let i2 = 0; i2 < 3; ++i2) {
69684
- const temp2 = Math.abs(matrix2[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])]);
69715
+ const temp2 = Math.abs(matrix[scratchMatrix.getElementIndex(colVal[i2], rowVal[i2])]);
69685
69716
  if (temp2 > maxDiagonal) {
69686
69717
  rotAxis = i2;
69687
69718
  maxDiagonal = temp2;
@@ -69691,10 +69722,10 @@ function shurDecomposition(matrix2, result) {
69691
69722
  const q = colVal[rotAxis];
69692
69723
  let c = 1;
69693
69724
  let s2 = 0;
69694
- if (Math.abs(matrix2[scratchMatrix.getElementIndex(q, p)]) > tolerance) {
69695
- const qq = matrix2[scratchMatrix.getElementIndex(q, q)];
69696
- const pp = matrix2[scratchMatrix.getElementIndex(p, p)];
69697
- const qp = matrix2[scratchMatrix.getElementIndex(q, p)];
69725
+ if (Math.abs(matrix[scratchMatrix.getElementIndex(q, p)]) > tolerance) {
69726
+ const qq = matrix[scratchMatrix.getElementIndex(q, q)];
69727
+ const pp = matrix[scratchMatrix.getElementIndex(p, p)];
69728
+ const qp = matrix[scratchMatrix.getElementIndex(q, p)];
69698
69729
  const tau2 = (qq - pp) / 2 / qp;
69699
69730
  let t2;
69700
69731
  if (tau2 < 0) {
@@ -69856,8 +69887,8 @@ class OSMNode {
69856
69887
  }
69857
69888
  this.selected = false;
69858
69889
  this.childVisible = true;
69859
- for (const child2 of this.children) {
69860
- child2.update(params);
69890
+ for (const child of this.children) {
69891
+ child.update(params);
69861
69892
  }
69862
69893
  return true;
69863
69894
  }
@@ -70499,8 +70530,8 @@ function updateTileStateReplace(allTiles) {
70499
70530
  for (const tile of sortedTiles) {
70500
70531
  tile.isVisible = Boolean(tile.state & TILE_STATE_VISIBLE);
70501
70532
  if (tile.children && (tile.isVisible || tile.state & TILE_STATE_VISITED)) {
70502
- for (const child2 of tile.children) {
70503
- child2.state = TILE_STATE_VISITED;
70533
+ for (const child of tile.children) {
70534
+ child.state = TILE_STATE_VISITED;
70504
70535
  }
70505
70536
  } else if (tile.isSelected) {
70506
70537
  getPlaceholderInChildren(tile);
@@ -70519,11 +70550,11 @@ function getPlaceholderInAncestors(startTile) {
70519
70550
  return false;
70520
70551
  }
70521
70552
  function getPlaceholderInChildren(tile) {
70522
- for (const child2 of tile.children) {
70523
- if (child2.isLoaded || child2.content) {
70524
- child2.state |= TILE_STATE_VISIBLE;
70553
+ for (const child of tile.children) {
70554
+ if (child.isLoaded || child.content) {
70555
+ child.state |= TILE_STATE_VISIBLE;
70525
70556
  } else {
70526
- getPlaceholderInChildren(child2);
70557
+ getPlaceholderInChildren(child);
70527
70558
  }
70528
70559
  }
70529
70560
  }
@@ -82781,18 +82812,18 @@ const MATRIX_ATTRIBUTES = {
82781
82812
  }
82782
82813
  const instanceModelMatrixData = attribute.value;
82783
82814
  if (attribute.constant) {
82784
- let matrix2;
82815
+ let matrix;
82785
82816
  if (hasMatrix) {
82786
82817
  modelMatrix.set(getTransformMatrix);
82787
- matrix2 = getExtendedMat3FromMat4(modelMatrix);
82818
+ matrix = getExtendedMat3FromMat4(modelMatrix);
82788
82819
  } else {
82789
- matrix2 = valueArray;
82820
+ matrix = valueArray;
82790
82821
  const orientation = getOrientation;
82791
82822
  const scale2 = getScale2;
82792
- calculateTransformMatrix(matrix2, orientation, scale2);
82793
- matrix2.set(getTranslation, 9);
82823
+ calculateTransformMatrix(matrix, orientation, scale2);
82824
+ matrix.set(getTranslation, 9);
82794
82825
  }
82795
- attribute.value = new Float32Array(matrix2);
82826
+ attribute.value = new Float32Array(matrix);
82796
82827
  } else {
82797
82828
  let i2 = startRow * attribute.size;
82798
82829
  const {
@@ -82801,29 +82832,29 @@ const MATRIX_ATTRIBUTES = {
82801
82832
  } = createIterable(data, startRow, endRow);
82802
82833
  for (const object2 of iterable) {
82803
82834
  objectInfo.index++;
82804
- let matrix2;
82835
+ let matrix;
82805
82836
  if (hasMatrix) {
82806
82837
  modelMatrix.set(constantMatrix ? getTransformMatrix : getTransformMatrix(object2, objectInfo));
82807
- matrix2 = getExtendedMat3FromMat4(modelMatrix);
82838
+ matrix = getExtendedMat3FromMat4(modelMatrix);
82808
82839
  } else {
82809
- matrix2 = valueArray;
82840
+ matrix = valueArray;
82810
82841
  const orientation = constantOrientation ? getOrientation : getOrientation(object2, objectInfo);
82811
82842
  const scale2 = constantScale ? getScale2 : getScale2(object2, objectInfo);
82812
- calculateTransformMatrix(matrix2, orientation, scale2);
82813
- matrix2.set(constantTranslation ? getTranslation : getTranslation(object2, objectInfo), 9);
82843
+ calculateTransformMatrix(matrix, orientation, scale2);
82844
+ matrix.set(constantTranslation ? getTranslation : getTranslation(object2, objectInfo), 9);
82814
82845
  }
82815
- instanceModelMatrixData[i2++] = matrix2[0];
82816
- instanceModelMatrixData[i2++] = matrix2[1];
82817
- instanceModelMatrixData[i2++] = matrix2[2];
82818
- instanceModelMatrixData[i2++] = matrix2[3];
82819
- instanceModelMatrixData[i2++] = matrix2[4];
82820
- instanceModelMatrixData[i2++] = matrix2[5];
82821
- instanceModelMatrixData[i2++] = matrix2[6];
82822
- instanceModelMatrixData[i2++] = matrix2[7];
82823
- instanceModelMatrixData[i2++] = matrix2[8];
82824
- instanceModelMatrixData[i2++] = matrix2[9];
82825
- instanceModelMatrixData[i2++] = matrix2[10];
82826
- instanceModelMatrixData[i2++] = matrix2[11];
82846
+ instanceModelMatrixData[i2++] = matrix[0];
82847
+ instanceModelMatrixData[i2++] = matrix[1];
82848
+ instanceModelMatrixData[i2++] = matrix[2];
82849
+ instanceModelMatrixData[i2++] = matrix[3];
82850
+ instanceModelMatrixData[i2++] = matrix[4];
82851
+ instanceModelMatrixData[i2++] = matrix[5];
82852
+ instanceModelMatrixData[i2++] = matrix[6];
82853
+ instanceModelMatrixData[i2++] = matrix[7];
82854
+ instanceModelMatrixData[i2++] = matrix[8];
82855
+ instanceModelMatrixData[i2++] = matrix[9];
82856
+ instanceModelMatrixData[i2++] = matrix[10];
82857
+ instanceModelMatrixData[i2++] = matrix[11];
82827
82858
  }
82828
82859
  }
82829
82860
  }
@@ -83080,12 +83111,12 @@ class ScenegraphNode {
83080
83111
  this.scale = scale2;
83081
83112
  return this;
83082
83113
  }
83083
- setMatrix(matrix2) {
83114
+ setMatrix(matrix) {
83084
83115
  let copyMatrix = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
83085
83116
  if (copyMatrix) {
83086
- this.matrix.copy(matrix2);
83117
+ this.matrix.copy(matrix);
83087
83118
  } else {
83088
- this.matrix = matrix2;
83119
+ this.matrix = matrix;
83089
83120
  }
83090
83121
  }
83091
83122
  setMatrixComponents(_ref) {
@@ -83181,7 +83212,7 @@ class GroupNode extends ScenegraphNode {
83181
83212
  const {
83182
83213
  children: children2 = []
83183
83214
  } = props2;
83184
- log$2.assert(children2.every((child2) => child2 instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
83215
+ log$2.assert(children2.every((child) => child instanceof ScenegraphNode), "every child must an instance of ScenegraphNode");
83185
83216
  super(props2);
83186
83217
  this.children = children2;
83187
83218
  }
@@ -83189,18 +83220,18 @@ class GroupNode extends ScenegraphNode {
83189
83220
  for (var _len = arguments.length, children2 = new Array(_len), _key = 0; _key < _len; _key++) {
83190
83221
  children2[_key] = arguments[_key];
83191
83222
  }
83192
- for (const child2 of children2) {
83193
- if (Array.isArray(child2)) {
83194
- this.add(...child2);
83223
+ for (const child of children2) {
83224
+ if (Array.isArray(child)) {
83225
+ this.add(...child);
83195
83226
  } else {
83196
- this.children.push(child2);
83227
+ this.children.push(child);
83197
83228
  }
83198
83229
  }
83199
83230
  return this;
83200
83231
  }
83201
- remove(child2) {
83232
+ remove(child) {
83202
83233
  const children2 = this.children;
83203
- const indexOf = children2.indexOf(child2);
83234
+ const indexOf = children2.indexOf(child);
83204
83235
  if (indexOf > -1) {
83205
83236
  children2.splice(indexOf, 1);
83206
83237
  }
@@ -83211,7 +83242,7 @@ class GroupNode extends ScenegraphNode {
83211
83242
  return this;
83212
83243
  }
83213
83244
  delete() {
83214
- this.children.forEach((child2) => child2.delete());
83245
+ this.children.forEach((child) => child.delete());
83215
83246
  this.removeAll();
83216
83247
  super.delete();
83217
83248
  }
@@ -83220,13 +83251,13 @@ class GroupNode extends ScenegraphNode {
83220
83251
  worldMatrix = new Matrix4()
83221
83252
  } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
83222
83253
  const modelMatrix2 = new Matrix4(worldMatrix).multiplyRight(this.matrix);
83223
- for (const child2 of this.children) {
83224
- if (child2 instanceof GroupNode) {
83225
- child2.traverse(visitor, {
83254
+ for (const child of this.children) {
83255
+ if (child instanceof GroupNode) {
83256
+ child.traverse(visitor, {
83226
83257
  worldMatrix: modelMatrix2
83227
83258
  });
83228
83259
  } else {
83229
- visitor(child2, {
83260
+ visitor(child, {
83230
83261
  worldMatrix: modelMatrix2
83231
83262
  });
83232
83263
  }
@@ -83717,7 +83748,7 @@ class GLTFInstantiator {
83717
83748
  createNode(gltfNode) {
83718
83749
  if (!gltfNode._node) {
83719
83750
  const gltfChildren = gltfNode.children || [];
83720
- const children2 = gltfChildren.map((child2) => this.createNode(child2));
83751
+ const children2 = gltfChildren.map((child) => this.createNode(child));
83721
83752
  if (gltfNode.mesh) {
83722
83753
  children2.push(this.createMesh(gltfNode.mesh));
83723
83754
  }
@@ -84552,14 +84583,14 @@ class GLTFScenegraph {
84552
84583
  addNode(node) {
84553
84584
  const {
84554
84585
  meshIndex,
84555
- matrix: matrix2
84586
+ matrix
84556
84587
  } = node;
84557
84588
  this.json.nodes = this.json.nodes || [];
84558
84589
  const nodeData = {
84559
84590
  mesh: meshIndex
84560
84591
  };
84561
- if (matrix2) {
84562
- nodeData.matrix = matrix2;
84592
+ if (matrix) {
84593
+ nodeData.matrix = matrix;
84563
84594
  }
84564
84595
  this.json.nodes.push(nodeData);
84565
84596
  return this.json.nodes.length - 1;
@@ -85260,12 +85291,12 @@ class Float64 extends Float {
85260
85291
  }
85261
85292
  _Symbol$toStringTag7 = Symbol.toStringTag;
85262
85293
  class FixedSizeList extends DataType {
85263
- constructor(listSize, child2) {
85294
+ constructor(listSize, child) {
85264
85295
  super();
85265
85296
  _defineProperty$f(this, "listSize", void 0);
85266
85297
  _defineProperty$f(this, "children", void 0);
85267
85298
  this.listSize = listSize;
85268
- this.children = [child2];
85299
+ this.children = [child];
85269
85300
  }
85270
85301
  get typeId() {
85271
85302
  return Type.FixedSizeList;
@@ -86268,7 +86299,7 @@ class GLTFV1Normalizer {
86268
86299
  }
86269
86300
  _convertNodeIds(node) {
86270
86301
  if (node.children) {
86271
- node.children = node.children.map((child2) => this._convertIdToIndex(child2, "node"));
86302
+ node.children = node.children.map((child) => this._convertIdToIndex(child, "node"));
86272
86303
  }
86273
86304
  if (node.meshes) {
86274
86305
  node.meshes = node.meshes.map((mesh) => this._convertIdToIndex(mesh, "mesh"));
@@ -86484,7 +86515,7 @@ class GLTFPostProcessor {
86484
86515
  _resolveNode(node, index2) {
86485
86516
  node.id = node.id || "node-".concat(index2);
86486
86517
  if (node.children) {
86487
- node.children = node.children.map((child2) => this.getNode(child2));
86518
+ node.children = node.children.map((child) => this.getNode(child));
86488
86519
  }
86489
86520
  if (node.mesh !== void 0) {
86490
86521
  node.mesh = this.getMesh(node.mesh);
@@ -88036,9 +88067,9 @@ function getZoomFromBoundingVolume(boundingVolume, cartorgraphicCenter) {
88036
88067
  return Math.log2(WGS84_RADIUS_Z / (obbSize + cartorgraphicCenter[2]));
88037
88068
  } else if (boundingVolume instanceof BoundingSphere) {
88038
88069
  const {
88039
- radius: radius2
88070
+ radius
88040
88071
  } = boundingVolume;
88041
- return Math.log2(WGS84_RADIUS_Z / (radius2 + cartorgraphicCenter[2]));
88072
+ return Math.log2(WGS84_RADIUS_Z / (radius + cartorgraphicCenter[2]));
88042
88073
  } else if (boundingVolume.width && boundingVolume.height) {
88043
88074
  const {
88044
88075
  width,
@@ -88121,8 +88152,8 @@ function createBoundingVolume(boundingVolumeHeader, transform2, result) {
88121
88152
  const northWest = Ellipsoid.WGS84.cartographicToCartesian([degrees$1(west), degrees$1(north), minHeight], scratchNorthWest);
88122
88153
  const southEast = Ellipsoid.WGS84.cartographicToCartesian([degrees$1(east), degrees$1(south), maxHeight], scratchSouthEast);
88123
88154
  const centerInCartesian = new Vector3().addVectors(northWest, southEast).multiplyScalar(0.5);
88124
- const radius2 = new Vector3().subVectors(northWest, southEast).len() / 2;
88125
- return createSphere([centerInCartesian[0], centerInCartesian[1], centerInCartesian[2], radius2], new Matrix4());
88155
+ const radius = new Vector3().subVectors(northWest, southEast).len() / 2;
88156
+ return createSphere([centerInCartesian[0], centerInCartesian[1], centerInCartesian[2], radius], new Matrix4());
88126
88157
  }
88127
88158
  if (boundingVolumeHeader.sphere) {
88128
88159
  return createSphere(boundingVolumeHeader.sphere, transform2, result);
@@ -88166,13 +88197,13 @@ function createSphere(sphere, transform2, result) {
88166
88197
  transform2.transform(center2, center2);
88167
88198
  const scale2 = transform2.getScale(scratchScale);
88168
88199
  const uniformScale = Math.max(Math.max(scale2[0], scale2[1]), scale2[2]);
88169
- const radius2 = sphere[3] * uniformScale;
88200
+ const radius = sphere[3] * uniformScale;
88170
88201
  if (defined$3(result)) {
88171
88202
  result.center = center2;
88172
- result.radius = radius2;
88203
+ result.radius = radius;
88173
88204
  return result;
88174
88205
  }
88175
- return new BoundingSphere(center2, radius2);
88206
+ return new BoundingSphere(center2, radius);
88176
88207
  }
88177
88208
  new Vector3();
88178
88209
  new Vector3();
@@ -88445,8 +88476,8 @@ class TilesetTraverser {
88445
88476
  }
88446
88477
  updateChildTiles(tile, frameState) {
88447
88478
  const children2 = tile.children;
88448
- for (const child2 of children2) {
88449
- this.updateTile(child2, frameState);
88479
+ for (const child of children2) {
88480
+ this.updateTile(child, frameState);
88450
88481
  }
88451
88482
  return true;
88452
88483
  }
@@ -88460,26 +88491,26 @@ class TilesetTraverser {
88460
88491
  const checkRefines = tile.refine === TILE_REFINEMENT.REPLACE && tile.hasRenderContent && !skipLevelOfDetail;
88461
88492
  let hasVisibleChild = false;
88462
88493
  let refines = true;
88463
- for (const child2 of children2) {
88464
- child2._selectionDepth = depth;
88465
- if (child2.isVisibleAndInRequestVolume) {
88466
- if (stack2.find(child2)) {
88467
- stack2.delete(child2);
88494
+ for (const child of children2) {
88495
+ child._selectionDepth = depth;
88496
+ if (child.isVisibleAndInRequestVolume) {
88497
+ if (stack2.find(child)) {
88498
+ stack2.delete(child);
88468
88499
  }
88469
- stack2.push(child2);
88500
+ stack2.push(child);
88470
88501
  hasVisibleChild = true;
88471
88502
  } else if (checkRefines || loadSiblings) {
88472
- this.loadTile(child2, frameState);
88473
- this.touchTile(child2, frameState);
88503
+ this.loadTile(child, frameState);
88504
+ this.touchTile(child, frameState);
88474
88505
  }
88475
88506
  if (checkRefines) {
88476
88507
  let childRefines;
88477
- if (!child2._inRequestVolume) {
88508
+ if (!child._inRequestVolume) {
88478
88509
  childRefines = false;
88479
- } else if (!child2.hasRenderContent) {
88480
- childRefines = this.executeEmptyTraversal(child2, frameState);
88510
+ } else if (!child.hasRenderContent) {
88511
+ childRefines = this.executeEmptyTraversal(child, frameState);
88481
88512
  } else {
88482
- childRefines = child2.contentAvailable;
88513
+ childRefines = child.contentAvailable;
88483
88514
  }
88484
88515
  refines = refines && childRefines;
88485
88516
  if (!refines) {
@@ -88556,9 +88587,9 @@ class TilesetTraverser {
88556
88587
  }
88557
88588
  anyChildrenVisible(tile, frameState) {
88558
88589
  let anyVisible = false;
88559
- for (const child2 of tile.children) {
88560
- child2.updateVisibility(frameState);
88561
- anyVisible = anyVisible || child2.isVisibleAndInRequestVolume;
88590
+ for (const child of tile.children) {
88591
+ child.updateVisibility(frameState);
88592
+ anyVisible = anyVisible || child.isVisibleAndInRequestVolume;
88562
88593
  }
88563
88594
  return anyVisible;
88564
88595
  }
@@ -88576,11 +88607,11 @@ class TilesetTraverser {
88576
88607
  const traverse = !tile.hasRenderContent && this.canTraverse(tile, frameState, false, true);
88577
88608
  if (traverse) {
88578
88609
  const children2 = tile.children;
88579
- for (const child2 of children2) {
88580
- if (stack2.find(child2)) {
88581
- stack2.delete(child2);
88610
+ for (const child of children2) {
88611
+ if (stack2.find(child)) {
88612
+ stack2.delete(child);
88582
88613
  }
88583
- stack2.push(child2);
88614
+ stack2.push(child);
88584
88615
  }
88585
88616
  } else if (!tile.contentAvailable) {
88586
88617
  allDescendantsLoaded = false;
@@ -89148,15 +89179,15 @@ class I3STilesetTraverser extends TilesetTraverser {
89148
89179
  const children2 = tile.header.children || [];
89149
89180
  const childTiles = tile.children;
89150
89181
  const tileset = tile.tileset;
89151
- for (const child2 of children2) {
89152
- const extendedId = "".concat(child2.id, "-").concat(frameState.viewport.id);
89182
+ for (const child of children2) {
89183
+ const extendedId = "".concat(child.id, "-").concat(frameState.viewport.id);
89153
89184
  const childTile = childTiles && childTiles.find((t2) => t2.id === extendedId);
89154
89185
  if (!childTile) {
89155
- let request = () => this._loadTile(child2.id, tileset);
89186
+ let request = () => this._loadTile(child.id, tileset);
89156
89187
  const cachedRequest = this._tileManager.find(extendedId);
89157
89188
  if (!cachedRequest) {
89158
89189
  if (tileset.tileset.nodePages) {
89159
- request = () => tileset.tileset.nodePagesTile.formTileFromNodePages(child2.id);
89190
+ request = () => tileset.tileset.nodePagesTile.formTileFromNodePages(child.id);
89160
89191
  }
89161
89192
  this._tileManager.add(request, extendedId, (header) => this._onTileLoad(header, tile, extendedId), frameState);
89162
89193
  } else {
@@ -89712,8 +89743,8 @@ class Tileset3D {
89712
89743
  }
89713
89744
  while (stack2.length > 0) {
89714
89745
  const tile = stack2.pop();
89715
- for (const child2 of tile.children) {
89716
- stack2.push(child2);
89746
+ for (const child of tile.children) {
89747
+ stack2.push(child);
89717
89748
  }
89718
89749
  this._destroyTile(tile);
89719
89750
  }
@@ -89725,8 +89756,8 @@ class Tileset3D {
89725
89756
  stack2.push(root2);
89726
89757
  while (stack2.length > 0) {
89727
89758
  tile = stack2.pop();
89728
- for (const child2 of tile.children) {
89729
- stack2.push(child2);
89759
+ for (const child of tile.children) {
89760
+ stack2.push(child);
89730
89761
  }
89731
89762
  if (tile !== root2) {
89732
89763
  this._destroyTile(tile);
@@ -95532,7 +95563,7 @@ function evaluateChildren(children2, childProps) {
95532
95563
  return children2(childProps);
95533
95564
  }
95534
95565
  if (Array.isArray(children2)) {
95535
- return children2.map((child2) => evaluateChildren(child2, childProps));
95566
+ return children2.map((child) => evaluateChildren(child, childProps));
95536
95567
  }
95537
95568
  if (isComponent(children2)) {
95538
95569
  if (isReactMap(children2)) {
@@ -95545,16 +95576,16 @@ function evaluateChildren(children2, childProps) {
95545
95576
  }
95546
95577
  return children2;
95547
95578
  }
95548
- function isComponent(child2) {
95549
- return child2 && typeof child2 === "object" && "type" in child2 || false;
95579
+ function isComponent(child) {
95580
+ return child && typeof child === "object" && "type" in child || false;
95550
95581
  }
95551
- function isReactMap(child2) {
95552
- const componentClass = child2.type;
95582
+ function isReactMap(child) {
95583
+ const componentClass = child.type;
95553
95584
  const componentProps = componentClass && componentClass.defaultProps;
95554
95585
  return componentProps && componentProps.mapStyle;
95555
95586
  }
95556
- function needsDeckGLViewProps(child2) {
95557
- const componentClass = child2.type;
95587
+ function needsDeckGLViewProps(child) {
95588
+ const componentClass = child.type;
95558
95589
  return componentClass && componentClass.deckGLViewProps;
95559
95590
  }
95560
95591
  function wrapInView(node) {
@@ -95639,12 +95670,12 @@ function positionChildrenUnderViews({
95639
95670
  }
95640
95671
  const views = {};
95641
95672
  const defaultViewId = viewManager.views[0].id;
95642
- for (const child2 of children2) {
95673
+ for (const child of children2) {
95643
95674
  let viewId = defaultViewId;
95644
- let viewChildren = child2;
95645
- if (isComponent(child2) && inheritsFrom(child2.type, View)) {
95646
- viewId = child2.props.id || defaultViewId;
95647
- viewChildren = child2.props.children;
95675
+ let viewChildren = child;
95676
+ if (isComponent(child) && inheritsFrom(child.type, View)) {
95677
+ viewId = child.props.id || defaultViewId;
95678
+ viewChildren = child.props.children;
95648
95679
  }
95649
95680
  const viewport = viewManager.getViewport(viewId);
95650
95681
  const viewState = viewManager.getViewState(viewId);
@@ -98173,7 +98204,7 @@ var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
98173
98204
  var slice = Array.prototype.slice;
98174
98205
  var toStr$2 = Object.prototype.toString;
98175
98206
  var funcType = "[object Function]";
98176
- var implementation$7 = function bind2(that2) {
98207
+ var implementation$7 = function bind2(that) {
98177
98208
  var target = this;
98178
98209
  if (typeof target !== "function" || toStr$2.call(target) !== funcType) {
98179
98210
  throw new TypeError(ERROR_MESSAGE + target);
@@ -98192,7 +98223,7 @@ var implementation$7 = function bind2(that2) {
98192
98223
  return this;
98193
98224
  } else {
98194
98225
  return target.apply(
98195
- that2,
98226
+ that,
98196
98227
  args.concat(slice.call(arguments))
98197
98228
  );
98198
98229
  }
@@ -109904,13 +109935,13 @@ function rotation(rotate2) {
109904
109935
  };
109905
109936
  return forward;
109906
109937
  }
109907
- function circleStream(stream, radius2, delta, direction, t0, t1) {
109938
+ function circleStream(stream, radius, delta, direction, t0, t1) {
109908
109939
  if (!delta)
109909
109940
  return;
109910
- var cosRadius = cos(radius2), sinRadius = sin(radius2), step = direction * delta;
109941
+ var cosRadius = cos(radius), sinRadius = sin(radius), step = direction * delta;
109911
109942
  if (t0 == null) {
109912
- t0 = radius2 + direction * tau;
109913
- t1 = radius2 - step / 2;
109943
+ t0 = radius + direction * tau;
109944
+ t1 = radius - step / 2;
109914
109945
  } else {
109915
109946
  t0 = circleRadius(cosRadius, t0);
109916
109947
  t1 = circleRadius(cosRadius, t1);
@@ -109925,17 +109956,17 @@ function circleStream(stream, radius2, delta, direction, t0, t1) {
109925
109956
  function circleRadius(cosRadius, point2) {
109926
109957
  point2 = cartesian(point2), point2[0] -= cosRadius;
109927
109958
  cartesianNormalizeInPlace(point2);
109928
- var radius2 = acos(-point2[1]);
109929
- return ((-point2[2] < 0 ? -radius2 : radius2) + tau - epsilon) % tau;
109959
+ var radius = acos(-point2[1]);
109960
+ return ((-point2[2] < 0 ? -radius : radius) + tau - epsilon) % tau;
109930
109961
  }
109931
109962
  function circle$2() {
109932
- var center2 = constant([0, 0]), radius2 = constant(90), precision = constant(6), ring, rotate2, stream = { point: point2 };
109963
+ var center2 = constant([0, 0]), radius = constant(90), precision = constant(6), ring, rotate2, stream = { point: point2 };
109933
109964
  function point2(x2, y2) {
109934
109965
  ring.push(x2 = rotate2(x2, y2));
109935
109966
  x2[0] *= degrees, x2[1] *= degrees;
109936
109967
  }
109937
109968
  function circle2() {
109938
- var c = center2.apply(this, arguments), r2 = radius2.apply(this, arguments) * radians, p = precision.apply(this, arguments) * radians;
109969
+ var c = center2.apply(this, arguments), r2 = radius.apply(this, arguments) * radians, p = precision.apply(this, arguments) * radians;
109939
109970
  ring = [];
109940
109971
  rotate2 = rotateRadians(-c[0] * radians, -c[1] * radians, 0).invert;
109941
109972
  circleStream(stream, r2, p, 1);
@@ -109947,7 +109978,7 @@ function circle$2() {
109947
109978
  return arguments.length ? (center2 = typeof _ === "function" ? _ : constant([+_[0], +_[1]]), circle2) : center2;
109948
109979
  };
109949
109980
  circle2.radius = function(_) {
109950
- return arguments.length ? (radius2 = typeof _ === "function" ? _ : constant(+_), circle2) : radius2;
109981
+ return arguments.length ? (radius = typeof _ === "function" ? _ : constant(+_), circle2) : radius;
109951
109982
  };
109952
109983
  circle2.precision = function(_) {
109953
109984
  return arguments.length ? (precision = typeof _ === "function" ? _ : constant(+_), circle2) : precision;
@@ -110842,8 +110873,8 @@ PathString.prototype = {
110842
110873
  }
110843
110874
  }
110844
110875
  };
110845
- function circle$1(radius2) {
110846
- return "m0," + radius2 + "a" + radius2 + "," + radius2 + " 0 1,1 0," + -2 * radius2 + "a" + radius2 + "," + radius2 + " 0 1,1 0," + 2 * radius2 + "z";
110876
+ function circle$1(radius) {
110877
+ return "m0," + radius + "a" + radius + "," + radius + " 0 1,1 0," + -2 * radius + "a" + radius + "," + radius + " 0 1,1 0," + 2 * radius + "z";
110847
110878
  }
110848
110879
  function index(projection2, context) {
110849
110880
  var pointRadius = 4.5, projectionStream, contextStream;
@@ -111069,10 +111100,10 @@ function clipAntimeridianInterpolate(from, to, direction, stream) {
111069
111100
  stream.point(to[0], to[1]);
111070
111101
  }
111071
111102
  }
111072
- function clipCircle(radius2, delta) {
111073
- var cr = cos(radius2), smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon;
111103
+ function clipCircle(radius, delta) {
111104
+ var cr = cos(radius), smallRadius = cr > 0, notHemisphere = abs(cr) > epsilon;
111074
111105
  function interpolate2(from, to, direction, stream) {
111075
- circleStream(stream, radius2, delta, direction, from, to);
111106
+ circleStream(stream, radius, delta, direction, from, to);
111076
111107
  }
111077
111108
  function visible(lambda, phi) {
111078
111109
  return cos(lambda) * cos(phi) > cr;
@@ -111170,7 +111201,7 @@ function clipCircle(radius2, delta) {
111170
111201
  }
111171
111202
  }
111172
111203
  function code(lambda, phi) {
111173
- var r2 = smallRadius ? radius2 : pi - radius2, code2 = 0;
111204
+ var r2 = smallRadius ? radius : pi - radius, code2 = 0;
111174
111205
  if (lambda < -r2)
111175
111206
  code2 |= 1;
111176
111207
  else if (lambda > r2)
@@ -111181,7 +111212,7 @@ function clipCircle(radius2, delta) {
111181
111212
  code2 |= 8;
111182
111213
  return code2;
111183
111214
  }
111184
- return clip(visible, clipLine2, interpolate2, smallRadius ? [0, -radius2] : [-pi, radius2 - pi]);
111215
+ return clip(visible, clipLine2, interpolate2, smallRadius ? [0, -radius] : [-pi, radius - pi]);
111185
111216
  }
111186
111217
  function transform(methods) {
111187
111218
  return {
@@ -111774,7 +111805,7 @@ function _interopDefaultLegacy$6(e3) {
111774
111805
  return e3 && typeof e3 === "object" && "default" in e3 ? e3 : { "default": e3 };
111775
111806
  }
111776
111807
  var center__default$1 = /* @__PURE__ */ _interopDefaultLegacy$6(center$1);
111777
- function buffer(geojson, radius2, options) {
111808
+ function buffer(geojson, radius, options) {
111778
111809
  options = options || {};
111779
111810
  var units2 = options.units || "kilometers";
111780
111811
  var steps = options.steps || 8;
@@ -111784,7 +111815,7 @@ function buffer(geojson, radius2, options) {
111784
111815
  throw new Error("options must be an object");
111785
111816
  if (typeof steps !== "number")
111786
111817
  throw new Error("steps must be an number");
111787
- if (radius2 === void 0)
111818
+ if (radius === void 0)
111788
111819
  throw new Error("radius is required");
111789
111820
  if (steps <= 0)
111790
111821
  throw new Error("steps must be greater than 0");
@@ -111792,14 +111823,14 @@ function buffer(geojson, radius2, options) {
111792
111823
  switch (geojson.type) {
111793
111824
  case "GeometryCollection":
111794
111825
  meta$4.geomEach(geojson, function(geometry2) {
111795
- var buffered = bufferFeature(geometry2, radius2, units2, steps);
111826
+ var buffered = bufferFeature(geometry2, radius, units2, steps);
111796
111827
  if (buffered)
111797
111828
  results.push(buffered);
111798
111829
  });
111799
111830
  return helpers$6.featureCollection(results);
111800
111831
  case "FeatureCollection":
111801
111832
  meta$4.featureEach(geojson, function(feature2) {
111802
- var multiBuffered = bufferFeature(feature2, radius2, units2, steps);
111833
+ var multiBuffered = bufferFeature(feature2, radius, units2, steps);
111803
111834
  if (multiBuffered) {
111804
111835
  meta$4.featureEach(multiBuffered, function(buffered) {
111805
111836
  if (buffered)
@@ -111809,15 +111840,15 @@ function buffer(geojson, radius2, options) {
111809
111840
  });
111810
111841
  return helpers$6.featureCollection(results);
111811
111842
  }
111812
- return bufferFeature(geojson, radius2, units2, steps);
111843
+ return bufferFeature(geojson, radius, units2, steps);
111813
111844
  }
111814
- function bufferFeature(geojson, radius2, units2, steps) {
111845
+ function bufferFeature(geojson, radius, units2, steps) {
111815
111846
  var properties = geojson.properties || {};
111816
111847
  var geometry2 = geojson.type === "Feature" ? geojson.geometry : geojson;
111817
111848
  if (geometry2.type === "GeometryCollection") {
111818
111849
  var results = [];
111819
111850
  meta$4.geomEach(geojson, function(geometry3) {
111820
- var buffered2 = bufferFeature(geometry3, radius2, units2, steps);
111851
+ var buffered2 = bufferFeature(geometry3, radius, units2, steps);
111821
111852
  if (buffered2)
111822
111853
  results.push(buffered2);
111823
111854
  });
@@ -111830,7 +111861,7 @@ function bufferFeature(geojson, radius2, units2, steps) {
111830
111861
  };
111831
111862
  var reader = new turfJsts.GeoJSONReader();
111832
111863
  var geom = reader.read(projected);
111833
- var distance2 = helpers$6.radiansToLength(helpers$6.lengthToRadians(radius2, units2), "meters");
111864
+ var distance2 = helpers$6.radiansToLength(helpers$6.lengthToRadians(radius, units2), "meters");
111834
111865
  var buffered = turfJsts.BufferOp.bufferOp(geom, distance2, steps);
111835
111866
  var writer = new turfJsts.GeoJSONWriter();
111836
111867
  buffered = writer.write(buffered);
@@ -114535,10 +114566,10 @@ EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
114535
114566
  this._maxListeners = n2;
114536
114567
  return this;
114537
114568
  };
114538
- function _getMaxListeners(that2) {
114539
- if (that2._maxListeners === void 0)
114569
+ function _getMaxListeners(that) {
114570
+ if (that._maxListeners === void 0)
114540
114571
  return EventEmitter.defaultMaxListeners;
114541
- return that2._maxListeners;
114572
+ return that._maxListeners;
114542
114573
  }
114543
114574
  EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
114544
114575
  return _getMaxListeners(this);
@@ -115683,9 +115714,9 @@ function rhumbDistance$2(from, to, options) {
115683
115714
  var distance2 = helpers_1$9.convertLength(distanceInMeters, "meters", options.units);
115684
115715
  return distance2;
115685
115716
  }
115686
- function calculateRhumbDistance(origin, destination2, radius2) {
115687
- radius2 = radius2 === void 0 ? helpers_1$9.earthRadius : Number(radius2);
115688
- var R2 = radius2;
115717
+ function calculateRhumbDistance(origin, destination2, radius) {
115718
+ radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
115719
+ var R2 = radius;
115689
115720
  var phi12 = origin[1] * Math.PI / 180;
115690
115721
  var phi2 = destination2[1] * Math.PI / 180;
115691
115722
  var DeltaPhi = phi2 - phi12;
@@ -117373,7 +117404,7 @@ var __importDefault$2 = commonjsGlobal && commonjsGlobal.__importDefault || func
117373
117404
  Object.defineProperty(js$c, "__esModule", { value: true });
117374
117405
  var destination_1$1 = __importDefault$2(js$h);
117375
117406
  var helpers_1$6 = js$v;
117376
- function circle(center2, radius2, options) {
117407
+ function circle(center2, radius, options) {
117377
117408
  if (options === void 0) {
117378
117409
  options = {};
117379
117410
  }
@@ -117381,7 +117412,7 @@ function circle(center2, radius2, options) {
117381
117412
  var properties = options.properties ? options.properties : !Array.isArray(center2) && center2.type === "Feature" && center2.properties ? center2.properties : {};
117382
117413
  var coordinates2 = [];
117383
117414
  for (var i2 = 0; i2 < steps; i2++) {
117384
- coordinates2.push(destination_1$1.default(center2, radius2, i2 * -360 / steps, options).geometry.coordinates);
117415
+ coordinates2.push(destination_1$1.default(center2, radius, i2 * -360 / steps, options).geometry.coordinates);
117385
117416
  }
117386
117417
  coordinates2.push(coordinates2[0]);
117387
117418
  return helpers_1$6.polygon([coordinates2], properties);
@@ -117632,12 +117663,12 @@ var ResizeCircleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
117632
117663
  var feature2 = this.getSelectedFeature(props2);
117633
117664
  var center2 = (0, _center$1["default"])(feature2).geometry.coordinates;
117634
117665
  var numberOfSteps = Object.entries(feature2.geometry.coordinates[0]).length - 1;
117635
- var radius2 = Math.max((0, _distance$b["default"])(center2, event.mapCoords), 1e-3);
117666
+ var radius = Math.max((0, _distance$b["default"])(center2, event.mapCoords), 1e-3);
117636
117667
  var _ref = {}, _ref$steps = _ref.steps, steps = _ref$steps === void 0 ? numberOfSteps : _ref$steps;
117637
117668
  var options = {
117638
117669
  steps
117639
117670
  };
117640
- var updatedFeature = (0, _circle$2["default"])(center2, radius2, options);
117671
+ var updatedFeature = (0, _circle$2["default"])(center2, radius, options);
117641
117672
  var geometry2 = updatedFeature.geometry;
117642
117673
  var updatedData = new _immutableFeatureCollection$6.ImmutableFeatureCollection(props2.data).replaceGeometry(editHandleProperties.featureIndex, geometry2).getObject();
117643
117674
  props2.onEdit({
@@ -117707,9 +117738,9 @@ function rhumbDestination$4(origin, distance2, bearing2, options) {
117707
117738
  destination2[0] += destination2[0] - coords[0] > 180 ? -360 : coords[0] - destination2[0] > 180 ? 360 : 0;
117708
117739
  return helpers_1$5.point(destination2, options.properties);
117709
117740
  }
117710
- function calculateRhumbDestination(origin, distance2, bearing2, radius2) {
117711
- radius2 = radius2 === void 0 ? helpers_1$5.earthRadius : Number(radius2);
117712
- var delta = distance2 / radius2;
117741
+ function calculateRhumbDestination(origin, distance2, bearing2, radius) {
117742
+ radius = radius === void 0 ? helpers_1$5.earthRadius : Number(radius);
117743
+ var delta = distance2 / radius;
117713
117744
  var lambda12 = origin[0] * Math.PI / 180;
117714
117745
  var phi12 = helpers_1$5.degreesToRadians(origin[1]);
117715
117746
  var theta = helpers_1$5.degreesToRadians(bearing2);
@@ -122131,8 +122162,8 @@ var DrawCircleByDiameterMode = /* @__PURE__ */ function(_TwoClickPolygonMode) {
122131
122162
  options.steps = 4;
122132
122163
  }
122133
122164
  var centerCoordinates = (0, _geojsonEditMode$8.getIntermediatePosition)(coord1, coord2);
122134
- var radius2 = Math.max((0, _distance$5["default"])(coord1, centerCoordinates), 1e-3);
122135
- var geometry2 = (0, _circle$1["default"])(centerCoordinates, radius2, options);
122165
+ var radius = Math.max((0, _distance$5["default"])(coord1, centerCoordinates), 1e-3);
122166
+ var geometry2 = (0, _circle$1["default"])(centerCoordinates, radius, options);
122136
122167
  geometry2.properties = geometry2.properties || {};
122137
122168
  geometry2.properties.shape = "Circle";
122138
122169
  return geometry2;
@@ -122265,8 +122296,8 @@ var DrawCircleFromCenterMode = /* @__PURE__ */ function(_TwoClickPolygonMode) {
122265
122296
  console.warn("Minimum steps to draw a circle is 4 ");
122266
122297
  options.steps = 4;
122267
122298
  }
122268
- var radius2 = Math.max((0, _distance$4["default"])(coord1, coord2), 1e-3);
122269
- var geometry2 = (0, _circle["default"])(coord1, radius2, options);
122299
+ var radius = Math.max((0, _distance$4["default"])(coord1, coord2), 1e-3);
122300
+ var geometry2 = (0, _circle["default"])(coord1, radius, options);
122270
122301
  geometry2.properties = geometry2.properties || {};
122271
122302
  geometry2.properties.shape = "Circle";
122272
122303
  return geometry2;
@@ -124659,13 +124690,13 @@ var MeasureAngleMode = /* @__PURE__ */ function(_GeoJsonEditMode) {
124659
124690
  }
124660
124691
  _this = _super.call.apply(_super, [this].concat(args));
124661
124692
  _defineProperty$1(_assertThisInitialized$1(_this), "_getTooltips", (0, _memoize["default"])(function(_ref) {
124662
- var modeConfig = _ref.modeConfig, vertex2 = _ref.vertex, point1 = _ref.point1, point2 = _ref.point2;
124693
+ var modeConfig = _ref.modeConfig, vertex = _ref.vertex, point1 = _ref.point1, point2 = _ref.point2;
124663
124694
  var tooltips = DEFAULT_TOOLTIPS;
124664
- if (vertex2 && point1 && point2) {
124695
+ if (vertex && point1 && point2) {
124665
124696
  var _ref2 = modeConfig || {}, formatTooltip = _ref2.formatTooltip, measurementCallback = _ref2.measurementCallback;
124666
124697
  var units2 = "deg";
124667
- var angle1 = (0, _bearing$1["default"])(vertex2, point1);
124668
- var angle2 = (0, _bearing$1["default"])(vertex2, point2);
124698
+ var angle1 = (0, _bearing$1["default"])(vertex, point1);
124699
+ var angle2 = (0, _bearing$1["default"])(vertex, point2);
124669
124700
  var angle3 = Math.abs(angle1 - angle2);
124670
124701
  if (angle3 > 180) {
124671
124702
  angle3 = 360 - angle3;
@@ -132158,16 +132189,16 @@ function addDecoder(cases, importFn) {
132158
132189
  }
132159
132190
  cases.forEach((c) => registry$1.set(c, importFn));
132160
132191
  }
132161
- addDecoder([void 0, 1], () => import("./raw-0aecbbc9.js").then((m) => m.default));
132162
- addDecoder(5, () => import("./lzw-b482148a.js").then((m) => m.default));
132192
+ addDecoder([void 0, 1], () => import("./raw-3b0ca314.js").then((m) => m.default));
132193
+ addDecoder(5, () => import("./lzw-14c81650.js").then((m) => m.default));
132163
132194
  addDecoder(6, () => {
132164
132195
  throw new Error("old style JPEG compression is not supported.");
132165
132196
  });
132166
- addDecoder(7, () => import("./jpeg-d33c98fc.js").then((m) => m.default));
132167
- addDecoder([8, 32946], () => import("./deflate-d508d4a0.js").then((m) => m.default));
132168
- addDecoder(32773, () => import("./packbits-09f27b8f.js").then((m) => m.default));
132169
- addDecoder(34887, () => import("./lerc-10fe8c3f.js").then((m) => m.default));
132170
- addDecoder(50001, () => import("./webimage-b4a1a024.js").then((m) => m.default));
132197
+ addDecoder(7, () => import("./jpeg-afe48021.js").then((m) => m.default));
132198
+ addDecoder([8, 32946], () => import("./deflate-4947343d.js").then((m) => m.default));
132199
+ addDecoder(32773, () => import("./packbits-e4daad19.js").then((m) => m.default));
132200
+ addDecoder(34887, () => import("./lerc-ff568b35.js").then((m) => m.default));
132201
+ addDecoder(50001, () => import("./webimage-df0b6c92.js").then((m) => m.default));
132171
132202
  function decodeRowAcc(row, stride) {
132172
132203
  let length2 = row.length - stride;
132173
132204
  let offset5 = 0;
@@ -132457,11 +132488,11 @@ var xmlNode$1 = function(tagname, parent, val) {
132457
132488
  this.child = {};
132458
132489
  this.attrsMap = {};
132459
132490
  this.val = val;
132460
- this.addChild = function(child2) {
132461
- if (Array.isArray(this.child[child2.tagname])) {
132462
- this.child[child2.tagname].push(child2);
132491
+ this.addChild = function(child) {
132492
+ if (Array.isArray(this.child[child.tagname])) {
132493
+ this.child[child.tagname].push(child);
132463
132494
  } else {
132464
- this.child[child2.tagname] = [child2];
132495
+ this.child[child.tagname] = [child];
132465
132496
  }
132466
132497
  };
132467
132498
  };
@@ -143931,6 +143962,7 @@ function HeatmapOptions(props2) {
143931
143962
  setTooltipsVisible
143932
143963
  } = props2;
143933
143964
  const classes = usePlotOptionsStyles();
143965
+ const heatmapOptionsId = useId();
143934
143966
  function handleGeneExpressionColormapChange(event) {
143935
143967
  setGeneExpressionColormap(event.target.value);
143936
143968
  }
@@ -143946,42 +143978,60 @@ function HeatmapOptions(props2) {
143946
143978
  );
143947
143979
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(OptionsContainer, { children: [
143948
143980
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
143949
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, htmlFor: "gene-expression-colormap-select", children: "Gene Expression Colormap" }),
143950
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
143981
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx("label", { htmlFor: `heatmap-gene-expression-colormap-${heatmapOptionsId}`, children: "Gene Expression Colormap" }) }),
143982
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
143951
143983
  OptionSelect,
143952
143984
  {
143953
143985
  className: classes.select,
143954
143986
  value: geneExpressionColormap,
143955
143987
  onChange: handleGeneExpressionColormapChange,
143956
143988
  inputProps: {
143957
- id: "gene-expression-colormap-select"
143989
+ "aria-label": "Select gene expression colormap",
143990
+ id: `heatmap-gene-expression-colormap-${heatmapOptionsId}`
143958
143991
  },
143959
143992
  children: GLSL_COLORMAPS.map((cmap) => /* @__PURE__ */ jsxRuntimeExports.jsx("option", { value: cmap, children: cmap }, cmap))
143960
143993
  }
143961
143994
  ) })
143962
143995
  ] }),
143963
143996
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
143964
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Tooltips Visible" }),
143965
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
143997
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
143998
+ "label",
143999
+ {
144000
+ htmlFor: `heatmap-gene-expression-colormap-tooltip-visibility-${heatmapOptionsId}`,
144001
+ children: "Tooltips Visible"
144002
+ }
144003
+ ) }),
144004
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
143966
144005
  Checkbox$1,
143967
144006
  {
143968
144007
  className: classes.checkbox,
143969
144008
  checked: tooltipsVisible,
143970
144009
  onChange: handleTooltipsVisibilityChange,
143971
- name: "gene-expression-colormap-option-toltip-visibility",
143972
- color: "default"
144010
+ name: "heatmap-gene-expression-colormap-tooltip-visibility",
144011
+ color: "default",
144012
+ inputProps: {
144013
+ "aria-label": "Show or hide tooltips",
144014
+ id: `heatmap-gene-expression-colormap-tooltip-visibility-${heatmapOptionsId}`
144015
+ }
143973
144016
  }
143974
144017
  ) })
143975
144018
  ] }),
143976
144019
  /* @__PURE__ */ jsxRuntimeExports.jsxs(TableRow$1, { children: [
143977
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, children: "Gene Expression Colormap Range" }),
143978
- /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
144020
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.labelCell, variant: "head", scope: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
144021
+ "label",
144022
+ {
144023
+ htmlFor: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`,
144024
+ children: "Gene Expression Colormap Range"
144025
+ }
144026
+ ) }),
144027
+ /* @__PURE__ */ jsxRuntimeExports.jsx(TableCell$1, { className: classes.inputCell, variant: "body", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
143979
144028
  Slider$1,
143980
144029
  {
143981
144030
  classes: { root: classes.slider, valueLabel: classes.sliderValueLabel },
143982
144031
  value: geneExpressionColormapRange,
143983
144032
  onChange: handleColormapRangeChangeDebounced,
143984
- "aria-labelledby": "gene-expression-colormap-range-slider",
144033
+ getAriaLabel: (index2) => index2 === 0 ? "Low value colormap range slider" : "High value colormap range slider",
144034
+ id: `heatmap-gene-expression-colormap-range-${heatmapOptionsId}`,
143985
144035
  valueLabelDisplay: "auto",
143986
144036
  step: 5e-3,
143987
144037
  min: 0,
@@ -144038,9 +144088,9 @@ function HeatmapSubscriber(props2) {
144038
144088
  setTooltipsVisible
144039
144089
  }] = useCoordination(COMPONENT_COORDINATION_TYPES[ViewType$1.HEATMAP], coordinationScopes);
144040
144090
  const observationsLabel = observationsLabelOverride || obsType;
144041
- const observationsPluralLabel = plur(observationsLabel);
144091
+ const observationsPluralLabel = pluralize(observationsLabel);
144042
144092
  const variablesLabel = variablesLabelOverride || featureType;
144043
- const variablesPluralLabel = plur(variablesLabel);
144093
+ const variablesPluralLabel = pluralize(variablesLabel);
144044
144094
  const observationsTitle = capitalize$1(observationsPluralLabel);
144045
144095
  const variablesTitle = capitalize$1(variablesPluralLabel);
144046
144096
  const [isRendering, setIsRendering] = useState(false);
@@ -144151,8 +144201,8 @@ function HeatmapSubscriber(props2) {
144151
144201
  TitleInfo,
144152
144202
  {
144153
144203
  title,
144154
- info: `${commaNumber(cellsCount)} ${plur(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${plur(variablesLabel, genesCount)},
144155
- with ${commaNumber(selectedCount)} ${plur(observationsLabel, selectedCount)} selected`,
144204
+ info: `${commaNumber(cellsCount)} ${pluralize(observationsLabel, cellsCount)} × ${commaNumber(genesCount)} ${pluralize(variablesLabel, genesCount)},
144205
+ with ${commaNumber(selectedCount)} ${pluralize(observationsLabel, selectedCount)} selected`,
144156
144206
  urls,
144157
144207
  theme,
144158
144208
  removeGridComponent,