PageSourceSearch

https://zeromanual.ai/8975/bundles/plugin/dataSourceManagement/dataSourceManagement.plugin.js

js zeromanual.ai collected 2026-10-05 13:32:31 UTC 524,668 bytes, 14 lines download raw bytes

1(function(modules){function webpackJsonpCallback(data){var chunkIds=data[0];var moreModules=data[1];var moduleId,chunkId,i=0,resolves=[];for(;i<chunkIds.length;i++){chunkId=chunkIds[i];if(Object.prototype.hasOwnProperty.call(installedChunks,chunkId)&&installedChunks[chunkId]){resolves.push(installedChunks[chunkId][0])}installedChunks[chunkId]=0}for(moduleId in moreModules){if(Object.prototype.hasOwnProperty.call(moreModules,moduleId)){modules[moduleId]=moreModules[moduleId]}}if(parentJsonpFunction)parentJsonpFunction(data);while(resolves.length){resolves.shift()()}}var installedModules={};var installedChunks={2:0};function jsonpScriptSrc(chunkId){return __webpack_require__.p+"dataSourceManagement.chunk."+chunkId+".js"}function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.e=function requireEnsure(chunkId){var promises=[];var installedChunkData=installedChunks[chunkId];if(installedChunkData!==0){if(installedChunkData){promises.push(installedChunkData[2])}else{var promise=new Promise((function(resolve,reject){installedChunkData=installedChunks[chunkId]=[resolve,reject]}));promises.push(installedChunkData[2]=promise);var script=document.createElement("script");var onScriptComplete;script.charset="utf-8";script.timeout=120;if(__webpack_require__.nc){script.setAttribute("nonce",__webpack_require__.nc)}script.src=jsonpScriptSrc(chunkId);var error=new Error;onScriptComplete=function(event){script.onerror=script.onload=null;clearTimeout(timeout);var chunk=installedChunks[chunkId];if(chunk!==0){if(chunk){var errorType=event&&(event.type==="load"?"missing":event.type);var realSrc=event&&event.target&&event.target.src;error.message="Loading chunk "+chunkId+" failed.\n("+errorType+": "+realSrc+")";error.name="ChunkLoadError";error.type=errorType;error.request=realSrc;chunk[1](error)}installedChunks[chunkId]=undefined}};var timeout=setTimeout((function(){onScriptComplete({type:"timeout",target:script})}),12e4);script.onerror=script.onload=onScriptComplete;document.head.appendChild(script)}}return Promise.all(promises)};__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{enumerable:true,get:getter})}};__webpack_require__.r=function(exports){if(typeof Symbol!=="undefined"&&Symbol.toStringTag){Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}Object.defineProperty(exports,"__esModule",{value:true})};__webpack_require__.t=function(value,mode){if(mode&1)value=__webpack_require__(value);if(mode&8)return value;if(mode&4&&typeof value==="object"&&value&&value.__esModule)return value;var ns=Object.create(null);__webpack_require__.r(ns);Object.defineProperty(ns,"default",{enumerable:true,value:value});if(mode&2&&typeof value!="string")for(var key in value)__webpack_require__.d(ns,key,function(key){return value[key]}.bind(null,key));return ns};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";__webpack_require__.oe=function(err){console.error(err);throw err};var jsonpArray=window["dataSourceManagement_bundle_jsonpfunction"]=window["dataSourceManagement_bundle_jsonpfunction"]||[];var oldJsonpFunction=jsonpArray.push.bind(jsonpArray);jsonpArray.push=webpackJsonpCallback;jsonpArray=jsonpArray.slice();for(var i=0;i<jsonpArray.length;i++)webpackJsonpCallback(jsonpArray[i]);var parentJsonpFunction=oldJsonpFunction;return __webpack_require__(__webpack_require__.s=98)})([function(module,exports){module.exports=__osdSharedDeps__.React},function(module,exports){module.exports=__osdSharedDeps__.ElasticEui},function(module,exports,__webpack_require__){"use strict";module.exports=function(cssWithMappingToString){var list=[];list.toString=function toString(){return this.map((function(item){var content=cssWithMappingToString(item);if(item[2]){return"@media ".concat(item[2]," {").concat(content,"}")}return content})).join("")};list.i=function(modules,mediaQuery,dedupe){if(typeof modules==="str
1ing"){modules=[[null,modules,""]]}var alreadyImportedModules={};if(dedupe){for(var i=0;i<this.length;i++){var id=this[i][0];if(id!=null){alreadyImportedModules[id]=true}}}for(var _i=0;_i<modules.length;_i++){var item=[].concat(modules[_i]);if(dedupe&&alreadyImportedModules[item[0]]){continue}if(mediaQuery){if(!item[2]){item[2]=mediaQuery}else{item[2]="".concat(mediaQuery," and ").concat(item[2])}}list.push(item)}};return list}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return DirectQueryLoadingStatus}));__webpack_require__.d(__webpack_exports__,"a",(function(){return CachedDataSourceStatus}));let DirectQueryLoadingStatus=function(DirectQueryLoadingStatus){DirectQueryLoadingStatus["SUCCESS"]="success";DirectQueryLoadingStatus["FAILED"]="failed";DirectQueryLoadingStatus["RUNNING"]="running";DirectQueryLoadingStatus["SCHEDULED"]="scheduled";DirectQueryLoadingStatus["CANCELED"]="canceled";DirectQueryLoadingStatus["WAITING"]="waiting";DirectQueryLoadingStatus["INITIAL"]="initial";return DirectQueryLoadingStatus}({});let CachedDataSourceStatus=function(CachedDataSourceStatus){CachedDataSourceStatus["Updated"]="Updated";CachedDataSourceStatus["Failed"]="Failed";CachedDataSourceStatus["Empty"]="Empty";return CachedDataSourceStatus}({})},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"getDirectQueryConnections",(function(){return getDirectQueryConnections}));__webpack_require__.d(__webpack_exports__,"getLocalClusterConnections",(function(){return getLocalClusterConnections}));__webpack_require__.d(__webpack_exports__,"mergeDataSourcesWithConnections",(function(){return mergeDataSourcesWithConnections}));__webpack_require__.d(__webpack_exports__,"fetchDataSourceConnections",(function(){return fetchDataSourceConnections}));__webpack_require__.d(__webpack_exports__,"getDataSources",(function(){return getDataSources}));__webpack_require__.d(__webpack_exports__,"getDataConnections",(function(){return getDataConnections}));__webpack_require__.d(__webpack_exports__,"getDataSourcesWithFields",(function(){return getDataSourcesWithFields}));__webpack_require__.d(__webpack_exports__,"handleSetDefaultDatasource",(function(){return handleSetDefaultDatasource}));__webpack_require__.d(__webpack_exports__,"setFirstDataSourceAsDefault",(function(){return setFirstDataSourceAsDefault}));__webpack_require__.d(__webpack_exports__,"handleNoAvailableDataSourceError",(function(){return handleNoAvailableDataSourceError}));__webpack_require__.d(__webpack_exports__,"getFilteredDataSources",(function(){return getFilteredDataSources}));__webpack_require__.d(__webpack_exports__,"getDefaultDataSourceId",(function(){return getDefaultDataSourceId}));__webpack_require__.d(__webpack_exports__,"getDefaultDataSourceId$",(function(){return getDefaultDataSourceId$}));__webpack_require__.d(__webpack_exports__,"getDefaultDataSource",(function(){return getDefaultDataSource}));__webpack_require__.d(__webpack_exports__,"getDataSourceById",(function(){return getDataSourceById}));__webpack_require__.d(__webpack_exports__,"createSingleDataSource",(function(){return createSingleDataSource}));__webpack_require__.d(__webpack_exports__,"updateDataSourceById",(function(){return updateDataSourceById}));__webpack_require__.d(__webpack_exports__,"deleteDataSourceById",(function(){return deleteDataSourceById}));__webpack_require__.d(__webpack_exports__,"deleteMultipleDataSources",(function(){return deleteMultipleDataSources}));__webpack_require__.d(__webpack_exports__,"testConnection",(function(){return testConnection}));__webpack_require__.d(__webpack_exports__,"fetchDataSourceMetaData",(function(){return fetchDataSourceMetaData}));__webpack_require__.d(__webpack_exports__,"isValidUrl",(function(){return isValidUrl}));__webpack_require__.d(__webpack_exports__,"getDefaultAuthMethod",(function(){return getDefaultAuthMethod}));__webpack_require__.d(__webpack_exports__,"extractRegisteredAuthTypeCredentials",(function(){return extractRegisteredAuthTypeCredentials}));__webpack_require__.d(__webpack_exports__,"handleDataSourceFetchError",(function(){return handleDataSourceFetchError}));__webpack_require__.d(__webpack_exports__,"dataSourceOptionGroupLabel",(function(){return dataSourceOptionGroupLabel}));__webpack_require__.d(__webpack_exports__,"getApplication",(function(){return getApplication}));__webpack_require__.d(__webpack_exports__,"setApplication",(function(){return setApplication}));__webpack_require__.d(__webpack_exports__,"getUiSettings",(function(){return getUiSettings}));__webpack_require__.d(__webpack_exports__,"setUiSettings",(function(){return setUiSettings}));__webpack_require__.d(__webpack_exports__,"getHideLocalCluster",(function(){return getHideLocalCluster}));__webpack_require__.d(__webpack_exports__,"setHideLocalCluster",(function(){return setHideLocalCluster}));__webpack_require__.d(__webpack_exports__,"getDataSourceSelection",(function(){return getDataSourceSelection}));__webpack_require__.d(__webpack_exports__,"setDataSourceSelection",(function(){return setDataSourceSelection}));__webpack_require__.d(__webpack_exports__,"generateComponentId",(function(){return generateComponentId}));__webpack_require__.d(__webpack_exports__,"formatError",(function(){return formatError}));__webpack_require__.d(__webpack_exports__,"isPluginInstalled",(function(){return isPluginInstalled}));var external_osdSharedDeps_OsdI18n_=__webpack_require__(7);var deep_freeze=__webpack_require__(318);var uuid=__webpack_require__(88);var uuid_default=__webpack_require__.n(uuid);var types=__webpack_require__(13);var public_=__webpack_require__(24);var opensearchDashboardsReact_public_=__webpack_require__(16);var external_osdSharedDeps_ElasticEui_=__webpack_require__(1);var external_osdSharedDeps_React_=__webpack_require__(0);var external_osdSharedDeps_React_default=__webpack_require__.n(external_osdSharedDeps_React_);const getReloadButton=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"flexEnd",gutterSize:"s"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{size:"s",onClick:()=>window.location.reload()},external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.requiresPageReloadToastButtonLabel",{defaultMessage:"Refresh the page"})))));var public_plugin=__webpack_require__(18);const getManageDataSourceButton=application=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{"data-test-subj":"manageDataSourceButtonContainer",justifyContent:"flexEnd",gutterSize:"s"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{"data-test-subj":"manageDataSourceButton",size:"s",onClick:()=>application===null||application===void 0?void 0:application.navigateToApp("management",{path:`opensearch-dashboards/${public_plugin["a"]}`})},external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.manageDataSourceToastButtonLabel",{defaultMessage:"Manage data sources"})))));var constants=__webpack_require__(15);var data_source_selection_service=__webpack_require__(29);var public_constants=__webpack_require__(21);const getDirectQueryConnections=async(dataSourceId,http)=>{const endpoint=`${public_constants["b"]}/dataSourceMDSId=${dataSourceId}`;const res=await http.get(endpoint);if(!Array.isArray(res)){throw new Error("Unexpected response format: expected an array of direct query connections.")}const directQueryConnections=res.map(dataConnection=>({id:`${dataSourceId}-${dataConnection.name}`,title:dataConnection.name,type:{S3GLUE:constants["b"].S3GLUE,PROMETHEUS:constants["b"].PROMETHEUS}[dataConnection.connector]||dataConnection.connector,connectionType:types["b"].DirectQueryConnection,description:dataConnection.description,parentId:dataSourceId}));return directQueryConnections};const getLocalClusterConnections=async http=>{const res=await http.get(`${public_constants["b"]}/dataSourceMDSId=`);const localClusterConnections=res.map(dataConnection=>({id:`${dataConnection.name}`,title:dataConnection.name,type:{S3GLUE:"Amazon S3",PROMETHEUS:"Prometheus"}[dataConnection.connector]||dataConnection.connector,connectionType:types["b"].DirectQueryConnection,description:dataConnection.description,parentId:public_constants["g"]}));return localClusterConnections};const mergeDataSourcesWithConnections=(dataSources,directQueryConnections,localClusterConnections)=>{const dataSourcesList=[];
1dataSources.forEach(ds=>{const relatedConnections=directQueryConnections.filter(directQueryConnection=>directQueryConnection.parentId===ds.id);dataSourcesList.push({id:ds.id,type:ds.type,connectionType:types["b"].OpenSearchConnection,title:ds.title,description:ds.description,relatedConnections:relatedConnections})});if(localClusterConnections){dataSourcesList.push({id:public_constants["g"],type:"OpenSearch",connectionType:types["b"].OpenSearchConnection,title:public_constants["g"],relatedConnections:localClusterConnections})}return dataSourcesList};const fetchDataSourceConnections=async(dataSources,http,notifications,directQueryTable,hideLocalCluster)=>{try{const directQueryConnectionsPromises=dataSources.map(ds=>getDirectQueryConnections(ds.id,http).catch(()=>[]));const directQueryConnectionsResult=await Promise.all(directQueryConnectionsPromises);const directQueryConnections=directQueryConnectionsResult.flat();const localClusterConnections=directQueryTable&&!hideLocalCluster?await getLocalClusterConnections(http):undefined;return mergeDataSourcesWithConnections(dataSources,directQueryConnections,localClusterConnections)}catch(error){notifications===null||notifications===void 0||notifications.toasts.addDanger(external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.fetchDataSourceConnections",{defaultMessage:"Cannot fetch data sources"}));return[]}};async function getDataSources(savedObjectsClient){return savedObjectsClient.find({type:"data-source",fields:["id","description","title","dataSourceVersion","dataSourceEngineType","installedPlugins"],perPage:1e4}).then(response=>{var _response$savedObject,_response$savedObject2;return(response===null||response===void 0||(_response$savedObject=response.savedObjects)===null||_response$savedObject===void 0||(_response$savedObject2=_response$savedObject.map)===null||_response$savedObject2===void 0?void 0:_response$savedObject2.call(_response$savedObject,source=>{const id=source.id;const title=source.get("title");const description=source.get("description");const datasourceversion=source.get("dataSourceVersion");const type=source.get("dataSourceEngineType");const installedplugins=source.get("installedPlugins");return{id:id,title:title,description:description,sort:`${title}`,datasourceversion:datasourceversion,type:type,installedplugins:installedplugins}}))||[]})}async function getDataConnections(savedObjectsClient){return savedObjectsClient.find({type:"data-connection",perPage:1e4}).then(response=>{var _response$savedObject3;return(_response$savedObject3=response===null||response===void 0?void 0:response.savedObjects)!==null&&_response$savedObject3!==void 0?_response$savedObject3:[]})}async function getDataSourcesWithFields(savedObjectsClient,fields){const response=await savedObjectsClient.find({type:"data-source",fields:fields,perPage:1e4});return response===null||response===void 0?void 0:response.savedObjects}async function handleSetDefaultDatasource(savedObjectsClient,uiSettings){if(!getDefaultDataSourceId(uiSettings)){return await setFirstDataSourceAsDefault(savedObjectsClient,uiSettings,false)}}async function setFirstDataSourceAsDefault(savedObjectsClient,uiSettings,exists){if(exists){uiSettings.remove(constants["a"])}const listOfDataSources=await getDataSources(savedObjectsClient);if(Array.isArray(listOfDataSources)&&listOfDataSources.length>=1){const datasourceId=listOfDataSources[0].id;return await uiSettings.set(constants["a"],datasourceId)}}function handleNoAvailableDataSourceError(props){const{changeState:changeState,notifications:notifications,application:application,callback:callback,incompatibleDataSourcesExist:incompatibleDataSourcesExist}=props;const notificationTitle=incompatibleDataSourcesExist?external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.noCompatibleDataSourceError",{defaultMessage:"No compatible data sources are available. Add a compatible data source."}):external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.noAvailableDataSourceError",{defaultMessage:"No data sources connected yet. Connect your data sources to get started."});changeState();if(callback)callback([]);notifications.add({title:notificationTitle,text:Object(opensearchDashboardsReact_public_["toMountPoint"])(getManageDataSourceButton(application)),color:"warning"})}function getFilteredDataSources(dataSources){let filter=arguments.length>1&&arguments[1]!==undefined?arguments[1]:ds=>true;return dataSources.filter(ds=>filter(ds)).map(ds=>{var _ds$attributes;return{id:ds.id,label:((_ds$attributes=ds.attributes)===null||_ds$attributes===void 0?void 0:_ds$attributes.title)||""}}).sort((a,b)=>a.label.toLowerCase().localeCompare(b.label.toLowerCase()))}function getDefaultDataSourceId(uiSettings){if(!uiSettings)return null;
1return uiSettings.get(constants["a"],null)}function getDefaultDataSourceId$(uiSettings){if(!uiSettings)return null;return uiSettings.get$(constants["a"],null)}function getDefaultDataSource(dataSourcesOptions,LocalCluster,defaultDataSourceId,hideLocalCluster){const defaultDataSourceAfterCheck=dataSourcesOptions.find(dataSource=>dataSource.id===defaultDataSourceId);if(defaultDataSourceAfterCheck){return[{id:defaultDataSourceAfterCheck.id,label:defaultDataSourceAfterCheck.label}]}if(!hideLocalCluster){return[LocalCluster]}if(dataSourcesOptions.length>0){return[{id:dataSourcesOptions[0].id,label:dataSourcesOptions[0].label}]}return[]}async function getDataSourceById(id,savedObjectsClient){const response=await savedObjectsClient.get("data-source",id);if(!response||response.error){var _response$error,_response$error2;const statusCode=(_response$error=response.error)===null||_response$error===void 0?void 0:_response$error.statusCode;if(statusCode===404){throw new types["c"]({statusCode:statusCode,body:"Unable to find data source"})}throw new types["c"]({statusCode:statusCode,body:(_response$error2=response.error)===null||_response$error2===void 0?void 0:_response$error2.message})}const attributes=(response===null||response===void 0?void 0:response.attributes)||{};return{id:response.id,title:attributes.title,endpoint:attributes.endpoint,description:attributes.description||"",auth:attributes.auth,datasourceversion:attributes.dataSourceVersion,installedplugins:attributes.installedPlugins}}async function createSingleDataSource(savedObjectsClient,attributes){return savedObjectsClient.create("data-source",attributes)}async function updateDataSourceById(savedObjectsClient,id,attributes){return savedObjectsClient.update("data-source",id,attributes)}async function deleteDataSourceById(id,savedObjectsClient){return savedObjectsClient.delete("data-source",id)}async function deleteMultipleDataSources(savedObjectsClient,selectedDataSources){await Promise.all(selectedDataSources.map(async selectedDataSource=>{await deleteDataSourceById(selectedDataSource.id,savedObjectsClient)}))}async function testConnection(http,_ref,dataSourceID){let{endpoint:endpoint,auth:{type:type,credentials:credentials}}=_ref;const query={id:dataSourceID,dataSourceAttr:{endpoint:endpoint,auth:{type:type,credentials:credentials}}};await http.post(`/internal/data-source-management/validate`,{body:JSON.stringify(query)})}async function fetchDataSourceMetaData(http,_ref2,dataSourceID){let{endpoint:endpoint,auth:{type:type,credentials:credentials}}=_ref2;const query={id:dataSourceID,dataSourceAttr:{endpoint:endpoint,auth:{type:type,credentials:credentials}}};return await http.post(`/internal/data-source-management/fetchDataSourceMetaData`,{body:JSON.stringify(query)})}const isValidUrl=endpoint=>{try{const url=new URL(endpoint);return Boolean(url)&&(url.protocol==="http:"||url.protocol==="https:")}catch(e){return false}};const getDefaultAuthMethod=authenticationMethodRegistry=>{var _authenticationMethod;const registeredAuthMethods=authenticationMethodRegistry.getAllAuthenticationMethods();const defaultAuthMethod=registeredAuthMethods.length>0?authenticationMethodRegistry.getAuthenticationMethod(registeredAuthMethods[0].name):types["g"];const initialSelectedAuthMethod=(_authenticationMethod=authenticationMethodRegistry.getAuthenticationMethod(types["f"]))!==null&&_authenticationMethod!==void 0?_authenticationMethod:defaultAuthMethod;return initialSelectedAuthMethod};const extractRegisteredAuthTypeCredentials=(currentCredentialState,authType,authenticationMethodRegistry)=>{var _authenticationMethod2,_authenticationMethod3;const registeredCredentials={};const registeredCredentialField=(_authenticationMethod2=(_authenticationMethod3=authenticationMethodRegistry.getAuthenticationMethod(authType))===null||_authenticationMethod3===void 0?void 0:_authenticationMethod3.credentialFormField)!==null&&_authenticationMethod2!==void 0?_authenticationMethod2:{};Object.keys(registeredCredentialField).forEach(credentialField=>{var _currentCredentialSta;registeredCredentials[credentialField]=(_currentCredentialSta=currentCredentialState[credentialField])!==null&&_currentCredentialSta!==void 0?_currentCredentialSta:registeredCredentialField[credentialField]});return registeredCredentials};const handleDataSourceFetchError=(changeState,notifications,callback)=>{changeState({showError:true});if(callback)callback([]);notifications.add({title:external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.error.fetchDataSources",{defaultMessage:"Failed to fetch data sources"}),text:Object(opensearchDashboardsReact_public_["toMountPoint"])(getReloadButton()),color:"danger"})};const dataSourceOptionGroupLabel=Object(deep_freeze["a"])({opensearchCluster:{id:"opensearchClusterGroupLabel",label:"OpenSearch cluster",isGroupLabel:true}});const[getApplication,setApplication]=Object(public_["createGetterSetter"])("Application");const[getUiSettings,setUiSettings]=Object(public_["createGetterSetter"])("UiSettings");const[getHideLocalCluster,setHideLocalCluster]=Object(public_["createGetterSetter"])("HideLocalCluster");const[getDataSourceSelectionInstance,setDataSourceSelection]=Object(public_["createGetterSetter"])("DataSourceSelectionService");const getDataSourceSelection=()=>{try{return getDataSourceSelectionInstance()}catch(e){return data_source_selection_service["b"]}};const generateComponentId=()=>uuid_default.a.v4();const formatError=(name,message,details)=>({name:name,message:message,body:{attributes:{error:{caused_by:{type:"",reason:detail
1s}}}}});const isPluginInstalled=async(pluginId,notifications,http)=>{try{const response=await http.get("/api/status");const pluginExists=response.status.statuses.some(status=>status.id.includes(pluginId));return pluginExists}catch(error){notifications.toasts.addDanger(`Error checking ${pluginId} Plugin Installation status.`);console.error(error);return false}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"m",(function(){return ASYNC_QUERY_SESSION_ID}));__webpack_require__.d(__webpack_exports__,"l",(function(){return ASYNC_POLLING_INTERVAL}));__webpack_require__.d(__webpack_exports__,"n",(function(){return CATALOG_CACHE_VERSION}));__webpack_require__.d(__webpack_exports__,"c",(function(){return ACCELERATION_DEFUALT_SKIPPING_INDEX_NAME}));__webpack_require__.d(__webpack_exports__,"i",(function(){return ACCELERATION_TIME_INTERVAL}));__webpack_require__.d(__webpack_exports__,"g",(function(){return ACCELERATION_REFRESH_TIME_INTERVAL}));__webpack_require__.d(__webpack_exports__,"a",(function(){return ACCELERATION_ADD_FIELDS_TEXT}));__webpack_require__.d(__webpack_exports__,"e",(function(){return ACCELERATION_INDEX_NAME_REGEX}));__webpack_require__.d(__webpack_exports__,"h",(function(){return ACCELERATION_S3_URL_REGEX}));__webpack_require__.d(__webpack_exports__,"r",(function(){return SPARK_HIVE_TABLE_REGEX}));__webpack_require__.d(__webpack_exports__,"o",(function(){return SANITIZE_QUERY_REGEX}));__webpack_require__.d(__webpack_exports__,"u",(function(){return SPARK_TIMESTAMP_DATATYPE}));__webpack_require__.d(__webpack_exports__,"t",(function(){return SPARK_STRING_DATATYPE}));__webpack_require__.d(__webpack_exports__,"f",(function(){return ACCELERATION_INDEX_TYPES}));__webpack_require__.d(__webpack_exports__,"k",(function(){return ACC_INDEX_TYPE_DOCUMENTATION_URL}));__webpack_require__.d(__webpack_exports__,"j",(function(){return ACC_CHECKPOINT_DOCUMENTATION_URL}));__webpack_require__.d(__webpack_exports__,"d",(function(){return ACCELERATION_INDEX_NAME_INFO}));__webpack_require__.d(__webpack_exports__,"q",(function(){return SKIPPING_INDEX_ACCELERATION_METHODS}));__webpack_require__.d(__webpack_exports__,"b",(function(){return ACCELERATION_AGGREGRATION_FUNCTIONS}));__webpack_require__.d(__webpack_exports__,"s",(function(){return SPARK_PARTITION_INFO}));__webpack_require__.d(__webpack_exports__,"p",(function(){return SECURITY_DASHBOARDS_LOGOUT_URL}));const ASYNC_QUERY_SESSION_ID="async-query-session-id";const DATA_SOURCE_NAME_URL_PARAM_KEY="datasourceName";const DATA_SOURCE_TYPE_URL_PARAM_KEY="datasourceType";const OLLY_QUESTION_URL_PARAM_KEY="olly_q";const INDEX_URL_PARAM_KEY="indexPattern";const DEFAULT_DATA_SOURCE_TYPE="DEFAULT_INDEX_PATTERNS";const DEFAULT_DATA_SOURCE_NAME="Default cluster";const DEFAULT_DATA_SOURCE_OBSERVABILITY_DISPLAY_NAME="OpenSearch";const DEFAULT_DATA_SOURCE_TYPE_NAME="Default Group";let QUERY_LANGUAGE=function(QUERY_LANGUAGE){QUERY_LANGUAGE["PPL"]="PPL";QUERY_LANGUAGE["SQL"]="SQL";QUERY_LANGUAGE["DQL"]="DQL";return QUERY_LANGUAGE}({});let DATA_SOURCE_TYPES=function(DATA_SOURCE_TYPES){DATA_SOURCE_TYPES["DEFAULT_CLUSTER_TYPE"]="DEFAULT_INDEX_PATTERNS";DATA_SOURCE_TYPES["SPARK"]="spark";DATA_SOURCE_TYPES["S3Glue"]="s3glue";return DATA_SOURCE_TYPES}({});const ASYNC_POLLING_INTERVAL=2e3;const CATALOG_CACHE_VERSION="1.0";const ACCELERATION_DEFUALT_SKIPPING_INDEX_NAME="skipping";const ACCELERATION_TIME_INTERVAL=[{text:"millisecond(s)",value:"millisecond"},{text:"second(s)",value:"second"},{text:"minutes(s)",value:"minute"},{text:"hour(s)",value:"hour"},{text:"day(s)",value:"day"},{text:"week(s)",value:"week"}];const ACCELERATION_REFRESH_TIME_INTERVAL=[{text:"minutes(s)",value:"minute"},{text:"hour(s)",value:"hour"},{text:"day(s)",value:"day"},{text:"week(s)",value:"week"}];const ACCELERATION_ADD_FIELDS_TEXT="(add fields here)";const ACCELERATION_INDEX_NAME_REGEX=/^[a-z0-9_]+$/;const ACCELERATION_S3_URL_REGEX=/^(s3|s3a):\/\/[a-zA-Z0-9.\-]+/;const SPARK_HIVE_TABLE_REGEX=/Provider:\s*hive/;const SANITIZE_QUERY_REGEX=/\s+/g;const SPARK_TIMESTAMP_DATATYPE="timestamp";const SPARK_STRING_DATATYPE="string";const ACCELERATION_INDEX_TYPES=[{label:"Skipping Index",value:"skipping"},{label:"Covering Index",value:"covering"},{label:"Materialized View",value:"materialized"}];const ACC_INDEX_TYPE_DOCUMENTATION_URL="https://github.com/opensearch-project/opensearch-spark/blob/main/docs/index.md";const ACC_CHECKPOINT_DOCUMENTATION_URL="https://github.com/opensearch-project/opensearch-spark/blob/main/docs/index.md#create-index-options";const ACCELERATION_INDEX_NAME_INFO=`All OpenSearch acceleration indices have a naming format of pattern: \`prefix_<index name>_suffix\`. They share a common prefix structure, which is \`flint_<data source name>_<database name>_<table name>_\`. Additionally, they may have a suffix that varies based on the index type. \n##### Skipping Index\n- For 'Skipping' indices, a fixed index name 'skipping' is used, and this name cannot be modified by the user. The suffix added to this type is \`_index\`.\n  - An example of a 'Ski
1pping' index name would be: \`flint_mydatasource_mydb_mytable_skipping_index\`.\n##### Covering Index\n- 'Covering' indices allow users to specify their index name. The suffix added to this type is \`_index\`.\n  - For instance, a 'Covering' index name could be: \`flint_mydatasource_mydb_mytable_myindexname_index\`.\n##### Materialized View Index\n- 'Materialized View' indices also enable users to define their index name, but they do not have a suffix.\n  - An example of a 'Materialized View' index name might look like: \`flint_mydatasource_mydb_mytable_myindexname\`.\n##### Note:\n- All user given index names must be in lowercase letters, numbers and underscore. Spaces, commas, and characters -, :, ", *, +, /, , |, ?, #, >, or < are not allowed.  \n  `;const SKIPPING_INDEX_ACCELERATION_METHODS=[{value:"PARTITION",text:"Partition"},{value:"VALUE_SET",text:"Value Set"},{value:"MIN_MAX",text:"Min Max"},{value:"BLOOM_FILTER",text:"Bloom Filter"}];const ACCELERATION_AGGREGRATION_FUNCTIONS=[{label:"window.start"},{label:"count"},{label:"sum"},{label:"avg"},{label:"max"},{label:"min"}];const SPARK_PARTITION_INFO=`# Partition Information`;const OBS_DEFAULT_CLUSTER="observability-default";const OBS_S3_DATA_SOURCE="observability-s3";const S3_DATA_SOURCE_GROUP_DISPLAY_NAME="Amazon S3";const S3_DATA_SOURCE_GROUP_SPARK_DISPLAY_NAME="Spark";const SECURITY_DASHBOARDS_LOGOUT_URL="/logout"},function(module,exports,__webpack_require__){"use strict";var isOldIE=function isOldIE(){var memo;return function memorize(){if(typeof memo==="undefined"){memo=Boolean(window&&document&&document.all&&!window.atob)}return memo}}();var getTarget=function getTarget(){var memo={};return function memorize(target){if(typeof memo[target]==="undefined"){var styleTarget=document.querySelector(target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement){try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}}memo[target]=styleTarget}return memo[target]}}();var stylesInDom=[];function getIndexByIdentifier(identifier){var result=-1;for(var i=0;i<stylesInDom.length;i++){if(stylesInDom[i].identifier===identifier){result=i;break}}return result}function modulesToDom(list,options){var idCountMap={};var identifiers=[];for(var i=0;i<list.length;i++){var item=list[i];var id=options.base?item[0]+options.base:item[0];var count=idCountMap[id]||0;var identifier="".concat(id," ").concat(count);idCountMap[id]=count+1;var index=getIndexByIdentifier(identifier);var obj={css:item[1],media:item[2],sourceMap:item[3]};if(index!==-1){stylesInDom[index].references++;stylesInDom[index].updater(obj)}else{stylesInDom.push({identifier:identifier,updater:addStyle(obj,options),references:1})}identifiers.push(identifier)}return identifiers}function insertStyleElement(options){var style=document.createElement("style");var attributes=options.attributes||{};if(typeof attributes.nonce==="undefined"){var nonce=true?__webpack_require__.nc:undefined;if(nonce){attributes.nonce=nonce}}Object.keys(attributes).forEach((function(key){style.setAttribute(key,attributes[key])}));if(typeof options.insert==="function"){options.insert(style)}else{var target=getTarget(options.insert||"head");if(!target){throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")}target.appendChild(style)}return style}function removeStyleElement(style){if(style.parentNode===null){return false}style.parentNode.removeChild(style)}var replaceText=function replaceText(){var textStore=[];return function replace(index,replacement){textStore[index]=replacement;return textStore.filter(Boolean).join("\n")}}();function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.media?"@media ".concat(obj.media," {").concat(obj.css,"}"):obj.css;if(style.styleSheet){style.styleSheet.cssText=replaceText(index,css)}else{var cssNode=document.createTextNode(css);var childNodes=style.childNodes;if(childNodes[index]){style.removeChild(childNodes[index])}if(childNodes.length){style.insertBefore(cssNode,childNodes[index])}else{style.appendChild(cssNode)}}}function applyToTag(style,options,obj){var css=obj.css;var media=obj.media;var sourceMap=obj.sourceMap;if(media){style.setAttribute("media",media)}else{style.removeAttribute("media")}if(sourceMap&&typeof btoa!=="undefined"){css+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)
1)))," */")}if(style.styleSheet){style.styleSheet.cssText=css}else{while(style.firstChild){style.removeChild(style.firstChild)}style.appendChild(document.createTextNode(css))}}var singleton=null;var singletonCounter=0;function addStyle(obj,options){var style;var update;var remove;if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=insertStyleElement(options));update=applyToSingletonTag.bind(null,style,styleIndex,false);remove=applyToSingletonTag.bind(null,style,styleIndex,true)}else{style=insertStyleElement(options);update=applyToTag.bind(null,style,options);remove=function remove(){removeStyleElement(style)}}update(obj);return function updateStyle(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap){return}update(obj=newObj)}else{remove()}}}module.exports=function(list,options){options=options||{};if(!options.singleton&&typeof options.singleton!=="boolean"){options.singleton=isOldIE()}list=list||[];var lastIdentifiers=modulesToDom(list,options);return function update(newList){newList=newList||[];if(Object.prototype.toString.call(newList)!=="[object Array]"){return}for(var i=0;i<lastIdentifiers.length;i++){var identifier=lastIdentifiers[i];var index=getIndexByIdentifier(identifier);stylesInDom[index].references--}var newLastIdentifiers=modulesToDom(newList,options);for(var _i=0;_i<lastIdentifiers.length;_i++){var _identifier=lastIdentifiers[_i];var _index=getIndexByIdentifier(_identifier);if(stylesInDom[_index].references===0){stylesInDom[_index].updater();stylesInDom.splice(_index,1)}}lastIdentifiers=newLastIdentifiers}}},function(module,exports){module.exports=__osdSharedDeps__.OsdI18n},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"j",(function(){return get}));__webpack_require__.d(__webpack_exports__,"g",(function(){return addBackticksIfNeeded}));__webpack_require__.d(__webpack_exports__,"h",(function(){return combineSchemaAndDatarows}));__webpack_require__.d(__webpack_exports__,"i",(function(){return formatError}));__webpack_require__.d(__webpack_exports__,"e",(function(){return DSL_BASE}));__webpack_require__.d(__webpack_exports__,"f",(function(){return INTEGRATIONS_BASE}));__webpack_require__.d(__webpack_exports__,"d",(function(){return DATACONNECTIONS_BASE}));__webpack_require__.d(__webpack_exports__,"c",(function(){return CONSOLE_PROXY}));__webpack_require__.d(__webpack_exports__,"m",(function(){return queryWorkbenchPluginID}));__webpack_require__.d(__webpack_exports__,"l",(function(){return queryWorkbenchPluginCheck}));__webpack_require__.d(__webpack_exports__,"b",(function(){return ASYNC_QUERY_DATASOURCE_CACHE}));__webpack_require__.d(__webpack_exports__,"a",(function(){return ASYNC_QUERY_ACCELERATIONS_CACHE}));__webpack_require__.d(__webpack_exports__,"k",(function(){return isCatalogCacheFetching}));function get(obj,path,defaultValue){return path.split(".").reduce((acc,part)=>acc&&acc[part],obj)||defaultValue}function addBackticksIfNeeded(input){if(input===undefined){return""}if(input.startsWith("`")&&input.endsWith("`")){return input}return"`"+input+"`"}function combineSchemaAndDatarows(schema,datarows){const combinedData=[];datarows.forEach(row=>{const rowData={};schema.forEach((field,index)=>{rowData[field.name]=row[index]});combinedData.push(rowData)});return combinedData}const formatError=(name,message,details)=>({name:name,message:message,body:{attributes:{error:{caused_by:{type:"",reason:details}}}}});const DIRECT_QUERY_BASE="/api/directquery";const PPL_BASE=`${DIRECT_QUERY_BASE}/ppl`;const PPL_SEARCH="/search";const DSL_BASE=`${DIRECT_QUERY_BASE}/dsl`;const DSL_SEARCH="/search";const DSL_CAT="/cat.indices";const DSL_MAPPING="/indices.getFieldMapping";const DSL_SETTINGS="/indices.getFieldSettings";const DSM_BASE="/api/datasourcemanagement";const INTEGRATIONS_BASE="/api/integrations";const JOBS_BASE="/query/jobs";const DATACONNECTIONS_BASE=`${DIRECT_QUERY_BASE}/dataconnections`;const EDIT="/edit";const DATACONNECTIONS_UPDATE_STATUS="/status";const SECURITY_ROLES="/api/v1/configuration/roles";const EVENT_ANALYTICS="/event_analytics";const SAVED_OBJECTS="/saved_objects";const SAVED_QUERY="/query";
1const SAVED_VISUALIZATION="/vis";const CONSOLE_PROXY="/api/console/proxy";const SECURITY_PLUGIN_ACCOUNT_API="/api/v1/configuration/account";const PPL_ENDPOINT="/_plugins/_ppl";const SQL_ENDPOINT="/_plugins/_sql";const DSL_ENDPOINT="/_plugins/_dsl";const DATACONNECTIONS_ENDPOINT="/_plugins/_query/_datasources";const JOBS_ENDPOINT_BASE="/_plugins/_async_query";const JOB_RESULT_ENDPOINT="/result";const observabilityID="observability-logs";const observabilityTitle="Observability";const observabilityPluginOrder=1500;const observabilityApplicationsID="observability-applications";const observabilityApplicationsTitle="Applications";const observabilityApplicationsPluginOrder=5090;const observabilityLogsID="observability-logs";const observabilityLogsTitle="Logs";const observabilityLogsPluginOrder=5091;const observabilityMetricsID="observability-metrics";const observabilityMetricsTitle="Metrics";const observabilityMetricsPluginOrder=5092;const observabilityTracesID="observability-traces";const observabilityTracesTitle="Traces";const observabilityTracesPluginOrder=5093;const observabilityNotebookID="observability-notebooks";const observabilityNotebookTitle="Notebooks";const observabilityNotebookPluginOrder=5094;const observabilityPanelsID="observability-dashboards";const observabilityPanelsTitle="Dashboards";const observabilityPanelsPluginOrder=5095;const observabilityIntegrationsID="integrations";const observabilityIntegrationsTitle="Integrations";const observabilityIntegrationsPluginOrder=9020;const observabilityDataConnectionsID="datasources";const observabilityDataConnectionsTitle="Data sources";const observabilityDataConnectionsPluginOrder=9030;const queryWorkbenchPluginID="opensearch-query-workbench";const queryWorkbenchPluginCheck="plugin:queryWorkbenchDashboards";const BASE_OBSERVABILITY_URI="/_plugins/_observability";const BASE_DATACONNECTIONS_URI="/_plugins/_query/_datasources";const OPENSEARCH_PANELS_API={OBJECT:`${BASE_OBSERVABILITY_URI}/object`};const OPENSEARCH_DATACONNECTIONS_API={DATACONNECTION:`${BASE_DATACONNECTIONS_URI}`};const SAVED_OBJECT="/object";const S3_DATA_SOURCE_TYPE="s3glue";const ASYNC_QUERY_SESSION_ID="async-query-session-id";const ASYNC_QUERY_DATASOURCE_CACHE="async-query-catalog-cache";const ASYNC_QUERY_ACCELERATIONS_CACHE="async-query-acclerations-cache";const DIRECT_DUMMY_QUERY="select 1";let DirectQueryLoadingStatus=function(DirectQueryLoadingStatus){DirectQueryLoadingStatus["SUCCESS"]="success";DirectQueryLoadingStatus["FAILED"]="failed";DirectQueryLoadingStatus["RUNNING"]="running";DirectQueryLoadingStatus["SCHEDULED"]="scheduled";DirectQueryLoadingStatus["CANCELED"]="canceled";DirectQueryLoadingStatus["WAITING"]="waiting";DirectQueryLoadingStatus["INITIAL"]="initial";return DirectQueryLoadingStatus}({});const catalogCacheFetchingStatus=[DirectQueryLoadingStatus.RUNNING,DirectQueryLoadingStatus.WAITING,DirectQueryLoadingStatus.SCHEDULED];const isCatalogCacheFetching=function(){for(var _len=arguments.length,statuses=new Array(_len),_key=0;_key<_len;_key++){statuses[_key]=arguments[_key]}return statuses.some(status=>catalogCacheFetchingStatus.includes(status))}},function(module,exports,__webpack_require__){"use strict";if(true){module.exports=__webpack_require__(217)}else{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return CatalogCacheManager}));var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5);var _utils_shared__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(8);var _types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3);function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class CatalogCacheManager{static saveDataSourceCache(cacheData){sessionStorage.setItem(this.datasourceCacheKey,JSON.stringify(cacheData))}static getDataSourceCache(){const catalogData=sessionStorage.getItem(this.datasourceCacheKey);if(catalogData){return JSON.parse(catalogData)}else{const defaultCacheObject={version:_constants__WEBPACK_IMPORTED_MODULE_0__["n"],dataSources:[]};this.saveDataSourceCache(defaultCacheObject);return defaultCacheObject}}static saveAccelerationsCache(cacheData){sessionStorage.setItem(this.accelerationsCacheKey,JSON.stringify(cacheData))}static getAccelerationsCache(){const accelerationCacheData=sessionStorage.getItem(this.accelerationsCacheKey);if(accelerationCacheData){return JSON.parse(accelerationCacheData)}else{const defaultCacheObject={version:_constants__WEBPACK_IMPORTED_MODULE_0__["n"],dataSources:[]};this.saveAccelerationsCache(defaultCacheObject);return defaultCacheObject}}static addOrUpdateAccelerationsByDataSource(dataSource,dataSourceMDSId){let index=-1;const accCacheData=this.getAccelerationsCache();if(dataSourceMDSId){index=accCacheData.dataSources.findIndex(ds=>ds.name===dataSource.name&&ds.dataSourceMDSId===dataSourceMDSId)}else{index=accCacheData.dataSources.findIndex(ds=>ds.name===dataSource.name)}
1if(index!==-1){accCacheData.dataSources[index]=dataSource}else{accCacheData.dataSources.push(dataSource)}this.saveAccelerationsCache(accCacheData)}static getOrCreateAccelerationsByDataSource(dataSourceName,dataSourceMDSId){const accCacheData=this.getAccelerationsCache();let cachedDataSource;if(dataSourceMDSId){cachedDataSource=accCacheData.dataSources.find(ds=>ds.name===dataSourceName&&ds.dataSourceMDSId===dataSourceMDSId)}else{cachedDataSource=accCacheData.dataSources.find(ds=>ds.name===dataSourceName)}if(cachedDataSource)return cachedDataSource;else{let defaultDataSourceObject={name:dataSourceName,lastUpdated:"",status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Empty,accelerations:[]};if(dataSourceMDSId!==""&&dataSourceMDSId!==undefined){defaultDataSourceObject={...defaultDataSourceObject,dataSourceMDSId:dataSourceMDSId}}this.addOrUpdateAccelerationsByDataSource(defaultDataSourceObject,dataSourceMDSId);return defaultDataSourceObject}}static addOrUpdateDataSource(dataSource,dataSourceMDSId){const cacheData=this.getDataSourceCache();let index;if(dataSourceMDSId){index=cacheData.dataSources.findIndex(ds=>ds.name===dataSource.name&&ds.dataSourceMDSId===dataSourceMDSId)}index=cacheData.dataSources.findIndex(ds=>ds.name===dataSource.name);if(index!==-1){cacheData.dataSources[index]=dataSource}else{cacheData.dataSources.push(dataSource)}this.saveDataSourceCache(cacheData)}static getOrCreateDataSource(dataSourceName,dataSourceMDSId){let cachedDataSource;if(dataSourceMDSId){cachedDataSource=this.getDataSourceCache().dataSources.find(ds=>ds.dataSourceMDSId===dataSourceMDSId&&ds.name===dataSourceName)}else{cachedDataSource=this.getDataSourceCache().dataSources.find(ds=>ds.name===dataSourceName)}if(cachedDataSource){return cachedDataSource}else{let defaultDataSourceObject={name:dataSourceName,lastUpdated:"",status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Empty,databases:[]};if(dataSourceMDSId!==""&&dataSourceMDSId!==undefined){defaultDataSourceObject={...defaultDataSourceObject,dataSourceMDSId:dataSourceMDSId}}this.addOrUpdateDataSource(defaultDataSourceObject,dataSourceMDSId);return defaultDataSourceObject}}static getDatabase(dataSourceName,databaseName,dataSourceMDSId){let cachedDataSource;if(dataSourceMDSId){cachedDataSource=this.getDataSourceCache().dataSources.find(ds=>ds.dataSourceMDSId===dataSourceMDSId&&ds.name===dataSourceName)}else{cachedDataSource=this.getDataSourceCache().dataSources.find(ds=>ds.name===dataSourceName)}if(!cachedDataSource){throw new Error("DataSource not found exception: "+dataSourceName)}const cachedDatabase=cachedDataSource.databases.find(db=>db.name===databaseName);if(!cachedDatabase){throw new Error("Database not found exception: "+databaseName)}return cachedDatabase}static getTable(dataSourceName,databaseName,tableName,dataSourceMDSId){const cachedDatabase=this.getDatabase(dataSourceName,databaseName,dataSourceMDSId);const cachedTable=cachedDatabase.tables.find(table=>table.name===tableName);if(!cachedTable){throw new Error("Table not found exception: "+tableName)}return cachedTable}static updateDatabase(dataSourceName,database,dataSourceMDSId){let cachedDataSource;if(dataSourceMDSId){cachedDataSource=this.getDataSourceCache().dataSources.find(ds=>ds.dataSourceMDSId===dataSourceMDSId&&ds.name===dataSourceName)}else{cachedDataSource=this.getDataSourceCache().dataSources.find(ds=>ds.name===dataSourceName)}if(!cachedDataSource){throw new Error("DataSource not found exception: "+dataSourceName)}const index=cachedDataSource.databases.findIndex(db=>db.name===database.name);if(index!==-1){cachedDataSource.databases[index]=database;this.addOrUpdateDataSource(cachedDataSource,dataSourceMDSId)}else{throw new Error("Database not found exception: "+database.name)}}static clearDataSourceCache(){sessionStorage.removeItem(this.datasourceCacheKey)}static clearAccelerationsCache(){sessionStorage.removeItem(this.accelerationsCacheKey)}}_defineProperty(CatalogCacheManager,"datasourceCacheKey",_utils_shared__WEBPACK_IMPORTED_MODULE_1__["b"]);_defineProperty(CatalogCacheManager,"accelerationsCacheKey",_utils_shared__WEBPACK_IMPORTED_MODULE_1__["a"])},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);
1var ns=__osdBundles__.get("plugin/dataSource/common/data_sources");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"d",(function(){return ACC_PANEL_TITLE}));__webpack_require__.d(__webpack_exports__,"c",(function(){return ACC_PANEL_DESC}));__webpack_require__.d(__webpack_exports__,"b",(function(){return ACC_LOADING_MSG}));__webpack_require__.d(__webpack_exports__,"a",(function(){return ACC_DELETE_MSG}));__webpack_require__.d(__webpack_exports__,"f",(function(){return ACC_VACUUM_MSG}));__webpack_require__.d(__webpack_exports__,"e",(function(){return ACC_SYNC_MSG}));__webpack_require__.d(__webpack_exports__,"l",(function(){return getAccelerationName}));__webpack_require__.d(__webpack_exports__,"k",(function(){return getAccelerationFullPath}));__webpack_require__.d(__webpack_exports__,"j",(function(){return generateAccelerationOperationQuery}));__webpack_require__.d(__webpack_exports__,"i",(function(){return CreateAccelerationFlyoutButton}));__webpack_require__.d(__webpack_exports__,"h",(function(){return AccelerationStatus}));__webpack_require__.d(__webpack_exports__,"g",(function(){return AccelerationHealth}));__webpack_require__.d(__webpack_exports__,"m",(function(){return onDiscoverIconClick}));var _elastic_eui__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(1);var _elastic_eui__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_elastic_eui__WEBPACK_IMPORTED_MODULE_0__);var react__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);var _associated_object_management_utils_associated_objects_tab_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(28);const ACC_PANEL_TITLE="Accelerations";const ACC_PANEL_DESC="Accelerations optimize query performance by indexing external data into OpenSearch.";const ACC_LOADING_MSG="Loading/Refreshing accelerations...";const ACC_DELETE_MSG=name=>`Are you sure you want to delete ${name}? Any accelerations associated with this data source will also be deleted.This action cannot be undone.`;const ACC_VACUUM_MSG="Vacuuming will remove the actual data from the disk since the associated index will be removed from the cluster. To confirm your action, type the name of the acceleration below.";const ACC_SYNC_MSG="Syncing data may require querying all data. Do you want to continue?";const getAccelerationName=acceleration=>acceleration.indexName||"skipping_index";const getCapitalizedStatusColumnContent=status=>status.toLowerCase().split(" ").map(word=>word.charAt(0).toUpperCase()+word.slice(1)).join(" ");const getAccelerationFullPath=(acceleration,dataSource)=>{switch(acceleration.type){case"skipping":return`${dataSource}.${acceleration.database}.${acceleration.table}`;case"materialized":return`${dataSource}.${acceleration.database}`;case"covering":return`${dataSource}.${acceleration.database}.${acceleration.table}`;default:return"Unknown acceleration type"}};const generateAccelerationOperationQuery=(acceleration,dataSource,operationType)=>{let operationQuery;switch(operationType){case"delete":operationQuery=`DROP`;break;case"vacuum":operationQuery=`VACUUM`;break;case"sync":operationQuery=`REFRESH`;break;default:throw new Error(`Unsupported operation type: ${operationType}`)}switch(acceleration.type){case"skipping":return`${operationQuery} SKIPPING INDEX ON ${dataSource}.${acceleration.database}.${acceleration.table}`;case"covering":if(!acceleration.indexName){throw new Error("Index name is required for 'covering' acceleration type.")}return`${operationQuery} INDEX ${acceleration.indexName} ON ${dataSource}.${acceleration.database}.${acceleration.table}`;case"materialized":return`${operationQuery} MATERIALIZED VIEW ${dataSource}.${acceleration.database}.${acceleration.indexName}`;default:throw new Error(`Unsupported acceleration type: ${acceleration.type}`)}};const CreateAccelerationFlyoutButton=_ref=>{let{dataSourceName:dataSourceName,renderCreateAccelerationFlyout:renderCreateAccelerationFlyout,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId}=_ref;return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_0__["EuiButton"],{onClick:()=>renderCreateAccelerationFlyout({dataSourceName:dataSourceName,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId}),fill:true},"Create acceleration")};const AccelerationStatus=_ref2=>{let{status:status}=_ref2;const capitalizedStatusColumn=getCapitalizedStatusColumnContent(status);let color;switch(capitalizedStatusColumn){case"Active":color="success";break;case"Refreshing":color="warning";break;case"Deleted":color="danger";break;default:color="subdued"}return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_0__["EuiHealth"],{color:color},capitalizedStatusColumn)};const AccelerationHealth=_ref3=>{let{health:health}=_ref3;let label=health;let color;switch(health){case"green":label="Green";color="success";break;case"red":label="Red";color="danger";break;case"yellow":label="Yellow";color="warning";break;default:label="Invalid";color="danger"}return react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_0__["EuiHealth"],{color:color},label)};const onDiscoverIconClick=(acceleration,dataSourceName,dataSourceMDSId,application)=>
1{if(acceleration.type===undefined)return;if(acceleration.type==="skipping"){Object(_associated_object_management_utils_associated_objects_tab_utils__WEBPACK_IMPORTED_MODULE_2__["i"])(dataSourceName,dataSourceMDSId,acceleration.database,acceleration.table,application)}else{Object(_associated_object_management_utils_associated_objects_tab_utils__WEBPACK_IMPORTED_MODULE_2__["h"])(acceleration.flintIndexName,dataSourceMDSId,application)}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return DataSourceConnectionType}));__webpack_require__.d(__webpack_exports__,"f",(function(){return defaultAuthType}));__webpack_require__.d(__webpack_exports__,"g",(function(){return noAuthCredentialAuthMethod}));__webpack_require__.d(__webpack_exports__,"j",(function(){return usernamePasswordAuthMethod}));__webpack_require__.d(__webpack_exports__,"i",(function(){return sigV4ServiceOptions}));__webpack_require__.d(__webpack_exports__,"h",(function(){return sigV4AuthMethod}));var _osd_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7);var _osd_i18n__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_osd_i18n__WEBPACK_IMPORTED_MODULE_0__);var _data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11);var _data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__);__webpack_require__.d(__webpack_exports__,"a",(function(){return _data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"]}));__webpack_require__.d(__webpack_exports__,"c",(function(){return _data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["DataSourceError"]}));let DataSourceConnectionType=function(DataSourceConnectionType){DataSourceConnectionType[DataSourceConnectionType["OpenSearchConnection"]=0]="OpenSearchConnection";DataSourceConnectionType[DataSourceConnectionType["DirectQueryConnection"]=1]="DirectQueryConnection";return DataSourceConnectionType}({});const defaultAuthType=_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].UsernamePasswordType;const noAuthCredentialOption={value:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].NoAuth,inputDisplay:_osd_i18n__WEBPACK_IMPORTED_MODULE_0__["i18n"].translate("dataSourcesManagement.credentialSourceOptions.NoAuthentication",{defaultMessage:"No authentication"})};const noAuthCredentialField={};const noAuthCredentialAuthMethod={name:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].NoAuth,credentialSourceOption:noAuthCredentialOption,credentialFormField:noAuthCredentialField};const usernamePasswordCredentialOption={value:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].UsernamePasswordType,inputDisplay:_osd_i18n__WEBPACK_IMPORTED_MODULE_0__["i18n"].translate("dataSourcesManagement.credentialSourceOptions.UsernamePassword",{defaultMessage:"Username & Password"})};const usernamePasswordCredentialField={username:"",password:""};const usernamePasswordAuthMethod={name:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].UsernamePasswordType,credentialSourceOption:usernamePasswordCredentialOption,credentialFormField:usernamePasswordCredentialField};const sigV4CredentialOption={value:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].SigV4,inputDisplay:_osd_i18n__WEBPACK_IMPORTED_MODULE_0__["i18n"].translate("dataSourcesManagement.credentialSourceOptions.AwsSigV4",{defaultMessage:"AWS SigV4"})};const sigV4ServiceOptions=[{value:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["SigV4ServiceName"].OpenSearch,inputDisplay:_osd_i18n__WEBPACK_IMPORTED_MODULE_0__["i18n"].translate("dataSourcesManagement.SigV4ServiceOptions.OpenSearch",{defaultMessage:"Amazon OpenSearch Service"})},{value:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["SigV4ServiceName"].OpenSearchServerless,inputDisplay:_osd_i18n__WEBPACK_IMPORTED_MODULE_0__["i18n"].translate("dataSourcesManagement.SigV4ServiceOptions.OpenSearchServerless",{defaultMessage:"Amazon OpenSearch Serverless"})}];const sigV4CredentialField={region:"",accessKey:"",secretKey:"",service:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["SigV4ServiceName"].OpenSearch};const sigV4AuthMethod={name:_data_source_common_data_sources__WEBPACK_IMPORTED_MODULE_1__["AuthType"].SigV4,credentialSourceOption:sigV4CredentialOption,credentialFormField:sigV4CredentialField};const credentialSourceOptions=[noAuthCredentialOption,usernamePasswordCredentialOption,sigV4CredentialOption]},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return DataSourceComponentType}));const DataSourceComponentType={DataSourceSelectable:"DataSourceSelectable",DataSourceView:"DataSourceView",DataSourceAggregatedView:"DataSourceAggregatedView",DataSourceMultiSelectable:"DataSourceMultiSelectable"}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return LocalCluster}));__webpack_require__.d(__webpack_exports__,"e",(function(){return OPENSEARCH_DOCUMENTATION_URL}));__webpack_require__.d(__webpack_exports__,"d",(function(){return OPENSEARCH_ACC_DOCUMENTATION_URL}));__webpack_require__.d(__webpack_exports__,"b",(function(){return DatasourceTypeToDisplayName}));var _osd_i18n__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(7);var _osd_i18n__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_osd_i18n__WEBPACK_IMPORTED_MODULE_0__);var _common__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(36);__webpack_require__.d(__webpack_exports__,"a",(function(){return _common__WEBPACK_IMPORTED_MODULE_1__["a"]}));
1const LocalCluster={label:_osd_i18n__WEBPACK_IMPORTED_MODULE_0__["i18n"].translate("dataSourcesManagement.localCluster",{defaultMessage:"Local cluster"}),id:""};const OPENSEARCH_DOCUMENTATION_URL="https://opensearch.org/docs/latest/dashboards/management/data-sources/";const OPENSEARCH_S3_DOCUMENTATION_URL="https://opensearch.org/docs/latest/dashboards/management/S3-data-source/";const OPENSEARCH_ACC_DOCUMENTATION_URL="https://opensearch.org/docs/latest/dashboards/management/accelerate-external-data/";const QUERY_RESTRICTED="query-restricted";const QUERY_ALL="query-all";const DatasourceTypeToDisplayName={PROMETHEUS:"Prometheus",S3GLUE:"Amazon S3"};const PrometheusURL="Prometheus";const AmazonS3URL="AmazonS3AWSGlue";const UrlToDatasourceType={[PrometheusURL]:"PROMETHEUS",[AmazonS3URL]:"S3GLUE"}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/opensearchDashboardsReact/public");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports){var isArray=Array.isArray;module.exports=isArray},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"d",(function(){return getRenderAccelerationDetailsFlyout}));__webpack_require__.d(__webpack_exports__,"f",(function(){return getRenderCreateAccelerationFlyout}));__webpack_require__.d(__webpack_exports__,"e",(function(){return getRenderAssociatedObjectsDetailsFlyout}));__webpack_require__.d(__webpack_exports__,"a",(function(){return DSM_APP_ID}));__webpack_require__.d(__webpack_exports__,"b",(function(){return plugin_DataSourceManagementPlugin}));var external_osdSharedDeps_React_=__webpack_require__(0);var external_osdSharedDeps_React_default=__webpack_require__.n(external_osdSharedDeps_React_);var external_osdSharedDeps_OsdI18n_=__webpack_require__(7);var public_=__webpack_require__(58);var common=__webpack_require__(36);var data_source_selector=__webpack_require__(25);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function createDataSourceSelector(uiSettings,dataSourcePluginSetup){const{hideLocalCluster:hideLocalCluster}=dataSourcePluginSetup;return props=>external_osdSharedDeps_React_default.a.createElement(data_source_selector["b"],_extends({},props,{uiSettings:uiSettings,hideLocalCluster:hideLocalCluster}))}var external_osdSharedDeps_ElasticEui_=__webpack_require__(1);var utils=__webpack_require__(4);function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class data_source_column_DataSourceColumn{constructor(savedObjectPromise,useUpdatedUX){this.savedObjectPromise=savedObjectPromise;this.useUpdatedUX=useUpdatedUX;_defineProperty(this,"id","data_source");_defineProperty(this,"data",void 0);_defineProperty(this,"euiColumn",{field:"referenceId",name:external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.dataSourceColumn",{defaultMessage:"Data Source Connection"}),render:referenceId=>{var _this$data;if(!referenceId){return null}const dataSource=(_this$data=this.data)===null||_this$data===void 0?void 0:_this$data.get(referenceId);if(!dataSource){return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiBadge"],{color:"danger"},"Deleted")}const{title:title,id:id}=dataSource;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{onClick:()=>Object(utils["getApplication"])().navigateToApp("management",{path:`opensearch-dashboards/${DSM_APP_ID}/${encodeURIComponent(id)}`}
1),style:this.useUpdatedUX?{fontWeight:"normal"}:{}},title)}});_defineProperty(this,"loadData",async()=>{const savedObject=await this.savedObjectPromise;return Object(utils["getDataSources"])(savedObject.client).then(dataSources=>{this.data=dataSources===null||dataSources===void 0?void 0:dataSources.reduce((map,dataSource)=>map.set(dataSource.id,dataSource),new Map);return this.data})})}}var deep_freeze=__webpack_require__(318);function authentication_methods_registry_defineProperty(e,r,t){return(r=authentication_methods_registry_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function authentication_methods_registry_toPropertyKey(t){var i=authentication_methods_registry_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function authentication_methods_registry_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class authentication_methods_registry_AuthenticationMethodRegistry{constructor(){authentication_methods_registry_defineProperty(this,"authMethods",new Map)}registerAuthenticationMethod(method){if(this.authMethods.has(method.name)){throw new Error(`Authentication method '${method.name}' is already registered`)}this.authMethods.set(method.name,Object(deep_freeze["a"])(method))}getAllAuthenticationMethods(){return[...this.authMethods.values()]}getAuthenticationMethod(name){return this.authMethods.get(name)}}var types=__webpack_require__(13);var create_data_source_menu=__webpack_require__(43);var data_source_selection_service=__webpack_require__(29);var constants=__webpack_require__(5);var cache_manager=__webpack_require__(10);function catalogRequestIntercept(){return fetchOptions=>{if(fetchOptions.path.includes(constants["p"])){cache_manager["a"].clearDataSourceCache();cache_manager["a"].clearAccelerationsCache()}}}var opensearchDashboardsUtils_public_=__webpack_require__(24);var opensearchDashboardsReact_public_=__webpack_require__(16);var acceleration_action_overlay=__webpack_require__(66);var acceleration_operation=__webpack_require__(67);var acceleration_utils=__webpack_require__(12);const AccelerationDetailsTab=_ref=>{var _mappings$data,_mappings$data2,_mappings$data$accele,_mappings$data3,_settings$settings,_mappings$data4,_mappings$data5,_indexInfo$data$,_indexInfo$data$2;let{acceleration:acceleration,settings:settings,mappings:mappings,indexInfo:indexInfo,dataSourceName:dataSourceName,resetFlyout:resetFlyout,application:application,featureFlagStatus:featureFlagStatus,dataSourceMDSId:dataSourceMDSId}=_ref;const isSkippingIndex=(mappings===null||mappings===void 0||(_mappings$data=mappings.data)===null||_mappings$data===void 0||(_mappings$data=_mappings$data[acceleration.flintIndexName])===null||_mappings$data===void 0||(_mappings$data=_mappings$data.mappings)===null||_mappings$data===void 0||(_mappings$data=_mappings$data._meta)===null||_mappings$data===void 0?void 0:_mappings$data.kind)==="skipping";const refreshIntervalDescription=acceleration.autoRefresh?"Auto refresh":"Manual";const showRefreshTime=acceleration.autoRefresh||(mappings===null||mappings===void 0||(_mappings$data2=mappings.data)===null||_mappings$data2===void 0||(_mappings$data2=_mappings$data2[acceleration.flintIndexName])===null||_mappings$data2===void 0||(_mappings$data2=_mappings$data2.mappings)===null||_mappings$data2===void 0||(_mappings$data2=_mappings$data2._meta)===null||_mappings$data2===void 0?void 0:_mappings$data2.options.incremental_refresh);const refreshTime=showRefreshTime?(_mappings$data$accele=mappings===null||mappings===void 0||(_mappings$data3=mappings.data)===null||_mappings$data3===void 0||(_mappings$data3=_mappings$data3[acceleration.flintIndexName])===null||_mappings$data3===void 0||(_mappings$data3=_mappings$data3.mappings)===null||_mappings$data3===void 0||(_mappings$data3=_mappings$data3._meta)===null||_mappings$data3===void 0?void 0:_mappings$data3.options.refresh_interval)!==null&&_mappings$data$accele!==void 0?_mappings$data$accele:"-":"-";const creationDate=new Date(parseInt(settings===null||settings===void 0||(_settings$settings=settings.settings)===null||_settings$settings===void 0||(_settings$settings=_settings$settings.index)===null||_settings$settings===void 0?void 0:_settings$settings.creation_date,10)).toLocaleStr
1ing();const checkpointName=mappings===null||mappings===void 0||(_mappings$data4=mappings.data)===null||_mappings$data4===void 0||(_mappings$data4=_mappings$data4[acceleration.flintIndexName])===null||_mappings$data4===void 0||(_mappings$data4=_mappings$data4.mappings)===null||_mappings$data4===void 0||(_mappings$data4=_mappings$data4._meta)===null||_mappings$data4===void 0||(_mappings$data4=_mappings$data4.options)===null||_mappings$data4===void 0?void 0:_mappings$data4.checkpoint_location;const DetailComponent=_ref2=>{let{title:title,description:description}=_ref2;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionList"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListTitle"],null,title),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListDescription"],null,description)))};const TitleComponent=_ref3=>{let{title:title}=_ref3;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiTitle"],{size:"s"},external_osdSharedDeps_React_default.a.createElement("h4",null,title)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiHorizontalRule"],{margin:"s"}))};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"row"},external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Status",description:external_osdSharedDeps_React_default.a.createElement(acceleration_utils["h"],{status:acceleration.status})}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Acceleration Type",description:mappings===null||mappings===void 0||(_mappings$data5=mappings.data)===null||_mappings$data5===void 0||(_mappings$data5=_mappings$data5[acceleration.flintIndexName])===null||_mappings$data5===void 0||(_mappings$data5=_mappings$data5.mappings)===null||_mappings$data5===void 0||(_mappings$data5=_mappings$data5._meta)===null||_mappings$data5===void 0?void 0:_mappings$data5.kind}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Creation Date",description:creationDate})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(TitleComponent,{title:"Data source details"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"row"},external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Data source connection",description:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{onClick:()=>{const path=featureFlagStatus&&dataSourceMDSId?`/opensearch-dashboards/dataSources/manage/${dataSourceName}?dataSourceMDSId=${dataSourceMDSId}`:`/opensearch-dashboards/dataSources/manage/${dataSourceName}`;application.navigateToApp("management",{path:path,replace:true});resetFlyout()}},dataSourceName)}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Database",description:acceleration.database}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Table",description:acceleration.table||"-"})),!isSkippingIndex&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(TitleComponent,{title:"Index details"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Index name",description:indexInfo===null||indexInfo===void 0||(_indexInfo$data$=indexInfo.data[0])===null||_indexInfo$data$===void 0?void 0:_indexInfo$data$.index}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Health",description:external_osdSharedDeps_React_default.a.createElement(acceleration_utils["g"],{health:indexInfo===null||indexInfo===void 0||(_indexInfo$data$2=indexInfo.data[0])===null||_indexInfo$data$2===void 0?void 0:_indexInfo$data$2.health})}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(TitleComponent,{title:"Refresh Details"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"row"},external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Refresh type",description:refreshIntervalDescription}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Refresh time",description:refreshTime}),checkpointName&&external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Checkpoint location",description:checkpointName})))};const AccelerationSchemaTab=_ref=>{var _indexInfo$data$,_mappings$data$indexN,_mappings$data$indexN2;let{mappings:mappings,indexInfo:indexInfo}=_ref;const indexName=(_indexInfo$data$=indexInfo.data[0])===null||_indexInfo$data$===void 0?void 0:_indexInfo$data$.index;const indexData=(_mappings$data$indexN=mappings.data[indexName])===null||_mappings$data$indexN===void 0||(_mappings$data$indexN=_mappings$data$indexN.mappings._meta)===null||_mappings$data$indexN===void 0?void 0:_mappings$data$indexN.indexedColumns;const indexType=(_mappings$data$indexN2=mappings.data[indexName])===null||_mappings$data$indexN2===void 0||(_mappings$data$indexN2=_mappings$data$indexN2.mappings._meta)===null||_mappings$data$indexN2===void 0?void 0:_mappings$data$indexN2.kind;const isSkippingIndex=indexType==="skipping";const items=(indexData===null||indexData===void 0?void 0:indexData.map(column=>({columns_name:column.columnName,data_type:column.columnType,acceleration_type:column.kind})))||[];const columns=[{field:"columns_name",name:"Column name"},{field:"data_type",name:"Data type"}];
1if(isSkippingIndex){columns.push({field:"acceleration_type",name:"Acceleration index type"})}return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiInMemoryTable"],{items:items,columns:columns}))};var shared=__webpack_require__(8);const fetchFields=async(http,index,featureFlagStatus,dataSourceMDSId)=>{const endpoint=featureFlagStatus&&dataSourceMDSId?`${shared["e"]}/indices.getFieldMapping/dataSourceMDSId=${dataSourceMDSId}`:`${shared["e"]}/indices.getFieldMapping`;return http.get(endpoint,{query:{index:index}}).then(result=>result)};const fetchSettings=async(http,index,featureFlagStatus,dataSourceMDSId)=>{const endpoint=featureFlagStatus&&dataSourceMDSId?`${shared["e"]}/indices.getFieldSettings/dataSourceMDSId=${dataSourceMDSId}`:`${shared["e"]}/indices.getFieldSettings`;return http.get(endpoint,{query:{index:index}}).then(result=>result)};const fetchIndices=async function(http){let index=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";let featureFlagStatus=arguments.length>2?arguments[2]:undefined;let dataSourceMDSId=arguments.length>3?arguments[3]:undefined;const endpoint=featureFlagStatus&&dataSourceMDSId?`${shared["e"]}/cat.indices/dataSourceMDSId=${dataSourceMDSId}`:`${shared["e"]}/cat.indices`;return http.get(endpoint,{query:{format:"json",index:index}}).then(result=>result)};const handleDetailsFetchingPromise=(promise,action)=>promise.then(data=>({status:"fulfilled",action:action,data:data})).catch(error=>({status:"rejected",action:action,error:error}));const AccelerationDetailsFlyout=props=>{const{dataSourceName:dataSourceName,acceleration:acceleration,resetFlyout:resetFlyout,handleRefresh:handleRefresh,http:http,notifications:notifications,featureFlagStatus:featureFlagStatus,dataSourceMDSId:dataSourceMDSId,application:application}=props;const{flintIndexName:flintIndexName}=acceleration;const[selectedTab,setSelectedTab]=Object(external_osdSharedDeps_React_["useState"])("details");const tabsMap={details:AccelerationDetailsTab,schema:AccelerationSchemaTab};const[operationType,setOperationType]=Object(external_osdSharedDeps_React_["useState"])(null);const[showConfirmationOverlay,setShowConfirmationOverlay]=Object(external_osdSharedDeps_React_["useState"])(false);const{performOperation:performOperation,operationSuccess:operationSuccess}=Object(acceleration_operation["a"])(props.dataSourceName,http,notifications,dataSourceMDSId);const displayedIndex=Object(acceleration_utils["l"])(acceleration);const onConfirmOperation=()=>{if(operationType&&props.acceleration){performOperation(props.acceleration,operationType,featureFlagStatus,dataSourceMDSId);setShowConfirmationOverlay(false)}};const onSyncIconClickHandler=()=>{setOperationType("sync");setShowConfirmationOverlay(true)};const onDeleteIconClickHandler=()=>{setOperationType("delete");setShowConfirmationOverlay(true)};const onVacuumIconClickHandler=()=>{setOperationType("vacuum");setShowConfirmationOverlay(true)};const[settings,setSettings]=Object(external_osdSharedDeps_React_["useState"])();const[mappings,setMappings]=Object(external_osdSharedDeps_React_["useState"])();const[indexInfo,setIndexInfo]=Object(external_osdSharedDeps_React_["useState"])();const updateMapping=result=>{setMappings(result)};const updateSetting=(result,slectedIndex)=>{setSettings(result.data[slectedIndex])};const updateIndexInfo=result=>{setIndexInfo(result)};const getAccDetail=selectedIndex=>{Promise.all([handleDetailsFetchingPromise(fetchFields(http,selectedIndex,featureFlagStatus,dataSourceMDSId),"getMappings"),handleDetailsFetchingPromise(fetchSettings(http,selectedIndex,featureFlagStatus,dataSourceMDSId),"getSettings"),handleDetailsFetchingPromise(fetchIndices(http,selectedIndex,featureFlagStatus,dataSourceMDSId),"getIndexInfo")]).then(results=>{updateMapping(results[0]);updateSetting(results[1],selectedIndex);updateIndexInfo(results[2])}).catch(error=>{console.error("Error in async calls:",error)})};Object(external_osdSharedDeps_React_["useEffect"])(()=>
1{if(operationSuccess){resetFlyout();handleRefresh===null||handleRefresh===void 0||handleRefresh();setOperationType(null);setShowConfirmationOverlay(false)}},[operationSuccess,resetFlyout,handleRefresh]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(flintIndexName!==undefined&&flintIndexName.trim().length>0){getAccDetail(flintIndexName)}},[flintIndexName]);const DiscoverIcon=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{isDisabled:(()=>{try{return!Object(utils["getUiSettings"])().get("query:enhancements:enabled")}catch(e){return false}})(),onClick:()=>{Object(acceleration_utils["m"])(acceleration,dataSourceName,dataSourceMDSId,application);resetFlyout()}},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"discoverApp",size:"m"}));const SyncIcon=_ref=>{let{autoRefresh:autoRefresh,status:status}=_ref;if(autoRefresh||status!=="active"){return null}return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{onClick:onSyncIconCl
1ickHandler},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"inputOutput",size:"m"}))};const DeleteIcon=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{onClick:onDeleteIconClickHandler},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"trash",size:"m"}));const VacuumIcon=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{onClick:onVacuumIconClickHandler},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"broom",size:"m"}));const accelerationDetailsTabs=[{id:"details",name:"Details",disabled:false},{id:"schema",name:"Schema",disabled:false}];const renderTabs=()=>accelerationDetailsTabs.map((tab,tabIndex)=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiTab"],{onClick:()=>setSelectedTab(tab.id),isSelected:tab.id===selectedTab,disabled:tab.disabled,key:tabIndex},tab.name));const renderTabContent=tab=>{let propsForTab;switch(tab){case"details":propsForTab={acceleration:acceleration,settings:settings,mappings:mappings,indexInfo:indexInfo,dataSourceName:dataSourceName,resetFlyout:resetFlyout,application:application,featureFlagStatus:featureFlagStatus,dataSourceMDSId:dataSourceMDSId};break;case"schema":propsForTab={mappings:mappings,indexInfo:indexInfo};break;default:return null}const TabToDisplay=tabsMap[tab];return external_osdSharedDeps_React_default.a.createElement(TabToDisplay,propsForTab)};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutHeader"],{hasBorder:true},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"row",alignItems:"center",gutterSize:"m"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],null,external_osdSharedDeps_React_default.a.createElement("h2",{className:"panel-title"},displayedIndex))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(SyncIcon,{autoRefresh:acceleration.autoRefresh,status:acceleration.status})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(DiscoverIcon,null)),acceleration.status!=="deleted"?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(DeleteIcon,null)):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(VacuumIcon,null))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"m"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiTabs"],{style:{marginBottom:"-25px"},size:"s"},renderTabs())),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutBody"],null,renderTabContent(selectedTab)),showConfirmationOverlay&&operationType&&external_osdSharedDeps_React_default.a.createElement(acceleration_action_overlay["a"],{isVisible:showConfirmationOverlay,actionType:operationType,acceleration:acceleration,dataSourceName:dataSourceName,onCancel:()=>setShowConfirmationOverlay(false),onConfirm:onConfirmOperation}))};var framework_types=__webpack_require__(3);var cache_loader=__webpack_require__(23);var dist=__webpack_require__(9);var dist_default=__webpack_require__.n(dist);const pluralizeTime=timeWindow=>timeWindow>1?"s":"";const hasError=(formErrors,key)=>{var _formErrors$key;if(!key)return Object.values(formErrors).some(e=>!!e.length);return!!((_formErrors$key=formErrors[key])!==null&&_formErrors$key!==void 0&&_formErrors$key.length)};const validateDataSource=dataSource=>dataSource.trim().length===0?["Select a valid data source"]:[];const validateDatabase=database=>database.trim().length===0?["Select a valid database"]:[];const validateDataTable=dataTable=>dataTable.trim().length===0?["Select a valid table"]:[];const validatePrimaryShardCount=primaryShardCount=>primaryShardCount<1?["Primary shards count should be greater than 0"]:[];const validateReplicaCount=replicaCount=>replicaCount<0?["Replica count should be equal or greater than 0"]:[];
1const validateRefreshInterval=(refreshType,refreshWindow,refreshInterval)=>{if(refreshType==="autoInterval"&&refreshInterval==="minute"&&refreshWindow<15)return["refresh window should be greater than 15 minutes"];if(refreshType==="autoInterval"&&refreshWindow<1)return["refresh window should be greater than 0"];return[]};const validateWatermarkDelay=(accelerationIndexType,delayWindow)=>accelerationIndexType==="materialized"&&delayWindow<1?["delay window should be greater than 0"]:[];const validateIndexName=value=>!constants["e"].test(value)?["Enter a valid index name"]:[];const validateCheckpointLocation=(refreshType,checkpointLocation)=>{if(refreshType!=="manual"&&!checkpointLocation){return["Checkpoint location is mandatory for auto refresh"]}if(checkpointLocation&&!constants["h"].test(checkpointLocation))return["Enter a valid checkpoint location"];return[]};const validateSkippingIndexData=(accelerationIndexType,skippingIndexQueryData)=>{if(accelerationIndexType!=="skipping")return[];if(skippingIndexQueryData.length<1)return["Add fields to the skipping index definition"];return[]};const validateCoveringIndexData=(accelerationIndexType,coveringIndexQueryData)=>{if(accelerationIndexType!=="covering")return[];if(coveringIndexQueryData.length<1)return["Add fields to covering index definition"];return[]};const validateMaterializedViewData=(accelerationIndexType,materializedViewQueryData)=>{if(accelerationIndexType!=="materialized")return[];if(materializedViewQueryData.columnsValues.length<1)return["Add columns to materialized view definition"];if(materializedViewQueryData.groupByTumbleValue.timeField==="")return["Add a time field to tumble function in materialized view definition"];if(materializedViewQueryData.groupByTumbleValue.tumbleWindow<1)return["Add a valid time window to tumble function in materialized view definition"];return[]};const formValidator=accelerationformData=>{const{dataSource:dataSource,database:database,dataTable:dataTable,accelerationIndexType:accelerationIndexType,skippingIndexQueryData:skippingIndexQueryData,coveringIndexQueryData:coveringIndexQueryData,materializedViewQueryData:materializedViewQueryData,accelerationIndexName:accelerationIndexName,primaryShardsCount:primaryShardsCount,replicaShardsCount:replicaShardsCount,refreshType:refreshType,checkpointLocation:checkpointLocation,watermarkDelay:watermarkDelay,refreshIntervalOptions:refreshIntervalOptions}=accelerationformData;const accelerationFormErrors={dataSourceError:validateDataSource(dataSource),databaseError:validateDatabase(database),dataTableError:validateDataTable(dataTable),primaryShardsError:validatePrimaryShardCount(primaryShardsCount),replicaShardsError:validateReplicaCount(replicaShardsCount),refreshIntervalError:validateRefreshInterval(refreshType,refreshIntervalOptions.refreshWindow,refreshIntervalOptions.refreshInterval),checkpointLocationError:validateCheckpointLocation(refreshType,checkpointLocation),watermarkDelayError:validateWatermarkDelay(accelerationIndexType,watermarkDelay.delayWindow),indexNameError:validateIndexName(accelerationIndexName),skippingIndexError:validateSkippingIndexData(accelerationIndexType,skippingIndexQueryData),coveringIndexError:validateCoveringIndexData(accelerationIndexType,coveringIndexQueryData),materializedViewError:validateMaterializedViewData(accelerationIndexType,materializedViewQueryData)};return accelerationFormErrors};const DefineIndexOptions=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[modalComponent,setModalComponent]=Object(external_osdSharedDeps_React_["useState"])(external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null));const modalValue=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModal"],{maxWidth:850,onClose:()=>setModalComponent(external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null))},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalHeader"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalHeaderTitle"],null,external_osdSharedDeps_React_default.a.createElement("h1",null,"Acceleration index naming"))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalBody"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiMarkdownFormat"],null,constants["d"])))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>setModalComponent(external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null)),fill:true},"Close")));const onChangeIndexName=e=>{setAccelerationFormData({...accelerationFormData,accelerationIndexName:e.target.value})};const getPreprend=()=>{const dataSource=accelerationFormData.dataSource!==""?accelerationFormData.dataSource:"{Datasource Name}";const database=accelerationFormData.database!==""?accelerationFormData.database:"{Database Name}";const dataTable=accelerationFormData.dataTable!==""?accelerationFormData.dataTable:"{Table Name}";const prependValue=accelerationFormData.accelerationIndexType==="materialized"?`flint_${dataSource}_${database}_`:`flint_${dataSource}_${database}_${dataTable}_`;return[prependValue,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIconTip"],{type:"iInCircle",color:"subdued",content:prependValue,position:"top"})]};const getAppend=()=>{const appendValue=accelerationFormData.accelerationIndexType==="materialized"?"":"_index";return appendValue};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Index name",helpText:'Must be in lowercase letters, numbers and underscore. Spaces, commas, and characters -, :, ", *, +, /, \\, |, ?, #, >, or < are not allowed. Prefix and suffix are added to the name of generated OpenSearch index.',isInvalid:hasError(accelerationFormData.formErrors,"indexNameError"),error:accelerationFormData.formErrors.indexNameError,labelAppend:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"xs"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{onClick:()=>setModalComponent(modalValue)},"Help"))},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldText"],{placeholder:"Enter index name",value:accelerationFormData.accelerationIndexName,onChange:onChangeIndexName,"aria-label":"Enter Index Name",prepend:getPreprend(),append:getAppend(),disabled:accelerationFormData.accelerationIndexType==="skipping",isInvalid:hasError(accelerationFormData.formErrors,"indexNameError"),onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.indexNameError=validateIndexName(e.target.value)}))}})),modalComponent)};const IndexAdvancedSettings=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[primaryShards,setPrimaryShards]=Object(external_osdSharedDeps_React_["useState"])(1);const[replicaCount,setReplicaCount]=Object(external_osdSharedDeps_React_["useState"])(1);const onChangePrimaryShards=e=>{const countPrimaryShards=parseInt(e.target.value,10);setAccelerationFormData({...accelerationFormData,primaryShardsCount:countPrimaryShards}
1);setPrimaryShards(countPrimaryShards)};const onChangeReplicaCount=e=>{const parsedReplicaCount=parseInt(e.target.value,10);setAccelerationFormData({...accelerationFormData,replicaShardsCount:parsedReplicaCount});setReplicaCount(parsedReplicaCount)};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiAccordion"],{id:"accordion1",buttonContent:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"advanced-settings-header"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Advanced settings")),paddingSize:"l"},accelerationFormData.accelerationIndexType==="skipping"&&external_osdSharedDeps_React_default.a.createElement(DefineIndexOptions,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Number of primary shards",helpText:"Specify the number of primary shards for the index. The number of primary shards cannot be changed after the index is created.",isInvalid:hasError(accelerationFormData.formErrors,"primaryShardsError"),error:accelerationFormData.formErrors.primaryShardsError},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldNumber"],{placeholder:"Number of primary shards",value:primaryShards,onChange:onChangePrimaryShards,"aria-label":"Number of primary shards",min:1,max:100,onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.primaryShardsError=validatePrimaryShardCount(parseInt(e.target.value,10))}))},isInvalid:hasError(accelerationFormData.formErrors,"primaryShardsError")})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"l"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Number of replicas",helpText:"Specify the number of replicas each primary shard should have.",isInvalid:hasError(accelerationFormData.formErrors,"replicaShardsError"),error:accelerationFormData.formErrors.replicaShardsError},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldNumber"],{placeholder:"Number of replicas",value:replicaCount,onChange:onChangeReplicaCount,"aria-label":"Number of replicas",min:0,max:100,onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.replicaShardsError=validateReplicaCount(parseInt(e.target.value,10))}))},isInvalid:hasError(accelerationFormData.formErrors,"replicaShardsError")})))};const IndexSettingOptions=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const refreshOptions=[{value:"autoInterval",inputDisplay:"Auto (Interval)",dropdownDisplay:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_["Fragment"],null,external_osdSharedDeps_React_default.a.createElement("strong",null,"Auto (Interval)"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},external_osdSharedDeps_React_default.a.createElement("p",{className:"EuiTextColor--subdued"},"Automatically refreshes the index and specifies the interval between micro-batches.")))},{value:"manualIncrement",inputDisplay:"Manual (Increment)",dropdownDisplay:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_["Fragment"],null,external_osdSharedDeps_React_default.a.createElement("strong",null,"Manual (Increment)"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},external_osdSharedDeps_React_default.a.createElement("p",{className:"EuiTextColor--subdued"},"Manually fetches new data since last refresh. Ideal for reducing resource usage.")))},{value:"manual",inputDisplay:"Manual",dropdownDisplay:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_["Fragment"],null,external_osdSharedDeps_React_default.a.createElement("strong",null,"Manual"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},external_osdSharedDeps_React_default.a.createElement("p",{className:"EuiTextColor--subdued"},"Manually fetches all available data.")))}];const[refreshTypeSelected,setRefreshTypeSelected]=Object(external_osdSharedDeps_React_["useState"])("autoInterval");const[refreshWindow,setRefreshWindow]=Object(external_osdSharedDeps_React_["useState"])(15);const[refreshInterval,setRefreshInterval]=Object(external_osdSharedDeps_React_["useState"])(constants["g"][0].value);const[delayWindow,setDelayWindow]=Object(external_osdSharedDeps_React_["useState"])(1);const[delayInterval,setDelayInterval]=Object(external_osdSharedDeps_React_["useState"])(constants["i"][2].value);const[checkpoint,setCheckpoint]=Object(external_osdSharedDeps_React_["useState"])("");const onChangeRefreshType=optionId=>{setAccelerationFormData(dist_default()(accData=>{accData.refreshType=optionId;accData.formErrors.checkpointLocationError=[];accData.formErrors.refreshIntervalError=[]}
1));setRefreshTypeSelected(optionId)};const onChangeRefreshWindow=e=>{const windowCount=parseInt(e.target.value,10);setAccelerationFormData(dist_default()(accData=>{accData.refreshIntervalOptions.refreshWindow=windowCount}));setRefreshWindow(windowCount)};const onChangeDelayWindow=e=>{const windowCount=parseInt(e.target.value,10);setAccelerationFormData(dist_default()(accData=>{accData.watermarkDelay.delayWindow=windowCount}));setDelayWindow(windowCount)};const onChangeRefreshInterval=e=>{const refreshIntervalValue=e.target.value;setAccelerationFormData(dist_default()(accData=>{accData.refreshIntervalOptions.refreshInterval=refreshIntervalValue}));setRefreshInterval(refreshIntervalValue)};const onChangeDelayInterval=e=>{const delayIntervalValue=e.target.value;setAccelerationFormData(dist_default()(accData=>{accData.watermarkDelay.delayInterval=delayIntervalValue}));setDelayInterval(delayIntervalValue)};const onChangeCheckpoint=e=>{const checkpointLocation=e.target.value;setAccelerationFormData({...accelerationFormData,checkpointLocation:checkpointLocation});setCheckpoint(checkpointLocation)};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"define-index-header"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Define Index")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),accelerationFormData.accelerationIndexType!=="skipping"&&external_osdSharedDeps_React_default.a.createElement(DefineIndexOptions,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Refresh type",helpText:"Specify how often the index should refresh, which publishes the most recent changes and make them available for search."},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSuperSelect"],{options:refreshOptions,valueOfSelected:refreshTypeSelected,onChange:onChangeRefreshType,itemLayoutAlign:"top",hasDividers:true})),refreshTypeSelected==="autoInterval"&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Refresh increments",helpText:"Specify how frequent the index gets updated when performing the refresh job.",isInvalid:hasError(accelerationFormData.formErrors,"refreshIntervalError"),error:accelerationFormData.formErrors.refreshIntervalError},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldNumber"],{placeholder:"Refresh increments",value:refreshWindow,onChange:onChangeRefreshWindow,"aria-label":"Refresh increments",min:1,isInvalid:hasError(accelerationFormData.formErrors,"refreshIntervalError"),onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.refreshIntervalError=validateRefreshInterval(refreshTypeSelected,parseInt(e.target.value,10),refreshInterval)}))},append:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelect"],{value:refreshInterval,onChange:onChangeRefreshInterval,options:constants["g"],onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.refreshIntervalError=validateRefreshInterval(refreshTypeSelected,refreshWindow,e.target.value)}))}})})),refreshTypeSelected!=="manual"&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Checkpoint location",helpText:"The HDFS compatible file system location path for incremental refresh job checkpoint.",isInvalid:hasError(accelerationFormData.formErrors,"checkpointLocationError"),error:accelerationFormData.formErrors.checkpointLocationError,labelAppend:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"xs"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{href:constants["j"],target:"_blank"},"Learn more"))},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldText"],{placeholder:"s3://checkpoint/location",value:checkpoint,onChange:onChangeCheckpoint,"aria-label":"Use aria labels when no actual label is in use",isInvalid:hasError(accelerationFormData.formErrors,"checkpointLocationError"),onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.checkpointLocationError=validateCheckpointLocation(accData.refreshType,e.target.value)}))}})),accelerationFormData.accelerationIndexType==="materialized"&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Watermark Delay",helpText:"Data arrival delay for incremental refresh on a materialized view with aggregations",isInvalid:hasError(accelerationFormData.formErrors,"watermarkDelayError"),error:accelerationFormData.formErrors.watermarkDelayError},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldNumber"],{placeholder:"Watermark delay interval",value:delayWindow,onChange:onChangeDelayWindow,"aria-label":"Watermark delay interval",min:1,isInvalid:hasError(accelerationFormData.formErrors,"watermarkDelayError"),onBlur:e=>{setAccelerationFormData(dist_default()(accData=>{accData.formErrors.watermarkDelayError=validateWatermarkDelay(accelerationFormData.accelerationIndexType,parseInt(e.target.value,10))}))},append:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelect"],{value:delayInterval,onChange:onChangeDelayInterval,options:constants["i"]})})))};const IndexTypeSelector=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,initiateColumnLoad:initiateColumnLoad}=_ref;const[value,setValue]=Object(external_osdSharedDeps_React_["useState"])("skipping");Object(external_osdSharedDeps_React_["useEffect"])(()=>{initiateColumnLoad(accelerationFormData.dataSource,accelerationFormData.database,accelerationFormData.dataTable)},[accelerationFormData.dataTable]);const onChangeSupeSelect=indexType=>{setAccelerationFormData({...accelerationFormData,accelerationIndexType:indexType,accelerationIndexName:indexType==="skipping"?constants["c"]:""});setValue(indexType)};const superSelectOptions=[{value:"skipping",inputDisplay:"Skipping index",dropdownDisplay:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_["Fragment"],null,external_osdSharedDeps_React_default.a.createElement("strong",null,"Skipping index"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},external_osdSharedDeps_React_default.a.createElement("p",{className:"EuiTextColor--subdued"},"Accelerate direct queries by storing table meta-data in OpenSearch.")))},{value:"covering",inputDisplay:"Covering index",dropdownDisplay:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_["Fragment"],null,external_osdSharedDeps_React_default.a.createElement("strong",null,"Covering index"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},external_osdSharedDeps_React_default.a.createElement("p",{className:"EuiTextColor--subdued"},"Accelerate queries from subset of table data stored in OpenSearch.")))},{value:"materialized",inputDisplay:"Materialized view",dropdownDisplay:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_["Fragment"],null,external_osdSharedDeps_React_default.a.createElement("strong",null,"Materialized view"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},external_osdSharedDeps_React_default.a.createElement("p",{className:"EuiTextColor--subdued"},"Accelerate queries and visualizations from aggregated table results stored in OpenSearch.")))}];return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"acceleration-setting-header"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Acceleration setting")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Acceleration type",helpText:"Select the type of acceleration according to your use case.",labelAppend:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"xs"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{href:constants["k"],target:"_blank"},"Help"))},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSuperSelect"],{options:superSelectOptions,valueOfSelected:value,onChange:onChangeSupeSelect,itemLayoutAlign:"top",hasDividers:true})))};const buildIndexOptions=accelerationformData=>{const{primaryShardsCount:primaryShardsCount,replicaShardsCount:replicaShardsCount,refreshType:refreshType,checkpointLocation:checkpointLocation,accelerationIndexType:accelerationIndexType}=accelerationformData;const indexOptions=[];
1indexOptions.push(`index_settings = '{"number_of_shards":${primaryShardsCount},"number_of_replicas":${replicaShardsCount}}'`);indexOptions.push(`auto_refresh = ${["auto","autoInterval"].includes(refreshType)}`);if(refreshType==="autoInterval"){const{refreshWindow:refreshWindow,refreshInterval:refreshInterval}=accelerationformData.refreshIntervalOptions;indexOptions.push(`refresh_interval = '${refreshWindow} ${refreshInterval}${pluralizeTime(refreshWindow)}'`)}if(refreshType==="manualIncrement"){indexOptions.push(`incremental_refresh = true`)}if(refreshType==="manual"){indexOptions.push(`incremental_refresh = false`)}if(accelerationIndexType==="materialized"){const{delayWindow:delayWindow,delayInterval:delayInterval}=accelerationformData.watermarkDelay;indexOptions.push(`watermark_delay = '${delayWindow} ${delayInterval}${pluralizeTime(delayWindow)}'`)}if(refreshType!=="manual"&&checkpointLocation){indexOptions.push(`checkpoint_location = '${checkpointLocation}'`)}return`WITH (\n${indexOptions.join(",\n")}\n)`};const buildSkippingIndexColumns=skippingIndexQueryData=>skippingIndexQueryData.map(n=>`   \`${n.fieldName}\` ${n.accelerationMethod}`).join(", \n");const skippingIndexQueryBuilder=accelerationformData=>{const{dataSource:dataSource,database:database,dataTable:dataTable,skippingIndexQueryData:skippingIndexQueryData}=accelerationformData;const codeQuery=`CREATE SKIPPING INDEX\nON ${dataSource}.${database}.${dataTable} (\n${buildSkippingIndexColumns(skippingIndexQueryData)}\n  ) ${buildIndexOptions(accelerationformData)}`;return codeQuery};const buildCoveringIndexColumns=coveringIndexQueryData=>coveringIndexQueryData.map(field=>`   \`${field}\``).join(", \n");const coveringIndexQueryBuilder=accelerationformData=>{const{dataSource:dataSource,database:database,dataTable:dataTable,accelerationIndexName:accelerationIndexName,coveringIndexQueryData:coveringIndexQueryData}=accelerationformData;const codeQuery=`CREATE INDEX ${accelerationIndexName}\nON ${dataSource}.${database}.${dataTable} (\n${buildCoveringIndexColumns(coveringIndexQueryData)}\n  ) ${buildIndexOptions(accelerationformData)}`;return codeQuery};const buildMaterializedViewColumnName=columnName=>columnName==="*"?columnName:`\`${columnName}\``;const buildMaterializedViewColumns=columnsValues=>columnsValues.map(column=>`   ${column.functionName!=="window.start"?`${column.functionName}(${buildMaterializedViewColumnName(column.functionParam)})`:`${column.functionName}`}${column.fieldAlias?` AS \`${column.fieldAlias}\``:``}`).join(", \n");const buildTumbleValue=GroupByTumbleValue=>{const{timeField:timeField,tumbleWindow:tumbleWindow,tumbleInterval:tumbleInterval}=GroupByTumbleValue;return`(\`${timeField}\`, '${tumbleWindow} ${tumbleInterval}${pluralizeTime(tumbleWindow)}')`};const materializedQueryViewBuilder=accelerationformData=>{const{dataSource:dataSource,database:database,dataTable:dataTable,accelerationIndexName:accelerationIndexName,materializedViewQueryData:materializedViewQueryData}=accelerationformData;const codeQuery=`CREATE MATERIALIZED VIEW ${dataSource}.${database}.${accelerationIndexName}\nAS SELECT\n${buildMaterializedViewColumns(materializedViewQueryData.columnsValues)}\nFROM ${dataSource}.${database}.${dataTable}\nGROUP BY TUMBLE ${buildTumbleValue(materializedViewQueryData.groupByTumbleValue)}\n ${buildIndexOptions(accelerationformData)}`;return codeQuery};const accelerationQueryBuilder=accelerationformData=>{switch(accelerationformData.accelerationIndexType){case"skipping":{return skippingIndexQueryBuilder(accelerationformData)}case"covering":{return coveringIndexQueryBuilder(accelerationformData)}case"materialized":{return materializedQueryViewBuilder(accelerationformData)}default:{return""}}};const PreviewSQLDefinition=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,resetFlyout:resetFlyout,notifications:notifications,application:application,http:http}=_ref;const[isPreviewStale,setIsPreviewStale]=Object(external_osdSharedDeps_React_["useState"])(false);const[isPreviewTriggered,setIsPreviewTriggered]=Object(external_osdSharedDeps_React_["useState"])(false);const[sqlCode,setSQLcode]=Object(external_osdSharedDeps_React_["useState"])("");const[sqlWorkbenchPLuginExists,setSQLWorkbenchPluginExists]=Object(external_osdSharedDeps_React_["useState"])(false);const checkForErrors=()=>{const errors=formValidator(accelerationFormData);if(hasError(errors)){setAccelerationFormData({...accelerationFormData,formErrors:errors});return true}else return false};const onClickPreview=()=>
1{if(checkForErrors()){return}setSQLcode(accelerationQueryBuilder(accelerationFormData));setIsPreviewStale(false);setIsPreviewTriggered(true)};const checkIfSQLWorkbenchPluginIsInstalled=()=>{http.get("/api/status").then(data=>{for(let i=0;i<data.status.statuses.length;++i){if(data.status.statuses[i].id.includes(shared["l"])){setSQLWorkbenchPluginExists(true)}}}).catch(error=>{notifications.toasts.addDanger("Error checking Query Workbench Plugin Installation status.");console.error(error)})};const openInWorkbench=()=>{if(!checkForErrors()){application.navigateToApp(shared["m"],{path:`#/${accelerationFormData.dataSource}`,state:{language:"sql",queryToRun:accelerationQueryBuilder(accelerationFormData)}});resetFlyout()}};const queryWorkbenchButton=sqlWorkbenchPLuginExists?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{iconSide:"right",onClick:openInWorkbench,"data-test-subj":"workbenchButton"},"Edit in Query Workbench"):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null);Object(external_osdSharedDeps_React_["useEffect"])(()=>{setIsPreviewStale(true)},[accelerationFormData]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{checkIfSQLWorkbenchPluginIsInstalled()},[]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiAccordion"],{id:"accordion1",buttonContent:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"preview-sql-header"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Preview SQL definition")),paddingSize:"l"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},isPreviewStale&&isPreviewTriggered?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{iconType:"kqlFunction",iconSide:"left",color:"success",onClick:onClickPreview},"Update preview"):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{color:"success",onClick:onClickPreview},"Generate preview")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},queryWorkbenchButton)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"l"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiCodeBlock"],{language:"sql",fontSize:"m",paddingSize:"m",isCopyable:true},sqlCode)))};const SelectorLoadDatabases=_ref=>{let{dataSourceName:dataSourceName,loadDatabases:loadDatabases,loadingComboBoxes:loadingComboBoxes,setLoa
1dingComboBoxes:setLoadingComboBoxes,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}=_ref;const[isLoading,setIsLoading]=Object(external_osdSharedDeps_React_["useState"])(false);const{loadStatus:loadDatabasesStatus,startLoading:startDatabasesLoading,stopLoading:stopDatabasesLoading}=Object(cache_loader["b"])(http,notifications);const onClickRefreshDatabases=()=>{setIsLoading(true);startDatabasesLoading({dataSourceName:dataSourceName,dataSourceMDSId:dataSourceMDSId})};Object(external_osdSharedDeps_React_["useEffect"])(()=>{const status=loadDatabasesStatus.toLowerCase();if(status===framework_types["b"].SUCCESS){loadDatabases();setIsLoading(false)}else if(status===framework_types["b"].FAILED||status===framework_types["b"].CANCELED){setIsLoading(false)}},[loadDatabasesStatus]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{setLoadingComboBoxes({...loadingComboBoxes,database:isLoading})},[isLoading]);Object(external_osdSharedDeps_React_["useEffect"])(()=>()=>{stopDatabasesLoading()},[]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,isLoading?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLoadingSpinner"],{size:"xl"}):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{iconType:"refresh",size:"m",display:"base",onClick:onClickRefreshDatabases,isDisabled:loadingComboBoxes.database||loadingComboBoxes.dataTable||tableFieldsLoading}))};const SelectorLoadObjects=_ref=>{let{dataSourceName:dataSourceName,databaseName:databaseName,loadTables:loadTables,loadingComboBoxes:loadingComboBoxes,setLoa
1dingComboBoxes:setLoadingComboBoxes,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId,notifications:notifications,http:http}=_ref;const[isLoading,setIsLoading]=Object(external_osdSharedDeps_React_["useState"])({tableStatus:false,accelerationsStatus:false});const isEitherLoading=isLoading.accelerationsStatus||isLoading.tableStatus;const{loadStatus:loadTablesStatus,startLoading:startLoadingTables,stopLoading:stopLoadingTables}=Object(cache_loader["d"])(http,notifications);const{loadStatus:loadAccelerationsStatus,startLoading:startLoadingAccelerations,stopLoading:stopLoadingAccelerations}=Object(cache_loader["a"])(http,notifications);const onClickRefreshDatabases=()=>{if(databaseName===""){notifications.toasts.addDanger("Please select a database");return}setIsLoading({tableStatus:true,accelerationsStatus:true});startLoadingTables({dataSourceName:dataSourceName,databaseName:databaseName,dataSourceMDSId:dataSourceMDSId});startLoadingAccelerations({dataSourceName:dataSourceName,dataSourceMDSId:dataSourceMDSId})};Object(external_osdSharedDeps_React_["useEffect"])(()=>{const status=loadTablesStatus.toLowerCase();if(status===framework_types["b"].SUCCESS){loadTables();setIsLoading({...isLoading,tableStatus:false})}else if(status===framework_types["b"].FAILED||status===framework_types["b"].CANCELED){setIsLoading({...isLoading,tableStatus:false})}},[loadTablesStatus]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{const status=loadAccelerationsStatus.toLowerCase();if(status===framework_types["b"].SUCCESS||status===framework_types["b"].FAILED||status===framework_types["b"].CANCELED){setIsLoading({...isLoading,accelerationsStatus:false})}},[loadAccelerationsStatus]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{setLoadingComboBoxes({...loadingComboBoxes,dataTable:isEitherLoading})},[isEitherLoading]);Object(external_osdSharedDeps_React_["useEffect"])(()=>()=>{stopLoadingTables();stopLoadingAccelerations()},[]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,isEitherLoading?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLoadingSpinner"],{size:"xl"}):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{iconType:"refresh",size:"m",display:"base",onClick:onClickRefreshDatabases,isDisabled:loadingComboBoxes.database||loadingComboBoxes.dataTable||tableFieldsLoading}))};const AccelerationDataSourceSelector=_ref=>{let{http:http,notifications:notifications,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,selectedDatasource:selectedDatasource,dataSourcesPreselected:dataSourcesPreselected,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId}=_ref;const[databases,setDatabases]=Object(external_osdSharedDeps_React_["useState"])([]);const[selectedDatabase,setSelectedDatabase]=Object(external_osdSharedDeps_React_["useState"])([]);const[tables,setTables]=Object(external_osdSharedDeps_React_["useState"])([]);const[selectedTable,setSelectedTable]=Object(external_osdSharedDeps_React_["useState"])([]);
1const[loadingComboBoxes,setLoadingComboBoxes]=Object(external_osdSharedDeps_React_["useState"])({dataSource:false,database:false,dataTable:false});const dataSourceDescription=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionList"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListTitle"],null,"Data source"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListDescription"],null,accelerationFormData.dataSource));const loadDataSource=()=>{setLoadingComboBoxes({...loadingComboBoxes,dataSource:true});http.get(`${shared["d"]}/dataSourceMDSId=${dataSourceMDSId!==null&&dataSourceMDSId!==void 0?dataSourceMDSId:""}`).then(res=>{const isValidDataSource=res.some(connection=>connection.connector.toUpperCase()==="S3GLUE"&&connection.name===selectedDatasource);if(!isValidDataSource){notifications.toasts.addDanger(`Received an invalid datasource in create acceleration flyout`)}}).catch(err=>{console.error(err);notifications.toasts.addDanger(`failed to load datasources`)});setLoadingComboBoxes({...loadingComboBoxes,dataSource:false})};const loadDatabases=()=>{const dsCache=cache_manager["a"].getOrCreateDataSource(accelerationFormData.dataSource,dataSourceMDSId);if(dsCache.status===framework_types["a"].Updated&&dsCache.databases.length>0){const databaseLabels=dsCache.databases.map(db=>({label:db.name}));setDatabases(databaseLabels)}else if(dsCache.status===framework_types["a"].Updated&&dsCache.databases.length===0||dsCache.status===framework_types["a"].Empty){setDatabases([])}setSelectedDatabase([]);setTables([]);setSelectedTable([]);setAccelerationFormData({...accelerationFormData,database:"",dataTable:""})};const loadTables=()=>
1{if(selectedDatabase.length>0){let dbCache={};try{dbCache=cache_manager["a"].getDatabase(accelerationFormData.dataSource,accelerationFormData.database,dataSourceMDSId);if(dbCache.status===framework_types["a"].Updated&&dbCache.tables.length>0){const tableLabels=dbCache.tables.map(tb=>({label:tb.name}));setTables(tableLabels)}else if(dbCache.status===framework_types["a"].Updated&&dbCache.tables.length===0||dbCache.status===framework_types["a"].Empty){setTables([])}}catch(error){setTables([]);notifications.toasts.addWarning("Your cache is outdated, refresh databases and tables");console.error(error)}setSelectedTable([]);setAccelerationFormData({...accelerationFormData,dataTable:""})}};Object(external_osdSharedDeps_React_["useEffect"])(()=>{loadDataSource()},[]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(accelerationFormData.dataSource!==""){loadDatabases()}},[accelerationFormData.dataSource]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(accelerationFormData.database!==""){loadTables()}},[accelerationFormData.database]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"datasource-selector-header"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Select data source")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},"Select the data source to accelerate data from. External data sources may take time to load."),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"m"}),dataSourcesPreselected?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,dataSourceDescription),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionList"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListTitle"],null,"Database"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListDescription"],null,accelerationFormData.database))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionList"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListTitle"],null,"Table"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListDescription"],null,accelerationFormData.dataTable))))):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,dataSourceDescription,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"m"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Database",helpText:"Select the database that contains the tables you'd like to use.",isInvalid:hasError(accelerationFormData.formErrors,"databaseError"),error:accelerationFormData.formErrors.databaseError},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{gutterSize:"s"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{placeholder:"Select a database",singleSelection:{asPlainText:true},options:databases,selectedOptions:selectedDatabase,onChange:databaseOptions=>{if(databaseOptions.length>0){setAccelerationFormData(dist_default()(accData=>{accData.database=databaseOptions[0].label;accData.formErrors.databaseError=validateDatabase(databaseOptions[0].label)}));setSelectedDatabase(databaseOptions)}},isClearable:false,isInvalid:hasError(accelerationFormData.formErrors,"databaseError"),isDisabled:loadingComboBoxes.database||loadingComboBoxes.dataTable||tableFieldsLoading})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(SelectorLoadDatabases,{dataSourceName:accelerationFormData.dataSource,loadDatabases:loadDatabases,loadingComboBoxes:loadingComboBoxes,setLoa
1dingComboBoxes:setLoadingComboBoxes,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications})))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Table",helpText:tableFieldsLoading?"Loading tables fields":"Select the Spark table that has the data you would like to index.",isInvalid:hasError(accelerationFormData.formErrors,"dataTableError"),error:accelerationFormData.formErrors.dataTableError},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{gutterSize:"s"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{placeholder:"Select a table",singleSelection:{asPlainText:true},options:tables,selectedOptions:selectedTable,onChange:tableOptions=>{if(tableOptions.length>0){setAccelerationFormData(dist_default()(accData=>{accData.dataTable=tableOptions[0].label;accData.formErrors.dataTableError=validateDataTable(tableOptions[0].label)}));setSelectedTable(tableOptions)}},isClearable:false,isInvalid:hasError(accelerationFormData.formErrors,"dataTableError"),isDisabled:loadingComboBoxes.database||loadingComboBoxes.dataTable||tableFieldsLoading})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(SelectorLoadObjects,{dataSourceName:accelerationFormData.dataSource,databaseName:accelerationFormData.database,loadTables:loadTables,loadingComboBoxes:loadingComboBoxes,setLoa
1dingComboBoxes:setLoadingComboBoxes,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId,notifications:notifications,http:http}))))))};const CoveringIndexBuilder=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[isPopOverOpen,setIsPopOverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const[columnsValue,setColumnsValue]=Object(external_osdSharedDeps_React_["useState"])(constants["a"]);const[selectedOptions,setSelectedOptions]=Object(external_osdSharedDeps_React_["useState"])([]);const onChange=_selectedOptions=>{let expressionValue=constants["a"];if(_selectedOptions.length>0){expressionValue=`(${_selectedOptions.map(option=>option.label).join(", ")})`}setAccelerationFormData({...accelerationFormData,coveringIndexQueryData:_selectedOptions.map(option=>option.label)});setColumnsValue(expressionValue);setSelectedOptions(_selectedOptions)};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"covering-index-builder"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Covering index definition")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"column",gutterSize:"xs"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"CREATE INDEX",value:accelerationFormData.accelerationIndexName})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"ON",color:"accent",value:`${accelerationFormData.dataSource}.${accelerationFormData.database}.${accelerationFormData.dataTable}`}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"coveringIndexFieldsPopOver",button:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"",value:columnsValue,isActive:isPopOverOpen,onClick:()=>setIsPopOverOpen(true),isInvalid:hasError(accelerationFormData.formErrors,"coveringIndexError")&&columnsValue===constants["a"]}),isOpen:isPopOverOpen,closePopover:()=>setIsPopOverOpen(false),panelPaddingSize:"s",anchorPosition:"downLeft"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverTitle"],{paddingSize:"l"},"Columns"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{placeholder:"Select one or more options",options:accelerationFormData.dataTableFields.map(x=>({label:x.fieldName})),selectedOptions:selectedOptions,onChange:onChange}))))))};var map=__webpack_require__(90);var map_default=__webpack_require__.n(map);const AddColumnPopOver=_ref=>{let{isColumnPopOverOpen:isColumnPopOverOpen,setIsColumnPopOverOpen:setIsColumnPopOverOpen,columnExpressionValues:columnExpressionValues,setColumnExpressionValues:setColumnExpressionValues,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[selectedFunction,setSelectedFunction]=Object(external_osdSharedDeps_React_["useState"])([constants["b"][0]]);const[selectedField,setSelectedField]=Object(external_osdSharedDeps_React_["useState"])([]);const[selectedAlias,setSeletedAlias]=Object(external_osdSharedDeps_React_["useState"])("");const resetSelectedField=()=>{if(accelerationFormData.dataTableFields.length>0){const defaultFieldName=accelerationFormData.dataTableFields[0].fieldName;setSelectedField([{label:defaultFieldName}])}};const resetValues=()=>{setSelectedFunction([constants["b"][0]]);resetSelectedField();setSeletedAlias("")};const onChangeAlias=e=>{setSeletedAlias(e.target.value)};const onAddExpression=()=>{const newColumnExpresionValue=[...columnExpressionValues,{id:Object(external_osdSharedDeps_ElasticEui_["htmlIdGenerator"])()(),functionName:selectedFunction[0].label,functionParam:selectedField[0].label,fieldAlias:selectedAlias}];setAccelerationFormData(dist_default()(accData=>{accData.materializedViewQueryData.columnsValues=newColumnExpresionValue}));setColumnExpressionValues(newColumnExpresionValue);setIsColumnPopOverOpen(false)};Object(external_osdSharedDeps_React_["useEffect"])(()=>{resetSelectedField()},[]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{panelPaddingSize:"s",button:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{iconType:"plusInCircle","aria-label":"add column",onClick:()=>{resetValues();setIsColumnPopOverOpen(!isColumnPopOverOpen)},size:"xs"},"Add Column"),isOpen:isColumnPopOverOpen,closePopover:()=>setIsColumnPopOverOpen(false)},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverTitle"],null,"Add Column"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Function"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{singleSelection:{asPlainText:true},options:constants["b"],selectedOptions:selectedFunction,onChange:setSelectedFunction,isClearable:false}))),selectedFunction[0].label!=="window.start"&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Aggregation field"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{singleSelection:{asPlainText:true},options:[{label:"*",disabled:selectedFunction[0].label!=="count"},...accelerationFormData.dataTableFields.map(x=>({label:x.fieldName}))],selectedOptions:selectedField,onChange:setSelectedField,isClearable:false})))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"m"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Column alias - optional"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldText"],{name:"aliasField",onChange:onChangeAlias}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{size:"s",fill:true,onClick:onAddExpression},"Add")))};var filter=__webpack_require__(91);var filter_default=__webpack_require__.n(filter);const ColumnExpression=_ref=>{let{index:index,currentColumnExpressionValue:currentColumnExpressionValue,columnExpressionValues:columnExpressionValues,setColumnExpressionValues:setColumnExpressionValues,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[isFunctionPopOverOpen,setIsFunctionPopOverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const[isAliasPopOverOpen,setIsAliasPopOverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const updateColumnExpressionValue=(newValue,columnIndex)=>{const updatedArray=[...columnExpressionValues];updatedArray[columnIndex]=newValue;setColumnExpressionValues(updatedArray)};const onDeleteColumnExpression=()=>{const newColumnExpresionValue=[...filter_default()(columnExpressionValues,o=>o.id!==currentColumnExpressionValue.id)];setAccelerationFormData(dist_default()(accData=>{accData.materializedViewQueryData.columnsValues=newColumnExpresionValue}));setColumnExpressionValues(newColumnExpresionValue)};const generateColumnValueExpression=(functionName,functionParam)=>{if(functionName!=="window.start")return`${functionName}(${functionParam})`;else return`${functionName}`};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"columnFunctionExpression-"+currentColumnExpressionValue.id,button:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"",value:generateColumnValueExpression(currentColumnExpressionValue.functionName,currentColumnExpressionValue.functionParam),isActive:isFunctionPopOverOpen,onClick:()=>{setIsAliasPopOverOpen(false);setIsFunctionPopOverOpen(true)}}),isOpen:isFunctionPopOverOpen,closePopover:()=>setIsFunctionPopOverOpen(false),panelPaddingSize:"s",anchorPosition:"downLeft"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Aggregate function"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{singleSelection:{asPlainText:true},options:constants["b"],selectedOptions:[{label:currentColumnExpressionValue.functionName}],onChange:functionOption=>updateColumnExpressionValue({...currentColumnExpressionValue,functionName:functionOption[0].label},index),isClearable:false}))),currentColumnExpressionValue.functionName!=="window.start"&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Aggregation field"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{singleSelection:{asPlainText:true},options:[{label:"*",disabled:currentColumnExpressionValue.functionName!=="count"},...accelerationFormData.dataTableFields.map(x=>({label:x.fieldName}))],selectedOptions:[{label:currentColumnExpressionValue.functionParam}],onChange:fieldOption=>updateColumnExpressionValue({...currentColumnExpressionValue,functionParam:fieldOption[0].label},index),isClearable:false}))))))),currentColumnExpressionValue.fieldAlias!==""&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"columnFunctionExpressionAlias-"+currentColumnExpressionValue.id,button:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"AS",color:"accent",value:currentColumnExpressionValue.fieldAlias,isActive:isAliasPopOverOpen,onClick:()=>{setIsFunctionPopOverOpen(false);setIsAliasPopOverOpen(true)}}),isOpen:isAliasPopOverOpen,closePopover:()=>setIsAliasPopOverOpen(false),panelPaddingSize:"s",anchorPosition:"downLeft"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Column alias"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldText"],{name:"aliasField",value:currentColumnExpressionValue.fieldAlias,onChange:e=>updateColumnExpressionValue({...currentColumnExpressionValue,fieldAlias:e.target.value},index)})))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{color:"danger",onClick:onDeleteColumnExpression,iconType:"trash","aria-label":"delete-column-expression"}))))};const GroupByTumbleExpression=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[IsGroupPopOverOpen,setIsGroupPopOverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const[groupbyValues,setGroupByValues]=Object(external_osdSharedDeps_React_["useState"])({timeField:"",tumbleWindow:1,tumbleInterval:constants["i"][2].value});const updateGroupByStates=newGroupByValue=>{setGroupByValues(newGroupByValue);setAccelerationFormData(dist_default()(accData=>{accData.materializedViewQueryData.groupByTumbleValue=newGroupByValue}))};const onChangeTumbleWindow=e=>{const newGroupByValue={...groupbyValues,tumbleWindow:parseInt(e.target.value,10)};updateGroupByStates(newGroupByValue)};const onChangeTumbleInterval=e=>{const newGroupByValue={...groupbyValues,tumbleInterval:e.target.value};updateGroupByStates(newGroupByValue)};const onChangeTimeField=selectedOptions=>{if(selectedOptions.length>0){const newGroupByValue={...groupbyValues,timeField:selectedOptions[0].label};updateGroupByStates(newGroupByValue)}};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"groupByTumblePopOver",button:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"GROUP BY",value:`TUMBLE(${groupbyValues.timeField}, '${groupbyValues.tumbleWindow} ${groupbyValues.tumbleInterval}${pluralizeTime(groupbyValues.tumbleWindow)}')`,isActive:IsGroupPopOverOpen,onClick:()=>setIsGroupPopOverOpen(true),isInvalid:hasError(accelerationFormData.formErrors,"materializedViewError")&&groupbyValues.timeField===""}),isOpen:IsGroupPopOverOpen,closePopover:()=>setIsGroupPopOverOpen(false),panelPaddingSize:"s",anchorPosition:"downLeft"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Time Field"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiComboBox"],{style:{minWidth:"200px"},placeholder:"Select one or more options",singleSelection:{asPlainText:true},options:accelerationFormData.dataTableFields.filter(value=>value.dataType.includes(constants["u"])).map(value=>({label:value.fieldName})),selectedOptions:[{label:groupbyValues.timeField}],onChange:onChangeTimeField,isClearable:false}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Tumble Window"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldNumber"],{value:groupbyValues.tumbleWindow,onChange:onChangeTumbleWindow,min:1}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFormRow"],{label:"Tumble Interval"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelect"],{value:groupbyValues.tumb
1leInterval,onChange:onChangeTumbleInterval,options:constants["i"]}))))))};const newColumnExpressionId=Object(external_osdSharedDeps_ElasticEui_["htmlIdGenerator"])()();const MaterializedViewBuilder=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[isColumnPopOverOpen,setIsColumnPopOverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const[columnExpressionValues,setColumnExpressionValues]=Object(external_osdSharedDeps_React_["useState"])([]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(accelerationFormData.dataTableFields.length>0){const newColumnExpresionValue=[{id:newColumnExpressionId,functionName:"count",functionParam:accelerationFormData.dataTableFields[0].fieldName,fieldAlias:"counter1"}];setAccelerationFormData(dist_default()(accData=>{accData.materializedViewQueryData.columnsValues=newColumnExpresionValue}));setColumnExpressionValues(newColumnExpresionValue)}},[accelerationFormData.dataTableFields]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"covering-index-builder"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Materialized view definition")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"CREATE MATERIALIZED VIEW",value:`${accelerationFormData.dataSource}.${accelerationFormData.database}.${accelerationFormData.accelerationIndexName}`}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{color:"accent",description:"AS SELECT",value:"",isInvalid:hasError(accelerationFormData.formErrors,"materializedViewError")&&columnExpressionValues.length<1})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(AddColumnPopOver,{isColumnPopOverOpen:isColumnPopOverOpen,setIsColumnPopOverOpen:setIsColumnPopOverOpen,columnExpressionValues:columnExpressionValues,setColumnExpressionValues:setColumnExpressionValues,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"column",gutterSize:"s"},map_default()(columnExpressionValues,(_,i)=>external_osdSharedDeps_React_default.a.createElement(ColumnExpression,{index:i,currentColumnExpressionValue:columnExpressionValues[i],columnExpressionValues:columnExpressionValues,setColumnExpressionValues:setColumnExpressionValues,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiExpression"],{description:"FROM",value:`${accelerationFormData.dataSource}.${accelerationFormData.database}.${accelerationFormData.dataTable}`}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(GroupByTumbleExpression,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}))};var differenceBy=__webpack_require__(46);var differenceBy_default=__webpack_require__.n(differenceBy);const AddFieldsModal=_ref=>{let{setIsAddModalVisible:setIsAddModalVisible,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[selectedFields,setSelectedFields]=Object(external_osdSharedDeps_React_["useState"])([]);const tableColumns=[{field:"fieldName",name:"Field name",sortable:true,truncateText:true},{field:"dataType",name:"Datatype",sortable:true,truncateText:true}];const pagination={initialPageSize:20,pageSizeOptions:[10,20,50]};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModal"],{onClose:()=>setIsAddModalVisible(false)},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalHeader"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalHeaderTitle"],null,external_osdSharedDeps_React_default.a.createElement("h1",null,"Add fields"))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalBody"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiInMemoryTable"],{items:differenceBy_default()(accelerationFormData.dataTableFields,accelerationFormData.skippingIndexQueryData,"id"),itemId:"id",columns:tableColumns,search:true,pagination:pagination,sorting:true,isSelectable:true,selection:{onSelectionChange:items=>setSelectedFields(items)}})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>setIsAddModalVisible(false)},"Cancel"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>{setAccelerationFormData(dist_default()(accData=>{accData.skippingIndexQueryData.push(...selectedFields.map(x=>({...x,accelerationMethod:"PARTITION"})));accData.formErrors.skippingIndexError=validateSkippingIndexData(accData.accelerationIndexType,accData.skippingIndexQueryData)}));setIsAddModalVisible(false)},fill:true},"Add")))};const DeleteFieldsModal=_ref=>{let{setIsDeleteModalVisible:setIsDeleteModalVisible,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}=_ref;const[selectedFields,setSelectedFields]=Object(external_osdSharedDeps_React_["useState"])([]);const tableColumns=[{field:"fieldName",name:"Field name",sortable:true,truncateText:true},{field:"dataType",name:"Datatype",sortable:true,truncateText:true},{field:"accelerationMethod",name:"Acceleration method",sortable:true,truncateText:true}];const pagination={initialPageSize:20,pageSizeOptions:[10,20,50]};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModal"],{onClose:()=>setIsDeleteModalVisible(false)},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalHeader"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalHeaderTitle"],null,external_osdSharedDeps_React_default.a.createElement("h1",null,"Bulk delete"))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalBody"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiInMemoryTable"],{items:accelerationFormData.skippingIndexQueryData,itemId:"id",columns:tableColumns,search:true,pagination:pagination,sorting:true,isSelectable:true,selection:{onSelectionChange:items=>setSelectedFields(items)}})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiModalFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>setIsDeleteModalVisible(false)},"Cancel"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>{setAccelerationFormData({...accelerationFormData,skippingIndexQueryData:differenceBy_default()(accelerationFormData.skippingIndexQueryData,selectedFields,"id")});setIsDeleteModalVisible(false)},color:"danger",fill:true},"Delete")))};var direct_query_hook=__webpack_require__(30);const GenerateFields=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,isSkippingtableLoading:isSkippingtableLoading,setIsSkippingtableLoading:setIsSkippingtableLoading,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}=_ref;const[isGenerateRun,setIsGenerateRun]=Object(external_osdSharedDeps_React_["useState"])(false);
1const{loadStatus:loadStatus,startLoading:startLoading,stopLoading:_stopLoading,pollingResult:pollingResult}=Object(direct_query_hook["a"])(http,notifications,dataSourceMDSId);const[replaceDefinitionModal,setReplaceDefinitionModal]=Object(external_osdSharedDeps_React_["useState"])(external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null));const mapToDataTableFields=fieldName=>accelerationFormData.dataTableFields.find(field=>field.fieldName===fieldName);const loadSkippingIndexDefinition=()=>{const combinedData=Object(shared["h"])(pollingResult.schema,pollingResult.datarows);const skippingIndexRows=combinedData.map(field=>({...mapToDataTableFields(field.column_name),accelerationMethod:field.skipping_type.split(" ")[0]}));setAccelerationFormData(dist_default()(accData=>{accData.skippingIndexQueryData=skippingIndexRows;accData.formErrors.skippingIndexError=validateSkippingIndexData(accData.accelerationIndexType,skippingIndexRows)}))};Object(external_osdSharedDeps_React_["useEffect"])(()=>{const status=loadStatus.toLowerCase();if(status===framework_types["b"].SUCCESS){loadSkippingIndexDefinition();setIsSkippingtableLoading(false)}else if(status===framework_types["b"].FAILED||status===framework_types["b"].CANCELED){setIsSkippingtableLoading(false)}},[loadStatus]);const runGeneration=()=>{const requestPayload={lang:"sql",query:`ANALYZE SKIPPING INDEX ON ${Object(shared["g"])(accelerationFormData.dataSource)}.${Object(shared["g"])(accelerationFormData.database)}.${Object(shared["g"])(accelerationFormData.dataTable)}`,datasource:accelerationFormData.dataSource};startLoading(requestPayload,dataSourceMDSId);setIsSkippingtableLoading(true);setIsGenerateRun(true);setReplaceDefinitionModal(external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null))};const replaceModalComponent=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiConfirmModal"],{title:"Replace definitions?",onCancel:()=>setReplaceDefinitionModal(external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null)),onConfirm:runGeneration,cancelButtonText:"Cancel",confirmButtonText:"Replace",defaultFocusedButton:"confirm"},external_osdSharedDeps_React_default.a.createElement("p",null,"Existing definitions will be removed and replaced with auto-generated definitions. Do you want to continue?"));const onClickGenerate=()=>{if(accelerationFormData.skippingIndexQueryData.length>0){setReplaceDefinitionModal(replaceModalComponent)}else{runGeneration()}};return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:onClickGenerate,isDisabled:isSkippingtableLoading},isGenerateRun?"Regenerate":"Generate"),replaceDefinitionModal)};const SkippingIndexBuilder=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}=_ref;const[pageIndex,setPageIndex]=Object(external_osdSharedDeps_React_["useState"])(0);const[pageSize,setPageSize]=Object(external_osdSharedDeps_React_["useState"])(20);const[totalItemCount,setTotalItemCount]=Object(external_osdSharedDeps_React_["useState"])(0);const[isAddModalVisible,setIsAddModalVisible]=Object(external_osdSharedDeps_React_["useState"])(false);const[isDeleteModalVisible,setIsDeleteModalVisible]=Object(external_osdSharedDeps_React_["useState"])(false);const[isSkippingtableLoading,setIsSkippingtableLoading]=Object(external_osdSharedDeps_React_["useState"])(false);let modal;if(isAddModalVisible)modal=external_osdSharedDeps_React_default.a.createElement(AddFieldsModal,{setIsAddModalVisible:setIsAddModalVisible,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData});if(isDeleteModalVisible)modal=external_osdSharedDeps_React_default.a.createElement(DeleteFieldsModal,{setIsDeleteModalVisible:setIsDeleteModalVisible,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData});const onTableChange=page=>{setPageIndex(page.index);setPageSize(page.size)};const onChangeAccelerationMethod=(e,updateRow)=>{setAccelerationFormData({...accelerationFormData,skippingIndexQueryData:accelerationFormData.skippingIndexQueryData.map(row=>row.id===updateRow.id?{...row,accelerationMethod:e.target.value}:row)})};const columns=[{field:"fieldName",name:"Field name",sortable:true,truncateText:true,readOnly:isSkippingtableLoading},{field:"dataType",name:"Datatype",sortable:true,truncateText:true,readOnly:isSkippingtableLoading},{name:"Acceleration method",render:item=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelect"],{id:"selectDocExample",options:item.dataType===constants["t"]?constants["q"].filter(method=>method.value!=="MIN_MAX"):constants["q"],value:item.accelerationMethod,onChange:e=>onChangeAccelerationMethod(e,item),"aria-label":"Use aria labels when no actual label is in use"}),readOnly:isSkippingtableLoading},{name:"Delete",readOnly:isSkippingtableLoading,render:item=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{onClick:()=>{setAccelerationFormData({...accelerationFormData,skippingIndexQueryData:accelerationFormData.skippingIndexQueryData.filter(o=>item.id!==o.id)})},iconType:"trash",color:"danger"})}];const pagination={pageIndex:pageIndex,pageSize:pageSize,totalItemCount:totalItemCount,pageSizeOptions:[10,20,50]};Object(external_osdSharedDeps_React_["useEffect"])(()=>{setTotalItemCount(accelerationFormData.skippingIndexQueryData.length)},[accelerationFormData.skippingIndexQueryData]);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{"data-test-subj":"skipping-index-builder"},external_osdSharedDeps_React_default.a.createElement("h3",null,"Skipping index definition")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiBasicTable"],{itemID:"id",items:accelerationFormData.skippingIndexQueryData.slice(pageSize*pageIndex,pageSize*(pageIndex+1)),columns:columns,pagination:pagination,onChange:_ref2=>{let{page:page}=_ref2;return onTableChange(page)},hasActions:true,error:accelerationFormData.formErrors.skippingIndexError.join(""),loading:isSkippingtableLoading,noItemsMessage:isSkippingtableLoading?"Auto-generating skipping index definition.":"You have no definitions defined."}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"spaceBetween"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{gutterSize:"s",alignItems:"center",responsive:false,wrap:true},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>setIsAddModalVisible(true),isDisabled:isSkippingtableLoading},"Add fields")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:()=>setIsDeleteModalVisible(true),isDisabled:isSkippingtableLoading,color:"danger"}
1,"Bulk delete")))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(GenerateFields,{isSkippingtableLoading:isSkippingtableLoading,setIsSkippingtableLoading:setIsSkippingtableLoading,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}))),modal)};const QueryVisualEditor=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}=_ref;return tableFieldsLoading?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{alignItems:"center",gutterSize:"s",direction:"column"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLoadingSpinner"],{size:"l"})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},"Loading tables fields"))):external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"l"}),accelerationFormData.accelerationIndexType==="skipping"&&external_osdSharedDeps_React_default.a.createElement(SkippingIndexBuilder,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}),accelerationFormData.accelerationIndexType==="covering"&&external_osdSharedDeps_React_default.a.createElement(CoveringIndexBuilder,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}),accelerationFormData.accelerationIndexType==="materialized"&&external_osdSharedDeps_React_default.a.createElement(MaterializedViewBuilder,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}))};const CreateAccelerationButton=_ref=>{let{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,resetFlyout:resetFlyout,refreshHandler:refreshHandler,http:http,notifications:notifications,dataSourceMDSId:dataSourceMDSId}=_ref;const{loadStatus:directqueryLoadStatus,startLoading:startDirectQuery}=Object(direct_query_hook["a"])(http,notifications,dataSourceMDSId);const[isLoading,setIsLoading]=Object(external_osdSharedDeps_React_["useState"])(false);const createAcceleration=()=>{const errors=formValidator(accelerationFormData);if(hasError(errors)){setAccelerationFormData({...accelerationFormData,formErrors:errors});return}const requestPayload={lang:"sql",query:accelerationQueryBuilder(accelerationFormData).replaceAll(constants["o"]," "),datasource:accelerationFormData.dataSource};startDirectQuery(requestPayload);setIsLoading(true)};Object(external_osdSharedDeps_React_["useEffect"])(()=>{const status=directqueryLoadStatus.toLowerCase();if(status===framework_types["b"].SUCCESS){setIsLoading(false);notifications.toasts.addSuccess("Create acceleration query submitted successfully!");if(refreshHandler)refreshHandler();resetFlyout()}else if(status===framework_types["b"].FAILED||status===framework_types["b"].CANCELED){setIsLoading(false)}},[directqueryLoadStatus]);const createAccelerationBtn=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{onClick:createAcceleration,fill:true,isLoading:isLoading},isLoading?"Creating acceleration":"Create acceleration");return createAccelerationBtn};var components_constants=__webpack_require__(15);const CreateAccelerationHeader=()=>external_osdSharedDeps_React_default.a.createElement("div",null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPageHeader"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPageHeaderSection"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s","data-test-subj":"acceleration-header"},external_osdSharedDeps_React_default.a.createElement("h1",null,"Accelerate data")))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"s"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",color:"subdued"},"Create OpenSearch Indexes from external data connections for better performance."," ",external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{external:true,href:components_constants["d"],target:"_blank"},"Learn more")));const CreateAcceleration=_ref=>{let{selectedDatasource:selectedDatasource,resetFlyout:resetFlyout,databaseName:databaseName,tableName:tableName,dataSourceMDSId:dataSourceMDSId,refreshHandler:refreshHandler,http:http,notifications:notifications,application:application}=_ref;const[accelerationFormData,setAccelerationFormData]=Object(external_osdSharedDeps_React_["useState"])({dataSource:selectedDatasource,database:databaseName!==null&&databaseName!==void 0?databaseName:"",dataTable:tableName!==null&&tableName!==void 0?tableName:"",dataTableFields:[],accelerationIndexType:"skipping",ski
1ppingIndexQueryData:[],coveringIndexQueryData:[],materializedViewQueryData:{columnsValues:[],groupByTumbleValue:{timeField:"",tumbleWindow:0,tumbleInterval:constants["i"][2].value}},accelerationIndexName:constants["c"],primaryShardsCount:1,replicaShardsCount:1,refreshType:"autoInterval",checkpointLocation:undefined,watermarkDelay:{delayWindow:1,delayInterval:constants["i"][2].value},refreshIntervalOptions:{refreshWindow:15,refreshInterval:constants["g"][0].value},formErrors:{dataSourceError:[],databaseError:[],dataTableError:[],skippingIndexError:[],coveringIndexError:[],materializedViewError:[],indexNameError:[],primaryShardsError:[],replicaShardsError:[],refreshIntervalError:[],checkpointLocationError:[],watermarkDelayError:[]}});const[tableFieldsLoading,setTableFieldsLoading]=Object(external_osdSharedDeps_React_["useState"])(false);if(dataSourceMDSId===undefined){dataSourceMDSId=""}const{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoadingTableFields}=Object(cache_loader["c"])(http,notifications);const loadColumnsToAccelerationForm=cachedTable=>{var _cachedTable$columns;const idPrefix=Object(external_osdSharedDeps_ElasticEui_["htmlIdGenerator"])()();const dataTableFields=((_cachedTable$columns=cachedTable.columns)===null||_cachedTable$columns===void 0?void 0:_cachedTable$columns.map((col,index)=>({...col,id:`${idPrefix}${index+1}`})))||[];setAccelerationFormData({...accelerationFormData,dataTableFields:dataTableFields})};const initiateColumnLoad=(dataSource,database,dataTable)=>{setAccelerationFormData({...accelerationFormData,dataTableFields:[],skippingIndexQueryData:[],coveringIndexQueryData:[],materializedViewQueryData:{columnsValues:[],groupByTumbleValue:{timeField:"",tumbleWindow:0,tumbleInterval:constants["i"][2].value}}});stopLoadingTableFields();if(dataTable!==""){setTableFieldsLoading(true);try{const cachedTable=cache_manager["a"].getTable(dataSource,database,dataTable,dataSourceMDSId);if(cachedTable.columns){loadColumnsToAccelerationForm(cachedTable);setTableFieldsLoading(false)}else{startLoading({dataSourceName:dataSource,dataSourceMDSId:dataSourceMDSId,databaseName:database,tableName:dataTable})}}catch(error){notifications.toasts.addWarning("Your cache is outdated, refresh databases and tables");console.error(error)}}};Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(databaseName!==undefined&&tableName!==undefined){initiateColumnLoad(accelerationFormData.dataSource,accelerationFormData.database,accelerationFormData.dataTable)}},[databaseName,tableName]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{const status=loadStatus.toLowerCase();if(status===framework_types["b"].SUCCESS){let cachedTable={};try{cachedTable=cache_manager["a"].getTable(accelerationFormData.dataSource,accelerationFormData.database,accelerationFormData.dataTable,dataSourceMDSId)}catch(error){notifications.toasts.addWarning("Your cache is outdated, refresh databases and tables");console.error(error)}loadColumnsToAccelerationForm(cachedTable);setTableFieldsLoading(false)}else if(status===framework_types["b"].FAILED||status===framework_types["b"].CANCELED){setTableFieldsLoading(false)}},[loadStatus]);Object(external_osdSharedDeps_React_["useEffect"])(()=>()=>{stopLoadingTableFields()},[]);const dataSourcesPreselected=databaseName!==undefined&&tableName!==undefined;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyout"],{ownFocus:true,onClose:resetFlyout,"aria-labelledby":"flyoutTitle",size:"m"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutHeader"],{hasBorder:true},external_osdSharedDeps_React_default.a.createElement(CreateAccelerationHeader,null)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutBody"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiForm"],{isInvalid:hasError(accelerationFormData.formErrors),error:Object.values(accelerationFormData.formErrors).flat(),component:"div",id:"acceleration-form"},external_osdSharedDeps_React_default.a.createElement(AccelerationDataSourceSelector,{http:http,notifications:notifications,accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,selectedDatasource:selectedDatasource,dataSourcesPreselected:dataSourcesPreselected,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"xxl"}),external_osdSharedDeps_React_default.a.createElement(IndexTypeSelector,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,initiateColumnLoad:initiateColumnLoad}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"xxl"}),external_osdSharedDeps_React_default.a.createElement(IndexSettingOptions,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"m"}),external_osdSharedDeps_React_default.a.createElement(QueryVisualEditor,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,tableFieldsLoading:tableFieldsLoading,dataSourceMDSId:dataSourceMDSId,http:http,notifications:notifications}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"xxl"}),external_osdSharedDeps_React_default.a.createElement(IndexAdvancedSettings,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],{size:"l"}),external_osdSharedDeps_React_default.a.createElement(PreviewSQLDefinition,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,resetFlyout:resetFlyout,notifications:notifications,application:application,http:http}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"spaceBetween"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{iconType:"cross",onClick:resetFlyout,flush:"left"},"Cancel")),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(CreateAccelerationButton,{accelerationFormData:accelerationFormData,setAccelerationFormData:setAccelerationFormData,resetFlyout:resetFlyout,refreshHandler:refreshHandler,http:http,notifications:notifications,dataSourceMDSId:dataSourceMDSId}))))))};var associated_objects_tab_utils=__webpack_require__(28);const AssociatedObjectsDetailsFlyout=_ref=>{let{tableDetail:tableDetail,datasourceName:datasourceName,resetFlyout:resetFlyout,handleRefresh:handleRefresh,http:http,notifications:notifications,dataSourceMDSId:dataSourceMDSId,application:application}=_ref;
1const{loadStatus:loadStatus,startLoading:startLoading}=Object(cache_loader["c"])(http,notifications);const[tableColumns,setTableColumns]=Object(external_osdSharedDeps_React_["useState"])([]);const[schemaData,setSchemaData]=Object(external_osdSharedDeps_React_["useState"])([]);const DiscoverButton=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{isDisabled:(()=>{try{return!Object(utils["getUiSettings"])().get("query:enhancements:enabled")}catch(e){return false}})(),onClick:()=>{if(tableDetail.type!=="table")return;Object(associated_objects_tab_utils["i"])(tableDetail.datasource,dataSourceMDSId,tableDetail.database,tableDetail.name,application);resetFlyout()}},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"discoverApp",size:"m"}));const AccelerateButton=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{onClick:()=>renderCreateAccelerationFlyout({dataSourceName:datasourceName,databaseName:tableDetail.database,tableName:tableDetail.name,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId})},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"bolt",size:"m"}));const DetailComponent=detailProps=>{const{title:title,description:description}=detailProps;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionList"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListTitle"],null,title),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiDescriptionListDescription"],null,description)))};const ConnectionComponent=()=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"row"},external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Datasource connection",description:tableDetail.datasource}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Database",description:tableDetail.database}),external_osdSharedDeps_React_default.a.createElement(DetailComponent,{title:"Table",description:tableDetail.name}));const TableTitleComponent=titleProps=>{const{title:title}=titleProps;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiTitle"],{size:"s"},external_osdSharedDeps_React_default.a.createElement("h4",null,title)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiHorizontalRule"],{margin:"s"}))};const accelerationData=tableDetail.accelerations.map((acc,index)=>({...acc,id:index}));const accelerationColumns=[{field:"name",name:"Name","data-test-subj":"accelerationName",render:(_,item)=>{const name=Object(acceleration_utils["l"])(item,datasourceName);return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{onClick:()=>renderAccelerationDetailsFlyout({acceleration:item,dataSourceName:datasourceName,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId})},name)}},{field:"status",name:"Status",render:status=>external_osdSharedDeps_React_default.a.createElement(acceleration_utils["h"],{status:status})},{field:"type",name:"Type"}];const noDataMessage=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiEmptyPrompt"],{title:external_osdSharedDeps_React_default.a.createElement("h2",null,external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.associatedObjectsFlyout.noAccelerationTitle",{defaultMessage:"You have no accelerations"})),body:external_osdSharedDeps_React_default.a.createElement("p",null,external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.associatedObjectsFlyout.noAccelerationDescription",{defaultMessage:"Accelerate query performing through OpenSearch Indexing"})),actions:external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{color:"primary",fill:true,onClick:()=>renderCreateAccelerationFlyout({dataSourceName:datasourceName,databaseName:tableDetail.database,tableName:tableDetail.name,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId}),iconType:"popout",iconSide:"left"},external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.associatedObjectsFlyout.createAccelerationButton",{defaultMessage:"Create Acceleration"}))});const schemaColumns=[{field:"name",name:"Column Name","data-test-subj":"columnName"},{field:"dataType",name:"Data Type","data-test-subj":"columnDataType"}];
1const renderAccelerationDetailsFlyout=getRenderAccelerationDetailsFlyout();Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(tableDetail&&!tableDetail.columns){try{const tables=cache_manager["a"].getTable(datasourceName,tableDetail.database,tableDetail.name,dataSourceMDSId);if(tables!==null&&tables!==void 0&&tables.columns){setTableColumns(tables===null||tables===void 0?void 0:tables.columns)}else{startLoading({dataSourceName:datasourceName,databaseName:tableDetail.database,tableName:tableDetail.name,dataSourceMDSId:dataSourceMDSId})}}catch(error){console.error(error);notifications.toasts.addWarning("Your cache is outdated, refresh databases and tables")}}else if(tableDetail&&tableDetail.columns){setTableColumns(tableDetail.columns)}},[]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{if(loadStatus.toLowerCase()===framework_types["b"].SUCCESS){let columns;try{columns=cache_manager["a"].getTable(datasourceName,tableDetail.database,tableDetail.name,dataSourceMDSId).columns;setTableColumns(columns)}catch(error){console.error(error);notifications.toasts.addWarning("Your cache is outdated, refresh databases and tables")}}},[loadStatus]);Object(external_osdSharedDeps_React_["useEffect"])(()=>{setSchemaData(tableColumns===null||tableColumns===void 0?void 0:tableColumns.map((column,index)=>({name:column.fieldName,dataType:column.dataType,id:index})))},[tableColumns]);const renderCreateAccelerationFlyout=getRenderCreateAccelerationFlyout();return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutHeader"],{hasBorder:true},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{direction:"row",alignItems:"center",gutterSize:"m"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"m"},external_osdSharedDeps_React_default.a.createElement("h2",{className:"accsDetailFlyoutTitle"},tableDetail.name))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(DiscoverButton,null)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(AccelerateButton,null)))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlyoutBody"],null,external_osdSharedDeps_React_default.a.createElement(ConnectionComponent,null),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(TableTitleComponent,{title:"Accelerations"}),accelerationData.length>0?external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiInMemoryTable"],{items:accelerationData,columns:accelerationColumns,pagination:true,sorting:true})):noDataMessage,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSpacer"],null),external_osdSharedDeps_React_default.a.createElement(TableTitleComponent,{title:"Schema"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiInMemoryTable"],{items:schemaData,columns:schemaColumns,pagination:true,sorting:true,loading:Object(associated_objects_tab_utils["f"])(loadStatus)})))};function plugin_defineProperty(e,r,t){return(r=plugin_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function plugin_toPropertyKey(t){var i=plugin_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function plugin_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}
1const[getRenderAccelerationDetailsFlyout,setRenderAccelerationDetailsFlyout]=Object(opensearchDashboardsUtils_public_["createGetterSetter"])("renderAccelerationDetailsFlyout");const[getRenderCreateAccelerationFlyout,setRenderCreateAccelerationFlyout]=Object(opensearchDashboardsUtils_public_["createGetterSetter"])("renderCreateAccelerationFlyout");const[getRenderAssociatedObjectsDetailsFlyout,setRenderAssociatedObjectsDetailsFlyout]=Object(opensearchDashboardsUtils_public_["createGetterSetter"])("renderAssociatedObjectsDetailsFlyout");const DSM_APP_ID="dataSources";class plugin_DataSourceManagementPlugin{constructor(){plugin_defineProperty(this,"started",false);plugin_defineProperty(this,"authMethodsRegistry",new authentication_methods_registry_AuthenticationMethodRegistry);plugin_defineProperty(this,"dataSourceSelection",new data_source_selection_service["a"]);plugin_defineProperty(this,"featureFlagStatus",false)}setup(core,_ref){let{management:management,indexPatternManagement:indexPatternManagement,dataSource:dataSource}=_ref;const opensearchDashboardsSection=management.sections.section.opensearchDashboards;const uiSettings=core.uiSettings;Object(utils["setUiSettings"])(uiSettings);if(!opensearchDashboardsSection){throw new Error("`opensearchDashboards` management section not found.")}const savedObjectPromise=core.getStartServices().then(_ref2=>{let[coreStart]=_ref2;return coreStart.savedObjects});const column=new data_source_column_DataSourceColumn(savedObjectPromise,uiSettings.get("home:useNewHomePage"));indexPatternManagement.columns.register(column);this.featureFlagStatus=!!dataSource;opensearchDashboardsSection.registerApp({id:DSM_APP_ID,title:common["b"],order:1,mount:async params=>{const{mountManagementSection:mountManagementSection}=await Promise.all([__webpack_require__.e(0),__webpack_require__.e(1)]).then(__webpack_require__.bind(null,494));return mountManagementSection(core.getStartServices,params,this.authMethodsRegistry,this.featureFlagStatus)}});if(core.chrome.navGroup.getNavGroupEnabled()){core.application.register({id:DSM_APP_ID,title:common["b"],order:100,description:external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.description",{defaultMessage:"Create and manage data source connections."}),mount:async params=>{const{mountManagementSection:mountManagementSection}=await Promise.all([__webpack_require__.e(0),__webpack_require__.e(1)]).then(__webpack_require__.bind(null,494));const[coreStart]=await core.getStartServices();return mountManagementSection(core.getStartServices,{...params,basePath:core.http.basePath.get(),setBreadcrumbs:breadCrumbs=>coreStart.chrome.setBreadcrumbs(Object(opensearchDashboardsReact_public_["getScopedBreadcrumbs"])(breadCrumbs,params.history)),wrapInPage:true},this.authMethodsRegistry,this.featureFlagStatus)}})}core.chrome.navGroup.addNavLinksToGroup(public_["DEFAULT_NAV_GROUPS"].dataAdministration,[{id:DSM_APP_ID,category:public_["DEFAULT_APP_CATEGORIES"].manageData,order:100}]);if(!this.featureFlagStatus){return undefined}const registerAuthenticationMethod=authMethod=>{if(this.started){throw new Error("cannot call `registerAuthenticationMethod` after data source management startup.")}this.authMethodsRegistry.registerAuthenticationMethod(authMethod)};if(dataSource.noAuthenticationTypeEnabled){registerAuthenticationMethod(types["g"])}if(dataSource.usernamePasswordAuthEnabled){registerAuthenticationMethod(types["j"])}if(dataSource.awsSigV4AuthEnabled){registerAuthenticationMethod(types["h"])}Object(utils["setHideLocalCluster"])({enabled:dataSource.hideLocalCluster});Object(utils["setDataSourceSelection"])(this.dataSourceSelection);return{registerAuthenticationMethod:registerAuthenticationMethod,dataSourceSelection:this.dataSourceSelection,ui:{DataSourceSelector:createDataSourceSelector(uiSettings,dataSource),getDataSourceMenu:()=>Object(create_data_source_menu["a"])()},getDefaultDataSourceId:utils["getDefaultDataSourceId"],getDefaultDataSourceId$:utils["getDefaultDataSourceId$"]}}start(core){this.started=true;Object(utils["setApplication"])(core.application);core.http.intercept({request:catalogRequestIntercept()});
1const renderAccelerationDetailsFlyout=_ref3=>{let{acceleration:acceleration,dataSourceName:dataSourceName,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId}=_ref3;const accelerationDetailsFlyout=core.overlays.openFlyout(Object(opensearchDashboardsReact_public_["toMountPoint"])(external_osdSharedDeps_React_default.a.createElement(AccelerationDetailsFlyout,{featureFlagStatus:this.featureFlagStatus,acceleration:acceleration,dataSourceName:dataSourceName,resetFlyout:()=>accelerationDetailsFlyout.close(),handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId,http:core.http,notifications:core.notifications,application:core.application})))};setRenderAccelerationDetailsFlyout(renderAccelerationDetailsFlyout);const renderCreateAccelerationFlyout=_ref4=>{let{dataSourceName:dataSourceName,databaseName:databaseName,tableName:tableName,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId}=_ref4;const createAccelerationFlyout=core.overlays.openFlyout(Object(opensearchDashboardsReact_public_["toMountPoint"])(external_osdSharedDeps_React_default.a.createElement(CreateAcceleration,{selectedDatasource:dataSourceName,resetFlyout:()=>createAccelerationFlyout.close(),databaseName:databaseName,tableName:tableName,refreshHandler:handleRefresh,dataSourceMDSId:dataSourceMDSId,http:core.http,notifications:core.notifications,application:core.application})))};setRenderCreateAccelerationFlyout(renderCreateAccelerationFlyout);const renderAssociatedObjectsDetailsFlyout=_ref5=>{let{tableDetail:tableDetail,dataSourceName:dataSourceName,handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId}=_ref5;const associatedObjectsDetailsFlyout=core.overlays.openFlyout(Object(opensearchDashboardsReact_public_["toMountPoint"])(external_osdSharedDeps_React_default.a.createElement(AssociatedObjectsDetailsFlyout,{tableDetail:tableDetail,datasourceName:dataSourceName,resetFlyout:()=>associatedObjectsDetailsFlyout.close(),handleRefresh:handleRefresh,dataSourceMDSId:dataSourceMDSId,http:core.http,notifications:core.notifications,application:core.application})))};setRenderAssociatedObjectsDetailsFlyout(renderAssociatedObjectsDetailsFlyout);return{getAuthenticationMethodRegistry:()=>this.authMethodsRegistry}}stop(){}}},function(module,__webpack_exports__,__webpack_require__){"use strict";var _data_source_menu__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(35);__webpack_require__.d(__webpack_exports__,"c",(function(){return _data_source_menu__WEBPACK_IMPORTED_MODULE_0__["a"]}));var _create_data_source_menu__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(43);__webpack_require__.d(__webpack_exports__,"h",(function(){return _create_data_source_menu__WEBPACK_IMPORTED_MODULE_1__["a"]}));var _types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(14);__webpack_require__.d(__webpack_exports__,"f",(function(){return _types__WEBPACK_IMPORTED_MODULE_2__["DataSourceSelectableConfig"]}));__webpack_require__.d(__webpack_exports__,"a",(function(){return _types__WEBPACK_IMPORTED_MODULE_2__["DataSourceAggregatedViewConfig"]}));__webpack_require__.d(__webpack_exports__,"b",(function(){return _types__WEBPACK_IMPORTED_MODULE_2__["b"]}));__webpack_require__.d(__webpack_exports__,"g",(function(){return _types__WEBPACK_IMPORTED_MODULE_2__["DataSourceViewConfig"]}));__webpack_require__.d(__webpack_exports__,"d",(function(){return _types__WEBPACK_IMPORTED_MODULE_2__["DataSourceMenuProps"]}));__webpack_require__.d(__webpack_exports__,"e",(function(){return _types__WEBPACK_IMPORTED_MODULE_2__["DataSourceMultiSelectableConfig"]}))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DataSourceItem}));var external_osdSharedDeps_React_=__webpack_require__(0);var external_osdSharedDeps_React_default=__webpack_require__.n(external_osdSharedDeps_React_);var external_osdSharedDeps_ElasticEui_=__webpack_require__(1);const DataSourceItem=_ref=>{let{className:className,option:option,defaultDataSource:defaultDataSource}=_ref;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"spaceBetween",className:`${className}OuiFlexGroup`},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{className:`${className}OuiFlexItem`,grow:false},option.label||""),option.id===defaultDataSource&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiBadge"],{iconSide:"left"},"Default")))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"k",(function(){return QUERY_RESTRICTED}));__webpack_require__.d(__webpack_exports__,"j",(function(){return QUERY_ALL}));__webpack_require__.d(__webpack_exports__,"g",(function(){return LOCAL_CLUSTER}));__webpack_require__.d(__webpack_exports__,"d",(function(){return DatasourceTypeToDisplayName}));__webpack_require__.d(__webpack_exports__,"i",(function(){return PROMETHEUS_URL}));__webpack_require__.d(__webpack_exports__,"a",(function(){return AMAZON_S3_URL}));__webpack_require__.d(__webpack_exports__,"h",(function(){return OPENSEARCH_URL}));__webpack_require__.d(__webpack_exports__,"m",(function(){return UrlToDatasourceType}));__webpack_require__.d(__webpack_exports__,"b",(function(){return DATACONNECTIONS_BASE}));__webpack_require__.d(__webpack_exports__,"l",(function(){return SECURITY_ROLES}));__webpack_require__.d(__webpack_exports__,"e",(function(){return EDIT}));__webpack_require__.d(__webpack_exports__,"c",(function(){return DATACONNECTIONS_UPDATE_STATUS}));__webpack_require__.d(__webpack_exports__,"f",(function(){return INTEGRATIONS_BASE}));const QUERY_RESTRICTED="query-restricted";const QUERY_ALL="query-all";const LOCAL_CLUSTER="local_cluster";const DatasourceTypeToDisplayName={PROMETHEUS:"Prometheus",S3GLUE:"Amazon S3"};const PROMETHEUS_URL="Prometheus";const AMAZON_S3_URL="AmazonS3AWSGlue";const OPENSEARCH_URL="OpenSearch";const UrlToDatasourceType={[PROMETHEUS_URL]:"PROMETHEUS",[AMAZON_S3_URL]:"S3GLUE"};const DATACONNECTIONS_BASE="/api/directquery/dataconnections";const SECURITY_ROLES="/api/v1/configuration/roles";const EDIT="/edit";const DATACONNECTIONS_UPDATE_STATUS="/status";const INTEGRATIONS_BASE="/api/integrations";const observabilityMetricsID="observability-metrics"},function(module,exports,__webpack_require__){var freeGlobal=__webpack_require__(71);var freeSelf=typeof self=="object"&&self&&self.Object===Object&&self;var root=freeGlobal||freeSelf||Function("return this")();module.exports=root},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return useLoadDatabasesToCache}));__webpack_require__.d(__webpack_exports__,"d",(function(){return useLoadTablesToCache}));__webpack_require__.d(__webpack_exports__,"c",(function(){return useLoadTableColumnsToCache}));__webpack_require__.d(__webpack_exports__,"a",(function(){return useLoadAccelerationsToCache}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);var _constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5);var _types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3);var _utils_query_session_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(32);var _utils_shared__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8);var _utils_use_polling__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(45);var _requests_sql__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(44);var _cache_manager__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10);const updateDatabasesToCache=(dataSourceName,pollingResult,dataSourceMDSId)=>{const cachedDataSource=_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].getOrCreateDataSource(dataSourceName,dataSourceMDSId);const currentTime=(new Date).toUTCString();if(!pollingResult){_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].addOrUpdateDataSource({...cachedDataSource,databases:[],lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Failed,...dataSourceMDSId&&{dataSourceMDSId:dataSourceMDSId}},dataSourceMDSId);return}const combinedData=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["h"])(pollingResult.schema,pollingResult.datarows);const newDatabases=combinedData.map(row=>({name:row.namespace,tables:[],lastUpdated:"",status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Empty}));_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].addOrUpdateDataSource({...cachedDataSource,databases:newDatabases,lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Updated,...dataSourceMDSId&&{dataSourceMDSId:dataSourceMDSId}},dataSourceMDSId)};const updateTablesToCache=(dataSourceName,databaseName,pollingResult,dataSourceMDSId)=>{try{const cachedDatabase=_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].getDatabase(dataSourceName,databaseName,dataSourceMDSId);const currentTime=(new Date).toUTCString();if(!pollingResult){_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].updateDatabase(dataSourceName,{...cachedDatabase,tables:[],lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Failed},dataSourceMDSId);return}const combinedData=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["h"])(pollingResult.schema,pollingResult.datarows);const newTables=combinedData.filter(row=>!_constants__WEBPACK_IMPORTED_MODULE_1__["r"].test(row.information)).map(row=>({name:row.tableName}));_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].updateDatabase(dataSourceName,{...cachedDatabase,tables:newTables,lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Updated},dataSourceMDSId)}catch(error){console.error(error)}};const updateAccelerationsToCache=(dataSourceName,pollingResult,dataSourceMDSId)=>{const currentTime=(new Date).toUTCString();if(!pollingResult){_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].addOrUpdateAccelerationsByDataSource({name:dataSourceName,accelerations:[],lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Failed,...dataSourceMDSId&&{dataSourceMDSId:dataSourceMDSId}});return}const combinedData=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["h"])(pollingResult.schema,pollingResult.datarows);const newAccelerations=combinedData.map(row=>({flintIndexName:row.flint_index_name,type:row.kind==="mv"?"materialized":row.kind,database:row.database,table:row.table,indexName:row.index_name,autoRefresh:row.auto_refresh,status:row.status}));_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].addOrUpdateAccelerationsByDataSource({name:dataSourceName,accelerations:newAccelerations,lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Updated,...dataSourceMDSId&&{dataSourceMDSId:dataSourceMDSId}})};const updateTableColumnsToCache=(dataSourceName,databaseName,tableName,pollingResult,dataSourceMDSId)=>{try{if(!pollingResult){return}const cachedDatabase=_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].getDatabase(dataSourceName,databaseName,dataSourceMDSId);const currentTime=(new Date).toUTCString();const combinedData=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["h"])(pollingResult.schema,pollingResult.datarows);const tableColumns=[];for(const row of combinedData){if(row.col_name===_constants__WEBPACK_IMPORTED_MODULE_1__["s"]){break}
1tableColumns.push({fieldName:row.col_name,dataType:row.data_type})}const newTables=cachedDatabase.tables.map(ts=>ts.name===tableName?{...ts,columns:tableColumns}:{...ts});if(cachedDatabase.status===_types__WEBPACK_IMPORTED_MODULE_2__["a"].Updated){_cache_manager__WEBPACK_IMPORTED_MODULE_7__["a"].updateDatabase(dataSourceName,{...cachedDatabase,tables:newTables,lastUpdated:currentTime,status:_types__WEBPACK_IMPORTED_MODULE_2__["a"].Updated},dataSourceMDSId)}}catch(error){console.error(error)}};const updateToCache=(pollResults,loadCacheType,dataSourceName,databaseName,tableName,dataSourceMDSId)=>{switch(loadCacheType){case"databases":updateDatabasesToCache(dataSourceName,pollResults,dataSourceMDSId);break;case"tables":updateTablesToCache(dataSourceName,databaseName,pollResults,dataSourceMDSId);break;case"accelerations":updateAccelerationsToCache(dataSourceName,pollResults,dataSourceMDSId);break;case"tableColumns":updateTableColumnsToCache(dataSourceName,databaseName,tableName,pollResults,dataSourceMDSId);default:break}};const createLoadQuery=(loadCacheType,dataSourceName,databaseName,tableName)=>{let query;switch(loadCacheType){case"databases":query=`SHOW SCHEMAS IN ${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(dataSourceName)}`;break;case"tables":query=`SHOW TABLE EXTENDED IN ${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(dataSourceName)}.${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(databaseName)} LIKE '*'`;break;case"accelerations":query=`SHOW FLINT INDEX in ${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(dataSourceName)}`;break;case"tableColumns":query=`DESC ${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(dataSourceName)}.${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(databaseName)}.${Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["g"])(tableName)}`;break;default:query="";break}return query};
1const useLoadToCache=(loadCacheType,http,notifications)=>{const sqlService=new _requests_sql__WEBPACK_IMPORTED_MODULE_6__["a"](http);const[currentDataSourceName,setCurrentDataSourceName]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])("");const[currentDatabaseName,setCurrentDatabaseName]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])("");const[currentTableName,setCurrentTableName]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])("");const[loadStatus,setLoadStatus]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(_types__WEBPACK_IMPORTED_MODULE_2__["b"].INITIAL);const dataSourceMDSClientId=Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])("");const{data:pollingResult,loading:_pollingLoading,error:pollingError,startPolling:startPolling,stopPolling:stopLoading}=Object(_utils_use_polling__WEBPACK_IMPORTED_MODULE_5__["a"])(params=>sqlService.fetchWithJobId(params,dataSourceMDSClientId.current),_constants__WEBPACK_IMPORTED_MODULE_1__["l"]);const onLoadingFailed=()=>{setLoadStatus(_types__WEBPACK_IMPORTED_MODULE_2__["b"].FAILED);updateToCache(null,loadCacheType,currentDataSourceName,currentDatabaseName,currentTableName,dataSourceMDSClientId.current)};const startLoading=_ref=>{let{dataSourceName:dataSourceName,dataSourceMDSId:dataSourceMDSId,databaseName:databaseName,tableName:tableName}=_ref;setLoadStatus(_types__WEBPACK_IMPORTED_MODULE_2__["b"].SCHEDULED);setCurrentDataSourceName(dataSourceName);setCurrentDatabaseName(databaseName);setCurrentTableName(tableName);dataSourceMDSClientId.current=dataSourceMDSId||"";let requestPayload={lang:"sql",query:createLoadQuery(loadCacheType,dataSourceName,databaseName,tableName),datasource:dataSourceName};const sessionId=Object(_utils_query_session_utils__WEBPACK_IMPORTED_MODULE_3__["a"])(dataSourceName);if(sessionId){requestPayload={...requestPayload,sessionId:sessionId}}sqlService.fetch(requestPayload,dataSourceMDSId).then(result=>{Object(_utils_query_session_utils__WEBPACK_IMPORTED_MODULE_3__["b"])(dataSourceName,Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["j"])(result,"sessionId",null));if(result.queryId){startPolling({queryId:result.queryId})}else{console.error("No query id found in response");onLoadingFailed()}}).catch(e=>{var _e$body;onLoadingFailed();const formattedError=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["i"])("","The query failed to execute and the operation could not be complete.",(_e$body=e.body)===null||_e$body===void 0?void 0:_e$body.message);notifications.toasts.addError(formattedError,{title:"Query Failed"});console.error(e)})};Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(()=>{if(!pollingResult)return;const{status:anyCaseStatus,datarows:datarows,error:error}=pollingResult;const status=anyCaseStatus===null||anyCaseStatus===void 0?void 0:anyCaseStatus.toLowerCase();if(status===_types__WEBPACK_IMPORTED_MODULE_2__["b"].SUCCESS||datarows){setLoadStatus(status);stopLoading();updateToCache(pollingResult,loadCacheType,currentDataSourceName,currentDatabaseName,currentTableName,dataSourceMDSClientId.current)}else if(status===_types__WEBPACK_IMPORTED_MODULE_2__["b"].FAILED){onLoadingFailed();stopLoading();const formattedError=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["i"])("","The query failed to execute and the operation could not be complete.",error);notifications.toasts.addError(formattedError,{title:"Query Failed"})}else{setLoadStatus(status)}},[pollingResult,pollingError]);return{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}};
1const useLoadDatabasesToCache=(http,notifications)=>{const{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}=useLoadToCache("databases",http,notifications);return{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}};const useLoadTablesToCache=(http,notifications)=>{const{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}=useLoadToCache("tables",http,notifications);return{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}};const useLoadTableColumnsToCache=(http,notifications)=>{const{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}=useLoadToCache("tableColumns",http,notifications);return{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}};const useLoadAccelerationsToCache=(http,notifications)=>{const{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}=useLoadToCache("accelerations",http,notifications);return{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading}}},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/opensearchDashboardsUtils/public");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"c",(function(){return LocalCluster}));__webpack_require__.d(__webpack_exports__,"b",(function(){return DataSourceSelector}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);var _osd_i18n__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7);var _osd_i18n__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_osd_i18n__WEBPACK_IMPORTED_MODULE_1__);var _elastic_eui__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(1);var _elastic_eui__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_elastic_eui__WEBPACK_IMPORTED_MODULE_2__);var _utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4);var _data_source_item__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(20);var _data_source_selector_scss__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(102);var _data_source_selector_scss__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_data_source_selector_scss__WEBPACK_IMPORTED_MODULE_5__);function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}const LocalCluster={label:_osd_i18n__WEBPACK_IMPORTED_MODULE_1__["i18n"].translate("dataSourcesManagement.localCluster",{defaultMessage:"Local cluster"}),id:""};class DataSourceSelector extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Component{constructor(props){super(props);
1_defineProperty(this,"_isMounted",false);this.state={allDataSources:[],defaultDataSource:"",selectedOption:this.props.hideLocalCluster?[]:[LocalCluster],dataSourceOptions:[],componentId:Object(_utils__WEBPACK_IMPORTED_MODULE_3__["generateComponentId"])()}}componentWillUnmount(){this._isMounted=false;Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getDataSourceSelection"])().remove(this.state.componentId)}onSelectedDataSource(dataSource){Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getDataSourceSelection"])().selectDataSource(this.state.componentId,dataSource);this.props.onSelectedDataSource(dataSource)}handleSelectedOption(dataSourceOptions,allDataSources,defaultDataSource){const[{id:id}]=this.props.defaultOption;const dataSource=dataSourceOptions.find(ds=>ds.id===id);const selectedOption=dataSource?[{id:id,label:dataSource.label}]:[];if(!dataSource){this.props.notifications.addWarning(_osd_i18n__WEBPACK_IMPORTED_MODULE_1__["i18n"].translate("dataSourcesManagement.error.fetchDataSourceById",{defaultMessage:'Data source with ID "{id}" is not available',values:{id:id}}))}this.setState({...this.state,dataSourceOptions:dataSourceOptions,selectedOption:selectedOption,defaultDataSource:defaultDataSource,allDataSources:allDataSources});this.onSelectedDataSource(selectedOption)}handleDefaultDataSource(dataSourceOptions,allDataSources,defaultDataSource){const selectedDataSource=Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getDefaultDataSource"])(dataSourceOptions,LocalCluster,defaultDataSource,this.props.hideLocalCluster);if(selectedDataSource.length===0){this.props.notifications.addWarning("No connected data source available.");this.onSelectedDataSource([]);return}this.setState({...this.state,dataSourceOptions:dataSourceOptions,selectedOption:selectedDataSource,defaultDataSource:defaultDataSource,allDataSources:allDataSources});this.onSelectedDataSource(selectedDataSource)}async componentDidMount(){this._isMounted=true;try{var _getDefaultDataSource,_this$props$defaultOp,_this$props$defaultOp2;const fetchedDataSources=await Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getDataSourcesWithFields"])(this.props.savedObjectsClient,["id","title","auth.type","dataSourceVersion","installedPlugins"]);const dataSourceOptions=Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getFilteredDataSources"])(fetchedDataSources,this.props.dataSourceFilter);if(!this.props.hideLocalCluster){dataSourceOptions.unshift(LocalCluster)}if(!dataSourceOptions.length){this.props.notifications.addWarning("No connected data source available.");this.onSelectedDataSource([]);return}const defaultDataSource=(_getDefaultDataSource=Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getDefaultDataSourceId"])(this.props.uiSettings))!==null&&_getDefaultDataSource!==void 0?_getDefaultDataSource:null;if(((_this$props$defaultOp=this.props.defaultOption)===null||_this$props$defaultOp===void 0?void 0:_this$props$defaultOp.length)===0){this.setState({...this.state,dataSourceOptions:dataSourceOptions,selectedOption:[],defaultDataSource:defaultDataSource,allDataSources:fetchedDataSources});return}if((_this$props$defaultOp2=this.props.defaultOption)!==null&&_this$props$defaultOp2!==void 0&&_this$props$defaultOp2.length){this.handleSelectedOption(dataSourceOptions,fetchedDataSources,defaultDataSource);return}this.handleDefaultDataSource(dataSourceOptions,fetchedDataSources,defaultDataSource)}catch(err){this.props.notifications.addWarning(_osd_i18n__WEBPACK_IMPORTED_MODULE_1__["i18n"].translate("dataSourcesManagement.error.fetchExisting",{defaultMessage:"Unable to fetch existing data sources"}))}}onChange(e){if(!this._isMounted)return;this.setState({selectedOption:e});this.onSelectedDataSource(e)}render(){const defaultPlaceholderText=_osd_i18n__WEBPACK_IMPORTED_MODULE_1__["i18n"].translate("dataSourcesManagement.dataSourceSelector.placeholder",{defaultMessage:"Select a data source"});const placeholderText=this.props.placeholderText===undefined?defaultPlaceholderText:this.props.placeholderText;const options=Object(_utils__WEBPACK_IMPORTED_MODULE_3__["getFilteredDataSources"])(this.state.allDataSources,this.props.dataSourceFilter);if(!this.props.hideLocalCluster){options.unshift(LocalCluster)}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_2__["
1EuiComboBox"],{isClearable:this.props.isClearable,"aria-label":defaultPlaceholderText,placeholder:placeholderText,singleSelection:{asPlainText:true},options:options,selectedOptions:this.state.selectedOption,onChange:e=>this.onChange(e),prepend:this.props.removePrepend?undefined:_osd_i18n__WEBPACK_IMPORTED_MODULE_1__["i18n"].translate("dataSourcesManagement.dataSourceSelectorComboBoxPrepend",{defaultMessage:"Data source"}),compressed:this.props.compressed||false,isDisabled:this.props.disabled,fullWidth:this.props.fullWidth||false,"data-test-subj":"dataSourceSelectorComboBox",renderOption:option=>react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_data_source_item__WEBPACK_IMPORTED_MODULE_4__["a"],{className:"dataSourceSelector",option:option,defaultDataSource:this.state.defaultDataSource})})}}},function(module,exports,__webpack_require__){var baseIsNative=__webpack_require__(230),getValue=__webpack_require__(235);function getNative(object,key){var value=getValue(object,key);return baseIsNative(value)?value:undefined}module.exports=getNative},function(module,exports){function isObjectLike(value){return value!=null&&typeof value=="object"}module.exports=isObjectLike},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"e",(function(){return ASSC_OBJ_TABLE_SUBJ}));__webpack_require__.d(__webpack_exports__,"c",(function(){return ASSC_OBJ_TABLE_ACC_COLUMN_NAME}));__webpack_require__.d(__webpack_exports__,"d",(function(){return ASSC_OBJ_TABLE_SEARCH_HINT}));__webpack_require__.d(__webpack_exports__,"b",(function(){return ASSC_OBJ_REFRESH_BTN}));__webpack_require__.d(__webpack_exports__,"a",(function(){return ASSC_OBJ_FRESH_MSG}));__webpack_require__.d(__webpack_exports__,"f",(function(){return isCatalogCacheFetching}));__webpack_require__.d(__webpack_exports__,"i",(function(){return redirectToDiscoverWithDataSrc}));__webpack_require__.d(__webpack_exports__,"h",(function(){return redirectToDiscoverOSIdx}));__webpack_require__.d(__webpack_exports__,"g",(function(){return redirectToDiscover}));var _framework_types__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(3);const ASSC_OBJ_TABLE_SUBJ="associatedObjectsTable";const ASSC_OBJ_TABLE_ACC_COLUMN_NAME="accelerations";const ASSC_OBJ_TABLE_SEARCH_HINT="Search for objects";const ASSC_OBJ_PANEL_TITLE="Associated objects";const ASSC_OBJ_PANEL_DESCRIPTION="Manage objects associated with this data sources.";const ASSC_OBJ_NO_DATA_TITLE="You have no associated objects";const ASSC_OBJ_NO_DATA_DESCRIPTION="Add or config tables from your data source or use Query Workbench.";const ASSC_OBJ_REFRESH_BTN="Refresh";const ASSC_OBJ_FRESH_MSG="Last updated at:";const catalogCacheFetchingStatus=[_framework_types__WEBPACK_IMPORTED_MODULE_0__["b"].RUNNING,_framework_types__WEBPACK_IMPORTED_MODULE_0__["b"].WAITING,_framework_types__WEBPACK_IMPORTED_MODULE_0__["b"].SCHEDULED];const isCatalogCacheFetching=function(){for(var _len=arguments.length,statuses=new Array(_len),_key=0;_key<_len;_key++){statuses[_key]=arguments[_key]}return statuses.some(status=>catalogCacheFetchingStatus.includes(status))};const redirectToDiscoverWithDataSrc=(datasourceName,datasourceMDSId,databaseName,tableName,application)=>{application.navigateToApp("data-explorer",{path:`discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_q=(filters:!(),query:(dataset:(dataSource:(id:'${datasourceMDSId!==null&&datasourceMDSId!==void 0?datasourceMDSId:""}',meta:(name:${datasourceName},type:CUSTOM),title:'',type:DATA_SOURCE),id:'${datasourceMDSId!==null&&datasourceMDSId!==void 0?datasourceMDSId:""}::${datasourceName}.${databaseName}.${tableName}',title:${datasourceName}.${databaseName}.${tableName},type:S3),language:SQL,query:'SELECT%20*%20FROM%20${datasourceName}.${databaseName}.${tableName}%20LIMIT%2010'))`})};const redirectToDiscoverOSIdx=(indexName,datasourceMDSId,application)=>{application.navigateToApp("data-explorer",{path:`discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_q=(filters:!(),query:(dataset:(dataSource:(id:'${datasourceMDSId!==null&&datasourceMDSId!==void 0?datasourceMDSId:""}',title:'',type:DATA_SOURCE),id:'${datasourceMDSId!==null&&datasourceMDSId!==void 0?datasourceMDSId:""}::${indexName}',title:${indexName},type:INDEXES),language:SQL,query:'SELECT%20*%20FROM%20${indexName}%20LIMIT%2010'))`})};const redirectToDiscover=application=>{application.navigateToApp("data-explorer",{path:`discover#`})}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DataSourceSelectionService}));__webpack_require__.d(__webpack_exports__,"b",(function(){return defaultDataSourceSelection}));var rxjs__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(59);var rxjs__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(rxjs__WEBPACK_IMPORTED_MODULE_0__);function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class DataSourceSelectionService{constructor(){_defineProperty(this,"selectedDataSource$",new rxjs__WEBPACK_IMPORTED_MODULE_0__["BehaviorSubject"](new Map));_defineProperty(this,"removedComponentIds",[]);_defineProperty(this,"selectDataSource",(componentId,dataSource)=>{if(this.removedComponentIds.indexOf(componentId)>-1){return}const newMap=new Map(this.selectedDataSource$.value);newMap.set(componentId,dataSource);this.selectedDataSource$.next(newMap)});_defineProperty(this,"remove",componentId=>{this.removedComponentIds.push(componentId);const newMap=new Map(this.selectedDataSource$.value);newMap.delete(componentId);this.selectedDataSource$.next(newMap)});_defineProperty(this,"getSelectionValue",()=>this.selectedDataSource$.value);_defineProperty(this,"getSelection$",()=>this.selectedDataSource$)}}const defaultDataSourceSelection={selectDataSource:()=>{},remove:()=>{},getSelectionValue:()=>{},getSelection$:()=>{}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useDirectQuery}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);var _constants__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5);var _types__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3);var _utils_query_session_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(32);var _utils_shared__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(8);var _utils_use_polling__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(45);var _requests_sql__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(44);const useDirectQuery=(http,notifications,dataSourceMDSId)=>{const sqlService=new _requests_sql__WEBPACK_IMPORTED_MODULE_6__["a"](http);
1const[loadStatus,setLoadStatus]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(_types__WEBPACK_IMPORTED_MODULE_2__["b"].SCHEDULED);const{data:pollingResult,loading:_pollingLoading,error:pollingError,startPolling:startPolling,stopPolling:stopLoading}=Object(_utils_use_polling__WEBPACK_IMPORTED_MODULE_5__["a"])(params=>sqlService.fetchWithJobId(params,dataSourceMDSId||""),_constants__WEBPACK_IMPORTED_MODULE_1__["l"]);const startLoading=requestPayload=>{setLoadStatus(_types__WEBPACK_IMPORTED_MODULE_2__["b"].SCHEDULED);const sessionId=Object(_utils_query_session_utils__WEBPACK_IMPORTED_MODULE_3__["a"])(requestPayload.datasource);if(sessionId){requestPayload={...requestPayload,sessionId:sessionId}}sqlService.fetch(requestPayload,dataSourceMDSId).then(result=>{Object(_utils_query_session_utils__WEBPACK_IMPORTED_MODULE_3__["b"])(requestPayload.datasource,Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["j"])(result,"sessionId",null));if(result.queryId){startPolling({queryId:result.queryId})}else{console.error("No query id found in response");setLoadStatus(_types__WEBPACK_IMPORTED_MODULE_2__["b"].FAILED)}}).catch(e=>{var _e$body;setLoadStatus(_types__WEBPACK_IMPORTED_MODULE_2__["b"].FAILED);const formattedError=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["i"])("","The query failed to execute and the operation could not be complete.",(_e$body=e.body)===null||_e$body===void 0?void 0:_e$body.message);notifications.toasts.addError(formattedError,{title:"Query Failed"});console.error(e)})};Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(()=>{if(!pollingResult)return;const{status:anyCaseStatus,datarows:datarows,error:error}=pollingResult;const status=anyCaseStatus===null||anyCaseStatus===void 0?void 0:anyCaseStatus.toLowerCase();if(status===_types__WEBPACK_IMPORTED_MODULE_2__["b"].SUCCESS||datarows){setLoadStatus(status);stopLoading()}else if(status===_types__WEBPACK_IMPORTED_MODULE_2__["b"].FAILED){setLoadStatus(status);stopLoading();const formattedError=Object(_utils_shared__WEBPACK_IMPORTED_MODULE_4__["i"])("","The query failed to execute and the operation could not be complete.",error);notifications.toasts.addError(formattedError,{title:"Query Failed"})}else{setLoadStatus(status)}},[pollingResult,pollingError,stopLoading]);return{loadStatus:loadStatus,startLoading:startLoading,stopLoading:stopLoading,pollingResult:pollingResult}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});function _interopDefault(ex){return ex&&typeof ex==="object"&&"default"in ex?ex["default"]:ex}var allLocaleData=_interopDefault(__webpack_require__(115));var IntlMessageFormat=_interopDefault(__webpack_require__(63));var IntlRelativeFormat=_interopDefault(__webpack_require__(124));var PropTypes=_interopDefault(__webpack_require__(131));var React=__webpack_require__(0);var React__default=_interopDefault(React);var hoistNonReactStatics=_interopDefault(__webpack_require__(134));var invariant=_interopDefault(__webpack_require__(137));var memoizeIntlConstructor=_interopDefault(__webpack_require__(138));var defaultLocaleData={locale:"en",pluralRuleFunction:function pluralRuleFunction(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}};function addLocaleData(){var data=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var locales=Array.isArray(data)?data:[data];
1locales.forEach((function(localeData){if(localeData&&localeData.locale){IntlMessageFormat.__addLocaleData(localeData);IntlRelativeFormat.__addLocaleData(localeData)}}))}function hasLocaleData(locale){var localeParts=(locale||"").split("-");while(localeParts.length>0){if(hasIMFAndIRFLocaleData(localeParts.join("-"))){return true}localeParts.pop()}return false}function hasIMFAndIRFLocaleData(locale){var normalizedLocale=locale&&locale.toLowerCase();return!!(IntlMessageFormat.__localeData__[normalizedLocale]&&IntlRelativeFormat.__localeData__[normalizedLocale])}var _typeof=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(obj){return typeof obj}:function(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj};var asyncGenerator=function(){function AwaitValue(value){this.value=value}function AsyncGenerator(gen){var front,back;function send(key,arg){return new Promise((function(resolve,reject){var request={key:key,arg:arg,resolve:resolve,reject:reject,next:null};if(back){back=back.next=request}else{front=back=request;resume(key,arg)}}))}function resume(key,arg){try{var result=gen[key](arg);var value=result.value;if(value instanceof AwaitValue){Promise.resolve(value.value).then((function(arg){resume("next",arg)}),(function(arg){resume("throw",arg)}))}else{settle(result.done?"return":"normal",result.value)}}catch(err){settle("throw",err)}}function settle(type,value){switch(type){case"return":front.resolve({value:value,done:true});break;case"throw":front.reject(value);break;default:front.resolve({value:value,done:false});break}front=front.next;if(front){resume(front.key,front.arg)}else{back=null}}this._invoke=send;if(typeof gen.return!=="function"){this.return=undefined}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this}}AsyncGenerator.prototype.next=function(arg){return this._invoke("next",arg)};AsyncGenerator.prototype.throw=function(arg){return this._invoke("throw",arg)};AsyncGenerator.prototype.return=function(arg){return this._invoke("return",arg)};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments))}},await:function(value){return new AwaitValue(value)}}}();var classCallCheck=function(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}};var createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor}}();var defineProperty=function(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true})}else{obj[key]=value}return obj};var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key]}}}return target};var inherits=function(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass)}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass};var objectWithoutProperties=function(obj,keys){var target={};for(var i in obj){if(keys.indexOf(i)>=0)continue;if(!Object.prototype.hasOwnProperty.call(obj,i))continue;target[i]=obj[i]}return target};var possibleConstructorReturn=function(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return call&&(typeof call==="object"||typeof call==="function")?call:self};var toConsumableArray=function(arr){if(Array.isArray(arr)){for(var i=0,arr2=Array(arr.length);i<arr.length;i++)arr2[i]=arr[i];return arr2}else{return Array.from(arr)}};var bool=PropTypes.bool;var number=PropTypes.number;var string=PropTypes.string;var func=PropTypes.func;var object=PropTypes.object;var oneOf=PropTypes.oneOf;var shape=PropTypes.shape;var any=PropTypes.any;var oneOfType=PropTypes.oneOfType;var localeMatcher=oneOf(["best fit","lookup"]);var narrowShortLong=oneOf(["narrow","short","long"]);var numeric2digit=oneOf(["numeric","2-digit"]);var funcReq=func.isRequired;var intlConfigPropTypes={locale:string,timeZone:string,formats:object,messages:object,textComponent:any,defaultLocale:string,defaultFormats:object,onError:func};var intlFormatPropTypes={formatDate:funcReq,formatTime:funcReq,formatRelative:funcReq,formatNumber:funcReq,formatPlural
1:funcReq,formatMessage:funcReq,formatHTMLMessage:funcReq};var intlShape=shape(_extends({},intlConfigPropTypes,intlFormatPropTypes,{formatters:object,now:funcReq}));var messageDescriptorPropTypes={id:string.isRequired,description:oneOfType([string,object]),defaultMessage:string};var dateTimeFormatPropTypes={localeMatcher:localeMatcher,formatMatcher:oneOf(["basic","best fit"]),timeZone:string,hour12:bool,weekday:narrowShortLong,era:narrowShortLong,year:numeric2digit,month:oneOf(["numeric","2-digit","narrow","short","long"]),day:numeric2digit,hour:numeric2digit,minute:numeric2digit,second:numeric2digit,timeZoneName:oneOf(["short","long"])};var numberFormatPropTypes={localeMatcher:localeMatcher,style:oneOf(["decimal","currency","percent"]),currency:string,currencyDisplay:oneOf(["symbol","code","name"]),useGrouping:bool,minimumIntegerDigits:number,minimumFractionDigits:number,maximumFractionDigits:number,minimumSignificantDigits:number,maximumSignificantDigits:number};var relativeFormatPropTypes={style:oneOf(["best fit","numeric"]),units:oneOf(["second","minute","hour","day","month","year","second-short","minute-short","hour-short","day-short","month-short","year-short"])};var pluralFormatPropTypes={style:oneOf(["cardinal","ordinal"])};var intlConfigPropNames=Object.keys(intlConfigPropTypes);var ESCAPED_CHARS={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"};var UNSAFE_CHARS_REGEX=/[&><"']/g;function escape(str){return(""+str).replace(UNSAFE_CHARS_REGEX,(function(match){return ESCAPED_CHARS[match]}))}function filterProps(props,whitelist){var defaults$$1=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return whitelist.reduce((function(filtered,name){if(props.hasOwnProperty(name)){filtered[name]=props[name]}else if(defaults$$1.hasOwnProperty(name)){filtered[name]=defaults$$1[name]}return filtered}),{})}function invariantIntlContext(){var _ref=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},intl=_ref.intl;invariant(intl,"[React Intl] Could not find required `intl` object. "+"<IntlProvider> needs to exist in the component ancestry.")}function shallowEquals(objA,objB){if(objA===objB){return true}if((typeof objA==="undefined"?"undefined":_typeof(objA))!=="object"||objA===null||(typeof objB==="undefined"?"undefined":_typeof(objB))!=="object"||objB===null){return false}var keysA=Object.keys(objA);var keysB=Object.keys(objB);if(keysA.length!==keysB.length){return false}var bHasOwnProperty=Object.prototype.hasOwnProperty.bind(objB);for(var i=0;i<keysA.length;i++){if(!bHasOwnProperty(keysA[i])||objA[keysA[i]]!==objB[keysA[i]]){return false}}return true}function shouldIntlComponentUpdate(_ref2,nextProps,nextState){var props=_ref2.props,state=_ref2.state,_ref2$context=_ref2.context,context=_ref2$context===undefined?{}:_ref2$context;var nextContext=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var _context$intl=context.intl,intl=_context$intl===undefined?{}:_context$intl;var _nextContext$intl=nextContext.intl,nextIntl=_nextContext$intl===undefined?{}:_nextContext$intl;return!shallowEquals(nextProps,props)||!shallowEquals(nextState,state)||!(nextIntl===intl||shallowEquals(filterProps(nextIntl,intlConfigPropNames),filterProps(intl,intlConfigPropNames)))}function createError(message,exception){var eMsg=exception?"\n"+exception:"";return"[React Intl] "+message+eMsg}function defaultErrorHandler(error){if(false){}}function getDisplayName(Component$$1){return Component$$1.displayName||Component$$1.name||"Component"}function injectIntl(WrappedComponent){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _options$intlPropName=options.intlPropName,intlPropName=_options$intlPropName===undefined?"intl":_options$intlPropName,_options$withRef=options.withRef,withRef=_options$withRef===undefined?false:_options$withRef;var InjectIntl=function(_Component){inherits(InjectIntl,_Component);function InjectIntl(props,context){classCallCheck(this,InjectIntl);var _this=possibleConstructorReturn(this,(InjectIntl.__proto__||Object.getPrototypeOf(InjectIntl)).call(this,props,context));invariantIntlContext(context);return _this}createClass(InjectIntl,[{key:"getWrappedInstance",value:function getWrappedInstance(){invariant(withRef,"[React Intl] To access the wrapped instance, "+"the `{withRef: true}` option must be set when calling: "+"`injectIntl()`");return this._wrappedInstance}},{key:"render",value:function render(){var _this2=this;return React__default.createElement(WrappedComponent,_extends({},this.props,defineProperty({}
1,intlPropName,this.context.intl),{ref:withRef?function(ref){return _this2._wrappedInstance=ref}:null}))}}]);return InjectIntl}(React.Component);InjectIntl.displayName="InjectIntl("+getDisplayName(WrappedComponent)+")";InjectIntl.contextTypes={intl:intlShape};InjectIntl.WrappedComponent=WrappedComponent;return hoistNonReactStatics(InjectIntl,WrappedComponent)}function defineMessages(messageDescriptors){return messageDescriptors}function resolveLocale(locales){return IntlMessageFormat.prototype._resolveLocale(locales)}function findPluralFunction(locale){return IntlMessageFormat.prototype._findPluralRuleFunction(locale)}var IntlPluralFormat=function IntlPluralFormat(locales){var options=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};classCallCheck(this,IntlPluralFormat);var useOrdinal=options.style==="ordinal";var pluralFn=findPluralFunction(resolveLocale(locales));this.format=function(value){return pluralFn(value,useOrdinal)}};var DATE_TIME_FORMAT_OPTIONS=Object.keys(dateTimeFormatPropTypes);var NUMBER_FORMAT_OPTIONS=Object.keys(numberFormatPropTypes);var RELATIVE_FORMAT_OPTIONS=Object.keys(relativeFormatPropTypes);var PLURAL_FORMAT_OPTIONS=Object.keys(pluralFormatPropTypes);var RELATIVE_FORMAT_THRESHOLDS={second:60,minute:60,hour:24,day:30,month:12};function updateRelativeFormatThresholds(newThresholds){var thresholds=IntlRelativeFormat.thresholds;thresholds.second=newThresholds.second;thresholds.minute=newThresholds.minute;thresholds.hour=newThresholds.hour;thresholds.day=newThresholds.day;thresholds.month=newThresholds.month;thresholds["second-short"]=newThresholds["second-short"];thresholds["minute-short"]=newThresholds["minute-short"];thresholds["hour-short"]=newThresholds["hour-short"];thresholds["day-short"]=newThresholds["day-short"];thresholds["month-short"]=newThresholds["month-short"]}function getNamedFormat(formats,type,name,onError){var format=formats&&formats[type]&&formats[type][name];if(format){return format}onError(createError("No "+type+" format named: "+name))}function formatDate(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats,timeZone=config.timeZone;var format=options.format;var onError=config.onError||defaultErrorHandler;var date=new Date(value);var defaults$$1=_extends({},timeZone&&{timeZone:timeZone},format&&getNamedFormat(formats,"date",format,onError));var filteredOptions=filterProps(options,DATE_TIME_FORMAT_OPTIONS,defaults$$1);try{return state.getDateTimeFormat(locale,filteredOptions).format(date)}catch(e){onError(createError("Error formatting date.",e))}return String(date)}function formatTime(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats,timeZone=config.timeZone;var format=options.format;var onError=config.onError||defaultErrorHandler;var date=new Date(value);var defaults$$1=_extends({},timeZone&&{timeZone:timeZone},format&&getNamedFormat(formats,"time",format,onError));var filteredOptions=filterProps(options,DATE_TIME_FORMAT_OPTIONS,defaults$$1);if(!filteredOptions.hour&&!filteredOptions.minute&&!filteredOptions.second){filteredOptions=_extends({},filteredOptions,{hour:"numeric",minute:"numeric"})}try{return state.getDateTimeFormat(locale,filteredOptions).format(date)}catch(e){onError(createError("Error formatting time.",e))}return String(date)}function formatRelative(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats;var format=options.format;var onError=config.onError||defaultErrorHandler;var date=new Date(value);var now=new Date(options.now);var defaults$$1=format&&getNamedFormat(formats,"relative",format,onError);var filteredOptions=filterProps(options,RELATIVE_FORMAT_OPTIONS,defaults$$1);var oldThresholds=_extends({},IntlRelativeFormat.thresholds);updateRelativeFormatThresholds(RELATIVE_FORMAT_THRESHOLDS);try{return state.getRelativeFormat(locale,filteredOptions).format(date,{now:isFinite(now)?now:state.now()})}catch(e){onError(createError("Error formatting relative time.",e))}finally{updateRelativeFormatThresholds(oldThresholds)}return String(date)}function formatNumber(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats;var format=options.format;var onError=config.onError||defaultErrorHandler;var defaults$$1=format&&getNamedFormat(formats,"number",format,onError);var filteredOptions=filterProps(options,NUMBER_FORMAT_OPTIONS,defaults$$1);try{return state.getNumberFormat(locale,filteredOptions).format(value)}catch(e){onError(createError("Error formatting number.",e))}return String(value)}function formatPlural(config,state,value){var options=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale;var filteredOptions=filterProps(options,PLURAL_FORMAT_OPTIONS);var onError=config.onError||defaultErrorHandler;try{return state.getPluralFormat(locale,filteredOptions).format(value)}catch(e){onError(createError("Error formatting plural.",e))}return"other"}function formatMessage(config,state){var messageDescriptor=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var values=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var locale=config.locale,formats=config.formats,messages=config.messages,defaultLocale=config.defaultLocale,defaultFormats=config.defaultFormats;var id=messageDescriptor.id,defaultMessage=messageDescriptor.defaultMessage;if(false){}invariant(id,"[React Intl] An `id` must be provided to format a message.");var message=messages&&messages[id];var hasValues=Object.keys(values).length>0;if(!hasValues&&"production"==="production"){return message||defaultMessage||id}var formattedMessage=void 0;var onError=config.onError||defaultErrorHandler;
1if(message){try{var formatter=state.getMessageFormat(message,locale,formats);formattedMessage=formatter.format(values)}catch(e){onError(createError('Error formatting message: "'+id+'" for locale: "'+locale+'"'+(defaultMessage?", using default message as fallback.":""),e))}}else{if(!defaultMessage||locale&&locale.toLowerCase()!==defaultLocale.toLowerCase()){onError(createError('Missing message: "'+id+'" for locale: "'+locale+'"'+(defaultMessage?", using default message as fallback.":"")))}}if(!formattedMessage&&defaultMessage){try{var _formatter=state.getMessageFormat(defaultMessage,defaultLocale,defaultFormats);formattedMessage=_formatter.format(values)}catch(e){onError(createError('Error formatting the default message for: "'+id+'"',e))}}if(!formattedMessage){onError(createError('Cannot format message: "'+id+'", '+("using message "+(message||defaultMessage?"source":"id")+" as fallback.")))}return formattedMessage||message||defaultMessage||id}function formatHTMLMessage(config,state,messageDescriptor){var rawValues=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var escapedValues=Object.keys(rawValues).reduce((function(escaped,name){var value=rawValues[name];escaped[name]=typeof value==="string"?escape(value):value;return escaped}),{});return formatMessage(config,state,messageDescriptor,escapedValues)}var format=Object.freeze({formatDate:formatDate,formatTime:formatTime,formatRelative:formatRelative,formatNumber:formatNumber,formatPlural:formatPlural,formatMessage:formatMessage,formatHTMLMessage:formatHTMLMessage});var intlConfigPropNames$1=Object.keys(intlConfigPropTypes);var intlFormatPropNames=Object.keys(intlFormatPropTypes);var defaultProps={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:defaultErrorHandler};var IntlProvider=function(_Component){inherits(IntlProvider,_Component);function IntlProvider(props){var context=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};classCallCheck(this,IntlProvider);var _this=possibleConstructorReturn(this,(IntlProvider.__proto__||Object.getPrototypeOf(IntlProvider)).call(this,props,context));invariant(typeof Intl!=="undefined","[React Intl] The `Intl` APIs must be available in the runtime, "+"and do not appear to be built-in. An `Intl` polyfill should be loaded.\n"+"See: http://formatjs.io/guides/runtime-environments/");var intlContext=context.intl;var initialNow=void 0;if(isFinite(props.initialNow)){initialNow=Number(props.initialNow)}else{initialNow=intlContext?intlContext.now():Date.now()}var _ref=intlContext||{},_ref$formatters=_ref.formatters,formatters=_ref$formatters===undefined?{getDateTimeFormat:memoizeIntlConstructor(Intl.DateTimeFormat),getNumberFormat:memoizeIntlConstructor(Intl.NumberFormat),getMessageFormat:memoizeIntlConstructor(IntlMessageFormat),getRelativeFormat:memoizeIntlConstructor(IntlRelativeFormat),getPluralFormat:memoizeIntlConstructor(IntlPluralFormat)}:_ref$formatters;_this.state=_extends({},formatters,{now:function now(){return _this._didDisplay?Date.now():initialNow}});return _this}createClass(IntlProvider,[{key:"getConfig",value:function getConfig(){var intlContext=this.context.intl;var config=filterProps(this.props,intlConfigPropNames$1,intlContext);for(var propName in defaultProps){if(config[propName]===undefined){config[propName]=defaultProps[propName]}}if(!hasLocaleData(config.locale)){var _config=config,locale=_config.locale,defaultLocale=_config.defaultLocale,defaultFormats=_config.defaultFormats,onError=_config.onError;onError(createError('Missing locale data for locale: "'+locale+'". '+('Using default locale: "'+defaultLocale+'" as fallback.')));config=_extends({},config,{locale:defaultLocale,formats:defaultFormats,messages:defaultProps.messages})}return config}},{key:"getBoundFormatFns",value:function getBoundFormatFns(config,state){return intlFormatPropNames.reduce((function(boundFormatFns,name){boundFormatFns[name]=format[name].bind(null,config,state);return boundFormatFns}),{})}},{key:"getChildContext",value:function getChildContext(){var config=this.getConfig();var boundFormatFns=this.getBoundFormatFns(config,this.state);var _state=this.state,now=_state.now,formatters=objectWithoutProperties(_state,["now"]);return{intl:_extends({},config,boundFormatFns,{formatters:formatters,now:now})}}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_
1key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"componentDidMount",value:function componentDidMount(){this._didDisplay=true}},{key:"render",value:function render(){return React.Children.only(this.props.children)}}]);return IntlProvider}(React.Component);IntlProvider.displayName="IntlProvider";IntlProvider.contextTypes={intl:intlShape};IntlProvider.childContextTypes={intl:intlShape.isRequired};false?undefined:void 0;var FormattedDate=function(_Component){inherits(FormattedDate,_Component);function FormattedDate(props,context){classCallCheck(this,FormattedDate);var _this=possibleConstructorReturn(this,(FormattedDate.__proto__||Object.getPrototypeOf(FormattedDate)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedDate,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatDate=_context$intl.formatDate,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedDate=formatDate(value,this.props);if(typeof children==="function"){return children(formattedDate)}return React__default.createElement(Text,null,formattedDate)}}]);return FormattedDate}(React.Component);FormattedDate.displayName="FormattedDate";FormattedDate.contextTypes={intl:intlShape};false?undefined:void 0;var FormattedTime=function(_Component){inherits(FormattedTime,_Component);function FormattedTime(props,context){classCallCheck(this,FormattedTime);var _this=possibleConstructorReturn(this,(FormattedTime.__proto__||Object.getPrototypeOf(FormattedTime)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedTime,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatTime=_context$intl.formatTime,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedTime=formatTime(value,this.props);if(typeof children==="function"){return children(formattedTime)}return React__default.createElement(Text,null,formattedTime)}}]);return FormattedTime}(React.Component);FormattedTime.displayName="FormattedTime";FormattedTime.contextTypes={intl:intlShape};false?undefined:void 0;var SECOND=1e3;var MINUTE=1e3*60;var HOUR=1e3*60*60;var DAY=1e3*60*60*24;var MAX_TIMER_DELAY=2147483647;function selectUnits(delta){var absDelta=Math.abs(delta);if(absDelta<MINUTE){return"second"}if(absDelta<HOUR){return"minute"}if(absDelta<DAY){return"hour"}return"day"}function getUnitDelay(units){switch(units){case"second":return SECOND;case"minute":return MINUTE;case"hour":return HOUR;case"day":return DAY;default:return MAX_TIMER_DELAY}}function isSameDate(a,b){if(a===b){return true}var aTime=new Date(a).getTime();var bTime=new Date(b).getTime();return isFinite(aTime)&&isFinite(bTime)&&aTime===bTime}var FormattedRelative=function(_Component){inherits(FormattedRelative,_Component);function FormattedRelative(props,context){classCallCheck(this,FormattedRelative);var _this=possibleConstructorReturn(this,(FormattedRelative.__proto__||Object.getPrototypeOf(FormattedRelative)).call(this,props,context));invariantIntlContext(context);var now=isFinite(props.initialNow)?Number(props.initialNow):context.intl.now();_this.state={now:now};return _this}createClass(FormattedRelative,[{key:"scheduleNextUpdate",value:function scheduleNextUpdate(props,state){var _this2=this;clearTimeout(this._timer);var value=props.value,units=props.units,updateInterval=props.updateInterval;var time=new Date(value).getTime();if(!updateInterval||!isFinite(time)){return}var delta=time-state.now;var unitDelay=getUnitDelay(units||selectUnits(delta));var unitRemainder=Math.abs(delta%unitDelay);var delay=delta<0?Math.max(updateInterval,unitDelay-unitRemainder):Math.max(updateInterval,unitRemainder);this._timer=setTimeout((function(){_this2.setState({now:_this2.context.
1intl.now()})}),delay)}},{key:"componentDidMount",value:function componentDidMount(){this.scheduleNextUpdate(this.props,this.state)}},{key:"componentWillReceiveProps",value:function componentWillReceiveProps(_ref){var nextValue=_ref.value;if(!isSameDate(nextValue,this.props.value)){this.setState({now:this.context.intl.now()})}}},{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"componentWillUpdate",value:function componentWillUpdate(nextProps,nextState){this.scheduleNextUpdate(nextProps,nextState)}},{key:"componentWillUnmount",value:function componentWillUnmount(){clearTimeout(this._timer)}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatRelative=_context$intl.formatRelative,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedRelative=formatRelative(value,_extends({},this.props,this.state));if(typeof children==="function"){return children(formattedRelative)}return React__default.createElement(Text,null,formattedRelative)}}]);return FormattedRelative}(React.Component);FormattedRelative.displayName="FormattedRelative";FormattedRelative.contextTypes={intl:intlShape};FormattedRelative.defaultProps={updateInterval:1e3*10};false?undefined:void 0;var FormattedNumber=function(_Component){inherits(FormattedNumber,_Component);function FormattedNumber(props,context){classCallCheck(this,FormattedNumber);var _this=possibleConstructorReturn(this,(FormattedNumber.__proto__||Object.getPrototypeOf(FormattedNumber)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedNumber,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatNumber=_context$intl.formatNumber,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,children=_props.children;var formattedNumber=formatNumber(value,this.props);if(typeof children==="function"){return children(formattedNumber)}return React__default.createElement(Text,null,formattedNumber)}}]);return FormattedNumber}(React.Component);FormattedNumber.displayName="FormattedNumber";FormattedNumber.contextTypes={intl:intlShape};false?undefined:void 0;var FormattedPlural=function(_Component){inherits(FormattedPlural,_Component);function FormattedPlural(props,context){classCallCheck(this,FormattedPlural);var _this=possibleConstructorReturn(this,(FormattedPlural.__proto__||Object.getPrototypeOf(FormattedPlural)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedPlural,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(){for(var _len=arguments.length,next=Array(_len),_key=0;_key<_len;_key++){next[_key]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatPlural=_context$intl.formatPlural,Text=_context$intl.textComponent;var _props=this.props,value=_props.value,other=_props.other,children=_props.children;var pluralCategory=formatPlural(value,this.props);var formattedPlural=this.props[pluralCategory]||other;if(typeof children==="function"){return children(formattedPlural)}return React__default.createElement(Text,null,formattedPlural)}}]);return FormattedPlural}(React.Component);FormattedPlural.displayName="FormattedPlural";FormattedPlural.contextTypes={intl:intlShape};FormattedPlural.defaultProps={style:"cardinal"};false?undefined:void 0;var defaultFormatMessage=function defaultFormatMessage(descriptor,values){if(false){}return formatMessage({},{getMessageFormat:memoizeIntlConstructor(IntlMessageFormat)},descriptor,values)};var FormattedMessage=function(_Component){inherits(FormattedMessage,_Component);function FormattedMessage(props,context){classCallCheck(this,FormattedMessage);var _this=possibleConstructorReturn(this,(FormattedMessage.__proto__||Object.getPrototypeOf(FormattedMessage)).call(this,props,context));if(!props.defaultMessage){invariantIntlContext(context)}return _this}createClass(FormattedMessage,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var values=this.props.values;var nextValues=nextProps.values;if(!shallowEquals(nextValues,values)){return true}var nextPropsToCheck=_extends({},nextProps,{values:values});for(var _len=arguments.length,next=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){next[_key-1]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this,nextPropsToCheck].concat(next))}}
1,{key:"render",value:function render(){var _ref=this.context.intl||{},_ref$formatMessage=_ref.formatMessage,formatMessage$$1=_ref$formatMessage===undefined?defaultFormatMessage:_ref$formatMessage,_ref$textComponent=_ref.textComponent,Text=_ref$textComponent===undefined?"span":_ref$textComponent;var _props=this.props,id=_props.id,description=_props.description,defaultMessage=_props.defaultMessage,values=_props.values,_props$tagName=_props.tagName,Component$$1=_props$tagName===undefined?Text:_props$tagName,children=_props.children;var tokenDelimiter=void 0;var tokenizedValues=void 0;var elements=void 0;var hasValues=values&&Object.keys(values).length>0;if(hasValues){var uid=Math.floor(Math.random()*1099511627776).toString(16);var generateToken=function(){var counter=0;return function(){return"ELEMENT-"+uid+"-"+(counter+=1)}}();tokenDelimiter="@__"+uid+"__@";tokenizedValues={};elements={};Object.keys(values).forEach((function(name){var value=values[name];if(React.isValidElement(value)){var token=generateToken();tokenizedValues[name]=tokenDelimiter+token+tokenDelimiter;elements[token]=value}else{tokenizedValues[name]=value}}))}var descriptor={id:id,description:description,defaultMessage:defaultMessage};var formattedMessage=formatMessage$$1(descriptor,tokenizedValues||values);var nodes=void 0;var hasElements=elements&&Object.keys(elements).length>0;if(hasElements){nodes=formattedMessage.split(tokenDelimiter).filter((function(part){return!!part})).map((function(part){return elements[part]||part}))}else{nodes=[formattedMessage]}if(typeof children==="function"){return children.apply(undefined,toConsumableArray(nodes))}return React.createElement.apply(undefined,[Component$$1,null].concat(toConsumableArray(nodes)))}}]);return FormattedMessage}(React.Component);FormattedMessage.displayName="FormattedMessage";FormattedMessage.contextTypes={intl:intlShape};FormattedMessage.defaultProps={values:{}};false?undefined:void 0;var FormattedHTMLMessage=function(_Component){inherits(FormattedHTMLMessage,_Component);function FormattedHTMLMessage(props,context){classCallCheck(this,FormattedHTMLMessage);var _this=possibleConstructorReturn(this,(FormattedHTMLMessage.__proto__||Object.getPrototypeOf(FormattedHTMLMessage)).call(this,props,context));invariantIntlContext(context);return _this}createClass(FormattedHTMLMessage,[{key:"shouldComponentUpdate",value:function shouldComponentUpdate(nextProps){var values=this.props.values;var nextValues=nextProps.values;if(!shallowEquals(nextValues,values)){return true}var nextPropsToCheck=_extends({},nextProps,{values:values});for(var _len=arguments.length,next=Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){next[_key-1]=arguments[_key]}return shouldIntlComponentUpdate.apply(undefined,[this,nextPropsToCheck].concat(next))}},{key:"render",value:function render(){var _context$intl=this.context.intl,formatHTMLMessage=_context$intl.formatHTMLMessage,Text=_context$intl.textComponent;var _props=this.props,id=_props.id,description=_props.description,defaultMessage=_props.defaultMessage,rawValues=_props.values,_props$tagName=_props.tagName,Component$$1=_props$tagName===undefined?Text:_props$tagName,children=_props.children;var descriptor={id:id,description:description,defaultMessage:defaultMessage};var formattedHTMLMessage=formatHTMLMessage(descriptor,rawValues);if(typeof children==="function"){return children(formattedHTMLMessage)}var html={__html:formattedHTMLMessage};return React__default.createElement(Component$$1,{dangerouslySetInnerHTML:html})}}]);return FormattedHTMLMessage}(React.Component);FormattedHTMLMessage.displayName="FormattedHTMLMessage";FormattedHTMLMessage.contextTypes={intl:intlShape};FormattedHTMLMessage.defaultProps={values:{}};false?undefined:void 0;addLocaleData(defaultLocaleData);addLocaleData(allLocaleData);exports.addLocaleData=addLocaleData;exports.intlShape=intlShape;exports.injectIntl=injectIntl;exports.defineMessages=defineMessages;exports.IntlProvider=IntlProvider;exports.FormattedDate=FormattedDate;exports.FormattedTime=FormattedTime;exports.FormattedRelative=FormattedRelative;exports.FormattedNumber=FormattedNumber;exports.FormattedPlural=FormattedPlural;exports.FormattedMessage=FormattedMessage;exports.FormattedHTMLMessage=FormattedHTMLMessage},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return setAsyncSessionId}));__webpack_require__.d(__webpack_exports__,"a",(function(){return getAsyncSessionId}));var _constants__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5);const setAsyncSessionId=(dataSource,value)=>{if(value!==null){sessionStorage.setItem(`${_constants__WEBPACK_IMPORTED_MODULE_0__["m"]}_${dataSource}`,value)}};const getAsyncSessionId=dataSource=>sessionStorage.getItem(`${_constants__WEBPACK_IMPORTED_MODULE_0__["m"]}_${dataSource}`)},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(34),getRawTag=__webpack_require__(231),objectToString=__webpack_require__(232);
1var nullTag="[object Null]",undefinedTag="[object Undefined]";var symToStringTag=Symbol?Symbol.toStringTag:undefined;function baseGetTag(value){if(value==null){return value===undefined?undefinedTag:nullTag}return symToStringTag&&symToStringTag in Object(value)?getRawTag(value):objectToString(value)}module.exports=baseGetTag},function(module,exports,__webpack_require__){var root=__webpack_require__(22);var Symbol=root.Symbol;module.exports=Symbol},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return DataSourceMenu}));var external_osdSharedDeps_React_=__webpack_require__(0);var external_osdSharedDeps_React_default=__webpack_require__.n(external_osdSharedDeps_React_);var external_osdSharedDeps_ElasticEui_=__webpack_require__(1);var utils=__webpack_require__(4);var external_osdSharedDeps_OsdI18n_=__webpack_require__(7);var lib=__webpack_require__(31);var drop_down_header=__webpack_require__(140);var public_plugin=__webpack_require__(18);const DataSourceDropDownHeader=_ref=>{let{activeDataSourceCount:activeDataSourceCount,totalDataSourceCount:totalDataSourceCount,application:application,onManageDataSource:onManageDataSource}=_ref;const dataSourceCounterPrefix=totalDataSourceCount===1?"DATA SOURCE":"DATA SOURCES";const dataSourceCounter=activeDataSourceCount!==undefined?`${activeDataSourceCount}/${totalDataSourceCount}`:totalDataSourceCount;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverTitle"],{paddingSize:"s"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{responsive:false,alignItems:"center"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,dataSourceCounterPrefix," (",dataSourceCounter,")"),external_osdSharedDeps_React_default.a.createElement("div",{tabIndex:0,className:"dataSourceDropDownHeaderInvisibleFocusable"}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiLink"],{onClick:()=>{onManageDataSource();application===null||application===void 0||application.navigateToApp("management",{path:`opensearch-dashboards/${public_plugin["a"]}`})}},"Manage"))))};const ErrorIcon=()=>external_osdSharedDeps_React_default.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},external_osdSharedDeps_React_default.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.88072 12.9734C7.24621 12.991 7.62038 13 8 13C9.79424 13 11.4669 12.7979 12.675 12.4527C12.7139 12.4416 12.7534 12.4304 12.7931 12.419C13.2562 12.2873 13.7656 12.1424 14.0018 12H14V10.0307C12.7751 10.6115 10.5463 11 8 11C7.61431 11 7.23591 10.9911 6.86718 10.9739C6.77052 10.6087 6.62348 10.2639 6.43395 9.94748C6.93903 9.98197 7.46409 10 8 10C9.79424 10 11.4669 9.79786 12.675 9.45269C12.7139 9.44158 12.7534 9.43036 12.7931 9.41904C13.2562 9.28731 13.7656 9.1424 14.0018 9H14V7.03074C12.7751 7.61155 10.5463 8 8 8C5.45367 8 3.2249 7.61155 2 7.03074V8.12602C1.64523 8.21733 1.30951 8.35609 1 8.53513V3C1 1.89543 4.13401 1 8 1C11.866 1 15 1.89543 15 3V12C15 13.1046 11.866 14 8 14C7.48207 14 6.97727 13.9839 6.49139 13.9534C6.66201 13.6491 6.79401 13.3202 6.88072 12.9734ZM2 6V4.03074C3.2249 4.61155 5.45367 5 8 5C10.5463 5 12.7751 4.61155 14 4.03074V6H14.0018C13.7656 6.1424 13.2562 6.28731 12.7931 6.41904C12.7534 6.43036 12.7139 6.44158 12.675 6.45269C11.4669 6.79786 9.79424 7 8 7C6.20576 7 4.53308 6.79786 3.32497 6.45269C3.28838 6.44223 3.25131 6.43168 3.21394 6.42104C2.74926 6.28878 2.23754 6.14312 2.00012 6H2ZM8 2C9.79424 2 11.4669 2.20214 12.675 2.54731C13.1666 2.68777 13.5549 2.84537 13.8114 3C13.5549 3.15463 13.1666 3.31223 12.675 3.45269C11.4669 3.79786 9.79424 4 8 4C6.20576 4 4.53308 3.79786 3.32497 3.45269C2.83335 3.31223 2.44512 3.15463 2.1886 3C2.44512 2.84537 2.83335 2.68777 3.32497 2.54731C4.53308 2.20214 6.20576 2 8 2Z",fill:"currentColor"}),external_osdSharedDeps_React_default.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 13.6569 4.65685 15 3 15C1.34315 15 0 13.6569 0 12C0 10.3431 1.34315 9 3 9C4.65685 9 6 10.3431 6 12Z",fill:"#BD271E"}));const EmptyIcon=()=>external_osdSharedDeps_React_default.a.createElement("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},external_osdSharedDeps_React_default.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.88072 12.9734C7.24621 12.991 7.62038 13 8 13C9.79424 13 11.4669 
112.7979 12.675 12.4527C12.7139 12.4416 12.7534 12.4304 12.7931 12.419C13.2562 12.2873 13.7656 12.1424 14.0018 12H14V10.0307C12.7751 10.6115 10.5463 11 8 11C7.61431 11 7.23591 10.9911 6.86718 10.9739C6.77052 10.6087 6.62348 10.2639 6.43395 9.94748C6.93903 9.98197 7.46409 10 8 10C9.79424 10 11.4669 9.79786 12.675 9.45269C12.7139 9.44158 12.7534 9.43036 12.7931 9.41904C13.2562 9.28731 13.7656 9.1424 14.0018 9H14V7.03074C12.7751 7.61155 10.5463 8 8 8C5.45367 8 3.2249 7.61155 2 7.03074V8.12602C1.64523 8.21733 1.30951 8.35609 1 8.53513V3C1 1.89543 4.13401 1 8 1C11.866 1 15 1.89543 15 3V12C15 13.1046 11.866 14 8 14C7.48207 14 6.97727 13.9839 6.49139 13.9534C6.66201 13.6491 6.79401 13.3202 6.88072 12.9734ZM2 6V4.03074C3.2249 4.61155 5.45367 5 8 5C10.5463 5 12.7751 4.61155 14 4.03074V6H14.0018C13.7656 6.1424 13.2562 6.28731 12.7931 6.41904C12.7534 6.43036 12.7139 6.44158 12.675 6.45269C11.4669 6.79786 9.79424 7 8 7C6.20576 7 4.53308 6.79786 3.32497 6.45269C3.28838 6.44223 3.25131 6.43168 3.21394 6.42104C2.74926 6.28878 2.23754 6.14312 2.00012 6H2ZM8 2C9.79424 2 11.4669 2.20214 12.675 2.54731C13.1666 2.68777 13.5549 2.84537 13.8114 3C13.5549 3.15463 13.1666 3.31223 12.675 3.45269C11.4669 3.79786 9.79424 4 8 4C6.20576 4 4.53308 3.79786 3.32497 3.45269C2.83335 3.31223 2.44512 3.15463 2.1886 3C2.44512 2.84537 2.83335 2.68777 3.32497 2.54731C4.53308 2.20214 6.20576 2 8 2Z",fill:"#006BB4"}),external_osdSharedDeps_React_default.a.createElement("mask",{id:"path-2-inside-1_1269_81032",fill:"white"},external_osdSharedDeps_React_default.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 13.6569 4.65685 15 3 15C1.34315 15 0 13.6569 0 12C0 10.3431 1.34315 9 3 9C4.65685 9 6 10.3431 6 12Z"})),external_osdSharedDeps_React_default.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 12C6 13.6569 4.65685 15 3 15C1.34315 15 0 13.6569 0 12C0 10.3431 1.34315 9 3 9C4.65685 9 6 10.3431 6 12Z",fill:"#FAFBFD"}),external_osdSharedDeps_React_default.a.createElement("path",{d:"M3 16C5.20914 16 7 14.2091 7 12H5C5 13.1046 4.10457 14 3 14V16ZM-1 12C-1 14.2091 0.790861 16 3 16V14C1.89543 14 1 13.1046 1 12H-1ZM3 8C0.790861 8 -1 9.79086 -1 12H1C1 10.8954 1.89543 10 3 10V8ZM7 12C7 9.79086 5.20914 8 3 8V10C4.10457 10 5 10.8954 5 12H7Z",fill:"#6A717D",mask:"url(#path-2-inside-1_1269_81032)"}));const NoDataSource=_ref=>{let{application:application,incompatibleDataSourcesExist:incompatibleDataSourcesExist}=_ref;const[showPopover,setShowPopover]=Object(external_osdSharedDeps_React_["useState"])(false);const button=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{className:"euiHeaderLink","data-test-subj":"dataSourceEmptyMenuHeaderLink","aria-label":external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.dataSourceEmptyMenuHeaderLink",{defaultMessage:"dataSourceEmptyMenuHeaderLink"}),iconType:()=>external_osdSharedDeps_React_default.a.createElement(EmptyIcon,null),size:"s",onClick:()=>setShowPopover(!showPopover)});const redirectButton=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{"data-test-subj":"dataSourceEmptyStateManageDataSourceButton",fill:false,size:"s",onClick:()=>application===null||application===void 0?void 0:application.navigateToApp("management",{path:`opensearch-dashboards/${public_plugin["a"]}`})},external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"dataSourcesManagement.dataSourceMenu.manageDataSource",defaultMessage:"Manage data sources"}));const text=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",textAlign:"center"},incompatibleDataSourcesExist?external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"dataSourcesManagement.dataSourceEmptyMenu.noCompatibleDataSource",defaultMessage:"No compatible data sources are available."}):external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"dataSourcesManagement.dataSourceEmptyMenu.noConnectedDataSource",defaultMessage:"No data sources connected yet."})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",textAlign:"center"},incompatibleDataSourcesExist?external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"dataSourcesManagement.dataSourceEmptyMenu.addCompatible",defaultMessage:"Add a compatible data source."}):external_osdSharedDeps_React_default.a.createElement(lib["FormattedMessage"],{id:"dataSourcesManagement.dataSourceEmptyMenu.connect",defaultMessage:"Connect your data sources to get started."})));return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"dataSourceEmptyStatePopover",button:button,isOpen:showPopover,closePopover:()=>setShowPopover(false),panelPaddingSize:"none",anchorPosition:"downLeft","data-test-subj":"dataSourceEmptyStatePopover"},external_osdSharedDeps_React_default.a.createElement(DataSourceDropDown
1Header,{totalDataSourceCount:0,application:application}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{hasBorder:false,hasShadow:false,className:"dataSourceEmptyStatePanel","data-test-subj":"dataSourceEmptyStatePanel"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"center"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},text)),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"center"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],{grow:false},redirectButton))))};const DataSourceErrorMenu=_ref=>{let{application:application}=_ref;const[showPopover,setShowPopover]=Object(external_osdSharedDeps_React_["useState"])(false);const refreshButton=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{"data-test-subj":"dataSourceErrorRefreshButton",fill:false,iconType:"refresh",size:"s",onClick:()=>window.location.reload()},external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.dataSourceErrorMenu.refreshPage",{defaultMessage:"Refresh the page"}));const iconButton=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonIcon"],{className:"euiHeaderLink","data-test-subj":"dataSourceErrorMenuHeaderLink","aria-label":external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.dataSourceError.dataSourceErrorMenuHeaderLink",{defaultMessage:"dataSourceErrorMenuHeaderLink"}),iconType:()=>external_osdSharedDeps_React_default.a.createElement(ErrorIcon,null),size:"s",onClick:()=>setShowPopover(!showPopover)});return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"dataSourceErrorPopover",button:iconButton,isOpen:showPopover,closePopover:()=>setShowPopover(false),panelPaddingSize:"none",anchorPosition:"downLeft","data-test-subj":"dataSourceErrorPopover"},external_osdSharedDeps_React_default.a.createElement(DataSourceDropDownHeader,{totalDataSourceCount:0,application:application}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{hasBorder:false,hasShadow:false,className:"dataSourceEmptyStatePanel","data-test-subj":"datasourceTableEmptyState"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiText"],{size:"s",textAlign:"center"},external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.dataSourceErrorMenu.text",{defaultMessage:"Failed to fetch data sources"}))),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexGroup"],{justifyContent:"spaceAround"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFlexItem"],null,refreshButton)))))};var data_source_item=__webpack_require__(20);var data_source_aggregated_view=__webpack_require__(153);var classnames=__webpack_require__(89);var classnames_default=__webpack_require__.n(classnames);var popover_button=__webpack_require__(166);const DataSourceMenuPopoverButton=_ref=>{let{className:className,label:label,onClick:onClick,isDisabled:isDisabled}=_ref;const wrapperClassName=classnames_default()("dataSourceMenuPopoverButton",{"dataSourceMenu-isDisabled":isDisabled});return external_osdSharedDeps_React_default.a.createElement("div",{className:wrapperClassName,"data-label":"Data source"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButton"],{className:"dataSourceMenuPopoverButtonLabel","data-test-subj":`${className}Button`,onClick:onClick,"aria-label":external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.popoverButton.ariaLabel",{defaultMessage:"Data source selector"}),iconType:"database",iconSide:"left",size:"s",color:"text",isDisabled:isDisabled},label?label:null),!isDisabled&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiIcon"],{type:"arrowDown",size:"s",color:"text"}))};function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class data_source_aggregated_view_DataSourceAggregatedView extends external_osdSharedDeps_React_default.a.Component{constructor(props){super(props);
1_defineProperty(this,"_isMounted",false);this.state={isPopoverOpen:false,allDataSourcesIdToTitleMap:new Map,showEmptyState:false,showError:false,switchChecked:false,defaultDataSource:null,incompatibleDataSourcesExist:false,componentId:Object(utils["generateComponentId"])()}}componentWillUnmount(){this._isMounted=false;Object(utils["getDataSourceSelection"])().remove(this.state.componentId)}onDataSourcesClick(){this.setState({...this.state,isPopoverOpen:!this.state.isPopoverOpen})}onSwitchClick(e){this.setState({...this.state,switchChecked:e.target.checked})}closePopover(){this.setState({...this.state,isPopoverOpen:false})}async componentDidMount(){this._isMounted=true;Object(utils["getDataSourcesWithFields"])(this.props.savedObjectsClient,["id","title","auth.type","dataSourceVersion","installedPlugins"]).then(fetchedDataSources=>{var _getDefaultDataSource;const allDataSourcesIdToTitleMap=new Map;if(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length){let filteredDataSources=fetchedDataSources;if(this.props.dataSourceFilter){filteredDataSources=fetchedDataSources.filter(ds=>this.props.dataSourceFilter(ds))}filteredDataSources.forEach(ds=>{allDataSourcesIdToTitleMap.set(ds.id,ds.attributes.title||"")});if(!this._isMounted)return}if(!this.props.hideLocalCluster){allDataSourcesIdToTitleMap.set("","Local cluster")}if(allDataSourcesIdToTitleMap.size===0){Object(utils["handleNoAvailableDataSourceError"])({changeState:this.onEmptyState.bind(this,!!(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length)),notifications:this.props.notifications,application:this.props.application,incompatibleDataSourcesExist:!!(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length)});return}this.setState({...this.state,allDataSourcesIdToTitleMap:allDataSourcesIdToTitleMap,defaultDataSource:(_getDefaultDataSource=Object(utils["getDefaultDataSourceId"])(this.props.uiSettings))!==null&&_getDefaultDataSource!==void 0?_getDefaultDataSource:null,showEmptyState:allDataSourcesIdToTitleMap.size===0})}).catch(()=>{Object(utils["handleDataSourceFetchError"])(this.onError.bind(this),this.props.notifications)})}onEmptyState(incompatibleDataSourcesExist){this.setState({showEmptyState:true,incompatibleDataSourcesExist:incompatibleDataSourcesExist})}onError(){this.setState({showError:true})}render(){if(this.state.showEmptyState){return external_osdSharedDeps_React_default.a.createElement(NoDataSource,{application:this.props.application,incompatibleDataSourcesExist:this.state.incompatibleDataSourcesExist})}if(this.state.showError){return external_osdSharedDeps_React_default.a.createElement(DataSourceErrorMenu,{application:this.props.application})}let items=[];if(!this.props.displayAllCompatibleDataSources&&this.state.switchChecked){items=this.props.activeDataSourceIds.filter(id=>this.state.allDataSourcesIdToTitleMap.has(id)).map(id=>({id:id,label:this.state.allDataSourcesIdToTitleMap.get(id),disabled:true,checked:"on"}))}else{this.state.allDataSourcesIdToTitleMap.forEach((label,id)=>{items.push({id:id,label:label,disabled:true,checked:!this.props.displayAllCompatibleDataSources&&this.props.activeDataSourceIds&&this.props.activeDataSourceIds.length&&this.props.activeDataSourceIds.includes(id)?"on":undefined})})}const selectedItems=items.filter(item=>item.checked==="on");Object(utils["getDataSourceSelection"])().selectDataSource(this.state.componentId,selectedItems);const numSelectedItems=selectedItems.length;const titleComponent=external_osdSharedDeps_React_default.a.createElement(DataSourceDropDownHeader,{totalDataSourceCount:this.state.allDataSourcesIdToTitleMap.size,activeDataSourceCount:!this.props.displayAllCompatibleDataSources?numSelectedItems:undefined,application:Object(utils["getApplication"])()});return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"dataSourceSViewContextMenuPopover",button:external_osdSharedDeps_React_default.a.createElement(DataSourceMenuPopoverButton,{className:"dataSourceAggregatedView",onClick:this.onDataSourcesClick.bind(this),isDisabled:true}),isOpen:this.state.isPopoverOpen,closePopover:this.closePopover.bind(this),panelPaddingSize:"none",anchorPosition:"downLeft"},titleComponent,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiContextMenuPanel"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{className:"dataSourceAggregatedViewOuiPanel",paddingSize:"none",borderRadius:"none",hasShadow:false},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{className:"dataSourceAggregatedViewOuiPanel",color:"subdued",paddingSize:"s",borderRadius:"none"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelectable"],{options:items,renderOption:option=>external_osdSharedDeps_React_default.a.createElement(data_source_item["a"],{className:this.props.displayAllCompatibleDataSources?"dataSourceAggregatedView":"dataSourceListAllActive",option:option,defaultDataSource:this.state.defaultDataSource})},list=>list))),!this.props.displayAllCompatibleDataSources&&external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{className:"dataSourceAggregatedViewOuiPanel",color:"transparent",hasBorder:false,hasShadow:false,borderRadius:"m"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSwitch"],{className:"dataSourceAggregatedViewOuiSwitch",label:`Used on this page (${numSelectedItems})`,checked:this.state.switchChecked,onChange:e=>this.onSwitchClick(e),compressed:true})))))}}var constants=__webpack_require__(15);var data_source_view=__webpack_require__(179);
1function data_source_view_defineProperty(e,r,t){return(r=data_source_view_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function data_source_view_toPropertyKey(t){var i=data_source_view_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function data_source_view_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class data_source_view_DataSourceView extends external_osdSharedDeps_React_default.a.Component{constructor(props){super(props);data_source_view_defineProperty(this,"_isMounted",false);this.state={isPopoverOpen:false,selectedOption:this.props.selectedOption?this.props.selectedOption:[],showEmptyState:false,showError:false,defaultDataSource:null,componentId:Object(utils["generateComponentId"])()}}componentWillUnmount(){this._isMounted=false;Object(utils["getDataSourceSelection"])().remove(this.state.componentId)}async componentDidMount(){var _getDefaultDataSource;this._isMounted=true;const selectedOption=this.props.selectedOption;const option=selectedOption[0];const optionId=option.id;const defaultDataSource=(_getDefaultDataSource=Object(utils["getDefaultDataSourceId"])(this.props.uiSettings))!==null&&_getDefaultDataSource!==void 0?_getDefaultDataSource:null;if(optionId===""&&!this.props.hideLocalCluster){this.setState({selectedOption:[constants["c"]],defaultDataSource:defaultDataSource});this.onSelectedDataSources([constants["c"]]);return}if(optionId===""&&this.props.hideLocalCluster){this.setState({selectedOption:[]});this.onSelectedDataSources([]);return}if(!option.label){try{const selectedDataSource=await Object(utils["getDataSourceById"])(optionId,this.props.savedObjectsClient);if(this.props.dataSourceFilter&&[selectedDataSource].filter(this.props.dataSourceFilter).length===0){this.setState({selectedOption:[]});this.onSelectedDataSources([]);return}if(!this._isMounted)return;this.setState({selectedOption:[{id:optionId,label:selectedDataSource.title}],defaultDataSource:defaultDataSource});this.onSelectedDataSources([{id:optionId,label:selectedDataSource.title}])}catch(error){Object(utils["handleDataSourceFetchError"])(this.onError.bind(this),this.props.notifications,this.onSelectedDataSources.bind(this))}}else{this.setState({...this.state,defaultDataSource:defaultDataSource});this.onSelectedDataSources([option])}}onSelectedDataSources(dataSource){Object(utils["getDataSourceSelection"])().selectDataSource(this.state.componentId,dataSource);if(this.props.onSelectedDataSources){this.props.onSelectedDataSources(dataSource)}}onError(){this.setState({showError:true})}onClick(){this.setState({...this.state,isPopoverOpen:!this.state.isPopoverOpen})}closePopover(){this.setState({...this.state,isPopoverOpen:false})}render(){if(this.state.showError){return external_osdSharedDeps_React_default.a.createElement(DataSourceErrorMenu,{application:this.props.application})}const label=this.state.selectedOption.length>0&&this.state.selectedOption[0].label?this.state.selectedOption[0].label:"";const options=this.state.selectedOption.length>0?this.state.selectedOption.map(option=>({...option,checked:"on",disabled:true})):[];return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"dataSourceViewPopover",button:external_osdSharedDeps_React_default.a.createElement(DataSourceMenuPopoverButton,{className:"dataSourceView",label:label,onClick:this.onClick.bind(this),isDisabled:true}),isOpen:this.state.isPopoverOpen,closePopover:this.closePopover.bind(this),panelPaddingSize:"none",anchorPosition:"downLeft"},external_osdSharedDeps_React_default.a.createElement(DataSourceDropDownHeader,{totalDataSourceCount:1,application:this.props.application}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiContextMenuPanel"],{className:"dataSourceViewOuiPanel"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{color:"subdued",paddingSize:"none",borderRadius:"none"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelectable"],{options:options,singleSelection:true,"data-test-subj":"dataSourceView",renderOption:option=>external_osdSharedDeps_React_default.a.createElement(data_source_item["a"],{option:option,defaultDataSource:this.state.defaultDataSource,className:"dataSourceView"})},list=>list))))}}var data_source_filter_group=__webpack_require__(192);const selectionToggleButtons=[{id:"select_all",label:"Select all"},{id:"deselect_all",label:"Deselect all"}];const DataSourceFilterGroup=_ref=>{let{selectedOptions:selectedOptions,setSelectedOptions:setSelectedOptions,defaultDataSource:defaultDataSource}=_ref;const[isPopoverOpen,setIsPopoverOpen]=Object(external_osdSharedDeps_React_["useState"])(false);const[selectionToggleSelectedId,setSelectionToggleSelectedId]=Object(external_osdSharedDeps_React_["useState"])("select_all");const onButtonClick=()=>{setIsPopoverOpen(!isPopoverOpen)};const closePopover=()=>{setIsPopoverOpen(false)};function toggleItem(index){if(!selectedOptions[index]){return}const newItems=[...selectedOptions];if(newItems[index].checked==="on"){newItems[index]={...newItems[index],checked:undefined}}else{newItems[index]={...newItems[index],checked:"on"}}setSelectedOptions(newItems)}function onSelectionToggleChange(optionId){setSelectionToggleSelectedId(optionId);toggleAll(optionId==="select_all"?"on":undefined)}function toggleAll(state){const optionsAfterToggle=selectedOptions.map(option=>({...option,checked:state}));setSelectedOptions(optionsAfterToggle)}function search(term){const optionsAfterSearch=selectedOptions.map(option=>{option.visible=option.label.toLowerCase().includes(term.toLowerCase());return option});setSelectedOptions(optionsAfterSearch)}const numActiveSelections=selectedOptions.filter(option=>option.checked==="on").length;const button=external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonEmpty"],{className:"euiHeaderLink",onClick:onButtonClick,iconType:"database",size:"s","data-test-subj":"dataSourceFilterGroupButton"},"Data sources"),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiNotificationBadge"],{color:"subdued"},numActiveSelections));return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{id:"popoverExampleMultiSelect",button:button,isOpen:isPopoverOpen,closePopover:closePo
1pover,panelPaddingSize:"none"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverTitle"],{paddingSize:"s"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFieldSearch"],{compressed:true,onSearch:search,isClearable:true,"data-test-subj":"dataSourceMultiSelectFieldSearch"})),external_osdSharedDeps_React_default.a.createElement("div",{className:"dataSourceFilterGroupItems"},selectedOptions.map((item,index)=>{const itemStyle={};itemStyle.display=!item.visible?"none":itemStyle.display;return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiFilterSelectItem"],{checked:item.checked,key:index,onClick:()=>toggleItem(index),showIcons:true,style:itemStyle},external_osdSharedDeps_React_default.a.createElement(data_source_item["a"],{option:item,defaultDataSource:defaultDataSource,className:"dataSourceFilterGroup"}))})),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverFooter"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiButtonGroup"],{legend:"All options selection toggle group",options:selectionToggleButtons,idSelected:selectionToggleSelectedId,onChange:onSelectionToggleChange}
1)))};function data_source_multi_selectable_defineProperty(e,r,t){return(r=data_source_multi_selectable_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function data_source_multi_selectable_toPropertyKey(t){var i=data_source_multi_selectable_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function data_source_multi_selectable_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class data_source_multi_selectable_DataSourceMultiSelectable extends external_osdSharedDeps_React_default.a.Component{constructor(props){super(props);data_source_multi_selectable_defineProperty(this,"_isMounted",false);this.state={dataSourceOptions:[],selectedOptions:[],defaultDataSource:null,showEmptyState:false,showError:false,incompatibleDataSourcesExist:false,componentId:Object(utils["generateComponentId"])()}}componentWillUnmount(){this._isMounted=false;const{componentId:componentId}=this.state;Object(utils["getDataSourceSelection"])().remove(componentId)}onSelectedDataSources(dataSources){Object(utils["getDataSourceSelection"])().selectDataSource(this.state.componentId,dataSources);if(this.props.onSelectedDataSources){this.props.onSelectedDataSources(dataSources)}}async componentDidMount(){this._isMounted=true;try{var _getDefaultDataSource;const defaultDataSource=(_getDefaultDataSource=Object(utils["getDefaultDataSourceId"])(this.props.uiSettings))!==null&&_getDefaultDataSource!==void 0?_getDefaultDataSource:null;let selectedOptions=[];const fetchedDataSources=await Object(utils["getDataSourcesWithFields"])(this.props.savedObjectsClient,["id","title","auth.type","dataSourceVersion","installedPlugins"]);if(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length){selectedOptions=fetchedDataSources.map(dataSource=>{var _dataSource$attribute;return{id:dataSource.id,label:((_dataSource$attribute=dataSource.attributes)===null||_dataSource$attribute===void 0?void 0:_dataSource$attribute.title)||"",checked:"on",visible:true}})}if(!this.props.hideLocalCluster){selectedOptions.unshift({id:"",label:"Local cluster",checked:"on",visible:true})}if(!this._isMounted)return;if(selectedOptions.length===0){Object(utils["handleNoAvailableDataSourceError"])({changeState:this.onEmptyState.bind(this,!!(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length)),notifications:this.props.notifications,application:this.props.application,callback:this.onSelectedDataSources.bind(this),incompatibleDataSourcesExist:!!(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length)});return}this.setState({...this.state,selectedOptions:selectedOptions,defaultDataSource:defaultDataSource});this.onSelectedDataSources(selectedOptions)}catch(error){Object(utils["handleDataSourceFetchError"])(this.onError.bind(this),this.props.notifications,this.onSelectedDataSources.bind(this))}}onEmptyState(incompatibleDataSourcesExist){this.setState({showEmptyState:true,incompatibleDataSourcesExist:incompatibleDataSourcesExist})}onError(){this.setState({showError:true})}onChange(selectedOptions){if(!this._isMounted)return;this.setState({selectedOptions:selectedOptions});this.onSelectedDataSources(selectedOptions.filter(option=>option.checked==="on"))}render(){if(this.state.showEmptyState){return external_osdSharedDeps_React_default.a.createElement(NoDataSource,{application:this.props.application})}if(this.state.showError){return external_osdSharedDeps_React_default.a.createElement(DataSourceErrorMenu,{application:this.props.application})}return external_osdSharedDeps_React_default.a.createElement(DataSourceFilterGroup,{selectedOptions:this.state.selectedOptions,setSelectedOptions:this.onChange.bind(this),defaultDataSource:this.state.defaultDataSource})}}var types=__webpack_require__(14);var data_source_selector=__webpack_require__(25);var data_source_selectable=__webpack_require__(65);function data_source_selectable_defineProperty(e,r,t){return(r=d
1ata_source_selectable_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function data_source_selectable_toPropertyKey(t){var i=data_source_selectable_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function data_source_selectable_toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class data_source_selectable_DataSourceSelectable extends external_osdSharedDeps_React_default.a.Component{constructor(props){super(props);data_source_selectable_defineProperty(this,"_isMounted",false);this.state={dataSourceOptions:[],isPopoverOpen:false,selectedOption:[],defaultDataSource:null,showEmptyState:false,showError:false,incompatibleDataSourcesExist:false,componentId:Object(utils["generateComponentId"])()};this.onChange.bind(this)}componentWillUnmount(){this._isMounted=false;Object(utils["getDataSourceSelection"])().remove(this.state.componentId)}onClick(){this.setState({...this.state,isPopoverOpen:!this.state.isPopoverOpen})}closePopover(){this.setState({...this.state,isPopoverOpen:false})}onSelectedDataSources(dataSources){Object(utils["getDataSourceSelection"])().selectDataSource(this.state.componentId,dataSources);this.props.onSelectedDataSources(dataSources)}getUpdatedDataSourceOptions(selectedDataSourceId,dataSourceOptions){return dataSourceOptions.map(option=>({...option,...option.id===selectedDataSourceId&&{checked:"on"}}))}handleSelectedOption(dataSourceOptions,defaultDataSource){const[{id:id}]=this.props.selectedOption;const dsOption=dataSourceOptions.find(ds=>ds.id===id);if(!dsOption){this.props.notifications.addWarning(external_osdSharedDeps_OsdI18n_["i18n"].translate("dataSourcesManagement.error.fetchDataSourceById",{defaultMessage:'Data source with ID "{id}" is not available',values:{id:id}}));this.setState({...this.state,dataSourceOptions:dataSourceOptions,selectedOption:[],defaultDataSource:defaultDataSource});this.onSelectedDataSources([]);return}const updatedDataSourceOptions=this.getUpdatedDataSourceOptions(id,dataSourceOptions);this.setState({...this.state,dataSourceOptions:updatedDataSourceOptions,selectedOption:[{id:id,label:dsOption.label}],defaultDataSource:defaultDataSource});this.onSelectedDataSources([{id:id,label:dsOption.label}])}handleDefaultDataSource(dataSourceOptions,defaultDataSource){const selectedDataSource=Object(utils["getDefaultDataSource"])(dataSourceOptions,data_source_selector["c"],defaultDataSource,this.props.hideLocalCluster);if(selectedDataSource.length===0){this.props.notifications.addWarning("No connected data source available.");this.onSelectedDataSources([]);return}const updatedDataSourceOptions=this.getUpdatedDataSourceOptions(selectedDataSource[0].id,dataSourceOptions);this.setState({...this.state,selectedOption:selectedDataSource,dataSourceOptions:updatedDataSourceOptions,defaultDataSource:defaultDataSource});this.onSelectedDataSources(selectedDataSource)}async componentDidMount(){this._isMounted=true;try{var _getDefaultDataSource,_this$props$selectedO;const fetchedDataSources=await Object(utils["getDataSourcesWithFields"])(this.props.savedObjectsClient,["id","title","auth.type","dataSourceVersion","installedPlugins"]);const dataSourceOptions=Object(utils["getFilteredDataSources"])(fetchedDataSources,this.props.dataSourceFilter);if(dataSourceOptions.length===0&&this.props.hideLocalCluster){this.setState({showEmptyState:true})}if(!this.props.hideLocalCluster){dataSourceOptions.unshift(data_source_selector["c"])}if(dataSourceOptions.length===0){Object(utils["handleNoAvailableDataSourceError"])({changeState:this.onEmptyState.bind(this,!!(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length)),notifications:this.props.notifications,application:this.props.application,callback:this.onSelectedDataSources.bind(this),incompatibleDataSourcesExist:!!(fetchedDataSources!==null&&fetchedDataSources!==void 0&&fetchedDataSources.length)});return}const defaultDataSource=(_getDefaultDataSource=Object(utils["getDefaultDataSourceId"])(this.props.uiSettings))!==null&&_getDefaultDataSource!==void 0?_getDefaultDataSource:null;if((_this$props$selectedO=this.props.selectedOption)!==null&&_this$props$selectedO!==void 0&&_this$props$selectedO.length){this.handleSelectedOption(dataSourceOptions,defaultDataSource);return}this.handleDefaultDataSource(dataSourceOptions,defaultDataSource)}catch(error){Object(utils["handleDataSourceFetchError"])(this.onError.bind(this),this.props.notifications,this.onSelectedDataSources.bind(this))}}onEmptyState(incompatibleDataSourcesExist){this.setState({showEmptyState:true,incompatibleDataSourcesExist:incompatibleDataSourcesExist})}onError(){this.setState({showError:true})}onChange(options){if(!this._isMounted)return;const selectedDataSource=options.find(_ref=>{let{checked:checked}=_ref;return checked});this.setState({dataSourceOptions:options});if(selectedDataSource){this.setState({selectedOption:[selectedDataSource],isPopoverOpen:false});this.onSelectedDataSources([{id:selectedDataSource.id,label:selectedDataSource.label}])}}render(){var _this$state$selectedO;if(this.state.showEmptyState){return external_osdSharedDeps_React_default.a.createElement(NoDataSource,{application:this.props.application,incompatibleDataSourcesExist:this.state.incompatibleDataSourcesExist})}if(this.state.showError){return external_osdSharedDeps_React_default.a.createElement(DataSourceErrorMenu,{application:this.props.application})}const label=this.state.selectedOption&&this.state.selectedOption.length>0&&((_this$state$selectedO=this.state.selectedOption[0])===null||_this$state$selectedO===void 0?void 0:_this$state$selectedO.label)||"";return external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopover"],{initialFocus:".euiSelectableSearch",id:"dataSourceSelectableContextMenuPopover",button:external_osdSharedDeps_React_default.a.createElement(DataSourceMenuPopoverButton,{className:"dataSourceSelectable",label:label,onClick:this.onClick.bind(this)}),isOpen:this.state.isPopoverOpen,closePopover:this.closePopover.bind(this),panelPaddingSize:"none",anchorPosition:"downLeft","data-test-subj":"dataSourceSelectableContextMenuPopover"},external_osdSharedDeps_React_default.a.createElement(DataSourceDropDown
1Header,{onManageDataSource:this.props.onManageDataSource,totalDataSourceCount:this.state.dataSourceOptions.length,application:this.props.application}),external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiContextMenuPanel"],null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPanel"],{className:"dataSourceSelectableOuiPanel",color:"transparent",paddingSize:"none"},external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiSelectable"],{"aria-label":"Search",searchable:true,searchProps:{placeholder:"Search",compressed:true},listProps:{onFocusBadge:false},options:this.state.dataSourceOptions,onChange:newOptions=>this.onChange(newOptions),singleSelection:"always","data-test-subj":"dataSourceSelectable",renderOption:option=>external_osdSharedDeps_React_default.a.createElement(data_source_item["a"],{option:option,defaultDataSource:this.state.defaultDataSource,className:"dataSourceSelectable"})},(list,search)=>external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_React_default.a.Fragment,null,external_osdSharedDeps_React_default.a.createElement(external_osdSharedDeps_ElasticEui_["EuiPopoverTitle"],{paddingSize:"s"},search),list)))))}}function DataSourceMenu(props){const{componentType:componentType,componentConfig:componentConfig,uiSettings:uiSettings,hideLocalCluster:hideLocalCluster,application:application,onManageDataSource:onManageDataSource}=props;function renderDataSourceView(config){const{activeOption:activeOption,fullWidth:fullWidth,savedObjects:savedObjects,notifications:notifications,dataSourceFilter:dataSourceFilter,onSelectedDataSources:onSelectedDataSources}=config;return external_osdSharedDeps_React_default.a.createElement(data_source_view_DataSourceView,{fullWidth:fullWidth,selectedOption:activeOption,savedObjectsClient:savedObjects,notifications:notifications===null||notifications===void 0?void 0:notifications.toasts,hideLocalCluster:hideLocalCluster||false,dataSourceFilter:dataSourceFilter,onSelectedDataSources:onSelectedDataSources,uiSettings:uiSettings,application:application})}function renderDataSourceMultiSelectable(config){const{fullWidth:fullWidth,savedObjects:savedObjects,notifications:notifications,onSelectedDataSources:onSelectedDataSources}=config;return external_osdSharedDeps_React_default.a.createElement(data_source_multi_selectable_DataSourceMultiSelectable,{fullWidth:fullWidth,hideLocalCluster:hideLocalCluster||false,savedObjectsClient:savedObjects,notifications:notifications.toasts,onSelectedDataSources:onSelectedDataSources,uiSettings:uiSettings,application:application})}function renderDataSourceSelectable(config){const{onSelectedDataSources:onSelectedDataSources,disabled:disabled,activeOption:activeOption,fullWidth:fullWidth,savedObjects:savedObjects,notifications:notifications,dataSourceFilter:dataSourceFilter}=config;return external_osdSharedDeps_React_default.a.createElement(data_source_selectable_DataSourceSelectable,{onManageDataSource:onManageDataSource,savedObjectsClient:savedObjects,notifications:notifications.toasts,onSelectedDataSources:onSelectedDataSources,disabled:disabled||false,selectedOption:activeOption&&activeOption.length>0?activeOption:undefined,dataSourceFilter:dataSourceFilter,hideLocalCluster:hideLocalCluster||false,fullWidth:fullWidth,uiSettings:uiSettings,application:application})}function renderDataSourceAggregatedView(config){const{fullWidth:fullWidth,activeDataSourceIds:activeDataSourceIds,displayAllCompatibleDataSources:displayAllCompatibleDataSources,savedObjects:savedObjects,notifications:notifications,dataSourceFilter:dataSourceFilter}=config;return external_osdSharedDeps_React_default.a.createElement(data_source_aggregated_view_DataSourceAggregatedView,{fullWidth:fullWidth,hideLocalCluster:hideLocalCluster||false,savedObjectsClient:savedObjects,notifications:notifications.toasts,activeDataSourceIds:activeDataSourceIds,dataSourceFilter:dataSourceFilter,displayAllCompatibleDataSources:displayAllCompatibleDataSources,uiSettings:uiSettings,application:application})}function renderLayout(){switch(componentType){case types["b"].DataSourceAggregatedView:return renderDataSourceAggregatedView(componentConfig);case types["b"].DataSourceSelectable:return renderDataSourceSelectable(componentConfig);case types["b"].DataSourceView:return renderDataSourceView(componentConfig);case types["b"].DataSourceMultiSelectable:return renderDataSourceMultiSelectable(componentConfig);default:return null}}return renderLayout()}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"b",(function(){return PLUGIN_NAME}));__webpack_require__.d(__webpack_exports__,"a",(function(){return DEFAULT_DATA_SOURCE_UI_SETTINGS_ID}));let ManageableBy=function(ManageableBy){ManageableBy["All"]="all";ManageableBy["DashboardAdmin"]="dashboard_admin";ManageableBy["None"]="none";return ManageableBy}({});const PLUGIN_ID="dataSourceManagement";const PLUGIN_NAME="Data sources";const DEFAULT_DATA_SOURCE_UI_SETTINGS_ID="defaultDataSource";const DATA_SOURCE_PERMISSION_CLIENT_WRAPPER_ID="data-source-permission";const ORDER_FOR_DATA_SOURCE_PERMISSION_WRAPPER=50;const DEFAULT_INDEX_PATTERN_UI_SETTINGS_ID="defaultIndex"},function(module,exports,__webpack_require__){var listCacheClear=__webpack_require__(220),listCacheDelete=__webpack_require__(221),listCacheGet=__webpack_require__(222),listCacheHas=__webpack_require__(223),listCacheSet=__webpack_require__(224);function ListCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;module.exports=ListCache},function(module,exports,__webpack_require__){var eq=__webpack_require__(69);function assocIndexOf(array,key){var length=array.length;while(length--){if(eq(array[length][0],key)){return length}}return-1}module.exports=assocIndexOf},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26);var nativeCreate=getNative(Object,"create");module.exports=nativeCreate},function(module,exports,__webpack_require__){var isKeyable=__webpack_require__(244);function getMapData(map,key){var data=map.__data__;
1return isKeyable(key)?data[typeof key=="string"?"string":"hash"]:data.map}module.exports=getMapData},function(module,exports,__webpack_require__){var isFunction=__webpack_require__(70),isLength=__webpack_require__(55);function isArrayLike(value){return value!=null&&isLength(value.length)&&!isFunction(value)}module.exports=isArrayLike},function(module,exports,__webpack_require__){var isSymbol=__webpack_require__(48);var INFINITY=1/0;function toKey(value){if(typeof value=="string"||isSymbol(value)){return value}var result=value+"";return result=="0"&&1/value==-INFINITY?"-0":result}module.exports=toKey},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return createDataSourceMenu}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);var _elastic_eui__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1);var _elastic_eui__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__);var _data_source_menu__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(35);var _opensearch_dashboards_react_public__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(16);var _opensearch_dashboards_react_public__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_opensearch_dashboards_react_public__WEBPACK_IMPORTED_MODULE_3__);var _utils__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4);function _extends(){return _extends=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},_extends.apply(null,arguments)}function createDataSourceMenu(){const application=Object(_utils__WEBPACK_IMPORTED_MODULE_4__["getApplication"])();const uiSettings=Object(_utils__WEBPACK_IMPORTED_MODULE_4__["getUiSettings"])();const hideLocalCluster=Object(_utils__WEBPACK_IMPORTED_MODULE_4__["getHideLocalCluster"])().enabled;return props=>{if(props.setMenuMountPoint){return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_opensearch_dashboards_react_public__WEBPACK_IMPORTED_MODULE_3__["MountPointPortal"],{setMountPoint:props.setMenuMountPoint},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__["EuiHeaderLinks"],{"data-test-subj":"top-nav",gutterSize:"xs",popoverBreakpoints:"none"},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_data_source_menu__WEBPACK_IMPORTED_MODULE_2__["a"],_extends({},props,{uiSettings:uiSettings,hideLocalCluster:hideLocalCluster,application:application}))))}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_data_source_menu__WEBPACK_IMPORTED_MODULE_2__["a"],_extends({},props,{uiSettings:uiSettings,hideLocalCluster:hideLocalCluster,application:application}))}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return SQLService}));function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class SQLService{constructor(http){_defineProperty(this,"http",void 0);_defineProperty(this,"fetch",async(params,dataSourceMDSId,errorHandler)=>{const query={dataSourceMDSId:dataSourceMDSId};return this.http.post("/api/observability/query/jobs",{body:JSON.stringify(params),query:query}).catch(error=>{console.error("fetch error: ",error.body);if(errorHandler)errorHandler(error);throw error})});_defineProperty(this,"fetchWithJobId",async(params,dataSourceMDSId,errorHandler)=>this.http.get(`/api/observability/query/jobs/${params.queryId}/${dataSourceMDSId!==null&&dataSourceMDSId!==void 0?dataSourceMDSId:""}`).catch(error=>{console.error("fetch error: ",error.body);if(errorHandler)errorHandler(error);throw error}));_defineProperty(this,"deleteWithJobId",async(params,errorHandler)=>this.http.delete(`/api/observability/query/jobs/${params.queryId}`).catch(error=>{console.error("delete error: ",error.body);if(errorHandler)errorHandler(error);throw error}));this.http=http}}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return usePolling}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==typeof i?i:i+""}function _toPrimitive(t,r){if("object"!=typeof t||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}class UsePolling{constructor(fetchFunction){let interval=arguments.length>1&&arguments[1]!==undefined?arguments[1]:5e3;let onPollingSuccess=arguments.length>2?arguments[2]:undefined;let onPollingError=arguments.length>3?arguments[3]:undefined;let configurations=arguments.length>4?arguments[4]:undefined;this.fetchFunction=fetchFunction;this.interval=interval;this.onPollingSuccess=onPollingSuccess;this.onPollingError=onPollingError;this.configurations=configurations;_defineProperty(this,"data",null);_defineProperty(this,"error",null);_defineProperty(this,"loading",true);_defineProperty(this,"shouldPoll",false);_defineProperty(this,"intervalRef",void 0)}async fetchData(params){this.loading=true;try{const result=await this.fetchFunction(params);this.data=result;this.loading=false;if(this.onPollingSuccess&&this.onPollingSuccess(result,this.configurations)){this.stopPolling()}}catch(err){this.error=err;this.loading=false;if(this.onPollingError&&this.onPollingError(this.error)){this.stopPolling()}}}startPolling(params){this.shouldPoll=true;if(!this.intervalRef){this.intervalRef=setInterval(()=>{if(this.shouldPoll){this.fetchData(params)}},this.interval)}}stopPolling(){this.shouldPoll=false;if(this.intervalRef){clearInterval(this.intervalRef);this.intervalRef=undefined}}}function usePolling(fetchFunction){let interval=arguments.length>1&&arguments[1]!==undefined?arguments[1]:5e3;let onPollingSuccess=arguments.length>2?arguments[2]:undefined;let onPollingError=arguments.length>3?arguments[3]:undefined;let configurations=arguments.length>4?arguments[4]:undefined;const[data,setData]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null);const[error,setError]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null);const[loading,setLoading]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(true);const intervalRef=Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(undefined);const unmounted=Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(false);const shouldPoll=Object(react__WEBPACK_IMPORTED_MODULE_0__["useRef"])(false);const startPolling=params=>{shouldPoll.current=true;const intervalId=setInterval(()=>{if(shouldPoll.current){fetchData(params)}},interval);intervalRef.current=intervalId;if(unmounted.current){clearInterval(intervalId)}};const stopPolling=()=>{shouldPoll.current=false;clearInterval(intervalRef.current)};const fetchData=async params=>{try{const result=await fetchFunction(params);setData(result);if(onPollingSuccess&&onPollingSuccess(result,configurations)){stopPolling()}}catch(err){setError(err);if(onPollingError&&onPollingError(err)){stopPolling()}}finally{setLoading(false)}};Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(()=>()=>{unmounted.current=true},[]);return{data:data,loading:loading,error:error,startPolling:startPolling,stopPolling:stopPolling}}},function(module,exports,__webpack_require__){var baseDifference=__webpack_require__(292),baseFlatten=__webpack_require__(299),baseIteratee=__webpack_require__(50),baseRest=__webpack_require__(301),isArrayLikeObject=__webpack_require__(309),last=__webpack_require__(310);var differenceBy=baseRest((function(array,values){var iteratee=last(values);if(isArrayLikeObject(iteratee)){iteratee=undefined}return isArrayLikeObject(array)?baseDifference(array,baseFlatten(values,1,isArrayLikeObject,true),baseIteratee(iteratee,2)):[]}));module.exports=differenceBy},function(module,exports){function isObject(value){var type=typeof value;return value!=null&&(type=="object"||type=="function")}module.exports=isObject},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(33),isObjectLike=__webpack_require__(27);var symbolTag="[object Symbol]";function isSymbol(value){return typeof value=="symbol"||isObjectLike(value)&&baseGetTag(value)==symbolTag}module.exports=isSymbol},function(module,exports){function arrayMap(array,iteratee){var index=-1,length=array==null?0:array.length,result=Array(length);while(++index<length){result[index]=iteratee(array[index],index,array)}return result}module.exports=arrayMap},function(module,exports,__webpack_require__){var baseMatches=__webpack_require__(218),baseMatchesProperty=__webpack_require__(276),identity=__webpack_require__(57),isArray=__webpack_require__(17),property=__webpack_require__(284);function baseIteratee(value){if(typeof value=="function"){return value}if(value==null){return identity}if(typeof value=="object"){return isArray(value)?baseMatchesProperty(value[0],value[1]):baseMatches(value)}return property(value)}module.exports=baseIteratee},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26),root=__webpack_require__(22);var Map=getNative(root,"Map");module.exports=Map},function(module,exports,__webpack_require__){var mapCacheClear=__webpack_require__(236),mapCacheDelete=__webpack_require__(243),mapCacheGet=__webpack_require__(245),mapCacheHas=__webpack_require__(246),mapCacheSet=__webpack_require__(247);function MapCache(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}MapCache.prototype.clear=mapCacheClear;
1MapCache.prototype["delete"]=mapCacheDelete;MapCache.prototype.get=mapCacheGet;MapCache.prototype.has=mapCacheHas;MapCache.prototype.set=mapCacheSet;module.exports=MapCache},function(module,exports,__webpack_require__){var arrayLikeKeys=__webpack_require__(261),baseKeys=__webpack_require__(266),isArrayLike=__webpack_require__(41);function keys(object){return isArrayLike(object)?arrayLikeKeys(object):baseKeys(object)}module.exports=keys},function(module,exports,__webpack_require__){var baseIsArguments=__webpack_require__(263),isObjectLike=__webpack_require__(27);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var propertyIsEnumerable=objectProto.propertyIsEnumerable;var isArguments=baseIsArguments(function(){return arguments}())?baseIsArguments:function(value){return isObjectLike(value)&&hasOwnProperty.call(value,"callee")&&!propertyIsEnumerable.call(value,"callee")};module.exports=isArguments},function(module,exports){var MAX_SAFE_INTEGER=9007199254740991;function isLength(value){return typeof value=="number"&&value>-1&&value%1==0&&value<=MAX_SAFE_INTEGER}module.exports=isLength},function(module,exports,__webpack_require__){var isArray=__webpack_require__(17),isSymbol
1=__webpack_require__(48);var reIsDeepProp=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,reIsPlainProp=/^\w*$/;function isKey(value,object){if(isArray(value)){return false}var type=typeof value;if(type=="number"||type=="symbol"||type=="boolean"||value==null||isSymbol(value)){return true}return reIsPlainProp.test(value)||!reIsDeepProp.test(value)||object!=null&&value in Object(object)}module.exports=isKey},function(module,exports){function identity(value){return value}module.exports=identity},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("entry/core/public");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports){module.exports=__osdSharedDeps__.Rxjs},function(module,exports){function baseUnary(func){return function(value){return func(value)}}module.exports=baseUnary},function(module,exports){var getRandomValues=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof window.msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto);if(getRandomValues){var rnds8=new Uint8Array(16);module.exports=function whatwgRNG(){getRandomValues(rnds8);return rnds8}}else{var rnds=new Array(16);module.exports=function mathRNG(){for(var i=0,r;i<16;i++){if((i&3)===0)r=Math.random()*4294967296;rnds[i]=r>>>((i&3)<<3)&255}return rnds}}},function(module,exports){var byteToHex=[];for(var i=0;i<256;++i){byteToHex[i]=(i+256).toString(16).substr(1)}function bytesToUuid(buf,offset){var i=offset||0;var bth=byteToHex;return[bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],"-",bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]],bth[buf[i++]]].join("")}module.exports=bytesToUuid},function(module,exports,__webpack_require__){"use strict";var IntlMessageFormat=__webpack_require__(116)["default"];__webpack_require__(123);exports=module.exports=IntlMessageFormat;exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";exports.extend=extend;var hop=Object.prototype.hasOwnProperty;function extend(obj){var sources=Array.prototype.slice.call(arguments,1),i,len,source,key;for(i=0,len=sources.length;i<len;i+=1){source=sources[i];if(!source){continue}for(key in source){if(hop.call(source,key)){obj[key]=source[key]}}}return obj}exports.hop=hop},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(205);case"v7light":return __webpack_require__(207);case"v8dark":return __webpack_require__(209);case"v8light":return __webpack_require__(211);case"v9dark":return __webpack_require__(213);case"v9light":return __webpack_require__(215)}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return AccelerationActionOverlay}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);var _elastic_eui__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(1);var _elastic_eui__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__);var _acceleration_utils__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(12);const AccelerationActionOverlay=_ref=>{let{isVisible:isVisible,actionType:actionType,acceleration:acceleration,dataSourceName:dataSourceName,onCancel:onCancel,onConfirm:onConfirm}=_ref;const[confirmationInput,setConfirmationInput]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])("");if(!isVisible||!acceleration){return null}const displayIndexName=Object(_acceleration_utils__WEBPACK_IMPORTED_MODULE_2__["l"])(acceleration);const displayFullPath=Object(_acceleration_utils__WEBPACK_IMPORTED_MODULE_2__["k"])(acceleration,dataSourceName);let title="";let description="";let confirmButtonText="Confirm";let confirmEnabled=true;switch(actionType){case"vacuum":title=`Vacuum acceleration ${displayIndexName} on ${displayFullPath} ?`;description=_acceleration_utils__WEBPACK_IMPORTED_MODULE_2__["f"];confirmButtonText="Vacuum";confirmEnabled=confirmationInput===displayIndexName;break;case"delete":title=`Delete acceleration ${displayIndexName} on ${displayFullPath} ?`;description=Object(_acceleration_utils__WEBPACK_IMPORTED_MODULE_2__["a"])(displayIndexName);confirmButtonText="Delete";break;case"sync":title="Manual sync data?";description=_acceleration_utils__WEBPACK_IMPORTED_MODULE_2__["e"];confirmButtonText="Sync";break}return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__["EuiOverlayMask"],null,react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__["EuiConfirmModal"],{title:title,onCancel:onCancel,onConfirm:()=>
1onConfirm(),cancelButtonText:"Cancel",confirmButtonText:confirmButtonText,buttonColor:"danger",defaultFocusedButton:"confirm",confirmButtonDisabled:!confirmEnabled},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("p",null,description),actionType==="vacuum"&&react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__["EuiFormRow"],{label:`To confirm, type ${displayIndexName}`},react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_elastic_eui__WEBPACK_IMPORTED_MODULE_1__["EuiFieldText"],{name:"confirmationInput",value:confirmationInput,onChange:e=>setConfirmationInput(e.target.value)}))))}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return useAccelerationOperation}));var react__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(0);var react__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);var _framework_types__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3);var _framework_hooks_direct_query_hook__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(30);var _acceleration_utils__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(12);const useAccelerationOperation=(dataSource,http,notifications,dataSourceMDSId)=>{const{startLoading:startLoading,stopLoading:stopLoading,loadStatus:loadStatus}=Object(_framework_hooks_direct_query_hook__WEBPACK_IMPORTED_MODULE_2__["a"])(http,notifications,dataSourceMDSId);const[isOperating,setIsOperating]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(false);const[operationSuccess,setOperationSuccess]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(false);const[accelerationToOperate,setAccelerationToOperate]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null);const[operationType,setOperationType]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null);const[currentStatus,setCurrentStatus]=Object(react__WEBPACK_IMPORTED_MODULE_0__["useState"])(null);Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(()=>{if(!accelerationToOperate||!operationType||loadStatus===currentStatus)return;const displayAccelerationName=Object(_acceleration_utils__WEBPACK_IMPORTED_MODULE_3__["l"])(accelerationToOperate);let operationInProgressMessage="";let operationSuccessMessage="";let operationFailureMessage="";switch(operationType){case"delete":operationInProgressMessage=`Deleting acceleration: ${displayAccelerationName}`;operationSuccessMessage=`Successfully deleted acceleration: ${displayAccelerationName}`;operationFailureMessage=`Failed to delete acceleration: ${displayAccelerationName}`;break;case"vacuum":operationInProgressMessage=`Vacuuming acceleration: ${displayAccelerationName}`;operationSuccessMessage=`Successfully vacuumed acceleration: ${displayAccelerationName}`;operationFailureMessage=`Failed to vacuum acceleration: ${displayAccelerationName}`;break;case"sync":operationInProgressMessage=`Syncing acceleration: ${displayAccelerationName}`;break}if(loadStatus===_framework_types__WEBPACK_IMPORTED_MODULE_1__["b"].SCHEDULED&&operationType!=="sync"){setIsOperating(true);notifications.toasts.addSuccess(operationInProgressMessage)}else if(loadStatus===_framework_types__WEBPACK_IMPORTED_MODULE_1__["b"].SUCCESS&&operationType!=="sync"){setIsOperating(false);setAccelerationToOperate(null);setOperationSuccess(true);notifications.toasts.addSuccess(operationSuccessMessage)}else if(loadStatus===_framework_types__WEBPACK_IMPORTED_MODULE_1__["b"].FAILED&&operationType!=="sync"){setIsOperating(false);setOperationSuccess(false);notifications.toasts.addDanger(operationFailureMessage)}else if(operationType==="sync"&&loadStatus===_framework_types__WEBPACK_IMPORTED_MODULE_1__["b"].SCHEDULED){notifications.toasts.addSuccess(operationInProgressMessage);stopLoading()}setCurrentStatus(loadStatus)},[loadStatus,accelerationToOperate,operationType,currentStatus]);Object(react__WEBPACK_IMPORTED_MODULE_0__["useEffect"])(()=>()=>{stopLoading()},[]);const performOperation=(acceleration,operation)=>{setOperationSuccess(false);setOperationType(operation);const operationQuery=Object(_acceleration_utils__WEBPACK_IMPORTED_MODULE_3__["j"])(acceleration,dataSource,operation);const requestPayload={lang:"sql",query:operationQuery,datasource:dataSource};setIsOperating(true);setAccelerationToOperate(acceleration);startLoading(requestPayload)};return{performOperation:performOperation,isOperating:isOperating,operationSuccess:operationSuccess}}},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(37),stackClear=__webpack_require__(225),stackDelete=__webpack_require__(226),stackGet=__webpack_require__(227),stackHas=__webpack_require__(228),stackSet=__webpack_require__(229);function Stack(entries){var data=this.__data__=new ListCache(entries);this.size=data.size}Stack.prototype.clear=stackClear;Stack.prototype["delete"]=stackDelete;Stack.prototype.get=stackGet;Stack.prototype.has=stackHas;Stack.prototype.set=stackSet;module.exports=Stack},function(module,exports){function eq(value,other){return value===other||value!==value&&other!==other}module.exports=eq},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(33),isObject=__webpack_require__(47);var asyncTag="[object AsyncFunction]",funcTag="[object Function]",genTag="[object GeneratorFunction]",proxyTag="[object Proxy]";function isFunction(value){if(!isObject(value)){return false}var tag=baseGetTag(value);return tag==funcTag||tag==genTag||tag==asyncTag||tag==proxyTag}module.exports=isFunction},function(module,exports,__webpack_require__){(function(global){var freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global;module.exports=freeGlobal}).call(this,__webpack_require__(93))},function(module,exports){var funcProto=Function.prototype;var funcToString=funcProto.toString;function toSource(func){if(func!=null){try{return funcToString.call(func)}catch(e){}try{return func+""}catch(e){}}return""}module.exports=toSource},function(module,exports,__webpack_require__){var baseIsEqualDeep=__webpack_require__(248),isObjectLike=__webpack_require__(27);function baseIsEqual(value,other,bitmask,customizer,stack){if(value===other){return true}if(value==null||other==null||!isObjectLike(value)&&!isObjectLike(other)){return value!==value&&other!==other}return baseIsEqualDeep(value,other,bitmask,customizer,baseIsEqual,stack)}module.exports=baseIsEqual},function(module,exports,__webpack_require__){var SetCache=__webpack_require__(75),arraySome=__webpack_require__(251),cacheHas=__webpack_require__(76);
vendor: 5,061 bytes, line 1
1var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function equalArrays(array,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,arrLength=array.length,othLength=other.length;if(arrLength!=othLength&&!(isPartial&&othLength>arrLength)){return false}var arrStacked=stack.get(array);var othStacked=stack.get(other);if(arrStacked&&othStacked){return arrStacked==other&&othStacked==array}var index=-1,result=true,seen=bitmask&COMPARE_UNORDERED_FLAG?new SetCache:undefined;stack.set(array,other);stack.set(other,array);while(++index<arrLength){var arrValue=array[index],othValue=other[index];if(customizer){var compared=isPartial?customizer(othValue,arrValue,index,other,array,stack):customizer(arrValue,othValue,index,array,other,stack)}if(compared!==undefined){if(compared){continue}result=false;break}if(seen){if(!arraySome(other,(function(othValue,othIndex){if(!cacheHas(seen,othIndex)&&(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){return seen.push(othIndex)}}))){result=false;break}}else if(!(arrValue===othValue||equalFunc(arrValue,othValue,bitmask,customizer,stack))){result=false;break}}stack["delete"](array);stack["delete"](other);return result}module.exports=equalArrays},function(module,exports,__webpack_require__){var MapCache=__webpack_require__(52),setCacheAdd=__webpack_require__(249),setCacheHas=__webpack_require__(250);function SetCache(values){var index=-1,length=values==null?0:values.length;this.__data__=new MapCache;while(++index<length){this.add(values[index])}}SetCache.prototype.add=SetCache.prototype.push=setCacheAdd;SetCache.prototype.has=setCacheHas;module.exports=SetCache},function(module,exports){function cacheHas(cache,key){return cache.has(key)}module.exports=cacheHas},function(module,exports){function arrayPush(array,values){var index=-1,length=values.length,offset=array.length;while(++index<length){array[offset+index]=values[index]}return array}module.exports=arrayPush},function(module,exports){function arrayFilter(array,predicate){var index=-1,length=array==null?0:array.length,resIndex=0,result=[];while(++index<length){var value=array[index];if(predicate(value,index,array)){result[resIndex++]=value}}return result}module.exports=arrayFilter},function(module,exports,__webpack_require__){(function(module){var root=__webpack_require__(22),stubFalse=__webpack_require__(264);var freeExports=true&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var Buffer=moduleExports?root.Buffer:undefined;var nativeIsBuffer=Buffer?Buffer.isBuffer:undefined;var isBuffer=nativeIsBuffer||stubFalse;module.exports=isBuffer}).call(this,__webpack_require__(80)(module))},function(module,exports){module.exports=function(module){if(!module.webpackPolyfill){module.deprecate=function(){};module.paths=[];if(!module.children)module.children=[];Object.defineProperty(module,"loaded",{enumerable:true,get:function(){return module.l}});Object.defineProperty(module,"id",{enumerable:true,get:function(){return module.i}});module.webpackPolyfill=1}return module}},function(module,exports){var MAX_SAFE_INTEGER=9007199254740991;var reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(value,length){var type=typeof value;length=length==null?MAX_SAFE_INTEGER:length;return!!length&&(type=="number"||type!="symbol"&&reIsUint.test(value))&&(value>-1&&value%1==0&&value<length)}module.exports=isIndex},function(module,exports,__webpack_require__){var baseIsTypedArray=__webpack_require__(265),baseUnary=__webpack_require__(60),nodeUtil=__webpack_require__(94);var nodeIsTypedArray=nodeUtil&&nodeUtil.isTypedArray;var isTypedArray=nodeIsTypedArray?baseUnary(nodeIsTypedArray):baseIsTypedArray;module.exports=isTypedArray},function(module,exports,__webpack_require__){var isObject=__webpack_require__(47);function isStrictComparable(value){return value===value&&!isObject(value)}module.exports=isStrictComparable},function(module,exports){function matchesStrictComparable(key,srcValue){return function(object){if(object==null){return false}return object[key]===srcValue&&(srcValue!==undefined||key in Object(object))}}module.exports=matchesStrictComparable},function(module,exports,__webpack_require__){var castPath=__webpack_require__(86),toKey=__webpack_require__(42);function baseGet(object,path){path=castPath(path,object);var index=0,length=path.length;while(object!=null&&index<length){object=object[toKey(path[index++])]}return index&&index==length?object:undefined}module.exports=baseGet},function(module,exports,__webpack_require__){var isArray=__webpack_require__(17),isKey=__webpack_require__(56),stringToPath=__webpack_require__(278),toString=__webpack_require__(92);function castPath(value,object){if(isArray(value)){return value}return isKey(value,object)?[value]:stringToPath(toString(value))}module.exports=castPath},function(module,exports,__webpack_require__){var baseForOwn=__webpack_require__(287),createBaseEach=__webpack_require__(29
10);var baseEach=createBaseEach(baseForOwn);module.exports=baseEach},function(module,exports,__webpack_require__){var v1=__webpack_require__(100);var v4=__webpack_require__(101);var uuid=v4;uuid.v1=v1;uuid.v4=v4;module.exports=uuid},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;
2/*!
3  Copyright (c) 2018 Jed Watson.
4  Licensed under the MIT License (MIT), see
5  http://jedwatson.github.io/classnames
6*/(function(){"use strict";var hasOwn={}.hasOwnProperty;function classNames(){var classes=[];for(var i=0;i<arguments.length;i++){var arg=arguments[i];if(!arg)continue;var argType=typeof arg;if(argType==="string"||argType==="number"){classes.push(arg)}else if(Array.isArray(arg)){if(arg.length){var inner=classNames.apply(null,arg);if(inner){classes.push(inner)}}}else if(argType==="object"){if(arg.toString===Object.prototype.toString){for(var key in arg){if(hasOwn.call(arg,key)&&arg[key]){classes.push(key)}}}else{classes.push(arg.toString())}}}return classes.join(" ")}if(true&&module.exports){classNames.default=classNames;module.exports=classNames}else if(true){!(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return classNames}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==undefined&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}else{}})()},function(module,exports,__webpack_require__){var arrayMap=__webpack_require__(49),baseIteratee=__webpack_require__(50),baseMap=__webpack_require__(286),isArray=__webpack_require__(17);function map(collection,iteratee){var func=isArray(collection)?arrayMap:baseMap;return func(collection,baseIteratee(iteratee,3))}module.exports=map},function(module,exports,__webpack_require__){var arrayFilter=__webpack_require__(78),baseFilter=__webpack_require__(291),baseIteratee=__webpack_require__(50),isArray=__webpack_require__(17);function filter(collection,predicate){var func=isArray(collection)?arrayFilter:baseFilter;return func(collection,baseIteratee(predicate,3))}module.exports=filter},function(module,exports,__webpack_require__){var baseToString=__webpack_require__(95);function toString(value){return value==null?"":baseToString(value)}module.exports=toString},function(module,exports){var g;g=function(){return this}();try{g=g||new Function("return this")()}catch(e){if(typeof window==="object")g=window}module.exports=g},function(module,exports,__webpack_require__){(function(module){var freeGlobal=__webpack_require__(71);var freeExports=true&&exports&&!exports.nodeType&&exports;var freeModule=freeExports&&typeof module=="object"&&module&&!module.nodeType&&module;var moduleExports=freeModule&&freeModule.exports===freeExports;var freeProcess=moduleExports&&freeGlobal.process;var nodeUtil=function(){try{var types=freeModule&&freeModule.require&&freeModule.require("util").types;if(types){return types}return freeProcess&&freeProcess.binding&&freeProcess.binding("util")}catch(e){}}();module.exports=nodeUtil}).call(this,__webpack_require__(80)(module))},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(34),arrayMap=__webpack_require__(49),isArray=__webpack_require__(17),isSymbol
6=__webpack_require__(48);var INFINITY=1/0;var symbolProto=Symbol?Symbol.prototype:undefined,symbolToString=symbolProto?symbolProto.toString:undefined;function baseToString(value){if(typeof value=="string"){return value}if(isArray(value)){return arrayMap(value,baseToString)+""}if(isSymbol(value)){return symbolToString?symbolToString.call(value):""}var result=value+"";return result=="0"&&1/value==-INFINITY?"-0":result}module.exports=baseToString},function(module,exports){function baseProperty(key){return function(object){return object==null?undefined:object[key]}}module.exports=baseProperty},,function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_val_loader_dist_cjs_js_key_dataSourceManagement_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(99);var _node_modules_val_loader_dist_cjs_js_key_dataSourceManagement_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_val_loader_dist_cjs_js_key_dataSourceManagement_osd_ui_shared_deps_public_path_module_creator_js__WEBPACK_IMPORTED_MODULE_0__);__osdBundles__.define("plugin/dataSourceManagement/public",__webpack_require__,311);__osdBundles__.define("plugin/dataSourceManagement/public/components/utils",__webpack_require__,4)},function(module,exports,__webpack_require__){__webpack_require__.p=window.__osdPublicPath__["dataSourceManagement"]},function(module,exports,__webpack_require__){var rng=__webpack_require__(61);var bytesToUuid=__webpack_require__(62);var _nodeId;var _clockseq;var _lastMSecs=0;var _lastNSecs=0;function v1(options,buf,offset){var i=buf&&offset||0;var b=buf||[];options=options||{};var node=options.node||_nodeId;var clockseq=options.clockseq!==undefined?options.clockseq:_clockseq;if(node==null||clockseq==null){var seedBytes=rng();if(node==null){node=_nodeId=[seedBytes[0]|1,seedBytes[1],seedBytes[2],seedBytes[3],seedBytes[4],seedBytes[5]]}if(clockseq==null){clockseq=_clockseq=(seedBytes[6]<<8|seedBytes[7])&16383}}var msecs=options.msecs!==undefined?options.msecs:(new Date).getTime();var nsecs=options.nsecs!==undefined?options.nsecs:_lastNSecs+1;var dt=msecs-_lastMSecs+(nsecs-_lastNSecs)/1e4;if(dt<0&&options.clockseq===undefined){clockseq=clockseq+1&16383}if((dt<0||msecs>_lastMSecs)&&options.nsecs===undefined){nsecs=0}if(nsecs>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}_lastMSecs=msecs;_lastNSecs=nsecs;_clockseq=clockseq;msecs+=122192928e5;var tl=((msecs&268435455)*1e4+nsecs)%4294967296;b[i++]=tl>>>24&255;b[i++]=tl>>>16&255;b[i++]=tl>>>8&255;b[i++]=tl&255;var tmh=msecs/4294967296*1e4&268435455;b[i++]=tmh>>>8&255;b[i++]=tmh&255;b[i++]=tmh>>>24&15|16;b[i++]=tmh>>>16&255;b[i++]=clockseq>>>8|128;b[i++]=clockseq&255;for(var n=0;n<6;++n){b[i+n]=node[n]}return buf?buf:bytesToUuid(b)}module.exports=v1},function(module,exports,__webpack_require__){var rng=__webpack_require__(61);var bytesToUuid=__webpack_require__(62);function v4(options,buf,offset){var i=buf&&offset||0;if(typeof options=="string"){buf=options==="binary"?new Array(16):null;options=null}options=options||{};var rnds=options.random||(options.rng||rng)();rnds[6]=rnds[6]&15|64;rnds[8]=rnds[8]&63|128;if(buf){for(var ii=0;ii<16;++ii){buf[i+ii]=rnds[ii]}}return buf||bytesToUuid(rnds)}module.exports=v4},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(103);case"v7light":return __webpack_require__(105);case"v8dark":return __webpack_require__(107);case"v8light":return __webpack_require__(109);case"v9dark":return __webpack_require__(111);case"v9light":return __webpack_require__(113)}},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(104);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectorOuiFlexGroup .dataSourceSelectorOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(106);
6content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectorOuiFlexGroup .dataSourceSelectorOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(108);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectorOuiFlexGroup .dataSourceSelectorOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(110);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectorOuiFlexGroup .dataSourceSelectorOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(112);
6content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectorOuiFlexGroup .dataSourceSelectorOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(114);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectorOuiFlexGroup .dataSourceSelectorOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var src$core$$=__webpack_require__(117),src$en$$=__webpack_require__(122);src$core$$["default"].__addLocaleData(src$en$$["default"]);src$core$$["default"].defaultLocale="en";exports["default"]=src$core$$["default"]},function(module,exports,__webpack_require__){"use strict";var src$utils$$=__webpack_require__(64),src$es5$$=__webpack_require__(118),src$compiler$$=__webpack_require__(119),intl$messageformat$parser$$=__webpack_require__(120);exports["default"]=MessageFormat;function MessageFormat(message,locales,formats){var ast=typeof message==="string"?MessageFormat.__parse(message):message;if(!(ast&&ast.type==="messageFormatPattern")){throw new TypeError("A message must be provided as a String or AST.")}formats=this._mergeFormats(MessageFormat.formats,formats);src$es5$$.defineProperty(this,"_locale",{value:this._resolveLocale(locales)});var pluralFn=this._findPluralRuleFunction(this._locale);var pattern=this._compilePattern(ast,locales,formats,pluralFn);var messageFormat=this;this.format=function(values){try{return messageFormat._format(pattern,values)}catch(e){if(e.variableId){throw new Error("The intl string context variable '"+e.variableId+"'"+" was not provided to the string '"+message+"'")}else{throw e}}}}src$es5$$.defineProperty(MessageFormat,"formats",{enumerable:true,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}});src$es5$$.defineProperty(MessageFormat,"__localeData__",{value:src$es5$$.objCreate(null)});src$es5$$.defineProperty(MessageFormat,"__addLocaleData",{value:function(data){if(!(data&&data.locale)){throw new Error("Locale data provided to IntlMessageFormat is missing a "+"`locale` property")}MessageFormat.__localeData__[data.locale.toLowerCase()]=data}});src$es5$$.defineProperty(MessageFormat,"__parse",{value:intl$messageformat$parser$$["default"].parse});src$es5$$.defineProperty(MessageFormat,"defaultLocale",{enumerable:true,writable:true,value:undefined});MessageFormat.prototype.resolvedOptions=function(){return{locale:this._locale}};MessageFormat.prototype._compilePattern=function(ast,locales,formats,pluralFn){var compiler=new src$compiler$$["default"](locales,formats,pluralFn);return compiler.compile(ast)};MessageFormat.prototype._findPluralRuleFunction=function(locale){var localeData=MessageFormat.__localeData__;var data=localeData[locale.toLowerCase()];while(data){if(data.pluralRuleFunction){return data.pluralRuleFunction}data=data.parentLocale&&localeData[data.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a "+"`pluralRuleFunction` for :"+locale)};MessageFormat.prototype._format=function(pattern,values){var result="",i,len,part,id,value,err;for(i=0,len=pattern.length;i<len;i+=1){part=pattern[i];if(typeof part==="string"){result+=part;continue}id=part.id;if(!(values&&src$utils$$.hop.call(values,id))){err=new Error("A value must be provided for: "+id);err.variableId=id;throw err}value=values[id];if(part.options){result+=this._format(part.getOption(value),values)}else{result+=part.format(value)}}return result};MessageFormat.prototype._mergeFormats=function(defaults,formats){var mergedFormats={},type,mergedType;for(type in defaults){if(!src$utils$$.hop.call(defaults,type)){continue}mergedFormats[type]=mergedType=src$es5$$.objCreate(defaults[type]);if(formats&&src$utils$$.hop.call(formats,type)){src$utils$$.extend(mergedType,formats[type])}}return mergedFormats};
6MessageFormat.prototype._resolveLocale=function(locales){if(typeof locales==="string"){locales=[locales]}locales=(locales||[]).concat(MessageFormat.defaultLocale);var localeData=MessageFormat.__localeData__;var i,len,localeParts,data;for(i=0,len=locales.length;i<len;i+=1){localeParts=locales[i].toLowerCase().split("-");while(localeParts.length){data=localeData[localeParts.join("-")];if(data){return data.locale}localeParts.pop()}}var defaultLocale=locales.pop();throw new Error("No locale data has been added to IntlMessageFormat for: "+locales.join(", ")+", or the default locale: "+defaultLocale)}},function(module,exports,__webpack_require__){"use strict";var src$utils$$=__webpack_require__(64);var realDefineProp=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return false}}();var es3=!realDefineProp&&!Object.prototype.__defineGetter__;var defineProperty=realDefineProp?Object.defineProperty:function(obj,name,desc){if("get"in desc&&obj.__defineGetter__){obj.__defineGetter__(name,desc.get)}else if(!src$utils$$.hop.call(obj,name)||"value"in desc){obj[name]=desc.value}};var objCreate=Object.create||function(proto,props){var obj,k;function F(){}F.prototype=proto;obj=new F;for(k in props){if(src$utils$$.hop.call(props,k)){defineProperty(obj,k,props[k])}}return obj};exports.defineProperty=defineProperty,exports.objCreate=objCreate},function(module,exports,__webpack_require__){"use strict";exports["default"]=Compiler;function Compiler(locales,formats,pluralFn){this.locales=locales;this.formats=formats;this.pluralFn=pluralFn}Compiler.prototype.compile=function(ast){this.pluralStack=[];this.currentPlural=null;this.pluralNumberFormat=null;return this.compileMessage(ast)};Compiler.prototype.compileMessage=function(ast){if(!(ast&&ast.type==="messageFormatPattern")){throw new Error('Message AST is not of type: "messageFormatPattern"')}var elements=ast.elements,pattern=[];var i,len,element;for(i=0,len=elements.length;i<len;i+=1){element=elements[i];switch(element.type){case"messageTextElement":pattern.push(this.compileMessageText(element));break;case"argumentElement":pattern.push(this.compileArgument(element));break;default:throw new Error("Message element does not have a valid type")}}return pattern};Compiler.prototype.compileMessageText=function(element){if(this.currentPlural&&/(^|[^\\])#/g.test(element.value)){if(!this.pluralNumberFormat){this.pluralNumberFormat=new Intl.NumberFormat(this.locales)}return new PluralOffsetString(this.currentPlural.id,this.currentPlural.format.offset,this.pluralNumberFormat,element.value)}return element.value.replace(/\\#/g,"#")};Compiler.prototype.compileArgument=function(element){var format=element.format;if(!format){return new StringFormat(element.id)}var formats=this.formats,locales=this.locales,pluralFn=this.pluralFn,options;switch(format.type){case"numberFormat":options=formats.number[format.style];return{id:element.id,format:new Intl.NumberFormat(locales,options).format};case"dateFormat":options=formats.date[format.style];return{id:element.id,format:new Intl.DateTimeFormat(locales,options).format};case"timeFormat":options=formats.time[format.style];return{id:element.id,format:new Intl.DateTimeFormat(locales,options).format};case"pluralFormat":options=this.compileOptions(element);return new PluralFormat(element.id,format.ordinal,format.offset,options,pluralFn);case"selectFormat":options=this.compileOptions(element);return new SelectFormat(element.id,options);default:throw new Error("Message element does not have a valid format type")}};Compiler.prototype.compileOptions=function(element){var format=element.format,options=format.options,optionsHash={};this.pluralStack.push(this.currentPlural);this.currentPlural=format.type==="pluralFormat"?element:null;var i,len,option;for(i=0,len=options.length;i<len;i+=1){option=options[i];optionsHash[option.selector]=this.compileMessage(option.value)}this.currentPlural=this.pluralStack.pop();return optionsHash};function StringFormat(id){this.id=id}StringFormat.prototype.format=function(value){if(!value&&typeof value!=="number"){return""}return typeof value==="string"?value:String(value)};function PluralFormat(id,useOrdinal,offset,options,pluralFn){this.id=id;this.useOrdinal=useOrdinal;this.offset=offset;this.options=options;this.pluralFn=pluralFn}PluralFormat.prototype.getOption=function(value){var options=this.options;var option=options["="+value]||options[this.pluralFn(value-this.offset,this.useOrdinal)];return option||options.other};function PluralOffsetString(id,offset,numberFormat,string){this.id=id;this.offset=offset;this.numberFormat=numberFormat;this.string=string}PluralOffsetString.prototype.format=function(value){var number=this.numberFormat.format(value-this.offset);return this.string.replace(/(^|[^\\])#/g,"$1"+number).replace(/\\#/g,"#")};function SelectFormat(id,options){this.id=id;this.options=options}SelectFormat.prototype.getOption=function(value){var options=this.options;return options[value]||options.other}},function(module,exports,__webpack_require__){"use strict";exports=module.exports=__webpack_require__(121)["default"];exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";exports["default"]=function(){"use strict";function peg$subclass(child,parent){function ctor(){this.constructor=child}ctor.prototype=parent.prototype;child.prototype=new ctor}function peg$SyntaxError(message,expected,found,location){this.message=message;this.expected=expected;
6this.found=found;this.location=location;this.name="SyntaxError";if(typeof Error.captureStackTrace==="function"){Error.captureStackTrace(this,peg$SyntaxError)}}peg$subclass(peg$SyntaxError,Error);function peg$parse(input){var options=arguments.length>1?arguments[1]:{},parser=this,peg$FAILED={},peg$startRuleFunctions={start:peg$parsestart},peg$startRuleFunction=peg$parsestart,peg$c0=function(elements){return{type:"messageFormatPattern",elements:elements,location:location()}},peg$c1=function(text){var string="",i,j,outerLen,inner,innerLen;for(i=0,outerLen=text.length;i<outerLen;i+=1){inner=text[i];for(j=0,innerLen=inner.length;j<innerLen;j+=1){string+=inner[j]}}return string},peg$c2=function(messageText){return{type:"messageTextElement",value:messageText,location:location()}},peg$c3=/^[^ \t\n\r,.+={}#]/,peg$c4={type:"class",value:"[^ \\t\\n\\r,.+={}#]",description:"[^ \\t\\n\\r,.+={}#]"},peg$c5="{",peg$c6={type:"literal",value:"{",description:'"{"'},peg$c7=",",peg$c8={type:"literal",value:",",description:'","'},peg$c9="}",peg$c10={type:"literal",value:"}",description:'"}"'},peg$c11=function(id,format){return{type:"argumentElement",id:id,format:format&&format[2],location:location()}},peg$c12="number",peg$c13={type:"literal",value:"number",description:'"number"'},peg$c14="date",peg$c15={type:"literal",value:"date",description:'"date"'},peg$c16="time",peg$c17={type:"literal",value:"time",description:'"time"'},peg$c18=function(type,style){return{type:type+"Format",style:style&&style[2],location:location()}},peg$c19="plural",peg$c20={type:"literal",value:"plural",description:'"plural"'},peg$c21=function(pluralStyle){return{type:pluralStyle.type,ordinal:false,offset:pluralStyle.offset||0,options:pluralStyle.options,location:location()}},peg$c22="selectordinal",peg$c23={type:"literal",value:"selectordinal",description:'"selectordinal"'},peg$c24=function(pluralStyle){return{type:pluralStyle.type,ordinal:true,offset:pluralStyle.offset||0,options:pluralStyle.options,location:location()}},peg$c25="select",peg$c26={type:"literal",value:"select",description:'"select"'},peg$c27=function(options){return{type:"selectFormat",options:options,location:location()}},peg$c28="=",peg$c29={type:"literal",value:"=",description:'"="'},peg$c30=function(selector,pattern){return{type:"optionalFormatPattern",selector:selector,value:pattern,location:location()}},peg$c31="offset:",peg$c32={type:"literal",value:"offset:",description:'"offset:"'},peg$c33=function(number){return number},peg$c34=function(offset,options){return{type:"pluralFormat",offset:offset,options:options,location:location()}},peg$c35={type:"other",description:"whitespace"},peg$c36=/^[ \t\n\r]/,peg$c37={type:"class",value:"[ \\t\\n\\r]",description:"[ \\t\\n\\r]"},peg$c38={type:"other",description:"optionalWhitespace"},peg$c39=/^[0-9]/,peg$c40={type:"class",value:"[0-9]",description:"[0-9]"},peg$c41=/^[0-9a-f]/i,peg$c42={type:"class",value:"[0-9a-f]i",description:"[0-9a-f]i"},peg$c43="0",peg$c44={type:"literal",value:"0",description:'"0"'},peg$c45=/^[1-9]/,peg$c46={type:"class",value:"[1-9]",description:"[1-9]"},peg$c47=function(digits){return parseInt(digits,10)},peg$c48=/^[^{}\\\0-\x1F� \t\n\r]/,peg$c49={type:"class",value:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]",description:"[^{}\\\\\\0-\\x1F\\x7f \\t\\n\\r]"},peg$c50="\\\\",peg$c51={type:"literal",value:"\\\\",description:'"\\\\\\\\"'},peg$c52=function(){return"\\"},peg$c53="\\#",peg$c54={type:"literal",value:"\\#",description:'"\\\\#"'},peg$c55=function(){return"\\#"},peg$c56="\\{",peg$c57={type:"literal",value:"\\{",description:'"\\\\{"'},peg$c58=function(){return"{"},peg$c59="\\}",peg$c60={type:"literal",value:"\\}",description:'"\\\\}"'},peg$c61=function(){return"}"},peg$c62="\\u",peg$c63={type:"literal",value:"\\u",description:'"\\\\u"'},peg$c64=function(digits){return String.fromCharCode(parseInt(digits,16))},peg$c65=function(chars){return chars.join("")},peg$currPos=0,peg$savedPos=0,peg$posDetailsCache=[{line:1,column:1,seenCR:false}],peg$maxFailPos=0,peg$maxFailExpected=[],peg$silentFails=0,peg$result;if("startRule"in options){if(!(options.startRule in peg$startRuleFunctions)){throw new Error("Can't start parsing from rule \""+options.startRule+'".')}peg$startRuleFunction=peg$startRuleFunctions[options.startRule]}function text(){return input.substring(peg$savedPos,peg$currPos)}function location(){return peg$computeLocation(peg$savedPos,peg$currPos)}function expected(description){throw peg$buildException(null,[{type:"other",description:description}],input.substring(peg$savedPos,peg$currPos),peg$computeLocation(peg$savedPos,peg$currPos))}function error(message){throw peg$buildException(message,null,input.substring(peg$savedPos,peg$currPos),peg$computeLocation(peg$savedPos,peg$currPos))}
6function peg$computePosDetails(pos){var details=peg$posDetailsCache[pos],p,ch;if(details){return details}else{p=pos-1;while(!peg$posDetailsCache[p]){p--}details=peg$posDetailsCache[p];details={line:details.line,column:details.column,seenCR:details.seenCR};while(p<pos){ch=input.charAt(p);if(ch==="\n"){if(!details.seenCR){details.line++}details.column=1;details.seenCR=false}else if(ch==="\r"||ch==="\u2028"||ch==="\u2029"){details.line++;details.column=1;details.seenCR=true}else{details.column++;details.seenCR=false}p++}peg$posDetailsCache[pos]=details;return details}}function peg$computeLocation(startPos,endPos){var startPosDetails=peg$computePosDetails(startPos),endPosDetails=peg$computePosDetails(endPos);return{start:{offset:startPos,line:startPosDetails.line,column:startPosDetails.column},end:{offset:endPos,line:endPosDetails.line,column:endPosDetails.column}}}function peg$fail(expected){if(peg$currPos<peg$maxFailPos){return}if(peg$currPos>peg$maxFailPos){peg$maxFailPos=peg$currPos;peg$maxFailExpected=[]}peg$maxFailExpected.push(expected)}function peg$buildException(message,expected,found,location){function cleanupExpected(expected){var i=1;expected.sort((function(a,b){if(a.description<b.description){return-1}else if(a.description>b.description){return 1}else{return 0}}));while(i<expected.length){if(expected[i-1]===expected[i]){expected.splice(i,1)}else{i++}}}function buildMessage(expected,found){function stringEscape(s){function hex(ch){return ch.charCodeAt(0).toString(16).toUpperCase()}return s.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(ch){return"\\x0"+hex(ch)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(ch){return"\\x"+hex(ch)})).replace(/[\u0100-\u0FFF]/g,(function(ch){return"\\u0"+hex(ch)})).replace(/[\u1000-\uFFFF]/g,(function(ch){return"\\u"+hex(ch)}))}var expectedDescs=new Array(expected.length),expectedDesc,foundDesc,i;for(i=0;i<expected.length;i++){expectedDescs[i]=expected[i].description}expectedDesc=expected.length>1?expectedDescs.slice(0,-1).join(", ")+" or "+expectedDescs[expected.length-1]:expectedDescs[0];foundDesc=found?'"'+stringEscape(found)+'"':"end of input";return"Expected "+expectedDesc+" but "+foundDesc+" found."}if(expected!==null){cleanupExpected(expected)}return new peg$SyntaxError(message!==null?message:buildMessage(expected,found),expected,found,location)}function peg$parsestart(){var s0;s0=peg$parsemessageFormatPattern();return s0}function peg$parsemessageFormatPattern(){var s0,s1,s2;s0=peg$currPos;s1=[];s2=peg$parsemessageFormatElement();while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsemessageFormatElement()}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c0(s1)}s0=s1;return s0}function peg$parsemessageFormatElement(){var s0;s0=peg$parsemessageTextElement();if(s0===peg$FAILED){s0=peg$parseargumentElement()}return s0}function peg$parsemessageText(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;s1=[];s2=peg$currPos;s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parsechars();if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s3=[s3,s4,s5];s2=s3}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$currPos;s3=peg$parse_();if(s3!==peg$FAILED){s4=peg$parsechars();if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s3=[s3,s4,s5];s2=s3}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}}}else{s1=peg$FAILED}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c1(s1)}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;s1=peg$parsews();if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}}return s0}function peg$parsemessageTextElement(){var s0,s1;s0=peg$currPos;s1=peg$parsemessageText();if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c2(s1)}s0=s1;return s0}function peg$parseargument(){var s0,s1,s2;s0=peg$parsenumber();if(s0===peg$FAILED){s0=peg$currPos;s1=[];if(peg$c3.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c4)}}if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);if(peg$c3.test(input.charAt(peg$currPos))){s2=input.charAt(peg$currPos);peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c4)}}}}else{s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}}return s0}function peg$parseargumentElement(){var s0,s1,s2,s3,s4,s5,s6,s7,s8;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===123){s1=peg$c5;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c6)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parseargument();if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=peg$currPos;if(input.charCodeAt(peg$currPos)===44){s6=peg$c7;peg$currPos++}else{s6=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s6!==peg$FAILED){s7=peg$parse_();if(s7!==peg$FAILED){s8=peg$parseelementFormat();if(s8!==peg$FAILED){s6=[s6,s7,s8];s5=s6}else{peg$currPos=s5;s5=peg$FAILED}}else{peg$currPos=s5;s5=peg$FAILED}}else{peg$currPos=s5;s5=peg$FAILED}if(s5===peg$FAILED){s5=null}if(s5!==peg$FAILED){s6=peg$parse_();
vendor: 8,133 bytes, line 6
6if(s6!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s7=peg$c9;peg$currPos++}else{s7=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10)}}if(s7!==peg$FAILED){peg$savedPos=s0;s1=peg$c11(s3,s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseelementFormat(){var s0;s0=peg$parsesimpleFormat();if(s0===peg$FAILED){s0=peg$parsepluralFormat();if(s0===peg$FAILED){s0=peg$parseselectOrdinalFormat();if(s0===peg$FAILED){s0=peg$parseselectFormat()}}}return s0}function peg$parsesimpleFormat(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c12){s1=peg$c12;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c13)}}if(s1===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c14){s1=peg$c14;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c15)}}if(s1===peg$FAILED){if(input.substr(peg$currPos,4)===peg$c16){s1=peg$c16;peg$currPos+=4}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c17)}}}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$currPos;if(input.charCodeAt(peg$currPos)===44){s4=peg$c7;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s6=peg$parsechars();if(s6!==peg$FAILED){s4=[s4,s5,s6];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3===peg$FAILED){s3=null}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c18(s1,s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parsepluralFormat(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c19){s1=peg$c19;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c20)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s3=peg$c7;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=peg$parsepluralStyle();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c21(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseselectOrdinalFormat(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.substr(peg$currPos,13)===peg$c22){s1=peg$c22;peg$currPos+=13}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c23)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s3=peg$c7;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=peg$parsepluralStyle();if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c24(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseselectFormat(){var s0,s1,s2,s3,s4,s5,s6;s0=peg$currPos;if(input.substr(peg$currPos,6)===peg$c25){s1=peg$c25;peg$currPos+=6}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c26)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){if(input.charCodeAt(peg$currPos)===44){s3=peg$c7;peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c8)}}if(s3!==peg$FAILED){s4=peg$parse_();if(s4!==peg$FAILED){s5=[];s6=peg$parseoptionalFormatPattern();if(s6!==peg$FAILED){while(s6!==peg$FAILED){s5.push(s6);s6=peg$parseoptionalFormatPattern()}}else{s5=peg$FAILED}if(s5!==peg$FAILED){peg$savedPos=s0;s1=peg$c27(s5);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseselector(){var s0,s1,s2,s3;s0=peg$currPos;s1=peg$currPos;if(input.charCodeAt(peg$currPos)===61){s2=peg$c28;peg$currPos++}else{s2=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c29)}}if(s2!==peg$FAILED){s3=peg$parsenumber();if(s3!==peg$FAILED){s2=[s2,s3];s1=s2}else{peg$currPos=s1;s1=peg$FAILED}}else{peg$currPos=s1;s1=peg$FAILED}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}if(s0===peg$FAILED){s0=peg$parsechars()}return s0}function peg$parseoptionalFormatPattern(){var s0,s1,s2,s3,s4,s5,s6,s7,s8;s0=peg$currPos;s1=peg$parse_();if(s1!==peg$FAILED){s2=peg$parseselector();if(s2!==peg$FAILED){s3=peg$parse_();if(s3!==peg$FAILED){if(input.charCodeAt(peg$currPos)===123){s4=peg$c5;peg$currPos++}else{s4=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c6)}}if(s4!==peg$FAILED){s5=peg$parse_();if(s5!==peg$FAILED){s6=peg$parsemessageFormatPattern();if(s6!==peg$FAILED){s7=peg$parse_();if(s7!==peg$FAILED){if(input.charCodeAt(peg$currPos)===125){s8=peg$c9;peg$currPos++}else{s8=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c10)}}if(s8!==peg$FAILED){peg$savedPos=s0;s1=peg$c30(s2,s6);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parseoffset(){var s0,s1,s2,s3;s0=peg$currPos;if(input.substr(peg$currPos,7)===peg$c31){s1=peg$c31;peg$currPos+=7}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c32)}}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=peg$parsenumber();if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c33(s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parsepluralStyle(){var s0,s1,s2,s3,s4;s0=peg$currPos;s1=peg$parseoffset();if(s1===peg$FAILED){s1=null}if(s1!==peg$FAILED){s2=peg$parse_();if(s2!==peg$FAILED){s3=[];s4=peg$parseoptionalFormatPattern();if(s4!==peg$FAILED){while(s4!==peg$FAILED){s3.push(s4);s4=peg$parseoptionalFormatPattern()}}else{s3=peg$FAILED}if(s3!==peg$FAILED){peg$savedPos=s0;s1=peg$c34(s1,s3);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}return s0}function peg$parsews(){var s0,s1;peg$silentFails++;s0=[];if(peg$c36.test(input.charAt(peg$currPos))){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c37)}}if(s1!==peg$FAILED){while(s1!==peg$FAILED){s0.push(s1);if(peg$c36.test(input.charAt(peg$currPos))){s1=input.charAt(peg$currPos);peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c37)}}}}else{s0=peg$FAILED}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c35)}}return s0}function peg$parse_(){var s0,s1,s2;peg$silentFails++;s0=peg$currPos;s1=[];s2=peg$parsews();while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsews()}if(s1!==peg$FAILED){s0=input.substring(s0,peg$currPos)}else{s0=s1}peg$silentFails--;if(s0===peg$FAILED){s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c38)}}return s0}function peg$parsedigit(){var s0;if(peg$c39.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c40)}}return s0}function peg$parsehexDigit(){var s0;if(peg$c41.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c42)}}return s0}function peg$parsenumber(){var s0,s1,s2,s3,s4,s5;s0=peg$currPos;if(input.charCodeAt(peg$currPos)===48){s1=peg$c43;peg$currPos++}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c44)}}if(s1===peg$FAILED){s1=peg$currPos;s2=peg$currPos;if(peg$c45.test(input.charAt(peg$currPos))){s3=input.charAt(peg$currPos);peg$currPos++}else{s3=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c46)}}if(s3!==peg$FAILED){s4=[];s5=peg$parsedigit();while(s5!==peg$FAILED){s4.push(s5);s5=peg$parsedigit()}
6if(s4!==peg$FAILED){s3=[s3,s4];s2=s3}else{peg$currPos=s2;s2=peg$FAILED}}else{peg$currPos=s2;s2=peg$FAILED}if(s2!==peg$FAILED){s1=input.substring(s1,peg$currPos)}else{s1=s2}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c47(s1)}s0=s1;return s0}function peg$parsechar(){var s0,s1,s2,s3,s4,s5,s6,s7;if(peg$c48.test(input.charAt(peg$currPos))){s0=input.charAt(peg$currPos);peg$currPos++}else{s0=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c49)}}if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c50){s1=peg$c50;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c51)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c52()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c53){s1=peg$c53;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c54)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c55()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c56){s1=peg$c56;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c57)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c58()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c59){s1=peg$c59;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c60)}}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c61()}s0=s1;if(s0===peg$FAILED){s0=peg$currPos;if(input.substr(peg$currPos,2)===peg$c62){s1=peg$c62;peg$currPos+=2}else{s1=peg$FAILED;if(peg$silentFails===0){peg$fail(peg$c63)}}if(s1!==peg$FAILED){s2=peg$currPos;s3=peg$currPos;s4=peg$parsehexDigit();if(s4!==peg$FAILED){s5=peg$parsehexDigit();if(s5!==peg$FAILED){s6=peg$parsehexDigit();if(s6!==peg$FAILED){s7=peg$parsehexDigit();if(s7!==peg$FAILED){s4=[s4,s5,s6,s7];s3=s4}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}}else{peg$currPos=s3;s3=peg$FAILED}if(s3!==peg$FAILED){s2=input.substring(s2,peg$currPos)}else{s2=s3}if(s2!==peg$FAILED){peg$savedPos=s0;s1=peg$c64(s2);s0=s1}else{peg$currPos=s0;s0=peg$FAILED}}else{peg$currPos=s0;s0=peg$FAILED}}}}}}return s0}function peg$parsechars(){var s0,s1,s2;s0=peg$currPos;s1=[];s2=peg$parsechar();if(s2!==peg$FAILED){while(s2!==peg$FAILED){s1.push(s2);s2=peg$parsechar()}}else{s1=peg$FAILED}if(s1!==peg$FAILED){peg$savedPos=s0;s1=peg$c65(s1)}s0=s1;return s0}peg$result=peg$startRuleFunction();if(peg$result!==peg$FAILED&&peg$currPos===input.length){return peg$result}else{if(peg$result!==peg$FAILED&&peg$currPos<input.length){peg$fail({type:"end",description:"end of input"})}throw peg$buildException(null,peg$maxFailExpected,peg$maxFailPos<input.length?input.charAt(peg$maxFailPos):null,peg$maxFailPos<input.length?peg$computeLocation(peg$maxFailPos,peg$maxFailPos+1):peg$computeLocation(peg$maxFailPos,peg$maxFailPos))}}return{SyntaxError:peg$SyntaxError,parse:peg$parse}}()},function(module,exports,__webpack_require__){"use strict";exports["default"]={locale:"en",pluralRuleFunction:function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"}}},function(module,exports){},function(module,exports,__webpack_require__){"use strict";var IntlRelativeFormat=__webpack_require__(125)["default"];__webpack_require__(130);exports=module.exports=IntlRelativeFormat;exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var core_1=__webpack_require__(126);var en_1=__webpack_require__(129);core_1.default.__addLocaleData(en_1.default);core_1.default.defaultLocale="en";exports.default=core_1.default},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var intl_messageformat_1=__webpack_require__(63);var diff_1=__webpack_require__(127);var es5_1=__webpack_require__(128);exports.default=RelativeFormat;var FIELDS=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"];var STYLES=["best fit","numeric"];function RelativeFormat(locales,options){options=options||{};if(es5_1.isArray(locales)){locales=locales.concat()}es5_1.defineProperty(this,"_locale",{value:this._resolveLocale(locales)});es5_1.defineProperty(this,"_options",{value:{style:this._resolveStyle(options.style),units:this._isValidUnits(options.units)&&options.units}});es5_1.defineProperty(this,"_locales",{value:locales});es5_1.defineProperty(this,"_fields",{value:this._findFields(this._locale)});es5_1.defineProperty(this,"_messages",{value:es5_1.objCreate(null)});var relativeFormat=this;this.format=function format(date,options){return relativeFormat._format(date,options)}}es5_1.defineProperty(RelativeFormat,"__localeData__",{value:es5_1.objCreate(null)});es5_1.defineProperty(RelativeFormat,"__addLocaleData",{value:function(){for(var i=0;i<arguments.length;i++){var datum=arguments[i];if(!(datum&&datum.locale)){throw new Error("Locale data provided to IntlRelativeFormat is missing a "+"`locale` property value")}RelativeFormat.__localeData__[datum.locale.toLowerCase()]=datum;intl_messageformat_1.default.__addLocaleData(datum)}}});es5_1.defineProperty(RelativeFormat,"defaultLocale",{enumerable:true,writable:true,value:undefined});es5_1.defineProperty(RelativeFormat,"thresholds",{enumerable:true,value:{second:45,"second-short":45,minute:45,"minute-short":45,hour:22,"hour-short":22,day:26,"day-short":26,month:11,"month-short":11}});RelativeFormat.prototype.resolvedOptions=function(){return{locale:this._locale,style:this._options.style,units:this._options.units}};RelativeFormat.prototype._compileMessage=function(units){var locales=this._locales;var resolvedLocale=this._locale;var field=this._fields[units];var relativeTime=field.relativeTime;var future="";var past="";var i;for(i in relativeTime.future){if(relativeTime.future.hasOwnProperty(i)){future+=" "+i+" {"+relativeTime.future[i].replace("{0}","#")+"}"}}for(i in relativeTime.past){if(relativeTime.past.hasOwnProperty(i)){past
6+=" "+i+" {"+relativeTime.past[i].replace("{0}","#")+"}"}}var message="{when, select, future {{0, plural, "+future+"}}"+"past {{0, plural, "+past+"}}}";return new intl_messageformat_1.default(message,locales)};RelativeFormat.prototype._getMessage=function(units){var messages=this._messages;if(!messages[units]){messages[units]=this._compileMessage(units)}return messages[units]};RelativeFormat.prototype._getRelativeUnits=function(diff,units){var field=this._fields[units];if(field.relative){return field.relative[diff]}};RelativeFormat.prototype._findFields=function(locale){var localeData=RelativeFormat.__localeData__;var data=localeData[locale.toLowerCase()];while(data){if(data.fields){return data.fields}data=data.parentLocale&&localeData[data.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlRelativeFormat is missing `fields` for :"+locale)};RelativeFormat.prototype._format=function(date,options){var now=options&&options.now!==undefined?options.now:es5_1.dateNow();if(date===undefined){date=now}if(!isFinite(now)){throw new RangeError("The `now` option provided to IntlRelativeFormat#format() is not "+"in valid range.")}if(!isFinite(date)){throw new RangeError("The date value provided to IntlRelativeFormat#format() is not "+"in valid range.")}var diffReport=diff_1.default(now,date);var units=this._options.units||this._selectUnits(diffReport);var diffInUnits=diffReport[units];if(this._options.style!=="numeric"){var relativeUnits=this._getRelativeUnits(diffInUnits,units);if(relativeUnits){return relativeUnits}}return this._getMessage(units).format({0:Math.abs(diffInUnits),when:diffInUnits<0?"past":"future"})};RelativeFormat.prototype._isValidUnits=function(units){if(!units||es5_1.arrIndexOf.call(FIELDS,units)>=0){return true}if(typeof units==="string"){var suggestion=/s$/.test(units)&&units.substr(0,units.length-1);if(suggestion&&es5_1.arrIndexOf.call(FIELDS,suggestion)>=0){throw new Error('"'+units+'" is not a valid IntlRelativeFormat `units` '+"value, did you mean: "+suggestion)}}throw new Error('"'+units+'" is not a valid IntlRelativeFormat `units` value, it '+'must be one of: "'+FIELDS.join('", "')+'"')};RelativeFormat.prototype._resolveLocale=function(locales){if(typeof locales==="string"){locales=[locales]}locales=(locales||[]).concat(RelativeFormat.defaultLocale);var localeData=RelativeFormat.__localeData__;var i,len,localeParts,data;for(i=0,len=locales.length;i<len;i+=1){localeParts=locales[i].toLowerCase().split("-");while(localeParts.length){data=localeData[localeParts.join("-")];if(data){return data.locale}localeParts.pop()}}var defaultLocale=locales.pop();throw new Error("No locale data has been added to IntlRelativeFormat for: "+locales.join(", ")+", or the default locale: "+defaultLocale)};RelativeFormat.prototype._resolveStyle=function(style){if(!style){return STYLES[0]}if(es5_1.arrIndexOf.call(STYLES,style)>=0){return style}throw new Error('"'+style+'" is not a valid IntlRelativeFormat `style` value, it '+'must be one of: "'+STYLES.join('", "')+'"')};RelativeFormat.prototype._selectUnits=function(diffReport){var i,l,units;var fields=FIELDS.filter((function(field){return field.indexOf("-short")<1}));for(i=0,l=fields.length;i<l;i+=1){units=fields[i];if(Math.abs(diffReport[units])<RelativeFormat.thresholds[units]){break}}return units}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var round=Math.round;function daysToYears(days){return days*400/146097}var MILLISECONDS_IN_MINUTE=6e4;var MILLISECONDS_IN_DAY=864e5;function startOfDay(dirtyDate){var date=new Date(dirtyDate);date.setHours(0,0,0,0);return date}function differenceInCalendarDays(dirtyDateLeft,dirtyDateRight){var startOfDayLeft=startOfDay(dirtyDateLeft);var startOfDayRight=startOfDay(dirtyDateRight);var timestampLeft=startOfDayLeft.getTime()-startOfDayLeft.getTimezoneOffset()*MILLISECONDS_IN_MINUTE;var timestampRight=startOfDayRight.getTime()-startOfDayRight.getTimezoneOffset()*MILLISECONDS_IN_MINUTE;return Math.round((timestampLeft-timestampRight)/MILLISECONDS_IN_DAY)}function default_1(from,to){from=+from;to=+to;var millisecond=round(to-from),second=round(millisecond/1e3),minute=round(second/60),hour=round(minute/60);var day=differenceInCalendarDays(to,from);var week=round(day/7);var rawYears=daysToYears(day),month=round(rawYears*12),year=round(rawYears);return{millisecond:millisecond,second:second,"second-short":second,minute:minute,"minute-short":minute,hour:hour,"hour-short":hour,day:day,"day-short":day,week:week,"week-short":week,month:month,"month-short":month,year:year,"year-short":year}}exports.default=default_1},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var hop=Object.prototype.hasOwnProperty;var toString=Object.prototype.toString;var realDefineProp=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return false}}();var es3=!realDefineProp&&!Object.prototype.__defineGetter__;var defineProperty=realDefineProp?Object.defineProperty:function(obj,name,desc){if("get"in desc&&obj.__defineGetter__){obj.__defineGetter__(name,desc.get)}else if(!hop.call(obj,name)||"value"in desc){obj[name]=desc.value}};exports.defineProperty=defineProperty;var objCreate=Object.create||function(proto,props){var obj,k;function F(){}F.prototype=proto;obj=new F;for(k in props){if(hop.call(props,k)){defineProperty(obj,k,props[k])}}return obj};exports.objCreate=objCreate;var arrIndexOf=Array.prototype.indexOf||function(search,fromIndex){var arr=this;if(!arr.length){return-1}
6for(var i=fromIndex||0,max=arr.length;i<max;i++){if(arr[i]===search){return i}}return-1};exports.arrIndexOf=arrIndexOf;var isArray=Array.isArray||function(obj){return toString.call(obj)==="[object Array]"};exports.isArray=isArray;var dateNow=Date.now||function(){return(new Date).getTime()};exports.dateNow=dateNow},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.default={locale:"en",pluralRuleFunction:function(n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n10==1&&n100!=11?"one":n10==2&&n100!=12?"two":n10==3&&n100!=13?"few":"other";return n==1&&v0?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},week:{displayName:"week",relativePeriod:"the week of {0}",relative:{0:"this week",1:"next week","-1":"last week"},relativeTime:{future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}}},"week-short":{displayName:"wk.",relativePeriod:"the week of {0}",relative:{0:"this wk.",1:"next wk.","-1":"last wk."},relativeTime:{future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}},function(module,exports){},function(module,exports,__webpack_require__){if(false){var throwOnDirectAccess,ReactIs}else{module.exports=__webpack_require__(132)()}},function(module,exports,__webpack_require__){"use strict";var ReactPropTypesSecret=__webpack_require__(133);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction;module.exports=function(){function shim(props,propName,componentName,location,propFullName,secret){if(secret===ReactPropTypesSecret){return}var err=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. "+"Use PropTypes.checkPropTypes() to call them. "+"Read more at http://fb.me/use-check-prop-types");err.name="Invariant Violation";throw err}shim.isRequired=shim;function getShim(){return shim}var ReactPropTypes={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol
vendor: 4,600 bytes, lines 6-14
6:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};ReactPropTypes.PropTypes=ReactPropTypes;return ReactPropTypes}},function(module,exports,__webpack_require__){"use strict";var ReactPropTypesSecret="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";module.exports=ReactPropTypesSecret},function(module,exports,__webpack_require__){"use strict";var reactIs=__webpack_require__(135);var REACT_STATICS={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true};var KNOWN_STATICS={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true};var FORWARD_REF_STATICS={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true};var MEMO_STATICS={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true};var TYPE_STATICS={};TYPE_STATICS[reactIs.ForwardRef]=FORWARD_REF_STATICS;TYPE_STATICS[reactIs.Memo]=MEMO_STATICS;function getStatics(component){if(reactIs.isMemo(component)){return MEMO_STATICS}return TYPE_STATICS[component["$$typeof"]]||REACT_STATICS}var defineProperty=Object.defineProperty;var getOwnPropertyNames=Object.getOwnPropertyNames;var getOwnPropertySymbols=Object.getOwnPropertySymbols;var getOwnPropertyDescriptor=Object.getOwnPropertyDescriptor;var getPrototypeOf=Object.getPrototypeOf;var objectPrototype=Object.prototype;function hoistNonReactStatics(targetComponent,sourceComponent,blacklist){if(typeof sourceComponent!=="string"){if(objectPrototype){var inheritedComponent=getPrototypeOf(sourceComponent);if(inheritedComponent&&inheritedComponent!==objectPrototype){hoistNonReactStatics(targetComponent,inheritedComponent,blacklist)}}var keys=getOwnPropertyNames(sourceComponent);if(getOwnPropertySymbols){keys=keys.concat(getOwnPropertySymbols(sourceComponent))}var targetStatics=getStatics(targetComponent);var sourceStatics=getStatics(sourceComponent);for(var i=0;i<keys.length;++i){var key=keys[i];if(!KNOWN_STATICS[key]&&!(blacklist&&blacklist[key])&&!(sourceStatics&&sourceStatics[key])&&!(targetStatics&&targetStatics[key])){var descriptor=getOwnPropertyDescriptor(sourceComponent,key);try{defineProperty(targetComponent,key,descriptor)}catch(e){}}}}return targetComponent}module.exports=hoistNonReactStatics},function(module,exports,__webpack_require__){"use strict";if(true){module.exports=__webpack_require__(136)}else{}},function(module,exports,__webpack_require__){"use strict";
7/** @license React v16.13.1
8 * react-is.production.min.js
9 *
10 * Copyright (c) Facebook, Inc. and its affiliates.
11 *
12 * This source code is licensed under the MIT license found in the
13 * LICENSE file in the root directory of this source tree.
14 */var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};
14exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};exports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z},function(module,exports,__webpack_require__){"use strict";var invariant=function(condition,format,a,b,c,d,e,f){if(false){}if(!condition){var error;if(format===undefined){error=new Error("Minified exception occurred; use the non-minified dev environment "+"for the full error message and additional helpful warnings.")}else{var args=[a,b,c,d,e,f];var argIndex=0;error=new Error(format.replace(/%s/g,(function(){return args[argIndex++]})));error.name="Invariant Violation"}error.framesToPop=1;throw error}};module.exports=invariant},function(module,exports,__webpack_require__){"use strict";exports=module.exports=__webpack_require__(139)["default"];exports["default"]=exports},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var RelativeTimeFormat;function getCacheId(inputs){return JSON.stringify(inputs.map((function(input){return input&&typeof input==="object"?orderedProps(input):input})))}function orderedProps(obj){return Object.keys(obj).sort().map((function(k){var _a;return _a={},_a[k]=obj[k],_a}))}var memoizeFormatConstructor=function(FormatConstructor,cache){if(cache===void 0){cache={}}return function(){var _a;var args=[];for(var _i=0;_i<arguments.length;_i++){args[_i]=arguments[_i]}var cacheId=getCacheId(args);var format=cacheId&&cache[cacheId];if(!format){format=new((_a=FormatConstructor).bind.apply(_a,[void 0].concat(args)));if(cacheId){cache[cacheId]=format}}return format}};exports.default=memoizeFormatConstructor},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(141);case"v7light":return __webpack_require__(143);case"v8dark":return __webpack_require__(145);case"v8light":return __webpack_require__(147);case"v9dark":return __webpack_require__(149);case"v9light":return __webpack_require__(151)}},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(142);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceDropDownHeaderInvisibleFocusable{opacity:0}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(144);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceDropDown
14HeaderInvisibleFocusable{opacity:0}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(146);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceDropDownHeaderInvisibleFocusable{opacity:0}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(148);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceDropDownHeaderInvisibleFocusable{opacity:0}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(150);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceDropDownHeaderInvisibleFocusable{opacity:0}
14\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(152);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceDropDownHeaderInvisibleFocusable{opacity:0}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(154);case"v7light":return __webpack_require__(156);case"v8dark":return __webpack_require__(158);case"v8light":return __webpack_require__(160);case"v9dark":return __webpack_require__(162);case"v9light":return __webpack_require__(164)}},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(155);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceAggregatedViewOuiPanel{width:300px;border-left-width:0;border-right-width:0;border-top-width:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem{cursor:default}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content{cursor:default;padding-left:0;margin-right:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__text{max-height:100%}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__icon,.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__prepend{margin-right:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiSwitch{display:flex;align-items:center;justify-content:center}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexItem{
14color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceListAllActiveOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:1em}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(157);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceAggregatedViewOuiPanel{width:300px;border-left-width:0;border-right-width:0;border-top-width:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem{cursor:default}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content{cursor:default;padding-left:0;margin-right:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__text{max-height:100%}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__icon,.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__prepend{margin-right:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiSwitch{display:flex;align-items:center;justify-content:center}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceListAllActiveOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:1em}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(159);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceAggregatedViewOuiPanel{width:300px;border-left-width:0;border-right-width:0;border-top-width:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem{cursor:default}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content{cursor:default;padding-left:0;margin-right:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__text{max-height:100%}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__icon,.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__prepend{margin-right:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .dataSourceAggregatedViewOuiFlexItem{
14color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiSwitch{display:flex;align-items:center;justify-content:center}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceListAllActiveOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:1em}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(161);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceAggregatedViewOuiPanel{width:300px;border-left-width:0;border-right-width:0;border-top-width:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem{cursor:default}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content{cursor:default;padding-left:0;margin-right:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__text{max-height:100%}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__icon,.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__prepend{margin-right:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiSwitch{display:flex;align-items:center;justify-content:center}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceListAllActiveOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:1em}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(163);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceAggregatedViewOuiPanel{width:300px;border-left-width:0;border-right-width:0;border-top-width:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem{cursor:default}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content{cursor:default;padding-left:0;margin-right:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__text{max-height:100%}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__icon,.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__prepend{margin-right:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .dataSourceAggregatedViewOuiFlexItem{
14color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiSwitch{display:flex;align-items:center;justify-content:center}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceListAllActiveOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:1em}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(165);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceAggregatedViewOuiPanel{width:300px;border-left-width:0;border-right-width:0;border-top-width:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem{cursor:default}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content{cursor:default;padding-left:0;margin-right:0}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__text{max-height:100%}.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__icon,.dataSourceAggregatedViewOuiPanel .euiSelectableListItem__content .euiSelectableListItem__prepend{margin-right:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexGroup .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiSwitch{display:flex;align-items:center;justify-content:center}.dataSourceAggregatedViewOuiPanel .dataSourceAggregatedViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:0}.dataSourceAggregatedViewOuiPanel .dataSourceListAllActiveOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;padding-left:1em}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(167);case"v7light":return __webpack_require__(169);case"v8dark":return __webpack_require__(171);case"v8light":return __webpack_require__(173);case"v9dark":return __webpack_require__(175);case"v9light":return __webpack_require__(177)}},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(168);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceMenuPopoverButton{position:relative;background-color:#1d1e24;border:1px solid #535966;border-radius:4px}.dataSourceMenuPopoverButton::before{content:attr(data-label);position:absolute;top:-0.2rem;left:8px;font-size:.4rem;line-height:.4rem;padding:0 4px;--dsm-popover-label-start: round(down, calc(0.2rem - 1px), 1px);background:linear-gradient(to bottom, transparent var(--dsm-popover-label-start), #1D1E24 var(--dsm-popover-label-start));color:#dfe5ef;z-index:0;text-transform:uppercase}.dataSourceMenuPopoverButton[class*=isDisabled]{border-style:dashed}.dataSourceMenuPopoverButton[class*=isDisabled]>.euiButton-isDisabled{color:#dfe5ef;font-style:italic}.euiButton.dataSourceMenuPopoverButtonLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;max-width:32ch;font-size:12px !important;border:0;margin:-1px;position:relative;z-index:1;min-width:auto}.dataSourceMenuPopoverButton:not([class*=isDisabled])>.euiButton.dataSourceMenuPopoverButtonLabel{padding-right:24px;max-width:calc(32ch + 12px + 12px)}.euiButton.dataSourceMenuPopoverButtonLabel+.euiIcon{pointer-events:none;margin-left:-24px;margin-right:12px}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(170);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceMenuPopoverButton{position:relative;background-color:#fff;border:1px solid #98a2b3;border-radius:4px}.dataSourceMenuPopoverButton::before{content:attr(data-label);position:absolute;top:-0.2rem;left:8px;font-size:.4rem;line-height:.4rem;padding:0 4px;--dsm-popover-label-start: round(down, calc(0.2rem - 1px), 1px);background:linear-gradient(to bottom, transparent var(--dsm-popover-label-start), #FFF var(--dsm-popover-label-start));color:#343741;z-index:0;text-transform:uppercase}.dataSourceMenuPopoverButton[class*=isDisabled]{border-style:dashed}.dataSourceMenuPopoverButton[class*=isDisabled]>.euiButton-isDisabled{color:#343741;font-style:italic}.euiButton.dataSourceMenuPopoverButtonLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;max-width:32ch;font-size:12px !important;border:0;margin:-1px;position:relative;z-index:1;min-width:auto}.dataSourceMenuPopoverButton:not([class*=isDisabled])>.euiButton.dataSourceMenuPopoverButtonLabel{padding-right:24px;max-width:calc(32ch + 12px + 12px)}.euiButton.dataSourceMenuPopoverButtonLabel+.euiIcon{pointer-events:none;margin-left:-24px;margin-right:12px}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(172);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceMenuPopoverButton{position:relative;background-color:#172430;border:1px solid #5b6875;border-radius:4px}.dataSourceMenuPopoverButton::before{content:attr(data-label);position:absolute;top:-0.2rem;left:8px;font-size:.4rem;line-height:.4rem;padding:0 4px;--dsm-popover-label-start: round(down, calc(0.2rem - 1px), 1px);background:linear-gradient(to bottom, transparent var(--dsm-popover-label-start), #172430 var(--dsm-popover-label-start));color:#dfe5ef;z-index:0;text-transform:uppercase}.dataSourceMenuPopoverButton[class*=isDisabled]{border-style:dashed}.dataSourceMenuPopoverButton[class*=isDisabled]>.euiButton-isDisabled{color:#dfe5ef;font-style:italic}.euiButton.dataSourceMenuPopoverButtonLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;max-width:32ch;font-size:13.5px !important;border:0;margin:-1px;position:relative;z-index:1;min-width:auto}.dataSourceMenuPopoverButton:not([class*=isDisabled])>.euiButton.dataSourceMenuPopoverButtonLabel{padding-right:24px;max-width:calc(32ch + 12px + 12px)}.euiButton.dataSourceMenuPopoverButtonLabel+.euiIcon{pointer-events:none;margin-left:-24px;margin-right:12px}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(174);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceMenuPopoverButton{position:relative;background-color:#f0f2f4;border:1px solid #adb4ba;border-radius:4px}.dataSourceMenuPopoverButton::before{content:attr(data-label);position:absolute;top:-0.2rem;left:8px;font-size:.4rem;line-height:.4rem;padding:0 4px;--dsm-popover-label-start: round(down, calc(0.2rem - 1px), 1px);background:linear-gradient(to bottom, transparent var(--dsm-popover-label-start), #F0F2F4 var(--dsm-popover-label-start));color:#2a3947;z-index:0;text-transform:uppercase}.dataSourceMenuPopoverButton[class*=isDisabled]{border-style:dashed}.dataSourceMenuPopoverButton[class*=isDisabled]>.euiButton-isDisabled{color:#2a3947;font-style:italic}.euiButton.dataSourceMenuPopoverButtonLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;max-width:32ch;font-size:13.5px !important;border:0;margin:-1px;position:relative;z-index:1;min-width:auto}.dataSourceMenuPopoverButton:not([class*=isDisabled])>.euiButton.dataSourceMenuPopoverButtonLabel{padding-right:24px;max-width:calc(32ch + 12px + 12px)}.euiButton.dataSourceMenuPopoverButtonLabel+.euiIcon{pointer-events:none;margin-left:-24px;margin-right:12px}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(176);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceMenuPopoverButton{position:relative;background-color:#02020e;border:1px solid #5c666f;border-radius:4px}.dataSourceMenuPopoverButton::before{content:attr(data-label);position:absolute;top:-0.2rem;left:8px;font-size:.4rem;line-height:.4rem;padding:0 4px;--dsm-popover-label-start: round(down, calc(0.2rem - 1px), 1px);background:linear-gradient(to bottom, transparent var(--dsm-popover-label-start), #02020E var(--dsm-popover-label-start));color:#959ba2;z-index:0;text-transform:uppercase}.dataSourceMenuPopoverButton[class*=isDisabled]{border-style:dashed}.dataSourceMenuPopoverButton[class*=isDisabled]>.euiButton-isDisabled{color:#959ba2;font-style:italic}.euiButton.dataSourceMenuPopoverButtonLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;max-width:32ch;font-size:12.000002px !important;border:0;margin:-1px;position:relative;z-index:1;min-width:auto}.dataSourceMenuPopoverButton:not([class*=isDisabled])>.euiButton.dataSourceMenuPopoverButtonLabel{padding-right:24px;max-width:calc(32ch + 12px + 12px)}.euiButton.dataSourceMenuPopoverButtonLabel+.euiIcon{pointer-events:none;margin-left:-24px;margin-right:12px}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(178);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceMenuPopoverButton{position:relative;background-color:#f0f2f4;border:1px solid #adb4ba;border-radius:4px}.dataSourceMenuPopoverButton::before{content:attr(data-label);position:absolute;top:-0.2rem;left:8px;font-size:.4rem;line-height:.4rem;padding:0 4px;--dsm-popover-label-start: round(down, calc(0.2rem - 1px), 1px);background:linear-gradient(to bottom, transparent var(--dsm-popover-label-start), #F0F2F4 var(--dsm-popover-label-start));color:#2a3947;z-index:0;text-transform:uppercase}.dataSourceMenuPopoverButton[class*=isDisabled]{border-style:dashed}.dataSourceMenuPopoverButton[class*=isDisabled]>.euiButton-isDisabled{color:#2a3947;font-style:italic}.euiButton.dataSourceMenuPopoverButtonLabel{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;width:auto;max-width:32ch;font-size:12.000002px !important;border:0;margin:-1px;position:relative;z-index:1;min-width:auto}.dataSourceMenuPopoverButton:not([class*=isDisabled])>.euiButton.dataSourceMenuPopoverButtonLabel{padding-right:24px;max-width:calc(32ch + 12px + 12px)}.euiButton.dataSourceMenuPopoverButtonLabel+.euiIcon{pointer-events:none;margin-left:-24px;margin-right:12px}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(180);case"v7light":return __webpack_require__(182);case"v8dark":return __webpack_require__(184);case"v8light":return __webpack_require__(186);case"v9dark":return __webpack_require__(188);case"v9light":return __webpack_require__(190)}},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(181);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceViewOuiPanel{width:300px}.dataSourceViewOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceViewOuiFlexGroup .euiFlexItem{max-width:fit-content}
14.dataSourceViewOuiFlexGroup .dataSourceViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(183);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceViewOuiPanel{width:300px}.dataSourceViewOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceViewOuiFlexGroup .dataSourceViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(185);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceViewOuiPanel{width:300px}.dataSourceViewOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceViewOuiFlexGroup .dataSourceViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(187);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceViewOuiPanel{width:300px}.dataSourceViewOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceViewOuiFlexGroup .euiFlexItem{max-width:fit-content}
14.dataSourceViewOuiFlexGroup .dataSourceViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(189);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceViewOuiPanel{width:300px}.dataSourceViewOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceViewOuiFlexGroup .dataSourceViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(191);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceViewOuiPanel{width:300px}.dataSourceViewOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceViewOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceViewOuiFlexGroup .dataSourceViewOuiFlexItem{color:gray;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){switch(window.__osdThemeTag__){case"v7dark":return __webpack_require__(193);case"v7light":return __webpack_require__(195);case"v8dark":return __webpack_require__(197);case"v8light":return __webpack_require__(199);case"v9dark":return __webpack_require__(201);case"v9light":return __webpack_require__(203)}},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(194);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceFilterGroupItems{overflow:scroll;max-width:300px}.dataSourceFilterGroupItems .dataSourceFilterGroupOuiFlexGroup .dataSourceFilterGroupOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(196);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceFilterGroupItems{overflow:scroll;max-width:300px}.dataSourceFilterGroupItems .dataSourceFilterGroupOuiFlexGroup .dataSourceFilterGroupOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(198);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceFilterGroupItems{overflow:scroll;max-width:300px}.dataSourceFilterGroupItems .dataSourceFilterGroupOuiFlexGroup .dataSourceFilterGroupOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(200);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceFilterGroupItems{overflow:scroll;max-width:300px}.dataSourceFilterGroupItems .dataSourceFilterGroupOuiFlexGroup .dataSourceFilterGroupOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(202);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceFilterGroupItems{overflow:scroll;max-width:300px}.dataSourceFilterGroupItems .dataSourceFilterGroupOuiFlexGroup .dataSourceFilterGroupOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(204);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceFilterGroupItems{overflow:scroll;max-width:300px}.dataSourceFilterGroupItems .dataSourceFilterGroupOuiFlexGroup .dataSourceFilterGroupOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(206);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectableOuiPanel{width:300px}.dataSourceSelectableOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .dataSourceSelectableOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:fit-content}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(208);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectableOuiPanel{width:300px}.dataSourceSelectableOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .dataSourceSelectableOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:fit-content}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(210);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectableOuiPanel{width:300px}.dataSourceSelectableOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .dataSourceSelectableOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:fit-content}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(212);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectableOuiPanel{width:300px}.dataSourceSelectableOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .dataSourceSelectableOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:fit-content}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(214);
14content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectableOuiPanel{width:300px}.dataSourceSelectableOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .dataSourceSelectableOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:fit-content}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports,__webpack_require__){var api=__webpack_require__(6);var content=__webpack_require__(216);content=content.__esModule?content.default:content;if(typeof content==="string"){content=[[module.i,content,""]]}var options={};options.insert="head";options.singleton=false;var update=api(content,options);module.exports=content.locals||{}},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2);var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);var ___CSS_LOADER_EXPORT___=_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()((function(i){return i[1]}));___CSS_LOADER_EXPORT___.push([module.i,"/*!\n * SPDX-License-Identifier: Apache-2.0\n *\n * The OpenSearch Contributors require contributions made to\n * this file be licensed under the Apache-2.0 license or a\n * compatible open source license.\n *\n * Modifications Copyright OpenSearch Contributors. See\n * GitHub history for details.\n */\n\n.dataSourceSelectableOuiPanel{width:300px}.dataSourceSelectableOuiPanel .euiSelectableListItem__text{max-height:100%}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .euiFlexItem{max-width:fit-content}.dataSourceSelectableOuiPanel .dataSourceSelectableOuiFlexGroup .dataSourceSelectableOuiFlexItem{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;display:inline-block;max-width:fit-content}\n",""]);__webpack_exports__["default"]=___CSS_LOADER_EXPORT___},function(module,exports){function n(n){for(var t=arguments.length,r=Array(t>1?t-1:0),e=1;e<t;e++)r[e-1]=arguments[e];throw Error("[Immer] minified error nr: "+n+(r.length?" "+r.map((function(n){return"'"+n+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function t(n){return!!n&&!!n[H]}function r(n){return!!n&&(function(n){if(!n||"object"!=typeof n)return!1;var t=Object.getPrototypeOf(n);if(null===t)return!0;var r=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return r===Object||"function"==typeof r&&Function.toString.call(r)===Q}(n)||Array.isArray(n)||!!n[G]||!!n.constructor[G]||c(n)||v(n))}function e(n,t,r){void 0===r&&(r=!1),0===i(n)?(r?Object.keys:T)(n).forEac
vendor: 11,157 bytes, line 14
14h((function(e){r&&"symbol"==typeof e||t(e,n[e],n)})):n.forEach((function(r,e){return t(e,r,n)}))}function i(n){var t=n[H];return t?t.t>3?t.t-4:t.t:Array.isArray(n)?1:c(n)?2:v(n)?3:0}function u(n,t){return 2===i(n)?n.has(t):Object.prototype.hasOwnProperty.call(n,t)}function o(n,t){return 2===i(n)?n.get(t):n[t]}function f(n,t,r){var e=i(n);2===e?n.set(t,r):3===e?(n.delete(t),n.add(r)):n[t]=r}function a(n,t){return n===t?0!==n||1/n==1/t:n!=n&&t!=t}function c(n){return W&&n instanceof Map}function v(n){return X&&n instanceof Set}function s(n){return n.i||n.u}function p(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var t=U(n);delete t[H];for(var r=T(t),e=0;e<r.length;e++){var i=r[e],u=t[i];!1===u.writable&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(t[i]={configurable:!0,writable:!0,enumerable:u.enumerable,value:n[i]})}return Object.create(Object.getPrototypeOf(n),t)}function l(n,u){return void 0===u&&(u=!1),h(n)||t(n)||!r(n)?n:(i(n)>1&&(n.set=n.add=n.clear=n.delete=d),Object.freeze(n),u&&e(n,(function(n,t){return l(t,!0)}),!0),n)}function d(){n(2)}function h(n){return null==n||"object"!=typeof n||Object.isFrozen(n)}function y(t){var r=V[t];return r||n(18,t),r}function _(n,t){V[n]||(V[n]=t)}function b(){return J}function m(n,t){t&&(y("Patches"),n.o=[],n.v=[],n.s=t)}function j(n){O(n),n.p.forEach(w),n.p=null}function O(n){n===J&&(J=n.l)}function x(n){return J={p:[],l:J,h:n,_:!0,m:0}}function w(n){var t=n[H];0===t.t||1===t.t?t.j():t.O=!0}function S(t,e){e.m=e.p.length;var i=e.p[0],u=void 0!==t&&t!==i;return e.h.S||y("ES5").P(e,t,u),u?(i[H].M&&(j(e),n(4)),r(t)&&(t=P(e,t),e.l||g(e,t)),e.o&&y("Patches").g(i[H].u,t,e.o,e.v)):t=P(e,i,[]),j(e),e.o&&e.s(e.o,e.v),t!==B?t:void 0}function P(n,t,r){if(h(t))return t;var i=t[H];if(!i)return e(t,(function(e,u){return M(n,i,t,e,u,r)}),!0),t;if(i.A!==n)return t;if(!i.M)return g(n,i.u,!0),i.u;if(!i.R){i.R=!0,i.A.m--;var u=4===i.t||5===i.t?i.i=p(i.k):i.i;e(3===i.t?new Set(u):u,(function(t,e){return M(n,i,u,t,e,r)})),g(n,u,!1),r&&n.o&&y("Patches").F(i,r,n.o,n.v)}return i.i}function M(n,e,i,o,a,c){if(t(a)){var v=P(n,a,c&&e&&3!==e.t&&!u(e.D,o)?c.concat(o):void 0);if(f(i,o,v),!t(v))return;n._=!1}if(r(a)&&!h(a)){if(!n.h.K&&n.m<1)return;P(n,a),e&&e.A.l||g(n,a)}}function g(n,t,r){void 0===r&&(r=!1),n.h.K&&n._&&l(t,r)}function A(n,t){var r=n[H];return(r?s(r):n)[t]}function z(n,t){if(t in n)for(var r=Object.getPrototypeOf(n);r;){var e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}}function E(n){n.M||(n.M=!0,n.l&&E(n.l))}function R(n){n.i||(n.i=p(n.u))}function k(n,t,r){var e=c(t)?y("MapSet").$(t,r):v(t)?y("MapSet").C(t,r):n.S?function(n,t){var r=Array.isArray(n),e={t:r?1:0,A:t?t.A:b(),M:!1,R:!1,D:{},l:t,u:n,k:null,i:null,j:null,I:!1},i=e,u=Y;r&&(i=[e],u=Z);var o=Proxy.revocable(i,u),f=o.revoke,a=o.proxy;return e.k=a,e.j=f,a}(t,r):y("ES5").J(t,r);return(r?r.A:b()).p.push(e),e}function F(u){return t(u)||n(22,u),function n(t){if(!r(t))return t;var u,a=t[H],c=i(t);if(a){if(!a.M&&(a.t<4||!y("ES5").N(a)))return a.u;a.R=!0,u=D(t,c),a.R=!1}else u=D(t,c);return e(u,(function(t,r){a&&o(a.u,t)===r||f(u,t,n(r))})),3===c?new Set(u):u}(u)}function D(n,t){switch(t){case 2:return new Map(n);case 3:return Array.from(n)}return p(n)}function K(){function n(n,t){var r=f[n];return r?r.enumerable=t:f[n]=r={configurable:!0,enumerable:t,get:function(){return Y.get(this[H],n)},set:function(t){Y.set(this[H],n,t)}},r}function r(n){for(var t=n.length-1;t>=0;t--){var r=n[t][H];if(!r.M)switch(r.t){case 5:o(r)&&E(r);break;case 4:i(r)&&E(r)}}}function i(n){for(var t=n.u,r=n.k,e=T(r),i=e.length-1;i>=0;i--){var o=e[i];if(o!==H){var f=t[o];if(void 0===f&&!u(t,o))return!0;var c=r[o],v=c&&c[H];if(v?v.u!==f:!a(c,f))return!0}}var s=!!t[H];return e.length!==T(t).length+(s?0:1)}function o(n){var t=n.k;if(t.length!==n.u.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);if(r&&!r.get)return!0;for(var e=0;e<t.length;e++)if(!t.hasOwnProperty(e))return!0;return!1}var f={};_("ES5",{J:function(t,r){var e=Array.isArray(t),i=function(t,r){if(t){for(var e=Array(r.length),i=0;i<r.length;i++)Object.defineProperty(e,""+i,n(i,!0));return e}var u=U(r);delete u[H];for(var o=T(u),f=0;f<o.length;f++){var a=o[f];u[a]=n(a,t||!!u[a].enumerable)}return Object.create(Object.getPrototypeOf(r),u)}(e,t),u={t:e?5:4,A:r?r.A:b(),M:!1,R:!1,D:{},l:r,u:t,k:i,i:null,O:!1,I:!1};return Object.defineProperty(i,H,{value:u,writable:!0}),i},P:function(n,i,f){f?t(i)&&i[H].A===n&&r(n.p):(n.o&&function n(t){if(t&&"object"==typeof t){var r=t[H];if(r){var i=r.u,f=r.k,a=r.D,c=r.t;if(4===c)e(f,(function(t){t!==H&&(void 0!==i[t]||u(i,t)?a[t]||n(f[t]):(a[t]=!0,E(r)))})),e(i,(function(n){void 0!==f[n]||u(f,n)||(a[n]=!1,E(r))}));else if(5===c){if(o(r)&&(E(r),a.length=!0),f.length<i.length)for(var v=f.length;v<i.length;v++)a[v]=!1;else for(var s=i.length;s<f.length;s++)a[s]=!0;for(var p=Math.min(f.length,i.length),l=0;l<p;l++)f.hasOwnProperty(l)||(a[l]=!0),void 0===a[l]&&n(f[l])}}}}(n.p[0]),r(n.p))},N:function(n){return 4===n.t?i(n):o(n)}})}function $(){function f(n){if(!r(n))return n;if(Array.isArray(n))return n.map(f);if(c(n))return new Map(Array.from(n.entries()).map((function(n){return[n[0],f(n[1])]})));if(v(n))return new Set(Array.from(n).map(f));var t=Object.create(Object.getPrototypeOf(n));for(var e in n)t[e]=f(n[e]);return u(n,G)&&(t[G]=n[G]),t}function a(n){return t(n)?f(n):n}var s="add";_("Patches",{W:function(t,r){return r.forEach((function(r){for(var e=r.path,u=r.op,a=t,c=0;c<e.length-1;c++){var v=i(a),p=""+e[c];0!==v&&1!==v||"__proto__"!==p&&"constructor"!==p||n(24),"function"==typeof a&&"prototype"===p&&n(24),"object"!=typeof(a=o(a,p))&&n(15,e.join("/"))}var l=i(a),d=f(r.value),h=e[e.length-1];switch(u){case"replace":switch(l){case 2:return a.set(h,d);case 3:n(16);default:return a[h]=d}case s:switch(l){case 1:return"-"===h?a.push(d):a.splice(h,0,d);case 2:return a.set(h,d);case 3:return a.add(d);default:return a[h]=d}case"remove":switch(l){case 1:return a.splice(h,1);case 2:return a.delete(h);case 3:return a.delete(r.value);default:return delete a[h]}default:n(17,u)}})),t},F:function(n,t,r,i){switch(n.t){case 0:case 4:case 2:return function(n,t,r,i){var f=n.u,c=n.i;e(n.D,(function(n,e){var v=o(f,n),p=o(c,n),l=e?u(f,n)?"replace":s:"remove";if(v!==p||"replace"!==l){var d=t.concat(n);r.push("remove"===l?{op:l,path:d}:{op:l,path:d,value:p}),i.push(l===s?{op:"remove",path:d}:"remove"===l?{op:s,path:d,value:a(v)}:{op:"replace",path:d,value:a(v)})}}))}(n,t,r,i);case 5:case 1:return function(n,t,r,e){var i=n.u,u=n.D,o=n.i;if(o.length<i.length){var f=[o,i];i=f[0],o=f[1];var c=[e,r];r=c[0],e=c[1]}for(var v=0;v<i.length;v++)if(u[v]&&o[v]!==i[v]){var p=t.concat([v]);r.push({op:"replace",path:p,value:a(o[v])}),e.push({op:"replace",path:p,value:a(i[v])})}for(var l=i.length;l<o.length;l++){var d=t.concat([l]);r.push({op:s,path:d,value:a(o[l])})}i.length<o.length&&e.push({op:"replace",path:t.concat(["length"]),value:i.length})}(n,t,r,i);case 3:return function(n,t,r,e){var i=n.u,u=n.i,o=0;i.forEach((function(n){if(!u.has(n)){var i=t.concat([o]);r.push({op:"remove",path:i,value:n}),e.unshift({op:s,path:i,value:n})}o++})),o=0,u.forEach((function(n){if(!i.has(n)){var u=t.concat([o]);r.push({op:s,path:u,value:n}),e.unshift({op:"remove",path:u,value:n})}o++}))}(n,t,r,i)}},g:function(n,t,r,e){r.push({op:"replace",path:[],value:t===B?void 0:t}),e.push({op:"replace",path:[],value:n})}})}function C(){function t(n,t){function r(){this.constructor=n}f(n,t),n.prototype=(r.prototype=t.prototype,new r)}function i(n){n.i||(n.D=new Map,n.i=new Map(n.u))}function u(n){n.i||(n.i=new Set,n.u.forEach((function(t){if(r(t)){var e=k(n.A.h,t,n);n.p.set(t,e),n.i.add(e)}else n.i.add(t)})))}function o(t){t.O&&n(3,JSON.stringify(s(t)))}var f=function(n,t){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r])})(n,t)},a=function(){function n(n,t){return this[H]={t:2,l:t,A:t?t.A:b(),M:!1,R:!1,i:void 0,D:void 0,u:n,k:this,I:!1,O:!1},this}t(n,Map);var u=n.prototype;return Object.defineProperty(u,"size",{get:function(){return s(this[H]).size}}),u.has=function(n){return s(this[H]).has(n)},u.set=function(n,t){var r=this[H];return o(r),s(r).has(n)&&s(r).get(n)===t||(i(r),E(r),r.D.set(n,!0),r.i.set(n,t),r.D.set(n,!0)),this},u.delete=function(n){if(!this.has(n))return!1;var t=this[H];return o(t),i(t),E(t),t.u.has(n)?t.D.set(n,!1):t.D.delete(n),t.i.delete(n),!0},u.clear=function(){var n=this[H];o(n),s(n).size&&(i(n),E(n),n.D=new Map,e(n.u,(function(t){n.D.set(t,!1)})),n.i.clear())},u.forEach=function(n,t){var r=this;s(this[H]).forEach((function(e,i){n.call(t,r.get(i),i,r)}))},u.get=function(n){var t=this[H];o(t);var e=s(t).get(n);if(t.R||!r(e))return e;if(e!==t.u.get(n))return e;var u=k(t.A.h,e,t);return i(t),t.i.set(n,u),u},u.keys=function(){return s(this[H]).keys()},u.values=function(){var n,t=this,r=this.keys();return(n={})[L]=function(){return t.values()},n.next=function(){var n=r.next();return n.done?n:{done:!1,value:t.get(n.value)}},n},u.entries=function(){var n,t=this,r=this.keys();return(n={})[L]=function(){return t.entries()},n.next=function(){var n=r.next();if(n.done)return n;var e=t.get(n.value);return{done:!1,value:[n.value,e]}},n},u[L]=function(){return this.entries()},n}(),c=function(){function n(n,t){return this[H]={t:3,l:t,A:t?t.A:b(),M:!1,R:!1,i:void 0,u:n,k:this,p:new Map,O:!1,I:!1},this}t(n,Set);var r=n.prototype;return Object.defineProperty(r,"size",{get:function(){return s(this[H]).size}}),r.has=function(n){var t=this[H];return o(t),t.i?!!t.i.has(n)||!(!t.p.has(n)||!t.i.has(t.p.get(n))):t.u.has(n)},r.add=function(n){var t=this[H];return o(t),this.has(n)||(u(t),E(t),t.i.add(n)),this},r.delete=function(n){if(!this.has(n))return!1;var t=this[H];return o(t),u(t),E(t),t.i.delete(n)||!!t.p.has(n)&&t.i.delete(t.p.get(n))},r.clear=function(){var n=this[H];o(n),s(n).size&&(u(n),E(n),n.i.clear())},r.values=function(){var n=this[H];return o(n),u(n),n.i.values()},r.entries=function(){var n=this[H];return o(n),u(n),n.i.entries()},r.keys=function(){return this.values()},r[L]=function(){return this.values()},r.forEach=function(n,t){for(var r=this.values(),e=r.next();!e.done;)n.call(t,e.value,e.value,this),e=r.next()},n}();_("MapSet",{$:function(n,t){return new a(n,t)},C:function(n,t){return new c(n,t)}})}var I;Object.defineProperty(exports,"__esModule",{value:!0});var J,N="undefined"!=typeof Symbol&&"symbol"==typeof Symbol("x"),W="undefined"!=typeof Map,X="undefined"!=typeof Set,q="undefined"!=typeof Proxy&&void 0!==Proxy.revocable&&"undefined"!=typeof Reflect,B=N?Symbol.for("immer-nothing"):((I={})["immer-nothing"]=!0,I),G=N?Symbol.for("immer-draftable"):"__$immer_draftable",H=N?Symbol.for("immer-state"):"__$immer_state",L="undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator",Q=""+Object.prototype.constructor,T="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,U=Object.getOwnPropertyDescriptors||function(n){var t={};
vendor: 5,242 bytes, line 14
14return T(n).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(n,r)})),t},V={},Y={get:function(n,t){if(t===H)return n;var e=s(n);if(!u(e,t))return function(n,t,r){var e,i=z(t,r);return i?"value"in i?i.value:null===(e=i.get)||void 0===e?void 0:e.call(n.k):void 0}(n,e,t);var i=e[t];return n.R||!r(i)?i:i===A(n.u,t)?(R(n),n.i[t]=k(n.A.h,i,n)):i},has:function(n,t){return t in s(n)},ownKeys:function(n){return Reflect.ownKeys(s(n))},set:function(n,t,r){var e=z(s(n),t);if(null==e?void 0:e.set)return e.set.call(n.k,r),!0;if(!n.M){var i=A(s(n),t),o=null==i?void 0:i[H];if(o&&o.u===r)return n.i[t]=r,n.D[t]=!1,!0;if(a(r,i)&&(void 0!==r||u(n.u,t)))return!0;R(n),E(n)}return n.i[t]===r&&"number"!=typeof r&&(void 0!==r||t in n.i)||(n.i[t]=r,n.D[t]=!0,!0)},deleteProperty:function(n,t){return void 0!==A(n.u,t)||t in n.u?(n.D[t]=!1,R(n),E(n)):delete n.D[t],n.i&&delete n.i[t],!0},getOwnPropertyDescriptor:function(n,t){var r=s(n),e=Reflect.getOwnPropertyDescriptor(r,t);return e?{writable:!0,configurable:1!==n.t||"length"!==t,enumerable:e.enumerable,value:r[t]}:e},defineProperty:function(){n(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.u)},setPrototypeOf:function(){n(12)}},Z={};e(Y,(function(n,t){Z[n]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Z.deleteProperty=function(n,t){return Z.set.call(this,n,t,void 0)},Z.set=function(n,t,r){return Y.set.call(this,n[0],t,r,n[0])};var nn=function(){function e(t){var e=this;this.S=q,this.K=!0,this.produce=function(t,i,u){if("function"==typeof t&&"function"!=typeof i){var o=i;i=t;var f=e;return function(n){var t=this;void 0===n&&(n=o);for(var r=arguments.length,e=Array(r>1?r-1:0),u=1;u<r;u++)e[u-1]=arguments[u];return f.produce(n,(function(n){var r;return(r=i).call.apply(r,[t,n].concat(e))}))}}var a;if("function"!=typeof i&&n(6),void 0!==u&&"function"!=typeof u&&n(7),r(t)){var c=x(e),v=k(e,t,void 0),s=!0;try{a=i(v),s=!1}finally{s?j(c):O(c)}return"undefined"!=typeof Promise&&a instanceof Promise?a.then((function(n){return m(c,u),S(n,c)}),(function(n){throw j(c),n})):(m(c,u),S(a,c))}if(!t||"object"!=typeof t){if(void 0===(a=i(t))&&(a=t),a===B&&(a=void 0),e.K&&l(a,!0),u){var p=[],d=[];y("Patches").g(t,a,p,d),u(p,d)}return a}n(21,t)},this.produceWithPatches=function(n,t){if("function"==typeof n)return function(t){for(var r=arguments.length,i=Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return e.produceWithPatches(t,(function(t){return n.apply(void 0,[t].concat(i))}))};var r,i,u=e.produce(n,t,(function(n,t){r=n,i=t}));return"undefined"!=typeof Promise&&u instanceof Promise?u.then((function(n){return[n,r,i]})):[u,r,i]},"boolean"==typeof(null==t?void 0:t.useProxies)&&this.setUseProxies(t.useProxies),"boolean"==typeof(null==t?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze)}var i=e.prototype;return i.createDraft=function(e){r(e)||n(8),t(e)&&(e=F(e));var i=x(this),u=k(this,e,void 0);return u[H].I=!0,O(i),u},i.finishDraft=function(n,t){var r=(n&&n[H]).A;return m(r,t),S(void 0,r)},i.setAutoFreeze=function(n){this.K=n},i.setUseProxies=function(t){t&&!q&&n(20),this.S=t},i.applyPatches=function(n,r){var e;for(e=r.length-1;e>=0;e--){var i=r[e];if(0===i.path.length&&"replace"===i.op){n=i.value;break}}e>-1&&(r=r.slice(e+1));var u=y("Patches").W;return t(n)?u(n,r):this.produce(n,(function(n){return u(n,r)}))},e}(),tn=new nn,rn=tn.produce,en=tn.produceWithPatches.bind(tn),un=tn.setAutoFreeze.bind(tn),on=tn.setUseProxies.bind(tn),fn=tn.applyPatches.bind(tn),an=tn.createDraft.bind(tn),cn=tn.finishDraft.bind(tn);exports.Immer=nn,exports.applyPatches=fn,exports.castDraft=function(n){return n},exports.castImmutable=function(n){return n},exports.createDraft=an,exports.current=F,exports.default=rn,exports.enableAllPlugins=function(){K(),C(),$()},exports.enableES5=K,exports.enableMapSet=C,exports.enablePatches=$,exports.finishDraft=cn,exports.freeze=l,exports.immerable=G,exports.isDraft=t,exports.isDraftable=r,exports.nothing=B,exports.original=function(r){return t(r)||n(23,r),r[H].u},exports.produce=rn,exports.produceWithPatches=en,exports.setAutoFreeze=un,exports.setUseProxies=on},function(module,exports,__webpack_require__){var baseIsMatch=__webpack_require__(219),getMatchData=__webpack_require__(275),matchesStrictComparable=__webpack_require__(84);function baseMatches(source){var matchData=getMatchData(source);if(matchData.length==1&&matchData[0][2]){return matchesStrictComparable(matchData[0][0],matchData[0][1])}return function(object){return object===source||baseIsMatch(object,source,matchData)}}module.exports=baseMatches},function(module,exports,__webpack_require__){var Stack=__webpack_require__(68),baseIsEqual=__webpack_require__(73);var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseIsMatch(object,source,matchData,customizer){var index=matchData.length,length=index,noCustomizer=!customizer;if(object==null){return!length}object=Object(object);while(index--){var data=matchData[index];if(noCustomizer&&data[2]?data[1]!==object[data[0]]:!(data[0]in object)){return false}}while(++index<length){data=matchData[index];var key=data[0],objValue=object[key],srcValue=data[1];if(noCustomizer&&data[2]){if(objValue===undefined&&!(key in object)){return false}}else{var stack=new Stack;
vendor: 19,736 bytes, line 14
14if(customizer){var result=customizer(objValue,srcValue,key,object,source,stack)}if(!(result===undefined?baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG,customizer,stack):result)){return false}}}return true}module.exports=baseIsMatch},function(module,exports){function listCacheClear(){this.__data__=[];this.size=0}module.exports=listCacheClear},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(38);var arrayProto=Array.prototype;var splice=arrayProto.splice;function listCacheDelete(key){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){return false}var lastIndex=data.length-1;if(index==lastIndex){data.pop()}else{splice.call(data,index,1)}--this.size;return true}module.exports=listCacheDelete},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(38);function listCacheGet(key){var data=this.__data__,index=assocIndexOf(data,key);return index<0?undefined:data[index][1]}module.exports=listCacheGet},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(38);function listCacheHas(key){return assocIndexOf(this.__data__,key)>-1}module.exports=listCacheHas},function(module,exports,__webpack_require__){var assocIndexOf=__webpack_require__(38);function listCacheSet(key,value){var data=this.__data__,index=assocIndexOf(data,key);if(index<0){++this.size;data.push([key,value])}else{data[index][1]=value}return this}module.exports=listCacheSet},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(37);function stackClear(){this.__data__=new ListCache;this.size=0}module.exports=stackClear},function(module,exports){function stackDelete(key){var data=this.__data__,result=data["delete"](key);this.size=data.size;return result}module.exports=stackDelete},function(module,exports){function stackGet(key){return this.__data__.get(key)}module.exports=stackGet},function(module,exports){function stackHas(key){return this.__data__.has(key)}module.exports=stackHas},function(module,exports,__webpack_require__){var ListCache=__webpack_require__(37),Map=__webpack_require__(51),MapCache=__webpack_require__(52);var LARGE_ARRAY_SIZE=200;function stackSet(key,value){var data=this.__data__;if(data instanceof ListCache){var pairs=data.__data__;if(!Map||pairs.length<LARGE_ARRAY_SIZE-1){pairs.push([key,value]);this.size=++data.size;return this}data=this.__data__=new MapCache(pairs)}data.set(key,value);this.size=data.size;return this}module.exports=stackSet},function(module,exports,__webpack_require__){var isFunction=__webpack_require__(70),isMasked=__webpack_require__(233),isObject=__webpack_require__(47),toSource=__webpack_require__(72);var reRegExpChar=/[\\^$.*+?()[\]{}|]/g;var reIsHostCtor=/^\[object .+?Constructor\]$/;var funcProto=Function.prototype,objectProto=Object.prototype;var funcToString=funcProto.toString;var hasOwnProperty=objectProto.hasOwnProperty;var reIsNative=RegExp("^"+funcToString.call(hasOwnProperty).replace(reRegExpChar,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function baseIsNative(value){if(!isObject(value)||isMasked(value)){return false}var pattern=isFunction(value)?reIsNative:reIsHostCtor;return pattern.test(toSource(value))}module.exports=baseIsNative},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(34);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;var nativeObjectToString=objectProto.toString;var symToStringTag=Symbol?Symbol.toStringTag:undefined;function getRawTag(value){var isOwn=hasOwnProperty.call(value,symToStringTag),tag=value[symToStringTag];try{value[symToStringTag]=undefined;var unmasked=true}catch(e){}var result=nativeObjectToString.call(value);if(unmasked){if(isOwn){value[symToStringTag]=tag}else{delete value[symToStringTag]}}return result}module.exports=getRawTag},function(module,exports){var objectProto=Object.prototype;var nativeObjectToString=objectProto.toString;function objectToString(value){return nativeObjectToString.call(value)}module.exports=objectToString},function(module,exports,__webpack_require__){var coreJsData=__webpack_require__(234);var maskSrcKey=function(){var uid=/[^.]+$/.exec(coreJsData&&coreJsData.keys&&coreJsData.keys.IE_PROTO||"");return uid?"Symbol(src)_1."+uid:""}();function isMasked(func){return!!maskSrcKey&&maskSrcKey in func}module.exports=isMasked},function(module,exports,__webpack_require__){var root=__webpack_require__(22);var coreJsData=root["__core-js_shared__"];module.exports=coreJsData},function(module,exports){function getValue(object,key){return object==null?undefined:object[key]}module.exports=getValue},function(module,exports,__webpack_require__){var Hash=__webpack_require__(237),ListCache=__webpack_require__(37),Map=__webpack_require__(51);function mapCacheClear(){this.size=0;this.__data__={hash:new Hash,map:new(Map||ListCache),string:new Hash}}module.exports=mapCacheClear},function(module,exports,__webpack_require__){var hashClear=__webpack_require__(238),hashDelete=__webpack_require__(239),hashGet=__webpack_require__(240),hashHas=__webpack_require__(241),hashSet=__webpack_require__(242);function Hash(entries){var index=-1,length=entries==null?0:entries.length;this.clear();while(++index<length){var entry=entries[index];this.set(entry[0],entry[1])}}Hash.prototype.clear=hashClear;Hash.prototype["delete"]=hashDelete;Hash.prototype.get=hashGet;Hash.prototype.has=hashHas;Hash.prototype.set=hashSet;module.exports=Hash},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(39);function hashClear(){this.__data__=nativeCreate?nativeCreate(null):{};this.size=0}module.exports=hashClear},function(module,exports){function hashDelete(key){var result=this.has(key)&&delete this.__data__[key];this.size-=result?1:0;return result}module.exports=hashDelete},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(39);var HASH_UNDEFINED="__lodash_hash_undefined__";var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function hashGet(key){var data=this.__data__;if(nativeCreate){var result=data[key];return result===HASH_UNDEFINED?undefined:result}return hasOwnProperty.call(data,key)?data[key]:undefined}module.exports=hashGet},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(39);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function hashHas(key){var data=this.__data__;return nativeCreate?data[key]!==undefined:hasOwnProperty.call(data,key)}module.exports=hashHas},function(module,exports,__webpack_require__){var nativeCreate=__webpack_require__(39);var HASH_UNDEFINED="__lodash_hash_undefined__";function hashSet(key,value){var data=this.__data__;this.size+=this.has(key)?0:1;data[key]=nativeCreate&&value===undefined?HASH_UNDEFINED:value;return this}module.exports=hashSet},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(40);function mapCacheDelete(key){var result=getMapData(this,key)["delete"](key);this.size-=result?1:0;return result}module.exports=mapCacheDelete},function(module,exports){function isKeyable(value){var type=typeof value;return type=="string"||type=="number"||type=="symbol"||type=="boolean"?value!=="__proto__":value===null}module.exports=isKeyable},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(40);function mapCacheGet(key){return getMapData(this,key).get(key)}module.exports=mapCacheGet},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(40);function mapCacheHas(key){return getMapData(this,key).has(key)}module.exports=mapCacheHas},function(module,exports,__webpack_require__){var getMapData=__webpack_require__(40);function mapCacheSet(key,value){var data=getMapData(this,key),size=data.size;data.set(key,value);this.size+=data.size==size?0:1;return this}module.exports=mapCacheSet},function(module,exports,__webpack_require__){var Stack=__webpack_require__(68),equalArrays=__webpack_require__(74),equalByTag=__webpack_require__(252),equalObjects=__webpack_require__(256),getTag=__webpack_require__(270),isArray=__webpack_require__(17),isBuffer=__webpack_require__(79),isTypedArray=__webpack_require__(82);var COMPARE_PARTIAL_FLAG=1;var argsTag="[object Arguments]",arrayTag="[object Array]",objectTag="[object Object]";var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseIsEqualDeep(object,other,bitmask,customizer,equalFunc,stack){var objIsArr=isArray(object),othIsArr=isArray(other),objTag=objIsArr?arrayTag:getTag(object),othTag=othIsArr?arrayTag:getTag(other);objTag=objTag==argsTag?objectTag:objTag;othTag=othTag==argsTag?objectTag:othTag;var objIsObj=objTag==objectTag,othIsObj=othTag==objectTag,isSameTag=objTag==othTag;if(isSameTag&&isBuffer(object)){if(!isBuffer(other)){return false}objIsArr=true;objIsObj=false}if(isSameTag&&!objIsObj){stack||(stack=new Stack);return objIsArr||isTypedArray(object)?equalArrays(object,other,bitmask,customizer,equalFunc,stack):equalByTag(object,other,objTag,bitmask,customizer,equalFunc,stack)}if(!(bitmask&COMPARE_PARTIAL_FLAG)){var objIsWrapped=objIsObj&&hasOwnProperty.call(object,"__wrapped__"),othIsWrapped=othIsObj&&hasOwnProperty.call(other,"__wrapped__");if(objIsWrapped||othIsWrapped){var objUnwrapped=objIsWrapped?object.value():object,othUnwrapped=othIsWrapped?other.value():other;stack||(stack=new Stack);return equalFunc(objUnwrapped,othUnwrapped,bitmask,customizer,stack)}}if(!isSameTag){return false}stack||(stack=new Stack);return equalObjects(object,other,bitmask,customizer,equalFunc,stack)}module.exports=baseIsEqualDeep},function(module,exports){var HASH_UNDEFINED="__lodash_hash_undefined__";function setCacheAdd(value){this.__data__.set(value,HASH_UNDEFINED);return this}module.exports=setCacheAdd},function(module,exports){function setCacheHas(value){return this.__data__.has(value)}module.exports=setCacheHas},function(module,exports){function arraySome(array,predicate){var index=-1,length=array==null?0:array.length;while(++index<length){if(predicate(array[index],index,array)){return true}}return false}module.exports=arraySome},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(34),Uint8Array=__webpack_require__(253),eq=__webpack_require__(69),equalArrays=__webpack_require__(74),mapToArray=__webpack_require__(254),setToArray=__webpack_require__(255);var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;var boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",mapTag="[object Map]",numberTag="[object Number]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",symbolTag="[object Symbol]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]";var symbolProto=Symbol?Symbol.prototype:undefined,symbolValueOf=symbolProto?symbolProto.valueOf:undefined;function equalByTag(object,other,tag,bitmask,customizer,equalFunc,stack){switch(tag){case dataViewTag:if(object.byteLength!=other.byteLength||object.byteOffset!=other.byteOffset){return false}object=object.buffer;other=other.buffer;case arrayBufferTag:if(object.byteLength!=other.byteLength||!equalFunc(new Uint8Array(object),new Uint8Array(other))){return false}return true;case boolTag:case dateTag:case numberTag:return eq(+object,+other);case errorTag:return object.name==other.name&&object.message==other.message;case regexpTag:case stringTag:return object==other+"";case mapTag:var convert=mapToArray;case setTag:var isPartial=bitmask&COMPARE_PARTIAL_FLAG;convert||(convert=setToArray);if(object.size!=other.size&&!isPartial){return false}var stacked=stack.get(object);if(stacked){return stacked==other}bitmask|=COMPARE_UNORDERED_FLAG;stack.set(object,other);var result=equalArrays(convert(object),convert(other),bitmask,customizer,equalFunc,stack);stack["delete"](object);return result;case symbolTag:if(symbolValueOf){return symbolValueOf.call(object)==symbolValueOf.call(other)}}return false}module.exports=equalByTag},function(module,exports,__webpack_require__){var root=__webpack_require__(22);var Uint8Array=root.Uint8Array;module.exports=Uint8Array},function(module,exports){function mapToArray(map){var index=-1,result=Array(map.size);map.forEach((function(value,key){result[++index]=[key,value]}));return result}module.exports=mapToArray},function(module,exports){function setToArray(set){var index=-1,result=Array(set.size);set.forEach((function(value){result[++index]=value}));return result}module.exports=setToArray},function(module,exports,__webpack_require__){var getAllKeys=__webpack_require__(257);var COMPARE_PARTIAL_FLAG=1;var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function equalObjects(object,other,bitmask,customizer,equalFunc,stack){var isPartial=bitmask&COMPARE_PARTIAL_FLAG,objProps=getAllKeys(object),objLength=objProps.length,othProps=getAllKeys(other),othLength=othProps.length;if(objLength!=othLength&&!isPartial){return false}var index=objLength;while(index--){var key=objProps[index];if(!(isPartial?key in other:hasOwnProperty.call(other,key))){return false}}var objStacked=stack.get(object);var othStacked=stack.get(other);if(objStacked&&othStacked){return objStacked==other&&othStacked==object}var result=true;stack.set(object,other);stack.set(other,object);var skipCtor=isPartial;while(++index<objLength){key=objProps[index];var objValue=object[key],othValue=other[key];if(customizer){var compared=isPartial?customizer(othValue,objValue,key,other,object,stack):customizer(objValue,othValue,key,object,other,stack)}if(!(compared===undefined?objValue===othValue||equalFunc(objValue,othValue,bitmask,customizer,stack):compared)){result=false;break}skipCtor||(skipCtor=key=="constructor")}if(result&&!skipCtor){var objCtor=object.constructor,othCtor=other.constructor;if(objCtor!=othCtor&&("constructor"in object&&"constructor"in other)&&!(typeof objCtor=="function"&&objCtor instanceof objCtor&&typeof othCtor=="function"&&othCtor instanceof othCtor)){result=false}}stack["delete"](object);stack["delete"](other);return result}module.exports=equalObjects},function(module,exports,__webpack_require__){var baseGetAllKeys=__webpack_require__(258),getSymbols=__webpack_require__(259),keys=__webpack_require__(53);function getAllKeys(object){return baseGetAllKeys(object,keys,getSymbols)}module.exports=getAllKeys},function(module,exports,__webpack_require__){var arrayPush=__webpack_require__(77),isArray=__webpack_require__(17);function baseGetAllKeys(object,keysFunc,symbolsFunc){var result=keysFunc(object);return isArray(object)?result:arrayPush(result,symbolsFunc(object))}module.exports=baseGetAllKeys},function(module,exports,__webpack_require__){var arrayFilter=__webpack_require__(78),stubArray=__webpack_require__(260);var objectProto=Object.prototype;var propertyIsEnumerable=objectProto.propertyIsEnumerable;var nativeGetSymbols=Object.getOwnPropertySymbols;var getSymbols=!nativeGetSymbols?stubArray:function(object){if(object==null){return[]}object=Object(object);return arrayFilter(nativeGetSymbols(object),(function(symbol){return propertyIsEnumerable.call(object,symbol)}))};module.exports=getSymbols},function(module,exports){function stubArray(){return[]}module.exports=stubArray},function(module,exports,__webpack_require__){var baseTimes=__webpack_require__(262),isArguments=__webpack_require__(54),isArray=__webpack_require__(17),isBuffer=__webpack_require__(79),isIndex=__webpack_require__(81),isTypedArray=__webpack_require__(82);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function arrayLikeKeys(value,inherited){var isArr=isArray(value),isArg=!isArr&&isArguments(value),isBuff=!isArr&&!isArg&&isBuffer(value),isType=!isArr&&!isArg&&!isBuff&&isTypedArray(value),skipIndexes=isArr||isArg||isBuff||isType,result=skipIndexes?baseTimes(value.length,String):[],length=result.length;for(var key in value){if((inherited||hasOwnProperty.call(value,key))&&!(skipIndexes&&(key=="length"||isBuff&&(key=="offset"||key=="parent")||isType&&(key=="buffer"||key=="byteLength"||key=="byteOffset")||isIndex(key,length)))){result.push(key)}}return result}module.exports=arrayLikeKeys},function(module,exports){function baseTimes(n,iteratee){var index=-1,result=Array(n);while(++index<n){result[index]=iteratee(index)}return result}module.exports=baseTimes},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(33),isObjectLike=__webpack_require__(27);var argsTag="[object Arguments]";function baseIsArguments(value){return isObjectLike(value)&&baseGetTag(value)==argsTag}module.exports=baseIsArguments},function(module,exports){function stubFalse(){return false}module.exports=stubFalse},function(module,exports,__webpack_require__){var baseGetTag=__webpack_require__(33),isLength=__webpack_require__(55),isObjectLike=__webpack_require__(27);var argsTag="[object Arguments]",arrayTag="[object Array]",boolTag="[object Boolean]",dateTag="[object Date]",errorTag="[object Error]",funcTag="[object Function]",mapTag="[object Map]",numberTag="[object Number]",objectTag="[object Object]",regexpTag="[object RegExp]",setTag="[object Set]",stringTag="[object String]",weakMapTag="[object WeakMap]";var arrayBufferTag="[object ArrayBuffer]",dataViewTag="[object DataView]",float32Tag="[object Float32Array]",float64Tag="[object Float64Array]",int8Tag="[object Int8Array]",int16Tag="[object Int16Array]",int32Tag="[object Int32Array]",uint8Tag="[object Uint8Array]",uint8ClampedTag="[object Uint8ClampedArray]",uint16Tag="[object Uint16Array]",uint32Tag="[object Uint32Array]";var typedArrayTags={};typedArrayTags[float32Tag]=typedArrayTags[float64Tag]=typedArrayTags[int8Tag]=typedArrayTags[int16Tag]=typedArrayTags[int32Tag]=typedArrayTags[uint8Tag]=typedArrayTags[uint8ClampedTag]=typedArrayTags[uint16Tag]=typedArrayTags[uint32Tag]=true;typedArrayTags[argsTag]=typedArrayTags[arrayTag]=typedArrayTags[arrayBufferTag]=typedArrayTags[boolTag]=typedArrayTags[dataViewTag]=typedArrayTags[dateTag]=typedArrayTags[errorTag]=typedArrayTags[funcTag]=typedArrayTags[mapTag]=typedArrayTags[numberTag]=typedArrayTags[objectTag]=typedArrayTags[regexpTag]=typedArrayTags[setTag]=typedArrayTags[stringTag]=typedArrayTags[weakMapTag]=false;function baseIsTypedArray(value){return isObjectLike(value)&&isLength(value.length)&&!!typedArrayTags[baseGetTag(value)]}module.exports=baseIsTypedArray},function(module,exports,__webpack_require__){var isPrototype=__webpack_require__(267),nativeKeys=__webpack_require__(268);var objectProto=Object.prototype;var hasOwnProperty=objectProto.hasOwnProperty;function baseKeys(object){if(!isPrototype(object)){return nativeKeys(object)}var result=[];for(var key in Object(object)){if(hasOwnProperty.call(object,key)&&key!="constructor"){result.push(key)}}return result}module.exports=baseKeys},function(module,exports){var objectProto=Object.prototype;function isPrototype(value){var Ctor=value&&value.constructor,proto=typeof Ctor=="function"&&Ctor.prototype||objectProto;return value===proto}module.exports=isPrototype},function(module,exports,__webpack_require__){var overArg=__webpack_require__(269);var nativeKeys=overArg(Object.keys,Object);module.exports=nativeKeys},function(module,exports){function overArg(func,transform){return function(arg){return func(transform(arg))}}module.exports=overArg},function(module,exports,__webpack_require__){var DataView=__webpack_require__(271),Map=__webpack_require__(51),Promise=__webpack_require__(272),Set=__webpack_require__(273),WeakMap=__webpack_require__(274),baseGetTag=__webpack_require__(33),toSource=__webpack_require__(72);var mapTag="[object Map]",objectTag="[object Object]",promiseTag="[object Promise]",
14setTag="[object Set]",weakMapTag="[object WeakMap]";var dataViewTag="[object DataView]";var dataViewCtorString=toSource(DataView),mapCtorString=toSource(Map),promiseCtorString=toSource(Promise),setCtorString=toSource(Set),weakMapCtorString=toSource(WeakMap);var getTag=baseGetTag;if(DataView&&getTag(new DataView(new ArrayBuffer(1)))!=dataViewTag||Map&&getTag(new Map)!=mapTag||Promise&&getTag(Promise.resolve())!=promiseTag||Set&&getTag(new Set)!=setTag||WeakMap&&getTag(new WeakMap)!=weakMapTag){getTag=function(value){var result=baseGetTag(value),Ctor=result==objectTag?value.constructor:undefined,ctorString=Ctor?toSource(Ctor):"";if(ctorString){switch(ctorString){case dataViewCtorString:return dataViewTag;case mapCtorString:return mapTag;case promiseCtorString:return promiseTag;case setCtorString:return setTag;case weakMapCtorString:return weakMapTag}}return result}}module.exports=getTag},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26),root=__webpack_require__(22);var DataView=getNative(root,"DataView");module.exports=DataView},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26),root=__webpack_require__(22);var Promise=getNative(root,"Promise");module.exports=Promise},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26),root=__webpack_require__(22);var Set=getNative(root,"Set");module.exports=Set},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26),root=__webpack_require__(22);var WeakMap=getNative(root,"WeakMap");module.exports=WeakMap},function(module,exports,__webpack_require__){var isStrictComparable=__webpack_require__(83),keys=__webpack_require__(53);function getMatchData(object){var result=keys(object),length=result.length;while(length--){var key=result[length],value=object[key];result[length]=[key,value,isStrictComparable(value)]}return result}module.exports=getMatchData},function(module,exports,__webpack_require__){var baseIsEqual=__webpack_require__(73),get=__webpack_require__(277),hasIn=__webpack_require__(281),isKey=__webpack_require__(56),isStrictComparable=__webpack_require__(83),matchesStrictComparable=__webpack_require__(84),toKey=__webpack_require__(42);var COMPARE_PARTIAL_FLAG=1,COMPARE_UNORDERED_FLAG=2;function baseMatchesProperty(path,srcValue){if(isKey(path)&&isStrictComparable(srcValue)){return matchesStrictComparable(toKey(path),srcValue)}return function(object){var objValue=get(object,path);return objValue===undefined&&objValue===srcValue?hasIn(object,path):baseIsEqual(srcValue,objValue,COMPARE_PARTIAL_FLAG|COMPARE_UNORDERED_FLAG)}}module.exports=baseMatchesProperty},function(module,exports,__webpack_require__){var baseGet=__webpack_require__(85);function get(object,path,defaultValue){var result=object==null?undefined:baseGet(object,path);return result===undefined?defaultValue:result}module.exports=get},function(module,exports,__webpack_require__){var memoizeCapped=__webpack_require__(279);var rePropName=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var reEscapeChar=/\\(\\)?/g;var stringToPath=memoizeCapped((function(string){var result=[];if(string.charCodeAt(0)===46){result.push("")}string.replace(rePropName,(function(match,number,quote,subString){result.push(quote?subString.replace(reEscapeChar,"$1"):number||match)}));return result}));module.exports=stringToPath},function(module,exports,__webpack_require__){var memoize=__webpack_require__(280);var MAX_MEMOIZE_SIZE=500;function memoizeCapped(func){var result=memoize(func,(function(key){if(cache.size===MAX_MEMOIZE_SIZE){cache.clear()}return key}));var cache=result.cache;return result}module.exports=memoizeCapped},function(module,exports,__webpack_require__){var MapCache=__webpack_require__(52);var FUNC_ERROR_TEXT="Expected a function";function memoize(func,resolver){if(typeof func!="function"||resolver!=null&&typeof resolver!="function"){throw new TypeError(FUNC_ERROR_TEXT)}var memoized=function(){var args=arguments,key=resolver?resolver.apply(this,args):args[0],cache=memoized.cache;if(cache.has(key)){return cache.get(key)}var result=func.apply(this,args);memoized.cache=cache.set(key,result)||cache;return result};memoized.cache=new(memoize.Cache||MapCache);return memoized}memoize.Cache=MapCache;module.exports=memoize},function(module,exports,__webpack_require__){var baseHasIn=__webpack_require__(282),hasPath=__webpack_require__(283);
vendor: 9,275 bytes, line 14
14function hasIn(object,path){return object!=null&&hasPath(object,path,baseHasIn)}module.exports=hasIn},function(module,exports){function baseHasIn(object,key){return object!=null&&key in Object(object)}module.exports=baseHasIn},function(module,exports,__webpack_require__){var castPath=__webpack_require__(86),isArguments=__webpack_require__(54),isArray=__webpack_require__(17),isIndex=__webpack_require__(81),isLength=__webpack_require__(55),toKey=__webpack_require__(42);function hasPath(object,path,hasFunc){path=castPath(path,object);var index=-1,length=path.length,result=false;while(++index<length){var key=toKey(path[index]);if(!(result=object!=null&&hasFunc(object,key))){break}object=object[key]}if(result||++index!=length){return result}length=object==null?0:object.length;return!!length&&isLength(length)&&isIndex(key,length)&&(isArray(object)||isArguments(object))}module.exports=hasPath},function(module,exports,__webpack_require__){var baseProperty=__webpack_require__(96),basePropertyDeep=__webpack_require__(285),isKey=__webpack_require__(56),toKey=__webpack_require__(42);function property(path){return isKey(path)?baseProperty(toKey(path)):basePropertyDeep(path)}module.exports=property},function(module,exports,__webpack_require__){var baseGet=__webpack_require__(85);function basePropertyDeep(path){return function(object){return baseGet(object,path)}}module.exports=basePropertyDeep},function(module,exports,__webpack_require__){var baseEach=__webpack_require__(87),isArrayLike=__webpack_require__(41);function baseMap(collection,iteratee){var index=-1,result=isArrayLike(collection)?Array(collection.length):[];baseEach(collection,(function(value,key,collection){result[++index]=iteratee(value,key,collection)}));return result}module.exports=baseMap},function(module,exports,__webpack_require__){var baseFor=__webpack_require__(288),keys=__webpack_require__(53);function baseForOwn(object,iteratee){return object&&baseFor(object,iteratee,keys)}module.exports=baseForOwn},function(module,exports,__webpack_require__){var createBaseFor=__webpack_require__(289);var baseFor=createBaseFor();module.exports=baseFor},function(module,exports){function createBaseFor(fromRight){return function(object,iteratee,keysFunc){var index=-1,iterable=Object(object),props=keysFunc(object),length=props.length;while(length--){var key=props[fromRight?length:++index];if(iteratee(iterable[key],key,iterable)===false){break}}return object}}module.exports=createBaseFor},function(module,exports,__webpack_require__){var isArrayLike=__webpack_require__(41);function createBaseEach(eachFunc,fromRight){return function(collection,iteratee){if(collection==null){return collection}if(!isArrayLike(collection)){return eachFunc(collection,iteratee)}var length=collection.length,index=fromRight?length:-1,iterable=Object(collection);while(fromRight?index--:++index<length){if(iteratee(iterable[index],index,iterable)===false){break}}return collection}}module.exports=createBaseEach},function(module,exports,__webpack_require__){var baseEach=__webpack_require__(87);function baseFilter(collection,predicate){var result=[];baseEach(collection,(function(value,index,collection){if(predicate(value,index,collection)){result.push(value)}}));return result}module.exports=baseFilter},function(module,exports,__webpack_require__){var SetCache=__webpack_require__(75),arrayIncludes=__webpack_require__(293),arrayIncludesWith=__webpack_require__(298),arrayMap=__webpack_require__(49),baseUnary=__webpack_require__(60),cacheHas=__webpack_require__(76);var LARGE_ARRAY_SIZE=200;function baseDifference(array,values,iteratee,comparator){var index=-1,includes=arrayIncludes,isCommon=true,length=array.length,result=[],valuesLength=values.length;if(!length){return result}if(iteratee){values=arrayMap(values,baseUnary(iteratee))}if(comparator){includes=arrayIncludesWith;isCommon=false}else if(values.length>=LARGE_ARRAY_SIZE){includes=cacheHas;isCommon=false;values=new SetCache(values)}outer:while(++index<length){var value=array[index],computed=iteratee==null?value:iteratee(value);value=comparator||value!==0?value:0;if(isCommon&&computed===computed){var valuesIndex=valuesLength;while(valuesIndex--){if(values[valuesIndex]===computed){continue outer}}result.push(value)}else if(!includes(values,computed,comparator)){result.push(value)}}return result}module.exports=baseDifference},function(module,exports,__webpack_require__){var baseIndexOf=__webpack_require__(294);function arrayIncludes(array,value){var length=array==null?0:array.length;return!!length&&baseIndexOf(array,value,0)>-1}module.exports=arrayIncludes},function(module,exports,__webpack_require__){var baseFindIndex=__webpack_require__(295),baseIsNaN=__webpack_require__(296),strictIndexOf=__webpack_require__(297);function baseIndexOf(array,value,fromIndex){return value===value?strictIndexOf(array,value,fromIndex):baseFindIndex(array,baseIsNaN,fromIndex)}module.exports=baseIndexOf},function(module,exports){function baseFindIndex(array,predicate,fromIndex,fromRight){var length=array.length,index=fromIndex+(fromRight?1:-1);while(fromRight?index--:++index<length){if(predicate(array[index],index,array)){return index}}return-1}module.exports=baseFindIndex},function(module,exports){function baseIsNaN(value){return value!==value}module.exports=baseIsNaN},function(module,exports){function strictIndexOf(array,value,fromIndex){var index=fromIndex-1,length=array.length;while(++index<length){if(array[index]===value){return index}}return-1}module.exports=strictIndexOf},function(module,exports){function arrayIncludesWith(array,value,comparator){var index=-1,length=array==null?0:array.length;while(++index<length){if(comparator(value,array[index])){return true}}return false}module.exports=arrayIncludesWith},function(module,exports,__webpack_require__){var arrayPush=__webpack_require__(77),isFlattenable=__webpack_require__(300);function baseFlatten(array,depth,predicate,isStrict,result){var index=-1,length=array.length;predicate||(predicate=isFlattenable);result||(result=[]);while(++index<length){var value=array[index];if(depth>0&&predicate(value)){if(depth>1){baseFlatten(value,depth-1,predicate,isStrict,result)}else{arrayPush(result,value)}}else if(!isStrict){result[result.length]=value}}return result}module.exports=baseFlatten},function(module,exports,__webpack_require__){var Symbol=__webpack_require__(34),isArguments=__webpack_require__(54),isArray=__webpack_require__(17);var spreadableSymbol=Symbol?Symbol.isConcatSpreadable:undefined;function isFlattenable(value){return isArray(value)||isArguments(value)||!!(spreadableSymbol&&value&&value[spreadableSymbol])}module.exports=isFlattenable},function(module,exports,__webpack_require__){var identity=__webpack_require__(57),overRest=__webpack_require__(302),setToString=__webpack_require__(304);function baseRest(func,start){return setToString(overRest(func,start,identity),func+"")}module.exports=baseRest},function(module,exports,__webpack_require__){var apply=__webpack_require__(303);var nativeMax=Math.max;function overRest(func,start,transform){start=nativeMax(start===undefined?func.length-1:start,0);return function(){var args=arguments,index=-1,length=nativeMax(args.length-start,0),array=Array(length);while(++index<length){array[index]=args[start+index]}index=-1;var otherArgs=Array(start+1);while(++index<start){otherArgs[index]=args[index]}otherArgs[start]=transform(array);return apply(func,this,otherArgs)}}module.exports=overRest},function(module,exports){function apply(func,thisArg,args){switch(args.length){case 0:return func.call(thisArg);case 1:return func.call(thisArg,args[0]);case 2:return func.call(thisArg,args[0],args[1]);case 3:return func.call(thisArg,args[0],args[1],args[2])}return func.apply(thisArg,args)}module.exports=apply},function(module,exports,__webpack_require__){var baseSetToString=__webpack_require__(305),shortOut=__webpack_require__(308);var setToString=shortOut(baseSetToString);module.exports=setToString},function(module,exports,__webpack_require__){var constant=__webpack_require__(306),defineProperty=__webpack_require__(307),identity=__webpack_require__(57);var baseSetToString=!defineProperty?identity:function(func,string){return defineProperty(func,"toString",{configurable:true,enumerable:false,value:constant(string),writable:true})};module.exports=baseSetToString},function(module,exports){function constant(value){return function(){return value}}module.exports=constant},function(module,exports,__webpack_require__){var getNative=__webpack_require__(26);var defineProperty=function(){try{var func=getNative(Object,"defineProperty");func({},"",{});return func}catch(e){}}();module.exports=defineProperty},function(module,exports){var HOT_COUNT=800,HOT_SPAN=16;var nativeNow=Date.now;function shortOut(func){var count=0,lastCalled=0;return function(){var stamp=nativeNow(),remaining=HOT_SPAN-(stamp-lastCalled);lastCalled=stamp;if(remaining>0){if(++count>=HOT_COUNT){return arguments[0]}}else{count=0}return func.apply(undefined,arguments)}}module.exports=shortOut},function(module,exports,__webpack_require__){var isArrayLike=__webpack_require__(41),isObjectLike=__webpack_require__(27);function isArrayLikeObject(value){return isObjectLike(value)&&isArrayLike(value)}module.exports=isArrayLikeObject}
14,function(module,exports){function last(array){var length=array==null?0:array.length;return length?array[length-1]:undefined}module.exports=last},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,"plugin",(function(){return public_plugin_0}));__webpack_require__.d(__webpack_exports__,"DataSourceManagementPluginStart",(function(){return types["DataSourceManagementPluginStart"]}));__webpack_require__.d(__webpack_exports__,"DirectQueryDatasourceDetails",(function(){return types["DirectQueryDatasourceDetails"]}));__webpack_require__.d(__webpack_exports__,"DataSourceSelector",(function(){return data_source_selector["b"]}));__webpack_require__.d(__webpack_exports__,"DataSourceOption",(function(){return data_source_selector["DataSourceOption"]}));__webpack_require__.d(__webpack_exports__,"DataSourceMenu",(function(){return data_source_menu["c"]}));__webpack_require__.d(__webpack_exports__,"DataSourceManagementPlugin",(function(){return public_plugin["b"]}));__webpack_require__.d(__webpack_exports__,"DataSourceManagementPluginSetup",(function(){return public_plugin["DataSourceManagementPluginSetup"]}));__webpack_require__.d(__webpack_exports__,"DataSourceSelectableConfig",(function(){return data_source_menu["f"]}));__webpack_require__.d(__webpack_exports__,"DataSourceComponentType",(function(){return data_source_menu["b"]}));__webpack_require__.d(__webpack_exports__,"DataSourceAggregatedViewConfig",(function(){return data_source_menu["a"]}));__webpack_require__.d(__webpack_exports__,"DataSourceViewConfig",(function(){return data_source_menu["g"]}));__webpack_require__.d(__webpack_exports__,"DataSourceMenuProps",(function(){return data_source_menu["d"]}));__webpack_require__.d(__webpack_exports__,"DataSourceMultiSelectableConfig",(function(){return data_source_menu["e"]}));__webpack_require__.d(__webpack_exports__,"createDataSourceMenu",(function(){return data_source_menu["h"]}));__webpack_require__.d(__webpack_exports__,"DataSourceSelectionService",(function(){return data_source_selection_service["a"]}));__webpack_require__.d(__webpack_exports__,"getDefaultDataSourceId",(function(){return utils["getDefaultDataSourceId"]}));__webpack_require__.d(__webpack_exports__,"getDefaultDataSourceId$",(function(){return utils["getDefaultDataSourceId$"]}));__webpack_require__.d(__webpack_exports__,"DATACONNECTIONS_BASE",(function(){return constants["b"]}));__webpack_require__.d(__webpack_exports__,"DatasourceTypeToDisplayName",(function(){return constants["d"]}));var public_plugin=__webpack_require__(18);var types=__webpack_require__(13);var data_source_selector=__webpack_require__(25);var data_source_menu=__webpack_require__(19);var data_source_selection_service=__webpack_require__(29);var utils=__webpack_require__(4);var constants=__webpack_require__(21);function public_plugin_0(){return new public_plugin["b"]}},function(module,exports){module.exports=__osdSharedDeps__.TsLib},function(module,exports){module.exports=__osdSharedDeps__.OsdI18nReact},function(module,exports){module.exports=__osdSharedDeps__.ReactRouterDom},function(module,exports){module.exports=__osdSharedDeps__.ReactDom},function(module,__webpack_exports__,__webpack_require__){__webpack_require__.r(__webpack_exports__);var ns=__osdBundles__.get("plugin/dataSource/common");Object.defineProperties(__webpack_exports__,Object.getOwnPropertyDescriptors(ns))},function(module,exports){module.exports=__osdSharedDeps__.Lodash},function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",(function(){return deepFreeze}));function deepFreeze(object){for(const value of Object.values(object)){if(value!==null&&typeof value==="object"){deepFreeze(value)}}return Object.freeze(object)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.