!function(e){function t(t){for(var i,a,r=t[0],o=t[1],s=0,l=[];s0&&"base64"!==r?null:{mimetype:n,encoding:r,charset:a&&a.split("=")[1],data:t?e.split(",")[1]:null,isImage:l>=0,extension:o.a.getExtension(n)}}function p(e,t="text/plain"){return FileReader?new Promise(((t,i)=>{const n=new FileReader;n.onload=()=>t(n.result),n.onerror=e=>i(e),n.readAsDataURL(e)})):Promise.resolve(`data:${t};base64,${Object(a.fromByteArray)(e)}`)}const u=/^https?:\/\/\S+(?:[0-9]+)?\/\S{1,}/;function d(e){return u.test(e)}var m=i(15);function g(e){return!!(t=e)&&s.test(t)||d(e);var t}const x=(e,t=null)=>{const i=Object(m.get)(e,"dataurl.0",null);return g(i)?i:t},f=(e,t=null)=>null!==e&&g(e)?e:null===e?t:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCAzMSAzMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZGVmcz48ZmlsdGVyIGlkPSJiIiB4PSItLjM2IiB5PSItLjM2IiB3aWR0aD0iMS43MiIgaGVpZ2h0PSIxLjcyIiBjb2xvci1pbnRlcnBvbGF0aW9uLWZpbHRlcnM9InNSR0IiPjxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIuNDY0Ii8+PC9maWx0ZXI+PGxpbmVhckdyYWRpZW50IGlkPSJhIiB4MT0iMTU5LjM0IiB4Mj0iMTg0LjQ4IiB5MT0iNzI3LjM2IiB5Mj0iNzQ5Ljg5IiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTEuNTMgLTU0OS42OCkgc2NhbGUoLjc3MDAyKSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPjxzdG9wIHN0b3AtY29sb3I9IiNlYmYwZWQiIG9mZnNldD0iMCIvPjxzdG9wIHN0b3AtY29sb3I9IiNmYWZhZmEiIG9mZnNldD0iMSIvPjwvbG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LjMwNC0uMjg0LjQ2NiAwIC4xMDguMDY0LjI3Ni4xOTIuNTA1LjI5LjUyLjQzNS45NjEuNDM1IDEuMzI1IDAgLjMzLS4xMTUuNjA3LS4zNDQuODNhMS4xMzggMS4xMzggMCAwIDEtLjg0LjMzM2MtLjM3NyAwLS42OTQtLjEzMS0uOTUtLjM5NC0uMjU2LS4yNy0uMzg0LS42MjQtLjM4NC0xLjA2MiAwLS43OTYuMzQ0LTEuNDkzIDEuMDMxLTIuMDk0LjY4OC0uNiAxLjY0OS0uOSAyLjg4My0uOSAxLjMwOCAwIDIuMzAyLjMxNCAyLjk4My45NC42ODguNjIxIDEuMDMyIDEuMzczIDEuMDMyIDIuMjU2IDAgLjY0LS4xNzYgMS4yMzQtLjUyNiAxLjc4LS4zNS41NC0xLjAyOCAxLjE0LTIuMDMzIDEuOC0uNjc0LjQ0NS0uODUzLjg0My0xLjA2OCAxLjE5NC0uMjEuMzQzLS4zMzcuODczLS4zODUgMS41ODdtLS4zNzggMS40NzdjLjQ1MiAwIC44MzYuMTU4IDEuMTUzLjQ3NS4zMTcuMzE3LjQ3Ni43MDEuNDc2IDEuMTUzIDAgLjQ1Mi0uMTU5Ljg0LS40NzYgMS4xNjNhMS41NyAxLjU3IDAgMCAxLTEuMTUzLjQ3NiAxLjU3IDEuNTcgMCAwIDEtMS4xNTMtLjQ3NiAxLjYwNCAxLjYwNCAwIDAgMS0uNDc1LTEuMTYzYzAtLjQ1Mi4xNTktLjgzNi40NzUtMS4xNTNhMS41NyAxLjU3IDAgMCAxIDEuMTUzLS40NzUiIGZpbGwtb3BhY2l0eT0iLjgyIi8+PC9nPjwvc3ZnPg==",j=new(i(20).Observable)((e=>e.next({darkMode:!1})));async function b(){return await i.e(8).then(i.bind(null,104))}async function h(){return await i.e(9).then(i.bind(null,105))}const v="presentationUtil",M="presentationUtil",y="kibana-expressions"},function(e,t,i){"use strict";i.d(t,"b",(function(){return registry_PluginServiceRegistry})),i.d(t,"a",(function(){return provider_PluginServiceProvider})),i.d(t,"c",(function(){return create_PluginServices}));var n=i(4),a=i.n(n),r=i(0),o=i.n(r);class DependencyManager{static orderDependencies(e){const t=DependencyManager.getSortedDependencies(e);if(t.hasCycle){const e=DependencyManager.getCyclePathError(t.path);DependencyManager.throwCyclicPathError(e)}return t.path}static getSortedDependencies(e={}){const t=new Set;return Object.keys(e).reduce(((i,n)=>i.hasCycle?i:DependencyManager.sortVerticesFrom(n,e,t,{},{},i)),DependencyManager.createCycleInfo())}static sortVerticesFrom(e,t,i,n={},a={},r){return n[e]=!0,a[e]=!0,r=(void 0===t[e]||null===t[e]?[]:t[e]).reduce(((e,r)=>a[r]?{...e,hasCycle:!0}:n[r]?e:DependencyManager.sortVerticesFrom(r,t,i,n,a,e)),r),a[e]=!1,i.has(e)||i.add(e),{...r,path:[...i]}}static createCycleInfo(e=[],t=!1){return{hasCycle:t,path:e}}static getCyclePathError(e){return`Circular dependency detected while setting up services: ${e.join(" -> ")}`}static throwCyclicPathError(e){throw new Error(e)}}class providers_mediator_PluginServiceProvidersMediator{constructor(e){this.providers=e}start(e){this.getOrderedDependencies().forEach((t=>{this.providers[t].start(e,this.getServiceDependencies(t))}))}stop(){this.getOrderedDependencies().forEach((e=>this.providers[e].stop()))}getOrderedDependencies(){const e=this.getGraphOfDependencies();return DependencyManager.orderDependencies(e)}getGraphOfDependencies(){return this.getProvidersNames().reduce(((e,t)=>{var i;return{...e,[t]:null!==(i=this.providers[t].requiredServices)&&void 0!==i?i:[]}}),{})}getProvidersNames(){return Object.keys(this.providers)}getServiceDependencies(e){var t;const i=null!==(t=this.providers[e].requiredServices)&&void 0!==t?t:[];return this.getServicesByDeps(i)}getServicesByDeps(e){return e.reduce(((e,t)=>({...e,[t]:this.providers[t].getService()})),{})}}var s=i(1);class registry_PluginServiceRegistry{constructor(e){a()(this,"providers",void 0),a()(this,"providersMediator",void 0),a()(this,"_isStarted",!1),this.providers=e,this.providersMediator=new providers_mediator_PluginServiceProvidersMediator(e)}isStarted(){return this._isStarted}getServiceProviders(){if(!this._isStarted)throw new Error("Registry not started");return this.providers}getContextProvider(){const e=Object.values(this.getServiceProviders());return({children:t})=>Object(s.jsx)(o.a.Fragment,null,e.reduceRight(((e,t)=>Object(s.jsx)(t.Provider,null,e)),t))}start(e){return this.providersMediator.start(e),this._isStarted=!0,this}stop(){return this.providersMediator.stop(),this._isStarted=!1,this}}class provider_PluginServiceProvider{constructor(e,t){a()(this,"factory",void 0),a()(this,"_requiredServices",void 0),a()(this,"context",Object(r.createContext)(null)),a()(this,"pluginService",null),a()(this,"Provider",(({children:e})=>Object(s.jsx)(this.context.Provider,{value:this.getService()},e))),this.factory=e,this._requiredServices=t,this.context.displayName="PluginServiceContext"}getService(){if(!this.pluginService)throw new Error("Service not started");return this.pluginService}start(e,t){this.pluginService=this.factory(e,t)}getServiceReactHook(){return()=>{const e=Object(r.useContext)(this.context);if(!e)throw new Error("Provider is not set up correctly");return e}}stop(){this.pluginService=null}get requiredServices(){var e;return null!==(e=this._requiredServices)&&void 0!==e?e:[]}}class create_PluginServices{constructor(){a()(this,"registry",null)}setRegistry(e){if(e&&!e.isStarted())throw new Error("Registry has not been started.");this.registry=e}hasRegistry(){return!!this.registry}getRegistry(){if(!this.registry)throw new Error("No registry has been provided.");return this.registry}getContextProvider(){return this.getRegistry().getContextProvider()}getHooks(){const e=this.getRegistry().getServiceProviders();return Object.keys(e).reduce(((t,i)=>(t[i]={useService:e[i].getServiceReactHook()},t)),{})}getServices(){const e=this.getRegistry().getServiceProviders();return Object.keys(e).reduce(((t,i)=>(t[i]=e[i].getService(),t)),{})}}},function(e,t,i){e.exports=i(10)(1465)},function(e,t,i){"use strict";i.d(t,"a",(function(){return a})),i.d(t,"e",(function(){return c})),i.d(t,"b",(function(){return l})),i.d(t,"f",(function(){return p})),i.d(t,"c",(function(){return u})),i.d(t,"d",(function(){return d}));var n=i(6);const a="labs:",r=`${a}dashboard:deferBelowFold`,o=`${a}dashboard:dashboardControls`,s=`${a}canvas:byValueEmbeddable`,c=[r,o,s],l=["kibana","browser","session"],p={[r]:{id:r,isActive:!1,isDisplayed:!0,environments:["kibana","browser","session"],name:n.i18n.translate("presentationUtil.labs.enableDeferBelowFoldProjectName",{defaultMessage:'Defer loading panels below "the fold"'}),description:n.i18n.translate("presentationUtil.labs.enableDeferBelowFoldProjectDescription",{defaultMessage:'Any panels below "the fold"-- the area hidden beyond the bottom of the window, accessed by scrolling-- will not be loaded immediately, but only when they enter the viewport'}),solutions:["dashboard"]},[o]:{id:o,isActive:!0,isDisplayed:!0,environments:["kibana","browser","session"],name:n.i18n.translate("presentationUtil.labs.enableDashboardControlsProjectName",{defaultMessage:"Enable dashboard controls"}),description:n.i18n.translate("presentationUtil.labs.enableDashboardControlsProjectDescription",{defaultMessage:"Enables the controls system for dashboard, which allows dashboard authors to more easily build interactive elements for their users."}),solutions:["dashboard"]},[s]:{id:s,isActive:!0,isDisplayed:!0,environments:["kibana","browser","session"],name:n.i18n.translate("presentationUtil.labs.enableByValueEmbeddableName",{defaultMessage:"By-Value Embeddables"}),description:n.i18n.translate("presentationUtil.labs.enableByValueEmbeddableDescription",{defaultMessage:"Enables support for by-value embeddables in Canvas"}),solutions:["canvas"]}},u=()=>c,d=(e,t)=>e?Object.values(t).every((e=>!0===e)):Object.values(t).some((e=>!0===e))},function(e,t){e.exports=__kbnSharedDeps__.KbnI18n},function(e,t,i){"use strict";i.d(t,"a",(function(){return l})),i.d(t,"b",(function(){return p}));var n=i(3),a=i(2);const r=(e,t,i)=>{const n=e.isActive;return e.environments.includes(t)?!0===i||!1===i?i:"enabled"===i||"disabled"!==i&&n:n},o=(e,t,i)=>e.setItem(t,i?"enabled":"disabled"),s=e=>{a.projectIDs.forEach((t=>e.removeItem(t))),Object.keys(e).filter((e=>e.startsWith(a.LABS_PROJECT_PREFIX))).forEach((t=>e.removeItem(t)))},c={capabilities:new n.a((({coreStart:e})=>{const{dashboard:t,visualize:i,advancedSettings:n}=e.application.capabilities;return{canAccessDashboards:()=>Boolean(t.show),canCreateNewDashboards:()=>Boolean(t.createNew),canSaveVisualizations:()=>Boolean(i.save),canSetAdvancedSettings:()=>Boolean(n.save)}})),labs:new n.a((({coreStart:e})=>{const{uiSettings:t}=e,i=window.localStorage,n=window.sessionStorage,c=e=>{const o=a.projects[e];return((e,t)=>{const{isActive:i,environments:n}=e;a.environmentNames.forEach((e=>{n.includes(e)||delete t[e]}));const r=Object(a.isProjectEnabledByStatus)(i,t),o=r!==i;return{...e,status:{...t,defaultValue:i,isEnabled:r,isOverride:o}}})(o,{session:r(o,"session",n.getItem(e)),browser:r(o,"browser",i.getItem(e)),kibana:r(o,"kibana",t.get(e,o.isActive))})},l=(e,a,r)=>{switch(a){case"session":o(n,e,r);break;case"browser":o(i,e,r);break;case"kibana":s=e,c=r,t.set(s,c)}var s,c};return{getProjectIDs:a.getProjectIDs,getProjects:(e=[])=>a.projectIDs.reduce(((t,i)=>{const n=c(i);return(0===e.length||e.some((e=>n.solutions.includes(e))))&&(t[i]=n),t}),{}),getProject:c,isProjectEnabled:e=>c(e).status.isEnabled,reset:()=>{s(i),s(n),a.projectIDs.forEach((e=>l(e,"kibana",a.projects[e].isActive)))},setProjectStatus:l}})),dataViews:new n.a((({startPlugins:e})=>{const{dataViews:{get:t,getIdsWithTitle:i,getDefaultId:n}}=e;return{get:t,getDefaultId:n,getIdsWithTitle:i}})),dashboards:new n.a((({coreStart:e})=>{const t=async(t="",i=[])=>{const{find:n}=e.savedObjects.client,{savedObjects:a}=await n({type:"dashboard",search:`${t}*`,searchFields:i});return a};return{findDashboards:t,findDashboardsByTitle:async(e="")=>t(e,["title"])}})),uiActions:new n.a((({startPlugins:e})=>{const{uiActions:{getTriggerCompatibleActions:t}}=e;return{getTriggerCompatibleActions:t}}))},l=new n.c,p=new n.b(c)},function(e,t,i){"use strict";var n=i(7);i.d(t,"a",(function(){return n.a}))},function(e,t){e.exports=__kbnSharedDeps__.ElasticEui},function(e,t){e.exports=__kbnSharedDeps_npm__},function(e,t,i){i.r(t);var n=__kbnBundles__.get("plugin/embeddable/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,i){"use strict";var n,a=function(){var e={};return function(t){if(void 0===e[t]){var i=document.querySelector(t);if(window.HTMLIFrameElement&&i instanceof window.HTMLIFrameElement)try{i=i.contentDocument.head}catch(e){i=null}e[t]=i}return e[t]}}(),r=[];function o(e){for(var t=-1,i=0;ie?e.map((e=>{var t;return null!==(t=e.meta)&&void 0!==t&&t.value&&delete e.meta.value,e})):[],a=e=>{var t;return(t=e).filters&&t.filters.length>0&&(e.filters=n(e.filters)),e},r=e=>(e.explicitInput=a(e.explicitInput),e)},function(e,t,i){e.exports=i(10)(2944)},function(e,t,i){"use strict";let n=i(23);e.exports=new n(i(24))},function(e,t){e.exports=__kbnSharedDeps__.Rxjs},function(e,t,i){i(22),__kbnBundles__.define("plugin/presentationUtil/public",i,30),__kbnBundles__.define("plugin/presentationUtil/common",i,2)},function(e,t,i){i.p=window.__kbnPublicPath__.presentationUtil},function(e,t,i){"use strict";function n(){this._types=Object.create(null),this._extensions=Object.create(null);for(let e=0;e{const{uiActions:{getTriggerCompatibleActions:s}}=a.a.getServices(),[p,d]=Object(c.useState)(void 0);return Object(c.useEffect)((()=>{n&&(async()=>{const e={embeddable:n,trigger:g.panelHoverTrigger},t=(await s(g.PANEL_HOVER_TRIGGER,e)).filter((e=>void 0!==e.MenuItem&&-1===(null!=o?o:[]).indexOf(e.id))).sort(((e,t)=>(e.order||0)-(t.order||0)));t.length>0?d(Object(u.jsx)(l.a.Fragment,null,t.map((t=>l.a.createElement(t.MenuItem,{key:t.id,context:e}))))):d(void 0)})()}),[n,s,t,o]),Object(u.jsx)("div",{className:"presentationUtil__floatingActionsWrapper"},e,i&&p&&Object(u.jsx)("div",{className:m()("presentationUtil__floatingActions",r)},p))},f=(e,t=Object(u.jsx)(p.EuiLoadingSpinner,null))=>l.a.forwardRef(((i,n)=>Object(u.jsx)(p.EuiErrorBoundary,null,Object(u.jsx)(c.Suspense,{fallback:t},Object(u.jsx)(e,s()({},i,{ref:n})))))),j=l.a.lazy((()=>i.e(4).then(i.bind(null,106)))),b=l.a.lazy((()=>i.e(5).then(i.bind(null,63)))),h=l.a.lazy((()=>i.e(10).then(i.bind(null,51)))),v=l.a.lazy((()=>i.e(3).then(i.bind(null,110)))),M=l.a.lazy((()=>i.e(11).then(i.bind(null,107)))),y=l.a.lazy((()=>i.e(2).then(i.bind(null,109)))),L=l.a.lazy((()=>i.e(6).then(i.bind(null,108))));var S=i(17);const w=async()=>{const{createReduxTools:e}=await i.e(0).then(i.bind(null,79)),{createReduxEmbeddableTools:t}=await Promise.all([i.e(0),i.e(7)]).then(i.bind(null,111));return{createReduxTools:e,createReduxEmbeddableTools:t}},N=async e=>(await i.e(12).then(i.bind(null,41))).registerExpressionsLanguage(e);function I(){return new plugin_PresentationUtilPlugin}const D=()=>a.a.getHooks().labs.useService(),_=()=>a.a.getContextProvider()},function(e,t){e.exports=__kbnSharedDeps__.KbnI18nReact},function(e,t){e.exports=__kbnSharedDeps__.KbnMonaco},function(e,t,i){i.r(t);var n=__kbnBundles__.get("plugin/kibanaReact/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,i){i.r(t);var n=__kbnBundles__.get("plugin/savedObjects/public");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t,i){i.r(t);var n=__kbnBundles__.get("plugin/expressions/common");Object.defineProperties(t,Object.getOwnPropertyDescriptors(n))},function(e,t){e.exports=__kbnSharedDeps__.Uuid},function(e,t){e.exports=__kbnSharedDeps__.ReactDom}]);