@vitessce/layer-controller 3.5.6 → 3.5.8

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.
@@ -16711,9 +16711,15 @@ const ViewType = {
16711
16711
  FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
16712
16712
  DOT_PLOT: "dotPlot",
16713
16713
  FEATURE_BAR_PLOT: "featureBarPlot",
16714
+ VOLCANO_PLOT: "volcanoPlot",
16715
+ OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
16716
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
16714
16717
  BIOMARKER_SELECT: "biomarkerSelect",
16718
+ COMPARATIVE_HEADING: "comparativeHeading",
16715
16719
  LINK_CONTROLLER: "linkController",
16716
- DUAL_SCATTERPLOT: "dualScatterplot"
16720
+ NEUROGLANCER: "neuroglancer",
16721
+ DUAL_SCATTERPLOT: "dualScatterplot",
16722
+ TREEMAP: "treemap"
16717
16723
  };
16718
16724
  const CoordinationType = {
16719
16725
  META_COORDINATION_SCOPES: "metaCoordinationScopes",
@@ -16845,12 +16851,20 @@ const CoordinationType = {
16845
16851
  SAMPLE_SET_FILTER: "sampleSetFilter",
16846
16852
  SAMPLE_FILTER_MODE: "sampleFilterMode",
16847
16853
  SAMPLE_SET_COLOR: "sampleSetColor",
16854
+ SAMPLE_HIGHLIGHT: "sampleHighlight",
16848
16855
  EMBEDDING_POINTS_VISIBLE: "embeddingPointsVisible",
16849
16856
  EMBEDDING_CONTOURS_VISIBLE: "embeddingContoursVisible",
16850
16857
  EMBEDDING_CONTOURS_FILLED: "embeddingContoursFilled",
16851
16858
  EMBEDDING_CONTOUR_PERCENTILES: "embeddingContourPercentiles",
16852
16859
  CONTOUR_COLOR_ENCODING: "contourColorEncoding",
16853
- CONTOUR_COLOR: "contourColor"
16860
+ CONTOUR_COLOR: "contourColor",
16861
+ // For volcano plot:
16862
+ FEATURE_POINT_SIGNIFICANCE_THRESHOLD: "featurePointSignificanceThreshold",
16863
+ FEATURE_LABEL_SIGNIFICANCE_THRESHOLD: "featureLabelSignificanceThreshold",
16864
+ FEATURE_POINT_FOLD_CHANGE_THRESHOLD: "featurePointFoldChangeThreshold",
16865
+ FEATURE_LABEL_FOLD_CHANGE_THRESHOLD: "featureLabelFoldChangeThreshold",
16866
+ // Treemap
16867
+ HIERARCHY_LEVELS: "hierarchyLevels"
16854
16868
  };
16855
16869
  const ViewHelpMapping = {
16856
16870
  SCATTERPLOT: "The scatterplot displays two-dimensional (pre-computed) dimensionality reduction results (such as from t-SNE or UMAP). Each point on the scatterplot represents an observation (e.g., cell).",
@@ -16867,9 +16881,17 @@ const ViewHelpMapping = {
16867
16881
  OBS_SET_FEATURE_VALUE_DISTRIBUTION: "The observation set feature value distribution view displays a violin plot with values (e.g., expression values) per set (e.g., cell type) for the selected feature (e.g., gene).",
16868
16882
  FEATURE_VALUE_HISTOGRAM: "The feature value histogram displays the distribution of values (e.g., expression) for the selected feature (e.g., gene).",
16869
16883
  DOT_PLOT: "The dot plot displays summary information about expression of the selected features (e.g., genes) for each selected observation set (e.g., cell type).",
16870
- FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis."
16884
+ FEATURE_BAR_PLOT: "The feature bar plot displays one bar per observation (e.g., cell) along the x-axis, where the value of a selected feature (e.g., gene) is encoded along the y-axis.",
16885
+ NEUROGLANCER: "The Neuroglancer view displays 3d meshes using Neuroglancer developed by Google.",
16886
+ TREEMAP: "The treemap provides an overview of the current state of sample-level or cell-level selection and filtering.",
16887
+ VOLCANO_PLOT: "The volcano plot displays differential expression results. Each data point represents a feature (as opposed to an observation).",
16888
+ OBS_SET_COMPOSITION_BAR_PLOT: "The set composition bar plot displays the results of a compositional analysis conducted using the scCODA method (Büttner et al. 2021 Nature Communications).",
16889
+ FEATURE_SET_ENRICHMENT_BAR_PLOT: "The feature set enrichment bar plot displays the results of a hypergeometric test applied to the differential expression test results to identify enriched pathway gene sets."
16871
16890
  };
16872
16891
  const COMPONENT_COORDINATION_TYPES = {
16892
+ [ViewType.NEUROGLANCER]: [
16893
+ CoordinationType.DATASET
16894
+ ],
16873
16895
  [ViewType.SCATTERPLOT]: [
16874
16896
  CoordinationType.DATASET,
16875
16897
  CoordinationType.OBS_TYPE,
@@ -17339,14 +17361,106 @@ const COMPONENT_COORDINATION_TYPES = {
17339
17361
  CoordinationType.OBS_COLOR_ENCODING,
17340
17362
  CoordinationType.ADDITIONAL_OBS_SETS
17341
17363
  ],
17364
+ [ViewType.VOLCANO_PLOT]: [
17365
+ CoordinationType.DATASET,
17366
+ CoordinationType.OBS_TYPE,
17367
+ CoordinationType.FEATURE_TYPE,
17368
+ CoordinationType.SAMPLE_TYPE,
17369
+ // For selection of case-control sets of samples:
17370
+ CoordinationType.SAMPLE_SET_SELECTION,
17371
+ // For selection of one-vs-others sets of observations:
17372
+ CoordinationType.OBS_SET_SELECTION,
17373
+ // TODO: CoordinationType.FEATURE_SET_SELECTION,
17374
+ // TODO: CoordinationType.FEATURE_SET_HIGHLIGHT,
17375
+ // TODO: CoordinationType.FEATURE_SET_COLOR,
17376
+ CoordinationType.FEATURE_HIGHLIGHT,
17377
+ CoordinationType.FEATURE_SELECTION,
17378
+ CoordinationType.FEATURE_VALUE_COLORMAP,
17379
+ CoordinationType.FEATURE_VALUE_COLORMAP_RANGE,
17380
+ // TODO: CoordinationType.FEATURE_COLOR_ENCODING,
17381
+ // TODO: CoordinationType.ADDITIONAL_FEATURE_SETS,
17382
+ CoordinationType.TOOLTIPS_VISIBLE,
17383
+ CoordinationType.ADDITIONAL_OBS_SETS,
17384
+ CoordinationType.OBS_SET_COLOR,
17385
+ CoordinationType.SAMPLE_SET_COLOR,
17386
+ CoordinationType.FEATURE_POINT_SIGNIFICANCE_THRESHOLD,
17387
+ CoordinationType.FEATURE_LABEL_SIGNIFICANCE_THRESHOLD,
17388
+ CoordinationType.FEATURE_POINT_FOLD_CHANGE_THRESHOLD,
17389
+ CoordinationType.FEATURE_LABEL_FOLD_CHANGE_THRESHOLD
17390
+ ],
17391
+ [ViewType.OBS_SET_COMPOSITION_BAR_PLOT]: [
17392
+ CoordinationType.DATASET,
17393
+ CoordinationType.OBS_TYPE,
17394
+ CoordinationType.SAMPLE_TYPE,
17395
+ // For selection of case-control sets of samples:
17396
+ CoordinationType.SAMPLE_SET_SELECTION,
17397
+ // For selection of one-vs-others sets of observations:
17398
+ CoordinationType.OBS_SET_SELECTION,
17399
+ CoordinationType.ADDITIONAL_OBS_SETS,
17400
+ CoordinationType.OBS_SET_COLOR,
17401
+ CoordinationType.SAMPLE_SET_COLOR
17402
+ ],
17403
+ [ViewType.FEATURE_SET_ENRICHMENT_BAR_PLOT]: [
17404
+ CoordinationType.DATASET,
17405
+ CoordinationType.OBS_TYPE,
17406
+ CoordinationType.FEATURE_TYPE,
17407
+ CoordinationType.SAMPLE_TYPE,
17408
+ // For selection of case-control sets of samples:
17409
+ CoordinationType.SAMPLE_SET_SELECTION,
17410
+ // For selection of one-vs-others sets of observations:
17411
+ CoordinationType.OBS_SET_SELECTION,
17412
+ CoordinationType.ADDITIONAL_OBS_SETS,
17413
+ CoordinationType.OBS_SET_COLOR,
17414
+ CoordinationType.SAMPLE_SET_COLOR,
17415
+ CoordinationType.FEATURE_SELECTION
17416
+ ],
17342
17417
  [ViewType.LINK_CONTROLLER]: [],
17343
17418
  [ViewType.BIOMARKER_SELECT]: [
17419
+ CoordinationType.DATASET,
17420
+ CoordinationType.OBS_TYPE,
17421
+ CoordinationType.SAMPLE_TYPE,
17344
17422
  CoordinationType.FEATURE_SELECTION,
17345
17423
  CoordinationType.SAMPLE_SET_SELECTION,
17346
17424
  CoordinationType.SAMPLE_SET_FILTER,
17347
17425
  CoordinationType.OBS_SET_SELECTION,
17348
17426
  CoordinationType.OBS_SET_FILTER
17349
17427
  // TODO: create coordination types for internal state of the biomarker selection view?
17428
+ ],
17429
+ [ViewType.COMPARATIVE_HEADING]: [
17430
+ CoordinationType.DATASET,
17431
+ CoordinationType.OBS_TYPE,
17432
+ CoordinationType.SAMPLE_TYPE,
17433
+ CoordinationType.FEATURE_SELECTION,
17434
+ CoordinationType.SAMPLE_SET_SELECTION,
17435
+ CoordinationType.SAMPLE_SET_FILTER,
17436
+ CoordinationType.OBS_SET_SELECTION,
17437
+ CoordinationType.OBS_SET_FILTER
17438
+ ],
17439
+ [ViewType.TREEMAP]: [
17440
+ CoordinationType.DATASET,
17441
+ CoordinationType.OBS_TYPE,
17442
+ CoordinationType.FEATURE_TYPE,
17443
+ CoordinationType.FEATURE_VALUE_TYPE,
17444
+ CoordinationType.OBS_FILTER,
17445
+ CoordinationType.OBS_HIGHLIGHT,
17446
+ CoordinationType.OBS_SET_SELECTION,
17447
+ CoordinationType.OBS_SET_FILTER,
17448
+ CoordinationType.OBS_SELECTION,
17449
+ CoordinationType.OBS_SELECTION_MODE,
17450
+ CoordinationType.OBS_SET_HIGHLIGHT,
17451
+ CoordinationType.OBS_SET_COLOR,
17452
+ CoordinationType.OBS_COLOR_ENCODING,
17453
+ CoordinationType.ADDITIONAL_OBS_SETS,
17454
+ CoordinationType.SAMPLE_TYPE,
17455
+ CoordinationType.SAMPLE_SET_SELECTION,
17456
+ CoordinationType.SAMPLE_SET_FILTER,
17457
+ CoordinationType.SAMPLE_SET_COLOR,
17458
+ CoordinationType.SAMPLE_SELECTION,
17459
+ CoordinationType.SAMPLE_SELECTION_MODE,
17460
+ CoordinationType.SAMPLE_FILTER,
17461
+ CoordinationType.SAMPLE_FILTER_MODE,
17462
+ CoordinationType.SAMPLE_HIGHLIGHT,
17463
+ CoordinationType.HIERARCHY_LEVELS
17350
17464
  ]
17351
17465
  };
17352
17466
  const GLOBAL_LABELS = ["z", "t"];
@@ -17722,6 +17836,258 @@ plur.addPluralRule("interstitium", "interstitia");
17722
17836
  function capitalize(word) {
17723
17837
  return word ? word.charAt(0).toUpperCase() + word.slice(1) : "";
17724
17838
  }
17839
+ var loglevel = { exports: {} };
17840
+ (function(module2) {
17841
+ (function(root2, definition) {
17842
+ if (module2.exports) {
17843
+ module2.exports = definition();
17844
+ } else {
17845
+ root2.log = definition();
17846
+ }
17847
+ })(commonjsGlobal, function() {
17848
+ var noop2 = function() {
17849
+ };
17850
+ var undefinedType = "undefined";
17851
+ var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
17852
+ var logMethods = [
17853
+ "trace",
17854
+ "debug",
17855
+ "info",
17856
+ "warn",
17857
+ "error"
17858
+ ];
17859
+ var _loggersByName = {};
17860
+ var defaultLogger = null;
17861
+ function bindMethod(obj, methodName) {
17862
+ var method = obj[methodName];
17863
+ if (typeof method.bind === "function") {
17864
+ return method.bind(obj);
17865
+ } else {
17866
+ try {
17867
+ return Function.prototype.bind.call(method, obj);
17868
+ } catch (e2) {
17869
+ return function() {
17870
+ return Function.prototype.apply.apply(method, [obj, arguments]);
17871
+ };
17872
+ }
17873
+ }
17874
+ }
17875
+ function traceForIE() {
17876
+ if (console.log) {
17877
+ if (console.log.apply) {
17878
+ console.log.apply(console, arguments);
17879
+ } else {
17880
+ Function.prototype.apply.apply(console.log, [console, arguments]);
17881
+ }
17882
+ }
17883
+ if (console.trace)
17884
+ console.trace();
17885
+ }
17886
+ function realMethod(methodName) {
17887
+ if (methodName === "debug") {
17888
+ methodName = "log";
17889
+ }
17890
+ if (typeof console === undefinedType) {
17891
+ return false;
17892
+ } else if (methodName === "trace" && isIE) {
17893
+ return traceForIE;
17894
+ } else if (console[methodName] !== void 0) {
17895
+ return bindMethod(console, methodName);
17896
+ } else if (console.log !== void 0) {
17897
+ return bindMethod(console, "log");
17898
+ } else {
17899
+ return noop2;
17900
+ }
17901
+ }
17902
+ function replaceLoggingMethods() {
17903
+ var level = this.getLevel();
17904
+ for (var i2 = 0; i2 < logMethods.length; i2++) {
17905
+ var methodName = logMethods[i2];
17906
+ this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
17907
+ }
17908
+ this.log = this.debug;
17909
+ if (typeof console === undefinedType && level < this.levels.SILENT) {
17910
+ return "No console available for logging";
17911
+ }
17912
+ }
17913
+ function enableLoggingWhenConsoleArrives(methodName) {
17914
+ return function() {
17915
+ if (typeof console !== undefinedType) {
17916
+ replaceLoggingMethods.call(this);
17917
+ this[methodName].apply(this, arguments);
17918
+ }
17919
+ };
17920
+ }
17921
+ function defaultMethodFactory(methodName, _level, _loggerName) {
17922
+ return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
17923
+ }
17924
+ function Logger(name2, factory) {
17925
+ var self2 = this;
17926
+ var inheritedLevel;
17927
+ var defaultLevel;
17928
+ var userLevel;
17929
+ var storageKey = "loglevel";
17930
+ if (typeof name2 === "string") {
17931
+ storageKey += ":" + name2;
17932
+ } else if (typeof name2 === "symbol") {
17933
+ storageKey = void 0;
17934
+ }
17935
+ function persistLevelIfPossible(levelNum) {
17936
+ var levelName = (logMethods[levelNum] || "silent").toUpperCase();
17937
+ if (typeof window === undefinedType || !storageKey)
17938
+ return;
17939
+ try {
17940
+ window.localStorage[storageKey] = levelName;
17941
+ return;
17942
+ } catch (ignore) {
17943
+ }
17944
+ try {
17945
+ window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
17946
+ } catch (ignore) {
17947
+ }
17948
+ }
17949
+ function getPersistedLevel() {
17950
+ var storedLevel;
17951
+ if (typeof window === undefinedType || !storageKey)
17952
+ return;
17953
+ try {
17954
+ storedLevel = window.localStorage[storageKey];
17955
+ } catch (ignore) {
17956
+ }
17957
+ if (typeof storedLevel === undefinedType) {
17958
+ try {
17959
+ var cookie = window.document.cookie;
17960
+ var cookieName = encodeURIComponent(storageKey);
17961
+ var location = cookie.indexOf(cookieName + "=");
17962
+ if (location !== -1) {
17963
+ storedLevel = /^([^;]+)/.exec(
17964
+ cookie.slice(location + cookieName.length + 1)
17965
+ )[1];
17966
+ }
17967
+ } catch (ignore) {
17968
+ }
17969
+ }
17970
+ if (self2.levels[storedLevel] === void 0) {
17971
+ storedLevel = void 0;
17972
+ }
17973
+ return storedLevel;
17974
+ }
17975
+ function clearPersistedLevel() {
17976
+ if (typeof window === undefinedType || !storageKey)
17977
+ return;
17978
+ try {
17979
+ window.localStorage.removeItem(storageKey);
17980
+ } catch (ignore) {
17981
+ }
17982
+ try {
17983
+ window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
17984
+ } catch (ignore) {
17985
+ }
17986
+ }
17987
+ function normalizeLevel(input) {
17988
+ var level = input;
17989
+ if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
17990
+ level = self2.levels[level.toUpperCase()];
17991
+ }
17992
+ if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
17993
+ return level;
17994
+ } else {
17995
+ throw new TypeError("log.setLevel() called with invalid level: " + input);
17996
+ }
17997
+ }
17998
+ self2.name = name2;
17999
+ self2.levels = {
18000
+ "TRACE": 0,
18001
+ "DEBUG": 1,
18002
+ "INFO": 2,
18003
+ "WARN": 3,
18004
+ "ERROR": 4,
18005
+ "SILENT": 5
18006
+ };
18007
+ self2.methodFactory = factory || defaultMethodFactory;
18008
+ self2.getLevel = function() {
18009
+ if (userLevel != null) {
18010
+ return userLevel;
18011
+ } else if (defaultLevel != null) {
18012
+ return defaultLevel;
18013
+ } else {
18014
+ return inheritedLevel;
18015
+ }
18016
+ };
18017
+ self2.setLevel = function(level, persist) {
18018
+ userLevel = normalizeLevel(level);
18019
+ if (persist !== false) {
18020
+ persistLevelIfPossible(userLevel);
18021
+ }
18022
+ return replaceLoggingMethods.call(self2);
18023
+ };
18024
+ self2.setDefaultLevel = function(level) {
18025
+ defaultLevel = normalizeLevel(level);
18026
+ if (!getPersistedLevel()) {
18027
+ self2.setLevel(level, false);
18028
+ }
18029
+ };
18030
+ self2.resetLevel = function() {
18031
+ userLevel = null;
18032
+ clearPersistedLevel();
18033
+ replaceLoggingMethods.call(self2);
18034
+ };
18035
+ self2.enableAll = function(persist) {
18036
+ self2.setLevel(self2.levels.TRACE, persist);
18037
+ };
18038
+ self2.disableAll = function(persist) {
18039
+ self2.setLevel(self2.levels.SILENT, persist);
18040
+ };
18041
+ self2.rebuild = function() {
18042
+ if (defaultLogger !== self2) {
18043
+ inheritedLevel = normalizeLevel(defaultLogger.getLevel());
18044
+ }
18045
+ replaceLoggingMethods.call(self2);
18046
+ if (defaultLogger === self2) {
18047
+ for (var childName in _loggersByName) {
18048
+ _loggersByName[childName].rebuild();
18049
+ }
18050
+ }
18051
+ };
18052
+ inheritedLevel = normalizeLevel(
18053
+ defaultLogger ? defaultLogger.getLevel() : "WARN"
18054
+ );
18055
+ var initialLevel = getPersistedLevel();
18056
+ if (initialLevel != null) {
18057
+ userLevel = normalizeLevel(initialLevel);
18058
+ }
18059
+ replaceLoggingMethods.call(self2);
18060
+ }
18061
+ defaultLogger = new Logger();
18062
+ defaultLogger.getLogger = function getLogger(name2) {
18063
+ if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
18064
+ throw new TypeError("You must supply a name when creating a logger.");
18065
+ }
18066
+ var logger = _loggersByName[name2];
18067
+ if (!logger) {
18068
+ logger = _loggersByName[name2] = new Logger(
18069
+ name2,
18070
+ defaultLogger.methodFactory
18071
+ );
18072
+ }
18073
+ return logger;
18074
+ };
18075
+ var _log = typeof window !== undefinedType ? window.log : void 0;
18076
+ defaultLogger.noConflict = function() {
18077
+ if (typeof window !== undefinedType && window.log === defaultLogger) {
18078
+ window.log = _log;
18079
+ }
18080
+ return defaultLogger;
18081
+ };
18082
+ defaultLogger.getLoggers = function getLoggers2() {
18083
+ return _loggersByName;
18084
+ };
18085
+ defaultLogger["default"] = defaultLogger;
18086
+ return defaultLogger;
18087
+ });
18088
+ })(loglevel);
18089
+ var loglevelExports = loglevel.exports;
18090
+ const log$5 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
17725
18091
  const VIEWER_PALETTE = [
17726
18092
  [0, 0, 255],
17727
18093
  [0, 255, 0],
@@ -17814,7 +18180,7 @@ var reTrimStart = /^\s+/;
17814
18180
  function baseTrim(string) {
17815
18181
  return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
17816
18182
  }
17817
- function isObject$4(value) {
18183
+ function isObject$5(value) {
17818
18184
  var type2 = typeof value;
17819
18185
  return value != null && (type2 == "object" || type2 == "function");
17820
18186
  }
@@ -17830,9 +18196,9 @@ function toNumber$1(value) {
17830
18196
  if (isSymbol$1(value)) {
17831
18197
  return NAN$1;
17832
18198
  }
17833
- if (isObject$4(value)) {
18199
+ if (isObject$5(value)) {
17834
18200
  var other = typeof value.valueOf == "function" ? value.valueOf() : value;
17835
- value = isObject$4(other) ? other + "" : other;
18201
+ value = isObject$5(other) ? other + "" : other;
17836
18202
  }
17837
18203
  if (typeof value != "string") {
17838
18204
  return value === 0 ? value : +value;
@@ -17854,8 +18220,8 @@ function toFinite(value) {
17854
18220
  return value === value ? value : 0;
17855
18221
  }
17856
18222
  var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
17857
- function isFunction$2(value) {
17858
- if (!isObject$4(value)) {
18223
+ function isFunction$3(value) {
18224
+ if (!isObject$5(value)) {
17859
18225
  return false;
17860
18226
  }
17861
18227
  var tag = baseGetTag(value);
@@ -17894,10 +18260,10 @@ var reIsNative = RegExp(
17894
18260
  "^" + funcToString.call(hasOwnProperty$8).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
17895
18261
  );
17896
18262
  function baseIsNative(value) {
17897
- if (!isObject$4(value) || isMasked(value)) {
18263
+ if (!isObject$5(value) || isMasked(value)) {
17898
18264
  return false;
17899
18265
  }
17900
- var pattern = isFunction$2(value) ? reIsNative : reIsHostCtor;
18266
+ var pattern = isFunction$3(value) ? reIsNative : reIsHostCtor;
17901
18267
  return pattern.test(toSource(value));
17902
18268
  }
17903
18269
  function getValue$1(object2, key) {
@@ -17924,10 +18290,10 @@ function isLength(value) {
17924
18290
  return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
17925
18291
  }
17926
18292
  function isArrayLike(value) {
17927
- return value != null && isLength(value.length) && !isFunction$2(value);
18293
+ return value != null && isLength(value.length) && !isFunction$3(value);
17928
18294
  }
17929
18295
  function isIterateeCall(value, index2, object2) {
17930
- if (!isObject$4(object2)) {
18296
+ if (!isObject$5(object2)) {
17931
18297
  return false;
17932
18298
  }
17933
18299
  var type2 = typeof index2;
@@ -18547,7 +18913,7 @@ function debounce$1(func, wait, options) {
18547
18913
  throw new TypeError(FUNC_ERROR_TEXT$1);
18548
18914
  }
18549
18915
  wait = toNumber$1(wait) || 0;
18550
- if (isObject$4(options)) {
18916
+ if (isObject$5(options)) {
18551
18917
  leading = !!options.leading;
18552
18918
  maxing = "maxWait" in options;
18553
18919
  maxWait = maxing ? nativeMax$2(toNumber$1(options.maxWait) || 0, wait) : maxWait;
@@ -23325,16 +23691,16 @@ function dirname(url) {
23325
23691
  return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
23326
23692
  }
23327
23693
  const isBoolean = (x2) => typeof x2 === "boolean";
23328
- const isFunction$1 = (x2) => typeof x2 === "function";
23329
- const isObject$3 = (x2) => x2 !== null && typeof x2 === "object";
23330
- const isPureObject = (x2) => isObject$3(x2) && x2.constructor === {}.constructor;
23694
+ const isFunction$2 = (x2) => typeof x2 === "function";
23695
+ const isObject$4 = (x2) => x2 !== null && typeof x2 === "object";
23696
+ const isPureObject = (x2) => isObject$4(x2) && x2.constructor === {}.constructor;
23331
23697
  const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
23332
23698
  const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
23333
23699
  const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
23334
23700
  const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
23335
23701
  const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
23336
- const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$3(x2) && isFunction$1(x2.tee) && isFunction$1(x2.cancel) && isFunction$1(x2.getReader);
23337
- const isReadableNodeStream = (x2) => isObject$3(x2) && isFunction$1(x2.read) && isFunction$1(x2.pipe) && isBoolean(x2.readable);
23702
+ const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$4(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
23703
+ const isReadableNodeStream = (x2) => isObject$4(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
23338
23704
  const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
23339
23705
  const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
23340
23706
  const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
@@ -24134,7 +24500,7 @@ function getFetchFunction(options, context) {
24134
24500
  if (typeof fetchOptions.fetch === "function") {
24135
24501
  return fetchOptions.fetch;
24136
24502
  }
24137
- if (isObject$3(fetchOptions.fetch)) {
24503
+ if (isObject$4(fetchOptions.fetch)) {
24138
24504
  return (url) => fetchFile(url, fetchOptions);
24139
24505
  }
24140
24506
  if (context !== null && context !== void 0 && context.fetch) {
@@ -24155,7 +24521,7 @@ function validateOptionsObject(options, id, defaultOptions2, deprecatedOptions,
24155
24521
  const loaderName = id || "Top level";
24156
24522
  const prefix2 = id ? "".concat(id, ".") : "";
24157
24523
  for (const key in options) {
24158
- const isSubOptions = !id && isObject$3(options[key]);
24524
+ const isSubOptions = !id && isObject$4(options[key]);
24159
24525
  const isBaseUriOption = key === "baseUri" && !id;
24160
24526
  const isWorkerUrlOption = key === "workerUrl" && id;
24161
24527
  if (!(key in defaultOptions2) && !isBaseUriOption && !isWorkerUrlOption) {
@@ -39522,9 +39888,9 @@ class Controller {
39522
39888
  updateTransition() {
39523
39889
  this.transitionManager.updateTransition();
39524
39890
  }
39525
- toggleEvents(eventNames2, enabled) {
39891
+ toggleEvents(eventNames, enabled) {
39526
39892
  if (this.eventManager) {
39527
- eventNames2.forEach((eventName) => {
39893
+ eventNames.forEach((eventName) => {
39528
39894
  if (this._events[eventName] !== enabled) {
39529
39895
  this._events[eventName] = enabled;
39530
39896
  if (enabled) {
@@ -42975,18 +43341,18 @@ var hammer$1 = { exports: {} };
42975
43341
  emit: function(input) {
42976
43342
  var self2 = this;
42977
43343
  var state = this.state;
42978
- function emit2(event) {
43344
+ function emit(event) {
42979
43345
  self2.manager.emit(event, input);
42980
43346
  }
42981
43347
  if (state < STATE_ENDED) {
42982
- emit2(self2.options.event + stateStr(state));
43348
+ emit(self2.options.event + stateStr(state));
42983
43349
  }
42984
- emit2(self2.options.event);
43350
+ emit(self2.options.event);
42985
43351
  if (input.additionalEvent) {
42986
- emit2(input.additionalEvent);
43352
+ emit(input.additionalEvent);
42987
43353
  }
42988
43354
  if (state >= STATE_ENDED) {
42989
- emit2(self2.options.event + stateStr(state));
43355
+ emit(self2.options.event + stateStr(state));
42990
43356
  }
42991
43357
  },
42992
43358
  /**
@@ -44346,7 +44712,7 @@ class EventRegistrar {
44346
44712
  isEmpty() {
44347
44713
  return !this._active;
44348
44714
  }
44349
- add(type2, handler, options, once3 = false, passive = false) {
44715
+ add(type2, handler, options, once = false, passive = false) {
44350
44716
  const { handlers, handlersByElement } = this;
44351
44717
  let opts = DEFAULT_OPTIONS$2;
44352
44718
  if (typeof options === "string" || options && options.addEventListener) {
@@ -44365,7 +44731,7 @@ class EventRegistrar {
44365
44731
  srcElement: opts.srcElement,
44366
44732
  priority: opts.priority
44367
44733
  };
44368
- if (once3) {
44734
+ if (once) {
44369
44735
  entry.once = true;
44370
44736
  }
44371
44737
  if (passive) {
@@ -44413,7 +44779,7 @@ class EventRegistrar {
44413
44779
  };
44414
44780
  const entriesToRemove = [];
44415
44781
  for (let i2 = 0; i2 < entries.length; i2++) {
44416
- const { type: type2, handler, once: once3 } = entries[i2];
44782
+ const { type: type2, handler, once } = entries[i2];
44417
44783
  handler({
44418
44784
  ...event,
44419
44785
  // @ts-ignore
@@ -44421,7 +44787,7 @@ class EventRegistrar {
44421
44787
  stopPropagation,
44422
44788
  stopImmediatePropagation
44423
44789
  });
44424
- if (once3) {
44790
+ if (once) {
44425
44791
  entriesToRemove.push(entries[i2]);
44426
44792
  }
44427
44793
  if (immediatePropagationStopped) {
@@ -44602,11 +44968,11 @@ class EventManager {
44602
44968
  /**
44603
44969
  * Process the event registration for a single event + handler.
44604
44970
  */
44605
- _addEventHandler(event, handler, opts, once3, passive) {
44971
+ _addEventHandler(event, handler, opts, once, passive) {
44606
44972
  if (typeof event !== "string") {
44607
44973
  opts = handler;
44608
44974
  for (const eventName in event) {
44609
- this._addEventHandler(eventName, event[eventName], opts, once3, passive);
44975
+ this._addEventHandler(eventName, event[eventName], opts, once, passive);
44610
44976
  }
44611
44977
  return;
44612
44978
  }
@@ -44621,7 +44987,7 @@ class EventManager {
44621
44987
  manager.on(eventAlias, eventRegistrar.handleEvent);
44622
44988
  }
44623
44989
  }
44624
- eventRegistrar.add(event, handler, opts, once3, passive);
44990
+ eventRegistrar.add(event, handler, opts, once, passive);
44625
44991
  if (!eventRegistrar.isEmpty()) {
44626
44992
  this._toggleRecognizer(eventRegistrar.recognizerName, true);
44627
44993
  }
@@ -47342,7 +47708,7 @@ function getPropTypes(props) {
47342
47708
  const ERR_NOT_OBJECT = "count(): argument not an object";
47343
47709
  const ERR_NOT_CONTAINER = "count(): argument not a container";
47344
47710
  function count(container) {
47345
- if (!isObject$2(container)) {
47711
+ if (!isObject$3(container)) {
47346
47712
  throw new Error(ERR_NOT_OBJECT);
47347
47713
  }
47348
47714
  if (typeof container.count === "function") {
@@ -47362,7 +47728,7 @@ function count(container) {
47362
47728
  function isPlainObject(value) {
47363
47729
  return value !== null && typeof value === "object" && value.constructor === Object;
47364
47730
  }
47365
- function isObject$2(value) {
47731
+ function isObject$3(value) {
47366
47732
  return value !== null && typeof value === "object";
47367
47733
  }
47368
47734
  function mergeShaders(target, source) {
@@ -84043,7 +84409,7 @@ function point(coordinates2, properties, options) {
84043
84409
  if (coordinates2.length < 2) {
84044
84410
  throw new Error("coordinates must be at least 2 numbers long");
84045
84411
  }
84046
- if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
84412
+ if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
84047
84413
  throw new Error("coordinates must contain numbers");
84048
84414
  }
84049
84415
  var geom = {
@@ -84244,10 +84610,10 @@ function convertArea(area2, originalUnit, finalUnit) {
84244
84610
  }
84245
84611
  return area2 / startFactor * finalFactor;
84246
84612
  }
84247
- function isNumber(num) {
84613
+ function isNumber$1(num) {
84248
84614
  return !isNaN(num) && num !== null && !Array.isArray(num);
84249
84615
  }
84250
- function isObject$1(input) {
84616
+ function isObject$2(input) {
84251
84617
  return !!input && input.constructor === Object;
84252
84618
  }
84253
84619
  function validateBBox(bbox2) {
@@ -84261,7 +84627,7 @@ function validateBBox(bbox2) {
84261
84627
  throw new Error("bbox must be an Array of 4 or 6 numbers");
84262
84628
  }
84263
84629
  bbox2.forEach(function(num) {
84264
- if (!isNumber(num)) {
84630
+ if (!isNumber$1(num)) {
84265
84631
  throw new Error("bbox must only contain numbers");
84266
84632
  }
84267
84633
  });
@@ -84287,8 +84653,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
84287
84653
  featureCollection: featureCollection$1,
84288
84654
  geometry,
84289
84655
  geometryCollection,
84290
- isNumber,
84291
- isObject: isObject$1,
84656
+ isNumber: isNumber$1,
84657
+ isObject: isObject$2,
84292
84658
  lengthToDegrees,
84293
84659
  lengthToRadians,
84294
84660
  lineString,
@@ -84730,7 +85096,7 @@ function lineReduce$1(geojson, callback, initialValue) {
84730
85096
  }
84731
85097
  function findSegment$1(geojson, options) {
84732
85098
  options = options || {};
84733
- if (!isObject$1(options))
85099
+ if (!isObject$2(options))
84734
85100
  throw new Error("options is invalid");
84735
85101
  var featureIndex = options.featureIndex || 0;
84736
85102
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -84822,7 +85188,7 @@ function findSegment$1(geojson, options) {
84822
85188
  }
84823
85189
  function findPoint$1(geojson, options) {
84824
85190
  options = options || {};
84825
- if (!isObject$1(options))
85191
+ if (!isObject$2(options))
84826
85192
  throw new Error("options is invalid");
84827
85193
  var featureIndex = options.featureIndex || 0;
84828
85194
  var multiFeatureIndex = options.multiFeatureIndex || 0;
@@ -84966,7 +85332,7 @@ function getCoords$1(coords) {
84966
85332
  throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
84967
85333
  }
84968
85334
  function containsNumber$1(coordinates2) {
84969
- if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
85335
+ if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
84970
85336
  return true;
84971
85337
  }
84972
85338
  if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
@@ -88022,7 +88388,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
88022
88388
  var toStr$1 = Object.prototype.toString;
88023
88389
  var concat = Array.prototype.concat;
88024
88390
  var defineDataProperty2 = defineDataProperty$1;
88025
- var isFunction = function(fn) {
88391
+ var isFunction$1 = function(fn) {
88026
88392
  return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
88027
88393
  };
88028
88394
  var supportsDescriptors$2 = hasPropertyDescriptors_1();
@@ -88032,7 +88398,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
88032
88398
  if (object2[name2] === value) {
88033
88399
  return;
88034
88400
  }
88035
- } else if (!isFunction(predicate) || !predicate()) {
88401
+ } else if (!isFunction$1(predicate) || !predicate()) {
88036
88402
  return;
88037
88403
  }
88038
88404
  }
@@ -88416,7 +88782,7 @@ function lineOverlap(line1, line2, options) {
88416
88782
  options = {};
88417
88783
  }
88418
88784
  options = options || {};
88419
- if (!isObject$1(options))
88785
+ if (!isObject$2(options))
88420
88786
  throw new Error("options is invalid");
88421
88787
  var tolerance = options.tolerance || 0;
88422
88788
  var features = [];
@@ -88976,19 +89342,19 @@ var jsts_min = { exports: {} };
88976
89342
  }, Object.defineProperties(w2, O);
88977
89343
  var T = function(t2, e3) {
88978
89344
  return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
88979
- }, R2 = function() {
89345
+ }, R = function() {
88980
89346
  }, P = { LOG_10: { configurable: true } };
88981
- R2.prototype.interfaces_ = function() {
89347
+ R.prototype.interfaces_ = function() {
88982
89348
  return [];
88983
- }, R2.prototype.getClass = function() {
88984
- return R2;
88985
- }, R2.log10 = function(t2) {
89349
+ }, R.prototype.getClass = function() {
89350
+ return R;
89351
+ }, R.log10 = function(t2) {
88986
89352
  var e3 = Math.log(t2);
88987
- return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R2.LOG_10;
88988
- }, R2.min = function(t2, e3, n3, i3) {
89353
+ return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
89354
+ }, R.min = function(t2, e3, n3, i3) {
88989
89355
  var r3 = t2;
88990
89356
  return e3 < r3 && (r3 = e3), n3 < r3 && (r3 = n3), i3 < r3 && (r3 = i3), r3;
88991
- }, R2.clamp = function() {
89357
+ }, R.clamp = function() {
88992
89358
  if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
88993
89359
  var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2];
88994
89360
  return t2 < e3 ? e3 : t2 > n3 ? n3 : t2;
@@ -88997,9 +89363,9 @@ var jsts_min = { exports: {} };
88997
89363
  var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
88998
89364
  return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
88999
89365
  }
89000
- }, R2.wrap = function(t2, e3) {
89366
+ }, R.wrap = function(t2, e3) {
89001
89367
  return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
89002
- }, R2.max = function() {
89368
+ }, R.max = function() {
89003
89369
  if (3 === arguments.length) {
89004
89370
  var t2 = arguments[0], e3 = arguments[1], n3 = arguments[2], i3 = t2;
89005
89371
  return e3 > i3 && (i3 = e3), n3 > i3 && (i3 = n3), i3;
@@ -89008,11 +89374,11 @@ var jsts_min = { exports: {} };
89008
89374
  var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
89009
89375
  return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
89010
89376
  }
89011
- }, R2.average = function(t2, e3) {
89377
+ }, R.average = function(t2, e3) {
89012
89378
  return (t2 + e3) / 2;
89013
89379
  }, P.LOG_10.get = function() {
89014
89380
  return Math.log(10);
89015
- }, Object.defineProperties(R2, P);
89381
+ }, Object.defineProperties(R, P);
89016
89382
  var D2 = function(t2) {
89017
89383
  this.str = t2;
89018
89384
  };
@@ -90167,7 +90533,7 @@ var jsts_min = { exports: {} };
90167
90533
  }
90168
90534
  } else
90169
90535
  r3 = true;
90170
- return r3 ? R2.min(at2.distancePointLine(t2, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t2, e3), at2.distancePointLine(i3, t2, e3)) : 0;
90536
+ return r3 ? R.min(at2.distancePointLine(t2, n3, i3), at2.distancePointLine(e3, n3, i3), at2.distancePointLine(n3, t2, e3), at2.distancePointLine(i3, t2, e3)) : 0;
90171
90537
  }, at2.isPointInRing = function(t2, e3) {
90172
90538
  return at2.locatePointInRing(t2, e3) !== w2.EXTERIOR;
90173
90539
  }, at2.computeLength = function(t2) {
@@ -90757,8 +91123,8 @@ var jsts_min = { exports: {} };
90757
91123
  (null === e3 || e3.compareTo(t2[n3]) > 0) && (e3 = t2[n3]);
90758
91124
  return e3;
90759
91125
  }, Lt.extract = function(t2, e3, n3) {
90760
- e3 = R2.clamp(e3, 0, t2.length);
90761
- var i3 = (n3 = R2.clamp(n3, -1, t2.length)) - e3 + 1;
91126
+ e3 = R.clamp(e3, 0, t2.length);
91127
+ var i3 = (n3 = R.clamp(n3, -1, t2.length)) - e3 + 1;
90762
91128
  n3 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n3 < e3 && (i3 = 0);
90763
91129
  var r3 = new Array(i3).fill(null);
90764
91130
  if (0 === i3)
@@ -96503,7 +96869,7 @@ var jsts_min = { exports: {} };
96503
96869
  return f3.getResultGeometry(c2);
96504
96870
  }
96505
96871
  }, di.precisionScaleFactor = function(t2, e3, n3) {
96506
- var i3 = t2.getEnvelopeInternal(), r3 = R2.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
96872
+ var i3 = t2.getEnvelopeInternal(), r3 = R.max(Math.abs(i3.getMaxX()), Math.abs(i3.getMaxY()), Math.abs(i3.getMinX()), Math.abs(i3.getMinY())) + 2 * (e3 > 0 ? e3 : 0), o3 = n3 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
96507
96873
  return Math.pow(10, o3);
96508
96874
  }, yi.CAP_ROUND.get = function() {
96509
96875
  return Cn.CAP_ROUND;
@@ -103894,372 +104260,216 @@ var layerMouseEvent = {};
103894
104260
  exports2["default"] = LayerMouseEvent;
103895
104261
  })(layerMouseEvent);
103896
104262
  var nebulaLayer = {};
103897
- var events = { exports: {} };
103898
- var R = typeof Reflect === "object" ? Reflect : null;
103899
- var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
103900
- return Function.prototype.apply.call(target, receiver, args);
103901
- };
103902
- var ReflectOwnKeys;
103903
- if (R && typeof R.ownKeys === "function") {
103904
- ReflectOwnKeys = R.ownKeys;
103905
- } else if (Object.getOwnPropertySymbols) {
103906
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
103907
- return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
103908
- };
103909
- } else {
103910
- ReflectOwnKeys = function ReflectOwnKeys2(target) {
103911
- return Object.getOwnPropertyNames(target);
103912
- };
103913
- }
103914
- function ProcessEmitWarning(warning2) {
103915
- if (console && console.warn)
103916
- console.warn(warning2);
103917
- }
103918
- var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
103919
- return value !== value;
103920
- };
103921
104263
  function EventEmitter() {
103922
- EventEmitter.init.call(this);
104264
+ this._events = this._events || {};
104265
+ this._maxListeners = this._maxListeners || void 0;
103923
104266
  }
103924
- events.exports = EventEmitter;
103925
- events.exports.once = once2;
104267
+ var events = EventEmitter;
103926
104268
  EventEmitter.EventEmitter = EventEmitter;
103927
104269
  EventEmitter.prototype._events = void 0;
103928
- EventEmitter.prototype._eventsCount = 0;
103929
104270
  EventEmitter.prototype._maxListeners = void 0;
103930
- var defaultMaxListeners = 10;
103931
- function checkListener(listener) {
103932
- if (typeof listener !== "function") {
103933
- throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
103934
- }
103935
- }
103936
- Object.defineProperty(EventEmitter, "defaultMaxListeners", {
103937
- enumerable: true,
103938
- get: function() {
103939
- return defaultMaxListeners;
103940
- },
103941
- set: function(arg) {
103942
- if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
103943
- throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
103944
- }
103945
- defaultMaxListeners = arg;
103946
- }
103947
- });
103948
- EventEmitter.init = function() {
103949
- if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
103950
- this._events = /* @__PURE__ */ Object.create(null);
103951
- this._eventsCount = 0;
103952
- }
103953
- this._maxListeners = this._maxListeners || void 0;
103954
- };
103955
- EventEmitter.prototype.setMaxListeners = function setMaxListeners(n2) {
103956
- if (typeof n2 !== "number" || n2 < 0 || NumberIsNaN(n2)) {
103957
- throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n2 + ".");
103958
- }
104271
+ EventEmitter.defaultMaxListeners = 10;
104272
+ EventEmitter.prototype.setMaxListeners = function(n2) {
104273
+ if (!isNumber(n2) || n2 < 0 || isNaN(n2))
104274
+ throw TypeError("n must be a positive number");
103959
104275
  this._maxListeners = n2;
103960
104276
  return this;
103961
104277
  };
103962
- function _getMaxListeners(that) {
103963
- if (that._maxListeners === void 0)
103964
- return EventEmitter.defaultMaxListeners;
103965
- return that._maxListeners;
103966
- }
103967
- EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
103968
- return _getMaxListeners(this);
103969
- };
103970
- EventEmitter.prototype.emit = function emit(type2) {
103971
- var args = [];
103972
- for (var i2 = 1; i2 < arguments.length; i2++)
103973
- args.push(arguments[i2]);
103974
- var doError = type2 === "error";
103975
- var events2 = this._events;
103976
- if (events2 !== void 0)
103977
- doError = doError && events2.error === void 0;
103978
- else if (!doError)
103979
- return false;
103980
- if (doError) {
103981
- var er;
103982
- if (args.length > 0)
103983
- er = args[0];
103984
- if (er instanceof Error) {
103985
- throw er;
103986
- }
103987
- var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
103988
- err2.context = er;
103989
- throw err2;
103990
- }
103991
- var handler = events2[type2];
103992
- if (handler === void 0)
104278
+ EventEmitter.prototype.emit = function(type2) {
104279
+ var er, handler, len2, args, i2, listeners;
104280
+ if (!this._events)
104281
+ this._events = {};
104282
+ if (type2 === "error") {
104283
+ if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
104284
+ er = arguments[1];
104285
+ if (er instanceof Error) {
104286
+ throw er;
104287
+ } else {
104288
+ var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
104289
+ err2.context = er;
104290
+ throw err2;
104291
+ }
104292
+ }
104293
+ }
104294
+ handler = this._events[type2];
104295
+ if (isUndefined(handler))
103993
104296
  return false;
103994
- if (typeof handler === "function") {
103995
- ReflectApply(handler, this, args);
103996
- } else {
103997
- var len2 = handler.length;
103998
- var listeners2 = arrayClone(handler, len2);
103999
- for (var i2 = 0; i2 < len2; ++i2)
104000
- ReflectApply(listeners2[i2], this, args);
104297
+ if (isFunction(handler)) {
104298
+ switch (arguments.length) {
104299
+ case 1:
104300
+ handler.call(this);
104301
+ break;
104302
+ case 2:
104303
+ handler.call(this, arguments[1]);
104304
+ break;
104305
+ case 3:
104306
+ handler.call(this, arguments[1], arguments[2]);
104307
+ break;
104308
+ default:
104309
+ args = Array.prototype.slice.call(arguments, 1);
104310
+ handler.apply(this, args);
104311
+ }
104312
+ } else if (isObject$1(handler)) {
104313
+ args = Array.prototype.slice.call(arguments, 1);
104314
+ listeners = handler.slice();
104315
+ len2 = listeners.length;
104316
+ for (i2 = 0; i2 < len2; i2++)
104317
+ listeners[i2].apply(this, args);
104001
104318
  }
104002
104319
  return true;
104003
104320
  };
104004
- function _addListener(target, type2, listener, prepend) {
104321
+ EventEmitter.prototype.addListener = function(type2, listener) {
104005
104322
  var m;
104006
- var events2;
104007
- var existing;
104008
- checkListener(listener);
104009
- events2 = target._events;
104010
- if (events2 === void 0) {
104011
- events2 = target._events = /* @__PURE__ */ Object.create(null);
104012
- target._eventsCount = 0;
104013
- } else {
104014
- if (events2.newListener !== void 0) {
104015
- target.emit(
104016
- "newListener",
104017
- type2,
104018
- listener.listener ? listener.listener : listener
104019
- );
104020
- events2 = target._events;
104021
- }
104022
- existing = events2[type2];
104023
- }
104024
- if (existing === void 0) {
104025
- existing = events2[type2] = listener;
104026
- ++target._eventsCount;
104027
- } else {
104028
- if (typeof existing === "function") {
104029
- existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
104030
- } else if (prepend) {
104031
- existing.unshift(listener);
104323
+ if (!isFunction(listener))
104324
+ throw TypeError("listener must be a function");
104325
+ if (!this._events)
104326
+ this._events = {};
104327
+ if (this._events.newListener)
104328
+ this.emit(
104329
+ "newListener",
104330
+ type2,
104331
+ isFunction(listener.listener) ? listener.listener : listener
104332
+ );
104333
+ if (!this._events[type2])
104334
+ this._events[type2] = listener;
104335
+ else if (isObject$1(this._events[type2]))
104336
+ this._events[type2].push(listener);
104337
+ else
104338
+ this._events[type2] = [this._events[type2], listener];
104339
+ if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
104340
+ if (!isUndefined(this._maxListeners)) {
104341
+ m = this._maxListeners;
104032
104342
  } else {
104033
- existing.push(listener);
104343
+ m = EventEmitter.defaultMaxListeners;
104034
104344
  }
104035
- m = _getMaxListeners(target);
104036
- if (m > 0 && existing.length > m && !existing.warned) {
104037
- existing.warned = true;
104038
- var w2 = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type2) + " listeners added. Use emitter.setMaxListeners() to increase limit");
104039
- w2.name = "MaxListenersExceededWarning";
104040
- w2.emitter = target;
104041
- w2.type = type2;
104042
- w2.count = existing.length;
104043
- ProcessEmitWarning(w2);
104345
+ if (m && m > 0 && this._events[type2].length > m) {
104346
+ this._events[type2].warned = true;
104347
+ console.error(
104348
+ "(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
104349
+ this._events[type2].length
104350
+ );
104351
+ if (typeof console.trace === "function") {
104352
+ console.trace();
104353
+ }
104044
104354
  }
104045
104355
  }
104046
- return target;
104047
- }
104048
- EventEmitter.prototype.addListener = function addListener(type2, listener) {
104049
- return _addListener(this, type2, listener, false);
104050
- };
104051
- EventEmitter.prototype.on = EventEmitter.prototype.addListener;
104052
- EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
104053
- return _addListener(this, type2, listener, true);
104054
- };
104055
- function onceWrapper() {
104056
- if (!this.fired) {
104057
- this.target.removeListener(this.type, this.wrapFn);
104058
- this.fired = true;
104059
- if (arguments.length === 0)
104060
- return this.listener.call(this.target);
104061
- return this.listener.apply(this.target, arguments);
104062
- }
104063
- }
104064
- function _onceWrap(target, type2, listener) {
104065
- var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
104066
- var wrapped = onceWrapper.bind(state);
104067
- wrapped.listener = listener;
104068
- state.wrapFn = wrapped;
104069
- return wrapped;
104070
- }
104071
- EventEmitter.prototype.once = function once(type2, listener) {
104072
- checkListener(listener);
104073
- this.on(type2, _onceWrap(this, type2, listener));
104074
104356
  return this;
104075
104357
  };
104076
- EventEmitter.prototype.prependOnceListener = function prependOnceListener(type2, listener) {
104077
- checkListener(listener);
104078
- this.prependListener(type2, _onceWrap(this, type2, listener));
104358
+ EventEmitter.prototype.on = EventEmitter.prototype.addListener;
104359
+ EventEmitter.prototype.once = function(type2, listener) {
104360
+ if (!isFunction(listener))
104361
+ throw TypeError("listener must be a function");
104362
+ var fired = false;
104363
+ function g2() {
104364
+ this.removeListener(type2, g2);
104365
+ if (!fired) {
104366
+ fired = true;
104367
+ listener.apply(this, arguments);
104368
+ }
104369
+ }
104370
+ g2.listener = listener;
104371
+ this.on(type2, g2);
104079
104372
  return this;
104080
104373
  };
104081
- EventEmitter.prototype.removeListener = function removeListener(type2, listener) {
104082
- var list, events2, position, i2, originalListener;
104083
- checkListener(listener);
104084
- events2 = this._events;
104085
- if (events2 === void 0)
104374
+ EventEmitter.prototype.removeListener = function(type2, listener) {
104375
+ var list, position, length2, i2;
104376
+ if (!isFunction(listener))
104377
+ throw TypeError("listener must be a function");
104378
+ if (!this._events || !this._events[type2])
104086
104379
  return this;
104087
- list = events2[type2];
104088
- if (list === void 0)
104089
- return this;
104090
- if (list === listener || list.listener === listener) {
104091
- if (--this._eventsCount === 0)
104092
- this._events = /* @__PURE__ */ Object.create(null);
104093
- else {
104094
- delete events2[type2];
104095
- if (events2.removeListener)
104096
- this.emit("removeListener", type2, list.listener || listener);
104097
- }
104098
- } else if (typeof list !== "function") {
104099
- position = -1;
104100
- for (i2 = list.length - 1; i2 >= 0; i2--) {
104101
- if (list[i2] === listener || list[i2].listener === listener) {
104102
- originalListener = list[i2].listener;
104380
+ list = this._events[type2];
104381
+ length2 = list.length;
104382
+ position = -1;
104383
+ if (list === listener || isFunction(list.listener) && list.listener === listener) {
104384
+ delete this._events[type2];
104385
+ if (this._events.removeListener)
104386
+ this.emit("removeListener", type2, listener);
104387
+ } else if (isObject$1(list)) {
104388
+ for (i2 = length2; i2-- > 0; ) {
104389
+ if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
104103
104390
  position = i2;
104104
104391
  break;
104105
104392
  }
104106
104393
  }
104107
104394
  if (position < 0)
104108
104395
  return this;
104109
- if (position === 0)
104110
- list.shift();
104111
- else {
104112
- spliceOne(list, position);
104396
+ if (list.length === 1) {
104397
+ list.length = 0;
104398
+ delete this._events[type2];
104399
+ } else {
104400
+ list.splice(position, 1);
104113
104401
  }
104114
- if (list.length === 1)
104115
- events2[type2] = list[0];
104116
- if (events2.removeListener !== void 0)
104117
- this.emit("removeListener", type2, originalListener || listener);
104402
+ if (this._events.removeListener)
104403
+ this.emit("removeListener", type2, listener);
104118
104404
  }
104119
104405
  return this;
104120
104406
  };
104121
- EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
104122
- EventEmitter.prototype.removeAllListeners = function removeAllListeners(type2) {
104123
- var listeners2, events2, i2;
104124
- events2 = this._events;
104125
- if (events2 === void 0)
104407
+ EventEmitter.prototype.removeAllListeners = function(type2) {
104408
+ var key, listeners;
104409
+ if (!this._events)
104126
104410
  return this;
104127
- if (events2.removeListener === void 0) {
104128
- if (arguments.length === 0) {
104129
- this._events = /* @__PURE__ */ Object.create(null);
104130
- this._eventsCount = 0;
104131
- } else if (events2[type2] !== void 0) {
104132
- if (--this._eventsCount === 0)
104133
- this._events = /* @__PURE__ */ Object.create(null);
104134
- else
104135
- delete events2[type2];
104136
- }
104411
+ if (!this._events.removeListener) {
104412
+ if (arguments.length === 0)
104413
+ this._events = {};
104414
+ else if (this._events[type2])
104415
+ delete this._events[type2];
104137
104416
  return this;
104138
104417
  }
104139
104418
  if (arguments.length === 0) {
104140
- var keys3 = Object.keys(events2);
104141
- var key;
104142
- for (i2 = 0; i2 < keys3.length; ++i2) {
104143
- key = keys3[i2];
104419
+ for (key in this._events) {
104144
104420
  if (key === "removeListener")
104145
104421
  continue;
104146
104422
  this.removeAllListeners(key);
104147
104423
  }
104148
104424
  this.removeAllListeners("removeListener");
104149
- this._events = /* @__PURE__ */ Object.create(null);
104150
- this._eventsCount = 0;
104425
+ this._events = {};
104151
104426
  return this;
104152
104427
  }
104153
- listeners2 = events2[type2];
104154
- if (typeof listeners2 === "function") {
104155
- this.removeListener(type2, listeners2);
104156
- } else if (listeners2 !== void 0) {
104157
- for (i2 = listeners2.length - 1; i2 >= 0; i2--) {
104158
- this.removeListener(type2, listeners2[i2]);
104159
- }
104428
+ listeners = this._events[type2];
104429
+ if (isFunction(listeners)) {
104430
+ this.removeListener(type2, listeners);
104431
+ } else if (listeners) {
104432
+ while (listeners.length)
104433
+ this.removeListener(type2, listeners[listeners.length - 1]);
104160
104434
  }
104435
+ delete this._events[type2];
104161
104436
  return this;
104162
104437
  };
104163
- function _listeners(target, type2, unwrap) {
104164
- var events2 = target._events;
104165
- if (events2 === void 0)
104166
- return [];
104167
- var evlistener = events2[type2];
104168
- if (evlistener === void 0)
104169
- return [];
104170
- if (typeof evlistener === "function")
104171
- return unwrap ? [evlistener.listener || evlistener] : [evlistener];
104172
- return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
104173
- }
104174
- EventEmitter.prototype.listeners = function listeners(type2) {
104175
- return _listeners(this, type2, true);
104176
- };
104177
- EventEmitter.prototype.rawListeners = function rawListeners(type2) {
104178
- return _listeners(this, type2, false);
104179
- };
104180
- EventEmitter.listenerCount = function(emitter, type2) {
104181
- if (typeof emitter.listenerCount === "function") {
104182
- return emitter.listenerCount(type2);
104183
- } else {
104184
- return listenerCount.call(emitter, type2);
104185
- }
104438
+ EventEmitter.prototype.listeners = function(type2) {
104439
+ var ret;
104440
+ if (!this._events || !this._events[type2])
104441
+ ret = [];
104442
+ else if (isFunction(this._events[type2]))
104443
+ ret = [this._events[type2]];
104444
+ else
104445
+ ret = this._events[type2].slice();
104446
+ return ret;
104186
104447
  };
104187
- EventEmitter.prototype.listenerCount = listenerCount;
104188
- function listenerCount(type2) {
104189
- var events2 = this._events;
104190
- if (events2 !== void 0) {
104191
- var evlistener = events2[type2];
104192
- if (typeof evlistener === "function") {
104448
+ EventEmitter.prototype.listenerCount = function(type2) {
104449
+ if (this._events) {
104450
+ var evlistener = this._events[type2];
104451
+ if (isFunction(evlistener))
104193
104452
  return 1;
104194
- } else if (evlistener !== void 0) {
104453
+ else if (evlistener)
104195
104454
  return evlistener.length;
104196
- }
104197
104455
  }
104198
104456
  return 0;
104199
- }
104200
- EventEmitter.prototype.eventNames = function eventNames() {
104201
- return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
104202
104457
  };
104203
- function arrayClone(arr, n2) {
104204
- var copy2 = new Array(n2);
104205
- for (var i2 = 0; i2 < n2; ++i2)
104206
- copy2[i2] = arr[i2];
104207
- return copy2;
104208
- }
104209
- function spliceOne(list, index2) {
104210
- for (; index2 + 1 < list.length; index2++)
104211
- list[index2] = list[index2 + 1];
104212
- list.pop();
104213
- }
104214
- function unwrapListeners(arr) {
104215
- var ret = new Array(arr.length);
104216
- for (var i2 = 0; i2 < ret.length; ++i2) {
104217
- ret[i2] = arr[i2].listener || arr[i2];
104218
- }
104219
- return ret;
104458
+ EventEmitter.listenerCount = function(emitter, type2) {
104459
+ return emitter.listenerCount(type2);
104460
+ };
104461
+ function isFunction(arg) {
104462
+ return typeof arg === "function";
104220
104463
  }
104221
- function once2(emitter, name2) {
104222
- return new Promise(function(resolve, reject) {
104223
- function errorListener(err2) {
104224
- emitter.removeListener(name2, resolver);
104225
- reject(err2);
104226
- }
104227
- function resolver() {
104228
- if (typeof emitter.removeListener === "function") {
104229
- emitter.removeListener("error", errorListener);
104230
- }
104231
- resolve([].slice.call(arguments));
104232
- }
104233
- eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
104234
- if (name2 !== "error") {
104235
- addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
104236
- }
104237
- });
104464
+ function isNumber(arg) {
104465
+ return typeof arg === "number";
104238
104466
  }
104239
- function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
104240
- if (typeof emitter.on === "function") {
104241
- eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
104242
- }
104467
+ function isObject$1(arg) {
104468
+ return typeof arg === "object" && arg !== null;
104243
104469
  }
104244
- function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
104245
- if (typeof emitter.on === "function") {
104246
- if (flags3.once) {
104247
- emitter.once(name2, listener);
104248
- } else {
104249
- emitter.on(name2, listener);
104250
- }
104251
- } else if (typeof emitter.addEventListener === "function") {
104252
- emitter.addEventListener(name2, function wrapListener(arg) {
104253
- if (flags3.once) {
104254
- emitter.removeEventListener(name2, wrapListener);
104255
- }
104256
- listener(arg);
104257
- });
104258
- } else {
104259
- throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
104260
- }
104470
+ function isUndefined(arg) {
104471
+ return arg === void 0;
104261
104472
  }
104262
- var eventsExports = events.exports;
104263
104473
  var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
104264
104474
  var rnds8 = new Uint8Array(16);
104265
104475
  function rng() {
@@ -104625,7 +104835,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
104625
104835
  value: true
104626
104836
  });
104627
104837
  exports2["default"] = void 0;
104628
- var _events = _interopRequireDefault2(eventsExports);
104838
+ var _events = _interopRequireDefault2(events);
104629
104839
  var _uuid = _interopRequireDefault2(require$$1$3);
104630
104840
  function _interopRequireDefault2(obj) {
104631
104841
  return obj && obj.__esModule ? obj : { "default": obj };
@@ -105109,7 +105319,7 @@ function rhumbDistance$2(from, to, options) {
105109
105319
  }
105110
105320
  function calculateRhumbDistance(origin, destination2, radius) {
105111
105321
  radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
105112
- var R2 = radius;
105322
+ var R = radius;
105113
105323
  var phi12 = origin[1] * Math.PI / 180;
105114
105324
  var phi2 = destination2[1] * Math.PI / 180;
105115
105325
  var DeltaPhi = phi2 - phi12;
@@ -105120,7 +105330,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
105120
105330
  var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
105121
105331
  var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
105122
105332
  var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
105123
- var dist = delta * R2;
105333
+ var dist = delta * R;
105124
105334
  return dist;
105125
105335
  }
105126
105336
  js$e.default = rhumbDistance$2;
@@ -119629,7 +119839,7 @@ var document_1 = doccy;
119629
119839
  value: true
119630
119840
  });
119631
119841
  exports2["default"] = void 0;
119632
- var _events = eventsExports;
119842
+ var _events = events;
119633
119843
  var _document = _interopRequireDefault2(document_1);
119634
119844
  var _core = require$$2$2;
119635
119845
  var _deckDrawer = _interopRequireDefault2(deckDrawer);
@@ -121550,16 +121760,16 @@ function addDecoder(cases, importFn) {
121550
121760
  }
121551
121761
  cases.forEach((c) => registry$1.set(c, importFn));
121552
121762
  }
121553
- addDecoder([void 0, 1], () => import("./raw-2af7db47.js").then((m) => m.default));
121554
- addDecoder(5, () => import("./lzw-42db9931.js").then((m) => m.default));
121763
+ addDecoder([void 0, 1], () => import("./raw-023f0a8a.js").then((m) => m.default));
121764
+ addDecoder(5, () => import("./lzw-a54d56e5.js").then((m) => m.default));
121555
121765
  addDecoder(6, () => {
121556
121766
  throw new Error("old style JPEG compression is not supported.");
121557
121767
  });
121558
- addDecoder(7, () => import("./jpeg-04438802.js").then((m) => m.default));
121559
- addDecoder([8, 32946], () => import("./deflate-fe4d93d9.js").then((m) => m.default));
121560
- addDecoder(32773, () => import("./packbits-8247f54b.js").then((m) => m.default));
121561
- addDecoder(34887, () => import("./lerc-75c58a66.js").then((m) => m.default));
121562
- addDecoder(50001, () => import("./webimage-dfdc750b.js").then((m) => m.default));
121768
+ addDecoder(7, () => import("./jpeg-365ad956.js").then((m) => m.default));
121769
+ addDecoder([8, 32946], () => import("./deflate-33376e80.js").then((m) => m.default));
121770
+ addDecoder(32773, () => import("./packbits-cc9c07c8.js").then((m) => m.default));
121771
+ addDecoder(34887, () => import("./lerc-60a4d079.js").then((m) => m.default));
121772
+ addDecoder(50001, () => import("./webimage-abe1602e.js").then((m) => m.default));
121563
121773
  function decodeRowAcc(row, stride) {
121564
121774
  let length2 = row.length - stride;
121565
121775
  let offset4 = 0;
@@ -125386,16 +125596,16 @@ createCommonjsModule(function(module2) {
125386
125596
  if (!new Events().__proto__)
125387
125597
  prefix2 = false;
125388
125598
  }
125389
- function EE(fn, context, once3) {
125599
+ function EE(fn, context, once) {
125390
125600
  this.fn = fn;
125391
125601
  this.context = context;
125392
- this.once = once3 || false;
125602
+ this.once = once || false;
125393
125603
  }
125394
- function addListener2(emitter, event, fn, context, once3) {
125604
+ function addListener(emitter, event, fn, context, once) {
125395
125605
  if (typeof fn !== "function") {
125396
125606
  throw new TypeError("The listener must be a function");
125397
125607
  }
125398
- var listener = new EE(fn, context || emitter, once3), evt = prefix2 ? prefix2 + event : event;
125608
+ var listener = new EE(fn, context || emitter, once), evt = prefix2 ? prefix2 + event : event;
125399
125609
  if (!emitter._events[evt])
125400
125610
  emitter._events[evt] = listener, emitter._eventsCount++;
125401
125611
  else if (!emitter._events[evt].fn)
@@ -125414,7 +125624,7 @@ createCommonjsModule(function(module2) {
125414
125624
  this._events = new Events();
125415
125625
  this._eventsCount = 0;
125416
125626
  }
125417
- EventEmitter2.prototype.eventNames = function eventNames2() {
125627
+ EventEmitter2.prototype.eventNames = function eventNames() {
125418
125628
  var names = [], events2, name2;
125419
125629
  if (this._eventsCount === 0)
125420
125630
  return names;
@@ -125427,7 +125637,7 @@ createCommonjsModule(function(module2) {
125427
125637
  }
125428
125638
  return names;
125429
125639
  };
125430
- EventEmitter2.prototype.listeners = function listeners2(event) {
125640
+ EventEmitter2.prototype.listeners = function listeners(event) {
125431
125641
  var evt = prefix2 ? prefix2 + event : event, handlers = this._events[evt];
125432
125642
  if (!handlers)
125433
125643
  return [];
@@ -125438,76 +125648,76 @@ createCommonjsModule(function(module2) {
125438
125648
  }
125439
125649
  return ee;
125440
125650
  };
125441
- EventEmitter2.prototype.listenerCount = function listenerCount2(event) {
125442
- var evt = prefix2 ? prefix2 + event : event, listeners2 = this._events[evt];
125443
- if (!listeners2)
125651
+ EventEmitter2.prototype.listenerCount = function listenerCount(event) {
125652
+ var evt = prefix2 ? prefix2 + event : event, listeners = this._events[evt];
125653
+ if (!listeners)
125444
125654
  return 0;
125445
- if (listeners2.fn)
125655
+ if (listeners.fn)
125446
125656
  return 1;
125447
- return listeners2.length;
125657
+ return listeners.length;
125448
125658
  };
125449
- EventEmitter2.prototype.emit = function emit2(event, a1, a2, a3, a4, a5) {
125659
+ EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
125450
125660
  var evt = prefix2 ? prefix2 + event : event;
125451
125661
  if (!this._events[evt])
125452
125662
  return false;
125453
- var listeners2 = this._events[evt], len2 = arguments.length, args, i2;
125454
- if (listeners2.fn) {
125455
- if (listeners2.once)
125456
- this.removeListener(event, listeners2.fn, void 0, true);
125663
+ var listeners = this._events[evt], len2 = arguments.length, args, i2;
125664
+ if (listeners.fn) {
125665
+ if (listeners.once)
125666
+ this.removeListener(event, listeners.fn, void 0, true);
125457
125667
  switch (len2) {
125458
125668
  case 1:
125459
- return listeners2.fn.call(listeners2.context), true;
125669
+ return listeners.fn.call(listeners.context), true;
125460
125670
  case 2:
125461
- return listeners2.fn.call(listeners2.context, a1), true;
125671
+ return listeners.fn.call(listeners.context, a1), true;
125462
125672
  case 3:
125463
- return listeners2.fn.call(listeners2.context, a1, a2), true;
125673
+ return listeners.fn.call(listeners.context, a1, a2), true;
125464
125674
  case 4:
125465
- return listeners2.fn.call(listeners2.context, a1, a2, a3), true;
125675
+ return listeners.fn.call(listeners.context, a1, a2, a3), true;
125466
125676
  case 5:
125467
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4), true;
125677
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
125468
125678
  case 6:
125469
- return listeners2.fn.call(listeners2.context, a1, a2, a3, a4, a5), true;
125679
+ return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
125470
125680
  }
125471
125681
  for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
125472
125682
  args[i2 - 1] = arguments[i2];
125473
125683
  }
125474
- listeners2.fn.apply(listeners2.context, args);
125684
+ listeners.fn.apply(listeners.context, args);
125475
125685
  } else {
125476
- var length2 = listeners2.length, j;
125686
+ var length2 = listeners.length, j;
125477
125687
  for (i2 = 0; i2 < length2; i2++) {
125478
- if (listeners2[i2].once)
125479
- this.removeListener(event, listeners2[i2].fn, void 0, true);
125688
+ if (listeners[i2].once)
125689
+ this.removeListener(event, listeners[i2].fn, void 0, true);
125480
125690
  switch (len2) {
125481
125691
  case 1:
125482
- listeners2[i2].fn.call(listeners2[i2].context);
125692
+ listeners[i2].fn.call(listeners[i2].context);
125483
125693
  break;
125484
125694
  case 2:
125485
- listeners2[i2].fn.call(listeners2[i2].context, a1);
125695
+ listeners[i2].fn.call(listeners[i2].context, a1);
125486
125696
  break;
125487
125697
  case 3:
125488
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2);
125698
+ listeners[i2].fn.call(listeners[i2].context, a1, a2);
125489
125699
  break;
125490
125700
  case 4:
125491
- listeners2[i2].fn.call(listeners2[i2].context, a1, a2, a3);
125701
+ listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
125492
125702
  break;
125493
125703
  default:
125494
125704
  if (!args)
125495
125705
  for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
125496
125706
  args[j - 1] = arguments[j];
125497
125707
  }
125498
- listeners2[i2].fn.apply(listeners2[i2].context, args);
125708
+ listeners[i2].fn.apply(listeners[i2].context, args);
125499
125709
  }
125500
125710
  }
125501
125711
  }
125502
125712
  return true;
125503
125713
  };
125504
125714
  EventEmitter2.prototype.on = function on(event, fn, context) {
125505
- return addListener2(this, event, fn, context, false);
125715
+ return addListener(this, event, fn, context, false);
125506
125716
  };
125507
- EventEmitter2.prototype.once = function once3(event, fn, context) {
125508
- return addListener2(this, event, fn, context, true);
125717
+ EventEmitter2.prototype.once = function once(event, fn, context) {
125718
+ return addListener(this, event, fn, context, true);
125509
125719
  };
125510
- EventEmitter2.prototype.removeListener = function removeListener2(event, fn, context, once3) {
125720
+ EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
125511
125721
  var evt = prefix2 ? prefix2 + event : event;
125512
125722
  if (!this._events[evt])
125513
125723
  return this;
@@ -125515,15 +125725,15 @@ createCommonjsModule(function(module2) {
125515
125725
  clearEvent(this, evt);
125516
125726
  return this;
125517
125727
  }
125518
- var listeners2 = this._events[evt];
125519
- if (listeners2.fn) {
125520
- if (listeners2.fn === fn && (!once3 || listeners2.once) && (!context || listeners2.context === context)) {
125728
+ var listeners = this._events[evt];
125729
+ if (listeners.fn) {
125730
+ if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
125521
125731
  clearEvent(this, evt);
125522
125732
  }
125523
125733
  } else {
125524
- for (var i2 = 0, events2 = [], length2 = listeners2.length; i2 < length2; i2++) {
125525
- if (listeners2[i2].fn !== fn || once3 && !listeners2[i2].once || context && listeners2[i2].context !== context) {
125526
- events2.push(listeners2[i2]);
125734
+ for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
125735
+ if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
125736
+ events2.push(listeners[i2]);
125527
125737
  }
125528
125738
  }
125529
125739
  if (events2.length)
@@ -125533,7 +125743,7 @@ createCommonjsModule(function(module2) {
125533
125743
  }
125534
125744
  return this;
125535
125745
  };
125536
- EventEmitter2.prototype.removeAllListeners = function removeAllListeners2(event) {
125746
+ EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
125537
125747
  var evt;
125538
125748
  if (event) {
125539
125749
  evt = prefix2 ? prefix2 + event : event;
@@ -130016,7 +130226,7 @@ var blosc_codec = function() {
130016
130226
  b += Ga[z[a2++]];
130017
130227
  return b;
130018
130228
  }
130019
- var Q2 = {}, R2 = {}, S = {};
130229
+ var Q2 = {}, R = {}, S = {};
130020
130230
  function Ha(a2) {
130021
130231
  if (void 0 === a2)
130022
130232
  return "_unknown";
@@ -130061,8 +130271,8 @@ var blosc_codec = function() {
130061
130271
  });
130062
130272
  var e2 = Array(a2.length), g2 = [], k = 0;
130063
130273
  a2.forEach(function(h, l2) {
130064
- R2.hasOwnProperty(h) ? e2[l2] = R2[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
130065
- e2[l2] = R2[h];
130274
+ R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
130275
+ e2[l2] = R[h];
130066
130276
  ++k;
130067
130277
  k === g2.length && c(e2);
130068
130278
  }));
@@ -130075,12 +130285,12 @@ var blosc_codec = function() {
130075
130285
  throw new TypeError("registerType registeredInstance requires argPackAdvance");
130076
130286
  var d = b.name;
130077
130287
  a2 || T('type "' + d + '" must have a positive integer typeid pointer');
130078
- if (R2.hasOwnProperty(a2)) {
130288
+ if (R.hasOwnProperty(a2)) {
130079
130289
  if (c.U)
130080
130290
  return;
130081
130291
  T("Cannot register type '" + d + "' twice");
130082
130292
  }
130083
- R2[a2] = b;
130293
+ R[a2] = b;
130084
130294
  delete S[a2];
130085
130295
  Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
130086
130296
  e2();
@@ -130193,7 +130403,7 @@ var blosc_codec = function() {
130193
130403
  }
130194
130404
  function eb(a2, b) {
130195
130405
  function c(g2) {
130196
- e2[g2] || R2[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
130406
+ e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
130197
130407
  }
130198
130408
  var d = [], e2 = {};
130199
130409
  b.forEach(c);
@@ -130481,7 +130691,7 @@ var blosc_codec = function() {
130481
130691
  }, n: Qa, x: function(a2) {
130482
130692
  4 < a2 && (V[a2].P += 1);
130483
130693
  }, C: function(a2, b) {
130484
- var c = R2[a2];
130694
+ var c = R[a2];
130485
130695
  void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
130486
130696
  a2 = c.readValueFromPointer(b);
130487
130697
  return Ra(a2);
@@ -135389,10 +135599,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
135389
135599
  const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
135390
135600
  const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
135391
135601
  if (valueTexHeight > texSize) {
135392
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135602
+ log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135393
135603
  }
135394
135604
  if (colorTexHeight > texSize) {
135395
- console.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135605
+ log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
135396
135606
  }
135397
135607
  const totalData = new Uint8Array(texSize * valueTexHeight);
135398
135608
  const totalColors = new Uint8Array(texSize * colorTexHeight);