@nebula.js/stardust 5.9.2 → 5.10.0

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/core/esm/dev.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v5.9.2
2
+ * @nebula.js/stardust v5.10.0
3
3
  * Copyright (c) 2025 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -268,7 +268,7 @@ function requireRuntime() {
268
268
  // AsyncIterator objects; they just return a Promise for the value of
269
269
  // the final result produced by the iterator.
270
270
  exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
271
- if (PromiseImpl === undefined) PromiseImpl = Promise;
271
+ if (PromiseImpl === void 0) PromiseImpl = Promise;
272
272
  var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
273
273
  return exports.isGeneratorFunction(outerFn) ? iter // If outerFn is a generator, return the full iterator.
274
274
  : iter.next().then(function (result) {
@@ -778,8 +778,8 @@ function _objectWithoutPropertiesLoose$2(r, e) {
778
778
  function _toPrimitive(t, r) {
779
779
  if ("object" != typeof t || !t) return t;
780
780
  var e = t[Symbol.toPrimitive];
781
- if (undefined !== e) {
782
- var i = e.call(t, r || "default");
781
+ if (void 0 !== e) {
782
+ var i = e.call(t, r);
783
783
  if ("object" != typeof i) return i;
784
784
  throw new TypeError("@@toPrimitive must return a primitive value.");
785
785
  }
@@ -2073,7 +2073,7 @@ function requireNodeEventEmitter () {
2073
2073
  };
2074
2074
 
2075
2075
  util.isUndefined = function isUndefined(arg) {
2076
- return arg === undefined;
2076
+ return arg === void 0;
2077
2077
  };
2078
2078
 
2079
2079
  util.isFunction = function isFunction(arg){
@@ -2822,7 +2822,7 @@ function requireExtend () {
2822
2822
  var getProperty = function getProperty(obj, name) {
2823
2823
  if (name === '__proto__') {
2824
2824
  if (!hasOwn.call(obj, name)) {
2825
- return undefined;
2825
+ return void 0;
2826
2826
  } else if (gOPD) {
2827
2827
  // In early versions of node, obj['__proto__'] is buggy when obj has
2828
2828
  // __proto__ as an own property. Object.getOwnPropertyDescriptor() works.
@@ -4871,8 +4871,8 @@ function theme$1(resolvedTheme) {
4871
4871
  };
4872
4872
  },
4873
4873
  uiColor(c, shift) {
4874
- const indexIsValid = typeof (c === null || c === undefined ? undefined : c.index) === 'number' && !Number.isNaN(c === null || c === undefined ? undefined : c.index);
4875
- const colorIsValid = typeof (c === null || c === undefined ? undefined : c.color) === 'string';
4874
+ const indexIsValid = typeof (c === null || c === void 0 ? void 0 : c.index) === 'number' && !Number.isNaN(c === null || c === void 0 ? void 0 : c.index);
4875
+ const colorIsValid = typeof (c === null || c === void 0 ? void 0 : c.color) === 'string';
4876
4876
  const somethingIsValid = indexIsValid || colorIsValid;
4877
4877
  if (!somethingIsValid) {
4878
4878
  return undefined;
@@ -4880,7 +4880,7 @@ function theme$1(resolvedTheme) {
4880
4880
  const getColor = () => {
4881
4881
  // eslint-disable-next-line no-param-reassign
4882
4882
  shift = !!shift;
4883
- if ((c === null || c === undefined ? undefined : c.index) < 0 || typeof (c === null || c === undefined ? undefined : c.index) === 'undefined') {
4883
+ if ((c === null || c === void 0 ? void 0 : c.index) < 0 || typeof (c === null || c === void 0 ? void 0 : c.index) === 'undefined') {
4884
4884
  return c.color;
4885
4885
  }
4886
4886
  if (typeof uiPalette === 'undefined') {
@@ -6910,7 +6910,7 @@ function requireReactJsxRuntime_production_min () {
6910
6910
  if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
6911
6911
  hasRequiredReactJsxRuntime_production_min = 1;
6912
6912
  var f=React__default,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
6913
- function q(c,a,g){var b,d={},e=null,h=null;undefined!==g&&(e=""+g);undefined!==a.key&&(e=""+a.key);undefined!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) undefined===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
6913
+ function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
6914
6914
  return reactJsxRuntime_production_min;
6915
6915
  }
6916
6916
 
@@ -7220,7 +7220,7 @@ function handleBreakpoints(props, propValue, styleFromPropValue) {
7220
7220
  }
7221
7221
  function createEmptyBreakpointObject(breakpointsInput = {}) {
7222
7222
  var _breakpointsInput$key;
7223
- const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? undefined : _breakpointsInput$key.reduce((acc, key) => {
7223
+ const breakpointsInOrder = (_breakpointsInput$key = breakpointsInput.keys) == null ? void 0 : _breakpointsInput$key.reduce((acc, key) => {
7224
7224
  const breakpointStyleKey = breakpointsInput.up(key);
7225
7225
  acc[breakpointStyleKey] = {};
7226
7226
  return acc;
@@ -7645,13 +7645,13 @@ const maxWidth = props => {
7645
7645
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
7646
7646
  const styleFromPropValue = propValue => {
7647
7647
  var _props$theme, _props$theme2;
7648
- const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? undefined : _props$theme[propValue]) || values[propValue];
7648
+ const breakpoint = ((_props$theme = props.theme) == null || (_props$theme = _props$theme.breakpoints) == null || (_props$theme = _props$theme.values) == null ? void 0 : _props$theme[propValue]) || values[propValue];
7649
7649
  if (!breakpoint) {
7650
7650
  return {
7651
7651
  maxWidth: sizingTransform(propValue)
7652
7652
  };
7653
7653
  }
7654
- if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? undefined : _props$theme2.unit) !== 'px') {
7654
+ if (((_props$theme2 = props.theme) == null || (_props$theme2 = _props$theme2.breakpoints) == null ? void 0 : _props$theme2.unit) !== 'px') {
7655
7655
  return {
7656
7656
  maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`
7657
7657
  };
@@ -8203,7 +8203,7 @@ function createTheme$2(options = {}, ...args) {
8203
8203
  }, other);
8204
8204
  muiTheme.applyStyles = applyStyles;
8205
8205
  muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
8206
- muiTheme.unstable_sxConfig = _extends$4({}, defaultSxConfig, other == null ? undefined : other.unstable_sxConfig);
8206
+ muiTheme.unstable_sxConfig = _extends$4({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
8207
8207
  muiTheme.unstable_sx = function sx(props) {
8208
8208
  return styleFunctionSx$1({
8209
8209
  sx: props,
@@ -8240,7 +8240,7 @@ const splitProps = props => {
8240
8240
  systemProps: {},
8241
8241
  otherProps: {}
8242
8242
  };
8243
- const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? undefined : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
8243
+ const config = (_props$theme$unstable = props == null || (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig;
8244
8244
  Object.keys(props).forEach(prop => {
8245
8245
  if (config[prop]) {
8246
8246
  result.systemProps[prop] = props[prop];
@@ -8355,7 +8355,7 @@ var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("rea
8355
8355
  function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
8356
8356
  reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return false};reactIs_production_min.isConcurrentMode=function(){return false};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
8357
8357
  reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
8358
- reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||undefined!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;
8358
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?true:false};reactIs_production_min.typeOf=v;
8359
8359
  return reactIs_production_min;
8360
8360
  }
8361
8361
 
@@ -8539,7 +8539,7 @@ function isMuiElement(element, muiNames) {
8539
8539
  return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf( // For server components `muiName` is avaialble in element.type._payload.value.muiName
8540
8540
  // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45
8541
8541
  // eslint-disable-next-line no-underscore-dangle
8542
- (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? undefined : _element$type.muiName) !== -1;
8542
+ (_muiName = element.type.muiName) != null ? _muiName : (_element$type = element.type) == null || (_element$type = _element$type._payload) == null || (_element$type = _element$type.value) == null ? void 0 : _element$type.muiName) !== -1;
8543
8543
  }
8544
8544
 
8545
8545
  function ownerDocument(node) {
@@ -9019,7 +9019,7 @@ function ThemeProvider$1(props) {
9019
9019
  children: /*#__PURE__*/jsxRuntimeExports.jsx(RtlProvider, {
9020
9020
  value: rtlValue,
9021
9021
  children: /*#__PURE__*/jsxRuntimeExports.jsx(DefaultPropsProvider, {
9022
- value: engineTheme == null ? undefined : engineTheme.components,
9022
+ value: engineTheme == null ? void 0 : engineTheme.components,
9023
9023
  children: children
9024
9024
  })
9025
9025
  })
@@ -9155,7 +9155,7 @@ function requireColorManipulator () {
9155
9155
  });
9156
9156
  colorManipulator.alpha = alpha;
9157
9157
  colorManipulator.blend = blend;
9158
- colorManipulator.colorChannel = undefined;
9158
+ colorManipulator.colorChannel = void 0;
9159
9159
  colorManipulator.darken = darken;
9160
9160
  colorManipulator.decomposeColor = decomposeColor;
9161
9161
  colorManipulator.emphasize = emphasize;
@@ -9165,7 +9165,7 @@ function requireColorManipulator () {
9165
9165
  colorManipulator.hslToRgb = hslToRgb;
9166
9166
  colorManipulator.lighten = lighten;
9167
9167
  colorManipulator.private_safeAlpha = private_safeAlpha;
9168
- colorManipulator.private_safeColorChannel = undefined;
9168
+ colorManipulator.private_safeColorChannel = void 0;
9169
9169
  colorManipulator.private_safeDarken = private_safeDarken;
9170
9170
  colorManipulator.private_safeEmphasize = private_safeEmphasize;
9171
9171
  colorManipulator.private_safeLighten = private_safeLighten;
@@ -9526,105 +9526,47 @@ const grey = {
9526
9526
 
9527
9527
  const purple = {
9528
9528
  50: '#f3e5f5',
9529
- 100: '#e1bee7',
9530
9529
  200: '#ce93d8',
9531
9530
  300: '#ba68c8',
9532
9531
  400: '#ab47bc',
9533
9532
  500: '#9c27b0',
9534
- 600: '#8e24aa',
9535
- 700: '#7b1fa2',
9536
- 800: '#6a1b9a',
9537
- 900: '#4a148c',
9538
- A100: '#ea80fc',
9539
- A200: '#e040fb',
9540
- A400: '#d500f9',
9541
- A700: '#aa00ff'
9542
- };
9533
+ 700: '#7b1fa2'};
9543
9534
 
9544
9535
  const red = {
9545
- 50: '#ffebee',
9546
- 100: '#ffcdd2',
9547
- 200: '#ef9a9a',
9548
9536
  300: '#e57373',
9549
9537
  400: '#ef5350',
9550
9538
  500: '#f44336',
9551
- 600: '#e53935',
9552
9539
  700: '#d32f2f',
9553
- 800: '#c62828',
9554
- 900: '#b71c1c',
9555
- A100: '#ff8a80',
9556
- A200: '#ff5252',
9557
- A400: '#ff1744',
9558
- A700: '#d50000'
9559
- };
9540
+ 800: '#c62828'};
9560
9541
 
9561
9542
  const orange = {
9562
- 50: '#fff3e0',
9563
- 100: '#ffe0b2',
9564
- 200: '#ffcc80',
9565
9543
  300: '#ffb74d',
9566
9544
  400: '#ffa726',
9567
9545
  500: '#ff9800',
9568
- 600: '#fb8c00',
9569
9546
  700: '#f57c00',
9570
- 800: '#ef6c00',
9571
- 900: '#e65100',
9572
- A100: '#ffd180',
9573
- A200: '#ffab40',
9574
- A400: '#ff9100',
9575
- A700: '#ff6d00'
9576
- };
9547
+ 900: '#e65100'};
9577
9548
 
9578
9549
  const blue = {
9579
9550
  50: '#e3f2fd',
9580
- 100: '#bbdefb',
9581
9551
  200: '#90caf9',
9582
- 300: '#64b5f6',
9583
9552
  400: '#42a5f5',
9584
- 500: '#2196f3',
9585
- 600: '#1e88e5',
9586
9553
  700: '#1976d2',
9587
- 800: '#1565c0',
9588
- 900: '#0d47a1',
9589
- A100: '#82b1ff',
9590
- A200: '#448aff',
9591
- A400: '#2979ff',
9592
- A700: '#2962ff'
9593
- };
9554
+ 800: '#1565c0'};
9594
9555
 
9595
9556
  const lightBlue = {
9596
- 50: '#e1f5fe',
9597
- 100: '#b3e5fc',
9598
- 200: '#81d4fa',
9599
9557
  300: '#4fc3f7',
9600
9558
  400: '#29b6f6',
9601
9559
  500: '#03a9f4',
9602
- 600: '#039be5',
9603
9560
  700: '#0288d1',
9604
- 800: '#0277bd',
9605
- 900: '#01579b',
9606
- A100: '#80d8ff',
9607
- A200: '#40c4ff',
9608
- A400: '#00b0ff',
9609
- A700: '#0091ea'
9610
- };
9561
+ 900: '#01579b'};
9611
9562
 
9612
9563
  const green = {
9613
- 50: '#e8f5e9',
9614
- 100: '#c8e6c9',
9615
- 200: '#a5d6a7',
9616
9564
  300: '#81c784',
9617
9565
  400: '#66bb6a',
9618
9566
  500: '#4caf50',
9619
- 600: '#43a047',
9620
9567
  700: '#388e3c',
9621
9568
  800: '#2e7d32',
9622
- 900: '#1b5e20',
9623
- A100: '#b9f6ca',
9624
- A200: '#69f0ae',
9625
- A400: '#00e676',
9626
- A700: '#00c853'
9627
- };
9569
+ 900: '#1b5e20'};
9628
9570
 
9629
9571
  const _excluded$b = ["mode", "contrastThreshold", "tonalOffset"];
9630
9572
  const light$1 = {
@@ -10085,7 +10027,7 @@ function createTheme(options = {}, ...args) {
10085
10027
  });
10086
10028
  muiTheme = deepmerge$1(muiTheme, other);
10087
10029
  muiTheme = args.reduce((acc, argument) => deepmerge$1(acc, argument), muiTheme);
10088
- muiTheme.unstable_sxConfig = _extends$5({}, defaultSxConfig, other == null ? undefined : other.unstable_sxConfig);
10030
+ muiTheme.unstable_sxConfig = _extends$5({}, defaultSxConfig, other == null ? void 0 : other.unstable_sxConfig);
10089
10031
  muiTheme.unstable_sx = function sx(props) {
10090
10032
  return styleFunctionSx$1({
10091
10033
  sx: props,
@@ -10180,7 +10122,7 @@ function requireCreateStyled () {
10180
10122
  });
10181
10123
  createStyled$1.default = createStyled;
10182
10124
  createStyled$1.shouldForwardProp = shouldForwardProp;
10183
- createStyled$1.systemDefaultTheme = undefined;
10125
+ createStyled$1.systemDefaultTheme = void 0;
10184
10126
  var _extends2 = _interopRequireDefault(require_extends());
10185
10127
  var _objectWithoutPropertiesLoose2 = _interopRequireDefault(requireObjectWithoutPropertiesLoose());
10186
10128
  var _styledEngine = _interopRequireWildcard(require$$3);
@@ -10259,7 +10201,7 @@ function requireCreateStyled () {
10259
10201
  }, props, ownerState));
10260
10202
  } else {
10261
10203
  Object.keys(variant.props).forEach(key => {
10262
- if ((ownerState == null ? undefined : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {
10204
+ if ((ownerState == null ? void 0 : ownerState[key]) !== variant.props[key] && props[key] !== variant.props[key]) {
10263
10205
  isMatch = false;
10264
10206
  }
10265
10207
  });
@@ -10376,7 +10318,7 @@ function requireCreateStyled () {
10376
10318
  defaultTheme,
10377
10319
  themeId
10378
10320
  }));
10379
- const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? undefined : _theme$components.variants;
10321
+ const themeVariants = theme == null || (_theme$components = theme.components) == null || (_theme$components = _theme$components[componentName]) == null ? void 0 : _theme$components.variants;
10380
10322
  return processStyleArg({
10381
10323
  variants: themeVariants
10382
10324
  }, (0, _extends2.default)({}, props, {
@@ -10474,7 +10416,7 @@ function _inheritsLoose(subClass, superClass) {
10474
10416
  }
10475
10417
 
10476
10418
  function _assertThisInitialized(self) {
10477
- if (self === undefined) {
10419
+ if (self === void 0) {
10478
10420
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
10479
10421
  }
10480
10422
 
@@ -10520,25 +10462,17 @@ var base = {
10520
10462
 
10521
10463
  const colors = {
10522
10464
  green: '#00873D',
10523
- greenPale: '#0AAF54',
10524
- red: '#DC423F',
10525
- redPale: '#F05551',
10526
10465
  blue: '#3F8AB3',
10527
- bluePale: '#469DCD',
10528
10466
  // greyscale
10529
10467
  grey100: '#ffffff',
10530
10468
  grey98: '#FBFBFB',
10531
10469
  grey95: '#F2F2F2',
10532
10470
  grey90: '#E6E6E6',
10533
- grey85: '#D9D9D9',
10534
- grey55: '#8C8C8C',
10535
10471
  grey45: '#737373',
10536
- grey30: '#4D4D4D',
10537
10472
  grey25: '#404040',
10538
10473
  grey20: '#333333',
10539
10474
  grey15: '#262626',
10540
10475
  grey10: '#1A1A1A',
10541
- grey5: '#0E0E0E',
10542
10476
  grey0: '#000000'
10543
10477
  };
10544
10478
 
@@ -10820,7 +10754,7 @@ function create$3(definition) {
10820
10754
  return cache[key];
10821
10755
  }
10822
10756
 
10823
- const NEBULA_VERSION_HASH = "1ccd";
10757
+ const NEBULA_VERSION_HASH = "0b93";
10824
10758
  ClassNameGenerator.configure(componentName => {
10825
10759
  return "njs-".concat(NEBULA_VERSION_HASH, "-").concat(componentName.replace('Mui', ''));
10826
10760
  });
@@ -11052,7 +10986,7 @@ function boot(_ref2) {
11052
10986
  const appRef = React__default.createRef();
11053
10987
  const element = document.createElement('div');
11054
10988
  element.style.display = 'none';
11055
- element.setAttribute('data-nebulajs-version', "5.9.2");
10989
+ element.setAttribute('data-nebulajs-version', "5.10.0");
11056
10990
  element.setAttribute('data-app-id', app.id);
11057
10991
  document.body.appendChild(element);
11058
10992
  if (context) {
@@ -11865,7 +11799,7 @@ const rowColClasses = {
11865
11799
 
11866
11800
  /* eslint-disable no-underscore-dangle */
11867
11801
  const dataItemSelector = ".".concat(rowColClasses.fieldRoot);
11868
- const getKeyAsToggleSelected = event => !(event !== null && event !== undefined && event.metaKey || event !== null && event !== undefined && event.ctrlKey);
11802
+ const getKeyAsToggleSelected = event => !(event !== null && event !== void 0 && event.metaKey || event !== null && event !== void 0 && event.ctrlKey);
11869
11803
  function useSelectionsInteractions(_ref) {
11870
11804
  var _loaderRef$current2;
11871
11805
  let {
@@ -11886,7 +11820,7 @@ function useSelectionsInteractions(_ref) {
11886
11820
  });
11887
11821
  useEffect$1(() => {
11888
11822
  var _loaderRef$current;
11889
- if (!((_loaderRef$current = loaderRef.current) !== null && _loaderRef$current !== undefined && (_loaderRef$current = _loaderRef$current._listRef) !== null && _loaderRef$current !== undefined && _loaderRef$current._outerRef)) {
11823
+ if (!((_loaderRef$current = loaderRef.current) !== null && _loaderRef$current !== void 0 && (_loaderRef$current = _loaderRef$current._listRef) !== null && _loaderRef$current !== void 0 && _loaderRef$current._outerRef)) {
11890
11824
  return undefined;
11891
11825
  }
11892
11826
  const preventGestureStart = e => e.preventDefault();
@@ -11901,12 +11835,12 @@ function useSelectionsInteractions(_ref) {
11901
11835
  listRef.removeEventListener('gesturechange', preventGestureChange);
11902
11836
  listRef.removeEventListener('gestureend', preventGestureEnd);
11903
11837
  };
11904
- }, [(_loaderRef$current2 = loaderRef.current) === null || _loaderRef$current2 === undefined || (_loaderRef$current2 = _loaderRef$current2._listRef) === null || _loaderRef$current2 === undefined ? undefined : _loaderRef$current2._outerRef]);
11838
+ }, [(_loaderRef$current2 = loaderRef.current) === null || _loaderRef$current2 === void 0 || (_loaderRef$current2 = _loaderRef$current2._listRef) === null || _loaderRef$current2 === void 0 ? void 0 : _loaderRef$current2._outerRef]);
11905
11839
 
11906
11840
  // eslint-disable-next-line arrow-body-style
11907
11841
  const doSelect = async () => {
11908
11842
  var _selectionState$selec;
11909
- if ((_selectionState$selec = selectionState.selectDisabled) !== null && _selectionState$selec !== undefined && _selectionState$selec.call(selectionState)) {
11843
+ if ((_selectionState$selec = selectionState.selectDisabled) !== null && _selectionState$selec !== void 0 && _selectionState$selec.call(selectionState)) {
11910
11844
  return false;
11911
11845
  }
11912
11846
  selectionState.setSelectableValuesUpdating();
@@ -11936,10 +11870,10 @@ function useSelectionsInteractions(_ref) {
11936
11870
  let elementIds = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
11937
11871
  let additive = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
11938
11872
  let event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
11939
- if ((_selectionState$selec2 = selectionState.selectDisabled) !== null && _selectionState$selec2 !== undefined && _selectionState$selec2.call(selectionState)) {
11873
+ if ((_selectionState$selec2 = selectionState.selectDisabled) !== null && _selectionState$selec2 !== void 0 && _selectionState$selec2.call(selectionState)) {
11940
11874
  return false;
11941
11875
  }
11942
- const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event === null || event === undefined ? undefined : event.nativeEvent);
11876
+ const toggle = !selectionState.isSingleSelect && getKeyAsToggleSelected(event === null || event === void 0 ? void 0 : event.nativeEvent);
11943
11877
  if (!toggle) {
11944
11878
  selectionState.clearItemStates(true);
11945
11879
  }
@@ -12038,8 +11972,8 @@ function useSelectionsInteractions(_ref) {
12038
11972
  doSelect();
12039
11973
  return;
12040
11974
  }
12041
- const startTouchElemNumber = Number((_event$touches$0$targ = event.touches[0].target) === null || _event$touches$0$targ === undefined || (_event$touches$0$targ = _event$touches$0$targ.closest(dataItemSelector)) === null || _event$touches$0$targ === undefined ? undefined : _event$touches$0$targ.getAttribute('data-n'));
12042
- const endTouchElemNumber = Number((_event$touches$1$targ = event.touches[1].target) === null || _event$touches$1$targ === undefined || (_event$touches$1$targ = _event$touches$1$targ.closest(dataItemSelector)) === null || _event$touches$1$targ === undefined ? undefined : _event$touches$1$targ.getAttribute('data-n'));
11975
+ const startTouchElemNumber = Number((_event$touches$0$targ = event.touches[0].target) === null || _event$touches$0$targ === void 0 || (_event$touches$0$targ = _event$touches$0$targ.closest(dataItemSelector)) === null || _event$touches$0$targ === void 0 ? void 0 : _event$touches$0$targ.getAttribute('data-n'));
11976
+ const endTouchElemNumber = Number((_event$touches$1$targ = event.touches[1].target) === null || _event$touches$1$targ === void 0 || (_event$touches$1$targ = _event$touches$1$targ.closest(dataItemSelector)) === null || _event$touches$1$targ === void 0 ? void 0 : _event$touches$1$targ.getAttribute('data-n'));
12043
11977
  if (Number.isNaN(startTouchElemNumber) || Number.isNaN(startTouchElemNumber)) {
12044
11978
  doSelect();
12045
11979
  return;
@@ -12373,6 +12307,9 @@ const RowColRoot = styled('div', {
12373
12307
  styles
12374
12308
  } = _ref4;
12375
12309
  const _styles$content = styles.content,
12310
+ {
12311
+ backgroundColor: _
12312
+ } = _styles$content,
12376
12313
  contentFontStyles = _objectWithoutProperties(_styles$content, _excluded$6);
12377
12314
  const rowSelectionStyle = getRowSelectionStyle({
12378
12315
  theme,
@@ -12918,7 +12855,6 @@ function Histogram(_ref) {
12918
12855
  }
12919
12856
  const width = getBarWidth({
12920
12857
  qFrequency,
12921
- checkboxes,
12922
12858
  frequencyMax
12923
12859
  });
12924
12860
  return /*#__PURE__*/React__default.createElement(Box, {
@@ -12936,7 +12872,7 @@ function Frequency(_ref) {
12936
12872
  dense,
12937
12873
  showGray
12938
12874
  } = _ref;
12939
- const frequencyText = getFrequencyText(cell === null || cell === undefined ? undefined : cell.qFrequency);
12875
+ const frequencyText = getFrequencyText(cell === null || cell === void 0 ? void 0 : cell.qFrequency);
12940
12876
  return /*#__PURE__*/React__default.createElement(Grid, {
12941
12877
  item: true,
12942
12878
  style: {
@@ -13063,17 +12999,17 @@ const KEYS = Object.freeze({
13063
12999
  });
13064
13000
 
13065
13001
  function removeInnnerTabStops(container) {
13066
- container === null || container === undefined || container.querySelectorAll('[tabIndex="0"]').forEach(elm => {
13002
+ container === null || container === void 0 || container.querySelectorAll('[tabIndex="0"]').forEach(elm => {
13067
13003
  elm.setAttribute('tabIndex', -1);
13068
13004
  });
13069
13005
  }
13070
13006
  function removeLastFocused(container) {
13071
- container === null || container === undefined || container.querySelectorAll('.last-focused').forEach(elm => {
13007
+ container === null || container === void 0 || container.querySelectorAll('.last-focused').forEach(elm => {
13072
13008
  elm.classList.remove('last-focused');
13073
13009
  });
13074
13010
  }
13075
13011
  function getVizCell(container) {
13076
- return (container === null || container === undefined ? undefined : container.closest('.njs-cell')) || (container === null || container === undefined ? undefined : container.closest('.qv-gridcell')) || (container === null || container === undefined ? undefined : container.closest('.qv-gs-listbox'));
13012
+ return (container === null || container === void 0 ? void 0 : container.closest('.njs-cell')) || (container === null || container === void 0 ? void 0 : container.closest('.qv-gridcell')) || (container === null || container === void 0 ? void 0 : container.closest('.qv-gs-listbox'));
13077
13013
  }
13078
13014
 
13079
13015
  // Emulate the keyboard hook, until we support it in the Listbox.
@@ -13096,7 +13032,7 @@ function useTempKeyboard(_ref) {
13096
13032
  return;
13097
13033
  }
13098
13034
  setKeyboardActive(false);
13099
- const vizCell = getVizCell(containerRef.current) || ((_containerRef$current = containerRef.current) === null || _containerRef$current === undefined ? undefined : _containerRef$current.parentElement);
13035
+ const vizCell = getVizCell(containerRef.current) || ((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.parentElement);
13100
13036
  removeInnnerTabStops(containerRef.current);
13101
13037
  removeLastFocused(containerRef.current);
13102
13038
  if (resetFocus && vizCell) {
@@ -13112,22 +13048,22 @@ function useTempKeyboard(_ref) {
13112
13048
  }
13113
13049
  setKeyboardActive(true);
13114
13050
  const c = containerRef.current;
13115
- const searchField = c === null || c === undefined ? undefined : c.querySelector('.search input');
13116
- const lastSelectedRow = c === null || c === undefined ? undefined : c.querySelector('.value.last-focused');
13117
- const firstRowElement = c === null || c === undefined ? undefined : c.querySelector('.value.selector, .value');
13118
- const confirmButton = c === null || c === undefined ? undefined : c.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm');
13119
- const unlockCoverButton = c === null || c === undefined ? undefined : c.querySelector('#listbox-unlock-button');
13120
- const cyclicButton = c === null || c === undefined ? undefined : c.querySelector('.listbox-cyclic-button');
13051
+ const searchField = c === null || c === void 0 ? void 0 : c.querySelector('.search input');
13052
+ const lastSelectedRow = c === null || c === void 0 ? void 0 : c.querySelector('.value.last-focused');
13053
+ const firstRowElement = c === null || c === void 0 ? void 0 : c.querySelector('.value.selector, .value');
13054
+ const confirmButton = c === null || c === void 0 ? void 0 : c.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm');
13055
+ const unlockCoverButton = c === null || c === void 0 ? void 0 : c.querySelector('#listbox-unlock-button');
13056
+ const cyclicButton = c === null || c === void 0 ? void 0 : c.querySelector('.listbox-cyclic-button');
13121
13057
  const elementToFocus = cyclicButton || searchField || lastSelectedRow || firstRowElement || unlockCoverButton || confirmButton;
13122
- elementToFocus === null || elementToFocus === undefined || elementToFocus.setAttribute('tabIndex', 0);
13123
- elementToFocus === null || elementToFocus === undefined || elementToFocus.focus();
13058
+ elementToFocus === null || elementToFocus === void 0 || elementToFocus.setAttribute('tabIndex', 0);
13059
+ elementToFocus === null || elementToFocus === void 0 || elementToFocus.focus();
13124
13060
  },
13125
13061
  focusSelection() {
13126
13062
  const unlockCoverButton = document.querySelector('#listbox-unlock-button');
13127
13063
  const confirmButton = document.querySelector('.actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)');
13128
13064
  const btnToFocus = unlockCoverButton || confirmButton;
13129
- btnToFocus === null || btnToFocus === undefined || btnToFocus.setAttribute('tabIndex', 0);
13130
- btnToFocus === null || btnToFocus === undefined || btnToFocus.focus();
13065
+ btnToFocus === null || btnToFocus === void 0 || btnToFocus.setAttribute('tabIndex', 0);
13066
+ btnToFocus === null || btnToFocus === void 0 || btnToFocus.focus();
13131
13067
  return btnToFocus;
13132
13068
  }
13133
13069
  };
@@ -13136,24 +13072,24 @@ function useTempKeyboard(_ref) {
13136
13072
 
13137
13073
  const getElementIndex = currentTarget => +currentTarget.getAttribute('data-n');
13138
13074
  const focusSearch = container => {
13139
- const searchField = container === null || container === undefined ? undefined : container.querySelector('.search input');
13140
- searchField === null || searchField === undefined || searchField.focus();
13075
+ const searchField = container === null || container === void 0 ? void 0 : container.querySelector('.search input');
13076
+ searchField === null || searchField === void 0 || searchField.focus();
13141
13077
  return searchField;
13142
13078
  };
13143
13079
  const focusRow = container => {
13144
- const lastFocusedRow = container === null || container === undefined ? undefined : container.querySelector('.value.last-focused');
13145
- const selectorRow = container === null || container === undefined ? undefined : container.querySelector('.value.selector');
13146
- const row = container === null || container === undefined ? undefined : container.querySelector('.value');
13080
+ const lastFocusedRow = container === null || container === void 0 ? void 0 : container.querySelector('.value.last-focused');
13081
+ const selectorRow = container === null || container === void 0 ? void 0 : container.querySelector('.value.selector');
13082
+ const row = container === null || container === void 0 ? void 0 : container.querySelector('.value');
13147
13083
  const rowToFocus = lastFocusedRow || selectorRow || row;
13148
- rowToFocus === null || rowToFocus === undefined || rowToFocus.setAttribute('tabIndex', 0);
13149
- rowToFocus === null || rowToFocus === undefined || rowToFocus.focus();
13084
+ rowToFocus === null || rowToFocus === void 0 || rowToFocus.setAttribute('tabIndex', 0);
13085
+ rowToFocus === null || rowToFocus === void 0 || rowToFocus.focus();
13150
13086
  removeLastFocused(container);
13151
13087
  return rowToFocus;
13152
13088
  };
13153
13089
  const focusCyclicButton = container => {
13154
- const button = container === null || container === undefined ? undefined : container.querySelector('.listbox-cyclic-button:not(:disabled)');
13155
- button === null || button === undefined || button.setAttribute('tabIndex', 0);
13156
- button === null || button === undefined || button.focus();
13090
+ const button = container === null || container === void 0 ? void 0 : container.querySelector('.listbox-cyclic-button:not(:disabled)');
13091
+ button === null || button === void 0 || button.setAttribute('tabIndex', 0);
13092
+ button === null || button === void 0 || button.focus();
13157
13093
  return button;
13158
13094
  };
13159
13095
  const blur$1 = (event, keyboard) => {
@@ -13165,7 +13101,7 @@ const blur$1 = (event, keyboard) => {
13165
13101
  const isFocusedOnListbox = target.classList.contains('listbox-container');
13166
13102
  const container = currentTarget.closest('.listbox-container');
13167
13103
  const vizCell = getVizCell(container);
13168
- const isSingleListbox = (vizCell === null || vizCell === undefined ? undefined : vizCell.querySelectorAll('.listbox-container').length) === 1;
13104
+ const isSingleListbox = (vizCell === null || vizCell === void 0 ? void 0 : vizCell.querySelectorAll('.listbox-container').length) === 1;
13169
13105
  if (isFocusedOnListbox || isSingleListbox) {
13170
13106
  // Move the focus from listbox container to the viz container.
13171
13107
  keyboard.blur(true);
@@ -13182,7 +13118,7 @@ const blur$1 = (event, keyboard) => {
13182
13118
  keyboard.blur();
13183
13119
  const c = currentTarget.closest('.listbox-container');
13184
13120
  c.setAttribute('tabIndex', -1);
13185
- c === null || c === undefined || c.focus();
13121
+ c === null || c === void 0 || c.focus();
13186
13122
  }
13187
13123
  };
13188
13124
 
@@ -13255,11 +13191,11 @@ function getRowsKeyboardNavigation(_ref) {
13255
13191
  const getElement = function (keyCode, elm) {
13256
13192
  let next = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
13257
13193
  if (keyCode === KEYS.ARROW_LEFT || keyCode === KEYS.ARROW_RIGHT || !(typeof rowIndex === 'number' && typeof columnIndex === 'number')) {
13258
- const parentElm = elm === null || elm === undefined ? undefined : elm.parentElement[next ? 'nextElementSibling' : 'previousElementSibling'];
13259
- return parentElm === null || parentElm === undefined ? undefined : parentElm.querySelector('[role]');
13194
+ const parentElm = elm === null || elm === void 0 ? void 0 : elm.parentElement[next ? 'nextElementSibling' : 'previousElementSibling'];
13195
+ return parentElm === null || parentElm === void 0 ? void 0 : parentElm.querySelector('[role]');
13260
13196
  }
13261
- const gridElm = elm === null || elm === undefined ? undefined : elm.parentElement.parentElement;
13262
- const numCells = gridElm === null || gridElm === undefined ? undefined : gridElm.childElementCount;
13197
+ const gridElm = elm === null || elm === void 0 ? void 0 : elm.parentElement.parentElement;
13198
+ const numCells = gridElm === null || gridElm === void 0 ? void 0 : gridElm.childElementCount;
13263
13199
  if (numCells) {
13264
13200
  const nextIndex = findNextItemIndex({
13265
13201
  rowIndex,
@@ -13270,8 +13206,8 @@ function getRowsKeyboardNavigation(_ref) {
13270
13206
  keyCode,
13271
13207
  numCells
13272
13208
  });
13273
- const nextElm = elm === null || elm === undefined ? undefined : elm.parentElement.parentElement.children[nextIndex];
13274
- return nextElm === null || nextElm === undefined ? undefined : nextElm.querySelector('[role]');
13209
+ const nextElm = elm === null || elm === void 0 ? void 0 : elm.parentElement.parentElement.children[nextIndex];
13210
+ return nextElm === null || nextElm === void 0 ? void 0 : nextElm.querySelector('[role]');
13275
13211
  }
13276
13212
  return undefined;
13277
13213
  };
@@ -13300,7 +13236,7 @@ function getRowsKeyboardNavigation(_ref) {
13300
13236
  // TODO: use a store to keep track of this row.
13301
13237
  currentTarget.classList.add('last-focused'); // so that we can go back here when we tab back
13302
13238
 
13303
- const useDefaultBrowserSupport = !(keyboard !== null && keyboard !== undefined && keyboard.enabled);
13239
+ const useDefaultBrowserSupport = !(keyboard !== null && keyboard !== void 0 && keyboard.enabled);
13304
13240
  if (useDefaultBrowserSupport) {
13305
13241
  if (!inSelection) return;
13306
13242
  keyboard.focusSelection();
@@ -13375,18 +13311,18 @@ function getRowsKeyboardNavigation(_ref) {
13375
13311
  case KEYS.HOME:
13376
13312
  focusListItems.setFirst(true);
13377
13313
  if (ctrlKey) {
13378
- setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('overflowStart');
13314
+ setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('overflowStart');
13379
13315
  break;
13380
13316
  }
13381
- setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('start');
13317
+ setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('start');
13382
13318
  break;
13383
13319
  case KEYS.END:
13384
13320
  focusListItems.setLast(true);
13385
13321
  if (ctrlKey) {
13386
- setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('overflowEnd');
13322
+ setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('overflowEnd');
13387
13323
  break;
13388
13324
  }
13389
- setScrollPosition === null || setScrollPosition === undefined || setScrollPosition('end');
13325
+ setScrollPosition === null || setScrollPosition === void 0 || setScrollPosition('end');
13390
13326
  break;
13391
13327
  case KEYS.A:
13392
13328
  if (ctrlKey || metaKey) {
@@ -13419,7 +13355,7 @@ function getValueTextAlign(_ref) {
13419
13355
  cell,
13420
13356
  textAlign
13421
13357
  } = _ref;
13422
- const isNumeric = !['NaN', undefined].includes(cell === null || cell === undefined ? undefined : cell.qNum);
13358
+ const isNumeric = !['NaN', undefined].includes(cell === null || cell === void 0 ? void 0 : cell.qNum);
13423
13359
  let valueTextAlign;
13424
13360
  const isAutoTextAlign = !textAlign || textAlign.auto;
13425
13361
  const dirToTextAlignMap = {
@@ -13433,7 +13369,7 @@ function getValueTextAlign(_ref) {
13433
13369
  valueTextAlign = direction === 'rtl' ? 'left' : 'right';
13434
13370
  }
13435
13371
  } else {
13436
- valueTextAlign = (textAlign === null || textAlign === undefined ? undefined : textAlign.align) || 'left';
13372
+ valueTextAlign = (textAlign === null || textAlign === void 0 ? void 0 : textAlign.align) || 'left';
13437
13373
  }
13438
13374
  const ALLOWED_OPTIONS = ['left', 'center', 'right'];
13439
13375
  return ALLOWED_OPTIONS.includes(valueTextAlign) ? valueTextAlign : 'left';
@@ -13579,18 +13515,18 @@ function RowColumn(_ref) {
13579
13515
  rowIndex,
13580
13516
  columnIndex,
13581
13517
  layoutOrder
13582
- })), [actions, keyboard === null || keyboard === undefined ? undefined : keyboard.innerTabStops, rowCount, columnCount, rowIndex, columnIndex, layoutOrder]);
13518
+ })), [actions, keyboard === null || keyboard === void 0 ? void 0 : keyboard.innerTabStops, rowCount, columnCount, rowIndex, columnIndex, layoutOrder]);
13583
13519
  const cell = useMemo$1(() => getCellFromPages({
13584
13520
  pages,
13585
13521
  cellIndex
13586
13522
  }), [pages, cellIndex]);
13587
- const isSelected = (cell === null || cell === undefined ? undefined : cell.qState) === 'S' || (cell === null || cell === undefined ? undefined : cell.qState) === 'XS' || (cell === null || cell === undefined ? undefined : cell.qState) === 'L' || (cell === null || cell === undefined ? undefined : cell.qState) === 'XL';
13523
+ const isSelected = (cell === null || cell === void 0 ? void 0 : cell.qState) === 'S' || (cell === null || cell === void 0 ? void 0 : cell.qState) === 'XS' || (cell === null || cell === void 0 ? void 0 : cell.qState) === 'L' || (cell === null || cell === void 0 ? void 0 : cell.qState) === 'XL';
13588
13524
  const classArr = useMemo$1(() => getValueStateClasses({
13589
13525
  column,
13590
13526
  histogram,
13591
13527
  cell,
13592
13528
  showGray
13593
- }), [cell === null || cell === undefined ? undefined : cell.qState, histogram, dense]);
13529
+ }), [cell === null || cell === void 0 ? void 0 : cell.qState, histogram, dense]);
13594
13530
  const preventContextMenu = useCallback(event => {
13595
13531
  event.preventDefault();
13596
13532
  }, [checkboxes]);
@@ -13603,11 +13539,11 @@ function RowColumn(_ref) {
13603
13539
  return null; // prevent rendering empty rows
13604
13540
  }
13605
13541
  const isGridCol = dataLayout === 'grid' && layoutOrder === 'column';
13606
- const label = (_cell$qText = cell === null || cell === undefined ? undefined : cell.qText) !== null && _cell$qText !== undefined ? _cell$qText : '';
13542
+ const label = (_cell$qText = cell === null || cell === void 0 ? void 0 : cell.qText) !== null && _cell$qText !== void 0 ? _cell$qText : '';
13607
13543
  // Search highlights. Split up labelText span into several and add the highlighted class to matching sub-strings.
13608
13544
 
13609
13545
  let labels;
13610
- if ((_cell$qHighlightRange = cell.qHighlightRanges) !== null && _cell$qHighlightRange !== undefined && (_cell$qHighlightRange = _cell$qHighlightRange.qRanges) !== null && _cell$qHighlightRange !== undefined && _cell$qHighlightRange.length) {
13546
+ if ((_cell$qHighlightRange = cell.qHighlightRanges) !== null && _cell$qHighlightRange !== void 0 && (_cell$qHighlightRange = _cell$qHighlightRange.qRanges) !== null && _cell$qHighlightRange !== void 0 && _cell$qHighlightRange.length) {
13611
13547
  const ranges = cell.qHighlightRanges.qRanges.sort((a, b) => a.qCharPos - b.qCharPos) || [];
13612
13548
  labels = getSegmentsFromRanges(label, ranges);
13613
13549
  }
@@ -13680,11 +13616,11 @@ function RowColumn(_ref) {
13680
13616
  onTouchEnd: onTouchEnd,
13681
13617
  onContextMenu: preventContextMenu,
13682
13618
  tabIndex: isFirstElement && keyboard.innerTabStops ? 0 : -1,
13683
- "data-n": cell === null || cell === undefined ? undefined : cell.qElemNumber,
13619
+ "data-n": cell === null || cell === void 0 ? void 0 : cell.qElemNumber,
13684
13620
  direction: direction,
13685
13621
  fillHeight: fillHeight
13686
- }, (cell === null || cell === undefined ? undefined : cell.qFrequency) && /*#__PURE__*/React__default.createElement(Histogram, {
13687
- qFrequency: cell === null || cell === undefined ? undefined : cell.qFrequency,
13622
+ }, (cell === null || cell === void 0 ? void 0 : cell.qFrequency) && /*#__PURE__*/React__default.createElement(Histogram, {
13623
+ qFrequency: cell === null || cell === void 0 ? void 0 : cell.qFrequency,
13688
13624
  histogram: histogram,
13689
13625
  checkboxes: checkboxes,
13690
13626
  isSelected: isSelected,
@@ -13804,7 +13740,7 @@ function areInputsEqual(newInputs, lastInputs) {
13804
13740
  }
13805
13741
 
13806
13742
  function memoizeOne(resultFn, isEqual) {
13807
- if (isEqual === undefined) { isEqual = areInputsEqual; }
13743
+ if (isEqual === void 0) { isEqual = areInputsEqual; }
13808
13744
  var lastThis;
13809
13745
  var lastArgs = [];
13810
13746
  var lastResult;
@@ -13857,7 +13793,7 @@ function requestTimeout(callback, delay) {
13857
13793
  var size = -1; // This utility copied from "dom-helpers" package.
13858
13794
 
13859
13795
  function getScrollbarSize(recalculate) {
13860
- if (recalculate === undefined) {
13796
+ if (recalculate === void 0) {
13861
13797
  recalculate = false;
13862
13798
  }
13863
13799
 
@@ -13882,7 +13818,7 @@ var cachedRTLResult = null; // TRICKY According to the spec, scrollLeft should b
13882
13818
  // If it does not match, then we can assume a non-standard RTL scroll implementation.
13883
13819
 
13884
13820
  function getRTLOffsetType(recalculate) {
13885
- if (recalculate === undefined) {
13821
+ if (recalculate === void 0) {
13886
13822
  recalculate = false;
13887
13823
  }
13888
13824
 
@@ -13958,7 +13894,7 @@ function createGridComponent(_ref2) {
13958
13894
  _this = _PureComponent.call(this, props) || this;
13959
13895
  _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
13960
13896
  _this._resetIsScrollingTimeoutId = null;
13961
- _this._outerRef = undefined;
13897
+ _this._outerRef = void 0;
13962
13898
  _this.state = {
13963
13899
  instance: _assertThisInitialized(_this),
13964
13900
  isScrolling: false,
@@ -13968,7 +13904,7 @@ function createGridComponent(_ref2) {
13968
13904
  scrollUpdateWasRequested: false,
13969
13905
  verticalScrollDirection: 'forward'
13970
13906
  };
13971
- _this._callOnItemsRendered = undefined;
13907
+ _this._callOnItemsRendered = void 0;
13972
13908
  _this._callOnItemsRendered = memoizeOne(function (overscanColumnStartIndex, overscanColumnStopIndex, overscanRowStartIndex, overscanRowStopIndex, visibleColumnStartIndex, visibleColumnStopIndex, visibleRowStartIndex, visibleRowStopIndex) {
13973
13909
  return _this.props.onItemsRendered({
13974
13910
  overscanColumnStartIndex: overscanColumnStartIndex,
@@ -13981,7 +13917,7 @@ function createGridComponent(_ref2) {
13981
13917
  visibleRowStopIndex: visibleRowStopIndex
13982
13918
  });
13983
13919
  });
13984
- _this._callOnScroll = undefined;
13920
+ _this._callOnScroll = void 0;
13985
13921
  _this._callOnScroll = memoizeOne(function (scrollLeft, scrollTop, horizontalScrollDirection, verticalScrollDirection, scrollUpdateWasRequested) {
13986
13922
  return _this.props.onScroll({
13987
13923
  horizontalScrollDirection: horizontalScrollDirection,
@@ -13991,7 +13927,7 @@ function createGridComponent(_ref2) {
13991
13927
  scrollUpdateWasRequested: scrollUpdateWasRequested
13992
13928
  });
13993
13929
  });
13994
- _this._getItemStyle = undefined;
13930
+ _this._getItemStyle = void 0;
13995
13931
 
13996
13932
  _this._getItemStyle = function (rowIndex, columnIndex) {
13997
13933
  var _this$props = _this.props,
@@ -14023,7 +13959,7 @@ function createGridComponent(_ref2) {
14023
13959
  return style;
14024
13960
  };
14025
13961
 
14026
- _this._getItemStyleCache = undefined;
13962
+ _this._getItemStyleCache = void 0;
14027
13963
  _this._getItemStyleCache = memoizeOne(function (_, __, ___) {
14028
13964
  return {};
14029
13965
  });
@@ -14157,7 +14093,7 @@ function createGridComponent(_ref2) {
14157
14093
 
14158
14094
  _proto.scrollToItem = function scrollToItem(_ref4) {
14159
14095
  var _ref4$align = _ref4.align,
14160
- align = _ref4$align === undefined ? 'auto' : _ref4$align,
14096
+ align = _ref4$align === void 0 ? 'auto' : _ref4$align,
14161
14097
  columnIndex = _ref4.columnIndex,
14162
14098
  rowIndex = _ref4.rowIndex;
14163
14099
  var _this$props2 = this.props,
@@ -14268,7 +14204,7 @@ function createGridComponent(_ref2) {
14268
14204
  innerTagName = _this$props4.innerTagName,
14269
14205
  itemData = _this$props4.itemData,
14270
14206
  _this$props4$itemKey = _this$props4.itemKey,
14271
- itemKey = _this$props4$itemKey === undefined ? defaultItemKey : _this$props4$itemKey,
14207
+ itemKey = _this$props4$itemKey === void 0 ? defaultItemKey : _this$props4$itemKey,
14272
14208
  outerElementType = _this$props4.outerElementType,
14273
14209
  outerTagName = _this$props4.outerTagName,
14274
14210
  rowCount = _this$props4.rowCount,
@@ -14477,7 +14413,7 @@ function createListComponent(_ref) {
14477
14413
 
14478
14414
  _this = _PureComponent.call(this, props) || this;
14479
14415
  _this._instanceProps = initInstanceProps(_this.props, _assertThisInitialized(_this));
14480
- _this._outerRef = undefined;
14416
+ _this._outerRef = void 0;
14481
14417
  _this._resetIsScrollingTimeoutId = null;
14482
14418
  _this.state = {
14483
14419
  instance: _assertThisInitialized(_this),
@@ -14486,7 +14422,7 @@ function createListComponent(_ref) {
14486
14422
  scrollOffset: typeof _this.props.initialScrollOffset === 'number' ? _this.props.initialScrollOffset : 0,
14487
14423
  scrollUpdateWasRequested: false
14488
14424
  };
14489
- _this._callOnItemsRendered = undefined;
14425
+ _this._callOnItemsRendered = void 0;
14490
14426
  _this._callOnItemsRendered = memoizeOne(function (overscanStartIndex, overscanStopIndex, visibleStartIndex, visibleStopIndex) {
14491
14427
  return _this.props.onItemsRendered({
14492
14428
  overscanStartIndex: overscanStartIndex,
@@ -14495,7 +14431,7 @@ function createListComponent(_ref) {
14495
14431
  visibleStopIndex: visibleStopIndex
14496
14432
  });
14497
14433
  });
14498
- _this._callOnScroll = undefined;
14434
+ _this._callOnScroll = void 0;
14499
14435
  _this._callOnScroll = memoizeOne(function (scrollDirection, scrollOffset, scrollUpdateWasRequested) {
14500
14436
  return _this.props.onScroll({
14501
14437
  scrollDirection: scrollDirection,
@@ -14503,7 +14439,7 @@ function createListComponent(_ref) {
14503
14439
  scrollUpdateWasRequested: scrollUpdateWasRequested
14504
14440
  });
14505
14441
  });
14506
- _this._getItemStyle = undefined;
14442
+ _this._getItemStyle = void 0;
14507
14443
 
14508
14444
  _this._getItemStyle = function (index) {
14509
14445
  var _this$props = _this.props,
@@ -14538,7 +14474,7 @@ function createListComponent(_ref) {
14538
14474
  return style;
14539
14475
  };
14540
14476
 
14541
- _this._getItemStyleCache = undefined;
14477
+ _this._getItemStyleCache = void 0;
14542
14478
  _this._getItemStyleCache = memoizeOne(function (_, __, ___) {
14543
14479
  return {};
14544
14480
  });
@@ -14670,7 +14606,7 @@ function createListComponent(_ref) {
14670
14606
  };
14671
14607
 
14672
14608
  _proto.scrollToItem = function scrollToItem(index, align) {
14673
- if (align === undefined) {
14609
+ if (align === void 0) {
14674
14610
  align = 'auto';
14675
14611
  }
14676
14612
 
@@ -14776,7 +14712,7 @@ function createListComponent(_ref) {
14776
14712
  itemCount = _this$props5.itemCount,
14777
14713
  itemData = _this$props5.itemData,
14778
14714
  _this$props5$itemKey = _this$props5.itemKey,
14779
- itemKey = _this$props5$itemKey === undefined ? defaultItemKey$1 : _this$props5$itemKey,
14715
+ itemKey = _this$props5$itemKey === void 0 ? defaultItemKey$1 : _this$props5$itemKey,
14780
14716
  layout = _this$props5.layout,
14781
14717
  outerElementType = _this$props5.outerElementType,
14782
14718
  outerTagName = _this$props5.outerTagName,
@@ -15228,13 +15164,13 @@ function getStyledComponents() {
15228
15164
  }
15229
15165
 
15230
15166
  const getIndex = (renderProps, isColumnLayout) => {
15231
- if ((renderProps === null || renderProps === undefined ? undefined : renderProps.visibleRowStopIndex) !== undefined || renderProps.visibleColumnStopIndex !== undefined) {
15167
+ if ((renderProps === null || renderProps === void 0 ? void 0 : renderProps.visibleRowStopIndex) !== undefined || renderProps.visibleColumnStopIndex !== undefined) {
15232
15168
  return isColumnLayout ? renderProps.visibleColumnStopIndex : renderProps.visibleRowStopIndex;
15233
15169
  }
15234
15170
  return renderProps.visibleStopIndex;
15235
15171
  };
15236
15172
  const getIsScrollTop = (renderProps, isColumnLayout) => {
15237
- if ((renderProps === null || renderProps === undefined ? undefined : renderProps.visibleRowStartIndex) !== undefined || renderProps.visibleColumnStartIndex !== undefined) {
15173
+ if ((renderProps === null || renderProps === void 0 ? void 0 : renderProps.visibleRowStartIndex) !== undefined || renderProps.visibleColumnStartIndex !== undefined) {
15238
15174
  return isColumnLayout ? renderProps.visibleColumnStartIndex === 0 : renderProps.visibleRowStartIndex === 0;
15239
15175
  }
15240
15176
  return renderProps.visibleStartIndex === 0;
@@ -15251,7 +15187,7 @@ function handleSetOverflowDisclaimer(_ref) {
15251
15187
  qCardinal,
15252
15188
  dataOffset
15253
15189
  } = _ref;
15254
- const isColumnLayout = (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.layoutOrder) === 'column' && layoutOptions.dataLayout !== 'singleColumn';
15190
+ const isColumnLayout = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.layoutOrder) === 'column' && layoutOptions.dataLayout !== 'singleColumn';
15255
15191
  const index = getIndex(renderProps, isColumnLayout);
15256
15192
  const stopIndex = isColumnLayout ? maxCount.column : maxCount.row;
15257
15193
  const count = isColumnLayout ? columnCount : rowCount;
@@ -15321,7 +15257,7 @@ function getListBoxComponents(_ref) {
15321
15257
  useIsScrolling: true,
15322
15258
  className: classes$9.styledScrollbars
15323
15259
  };
15324
- const isLocked = layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qLocked;
15260
+ const isLocked = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qLocked;
15325
15261
  const fillHeight = listHeight <= itemHeight;
15326
15262
 
15327
15263
  // Item data common for List and Grid.
@@ -15339,8 +15275,8 @@ function getListBoxComponents(_ref) {
15339
15275
  sizes,
15340
15276
  actions: {
15341
15277
  select,
15342
- confirm: () => selections === null || selections === undefined ? undefined : selections.confirm.call(selections),
15343
- cancel: () => selections === null || selections === undefined ? undefined : selections.cancel.call(selections),
15278
+ confirm: () => selections === null || selections === void 0 ? void 0 : selections.confirm.call(selections),
15279
+ cancel: () => selections === null || selections === void 0 ? void 0 : selections.cancel.call(selections),
15344
15280
  setScrollPosition,
15345
15281
  selectAll,
15346
15282
  onCtrlF
@@ -15370,7 +15306,7 @@ function getListBoxComponents(_ref) {
15370
15306
  // eslint-disable-next-line react/jsx-props-no-spreading
15371
15307
  , _extends$6({}, commonComponentOptions, {
15372
15308
  dataTestid: "fixed-size-list",
15373
- scrollDisabled: constraints === null || constraints === undefined ? undefined : constraints.active,
15309
+ scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
15374
15310
  height: listHeight,
15375
15311
  width: width,
15376
15312
  itemCount: listCount,
@@ -15394,7 +15330,7 @@ function getListBoxComponents(_ref) {
15394
15330
  columnCount,
15395
15331
  rowCount,
15396
15332
  overflowDisclaimer,
15397
- qCardinal: layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qCardinal,
15333
+ qCardinal: layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qCardinal,
15398
15334
  dataOffset: local.current.dataOffset
15399
15335
  });
15400
15336
  onItemsRendered(_objectSpread2({}, renderProps));
@@ -15438,7 +15374,7 @@ function getListBoxComponents(_ref) {
15438
15374
  columnCount,
15439
15375
  rowCount,
15440
15376
  overflowDisclaimer,
15441
- qCardinal: layout === null || layout === undefined || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === undefined || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === undefined ? undefined : _layout$qListObject2.qCardinal,
15377
+ qCardinal: layout === null || layout === void 0 || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === void 0 ? void 0 : _layout$qListObject2.qCardinal,
15442
15378
  dataOffset: local.current.dataOffset
15443
15379
  });
15444
15380
  onItemsRendered(renderOptions);
@@ -15447,7 +15383,7 @@ function getListBoxComponents(_ref) {
15447
15383
  // eslint-disable-next-line react/jsx-props-no-spreading
15448
15384
  , _extends$6({}, commonComponentOptions, {
15449
15385
  dataTestid: "fixed-size-grid",
15450
- scrollDisabled: constraints === null || constraints === undefined ? undefined : constraints.active,
15386
+ scrollDisabled: constraints === null || constraints === void 0 ? void 0 : constraints.active,
15451
15387
  height: gridHeight,
15452
15388
  width: width,
15453
15389
  columnCount: columnCount,
@@ -15481,7 +15417,7 @@ function calculateColumnMode(_ref) {
15481
15417
  itemMinWidth
15482
15418
  } = _ref;
15483
15419
  let rowCount;
15484
- const maxRows = (maxVisibleRows === null || maxVisibleRows === undefined ? undefined : maxVisibleRows.maxRows) || 3;
15420
+ const maxRows = (maxVisibleRows === null || maxVisibleRows === void 0 ? void 0 : maxVisibleRows.maxRows) || 3;
15485
15421
  const autoRowCount = Math.floor(listHeight / itemHeight);
15486
15422
  if (maxVisibleRows.auto !== false) {
15487
15423
  rowCount = autoRowCount;
@@ -15506,11 +15442,11 @@ function calculateRowMode(_ref) {
15506
15442
  columnAutoWidth,
15507
15443
  itemMinWidth
15508
15444
  } = _ref;
15509
- const maxColumns = (maxVisibleColumns === null || maxVisibleColumns === undefined ? undefined : maxVisibleColumns.maxColumns) || 3;
15445
+ const maxColumns = (maxVisibleColumns === null || maxVisibleColumns === void 0 ? void 0 : maxVisibleColumns.maxColumns) || 3;
15510
15446
  const innerWidth = containerWidth - SCROLL_BAR_WIDTH;
15511
15447
  let columnCount;
15512
15448
  const autoColumnCount = Math.min(listCount, Math.max(1, Math.round(innerWidth / Math.max(itemMinWidth, columnAutoWidth)))); // TODO: smarter sizing... based on glyph count + font size etc...??
15513
- if ((maxVisibleColumns === null || maxVisibleColumns === undefined ? undefined : maxVisibleColumns.auto) !== false) {
15449
+ if ((maxVisibleColumns === null || maxVisibleColumns === void 0 ? void 0 : maxVisibleColumns.auto) !== false) {
15514
15450
  columnCount = autoColumnCount;
15515
15451
  } else {
15516
15452
  columnCount = Math.min(listCount, maxColumns, autoColumnCount);
@@ -15593,7 +15529,7 @@ function useListSizes(_ref) {
15593
15529
  const {
15594
15530
  fontSize = '12px',
15595
15531
  fontFamily = 'Source sans pro'
15596
- } = (styles === null || styles === undefined ? undefined : styles.content) || {};
15532
+ } = (styles === null || styles === void 0 ? void 0 : styles.content) || {};
15597
15533
  const font = "".concat(fontSize, " ").concat(fontFamily); // font format as supported by HTML canvas
15598
15534
  const textWidth = useTextWidth({
15599
15535
  text: getMeasureText(layout),
@@ -15628,7 +15564,7 @@ function useListSizes(_ref) {
15628
15564
  isGridMode,
15629
15565
  dense
15630
15566
  });
15631
- const listHeight = height !== null && height !== undefined ? height : 8 * itemHeight;
15567
+ const listHeight = height !== null && height !== void 0 ? height : 8 * itemHeight;
15632
15568
  if (layoutOrder) {
15633
15569
  // Modify container width to achieve the exact design with 8px margins on each side (left and right).
15634
15570
  let containerWidth = width;
@@ -15807,7 +15743,7 @@ function getListCount(_ref2) {
15807
15743
  count,
15808
15744
  calculatePagesHeight = false
15809
15745
  } = _ref2;
15810
- const listCount = pages !== null && pages !== undefined && pages.length && calculatePagesHeight ? getCalculatedHeight({
15746
+ const listCount = pages !== null && pages !== void 0 && pages.length && calculatePagesHeight ? getCalculatedHeight({
15811
15747
  pages,
15812
15748
  minimumBatchSize,
15813
15749
  count
@@ -15929,19 +15865,19 @@ const SvgIconRoot = styled('svg', {
15929
15865
  // for example heroicons uses fill="none" and stroke="currentColor"
15930
15866
  fill: ownerState.hasSvgAsChild ? undefined : 'currentColor',
15931
15867
  flexShrink: 0,
15932
- transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? undefined : _theme$transitions$cr.call(_theme$transitions, 'fill', {
15933
- duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? undefined : _theme$transitions2.shorter
15868
+ transition: (_theme$transitions = theme.transitions) == null || (_theme$transitions$cr = _theme$transitions.create) == null ? void 0 : _theme$transitions$cr.call(_theme$transitions, 'fill', {
15869
+ duration: (_theme$transitions2 = theme.transitions) == null || (_theme$transitions2 = _theme$transitions2.duration) == null ? void 0 : _theme$transitions2.shorter
15934
15870
  }),
15935
15871
  fontSize: {
15936
15872
  inherit: 'inherit',
15937
- small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? undefined : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
15938
- medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? undefined : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
15939
- large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? undefined : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
15873
+ small: ((_theme$typography = theme.typography) == null || (_theme$typography$pxT = _theme$typography.pxToRem) == null ? void 0 : _theme$typography$pxT.call(_theme$typography, 20)) || '1.25rem',
15874
+ medium: ((_theme$typography2 = theme.typography) == null || (_theme$typography2$px = _theme$typography2.pxToRem) == null ? void 0 : _theme$typography2$px.call(_theme$typography2, 24)) || '1.5rem',
15875
+ large: ((_theme$typography3 = theme.typography) == null || (_theme$typography3$px = _theme$typography3.pxToRem) == null ? void 0 : _theme$typography3$px.call(_theme$typography3, 35)) || '2.1875rem'
15940
15876
  }[ownerState.fontSize],
15941
15877
  // TODO v5 deprecate, v6 remove for sx
15942
- color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? undefined : _palette.main) != null ? _palette$ownerState$c : {
15943
- action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? undefined : _palette2.active,
15944
- disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? undefined : _palette3.disabled,
15878
+ color: (_palette$ownerState$c = (_palette = (theme.vars || theme).palette) == null || (_palette = _palette[ownerState.color]) == null ? void 0 : _palette.main) != null ? _palette$ownerState$c : {
15879
+ action: (_palette2 = (theme.vars || theme).palette) == null || (_palette2 = _palette2.action) == null ? void 0 : _palette2.active,
15880
+ disabled: (_palette3 = (theme.vars || theme).palette) == null || (_palette3 = _palette3.action) == null ? void 0 : _palette3.disabled,
15945
15881
  inherit: undefined
15946
15882
  }[ownerState.color]
15947
15883
  };
@@ -16072,7 +16008,7 @@ function requireClose () {
16072
16008
  Object.defineProperty(Close$1, "__esModule", {
16073
16009
  value: true
16074
16010
  });
16075
- Close$1.default = undefined;
16011
+ Close$1.default = void 0;
16076
16012
  var _createSvgIcon = _interopRequireDefault(/*@__PURE__*/ requireCreateSvgIcon());
16077
16013
  var _jsxRuntime = requireJsxRuntime();
16078
16014
  Close$1.default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
@@ -16159,7 +16095,7 @@ function getScrollIndex(_ref) {
16159
16095
  } = _ref;
16160
16096
  let scrollIndex;
16161
16097
  let triggerRerender = false;
16162
- let newOffset = offset !== null && offset !== undefined ? offset : 0;
16098
+ let newOffset = offset !== null && offset !== void 0 ? offset : 0;
16163
16099
  switch (position) {
16164
16100
  case 'start':
16165
16101
  scrollIndex = 0;
@@ -16195,7 +16131,7 @@ function getFrequencyAllowed(_ref) {
16195
16131
  const widthPermitsFreq = itemWidth > FREQUENCY_MIN_SHOW_WIDTH;
16196
16132
  const {
16197
16133
  frequencyEnabled = false
16198
- } = (layout === null || layout === undefined ? undefined : layout.qListObject) || {};
16134
+ } = (layout === null || layout === void 0 ? void 0 : layout.qListObject) || {};
16199
16135
  const hasValidFreqOption = !['N', undefined].includes(frequencyMode);
16200
16136
  return !!(widthPermitsFreq && (hasValidFreqOption || frequencyEnabled));
16201
16137
  }
@@ -16209,7 +16145,7 @@ const escapeField = field => {
16209
16145
  }
16210
16146
  return "[".concat(field.replace(/\]/g, ']]'), "]");
16211
16147
  };
16212
- const needToFetchFrequencyMax = layout => (layout === null || layout === undefined ? undefined : layout.frequencyMax) === 'fetch';
16148
+ const needToFetchFrequencyMax = layout => (layout === null || layout === void 0 ? void 0 : layout.frequencyMax) === 'fetch';
16213
16149
  const getFrequencyMaxExpression = field => {
16214
16150
  const escapedField = escapeField(field);
16215
16151
  return "Max(AGGR(Count(".concat(escapedField, "), ").concat(escapedField, "))");
@@ -16238,7 +16174,7 @@ const useFrequencyMax = (app, layout) => {
16238
16174
  fetch();
16239
16175
  }, [needFetch && layout]);
16240
16176
  return {
16241
- frequencyMax: needFetch ? frequencyMax : layout === null || layout === undefined ? undefined : layout.frequencyMax,
16177
+ frequencyMax: needFetch ? frequencyMax : layout === null || layout === void 0 ? void 0 : layout.frequencyMax,
16242
16178
  awaitingFrequencyMax
16243
16179
  };
16244
16180
  };
@@ -16258,7 +16194,7 @@ function getSRForSelectedState(_ref) {
16258
16194
  } = _ref;
16259
16195
  const {
16260
16196
  qStateCounts: s = {}
16261
- } = (layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qDimensionInfo) || {};
16197
+ } = (layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qDimensionInfo) || {};
16262
16198
  const count = s.qSelected + s.qSelectedExcluded + s.qLocked + s.qLockedExcluded;
16263
16199
  let t;
16264
16200
  switch (count) {
@@ -16300,7 +16236,7 @@ function getScreenReaderAssertiveText(_ref2) {
16300
16236
  translator: translatorDynamic
16301
16237
  } = useContext(InstanceContext);
16302
16238
  const finalStringArr = [];
16303
- if (searchInputText !== null && searchInputText !== undefined && searchInputText.length) {
16239
+ if (searchInputText !== null && searchInputText !== void 0 && searchInputText.length) {
16304
16240
  // Add search result text.
16305
16241
  const srSearchTranslationString = getSearchTranslationString(listCount);
16306
16242
  const srSearchString = translatorDynamic.get(srSearchTranslationString, [listCount]);
@@ -16315,7 +16251,7 @@ function getScreenReaderAssertiveText(_ref2) {
16315
16251
  finalStringArr.push(srSelectionValueText);
16316
16252
 
16317
16253
  // Merge texts into one text string, targeting the assertive screen reader.
16318
- const finalString = finalStringArr.filter(v => !!(v !== null && v !== undefined && v.length)).join('. ');
16254
+ const finalString = finalStringArr.filter(v => !!(v !== null && v !== void 0 && v.length)).join('. ');
16319
16255
  return finalString;
16320
16256
  }
16321
16257
 
@@ -16327,7 +16263,7 @@ function deduceFrequencyMode(pages) {
16327
16263
  return qMatrix.some(_ref2 => {
16328
16264
  var _item$qFrequency;
16329
16265
  let [item] = _ref2;
16330
- return !!((_item$qFrequency = item.qFrequency) !== null && _item$qFrequency !== undefined && _item$qFrequency.match('%'));
16266
+ return !!((_item$qFrequency = item.qFrequency) !== null && _item$qFrequency !== void 0 && _item$qFrequency.match('%'));
16331
16267
  });
16332
16268
  });
16333
16269
  const OTHER = '-'; // treat all other as '-' (change later if we need to identify other modes)
@@ -16386,7 +16322,7 @@ function ListBox(_ref) {
16386
16322
  const {
16387
16323
  checkboxes = checkboxOption,
16388
16324
  histogram
16389
- } = layout !== null && layout !== undefined ? layout : {};
16325
+ } = layout !== null && layout !== void 0 ? layout : {};
16390
16326
  const loaderRef = useRef$1(null);
16391
16327
  const local = useRef$1({
16392
16328
  queue: [],
@@ -16412,6 +16348,9 @@ function ListBox(_ref) {
16412
16348
  postProcessPages,
16413
16349
  listData
16414
16350
  }),
16351
+ {
16352
+ isLoadingData
16353
+ } = _useItemsLoader,
16415
16354
  itemsLoader = _objectWithoutProperties(_useItemsLoader, _excluded$4);
16416
16355
  const {
16417
16356
  getStoreValue,
@@ -16426,7 +16365,7 @@ function ListBox(_ref) {
16426
16365
  show
16427
16366
  }));
16428
16367
  const [pages, setPages] = useState$1([]);
16429
- if (itemsLoader !== null && itemsLoader !== undefined && itemsLoader.pages) {
16368
+ if (itemsLoader !== null && itemsLoader !== void 0 && itemsLoader.pages) {
16430
16369
  selectionState.update({
16431
16370
  setPages,
16432
16371
  pages: itemsLoader.pages,
@@ -16434,13 +16373,13 @@ function ListBox(_ref) {
16434
16373
  layout
16435
16374
  });
16436
16375
  }
16437
- const cardinal = layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qCardinal;
16438
- if (itemsLoader !== null && itemsLoader !== undefined && itemsLoader.pages.length && !awaitingFrequencyMax || cardinal === 0) {
16376
+ const cardinal = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qCardinal;
16377
+ if (itemsLoader !== null && itemsLoader !== void 0 && itemsLoader.pages.length && !awaitingFrequencyMax || cardinal === 0) {
16439
16378
  // All necessary data fetching done - signal rendering done!
16440
- renderedCallback === null || renderedCallback === undefined || renderedCallback();
16379
+ renderedCallback === null || renderedCallback === void 0 || renderedCallback();
16441
16380
  }
16442
16381
  const isItemLoaded = useCallback(index => {
16443
- if (!(pages !== null && pages !== undefined && pages.length) || !local.current.validPages) {
16382
+ if (!(pages !== null && pages !== void 0 && pages.length) || !local.current.validPages) {
16444
16383
  return false;
16445
16384
  }
16446
16385
  local.current.checkIdx = index;
@@ -16463,9 +16402,9 @@ function ListBox(_ref) {
16463
16402
  } = layout || {};
16464
16403
  let isRow = true;
16465
16404
  if (layoutOptions.dataLayout) {
16466
- isRow = layoutOptions.dataLayout === 'singleColumn' ? true : (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.layoutOrder) === 'row';
16405
+ isRow = layoutOptions.dataLayout === 'singleColumn' ? true : (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.layoutOrder) === 'row';
16467
16406
  }
16468
- const isGrid = (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.dataLayout) === 'grid';
16407
+ const isGrid = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dataLayout) === 'grid';
16469
16408
  const scrollToIndex = index => {
16470
16409
  const gridIndex = _objectSpread2({}, isRow ? {
16471
16410
  rowIndex: index
@@ -16507,15 +16446,12 @@ function ListBox(_ref) {
16507
16446
  }, [layout, local.current.dataOffset]);
16508
16447
  let minimumBatchSize = DEFAULT_MIN_BATCH_SIZE;
16509
16448
  const isVertical = layoutOptions.dataLayout !== 'grid';
16510
- const count = layout === null || layout === undefined || (_layout$qListObject$q = layout.qListObject.qSize) === null || _layout$qListObject$q === undefined ? undefined : _layout$qListObject$q.qcy;
16449
+ const count = layout === null || layout === void 0 || (_layout$qListObject$q = layout.qListObject.qSize) === null || _layout$qListObject$q === void 0 ? void 0 : _layout$qListObject$q.qcy;
16511
16450
  const unlimitedListCount = getListCount({
16512
16451
  pages,
16513
16452
  minimumBatchSize,
16514
16453
  count,
16515
- calculatePagesHeight,
16516
- layoutOptions,
16517
- model
16518
- });
16454
+ calculatePagesHeight});
16519
16455
  let freqIsAllowed = getFrequencyAllowed({
16520
16456
  itemWidth: width,
16521
16457
  layout,
@@ -16584,7 +16520,7 @@ function ListBox(_ref) {
16584
16520
  }, [keyScroll.state.up, keyScroll.state.down, keyScroll.state.scrollPosition]);
16585
16521
  const {
16586
16522
  textAlign
16587
- } = (layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo) || {};
16523
+ } = (layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo) || {};
16588
16524
  const [focusListItem, setFocusListItem] = useState$1({
16589
16525
  first: false,
16590
16526
  last: false
@@ -16609,7 +16545,6 @@ function ListBox(_ref) {
16609
16545
  } = getListBoxComponents({
16610
16546
  direction,
16611
16547
  layout,
16612
- height,
16613
16548
  width,
16614
16549
  checkboxes,
16615
16550
  deducedFrequencyMode,
@@ -16649,7 +16584,7 @@ function ListBox(_ref) {
16649
16584
  columnWidth,
16650
16585
  listHeight,
16651
16586
  itemHeight
16652
- } = sizes;
16587
+ } = sizes || {};
16653
16588
  if (!isVertical) {
16654
16589
  minimumBatchSize = getHorizontalMinBatchSize({
16655
16590
  width,
@@ -16680,8 +16615,8 @@ function ListBox(_ref) {
16680
16615
  dismiss: () => setOverflowDisclaimer(state => _objectSpread2(_objectSpread2({}, state), {}, {
16681
16616
  dismissed: true
16682
16617
  })),
16683
- parentWidth: loaderRef === null || loaderRef === undefined || (_loaderRef$current = loaderRef.current) === null || _loaderRef$current === undefined || (_loaderRef$current = _loaderRef$current._listRef) === null || _loaderRef$current === undefined || (_loaderRef$current = _loaderRef$current.props) === null || _loaderRef$current === undefined ? undefined : _loaderRef$current.width,
16684
- dense: layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.dense
16618
+ parentWidth: loaderRef === null || loaderRef === void 0 || (_loaderRef$current = loaderRef.current) === null || _loaderRef$current === void 0 || (_loaderRef$current = _loaderRef$current._listRef) === null || _loaderRef$current === void 0 || (_loaderRef$current = _loaderRef$current.props) === null || _loaderRef$current === void 0 ? void 0 : _loaderRef$current.width,
16619
+ dense: layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dense
16685
16620
  }));
16686
16621
  }
16687
16622
 
@@ -17042,12 +16977,12 @@ const More$1 = React__default.forwardRef((_ref3, ref) => {
17042
16977
 
17043
16978
  const getActionButtonIndex = btn => {
17044
16979
  const toolbar = btn.closest('#actions-toolbar');
17045
- const nodeList = toolbar === null || toolbar === undefined ? undefined : toolbar.querySelectorAll('.njs-cell-action');
16980
+ const nodeList = toolbar === null || toolbar === void 0 ? void 0 : toolbar.querySelectorAll('.njs-cell-action');
17046
16981
  return Array.from(nodeList).indexOf(btn);
17047
16982
  };
17048
16983
  const focusButton = index => {
17049
16984
  const toolbar = document.querySelector('#actions-toolbar');
17050
- const nodeList = toolbar === null || toolbar === undefined ? undefined : toolbar.querySelectorAll('.njs-cell-action');
16985
+ const nodeList = toolbar === null || toolbar === void 0 ? void 0 : toolbar.querySelectorAll('.njs-cell-action');
17051
16986
  if (!nodeList.length) {
17052
16987
  return;
17053
16988
  }
@@ -17092,7 +17027,7 @@ function getActionsKeyDownHandler(_ref) {
17092
17027
  evt.preventDefault(); // prevent scrolling in listbox
17093
17028
  break;
17094
17029
  case KEYS.TAB:
17095
- if (keyboardNavigation && focusHandler !== null && focusHandler !== undefined && focusHandler.refocusContent) {
17030
+ if (keyboardNavigation && focusHandler !== null && focusHandler !== void 0 && focusHandler.refocusContent) {
17096
17031
  const isTabbingOut = evt.shiftKey && getEnabledButton(false) === evt.target || !evt.shiftKey && getEnabledButton(true) === evt.target;
17097
17032
  if (isTabbingOut) {
17098
17033
  evt.preventDefault();
@@ -17216,7 +17151,7 @@ function ActionsToolbar(_ref3) {
17216
17151
  const [showMoreItems, setShowMoreItems] = useState$1(false);
17217
17152
  const popoverAnchorOrigin = {
17218
17153
  vertical: 12,
17219
- horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl === undefined ? undefined : _popover$anchorEl.clientWidth) !== null && _popover$anchorEl$cli !== undefined ? _popover$anchorEl$cli : 0) - 7
17154
+ horizontal: ((_popover$anchorEl$cli = (_popover$anchorEl = popover.anchorEl) === null || _popover$anchorEl === void 0 ? void 0 : _popover$anchorEl.clientWidth) !== null && _popover$anchorEl$cli !== void 0 ? _popover$anchorEl$cli : 0) - 7
17220
17155
  };
17221
17156
  const actionsRef = useRef$1();
17222
17157
  const moreRef = useRef$1();
@@ -17244,11 +17179,11 @@ function ActionsToolbar(_ref3) {
17244
17179
  if (!focusHandler) return;
17245
17180
  const focusFirst = () => {
17246
17181
  const enabledButton = getEnabledButton(false);
17247
- enabledButton === null || enabledButton === undefined || enabledButton.focus();
17182
+ enabledButton === null || enabledButton === void 0 || enabledButton.focus();
17248
17183
  };
17249
17184
  const focusLast = () => {
17250
17185
  const enabledButton = getEnabledButton(true);
17251
- enabledButton === null || enabledButton === undefined || enabledButton.focus();
17186
+ enabledButton === null || enabledButton === void 0 || enabledButton.focus();
17252
17187
  };
17253
17188
  focusHandler.on('focus_toolbar_first', focusFirst);
17254
17189
  focusHandler.on('focus_toolbar_last', focusLast);
@@ -17293,7 +17228,7 @@ function ActionsToolbar(_ref3) {
17293
17228
  sx: {
17294
17229
  flexDirection: isRtl ? 'row-reverse' : 'row'
17295
17230
  }
17296
- }, (extraItems === null || extraItems === undefined ? undefined : extraItems.length) && /*#__PURE__*/React__default.createElement(ActionsGroup, {
17231
+ }, (extraItems === null || extraItems === void 0 ? void 0 : extraItems.length) && /*#__PURE__*/React__default.createElement(ActionsGroup, {
17297
17232
  className: "actions-toolbar-extra-actions",
17298
17233
  actions: extraItems,
17299
17234
  isRtl: isRtl
@@ -17365,7 +17300,7 @@ var SearchIcon = props => SvgIcon$1(search(props));
17365
17300
  const MAX_SEARCH_LENGTH = 64000;
17366
17301
  const TREE_PATH = '/qListObjectDef';
17367
17302
  const WILDCARD = '**';
17368
- const limitSearchLength = val => val === null || val === undefined ? undefined : val.substring(0, MAX_SEARCH_LENGTH);
17303
+ const limitSearchLength = val => val === null || val === void 0 ? void 0 : val.substring(0, MAX_SEARCH_LENGTH);
17369
17304
  const StyledOutlinedInput = styled(OutlinedInput, {
17370
17305
  shouldForwardProp: p => !['styles', 'dense', 'isRtl'].includes(p)
17371
17306
  })(_ref => {
@@ -17583,7 +17518,7 @@ function ListBoxSearch(_ref2, ref) {
17583
17518
  };
17584
17519
  const focusOnInput = () => {
17585
17520
  var _inputRef$current;
17586
- (_inputRef$current = inputRef.current) === null || _inputRef$current === undefined || _inputRef$current.focus();
17521
+ (_inputRef$current = inputRef.current) === null || _inputRef$current === void 0 || _inputRef$current.focus();
17587
17522
  };
17588
17523
  const onClearSearch = () => {
17589
17524
  abortSearch();
@@ -17698,7 +17633,7 @@ function createAppSelections(_ref) {
17698
17633
  objectSelections
17699
17634
  } = _ref2;
17700
17635
  // Quick return if it's already in modal
17701
- if (objectSelections === ((_modalObjectStore$get = modalObjectStore.get(key)) === null || _modalObjectStore$get === undefined ? undefined : _modalObjectStore$get.objectSelections)) {
17636
+ if (objectSelections === ((_modalObjectStore$get = modalObjectStore.get(key)) === null || _modalObjectStore$get === void 0 ? void 0 : _modalObjectStore$get.objectSelections)) {
17702
17637
  return;
17703
17638
  }
17704
17639
 
@@ -17747,7 +17682,7 @@ function createAppSelections(_ref) {
17747
17682
  isModal(objectSelections) {
17748
17683
  var _modalObjectStore$get2;
17749
17684
  // TODO check model state
17750
- return objectSelections ? ((_modalObjectStore$get2 = modalObjectStore.get(key)) === null || _modalObjectStore$get2 === undefined ? undefined : _modalObjectStore$get2.objectSelections) === objectSelections : !!modalObjectStore.get(key);
17685
+ return objectSelections ? ((_modalObjectStore$get2 = modalObjectStore.get(key)) === null || _modalObjectStore$get2 === void 0 ? void 0 : _modalObjectStore$get2.objectSelections) === objectSelections : !!modalObjectStore.get(key);
17751
17686
  },
17752
17687
  forward() {
17753
17688
  return appModal.end().then(() => app.forward());
@@ -17820,7 +17755,7 @@ function createHandler(_ref) {
17820
17755
 
17821
17756
  // Resolve elements and filter out containers which do not exist.
17822
17757
  const containers = elements.map(item => {
17823
- const elm = typeof item === 'string' ? document.querySelector(item) : item === null || item === undefined ? undefined : item.current;
17758
+ const elm = typeof item === 'string' ? document.querySelector(item) : item === null || item === void 0 ? void 0 : item.current;
17824
17759
  return elm;
17825
17760
  }).filter(elm => !!elm && !!document.contains(elm));
17826
17761
  if (!containers.length) {
@@ -18018,12 +17953,12 @@ const getClickOutFuncs = _ref3 => {
18018
17953
  activateClickOut() {
18019
17954
  var _options$onSelectionA;
18020
17955
  document.addEventListener('mousedown', handler);
18021
- options === null || options === undefined || (_options$onSelectionA = options.onSelectionActivated) === null || _options$onSelectionA === undefined || _options$onSelectionA.call(options);
17956
+ options === null || options === void 0 || (_options$onSelectionA = options.onSelectionActivated) === null || _options$onSelectionA === void 0 || _options$onSelectionA.call(options);
18022
17957
  },
18023
17958
  deactivateClickOut() {
18024
17959
  var _options$onSelectionD;
18025
17960
  document.removeEventListener('mousedown', handler);
18026
- options === null || options === undefined || (_options$onSelectionD = options.onSelectionDeactivated) === null || _options$onSelectionD === undefined || _options$onSelectionD.call(options);
17961
+ options === null || options === void 0 || (_options$onSelectionD = options.onSelectionDeactivated) === null || _options$onSelectionD === void 0 || _options$onSelectionD.call(options);
18027
17962
  }
18028
17963
  };
18029
17964
  };
@@ -18107,14 +18042,14 @@ function selectionState() {
18107
18042
  this.clearItemStates(false);
18108
18043
  }
18109
18044
  if (state.enginePages !== pages && pages !== undefined) {
18110
- state.enginePages = pages !== null && pages !== undefined ? pages : [];
18045
+ state.enginePages = pages !== null && pages !== void 0 ? pages : [];
18111
18046
  state.selectedInEngine = getSelectedValues(pages);
18112
18047
  state.selectableValuesUpdating = false;
18113
18048
  state.triggerStateChanged();
18114
18049
  }
18115
18050
  state.isSingleSelect = isSingleSelect;
18116
18051
  state.selectDisabled = selectDisabled || state.selectDisabled;
18117
- state.isDimCalculated = (_layout$qListObject$q = layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qIsCalculated) !== null && _layout$qListObject$q !== undefined ? _layout$qListObject$q : false;
18052
+ state.isDimCalculated = (_layout$qListObject$q = layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qIsCalculated) !== null && _layout$qListObject$q !== void 0 ? _layout$qListObject$q : false;
18118
18053
  },
18119
18054
  allowedToSelect() {
18120
18055
  if (state.selectDisabled()) {
@@ -18153,7 +18088,7 @@ function selectionState() {
18153
18088
  if (selected && !additive) {
18154
18089
  state.itemStates[elementNumber] = false;
18155
18090
  } else if (!selected) {
18156
- selectedValues === null || selectedValues === undefined || selectedValues.push(elementNumber);
18091
+ selectedValues === null || selectedValues === void 0 || selectedValues.push(elementNumber);
18157
18092
  state.itemStates[elementNumber] = true;
18158
18093
  }
18159
18094
  },
@@ -18199,10 +18134,10 @@ function selectionState() {
18199
18134
  const getValue$1 = function (obj, prop) {
18200
18135
  var _obj$prop;
18201
18136
  let defaultValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
18202
- return (_obj$prop = obj === null || obj === undefined ? undefined : obj[prop]) !== null && _obj$prop !== undefined ? _obj$prop : defaultValue;
18137
+ return (_obj$prop = obj === null || obj === void 0 ? void 0 : obj[prop]) !== null && _obj$prop !== void 0 ? _obj$prop : defaultValue;
18203
18138
  };
18204
18139
  function hasSelections(layout) {
18205
- const counts = (layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qStateCounts) || {};
18140
+ const counts = (layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qStateCounts) || {};
18206
18141
  const totalCounts = getValue$1(counts, 'qSelected', 0) + getValue$1(counts, 'qSelectedExcluded', 0) + getValue$1(counts, 'qLocked', 0) + getValue$1(counts, 'qLockedExcluded', 0);
18207
18142
  return totalCounts > 0;
18208
18143
  }
@@ -18213,7 +18148,7 @@ function hasSelections(layout) {
18213
18148
  * Released under the MIT license.
18214
18149
  */
18215
18150
 
18216
- function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,s=n[0];(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(undefined!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),true).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:undefined,invalid:false,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||undefined===e?undefined:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=s-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=s-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=c-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=true;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=true;else n.length>=3&&n.length<=4?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=true;return Number.isNaN(+g+y+b+x)&&(v.invalid=true),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=s,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else {switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=i.a,c=Math.max(o,a,l),u=Math.min(o,a,l),f=(c+u)/2;if(c===u)t=0,r=0;else {switch(n=c-u,t=f>.5?n/(2-c-u):n/(c+u),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*f,", ").concat(s,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=s;if(s===c)t=0,r=0;else {switch(t=0===(n=s-c)?0:n/u,s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,", ").concat(r,", ").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(", "),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,", ").concat(i,", ").concat(o,")")}function k(t,n){return e(t)?"rgba(".concat([t.r,t.g,t.b,t.a].join(", "),")"):k(v(t))}function C(t){return e(t)?1===t.a?w(t):k(t):C(v(t))}var M=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function S(e){return .2126*M(e.r)+.7152*M(e.g)+.0722*M(e.b)}function D(){var e=v.apply(undefined,arguments);return e.invalid||S(e)<.4}function O(){var e=v.apply(undefined,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return "hsla(".concat(i,", ").concat(o,", ").concat(s,", ").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return D(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=C(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(", "),")")},getBrightenedColor:function(){var e=arguments.length>0&&undefined!==arguments[0]?arguments[0]:1;return O(r(18*e))},getDarkenedColor:function(){var e=arguments.length>0&&undefined!==arguments[0]?arguments[0]:1;return O(r(18*-e))}}}function I(e,t){if(e&&t){var n=S(e),r=S(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function A(e,t){var n=O("#FFFFFF"),r=O(e),i=O(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=I(n,r),a=I(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var K,$;function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe=function(){if($)return K;$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return false;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return false;for(r in n);return undefined===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,s,c,u,f=arguments[0],d=1,p=arguments.length,h=false;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=false,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,s)})):undefined!==s&&a(f,{name:n,newValue:s}));return f},K}();ie(oe);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function he(){}var me=1/.7,ve="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),qe=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ve},${ve},${ve},${ge}\\)$`),ke=new RegExp(`^rgba\\(${ye},${ye},${ye},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${ye},${ye}\\)$`),Me=new RegExp(`^hsla\\(${ge},${ye},${ye},${ge}\\)$`),Se={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function De(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new Ne(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ae(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xe.exec(e))?new Ne(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Ae(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Re(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Re(t[1],t[2]/100,t[3]/100,t[4]):Se.hasOwnProperty(e)?Ee(Se[e]):"transparent"===e?new Ne(NaN,NaN,NaN,0):null}function Ee(e){return new Ne(e>>16&255,e>>8&255,255&e,1)}function Ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function Te(e){return e instanceof he||(e=Ie(e)),e?new Ne((e=e.rgb()).r,e.g,e.b,e.opacity):new Ne}function Le(e,t,n,r){return 1===arguments.length?Te(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Pe(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function je(){const e=Fe(this.opacity);return `${1===e?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return ((e=He(e))<16?"0":"")+e.toString(16)}function Re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ve(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Ie(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new _e(a,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function Be(e){return (e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(he,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Oe,toString:Oe}),de(Ne,Le,pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(He(this.r),He(this.g),He(this.b),Fe(this.opacity))},displayable(){return -0.5<=this.r&&this.r<255.5&&-0.5<=this.g&&this.g<255.5&&-0.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),de(_e,(function(e,t,n,r){return 1===arguments.length?Ve(e):new _e(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ne($e(e>=240?e-240:e+120,i,r),$e(e,i,r),$e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Be(this.h),Ke(this.s),Ke(this.l),Fe(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return `${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Ye=Math.PI/180,Ue=180/Math.PI,Ge=4/29,We=6/29,Xe=3*We*We;function Ze(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return at(e);e instanceof Ne||(e=Te(e));var t,n,r=nt(e.r),i=nt(e.g),o=nt(e.b),a=Qe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Qe((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Qe((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ge}function et(e){return e>We?e*e*e:Xe*(e-Ge)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function it(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function at(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*Ye;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}de(Je,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Je(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ne(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-0.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),de(ot,it,pe(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return at(this).rgb()}}));var lt=e=>()=>e;function st(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):lt(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lt(isNaN(e)?t:e)}(function e(t){var n=st(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Ut="center",Gt="bottom";[{key:"NoDataExist",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;if(!t.meta.isContinuous)return false;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ut},{key:"DataRangeIncludingZero",alignment:Gt},{key:"LimitedData",alignment:Gt},{key:"NegativeOrZeroValues",alignment:Gt}].reduce((function(e,t){return e[t.key]=t,e}),{});function Vn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function _n(e,t){e instanceof Map?(e=[undefined,e],undefined===t&&(t=Kn)):undefined===t&&(t=Bn);for(var n,r,i,o,a,l=new Un(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Un(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yn)}function Bn(e){return e.children}function Kn(e){return Array.isArray(e)?e[1]:null}function $n(e){ undefined!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function Yn(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Un(e){this.data=e,this.depth=this.height=0,this.parent=null;}Un.prototype=_n.prototype={constructor:Un,count:function(){return this.eachAfter(Vn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return _n(this).eachBefore($n)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var qr,wr;(qr=function(e){
18151
+ function e(e){return "number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b&&"number"==typeof e.a}function t(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(1===n.length&&e(n[0]))return (n[0].r<<16)+(n[0].g<<8)+n[0].b;var i=0,o=0,a=0;if(1===n.length&&"string"==typeof n[0]){var l,s=n[0];(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(s))?(i=parseInt(l[1],10),o=parseInt(l[2],10),a=parseInt(l[3],10)):(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(s))?(i=parseInt(l[1],16),o=parseInt(l[2],16),a=parseInt(l[3],16)):(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(s))&&(i=parseInt(l[1]+l[1],16),o=parseInt(l[2]+l[2],16),a=parseInt(l[3]+l[3],16));}return (i<<16)+(o<<8)+a}function o(e,t,n){return (t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return ("string"===t?String:Number)(e)}(e,"string");return "symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r);}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),true).forEach((function(t){o(e,t,n[t]);})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t));}));}return e}var h={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},m="qcm-color";function v(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i,o,a,s,c,u,f,d,p,v={type:m,r:0,g:0,b:0,a:1,l:void 0,invalid:false,spaces:{}},g=0,y=0,b=0,x=1;if((null===(e=n[0])||void 0===e?void 0:e.type)===m){var q=n[0];g=q.r,y=q.g,b=q.b,x=q.a,v.invalid=n[0].invalid,v.spaces=l({},n[0].spaces);}else if(n.length<3)if("string"==typeof n[0]){var w,k=n[0];if(w=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10);else if(w=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k))g=parseInt(w[1],10),y=parseInt(w[2],10),b=parseInt(w[3],10),x=parseFloat(w[4]);else if(w=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(k))x=parseInt(w[1],10)/255,g=parseInt(w[2],10),y=parseInt(w[3],10),b=parseInt(w[4],10);else if(w=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(k))g=parseInt(w[1],16),y=parseInt(w[2],16),b=parseInt(w[3],16),x=1;else if(w=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(k))g=parseInt(w[1]+w[1],16),y=parseInt(w[2]+w[2],16),b=parseInt(w[3]+w[3],16),x=1;else if(w=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var C=[];switch(f=Math.floor(f)){case 0:C=[u,d,0];break;case 1:C=[d,u,0];break;case 2:C=[0,u,d];break;case 3:C=[0,d,u];break;case 4:C=[d,0,u];break;case 5:C=[u,0,d];break;default:C=[0,0,0];}p=s-.5*u,g=C[0]+p,y=C[1]+p,b=C[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(w=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),s=parseFloat(w[5]),x=parseFloat(w[7]),o=(o/=100)<0?0:o>1?1:o,f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(s=(s/=100)<0?0:s>1?1:s)<=.5?2*s*o:(2-2*s)*o)*(1-Math.abs(f%2-1));var M=[];switch(f=Math.floor(f)){case 0:M=[u,d,0];break;case 1:M=[d,u,0];break;case 2:M=[0,u,d];break;case 3:M=[0,d,u];break;case 4:M=[d,0,u];break;case 5:M=[u,0,d];break;default:M=[0,0,0];}p=s-.5*u,g=M[0]+p,y=M[1]+p,b=M[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b);}else if(w=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(k)){i=parseFloat(w[1]),o=parseFloat(w[3]),c=parseFloat(w[5]),f=(i=(i%=360)<0?0:i>360?360:i)/60,d=(u=(c=(c/=100)<0?0:c>1?1:c)*(o=(o/=100)<0?0:o>1?1:o))*(1-Math.abs(f%2-1));var S=[];switch(f=Math.floor(f)){case 0:S=[u,d,0];break;case 1:S=[d,u,0];break;case 2:S=[0,u,d];break;case 3:S=[0,d,u];break;case 4:S=[d,0,u];break;case 5:S=[u,0,d];break;default:S=[0,0,0];}p=c-u,g=S[0]+p,y=S[1]+p,b=S[2]+p,g=Math.round(255*g),y=Math.round(255*y),b=Math.round(255*b),x=1;}else if(h[k.toLowerCase()]){a=k.toLowerCase();var D=h[a];g=D.r,y=D.g,b=D.b,x="number"==typeof h[a].a?h[a].a:1;}else v.invalid=true;}else "number"==typeof n[0]&&n[0]>=0&&"argb"===n[1]?(x=(4278190080&n[0])>>>24,x/=255,g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):"number"==typeof n[0]&&n[0]>=0?(g=(16711680&n[0])>>16,y=(65280&n[0])>>8,b=255&n[0]):v.invalid=true;else n.length>=3&&n.length<=4?(g=n[0],y=n[1],b=n[2],x=arguments.length>=4?n[3]:1):v.invalid=true;return Number.isNaN(+g+y+b+x)&&(v.invalid=true),v.r=Math.floor(g),v.g=Math.floor(y),v.b=Math.floor(b),v.a=x,v.l=s,v}function g(n){var r,i,o;if(e(n))return r=n.r.toString(16),i=n.g.toString(16),o=n.b.toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat([r,i,o].join(""));var a="string"==typeof n?t(n):n;return r=((16711680&a)>>16).toString(16),i=((65280&a)>>8).toString(16),o=(255&a).toString(16),1===r.length&&(r="0".concat(r)),1===i.length&&(i="0".concat(i)),1===o.length&&(o="0".concat(o)),"#".concat(r).concat(i).concat(o)}function y(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else {switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsl(".concat(360*r,", ").concat(100*t,", ").concat(100*u,")")}function b(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=i.a,c=Math.max(o,a,l),u=Math.min(o,a,l),f=(c+u)/2;if(c===u)t=0,r=0;else {switch(n=c-u,t=f>.5?n/(2-c-u):n/(c+u),c){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return "hsla(".concat(360*r,", ").concat(100*t,", ").concat(100*f,", ").concat(s,")")}function x(e){var t,n,r=0,i="string"==typeof e?v(e):e,o=i.r/255,a=i.g/255,l=i.b/255,s=Math.max(o,a,l),c=Math.min(o,a,l),u=s;if(s===c)t=0,r=0;else {switch(t=0===(n=s-c)?0:n/u,s){case o:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-o)/n+2;break;case l:r=(o-a)/n+4;}r/=6;}return {h:360*r%360,s:100*t,v:100*u}}function q(e){var t=x(e),n=t.h,r=t.s,i=t.v;return "hsv(".concat(n,", ").concat(r,", ").concat(i,")")}function w(n){if(e(n))return "rgb(".concat([n.r,n.g,n.b].join(", "),")");var r="string"==typeof n?t(n):n,i=(65280&r)>>8,o=255&r;return "rgb(".concat((16711680&r)>>16,", ").concat(i,", ").concat(o,")")}function k(t,n){return e(t)?"rgba(".concat([t.r,t.g,t.b,t.a].join(", "),")"):k(v(t))}function C(t){return e(t)?1===t.a?w(t):k(t):C(v(t))}var M=function(e){var t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)};function S(e){return .2126*M(e.r)+.7152*M(e.g)+.0722*M(e.b)}function D(){var e=v.apply(void 0,arguments);return e.invalid||S(e)<.4}function O(){var e=v.apply(void 0,arguments),t={type:e.type,r:e.r,g:e.g,b:e.b,a:e.a,invalid:e.invalid,spaces:e.spaces},n=function(){return t.spaces.hsla||(t.spaces.hsla=b(t)),t.spaces.hsla},r=function(e){var t=n(),r=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(t),i=parseFloat(r[1]),o=parseFloat(r[3]),a=parseFloat(r[7]),l=parseFloat(r[5]),s=Math.max(0,Math.min(l+e,100));return "hsla(".concat(i,", ").concat(o,", ").concat(s,", ").concat(a,")")};return {get type(){return t.type},isInvalid:function(){return t.invalid},get r(){return t.r},get g(){return t.g},get b(){return t.b},get a(){return t.a},getR:function(){return t.r},getG:function(){return t.g},getB:function(){return t.b},getAlpha:function(){return t.a},setAlpha:function(e){t.a=e,t.spaces={};},isEqualTo:function(e){var n=e.type===t.type?e:v(e);return n.r===t.r&&n.g===t.g&&n.b===t.b&&n.a===t.a},isDark:function(){return D(t)},getRGB:function(){return t.spaces.rgb||(t.spaces.rgb=w(t)),t.spaces.rgb},getRGBA:function(){return t.spaces.rgba||(t.spaces.rgba=k(t)),t.spaces.rgba},getString:function(){return t.spaces.string||(t.spaces.string=C(t)),t.spaces.string},getHex:function(){return t.spaces.hex||(t.spaces.hex=g(t)),t.spaces.hex},getHSL:function(){return t.spaces.hsl||(t.spaces.hsl=y(t)),t.spaces.hsl},getHSLA:n,getShiftedHSLA:r,getHSV:function(){return t.spaces.hsv||(t.spaces.hsv=q(t)),t.spaces.hsv},getHSVObject:function(){return t.spaces.hsvObject||(t.spaces.hsvObject=x(t)),t.spaces.hsvObject},blend:function(e,n){var r=Math.floor(t.r+(e.r-t.r)*n),i=Math.floor(t.g+(e.g-t.g)*n),o=Math.floor(t.b+(e.b-t.b)*n),a=Math.floor(t.a+(e.getAlpha()-t.a)*n);return "rgba(".concat([r,i,o,a].join(", "),")")},getBrightenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*e))},getDarkenedColor:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return O(r(18*-e))}}}function I(e,t){if(e&&t){var n=S(e),r=S(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}}function A(e,t){var n=O("#FFFFFF"),r=O(e),i=O(t);if(r.isInvalid()||i.isInvalid()||r.getAlpha()<1||i.getAlpha()<1)return t;var o=I(n,r),a=I(i,r),l=o>a||o>4.5;return !l&&a>3?t:l?"#FFFFFF":"#000000"}var K,$;function ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var oe=function(){if($)return K;$=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(e){return "function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},o=function(n){if(!n||"[object Object]"!==t.call(n))return false;var r,i=e.call(n,"constructor"),o=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!i&&!o)return false;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true}):e[t.name]=t.newValue;},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return K=function e(){var t,n,r,s,c,u,f=arguments[0],d=1,p=arguments.length,h=false;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)r=l(f,n),f!==(s=l(t,n))&&(h&&s&&(o(s)||(c=i(s)))?(c?(c=false,u=r&&i(r)?r:[]):u=r&&o(r)?r:{},a(f,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(f,{name:n,newValue:s}));return f},K}();ie(oe);function de(e,t,n){e.prototype=t.prototype=n,n.constructor=e;}function pe(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function he(){}var me=1/.7,ve="\\s*([+-]?\\d+)\\s*",ge="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ye="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",be=/^#([0-9a-f]{3,8})$/,xe=new RegExp(`^rgb\\(${ve},${ve},${ve}\\)$`),qe=new RegExp(`^rgb\\(${ye},${ye},${ye}\\)$`),we=new RegExp(`^rgba\\(${ve},${ve},${ve},${ge}\\)$`),ke=new RegExp(`^rgba\\(${ye},${ye},${ye},${ge}\\)$`),Ce=new RegExp(`^hsl\\(${ge},${ye},${ye}\\)$`),Me=new RegExp(`^hsla\\(${ge},${ye},${ye},${ge}\\)$`),Se={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function De(){return this.rgb().formatHex()}function Oe(){return this.rgb().formatRgb()}function Ie(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=be.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Ee(t):3===n?new Ne(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ae(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ae(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=xe.exec(e))?new Ne(t[1],t[2],t[3],1):(t=qe.exec(e))?new Ne(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=we.exec(e))?Ae(t[1],t[2],t[3],t[4]):(t=ke.exec(e))?Ae(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ce.exec(e))?Re(t[1],t[2]/100,t[3]/100,1):(t=Me.exec(e))?Re(t[1],t[2]/100,t[3]/100,t[4]):Se.hasOwnProperty(e)?Ee(Se[e]):"transparent"===e?new Ne(NaN,NaN,NaN,0):null}function Ee(e){return new Ne(e>>16&255,e>>8&255,255&e,1)}function Ae(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ne(e,t,n,r)}function Te(e){return e instanceof he||(e=Ie(e)),e?new Ne((e=e.rgb()).r,e.g,e.b,e.opacity):new Ne}function Le(e,t,n,r){return 1===arguments.length?Te(e):new Ne(e,t,n,null==r?1:r)}function Ne(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r;}function Pe(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}`}function je(){const e=Fe(this.opacity);return `${1===e?"rgb(":"rgba("}${He(this.r)}, ${He(this.g)}, ${He(this.b)}${1===e?")":`, ${e})`}`}function Fe(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function He(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ze(e){return ((e=He(e))<16?"0":"")+e.toString(16)}function Re(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Ve(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof he||(e=Ie(e)),!e)return new _e;if(e instanceof _e)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,l=o-i,s=(o+i)/2;return l?(a=t===o?(n-r)/l+6*(n<r):n===o?(r-t)/l+2:(t-n)/l+4,l/=s<.5?o+i:2-o-i,a*=60):l=s>0&&s<1?0:a,new _e(a,l,s,e.opacity)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r;}function Be(e){return (e=(e||0)%360)<0?e+360:e}function Ke(e){return Math.max(0,Math.min(1,e||0))}function $e(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}de(he,Ie,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:De,formatHex:De,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Ve(this).formatHsl()},formatRgb:Oe,toString:Oe}),de(Ne,Le,pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Ne(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ne(He(this.r),He(this.g),He(this.b),Fe(this.opacity))},displayable(){return -0.5<=this.r&&this.r<255.5&&-0.5<=this.g&&this.g<255.5&&-0.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Pe,formatHex:Pe,formatHex8:function(){return `#${ze(this.r)}${ze(this.g)}${ze(this.b)}${ze(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:je,toString:je})),de(_e,(function(e,t,n,r){return 1===arguments.length?Ve(e):new _e(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return e=null==e?me:Math.pow(me,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new _e(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Ne($e(e>=240?e-240:e+120,i,r),$e(e,i,r),$e(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Be(this.h),Ke(this.s),Ke(this.l),Fe(this.opacity))},displayable(){return (0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Fe(this.opacity);return `${1===e?"hsl(":"hsla("}${Be(this.h)}, ${100*Ke(this.s)}%, ${100*Ke(this.l)}%${1===e?")":`, ${e})`}`}}));const Ye=Math.PI/180,Ue=180/Math.PI,Ge=4/29,We=6/29,Xe=3*We*We;function Ze(e){if(e instanceof Je)return new Je(e.l,e.a,e.b,e.opacity);if(e instanceof ot)return at(e);e instanceof Ne||(e=Te(e));var t,n,r=nt(e.r),i=nt(e.g),o=nt(e.b),a=Qe((.2225045*r+.7168786*i+.0606169*o)/1);return r===i&&i===o?t=n=a:(t=Qe((.4360747*r+.3850649*i+.1430804*o)/.96422),n=Qe((.0139322*r+.0971045*i+.7141733*o)/.82521)),new Je(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Je(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r;}function Qe(e){return e>.008856451679035631?Math.pow(e,1/3):e/Xe+Ge}function et(e){return e>We?e*e*e:Xe*(e-Ge)}function tt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function nt(e){return (e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function rt(e){if(e instanceof ot)return new ot(e.h,e.c,e.l,e.opacity);if(e instanceof Je||(e=Ze(e)),0===e.a&&0===e.b)return new ot(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Ue;return new ot(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function it(e,t,n,r){return 1===arguments.length?rt(e):new ot(e,t,n,null==r?1:r)}function ot(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r;}function at(e){if(isNaN(e.h))return new Je(e.l,0,0,e.opacity);var t=e.h*Ye;return new Je(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}de(Je,(function(e,t,n,r){return 1===arguments.length?Ze(e):new Je(e,t,n,null==r?1:r)}),pe(he,{brighter(e){return new Je(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Je(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Ne(tt(3.1338561*(t=.96422*et(t))-1.6168667*(e=1*et(e))-.4906146*(n=.82521*et(n))),tt(-0.9787684*t+1.9161415*e+.033454*n),tt(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),de(ot,it,pe(he,{brighter(e){return new ot(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new ot(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return at(this).rgb()}}));var lt=e=>()=>e;function st(e){return 1==(e=+e)?ct:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):lt(isNaN(t)?n:t)}}function ct(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):lt(isNaN(e)?t:e)}(function e(t){var n=st(t);function r(e,t){var r=n((e=Le(e)).r,(t=Le(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=ct(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r})(1);var Ut="center",Gt="bottom";[{key:"NoDataExist",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;var n=t.meta.size;return n.x*n.y==0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;return !!t&&t.getHyperCubeValue("qMeasureInfo").every((function(e){return "NaN"===e.qMin&&"NaN"===e.qMax}))}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:Ut,condition:function(e){var t=e.layoutService;if(!t)return false;if(!t.meta.isContinuous)return false;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:Ut},{key:"DataRangeIncludingZero",alignment:Gt},{key:"LimitedData",alignment:Gt},{key:"NegativeOrZeroValues",alignment:Gt}].reduce((function(e,t){return e[t.key]=t,e}),{});function Vn(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t;}function _n(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Kn)):void 0===t&&(t=Bn);for(var n,r,i,o,a,l=new Un(e),s=[l];n=s.pop();)if((i=t(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new Un(i[o])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Yn)}function Bn(e){return e.children}function Kn(e){return Array.isArray(e)?e[1]:null}function $n(e){ void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data;}function Yn(e){var t=0;do{e.height=t;}while((e=e.parent)&&e.height<++t)}function Un(e){this.data=e,this.depth=this.height=0,this.parent=null;}Un.prototype=_n.prototype={constructor:Un,count:function(){return this.eachAfter(Vn)},each:function(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this},eachAfter:function(e,t){for(var n,r,i,o=this,a=[o],l=[],s=-1;o=a.pop();)if(l.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=l.pop();)e.call(t,o,++s,this);return this},eachBefore:function(e,t){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(e.call(t,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r},sum:function(e){return this.eachAfter((function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n;}))},sort:function(e){return this.eachBefore((function(t){t.children&&t.children.sort(e);}))},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;e=n.pop(),t=r.pop();for(;e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){return Array.from(this)},leaves:function(){var e=[];return this.eachBefore((function(t){t.children||e.push(t);})),e},links:function(){var e=this,t=[];return e.each((function(n){n!==e&&t.push({source:n.parent,target:n});})),t},copy:function(){return _n(this).eachBefore($n)},[Symbol.iterator]:function*(){var e,t,n,r,i=this,o=[i];do{for(e=o.reverse(),o=[];i=e.pop();)if(yield i,t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);}while(o.length)}};var qr,wr;(qr=function(e){
18217
18152
  /*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
18218
18153
  e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,i,o,a,l,s,c,u,f,d=e.length,p=e.search(/[0-9\-\+#]/),h=p>0?e.substring(0,p):"",m=e.split("").reverse().join(""),v=m.search(/[0-9\-\+#]/),g=d-v,y=e.substring(g,g+1),b=g+("."===y||","===y?1:0),x=v>0?e.substring(b,d):"";if(n=(t="-"===(e=e.substring(p,b)).charAt(0)?-t:+t)<0?t=-t:0,i=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",o=r&&r[1]&&r[0]||",",e=e.split(i),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(o),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0==+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",g=(f=t[0]).length%s,d=f.length,b=0;b<d;b++)m+=f.charAt(b),!((b-g+1)%s)&&b<d-s&&(m+=o);t[0]=m;}return t[1]=e[1]&&t[1]?i+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=false),h+(n?"-":"")+r+x};},qr(wr={exports:{}},wr.exports),wr.exports);
18219
18154
 
@@ -18325,7 +18260,7 @@ function getSenseServerUrl(app) {
18325
18260
  let wsUrl;
18326
18261
  let protocol;
18327
18262
  let isSecure;
18328
- if (app !== null && app !== undefined && (_app$session = app.session) !== null && _app$session !== undefined && _app$session.config) {
18263
+ if (app !== null && app !== void 0 && (_app$session = app.session) !== null && _app$session !== void 0 && _app$session.config) {
18329
18264
  config = app.session.config;
18330
18265
  wsUrl = new URL(config.url);
18331
18266
  isSecure = wsUrl.protocol === 'wss:';
@@ -18337,7 +18272,7 @@ function getSenseServerUrl(app) {
18337
18272
  function getBackgroundPosition(bgComp) {
18338
18273
  var _bgComp$bgImage;
18339
18274
  let bkgImagePosition = 'center center';
18340
- if (bgComp !== null && bgComp !== undefined && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== undefined && _bgComp$bgImage.position) {
18275
+ if (bgComp !== null && bgComp !== void 0 && (_bgComp$bgImage = bgComp.bgImage) !== null && _bgComp$bgImage !== void 0 && _bgComp$bgImage.position) {
18341
18276
  bkgImagePosition = positionToCss[bgComp.bgImage.position];
18342
18277
  }
18343
18278
  return bkgImagePosition;
@@ -18345,7 +18280,7 @@ function getBackgroundPosition(bgComp) {
18345
18280
  function getBackgroundSize(bgComp) {
18346
18281
  var _bgComp$bgImage2;
18347
18282
  let bkgImageSize = imageSizingToCssProperty.originalSize;
18348
- const size = bgComp === null || bgComp === undefined || (_bgComp$bgImage2 = bgComp.bgImage) === null || _bgComp$bgImage2 === undefined ? undefined : _bgComp$bgImage2.sizing;
18283
+ const size = bgComp === null || bgComp === void 0 || (_bgComp$bgImage2 = bgComp.bgImage) === null || _bgComp$bgImage2 === void 0 ? void 0 : _bgComp$bgImage2.sizing;
18349
18284
  if (size) {
18350
18285
  bkgImageSize = imageSizingToCssProperty[size];
18351
18286
  }
@@ -18355,14 +18290,14 @@ function resolveImageUrl(app, relativeUrl) {
18355
18290
  return relativeUrl ? getSenseServerUrl(app) + relativeUrl : undefined;
18356
18291
  }
18357
18292
  function resolveBgImage(bgComp, app) {
18358
- const bgImageDef = bgComp === null || bgComp === undefined ? undefined : bgComp.bgImage;
18293
+ const bgImageDef = bgComp === null || bgComp === void 0 ? void 0 : bgComp.bgImage;
18359
18294
  if (bgImageDef) {
18360
18295
  let url = '';
18361
18296
  if (bgImageDef.mode === 'media' || bgComp.useImage === 'media') {
18362
- const urlObj = bgImageDef === null || bgImageDef === undefined ? undefined : bgImageDef.mediaUrl;
18297
+ const urlObj = bgImageDef === null || bgImageDef === void 0 ? void 0 : bgImageDef.mediaUrl;
18363
18298
  const {
18364
18299
  qUrl
18365
- } = (urlObj === null || urlObj === undefined ? undefined : urlObj.qStaticContentUrl) || {};
18300
+ } = (urlObj === null || urlObj === void 0 ? void 0 : urlObj.qStaticContentUrl) || {};
18366
18301
  url = qUrl ? decodeURIComponent(qUrl) : undefined;
18367
18302
  url = resolveImageUrl(app, url);
18368
18303
  }
@@ -18380,27 +18315,27 @@ function resolveBgImage(bgComp, app) {
18380
18315
  return undefined;
18381
18316
  }
18382
18317
  function resolveBgColor(comp, theme, objectType) {
18383
- const bgColor = comp === null || comp === undefined ? undefined : comp.bgColor;
18318
+ const bgColor = comp === null || comp === void 0 ? void 0 : comp.bgColor;
18384
18319
  if (bgColor && theme) {
18385
18320
  if (bgColor.useExpression || bgColor.useColorExpression) {
18386
18321
  return theme.validateColor(bgColor.colorExpression);
18387
18322
  }
18388
18323
  }
18389
- return resolveColor(bgColor === null || bgColor === undefined ? undefined : bgColor.color, '', 'backgroundColor', theme, objectType);
18324
+ return resolveColor(bgColor === null || bgColor === void 0 ? void 0 : bgColor.color, '', 'backgroundColor', theme, objectType);
18390
18325
  }
18391
18326
  function resolveBorder(comp, theme, objectType) {
18392
- const borderColor = resolveColor(comp === null || comp === undefined ? undefined : comp.borderColor, '', 'borderColor', theme, objectType);
18393
- const borderWidth = (comp === null || comp === undefined ? undefined : comp.borderWidth) || resolveProperty('', 'borderWidth', theme, objectType);
18327
+ const borderColor = resolveColor(comp === null || comp === void 0 ? void 0 : comp.borderColor, '', 'borderColor', theme, objectType);
18328
+ const borderWidth = (comp === null || comp === void 0 ? void 0 : comp.borderWidth) || resolveProperty('', 'borderWidth', theme, objectType);
18394
18329
  return borderWidth && borderColor ? "".concat(borderWidth, " solid ").concat(borderColor) : undefined;
18395
18330
  }
18396
18331
  function resolveBorderRadius(comp, theme, objectType) {
18397
- return (comp === null || comp === undefined ? undefined : comp.borderRadius) || resolveProperty('', 'borderRadius', theme, objectType);
18332
+ return (comp === null || comp === void 0 ? void 0 : comp.borderRadius) || resolveProperty('', 'borderRadius', theme, objectType);
18398
18333
  }
18399
18334
  function resolveBoxShadow(comp, theme, objectType) {
18400
18335
  var _comp$shadow, _comp$shadow2;
18401
18336
  const themeBoxShadow = resolveProperty('shadow', 'boxShadow', theme, objectType);
18402
- const boxShadow = (comp === null || comp === undefined || (_comp$shadow = comp.shadow) === null || _comp$shadow === undefined ? undefined : _comp$shadow.boxShadow) || themeBoxShadow;
18403
- const boxShadowColor = resolveColor(comp === null || comp === undefined || (_comp$shadow2 = comp.shadow) === null || _comp$shadow2 === undefined ? undefined : _comp$shadow2.boxShadowColor, 'shadow', 'boxShadowColor', theme, objectType);
18337
+ const boxShadow = (comp === null || comp === void 0 || (_comp$shadow = comp.shadow) === null || _comp$shadow === void 0 ? void 0 : _comp$shadow.boxShadow) || themeBoxShadow;
18338
+ const boxShadowColor = resolveColor(comp === null || comp === void 0 || (_comp$shadow2 = comp.shadow) === null || _comp$shadow2 === void 0 ? void 0 : _comp$shadow2.boxShadowColor, 'shadow', 'boxShadowColor', theme, objectType);
18404
18339
  return getFullBoxShadow(boxShadow, themeBoxShadow, boxShadowColor);
18405
18340
  }
18406
18341
  function unfurlFontStyle(fontStyle, target) {
@@ -18411,7 +18346,7 @@ function unfurlFontStyle(fontStyle, target) {
18411
18346
  }
18412
18347
  function resolveTextStyle(textComp, target, theme, objectType) {
18413
18348
  var _textComp$title;
18414
- const textProps = (textComp === null || textComp === undefined || (_textComp$title = textComp.title) === null || _textComp$title === undefined ? undefined : _textComp$title[target]) || {};
18349
+ const textProps = (textComp === null || textComp === void 0 || (_textComp$title = textComp.title) === null || _textComp$title === void 0 ? void 0 : _textComp$title[target]) || {};
18415
18350
  const fontStyle = unfurlFontStyle(textProps.fontStyle, target);
18416
18351
  return {
18417
18352
  fontFamily: textProps.fontFamily || theme.getStyle("object.".concat(objectType), "title.".concat(target), 'fontFamily'),
@@ -18436,7 +18371,7 @@ function getOverridesAsObject() {
18436
18371
  // Currently supporting components "theme" and "selections".
18437
18372
  const overrides = {};
18438
18373
  components.forEach(c => {
18439
- const k = c === null || c === undefined ? undefined : c.key;
18374
+ const k = c === null || c === void 0 ? void 0 : c.key;
18440
18375
  if (SUPPORTED_COMPONENTS.includes(k)) {
18441
18376
  overrides[k] = c;
18442
18377
  }
@@ -18452,19 +18387,19 @@ function getSelectionColors(_ref) {
18452
18387
  overrides,
18453
18388
  checkboxes
18454
18389
  } = _ref;
18455
- const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme === undefined || (_overrides$theme = _overrides$theme.content) === null || _overrides$theme === undefined ? undefined : _overrides$theme.fontColor;
18390
+ const componentContentTextColor = (_overrides$theme = overrides.theme) === null || _overrides$theme === void 0 || (_overrides$theme = _overrides$theme.content) === null || _overrides$theme === void 0 ? void 0 : _overrides$theme.fontColor;
18456
18391
 
18457
18392
  // color priority: layout.component > theme content color > MUI theme
18458
- const desiredTextColor = getColorPickerColor(componentContentTextColor) || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette === undefined ? undefined : _theme$palette.text.primary);
18459
- const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 === undefined || (_overrides$theme2 = _overrides$theme2.content) === null || _overrides$theme2 === undefined ? undefined : _overrides$theme2.useContrastColor) !== null && _overrides$theme$cont !== undefined ? _overrides$theme$cont : true);
18460
- const componentSelectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections === undefined ? undefined : _overrides$selections.colors) || {};
18393
+ const desiredTextColor = getColorPickerColor(componentContentTextColor) || getListboxStyle('content', 'color') || ((_theme$palette = theme.palette) === null || _theme$palette === void 0 ? void 0 : _theme$palette.text.primary);
18394
+ const useContrastTextColor = !checkboxes && ((_overrides$theme$cont = (_overrides$theme2 = overrides.theme) === null || _overrides$theme2 === void 0 || (_overrides$theme2 = _overrides$theme2.content) === null || _overrides$theme2 === void 0 ? void 0 : _overrides$theme2.useContrastColor) !== null && _overrides$theme$cont !== void 0 ? _overrides$theme$cont : true);
18395
+ const componentSelectionColors = ((_overrides$selections = overrides.selections) === null || _overrides$selections === void 0 ? void 0 : _overrides$selections.colors) || {};
18461
18396
  const getSelectionStateColors = state => {
18462
18397
  var _theme$palette2, _theme$palette3;
18463
18398
  const paletteState = state === 'selected' ? 'main' : state;
18464
18399
  const contrastState = "".concat(state, "Contrast");
18465
18400
  // color priority: layout.component > theme dataColors > theme background (only for 'possible') > MUI theme > hardcoded default
18466
- const color = getColorPickerColor(componentSelectionColors[state]) || getListboxStyle('', "dataColors.".concat(state)) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === undefined || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === undefined ? undefined : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
18467
- const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === undefined ? undefined : _theme$palette3.selected["".concat(contrastState, "Text}")]);
18401
+ const color = getColorPickerColor(componentSelectionColors[state]) || getListboxStyle('', "dataColors.".concat(state)) || state === 'possible' && getListboxStyle('', 'backgroundColor') || ((_theme$palette2 = theme.palette) === null || _theme$palette2 === void 0 || (_theme$palette2 = _theme$palette2.selected) === null || _theme$palette2 === void 0 ? void 0 : _theme$palette2[paletteState]) || DEFAULT_SELECTION_COLORS[state];
18402
+ const contrastColor = useContrastTextColor ? A(color, desiredTextColor) : desiredTextColor || ((_theme$palette3 = theme.palette) === null || _theme$palette3 === void 0 ? void 0 : _theme$palette3.selected["".concat(contrastState, "Text}")]);
18468
18403
  return {
18469
18404
  [state]: color,
18470
18405
  [contrastState]: contrastColor
@@ -18478,16 +18413,16 @@ function getBackgroundColor(_ref2) {
18478
18413
  themeOverrides
18479
18414
  } = _ref2;
18480
18415
  let color;
18481
- const bgColor = themeOverrides === null || themeOverrides === undefined ? undefined : themeOverrides.background;
18416
+ const bgColor = themeOverrides === null || themeOverrides === void 0 ? void 0 : themeOverrides.background;
18482
18417
  if (!bgColor) {
18483
18418
  return color;
18484
18419
  }
18485
- if (bgColor !== null && bgColor !== undefined && bgColor.useExpression) {
18420
+ if (bgColor !== null && bgColor !== void 0 && bgColor.useExpression) {
18486
18421
  color = resolveBgColor({
18487
18422
  bgColor
18488
18423
  }, themeApi, 'listBox');
18489
18424
  } else {
18490
- color = themeApi.getColorPickerColor(bgColor === null || bgColor === undefined ? undefined : bgColor.color, false);
18425
+ color = themeApi.getColorPickerColor(bgColor === null || bgColor === void 0 ? void 0 : bgColor.color, false);
18491
18426
  }
18492
18427
  return color;
18493
18428
  }
@@ -18512,7 +18447,7 @@ function getStyles(_ref3) {
18512
18447
  } = _ref3;
18513
18448
  const overrides = getOverridesAsObject(components);
18514
18449
  const getListboxStyle = (path, prop) => themeApi.getStyle('object.listBox', path, prop);
18515
- const getColorPickerColor = c => (c === null || c === undefined ? undefined : c.index) > 0 || c !== null && c !== undefined && c.color ? themeApi.getColorPickerColor(c, false) : undefined;
18450
+ const getColorPickerColor = c => (c === null || c === void 0 ? void 0 : c.index) > 0 || c !== null && c !== void 0 && c.color ? themeApi.getColorPickerColor(c, false) : undefined;
18516
18451
  const selections = getSelectionColors({
18517
18452
  getColorPickerColor,
18518
18453
  theme,
@@ -18521,34 +18456,34 @@ function getStyles(_ref3) {
18521
18456
  checkboxes
18522
18457
  });
18523
18458
  const themeOverrides = overrides.theme || {};
18524
- const headerColor = getColorPickerColor((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade === undefined ? undefined : _themeOverrides$heade.fontColor) || getListboxStyle('title.main', 'color');
18459
+ const headerColor = getColorPickerColor((_themeOverrides$heade = themeOverrides.header) === null || _themeOverrides$heade === void 0 ? void 0 : _themeOverrides$heade.fontColor) || getListboxStyle('title.main', 'color');
18525
18460
  const bgComponentColor = getBackgroundColor({
18526
18461
  themeApi,
18527
18462
  themeOverrides
18528
18463
  });
18529
- const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !== undefined && _themeOverrides$backg.image ? resolveBgImage({
18464
+ const bgImage = (_themeOverrides$backg = themeOverrides.background) !== null && _themeOverrides$backg !== void 0 && _themeOverrides$backg.image ? resolveBgImage({
18530
18465
  bgImage: themeOverrides.background.image
18531
18466
  }, app) : undefined;
18532
18467
  const bgColor = bgComponentColor || getListboxStyle('', 'backgroundColor') || theme.palette.background.default;
18533
18468
  const searchBgColor = getSearchBGColor(bgColor, getListboxStyle);
18534
18469
  const searchColor = getSearchColor(getListboxStyle);
18535
- const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 === undefined ? undefined : _themeOverrides$heade2.fontStyle) || {};
18536
- const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte === undefined ? undefined : _themeOverrides$conte.fontStyle) || {};
18470
+ const headerFontStyle = ((_themeOverrides$heade2 = themeOverrides.header) === null || _themeOverrides$heade2 === void 0 ? void 0 : _themeOverrides$heade2.fontStyle) || {};
18471
+ const contentFontStyle = ((_themeOverrides$conte = themeOverrides.content) === null || _themeOverrides$conte === void 0 ? void 0 : _themeOverrides$conte.fontStyle) || {};
18537
18472
 
18538
18473
  // Ensure we only return falseValue when the component is used, and thus has a false value.
18539
18474
  const getWithFallback = (value, trueValue, falseValue) => value === true && trueValue || value === false && falseValue || undefined;
18540
18475
  return {
18541
18476
  background: {
18542
18477
  backgroundColor: bgColor,
18543
- backgroundImage: bgImage !== null && bgImage !== undefined && bgImage.url && !(bgImage !== null && bgImage !== undefined && bgImage.url.startsWith('url(')) ? "url('".concat(bgImage.url, "')") : undefined,
18478
+ backgroundImage: bgImage !== null && bgImage !== void 0 && bgImage.url && !(bgImage !== null && bgImage !== void 0 && bgImage.url.startsWith('url(')) ? "url('".concat(bgImage.url, "')") : undefined,
18544
18479
  backgroundRepeat: 'no-repeat',
18545
- backgroundSize: bgImage === null || bgImage === undefined ? undefined : bgImage.size,
18546
- backgroundPosition: bgImage === null || bgImage === undefined ? undefined : bgImage.pos
18480
+ backgroundSize: bgImage === null || bgImage === void 0 ? void 0 : bgImage.size,
18481
+ backgroundPosition: bgImage === null || bgImage === void 0 ? void 0 : bgImage.pos
18547
18482
  },
18548
18483
  header: {
18549
18484
  color: headerColor,
18550
- fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 === undefined ? undefined : _themeOverrides$heade3.fontSize) || getListboxStyle('title.main', 'fontSize'),
18551
- fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 === undefined ? undefined : _themeOverrides$heade4.fontFamily) || getListboxStyle('title.main', 'fontFamily'),
18485
+ fontSize: ((_themeOverrides$heade3 = themeOverrides.header) === null || _themeOverrides$heade3 === void 0 ? void 0 : _themeOverrides$heade3.fontSize) || getListboxStyle('title.main', 'fontSize'),
18486
+ fontFamily: ((_themeOverrides$heade4 = themeOverrides.header) === null || _themeOverrides$heade4 === void 0 ? void 0 : _themeOverrides$heade4.fontFamily) || getListboxStyle('title.main', 'fontFamily'),
18552
18487
  fontWeight: getWithFallback(headerFontStyle.bold, 'bold', 'normal') || getListboxStyle('title.main', 'fontWeight') || 'bold',
18553
18488
  textDecoration: headerFontStyle.underline ? 'underline' : 'initial',
18554
18489
  fontStyle: getWithFallback(headerFontStyle.italic, 'italic', 'normal') || getListboxStyle('title.main', 'fontStyle') || 'initial'
@@ -18556,8 +18491,8 @@ function getStyles(_ref3) {
18556
18491
  content: {
18557
18492
  backgroundColor: checkboxes ? undefined : selections.possible,
18558
18493
  color: selections.possibleContrast || getListboxStyle('content', 'color'),
18559
- fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 === undefined ? undefined : _themeOverrides$conte2.fontSize) || getListboxStyle('content', 'fontSize'),
18560
- fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 === undefined ? undefined : _themeOverrides$conte3.fontFamily) || getListboxStyle('content', 'fontFamily'),
18494
+ fontSize: ((_themeOverrides$conte2 = themeOverrides.content) === null || _themeOverrides$conte2 === void 0 ? void 0 : _themeOverrides$conte2.fontSize) || getListboxStyle('content', 'fontSize'),
18495
+ fontFamily: ((_themeOverrides$conte3 = themeOverrides.content) === null || _themeOverrides$conte3 === void 0 ? void 0 : _themeOverrides$conte3.fontFamily) || getListboxStyle('content', 'fontFamily'),
18561
18496
  fontWeight: getWithFallback(contentFontStyle.bold, 'bold', 'normal') || getListboxStyle('content', 'fontWeight') || 'normal',
18562
18497
  textDecoration: contentFontStyle.underline ? 'underline' : 'initial',
18563
18498
  fontStyle: getWithFallback(contentFontStyle.italic, 'italic', 'normal') || getListboxStyle('content', 'fontStyle') || 'initial'
@@ -18601,7 +18536,7 @@ function ListBoxPopover(_ref) {
18601
18536
  }],
18602
18537
  direction = 'ltr'
18603
18538
  } = _ref;
18604
- const isMasterDim = Boolean(fieldName === null || fieldName === undefined ? undefined : fieldName.qLibraryId);
18539
+ const isMasterDim = Boolean(fieldName === null || fieldName === void 0 ? void 0 : fieldName.qLibraryId);
18605
18540
  const open = show && Boolean(alignTo.current);
18606
18541
  const [listCount, setListCount] = useState$1(0);
18607
18542
  const theme = useTheme$1();
@@ -18772,7 +18707,7 @@ function ListBoxPopover(_ref) {
18772
18707
  innerTabStops: true,
18773
18708
  focusSelection: keyboard.focusSelection
18774
18709
  },
18775
- autoFocus: autoFocus !== null && autoFocus !== undefined ? autoFocus : true,
18710
+ autoFocus: autoFocus !== null && autoFocus !== void 0 ? autoFocus : true,
18776
18711
  direction: direction
18777
18712
  })), /*#__PURE__*/React__default.createElement(ListBox, {
18778
18713
  model: model,
@@ -19283,7 +19218,7 @@ function getItems(layout) {
19283
19218
  var _selection$qDimension;
19284
19219
  currentField = {
19285
19220
  name,
19286
- label: ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension === undefined || (_selection$qDimension = _selection$qDimension.find(element => element.qLabel)) === null || _selection$qDimension === undefined ? undefined : _selection$qDimension.qLabel) || selection.qReadableName || name,
19221
+ label: ((_selection$qDimension = selection.qDimensionReferences) === null || _selection$qDimension === void 0 || (_selection$qDimension = _selection$qDimension.find(element => element.qLabel)) === null || _selection$qDimension === void 0 ? void 0 : _selection$qDimension.qLabel) || selection.qReadableName || name,
19287
19222
  states: [],
19288
19223
  selections: []
19289
19224
  };
@@ -19322,7 +19257,7 @@ function SelectedFields(_ref) {
19322
19257
  const {
19323
19258
  model
19324
19259
  } = modalObjectStore.get(app.id) || {};
19325
- return (model === null || model === undefined ? undefined : model.genericType) === 'njsListbox';
19260
+ return (model === null || model === void 0 ? void 0 : model.genericType) === 'njsListbox';
19326
19261
  };
19327
19262
  useEffect$1(() => {
19328
19263
  if (!containerRect) return;
@@ -20007,7 +19942,7 @@ function getListboxContainerKeyboardNavigation(_ref) {
20007
19942
  }
20008
19943
  };
20009
19944
  const focusOnHoverDisabled = () => {
20010
- const selectNotAllowed = (constraints === null || constraints === undefined ? undefined : constraints.select) || (constraints === null || constraints === undefined ? undefined : constraints.active);
19945
+ const selectNotAllowed = (constraints === null || constraints === void 0 ? void 0 : constraints.select) || (constraints === null || constraints === void 0 ? void 0 : constraints.active);
20011
19946
  const appInModal = isModal();
20012
19947
  return selectNotAllowed || appInModal;
20013
19948
  };
@@ -20093,7 +20028,7 @@ function isDirectQueryEnabled(_ref) {
20093
20028
  let {
20094
20029
  appLayout
20095
20030
  } = _ref;
20096
- const isDQ = !!(appLayout !== null && appLayout !== undefined && appLayout.qIsDirectQueryMode);
20031
+ const isDQ = !!(appLayout !== null && appLayout !== void 0 && appLayout.qIsDirectQueryMode);
20097
20032
  return isDQ;
20098
20033
  }
20099
20034
 
@@ -20135,10 +20070,10 @@ function showToolbarDetached(_ref) {
20135
20070
  const containerWidth = containerRect.width;
20136
20071
  const preventTruncation = 2;
20137
20072
  const padding = paddingLeft + paddingRight;
20138
- const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef === undefined || (_titleRef$current = titleRef.current) === null || _titleRef$current === undefined ? undefined : _titleRef$current.clientWidth) !== null && _titleRef$current$cli !== undefined ? _titleRef$current$cli : 0) + iconsWidth + padding + preventTruncation;
20073
+ const contentWidth = ((_titleRef$current$cli = titleRef === null || titleRef === void 0 || (_titleRef$current = titleRef.current) === null || _titleRef$current === void 0 ? void 0 : _titleRef$current.clientWidth) !== null && _titleRef$current$cli !== void 0 ? _titleRef$current$cli : 0) + iconsWidth + padding + preventTruncation;
20139
20074
  const actionToolbarWidth = 128;
20140
20075
  const notSufficientSpace = containerWidth < contentWidth + actionToolbarWidth;
20141
- const isTruncated = (titleRef === null || titleRef === undefined || (_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === undefined ? undefined : _titleRef$current2.scrollWidth) > (titleRef === null || titleRef === undefined || (_titleRef$current3 = titleRef.current) === null || _titleRef$current3 === undefined ? undefined : _titleRef$current3.offsetWidth);
20076
+ const isTruncated = (titleRef === null || titleRef === void 0 || (_titleRef$current2 = titleRef.current) === null || _titleRef$current2 === void 0 ? void 0 : _titleRef$current2.scrollWidth) > (titleRef === null || titleRef === void 0 || (_titleRef$current3 = titleRef.current) === null || _titleRef$current3 === void 0 ? void 0 : _titleRef$current3.offsetWidth);
20142
20077
  const isDetached = !!(notSufficientSpace || isTruncated);
20143
20078
  return isDetached;
20144
20079
  }
@@ -20181,10 +20116,10 @@ function getListboxActionProps(_ref) {
20181
20116
  show: showToolbar,
20182
20117
  api: selections,
20183
20118
  onConfirm: () => {
20184
- keyboard === null || keyboard === undefined || keyboard.focus();
20119
+ keyboard === null || keyboard === void 0 || keyboard.focus();
20185
20120
  },
20186
20121
  onCancel: () => {
20187
- keyboard === null || keyboard === undefined || keyboard.focus();
20122
+ keyboard === null || keyboard === void 0 || keyboard.focus();
20188
20123
  }
20189
20124
  }
20190
20125
  };
@@ -20311,7 +20246,6 @@ const reload = props => _objectSpread2(_objectSpread2({}, props), {}, {
20311
20246
  var ReloadIcon = props => SvgIcon$1(reload(props));
20312
20247
 
20313
20248
  const dimensionTypes = {
20314
- single: 'N',
20315
20249
  drillDown: 'H',
20316
20250
  cyclic: 'C'
20317
20251
  };
@@ -20498,19 +20432,19 @@ function ListBoxHeader(_ref2) {
20498
20432
  disablePortal
20499
20433
  } = _ref2;
20500
20434
  const [isToolbarDetached, setIsToolbarDetached] = useState$1(showDetachedToolbarOnly);
20501
- const [isLocked, setLocked] = useState$1(layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qLocked);
20435
+ const [isLocked, setLocked] = useState$1(layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qLocked);
20502
20436
  const [settingLockedState, setSettingLockedState] = useState$1(false);
20503
20437
  useEffect$1(() => {
20504
20438
  var _layout$qListObject2;
20505
- setLocked(layout === null || layout === undefined || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === undefined || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === undefined ? undefined : _layout$qListObject2.qLocked);
20506
- }, [layout === null || layout === undefined || (_layout$qListObject3 = layout.qListObject) === null || _layout$qListObject3 === undefined || (_layout$qListObject3 = _layout$qListObject3.qDimensionInfo) === null || _layout$qListObject3 === undefined ? undefined : _layout$qListObject3.qLocked]);
20439
+ setLocked(layout === null || layout === void 0 || (_layout$qListObject2 = layout.qListObject) === null || _layout$qListObject2 === void 0 || (_layout$qListObject2 = _layout$qListObject2.qDimensionInfo) === null || _layout$qListObject2 === void 0 ? void 0 : _layout$qListObject2.qLocked);
20440
+ }, [layout === null || layout === void 0 || (_layout$qListObject3 = layout.qListObject) === null || _layout$qListObject3 === void 0 || (_layout$qListObject3 = _layout$qListObject3.qDimensionInfo) === null || _layout$qListObject3 === void 0 ? void 0 : _layout$qListObject3.qLocked]);
20507
20441
  const titleRef = useRef$1(null);
20508
20442
  const iconData = iconUtils.createDimensionIconData({
20509
- dimInfo: layout === null || layout === undefined || (_layout$qListObject4 = layout.qListObject) === null || _layout$qListObject4 === undefined ? undefined : _layout$qListObject4.qDimensionInfo,
20443
+ dimInfo: layout === null || layout === void 0 || (_layout$qListObject4 = layout.qListObject) === null || _layout$qListObject4 === void 0 ? void 0 : _layout$qListObject4.qDimensionInfo,
20510
20444
  app,
20511
20445
  selections,
20512
20446
  isPopover,
20513
- active: !(constraints !== null && constraints !== undefined && constraints.active),
20447
+ active: !(constraints !== null && constraints !== void 0 && constraints.active),
20514
20448
  keyboard
20515
20449
  });
20516
20450
  const showUnlock = showLock && isLocked;
@@ -20545,7 +20479,7 @@ function ListBoxHeader(_ref2) {
20545
20479
  enabled: () => !settingLockedState && !selectionState.selectDisabled() && hasSelections(layout),
20546
20480
  action: toggleLock
20547
20481
  }];
20548
- const searchIconComp = constraints !== null && constraints !== undefined && constraints.active ? /*#__PURE__*/React__default.createElement(SearchIcon, {
20482
+ const searchIconComp = constraints !== null && constraints !== void 0 && constraints.active ? /*#__PURE__*/React__default.createElement(SearchIcon, {
20549
20483
  title: translator.get('Listbox.Search'),
20550
20484
  size: "large",
20551
20485
  style: _objectSpread2(_objectSpread2({}, iconStyle), {}, {
@@ -20579,7 +20513,6 @@ function ListBoxHeader(_ref2) {
20579
20513
  isDetached: isPopover ? false : isToolbarDetached,
20580
20514
  showToolbar,
20581
20515
  containerRef,
20582
- isPopover,
20583
20516
  isLocked,
20584
20517
  extraItems,
20585
20518
  listboxSelectionToolbarItems,
@@ -20695,7 +20628,7 @@ const isModal = _ref2 => {
20695
20628
  app,
20696
20629
  appSelections
20697
20630
  } = _ref2;
20698
- return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 === undefined ? undefined : _app$isInModalSelecti2.call(app)) !== null && _app$isInModalSelecti !== undefined ? _app$isInModalSelecti : appSelections.isInModal();
20631
+ return (_app$isInModalSelecti = (_app$isInModalSelecti2 = app.isInModalSelection) === null || _app$isInModalSelecti2 === void 0 ? void 0 : _app$isInModalSelecti2.call(app)) !== null && _app$isInModalSelecti !== void 0 ? _app$isInModalSelecti : appSelections.isInModal();
20699
20632
  };
20700
20633
  function ListBoxInline(_ref3) {
20701
20634
  var _layout$qListObject, _layout$title, _layoutOptions$dense, _containerRef$current;
@@ -20745,7 +20678,7 @@ function ListBoxInline(_ref3) {
20745
20678
  checkboxes
20746
20679
  });
20747
20680
  const isDirectQuery = isDirectQueryEnabled({
20748
- appLayout: app === null || app === undefined ? undefined : app.layout
20681
+ appLayout: app === null || app === void 0 ? void 0 : app.layout
20749
20682
  });
20750
20683
  const containerRef = useRef$1();
20751
20684
  const searchInputRef = useRef$1();
@@ -20775,7 +20708,7 @@ function ListBoxInline(_ref3) {
20775
20708
  app,
20776
20709
  appSelections
20777
20710
  }), [app, appSelections]);
20778
- const isInvalid = layout === null || layout === undefined ? undefined : layout.qListObject.qDimensionInfo.qError;
20711
+ const isInvalid = layout === null || layout === void 0 ? void 0 : layout.qListObject.qDimensionInfo.qError;
20779
20712
  const errorText = isInvalid && constraints.active ? 'Visualization.Invalid.Dimension' : 'Visualization.Incomplete';
20780
20713
  const {
20781
20714
  handleKeyDown,
@@ -20786,10 +20719,7 @@ function ListBoxInline(_ref3) {
20786
20719
  keyboard,
20787
20720
  hovering,
20788
20721
  updateKeyScroll,
20789
- containerRef,
20790
20722
  currentScrollIndex,
20791
- app,
20792
- appSelections,
20793
20723
  constraints,
20794
20724
  isModal: isModalMode,
20795
20725
  selections
@@ -20840,10 +20770,10 @@ function ListBoxInline(_ref3) {
20840
20770
  searchEnabled,
20841
20771
  autoConfirm = false,
20842
20772
  layoutOptions = {}
20843
- } = layout !== null && layout !== undefined ? layout : {};
20844
- const isLocked = layout === null || layout === undefined || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === undefined || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === undefined ? undefined : _layout$qListObject.qLocked;
20773
+ } = layout !== null && layout !== void 0 ? layout : {};
20774
+ const isLocked = layout === null || layout === void 0 || (_layout$qListObject = layout.qListObject) === null || _layout$qListObject === void 0 || (_layout$qListObject = _layout$qListObject.qDimensionInfo) === null || _layout$qListObject === void 0 ? void 0 : _layout$qListObject.qLocked;
20845
20775
  const showSearchIcon = searchEnabled !== false && search === 'toggle' && !isLocked;
20846
- const canShowTitle = (layout === null || layout === undefined || (_layout$title = layout.title) === null || _layout$title === undefined ? undefined : _layout$title.length) && (layout === null || layout === undefined ? undefined : layout.showTitle) !== false;
20776
+ const canShowTitle = (layout === null || layout === void 0 || (_layout$title = layout.title) === null || _layout$title === void 0 ? void 0 : _layout$title.length) && (layout === null || layout === void 0 ? void 0 : layout.showTitle) !== false;
20847
20777
  const showDetachedToolbarOnly = toolbar && !canShowTitle && !isPopover;
20848
20778
  const showAttachedToolbar = toolbar && canShowTitle || isPopover;
20849
20779
  const isRtl = direction === 'rtl';
@@ -20852,7 +20782,7 @@ function ListBoxInline(_ref3) {
20852
20782
  }
20853
20783
  const showSearchToggle = search === 'toggle' && showSearch;
20854
20784
  const searchVisible = search === true || showSearchToggle && searchEnabled !== false;
20855
- const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !== undefined ? _layoutOptions$dense : false;
20785
+ const dense = (_layoutOptions$dense = layoutOptions.dense) !== null && _layoutOptions$dense !== void 0 ? _layoutOptions$dense : false;
20856
20786
  const handleShowSearch = () => {
20857
20787
  const newValue = !showSearch;
20858
20788
  setShowSearch(newValue);
@@ -20867,15 +20797,15 @@ function ListBoxInline(_ref3) {
20867
20797
  const shouldAutoFocus = searchVisible && (search === 'toggle' || focusSearch);
20868
20798
 
20869
20799
  // Add a container padding for grid mode to harmonize with the grid item margins (should sum to 8px).
20870
- const isGridMode = (layoutOptions === null || layoutOptions === undefined ? undefined : layoutOptions.dataLayout) === 'grid';
20800
+ const isGridMode = (layoutOptions === null || layoutOptions === void 0 ? void 0 : layoutOptions.dataLayout) === 'grid';
20871
20801
  const containerPadding = getContainerPadding({
20872
20802
  isGridMode,
20873
20803
  dense,
20874
- height: (_containerRef$current = containerRef.current) === null || _containerRef$current === undefined ? undefined : _containerRef$current.clientHeight,
20804
+ height: (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.clientHeight,
20875
20805
  layoutOrder: layoutOptions.layoutOrder
20876
20806
  });
20877
20807
  if (isInvalid) {
20878
- renderedCallback === null || renderedCallback === undefined || renderedCallback();
20808
+ renderedCallback === null || renderedCallback === void 0 || renderedCallback();
20879
20809
  }
20880
20810
  const listBoxMinHeight = showAttachedToolbar ? DENSE_ROW_HEIGHT + SCROLL_BAR_WIDTH : 0;
20881
20811
  const listBoxHeader = /*#__PURE__*/React__default.createElement(ListBoxHeader, {
@@ -21245,7 +21175,7 @@ function useOnTheFlyModel(_ref) {
21245
21175
  const [isFetching, setIsFetching] = useState$1(true);
21246
21176
  const [model, setModel] = useState$1();
21247
21177
  const [fallbackTitle, setFallbackTitle] = useState$1();
21248
- const title = (_options$title = options.title) !== null && _options$title !== undefined ? _options$title : fallbackTitle;
21178
+ const title = (_options$title = options.title) !== null && _options$title !== void 0 ? _options$title : fallbackTitle;
21249
21179
  let {
21250
21180
  histogram = false,
21251
21181
  frequencyMode = 'N'
@@ -21335,7 +21265,7 @@ function useOnTheFlyModel(_ref) {
21335
21265
  fieldName = fieldIdentifier;
21336
21266
  }
21337
21267
  if (frequencyMode !== 'P' && histogram) {
21338
- if (fieldDef !== null && fieldDef !== undefined && fieldDef.multiFieldDim) {
21268
+ if (fieldDef !== null && fieldDef !== void 0 && fieldDef.multiFieldDim) {
21339
21269
  listdef$1.frequencyMax = 'fetch';
21340
21270
  // maybe for all lib dimension to handle if it properties change
21341
21271
  } else {
@@ -21810,7 +21740,7 @@ function filterpaneHandler(_ref) {
21810
21740
  }
21811
21741
  } else {
21812
21742
  var _dimension$qDef$qFiel, _dimension$qDef$qFiel2;
21813
- listboxProps.title = dimension.qDef.title || ((_dimension$qDef$qFiel = dimension.qDef.qFieldLabels) === null || _dimension$qDef$qFiel === undefined ? undefined : _dimension$qDef$qFiel[0]) || ((_dimension$qDef$qFiel2 = dimension.qDef.qFieldDefs) === null || _dimension$qDef$qFiel2 === undefined ? undefined : _dimension$qDef$qFiel2[0]);
21743
+ listboxProps.title = dimension.qDef.title || ((_dimension$qDef$qFiel = dimension.qDef.qFieldLabels) === null || _dimension$qDef$qFiel === void 0 ? void 0 : _dimension$qDef$qFiel[0]) || ((_dimension$qDef$qFiel2 = dimension.qDef.qFieldDefs) === null || _dimension$qDef$qFiel2 === void 0 ? void 0 : _dimension$qDef$qFiel2[0]);
21814
21744
  }
21815
21745
  }
21816
21746
  // def.dimensions.added(dimension, properties, listboxProps);
@@ -23953,7 +23883,7 @@ const Cell = forwardRef((_ref6, ref) => {
23953
23883
  setModel,
23954
23884
  getImperativeHandle() {
23955
23885
  var _state$sn;
23956
- if ((_state$sn = state.sn) !== null && _state$sn !== undefined && _state$sn.component && typeof state.sn.component.getImperativeHandle === 'function') {
23886
+ if ((_state$sn = state.sn) !== null && _state$sn !== void 0 && _state$sn.component && typeof state.sn.component.getImperativeHandle === 'function') {
23957
23887
  return state.sn.component.getImperativeHandle();
23958
23888
  }
23959
23889
  return {};
@@ -24191,7 +24121,7 @@ function validatePlugins(plugins) {
24191
24121
 
24192
24122
  const canSetProperties = layout => {
24193
24123
  var _layout$qMeta;
24194
- return !!(layout && !layout.qHasSoftPatches && !layout.qExtendsId && (((_layout$qMeta = layout.qMeta) === null || _layout$qMeta === undefined ? undefined : _layout$qMeta.privileges) || []).indexOf('update') > -1);
24124
+ return !!(layout && !layout.qHasSoftPatches && !layout.qExtendsId && (((_layout$qMeta = layout.qMeta) === null || _layout$qMeta === void 0 ? void 0 : _layout$qMeta.privileges) || []).indexOf('update') > -1);
24195
24125
  };
24196
24126
 
24197
24127
  /* eslint-disable no-underscore-dangle */
@@ -26538,7 +26468,7 @@ function viz() {
26538
26468
  onRenderResolve = resolve;
26539
26469
  });
26540
26470
  const createOnInitialRender = override => () => {
26541
- override === null || override === undefined || override(); // from options.onInitialRender
26471
+ override === null || override === void 0 || override(); // from options.onInitialRender
26542
26472
  onRenderResolve(); // internal promise in viz to wait for render
26543
26473
  onRender(); // from RenderConfig
26544
26474
  };
@@ -27175,7 +27105,7 @@ const Sheet = forwardRef((_ref, ref) => {
27175
27105
  const [bgColor, setBgColor] = useState$1(undefined);
27176
27106
  const [bgImage, setBgImage] = useState$1(undefined);
27177
27107
  const [deepHash, setDeepHash] = useState$1('');
27178
- navigation === null || navigation === undefined || (_navigation$setCurren = navigation.setCurrentSheetId) === null || _navigation$setCurren === undefined || _navigation$setCurren.call(navigation, model.id);
27108
+ navigation === null || navigation === void 0 || (_navigation$setCurren = navigation.setCurrentSheetId) === null || _navigation$setCurren === void 0 || _navigation$setCurren.call(navigation, model.id);
27179
27109
  /// For each object
27180
27110
  useEffect$1(() => {
27181
27111
  if (layout) {
@@ -27241,7 +27171,7 @@ const Sheet = forwardRef((_ref, ref) => {
27241
27171
  }, [model]);
27242
27172
  const cellRenderers = useMemo$1(() => cells ? cells.map(c => getCellRenderer(c, halo, initialSnOptions, initialSnPlugins, initialError, c.mounted, navigation)) : [], [cells]);
27243
27173
  useEffect$1(() => {
27244
- const bgComp = layout !== null && layout !== undefined && layout.components ? layout.components.find(comp => comp.key === 'general') : null;
27174
+ const bgComp = layout !== null && layout !== void 0 && layout.components ? layout.components.find(comp => comp.key === 'general') : null;
27245
27175
  setBgColor(resolveBgColor(bgComp, halo.public.theme));
27246
27176
  setBgImage(resolveBgImage(bgComp, halo.app));
27247
27177
  }, [layout, halo.public.theme, halo.app, themeName]);
@@ -27479,9 +27409,9 @@ function createNavigationApi(halo, store, model) {
27479
27409
  const {
27480
27410
  galaxy
27481
27411
  } = halo.public;
27482
- if ((_galaxy$anything = galaxy.anything) !== null && _galaxy$anything !== undefined && (_galaxy$anything = _galaxy$anything.sense) !== null && _galaxy$anything !== undefined && _galaxy$anything.navigation) {
27412
+ if ((_galaxy$anything = galaxy.anything) !== null && _galaxy$anything !== void 0 && (_galaxy$anything = _galaxy$anything.sense) !== null && _galaxy$anything !== void 0 && _galaxy$anything.navigation) {
27483
27413
  var _galaxy$anything2;
27484
- return (_galaxy$anything2 = galaxy.anything) === null || _galaxy$anything2 === undefined || (_galaxy$anything2 = _galaxy$anything2.sense) === null || _galaxy$anything2 === undefined ? undefined : _galaxy$anything2.navigation;
27414
+ return (_galaxy$anything2 = galaxy.anything) === null || _galaxy$anything2 === void 0 || (_galaxy$anything2 = _galaxy$anything2.sense) === null || _galaxy$anything2 === void 0 ? void 0 : _galaxy$anything2.navigation;
27485
27415
  }
27486
27416
  const State = {
27487
27417
  model
@@ -27547,7 +27477,7 @@ function createNavigationApi(halo, store, model) {
27547
27477
  return;
27548
27478
  }
27549
27479
  modelStore.set(key, newModel);
27550
- (_State$sheetRef = State.sheetRef) === null || _State$sheetRef === undefined || (_State$sheetRef = _State$sheetRef.current) === null || _State$sheetRef === undefined || (_State$sheetRef$setMo = _State$sheetRef.setModel) === null || _State$sheetRef$setMo === undefined || _State$sheetRef$setMo.call(_State$sheetRef, newModel);
27480
+ (_State$sheetRef = State.sheetRef) === null || _State$sheetRef === void 0 || (_State$sheetRef = _State$sheetRef.current) === null || _State$sheetRef === void 0 || (_State$sheetRef$setMo = _State$sheetRef.setModel) === null || _State$sheetRef$setMo === void 0 || _State$sheetRef$setMo.call(_State$sheetRef, newModel);
27551
27481
  State.model = newModel;
27552
27482
  navigationAPI.emit('sheetChanged');
27553
27483
  },
@@ -27760,6 +27690,7 @@ function requireRe() {
27760
27690
  const re = exports.re = [];
27761
27691
  const safeRe = exports.safeRe = [];
27762
27692
  const src = exports.src = [];
27693
+ const safeSrc = exports.safeSrc = [];
27763
27694
  const t = exports.t = {};
27764
27695
  let R = 0;
27765
27696
  const LETTERDASHNUMBER = '[a-zA-Z0-9-]';
@@ -27783,6 +27714,7 @@ function requireRe() {
27783
27714
  debug(name, index, value);
27784
27715
  t[name] = index;
27785
27716
  src[index] = value;
27717
+ safeSrc[index] = safe;
27786
27718
  re[index] = new RegExp(value, isGlobal ? 'g' : undefined);
27787
27719
  safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined);
27788
27720
  };
@@ -27945,6 +27877,7 @@ function requireSemver() {
27945
27877
  } = requireConstants();
27946
27878
  const {
27947
27879
  safeRe: re,
27880
+ safeSrc: src,
27948
27881
  t
27949
27882
  } = requireRe();
27950
27883
  const parseOptions = requireParseOptions();
@@ -28095,6 +28028,19 @@ function requireSemver() {
28095
28028
  // preminor will bump the version up to the next minor release, and immediately
28096
28029
  // down to pre-release. premajor and prepatch work the same way.
28097
28030
  inc(release, identifier, identifierBase) {
28031
+ if (release.startsWith('pre')) {
28032
+ if (!identifier && identifierBase === false) {
28033
+ throw new Error('invalid increment argument: identifier is empty');
28034
+ }
28035
+ // Avoid an invalid semver results
28036
+ if (identifier) {
28037
+ const r = new RegExp("^".concat(this.options.loose ? src[t.PRERELEASELOOSE] : src[t.PRERELEASE], "$"));
28038
+ const match = "-".concat(identifier).match(r);
28039
+ if (!match || match[1] !== identifier) {
28040
+ throw new Error("invalid identifier: ".concat(identifier));
28041
+ }
28042
+ }
28043
+ }
28098
28044
  switch (release) {
28099
28045
  case 'premajor':
28100
28046
  this.prerelease.length = 0;
@@ -28125,6 +28071,12 @@ function requireSemver() {
28125
28071
  }
28126
28072
  this.inc('pre', identifier, identifierBase);
28127
28073
  break;
28074
+ case 'release':
28075
+ if (this.prerelease.length === 0) {
28076
+ throw new Error("version ".concat(this.raw, " is not a prerelease"));
28077
+ }
28078
+ this.prerelease.length = 0;
28079
+ break;
28128
28080
  case 'major':
28129
28081
  // If this is a pre-major version, bump up to the same major version.
28130
28082
  // Otherwise increment major.
@@ -28163,9 +28115,6 @@ function requireSemver() {
28163
28115
  case 'pre':
28164
28116
  {
28165
28117
  const base = Number(identifierBase) ? 1 : 0;
28166
- if (!identifier && identifierBase === false) {
28167
- throw new Error('invalid increment argument: identifier is empty');
28168
- }
28169
28118
  if (this.prerelease.length === 0) {
28170
28119
  this.prerelease = [base];
28171
28120
  } else {
@@ -29713,7 +29662,7 @@ function nuked() {
29713
29662
  var _fieldSels$_ref;
29714
29663
  const onSelectionActivated = () => fieldSels.emit('selectionActivated');
29715
29664
  const onSelectionDeactivated = () => fieldSels.emit('selectionDeactivated');
29716
- if ((_fieldSels$_ref = fieldSels._ref) !== null && _fieldSels$_ref !== undefined && _fieldSels$_ref.current) {
29665
+ if ((_fieldSels$_ref = fieldSels._ref) !== null && _fieldSels$_ref !== void 0 && _fieldSels$_ref.current) {
29717
29666
  const options = getOptions$1(_objectSpread2({
29718
29667
  onSelectionActivated,
29719
29668
  onSelectionDeactivated