/*! Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one or more contributor license agreements. * Licensed under the Elastic License 2.0; you may not use this file except in compliance with the Elastic License 2.0. */ (window.infra_bundle_jsonpfunction=window.infra_bundle_jsonpfunction||[]).push([[16],{104:function(e,t,n){e.exports=n(65)(1466)},116:function(e,t,n){"use strict";n.d(t,"a",(function(){return j})),n.d(t,"b",(function(){return h})),n.d(t,"c",(function(){return v}));var r=n(104),o=n.n(r),u=n(2),c=n.n(u),i=n(79);const l={services:{}},a=Object(u.createContext)(l);var s=n(173),f=n.n(s),p=n(76);const j=({children:e,component:t,render:n,...r})=>{const l=Object(u.useMemo)((()=>{if(t)return e=>Object(p.jsx)(c.a.Fragment,null,Object(p.jsx)(d,null),Object(p.jsx)(t,e))}),[t]);if(l)return Object(p.jsx)(i.Route,o()({},r,{component:l}));if(n||"function"==typeof e){const t="function"==typeof e?e:n;return Object(p.jsx)(i.Route,o()({},r,{render:e=>Object(p.jsx)(c.a.Fragment,null,Object(p.jsx)(d,null),t(e))}))}return Object(p.jsx)(i.Route,r,Object(p.jsx)(d,null),e)},d=()=>{const{executionContext:e}=Object(u.useContext)(a).services,t=Object(i.useRouteMatch)();return function(e,t){f()((()=>(null==e||e.set(t),()=>{null==e||e.clear()})),[t])}(e,{type:"application",page:t.path,id:Object.keys(t.params).length>0?JSON.stringify(t.params):void 0}),null};var O=n(87);const h=({children:e,...t})=>Object(p.jsx)(i.Router,t,Object(p.jsx)(O.CompatRouter,null,e));var b=n(7);const v=({legacySwitch:e=!0,children:t})=>{const n=Object(i.useRouteMatch)();return e?Object(p.jsx)(i.Switch,null,t):Object(p.jsx)(O.Routes,null,u.Children.map(t,(e=>{if(c.a.isValidElement(e)&&e.type===j){var r;const o=Object(b.replace)(null==e?void 0:e.props.path,n.url+"/",""),u="function"==typeof(null==e?void 0:e.props.children)?null==e?void 0:e.props.children:null==e?void 0:e.props.render;return Object(p.jsx)(O.Route,{path:o,element:Object(p.jsx)(c.a.Fragment,null,Object(p.jsx)(d,null),(null==e||null===(r=e.props)||void 0===r?void 0:r.component)&&Object(p.jsx)(e.props.component,null)||u&&u()||t)})}return e})))}},173:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(66),o=n(174),u=r.__importDefault(n(204));t.default=function(e,t){u.default(e,t,o.isDeepEqual)}},174:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isDeepEqual=t.off=t.on=t.isClient=void 0;var r=n(66).__importDefault(n(203));t.isClient="object"==typeof window,t.on=function(e){for(var t=[],n=1;n{l.a.unmountComponentAtNode(e)}}const f=({history:e})=>c.a.createElement(r.EuiErrorBoundary,null,c.a.createElement(a.b,{history:e},c.a.createElement(a.c,null,c.a.createElement(a.a,{path:"/",render:({location:e})=>{if(!e)return null;let t,n="",r="";e.hash.indexOf("#infrastructure")>-1||e.hash.indexOf("#/infrastructure")>-1?(n=e.hash.replace(new RegExp("#infrastructure/|#/infrastructure/|#/infrastructure|#infrastructure","g"),""),r=e.pathname.replace("app/infra","app/metrics")):e.hash.indexOf("#logs")>-1||e.hash.indexOf("#/logs")>-1?(n=e.hash.replace(new RegExp("#logs/|#/logs/|#/logs|#logs","g"),""),r=e.pathname.replace("app/infra","app/logs")):(n="inventory",r=e.pathname.replace("app/infra","app/metrics"),t=void 0),n=n.replace("metrics/","detail/");const o=n.split("?");n=o[0],t=o[1]?o[1]:void 0;let u=`${r}/${n}${t?`?${t}`:""}`;return u=u.replace("//","/"),window.location.href=u,null}}))))}}]);