@vitessce/heatmap 3.9.2 → 3.9.4
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-DoBsfd5X.js → deflate-CafSYkE8.js} +1 -1
- package/dist/{index-COwftYHh.js → index-CdqVjZrU.js} +1387 -400
- package/dist/index.js +1 -1
- package/dist/{jpeg-ej4QpQD2.js → jpeg-MuaEoA29.js} +1 -1
- package/dist/{lerc-DmcLtqzg.js → lerc-Crl3Us1z.js} +1 -1
- package/dist/{lzw-B49kANWk.js → lzw-SmfMfK-N.js} +1 -1
- package/dist/{packbits-Chm1I75k.js → packbits-DM8_km8s.js} +1 -1
- package/dist/{raw-CuoVZYgh.js → raw-M2AeXGn-.js} +1 -1
- package/dist/{webimage-BTaPGzt_.js → webimage-BH-xh1eM.js} +1 -1
- package/package.json +10 -10
|
@@ -3,7 +3,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
|
|
|
3
3
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
4
|
var _a2, _b;
|
|
5
5
|
import * as React from "react";
|
|
6
|
-
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children,
|
|
6
|
+
import React__default, { useContext, forwardRef, useRef, useMemo, createContext, createElement, isValidElement, cloneElement, Children, PureComponent, useEffect, useState, useCallback, useLayoutEffect, useImperativeHandle, useReducer } from "react";
|
|
7
7
|
import { useVitessceContainer, useComponentHover, useComponentViewInfo, usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordinationScopes, useSetComponentHover, useSetComponentViewInfo, useCoordination, useDeckCanvasSize, useMultiObsLabels, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixData, useObsSetsData, useReady, useUrls, useUint8ObsFeatureMatrix, useGetObsInfo, useGetObsMembership, TitleInfo } from "@vitessce/vit-s";
|
|
8
8
|
import * as ReactDOM from "react-dom";
|
|
9
9
|
function _mergeNamespaces(n2, m) {
|
|
@@ -1325,9 +1325,9 @@ function mapCacheHas(key) {
|
|
|
1325
1325
|
return getMapData(this, key).has(key);
|
|
1326
1326
|
}
|
|
1327
1327
|
function mapCacheSet(key, value) {
|
|
1328
|
-
var data = getMapData(this, key),
|
|
1328
|
+
var data = getMapData(this, key), size2 = data.size;
|
|
1329
1329
|
data.set(key, value);
|
|
1330
|
-
this.size += data.size ==
|
|
1330
|
+
this.size += data.size == size2 ? 0 : 1;
|
|
1331
1331
|
return this;
|
|
1332
1332
|
}
|
|
1333
1333
|
function MapCache(entries) {
|
|
@@ -1856,7 +1856,7 @@ function baseIsEqual(value, other, bitmask, customizer, stack2) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack2);
|
|
1858
1858
|
}
|
|
1859
|
-
var now = function() {
|
|
1859
|
+
var now$1 = function() {
|
|
1860
1860
|
return root$1.Date.now();
|
|
1861
1861
|
};
|
|
1862
1862
|
var FUNC_ERROR_TEXT = "Expected a function";
|
|
@@ -1894,7 +1894,7 @@ function debounce$1(func, wait, options) {
|
|
|
1894
1894
|
return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
|
1895
1895
|
}
|
|
1896
1896
|
function timerExpired() {
|
|
1897
|
-
var time = now();
|
|
1897
|
+
var time = now$1();
|
|
1898
1898
|
if (shouldInvoke(time)) {
|
|
1899
1899
|
return trailingEdge(time);
|
|
1900
1900
|
}
|
|
@@ -1916,10 +1916,10 @@ function debounce$1(func, wait, options) {
|
|
|
1916
1916
|
lastArgs = lastCallTime = lastThis = timerId = void 0;
|
|
1917
1917
|
}
|
|
1918
1918
|
function flush() {
|
|
1919
|
-
return timerId === void 0 ? result : trailingEdge(now());
|
|
1919
|
+
return timerId === void 0 ? result : trailingEdge(now$1());
|
|
1920
1920
|
}
|
|
1921
1921
|
function debounced() {
|
|
1922
|
-
var time = now(), isInvoking = shouldInvoke(time);
|
|
1922
|
+
var time = now$1(), isInvoking = shouldInvoke(time);
|
|
1923
1923
|
lastArgs = arguments;
|
|
1924
1924
|
lastThis = this;
|
|
1925
1925
|
lastCallTime = time;
|
|
@@ -1942,7 +1942,7 @@ function debounce$1(func, wait, options) {
|
|
|
1942
1942
|
debounced.flush = flush;
|
|
1943
1943
|
return debounced;
|
|
1944
1944
|
}
|
|
1945
|
-
function isEqual$
|
|
1945
|
+
function isEqual$2(value, other) {
|
|
1946
1946
|
return baseIsEqual(value, other);
|
|
1947
1947
|
}
|
|
1948
1948
|
function isNil(value) {
|
|
@@ -5929,8 +5929,8 @@ class ZodSet extends ZodType {
|
|
|
5929
5929
|
maxSize: { value: maxSize, message: errorUtil.toString(message) }
|
|
5930
5930
|
});
|
|
5931
5931
|
}
|
|
5932
|
-
size(
|
|
5933
|
-
return this.min(
|
|
5932
|
+
size(size2, message) {
|
|
5933
|
+
return this.min(size2, message).max(size2, message);
|
|
5934
5934
|
}
|
|
5935
5935
|
nonempty(message) {
|
|
5936
5936
|
return this.min(1, message);
|
|
@@ -9544,6 +9544,7 @@ const ViewType$1 = {
|
|
|
9544
9544
|
OBS_SET_COMPOSITION_BAR_PLOT: "obsSetCompositionBarPlot",
|
|
9545
9545
|
FEATURE_SET_ENRICHMENT_BAR_PLOT: "featureSetEnrichmentBarPlot",
|
|
9546
9546
|
BIOMARKER_SELECT: "biomarkerSelect",
|
|
9547
|
+
BIOMARKER_SELECT_ALT: "biomarkerSelectAlt",
|
|
9547
9548
|
COMPARATIVE_HEADING: "comparativeHeading",
|
|
9548
9549
|
LINK_CONTROLLER: "linkController",
|
|
9549
9550
|
NEUROGLANCER: "neuroglancer",
|
|
@@ -10741,6 +10742,17 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
|
10741
10742
|
CoordinationType$1.OBS_SET_FILTER
|
|
10742
10743
|
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
10743
10744
|
],
|
|
10745
|
+
[ViewType$1.BIOMARKER_SELECT_ALT]: [
|
|
10746
|
+
CoordinationType$1.DATASET,
|
|
10747
|
+
CoordinationType$1.OBS_TYPE,
|
|
10748
|
+
CoordinationType$1.SAMPLE_TYPE,
|
|
10749
|
+
CoordinationType$1.FEATURE_SELECTION,
|
|
10750
|
+
CoordinationType$1.SAMPLE_SET_SELECTION,
|
|
10751
|
+
CoordinationType$1.SAMPLE_SET_FILTER,
|
|
10752
|
+
CoordinationType$1.OBS_SET_SELECTION,
|
|
10753
|
+
CoordinationType$1.OBS_SET_FILTER
|
|
10754
|
+
// TODO: create coordination types for internal state of the biomarker selection view?
|
|
10755
|
+
],
|
|
10744
10756
|
[ViewType$1.COMPARATIVE_HEADING]: [
|
|
10745
10757
|
CoordinationType$1.DATASET,
|
|
10746
10758
|
CoordinationType$1.OBS_TYPE,
|
|
@@ -11943,11 +11955,11 @@ function requireTinycolor() {
|
|
|
11943
11955
|
var bestColor = null;
|
|
11944
11956
|
var bestScore = 0;
|
|
11945
11957
|
var readability;
|
|
11946
|
-
var includeFallbackColors, level,
|
|
11958
|
+
var includeFallbackColors, level, size2;
|
|
11947
11959
|
args = args || {};
|
|
11948
11960
|
includeFallbackColors = args.includeFallbackColors;
|
|
11949
11961
|
level = args.level;
|
|
11950
|
-
|
|
11962
|
+
size2 = args.size;
|
|
11951
11963
|
for (var i2 = 0; i2 < colorList.length; i2++) {
|
|
11952
11964
|
readability = tinycolor2.readability(baseColor, colorList[i2]);
|
|
11953
11965
|
if (readability > bestScore) {
|
|
@@ -11955,7 +11967,7 @@ function requireTinycolor() {
|
|
|
11955
11967
|
bestColor = tinycolor2(colorList[i2]);
|
|
11956
11968
|
}
|
|
11957
11969
|
}
|
|
11958
|
-
if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size":
|
|
11970
|
+
if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size2 }) || !includeFallbackColors) {
|
|
11959
11971
|
return bestColor;
|
|
11960
11972
|
} else {
|
|
11961
11973
|
args.includeFallbackColors = false;
|
|
@@ -12259,17 +12271,17 @@ function requireTinycolor() {
|
|
|
12259
12271
|
return false;
|
|
12260
12272
|
}
|
|
12261
12273
|
function validateWCAG2Parms(parms) {
|
|
12262
|
-
var level,
|
|
12274
|
+
var level, size2;
|
|
12263
12275
|
parms = parms || { "level": "AA", "size": "small" };
|
|
12264
12276
|
level = (parms.level || "AA").toUpperCase();
|
|
12265
|
-
|
|
12277
|
+
size2 = (parms.size || "small").toLowerCase();
|
|
12266
12278
|
if (level !== "AA" && level !== "AAA") {
|
|
12267
12279
|
level = "AA";
|
|
12268
12280
|
}
|
|
12269
|
-
if (
|
|
12270
|
-
|
|
12281
|
+
if (size2 !== "small" && size2 !== "large") {
|
|
12282
|
+
size2 = "small";
|
|
12271
12283
|
}
|
|
12272
|
-
return { "level": level, "size":
|
|
12284
|
+
return { "level": level, "size": size2 };
|
|
12273
12285
|
}
|
|
12274
12286
|
if (module2.exports) {
|
|
12275
12287
|
module2.exports = tinycolor2;
|
|
@@ -12336,7 +12348,7 @@ function treeToCellColorsBySetNames(currTree, selectedNamePaths, cellSetColor, t
|
|
|
12336
12348
|
const node2 = treeFindNodeByNamePath(currTree, setNamePath);
|
|
12337
12349
|
if (node2) {
|
|
12338
12350
|
const nodeSet = nodeToSet(node2);
|
|
12339
|
-
const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$
|
|
12351
|
+
const nodeColor = ((_a3 = cellSetColor == null ? void 0 : cellSetColor.find((d) => isEqual$2(d.path, setNamePath))) == null ? void 0 : _a3.color) || getDefaultColor(theme);
|
|
12340
12352
|
cellColorsArray = [
|
|
12341
12353
|
...cellColorsArray,
|
|
12342
12354
|
...nodeSet.map(([cellId, prob]) => [
|
|
@@ -12978,41 +12990,41 @@ function requireJson2csv_umd() {
|
|
|
12978
12990
|
Buffer3.prototype.__proto__ = Uint8Array.prototype;
|
|
12979
12991
|
Buffer3.__proto__ = Uint8Array;
|
|
12980
12992
|
}
|
|
12981
|
-
function assertSize(
|
|
12982
|
-
if (typeof
|
|
12993
|
+
function assertSize(size2) {
|
|
12994
|
+
if (typeof size2 !== "number") {
|
|
12983
12995
|
throw new TypeError('"size" argument must be a number');
|
|
12984
|
-
} else if (
|
|
12996
|
+
} else if (size2 < 0) {
|
|
12985
12997
|
throw new RangeError('"size" argument must not be negative');
|
|
12986
12998
|
}
|
|
12987
12999
|
}
|
|
12988
|
-
function alloc2(that,
|
|
12989
|
-
assertSize(
|
|
12990
|
-
if (
|
|
12991
|
-
return createBuffer(that,
|
|
13000
|
+
function alloc2(that, size2, fill, encoding) {
|
|
13001
|
+
assertSize(size2);
|
|
13002
|
+
if (size2 <= 0) {
|
|
13003
|
+
return createBuffer(that, size2);
|
|
12992
13004
|
}
|
|
12993
13005
|
if (fill !== void 0) {
|
|
12994
|
-
return typeof encoding === "string" ? createBuffer(that,
|
|
13006
|
+
return typeof encoding === "string" ? createBuffer(that, size2).fill(fill, encoding) : createBuffer(that, size2).fill(fill);
|
|
12995
13007
|
}
|
|
12996
|
-
return createBuffer(that,
|
|
13008
|
+
return createBuffer(that, size2);
|
|
12997
13009
|
}
|
|
12998
|
-
Buffer3.alloc = function(
|
|
12999
|
-
return alloc2(null,
|
|
13010
|
+
Buffer3.alloc = function(size2, fill, encoding) {
|
|
13011
|
+
return alloc2(null, size2, fill, encoding);
|
|
13000
13012
|
};
|
|
13001
|
-
function allocUnsafe(that,
|
|
13002
|
-
assertSize(
|
|
13003
|
-
that = createBuffer(that,
|
|
13013
|
+
function allocUnsafe(that, size2) {
|
|
13014
|
+
assertSize(size2);
|
|
13015
|
+
that = createBuffer(that, size2 < 0 ? 0 : checked(size2) | 0);
|
|
13004
13016
|
if (!Buffer3.TYPED_ARRAY_SUPPORT) {
|
|
13005
|
-
for (var i2 = 0; i2 <
|
|
13017
|
+
for (var i2 = 0; i2 < size2; ++i2) {
|
|
13006
13018
|
that[i2] = 0;
|
|
13007
13019
|
}
|
|
13008
13020
|
}
|
|
13009
13021
|
return that;
|
|
13010
13022
|
}
|
|
13011
|
-
Buffer3.allocUnsafe = function(
|
|
13012
|
-
return allocUnsafe(null,
|
|
13023
|
+
Buffer3.allocUnsafe = function(size2) {
|
|
13024
|
+
return allocUnsafe(null, size2);
|
|
13013
13025
|
};
|
|
13014
|
-
Buffer3.allocUnsafeSlow = function(
|
|
13015
|
-
return allocUnsafe(null,
|
|
13026
|
+
Buffer3.allocUnsafeSlow = function(size2) {
|
|
13027
|
+
return allocUnsafe(null, size2);
|
|
13016
13028
|
};
|
|
13017
13029
|
function fromString(that, string2, encoding) {
|
|
13018
13030
|
if (typeof encoding !== "string" || encoding === "") {
|
|
@@ -14366,8 +14378,8 @@ function requireJson2csv_umd() {
|
|
|
14366
14378
|
Item.prototype.run = function() {
|
|
14367
14379
|
this.fun.apply(null, this.array);
|
|
14368
14380
|
};
|
|
14369
|
-
var
|
|
14370
|
-
|
|
14381
|
+
var performance2 = global$1.performance || {};
|
|
14382
|
+
performance2.now || performance2.mozNow || performance2.msNow || performance2.oNow || performance2.webkitNow || function() {
|
|
14371
14383
|
return (/* @__PURE__ */ new Date()).getTime();
|
|
14372
14384
|
};
|
|
14373
14385
|
var inherits;
|
|
@@ -14902,11 +14914,11 @@ function requireJson2csv_umd() {
|
|
|
14902
14914
|
var end = charStr.length - 1;
|
|
14903
14915
|
var charCode = charStr.charCodeAt(end);
|
|
14904
14916
|
if (charCode >= 55296 && charCode <= 56319) {
|
|
14905
|
-
var
|
|
14906
|
-
this.charLength +=
|
|
14907
|
-
this.charReceived +=
|
|
14908
|
-
this.charBuffer.copy(this.charBuffer,
|
|
14909
|
-
buffer.copy(this.charBuffer, 0, 0,
|
|
14917
|
+
var size2 = this.surrogateSize;
|
|
14918
|
+
this.charLength += size2;
|
|
14919
|
+
this.charReceived += size2;
|
|
14920
|
+
this.charBuffer.copy(this.charBuffer, size2, 0, size2);
|
|
14921
|
+
buffer.copy(this.charBuffer, 0, 0, size2);
|
|
14910
14922
|
return charStr.substring(0, end);
|
|
14911
14923
|
}
|
|
14912
14924
|
return charStr;
|
|
@@ -16853,27 +16865,27 @@ function requireJson2csv_umd() {
|
|
|
16853
16865
|
this.stringBuffer[this.stringBufferOffset++] = char2;
|
|
16854
16866
|
};
|
|
16855
16867
|
proto.appendStringBuf = function(buf, start, end) {
|
|
16856
|
-
var
|
|
16868
|
+
var size2 = buf.length;
|
|
16857
16869
|
if (typeof start === "number") {
|
|
16858
16870
|
if (typeof end === "number") {
|
|
16859
16871
|
if (end < 0) {
|
|
16860
|
-
|
|
16872
|
+
size2 = buf.length - start + end;
|
|
16861
16873
|
} else {
|
|
16862
|
-
|
|
16874
|
+
size2 = end - start;
|
|
16863
16875
|
}
|
|
16864
16876
|
} else {
|
|
16865
|
-
|
|
16877
|
+
size2 = buf.length - start;
|
|
16866
16878
|
}
|
|
16867
16879
|
}
|
|
16868
|
-
if (
|
|
16869
|
-
|
|
16880
|
+
if (size2 < 0) {
|
|
16881
|
+
size2 = 0;
|
|
16870
16882
|
}
|
|
16871
|
-
if (this.stringBufferOffset +
|
|
16883
|
+
if (this.stringBufferOffset + size2 > STRING_BUFFER_SIZE) {
|
|
16872
16884
|
this.string += this.stringBuffer.toString("utf8", 0, this.stringBufferOffset);
|
|
16873
16885
|
this.stringBufferOffset = 0;
|
|
16874
16886
|
}
|
|
16875
16887
|
buf.copy(this.stringBuffer, this.stringBufferOffset, start, end);
|
|
16876
|
-
this.stringBufferOffset +=
|
|
16888
|
+
this.stringBufferOffset += size2;
|
|
16877
16889
|
};
|
|
16878
16890
|
proto.write = function(buffer) {
|
|
16879
16891
|
if (typeof buffer === "string") buffer = new Buffer3(buffer);
|
|
@@ -18961,9 +18973,9 @@ function parse$4(value, root2, parent, rule, rules, rulesets, pseudo, points, de
|
|
|
18961
18973
|
function ruleset(value, root2, parent, index2, offset2, rules, points, type, props, children2, length2) {
|
|
18962
18974
|
var post = offset2 - 1;
|
|
18963
18975
|
var rule = offset2 === 0 ? rules : [""];
|
|
18964
|
-
var
|
|
18976
|
+
var size2 = sizeof(rule);
|
|
18965
18977
|
for (var i2 = 0, j = 0, k = 0; i2 < index2; ++i2)
|
|
18966
|
-
for (var x = 0, y = substr(value, post + 1, post = abs$1(j = points[i2])), z2 = value; x <
|
|
18978
|
+
for (var x = 0, y = substr(value, post + 1, post = abs$1(j = points[i2])), z2 = value; x < size2; ++x)
|
|
18967
18979
|
if (z2 = trim(j > 0 ? rule[x] + " " + y : replace(y, /&\f/g, rule[x])))
|
|
18968
18980
|
props[k++] = z2;
|
|
18969
18981
|
return node(value, root2, parent, offset2 === 0 ? RULESET : type, props, children2, length2);
|
|
@@ -22946,6 +22958,56 @@ const systemDefaultTheme$1 = createTheme$1();
|
|
|
22946
22958
|
function useTheme$1(defaultTheme2 = systemDefaultTheme$1) {
|
|
22947
22959
|
return useTheme$2(defaultTheme2);
|
|
22948
22960
|
}
|
|
22961
|
+
const splitProps = (props) => {
|
|
22962
|
+
var _a3;
|
|
22963
|
+
const result = {
|
|
22964
|
+
systemProps: {},
|
|
22965
|
+
otherProps: {}
|
|
22966
|
+
};
|
|
22967
|
+
const config2 = ((_a3 = props == null ? void 0 : props.theme) == null ? void 0 : _a3.unstable_sxConfig) ?? defaultSxConfig;
|
|
22968
|
+
Object.keys(props).forEach((prop) => {
|
|
22969
|
+
if (config2[prop]) {
|
|
22970
|
+
result.systemProps[prop] = props[prop];
|
|
22971
|
+
} else {
|
|
22972
|
+
result.otherProps[prop] = props[prop];
|
|
22973
|
+
}
|
|
22974
|
+
});
|
|
22975
|
+
return result;
|
|
22976
|
+
};
|
|
22977
|
+
function extendSxProp$1(props) {
|
|
22978
|
+
const {
|
|
22979
|
+
sx: inSx,
|
|
22980
|
+
...other
|
|
22981
|
+
} = props;
|
|
22982
|
+
const {
|
|
22983
|
+
systemProps,
|
|
22984
|
+
otherProps
|
|
22985
|
+
} = splitProps(other);
|
|
22986
|
+
let finalSx;
|
|
22987
|
+
if (Array.isArray(inSx)) {
|
|
22988
|
+
finalSx = [systemProps, ...inSx];
|
|
22989
|
+
} else if (typeof inSx === "function") {
|
|
22990
|
+
finalSx = (...args) => {
|
|
22991
|
+
const result = inSx(...args);
|
|
22992
|
+
if (!isPlainObject$1(result)) {
|
|
22993
|
+
return systemProps;
|
|
22994
|
+
}
|
|
22995
|
+
return {
|
|
22996
|
+
...systemProps,
|
|
22997
|
+
...result
|
|
22998
|
+
};
|
|
22999
|
+
};
|
|
23000
|
+
} else {
|
|
23001
|
+
finalSx = {
|
|
23002
|
+
...systemProps,
|
|
23003
|
+
...inSx
|
|
23004
|
+
};
|
|
23005
|
+
}
|
|
23006
|
+
return {
|
|
23007
|
+
...otherProps,
|
|
23008
|
+
sx: finalSx
|
|
23009
|
+
};
|
|
23010
|
+
}
|
|
22949
23011
|
const defaultGenerator = (componentName) => componentName;
|
|
22950
23012
|
const createClassNameGenerator = () => {
|
|
22951
23013
|
let generate = defaultGenerator;
|
|
@@ -24317,17 +24379,17 @@ function createTypography(palette, typography) {
|
|
|
24317
24379
|
}
|
|
24318
24380
|
}
|
|
24319
24381
|
const coef = fontSize / 14;
|
|
24320
|
-
const pxToRem = pxToRem2 || ((
|
|
24321
|
-
const buildVariant = (fontWeight,
|
|
24382
|
+
const pxToRem = pxToRem2 || ((size2) => `${size2 / htmlFontSize * coef}rem`);
|
|
24383
|
+
const buildVariant = (fontWeight, size2, lineHeight, letterSpacing, casing) => ({
|
|
24322
24384
|
fontFamily,
|
|
24323
24385
|
fontWeight,
|
|
24324
|
-
fontSize: pxToRem(
|
|
24386
|
+
fontSize: pxToRem(size2),
|
|
24325
24387
|
// Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/
|
|
24326
24388
|
lineHeight,
|
|
24327
24389
|
// The letter spacing was designed for the Roboto font-family. Using the same letter-spacing
|
|
24328
24390
|
// across font-families can cause issues with the kerning.
|
|
24329
24391
|
...fontFamily === defaultFontFamily ? {
|
|
24330
|
-
letterSpacing: `${round$1(letterSpacing /
|
|
24392
|
+
letterSpacing: `${round$1(letterSpacing / size2)}em`
|
|
24331
24393
|
} : {},
|
|
24332
24394
|
...casing,
|
|
24333
24395
|
...allVariants
|
|
@@ -25138,6 +25200,9 @@ const { tss } = createTss({
|
|
|
25138
25200
|
"usePlugin": useMuiThemeStyleOverridesPlugin
|
|
25139
25201
|
});
|
|
25140
25202
|
const useStyles$3 = tss.create({});
|
|
25203
|
+
function internal_createExtendSxProp() {
|
|
25204
|
+
return extendSxProp$1;
|
|
25205
|
+
}
|
|
25141
25206
|
const memoTheme = unstable_memoTheme;
|
|
25142
25207
|
({
|
|
25143
25208
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
@@ -25160,7 +25225,7 @@ function getSvgIconUtilityClass(slot) {
|
|
|
25160
25225
|
return generateUtilityClass("MuiSvgIcon", slot);
|
|
25161
25226
|
}
|
|
25162
25227
|
generateUtilityClasses("MuiSvgIcon", ["root", "colorPrimary", "colorSecondary", "colorAction", "colorError", "colorDisabled", "fontSizeInherit", "fontSizeSmall", "fontSizeMedium", "fontSizeLarge"]);
|
|
25163
|
-
const useUtilityClasses$
|
|
25228
|
+
const useUtilityClasses$8 = (ownerState) => {
|
|
25164
25229
|
const {
|
|
25165
25230
|
color: color2,
|
|
25166
25231
|
fontSize,
|
|
@@ -25305,7 +25370,7 @@ const SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(inProps, ref)
|
|
|
25305
25370
|
if (!inheritViewBox) {
|
|
25306
25371
|
more.viewBox = viewBox;
|
|
25307
25372
|
}
|
|
25308
|
-
const classes = useUtilityClasses$
|
|
25373
|
+
const classes = useUtilityClasses$8(ownerState);
|
|
25309
25374
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(SvgIconRoot, {
|
|
25310
25375
|
as: component,
|
|
25311
25376
|
className: clsx(classes.root, className),
|
|
@@ -25951,7 +26016,7 @@ function getPaperUtilityClass(slot) {
|
|
|
25951
26016
|
return generateUtilityClass("MuiPaper", slot);
|
|
25952
26017
|
}
|
|
25953
26018
|
generateUtilityClasses("MuiPaper", ["root", "rounded", "outlined", "elevation", "elevation0", "elevation1", "elevation2", "elevation3", "elevation4", "elevation5", "elevation6", "elevation7", "elevation8", "elevation9", "elevation10", "elevation11", "elevation12", "elevation13", "elevation14", "elevation15", "elevation16", "elevation17", "elevation18", "elevation19", "elevation20", "elevation21", "elevation22", "elevation23", "elevation24"]);
|
|
25954
|
-
const useUtilityClasses$
|
|
26019
|
+
const useUtilityClasses$7 = (ownerState) => {
|
|
25955
26020
|
const {
|
|
25956
26021
|
square,
|
|
25957
26022
|
elevation,
|
|
@@ -26024,7 +26089,7 @@ const Paper = /* @__PURE__ */ React.forwardRef(function Paper2(inProps, ref) {
|
|
|
26024
26089
|
square,
|
|
26025
26090
|
variant
|
|
26026
26091
|
};
|
|
26027
|
-
const classes = useUtilityClasses$
|
|
26092
|
+
const classes = useUtilityClasses$7(ownerState);
|
|
26028
26093
|
{
|
|
26029
26094
|
if (theme.shadows[elevation] === void 0) {
|
|
26030
26095
|
console.error([`MUI: The elevation provided <Paper elevation={${elevation}}> is not available in the theme.`, `Please make sure that \`theme.shadows[${elevation}]\` is defined.`].join("\n"));
|
|
@@ -26710,7 +26775,7 @@ function getButtonBaseUtilityClass(slot) {
|
|
|
26710
26775
|
return generateUtilityClass("MuiButtonBase", slot);
|
|
26711
26776
|
}
|
|
26712
26777
|
const buttonBaseClasses = generateUtilityClasses("MuiButtonBase", ["root", "disabled", "focusVisible"]);
|
|
26713
|
-
const useUtilityClasses$
|
|
26778
|
+
const useUtilityClasses$6 = (ownerState) => {
|
|
26714
26779
|
const {
|
|
26715
26780
|
disabled,
|
|
26716
26781
|
focusVisible,
|
|
@@ -26926,7 +26991,7 @@ const ButtonBase = /* @__PURE__ */ React.forwardRef(function ButtonBase2(inProps
|
|
|
26926
26991
|
tabIndex,
|
|
26927
26992
|
focusVisible
|
|
26928
26993
|
};
|
|
26929
|
-
const classes = useUtilityClasses$
|
|
26994
|
+
const classes = useUtilityClasses$6(ownerState);
|
|
26930
26995
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ButtonBaseRoot, {
|
|
26931
26996
|
as: ComponentProp,
|
|
26932
26997
|
className: clsx(classes.root, className),
|
|
@@ -27263,7 +27328,7 @@ function getSwitchBaseUtilityClass(slot) {
|
|
|
27263
27328
|
return generateUtilityClass("PrivateSwitchBase", slot);
|
|
27264
27329
|
}
|
|
27265
27330
|
generateUtilityClasses("PrivateSwitchBase", ["root", "checked", "disabled", "input", "edgeStart", "edgeEnd"]);
|
|
27266
|
-
const useUtilityClasses$
|
|
27331
|
+
const useUtilityClasses$5 = (ownerState) => {
|
|
27267
27332
|
const {
|
|
27268
27333
|
classes,
|
|
27269
27334
|
checked,
|
|
@@ -27400,7 +27465,7 @@ const SwitchBase = /* @__PURE__ */ React.forwardRef(function SwitchBase2(props,
|
|
|
27400
27465
|
disableFocusRipple,
|
|
27401
27466
|
edge
|
|
27402
27467
|
};
|
|
27403
|
-
const classes = useUtilityClasses$
|
|
27468
|
+
const classes = useUtilityClasses$5(ownerState);
|
|
27404
27469
|
const externalForwardedProps = {
|
|
27405
27470
|
slots,
|
|
27406
27471
|
slotProps: {
|
|
@@ -27609,15 +27674,15 @@ function getCheckboxUtilityClass(slot) {
|
|
|
27609
27674
|
return generateUtilityClass("MuiCheckbox", slot);
|
|
27610
27675
|
}
|
|
27611
27676
|
const checkboxClasses = generateUtilityClasses("MuiCheckbox", ["root", "checked", "disabled", "indeterminate", "colorPrimary", "colorSecondary", "sizeSmall", "sizeMedium"]);
|
|
27612
|
-
const useUtilityClasses$
|
|
27677
|
+
const useUtilityClasses$4 = (ownerState) => {
|
|
27613
27678
|
const {
|
|
27614
27679
|
classes,
|
|
27615
27680
|
indeterminate,
|
|
27616
27681
|
color: color2,
|
|
27617
|
-
size
|
|
27682
|
+
size: size2
|
|
27618
27683
|
} = ownerState;
|
|
27619
27684
|
const slots = {
|
|
27620
|
-
root: ["root", indeterminate && "indeterminate", `color${capitalize(color2)}`, `size${capitalize(
|
|
27685
|
+
root: ["root", indeterminate && "indeterminate", `color${capitalize(color2)}`, `size${capitalize(size2)}`]
|
|
27621
27686
|
};
|
|
27622
27687
|
const composedClasses = composeClasses(slots, getCheckboxUtilityClass, classes);
|
|
27623
27688
|
return {
|
|
@@ -27702,7 +27767,7 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
27702
27767
|
indeterminate = false,
|
|
27703
27768
|
indeterminateIcon: indeterminateIconProp = defaultIndeterminateIcon,
|
|
27704
27769
|
inputProps,
|
|
27705
|
-
size = "medium",
|
|
27770
|
+
size: size2 = "medium",
|
|
27706
27771
|
disableRipple = false,
|
|
27707
27772
|
className,
|
|
27708
27773
|
slots = {},
|
|
@@ -27716,9 +27781,9 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
27716
27781
|
disableRipple,
|
|
27717
27782
|
color: color2,
|
|
27718
27783
|
indeterminate,
|
|
27719
|
-
size
|
|
27784
|
+
size: size2
|
|
27720
27785
|
};
|
|
27721
|
-
const classes = useUtilityClasses$
|
|
27786
|
+
const classes = useUtilityClasses$4(ownerState);
|
|
27722
27787
|
const externalInputProps = slotProps.input ?? inputProps;
|
|
27723
27788
|
const [RootSlot, rootSlotProps] = useSlot("root", {
|
|
27724
27789
|
ref,
|
|
@@ -27734,10 +27799,10 @@ const Checkbox = /* @__PURE__ */ React.forwardRef(function Checkbox2(inProps, re
|
|
|
27734
27799
|
additionalProps: {
|
|
27735
27800
|
type: "checkbox",
|
|
27736
27801
|
icon: /* @__PURE__ */ React.cloneElement(icon, {
|
|
27737
|
-
fontSize: icon.props.fontSize ??
|
|
27802
|
+
fontSize: icon.props.fontSize ?? size2
|
|
27738
27803
|
}),
|
|
27739
27804
|
checkedIcon: /* @__PURE__ */ React.cloneElement(indeterminateIcon, {
|
|
27740
|
-
fontSize: indeterminateIcon.props.fontSize ??
|
|
27805
|
+
fontSize: indeterminateIcon.props.fontSize ?? size2
|
|
27741
27806
|
}),
|
|
27742
27807
|
disableRipple,
|
|
27743
27808
|
slots,
|
|
@@ -27867,6 +27932,266 @@ Checkbox.propTypes = {
|
|
|
27867
27932
|
*/
|
|
27868
27933
|
value: PropTypes.any
|
|
27869
27934
|
};
|
|
27935
|
+
function getTypographyUtilityClass(slot) {
|
|
27936
|
+
return generateUtilityClass("MuiTypography", slot);
|
|
27937
|
+
}
|
|
27938
|
+
generateUtilityClasses("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "subtitle1", "subtitle2", "body1", "body2", "inherit", "button", "caption", "overline", "alignLeft", "alignRight", "alignCenter", "alignJustify", "noWrap", "gutterBottom", "paragraph"]);
|
|
27939
|
+
const v6Colors = {
|
|
27940
|
+
primary: true,
|
|
27941
|
+
secondary: true,
|
|
27942
|
+
error: true,
|
|
27943
|
+
info: true,
|
|
27944
|
+
success: true,
|
|
27945
|
+
warning: true,
|
|
27946
|
+
textPrimary: true,
|
|
27947
|
+
textSecondary: true,
|
|
27948
|
+
textDisabled: true
|
|
27949
|
+
};
|
|
27950
|
+
const extendSxProp = internal_createExtendSxProp();
|
|
27951
|
+
const useUtilityClasses$3 = (ownerState) => {
|
|
27952
|
+
const {
|
|
27953
|
+
align,
|
|
27954
|
+
gutterBottom,
|
|
27955
|
+
noWrap,
|
|
27956
|
+
paragraph,
|
|
27957
|
+
variant,
|
|
27958
|
+
classes
|
|
27959
|
+
} = ownerState;
|
|
27960
|
+
const slots = {
|
|
27961
|
+
root: ["root", variant, ownerState.align !== "inherit" && `align${capitalize(align)}`, gutterBottom && "gutterBottom", noWrap && "noWrap", paragraph && "paragraph"]
|
|
27962
|
+
};
|
|
27963
|
+
return composeClasses(slots, getTypographyUtilityClass, classes);
|
|
27964
|
+
};
|
|
27965
|
+
const TypographyRoot = styled("span", {
|
|
27966
|
+
name: "MuiTypography",
|
|
27967
|
+
slot: "Root",
|
|
27968
|
+
overridesResolver: (props, styles) => {
|
|
27969
|
+
const {
|
|
27970
|
+
ownerState
|
|
27971
|
+
} = props;
|
|
27972
|
+
return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== "inherit" && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
|
|
27973
|
+
}
|
|
27974
|
+
})(memoTheme(({
|
|
27975
|
+
theme
|
|
27976
|
+
}) => {
|
|
27977
|
+
var _a3;
|
|
27978
|
+
return {
|
|
27979
|
+
margin: 0,
|
|
27980
|
+
variants: [{
|
|
27981
|
+
props: {
|
|
27982
|
+
variant: "inherit"
|
|
27983
|
+
},
|
|
27984
|
+
style: {
|
|
27985
|
+
// Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.
|
|
27986
|
+
font: "inherit",
|
|
27987
|
+
lineHeight: "inherit",
|
|
27988
|
+
letterSpacing: "inherit"
|
|
27989
|
+
}
|
|
27990
|
+
}, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== "inherit" && value && typeof value === "object").map(([variant, value]) => ({
|
|
27991
|
+
props: {
|
|
27992
|
+
variant
|
|
27993
|
+
},
|
|
27994
|
+
style: value
|
|
27995
|
+
})), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color2]) => ({
|
|
27996
|
+
props: {
|
|
27997
|
+
color: color2
|
|
27998
|
+
},
|
|
27999
|
+
style: {
|
|
28000
|
+
color: (theme.vars || theme).palette[color2].main
|
|
28001
|
+
}
|
|
28002
|
+
})), ...Object.entries(((_a3 = theme.palette) == null ? void 0 : _a3.text) || {}).filter(([, value]) => typeof value === "string").map(([color2]) => ({
|
|
28003
|
+
props: {
|
|
28004
|
+
color: `text${capitalize(color2)}`
|
|
28005
|
+
},
|
|
28006
|
+
style: {
|
|
28007
|
+
color: (theme.vars || theme).palette.text[color2]
|
|
28008
|
+
}
|
|
28009
|
+
})), {
|
|
28010
|
+
props: ({
|
|
28011
|
+
ownerState
|
|
28012
|
+
}) => ownerState.align !== "inherit",
|
|
28013
|
+
style: {
|
|
28014
|
+
textAlign: "var(--Typography-textAlign)"
|
|
28015
|
+
}
|
|
28016
|
+
}, {
|
|
28017
|
+
props: ({
|
|
28018
|
+
ownerState
|
|
28019
|
+
}) => ownerState.noWrap,
|
|
28020
|
+
style: {
|
|
28021
|
+
overflow: "hidden",
|
|
28022
|
+
textOverflow: "ellipsis",
|
|
28023
|
+
whiteSpace: "nowrap"
|
|
28024
|
+
}
|
|
28025
|
+
}, {
|
|
28026
|
+
props: ({
|
|
28027
|
+
ownerState
|
|
28028
|
+
}) => ownerState.gutterBottom,
|
|
28029
|
+
style: {
|
|
28030
|
+
marginBottom: "0.35em"
|
|
28031
|
+
}
|
|
28032
|
+
}, {
|
|
28033
|
+
props: ({
|
|
28034
|
+
ownerState
|
|
28035
|
+
}) => ownerState.paragraph,
|
|
28036
|
+
style: {
|
|
28037
|
+
marginBottom: 16
|
|
28038
|
+
}
|
|
28039
|
+
}]
|
|
28040
|
+
};
|
|
28041
|
+
}));
|
|
28042
|
+
const defaultVariantMapping = {
|
|
28043
|
+
h1: "h1",
|
|
28044
|
+
h2: "h2",
|
|
28045
|
+
h3: "h3",
|
|
28046
|
+
h4: "h4",
|
|
28047
|
+
h5: "h5",
|
|
28048
|
+
h6: "h6",
|
|
28049
|
+
subtitle1: "h6",
|
|
28050
|
+
subtitle2: "h6",
|
|
28051
|
+
body1: "p",
|
|
28052
|
+
body2: "p",
|
|
28053
|
+
inherit: "p"
|
|
28054
|
+
};
|
|
28055
|
+
const Typography = /* @__PURE__ */ React.forwardRef(function Typography2(inProps, ref) {
|
|
28056
|
+
const {
|
|
28057
|
+
color: color2,
|
|
28058
|
+
...themeProps
|
|
28059
|
+
} = useDefaultProps({
|
|
28060
|
+
props: inProps,
|
|
28061
|
+
name: "MuiTypography"
|
|
28062
|
+
});
|
|
28063
|
+
const isSxColor = !v6Colors[color2];
|
|
28064
|
+
const props = extendSxProp({
|
|
28065
|
+
...themeProps,
|
|
28066
|
+
...isSxColor && {
|
|
28067
|
+
color: color2
|
|
28068
|
+
}
|
|
28069
|
+
});
|
|
28070
|
+
const {
|
|
28071
|
+
align = "inherit",
|
|
28072
|
+
className,
|
|
28073
|
+
component,
|
|
28074
|
+
gutterBottom = false,
|
|
28075
|
+
noWrap = false,
|
|
28076
|
+
paragraph = false,
|
|
28077
|
+
variant = "body1",
|
|
28078
|
+
variantMapping = defaultVariantMapping,
|
|
28079
|
+
...other
|
|
28080
|
+
} = props;
|
|
28081
|
+
const ownerState = {
|
|
28082
|
+
...props,
|
|
28083
|
+
align,
|
|
28084
|
+
color: color2,
|
|
28085
|
+
className,
|
|
28086
|
+
component,
|
|
28087
|
+
gutterBottom,
|
|
28088
|
+
noWrap,
|
|
28089
|
+
paragraph,
|
|
28090
|
+
variant,
|
|
28091
|
+
variantMapping
|
|
28092
|
+
};
|
|
28093
|
+
const Component2 = component || (paragraph ? "p" : variantMapping[variant] || defaultVariantMapping[variant]) || "span";
|
|
28094
|
+
const classes = useUtilityClasses$3(ownerState);
|
|
28095
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(TypographyRoot, {
|
|
28096
|
+
as: Component2,
|
|
28097
|
+
ref,
|
|
28098
|
+
className: clsx(classes.root, className),
|
|
28099
|
+
...other,
|
|
28100
|
+
ownerState,
|
|
28101
|
+
style: {
|
|
28102
|
+
...align !== "inherit" && {
|
|
28103
|
+
"--Typography-textAlign": align
|
|
28104
|
+
},
|
|
28105
|
+
...other.style
|
|
28106
|
+
}
|
|
28107
|
+
});
|
|
28108
|
+
});
|
|
28109
|
+
Typography.propTypes = {
|
|
28110
|
+
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
28111
|
+
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
28112
|
+
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
28113
|
+
// └─────────────────────────────────────────────────────────────────────┘
|
|
28114
|
+
/**
|
|
28115
|
+
* Set the text-align on the component.
|
|
28116
|
+
* @default 'inherit'
|
|
28117
|
+
*/
|
|
28118
|
+
align: PropTypes.oneOf(["center", "inherit", "justify", "left", "right"]),
|
|
28119
|
+
/**
|
|
28120
|
+
* The content of the component.
|
|
28121
|
+
*/
|
|
28122
|
+
children: PropTypes.node,
|
|
28123
|
+
/**
|
|
28124
|
+
* Override or extend the styles applied to the component.
|
|
28125
|
+
*/
|
|
28126
|
+
classes: PropTypes.object,
|
|
28127
|
+
/**
|
|
28128
|
+
* @ignore
|
|
28129
|
+
*/
|
|
28130
|
+
className: PropTypes.string,
|
|
28131
|
+
/**
|
|
28132
|
+
* The color of the component.
|
|
28133
|
+
* It supports both default and custom theme colors, which can be added as shown in the
|
|
28134
|
+
* [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).
|
|
28135
|
+
*/
|
|
28136
|
+
color: PropTypes.oneOfType([PropTypes.oneOf(["primary", "secondary", "success", "error", "info", "warning", "textPrimary", "textSecondary", "textDisabled"]), PropTypes.string]),
|
|
28137
|
+
/**
|
|
28138
|
+
* The component used for the root node.
|
|
28139
|
+
* Either a string to use a HTML element or a component.
|
|
28140
|
+
*/
|
|
28141
|
+
component: PropTypes.elementType,
|
|
28142
|
+
/**
|
|
28143
|
+
* If `true`, the text will have a bottom margin.
|
|
28144
|
+
* @default false
|
|
28145
|
+
*/
|
|
28146
|
+
gutterBottom: PropTypes.bool,
|
|
28147
|
+
/**
|
|
28148
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
28149
|
+
*
|
|
28150
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
28151
|
+
* (the element needs to have a width in order to overflow).
|
|
28152
|
+
* @default false
|
|
28153
|
+
*/
|
|
28154
|
+
noWrap: PropTypes.bool,
|
|
28155
|
+
/**
|
|
28156
|
+
* If `true`, the element will be a paragraph element.
|
|
28157
|
+
* @default false
|
|
28158
|
+
* @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.
|
|
28159
|
+
*/
|
|
28160
|
+
paragraph: PropTypes.bool,
|
|
28161
|
+
/**
|
|
28162
|
+
* @ignore
|
|
28163
|
+
*/
|
|
28164
|
+
style: PropTypes.object,
|
|
28165
|
+
/**
|
|
28166
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
28167
|
+
*/
|
|
28168
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
28169
|
+
/**
|
|
28170
|
+
* Applies the theme typography styles.
|
|
28171
|
+
* @default 'body1'
|
|
28172
|
+
*/
|
|
28173
|
+
variant: PropTypes.oneOfType([PropTypes.oneOf(["body1", "body2", "button", "caption", "h1", "h2", "h3", "h4", "h5", "h6", "inherit", "overline", "subtitle1", "subtitle2"]), PropTypes.string]),
|
|
28174
|
+
/**
|
|
28175
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
28176
|
+
* For instance, subtitle1 to `<h6>`.
|
|
28177
|
+
* If you wish to change that mapping, you can provide your own.
|
|
28178
|
+
* Alternatively, you can use the `component` prop.
|
|
28179
|
+
* @default {
|
|
28180
|
+
* h1: 'h1',
|
|
28181
|
+
* h2: 'h2',
|
|
28182
|
+
* h3: 'h3',
|
|
28183
|
+
* h4: 'h4',
|
|
28184
|
+
* h5: 'h5',
|
|
28185
|
+
* h6: 'h6',
|
|
28186
|
+
* subtitle1: 'h6',
|
|
28187
|
+
* subtitle2: 'h6',
|
|
28188
|
+
* body1: 'p',
|
|
28189
|
+
* body2: 'p',
|
|
28190
|
+
* inherit: 'p',
|
|
28191
|
+
* }
|
|
28192
|
+
*/
|
|
28193
|
+
variantMapping: PropTypes.object
|
|
28194
|
+
};
|
|
27870
28195
|
const visuallyHidden = {
|
|
27871
28196
|
border: 0,
|
|
27872
28197
|
clip: "rect(0 0 0 0)",
|
|
@@ -29086,10 +29411,10 @@ const useUtilityClasses$2 = (ownerState) => {
|
|
|
29086
29411
|
track,
|
|
29087
29412
|
classes,
|
|
29088
29413
|
color: color2,
|
|
29089
|
-
size
|
|
29414
|
+
size: size2
|
|
29090
29415
|
} = ownerState;
|
|
29091
29416
|
const slots = {
|
|
29092
|
-
root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`,
|
|
29417
|
+
root: ["root", disabled && "disabled", dragging && "dragging", marked && "marked", orientation === "vertical" && "vertical", track === "inverted" && "trackInverted", track === false && "trackFalse", color2 && `color${capitalize(color2)}`, size2 && `size${capitalize(size2)}`],
|
|
29093
29418
|
rail: ["rail"],
|
|
29094
29419
|
track: ["track"],
|
|
29095
29420
|
mark: ["mark"],
|
|
@@ -29097,7 +29422,7 @@ const useUtilityClasses$2 = (ownerState) => {
|
|
|
29097
29422
|
markLabel: ["markLabel"],
|
|
29098
29423
|
markLabelActive: ["markLabelActive"],
|
|
29099
29424
|
valueLabel: ["valueLabel"],
|
|
29100
|
-
thumb: ["thumb", disabled && "disabled",
|
|
29425
|
+
thumb: ["thumb", disabled && "disabled", size2 && `thumbSize${capitalize(size2)}`, color2 && `thumbColor${capitalize(color2)}`],
|
|
29101
29426
|
active: ["active"],
|
|
29102
29427
|
disabled: ["disabled"],
|
|
29103
29428
|
focusVisible: ["focusVisible"]
|
|
@@ -29136,7 +29461,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
|
|
|
29136
29461
|
onChangeCommitted,
|
|
29137
29462
|
orientation = "horizontal",
|
|
29138
29463
|
shiftStep = 10,
|
|
29139
|
-
size = "medium",
|
|
29464
|
+
size: size2 = "medium",
|
|
29140
29465
|
step = 1,
|
|
29141
29466
|
scale: scale2 = Identity,
|
|
29142
29467
|
slotProps,
|
|
@@ -29159,7 +29484,7 @@ const Slider = /* @__PURE__ */ React.forwardRef(function Slider2(inputProps, ref
|
|
|
29159
29484
|
orientation,
|
|
29160
29485
|
marks: marksProp,
|
|
29161
29486
|
color: color2,
|
|
29162
|
-
size,
|
|
29487
|
+
size: size2,
|
|
29163
29488
|
step,
|
|
29164
29489
|
shiftStep,
|
|
29165
29490
|
scale: scale2,
|
|
@@ -29658,11 +29983,11 @@ const useUtilityClasses$1 = (ownerState) => {
|
|
|
29658
29983
|
variant,
|
|
29659
29984
|
align,
|
|
29660
29985
|
padding: padding2,
|
|
29661
|
-
size,
|
|
29986
|
+
size: size2,
|
|
29662
29987
|
stickyHeader
|
|
29663
29988
|
} = ownerState;
|
|
29664
29989
|
const slots = {
|
|
29665
|
-
root: ["root", variant, stickyHeader && "stickyHeader", align !== "inherit" && `align${capitalize(align)}`, padding2 !== "normal" && `padding${capitalize(padding2)}`, `size${capitalize(
|
|
29990
|
+
root: ["root", variant, stickyHeader && "stickyHeader", align !== "inherit" && `align${capitalize(align)}`, padding2 !== "normal" && `padding${capitalize(padding2)}`, `size${capitalize(size2)}`]
|
|
29666
29991
|
};
|
|
29667
29992
|
return composeClasses(slots, getTableCellUtilityClass, classes);
|
|
29668
29993
|
};
|
|
@@ -30956,13 +31281,13 @@ function toValue(str, measurement, popperOffsets, referenceOffsets) {
|
|
|
30956
31281
|
var rect = getClientRect(element);
|
|
30957
31282
|
return rect[measurement] / 100 * value;
|
|
30958
31283
|
} else if (unit2 === "vh" || unit2 === "vw") {
|
|
30959
|
-
var
|
|
31284
|
+
var size2 = void 0;
|
|
30960
31285
|
if (unit2 === "vh") {
|
|
30961
|
-
|
|
31286
|
+
size2 = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
|
30962
31287
|
} else {
|
|
30963
|
-
|
|
31288
|
+
size2 = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
|
30964
31289
|
}
|
|
30965
|
-
return
|
|
31290
|
+
return size2 / 100 * value;
|
|
30966
31291
|
} else {
|
|
30967
31292
|
return value;
|
|
30968
31293
|
}
|
|
@@ -31736,6 +32061,668 @@ const Popper = React.forwardRef((props, ref) => {
|
|
|
31736
32061
|
...style2
|
|
31737
32062
|
}, children: typeof children2 === "function" ? children2(childProps) : children2 }) });
|
|
31738
32063
|
});
|
|
32064
|
+
var safeIsNaN = Number.isNaN || function ponyfill(value) {
|
|
32065
|
+
return typeof value === "number" && value !== value;
|
|
32066
|
+
};
|
|
32067
|
+
function isEqual$1(first, second) {
|
|
32068
|
+
if (first === second) {
|
|
32069
|
+
return true;
|
|
32070
|
+
}
|
|
32071
|
+
if (safeIsNaN(first) && safeIsNaN(second)) {
|
|
32072
|
+
return true;
|
|
32073
|
+
}
|
|
32074
|
+
return false;
|
|
32075
|
+
}
|
|
32076
|
+
function areInputsEqual(newInputs, lastInputs) {
|
|
32077
|
+
if (newInputs.length !== lastInputs.length) {
|
|
32078
|
+
return false;
|
|
32079
|
+
}
|
|
32080
|
+
for (var i2 = 0; i2 < newInputs.length; i2++) {
|
|
32081
|
+
if (!isEqual$1(newInputs[i2], lastInputs[i2])) {
|
|
32082
|
+
return false;
|
|
32083
|
+
}
|
|
32084
|
+
}
|
|
32085
|
+
return true;
|
|
32086
|
+
}
|
|
32087
|
+
function memoizeOne(resultFn, isEqual2) {
|
|
32088
|
+
if (isEqual2 === void 0) {
|
|
32089
|
+
isEqual2 = areInputsEqual;
|
|
32090
|
+
}
|
|
32091
|
+
var lastThis;
|
|
32092
|
+
var lastArgs = [];
|
|
32093
|
+
var lastResult;
|
|
32094
|
+
var calledOnce = false;
|
|
32095
|
+
function memoized() {
|
|
32096
|
+
var newArgs = [];
|
|
32097
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
32098
|
+
newArgs[_i] = arguments[_i];
|
|
32099
|
+
}
|
|
32100
|
+
if (calledOnce && lastThis === this && isEqual2(newArgs, lastArgs)) {
|
|
32101
|
+
return lastResult;
|
|
32102
|
+
}
|
|
32103
|
+
lastResult = resultFn.apply(this, newArgs);
|
|
32104
|
+
calledOnce = true;
|
|
32105
|
+
lastThis = this;
|
|
32106
|
+
lastArgs = newArgs;
|
|
32107
|
+
return lastResult;
|
|
32108
|
+
}
|
|
32109
|
+
return memoized;
|
|
32110
|
+
}
|
|
32111
|
+
var hasNativePerformanceNow = typeof performance === "object" && typeof performance.now === "function";
|
|
32112
|
+
var now = hasNativePerformanceNow ? function() {
|
|
32113
|
+
return performance.now();
|
|
32114
|
+
} : function() {
|
|
32115
|
+
return Date.now();
|
|
32116
|
+
};
|
|
32117
|
+
function cancelTimeout(timeoutID) {
|
|
32118
|
+
cancelAnimationFrame(timeoutID.id);
|
|
32119
|
+
}
|
|
32120
|
+
function requestTimeout(callback, delay) {
|
|
32121
|
+
var start = now();
|
|
32122
|
+
function tick() {
|
|
32123
|
+
if (now() - start >= delay) {
|
|
32124
|
+
callback.call(null);
|
|
32125
|
+
} else {
|
|
32126
|
+
timeoutID.id = requestAnimationFrame(tick);
|
|
32127
|
+
}
|
|
32128
|
+
}
|
|
32129
|
+
var timeoutID = {
|
|
32130
|
+
id: requestAnimationFrame(tick)
|
|
32131
|
+
};
|
|
32132
|
+
return timeoutID;
|
|
32133
|
+
}
|
|
32134
|
+
var size = -1;
|
|
32135
|
+
function getScrollbarSize(recalculate) {
|
|
32136
|
+
if (recalculate === void 0) {
|
|
32137
|
+
recalculate = false;
|
|
32138
|
+
}
|
|
32139
|
+
if (size === -1 || recalculate) {
|
|
32140
|
+
var div = document.createElement("div");
|
|
32141
|
+
var style2 = div.style;
|
|
32142
|
+
style2.width = "50px";
|
|
32143
|
+
style2.height = "50px";
|
|
32144
|
+
style2.overflow = "scroll";
|
|
32145
|
+
document.body.appendChild(div);
|
|
32146
|
+
size = div.offsetWidth - div.clientWidth;
|
|
32147
|
+
document.body.removeChild(div);
|
|
32148
|
+
}
|
|
32149
|
+
return size;
|
|
32150
|
+
}
|
|
32151
|
+
var cachedRTLResult = null;
|
|
32152
|
+
function getRTLOffsetType(recalculate) {
|
|
32153
|
+
if (recalculate === void 0) {
|
|
32154
|
+
recalculate = false;
|
|
32155
|
+
}
|
|
32156
|
+
if (cachedRTLResult === null || recalculate) {
|
|
32157
|
+
var outerDiv = document.createElement("div");
|
|
32158
|
+
var outerStyle = outerDiv.style;
|
|
32159
|
+
outerStyle.width = "50px";
|
|
32160
|
+
outerStyle.height = "50px";
|
|
32161
|
+
outerStyle.overflow = "scroll";
|
|
32162
|
+
outerStyle.direction = "rtl";
|
|
32163
|
+
var innerDiv = document.createElement("div");
|
|
32164
|
+
var innerStyle = innerDiv.style;
|
|
32165
|
+
innerStyle.width = "100px";
|
|
32166
|
+
innerStyle.height = "100px";
|
|
32167
|
+
outerDiv.appendChild(innerDiv);
|
|
32168
|
+
document.body.appendChild(outerDiv);
|
|
32169
|
+
if (outerDiv.scrollLeft > 0) {
|
|
32170
|
+
cachedRTLResult = "positive-descending";
|
|
32171
|
+
} else {
|
|
32172
|
+
outerDiv.scrollLeft = 1;
|
|
32173
|
+
if (outerDiv.scrollLeft === 0) {
|
|
32174
|
+
cachedRTLResult = "negative";
|
|
32175
|
+
} else {
|
|
32176
|
+
cachedRTLResult = "positive-ascending";
|
|
32177
|
+
}
|
|
32178
|
+
}
|
|
32179
|
+
document.body.removeChild(outerDiv);
|
|
32180
|
+
return cachedRTLResult;
|
|
32181
|
+
}
|
|
32182
|
+
return cachedRTLResult;
|
|
32183
|
+
}
|
|
32184
|
+
var IS_SCROLLING_DEBOUNCE_INTERVAL$1 = 150;
|
|
32185
|
+
var defaultItemKey$1 = function defaultItemKey3(index2, data) {
|
|
32186
|
+
return index2;
|
|
32187
|
+
};
|
|
32188
|
+
var devWarningsDirection = null;
|
|
32189
|
+
var devWarningsTagName$1 = null;
|
|
32190
|
+
{
|
|
32191
|
+
if (typeof window !== "undefined" && typeof window.WeakSet !== "undefined") {
|
|
32192
|
+
devWarningsDirection = /* @__PURE__ */ new WeakSet();
|
|
32193
|
+
devWarningsTagName$1 = /* @__PURE__ */ new WeakSet();
|
|
32194
|
+
}
|
|
32195
|
+
}
|
|
32196
|
+
function createListComponent(_ref) {
|
|
32197
|
+
var _class;
|
|
32198
|
+
var getItemOffset3 = _ref.getItemOffset, getEstimatedTotalSize4 = _ref.getEstimatedTotalSize, getItemSize3 = _ref.getItemSize, getOffsetForIndexAndAlignment5 = _ref.getOffsetForIndexAndAlignment, getStartIndexForOffset3 = _ref.getStartIndexForOffset, getStopIndexForStartIndex3 = _ref.getStopIndexForStartIndex, initInstanceProps5 = _ref.initInstanceProps, shouldResetStyleCacheOnItemSizeChange = _ref.shouldResetStyleCacheOnItemSizeChange, validateProps5 = _ref.validateProps;
|
|
32199
|
+
return _class = /* @__PURE__ */ function(_PureComponent) {
|
|
32200
|
+
_inheritsLoose(List, _PureComponent);
|
|
32201
|
+
function List(props) {
|
|
32202
|
+
var _this;
|
|
32203
|
+
_this = _PureComponent.call(this, props) || this;
|
|
32204
|
+
_this._instanceProps = initInstanceProps5(_this.props, _assertThisInitialized(_this));
|
|
32205
|
+
_this._outerRef = void 0;
|
|
32206
|
+
_this._resetIsScrollingTimeoutId = null;
|
|
32207
|
+
_this.state = {
|
|
32208
|
+
instance: _assertThisInitialized(_this),
|
|
32209
|
+
isScrolling: false,
|
|
32210
|
+
scrollDirection: "forward",
|
|
32211
|
+
scrollOffset: typeof _this.props.initialScrollOffset === "number" ? _this.props.initialScrollOffset : 0,
|
|
32212
|
+
scrollUpdateWasRequested: false
|
|
32213
|
+
};
|
|
32214
|
+
_this._callOnItemsRendered = void 0;
|
|
32215
|
+
_this._callOnItemsRendered = memoizeOne(function(overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
|
|
32216
|
+
return _this.props.onItemsRendered({
|
|
32217
|
+
overscanStartIndex,
|
|
32218
|
+
overscanStopIndex,
|
|
32219
|
+
visibleStartIndex,
|
|
32220
|
+
visibleStopIndex
|
|
32221
|
+
});
|
|
32222
|
+
});
|
|
32223
|
+
_this._callOnScroll = void 0;
|
|
32224
|
+
_this._callOnScroll = memoizeOne(function(scrollDirection, scrollOffset, scrollUpdateWasRequested) {
|
|
32225
|
+
return _this.props.onScroll({
|
|
32226
|
+
scrollDirection,
|
|
32227
|
+
scrollOffset,
|
|
32228
|
+
scrollUpdateWasRequested
|
|
32229
|
+
});
|
|
32230
|
+
});
|
|
32231
|
+
_this._getItemStyle = void 0;
|
|
32232
|
+
_this._getItemStyle = function(index2) {
|
|
32233
|
+
var _this$props = _this.props, direction = _this$props.direction, itemSize = _this$props.itemSize, layout = _this$props.layout;
|
|
32234
|
+
var itemStyleCache = _this._getItemStyleCache(shouldResetStyleCacheOnItemSizeChange && itemSize, shouldResetStyleCacheOnItemSizeChange && layout, shouldResetStyleCacheOnItemSizeChange && direction);
|
|
32235
|
+
var style2;
|
|
32236
|
+
if (itemStyleCache.hasOwnProperty(index2)) {
|
|
32237
|
+
style2 = itemStyleCache[index2];
|
|
32238
|
+
} else {
|
|
32239
|
+
var _offset = getItemOffset3(_this.props, index2, _this._instanceProps);
|
|
32240
|
+
var size2 = getItemSize3(_this.props, index2, _this._instanceProps);
|
|
32241
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32242
|
+
var isRtl = direction === "rtl";
|
|
32243
|
+
var offsetHorizontal = isHorizontal ? _offset : 0;
|
|
32244
|
+
itemStyleCache[index2] = style2 = {
|
|
32245
|
+
position: "absolute",
|
|
32246
|
+
left: isRtl ? void 0 : offsetHorizontal,
|
|
32247
|
+
right: isRtl ? offsetHorizontal : void 0,
|
|
32248
|
+
top: !isHorizontal ? _offset : 0,
|
|
32249
|
+
height: !isHorizontal ? size2 : "100%",
|
|
32250
|
+
width: isHorizontal ? size2 : "100%"
|
|
32251
|
+
};
|
|
32252
|
+
}
|
|
32253
|
+
return style2;
|
|
32254
|
+
};
|
|
32255
|
+
_this._getItemStyleCache = void 0;
|
|
32256
|
+
_this._getItemStyleCache = memoizeOne(function(_, __, ___) {
|
|
32257
|
+
return {};
|
|
32258
|
+
});
|
|
32259
|
+
_this._onScrollHorizontal = function(event) {
|
|
32260
|
+
var _event$currentTarget = event.currentTarget, clientWidth = _event$currentTarget.clientWidth, scrollLeft = _event$currentTarget.scrollLeft, scrollWidth = _event$currentTarget.scrollWidth;
|
|
32261
|
+
_this.setState(function(prevState) {
|
|
32262
|
+
if (prevState.scrollOffset === scrollLeft) {
|
|
32263
|
+
return null;
|
|
32264
|
+
}
|
|
32265
|
+
var direction = _this.props.direction;
|
|
32266
|
+
var scrollOffset = scrollLeft;
|
|
32267
|
+
if (direction === "rtl") {
|
|
32268
|
+
switch (getRTLOffsetType()) {
|
|
32269
|
+
case "negative":
|
|
32270
|
+
scrollOffset = -scrollLeft;
|
|
32271
|
+
break;
|
|
32272
|
+
case "positive-descending":
|
|
32273
|
+
scrollOffset = scrollWidth - clientWidth - scrollLeft;
|
|
32274
|
+
break;
|
|
32275
|
+
}
|
|
32276
|
+
}
|
|
32277
|
+
scrollOffset = Math.max(0, Math.min(scrollOffset, scrollWidth - clientWidth));
|
|
32278
|
+
return {
|
|
32279
|
+
isScrolling: true,
|
|
32280
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
32281
|
+
scrollOffset,
|
|
32282
|
+
scrollUpdateWasRequested: false
|
|
32283
|
+
};
|
|
32284
|
+
}, _this._resetIsScrollingDebounced);
|
|
32285
|
+
};
|
|
32286
|
+
_this._onScrollVertical = function(event) {
|
|
32287
|
+
var _event$currentTarget2 = event.currentTarget, clientHeight = _event$currentTarget2.clientHeight, scrollHeight = _event$currentTarget2.scrollHeight, scrollTop = _event$currentTarget2.scrollTop;
|
|
32288
|
+
_this.setState(function(prevState) {
|
|
32289
|
+
if (prevState.scrollOffset === scrollTop) {
|
|
32290
|
+
return null;
|
|
32291
|
+
}
|
|
32292
|
+
var scrollOffset = Math.max(0, Math.min(scrollTop, scrollHeight - clientHeight));
|
|
32293
|
+
return {
|
|
32294
|
+
isScrolling: true,
|
|
32295
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
32296
|
+
scrollOffset,
|
|
32297
|
+
scrollUpdateWasRequested: false
|
|
32298
|
+
};
|
|
32299
|
+
}, _this._resetIsScrollingDebounced);
|
|
32300
|
+
};
|
|
32301
|
+
_this._outerRefSetter = function(ref) {
|
|
32302
|
+
var outerRef = _this.props.outerRef;
|
|
32303
|
+
_this._outerRef = ref;
|
|
32304
|
+
if (typeof outerRef === "function") {
|
|
32305
|
+
outerRef(ref);
|
|
32306
|
+
} else if (outerRef != null && typeof outerRef === "object" && outerRef.hasOwnProperty("current")) {
|
|
32307
|
+
outerRef.current = ref;
|
|
32308
|
+
}
|
|
32309
|
+
};
|
|
32310
|
+
_this._resetIsScrollingDebounced = function() {
|
|
32311
|
+
if (_this._resetIsScrollingTimeoutId !== null) {
|
|
32312
|
+
cancelTimeout(_this._resetIsScrollingTimeoutId);
|
|
32313
|
+
}
|
|
32314
|
+
_this._resetIsScrollingTimeoutId = requestTimeout(_this._resetIsScrolling, IS_SCROLLING_DEBOUNCE_INTERVAL$1);
|
|
32315
|
+
};
|
|
32316
|
+
_this._resetIsScrolling = function() {
|
|
32317
|
+
_this._resetIsScrollingTimeoutId = null;
|
|
32318
|
+
_this.setState({
|
|
32319
|
+
isScrolling: false
|
|
32320
|
+
}, function() {
|
|
32321
|
+
_this._getItemStyleCache(-1, null);
|
|
32322
|
+
});
|
|
32323
|
+
};
|
|
32324
|
+
return _this;
|
|
32325
|
+
}
|
|
32326
|
+
List.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, prevState) {
|
|
32327
|
+
validateSharedProps$1(nextProps, prevState);
|
|
32328
|
+
validateProps5(nextProps);
|
|
32329
|
+
return null;
|
|
32330
|
+
};
|
|
32331
|
+
var _proto = List.prototype;
|
|
32332
|
+
_proto.scrollTo = function scrollTo(scrollOffset) {
|
|
32333
|
+
scrollOffset = Math.max(0, scrollOffset);
|
|
32334
|
+
this.setState(function(prevState) {
|
|
32335
|
+
if (prevState.scrollOffset === scrollOffset) {
|
|
32336
|
+
return null;
|
|
32337
|
+
}
|
|
32338
|
+
return {
|
|
32339
|
+
scrollDirection: prevState.scrollOffset < scrollOffset ? "forward" : "backward",
|
|
32340
|
+
scrollOffset,
|
|
32341
|
+
scrollUpdateWasRequested: true
|
|
32342
|
+
};
|
|
32343
|
+
}, this._resetIsScrollingDebounced);
|
|
32344
|
+
};
|
|
32345
|
+
_proto.scrollToItem = function scrollToItem(index2, align) {
|
|
32346
|
+
if (align === void 0) {
|
|
32347
|
+
align = "auto";
|
|
32348
|
+
}
|
|
32349
|
+
var _this$props2 = this.props, itemCount = _this$props2.itemCount, layout = _this$props2.layout;
|
|
32350
|
+
var scrollOffset = this.state.scrollOffset;
|
|
32351
|
+
index2 = Math.max(0, Math.min(index2, itemCount - 1));
|
|
32352
|
+
var scrollbarSize = 0;
|
|
32353
|
+
if (this._outerRef) {
|
|
32354
|
+
var outerRef = this._outerRef;
|
|
32355
|
+
if (layout === "vertical") {
|
|
32356
|
+
scrollbarSize = outerRef.scrollWidth > outerRef.clientWidth ? getScrollbarSize() : 0;
|
|
32357
|
+
} else {
|
|
32358
|
+
scrollbarSize = outerRef.scrollHeight > outerRef.clientHeight ? getScrollbarSize() : 0;
|
|
32359
|
+
}
|
|
32360
|
+
}
|
|
32361
|
+
this.scrollTo(getOffsetForIndexAndAlignment5(this.props, index2, align, scrollOffset, this._instanceProps, scrollbarSize));
|
|
32362
|
+
};
|
|
32363
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
32364
|
+
var _this$props3 = this.props, direction = _this$props3.direction, initialScrollOffset = _this$props3.initialScrollOffset, layout = _this$props3.layout;
|
|
32365
|
+
if (typeof initialScrollOffset === "number" && this._outerRef != null) {
|
|
32366
|
+
var outerRef = this._outerRef;
|
|
32367
|
+
if (direction === "horizontal" || layout === "horizontal") {
|
|
32368
|
+
outerRef.scrollLeft = initialScrollOffset;
|
|
32369
|
+
} else {
|
|
32370
|
+
outerRef.scrollTop = initialScrollOffset;
|
|
32371
|
+
}
|
|
32372
|
+
}
|
|
32373
|
+
this._callPropsCallbacks();
|
|
32374
|
+
};
|
|
32375
|
+
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
32376
|
+
var _this$props4 = this.props, direction = _this$props4.direction, layout = _this$props4.layout;
|
|
32377
|
+
var _this$state = this.state, scrollOffset = _this$state.scrollOffset, scrollUpdateWasRequested = _this$state.scrollUpdateWasRequested;
|
|
32378
|
+
if (scrollUpdateWasRequested && this._outerRef != null) {
|
|
32379
|
+
var outerRef = this._outerRef;
|
|
32380
|
+
if (direction === "horizontal" || layout === "horizontal") {
|
|
32381
|
+
if (direction === "rtl") {
|
|
32382
|
+
switch (getRTLOffsetType()) {
|
|
32383
|
+
case "negative":
|
|
32384
|
+
outerRef.scrollLeft = -scrollOffset;
|
|
32385
|
+
break;
|
|
32386
|
+
case "positive-ascending":
|
|
32387
|
+
outerRef.scrollLeft = scrollOffset;
|
|
32388
|
+
break;
|
|
32389
|
+
default:
|
|
32390
|
+
var clientWidth = outerRef.clientWidth, scrollWidth = outerRef.scrollWidth;
|
|
32391
|
+
outerRef.scrollLeft = scrollWidth - clientWidth - scrollOffset;
|
|
32392
|
+
break;
|
|
32393
|
+
}
|
|
32394
|
+
} else {
|
|
32395
|
+
outerRef.scrollLeft = scrollOffset;
|
|
32396
|
+
}
|
|
32397
|
+
} else {
|
|
32398
|
+
outerRef.scrollTop = scrollOffset;
|
|
32399
|
+
}
|
|
32400
|
+
}
|
|
32401
|
+
this._callPropsCallbacks();
|
|
32402
|
+
};
|
|
32403
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
32404
|
+
if (this._resetIsScrollingTimeoutId !== null) {
|
|
32405
|
+
cancelTimeout(this._resetIsScrollingTimeoutId);
|
|
32406
|
+
}
|
|
32407
|
+
};
|
|
32408
|
+
_proto.render = function render() {
|
|
32409
|
+
var _this$props5 = this.props, children2 = _this$props5.children, className = _this$props5.className, direction = _this$props5.direction, height2 = _this$props5.height, innerRef = _this$props5.innerRef, innerElementType = _this$props5.innerElementType, innerTagName = _this$props5.innerTagName, itemCount = _this$props5.itemCount, itemData = _this$props5.itemData, _this$props5$itemKey = _this$props5.itemKey, itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey, layout = _this$props5.layout, outerElementType = _this$props5.outerElementType, outerTagName = _this$props5.outerTagName, style2 = _this$props5.style, useIsScrolling = _this$props5.useIsScrolling, width2 = _this$props5.width;
|
|
32410
|
+
var isScrolling = this.state.isScrolling;
|
|
32411
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32412
|
+
var onScroll = isHorizontal ? this._onScrollHorizontal : this._onScrollVertical;
|
|
32413
|
+
var _this$_getRangeToRend = this._getRangeToRender(), startIndex = _this$_getRangeToRend[0], stopIndex = _this$_getRangeToRend[1];
|
|
32414
|
+
var items = [];
|
|
32415
|
+
if (itemCount > 0) {
|
|
32416
|
+
for (var _index = startIndex; _index <= stopIndex; _index++) {
|
|
32417
|
+
items.push(createElement(children2, {
|
|
32418
|
+
data: itemData,
|
|
32419
|
+
key: itemKey(_index, itemData),
|
|
32420
|
+
index: _index,
|
|
32421
|
+
isScrolling: useIsScrolling ? isScrolling : void 0,
|
|
32422
|
+
style: this._getItemStyle(_index)
|
|
32423
|
+
}));
|
|
32424
|
+
}
|
|
32425
|
+
}
|
|
32426
|
+
var estimatedTotalSize = getEstimatedTotalSize4(this.props, this._instanceProps);
|
|
32427
|
+
return createElement(outerElementType || outerTagName || "div", {
|
|
32428
|
+
className,
|
|
32429
|
+
onScroll,
|
|
32430
|
+
ref: this._outerRefSetter,
|
|
32431
|
+
style: _extends$1({
|
|
32432
|
+
position: "relative",
|
|
32433
|
+
height: height2,
|
|
32434
|
+
width: width2,
|
|
32435
|
+
overflow: "auto",
|
|
32436
|
+
WebkitOverflowScrolling: "touch",
|
|
32437
|
+
willChange: "transform",
|
|
32438
|
+
direction
|
|
32439
|
+
}, style2)
|
|
32440
|
+
}, createElement(innerElementType || innerTagName || "div", {
|
|
32441
|
+
children: items,
|
|
32442
|
+
ref: innerRef,
|
|
32443
|
+
style: {
|
|
32444
|
+
height: isHorizontal ? "100%" : estimatedTotalSize,
|
|
32445
|
+
pointerEvents: isScrolling ? "none" : void 0,
|
|
32446
|
+
width: isHorizontal ? estimatedTotalSize : "100%"
|
|
32447
|
+
}
|
|
32448
|
+
}));
|
|
32449
|
+
};
|
|
32450
|
+
_proto._callPropsCallbacks = function _callPropsCallbacks() {
|
|
32451
|
+
if (typeof this.props.onItemsRendered === "function") {
|
|
32452
|
+
var itemCount = this.props.itemCount;
|
|
32453
|
+
if (itemCount > 0) {
|
|
32454
|
+
var _this$_getRangeToRend2 = this._getRangeToRender(), _overscanStartIndex = _this$_getRangeToRend2[0], _overscanStopIndex = _this$_getRangeToRend2[1], _visibleStartIndex = _this$_getRangeToRend2[2], _visibleStopIndex = _this$_getRangeToRend2[3];
|
|
32455
|
+
this._callOnItemsRendered(_overscanStartIndex, _overscanStopIndex, _visibleStartIndex, _visibleStopIndex);
|
|
32456
|
+
}
|
|
32457
|
+
}
|
|
32458
|
+
if (typeof this.props.onScroll === "function") {
|
|
32459
|
+
var _this$state2 = this.state, _scrollDirection = _this$state2.scrollDirection, _scrollOffset = _this$state2.scrollOffset, _scrollUpdateWasRequested = _this$state2.scrollUpdateWasRequested;
|
|
32460
|
+
this._callOnScroll(_scrollDirection, _scrollOffset, _scrollUpdateWasRequested);
|
|
32461
|
+
}
|
|
32462
|
+
};
|
|
32463
|
+
_proto._getRangeToRender = function _getRangeToRender() {
|
|
32464
|
+
var _this$props6 = this.props, itemCount = _this$props6.itemCount, overscanCount = _this$props6.overscanCount;
|
|
32465
|
+
var _this$state3 = this.state, isScrolling = _this$state3.isScrolling, scrollDirection = _this$state3.scrollDirection, scrollOffset = _this$state3.scrollOffset;
|
|
32466
|
+
if (itemCount === 0) {
|
|
32467
|
+
return [0, 0, 0, 0];
|
|
32468
|
+
}
|
|
32469
|
+
var startIndex = getStartIndexForOffset3(this.props, scrollOffset, this._instanceProps);
|
|
32470
|
+
var stopIndex = getStopIndexForStartIndex3(this.props, startIndex, scrollOffset, this._instanceProps);
|
|
32471
|
+
var overscanBackward = !isScrolling || scrollDirection === "backward" ? Math.max(1, overscanCount) : 1;
|
|
32472
|
+
var overscanForward = !isScrolling || scrollDirection === "forward" ? Math.max(1, overscanCount) : 1;
|
|
32473
|
+
return [Math.max(0, startIndex - overscanBackward), Math.max(0, Math.min(itemCount - 1, stopIndex + overscanForward)), startIndex, stopIndex];
|
|
32474
|
+
};
|
|
32475
|
+
return List;
|
|
32476
|
+
}(PureComponent), _class.defaultProps = {
|
|
32477
|
+
direction: "ltr",
|
|
32478
|
+
itemData: void 0,
|
|
32479
|
+
layout: "vertical",
|
|
32480
|
+
overscanCount: 2,
|
|
32481
|
+
useIsScrolling: false
|
|
32482
|
+
}, _class;
|
|
32483
|
+
}
|
|
32484
|
+
var validateSharedProps$1 = function validateSharedProps3(_ref2, _ref3) {
|
|
32485
|
+
var children2 = _ref2.children, direction = _ref2.direction, height2 = _ref2.height, layout = _ref2.layout, innerTagName = _ref2.innerTagName, outerTagName = _ref2.outerTagName, width2 = _ref2.width;
|
|
32486
|
+
var instance = _ref3.instance;
|
|
32487
|
+
{
|
|
32488
|
+
if (innerTagName != null || outerTagName != null) {
|
|
32489
|
+
if (devWarningsTagName$1 && !devWarningsTagName$1.has(instance)) {
|
|
32490
|
+
devWarningsTagName$1.add(instance);
|
|
32491
|
+
console.warn("The innerTagName and outerTagName props have been deprecated. Please use the innerElementType and outerElementType props instead.");
|
|
32492
|
+
}
|
|
32493
|
+
}
|
|
32494
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32495
|
+
switch (direction) {
|
|
32496
|
+
case "horizontal":
|
|
32497
|
+
case "vertical":
|
|
32498
|
+
if (devWarningsDirection && !devWarningsDirection.has(instance)) {
|
|
32499
|
+
devWarningsDirection.add(instance);
|
|
32500
|
+
console.warn('The direction prop should be either "ltr" (default) or "rtl". Please use the layout prop to specify "vertical" (default) or "horizontal" orientation.');
|
|
32501
|
+
}
|
|
32502
|
+
break;
|
|
32503
|
+
case "ltr":
|
|
32504
|
+
case "rtl":
|
|
32505
|
+
break;
|
|
32506
|
+
default:
|
|
32507
|
+
throw Error('An invalid "direction" prop has been specified. Value should be either "ltr" or "rtl". ' + ('"' + direction + '" was specified.'));
|
|
32508
|
+
}
|
|
32509
|
+
switch (layout) {
|
|
32510
|
+
case "horizontal":
|
|
32511
|
+
case "vertical":
|
|
32512
|
+
break;
|
|
32513
|
+
default:
|
|
32514
|
+
throw Error('An invalid "layout" prop has been specified. Value should be either "horizontal" or "vertical". ' + ('"' + layout + '" was specified.'));
|
|
32515
|
+
}
|
|
32516
|
+
if (children2 == null) {
|
|
32517
|
+
throw Error('An invalid "children" prop has been specified. Value should be a React component. ' + ('"' + (children2 === null ? "null" : typeof children2) + '" was specified.'));
|
|
32518
|
+
}
|
|
32519
|
+
if (isHorizontal && typeof width2 !== "number") {
|
|
32520
|
+
throw Error('An invalid "width" prop has been specified. Horizontal lists must specify a number for width. ' + ('"' + (width2 === null ? "null" : typeof width2) + '" was specified.'));
|
|
32521
|
+
} else if (!isHorizontal && typeof height2 !== "number") {
|
|
32522
|
+
throw Error('An invalid "height" prop has been specified. Vertical lists must specify a number for height. ' + ('"' + (height2 === null ? "null" : typeof height2) + '" was specified.'));
|
|
32523
|
+
}
|
|
32524
|
+
}
|
|
32525
|
+
};
|
|
32526
|
+
var DEFAULT_ESTIMATED_ITEM_SIZE$1 = 50;
|
|
32527
|
+
var getItemMetadata$1 = function getItemMetadata3(props, index2, instanceProps) {
|
|
32528
|
+
var _ref = props, itemSize = _ref.itemSize;
|
|
32529
|
+
var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
|
|
32530
|
+
if (index2 > lastMeasuredIndex) {
|
|
32531
|
+
var offset2 = 0;
|
|
32532
|
+
if (lastMeasuredIndex >= 0) {
|
|
32533
|
+
var itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
32534
|
+
offset2 = itemMetadata.offset + itemMetadata.size;
|
|
32535
|
+
}
|
|
32536
|
+
for (var i2 = lastMeasuredIndex + 1; i2 <= index2; i2++) {
|
|
32537
|
+
var size2 = itemSize(i2);
|
|
32538
|
+
itemMetadataMap[i2] = {
|
|
32539
|
+
offset: offset2,
|
|
32540
|
+
size: size2
|
|
32541
|
+
};
|
|
32542
|
+
offset2 += size2;
|
|
32543
|
+
}
|
|
32544
|
+
instanceProps.lastMeasuredIndex = index2;
|
|
32545
|
+
}
|
|
32546
|
+
return itemMetadataMap[index2];
|
|
32547
|
+
};
|
|
32548
|
+
var findNearestItem$1 = function findNearestItem3(props, instanceProps, offset2) {
|
|
32549
|
+
var itemMetadataMap = instanceProps.itemMetadataMap, lastMeasuredIndex = instanceProps.lastMeasuredIndex;
|
|
32550
|
+
var lastMeasuredItemOffset = lastMeasuredIndex > 0 ? itemMetadataMap[lastMeasuredIndex].offset : 0;
|
|
32551
|
+
if (lastMeasuredItemOffset >= offset2) {
|
|
32552
|
+
return findNearestItemBinarySearch$1(props, instanceProps, lastMeasuredIndex, 0, offset2);
|
|
32553
|
+
} else {
|
|
32554
|
+
return findNearestItemExponentialSearch$1(props, instanceProps, Math.max(0, lastMeasuredIndex), offset2);
|
|
32555
|
+
}
|
|
32556
|
+
};
|
|
32557
|
+
var findNearestItemBinarySearch$1 = function findNearestItemBinarySearch3(props, instanceProps, high, low, offset2) {
|
|
32558
|
+
while (low <= high) {
|
|
32559
|
+
var middle = low + Math.floor((high - low) / 2);
|
|
32560
|
+
var currentOffset = getItemMetadata$1(props, middle, instanceProps).offset;
|
|
32561
|
+
if (currentOffset === offset2) {
|
|
32562
|
+
return middle;
|
|
32563
|
+
} else if (currentOffset < offset2) {
|
|
32564
|
+
low = middle + 1;
|
|
32565
|
+
} else if (currentOffset > offset2) {
|
|
32566
|
+
high = middle - 1;
|
|
32567
|
+
}
|
|
32568
|
+
}
|
|
32569
|
+
if (low > 0) {
|
|
32570
|
+
return low - 1;
|
|
32571
|
+
} else {
|
|
32572
|
+
return 0;
|
|
32573
|
+
}
|
|
32574
|
+
};
|
|
32575
|
+
var findNearestItemExponentialSearch$1 = function findNearestItemExponentialSearch3(props, instanceProps, index2, offset2) {
|
|
32576
|
+
var itemCount = props.itemCount;
|
|
32577
|
+
var interval = 1;
|
|
32578
|
+
while (index2 < itemCount && getItemMetadata$1(props, index2, instanceProps).offset < offset2) {
|
|
32579
|
+
index2 += interval;
|
|
32580
|
+
interval *= 2;
|
|
32581
|
+
}
|
|
32582
|
+
return findNearestItemBinarySearch$1(props, instanceProps, Math.min(index2, itemCount - 1), Math.floor(index2 / 2), offset2);
|
|
32583
|
+
};
|
|
32584
|
+
var getEstimatedTotalSize = function getEstimatedTotalSize2(_ref2, _ref3) {
|
|
32585
|
+
var itemCount = _ref2.itemCount;
|
|
32586
|
+
var itemMetadataMap = _ref3.itemMetadataMap, estimatedItemSize = _ref3.estimatedItemSize, lastMeasuredIndex = _ref3.lastMeasuredIndex;
|
|
32587
|
+
var totalSizeOfMeasuredItems = 0;
|
|
32588
|
+
if (lastMeasuredIndex >= itemCount) {
|
|
32589
|
+
lastMeasuredIndex = itemCount - 1;
|
|
32590
|
+
}
|
|
32591
|
+
if (lastMeasuredIndex >= 0) {
|
|
32592
|
+
var itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
32593
|
+
totalSizeOfMeasuredItems = itemMetadata.offset + itemMetadata.size;
|
|
32594
|
+
}
|
|
32595
|
+
var numUnmeasuredItems = itemCount - lastMeasuredIndex - 1;
|
|
32596
|
+
var totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedItemSize;
|
|
32597
|
+
return totalSizeOfMeasuredItems + totalSizeOfUnmeasuredItems;
|
|
32598
|
+
};
|
|
32599
|
+
var VariableSizeList$1 = /* @__PURE__ */ createListComponent({
|
|
32600
|
+
getItemOffset: function getItemOffset(props, index2, instanceProps) {
|
|
32601
|
+
return getItemMetadata$1(props, index2, instanceProps).offset;
|
|
32602
|
+
},
|
|
32603
|
+
getItemSize: function getItemSize(props, index2, instanceProps) {
|
|
32604
|
+
return instanceProps.itemMetadataMap[index2].size;
|
|
32605
|
+
},
|
|
32606
|
+
getEstimatedTotalSize,
|
|
32607
|
+
getOffsetForIndexAndAlignment: function getOffsetForIndexAndAlignment3(props, index2, align, scrollOffset, instanceProps, scrollbarSize) {
|
|
32608
|
+
var direction = props.direction, height2 = props.height, layout = props.layout, width2 = props.width;
|
|
32609
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32610
|
+
var size2 = isHorizontal ? width2 : height2;
|
|
32611
|
+
var itemMetadata = getItemMetadata$1(props, index2, instanceProps);
|
|
32612
|
+
var estimatedTotalSize = getEstimatedTotalSize(props, instanceProps);
|
|
32613
|
+
var maxOffset = Math.max(0, Math.min(estimatedTotalSize - size2, itemMetadata.offset));
|
|
32614
|
+
var minOffset = Math.max(0, itemMetadata.offset - size2 + itemMetadata.size + scrollbarSize);
|
|
32615
|
+
if (align === "smart") {
|
|
32616
|
+
if (scrollOffset >= minOffset - size2 && scrollOffset <= maxOffset + size2) {
|
|
32617
|
+
align = "auto";
|
|
32618
|
+
} else {
|
|
32619
|
+
align = "center";
|
|
32620
|
+
}
|
|
32621
|
+
}
|
|
32622
|
+
switch (align) {
|
|
32623
|
+
case "start":
|
|
32624
|
+
return maxOffset;
|
|
32625
|
+
case "end":
|
|
32626
|
+
return minOffset;
|
|
32627
|
+
case "center":
|
|
32628
|
+
return Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
32629
|
+
case "auto":
|
|
32630
|
+
default:
|
|
32631
|
+
if (scrollOffset >= minOffset && scrollOffset <= maxOffset) {
|
|
32632
|
+
return scrollOffset;
|
|
32633
|
+
} else if (scrollOffset < minOffset) {
|
|
32634
|
+
return minOffset;
|
|
32635
|
+
} else {
|
|
32636
|
+
return maxOffset;
|
|
32637
|
+
}
|
|
32638
|
+
}
|
|
32639
|
+
},
|
|
32640
|
+
getStartIndexForOffset: function getStartIndexForOffset(props, offset2, instanceProps) {
|
|
32641
|
+
return findNearestItem$1(props, instanceProps, offset2);
|
|
32642
|
+
},
|
|
32643
|
+
getStopIndexForStartIndex: function getStopIndexForStartIndex(props, startIndex, scrollOffset, instanceProps) {
|
|
32644
|
+
var direction = props.direction, height2 = props.height, itemCount = props.itemCount, layout = props.layout, width2 = props.width;
|
|
32645
|
+
var isHorizontal = direction === "horizontal" || layout === "horizontal";
|
|
32646
|
+
var size2 = isHorizontal ? width2 : height2;
|
|
32647
|
+
var itemMetadata = getItemMetadata$1(props, startIndex, instanceProps);
|
|
32648
|
+
var maxOffset = scrollOffset + size2;
|
|
32649
|
+
var offset2 = itemMetadata.offset + itemMetadata.size;
|
|
32650
|
+
var stopIndex = startIndex;
|
|
32651
|
+
while (stopIndex < itemCount - 1 && offset2 < maxOffset) {
|
|
32652
|
+
stopIndex++;
|
|
32653
|
+
offset2 += getItemMetadata$1(props, stopIndex, instanceProps).size;
|
|
32654
|
+
}
|
|
32655
|
+
return stopIndex;
|
|
32656
|
+
},
|
|
32657
|
+
initInstanceProps: function initInstanceProps2(props, instance) {
|
|
32658
|
+
var _ref4 = props, estimatedItemSize = _ref4.estimatedItemSize;
|
|
32659
|
+
var instanceProps = {
|
|
32660
|
+
itemMetadataMap: {},
|
|
32661
|
+
estimatedItemSize: estimatedItemSize || DEFAULT_ESTIMATED_ITEM_SIZE$1,
|
|
32662
|
+
lastMeasuredIndex: -1
|
|
32663
|
+
};
|
|
32664
|
+
instance.resetAfterIndex = function(index2, shouldForceUpdate) {
|
|
32665
|
+
if (shouldForceUpdate === void 0) {
|
|
32666
|
+
shouldForceUpdate = true;
|
|
32667
|
+
}
|
|
32668
|
+
instanceProps.lastMeasuredIndex = Math.min(instanceProps.lastMeasuredIndex, index2 - 1);
|
|
32669
|
+
instance._getItemStyleCache(-1);
|
|
32670
|
+
if (shouldForceUpdate) {
|
|
32671
|
+
instance.forceUpdate();
|
|
32672
|
+
}
|
|
32673
|
+
};
|
|
32674
|
+
return instanceProps;
|
|
32675
|
+
},
|
|
32676
|
+
shouldResetStyleCacheOnItemSizeChange: false,
|
|
32677
|
+
validateProps: function validateProps2(_ref5) {
|
|
32678
|
+
var itemSize = _ref5.itemSize;
|
|
32679
|
+
{
|
|
32680
|
+
if (typeof itemSize !== "function") {
|
|
32681
|
+
throw Error('An invalid "itemSize" prop has been specified. Value should be a function. ' + ('"' + (itemSize === null ? "null" : typeof itemSize) + '" was specified.'));
|
|
32682
|
+
}
|
|
32683
|
+
}
|
|
32684
|
+
}
|
|
32685
|
+
});
|
|
32686
|
+
const VariableSizeList = VariableSizeList$1;
|
|
32687
|
+
const LIST_ROW_HEIGHT = 48;
|
|
32688
|
+
makeStyles()(() => ({
|
|
32689
|
+
searchInput: {
|
|
32690
|
+
lineHeight: "initial",
|
|
32691
|
+
height: "auto !important"
|
|
32692
|
+
}
|
|
32693
|
+
}));
|
|
32694
|
+
const OuterElementContext = React__default.createContext({});
|
|
32695
|
+
const OuterElementType = React__default.forwardRef((props, ref) => {
|
|
32696
|
+
const outerProps = React__default.useContext(OuterElementContext);
|
|
32697
|
+
return jsxRuntimeExports.jsx("div", { ref, ...props, ...outerProps });
|
|
32698
|
+
});
|
|
32699
|
+
function ListRow(props) {
|
|
32700
|
+
const { data, index: index2, style: style2 } = props;
|
|
32701
|
+
const dataSet = data[index2];
|
|
32702
|
+
const inlineStyle = {
|
|
32703
|
+
...style2,
|
|
32704
|
+
top: style2.top + 8
|
|
32705
|
+
};
|
|
32706
|
+
const [props0, option, getItemLabel] = dataSet;
|
|
32707
|
+
const { key, ...optionProps } = props0;
|
|
32708
|
+
return jsxRuntimeExports.jsx(Typography, { component: "li", ...optionProps, noWrap: true, style: inlineStyle, children: getItemLabel(option) }, key);
|
|
32709
|
+
}
|
|
32710
|
+
function useResetCache(itemCount) {
|
|
32711
|
+
const ref = useRef(null);
|
|
32712
|
+
useEffect(() => {
|
|
32713
|
+
if (ref.current != null) {
|
|
32714
|
+
ref.current.resetAfterIndex(0, true);
|
|
32715
|
+
}
|
|
32716
|
+
}, [itemCount]);
|
|
32717
|
+
return ref;
|
|
32718
|
+
}
|
|
32719
|
+
React__default.forwardRef((props, ref) => {
|
|
32720
|
+
const { children: children2, ...other } = props;
|
|
32721
|
+
const items = children2;
|
|
32722
|
+
const itemCount = items.length;
|
|
32723
|
+
const gridRef = useResetCache(itemCount);
|
|
32724
|
+
return jsxRuntimeExports.jsx("div", { ref, children: jsxRuntimeExports.jsx(OuterElementContext.Provider, { value: other, children: jsxRuntimeExports.jsx(VariableSizeList, { height: Math.min(8, itemCount) * LIST_ROW_HEIGHT, itemSize: () => LIST_ROW_HEIGHT, width: "100%", innerElementType: "ul", outerElementType: OuterElementType, overscanCount: 5, ref: gridRef, itemCount, itemData: items, children: ListRow }) }) });
|
|
32725
|
+
});
|
|
31739
32726
|
var xhtml = "http://www.w3.org/1999/xhtml";
|
|
31740
32727
|
const namespaces = {
|
|
31741
32728
|
svg: "http://www.w3.org/2000/svg",
|
|
@@ -32041,9 +33028,9 @@ function selection_node() {
|
|
|
32041
33028
|
return null;
|
|
32042
33029
|
}
|
|
32043
33030
|
function selection_size() {
|
|
32044
|
-
let
|
|
32045
|
-
for (const node2 of this) ++
|
|
32046
|
-
return
|
|
33031
|
+
let size2 = 0;
|
|
33032
|
+
for (const node2 of this) ++size2;
|
|
33033
|
+
return size2;
|
|
32047
33034
|
}
|
|
32048
33035
|
function selection_empty() {
|
|
32049
33036
|
return !this.node();
|
|
@@ -34023,7 +35010,7 @@ function Legend(props) {
|
|
|
34023
35010
|
y += titleHeight;
|
|
34024
35011
|
setPaths.forEach((setPath) => {
|
|
34025
35012
|
var _a3;
|
|
34026
|
-
const setColor2 = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$
|
|
35013
|
+
const setColor2 = ((_a3 = obsSetColor == null ? void 0 : obsSetColor.find((d) => isEqual$2(d.path, setPath))) == null ? void 0 : _a3.color) || getDefaultColor(theme ?? "light");
|
|
34027
35014
|
g2.append("rect").attr("x", 0).attr("y", y).attr("width", rectHeight).attr("height", rectHeight).attr("fill", `rgb(${setColor2[0]},${setColor2[1]},${setColor2[2]})`);
|
|
34028
35015
|
g2.append("text").attr("text-anchor", "start").attr("dominant-baseline", "hanging").attr("x", rectHeight + rectMarginX).attr("y", y).text(setPath.at(-1) ?? "").style("font-size", "9px").style("fill", foregroundColor);
|
|
34029
35016
|
y += rectHeight + rectMarginY;
|
|
@@ -37261,12 +38248,12 @@ const OESVertexArrayObject = function OESVertexArrayObject2(gl) {
|
|
|
37261
38248
|
return original.getVertexAttrib.apply(this, arguments);
|
|
37262
38249
|
}
|
|
37263
38250
|
};
|
|
37264
|
-
gl.vertexAttribPointer = function vertexAttribPointer(indx,
|
|
38251
|
+
gl.vertexAttribPointer = function vertexAttribPointer(indx, size2, type, normalized, stride, offset2) {
|
|
37265
38252
|
const vao = self2.currentVertexArrayObject;
|
|
37266
38253
|
vao.maxAttrib = Math.max(vao.maxAttrib, indx);
|
|
37267
38254
|
const attrib = vao.attribs[indx];
|
|
37268
38255
|
attrib.buffer = self2.currentArrayBuffer;
|
|
37269
|
-
attrib.size =
|
|
38256
|
+
attrib.size = size2;
|
|
37270
38257
|
attrib.type = type;
|
|
37271
38258
|
attrib.normalized = normalized;
|
|
37272
38259
|
attrib.stride = stride;
|
|
@@ -39158,7 +40145,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39158
40145
|
sourceBuffer,
|
|
39159
40146
|
readOffset = 0,
|
|
39160
40147
|
writeOffset = 0,
|
|
39161
|
-
size
|
|
40148
|
+
size: size2
|
|
39162
40149
|
} = _ref;
|
|
39163
40150
|
const {
|
|
39164
40151
|
gl
|
|
@@ -39166,7 +40153,7 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39166
40153
|
assertWebGL2Context(gl);
|
|
39167
40154
|
gl.bindBuffer(36662, sourceBuffer.handle);
|
|
39168
40155
|
gl.bindBuffer(36663, this.handle);
|
|
39169
|
-
gl.copyBufferSubData(36662, 36663, readOffset, writeOffset,
|
|
40156
|
+
gl.copyBufferSubData(36662, 36663, readOffset, writeOffset, size2);
|
|
39170
40157
|
gl.bindBuffer(36662, null);
|
|
39171
40158
|
gl.bindBuffer(36663, null);
|
|
39172
40159
|
this.debugData = null;
|
|
@@ -39208,11 +40195,11 @@ let Buffer$1 = class Buffer2 extends Resource$1 {
|
|
|
39208
40195
|
target = this.target,
|
|
39209
40196
|
index: index2 = this.accessor && this.accessor.index,
|
|
39210
40197
|
offset: offset2 = 0,
|
|
39211
|
-
size
|
|
40198
|
+
size: size2
|
|
39212
40199
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
39213
40200
|
if (target === 35345 || target === 35982) {
|
|
39214
|
-
if (
|
|
39215
|
-
this.gl.bindBufferRange(target, index2, this.handle, offset2,
|
|
40201
|
+
if (size2 !== void 0) {
|
|
40202
|
+
this.gl.bindBufferRange(target, index2, this.handle, offset2, size2);
|
|
39216
40203
|
} else {
|
|
39217
40204
|
assert$8(offset2 === 0);
|
|
39218
40205
|
this.gl.bindBufferBase(target, index2, this.handle);
|
|
@@ -39892,47 +40879,47 @@ class Texture extends Resource$1 {
|
|
|
39892
40879
|
};
|
|
39893
40880
|
}
|
|
39894
40881
|
_deduceImageSize(data, width2, height2) {
|
|
39895
|
-
let
|
|
40882
|
+
let size2;
|
|
39896
40883
|
if (typeof ImageData !== "undefined" && data instanceof ImageData) {
|
|
39897
|
-
|
|
40884
|
+
size2 = {
|
|
39898
40885
|
width: data.width,
|
|
39899
40886
|
height: data.height
|
|
39900
40887
|
};
|
|
39901
40888
|
} else if (typeof HTMLImageElement !== "undefined" && data instanceof HTMLImageElement) {
|
|
39902
|
-
|
|
40889
|
+
size2 = {
|
|
39903
40890
|
width: data.naturalWidth,
|
|
39904
40891
|
height: data.naturalHeight
|
|
39905
40892
|
};
|
|
39906
40893
|
} else if (typeof HTMLCanvasElement !== "undefined" && data instanceof HTMLCanvasElement) {
|
|
39907
|
-
|
|
40894
|
+
size2 = {
|
|
39908
40895
|
width: data.width,
|
|
39909
40896
|
height: data.height
|
|
39910
40897
|
};
|
|
39911
40898
|
} else if (typeof ImageBitmap !== "undefined" && data instanceof ImageBitmap) {
|
|
39912
|
-
|
|
40899
|
+
size2 = {
|
|
39913
40900
|
width: data.width,
|
|
39914
40901
|
height: data.height
|
|
39915
40902
|
};
|
|
39916
40903
|
} else if (typeof HTMLVideoElement !== "undefined" && data instanceof HTMLVideoElement) {
|
|
39917
|
-
|
|
40904
|
+
size2 = {
|
|
39918
40905
|
width: data.videoWidth,
|
|
39919
40906
|
height: data.videoHeight
|
|
39920
40907
|
};
|
|
39921
40908
|
} else if (!data) {
|
|
39922
|
-
|
|
40909
|
+
size2 = {
|
|
39923
40910
|
width: width2 >= 0 ? width2 : 1,
|
|
39924
40911
|
height: height2 >= 0 ? height2 : 1
|
|
39925
40912
|
};
|
|
39926
40913
|
} else {
|
|
39927
|
-
|
|
40914
|
+
size2 = {
|
|
39928
40915
|
width: width2,
|
|
39929
40916
|
height: height2
|
|
39930
40917
|
};
|
|
39931
40918
|
}
|
|
39932
|
-
assert$8(
|
|
39933
|
-
assert$8(width2 === void 0 ||
|
|
39934
|
-
assert$8(height2 === void 0 ||
|
|
39935
|
-
return
|
|
40919
|
+
assert$8(size2, "Could not deduced texture size");
|
|
40920
|
+
assert$8(width2 === void 0 || size2.width === width2, "Deduced texture width does not match supplied width");
|
|
40921
|
+
assert$8(height2 === void 0 || size2.height === height2, "Deduced texture height does not match supplied height");
|
|
40922
|
+
return size2;
|
|
39936
40923
|
}
|
|
39937
40924
|
_createHandle() {
|
|
39938
40925
|
return this.gl.createTexture();
|
|
@@ -41891,11 +42878,11 @@ function getSamplerSetter() {
|
|
|
41891
42878
|
return update2;
|
|
41892
42879
|
};
|
|
41893
42880
|
}
|
|
41894
|
-
function getArraySetter(functionName, toArray,
|
|
42881
|
+
function getArraySetter(functionName, toArray, size2, uniformSetter) {
|
|
41895
42882
|
let cache2 = null;
|
|
41896
42883
|
let cacheLength = null;
|
|
41897
42884
|
return (gl, location, value) => {
|
|
41898
|
-
const arrayValue = toArray(value,
|
|
42885
|
+
const arrayValue = toArray(value, size2);
|
|
41899
42886
|
const length2 = arrayValue.length;
|
|
41900
42887
|
let update2 = false;
|
|
41901
42888
|
if (cache2 === null) {
|
|
@@ -42090,11 +43077,11 @@ class ProgramConfiguration {
|
|
|
42090
43077
|
const {
|
|
42091
43078
|
name: name2,
|
|
42092
43079
|
type,
|
|
42093
|
-
size
|
|
43080
|
+
size: size2
|
|
42094
43081
|
} = gl.getActiveAttrib(program.handle, index2);
|
|
42095
43082
|
const location = gl.getAttribLocation(program.handle, name2);
|
|
42096
43083
|
if (location >= 0) {
|
|
42097
|
-
this._addAttribute(location, name2, type,
|
|
43084
|
+
this._addAttribute(location, name2, type, size2);
|
|
42098
43085
|
}
|
|
42099
43086
|
}
|
|
42100
43087
|
this.attributeInfos.sort((a2, b) => a2.location - b.location);
|
|
@@ -42111,20 +43098,20 @@ class ProgramConfiguration {
|
|
|
42111
43098
|
const {
|
|
42112
43099
|
name: name2,
|
|
42113
43100
|
type,
|
|
42114
|
-
size
|
|
43101
|
+
size: size2
|
|
42115
43102
|
} = gl.getTransformFeedbackVarying(program.handle, location);
|
|
42116
|
-
this._addVarying(location, name2, type,
|
|
43103
|
+
this._addVarying(location, name2, type, size2);
|
|
42117
43104
|
}
|
|
42118
43105
|
this.varyingInfos.sort((a2, b) => a2.location - b.location);
|
|
42119
43106
|
}
|
|
42120
|
-
_addAttribute(location, name2, compositeType,
|
|
43107
|
+
_addAttribute(location, name2, compositeType, size2) {
|
|
42121
43108
|
const {
|
|
42122
43109
|
type,
|
|
42123
43110
|
components
|
|
42124
43111
|
} = decomposeCompositeGLType(compositeType);
|
|
42125
43112
|
const accessor = {
|
|
42126
43113
|
type,
|
|
42127
|
-
size:
|
|
43114
|
+
size: size2 * components
|
|
42128
43115
|
};
|
|
42129
43116
|
this._inferProperties(location, name2, accessor);
|
|
42130
43117
|
const attributeInfo = {
|
|
@@ -42141,14 +43128,14 @@ class ProgramConfiguration {
|
|
|
42141
43128
|
accessor.divisor = 1;
|
|
42142
43129
|
}
|
|
42143
43130
|
}
|
|
42144
|
-
_addVarying(location, name2, compositeType,
|
|
43131
|
+
_addVarying(location, name2, compositeType, size2) {
|
|
42145
43132
|
const {
|
|
42146
43133
|
type,
|
|
42147
43134
|
components
|
|
42148
43135
|
} = decomposeCompositeGLType(compositeType);
|
|
42149
43136
|
const accessor = new Accessor({
|
|
42150
43137
|
type,
|
|
42151
|
-
size:
|
|
43138
|
+
size: size2 * components
|
|
42152
43139
|
});
|
|
42153
43140
|
const varying = {
|
|
42154
43141
|
location,
|
|
@@ -42824,7 +43811,7 @@ class VertexArrayObject extends Resource$1 {
|
|
|
42824
43811
|
return this.setElementBuffer(buffer, accessor);
|
|
42825
43812
|
}
|
|
42826
43813
|
const {
|
|
42827
|
-
size,
|
|
43814
|
+
size: size2,
|
|
42828
43815
|
type,
|
|
42829
43816
|
stride,
|
|
42830
43817
|
offset: offset2,
|
|
@@ -42841,9 +43828,9 @@ class VertexArrayObject extends Resource$1 {
|
|
|
42841
43828
|
gl.bindBuffer(34962, buffer.handle);
|
|
42842
43829
|
if (integer) {
|
|
42843
43830
|
assert$8(isWebGL2$1(gl));
|
|
42844
|
-
gl2.vertexAttribIPointer(location,
|
|
43831
|
+
gl2.vertexAttribIPointer(location, size2, type, stride, offset2);
|
|
42845
43832
|
} else {
|
|
42846
|
-
gl.vertexAttribPointer(location,
|
|
43833
|
+
gl.vertexAttribPointer(location, size2, type, normalized, stride, offset2);
|
|
42847
43834
|
}
|
|
42848
43835
|
gl.enableVertexAttribArray(location);
|
|
42849
43836
|
gl2.vertexAttribDivisor(location, divisor || 0);
|
|
@@ -43171,10 +44158,10 @@ class VertexArray {
|
|
|
43171
44158
|
const currentAccessor = this.accessors[location] || {};
|
|
43172
44159
|
const accessor = Accessor.resolve(accessInfo.accessor, currentAccessor, valueAccessor, appAccessor);
|
|
43173
44160
|
const {
|
|
43174
|
-
size,
|
|
44161
|
+
size: size2,
|
|
43175
44162
|
type
|
|
43176
44163
|
} = accessor;
|
|
43177
|
-
assert$8(Number.isFinite(
|
|
44164
|
+
assert$8(Number.isFinite(size2) && Number.isFinite(type));
|
|
43178
44165
|
return {
|
|
43179
44166
|
location,
|
|
43180
44167
|
accessor
|
|
@@ -43306,12 +44293,12 @@ class VertexArray {
|
|
|
43306
44293
|
function formatArrayValue(v, opts) {
|
|
43307
44294
|
const {
|
|
43308
44295
|
maxElts = 16,
|
|
43309
|
-
size = 1
|
|
44296
|
+
size: size2 = 1
|
|
43310
44297
|
} = opts;
|
|
43311
44298
|
let string2 = "[";
|
|
43312
44299
|
for (let i2 = 0; i2 < v.length && i2 < maxElts; ++i2) {
|
|
43313
44300
|
if (i2 > 0) {
|
|
43314
|
-
string2 += ",".concat(i2 %
|
|
44301
|
+
string2 += ",".concat(i2 % size2 === 0 ? " " : "");
|
|
43315
44302
|
}
|
|
43316
44303
|
string2 += formatValue$1(v[i2], opts);
|
|
43317
44304
|
}
|
|
@@ -43476,7 +44463,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43476
44463
|
};
|
|
43477
44464
|
}
|
|
43478
44465
|
let type = "NOT PROVIDED";
|
|
43479
|
-
let
|
|
44466
|
+
let size2 = 1;
|
|
43480
44467
|
let verts = 0;
|
|
43481
44468
|
let bytes = 0;
|
|
43482
44469
|
let isInteger;
|
|
@@ -43484,7 +44471,7 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43484
44471
|
let value;
|
|
43485
44472
|
if (accessor) {
|
|
43486
44473
|
type = accessor.type;
|
|
43487
|
-
|
|
44474
|
+
size2 = accessor.size;
|
|
43488
44475
|
type = String(type).replace("Array", "");
|
|
43489
44476
|
isInteger = type.indexOf("nt") !== -1;
|
|
43490
44477
|
}
|
|
@@ -43497,41 +44484,41 @@ function getDebugTableRow(vertexArray, attribute, accessor, header) {
|
|
|
43497
44484
|
marker2 = changed ? "*" : "";
|
|
43498
44485
|
value = data;
|
|
43499
44486
|
bytes = buffer.byteLength;
|
|
43500
|
-
verts = bytes / data.BYTES_PER_ELEMENT /
|
|
44487
|
+
verts = bytes / data.BYTES_PER_ELEMENT / size2;
|
|
43501
44488
|
let format2;
|
|
43502
44489
|
if (accessor) {
|
|
43503
44490
|
const instanced = accessor.divisor > 0;
|
|
43504
|
-
format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(
|
|
44491
|
+
format2 = "".concat(instanced ? "I " : "P ", " ").concat(verts, " (x").concat(size2, "=").concat(bytes, " bytes ").concat(getKey(gl, type), ")");
|
|
43505
44492
|
} else {
|
|
43506
44493
|
isInteger = true;
|
|
43507
44494
|
format2 = "".concat(bytes, " bytes");
|
|
43508
44495
|
}
|
|
43509
44496
|
return {
|
|
43510
44497
|
[header]: "".concat(marker2).concat(formatValue$1(value, {
|
|
43511
|
-
size,
|
|
44498
|
+
size: size2,
|
|
43512
44499
|
isInteger
|
|
43513
44500
|
})),
|
|
43514
44501
|
"Format ": format2
|
|
43515
44502
|
};
|
|
43516
44503
|
}
|
|
43517
44504
|
value = attribute;
|
|
43518
|
-
|
|
44505
|
+
size2 = attribute.length;
|
|
43519
44506
|
type = String(attribute.constructor.name).replace("Array", "");
|
|
43520
44507
|
isInteger = type.indexOf("nt") !== -1;
|
|
43521
44508
|
return {
|
|
43522
44509
|
[header]: "".concat(formatValue$1(value, {
|
|
43523
|
-
size,
|
|
44510
|
+
size: size2,
|
|
43524
44511
|
isInteger
|
|
43525
44512
|
}), " (constant)"),
|
|
43526
|
-
"Format ": "".concat(
|
|
44513
|
+
"Format ": "".concat(size2, "x").concat(type, " (constant)")
|
|
43527
44514
|
};
|
|
43528
44515
|
}
|
|
43529
44516
|
function getGLSLDeclaration$1(name2, accessor) {
|
|
43530
44517
|
const {
|
|
43531
44518
|
type,
|
|
43532
|
-
size
|
|
44519
|
+
size: size2
|
|
43533
44520
|
} = accessor;
|
|
43534
|
-
const typeAndName = getCompositeGLType(type,
|
|
44521
|
+
const typeAndName = getCompositeGLType(type, size2);
|
|
43535
44522
|
return typeAndName ? "".concat(name2, " (").concat(typeAndName.name, ")") : name2;
|
|
43536
44523
|
}
|
|
43537
44524
|
function getDebugTableForProgramConfiguration(config2) {
|
|
@@ -43558,9 +44545,9 @@ function getDebugTableForProgramConfiguration(config2) {
|
|
|
43558
44545
|
function getGLSLDeclaration(attributeInfo) {
|
|
43559
44546
|
const {
|
|
43560
44547
|
type,
|
|
43561
|
-
size
|
|
44548
|
+
size: size2
|
|
43562
44549
|
} = attributeInfo.accessor;
|
|
43563
|
-
const typeAndName = getCompositeGLType(type,
|
|
44550
|
+
const typeAndName = getCompositeGLType(type, size2);
|
|
43564
44551
|
if (typeAndName) {
|
|
43565
44552
|
return "".concat(typeAndName.name, " ").concat(attributeInfo.name);
|
|
43566
44553
|
}
|
|
@@ -50182,11 +51169,11 @@ class Geometry {
|
|
|
50182
51169
|
const attribute = attributes[attributeName];
|
|
50183
51170
|
const {
|
|
50184
51171
|
value,
|
|
50185
|
-
size,
|
|
51172
|
+
size: size2,
|
|
50186
51173
|
constant: constant2
|
|
50187
51174
|
} = attribute;
|
|
50188
|
-
if (!constant2 && value &&
|
|
50189
|
-
vertexCount = Math.min(vertexCount, value.length /
|
|
51175
|
+
if (!constant2 && value && size2 >= 1) {
|
|
51176
|
+
vertexCount = Math.min(vertexCount, value.length / size2);
|
|
50190
51177
|
}
|
|
50191
51178
|
}
|
|
50192
51179
|
assert$8(Number.isFinite(vertexCount));
|
|
@@ -50564,20 +51551,20 @@ function unpackIndexedGeometry(geometry2) {
|
|
|
50564
51551
|
const {
|
|
50565
51552
|
constant: constant2,
|
|
50566
51553
|
value,
|
|
50567
|
-
size
|
|
51554
|
+
size: size2
|
|
50568
51555
|
} = attribute;
|
|
50569
|
-
if (constant2 || !
|
|
51556
|
+
if (constant2 || !size2) {
|
|
50570
51557
|
continue;
|
|
50571
51558
|
}
|
|
50572
|
-
const unpackedValue = new value.constructor(vertexCount *
|
|
51559
|
+
const unpackedValue = new value.constructor(vertexCount * size2);
|
|
50573
51560
|
for (let x = 0; x < vertexCount; ++x) {
|
|
50574
51561
|
const index2 = indices.value[x];
|
|
50575
|
-
for (let i2 = 0; i2 <
|
|
50576
|
-
unpackedValue[x *
|
|
51562
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
51563
|
+
unpackedValue[x * size2 + i2] = value[index2 * size2 + i2];
|
|
50577
51564
|
}
|
|
50578
51565
|
}
|
|
50579
51566
|
unpackedAttributes[attributeName] = {
|
|
50580
|
-
size,
|
|
51567
|
+
size: size2,
|
|
50581
51568
|
value: unpackedValue
|
|
50582
51569
|
};
|
|
50583
51570
|
}
|
|
@@ -51498,11 +52485,11 @@ function fitBounds(options) {
|
|
|
51498
52485
|
const padding2 = getPaddingObject(options.padding);
|
|
51499
52486
|
const nw = lngLatToWorld([west, clamp$1(north, -85.051129, MAX_LATITUDE)]);
|
|
51500
52487
|
const se = lngLatToWorld([east, clamp$1(south, -85.051129, MAX_LATITUDE)]);
|
|
51501
|
-
const
|
|
52488
|
+
const size2 = [Math.max(Math.abs(se[0] - nw[0]), minExtent), Math.max(Math.abs(se[1] - nw[1]), minExtent)];
|
|
51502
52489
|
const targetSize = [width2 - padding2.left - padding2.right - Math.abs(offset2[0]) * 2, height2 - padding2.top - padding2.bottom - Math.abs(offset2[1]) * 2];
|
|
51503
52490
|
assert$5(targetSize[0] > 0 && targetSize[1] > 0);
|
|
51504
|
-
const scaleX2 = targetSize[0] /
|
|
51505
|
-
const scaleY2 = targetSize[1] /
|
|
52491
|
+
const scaleX2 = targetSize[0] / size2[0];
|
|
52492
|
+
const scaleY2 = targetSize[1] / size2[1];
|
|
51506
52493
|
const offsetX = (padding2.right - padding2.left) / 2 / scaleX2;
|
|
51507
52494
|
const offsetY = (padding2.top - padding2.bottom) / 2 / scaleY2;
|
|
51508
52495
|
const center2 = [(se[0] + nw[0]) / 2 + offsetX, (se[1] + nw[1]) / 2 + offsetY];
|
|
@@ -52621,7 +53608,7 @@ class TypedArrayManager {
|
|
|
52621
53608
|
Object.assign(this.opts, options);
|
|
52622
53609
|
}
|
|
52623
53610
|
allocate(typedArray, count2, {
|
|
52624
|
-
size = 1,
|
|
53611
|
+
size: size2 = 1,
|
|
52625
53612
|
type,
|
|
52626
53613
|
padding: padding2 = 0,
|
|
52627
53614
|
copy: copy2 = false,
|
|
@@ -52629,7 +53616,7 @@ class TypedArrayManager {
|
|
|
52629
53616
|
maxCount
|
|
52630
53617
|
}) {
|
|
52631
53618
|
const Type2 = type || typedArray && typedArray.constructor || Float32Array;
|
|
52632
|
-
const newSize = count2 *
|
|
53619
|
+
const newSize = count2 * size2 + padding2;
|
|
52633
53620
|
if (ArrayBuffer.isView(typedArray)) {
|
|
52634
53621
|
if (newSize <= typedArray.length) {
|
|
52635
53622
|
return typedArray;
|
|
@@ -52640,7 +53627,7 @@ class TypedArrayManager {
|
|
|
52640
53627
|
}
|
|
52641
53628
|
let maxSize = Infinity;
|
|
52642
53629
|
if (maxCount) {
|
|
52643
|
-
maxSize = maxCount *
|
|
53630
|
+
maxSize = maxCount * size2 + padding2;
|
|
52644
53631
|
}
|
|
52645
53632
|
const newArray = this._allocate(Type2, newSize, initialize, maxSize);
|
|
52646
53633
|
if (typedArray && copy2) {
|
|
@@ -52654,8 +53641,8 @@ class TypedArrayManager {
|
|
|
52654
53641
|
release(typedArray) {
|
|
52655
53642
|
this._release(typedArray);
|
|
52656
53643
|
}
|
|
52657
|
-
_allocate(Type2,
|
|
52658
|
-
let sizeToAllocate = Math.max(Math.ceil(
|
|
53644
|
+
_allocate(Type2, size2, initialize, maxSize) {
|
|
53645
|
+
let sizeToAllocate = Math.max(Math.ceil(size2 * this.opts.overAlloc), 1);
|
|
52659
53646
|
if (sizeToAllocate > maxSize) {
|
|
52660
53647
|
sizeToAllocate = maxSize;
|
|
52661
53648
|
}
|
|
@@ -52729,26 +53716,26 @@ function fp64LowPart(x) {
|
|
|
52729
53716
|
let scratchArray;
|
|
52730
53717
|
function toDoublePrecisionArray(typedArray, options) {
|
|
52731
53718
|
const {
|
|
52732
|
-
size = 1,
|
|
53719
|
+
size: size2 = 1,
|
|
52733
53720
|
startIndex = 0
|
|
52734
53721
|
} = options;
|
|
52735
53722
|
const endIndex = options.endIndex !== void 0 ? options.endIndex : typedArray.length;
|
|
52736
|
-
const count2 = (endIndex - startIndex) /
|
|
53723
|
+
const count2 = (endIndex - startIndex) / size2;
|
|
52737
53724
|
scratchArray = defaultTypedArrayManager.allocate(scratchArray, count2, {
|
|
52738
53725
|
type: Float32Array,
|
|
52739
|
-
size:
|
|
53726
|
+
size: size2 * 2
|
|
52740
53727
|
});
|
|
52741
53728
|
let sourceIndex = startIndex;
|
|
52742
53729
|
let targetIndex = 0;
|
|
52743
53730
|
while (sourceIndex < endIndex) {
|
|
52744
|
-
for (let j = 0; j <
|
|
53731
|
+
for (let j = 0; j < size2; j++) {
|
|
52745
53732
|
const value = typedArray[sourceIndex++];
|
|
52746
53733
|
scratchArray[targetIndex + j] = value;
|
|
52747
|
-
scratchArray[targetIndex + j +
|
|
53734
|
+
scratchArray[targetIndex + j + size2] = fp64LowPart(value);
|
|
52748
53735
|
}
|
|
52749
|
-
targetIndex +=
|
|
53736
|
+
targetIndex += size2 * 2;
|
|
52750
53737
|
}
|
|
52751
|
-
return scratchArray.subarray(0, count2 *
|
|
53738
|
+
return scratchArray.subarray(0, count2 * size2 * 2);
|
|
52752
53739
|
}
|
|
52753
53740
|
const DEGREES_TO_RADIANS$4 = Math.PI / 180;
|
|
52754
53741
|
const IDENTITY = createMat4();
|
|
@@ -56407,15 +57394,15 @@ function getMaskViewport({
|
|
|
56407
57394
|
});
|
|
56408
57395
|
}
|
|
56409
57396
|
function _doubleBounds(bounds2) {
|
|
56410
|
-
const
|
|
57397
|
+
const size2 = {
|
|
56411
57398
|
x: bounds2[2] - bounds2[0],
|
|
56412
57399
|
y: bounds2[3] - bounds2[1]
|
|
56413
57400
|
};
|
|
56414
57401
|
const center2 = {
|
|
56415
|
-
x: bounds2[0] + 0.5 *
|
|
56416
|
-
y: bounds2[1] + 0.5 *
|
|
57402
|
+
x: bounds2[0] + 0.5 * size2.x,
|
|
57403
|
+
y: bounds2[1] + 0.5 * size2.y
|
|
56417
57404
|
};
|
|
56418
|
-
return [center2.x -
|
|
57405
|
+
return [center2.x - size2.x, center2.y - size2.y, center2.x + size2.x, center2.y + size2.y];
|
|
56419
57406
|
}
|
|
56420
57407
|
class MaskEffect {
|
|
56421
57408
|
constructor() {
|
|
@@ -60799,13 +61786,13 @@ class ShaderAttribute {
|
|
|
60799
61786
|
value
|
|
60800
61787
|
} = this.source;
|
|
60801
61788
|
const {
|
|
60802
|
-
size
|
|
61789
|
+
size: size2
|
|
60803
61790
|
} = accessor;
|
|
60804
61791
|
let constantValue = value;
|
|
60805
|
-
if (value && value.length !==
|
|
60806
|
-
constantValue = new Float32Array(
|
|
61792
|
+
if (value && value.length !== size2) {
|
|
61793
|
+
constantValue = new Float32Array(size2);
|
|
60807
61794
|
const index2 = accessor.elementOffset || 0;
|
|
60808
|
-
for (let i2 = 0; i2 <
|
|
61795
|
+
for (let i2 = 0; i2 < size2; ++i2) {
|
|
60809
61796
|
constantValue[i2] = value[index2 + i2];
|
|
60810
61797
|
}
|
|
60811
61798
|
}
|
|
@@ -61008,14 +61995,14 @@ class DataColumn {
|
|
|
61008
61995
|
const {
|
|
61009
61996
|
value,
|
|
61010
61997
|
numInstances,
|
|
61011
|
-
size
|
|
61998
|
+
size: size2
|
|
61012
61999
|
} = this;
|
|
61013
|
-
const len2 = numInstances *
|
|
62000
|
+
const len2 = numInstances * size2;
|
|
61014
62001
|
if (value && len2 && value.length >= len2) {
|
|
61015
|
-
const min = new Array(
|
|
61016
|
-
const max2 = new Array(
|
|
62002
|
+
const min = new Array(size2).fill(Infinity);
|
|
62003
|
+
const max2 = new Array(size2).fill(-Infinity);
|
|
61017
62004
|
for (let i2 = 0; i2 < len2; ) {
|
|
61018
|
-
for (let j = 0; j <
|
|
62005
|
+
for (let j = 0; j < size2; j++) {
|
|
61019
62006
|
const v = value[i2++];
|
|
61020
62007
|
if (v < min[j]) min[j] = v;
|
|
61021
62008
|
if (v > max2[j]) max2[j] = v;
|
|
@@ -61181,7 +62168,7 @@ class DataColumn {
|
|
|
61181
62168
|
_normalizeValue(value, out, start) {
|
|
61182
62169
|
const {
|
|
61183
62170
|
defaultValue: defaultValue2,
|
|
61184
|
-
size
|
|
62171
|
+
size: size2
|
|
61185
62172
|
} = this.settings;
|
|
61186
62173
|
if (Number.isFinite(value)) {
|
|
61187
62174
|
out[start] = value;
|
|
@@ -61191,7 +62178,7 @@ class DataColumn {
|
|
|
61191
62178
|
out[start] = defaultValue2[0];
|
|
61192
62179
|
return out;
|
|
61193
62180
|
}
|
|
61194
|
-
switch (
|
|
62181
|
+
switch (size2) {
|
|
61195
62182
|
case 4:
|
|
61196
62183
|
out[start + 3] = Number.isFinite(value[3]) ? value[3] : defaultValue2[3];
|
|
61197
62184
|
case 3:
|
|
@@ -61202,7 +62189,7 @@ class DataColumn {
|
|
|
61202
62189
|
out[start + 0] = Number.isFinite(value[0]) ? value[0] : defaultValue2[0];
|
|
61203
62190
|
break;
|
|
61204
62191
|
default:
|
|
61205
|
-
let i2 =
|
|
62192
|
+
let i2 = size2;
|
|
61206
62193
|
while (--i2 >= 0) {
|
|
61207
62194
|
out[start + i2] = Number.isFinite(value[i2]) ? value[i2] : defaultValue2[i2];
|
|
61208
62195
|
}
|
|
@@ -61214,9 +62201,9 @@ class DataColumn {
|
|
|
61214
62201
|
return false;
|
|
61215
62202
|
}
|
|
61216
62203
|
const {
|
|
61217
|
-
size
|
|
62204
|
+
size: size2
|
|
61218
62205
|
} = this;
|
|
61219
|
-
for (let i2 = 0; i2 <
|
|
62206
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
61220
62207
|
if (value1[i2] !== value2[i2]) {
|
|
61221
62208
|
return false;
|
|
61222
62209
|
}
|
|
@@ -61255,14 +62242,14 @@ function isAsyncIterable(data) {
|
|
|
61255
62242
|
}
|
|
61256
62243
|
function getAccessorFromBuffer(typedArray, options) {
|
|
61257
62244
|
const {
|
|
61258
|
-
size,
|
|
62245
|
+
size: size2,
|
|
61259
62246
|
stride,
|
|
61260
62247
|
offset: offset2,
|
|
61261
62248
|
startIndices,
|
|
61262
62249
|
nested: nested2
|
|
61263
62250
|
} = options;
|
|
61264
62251
|
const bytesPerElement = typedArray.BYTES_PER_ELEMENT;
|
|
61265
|
-
const elementStride = stride ? stride / bytesPerElement :
|
|
62252
|
+
const elementStride = stride ? stride / bytesPerElement : size2;
|
|
61266
62253
|
const elementOffset = offset2 ? offset2 / bytesPerElement : 0;
|
|
61267
62254
|
const vertexCount = Math.floor((typedArray.length - elementOffset) / elementStride);
|
|
61268
62255
|
return (_, {
|
|
@@ -61271,7 +62258,7 @@ function getAccessorFromBuffer(typedArray, options) {
|
|
|
61271
62258
|
}) => {
|
|
61272
62259
|
if (!startIndices) {
|
|
61273
62260
|
const sourceIndex = index2 * elementStride + elementOffset;
|
|
61274
|
-
for (let j = 0; j <
|
|
62261
|
+
for (let j = 0; j < size2; j++) {
|
|
61275
62262
|
target[j] = typedArray[sourceIndex + j];
|
|
61276
62263
|
}
|
|
61277
62264
|
return target;
|
|
@@ -61283,20 +62270,20 @@ function getAccessorFromBuffer(typedArray, options) {
|
|
|
61283
62270
|
result = new Array(endIndex - startIndex);
|
|
61284
62271
|
for (let i2 = startIndex; i2 < endIndex; i2++) {
|
|
61285
62272
|
const sourceIndex = i2 * elementStride + elementOffset;
|
|
61286
|
-
target = new Array(
|
|
61287
|
-
for (let j = 0; j <
|
|
62273
|
+
target = new Array(size2);
|
|
62274
|
+
for (let j = 0; j < size2; j++) {
|
|
61288
62275
|
target[j] = typedArray[sourceIndex + j];
|
|
61289
62276
|
}
|
|
61290
62277
|
result[i2 - startIndex] = target;
|
|
61291
62278
|
}
|
|
61292
|
-
} else if (elementStride ===
|
|
61293
|
-
result = typedArray.subarray(startIndex *
|
|
62279
|
+
} else if (elementStride === size2) {
|
|
62280
|
+
result = typedArray.subarray(startIndex * size2 + elementOffset, endIndex * size2 + elementOffset);
|
|
61294
62281
|
} else {
|
|
61295
|
-
result = new typedArray.constructor((endIndex - startIndex) *
|
|
62282
|
+
result = new typedArray.constructor((endIndex - startIndex) * size2);
|
|
61296
62283
|
let targetIndex = 0;
|
|
61297
62284
|
for (let i2 = startIndex; i2 < endIndex; i2++) {
|
|
61298
62285
|
const sourceIndex = i2 * elementStride + elementOffset;
|
|
61299
|
-
for (let j = 0; j <
|
|
62286
|
+
for (let j = 0; j < size2; j++) {
|
|
61300
62287
|
result[targetIndex++] = typedArray[sourceIndex + j];
|
|
61301
62288
|
}
|
|
61302
62289
|
}
|
|
@@ -61338,7 +62325,7 @@ function padArrayChunk(options) {
|
|
|
61338
62325
|
source,
|
|
61339
62326
|
target,
|
|
61340
62327
|
start = 0,
|
|
61341
|
-
size,
|
|
62328
|
+
size: size2,
|
|
61342
62329
|
getData
|
|
61343
62330
|
} = options;
|
|
61344
62331
|
const end = options.end || target.length;
|
|
@@ -61355,7 +62342,7 @@ function padArrayChunk(options) {
|
|
|
61355
62342
|
let i2 = sourceLength;
|
|
61356
62343
|
while (i2 < targetLength) {
|
|
61357
62344
|
const datum2 = getData(i2, source);
|
|
61358
|
-
for (let j = 0; j <
|
|
62345
|
+
for (let j = 0; j < size2; j++) {
|
|
61359
62346
|
target[start + i2] = datum2[j] || 0;
|
|
61360
62347
|
i2++;
|
|
61361
62348
|
}
|
|
@@ -61364,7 +62351,7 @@ function padArrayChunk(options) {
|
|
|
61364
62351
|
function padArray({
|
|
61365
62352
|
source,
|
|
61366
62353
|
target,
|
|
61367
|
-
size,
|
|
62354
|
+
size: size2,
|
|
61368
62355
|
getData,
|
|
61369
62356
|
sourceStartIndices,
|
|
61370
62357
|
targetStartIndices
|
|
@@ -61373,7 +62360,7 @@ function padArray({
|
|
|
61373
62360
|
padArrayChunk({
|
|
61374
62361
|
source,
|
|
61375
62362
|
target,
|
|
61376
|
-
size,
|
|
62363
|
+
size: size2,
|
|
61377
62364
|
getData
|
|
61378
62365
|
});
|
|
61379
62366
|
return target;
|
|
@@ -61383,14 +62370,14 @@ function padArray({
|
|
|
61383
62370
|
const getChunkData = getData && ((i2, chunk) => getData(i2 + targetIndex, chunk));
|
|
61384
62371
|
const n2 = Math.min(sourceStartIndices.length, targetStartIndices.length);
|
|
61385
62372
|
for (let i2 = 1; i2 < n2; i2++) {
|
|
61386
|
-
const nextSourceIndex = sourceStartIndices[i2] *
|
|
61387
|
-
const nextTargetIndex = targetStartIndices[i2] *
|
|
62373
|
+
const nextSourceIndex = sourceStartIndices[i2] * size2;
|
|
62374
|
+
const nextTargetIndex = targetStartIndices[i2] * size2;
|
|
61388
62375
|
padArrayChunk({
|
|
61389
62376
|
source: source.subarray(sourceIndex, nextSourceIndex),
|
|
61390
62377
|
target,
|
|
61391
62378
|
start: targetIndex,
|
|
61392
62379
|
end: nextTargetIndex,
|
|
61393
|
-
size,
|
|
62380
|
+
size: size2,
|
|
61394
62381
|
getData: getChunkData
|
|
61395
62382
|
});
|
|
61396
62383
|
sourceIndex = nextSourceIndex;
|
|
@@ -61401,7 +62388,7 @@ function padArray({
|
|
|
61401
62388
|
source: [],
|
|
61402
62389
|
target,
|
|
61403
62390
|
start: targetIndex,
|
|
61404
|
-
size,
|
|
62391
|
+
size: size2,
|
|
61405
62392
|
getData: getChunkData
|
|
61406
62393
|
});
|
|
61407
62394
|
}
|
|
@@ -61446,8 +62433,8 @@ function getSourceBufferAttribute(gl, attribute) {
|
|
|
61446
62433
|
}
|
|
61447
62434
|
return attribute.value;
|
|
61448
62435
|
}
|
|
61449
|
-
function getAttributeTypeFromSize(
|
|
61450
|
-
switch (
|
|
62436
|
+
function getAttributeTypeFromSize(size2) {
|
|
62437
|
+
switch (size2) {
|
|
61451
62438
|
case 1:
|
|
61452
62439
|
return "float";
|
|
61453
62440
|
case 2:
|
|
@@ -61457,7 +62444,7 @@ function getAttributeTypeFromSize(size) {
|
|
|
61457
62444
|
case 4:
|
|
61458
62445
|
return "vec4";
|
|
61459
62446
|
default:
|
|
61460
|
-
throw new Error('No defined attribute type for size "'.concat(
|
|
62447
|
+
throw new Error('No defined attribute type for size "'.concat(size2, '"'));
|
|
61461
62448
|
}
|
|
61462
62449
|
}
|
|
61463
62450
|
function cycleBuffers(buffers) {
|
|
@@ -61468,10 +62455,10 @@ function getAttributeBufferLength(attribute, numInstances) {
|
|
|
61468
62455
|
doublePrecision,
|
|
61469
62456
|
settings,
|
|
61470
62457
|
value,
|
|
61471
|
-
size
|
|
62458
|
+
size: size2
|
|
61472
62459
|
} = attribute;
|
|
61473
62460
|
const multiplier = doublePrecision && value instanceof Float64Array ? 2 : 1;
|
|
61474
|
-
return (settings.noAlloc ? value.length : numInstances *
|
|
62461
|
+
return (settings.noAlloc ? value.length : numInstances * size2) * multiplier;
|
|
61475
62462
|
}
|
|
61476
62463
|
function padBuffer({
|
|
61477
62464
|
buffer,
|
|
@@ -61482,7 +62469,7 @@ function padBuffer({
|
|
|
61482
62469
|
getData = (x) => x
|
|
61483
62470
|
}) {
|
|
61484
62471
|
const precisionMultiplier = attribute.doublePrecision && attribute.value instanceof Float64Array ? 2 : 1;
|
|
61485
|
-
const
|
|
62472
|
+
const size2 = attribute.size * precisionMultiplier;
|
|
61486
62473
|
const byteOffset = attribute.byteOffset;
|
|
61487
62474
|
const toStartIndices = attribute.startIndices;
|
|
61488
62475
|
const hasStartIndices = fromStartIndices && toStartIndices;
|
|
@@ -61498,7 +62485,7 @@ function padBuffer({
|
|
|
61498
62485
|
const getter = getData;
|
|
61499
62486
|
getData = (value, chunk) => attribute.normalizeConstant(getter(value, chunk));
|
|
61500
62487
|
}
|
|
61501
|
-
const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 +
|
|
62488
|
+
const getMissingData = isConstant ? (i2, chunk) => getData(toData, chunk) : (i2, chunk) => getData(toData.subarray(i2, i2 + size2), chunk);
|
|
61502
62489
|
const source = buffer.getData({
|
|
61503
62490
|
length: fromLength
|
|
61504
62491
|
});
|
|
@@ -61508,7 +62495,7 @@ function padBuffer({
|
|
|
61508
62495
|
target: data,
|
|
61509
62496
|
sourceStartIndices: fromStartIndices,
|
|
61510
62497
|
targetStartIndices: toStartIndices,
|
|
61511
|
-
size,
|
|
62498
|
+
size: size2,
|
|
61512
62499
|
getData: getMissingData
|
|
61513
62500
|
});
|
|
61514
62501
|
if (buffer.byteLength < data.byteLength + byteOffset) {
|
|
@@ -61764,7 +62751,7 @@ class Attribute extends DataColumn {
|
|
|
61764
62751
|
settings,
|
|
61765
62752
|
state,
|
|
61766
62753
|
value,
|
|
61767
|
-
size,
|
|
62754
|
+
size: size2,
|
|
61768
62755
|
startIndices
|
|
61769
62756
|
} = attribute;
|
|
61770
62757
|
const {
|
|
@@ -61790,9 +62777,9 @@ class Attribute extends DataColumn {
|
|
|
61790
62777
|
let startIndex = i2;
|
|
61791
62778
|
for (const item of objectValue) {
|
|
61792
62779
|
attribute._normalizeValue(item, value, startIndex);
|
|
61793
|
-
startIndex +=
|
|
62780
|
+
startIndex += size2;
|
|
61794
62781
|
}
|
|
61795
|
-
} else if (objectValue && objectValue.length >
|
|
62782
|
+
} else if (objectValue && objectValue.length > size2) {
|
|
61796
62783
|
value.set(objectValue, i2);
|
|
61797
62784
|
} else {
|
|
61798
62785
|
attribute._normalizeValue(objectValue, objectInfo.target, 0);
|
|
@@ -61803,10 +62790,10 @@ class Attribute extends DataColumn {
|
|
|
61803
62790
|
count: numVertices
|
|
61804
62791
|
});
|
|
61805
62792
|
}
|
|
61806
|
-
i2 += numVertices *
|
|
62793
|
+
i2 += numVertices * size2;
|
|
61807
62794
|
} else {
|
|
61808
62795
|
attribute._normalizeValue(objectValue, value, i2);
|
|
61809
|
-
i2 +=
|
|
62796
|
+
i2 += size2;
|
|
61810
62797
|
}
|
|
61811
62798
|
}
|
|
61812
62799
|
}
|
|
@@ -67004,14 +67991,14 @@ function reversePolygon(points, options) {
|
|
|
67004
67991
|
const {
|
|
67005
67992
|
start = 0,
|
|
67006
67993
|
end = points.length,
|
|
67007
|
-
size = 2
|
|
67994
|
+
size: size2 = 2
|
|
67008
67995
|
} = options;
|
|
67009
|
-
const numPoints = (end - start) /
|
|
67996
|
+
const numPoints = (end - start) / size2;
|
|
67010
67997
|
const numSwaps = Math.floor(numPoints / 2);
|
|
67011
67998
|
for (let i2 = 0; i2 < numSwaps; ++i2) {
|
|
67012
|
-
const b1 = start + i2 *
|
|
67013
|
-
const b2 = start + (numPoints - 1 - i2) *
|
|
67014
|
-
for (let j = 0; j <
|
|
67999
|
+
const b1 = start + i2 * size2;
|
|
68000
|
+
const b2 = start + (numPoints - 1 - i2) * size2;
|
|
68001
|
+
for (let j = 0; j < size2; ++j) {
|
|
67015
68002
|
const tmp = points[b1 + j];
|
|
67016
68003
|
points[b1 + j] = points[b2 + j];
|
|
67017
68004
|
points[b2 + j] = tmp;
|
|
@@ -67019,12 +68006,12 @@ function reversePolygon(points, options) {
|
|
|
67019
68006
|
}
|
|
67020
68007
|
}
|
|
67021
68008
|
function push(target, source) {
|
|
67022
|
-
const
|
|
68009
|
+
const size2 = source.length;
|
|
67023
68010
|
const startIndex = target.length;
|
|
67024
68011
|
if (startIndex > 0) {
|
|
67025
68012
|
let isDuplicate = true;
|
|
67026
|
-
for (let i2 = 0; i2 <
|
|
67027
|
-
if (target[startIndex -
|
|
68013
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
68014
|
+
if (target[startIndex - size2 + i2] !== source[i2]) {
|
|
67028
68015
|
isDuplicate = false;
|
|
67029
68016
|
break;
|
|
67030
68017
|
}
|
|
@@ -67033,20 +68020,20 @@ function push(target, source) {
|
|
|
67033
68020
|
return false;
|
|
67034
68021
|
}
|
|
67035
68022
|
}
|
|
67036
|
-
for (let i2 = 0; i2 <
|
|
68023
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67037
68024
|
target[startIndex + i2] = source[i2];
|
|
67038
68025
|
}
|
|
67039
68026
|
return true;
|
|
67040
68027
|
}
|
|
67041
68028
|
function copy(target, source) {
|
|
67042
|
-
const
|
|
67043
|
-
for (let i2 = 0; i2 <
|
|
68029
|
+
const size2 = source.length;
|
|
68030
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67044
68031
|
target[i2] = source[i2];
|
|
67045
68032
|
}
|
|
67046
68033
|
}
|
|
67047
|
-
function getPointAtIndex(positions, index2,
|
|
67048
|
-
const startI = offset2 + index2 *
|
|
67049
|
-
for (let i2 = 0; i2 <
|
|
68034
|
+
function getPointAtIndex(positions, index2, size2, offset2, out = []) {
|
|
68035
|
+
const startI = offset2 + index2 * size2;
|
|
68036
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
67050
68037
|
out[i2] = positions[startI + i2];
|
|
67051
68038
|
}
|
|
67052
68039
|
return out;
|
|
@@ -67084,24 +68071,24 @@ function bitCode(p, bbox2) {
|
|
|
67084
68071
|
}
|
|
67085
68072
|
function cutPolylineByGrid(positions, options) {
|
|
67086
68073
|
const {
|
|
67087
|
-
size = 2,
|
|
68074
|
+
size: size2 = 2,
|
|
67088
68075
|
broken = false,
|
|
67089
68076
|
gridResolution = 10,
|
|
67090
68077
|
gridOffset = [0, 0],
|
|
67091
68078
|
startIndex = 0,
|
|
67092
68079
|
endIndex = positions.length
|
|
67093
68080
|
} = options || {};
|
|
67094
|
-
const numPoints = (endIndex - startIndex) /
|
|
68081
|
+
const numPoints = (endIndex - startIndex) / size2;
|
|
67095
68082
|
let part = [];
|
|
67096
68083
|
const result = [part];
|
|
67097
|
-
const a2 = getPointAtIndex(positions, 0,
|
|
68084
|
+
const a2 = getPointAtIndex(positions, 0, size2, startIndex);
|
|
67098
68085
|
let b;
|
|
67099
68086
|
let codeB;
|
|
67100
68087
|
const cell = getGridCell(a2, gridResolution, gridOffset, []);
|
|
67101
68088
|
const scratchPoint = [];
|
|
67102
68089
|
push(part, a2);
|
|
67103
68090
|
for (let i2 = 1; i2 < numPoints; i2++) {
|
|
67104
|
-
b = getPointAtIndex(positions, i2,
|
|
68091
|
+
b = getPointAtIndex(positions, i2, size2, startIndex, b);
|
|
67105
68092
|
codeB = bitCode(b, cell);
|
|
67106
68093
|
while (codeB) {
|
|
67107
68094
|
intersect(a2, b, codeB, cell, scratchPoint);
|
|
@@ -67113,7 +68100,7 @@ function cutPolylineByGrid(positions, options) {
|
|
|
67113
68100
|
push(part, scratchPoint);
|
|
67114
68101
|
copy(a2, scratchPoint);
|
|
67115
68102
|
moveToNeighborCell(cell, gridResolution, codeB);
|
|
67116
|
-
if (broken && part.length >
|
|
68103
|
+
if (broken && part.length > size2) {
|
|
67117
68104
|
part = [];
|
|
67118
68105
|
result.push(part);
|
|
67119
68106
|
push(part, a2);
|
|
@@ -67138,7 +68125,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67138
68125
|
return [];
|
|
67139
68126
|
}
|
|
67140
68127
|
const {
|
|
67141
|
-
size = 2,
|
|
68128
|
+
size: size2 = 2,
|
|
67142
68129
|
gridResolution = 10,
|
|
67143
68130
|
gridOffset = [0, 0],
|
|
67144
68131
|
edgeTypes = false
|
|
@@ -67146,7 +68133,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67146
68133
|
const result = [];
|
|
67147
68134
|
const queue = [{
|
|
67148
68135
|
pos: positions,
|
|
67149
|
-
types: edgeTypes ? new Array(positions.length /
|
|
68136
|
+
types: edgeTypes ? new Array(positions.length / size2).fill(TYPE_BORDER) : null,
|
|
67150
68137
|
holes: holeIndices || []
|
|
67151
68138
|
}];
|
|
67152
68139
|
const bbox2 = [[], []];
|
|
@@ -67157,11 +68144,11 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67157
68144
|
types,
|
|
67158
68145
|
holes
|
|
67159
68146
|
} = queue.shift();
|
|
67160
|
-
getBoundingBox$2(pos,
|
|
68147
|
+
getBoundingBox$2(pos, size2, holes[0] || pos.length, bbox2);
|
|
67161
68148
|
cell = getGridCell(bbox2[0], gridResolution, gridOffset, cell);
|
|
67162
68149
|
const code = bitCode(bbox2[1], cell);
|
|
67163
68150
|
if (code) {
|
|
67164
|
-
let parts = bisectPolygon(pos, types,
|
|
68151
|
+
let parts = bisectPolygon(pos, types, size2, 0, holes[0] || pos.length, cell, code);
|
|
67165
68152
|
const polygonLow = {
|
|
67166
68153
|
pos: parts[0].pos,
|
|
67167
68154
|
types: parts[0].types,
|
|
@@ -67174,7 +68161,7 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67174
68161
|
};
|
|
67175
68162
|
queue.push(polygonLow, polygonHigh);
|
|
67176
68163
|
for (let i2 = 0; i2 < holes.length; i2++) {
|
|
67177
|
-
parts = bisectPolygon(pos, types,
|
|
68164
|
+
parts = bisectPolygon(pos, types, size2, holes[i2], holes[i2 + 1] || pos.length, cell, code);
|
|
67178
68165
|
if (parts[0]) {
|
|
67179
68166
|
polygonLow.holes.push(polygonLow.pos.length);
|
|
67180
68167
|
polygonLow.pos = concatInPlace(polygonLow.pos, parts[0].pos);
|
|
@@ -67205,8 +68192,8 @@ function cutPolygonByGrid(positions, holeIndices = null, options) {
|
|
|
67205
68192
|
}
|
|
67206
68193
|
return result;
|
|
67207
68194
|
}
|
|
67208
|
-
function bisectPolygon(positions, edgeTypes,
|
|
67209
|
-
const numPoints = (endIndex - startIndex) /
|
|
68195
|
+
function bisectPolygon(positions, edgeTypes, size2, startIndex, endIndex, bbox2, edge) {
|
|
68196
|
+
const numPoints = (endIndex - startIndex) / size2;
|
|
67210
68197
|
const resultLow = [];
|
|
67211
68198
|
const resultHigh = [];
|
|
67212
68199
|
const typesLow = [];
|
|
@@ -67215,15 +68202,15 @@ function bisectPolygon(positions, edgeTypes, size, startIndex, endIndex, bbox2,
|
|
|
67215
68202
|
let p;
|
|
67216
68203
|
let side;
|
|
67217
68204
|
let type;
|
|
67218
|
-
const prev2 = getPointAtIndex(positions, numPoints - 1,
|
|
68205
|
+
const prev2 = getPointAtIndex(positions, numPoints - 1, size2, startIndex);
|
|
67219
68206
|
let prevSide = Math.sign(edge & 8 ? prev2[1] - bbox2[3] : prev2[0] - bbox2[2]);
|
|
67220
68207
|
let prevType = edgeTypes && edgeTypes[numPoints - 1];
|
|
67221
68208
|
let lowPointCount = 0;
|
|
67222
68209
|
let highPointCount = 0;
|
|
67223
68210
|
for (let i2 = 0; i2 < numPoints; i2++) {
|
|
67224
|
-
p = getPointAtIndex(positions, i2,
|
|
68211
|
+
p = getPointAtIndex(positions, i2, size2, startIndex, p);
|
|
67225
68212
|
side = Math.sign(edge & 8 ? p[1] - bbox2[3] : p[0] - bbox2[2]);
|
|
67226
|
-
type = edgeTypes && edgeTypes[startIndex /
|
|
68213
|
+
type = edgeTypes && edgeTypes[startIndex / size2 + i2];
|
|
67227
68214
|
if (side && prevSide && prevSide !== side) {
|
|
67228
68215
|
intersect(prev2, p, edge, bbox2, scratchPoint);
|
|
67229
68216
|
push(resultLow, scratchPoint) && typesLow.push(prevType);
|
|
@@ -67277,12 +68264,12 @@ function moveToNeighborCell(cell, gridResolution, edge) {
|
|
|
67277
68264
|
cell[2] -= gridResolution;
|
|
67278
68265
|
}
|
|
67279
68266
|
}
|
|
67280
|
-
function getBoundingBox$2(positions,
|
|
68267
|
+
function getBoundingBox$2(positions, size2, endIndex, out) {
|
|
67281
68268
|
let minX = Infinity;
|
|
67282
68269
|
let maxX = -Infinity;
|
|
67283
68270
|
let minY = Infinity;
|
|
67284
68271
|
let maxY = -Infinity;
|
|
67285
|
-
for (let i2 = 0; i2 < endIndex; i2 +=
|
|
68272
|
+
for (let i2 = 0; i2 < endIndex; i2 += size2) {
|
|
67286
68273
|
const x = positions[i2];
|
|
67287
68274
|
const y = positions[i2 + 1];
|
|
67288
68275
|
minX = x < minX ? x : minX;
|
|
@@ -67299,29 +68286,29 @@ function getBoundingBox$2(positions, size, endIndex, out) {
|
|
|
67299
68286
|
const DEFAULT_MAX_LATITUDE = 85.051129;
|
|
67300
68287
|
function cutPolylineByMercatorBounds(positions, options) {
|
|
67301
68288
|
const {
|
|
67302
|
-
size = 2,
|
|
68289
|
+
size: size2 = 2,
|
|
67303
68290
|
startIndex = 0,
|
|
67304
68291
|
endIndex = positions.length,
|
|
67305
68292
|
normalize: normalize2 = true
|
|
67306
68293
|
} = options || {};
|
|
67307
68294
|
const newPositions = positions.slice(startIndex, endIndex);
|
|
67308
|
-
wrapLongitudesForShortestPath(newPositions,
|
|
68295
|
+
wrapLongitudesForShortestPath(newPositions, size2, 0, endIndex - startIndex);
|
|
67309
68296
|
const parts = cutPolylineByGrid(newPositions, {
|
|
67310
|
-
size,
|
|
68297
|
+
size: size2,
|
|
67311
68298
|
broken: true,
|
|
67312
68299
|
gridResolution: 360,
|
|
67313
68300
|
gridOffset: [-180, -180]
|
|
67314
68301
|
});
|
|
67315
68302
|
if (normalize2) {
|
|
67316
68303
|
for (const part of parts) {
|
|
67317
|
-
shiftLongitudesIntoRange(part,
|
|
68304
|
+
shiftLongitudesIntoRange(part, size2);
|
|
67318
68305
|
}
|
|
67319
68306
|
}
|
|
67320
68307
|
return parts;
|
|
67321
68308
|
}
|
|
67322
68309
|
function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
|
|
67323
68310
|
const {
|
|
67324
|
-
size = 2,
|
|
68311
|
+
size: size2 = 2,
|
|
67325
68312
|
normalize: normalize2 = true,
|
|
67326
68313
|
edgeTypes = false
|
|
67327
68314
|
} = options || {};
|
|
@@ -67333,36 +68320,36 @@ function cutPolygonByMercatorBounds(positions, holeIndices = null, options) {
|
|
|
67333
68320
|
for (let ringIndex = 0; ringIndex <= holeIndices.length; ringIndex++) {
|
|
67334
68321
|
const srcEndIndex = holeIndices[ringIndex] || positions.length;
|
|
67335
68322
|
const targetStartIndex = targetIndex;
|
|
67336
|
-
const splitIndex = findSplitIndex(positions,
|
|
68323
|
+
const splitIndex = findSplitIndex(positions, size2, srcStartIndex, srcEndIndex);
|
|
67337
68324
|
for (let i2 = splitIndex; i2 < srcEndIndex; i2++) {
|
|
67338
68325
|
newPositions[targetIndex++] = positions[i2];
|
|
67339
68326
|
}
|
|
67340
68327
|
for (let i2 = srcStartIndex; i2 < splitIndex; i2++) {
|
|
67341
68328
|
newPositions[targetIndex++] = positions[i2];
|
|
67342
68329
|
}
|
|
67343
|
-
wrapLongitudesForShortestPath(newPositions,
|
|
67344
|
-
insertPoleVertices(newPositions,
|
|
68330
|
+
wrapLongitudesForShortestPath(newPositions, size2, targetStartIndex, targetIndex);
|
|
68331
|
+
insertPoleVertices(newPositions, size2, targetStartIndex, targetIndex, options === null || options === void 0 ? void 0 : options.maxLatitude);
|
|
67345
68332
|
srcStartIndex = srcEndIndex;
|
|
67346
68333
|
newHoleIndices[ringIndex] = targetIndex;
|
|
67347
68334
|
}
|
|
67348
68335
|
newHoleIndices.pop();
|
|
67349
68336
|
const parts = cutPolygonByGrid(newPositions, newHoleIndices, {
|
|
67350
|
-
size,
|
|
68337
|
+
size: size2,
|
|
67351
68338
|
gridResolution: 360,
|
|
67352
68339
|
gridOffset: [-180, -180],
|
|
67353
68340
|
edgeTypes
|
|
67354
68341
|
});
|
|
67355
68342
|
if (normalize2) {
|
|
67356
68343
|
for (const part of parts) {
|
|
67357
|
-
shiftLongitudesIntoRange(part.positions,
|
|
68344
|
+
shiftLongitudesIntoRange(part.positions, size2);
|
|
67358
68345
|
}
|
|
67359
68346
|
}
|
|
67360
68347
|
return parts;
|
|
67361
68348
|
}
|
|
67362
|
-
function findSplitIndex(positions,
|
|
68349
|
+
function findSplitIndex(positions, size2, startIndex, endIndex) {
|
|
67363
68350
|
let maxLat = -1;
|
|
67364
68351
|
let pointIndex = -1;
|
|
67365
|
-
for (let i2 = startIndex + 1; i2 < endIndex; i2 +=
|
|
68352
|
+
for (let i2 = startIndex + 1; i2 < endIndex; i2 += size2) {
|
|
67366
68353
|
const lat = Math.abs(positions[i2]);
|
|
67367
68354
|
if (lat > maxLat) {
|
|
67368
68355
|
maxLat = lat;
|
|
@@ -67371,11 +68358,11 @@ function findSplitIndex(positions, size, startIndex, endIndex) {
|
|
|
67371
68358
|
}
|
|
67372
68359
|
return pointIndex;
|
|
67373
68360
|
}
|
|
67374
|
-
function insertPoleVertices(positions,
|
|
68361
|
+
function insertPoleVertices(positions, size2, startIndex, endIndex, maxLatitude = DEFAULT_MAX_LATITUDE) {
|
|
67375
68362
|
const firstLng = positions[startIndex];
|
|
67376
|
-
const lastLng = positions[endIndex -
|
|
68363
|
+
const lastLng = positions[endIndex - size2];
|
|
67377
68364
|
if (Math.abs(firstLng - lastLng) > 180) {
|
|
67378
|
-
const p = getPointAtIndex(positions, 0,
|
|
68365
|
+
const p = getPointAtIndex(positions, 0, size2, startIndex);
|
|
67379
68366
|
p[0] += Math.round((lastLng - firstLng) / 360) * 360;
|
|
67380
68367
|
push(positions, p);
|
|
67381
68368
|
p[1] = Math.sign(p[1]) * maxLatitude;
|
|
@@ -67384,10 +68371,10 @@ function insertPoleVertices(positions, size, startIndex, endIndex, maxLatitude =
|
|
|
67384
68371
|
push(positions, p);
|
|
67385
68372
|
}
|
|
67386
68373
|
}
|
|
67387
|
-
function wrapLongitudesForShortestPath(positions,
|
|
68374
|
+
function wrapLongitudesForShortestPath(positions, size2, startIndex, endIndex) {
|
|
67388
68375
|
let prevLng = positions[0];
|
|
67389
68376
|
let lng;
|
|
67390
|
-
for (let i2 = startIndex; i2 < endIndex; i2 +=
|
|
68377
|
+
for (let i2 = startIndex; i2 < endIndex; i2 += size2) {
|
|
67391
68378
|
lng = positions[i2];
|
|
67392
68379
|
const delta = lng - prevLng;
|
|
67393
68380
|
if (delta > 180 || delta < -180) {
|
|
@@ -67396,11 +68383,11 @@ function wrapLongitudesForShortestPath(positions, size, startIndex, endIndex) {
|
|
|
67396
68383
|
positions[i2] = prevLng = lng;
|
|
67397
68384
|
}
|
|
67398
68385
|
}
|
|
67399
|
-
function shiftLongitudesIntoRange(positions,
|
|
68386
|
+
function shiftLongitudesIntoRange(positions, size2) {
|
|
67400
68387
|
let refLng;
|
|
67401
|
-
const pointCount = positions.length /
|
|
68388
|
+
const pointCount = positions.length / size2;
|
|
67402
68389
|
for (let i2 = 0; i2 < pointCount; i2++) {
|
|
67403
|
-
refLng = positions[i2 *
|
|
68390
|
+
refLng = positions[i2 * size2];
|
|
67404
68391
|
if ((refLng + 180) % 360 !== 0) {
|
|
67405
68392
|
break;
|
|
67406
68393
|
}
|
|
@@ -67410,7 +68397,7 @@ function shiftLongitudesIntoRange(positions, size) {
|
|
|
67410
68397
|
return;
|
|
67411
68398
|
}
|
|
67412
68399
|
for (let i2 = 0; i2 < pointCount; i2++) {
|
|
67413
|
-
positions[i2 *
|
|
68400
|
+
positions[i2 * size2] += delta;
|
|
67414
68401
|
}
|
|
67415
68402
|
}
|
|
67416
68403
|
class ColumnGeometry extends Geometry {
|
|
@@ -67809,14 +68796,14 @@ class GridCellLayer extends ColumnLayer {
|
|
|
67809
68796
|
}
|
|
67810
68797
|
_defineProperty(GridCellLayer, "layerName", "GridCellLayer");
|
|
67811
68798
|
_defineProperty(GridCellLayer, "defaultProps", defaultProps$E);
|
|
67812
|
-
function normalizePath(path,
|
|
68799
|
+
function normalizePath(path, size2, gridResolution, wrapLongitude) {
|
|
67813
68800
|
let flatPath;
|
|
67814
68801
|
if (Array.isArray(path[0])) {
|
|
67815
|
-
const length2 = path.length *
|
|
68802
|
+
const length2 = path.length * size2;
|
|
67816
68803
|
flatPath = new Array(length2);
|
|
67817
68804
|
for (let i2 = 0; i2 < path.length; i2++) {
|
|
67818
|
-
for (let j = 0; j <
|
|
67819
|
-
flatPath[i2 *
|
|
68805
|
+
for (let j = 0; j < size2; j++) {
|
|
68806
|
+
flatPath[i2 * size2 + j] = path[i2][j] || 0;
|
|
67820
68807
|
}
|
|
67821
68808
|
}
|
|
67822
68809
|
} else {
|
|
@@ -67824,13 +68811,13 @@ function normalizePath(path, size, gridResolution, wrapLongitude) {
|
|
|
67824
68811
|
}
|
|
67825
68812
|
if (gridResolution) {
|
|
67826
68813
|
return cutPolylineByGrid(flatPath, {
|
|
67827
|
-
size,
|
|
68814
|
+
size: size2,
|
|
67828
68815
|
gridResolution
|
|
67829
68816
|
});
|
|
67830
68817
|
}
|
|
67831
68818
|
if (wrapLongitude) {
|
|
67832
68819
|
return cutPolylineByMercatorBounds(flatPath, {
|
|
67833
|
-
size
|
|
68820
|
+
size: size2
|
|
67834
68821
|
});
|
|
67835
68822
|
}
|
|
67836
68823
|
return flatPath;
|
|
@@ -67873,11 +68860,11 @@ class PathTesselator extends Tesselator {
|
|
|
67873
68860
|
}
|
|
67874
68861
|
getGeometrySize(path) {
|
|
67875
68862
|
if (isCut$1(path)) {
|
|
67876
|
-
let
|
|
68863
|
+
let size2 = 0;
|
|
67877
68864
|
for (const subPath of path) {
|
|
67878
|
-
|
|
68865
|
+
size2 += this.getGeometrySize(subPath);
|
|
67879
68866
|
}
|
|
67880
|
-
return
|
|
68867
|
+
return size2;
|
|
67881
68868
|
}
|
|
67882
68869
|
const numPoints = this.getPathLength(path);
|
|
67883
68870
|
if (numPoints < 2) {
|
|
@@ -68685,34 +69672,34 @@ function isNestedRingClosed(simplePolygon) {
|
|
|
68685
69672
|
const p1 = simplePolygon[simplePolygon.length - 1];
|
|
68686
69673
|
return p02[0] === p1[0] && p02[1] === p1[1] && p02[2] === p1[2];
|
|
68687
69674
|
}
|
|
68688
|
-
function isFlatRingClosed(positions,
|
|
68689
|
-
for (let i2 = 0; i2 <
|
|
68690
|
-
if (positions[startIndex + i2] !== positions[endIndex -
|
|
69675
|
+
function isFlatRingClosed(positions, size2, startIndex, endIndex) {
|
|
69676
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
69677
|
+
if (positions[startIndex + i2] !== positions[endIndex - size2 + i2]) {
|
|
68691
69678
|
return false;
|
|
68692
69679
|
}
|
|
68693
69680
|
}
|
|
68694
69681
|
return true;
|
|
68695
69682
|
}
|
|
68696
|
-
function copyNestedRing(target, targetStartIndex, simplePolygon,
|
|
69683
|
+
function copyNestedRing(target, targetStartIndex, simplePolygon, size2, windingDirection) {
|
|
68697
69684
|
let targetIndex = targetStartIndex;
|
|
68698
69685
|
const len2 = simplePolygon.length;
|
|
68699
69686
|
for (let i2 = 0; i2 < len2; i2++) {
|
|
68700
|
-
for (let j = 0; j <
|
|
69687
|
+
for (let j = 0; j < size2; j++) {
|
|
68701
69688
|
target[targetIndex++] = simplePolygon[i2][j] || 0;
|
|
68702
69689
|
}
|
|
68703
69690
|
}
|
|
68704
69691
|
if (!isNestedRingClosed(simplePolygon)) {
|
|
68705
|
-
for (let j = 0; j <
|
|
69692
|
+
for (let j = 0; j < size2; j++) {
|
|
68706
69693
|
target[targetIndex++] = simplePolygon[0][j] || 0;
|
|
68707
69694
|
}
|
|
68708
69695
|
}
|
|
68709
69696
|
windingOptions.start = targetStartIndex;
|
|
68710
69697
|
windingOptions.end = targetIndex;
|
|
68711
|
-
windingOptions.size =
|
|
69698
|
+
windingOptions.size = size2;
|
|
68712
69699
|
modifyPolygonWindingDirection(target, windingDirection, windingOptions);
|
|
68713
69700
|
return targetIndex;
|
|
68714
69701
|
}
|
|
68715
|
-
function copyFlatRing(target, targetStartIndex, positions,
|
|
69702
|
+
function copyFlatRing(target, targetStartIndex, positions, size2, srcStartIndex = 0, srcEndIndex, windingDirection) {
|
|
68716
69703
|
srcEndIndex = srcEndIndex || positions.length;
|
|
68717
69704
|
const srcLength = srcEndIndex - srcStartIndex;
|
|
68718
69705
|
if (srcLength <= 0) {
|
|
@@ -68722,14 +69709,14 @@ function copyFlatRing(target, targetStartIndex, positions, size, srcStartIndex =
|
|
|
68722
69709
|
for (let i2 = 0; i2 < srcLength; i2++) {
|
|
68723
69710
|
target[targetIndex++] = positions[srcStartIndex + i2];
|
|
68724
69711
|
}
|
|
68725
|
-
if (!isFlatRingClosed(positions,
|
|
68726
|
-
for (let i2 = 0; i2 <
|
|
69712
|
+
if (!isFlatRingClosed(positions, size2, srcStartIndex, srcEndIndex)) {
|
|
69713
|
+
for (let i2 = 0; i2 < size2; i2++) {
|
|
68727
69714
|
target[targetIndex++] = positions[srcStartIndex + i2];
|
|
68728
69715
|
}
|
|
68729
69716
|
}
|
|
68730
69717
|
windingOptions.start = targetStartIndex;
|
|
68731
69718
|
windingOptions.end = targetIndex;
|
|
68732
|
-
windingOptions.size =
|
|
69719
|
+
windingOptions.size = size2;
|
|
68733
69720
|
modifyPolygonWindingDirection(target, windingDirection, windingOptions);
|
|
68734
69721
|
return targetIndex;
|
|
68735
69722
|
}
|
|
@@ -68860,11 +69847,11 @@ class PolygonTesselator extends Tesselator {
|
|
|
68860
69847
|
}
|
|
68861
69848
|
getGeometrySize(polygon2) {
|
|
68862
69849
|
if (isCut(polygon2)) {
|
|
68863
|
-
let
|
|
69850
|
+
let size2 = 0;
|
|
68864
69851
|
for (const subPolygon of polygon2) {
|
|
68865
|
-
|
|
69852
|
+
size2 += this.getGeometrySize(subPolygon);
|
|
68866
69853
|
}
|
|
68867
|
-
return
|
|
69854
|
+
return size2;
|
|
68868
69855
|
}
|
|
68869
69856
|
return getPositions(polygon2).length / this.positionSize;
|
|
68870
69857
|
}
|
|
@@ -69735,10 +70722,10 @@ function requireTinySdf() {
|
|
|
69735
70722
|
this.fontFamily = fontFamily || "sans-serif";
|
|
69736
70723
|
this.fontWeight = fontWeight || "normal";
|
|
69737
70724
|
this.radius = radius || 8;
|
|
69738
|
-
var
|
|
69739
|
-
var gridSize =
|
|
70725
|
+
var size2 = this.size = this.fontSize + this.buffer * 2;
|
|
70726
|
+
var gridSize = size2 + this.buffer * 2;
|
|
69740
70727
|
this.canvas = document.createElement("canvas");
|
|
69741
|
-
this.canvas.width = this.canvas.height =
|
|
70728
|
+
this.canvas.width = this.canvas.height = size2;
|
|
69742
70729
|
this.ctx = this.canvas.getContext("2d");
|
|
69743
70730
|
this.ctx.font = this.fontWeight + " " + this.fontSize + "px " + this.fontFamily;
|
|
69744
70731
|
this.ctx.textAlign = "left";
|
|
@@ -69749,7 +70736,7 @@ function requireTinySdf() {
|
|
|
69749
70736
|
this.z = new Float64Array(gridSize + 1);
|
|
69750
70737
|
this.v = new Uint16Array(gridSize);
|
|
69751
70738
|
this.useMetrics = this.ctx.measureText("A").actualBoundingBoxLeft !== void 0;
|
|
69752
|
-
this.middle = Math.round(
|
|
70739
|
+
this.middle = Math.round(size2 / 2 * (navigator.userAgent.indexOf("Gecko/") >= 0 ? 1.2 : 1));
|
|
69753
70740
|
}
|
|
69754
70741
|
function prepareGrids(imgData, width2, height2, glyphWidth, glyphHeight, gridOuter, gridInner) {
|
|
69755
70742
|
gridOuter.fill(INF, 0, width2 * height2);
|
|
@@ -70006,7 +70993,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70006
70993
|
const y = new Array(numCharacters);
|
|
70007
70994
|
const rowWidth = new Array(numCharacters);
|
|
70008
70995
|
const autoWrappingEnabled = (wordBreak === "break-word" || wordBreak === "break-all") && isFinite(maxWidth2) && maxWidth2 > 0;
|
|
70009
|
-
const
|
|
70996
|
+
const size2 = [0, 0];
|
|
70010
70997
|
const rowSize = [0, 0];
|
|
70011
70998
|
let rowOffsetTop = 0;
|
|
70012
70999
|
let lineStartIndex = 0;
|
|
@@ -70027,7 +71014,7 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70027
71014
|
rowWidth[j] = rowSize[0];
|
|
70028
71015
|
}
|
|
70029
71016
|
rowOffsetTop = rowOffsetTop + rowSize[1] * lineHeight;
|
|
70030
|
-
|
|
71017
|
+
size2[0] = Math.max(size2[0], rowSize[0]);
|
|
70031
71018
|
}
|
|
70032
71019
|
lineStartIndex = lineEndIndex;
|
|
70033
71020
|
}
|
|
@@ -70038,12 +71025,12 @@ function transformParagraph(paragraph, lineHeight, wordBreak, maxWidth2, iconMap
|
|
|
70038
71025
|
lineStartIndex++;
|
|
70039
71026
|
}
|
|
70040
71027
|
}
|
|
70041
|
-
|
|
71028
|
+
size2[1] = rowOffsetTop;
|
|
70042
71029
|
return {
|
|
70043
71030
|
x,
|
|
70044
71031
|
y,
|
|
70045
71032
|
rowWidth,
|
|
70046
|
-
size
|
|
71033
|
+
size: size2
|
|
70047
71034
|
};
|
|
70048
71035
|
}
|
|
70049
71036
|
function getTextFromBuffer({
|
|
@@ -71704,14 +72691,14 @@ class GPUGridAggregator {
|
|
|
71704
72691
|
}
|
|
71705
72692
|
static getCellData({
|
|
71706
72693
|
countsData,
|
|
71707
|
-
size = 1
|
|
72694
|
+
size: size2 = 1
|
|
71708
72695
|
}) {
|
|
71709
72696
|
const numCells = countsData.length / 4;
|
|
71710
|
-
const cellWeights = new Float32Array(numCells *
|
|
72697
|
+
const cellWeights = new Float32Array(numCells * size2);
|
|
71711
72698
|
const cellCounts = new Uint32Array(numCells);
|
|
71712
72699
|
for (let i2 = 0; i2 < numCells; i2++) {
|
|
71713
|
-
for (let sizeIndex = 0; sizeIndex <
|
|
71714
|
-
cellWeights[i2 *
|
|
72700
|
+
for (let sizeIndex = 0; sizeIndex < size2; sizeIndex++) {
|
|
72701
|
+
cellWeights[i2 * size2 + sizeIndex] = countsData[i2 * 4 + sizeIndex];
|
|
71715
72702
|
}
|
|
71716
72703
|
cellCounts[i2] = countsData[i2 * 4 + 3];
|
|
71717
72704
|
}
|
|
@@ -72692,7 +73679,7 @@ function pointsToGridHashing(props, aggregationParams) {
|
|
|
72692
73679
|
} = aggregationParams;
|
|
72693
73680
|
const positions = attributes.positions.value;
|
|
72694
73681
|
const {
|
|
72695
|
-
size
|
|
73682
|
+
size: size2
|
|
72696
73683
|
} = attributes.positions.getAccessor();
|
|
72697
73684
|
const boundingBox = aggregationParams.boundingBox || getPositionBoundingBox(attributes.positions, numInstances);
|
|
72698
73685
|
const offsets = aggregationParams.posOffset || [180, 90];
|
|
@@ -72717,9 +73704,9 @@ function pointsToGridHashing(props, aggregationParams) {
|
|
|
72717
73704
|
const position2 = new Array(3);
|
|
72718
73705
|
for (const pt of iterable) {
|
|
72719
73706
|
objectInfo.index++;
|
|
72720
|
-
position2[0] = positions[objectInfo.index *
|
|
72721
|
-
position2[1] = positions[objectInfo.index *
|
|
72722
|
-
position2[2] =
|
|
73707
|
+
position2[0] = positions[objectInfo.index * size2];
|
|
73708
|
+
position2[1] = positions[objectInfo.index * size2 + 1];
|
|
73709
|
+
position2[2] = size2 >= 3 ? positions[objectInfo.index * size2 + 2] : 0;
|
|
72723
73710
|
const [x, y] = projectPoints ? viewport.project(position2) : position2;
|
|
72724
73711
|
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
72725
73712
|
const yIndex = Math.floor((y + offsets[1]) / gridOffset.yOffset);
|
|
@@ -72769,7 +73756,7 @@ function getGridLayerDataFromGridHash({
|
|
|
72769
73756
|
function getPositionBoundingBox(positionAttribute, numInstance) {
|
|
72770
73757
|
const positions = positionAttribute.value;
|
|
72771
73758
|
const {
|
|
72772
|
-
size
|
|
73759
|
+
size: size2
|
|
72773
73760
|
} = positionAttribute.getAccessor();
|
|
72774
73761
|
let yMin = Infinity;
|
|
72775
73762
|
let yMax = -Infinity;
|
|
@@ -72778,8 +73765,8 @@ function getPositionBoundingBox(positionAttribute, numInstance) {
|
|
|
72778
73765
|
let y;
|
|
72779
73766
|
let x;
|
|
72780
73767
|
for (let i2 = 0; i2 < numInstance; i2++) {
|
|
72781
|
-
x = positions[i2 *
|
|
72782
|
-
y = positions[i2 *
|
|
73768
|
+
x = positions[i2 * size2];
|
|
73769
|
+
y = positions[i2 * size2 + 1];
|
|
72783
73770
|
if (Number.isFinite(x) && Number.isFinite(y)) {
|
|
72784
73771
|
yMin = y < yMin ? y : yMin;
|
|
72785
73772
|
yMax = y > yMax ? y : yMax;
|
|
@@ -73872,9 +74859,9 @@ function requireLong() {
|
|
|
73872
74859
|
var radixToPower = fromNumber(pow_dbl(radix, 8));
|
|
73873
74860
|
var result = ZERO2;
|
|
73874
74861
|
for (var i2 = 0; i2 < str.length; i2 += 8) {
|
|
73875
|
-
var
|
|
73876
|
-
if (
|
|
73877
|
-
var power = fromNumber(pow_dbl(radix,
|
|
74862
|
+
var size2 = Math.min(8, str.length - i2), value = parseInt(str.substring(i2, i2 + size2), radix);
|
|
74863
|
+
if (size2 < 8) {
|
|
74864
|
+
var power = fromNumber(pow_dbl(radix, size2));
|
|
73878
74865
|
result = result.mul(power).add(fromNumber(value));
|
|
73879
74866
|
} else {
|
|
73880
74867
|
result = result.mul(radixToPower);
|
|
@@ -76792,10 +77779,10 @@ var libh3 = function(libh32) {
|
|
|
76792
77779
|
function abortOnCannotGrowMemory(requestedSize) {
|
|
76793
77780
|
abort("OOM");
|
|
76794
77781
|
}
|
|
76795
|
-
function emscripten_realloc_buffer(
|
|
77782
|
+
function emscripten_realloc_buffer(size2) {
|
|
76796
77783
|
try {
|
|
76797
|
-
var newBuffer = new ArrayBuffer(
|
|
76798
|
-
if (newBuffer.byteLength !=
|
|
77784
|
+
var newBuffer = new ArrayBuffer(size2);
|
|
77785
|
+
if (newBuffer.byteLength != size2) {
|
|
76799
77786
|
return;
|
|
76800
77787
|
}
|
|
76801
77788
|
new Int8Array(newBuffer).set(HEAP8);
|
|
@@ -89729,8 +90716,8 @@ const ATTRIBUTE_COMPONENT_TYPE_TO_ARRAY = {
|
|
|
89729
90716
|
5125: Uint32Array,
|
|
89730
90717
|
5126: Float32Array
|
|
89731
90718
|
};
|
|
89732
|
-
function getAccessorTypeFromSize(
|
|
89733
|
-
const type = TYPES[
|
|
90719
|
+
function getAccessorTypeFromSize(size2) {
|
|
90720
|
+
const type = TYPES[size2 - 1];
|
|
89734
90721
|
return type || TYPES[0];
|
|
89735
90722
|
}
|
|
89736
90723
|
function getComponentTypeFromArray(typedArray) {
|
|
@@ -90147,23 +91134,23 @@ class GLTFScenegraph {
|
|
|
90147
91134
|
return attributeName;
|
|
90148
91135
|
}
|
|
90149
91136
|
}
|
|
90150
|
-
_getAccessorMinMax(buffer,
|
|
91137
|
+
_getAccessorMinMax(buffer, size2) {
|
|
90151
91138
|
const result = {
|
|
90152
91139
|
min: null,
|
|
90153
91140
|
max: null
|
|
90154
91141
|
};
|
|
90155
|
-
if (buffer.length <
|
|
91142
|
+
if (buffer.length < size2) {
|
|
90156
91143
|
return result;
|
|
90157
91144
|
}
|
|
90158
91145
|
result.min = [];
|
|
90159
91146
|
result.max = [];
|
|
90160
|
-
const initValues = buffer.subarray(0,
|
|
91147
|
+
const initValues = buffer.subarray(0, size2);
|
|
90161
91148
|
for (const value of initValues) {
|
|
90162
91149
|
result.min.push(value);
|
|
90163
91150
|
result.max.push(value);
|
|
90164
91151
|
}
|
|
90165
|
-
for (let index2 =
|
|
90166
|
-
for (let componentIndex = 0; componentIndex <
|
|
91152
|
+
for (let index2 = size2; index2 < buffer.length; index2 += size2) {
|
|
91153
|
+
for (let componentIndex = 0; componentIndex < size2; componentIndex++) {
|
|
90167
91154
|
result.min[0 + componentIndex] = Math.min(result.min[0 + componentIndex], buffer[index2 + componentIndex]);
|
|
90168
91155
|
result.max[0 + componentIndex] = Math.max(result.max[0 + componentIndex], buffer[index2 + componentIndex]);
|
|
90169
91156
|
}
|
|
@@ -90193,9 +91180,9 @@ const DECODERS = {
|
|
|
90193
91180
|
TRIANGLES: "meshopt_decodeIndexBuffer",
|
|
90194
91181
|
INDICES: "meshopt_decodeIndexSequence"
|
|
90195
91182
|
};
|
|
90196
|
-
async function meshoptDecodeGltfBuffer(target, count2,
|
|
91183
|
+
async function meshoptDecodeGltfBuffer(target, count2, size2, source, mode, filter2 = "NONE") {
|
|
90197
91184
|
const instance = await loadWasmInstance();
|
|
90198
|
-
decode$5(instance, instance.exports[DECODERS[mode]], target, count2,
|
|
91185
|
+
decode$5(instance, instance.exports[DECODERS[mode]], target, count2, size2, source, instance.exports[FILTERS[filter2 || "NONE"]]);
|
|
90199
91186
|
}
|
|
90200
91187
|
let wasmPromise;
|
|
90201
91188
|
async function loadWasmInstance() {
|
|
@@ -90226,18 +91213,18 @@ function unpack(data) {
|
|
|
90226
91213
|
}
|
|
90227
91214
|
return result.buffer.slice(0, write);
|
|
90228
91215
|
}
|
|
90229
|
-
function decode$5(instance, fun, target, count2,
|
|
91216
|
+
function decode$5(instance, fun, target, count2, size2, source, filter2) {
|
|
90230
91217
|
const sbrk = instance.exports.sbrk;
|
|
90231
91218
|
const count4 = count2 + 3 & -4;
|
|
90232
|
-
const tp = sbrk(count4 *
|
|
91219
|
+
const tp = sbrk(count4 * size2);
|
|
90233
91220
|
const sp = sbrk(source.length);
|
|
90234
91221
|
const heap = new Uint8Array(instance.exports.memory.buffer);
|
|
90235
91222
|
heap.set(source, sp);
|
|
90236
|
-
const res = fun(tp, count2,
|
|
91223
|
+
const res = fun(tp, count2, size2, sp, source.length);
|
|
90237
91224
|
if (res === 0 && filter2) {
|
|
90238
|
-
filter2(tp, count4,
|
|
91225
|
+
filter2(tp, count4, size2);
|
|
90239
91226
|
}
|
|
90240
|
-
target.set(heap.subarray(tp, tp + count2 *
|
|
91227
|
+
target.set(heap.subarray(tp, tp + count2 * size2));
|
|
90241
91228
|
sbrk(tp - sbrk(0));
|
|
90242
91229
|
if (res !== 0) {
|
|
90243
91230
|
throw new Error("Malformed buffer data: ".concat(res));
|
|
@@ -90919,11 +91906,11 @@ class DracoParser {
|
|
|
90919
91906
|
loaderAttribute.name = attributeName;
|
|
90920
91907
|
const {
|
|
90921
91908
|
value,
|
|
90922
|
-
size
|
|
91909
|
+
size: size2
|
|
90923
91910
|
} = this._getAttributeValues(dracoGeometry, loaderAttribute);
|
|
90924
91911
|
attributes[attributeName] = {
|
|
90925
91912
|
value,
|
|
90926
|
-
size,
|
|
91913
|
+
size: size2,
|
|
90927
91914
|
byteOffset: loaderAttribute.byte_offset,
|
|
90928
91915
|
byteStride: loaderAttribute.byte_stride,
|
|
90929
91916
|
normalized: loaderAttribute.normalized
|
|
@@ -91192,36 +92179,36 @@ function getGLTFAccessors(attributes) {
|
|
|
91192
92179
|
function getGLTFAccessor(attribute) {
|
|
91193
92180
|
const {
|
|
91194
92181
|
buffer,
|
|
91195
|
-
size,
|
|
92182
|
+
size: size2,
|
|
91196
92183
|
count: count2
|
|
91197
92184
|
} = getAccessorData(attribute);
|
|
91198
92185
|
const glTFAccessor = {
|
|
91199
92186
|
value: buffer,
|
|
91200
|
-
size,
|
|
92187
|
+
size: size2,
|
|
91201
92188
|
byteOffset: 0,
|
|
91202
92189
|
count: count2,
|
|
91203
|
-
type: getAccessorTypeFromSize(
|
|
92190
|
+
type: getAccessorTypeFromSize(size2),
|
|
91204
92191
|
componentType: getComponentTypeFromArray(buffer)
|
|
91205
92192
|
};
|
|
91206
92193
|
return glTFAccessor;
|
|
91207
92194
|
}
|
|
91208
92195
|
function getAccessorData(attribute) {
|
|
91209
92196
|
let buffer = attribute;
|
|
91210
|
-
let
|
|
92197
|
+
let size2 = 1;
|
|
91211
92198
|
let count2 = 0;
|
|
91212
92199
|
if (attribute && attribute.value) {
|
|
91213
92200
|
buffer = attribute.value;
|
|
91214
|
-
|
|
92201
|
+
size2 = attribute.size || 1;
|
|
91215
92202
|
}
|
|
91216
92203
|
if (buffer) {
|
|
91217
92204
|
if (!ArrayBuffer.isView(buffer)) {
|
|
91218
92205
|
buffer = toTypedArray(buffer, Float32Array);
|
|
91219
92206
|
}
|
|
91220
|
-
count2 = buffer.length /
|
|
92207
|
+
count2 = buffer.length / size2;
|
|
91221
92208
|
}
|
|
91222
92209
|
return {
|
|
91223
92210
|
buffer,
|
|
91224
|
-
size,
|
|
92211
|
+
size: size2,
|
|
91225
92212
|
count: count2
|
|
91226
92213
|
};
|
|
91227
92214
|
}
|
|
@@ -93464,8 +94451,8 @@ function getObbSize(halfAxes) {
|
|
|
93464
94451
|
const axeY = halfAxes.getColumn(1);
|
|
93465
94452
|
const axeZ = halfAxes.getColumn(2);
|
|
93466
94453
|
const farthestVertex = scratchVector$1.add(axeY).add(axeZ);
|
|
93467
|
-
const
|
|
93468
|
-
return
|
|
94454
|
+
const size2 = farthestVertex.len();
|
|
94455
|
+
return size2;
|
|
93469
94456
|
}
|
|
93470
94457
|
const TILE_CONTENT_STATE = {
|
|
93471
94458
|
UNLOADED: 0,
|
|
@@ -95466,15 +96453,15 @@ function createTypedArrayFromAccessor(tile3DAccessor, buffer, byteOffset, length
|
|
|
95466
96453
|
} = tile3DAccessor;
|
|
95467
96454
|
assert$c(tile3DAccessor.componentType);
|
|
95468
96455
|
const type = typeof componentType === "string" ? GLType.fromName(componentType) : componentType;
|
|
95469
|
-
const
|
|
96456
|
+
const size2 = COMPONENTS_PER_ATTRIBUTE[tile3DAccessor.type];
|
|
95470
96457
|
const unpacker = UNPACKER[tile3DAccessor.type];
|
|
95471
96458
|
const packer = PACKER[tile3DAccessor.type];
|
|
95472
96459
|
byteOffset += tile3DAccessor.byteOffset;
|
|
95473
|
-
const values2 = GLType.createTypedArray(type, buffer, byteOffset,
|
|
96460
|
+
const values2 = GLType.createTypedArray(type, buffer, byteOffset, size2 * length2);
|
|
95474
96461
|
return {
|
|
95475
96462
|
values: values2,
|
|
95476
96463
|
type,
|
|
95477
|
-
size,
|
|
96464
|
+
size: size2,
|
|
95478
96465
|
unpacker,
|
|
95479
96466
|
packer
|
|
95480
96467
|
};
|
|
@@ -113864,8 +114851,8 @@ function fitExtent(projection2, extent2, object2) {
|
|
|
113864
114851
|
if (clip2 != null) projection2.clipExtent(clip2);
|
|
113865
114852
|
return projection2.scale(k * 150).translate([x, y]);
|
|
113866
114853
|
}
|
|
113867
|
-
function fitSize(projection2,
|
|
113868
|
-
return fitExtent(projection2, [[0, 0],
|
|
114854
|
+
function fitSize(projection2, size2, object2) {
|
|
114855
|
+
return fitExtent(projection2, [[0, 0], size2], object2);
|
|
113869
114856
|
}
|
|
113870
114857
|
var maxDepth = 16, cosMinDistance = cos(30 * radians);
|
|
113871
114858
|
function resample(project2, delta2) {
|
|
@@ -113991,8 +114978,8 @@ function projectionMutator(projectAt) {
|
|
|
113991
114978
|
projection2.fitExtent = function(extent2, object2) {
|
|
113992
114979
|
return fitExtent(projection2, extent2, object2);
|
|
113993
114980
|
};
|
|
113994
|
-
projection2.fitSize = function(
|
|
113995
|
-
return fitSize(projection2,
|
|
114981
|
+
projection2.fitSize = function(size2, object2) {
|
|
114982
|
+
return fitSize(projection2, size2, object2);
|
|
113996
114983
|
};
|
|
113997
114984
|
function recenter() {
|
|
113998
114985
|
projectRotate = compose(rotate2 = rotateRadians(deltaLambda, deltaPhi, deltaGamma), project2);
|
|
@@ -114113,8 +115100,8 @@ function albersUsa() {
|
|
|
114113
115100
|
albersUsa2.fitExtent = function(extent2, object2) {
|
|
114114
115101
|
return fitExtent(albersUsa2, extent2, object2);
|
|
114115
115102
|
};
|
|
114116
|
-
albersUsa2.fitSize = function(
|
|
114117
|
-
return fitSize(albersUsa2,
|
|
115103
|
+
albersUsa2.fitSize = function(size2, object2) {
|
|
115104
|
+
return fitSize(albersUsa2, size2, object2);
|
|
114118
115105
|
};
|
|
114119
115106
|
function reset() {
|
|
114120
115107
|
cache2 = cacheStream = null;
|
|
@@ -114277,8 +115264,8 @@ function identity() {
|
|
|
114277
115264
|
fitExtent: function(extent2, object2) {
|
|
114278
115265
|
return fitExtent(projection2, extent2, object2);
|
|
114279
115266
|
},
|
|
114280
|
-
fitSize: function(
|
|
114281
|
-
return fitSize(projection2,
|
|
115267
|
+
fitSize: function(size2, object2) {
|
|
115268
|
+
return fitSize(projection2, size2, object2);
|
|
114282
115269
|
}
|
|
114283
115270
|
};
|
|
114284
115271
|
}
|
|
@@ -114896,18 +115883,18 @@ function requirePolygonClipping_umd() {
|
|
|
114896
115883
|
if (presort === void 0) {
|
|
114897
115884
|
presort = false;
|
|
114898
115885
|
}
|
|
114899
|
-
var
|
|
115886
|
+
var size2 = keys2.length;
|
|
114900
115887
|
var comparator2 = this._comparator;
|
|
114901
|
-
if (presort) sort(keys2, values2, 0,
|
|
115888
|
+
if (presort) sort(keys2, values2, 0, size2 - 1, comparator2);
|
|
114902
115889
|
if (this._root === null) {
|
|
114903
|
-
this._root = loadRecursive(keys2, values2, 0,
|
|
114904
|
-
this._size =
|
|
115890
|
+
this._root = loadRecursive(keys2, values2, 0, size2);
|
|
115891
|
+
this._size = size2;
|
|
114905
115892
|
} else {
|
|
114906
115893
|
var mergedList = mergeLists(this.toList(), createList(keys2, values2), comparator2);
|
|
114907
|
-
|
|
115894
|
+
size2 = this._size + size2;
|
|
114908
115895
|
this._root = sortedListToBST({
|
|
114909
115896
|
head: mergedList
|
|
114910
|
-
}, 0,
|
|
115897
|
+
}, 0, size2);
|
|
114911
115898
|
}
|
|
114912
115899
|
return this;
|
|
114913
115900
|
};
|
|
@@ -114957,9 +115944,9 @@ function requirePolygonClipping_umd() {
|
|
|
114957
115944
|
}()
|
|
114958
115945
|
);
|
|
114959
115946
|
function loadRecursive(keys2, values2, start, end) {
|
|
114960
|
-
var
|
|
114961
|
-
if (
|
|
114962
|
-
var middle = start + Math.floor(
|
|
115947
|
+
var size2 = end - start;
|
|
115948
|
+
if (size2 > 0) {
|
|
115949
|
+
var middle = start + Math.floor(size2 / 2);
|
|
114963
115950
|
var key = keys2[middle];
|
|
114964
115951
|
var data = values2[middle];
|
|
114965
115952
|
var node2 = new Node2(key, data);
|
|
@@ -114999,9 +115986,9 @@ function requirePolygonClipping_umd() {
|
|
|
114999
115986
|
return head.next;
|
|
115000
115987
|
}
|
|
115001
115988
|
function sortedListToBST(list, start, end) {
|
|
115002
|
-
var
|
|
115003
|
-
if (
|
|
115004
|
-
var middle = start + Math.floor(
|
|
115989
|
+
var size2 = end - start;
|
|
115990
|
+
if (size2 > 0) {
|
|
115991
|
+
var middle = start + Math.floor(size2 / 2);
|
|
115005
115992
|
var left = sortedListToBST(list, start, middle);
|
|
115006
115993
|
var root2 = list.head;
|
|
115007
115994
|
root2.left = left;
|
|
@@ -126063,19 +127050,19 @@ function requireExtrudeMode() {
|
|
|
126063
127050
|
if (editHandle) {
|
|
126064
127051
|
var featureIndex = editHandle.properties.featureIndex;
|
|
126065
127052
|
var positionIndexes = editHandle.properties.positionIndexes;
|
|
126066
|
-
var
|
|
126067
|
-
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes,
|
|
126068
|
-
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
127053
|
+
var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
|
|
127054
|
+
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
|
|
127055
|
+
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
|
|
126069
127056
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126070
127057
|
if (p1 && p2) {
|
|
126071
127058
|
var _generatePointsParall = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall2 = _slicedToArray(_generatePointsParall, 2), p3 = _generatePointsParall2[0], p4 = _generatePointsParall2[1];
|
|
126072
|
-
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes,
|
|
127059
|
+
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
|
|
126073
127060
|
props.onEdit({
|
|
126074
127061
|
updatedData,
|
|
126075
127062
|
editType: "extruding",
|
|
126076
127063
|
editContext: {
|
|
126077
127064
|
featureIndexes: [featureIndex],
|
|
126078
|
-
positionIndexes: this.nextPositionIndexes(positionIndexes,
|
|
127065
|
+
positionIndexes: this.nextPositionIndexes(positionIndexes, size2),
|
|
126079
127066
|
position: p3
|
|
126080
127067
|
}
|
|
126081
127068
|
});
|
|
@@ -126090,15 +127077,15 @@ function requireExtrudeMode() {
|
|
|
126090
127077
|
var editHandle = (0, _utils.getPickedIntermediateEditHandle)(event.picks);
|
|
126091
127078
|
if (selectedFeatureIndexes.length && editHandle) {
|
|
126092
127079
|
var _editHandle$propertie = editHandle.properties, positionIndexes = _editHandle$propertie.positionIndexes, featureIndex = _editHandle$propertie.featureIndex;
|
|
126093
|
-
var
|
|
126094
|
-
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
127080
|
+
var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
|
|
127081
|
+
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
|
|
126095
127082
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126096
127083
|
if (p1 && p2) {
|
|
126097
127084
|
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data);
|
|
126098
|
-
if (!this.isOrthogonal(positionIndexes, featureIndex,
|
|
127085
|
+
if (!this.isOrthogonal(positionIndexes, featureIndex, size2, props.data)) {
|
|
126099
127086
|
updatedData = updatedData.addPosition(featureIndex, positionIndexes, p2);
|
|
126100
127087
|
}
|
|
126101
|
-
if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes,
|
|
127088
|
+
if (!this.isOrthogonal(this.prevPositionIndexes(positionIndexes, size2), featureIndex, size2, props.data)) {
|
|
126102
127089
|
updatedData = updatedData.addPosition(featureIndex, positionIndexes, p1);
|
|
126103
127090
|
this.isPointAdded = true;
|
|
126104
127091
|
}
|
|
@@ -126122,13 +127109,13 @@ function requireExtrudeMode() {
|
|
|
126122
127109
|
if (selectedFeatureIndexes.length && editHandle) {
|
|
126123
127110
|
var featureIndex = editHandle.properties.featureIndex;
|
|
126124
127111
|
var positionIndexes = editHandle.properties.positionIndexes;
|
|
126125
|
-
var
|
|
126126
|
-
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes,
|
|
126127
|
-
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
127112
|
+
var size2 = this.coordinatesSize(positionIndexes, featureIndex, props.data);
|
|
127113
|
+
positionIndexes = this.isPointAdded ? this.nextPositionIndexes(positionIndexes, size2) : positionIndexes;
|
|
127114
|
+
var p1 = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, props.data);
|
|
126128
127115
|
var p2 = this.getPointForPositionIndexes(positionIndexes, featureIndex, props.data);
|
|
126129
127116
|
if (p1 && p2) {
|
|
126130
127117
|
var _generatePointsParall3 = (0, _utils.generatePointsParallelToLinePoints)(p1, p2, event.mapCoords), _generatePointsParall4 = _slicedToArray(_generatePointsParall3, 2), p3 = _generatePointsParall4[0], p4 = _generatePointsParall4[1];
|
|
126131
|
-
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes,
|
|
127118
|
+
var updatedData = new _immutableFeatureCollection.ImmutableFeatureCollection(props.data).replacePosition(featureIndex, this.prevPositionIndexes(positionIndexes, size2), p4).replacePosition(featureIndex, positionIndexes, p3).getObject();
|
|
126132
127119
|
props.onEdit({
|
|
126133
127120
|
updatedData,
|
|
126134
127121
|
editType: "extruded",
|
|
@@ -126146,23 +127133,23 @@ function requireExtrudeMode() {
|
|
|
126146
127133
|
key: "coordinatesSize",
|
|
126147
127134
|
value: function coordinatesSize(positionIndexes, featureIndex, _ref) {
|
|
126148
127135
|
var features = _ref.features;
|
|
126149
|
-
var
|
|
127136
|
+
var size2 = 0;
|
|
126150
127137
|
if (Array.isArray(positionIndexes)) {
|
|
126151
127138
|
var feature2 = features[featureIndex];
|
|
126152
127139
|
var coordinates2 = feature2.geometry.coordinates;
|
|
126153
127140
|
if (positionIndexes.length === 3) {
|
|
126154
127141
|
var _positionIndexes = _slicedToArray(positionIndexes, 2), a2 = _positionIndexes[0], b = _positionIndexes[1];
|
|
126155
127142
|
if (coordinates2.length && coordinates2[a2].length) {
|
|
126156
|
-
|
|
127143
|
+
size2 = coordinates2[a2][b].length;
|
|
126157
127144
|
}
|
|
126158
127145
|
} else {
|
|
126159
127146
|
var _positionIndexes2 = _slicedToArray(positionIndexes, 1), _b2 = _positionIndexes2[0];
|
|
126160
127147
|
if (coordinates2.length && coordinates2[_b2].length) {
|
|
126161
|
-
|
|
127148
|
+
size2 = coordinates2[_b2].length;
|
|
126162
127149
|
}
|
|
126163
127150
|
}
|
|
126164
127151
|
}
|
|
126165
|
-
return
|
|
127152
|
+
return size2;
|
|
126166
127153
|
}
|
|
126167
127154
|
}, {
|
|
126168
127155
|
key: "getBearing",
|
|
@@ -126175,15 +127162,15 @@ function requireExtrudeMode() {
|
|
|
126175
127162
|
}
|
|
126176
127163
|
}, {
|
|
126177
127164
|
key: "isOrthogonal",
|
|
126178
|
-
value: function isOrthogonal(positionIndexes, featureIndex,
|
|
127165
|
+
value: function isOrthogonal(positionIndexes, featureIndex, size2, features) {
|
|
126179
127166
|
if (!Array.isArray(positionIndexes)) {
|
|
126180
127167
|
return false;
|
|
126181
127168
|
}
|
|
126182
|
-
if (positionIndexes[positionIndexes.length - 1] ===
|
|
127169
|
+
if (positionIndexes[positionIndexes.length - 1] === size2 - 1) {
|
|
126183
127170
|
positionIndexes[positionIndexes.length - 1] = 0;
|
|
126184
127171
|
}
|
|
126185
|
-
var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes,
|
|
126186
|
-
var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes,
|
|
127172
|
+
var prevPoint = this.getPointForPositionIndexes(this.prevPositionIndexes(positionIndexes, size2), featureIndex, features);
|
|
127173
|
+
var nextPoint = this.getPointForPositionIndexes(this.nextPositionIndexes(positionIndexes, size2), featureIndex, features);
|
|
126187
127174
|
var currentPoint = this.getPointForPositionIndexes(positionIndexes, featureIndex, features);
|
|
126188
127175
|
var prevAngle = this.getBearing(currentPoint, prevPoint);
|
|
126189
127176
|
var nextAngle = this.getBearing(currentPoint, nextPoint);
|
|
@@ -126191,25 +127178,25 @@ function requireExtrudeMode() {
|
|
|
126191
127178
|
}
|
|
126192
127179
|
}, {
|
|
126193
127180
|
key: "nextPositionIndexes",
|
|
126194
|
-
value: function nextPositionIndexes(positionIndexes,
|
|
127181
|
+
value: function nextPositionIndexes(positionIndexes, size2) {
|
|
126195
127182
|
if (!Array.isArray(positionIndexes)) {
|
|
126196
127183
|
return [];
|
|
126197
127184
|
}
|
|
126198
127185
|
var next2 = _toConsumableArray(positionIndexes);
|
|
126199
127186
|
if (next2.length) {
|
|
126200
|
-
next2[next2.length - 1] = next2[next2.length - 1] ===
|
|
127187
|
+
next2[next2.length - 1] = next2[next2.length - 1] === size2 - 1 ? 0 : next2[next2.length - 1] + 1;
|
|
126201
127188
|
}
|
|
126202
127189
|
return next2;
|
|
126203
127190
|
}
|
|
126204
127191
|
}, {
|
|
126205
127192
|
key: "prevPositionIndexes",
|
|
126206
|
-
value: function prevPositionIndexes(positionIndexes,
|
|
127193
|
+
value: function prevPositionIndexes(positionIndexes, size2) {
|
|
126207
127194
|
if (!Array.isArray(positionIndexes)) {
|
|
126208
127195
|
return [];
|
|
126209
127196
|
}
|
|
126210
127197
|
var prev2 = _toConsumableArray(positionIndexes);
|
|
126211
127198
|
if (prev2.length) {
|
|
126212
|
-
prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ?
|
|
127199
|
+
prev2[prev2.length - 1] = prev2[prev2.length - 1] === 0 ? size2 - 2 : prev2[prev2.length - 1] - 1;
|
|
126213
127200
|
}
|
|
126214
127201
|
return prev2;
|
|
126215
127202
|
}
|
|
@@ -138179,22 +139166,22 @@ function addDecoder(cases, importFn) {
|
|
|
138179
139166
|
}
|
|
138180
139167
|
cases.forEach((c) => registry$1.set(c, importFn));
|
|
138181
139168
|
}
|
|
138182
|
-
addDecoder([void 0, 1], () => import("./raw-
|
|
138183
|
-
addDecoder(5, () => import("./lzw-
|
|
139169
|
+
addDecoder([void 0, 1], () => import("./raw-M2AeXGn-.js").then((m) => m.default));
|
|
139170
|
+
addDecoder(5, () => import("./lzw-SmfMfK-N.js").then((m) => m.default));
|
|
138184
139171
|
addDecoder(6, () => {
|
|
138185
139172
|
throw new Error("old style JPEG compression is not supported.");
|
|
138186
139173
|
});
|
|
138187
|
-
addDecoder(7, () => import("./jpeg-
|
|
138188
|
-
addDecoder([8, 32946], () => import("./deflate-
|
|
138189
|
-
addDecoder(32773, () => import("./packbits-
|
|
139174
|
+
addDecoder(7, () => import("./jpeg-MuaEoA29.js").then((m) => m.default));
|
|
139175
|
+
addDecoder([8, 32946], () => import("./deflate-CafSYkE8.js").then((m) => m.default));
|
|
139176
|
+
addDecoder(32773, () => import("./packbits-DM8_km8s.js").then((m) => m.default));
|
|
138190
139177
|
addDecoder(
|
|
138191
139178
|
34887,
|
|
138192
|
-
() => import("./lerc-
|
|
139179
|
+
() => import("./lerc-Crl3Us1z.js").then(async (m) => {
|
|
138193
139180
|
await m.zstd.init();
|
|
138194
139181
|
return m;
|
|
138195
139182
|
}).then((m) => m.default)
|
|
138196
139183
|
);
|
|
138197
|
-
addDecoder(50001, () => import("./webimage-
|
|
139184
|
+
addDecoder(50001, () => import("./webimage-BH-xh1eM.js").then((m) => m.default));
|
|
138198
139185
|
function decodeRowAcc(row, stride) {
|
|
138199
139186
|
let length2 = row.length - stride;
|
|
138200
139187
|
let offset2 = 0;
|
|
@@ -139424,10 +140411,10 @@ const putShortMSB = (s2, b) => {
|
|
|
139424
140411
|
s2.pending_buf[s2.pending++] = b >>> 8 & 255;
|
|
139425
140412
|
s2.pending_buf[s2.pending++] = b & 255;
|
|
139426
140413
|
};
|
|
139427
|
-
const read_buf = (strm, buf, start,
|
|
140414
|
+
const read_buf = (strm, buf, start, size2) => {
|
|
139428
140415
|
let len2 = strm.avail_in;
|
|
139429
|
-
if (len2 >
|
|
139430
|
-
len2 =
|
|
140416
|
+
if (len2 > size2) {
|
|
140417
|
+
len2 = size2;
|
|
139431
140418
|
}
|
|
139432
140419
|
if (len2 === 0) {
|
|
139433
140420
|
return 0;
|
|
@@ -145950,9 +146937,9 @@ const SI_PREFIXES = [
|
|
|
145950
146937
|
{ symbol: "z", exponent: -21 },
|
|
145951
146938
|
{ symbol: "y", exponent: -24 }
|
|
145952
146939
|
];
|
|
145953
|
-
function sizeToMeters(
|
|
146940
|
+
function sizeToMeters(size2, unit2) {
|
|
145954
146941
|
if (!unit2 || unit2 === "m") {
|
|
145955
|
-
return
|
|
146942
|
+
return size2;
|
|
145956
146943
|
}
|
|
145957
146944
|
if (unit2.length > 1) {
|
|
145958
146945
|
let unitPrefix = unit2.substring(0, unit2.length - 1);
|
|
@@ -145961,7 +146948,7 @@ function sizeToMeters(size, unit2) {
|
|
|
145961
146948
|
}
|
|
145962
146949
|
const unitObj = SI_PREFIXES.find((p) => p.symbol === unitPrefix);
|
|
145963
146950
|
if (unitObj) {
|
|
145964
|
-
return
|
|
146951
|
+
return size2 * 10 ** unitObj.exponent;
|
|
145965
146952
|
}
|
|
145966
146953
|
}
|
|
145967
146954
|
throw new Error("Received unknown unit");
|
|
@@ -146865,7 +147852,7 @@ const defaultProps$2$1 = {
|
|
|
146865
147852
|
};
|
|
146866
147853
|
const ScaleBarLayer = class extends CompositeLayer {
|
|
146867
147854
|
renderLayers() {
|
|
146868
|
-
const { id, unit: unit2, size, position: position2, viewState, length: length2, snap } = this.props;
|
|
147855
|
+
const { id, unit: unit2, size: size2, position: position2, viewState, length: length2, snap } = this.props;
|
|
146869
147856
|
const boundingBox = makeBoundingBox(viewState);
|
|
146870
147857
|
const { zoom } = viewState;
|
|
146871
147858
|
const viewLength = boundingBox[2][0] - boundingBox[0][0];
|
|
@@ -146875,10 +147862,10 @@ const ScaleBarLayer = class extends CompositeLayer {
|
|
|
146875
147862
|
(boundingBox[2][1] - boundingBox[0][1]) * 7e-3
|
|
146876
147863
|
);
|
|
146877
147864
|
let adjustedBarLength = barLength;
|
|
146878
|
-
let displayNumber = (barLength *
|
|
147865
|
+
let displayNumber = (barLength * size2).toPrecision(5);
|
|
146879
147866
|
let displayUnit = unit2;
|
|
146880
147867
|
if (snap) {
|
|
146881
|
-
const meterSize = sizeToMeters(
|
|
147868
|
+
const meterSize = sizeToMeters(size2, unit2);
|
|
146882
147869
|
const numUnits = barLength * meterSize;
|
|
146883
147870
|
const [snappedOrigUnits, snappedNewUnits, snappedUnitPrefix] = snapValue(numUnits);
|
|
146884
147871
|
adjustedBarLength = snappedOrigUnits / meterSize;
|
|
@@ -151943,7 +152930,7 @@ const Heatmap = forwardRef((props, deckRef) => {
|
|
|
151943
152930
|
}
|
|
151944
152931
|
const newCellOrdering = !cellColors || cellColors.size === 0 ? obsIndex : Array.from(cellColors.keys());
|
|
151945
152932
|
const oldCellOrdering = transpose2 ? axisTopLabels : axisLeftLabels;
|
|
151946
|
-
if (!isEqual$
|
|
152933
|
+
if (!isEqual$2(oldCellOrdering, newCellOrdering)) {
|
|
151947
152934
|
if (transpose2) {
|
|
151948
152935
|
setAxisTopLabels(newCellOrdering);
|
|
151949
152936
|
} else {
|