@vitessce/statistical-plots 3.5.2 → 3.5.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-9412420e.js → deflate-69817aa2.js} +1 -1
- package/dist/{index-5a8190d9.js → index-00d0a4a2.js} +1009 -1105
- package/dist/index.js +1 -1
- package/dist/{jpeg-c60720b8.js → jpeg-89e89436.js} +1 -1
- package/dist/{lerc-922b46fe.js → lerc-f5f67eb4.js} +1 -1
- package/dist/{lzw-401bb3ee.js → lzw-202c1994.js} +1 -1
- package/dist/{packbits-3219f1f5.js → packbits-4038eb16.js} +1 -1
- package/dist/{raw-ee5f13d0.js → raw-1068ab16.js} +1 -1
- package/dist/{webimage-9f8ff63a.js → webimage-e7e86b49.js} +1 -1
- package/dist-tsc/CellSetExpressionPlotSubscriber.d.ts.map +1 -1
- package/dist-tsc/CellSetExpressionPlotSubscriber.js +9 -4
- package/package.json +7 -7
- package/src/CellSetExpressionPlotSubscriber.js +13 -3
@@ -1,6 +1,6 @@
|
|
1
1
|
import * as React from "react";
|
2
2
|
import React__default, { useContext, useState, useRef, useCallback, useEffect, useMemo, Suspense } from "react";
|
3
|
-
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordination, useGridItemSize, useFeatureSelection, useFeatureLabelsData, useObsFeatureMatrixIndices, useObsSetsData, useSampleSetsData, useSampleEdgesData, useReady, useUrls, TitleInfo, useObsFeatureMatrixData } from "@vitessce/vit-s";
|
3
|
+
import { usePlotOptionsStyles, OptionsContainer, OptionSelect, useLoaders, useCoordination, useGridItemSize, useFeatureSelection, useFeatureLabelsData, useExpandedFeatureLabelsMap, useObsFeatureMatrixIndices, useObsSetsData, useSampleSetsData, useSampleEdgesData, useReady, useUrls, TitleInfo, useObsFeatureMatrixData } from "@vitessce/vit-s";
|
4
4
|
import * as ReactDOM from "react-dom";
|
5
5
|
import ReactDOM__default from "react-dom";
|
6
6
|
function _mergeNamespaces(n2, m2) {
|
@@ -958,7 +958,8 @@ const ViewType$1 = {
|
|
958
958
|
FEATURE_VALUE_HISTOGRAM: "featureValueHistogram",
|
959
959
|
DOT_PLOT: "dotPlot",
|
960
960
|
FEATURE_BAR_PLOT: "featureBarPlot",
|
961
|
-
BIOMARKER_SELECT: "biomarkerSelect"
|
961
|
+
BIOMARKER_SELECT: "biomarkerSelect",
|
962
|
+
LINK_CONTROLLER: "linkController"
|
962
963
|
};
|
963
964
|
const DataType$2 = {
|
964
965
|
OBS_LABELS: "obsLabels",
|
@@ -1654,6 +1655,7 @@ const COMPONENT_COORDINATION_TYPES = {
|
|
1654
1655
|
CoordinationType$1.OBS_COLOR_ENCODING,
|
1655
1656
|
CoordinationType$1.ADDITIONAL_OBS_SETS
|
1656
1657
|
],
|
1658
|
+
[ViewType$1.LINK_CONTROLLER]: [],
|
1657
1659
|
[ViewType$1.BIOMARKER_SELECT]: [
|
1658
1660
|
CoordinationType$1.FEATURE_SELECTION,
|
1659
1661
|
CoordinationType$1.SAMPLE_SET_SELECTION
|
@@ -2023,6 +2025,12 @@ function capitalize$2(word) {
|
|
2023
2025
|
function pluralize(word, count2 = null) {
|
2024
2026
|
return plur(word, count2);
|
2025
2027
|
}
|
2028
|
+
function cleanFeatureId(featureName) {
|
2029
|
+
if (featureName.startsWith("ENSG")) {
|
2030
|
+
return featureName.split(".")[0];
|
2031
|
+
}
|
2032
|
+
return featureName;
|
2033
|
+
}
|
2026
2034
|
function getNextScope(prevScopes) {
|
2027
2035
|
const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
2028
2036
|
const nextCharIndices = [0];
|
@@ -19239,16 +19247,16 @@ function _extends$2() {
|
|
19239
19247
|
};
|
19240
19248
|
return _extends$2.apply(this, arguments);
|
19241
19249
|
}
|
19242
|
-
function _typeof$
|
19250
|
+
function _typeof$w(obj) {
|
19243
19251
|
"@babel/helpers - typeof";
|
19244
|
-
return _typeof$
|
19252
|
+
return _typeof$w = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
19245
19253
|
return typeof obj2;
|
19246
19254
|
} : function(obj2) {
|
19247
19255
|
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
19248
|
-
}, _typeof$
|
19256
|
+
}, _typeof$w(obj);
|
19249
19257
|
}
|
19250
19258
|
function isPlainObject$1(item) {
|
19251
|
-
return item && _typeof$
|
19259
|
+
return item && _typeof$w(item) === "object" && item.constructor === Object;
|
19252
19260
|
}
|
19253
19261
|
function deepmerge(target2, source2) {
|
19254
19262
|
var options = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
@@ -20045,12 +20053,12 @@ function elementTypeAcceptingRef(props, propName, componentName, location, propF
|
|
20045
20053
|
}
|
20046
20054
|
const elementTypeAcceptingRef$1 = chainPropTypes(propTypesExports.elementType, elementTypeAcceptingRef);
|
20047
20055
|
function _toPrimitive(input, hint2) {
|
20048
|
-
if (_typeof$
|
20056
|
+
if (_typeof$w(input) !== "object" || input === null)
|
20049
20057
|
return input;
|
20050
20058
|
var prim = input[Symbol.toPrimitive];
|
20051
20059
|
if (prim !== void 0) {
|
20052
20060
|
var res = prim.call(input, hint2 || "default");
|
20053
|
-
if (_typeof$
|
20061
|
+
if (_typeof$w(res) !== "object")
|
20054
20062
|
return res;
|
20055
20063
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
20056
20064
|
}
|
@@ -20058,9 +20066,9 @@ function _toPrimitive(input, hint2) {
|
|
20058
20066
|
}
|
20059
20067
|
function _toPropertyKey(arg) {
|
20060
20068
|
var key2 = _toPrimitive(arg, "string");
|
20061
|
-
return _typeof$
|
20069
|
+
return _typeof$w(key2) === "symbol" ? key2 : String(key2);
|
20062
20070
|
}
|
20063
|
-
function _defineProperty$
|
20071
|
+
function _defineProperty$h(obj, key2, value2) {
|
20064
20072
|
key2 = _toPropertyKey(key2);
|
20065
20073
|
if (key2 in obj) {
|
20066
20074
|
Object.defineProperty(obj, key2, {
|
@@ -20076,7 +20084,7 @@ function _defineProperty$i(obj, key2, value2) {
|
|
20076
20084
|
}
|
20077
20085
|
var specialProperty = "exact-prop: ";
|
20078
20086
|
function exactProp(propTypes2) {
|
20079
|
-
return _extends$2({}, propTypes2, _defineProperty$
|
20087
|
+
return _extends$2({}, propTypes2, _defineProperty$h({}, specialProperty, function(props) {
|
20080
20088
|
var unsupportedProps = Object.keys(props).filter(function(prop) {
|
20081
20089
|
return !propTypes2.hasOwnProperty(prop);
|
20082
20090
|
});
|
@@ -20307,7 +20315,7 @@ function getDisplayName(Component2) {
|
|
20307
20315
|
if (typeof Component2 === "function") {
|
20308
20316
|
return getFunctionComponentName(Component2, "Component");
|
20309
20317
|
}
|
20310
|
-
if (_typeof$
|
20318
|
+
if (_typeof$w(Component2) === "object") {
|
20311
20319
|
switch (Component2.$$typeof) {
|
20312
20320
|
case reactIsExports.ForwardRef:
|
20313
20321
|
return getWrappedName(Component2, Component2.render, "ForwardRef");
|
@@ -20458,20 +20466,7 @@ function lighten(color2, coefficient) {
|
|
20458
20466
|
}
|
20459
20467
|
return recomposeColor(color2);
|
20460
20468
|
}
|
20461
|
-
function
|
20462
|
-
if (key2 in obj) {
|
20463
|
-
Object.defineProperty(obj, key2, {
|
20464
|
-
value: value2,
|
20465
|
-
enumerable: true,
|
20466
|
-
configurable: true,
|
20467
|
-
writable: true
|
20468
|
-
});
|
20469
|
-
} else {
|
20470
|
-
obj[key2] = value2;
|
20471
|
-
}
|
20472
|
-
return obj;
|
20473
|
-
}
|
20474
|
-
function _objectWithoutPropertiesLoose$1(source2, excluded) {
|
20469
|
+
function _objectWithoutPropertiesLoose(source2, excluded) {
|
20475
20470
|
if (source2 == null)
|
20476
20471
|
return {};
|
20477
20472
|
var target2 = {};
|
@@ -20485,10 +20480,10 @@ function _objectWithoutPropertiesLoose$1(source2, excluded) {
|
|
20485
20480
|
}
|
20486
20481
|
return target2;
|
20487
20482
|
}
|
20488
|
-
function _objectWithoutProperties
|
20483
|
+
function _objectWithoutProperties(source2, excluded) {
|
20489
20484
|
if (source2 == null)
|
20490
20485
|
return {};
|
20491
|
-
var target2 = _objectWithoutPropertiesLoose
|
20486
|
+
var target2 = _objectWithoutPropertiesLoose(source2, excluded);
|
20492
20487
|
var key2, i2;
|
20493
20488
|
if (Object.getOwnPropertySymbols) {
|
20494
20489
|
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
@@ -20503,20 +20498,6 @@ function _objectWithoutProperties$1(source2, excluded) {
|
|
20503
20498
|
}
|
20504
20499
|
return target2;
|
20505
20500
|
}
|
20506
|
-
function _extends$1() {
|
20507
|
-
_extends$1 = Object.assign ? Object.assign.bind() : function(target2) {
|
20508
|
-
for (var i2 = 1; i2 < arguments.length; i2++) {
|
20509
|
-
var source2 = arguments[i2];
|
20510
|
-
for (var key2 in source2) {
|
20511
|
-
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
20512
|
-
target2[key2] = source2[key2];
|
20513
|
-
}
|
20514
|
-
}
|
20515
|
-
}
|
20516
|
-
return target2;
|
20517
|
-
};
|
20518
|
-
return _extends$1.apply(this, arguments);
|
20519
|
-
}
|
20520
20501
|
var keys$5 = ["xs", "sm", "md", "lg", "xl"];
|
20521
20502
|
function createBreakpoints(breakpoints) {
|
20522
20503
|
var _breakpoints$values = breakpoints.values, values2 = _breakpoints$values === void 0 ? {
|
@@ -20525,7 +20506,7 @@ function createBreakpoints(breakpoints) {
|
|
20525
20506
|
md: 960,
|
20526
20507
|
lg: 1280,
|
20527
20508
|
xl: 1920
|
20528
|
-
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties
|
20509
|
+
} : _breakpoints$values, _breakpoints$unit = breakpoints.unit, unit2 = _breakpoints$unit === void 0 ? "px" : _breakpoints$unit, _breakpoints$step = breakpoints.step, step = _breakpoints$step === void 0 ? 5 : _breakpoints$step, other = _objectWithoutProperties(breakpoints, ["values", "unit", "step"]);
|
20529
20510
|
function up(key2) {
|
20530
20511
|
var value2 = typeof values2[key2] === "number" ? values2[key2] : key2;
|
20531
20512
|
return "@media (min-width:".concat(value2).concat(unit2, ")");
|
@@ -20559,7 +20540,7 @@ function createBreakpoints(breakpoints) {
|
|
20559
20540
|
}
|
20560
20541
|
return values2[key2];
|
20561
20542
|
}
|
20562
|
-
return _extends$
|
20543
|
+
return _extends$2({
|
20563
20544
|
keys: keys$5,
|
20564
20545
|
values: values2,
|
20565
20546
|
up,
|
@@ -20571,14 +20552,14 @@ function createBreakpoints(breakpoints) {
|
|
20571
20552
|
}
|
20572
20553
|
function createMixins(breakpoints, spacing, mixins) {
|
20573
20554
|
var _toolbar;
|
20574
|
-
return _extends$
|
20555
|
+
return _extends$2({
|
20575
20556
|
gutters: function gutters() {
|
20576
20557
|
var styles18 = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
20577
20558
|
console.warn(["Material-UI: theme.mixins.gutters() is deprecated.", "You can use the source of the mixin directly:", "\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n"));
|
20578
|
-
return _extends$
|
20559
|
+
return _extends$2({
|
20579
20560
|
paddingLeft: spacing(2),
|
20580
20561
|
paddingRight: spacing(2)
|
20581
|
-
}, styles18, _defineProperty$h({}, breakpoints.up("sm"), _extends$
|
20562
|
+
}, styles18, _defineProperty$h({}, breakpoints.up("sm"), _extends$2({
|
20582
20563
|
paddingLeft: spacing(3),
|
20583
20564
|
paddingRight: spacing(3)
|
20584
20565
|
}, styles18[breakpoints.up("sm")])));
|
@@ -20697,7 +20678,7 @@ function createPalette(palette) {
|
|
20697
20678
|
light: green$1[300],
|
20698
20679
|
main: green$1[500],
|
20699
20680
|
dark: green$1[700]
|
20700
|
-
} : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties
|
20681
|
+
} : _palette$success, _palette$type = palette.type, type2 = _palette$type === void 0 ? "light" : _palette$type, _palette$contrastThre = palette.contrastThreshold, contrastThreshold = _palette$contrastThre === void 0 ? 3 : _palette$contrastThre, _palette$tonalOffset = palette.tonalOffset, tonalOffset = _palette$tonalOffset === void 0 ? 0.2 : _palette$tonalOffset, other = _objectWithoutProperties(palette, ["primary", "secondary", "error", "warning", "info", "success", "type", "contrastThreshold", "tonalOffset"]);
|
20701
20682
|
function getContrastText(background2) {
|
20702
20683
|
var contrastText = getContrastRatio(background2, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;
|
20703
20684
|
{
|
@@ -20712,7 +20693,7 @@ function createPalette(palette) {
|
|
20712
20693
|
var mainShade = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 500;
|
20713
20694
|
var lightShade = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 300;
|
20714
20695
|
var darkShade = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 700;
|
20715
|
-
color2 = _extends$
|
20696
|
+
color2 = _extends$2({}, color2);
|
20716
20697
|
if (!color2.main && color2[mainShade]) {
|
20717
20698
|
color2.main = color2[mainShade];
|
20718
20699
|
}
|
@@ -20738,7 +20719,7 @@ function createPalette(palette) {
|
|
20738
20719
|
console.error("Material-UI: The palette type `".concat(type2, "` is not supported."));
|
20739
20720
|
}
|
20740
20721
|
}
|
20741
|
-
var paletteOutput = deepmerge(_extends$
|
20722
|
+
var paletteOutput = deepmerge(_extends$2({
|
20742
20723
|
// A collection of common colors.
|
20743
20724
|
common: common$3,
|
20744
20725
|
// The palette type, can be light or dark.
|
@@ -20789,7 +20770,7 @@ var caseAllCaps = {
|
|
20789
20770
|
};
|
20790
20771
|
var defaultFontFamily = '"Roboto", "Helvetica", "Arial", sans-serif';
|
20791
20772
|
function createTypography(palette, typography) {
|
20792
|
-
var _ref3 = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref3.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref3.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref3.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref3.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref3.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref3.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref3.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref3.allVariants, pxToRem2 = _ref3.pxToRem, other = _objectWithoutProperties
|
20773
|
+
var _ref3 = typeof typography === "function" ? typography(palette) : typography, _ref$fontFamily = _ref3.fontFamily, fontFamily2 = _ref$fontFamily === void 0 ? defaultFontFamily : _ref$fontFamily, _ref$fontSize = _ref3.fontSize, fontSize2 = _ref$fontSize === void 0 ? 14 : _ref$fontSize, _ref$fontWeightLight = _ref3.fontWeightLight, fontWeightLight = _ref$fontWeightLight === void 0 ? 300 : _ref$fontWeightLight, _ref$fontWeightRegula = _ref3.fontWeightRegular, fontWeightRegular = _ref$fontWeightRegula === void 0 ? 400 : _ref$fontWeightRegula, _ref$fontWeightMedium = _ref3.fontWeightMedium, fontWeightMedium = _ref$fontWeightMedium === void 0 ? 500 : _ref$fontWeightMedium, _ref$fontWeightBold = _ref3.fontWeightBold, fontWeightBold = _ref$fontWeightBold === void 0 ? 700 : _ref$fontWeightBold, _ref$htmlFontSize = _ref3.htmlFontSize, htmlFontSize = _ref$htmlFontSize === void 0 ? 16 : _ref$htmlFontSize, allVariants = _ref3.allVariants, pxToRem2 = _ref3.pxToRem, other = _objectWithoutProperties(_ref3, ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"]);
|
20793
20774
|
{
|
20794
20775
|
if (typeof fontSize2 !== "number") {
|
20795
20776
|
console.error("Material-UI: `fontSize` is required to be a number.");
|
@@ -20803,7 +20784,7 @@ function createTypography(palette, typography) {
|
|
20803
20784
|
return "".concat(size / htmlFontSize * coef, "rem");
|
20804
20785
|
};
|
20805
20786
|
var buildVariant = function buildVariant2(fontWeight, size, lineHeight2, letterSpacing, casing) {
|
20806
|
-
return _extends$
|
20787
|
+
return _extends$2({
|
20807
20788
|
fontFamily: fontFamily2,
|
20808
20789
|
fontWeight,
|
20809
20790
|
fontSize: pxToRem(size),
|
@@ -20828,7 +20809,7 @@ function createTypography(palette, typography) {
|
|
20828
20809
|
caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),
|
20829
20810
|
overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps)
|
20830
20811
|
};
|
20831
|
-
return deepmerge(_extends$
|
20812
|
+
return deepmerge(_extends$2({
|
20832
20813
|
htmlFontSize,
|
20833
20814
|
pxToRem,
|
20834
20815
|
round: roundWithDeprecationWarning,
|
@@ -20858,39 +20839,75 @@ var shape$2 = {
|
|
20858
20839
|
const shape$3 = shape$2;
|
20859
20840
|
var responsivePropType = _pt.oneOfType([_pt.number, _pt.string, _pt.object, _pt.array]);
|
20860
20841
|
const responsivePropType$1 = responsivePropType;
|
20861
|
-
function _arrayLikeToArray$
|
20842
|
+
function _arrayLikeToArray$l(arr, len2) {
|
20862
20843
|
if (len2 == null || len2 > arr.length)
|
20863
20844
|
len2 = arr.length;
|
20864
20845
|
for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++)
|
20865
20846
|
arr2[i2] = arr[i2];
|
20866
20847
|
return arr2;
|
20867
20848
|
}
|
20868
|
-
function _arrayWithoutHoles$
|
20849
|
+
function _arrayWithoutHoles$i(arr) {
|
20869
20850
|
if (Array.isArray(arr))
|
20870
|
-
return _arrayLikeToArray$
|
20851
|
+
return _arrayLikeToArray$l(arr);
|
20871
20852
|
}
|
20872
|
-
function _iterableToArray$
|
20853
|
+
function _iterableToArray$i(iter) {
|
20873
20854
|
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
20874
20855
|
return Array.from(iter);
|
20875
20856
|
}
|
20876
|
-
function _unsupportedIterableToArray$
|
20857
|
+
function _unsupportedIterableToArray$l(o2, minLen) {
|
20877
20858
|
if (!o2)
|
20878
20859
|
return;
|
20879
20860
|
if (typeof o2 === "string")
|
20880
|
-
return _arrayLikeToArray$
|
20861
|
+
return _arrayLikeToArray$l(o2, minLen);
|
20881
20862
|
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
20882
20863
|
if (n2 === "Object" && o2.constructor)
|
20883
20864
|
n2 = o2.constructor.name;
|
20884
20865
|
if (n2 === "Map" || n2 === "Set")
|
20885
20866
|
return Array.from(o2);
|
20886
20867
|
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
20887
|
-
return _arrayLikeToArray$
|
20868
|
+
return _arrayLikeToArray$l(o2, minLen);
|
20888
20869
|
}
|
20889
|
-
function _nonIterableSpread$
|
20870
|
+
function _nonIterableSpread$i() {
|
20890
20871
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
20891
20872
|
}
|
20892
|
-
function _toConsumableArray$
|
20893
|
-
return _arrayWithoutHoles$
|
20873
|
+
function _toConsumableArray$i(arr) {
|
20874
|
+
return _arrayWithoutHoles$i(arr) || _iterableToArray$i(arr) || _unsupportedIterableToArray$l(arr) || _nonIterableSpread$i();
|
20875
|
+
}
|
20876
|
+
function _arrayWithHoles$6(arr) {
|
20877
|
+
if (Array.isArray(arr))
|
20878
|
+
return arr;
|
20879
|
+
}
|
20880
|
+
function _iterableToArrayLimit$6(arr, i2) {
|
20881
|
+
var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
|
20882
|
+
if (null != _i) {
|
20883
|
+
var _s, _e, _x, _r, _arr = [], _n = true, _d = false;
|
20884
|
+
try {
|
20885
|
+
if (_x = (_i = _i.call(arr)).next, 0 === i2) {
|
20886
|
+
if (Object(_i) !== _i)
|
20887
|
+
return;
|
20888
|
+
_n = false;
|
20889
|
+
} else
|
20890
|
+
for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i2); _n = true)
|
20891
|
+
;
|
20892
|
+
} catch (err2) {
|
20893
|
+
_d = true, _e = err2;
|
20894
|
+
} finally {
|
20895
|
+
try {
|
20896
|
+
if (!_n && null != _i["return"] && (_r = _i["return"](), Object(_r) !== _r))
|
20897
|
+
return;
|
20898
|
+
} finally {
|
20899
|
+
if (_d)
|
20900
|
+
throw _e;
|
20901
|
+
}
|
20902
|
+
}
|
20903
|
+
return _arr;
|
20904
|
+
}
|
20905
|
+
}
|
20906
|
+
function _nonIterableRest$6() {
|
20907
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
20908
|
+
}
|
20909
|
+
function _slicedToArray$6(arr, i2) {
|
20910
|
+
return _arrayWithHoles$6(arr) || _iterableToArrayLimit$6(arr, i2) || _unsupportedIterableToArray$l(arr, i2) || _nonIterableRest$6();
|
20894
20911
|
}
|
20895
20912
|
var spacingKeys = ["m", "mt", "mr", "mb", "ml", "mx", "my", "p", "pt", "pr", "pb", "pl", "px", "py", "margin", "marginTop", "marginRight", "marginBottom", "marginLeft", "marginX", "marginY", "padding", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "paddingX", "paddingY"];
|
20896
20913
|
function createUnarySpacing(theme) {
|
@@ -21008,7 +21025,7 @@ const transitions = {
|
|
21008
21025
|
create: function create() {
|
21009
21026
|
var props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["all"];
|
21010
21027
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
21011
|
-
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties
|
21028
|
+
var _options$duration = options.duration, durationOption = _options$duration === void 0 ? duration.standard : _options$duration, _options$easing = options.easing, easingOption = _options$easing === void 0 ? easing.easeInOut : _options$easing, _options$delay = options.delay, delay = _options$delay === void 0 ? 0 : _options$delay, other = _objectWithoutProperties(options, ["duration", "easing", "delay"]);
|
21012
21029
|
{
|
21013
21030
|
var isString2 = function isString3(value2) {
|
21014
21031
|
return typeof value2 === "string";
|
@@ -21056,7 +21073,7 @@ var zIndex = {
|
|
21056
21073
|
const zIndex$1 = zIndex;
|
21057
21074
|
function createTheme() {
|
21058
21075
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
21059
|
-
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties
|
21076
|
+
var _options$breakpoints = options.breakpoints, breakpointsInput = _options$breakpoints === void 0 ? {} : _options$breakpoints, _options$mixins = options.mixins, mixinsInput = _options$mixins === void 0 ? {} : _options$mixins, _options$palette = options.palette, paletteInput = _options$palette === void 0 ? {} : _options$palette, spacingInput = options.spacing, _options$typography = options.typography, typographyInput = _options$typography === void 0 ? {} : _options$typography, other = _objectWithoutProperties(options, ["breakpoints", "mixins", "palette", "spacing", "typography"]);
|
21060
21077
|
var palette = createPalette(paletteInput);
|
21061
21078
|
var breakpoints = createBreakpoints(breakpointsInput);
|
21062
21079
|
var spacing = createSpacing(spacingInput);
|
@@ -21175,13 +21192,13 @@ function warning(condition, message) {
|
|
21175
21192
|
}
|
21176
21193
|
}
|
21177
21194
|
}
|
21178
|
-
var _typeof$
|
21195
|
+
var _typeof$v = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function(obj) {
|
21179
21196
|
return typeof obj;
|
21180
21197
|
} : function(obj) {
|
21181
21198
|
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
21182
21199
|
};
|
21183
|
-
var isBrowser$4 = (typeof window === "undefined" ? "undefined" : _typeof$
|
21184
|
-
function _defineProperties$
|
21200
|
+
var isBrowser$4 = (typeof window === "undefined" ? "undefined" : _typeof$v(window)) === "object" && (typeof document === "undefined" ? "undefined" : _typeof$v(document)) === "object" && document.nodeType === 9;
|
21201
|
+
function _defineProperties$w(target2, props) {
|
21185
21202
|
for (var i2 = 0; i2 < props.length; i2++) {
|
21186
21203
|
var descriptor = props[i2];
|
21187
21204
|
descriptor.enumerable = descriptor.enumerable || false;
|
@@ -21191,11 +21208,11 @@ function _defineProperties$x(target2, props) {
|
|
21191
21208
|
Object.defineProperty(target2, _toPropertyKey(descriptor.key), descriptor);
|
21192
21209
|
}
|
21193
21210
|
}
|
21194
|
-
function _createClass$
|
21211
|
+
function _createClass$w(Constructor, protoProps, staticProps) {
|
21195
21212
|
if (protoProps)
|
21196
|
-
_defineProperties$
|
21213
|
+
_defineProperties$w(Constructor.prototype, protoProps);
|
21197
21214
|
if (staticProps)
|
21198
|
-
_defineProperties$
|
21215
|
+
_defineProperties$w(Constructor, staticProps);
|
21199
21216
|
Object.defineProperty(Constructor, "prototype", {
|
21200
21217
|
writable: false
|
21201
21218
|
});
|
@@ -21219,20 +21236,6 @@ function _assertThisInitialized$v(self2) {
|
|
21219
21236
|
}
|
21220
21237
|
return self2;
|
21221
21238
|
}
|
21222
|
-
function _objectWithoutPropertiesLoose(source2, excluded) {
|
21223
|
-
if (source2 == null)
|
21224
|
-
return {};
|
21225
|
-
var target2 = {};
|
21226
|
-
var sourceKeys = Object.keys(source2);
|
21227
|
-
var key2, i2;
|
21228
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
21229
|
-
key2 = sourceKeys[i2];
|
21230
|
-
if (excluded.indexOf(key2) >= 0)
|
21231
|
-
continue;
|
21232
|
-
target2[key2] = source2[key2];
|
21233
|
-
}
|
21234
|
-
return target2;
|
21235
|
-
}
|
21236
21239
|
var plainObjectConstrurctor = {}.constructor;
|
21237
21240
|
function cloneStyle(style2) {
|
21238
21241
|
if (style2 == null || typeof style2 !== "object")
|
@@ -21463,7 +21466,7 @@ var StyleRule = /* @__PURE__ */ function(_BaseStyleRule) {
|
|
21463
21466
|
}) : options;
|
21464
21467
|
return toCss(this.selectorText, this.style, opts2);
|
21465
21468
|
};
|
21466
|
-
_createClass$
|
21469
|
+
_createClass$w(StyleRule2, [{
|
21467
21470
|
key: "selector",
|
21468
21471
|
set: function set3(selector2) {
|
21469
21472
|
if (selector2 === this.selectorText)
|
@@ -22198,7 +22201,7 @@ var SheetsRegistry = /* @__PURE__ */ function() {
|
|
22198
22201
|
}
|
22199
22202
|
return css2;
|
22200
22203
|
};
|
22201
|
-
_createClass$
|
22204
|
+
_createClass$w(SheetsRegistry2, [{
|
22202
22205
|
key: "index",
|
22203
22206
|
/**
|
22204
22207
|
* Current highest index number.
|
@@ -22707,6 +22710,20 @@ var functionPlugin = function functionPlugin2() {
|
|
22707
22710
|
};
|
22708
22711
|
};
|
22709
22712
|
const functions = functionPlugin;
|
22713
|
+
function _extends$1() {
|
22714
|
+
_extends$1 = Object.assign ? Object.assign.bind() : function(target2) {
|
22715
|
+
for (var i2 = 1; i2 < arguments.length; i2++) {
|
22716
|
+
var source2 = arguments[i2];
|
22717
|
+
for (var key2 in source2) {
|
22718
|
+
if (Object.prototype.hasOwnProperty.call(source2, key2)) {
|
22719
|
+
target2[key2] = source2[key2];
|
22720
|
+
}
|
22721
|
+
}
|
22722
|
+
}
|
22723
|
+
return target2;
|
22724
|
+
};
|
22725
|
+
return _extends$1.apply(this, arguments);
|
22726
|
+
}
|
22710
22727
|
var at = "@global";
|
22711
22728
|
var atPrefix = "@global ";
|
22712
22729
|
var GlobalContainerRule = /* @__PURE__ */ function() {
|
@@ -23455,7 +23472,7 @@ var propertyDetectors = plugins.filter(function(p) {
|
|
23455
23472
|
var noPrefill = plugins.filter(function(p) {
|
23456
23473
|
return p.noPrefill;
|
23457
23474
|
}).reduce(function(a2, p) {
|
23458
|
-
a2.push.apply(a2, _toConsumableArray$
|
23475
|
+
a2.push.apply(a2, _toConsumableArray$i(p.noPrefill));
|
23459
23476
|
return a2;
|
23460
23477
|
}, []);
|
23461
23478
|
var el;
|
@@ -23631,24 +23648,6 @@ function jssPreset() {
|
|
23631
23648
|
]
|
23632
23649
|
};
|
23633
23650
|
}
|
23634
|
-
function _objectWithoutProperties(source2, excluded) {
|
23635
|
-
if (source2 == null)
|
23636
|
-
return {};
|
23637
|
-
var target2 = _objectWithoutPropertiesLoose(source2, excluded);
|
23638
|
-
var key2, i2;
|
23639
|
-
if (Object.getOwnPropertySymbols) {
|
23640
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source2);
|
23641
|
-
for (i2 = 0; i2 < sourceSymbolKeys.length; i2++) {
|
23642
|
-
key2 = sourceSymbolKeys[i2];
|
23643
|
-
if (excluded.indexOf(key2) >= 0)
|
23644
|
-
continue;
|
23645
|
-
if (!Object.prototype.propertyIsEnumerable.call(source2, key2))
|
23646
|
-
continue;
|
23647
|
-
target2[key2] = source2[key2];
|
23648
|
-
}
|
23649
|
-
}
|
23650
|
-
return target2;
|
23651
|
-
}
|
23652
23651
|
function mergeClasses() {
|
23653
23652
|
var options = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
23654
23653
|
var baseClasses = options.baseClasses, newClasses = options.newClasses, Component2 = options.Component;
|
@@ -23832,7 +23831,7 @@ const noopTheme$1 = noopTheme;
|
|
23832
23831
|
function getStylesCreator(stylesOrCreator) {
|
23833
23832
|
var themingEnabled = typeof stylesOrCreator === "function";
|
23834
23833
|
{
|
23835
|
-
if (_typeof$
|
23834
|
+
if (_typeof$w(stylesOrCreator) !== "object" && !themingEnabled) {
|
23836
23835
|
console.error(["Material-UI: The `styles` argument provided is invalid.", "You need to provide a function generating the styles or a styles object."].join("\n"));
|
23837
23836
|
}
|
23838
23837
|
}
|
@@ -24056,6 +24055,11 @@ function makeStyles$1(stylesOrCreator) {
|
|
24056
24055
|
};
|
24057
24056
|
return useStyles2;
|
24058
24057
|
}
|
24058
|
+
function _classCallCheck$x(instance, Constructor) {
|
24059
|
+
if (!(instance instanceof Constructor)) {
|
24060
|
+
throw new TypeError("Cannot call a class as a function");
|
24061
|
+
}
|
24062
|
+
}
|
24059
24063
|
var reactIs = reactIsExports$1;
|
24060
24064
|
var REACT_STATICS = {
|
24061
24065
|
childContextTypes: true,
|
@@ -24219,7 +24223,7 @@ var defaultTheme = createTheme();
|
|
24219
24223
|
const defaultTheme$1 = defaultTheme;
|
24220
24224
|
function makeStyles(stylesOrCreator) {
|
24221
24225
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
24222
|
-
return makeStyles$1(stylesOrCreator, _extends$
|
24226
|
+
return makeStyles$1(stylesOrCreator, _extends$2({
|
24223
24227
|
defaultTheme: defaultTheme$1
|
24224
24228
|
}, options));
|
24225
24229
|
}
|
@@ -24231,7 +24235,7 @@ function useTheme() {
|
|
24231
24235
|
return theme;
|
24232
24236
|
}
|
24233
24237
|
function withStyles2(stylesOrCreator, options) {
|
24234
|
-
return withStylesWithoutDefault(stylesOrCreator, _extends$
|
24238
|
+
return withStylesWithoutDefault(stylesOrCreator, _extends$2({
|
24235
24239
|
defaultTheme: defaultTheme$1
|
24236
24240
|
}, options));
|
24237
24241
|
}
|
@@ -24314,8 +24318,8 @@ var styles$p = function styles(theme) {
|
|
24314
24318
|
};
|
24315
24319
|
};
|
24316
24320
|
var SvgIcon = /* @__PURE__ */ React.forwardRef(function SvgIcon2(props, ref2) {
|
24317
|
-
var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize2 = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties
|
24318
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
24321
|
+
var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "inherit" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "svg" : _props$component, _props$fontSize = props.fontSize, fontSize2 = _props$fontSize === void 0 ? "medium" : _props$fontSize, htmlColor = props.htmlColor, titleAccess = props.titleAccess, _props$viewBox = props.viewBox, viewBox = _props$viewBox === void 0 ? "0 0 24 24" : _props$viewBox, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "fontSize", "htmlColor", "titleAccess", "viewBox"]);
|
24322
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
24319
24323
|
className: clsx(classes.root, className, color2 !== "inherit" && classes["color".concat(capitalize$1(color2))], fontSize2 !== "default" && fontSize2 !== "medium" && classes["fontSize".concat(capitalize$1(fontSize2))]),
|
24320
24324
|
focusable: "false",
|
24321
24325
|
viewBox,
|
@@ -24393,7 +24397,7 @@ const SvgIcon$1 = withStyles2(styles$p, {
|
|
24393
24397
|
})(SvgIcon);
|
24394
24398
|
function createSvgIcon(path2, displayName) {
|
24395
24399
|
var Component2 = function Component3(props, ref2) {
|
24396
|
-
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$
|
24400
|
+
return /* @__PURE__ */ React__default.createElement(SvgIcon$1, _extends$2({
|
24397
24401
|
ref: ref2
|
24398
24402
|
}, props), path2);
|
24399
24403
|
};
|
@@ -24580,69 +24584,6 @@ function useIsFocusVisible() {
|
|
24580
24584
|
ref: ref2
|
24581
24585
|
};
|
24582
24586
|
}
|
24583
|
-
function _arrayWithHoles$6(arr) {
|
24584
|
-
if (Array.isArray(arr))
|
24585
|
-
return arr;
|
24586
|
-
}
|
24587
|
-
function _iterableToArray$i(iter) {
|
24588
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null)
|
24589
|
-
return Array.from(iter);
|
24590
|
-
}
|
24591
|
-
function _arrayLikeToArray$l(arr, len2) {
|
24592
|
-
if (len2 == null || len2 > arr.length)
|
24593
|
-
len2 = arr.length;
|
24594
|
-
for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++) {
|
24595
|
-
arr2[i2] = arr[i2];
|
24596
|
-
}
|
24597
|
-
return arr2;
|
24598
|
-
}
|
24599
|
-
function _unsupportedIterableToArray$l(o2, minLen) {
|
24600
|
-
if (!o2)
|
24601
|
-
return;
|
24602
|
-
if (typeof o2 === "string")
|
24603
|
-
return _arrayLikeToArray$l(o2, minLen);
|
24604
|
-
var n2 = Object.prototype.toString.call(o2).slice(8, -1);
|
24605
|
-
if (n2 === "Object" && o2.constructor)
|
24606
|
-
n2 = o2.constructor.name;
|
24607
|
-
if (n2 === "Map" || n2 === "Set")
|
24608
|
-
return Array.from(o2);
|
24609
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2))
|
24610
|
-
return _arrayLikeToArray$l(o2, minLen);
|
24611
|
-
}
|
24612
|
-
function _nonIterableRest$6() {
|
24613
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
24614
|
-
}
|
24615
|
-
function _iterableToArrayLimit$6(arr, i2) {
|
24616
|
-
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
24617
|
-
if (_i == null)
|
24618
|
-
return;
|
24619
|
-
var _arr = [];
|
24620
|
-
var _n = true;
|
24621
|
-
var _d = false;
|
24622
|
-
var _s, _e;
|
24623
|
-
try {
|
24624
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
24625
|
-
_arr.push(_s.value);
|
24626
|
-
if (i2 && _arr.length === i2)
|
24627
|
-
break;
|
24628
|
-
}
|
24629
|
-
} catch (err2) {
|
24630
|
-
_d = true;
|
24631
|
-
_e = err2;
|
24632
|
-
} finally {
|
24633
|
-
try {
|
24634
|
-
if (!_n && _i["return"] != null)
|
24635
|
-
_i["return"]();
|
24636
|
-
} finally {
|
24637
|
-
if (_d)
|
24638
|
-
throw _e;
|
24639
|
-
}
|
24640
|
-
}
|
24641
|
-
return _arr;
|
24642
|
-
}
|
24643
|
-
function _slicedToArray$6(arr, i2) {
|
24644
|
-
return _arrayWithHoles$6(arr) || _iterableToArrayLimit$6(arr, i2) || _unsupportedIterableToArray$l(arr, i2) || _nonIterableRest$6();
|
24645
|
-
}
|
24646
24587
|
const config$1 = {
|
24647
24588
|
disabled: false
|
24648
24589
|
};
|
@@ -25109,7 +25050,7 @@ var styles$o = function styles2(theme) {
|
|
25109
25050
|
boxShadow: shadow2
|
25110
25051
|
};
|
25111
25052
|
});
|
25112
|
-
return _extends$
|
25053
|
+
return _extends$2({
|
25113
25054
|
/* Styles applied to the root element. */
|
25114
25055
|
root: {
|
25115
25056
|
backgroundColor: theme.palette.background.paper,
|
@@ -25127,8 +25068,8 @@ var styles$o = function styles2(theme) {
|
|
25127
25068
|
}, elevations);
|
25128
25069
|
};
|
25129
25070
|
var Paper = /* @__PURE__ */ React.forwardRef(function Paper2(props, ref2) {
|
25130
|
-
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square2 = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties
|
25131
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
25071
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$square = props.square, square2 = _props$square === void 0 ? false : _props$square, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 1 : _props$elevation, _props$variant = props.variant, variant = _props$variant === void 0 ? "elevation" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "component", "square", "elevation", "variant"]);
|
25072
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
25132
25073
|
className: clsx(classes.root, className, variant === "outlined" ? classes.outlined : classes["elevation".concat(elevation)], !square2 && classes.rounded),
|
25133
25074
|
ref: ref2
|
25134
25075
|
}, other));
|
@@ -25182,16 +25123,6 @@ Paper.propTypes = {
|
|
25182
25123
|
const Paper$1 = withStyles2(styles$o, {
|
25183
25124
|
name: "MuiPaper"
|
25184
25125
|
})(Paper);
|
25185
|
-
function _arrayWithoutHoles$i(arr) {
|
25186
|
-
if (Array.isArray(arr))
|
25187
|
-
return _arrayLikeToArray$l(arr);
|
25188
|
-
}
|
25189
|
-
function _nonIterableSpread$i() {
|
25190
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
25191
|
-
}
|
25192
|
-
function _toConsumableArray$i(arr) {
|
25193
|
-
return _arrayWithoutHoles$i(arr) || _iterableToArray$i(arr) || _unsupportedIterableToArray$l(arr) || _nonIterableSpread$i();
|
25194
|
-
}
|
25195
25126
|
var FormControlContext = React.createContext();
|
25196
25127
|
{
|
25197
25128
|
FormControlContext.displayName = "FormControlContext";
|
@@ -25275,31 +25206,6 @@ Portal.propTypes = {
|
|
25275
25206
|
Portal["propTypes"] = exactProp(Portal.propTypes);
|
25276
25207
|
}
|
25277
25208
|
const Portal$1 = Portal;
|
25278
|
-
function _classCallCheck$x(instance, Constructor) {
|
25279
|
-
if (!(instance instanceof Constructor)) {
|
25280
|
-
throw new TypeError("Cannot call a class as a function");
|
25281
|
-
}
|
25282
|
-
}
|
25283
|
-
function _defineProperties$w(target2, props) {
|
25284
|
-
for (var i2 = 0; i2 < props.length; i2++) {
|
25285
|
-
var descriptor = props[i2];
|
25286
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
25287
|
-
descriptor.configurable = true;
|
25288
|
-
if ("value" in descriptor)
|
25289
|
-
descriptor.writable = true;
|
25290
|
-
Object.defineProperty(target2, descriptor.key, descriptor);
|
25291
|
-
}
|
25292
|
-
}
|
25293
|
-
function _createClass$w(Constructor, protoProps, staticProps) {
|
25294
|
-
if (protoProps)
|
25295
|
-
_defineProperties$w(Constructor.prototype, protoProps);
|
25296
|
-
if (staticProps)
|
25297
|
-
_defineProperties$w(Constructor, staticProps);
|
25298
|
-
Object.defineProperty(Constructor, "prototype", {
|
25299
|
-
writable: false
|
25300
|
-
});
|
25301
|
-
return Constructor;
|
25302
|
-
}
|
25303
25209
|
function getScrollbarSize() {
|
25304
25210
|
var scrollDiv = document.createElement("div");
|
25305
25211
|
scrollDiv.style.width = "99px";
|
@@ -25647,12 +25553,12 @@ var styles$n = {
|
|
25647
25553
|
}
|
25648
25554
|
};
|
25649
25555
|
var SimpleBackdrop = /* @__PURE__ */ React.forwardRef(function SimpleBackdrop2(props, ref2) {
|
25650
|
-
var _props$invisible = props.invisible, invisible = _props$invisible === void 0 ? false : _props$invisible, open = props.open, other = _objectWithoutProperties
|
25651
|
-
return open ? /* @__PURE__ */ React.createElement("div", _extends$
|
25556
|
+
var _props$invisible = props.invisible, invisible = _props$invisible === void 0 ? false : _props$invisible, open = props.open, other = _objectWithoutProperties(props, ["invisible", "open"]);
|
25557
|
+
return open ? /* @__PURE__ */ React.createElement("div", _extends$2({
|
25652
25558
|
"aria-hidden": true,
|
25653
25559
|
ref: ref2
|
25654
25560
|
}, other, {
|
25655
|
-
style: _extends$
|
25561
|
+
style: _extends$2({}, styles$n.root, invisible ? styles$n.invisible : {}, other.style)
|
25656
25562
|
})) : null;
|
25657
25563
|
});
|
25658
25564
|
SimpleBackdrop.propTypes = {
|
@@ -25696,10 +25602,10 @@ var Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref2) {
|
|
25696
25602
|
var theme = useTheme$1();
|
25697
25603
|
var props = getThemeProps({
|
25698
25604
|
name: "MuiModal",
|
25699
|
-
props: _extends$
|
25605
|
+
props: _extends$2({}, inProps),
|
25700
25606
|
theme
|
25701
25607
|
});
|
25702
|
-
var _props$BackdropCompon = props.BackdropComponent, BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop$1 : _props$BackdropCompon, BackdropProps = props.BackdropProps, children2 = props.children, _props$closeAfterTran = props.closeAfterTransition, closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, container = props.container, _props$disableAutoFoc = props.disableAutoFocus, disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$disableBackdro = props.disableBackdropClick, disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, _props$disableEnforce = props.disableEnforceFocus, disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, _props$disableEscapeK = props.disableEscapeKeyDown, disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$disableRestore = props.disableRestoreFocus, disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, _props$disableScrollL = props.disableScrollLock, disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, _props$hideBackdrop = props.hideBackdrop, hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, _props$manager = props.manager, manager = _props$manager === void 0 ? defaultManager : _props$manager, onBackdropClick = props.onBackdropClick, onClose = props.onClose, onEscapeKeyDown = props.onEscapeKeyDown, onRendered = props.onRendered, open = props.open, other = _objectWithoutProperties
|
25608
|
+
var _props$BackdropCompon = props.BackdropComponent, BackdropComponent = _props$BackdropCompon === void 0 ? SimpleBackdrop$1 : _props$BackdropCompon, BackdropProps = props.BackdropProps, children2 = props.children, _props$closeAfterTran = props.closeAfterTransition, closeAfterTransition = _props$closeAfterTran === void 0 ? false : _props$closeAfterTran, container = props.container, _props$disableAutoFoc = props.disableAutoFocus, disableAutoFocus = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$disableBackdro = props.disableBackdropClick, disableBackdropClick = _props$disableBackdro === void 0 ? false : _props$disableBackdro, _props$disableEnforce = props.disableEnforceFocus, disableEnforceFocus = _props$disableEnforce === void 0 ? false : _props$disableEnforce, _props$disableEscapeK = props.disableEscapeKeyDown, disableEscapeKeyDown = _props$disableEscapeK === void 0 ? false : _props$disableEscapeK, _props$disablePortal = props.disablePortal, disablePortal = _props$disablePortal === void 0 ? false : _props$disablePortal, _props$disableRestore = props.disableRestoreFocus, disableRestoreFocus = _props$disableRestore === void 0 ? false : _props$disableRestore, _props$disableScrollL = props.disableScrollLock, disableScrollLock = _props$disableScrollL === void 0 ? false : _props$disableScrollL, _props$hideBackdrop = props.hideBackdrop, hideBackdrop = _props$hideBackdrop === void 0 ? false : _props$hideBackdrop, _props$keepMounted = props.keepMounted, keepMounted = _props$keepMounted === void 0 ? false : _props$keepMounted, _props$manager = props.manager, manager = _props$manager === void 0 ? defaultManager : _props$manager, onBackdropClick = props.onBackdropClick, onClose = props.onClose, onEscapeKeyDown = props.onEscapeKeyDown, onRendered = props.onRendered, open = props.open, other = _objectWithoutProperties(props, ["BackdropComponent", "BackdropProps", "children", "closeAfterTransition", "container", "disableAutoFocus", "disableBackdropClick", "disableEnforceFocus", "disableEscapeKeyDown", "disablePortal", "disableRestoreFocus", "disableScrollLock", "hideBackdrop", "keepMounted", "manager", "onBackdropClick", "onClose", "onEscapeKeyDown", "onRendered", "open"]);
|
25703
25609
|
var _React$useState = React.useState(true), exited = _React$useState[0], setExited = _React$useState[1];
|
25704
25610
|
var modal = React.useRef({});
|
25705
25611
|
var mountNodeRef = React.useRef(null);
|
@@ -25811,13 +25717,13 @@ var Modal = /* @__PURE__ */ React.forwardRef(function Modal2(inProps, ref2) {
|
|
25811
25717
|
ref: handlePortalRef,
|
25812
25718
|
container,
|
25813
25719
|
disablePortal
|
25814
|
-
}, /* @__PURE__ */ React.createElement("div", _extends$
|
25720
|
+
}, /* @__PURE__ */ React.createElement("div", _extends$2({
|
25815
25721
|
ref: handleRef,
|
25816
25722
|
onKeyDown: handleKeyDown2,
|
25817
25723
|
role: "presentation"
|
25818
25724
|
}, other, {
|
25819
|
-
style: _extends$
|
25820
|
-
}), hideBackdrop ? null : /* @__PURE__ */ React.createElement(BackdropComponent, _extends$
|
25725
|
+
style: _extends$2({}, inlineStyle.root, !open && exited ? inlineStyle.hidden : {}, other.style)
|
25726
|
+
}), hideBackdrop ? null : /* @__PURE__ */ React.createElement(BackdropComponent, _extends$2({
|
25821
25727
|
open,
|
25822
25728
|
onClick: handleBackdropClick
|
25823
25729
|
}, BackdropProps)), /* @__PURE__ */ React.createElement(Unstable_TrapFocus, {
|
@@ -25969,7 +25875,7 @@ var styles$l = {
|
|
25969
25875
|
}
|
25970
25876
|
};
|
25971
25877
|
var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosize2(props, ref2) {
|
25972
|
-
var onChange = props.onChange, rows = props.rows, rowsMax = props.rowsMax, rowsMinProp = props.rowsMin, maxRowsProp = props.maxRows, _props$minRows = props.minRows, minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, style2 = props.style, value2 = props.value, other = _objectWithoutProperties
|
25878
|
+
var onChange = props.onChange, rows = props.rows, rowsMax = props.rowsMax, rowsMinProp = props.rowsMin, maxRowsProp = props.maxRows, _props$minRows = props.minRows, minRowsProp = _props$minRows === void 0 ? 1 : _props$minRows, style2 = props.style, value2 = props.value, other = _objectWithoutProperties(props, ["onChange", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "style", "value"]);
|
25973
25879
|
var maxRows = maxRowsProp || rowsMax;
|
25974
25880
|
var minRows = rows || rowsMinProp || minRowsProp;
|
25975
25881
|
var _React$useRef = React.useRef(value2 != null), isControlled = _React$useRef.current;
|
@@ -26045,12 +25951,12 @@ var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosiz
|
|
26045
25951
|
onChange(event2);
|
26046
25952
|
}
|
26047
25953
|
};
|
26048
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("textarea", _extends$
|
25954
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("textarea", _extends$2({
|
26049
25955
|
value: value2,
|
26050
25956
|
onChange: handleChange,
|
26051
25957
|
ref: handleRef,
|
26052
25958
|
rows: minRows,
|
26053
|
-
style: _extends$
|
25959
|
+
style: _extends$2({
|
26054
25960
|
height: state.outerHeightStyle,
|
26055
25961
|
// Need a large enough difference to allow scrolling.
|
26056
25962
|
// This prevents infinite rendering loop.
|
@@ -26062,7 +25968,7 @@ var TextareaAutosize = /* @__PURE__ */ React.forwardRef(function TextareaAutosiz
|
|
26062
25968
|
readOnly: true,
|
26063
25969
|
ref: shadowRef,
|
26064
25970
|
tabIndex: -1,
|
26065
|
-
style: _extends$
|
25971
|
+
style: _extends$2({}, styles$l.shadow, style2)
|
26066
25972
|
}));
|
26067
25973
|
});
|
26068
25974
|
TextareaAutosize.propTypes = {
|
@@ -26146,7 +26052,7 @@ var styles$k = function styles4(theme) {
|
|
26146
26052
|
"@keyframes mui-auto-fill-cancel": {}
|
26147
26053
|
},
|
26148
26054
|
/* Styles applied to the root element. */
|
26149
|
-
root: _extends$
|
26055
|
+
root: _extends$2({}, theme.typography.body1, {
|
26150
26056
|
color: theme.palette.text.primary,
|
26151
26057
|
lineHeight: "1.1876em",
|
26152
26058
|
// Reset (19px), match the native input line-height
|
@@ -26285,7 +26191,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
|
|
26285
26191
|
props.error;
|
26286
26192
|
var _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, id2 = props.id, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$inputProps = props.inputProps, inputPropsProp = _props$inputProps === void 0 ? {} : _props$inputProps, inputRefProp = props.inputRef;
|
26287
26193
|
props.margin;
|
26288
|
-
var _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, placeholder = props.placeholder, readOnly = props.readOnly, renderSuffix = props.renderSuffix, rows = props.rows, rowsMax = props.rowsMax, rowsMin = props.rowsMin, maxRows = props.maxRows, minRows = props.minRows, startAdornment = props.startAdornment, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, valueProp = props.value, other = _objectWithoutProperties
|
26194
|
+
var _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onClick = props.onClick, onFocus = props.onFocus, onKeyDown = props.onKeyDown, onKeyUp = props.onKeyUp, placeholder = props.placeholder, readOnly = props.readOnly, renderSuffix = props.renderSuffix, rows = props.rows, rowsMax = props.rowsMax, rowsMin = props.rowsMin, maxRows = props.maxRows, minRows = props.minRows, startAdornment = props.startAdornment, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, valueProp = props.value, other = _objectWithoutProperties(props, ["aria-describedby", "autoComplete", "autoFocus", "classes", "className", "color", "defaultValue", "disabled", "endAdornment", "error", "fullWidth", "id", "inputComponent", "inputProps", "inputRef", "margin", "multiline", "name", "onBlur", "onChange", "onClick", "onFocus", "onKeyDown", "onKeyUp", "placeholder", "readOnly", "renderSuffix", "rows", "rowsMax", "rowsMin", "maxRows", "minRows", "startAdornment", "type", "value"]);
|
26289
26195
|
var value2 = inputPropsProp.value != null ? inputPropsProp.value : valueProp;
|
26290
26196
|
var _React$useRef = React.useRef(value2 != null), isControlled = _React$useRef.current;
|
26291
26197
|
var inputRef = React.useRef();
|
@@ -26403,11 +26309,11 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
|
|
26403
26309
|
}
|
26404
26310
|
};
|
26405
26311
|
var InputComponent = inputComponent;
|
26406
|
-
var inputProps = _extends$
|
26312
|
+
var inputProps = _extends$2({}, inputPropsProp, {
|
26407
26313
|
ref: handleInputRef
|
26408
26314
|
});
|
26409
26315
|
if (typeof InputComponent !== "string") {
|
26410
|
-
inputProps = _extends$
|
26316
|
+
inputProps = _extends$2({
|
26411
26317
|
// Rename ref to inputRef as we don't know the
|
26412
26318
|
// provided `inputComponent` structure.
|
26413
26319
|
inputRef: handleInputRef,
|
@@ -26419,7 +26325,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
|
|
26419
26325
|
if (rows && !maxRows && !minRows && !rowsMax && !rowsMin) {
|
26420
26326
|
InputComponent = "textarea";
|
26421
26327
|
} else {
|
26422
|
-
inputProps = _extends$
|
26328
|
+
inputProps = _extends$2({
|
26423
26329
|
minRows: rows || minRows,
|
26424
26330
|
rowsMax,
|
26425
26331
|
maxRows
|
@@ -26427,7 +26333,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
|
|
26427
26333
|
InputComponent = TextareaAutosize$1;
|
26428
26334
|
}
|
26429
26335
|
} else {
|
26430
|
-
inputProps = _extends$
|
26336
|
+
inputProps = _extends$2({
|
26431
26337
|
type: type2
|
26432
26338
|
}, inputProps);
|
26433
26339
|
}
|
@@ -26441,13 +26347,13 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
|
|
26441
26347
|
muiFormControl.setAdornedStart(Boolean(startAdornment));
|
26442
26348
|
}
|
26443
26349
|
}, [muiFormControl, startAdornment]);
|
26444
|
-
return /* @__PURE__ */ React.createElement("div", _extends$
|
26350
|
+
return /* @__PURE__ */ React.createElement("div", _extends$2({
|
26445
26351
|
className: clsx(classes.root, classes["color".concat(capitalize$1(fcs.color || "primary"))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fullWidth && classes.fullWidth, fcs.focused && classes.focused, muiFormControl && classes.formControl, multiline && classes.multiline, startAdornment && classes.adornedStart, endAdornment && classes.adornedEnd, fcs.margin === "dense" && classes.marginDense),
|
26446
26352
|
onClick: handleClick,
|
26447
26353
|
ref: ref2
|
26448
26354
|
}, other), startAdornment, /* @__PURE__ */ React.createElement(FormControlContext$1.Provider, {
|
26449
26355
|
value: null
|
26450
|
-
}, /* @__PURE__ */ React.createElement(InputComponent, _extends$
|
26356
|
+
}, /* @__PURE__ */ React.createElement(InputComponent, _extends$2({
|
26451
26357
|
"aria-invalid": fcs.error,
|
26452
26358
|
"aria-describedby": ariaDescribedby,
|
26453
26359
|
autoComplete,
|
@@ -26469,7 +26375,7 @@ var InputBase = /* @__PURE__ */ React.forwardRef(function InputBase2(props, ref2
|
|
26469
26375
|
onBlur: handleBlur,
|
26470
26376
|
onChange: handleChange,
|
26471
26377
|
onFocus: handleFocus
|
26472
|
-
}))), endAdornment, renderSuffix ? renderSuffix(_extends$
|
26378
|
+
}))), endAdornment, renderSuffix ? renderSuffix(_extends$2({}, fcs, {
|
26473
26379
|
startAdornment
|
26474
26380
|
})) : null);
|
26475
26381
|
});
|
@@ -26786,9 +26692,9 @@ var styles$j = function styles5(theme) {
|
|
26786
26692
|
};
|
26787
26693
|
};
|
26788
26694
|
var FilledInput = /* @__PURE__ */ React.forwardRef(function FilledInput2(props, ref2) {
|
26789
|
-
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties
|
26790
|
-
return /* @__PURE__ */ React.createElement(InputBase$1, _extends$
|
26791
|
-
classes: _extends$
|
26695
|
+
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
|
26696
|
+
return /* @__PURE__ */ React.createElement(InputBase$1, _extends$2({
|
26697
|
+
classes: _extends$2({}, classes, {
|
26792
26698
|
root: clsx(classes.root, !disableUnderline && classes.underline),
|
26793
26699
|
underline: null
|
26794
26700
|
}),
|
@@ -26953,7 +26859,7 @@ var styles$i = {
|
|
26953
26859
|
}
|
26954
26860
|
};
|
26955
26861
|
var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props, ref2) {
|
26956
|
-
var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, visuallyFocused = props.focused, _props$hiddenLabel = props.hiddenLabel, hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, _props$margin = props.margin, margin = _props$margin === void 0 ? "none" : _props$margin, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, size = props.size, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
26862
|
+
var children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "div" : _props$component, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, visuallyFocused = props.focused, _props$hiddenLabel = props.hiddenLabel, hiddenLabel = _props$hiddenLabel === void 0 ? false : _props$hiddenLabel, _props$margin = props.margin, margin = _props$margin === void 0 ? "none" : _props$margin, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, size = props.size, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "error", "fullWidth", "focused", "hiddenLabel", "margin", "required", "size", "variant"]);
|
26957
26863
|
var _React$useState = React.useState(function() {
|
26958
26864
|
var initialAdornedStart = false;
|
26959
26865
|
if (children2) {
|
@@ -27032,7 +26938,7 @@ var FormControl = /* @__PURE__ */ React.forwardRef(function FormControl2(props,
|
|
27032
26938
|
};
|
27033
26939
|
return /* @__PURE__ */ React.createElement(FormControlContext$1.Provider, {
|
27034
26940
|
value: childContext
|
27035
|
-
}, /* @__PURE__ */ React.createElement(Component2, _extends$
|
26941
|
+
}, /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
27036
26942
|
className: clsx(classes.root, className, margin !== "none" && classes["margin".concat(capitalize$1(margin))], fullWidth && classes.fullWidth),
|
27037
26943
|
ref: ref2
|
27038
26944
|
}, other), children2));
|
@@ -27109,7 +27015,7 @@ const FormControl$1 = withStyles2(styles$i, {
|
|
27109
27015
|
var styles$h = function styles6(theme) {
|
27110
27016
|
return {
|
27111
27017
|
/* Styles applied to the root element. */
|
27112
|
-
root: _extends$
|
27018
|
+
root: _extends$2({
|
27113
27019
|
color: theme.palette.text.secondary
|
27114
27020
|
}, theme.typography.caption, {
|
27115
27021
|
textAlign: "left",
|
@@ -27152,14 +27058,14 @@ var FormHelperText = /* @__PURE__ */ React.forwardRef(function FormHelperText2(p
|
|
27152
27058
|
props.margin;
|
27153
27059
|
props.required;
|
27154
27060
|
props.variant;
|
27155
|
-
var other = _objectWithoutProperties
|
27061
|
+
var other = _objectWithoutProperties(props, ["children", "classes", "className", "component", "disabled", "error", "filled", "focused", "margin", "required", "variant"]);
|
27156
27062
|
var muiFormControl = useFormControl();
|
27157
27063
|
var fcs = formControlState({
|
27158
27064
|
props,
|
27159
27065
|
muiFormControl,
|
27160
27066
|
states: ["variant", "margin", "disabled", "error", "filled", "focused", "required"]
|
27161
27067
|
});
|
27162
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
27068
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
27163
27069
|
className: clsx(classes.root, (fcs.variant === "filled" || fcs.variant === "outlined") && classes.contained, className, fcs.disabled && classes.disabled, fcs.error && classes.error, fcs.filled && classes.filled, fcs.focused && classes.focused, fcs.required && classes.required, fcs.margin === "dense" && classes.marginDense),
|
27164
27070
|
ref: ref2
|
27165
27071
|
}, other), children2 === " " ? (
|
@@ -27232,7 +27138,7 @@ const FormHelperText$1 = withStyles2(styles$h, {
|
|
27232
27138
|
var styles$g = function styles7(theme) {
|
27233
27139
|
return {
|
27234
27140
|
/* Styles applied to the root element. */
|
27235
|
-
root: _extends$
|
27141
|
+
root: _extends$2({
|
27236
27142
|
color: theme.palette.text.secondary
|
27237
27143
|
}, theme.typography.body1, {
|
27238
27144
|
lineHeight: 1,
|
@@ -27280,14 +27186,14 @@ var FormLabel = /* @__PURE__ */ React.forwardRef(function FormLabel2(props, ref2
|
|
27280
27186
|
props.filled;
|
27281
27187
|
props.focused;
|
27282
27188
|
props.required;
|
27283
|
-
var other = _objectWithoutProperties
|
27189
|
+
var other = _objectWithoutProperties(props, ["children", "classes", "className", "color", "component", "disabled", "error", "filled", "focused", "required"]);
|
27284
27190
|
var muiFormControl = useFormControl();
|
27285
27191
|
var fcs = formControlState({
|
27286
27192
|
props,
|
27287
27193
|
muiFormControl,
|
27288
27194
|
states: ["color", "required", "focused", "disabled", "error", "filled"]
|
27289
27195
|
});
|
27290
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
27196
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
27291
27197
|
className: clsx(classes.root, classes["color".concat(capitalize$1(fcs.color || "primary"))], className, fcs.disabled && classes.disabled, fcs.error && classes.error, fcs.filled && classes.filled, fcs.focused && classes.focused, fcs.required && classes.required),
|
27292
27198
|
ref: ref2
|
27293
27199
|
}, other), children2, fcs.required && /* @__PURE__ */ React.createElement("span", {
|
@@ -27360,7 +27266,7 @@ var styles$f = {
|
|
27360
27266
|
}
|
27361
27267
|
};
|
27362
27268
|
var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref2) {
|
27363
|
-
var children2 = props.children, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style2 = props.style, _props$timeout = props.timeout, timeout3 = _props$timeout === void 0 ? "auto" : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$2 : _props$TransitionComp, other = _objectWithoutProperties
|
27269
|
+
var children2 = props.children, _props$disableStrictM = props.disableStrictModeCompat, disableStrictModeCompat = _props$disableStrictM === void 0 ? false : _props$disableStrictM, inProp = props.in, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, style2 = props.style, _props$timeout = props.timeout, timeout3 = _props$timeout === void 0 ? "auto" : _props$timeout, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Transition$2 : _props$TransitionComp, other = _objectWithoutProperties(props, ["children", "disableStrictModeCompat", "in", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "style", "timeout", "TransitionComponent"]);
|
27364
27270
|
var timer2 = React.useRef();
|
27365
27271
|
var autoTimeout = React.useRef();
|
27366
27272
|
var theme = useTheme();
|
@@ -27448,7 +27354,7 @@ var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref2) {
|
|
27448
27354
|
clearTimeout(timer2.current);
|
27449
27355
|
};
|
27450
27356
|
}, []);
|
27451
|
-
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
27357
|
+
return /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
27452
27358
|
appear: true,
|
27453
27359
|
in: inProp,
|
27454
27360
|
nodeRef: enableStrictModeCompat ? nodeRef : void 0,
|
@@ -27461,8 +27367,8 @@ var Grow = /* @__PURE__ */ React.forwardRef(function Grow2(props, ref2) {
|
|
27461
27367
|
addEndListener,
|
27462
27368
|
timeout: timeout3 === "auto" ? null : timeout3
|
27463
27369
|
}, other), function(state, childProps) {
|
27464
|
-
return /* @__PURE__ */ React.cloneElement(children2, _extends$
|
27465
|
-
style: _extends$
|
27370
|
+
return /* @__PURE__ */ React.cloneElement(children2, _extends$2({
|
27371
|
+
style: _extends$2({
|
27466
27372
|
opacity: 0,
|
27467
27373
|
transform: getScale$2(0.75),
|
27468
27374
|
visibility: state === "exited" && !inProp ? "hidden" : void 0
|
@@ -27626,9 +27532,9 @@ var styles$e = function styles8(theme) {
|
|
27626
27532
|
};
|
27627
27533
|
};
|
27628
27534
|
var Input$1 = /* @__PURE__ */ React.forwardRef(function Input(props, ref2) {
|
27629
|
-
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties
|
27630
|
-
return /* @__PURE__ */ React.createElement(InputBase$1, _extends$
|
27631
|
-
classes: _extends$
|
27535
|
+
var disableUnderline = props.disableUnderline, classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["disableUnderline", "classes", "fullWidth", "inputComponent", "multiline", "type"]);
|
27536
|
+
return /* @__PURE__ */ React.createElement(InputBase$1, _extends$2({
|
27537
|
+
classes: _extends$2({}, classes, {
|
27632
27538
|
root: clsx(classes.root, !disableUnderline && classes.underline),
|
27633
27539
|
underline: null
|
27634
27540
|
}),
|
@@ -27844,7 +27750,7 @@ var InputLabel = /* @__PURE__ */ React.forwardRef(function InputLabel2(props, re
|
|
27844
27750
|
props.margin;
|
27845
27751
|
var shrinkProp = props.shrink;
|
27846
27752
|
props.variant;
|
27847
|
-
var other = _objectWithoutProperties
|
27753
|
+
var other = _objectWithoutProperties(props, ["classes", "className", "disableAnimation", "margin", "shrink", "variant"]);
|
27848
27754
|
var muiFormControl = useFormControl();
|
27849
27755
|
var shrink = shrinkProp;
|
27850
27756
|
if (typeof shrink === "undefined" && muiFormControl) {
|
@@ -27855,7 +27761,7 @@ var InputLabel = /* @__PURE__ */ React.forwardRef(function InputLabel2(props, re
|
|
27855
27761
|
muiFormControl,
|
27856
27762
|
states: ["margin", "variant"]
|
27857
27763
|
});
|
27858
|
-
return /* @__PURE__ */ React.createElement(FormLabel$1, _extends$
|
27764
|
+
return /* @__PURE__ */ React.createElement(FormLabel$1, _extends$2({
|
27859
27765
|
"data-shrink": shrink,
|
27860
27766
|
className: clsx(classes.root, className, muiFormControl && classes.formControl, !disableAnimation && classes.animated, shrink && classes.shrink, fcs.margin === "dense" && classes.marginDense, {
|
27861
27767
|
"filled": classes.filled,
|
@@ -27956,7 +27862,7 @@ var styles$c = {
|
|
27956
27862
|
}
|
27957
27863
|
};
|
27958
27864
|
var List = /* @__PURE__ */ React.forwardRef(function List2(props, ref2) {
|
27959
|
-
var children2 = props.children, classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? "ul" : _props$component, _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disablePadding = props.disablePadding, disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, subheader = props.subheader, other = _objectWithoutProperties
|
27865
|
+
var children2 = props.children, classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? "ul" : _props$component, _props$dense = props.dense, dense = _props$dense === void 0 ? false : _props$dense, _props$disablePadding = props.disablePadding, disablePadding = _props$disablePadding === void 0 ? false : _props$disablePadding, subheader = props.subheader, other = _objectWithoutProperties(props, ["children", "classes", "className", "component", "dense", "disablePadding", "subheader"]);
|
27960
27866
|
var context2 = React.useMemo(function() {
|
27961
27867
|
return {
|
27962
27868
|
dense
|
@@ -27964,7 +27870,7 @@ var List = /* @__PURE__ */ React.forwardRef(function List2(props, ref2) {
|
|
27964
27870
|
}, [dense]);
|
27965
27871
|
return /* @__PURE__ */ React.createElement(ListContext$1.Provider, {
|
27966
27872
|
value: context2
|
27967
|
-
}, /* @__PURE__ */ React.createElement(Component2, _extends$
|
27873
|
+
}, /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
27968
27874
|
className: clsx(classes.root, className, dense && classes.dense, !disablePadding && classes.padding, subheader && classes.subheader),
|
27969
27875
|
ref: ref2
|
27970
27876
|
}, other), subheader, children2));
|
@@ -28070,7 +27976,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref2) {
|
|
28070
27976
|
} : _props$anchorOrigin, anchorPosition = props.anchorPosition, _props$anchorReferenc = props.anchorReference, anchorReference = _props$anchorReferenc === void 0 ? "anchorEl" : _props$anchorReferenc, children2 = props.children, classes = props.classes, className = props.className, containerProp = props.container, _props$elevation = props.elevation, elevation = _props$elevation === void 0 ? 8 : _props$elevation, getContentAnchorEl = props.getContentAnchorEl, _props$marginThreshol = props.marginThreshold, marginThreshold = _props$marginThreshol === void 0 ? 16 : _props$marginThreshol, onEnter = props.onEnter, onEntered = props.onEntered, onEntering = props.onEntering, onExit = props.onExit, onExited = props.onExited, onExiting = props.onExiting, open = props.open, _props$PaperProps = props.PaperProps, PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, _props$transformOrigi = props.transformOrigin, transformOrigin = _props$transformOrigi === void 0 ? {
|
28071
27977
|
vertical: "top",
|
28072
27978
|
horizontal: "left"
|
28073
|
-
} : _props$transformOrigi, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Grow$1 : _props$TransitionComp, _props$transitionDura = props.transitionDuration, transitionDurationProp = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps, TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, other = _objectWithoutProperties
|
27979
|
+
} : _props$transformOrigi, _props$TransitionComp = props.TransitionComponent, TransitionComponent = _props$TransitionComp === void 0 ? Grow$1 : _props$TransitionComp, _props$transitionDura = props.transitionDuration, transitionDurationProp = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps, TransitionProps = _props$TransitionProp === void 0 ? {} : _props$TransitionProp, other = _objectWithoutProperties(props, ["action", "anchorEl", "anchorOrigin", "anchorPosition", "anchorReference", "children", "classes", "className", "container", "elevation", "getContentAnchorEl", "marginThreshold", "onEnter", "onEntered", "onEntering", "onExit", "onExited", "onExiting", "open", "PaperProps", "transformOrigin", "TransitionComponent", "transitionDuration", "TransitionProps"]);
|
28074
27980
|
var paperRef = React.useRef();
|
28075
27981
|
var getAnchorOffset = React.useCallback(function(contentAnchorOffset) {
|
28076
27982
|
if (anchorReference === "anchorPosition") {
|
@@ -28223,7 +28129,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref2) {
|
|
28223
28129
|
transitionDuration = void 0;
|
28224
28130
|
}
|
28225
28131
|
var container = containerProp || (anchorEl ? ownerDocument(getAnchorEl(anchorEl)).body : void 0);
|
28226
|
-
return /* @__PURE__ */ React.createElement(Modal$1, _extends$
|
28132
|
+
return /* @__PURE__ */ React.createElement(Modal$1, _extends$2({
|
28227
28133
|
container,
|
28228
28134
|
open,
|
28229
28135
|
ref: ref2,
|
@@ -28231,7 +28137,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref2) {
|
|
28231
28137
|
invisible: true
|
28232
28138
|
},
|
28233
28139
|
className: clsx(classes.root, className)
|
28234
|
-
}, other), /* @__PURE__ */ React.createElement(TransitionComponent, _extends$
|
28140
|
+
}, other), /* @__PURE__ */ React.createElement(TransitionComponent, _extends$2({
|
28235
28141
|
appear: true,
|
28236
28142
|
in: open,
|
28237
28143
|
onEnter,
|
@@ -28242,7 +28148,7 @@ var Popover = /* @__PURE__ */ React.forwardRef(function Popover2(props, ref2) {
|
|
28242
28148
|
timeout: transitionDuration
|
28243
28149
|
}, TransitionProps, {
|
28244
28150
|
onEntering: createChainedFunction(handleEntering, TransitionProps.onEntering)
|
28245
|
-
}), /* @__PURE__ */ React.createElement(Paper$1, _extends$
|
28151
|
+
}), /* @__PURE__ */ React.createElement(Paper$1, _extends$2({
|
28246
28152
|
elevation,
|
28247
28153
|
ref: handlePaperRef
|
28248
28154
|
}, PaperProps, {
|
@@ -28476,7 +28382,7 @@ function moveFocus(list, currentFocus, disableListWrap, disabledItemsFocusable,
|
|
28476
28382
|
}
|
28477
28383
|
var useEnhancedEffect = typeof window === "undefined" ? React.useEffect : React.useLayoutEffect;
|
28478
28384
|
var MenuList = /* @__PURE__ */ React.forwardRef(function MenuList2(props, ref2) {
|
28479
|
-
var actions = props.actions, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$autoFocusItem = props.autoFocusItem, autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, children2 = props.children, className = props.className, _props$disabledItemsF = props.disabledItemsFocusable, disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, _props$disableListWra = props.disableListWrap, disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, onKeyDown = props.onKeyDown, _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties
|
28385
|
+
var actions = props.actions, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, _props$autoFocusItem = props.autoFocusItem, autoFocusItem = _props$autoFocusItem === void 0 ? false : _props$autoFocusItem, children2 = props.children, className = props.className, _props$disabledItemsF = props.disabledItemsFocusable, disabledItemsFocusable = _props$disabledItemsF === void 0 ? false : _props$disabledItemsF, _props$disableListWra = props.disableListWrap, disableListWrap = _props$disableListWra === void 0 ? false : _props$disableListWra, onKeyDown = props.onKeyDown, _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties(props, ["actions", "autoFocus", "autoFocusItem", "children", "className", "disabledItemsFocusable", "disableListWrap", "onKeyDown", "variant"]);
|
28480
28386
|
var listRef = React.useRef(null);
|
28481
28387
|
var textCriteriaRef = React.useRef({
|
28482
28388
|
keys: [],
|
@@ -28579,7 +28485,7 @@ var MenuList = /* @__PURE__ */ React.forwardRef(function MenuList2(props, ref2)
|
|
28579
28485
|
}
|
28580
28486
|
return child;
|
28581
28487
|
});
|
28582
|
-
return /* @__PURE__ */ React.createElement(List$1, _extends$
|
28488
|
+
return /* @__PURE__ */ React.createElement(List$1, _extends$2({
|
28583
28489
|
role: "menu",
|
28584
28490
|
ref: handleRef,
|
28585
28491
|
className,
|
@@ -28655,7 +28561,7 @@ var styles$a = {
|
|
28655
28561
|
var Menu = /* @__PURE__ */ React.forwardRef(function Menu2(props, ref2) {
|
28656
28562
|
var _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus, children2 = props.children, classes = props.classes, _props$disableAutoFoc = props.disableAutoFocusItem, disableAutoFocusItem = _props$disableAutoFoc === void 0 ? false : _props$disableAutoFoc, _props$MenuListProps = props.MenuListProps, MenuListProps = _props$MenuListProps === void 0 ? {} : _props$MenuListProps, onClose = props.onClose, onEnteringProp = props.onEntering, open = props.open, _props$PaperProps = props.PaperProps, PaperProps = _props$PaperProps === void 0 ? {} : _props$PaperProps, PopoverClasses = props.PopoverClasses, _props$transitionDura = props.transitionDuration, transitionDuration = _props$transitionDura === void 0 ? "auto" : _props$transitionDura, _props$TransitionProp = props.TransitionProps;
|
28657
28563
|
_props$TransitionProp = _props$TransitionProp === void 0 ? {} : _props$TransitionProp;
|
28658
|
-
var onEntering = _props$TransitionProp.onEntering, TransitionProps = _objectWithoutProperties
|
28564
|
+
var onEntering = _props$TransitionProp.onEntering, TransitionProps = _objectWithoutProperties(_props$TransitionProp, ["onEntering"]), _props$variant = props.variant, variant = _props$variant === void 0 ? "selectedMenu" : _props$variant, other = _objectWithoutProperties(props, ["autoFocus", "children", "classes", "disableAutoFocusItem", "MenuListProps", "onClose", "onEntering", "open", "PaperProps", "PopoverClasses", "transitionDuration", "TransitionProps", "variant"]);
|
28659
28565
|
var theme = useTheme();
|
28660
28566
|
var autoFocusItem = autoFocus && !disableAutoFocusItem && open;
|
28661
28567
|
var menuListActionsRef = React.useRef(null);
|
@@ -28711,24 +28617,24 @@ var Menu = /* @__PURE__ */ React.forwardRef(function Menu2(props, ref2) {
|
|
28711
28617
|
}
|
28712
28618
|
return child;
|
28713
28619
|
});
|
28714
|
-
return /* @__PURE__ */ React.createElement(Popover$1, _extends$
|
28620
|
+
return /* @__PURE__ */ React.createElement(Popover$1, _extends$2({
|
28715
28621
|
getContentAnchorEl,
|
28716
28622
|
classes: PopoverClasses,
|
28717
28623
|
onClose,
|
28718
|
-
TransitionProps: _extends$
|
28624
|
+
TransitionProps: _extends$2({
|
28719
28625
|
onEntering: handleEntering
|
28720
28626
|
}, TransitionProps),
|
28721
28627
|
anchorOrigin: theme.direction === "rtl" ? RTL_ORIGIN : LTR_ORIGIN,
|
28722
28628
|
transformOrigin: theme.direction === "rtl" ? RTL_ORIGIN : LTR_ORIGIN,
|
28723
|
-
PaperProps: _extends$
|
28724
|
-
classes: _extends$
|
28629
|
+
PaperProps: _extends$2({}, PaperProps, {
|
28630
|
+
classes: _extends$2({}, PaperProps.classes, {
|
28725
28631
|
root: classes.paper
|
28726
28632
|
})
|
28727
28633
|
}),
|
28728
28634
|
open,
|
28729
28635
|
ref: ref2,
|
28730
28636
|
transitionDuration
|
28731
|
-
}, other), /* @__PURE__ */ React.createElement(MenuList$1, _extends$
|
28637
|
+
}, other), /* @__PURE__ */ React.createElement(MenuList$1, _extends$2({
|
28732
28638
|
onKeyDown: handleListKeyDown,
|
28733
28639
|
actions: menuListActionsRef,
|
28734
28640
|
autoFocus: autoFocus && (activeItemIndex === -1 || disableAutoFocusItem),
|
@@ -28847,8 +28753,8 @@ const Menu$1 = withStyles2(styles$a, {
|
|
28847
28753
|
name: "MuiMenu"
|
28848
28754
|
})(Menu);
|
28849
28755
|
var NativeSelectInput = /* @__PURE__ */ React.forwardRef(function NativeSelectInput2(props, ref2) {
|
28850
|
-
var classes = props.classes, className = props.className, disabled = props.disabled, IconComponent = props.IconComponent, inputRef = props.inputRef, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
28851
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("select", _extends$
|
28756
|
+
var classes = props.classes, className = props.className, disabled = props.disabled, IconComponent = props.IconComponent, inputRef = props.inputRef, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["classes", "className", "disabled", "IconComponent", "inputRef", "variant"]);
|
28757
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("select", _extends$2({
|
28852
28758
|
className: clsx(
|
28853
28759
|
classes.root,
|
28854
28760
|
// TODO v5: merge root and select
|
@@ -29027,18 +28933,18 @@ var defaultInput = /* @__PURE__ */ React.createElement(Input$2, null);
|
|
29027
28933
|
var NativeSelect = /* @__PURE__ */ React.forwardRef(function NativeSelect2(props, ref2) {
|
29028
28934
|
var children2 = props.children, classes = props.classes, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent, _props$input = props.input, input = _props$input === void 0 ? defaultInput : _props$input, inputProps = props.inputProps;
|
29029
28935
|
props.variant;
|
29030
|
-
var other = _objectWithoutProperties
|
28936
|
+
var other = _objectWithoutProperties(props, ["children", "classes", "IconComponent", "input", "inputProps", "variant"]);
|
29031
28937
|
var muiFormControl = useFormControl();
|
29032
28938
|
var fcs = formControlState({
|
29033
28939
|
props,
|
29034
28940
|
muiFormControl,
|
29035
28941
|
states: ["variant"]
|
29036
28942
|
});
|
29037
|
-
return /* @__PURE__ */ React.cloneElement(input, _extends$
|
28943
|
+
return /* @__PURE__ */ React.cloneElement(input, _extends$2({
|
29038
28944
|
// Most of the logic is implemented in `NativeSelectInput`.
|
29039
28945
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
29040
28946
|
inputComponent: NativeSelectInput$1,
|
29041
|
-
inputProps: _extends$
|
28947
|
+
inputProps: _extends$2({
|
29042
28948
|
children: children2,
|
29043
28949
|
classes,
|
29044
28950
|
IconComponent,
|
@@ -29157,11 +29063,11 @@ var styles$8 = function styles11(theme) {
|
|
29157
29063
|
};
|
29158
29064
|
var NotchedOutline = /* @__PURE__ */ React.forwardRef(function NotchedOutline2(props, ref2) {
|
29159
29065
|
props.children;
|
29160
|
-
var classes = props.classes, className = props.className, label2 = props.label, labelWidthProp = props.labelWidth, notched = props.notched, style2 = props.style, other = _objectWithoutProperties
|
29066
|
+
var classes = props.classes, className = props.className, label2 = props.label, labelWidthProp = props.labelWidth, notched = props.notched, style2 = props.style, other = _objectWithoutProperties(props, ["children", "classes", "className", "label", "labelWidth", "notched", "style"]);
|
29161
29067
|
var theme = useTheme();
|
29162
29068
|
var align2 = theme.direction === "rtl" ? "right" : "left";
|
29163
29069
|
if (label2 !== void 0) {
|
29164
|
-
return /* @__PURE__ */ React.createElement("fieldset", _extends$
|
29070
|
+
return /* @__PURE__ */ React.createElement("fieldset", _extends$2({
|
29165
29071
|
"aria-hidden": true,
|
29166
29072
|
className: clsx(classes.root, className),
|
29167
29073
|
ref: ref2,
|
@@ -29175,9 +29081,9 @@ var NotchedOutline = /* @__PURE__ */ React.forwardRef(function NotchedOutline2(p
|
|
29175
29081
|
})));
|
29176
29082
|
}
|
29177
29083
|
var labelWidth = labelWidthProp > 0 ? labelWidthProp * 0.75 + 8 : 0.01;
|
29178
|
-
return /* @__PURE__ */ React.createElement("fieldset", _extends$
|
29084
|
+
return /* @__PURE__ */ React.createElement("fieldset", _extends$2({
|
29179
29085
|
"aria-hidden": true,
|
29180
|
-
style: _extends$
|
29086
|
+
style: _extends$2(_defineProperty$h({}, "padding".concat(capitalize$1(align2)), 8), style2),
|
29181
29087
|
className: clsx(classes.root, className),
|
29182
29088
|
ref: ref2
|
29183
29089
|
}, other), /* @__PURE__ */ React.createElement("legend", {
|
@@ -29319,8 +29225,8 @@ var styles$7 = function styles12(theme) {
|
|
29319
29225
|
};
|
29320
29226
|
};
|
29321
29227
|
var OutlinedInput = /* @__PURE__ */ React.forwardRef(function OutlinedInput2(props, ref2) {
|
29322
|
-
var classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, label2 = props.label, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, notched = props.notched, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties
|
29323
|
-
return /* @__PURE__ */ React.createElement(InputBase$1, _extends$
|
29228
|
+
var classes = props.classes, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, _props$inputComponent = props.inputComponent, inputComponent = _props$inputComponent === void 0 ? "input" : _props$inputComponent, label2 = props.label, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, notched = props.notched, _props$type = props.type, type2 = _props$type === void 0 ? "text" : _props$type, other = _objectWithoutProperties(props, ["classes", "fullWidth", "inputComponent", "label", "labelWidth", "multiline", "notched", "type"]);
|
29229
|
+
return /* @__PURE__ */ React.createElement(InputBase$1, _extends$2({
|
29324
29230
|
renderSuffix: function renderSuffix(state) {
|
29325
29231
|
return /* @__PURE__ */ React.createElement(NotchedOutline$1, {
|
29326
29232
|
className: classes.notchedOutline,
|
@@ -29329,7 +29235,7 @@ var OutlinedInput = /* @__PURE__ */ React.forwardRef(function OutlinedInput2(pro
|
|
29329
29235
|
notched: typeof notched !== "undefined" ? notched : Boolean(state.startAdornment || state.filled || state.focused)
|
29330
29236
|
});
|
29331
29237
|
},
|
29332
|
-
classes: _extends$
|
29238
|
+
classes: _extends$2({}, classes, {
|
29333
29239
|
root: clsx(classes.root, classes.underline),
|
29334
29240
|
notchedOutline: null
|
29335
29241
|
}),
|
@@ -29474,16 +29380,8 @@ OutlinedInput.muiName = "Input";
|
|
29474
29380
|
const OutlinedInput$1 = withStyles2(styles$7, {
|
29475
29381
|
name: "MuiOutlinedInput"
|
29476
29382
|
})(OutlinedInput);
|
29477
|
-
function _typeof$v(obj) {
|
29478
|
-
"@babel/helpers - typeof";
|
29479
|
-
return _typeof$v = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
29480
|
-
return typeof obj2;
|
29481
|
-
} : function(obj2) {
|
29482
|
-
return obj2 && "function" == typeof Symbol && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
29483
|
-
}, _typeof$v(obj);
|
29484
|
-
}
|
29485
29383
|
function areEqualValues(a2, b2) {
|
29486
|
-
if (_typeof$
|
29384
|
+
if (_typeof$w(b2) === "object" && b2 !== null) {
|
29487
29385
|
return a2 === b2;
|
29488
29386
|
}
|
29489
29387
|
return String(a2) === String(b2);
|
@@ -29494,7 +29392,7 @@ function isEmpty$1(display) {
|
|
29494
29392
|
var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props, ref2) {
|
29495
29393
|
var ariaLabel2 = props["aria-label"], autoFocus = props.autoFocus, autoWidth = props.autoWidth, children2 = props.children, classes = props.classes, className = props.className, defaultValue2 = props.defaultValue, disabled = props.disabled, displayEmpty = props.displayEmpty, IconComponent = props.IconComponent, inputRefProp = props.inputRef, labelId = props.labelId, _props$MenuProps = props.MenuProps, MenuProps = _props$MenuProps === void 0 ? {} : _props$MenuProps, multiple = props.multiple, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onClose = props.onClose, onFocus = props.onFocus, onOpen = props.onOpen, openProp = props.open, readOnly = props.readOnly, renderValue = props.renderValue, _props$SelectDisplayP = props.SelectDisplayProps, SelectDisplayProps = _props$SelectDisplayP === void 0 ? {} : _props$SelectDisplayP, tabIndexProp = props.tabIndex;
|
29496
29394
|
props.type;
|
29497
|
-
var valueProp = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
29395
|
+
var valueProp = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["aria-label", "autoFocus", "autoWidth", "children", "classes", "className", "defaultValue", "disabled", "displayEmpty", "IconComponent", "inputRef", "labelId", "MenuProps", "multiple", "name", "onBlur", "onChange", "onClose", "onFocus", "onOpen", "open", "readOnly", "renderValue", "SelectDisplayProps", "tabIndex", "type", "value", "variant"]);
|
29498
29396
|
var _useControlled = useControlled({
|
29499
29397
|
controlled: valueProp,
|
29500
29398
|
default: defaultValue2,
|
@@ -29733,7 +29631,7 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props,
|
|
29733
29631
|
tabIndex = disabled ? null : 0;
|
29734
29632
|
}
|
29735
29633
|
var buttonId = SelectDisplayProps.id || (name2 ? "mui-component-select-".concat(name2) : void 0);
|
29736
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", _extends$
|
29634
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", _extends$2({
|
29737
29635
|
className: clsx(
|
29738
29636
|
classes.root,
|
29739
29637
|
// TODO v5: merge root and select
|
@@ -29765,7 +29663,7 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props,
|
|
29765
29663
|
__html: "​"
|
29766
29664
|
}
|
29767
29665
|
})
|
29768
|
-
) : display), /* @__PURE__ */ React.createElement("input", _extends$
|
29666
|
+
) : display), /* @__PURE__ */ React.createElement("input", _extends$2({
|
29769
29667
|
value: Array.isArray(value2) ? value2.join(",") : value2,
|
29770
29668
|
name: name2,
|
29771
29669
|
ref: inputRef,
|
@@ -29776,19 +29674,19 @@ var SelectInput = /* @__PURE__ */ React.forwardRef(function SelectInput2(props,
|
|
29776
29674
|
autoFocus
|
29777
29675
|
}, other)), /* @__PURE__ */ React.createElement(IconComponent, {
|
29778
29676
|
className: clsx(classes.icon, classes["icon".concat(capitalize$1(variant))], open && classes.iconOpen, disabled && classes.disabled)
|
29779
|
-
}), /* @__PURE__ */ React.createElement(Menu$1, _extends$
|
29677
|
+
}), /* @__PURE__ */ React.createElement(Menu$1, _extends$2({
|
29780
29678
|
id: "menu-".concat(name2 || ""),
|
29781
29679
|
anchorEl: displayNode,
|
29782
29680
|
open,
|
29783
29681
|
onClose: handleClose
|
29784
29682
|
}, MenuProps, {
|
29785
|
-
MenuListProps: _extends$
|
29683
|
+
MenuListProps: _extends$2({
|
29786
29684
|
"aria-labelledby": labelId,
|
29787
29685
|
role: "listbox",
|
29788
29686
|
disableListWrap: true
|
29789
29687
|
}, MenuProps.MenuListProps),
|
29790
|
-
PaperProps: _extends$
|
29791
|
-
style: _extends$
|
29688
|
+
PaperProps: _extends$2({}, MenuProps.PaperProps, {
|
29689
|
+
style: _extends$2({
|
29792
29690
|
minWidth: menuMinWidth
|
29793
29691
|
}, MenuProps.PaperProps != null ? MenuProps.PaperProps.style : null)
|
29794
29692
|
})
|
@@ -29931,7 +29829,7 @@ var styles$6 = styles$9;
|
|
29931
29829
|
var _ref = /* @__PURE__ */ React.createElement(Input$2, null);
|
29932
29830
|
var _ref2 = /* @__PURE__ */ React.createElement(FilledInput$1, null);
|
29933
29831
|
var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref2) {
|
29934
|
-
var _props$autoWidth = props.autoWidth, autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, children2 = props.children, classes = props.classes, _props$displayEmpty = props.displayEmpty, displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent, id2 = props.id, input = props.input, inputProps = props.inputProps, label2 = props.label, labelId = props.labelId, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, MenuProps = props.MenuProps, _props$multiple = props.multiple, multiple = _props$multiple === void 0 ? false : _props$multiple, _props$native = props.native, native2 = _props$native === void 0 ? false : _props$native, onClose = props.onClose, onOpen = props.onOpen, open = props.open, renderValue = props.renderValue, SelectDisplayProps = props.SelectDisplayProps, _props$variant = props.variant, variantProps = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
29832
|
+
var _props$autoWidth = props.autoWidth, autoWidth = _props$autoWidth === void 0 ? false : _props$autoWidth, children2 = props.children, classes = props.classes, _props$displayEmpty = props.displayEmpty, displayEmpty = _props$displayEmpty === void 0 ? false : _props$displayEmpty, _props$IconComponent = props.IconComponent, IconComponent = _props$IconComponent === void 0 ? ArrowDropDownIcon : _props$IconComponent, id2 = props.id, input = props.input, inputProps = props.inputProps, label2 = props.label, labelId = props.labelId, _props$labelWidth = props.labelWidth, labelWidth = _props$labelWidth === void 0 ? 0 : _props$labelWidth, MenuProps = props.MenuProps, _props$multiple = props.multiple, multiple = _props$multiple === void 0 ? false : _props$multiple, _props$native = props.native, native2 = _props$native === void 0 ? false : _props$native, onClose = props.onClose, onOpen = props.onOpen, open = props.open, renderValue = props.renderValue, SelectDisplayProps = props.SelectDisplayProps, _props$variant = props.variant, variantProps = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["autoWidth", "children", "classes", "displayEmpty", "IconComponent", "id", "input", "inputProps", "label", "labelId", "labelWidth", "MenuProps", "multiple", "native", "onClose", "onOpen", "open", "renderValue", "SelectDisplayProps", "variant"]);
|
29935
29833
|
var inputComponent = native2 ? NativeSelectInput$1 : SelectInput$1;
|
29936
29834
|
var muiFormControl = useFormControl();
|
29937
29835
|
var fcs = formControlState({
|
@@ -29948,11 +29846,11 @@ var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref2) {
|
|
29948
29846
|
}),
|
29949
29847
|
filled: _ref2
|
29950
29848
|
}[variant];
|
29951
|
-
return /* @__PURE__ */ React.cloneElement(InputComponent, _extends$
|
29849
|
+
return /* @__PURE__ */ React.cloneElement(InputComponent, _extends$2({
|
29952
29850
|
// Most of the logic is implemented in `SelectInput`.
|
29953
29851
|
// The `Select` component is a simple API wrapper to expose something better to play with.
|
29954
29852
|
inputComponent,
|
29955
|
-
inputProps: _extends$
|
29853
|
+
inputProps: _extends$2({
|
29956
29854
|
children: children2,
|
29957
29855
|
IconComponent,
|
29958
29856
|
variant,
|
@@ -29970,7 +29868,7 @@ var Select = /* @__PURE__ */ React.forwardRef(function Select2(props, ref2) {
|
|
29970
29868
|
onOpen,
|
29971
29869
|
open,
|
29972
29870
|
renderValue,
|
29973
|
-
SelectDisplayProps: _extends$
|
29871
|
+
SelectDisplayProps: _extends$2({
|
29974
29872
|
id: id2
|
29975
29873
|
}, SelectDisplayProps)
|
29976
29874
|
}, inputProps, {
|
@@ -30125,7 +30023,7 @@ var styles$5 = function styles13(theme) {
|
|
30125
30023
|
}
|
30126
30024
|
},
|
30127
30025
|
open: {},
|
30128
|
-
offset: _extends$
|
30026
|
+
offset: _extends$2({
|
30129
30027
|
zIndex: 1
|
30130
30028
|
}, theme.typography.body2, {
|
30131
30029
|
fontSize: theme.typography.pxToRem(12),
|
@@ -30476,7 +30374,7 @@ var styles$4 = function styles14(theme) {
|
|
30476
30374
|
opacity: 0.8
|
30477
30375
|
},
|
30478
30376
|
/* Styles applied to the mark label element. */
|
30479
|
-
markLabel: _extends$
|
30377
|
+
markLabel: _extends$2({}, theme.typography.body2, {
|
30480
30378
|
color: theme.palette.text.secondary,
|
30481
30379
|
position: "absolute",
|
30482
30380
|
top: 26,
|
@@ -30501,7 +30399,7 @@ var styles$4 = function styles14(theme) {
|
|
30501
30399
|
};
|
30502
30400
|
};
|
30503
30401
|
var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props, ref2) {
|
30504
|
-
var ariaLabel2 = props["aria-label"], ariaLabelledby = props["aria-labelledby"], ariaValuetext = props["aria-valuetext"], classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "span" : _props$component, defaultValue2 = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, getAriaLabel = props.getAriaLabel, getAriaValueText = props.getAriaValueText, _props$marks = props.marks, marksProp = _props$marks === void 0 ? false : _props$marks, _props$max = props.max, max2 = _props$max === void 0 ? 100 : _props$max, _props$min = props.min, min2 = _props$min === void 0 ? 0 : _props$min, name2 = props.name, onChange = props.onChange, onChangeCommitted = props.onChangeCommitted, onMouseDown = props.onMouseDown, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, _props$scale = props.scale, scale2 = _props$scale === void 0 ? Identity$2 : _props$scale, _props$step = props.step, step = _props$step === void 0 ? 1 : _props$step, _props$ThumbComponent = props.ThumbComponent, ThumbComponent = _props$ThumbComponent === void 0 ? "span" : _props$ThumbComponent, _props$track = props.track, track = _props$track === void 0 ? "normal" : _props$track, valueProp = props.value, _props$ValueLabelComp = props.ValueLabelComponent, ValueLabelComponent = _props$ValueLabelComp === void 0 ? ValueLabel$1 : _props$ValueLabelComp, _props$valueLabelDisp = props.valueLabelDisplay, valueLabelDisplay = _props$valueLabelDisp === void 0 ? "off" : _props$valueLabelDisp, _props$valueLabelForm = props.valueLabelFormat, valueLabelFormat = _props$valueLabelForm === void 0 ? Identity$2 : _props$valueLabelForm, other = _objectWithoutProperties
|
30402
|
+
var ariaLabel2 = props["aria-label"], ariaLabelledby = props["aria-labelledby"], ariaValuetext = props["aria-valuetext"], classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, _props$component = props.component, Component2 = _props$component === void 0 ? "span" : _props$component, defaultValue2 = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, getAriaLabel = props.getAriaLabel, getAriaValueText = props.getAriaValueText, _props$marks = props.marks, marksProp = _props$marks === void 0 ? false : _props$marks, _props$max = props.max, max2 = _props$max === void 0 ? 100 : _props$max, _props$min = props.min, min2 = _props$min === void 0 ? 0 : _props$min, name2 = props.name, onChange = props.onChange, onChangeCommitted = props.onChangeCommitted, onMouseDown = props.onMouseDown, _props$orientation = props.orientation, orientation = _props$orientation === void 0 ? "horizontal" : _props$orientation, _props$scale = props.scale, scale2 = _props$scale === void 0 ? Identity$2 : _props$scale, _props$step = props.step, step = _props$step === void 0 ? 1 : _props$step, _props$ThumbComponent = props.ThumbComponent, ThumbComponent = _props$ThumbComponent === void 0 ? "span" : _props$ThumbComponent, _props$track = props.track, track = _props$track === void 0 ? "normal" : _props$track, valueProp = props.value, _props$ValueLabelComp = props.ValueLabelComponent, ValueLabelComponent = _props$ValueLabelComp === void 0 ? ValueLabel$1 : _props$ValueLabelComp, _props$valueLabelDisp = props.valueLabelDisplay, valueLabelDisplay = _props$valueLabelDisp === void 0 ? "off" : _props$valueLabelDisp, _props$valueLabelForm = props.valueLabelFormat, valueLabelFormat = _props$valueLabelForm === void 0 ? Identity$2 : _props$valueLabelForm, other = _objectWithoutProperties(props, ["aria-label", "aria-labelledby", "aria-valuetext", "classes", "className", "color", "component", "defaultValue", "disabled", "getAriaLabel", "getAriaValueText", "marks", "max", "min", "name", "onChange", "onChangeCommitted", "onMouseDown", "orientation", "scale", "step", "ThumbComponent", "track", "value", "ValueLabelComponent", "valueLabelDisplay", "valueLabelFormat"]);
|
30505
30403
|
var theme = useTheme();
|
30506
30404
|
var touchId = React.useRef();
|
30507
30405
|
var _React$useState = React.useState(-1), active = _React$useState[0], setActive = _React$useState[1];
|
@@ -30782,8 +30680,8 @@ var Slider = /* @__PURE__ */ React.forwardRef(function Slider2(props, ref2) {
|
|
30782
30680
|
});
|
30783
30681
|
var trackOffset = valueToPercent(range2 ? values2[0] : min2, min2, max2);
|
30784
30682
|
var trackLeap = valueToPercent(values2[values2.length - 1], min2, max2) - trackOffset;
|
30785
|
-
var trackStyle = _extends$
|
30786
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
30683
|
+
var trackStyle = _extends$2({}, axisProps[axis2].offset(trackOffset), axisProps[axis2].leap(trackLeap));
|
30684
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
30787
30685
|
ref: handleRef,
|
30788
30686
|
className: clsx(classes.root, classes["color".concat(capitalize$1(color2))], className, disabled && classes.disabled, marks.length > 0 && marks.some(function(mark2) {
|
30789
30687
|
return mark2.label;
|
@@ -31027,7 +30925,7 @@ const Tablelvl2Context$1 = Tablelvl2Context;
|
|
31027
30925
|
var styles$3 = function styles15(theme) {
|
31028
30926
|
return {
|
31029
30927
|
/* Styles applied to the root element. */
|
31030
|
-
root: _extends$
|
30928
|
+
root: _extends$2({}, theme.typography.body2, {
|
31031
30929
|
display: "table-cell",
|
31032
30930
|
verticalAlign: "inherit",
|
31033
30931
|
// Workaround for a rendering bug with spanned columns in Chrome 62.0.
|
@@ -31116,7 +31014,7 @@ var styles$3 = function styles15(theme) {
|
|
31116
31014
|
};
|
31117
31015
|
};
|
31118
31016
|
var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref2) {
|
31119
|
-
var _props$align = props.align, align2 = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties
|
31017
|
+
var _props$align = props.align, align2 = _props$align === void 0 ? "inherit" : _props$align, classes = props.classes, className = props.className, component = props.component, paddingProp = props.padding, scopeProp = props.scope, sizeProp = props.size, sortDirection = props.sortDirection, variantProp = props.variant, other = _objectWithoutProperties(props, ["align", "classes", "className", "component", "padding", "scope", "size", "sortDirection", "variant"]);
|
31120
31018
|
var table = React.useContext(TableContext$1);
|
31121
31019
|
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
31122
31020
|
var isHeadCell = tablelvl2 && tablelvl2.variant === "head";
|
@@ -31139,7 +31037,7 @@ var TableCell = /* @__PURE__ */ React.forwardRef(function TableCell2(props, ref2
|
|
31139
31037
|
if (sortDirection) {
|
31140
31038
|
ariaSort = sortDirection === "asc" ? "ascending" : "descending";
|
31141
31039
|
}
|
31142
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
31040
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
31143
31041
|
ref: ref2,
|
31144
31042
|
className: clsx(classes.root, classes[variant], className, align2 !== "inherit" && classes["align".concat(capitalize$1(align2))], padding2 !== "normal" && classes["padding".concat(capitalize$1(padding2))], size !== "medium" && classes["size".concat(capitalize$1(size))], variant === "head" && table && table.stickyHeader && classes.stickyHeader),
|
31145
31043
|
"aria-sort": ariaSort,
|
@@ -31234,9 +31132,9 @@ var styles$2 = function styles16(theme) {
|
|
31234
31132
|
};
|
31235
31133
|
var defaultComponent = "tr";
|
31236
31134
|
var TableRow = /* @__PURE__ */ React.forwardRef(function TableRow2(props, ref2) {
|
31237
|
-
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover2 = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties
|
31135
|
+
var classes = props.classes, className = props.className, _props$component = props.component, Component2 = _props$component === void 0 ? defaultComponent : _props$component, _props$hover = props.hover, hover2 = _props$hover === void 0 ? false : _props$hover, _props$selected = props.selected, selected = _props$selected === void 0 ? false : _props$selected, other = _objectWithoutProperties(props, ["classes", "className", "component", "hover", "selected"]);
|
31238
31136
|
var tablelvl2 = React.useContext(Tablelvl2Context$1);
|
31239
|
-
return /* @__PURE__ */ React.createElement(Component2, _extends$
|
31137
|
+
return /* @__PURE__ */ React.createElement(Component2, _extends$2({
|
31240
31138
|
ref: ref2,
|
31241
31139
|
className: clsx(classes.root, className, tablelvl2 && {
|
31242
31140
|
"head": classes.head,
|
@@ -31286,7 +31184,7 @@ var styles$1 = {
|
|
31286
31184
|
root: {}
|
31287
31185
|
};
|
31288
31186
|
var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref2) {
|
31289
|
-
var autoComplete = props.autoComplete, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, defaultValue2 = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, FormHelperTextProps = props.FormHelperTextProps, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, helperText = props.helperText, hiddenLabel = props.hiddenLabel, id2 = props.id, InputLabelProps = props.InputLabelProps, inputProps = props.inputProps, InputProps = props.InputProps, inputRef = props.inputRef, label2 = props.label, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, placeholder = props.placeholder, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, rows = props.rows, rowsMax = props.rowsMax, maxRows = props.maxRows, minRows = props.minRows, _props$select = props.select, select2 = _props$select === void 0 ? false : _props$select, SelectProps = props.SelectProps, type2 = props.type, value2 = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties
|
31187
|
+
var autoComplete = props.autoComplete, _props$autoFocus = props.autoFocus, autoFocus = _props$autoFocus === void 0 ? false : _props$autoFocus, children2 = props.children, classes = props.classes, className = props.className, _props$color = props.color, color2 = _props$color === void 0 ? "primary" : _props$color, defaultValue2 = props.defaultValue, _props$disabled = props.disabled, disabled = _props$disabled === void 0 ? false : _props$disabled, _props$error = props.error, error2 = _props$error === void 0 ? false : _props$error, FormHelperTextProps = props.FormHelperTextProps, _props$fullWidth = props.fullWidth, fullWidth = _props$fullWidth === void 0 ? false : _props$fullWidth, helperText = props.helperText, hiddenLabel = props.hiddenLabel, id2 = props.id, InputLabelProps = props.InputLabelProps, inputProps = props.inputProps, InputProps = props.InputProps, inputRef = props.inputRef, label2 = props.label, _props$multiline = props.multiline, multiline = _props$multiline === void 0 ? false : _props$multiline, name2 = props.name, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus, placeholder = props.placeholder, _props$required = props.required, required2 = _props$required === void 0 ? false : _props$required, rows = props.rows, rowsMax = props.rowsMax, maxRows = props.maxRows, minRows = props.minRows, _props$select = props.select, select2 = _props$select === void 0 ? false : _props$select, SelectProps = props.SelectProps, type2 = props.type, value2 = props.value, _props$variant = props.variant, variant = _props$variant === void 0 ? "standard" : _props$variant, other = _objectWithoutProperties(props, ["autoComplete", "autoFocus", "children", "classes", "className", "color", "defaultValue", "disabled", "error", "FormHelperTextProps", "fullWidth", "helperText", "hiddenLabel", "id", "InputLabelProps", "inputProps", "InputProps", "inputRef", "label", "multiline", "name", "onBlur", "onChange", "onFocus", "placeholder", "required", "rows", "rowsMax", "maxRows", "minRows", "select", "SelectProps", "type", "value", "variant"]);
|
31290
31188
|
{
|
31291
31189
|
if (select2 && !children2) {
|
31292
31190
|
console.error("Material-UI: `children` must be passed when using the `TextField` component with `select`.");
|
@@ -31312,7 +31210,7 @@ var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref2
|
|
31312
31210
|
var helperTextId = helperText && id2 ? "".concat(id2, "-helper-text") : void 0;
|
31313
31211
|
var inputLabelId = label2 && id2 ? "".concat(id2, "-label") : void 0;
|
31314
31212
|
var InputComponent = variantComponent[variant];
|
31315
|
-
var InputElement = /* @__PURE__ */ React.createElement(InputComponent, _extends$
|
31213
|
+
var InputElement = /* @__PURE__ */ React.createElement(InputComponent, _extends$2({
|
31316
31214
|
"aria-describedby": helperTextId,
|
31317
31215
|
autoComplete,
|
31318
31216
|
autoFocus,
|
@@ -31334,7 +31232,7 @@ var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref2
|
|
31334
31232
|
placeholder,
|
31335
31233
|
inputProps
|
31336
31234
|
}, InputMore, InputProps));
|
31337
|
-
return /* @__PURE__ */ React.createElement(FormControl$1, _extends$
|
31235
|
+
return /* @__PURE__ */ React.createElement(FormControl$1, _extends$2({
|
31338
31236
|
className: clsx(classes.root, className),
|
31339
31237
|
disabled,
|
31340
31238
|
error: error2,
|
@@ -31344,16 +31242,16 @@ var TextField = /* @__PURE__ */ React.forwardRef(function TextField2(props, ref2
|
|
31344
31242
|
required: required2,
|
31345
31243
|
color: color2,
|
31346
31244
|
variant
|
31347
|
-
}, other), label2 && /* @__PURE__ */ React.createElement(InputLabel$1, _extends$
|
31245
|
+
}, other), label2 && /* @__PURE__ */ React.createElement(InputLabel$1, _extends$2({
|
31348
31246
|
htmlFor: id2,
|
31349
31247
|
id: inputLabelId
|
31350
|
-
}, InputLabelProps), label2), select2 ? /* @__PURE__ */ React.createElement(Select$1, _extends$
|
31248
|
+
}, InputLabelProps), label2), select2 ? /* @__PURE__ */ React.createElement(Select$1, _extends$2({
|
31351
31249
|
"aria-describedby": helperTextId,
|
31352
31250
|
id: id2,
|
31353
31251
|
labelId: inputLabelId,
|
31354
31252
|
value: value2,
|
31355
31253
|
input: InputElement
|
31356
|
-
}, SelectProps), children2) : InputElement, helperText && /* @__PURE__ */ React.createElement(FormHelperText$1, _extends$
|
31254
|
+
}, SelectProps), children2) : InputElement, helperText && /* @__PURE__ */ React.createElement(FormHelperText$1, _extends$2({
|
31357
31255
|
id: helperTextId
|
31358
31256
|
}, FormHelperTextProps), helperText));
|
31359
31257
|
});
|
@@ -31555,13 +31453,13 @@ const matches = typeof process !== "undefined" && process.version && /v([0-9]*)/
|
|
31555
31453
|
matches && parseFloat(matches[1]) || 0;
|
31556
31454
|
class WorkerJob {
|
31557
31455
|
constructor(jobName, workerThread) {
|
31558
|
-
_defineProperty$
|
31559
|
-
_defineProperty$
|
31560
|
-
_defineProperty$
|
31561
|
-
_defineProperty$
|
31562
|
-
_defineProperty$
|
31456
|
+
_defineProperty$h(this, "name", void 0);
|
31457
|
+
_defineProperty$h(this, "workerThread", void 0);
|
31458
|
+
_defineProperty$h(this, "isRunning", true);
|
31459
|
+
_defineProperty$h(this, "result", void 0);
|
31460
|
+
_defineProperty$h(this, "_resolve", () => {
|
31563
31461
|
});
|
31564
|
-
_defineProperty$
|
31462
|
+
_defineProperty$h(this, "_reject", () => {
|
31565
31463
|
});
|
31566
31464
|
this.name = jobName;
|
31567
31465
|
this.workerThread = workerThread;
|
@@ -31665,14 +31563,14 @@ class WorkerThread {
|
|
31665
31563
|
return typeof Worker !== "undefined" && isBrowser$2 || typeof Worker$1 !== "undefined" && !isBrowser$2;
|
31666
31564
|
}
|
31667
31565
|
constructor(props) {
|
31668
|
-
_defineProperty$
|
31669
|
-
_defineProperty$
|
31670
|
-
_defineProperty$
|
31671
|
-
_defineProperty$
|
31672
|
-
_defineProperty$
|
31673
|
-
_defineProperty$
|
31674
|
-
_defineProperty$
|
31675
|
-
_defineProperty$
|
31566
|
+
_defineProperty$h(this, "name", void 0);
|
31567
|
+
_defineProperty$h(this, "source", void 0);
|
31568
|
+
_defineProperty$h(this, "url", void 0);
|
31569
|
+
_defineProperty$h(this, "terminated", false);
|
31570
|
+
_defineProperty$h(this, "worker", void 0);
|
31571
|
+
_defineProperty$h(this, "onMessage", void 0);
|
31572
|
+
_defineProperty$h(this, "onError", void 0);
|
31573
|
+
_defineProperty$h(this, "_loadableURL", "");
|
31676
31574
|
const {
|
31677
31575
|
name: name2,
|
31678
31576
|
source: source2,
|
@@ -31763,19 +31661,19 @@ class WorkerPool {
|
|
31763
31661
|
return WorkerThread.isSupported();
|
31764
31662
|
}
|
31765
31663
|
constructor(props) {
|
31766
|
-
_defineProperty$
|
31767
|
-
_defineProperty$
|
31768
|
-
_defineProperty$
|
31769
|
-
_defineProperty$
|
31770
|
-
_defineProperty$
|
31771
|
-
_defineProperty$
|
31772
|
-
});
|
31773
|
-
_defineProperty$
|
31774
|
-
_defineProperty$
|
31775
|
-
_defineProperty$
|
31776
|
-
_defineProperty$
|
31777
|
-
_defineProperty$
|
31778
|
-
_defineProperty$
|
31664
|
+
_defineProperty$h(this, "name", "unnamed");
|
31665
|
+
_defineProperty$h(this, "source", void 0);
|
31666
|
+
_defineProperty$h(this, "url", void 0);
|
31667
|
+
_defineProperty$h(this, "maxConcurrency", 1);
|
31668
|
+
_defineProperty$h(this, "maxMobileConcurrency", 1);
|
31669
|
+
_defineProperty$h(this, "onDebug", () => {
|
31670
|
+
});
|
31671
|
+
_defineProperty$h(this, "reuseWorkers", true);
|
31672
|
+
_defineProperty$h(this, "props", {});
|
31673
|
+
_defineProperty$h(this, "jobQueue", []);
|
31674
|
+
_defineProperty$h(this, "idleQueue", []);
|
31675
|
+
_defineProperty$h(this, "count", 0);
|
31676
|
+
_defineProperty$h(this, "isDestroyed", false);
|
31779
31677
|
this.source = props.source;
|
31780
31678
|
this.url = props.url;
|
31781
31679
|
this.setProps(props);
|
@@ -31893,8 +31791,8 @@ class WorkerFarm {
|
|
31893
31791
|
return WorkerFarm._workerFarm;
|
31894
31792
|
}
|
31895
31793
|
constructor(props) {
|
31896
|
-
_defineProperty$
|
31897
|
-
_defineProperty$
|
31794
|
+
_defineProperty$h(this, "props", void 0);
|
31795
|
+
_defineProperty$h(this, "workerPools", /* @__PURE__ */ new Map());
|
31898
31796
|
this.props = {
|
31899
31797
|
...DEFAULT_PROPS$4
|
31900
31798
|
};
|
@@ -31943,7 +31841,7 @@ class WorkerFarm {
|
|
31943
31841
|
};
|
31944
31842
|
}
|
31945
31843
|
}
|
31946
|
-
_defineProperty$
|
31844
|
+
_defineProperty$h(WorkerFarm, "_workerFarm", void 0);
|
31947
31845
|
const NPM_TAG = "latest";
|
31948
31846
|
function getWorkerURL(worker, options = {}) {
|
31949
31847
|
const workerOptions = options[worker.id] || {};
|
@@ -32250,20 +32148,20 @@ function getHiResTimestamp$1() {
|
|
32250
32148
|
}
|
32251
32149
|
class Stat {
|
32252
32150
|
constructor(name2, type2) {
|
32253
|
-
_defineProperty$
|
32254
|
-
_defineProperty$
|
32255
|
-
_defineProperty$
|
32256
|
-
_defineProperty$
|
32257
|
-
_defineProperty$
|
32258
|
-
_defineProperty$
|
32259
|
-
_defineProperty$
|
32260
|
-
_defineProperty$
|
32261
|
-
_defineProperty$
|
32262
|
-
_defineProperty$
|
32263
|
-
_defineProperty$
|
32264
|
-
_defineProperty$
|
32265
|
-
_defineProperty$
|
32266
|
-
_defineProperty$
|
32151
|
+
_defineProperty$h(this, "name", void 0);
|
32152
|
+
_defineProperty$h(this, "type", void 0);
|
32153
|
+
_defineProperty$h(this, "sampleSize", 1);
|
32154
|
+
_defineProperty$h(this, "time", void 0);
|
32155
|
+
_defineProperty$h(this, "count", void 0);
|
32156
|
+
_defineProperty$h(this, "samples", void 0);
|
32157
|
+
_defineProperty$h(this, "lastTiming", void 0);
|
32158
|
+
_defineProperty$h(this, "lastSampleTime", void 0);
|
32159
|
+
_defineProperty$h(this, "lastSampleCount", void 0);
|
32160
|
+
_defineProperty$h(this, "_count", 0);
|
32161
|
+
_defineProperty$h(this, "_time", 0);
|
32162
|
+
_defineProperty$h(this, "_samples", 0);
|
32163
|
+
_defineProperty$h(this, "_startTime", 0);
|
32164
|
+
_defineProperty$h(this, "_timerPending", false);
|
32267
32165
|
this.name = name2;
|
32268
32166
|
this.type = type2;
|
32269
32167
|
this.reset();
|
@@ -32360,8 +32258,8 @@ class Stat {
|
|
32360
32258
|
}
|
32361
32259
|
class Stats {
|
32362
32260
|
constructor(options) {
|
32363
|
-
_defineProperty$
|
32364
|
-
_defineProperty$
|
32261
|
+
_defineProperty$h(this, "id", void 0);
|
32262
|
+
_defineProperty$h(this, "stats", {});
|
32365
32263
|
this.id = options.id;
|
32366
32264
|
this.stats = {};
|
32367
32265
|
this._initializeStats(options.stats);
|
@@ -32434,12 +32332,12 @@ const DEFAULT_PROPS$3 = {
|
|
32434
32332
|
};
|
32435
32333
|
class RequestScheduler {
|
32436
32334
|
constructor(props = {}) {
|
32437
|
-
_defineProperty$
|
32438
|
-
_defineProperty$
|
32439
|
-
_defineProperty$
|
32440
|
-
_defineProperty$
|
32441
|
-
_defineProperty$
|
32442
|
-
_defineProperty$
|
32335
|
+
_defineProperty$h(this, "props", void 0);
|
32336
|
+
_defineProperty$h(this, "stats", void 0);
|
32337
|
+
_defineProperty$h(this, "activeRequestCount", 0);
|
32338
|
+
_defineProperty$h(this, "requestQueue", []);
|
32339
|
+
_defineProperty$h(this, "requestMap", /* @__PURE__ */ new Map());
|
32340
|
+
_defineProperty$h(this, "deferredUpdate", null);
|
32443
32341
|
this.props = {
|
32444
32342
|
...DEFAULT_PROPS$3,
|
32445
32343
|
...props
|
@@ -32802,9 +32700,9 @@ class LocalStorage {
|
|
32802
32700
|
constructor(id2) {
|
32803
32701
|
let defaultSettings = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
32804
32702
|
let type2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "sessionStorage";
|
32805
|
-
_defineProperty$
|
32806
|
-
_defineProperty$
|
32807
|
-
_defineProperty$
|
32703
|
+
_defineProperty$h(this, "storage", void 0);
|
32704
|
+
_defineProperty$h(this, "id", void 0);
|
32705
|
+
_defineProperty$h(this, "config", {});
|
32808
32706
|
this.storage = getStorage(type2);
|
32809
32707
|
this.id = id2;
|
32810
32708
|
this.config = {};
|
@@ -32955,13 +32853,13 @@ let Log$2 = class Log {
|
|
32955
32853
|
} = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
32956
32854
|
id: ""
|
32957
32855
|
};
|
32958
|
-
_defineProperty$
|
32959
|
-
_defineProperty$
|
32960
|
-
_defineProperty$
|
32961
|
-
_defineProperty$
|
32962
|
-
_defineProperty$
|
32963
|
-
_defineProperty$
|
32964
|
-
_defineProperty$
|
32856
|
+
_defineProperty$h(this, "id", void 0);
|
32857
|
+
_defineProperty$h(this, "VERSION", VERSION$a);
|
32858
|
+
_defineProperty$h(this, "_startTs", getHiResTimestamp());
|
32859
|
+
_defineProperty$h(this, "_deltaTs", getHiResTimestamp());
|
32860
|
+
_defineProperty$h(this, "_storage", void 0);
|
32861
|
+
_defineProperty$h(this, "userData", {});
|
32862
|
+
_defineProperty$h(this, "LOG_THROTTLE_TIMEOUT", 0);
|
32965
32863
|
this.id = id2;
|
32966
32864
|
this._storage = new LocalStorage("__probe-".concat(this.id, "__"), DEFAULT_SETTINGS);
|
32967
32865
|
this.userData = {};
|
@@ -33162,7 +33060,7 @@ let Log$2 = class Log {
|
|
33162
33060
|
return noop$9;
|
33163
33061
|
}
|
33164
33062
|
};
|
33165
|
-
_defineProperty$
|
33063
|
+
_defineProperty$h(Log$2, "VERSION", VERSION$a);
|
33166
33064
|
function normalizeLogLevel(logLevel) {
|
33167
33065
|
if (!logLevel) {
|
33168
33066
|
return 0;
|
@@ -33291,7 +33189,7 @@ class NullLog {
|
|
33291
33189
|
}
|
33292
33190
|
class ConsoleLog {
|
33293
33191
|
constructor() {
|
33294
|
-
_defineProperty$
|
33192
|
+
_defineProperty$h(this, "console", void 0);
|
33295
33193
|
this.console = console;
|
33296
33194
|
}
|
33297
33195
|
log(...args) {
|
@@ -45115,10 +45013,10 @@ class SphericalCoordinates {
|
|
45115
45013
|
altitude,
|
45116
45014
|
radiusScale = EARTH_RADIUS_METERS
|
45117
45015
|
} = {}) {
|
45118
|
-
_defineProperty$
|
45119
|
-
_defineProperty$
|
45120
|
-
_defineProperty$
|
45121
|
-
_defineProperty$
|
45016
|
+
_defineProperty$h(this, "phi", void 0);
|
45017
|
+
_defineProperty$h(this, "theta", void 0);
|
45018
|
+
_defineProperty$h(this, "radius", void 0);
|
45019
|
+
_defineProperty$h(this, "radiusScale", void 0);
|
45122
45020
|
this.phi = phi2;
|
45123
45021
|
this.theta = theta;
|
45124
45022
|
this.radius = radius2 || altitude || 1;
|
@@ -45652,8 +45550,8 @@ class Pose {
|
|
45652
45550
|
position: position2,
|
45653
45551
|
orientation
|
45654
45552
|
} = {}) {
|
45655
|
-
_defineProperty$
|
45656
|
-
_defineProperty$
|
45553
|
+
_defineProperty$h(this, "position", void 0);
|
45554
|
+
_defineProperty$h(this, "orientation", void 0);
|
45657
45555
|
if (Array.isArray(position2) && position2.length === 3) {
|
45658
45556
|
this.position = new Vector3(position2);
|
45659
45557
|
} else {
|
@@ -48925,31 +48823,31 @@ let WebMercatorViewport$1 = class WebMercatorViewport {
|
|
48925
48823
|
width: 1,
|
48926
48824
|
height: 1
|
48927
48825
|
}) {
|
48928
|
-
_defineProperty$
|
48929
|
-
_defineProperty$
|
48930
|
-
_defineProperty$
|
48931
|
-
_defineProperty$
|
48932
|
-
_defineProperty$
|
48933
|
-
_defineProperty$
|
48934
|
-
_defineProperty$
|
48935
|
-
_defineProperty$
|
48936
|
-
_defineProperty$
|
48937
|
-
_defineProperty$
|
48938
|
-
_defineProperty$
|
48939
|
-
_defineProperty$
|
48940
|
-
_defineProperty$
|
48941
|
-
_defineProperty$
|
48942
|
-
_defineProperty$
|
48943
|
-
_defineProperty$
|
48944
|
-
_defineProperty$
|
48945
|
-
_defineProperty$
|
48946
|
-
_defineProperty$
|
48826
|
+
_defineProperty$h(this, "latitude", void 0);
|
48827
|
+
_defineProperty$h(this, "longitude", void 0);
|
48828
|
+
_defineProperty$h(this, "zoom", void 0);
|
48829
|
+
_defineProperty$h(this, "pitch", void 0);
|
48830
|
+
_defineProperty$h(this, "bearing", void 0);
|
48831
|
+
_defineProperty$h(this, "altitude", void 0);
|
48832
|
+
_defineProperty$h(this, "fovy", void 0);
|
48833
|
+
_defineProperty$h(this, "meterOffset", void 0);
|
48834
|
+
_defineProperty$h(this, "center", void 0);
|
48835
|
+
_defineProperty$h(this, "width", void 0);
|
48836
|
+
_defineProperty$h(this, "height", void 0);
|
48837
|
+
_defineProperty$h(this, "scale", void 0);
|
48838
|
+
_defineProperty$h(this, "distanceScales", void 0);
|
48839
|
+
_defineProperty$h(this, "viewMatrix", void 0);
|
48840
|
+
_defineProperty$h(this, "projectionMatrix", void 0);
|
48841
|
+
_defineProperty$h(this, "viewProjectionMatrix", void 0);
|
48842
|
+
_defineProperty$h(this, "pixelProjectionMatrix", void 0);
|
48843
|
+
_defineProperty$h(this, "pixelUnprojectionMatrix", void 0);
|
48844
|
+
_defineProperty$h(this, "equals", (viewport) => {
|
48947
48845
|
if (!(viewport instanceof WebMercatorViewport)) {
|
48948
48846
|
return false;
|
48949
48847
|
}
|
48950
48848
|
return viewport.width === this.width && viewport.height === this.height && equals$2(viewport.projectionMatrix, this.projectionMatrix) && equals$2(viewport.viewMatrix, this.viewMatrix);
|
48951
48849
|
});
|
48952
|
-
_defineProperty$
|
48850
|
+
_defineProperty$h(this, "project", (lngLatZ, options = {}) => {
|
48953
48851
|
const {
|
48954
48852
|
topLeft = true
|
48955
48853
|
} = options;
|
@@ -48959,7 +48857,7 @@ let WebMercatorViewport$1 = class WebMercatorViewport {
|
|
48959
48857
|
const y22 = topLeft ? y2 : this.height - y2;
|
48960
48858
|
return lngLatZ.length === 2 ? [x2, y22] : [x2, y22, coord[2]];
|
48961
48859
|
});
|
48962
|
-
_defineProperty$
|
48860
|
+
_defineProperty$h(this, "unproject", (xyz, options = {}) => {
|
48963
48861
|
const {
|
48964
48862
|
topLeft = true,
|
48965
48863
|
targetZ = void 0
|
@@ -48974,12 +48872,12 @@ let WebMercatorViewport$1 = class WebMercatorViewport {
|
|
48974
48872
|
}
|
48975
48873
|
return Number.isFinite(targetZ) ? [X3, Y3, targetZ] : [X3, Y3];
|
48976
48874
|
});
|
48977
|
-
_defineProperty$
|
48875
|
+
_defineProperty$h(this, "projectPosition", (xyz) => {
|
48978
48876
|
const [X3, Y3] = lngLatToWorld(xyz);
|
48979
48877
|
const Z = (xyz[2] || 0) * this.distanceScales.unitsPerMeter[2];
|
48980
48878
|
return [X3, Y3, Z];
|
48981
48879
|
});
|
48982
|
-
_defineProperty$
|
48880
|
+
_defineProperty$h(this, "unprojectPosition", (xyz) => {
|
48983
48881
|
const [X3, Y3] = worldToLngLat(xyz);
|
48984
48882
|
const Z = (xyz[2] || 0) * this.distanceScales.metersPerUnit[2];
|
48985
48883
|
return [X3, Y3, Z];
|
@@ -49416,10 +49314,10 @@ const DEFAULT_LIGHT_INTENSITY$2 = 1;
|
|
49416
49314
|
let idCount$2 = 0;
|
49417
49315
|
class AmbientLight {
|
49418
49316
|
constructor(props = {}) {
|
49419
|
-
_defineProperty$
|
49420
|
-
_defineProperty$
|
49421
|
-
_defineProperty$
|
49422
|
-
_defineProperty$
|
49317
|
+
_defineProperty$h(this, "id", void 0);
|
49318
|
+
_defineProperty$h(this, "color", void 0);
|
49319
|
+
_defineProperty$h(this, "intensity", void 0);
|
49320
|
+
_defineProperty$h(this, "type", "ambient");
|
49423
49321
|
const {
|
49424
49322
|
color: color2 = DEFAULT_LIGHT_COLOR$2
|
49425
49323
|
} = props;
|
@@ -49437,12 +49335,12 @@ const DEFAULT_LIGHT_DIRECTION = [0, 0, -1];
|
|
49437
49335
|
let idCount$1 = 0;
|
49438
49336
|
class DirectionalLight {
|
49439
49337
|
constructor(props = {}) {
|
49440
|
-
_defineProperty$
|
49441
|
-
_defineProperty$
|
49442
|
-
_defineProperty$
|
49443
|
-
_defineProperty$
|
49444
|
-
_defineProperty$
|
49445
|
-
_defineProperty$
|
49338
|
+
_defineProperty$h(this, "id", void 0);
|
49339
|
+
_defineProperty$h(this, "color", void 0);
|
49340
|
+
_defineProperty$h(this, "intensity", void 0);
|
49341
|
+
_defineProperty$h(this, "type", "directional");
|
49342
|
+
_defineProperty$h(this, "direction", void 0);
|
49343
|
+
_defineProperty$h(this, "shadow", void 0);
|
49446
49344
|
const {
|
49447
49345
|
color: color2 = DEFAULT_LIGHT_COLOR$1
|
49448
49346
|
} = props;
|
@@ -49470,9 +49368,9 @@ class Pass {
|
|
49470
49368
|
constructor(gl, props = {
|
49471
49369
|
id: "pass"
|
49472
49370
|
}) {
|
49473
|
-
_defineProperty$
|
49474
|
-
_defineProperty$
|
49475
|
-
_defineProperty$
|
49371
|
+
_defineProperty$h(this, "id", void 0);
|
49372
|
+
_defineProperty$h(this, "gl", void 0);
|
49373
|
+
_defineProperty$h(this, "props", void 0);
|
49476
49374
|
const {
|
49477
49375
|
id: id2
|
49478
49376
|
} = props;
|
@@ -49493,7 +49391,7 @@ class Pass {
|
|
49493
49391
|
class LayersPass extends Pass {
|
49494
49392
|
constructor(...args) {
|
49495
49393
|
super(...args);
|
49496
|
-
_defineProperty$
|
49394
|
+
_defineProperty$h(this, "_lastRenderIndex", -1);
|
49497
49395
|
}
|
49498
49396
|
render(options) {
|
49499
49397
|
const gl = this.gl;
|
@@ -49740,9 +49638,9 @@ function clearGLCanvas(gl) {
|
|
49740
49638
|
class ShadowPass extends LayersPass {
|
49741
49639
|
constructor(gl, props) {
|
49742
49640
|
super(gl, props);
|
49743
|
-
_defineProperty$
|
49744
|
-
_defineProperty$
|
49745
|
-
_defineProperty$
|
49641
|
+
_defineProperty$h(this, "shadowMap", void 0);
|
49642
|
+
_defineProperty$h(this, "depthBuffer", void 0);
|
49643
|
+
_defineProperty$h(this, "fbo", void 0);
|
49746
49644
|
this.shadowMap = new Texture2D(gl, {
|
49747
49645
|
width: 1,
|
49748
49646
|
height: 1,
|
@@ -49832,18 +49730,18 @@ const DEFAULT_DIRECTIONAL_LIGHT_PROPS = [{
|
|
49832
49730
|
const DEFAULT_SHADOW_COLOR = [0, 0, 0, 200 / 255];
|
49833
49731
|
class LightingEffect {
|
49834
49732
|
constructor(props = {}) {
|
49835
|
-
_defineProperty$
|
49836
|
-
_defineProperty$
|
49837
|
-
_defineProperty$
|
49838
|
-
_defineProperty$
|
49839
|
-
_defineProperty$
|
49840
|
-
_defineProperty$
|
49841
|
-
_defineProperty$
|
49842
|
-
_defineProperty$
|
49843
|
-
_defineProperty$
|
49844
|
-
_defineProperty$
|
49845
|
-
_defineProperty$
|
49846
|
-
_defineProperty$
|
49733
|
+
_defineProperty$h(this, "id", "lighting-effect");
|
49734
|
+
_defineProperty$h(this, "props", null);
|
49735
|
+
_defineProperty$h(this, "shadowColor", DEFAULT_SHADOW_COLOR);
|
49736
|
+
_defineProperty$h(this, "shadow", void 0);
|
49737
|
+
_defineProperty$h(this, "ambientLight", null);
|
49738
|
+
_defineProperty$h(this, "directionalLights", []);
|
49739
|
+
_defineProperty$h(this, "pointLights", []);
|
49740
|
+
_defineProperty$h(this, "shadowPasses", []);
|
49741
|
+
_defineProperty$h(this, "shadowMaps", []);
|
49742
|
+
_defineProperty$h(this, "dummyShadowMap", null);
|
49743
|
+
_defineProperty$h(this, "programManager", void 0);
|
49744
|
+
_defineProperty$h(this, "shadowMatrices", void 0);
|
49847
49745
|
for (const key2 in props) {
|
49848
49746
|
const lightSource = props[key2];
|
49849
49747
|
switch (lightSource.type) {
|
@@ -49966,8 +49864,8 @@ class LightingEffect {
|
|
49966
49864
|
}
|
49967
49865
|
class TypedArrayManager {
|
49968
49866
|
constructor(options = {}) {
|
49969
|
-
_defineProperty$
|
49970
|
-
_defineProperty$
|
49867
|
+
_defineProperty$h(this, "_pool", []);
|
49868
|
+
_defineProperty$h(this, "opts", {
|
49971
49869
|
overAlloc: 2,
|
49972
49870
|
poolSize: 100
|
49973
49871
|
});
|
@@ -50152,30 +50050,30 @@ function createProjectionMatrix({
|
|
50152
50050
|
}
|
50153
50051
|
class Viewport {
|
50154
50052
|
constructor(opts2 = {}) {
|
50155
|
-
_defineProperty$
|
50156
|
-
_defineProperty$
|
50157
|
-
_defineProperty$
|
50158
|
-
_defineProperty$
|
50159
|
-
_defineProperty$
|
50160
|
-
_defineProperty$
|
50161
|
-
_defineProperty$
|
50162
|
-
_defineProperty$
|
50163
|
-
_defineProperty$
|
50164
|
-
_defineProperty$
|
50165
|
-
_defineProperty$
|
50166
|
-
_defineProperty$
|
50167
|
-
_defineProperty$
|
50168
|
-
_defineProperty$
|
50169
|
-
_defineProperty$
|
50170
|
-
_defineProperty$
|
50171
|
-
_defineProperty$
|
50172
|
-
_defineProperty$
|
50173
|
-
_defineProperty$
|
50174
|
-
_defineProperty$
|
50175
|
-
_defineProperty$
|
50176
|
-
_defineProperty$
|
50177
|
-
_defineProperty$
|
50178
|
-
_defineProperty$
|
50053
|
+
_defineProperty$h(this, "id", void 0);
|
50054
|
+
_defineProperty$h(this, "x", void 0);
|
50055
|
+
_defineProperty$h(this, "y", void 0);
|
50056
|
+
_defineProperty$h(this, "width", void 0);
|
50057
|
+
_defineProperty$h(this, "height", void 0);
|
50058
|
+
_defineProperty$h(this, "padding", void 0);
|
50059
|
+
_defineProperty$h(this, "isGeospatial", void 0);
|
50060
|
+
_defineProperty$h(this, "zoom", void 0);
|
50061
|
+
_defineProperty$h(this, "focalDistance", void 0);
|
50062
|
+
_defineProperty$h(this, "position", void 0);
|
50063
|
+
_defineProperty$h(this, "modelMatrix", void 0);
|
50064
|
+
_defineProperty$h(this, "distanceScales", void 0);
|
50065
|
+
_defineProperty$h(this, "scale", void 0);
|
50066
|
+
_defineProperty$h(this, "center", void 0);
|
50067
|
+
_defineProperty$h(this, "cameraPosition", void 0);
|
50068
|
+
_defineProperty$h(this, "projectionMatrix", void 0);
|
50069
|
+
_defineProperty$h(this, "viewMatrix", void 0);
|
50070
|
+
_defineProperty$h(this, "viewMatrixUncentered", void 0);
|
50071
|
+
_defineProperty$h(this, "viewMatrixInverse", void 0);
|
50072
|
+
_defineProperty$h(this, "viewProjectionMatrix", void 0);
|
50073
|
+
_defineProperty$h(this, "pixelProjectionMatrix", void 0);
|
50074
|
+
_defineProperty$h(this, "pixelUnprojectionMatrix", void 0);
|
50075
|
+
_defineProperty$h(this, "resolution", void 0);
|
50076
|
+
_defineProperty$h(this, "_frustumPlanes", {});
|
50179
50077
|
this.id = opts2.id || this.constructor.displayName || "viewport";
|
50180
50078
|
this.x = opts2.x || 0;
|
50181
50079
|
this.y = opts2.y || 0;
|
@@ -50381,7 +50279,7 @@ class Viewport {
|
|
50381
50279
|
}
|
50382
50280
|
}
|
50383
50281
|
}
|
50384
|
-
_defineProperty$
|
50282
|
+
_defineProperty$h(Viewport, "displayName", "Viewport");
|
50385
50283
|
const TILE_SIZE$4 = 512;
|
50386
50284
|
const EARTH_CIRCUMFERENCE = 4003e4;
|
50387
50285
|
const DEGREES_TO_RADIANS$3 = Math.PI / 180;
|
@@ -50457,15 +50355,15 @@ class WebMercatorViewport2 extends Viewport {
|
|
50457
50355
|
fovy,
|
50458
50356
|
focalDistance: altitude
|
50459
50357
|
});
|
50460
|
-
_defineProperty$
|
50461
|
-
_defineProperty$
|
50462
|
-
_defineProperty$
|
50463
|
-
_defineProperty$
|
50464
|
-
_defineProperty$
|
50465
|
-
_defineProperty$
|
50466
|
-
_defineProperty$
|
50467
|
-
_defineProperty$
|
50468
|
-
_defineProperty$
|
50358
|
+
_defineProperty$h(this, "longitude", void 0);
|
50359
|
+
_defineProperty$h(this, "latitude", void 0);
|
50360
|
+
_defineProperty$h(this, "pitch", void 0);
|
50361
|
+
_defineProperty$h(this, "bearing", void 0);
|
50362
|
+
_defineProperty$h(this, "altitude", void 0);
|
50363
|
+
_defineProperty$h(this, "fovy", void 0);
|
50364
|
+
_defineProperty$h(this, "orthographic", void 0);
|
50365
|
+
_defineProperty$h(this, "_subViewports", void 0);
|
50366
|
+
_defineProperty$h(this, "_pseudoMeters", void 0);
|
50469
50367
|
this.latitude = latitude;
|
50470
50368
|
this.longitude = longitude2;
|
50471
50369
|
this.zoom = zoom2;
|
@@ -50551,7 +50449,7 @@ class WebMercatorViewport2 extends Viewport {
|
|
50551
50449
|
});
|
50552
50450
|
}
|
50553
50451
|
}
|
50554
|
-
_defineProperty$
|
50452
|
+
_defineProperty$h(WebMercatorViewport2, "displayName", "WebMercatorViewport");
|
50555
50453
|
function lngLatZToWorldPosition(lngLatZ, viewport, offsetMode = false) {
|
50556
50454
|
const p = viewport.projectPosition(lngLatZ);
|
50557
50455
|
if (offsetMode && viewport instanceof WebMercatorViewport2) {
|
@@ -50647,13 +50545,13 @@ const DEFAULT_LIGHT_POSITION = [0, 0, 1];
|
|
50647
50545
|
let idCount = 0;
|
50648
50546
|
class PointLight {
|
50649
50547
|
constructor(props = {}) {
|
50650
|
-
_defineProperty$
|
50651
|
-
_defineProperty$
|
50652
|
-
_defineProperty$
|
50653
|
-
_defineProperty$
|
50654
|
-
_defineProperty$
|
50655
|
-
_defineProperty$
|
50656
|
-
_defineProperty$
|
50548
|
+
_defineProperty$h(this, "id", void 0);
|
50549
|
+
_defineProperty$h(this, "color", void 0);
|
50550
|
+
_defineProperty$h(this, "intensity", void 0);
|
50551
|
+
_defineProperty$h(this, "type", "point");
|
50552
|
+
_defineProperty$h(this, "position", void 0);
|
50553
|
+
_defineProperty$h(this, "attenuation", void 0);
|
50554
|
+
_defineProperty$h(this, "projectedLight", void 0);
|
50657
50555
|
const {
|
50658
50556
|
color: color2 = DEFAULT_LIGHT_COLOR
|
50659
50557
|
} = props;
|
@@ -50810,7 +50708,7 @@ function getSunCoords(dates) {
|
|
50810
50708
|
class SunLight extends DirectionalLight {
|
50811
50709
|
constructor(opts2) {
|
50812
50710
|
super(opts2);
|
50813
|
-
_defineProperty$
|
50711
|
+
_defineProperty$h(this, "timestamp", void 0);
|
50814
50712
|
this.timestamp = opts2.timestamp;
|
50815
50713
|
}
|
50816
50714
|
getProjectedLight({
|
@@ -50836,7 +50734,7 @@ class SunLight extends DirectionalLight {
|
|
50836
50734
|
class ScreenPass extends Pass {
|
50837
50735
|
constructor(gl, props) {
|
50838
50736
|
super(gl, props);
|
50839
|
-
_defineProperty$
|
50737
|
+
_defineProperty$h(this, "model", void 0);
|
50840
50738
|
const {
|
50841
50739
|
module: module2,
|
50842
50740
|
fs: fs2,
|
@@ -50884,10 +50782,10 @@ class ScreenPass extends Pass {
|
|
50884
50782
|
}
|
50885
50783
|
class PostProcessEffect {
|
50886
50784
|
constructor(module2, props = {}) {
|
50887
|
-
_defineProperty$
|
50888
|
-
_defineProperty$
|
50889
|
-
_defineProperty$
|
50890
|
-
_defineProperty$
|
50785
|
+
_defineProperty$h(this, "id", void 0);
|
50786
|
+
_defineProperty$h(this, "props", void 0);
|
50787
|
+
_defineProperty$h(this, "module", void 0);
|
50788
|
+
_defineProperty$h(this, "passes", void 0);
|
50891
50789
|
this.id = "".concat(module2.name, "-pass");
|
50892
50790
|
this.props = props;
|
50893
50791
|
normalizeShaderModule(module2);
|
@@ -51016,16 +50914,16 @@ function fillArray({
|
|
51016
50914
|
}
|
51017
50915
|
class Resource2 {
|
51018
50916
|
constructor(id2, data2, context2) {
|
51019
|
-
_defineProperty$
|
51020
|
-
_defineProperty$
|
51021
|
-
_defineProperty$
|
51022
|
-
_defineProperty$
|
51023
|
-
_defineProperty$
|
51024
|
-
_defineProperty$
|
51025
|
-
_defineProperty$
|
51026
|
-
_defineProperty$
|
51027
|
-
_defineProperty$
|
51028
|
-
_defineProperty$
|
50917
|
+
_defineProperty$h(this, "id", void 0);
|
50918
|
+
_defineProperty$h(this, "context", void 0);
|
50919
|
+
_defineProperty$h(this, "isLoaded", void 0);
|
50920
|
+
_defineProperty$h(this, "persistent", void 0);
|
50921
|
+
_defineProperty$h(this, "_loadCount", 0);
|
50922
|
+
_defineProperty$h(this, "_subscribers", /* @__PURE__ */ new Set());
|
50923
|
+
_defineProperty$h(this, "_data", void 0);
|
50924
|
+
_defineProperty$h(this, "_loader", void 0);
|
50925
|
+
_defineProperty$h(this, "_error", void 0);
|
50926
|
+
_defineProperty$h(this, "_content", void 0);
|
51029
50927
|
this.id = id2;
|
51030
50928
|
this.context = context2;
|
51031
50929
|
this.setData(data2);
|
@@ -51083,11 +50981,11 @@ class ResourceManager {
|
|
51083
50981
|
gl,
|
51084
50982
|
protocol
|
51085
50983
|
}) {
|
51086
|
-
_defineProperty$
|
51087
|
-
_defineProperty$
|
51088
|
-
_defineProperty$
|
51089
|
-
_defineProperty$
|
51090
|
-
_defineProperty$
|
50984
|
+
_defineProperty$h(this, "protocol", void 0);
|
50985
|
+
_defineProperty$h(this, "_context", void 0);
|
50986
|
+
_defineProperty$h(this, "_resources", void 0);
|
50987
|
+
_defineProperty$h(this, "_consumers", void 0);
|
50988
|
+
_defineProperty$h(this, "_pruneRequest", void 0);
|
51091
50989
|
this.protocol = protocol || "resource://";
|
51092
50990
|
this._context = {
|
51093
50991
|
gl,
|
@@ -51214,15 +51112,15 @@ class LayerManager {
|
|
51214
51112
|
viewport: _viewport,
|
51215
51113
|
timeline
|
51216
51114
|
} = {}) {
|
51217
|
-
_defineProperty$
|
51218
|
-
_defineProperty$
|
51219
|
-
_defineProperty$
|
51220
|
-
_defineProperty$
|
51221
|
-
_defineProperty$
|
51222
|
-
_defineProperty$
|
51223
|
-
_defineProperty$
|
51224
|
-
_defineProperty$
|
51225
|
-
_defineProperty$
|
51115
|
+
_defineProperty$h(this, "layers", void 0);
|
51116
|
+
_defineProperty$h(this, "context", void 0);
|
51117
|
+
_defineProperty$h(this, "resourceManager", void 0);
|
51118
|
+
_defineProperty$h(this, "_lastRenderedLayers", []);
|
51119
|
+
_defineProperty$h(this, "_needsRedraw", false);
|
51120
|
+
_defineProperty$h(this, "_needsUpdate", false);
|
51121
|
+
_defineProperty$h(this, "_nextLayers", null);
|
51122
|
+
_defineProperty$h(this, "_debug", false);
|
51123
|
+
_defineProperty$h(this, "activateViewport", (viewport) => {
|
51226
51124
|
debug$4(TRACE_ACTIVATE_VIEWPORT, this, viewport);
|
51227
51125
|
if (viewport) {
|
51228
51126
|
this.context.viewport = viewport;
|
@@ -51433,19 +51331,19 @@ function deepEqual$3(a2, b2) {
|
|
51433
51331
|
}
|
51434
51332
|
class ViewManager {
|
51435
51333
|
constructor(props) {
|
51436
|
-
_defineProperty$
|
51437
|
-
_defineProperty$
|
51438
|
-
_defineProperty$
|
51439
|
-
_defineProperty$
|
51440
|
-
_defineProperty$
|
51441
|
-
_defineProperty$
|
51442
|
-
_defineProperty$
|
51443
|
-
_defineProperty$
|
51444
|
-
_defineProperty$
|
51445
|
-
_defineProperty$
|
51446
|
-
_defineProperty$
|
51447
|
-
_defineProperty$
|
51448
|
-
_defineProperty$
|
51334
|
+
_defineProperty$h(this, "width", void 0);
|
51335
|
+
_defineProperty$h(this, "height", void 0);
|
51336
|
+
_defineProperty$h(this, "views", void 0);
|
51337
|
+
_defineProperty$h(this, "viewState", void 0);
|
51338
|
+
_defineProperty$h(this, "controllers", void 0);
|
51339
|
+
_defineProperty$h(this, "timeline", void 0);
|
51340
|
+
_defineProperty$h(this, "_viewports", void 0);
|
51341
|
+
_defineProperty$h(this, "_viewportMap", void 0);
|
51342
|
+
_defineProperty$h(this, "_isUpdating", void 0);
|
51343
|
+
_defineProperty$h(this, "_needsRedraw", void 0);
|
51344
|
+
_defineProperty$h(this, "_needsUpdate", void 0);
|
51345
|
+
_defineProperty$h(this, "_eventManager", void 0);
|
51346
|
+
_defineProperty$h(this, "_eventCallbacks", void 0);
|
51449
51347
|
this.views = [];
|
51450
51348
|
this.width = 100;
|
51451
51349
|
this.height = 100;
|
@@ -51719,14 +51617,14 @@ function assert$5(condition, message) {
|
|
51719
51617
|
}
|
51720
51618
|
let View$2 = class View {
|
51721
51619
|
constructor(props) {
|
51722
|
-
_defineProperty$
|
51723
|
-
_defineProperty$
|
51724
|
-
_defineProperty$
|
51725
|
-
_defineProperty$
|
51726
|
-
_defineProperty$
|
51727
|
-
_defineProperty$
|
51728
|
-
_defineProperty$
|
51729
|
-
_defineProperty$
|
51620
|
+
_defineProperty$h(this, "id", void 0);
|
51621
|
+
_defineProperty$h(this, "viewportInstance", void 0);
|
51622
|
+
_defineProperty$h(this, "_x", void 0);
|
51623
|
+
_defineProperty$h(this, "_y", void 0);
|
51624
|
+
_defineProperty$h(this, "_width", void 0);
|
51625
|
+
_defineProperty$h(this, "_height", void 0);
|
51626
|
+
_defineProperty$h(this, "_padding", void 0);
|
51627
|
+
_defineProperty$h(this, "props", void 0);
|
51730
51628
|
const {
|
51731
51629
|
id: id2,
|
51732
51630
|
x: x2 = 0,
|
@@ -51853,11 +51751,11 @@ let View$2 = class View {
|
|
51853
51751
|
};
|
51854
51752
|
class Transition {
|
51855
51753
|
constructor(timeline) {
|
51856
|
-
_defineProperty$
|
51857
|
-
_defineProperty$
|
51858
|
-
_defineProperty$
|
51859
|
-
_defineProperty$
|
51860
|
-
_defineProperty$
|
51754
|
+
_defineProperty$h(this, "_inProgress", void 0);
|
51755
|
+
_defineProperty$h(this, "_handle", void 0);
|
51756
|
+
_defineProperty$h(this, "_timeline", void 0);
|
51757
|
+
_defineProperty$h(this, "time", void 0);
|
51758
|
+
_defineProperty$h(this, "settings", void 0);
|
51861
51759
|
this._inProgress = false;
|
51862
51760
|
this._handle = null;
|
51863
51761
|
this._timeline = timeline;
|
@@ -51931,13 +51829,13 @@ const DEFAULT_EASING = (t4) => t4;
|
|
51931
51829
|
const DEFAULT_INTERRUPTION = TRANSITION_EVENTS.BREAK;
|
51932
51830
|
class TransitionManager {
|
51933
51831
|
constructor(opts2) {
|
51934
|
-
_defineProperty$
|
51935
|
-
_defineProperty$
|
51936
|
-
_defineProperty$
|
51937
|
-
_defineProperty$
|
51938
|
-
_defineProperty$
|
51939
|
-
_defineProperty$
|
51940
|
-
_defineProperty$
|
51832
|
+
_defineProperty$h(this, "getControllerState", void 0);
|
51833
|
+
_defineProperty$h(this, "props", void 0);
|
51834
|
+
_defineProperty$h(this, "propsInTransition", void 0);
|
51835
|
+
_defineProperty$h(this, "transition", void 0);
|
51836
|
+
_defineProperty$h(this, "onViewStateChange", void 0);
|
51837
|
+
_defineProperty$h(this, "onStateChange", void 0);
|
51838
|
+
_defineProperty$h(this, "_onTransitionUpdate", (transition2) => {
|
51941
51839
|
const {
|
51942
51840
|
time: time2,
|
51943
51841
|
settings: {
|
@@ -52065,9 +51963,9 @@ class TransitionManager {
|
|
52065
51963
|
}
|
52066
51964
|
class TransitionInterpolator {
|
52067
51965
|
constructor(opts2) {
|
52068
|
-
_defineProperty$
|
52069
|
-
_defineProperty$
|
52070
|
-
_defineProperty$
|
51966
|
+
_defineProperty$h(this, "_propsToCompare", void 0);
|
51967
|
+
_defineProperty$h(this, "_propsToExtract", void 0);
|
51968
|
+
_defineProperty$h(this, "_requiredProps", void 0);
|
52071
51969
|
const {
|
52072
51970
|
compare: compare2,
|
52073
51971
|
extract,
|
@@ -52128,7 +52026,7 @@ class LinearInterpolator extends TransitionInterpolator {
|
|
52128
52026
|
required: DEFAULT_REQUIRED_PROPS
|
52129
52027
|
};
|
52130
52028
|
super(normalizedOpts.transitionProps);
|
52131
|
-
_defineProperty$
|
52029
|
+
_defineProperty$h(this, "opts", void 0);
|
52132
52030
|
this.opts = normalizedOpts;
|
52133
52031
|
}
|
52134
52032
|
initializeProps(startProps, endProps) {
|
@@ -52182,31 +52080,31 @@ const EVENT_TYPES = {
|
|
52182
52080
|
const pinchEventWorkaround = {};
|
52183
52081
|
class Controller {
|
52184
52082
|
constructor(opts2) {
|
52185
|
-
_defineProperty$
|
52186
|
-
_defineProperty$
|
52187
|
-
_defineProperty$
|
52188
|
-
_defineProperty$
|
52189
|
-
_defineProperty$
|
52190
|
-
_defineProperty$
|
52191
|
-
_defineProperty$
|
52192
|
-
_defineProperty$
|
52193
|
-
_defineProperty$
|
52194
|
-
_defineProperty$
|
52083
|
+
_defineProperty$h(this, "props", void 0);
|
52084
|
+
_defineProperty$h(this, "state", {});
|
52085
|
+
_defineProperty$h(this, "transitionManager", void 0);
|
52086
|
+
_defineProperty$h(this, "eventManager", void 0);
|
52087
|
+
_defineProperty$h(this, "onViewStateChange", void 0);
|
52088
|
+
_defineProperty$h(this, "onStateChange", void 0);
|
52089
|
+
_defineProperty$h(this, "makeViewport", void 0);
|
52090
|
+
_defineProperty$h(this, "_controllerState", void 0);
|
52091
|
+
_defineProperty$h(this, "_events", {});
|
52092
|
+
_defineProperty$h(this, "_interactionState", {
|
52195
52093
|
isDragging: false
|
52196
52094
|
});
|
52197
|
-
_defineProperty$
|
52198
|
-
_defineProperty$
|
52199
|
-
_defineProperty$
|
52200
|
-
_defineProperty$
|
52201
|
-
_defineProperty$
|
52202
|
-
_defineProperty$
|
52203
|
-
_defineProperty$
|
52204
|
-
_defineProperty$
|
52205
|
-
_defineProperty$
|
52206
|
-
_defineProperty$
|
52207
|
-
_defineProperty$
|
52208
|
-
_defineProperty$
|
52209
|
-
_defineProperty$
|
52095
|
+
_defineProperty$h(this, "_customEvents", []);
|
52096
|
+
_defineProperty$h(this, "_eventStartBlocked", null);
|
52097
|
+
_defineProperty$h(this, "_panMove", false);
|
52098
|
+
_defineProperty$h(this, "invertPan", false);
|
52099
|
+
_defineProperty$h(this, "dragMode", "rotate");
|
52100
|
+
_defineProperty$h(this, "inertia", 0);
|
52101
|
+
_defineProperty$h(this, "scrollZoom", true);
|
52102
|
+
_defineProperty$h(this, "dragPan", true);
|
52103
|
+
_defineProperty$h(this, "dragRotate", true);
|
52104
|
+
_defineProperty$h(this, "doubleClickZoom", true);
|
52105
|
+
_defineProperty$h(this, "touchZoom", true);
|
52106
|
+
_defineProperty$h(this, "touchRotate", false);
|
52107
|
+
_defineProperty$h(this, "keyboard", true);
|
52210
52108
|
this.transitionManager = new TransitionManager({
|
52211
52109
|
...opts2,
|
52212
52110
|
getControllerState: (props) => new this.ControllerState(props),
|
@@ -52817,8 +52715,8 @@ class Controller {
|
|
52817
52715
|
}
|
52818
52716
|
class ViewState {
|
52819
52717
|
constructor(props, state) {
|
52820
|
-
_defineProperty$
|
52821
|
-
_defineProperty$
|
52718
|
+
_defineProperty$h(this, "_viewportProps", void 0);
|
52719
|
+
_defineProperty$h(this, "_state", void 0);
|
52822
52720
|
this._viewportProps = this.applyConstraints(props);
|
52823
52721
|
this._state = state;
|
52824
52722
|
}
|
@@ -52881,7 +52779,7 @@ class MapState extends ViewState {
|
|
52881
52779
|
startPitch,
|
52882
52780
|
startZoom
|
52883
52781
|
});
|
52884
|
-
_defineProperty$
|
52782
|
+
_defineProperty$h(this, "makeViewport", void 0);
|
52885
52783
|
this.makeViewport = options.makeViewport;
|
52886
52784
|
}
|
52887
52785
|
panStart({
|
@@ -53141,8 +53039,8 @@ class MapState extends ViewState {
|
|
53141
53039
|
class MapController extends Controller {
|
53142
53040
|
constructor(...args) {
|
53143
53041
|
super(...args);
|
53144
|
-
_defineProperty$
|
53145
|
-
_defineProperty$
|
53042
|
+
_defineProperty$h(this, "ControllerState", MapState);
|
53043
|
+
_defineProperty$h(this, "transition", {
|
53146
53044
|
transitionDuration: 300,
|
53147
53045
|
transitionInterpolator: new LinearInterpolator({
|
53148
53046
|
transitionProps: {
|
@@ -53151,7 +53049,7 @@ class MapController extends Controller {
|
|
53151
53049
|
}
|
53152
53050
|
})
|
53153
53051
|
});
|
53154
|
-
_defineProperty$
|
53052
|
+
_defineProperty$h(this, "dragMode", "pan");
|
53155
53053
|
}
|
53156
53054
|
setProps(props) {
|
53157
53055
|
props.position = props.position || [0, 0, 0];
|
@@ -53175,12 +53073,12 @@ class MapView extends View$2 {
|
|
53175
53073
|
return MapController;
|
53176
53074
|
}
|
53177
53075
|
}
|
53178
|
-
_defineProperty$
|
53076
|
+
_defineProperty$h(MapView, "displayName", "MapView");
|
53179
53077
|
class MaskPass extends LayersPass {
|
53180
53078
|
constructor(gl, props) {
|
53181
53079
|
super(gl, props);
|
53182
|
-
_defineProperty$
|
53183
|
-
_defineProperty$
|
53080
|
+
_defineProperty$h(this, "maskMap", void 0);
|
53081
|
+
_defineProperty$h(this, "fbo", void 0);
|
53184
53082
|
const {
|
53185
53083
|
mapSize = 2048
|
53186
53084
|
} = props;
|
@@ -53367,7 +53265,7 @@ class OrbitState extends ViewState {
|
|
53367
53265
|
startZoomPosition,
|
53368
53266
|
startZoom
|
53369
53267
|
});
|
53370
|
-
_defineProperty$
|
53268
|
+
_defineProperty$h(this, "makeViewport", void 0);
|
53371
53269
|
this.makeViewport = options.makeViewport;
|
53372
53270
|
}
|
53373
53271
|
panStart({
|
@@ -53604,8 +53502,8 @@ class OrbitState extends ViewState {
|
|
53604
53502
|
class OrbitController extends Controller {
|
53605
53503
|
constructor(...args) {
|
53606
53504
|
super(...args);
|
53607
|
-
_defineProperty$
|
53608
|
-
_defineProperty$
|
53505
|
+
_defineProperty$h(this, "ControllerState", OrbitState);
|
53506
|
+
_defineProperty$h(this, "transition", {
|
53609
53507
|
transitionDuration: 300,
|
53610
53508
|
transitionInterpolator: new LinearInterpolator({
|
53611
53509
|
transitionProps: {
|
@@ -53619,7 +53517,7 @@ class OrbitController extends Controller {
|
|
53619
53517
|
class OrthographicState extends OrbitState {
|
53620
53518
|
constructor(props) {
|
53621
53519
|
super(props);
|
53622
|
-
_defineProperty$
|
53520
|
+
_defineProperty$h(this, "zoomAxis", void 0);
|
53623
53521
|
this.zoomAxis = props.zoomAxis || "all";
|
53624
53522
|
}
|
53625
53523
|
_calculateNewZoom({
|
@@ -53663,12 +53561,12 @@ class OrthographicState extends OrbitState {
|
|
53663
53561
|
class OrthographicController extends Controller {
|
53664
53562
|
constructor(...args) {
|
53665
53563
|
super(...args);
|
53666
|
-
_defineProperty$
|
53667
|
-
_defineProperty$
|
53564
|
+
_defineProperty$h(this, "ControllerState", OrthographicState);
|
53565
|
+
_defineProperty$h(this, "transition", {
|
53668
53566
|
transitionDuration: 300,
|
53669
53567
|
transitionInterpolator: new LinearInterpolator(["target", "zoom"])
|
53670
53568
|
});
|
53671
|
-
_defineProperty$
|
53569
|
+
_defineProperty$h(this, "dragMode", "pan");
|
53672
53570
|
}
|
53673
53571
|
_onPanRotate() {
|
53674
53572
|
return false;
|
@@ -53682,7 +53580,7 @@ class OrthographicView extends View$2 {
|
|
53682
53580
|
return OrthographicController;
|
53683
53581
|
}
|
53684
53582
|
}
|
53685
|
-
_defineProperty$
|
53583
|
+
_defineProperty$h(OrthographicView, "displayName", "OrthographicView");
|
53686
53584
|
function getMaskBounds({
|
53687
53585
|
layers,
|
53688
53586
|
viewport
|
@@ -53775,15 +53673,15 @@ function _doubleBounds(bounds2) {
|
|
53775
53673
|
}
|
53776
53674
|
class MaskEffect {
|
53777
53675
|
constructor() {
|
53778
|
-
_defineProperty$
|
53779
|
-
_defineProperty$
|
53780
|
-
_defineProperty$
|
53781
|
-
_defineProperty$
|
53782
|
-
_defineProperty$
|
53783
|
-
_defineProperty$
|
53784
|
-
_defineProperty$
|
53785
|
-
_defineProperty$
|
53786
|
-
_defineProperty$
|
53676
|
+
_defineProperty$h(this, "id", "mask-effect");
|
53677
|
+
_defineProperty$h(this, "props", null);
|
53678
|
+
_defineProperty$h(this, "useInPicking", true);
|
53679
|
+
_defineProperty$h(this, "dummyMaskMap", void 0);
|
53680
|
+
_defineProperty$h(this, "channels", []);
|
53681
|
+
_defineProperty$h(this, "masks", null);
|
53682
|
+
_defineProperty$h(this, "maskPass", void 0);
|
53683
|
+
_defineProperty$h(this, "maskMap", void 0);
|
53684
|
+
_defineProperty$h(this, "lastViewport", void 0);
|
53787
53685
|
}
|
53788
53686
|
preRender(gl, {
|
53789
53687
|
layers,
|
@@ -53943,9 +53841,9 @@ class MaskEffect {
|
|
53943
53841
|
const DEFAULT_LIGHTING_EFFECT = new LightingEffect();
|
53944
53842
|
class EffectManager {
|
53945
53843
|
constructor() {
|
53946
|
-
_defineProperty$
|
53947
|
-
_defineProperty$
|
53948
|
-
_defineProperty$
|
53844
|
+
_defineProperty$h(this, "effects", void 0);
|
53845
|
+
_defineProperty$h(this, "_internalEffects", void 0);
|
53846
|
+
_defineProperty$h(this, "_needsRedraw", void 0);
|
53949
53847
|
this.effects = [];
|
53950
53848
|
this._internalEffects = [];
|
53951
53849
|
this._needsRedraw = "Initial render";
|
@@ -54006,8 +53904,8 @@ const PICKING_PARAMETERS = {
|
|
54006
53904
|
class PickLayersPass extends LayersPass {
|
54007
53905
|
constructor(...args) {
|
54008
53906
|
super(...args);
|
54009
|
-
_defineProperty$
|
54010
|
-
_defineProperty$
|
53907
|
+
_defineProperty$h(this, "pickZ", void 0);
|
53908
|
+
_defineProperty$h(this, "_colors", null);
|
54011
53909
|
}
|
54012
53910
|
render(props) {
|
54013
53911
|
if (props.pickingFBO) {
|
@@ -54438,13 +54336,13 @@ function getViewportFromCoordinates(viewports, pixel) {
|
|
54438
54336
|
}
|
54439
54337
|
class DeckPicker {
|
54440
54338
|
constructor(gl) {
|
54441
|
-
_defineProperty$
|
54442
|
-
_defineProperty$
|
54443
|
-
_defineProperty$
|
54444
|
-
_defineProperty$
|
54445
|
-
_defineProperty$
|
54446
|
-
_defineProperty$
|
54447
|
-
_defineProperty$
|
54339
|
+
_defineProperty$h(this, "gl", void 0);
|
54340
|
+
_defineProperty$h(this, "pickingFBO", void 0);
|
54341
|
+
_defineProperty$h(this, "depthFBO", void 0);
|
54342
|
+
_defineProperty$h(this, "pickLayersPass", void 0);
|
54343
|
+
_defineProperty$h(this, "layerFilter", void 0);
|
54344
|
+
_defineProperty$h(this, "lastPickedInfo", void 0);
|
54345
|
+
_defineProperty$h(this, "_pickable", true);
|
54448
54346
|
this.gl = gl;
|
54449
54347
|
this.pickLayersPass = new PickLayersPass(gl);
|
54450
54348
|
this.lastPickedInfo = {
|
@@ -54816,8 +54714,8 @@ const defaultStyle$2 = {
|
|
54816
54714
|
};
|
54817
54715
|
class Tooltip {
|
54818
54716
|
constructor(canvas) {
|
54819
|
-
_defineProperty$
|
54820
|
-
_defineProperty$
|
54717
|
+
_defineProperty$h(this, "el", null);
|
54718
|
+
_defineProperty$h(this, "isVisible", false);
|
54821
54719
|
const canvasParent = canvas.parentElement;
|
54822
54720
|
if (canvasParent) {
|
54823
54721
|
this.el = document.createElement("div");
|
@@ -57547,28 +57445,28 @@ const defaultProps$M = {
|
|
57547
57445
|
};
|
57548
57446
|
class Deck {
|
57549
57447
|
constructor(props) {
|
57550
|
-
_defineProperty$
|
57551
|
-
_defineProperty$
|
57552
|
-
_defineProperty$
|
57553
|
-
_defineProperty$
|
57554
|
-
_defineProperty$
|
57555
|
-
_defineProperty$
|
57556
|
-
_defineProperty$
|
57557
|
-
_defineProperty$
|
57558
|
-
_defineProperty$
|
57559
|
-
_defineProperty$
|
57560
|
-
_defineProperty$
|
57561
|
-
_defineProperty$
|
57562
|
-
_defineProperty$
|
57563
|
-
_defineProperty$
|
57564
|
-
_defineProperty$
|
57565
|
-
_defineProperty$
|
57566
|
-
_defineProperty$
|
57567
|
-
_defineProperty$
|
57568
|
-
_defineProperty$
|
57569
|
-
_defineProperty$
|
57570
|
-
_defineProperty$
|
57571
|
-
_defineProperty$
|
57448
|
+
_defineProperty$h(this, "props", void 0);
|
57449
|
+
_defineProperty$h(this, "width", 0);
|
57450
|
+
_defineProperty$h(this, "height", 0);
|
57451
|
+
_defineProperty$h(this, "userData", {});
|
57452
|
+
_defineProperty$h(this, "canvas", null);
|
57453
|
+
_defineProperty$h(this, "viewManager", null);
|
57454
|
+
_defineProperty$h(this, "layerManager", null);
|
57455
|
+
_defineProperty$h(this, "effectManager", null);
|
57456
|
+
_defineProperty$h(this, "deckRenderer", null);
|
57457
|
+
_defineProperty$h(this, "deckPicker", null);
|
57458
|
+
_defineProperty$h(this, "eventManager", null);
|
57459
|
+
_defineProperty$h(this, "tooltip", null);
|
57460
|
+
_defineProperty$h(this, "metrics", void 0);
|
57461
|
+
_defineProperty$h(this, "animationLoop", void 0);
|
57462
|
+
_defineProperty$h(this, "stats", void 0);
|
57463
|
+
_defineProperty$h(this, "viewState", void 0);
|
57464
|
+
_defineProperty$h(this, "cursorState", void 0);
|
57465
|
+
_defineProperty$h(this, "_needsRedraw", void 0);
|
57466
|
+
_defineProperty$h(this, "_pickRequest", void 0);
|
57467
|
+
_defineProperty$h(this, "_lastPointerDownInfo", null);
|
57468
|
+
_defineProperty$h(this, "_metricsCounter", void 0);
|
57469
|
+
_defineProperty$h(this, "_onPointerMove", (event2) => {
|
57572
57470
|
const {
|
57573
57471
|
_pickRequest
|
57574
57472
|
} = this;
|
@@ -57595,7 +57493,7 @@ class Deck {
|
|
57595
57493
|
}
|
57596
57494
|
_pickRequest.event = event2;
|
57597
57495
|
});
|
57598
|
-
_defineProperty$
|
57496
|
+
_defineProperty$h(this, "_onEvent", (event2) => {
|
57599
57497
|
const eventOptions = EVENTS[event2.type];
|
57600
57498
|
const pos = event2.offsetCenter;
|
57601
57499
|
if (!eventOptions || !pos || !this.layerManager) {
|
@@ -57621,7 +57519,7 @@ class Deck {
|
|
57621
57519
|
rootHandler(info2, event2);
|
57622
57520
|
}
|
57623
57521
|
});
|
57624
|
-
_defineProperty$
|
57522
|
+
_defineProperty$h(this, "_onPointerDown", (event2) => {
|
57625
57523
|
const pos = event2.offsetCenter;
|
57626
57524
|
const pickedInfo = this._pick("pickObject", "pickObject Time", {
|
57627
57525
|
x: pos.x,
|
@@ -58133,12 +58031,12 @@ class Deck {
|
|
58133
58031
|
metrics.gpuMemory = memoryStats.get("GPU Memory").count;
|
58134
58032
|
}
|
58135
58033
|
}
|
58136
|
-
_defineProperty$
|
58137
|
-
_defineProperty$
|
58034
|
+
_defineProperty$h(Deck, "defaultProps", defaultProps$M);
|
58035
|
+
_defineProperty$h(Deck, "VERSION", deckGlobal.VERSION);
|
58138
58036
|
class ShaderAttribute {
|
58139
58037
|
constructor(dataColumn, opts2) {
|
58140
|
-
_defineProperty$
|
58141
|
-
_defineProperty$
|
58038
|
+
_defineProperty$h(this, "opts", void 0);
|
58039
|
+
_defineProperty$h(this, "source", void 0);
|
58142
58040
|
this.opts = opts2;
|
58143
58041
|
this.source = dataColumn;
|
58144
58042
|
}
|
@@ -58228,14 +58126,14 @@ function resolveDoublePrecisionShaderAttributes(baseAccessor, shaderAttributeOpt
|
|
58228
58126
|
}
|
58229
58127
|
class DataColumn {
|
58230
58128
|
constructor(gl, opts2, state) {
|
58231
|
-
_defineProperty$
|
58232
|
-
_defineProperty$
|
58233
|
-
_defineProperty$
|
58234
|
-
_defineProperty$
|
58235
|
-
_defineProperty$
|
58236
|
-
_defineProperty$
|
58237
|
-
_defineProperty$
|
58238
|
-
_defineProperty$
|
58129
|
+
_defineProperty$h(this, "gl", void 0);
|
58130
|
+
_defineProperty$h(this, "id", void 0);
|
58131
|
+
_defineProperty$h(this, "size", void 0);
|
58132
|
+
_defineProperty$h(this, "settings", void 0);
|
58133
|
+
_defineProperty$h(this, "value", void 0);
|
58134
|
+
_defineProperty$h(this, "doublePrecision", void 0);
|
58135
|
+
_defineProperty$h(this, "_buffer", void 0);
|
58136
|
+
_defineProperty$h(this, "state", void 0);
|
58239
58137
|
this.gl = gl;
|
58240
58138
|
this.id = opts2.id || "";
|
58241
58139
|
this.size = opts2.size || 1;
|
@@ -58888,7 +58786,7 @@ class Attribute extends DataColumn {
|
|
58888
58786
|
needsRedraw: false,
|
58889
58787
|
updateRanges: FULL
|
58890
58788
|
});
|
58891
|
-
_defineProperty$
|
58789
|
+
_defineProperty$h(this, "constant", false);
|
58892
58790
|
this.settings.update = opts2.update || (opts2.accessor ? this._autoUpdater : void 0);
|
58893
58791
|
Object.seal(this.settings);
|
58894
58792
|
Object.seal(this.state);
|
@@ -59210,16 +59108,16 @@ class GPUInterpolationTransition {
|
|
59210
59108
|
attribute,
|
59211
59109
|
timeline
|
59212
59110
|
}) {
|
59213
|
-
_defineProperty$
|
59214
|
-
_defineProperty$
|
59215
|
-
_defineProperty$
|
59216
|
-
_defineProperty$
|
59217
|
-
_defineProperty$
|
59218
|
-
_defineProperty$
|
59219
|
-
_defineProperty$
|
59220
|
-
_defineProperty$
|
59221
|
-
_defineProperty$
|
59222
|
-
_defineProperty$
|
59111
|
+
_defineProperty$h(this, "gl", void 0);
|
59112
|
+
_defineProperty$h(this, "type", "interpolation");
|
59113
|
+
_defineProperty$h(this, "attributeInTransition", void 0);
|
59114
|
+
_defineProperty$h(this, "settings", void 0);
|
59115
|
+
_defineProperty$h(this, "attribute", void 0);
|
59116
|
+
_defineProperty$h(this, "transition", void 0);
|
59117
|
+
_defineProperty$h(this, "currentStartIndices", void 0);
|
59118
|
+
_defineProperty$h(this, "currentLength", void 0);
|
59119
|
+
_defineProperty$h(this, "transform", void 0);
|
59120
|
+
_defineProperty$h(this, "buffers", void 0);
|
59223
59121
|
this.gl = gl;
|
59224
59122
|
this.transition = new Transition(timeline);
|
59225
59123
|
this.attribute = attribute;
|
@@ -59327,18 +59225,18 @@ class GPUSpringTransition {
|
|
59327
59225
|
attribute,
|
59328
59226
|
timeline
|
59329
59227
|
}) {
|
59330
|
-
_defineProperty$
|
59331
|
-
_defineProperty$
|
59332
|
-
_defineProperty$
|
59333
|
-
_defineProperty$
|
59334
|
-
_defineProperty$
|
59335
|
-
_defineProperty$
|
59336
|
-
_defineProperty$
|
59337
|
-
_defineProperty$
|
59338
|
-
_defineProperty$
|
59339
|
-
_defineProperty$
|
59340
|
-
_defineProperty$
|
59341
|
-
_defineProperty$
|
59228
|
+
_defineProperty$h(this, "gl", void 0);
|
59229
|
+
_defineProperty$h(this, "type", "spring");
|
59230
|
+
_defineProperty$h(this, "attributeInTransition", void 0);
|
59231
|
+
_defineProperty$h(this, "settings", void 0);
|
59232
|
+
_defineProperty$h(this, "attribute", void 0);
|
59233
|
+
_defineProperty$h(this, "transition", void 0);
|
59234
|
+
_defineProperty$h(this, "currentStartIndices", void 0);
|
59235
|
+
_defineProperty$h(this, "currentLength", void 0);
|
59236
|
+
_defineProperty$h(this, "texture", void 0);
|
59237
|
+
_defineProperty$h(this, "framebuffer", void 0);
|
59238
|
+
_defineProperty$h(this, "transform", void 0);
|
59239
|
+
_defineProperty$h(this, "buffers", void 0);
|
59342
59240
|
this.gl = gl;
|
59343
59241
|
this.type = "spring";
|
59344
59242
|
this.transition = new Transition(timeline);
|
@@ -59500,13 +59398,13 @@ class AttributeTransitionManager {
|
|
59500
59398
|
id: id2,
|
59501
59399
|
timeline
|
59502
59400
|
}) {
|
59503
|
-
_defineProperty$
|
59504
|
-
_defineProperty$
|
59505
|
-
_defineProperty$
|
59506
|
-
_defineProperty$
|
59507
|
-
_defineProperty$
|
59508
|
-
_defineProperty$
|
59509
|
-
_defineProperty$
|
59401
|
+
_defineProperty$h(this, "id", void 0);
|
59402
|
+
_defineProperty$h(this, "isSupported", void 0);
|
59403
|
+
_defineProperty$h(this, "gl", void 0);
|
59404
|
+
_defineProperty$h(this, "timeline", void 0);
|
59405
|
+
_defineProperty$h(this, "transitions", void 0);
|
59406
|
+
_defineProperty$h(this, "needsRedraw", void 0);
|
59407
|
+
_defineProperty$h(this, "numInstances", void 0);
|
59510
59408
|
this.id = id2;
|
59511
59409
|
this.gl = gl;
|
59512
59410
|
this.timeline = timeline;
|
@@ -59613,14 +59511,14 @@ class AttributeManager {
|
|
59613
59511
|
stats,
|
59614
59512
|
timeline
|
59615
59513
|
} = {}) {
|
59616
|
-
_defineProperty$
|
59617
|
-
_defineProperty$
|
59618
|
-
_defineProperty$
|
59619
|
-
_defineProperty$
|
59620
|
-
_defineProperty$
|
59621
|
-
_defineProperty$
|
59622
|
-
_defineProperty$
|
59623
|
-
_defineProperty$
|
59514
|
+
_defineProperty$h(this, "id", void 0);
|
59515
|
+
_defineProperty$h(this, "gl", void 0);
|
59516
|
+
_defineProperty$h(this, "attributes", void 0);
|
59517
|
+
_defineProperty$h(this, "updateTriggers", void 0);
|
59518
|
+
_defineProperty$h(this, "needsRedraw", void 0);
|
59519
|
+
_defineProperty$h(this, "userData", void 0);
|
59520
|
+
_defineProperty$h(this, "stats", void 0);
|
59521
|
+
_defineProperty$h(this, "attributeTransitionManager", void 0);
|
59624
59522
|
this.id = id2;
|
59625
59523
|
this.gl = gl;
|
59626
59524
|
this.attributes = {};
|
@@ -60599,9 +60497,9 @@ function getComponentName(componentClass) {
|
|
60599
60497
|
let counter = 0;
|
60600
60498
|
class Component {
|
60601
60499
|
constructor(...propObjects) {
|
60602
|
-
_defineProperty$
|
60603
|
-
_defineProperty$
|
60604
|
-
_defineProperty$
|
60500
|
+
_defineProperty$h(this, "id", void 0);
|
60501
|
+
_defineProperty$h(this, "props", void 0);
|
60502
|
+
_defineProperty$h(this, "count", void 0);
|
60605
60503
|
this.props = createProps(this, propObjects);
|
60606
60504
|
this.id = this.props.id;
|
60607
60505
|
this.count = counter++;
|
@@ -60625,16 +60523,16 @@ class Component {
|
|
60625
60523
|
});
|
60626
60524
|
}
|
60627
60525
|
}
|
60628
|
-
_defineProperty$
|
60629
|
-
_defineProperty$
|
60526
|
+
_defineProperty$h(Component, "componentName", "Component");
|
60527
|
+
_defineProperty$h(Component, "defaultProps", {});
|
60630
60528
|
const EMPTY_PROPS = Object.freeze({});
|
60631
60529
|
class ComponentState {
|
60632
60530
|
constructor(component) {
|
60633
|
-
_defineProperty$
|
60634
|
-
_defineProperty$
|
60635
|
-
_defineProperty$
|
60636
|
-
_defineProperty$
|
60637
|
-
_defineProperty$
|
60531
|
+
_defineProperty$h(this, "component", void 0);
|
60532
|
+
_defineProperty$h(this, "onAsyncPropUpdated", void 0);
|
60533
|
+
_defineProperty$h(this, "asyncProps", void 0);
|
60534
|
+
_defineProperty$h(this, "oldProps", void 0);
|
60535
|
+
_defineProperty$h(this, "oldAsyncProps", void 0);
|
60638
60536
|
this.component = component;
|
60639
60537
|
this.asyncProps = {};
|
60640
60538
|
this.onAsyncPropUpdated = () => {
|
@@ -60837,15 +60735,15 @@ class LayerState extends ComponentState {
|
|
60837
60735
|
layer
|
60838
60736
|
}) {
|
60839
60737
|
super(layer);
|
60840
|
-
_defineProperty$
|
60841
|
-
_defineProperty$
|
60842
|
-
_defineProperty$
|
60843
|
-
_defineProperty$
|
60844
|
-
_defineProperty$
|
60845
|
-
_defineProperty$
|
60846
|
-
_defineProperty$
|
60847
|
-
_defineProperty$
|
60848
|
-
_defineProperty$
|
60738
|
+
_defineProperty$h(this, "attributeManager", void 0);
|
60739
|
+
_defineProperty$h(this, "needsRedraw", void 0);
|
60740
|
+
_defineProperty$h(this, "needsUpdate", void 0);
|
60741
|
+
_defineProperty$h(this, "subLayers", void 0);
|
60742
|
+
_defineProperty$h(this, "usesPickingColorCache", void 0);
|
60743
|
+
_defineProperty$h(this, "changeFlags", void 0);
|
60744
|
+
_defineProperty$h(this, "viewport", void 0);
|
60745
|
+
_defineProperty$h(this, "uniformTransitions", void 0);
|
60746
|
+
_defineProperty$h(this, "propsInTransition", void 0);
|
60849
60747
|
this.attributeManager = attributeManager;
|
60850
60748
|
this.needsRedraw = true;
|
60851
60749
|
this.needsUpdate = true;
|
@@ -61065,11 +60963,11 @@ const defaultProps$L = {
|
|
61065
60963
|
class Layer extends Component {
|
61066
60964
|
constructor(...args) {
|
61067
60965
|
super(...args);
|
61068
|
-
_defineProperty$
|
61069
|
-
_defineProperty$
|
61070
|
-
_defineProperty$
|
61071
|
-
_defineProperty$
|
61072
|
-
_defineProperty$
|
60966
|
+
_defineProperty$h(this, "internalState", null);
|
60967
|
+
_defineProperty$h(this, "lifecycle", LIFECYCLE.NO_STATE);
|
60968
|
+
_defineProperty$h(this, "context", void 0);
|
60969
|
+
_defineProperty$h(this, "state", void 0);
|
60970
|
+
_defineProperty$h(this, "parent", null);
|
61073
60971
|
}
|
61074
60972
|
get root() {
|
61075
60973
|
let layer = this;
|
@@ -61771,8 +61669,8 @@ class Layer extends Component {
|
|
61771
61669
|
this.setNeedsUpdate();
|
61772
61670
|
}
|
61773
61671
|
}
|
61774
|
-
_defineProperty$
|
61775
|
-
_defineProperty$
|
61672
|
+
_defineProperty$h(Layer, "defaultProps", defaultProps$L);
|
61673
|
+
_defineProperty$h(Layer, "layerName", "Layer");
|
61776
61674
|
const TRACE_RENDER_LAYERS = "compositeLayer.renderLayers";
|
61777
61675
|
class CompositeLayer extends Layer {
|
61778
61676
|
get isComposite() {
|
@@ -61934,7 +61832,7 @@ class CompositeLayer extends Layer {
|
|
61934
61832
|
}
|
61935
61833
|
}
|
61936
61834
|
}
|
61937
|
-
_defineProperty$
|
61835
|
+
_defineProperty$h(CompositeLayer, "layerName", "CompositeLayer");
|
61938
61836
|
const DEGREES_TO_RADIANS$1 = Math.PI / 180;
|
61939
61837
|
const RADIANS_TO_DEGREES = 180 / Math.PI;
|
61940
61838
|
const EARTH_RADIUS = 6370972;
|
@@ -61990,9 +61888,9 @@ class GlobeViewport extends Viewport {
|
|
61990
61888
|
near: nearZMultiplier,
|
61991
61889
|
far: Math.min(2, 1 / relativeScale + 1) * altitude * farZMultiplier
|
61992
61890
|
});
|
61993
|
-
_defineProperty$
|
61994
|
-
_defineProperty$
|
61995
|
-
_defineProperty$
|
61891
|
+
_defineProperty$h(this, "longitude", void 0);
|
61892
|
+
_defineProperty$h(this, "latitude", void 0);
|
61893
|
+
_defineProperty$h(this, "resolution", void 0);
|
61996
61894
|
this.latitude = latitude;
|
61997
61895
|
this.longitude = longitude2;
|
61998
61896
|
this.resolution = resolution;
|
@@ -62140,7 +62038,7 @@ class OrbitViewport extends Viewport {
|
|
62140
62038
|
position: target2,
|
62141
62039
|
zoom: zoom2
|
62142
62040
|
});
|
62143
|
-
_defineProperty$
|
62041
|
+
_defineProperty$h(this, "projectedCenter", void 0);
|
62144
62042
|
this.projectedCenter = this.project(this.center);
|
62145
62043
|
}
|
62146
62044
|
unproject(xyz, {
|
@@ -62189,8 +62087,8 @@ class FirstPersonViewport extends Viewport {
|
|
62189
62087
|
zoom: zoom2,
|
62190
62088
|
viewMatrix: viewMatrix2
|
62191
62089
|
});
|
62192
|
-
_defineProperty$
|
62193
|
-
_defineProperty$
|
62090
|
+
_defineProperty$h(this, "longitude", void 0);
|
62091
|
+
_defineProperty$h(this, "latitude", void 0);
|
62194
62092
|
this.latitude = latitude;
|
62195
62093
|
this.longitude = longitude2;
|
62196
62094
|
}
|
@@ -62419,8 +62317,8 @@ class FirstPersonState extends ViewState {
|
|
62419
62317
|
class FirstPersonController extends Controller {
|
62420
62318
|
constructor(...args) {
|
62421
62319
|
super(...args);
|
62422
|
-
_defineProperty$
|
62423
|
-
_defineProperty$
|
62320
|
+
_defineProperty$h(this, "ControllerState", FirstPersonState);
|
62321
|
+
_defineProperty$h(this, "transition", {
|
62424
62322
|
transitionDuration: 300,
|
62425
62323
|
transitionInterpolator: new LinearInterpolator(["position", "pitch", "bearing"])
|
62426
62324
|
});
|
@@ -62434,7 +62332,7 @@ class FirstPersonView extends View$2 {
|
|
62434
62332
|
return FirstPersonController;
|
62435
62333
|
}
|
62436
62334
|
}
|
62437
|
-
_defineProperty$
|
62335
|
+
_defineProperty$h(FirstPersonView, "displayName", "FirstPersonView");
|
62438
62336
|
class OrbitView extends View$2 {
|
62439
62337
|
constructor(props = {}) {
|
62440
62338
|
super(props);
|
@@ -62447,7 +62345,7 @@ class OrbitView extends View$2 {
|
|
62447
62345
|
return OrbitController;
|
62448
62346
|
}
|
62449
62347
|
}
|
62450
|
-
_defineProperty$
|
62348
|
+
_defineProperty$h(OrbitView, "displayName", "OrbitView");
|
62451
62349
|
class GlobeState extends MapState {
|
62452
62350
|
applyConstraints(props) {
|
62453
62351
|
const {
|
@@ -62470,12 +62368,12 @@ class GlobeState extends MapState {
|
|
62470
62368
|
class GlobeController extends Controller {
|
62471
62369
|
constructor(...args) {
|
62472
62370
|
super(...args);
|
62473
|
-
_defineProperty$
|
62474
|
-
_defineProperty$
|
62371
|
+
_defineProperty$h(this, "ControllerState", GlobeState);
|
62372
|
+
_defineProperty$h(this, "transition", {
|
62475
62373
|
transitionDuration: 300,
|
62476
62374
|
transitionInterpolator: new LinearInterpolator(["longitude", "latitude", "zoom"])
|
62477
62375
|
});
|
62478
|
-
_defineProperty$
|
62376
|
+
_defineProperty$h(this, "dragMode", "pan");
|
62479
62377
|
}
|
62480
62378
|
setProps(props) {
|
62481
62379
|
super.setProps(props);
|
@@ -62491,10 +62389,10 @@ class GlobeView extends View$2 {
|
|
62491
62389
|
return GlobeController;
|
62492
62390
|
}
|
62493
62391
|
}
|
62494
|
-
_defineProperty$
|
62392
|
+
_defineProperty$h(GlobeView, "displayName", "GlobeView");
|
62495
62393
|
class LayerExtension {
|
62496
62394
|
constructor(opts2) {
|
62497
|
-
_defineProperty$
|
62395
|
+
_defineProperty$h(this, "opts", void 0);
|
62498
62396
|
if (opts2) {
|
62499
62397
|
this.opts = opts2;
|
62500
62398
|
}
|
@@ -62539,7 +62437,7 @@ class LayerExtension {
|
|
62539
62437
|
finalizeState(context2, extension2) {
|
62540
62438
|
}
|
62541
62439
|
}
|
62542
|
-
_defineProperty$
|
62440
|
+
_defineProperty$h(LayerExtension, "defaultProps", {});
|
62543
62441
|
const LINEARLY_INTERPOLATED_PROPS = ["bearing", "pitch"];
|
62544
62442
|
const DEFAULT_OPTS = {
|
62545
62443
|
speed: 1.2,
|
@@ -62552,7 +62450,7 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
62552
62450
|
extract: ["width", "height", "longitude", "latitude", "zoom", "bearing", "pitch"],
|
62553
62451
|
required: ["width", "height", "latitude", "longitude", "zoom"]
|
62554
62452
|
});
|
62555
|
-
_defineProperty$
|
62453
|
+
_defineProperty$h(this, "opts", void 0);
|
62556
62454
|
this.opts = {
|
62557
62455
|
...DEFAULT_OPTS,
|
62558
62456
|
...opts2
|
@@ -62577,20 +62475,20 @@ class FlyToInterpolator extends TransitionInterpolator {
|
|
62577
62475
|
}
|
62578
62476
|
class Tesselator {
|
62579
62477
|
constructor(opts2) {
|
62580
|
-
_defineProperty$
|
62581
|
-
_defineProperty$
|
62582
|
-
_defineProperty$
|
62583
|
-
_defineProperty$
|
62584
|
-
_defineProperty$
|
62585
|
-
_defineProperty$
|
62586
|
-
_defineProperty$
|
62587
|
-
_defineProperty$
|
62588
|
-
_defineProperty$
|
62589
|
-
_defineProperty$
|
62590
|
-
_defineProperty$
|
62591
|
-
_defineProperty$
|
62592
|
-
_defineProperty$
|
62593
|
-
_defineProperty$
|
62478
|
+
_defineProperty$h(this, "opts", void 0);
|
62479
|
+
_defineProperty$h(this, "typedArrayManager", void 0);
|
62480
|
+
_defineProperty$h(this, "indexStarts", [0]);
|
62481
|
+
_defineProperty$h(this, "vertexStarts", [0]);
|
62482
|
+
_defineProperty$h(this, "vertexCount", 0);
|
62483
|
+
_defineProperty$h(this, "instanceCount", 0);
|
62484
|
+
_defineProperty$h(this, "attributes", void 0);
|
62485
|
+
_defineProperty$h(this, "_attributeDefs", void 0);
|
62486
|
+
_defineProperty$h(this, "data", void 0);
|
62487
|
+
_defineProperty$h(this, "getGeometry", void 0);
|
62488
|
+
_defineProperty$h(this, "geometryBuffer", void 0);
|
62489
|
+
_defineProperty$h(this, "buffers", void 0);
|
62490
|
+
_defineProperty$h(this, "positionSize", void 0);
|
62491
|
+
_defineProperty$h(this, "normalize", void 0);
|
62594
62492
|
const {
|
62595
62493
|
attributes = {}
|
62596
62494
|
} = opts2;
|
@@ -62863,8 +62761,8 @@ class ClipExtension extends LayerExtension {
|
|
62863
62761
|
}
|
62864
62762
|
}
|
62865
62763
|
}
|
62866
|
-
_defineProperty$
|
62867
|
-
_defineProperty$
|
62764
|
+
_defineProperty$h(ClipExtension, "defaultProps", defaultProps$K);
|
62765
|
+
_defineProperty$h(ClipExtension, "extensionName", "ClipExtension");
|
62868
62766
|
const vs$h = "#define SHADER_NAME arc-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec4 instanceSourceColors;\nattribute vec4 instanceTargetColors;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\nattribute float instanceHeights;\nattribute float instanceTilts;\n\nuniform bool greatCircle;\nuniform bool useShortestPath;\nuniform float numSegments;\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nfloat paraboloid(float distance, float sourceZ, float targetZ, float ratio) {\n // d: distance on the xy plane\n // r: ratio of the current point\n // p: ratio of the peak of the arc\n // h: height multiplier\n // z = f(r) = sqrt(r * (p * 2 - r)) * d * h\n // f(0) = 0\n // f(1) = dz\n\n float deltaZ = targetZ - sourceZ;\n float dh = distance * instanceHeights;\n if (dh == 0.0) {\n return sourceZ + deltaZ * ratio;\n }\n float unitZ = deltaZ / dh;\n float p2 = unitZ * unitZ + 1.0;\n\n // sqrt does not deal with negative values, manually flip source and target if delta.z < 0\n float dir = step(deltaZ, 0.0);\n float z0 = mix(sourceZ, targetZ, dir);\n float r = mix(ratio, 1.0 - ratio, dir);\n return sqrt(r * (p2 - r)) * dh + z0;\n}\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nfloat getSegmentRatio(float index) {\n return smoothstep(0.0, 1.0, index / (numSegments - 1.0));\n}\n\nvec3 interpolateFlat(vec3 source, vec3 target, float segmentRatio) {\n float distance = length(source.xy - target.xy);\n float z = paraboloid(distance, source.z, target.z, segmentRatio);\n\n float tiltAngle = radians(instanceTilts);\n vec2 tiltDirection = normalize(target.xy - source.xy);\n vec2 tilt = vec2(-tiltDirection.y, tiltDirection.x) * z * sin(tiltAngle);\n\n return vec3(\n mix(source.xy, target.xy, segmentRatio) + tilt,\n z * cos(tiltAngle)\n );\n}\n\n/* Great circle interpolation\n * http://www.movable-type.co.uk/scripts/latlong.html\n */\nfloat getAngularDist (vec2 source, vec2 target) {\n vec2 sourceRadians = radians(source);\n vec2 targetRadians = radians(target);\n vec2 sin_half_delta = sin((sourceRadians - targetRadians) / 2.0);\n vec2 shd_sq = sin_half_delta * sin_half_delta;\n\n float a = shd_sq.y + cos(sourceRadians.y) * cos(targetRadians.y) * shd_sq.x;\n return 2.0 * asin(sqrt(a));\n}\n\nvec3 interpolateGreatCircle(vec3 source, vec3 target, vec3 source3D, vec3 target3D, float angularDist, float t) {\n vec2 lngLat;\n\n // if the angularDist is PI, linear interpolation is applied. otherwise, use spherical interpolation\n if(abs(angularDist - PI) < 0.001) {\n lngLat = (1.0 - t) * source.xy + t * target.xy;\n } else {\n float a = sin((1.0 - t) * angularDist);\n float b = sin(t * angularDist);\n vec3 p = source3D.yxz * a + target3D.yxz * b;\n lngLat = degrees(vec2(atan(p.y, -p.x), atan(p.z, length(p.xy))));\n }\n\n float z = paraboloid(angularDist * EARTH_RADIUS, source.z, target.z, t);\n\n return vec3(lngLat, z);\n}\n\n/* END GREAT CIRCLE */\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n float segmentIndex = positions.x;\n float segmentRatio = getSegmentRatio(segmentIndex);\n float prevSegmentRatio = getSegmentRatio(max(0.0, segmentIndex - 1.0));\n float nextSegmentRatio = getSegmentRatio(min(numSegments - 1.0, segmentIndex + 1.0));\n\n // if it's the first point, use next - current as direction\n // otherwise use current - prev\n float indexDir = mix(-1.0, 1.0, step(segmentIndex, 0.0));\n isValid = 1.0;\n\n uv = vec2(segmentRatio, positions.y);\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n\n vec4 curr;\n vec4 next;\n vec3 source;\n vec3 target;\n\n if ((greatCircle || project_uProjectionMode == PROJECTION_MODE_GLOBE) && project_uCoordinateSystem == COORDINATE_SYSTEM_LNGLAT) {\n source = project_globe_(vec3(instanceSourcePositions.xy, 0.0));\n target = project_globe_(vec3(instanceTargetPositions.xy, 0.0));\n float angularDist = getAngularDist(instanceSourcePositions.xy, instanceTargetPositions.xy);\n\n vec3 prevPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, prevSegmentRatio);\n vec3 currPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, segmentRatio);\n vec3 nextPos = interpolateGreatCircle(instanceSourcePositions, instanceTargetPositions, source, target, angularDist, nextSegmentRatio);\n\n if (abs(currPos.x - prevPos.x) > 180.0) {\n indexDir = -1.0;\n isValid = 0.0;\n } else if (abs(currPos.x - nextPos.x) > 180.0) {\n indexDir = 1.0;\n isValid = 0.0;\n }\n nextPos = indexDir < 0.0 ? prevPos : nextPos;\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n\n if (isValid == 0.0) {\n // split at the 180th meridian\n nextPos.x += nextPos.x > 0.0 ? -360.0 : 360.0;\n float t = ((currPos.x > 0.0 ? 180.0 : -180.0) - currPos.x) / (nextPos.x - currPos.x);\n currPos = mix(currPos, nextPos, t);\n segmentRatio = mix(segmentRatio, nextSegmentRatio, t);\n }\n\n vec3 currPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, segmentRatio);\n vec3 nextPos64Low = mix(instanceSourcePositions64Low, instanceTargetPositions64Low, nextSegmentRatio);\n \n curr = project_position_to_clipspace(currPos, currPos64Low, vec3(0.0), geometry.position);\n next = project_position_to_clipspace(nextPos, nextPos64Low, vec3(0.0));\n \n } else {\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n if (useShortestPath) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n\n float deltaLng = target_world.x - source_world.x;\n if (deltaLng > 180.) target_world.x -= 360.;\n if (deltaLng < -180.) source_world.x -= 360.;\n }\n source = project_position(source_world, instanceSourcePositions64Low);\n target = project_position(target_world, instanceTargetPositions64Low);\n\n // common x at longitude=-180\n float antiMeridianX = 0.0;\n\n if (useShortestPath) {\n if (project_uProjectionMode == PROJECTION_MODE_WEB_MERCATOR_AUTO_OFFSET) {\n antiMeridianX = -(project_uCoordinateOrigin.x + 180.) / 360. * TILE_SIZE;\n }\n float thresholdRatio = (antiMeridianX - source.x) / (target.x - source.x);\n\n if (prevSegmentRatio <= thresholdRatio && nextSegmentRatio > thresholdRatio) {\n isValid = 0.0;\n indexDir = sign(segmentRatio - thresholdRatio);\n segmentRatio = thresholdRatio;\n }\n }\n\n nextSegmentRatio = indexDir < 0.0 ? prevSegmentRatio : nextSegmentRatio;\n vec3 currPos = interpolateFlat(source, target, segmentRatio);\n vec3 nextPos = interpolateFlat(source, target, nextSegmentRatio);\n\n if (useShortestPath) {\n if (nextPos.x < antiMeridianX) {\n currPos.x += TILE_SIZE;\n nextPos.x += TILE_SIZE;\n }\n }\n\n curr = project_common_position_to_clipspace(vec4(currPos, 1.0));\n next = project_common_position_to_clipspace(vec4(nextPos, 1.0));\n geometry.position = vec4(currPos, 1.0);\n }\n\n // Multiply out width and clamp to limits\n // mercator pixels are interpreted as screen pixels\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n\n // extrude\n vec3 offset = vec3(\n getExtrusionOffset((next.xy - curr.xy) * indexDir, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = curr + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n vec4 color = mix(instanceSourceColors, instanceTargetColors, segmentRatio);\n vColor = vec4(color.rgb, color.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
62869
62767
|
const fs$j = "#define SHADER_NAME arc-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\nvarying float isValid;\n\nvoid main(void) {\n if (isValid == 0.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n geometry.uv = uv;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
62870
62768
|
const DEFAULT_COLOR$b = [0, 0, 0, 255];
|
@@ -62918,7 +62816,7 @@ const defaultProps$J = {
|
|
62918
62816
|
class ArcLayer extends Layer {
|
62919
62817
|
constructor(...args) {
|
62920
62818
|
super(...args);
|
62921
|
-
_defineProperty$
|
62819
|
+
_defineProperty$h(this, "state", void 0);
|
62922
62820
|
}
|
62923
62821
|
getShaders() {
|
62924
62822
|
return super.getShaders({
|
@@ -63038,8 +62936,8 @@ class ArcLayer extends Layer {
|
|
63038
62936
|
return model;
|
63039
62937
|
}
|
63040
62938
|
}
|
63041
|
-
_defineProperty$
|
63042
|
-
_defineProperty$
|
62939
|
+
_defineProperty$h(ArcLayer, "layerName", "ArcLayer");
|
62940
|
+
_defineProperty$h(ArcLayer, "defaultProps", defaultProps$J);
|
63043
62941
|
const DEFAULT_INDICES = new Uint16Array([0, 2, 1, 0, 3, 2]);
|
63044
62942
|
const DEFAULT_TEX_COORDS = new Float32Array([0, 1, 0, 0, 1, 0, 1, 1]);
|
63045
62943
|
function createMesh(bounds2, resolution) {
|
@@ -63134,7 +63032,7 @@ const defaultProps$I = {
|
|
63134
63032
|
let BitmapLayer$1 = class BitmapLayer extends Layer {
|
63135
63033
|
constructor(...args) {
|
63136
63034
|
super(...args);
|
63137
|
-
_defineProperty$
|
63035
|
+
_defineProperty$h(this, "state", void 0);
|
63138
63036
|
}
|
63139
63037
|
getShaders() {
|
63140
63038
|
return super.getShaders({
|
@@ -63336,8 +63234,8 @@ let BitmapLayer$1 = class BitmapLayer extends Layer {
|
|
63336
63234
|
};
|
63337
63235
|
}
|
63338
63236
|
};
|
63339
|
-
_defineProperty$
|
63340
|
-
_defineProperty$
|
63237
|
+
_defineProperty$h(BitmapLayer$1, "layerName", "BitmapLayer");
|
63238
|
+
_defineProperty$h(BitmapLayer$1, "defaultProps", defaultProps$I);
|
63341
63239
|
function unpackUVsFromRGB(color2) {
|
63342
63240
|
const [u2, v, fracUV] = color2;
|
63343
63241
|
const vFrac = (fracUV & 240) / 256;
|
@@ -63485,23 +63383,23 @@ class IconManager {
|
|
63485
63383
|
onUpdate = noop$6,
|
63486
63384
|
onError = noop$6
|
63487
63385
|
}) {
|
63488
|
-
_defineProperty$
|
63489
|
-
_defineProperty$
|
63490
|
-
_defineProperty$
|
63491
|
-
_defineProperty$
|
63492
|
-
_defineProperty$
|
63493
|
-
_defineProperty$
|
63494
|
-
_defineProperty$
|
63495
|
-
_defineProperty$
|
63496
|
-
_defineProperty$
|
63497
|
-
_defineProperty$
|
63498
|
-
_defineProperty$
|
63499
|
-
_defineProperty$
|
63500
|
-
_defineProperty$
|
63501
|
-
_defineProperty$
|
63502
|
-
_defineProperty$
|
63503
|
-
_defineProperty$
|
63504
|
-
_defineProperty$
|
63386
|
+
_defineProperty$h(this, "gl", void 0);
|
63387
|
+
_defineProperty$h(this, "onUpdate", void 0);
|
63388
|
+
_defineProperty$h(this, "onError", void 0);
|
63389
|
+
_defineProperty$h(this, "_loadOptions", null);
|
63390
|
+
_defineProperty$h(this, "_texture", null);
|
63391
|
+
_defineProperty$h(this, "_externalTexture", null);
|
63392
|
+
_defineProperty$h(this, "_mapping", {});
|
63393
|
+
_defineProperty$h(this, "_textureParameters", null);
|
63394
|
+
_defineProperty$h(this, "_pendingCount", 0);
|
63395
|
+
_defineProperty$h(this, "_autoPacking", false);
|
63396
|
+
_defineProperty$h(this, "_xOffset", 0);
|
63397
|
+
_defineProperty$h(this, "_yOffset", 0);
|
63398
|
+
_defineProperty$h(this, "_rowHeight", 0);
|
63399
|
+
_defineProperty$h(this, "_buffer", DEFAULT_BUFFER$1);
|
63400
|
+
_defineProperty$h(this, "_canvasWidth", DEFAULT_CANVAS_WIDTH);
|
63401
|
+
_defineProperty$h(this, "_canvasHeight", 0);
|
63402
|
+
_defineProperty$h(this, "_canvas", null);
|
63505
63403
|
this.gl = gl;
|
63506
63404
|
this.onUpdate = onUpdate;
|
63507
63405
|
this.onError = onError;
|
@@ -63692,7 +63590,7 @@ const defaultProps$H = {
|
|
63692
63590
|
class IconLayer extends Layer {
|
63693
63591
|
constructor(...args) {
|
63694
63592
|
super(...args);
|
63695
|
-
_defineProperty$
|
63593
|
+
_defineProperty$h(this, "state", void 0);
|
63696
63594
|
}
|
63697
63595
|
getShaders() {
|
63698
63596
|
return super.getShaders({
|
@@ -63889,8 +63787,8 @@ class IconLayer extends Layer {
|
|
63889
63787
|
return [x2, y2, width2, height2];
|
63890
63788
|
}
|
63891
63789
|
}
|
63892
|
-
_defineProperty$
|
63893
|
-
_defineProperty$
|
63790
|
+
_defineProperty$h(IconLayer, "defaultProps", defaultProps$H);
|
63791
|
+
_defineProperty$h(IconLayer, "layerName", "IconLayer");
|
63894
63792
|
const vs$e = "#define SHADER_NAME line-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceSourcePositions;\nattribute vec3 instanceTargetPositions;\nattribute vec3 instanceSourcePositions64Low;\nattribute vec3 instanceTargetPositions64Low;\nattribute vec4 instanceColors;\nattribute vec3 instancePickingColors;\nattribute float instanceWidths;\n\nuniform float opacity;\nuniform float widthScale;\nuniform float widthMinPixels;\nuniform float widthMaxPixels;\nuniform float useShortestPath;\nuniform int widthUnits;\n\nvarying vec4 vColor;\nvarying vec2 uv;\n\n// offset vector by strokeWidth pixels\n// offset_direction is -1 (left) or 1 (right)\nvec2 getExtrusionOffset(vec2 line_clipspace, float offset_direction, float width) {\n // normalized direction of the line\n vec2 dir_screenspace = normalize(line_clipspace * project_uViewportSize);\n // rotate by 90 degrees\n dir_screenspace = vec2(-dir_screenspace.y, dir_screenspace.x);\n\n return dir_screenspace * offset_direction * width / 2.0;\n}\n\nvec3 splitLine(vec3 a, vec3 b, float x) {\n float t = (x - a.x) / (b.x - a.x);\n return vec3(x, mix(a.yz, b.yz, t));\n}\n\nvoid main(void) {\n geometry.worldPosition = instanceSourcePositions;\n geometry.worldPositionAlt = instanceTargetPositions;\n\n vec3 source_world = instanceSourcePositions;\n vec3 target_world = instanceTargetPositions;\n vec3 source_world_64low = instanceSourcePositions64Low;\n vec3 target_world_64low = instanceTargetPositions64Low;\n\n if (useShortestPath > 0.5 || useShortestPath < -0.5) {\n source_world.x = mod(source_world.x + 180., 360.0) - 180.;\n target_world.x = mod(target_world.x + 180., 360.0) - 180.;\n float deltaLng = target_world.x - source_world.x;\n\n if (deltaLng * useShortestPath > 180.) {\n source_world.x += 360. * useShortestPath;\n source_world = splitLine(source_world, target_world, 180. * useShortestPath);\n source_world_64low = vec3(0.0);\n } else if (deltaLng * useShortestPath < -180.) {\n target_world.x += 360. * useShortestPath;\n target_world = splitLine(source_world, target_world, 180. * useShortestPath);\n target_world_64low = vec3(0.0);\n } else if (useShortestPath < 0.) {\n // Line is not split, abort\n gl_Position = vec4(0.);\n return;\n }\n }\n\n // Position\n vec4 source_commonspace;\n vec4 target_commonspace;\n vec4 source = project_position_to_clipspace(source_world, source_world_64low, vec3(0.), source_commonspace);\n vec4 target = project_position_to_clipspace(target_world, target_world_64low, vec3(0.), target_commonspace);\n \n // linear interpolation of source & target to pick right coord\n float segmentIndex = positions.x;\n vec4 p = mix(source, target, segmentIndex);\n geometry.position = mix(source_commonspace, target_commonspace, segmentIndex);\n uv = positions.xy;\n geometry.uv = uv;\n geometry.pickingColor = instancePickingColors;\n\n // Multiply out width and clamp to limits\n float widthPixels = clamp(\n project_size_to_pixel(instanceWidths * widthScale, widthUnits),\n widthMinPixels, widthMaxPixels\n );\n\n // extrude\n vec3 offset = vec3(\n getExtrusionOffset(target.xy - source.xy, positions.y, widthPixels),\n 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = p + vec4(project_pixel_size_to_clipspace(offset.xy), 0.0, 0.0);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Color\n vColor = vec4(instanceColors.rgb, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
63895
63793
|
const fs$g = "#define SHADER_NAME line-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 uv;\n\nvoid main(void) {\n geometry.uv = uv;\n\n gl_FragColor = vColor;\n\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
63896
63794
|
const DEFAULT_COLOR$9 = [0, 0, 0, 255];
|
@@ -64022,8 +63920,8 @@ class LineLayer extends Layer {
|
|
64022
63920
|
});
|
64023
63921
|
}
|
64024
63922
|
}
|
64025
|
-
_defineProperty$
|
64026
|
-
_defineProperty$
|
63923
|
+
_defineProperty$h(LineLayer, "layerName", "LineLayer");
|
63924
|
+
_defineProperty$h(LineLayer, "defaultProps", defaultProps$G);
|
64027
63925
|
const vs$d = "#define SHADER_NAME point-cloud-layer-vertex-shader\n\nattribute vec3 positions;\nattribute vec3 instanceNormals;\nattribute vec4 instanceColors;\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusPixels;\nuniform int sizeUnits;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n geometry.normal = project_normal(instanceNormals);\n\n // position on the containing square in [-1, 1] space\n unitPosition = positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n // Find the center of the point and add the current vertex\n vec3 offset = vec3(positions.xy * project_size_to_pixel(radiusPixels, sizeUnits), 0.0);\n DECKGL_FILTER_SIZE(offset, geometry);\n\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.), geometry.position);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Apply lighting\n vec3 lightColor = lighting_getLightColor(instanceColors.rgb, project_uCameraPosition, geometry.position.xyz, geometry.normal);\n\n // Apply opacity to instance color, or return instance picking color\n vColor = vec4(lightColor, instanceColors.a * opacity);\n DECKGL_FILTER_COLOR(vColor, geometry);\n}\n";
|
64028
63926
|
const fs$f = "#define SHADER_NAME point-cloud-layer-fragment-shader\n\nprecision highp float;\n\nvarying vec4 vColor;\nvarying vec2 unitPosition;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition);\n\n if (distToCenter > 1.0) {\n discard;\n }\n\n gl_FragColor = vColor;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
64029
63927
|
const DEFAULT_COLOR$8 = [0, 0, 0, 255];
|
@@ -64154,8 +64052,8 @@ class PointCloudLayer extends Layer {
|
|
64154
64052
|
});
|
64155
64053
|
}
|
64156
64054
|
}
|
64157
|
-
_defineProperty$
|
64158
|
-
_defineProperty$
|
64055
|
+
_defineProperty$h(PointCloudLayer, "layerName", "PointCloudLayer");
|
64056
|
+
_defineProperty$h(PointCloudLayer, "defaultProps", defaultProps$F);
|
64159
64057
|
const vs$c = "#define SHADER_NAME scatterplot-layer-vertex-shader\n\nattribute vec3 positions;\n\nattribute vec3 instancePositions;\nattribute vec3 instancePositions64Low;\nattribute float instanceRadius;\nattribute float instanceLineWidths;\nattribute vec4 instanceFillColors;\nattribute vec4 instanceLineColors;\nattribute vec3 instancePickingColors;\n\nuniform float opacity;\nuniform float radiusScale;\nuniform float radiusMinPixels;\nuniform float radiusMaxPixels;\nuniform float lineWidthScale;\nuniform float lineWidthMinPixels;\nuniform float lineWidthMaxPixels;\nuniform float stroked;\nuniform bool filled;\nuniform bool antialiasing;\nuniform bool billboard;\nuniform int radiusUnits;\nuniform int lineWidthUnits;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\n\nvoid main(void) {\n geometry.worldPosition = instancePositions;\n\n // Multiply out radius and clamp to limits\n outerRadiusPixels = clamp(\n project_size_to_pixel(radiusScale * instanceRadius, radiusUnits),\n radiusMinPixels, radiusMaxPixels\n );\n \n // Multiply out line width and clamp to limits\n float lineWidthPixels = clamp(\n project_size_to_pixel(lineWidthScale * instanceLineWidths, lineWidthUnits),\n lineWidthMinPixels, lineWidthMaxPixels\n );\n\n // outer radius needs to offset by half stroke width\n outerRadiusPixels += stroked * lineWidthPixels / 2.0;\n\n // Expand geometry to accomodate edge smoothing\n float edgePadding = antialiasing ? (outerRadiusPixels + SMOOTH_EDGE_RADIUS) / outerRadiusPixels : 1.0;\n\n // position on the containing square in [-1, 1] space\n unitPosition = edgePadding * positions.xy;\n geometry.uv = unitPosition;\n geometry.pickingColor = instancePickingColors;\n\n innerUnitRadius = 1.0 - stroked * lineWidthPixels / outerRadiusPixels;\n \n if (billboard) {\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, vec3(0.0), geometry.position);\n vec3 offset = edgePadding * positions * outerRadiusPixels;\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position.xy += project_pixel_size_to_clipspace(offset.xy);\n } else {\n vec3 offset = edgePadding * positions * project_pixel_size(outerRadiusPixels);\n DECKGL_FILTER_SIZE(offset, geometry);\n gl_Position = project_position_to_clipspace(instancePositions, instancePositions64Low, offset, geometry.position);\n }\n\n DECKGL_FILTER_GL_POSITION(gl_Position, geometry);\n\n // Apply opacity to instance color, or return instance picking color\n vFillColor = vec4(instanceFillColors.rgb, instanceFillColors.a * opacity);\n DECKGL_FILTER_COLOR(vFillColor, geometry);\n vLineColor = vec4(instanceLineColors.rgb, instanceLineColors.a * opacity);\n DECKGL_FILTER_COLOR(vLineColor, geometry);\n}\n";
|
64160
64058
|
const fs$e = "#define SHADER_NAME scatterplot-layer-fragment-shader\n\nprecision highp float;\n\nuniform bool filled;\nuniform float stroked;\nuniform bool antialiasing;\n\nvarying vec4 vFillColor;\nvarying vec4 vLineColor;\nvarying vec2 unitPosition;\nvarying float innerUnitRadius;\nvarying float outerRadiusPixels;\n\nvoid main(void) {\n geometry.uv = unitPosition;\n\n float distToCenter = length(unitPosition) * outerRadiusPixels;\n float inCircle = antialiasing ? \n smoothedge(distToCenter, outerRadiusPixels) : \n step(distToCenter, outerRadiusPixels);\n\n if (inCircle == 0.0) {\n discard;\n }\n\n if (stroked > 0.5) {\n float isLine = antialiasing ? \n smoothedge(innerUnitRadius * outerRadiusPixels, distToCenter) :\n step(innerUnitRadius * outerRadiusPixels, distToCenter);\n\n if (filled) {\n gl_FragColor = mix(vFillColor, vLineColor, isLine);\n } else {\n if (isLine == 0.0) {\n discard;\n }\n gl_FragColor = vec4(vLineColor.rgb, vLineColor.a * isLine);\n }\n } else if (filled) {\n gl_FragColor = vFillColor;\n } else {\n discard;\n }\n\n gl_FragColor.a *= inCircle;\n DECKGL_FILTER_COLOR(gl_FragColor, geometry);\n}\n";
|
64161
64059
|
const DEFAULT_COLOR$7 = [0, 0, 0, 255];
|
@@ -64336,8 +64234,8 @@ class ScatterplotLayer extends Layer {
|
|
64336
64234
|
});
|
64337
64235
|
}
|
64338
64236
|
}
|
64339
|
-
_defineProperty$
|
64340
|
-
_defineProperty$
|
64237
|
+
_defineProperty$h(ScatterplotLayer, "defaultProps", defaultProps$E);
|
64238
|
+
_defineProperty$h(ScatterplotLayer, "layerName", "ScatterplotLayer");
|
64341
64239
|
const WINDING = {
|
64342
64240
|
CLOCKWISE: 1,
|
64343
64241
|
COUNTER_CLOCKWISE: -1
|
@@ -65605,8 +65503,8 @@ class ColumnLayer extends Layer {
|
|
65605
65503
|
}
|
65606
65504
|
}
|
65607
65505
|
}
|
65608
|
-
_defineProperty$
|
65609
|
-
_defineProperty$
|
65506
|
+
_defineProperty$h(ColumnLayer, "layerName", "ColumnLayer");
|
65507
|
+
_defineProperty$h(ColumnLayer, "defaultProps", defaultProps$D);
|
65610
65508
|
const defaultProps$C = {
|
65611
65509
|
cellSize: {
|
65612
65510
|
type: "number",
|
@@ -65647,8 +65545,8 @@ class GridCellLayer extends ColumnLayer {
|
|
65647
65545
|
}).draw();
|
65648
65546
|
}
|
65649
65547
|
}
|
65650
|
-
_defineProperty$
|
65651
|
-
_defineProperty$
|
65548
|
+
_defineProperty$h(GridCellLayer, "layerName", "GridCellLayer");
|
65549
|
+
_defineProperty$h(GridCellLayer, "defaultProps", defaultProps$C);
|
65652
65550
|
function normalizePath(path2, size, gridResolution, wrapLongitude) {
|
65653
65551
|
let flatPath;
|
65654
65552
|
if (Array.isArray(path2[0])) {
|
@@ -65863,7 +65761,7 @@ const ATTRIBUTE_TRANSITION$1 = {
|
|
65863
65761
|
class PathLayer extends Layer {
|
65864
65762
|
constructor(...args) {
|
65865
65763
|
super(...args);
|
65866
|
-
_defineProperty$
|
65764
|
+
_defineProperty$h(this, "state", void 0);
|
65867
65765
|
}
|
65868
65766
|
getShaders() {
|
65869
65767
|
return super.getShaders({
|
@@ -66066,8 +65964,8 @@ class PathLayer extends Layer {
|
|
66066
65964
|
attribute.value = pathTesselator.get("segmentTypes");
|
66067
65965
|
}
|
66068
65966
|
}
|
66069
|
-
_defineProperty$
|
66070
|
-
_defineProperty$
|
65967
|
+
_defineProperty$h(PathLayer, "defaultProps", defaultProps$B);
|
65968
|
+
_defineProperty$h(PathLayer, "layerName", "PathLayer");
|
66071
65969
|
var earcut$2 = { exports: {} };
|
66072
65970
|
earcut$2.exports = earcut;
|
66073
65971
|
earcut$2.exports.default = earcut;
|
@@ -66877,7 +66775,7 @@ const ATTRIBUTE_TRANSITION = {
|
|
66877
66775
|
class SolidPolygonLayer extends Layer {
|
66878
66776
|
constructor(...args) {
|
66879
66777
|
super(...args);
|
66880
|
-
_defineProperty$
|
66778
|
+
_defineProperty$h(this, "state", void 0);
|
66881
66779
|
}
|
66882
66780
|
getShaders(type2) {
|
66883
66781
|
return super.getShaders({
|
@@ -67201,8 +67099,8 @@ class SolidPolygonLayer extends Layer {
|
|
67201
67099
|
attribute.value = this.state.polygonTesselator.get("vertexValid");
|
67202
67100
|
}
|
67203
67101
|
}
|
67204
|
-
_defineProperty$
|
67205
|
-
_defineProperty$
|
67102
|
+
_defineProperty$h(SolidPolygonLayer, "defaultProps", defaultProps$A);
|
67103
|
+
_defineProperty$h(SolidPolygonLayer, "layerName", "SolidPolygonLayer");
|
67206
67104
|
function replaceInRange({
|
67207
67105
|
data: data2,
|
67208
67106
|
getIndex,
|
@@ -67454,8 +67352,8 @@ class PolygonLayer extends CompositeLayer {
|
|
67454
67352
|
return [!extruded && polygonLayer, polygonLineLayer, extruded && polygonLayer];
|
67455
67353
|
}
|
67456
67354
|
}
|
67457
|
-
_defineProperty$
|
67458
|
-
_defineProperty$
|
67355
|
+
_defineProperty$h(PolygonLayer, "layerName", "PolygonLayer");
|
67356
|
+
_defineProperty$h(PolygonLayer, "defaultProps", defaultProps$z);
|
67459
67357
|
function binaryToFeatureForAccesor(data2, index2) {
|
67460
67358
|
if (!data2) {
|
67461
67359
|
return null;
|
@@ -67516,7 +67414,7 @@ const defaultProps$y = {
|
|
67516
67414
|
class MultiIconLayer extends IconLayer {
|
67517
67415
|
constructor(...args) {
|
67518
67416
|
super(...args);
|
67519
|
-
_defineProperty$
|
67417
|
+
_defineProperty$h(this, "state", void 0);
|
67520
67418
|
}
|
67521
67419
|
getShaders() {
|
67522
67420
|
return {
|
@@ -67591,8 +67489,8 @@ class MultiIconLayer extends IconLayer {
|
|
67591
67489
|
return icons ? Array.from(icons).flatMap((icon) => super.getInstanceIconFrame(icon)) : EMPTY_ARRAY;
|
67592
67490
|
}
|
67593
67491
|
}
|
67594
|
-
_defineProperty$
|
67595
|
-
_defineProperty$
|
67492
|
+
_defineProperty$h(MultiIconLayer, "defaultProps", defaultProps$y);
|
67493
|
+
_defineProperty$h(MultiIconLayer, "layerName", "MultiIconLayer");
|
67596
67494
|
var tinySdf = { exports: {} };
|
67597
67495
|
tinySdf.exports = TinySDF;
|
67598
67496
|
tinySdf.exports.default = TinySDF;
|
@@ -67960,9 +67858,9 @@ function getTextFromBuffer({
|
|
67960
67858
|
}
|
67961
67859
|
let LRUCache$1 = class LRUCache2 {
|
67962
67860
|
constructor(limit = 5) {
|
67963
|
-
_defineProperty$
|
67964
|
-
_defineProperty$
|
67965
|
-
_defineProperty$
|
67861
|
+
_defineProperty$h(this, "limit", void 0);
|
67862
|
+
_defineProperty$h(this, "_cache", {});
|
67863
|
+
_defineProperty$h(this, "_order", []);
|
67966
67864
|
this.limit = limit;
|
67967
67865
|
}
|
67968
67866
|
get(key2) {
|
@@ -68061,11 +67959,11 @@ function setFontAtlasCacheLimit(limit) {
|
|
68061
67959
|
}
|
68062
67960
|
class FontAtlasManager {
|
68063
67961
|
constructor() {
|
68064
|
-
_defineProperty$
|
67962
|
+
_defineProperty$h(this, "props", {
|
68065
67963
|
...DEFAULT_FONT_SETTINGS
|
68066
67964
|
});
|
68067
|
-
_defineProperty$
|
68068
|
-
_defineProperty$
|
67965
|
+
_defineProperty$h(this, "_key", void 0);
|
67966
|
+
_defineProperty$h(this, "_atlas", void 0);
|
68069
67967
|
}
|
68070
67968
|
get texture() {
|
68071
67969
|
return this._atlas;
|
@@ -68217,7 +68115,7 @@ const defaultProps$x = {
|
|
68217
68115
|
class TextBackgroundLayer extends Layer {
|
68218
68116
|
constructor(...args) {
|
68219
68117
|
super(...args);
|
68220
|
-
_defineProperty$
|
68118
|
+
_defineProperty$h(this, "state", void 0);
|
68221
68119
|
}
|
68222
68120
|
getShaders() {
|
68223
68121
|
return super.getShaders({
|
@@ -68340,8 +68238,8 @@ class TextBackgroundLayer extends Layer {
|
|
68340
68238
|
});
|
68341
68239
|
}
|
68342
68240
|
}
|
68343
|
-
_defineProperty$
|
68344
|
-
_defineProperty$
|
68241
|
+
_defineProperty$h(TextBackgroundLayer, "defaultProps", defaultProps$x);
|
68242
|
+
_defineProperty$h(TextBackgroundLayer, "layerName", "TextBackgroundLayer");
|
68345
68243
|
const TEXT_ANCHOR = {
|
68346
68244
|
start: 1,
|
68347
68245
|
middle: 0,
|
@@ -68438,8 +68336,8 @@ const defaultProps$w = {
|
|
68438
68336
|
class TextLayer extends CompositeLayer {
|
68439
68337
|
constructor(...args) {
|
68440
68338
|
super(...args);
|
68441
|
-
_defineProperty$
|
68442
|
-
_defineProperty$
|
68339
|
+
_defineProperty$h(this, "state", void 0);
|
68340
|
+
_defineProperty$h(this, "getBoundingRect", (object2, objectInfo) => {
|
68443
68341
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
68444
68342
|
const getText = this.state.getText;
|
68445
68343
|
const {
|
@@ -68457,7 +68355,7 @@ class TextLayer extends CompositeLayer {
|
|
68457
68355
|
const anchorY = ALIGNMENT_BASELINE[typeof getAlignmentBaseline === "function" ? getAlignmentBaseline(object2, objectInfo) : getAlignmentBaseline];
|
68458
68356
|
return [(anchorX - 1) * width2 / 2, (anchorY - 1) * height2 / 2, width2, height2];
|
68459
68357
|
});
|
68460
|
-
_defineProperty$
|
68358
|
+
_defineProperty$h(this, "getIconOffsets", (object2, objectInfo) => {
|
68461
68359
|
const iconMapping = this.state.fontAtlasManager.mapping;
|
68462
68360
|
const getText = this.state.getText;
|
68463
68361
|
const {
|
@@ -68737,8 +68635,8 @@ class TextLayer extends CompositeLayer {
|
|
68737
68635
|
setFontAtlasCacheLimit(limit);
|
68738
68636
|
}
|
68739
68637
|
}
|
68740
|
-
_defineProperty$
|
68741
|
-
_defineProperty$
|
68638
|
+
_defineProperty$h(TextLayer, "defaultProps", defaultProps$w);
|
68639
|
+
_defineProperty$h(TextLayer, "layerName", "TextLayer");
|
68742
68640
|
const POINT_LAYER = {
|
68743
68641
|
circle: {
|
68744
68642
|
type: ScatterplotLayer,
|
@@ -69377,8 +69275,8 @@ class GeoJsonLayer extends CompositeLayer {
|
|
69377
69275
|
};
|
69378
69276
|
}
|
69379
69277
|
}
|
69380
|
-
_defineProperty$
|
69381
|
-
_defineProperty$
|
69278
|
+
_defineProperty$h(GeoJsonLayer, "layerName", "GeoJsonLayer");
|
69279
|
+
_defineProperty$h(GeoJsonLayer, "defaultProps", defaultProps$v);
|
69382
69280
|
const esm$4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
69383
69281
|
__proto__: null,
|
69384
69282
|
ArcLayer,
|
@@ -69406,8 +69304,8 @@ const defaultProps$u = {
|
|
69406
69304
|
};
|
69407
69305
|
class GreatCircleLayer extends ArcLayer {
|
69408
69306
|
}
|
69409
|
-
_defineProperty$
|
69410
|
-
_defineProperty$
|
69307
|
+
_defineProperty$h(GreatCircleLayer, "layerName", "GreatCircleLayer");
|
69308
|
+
_defineProperty$h(GreatCircleLayer, "defaultProps", defaultProps$u);
|
69411
69309
|
const defaultProps$t = {
|
69412
69310
|
...PolygonLayer.defaultProps
|
69413
69311
|
};
|
@@ -69470,8 +69368,8 @@ class GeoCellLayer extends CompositeLayer {
|
|
69470
69368
|
}), this.indexToBounds());
|
69471
69369
|
}
|
69472
69370
|
}
|
69473
|
-
_defineProperty$
|
69474
|
-
_defineProperty$
|
69371
|
+
_defineProperty$h(GeoCellLayer, "layerName", "GeoCellLayer");
|
69372
|
+
_defineProperty$h(GeoCellLayer, "defaultProps", defaultProps$t);
|
69475
69373
|
var long = { exports: {} };
|
69476
69374
|
(function(module2) {
|
69477
69375
|
/**
|
@@ -70185,8 +70083,8 @@ class S2Layer extends GeoCellLayer {
|
|
70185
70083
|
};
|
70186
70084
|
}
|
70187
70085
|
}
|
70188
|
-
_defineProperty$
|
70189
|
-
_defineProperty$
|
70086
|
+
_defineProperty$h(S2Layer, "layerName", "S2Layer");
|
70087
|
+
_defineProperty$h(S2Layer, "defaultProps", defaultProps$s);
|
70190
70088
|
const TILE_SIZE$3 = 512;
|
70191
70089
|
function quadkeyToWorldBounds(quadkey) {
|
70192
70090
|
let x2 = 0;
|
@@ -70229,28 +70127,28 @@ class QuadkeyLayer extends GeoCellLayer {
|
|
70229
70127
|
};
|
70230
70128
|
}
|
70231
70129
|
}
|
70232
|
-
_defineProperty$
|
70233
|
-
_defineProperty$
|
70130
|
+
_defineProperty$h(QuadkeyLayer, "layerName", "QuadkeyLayer");
|
70131
|
+
_defineProperty$h(QuadkeyLayer, "defaultProps", defaultProps$r);
|
70234
70132
|
class Tile2DHeader {
|
70235
70133
|
constructor(index2) {
|
70236
|
-
_defineProperty$
|
70237
|
-
_defineProperty$
|
70238
|
-
_defineProperty$
|
70239
|
-
_defineProperty$
|
70240
|
-
_defineProperty$
|
70241
|
-
_defineProperty$
|
70242
|
-
_defineProperty$
|
70243
|
-
_defineProperty$
|
70244
|
-
_defineProperty$
|
70245
|
-
_defineProperty$
|
70246
|
-
_defineProperty$
|
70247
|
-
_defineProperty$
|
70248
|
-
_defineProperty$
|
70249
|
-
_defineProperty$
|
70250
|
-
_defineProperty$
|
70251
|
-
_defineProperty$
|
70252
|
-
_defineProperty$
|
70253
|
-
_defineProperty$
|
70134
|
+
_defineProperty$h(this, "index", void 0);
|
70135
|
+
_defineProperty$h(this, "isVisible", void 0);
|
70136
|
+
_defineProperty$h(this, "isSelected", void 0);
|
70137
|
+
_defineProperty$h(this, "parent", void 0);
|
70138
|
+
_defineProperty$h(this, "children", void 0);
|
70139
|
+
_defineProperty$h(this, "content", void 0);
|
70140
|
+
_defineProperty$h(this, "state", void 0);
|
70141
|
+
_defineProperty$h(this, "layers", void 0);
|
70142
|
+
_defineProperty$h(this, "id", void 0);
|
70143
|
+
_defineProperty$h(this, "bbox", void 0);
|
70144
|
+
_defineProperty$h(this, "zoom", void 0);
|
70145
|
+
_defineProperty$h(this, "userData", void 0);
|
70146
|
+
_defineProperty$h(this, "_abortController", void 0);
|
70147
|
+
_defineProperty$h(this, "_loader", void 0);
|
70148
|
+
_defineProperty$h(this, "_loaderId", void 0);
|
70149
|
+
_defineProperty$h(this, "_isLoaded", void 0);
|
70150
|
+
_defineProperty$h(this, "_isCancelled", void 0);
|
70151
|
+
_defineProperty$h(this, "_needsReload", void 0);
|
70254
70152
|
this.index = index2;
|
70255
70153
|
this.isVisible = false;
|
70256
70154
|
this.isSelected = false;
|
@@ -70378,10 +70276,10 @@ const scratchVector$6 = new Vector3();
|
|
70378
70276
|
const scratchNormal$3 = new Vector3();
|
70379
70277
|
class AxisAlignedBoundingBox {
|
70380
70278
|
constructor(minimum = [0, 0, 0], maximum = [0, 0, 0], center2) {
|
70381
|
-
_defineProperty$
|
70382
|
-
_defineProperty$
|
70383
|
-
_defineProperty$
|
70384
|
-
_defineProperty$
|
70279
|
+
_defineProperty$h(this, "center", void 0);
|
70280
|
+
_defineProperty$h(this, "halfDiagonal", void 0);
|
70281
|
+
_defineProperty$h(this, "minimum", void 0);
|
70282
|
+
_defineProperty$h(this, "maximum", void 0);
|
70385
70283
|
center2 = center2 || scratchVector$6.copy(minimum).add(maximum).scale(0.5);
|
70386
70284
|
this.center = new Vector3(center2);
|
70387
70285
|
this.halfDiagonal = new Vector3(maximum).subtract(this.center);
|
@@ -70445,8 +70343,8 @@ const scratchVector$5 = new Vector3();
|
|
70445
70343
|
const scratchVector2$2 = new Vector3();
|
70446
70344
|
class BoundingSphere {
|
70447
70345
|
constructor(center2 = [0, 0, 0], radius2 = 0) {
|
70448
|
-
_defineProperty$
|
70449
|
-
_defineProperty$
|
70346
|
+
_defineProperty$h(this, "center", void 0);
|
70347
|
+
_defineProperty$h(this, "radius", void 0);
|
70450
70348
|
this.radius = -0;
|
70451
70349
|
this.center = new Vector3();
|
70452
70350
|
this.fromCenterRadius(center2, radius2);
|
@@ -70544,8 +70442,8 @@ const MATRIX3 = {
|
|
70544
70442
|
};
|
70545
70443
|
class OrientedBoundingBox {
|
70546
70444
|
constructor(center2 = [0, 0, 0], halfAxes = [0, 0, 0, 0, 0, 0, 0, 0, 0]) {
|
70547
|
-
_defineProperty$
|
70548
|
-
_defineProperty$
|
70445
|
+
_defineProperty$h(this, "center", void 0);
|
70446
|
+
_defineProperty$h(this, "halfAxes", void 0);
|
70549
70447
|
this.center = new Vector3().from(center2);
|
70550
70448
|
this.halfAxes = new Matrix3(halfAxes);
|
70551
70449
|
}
|
@@ -70714,8 +70612,8 @@ const scratchPosition$2 = new Vector3();
|
|
70714
70612
|
const scratchNormal$2 = new Vector3();
|
70715
70613
|
class Plane {
|
70716
70614
|
constructor(normal = [0, 0, 1], distance2 = 0) {
|
70717
|
-
_defineProperty$
|
70718
|
-
_defineProperty$
|
70615
|
+
_defineProperty$h(this, "normal", void 0);
|
70616
|
+
_defineProperty$h(this, "distance", void 0);
|
70719
70617
|
this.normal = new Vector3();
|
70720
70618
|
this.distance = -0;
|
70721
70619
|
this.fromNormalDistance(normal, distance2);
|
@@ -70766,7 +70664,7 @@ const scratchPlaneNormal = new Vector3();
|
|
70766
70664
|
new Plane(new Vector3(1, 0, 0), 0);
|
70767
70665
|
class CullingVolume {
|
70768
70666
|
constructor(planes = []) {
|
70769
|
-
_defineProperty$
|
70667
|
+
_defineProperty$h(this, "planes", void 0);
|
70770
70668
|
this.planes = planes;
|
70771
70669
|
}
|
70772
70670
|
fromBoundingSphere(boundingSphere) {
|
@@ -70831,9 +70729,9 @@ class CullingVolume {
|
|
70831
70729
|
return mask2;
|
70832
70730
|
}
|
70833
70731
|
}
|
70834
|
-
_defineProperty$
|
70835
|
-
_defineProperty$
|
70836
|
-
_defineProperty$
|
70732
|
+
_defineProperty$h(CullingVolume, "MASK_OUTSIDE", 4294967295);
|
70733
|
+
_defineProperty$h(CullingVolume, "MASK_INSIDE", 0);
|
70734
|
+
_defineProperty$h(CullingVolume, "MASK_INDETERMINATE", 2147483647);
|
70837
70735
|
new Vector3();
|
70838
70736
|
new Vector3();
|
70839
70737
|
new Vector3();
|
@@ -71026,12 +70924,12 @@ const REF_POINTS_9 = REF_POINTS_5.concat([[0, 0.5], [0.5, 0], [1, 0.5], [0.5, 1]
|
|
71026
70924
|
const REF_POINTS_11 = REF_POINTS_9.concat([[0.25, 0.5], [0.75, 0.5]]);
|
71027
70925
|
class OSMNode {
|
71028
70926
|
constructor(x2, y2, z2) {
|
71029
|
-
_defineProperty$
|
71030
|
-
_defineProperty$
|
71031
|
-
_defineProperty$
|
71032
|
-
_defineProperty$
|
71033
|
-
_defineProperty$
|
71034
|
-
_defineProperty$
|
70927
|
+
_defineProperty$h(this, "x", void 0);
|
70928
|
+
_defineProperty$h(this, "y", void 0);
|
70929
|
+
_defineProperty$h(this, "z", void 0);
|
70930
|
+
_defineProperty$h(this, "childVisible", void 0);
|
70931
|
+
_defineProperty$h(this, "selected", void 0);
|
70932
|
+
_defineProperty$h(this, "_children", void 0);
|
71035
70933
|
this.x = x2;
|
71036
70934
|
this.y = y2;
|
71037
70935
|
this.z = z2;
|
@@ -71374,22 +71272,22 @@ const STRATEGIES = {
|
|
71374
71272
|
};
|
71375
71273
|
class Tileset2D {
|
71376
71274
|
constructor(opts2) {
|
71377
|
-
_defineProperty$
|
71378
|
-
_defineProperty$
|
71379
|
-
_defineProperty$
|
71380
|
-
_defineProperty$
|
71381
|
-
_defineProperty$
|
71382
|
-
_defineProperty$
|
71383
|
-
_defineProperty$
|
71384
|
-
_defineProperty$
|
71385
|
-
_defineProperty$
|
71386
|
-
_defineProperty$
|
71387
|
-
_defineProperty$
|
71388
|
-
_defineProperty$
|
71389
|
-
_defineProperty$
|
71390
|
-
_defineProperty$
|
71391
|
-
_defineProperty$
|
71392
|
-
_defineProperty$
|
71275
|
+
_defineProperty$h(this, "opts", void 0);
|
71276
|
+
_defineProperty$h(this, "_requestScheduler", void 0);
|
71277
|
+
_defineProperty$h(this, "_cache", void 0);
|
71278
|
+
_defineProperty$h(this, "_dirty", void 0);
|
71279
|
+
_defineProperty$h(this, "_tiles", void 0);
|
71280
|
+
_defineProperty$h(this, "_cacheByteSize", void 0);
|
71281
|
+
_defineProperty$h(this, "_viewport", void 0);
|
71282
|
+
_defineProperty$h(this, "_zRange", void 0);
|
71283
|
+
_defineProperty$h(this, "_selectedTiles", void 0);
|
71284
|
+
_defineProperty$h(this, "_frameNumber", void 0);
|
71285
|
+
_defineProperty$h(this, "_modelMatrix", void 0);
|
71286
|
+
_defineProperty$h(this, "_modelMatrixInverse", void 0);
|
71287
|
+
_defineProperty$h(this, "_maxZoom", void 0);
|
71288
|
+
_defineProperty$h(this, "_minZoom", void 0);
|
71289
|
+
_defineProperty$h(this, "onTileLoad", void 0);
|
71290
|
+
_defineProperty$h(this, "_getCullBounds", memoize$2(getCullBounds));
|
71393
71291
|
this.opts = opts2;
|
71394
71292
|
this.onTileLoad = (tile) => {
|
71395
71293
|
this.opts.onTileLoad(tile);
|
@@ -72015,8 +71913,8 @@ class TileLayer extends CompositeLayer {
|
|
72015
71913
|
return this.state.tileset.isTileVisible(tile, cullRect);
|
72016
71914
|
}
|
72017
71915
|
}
|
72018
|
-
_defineProperty$
|
72019
|
-
_defineProperty$
|
71916
|
+
_defineProperty$h(TileLayer, "defaultProps", defaultProps$q);
|
71917
|
+
_defineProperty$h(TileLayer, "layerName", "TileLayer");
|
72020
71918
|
const defaultProps$p = {
|
72021
71919
|
fadeTrail: true,
|
72022
71920
|
trailLength: {
|
@@ -72079,8 +71977,8 @@ class TripsLayer extends PathLayer {
|
|
72079
71977
|
super.draw(params2);
|
72080
71978
|
}
|
72081
71979
|
}
|
72082
|
-
_defineProperty$
|
72083
|
-
_defineProperty$
|
71980
|
+
_defineProperty$h(TripsLayer, "layerName", "TripsLayer");
|
71981
|
+
_defineProperty$h(TripsLayer, "defaultProps", defaultProps$p);
|
72084
71982
|
var libh3 = function(libh32) {
|
72085
71983
|
libh32 = libh32 || {};
|
72086
71984
|
var Module = typeof libh32 !== "undefined" ? libh32 : {};
|
@@ -83639,8 +83537,8 @@ class H3ClusterLayer extends GeoCellLayer {
|
|
83639
83537
|
};
|
83640
83538
|
}
|
83641
83539
|
}
|
83642
|
-
_defineProperty$
|
83643
|
-
_defineProperty$
|
83540
|
+
_defineProperty$h(H3ClusterLayer, "layerName", "H3ClusterLayer");
|
83541
|
+
_defineProperty$h(H3ClusterLayer, "defaultProps", defaultProps$o);
|
83644
83542
|
const UPDATE_THRESHOLD_KM = 10;
|
83645
83543
|
function normalizeLongitudes(vertices, refLng) {
|
83646
83544
|
refLng = refLng === void 0 ? vertices[0][0] : refLng;
|
@@ -83722,7 +83620,7 @@ const defaultProps$n = {
|
|
83722
83620
|
class H3HexagonLayer extends CompositeLayer {
|
83723
83621
|
constructor(...args) {
|
83724
83622
|
super(...args);
|
83725
|
-
_defineProperty$
|
83623
|
+
_defineProperty$h(this, "state", void 0);
|
83726
83624
|
}
|
83727
83625
|
initializeState() {
|
83728
83626
|
H3HexagonLayer._checkH3Lib();
|
@@ -83923,9 +83821,9 @@ class H3HexagonLayer extends CompositeLayer {
|
|
83923
83821
|
});
|
83924
83822
|
}
|
83925
83823
|
}
|
83926
|
-
_defineProperty$
|
83927
|
-
_defineProperty$
|
83928
|
-
_defineProperty$
|
83824
|
+
_defineProperty$h(H3HexagonLayer, "defaultProps", defaultProps$n);
|
83825
|
+
_defineProperty$h(H3HexagonLayer, "layerName", "H3HexagonLayer");
|
83826
|
+
_defineProperty$h(H3HexagonLayer, "_checkH3Lib", () => {
|
83929
83827
|
});
|
83930
83828
|
const RADIAN_PER_DEGREE = Math.PI / 180;
|
83931
83829
|
const modelMatrix = new Float32Array(16);
|
@@ -84144,7 +84042,7 @@ const defaultProps$m = {
|
|
84144
84042
|
class SimpleMeshLayer extends Layer {
|
84145
84043
|
constructor(...args) {
|
84146
84044
|
super(...args);
|
84147
|
-
_defineProperty$
|
84045
|
+
_defineProperty$h(this, "state", void 0);
|
84148
84046
|
}
|
84149
84047
|
getShaders() {
|
84150
84048
|
const transpileToGLSL100 = !isWebGL2$1(this.context.gl);
|
@@ -84270,8 +84168,8 @@ class SimpleMeshLayer extends Layer {
|
|
84270
84168
|
}
|
84271
84169
|
}
|
84272
84170
|
}
|
84273
|
-
_defineProperty$
|
84274
|
-
_defineProperty$
|
84171
|
+
_defineProperty$h(SimpleMeshLayer, "defaultProps", defaultProps$m);
|
84172
|
+
_defineProperty$h(SimpleMeshLayer, "layerName", "SimpleMeshLayer");
|
84275
84173
|
class ScenegraphNode {
|
84276
84174
|
constructor() {
|
84277
84175
|
let props = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -85630,9 +85528,9 @@ const DEFAULT_GLTF_JSON = {
|
|
85630
85528
|
};
|
85631
85529
|
class GLTFScenegraph {
|
85632
85530
|
constructor(gltf) {
|
85633
|
-
_defineProperty$
|
85634
|
-
_defineProperty$
|
85635
|
-
_defineProperty$
|
85531
|
+
_defineProperty$h(this, "gltf", void 0);
|
85532
|
+
_defineProperty$h(this, "sourceBuffers", void 0);
|
85533
|
+
_defineProperty$h(this, "byteLength", void 0);
|
85636
85534
|
this.gltf = gltf || {
|
85637
85535
|
json: {
|
85638
85536
|
...DEFAULT_GLTF_JSON
|
@@ -86250,8 +86148,8 @@ function assert$3(condition, message) {
|
|
86250
86148
|
}
|
86251
86149
|
class Schema {
|
86252
86150
|
constructor(fields, metadata2) {
|
86253
|
-
_defineProperty$
|
86254
|
-
_defineProperty$
|
86151
|
+
_defineProperty$h(this, "fields", void 0);
|
86152
|
+
_defineProperty$h(this, "metadata", void 0);
|
86255
86153
|
assert$3(Array.isArray(fields));
|
86256
86154
|
checkNames(fields);
|
86257
86155
|
this.fields = fields;
|
@@ -86318,10 +86216,10 @@ function mergeMaps(m1, m2) {
|
|
86318
86216
|
}
|
86319
86217
|
let Field$2 = class Field {
|
86320
86218
|
constructor(name2, type2, nullable = false, metadata2 = /* @__PURE__ */ new Map()) {
|
86321
|
-
_defineProperty$
|
86322
|
-
_defineProperty$
|
86323
|
-
_defineProperty$
|
86324
|
-
_defineProperty$
|
86219
|
+
_defineProperty$h(this, "name", void 0);
|
86220
|
+
_defineProperty$h(this, "type", void 0);
|
86221
|
+
_defineProperty$h(this, "nullable", void 0);
|
86222
|
+
_defineProperty$h(this, "metadata", void 0);
|
86325
86223
|
this.name = name2;
|
86326
86224
|
this.type = type2;
|
86327
86225
|
this.nullable = nullable;
|
@@ -86454,8 +86352,8 @@ _Symbol$toStringTag = Symbol.toStringTag;
|
|
86454
86352
|
class Int extends DataType {
|
86455
86353
|
constructor(isSigned, bitWidth) {
|
86456
86354
|
super();
|
86457
|
-
_defineProperty$
|
86458
|
-
_defineProperty$
|
86355
|
+
_defineProperty$h(this, "isSigned", void 0);
|
86356
|
+
_defineProperty$h(this, "bitWidth", void 0);
|
86459
86357
|
this.isSigned = isSigned;
|
86460
86358
|
this.bitWidth = bitWidth;
|
86461
86359
|
}
|
@@ -86508,7 +86406,7 @@ _Symbol$toStringTag2 = Symbol.toStringTag;
|
|
86508
86406
|
class Float extends DataType {
|
86509
86407
|
constructor(precision) {
|
86510
86408
|
super();
|
86511
|
-
_defineProperty$
|
86409
|
+
_defineProperty$h(this, "precision", void 0);
|
86512
86410
|
this.precision = precision;
|
86513
86411
|
}
|
86514
86412
|
get typeId() {
|
@@ -86535,8 +86433,8 @@ _Symbol$toStringTag7 = Symbol.toStringTag;
|
|
86535
86433
|
class FixedSizeList extends DataType {
|
86536
86434
|
constructor(listSize, child) {
|
86537
86435
|
super();
|
86538
|
-
_defineProperty$
|
86539
|
-
_defineProperty$
|
86436
|
+
_defineProperty$h(this, "listSize", void 0);
|
86437
|
+
_defineProperty$h(this, "children", void 0);
|
86540
86438
|
this.listSize = listSize;
|
86541
86439
|
this.children = [child];
|
86542
86440
|
}
|
@@ -86650,9 +86548,9 @@ const DRACO_DATA_TYPE_TO_TYPED_ARRAY_MAP = {
|
|
86650
86548
|
const INDEX_ITEM_SIZE = 4;
|
86651
86549
|
class DracoParser {
|
86652
86550
|
constructor(draco) {
|
86653
|
-
_defineProperty$
|
86654
|
-
_defineProperty$
|
86655
|
-
_defineProperty$
|
86551
|
+
_defineProperty$h(this, "draco", void 0);
|
86552
|
+
_defineProperty$h(this, "decoder", void 0);
|
86553
|
+
_defineProperty$h(this, "metadataQuerier", void 0);
|
86656
86554
|
this.draco = draco;
|
86657
86555
|
this.decoder = new this.draco.Decoder();
|
86658
86556
|
this.metadataQuerier = new this.draco.MetadataQuerier();
|
@@ -87432,7 +87330,7 @@ const GLTF_KEYS = {
|
|
87432
87330
|
};
|
87433
87331
|
class GLTFV1Normalizer {
|
87434
87332
|
constructor() {
|
87435
|
-
_defineProperty$
|
87333
|
+
_defineProperty$h(this, "idToIndexMap", {
|
87436
87334
|
animations: {},
|
87437
87335
|
accessors: {},
|
87438
87336
|
buffers: {},
|
@@ -87446,7 +87344,7 @@ class GLTFV1Normalizer {
|
|
87446
87344
|
skins: {},
|
87447
87345
|
textures: {}
|
87448
87346
|
});
|
87449
|
-
_defineProperty$
|
87347
|
+
_defineProperty$h(this, "json", void 0);
|
87450
87348
|
}
|
87451
87349
|
normalize(gltf, options) {
|
87452
87350
|
this.json = gltf.json;
|
@@ -87648,10 +87546,10 @@ function getSizeFromAccessorType(type2) {
|
|
87648
87546
|
}
|
87649
87547
|
class GLTFPostProcessor {
|
87650
87548
|
constructor() {
|
87651
|
-
_defineProperty$
|
87652
|
-
_defineProperty$
|
87653
|
-
_defineProperty$
|
87654
|
-
_defineProperty$
|
87549
|
+
_defineProperty$h(this, "baseUri", "");
|
87550
|
+
_defineProperty$h(this, "json", {});
|
87551
|
+
_defineProperty$h(this, "buffers", []);
|
87552
|
+
_defineProperty$h(this, "images", []);
|
87655
87553
|
}
|
87656
87554
|
postProcess(gltf, options = {}) {
|
87657
87555
|
const {
|
@@ -88306,7 +88204,7 @@ const defaultProps$l = {
|
|
88306
88204
|
class ScenegraphLayer extends Layer {
|
88307
88205
|
constructor(...args) {
|
88308
88206
|
super(...args);
|
88309
|
-
_defineProperty$
|
88207
|
+
_defineProperty$h(this, "state", void 0);
|
88310
88208
|
}
|
88311
88209
|
getShaders() {
|
88312
88210
|
const modules2 = [project32, picking];
|
@@ -88521,8 +88419,8 @@ class ScenegraphLayer extends Layer {
|
|
88521
88419
|
});
|
88522
88420
|
}
|
88523
88421
|
}
|
88524
|
-
_defineProperty$
|
88525
|
-
_defineProperty$
|
88422
|
+
_defineProperty$h(ScenegraphLayer, "defaultProps", defaultProps$l);
|
88423
|
+
_defineProperty$h(ScenegraphLayer, "layerName", "ScenegraphLayer");
|
88526
88424
|
const esm$3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
88527
88425
|
__proto__: null,
|
88528
88426
|
ScenegraphLayer,
|
@@ -88681,8 +88579,8 @@ class MeshLayer extends SimpleMeshLayer {
|
|
88681
88579
|
});
|
88682
88580
|
}
|
88683
88581
|
}
|
88684
|
-
_defineProperty$
|
88685
|
-
_defineProperty$
|
88582
|
+
_defineProperty$h(MeshLayer, "layerName", "MeshLayer");
|
88583
|
+
_defineProperty$h(MeshLayer, "defaultProps", defaultProps$k);
|
88686
88584
|
const WGS84_RADIUS_X$1 = 6378137;
|
88687
88585
|
const WGS84_RADIUS_Y$1 = 6378137;
|
88688
88586
|
const WGS84_RADIUS_Z$1 = 6356752314245179e-9;
|
@@ -88914,15 +88812,15 @@ const scratchHeight = new Vector3();
|
|
88914
88812
|
const scratchCartesian = new Vector3();
|
88915
88813
|
class Ellipsoid {
|
88916
88814
|
constructor(x2 = 0, y2 = 0, z2 = 0) {
|
88917
|
-
_defineProperty$
|
88918
|
-
_defineProperty$
|
88919
|
-
_defineProperty$
|
88920
|
-
_defineProperty$
|
88921
|
-
_defineProperty$
|
88922
|
-
_defineProperty$
|
88923
|
-
_defineProperty$
|
88924
|
-
_defineProperty$
|
88925
|
-
_defineProperty$
|
88815
|
+
_defineProperty$h(this, "radii", void 0);
|
88816
|
+
_defineProperty$h(this, "radiiSquared", void 0);
|
88817
|
+
_defineProperty$h(this, "radiiToTheFourth", void 0);
|
88818
|
+
_defineProperty$h(this, "oneOverRadii", void 0);
|
88819
|
+
_defineProperty$h(this, "oneOverRadiiSquared", void 0);
|
88820
|
+
_defineProperty$h(this, "minimumRadius", void 0);
|
88821
|
+
_defineProperty$h(this, "maximumRadius", void 0);
|
88822
|
+
_defineProperty$h(this, "centerToleranceSquared", _MathUtils.EPSILON1);
|
88823
|
+
_defineProperty$h(this, "squaredXOverSquaredZ", void 0);
|
88926
88824
|
assert$7(x2 >= 0);
|
88927
88825
|
assert$7(y2 >= 0);
|
88928
88826
|
assert$7(z2 >= 0);
|
@@ -89019,12 +88917,12 @@ class Ellipsoid {
|
|
89019
88917
|
return scratchPosition$1.set(0, 0, z2).to(result);
|
89020
88918
|
}
|
89021
88919
|
}
|
89022
|
-
_defineProperty$
|
88920
|
+
_defineProperty$h(Ellipsoid, "WGS84", new Ellipsoid(WGS84_RADIUS_X$1, WGS84_RADIUS_Y$1, WGS84_RADIUS_Z$1));
|
89023
88921
|
class DoublyLinkedListNode {
|
89024
88922
|
constructor(item, previous, next) {
|
89025
|
-
_defineProperty$
|
89026
|
-
_defineProperty$
|
89027
|
-
_defineProperty$
|
88923
|
+
_defineProperty$h(this, "item", void 0);
|
88924
|
+
_defineProperty$h(this, "previous", void 0);
|
88925
|
+
_defineProperty$h(this, "next", void 0);
|
89028
88926
|
this.item = item;
|
89029
88927
|
this.previous = previous;
|
89030
88928
|
this.next = next;
|
@@ -89032,9 +88930,9 @@ class DoublyLinkedListNode {
|
|
89032
88930
|
}
|
89033
88931
|
class DoublyLinkedList {
|
89034
88932
|
constructor() {
|
89035
|
-
_defineProperty$
|
89036
|
-
_defineProperty$
|
89037
|
-
_defineProperty$
|
88933
|
+
_defineProperty$h(this, "head", null);
|
88934
|
+
_defineProperty$h(this, "tail", null);
|
88935
|
+
_defineProperty$h(this, "_length", 0);
|
89038
88936
|
}
|
89039
88937
|
get length() {
|
89040
88938
|
return this._length;
|
@@ -89097,9 +88995,9 @@ function defined$5(x2) {
|
|
89097
88995
|
}
|
89098
88996
|
class TilesetCache {
|
89099
88997
|
constructor() {
|
89100
|
-
_defineProperty$
|
89101
|
-
_defineProperty$
|
89102
|
-
_defineProperty$
|
88998
|
+
_defineProperty$h(this, "_list", void 0);
|
88999
|
+
_defineProperty$h(this, "_sentinel", void 0);
|
89000
|
+
_defineProperty$h(this, "_trimTiles", void 0);
|
89103
89001
|
this._list = new DoublyLinkedList();
|
89104
89002
|
this._sentinel = this._list.add("sentinel");
|
89105
89003
|
this._trimTiles = false;
|
@@ -89542,9 +89440,9 @@ function get3dTilesOptions(tileset) {
|
|
89542
89440
|
}
|
89543
89441
|
class ManagedArray {
|
89544
89442
|
constructor(length2 = 0) {
|
89545
|
-
_defineProperty$
|
89546
|
-
_defineProperty$
|
89547
|
-
_defineProperty$
|
89443
|
+
_defineProperty$h(this, "_map", /* @__PURE__ */ new Map());
|
89444
|
+
_defineProperty$h(this, "_array", void 0);
|
89445
|
+
_defineProperty$h(this, "_length", void 0);
|
89548
89446
|
this._array = new Array(length2);
|
89549
89447
|
this._length = length2;
|
89550
89448
|
}
|
@@ -89638,16 +89536,16 @@ class TilesetTraverser {
|
|
89638
89536
|
return true;
|
89639
89537
|
}
|
89640
89538
|
constructor(options) {
|
89641
|
-
_defineProperty$
|
89642
|
-
_defineProperty$
|
89643
|
-
_defineProperty$
|
89644
|
-
_defineProperty$
|
89645
|
-
_defineProperty$
|
89646
|
-
_defineProperty$
|
89647
|
-
_defineProperty$
|
89648
|
-
_defineProperty$
|
89649
|
-
_defineProperty$
|
89650
|
-
_defineProperty$
|
89539
|
+
_defineProperty$h(this, "options", void 0);
|
89540
|
+
_defineProperty$h(this, "root", void 0);
|
89541
|
+
_defineProperty$h(this, "requestedTiles", void 0);
|
89542
|
+
_defineProperty$h(this, "selectedTiles", void 0);
|
89543
|
+
_defineProperty$h(this, "emptyTiles", void 0);
|
89544
|
+
_defineProperty$h(this, "lastUpdate", (/* @__PURE__ */ new Date()).getTime());
|
89545
|
+
_defineProperty$h(this, "updateDebounceTime", 1e3);
|
89546
|
+
_defineProperty$h(this, "_traversalStack", void 0);
|
89547
|
+
_defineProperty$h(this, "_emptyTraversalStack", void 0);
|
89548
|
+
_defineProperty$h(this, "_frameNumber", void 0);
|
89651
89549
|
this.options = {
|
89652
89550
|
...DEFAULT_PROPS$1,
|
89653
89551
|
...options
|
@@ -89868,52 +89766,52 @@ function defined$3(x2) {
|
|
89868
89766
|
}
|
89869
89767
|
class TileHeader {
|
89870
89768
|
constructor(tileset, header, parentHeader, extendedId = "") {
|
89871
|
-
_defineProperty$
|
89872
|
-
_defineProperty$
|
89873
|
-
_defineProperty$
|
89874
|
-
_defineProperty$
|
89875
|
-
_defineProperty$
|
89876
|
-
_defineProperty$
|
89877
|
-
_defineProperty$
|
89878
|
-
_defineProperty$
|
89879
|
-
_defineProperty$
|
89880
|
-
_defineProperty$
|
89881
|
-
_defineProperty$
|
89882
|
-
_defineProperty$
|
89883
|
-
_defineProperty$
|
89884
|
-
_defineProperty$
|
89885
|
-
_defineProperty$
|
89886
|
-
_defineProperty$
|
89887
|
-
_defineProperty$
|
89888
|
-
_defineProperty$
|
89889
|
-
_defineProperty$
|
89890
|
-
_defineProperty$
|
89891
|
-
_defineProperty$
|
89892
|
-
_defineProperty$
|
89893
|
-
_defineProperty$
|
89894
|
-
_defineProperty$
|
89895
|
-
_defineProperty$
|
89896
|
-
_defineProperty$
|
89897
|
-
_defineProperty$
|
89898
|
-
_defineProperty$
|
89899
|
-
_defineProperty$
|
89900
|
-
_defineProperty$
|
89901
|
-
_defineProperty$
|
89902
|
-
_defineProperty$
|
89903
|
-
_defineProperty$
|
89904
|
-
_defineProperty$
|
89905
|
-
_defineProperty$
|
89906
|
-
_defineProperty$
|
89907
|
-
_defineProperty$
|
89908
|
-
_defineProperty$
|
89909
|
-
_defineProperty$
|
89910
|
-
_defineProperty$
|
89911
|
-
_defineProperty$
|
89912
|
-
_defineProperty$
|
89913
|
-
_defineProperty$
|
89914
|
-
_defineProperty$
|
89915
|
-
_defineProperty$
|
89916
|
-
_defineProperty$
|
89769
|
+
_defineProperty$h(this, "tileset", void 0);
|
89770
|
+
_defineProperty$h(this, "header", void 0);
|
89771
|
+
_defineProperty$h(this, "id", void 0);
|
89772
|
+
_defineProperty$h(this, "url", void 0);
|
89773
|
+
_defineProperty$h(this, "parent", void 0);
|
89774
|
+
_defineProperty$h(this, "refine", void 0);
|
89775
|
+
_defineProperty$h(this, "type", void 0);
|
89776
|
+
_defineProperty$h(this, "contentUrl", void 0);
|
89777
|
+
_defineProperty$h(this, "lodMetricType", void 0);
|
89778
|
+
_defineProperty$h(this, "lodMetricValue", void 0);
|
89779
|
+
_defineProperty$h(this, "boundingVolume", void 0);
|
89780
|
+
_defineProperty$h(this, "content", void 0);
|
89781
|
+
_defineProperty$h(this, "contentState", void 0);
|
89782
|
+
_defineProperty$h(this, "gpuMemoryUsageInBytes", void 0);
|
89783
|
+
_defineProperty$h(this, "children", void 0);
|
89784
|
+
_defineProperty$h(this, "depth", void 0);
|
89785
|
+
_defineProperty$h(this, "viewportIds", void 0);
|
89786
|
+
_defineProperty$h(this, "transform", void 0);
|
89787
|
+
_defineProperty$h(this, "extensions", void 0);
|
89788
|
+
_defineProperty$h(this, "userData", void 0);
|
89789
|
+
_defineProperty$h(this, "computedTransform", void 0);
|
89790
|
+
_defineProperty$h(this, "hasEmptyContent", void 0);
|
89791
|
+
_defineProperty$h(this, "hasTilesetContent", void 0);
|
89792
|
+
_defineProperty$h(this, "traverser", void 0);
|
89793
|
+
_defineProperty$h(this, "_cacheNode", void 0);
|
89794
|
+
_defineProperty$h(this, "_frameNumber", void 0);
|
89795
|
+
_defineProperty$h(this, "_lodJudge", void 0);
|
89796
|
+
_defineProperty$h(this, "_expireDate", void 0);
|
89797
|
+
_defineProperty$h(this, "_expiredContent", void 0);
|
89798
|
+
_defineProperty$h(this, "_shouldRefine", void 0);
|
89799
|
+
_defineProperty$h(this, "_distanceToCamera", void 0);
|
89800
|
+
_defineProperty$h(this, "_centerZDepth", void 0);
|
89801
|
+
_defineProperty$h(this, "_screenSpaceError", void 0);
|
89802
|
+
_defineProperty$h(this, "_visibilityPlaneMask", void 0);
|
89803
|
+
_defineProperty$h(this, "_visible", void 0);
|
89804
|
+
_defineProperty$h(this, "_inRequestVolume", void 0);
|
89805
|
+
_defineProperty$h(this, "_stackLength", void 0);
|
89806
|
+
_defineProperty$h(this, "_selectionDepth", void 0);
|
89807
|
+
_defineProperty$h(this, "_touchedFrame", void 0);
|
89808
|
+
_defineProperty$h(this, "_visitedFrame", void 0);
|
89809
|
+
_defineProperty$h(this, "_selectedFrame", void 0);
|
89810
|
+
_defineProperty$h(this, "_requestedFrame", void 0);
|
89811
|
+
_defineProperty$h(this, "_priority", void 0);
|
89812
|
+
_defineProperty$h(this, "_contentBoundingVolume", void 0);
|
89813
|
+
_defineProperty$h(this, "_viewerRequestVolume", void 0);
|
89814
|
+
_defineProperty$h(this, "_initialTransform", void 0);
|
89917
89815
|
this.header = header;
|
89918
89816
|
this.tileset = tileset;
|
89919
89817
|
this.id = extendedId || header.id;
|
@@ -90306,7 +90204,7 @@ class Tileset3DTraverser extends TilesetTraverser {
|
|
90306
90204
|
}
|
90307
90205
|
class I3SPendingTilesRegister {
|
90308
90206
|
constructor() {
|
90309
|
-
_defineProperty$
|
90207
|
+
_defineProperty$h(this, "frameNumberMap", /* @__PURE__ */ new Map());
|
90310
90208
|
}
|
90311
90209
|
register(viewportId, frameNumber) {
|
90312
90210
|
const viewportMap = this.frameNumberMap.get(viewportId) || /* @__PURE__ */ new Map();
|
@@ -90335,8 +90233,8 @@ const STATUS = {
|
|
90335
90233
|
};
|
90336
90234
|
class I3STileManager {
|
90337
90235
|
constructor() {
|
90338
|
-
_defineProperty$
|
90339
|
-
_defineProperty$
|
90236
|
+
_defineProperty$h(this, "_statusMap", void 0);
|
90237
|
+
_defineProperty$h(this, "pendingTilesRegister", new I3SPendingTilesRegister());
|
90340
90238
|
this._statusMap = {};
|
90341
90239
|
}
|
90342
90240
|
add(request2, key2, callback, frameState) {
|
@@ -90410,7 +90308,7 @@ class I3STilesetTraverser extends TilesetTraverser {
|
|
90410
90308
|
}
|
90411
90309
|
constructor(options) {
|
90412
90310
|
super(options);
|
90413
|
-
_defineProperty$
|
90311
|
+
_defineProperty$h(this, "_tileManager", void 0);
|
90414
90312
|
this._tileManager = new I3STileManager();
|
90415
90313
|
}
|
90416
90314
|
shouldRefine(tile, frameState) {
|
@@ -90507,52 +90405,52 @@ const POINTS_COUNT = "Points/Vertices";
|
|
90507
90405
|
const TILES_GPU_MEMORY = "Tile Memory Use";
|
90508
90406
|
class Tileset3D {
|
90509
90407
|
constructor(json2, options) {
|
90510
|
-
_defineProperty$
|
90511
|
-
_defineProperty$
|
90512
|
-
_defineProperty$
|
90513
|
-
_defineProperty$
|
90514
|
-
_defineProperty$
|
90515
|
-
_defineProperty$
|
90516
|
-
_defineProperty$
|
90517
|
-
_defineProperty$
|
90518
|
-
_defineProperty$
|
90519
|
-
_defineProperty$
|
90520
|
-
_defineProperty$
|
90521
|
-
_defineProperty$
|
90522
|
-
_defineProperty$
|
90523
|
-
_defineProperty$
|
90524
|
-
_defineProperty$
|
90525
|
-
_defineProperty$
|
90526
|
-
_defineProperty$
|
90527
|
-
_defineProperty$
|
90528
|
-
_defineProperty$
|
90529
|
-
_defineProperty$
|
90530
|
-
_defineProperty$
|
90531
|
-
_defineProperty$
|
90532
|
-
_defineProperty$
|
90533
|
-
_defineProperty$
|
90534
|
-
_defineProperty$
|
90535
|
-
_defineProperty$
|
90536
|
-
_defineProperty$
|
90537
|
-
_defineProperty$
|
90538
|
-
_defineProperty$
|
90539
|
-
_defineProperty$
|
90540
|
-
_defineProperty$
|
90541
|
-
_defineProperty$
|
90542
|
-
_defineProperty$
|
90543
|
-
_defineProperty$
|
90544
|
-
_defineProperty$
|
90545
|
-
_defineProperty$
|
90546
|
-
_defineProperty$
|
90547
|
-
_defineProperty$
|
90548
|
-
_defineProperty$
|
90549
|
-
_defineProperty$
|
90550
|
-
_defineProperty$
|
90551
|
-
_defineProperty$
|
90552
|
-
_defineProperty$
|
90553
|
-
_defineProperty$
|
90554
|
-
_defineProperty$
|
90555
|
-
_defineProperty$
|
90408
|
+
_defineProperty$h(this, "options", void 0);
|
90409
|
+
_defineProperty$h(this, "loadOptions", void 0);
|
90410
|
+
_defineProperty$h(this, "type", void 0);
|
90411
|
+
_defineProperty$h(this, "tileset", void 0);
|
90412
|
+
_defineProperty$h(this, "loader", void 0);
|
90413
|
+
_defineProperty$h(this, "url", void 0);
|
90414
|
+
_defineProperty$h(this, "basePath", void 0);
|
90415
|
+
_defineProperty$h(this, "modelMatrix", void 0);
|
90416
|
+
_defineProperty$h(this, "ellipsoid", void 0);
|
90417
|
+
_defineProperty$h(this, "lodMetricType", void 0);
|
90418
|
+
_defineProperty$h(this, "lodMetricValue", void 0);
|
90419
|
+
_defineProperty$h(this, "refine", void 0);
|
90420
|
+
_defineProperty$h(this, "root", void 0);
|
90421
|
+
_defineProperty$h(this, "roots", void 0);
|
90422
|
+
_defineProperty$h(this, "asset", void 0);
|
90423
|
+
_defineProperty$h(this, "description", void 0);
|
90424
|
+
_defineProperty$h(this, "properties", void 0);
|
90425
|
+
_defineProperty$h(this, "extras", void 0);
|
90426
|
+
_defineProperty$h(this, "attributions", void 0);
|
90427
|
+
_defineProperty$h(this, "credits", void 0);
|
90428
|
+
_defineProperty$h(this, "stats", void 0);
|
90429
|
+
_defineProperty$h(this, "traverseCounter", void 0);
|
90430
|
+
_defineProperty$h(this, "geometricError", void 0);
|
90431
|
+
_defineProperty$h(this, "selectedTiles", void 0);
|
90432
|
+
_defineProperty$h(this, "updatePromise", null);
|
90433
|
+
_defineProperty$h(this, "tilesetInitializationPromise", void 0);
|
90434
|
+
_defineProperty$h(this, "cartographicCenter", void 0);
|
90435
|
+
_defineProperty$h(this, "cartesianCenter", void 0);
|
90436
|
+
_defineProperty$h(this, "zoom", void 0);
|
90437
|
+
_defineProperty$h(this, "boundingVolume", void 0);
|
90438
|
+
_defineProperty$h(this, "gpuMemoryUsageInBytes", void 0);
|
90439
|
+
_defineProperty$h(this, "dynamicScreenSpaceErrorComputedDensity", void 0);
|
90440
|
+
_defineProperty$h(this, "_traverser", void 0);
|
90441
|
+
_defineProperty$h(this, "_cache", void 0);
|
90442
|
+
_defineProperty$h(this, "_requestScheduler", void 0);
|
90443
|
+
_defineProperty$h(this, "_frameNumber", void 0);
|
90444
|
+
_defineProperty$h(this, "_queryParamsString", void 0);
|
90445
|
+
_defineProperty$h(this, "_queryParams", void 0);
|
90446
|
+
_defineProperty$h(this, "_extensionsUsed", void 0);
|
90447
|
+
_defineProperty$h(this, "_tiles", void 0);
|
90448
|
+
_defineProperty$h(this, "_pendingCount", void 0);
|
90449
|
+
_defineProperty$h(this, "lastUpdatedVieports", void 0);
|
90450
|
+
_defineProperty$h(this, "_requestedTiles", void 0);
|
90451
|
+
_defineProperty$h(this, "_emptyTiles", void 0);
|
90452
|
+
_defineProperty$h(this, "frameStateData", void 0);
|
90453
|
+
_defineProperty$h(this, "maximumMemoryUsage", void 0);
|
90556
90454
|
assert$d(json2);
|
90557
90455
|
this.options = {
|
90558
90456
|
...DEFAULT_PROPS,
|
@@ -91208,10 +91106,10 @@ function octDecode(x2, y2, result) {
|
|
91208
91106
|
}
|
91209
91107
|
class Tile3DFeatureTable {
|
91210
91108
|
constructor(featureTableJson, featureTableBinary) {
|
91211
|
-
_defineProperty$
|
91212
|
-
_defineProperty$
|
91213
|
-
_defineProperty$
|
91214
|
-
_defineProperty$
|
91109
|
+
_defineProperty$h(this, "json", void 0);
|
91110
|
+
_defineProperty$h(this, "buffer", void 0);
|
91111
|
+
_defineProperty$h(this, "featuresLength", 0);
|
91112
|
+
_defineProperty$h(this, "_cachedTypedArrays", {});
|
91215
91113
|
this.json = featureTableJson;
|
91216
91114
|
this.buffer = featureTableBinary;
|
91217
91115
|
}
|
@@ -91545,13 +91443,13 @@ const IGNORED_PROPERTY_FIELDS = {
|
|
91545
91443
|
class Tile3DBatchTableParser {
|
91546
91444
|
constructor(json2, binary, featureCount, options = {}) {
|
91547
91445
|
var _this$json;
|
91548
|
-
_defineProperty$
|
91549
|
-
_defineProperty$
|
91550
|
-
_defineProperty$
|
91551
|
-
_defineProperty$
|
91552
|
-
_defineProperty$
|
91553
|
-
_defineProperty$
|
91554
|
-
_defineProperty$
|
91446
|
+
_defineProperty$h(this, "json", void 0);
|
91447
|
+
_defineProperty$h(this, "binary", void 0);
|
91448
|
+
_defineProperty$h(this, "featureCount", void 0);
|
91449
|
+
_defineProperty$h(this, "_extensions", void 0);
|
91450
|
+
_defineProperty$h(this, "_properties", void 0);
|
91451
|
+
_defineProperty$h(this, "_binaryProperties", void 0);
|
91452
|
+
_defineProperty$h(this, "_hierarchy", void 0);
|
91555
91453
|
assert$d(featureCount >= 0);
|
91556
91454
|
this.json = json2 || {};
|
91557
91455
|
this.binary = binary;
|
@@ -92896,7 +92794,7 @@ const defaultProps$j = {
|
|
92896
92794
|
class Tile3DLayer extends CompositeLayer {
|
92897
92795
|
constructor(...args) {
|
92898
92796
|
super(...args);
|
92899
|
-
_defineProperty$
|
92797
|
+
_defineProperty$h(this, "state", void 0);
|
92900
92798
|
}
|
92901
92799
|
initializeState() {
|
92902
92800
|
if ("onTileLoadFail" in this.props) {
|
@@ -93215,8 +93113,8 @@ class Tile3DLayer extends CompositeLayer {
|
|
93215
93113
|
}).filter(Boolean);
|
93216
93114
|
}
|
93217
93115
|
}
|
93218
|
-
_defineProperty$
|
93219
|
-
_defineProperty$
|
93116
|
+
_defineProperty$h(Tile3DLayer, "defaultProps", defaultProps$j);
|
93117
|
+
_defineProperty$h(Tile3DLayer, "layerName", "Tile3DLayer");
|
93220
93118
|
function getMeshGeometry(contentAttributes) {
|
93221
93119
|
const attributes = {};
|
93222
93120
|
attributes.positions = {
|
@@ -94046,7 +93944,7 @@ function urlTemplateToUpdateTrigger(template) {
|
|
94046
93944
|
class TerrainLayer extends CompositeLayer {
|
94047
93945
|
constructor(...args) {
|
94048
93946
|
super(...args);
|
94049
|
-
_defineProperty$
|
93947
|
+
_defineProperty$h(this, "state", void 0);
|
94050
93948
|
}
|
94051
93949
|
updateState({
|
94052
93950
|
props,
|
@@ -94261,8 +94159,8 @@ class TerrainLayer extends CompositeLayer {
|
|
94261
94159
|
});
|
94262
94160
|
}
|
94263
94161
|
}
|
94264
|
-
_defineProperty$
|
94265
|
-
_defineProperty$
|
94162
|
+
_defineProperty$h(TerrainLayer, "defaultProps", defaultProps$i);
|
94163
|
+
_defineProperty$h(TerrainLayer, "layerName", "TerrainLayer");
|
94266
94164
|
function flatGeojsonToBinary(features, geometryInfo, options) {
|
94267
94165
|
const propArrayTypes = extractNumericPropTypes(features);
|
94268
94166
|
const numericPropKeys = Object.keys(propArrayTypes).filter((k) => propArrayTypes[k] !== Array);
|
@@ -95552,14 +95450,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
95552
95450
|
return ["Unknown", "Point", "LineString", "Polygon"];
|
95553
95451
|
}
|
95554
95452
|
constructor(pbf2, end, extent2, keys3, values2) {
|
95555
|
-
_defineProperty$
|
95556
|
-
_defineProperty$
|
95557
|
-
_defineProperty$
|
95558
|
-
_defineProperty$
|
95559
|
-
_defineProperty$
|
95560
|
-
_defineProperty$
|
95561
|
-
_defineProperty$
|
95562
|
-
_defineProperty$
|
95453
|
+
_defineProperty$h(this, "properties", void 0);
|
95454
|
+
_defineProperty$h(this, "extent", void 0);
|
95455
|
+
_defineProperty$h(this, "type", void 0);
|
95456
|
+
_defineProperty$h(this, "id", void 0);
|
95457
|
+
_defineProperty$h(this, "_pbf", void 0);
|
95458
|
+
_defineProperty$h(this, "_geometry", void 0);
|
95459
|
+
_defineProperty$h(this, "_keys", void 0);
|
95460
|
+
_defineProperty$h(this, "_values", void 0);
|
95563
95461
|
this.properties = {};
|
95564
95462
|
this.extent = extent2;
|
95565
95463
|
this.type = 0;
|
@@ -95716,14 +95614,14 @@ let VectorTileFeature$1 = class VectorTileFeature {
|
|
95716
95614
|
};
|
95717
95615
|
let VectorTileLayer$1 = class VectorTileLayer {
|
95718
95616
|
constructor(pbf2, end) {
|
95719
|
-
_defineProperty$
|
95720
|
-
_defineProperty$
|
95721
|
-
_defineProperty$
|
95722
|
-
_defineProperty$
|
95723
|
-
_defineProperty$
|
95724
|
-
_defineProperty$
|
95725
|
-
_defineProperty$
|
95726
|
-
_defineProperty$
|
95617
|
+
_defineProperty$h(this, "version", void 0);
|
95618
|
+
_defineProperty$h(this, "name", void 0);
|
95619
|
+
_defineProperty$h(this, "extent", void 0);
|
95620
|
+
_defineProperty$h(this, "length", void 0);
|
95621
|
+
_defineProperty$h(this, "_pbf", void 0);
|
95622
|
+
_defineProperty$h(this, "_keys", void 0);
|
95623
|
+
_defineProperty$h(this, "_values", void 0);
|
95624
|
+
_defineProperty$h(this, "_features", void 0);
|
95727
95625
|
this.version = 1;
|
95728
95626
|
this.name = "";
|
95729
95627
|
this.extent = 4096;
|
@@ -95771,7 +95669,7 @@ function readValueMessage$1(pbf2) {
|
|
95771
95669
|
}
|
95772
95670
|
let VectorTile$1 = class VectorTile {
|
95773
95671
|
constructor(pbf2, end) {
|
95774
|
-
_defineProperty$
|
95672
|
+
_defineProperty$h(this, "layers", void 0);
|
95775
95673
|
this.layers = pbf2.readFields(readTile$1, {}, end);
|
95776
95674
|
}
|
95777
95675
|
};
|
@@ -95875,15 +95773,15 @@ let y$4;
|
|
95875
95773
|
let i$2;
|
95876
95774
|
class VectorTileFeature2 {
|
95877
95775
|
constructor(pbf2, end, extent2, keys3, values2, geometryInfo) {
|
95878
|
-
_defineProperty$
|
95879
|
-
_defineProperty$
|
95880
|
-
_defineProperty$
|
95881
|
-
_defineProperty$
|
95882
|
-
_defineProperty$
|
95883
|
-
_defineProperty$
|
95884
|
-
_defineProperty$
|
95885
|
-
_defineProperty$
|
95886
|
-
_defineProperty$
|
95776
|
+
_defineProperty$h(this, "properties", void 0);
|
95777
|
+
_defineProperty$h(this, "extent", void 0);
|
95778
|
+
_defineProperty$h(this, "type", void 0);
|
95779
|
+
_defineProperty$h(this, "id", void 0);
|
95780
|
+
_defineProperty$h(this, "_pbf", void 0);
|
95781
|
+
_defineProperty$h(this, "_geometry", void 0);
|
95782
|
+
_defineProperty$h(this, "_keys", void 0);
|
95783
|
+
_defineProperty$h(this, "_values", void 0);
|
95784
|
+
_defineProperty$h(this, "_geometryInfo", void 0);
|
95887
95785
|
this.properties = {};
|
95888
95786
|
this.extent = extent2;
|
95889
95787
|
this.type = 0;
|
@@ -95998,14 +95896,14 @@ class VectorTileFeature2 {
|
|
95998
95896
|
}
|
95999
95897
|
class VectorTileLayer2 {
|
96000
95898
|
constructor(pbf2, end) {
|
96001
|
-
_defineProperty$
|
96002
|
-
_defineProperty$
|
96003
|
-
_defineProperty$
|
96004
|
-
_defineProperty$
|
96005
|
-
_defineProperty$
|
96006
|
-
_defineProperty$
|
96007
|
-
_defineProperty$
|
96008
|
-
_defineProperty$
|
95899
|
+
_defineProperty$h(this, "version", void 0);
|
95900
|
+
_defineProperty$h(this, "name", void 0);
|
95901
|
+
_defineProperty$h(this, "extent", void 0);
|
95902
|
+
_defineProperty$h(this, "length", void 0);
|
95903
|
+
_defineProperty$h(this, "_pbf", void 0);
|
95904
|
+
_defineProperty$h(this, "_keys", void 0);
|
95905
|
+
_defineProperty$h(this, "_values", void 0);
|
95906
|
+
_defineProperty$h(this, "_features", void 0);
|
96009
95907
|
this.version = 1;
|
96010
95908
|
this.name = "";
|
96011
95909
|
this.extent = 4096;
|
@@ -96053,7 +95951,7 @@ function readValueMessage(pbf2) {
|
|
96053
95951
|
}
|
96054
95952
|
class VectorTile2 {
|
96055
95953
|
constructor(pbf2, end) {
|
96056
|
-
_defineProperty$
|
95954
|
+
_defineProperty$h(this, "layers", void 0);
|
96057
95955
|
this.layers = pbf2.readFields(readTile, {}, end);
|
96058
95956
|
}
|
96059
95957
|
}
|
@@ -96664,8 +96562,8 @@ class MVTLayer extends TileLayer {
|
|
96664
96562
|
});
|
96665
96563
|
}
|
96666
96564
|
}
|
96667
|
-
_defineProperty$
|
96668
|
-
_defineProperty$
|
96565
|
+
_defineProperty$h(MVTLayer, "layerName", "MVTLayer");
|
96566
|
+
_defineProperty$h(MVTLayer, "defaultProps", defaultProps$h);
|
96669
96567
|
function getFeatureUniqueId(feature2, uniqueIdProperty) {
|
96670
96568
|
if (feature2.properties && uniqueIdProperty) {
|
96671
96569
|
return feature2.properties[uniqueIdProperty];
|
@@ -96763,8 +96661,8 @@ class GeohashLayer extends GeoCellLayer {
|
|
96763
96661
|
};
|
96764
96662
|
}
|
96765
96663
|
}
|
96766
|
-
_defineProperty$
|
96767
|
-
_defineProperty$
|
96664
|
+
_defineProperty$h(GeohashLayer, "layerName", "GeohashLayer");
|
96665
|
+
_defineProperty$h(GeohashLayer, "defaultProps", defaultProps$g);
|
96768
96666
|
const esm$2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
96769
96667
|
__proto__: null,
|
96770
96668
|
GeohashLayer,
|
@@ -133224,16 +133122,16 @@ function addDecoder(cases2, importFn) {
|
|
133224
133122
|
}
|
133225
133123
|
cases2.forEach((c2) => registry$1.set(c2, importFn));
|
133226
133124
|
}
|
133227
|
-
addDecoder([void 0, 1], () => import("./raw-
|
133228
|
-
addDecoder(5, () => import("./lzw-
|
133125
|
+
addDecoder([void 0, 1], () => import("./raw-1068ab16.js").then((m2) => m2.default));
|
133126
|
+
addDecoder(5, () => import("./lzw-202c1994.js").then((m2) => m2.default));
|
133229
133127
|
addDecoder(6, () => {
|
133230
133128
|
throw new Error("old style JPEG compression is not supported.");
|
133231
133129
|
});
|
133232
|
-
addDecoder(7, () => import("./jpeg-
|
133233
|
-
addDecoder([8, 32946], () => import("./deflate-
|
133234
|
-
addDecoder(32773, () => import("./packbits-
|
133235
|
-
addDecoder(34887, () => import("./lerc-
|
133236
|
-
addDecoder(50001, () => import("./webimage-
|
133130
|
+
addDecoder(7, () => import("./jpeg-89e89436.js").then((m2) => m2.default));
|
133131
|
+
addDecoder([8, 32946], () => import("./deflate-69817aa2.js").then((m2) => m2.default));
|
133132
|
+
addDecoder(32773, () => import("./packbits-4038eb16.js").then((m2) => m2.default));
|
133133
|
+
addDecoder(34887, () => import("./lerc-f5f67eb4.js").then((m2) => m2.default));
|
133134
|
+
addDecoder(50001, () => import("./webimage-e7e86b49.js").then((m2) => m2.default));
|
133237
133135
|
function decodeRowAcc(row, stride) {
|
133238
133136
|
let length2 = row.length - stride;
|
133239
133137
|
let offset5 = 0;
|
@@ -153960,7 +153858,7 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
153960
153858
|
geneSelection,
|
153961
153859
|
{ obsType, featureType, featureValueType }
|
153962
153860
|
);
|
153963
|
-
const [{ featureLabelsMap }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
|
153861
|
+
const [{ featureLabelsMap: featureLabelsMapOrig }, featureLabelsStatus, featureLabelsUrls] = useFeatureLabelsData(
|
153964
153862
|
loaders,
|
153965
153863
|
dataset,
|
153966
153864
|
false,
|
@@ -153968,6 +153866,11 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
153968
153866
|
{},
|
153969
153867
|
{ featureType }
|
153970
153868
|
);
|
153869
|
+
const [featureLabelsMap, expandedFeatureLabelsStatus] = useExpandedFeatureLabelsMap(
|
153870
|
+
featureType,
|
153871
|
+
featureLabelsMapOrig,
|
153872
|
+
{ stripCuriePrefixes: true }
|
153873
|
+
);
|
153971
153874
|
const [{ obsIndex }, matrixIndicesStatus, matrixIndicesUrls] = useObsFeatureMatrixIndices(
|
153972
153875
|
loaders,
|
153973
153876
|
dataset,
|
@@ -154003,6 +153906,7 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
154003
153906
|
matrixIndicesStatus,
|
154004
153907
|
obsSetsStatus,
|
154005
153908
|
featureLabelsStatus,
|
153909
|
+
expandedFeatureLabelsStatus,
|
154006
153910
|
sampleSetsStatus,
|
154007
153911
|
sampleEdgesStatus
|
154008
153912
|
]);
|
@@ -154029,7 +153933,7 @@ function CellSetExpressionPlotSubscriber(props) {
|
|
154029
153933
|
theme,
|
154030
153934
|
yMin
|
154031
153935
|
);
|
154032
|
-
const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? (featureLabelsMap == null ? void 0 : featureLabelsMap.get(geneSelection[0])) || geneSelection[0] : null;
|
153936
|
+
const firstGeneSelected = geneSelection && geneSelection.length >= 1 ? (featureLabelsMap == null ? void 0 : featureLabelsMap.get(geneSelection[0])) || (featureLabelsMap == null ? void 0 : featureLabelsMap.get(cleanFeatureId(geneSelection[0]))) || geneSelection[0] : null;
|
154033
153937
|
const selectedTransformName = (_a2 = transformOptions.find(
|
154034
153938
|
(o2) => o2.value === featureValueTransform
|
154035
153939
|
)) == null ? void 0 : _a2.name;
|