@vitessce/image-utils 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.
- package/dist/{deflate-8571803b.js → deflate-fa8eca5f.js} +1 -1
- package/dist/{index-93bb5c05.js → index-15b29b74.js} +558 -462
- package/dist/index.js +1 -1
- package/dist/{jpeg-0ecb3084.js → jpeg-027ef15c.js} +1 -1
- package/dist/{lerc-ba23f988.js → lerc-20f1f9f7.js} +1 -1
- package/dist/{lzw-10a67c5f.js → lzw-c733cdd2.js} +1 -1
- package/dist/{packbits-e306803f.js → packbits-1632422c.js} +1 -1
- package/dist/{raw-4787e9a9.js → raw-19fc03ba.js} +1 -1
- package/dist/{webimage-2e9db874.js → webimage-5d4ef463.js} +1 -1
- package/dist-tsc/ImageWrapper.js +2 -1
- package/package.json +5 -4
- package/src/ImageWrapper.ts +2 -2
|
@@ -85,7 +85,7 @@ var reTrimStart = /^\s+/;
|
|
|
85
85
|
function baseTrim(string) {
|
|
86
86
|
return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
|
87
87
|
}
|
|
88
|
-
function isObject$
|
|
88
|
+
function isObject$6(value) {
|
|
89
89
|
var type2 = typeof value;
|
|
90
90
|
return value != null && (type2 == "object" || type2 == "function");
|
|
91
91
|
}
|
|
@@ -101,9 +101,9 @@ function toNumber$1(value) {
|
|
|
101
101
|
if (isSymbol$1(value)) {
|
|
102
102
|
return NAN$1;
|
|
103
103
|
}
|
|
104
|
-
if (isObject$
|
|
104
|
+
if (isObject$6(value)) {
|
|
105
105
|
var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
|
106
|
-
value = isObject$
|
|
106
|
+
value = isObject$6(other) ? other + "" : other;
|
|
107
107
|
}
|
|
108
108
|
if (typeof value != "string") {
|
|
109
109
|
return value === 0 ? value : +value;
|
|
@@ -125,8 +125,8 @@ function toFinite(value) {
|
|
|
125
125
|
return value === value ? value : 0;
|
|
126
126
|
}
|
|
127
127
|
var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
|
128
|
-
function isFunction$
|
|
129
|
-
if (!isObject$
|
|
128
|
+
function isFunction$4(value) {
|
|
129
|
+
if (!isObject$6(value)) {
|
|
130
130
|
return false;
|
|
131
131
|
}
|
|
132
132
|
var tag2 = baseGetTag(value);
|
|
@@ -165,10 +165,10 @@ var reIsNative = RegExp(
|
|
|
165
165
|
"^" + funcToString.call(hasOwnProperty$a).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
166
166
|
);
|
|
167
167
|
function baseIsNative(value) {
|
|
168
|
-
if (!isObject$
|
|
168
|
+
if (!isObject$6(value) || isMasked(value)) {
|
|
169
169
|
return false;
|
|
170
170
|
}
|
|
171
|
-
var pattern = isFunction$
|
|
171
|
+
var pattern = isFunction$4(value) ? reIsNative : reIsHostCtor;
|
|
172
172
|
return pattern.test(toSource(value));
|
|
173
173
|
}
|
|
174
174
|
function getValue$1(object2, key) {
|
|
@@ -195,10 +195,10 @@ function isLength(value) {
|
|
|
195
195
|
return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$1;
|
|
196
196
|
}
|
|
197
197
|
function isArrayLike(value) {
|
|
198
|
-
return value != null && isLength(value.length) && !isFunction$
|
|
198
|
+
return value != null && isLength(value.length) && !isFunction$4(value);
|
|
199
199
|
}
|
|
200
200
|
function isIterateeCall(value, index2, object2) {
|
|
201
|
-
if (!isObject$
|
|
201
|
+
if (!isObject$6(object2)) {
|
|
202
202
|
return false;
|
|
203
203
|
}
|
|
204
204
|
var type2 = typeof index2;
|
|
@@ -4545,7 +4545,7 @@ var DEFAULT_CONFIG = {
|
|
|
4545
4545
|
// null = randomly seed
|
|
4546
4546
|
randomSeed: null
|
|
4547
4547
|
};
|
|
4548
|
-
function isNumber$
|
|
4548
|
+
function isNumber$2(x2) {
|
|
4549
4549
|
return typeof x2 === "number";
|
|
4550
4550
|
}
|
|
4551
4551
|
function isBigNumber(x2) {
|
|
@@ -4600,7 +4600,7 @@ function isResultSet(x2) {
|
|
|
4600
4600
|
function isHelp(x2) {
|
|
4601
4601
|
return x2 && x2.constructor.prototype.isHelp === true || false;
|
|
4602
4602
|
}
|
|
4603
|
-
function isFunction$
|
|
4603
|
+
function isFunction$3(x2) {
|
|
4604
4604
|
return typeof x2 === "function";
|
|
4605
4605
|
}
|
|
4606
4606
|
function isDate$1(x2) {
|
|
@@ -4609,13 +4609,13 @@ function isDate$1(x2) {
|
|
|
4609
4609
|
function isRegExp(x2) {
|
|
4610
4610
|
return x2 instanceof RegExp;
|
|
4611
4611
|
}
|
|
4612
|
-
function isObject$
|
|
4612
|
+
function isObject$5(x2) {
|
|
4613
4613
|
return !!(x2 && typeof x2 === "object" && x2.constructor === Object && !isComplex(x2) && !isFraction(x2));
|
|
4614
4614
|
}
|
|
4615
4615
|
function isNull(x2) {
|
|
4616
4616
|
return x2 === null;
|
|
4617
4617
|
}
|
|
4618
|
-
function isUndefined(x2) {
|
|
4618
|
+
function isUndefined$1(x2) {
|
|
4619
4619
|
return x2 === void 0;
|
|
4620
4620
|
}
|
|
4621
4621
|
function isAccessorNode(x2) {
|
|
@@ -5699,9 +5699,9 @@ function format$3(value, options) {
|
|
|
5699
5699
|
if (options.notation) {
|
|
5700
5700
|
notation = options.notation;
|
|
5701
5701
|
}
|
|
5702
|
-
if (isNumber$
|
|
5702
|
+
if (isNumber$2(options)) {
|
|
5703
5703
|
precision = options;
|
|
5704
|
-
} else if (isNumber$
|
|
5704
|
+
} else if (isNumber$2(options.precision)) {
|
|
5705
5705
|
precision = options.precision;
|
|
5706
5706
|
}
|
|
5707
5707
|
if (options.wordSize) {
|
|
@@ -5769,7 +5769,7 @@ function toEngineering$1(value, precision) {
|
|
|
5769
5769
|
var e2 = rounded.exponent;
|
|
5770
5770
|
var c = rounded.coefficients;
|
|
5771
5771
|
var newExp = e2 % 3 === 0 ? e2 : e2 < 0 ? e2 - 3 - e2 % 3 : e2 - e2 % 3;
|
|
5772
|
-
if (isNumber$
|
|
5772
|
+
if (isNumber$2(precision)) {
|
|
5773
5773
|
while (precision > c.length || e2 - newExp + 1 > c.length) {
|
|
5774
5774
|
c.push(0);
|
|
5775
5775
|
}
|
|
@@ -5786,7 +5786,7 @@ function toEngineering$1(value, precision) {
|
|
|
5786
5786
|
expDiff--;
|
|
5787
5787
|
}
|
|
5788
5788
|
var decimals = c.slice(decimalIdx).join("");
|
|
5789
|
-
var decimalVal = isNumber$
|
|
5789
|
+
var decimalVal = isNumber$2(precision) && decimals.length || decimals.match(/[1-9]/) ? "." + decimals : "";
|
|
5790
5790
|
var str = c.slice(0, decimalIdx).join("") + decimalVal + "e" + (e2 >= 0 ? "+" : "") + newExp.toString();
|
|
5791
5791
|
return rounded.sign + str;
|
|
5792
5792
|
}
|
|
@@ -6169,7 +6169,7 @@ function validate$1(array, size2) {
|
|
|
6169
6169
|
}
|
|
6170
6170
|
}
|
|
6171
6171
|
function validateIndex(index2, length2) {
|
|
6172
|
-
if (!isNumber$
|
|
6172
|
+
if (!isNumber$2(index2) || !isInteger(index2)) {
|
|
6173
6173
|
throw new TypeError("Index must be an integer (value: " + index2 + ")");
|
|
6174
6174
|
}
|
|
6175
6175
|
if (index2 < 0 || typeof length2 === "number" && index2 >= length2) {
|
|
@@ -6184,7 +6184,7 @@ function resize(array, size2, defaultValue2) {
|
|
|
6184
6184
|
throw new Error("Resizing to scalar is not supported");
|
|
6185
6185
|
}
|
|
6186
6186
|
size2.forEach(function(value) {
|
|
6187
|
-
if (!isNumber$
|
|
6187
|
+
if (!isNumber$2(value) || !isInteger(value) || value < 0) {
|
|
6188
6188
|
throw new TypeError("Invalid size, must contain positive integers (size: " + format$1(size2) + ")");
|
|
6189
6189
|
}
|
|
6190
6190
|
});
|
|
@@ -6480,7 +6480,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6480
6480
|
typed2.types = [
|
|
6481
6481
|
{
|
|
6482
6482
|
name: "number",
|
|
6483
|
-
test: isNumber$
|
|
6483
|
+
test: isNumber$2
|
|
6484
6484
|
},
|
|
6485
6485
|
{
|
|
6486
6486
|
name: "Complex",
|
|
@@ -6544,7 +6544,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6544
6544
|
},
|
|
6545
6545
|
{
|
|
6546
6546
|
name: "function",
|
|
6547
|
-
test: isFunction$
|
|
6547
|
+
test: isFunction$3
|
|
6548
6548
|
},
|
|
6549
6549
|
{
|
|
6550
6550
|
name: "Date",
|
|
@@ -6560,7 +6560,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6560
6560
|
},
|
|
6561
6561
|
{
|
|
6562
6562
|
name: "undefined",
|
|
6563
|
-
test: isUndefined
|
|
6563
|
+
test: isUndefined$1
|
|
6564
6564
|
},
|
|
6565
6565
|
{
|
|
6566
6566
|
name: "AccessorNode",
|
|
@@ -6628,7 +6628,7 @@ var createTyped = /* @__PURE__ */ factory("typed", dependencies$P, function crea
|
|
|
6628
6628
|
},
|
|
6629
6629
|
{
|
|
6630
6630
|
name: "Object",
|
|
6631
|
-
test: isObject$
|
|
6631
|
+
test: isObject$5
|
|
6632
6632
|
}
|
|
6633
6633
|
// order 'Object' last, it matches on other classes too
|
|
6634
6634
|
];
|
|
@@ -8951,7 +8951,7 @@ function clone$6(obj) {
|
|
|
8951
8951
|
Decimal2.floor = floor$1;
|
|
8952
8952
|
Decimal2.hypot = hypot;
|
|
8953
8953
|
Decimal2.ln = ln;
|
|
8954
|
-
Decimal2.log = log$
|
|
8954
|
+
Decimal2.log = log$6;
|
|
8955
8955
|
Decimal2.log10 = log10;
|
|
8956
8956
|
Decimal2.log2 = log2$1;
|
|
8957
8957
|
Decimal2.max = max$2;
|
|
@@ -9016,7 +9016,7 @@ function isDecimalInstance(obj) {
|
|
|
9016
9016
|
function ln(x2) {
|
|
9017
9017
|
return new this(x2).ln();
|
|
9018
9018
|
}
|
|
9019
|
-
function log$
|
|
9019
|
+
function log$6(x2, y2) {
|
|
9020
9020
|
return new this(x2).log(y2);
|
|
9021
9021
|
}
|
|
9022
9022
|
function log2$1(x2) {
|
|
@@ -10200,7 +10200,7 @@ var createComplexClass = /* @__PURE__ */ factory(name$U, dependencies$N, () => {
|
|
|
10200
10200
|
var re = this.re;
|
|
10201
10201
|
var strRe = format$3(this.re, options);
|
|
10202
10202
|
var strIm = format$3(this.im, options);
|
|
10203
|
-
var precision = isNumber$
|
|
10203
|
+
var precision = isNumber$2(options) ? options : options ? options.precision : null;
|
|
10204
10204
|
if (precision !== null) {
|
|
10205
10205
|
var epsilon3 = Math.pow(10, -precision);
|
|
10206
10206
|
if (Math.abs(re / im) < epsilon3) {
|
|
@@ -10250,11 +10250,11 @@ var createComplexClass = /* @__PURE__ */ factory(name$U, dependencies$N, () => {
|
|
|
10250
10250
|
case 2: {
|
|
10251
10251
|
var r2 = arguments[0];
|
|
10252
10252
|
var phi = arguments[1];
|
|
10253
|
-
if (isNumber$
|
|
10253
|
+
if (isNumber$2(r2)) {
|
|
10254
10254
|
if (isUnit(phi) && phi.hasBase("ANGLE")) {
|
|
10255
10255
|
phi = phi.toNumber("rad");
|
|
10256
10256
|
}
|
|
10257
|
-
if (isNumber$
|
|
10257
|
+
if (isNumber$2(phi)) {
|
|
10258
10258
|
return new Complex$1({
|
|
10259
10259
|
r: r2,
|
|
10260
10260
|
phi
|
|
@@ -11387,7 +11387,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11387
11387
|
if (isBigNumber(k)) {
|
|
11388
11388
|
k = k.toNumber();
|
|
11389
11389
|
}
|
|
11390
|
-
if (!isNumber$
|
|
11390
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
11391
11391
|
throw new TypeError("The parameter k must be an integer number");
|
|
11392
11392
|
}
|
|
11393
11393
|
} else {
|
|
@@ -11419,7 +11419,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11419
11419
|
if (isBigNumber(s2)) {
|
|
11420
11420
|
s2 = s2.toNumber();
|
|
11421
11421
|
}
|
|
11422
|
-
if (!isNumber$
|
|
11422
|
+
if (!isNumber$2(s2) || !isInteger(s2) || s2 < 1) {
|
|
11423
11423
|
throw new Error("Size values must be positive integers");
|
|
11424
11424
|
}
|
|
11425
11425
|
return s2;
|
|
@@ -11428,7 +11428,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11428
11428
|
if (isBigNumber(k)) {
|
|
11429
11429
|
k = k.toNumber();
|
|
11430
11430
|
}
|
|
11431
|
-
if (!isNumber$
|
|
11431
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
11432
11432
|
throw new TypeError("The parameter k must be an integer number");
|
|
11433
11433
|
}
|
|
11434
11434
|
} else {
|
|
@@ -11479,7 +11479,7 @@ var createDenseMatrixClass = /* @__PURE__ */ factory(name$R, dependencies$K, (_r
|
|
|
11479
11479
|
return new DenseMatrix2(json);
|
|
11480
11480
|
};
|
|
11481
11481
|
DenseMatrix2.prototype.swapRows = function(i2, j) {
|
|
11482
|
-
if (!isNumber$
|
|
11482
|
+
if (!isNumber$2(i2) || !isInteger(i2) || !isNumber$2(j) || !isInteger(j)) {
|
|
11483
11483
|
throw new Error("Row index must be positive integers");
|
|
11484
11484
|
}
|
|
11485
11485
|
if (this._size.length !== 2) {
|
|
@@ -11965,7 +11965,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
11965
11965
|
throw new Error("Only two dimensions matrix are supported");
|
|
11966
11966
|
}
|
|
11967
11967
|
sizeArray.forEach(function(value) {
|
|
11968
|
-
if (!isNumber$
|
|
11968
|
+
if (!isNumber$2(value) || !isInteger(value) || value < 0) {
|
|
11969
11969
|
throw new TypeError("Invalid size, must contain positive integers (size: " + format$1(sizeArray) + ")");
|
|
11970
11970
|
}
|
|
11971
11971
|
});
|
|
@@ -12046,7 +12046,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12046
12046
|
throw new Error("Sparse matrices can only be reshaped in two dimensions");
|
|
12047
12047
|
}
|
|
12048
12048
|
sizes.forEach(function(value) {
|
|
12049
|
-
if (!isNumber$
|
|
12049
|
+
if (!isNumber$2(value) || !isInteger(value) || value <= -2 || value === 0) {
|
|
12050
12050
|
throw new TypeError("Invalid size, must contain positive integers or -1 (size: " + format$1(sizes) + ")");
|
|
12051
12051
|
}
|
|
12052
12052
|
});
|
|
@@ -12269,7 +12269,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12269
12269
|
if (isBigNumber(k)) {
|
|
12270
12270
|
k = k.toNumber();
|
|
12271
12271
|
}
|
|
12272
|
-
if (!isNumber$
|
|
12272
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
12273
12273
|
throw new TypeError("The parameter k must be an integer number");
|
|
12274
12274
|
}
|
|
12275
12275
|
} else {
|
|
@@ -12318,7 +12318,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12318
12318
|
if (isBigNumber(s2)) {
|
|
12319
12319
|
s2 = s2.toNumber();
|
|
12320
12320
|
}
|
|
12321
|
-
if (!isNumber$
|
|
12321
|
+
if (!isNumber$2(s2) || !isInteger(s2) || s2 < 1) {
|
|
12322
12322
|
throw new Error("Size values must be positive integers");
|
|
12323
12323
|
}
|
|
12324
12324
|
return s2;
|
|
@@ -12327,7 +12327,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12327
12327
|
if (isBigNumber(k)) {
|
|
12328
12328
|
k = k.toNumber();
|
|
12329
12329
|
}
|
|
12330
|
-
if (!isNumber$
|
|
12330
|
+
if (!isNumber$2(k) || !isInteger(k)) {
|
|
12331
12331
|
throw new TypeError("The parameter k must be an integer number");
|
|
12332
12332
|
}
|
|
12333
12333
|
} else {
|
|
@@ -12388,7 +12388,7 @@ var createSparseMatrixClass = /* @__PURE__ */ factory(name$O, dependencies$H, (_
|
|
|
12388
12388
|
});
|
|
12389
12389
|
};
|
|
12390
12390
|
SparseMatrix2.prototype.swapRows = function(i2, j) {
|
|
12391
|
-
if (!isNumber$
|
|
12391
|
+
if (!isNumber$2(i2) || !isInteger(i2) || !isNumber$2(j) || !isInteger(j)) {
|
|
12392
12392
|
throw new Error("Row index must be positive integers");
|
|
12393
12393
|
}
|
|
12394
12394
|
if (this._size.length !== 2) {
|
|
@@ -19842,6 +19842,258 @@ var pluralizeExports = pluralize.exports;
|
|
|
19842
19842
|
const plur = /* @__PURE__ */ getDefaultExportFromCjs(pluralizeExports);
|
|
19843
19843
|
plur.addPluralRule("glomerulus", "glomeruli");
|
|
19844
19844
|
plur.addPluralRule("interstitium", "interstitia");
|
|
19845
|
+
var loglevel = { exports: {} };
|
|
19846
|
+
(function(module2) {
|
|
19847
|
+
(function(root2, definition) {
|
|
19848
|
+
if (module2.exports) {
|
|
19849
|
+
module2.exports = definition();
|
|
19850
|
+
} else {
|
|
19851
|
+
root2.log = definition();
|
|
19852
|
+
}
|
|
19853
|
+
})(commonjsGlobal, function() {
|
|
19854
|
+
var noop2 = function() {
|
|
19855
|
+
};
|
|
19856
|
+
var undefinedType = "undefined";
|
|
19857
|
+
var isIE = typeof window !== undefinedType && typeof window.navigator !== undefinedType && /Trident\/|MSIE /.test(window.navigator.userAgent);
|
|
19858
|
+
var logMethods = [
|
|
19859
|
+
"trace",
|
|
19860
|
+
"debug",
|
|
19861
|
+
"info",
|
|
19862
|
+
"warn",
|
|
19863
|
+
"error"
|
|
19864
|
+
];
|
|
19865
|
+
var _loggersByName = {};
|
|
19866
|
+
var defaultLogger = null;
|
|
19867
|
+
function bindMethod(obj, methodName) {
|
|
19868
|
+
var method = obj[methodName];
|
|
19869
|
+
if (typeof method.bind === "function") {
|
|
19870
|
+
return method.bind(obj);
|
|
19871
|
+
} else {
|
|
19872
|
+
try {
|
|
19873
|
+
return Function.prototype.bind.call(method, obj);
|
|
19874
|
+
} catch (e2) {
|
|
19875
|
+
return function() {
|
|
19876
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
19877
|
+
};
|
|
19878
|
+
}
|
|
19879
|
+
}
|
|
19880
|
+
}
|
|
19881
|
+
function traceForIE() {
|
|
19882
|
+
if (console.log) {
|
|
19883
|
+
if (console.log.apply) {
|
|
19884
|
+
console.log.apply(console, arguments);
|
|
19885
|
+
} else {
|
|
19886
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
19887
|
+
}
|
|
19888
|
+
}
|
|
19889
|
+
if (console.trace)
|
|
19890
|
+
console.trace();
|
|
19891
|
+
}
|
|
19892
|
+
function realMethod(methodName) {
|
|
19893
|
+
if (methodName === "debug") {
|
|
19894
|
+
methodName = "log";
|
|
19895
|
+
}
|
|
19896
|
+
if (typeof console === undefinedType) {
|
|
19897
|
+
return false;
|
|
19898
|
+
} else if (methodName === "trace" && isIE) {
|
|
19899
|
+
return traceForIE;
|
|
19900
|
+
} else if (console[methodName] !== void 0) {
|
|
19901
|
+
return bindMethod(console, methodName);
|
|
19902
|
+
} else if (console.log !== void 0) {
|
|
19903
|
+
return bindMethod(console, "log");
|
|
19904
|
+
} else {
|
|
19905
|
+
return noop2;
|
|
19906
|
+
}
|
|
19907
|
+
}
|
|
19908
|
+
function replaceLoggingMethods() {
|
|
19909
|
+
var level = this.getLevel();
|
|
19910
|
+
for (var i2 = 0; i2 < logMethods.length; i2++) {
|
|
19911
|
+
var methodName = logMethods[i2];
|
|
19912
|
+
this[methodName] = i2 < level ? noop2 : this.methodFactory(methodName, level, this.name);
|
|
19913
|
+
}
|
|
19914
|
+
this.log = this.debug;
|
|
19915
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
19916
|
+
return "No console available for logging";
|
|
19917
|
+
}
|
|
19918
|
+
}
|
|
19919
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
19920
|
+
return function() {
|
|
19921
|
+
if (typeof console !== undefinedType) {
|
|
19922
|
+
replaceLoggingMethods.call(this);
|
|
19923
|
+
this[methodName].apply(this, arguments);
|
|
19924
|
+
}
|
|
19925
|
+
};
|
|
19926
|
+
}
|
|
19927
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
19928
|
+
return realMethod(methodName) || enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
19929
|
+
}
|
|
19930
|
+
function Logger(name2, factory2) {
|
|
19931
|
+
var self2 = this;
|
|
19932
|
+
var inheritedLevel;
|
|
19933
|
+
var defaultLevel;
|
|
19934
|
+
var userLevel;
|
|
19935
|
+
var storageKey = "loglevel";
|
|
19936
|
+
if (typeof name2 === "string") {
|
|
19937
|
+
storageKey += ":" + name2;
|
|
19938
|
+
} else if (typeof name2 === "symbol") {
|
|
19939
|
+
storageKey = void 0;
|
|
19940
|
+
}
|
|
19941
|
+
function persistLevelIfPossible(levelNum) {
|
|
19942
|
+
var levelName = (logMethods[levelNum] || "silent").toUpperCase();
|
|
19943
|
+
if (typeof window === undefinedType || !storageKey)
|
|
19944
|
+
return;
|
|
19945
|
+
try {
|
|
19946
|
+
window.localStorage[storageKey] = levelName;
|
|
19947
|
+
return;
|
|
19948
|
+
} catch (ignore) {
|
|
19949
|
+
}
|
|
19950
|
+
try {
|
|
19951
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
19952
|
+
} catch (ignore) {
|
|
19953
|
+
}
|
|
19954
|
+
}
|
|
19955
|
+
function getPersistedLevel() {
|
|
19956
|
+
var storedLevel;
|
|
19957
|
+
if (typeof window === undefinedType || !storageKey)
|
|
19958
|
+
return;
|
|
19959
|
+
try {
|
|
19960
|
+
storedLevel = window.localStorage[storageKey];
|
|
19961
|
+
} catch (ignore) {
|
|
19962
|
+
}
|
|
19963
|
+
if (typeof storedLevel === undefinedType) {
|
|
19964
|
+
try {
|
|
19965
|
+
var cookie = window.document.cookie;
|
|
19966
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
19967
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
19968
|
+
if (location !== -1) {
|
|
19969
|
+
storedLevel = /^([^;]+)/.exec(
|
|
19970
|
+
cookie.slice(location + cookieName.length + 1)
|
|
19971
|
+
)[1];
|
|
19972
|
+
}
|
|
19973
|
+
} catch (ignore) {
|
|
19974
|
+
}
|
|
19975
|
+
}
|
|
19976
|
+
if (self2.levels[storedLevel] === void 0) {
|
|
19977
|
+
storedLevel = void 0;
|
|
19978
|
+
}
|
|
19979
|
+
return storedLevel;
|
|
19980
|
+
}
|
|
19981
|
+
function clearPersistedLevel() {
|
|
19982
|
+
if (typeof window === undefinedType || !storageKey)
|
|
19983
|
+
return;
|
|
19984
|
+
try {
|
|
19985
|
+
window.localStorage.removeItem(storageKey);
|
|
19986
|
+
} catch (ignore) {
|
|
19987
|
+
}
|
|
19988
|
+
try {
|
|
19989
|
+
window.document.cookie = encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
19990
|
+
} catch (ignore) {
|
|
19991
|
+
}
|
|
19992
|
+
}
|
|
19993
|
+
function normalizeLevel(input) {
|
|
19994
|
+
var level = input;
|
|
19995
|
+
if (typeof level === "string" && self2.levels[level.toUpperCase()] !== void 0) {
|
|
19996
|
+
level = self2.levels[level.toUpperCase()];
|
|
19997
|
+
}
|
|
19998
|
+
if (typeof level === "number" && level >= 0 && level <= self2.levels.SILENT) {
|
|
19999
|
+
return level;
|
|
20000
|
+
} else {
|
|
20001
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
20002
|
+
}
|
|
20003
|
+
}
|
|
20004
|
+
self2.name = name2;
|
|
20005
|
+
self2.levels = {
|
|
20006
|
+
"TRACE": 0,
|
|
20007
|
+
"DEBUG": 1,
|
|
20008
|
+
"INFO": 2,
|
|
20009
|
+
"WARN": 3,
|
|
20010
|
+
"ERROR": 4,
|
|
20011
|
+
"SILENT": 5
|
|
20012
|
+
};
|
|
20013
|
+
self2.methodFactory = factory2 || defaultMethodFactory;
|
|
20014
|
+
self2.getLevel = function() {
|
|
20015
|
+
if (userLevel != null) {
|
|
20016
|
+
return userLevel;
|
|
20017
|
+
} else if (defaultLevel != null) {
|
|
20018
|
+
return defaultLevel;
|
|
20019
|
+
} else {
|
|
20020
|
+
return inheritedLevel;
|
|
20021
|
+
}
|
|
20022
|
+
};
|
|
20023
|
+
self2.setLevel = function(level, persist) {
|
|
20024
|
+
userLevel = normalizeLevel(level);
|
|
20025
|
+
if (persist !== false) {
|
|
20026
|
+
persistLevelIfPossible(userLevel);
|
|
20027
|
+
}
|
|
20028
|
+
return replaceLoggingMethods.call(self2);
|
|
20029
|
+
};
|
|
20030
|
+
self2.setDefaultLevel = function(level) {
|
|
20031
|
+
defaultLevel = normalizeLevel(level);
|
|
20032
|
+
if (!getPersistedLevel()) {
|
|
20033
|
+
self2.setLevel(level, false);
|
|
20034
|
+
}
|
|
20035
|
+
};
|
|
20036
|
+
self2.resetLevel = function() {
|
|
20037
|
+
userLevel = null;
|
|
20038
|
+
clearPersistedLevel();
|
|
20039
|
+
replaceLoggingMethods.call(self2);
|
|
20040
|
+
};
|
|
20041
|
+
self2.enableAll = function(persist) {
|
|
20042
|
+
self2.setLevel(self2.levels.TRACE, persist);
|
|
20043
|
+
};
|
|
20044
|
+
self2.disableAll = function(persist) {
|
|
20045
|
+
self2.setLevel(self2.levels.SILENT, persist);
|
|
20046
|
+
};
|
|
20047
|
+
self2.rebuild = function() {
|
|
20048
|
+
if (defaultLogger !== self2) {
|
|
20049
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
20050
|
+
}
|
|
20051
|
+
replaceLoggingMethods.call(self2);
|
|
20052
|
+
if (defaultLogger === self2) {
|
|
20053
|
+
for (var childName in _loggersByName) {
|
|
20054
|
+
_loggersByName[childName].rebuild();
|
|
20055
|
+
}
|
|
20056
|
+
}
|
|
20057
|
+
};
|
|
20058
|
+
inheritedLevel = normalizeLevel(
|
|
20059
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
20060
|
+
);
|
|
20061
|
+
var initialLevel = getPersistedLevel();
|
|
20062
|
+
if (initialLevel != null) {
|
|
20063
|
+
userLevel = normalizeLevel(initialLevel);
|
|
20064
|
+
}
|
|
20065
|
+
replaceLoggingMethods.call(self2);
|
|
20066
|
+
}
|
|
20067
|
+
defaultLogger = new Logger();
|
|
20068
|
+
defaultLogger.getLogger = function getLogger(name2) {
|
|
20069
|
+
if (typeof name2 !== "symbol" && typeof name2 !== "string" || name2 === "") {
|
|
20070
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
20071
|
+
}
|
|
20072
|
+
var logger = _loggersByName[name2];
|
|
20073
|
+
if (!logger) {
|
|
20074
|
+
logger = _loggersByName[name2] = new Logger(
|
|
20075
|
+
name2,
|
|
20076
|
+
defaultLogger.methodFactory
|
|
20077
|
+
);
|
|
20078
|
+
}
|
|
20079
|
+
return logger;
|
|
20080
|
+
};
|
|
20081
|
+
var _log = typeof window !== undefinedType ? window.log : void 0;
|
|
20082
|
+
defaultLogger.noConflict = function() {
|
|
20083
|
+
if (typeof window !== undefinedType && window.log === defaultLogger) {
|
|
20084
|
+
window.log = _log;
|
|
20085
|
+
}
|
|
20086
|
+
return defaultLogger;
|
|
20087
|
+
};
|
|
20088
|
+
defaultLogger.getLoggers = function getLoggers2() {
|
|
20089
|
+
return _loggersByName;
|
|
20090
|
+
};
|
|
20091
|
+
defaultLogger["default"] = defaultLogger;
|
|
20092
|
+
return defaultLogger;
|
|
20093
|
+
});
|
|
20094
|
+
})(loglevel);
|
|
20095
|
+
var loglevelExports = loglevel.exports;
|
|
20096
|
+
const log$5 = /* @__PURE__ */ getDefaultExportFromCjs(loglevelExports);
|
|
19845
20097
|
const VIEWER_PALETTE = [
|
|
19846
20098
|
[0, 0, 255],
|
|
19847
20099
|
[0, 255, 0],
|
|
@@ -20881,16 +21133,16 @@ function dirname(url) {
|
|
|
20881
21133
|
return slashIndex >= 0 ? url.substr(0, slashIndex) : "";
|
|
20882
21134
|
}
|
|
20883
21135
|
const isBoolean = (x2) => typeof x2 === "boolean";
|
|
20884
|
-
const isFunction$
|
|
20885
|
-
const isObject$
|
|
20886
|
-
const isPureObject = (x2) => isObject$
|
|
21136
|
+
const isFunction$2 = (x2) => typeof x2 === "function";
|
|
21137
|
+
const isObject$4 = (x2) => x2 !== null && typeof x2 === "object";
|
|
21138
|
+
const isPureObject = (x2) => isObject$4(x2) && x2.constructor === {}.constructor;
|
|
20887
21139
|
const isIterable = (x2) => x2 && typeof x2[Symbol.iterator] === "function";
|
|
20888
21140
|
const isAsyncIterable$1 = (x2) => x2 && typeof x2[Symbol.asyncIterator] === "function";
|
|
20889
21141
|
const isResponse = (x2) => typeof Response !== "undefined" && x2 instanceof Response || x2 && x2.arrayBuffer && x2.text && x2.json;
|
|
20890
21142
|
const isBlob = (x2) => typeof Blob !== "undefined" && x2 instanceof Blob;
|
|
20891
21143
|
const isBuffer$1 = (x2) => x2 && typeof x2 === "object" && x2.isBuffer;
|
|
20892
|
-
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$
|
|
20893
|
-
const isReadableNodeStream = (x2) => isObject$
|
|
21144
|
+
const isReadableDOMStream = (x2) => typeof ReadableStream !== "undefined" && x2 instanceof ReadableStream || isObject$4(x2) && isFunction$2(x2.tee) && isFunction$2(x2.cancel) && isFunction$2(x2.getReader);
|
|
21145
|
+
const isReadableNodeStream = (x2) => isObject$4(x2) && isFunction$2(x2.read) && isFunction$2(x2.pipe) && isBoolean(x2.readable);
|
|
20894
21146
|
const isReadableStream = (x2) => isReadableDOMStream(x2) || isReadableNodeStream(x2);
|
|
20895
21147
|
const DATA_URL_PATTERN = /^data:([-\w.]+\/[-\w.+]+)(;|,)/;
|
|
20896
21148
|
const MIME_TYPE_PATTERN = /^([-\w.]+\/[-\w.+]+)/;
|
|
@@ -21690,7 +21942,7 @@ function getFetchFunction(options, context) {
|
|
|
21690
21942
|
if (typeof fetchOptions.fetch === "function") {
|
|
21691
21943
|
return fetchOptions.fetch;
|
|
21692
21944
|
}
|
|
21693
|
-
if (isObject$
|
|
21945
|
+
if (isObject$4(fetchOptions.fetch)) {
|
|
21694
21946
|
return (url) => fetchFile(url, fetchOptions);
|
|
21695
21947
|
}
|
|
21696
21948
|
if (context !== null && context !== void 0 && context.fetch) {
|
|
@@ -21711,7 +21963,7 @@ function validateOptionsObject(options, id, defaultOptions, deprecatedOptions, l
|
|
|
21711
21963
|
const loaderName = id || "Top level";
|
|
21712
21964
|
const prefix = id ? "".concat(id, ".") : "";
|
|
21713
21965
|
for (const key in options) {
|
|
21714
|
-
const isSubOptions = !id && isObject$
|
|
21966
|
+
const isSubOptions = !id && isObject$4(options[key]);
|
|
21715
21967
|
const isBaseUriOption = key === "baseUri" && !id;
|
|
21716
21968
|
const isWorkerUrlOption = key === "workerUrl" && id;
|
|
21717
21969
|
if (!(key in defaultOptions) && !isBaseUriOption && !isWorkerUrlOption) {
|
|
@@ -37078,9 +37330,9 @@ class Controller {
|
|
|
37078
37330
|
updateTransition() {
|
|
37079
37331
|
this.transitionManager.updateTransition();
|
|
37080
37332
|
}
|
|
37081
|
-
toggleEvents(
|
|
37333
|
+
toggleEvents(eventNames, enabled) {
|
|
37082
37334
|
if (this.eventManager) {
|
|
37083
|
-
|
|
37335
|
+
eventNames.forEach((eventName) => {
|
|
37084
37336
|
if (this._events[eventName] !== enabled) {
|
|
37085
37337
|
this._events[eventName] = enabled;
|
|
37086
37338
|
if (enabled) {
|
|
@@ -40531,18 +40783,18 @@ var hammer$1 = { exports: {} };
|
|
|
40531
40783
|
emit: function(input) {
|
|
40532
40784
|
var self2 = this;
|
|
40533
40785
|
var state = this.state;
|
|
40534
|
-
function
|
|
40786
|
+
function emit(event) {
|
|
40535
40787
|
self2.manager.emit(event, input);
|
|
40536
40788
|
}
|
|
40537
40789
|
if (state < STATE_ENDED) {
|
|
40538
|
-
|
|
40790
|
+
emit(self2.options.event + stateStr(state));
|
|
40539
40791
|
}
|
|
40540
|
-
|
|
40792
|
+
emit(self2.options.event);
|
|
40541
40793
|
if (input.additionalEvent) {
|
|
40542
|
-
|
|
40794
|
+
emit(input.additionalEvent);
|
|
40543
40795
|
}
|
|
40544
40796
|
if (state >= STATE_ENDED) {
|
|
40545
|
-
|
|
40797
|
+
emit(self2.options.event + stateStr(state));
|
|
40546
40798
|
}
|
|
40547
40799
|
},
|
|
40548
40800
|
/**
|
|
@@ -41902,7 +42154,7 @@ class EventRegistrar {
|
|
|
41902
42154
|
isEmpty() {
|
|
41903
42155
|
return !this._active;
|
|
41904
42156
|
}
|
|
41905
|
-
add(type2, handler, options,
|
|
42157
|
+
add(type2, handler, options, once = false, passive = false) {
|
|
41906
42158
|
const { handlers, handlersByElement } = this;
|
|
41907
42159
|
let opts = DEFAULT_OPTIONS$2;
|
|
41908
42160
|
if (typeof options === "string" || options && options.addEventListener) {
|
|
@@ -41921,7 +42173,7 @@ class EventRegistrar {
|
|
|
41921
42173
|
srcElement: opts.srcElement,
|
|
41922
42174
|
priority: opts.priority
|
|
41923
42175
|
};
|
|
41924
|
-
if (
|
|
42176
|
+
if (once) {
|
|
41925
42177
|
entry.once = true;
|
|
41926
42178
|
}
|
|
41927
42179
|
if (passive) {
|
|
@@ -41969,7 +42221,7 @@ class EventRegistrar {
|
|
|
41969
42221
|
};
|
|
41970
42222
|
const entriesToRemove = [];
|
|
41971
42223
|
for (let i2 = 0; i2 < entries.length; i2++) {
|
|
41972
|
-
const { type: type2, handler, once
|
|
42224
|
+
const { type: type2, handler, once } = entries[i2];
|
|
41973
42225
|
handler({
|
|
41974
42226
|
...event,
|
|
41975
42227
|
// @ts-ignore
|
|
@@ -41977,7 +42229,7 @@ class EventRegistrar {
|
|
|
41977
42229
|
stopPropagation,
|
|
41978
42230
|
stopImmediatePropagation
|
|
41979
42231
|
});
|
|
41980
|
-
if (
|
|
42232
|
+
if (once) {
|
|
41981
42233
|
entriesToRemove.push(entries[i2]);
|
|
41982
42234
|
}
|
|
41983
42235
|
if (immediatePropagationStopped) {
|
|
@@ -42158,11 +42410,11 @@ class EventManager {
|
|
|
42158
42410
|
/**
|
|
42159
42411
|
* Process the event registration for a single event + handler.
|
|
42160
42412
|
*/
|
|
42161
|
-
_addEventHandler(event, handler, opts,
|
|
42413
|
+
_addEventHandler(event, handler, opts, once, passive) {
|
|
42162
42414
|
if (typeof event !== "string") {
|
|
42163
42415
|
opts = handler;
|
|
42164
42416
|
for (const eventName in event) {
|
|
42165
|
-
this._addEventHandler(eventName, event[eventName], opts,
|
|
42417
|
+
this._addEventHandler(eventName, event[eventName], opts, once, passive);
|
|
42166
42418
|
}
|
|
42167
42419
|
return;
|
|
42168
42420
|
}
|
|
@@ -42177,7 +42429,7 @@ class EventManager {
|
|
|
42177
42429
|
manager.on(eventAlias, eventRegistrar.handleEvent);
|
|
42178
42430
|
}
|
|
42179
42431
|
}
|
|
42180
|
-
eventRegistrar.add(event, handler, opts,
|
|
42432
|
+
eventRegistrar.add(event, handler, opts, once, passive);
|
|
42181
42433
|
if (!eventRegistrar.isEmpty()) {
|
|
42182
42434
|
this._toggleRecognizer(eventRegistrar.recognizerName, true);
|
|
42183
42435
|
}
|
|
@@ -44898,7 +45150,7 @@ function getPropTypes(props) {
|
|
|
44898
45150
|
const ERR_NOT_OBJECT = "count(): argument not an object";
|
|
44899
45151
|
const ERR_NOT_CONTAINER = "count(): argument not a container";
|
|
44900
45152
|
function count(container) {
|
|
44901
|
-
if (!isObject$
|
|
45153
|
+
if (!isObject$3(container)) {
|
|
44902
45154
|
throw new Error(ERR_NOT_OBJECT);
|
|
44903
45155
|
}
|
|
44904
45156
|
if (typeof container.count === "function") {
|
|
@@ -44918,7 +45170,7 @@ function count(container) {
|
|
|
44918
45170
|
function isPlainObject(value) {
|
|
44919
45171
|
return value !== null && typeof value === "object" && value.constructor === Object;
|
|
44920
45172
|
}
|
|
44921
|
-
function isObject$
|
|
45173
|
+
function isObject$3(value) {
|
|
44922
45174
|
return value !== null && typeof value === "object";
|
|
44923
45175
|
}
|
|
44924
45176
|
function mergeShaders(target, source) {
|
|
@@ -81599,7 +81851,7 @@ function point(coordinates2, properties, options) {
|
|
|
81599
81851
|
if (coordinates2.length < 2) {
|
|
81600
81852
|
throw new Error("coordinates must be at least 2 numbers long");
|
|
81601
81853
|
}
|
|
81602
|
-
if (!isNumber(coordinates2[0]) || !isNumber(coordinates2[1])) {
|
|
81854
|
+
if (!isNumber$1(coordinates2[0]) || !isNumber$1(coordinates2[1])) {
|
|
81603
81855
|
throw new Error("coordinates must contain numbers");
|
|
81604
81856
|
}
|
|
81605
81857
|
var geom = {
|
|
@@ -81800,10 +82052,10 @@ function convertArea(area2, originalUnit, finalUnit) {
|
|
|
81800
82052
|
}
|
|
81801
82053
|
return area2 / startFactor * finalFactor;
|
|
81802
82054
|
}
|
|
81803
|
-
function isNumber(num) {
|
|
82055
|
+
function isNumber$1(num) {
|
|
81804
82056
|
return !isNaN(num) && num !== null && !Array.isArray(num);
|
|
81805
82057
|
}
|
|
81806
|
-
function isObject$
|
|
82058
|
+
function isObject$2(input) {
|
|
81807
82059
|
return !!input && input.constructor === Object;
|
|
81808
82060
|
}
|
|
81809
82061
|
function validateBBox(bbox2) {
|
|
@@ -81817,7 +82069,7 @@ function validateBBox(bbox2) {
|
|
|
81817
82069
|
throw new Error("bbox must be an Array of 4 or 6 numbers");
|
|
81818
82070
|
}
|
|
81819
82071
|
bbox2.forEach(function(num) {
|
|
81820
|
-
if (!isNumber(num)) {
|
|
82072
|
+
if (!isNumber$1(num)) {
|
|
81821
82073
|
throw new Error("bbox must only contain numbers");
|
|
81822
82074
|
}
|
|
81823
82075
|
});
|
|
@@ -81843,8 +82095,8 @@ const es$7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty
|
|
|
81843
82095
|
featureCollection: featureCollection$1,
|
|
81844
82096
|
geometry,
|
|
81845
82097
|
geometryCollection,
|
|
81846
|
-
isNumber,
|
|
81847
|
-
isObject: isObject$
|
|
82098
|
+
isNumber: isNumber$1,
|
|
82099
|
+
isObject: isObject$2,
|
|
81848
82100
|
lengthToDegrees,
|
|
81849
82101
|
lengthToRadians,
|
|
81850
82102
|
lineString,
|
|
@@ -82286,7 +82538,7 @@ function lineReduce$1(geojson, callback, initialValue) {
|
|
|
82286
82538
|
}
|
|
82287
82539
|
function findSegment$1(geojson, options) {
|
|
82288
82540
|
options = options || {};
|
|
82289
|
-
if (!isObject$
|
|
82541
|
+
if (!isObject$2(options))
|
|
82290
82542
|
throw new Error("options is invalid");
|
|
82291
82543
|
var featureIndex = options.featureIndex || 0;
|
|
82292
82544
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -82378,7 +82630,7 @@ function findSegment$1(geojson, options) {
|
|
|
82378
82630
|
}
|
|
82379
82631
|
function findPoint$1(geojson, options) {
|
|
82380
82632
|
options = options || {};
|
|
82381
|
-
if (!isObject$
|
|
82633
|
+
if (!isObject$2(options))
|
|
82382
82634
|
throw new Error("options is invalid");
|
|
82383
82635
|
var featureIndex = options.featureIndex || 0;
|
|
82384
82636
|
var multiFeatureIndex = options.multiFeatureIndex || 0;
|
|
@@ -82522,7 +82774,7 @@ function getCoords$1(coords) {
|
|
|
82522
82774
|
throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array");
|
|
82523
82775
|
}
|
|
82524
82776
|
function containsNumber$1(coordinates2) {
|
|
82525
|
-
if (coordinates2.length > 1 && isNumber(coordinates2[0]) && isNumber(coordinates2[1])) {
|
|
82777
|
+
if (coordinates2.length > 1 && isNumber$1(coordinates2[0]) && isNumber$1(coordinates2[1])) {
|
|
82526
82778
|
return true;
|
|
82527
82779
|
}
|
|
82528
82780
|
if (Array.isArray(coordinates2[0]) && coordinates2[0].length) {
|
|
@@ -85578,7 +85830,7 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
|
|
|
85578
85830
|
var toStr$1 = Object.prototype.toString;
|
|
85579
85831
|
var concat = Array.prototype.concat;
|
|
85580
85832
|
var defineDataProperty2 = defineDataProperty$1;
|
|
85581
|
-
var isFunction = function(fn) {
|
|
85833
|
+
var isFunction$1 = function(fn) {
|
|
85582
85834
|
return typeof fn === "function" && toStr$1.call(fn) === "[object Function]";
|
|
85583
85835
|
};
|
|
85584
85836
|
var supportsDescriptors$2 = hasPropertyDescriptors_1();
|
|
@@ -85588,7 +85840,7 @@ var defineProperty$1 = function(object2, name2, value, predicate) {
|
|
|
85588
85840
|
if (object2[name2] === value) {
|
|
85589
85841
|
return;
|
|
85590
85842
|
}
|
|
85591
|
-
} else if (!isFunction(predicate) || !predicate()) {
|
|
85843
|
+
} else if (!isFunction$1(predicate) || !predicate()) {
|
|
85592
85844
|
return;
|
|
85593
85845
|
}
|
|
85594
85846
|
}
|
|
@@ -85972,7 +86224,7 @@ function lineOverlap(line1, line2, options) {
|
|
|
85972
86224
|
options = {};
|
|
85973
86225
|
}
|
|
85974
86226
|
options = options || {};
|
|
85975
|
-
if (!isObject$
|
|
86227
|
+
if (!isObject$2(options))
|
|
85976
86228
|
throw new Error("options is invalid");
|
|
85977
86229
|
var tolerance = options.tolerance || 0;
|
|
85978
86230
|
var features = [];
|
|
@@ -86532,19 +86784,19 @@ var jsts_min = { exports: {} };
|
|
|
86532
86784
|
}, Object.defineProperties(w2, O);
|
|
86533
86785
|
var T = function(t2, e3) {
|
|
86534
86786
|
return t2.interfaces_ && t2.interfaces_().indexOf(e3) > -1;
|
|
86535
|
-
},
|
|
86787
|
+
}, R = function() {
|
|
86536
86788
|
}, P2 = { LOG_10: { configurable: true } };
|
|
86537
|
-
|
|
86789
|
+
R.prototype.interfaces_ = function() {
|
|
86538
86790
|
return [];
|
|
86539
|
-
},
|
|
86540
|
-
return
|
|
86541
|
-
},
|
|
86791
|
+
}, R.prototype.getClass = function() {
|
|
86792
|
+
return R;
|
|
86793
|
+
}, R.log10 = function(t2) {
|
|
86542
86794
|
var e3 = Math.log(t2);
|
|
86543
|
-
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 /
|
|
86544
|
-
},
|
|
86795
|
+
return v.isInfinite(e3) ? e3 : v.isNaN(e3) ? e3 : e3 / R.LOG_10;
|
|
86796
|
+
}, R.min = function(t2, e3, n4, i3) {
|
|
86545
86797
|
var r3 = t2;
|
|
86546
86798
|
return e3 < r3 && (r3 = e3), n4 < r3 && (r3 = n4), i3 < r3 && (r3 = i3), r3;
|
|
86547
|
-
},
|
|
86799
|
+
}, R.clamp = function() {
|
|
86548
86800
|
if ("number" == typeof arguments[2] && "number" == typeof arguments[0] && "number" == typeof arguments[1]) {
|
|
86549
86801
|
var t2 = arguments[0], e3 = arguments[1], n4 = arguments[2];
|
|
86550
86802
|
return t2 < e3 ? e3 : t2 > n4 ? n4 : t2;
|
|
@@ -86553,9 +86805,9 @@ var jsts_min = { exports: {} };
|
|
|
86553
86805
|
var i3 = arguments[0], r3 = arguments[1], o3 = arguments[2];
|
|
86554
86806
|
return i3 < r3 ? r3 : i3 > o3 ? o3 : i3;
|
|
86555
86807
|
}
|
|
86556
|
-
},
|
|
86808
|
+
}, R.wrap = function(t2, e3) {
|
|
86557
86809
|
return t2 < 0 ? e3 - -t2 % e3 : t2 % e3;
|
|
86558
|
-
},
|
|
86810
|
+
}, R.max = function() {
|
|
86559
86811
|
if (3 === arguments.length) {
|
|
86560
86812
|
var t2 = arguments[0], e3 = arguments[1], n4 = arguments[2], i3 = t2;
|
|
86561
86813
|
return e3 > i3 && (i3 = e3), n4 > i3 && (i3 = n4), i3;
|
|
@@ -86564,11 +86816,11 @@ var jsts_min = { exports: {} };
|
|
|
86564
86816
|
var r3 = arguments[0], o3 = arguments[1], s3 = arguments[2], a3 = arguments[3], u2 = r3;
|
|
86565
86817
|
return o3 > u2 && (u2 = o3), s3 > u2 && (u2 = s3), a3 > u2 && (u2 = a3), u2;
|
|
86566
86818
|
}
|
|
86567
|
-
},
|
|
86819
|
+
}, R.average = function(t2, e3) {
|
|
86568
86820
|
return (t2 + e3) / 2;
|
|
86569
86821
|
}, P2.LOG_10.get = function() {
|
|
86570
86822
|
return Math.log(10);
|
|
86571
|
-
}, Object.defineProperties(
|
|
86823
|
+
}, Object.defineProperties(R, P2);
|
|
86572
86824
|
var D2 = function(t2) {
|
|
86573
86825
|
this.str = t2;
|
|
86574
86826
|
};
|
|
@@ -87723,7 +87975,7 @@ var jsts_min = { exports: {} };
|
|
|
87723
87975
|
}
|
|
87724
87976
|
} else
|
|
87725
87977
|
r3 = true;
|
|
87726
|
-
return r3 ?
|
|
87978
|
+
return r3 ? R.min(at.distancePointLine(t2, n4, i3), at.distancePointLine(e3, n4, i3), at.distancePointLine(n4, t2, e3), at.distancePointLine(i3, t2, e3)) : 0;
|
|
87727
87979
|
}, at.isPointInRing = function(t2, e3) {
|
|
87728
87980
|
return at.locatePointInRing(t2, e3) !== w2.EXTERIOR;
|
|
87729
87981
|
}, at.computeLength = function(t2) {
|
|
@@ -88313,8 +88565,8 @@ var jsts_min = { exports: {} };
|
|
|
88313
88565
|
(null === e3 || e3.compareTo(t2[n4]) > 0) && (e3 = t2[n4]);
|
|
88314
88566
|
return e3;
|
|
88315
88567
|
}, Lt.extract = function(t2, e3, n4) {
|
|
88316
|
-
e3 =
|
|
88317
|
-
var i3 = (n4 =
|
|
88568
|
+
e3 = R.clamp(e3, 0, t2.length);
|
|
88569
|
+
var i3 = (n4 = R.clamp(n4, -1, t2.length)) - e3 + 1;
|
|
88318
88570
|
n4 < 0 && (i3 = 0), e3 >= t2.length && (i3 = 0), n4 < e3 && (i3 = 0);
|
|
88319
88571
|
var r3 = new Array(i3).fill(null);
|
|
88320
88572
|
if (0 === i3)
|
|
@@ -94059,7 +94311,7 @@ var jsts_min = { exports: {} };
|
|
|
94059
94311
|
return f3.getResultGeometry(c2);
|
|
94060
94312
|
}
|
|
94061
94313
|
}, di.precisionScaleFactor = function(t2, e3, n4) {
|
|
94062
|
-
var i3 = t2.getEnvelopeInternal(), r3 =
|
|
94314
|
+
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 = n4 - Math.trunc(Math.log(r3) / Math.log(10) + 1);
|
|
94063
94315
|
return Math.pow(10, o3);
|
|
94064
94316
|
}, yi.CAP_ROUND.get = function() {
|
|
94065
94317
|
return Cn.CAP_ROUND;
|
|
@@ -101450,372 +101702,216 @@ var layerMouseEvent = {};
|
|
|
101450
101702
|
exports2["default"] = LayerMouseEvent;
|
|
101451
101703
|
})(layerMouseEvent);
|
|
101452
101704
|
var nebulaLayer = {};
|
|
101453
|
-
var events = { exports: {} };
|
|
101454
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
101455
|
-
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
101456
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
101457
|
-
};
|
|
101458
|
-
var ReflectOwnKeys;
|
|
101459
|
-
if (R && typeof R.ownKeys === "function") {
|
|
101460
|
-
ReflectOwnKeys = R.ownKeys;
|
|
101461
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
101462
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
101463
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
101464
|
-
};
|
|
101465
|
-
} else {
|
|
101466
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
101467
|
-
return Object.getOwnPropertyNames(target);
|
|
101468
|
-
};
|
|
101469
|
-
}
|
|
101470
|
-
function ProcessEmitWarning(warning) {
|
|
101471
|
-
if (console && console.warn)
|
|
101472
|
-
console.warn(warning);
|
|
101473
|
-
}
|
|
101474
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
101475
|
-
return value !== value;
|
|
101476
|
-
};
|
|
101477
101705
|
function EventEmitter() {
|
|
101478
|
-
|
|
101706
|
+
this._events = this._events || {};
|
|
101707
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
101479
101708
|
}
|
|
101480
|
-
events
|
|
101481
|
-
events.exports.once = once2;
|
|
101709
|
+
var events = EventEmitter;
|
|
101482
101710
|
EventEmitter.EventEmitter = EventEmitter;
|
|
101483
101711
|
EventEmitter.prototype._events = void 0;
|
|
101484
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
101485
101712
|
EventEmitter.prototype._maxListeners = void 0;
|
|
101486
|
-
|
|
101487
|
-
function
|
|
101488
|
-
if (
|
|
101489
|
-
throw
|
|
101490
|
-
}
|
|
101491
|
-
}
|
|
101492
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
101493
|
-
enumerable: true,
|
|
101494
|
-
get: function() {
|
|
101495
|
-
return defaultMaxListeners;
|
|
101496
|
-
},
|
|
101497
|
-
set: function(arg) {
|
|
101498
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
101499
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
101500
|
-
}
|
|
101501
|
-
defaultMaxListeners = arg;
|
|
101502
|
-
}
|
|
101503
|
-
});
|
|
101504
|
-
EventEmitter.init = function() {
|
|
101505
|
-
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
101506
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
101507
|
-
this._eventsCount = 0;
|
|
101508
|
-
}
|
|
101509
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
101510
|
-
};
|
|
101511
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n3) {
|
|
101512
|
-
if (typeof n3 !== "number" || n3 < 0 || NumberIsNaN(n3)) {
|
|
101513
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n3 + ".");
|
|
101514
|
-
}
|
|
101713
|
+
EventEmitter.defaultMaxListeners = 10;
|
|
101714
|
+
EventEmitter.prototype.setMaxListeners = function(n3) {
|
|
101715
|
+
if (!isNumber(n3) || n3 < 0 || isNaN(n3))
|
|
101716
|
+
throw TypeError("n must be a positive number");
|
|
101515
101717
|
this._maxListeners = n3;
|
|
101516
101718
|
return this;
|
|
101517
101719
|
};
|
|
101518
|
-
function
|
|
101519
|
-
|
|
101520
|
-
|
|
101521
|
-
|
|
101522
|
-
|
|
101523
|
-
|
|
101524
|
-
|
|
101525
|
-
|
|
101526
|
-
|
|
101527
|
-
|
|
101528
|
-
|
|
101529
|
-
|
|
101530
|
-
|
|
101531
|
-
|
|
101532
|
-
|
|
101533
|
-
|
|
101534
|
-
|
|
101535
|
-
|
|
101536
|
-
if (doError) {
|
|
101537
|
-
var er;
|
|
101538
|
-
if (args.length > 0)
|
|
101539
|
-
er = args[0];
|
|
101540
|
-
if (er instanceof Error) {
|
|
101541
|
-
throw er;
|
|
101542
|
-
}
|
|
101543
|
-
var err2 = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
101544
|
-
err2.context = er;
|
|
101545
|
-
throw err2;
|
|
101546
|
-
}
|
|
101547
|
-
var handler = events2[type2];
|
|
101548
|
-
if (handler === void 0)
|
|
101720
|
+
EventEmitter.prototype.emit = function(type2) {
|
|
101721
|
+
var er, handler, len2, args, i2, listeners;
|
|
101722
|
+
if (!this._events)
|
|
101723
|
+
this._events = {};
|
|
101724
|
+
if (type2 === "error") {
|
|
101725
|
+
if (!this._events.error || isObject$1(this._events.error) && !this._events.error.length) {
|
|
101726
|
+
er = arguments[1];
|
|
101727
|
+
if (er instanceof Error) {
|
|
101728
|
+
throw er;
|
|
101729
|
+
} else {
|
|
101730
|
+
var err2 = new Error('Uncaught, unspecified "error" event. (' + er + ")");
|
|
101731
|
+
err2.context = er;
|
|
101732
|
+
throw err2;
|
|
101733
|
+
}
|
|
101734
|
+
}
|
|
101735
|
+
}
|
|
101736
|
+
handler = this._events[type2];
|
|
101737
|
+
if (isUndefined(handler))
|
|
101549
101738
|
return false;
|
|
101550
|
-
if (
|
|
101551
|
-
|
|
101552
|
-
|
|
101553
|
-
|
|
101554
|
-
|
|
101555
|
-
|
|
101556
|
-
|
|
101739
|
+
if (isFunction(handler)) {
|
|
101740
|
+
switch (arguments.length) {
|
|
101741
|
+
case 1:
|
|
101742
|
+
handler.call(this);
|
|
101743
|
+
break;
|
|
101744
|
+
case 2:
|
|
101745
|
+
handler.call(this, arguments[1]);
|
|
101746
|
+
break;
|
|
101747
|
+
case 3:
|
|
101748
|
+
handler.call(this, arguments[1], arguments[2]);
|
|
101749
|
+
break;
|
|
101750
|
+
default:
|
|
101751
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
101752
|
+
handler.apply(this, args);
|
|
101753
|
+
}
|
|
101754
|
+
} else if (isObject$1(handler)) {
|
|
101755
|
+
args = Array.prototype.slice.call(arguments, 1);
|
|
101756
|
+
listeners = handler.slice();
|
|
101757
|
+
len2 = listeners.length;
|
|
101758
|
+
for (i2 = 0; i2 < len2; i2++)
|
|
101759
|
+
listeners[i2].apply(this, args);
|
|
101557
101760
|
}
|
|
101558
101761
|
return true;
|
|
101559
101762
|
};
|
|
101560
|
-
function
|
|
101763
|
+
EventEmitter.prototype.addListener = function(type2, listener) {
|
|
101561
101764
|
var m;
|
|
101562
|
-
|
|
101563
|
-
|
|
101564
|
-
|
|
101565
|
-
|
|
101566
|
-
if (
|
|
101567
|
-
|
|
101568
|
-
|
|
101569
|
-
|
|
101570
|
-
|
|
101571
|
-
|
|
101572
|
-
|
|
101573
|
-
|
|
101574
|
-
|
|
101575
|
-
|
|
101576
|
-
|
|
101577
|
-
|
|
101578
|
-
|
|
101579
|
-
|
|
101580
|
-
|
|
101581
|
-
existing = events2[type2] = listener;
|
|
101582
|
-
++target._eventsCount;
|
|
101583
|
-
} else {
|
|
101584
|
-
if (typeof existing === "function") {
|
|
101585
|
-
existing = events2[type2] = prepend ? [listener, existing] : [existing, listener];
|
|
101586
|
-
} else if (prepend) {
|
|
101587
|
-
existing.unshift(listener);
|
|
101765
|
+
if (!isFunction(listener))
|
|
101766
|
+
throw TypeError("listener must be a function");
|
|
101767
|
+
if (!this._events)
|
|
101768
|
+
this._events = {};
|
|
101769
|
+
if (this._events.newListener)
|
|
101770
|
+
this.emit(
|
|
101771
|
+
"newListener",
|
|
101772
|
+
type2,
|
|
101773
|
+
isFunction(listener.listener) ? listener.listener : listener
|
|
101774
|
+
);
|
|
101775
|
+
if (!this._events[type2])
|
|
101776
|
+
this._events[type2] = listener;
|
|
101777
|
+
else if (isObject$1(this._events[type2]))
|
|
101778
|
+
this._events[type2].push(listener);
|
|
101779
|
+
else
|
|
101780
|
+
this._events[type2] = [this._events[type2], listener];
|
|
101781
|
+
if (isObject$1(this._events[type2]) && !this._events[type2].warned) {
|
|
101782
|
+
if (!isUndefined(this._maxListeners)) {
|
|
101783
|
+
m = this._maxListeners;
|
|
101588
101784
|
} else {
|
|
101589
|
-
|
|
101785
|
+
m = EventEmitter.defaultMaxListeners;
|
|
101590
101786
|
}
|
|
101591
|
-
m
|
|
101592
|
-
|
|
101593
|
-
|
|
101594
|
-
|
|
101595
|
-
|
|
101596
|
-
|
|
101597
|
-
|
|
101598
|
-
|
|
101599
|
-
|
|
101787
|
+
if (m && m > 0 && this._events[type2].length > m) {
|
|
101788
|
+
this._events[type2].warned = true;
|
|
101789
|
+
console.error(
|
|
101790
|
+
"(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",
|
|
101791
|
+
this._events[type2].length
|
|
101792
|
+
);
|
|
101793
|
+
if (typeof console.trace === "function") {
|
|
101794
|
+
console.trace();
|
|
101795
|
+
}
|
|
101600
101796
|
}
|
|
101601
101797
|
}
|
|
101602
|
-
return target;
|
|
101603
|
-
}
|
|
101604
|
-
EventEmitter.prototype.addListener = function addListener(type2, listener) {
|
|
101605
|
-
return _addListener(this, type2, listener, false);
|
|
101606
|
-
};
|
|
101607
|
-
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
101608
|
-
EventEmitter.prototype.prependListener = function prependListener(type2, listener) {
|
|
101609
|
-
return _addListener(this, type2, listener, true);
|
|
101610
|
-
};
|
|
101611
|
-
function onceWrapper() {
|
|
101612
|
-
if (!this.fired) {
|
|
101613
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
101614
|
-
this.fired = true;
|
|
101615
|
-
if (arguments.length === 0)
|
|
101616
|
-
return this.listener.call(this.target);
|
|
101617
|
-
return this.listener.apply(this.target, arguments);
|
|
101618
|
-
}
|
|
101619
|
-
}
|
|
101620
|
-
function _onceWrap(target, type2, listener) {
|
|
101621
|
-
var state = { fired: false, wrapFn: void 0, target, type: type2, listener };
|
|
101622
|
-
var wrapped = onceWrapper.bind(state);
|
|
101623
|
-
wrapped.listener = listener;
|
|
101624
|
-
state.wrapFn = wrapped;
|
|
101625
|
-
return wrapped;
|
|
101626
|
-
}
|
|
101627
|
-
EventEmitter.prototype.once = function once(type2, listener) {
|
|
101628
|
-
checkListener(listener);
|
|
101629
|
-
this.on(type2, _onceWrap(this, type2, listener));
|
|
101630
101798
|
return this;
|
|
101631
101799
|
};
|
|
101632
|
-
EventEmitter.prototype.
|
|
101633
|
-
|
|
101634
|
-
|
|
101800
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
101801
|
+
EventEmitter.prototype.once = function(type2, listener) {
|
|
101802
|
+
if (!isFunction(listener))
|
|
101803
|
+
throw TypeError("listener must be a function");
|
|
101804
|
+
var fired = false;
|
|
101805
|
+
function g2() {
|
|
101806
|
+
this.removeListener(type2, g2);
|
|
101807
|
+
if (!fired) {
|
|
101808
|
+
fired = true;
|
|
101809
|
+
listener.apply(this, arguments);
|
|
101810
|
+
}
|
|
101811
|
+
}
|
|
101812
|
+
g2.listener = listener;
|
|
101813
|
+
this.on(type2, g2);
|
|
101635
101814
|
return this;
|
|
101636
101815
|
};
|
|
101637
|
-
EventEmitter.prototype.removeListener = function
|
|
101638
|
-
var list,
|
|
101639
|
-
|
|
101640
|
-
|
|
101641
|
-
if (
|
|
101642
|
-
return this;
|
|
101643
|
-
list = events2[type2];
|
|
101644
|
-
if (list === void 0)
|
|
101816
|
+
EventEmitter.prototype.removeListener = function(type2, listener) {
|
|
101817
|
+
var list, position, length2, i2;
|
|
101818
|
+
if (!isFunction(listener))
|
|
101819
|
+
throw TypeError("listener must be a function");
|
|
101820
|
+
if (!this._events || !this._events[type2])
|
|
101645
101821
|
return this;
|
|
101646
|
-
|
|
101647
|
-
|
|
101648
|
-
|
|
101649
|
-
|
|
101650
|
-
|
|
101651
|
-
|
|
101652
|
-
|
|
101653
|
-
|
|
101654
|
-
|
|
101655
|
-
|
|
101656
|
-
for (i2 = list.length - 1; i2 >= 0; i2--) {
|
|
101657
|
-
if (list[i2] === listener || list[i2].listener === listener) {
|
|
101658
|
-
originalListener = list[i2].listener;
|
|
101822
|
+
list = this._events[type2];
|
|
101823
|
+
length2 = list.length;
|
|
101824
|
+
position = -1;
|
|
101825
|
+
if (list === listener || isFunction(list.listener) && list.listener === listener) {
|
|
101826
|
+
delete this._events[type2];
|
|
101827
|
+
if (this._events.removeListener)
|
|
101828
|
+
this.emit("removeListener", type2, listener);
|
|
101829
|
+
} else if (isObject$1(list)) {
|
|
101830
|
+
for (i2 = length2; i2-- > 0; ) {
|
|
101831
|
+
if (list[i2] === listener || list[i2].listener && list[i2].listener === listener) {
|
|
101659
101832
|
position = i2;
|
|
101660
101833
|
break;
|
|
101661
101834
|
}
|
|
101662
101835
|
}
|
|
101663
101836
|
if (position < 0)
|
|
101664
101837
|
return this;
|
|
101665
|
-
if (
|
|
101666
|
-
list.
|
|
101667
|
-
|
|
101668
|
-
|
|
101838
|
+
if (list.length === 1) {
|
|
101839
|
+
list.length = 0;
|
|
101840
|
+
delete this._events[type2];
|
|
101841
|
+
} else {
|
|
101842
|
+
list.splice(position, 1);
|
|
101669
101843
|
}
|
|
101670
|
-
if (
|
|
101671
|
-
|
|
101672
|
-
if (events2.removeListener !== void 0)
|
|
101673
|
-
this.emit("removeListener", type2, originalListener || listener);
|
|
101844
|
+
if (this._events.removeListener)
|
|
101845
|
+
this.emit("removeListener", type2, listener);
|
|
101674
101846
|
}
|
|
101675
101847
|
return this;
|
|
101676
101848
|
};
|
|
101677
|
-
EventEmitter.prototype.
|
|
101678
|
-
|
|
101679
|
-
|
|
101680
|
-
events2 = this._events;
|
|
101681
|
-
if (events2 === void 0)
|
|
101849
|
+
EventEmitter.prototype.removeAllListeners = function(type2) {
|
|
101850
|
+
var key, listeners;
|
|
101851
|
+
if (!this._events)
|
|
101682
101852
|
return this;
|
|
101683
|
-
if (
|
|
101684
|
-
if (arguments.length === 0)
|
|
101685
|
-
this._events =
|
|
101686
|
-
|
|
101687
|
-
|
|
101688
|
-
if (--this._eventsCount === 0)
|
|
101689
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
101690
|
-
else
|
|
101691
|
-
delete events2[type2];
|
|
101692
|
-
}
|
|
101853
|
+
if (!this._events.removeListener) {
|
|
101854
|
+
if (arguments.length === 0)
|
|
101855
|
+
this._events = {};
|
|
101856
|
+
else if (this._events[type2])
|
|
101857
|
+
delete this._events[type2];
|
|
101693
101858
|
return this;
|
|
101694
101859
|
}
|
|
101695
101860
|
if (arguments.length === 0) {
|
|
101696
|
-
|
|
101697
|
-
var key;
|
|
101698
|
-
for (i2 = 0; i2 < keys3.length; ++i2) {
|
|
101699
|
-
key = keys3[i2];
|
|
101861
|
+
for (key in this._events) {
|
|
101700
101862
|
if (key === "removeListener")
|
|
101701
101863
|
continue;
|
|
101702
101864
|
this.removeAllListeners(key);
|
|
101703
101865
|
}
|
|
101704
101866
|
this.removeAllListeners("removeListener");
|
|
101705
|
-
this._events =
|
|
101706
|
-
this._eventsCount = 0;
|
|
101867
|
+
this._events = {};
|
|
101707
101868
|
return this;
|
|
101708
101869
|
}
|
|
101709
|
-
|
|
101710
|
-
if (
|
|
101711
|
-
this.removeListener(type2,
|
|
101712
|
-
} else if (
|
|
101713
|
-
|
|
101714
|
-
this.removeListener(type2,
|
|
101715
|
-
}
|
|
101870
|
+
listeners = this._events[type2];
|
|
101871
|
+
if (isFunction(listeners)) {
|
|
101872
|
+
this.removeListener(type2, listeners);
|
|
101873
|
+
} else if (listeners) {
|
|
101874
|
+
while (listeners.length)
|
|
101875
|
+
this.removeListener(type2, listeners[listeners.length - 1]);
|
|
101716
101876
|
}
|
|
101877
|
+
delete this._events[type2];
|
|
101717
101878
|
return this;
|
|
101718
101879
|
};
|
|
101719
|
-
function
|
|
101720
|
-
var
|
|
101721
|
-
if (
|
|
101722
|
-
|
|
101723
|
-
|
|
101724
|
-
|
|
101725
|
-
|
|
101726
|
-
|
|
101727
|
-
|
|
101728
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
101729
|
-
}
|
|
101730
|
-
EventEmitter.prototype.listeners = function listeners(type2) {
|
|
101731
|
-
return _listeners(this, type2, true);
|
|
101732
|
-
};
|
|
101733
|
-
EventEmitter.prototype.rawListeners = function rawListeners(type2) {
|
|
101734
|
-
return _listeners(this, type2, false);
|
|
101735
|
-
};
|
|
101736
|
-
EventEmitter.listenerCount = function(emitter, type2) {
|
|
101737
|
-
if (typeof emitter.listenerCount === "function") {
|
|
101738
|
-
return emitter.listenerCount(type2);
|
|
101739
|
-
} else {
|
|
101740
|
-
return listenerCount.call(emitter, type2);
|
|
101741
|
-
}
|
|
101880
|
+
EventEmitter.prototype.listeners = function(type2) {
|
|
101881
|
+
var ret;
|
|
101882
|
+
if (!this._events || !this._events[type2])
|
|
101883
|
+
ret = [];
|
|
101884
|
+
else if (isFunction(this._events[type2]))
|
|
101885
|
+
ret = [this._events[type2]];
|
|
101886
|
+
else
|
|
101887
|
+
ret = this._events[type2].slice();
|
|
101888
|
+
return ret;
|
|
101742
101889
|
};
|
|
101743
|
-
EventEmitter.prototype.listenerCount =
|
|
101744
|
-
|
|
101745
|
-
|
|
101746
|
-
|
|
101747
|
-
var evlistener = events2[type2];
|
|
101748
|
-
if (typeof evlistener === "function") {
|
|
101890
|
+
EventEmitter.prototype.listenerCount = function(type2) {
|
|
101891
|
+
if (this._events) {
|
|
101892
|
+
var evlistener = this._events[type2];
|
|
101893
|
+
if (isFunction(evlistener))
|
|
101749
101894
|
return 1;
|
|
101750
|
-
|
|
101895
|
+
else if (evlistener)
|
|
101751
101896
|
return evlistener.length;
|
|
101752
|
-
}
|
|
101753
101897
|
}
|
|
101754
101898
|
return 0;
|
|
101755
|
-
}
|
|
101756
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
101757
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
101758
101899
|
};
|
|
101759
|
-
function
|
|
101760
|
-
|
|
101761
|
-
|
|
101762
|
-
|
|
101763
|
-
return
|
|
101900
|
+
EventEmitter.listenerCount = function(emitter, type2) {
|
|
101901
|
+
return emitter.listenerCount(type2);
|
|
101902
|
+
};
|
|
101903
|
+
function isFunction(arg) {
|
|
101904
|
+
return typeof arg === "function";
|
|
101764
101905
|
}
|
|
101765
|
-
function
|
|
101766
|
-
|
|
101767
|
-
list[index2] = list[index2 + 1];
|
|
101768
|
-
list.pop();
|
|
101906
|
+
function isNumber(arg) {
|
|
101907
|
+
return typeof arg === "number";
|
|
101769
101908
|
}
|
|
101770
|
-
function
|
|
101771
|
-
|
|
101772
|
-
for (var i2 = 0; i2 < ret.length; ++i2) {
|
|
101773
|
-
ret[i2] = arr[i2].listener || arr[i2];
|
|
101774
|
-
}
|
|
101775
|
-
return ret;
|
|
101909
|
+
function isObject$1(arg) {
|
|
101910
|
+
return typeof arg === "object" && arg !== null;
|
|
101776
101911
|
}
|
|
101777
|
-
function
|
|
101778
|
-
return
|
|
101779
|
-
function errorListener(err2) {
|
|
101780
|
-
emitter.removeListener(name2, resolver);
|
|
101781
|
-
reject(err2);
|
|
101782
|
-
}
|
|
101783
|
-
function resolver() {
|
|
101784
|
-
if (typeof emitter.removeListener === "function") {
|
|
101785
|
-
emitter.removeListener("error", errorListener);
|
|
101786
|
-
}
|
|
101787
|
-
resolve([].slice.call(arguments));
|
|
101788
|
-
}
|
|
101789
|
-
eventTargetAgnosticAddListener(emitter, name2, resolver, { once: true });
|
|
101790
|
-
if (name2 !== "error") {
|
|
101791
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
101792
|
-
}
|
|
101793
|
-
});
|
|
101794
|
-
}
|
|
101795
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags3) {
|
|
101796
|
-
if (typeof emitter.on === "function") {
|
|
101797
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags3);
|
|
101798
|
-
}
|
|
101799
|
-
}
|
|
101800
|
-
function eventTargetAgnosticAddListener(emitter, name2, listener, flags3) {
|
|
101801
|
-
if (typeof emitter.on === "function") {
|
|
101802
|
-
if (flags3.once) {
|
|
101803
|
-
emitter.once(name2, listener);
|
|
101804
|
-
} else {
|
|
101805
|
-
emitter.on(name2, listener);
|
|
101806
|
-
}
|
|
101807
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
101808
|
-
emitter.addEventListener(name2, function wrapListener(arg) {
|
|
101809
|
-
if (flags3.once) {
|
|
101810
|
-
emitter.removeEventListener(name2, wrapListener);
|
|
101811
|
-
}
|
|
101812
|
-
listener(arg);
|
|
101813
|
-
});
|
|
101814
|
-
} else {
|
|
101815
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
101816
|
-
}
|
|
101912
|
+
function isUndefined(arg) {
|
|
101913
|
+
return arg === void 0;
|
|
101817
101914
|
}
|
|
101818
|
-
var eventsExports = events.exports;
|
|
101819
101915
|
var getRandomValues = typeof crypto != "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto != "undefined" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto);
|
|
101820
101916
|
var rnds8 = new Uint8Array(16);
|
|
101821
101917
|
function rng() {
|
|
@@ -102181,7 +102277,7 @@ const require$$1$3 = /* @__PURE__ */ getAugmentedNamespace(esmBrowser);
|
|
|
102181
102277
|
value: true
|
|
102182
102278
|
});
|
|
102183
102279
|
exports2["default"] = void 0;
|
|
102184
|
-
var _events = _interopRequireDefault2(
|
|
102280
|
+
var _events = _interopRequireDefault2(events);
|
|
102185
102281
|
var _uuid = _interopRequireDefault2(require$$1$3);
|
|
102186
102282
|
function _interopRequireDefault2(obj) {
|
|
102187
102283
|
return obj && obj.__esModule ? obj : { "default": obj };
|
|
@@ -102665,7 +102761,7 @@ function rhumbDistance$2(from, to, options) {
|
|
|
102665
102761
|
}
|
|
102666
102762
|
function calculateRhumbDistance(origin, destination2, radius) {
|
|
102667
102763
|
radius = radius === void 0 ? helpers_1$9.earthRadius : Number(radius);
|
|
102668
|
-
var
|
|
102764
|
+
var R = radius;
|
|
102669
102765
|
var phi12 = origin[1] * Math.PI / 180;
|
|
102670
102766
|
var phi2 = destination2[1] * Math.PI / 180;
|
|
102671
102767
|
var DeltaPhi = phi2 - phi12;
|
|
@@ -102676,7 +102772,7 @@ function calculateRhumbDistance(origin, destination2, radius) {
|
|
|
102676
102772
|
var DeltaPsi = Math.log(Math.tan(phi2 / 2 + Math.PI / 4) / Math.tan(phi12 / 2 + Math.PI / 4));
|
|
102677
102773
|
var q = Math.abs(DeltaPsi) > 1e-11 ? DeltaPhi / DeltaPsi : Math.cos(phi12);
|
|
102678
102774
|
var delta = Math.sqrt(DeltaPhi * DeltaPhi + q * q * DeltaLambda * DeltaLambda);
|
|
102679
|
-
var dist = delta *
|
|
102775
|
+
var dist = delta * R;
|
|
102680
102776
|
return dist;
|
|
102681
102777
|
}
|
|
102682
102778
|
js$e.default = rhumbDistance$2;
|
|
@@ -117185,7 +117281,7 @@ var document_1 = doccy;
|
|
|
117185
117281
|
value: true
|
|
117186
117282
|
});
|
|
117187
117283
|
exports2["default"] = void 0;
|
|
117188
|
-
var _events =
|
|
117284
|
+
var _events = events;
|
|
117189
117285
|
var _document = _interopRequireDefault2(document_1);
|
|
117190
117286
|
var _core = require$$2$2;
|
|
117191
117287
|
var _deckDrawer = _interopRequireDefault2(deckDrawer);
|
|
@@ -119106,16 +119202,16 @@ function addDecoder(cases, importFn) {
|
|
|
119106
119202
|
}
|
|
119107
119203
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
119108
119204
|
}
|
|
119109
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
119110
|
-
addDecoder(5, () => import("./lzw-
|
|
119205
|
+
addDecoder([void 0, 1], () => import("./raw-19fc03ba.js").then((m) => m.default));
|
|
119206
|
+
addDecoder(5, () => import("./lzw-c733cdd2.js").then((m) => m.default));
|
|
119111
119207
|
addDecoder(6, () => {
|
|
119112
119208
|
throw new Error("old style JPEG compression is not supported.");
|
|
119113
119209
|
});
|
|
119114
|
-
addDecoder(7, () => import("./jpeg-
|
|
119115
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
119116
|
-
addDecoder(32773, () => import("./packbits-
|
|
119117
|
-
addDecoder(34887, () => import("./lerc-
|
|
119118
|
-
addDecoder(50001, () => import("./webimage-
|
|
119210
|
+
addDecoder(7, () => import("./jpeg-027ef15c.js").then((m) => m.default));
|
|
119211
|
+
addDecoder([8, 32946], () => import("./deflate-fa8eca5f.js").then((m) => m.default));
|
|
119212
|
+
addDecoder(32773, () => import("./packbits-1632422c.js").then((m) => m.default));
|
|
119213
|
+
addDecoder(34887, () => import("./lerc-20f1f9f7.js").then((m) => m.default));
|
|
119214
|
+
addDecoder(50001, () => import("./webimage-5d4ef463.js").then((m) => m.default));
|
|
119119
119215
|
function decodeRowAcc(row, stride) {
|
|
119120
119216
|
let length2 = row.length - stride;
|
|
119121
119217
|
let offset = 0;
|
|
@@ -122892,16 +122988,16 @@ createCommonjsModule(function(module2) {
|
|
|
122892
122988
|
if (!new Events().__proto__)
|
|
122893
122989
|
prefix = false;
|
|
122894
122990
|
}
|
|
122895
|
-
function EE(fn, context,
|
|
122991
|
+
function EE(fn, context, once) {
|
|
122896
122992
|
this.fn = fn;
|
|
122897
122993
|
this.context = context;
|
|
122898
|
-
this.once =
|
|
122994
|
+
this.once = once || false;
|
|
122899
122995
|
}
|
|
122900
|
-
function
|
|
122996
|
+
function addListener(emitter, event, fn, context, once) {
|
|
122901
122997
|
if (typeof fn !== "function") {
|
|
122902
122998
|
throw new TypeError("The listener must be a function");
|
|
122903
122999
|
}
|
|
122904
|
-
var listener = new EE(fn, context || emitter,
|
|
123000
|
+
var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event;
|
|
122905
123001
|
if (!emitter._events[evt])
|
|
122906
123002
|
emitter._events[evt] = listener, emitter._eventsCount++;
|
|
122907
123003
|
else if (!emitter._events[evt].fn)
|
|
@@ -122920,7 +123016,7 @@ createCommonjsModule(function(module2) {
|
|
|
122920
123016
|
this._events = new Events();
|
|
122921
123017
|
this._eventsCount = 0;
|
|
122922
123018
|
}
|
|
122923
|
-
EventEmitter2.prototype.eventNames = function
|
|
123019
|
+
EventEmitter2.prototype.eventNames = function eventNames() {
|
|
122924
123020
|
var names = [], events2, name2;
|
|
122925
123021
|
if (this._eventsCount === 0)
|
|
122926
123022
|
return names;
|
|
@@ -122933,7 +123029,7 @@ createCommonjsModule(function(module2) {
|
|
|
122933
123029
|
}
|
|
122934
123030
|
return names;
|
|
122935
123031
|
};
|
|
122936
|
-
EventEmitter2.prototype.listeners = function
|
|
123032
|
+
EventEmitter2.prototype.listeners = function listeners(event) {
|
|
122937
123033
|
var evt = prefix ? prefix + event : event, handlers = this._events[evt];
|
|
122938
123034
|
if (!handlers)
|
|
122939
123035
|
return [];
|
|
@@ -122944,76 +123040,76 @@ createCommonjsModule(function(module2) {
|
|
|
122944
123040
|
}
|
|
122945
123041
|
return ee;
|
|
122946
123042
|
};
|
|
122947
|
-
EventEmitter2.prototype.listenerCount = function
|
|
122948
|
-
var evt = prefix ? prefix + event : event,
|
|
122949
|
-
if (!
|
|
123043
|
+
EventEmitter2.prototype.listenerCount = function listenerCount(event) {
|
|
123044
|
+
var evt = prefix ? prefix + event : event, listeners = this._events[evt];
|
|
123045
|
+
if (!listeners)
|
|
122950
123046
|
return 0;
|
|
122951
|
-
if (
|
|
123047
|
+
if (listeners.fn)
|
|
122952
123048
|
return 1;
|
|
122953
|
-
return
|
|
123049
|
+
return listeners.length;
|
|
122954
123050
|
};
|
|
122955
|
-
EventEmitter2.prototype.emit = function
|
|
123051
|
+
EventEmitter2.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
122956
123052
|
var evt = prefix ? prefix + event : event;
|
|
122957
123053
|
if (!this._events[evt])
|
|
122958
123054
|
return false;
|
|
122959
|
-
var
|
|
122960
|
-
if (
|
|
122961
|
-
if (
|
|
122962
|
-
this.removeListener(event,
|
|
123055
|
+
var listeners = this._events[evt], len2 = arguments.length, args, i2;
|
|
123056
|
+
if (listeners.fn) {
|
|
123057
|
+
if (listeners.once)
|
|
123058
|
+
this.removeListener(event, listeners.fn, void 0, true);
|
|
122963
123059
|
switch (len2) {
|
|
122964
123060
|
case 1:
|
|
122965
|
-
return
|
|
123061
|
+
return listeners.fn.call(listeners.context), true;
|
|
122966
123062
|
case 2:
|
|
122967
|
-
return
|
|
123063
|
+
return listeners.fn.call(listeners.context, a1), true;
|
|
122968
123064
|
case 3:
|
|
122969
|
-
return
|
|
123065
|
+
return listeners.fn.call(listeners.context, a1, a2), true;
|
|
122970
123066
|
case 4:
|
|
122971
|
-
return
|
|
123067
|
+
return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
122972
123068
|
case 5:
|
|
122973
|
-
return
|
|
123069
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
122974
123070
|
case 6:
|
|
122975
|
-
return
|
|
123071
|
+
return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
122976
123072
|
}
|
|
122977
123073
|
for (i2 = 1, args = new Array(len2 - 1); i2 < len2; i2++) {
|
|
122978
123074
|
args[i2 - 1] = arguments[i2];
|
|
122979
123075
|
}
|
|
122980
|
-
|
|
123076
|
+
listeners.fn.apply(listeners.context, args);
|
|
122981
123077
|
} else {
|
|
122982
|
-
var length2 =
|
|
123078
|
+
var length2 = listeners.length, j;
|
|
122983
123079
|
for (i2 = 0; i2 < length2; i2++) {
|
|
122984
|
-
if (
|
|
122985
|
-
this.removeListener(event,
|
|
123080
|
+
if (listeners[i2].once)
|
|
123081
|
+
this.removeListener(event, listeners[i2].fn, void 0, true);
|
|
122986
123082
|
switch (len2) {
|
|
122987
123083
|
case 1:
|
|
122988
|
-
|
|
123084
|
+
listeners[i2].fn.call(listeners[i2].context);
|
|
122989
123085
|
break;
|
|
122990
123086
|
case 2:
|
|
122991
|
-
|
|
123087
|
+
listeners[i2].fn.call(listeners[i2].context, a1);
|
|
122992
123088
|
break;
|
|
122993
123089
|
case 3:
|
|
122994
|
-
|
|
123090
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2);
|
|
122995
123091
|
break;
|
|
122996
123092
|
case 4:
|
|
122997
|
-
|
|
123093
|
+
listeners[i2].fn.call(listeners[i2].context, a1, a2, a3);
|
|
122998
123094
|
break;
|
|
122999
123095
|
default:
|
|
123000
123096
|
if (!args)
|
|
123001
123097
|
for (j = 1, args = new Array(len2 - 1); j < len2; j++) {
|
|
123002
123098
|
args[j - 1] = arguments[j];
|
|
123003
123099
|
}
|
|
123004
|
-
|
|
123100
|
+
listeners[i2].fn.apply(listeners[i2].context, args);
|
|
123005
123101
|
}
|
|
123006
123102
|
}
|
|
123007
123103
|
}
|
|
123008
123104
|
return true;
|
|
123009
123105
|
};
|
|
123010
123106
|
EventEmitter2.prototype.on = function on(event, fn, context) {
|
|
123011
|
-
return
|
|
123107
|
+
return addListener(this, event, fn, context, false);
|
|
123012
123108
|
};
|
|
123013
|
-
EventEmitter2.prototype.once = function
|
|
123014
|
-
return
|
|
123109
|
+
EventEmitter2.prototype.once = function once(event, fn, context) {
|
|
123110
|
+
return addListener(this, event, fn, context, true);
|
|
123015
123111
|
};
|
|
123016
|
-
EventEmitter2.prototype.removeListener = function
|
|
123112
|
+
EventEmitter2.prototype.removeListener = function removeListener(event, fn, context, once) {
|
|
123017
123113
|
var evt = prefix ? prefix + event : event;
|
|
123018
123114
|
if (!this._events[evt])
|
|
123019
123115
|
return this;
|
|
@@ -123021,15 +123117,15 @@ createCommonjsModule(function(module2) {
|
|
|
123021
123117
|
clearEvent(this, evt);
|
|
123022
123118
|
return this;
|
|
123023
123119
|
}
|
|
123024
|
-
var
|
|
123025
|
-
if (
|
|
123026
|
-
if (
|
|
123120
|
+
var listeners = this._events[evt];
|
|
123121
|
+
if (listeners.fn) {
|
|
123122
|
+
if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) {
|
|
123027
123123
|
clearEvent(this, evt);
|
|
123028
123124
|
}
|
|
123029
123125
|
} else {
|
|
123030
|
-
for (var i2 = 0, events2 = [], length2 =
|
|
123031
|
-
if (
|
|
123032
|
-
events2.push(
|
|
123126
|
+
for (var i2 = 0, events2 = [], length2 = listeners.length; i2 < length2; i2++) {
|
|
123127
|
+
if (listeners[i2].fn !== fn || once && !listeners[i2].once || context && listeners[i2].context !== context) {
|
|
123128
|
+
events2.push(listeners[i2]);
|
|
123033
123129
|
}
|
|
123034
123130
|
}
|
|
123035
123131
|
if (events2.length)
|
|
@@ -123039,7 +123135,7 @@ createCommonjsModule(function(module2) {
|
|
|
123039
123135
|
}
|
|
123040
123136
|
return this;
|
|
123041
123137
|
};
|
|
123042
|
-
EventEmitter2.prototype.removeAllListeners = function
|
|
123138
|
+
EventEmitter2.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
123043
123139
|
var evt;
|
|
123044
123140
|
if (event) {
|
|
123045
123141
|
evt = prefix ? prefix + event : event;
|
|
@@ -127522,7 +127618,7 @@ var blosc_codec = function() {
|
|
|
127522
127618
|
b += Ga[z[a2++]];
|
|
127523
127619
|
return b;
|
|
127524
127620
|
}
|
|
127525
|
-
var Q2 = {},
|
|
127621
|
+
var Q2 = {}, R = {}, S = {};
|
|
127526
127622
|
function Ha(a2) {
|
|
127527
127623
|
if (void 0 === a2)
|
|
127528
127624
|
return "_unknown";
|
|
@@ -127567,8 +127663,8 @@ var blosc_codec = function() {
|
|
|
127567
127663
|
});
|
|
127568
127664
|
var e2 = Array(a2.length), g2 = [], k = 0;
|
|
127569
127665
|
a2.forEach(function(h, l2) {
|
|
127570
|
-
|
|
127571
|
-
e2[l2] =
|
|
127666
|
+
R.hasOwnProperty(h) ? e2[l2] = R[h] : (g2.push(h), Q2.hasOwnProperty(h) || (Q2[h] = []), Q2[h].push(function() {
|
|
127667
|
+
e2[l2] = R[h];
|
|
127572
127668
|
++k;
|
|
127573
127669
|
k === g2.length && c(e2);
|
|
127574
127670
|
}));
|
|
@@ -127581,12 +127677,12 @@ var blosc_codec = function() {
|
|
|
127581
127677
|
throw new TypeError("registerType registeredInstance requires argPackAdvance");
|
|
127582
127678
|
var d = b.name;
|
|
127583
127679
|
a2 || T('type "' + d + '" must have a positive integer typeid pointer');
|
|
127584
|
-
if (
|
|
127680
|
+
if (R.hasOwnProperty(a2)) {
|
|
127585
127681
|
if (c.U)
|
|
127586
127682
|
return;
|
|
127587
127683
|
T("Cannot register type '" + d + "' twice");
|
|
127588
127684
|
}
|
|
127589
|
-
|
|
127685
|
+
R[a2] = b;
|
|
127590
127686
|
delete S[a2];
|
|
127591
127687
|
Q2.hasOwnProperty(a2) && (b = Q2[a2], delete Q2[a2], b.forEach(function(e2) {
|
|
127592
127688
|
e2();
|
|
@@ -127699,7 +127795,7 @@ var blosc_codec = function() {
|
|
|
127699
127795
|
}
|
|
127700
127796
|
function eb(a2, b) {
|
|
127701
127797
|
function c(g2) {
|
|
127702
|
-
e2[g2] ||
|
|
127798
|
+
e2[g2] || R[g2] || (S[g2] ? S[g2].forEach(c) : (d.push(g2), e2[g2] = true));
|
|
127703
127799
|
}
|
|
127704
127800
|
var d = [], e2 = {};
|
|
127705
127801
|
b.forEach(c);
|
|
@@ -127987,7 +128083,7 @@ var blosc_codec = function() {
|
|
|
127987
128083
|
}, n: Qa, x: function(a2) {
|
|
127988
128084
|
4 < a2 && (V[a2].P += 1);
|
|
127989
128085
|
}, C: function(a2, b) {
|
|
127990
|
-
var c =
|
|
128086
|
+
var c = R[a2];
|
|
127991
128087
|
void 0 === c && T("_emval_take_value has unknown type " + cb(a2));
|
|
127992
128088
|
a2 = c.readValueFromPointer(b);
|
|
127993
128089
|
return Ra(a2);
|
|
@@ -132812,10 +132908,10 @@ function multiSetsToTextureData(multiFeatureValues, multiMatrixObsIndex, setColo
|
|
|
132812
132908
|
const valueTexHeight = Math.max(2, Math.ceil(totalValuesLength / texSize));
|
|
132813
132909
|
const colorTexHeight = Math.max(2, Math.ceil(totalColorsLength / texSize));
|
|
132814
132910
|
if (valueTexHeight > texSize) {
|
|
132815
|
-
|
|
132911
|
+
log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
132816
132912
|
}
|
|
132817
132913
|
if (colorTexHeight > texSize) {
|
|
132818
|
-
|
|
132914
|
+
log$5.error("Error: length of concatenated quantitative feature values larger than maximum texture size");
|
|
132819
132915
|
}
|
|
132820
132916
|
const totalData = new Uint8Array(texSize * valueTexHeight);
|
|
132821
132917
|
const totalColors = new Uint8Array(texSize * colorTexHeight);
|
|
@@ -133501,7 +133597,7 @@ class ImageWrapper {
|
|
|
133501
133597
|
const channelNames = this.getChannelNames();
|
|
133502
133598
|
const channelIndex = channelNames.indexOf(channelSpecifier);
|
|
133503
133599
|
if (channelIndex === -1) {
|
|
133504
|
-
|
|
133600
|
+
log$5.error(`Channel ${channelSpecifier} not found in image.`);
|
|
133505
133601
|
}
|
|
133506
133602
|
return channelIndex;
|
|
133507
133603
|
}
|