var osdCsp = JSON.parse(document.querySelector('osd-csp').getAttribute('data')); window.__osdStrictCsp__ = osdCsp.strictCsp; window.__osdPublicPath__ = {"core":"/9001/bundles/core/","osd-ui-shared-deps":"/9001/bundles/osd-ui-shared-deps/","usageCollection":"/9001/bundles/plugin/usageCollection/","opensearchDashboardsUtils":"/9001/bundles/plugin/opensearchDashboardsUtils/","opensearchDashboardsLegacy":"/9001/bundles/plugin/opensearchDashboardsLegacy/","urlForwarding":"/9001/bundles/plugin/urlForwarding/","mapsLegacy":"/9001/bundles/plugin/mapsLegacy/","opensearchDashboardsReact":"/9001/bundles/plugin/opensearchDashboardsReact/","charts":"/9001/bundles/plugin/charts/","visDefaultEditor":"/9001/bundles/plugin/visDefaultEditor/","data":"/9001/bundles/plugin/data/","inspector":"/9001/bundles/plugin/inspector/","dataSource":"/9001/bundles/plugin/dataSource/","uiActions":"/9001/bundles/plugin/uiActions/","share":"/9001/bundles/plugin/share/","opensearchUiShared":"/9001/bundles/plugin/opensearchUiShared/","embeddable":"/9001/bundles/plugin/embeddable/","savedObjects":"/9001/bundles/plugin/savedObjects/","contentManagement":"/9001/bundles/plugin/contentManagement/","expressions":"/9001/bundles/plugin/expressions/","queryEnhancements":"/9001/bundles/plugin/queryEnhancements/","navigation":"/9001/bundles/plugin/navigation/","dataSourceManagement":"/9001/bundles/plugin/dataSourceManagement/","home":"/9001/bundles/plugin/home/","dashboard":"/9001/bundles/plugin/dashboard/","visualizations":"/9001/bundles/plugin/visualizations/","discover":"/9001/bundles/plugin/discover/","visAugmenter":"/9001/bundles/plugin/visAugmenter/","savedObjectsManagement":"/9001/bundles/plugin/savedObjectsManagement/","visTypeVega":"/9001/bundles/plugin/visTypeVega/","visTypeTimeline":"/9001/bundles/plugin/visTypeTimeline/","visTypeMarkdown":"/9001/bundles/plugin/visTypeMarkdown/","visTypeTable":"/9001/bundles/plugin/visTypeTable/","visBuilder":"/9001/bundles/plugin/visBuilder/","visTypeVislib":"/9001/bundles/plugin/visTypeVislib/","tileMap":"/9001/bundles/plugin/tileMap/","regionMap":"/9001/bundles/plugin/regionMap/","inputControlVis":"/9001/bundles/plugin/inputControlVis/","visualize":"/9001/bundles/plugin/visualize/","apmOss":"/9001/bundles/plugin/apmOss/","opensearchDashboardsOverview":"/9001/bundles/plugin/opensearchDashboardsOverview/","managementOverview":"/9001/bundles/plugin/managementOverview/","management":"/9001/bundles/plugin/management/","indexPatternManagement":"/9001/bundles/plugin/indexPatternManagement/","securityAnalyticsDashboards":"/9001/bundles/plugin/securityAnalyticsDashboards/","reportsDashboards":"/9001/bundles/plugin/reportsDashboards/","searchRelevanceDashboards":"/9001/bundles/plugin/searchRelevanceDashboards/","mlCommonsDashboards":"/9001/bundles/plugin/mlCommonsDashboards/","flowFrameworkDashboards":"/9001/bundles/plugin/flowFrameworkDashboards/","customImportMapDashboards":"/9001/bundles/plugin/customImportMapDashboards/","indexManagementDashboards":"/9001/bundles/plugin/indexManagementDashboards/","assistantDashboards":"/9001/bundles/plugin/assistantDashboards/","anomalyDetectionDashboards":"/9001/bundles/plugin/anomalyDetectionDashboards/","devTools":"/9001/bundles/plugin/devTools/","console":"/9001/bundles/plugin/console/","queryInsightsDashboards":"/9001/bundles/plugin/queryInsightsDashboards/","grokDebugger":"/9001/bundles/plugin/grokDebugger/","advancedSettings":"/9001/bundles/plugin/advancedSettings/","dataExplorer":"/9001/bundles/plugin/dataExplorer/","visTypeTimeseries":"/9001/bundles/plugin/visTypeTimeseries/","visTypeTagcloud":"/9001/bundles/plugin/visTypeTagcloud/","visTypeMetric":"/9001/bundles/plugin/visTypeMetric/","explore":"/9001/bundles/plugin/explore/","dataImporter":"/9001/bundles/plugin/dataImporter/","securityDashboards":"/9001/bundles/plugin/securityDashboards/","observabilityDashboards":"/9001/bundles/plugin/observabilityDashboards/","queryWorkbenchDashboards":"/9001/bundles/plugin/queryWorkbenchDashboards/","workspace":"/9001/bundles/plugin/workspace/","alertingDashboards":"/9001/bundles/plugin/alertingDashboards/","notificationsDashboards":"/9001/bundles/plugin/notificationsDashboards/","agentTraces":"/9001/bundles/plugin/agentTraces/","bfetch":"/9001/bundles/plugin/bfetch/"}; window.__osdBundles__ = (function osdBundlesLoader() { var modules = {}; function has(prop) { return Object.prototype.hasOwnProperty.call(modules, prop); } function define(key, bundleRequire) { if (has(key)) { throw new Error('__osdBundles__ already has a module defined for "' + key + '"'); } modules[key] = { bundleRequire }; } function get(key) { if (!has(key)) { throw new Error('__osdBundles__ does not have a module defined for "' + key + '"'); } return modules[key].bundleRequire(); } return { has: has, define: define, get: get }; })(); window.__webpack_nonce__ = (function() { var meta = document.querySelector('meta[name="csp-nonce"]'); return meta ? meta.getAttribute('content') : ''; })(); // Intercept dynamically created style elements to add CSP nonce // This handles third-party libraries (like nano-css from react-use, brace/ace editor) // that create style elements without using webpack's style-loader nonce mechanism (function() { if (!window.__webpack_nonce__) return; var nonce = window.__webpack_nonce__; // Patch document.createElement var originalCreateElement = document.createElement.bind(document); document.createElement = function(tagName, options) { var element = originalCreateElement(tagName, options); if (tagName.toLowerCase() === 'style') { element.setAttribute('nonce', nonce); } return element; }; // Patch document.createElementNS (used by brace/ace editor) var originalCreateElementNS = document.createElementNS.bind(document); document.createElementNS = function(namespaceURI, qualifiedName) { var element = originalCreateElementNS(namespaceURI, qualifiedName); if (qualifiedName.toLowerCase() === 'style') { element.setAttribute('nonce', nonce); } return element; }; })(); if (window.__osdStrictCsp__ && window.__osdCspNotEnforced__) { var legacyBrowserError = document.getElementById('osd_legacy_browser_error'); legacyBrowserError.style.display = 'flex'; } else { var themeCssDistFilenames = {"v7":{"light":"osd-ui-shared-deps.v7.light.css","dark":"osd-ui-shared-deps.v7.dark.css"},"v8":{"light":"osd-ui-shared-deps.v8.light.css","dark":"osd-ui-shared-deps.v8.dark.css"},"v9":{"light":"osd-ui-shared-deps.v9.light.css","dark":"osd-ui-shared-deps.v9.dark.css"}}; var kuiCssDistFilenames = {"v7":{"dark":"kui_dark.css","light":"kui_light.css"},"v8":{"dark":"kui_next_dark.css","light":"kui_next_light.css"},"v9":{"dark":"kui_v9_dark.css","light":"kui_v9_light.css"}}; var isDarkMode = window.__osdThemeTag__.endsWith('dark'); var themeMode = isDarkMode ? 'dark' : 'light'; var themeVersion = window.__osdThemeTag__.replace(/(light|dark)$/, ''); if (!themeCssDistFilenames[themeVersion]) { themeVersion = 'v8'; // this default should only be needed by tests } var loadingMessage = document.getElementById('osd_loading_message'); loadingMessage.style.display = 'flex'; var styleSheetPaths = [ '/9001/bundles/osd-ui-shared-deps/osd-ui-shared-deps.css', '/9001/bundles/osd-ui-shared-deps/' + themeCssDistFilenames[themeVersion][themeMode], '/node_modules/@osd/ui-framework/dist/' + kuiCssDistFilenames[themeVersion][themeMode], '/ui/legacy_' + themeMode + '_theme.css', ]; window.onload = function () { function failure() { // make subsequent calls to failure() noop failure = function () {}; var err = document.createElement('h1'); err.style['color'] = 'white'; err.style['font-family'] = 'monospace'; err.style['text-align'] = 'center'; err.style['background'] = '#F44336'; err.style['padding'] = '25px'; err.innerText = document.querySelector('[data-error-message]').dataset.errorMessage; document.body.innerHTML = err.outerHTML; } var stylesheetTarget = document.querySelector('head meta[name="add-styles-here"]') function loadStyleSheet(url, cb) { var dom = document.createElement('link'); dom.rel = 'stylesheet'; dom.type = 'text/css'; dom.href = url; dom.addEventListener('error', failure); dom.addEventListener('load', cb); document.head.insertBefore(dom, stylesheetTarget); } var scriptsTarget = document.querySelector('head meta[name="add-scripts-here"]') function loadScript(url, cb) { var dom = document.createElement('script'); dom.async = false; dom.src = url; dom.addEventListener('error', failure); dom.addEventListener('load', cb); document.head.insertBefore(dom, scriptsTarget); } function load(urls, cb) { var pending = urls.length; urls.forEach(function (url) { var innerCb = function () { pending = pending - 1; if (pending === 0 && typeof cb === 'function') { cb(); } } if (typeof url !== 'string') { load(url, innerCb); } else if (url.slice(-4) === '.css') { loadStyleSheet(url, innerCb); } else { loadScript(url, innerCb); } }); } load([ '/9001/bundles/osd-ui-shared-deps/osd-ui-shared-deps.@elastic.js', '/9001/bundles/osd-ui-shared-deps/osd-ui-shared-deps.js', '/9001/bundles/core/core.entry.js', '/9001/bundles/plugin/usageCollection/usageCollection.plugin.js', '/9001/bundles/plugin/opensearchDashboardsUtils/opensearchDashboardsUtils.plugin.js', '/9001/bundles/plugin/opensearchDashboardsLegacy/opensearchDashboardsLegacy.plugin.js', '/9001/bundles/plugin/urlForwarding/urlForwarding.plugin.js', '/9001/bundles/plugin/mapsLegacy/mapsLegacy.plugin.js', '/9001/bundles/plugin/opensearchDashboardsReact/opensearchDashboardsReact.plugin.js', '/9001/bundles/plugin/charts/charts.plugin.js', '/9001/bundles/plugin/visDefaultEditor/visDefaultEditor.plugin.js', '/9001/bundles/plugin/data/data.plugin.js', '/9001/bundles/plugin/inspector/inspector.plugin.js', '/9001/bundles/plugin/dataSource/dataSource.plugin.js', '/9001/bundles/plugin/uiActions/uiActions.plugin.js', '/9001/bundles/plugin/share/share.plugin.js', '/9001/bundles/plugin/opensearchUiShared/opensearchUiShared.plugin.js', '/9001/bundles/plugin/embeddable/embeddable.plugin.js', '/9001/bundles/plugin/savedObjects/savedObjects.plugin.js', '/9001/bundles/plugin/contentManagement/contentManagement.plugin.js', '/9001/bundles/plugin/expressions/expressions.plugin.js', '/9001/bundles/plugin/queryEnhancements/queryEnhancements.plugin.js', '/9001/bundles/plugin/navigation/navigation.plugin.js', '/9001/bundles/plugin/dataSourceManagement/dataSourceManagement.plugin.js', '/9001/bundles/plugin/home/home.plugin.js', '/9001/bundles/plugin/dashboard/dashboard.plugin.js', '/9001/bundles/plugin/visualizations/visualizations.plugin.js', '/9001/bundles/plugin/discover/discover.plugin.js', '/9001/bundles/plugin/visAugmenter/visAugmenter.plugin.js', '/9001/bundles/plugin/savedObjectsManagement/savedObjectsManagement.plugin.js', '/9001/bundles/plugin/visTypeVega/visTypeVega.plugin.js', '/9001/bundles/plugin/visTypeTimeline/visTypeTimeline.plugin.js', '/9001/bundles/plugin/visTypeMarkdown/visTypeMarkdown.plugin.js', '/9001/bundles/plugin/visTypeTable/visTypeTable.plugin.js', '/9001/bundles/plugin/visBuilder/visBuilder.plugin.js', '/9001/bundles/plugin/visTypeVislib/visTypeVislib.plugin.js', '/9001/bundles/plugin/tileMap/tileMap.plugin.js', '/9001/bundles/plugin/regionMap/regionMap.plugin.js', '/9001/bundles/plugin/inputControlVis/inputControlVis.plugin.js', '/9001/bundles/plugin/visualize/visualize.plugin.js', '/9001/bundles/plugin/apmOss/apmOss.plugin.js', '/9001/bundles/plugin/opensearchDashboardsOverview/opensearchDashboardsOverview.plugin.js', '/9001/bundles/plugin/managementOverview/managementOverview.plugin.js', '/9001/bundles/plugin/management/management.plugin.js', '/9001/bundles/plugin/indexPatternManagement/indexPatternManagement.plugin.js', '/9001/bundles/plugin/securityAnalyticsDashboards/securityAnalyticsDashboards.plugin.js', '/9001/bundles/plugin/reportsDashboards/reportsDashboards.plugin.js', '/9001/bundles/plugin/searchRelevanceDashboards/searchRelevanceDashboards.plugin.js', '/9001/bundles/plugin/mlCommonsDashboards/mlCommonsDashboards.plugin.js', '/9001/bundles/plugin/flowFrameworkDashboards/flowFrameworkDashboards.plugin.js', '/9001/bundles/plugin/customImportMapDashboards/customImportMapDashboards.plugin.js', '/9001/bundles/plugin/indexManagementDashboards/indexManagementDashboards.plugin.js', '/9001/bundles/plugin/assistantDashboards/assistantDashboards.plugin.js', '/9001/bundles/plugin/anomalyDetectionDashboards/anomalyDetectionDashboards.plugin.js', '/9001/bundles/plugin/devTools/devTools.plugin.js', '/9001/bundles/plugin/console/console.plugin.js', '/9001/bundles/plugin/queryInsightsDashboards/queryInsightsDashboards.plugin.js', '/9001/bundles/plugin/grokDebugger/grokDebugger.plugin.js', '/9001/bundles/plugin/advancedSettings/advancedSettings.plugin.js', '/9001/bundles/plugin/dataExplorer/dataExplorer.plugin.js', '/9001/bundles/plugin/visTypeTimeseries/visTypeTimeseries.plugin.js', '/9001/bundles/plugin/visTypeTagcloud/visTypeTagcloud.plugin.js', '/9001/bundles/plugin/visTypeMetric/visTypeMetric.plugin.js', '/9001/bundles/plugin/explore/explore.plugin.js', '/9001/bundles/plugin/dataImporter/dataImporter.plugin.js', '/9001/bundles/plugin/securityDashboards/securityDashboards.plugin.js', '/9001/bundles/plugin/observabilityDashboards/observabilityDashboards.plugin.js', '/9001/bundles/plugin/queryWorkbenchDashboards/queryWorkbenchDashboards.plugin.js', '/9001/bundles/plugin/workspace/workspace.plugin.js', '/9001/bundles/plugin/alertingDashboards/alertingDashboards.plugin.js', '/9001/bundles/plugin/notificationsDashboards/notificationsDashboards.plugin.js', '/9001/bundles/plugin/agentTraces/agentTraces.plugin.js', '/9001/bundles/plugin/bfetch/bfetch.plugin.js', ], function () { __osdBundles__.get('entry/core/public').__osdBootstrap__(); load(styleSheetPaths); }); } }