@splunk/visualizations-shared 26.4.1 → 27.0.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.
Files changed (63) hide show
  1. package/.loki/reference/chrome_docker_SizeAwareWrapper_50_parent.png +0 -0
  2. package/.loki/reference/chrome_docker_SizeAwareWrapper_Fix_size_container.png +0 -0
  3. package/.loki/reference/chrome_docker_SizeAwareWrapper_Flex_layout_container.png +0 -0
  4. package/.loki/reference/chrome_docker_SizeAwareWrapper_Flex_layout_container_with_extra_wrapper.png +0 -0
  5. package/Downloader.js +164 -403
  6. package/Downloader.js.map +7 -1
  7. package/FileDownloader.js +121 -557
  8. package/FileDownloader.js.map +7 -1
  9. package/JSONSchemaUtils.js +58 -134
  10. package/JSONSchemaUtils.js.map +7 -1
  11. package/Message.js +105 -270
  12. package/Message.js.map +7 -1
  13. package/RemoteIcon.js +272 -736
  14. package/RemoteIcon.js.map +7 -1
  15. package/RemoteImage.js +190 -458
  16. package/RemoteImage.js.map +7 -1
  17. package/SanitizeProps.js +117 -238
  18. package/SanitizeProps.js.map +7 -1
  19. package/SizeAwareWrapper.js +108 -306
  20. package/SizeAwareWrapper.js.map +7 -1
  21. package/SizeAwareWrapperDeprecated.js +117 -326
  22. package/SizeAwareWrapperDeprecated.js.map +7 -1
  23. package/VisualizationDocPage.js +212 -461
  24. package/VisualizationDocPage.js.map +7 -1
  25. package/colorConstants.js +81 -132
  26. package/colorConstants.js.map +7 -1
  27. package/colorUtils.js +47 -134
  28. package/colorUtils.js.map +7 -1
  29. package/configUtils.js +28 -112
  30. package/configUtils.js.map +7 -1
  31. package/console.js +45 -183
  32. package/console.js.map +7 -1
  33. package/dataSourceUtils.js +45 -140
  34. package/dataSourceUtils.js.map +7 -1
  35. package/domUtils.js +58 -122
  36. package/domUtils.js.map +7 -1
  37. package/hocUtils.js +45 -122
  38. package/hocUtils.js.map +7 -1
  39. package/i18n.js +168 -323
  40. package/i18n.js.map +7 -1
  41. package/iconUtils.js +47 -178
  42. package/iconUtils.js.map +7 -1
  43. package/mapUtils.js +45 -122
  44. package/mapUtils.js.map +7 -1
  45. package/numberUtils.js +101 -275
  46. package/numberUtils.js.map +7 -1
  47. package/package.json +18 -22
  48. package/previewVizMessage.js +28 -108
  49. package/previewVizMessage.js.map +7 -1
  50. package/propUtils.js +88 -212
  51. package/propUtils.js.map +7 -1
  52. package/schemaUtils.js +58 -185
  53. package/schemaUtils.js.map +7 -1
  54. package/simpleXMLOptions.js +142 -225
  55. package/simpleXMLOptions.js.map +7 -1
  56. package/style.js +65 -168
  57. package/style.js.map +7 -1
  58. package/testHelper.js +247 -303
  59. package/testHelper.js.map +7 -1
  60. package/themeUtils.js +63 -142
  61. package/themeUtils.js.map +7 -1
  62. package/trellisUtils.js +108 -276
  63. package/trellisUtils.js.map +7 -1
@@ -1,220 +1,149 @@
1
- /*!
2
- * Copyright © 2024 Splunk Inc.
3
- * SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
4
- * in part without a valid written license from Splunk Inc. is PROHIBITED.
5
- */
6
- module.exports =
7
- /******/ (function(modules) { // webpackBootstrap
8
- /******/ // The module cache
9
- /******/ var installedModules = {};
10
- /******/
11
- /******/ // The require function
12
- /******/ function __webpack_require__(moduleId) {
13
- /******/
14
- /******/ // Check if module is in cache
15
- /******/ if(installedModules[moduleId]) {
16
- /******/ return installedModules[moduleId].exports;
17
- /******/ }
18
- /******/ // Create a new module (and put it into the cache)
19
- /******/ var module = installedModules[moduleId] = {
20
- /******/ i: moduleId,
21
- /******/ l: false,
22
- /******/ exports: {}
23
- /******/ };
24
- /******/
25
- /******/ // Execute the module function
26
- /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
27
- /******/
28
- /******/ // Flag the module as loaded
29
- /******/ module.l = true;
30
- /******/
31
- /******/ // Return the exports of the module
32
- /******/ return module.exports;
33
- /******/ }
34
- /******/
35
- /******/
36
- /******/ // expose the modules object (__webpack_modules__)
37
- /******/ __webpack_require__.m = modules;
38
- /******/
39
- /******/ // expose the module cache
40
- /******/ __webpack_require__.c = installedModules;
41
- /******/
42
- /******/ // define getter function for harmony exports
43
- /******/ __webpack_require__.d = function(exports, name, getter) {
44
- /******/ if(!__webpack_require__.o(exports, name)) {
45
- /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
46
- /******/ }
47
- /******/ };
48
- /******/
49
- /******/ // define __esModule on exports
50
- /******/ __webpack_require__.r = function(exports) {
51
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
52
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
53
- /******/ }
54
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
55
- /******/ };
56
- /******/
57
- /******/ // create a fake namespace object
58
- /******/ // mode & 1: value is a module id, require it
59
- /******/ // mode & 2: merge all properties of value into the ns
60
- /******/ // mode & 4: return value when already ns object
61
- /******/ // mode & 8|1: behave like require
62
- /******/ __webpack_require__.t = function(value, mode) {
63
- /******/ if(mode & 1) value = __webpack_require__(value);
64
- /******/ if(mode & 8) return value;
65
- /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
66
- /******/ var ns = Object.create(null);
67
- /******/ __webpack_require__.r(ns);
68
- /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
69
- /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
70
- /******/ return ns;
71
- /******/ };
72
- /******/
73
- /******/ // getDefaultExport function for compatibility with non-harmony modules
74
- /******/ __webpack_require__.n = function(module) {
75
- /******/ var getter = module && module.__esModule ?
76
- /******/ function getDefault() { return module['default']; } :
77
- /******/ function getModuleExports() { return module; };
78
- /******/ __webpack_require__.d(getter, 'a', getter);
79
- /******/ return getter;
80
- /******/ };
81
- /******/
82
- /******/ // Object.prototype.hasOwnProperty.call
83
- /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
84
- /******/
85
- /******/ // __webpack_public_path__
86
- /******/ __webpack_require__.p = "";
87
- /******/
88
- /******/
89
- /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 65);
91
- /******/ })
92
- /************************************************************************/
93
- /******/ ({
94
-
95
- /***/ 38:
96
- /***/ (function(module, exports) {
97
-
98
- module.exports = require("lodash/invert");
99
-
100
- /***/ }),
1
+ /* Copyright © 2020 Splunk Inc.
2
+ SPLUNK CONFIDENTIAL – Use or disclosure of this material in whole or
3
+ in part without a valid written license from Splunk Inc. is PROHIBITED. */
4
+ var __create = Object.create;
5
+ var __defProp = Object.defineProperty;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getProtoOf = Object.getPrototypeOf;
9
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __export = (target, all) => {
11
+ for (var name in all)
12
+ __defProp(target, name, { get: all[name], enumerable: true });
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
101
32
 
102
- /***/ 65:
103
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
33
+ // src/simpleXMLOptions.js
34
+ var simpleXMLOptions_exports = {};
35
+ __export(simpleXMLOptions_exports, {
36
+ getPropsForSimpleXMLOptions: () => getPropsForSimpleXMLOptions,
37
+ getSimpleXMLOptionsForProps: () => getSimpleXMLOptionsForProps,
38
+ replaceObjectKeysFromMap: () => replaceObjectKeysFromMap
39
+ });
40
+ module.exports = __toCommonJS(simpleXMLOptions_exports);
104
41
 
105
- "use strict";
106
- __webpack_require__.r(__webpack_exports__);
107
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "replaceObjectKeysFromMap", function() { return replaceObjectKeysFromMap; });
108
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getPropsForSimpleXMLOptions", function() { return getPropsForSimpleXMLOptions; });
109
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getSimpleXMLOptionsForProps", function() { return getSimpleXMLOptionsForProps; });
110
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38);
111
- /* harmony import */ var lodash_invert__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_invert__WEBPACK_IMPORTED_MODULE_0__);
42
+ // esm-externals:lodash/invert
43
+ var invert_exports = {};
44
+ __export(invert_exports, {
45
+ default: () => invert_default
46
+ });
47
+ var defaultImport = __toESM(require("lodash/invert"));
48
+ __reExport(invert_exports, require("lodash/invert"));
49
+ var invert_default = "default" in defaultImport ? defaultImport.default : defaultImport;
112
50
 
51
+ // src/simpleXMLOptions.js
113
52
  var simpleXMLOptionsToPropsMap = {
114
- 'annotation.categoryColors': 'annotationColor',
115
- 'axisLabelsX.axisVisibility': 'xAxisVisibility',
116
- 'axisLabelsY.axisVisibility': 'yAxisVisibility',
117
- 'axisLabelsX.integerUnits': 'roundXAxisLabelsToInteger',
118
- 'axisLabelsY.integerUnits': 'roundYAxisLabelsToInteger',
119
- 'axisLabelsY2.integerUnits': 'roundY2AxisLabelsToInteger',
120
- 'axisLabelsY2.axisVisibility': 'y2AxisVisibility',
121
- 'axisLabelsX.extendsAxisRange': 'xAxisExtendsAxisRange',
122
- 'axisLabelsY.extendsAxisRange': 'yAxisExtendsAxisRange',
123
- 'axisLabelsX.majorLabelStyle.rotation': 'xAxisMajorLabelRotation',
124
- 'axisLabelsX.majorLabelVisibility': 'xAxisMajorLabelVisibility',
125
- 'axisLabelsY.majorLabelVisibility': 'yAxisMajorLabelVisibility',
126
- 'axisLabelsY2.majorLabelVisibility': 'y2AxisMajorLabelVisibility',
127
- 'axisLabelsX.majorTickSize': 'xAxisMajorTickSize',
128
- 'axisLabelsY.majorTickSize': 'yAxisMajorTickSize',
129
- 'axisLabelsY2.majorTickSize': 'y2AxisMajorTickSize',
130
- 'axisLabelsX.minorTickSize': 'xAxisMinorTickSize',
131
- 'axisLabelsY.minorTickSize': 'yAxisMinorTickSize',
132
- 'axisLabelsY2.minorTickSize': 'y2AxisMinorTickSize',
133
- 'axisLabelsX.majorTickVisibility': 'xAxisMajorTickVisibility',
134
- 'axisLabelsY.majorTickVisibility': 'yAxisMajorTickVisibility',
135
- 'axisLabelsY2.majorTickVisibility': 'y2AxisMajorTickVisibility',
136
- 'axisLabelsX.majorUnit': 'xAxisMajorUnit',
137
- 'axisLabelsY.majorUnit': 'yAxisMajorUnit',
138
- 'axisLabelsY2.majorUnit': 'y2AxisMajorUnit',
139
- 'axisLabelsX.minorTickVisibility': 'xAxisMinorTickVisibility',
140
- 'axisLabelsY.minorTickVisibility': 'yAxisMinorTickVisibility',
141
- 'axisLabelsY2.minorTickVisibility': 'y2AxisMinorTickVisibility',
142
- 'axisLabelsX.maxLabelParts': 'xAxisMaxLabelParts',
143
- 'axisX.abbreviation': 'xAxisAbbreviation',
144
- 'axisY.abbreviation': 'yAxisAbbreviation',
145
- 'axisY2.abbreviation': 'y2AxisAbbreviation',
146
- 'axisX.includeZero': 'xAxisIncludeZero',
147
- 'axisY.includeZero': 'yAxisIncludeZero',
148
- 'axisY2.includeZero': 'y2AxisIncludeZero',
149
- 'axisX.maximumNumber': 'xAxisMax',
150
- 'axisY.maximumNumber': 'yAxisMax',
151
- 'axisY2.maximumNumber': 'y2AxisMax',
152
- 'axisX.minimumNumber': 'xAxisMin',
153
- 'axisY.minimumNumber': 'yAxisMin',
154
- 'axisY2.minimumNumber': 'y2AxisMin',
155
- 'axisX.scale': 'xAxisScale',
156
- 'axisY.scale': 'yAxisScale',
157
- 'axisY2.scale': 'y2AxisScale',
158
- 'axisTitleX.text': 'xAxisTitleText',
159
- 'axisTitleY.text': 'yAxisTitleText',
160
- 'axisTitleY2.text': 'y2AxisTitleText',
161
- 'axisTitleX.alignment': 'xAxisTitleAlignment',
162
- 'axisTitleY.alignment': 'yAxisTitleAlignment',
163
- 'axisTitleY2.alignment': 'y2AxisTitleAlignment',
164
- 'axisTitleX.visibility': 'xAxisTitleVisibility',
165
- 'axisTitleY.visibility': 'yAxisTitleVisibility',
166
- 'axisTitleY2.visibility': 'y2AxisTitleVisibility',
167
- 'chart.resultTruncationLimit': 'resultTruncationLimit',
168
- 'chart.overlayFields': 'overlayFields',
169
- 'axisY2.enabled': 'enableY2Axis',
170
- 'axisY2.fields': 'y2AxisField',
171
- 'chart.barSpacing': 'barSpacing',
172
- 'chart.columnSpacing': 'columnSpacing',
173
- 'chart.seriesSpacing': 'seriesSpacing',
174
- 'chart.nullValueMode': 'nullValueMode',
175
- 'chart.markerSize': 'markerSize',
176
- 'chart.showDataLabels': 'showDataLabels',
177
- 'chart.showLegend': 'showLegend',
178
- 'chart.showLines': 'showLines',
179
- 'chart.showMarkers': 'showMarkers',
180
- 'chart.stackMode': 'stackMode',
181
- 'data.fieldListMode': 'fieldListMode',
182
- 'data.fieldShowList': 'fieldShowList',
183
- 'data.fieldHideList': 'fieldHideList',
184
- 'gridLinesX.showMajorLines': 'showMajorXGridLines',
185
- 'gridLinesY.showMajorLines': 'showMajorYGridLines',
186
- 'gridLinesY2.showMajorLines': 'showMajorY2GridLines',
187
- 'gridLinesX.showMinorLines': 'showMinorXGridLines',
188
- 'gridLinesY.showMinorLines': 'showMinorYGridLines',
189
- 'gridLinesY2.showMinorLines': 'showMinorY2GridLines',
190
- 'layout.splitSeries': 'splitSeries',
191
- 'layout.splitSeries.allowIndependentYRanges': 'allowIndependentYRanges',
192
- 'legend.labels': 'legendLabels',
193
- 'legend.labelStyle.overflowMode': 'legendLabelOverflowMode',
194
- 'legend.masterLegend': 'masterLegend',
195
- 'legend.mode': 'legendMode',
196
- 'legend.placement': 'legendPlacement',
197
- 'chart.bubbleMaximumSize': 'bubbleMaxSize',
198
- 'chart.bubbleMinimumSize': 'bubbleMinSize',
199
- 'chart.bubbleSizeBy': 'bubbleSizeBy'
53
+ "annotation.categoryColors": "annotationColor",
54
+ "axisLabelsX.axisVisibility": "xAxisVisibility",
55
+ "axisLabelsY.axisVisibility": "yAxisVisibility",
56
+ "axisLabelsX.integerUnits": "roundXAxisLabelsToInteger",
57
+ "axisLabelsY.integerUnits": "roundYAxisLabelsToInteger",
58
+ "axisLabelsY2.integerUnits": "roundY2AxisLabelsToInteger",
59
+ "axisLabelsY2.axisVisibility": "y2AxisVisibility",
60
+ "axisLabelsX.extendsAxisRange": "xAxisExtendsAxisRange",
61
+ "axisLabelsY.extendsAxisRange": "yAxisExtendsAxisRange",
62
+ "axisLabelsX.majorLabelStyle.rotation": "xAxisMajorLabelRotation",
63
+ "axisLabelsX.majorLabelVisibility": "xAxisMajorLabelVisibility",
64
+ "axisLabelsY.majorLabelVisibility": "yAxisMajorLabelVisibility",
65
+ "axisLabelsY2.majorLabelVisibility": "y2AxisMajorLabelVisibility",
66
+ "axisLabelsX.majorTickSize": "xAxisMajorTickSize",
67
+ "axisLabelsY.majorTickSize": "yAxisMajorTickSize",
68
+ "axisLabelsY2.majorTickSize": "y2AxisMajorTickSize",
69
+ "axisLabelsX.minorTickSize": "xAxisMinorTickSize",
70
+ "axisLabelsY.minorTickSize": "yAxisMinorTickSize",
71
+ "axisLabelsY2.minorTickSize": "y2AxisMinorTickSize",
72
+ "axisLabelsX.majorTickVisibility": "xAxisMajorTickVisibility",
73
+ "axisLabelsY.majorTickVisibility": "yAxisMajorTickVisibility",
74
+ "axisLabelsY2.majorTickVisibility": "y2AxisMajorTickVisibility",
75
+ "axisLabelsX.majorUnit": "xAxisMajorUnit",
76
+ "axisLabelsY.majorUnit": "yAxisMajorUnit",
77
+ "axisLabelsY2.majorUnit": "y2AxisMajorUnit",
78
+ "axisLabelsX.minorTickVisibility": "xAxisMinorTickVisibility",
79
+ "axisLabelsY.minorTickVisibility": "yAxisMinorTickVisibility",
80
+ "axisLabelsY2.minorTickVisibility": "y2AxisMinorTickVisibility",
81
+ "axisLabelsX.maxLabelParts": "xAxisMaxLabelParts",
82
+ "axisX.abbreviation": "xAxisAbbreviation",
83
+ "axisY.abbreviation": "yAxisAbbreviation",
84
+ "axisY2.abbreviation": "y2AxisAbbreviation",
85
+ "axisX.includeZero": "xAxisIncludeZero",
86
+ "axisY.includeZero": "yAxisIncludeZero",
87
+ "axisY2.includeZero": "y2AxisIncludeZero",
88
+ "axisX.maximumNumber": "xAxisMax",
89
+ "axisY.maximumNumber": "yAxisMax",
90
+ "axisY2.maximumNumber": "y2AxisMax",
91
+ "axisX.minimumNumber": "xAxisMin",
92
+ "axisY.minimumNumber": "yAxisMin",
93
+ "axisY2.minimumNumber": "y2AxisMin",
94
+ "axisX.scale": "xAxisScale",
95
+ "axisY.scale": "yAxisScale",
96
+ "axisY2.scale": "y2AxisScale",
97
+ "axisTitleX.text": "xAxisTitleText",
98
+ "axisTitleY.text": "yAxisTitleText",
99
+ "axisTitleY2.text": "y2AxisTitleText",
100
+ "axisTitleX.alignment": "xAxisTitleAlignment",
101
+ "axisTitleY.alignment": "yAxisTitleAlignment",
102
+ "axisTitleY2.alignment": "y2AxisTitleAlignment",
103
+ "axisTitleX.visibility": "xAxisTitleVisibility",
104
+ "axisTitleY.visibility": "yAxisTitleVisibility",
105
+ "axisTitleY2.visibility": "y2AxisTitleVisibility",
106
+ "chart.resultTruncationLimit": "resultTruncationLimit",
107
+ "chart.overlayFields": "overlayFields",
108
+ "axisY2.enabled": "enableY2Axis",
109
+ "axisY2.fields": "y2AxisField",
110
+ "chart.barSpacing": "barSpacing",
111
+ "chart.columnSpacing": "columnSpacing",
112
+ "chart.seriesSpacing": "seriesSpacing",
113
+ "chart.nullValueMode": "nullValueMode",
114
+ "chart.markerSize": "markerSize",
115
+ "chart.showDataLabels": "showDataLabels",
116
+ "chart.showLegend": "showLegend",
117
+ "chart.showLines": "showLines",
118
+ "chart.showMarkers": "showMarkers",
119
+ "chart.stackMode": "stackMode",
120
+ "data.fieldListMode": "fieldListMode",
121
+ "data.fieldShowList": "fieldShowList",
122
+ "data.fieldHideList": "fieldHideList",
123
+ "gridLinesX.showMajorLines": "showMajorXGridLines",
124
+ "gridLinesY.showMajorLines": "showMajorYGridLines",
125
+ "gridLinesY2.showMajorLines": "showMajorY2GridLines",
126
+ "gridLinesX.showMinorLines": "showMinorXGridLines",
127
+ "gridLinesY.showMinorLines": "showMinorYGridLines",
128
+ "gridLinesY2.showMinorLines": "showMinorY2GridLines",
129
+ "layout.splitSeries": "splitSeries",
130
+ "layout.splitSeries.allowIndependentYRanges": "allowIndependentYRanges",
131
+ "legend.labels": "legendLabels",
132
+ "legend.labelStyle.overflowMode": "legendLabelOverflowMode",
133
+ "legend.masterLegend": "masterLegend",
134
+ "legend.mode": "legendMode",
135
+ "legend.placement": "legendPlacement",
136
+ "chart.bubbleMaximumSize": "bubbleMaxSize",
137
+ "chart.bubbleMinimumSize": "bubbleMinSize",
138
+ "chart.bubbleSizeBy": "bubbleSizeBy"
200
139
  };
201
- var propsToSimpleXMLOptionsMap = lodash_invert__WEBPACK_IMPORTED_MODULE_0___default()(simpleXMLOptionsToPropsMap); // export to make it testable
202
-
203
- var replaceObjectKeysFromMap = function replaceObjectKeysFromMap() {
204
- var object = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
205
- var map = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
206
- var isValidKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {
207
- return true;
208
- };
209
- var nuObject = {};
210
- Object.keys(object).forEach(function (key) {
211
- var nuKey = map[key];
212
-
140
+ var propsToSimpleXMLOptionsMap = invert_default(simpleXMLOptionsToPropsMap);
141
+ var replaceObjectKeysFromMap = (object = {}, map = {}, isValidKey = () => true) => {
142
+ const nuObject = {};
143
+ Object.keys(object).forEach((key) => {
144
+ const nuKey = map[key];
213
145
  if (!nuKey) {
214
146
  if (isValidKey(key)) {
215
- // @TODO(pwied):
216
- // get rid of this and ensure all known props are passed down to visualizations explicitly
217
- // captured here: SCP-14634
218
147
  nuObject[key] = object[key];
219
148
  }
220
149
  } else {
@@ -223,18 +152,6 @@ var replaceObjectKeysFromMap = function replaceObjectKeysFromMap() {
223
152
  });
224
153
  return nuObject;
225
154
  };
226
- var getPropsForSimpleXMLOptions = function getPropsForSimpleXMLOptions() {
227
- var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
228
- return replaceObjectKeysFromMap(options, simpleXMLOptionsToPropsMap, function (value) {
229
- return value.indexOf('.') === -1;
230
- });
231
- };
232
- var getSimpleXMLOptionsForProps = function getSimpleXMLOptionsForProps() {
233
- var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
234
- return replaceObjectKeysFromMap(props, propsToSimpleXMLOptionsMap);
235
- };
236
-
237
- /***/ })
238
-
239
- /******/ });
240
- //# sourceMappingURL=simpleXMLOptions.js.map
155
+ var getPropsForSimpleXMLOptions = (options = {}) => replaceObjectKeysFromMap(options, simpleXMLOptionsToPropsMap, (value) => value.indexOf(".") === -1);
156
+ var getSimpleXMLOptionsForProps = (props = {}) => replaceObjectKeysFromMap(props, propsToSimpleXMLOptionsMap);
157
+ //# sourceMappingURL=simpleXMLOptions.js.map
@@ -1 +1,7 @@
1
- {"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"lodash/invert\"","webpack:///./src/simpleXMLOptions.js"],"names":["simpleXMLOptionsToPropsMap","propsToSimpleXMLOptionsMap","invert","replaceObjectKeysFromMap","object","map","isValidKey","nuObject","Object","nuKey","getPropsForSimpleXMLOptions","options","value","getSimpleXMLOptionsForProps","props"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,0C;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,IAAMA,0BAA0B,GAAG;AAC/B,+BAD+B;AAE/B,gCAF+B;AAG/B,gCAH+B;AAI/B,8BAJ+B;AAK/B,8BAL+B;AAM/B,+BAN+B;AAO/B,iCAP+B;AAQ/B,kCAR+B;AAS/B,kCAT+B;AAU/B,0CAV+B;AAW/B,sCAX+B;AAY/B,sCAZ+B;AAa/B,uCAb+B;AAc/B,+BAd+B;AAe/B,+BAf+B;AAgB/B,gCAhB+B;AAiB/B,+BAjB+B;AAkB/B,+BAlB+B;AAmB/B,gCAnB+B;AAoB/B,qCApB+B;AAqB/B,qCArB+B;AAsB/B,sCAtB+B;AAuB/B,2BAv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wB,GAAG,SAA3BA,wBAA2B,GAAoD;AAAA,MAAnDC,MAAmD,uEAA1C,EAA0C;AAAA,MAAtCC,GAAsC,uEAAhC,EAAgC;AAAA,MAA5BC,UAA4B,uEAAf;AAAA;AAAe;AACxF,MAAMC,QAAQ,GAAd;AACAC,QAAM,CAANA,qBAA4B,eAAO;AAC/B,QAAMC,KAAK,GAAGJ,GAAG,CAAjB,GAAiB,CAAjB;;AACA,QAAI,CAAJ,OAAY;AACR,UAAIC,UAAU,CAAd,GAAc,CAAd,EAAqB;AACjB;AACA;AACA;AACAC,gBAAQ,CAARA,GAAQ,CAARA,GAAgBH,MAAM,CAAtBG,GAAsB,CAAtBA;AACH;AANL,WAOO;AACHA,cAAQ,CAARA,KAAQ,CAARA,GAAkBH,MAAM,CAAxBG,GAAwB,CAAxBA;AACH;AAXLC;AAaA;AAfG;AAkBA,IAAME,2BAA2B,GAAG,SAA9BA,2BAA8B;AAAA,MAACC,OAAD;AAAA,SACvCR,wBAAwB,sCAAsC,iBAAK;AAAA,WAAIS,KAAK,CAALA,iBAAuB,CAA3B;AAD5B,GACf,CADe;AAApC;AAGA,IAAMC,2BAA2B,GAAG,SAA9BA,2BAA8B;AAAA,MAACC,KAAD;AAAA,SACvCX,wBAAwB,QADe,0BACf,CADe;AAApC,E","file":"simpleXMLOptions.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 65);\n","module.exports = require(\"lodash/invert\");","import invert from 'lodash/invert';\n\nconst simpleXMLOptionsToPropsMap = {\n 'annotation.categoryColors': 'annotationColor',\n 'axisLabelsX.axisVisibility': 'xAxisVisibility',\n 'axisLabelsY.axisVisibility': 'yAxisVisibility',\n 'axisLabelsX.integerUnits': 'roundXAxisLabelsToInteger',\n 'axisLabelsY.integerUnits': 'roundYAxisLabelsToInteger',\n 'axisLabelsY2.integerUnits': 'roundY2AxisLabelsToInteger',\n 'axisLabelsY2.axisVisibility': 'y2AxisVisibility',\n 'axisLabelsX.extendsAxisRange': 'xAxisExtendsAxisRange',\n 'axisLabelsY.extendsAxisRange': 'yAxisExtendsAxisRange',\n 'axisLabelsX.majorLabelStyle.rotation': 'xAxisMajorLabelRotation',\n 'axisLabelsX.majorLabelVisibility': 'xAxisMajorLabelVisibility',\n 'axisLabelsY.majorLabelVisibility': 'yAxisMajorLabelVisibility',\n 'axisLabelsY2.majorLabelVisibility': 'y2AxisMajorLabelVisibility',\n 'axisLabelsX.majorTickSize': 'xAxisMajorTickSize',\n 'axisLabelsY.majorTickSize': 'yAxisMajorTickSize',\n 'axisLabelsY2.majorTickSize': 'y2AxisMajorTickSize',\n 'axisLabelsX.minorTickSize': 'xAxisMinorTickSize',\n 'axisLabelsY.minorTickSize': 'yAxisMinorTickSize',\n 'axisLabelsY2.minorTickSize': 'y2AxisMinorTickSize',\n 'axisLabelsX.majorTickVisibility': 'xAxisMajorTickVisibility',\n 'axisLabelsY.majorTickVisibility': 'yAxisMajorTickVisibility',\n 'axisLabelsY2.majorTickVisibility': 'y2AxisMajorTickVisibility',\n 'axisLabelsX.majorUnit': 'xAxisMajorUnit',\n 'axisLabelsY.majorUnit': 'yAxisMajorUnit',\n 'axisLabelsY2.majorUnit': 'y2AxisMajorUnit',\n 'axisLabelsX.minorTickVisibility': 'xAxisMinorTickVisibility',\n 'axisLabelsY.minorTickVisibility': 'yAxisMinorTickVisibility',\n 'axisLabelsY2.minorTickVisibility': 'y2AxisMinorTickVisibility',\n 'axisLabelsX.maxLabelParts': 'xAxisMaxLabelParts',\n 'axisX.abbreviation': 'xAxisAbbreviation',\n 'axisY.abbreviation': 'yAxisAbbreviation',\n 'axisY2.abbreviation': 'y2AxisAbbreviation',\n 'axisX.includeZero': 'xAxisIncludeZero',\n 'axisY.includeZero': 'yAxisIncludeZero',\n 'axisY2.includeZero': 'y2AxisIncludeZero',\n 'axisX.maximumNumber': 'xAxisMax',\n 'axisY.maximumNumber': 'yAxisMax',\n 'axisY2.maximumNumber': 'y2AxisMax',\n 'axisX.minimumNumber': 'xAxisMin',\n 'axisY.minimumNumber': 'yAxisMin',\n 'axisY2.minimumNumber': 'y2AxisMin',\n 'axisX.scale': 'xAxisScale',\n 'axisY.scale': 'yAxisScale',\n 'axisY2.scale': 'y2AxisScale',\n 'axisTitleX.text': 'xAxisTitleText',\n 'axisTitleY.text': 'yAxisTitleText',\n 'axisTitleY2.text': 'y2AxisTitleText',\n 'axisTitleX.alignment': 'xAxisTitleAlignment',\n 'axisTitleY.alignment': 'yAxisTitleAlignment',\n 'axisTitleY2.alignment': 'y2AxisTitleAlignment',\n 'axisTitleX.visibility': 'xAxisTitleVisibility',\n 'axisTitleY.visibility': 'yAxisTitleVisibility',\n 'axisTitleY2.visibility': 'y2AxisTitleVisibility',\n 'chart.resultTruncationLimit': 'resultTruncationLimit',\n 'chart.overlayFields': 'overlayFields',\n 'axisY2.enabled': 'enableY2Axis',\n 'axisY2.fields': 'y2AxisField',\n 'chart.barSpacing': 'barSpacing',\n 'chart.columnSpacing': 'columnSpacing',\n 'chart.seriesSpacing': 'seriesSpacing',\n 'chart.nullValueMode': 'nullValueMode',\n 'chart.markerSize': 'markerSize',\n 'chart.showDataLabels': 'showDataLabels',\n 'chart.showLegend': 'showLegend',\n 'chart.showLines': 'showLines',\n 'chart.showMarkers': 'showMarkers',\n 'chart.stackMode': 'stackMode',\n 'data.fieldListMode': 'fieldListMode',\n 'data.fieldShowList': 'fieldShowList',\n 'data.fieldHideList': 'fieldHideList',\n 'gridLinesX.showMajorLines': 'showMajorXGridLines',\n 'gridLinesY.showMajorLines': 'showMajorYGridLines',\n 'gridLinesY2.showMajorLines': 'showMajorY2GridLines',\n 'gridLinesX.showMinorLines': 'showMinorXGridLines',\n 'gridLinesY.showMinorLines': 'showMinorYGridLines',\n 'gridLinesY2.showMinorLines': 'showMinorY2GridLines',\n 'layout.splitSeries': 'splitSeries',\n 'layout.splitSeries.allowIndependentYRanges': 'allowIndependentYRanges',\n 'legend.labels': 'legendLabels',\n 'legend.labelStyle.overflowMode': 'legendLabelOverflowMode',\n 'legend.masterLegend': 'masterLegend',\n 'legend.mode': 'legendMode',\n 'legend.placement': 'legendPlacement',\n 'chart.bubbleMaximumSize': 'bubbleMaxSize',\n 'chart.bubbleMinimumSize': 'bubbleMinSize',\n 'chart.bubbleSizeBy': 'bubbleSizeBy',\n};\n\nconst propsToSimpleXMLOptionsMap = invert(simpleXMLOptionsToPropsMap);\n\n// export to make it testable\nexport const replaceObjectKeysFromMap = (object = {}, map = {}, isValidKey = () => true) => {\n const nuObject = {};\n Object.keys(object).forEach(key => {\n const nuKey = map[key];\n if (!nuKey) {\n if (isValidKey(key)) {\n // @TODO(pwied):\n // get rid of this and ensure all known props are passed down to visualizations explicitly\n // captured here: SCP-14634\n nuObject[key] = object[key];\n }\n } else {\n nuObject[nuKey] = object[key];\n }\n });\n return nuObject;\n};\n\nexport const getPropsForSimpleXMLOptions = (options = {}) =>\n replaceObjectKeysFromMap(options, simpleXMLOptionsToPropsMap, value => value.indexOf('.') === -1);\n\nexport const getSimpleXMLOptionsForProps = (props = {}) =>\n replaceObjectKeysFromMap(props, propsToSimpleXMLOptionsMap);\n"],"sourceRoot":""}
1
+ {
2
+ "version": 3,
3
+ "sources": ["src/simpleXMLOptions.js", "esm-externals:lodash/invert"],
4
+ "sourcesContent": ["import invert from 'lodash/invert';\n\nconst simpleXMLOptionsToPropsMap = {\n 'annotation.categoryColors': 'annotationColor',\n 'axisLabelsX.axisVisibility': 'xAxisVisibility',\n 'axisLabelsY.axisVisibility': 'yAxisVisibility',\n 'axisLabelsX.integerUnits': 'roundXAxisLabelsToInteger',\n 'axisLabelsY.integerUnits': 'roundYAxisLabelsToInteger',\n 'axisLabelsY2.integerUnits': 'roundY2AxisLabelsToInteger',\n 'axisLabelsY2.axisVisibility': 'y2AxisVisibility',\n 'axisLabelsX.extendsAxisRange': 'xAxisExtendsAxisRange',\n 'axisLabelsY.extendsAxisRange': 'yAxisExtendsAxisRange',\n 'axisLabelsX.majorLabelStyle.rotation': 'xAxisMajorLabelRotation',\n 'axisLabelsX.majorLabelVisibility': 'xAxisMajorLabelVisibility',\n 'axisLabelsY.majorLabelVisibility': 'yAxisMajorLabelVisibility',\n 'axisLabelsY2.majorLabelVisibility': 'y2AxisMajorLabelVisibility',\n 'axisLabelsX.majorTickSize': 'xAxisMajorTickSize',\n 'axisLabelsY.majorTickSize': 'yAxisMajorTickSize',\n 'axisLabelsY2.majorTickSize': 'y2AxisMajorTickSize',\n 'axisLabelsX.minorTickSize': 'xAxisMinorTickSize',\n 'axisLabelsY.minorTickSize': 'yAxisMinorTickSize',\n 'axisLabelsY2.minorTickSize': 'y2AxisMinorTickSize',\n 'axisLabelsX.majorTickVisibility': 'xAxisMajorTickVisibility',\n 'axisLabelsY.majorTickVisibility': 'yAxisMajorTickVisibility',\n 'axisLabelsY2.majorTickVisibility': 'y2AxisMajorTickVisibility',\n 'axisLabelsX.majorUnit': 'xAxisMajorUnit',\n 'axisLabelsY.majorUnit': 'yAxisMajorUnit',\n 'axisLabelsY2.majorUnit': 'y2AxisMajorUnit',\n 'axisLabelsX.minorTickVisibility': 'xAxisMinorTickVisibility',\n 'axisLabelsY.minorTickVisibility': 'yAxisMinorTickVisibility',\n 'axisLabelsY2.minorTickVisibility': 'y2AxisMinorTickVisibility',\n 'axisLabelsX.maxLabelParts': 'xAxisMaxLabelParts',\n 'axisX.abbreviation': 'xAxisAbbreviation',\n 'axisY.abbreviation': 'yAxisAbbreviation',\n 'axisY2.abbreviation': 'y2AxisAbbreviation',\n 'axisX.includeZero': 'xAxisIncludeZero',\n 'axisY.includeZero': 'yAxisIncludeZero',\n 'axisY2.includeZero': 'y2AxisIncludeZero',\n 'axisX.maximumNumber': 'xAxisMax',\n 'axisY.maximumNumber': 'yAxisMax',\n 'axisY2.maximumNumber': 'y2AxisMax',\n 'axisX.minimumNumber': 'xAxisMin',\n 'axisY.minimumNumber': 'yAxisMin',\n 'axisY2.minimumNumber': 'y2AxisMin',\n 'axisX.scale': 'xAxisScale',\n 'axisY.scale': 'yAxisScale',\n 'axisY2.scale': 'y2AxisScale',\n 'axisTitleX.text': 'xAxisTitleText',\n 'axisTitleY.text': 'yAxisTitleText',\n 'axisTitleY2.text': 'y2AxisTitleText',\n 'axisTitleX.alignment': 'xAxisTitleAlignment',\n 'axisTitleY.alignment': 'yAxisTitleAlignment',\n 'axisTitleY2.alignment': 'y2AxisTitleAlignment',\n 'axisTitleX.visibility': 'xAxisTitleVisibility',\n 'axisTitleY.visibility': 'yAxisTitleVisibility',\n 'axisTitleY2.visibility': 'y2AxisTitleVisibility',\n 'chart.resultTruncationLimit': 'resultTruncationLimit',\n 'chart.overlayFields': 'overlayFields',\n 'axisY2.enabled': 'enableY2Axis',\n 'axisY2.fields': 'y2AxisField',\n 'chart.barSpacing': 'barSpacing',\n 'chart.columnSpacing': 'columnSpacing',\n 'chart.seriesSpacing': 'seriesSpacing',\n 'chart.nullValueMode': 'nullValueMode',\n 'chart.markerSize': 'markerSize',\n 'chart.showDataLabels': 'showDataLabels',\n 'chart.showLegend': 'showLegend',\n 'chart.showLines': 'showLines',\n 'chart.showMarkers': 'showMarkers',\n 'chart.stackMode': 'stackMode',\n 'data.fieldListMode': 'fieldListMode',\n 'data.fieldShowList': 'fieldShowList',\n 'data.fieldHideList': 'fieldHideList',\n 'gridLinesX.showMajorLines': 'showMajorXGridLines',\n 'gridLinesY.showMajorLines': 'showMajorYGridLines',\n 'gridLinesY2.showMajorLines': 'showMajorY2GridLines',\n 'gridLinesX.showMinorLines': 'showMinorXGridLines',\n 'gridLinesY.showMinorLines': 'showMinorYGridLines',\n 'gridLinesY2.showMinorLines': 'showMinorY2GridLines',\n 'layout.splitSeries': 'splitSeries',\n 'layout.splitSeries.allowIndependentYRanges': 'allowIndependentYRanges',\n 'legend.labels': 'legendLabels',\n 'legend.labelStyle.overflowMode': 'legendLabelOverflowMode',\n 'legend.masterLegend': 'masterLegend',\n 'legend.mode': 'legendMode',\n 'legend.placement': 'legendPlacement',\n 'chart.bubbleMaximumSize': 'bubbleMaxSize',\n 'chart.bubbleMinimumSize': 'bubbleMinSize',\n 'chart.bubbleSizeBy': 'bubbleSizeBy',\n};\n\nconst propsToSimpleXMLOptionsMap = invert(simpleXMLOptionsToPropsMap);\n\n// export to make it testable\nexport const replaceObjectKeysFromMap = (object = {}, map = {}, isValidKey = () => true) => {\n const nuObject = {};\n Object.keys(object).forEach(key => {\n const nuKey = map[key];\n if (!nuKey) {\n if (isValidKey(key)) {\n // @TODO(pwied):\n // get rid of this and ensure all known props are passed down to visualizations explicitly\n // captured here: SCP-14634\n nuObject[key] = object[key];\n }\n } else {\n nuObject[nuKey] = object[key];\n }\n });\n return nuObject;\n};\n\nexport const getPropsForSimpleXMLOptions = (options = {}) =>\n replaceObjectKeysFromMap(options, simpleXMLOptionsToPropsMap, value => value.indexOf('.') === -1);\n\nexport const getSimpleXMLOptionsForProps = (props = {}) =>\n replaceObjectKeysFromMap(props, propsToSimpleXMLOptionsMap);\n", "\nimport * as defaultImport from \"lodash/invert\";\nexport * from \"lodash/invert\";\nexport default ('default' in defaultImport ? defaultImport.default : defaultImport);\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,oBAA+B;AAC/B,2BAAc;AACd,IAAO,iBAAS,aAAa,gBAA8B,wBAAU;;;ADDrE,IAAM,6BAA6B;AAAA,EAC/B,6BAA6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