From ad3bb71052983be096ffa315c026b39f644a6655 Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Tue, 31 Dec 2024 17:54:22 +0530 Subject: [PATCH 01/20] feat: given support for optional configuration page --- splunk_add_on_ucc_framework/commands/build.py | 3 +- .../commands/openapi_generator/ucc_to_oas.py | 44 ++++++++++--------- .../global_config_builder_schema.py | 2 + splunk_add_on_ucc_framework/global_config.py | 7 ++- .../global_config_validator.py | 30 ++++++++----- .../schema/schema.json | 3 -- 6 files changed, 51 insertions(+), 38 deletions(-) diff --git a/splunk_add_on_ucc_framework/commands/build.py b/splunk_add_on_ucc_framework/commands/build.py index 2f547c638..26e713c79 100644 --- a/splunk_add_on_ucc_framework/commands/build.py +++ b/splunk_add_on_ucc_framework/commands/build.py @@ -463,7 +463,8 @@ def generate( logger.info( f"Updated and saved add-on version in the globalConfig file to {addon_version}" ) - global_config.expand() + if global_config.content["pages"].get("configuration"): + global_config.expand() if ta_name != global_config.product: logger.error( "Add-on name mentioned in globalConfig meta tag and that app.manifest are not same," diff --git a/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py b/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py index b2cdeaa76..dafa9eafd 100644 --- a/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py +++ b/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py @@ -158,15 +158,16 @@ def __add_schemas_object( ) -> OpenAPIObject: if open_api_object.components is not None: open_api_object.components.schemas = {} - for tab in global_config.pages.configuration.tabs: # type: ignore[attr-defined] - schema_name, schema_object = __get_schema_object( - name=tab.name, entities=tab.entity - ) - open_api_object.components.schemas[schema_name] = schema_object - schema_name, schema_object = __get_schema_object( - name=tab.name, entities=tab.entity, without=["name"] - ) - open_api_object.components.schemas[schema_name] = schema_object + if hasattr(global_config, "configuration"): + for tab in global_config.pages.configuration.tabs: # type: ignore[attr-defined] + schema_name, schema_object = __get_schema_object( + name=tab.name, entities=tab.entity + ) + open_api_object.components.schemas[schema_name] = schema_object + schema_name, schema_object = __get_schema_object( + name=tab.name, entities=tab.entity, without=["name"] + ) + open_api_object.components.schemas[schema_name] = schema_object if hasattr(global_config.pages, "inputs") and hasattr( # type: ignore[attr-defined] global_config.pages.inputs, "services" # type: ignore[attr-defined] ): @@ -378,18 +379,19 @@ def __assign_ta_paths( def __add_paths( open_api_object: OpenAPIObject, global_config: DataClasses ) -> OpenAPIObject: - for tab in global_config.pages.configuration.tabs: # type: ignore[attr-defined] - open_api_object = __assign_ta_paths( - open_api_object=open_api_object, - path=f"/{global_config.meta.restRoot}_{tab.name}" # type: ignore[attr-defined] - if hasattr(tab, "table") - else f"/{global_config.meta.restRoot}_settings/{tab.name}", # type: ignore[attr-defined] - path_name=tab.name, - actions=tab.table.actions - if hasattr(tab, "table") and hasattr(tab.table, "actions") - else None, - page=GloblaConfigPages.CONFIGURATION, - ) + if hasattr(global_config, "configuration"): + for tab in global_config.pages.configuration.tabs: # type: ignore[attr-defined] + open_api_object = __assign_ta_paths( + open_api_object=open_api_object, + path=f"/{global_config.meta.restRoot}_{tab.name}" # type: ignore[attr-defined] + if hasattr(tab, "table") + else f"/{global_config.meta.restRoot}_settings/{tab.name}", # type: ignore[attr-defined] + path_name=tab.name, + actions=tab.table.actions + if hasattr(tab, "table") and hasattr(tab.table, "actions") + else None, + page=GloblaConfigPages.CONFIGURATION, + ) if hasattr(global_config.pages, "inputs") and hasattr( # type: ignore[attr-defined] global_config.pages.inputs, "services" # type: ignore[attr-defined] ): diff --git a/splunk_add_on_ucc_framework/commands/rest_builder/global_config_builder_schema.py b/splunk_add_on_ucc_framework/commands/rest_builder/global_config_builder_schema.py index 8f5d071b3..5fd4002b2 100644 --- a/splunk_add_on_ucc_framework/commands/rest_builder/global_config_builder_schema.py +++ b/splunk_add_on_ucc_framework/commands/rest_builder/global_config_builder_schema.py @@ -90,6 +90,8 @@ def _parse_builder_schema(self) -> None: self._builder_inputs() def _builder_configs(self) -> None: + if not self.global_config.has_configuration(): + return for config in self.global_config.configs: name = config["name"] endpoint = SingleModelEndpointBuilder( diff --git a/splunk_add_on_ucc_framework/global_config.py b/splunk_add_on_ucc_framework/global_config.py index 43fe2b8fa..9f066e044 100644 --- a/splunk_add_on_ucc_framework/global_config.py +++ b/splunk_add_on_ucc_framework/global_config.py @@ -117,7 +117,9 @@ def inputs(self) -> List[Any]: @property def tabs(self) -> List[Any]: - return self._content["pages"]["configuration"]["tabs"] + if "configuration" in self._content["pages"]: + return self._content["pages"]["configuration"]["tabs"] + return [] @property def dashboard(self) -> Dict[str, Any]: @@ -203,6 +205,9 @@ def add_ucc_version(self, version: str) -> None: def has_inputs(self) -> bool: return bool(self.inputs) + def has_configuration(self) -> bool: + return bool(self.tabs) + def has_alerts(self) -> bool: return bool(self.alerts) diff --git a/splunk_add_on_ucc_framework/global_config_validator.py b/splunk_add_on_ucc_framework/global_config_validator.py index b6ca1d87a..83a5e2acf 100644 --- a/splunk_add_on_ucc_framework/global_config_validator.py +++ b/splunk_add_on_ucc_framework/global_config_validator.py @@ -54,10 +54,13 @@ def __init__(self, source_dir: str, global_config: global_config_lib.GlobalConfi self._config = global_config.content @property - def config_tabs(self) -> List[Tab]: - return [ - resolve_tab(tab) for tab in self._config["pages"]["configuration"]["tabs"] - ] + def config_tabs(self) -> List[Any]: + if self._config["pages"].get("configuration"): + return [ + resolve_tab(tab) + for tab in self._config["pages"]["configuration"]["tabs"] + ] + return [] def _validate_config_against_schema(self) -> None: """ @@ -249,10 +252,11 @@ def _validate_validators(self) -> None: number and regex are supported. """ pages = self._config["pages"] - for tab in self.config_tabs: - entities = tab["entity"] - for entity in entities: - self._validate_entity_validators(entity) + if pages.get("configuration"): + for tab in self.config_tabs: + entities = tab["entity"] + for entity in entities: + self._validate_entity_validators(entity) inputs = pages.get("inputs") if inputs is None: @@ -430,8 +434,8 @@ def _validate_duplicates(self) -> None: not required in schema, so this checks if globalConfig has inputs """ pages = self._config["pages"] - - self._validate_tabs_duplicates(self.config_tabs) + if self._config["pages"].get("configuration"): + self._validate_tabs_duplicates(self.config_tabs) inputs = pages.get("inputs") if inputs: @@ -711,9 +715,11 @@ def _validate_meta_default_view(self) -> None: def validate(self) -> None: self._validate_config_against_schema() - self._validate_configuration_tab_table_has_name_field() + if self._config["pages"].get("configuration"): + print("\n HIIII") + self._validate_configuration_tab_table_has_name_field() + self._validate_file_type_entity() self._validate_custom_rest_handlers() - self._validate_file_type_entity() self._validate_validators() self._validate_multilevel_menu() self._validate_duplicates() diff --git a/splunk_add_on_ucc_framework/schema/schema.json b/splunk_add_on_ucc_framework/schema/schema.json index 74271bbe4..bccd7f919 100644 --- a/splunk_add_on_ucc_framework/schema/schema.json +++ b/splunk_add_on_ucc_framework/schema/schema.json @@ -2355,9 +2355,6 @@ "$ref": "#/definitions/DashboardPage" } }, - "required": [ - "configuration" - ], "additionalProperties": false }, "RegexValidator": { From 1aba2ef4f0590b40ffe1c0d4f2f63f35228b8d62 Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Tue, 31 Dec 2024 17:56:54 +0530 Subject: [PATCH 02/20] feat: update ui files for optional configuration --- ui/src/components/BaseFormView/BaseFormView.tsx | 2 +- ui/src/components/table/CustomTable.tsx | 6 +++--- ui/src/components/table/TableWrapper.tsx | 4 ++-- ui/src/hooks/usePlatform.ts | 2 +- ui/src/pages/Configuration/ConfigurationPage.tsx | 2 +- ui/src/types/globalConfig/pages.ts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/ui/src/components/BaseFormView/BaseFormView.tsx b/ui/src/components/BaseFormView/BaseFormView.tsx index d74fd788e..af88b29d3 100644 --- a/ui/src/components/BaseFormView/BaseFormView.tsx +++ b/ui/src/components/BaseFormView/BaseFormView.tsx @@ -195,7 +195,7 @@ class BaseFormView extends PureComponent { } }); } else { - globalConfig.pages.configuration.tabs.forEach((tab) => { + (globalConfig.pages.configuration?.tabs ?? []).forEach((tab) => { const flag = tab.table ? tab.name === props.serviceName : tab.name === props.stanzaName && props.serviceName === 'settings'; diff --git a/ui/src/components/table/CustomTable.tsx b/ui/src/components/table/CustomTable.tsx index 233461fbf..3cd4083ff 100644 --- a/ui/src/components/table/CustomTable.tsx +++ b/ui/src/components/table/CustomTable.tsx @@ -47,7 +47,7 @@ const getServiceToStyleMap = (page: StandardPages, unifiedConfigs: GlobalConfig) serviceToStyleMap[x.name] = x.style === STYLE_PAGE ? STYLE_PAGE : STYLE_MODAL; }); } else { - unifiedConfigs.pages.configuration.tabs.forEach((x) => { + unifiedConfigs.pages.configuration?.tabs.forEach((x) => { serviceToStyleMap[x.name] = x.style === STYLE_PAGE ? STYLE_PAGE : STYLE_MODAL; }); } @@ -179,8 +179,8 @@ const CustomTable: React.FC = ({ const services = inputsPage?.services; label = services?.find((x) => x.name === entityModal.serviceName)?.title; } else if (page === PAGE_CONF) { - const { tabs } = unifiedConfigs.pages.configuration; - label = tabs.find((x) => x.name === entityModal.serviceName)?.title; + const tabs = unifiedConfigs.pages.configuration?.tabs; + label = tabs?.find((x) => x.name === entityModal.serviceName)?.title; } return entityModal.serviceName && entityModal.mode ? ( x.name === serviceName); + : unifiedConfigs.pages.configuration?.tabs.filter((x) => x.name === serviceName); if (page === PAGE_INPUT) { if (unifiedConfigs.pages.inputs && 'table' in unifiedConfigs.pages.inputs) { return { @@ -69,7 +69,7 @@ const getTableConfigAndServices = ( }; } - const tableConfig = unifiedConfigs.pages.configuration.tabs.find( + const tableConfig = unifiedConfigs.pages.configuration?.tabs.find( (x) => x.name === serviceName )?.table; diff --git a/ui/src/hooks/usePlatform.ts b/ui/src/hooks/usePlatform.ts index 16fa55c9f..e24328f60 100644 --- a/ui/src/hooks/usePlatform.ts +++ b/ui/src/hooks/usePlatform.ts @@ -18,7 +18,7 @@ const checkIfHideInAnyEntity = (entities: AnyEntity[]): boolean => { const checkIfHideForPlatformUsed = (globalConfig: GlobalConfig, page?: StandardPages): boolean => { if (!page || page === 'configuration') { - const isHideUsedInConfig = globalConfig.pages.configuration.tabs.find( + const isHideUsedInConfig = globalConfig.pages.configuration?.tabs.find( (tab) => tab.hideForPlatform || checkIfHideInAnyEntity(tab.entity || []) || false ); if (isHideUsedInConfig) { diff --git a/ui/src/pages/Configuration/ConfigurationPage.tsx b/ui/src/pages/Configuration/ConfigurationPage.tsx index 33016a6c8..4914e9158 100644 --- a/ui/src/pages/Configuration/ConfigurationPage.tsx +++ b/ui/src/pages/Configuration/ConfigurationPage.tsx @@ -50,7 +50,7 @@ function ConfigurationPage() { const platform = usePlatform(unifiedConfigs, 'configuration'); - const filteredTabs = tabs.filter( + const filteredTabs = (tabs ?? []).filter( (tab) => !shouldHideForPlatform(tab.hideForPlatform, platform) ); diff --git a/ui/src/types/globalConfig/pages.ts b/ui/src/types/globalConfig/pages.ts index 5fdf3bc84..3b13612c3 100644 --- a/ui/src/types/globalConfig/pages.ts +++ b/ui/src/types/globalConfig/pages.ts @@ -165,7 +165,7 @@ export const pages = z.object({ description: z.string().optional(), subDescription: SubDescriptionSchema, tabs: z.array(TabSchema).min(1), - }), + }).optional(), inputs: InputsPageSchema, dashboard: z .object({ From be85138190c7df27aaac13b38e1ff360852ff3c0 Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Thu, 2 Jan 2025 15:58:50 +0530 Subject: [PATCH 03/20] feat: update generation logic of configuration.xml --- splunk_add_on_ucc_framework/commands/build.py | 2 +- .../commands/openapi_generator/ucc_to_oas.py | 6 ++++-- .../data_ui_generator.py | 21 +++++++++++++------ .../xml_files/create_configuration_xml.py | 11 ++++++---- .../xml_files/create_default_xml.py | 3 ++- splunk_add_on_ucc_framework/global_config.py | 7 ++++--- 6 files changed, 33 insertions(+), 17 deletions(-) diff --git a/splunk_add_on_ucc_framework/commands/build.py b/splunk_add_on_ucc_framework/commands/build.py index 26e713c79..75ae08b3c 100644 --- a/splunk_add_on_ucc_framework/commands/build.py +++ b/splunk_add_on_ucc_framework/commands/build.py @@ -463,7 +463,7 @@ def generate( logger.info( f"Updated and saved add-on version in the globalConfig file to {addon_version}" ) - if global_config.content["pages"].get("configuration"): + if global_config.has_configuration: global_config.expand() if ta_name != global_config.product: logger.error( diff --git a/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py b/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py index dafa9eafd..4a2946081 100644 --- a/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py +++ b/splunk_add_on_ucc_framework/commands/openapi_generator/ucc_to_oas.py @@ -158,7 +158,8 @@ def __add_schemas_object( ) -> OpenAPIObject: if open_api_object.components is not None: open_api_object.components.schemas = {} - if hasattr(global_config, "configuration"): + pages = getattr(global_config, "pages", None) + if hasattr(pages, "configuration"): for tab in global_config.pages.configuration.tabs: # type: ignore[attr-defined] schema_name, schema_object = __get_schema_object( name=tab.name, entities=tab.entity @@ -379,7 +380,8 @@ def __assign_ta_paths( def __add_paths( open_api_object: OpenAPIObject, global_config: DataClasses ) -> OpenAPIObject: - if hasattr(global_config, "configuration"): + pages = getattr(global_config, "pages", None) + if hasattr(pages, "configuration"): for tab in global_config.pages.configuration.tabs: # type: ignore[attr-defined] open_api_object = __assign_ta_paths( open_api_object=open_api_object, diff --git a/splunk_add_on_ucc_framework/data_ui_generator.py b/splunk_add_on_ucc_framework/data_ui_generator.py index b397aee48..9d114faa1 100644 --- a/splunk_add_on_ucc_framework/data_ui_generator.py +++ b/splunk_add_on_ucc_framework/data_ui_generator.py @@ -31,7 +31,10 @@ def _pretty_print_xml(string: str) -> str: def generate_nav_default_xml( - include_inputs: bool, include_dashboard: bool, default_view: str + include_inputs: bool, + include_dashboard: bool, + include_configuration: bool, + default_view: str, ) -> str: """ Generates `default/data/ui/nav/default.xml` file. @@ -39,15 +42,21 @@ def generate_nav_default_xml( The validation is being done in `_validate_meta_default_view` function from `global_config_validator.py` file. """ nav = ET.Element("nav") + if include_configuration: + if default_view == "configuration": + ET.SubElement( + nav, "view", attrib={"name": "configuration", "default": "true"} + ) + else: + ET.SubElement(nav, "view", attrib={"name": "configuration"}) if include_inputs: - if default_view == "inputs": + if ( + not (include_configuration) and default_view == "configuration" + ) or default_view == "inputs": ET.SubElement(nav, "view", attrib={"name": "inputs", "default": "true"}) else: ET.SubElement(nav, "view", attrib={"name": "inputs"}) - if default_view == "configuration": - ET.SubElement(nav, "view", attrib={"name": "configuration", "default": "true"}) - else: - ET.SubElement(nav, "view", attrib={"name": "configuration"}) + if include_dashboard: if default_view == "dashboard": ET.SubElement(nav, "view", attrib={"name": "dashboard", "default": "true"}) diff --git a/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py b/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py index e41f72928..941ccd49a 100644 --- a/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py +++ b/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py @@ -22,13 +22,16 @@ class ConfigurationXml(XMLGenerator): __description__ = "Generates configuration.xml file in `default/data/ui/views/` folder if globalConfig is present." def _set_attributes(self, **kwargs: Any) -> None: - self.configuration_xml_content = ( - data_ui_generator.generate_views_configuration_xml( - self._addon_name, + if self._global_config and self._global_config.has_configuration(): + self.configuration_xml_content = ( + data_ui_generator.generate_views_configuration_xml( + self._addon_name, + ) ) - ) def generate_xml(self) -> Dict[str, str]: + if self._global_config and not self._global_config.has_configuration(): + return None file_path = self.get_file_output_path( ["default", "data", "ui", "views", "configuration.xml"] ) diff --git a/splunk_add_on_ucc_framework/generators/xml_files/create_default_xml.py b/splunk_add_on_ucc_framework/generators/xml_files/create_default_xml.py index bb5b47bfb..4e64ebea8 100644 --- a/splunk_add_on_ucc_framework/generators/xml_files/create_default_xml.py +++ b/splunk_add_on_ucc_framework/generators/xml_files/create_default_xml.py @@ -25,7 +25,7 @@ class DefaultXml(XMLGenerator): __description__ = ( "Generates default.xml file based on configs present in globalConfig" - "in in `default/data/ui/nav` folder." + "in `default/data/ui/nav` folder." ) def _set_attributes(self, **kwargs: Any) -> None: @@ -45,6 +45,7 @@ def _set_attributes(self, **kwargs: Any) -> None: self.default_xml_content = data_ui_generator.generate_nav_default_xml( include_inputs=self._global_config.has_inputs(), include_dashboard=self._global_config.has_dashboard(), + include_configuration=self._global_config.has_configuration(), default_view=self._global_config.meta.get( "default_view", data_ui_generator.DEFAULT_VIEW ), diff --git a/splunk_add_on_ucc_framework/global_config.py b/splunk_add_on_ucc_framework/global_config.py index 9f066e044..2f334e5d5 100644 --- a/splunk_add_on_ucc_framework/global_config.py +++ b/splunk_add_on_ucc_framework/global_config.py @@ -88,11 +88,12 @@ def expand(self) -> None: self.expand_entities() def expand_tabs(self) -> None: - for i, tab in enumerate(self._content["pages"]["configuration"]["tabs"]): - self._content["pages"]["configuration"]["tabs"][i] = resolve_tab(tab) + if self.has_configuration: + for i, tab in enumerate(self._content["pages"]["configuration"]["tabs"]): + self._content["pages"]["configuration"]["tabs"][i] = resolve_tab(tab) def expand_entities(self) -> None: - self._expand_entities(self._content["pages"]["configuration"]["tabs"]) + self._expand_entities(self._content["pages"].get("configuration", {})["tabs"]) self._expand_entities(self._content["pages"].get("inputs", {}).get("services")) self._expand_entities(self._content.get("alerts")) From b0c1d456199cb900a75738c66e32be27f96a759d Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Thu, 2 Jan 2025 15:59:10 +0530 Subject: [PATCH 04/20] test: add unit test cases --- .../openapi_generator/test_ucc_to_oas.py | 14 + tests/unit/conftest.py | 9 + tests/unit/test_data_ui_generator.py | 24 + tests/unit/test_global_config.py | 2 + .../global_config_no_configuration.json | 174 ++++++ .../testdata/openapi.json.no_config.generated | 581 ++++++++++++++++++ 6 files changed, 804 insertions(+) create mode 100644 tests/unit/testdata/global_config_no_configuration.json create mode 100644 tests/unit/testdata/openapi.json.no_config.generated diff --git a/tests/unit/commands/openapi_generator/test_ucc_to_oas.py b/tests/unit/commands/openapi_generator/test_ucc_to_oas.py index 15099822f..caa0183f0 100644 --- a/tests/unit/commands/openapi_generator/test_ucc_to_oas.py +++ b/tests/unit/commands/openapi_generator/test_ucc_to_oas.py @@ -9,6 +9,20 @@ def test_transform_config_all(global_config_all_json, app_manifest_correct): openapi_object = ucc_to_oas.transform(global_config_all_json, app_manifest_correct) expected_open_api_json = get_testdata_file("openapi.json.valid_config.generated") + + assert json.loads(expected_open_api_json) == openapi_object.json + + +def test_transform_no_configuration( + global_config_no_configuration, app_manifest_correct +): + openapi_object = ucc_to_oas.transform( + global_config_no_configuration, app_manifest_correct + ) + + print("\n\n api object", openapi_object) + + expected_open_api_json = get_testdata_file("openapi.json.no_config.generated") assert json.loads(expected_open_api_json) == openapi_object.json diff --git a/tests/unit/conftest.py b/tests/unit/conftest.py index 99ade67a7..025e1d6c6 100644 --- a/tests/unit/conftest.py +++ b/tests/unit/conftest.py @@ -31,6 +31,15 @@ def global_config_all_json() -> global_config_lib.GlobalConfig: return global_config +@pytest.fixture +def global_config_no_configuration() -> global_config_lib.GlobalConfig: + global_config_path = helpers.get_testdata_file_path( + "global_config_no_configuration.json" + ) + global_config = global_config_lib.GlobalConfig(global_config_path) + return global_config + + @pytest.fixture def global_config_all_yaml() -> global_config_lib.GlobalConfig: global_config_path = helpers.get_testdata_file_path("valid_config.yaml") diff --git a/tests/unit/test_data_ui_generator.py b/tests/unit/test_data_ui_generator.py index 0ca2c14a6..e65337075 100644 --- a/tests/unit/test_data_ui_generator.py +++ b/tests/unit/test_data_ui_generator.py @@ -7,6 +7,7 @@ def test_generate_nav_default_xml(): result = data_ui_generator.generate_nav_default_xml( include_inputs=True, include_dashboard=True, + include_configuration=True, default_view="configuration", ) @@ -27,6 +28,7 @@ def test_generate_nav_default_xml_only_configuration(): result = data_ui_generator.generate_nav_default_xml( include_inputs=False, include_dashboard=False, + include_configuration=True, default_view="configuration", ) @@ -45,6 +47,7 @@ def test_generate_nav_default_xml_with_default_inputs_page(): result = data_ui_generator.generate_nav_default_xml( include_inputs=True, include_dashboard=False, + include_configuration=True, default_view="inputs", ) @@ -64,6 +67,7 @@ def test_generate_nav_default_xml_with_default_dashboard_page(): result = data_ui_generator.generate_nav_default_xml( include_inputs=True, include_dashboard=True, + include_configuration=True, default_view="dashboard", ) @@ -84,6 +88,7 @@ def test_generate_nav_default_xml_with_search_view_default(): result = data_ui_generator.generate_nav_default_xml( include_inputs=False, include_dashboard=False, + include_configuration=True, default_view="search", ) @@ -98,6 +103,25 @@ def test_generate_nav_default_xml_with_search_view_default(): assert " ".join([str(item) for item in diff]) == "" +def test_generate_nav_default_xml_with_no_configuration(): + result = data_ui_generator.generate_nav_default_xml( + include_inputs=True, + include_dashboard=False, + include_configuration=False, + default_view="search", + ) + + expected_result = """ + +""" + diff = xmldiff.main.diff_texts(result, expected_result) + + assert " ".join([str(item) for item in diff]) == "" + + def test_generate_views_inputs_xml(): result = data_ui_generator.generate_views_inputs_xml("Splunk_TA_UCCExample") diff --git a/tests/unit/test_global_config.py b/tests/unit/test_global_config.py index 721062034..908872688 100644 --- a/tests/unit/test_global_config.py +++ b/tests/unit/test_global_config.py @@ -26,6 +26,7 @@ def test_global_config_parse(filename): assert global_config.original_path == global_config_path assert global_config.schema_version == "0.0.3" assert global_config.version == "1.0.0" + assert global_config.has_configuration is True assert global_config.has_inputs() is True assert global_config.has_alerts() is True assert global_config.has_oauth() is True @@ -65,6 +66,7 @@ def test_global_config_configs(global_config_only_configuration): def test_global_config_only_configuration(global_config_only_configuration): + assert global_config_only_configuration.has_configuration() is True assert global_config_only_configuration.has_inputs() is False assert global_config_only_configuration.has_alerts() is False assert global_config_only_configuration.has_oauth() is False diff --git a/tests/unit/testdata/global_config_no_configuration.json b/tests/unit/testdata/global_config_no_configuration.json new file mode 100644 index 000000000..180f86bc9 --- /dev/null +++ b/tests/unit/testdata/global_config_no_configuration.json @@ -0,0 +1,174 @@ +{ + "pages": { + "inputs": { + "title": "Inputs", + "services": [ + { + "name": "example_input_one", + "description": "This is a description for Input One", + "title": "Example Input", + "entity": [ + { + "type": "text", + "label": "Name", + "validators": [ + { + "type": "regex", + "errorMsg": "Input Name must begin with a letter and consist exclusively of alphanumeric characters and underscores.", + "pattern": "^[a-zA-Z]\\w*$" + }, + { + "type": "string", + "errorMsg": "Length of input name should be between 1 and 100", + "minLength": 1, + "maxLength": 100 + } + ], + "field": "name", + "help": "A unique name for the data input.", + "required": true + }, + { + "type": "interval", + "field": "interval", + "label": "Interval", + "help": "Time interval of the data input, in seconds.", + "required": true + } + ], + "table": { + "actions": [ + "edit", + "delete", + "clone" + ], + "header": [ + { + "label": "Name", + "field": "name" + }, + { + "label": "Interval", + "field": "interval" + }, + { + "label": "Status", + "field": "disabled" + } + ], + "moreInfo": [ + { + "label": "Name", + "field": "name" + }, + { + "label": "Interval", + "field": "interval" + }, + { + "label": "Status", + "field": "disabled" + } + ] + }, + "warning": { + "create": { + "message": "Warning text for create mode" + }, + "edit": { + "message": "Warning text for edit mode" + }, + "clone": { + "message": "Warning text for clone mode" + }, + "config": { + "message": "Warning text for config mode" + } + } + }, + { + "name": "example_input_two", + "description": "This is a description for Input Two", + "title": "Example Input Two", + "entity": [ + { + "type": "text", + "label": "Name", + "validators": [ + { + "type": "regex", + "errorMsg": "Input Name must begin with a letter and consist exclusively of alphanumeric characters and underscores.", + "pattern": "^[a-zA-Z]\\w*$" + }, + { + "type": "string", + "errorMsg": "Length of input name should be between 1 and 100", + "minLength": 1, + "maxLength": 100 + } + ], + "field": "name", + "help": "A unique name for the data input.", + "required": true + }, + { + "type": "interval", + "field": "interval", + "label": "Interval", + "help": "Time interval of the data input, in seconds.", + "required": true + } + ], + "table": { + "actions": [ + "edit", + "delete", + "clone" + ], + "header": [ + { + "label": "Name", + "field": "name" + }, + { + "label": "Interval", + "field": "interval" + }, + { + "label": "Status", + "field": "disabled" + } + ], + "moreInfo": [ + { + "label": "Name", + "field": "name" + }, + { + "label": "Interval", + "field": "interval" + }, + { + "label": "Status", + "field": "disabled" + } + ], + "customRow": { + "type": "external", + "src": "custom_row" + } + }, + "useInputToggleConfirmation": true + } + ] + } + }, + "meta": { + "name": "Splunk_TA_UCCExample", + "restRoot": "splunk_ta_uccexample", + "version": "5.55.0+1aba2ef4f", + "displayName": "Splunk UCC test Add-on", + "schemaVersion": "0.0.9", + "_uccVersion": "5.55.0" + } +} diff --git a/tests/unit/testdata/openapi.json.no_config.generated b/tests/unit/testdata/openapi.json.no_config.generated new file mode 100644 index 000000000..160aff0be --- /dev/null +++ b/tests/unit/testdata/openapi.json.no_config.generated @@ -0,0 +1,581 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Splunk_TA_UCCExample", + "version": "5.55.0+1aba2ef4f", + "description": "Splunk UCC test Add-on", + "contact": { + "name": "Splunk Inc.", + "email": "addonfactory@splunk.com" + }, + "license": { + "name": "Apache-2.0", + "url": "https://www.apache.org/licenses/LICENSE-2.0" + } + }, + "servers": [ + { + "url": "https://{domain}:{port}/servicesNS/-/Splunk_TA_UCCExample", + "variables": { + "domain": { + "default": "localhost" + }, + "port": { + "default": "8089" + } + }, + "description": "Access via management interface" + } + ], + "components": { + "schemas": { + "example_input_one": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "interval": { + "type": "string" + }, + "disabled": { + "type": "string", + "enum": [ + "False", + "True" + ] + } + } + }, + "example_input_one_without_name": { + "type": "object", + "properties": { + "interval": { + "type": "string" + }, + "disabled": { + "type": "string", + "enum": [ + "False", + "True" + ] + } + } + }, + "example_input_one_without_disabled": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "interval": { + "type": "string" + } + } + }, + "example_input_two": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "interval": { + "type": "string" + }, + "disabled": { + "type": "string", + "enum": [ + "False", + "True" + ] + } + } + }, + "example_input_two_without_name": { + "type": "object", + "properties": { + "interval": { + "type": "string" + }, + "disabled": { + "type": "string", + "enum": [ + "False", + "True" + ] + } + } + }, + "example_input_two_without_disabled": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "interval": { + "type": "string" + } + } + } + }, + "securitySchemes": { + "BasicAuth": { + "type": "http", + "scheme": "basic" + } + } + }, + "paths": { + "/splunk_ta_uccexample_example_input_one": { + "get": { + "responses": { + "200": { + "description": "Get list of items for example_input_one", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_one_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Get list of items for example_input_one", + "deprecated": false + }, + "post": { + "responses": { + "200": { + "description": "Create item in example_input_one", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_one_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Create item in example_input_one", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/example_input_one_without_disabled" + } + } + }, + "required": false + }, + "deprecated": false + }, + "parameters": [ + { + "name": "output_mode", + "in": "query", + "required": true, + "description": "Output mode", + "schema": { + "type": "string", + "enum": [ + "json" + ], + "default": "json" + } + } + ] + }, + "/splunk_ta_uccexample_example_input_one/{name}": { + "get": { + "responses": { + "200": { + "description": "Get example_input_one item details", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_one_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Get example_input_one item details", + "deprecated": false + }, + "post": { + "responses": { + "200": { + "description": "Update example_input_one item", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_one_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Update example_input_one item", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/example_input_one_without_name" + } + } + }, + "required": false + }, + "deprecated": false + }, + "delete": { + "responses": { + "200": { + "description": "Delete example_input_one item", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_one_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Delete example_input_one item", + "deprecated": false + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "description": "The name of the item to operate on", + "schema": { + "type": "string" + } + }, + { + "name": "output_mode", + "in": "query", + "required": true, + "description": "Output mode", + "schema": { + "type": "string", + "enum": [ + "json" + ], + "default": "json" + } + } + ] + }, + "/splunk_ta_uccexample_example_input_two": { + "get": { + "responses": { + "200": { + "description": "Get list of items for example_input_two", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_two_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Get list of items for example_input_two", + "deprecated": false + }, + "post": { + "responses": { + "200": { + "description": "Create item in example_input_two", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_two_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Create item in example_input_two", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/example_input_two_without_disabled" + } + } + }, + "required": false + }, + "deprecated": false + }, + "parameters": [ + { + "name": "output_mode", + "in": "query", + "required": true, + "description": "Output mode", + "schema": { + "type": "string", + "enum": [ + "json" + ], + "default": "json" + } + } + ] + }, + "/splunk_ta_uccexample_example_input_two/{name}": { + "get": { + "responses": { + "200": { + "description": "Get example_input_two item details", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_two_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Get example_input_two item details", + "deprecated": false + }, + "post": { + "responses": { + "200": { + "description": "Update example_input_two item", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_two_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Update example_input_two item", + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/example_input_two_without_name" + } + } + }, + "required": false + }, + "deprecated": false + }, + "delete": { + "responses": { + "200": { + "description": "Delete example_input_two item", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "entry": { + "type": "array", + "items": { + "type": "object", + "properties": { + "name": { + "type": "string" + }, + "content": { + "$ref": "#/components/schemas/example_input_two_without_name" + } + } + } + } + } + } + } + } + } + }, + "description": "Delete example_input_two item", + "deprecated": false + }, + "parameters": [ + { + "name": "name", + "in": "path", + "required": true, + "description": "The name of the item to operate on", + "schema": { + "type": "string" + } + }, + { + "name": "output_mode", + "in": "query", + "required": true, + "description": "Output mode", + "schema": { + "type": "string", + "enum": [ + "json" + ], + "default": "json" + } + } + ] + } + }, + "security": [ + { + "BasicAuth": [] + } + ] +} \ No newline at end of file From 1bb56cc10e4f86bdf64ae002387afa8e5f2d4483 Mon Sep 17 00:00:00 2001 From: rohanm-crest Date: Fri, 3 Jan 2025 12:18:55 +0530 Subject: [PATCH 05/20] fix: resolve typescript issue in configuration --- ui/src/components/EntityModal/TestConfig.ts | 9 +++++++++ ui/src/components/FormModifications/TestConfig.ts | 1 + ui/src/pages/Configuration/ConfigurationPage.tsx | 11 +++++++++-- ui/src/types/globalConfig/pages.ts | 14 ++++++++------ 4 files changed, 27 insertions(+), 8 deletions(-) diff --git a/ui/src/components/EntityModal/TestConfig.ts b/ui/src/components/EntityModal/TestConfig.ts index 6a5a85070..35a120482 100644 --- a/ui/src/components/EntityModal/TestConfig.ts +++ b/ui/src/components/EntityModal/TestConfig.ts @@ -94,6 +94,7 @@ export const getConfigBasicOauthDisableonEdit = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: entityBasicOauthDisableonEdit, ...defaultTableProps }], }, }, @@ -109,6 +110,7 @@ export const getConfigOauthOauthDisableonEdit = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: entityOauthOauthDisableonEdit, ...defaultTableProps }], }, }, @@ -168,6 +170,7 @@ export const getConfigAccessTokenMock = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: accessTokenMock, ...defaultTableProps }], }, }, @@ -215,6 +218,7 @@ export const getConfigEnableFalseForOauth = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: entityEnableFalseForOauthField, ...defaultTableProps }], }, }, @@ -244,6 +248,7 @@ export const getConfigWarningMessage = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [ { entity: accessTokenMock, ...defaultTableProps, warning: WARNING_MESSAGES }, ], @@ -261,6 +266,7 @@ export const getConfigWarningMessageAlwaysDisplay = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [ { entity: accessTokenMock, @@ -314,6 +320,7 @@ export const getConfigFullyEnabledField = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: entityBasicOauthFullyEnabledField, ...defaultTableProps }], }, }, @@ -364,6 +371,7 @@ export const getConfigWithOauthDefaultValue = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: entityBasicOauthDefaultValue, ...defaultTableProps }], }, }, @@ -435,6 +443,7 @@ export const getConfigWithSeparatedEndpointsOAuth = () => { ...globalConfig.pages, configuration: { ...globalConfig.pages.configuration, + title: globalConfig.pages.configuration?.title ?? '', tabs: [{ entity: entityOauthOauthSeparatedEndpoints, ...defaultTableProps }], }, }, diff --git a/ui/src/components/FormModifications/TestConfig.ts b/ui/src/components/FormModifications/TestConfig.ts index 0825e24c4..fd0f83ad0 100644 --- a/ui/src/components/FormModifications/TestConfig.ts +++ b/ui/src/components/FormModifications/TestConfig.ts @@ -146,6 +146,7 @@ export const getConfigWithModifications = () => { ...standardConfig.pages, configuration: { ...standardConfig.pages.configuration, + title: standardConfig.pages.configuration?.title ?? '', tabs: [ { entity: [ diff --git a/ui/src/pages/Configuration/ConfigurationPage.tsx b/ui/src/pages/Configuration/ConfigurationPage.tsx index 4914e9158..5d37ea416 100644 --- a/ui/src/pages/Configuration/ConfigurationPage.tsx +++ b/ui/src/pages/Configuration/ConfigurationPage.tsx @@ -46,9 +46,12 @@ type Tab = z.infer; function ConfigurationPage() { const unifiedConfigs = getUnifiedConfigs(); - const { title, description, subDescription, tabs } = unifiedConfigs.pages.configuration; - const platform = usePlatform(unifiedConfigs, 'configuration'); + const configPage = unifiedConfigs.pages?.configuration; + const tabs = useMemo(() => configPage?.tabs ?? [], [configPage]); + const title = configPage?.title ?? ''; + const description = configPage?.description ?? ''; + const subDescription = configPage?.subDescription ?? undefined; const filteredTabs = (tabs ?? []).filter( (tab) => !shouldHideForPlatform(tab.hideForPlatform, platform) @@ -91,6 +94,10 @@ function ConfigurationPage() { } }, []); + if (!configPage) { + return null; + } + const updateIsPageOpen = (data: boolean) => { if (isComponentMounted.current) { setIsPageOpen(data); diff --git a/ui/src/types/globalConfig/pages.ts b/ui/src/types/globalConfig/pages.ts index 3b13612c3..fe2d5f3c3 100644 --- a/ui/src/types/globalConfig/pages.ts +++ b/ui/src/types/globalConfig/pages.ts @@ -160,12 +160,14 @@ const InputsPageSchema = z.union([InputsPageRegular, InputsPageTableSchema]).opt const ServiceTableSchema = z.union([TableFullServiceSchema, TableLessServiceSchema]); export const pages = z.object({ - configuration: z.object({ - title: z.string(), - description: z.string().optional(), - subDescription: SubDescriptionSchema, - tabs: z.array(TabSchema).min(1), - }).optional(), + configuration: z + .object({ + title: z.string(), + description: z.string().optional(), + subDescription: SubDescriptionSchema, + tabs: z.array(TabSchema).min(1), + }) + .optional(), inputs: InputsPageSchema, dashboard: z .object({ From 3995495a7a5449c28f02f1d3c7776c86f3112690 Mon Sep 17 00:00:00 2001 From: srv-rr-github-token <94607705+srv-rr-github-token@users.noreply.github.com> Date: Fri, 3 Jan 2025 12:32:56 +0000 Subject: [PATCH 06/20] docs: updated docs regarding generated conf, xml and html files --- docs/generated_files.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/generated_files.md b/docs/generated_files.md index 582f41de5..93bb79779 100644 --- a/docs/generated_files.md +++ b/docs/generated_files.md @@ -18,7 +18,7 @@ The following table describes the files generated by UCC framework. | _settings.conf | output/<YOUR_ADDON_NAME>/README | Generates `_settings.conf.spec` file for the Proxy, Logging or Custom Tab mentioned in globalConfig | | configuration.xml | output/<YOUR_ADDON_NAME>/default/data/ui/views | Generates configuration.xml file in `default/data/ui/views/` folder if globalConfig is present. | | dashboard.xml | output/<YOUR_ADDON_NAME>/default/data/ui/views | Generates dashboard.xml file based on dashboard configuration present in globalConfig in `default/data/ui/views` folder. | -| default.xml | output/<YOUR_ADDON_NAME>/default/data/ui/nav | Generates default.xml file based on configs present in globalConfigin in `default/data/ui/nav` folder. | +| default.xml | output/<YOUR_ADDON_NAME>/default/data/ui/nav | Generates default.xml file based on configs present in globalConfigin `default/data/ui/nav` folder. | | inputs.xml | output/<YOUR_ADDON_NAME>/default/data/ui/views | Generates inputs.xml based on inputs configuration present in globalConfig, in `default/data/ui/views/inputs.xml` folder | | _redirect.xml | output/<YOUR_ADDON_NAME>/default/data/ui/views | Generates ta_name_redirect.xml file, if oauth is mentioned in globalConfig,in `default/data/ui/views/` folder. | | _.html | output/<YOUR_ADDON_NAME>/default/data/ui/alerts | Generates `alert_name.html` file based on alerts configuration present in globalConfig in `default/data/ui/alerts` folder. | From 50c7a48523d830a2e8ca865bfa02f915f1246fad Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Fri, 3 Jan 2025 17:39:18 +0530 Subject: [PATCH 07/20] fix: fix congiguration.xml generation --- splunk_add_on_ucc_framework/commands/build.py | 3 ++- splunk_add_on_ucc_framework/data_ui_generator.py | 14 +++++++------- splunk_add_on_ucc_framework/global_config.py | 2 +- .../global_config_validator.py | 1 - .../commands/openapi_generator/test_ucc_to_oas.py | 3 --- tests/unit/test_global_config.py | 2 +- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/splunk_add_on_ucc_framework/commands/build.py b/splunk_add_on_ucc_framework/commands/build.py index 75ae08b3c..beb82e10b 100644 --- a/splunk_add_on_ucc_framework/commands/build.py +++ b/splunk_add_on_ucc_framework/commands/build.py @@ -463,7 +463,7 @@ def generate( logger.info( f"Updated and saved add-on version in the globalConfig file to {addon_version}" ) - if global_config.has_configuration: + if global_config.has_configuration(): global_config.expand() if ta_name != global_config.product: logger.error( @@ -663,6 +663,7 @@ def generate( if global_config: logger.info("Generating OpenAPI file") open_api_object = ucc_to_oas.transform(global_config, app_manifest) + # print("\n\n open_aopu",open_api_object) output_openapi_folder = os.path.abspath( os.path.join(output_directory, ta_name, "appserver", "static") diff --git a/splunk_add_on_ucc_framework/data_ui_generator.py b/splunk_add_on_ucc_framework/data_ui_generator.py index 9d114faa1..fc4212bf2 100644 --- a/splunk_add_on_ucc_framework/data_ui_generator.py +++ b/splunk_add_on_ucc_framework/data_ui_generator.py @@ -42,13 +42,6 @@ def generate_nav_default_xml( The validation is being done in `_validate_meta_default_view` function from `global_config_validator.py` file. """ nav = ET.Element("nav") - if include_configuration: - if default_view == "configuration": - ET.SubElement( - nav, "view", attrib={"name": "configuration", "default": "true"} - ) - else: - ET.SubElement(nav, "view", attrib={"name": "configuration"}) if include_inputs: if ( not (include_configuration) and default_view == "configuration" @@ -57,6 +50,13 @@ def generate_nav_default_xml( else: ET.SubElement(nav, "view", attrib={"name": "inputs"}) + if include_configuration: + if default_view == "configuration": + ET.SubElement( + nav, "view", attrib={"name": "configuration", "default": "true"} + ) + else: + ET.SubElement(nav, "view", attrib={"name": "configuration"}) if include_dashboard: if default_view == "dashboard": ET.SubElement(nav, "view", attrib={"name": "dashboard", "default": "true"}) diff --git a/splunk_add_on_ucc_framework/global_config.py b/splunk_add_on_ucc_framework/global_config.py index 2f334e5d5..f85c197db 100644 --- a/splunk_add_on_ucc_framework/global_config.py +++ b/splunk_add_on_ucc_framework/global_config.py @@ -88,7 +88,7 @@ def expand(self) -> None: self.expand_entities() def expand_tabs(self) -> None: - if self.has_configuration: + if self.has_configuration(): for i, tab in enumerate(self._content["pages"]["configuration"]["tabs"]): self._content["pages"]["configuration"]["tabs"][i] = resolve_tab(tab) diff --git a/splunk_add_on_ucc_framework/global_config_validator.py b/splunk_add_on_ucc_framework/global_config_validator.py index 83a5e2acf..2dbd58ed6 100644 --- a/splunk_add_on_ucc_framework/global_config_validator.py +++ b/splunk_add_on_ucc_framework/global_config_validator.py @@ -716,7 +716,6 @@ def _validate_meta_default_view(self) -> None: def validate(self) -> None: self._validate_config_against_schema() if self._config["pages"].get("configuration"): - print("\n HIIII") self._validate_configuration_tab_table_has_name_field() self._validate_file_type_entity() self._validate_custom_rest_handlers() diff --git a/tests/unit/commands/openapi_generator/test_ucc_to_oas.py b/tests/unit/commands/openapi_generator/test_ucc_to_oas.py index caa0183f0..3d72f2335 100644 --- a/tests/unit/commands/openapi_generator/test_ucc_to_oas.py +++ b/tests/unit/commands/openapi_generator/test_ucc_to_oas.py @@ -9,7 +9,6 @@ def test_transform_config_all(global_config_all_json, app_manifest_correct): openapi_object = ucc_to_oas.transform(global_config_all_json, app_manifest_correct) expected_open_api_json = get_testdata_file("openapi.json.valid_config.generated") - assert json.loads(expected_open_api_json) == openapi_object.json @@ -20,8 +19,6 @@ def test_transform_no_configuration( global_config_no_configuration, app_manifest_correct ) - print("\n\n api object", openapi_object) - expected_open_api_json = get_testdata_file("openapi.json.no_config.generated") assert json.loads(expected_open_api_json) == openapi_object.json diff --git a/tests/unit/test_global_config.py b/tests/unit/test_global_config.py index 908872688..03c591f99 100644 --- a/tests/unit/test_global_config.py +++ b/tests/unit/test_global_config.py @@ -26,7 +26,7 @@ def test_global_config_parse(filename): assert global_config.original_path == global_config_path assert global_config.schema_version == "0.0.3" assert global_config.version == "1.0.0" - assert global_config.has_configuration is True + assert global_config.has_configuration() is True assert global_config.has_inputs() is True assert global_config.has_alerts() is True assert global_config.has_oauth() is True From a4bc6791c84d63475cae13600f6755d2f77aa045 Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Fri, 3 Jan 2025 17:41:32 +0530 Subject: [PATCH 08/20] tests: add unit and smoke test case --- .../xml_files/create_configuration_xml.py | 4 +- tests/smoke/test_ucc_build.py | 60 ++ .../test_create_configuration_xml.py | 54 +- .../global_config_no_configuration.json | 9 +- .../testdata/openapi.json.no_config.generated | 4 +- .../valid_config_no_configuration.json | 754 ++++++++++++++++++ 6 files changed, 878 insertions(+), 7 deletions(-) create mode 100644 tests/unit/testdata/valid_config_no_configuration.json diff --git a/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py b/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py index 941ccd49a..b004a93fd 100644 --- a/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py +++ b/splunk_add_on_ucc_framework/generators/xml_files/create_configuration_xml.py @@ -14,7 +14,7 @@ # limitations under the License. # from splunk_add_on_ucc_framework.generators.xml_files import XMLGenerator -from typing import Any, Dict +from typing import Any, Dict, Union from splunk_add_on_ucc_framework import data_ui_generator @@ -29,7 +29,7 @@ def _set_attributes(self, **kwargs: Any) -> None: ) ) - def generate_xml(self) -> Dict[str, str]: + def generate_xml(self) -> Union[Dict[str, str], None]: if self._global_config and not self._global_config.has_configuration(): return None file_path = self.get_file_output_path( diff --git a/tests/smoke/test_ucc_build.py b/tests/smoke/test_ucc_build.py index 0620e5b33..3fc25fb03 100644 --- a/tests/smoke/test_ucc_build.py +++ b/tests/smoke/test_ucc_build.py @@ -293,6 +293,66 @@ def test_ucc_generate_with_configuration(): assert path.exists(actual_file_path) +def test_ucc_generate_with_no_configuration(): + with tempfile.TemporaryDirectory() as temp_dir: + package_folder = path.join( + path.dirname(path.realpath(__file__)), + "..", + "testdata", + "test_addons", + "package_global_config_no_configuration", + "package", + ) + build.generate( + source=package_folder, output_directory=temp_dir, addon_version="1.1.1" + ) + + expected_folder = path.join( + path.dirname(__file__), + "..", + "testdata", + "expected_addons", + "expected_addon_no_configuration", + "Splunk_TA_UCCExample", + ) + actual_folder = path.join(temp_dir, "Splunk_TA_UCCExample") + + # app.manifest and appserver/static/js/build/globalConfig.json + # should be included too, but they may introduce flaky tests as + # their content depends on the git commit. + _compare_app_conf(expected_folder, actual_folder) + # Expected add-on package folder does not have "lib" in it. + files_to_be_equal = [ + ("README.txt",), + ("default", "restmap.conf"), + ("default", "inputs.conf"), + ("default", "web.conf"), + ("default", "data", "ui", "nav", "default.xml"), + ("default", "data", "ui", "views", "inputs.xml"), + ("bin", "example_input_one.py"), + ("bin", "example_input_two.py"), + ("bin", "import_declare_test.py"), + ("bin", "splunk_ta_uccexample_rh_example_input_one.py"), + ("bin", "splunk_ta_uccexample_rh_example_input_two.py"), + ("README", "inputs.conf.spec"), + ("metadata", "default.meta"), + ] + helpers.compare_file_content( + files_to_be_equal, + expected_folder, + actual_folder, + ) + files_to_exist = [ + ("static", "appIcon.png"), + ("static", "appIcon_2x.png"), + ("static", "appIconAlt.png"), + ("static", "appIconAlt_2x.png"), + ] + for f in files_to_exist: + actual_file_path = path.join(actual_folder, *f) + assert path.exists(actual_file_path) + + def test_ucc_generate_with_configuration_files_only(): with tempfile.TemporaryDirectory() as temp_dir: package_folder = path.join( diff --git a/tests/unit/generators/xml_files/test_create_configuration_xml.py b/tests/unit/generators/xml_files/test_create_configuration_xml.py index 271ef1a7e..8e34a8f47 100644 --- a/tests/unit/generators/xml_files/test_create_configuration_xml.py +++ b/tests/unit/generators/xml_files/test_create_configuration_xml.py @@ -2,12 +2,17 @@ from unittest.mock import patch, MagicMock from splunk_add_on_ucc_framework.generators.xml_files import ConfigurationXml from splunk_add_on_ucc_framework.global_config import GlobalConfig -import tests.unit.helpers as helpers +from tests.unit.helpers import get_testdata_file_path @fixture def global_config(): - return GlobalConfig(helpers.get_testdata_file_path("valid_config.json")) + return GlobalConfig(get_testdata_file_path("valid_config.json")) + + +@fixture +def global_config_without_configuration(): + return GlobalConfig(get_testdata_file_path("valid_config_no_configuration.json")) @fixture @@ -47,6 +52,51 @@ def test_set_attributes( assert hasattr(config_xml, "configuration_xml_content") +def test_set_attributes_without_inputs( + global_config_without_configuration, + input_dir, + output_dir, + ucc_dir, + ta_name, +): + config_xml = ConfigurationXml( + global_config=global_config_without_configuration, + input_dir=input_dir, + output_dir=output_dir, + ucc_dir=ucc_dir, + addon_name=ta_name, + ) + assert not hasattr(config_xml, "configuration_xml_content") + + +@patch( + "splunk_add_on_ucc_framework.generators.xml_files.ConfigurationXml._set_attributes", + return_value=MagicMock(), +) +def test_generate_xml_without_inputs( + mock_set_attributes, + global_config_without_configuration, + input_dir, + output_dir, + ucc_dir, + ta_name, +): + configuration_xml = ConfigurationXml( + global_config=global_config_without_configuration, + input_dir=input_dir, + output_dir=output_dir, + ucc_dir=ucc_dir, + addon_name=ta_name, + ) + + mock_writer = MagicMock() + with patch.object(configuration_xml, "writer", mock_writer): + file_paths = configuration_xml.generate_xml() + + # Assert that no files are returned since no dashboard is configured + assert file_paths is None + + @patch( "splunk_add_on_ucc_framework.generators.xml_files.ConfigurationXml._set_attributes", return_value=MagicMock(), diff --git a/tests/unit/testdata/global_config_no_configuration.json b/tests/unit/testdata/global_config_no_configuration.json index 180f86bc9..684ccab6b 100644 --- a/tests/unit/testdata/global_config_no_configuration.json +++ b/tests/unit/testdata/global_config_no_configuration.json @@ -161,12 +161,19 @@ "useInputToggleConfirmation": true } ] + }, + "dashboard": { + "panels": [ + { + "name": "default" + } + ] } }, "meta": { "name": "Splunk_TA_UCCExample", "restRoot": "splunk_ta_uccexample", - "version": "5.55.0+1aba2ef4f", + "version": "5.55.0+1bb56cc1", "displayName": "Splunk UCC test Add-on", "schemaVersion": "0.0.9", "_uccVersion": "5.55.0" diff --git a/tests/unit/testdata/openapi.json.no_config.generated b/tests/unit/testdata/openapi.json.no_config.generated index 160aff0be..7bb80d7f9 100644 --- a/tests/unit/testdata/openapi.json.no_config.generated +++ b/tests/unit/testdata/openapi.json.no_config.generated @@ -2,10 +2,10 @@ "openapi": "3.0.0", "info": { "title": "Splunk_TA_UCCExample", - "version": "5.55.0+1aba2ef4f", + "version": "5.55.0+1bb56cc1", "description": "Splunk UCC test Add-on", "contact": { - "name": "Splunk Inc.", + "name": "Splunk", "email": "addonfactory@splunk.com" }, "license": { diff --git a/tests/unit/testdata/valid_config_no_configuration.json b/tests/unit/testdata/valid_config_no_configuration.json new file mode 100644 index 000000000..e0e74a186 --- /dev/null +++ b/tests/unit/testdata/valid_config_no_configuration.json @@ -0,0 +1,754 @@ +{ + "pages": { + "inputs": { + "services": [ + { + "hook": { + "src": "Hook" + }, + "name": "example_input_one", + "entity": [ + { + "type": "text", + "label": "Name", + "validators": [ + { + "type": "regex", + "errorMsg": "Input Name must begin with a letter and consist exclusively of alphanumeric characters and underscores.", + "pattern": "^[a-zA-Z]\\w*$" + }, + { + "type": "string", + "errorMsg": "Length of input name should be between 1 and 100", + "minLength": 1, + "maxLength": 100 + } + ], + "field": "name", + "help": "A unique name for the data input.", + "required": true + }, + { + "type": "checkbox", + "label": "Example Checkbox", + "field": "input_one_checkbox", + "help": "This is an example checkbox for the input one entity" + }, + { + "type": "radio", + "label": "Example Radio", + "field": "input_one_radio", + "defaultValue": "yes", + "help": "This is an example radio button for the input one entity", + "required": false, + "options": { + "items": [ + { + "value": "yes", + "label": "Yes" + }, + { + "value": "no", + "label": "No" + } + ], + "display": true + } + }, + { + "field": "singleSelectTest", + "label": "Single Select Group Test", + "type": "singleSelect", + "options": { + "createSearchChoice": true, + "autoCompleteFields": [ + { + "label": "Group1", + "children": [ + { + "value": "one", + "label": "One" + }, + { + "value": "two", + "label": "Two" + } + ] + }, + { + "label": "Group2", + "children": [ + { + "value": "three", + "label": "Three" + }, + { + "value": "four", + "label": "Four" + } + ] + } + ] + } + }, + { + "field": "multipleSelectTest", + "label": "Multiple Select Test", + "type": "multipleSelect", + "options": { + "delimiter": "|", + "items": [ + { + "value": "a", + "label": "A" + }, + { + "value": "b", + "label": "B" + } + ] + } + }, + { + "type": "text", + "label": "Interval", + "validators": [ + { + "type": "regex", + "errorMsg": "Interval must be an integer.", + "pattern": "^\\-[1-9]\\d*$|^\\d*$" + } + ], + "field": "interval", + "help": "Time interval of the data input, in seconds.", + "required": true + }, + { + "type": "singleSelect", + "label": "Index", + "validators": [ + { + "type": "string", + "errorMsg": "Length of index name should be between 1 and 80.", + "minLength": 1, + "maxLength": 80 + } + ], + "defaultValue": "default", + "options": { + "endpointUrl": "data/indexes", + "denyList": "^_.*$", + "createSearchChoice": true + }, + "field": "index", + "required": true + }, + { + "type": "singleSelect", + "label": "Example Account", + "options": { + "referenceName": "account" + }, + "help": "", + "field": "account", + "required": true + }, + { + "type": "text", + "label": "Object", + "validators": [ + { + "type": "string", + "errorMsg": "Max length of text input is 8192", + "minLength": 0, + "maxLength": 8192 + } + ], + "field": "object", + "help": "The name of the object to query for.", + "required": true + }, + { + "type": "text", + "label": "Object Fields", + "validators": [ + { + "type": "string", + "errorMsg": "Max length of text input is 8192", + "minLength": 0, + "maxLength": 8192 + } + ], + "field": "object_fields", + "help": "Object fields from which to collect data. Delimit multiple fields using a comma.", + "required": true + }, + { + "type": "text", + "label": "Order By", + "validators": [ + { + "type": "string", + "errorMsg": "Max length of text input is 8192", + "minLength": 0, + "maxLength": 8192 + } + ], + "defaultValue": "LastModifiedDate", + "field": "order_by", + "help": "The datetime field by which to query results in ascending order for indexing.", + "required": true + }, + { + "type": "radio", + "label": "Use existing data input?", + "field": "use_existing_checkpoint", + "defaultValue": "yes", + "help": "Data input already exists. Select `No` if you want to reset the data collection.", + "required": false, + "options": { + "items": [ + { + "value": "yes", + "label": "Yes" + }, + { + "value": "no", + "label": "No" + } + ], + "display": false + } + }, + { + "type": "text", + "label": "Query Start Date", + "validators": [ + { + "type": "regex", + "errorMsg": "Invalid date and time format", + "pattern": "^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}z)?$" + } + ], + "field": "start_date", + "help": "The datetime after which to query and index records, in this format: \"YYYY-MM-DDThh:mm:ss.000z\".\nDefaults to 90 days earlier from now.", + "tooltip": "Changing this parameter may result in gaps or duplication in data collection.", + "required": false + }, + { + "type": "text", + "label": "Limit", + "validators": [ + { + "type": "string", + "errorMsg": "Max length of text input is 8192", + "minLength": 0, + "maxLength": 8192 + } + ], + "defaultValue": "1000", + "field": "limit", + "help": "The maximum number of results returned by the query.", + "required": false + }, + { + "field": "example_help_link", + "label": "", + "type": "helpLink", + "options": { + "text": "Help Link", + "link": "https://docs.splunk.com/Documentation" + } + } + ], + "title": "Example Input One" + }, + { + "name": "example_input_two", + "entity": [ + { + "type": "text", + "label": "Name", + "validators": [ + { + "type": "regex", + "errorMsg": "Input Name must begin with a letter and consist exclusively of alphanumeric characters and underscores.", + "pattern": "^[a-zA-Z]\\w*$" + }, + { + "type": "string", + "errorMsg": "Length of input name should be between 1 and 100", + "minLength": 1, + "maxLength": 100 + } + ], + "field": "name", + "help": "A unique name for the data input.", + "required": true + }, + { + "type": "text", + "label": "Interval", + "validators": [ + { + "type": "regex", + "errorMsg": "Interval must be an integer.", + "pattern": "^\\-[1-9]\\d*$|^\\d*$" + } + ], + "field": "interval", + "help": "Time interval of the data input, in seconds .", + "required": true + }, + { + "type": "singleSelect", + "label": "Index", + "validators": [ + { + "type": "string", + "errorMsg": "Length of index name should be between 1 and 80.", + "minLength": 1, + "maxLength": 80 + } + ], + "defaultValue": "default", + "options": { + "endpointUrl": "data/indexes", + "denyList": "^_.*$", + "createSearchChoice": true + }, + "field": "index", + "required": true + }, + { + "type": "singleSelect", + "label": "Example Account", + "options": { + "referenceName": "account" + }, + "help": "", + "field": "account", + "required": true + }, + { + "type": "multipleSelect", + "label": "Example Multiple Select", + "field": "input_two_multiple_select", + "help": "This is an example multipleSelect for input two entity", + "required": true, + "options": { + "items": [ + { + "value": "one", + "label": "Option One" + }, + { + "value": "two", + "label": "Option Two" + } + ] + } + }, + { + "type": "checkbox", + "label": "Example Checkbox", + "field": "input_two_checkbox", + "help": "This is an example checkbox for the input two entity" + }, + { + "type": "radio", + "label": "Example Radio", + "field": "input_two_radio", + "defaultValue": "yes", + "help": "This is an example radio button for the input two entity", + "required": false, + "options": { + "items": [ + { + "value": "yes", + "label": "Yes" + }, + { + "value": "no", + "label": "No" + } + ], + "display": true + } + }, + { + "type": "radio", + "label": "Use existing data input?", + "field": "use_existing_checkpoint", + "defaultValue": "yes", + "help": "Data input already exists. Select `No` if you want to reset the data collection.", + "required": false, + "options": { + "items": [ + { + "value": "yes", + "label": "Yes" + }, + { + "value": "no", + "label": "No" + } + ], + "display": false + } + }, + { + "type": "text", + "label": "Query Start Date", + "validators": [ + { + "type": "regex", + "errorMsg": "Invalid date and time format", + "pattern": "^(\\d{4}-\\d{2}-\\d{2}T\\d{2}:\\d{2}:\\d{2}.\\d{3}z)?$" + } + ], + "field": "start_date", + "help": "The date and time, in \"YYYY-MM-DDThh:mm:ss.000z\" format, after which to query and index records. \nThe default is 90 days before today.", + "tooltip": "Changing this parameter may result in gaps or duplication in data collection.", + "required": false + }, + { + "field": "example_help_link", + "label": "", + "type": "helpLink", + "options": { + "text": "Help Link", + "link": "https://docs.splunk.com/Documentation" + } + }, + { + "type": "checkboxGroup", + "label": "Two groups", + "field": "api1", + "options": { + "groups": [ + { + "label": "Collect", + "fields": [ + "collectFolderCollaboration", + "collectFileMetadata", + "collectTasksAndComments" + ] + }, + { + "label": "Collect2", + "options": { + "isExpandable": true + }, + "fields": ["collectFolderMetadata"] + } + ], + "rows": [ + { + "field": "collectFolderCollaboration", + "input": { + "defaultValue": 1200, + "required": false, + "validators": [ + { + "type": "number", + "range": [1, 1200] + } + ] + } + }, + { + "field": "collectFileMetadata", + "checkbox": { + "label": "Collect file metadata" + }, + "input": { + "defaultValue": 1, + "required": true + } + }, + { + "field": "collectTasksAndComments", + "checkbox": { + "label": "This is a very very long line" + }, + "input": { + "defaultValue": 1, + "required": true + } + }, + { + "field": "collectFolderMetadata", + "checkbox": { + "label": "Collect folder metadata" + }, + "input": { + "defaultValue": 3600, + "required": true + } + } + ] + } + }, + { + "type": "checkboxGroup", + "label": "No groups", + "field": "api2", + "options": { + "rows": [ + { + "field": "collectFolderMetadata", + "checkbox": { + "label": "Collect folder metadata", + "defaultValue": true + }, + "input": { + "defaultValue": 3600, + "required": true + } + }, + { + "field": "collectFolderCollaboration", + "checkbox": { + "label": "Collect folder collaboration" + }, + "input": { + "defaultValue": 1200, + "required": false, + "validators": [ + { + "type": "number", + "range": [1, 1200] + } + ] + } + }, + { + "field": "collectFileMetadata", + "checkbox": { + "label": "Collect file metadata" + }, + "input": { + "defaultValue": 1, + "required": true + } + }, + { + "field": "collectTasksAndComments", + "checkbox": { + "label": "Collect tasks and comments" + }, + "input": { + "defaultValue": 1, + "required": true + } + } + ] + } + }, + { + "type": "checkboxGroup", + "label": "Mixed", + "field": "api3", + "required": true, + "options": { + "groups": [ + { + "label": "Group 1", + "options": { + "isExpandable": true, + "expand": true + }, + "fields": ["collectFolderCollaboration"] + }, + { + "label": "Group 3", + "options": { + "isExpandable": true, + "expand": true + }, + "fields": ["collectFolderMetadata"] + } + ], + "rows": [ + { + "field": "collectFolderCollaboration", + "checkbox": { + "label": "Collect folder collaboration", + "defaultValue": true + }, + "input": { + "defaultValue": 1200, + "required": false + } + }, + { + "field": "collectFileMetadata", + "checkbox": { + "label": "Collect file metadata", + "defaultValue": false + }, + "input": { + "defaultValue": 1, + "required": true + } + }, + { + "field": "collectTasksAndComments", + "checkbox": { + "label": "Collect tasks and comments" + }, + "input": { + "defaultValue": 1, + "required": true + } + }, + { + "field": "collectFolderMetadata", + "checkbox": { + "label": "Collect folder metadata" + }, + "input": { + "defaultValue": 3600, + "required": true + } + }, + { + "field": "field223", + "checkbox": { + "label": "Required field" + }, + "input": { + "required": true + } + }, + { + "field": "field23", + "checkbox": { + "label": "No more 2 characters" + }, + "input": { + "defaultValue": 123 + } + }, + { + "field": "160validation", + "checkbox": { + "label": "from 1 to 60 validation" + }, + "input": { + "validators": [ + { + "type": "number", + "range": [1, 60] + } + ] + } + } + ] + } + } + ], + "title": "Example Input Two" + } + ], + "title": "Inputs", + "description": "Manage your data inputs", + "table": { + "actions": [ + "edit", + "delete", + "clone" + ], + "header": [ + { + "label": "Name", + "field": "name" + }, + { + "label": "Account Name", + "field": "account" + }, + { + "label": "Interval", + "field": "interval" + }, + { + "label": "Index", + "field": "index" + }, + { + "label": "Status", + "field": "disabled" + } + ], + "moreInfo": [ + { + "label": "Name", + "field": "name" + }, + { + "label": "Interval", + "field": "interval" + }, + { + "label": "Index", + "field": "index" + }, + { + "label": "Status", + "field": "disabled", + "mapping": { + "true": "Disabled", + "false": "Enabled" + } + }, + { + "label": "Example Account", + "field": "account" + }, + { + "label": "Object", + "field": "object" + }, + { + "label": "Object Fields", + "field": "object_fields" + }, + { + "label": "Order By", + "field": "order_by" + }, + { + "label": "Query Start Date", + "field": "start_date" + }, + { + "label": "Limit", + "field": "limit" + } + ] + } + }, + "dashboard": { + "panels": [ + { + "name": "default" + } + ], + "settings": { + "error_panel_log_lvl": [ + "ERROR", + "CRITICAL" + ] + } + } + }, + "meta": { + "name": "Splunk_TA_UCCExample", + "restRoot": "splunk_ta_uccexample", + "version": "1.0.0", + "displayName": "Splunk UCC test Add-on", + "schemaVersion": "0.0.3" + } +} \ No newline at end of file From 7264003c908afa65e5b6200acf76d2b8a4ec6066 Mon Sep 17 00:00:00 2001 From: hetangmodi-crest Date: Fri, 3 Jan 2025 18:50:15 +0530 Subject: [PATCH 09/20] test: add expected addons ui files --- .../appserver/static/js/build/entry_page.js | 48 + .../static/js/build/entry_page.licenses.txt | 2422 +++++++++++++++++ .../static/js/build/globalConfig.json | 181 ++ ...uccexample_redirect_page.5.5.8R5fd76615.js | 30 + .../appserver/static/openapi.json | 581 ++++ .../appserver/templates/base.html | 40 + .../Splunk_TA_UCCExample/static/appIcon.png | Bin 0 -> 3348 bytes .../static/appIconAlt.png | Bin 0 -> 3348 bytes .../static/appIconAlt_2x.png | Bin 0 -> 6738 bytes .../static/appIcon_2x.png | Bin 0 -> 6738 bytes 10 files changed, 3302 insertions(+) create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/entry_page.js create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/entry_page.licenses.txt create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/globalConfig.json create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/splunk_ta_uccexample_redirect_page.5.5.8R5fd76615.js create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/openapi.json create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/templates/base.html create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/static/appIcon.png create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/static/appIconAlt.png create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/static/appIconAlt_2x.png create mode 100644 tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/static/appIcon_2x.png diff --git a/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/entry_page.js b/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/entry_page.js new file mode 100644 index 000000000..a04f83176 --- /dev/null +++ b/tests/testdata/expected_addons/expected_addon_no_configuration/Splunk_TA_UCCExample/appserver/static/js/build/entry_page.js @@ -0,0 +1,48 @@ +!function(e){function t(t){for(var r,a,u=t[0],l=t[1],s=t[3]||[],f=0,p=[];f1?t-1:0),n=1;n0?" Args: "+r.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,r=0;r=this.groupSizes.length){for(var r=this.groupSizes,n=r.length,o=n;e>=o;)(o<<=1)<0&&S(16,""+e);this.groupSizes=new Uint32Array(o),this.groupSizes.set(r),this.length=o;for(var i=n;i=this.length||0===this.groupSizes[e])return t;for(var r=this.groupSizes[e],n=this.indexOfGroup(e),o=n+r,i=n;i=0;r--){var n=t[r];if(n&&1===n.nodeType&&n.hasAttribute(O))return n}}(r),i=void 0!==o?o.nextSibling:null;n.setAttribute(O,"active"),n.setAttribute("data-styled-version","5.2.1");var a=z();return a&&n.setAttribute("nonce",a),r.insertBefore(n,i),n},B=function(){function e(e){var t=this.element=F(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,r=0,n=t.length;r=0){var r=document.createTextNode(t),n=this.nodes[e];return this.element.insertBefore(r,n||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),n+=""+u+l+'{content:"'+c+'"}/*!sc*/\n'}}}return n}(this)},e}(),q=/(a)(d)/gi,K=function(e){return String.fromCharCode(e+(e>25?39:97))};function Z(e){var t,r="";for(t=Math.abs(e);t>52;t=t/52|0)r=K(t%52)+r;return(K(t%52)+r).replace(q,"$1-$2")}var X=function(e,t){for(var r=t.length;r;)e=33*e^t.charCodeAt(--r);return e},G=function(e){return X(5381,e)};function Q(e){for(var t=0;t>>0);if(!t.hasNameForId(n,a)){var u=r(i,"."+a,void 0,n);t.insertRules(n,a,u)}o.push(a),this.staticRulesId=a}else{for(var l=this.rules.length,c=X(this.baseHash,r.hash),s="",f=0;f>>0);if(!t.hasNameForId(n,b)){var y=r(s,"."+b,void 0,n);t.insertRules(n,b,y)}o.push(b)}}return o.join(" ")},e}(),ee=/^\s*\/\/.*$/gm,te=[":","[",".","#"];function re(e){var t,r,n,o,i=void 0===e?v:e,a=i.options,u=void 0===a?v:a,c=i.plugins,s=void 0===c?y:c,f=new l.a(u),p=[],d=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(r,n,o,i,a,u,l,c,s,f){switch(r){case 1:if(0===s&&64===n.charCodeAt(0))return e(n+";"),"";break;case 2:if(0===c)return n+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(o[0]+n),"";default:return n+(0===f?"/*|*/":"")}case-2:n.split("/*|*/}").forEach(t)}}}((function(e){p.push(e)})),h=function(e,n,i){return 0===n&&te.includes(i[r.length])||i.match(o)?e:"."+t};function b(e,i,a,u){void 0===u&&(u="&");var l=e.replace(ee,""),c=i&&a?a+" "+i+" { "+l+" }":l;return t=u,r=i,n=new RegExp("\\"+r+"\\b","g"),o=new RegExp("(\\"+r+"\\b){2,}"),f(a||!i?"":i,c)}return f.use([].concat(s,[function(e,t,o){2===e&&o.length&&o[0].lastIndexOf(r)>0&&(o[0]=o[0].replace(n,h))},d,function(e){if(-2===e){var t=p;return p=[],t}}])),b.hash=s.length?s.reduce((function(e,t){return t.name||S(15),X(e,t.name)}),5381).toString():"",b}var ne=i.a.createContext(),oe=ne.Consumer,ie=i.a.createContext(),ae=(ie.Consumer,new H),ue=re();function le(){return Object(o.useContext)(ne)||ae}function ce(){return Object(o.useContext)(ie)||ue}function se(e){var t=Object(o.useState)(e.stylisPlugins),r=t[0],n=t[1],a=le(),l=Object(o.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(o.useMemo)((function(){return re({options:{prefix:!e.disableVendorPrefixes},plugins:r})}),[e.disableVendorPrefixes,r]);return Object(o.useEffect)((function(){u()(r,e.stylisPlugins)||n(e.stylisPlugins)}),[e.stylisPlugins]),i.a.createElement(ne.Provider,{value:l},i.a.createElement(ie.Provider,{value:c},e.children))}var fe=function(){function e(e,t){var r=this;this.inject=function(e,t){void 0===t&&(t=ue);var n=r.name+t.hash;e.hasNameForId(r.id,n)||e.insertRules(r.id,n,t(r.rules,n,"@keyframes"))},this.toString=function(){return S(12,String(r.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ue),this.name+e.hash},e}(),pe=/([A-Z])/,de=/([A-Z])/g,he=/^ms-/,be=function(e){return"-"+e.toLowerCase()};function ye(e){return pe.test(e)?e.replace(de,be).replace(he,"-ms-"):e}var ve=function(e){return null==e||!1===e||""===e};function me(e,t,r,n){if(Array.isArray(e)){for(var o,i=[],a=0,u=e.length;a1?t-1:0),n=1;n?@[\\\]^`{|}~-]+/g,we=/(^-|-$)/g;function _e(e){return e.replace(Oe,"-").replace(we,"")}var Ce=function(e){return Z(G(e)>>>0)};function je(e){return"string"==typeof e&&!0}var Se=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},ke=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function Pe(e,t,r){var n=e[r];Se(t)&&Se(n)?Ee(n,t):e[r]=t}function Ee(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=0||(o[r]=e[r]);return o}(t,["componentId"]),i=n&&n+"-"+(je(e)?e:_e(g(e)));return Le(e,d({},o,{attrs:w,componentId:i}),r)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=n?Ee({},e.defaultProps,t):t}}),C.toString=function(){return"."+C.styledComponentId},a&&p()(C,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var De=function(e){return function e(t,r,o){if(void 0===o&&(o=v),!Object(n.isValidElementType)(r))return S(1,String(r));var i=function(){return t(r,o,ge.apply(void 0,arguments))};return i.withConfig=function(n){return e(t,r,d({},o,{},n))},i.attrs=function(n){return e(t,r,d({},o,{attrs:Array.prototype.concat(o.attrs,n).filter(Boolean)}))},i}(Le,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].forEach((function(e){De[e]=De(e)}));var Ie=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Q(e),H.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,r,n){var o=n(me(this.rules,t,r,n).join(""),""),i=this.componentId+e;r.insertRules(i,i,o)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,r,n){e>2&&H.registerId(this.componentId+e),this.removeStyles(e,r),this.createStyles(e,t,r,n)},e}();function Ne(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n1?t-1:0),n=1;n"+t+""},this.getStyleTags=function(){return e.sealed?S(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return S(2);var r=((t={})[O]="",t["data-styled-version"]="5.2.1",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),n=z();return n&&(r.nonce=n),[i.a.createElement("style",d({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new H({isServer:!0}),this.sealed=!1}var t=e.prototype;return t.collectStyles=function(e){return this.sealed?S(2):i.a.createElement(se,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return S(3)},e}(),Be=function(e){var t=i.a.forwardRef((function(t,r){var n=Object(o.useContext)(Ae),a=e.defaultProps,u=xe(t,n,a);return i.a.createElement(e,d({},t,{theme:u,ref:r}))}));return p()(t,e),t.displayName="WithTheme("+g(e)+")",t},$e=function(){return Object(o.useContext)(Ae)},Ue={StyleSheet:H,masterSheet:ae};t.default=De}.call(this,r(78))},function(e,t,r){(function(e,r){(function(){var n="Expected a function",o="__lodash_placeholder__",i=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],a="[object Arguments]",u="[object Array]",l="[object Boolean]",c="[object Date]",s="[object Error]",f="[object Function]",p="[object GeneratorFunction]",d="[object Map]",h="[object Number]",b="[object Object]",y="[object RegExp]",v="[object Set]",m="[object String]",g="[object Symbol]",x="[object WeakMap]",O="[object ArrayBuffer]",w="[object DataView]",_="[object Float32Array]",C="[object Float64Array]",j="[object Int8Array]",S="[object Int16Array]",k="[object Int32Array]",P="[object Uint8Array]",E="[object Uint16Array]",A="[object Uint32Array]",T=/\b__p \+= '';/g,R=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,L=/&(?:amp|lt|gt|quot|#39);/g,D=/[&<>"']/g,I=RegExp(L.source),N=RegExp(D.source),z=/<%-([\s\S]+?)%>/g,F=/<%([\s\S]+?)%>/g,B=/<%=([\s\S]+?)%>/g,$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U=/^\w*$/,V=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,W=/[\\^$.*+?()[\]{}|]/g,H=RegExp(W.source),q=/^\s+/,K=/\s/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,X=/\{\n\/\* \[wrapped with (.+)\] \*/,G=/,? & /,Q=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Y=/[()=,{}\[\]\/\s]/,J=/\\(\\)?/g,ee=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,te=/\w*$/,re=/^[-+]0x[0-9a-f]+$/i,ne=/^0b[01]+$/i,oe=/^\[object .+?Constructor\]$/,ie=/^0o[0-7]+$/i,ae=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,ce=/['\n\r\u2028\u2029\\]/g,se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",fe="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",pe="[\\ud800-\\udfff]",de="["+fe+"]",he="["+se+"]",be="\\d+",ye="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",me="[^\\ud800-\\udfff"+fe+be+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ge="\\ud83c[\\udffb-\\udfff]",xe="[^\\ud800-\\udfff]",Oe="(?:\\ud83c[\\udde6-\\uddff]){2}",we="[\\ud800-\\udbff][\\udc00-\\udfff]",_e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ce="(?:"+ve+"|"+me+")",je="(?:"+_e+"|"+me+")",Se="(?:"+he+"|"+ge+")"+"?",ke="[\\ufe0e\\ufe0f]?"+Se+("(?:\\u200d(?:"+[xe,Oe,we].join("|")+")[\\ufe0e\\ufe0f]?"+Se+")*"),Pe="(?:"+[ye,Oe,we].join("|")+")"+ke,Ee="(?:"+[xe+he+"?",he,Oe,we,pe].join("|")+")",Ae=RegExp("['’]","g"),Te=RegExp(he,"g"),Re=RegExp(ge+"(?="+ge+")|"+Ee+ke,"g"),Me=RegExp([_e+"?"+ve+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[de,_e,"$"].join("|")+")",je+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[de,_e+Ce,"$"].join("|")+")",_e+"?"+Ce+"+(?:['’](?:d|ll|m|re|s|t|ve))?",_e+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,Pe].join("|"),"g"),Le=RegExp("[\\u200d\\ud800-\\udfff"+se+"\\ufe0e\\ufe0f]"),De=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ie=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Ne=-1,ze={};ze[_]=ze[C]=ze[j]=ze[S]=ze[k]=ze[P]=ze["[object Uint8ClampedArray]"]=ze[E]=ze[A]=!0,ze[a]=ze[u]=ze[O]=ze[l]=ze[w]=ze[c]=ze[s]=ze[f]=ze[d]=ze[h]=ze[b]=ze[y]=ze[v]=ze[m]=ze[x]=!1;var Fe={};Fe[a]=Fe[u]=Fe[O]=Fe[w]=Fe[l]=Fe[c]=Fe[_]=Fe[C]=Fe[j]=Fe[S]=Fe[k]=Fe[d]=Fe[h]=Fe[b]=Fe[y]=Fe[v]=Fe[m]=Fe[g]=Fe[P]=Fe["[object Uint8ClampedArray]"]=Fe[E]=Fe[A]=!0,Fe[s]=Fe[f]=Fe[x]=!1;var Be={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},$e=parseFloat,Ue=parseInt,Ve="object"==typeof e&&e&&e.Object===Object&&e,We="object"==typeof self&&self&&self.Object===Object&&self,He=Ve||We||Function("return this")(),qe=t&&!t.nodeType&&t,Ke=qe&&"object"==typeof r&&r&&!r.nodeType&&r,Ze=Ke&&Ke.exports===qe,Xe=Ze&&Ve.process,Ge=function(){try{var e=Ke&&Ke.require&&Ke.require("util").types;return e||Xe&&Xe.binding&&Xe.binding("util")}catch(e){}}(),Qe=Ge&&Ge.isArrayBuffer,Ye=Ge&&Ge.isDate,Je=Ge&&Ge.isMap,et=Ge&&Ge.isRegExp,tt=Ge&&Ge.isSet,rt=Ge&&Ge.isTypedArray;function nt(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function ot(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o-1}function st(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function Mt(e,t){for(var r=e.length;r--&>(t,e[r],0)>-1;);return r}function Lt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Dt=Ct({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),It=Ct({"&":"&","<":"<",">":">",'"':""","'":"'"});function Nt(e){return"\\"+Be[e]}function zt(e){return Le.test(e)}function Ft(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function Bt(e,t){return function(r){return e(t(r))}}function $t(e,t){for(var r=-1,n=e.length,i=0,a=[];++r",""":'"',"'":"'"});var Zt=function e(t){var r,K=(t=null==t?He:Zt.defaults(He.Object(),t,Zt.pick(He,Ie))).Array,se=t.Date,fe=t.Error,pe=t.Function,de=t.Math,he=t.Object,be=t.RegExp,ye=t.String,ve=t.TypeError,me=K.prototype,ge=pe.prototype,xe=he.prototype,Oe=t["__core-js_shared__"],we=ge.toString,_e=xe.hasOwnProperty,Ce=0,je=(r=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",Se=xe.toString,ke=we.call(he),Pe=He._,Ee=be("^"+we.call(_e).replace(W,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Re=Ze?t.Buffer:void 0,Le=t.Symbol,Be=t.Uint8Array,Ve=Re?Re.allocUnsafe:void 0,We=Bt(he.getPrototypeOf,he),qe=he.create,Ke=xe.propertyIsEnumerable,Xe=me.splice,Ge=Le?Le.isConcatSpreadable:void 0,yt=Le?Le.iterator:void 0,Ct=Le?Le.toStringTag:void 0,Xt=function(){try{var e=ti(he,"defineProperty");return e({},"",{}),e}catch(e){}}(),Gt=t.clearTimeout!==He.clearTimeout&&t.clearTimeout,Qt=se&&se.now!==He.Date.now&&se.now,Yt=t.setTimeout!==He.setTimeout&&t.setTimeout,Jt=de.ceil,er=de.floor,tr=he.getOwnPropertySymbols,rr=Re?Re.isBuffer:void 0,nr=t.isFinite,or=me.join,ir=Bt(he.keys,he),ar=de.max,ur=de.min,lr=se.now,cr=t.parseInt,sr=de.random,fr=me.reverse,pr=ti(t,"DataView"),dr=ti(t,"Map"),hr=ti(t,"Promise"),br=ti(t,"Set"),yr=ti(t,"WeakMap"),vr=ti(he,"create"),mr=yr&&new yr,gr={},xr=Pi(pr),Or=Pi(dr),wr=Pi(hr),_r=Pi(br),Cr=Pi(yr),jr=Le?Le.prototype:void 0,Sr=jr?jr.valueOf:void 0,kr=jr?jr.toString:void 0;function Pr(e){if(Ha(e)&&!La(e)&&!(e instanceof Rr)){if(e instanceof Tr)return e;if(_e.call(e,"__wrapped__"))return Ei(e)}return new Tr(e)}var Er=function(){function e(){}return function(t){if(!Wa(t))return{};if(qe)return qe(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Ar(){}function Tr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Rr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Mr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Gr(e,t,r,n,o,i){var u,s=1&t,x=2&t,T=4&t;if(r&&(u=o?r(e,n,o,i):r(e)),void 0!==u)return u;if(!Wa(e))return e;var R=La(e);if(R){if(u=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&_e.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return go(e,u)}else{var M=oi(e),L=M==f||M==p;if(za(e))return po(e,s);if(M==b||M==a||L&&!o){if(u=x||L?{}:ai(e),!s)return x?function(e,t){return xo(e,ni(e),t)}(e,function(e,t){return e&&xo(t,wu(t),e)}(u,e)):function(e,t){return xo(e,ri(e),t)}(e,qr(u,e))}else{if(!Fe[M])return o?e:{};u=function(e,t,r){var n=e.constructor;switch(t){case O:return ho(e);case l:case c:return new n(+e);case w:return function(e,t){var r=t?ho(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case _:case C:case j:case S:case k:case P:case"[object Uint8ClampedArray]":case E:case A:return bo(e,r);case d:return new n;case h:case m:return new n(e);case y:return function(e){var t=new e.constructor(e.source,te.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new n;case g:return o=e,Sr?he(Sr.call(o)):{}}var o}(e,M,s)}}i||(i=new Nr);var D=i.get(e);if(D)return D;i.set(e,u),Ga(e)?e.forEach((function(n){u.add(Gr(n,t,r,n,e,i))})):qa(e)&&e.forEach((function(n,o){u.set(o,Gr(n,t,r,o,e,i))}));var I=R?void 0:(T?x?Zo:Ko:x?wu:Ou)(e);return it(I||e,(function(n,o){I&&(n=e[o=n]),Vr(u,o,Gr(n,t,r,o,e,i))})),u}function Qr(e,t,r){var n=r.length;if(null==e)return!n;for(e=he(e);n--;){var o=r[n],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Yr(e,t,r){if("function"!=typeof e)throw new ve(n);return Oi((function(){e.apply(void 0,r)}),t)}function Jr(e,t,r,n){var o=-1,i=ct,a=!0,u=e.length,l=[],c=t.length;if(!u)return l;r&&(t=ft(t,Et(r))),n?(i=st,a=!1):t.length>=200&&(i=Tt,a=!1,t=new Ir(t));e:for(;++o-1},Lr.prototype.set=function(e,t){var r=this.__data__,n=Wr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Dr.prototype.clear=function(){this.size=0,this.__data__={hash:new Mr,map:new(dr||Lr),string:new Mr}},Dr.prototype.delete=function(e){var t=Jo(this,e).delete(e);return this.size-=t?1:0,t},Dr.prototype.get=function(e){return Jo(this,e).get(e)},Dr.prototype.has=function(e){return Jo(this,e).has(e)},Dr.prototype.set=function(e,t){var r=Jo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Ir.prototype.add=Ir.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Ir.prototype.has=function(e){return this.__data__.has(e)},Nr.prototype.clear=function(){this.__data__=new Lr,this.size=0},Nr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Nr.prototype.get=function(e){return this.__data__.get(e)},Nr.prototype.has=function(e){return this.__data__.has(e)},Nr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof Lr){var n=r.__data__;if(!dr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Dr(n)}return r.set(e,t),this.size=r.size,this};var en=_o(cn),tn=_o(sn,!0);function rn(e,t){var r=!0;return en(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function nn(e,t,r){for(var n=-1,o=e.length;++n0&&r(u)?t>1?an(u,t-1,r,n,o):pt(o,u):n||(o[o.length]=u)}return o}var un=Co(),ln=Co(!0);function cn(e,t){return e&&un(e,t,Ou)}function sn(e,t){return e&&ln(e,t,Ou)}function fn(e,t){return lt(t,(function(t){return $a(e[t])}))}function pn(e,t){for(var r=0,n=(t=lo(t,e)).length;null!=e&&rt}function yn(e,t){return null!=e&&_e.call(e,t)}function vn(e,t){return null!=e&&t in he(e)}function mn(e,t,r){for(var n=r?st:ct,o=e[0].length,i=e.length,a=i,u=K(i),l=1/0,c=[];a--;){var s=e[a];a&&t&&(s=ft(s,Et(t))),l=ur(s.length,l),u[a]=!r&&(t||o>=120&&s.length>=120)?new Ir(a&&s):void 0}s=e[0];var f=-1,p=u[0];e:for(;++f=u)return l;var c=r[n];return l*("desc"==c?-1:1)}}return e.index-t.index}(e,t,r)}))}function Ln(e,t,r){for(var n=-1,o=t.length,i={};++n-1;)u!==e&&Xe.call(u,l,1),Xe.call(e,l,1);return e}function In(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;li(o)?Xe.call(e,o,1):eo(e,o)}}return e}function Nn(e,t){return e+er(sr()*(t-e+1))}function zn(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=er(t/2))&&(e+=e)}while(t);return r}function Fn(e,t){return wi(yi(e,t,Ku),e+"")}function Bn(e){return Fr(Au(e))}function $n(e,t){var r=Au(e);return ji(r,Xr(t,0,r.length))}function Un(e,t,r,n){if(!Wa(e))return e;for(var o=-1,i=(t=lo(t,e)).length,a=i-1,u=e;null!=u&&++oo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=K(o);++n>>1,a=e[i];null!==a&&!Ya(a)&&(r?a<=t:a=200){var c=t?null:Fo(e);if(c)return Ut(c);a=!1,o=Tt,l=new Ir}else l=t?[]:u;e:for(;++n=n?e:qn(e,t,r)}var fo=Gt||function(e){return He.clearTimeout(e)};function po(e,t){if(t)return e.slice();var r=e.length,n=Ve?Ve(r):new e.constructor(r);return e.copy(n),n}function ho(e){var t=new e.constructor(e.byteLength);return new Be(t).set(new Be(e)),t}function bo(e,t){var r=t?ho(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function yo(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,i=Ya(e),a=void 0!==t,u=null===t,l=t==t,c=Ya(t);if(!u&&!c&&!i&&e>t||i&&a&&l&&!u&&!c||n&&a&&l||!r&&l||!o)return 1;if(!n&&!i&&!c&&e1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ci(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=he(t);++n-1?o[i?t[a]:a]:void 0}}function Eo(e){return qo((function(t){var r=t.length,o=r,i=Tr.prototype.thru;for(e&&t.reverse();o--;){var a=t[o];if("function"!=typeof a)throw new ve(n);if(i&&!u&&"wrapper"==Go(a))var u=new Tr([],!0)}for(o=u?o:r;++o1&&m.reverse(),s&&lu))return!1;var c=i.get(e),s=i.get(t);if(c&&s)return c==t&&s==e;var f=-1,p=!0,d=2&r?new Ir:void 0;for(i.set(e,t),i.set(t,e);++f-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return it(i,(function(r){var n="_."+r[0];t&r[1]&&!ct(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(X);return t?t[1].split(G):[]}(n),r)))}function Ci(e){var t=0,r=0;return function(){var n=lr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function ji(e,t){var r=-1,n=e.length,o=n-1;for(t=void 0===t?n:t;++r1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Xi(e,r)}));function ra(e){var t=Pr(e);return t.__chain__=!0,t}function na(e,t){return t(e)}var oa=qo((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return Zr(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Rr&&li(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:na,args:[o],thisArg:void 0}),new Tr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var ia=Oo((function(e,t,r){_e.call(e,r)?++e[r]:Kr(e,r,1)}));var aa=Po(Mi),ua=Po(Li);function la(e,t){return(La(e)?it:en)(e,Yo(t,3))}function ca(e,t){return(La(e)?at:tn)(e,Yo(t,3))}var sa=Oo((function(e,t,r){_e.call(e,r)?e[r].push(t):Kr(e,r,[t])}));var fa=Fn((function(e,t,r){var n=-1,o="function"==typeof t,i=Ia(e)?K(e.length):[];return en(e,(function(e){i[++n]=o?nt(t,e,r):gn(e,t,r)})),i})),pa=Oo((function(e,t,r){Kr(e,r,t)}));function da(e,t){return(La(e)?ft:Pn)(e,Yo(t,3))}var ha=Oo((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ba=Fn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&ci(e,t[0],t[1])?t=[]:r>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),Mn(e,an(t,1),[])})),ya=Qt||function(){return He.Date.now()};function va(e,t,r){return t=r?void 0:t,$o(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ma(e,t){var r;if("function"!=typeof t)throw new ve(n);return e=ou(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var ga=Fn((function(e,t,r){var n=1;if(r.length){var o=$t(r,Qo(ga));n|=32}return $o(e,n,t,r,o)})),xa=Fn((function(e,t,r){var n=3;if(r.length){var o=$t(r,Qo(xa));n|=32}return $o(t,n,e,r,o)}));function Oa(e,t,r){var o,i,a,u,l,c,s=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ve(n);function h(t){var r=o,n=i;return o=i=void 0,s=t,u=e.apply(n,r)}function b(e){return s=e,l=Oi(v,t),f?h(e):u}function y(e){var r=e-c;return void 0===c||r>=t||r<0||p&&e-s>=a}function v(){var e=ya();if(y(e))return m(e);l=Oi(v,function(e){var r=t-(e-c);return p?ur(r,a-(e-s)):r}(e))}function m(e){return l=void 0,d&&o?h(e):(o=i=void 0,u)}function g(){var e=ya(),r=y(e);if(o=arguments,i=this,c=e,r){if(void 0===l)return b(c);if(p)return fo(l),l=Oi(v,t),h(c)}return void 0===l&&(l=Oi(v,t)),u}return t=au(t)||0,Wa(r)&&(f=!!r.leading,a=(p="maxWait"in r)?ar(au(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d),g.cancel=function(){void 0!==l&&fo(l),s=0,o=c=i=l=void 0},g.flush=function(){return void 0===l?u:m(ya())},g}var wa=Fn((function(e,t){return Yr(e,1,t)})),_a=Fn((function(e,t,r){return Yr(e,au(t)||0,r)}));function Ca(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ve(n);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Ca.Cache||Dr),r}function ja(e){if("function"!=typeof e)throw new ve(n);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ca.Cache=Dr;var Sa=co((function(e,t){var r=(t=1==t.length&&La(t[0])?ft(t[0],Et(Yo())):ft(an(t,1),Et(Yo()))).length;return Fn((function(n){for(var o=-1,i=ur(n.length,r);++o=t})),Ma=xn(function(){return arguments}())?xn:function(e){return Ha(e)&&_e.call(e,"callee")&&!Ke.call(e,"callee")},La=K.isArray,Da=Qe?Et(Qe):function(e){return Ha(e)&&hn(e)==O};function Ia(e){return null!=e&&Va(e.length)&&!$a(e)}function Na(e){return Ha(e)&&Ia(e)}var za=rr||al,Fa=Ye?Et(Ye):function(e){return Ha(e)&&hn(e)==c};function Ba(e){if(!Ha(e))return!1;var t=hn(e);return t==s||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!Za(e)}function $a(e){if(!Wa(e))return!1;var t=hn(e);return t==f||t==p||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Ua(e){return"number"==typeof e&&e==ou(e)}function Va(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Wa(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ha(e){return null!=e&&"object"==typeof e}var qa=Je?Et(Je):function(e){return Ha(e)&&oi(e)==d};function Ka(e){return"number"==typeof e||Ha(e)&&hn(e)==h}function Za(e){if(!Ha(e)||hn(e)!=b)return!1;var t=We(e);if(null===t)return!0;var r=_e.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&we.call(r)==ke}var Xa=et?Et(et):function(e){return Ha(e)&&hn(e)==y};var Ga=tt?Et(tt):function(e){return Ha(e)&&oi(e)==v};function Qa(e){return"string"==typeof e||!La(e)&&Ha(e)&&hn(e)==m}function Ya(e){return"symbol"==typeof e||Ha(e)&&hn(e)==g}var Ja=rt?Et(rt):function(e){return Ha(e)&&Va(e.length)&&!!ze[hn(e)]};var eu=Io(kn),tu=Io((function(e,t){return e<=t}));function ru(e){if(!e)return[];if(Ia(e))return Qa(e)?Ht(e):go(e);if(yt&&e[yt])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[yt]());var t=oi(e);return(t==d?Ft:t==v?Ut:Au)(e)}function nu(e){return e?(e=au(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ou(e){var t=nu(e),r=t%1;return t==t?r?t-r:t:0}function iu(e){return e?Xr(ou(e),0,4294967295):0}function au(e){if("number"==typeof e)return e;if(Ya(e))return NaN;if(Wa(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Wa(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Pt(e);var r=ne.test(e);return r||ie.test(e)?Ue(e.slice(2),r?2:8):re.test(e)?NaN:+e}function uu(e){return xo(e,wu(e))}function lu(e){return null==e?"":Yn(e)}var cu=wo((function(e,t){if(di(t)||Ia(t))xo(t,Ou(t),e);else for(var r in t)_e.call(t,r)&&Vr(e,r,t[r])})),su=wo((function(e,t){xo(t,wu(t),e)})),fu=wo((function(e,t,r,n){xo(t,wu(t),e,n)})),pu=wo((function(e,t,r,n){xo(t,Ou(t),e,n)})),du=qo(Zr);var hu=Fn((function(e,t){e=he(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&ci(t[0],t[1],o)&&(n=1);++r1),t})),xo(e,Zo(e),r),n&&(r=Gr(r,7,Wo));for(var o=t.length;o--;)eo(r,t[o]);return r}));var Su=qo((function(e,t){return null==e?{}:function(e,t){return Ln(e,t,(function(t,r){return vu(e,r)}))}(e,t)}));function ku(e,t){if(null==e)return{};var r=ft(Zo(e),(function(e){return[e]}));return t=Yo(t),Ln(e,r,(function(e,r){return t(e,r[0])}))}var Pu=Bo(Ou),Eu=Bo(wu);function Au(e){return null==e?[]:At(e,Ou(e))}var Tu=So((function(e,t,r){return t=t.toLowerCase(),e+(r?Ru(t):t)}));function Ru(e){return Bu(lu(e).toLowerCase())}function Mu(e){return(e=lu(e))&&e.replace(ue,Dt).replace(Te,"")}var Lu=So((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Du=So((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Iu=jo("toLowerCase");var Nu=So((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var zu=So((function(e,t,r){return e+(r?" ":"")+Bu(t)}));var Fu=So((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Bu=jo("toUpperCase");function $u(e,t,r){return e=lu(e),void 0===(t=r?void 0:t)?function(e){return De.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(Q)||[]}(e):e.match(t)||[]}var Uu=Fn((function(e,t){try{return nt(e,void 0,t)}catch(e){return Ba(e)?e:new fe(e)}})),Vu=qo((function(e,t){return it(t,(function(t){t=ki(t),Kr(e,t,ga(e[t],e))})),e}));function Wu(e){return function(){return e}}var Hu=Eo(),qu=Eo(!0);function Ku(e){return e}function Zu(e){return Cn("function"==typeof e?e:Gr(e,1))}var Xu=Fn((function(e,t){return function(r){return gn(r,e,t)}})),Gu=Fn((function(e,t){return function(r){return gn(e,r,t)}}));function Qu(e,t,r){var n=Ou(t),o=fn(t,n);null!=r||Wa(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=fn(t,Ou(t)));var i=!(Wa(r)&&"chain"in r&&!r.chain),a=$a(e);return it(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__),o=r.__actions__=go(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,pt([this.value()],arguments))})})),e}function Yu(){}var Ju=Mo(ft),el=Mo(ut),tl=Mo(bt);function rl(e){return si(e)?_t(ki(e)):function(e){return function(t){return pn(t,e)}}(e)}var nl=Do(),ol=Do(!0);function il(){return[]}function al(){return!1}var ul=Ro((function(e,t){return e+t}),0),ll=zo("ceil"),cl=Ro((function(e,t){return e/t}),1),sl=zo("floor");var fl,pl=Ro((function(e,t){return e*t}),1),dl=zo("round"),hl=Ro((function(e,t){return e-t}),0);return Pr.after=function(e,t){if("function"!=typeof t)throw new ve(n);return e=ou(e),function(){if(--e<1)return t.apply(this,arguments)}},Pr.ary=va,Pr.assign=cu,Pr.assignIn=su,Pr.assignInWith=fu,Pr.assignWith=pu,Pr.at=du,Pr.before=ma,Pr.bind=ga,Pr.bindAll=Vu,Pr.bindKey=xa,Pr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return La(e)?e:[e]},Pr.chain=ra,Pr.chunk=function(e,t,r){t=(r?ci(e,t,r):void 0===t)?1:ar(ou(t),0);var n=null==e?0:e.length;if(!n||t<1)return[];for(var o=0,i=0,a=K(Jt(n/t));oo?0:o+r),(n=void 0===n||n>o?o:ou(n))<0&&(n+=o),n=r>n?0:iu(n);r>>0)?(e=lu(e))&&("string"==typeof t||null!=t&&!Xa(t))&&!(t=Yn(t))&&zt(e)?so(Ht(e),0,r):e.split(t,r):[]},Pr.spread=function(e,t){if("function"!=typeof e)throw new ve(n);return t=null==t?0:ar(ou(t),0),Fn((function(r){var n=r[t],o=so(r,0,t);return n&&pt(o,n),nt(e,this,o)}))},Pr.tail=function(e){var t=null==e?0:e.length;return t?qn(e,1,t):[]},Pr.take=function(e,t,r){return e&&e.length?qn(e,0,(t=r||void 0===t?1:ou(t))<0?0:t):[]},Pr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?qn(e,(t=n-(t=r||void 0===t?1:ou(t)))<0?0:t,n):[]},Pr.takeRightWhile=function(e,t){return e&&e.length?ro(e,Yo(t,3),!1,!0):[]},Pr.takeWhile=function(e,t){return e&&e.length?ro(e,Yo(t,3)):[]},Pr.tap=function(e,t){return t(e),e},Pr.throttle=function(e,t,r){var o=!0,i=!0;if("function"!=typeof e)throw new ve(n);return Wa(r)&&(o="leading"in r?!!r.leading:o,i="trailing"in r?!!r.trailing:i),Oa(e,t,{leading:o,maxWait:t,trailing:i})},Pr.thru=na,Pr.toArray=ru,Pr.toPairs=Pu,Pr.toPairsIn=Eu,Pr.toPath=function(e){return La(e)?ft(e,ki):Ya(e)?[e]:go(Si(lu(e)))},Pr.toPlainObject=uu,Pr.transform=function(e,t,r){var n=La(e),o=n||za(e)||Ja(e);if(t=Yo(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Wa(e)&&$a(i)?Er(We(e)):{}}return(o?it:cn)(e,(function(e,n,o){return t(r,e,n,o)})),r},Pr.unary=function(e){return va(e,1)},Pr.union=Hi,Pr.unionBy=qi,Pr.unionWith=Ki,Pr.uniq=function(e){return e&&e.length?Jn(e):[]},Pr.uniqBy=function(e,t){return e&&e.length?Jn(e,Yo(t,2)):[]},Pr.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Jn(e,void 0,t):[]},Pr.unset=function(e,t){return null==e||eo(e,t)},Pr.unzip=Zi,Pr.unzipWith=Xi,Pr.update=function(e,t,r){return null==e?e:to(e,t,uo(r))},Pr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:to(e,t,uo(r),n)},Pr.values=Au,Pr.valuesIn=function(e){return null==e?[]:At(e,wu(e))},Pr.without=Gi,Pr.words=$u,Pr.wrap=function(e,t){return ka(uo(t),e)},Pr.xor=Qi,Pr.xorBy=Yi,Pr.xorWith=Ji,Pr.zip=ea,Pr.zipObject=function(e,t){return io(e||[],t||[],Vr)},Pr.zipObjectDeep=function(e,t){return io(e||[],t||[],Un)},Pr.zipWith=ta,Pr.entries=Pu,Pr.entriesIn=Eu,Pr.extend=su,Pr.extendWith=fu,Qu(Pr,Pr),Pr.add=ul,Pr.attempt=Uu,Pr.camelCase=Tu,Pr.capitalize=Ru,Pr.ceil=ll,Pr.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=au(r))==r?r:0),void 0!==t&&(t=(t=au(t))==t?t:0),Xr(au(e),t,r)},Pr.clone=function(e){return Gr(e,4)},Pr.cloneDeep=function(e){return Gr(e,5)},Pr.cloneDeepWith=function(e,t){return Gr(e,5,t="function"==typeof t?t:void 0)},Pr.cloneWith=function(e,t){return Gr(e,4,t="function"==typeof t?t:void 0)},Pr.conformsTo=function(e,t){return null==t||Qr(e,t,Ou(t))},Pr.deburr=Mu,Pr.defaultTo=function(e,t){return null==e||e!=e?t:e},Pr.divide=cl,Pr.endsWith=function(e,t,r){e=lu(e),t=Yn(t);var n=e.length,o=r=void 0===r?n:Xr(ou(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},Pr.eq=Aa,Pr.escape=function(e){return(e=lu(e))&&N.test(e)?e.replace(D,It):e},Pr.escapeRegExp=function(e){return(e=lu(e))&&H.test(e)?e.replace(W,"\\$&"):e},Pr.every=function(e,t,r){var n=La(e)?ut:rn;return r&&ci(e,t,r)&&(t=void 0),n(e,Yo(t,3))},Pr.find=aa,Pr.findIndex=Mi,Pr.findKey=function(e,t){return vt(e,Yo(t,3),cn)},Pr.findLast=ua,Pr.findLastIndex=Li,Pr.findLastKey=function(e,t){return vt(e,Yo(t,3),sn)},Pr.floor=sl,Pr.forEach=la,Pr.forEachRight=ca,Pr.forIn=function(e,t){return null==e?e:un(e,Yo(t,3),wu)},Pr.forInRight=function(e,t){return null==e?e:ln(e,Yo(t,3),wu)},Pr.forOwn=function(e,t){return e&&cn(e,Yo(t,3))},Pr.forOwnRight=function(e,t){return e&&sn(e,Yo(t,3))},Pr.get=yu,Pr.gt=Ta,Pr.gte=Ra,Pr.has=function(e,t){return null!=e&&ii(e,t,yn)},Pr.hasIn=vu,Pr.head=Ii,Pr.identity=Ku,Pr.includes=function(e,t,r,n){e=Ia(e)?e:Au(e),r=r&&!n?ou(r):0;var o=e.length;return r<0&&(r=ar(o+r,0)),Qa(e)?r<=o&&e.indexOf(t,r)>-1:!!o&>(e,t,r)>-1},Pr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ou(r);return o<0&&(o=ar(n+o,0)),gt(e,t,o)},Pr.inRange=function(e,t,r){return t=nu(t),void 0===r?(r=t,t=0):r=nu(r),function(e,t,r){return e>=ur(t,r)&&e=-9007199254740991&&e<=9007199254740991},Pr.isSet=Ga,Pr.isString=Qa,Pr.isSymbol=Ya,Pr.isTypedArray=Ja,Pr.isUndefined=function(e){return void 0===e},Pr.isWeakMap=function(e){return Ha(e)&&oi(e)==x},Pr.isWeakSet=function(e){return Ha(e)&&"[object WeakSet]"==hn(e)},Pr.join=function(e,t){return null==e?"":or.call(e,t)},Pr.kebabCase=Lu,Pr.last=Bi,Pr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return void 0!==r&&(o=(o=ou(r))<0?ar(n+o,0):ur(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):mt(e,Ot,o,!0)},Pr.lowerCase=Du,Pr.lowerFirst=Iu,Pr.lt=eu,Pr.lte=tu,Pr.max=function(e){return e&&e.length?nn(e,Ku,bn):void 0},Pr.maxBy=function(e,t){return e&&e.length?nn(e,Yo(t,2),bn):void 0},Pr.mean=function(e){return wt(e,Ku)},Pr.meanBy=function(e,t){return wt(e,Yo(t,2))},Pr.min=function(e){return e&&e.length?nn(e,Ku,kn):void 0},Pr.minBy=function(e,t){return e&&e.length?nn(e,Yo(t,2),kn):void 0},Pr.stubArray=il,Pr.stubFalse=al,Pr.stubObject=function(){return{}},Pr.stubString=function(){return""},Pr.stubTrue=function(){return!0},Pr.multiply=pl,Pr.nth=function(e,t){return e&&e.length?Rn(e,ou(t)):void 0},Pr.noConflict=function(){return He._===this&&(He._=Pe),this},Pr.noop=Yu,Pr.now=ya,Pr.pad=function(e,t,r){e=lu(e);var n=(t=ou(t))?Wt(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return Lo(er(o),r)+e+Lo(Jt(o),r)},Pr.padEnd=function(e,t,r){e=lu(e);var n=(t=ou(t))?Wt(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=sr();return ur(e+o*(t-e+$e("1e-"+((o+"").length-1))),t)}return Nn(e,t)},Pr.reduce=function(e,t,r){var n=La(e)?dt:jt,o=arguments.length<3;return n(e,Yo(t,4),r,o,en)},Pr.reduceRight=function(e,t,r){var n=La(e)?ht:jt,o=arguments.length<3;return n(e,Yo(t,4),r,o,tn)},Pr.repeat=function(e,t,r){return t=(r?ci(e,t,r):void 0===t)?1:ou(t),zn(lu(e),t)},Pr.replace=function(){var e=arguments,t=lu(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Pr.result=function(e,t,r){var n=-1,o=(t=lo(t,e)).length;for(o||(o=1,e=void 0);++n9007199254740991)return[];var r=4294967295,n=ur(e,4294967295);e-=4294967295;for(var o=kt(n,t=Yo(t));++r=i)return e;var u=r-Wt(n);if(u<1)return n;var l=a?so(a,0,u).join(""):e.slice(0,u);if(void 0===o)return l+n;if(a&&(u+=l.length-u),Xa(o)){if(e.slice(u).search(o)){var c,s=l;for(o.global||(o=be(o.source,lu(te.exec(o))+"g")),o.lastIndex=0;c=o.exec(s);)var f=c.index;l=l.slice(0,void 0===f?u:f)}}else if(e.indexOf(Yn(o),u)!=u){var p=l.lastIndexOf(o);p>-1&&(l=l.slice(0,p))}return l+n},Pr.unescape=function(e){return(e=lu(e))&&I.test(e)?e.replace(L,Kt):e},Pr.uniqueId=function(e){var t=++Ce;return lu(e)+t},Pr.upperCase=Fu,Pr.upperFirst=Bu,Pr.each=la,Pr.eachRight=ca,Pr.first=Ii,Qu(Pr,(fl={},cn(Pr,(function(e,t){_e.call(Pr.prototype,t)||(fl[t]=e)})),fl),{chain:!1}),Pr.VERSION="4.17.21",it(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Pr[e].placeholder=Pr})),it(["drop","take"],(function(e,t){Rr.prototype[e]=function(r){r=void 0===r?1:ar(ou(r),0);var n=this.__filtered__&&!t?new Rr(this):this.clone();return n.__filtered__?n.__takeCount__=ur(r,n.__takeCount__):n.__views__.push({size:ur(r,4294967295),type:e+(n.__dir__<0?"Right":"")}),n},Rr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),it(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Rr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Yo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),it(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Rr.prototype[e]=function(){return this[r](1).value()[0]}})),it(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Rr.prototype[e]=function(){return this.__filtered__?new Rr(this):this[r](1)}})),Rr.prototype.compact=function(){return this.filter(Ku)},Rr.prototype.find=function(e){return this.filter(e).head()},Rr.prototype.findLast=function(e){return this.reverse().find(e)},Rr.prototype.invokeMap=Fn((function(e,t){return"function"==typeof e?new Rr(this):this.map((function(r){return gn(r,e,t)}))})),Rr.prototype.reject=function(e){return this.filter(ja(Yo(e)))},Rr.prototype.slice=function(e,t){e=ou(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Rr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=ou(t))<0?r.dropRight(-t):r.take(t-e)),r)},Rr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Rr.prototype.toArray=function(){return this.take(4294967295)},cn(Rr.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=Pr[n?"take"+("last"==t?"Right":""):t],i=n||/^find/.test(t);o&&(Pr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,u=t instanceof Rr,l=a[0],c=u||La(t),s=function(e){var t=o.apply(Pr,pt([e],a));return n&&f?t[0]:t};c&&r&&"function"==typeof l&&1!=l.length&&(u=c=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=u&&!p;if(!i&&c){t=h?t:new Rr(this);var b=e.apply(t,a);return b.__actions__.push({func:na,args:[s],thisArg:void 0}),new Tr(b,f)}return d&&h?e.apply(this,a):(b=this.thru(s),d?n?b.value()[0]:b.value():b)})})),it(["pop","push","shift","sort","splice","unshift"],(function(e){var t=me[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);Pr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(La(o)?o:[],e)}return this[r]((function(r){return t.apply(La(r)?r:[],e)}))}})),cn(Rr.prototype,(function(e,t){var r=Pr[t];if(r){var n=r.name+"";_e.call(gr,n)||(gr[n]=[]),gr[n].push({name:t,func:r})}})),gr[Ao(void 0,2).name]=[{name:"wrapper",func:void 0}],Rr.prototype.clone=function(){var e=new Rr(this.__wrapped__);return e.__actions__=go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=go(this.__views__),e},Rr.prototype.reverse=function(){if(this.__filtered__){var e=new Rr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Rr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=La(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},Pr.prototype.plant=function(e){for(var t,r=this;r instanceof Ar;){var n=Ei(r);n.__index__=0,n.__values__=void 0,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},Pr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Rr){var t=e;return this.__actions__.length&&(t=new Rr(this)),(t=t.reverse()).__actions__.push({func:na,args:[Wi],thisArg:void 0}),new Tr(t,this.__chain__)}return this.thru(Wi)},Pr.prototype.toJSON=Pr.prototype.valueOf=Pr.prototype.value=function(){return no(this.__wrapped__,this.__actions__)},Pr.prototype.first=Pr.prototype.head,yt&&(Pr.prototype[yt]=function(){return this}),Pr}();Ke?((Ke.exports=Zt)._=Zt,qe._=Zt):He._=Zt}).call(this)}).call(this,r(23),r(70)(e))},function(e,t,r){e.exports=r(149)()},function(e,t,r){"use strict";r.d(t,"a",(function(){return b})),r.d(t,"b",(function(){return h})),r.d(t,"c",(function(){return m})),r.d(t,"d",(function(){return j})),r.d(t,"e",(function(){return S}));var n=r(10),o=r(0),i=r.n(o),a=(r(3),r(12)),u=r(58),l=r(9),c=r(5),s=r(59),f=r.n(s),p=(r(24),r(19)),d=(r(26),function(e){var t=Object(u.a)();return t.displayName=e,t}("Router-History")),h=function(e){var t=Object(u.a)();return t.displayName=e,t}("Router"),b=function(e){function t(t){var r;return(r=e.call(this,t)||this).state={location:t.history.location},r._isMounted=!1,r._pendingLocation=null,t.staticContext||(r.unlisten=t.history.listen((function(e){r._isMounted?r.setState({location:e}):r._pendingLocation=e}))),r}Object(n.a)(t,e),t.computeRootMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}};var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this._pendingLocation&&this.setState({location:this._pendingLocation})},r.componentWillUnmount=function(){this.unlisten&&this.unlisten()},r.render=function(){return i.a.createElement(h.Provider,{value:{history:this.props.history,location:this.state.location,match:t.computeRootMatch(this.state.location.pathname),staticContext:this.props.staticContext}},i.a.createElement(d.Provider,{children:this.props.children||null,value:this.props.history}))},t}(i.a.Component);i.a.Component;i.a.Component;var y={},v=0;function m(e,t){void 0===t&&(t={}),("string"==typeof t||Array.isArray(t))&&(t={path:t});var r=t,n=r.path,o=r.exact,i=void 0!==o&&o,a=r.strict,u=void 0!==a&&a,l=r.sensitive,c=void 0!==l&&l;return[].concat(n).reduce((function(t,r){if(!r&&""!==r)return null;if(t)return t;var n=function(e,t){var r=""+t.end+t.strict+t.sensitive,n=y[r]||(y[r]={});if(n[e])return n[e];var o=[],i={regexp:f()(e,o,t),keys:o};return v<1e4&&(n[e]=i,v++),i}(r,{end:i,strict:u,sensitive:c}),o=n.regexp,a=n.keys,l=o.exec(e);if(!l)return null;var s=l[0],p=l.slice(1),d=e===s;return i&&!d?null:{path:r,url:"/"===r&&""===s?"/":s,isExact:d,params:a.reduce((function(e,t,r){return e[t.name]=p[r],e}),{})}}),null)}i.a.Component;function g(e){return"/"===e.charAt(0)?e:"/"+e}function x(e,t){if(!e)return t;var r=g(e);return 0!==t.pathname.indexOf(r)?t:Object(c.a)({},t,{pathname:t.pathname.substr(r.length)})}function O(e){return"string"==typeof e?e:Object(a.e)(e)}function w(e){return function(){Object(l.a)(!1)}}function _(){}i.a.Component;i.a.Component;var C=i.a.useContext;function j(){return C(d)}function S(){return C(h).location}},function(e,t,r){"use strict";function n(){return(n=Object.assign||function(e){for(var t=1;t=0;p--){var d=a[p];"."===d?i(a,p):".."===d?(i(a,p),f++):f&&(i(a,p),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&o(a[0])||a.unshift("");var h=a.join("/");return r&&"/"!==h.substr(-1)&&(h+="/"),h};function u(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var l=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));if("object"==typeof t||"object"==typeof r){var n=u(t),o=u(r);return n!==t||o!==r?e(n,o):Object.keys(Object.assign({},t,r)).every((function(n){return e(t[n],r[n])}))}return!1},c=r(9);function s(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function p(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function d(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o}function b(e,t,r,o){var i;"string"==typeof e?(i=function(e){var t=e||"/",r="",n="",o=t.indexOf("#");-1!==o&&(n=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(r=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===r?"":r,hash:"#"===n?"":n}}(e)).state=t:(void 0===(i=Object(n.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return r&&(i.key=r),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function y(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&l(e.state,t.state)}function v(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,r,n,o){if(null!=e){var i="function"==typeof e?e(t,r):e;"string"==typeof i?"function"==typeof n?n(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var r=!0;function n(){r&&e.apply(void 0,arguments)}return t.push(n),function(){r=!1,t=t.filter((function(e){return e!==n}))}},notifyListeners:function(){for(var e=arguments.length,r=new Array(e),n=0;nt?r.splice(t,r.length-t,n):r.push(n),f({action:"PUSH",location:n,index:t,entries:r})}}))},replace:function(e,t){var n=b(e,t,p(),x.location);s.confirmTransitionTo(n,"REPLACE",r,(function(e){e&&(x.entries[x.index]=n,f({action:"REPLACE",location:n}))}))},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=x.index+e;return t>=0&&t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var d=l()(s.a).withConfig({displayName:"SVGInternal__StyledSVG",componentId:"ksy9g7-0"})(["circle,ellipse,path,polygon,rect{fill:currentColor;}"]),h={viewBox:a.a.string};function b(e){var t=e.viewBox,r=void 0===t?"0 0 1500 1500":t,n=p(e,["viewBox"]);return o.a.createElement(d,f({viewBox:r},n))}b.propTypes=h,t.default=b},3:function(e,t){e.exports=r(3)},5:function(e,t){e.exports=r(1)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomizedTheme=t.addThemeDefaults=void 0;var n,o=r(2),i=(n=r(47))&&n.__esModule?n:{default:n};t.addThemeDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.family,r=void 0===t?"prisma":t,n=e.colorScheme,o=void 0===n?"dark":n,i=e.density,a=void 0===i?"comfortable":i;return{family:r,colorScheme:o,density:a}};var a=(0,o.memoize)((function(e,t){var r=(0,i.default)(e);return t?t(r):r}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.family,r=e.colorScheme,n=e.density,o=arguments.length>1?arguments[1]:void 0;return"".concat(t,"-").concat(r,"-").concat(n,"-").concat(!!o)}));t.getCustomizedTheme=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomizedTheme=t.addThemeDefaults=void 0;var n,o=r(2),i=(n=r(39))&&n.__esModule?n:{default:n};t.addThemeDefaults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.family,r=void 0===t?"prisma":t,n=e.colorScheme,o=void 0===n?"dark":n,i=e.density,a=void 0===i?"comfortable":i;return{family:r,colorScheme:o,density:a}};var a=(0,o.memoize)((function(e,t){var r=(0,i.default)(e);return t?t(r):r}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.family,r=e.colorScheme,n=e.density,o=arguments.length>1?arguments[1]:void 0;return"".concat(t,"-").concat(r,"-").concat(n,"-").concat(!!o)}));t.getCustomizedTheme=a},function(e,t,r){"use strict";var n=r(52),o=t.ValidationError=function(e,t,r,n,o,i){if(Array.isArray(n)?(this.path=n,this.property=n.reduce((function(e,t){return e+f(t)}),"instance")):void 0!==n&&(this.property=n),e&&(this.message=e),r){var a=r.$id||r.id;this.schema=a||r}void 0!==t&&(this.instance=t),this.name=o,this.argument=i,this.stack=this.toString()};o.prototype.toString=function(){return this.property+" "+this.message};var i=t.ValidatorResult=function(e,t,r,n){this.instance=e,this.schema=t,this.options=r,this.path=n.path,this.propertyPath=n.propertyPath,this.errors=[],this.throwError=r&&r.throwError,this.throwFirst=r&&r.throwFirst,this.throwAll=r&&r.throwAll,this.disableFormat=r&&!0===r.disableFormat};function a(e,t){return t+": "+e.toString()+"\n"}function u(e){Error.captureStackTrace&&Error.captureStackTrace(this,u),this.instance=e.instance,this.schema=e.schema,this.options=e.options,this.errors=e.errors}i.prototype.addError=function(e){var t;if("string"==typeof e)t=new o(e,this.instance,this.schema,this.path);else{if(!e)throw new Error("Missing error detail");if(!e.message)throw new Error("Missing error message");if(!e.name)throw new Error("Missing validator type");t=new o(e.message,this.instance,this.schema,this.path,e.name,e.argument)}if(this.errors.push(t),this.throwFirst)throw new u(this);if(this.throwError)throw t;return t},i.prototype.importErrors=function(e){"string"==typeof e||e&&e.validatorType?this.addError(e):e&&e.errors&&Array.prototype.push.apply(this.errors,e.errors)},i.prototype.toString=function(e){return this.errors.map(a).join("")},Object.defineProperty(i.prototype,"valid",{get:function(){return!this.errors.length}}),e.exports.ValidatorResultError=u,u.prototype=new Error,u.prototype.constructor=u,u.prototype.name="Validation Error";var l=t.SchemaError=function e(t,r){this.message=t,this.schema=r,Error.call(this,t),Error.captureStackTrace(this,e)};l.prototype=Object.create(Error.prototype,{constructor:{value:l,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var c=t.SchemaContext=function(e,t,r,n,o){this.schema=e,this.options=t,Array.isArray(r)?(this.path=r,this.propertyPath=r.reduce((function(e,t){return e+f(t)}),"instance")):this.propertyPath=r,this.base=n,this.schemas=o};c.prototype.resolve=function(e){return n.resolve(this.base,e)},c.prototype.makeChild=function(e,t){var r=void 0===t?this.path:this.path.concat([t]),o=e.$id||e.id,i=n.resolve(this.base,o||""),a=new c(e,this.options,r,i,Object.create(this.schemas));return o&&!a.schemas[i]&&(a.schemas[i]=e),a};var s=t.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+-.]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/,"utc-millisec":function(e){return"string"==typeof e&&parseFloat(e)===parseInt(e,10)&&!isNaN(e)},regex:function(e){var t=!0;try{new RegExp(e)}catch(e){t=!1}return t},style:/\s*(.+?):\s*([^;]+);?/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/};s.regexp=s.regex,s.pattern=s.regex,s.ipv4=s["ip-address"],t.isFormat=function(e,t,r){if("string"==typeof e&&void 0!==s[t]){if(s[t]instanceof RegExp)return s[t].test(e);if("function"==typeof s[t])return s[t](e)}else if(r&&r.customFormats&&"function"==typeof r.customFormats[t])return r.customFormats[t](e);return!0};var f=t.makeSuffix=function(e){return(e=e.toString()).match(/[.\s\[\]]/)||e.match(/^[\d]/)?e.match(/^\d+$/)?"["+e+"]":"["+JSON.stringify(e)+"]":"."+e};function p(e,t,r,n){"object"==typeof r?t[n]=b(e[n],r):-1===e.indexOf(r)&&t.push(r)}function d(e,t,r){t[r]=e[r]}function h(e,t,r,n){"object"==typeof t[n]&&t[n]&&e[n]?r[n]=b(e[n],t[n]):r[n]=t[n]}function b(e,t){var r=Array.isArray(t),n=r&&[]||{};return r?(e=e||[],n=n.concat(e),t.forEach(p.bind(null,e,n))):(e&&"object"==typeof e&&Object.keys(e).forEach(d.bind(null,e,n)),Object.keys(t).forEach(h.bind(null,e,t,n))),n}function y(e){return"/"+encodeURIComponent(e).replace(/~/g,"%7E")}t.deepCompareStrict=function e(t,r){if(typeof t!=typeof r)return!1;if(Array.isArray(t))return!!Array.isArray(r)&&(t.length===r.length&&t.every((function(n,o){return e(t[o],r[o])})));if("object"==typeof t){if(!t||!r)return t===r;var n=Object.keys(t),o=Object.keys(r);return n.length===o.length&&n.every((function(n){return e(t[n],r[n])}))}return t===r},e.exports.deepMerge=b,t.objectGetPath=function(e,t){for(var r,n=t.split("/").slice(1);"string"==typeof(r=n.shift());){var o=decodeURIComponent(r.replace(/~0/,"~").replace(/~1/g,"/"));if(!(o in e))return;e=e[o]}return e},t.encodePath=function(e){return e.map(y).join("")},t.getDecimalPlaces=function(e){var t=0;if(isNaN(e))return t;"number"!=typeof e&&(e=Number(e));var r=e.toString().split("e");if(2===r.length){if("-"!==r[1][0])return t;t=Number(r[1].slice(1))}var n=r[0].split(".");return 2===n.length&&(t+=n[1].length),t},t.isSchema=function(e){return"object"==typeof e&&e||"boolean"==typeof e}},function(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}r.d(t,"a",(function(){return n}))},function(e,t){function r(t){return e.exports=r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.default=e.exports,e.exports.__esModule=!0,r(t)}e.exports=r,e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){var n;!function(o){var i=/^\s+/,a=/\s+$/,u=0,l=o.round,c=o.min,s=o.max,f=o.random;function p(e,t){if(t=t||{},(e=e||"")instanceof p)return e;if(!(this instanceof p))return new p(e,t);var r=function(e){var t={r:0,g:0,b:0},r=1,n=null,u=null,l=null,f=!1,p=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(a,"").toLowerCase();var t,r=!1;if(A[e])e=A[e],r=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=V.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=V.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=V.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=V.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=V.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=V.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=V.hex8.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),a:F(t[4]),format:r?"name":"hex8"};if(t=V.hex6.exec(e))return{r:D(t[1]),g:D(t[2]),b:D(t[3]),format:r?"name":"hex"};if(t=V.hex4.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:r?"name":"hex8"};if(t=V.hex3.exec(e))return{r:D(t[1]+""+t[1]),g:D(t[2]+""+t[2]),b:D(t[3]+""+t[3]),format:r?"name":"hex"};return!1}(e));"object"==typeof e&&(W(e.r)&&W(e.g)&&W(e.b)?(d=e.r,h=e.g,b=e.b,t={r:255*M(d,255),g:255*M(h,255),b:255*M(b,255)},f=!0,p="%"===String(e.r).substr(-1)?"prgb":"rgb"):W(e.h)&&W(e.s)&&W(e.v)?(n=N(e.s),u=N(e.v),t=function(e,t,r){e=6*M(e,360),t=M(t,100),r=M(r,100);var n=o.floor(e),i=e-n,a=r*(1-t),u=r*(1-i*t),l=r*(1-(1-i)*t),c=n%6;return{r:255*[r,u,a,a,l,r][c],g:255*[l,r,r,u,a,a][c],b:255*[a,a,l,r,r,u][c]}}(e.h,n,u),f=!0,p="hsv"):W(e.h)&&W(e.s)&&W(e.l)&&(n=N(e.s),l=N(e.l),t=function(e,t,r){var n,o,i;function a(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}if(e=M(e,360),t=M(t,100),r=M(r,100),0===t)n=o=i=r;else{var u=r<.5?r*(1+t):r+t-r*t,l=2*r-u;n=a(l,u,e+1/3),o=a(l,u,e),i=a(l,u,e-1/3)}return{r:255*n,g:255*o,b:255*i}}(e.h,n,l),f=!0,p="hsl"),e.hasOwnProperty("a")&&(r=e.a));var d,h,b;return r=R(r),{ok:f,format:e.format||p,r:c(255,s(t.r,0)),g:c(255,s(t.g,0)),b:c(255,s(t.b,0)),a:r}}(e);this._originalInput=e,this._r=r.r,this._g=r.g,this._b=r.b,this._a=r.a,this._roundA=l(100*this._a)/100,this._format=t.format||r.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=r.ok,this._tc_id=u++}function d(e,t,r){e=M(e,255),t=M(t,255),r=M(r,255);var n,o,i=s(e,t,r),a=c(e,t,r),u=(i+a)/2;if(i==a)n=o=0;else{var l=i-a;switch(o=u>.5?l/(2-i-a):l/(i+a),i){case e:n=(t-r)/l+(t>1)+720)%360;--t;)n.h=(n.h+o)%360,i.push(p(n));return i}function E(e,t){t=t||6;for(var r=p(e).toHsv(),n=r.h,o=r.s,i=r.v,a=[],u=1/t;t--;)a.push(p({h:n,s:o,v:i})),i=(i+u)%1;return a}p.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,r,n=this.toRgb();return e=n.r/255,t=n.g/255,r=n.b/255,.2126*(e<=.03928?e/12.92:o.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:o.pow((t+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:o.pow((r+.055)/1.055,2.4))},setAlpha:function(e){return this._a=R(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.v);return 1==this._a?"hsv("+t+", "+r+"%, "+n+"%)":"hsva("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHsl:function(){var e=d(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=d(this._r,this._g,this._b),t=l(360*e.h),r=l(100*e.s),n=l(100*e.l);return 1==this._a?"hsl("+t+", "+r+"%, "+n+"%)":"hsla("+t+", "+r+"%, "+n+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,r,n,o){var i=[I(l(e).toString(16)),I(l(t).toString(16)),I(l(r).toString(16)),I(z(n))];if(o&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*M(this._r,255))+"%",g:l(100*M(this._g,255))+"%",b:l(100*M(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%)":"rgba("+l(100*M(this._r,255))+"%, "+l(100*M(this._g,255))+"%, "+l(100*M(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(T[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+y(this._r,this._g,this._b,this._a),r=t,n=this._gradientType?"GradientType = 1, ":"";if(e){var o=p(e);r="#"+y(o._r,o._g,o._b,o._a)}return"progid:DXImageTransform.Microsoft.gradient("+n+"startColorstr="+t+",endColorstr="+r+")"},toString:function(e){var t=!!e;e=e||this._format;var r=!1,n=this._a<1&&this._a>=0;return t||!n||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(r=this.toRgbString()),"prgb"===e&&(r=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(r=this.toHexString()),"hex3"===e&&(r=this.toHexString(!0)),"hex4"===e&&(r=this.toHex8String(!0)),"hex8"===e&&(r=this.toHex8String()),"name"===e&&(r=this.toName()),"hsl"===e&&(r=this.toHslString()),"hsv"===e&&(r=this.toHsvString()),r||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return p(this.toString())},_applyModification:function(e,t){var r=e.apply(null,[this].concat([].slice.call(t)));return this._r=r._r,this._g=r._g,this._b=r._b,this.setAlpha(r._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(O,arguments)},darken:function(){return this._applyModification(w,arguments)},desaturate:function(){return this._applyModification(v,arguments)},saturate:function(){return this._applyModification(m,arguments)},greyscale:function(){return this._applyModification(g,arguments)},spin:function(){return this._applyModification(_,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(P,arguments)},complement:function(){return this._applyCombination(C,arguments)},monochromatic:function(){return this._applyCombination(E,arguments)},splitcomplement:function(){return this._applyCombination(k,arguments)},triad:function(){return this._applyCombination(j,arguments)},tetrad:function(){return this._applyCombination(S,arguments)}},p.fromRatio=function(e,t){if("object"==typeof e){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]="a"===n?e[n]:N(e[n]));e=r}return p(e,t)},p.equals=function(e,t){return!(!e||!t)&&p(e).toRgbString()==p(t).toRgbString()},p.random=function(){return p.fromRatio({r:f(),g:f(),b:f()})},p.mix=function(e,t,r){r=0===r?0:r||50;var n=p(e).toRgb(),o=p(t).toRgb(),i=r/100;return p({r:(o.r-n.r)*i+n.r,g:(o.g-n.g)*i+n.g,b:(o.b-n.b)*i+n.b,a:(o.a-n.a)*i+n.a})},p.readability=function(e,t){var r=p(e),n=p(t);return(o.max(r.getLuminance(),n.getLuminance())+.05)/(o.min(r.getLuminance(),n.getLuminance())+.05)},p.isReadable=function(e,t,r){var n,o,i=p.readability(e,t);switch(o=!1,(n=function(e){var t,r;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),r=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==r&&"large"!==r&&(r="small");return{level:t,size:r}}(r)).level+n.size){case"AAsmall":case"AAAlarge":o=i>=4.5;break;case"AAlarge":o=i>=3;break;case"AAAsmall":o=i>=7}return o},p.mostReadable=function(e,t,r){var n,o,i,a,u=null,l=0;o=(r=r||{}).includeFallbackColors,i=r.level,a=r.size;for(var c=0;cl&&(l=n,u=p(t[c]));return p.isReadable(e,u,{level:i,size:a})||!o?u:(r.includeFallbackColors=!1,p.mostReadable(e,["#fff","#000"],r))};var A=p.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},T=p.hexNames=function(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[e[r]]=r);return t}(A);function R(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function M(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var r=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,s(0,parseFloat(e))),r&&(e=parseInt(e*t,10)/100),o.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function L(e){return c(1,s(0,e))}function D(e){return parseInt(e,16)}function I(e){return 1==e.length?"0"+e:""+e}function N(e){return e<=1&&(e=100*e+"%"),e}function z(e){return o.round(255*parseFloat(e)).toString(16)}function F(e){return D(e)/255}var B,$,U,V=($="[\\s|\\(]+("+(B="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",U="[\\s|\\(]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")[,|\\s]+("+B+")\\s*\\)?",{CSS_UNIT:new RegExp(B),rgb:new RegExp("rgb"+$),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+$),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+$),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function W(e){return!!V.CSS_UNIT.exec(e)}e.exports?e.exports=p:void 0===(n=function(){return p}.call(t,r,t,e))||(e.exports=n)}(Math)},function(e,t,r){"use strict";t.a={0:"Field {{args[0]}} is required",1:"Field {{args[0]}} must be a string",2:"{{args[0]}} {{args[1]}} is already in use",3:'"default", ".", "..", string started with "_" and string including any one of ["*", "\\", "[", "]", "(", ")", "?", ":"] are reserved value which cannot be used for field {{args[0]}}',5:"Field {{args[0]}} should be a positive number",6:"Field {{args[0]}} is required",7:"Field {{args[0]}} is not a valid regular expression",8:"Field {{args[0]}} should be within the range of [{{args[1]}} and {{args[2]}}]",9:"Field {{args[0]}} should be greater than or equal to {{args[1]}}",10:"Field {{args[0]}} should be less than or equal to {{args[1]}}",11:"{{args[0]}} is not a function",12:"{{args[0]}} is not a valid regular expression",13:"{{args[0]}} is not a valid number range",14:"minLength cannot be greater than maxLength",15:"Field {{args[0]}} does not match regular expression {{args[1]}}",16:"Field {{args[0]}} is not a number",17:"Length of {{args[0]}} should be greater than or equal to {{args[1]}}",18:"Length of {{args[0]}} should be less than or equal to {{args[1]}}",19:"Field {{args[0]}} is not a valid {{args[1]}}",20:"configuration file should be pure JSON",21:"duplicate {{args[0]}} keys is not allowed",22:"Field {{args[0]}} must be less than 1024 characters",23:'"name" feild must be provided for {{args[0]}} \'s entity in configuration file',100:"Create New Input",101:"Delete Confirmation",102:'Are you sure you want to delete "{{args[0]}}" {{args[1]}}? Ensure that no input is configured with "{{args[0]}}" as this will stop data collection for that input.',103:'Are you sure you want to delete "{{args[0]}}" {{args[1]}}?',104:"Error Message",105:"Warning",106:"Input Type",107:"Items",108:"Saving",109:"Failed to load index",110:"Internal configuration file error. Something wrong within the package or installation step. Contact your administrator for support. Detail: {{args[0]}}",111:"URL",112:"email address",113:"IPV4 address",114:"date in ISO 8601 format",115:"Loading",116:"Inputs",117:"Configuration",118:"configuration file not found",unknown:"An unknown error occurred"}},function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";e.exports=r(145)},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=106)}({0:function(e,t){e.exports=r(11)},1:function(e,t){e.exports=r(3)},106:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return le})),r.d(t,"Body",(function(){return C})),r.d(t,"Header",(function(){return W})),r.d(t,"Footer",(function(){return A}));var n=r(2),o=r.n(n),i=r(1),a=r.n(i),u=r(4),l=r(63),c=r.n(l),s=r(26),f=r(33),p=r(3),d=r.n(p),h=r(8),b=r.n(h),y=r(0),v=d()(b.a).withConfig({displayName:"BodyStyles__StyledBox",componentId:"lv54z7-0"})(["background-color:",";"," "," flex:0 1 auto;overflow:auto;@media all and (-ms-high-contrast:none){*::-ms-backdrop,&{max-height:calc(100vh - 180px);}}"],Object(y.pick)({enterprise:y.variables.backgroundColor,prisma:y.variables.backgroundColorDialog}),Object(y.pick)({enterprise:{comfortable:Object(p.css)(["padding:28px;"]),compact:Object(p.css)(["padding:24px;"])},prisma:{comfortable:Object(p.css)(["padding:12px 24px;&:first-child{padding-top:36px;}&:last-child{padding-bottom:36px;}"]),compact:Object(p.css)(["padding:8px 24px;&:first-child{padding-top:26px;}&:last-child{padding-bottom:26px;}"])}}),Object(y.pick)({prisma:Object(p.css)(["color:",";"],y.variables.contentColorActive)}));function m(){return(m=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var w={children:a.a.node};function _(e){var t=e.children,r=O(e,["children"]),i=g(Object(n.useState)(),2),a=i[0],u=i[1],l=Object(n.useCallback)((function(e){u(e)}),[]);return o.a.createElement(v,m({"data-test":"body"},r,{elementRef:l}),o.a.createElement(f.ScrollContainerProvider,{value:a},t))}_.propTypes=w;var C=_,j=d()(b.a).withConfig({displayName:"FooterStyles__StyledBox",componentId:"yszcmv-0"})(["flex:0 0 auto;text-align:right;padding:",";"," & > button{min-width:80px;}"],Object(y.pick)({enterprise:y.variables.spacing,prisma:{comfortable:"24px",compact:"18px 24px"}}),Object(y.pick)({enterprise:Object(p.css)(["background-color:",";border-top:1px solid ",";"],y.variables.backgroundColor,y.variables.borderColor),prisma:Object(p.css)(["background-color:",";"],y.variables.backgroundColorDialog)}));function S(){return(S=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var P={children:a.a.node};function E(e){var t=e.children,r=k(e,["children"]);return o.a.createElement(j,S({"data-test":"footer"},r),t)}E.propTypes=P;var A=E,T=r(57),R=r.n(T),M=d()(b.a).withConfig({displayName:"HeaderStyles__StyledBox",componentId:"sc-1y722ut-0"})(["flex:0 0 auto;display:flex;"," position:relative;min-height:",";background-color:",";padding:",";align-items:center;padding-right:",";"],Object(y.pick)({enterprise:Object(p.css)(["border-bottom:1px solid ",";"],y.variables.borderColor)}),Object(y.pick)({enterprise:"30px",prisma:{comfortable:"60px",compact:"52px"}}),Object(y.pick)({enterprise:y.variables.backgroundColor,prisma:y.variables.backgroundColorDialog}),Object(y.pick)({enterprise:"25px 28px",prisma:{comfortable:"18px 24px",compact:"14px 24px"}}),(function(e){return e.$close&&Object(y.pick)({enterprise:"54px",prisma:{comfortable:"64px",compact:"56px"}})})),L=d.a.div.withConfig({displayName:"HeaderStyles__StyledTitleWrapper",componentId:"sc-1y722ut-1"})(["",";flex-direction:column;"],y.mixins.reset("flex")),D=d.a.svg.withConfig({displayName:"HeaderStyles__StyledIcon",componentId:"sc-1y722ut-2"})(["margin-right:16px;"," width:",";height:",";padding:2px;border-radius:4px;flex-shrink:0;"],Object(y.pick)({prisma:Object(p.css)(["background-color:",";"],y.variables.transparent)}),Object(y.pick)({comfortable:"40px",compact:"32px"}),Object(y.pick)({comfortable:"40px",compact:"32px"})),I=d.a.div.withConfig({displayName:"HeaderStyles__StyledTitle",componentId:"sc-1y722ut-3"})(["",";font-size:20px;margin:0;overflow-wrap:break-word;font-weight:",";",""],y.mixins.reset("block"),y.variables.fontWeightSemiBold,Object(y.pick)({enterprise:Object(p.css)(["line-height:22px;"]),prisma:Object(p.css)(["color:",";line-height:24px;"],y.variables.contentColorActive)})),N=d.a.div.withConfig({displayName:"HeaderStyles__StyledSubtitle",componentId:"sc-1y722ut-4"})(["",";font-size:14px;overflow-wrap:break-word;line-height:",";"],y.mixins.reset("block"),Object(y.pick)({enterprise:y.variables.lineHeight,prisma:"20px"})),z=d.a.div.withConfig({displayName:"HeaderStyles__StyledButtonsWrapper",componentId:"sc-1y722ut-5"})(["",";position:absolute;top:",";right:",";bottom:50%;"," max-height:35px;transform-origin:bottom right;transform:rotate(-90deg) translateX(100%);"],y.mixins.reset("block"),Object(y.pick)({enterprise:0,prisma:{comfortable:"-2px",compact:"-6px"}}),Object(y.pick)({enterprise:0,prisma:{comfortable:"-2px",compact:"-6px"}}),Object(y.pick)({prisma:{comfortable:Object(p.css)(["min-height:35px;"]),compact:Object(p.css)(["min-height:30px;"])}})),F=d.a.div.withConfig({displayName:"HeaderStyles__StyledClose",componentId:"sc-1y722ut-6"})(["",";position:absolute;right:0;top:0;transform:rotate(90deg) translate(-50%,-50%);"],y.mixins.reset("block"));function B(){return(B=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var U={children:a.a.node,icon:a.a.node,onRequestClose:a.a.func,subtitle:a.a.node,title:a.a.string};function V(e){var t=e.children,r=e.icon,n=e.onRequestClose,i=e.subtitle,a=e.title,u=$(e,["children","icon","onRequestClose","subtitle","title"]);return o.a.createElement(M,B({$close:!!n,"data-test":"header"},u),r&&o.a.createElement(D,null,r),a?o.a.createElement(L,null,a&&o.a.createElement(I,{"data-test":"title"},a),i&&o.a.createElement(N,{"data-test":"subtitle"},i)):t,n&&o.a.createElement(z,null,n&&o.a.createElement(F,null,o.a.createElement(R.a,{onClick:n,"data-test":"close"}))))}V.propTypes=U;var W=V,H=d.a.div.withConfig({displayName:"ModalStyles__Styled",componentId:"sc-5fn8ds-0"})(["",";flex-direction:column;position:fixed;left:50%;transform:translateX(-50%);z-index:",";",""],y.mixins.reset("flex"),y.variables.zindexModal,Object(y.pick)({enterprise:Object(p.css)(["box-shadow:0 1px 5px ",";max-height:calc(100vh - "," * 4);max-width:calc(100vw - "," * 4);"],y.variables.black,y.variables.spacing,y.variables.spacing),prisma:Object(p.css)(["box-shadow:",";max-height:calc(100vh - "," * 4);max-width:calc(100vw - "," * 4);"],y.variables.modalShadow,y.variables.spacingXLarge,y.variables.spacingXLarge)}));function q(e){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(){return(K=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r * > &,",":active > * > &,{color:",";}"],_.variables.contentColorDefault,j,j,_.variables.contentColorDefault)})}}));function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function A(){return(A=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p={display:"inline-block",flex:"0 0 auto",overflow:"visible",verticalAlign:"middle"},d={display:"block",flex:"0 0 auto",margin:"0 auto",overflow:"visible"},h={Enterprise:a.a.func,enterpriseSize:a.a.oneOfType([a.a.number,a.a.string]),enterpriseWidth:a.a.oneOfType([a.a.number,a.a.string]),enterpriseHeight:a.a.oneOfType([a.a.number,a.a.string]),Prisma24:a.a.func.isRequired,Prisma20:a.a.func,Prisma16:a.a.func,prismaSize:a.a.oneOf(["medium","small"]),inline:a.a.bool,screenReaderText:a.a.string};function b(e){var t=e.Enterprise,r=e.Prisma24,n=e.Prisma20,i=e.Prisma16,a=e.prismaSize,h=e.inline,b=e.enterpriseSize,y=e.enterpriseWidth,v=e.enterpriseHeight,m=e.screenReaderText,g=f(e,["Enterprise","Prisma24","Prisma20","Prisma16","prismaSize","inline","enterpriseSize","enterpriseWidth","enterpriseHeight","screenReaderText"]),x=Object(u.useSplunkTheme)(),O=x.family,w=x.density;if("enterprise"===O)return o.a.createElement(t,s({size:b,width:y,height:v,screenReaderText:m||null,hideDefaultTooltip:!0,inline:h},g));var _=function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.addThemeDefaults)(e),r=t.family,n=t.colorScheme,u=t.density;return Object.freeze(c({colorScheme:n,density:u,family:r},"enterprise"===r?(0,o.default)({colorScheme:n,density:u}):(0,i.default)({colorScheme:n,density:u})))}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.family,r=e.colorScheme,n=e.density;return"".concat(t).concat(r).concat(n)}));t.clearGetThemeCache=function(){var e,t;return null===(e=(t=f.cache).clear)||void 0===e?void 0:e.call(t)};var p=f;t.default=p},function(e,t,r){"use strict";r.d(t,"g",(function(){return u})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return c})),r.d(t,"b",(function(){return s})),r.d(t,"h",(function(){return f})),r.d(t,"d",(function(){return p})),r.d(t,"c",(function(){return h})),r.d(t,"a",(function(){return b}));var n=r(27),o=r(55),i=r.n(o),a=null;function u(e){e}function l(e){return["0","FALSE","F","N","NO","NONE",""].includes(e.toString().toUpperCase())}function c(e){return["1","TRUE","T","Y","YES"].includes(e.toString().toUpperCase())}function s(e){return"".concat(a.meta.restRoot,"_").concat(e)}function f(e){a=e}function p(){return a}var d=Object(o.makeCreateToast)(i.a),h=function(e,t){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;switch(t){case"success":r=n.TOAST_TYPES.SUCCESS;break;case"error":case"warning":r=n.TOAST_TYPES.ERROR;break;default:r=n.TOAST_TYPES.INFO}d({type:r,message:e,autoDismiss:!0,dismissOnActionClick:!0,showAction:Boolean(o),action:o||void 0})};function b(e,t,r,n){var o=e.map((function(e){var r;return{label:t?null===(r=e.content)||void 0===r?void 0:r[t]:e.name,value:e.name}}));return r&&(o=function(e,t){var r=new RegExp(t);return e.filter((function(e){return r.test(e.value)}))}(o,r)),n&&(o=function(e,t){var r=new RegExp(t);return e.filter((function(e){return!r.test(e.value)}))}(o,n)),o}},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=129)}({0:function(e,t){e.exports=r(11)},1:function(e,t){e.exports=r(3)},12:function(e,t,r){"use strict";function n(e,t){e&&("function"==typeof e?e(t):e.current=t)}r.d(t,"a",(function(){return n}))},129:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return M})),r.d(t,"isInternalLink",(function(){return E})),r.d(t,"NavigationContext",(function(){return h})),r.d(t,"NavigationProvider",(function(){return b}));var n=r(2),o=r.n(n),i=r(1),a=r.n(i),u=r(4),l=r(16),c=r(3),s=r.n(c),f=r(0),p=s.a.a.withConfig({displayName:"ClickableStyles__StyledA",componentId:"sc-7al1vw-0"})([""," cursor:pointer;&[disabled]{cursor:not-allowed;color:",";}&::-moz-focus-inner{border:0;padding:0;}"],f.mixins.reset("inline"),f.variables.contentColorDisabled),d={children:a.a.node,onClick:a.a.func},h=o.a.createContext(void 0);function b(e){var t=e.children,r=e.onClick;return o.a.createElement(h.Provider,{value:r},t)}b.propTypes=d;var y=r(12);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(){return(m=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function x(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.addThemeDefaults)(e),r=t.family,n=t.colorScheme,u=t.density;return Object.freeze(c({colorScheme:n,density:u,family:r},"enterprise"===r?(0,o.default)({colorScheme:n,density:u}):(0,i.default)({colorScheme:n,density:u})))}),(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.family,r=e.colorScheme,n=e.density;return"".concat(t).concat(r).concat(n)}));t.clearGetThemeCache=function(){var e,t;return null===(e=(t=f.cache).clear)||void 0===e?void 0:e.call(t)};var p=f;t.default=p},function(e,t,r){"use strict";function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t",'"',"`"," ","\r","\n","\t"]),s=["'"].concat(c),f=["%","/","?",";","#"].concat(s),p=["/","?","#"],d=/^[+a-z0-9A-Z_-]{0,63}$/,h=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},m=r(87);function g(e,t,r){if(e&&o.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}i.prototype.parse=function(e,t,r){if(!o.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),u=-1!==i&&i127?M+="x":M+=R[L];if(!M.match(d)){var I=A.slice(0,k),N=A.slice(k+1),z=R.match(h);z&&(I.push(z[1]),N.unshift(z[2])),N.length&&(g="/"+N.join(".")+g),this.hostname=I.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),E||(this.hostname=n.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==g[0]&&(g="/"+g))}if(!b[w])for(k=0,T=s.length;k0)&&r.host.split("@"))&&(r.auth=E.shift(),r.host=r.hostname=E.shift());return r.search=e.search,r.query=e.query,o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var j=_.slice(-1)[0],S=(r.host||e.host||_.length>1)&&("."===j||".."===j)||""===j,k=0,P=_.length;P>=0;P--)"."===(j=_[P])?_.splice(P,1):".."===j?(_.splice(P,1),k++):k&&(_.splice(P,1),k--);if(!O&&!w)for(;k--;k)_.unshift("..");!O||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),S&&"/"!==_.join("/").substr(-1)&&_.push("");var E,A=""===_[0]||_[0]&&"/"===_[0].charAt(0);C&&(r.hostname=r.host=A?"":_.length?_.shift():"",(E=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@"))&&(r.auth=E.shift(),r.host=r.hostname=E.shift()));return(O=O||r.host&&_.length)&&!A&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),o.isNull(r.pathname)&&o.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=u.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,r){"use strict";var n=r(52),o=r(18);function i(e,t){this.id=e,this.ref=t}e.exports.SchemaScanResult=i,e.exports.scan=function(e,t){function r(e,t){if(t&&"object"==typeof t)if(t.$ref){var i=n.resolve(e,t.$ref);c[i]=c[i]?c[i]+1:0}else{var s=t.$id||t.id,f=s?n.resolve(e,s):e;if(f){if(f.indexOf("#")<0&&(f+="#"),l[f]){if(!o.deepCompareStrict(l[f],t))throw new Error("Schema <"+f+"> already exists with different definition");return l[f]}l[f]=t,"#"==f[f.length-1]&&(l[f.substring(0,f.length-1)]=t)}a(f+"/items",Array.isArray(t.items)?t.items:[t.items]),a(f+"/extends",Array.isArray(t.extends)?t.extends:[t.extends]),r(f+"/additionalItems",t.additionalItems),u(f+"/properties",t.properties),r(f+"/additionalProperties",t.additionalProperties),u(f+"/definitions",t.definitions),u(f+"/patternProperties",t.patternProperties),u(f+"/dependencies",t.dependencies),a(f+"/disallow",t.disallow),a(f+"/allOf",t.allOf),a(f+"/anyOf",t.anyOf),a(f+"/oneOf",t.oneOf),r(f+"/not",t.not)}}function a(e,t){if(Array.isArray(t))for(var n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function I(e){var t=Object(c.createStaticURL)("build/api/layout.js");window.requirejs?window.requirejs([t],e):u()(t,(function(){e(window.__splunk_layout__)}))}t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.useGlobalLayerStack,n=void 0===r||r,a=t.pageTitle,u=D(t,["useGlobalLayerStack","pageTitle"]),c=document.createElement("div");a&&(document.title=a),document.body.appendChild(c),Object(i.render)(o.a.createElement(L,u),c),I((function(t){var r;t?(r=t.create(u).getContainerElement(),"fixed"===u.layout&&(r.style.flex&&"1 0 0px"!==r.style.flex||(r.style.flex="1 0 0%"),r.style.overflow||(r.style.overflow="hidden"),r.style.width||(r.style.width="100vw"))):(console.error("Unable to load layout."),r=document.createElement("div"),document.body.appendChild(r)),setTimeout((function(){Object(i.unmountComponentAtNode)(c),c.parentNode.removeChild(c);var t=n?o.a.createElement(l.LayerStackGlobalProvider,null,e):e;Object(i.render)(t,r)}),30)}))}}])},function(e,t,r){"use strict";var n=r(117),o=r.n(n),i=r(118),a=r.n(i)()(o.a);a.push([e.i,'/*\n * Copyright 2021 Splunk Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nbody {\n min-width: 960px;\n}\n',"",{version:3,sources:["webpack://./src/main/webapp/pages/style.css"],names:[],mappings:"AAAA;;;;;;;;;;;;;;;EAeE;AACF;IACI,gBAAgB;AACpB",sourcesContent:['/*\n * Copyright 2021 Splunk Inc.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n *\n */\nbody {\n min-width: 960px;\n}\n'],sourceRoot:""}]),t.a=a},function(e,t,r){"use strict";(function(e){var n=r(0),o=r.n(n),i=r(10),a=r(3),u=r.n(a),l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==e?e:{};function c(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(r,n){e=r,t.forEach((function(t){return t(e,n)}))}}}var s=o.a.createContext||function(e,t){var r,o,a,s="__create-react-context-"+((l[a="__global_unique_id__"]=(l[a]||0)+1)+"__"),f=function(e){function r(){var t;return(t=e.apply(this,arguments)||this).emitter=c(t.props.value),t}Object(i.a)(r,e);var n=r.prototype;return n.getChildContext=function(){var e;return(e={})[s]=this.emitter,e},n.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var r,n=this.props.value,o=e.value;((i=n)===(a=o)?0!==i||1/i==1/a:i!=i&&a!=a)?r=0:(r="function"==typeof t?t(n,o):1073741823,0!==(r|=0)&&this.emitter.set(e.value,r))}var i,a},n.render=function(){return this.props.children},r}(n.Component);f.childContextTypes=((r={})[s]=u.a.object.isRequired,r);var p=function(t){function r(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,r){0!=((0|e.observedBits)&r)&&e.setState({value:e.getValue()})},e}Object(i.a)(r,t);var n=r.prototype;return n.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=null==t?1073741823:t},n.componentDidMount=function(){this.context[s]&&this.context[s].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=null==e?1073741823:e},n.componentWillUnmount=function(){this.context[s]&&this.context[s].off(this.onUpdate)},n.getValue=function(){return this.context[s]?this.context[s].get():e},n.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},r}(n.Component);return p.contextTypes=((o={})[s]=u.a.object,o),{Provider:f,Consumer:p}};t.a=s}).call(this,r(23))},function(e,t,r){var n=r(249);e.exports=d,e.exports.parse=i,e.exports.compile=function(e,t){return u(i(e,t),t)},e.exports.tokensToFunction=u,e.exports.tokensToRegExp=p;var o=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function i(e,t){for(var r,n=[],i=0,a=0,u="",s=t&&t.delimiter||"/";null!=(r=o.exec(e));){var f=r[0],p=r[1],d=r.index;if(u+=e.slice(a,d),a=d+f.length,p)u+=p[1];else{var h=e[a],b=r[2],y=r[3],v=r[4],m=r[5],g=r[6],x=r[7];u&&(n.push(u),u="");var O=null!=b&&null!=h&&h!==b,w="+"===g||"*"===g,_="?"===g||"*"===g,C=r[2]||s,j=v||m;n.push({name:y||i++,prefix:b||"",delimiter:C,optional:_,repeat:w,partial:O,asterisk:!!x,pattern:j?c(j):x?".*":"[^"+l(C)+"]+?"})}}return a=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var d={children:a.a.node,elementRef:a.a.oneOfType([a.a.func,a.a.object]),flex:a.a.bool,inline:a.a.bool};function h(e){var t=e.children,r=e.elementRef,n=e.flex,i=void 0!==n&&n,a=e.inline,u=void 0!==a&&a,l=p(e,["children","elementRef","flex","inline"]);return o.a.createElement(s,f({ref:r},l,{"data-inline":u||void 0,"data-flex":i||void 0}),t)}h.propTypes=d;var b=h},2:function(e,t){e.exports=r(0)},3:function(e,t){e.exports=r(1)}})},function(e,t,r){"use strict";function n(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=Math.floor(16*Math.random());return("x"===e?t:t%4+8).toString(16)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.createGUID=n,t.createDOMID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"id";if(e.match(/^[a-zA-Z][\w-]*$/))return"".concat(e,"-").concat(n());throw new Error("createDOMID: Prefix must start with a letter and may only contain letters, digits, hyphens and underscores")}},function(e,t,r){var n=r(244),o=r(245),i=r(137),a=r(246);e.exports=function(e,t){return n(e)||o(e,t)||i(e,t)||a()},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isNumber=l,t.isDecimal=c,t.isMinus=s,t.isNumeric=function(e,t){return l(e)||c(e,t)||s(e)},t.addsCharacter=function(e){var t=e.key;if(u(t)){return 1===t.length||["Add","Decimal","Divide","Multiply","Spacebar","Subtract"].indexOf(t)>=0}return},t.keycode=void 0;var n,o=(n=r(163))&&n.__esModule?n:{default:n},i=r(2);var a=o.default;function u(e){return!(0,i.isUndefined)(e)&&"Unidentified"!==e}function l(e){var t=e.key,r=e.keyCode;if(u(t)){return["1","2","3","4","5","6","7","8","9","0"].indexOf(t)>=0}return r>=48&&r<=57||r>=96&&r<=105}function c(e){var t=e.key,r=e.keyCode,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=n.locale,i=void 0===o?"en-US":o,l=new Intl.NumberFormat(i.replace("_","-")).format(1.2),c=l.indexOf(",")>-1?",":".";return u(t)?t===c||"Decimal"===t:"."===c&&r===a("numpad .")||r===a(c)}function s(e){var t=e.key,r=e.keyCode;return u(t)?"-"===t||"Subtract"===t:r===a("numpad -")||r===a("-")}t.keycode=a},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=159)}({0:function(e,t){e.exports=r(11)},1:function(e,t){e.exports=r(3)},159:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return b}));var n=r(2),o=r.n(n),i=r(1),a=r.n(i),u=r(3),l=r.n(u),c=r(0),s=l.a.span.withConfig({displayName:"ScreenReaderContentStyles__Styled",componentId:"sc-1lnohwp-0"})(["",";"],c.mixins.screenReaderContent());function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var d={children:a.a.node.isRequired,elementRef:a.a.oneOfType([a.a.func,a.a.object])};function h(e){var t=e.children,r=e.elementRef,n=p(e,["children","elementRef"]);return o.a.createElement(s,f({"data-test":"screen-reader-content",ref:r},n),t)}h.propTypes=d;var b=h},2:function(e,t){e.exports=r(0)},3:function(e,t){e.exports=r(1)}})},function(e,t,r){var n=r(171),o=r(176);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=150)}({0:function(e,t){e.exports=r(11)},1:function(e,t){e.exports=r(3)},150:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return j}));var n=r(2),o=r.n(n),i=r(1),a=r.n(i),u=r(31),l=r(0),c=r(5),s=r(3),f=r.n(s),p=f.a.div.withConfig({displayName:"WaitSpinnerStyles__Styled",componentId:"sc-1nu971z-0"})(["",";"],l.mixins.reset("inline")),d=Object(s.keyframes)(["100%{transform:rotate(360deg);}"]),h=Object(s.keyframes)(["0%{transform:scale(0);opacity:0;}100%{transform:scale(1);opacity:1;}"]),b=f.a.svg.withConfig({displayName:"WaitSpinnerStyles__StyledSvg",componentId:"sc-1nu971z-1"})([""," ",""],Object(l.pickVariant)("$size",{small:{enterprise:Object(s.css)(["width:14px;height:14px;"]),prisma:Object(s.css)(["width:16px;height:16px;"])},medium:{enterprise:Object(s.css)(["width:19px;height:19px;"]),prisma:Object(s.css)(["width:24px;height:24px;"])},large:{enterprise:Object(s.css)(["width:19px;height:19px;"]),prisma:Object(s.css)(["width:40px;height:40px;"])}}),(function(e){return e.$animated&&Object(l.pick)({enterprise:Object(s.css)(["transform-origin:center;animation:"," 1.2s steps(64) infinite;"],d),prisma:Object(s.css)(["animation:"," "," infinite linear,"," 500ms cubic-bezier(0.01,0,0,1);"],d,"2.07s",h)})})),y=Object(s.keyframes)(["0%{stroke-dasharray:110 10;stroke-dashoffset:-5.5;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:26 94;stroke-dashoffset:-152;}100%{stroke-dasharray:110 10;stroke-dashoffset:-246.5;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]),v=Object(s.keyframes)(["0%{stroke-dasharray:7 113;stroke-dashoffset:3;animation-timing-function:cubic-bezier(0.8,0,0.83,1);}50%{stroke-dasharray:90 30;stroke-dashoffset:-60;}100%{stroke-dasharray:7 113;stroke-dashoffset:-238;animation-timing-function:cubic-bezier(0.33,0,0.67,1);}"]),m=f.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledPrismaBasePath",componentId:"sc-1nu971z-2"})(["stroke:",";stroke-width:2;fill:transparent;"," stroke-dasharray:110 10;stroke-dashoffset:-5.5;"],l.variables.contentColorDisabled,(function(e){return e.$animated&&Object(s.css)(["animation:"," "," infinite;animation-fill-mode:backwards;"],y,"2.07s")})),g=f.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledPrismaFillPath",componentId:"sc-1nu971z-3"})(["fill:transparent;stroke-width:2;stroke:",";stroke-dasharray:7 113;stroke-dashoffset:3;",""],Object(l.pickVariant)("$size",{small:l.variables.contentColorDefault,medium:l.variables.contentColorDefault,large:l.variables.interactiveColorPrimary}),(function(e){return e.$animated&&Object(s.css)(["animation:"," "," infinite;"],v,"2.07s")})),x=f.a.circle.withConfig({displayName:"WaitSpinnerStyles__StyledEnterpriseCircle",componentId:"sc-1nu971z-4"})(["fill:transparent;stroke:",";stroke-width:2px;",""],Object(l.pick)({enterprise:{dark:l.variables.white,light:l.variables.gray60},prisma:l.variables.contentColorMuted}),Object(l.pick)({enterprise:Object(s.css)(["stroke-dasharray:34 19;"])}));function O(){return(O=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var _={elementRef:a.a.oneOfType([a.a.func,a.a.object]),screenReaderText:a.a.string,size:a.a.oneOf(["small","medium","large"])};function C(e){var t=e.elementRef,r=e.screenReaderText,n=void 0===r?Object(c._)("Waiting"):r,i=e.size,a=void 0===i?"small":i,s=w(e,["elementRef","screenReaderText","size"]),f="on"===Object(u.useAnimationToggle)(),d="prisma"===Object(l.useSplunkTheme)().family,h=d?"0 0 40 40":"0 0 19 19";return o.a.createElement(p,O({"data-test":"wait-spinner"},s),o.a.createElement(b,{viewBox:h,version:"1.1",xmlns:"http://www.w3.org/2000/svg",ref:t,$animated:f,$size:a},n&&o.a.createElement("title",null,n),o.a.createElement("g",null,d?o.a.createElement(o.a.Fragment,null,o.a.createElement(m,{r:"19",cx:"20",cy:"20",$animated:f,$size:a}),o.a.createElement(g,{r:"19",cx:"20",cy:"20",$animated:f,$size:a})):o.a.createElement(x,{cx:"9.5",cy:"9.5",r:"8.5"}))))}C.propTypes=_;var j=C},2:function(e,t){e.exports=r(0)},3:function(e,t){e.exports=r(1)},31:function(e,t){e.exports=r(80)},5:function(e,t){e.exports=r(6)}})},function(e,t,r){"use strict";r.d(t,"a",(function(){return y})),r.d(t,"d",(function(){return v})),r.d(t,"c",(function(){return m})),r.d(t,"b",(function(){return g}));var n,o,i,a,u,l=r(13),c=r.n(l),s=r(1),f=r(30),p=r.n(f),d=r(14),h=r(67),b=r.n(h),y=Object(s.default)(p.a)(n||(n=c()(["\n margin: 0px 1px;\n border: none;\n"]))),v=Object(s.default)(b.a)(o||(o=c()(["\n position: fixed;\n top: 50%;\n left: 50%;\n"]))),m=(s.default.div(i||(i=c()(["\n text-align: left;\n"]))),s.default.span(a||(a=c()(["\n button {\n margin-left: 80px;\n min-width: 100px;\n }\n"])))),g=s.default.div(u||(u=c()(["\n font-size: ",";\n text-align: center;\n"])),d.variables.fontSize)},function(e,t,r){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(t,"__esModule",{value:!0});var o=n(r(152)),i=n(r(153)),a=n(r(154)),u=n(r(156)),l=n(r(157)),c=n(r(86)),s=n(r(159)),f=n(r(161)),p=n(r(0));n(r(3)),n(r(162));var d,h=(d=null,function(){if(null!==d)return d;var e,t,r,n=!1;try{window.addEventListener("test",null,(e={},t="passive",r={get:function(){n=!0}},Object.defineProperty(e,t,r)))}catch(e){}return d=n,n}()),b={capture:!1,passive:!1};function y(e){return f({},b,e)}function v(e,t,r){var n=[e,t];return n.push(h?r:r.capture),n}function m(e,t,r,n){e.addEventListener.apply(e,v(t,r,n))}function g(e,t,r,n){e.removeEventListener.apply(e,v(t,r,n))}function x(e,t){e.children,e.target;var r=s(e,["children","target"]);Object.keys(r).forEach((function(e){if("on"===e.substring(0,2)){var n=r[e],o=c(n),i="object"===o;if(i||"function"===o){var a="capture"===e.substr(-7).toLowerCase(),u=e.substring(2).toLowerCase();u=a?u.substring(0,u.length-7):u,i?t(u,n.handler,n.options):t(u,n,y({capture:a}))}}}))}var O=function(e){function t(){return o(this,t),a(this,u(t).apply(this,arguments))}return l(t,e),i(t,[{key:"componentDidMount",value:function(){this.applyListeners(m)}},{key:"componentDidUpdate",value:function(e){this.applyListeners(g,e),this.applyListeners(m)}},{key:"componentWillUnmount",value:function(){this.applyListeners(g)}},{key:"applyListeners",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props,r=t.target;if(r){var n=r;"string"==typeof r&&(n=window[r]),x(t,e.bind(null,n))}}},{key:"render",value:function(){return this.props.children||null}}]),t}(p.PureComponent);O.propTypes={},t.withOptions=function(e,t){return{handler:e,options:y(t)}},t.default=O},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,r){var n=r(42).Symbol;e.exports=n},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSortedTabbableElements=i,t.handleTab=function(e,t){if(!e.contains(document.activeElement))return null;if("tab"!==(0,n.keycode)(t)||t.metaKey||t.altKey||t.controlKey)return null;var r=i(e);if(0===r.length)return document.activeElement===e?(t.preventDefault(),e):null;var o=t&&t.target||e.querySelector(":focus"),a=r.indexOf(o);-1===a&&(a=t.shiftKey?0:r.length-1);t.shiftKey?r.unshift(r.pop()):r.push(r.shift());return t.preventDefault(),r[a].focus(),r[a]},t.takeFocus=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"first",r=e.querySelector(":focus");if(r)return r;if("first"===t){var n=i(e)[0];if(n)return(0,o.defer)((function(){return n.focus()})),n}if(e.hasAttribute("tabIndex"))return(0,o.defer)((function(){return e.focus()})),e;return null};var n=r(64),o=r(2);function i(e){var t=e.querySelectorAll("a[href], input:not([disabled]), select:not([disabled]),\n textarea:not([disabled]), button:not([disabled]), [tabindex], [contenteditable]"),r=(0,o.filter)(t,(function(e){return!(!((t=e).offsetWidth||t.offsetHeight||t.getClientRects().length>0)||"hidden"===getComputedStyle(t).visibility)&&e.tabIndex>=0||e===document.activeElement;var t})).reduce((function(e,t){var r=e[e.length-1],n="radio"===(null==r?void 0:r.getAttribute("type")),o="radio"===t.getAttribute("type"),i=t.getAttribute("name")===(null==r?void 0:r.getAttribute("name"));return n&&o&&i?t.checked&&(e.pop(),e.push(t)):e.push(t),e}),[]);return(0,o.sortBy)(r,(function(e){return e.tabIndex>0?-1/e.tabIndex:0}))}},function(e,t,r){e.exports=r(227)},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=54)}({0:function(e,t){e.exports=r(0)},1:function(e,t){e.exports=r(6)},4:function(e,t){e.exports=r(139)},54:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var n=r(0),o=r.n(n),i=r(1),a=r(4),u=r.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function c(e){var t=e.immediate,r=l(e,["immediate"]),n=Object(a.useAnimationToggle)();return o.a.createElement(i.Spring,u({},r,{immediate:t||"on"!==n}))}function s(e){var t=e.immediate,r=l(e,["immediate"]),n=Object(a.useAnimationToggle)();return o.a.createElement(i.Transition,u({},r,{immediate:t||"on"!==n}))}},2:function(e,t){e.exports=r(0)},31:function(e,t){e.exports=r(80)},38:function(e,t){e.exports=r(81)}})},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=163)}({163:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return a})),r.d(t,"ScrollContainerContext",(function(){return o})),r.d(t,"ScrollContainerProvider",(function(){return i}));var n=r(2),o=r.n(n).a.createContext("window"),i=o.Provider,a=o},2:function(e,t){e.exports=r(0)}})},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var l,c=[],s=!1,f=-1;function p(){s&&l&&(s=!1,l.length?c=l.concat(c):f=-1,c.length&&d())}function d(){if(!s){var e=u(p);s=!0;for(var t=c.length;t;){for(l=c,c=[];++f1)for(var r=1;r1&&(r=l(r),n=l(n),o=l(o)),{r:r,g:n,b:o}}({r:e.r+r,g:e.g+r,b:e.b+r})}function S(e){return Math.max(e.r,e.g,e.b)-Math.min(e.r,e.g,e.b)}function k(e,t){var r=["r","g","b"].sort((function(t,r){return e[t]-e[r]})),n=r[0],o=r[1],i=r[2],a={r:e.r,g:e.g,b:e.b};return a[i]>a[n]?(a[o]=(a[o]-a[n])*t/(a[i]-a[n]),a[i]=t):a[o]=a[i]=0,a[n]=0,a}function P(e,t){return j(k(t,S(e)),C(e))}function E(e,t){return j(k(e,S(t)),C(e))}function A(e,t){return j(t,C(e))}function T(e,t){return j(e,C(t))}function R(e,t){return w(e,t,n,o)}function M(e,t){return w(e,t,n,i)}function L(e,t){return w(e,t,n,a)}function D(e,t){return w(e,t,n,u)}function I(e,t){return w(e,t,n,l)}function N(e,t){return w(e,t,n,c)}function z(e,t){return w(e,t,n,s)}function F(e,t){return w(e,t,n,f)}function B(e,t){return w(e,t,n,p)}function $(e,t){return w(e,t,n,d)}function U(e,t){return w(e,t,n,h)}function V(e,t){return w(e,t,n,b)}function W(e,t){return w(e,t,_,P)}function H(e,t){return w(e,t,_,E)}function q(e,t){return w(e,t,_,A)}function K(e,t){return w(e,t,_,T)}r.r(t),r.d(t,"normal",(function(){return R})),r.d(t,"multiply",(function(){return M})),r.d(t,"screen",(function(){return L})),r.d(t,"overlay",(function(){return D})),r.d(t,"darken",(function(){return I})),r.d(t,"lighten",(function(){return N})),r.d(t,"colorDodge",(function(){return z})),r.d(t,"colorBurn",(function(){return F})),r.d(t,"hardLight",(function(){return B})),r.d(t,"softLight",(function(){return $})),r.d(t,"difference",(function(){return U})),r.d(t,"exclusion",(function(){return V})),r.d(t,"hue",(function(){return W})),r.d(t,"saturation",(function(){return H})),r.d(t,"color",(function(){return q})),r.d(t,"luminosity",(function(){return K}))},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=123)}({1:function(e,t){e.exports=r(3)},123:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return h})),r.d(t,"AnimationToggleContext",(function(){return u})),r.d(t,"AnimationToggleProvider",(function(){return y})),r.d(t,"useAnimationToggle",(function(){return s}));var n=r(2),o=r.n(n),i=r(1),a=r.n(i),u=o.a.createContext(!0);function l(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=e);++r);return r-1}(e,i);return function(e,t,r,n,o,i,a,u,l){var c=l?l(e):e;if(cr){if("identity"===u)return c;"clamp"===u&&(c=r)}if(n===o)return n;if(t===r)return e<=t?n:o;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=i(c),n===-1/0?c=-c:o===1/0?c+=n:c=c*(o-n)+n;return c}(e,i[t],i[t+1],o[t],o[t+1],a,u,c,l)}},e}();var L="[-+]?\\d*\\.?\\d+";function D(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}var I=new RegExp("rgb"+D(L,L,L)),N=new RegExp("rgba"+D(L,L,L,L)),z=new RegExp("hsl"+D(L,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),F=new RegExp("hsla"+D(L,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",L)),B=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,U=/^#([0-9a-fA-F]{6})$/,V=/^#([0-9a-fA-F]{8})$/;function W(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function H(e,t,r){var n=r<.5?r*(1+t):r+t-r*t,o=2*r-n,i=W(o,n,e+1/3),a=W(o,n,e),u=W(o,n,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*u)<<8}function q(e){var t=parseInt(e,10);return t<0?0:t>255?255:t}function K(e){return(parseFloat(e)%360+360)%360/360}function Z(e){var t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function X(e){var t=parseFloat(e);return t<0?0:t>100?1:t/100}function G(e){var t,r,n="number"==typeof(t=e)?t>>>0===t&&t>=0&&t<=4294967295?t:null:(r=U.exec(t))?parseInt(r[1]+"ff",16)>>>0:R.hasOwnProperty(t)?R[t]:(r=I.exec(t))?(q(r[1])<<24|q(r[2])<<16|q(r[3])<<8|255)>>>0:(r=N.exec(t))?(q(r[1])<<24|q(r[2])<<16|q(r[3])<<8|Z(r[4]))>>>0:(r=B.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+"ff",16)>>>0:(r=V.exec(t))?parseInt(r[1],16)>>>0:(r=$.exec(t))?parseInt(r[1]+r[1]+r[2]+r[2]+r[3]+r[3]+r[4]+r[4],16)>>>0:(r=z.exec(t))?(255|H(K(r[1]),X(r[2]),X(r[3])))>>>0:(r=F.exec(t))?(H(K(r[1]),X(r[2]),X(r[3]))|Z(r[4]))>>>0:null;return null===n?e:"rgba("+((4278190080&(n=n||0))>>>24)+", "+((16711680&n)>>>16)+", "+((65280&n)>>>8)+", "+(255&n)/255+")"}var Q=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Y=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,J=new RegExp("("+Object.keys(R).join("|")+")","g");var ee=function(e){function t(r,n,o){var i;return(i=e.call(this)||this).getValue=function(){var e;return(e=i).calc.apply(e,i.payload.map((function(e){return e.getValue()})))},i.updateConfig=function(e,t){return i.calc=M.create(e,t)},i.interpolate=function(e,r){return new t(a(i),e,r)},i.payload=r instanceof E&&!r.updateConfig?r.payload:Array.isArray(r)?r:[r],i.calc=M.create(n,o),i}return i(t,e),t}(E);var te=function(e){function t(t){var r;return(r=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),r.value=e,t&&r.flush()},r.getValue=function(){return r.value},r.updateStyles=function(){return function e(t,r){"function"==typeof t.update?r.add(t):t.getChildren().forEach((function(t){return e(t,r)}))}(a(r),r.animatedStyles)},r.updateValue=function(e){return r.flush(r.value=e)},r.interpolate=function(e,t){return new ee(a(r),e,t)},r.value=t,r.animatedStyles=new Set,r.done=!1,r.startPosition=t,r.lastPosition=t,r.lastVelocity=void 0,r.lastTime=void 0,r.controller=void 0,r}i(t,e);var r=t.prototype;return r.flush=function(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((function(e){return e.update()}))},r.prepare=function(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())},t}(P),re=function(e){function t(t){var r;return(r=e.call(this)||this).setValue=function(e,t){void 0===t&&(t=!0),Array.isArray(e)?e.length===r.payload.length&&e.forEach((function(e,n){return r.payload[n].setValue(e,t)})):r.payload.forEach((function(n,o){return r.payload[o].setValue(e,t)}))},r.getValue=function(){return r.payload.map((function(e){return e.getValue()}))},r.interpolate=function(e,t){return new ee(a(r),e,t)},r.payload=t.map((function(e){return new te(e)})),r}return i(t,e),t}(E);function ne(e,t){return null==e?t:e}function oe(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function ie(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;var r;for(r in e)if(!(r in t))return!1;for(r in t)if(e[r]!==t[r])return!1;return void 0!==r||e===t}function ae(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=r.length)break;i=r[o++]}else{if((o=r.next()).done)break;i=o.value}for(var a=i,u=!0,l=!0,c=0;c=a.startTime+s.delay+s.duration;else if(s.decay)g=v+O/(1-.998)*(1-Math.exp(-(1-.998)*(t-a.startTime))),(f=Math.abs(b.lastPosition-g)<.1)&&(m=g);else{p=void 0!==b.lastTime?b.lastTime:t,O=void 0!==b.lastVelocity?b.lastVelocity:s.initialVelocity,t>p+64&&(p=t);for(var w=Math.floor(t-p),_=0;_m:g1?_-1:0),j=1;j<_;j++)C[j-1]=arguments[j];m||!v&&!C.length||this.start.apply(this,C);var S=C[0],k=C[1];return this.onEnd="function"==typeof S&&S,this.onUpdate=k,this.getValues()},t.start=function(e,t){var r,n=this;return this.startTime=y(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),r=this,me.has(r)||(me.add(r),ve||d(ge),ve=!0),new Promise((function(e){return n.resolve=e}))},t.stop=function(e){void 0===e&&(e=!1),e&&ue(this.animations).forEach((function(e){return e.changes=void 0})),this.debouncedOnEnd({finished:e})},t.destroy=function(){xe(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]},t.debouncedOnEnd=function(e){xe(this),this.isActive=!1;var t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null},e}(),we=function(e){function t(t,r){var n;return n=e.call(this)||this,t.style&&(t=u({},t,{style:m(t.style)})),n.payload=t,n.update=r,n.attach(),n}return i(t,e),t}(A);function _e(e){var t=function(t){function r(e){var r;return(r=t.call(this)||this).callback=function(){r.node&&(!1===f.fn(r.node,r.propsAnimated.getAnimatedValue(),a(r))&&r.forceUpdate())},r.attachProps(e),r}i(r,t);var n=r.prototype;return n.componentWillUnmount=function(){this.propsAnimated&&this.propsAnimated.detach()},n.setNativeProps=function(e){!1===f.fn(this.node,e,this)&&this.forceUpdate()},n.attachProps=function(e){e.forwardRef;var t=o(e,["forwardRef"]),r=this.propsAnimated;this.propsAnimated=new we(t,this.callback),r&&r.detach()},n.shouldComponentUpdate=function(e){var t=e.style,r=o(e,["style"]),n=this.props,i=n.style;return(!ie(o(n,["style"]),r)||!ie(i,t))&&(this.attachProps(e),!0)},n.render=function(){var t=this,r=this.propsAnimated.getValue(),n=(r.scrollTop,r.scrollLeft,o(r,["scrollTop","scrollLeft"]));return l.createElement(e,u({},n,{ref:function(e){return t.node=fe(e,t.props.forwardRef)}}))},r}(l.Component);return l.forwardRef((function(e,r){return l.createElement(t,u({},e,{forwardRef:r}))}))}var Ce={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},je=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function L(e,t){for(var r=0;r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var x=function(e){var t=e.children,r=e.type,n=e.onRequestRemove,i=g(e,["children","type","onRequestRemove"]);return o.a.createElement(v,m({$type:r,"data-test-type":r,"data-test":"message"},i),o.a.createElement(b,{"data-test":"content"},t),o.a.createElement(y,{"data-test":"remove",onClick:n},o.a.createElement(u.a,{prismaSize:"small",enterpriseSize:"12px"})))},O=r(32),w=r.n(O),_=c()(w.a).withConfig({displayName:"LinkStyles__StyledLink",componentId:"w06zjv-0"})(["margin:0 3px;text-decoration:underline;color:inherit;&:not([disabled]){cursor:pointer;&:focus{"," text-decoration:underline;&:active{box-shadow:none;text-decoration:underline;}}}"],Object(h.pick)({prisma:Object(l.css)(["box-shadow:",";"],h.variables.focusShadow)}));function C(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var j={children:a.a.node,elementRef:a.a.oneOfType([a.a.func,a.a.object]),openInNewContext:a.a.bool,to:a.a.string};function S(e){var t=e.children,r=C(e,["children"]);return o.a.createElement(_,r,t)}S.propTypes=j;var k=S,P=c.a.p.withConfig({displayName:"TitleStyles__StyledTitle",componentId:"sc-6gbjha-0"})([""," ",""],h.mixins.reset("block"),Object(h.pick)({prisma:Object(l.css)(["font-size:14px;line-height:20px;"])}));function E(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var A={children:a.a.node};function T(e){var t=e.children,r=E(e,["children"]);return o.a.createElement(P,r,t)}T.propTypes=A;var R=T,M=c.a.div.withConfig({displayName:"MessageStyles__StyledContent",componentId:"eg66af-0"})(["",";",""],h.mixins.reset("inline"),Object(h.pick)({prisma:Object(l.css)(["color:",";"],h.variables.contentColorActive)})),L=c()(d.a).withConfig({displayName:"MessageStyles__StyledRemove",componentId:"eg66af-1"})(["",";border:1px solid transparent;border-radius:",";color:",";",";cursor:pointer;position:absolute;"," padding:",";&:hover,&:focus{background:",";border:",";color:",";}&:active{",";}",""],h.mixins.reset("flex"),Object(h.pick)({prisma:"50%",enterprise:h.variables.borderRadius}),Object(h.pick)({prisma:h.variables.contentColorMuted,enterprise:{dark:h.variables.gray96,light:h.variables.gray45}}),(function(e){return"banner"===e.$appearance&&Object(h.pick)({prisma:Object(l.css)(["color:",";"],h.variables.contentColorInverted)})}),Object(h.pick)({prisma:Object(l.css)(["top:1px;right:2px;"]),enterprise:Object(l.css)(["top:6px;right:8px;"])}),Object(h.pick)({prisma:"10px",enterprise:"8px"}),Object(h.pick)({prisma:h.variables.interactiveColorOverlayHover,enterprise:{dark:h.variables.gray30,light:h.variables.gray92}}),Object(h.pick)({prisma:Object(l.css)(["1px solid inherit"]),enterprise:Object(l.css)(["1px solid ",""],h.variables.gray80)}),Object(h.pick)({enterprise:{dark:h.variables.gray96,light:h.variables.linkColor},prisma:h.variables.contentColorActive}),Object(h.pick)({prisma:Object(l.css)(["background:",";"],h.variables.interactiveColorOverlayActive),enterprise:Object(l.css)(["box-shadow:",";"],h.variables.focusShadow)}),Object(h.pick)({prisma:Object(l.css)(["&:focus{box-shadow:0 0 0 3px ",";}"],h.variables.focusColor)})),D=c.a.span.withConfig({displayName:"MessageStyles__StyledIconWrapper",componentId:"eg66af-2"})(["position:absolute;top:",";left:0;width:",";height:calc(100% - 8px);text-align:center;color:",";"," border-top-left-radius:inherit;border-bottom-left-radius:inherit;"," ",";"],Object(h.pick)({prisma:"0px",enterprise:"7px"}),Object(h.pick)({prisma:"24px",enterprise:"25px"}),h.variables.white,Object(h.pick)({prisma:Object(l.css)(["padding-top:8px;"])}),Object(h.pickVariant)("$type",{info:Object(l.css)(["color:",";"],Object(h.pick)({prisma:h.variables.contentColorMuted,enterprise:h.variables.infoColor})),success:Object(l.css)(["color:",";"],h.variables.accentColorPositive),warning:Object(l.css)(["color:",";"],h.variables.accentColorWarning),error:Object(l.css)(["color:",";"],h.variables.accentColorNegative)}),(function(e){return e.$fillStyle&&Object(h.pick)({prisma:Object(l.css)(["background-color:",";"],Object(h.pickVariant)("$type",{info:h.variables.contentColorActive,success:h.variables.accentColorPositive,warning:h.variables.accentColorWarning,error:h.variables.accentColorNegative}))})})),I=c()(f.a).withConfig({displayName:"MessageStyles__StyledBox",componentId:"eg66af-3"})(["",";position:relative;border-radius:",";margin-bottom:",";padding:",";word-wrap:break-word;"," ",""],h.mixins.reset("block"),Object(h.pick)({prisma:h.variables.borderRadius,enterprise:"5px"}),h.variables.spacingSmall,Object(h.pickVariant)("$hasRemoveIcon",{true:{prisma:"10px 40px 10px 36px",enterprise:"10px 40px 10px 40px"},false:{prisma:"10px 8px 10px 36px",enterprise:"10px 0 10px 40px"}}),(function(e){return e.$fillStyle&&Object(h.pick)({enterprise:Object(l.css)(["& > ","{left:",";}",""],D,h.variables.spacingXSmall,Object(h.pickVariant)("$type",{info:Object(l.css)(["",""],Object(h.pick)({light:Object(l.css)(["background-color:",";border:1px solid ",";"],h.variables.infoColorL50,h.variables.infoColor),dark:Object(l.css)(["background-color:",";"],h.mixins.colorWithAlpha(h.variables.infoColor,.5))})),success:Object(l.css)(["",""],Object(h.pick)({light:Object(l.css)(["background-color:",";border:1px solid ",";"],h.variables.successColorL50,h.variables.successColor),dark:Object(l.css)(["background-color:",";"],h.mixins.colorWithAlpha(h.variables.successColor,.5))})),warning:Object(l.css)(["",""],Object(h.pick)({light:Object(l.css)(["background-color:",";border:1px solid ",";"],h.variables.warningColorL50,h.variables.warningColor),dark:Object(l.css)(["background-color:",";"],h.mixins.colorWithAlpha(h.variables.warningColor,.5))})),error:Object(l.css)(["",""],Object(h.pick)({light:Object(l.css)(["background-color:",";border:1px solid ",";"],h.variables.errorColorL50,h.variables.errorColor),dark:Object(l.css)(["background-color:",";"],h.mixins.colorWithAlpha(h.variables.errorColor,.5))}))})),prisma:Object(l.css)(["border:1px solid transparent;background-color:",";box-shadow:",";& > ","{color:",";}"],h.variables.backgroundColorPopup,h.variables.embossShadow,D,h.variables.backgroundColorPopup)})}),Object(h.pick)({prisma:Object(l.css)(["& ","{color:",";}"],P,Object(h.pickVariant)("$type",{info:h.variables.contentColorActive,warning:h.variables.accentColorWarning,error:h.variables.accentColorNegative,success:h.variables.accentColorPositive}))})),N=r(61),z=r.n(N),F=r(7),B=r(6);function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var ue={appearance:a.a.oneOf(["default","fill","banner"]),children:a.a.node,elementRef:a.a.oneOfType([a.a.func,a.a.object]),onRequestRemove:a.a.func,type:a.a.oneOf(["info","success","warning","error"])};function le(e){var t=e.appearance,r=void 0===t?"default":t,i=e.children,a=e.type,l=void 0===a?"warning":a,c=e.onRequestRemove,s=ae(e,["appearance","children","type","onRequestRemove"]),f=Object(n.useCallback)((function(e){null==c||c(e)}),[c]);if("banner"===r)return o.a.createElement(x,ie({type:l,onRequestRemove:f},s),i);var p={info:Z,success:J,warning:oe,error:V}[l],d="fill"===r,h="default"===r||"fill"===r;return o.a.createElement(I,ie({$appearance:r,$fillStyle:d,$hasRemoveIcon:!!c,$type:l,"data-test-type":l,"data-test":"message"},s),h&&o.a.createElement(D,{$fillStyle:d,$type:l},o.a.createElement(p,{prismaSize:"small",enterpriseWidth:"24px",enterpriseHeight:"24px"})),o.a.createElement(M,{"data-test":"content",$fillStyle:d},i),c&&o.a.createElement(L,{"data-test":"remove",onClick:f,$appearance:r},o.a.createElement(u.a,{prismaSize:"small",enterpriseHeight:"12px",enterpriseWidth:"12px"})))}le.propTypes=ue,le.Title=R,le.Link=k;var ce=le},11:function(e,t){e.exports=r(41)},2:function(e,t){e.exports=r(0)},20:function(e,t,r){"use strict";r.d(t,"a",(function(){return p}));var n=r(2),o=r.n(n),i=r(23),a=r.n(i),u=r(7),l=r(6);function c(){return(c=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p={display:"inline-block",flex:"0 0 auto",overflow:"visible",verticalAlign:"middle"},d={display:"block",flex:"0 0 auto",margin:"0 auto",overflow:"visible"},h={Enterprise:a.a.func,enterpriseSize:a.a.oneOfType([a.a.number,a.a.string]),enterpriseWidth:a.a.oneOfType([a.a.number,a.a.string]),enterpriseHeight:a.a.oneOfType([a.a.number,a.a.string]),Prisma24:a.a.func.isRequired,Prisma20:a.a.func,Prisma16:a.a.func,prismaSize:a.a.oneOf(["medium","small"]),inline:a.a.bool,screenReaderText:a.a.string};function b(e){var t=e.Enterprise,r=e.Prisma24,n=e.Prisma20,i=e.Prisma16,a=e.prismaSize,h=e.inline,b=e.enterpriseSize,y=e.enterpriseWidth,v=e.enterpriseHeight,m=e.screenReaderText,g=f(e,["Enterprise","Prisma24","Prisma20","Prisma16","prismaSize","inline","enterpriseSize","enterpriseWidth","enterpriseHeight","screenReaderText"]),x=Object(u.useSplunkTheme)(),O=x.family,w=x.density;if("enterprise"===O)return o.a.createElement(t,s({size:b,width:y,height:v,screenReaderText:m||null,hideDefaultTooltip:!0,inline:h},g));var _=function(e){for(var t=1;t=e?void 0:Object(_messageUtil__WEBPACK_IMPORTED_MODULE_2__.a)(14)}},parseFunctionRawStr=function parseFunctionRawStr(rawStr){var error,result;try{result=eval("(".concat(rawStr,")"))}catch(e){error=Object(_messageUtil__WEBPACK_IMPORTED_MODULE_2__.a)(11,rawStr)}return{error:error,result:result}},checkDupKeyValues=function(e,t,r){var n,o,i=lodash__WEBPACK_IMPORTED_MODULE_0__.get(e,t?"services":"tabs"),a=[];if(i){o="".concat(r,".").concat(t?"services":"tabs"),["name","title"].forEach((function(e){n=parseArrForDupKeys(i,e),appendError(a,n,o)}));i.forEach((function(e,t){var r="".concat(o,"[").concat(t,"].entity");e.entity&&(["field","label"].forEach((function(t,o){n=parseArrForDupKeys(e.entity,t),appendError(a,n,"".concat(r,"[").concat(o,"]"))})),e.entity.forEach((function(e,t){!function(e,t){var r=e.options;if(r){var o=r.items,i=r.autoCompleteFields;if(o&&["label","value"].forEach((function(e){n=parseArrForDupKeys(o,e),appendError(a,n,"".concat(t,".options.items"))})),i){var u=!!i[0].children;(u?i.map((function(e){return e.children})):[i]).forEach((function(e){n=parseArrForDupKeys(e,"label"),appendError(a,n,"".concat(t,".options.autoCompleteFields"))})),u&&(i=lodash__WEBPACK_IMPORTED_MODULE_0__.flatten(lodash__WEBPACK_IMPORTED_MODULE_0__.union(i.map((function(e){return e.children}))))),n=parseArrForDupKeys(i,"value"),appendError(a,n,"".concat(t,".options.autoCompleteFields"))}}}(e,"".concat(r,"[").concat(t,"]"))})))}))}return a},checkConfigDetails=function(e){var t,r=e.pages,n=r.configuration,o=r.inputs,i=[],a="instantce.pages",u=function(e,t){lodash__WEBPACK_IMPORTED_MODULE_0__.values(e).forEach((function(e,r){var n=parseFunctionRawStr(e).err;appendError(i,n,"".concat(t,"[").concat(r,"]"))}))},l=function(e,r,n){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];lodash__WEBPACK_IMPORTED_MODULE_0__.values(e).forEach((function(e,r){var o=e.validators,a=e.options;lodash__WEBPACK_IMPORTED_MODULE_0__.values(o).forEach((function(e,o){switch(e.type){case"string":t=parseStringValidator(e.minLength,e.maxLength).error;break;case"number":t=parseNumberValidator(e.range).error;break;case"regex":t=parseRegexRawStr(e.pattern).error}appendError(i,t,"".concat(n,"[").concat(r,"].validators[").concat(o,"]"))})),lodash__WEBPACK_IMPORTED_MODULE_0__.forEach(["denyList","allowList"],(function(e){a&&a[e]&&(t=parseRegexRawStr(a[e]).error,appendError(i,t,"".concat(n,"[").concat(r,"].options.").concat(e)))}))})),o&&lodash__WEBPACK_IMPORTED_MODULE_0__.every(lodash__WEBPACK_IMPORTED_MODULE_0__.values(e),(function(e){return"name"!==e.field}))&&appendError(i,Object(_messageUtil__WEBPACK_IMPORTED_MODULE_2__.a)(23,r))};o&&(o.services.forEach((function(e,t){var r=e.entity,n=e.options,o=e.name;u(n,"".concat(a,".inputs.services[").concat(t,"].options")),l(r,o,"".concat(a,".inputs.services[").concat(t,"].entity"))})),i=i.concat(checkDupKeyValues(o,!0,"".concat(a,".inputs"))));return n&&(n.tabs.forEach((function(e,t){var r=e.entity,n=e.options,o=e.name;u(n,"".concat(a,".configuration.tabs[").concat(t,"].options")),l(r,o,"".concat(a,".configuration.tabs[").concat(t,"].entity"),!1)})),i=i.concat(checkDupKeyValues(n,!1,"".concat(a,".configuration")))),i},validateSchema=function(e){var t=(new jsonschema__WEBPACK_IMPORTED_MODULE_1__.Validator).validate(e,_schema_schema_json__WEBPACK_IMPORTED_MODULE_3__);return t.errors.length||(t.errors=checkConfigDetails(e)),{failed:!!t.errors.length,errors:t.errors}}},function(e,t,r){"use strict";e.exports=function(e,t){return function(){for(var r=new Array(arguments.length),n=0;n=200&&e<300}};l.headers={common:{Accept:"application/json, text/plain, */*"}},n.forEach(["delete","get","head"],(function(e){l.headers[e]={}})),n.forEach(["post","put","patch"],(function(e){l.headers[e]=n.merge(i)})),e.exports=l}).call(this,r(78))},function(e,t,r){"use strict";var n=r(8),o=r(233),i=r(235),a=r(103),u=r(236),l=r(239),c=r(240),s=r(107);e.exports=function(e){return new Promise((function(t,r){var f=e.data,p=e.headers;n.isFormData(f)&&delete p["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var h=e.auth.username||"",b=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";p.Authorization="Basic "+btoa(h+":"+b)}var y=u(e.baseURL,e.url);if(d.open(e.method.toUpperCase(),a(y,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?l(d.getAllResponseHeaders()):null,i={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,r,i),d=null}},d.onabort=function(){d&&(r(s("Request aborted",e,"ECONNABORTED",d)),d=null)},d.onerror=function(){r(s("Network Error",e,null,d)),d=null},d.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),r(s(t,e,"ECONNABORTED",d)),d=null},n.isStandardBrowserEnv()){var v=(e.withCredentials||c(y))&&e.xsrfCookieName?i.read(e.xsrfCookieName):void 0;v&&(p[e.xsrfHeaderName]=v)}if("setRequestHeader"in d&&n.forEach(p,(function(e,t){void 0===f&&"content-type"===t.toLowerCase()?delete p[t]:d.setRequestHeader(t,e)})),n.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),r(e),d=null)})),f||(f=null),d.send(f)}))}},function(e,t,r){"use strict";var n=r(234);e.exports=function(e,t,r,o,i){var a=new Error(e);return n(a,t,r,o,i)}},function(e,t,r){"use strict";var n=r(8);e.exports=function(e,t){t=t||{};var r={},o=["url","method","data"],i=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],u=["validateStatus"];function l(e,t){return n.isPlainObject(e)&&n.isPlainObject(t)?n.merge(e,t):n.isPlainObject(t)?n.merge({},t):n.isArray(t)?t.slice():t}function c(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=l(void 0,e[o])):r[o]=l(e[o],t[o])}n.forEach(o,(function(e){n.isUndefined(t[e])||(r[e]=l(void 0,t[e]))})),n.forEach(i,c),n.forEach(a,(function(o){n.isUndefined(t[o])?n.isUndefined(e[o])||(r[o]=l(void 0,e[o])):r[o]=l(void 0,t[o])})),n.forEach(u,(function(n){n in t?r[n]=l(e[n],t[n]):n in e&&(r[n]=l(void 0,e[n]))}));var s=o.concat(i).concat(a).concat(u),f=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===s.indexOf(e)}));return n.forEach(f,c),r}},function(e,t,r){"use strict";function n(e){this.message=e}n.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},n.prototype.__CANCEL__=!0,e.exports=n},function(e,t){e.exports=function(e,t,r,n){var o=r?r.call(n,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(t),l=0;ln&&(n=(t=t.trim()).charCodeAt(0)),n){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*r&&0l.charCodeAt(8))break;case 115:a=a.replace(l,"-webkit-"+l)+";"+a;break;case 207:case 102:a=a.replace(l,"-webkit-"+(102u.charCodeAt(0)&&(u=u.trim()),u=[u],0d)&&(F=(U=U.replace(" ",":")).length),00&&void 0!==arguments[0]?arguments[0]:"undefined"!=typeof window?window:null;if(!e)return"enterprise";var t=e.__splunkd_partials__&&e.__splunkd_partials__["/services/server/info"]&&e.__splunkd_partials__["/services/server/info"].entry[0].content.product_type,r=e.__splunk_ui_theme__,n=e.$C&&e.$C.SPLUNK_UI_THEME;return r||n||t||"enterprise"}},function(e,t,r){"use strict";var n=e.exports.Validator=r(222);e.exports.ValidatorResult=r(18).ValidatorResult,e.exports.ValidatorResultError=r(18).ValidatorResultError,e.exports.ValidationError=r(18).ValidationError,e.exports.SchemaError=r(18).SchemaError,e.exports.SchemaScanResult=r(53).SchemaScanResult,e.exports.scan=r(53).scan,e.exports.validate=function(e,t,r){return(new n).validate(e,t,r)}},function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-04/schema#","definitions":{"AlertEntity":{"type":"object","properties":{"field":{"type":"string","pattern":"^\\\\w+$"},"label":{"type":"string","maxLength":30},"type":{"type":"string","enum":["text","singleSelect","checkbox","radio","singleSelectSplunkSearch"]},"help":{"type":"string","maxLength":200},"defaultValue":{"oneOf":[{"type":"number"},{"type":"string","maxLength":250},{"type":"boolean"}]},"required":{"type":"boolean"},"search":{"type":"string","maxLength":200},"valueField":{"type":"string","maxLength":200},"labelField":{"type":"string","maxLength":200},"options":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}}}}},"required":["field","label","type"],"additionalProperties":false},"Alerts":{"type":"object","properties":{"name":{"type":"string","pattern":"^[a-zA-Z0-9_]+$","maxLength":100},"label":{"type":"string","maxLength":100},"description":{"type":"string"},"adaptiveResponse":{"type":"object","properties":{"task":{"type":"array","items":{"type":"string"},"minItems":1},"supportsAdhoc":{"type":"boolean"},"subject":{"type":"array","items":{"type":"string"},"minItems":1},"category":{"type":"array","items":{"type":"string"},"minItems":1},"technology":{"type":"array","items":{"$ref":"#/definitions/Technology"},"minItems":1},"drilldownUri":{"type":"string"},"sourcetype":{"type":"string","pattern":"^[a-zA-Z0-9:-_]+$","maxLength":50}},"required":["task","supportsAdhoc","subject","category","technology"]},"entity":{"type":"array","items":{"$ref":"#/definitions/AlertEntity"}}},"required":["name","label","description"],"additionalProperties":false},"ConfigurationEntity":{"type":"object","properties":{"field":{"type":"string","pattern":"(?!^(?:output_mode|output_field|owner|app|sharing)$)(?:^\\\\w+$)"},"label":{"type":"string","maxLength":30},"type":{"type":"string","enum":["custom","text","singleSelect","checkbox","multipleSelect","radio","placeholder","oauth","helpLink"]},"help":{"type":"string","maxLength":200},"tooltip":{"type":"string","maxLength":250},"defaultValue":{"oneOf":[{"type":"number"},{"type":"string","maxLength":250},{"type":"boolean"}]},"options":{"type":"object","properties":{"disableSearch":{"type":"boolean"},"autoCompleteFields":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":150},"children":{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}}},"required":["label","children"]}},{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}}]},"endpointUrl":{"type":"string","maxLength":350},"denyList":{"type":"string","maxLength":350},"allowList":{"type":"string","maxLength":350},"delimiter":{"type":"string","maxLength":1},"items":{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}},"referenceName":{"type":"string","maxLength":250},"enable":{"type":"boolean"},"placeholder":{"type":"string","maxLength":250},"display":{"type":"boolean"},"labelField":{"type":"string","maxLength":250},"src":{"type":"string","maxLength":250},"defaultValue":{"type":"string","maxLength":250},"disableonEdit":{"type":"boolean"},"basic":{"type":"array","items":{"$ref":"#/definitions/OAuthFields"}},"oauth":{"type":"array","items":{"$ref":"#/definitions/OAuthFields"}},"auth_type":{"type":"array","items":{"type":"string","maxLength":100}},"auth_label":{"type":"string","maxLength":250},"oauth_popup_width":{"type":"number"},"oauth_popup_height":{"type":"number"},"oauth_timeout":{"type":"number"},"auth_code_endpoint":{"type":"string","maxLength":350},"access_token_endpoint":{"type":"string","maxLength":350},"oauth_state_enabled":{"type":"boolean"},"text":{"type":"string","maxLength":50},"link":{"type":"string"}}},"required":{"type":"boolean"},"encrypted":{"type":"boolean"},"validators":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/StringValidator"},{"$ref":"#/definitions/NumberValidator"},{"$ref":"#/definitions/RegexValidator"},{"$ref":"#/definitions/EmailValidator"},{"$ref":"#/definitions/Ipv4Validator"},{"$ref":"#/definitions/UrlValidator"},{"$ref":"#/definitions/DateValidator"}]}}},"required":["field","label","type"],"additionalProperties":false},"ConfigurationPage":{"type":"object","properties":{"title":{"type":"string","maxLength":60},"description":{"type":"string","maxLength":200},"tabs":{"type":"array","items":{"$ref":"#/definitions/TabContent"},"minItems":1}},"required":["title","tabs"],"additionalProperties":false},"ConfigurationTable":{"type":"object","properties":{"moreInfo":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^\\\\w+$"},"label":{"type":"string","maxLength":30},"mapping":{"type":"object"}},"required":["field","label"]}},"header":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^\\\\w+$"},"label":{"type":"string","maxLength":30},"mapping":{"type":"object"},"customCell":{"type":"object"}},"required":["field","label"]}},"customRow":{"type":"object"},"actions":{"type":"array","items":{"type":"string","enum":["edit","delete","clone"]}}},"required":["header","actions"],"additionalProperties":false},"DateValidator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["date"]}},"required":["type"],"additionalProperties":false},"EmailValidator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["email"]}},"required":["type"],"additionalProperties":false},"Hooks":{"type":"object","properties":{"saveValidator":{"type":"string","maxLength":3000}},"additionalProperties":false},"InputsEntity":{"type":"object","properties":{"field":{"type":"string","pattern":"(?!^(?:persistentQueueSize|queueSize|start_by_shell|output_mode|output_field|owner|app|sharing)$)(?:^\\\\w+$)"},"label":{"type":"string","maxLength":30},"type":{"type":"string","enum":["custom","text","singleSelect","checkbox","multipleSelect","radio","placeholder","oauth","helpLink"]},"help":{"type":"string","maxLength":200},"tooltip":{"type":"string","maxLength":250},"defaultValue":{"oneOf":[{"type":"number"},{"type":"string","maxLength":250},{"type":"boolean"}]},"options":{"type":"object","properties":{"disableSearch":{"type":"boolean"},"autoCompleteFields":{"oneOf":[{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","maxLength":150},"children":{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}}},"required":["label","children"]}},{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}}]},"endpointUrl":{"type":"string","maxLength":350},"denyList":{"type":"string","maxLength":350},"allowList":{"type":"string","maxLength":350},"delimiter":{"type":"string","maxLength":1},"items":{"type":"array","items":{"$ref":"#/definitions/ValueLabelPair"}},"referenceName":{"type":"string","maxLength":250},"enable":{"type":"boolean"},"placeholder":{"type":"string","maxLength":250},"display":{"type":"boolean"},"labelField":{"type":"string","maxLength":250},"src":{"type":"string","maxLength":250},"defaultValue":{"type":"string","maxLength":250},"disableonEdit":{"type":"boolean"},"basic":{"type":"array","items":{"$ref":"#/definitions/OAuthFields"}},"oauth":{"type":"array","items":{"$ref":"#/definitions/OAuthFields"}},"auth_type":{"type":"array","items":{"type":"string","maxLength":100}},"auth_label":{"type":"string","maxLength":250},"oauth_popup_width":{"type":"number"},"oauth_popup_height":{"type":"number"},"oauth_timeout":{"type":"number"},"auth_code_endpoint":{"type":"string","maxLength":350},"access_token_endpoint":{"type":"string","maxLength":350},"text":{"type":"string","maxLength":50},"link":{"type":"string"}}},"required":{"type":"boolean"},"encrypted":{"type":"boolean"},"validators":{"type":"array","items":{"anyOf":[{"$ref":"#/definitions/StringValidator"},{"$ref":"#/definitions/NumberValidator"},{"$ref":"#/definitions/RegexValidator"},{"$ref":"#/definitions/EmailValidator"},{"$ref":"#/definitions/Ipv4Validator"},{"$ref":"#/definitions/UrlValidator"},{"$ref":"#/definitions/DateValidator"}]}}},"required":["field","label","type"],"additionalProperties":false},"InputsPage":{"type":"object","properties":{"title":{"type":"string","maxLength":60},"description":{"type":"string","maxLength":200},"table":{"$ref":"#/definitions/InputsTable"},"services":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","pattern":"^[0-9a-zA-Z][0-9a-zA-Z_-]*$","maxLength":50},"title":{"type":"string","maxLength":100},"entity":{"type":"array","items":{"$ref":"#/definitions/InputsEntity"}},"options":{"$ref":"#/definitions/Hooks"},"groups":{"type":"array","items":{"type":"object","properties":{"options":{"type":"object","properties":{"isExpandable":{"type":"boolean"},"expand":{"type":"boolean"}}},"label":{"type":"string","maxLength":100},"field":{"type":"array","items":{"type":"string","pattern":"^\\\\w+$"}}},"required":["label"]}},"style":{"type":"string","enum":["page","dialog"]},"hook":{"type":"object"},"conf":{"type":"string","maxLength":100},"restHandlerName":{"type":"string","maxLength":100}},"required":["name","title","entity"]}},"menu":{"type":"object"}},"required":["title","table","services"],"additionalProperties":false},"InputsTable":{"type":"object","properties":{"moreInfo":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^\\\\w+$"},"label":{"type":"string","maxLength":30},"mapping":{"type":"object"}},"required":["field","label"]}},"header":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","pattern":"^\\\\w+$"},"label":{"type":"string","maxLength":30},"mapping":{"type":"object"},"customCell":{"type":"object"}},"required":["field","label"]}},"customRow":{"type":"object"},"actions":{"type":"array","items":{"type":"string","enum":["edit","delete","clone","enable"]}}},"required":["header","actions"],"additionalProperties":false},"Ipv4Validator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["ipv4"]}},"required":["type"],"additionalProperties":false},"Meta":{"type":"object","properties":{"displayName":{"type":"string","maxLength":200},"name":{"type":"string","pattern":"^[^<>\\\\:\\"\\\\/\\\\\\\\|\\\\?\\\\*]+$"},"restRoot":{"type":"string","pattern":"^\\\\w+$"},"apiVersion":{"type":"string","pattern":"^(?:\\\\d{1,3}\\\\.){2}\\\\d{1,3}$"},"version":{"type":"string"},"schemaVersion":{"type":"string","pattern":"^(?:\\\\d{1,3}\\\\.){2}\\\\d{1,3}$"}},"required":["displayName","name","restRoot","apiVersion","version"],"additionalProperties":false},"NumberValidator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["number"]},"range":{"type":"array","items":{"type":"number"}}},"required":["type","range"],"additionalProperties":false},"OAuthFields":{"type":"object","properties":{"oauth_field":{"type":"string","maxLength":100},"label":{"type":"string","maxLength":100},"field":{"type":"string","maxLength":100},"help":{"type":"string","maxLength":200},"encrypted":{"type":"boolean"},"required":{"type":"boolean"},"options":{"type":"object","properties":{"placeholder":{"type":"string","maxLength":250}},"additionalProperties":false}},"additionalProperties":false},"Pages":{"type":"object","properties":{"configuration":{"$ref":"#/definitions/ConfigurationPage"},"inputs":{"$ref":"#/definitions/InputsPage"}},"additionalProperties":false},"RegexValidator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["regex"]},"pattern":{"type":"string"}},"required":["type","pattern"],"additionalProperties":false},"StringValidator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["string"]},"minLength":{"type":"number","minimum":0},"maxLength":{"type":"number","minimum":0}},"required":["type","minLength","maxLength"],"additionalProperties":false},"TabContent":{"type":"object","properties":{"entity":{"type":"array","items":{"$ref":"#/definitions/ConfigurationEntity"}},"name":{"type":"string","pattern":"^[\\\\/\\\\w]+$","maxLength":250},"title":{"type":"string","maxLength":50},"options":{"$ref":"#/definitions/Hooks"},"table":{"$ref":"#/definitions/ConfigurationTable"},"conf":{"type":"string","maxLength":100},"restHandlerName":{"type":"string","maxLength":100},"hook":{"type":"object"}},"required":["entity","name","title"],"additionalProperties":false},"Technology":{"type":"object","properties":{"version":{"type":"array","items":{"type":"string","pattern":"^\\\\d+(?:\\\\.\\\\d+)*$"},"minItems":1},"product":{"type":"string","maxLength":100},"vendor":{"type":"string","maxLength":100}},"required":["version","product","vendor"],"additionalProperties":false},"UrlValidator":{"type":"object","properties":{"errorMsg":{"type":"string","maxLength":400},"type":{"type":"string","enum":["url"]}},"required":["type"],"additionalProperties":false},"ValueLabelPair":{"type":"object","properties":{"value":{"oneOf":[{"type":"number"},{"type":"string","maxLength":250},{"type":"boolean"}]},"label":{"type":"string","maxLength":100}},"required":["label"],"additionalProperties":false}},"type":"object","properties":{"meta":{"$ref":"#/definitions/Meta"},"pages":{"$ref":"#/definitions/Pages"},"alerts":{"type":"array","items":{"$ref":"#/definitions/Alerts"},"minItems":1}},"required":["meta","pages"],"additionalProperties":false}')},function(e,t,r){"use strict";var n,o=function(){return void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n},i=function(){var e={};return function(t){if(void 0===e[t]){var r=document.querySelector(t);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}e[t]=r}return e[t]}}(),a=[];function u(e){for(var t=-1,r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){for(var r=0;rc-r.bottom?"above":"below":"horizontal"===i&&(d=r.left>s-r.right?"left":"right");var h=d,b=function(e){var t=e.align,r=e.anchorPos,n=e.outerContainerEl,o=e.padding,i=e.placement;switch(i){case"above":return{top:r.top-n.offsetHeight,left:"edge"===t?r.left-o:r.middle-n.offsetWidth/2};case"below":return{top:r.bottom,left:"edge"===t?r.left-o:r.middle-n.offsetWidth/2};case"left":return{top:"edge"===t?r.top-o:r.center-n.offsetHeight/2,left:r.left-n.offsetWidth};case"right":return{top:"edge"===t?r.top-o:r.center-n.offsetHeight/2,left:r.right};default:throw new Error("".concat(i," is not a valid placement value. Valid options are: 'above', 'below', 'left', or 'right'"))}}({align:t,anchorPos:r,outerContainerEl:a,padding:u,placement:h}),y=b.top,v=b.left,m="auto",x=s,w=c,_=h,C=r.top-a.offsetHeight>0,j=r.bottom+a.offsetHeight0,k=r.right+a.offsetWidthc-r.bottom,E=("edge"===t?r.left+a.offsetWidth-u:r.middle+a.offsetWidth/2)>s,A=("edge"===t?r.left-u:r.middle-a.offsetWidth/2)<0,T=("edge"===t?r.top-u:r.top-a.offsetHeight/2)<0,R=("edge"===t?r.top+a.offsetHeight-u:r.bottom+a.offsetHeight/2)>c;if("above"===_){if(!C&&p){if(j)return O(g(g({},e),{},{placement:"below"}));if(f&&k)return O(g(g({},e),{},{placement:"right"}));if(f&&S)return O(g(g({},e),{},{placement:"left"}));o&&(_="misaligned",y=0)}"misaligned"!==_&&(m=c-y-a.offsetHeight,n&&(m=Math.min(m,c-n.top)),y="auto"),E?v=Math.max(s-a.offsetWidth,0):A&&(v=0),o||(w=r.top)}if("below"===_){if(!j&&p){if(C&&P)return O(g(g({},e),{},{placement:"above"}));if(f&&k)return O(g(g({},e),{},{placement:"right"}));if(f&&S)return O(g(g({},e),{},{placement:"left"}));o&&(_="misaligned",y=0)}n&&(y=Math.min(y,n.bottom)),E?v=Math.max(s-a.offsetWidth,0):A&&(v=0),o||(w=c-r.bottom)}if("left"===_){if(!S&&p){if(k)return O(g(g({},e),{},{placement:"right"}));if(f&&j)return O(g(g({},e),{},{placement:"below"}));if(f&&C)return O(g(g({},e),{},{placement:"above"}));o&&(_="misaligned",y=0)}T?y=0:R&&(y=Math.max(c-a.offsetHeight,0)),o||(x=r.left)}if("right"===_){if(!k&&p){if(S)return O(g(g({},e),{},{placement:"left"}));if(f&&j)return O(g(g({},e),{},{placement:"below"}));if(f&&C)return O(g(g({},e),{},{placement:"above"}));o&&(_="misaligned",y=0)}T?y=0:R&&(y=Math.max(c-a.offsetHeight,0)),o||(x=s-r.left)}return{placement:_,maxHeight:w,maxWidth:x,outerContainerStyle:{top:y,left:v,bottom:m}}}var w=r(38),_=r(3),C=r.n(_),j=Object(f.pick)({enterprise:"8px",prisma:0}),S=C()(w.animated.div).withConfig({displayName:"PopoverStyles__Styled",componentId:"sc-1nahsvw-0"})(["position:fixed;z-index:",";left:-300%;top:-300%;"],f.variables.zindexPopover),k=C.a.div.withConfig({displayName:"PopoverStyles__StyledBox",componentId:"sc-1nahsvw-1"})(["",";",";"],f.mixins.reset("block"),(function(e){return"none"!==e.$appearance&&Object(_.css)(["padding:8px;"])})),P=C.a.div.withConfig({displayName:"PopoverStyles__StyledContent",componentId:"sc-1nahsvw-2"})(["",""],Object(f.pickVariant)("$appearance",{normal:Object(_.css)(["background-color:",";color:",";border:",";box-shadow:",";border-radius:",";"],f.variables.backgroundColorPopup,f.variables.contentColorDefault,Object(f.pick)({enterprise:{light:f.variables.border,dark:f.variables.border},prisma:"none"}),Object(f.pick)({enterprise:{light:Object(_.css)(["0 2px 2px ",""],f.mixins.colorWithAlpha(f.variables.gray20,.1)),dark:"0 1px 2px #000"},prisma:f.variables.overlayShadow}),f.variables.borderRadius),inverted:Object(_.css)(["background-color:",";color:",";"],Object(f.pick)({light:f.variables.gray20,dark:f.variables.white}),Object(f.pick)({light:f.variables.white,dark:f.variables.gray30}))})),E=C.a.div.withConfig({displayName:"PopoverStyles__StyledArrow",componentId:"sc-1nahsvw-3"})(["width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;position:absolute;border-bottom-width:",";border-bottom-style:solid;",""],j,j,j,Object(f.pickVariant)("$appearance",{normal:Object(_.css)(["border-bottom-color:",";&::before{content:'';display:block;width:0;height:0;border-left:"," solid transparent;border-right:"," solid transparent;border-bottom:"," solid ",";position:absolute;top:1px;left:0;margin-left:-",";}"],Object(f.pick)({light:f.variables.borderColor,dark:f.variables.black}),j,j,j,f.variables.backgroundColor,j),inverted:Object(_.css)(["border-bottom-color:",";"],Object(f.pick)({light:f.variables.gray20,dark:f.variables.white}))})),A=C.a.div.withConfig({displayName:"PopoverStyles__StyledLowerRightCorner",componentId:"sc-1nahsvw-4"})(["position:fixed;right:0;bottom:0;"]),T=r(12);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(){return(M=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var r=0,n=new Array(t);r2&&void 0!==arguments[2]?arguments[2]:1;return!!e&&!!t&&Object(s.every)(e,(function(e,n){return Object(s.isFinite)(e)?Math.abs(t[n]-e)<=r:t[n]===e}))}var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&U(e,t)}(r,e);var t=V(r);function r(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),K(H(n=t.call(this,e)),"outerContainerEl",null),K(H(n),"innerContainerEl",null),K(H(n),"arrow",null),K(H(n),"windowSizeMeasurementEl",null),K(H(n),"handleScroll",void 0),K(H(n),"handleWindowScroll",void 0),K(H(n),"getElPosition",(function(e){var t=e.getBoundingClientRect(),r={top:t.top,left:t.left,width:e.offsetWidth,height:e.offsetHeight},o=n.props.pointTo;return r.right=t.right||r.left+r.width,r.bottom=t.bottom||r.top+r.height,r.middle=o&&Object(s.has)(o,"x")?r.left+(o.x||0):r.left+(r.right-r.left)/2,r.center=o&&Object(s.has)(o,"y")?r.top+(o.y||0):r.top+(r.bottom-r.top)/2,r})),K(H(n),"setPlacement",(function(e){n.setState((function(t){var o,i=n.props,a=i.align,u=i.anchor,l=i.autoCloseWhenOffScreen,c=i.canCoverAnchor,f=i.defaultPlacement,p=i.open,d=i.repositionMode,h=i.splunkTheme,b=n.context||"window",y="prisma"===h.family;if(!(p&&n.outerContainerEl&&u&&t.anchorEl&&n.windowSizeMeasurementEl))return null;var v=n.getElPosition(t.anchorEl),m="window"!==b?n.getElPosition(b):void 0;if(e&&l&&n.autoCloseWhenOffScreen(v,m))return null;var g=y?0:8,x=O({align:"theme"===a?y?"edge":"center":a,anchorPos:v,scrollContainerPos:m,canCoverAnchor:c,defaultPlacement:f,repositionMode:d,outerContainerEl:n.outerContainerEl,padding:8,windowWidth:n.windowSizeMeasurementEl.offsetLeft,windowHeight:n.windowSizeMeasurementEl.offsetTop}),w=x.placement,_=x.outerContainerStyle,C=x.maxHeight,j=x.maxWidth,S=N(n.arrow?r.getArrowStyle({anchorPos:v,arrowHeight:g,outerContainerStyle:_,placement:w,outerContainerEl:n.outerContainerEl}):[],2),k=S[0],P=S[1],E="none"!==n.props.appearance&&!y,A=Q(v,t.anchorPos)&&Q(_,t.outerContainerStyle)&&w===t.placement&&C===t.maxHeight&&j===t.maxWidth,T=Q(Object(s.omit)(k,"transform"),Object(s.omit)(t.arrowStyle,"transform"))&&Q(null!=P?P:{},null!==(o=t.arrowStyleTransformMeta)&&void 0!==o?o:{});return A&&(!E||E&&T)?null:{anchorPos:v,arrowStyle:k,arrowStyleTransformMeta:P,outerContainerStyle:_,placement:w,maxHeight:C,maxWidth:j}}))})),K(H(n),"handleNewAnchor",(function(e){var t,r=(t=!e||e instanceof HTMLElement?null!=e?e:void 0:Object(u.findDOMNode)(e))?n.getElPosition(t):void 0;n.setState({anchorEl:t,anchorPos:r})})),K(H(n),"handleInnerContainerMount",(function(e){n.innerContainerEl=e,e&&n.props.takeFocus&&Object(s.defer)(v.takeFocus,e),Object(T.a)(n.props.elementRef,e)})),K(H(n),"handleTab",(function(e){n.innerContainerEl&&Object(v.handleTab)(n.innerContainerEl,e)})),K(H(n),"handleRequestClose",(function(e){n.props.open&&n.requestClose(e)})),K(H(n),"handleAnimationEnd",(function(){n.setState({animating:!1})})),K(H(n),"renderLayer",(function(){var e=n.props,t=e.animation,i=e.appearance,a=e.children,u=e.id,l=e.open,c=e.splunkTheme,f=n.state,d=f.anchorPos,h=f.arrowStyle,b=f.outerContainerStyle,y=f.placement,v="prisma"===c.family,m=v&&"inverted"===i?"normal":i,g=n.state,x=g.maxHeight,O=g.maxWidth;"none"!==i&&(Object(s.isFinite)(x)&&(x-=20),Object(s.isFinite)(O)&&(O-=20));var w={anchorHeight:d?d.height:null,anchorWidth:d?d.width:null,placement:y||null,maxHeight:x||null,maxWidth:O||null},_=t?{opacity:l?1:0}:{opacity:1};return o.a.createElement(p.Spring,{native:!0,from:{opacity:t?0:1},to:_,config:{tension:300,friction:40},onRest:n.handleAnimationEnd},(function(e){var t=e.opacity;return o.a.createElement(S,{style:I(I({},b),{},{opacity:t}),ref:function(e){n.outerContainerEl=e}},(l||n.state.animating)&&o.a.createElement(k,M({$appearance:m,"data-test":"popover",ref:n.handleInnerContainerMount,tabIndex:-1,id:u,onKeyDown:n.props.retainFocus?n.handleTab:void 0},Object(s.omit)(n.props,["anchor"].concat(L(Object(s.keys)(r.propTypes))))),"none"===i&&a,"none"!==i&&!v&&o.a.createElement(E,{$appearance:m,ref:function(e){n.arrow=e},style:h}),"none"!==i&&o.a.createElement(P,{$appearance:m},Object(s.isFunction)(a)?a(w):a)),o.a.createElement(A,{ref:function(e){n.windowSizeMeasurementEl=e}}))}))})),n.handleScroll=Object(s.throttle)(n.setPlacement.bind(H(n),!0),0),n.handleWindowScroll=Object(s.throttle)(n.setPlacement.bind(H(n),!0),0),n.setPlacement=Object(s.throttle)(n.setPlacement,0,{leading:!1}),n.state={animating:!1,prevOpen:e.open},n}return $(r,null,[{key:"getArrowStyle",value:function(e){var t=e.anchorPos,r=e.arrowHeight,n=e.placement,o=e.outerContainerStyle,i=e.outerContainerEl;if("misaligned"===n)return[{display:"none"}];var a={display:"block"},u=i.offsetHeight/2-22,l=-(i.offsetHeight/2-15),c=t.center-(o.top+i.offsetHeight/2)-r/2,f=Object(s.clamp)(c,l,u),p=t.middle-(o.left+i.offsetWidth/2)-r,d={left:{translateX:r/2,translateY:f,rotate:90},right:{translateX:-r/2,translateY:f,rotate:-90},above:{translateX:p,translateY:0,rotate:180},below:{translateX:p,translateY:0,rotate:0}}[n];a.transform="translate(".concat(d.translateX,"px, ").concat(d.translateY,"px) rotate(").concat(d.rotate,"deg)");a[{left:"right",right:"left",above:"bottom",below:"top"}[n]]="1px";return a[{left:"top",right:"top",above:"left",below:"left"}[n]]="50%",[a,d]}}]),$(r,[{key:"componentDidMount",value:function(){this.handleNewAnchor(this.props.anchor)}},{key:"componentDidUpdate",value:function(e){e.anchor!==this.props.anchor&&this.handleNewAnchor(this.props.anchor),this.innerContainerEl&&(this.props.open||this.state.animating)&&(this.setPlacement(),!e.open&&this.props.takeFocus&&Object(v.takeFocus)(this.innerContainerEl))}},{key:"componentWillUnmount",value:function(){this.setPlacement.cancel(),this.handleScroll.cancel()}},{key:"autoCloseWhenOffScreen",value:function(e,t){return(e.top<0||e.top>window.innerHeight||e.left<0||e.left>window.innerWidth||!(!t||!(e.height+e.topt.bottom||e.width+e.leftt.right)))&&(this.requestClose({reason:"offScreen"}),!0)}},{key:"requestClose",value:function(e){var t,r;Object(s.includes)(this.props.closeReasons,e.reason)&&(null===(t=(r=this.props).onRequestClose)||void 0===t||t.call(r,e))}},{key:"render",value:function(){var e=this.props.open||this.state.animating,t=this.context||"window";return["window"!==t&&o.a.createElement(c.a,{target:t,onScroll:this.handleScroll,key:"eventListener"}),o.a.createElement(c.a,{target:"window",onResize:this.setPlacement,onScroll:this.handleWindowScroll,key:"eventListenerOnWindow"}),o.a.createElement(h.a,{closeReasons:Object(s.intersection)(this.props.closeReasons.filter((function(e){return"offScreen"!==e})),h.a.possibleCloseReasons),open:e,onRequestClose:this.handleRequestClose,key:"Layer"},e&&this.renderLayer())]}}]),r}(n.Component);K(Y,"contextType",y.a),K(Y,"defaultProps",G),K(Y,"propTypes",X),K(Y,"getDerivedStateFromProps",(function(e,t){return e.open!==t.prevOpen?{animating:e.animation,prevOpen:e.open}:null}));var J=Object(f.withSplunkTheme)(Y);J.propTypes=Y.propTypes;var ee=J},15:function(e,t){e.exports=r(69)},2:function(e,t){e.exports=r(0)},26:function(e,t){e.exports=r(73)},27:function(e,t){e.exports=r(76)},3:function(e,t){e.exports=r(1)},33:function(e,t){e.exports=r(77)},38:function(e,t){e.exports=r(81)},4:function(e,t){e.exports=r(2)},47:function(e,t){e.exports=r(45)},58:function(e,t){e.exports=r(35)}})},function(e,t,r){var n=r(181),o=r(182),i=r(183),a=r(184),u=r(185);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var s=function(){var e=(0,n.useContext)(o.ThemeContext)||{},t=e.splunkThemeV1,r=void 0===t?{}:t,a=c(e,["splunkThemeV1"]),l=r.family,s=r.colorScheme,f=r.density,p=r.customizer;return u(u({},a),(0,i.getCustomizedTheme)({family:l,colorScheme:s,density:f},p))};t.default=s},function(e,t,r){var n=r(66)(r(42),"Map");e.exports=n},function(e,t,r){"use strict";function n(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=c.a.svg.withConfig({displayName:"SVG__InlineSVG",componentId:"sc-13m0oii-0"})(["display:inline-block;flex:0 0 auto;overflow:visible;vertical-align:middle;"]),d=c.a.svg.withConfig({displayName:"SVG__BlockSVG",componentId:"sc-13m0oii-1"})(["display:block;flex:0 0 auto;margin:0 auto;overflow:visible;"]),h={children:a.a.node,height:a.a.oneOfType([a.a.number,a.a.string]),hideDefaultTooltip:a.a.bool,inline:a.a.bool,screenReaderText:a.a.oneOfType([a.a.string,a.a.oneOf(["null"])]),size:a.a.oneOfType([a.a.number,a.a.string]),width:a.a.oneOfType([a.a.number,a.a.string]),viewBox:a.a.string.isRequired,preserveAspectRatio:a.a.oneOf(["none","xMinYMin","xMidYMin","xMaxYMin","xMinYMid","xMidYMid","xMaxYMid","xMinYMax","xMidYMax","xMaxYMax"])};function b(e){var t=e.children,r=e.height,n=e.hideDefaultTooltip,i=void 0!==n&&n,a=e.inline,l=void 0===a||a,c=e.preserveAspectRatio,h=void 0===c?"xMidYMid":c,b=e.screenReaderText,y=e.size,v=void 0===y?.75:y,m=e.viewBox,g=e.width,x=f(e,["children","height","hideDefaultTooltip","inline","preserveAspectRatio","screenReaderText","size","viewBox","width"]);var O="number"!=typeof v?parseFloat(v):v,w=Object(u.isString)(v)?v.match(/[^\d]+/):"em",_=parseFloat(m.split(" ")[3]),C=parseFloat(m.split(" ")[2]),j=Math.max(C,_),S=Object(u.isUndefined)(r)?_/j*O:r,k=Object(u.isUndefined)(g)?C/j*O:g,P=l?p:d,E=b&&!i;return o.a.createElement(P,s({focusable:"false",height:Object(u.isString)(S)?S:"".concat(S.toFixed(4)).concat(w),width:Object(u.isString)(k)?k:"".concat(k.toFixed(4)).concat(w),viewBox:m,"aria-label":i&&null!=b?b:void 0,"aria-hidden":!b,preserveAspectRatio:h,xmlns:"http://www.w3.org/2000/svg"},x),E&&o.a.createElement("title",null,b),t)}b.propTypes=h,t.default=b},3:function(e,t){e.exports=r(3)},5:function(e,t){e.exports=r(1)},6:function(e,t){e.exports=r(2)}})},function(e,t,r){e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=172)}({0:function(e,t){e.exports=r(0)},1:function(e,t){e.exports=r(6)},172:function(e,t,r){"use strict";r.r(t),r.d(t,"default",(function(){return c}));var n=r(0),o=r.n(n),i=r(1),a=r(2),u=r.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},i=u({appBuild:t,buildPushNumber:n,buildNumber:r},o),a=e.match(/(^|\w\w-\w\w\/)static\//);if(!a)return e;var l=a.index+a[0].length-1,c=e.match(/(^|\w\w-\w\w|)static\/app/),s=c?":".concat(i.appBuild||0):"",f=i.buildPushNumber?".".concat(i.buildPushNumber):"",p="/@".concat(i.buildNumber).concat(f).concat(s),d=e.substr(0,l),h=e.substr(l);return"".concat(d).concat(p).concat(h)}function s(e,l){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=u({appBuild:t,buildPushNumber:n,buildNumber:r,rootPath:a,locale:i},s),p=e||"/",d=l?"?".concat((0,o.stringify)(l)):"";return"/"!==p.charAt(0)&&(p="/".concat(p)),c(p="".concat(f.rootPath||"","/").concat(f.locale).concat(p).concat(d),f)}function f(e,t){return s("/help",e,t)}return{createAppDocsURL:function(e,t,r){var n=t.appName,o=t.appVersion;return f({location:"[".concat(n,":").concat(o,"]").concat(e)},r)},createDocsURL:function(e,t){return f({location:e},t)},createRESTURL:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(/^http[s]?:\/\//.test(e))return e;var n,o,i=r.splunkdPath||l||"";return/^\/.*/.test(e)?/^\/services/.test(e)?"".concat(i).concat(e):e:t.app||t.owner?(n=t.sharing?"nobody":t.owner?encodeURIComponent(t.owner):"-",o="system"===t.sharing?"system":t.app?encodeURIComponent(t.app):"-","".concat(i,"/servicesNS/").concat(n,"/").concat(o,"/").concat(e)):"".concat(i,"/services/").concat(e)},createStaticURL:function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n0&&void 0!==arguments[0]?arguments[0]:(0,n.get)(i,["document","location","pathname"],""),t=e.match(/\w\w.\w\w\/(app|manager)\/([^/]+)/);return t?t[2]:void 0}t.isAvailable=l;var s=c();t.app=s;var f=a("APP_BUILD");t.appBuild=f;var p=a("BUILD_NUMBER");t.buildNumber=p;var d=a("BUILD_PUSH_NUMBER");t.buildPushNumber=d;var h=(0,n.get)(i,"$C");t.config=h;var b=a("LOCALE");t.locale=b;var y=a("MRSPARKLE_PORT_NUMBER");t.portNumber=y;var v=a("MRSPARKLE_ROOT_PATH");t.rootPath=v;var m=a("SERVER_ZONEINFO");t.serverTimezoneInfo=m;var g=a("SPLUNKD_PATH");t.splunkdPath=g;var x=a("USERNAME");t.username=x;var O=a("VERSION_LABEL");t.versionLabel=O}).call(this,r(23))},function(e,t,r){var n=r(168),o=r(186),i=r(188),a=r(189),u=r(190);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++te.length)&&(t=e.length);for(var r=0,n=new Array(t);rA.length&&A.push(e)}function M(e,t,r){return null==e?0:function e(t,r,n,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var l=!1;if(null===t)l=!0;else switch(u){case"string":case"number":l=!0;break;case"object":switch(t.$$typeof){case i:case a:l=!0}}if(l)return n(o,t,""===r?"."+L(t,0):r),1;if(l=0,r=""===r?".":r+":",Array.isArray(t))for(var c=0;c