@appbaseio/reactivesearch-vue 1.16.0-alpha.52 → 1.16.0-alpha.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";"default"in t&&t.default;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e){return e&&e.default||e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error(l(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var y=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(l(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=m.apply(void 0,i)(n.dispatch),u(u({},n),{},{dispatch:r})}}},bindActionCreators:g,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(l(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(l(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var u=a[s],c=n[u],d=e[u],p=c(d,t);if(void 0===p){t&&t.type;throw new Error(l(14))}o[u]=p,r=r||p!==d}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:m,createStore:function e(t,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error(l(1));return r(e)(t,n)}if("function"!=typeof t)throw new Error(l(2));var i=t,a=n,s=[],u=s,d=!1;function f(){u===s&&(u=s.slice())}function g(){if(d)throw new Error(l(3));return a}function m(e){if("function"!=typeof e)throw new Error(l(4));if(d)throw new Error(l(5));var t=!0;return f(),u.push(e),function(){if(t){if(d)throw new Error(l(6));t=!1,f();var n=u.indexOf(e);u.splice(n,1),s=null}}}function y(e){if(!h(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if(d)throw new Error(l(9));try{d=!0,a=i(a,e)}finally{d=!1}for(var t=s=u,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(l(10));i=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(l(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e}return y({type:p.INIT}),(o={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[c]=b,o}});function v(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var b=v();b.withExtraArgument=v;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR"}));r(C);C.ADD_COMPONENT,C.REMOVE_COMPONENT,C.WATCH_COMPONENT,C.SET_QUERY,C.SET_QUERY_OPTIONS,C.EXECUTE_QUERY,C.UPDATE_HITS,C.UPDATE_AGGS;var O=C.UPDATE_COMPOSITE_AGGS,_=(C.ADD_CONFIG,C.ADD_APPBASE_REF,C.LOG_QUERY,C.LOG_COMBINED_QUERY,C.SET_INTERNAL_VALUE,C.PATCH_VALUE,C.CLEAR_VALUES,C.SET_LOADING,C.SET_ERROR,C.SET_TIMESTAMP,C.SET_HEADERS,C.SET_MAP_DATA,C.SET_QUERY_LISTENER,C.STORE_KEY,C.SET_SEARCH_ID,C.SET_PROMOTED_RESULTS,C.SET_DEFAULT_QUERY,C.SET_CUSTOM_QUERY,C.SET_CUSTOM_HIGHLIGHT_OPTIONS,C.SET_CUSTOM_DATA,C.SET_APPLIED_SETTINGS,C.SET_PROPS,C.UPDATE_PROPS,C.REMOVE_PROPS,C.SET_SUGGESTIONS_SEARCH_VALUE,C.CLEAR_SUGGESTIONS_SEARCH_VALUE,C.SET_SUGGESTIONS_SEARCH_ID,C.UPDATE_ANALYTICS_CONFIG,C.SET_RAW_DATA,C.SET_POPULAR_SUGGESTIONS,C.SET_DEFAULT_POPULAR_SUGGESTIONS,C.SET_QUERY_TO_HITS,C.RECENT_SEARCHES_SUCCESS,C.RECENT_SEARCHES_ERROR,C.SET_VALUE,C.RESET_TO_DEFAULT,C.SET_GOOGLE_MAP_SCRIPT_LOADING,C.SET_GOOGLE_MAP_SCRIPT_LOADED,C.SET_GOOGLE_MAP_SCRIPT_ERROR,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===C.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===C.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(_);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r(w);var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),P=r(S),$=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),k=r($),I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(I),A=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SUGGESTION",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"}}));r(A);var T=A.componentTypes,R=(A.queryTypes,A.validProps),x=(A.CLEAR_ALL,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[A.componentTypes.numberBox,A.componentTypes.tagCloud,A.componentTypes.toggleButton,A.componentTypes.datePicker,A.componentTypes.dateRange,A.componentTypes.multiDataList,A.componentTypes.multiDropdownList,A.componentTypes.multiList,A.componentTypes.singleDataList,A.componentTypes.singleDropdownList,A.componentTypes.singleList,A.componentTypes.dynamicRangeSlider,A.componentTypes.multiDropdownRange,A.componentTypes.multiRange,A.componentTypes.rangeSlider,A.componentTypes.ratingsFilter,A.componentTypes.singleDropdownRange,A.componentTypes.singleRange],o=[A.componentTypes.dateRange,A.componentTypes.dynamicRangeSlider,A.componentTypes.rangeSlider,A.componentTypes.rangeInput,A.componentTypes.ratingsFilter],i=[A.componentTypes.singleRange,A.componentTypes.singleDropdownRange,A.componentTypes.multiRange,A.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}})));r(x);x.parseCustomEvents,x.parseRangeObject,x.parseFilterValue,x.rangeObjectComponents,x.rangeComponents,x.filterComponents,x.defaultAnalyticsConfig;var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:x.defaultAnalyticsConfig},t=arguments[1];if(t.type===C.ADD_CONFIG)return n({},e,{analyticsConfig:n({},x.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});return e}}));r(L);var M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(M);var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(j);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(V);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_VALUE:var i={};return Object.keys(t.componentsToReset).forEach((function(r){i[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,i,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case C.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case C.CLEAR_VALUES:var a={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){a[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(a[n]=e[n])})),a;case C.REMOVE_COMPONENT:e[t.component];var s=r(e,[t.component]);return s;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),F=r(D),N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case C.CLEAR_VALUES:var i={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){i[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(i[n]=e[n])})),i;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case C.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===C.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(U);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(q);var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(z);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_HEADERS)return t.headers;return e}}));r(B);var H=o((function(e,t){function n(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_MAP_DATA)return r({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery});if(t.type===C.REMOVE_COMPONENT){e[t.component];var o=n(e,[t.component]);return o}return e}}));r(H);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case C.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case C.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case C.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case C.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case C.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[A.componentTypes.dataSearch,A.componentTypes.categorySearch]}));r(W);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Z);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Y);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_PROPS:return n({},e,o({},t.component,t.options));case C.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case C.REMOVE_PROPS:case C.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===C.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(ee);var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),ne=r(te),re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(oe);var ie=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ie);var ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===C.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,i=t.loading,a=t.loaded,s=t.error;if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:i});if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===C.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:s});return e};var r={loading:!1,loaded:!1,error:null}}));r(ce);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ye(_),r=ye(w),o=ye(S),i=ye($),a=ye(I),s=ye(L),u=ye(M),l=ye(j),c=ye(Q),d=ye(V),p=ye(D),h=ye(N),f=ye(U),g=ye(q),m=ye(z),v=ye(B),b=ye(H),C=ye(G),O=ye(W),P=ye(Z),k=ye(K),E=ye(Y),A=ye(X),T=ye(J),R=ye(ee),x=ye(te),F=ye(re),ne=ye(oe),de=ye(ie),pe=ye(ae),he=ye(se),fe=ye(ue),ge=ye(le),me=ye(ce);function ye(e){return e&&e.__esModule?e:{default:e}}t.default=(0,y.combineReducers)({components:n.default,customQueries:A.default,defaultQueries:E.default,customHighlightOptions:ne.default,settings:F.default,watchMan:r.default,queryList:i.default,queryOptions:a.default,dependencyTree:o.default,appbaseRef:u.default,config:s.default,hits:l.default,promotedResults:P.default,customData:k.default,aggregations:R.default,compositeAggregations:x.default,queryLog:c.default,combinedLog:d.default,selectedValues:p.default,internalValues:h.default,isLoading:f.default,error:g.default,timestamp:m.default,headers:v.default,mapData:b.default,queryListener:C.default,analytics:O.default,props:T.default,rawData:de.default,querySuggestions:pe.default,defaultPopularSuggestions:he.default,queryToHits:fe.default,recentSearches:ge.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:me.default})}));r(de);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(pe);var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(he);var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=he)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,d="^("+u(s)+")\\w+",p=new RegExp(d,"i"),h=p.exec(c);if(h||(d="^("+u(s)+")",h=(p=new RegExp(d,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,d=e.showDistinctSuggestions,p=void 0!==d&&d,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],C=!1,O=function(e,t,r){if((C||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),p)return!0}return!1},_=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return O(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var d=a(s);if(d)return O(d,t,r)}}return!1}(e,t)}))}))};if(_(),v.length<r.length&&!C&&y&&(C=!0,_()),f){var w=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=w}if(p){var S={},P=[];return v.forEach((function(e){e.source&&e.source._id&&(S[e.source._id]||(P.push(e),S[e.source._id]=!0))})),P}return v}}));r(fe);var ge=fe.replaceDiacritics,me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.compareQueries=function(e,t){try{return c(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=p(d(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));i&&Object.keys(i).length&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=p(d(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&Object.keys(u).length&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a&&a.length})},t.extractFieldsFromSource=O,t.normalizeDataField=_,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=_(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=O(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var d=c.map((function(e){return e._id})).filter(Boolean);d&&(l=l.filter((function(e){return!d.includes(e._id)}))),l=[].concat(s(c),s(l))}var p=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return p.map((function(e){return r(e)}));return p},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)};var r=i(pe),o=i(fe);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function d(e){return"and"===e?"must":"or"===e?"should":"must_not"}function p(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_key:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=y;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=a(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function v(e,t,r){Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,d=e.error,p=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(d,"error"),y(p,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,p)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=void 0;if(s){var d=s(r,o);c=(d||{}).query,u=y(d),l(e,o,r)}o.setQueryOptions(e,n({},u,t||i)),c&&o.updateQuery(n({componentId:e,query:c,value:r},a))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,d=r,p=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||p,v="count"===f?{}:{order:f};return d.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),d.size=0,o.nestedField&&(d.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:d.aggs}}),n({},d,b(o,c))};var C=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function O(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return C(i)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function"};var w=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},S=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(w),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(w)[o]<=100){var i=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+i+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:i}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return S(n)?n(e):S(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return S(n)||S(t)}}));r(me);me.hasCustomRenderer,me.getComponent,me.isFunction,me.getCalendarIntervalErrorMessage,me.queryFormatMillisecondsMap,me.featuredSuggestionsActionTypes;var ye=me.suggestionTypes,ve=(me.getTopSuggestions,me.withClickIds),be=(me.getCompositeAggsQuery,me.getAggsQuery,me.extractQueryFromDefaultQuery,me.updateInternalQuery,me.getSearchState,me.extractQueryFromCustomQuery),Ce=me.getOptionsForCustomQuery,Oe=(me.getOptionsFromQuery,me.parseHits,me.handleA11yAction,me.getInnerKey,me.getClassName,me.checkSomePropChange,me.checkPropChange,me.updateDefaultQuery,me.updateCustomQuery,me.isEqual),_e=(me.compareQueries,me.debounce,me.getQueryOptions),we=me.buildQuery,Se=me.pushToAndClause,Pe=(me.checkValueChange,me.getAggsOrder,me.formatDate,me.getResultStats,me.extractFieldsFromSource,me.normalizeDataField,me.handleOnSuggestions,me.isValidDateRangeQueryFormat,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,i,a,s,u,l){return function(c,d){var p=d(),h=p.urlValues,f=p.selectedValues,g=p.watchMan,m=p.props,y=l;(0,me.isEqual)(h[e],t)&&(y="URL");var v={},b=[A.componentTypes.reactiveList,A.componentTypes.reactiveMap].includes(m[e].componentType),O=f[e]&&f[e].value;if(!(0,me.isEqual)(O,t)&&m[e]&&!b){var _=[e],w=g[e]||[];(_=[].concat(r(_),r(w))).forEach((function(e){var t=m[e];"URL"!==y&&t&&[A.componentTypes.reactiveList,A.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!O||O<2)||c({type:C.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:i,componentType:a,category:s,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),i=o.selectedValues,a=o.props,s={},u=void 0;Object.keys(i).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[A.componentTypes.rangeSlider,A.componentTypes.rangeInput,A.componentTypes.ratingsFilter,A.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[A.componentTypes.multiDropdownList,A.componentTypes.multiDataList,A.componentTypes.multiList,A.componentTypes.singleDataList,A.componentTypes.singleDropdownList,A.componentTypes.singleList,A.componentTypes.tagCloud,A.componentTypes.toggleButton,A.componentTypes.multiDropdownRange,A.componentTypes.multiRange,A.componentTypes.singleDropdownRange,A.componentTypes.singleRange,A.componentTypes.dataSearch,A.componentTypes.datePicker].includes(a[t].componentType)?u=a[t].defaultValue:[A.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,me.isEqual)(i[t].value,u)||(s=n({},s,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},i[t],{value:u})))))})),t({type:C.RESET_TO_DEFAULT,defaultValues:s})}},t.setInternalValue=function(e,t,n,r,o){return{type:C.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:C.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:C.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}}})));r(Pe);Pe.setValue,Pe.resetValuesToDefault,Pe.setInternalValue,Pe.patchValue,Pe.clearValues;var $e=o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:C.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:C.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}}));r($e);$e.updateAggs,$e.updateCompositeAggs,$e.updateHits,$e.saveQueryToHits,$e.mockDataForTesting;var ke=o((function(e,t){function n(e,t){return{type:C.SET_RAW_DATA,component:e,response:t}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_PROMOTED_RESULTS,results:e,component:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_CUSTOM_DATA,data:e,component:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=n,t.setLoading=function(e,t){return{type:C.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:C.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:C.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:C.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:C.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:C.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:C.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:C.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:C.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:C.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:C.SET_HEADERS,headers:e}},t.setPromotedResults=r,t.setPopularSuggestions=o,t.setDefaultPopularSuggestions=i,t.setCustomData=a,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:C.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(n(e,null)),t(a(null,e)),t(r([],e)),t(o([],e)),t(i([],e)),t((0,$e.updateAggs)(e,null)),t((0,$e.updateCompositeAggs)(e,{})),t((0,$e.updateHits)(e,{hits:[],total:0},0))}}}));r(ke);ke.setRawData,ke.setLoading,ke.setError,ke.setTimestamp,ke.setSearchId,ke.setSuggestionsSearchId,ke.setQuery,ke.setCustomQuery,ke.setDefaultQuery,ke.setCustomHighlightOptions,ke.updateQueryOptions,ke.logQuery,ke.logCombinedQuery,ke.setHeaders,ke.setPromotedResults,ke.setPopularSuggestions,ke.setDefaultPopularSuggestions,ke.setCustomData,ke.setAppliedSettings,ke.setQueryListener,ke.setGoogleMapScriptLoading,ke.setGoogleMapScriptLoaded,ke.setGoogleMapScriptError,ke.resetStoreForComponent;var Ie=o((function(e){
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=e||self).ReactiveSearchVue={},e.Vue)}(this,(function(e,t){"use strict";"default"in t&&t.default;var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o(e,t){return e(t={exports:{}},t.exports),t.exports}function i(e){return e&&e.default||e}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var c="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},p={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function h(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f(e,t){return function(){return t(e.apply(this,arguments))}}function g(e,t){if("function"==typeof e)return f(e,t);if("object"!=typeof e||null===e)throw new Error(l(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=f(o,t))}return n}function m(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var y=Object.freeze({__proto__:null,__DO_NOT_USE__ActionTypes:p,applyMiddleware:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(l(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=m.apply(void 0,i)(n.dispatch),u(u({},n),{},{dispatch:r})}}},bindActionCreators:g,combineReducers:function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++){var o=t[r];"function"==typeof e[o]&&(n[o]=e[o])}var i,a=Object.keys(n);try{!function(e){Object.keys(e).forEach((function(t){var n=e[t];if(void 0===n(void 0,{type:p.INIT}))throw new Error(l(12));if(void 0===n(void 0,{type:p.PROBE_UNKNOWN_ACTION()}))throw new Error(l(13))}))}(n)}catch(e){i=e}return function(e,t){if(void 0===e&&(e={}),i)throw i;for(var r=!1,o={},s=0;s<a.length;s++){var u=a[s],c=n[u],d=e[u],p=c(d,t);if(void 0===p){t&&t.type;throw new Error(l(14))}o[u]=p,r=r||p!==d}return(r=r||a.length!==Object.keys(e).length)?o:e}},compose:m,createStore:function e(t,n,r){var o;if("function"==typeof n&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error(l(1));return r(e)(t,n)}if("function"!=typeof t)throw new Error(l(2));var i=t,a=n,s=[],u=s,d=!1;function f(){u===s&&(u=s.slice())}function g(){if(d)throw new Error(l(3));return a}function m(e){if("function"!=typeof e)throw new Error(l(4));if(d)throw new Error(l(5));var t=!0;return f(),u.push(e),function(){if(t){if(d)throw new Error(l(6));t=!1,f();var n=u.indexOf(e);u.splice(n,1),s=null}}}function y(e){if(!h(e))throw new Error(l(7));if(void 0===e.type)throw new Error(l(8));if(d)throw new Error(l(9));try{d=!0,a=i(a,e)}finally{d=!1}for(var t=s=u,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(l(10));i=e,y({type:p.REPLACE})}function b(){var e,t=m;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(l(11));function n(){e.next&&e.next(g())}return n(),{unsubscribe:t(n)}}})[c]=function(){return this},e}return y({type:p.INIT}),(o={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[c]=b,o}});function v(e){return function(t){var n=t.dispatch,r=t.getState;return function(t){return function(o){return"function"==typeof o?o(n,r,e):t(o)}}}}var b=v();b.withExtraArgument=v;var C=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.ADD_COMPONENT="ADD_COMPONENT",t.REMOVE_COMPONENT="REMOVE_COMPONENT",t.WATCH_COMPONENT="WATCH_COMPONENT",t.SET_QUERY="SET_QUERY",t.SET_QUERY_OPTIONS="SET_QUERY_OPTIONS",t.EXECUTE_QUERY="EXECUTE_QUERY",t.UPDATE_HITS="UPDATE_HITS",t.UPDATE_AGGS="UPDATE_AGGS",t.UPDATE_COMPOSITE_AGGS="UPDATE_COMPOSITE_AGGS",t.ADD_CONFIG="ADD_CONFIG",t.ADD_APPBASE_REF="ADD_APPBASE_REF",t.LOG_QUERY="LOG_QUERY",t.LOG_COMBINED_QUERY="LOG_COMBINED_QUERY",t.SET_INTERNAL_VALUE="SET_INTERNAL_VALUE",t.PATCH_VALUE="PATCH_VALUE",t.CLEAR_VALUES="CLEAR_VALUES",t.SET_LOADING="SET_LOADING",t.SET_ERROR="SET_ERROR",t.SET_TIMESTAMP="SET_TIMESTAMP",t.SET_HEADERS="SET_HEADERS",t.SET_MAP_DATA="SET_MAP_DATA",t.SET_QUERY_LISTENER="SET_QUERY_LISTENER",t.STORE_KEY="__REACTIVESEARCH__",t.SET_SEARCH_ID="SET_SEARCH_ID",t.SET_PROMOTED_RESULTS="SET_PROMOTED_RESULTS",t.SET_DEFAULT_QUERY="SET_DEFAULT_QUERY",t.SET_CUSTOM_QUERY="SET_CUSTOM_QUERY",t.SET_CUSTOM_HIGHLIGHT_OPTIONS="SET_CUSTOM_HIGHLIGHT_OPTIONS",t.SET_CUSTOM_DATA="SET_CUSTOM_DATA",t.SET_APPLIED_SETTINGS="SET_APPLIED_SETTINGS",t.SET_PROPS="SET_PROPS",t.UPDATE_PROPS="UPDATE_PROPS",t.REMOVE_PROPS="REMOVE_PROPS",t.SET_SUGGESTIONS_SEARCH_VALUE="SET_SUGGESTIONS_SEARCH_VALUE",t.CLEAR_SUGGESTIONS_SEARCH_VALUE="CLEAR_SUGGESTIONS_SEARCH_VALUE",t.SET_SUGGESTIONS_SEARCH_ID="SET_SUGGESTIONS_SEARCH_ID",t.UPDATE_ANALYTICS_CONFIG="UPDATE_ANALYTICS_CONFIG",t.SET_RAW_DATA="SET_RAW_DATA",t.SET_POPULAR_SUGGESTIONS="SET_POPULAR_SUGGESTIONS",t.SET_DEFAULT_POPULAR_SUGGESTIONS="SET_DEFAULT_POPULAR_SUGGESTIONS",t.SET_QUERY_TO_HITS="SET_QUERY_TO_HITS",t.RECENT_SEARCHES_SUCCESS="RECENT_SEARCHES_SUCCESS",t.RECENT_SEARCHES_ERROR="RECENT_SEARCHES_ERROR",t.SET_VALUE="SET_VALUE",t.RESET_TO_DEFAULT="RESET_TO_DEFAULT",t.SET_GOOGLE_MAP_SCRIPT_LOADING="SET_GOOGLE_MAP_SCRIPT_LOADING",t.SET_GOOGLE_MAP_SCRIPT_LOADED="SET_GOOGLE_MAP_SCRIPT_LOADED",t.SET_GOOGLE_MAP_SCRIPT_ERROR="SET_GOOGLE_MAP_SCRIPT_ERROR"}));r(C);C.ADD_COMPONENT,C.REMOVE_COMPONENT,C.WATCH_COMPONENT,C.SET_QUERY,C.SET_QUERY_OPTIONS,C.EXECUTE_QUERY,C.UPDATE_HITS,C.UPDATE_AGGS;var O=C.UPDATE_COMPOSITE_AGGS,_=(C.ADD_CONFIG,C.ADD_APPBASE_REF,C.LOG_QUERY,C.LOG_COMBINED_QUERY,C.SET_INTERNAL_VALUE,C.PATCH_VALUE,C.CLEAR_VALUES,C.SET_LOADING,C.SET_ERROR,C.SET_TIMESTAMP,C.SET_HEADERS,C.SET_MAP_DATA,C.SET_QUERY_LISTENER,C.STORE_KEY,C.SET_SEARCH_ID,C.SET_PROMOTED_RESULTS,C.SET_DEFAULT_QUERY,C.SET_CUSTOM_QUERY,C.SET_CUSTOM_HIGHLIGHT_OPTIONS,C.SET_CUSTOM_DATA,C.SET_APPLIED_SETTINGS,C.SET_PROPS,C.UPDATE_PROPS,C.REMOVE_PROPS,C.SET_SUGGESTIONS_SEARCH_VALUE,C.CLEAR_SUGGESTIONS_SEARCH_VALUE,C.SET_SUGGESTIONS_SEARCH_ID,C.UPDATE_ANALYTICS_CONFIG,C.SET_RAW_DATA,C.SET_POPULAR_SUGGESTIONS,C.SET_DEFAULT_POPULAR_SUGGESTIONS,C.SET_QUERY_TO_HITS,C.RECENT_SEARCHES_SUCCESS,C.RECENT_SEARCHES_ERROR,C.SET_VALUE,C.RESET_TO_DEFAULT,C.SET_GOOGLE_MAP_SCRIPT_LOADING,C.SET_GOOGLE_MAP_SCRIPT_LOADED,C.SET_GOOGLE_MAP_SCRIPT_ERROR,o((function(e,t){function n(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];if(t.type===C.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===C.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(_);var w=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e){var t=Object.values(e),n=[];return t.forEach((function(e){"string"==typeof e?n.push(e):Array.isArray(e)?e.forEach((function(e){"string"==typeof e?n.push(e):n.push.apply(n,r(o(e)))})):"object"==typeof e&&null!==e&&n.push.apply(n,r(o(e)))})),n.filter((function(e,t,n){return n.indexOf(e)===t}))}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT){var i=o(t.react),a=n({},e);return Object.keys(a).forEach((function(e){a[e]=a[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(a[e])?a[e]=[].concat(r(a[e]),[t.component]):a[e]=[t.component]})),a}return e}}));r(w);var S=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),P=r(S),$=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),k=r($),I=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),E=r(I),A=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SUGGESTION",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",numberBox:"NUMBERBOX",tagCloud:"TAGCLOUD",toggleButton:"TOGGLEBUTTON",reactiveComponent:"REACTIVECOMPONENT",datePicker:"DATEPICKER",dateRange:"DATERANGE",dynamicRangeSlider:"DYNAMICRANGESLIDER",multiDropdownRange:"MULTIDROPDOWNRANGE",singleRange:"SINGLERANGE",multiRange:"MULTIRANGE",rangeSlider:"RANGESLIDER",ratingsFilter:"RATINGSFILTER",rangeInput:"RANGEINPUT",geoDistanceDropdown:"GEO_DISTANCE_DROPDOWN",geoDistanceSlider:"GEO_DISTANCE_SLIDER",reactiveMap:"REACTIVE_MAP"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","dataField","includeFields","excludeFields","size","from","sortBy","sortOptions","pagination","autoFocus","autosuggest","debounce","defaultValue","defaultSuggestions","fieldWeights","filterLabel","fuzziness","highlight","highlightField","nestedField","placeholder","queryFormat","searchOperators","enableSynonyms","enableQuerySuggestions","enablePopularSuggestions","queryString","categoryField","strictSelection","selectAllLabel","showCheckbox","showFilter","showSearch","showCount","showLoadMore","loadMoreLabel","showMissing","missingLabel","data","showRadio","multiSelect","includeNullValues","interval","showHistogram","snap","stepValue","range","showSlider","parseDate","calendarInterval","unit","enablePopularSuggestions","enableRecentSuggestions","popularSuggestionsConfig","recentSuggestionsConfig","indexSuggestionsConfig","featuredSuggestionsConfig","enablePredictiveSuggestions","applyStopwords","customStopwords","enableIndexSuggestions","enableFeaturedSuggestions"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"}}));r(A);var T=A.componentTypes,R=(A.queryTypes,A.validProps),x=(A.CLEAR_ALL,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomEvents=t.parseRangeObject=t.parseFilterValue=t.rangeObjectComponents=t.rangeComponents=t.filterComponents=t.defaultAnalyticsConfig=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(("function"==typeof Symbol?Symbol.iterator:"@@iterator")in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[A.componentTypes.numberBox,A.componentTypes.tagCloud,A.componentTypes.toggleButton,A.componentTypes.datePicker,A.componentTypes.dateRange,A.componentTypes.multiDataList,A.componentTypes.multiDropdownList,A.componentTypes.multiList,A.componentTypes.singleDataList,A.componentTypes.singleDropdownList,A.componentTypes.singleList,A.componentTypes.dynamicRangeSlider,A.componentTypes.multiDropdownRange,A.componentTypes.multiRange,A.componentTypes.rangeSlider,A.componentTypes.ratingsFilter,A.componentTypes.singleDropdownRange,A.componentTypes.singleRange],o=[A.componentTypes.dateRange,A.componentTypes.dynamicRangeSlider,A.componentTypes.rangeSlider,A.componentTypes.rangeInput,A.componentTypes.ratingsFilter],i=[A.componentTypes.singleRange,A.componentTypes.singleDropdownRange,A.componentTypes.multiRange,A.componentTypes.multiDropdownRange];function a(e,t){return e+"="+t.start+"~"+t.end}function s(e,t){var n=t.label,r=t.value,s=t.componentType,u=n||e;return o.includes(s)?u+"="+r[0]+"~"+r[1]:i.includes(s)?Array.isArray(r)?r.map((function(e){return a(u,e)})).join():a(u,r):Array.isArray(r)?"object"==typeof r[0]&&null!==r[0]?r.map((function(e){return u+"="+e.value})).join():r.map((function(e){return u+"="+e})).join():u+"="+r}t.defaultAnalyticsConfig={emptyQuery:!0,suggestionAnalytics:!0,userId:null,customEvents:null,enableQueryRules:!0};t.filterComponents=r,t.rangeComponents=o,t.rangeObjectComponents=i,t.parseFilterValue=s,t.parseRangeObject=a,t.parseCustomEvents=function(e){var t="";return Object.keys(e).forEach((function(n,r){t+=n+"="+e[n],r<Object.keys(e).length-1&&(t+=",")})),t},t.default=function(e){return e&&Object.keys(e).length?Object.entries(e).filter((function(e){var t=n(e,2)[1];return r.includes(t.componentType)&&(t.value&&t.value.length||t.value&&t.value.start||t.value&&t.value.end)})).map((function(e){var t=n(e,2);return s(t[0],t[1])})).join():null}})));r(x);x.parseCustomEvents,x.parseRangeObject,x.parseFilterValue,x.rangeObjectComponents,x.rangeComponents,x.filterComponents,x.defaultAnalyticsConfig;var L=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:x.defaultAnalyticsConfig},t=arguments[1];if(t.type===C.ADD_CONFIG)return n({},e,{analyticsConfig:n({},x.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===C.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});return e}}));r(L);var M=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(M);var j=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_HITS)return t.append?n({},e,o({},t.component,{hits:[].concat(i(e[t.component].hits),i(t.hits)),total:t.total,time:t.time,hidden:t.hidden||0})):n({},e,o({},t.component,{hits:t.hits,total:t.total,time:t.time,hidden:t.hidden||0}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var a=r(e,[t.component]);return a}return e}}));r(j);var Q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Q);var V=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(V);var D=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_VALUE:var i={};return Object.keys(t.componentsToReset||{}).forEach((function(r){i[r]=n({},e[r],{value:t.componentsToReset[r]})})),n({},e,i,o({},t.component,{value:t.value,label:t.label||t.component,showFilter:t.showFilter,URLParams:t.URLParams,componentType:t.componentType,category:t.category,meta:t.meta,reference:t.reference}));case C.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case C.CLEAR_VALUES:var a={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){a[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(a[n]=e[n])})),a;case C.REMOVE_COMPONENT:e[t.component];var s=r(e,[t.component]);return s;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),F=r(D),N=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case C.CLEAR_VALUES:var i={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){i[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(i[n]=e[n])})),i;case C.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case C.REMOVE_COMPONENT:e[t.component];var a=r(e,[t.component]);return a;default:return e}}}));r(N);var U=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_LOADING){var i,a=e[t.component+"_active"]||0;return t.isLoading?a+=1:a&&(a-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",a),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===C.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(U);var q=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(q);var z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(z);var B=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_HEADERS)return t.headers;return e}}));r(B);var H=o((function(e,t){function n(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_MAP_DATA)return r({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery});if(t.type===C.REMOVE_COMPONENT){e[t.component];var o=n(e,[t.component]);return o}return e}}));r(H);var G=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(G);var W=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case C.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case C.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case C.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case C.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case C.CLEAR_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:null,suggestionsSearchId:null});default:return e}};var r={searchValue:null,searchId:null,suggestionsSearchId:null,suggestionsSearchValue:null},o=[A.componentTypes.dataSearch,A.componentTypes.categorySearch]}));r(W);var Z=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Z);var K=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);var Y=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Y);var X=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(X);var J=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];switch(t.type){case C.SET_PROPS:return n({},e,o({},t.component,t.options));case C.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case C.REMOVE_PROPS:case C.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(J);var ee=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_AGGS){if(t.append){var a=Object.keys(e[t.component])[0],s=t.aggregations[a],u=s.buckets,l=i(s,["buckets"]);return n({},e,r({},t.component,r({},a,n({buckets:[].concat(o(e[t.component][a].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===C.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(ee);var te=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function i(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.UPDATE_COMPOSITE_AGGS){var a=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],s=Object.keys(t.aggregations)[0];if(!a)return e;var u=[];a.buckets&&Array.isArray(a.buckets)&&(u=a.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[s],a={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,a=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[s],top_hits:o},a,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),ne=r(te),re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(re);var oe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(oe);var ie=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ie);var ae=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ae);var se=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(se);var ue=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===C.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ue);var le=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===C.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===C.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(le);var ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,i=t.loading,a=t.loaded,s=t.error;if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:i});if(o===C.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:a});if(o===C.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:s});return e};var r={loading:!1,loaded:!1,error:null}}));r(ce);var de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=ye(_),r=ye(w),o=ye(S),i=ye($),a=ye(I),s=ye(L),u=ye(M),l=ye(j),c=ye(Q),d=ye(V),p=ye(D),h=ye(N),f=ye(U),g=ye(q),m=ye(z),v=ye(B),b=ye(H),C=ye(G),O=ye(W),P=ye(Z),k=ye(K),E=ye(Y),A=ye(X),T=ye(J),R=ye(ee),x=ye(te),F=ye(re),ne=ye(oe),de=ye(ie),pe=ye(ae),he=ye(se),fe=ye(ue),ge=ye(le),me=ye(ce);function ye(e){return e&&e.__esModule?e:{default:e}}t.default=(0,y.combineReducers)({components:n.default,customQueries:A.default,defaultQueries:E.default,customHighlightOptions:ne.default,settings:F.default,watchMan:r.default,queryList:i.default,queryOptions:a.default,dependencyTree:o.default,appbaseRef:u.default,config:s.default,hits:l.default,promotedResults:P.default,customData:k.default,aggregations:R.default,compositeAggregations:x.default,queryLog:c.default,combinedLog:d.default,selectedValues:p.default,internalValues:h.default,isLoading:f.default,error:g.default,timestamp:m.default,headers:v.default,mapData:b.default,queryListener:C.default,analytics:O.default,props:T.default,rawData:de.default,querySuggestions:pe.default,defaultPopularSuggestions:he.default,queryToHits:fe.default,recentSearches:ge.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:me.default})}));r(de);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={date:"yyyy-MM-dd",basic_date:"yyyyMMdd",basic_date_time:"yyyyMMdd'T'HHmmss.fffzzz",basic_date_time_no_millis:"yyyyMMdd'T'HHmmsszzz",date_time_no_millis:"yyyy-MM-dd'T'HH:mm:sszzz",basic_time:"HHmmss.fffzzz",basic_time_no_millis:"HHmmsszzz",epoch_millis:"epoch_millis",epoch_second:"epoch_second"}}));r(pe);var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.default={"«":'"',"²":"2","³":"3","¹":"1","»":'"',"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"u","ý":"y","þ":"th","ÿ":"y","Ā":"A","ā":"a","Ă":"A","ă":"a","Ą":"A","ą":"a","Ć":"C","ć":"c","Ĉ":"C","ĉ":"c","Ċ":"C","ċ":"c","Č":"C","č":"c","Ď":"D","ď":"d","Đ":"D","đ":"d","Ē":"E","ē":"e","Ĕ":"E","ĕ":"e","Ė":"E","ė":"e","Ę":"E","ę":"e","Ě":"E","ě":"e","Ĝ":"G","ĝ":"g","Ğ":"G","ğ":"g","Ġ":"G","ġ":"g","Ģ":"G","ģ":"g","Ĥ":"H","ĥ":"h","Ħ":"H","ħ":"h","Ĩ":"I","ĩ":"i","Ī":"I","ī":"i","Ĭ":"I","ĭ":"i","Į":"I","į":"i","İ":"I","ı":"i","IJ":"IJ","ij":"ij","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"q","Ĺ":"L","ĺ":"l","Ļ":"L","ļ":"l","Ľ":"L","ľ":"l","Ŀ":"L","ŀ":"l","Ł":"L","ł":"l","Ń":"N","ń":"n","Ņ":"N","ņ":"n","Ň":"N","ň":"n","ʼn":"n","Ŋ":"N","ŋ":"n","Ō":"O","ō":"o","Ŏ":"O","ŏ":"o","Ő":"O","ő":"o","Œ":"OE","œ":"oe","Ŕ":"R","ŕ":"r","Ŗ":"R","ŗ":"r","Ř":"R","ř":"r","Ś":"S","ś":"s","Ŝ":"S","ŝ":"s","Ş":"S","ş":"s","Š":"S","š":"s","Ţ":"T","ţ":"t","Ť":"T","ť":"t","Ŧ":"T","ŧ":"t","Ũ":"U","ũ":"u","Ū":"U","ū":"u","Ŭ":"U","ŭ":"u","Ů":"U","ů":"u","Ű":"U","ű":"u","Ų":"U","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","ź":"z","Ż":"Z","ż":"z","Ž":"Z","ž":"z","ſ":"s","ƀ":"b","Ɓ":"B","Ƃ":"B","ƃ":"b","Ɔ":"O","Ƈ":"C","ƈ":"c","Ɖ":"D","Ɗ":"D","Ƌ":"D","ƌ":"d","Ǝ":"E","Ə":"A","Ɛ":"E","Ƒ":"F","ƒ":"f","Ɠ":"G","ƕ":"hv","Ɩ":"I","Ɨ":"I","Ƙ":"K","ƙ":"k","ƚ":"l","Ɯ":"M","Ɲ":"N","ƞ":"n","Ɵ":"O","Ơ":"O","ơ":"o","Ƥ":"P","ƥ":"p","ƫ":"t","Ƭ":"T","ƭ":"t","Ʈ":"T","Ư":"U","ư":"u","Ʋ":"V","Ƴ":"Y","ƴ":"y","Ƶ":"Z","ƶ":"z","ƿ":"w","DŽ":"DZ","Dž":"Dz","dž":"dz","LJ":"LJ","Lj":"Lj","lj":"lj","NJ":"NJ","Nj":"Nj","nj":"nj","Ǎ":"A","ǎ":"a","Ǐ":"I","ǐ":"i","Ǒ":"O","ǒ":"o","Ǔ":"U","ǔ":"u","Ǖ":"U","ǖ":"u","Ǘ":"U","ǘ":"u","Ǚ":"U","ǚ":"u","Ǜ":"U","ǜ":"u","ǝ":"e","Ǟ":"A","ǟ":"a","Ǡ":"A","ǡ":"a","Ǣ":"AE","ǣ":"ae","Ǥ":"G","ǥ":"G","Ǧ":"G","ǧ":"G","Ǩ":"K","ǩ":"k","Ǫ":"O","ǫ":"o","Ǭ":"O","ǭ":"o","ǰ":"j","DZ":"DZ","Dz":"Dz","dz":"dz","Ǵ":"G","ǵ":"g","Ƕ":"HV","Ƿ":"W","Ǹ":"N","ǹ":"n","Ǻ":"A","ǻ":"a","Ǽ":"AE","ǽ":"ae","Ǿ":"O","ǿ":"o","Ȁ":"A","ȁ":"a","Ȃ":"A","ȃ":"a","Ȅ":"E","ȅ":"e","Ȇ":"E","ȇ":"e","Ȉ":"I","ȉ":"i","Ȋ":"I","ȋ":"i","Ȍ":"O","ȍ":"o","Ȏ":"O","ȏ":"o","Ȑ":"R","ȑ":"r","Ȓ":"R","ȓ":"r","Ȕ":"U","ȕ":"u","Ȗ":"U","ȗ":"u","Ș":"S","ș":"s","Ț":"T","ț":"t","Ȝ":"Z","ȝ":"z","Ȟ":"H","ȟ":"h","Ƞ":"N","ȡ":"d","Ȣ":"OU","ȣ":"ou","Ȥ":"Z","ȥ":"z","Ȧ":"A","ȧ":"a","Ȩ":"E","ȩ":"e","Ȫ":"O","ȫ":"o","Ȭ":"O","ȭ":"o","Ȯ":"O","ȯ":"o","Ȱ":"O","ȱ":"o","Ȳ":"Y","ȳ":"y","ȴ":"l","ȵ":"n","ȶ":"t","ȷ":"j","ȸ":"db","ȹ":"qp","Ⱥ":"A","Ȼ":"C","ȼ":"c","Ƚ":"L","Ⱦ":"T","ȿ":"s","ɀ":"z","Ƀ":"B","Ʉ":"U","Ʌ":"V","Ɇ":"E","ɇ":"e","Ɉ":"J","ɉ":"j","Ɋ":"Q","ɋ":"q","Ɍ":"R","ɍ":"r","Ɏ":"Y","ɏ":"y","ɐ":"a","ɓ":"b","ɔ":"o","ɕ":"c","ɖ":"d","ɗ":"d","ɘ":"e","ə":"a","ɚ":"a","ɛ":"e","ɜ":"e","ɝ":"e","ɞ":"e","ɟ":"j","ɠ":"g","ɡ":"g","ɢ":"G","ɥ":"h","ɦ":"h","ɨ":"i","ɪ":"I","ɫ":"l","ɬ":"l","ɭ":"l","ɯ":"m","ɰ":"m","ɱ":"m","ɲ":"n","ɳ":"n","ɴ":"N","ɵ":"o","ɶ":"OE","ɼ":"r","ɽ":"r","ɾ":"r","ɿ":"r","ʀ":"R","ʁ":"R","ʂ":"s","ʄ":"j","ʇ":"t","ʈ":"t","ʉ":"u","ʋ":"v","ʌ":"v","ʍ":"w","ʎ":"y","ʏ":"Y","ʐ":"z","ʑ":"z","ʗ":"C","ʙ":"B","ʚ":"e","ʛ":"G","ʜ":"H","ʝ":"j","ʞ":"k","ʟ":"L","ʠ":"q","ʣ":"dz","ʥ":"dz","ʦ":"ts","ʨ":"tc","ʪ":"ls","ʫ":"lz","ʮ":"h","ʯ":"h","ᴀ":"A","ᴁ":"AE","ᴂ":"ae","ᴃ":"B","ᴄ":"C","ᴅ":"D","ᴆ":"D","ᴇ":"E","ᴈ":"e","ᴉ":"i","ᴊ":"J","ᴋ":"K","ᴌ":"L","ᴍ":"M","ᴎ":"N","ᴏ":"O","ᴐ":"O","ᴔ":"oe","ᴕ":"OU","ᴖ":"o","ᴗ":"o","ᴘ":"P","ᴙ":"R","ᴚ":"R","ᴛ":"T","ᴜ":"U","ᴠ":"V","ᴡ":"W","ᴢ":"Z","ᵢ":"i","ᵣ":"r","ᵤ":"u","ᵥ":"v","ᵫ":"ue","ᵬ":"b","ᵭ":"d","ᵮ":"f","ᵯ":"m","ᵰ":"n","ᵱ":"p","ᵲ":"r","ᵳ":"r","ᵴ":"s","ᵵ":"t","ᵶ":"z","ᵷ":"g","ᵹ":"g","ᵺ":"th","ᵻ":"I","ᵼ":"i","ᵽ":"p","ᵾ":"U","ᶀ":"b","ᶁ":"d","ᶂ":"f","ᶃ":"g","ᶄ":"k","ᶅ":"l","ᶆ":"m","ᶇ":"n","ᶈ":"p","ᶉ":"r","ᶊ":"s","ᶌ":"v","ᶍ":"x","ᶎ":"z","ᶏ":"a","ᶑ":"d","ᶒ":"e","ᶓ":"e","ᶔ":"e","ᶕ":"a","ᶖ":"i","ᶗ":"o","ᶙ":"u","Ḁ":"A","ḁ":"a","Ḃ":"B","ḃ":"b","Ḅ":"B","ḅ":"b","Ḇ":"B","ḇ":"b","Ḉ":"C","ḉ":"c","Ḋ":"D","ḋ":"d","Ḍ":"D","ḍ":"d","Ḏ":"D","ḏ":"d","Ḑ":"D","ḑ":"d","Ḓ":"D","ḓ":"d","Ḕ":"E","ḕ":"e","Ḗ":"E","ḗ":"e","Ḙ":"E","ḙ":"e","Ḛ":"E","ḛ":"e","Ḝ":"E","ḝ":"e","Ḟ":"F","ḟ":"f","Ḡ":"G","ḡ":"g","Ḣ":"H","ḣ":"h","Ḥ":"H","ḥ":"h","Ḧ":"H","ḧ":"h","Ḩ":"H","ḩ":"h","Ḫ":"H","ḫ":"h","Ḭ":"I","ḭ":"i","Ḯ":"I","ḯ":"i","Ḱ":"K","ḱ":"k","Ḳ":"K","ḳ":"k","Ḵ":"K","ḵ":"k","Ḷ":"L","ḷ":"l","Ḹ":"L","ḹ":"l","Ḻ":"L","ḻ":"l","Ḽ":"L","ḽ":"l","Ḿ":"M","ḿ":"m","Ṁ":"M","ṁ":"m","Ṃ":"M","ṃ":"m","Ṅ":"N","ṅ":"n","Ṇ":"N","ṇ":"n","Ṉ":"N","ṉ":"n","Ṋ":"N","ṋ":"n","Ṍ":"O","ṍ":"o","Ṏ":"O","ṏ":"o","Ṑ":"O","ṑ":"o","Ṓ":"O","ṓ":"o","Ṕ":"P","ṕ":"p","Ṗ":"P","ṗ":"p","Ṙ":"R","ṙ":"r","Ṛ":"R","ṛ":"r","Ṝ":"R","ṝ":"r","Ṟ":"R","ṟ":"r","Ṡ":"S","ṡ":"s","Ṣ":"S","ṣ":"s","Ṥ":"S","ṥ":"s","Ṧ":"S","ṧ":"s","Ṩ":"S","ṩ":"s","Ṫ":"T","ṫ":"t","Ṭ":"T","ṭ":"t","Ṯ":"T","ṯ":"t","Ṱ":"T","ṱ":"t","Ṳ":"U","ṳ":"u","Ṵ":"U","ṵ":"u","Ṷ":"U","ṷ":"u","Ṹ":"U","ṹ":"u","Ṻ":"U","ṻ":"u","Ṽ":"V","ṽ":"v","Ṿ":"V","ṿ":"v","Ẁ":"W","ẁ":"w","Ẃ":"W","ẃ":"w","Ẅ":"W","ẅ":"w","Ẇ":"W","ẇ":"w","Ẉ":"W","ẉ":"w","Ẋ":"X","ẋ":"x","Ẍ":"X","ẍ":"x","Ẏ":"Y","ẏ":"y","Ẑ":"Z","ẑ":"z","Ẓ":"Z","ẓ":"z","Ẕ":"Z","ẕ":"z","ẖ":"h","ẗ":"t","ẘ":"w","ẙ":"y","ẚ":"a","ẛ":"f","ẜ":"s","ẝ":"s","ẞ":"SS","Ạ":"A","ạ":"a","Ả":"A","ả":"a","Ấ":"A","ấ":"a","Ầ":"A","ầ":"a","Ẩ":"A","ẩ":"a","Ẫ":"A","ẫ":"a","Ậ":"A","ậ":"a","Ắ":"A","ắ":"a","Ằ":"A","ằ":"a","Ẳ":"A","ẳ":"a","Ẵ":"A","ẵ":"a","Ặ":"A","ặ":"a","Ẹ":"E","ẹ":"e","Ẻ":"E","ẻ":"e","Ẽ":"E","ẽ":"e","Ế":"E","ế":"e","Ề":"E","ề":"e","Ể":"E","ể":"e","Ễ":"E","ễ":"e","Ệ":"E","ệ":"e","Ỉ":"I","ỉ":"i","Ị":"I","ị":"i","Ọ":"O","ọ":"o","Ỏ":"O","ỏ":"o","Ố":"O","ố":"o","Ồ":"O","ồ":"o","Ổ":"O","ổ":"o","Ỗ":"O","ỗ":"o","Ộ":"O","ộ":"o","Ớ":"O","ớ":"o","Ờ":"O","ờ":"o","Ở":"O","ở":"o","Ỡ":"O","ỡ":"o","Ợ":"O","ợ":"o","Ụ":"U","ụ":"u","Ủ":"U","ủ":"u","Ứ":"U","ứ":"u","Ừ":"U","ừ":"u","Ử":"U","ử":"u","Ữ":"U","ữ":"u","Ự":"U","ự":"u","Ỳ":"Y","ỳ":"y","Ỵ":"Y","ỵ":"y","Ỷ":"Y","ỷ":"y","Ỹ":"Y","ỹ":"y","Ỻ":"LL","ỻ":"ll","Ỽ":"V","Ỿ":"Y","ỿ":"y","‐":"-","‑":"-","‒":"-","–":"-","—":"-","‘":'"',"’":'"',"‚":'"',"‛":'"',"“":'"',"”":'"',"„":'"',"′":'"',"″":'"',"‵":'"',"‶":'"',"‸":"^","‹":'"',"›":'"',"‼":"!!","⁄":"/","⁅":"[","⁆":"]","⁇":"??","⁈":"?!","⁉":"!?","⁎":"*","⁏":";","⁒":"%","⁓":"~","⁰":"0","ⁱ":"i","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","ⁿ":"n","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","₊":"+","₋":"-","₌":"=","₍":"(","₎":")","ₐ":"a","ₑ":"e","ₒ":"o","ₓ":"x","ₔ":"a","ↄ":"c","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"19","⑳":"20","⑴":"(1)","⑵":"(2)","⑶":"(3)","⑷":"(4)","⑸":"(5)","⑹":"(6)","⑺":"(7)","⑻":"(8)","⑼":"(9)","⑽":"(10)","⑾":"(11)","⑿":"(12)","⒀":"(13)","⒁":"(14)","⒂":"(15)","⒃":"(16)","⒄":"(17)","⒅":"(18)","⒆":"(19)","⒇":"(20)","⒈":"1.","⒉":"2.","⒊":"3.","⒋":"4.","⒌":"5.","⒍":"6.","⒎":"7.","⒏":"8.","⒐":"9.","⒑":"10.","⒒":"11.","⒓":"12.","⒔":"13.","⒕":"14.","⒖":"15.","⒗":"16.","⒘":"17.","⒙":"18.","⒚":"19.","⒛":"20.","⒜":"(a)","⒝":"(b)","⒞":"(c)","⒟":"(d)","⒠":"(e)","⒡":"(f)","⒢":"(g)","⒣":"(h)","⒤":"(i)","⒥":"(j)","⒦":"(k)","⒧":"(l)","⒨":"(m)","⒩":"(n)","⒪":"(o)","⒫":"(p)","⒬":"(q)","⒭":"(r)","⒮":"(s)","⒯":"(t)","⒰":"(u)","⒱":"(v)","⒲":"(w)","⒳":"(x)","⒴":"(y)","⒵":"(z)","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓥ":"v","ⓦ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","⓪":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","❛":'"',"❜":'"',"❝":'"',"❞":'"',"❨":"(","❩":")","❪":"(","❫":")","❬":"<","❭":">","❮":'"',"❯":'"',"❰":"<","❱":">","❲":"[","❳":"]","❴":"{","❵":"}","❶":"1","❷":"2","❸":"3","❹":"4","❺":"5","❻":"6","❼":"7","❽":"8","❾":"9","❿":"10","➀":"1","➁":"2","➂":"3","➃":"4","➄":"5","➅":"6","➆":"7","➇":"8","➈":"9","➉":"10","➊":"1","➋":"2","➌":"3","➍":"4","➎":"5","➏":"6","➐":"7","➑":"8","➒":"9","➓":"10","Ⱡ":"L","ⱡ":"l","Ɫ":"L","Ᵽ":"P","Ɽ":"R","ⱥ":"a","ⱦ":"t","Ⱨ":"H","ⱨ":"h","Ⱪ":"K","ⱪ":"k","Ⱬ":"Z","ⱬ":"z","Ɱ":"M","Ɐ":"a","ⱱ":"v","Ⱳ":"W","ⱳ":"w","ⱴ":"v","Ⱶ":"H","ⱶ":"h","ⱸ":"e","ⱺ":"o","ⱻ":"E","ⱼ":"j","⸨":"((","⸩":"))","Ꜩ":"TZ","ꜩ":"tz","ꜰ":"F","ꜱ":"S","Ꜳ":"AA","ꜳ":"aa","Ꜵ":"AO","ꜵ":"ao","Ꜷ":"AU","ꜷ":"au","Ꜹ":"AV","ꜹ":"av","Ꜻ":"AV","ꜻ":"av","Ꜽ":"AY","ꜽ":"ay","Ꜿ":"c","ꜿ":"c","Ꝁ":"K","ꝁ":"k","Ꝃ":"K","ꝃ":"k","Ꝅ":"K","ꝅ":"k","Ꝇ":"L","ꝇ":"l","Ꝉ":"L","ꝉ":"l","Ꝋ":"O","ꝋ":"o","Ꝍ":"O","ꝍ":"o","Ꝏ":"OO","ꝏ":"oo","Ꝑ":"P","ꝑ":"p","Ꝓ":"P","ꝓ":"p","Ꝕ":"P","ꝕ":"p","Ꝗ":"Q","ꝗ":"q","Ꝙ":"Q","ꝙ":"q","Ꝛ":"R","ꝛ":"r","Ꝟ":"V","ꝟ":"v","Ꝡ":"VY","ꝡ":"vy","Ꝣ":"Z","ꝣ":"z","Ꝧ":"TH","ꝧ":"th","Ꝩ":"V","Ꝺ":"D","ꝺ":"d","Ꝼ":"F","ꝼ":"f","Ᵹ":"G","Ꝿ":"G","ꝿ":"g","Ꞁ":"L","ꞁ":"l","Ꞃ":"R","ꞃ":"r","Ꞅ":"s","ꞅ":"S","Ꞇ":"T","ꟻ":"F","ꟼ":"p","ꟽ":"M","ꟾ":"I","ꟿ":"M","ff":"ff","fi":"fi","fl":"fl","ffi":"ffi","ffl":"ffl","st":"st","!":"!",""":'"',"#":"#","$":"$","%":"%","&":"&","'":'"',"(":"(",")":")","*":"*","+":"+",",":",","-":"-",".":".","/":"/","0":"0","1":"1","2":"2","3":"3","4":"4","5":"5","6":"6","7":"7","8":"8","9":"9",":":":",";":";","<":"<","=":"=",">":">","?":"?","@":"@","A":"A","B":"B","C":"C","D":"D","E":"E","F":"F","G":"G","H":"H","I":"I","J":"J","K":"K","L":"L","M":"M","N":"N","O":"O","P":"P","Q":"Q","R":"R","S":"S","T":"T","U":"U","V":"V","W":"W","X":"X","Y":"Y","Z":"Z","[":"[","\":"\\","]":"]","^":"^","_":"_","a":"a","b":"b","c":"c","d":"d","e":"e","f":"f","g":"g","h":"h","i":"i","j":"j","k":"k","l":"l","m":"m","n":"n","o":"o","p":"p","q":"q","r":"r","s":"s","t":"t","u":"u","v":"v","w":"w","x":"x","y":"y","z":"z","{":"{","}":"}","~":"~"}}));r(he);var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.replaceDiacritics=s;var r,o=(r=he)&&r.__esModule?r:{default:r};function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}var a=function(e){switch(typeof e){case"string":return e;case"object":return Array.isArray(e)?function e(t){return t.reduce((function(t,n){return t.concat(Array.isArray(n)?e(n):n)}),[])}(e):null;default:return e}};function s(e){for(var t=e?String(e):"",n=0;n<t.length;n++){var r=t.charAt(n);o.default[r]&&(t=t.replaceAll(r,o.default[r]))}return t}function u(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var l=function(e){var t=e.suggestions,r=e.currentValue,o=e.wordsToShowAfterHighlight,a={};if(r){var s=r.trim();return t.reduce((function(e,t){var r=t.label,l=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["label"]),c=(new DOMParser).parseFromString(r,"text/html").documentElement.textContent,d="^("+u(s)+")\\w+",p=new RegExp(d,"i"),h=p.exec(c);if(h||(d="^("+u(s)+")",h=(p=new RegExp(d,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(s.length).split(" ").slice(0,o+1).join(" "),g=s+'<mark class="highlight">'+f+"</mark>",m=""+s+f;return a[g]?e:(a[g]=1,[].concat(i(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,r=e.suggestions,o=e.currentValue,u=e.suggestionProperties,c=void 0===u?[]:u,d=e.showDistinctSuggestions,p=void 0!==d&&d,h=e.enablePredictiveSuggestions,f=void 0!==h&&h,g=e.wordsToShowAfterHighlight,m=void 0===g?2:g,y=e.enableSynonyms,v=[],b=[],C=!1,O=function(e,t,r){if((C||o.trim().split(" ").some((function(t){return s(e).toLowerCase().includes(s(t))})))&&!b.includes(e)||r._promoted){var a={label:e,value:e,source:r},u={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(u=n({},u,function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e,t[e])))}));var l=n({},a,u);if(b=[].concat(i(b),[e]),v=[].concat(i(v),[l]),p)return!0}return!1},_=function(){r.forEach((function(e){t.forEach((function(t){!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t;if("object"==typeof t){var i=n.split("."),s=t[i[0]];if(t[n]){var u=t[n],l=a(u);if(l&&"string"==typeof l)return O(l,t,r)}if(Array.isArray(s)&&(s.length>1&&(s=s.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),s=s[0]),s)if(i.length>1){var c=n.substring(i[0].length+1);e(s,c,r)}else{var d=a(s);if(d)return O(d,t,r)}}return!1}(e,t)}))}))};if(_(),v.length<r.length&&!C&&y&&(C=!0,_()),f){var w=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=w}if(p){var S={},P=[];return v.forEach((function(e){e.source&&e.source._id&&(S[e.source._id]||(P.push(e),S[e.source._id]=!0))})),P}return v}}));r(fe);var ge=fe.replaceDiacritics,me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.hasCustomRenderer=t.getComponent=t.isFunction=t.getCalendarIntervalErrorMessage=t.queryFormatMillisecondsMap=t.featuredSuggestionsActionTypes=t.suggestionTypes=t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=t.extractQueryFromCustomQuery=t.getOptionsForCustomQuery=t.getOptionsFromQuery=t.parseHits=t.handleA11yAction=t.getInnerKey=t.getClassName=t.checkSomePropChange=t.checkPropChange=t.updateDefaultQuery=t.updateCustomQuery=void 0;var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.isEqual=c,t.compareQueries=function(e,t){try{return c(JSON.parse(JSON.stringify(e)),JSON.parse(JSON.stringify(t)))}catch(e){return!1}},t.debounce=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,r=null,o=null,i=function(){return e.apply(n,o)};return function(){o=arguments,clearTimeout(r),r=setTimeout(i,t)}},t.getQueryOptions=function(e){var t={};void 0!==e.size&&(t.size=e.size);if(e.includeFields||e.excludeFields){var n={};e.includeFields&&(n.includes=e.includeFields),e.excludeFields&&(n.excludes=e.excludeFields),t._source=n}return t},t.buildQuery=function(e,t,r,o){var i=null,a=null;e in t&&(i=function e(t,n){var r=[];if(Object.keys(t).forEach((function(o){if(Array.isArray(t[o])){var i=p(d(o),t[o].map((function(t){return"string"!=typeof t?e(t,n):t in n&&n[t]&&Object.keys(n[t]).length?n[t]:null})).filter((function(e){return!!e})));i&&Object.keys(i).length&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=p(d(o),n[t[o]]);a&&Object.keys(a).length&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&Object.keys(u).length&&(r=[].concat(s(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),a=function e(t,r,o){var i={};Object.keys(t).forEach((function(o){Array.isArray(t[o])?t[o].forEach((function(e){r[e]&&(i=n({},i,r[e]))})):"string"==typeof t[o]?r[t[o]]&&(i=n({},i,r[t[o]])):"object"!=typeof t[o]||null===t[o]||Array.isArray(t[o])||(i=n({},i,e(t[o],r)))})),r[o]&&(i=n({},i,r[o]));return i}(t[e],o,e));return{queryObj:i,options:a}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(s(o.and),[r]),o):"string"==typeof o.and?(o.and=[o.and,r],o):(o.and=e(o.and,r),o);return n({},o,{and:r})},t.checkValueChange=function(e,t,n,r){var o=t;Array.isArray(t)&&!t.length&&(o=null);var i=function(t){console.warn(e+" - beforeValueChange rejected the promise with ",t)};if(n)try{var a=n(o);a instanceof Promise?a.then(r).catch(i):r()}catch(e){i(e)}else r()},t.getAggsOrder=h,t.formatDate=function(e,t){if(t.parseDate)return t.parseDate(e,t);switch(t.queryFormat){case"epoch_millis":return e.getTime();case"epoch_second":return Math.floor(e.getTime()/1e3);default:return r.default[t.queryFormat]?e.toString(r.default[t.queryFormat]):e.getTime()}},t.getResultStats=function(e){var t=e.total,r=e.size,o=e.time,i=e.hidden,a=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:a&&a.length})},t.extractFieldsFromSource=O,t.normalizeDataField=_,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=[];n.dataField?u=_(n.dataField).map((function(e){return e.field})):e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=O(e[0]._source));var l=m(e,!1),c=m(i,!1);if(c&&c.length){var d=c.map((function(e){return e._id})).filter(Boolean);d&&(l=l.filter((function(e){return!d.includes(e._id)}))),l=[].concat(s(c),s(l))}var p=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:a,enableSynonyms:n.enableSynonyms});if(r)return p.map((function(e){return r(e)}));return p},t.isValidDateRangeQueryFormat=function(e){return Object.keys(r.default).includes(e)};var r=i(pe),o=i(fe);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function s(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.updateCustomQuery=function(e,t,n){t.customQuery&&"function"==typeof t.customQuery&&t.setCustomQuery(e,t.customQuery(n,t))};var l=t.updateDefaultQuery=function(e,t,n){t.defaultQuery&&"function"==typeof t.defaultQuery&&t.setDefaultQuery(e,t.defaultQuery(n,t))};function c(e,t){if(e===t)return!0;if(!(e instanceof Object&&t instanceof Object))return!1;if(e.constructor!==t.constructor)return!1;for(var n in e)if(e.hasOwnProperty(n)){if(!t.hasOwnProperty(n))return!1;if(e[n]!==t[n]){if("object"!=typeof e[n])return!1;if(!c(e[n],t[n]))return!1}}for(var r in t)if(t.hasOwnProperty(r)&&!e.hasOwnProperty(r))return!1;return!0}function d(e){return"and"===e?"must":"or"===e?"should":"must_not"}function p(e,t){var r=null;return(Array.isArray(t)&&t.length||!Array.isArray(t)&&t)&&(r={bool:u({},e,t)}),"should"===e&&r&&(r={bool:n({},r.bool,{minimum_should_match:1})}),r}function h(e){return"count"===e?{_count:"desc"}:{_key:e}}var f=t.checkPropChange=function(e,t,n){return!c(e,t)&&(n(),!0)},g=(t.checkSomePropChange=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];n.some((function(n){return f(e[n],t[n],r)}))},t.getClassName=function(e,t){return e&&e[t]||""},t.getInnerKey=function(e,t){return e&&e[t]||{}},t.handleA11yAction=function(e,t){"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),t())},function(e){var t=n({},e);return t.highlight&&Object.keys(t.highlight).forEach((function(e){var r=t.highlight[e][0];t._source=n({},t._source,u({},e,r))})),t}),m=t.parseHits=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=null;return e&&(r=[].concat(s(e)).map((function(e){var r=n({},e);return t&&(r=g(e)),Object.keys(r).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=r[t],e}),n({highlight:r.highlight||{}},r._source))}))),r};var y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query;var t=a(e,["query"]);return Object.keys(t).length?t:null}return null};t.getOptionsFromQuery=y;t.getOptionsForCustomQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e){e.query,e.id,e.params;var t=a(e,["query","id","params"]);return Object.keys(t).length?t:null}return null};t.extractQueryFromCustomQuery=function(e){return e?e.id?{id:e.id,params:e.params}:e.query:null};function v(e,t,r){Object.keys(e).forEach((function(o){var i=e[o]||{},a=i.hidden,s=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:s,time:u,promoted:r[o]&&r[o].length,hidden:a||0})})}))}t.getSearchState=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e.selectedValues,o=e.queryLog,i=e.dependencyTree,a=e.props,s=e.hits,l=e.aggregations,c=e.isLoading,d=e.error,p=e.promotedResults,h=e.settings,f=e.customData,g=e.rawData,m={},y=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];return Object.keys(e).forEach((function(r){m[r]=n({},m[r],t?u({},t,e[r]):e[r])}))};return y(a),Object.keys(r).forEach((function(e){var t=m[e],o=r[e];o&&(m[e]=n({},t,n({title:o.label,componentType:o.componentType,value:o.value},o.category&&{category:o.category},{URLParams:o.URLParams})))})),t||(y(o),y(s,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(d,"error"),y(p,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(s,m,p)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,a){var s=o.defaultQuery,u=void 0,c=void 0;if(s){var d=s(r,o);c=(d||{}).query,u=y(d),l(e,o,r)}o.setQueryOptions(e,n({},u,t||i)),c&&o.updateQuery(n({componentId:e,query:c,value:r},a))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=a(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,a=r.size,s=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:a,order:h(s||"count")},l?{missing:c}:{})}),r.nestedField&&(o.aggs={reactivesearch_nested:{nested:{path:r.nestedField},aggs:o.aggs}}),n({},o,b(r,e))},t.getCompositeAggsQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=void 0===t?{}:t,o=e.props,i=e.after,a=void 0===i?null:i,s=e.showTopHits,l=void 0!==s&&s,c=e.value,d=r,p=o.dataField,h=o.size,f=o.sortBy,g=o.showMissing,m=o.aggregationField,y=m||p,v="count"===f?{}:{order:f};return d.aggs=u({},y,n({composite:n({sources:[u({},y,{terms:n({field:y},v,g?{missing_bucket:!0}:{})})],size:h},a)},l?{aggs:u({},y,{top_hits:{size:1}})}:{})),d.size=0,o.nestedField&&(d.aggs={reactivesearch_nested:{nested:{path:o.nestedField},aggs:d.aggs}}),n({},d,b(o,c))};var C=t.withClickIds=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map((function(e,t){return n({},e,{_click_id:t})}))};function O(e){var t=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return Object.keys(t).reduce((function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments[1],a=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(a=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"string"==typeof e?[{field:e,weight:t.length?t[0]:void 0}]:Array.isArray(e)?e.map((function(e,n){var r={};return"string"==typeof e?(r.field=e,t.length>n&&(r.weight=t[n])):"object"==typeof e&&e&&e.field&&(r.field=e.field,r.weight=e.weight),r})):"object"==typeof e&&e?[{field:e.field,weight:e.weight}]:[]}t.getTopSuggestions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments[2],r=m(e,!1),i=(0,o.default)({fields:["key","key.autosuggest","key.search"],suggestions:r||[],currentValue:t.toLowerCase(),showDistinctSuggestions:n});return C(i)};t.suggestionTypes={Popular:"popular",Index:"index",Recent:"recent",Promoted:"promoted",Featured:"featured"},t.featuredSuggestionsActionTypes={NAVIGATE:"navigate",FUNCTION:"function"};var w=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},S=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(w),r=n.indexOf(t);if(-1===r&&console.error("Invalid calendarInterval Passed"),"year"===t)return"Try using a shorter range of values.";for(var o=r+1;o<n.length;o+=1)if(e/Object.values(w)[o]<=100){var i=n[o];return{errorMessage:"Please pass calendarInterval prop with value greater than or equal to a `"+i+"` for a meaningful resolution of histogram.",calculatedCalendarInterval:i}}return{errorMessage:"Try using a shorter range of values.",calculatedCalendarInterval:"year"}},t.isFunction=function(e){return"function"==typeof e});t.getComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.children,r=t.render;return S(n)?n(e):S(r)?r(e):null},t.hasCustomRenderer=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.children;return S(n)||S(t)}}));r(me);me.hasCustomRenderer,me.getComponent,me.isFunction,me.getCalendarIntervalErrorMessage,me.queryFormatMillisecondsMap,me.featuredSuggestionsActionTypes;var ye=me.suggestionTypes,ve=(me.getTopSuggestions,me.withClickIds),be=(me.getCompositeAggsQuery,me.getAggsQuery,me.extractQueryFromDefaultQuery,me.updateInternalQuery,me.getSearchState,me.extractQueryFromCustomQuery),Ce=me.getOptionsForCustomQuery,Oe=(me.getOptionsFromQuery,me.parseHits,me.handleA11yAction,me.getInnerKey,me.getClassName,me.checkSomePropChange,me.checkPropChange,me.updateDefaultQuery,me.updateCustomQuery,me.isEqual),_e=(me.compareQueries,me.debounce,me.getQueryOptions),we=me.buildQuery,Se=me.pushToAndClause,Pe=(me.checkValueChange,me.getAggsOrder,me.formatDate,me.getResultStats,me.extractFieldsFromSource,me.normalizeDataField,me.handleOnSuggestions,me.isValidDateRangeQueryFormat,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function r(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}t.setValue=function(e,t,n,o,i,a,s,u,l){return function(c,d){var p=d(),h=p.urlValues,f=p.selectedValues,g=p.watchMan,m=p.props,y=l;(0,me.isEqual)(h[e],t)&&(y="URL");var v={},b=[A.componentTypes.reactiveList,A.componentTypes.reactiveMap].includes(m[e]&&m[e].componentType),O=f[e]&&f[e].value;if(!(0,me.isEqual)(O,t)&&m[e]&&!b){var _=[e],w=g[e]||[];(_=[].concat(r(_),r(w))).forEach((function(e){var t=m[e];"URL"!==y&&t&&[A.componentTypes.reactiveList,A.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!O||O<2)||c({type:C.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:i,componentType:a,category:s,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),i=o.selectedValues,a=o.props,s={},u=void 0;Object.keys(i).forEach((function(t){Array.isArray(e)&&e.includes(t)||(a[t]&&a[t].componentType&&a[t].defaultValue?[A.componentTypes.rangeSlider,A.componentTypes.rangeInput,A.componentTypes.ratingsFilter,A.componentTypes.dateRange].includes(a[t].componentType)?u="object"==typeof a[t].defaultValue?[a[t].defaultValue.start,a[t].defaultValue.end]:null:[A.componentTypes.multiDropdownList,A.componentTypes.multiDataList,A.componentTypes.multiList,A.componentTypes.singleDataList,A.componentTypes.singleDropdownList,A.componentTypes.singleList,A.componentTypes.tagCloud,A.componentTypes.toggleButton,A.componentTypes.multiDropdownRange,A.componentTypes.multiRange,A.componentTypes.singleDropdownRange,A.componentTypes.singleRange,A.componentTypes.dataSearch,A.componentTypes.datePicker].includes(a[t].componentType)?u=a[t].defaultValue:[A.componentTypes.categorySearch].includes(a[t].componentType)&&(u=a[t].defaultValue?a[t].defaultValue.term:""):u=null,(0,me.isEqual)(i[t].value,u)||(s=n({},s,function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n;return e}({},t,n({},i[t],{value:u})))))})),t({type:C.RESET_TO_DEFAULT,defaultValues:s})}},t.setInternalValue=function(e,t,n,r,o){return{type:C.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:C.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return{type:C.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}}})));r(Pe);Pe.setValue,Pe.resetValuesToDefault,Pe.setInternalValue,Pe.patchValue,Pe.clearValues;var $e=o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_AGGS,component:e,aggregations:t,append:n}}function r(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:C.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=n,t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:C.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:C.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}}));r($e);$e.updateAggs,$e.updateCompositeAggs,$e.updateHits,$e.saveQueryToHits,$e.mockDataForTesting;var ke=o((function(e,t){function n(e,t){return{type:C.SET_RAW_DATA,component:e,response:t}}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_PROMOTED_RESULTS,results:e,component:t}}function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:C.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_CUSTOM_DATA,data:e,component:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=n,t.setLoading=function(e,t){return{type:C.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:C.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:C.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:C.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:C.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:C.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:C.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:C.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:C.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:C.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:C.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:C.SET_HEADERS,headers:e}},t.setPromotedResults=r,t.setPopularSuggestions=o,t.setDefaultPopularSuggestions=i,t.setCustomData=a,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:C.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:C.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:C.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(n(e,null)),t(a(null,e)),t(r([],e)),t(o([],e)),t(i([],e)),t((0,$e.updateAggs)(e,null)),t((0,$e.updateCompositeAggs)(e,{})),t((0,$e.updateHits)(e,{hits:[],total:0},0))}}}));r(ke);ke.setRawData,ke.setLoading,ke.setError,ke.setTimestamp,ke.setSearchId,ke.setSuggestionsSearchId,ke.setQuery,ke.setCustomQuery,ke.setDefaultQuery,ke.setCustomHighlightOptions,ke.updateQueryOptions,ke.logQuery,ke.logCombinedQuery,ke.setHeaders,ke.setPromotedResults,ke.setPopularSuggestions,ke.setDefaultPopularSuggestions,ke.setCustomData,ke.setAppliedSettings,ke.setQueryListener,ke.setGoogleMapScriptLoading,ke.setGoogleMapScriptLoaded,ke.setGoogleMapScriptError,ke.resetStoreForComponent;var Ie=o((function(e){
2
2
  /**
3
3
  * @preserve XDate v@VERSION
4
4
  * Docs & Licensing: http://arshaw.com/xdate/
@@ -33,5 +33,5 @@ function st(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t)
33
33
  *
34
34
  * https://github.com/Astray-git/vue-highlight-words
35
35
  *
36
- */function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var os,is,as={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,d=void 0!==c&&c,p=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,C=r.searchWords,O=r.textToHighlight,_=r.unhighlightClassName,w=void 0===_?"":_,S=r.unhighlightStyle,P=t.data,$=ns({autoEscape:l,caseSensitive:d,findChunks:p,sanitize:b,searchWords:C,textToHighlight:O}),k=v,I=-1,E="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rs(e,t,n[t])}))}return e}({},P),$.map((function(t,r){var o=O.substr(t.start,t.end-t.start);if(t.highlight){var a=++I===+s;E="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:E,key:r,style:n};return"string"!=typeof k&&(l.props={highlightIndex:I}),P.scopedSlots?e(k,l,[P.scopedSlots.default({children:o,highlightIndex:I})]):e(k,l,o)}return e("span",{class:w,key:r,style:S},o)})))}},ss={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},us=Gt("span")(os||(os=it(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ls={name:"SuggestionItem",props:{currentValue:Un.string,suggestion:Un.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!s&&!u?e(as,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:ss}}):e(us,{domProps:{innerHTML:n}})]):n:o||a||i?e(_o,{attrs:{alignItems:"center",css:{width:"100%"}}},[a&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(_o,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(as,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:ss},class:Ut({fontSize:"1rem"})})]),i&&e("div",{class:Dt("trim",Ut({marginTop:3}))},[e(as,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:ss}})])])]):r}},cs={name:"SearchSvg",props:["styles"],render:function(){var e=arguments[0];return e("svg",{attrs:{alt:"Search",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon",style:tt({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[e("title",["Search"]),e("path",{attrs:{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"}})])}},ds={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Clear",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},class:"cancel-icon"},[e("title",["Clear"]),e("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}};Nt(is||(is=it(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));var ps,hs={name:"MicSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("g",{attrs:{id:"el_TvxDfTAtKp",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_D93PK3GbmJ",fillRule:"nonzero"},style:{fill:"#595959"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"}})])])])}};Nt(ps||(ps=it(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));var fs,gs={name:"MuteSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{style:{transform:"scale(1.5)"},attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className}},[e("g",{attrs:{id:"el_X81iT9kZYo",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_gMpyalCphp"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"}})])])])}};Nt(fs||(fs=it(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));var ms,ys={name:"ListenSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("defs",[e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"}})]),e("g",{attrs:{id:"el_QJeJ_2CDw5",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_UYYCfubTRf"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero"},style:{fill:"#0B6AFF"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"}}),e("g",{attrs:{id:"el_6SDP2LAgKC"}},[e("mask",{attrs:{id:"mask-2",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-1"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"}}),e("rect",{attrs:{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"}})]),e("g",{attrs:{id:"el_6WKby7wXqV"}},[e("mask",{attrs:{id:"mask-4",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-3"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"}}),e("rect",{attrs:{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"}})]),e("g",{attrs:{id:"el_Wi-my975tM"}},[e("mask",{attrs:{id:"mask-6",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-5"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"}}),e("rect",{attrs:{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"}})]),e("g",{attrs:{id:"el_DkfFFTaFxy8"}},[e("mask",{attrs:{id:"mask-8",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-7"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"}}),e("rect",{attrs:{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"}})]),e("g",{attrs:{id:"el_34IgwiMB5rf"}},[e("mask",{attrs:{id:"mask-10",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-9"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"}}),e("rect",{attrs:{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"}})]),e("g",{attrs:{id:"el_DeebuCsPTGA"}},[e("mask",{attrs:{id:"mask-12",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-11"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"}}),e("rect",{attrs:{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"}})]),e("g",{attrs:{id:"el_ZOjjrPTvyrv"}},[e("mask",{attrs:{id:"mask-14",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-13"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"}}),e("rect",{attrs:{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"}})]),e("g",{attrs:{id:"el_2FATegVmf0K"}},[e("mask",{attrs:{id:"mask-16",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-15"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"}}),e("rect",{attrs:{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"}})])])])])}},vs="INACTIVE",bs="STOPPED",Cs="ACTIVE",Os="DENIED",_s={name:"Mic",props:{children:Un.title,lang:St.string.def("en-US"),iconPosition:St.string.def("left"),handleResult:Un.func,onNoMatch:Un.func,onError:Un.func,getInstance:Un.func,render:Un.func,className:Un.string,applyClearStyle:St.bool,showIcon:St.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return sr(t,this)},stopMic:function(){this.instance&&(this.status=vs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===Cs&&(this.status=vs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==Os)return this.status=vs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=Cs},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=vs:"not-allowed"===t.error&&(e.status=Os),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=vs},this.instance.onaudioend=function(){e.status=vs}}}},computed:{hasCustomRenderer:function(){return ur(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case Cs:return e(ys,{attrs:{className:n},nativeOn:{click:this.handleClick}});case bs:case Os:return e(gs,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(hs,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:vs}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=arguments[0];return this.hasCustomRenderer?this.getComponent():e(za,[this.Icon])}},ws={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}})]):"promoted-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24"},class:this.$props.className,style:{fill:"#707070"}},[e("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"}})]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}})]):e(cs,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},Ss=Xe.updateQuery,Ps=Xe.setQueryOptions,$s=Xe.setCustomQuery,ks=Xe.setDefaultQuery,Is=Xe.setCustomHighlightOptions,Es=Xe.recordSuggestionClick,As=Xe.loadPopularSuggestions,Ts=Xe.getRecentSearches,Rs=Xe.resetStoreForComponent,xs=et.debounce,Ls=et.checkValueChange,Ms=et.getClassName,js=et.extractQueryFromCustomQuery,Qs=et.getOptionsForCustomQuery,Vs=et.isEqual,Ds=et.getCompositeAggsQuery,Fs=et.withClickIds,Ns=et.getResultStats,Us=et.handleOnSuggestions,qs=et.getTopSuggestions,zs=et.normalizeDataField,Bs={name:"DataSearch",data:function(){var e=this.$props;return this.__state={currentValue:"",isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=this.selectedValue||"",(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=xs(this.handleText,this.$props.debounce),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),Fs(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return qs(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return tt({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return tt({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return qs(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return ur(this)},stats:function(){return Ns(this)}},props:{options:Un.options,autoFocus:St.bool,autosuggest:St.bool.def(!0),beforeValueChange:Un.func,className:St.string.def(""),clearIcon:Un.children,componentId:Un.stringRequired,customHighlight:Un.func,customQuery:Un.func,defaultQuery:Un.func,dataField:St.oneOfType([St.string,St.shape({field:St.string,weight:St.number}),St.arrayOf(St.string),St.arrayOf({field:St.string,weight:St.number})]),aggregationField:Un.string,aggregationSize:St.number,size:St.number,debounce:St.number.def(0),defaultValue:Un.string,excludeFields:Un.excludeFields,value:Un.value,defaultSuggestions:Un.suggestions,enableSynonyms:St.bool.def(!0),enableQuerySuggestions:St.bool.def(!1),enablePopularSuggestions:St.bool.def(!1),enableRecentSearches:St.bool.def(!1),fieldWeights:Un.fieldWeights,filterLabel:Un.string,fuzziness:Un.fuzziness,highlight:St.bool,highlightField:Un.stringOrArray,icon:Un.children,iconPosition:St.oneOf(["left","right"]).def("left"),includeFields:Un.includeFields,innerClass:Un.style,innerRef:St.string.def("searchInputField"),render:Un.func,renderQuerySuggestions:Un.func,renderPopularSuggestions:Un.func,parseSuggestion:Un.func,renderNoSuggestion:Un.title,renderError:Un.title,placeholder:St.string.def("Search"),queryFormat:St.oneOf(["and","or"]).def("or"),react:Un.react,showClear:St.bool.def(!0),showDistinctSuggestions:St.bool.def(!0),showFilter:St.bool.def(!0),showIcon:St.bool.def(!0),title:Un.title,theme:Un.style,URLParams:St.bool.def(!1),strictSelection:St.bool.def(!1),nestedField:Un.string,enablePredictiveSuggestions:St.bool.def(!1),recentSearchesIcon:St.any,popularSearchesIcon:St.any,showVoiceSearch:St.bool.def(!1),getMicInstance:Un.func,renderMic:Un.func,distinctField:Un.string,distinctFieldConfig:Un.props,focusShortcuts:St.arrayOf(St.oneOfType([St.string,St.number])).def(["/"]),addonBefore:St.any,addonAfter:St.any,expandSuggestionsContainer:St.bool.def(!0),index:St.string,enableDefaultSuggestions:St.bool.def(!0)},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=Bs.highlightQuery(this.$props)||{};this.queryOptions=tt({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Vs(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){t!==e&&this.$data.currentValue!==e&&(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",Je.CLEAR_VALUE),this.setValue(e||"",!0,this.$props))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=Bs.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},updateQueryOptions:function(){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=Bs.highlightQuery(this.$props)||{};this.queryOptions=tt({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):sr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=_e(this.$props);return e&&(t.aggs=Ds({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return Us(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,Je.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);Ls(n.componentId,e,n.beforeValueChange,(function(){e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.currentValue=e,t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===Je.SUGGESTION_SELECT||""===e?i.updateQueryHandler(n.componentId,e,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,e,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=Bs.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=js(o);i&&(r=i),n=Qs(o),dr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,tt({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=Bs.defaultQuery(t,n);if(o){var l=o(t,n),c=js(l);c&&(u=c),r=Qs(l),pr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,tt({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",Je.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0),this.onValueSelectedHandler(e.target.value,Je.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;this.triggerClickAnalytics(e._click_id),void 0===t?this.setValue(e.value,!0,this.$props,Je.SUGGESTION_SELECT):(this.isPending=!1,this.$emit("change",e.value,this.triggerQuery)),this.onValueSelectedHandler(e.value,Je.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(cs):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(es,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[ir(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ds):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(es,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Aa,[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Aa,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(qa,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(za,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(_s,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ms(o,"mic")||null}}),"right"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(qa,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;gr(n)||(ia(vr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),ia("*",(function(t){var r=Cr(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(ia[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,s=this.$scopedSlots,u=s.recentSearchesIcon,l=s.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Ms(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Ya,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,s=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Fa(e.themePreset,r)+" "+Ms(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:tt({},d({item:n})),on:tt({},p({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ls,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:tt({},d({item:n})),on:tt({},p({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(ws,{attrs:{className:Ms(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(ws,{attrs:{className:Ms(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ls,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),fr(e)?e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:tt({},d({item:n})),on:tt({},p({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(ws,{attrs:{className:Ms(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ls,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Na},[t(da,[e.renderInputAddonBefore(),t(Ea,[t(Da,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:Ms(e.$props.innerClass,"input"),on:tt({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:tt({},s({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m()])}}}):t("div",{class:Na},[t(da,[this.renderInputAddonBefore(),t(Ea,[t(Da,{class:Ms(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:tt({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:tt({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=zs(t.dataField,t.fieldWeights);n={bool:{should:Bs.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:tt({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},Hs=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Ps,updateQuery:Ss,setCustomQuery:$s,setDefaultQuery:ks,setCustomHighlightOptions:Is,recordSuggestionClick:Es,loadPopularSuggestions:As,getRecentSearches:Ts,resetStoreForComponent:Rs})(Bs),{componentType:T.dataSearch,internalComponent:Bs.hasInternalComponent()});Bs.install=function(e){e.component(Bs.name,Hs)},Bs.componentType=T.dataSearch;var Gs,Ws,Zs,Ks,Ys,Xs,Js=Gt("button")(ms||(ms=it(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),eu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(Js,{on:{click:this.$listeners.click}},[e("svg",{attrs:{viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"}})])])},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},tu=Xe.updateQuery,nu=Xe.setCustomQuery,ru=Xe.setDefaultQuery,ou=Xe.recordSuggestionClick,iu=et.debounce,au=et.checkValueChange,su=et.getClassName,uu=et.isEqual,lu=et.getCompositeAggsQuery,cu=et.withClickIds,du=et.getResultStats,pu=et.normalizeDataField,hu={name:"SearchBox",data:function(){var e=this.$props;return this.__state={currentValue:"",isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=this.selectedValue||this.value||this.defaultValue||"",this.handleTextChange=iu(this.handleText,this.$props.debounce),this.setValue(this.currentValue,!0,this.$props,void 0,!1,this.selectedCategory),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return ur(this)},stats:function(){return du(this)}},props:{autoFocus:St.bool,autosuggest:St.bool.def(!0),beforeValueChange:Un.func,className:St.string.def(""),clearIcon:Un.children,componentId:Un.stringRequired,customHighlight:Un.func,customQuery:Un.func,defaultQuery:Un.func,dataField:St.oneOfType([St.string,St.shape({field:St.string,weight:St.number}),St.arrayOf(St.string),St.arrayOf({field:St.string,weight:St.number})]),aggregationField:Un.string,aggregationSize:St.number,size:St.number,debounce:St.number.def(0),defaultValue:Un.string,excludeFields:Un.excludeFields,value:Un.value,defaultSuggestions:Un.suggestions,enableSynonyms:St.bool.def(!0),enableQuerySuggestions:St.bool.def(!1),enablePopularSuggestions:St.bool.def(!1),enableRecentSuggestions:St.bool.def(!1),fieldWeights:Un.fieldWeights,filterLabel:Un.string,fuzziness:Un.fuzziness,highlight:St.bool,highlightField:Un.stringOrArray,icon:Un.children,iconPosition:St.oneOf(["left","right"]).def("left"),includeFields:Un.includeFields,innerClass:Un.style,innerRef:St.string.def("searchInputField"),render:Un.func,renderNoSuggestion:Un.title,renderError:Un.title,placeholder:St.string.def("Search"),queryFormat:St.oneOf(["and","or"]).def("or"),react:Un.react,showClear:St.bool.def(!0),showDistinctSuggestions:St.bool.def(!0),showFilter:St.bool.def(!0),showIcon:St.bool.def(!0),title:Un.title,theme:Un.style,URLParams:St.bool.def(!1),strictSelection:St.bool.def(!1),nestedField:Un.string,enablePredictiveSuggestions:St.bool.def(!1),recentSearchesIcon:St.any,popularSearchesIcon:St.any,showVoiceSearch:St.bool.def(!1),getMicInstance:Un.func,renderMic:Un.func,distinctField:Un.string,distinctFieldConfig:Un.props,focusShortcuts:St.arrayOf(St.oneOfType([St.string,St.number])).def(["/"]),addonBefore:St.any,addonAfter:St.any,expandSuggestionsContainer:St.bool.def(!0),index:St.string,popularSuggestionsConfig:St.object,recentSuggestionsConfig:St.object,applyStopwords:St.bool,customStopwords:Un.stringArray,onData:Un.func,renderItem:Un.func,enterButton:St.bool.def(!1),renderEnterButton:St.any},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){uu(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){uu(e,t)||this.setValue(e,!0,this.$props,""===e?Je.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(cu(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(cu(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){t!==e&&this.$data.currentValue!==e&&(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",Je.CLEAR_VALUE),void 0===this.$props.value&&this.setValue(e||"",!0,this.$props))},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){uu(e,t)||(this.handleTextChange=iu(this.handleText,e))}},methods:{handleText:function(e,t){t===Je.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=hu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats};return sr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=_e(this.$props);return e&&(t.aggs=lu({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,Je.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);au(n.componentId,e,n.beforeValueChange,(function(){a.currentValue=e,t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),a.triggerDefaultQuery(e)),n.strictSelection?r===Je.SUGGESTION_SELECT||""===e?a.triggerCustomQuery(e,i):a.setValue("",!0):void 0===n.value&&a.triggerCustomQuery(e,i)):a.handleTextChange(e,r),a.$emit("valueChange",e),a.$emit("value-change",e)}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=hu.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),dr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:T.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,a=n.URLParams,s="string"!=typeof e?this.$data.currentValue:e,u=hu.defaultQuery(s+(t?" in "+t:""),this.$props);if(r){var l=r(s,this.$props).query;l&&(u=l),pr(this.$props.componentId,this.setCustomQuery,this.$props,s)}this.updateQuery({componentId:this.$props.componentId,query:u,value:s,label:o,showFilter:i,URLParams:a,componentType:T.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,a=void 0===i||i,s=e.value,u=void 0===s?void 0:s,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),a&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,Je.CLEAR_VALUE,!1),this.onValueSelectedHandler("",Je.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0),this.onValueSelectedHandler(e.target.value,Je.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?Je.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;this.triggerClickAnalytics(e._click_id),void 0===n?this.setValue(e.value,!0,this.$props,Je.SUGGESTION_SELECT,!1,e._category):this.$emit("change",e.value,(function(n){var r=n.isOpen;return t.triggerQuery({isOpen:r,value:e.value,categoryValue:e._category})})),this.onValueSelectedHandler(e.value,Je.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(cs):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(es,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[ir(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ds):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(es,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Aa,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Aa,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Dn,{class:"enter-btn "+su(o,"enterButton"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(qa,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(za,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(_s,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:su(o,"mic")||null}}),"right"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(qa,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;gr(n)||(ia(vr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),ia("*",(function(t){var r=Cr(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(ia[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=t,this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(eu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,a=i.recentSearchesIcon,s=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:su(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(Ya,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case ye.Recent:return a;case ye.Popular:return s;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Fa(e.themePreset,r)+" "+su(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:tt({},d({item:r})),on:tt({},p({item:r})),key:o+1+"-"+r.value,style:{backgroundColor:e.getBackgroundColor(f,o),justifyContent:"flex-start",alignItems:"center"}},l?[l(r)]:[t("div",{style:{padding:"0 10px 0 0",display:"flex"}},[t(ws,{attrs:{className:su(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ls,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:Na},[t(da,[e.renderInputAddonBefore(),t(Ea,[t(Da,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:su(e.$props.innerClass,"input"),on:tt({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:tt({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m()])}}}):t("div",{class:Na},[t(da,[this.renderInputAddonBefore(),t(Ea,[t(Da,{class:su(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:tt({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:this.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:tt({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=pu(t.dataField,t.fieldWeights);return(n={bool:{should:hu.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},fu=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:tu,setCustomQuery:nu,setDefaultQuery:ru,recordSuggestionClick:ou})(hu),{componentType:T.searchBox,internalComponent:!0});hu.install=function(e){e.component(hu.name,fu)},hu.componentType=T.searchBox;var gu="15px",mu="15px",yu="4px",vu=Ut(Gs||(Gs=it(["\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n"]))),bu=Ut(Ws||(Ws=it(["\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n"]))),Cu=function(e){var t=e.theme;return Ut(Zs||(Zs=it(["\n\t",";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid ",";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: ",";\n\t\t\tmargin-right: calc("," * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: ",";\n\t\t\theight: ",";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: ",";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 2);\n\t\t\twidth: calc("," - ",");\n\t\t\theight: calc("," - ",");\n\t\t\tmargin-top: calc("," / -2 - "," / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"])),vu,Rn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Rn(.1,t.colors.textColor),t.colors.primaryColor,gu,gu,mu,t.colors.primaryColor,yu,gu,yu,mu,yu,mu,yu)},Ou=Gt("input")(Ks||(Ks=it(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),Cu,(function(e){return e.show?null:bu}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),_u=Gt("input")(Ys||(Ys=it(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),Cu,(function(e){return e.show?null:bu}),gu,gu,gu,mu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),wu=Gt("ul")(Xs||(Xs=it(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),Su=et.getAggsOrder,Pu=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:tt({field:o,size:i,order:Su(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),tt({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},$u=Xe.updateQuery,ku=Xe.setQueryOptions,Iu=Xe.setCustomQuery,Eu=Xe.setDefaultQuery,Au=et.getQueryOptions,Tu=et.checkValueChange,Ru=et.getClassName,xu=et.isEqual,Lu=et.extractQueryFromCustomQuery,Mu=et.getOptionsForCustomQuery,ju={name:"SingleList",props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultValue:Un.string,value:Un.value,defaultQuery:Un.func,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Search"),react:Un.react,render:Un.func,renderItem:Un.func,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),showRadio:St.bool.def(!0),showSearch:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),nestedField:Un.string,index:St.string,enableStrictSelection:St.bool.def(!1)},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){xu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return ir(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ge(String(t.key)).toLowerCase().includes(ge(e.$data.searchTerm.toLowerCase())))}));return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Ru(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(wu,{class:Ru(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Ou,{class:Ru(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:tt({},{checked:this.$data.currentValue===r})}),t("label",{class:Ru(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Ou,{class:Ru(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:tt({},{checked:e.currentValue===String(n.key)})}),t("label",{class:Ru(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:Ru(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");Tu(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=ju.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Lu(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=Mu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=ju.defaultQuery(e,t);if(n){var o=n(e,t);r=Lu(o);var i=Mu(o);pr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleList})},generateQueryOptions:function(e){var t=Au(e);return Pu(t,e)},updateQueryHandlerOptions:function(e){var t=ju.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Mu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,tt({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Da,{class:Ru(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return sr(i,this)},handleClick:function(e){var t=e;return cr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Ru(this.$props.innerClass,"noResults")||null},[ir(t)?t():t])}},computed:{hasCustomRenderer:function(){return ur(this)}},generateQueryOptions:function(e){var t=Au(e);return Pu(t,e)},defaultQuery:function(e,t){var n,r=null;(t.selectAllLabel&&t.selectAllLabel===e&&(t.showMissing&&(r={match_all:{}}),r={exists:{field:t.dataField}}),e)&&(r={term:(n={},n[t.dataField]=e,n)},t.showMissing&&t.missingLabel===e&&(r={bool:{must_not:{exists:{field:t.dataField}}}}));return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},hasInternalComponent:function(){return!0}},Qu=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:ku,updateQuery:$u,setCustomQuery:Iu,setDefaultQuery:Eu})(ju),{componentType:T.singleList,internalComponent:ju.hasInternalComponent()});ju.install=function(e){e.component(ju.name,Qu)},ju.componentType=T.singleList;var Vu=Xe.updateQuery,Du=Xe.setQueryOptions,Fu=Xe.setCustomQuery,Nu=Xe.setDefaultQuery,Uu=et.isEqual,qu=et.getQueryOptions,zu=et.checkValueChange,Bu=et.getClassName,Hu=et.extractQueryFromCustomQuery,Gu=et.getOptionsForCustomQuery,Wu={name:"MultiList",props:{defaultValue:Un.stringArray,value:Un.stringArray,queryFormat:St.oneOf(["and","or"]).def("or"),showCheckbox:St.bool.def(!0),beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultQuery:Un.func,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Search"),react:Un.react,render:Un.func,renderItem:Un.func,renderError:Un.title,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),showSearch:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),nestedField:Un.string,index:St.string},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props);var e=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(e,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||Uu(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){Uu(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){Uu(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),Uu(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return ir(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ge(String(t.key)).toLowerCase().includes(ge(e.$data.searchTerm).toLowerCase()))}));return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Bu(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(wu,{class:Bu(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(_u,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:Bu(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:tt({},{checked:!!this.currentValue[r]})}),t("label",{class:Bu(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(_u,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:Bu(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:tt({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:Bu(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:Bu(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ot(s,[o].map(at)));i=tt({},u)}}else{if(i[e]){var l=i,c=(l[e],ot(l,[e].map(at)));i=tt({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ot(d,[o].map(at)));i=tt({},p)}a=Object.keys(i)}zu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=Wu.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Hu(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=Gu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wu.defaultQuery(e,t);if(n){var o=n(e,t);r=Hu(o),pr(t.componentId,this.setCustomQuery,t,e);var i=Gu(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiList})},generateQueryOptions:function(e){var t=qu(e);return Pu(t,e)},updateQueryHandlerOptions:function(e){var t=Wu.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=Gu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,tt({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Da,{class:Bu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},handleClick:function(e){var t=e;cr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=ar(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return sr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Bu(this.$props.innerClass,"noResults")||null},[ir(t)?t():t])}},computed:{hasCustomRenderer:function(){return ur(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=qu(e);return Pu(t,e)}},Zu={setQueryOptions:Du,updateQuery:Vu,setCustomQuery:Fu,setDefaultQuery:Nu};Wu.hasInternalComponent=function(){return!0};var Ku,Yu,Xu,Ju,el=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),Zu)(Wu),{componentType:T.multiList,internalComponent:Wu.hasInternalComponent()});Wu.install=function(e){e.component(Wu.name,el)},Wu.componentType=T.multiList;var tl,nl,rl=Ut(Ku||(Ku=it(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"]))),ol=function(e){var t=e.theme;return Ut(Yu||(Yu=it(["\n\tbackground-color: ",";\n\tborder-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.borderColor,t.colors.textColor,t.colors.backgroundColor)},il=Gt("button")(Xu||(Xu=it(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?rl:null}),(function(e){return"dark"===e.themePreset&&ol})),al=Gt("span")(Ju||(Ju=it(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),sl=Ut(tl||(tl=it(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),ul=Gt("span")(nl||(nl=it(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?sl:null})),ll=et.getClassName,cl={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Un.style,items:Un.data,keyField:St.string.def("key"),labelField:St.string.def("label"),multi:St.bool,placeholder:Un.string,returnsObject:St.bool,customLabelRenderer:Un.func,hasCustomRenderer:St.bool,customRenderer:Un.func,renderItem:Un.func,renderNoResults:St.any,handleChange:Un.func,transformData:Un.func,selectedItem:Un.selectedValue,showCount:St.bool,single:St.bool,small:St.bool.def(!1),themePreset:Un.themePreset,showSearch:St.bool,showClear:St.bool,searchPlaceholder:St.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,d=n.footer,p=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||ge(String(t[a])).toLowerCase().includes(ge(e.$data.searchTerm.toLowerCase())))}));return t(Ya,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,C=n.getInputEvents;return t("div",{class:Na},[t(il,{on:tt({},tt({},v({onClick:e.toggle}))),class:ll(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[p?p(o):t("div",[o?e.renderToString(o):i]),t(ul,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Fa(u,e.theme)+" "+(e.$props.small?"small":"")+" "+ll(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:C({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:tt({},r({item:n})),on:tt({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:ll(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(al,{class:ll(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),d]):null])}}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:ll(this.$props.innerClass,"noResults")||null},[ir(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,a=n.themePreset,s=n.innerClass,u=t(Da,Hr([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:ll(s,"input")},e]));return i?t(Ea,[u,this.searchTerm&&t(qa,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(za,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(ds)])])]):u}}},dl=Xe.updateQuery,pl=Xe.setQueryOptions,hl=Xe.setCustomQuery,fl=Xe.setDefaultQuery,gl=et.getQueryOptions,ml=et.checkValueChange,yl=et.checkPropChange,vl=et.getClassName,bl=et.isEqual,Cl=et.getCompositeAggsQuery,Ol=et.extractQueryFromCustomQuery,_l=et.getOptionsForCustomQuery,wl={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultQuery:Un.func,defaultValue:Un.string,value:Un.value,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Select a value"),react:Un.react,renderLabel:Un.func,render:Un.func,renderItem:Un.func,renderError:Un.title,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),showSearch:St.bool.def(!1),showClear:St.bool.def(!1),showLoadMore:St.bool.def(!1),loadMoreLabel:St.oneOfType([St.string,St.any]).def("Load More"),nestedField:Un.string,index:St.string,searchPlaceholder:St.string.def("Type here to search...")},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&yl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){bl(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,d=this.$scopedSlots.renderLabel||a,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?ir(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:vl(this.$props.innerClass,"title")||""},[this.$props.title]),e(cl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return tt({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Fn}},[e(Dn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:d}})])):p&&ir(p)?e("div",[p()]):p&&!ir(p)?p:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);ml(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=wl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Ol(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=_l(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=wl.defaultQuery(e,t);if(n){var o=n(e,t);r=Ol(o),pr(t.componentId,this.setCustomQuery,t,e);var i=_l(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleDropdownList})},generateQueryOptions:function(e,t){var n=gl(e);return e.showLoadMore?Cl({query:n,props:e,after:t}):Pu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=wl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=_l(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,tt({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return sr(r,this)}},computed:{hasCustomRenderer:function(){return ur(this)}},defaultQuery:function(e,t){var n=null;if(t.selectAllLabel&&t.selectAllLabel===e)t.showMissing&&(n={match_all:{}}),n={exists:{field:t.dataField}};else if(e){var r;t.showMissing&&t.missingLabel===e&&(n={bool:{must_not:{exists:{field:t.dataField}}}}),n={term:(r={},r[t.dataField]=e,r)}}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=gl(e);return e.showLoadMore?Cl({query:n,props:e,after:t}):Pu(n,e)},hasInternalComponent:function(){return!0}},Sl=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:pl,updateQuery:dl,setCustomQuery:hl,setDefaultQuery:fl})(wl),{componentType:T.singleDropdownList,internalComponent:wl.hasInternalComponent()});wl.install=function(e){e.component(wl.name,Sl)},wl.componentType=T.singleDropdownList;var Pl=Xe.updateQuery,$l=Xe.setQueryOptions,kl=Xe.setCustomQuery,Il=Xe.setDefaultQuery,El=et.isEqual,Al=et.getQueryOptions,Tl=et.checkValueChange,Rl=et.checkPropChange,xl=et.getClassName,Ll=et.getCompositeAggsQuery,Ml=et.extractQueryFromCustomQuery,jl=et.getOptionsForCustomQuery,Ql={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultValue:Un.stringArray,value:Un.stringArray,defaultQuery:Un.func,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Select values"),queryFormat:St.oneOf(["and","or"]).def("or"),react:Un.react,renderLabel:Un.func,render:Un.func,renderItem:Un.func,renderError:Un.title,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),showSearch:St.bool.def(!1),showClear:St.bool.def(!1),showLoadMore:St.bool.def(!1),loadMoreLabel:St.oneOfType([St.string,St.any]).def("Load More"),nestedField:Un.string,index:St.string,searchPlaceholder:St.string.def("Type here to search...")},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),El(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Rl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){El(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,p=[];return u&&this.error?ir(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(p=[{key:this.$props.selectAllLabel}]),e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:xl(this.$props.innerClass,"title")||""},[this.$props.title]),e(cl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(p,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return tt({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Fn}},[e(Dn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):d&&ir(d)?e("div",[d()]):d&&!ir(d)?d:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=ar(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ot(s,[o].map(at)));i=tt({},u)}}else{if(i[e]){var l=i,c=(l[e],ot(l,[e].map(at)));i=tt({},c)}else i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ot(d,[o].map(at)));i=tt({},p)}a=Object.keys(i)}Tl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=tt({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=Ql.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Ml(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=jl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ql.defaultQuery(e,t);if(n){var o=n(e,t);r=Ml(o),pr(t.componentId,this.setCustomQuery,t,e);var i=jl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiDropdownList})},generateQueryOptions:function(e,t){var n=Al(e);return e.showLoadMore?Ll({query:n,props:e,after:t}):Pu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Ql.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=jl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,tt({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return sr(r,this)}},computed:{hasCustomRenderer:function(){return ur(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Al(e);return e.showLoadMore?Ll({query:n,props:e,after:t}):Pu(n,e)},hasInternalComponent:function(){return!0}},Vl=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:$l,updateQuery:Pl,setCustomQuery:kl,setDefaultQuery:Il})(Ql),{componentType:T.multiDropdownList,internalComponent:Ql.hasInternalComponent()});Ql.install=function(e){e.component(Ql.name,Vl)},Ql.componentType=T.multiDropdownList;var Dl=Xe.updateQuery,Fl=Xe.setQueryOptions,Nl=Xe.setCustomQuery,Ul=et.isEqual,ql=et.checkValueChange,zl=et.getClassName,Bl=et.getOptionsFromQuery,Hl=et.handleA11yAction,Gl={name:"ToggleButton",props:{componentId:Un.stringRequired,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.any,value:Un.stringOrArray,filterLabel:Un.string,nestedField:Un.string,innerClass:Un.style,multiSelect:St.bool,react:Un.react,showFilter:St.bool,title:Un.title,URLParams:St.bool,renderItem:Un.func,index:St.string,enableStrictSelection:St.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=Gl.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(Gl.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){Ul(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)Ul(this.$data.currentValue,e)||Ul(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;Ul(n,this.selectedValue)||Ul(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?Gl.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ql(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=Gl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,Bl(r(e,t)),!1),pr(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return Ul(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$createElement,r=this.$scopedSlots.renderItem||this.renderItem,o=this.$data.currentValue.some((function(t){return t.value===e.value}));return r?r({item:e,isSelected:o,handleClick:function(){return t.handleClick(e)}}):n(Dn,{class:zl(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return Hl(n,(function(){return t.handleClick(e)}))}},key:e.value,attrs:{primary:o,large:!0,tabIndex:o?"-1":"0"}},[e.label])}},render:function(){var e=this,t=arguments[0];return t(Xa,{class:Mn},[this.$props.title&&t(Gr,{class:zl(this.$props.innerClass,"title")},[this.$props.title]),this.$props.data.map((function(t){return e.renderButton(t)}))])},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){var n=null;return e&&e.length&&(n={bool:{boost:1,minimum_should_match:1,should:e.map((function(e){var n;return{term:(n={},n[t.dataField]=e.value,n)}}))}}),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n}},Wl=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:Dl,setQueryOptions:Fl,setCustomQuery:Nl})(Gl),{componentType:T.toggleButton});Gl.install=function(e){e.component(Gl.name,Wl)},Gl.componentType=T.toggleButton;var Zl=["options"],Kl=Xe.updateQuery,Yl=Xe.setQueryOptions,Xl=Xe.setCustomQuery,Jl=Xe.setDefaultQuery,ec=et.parseHits,tc=et.isEqual,nc=et.getCompositeAggsQuery,rc=et.getResultStats,oc=et.extractQueryFromCustomQuery,ic=et.getOptionsForCustomQuery,ac={name:"ReactiveComponent",props:{componentId:Un.stringRequired,aggregationField:Un.string,aggregationSize:St.number,size:St.number,defaultQuery:Un.func,customQuery:Un.func,filterLabel:Un.string,react:Un.react,showFilter:St.bool.def(!0),URLParams:St.bool.def(!1),distinctField:Un.string,distinctFieldConfig:Un.props,index:St.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,pr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),d=oc(c),p=c?ic(c):null;p?this.setQueryOptions(r,tt({},p,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:d,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=ot(n,Zl),i=o.query;i&&i.query&&(i=i.query);var a=tt({},r,{query:i}),s=a;i&&i.id&&(s=i),e.setCustomQuery(t.componentId,s),r&&e.setQueryOptions(t.componentId,tt({},e.getAggsQuery(),r),!1),e.updateQuery(tt({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){dr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=oc(this.$defaultQuery),f=ic(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,tt({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){tc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){tc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){tc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){tc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){tc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){tc(e,t)||this.$emit("data",this.getData())},total:function(e,t){tc(e,t)||this.$emit("data",this.getData())},time:function(e,t){tc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!hr(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=oc(this.$defaultQuery),r=ic(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,tt({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),dr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!hr(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=oc(this.$customQuery),o=ic(this.$customQuery);o?this.setQueryOptions(n,tt({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),pr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=tt({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:nc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=ec(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return rc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},sc=Rr(or((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Yl,updateQuery:Kl,setCustomQuery:Xl,setDefaultQuery:Jl})(ac),{componentType:T.reactiveComponent});ac.install=function(e){e.component(ac.name,sc)},ac.componentType=T.reactiveComponent;var uc=Xe.setValue,lc=Xe.clearValues,cc=Xe.resetValuesToDefault,dc=et.getClassName,pc=et.handleA11yAction,hc={name:"SelectedFilters",props:{className:St.string.def(""),clearAllLabel:St.string.def("Clear All"),innerClass:Un.style,showClearAll:St.bool.def(!0),title:Un.title,resetToDefault:St.bool.def(!1),clearAllBlacklistComponents:St.array,resetToValues:St.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(Xa,{class:xn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(Gr,{class:dc(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r?t(Dn,{class:dc(this.$props.innerClass,"button")||"",on:tt({},{click:this.clearValues,keypress:function(t){return pc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilters:function(){var e=this,t=this.$createElement,n=this.selectedValues;return Object.keys(n).filter((function(t){return e.components.includes(t)&&n[t].showFilter})).map((function(r,o){var i=n[r],a=i.label,s=i.value,u=Array.isArray(s);if(a&&(u&&s.length||!u&&s)){var l=e.renderValue(s,u);return t(Dn,{class:dc(e.$props.innerClass,"button")||"",key:r+"-"+(o+1),on:tt({},{click:function(){return e.remove(r,s)},keypress:function(t){return pc(t,(function(){return e.remove(r,s)}))}}),attrs:{tabIndex:"0"}},[t("span",[n[r].label,": ",l]),t("span",["✕"])])}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},fc=or((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:lc,setValue:uc,resetValuesToDefault:cc})(hc);hc.install=function(e){e.component(hc.name,fc)};var gc=Xe.updateQuery,mc=Xe.setQueryOptions,yc=Xe.setCustomQuery,vc=et.isEqual,bc=et.checkValueChange,Cc=et.getClassName,Oc=et.getOptionsFromQuery,_c={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.string,value:Un.value,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),showRadio:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),nestedField:Un.string,index:St.string},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){vc(e,t)||this.setValue(e)},selectedValue:function(e){vc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Cc(this.$props.innerClass,"title")},[this.$props.title]),t(wu,{class:Cc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Ou,{class:Cc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Cc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=_c.parseValue(e,t);bc(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=_c.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Oc(n(e,t));pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},wc=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:gc,setQueryOptions:mc,setCustomQuery:yc})(_c),{componentType:T.singleRange});_c.install=function(e){e.component(_c.name,wc)},_c.componentType=T.singleRange;var Sc=Xe.updateQuery,Pc=Xe.setQueryOptions,$c=Xe.setCustomQuery,kc=et.isEqual,Ic=et.checkValueChange,Ec=et.getClassName,Ac=et.getOptionsFromQuery,Tc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.stringArray,value:Un.stringArray,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),nestedField:Un.string,index:St.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=ar(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Tc.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:tt({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],ot(u,[e].map(at)));a=l}else{var c,d=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,d),a=tt({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};Ic(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Tc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Ac(n(e,t));pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){kc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){kc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Ec(this.$props.innerClass,"title")},[this.$props.title]),t(wu,{class:Ec(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(_u,{class:Ec(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:tt({},{checked:e.selectedValues[n.label]}),on:tt({},{click:e.handleClick})}),t("label",{class:Ec(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},Rc=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Sc,setQueryOptions:Pc,setCustomQuery:$c})(Tc),{componentType:T.multiRange});Tc.install=function(e){e.component(Tc.name,Rc)},Tc.componentType=T.multiRange;var xc,Lc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Gr,Hr([{},this.$props]),[t])},install:function(e){e.component(Lc.name,Lc)}},Mc=["src"],jc={name:"ResultCardImage",props:{src:St.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ot(t,Mc);return e(po,Hr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(jc.name,jc)}},Qc={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Hr([{},n]),[r])},install:function(e){e.component(Qc.name,Qc)}},Vc=["href","target"],Dc={name:"ResultCard",components:{ResultCardTitle:Lc,ResultCardImage:jc,ResultCardDescription:Qc},props:{target:St.string.def("_blank"),href:Un.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ot(n,Vc);return e(ho,Hr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(Dc.name,Dc),e.component(Lc.name,Lc),e.component(jc.name,jc),e.component(Qc.name,Qc)}},Fc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Hr([{},n]),[r])},install:function(e){e.component(Fc.name,Fc)}},Nc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Hr([{},n]),[r])},install:function(e){e.component(Nc.name,Nc)}},Uc=["src","small"],qc={name:"ResultListImage",props:{src:St.string.isRequired,small:St.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ot(t,Uc);return e(Kr,Hr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(qc.name,qc)}},zc={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Gr,Hr([{},this.$props]),[t])},install:function(e){e.component(zc.name,zc)}},Bc=["href","target"],Hc={name:"ResultList",props:{href:Un.string,target:St.string.def("_blank")},components:{ResultListContent:Fc,ResultListDescription:Nc,ResultListImage:qc,ResultListTitle:zc},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===qc.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ot(t,Bc),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(Yr,Hr([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(Hc.name,Hc),e.component(Fc.name,Fc),e.component(Nc.name,Nc),e.component(qc.name,qc),e.component(zc.name,zc)}},Gc={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},Wc=Gt("div")(xc||(xc=it(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),Zc=function(){var e={NoSSR:Gc};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=Pt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},Kc=Xe.updateQuery,Yc=Xe.setQueryOptions,Xc=Xe.setCustomQuery,Jc=et.checkValueChange,ed=et.getClassName,td=et.getOptionsFromQuery,nd=et.isEqual,rd={name:"RangeSlider",components:Zc(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Un.func,className:St.string.def(""),range:St.shape({start:St.integer.def(0),end:St.integer.def(10)}),rangeLabels:Un.rangeLabels,componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.range,value:Un.range,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),sliderOptions:St.object.def({}),nestedField:Un.string,index:St.string},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);Jc(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=rd.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=td(n(e,t));pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],d=l===s&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!d,URLParams:t.URLParams,componentType:T.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(rd.parseValue(e,this.$props))},value:function(e,t){nd(e,t)||this.handleChange(rd.parseValue(e,this.$props))},selectedValue:function(e){nd(this.$data.currentValue,e)||(this.handleChange(rd.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(rd.parseValue(r,this.$props)):t?this.handleChange(rd.parseValue(t,this.$props)):n&&this.handleChange(rd.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:ed(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(Gc,[e(Wc,{class:ed(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:tt({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:ed(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:ed(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},od=Rr(or((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Kc,setQueryOptions:Yc,setCustomQuery:Xc})(rd),{componentType:T.rangeSlider});rd.install=function(e){e.component(rd.name,od)},rd.componentType=T.rangeSlider;var id=Xe.addComponent,ad=Xe.removeComponent,sd=Xe.watchComponent,ud=Xe.updateQuery,ld=Xe.setQueryListener,cd=Xe.setQueryOptions,dd=Xe.setComponentProps,pd=Xe.setCustomQuery,hd=Xe.updateComponentProps,fd=et.checkValueChange,gd=et.getClassName,md=et.isEqual,yd=et.checkSomePropChange,vd=et.extractQueryFromCustomQuery,bd=et.getOptionsForCustomQuery,Cd={name:"DynamicRangeSlider",components:Zc(),props:{beforeValueChange:Un.func,className:St.string.def(""),rangeLabels:Un.func,componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.func,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),destroyOnUnmount:St.bool,showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),sliderOptions:St.object.def({}),nestedField:Un.string,index:St.string,value:Un.range},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,T.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,T.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Cd.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Cd.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Cd.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];fd(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Cd.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=vd(n);r&&(t=r);var o=bd(n);pr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},a=i.start,s=i.end,u=e[0],l=e[1],c=u===a&&l===s;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:T.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=lr(e);yd(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,T.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,T.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!md(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Cd.parseValue(t,this.$props))}},range:function(e,t){if(!md(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){md(e,t)||this.handleChange(Cd.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:gd(this.$props.innerClass,"title")},[this.$props.title]),e(Gc,[e(Wc,{class:gd(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:tt({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:gd(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:gd(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},Od=or((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:id,removeComponent:ad,updateQuery:ud,watchComponent:sd,setQueryListener:ld,setQueryOptions:cd,setComponentProps:dd,setCustomQuery:pd,updateComponentProps:hd})(Cd);Cd.install=function(e){e.component(Cd.name,Od)},Cd.componentType=T.dynamicRangeSlider;var _d=et.getSearchState,wd=function(e){return void 0===e&&(e={}),tt({},e,{props:e.componentProps})},Sd=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Pd=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return tt({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},$d={name:"StateProvider",props:{onChange:St.func,componentIds:St.oneOfType([St.string,St.arrayOf(St.string)]),includeKeys:St.arrayOf(St.string).def(["hits","value","aggregations","error"]),strict:St.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Pd(_d(wd(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog,dependencyTree:this.dependencyTree,componentProps:this.componentProps,hits:this.hits,aggregations:this.aggregations,isLoading:this.isLoading,error:this.error,promotedResults:this.promotedResults,rawData:this.rawData}}},watch:{searchState:function(e,t){this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Pd(_d(wd(this.searchStateProps)),this.includeKeys))}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e}):null}},kd=or((function(e,t){return{selectedValues:Sd(e.selectedValues,t),queryLog:Sd(e.queryLog,t),dependencyTree:Sd(e.dependencyTree,t),componentProps:Sd(e.props,t),hits:Sd(e.hits,t),aggregations:Sd(e.aggregations,t),isLoading:Sd(e.isLoading,t),error:Sd(e.error,t),promotedResults:Sd(e.promotedResults,t),customData:Sd(e.customData,t),settings:Sd(e.settings,t),rawData:Sd(e.rawData,t)}}),{})($d);$d.install=function(e){e.component($d.name,kd)};var Id=o((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=!1,function(e,t){if("undefined"!=typeof document){if(r)throw new Error("You already started the loading of google maps");r=!0;var o=document.createElement("SCRIPT");if("object"!==n(e))throw new Error("options should be an object");Object.prototype.isPrototypeOf.call(Array.prototype,e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var i="https://maps.googleapis.com/";"boolean"==typeof t&&!0===t&&(i="https://maps.google.cn/");var a=Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&"),s="".concat(i,"maps/api/js?").concat(a);o.setAttribute("src",s),o.setAttribute("async",""),o.setAttribute("defer",""),document.head.appendChild(o)}});t.default=o}));r(Id);var Ed=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}}));r(Ed);var Ad=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){function o(){return t.gmapApi={},window.google}if(n.load)return(0,r.default)((function(){return"undefined"==typeof window?new Promise((function(){})).then(o):new Promise((function(t,r){try{window.vueGoogleMapsInit=t,e(n.load,n.loadCn)}catch(e){r(e)}})).then(o)}));var i=new Promise((function(e){"undefined"!=typeof window&&(window.vueGoogleMapsInit=e)})).then(o);return(0,r.default)((function(){return i}))}};var n,r=(n=Ed)&&n.__esModule?n:{default:n}}));r(Ad);var Td=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autobindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}}));r(Td);var Rd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}}));r(Rd);var xd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getPropsValues=function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.bindProps=function(e,t,n){Object.keys(n).forEach((function(i){var a=n[i],s=a.twoWay,u=a.type,l=a.trackProperties;if(!a.noBind){var c="set".concat(o(i)),d="get".concat(o(i)),p="".concat(i.toLowerCase(),"_changed"),h=e[i];if(void 0===t[c])throw new Error("".concat(c," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));u===Object&&l?(0,r.default)(e,l.map((function(e){return"".concat(i,".").concat(e)})),(function(){t[c](e[i])}),void 0!==e[i]):e.$watch(i,(function(){var n=e[i];t[c](n)}),{immediate:void 0!==h,deep:u===Object}),s&&(e.$gmapOptions.autobindAllEvents||e.$listeners[p])&&t.addListener(p,(function(){e.$emit(p,t[d]())}))}}))};var n,r=(n=Rd)&&n.__esModule?n:{default:n};function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}}));r(xd);xd.getPropsValues,xd.bindProps;var Ld=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}}})),Md=r(Ld),jd=o((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.entries(e).map((function(e){var t=n(e,2),r=t[0],o=t[1],i={};return"type"in o&&(i.type=o.type),"default"in o&&(i.default=o.default),"required"in o&&(i.required=o.required),[r,i]})).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return e[o]=i,e}),{})}}));r(jd);var Qd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.mappedProps,i=e.name,s=e.ctr,d=e.ctrArgs,p=e.events,h=e.beforeCreate,f=e.afterCreate,g=e.props,m=c(e,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),y="$".concat(i,"Promise"),v="$".concat(i,"Object");return function(e,t){if(!e)throw new Error(t)}(!(m.props instanceof Array),"`props` should be an object, not Array"),u({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[r.default],props:u({},g,{},(0,o.default)(t)),render:function(){return""},provide:function(){var e=this,r=this.$mapPromise.then((function(n){e.$map=n;var r=u({},e.options,{map:n},(0,xd.getPropsValues)(e,t)),o=(r.options,c(r,["options"]));if(h){var i=h.bind(e)(o);if(i instanceof Promise)return i.then((function(){return{options:o}}))}return{options:o}})).then((function(r){var o,i,u=r.options,l=s();return e[v]=d?new((o=Function.prototype.bind).call.apply(o,[l,null].concat(function(e){if(Array.isArray(e))return a(e)}(i=d(u,(0,xd.getPropsValues)(e,g||{})))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):new l(u),(0,xd.bindProps)(e,e[v],t),(0,n.default)(e,e[v],p),f&&f.bind(e)(e[v]),e[v]}));return this[y]=r,l({},y,r)},destroyed:function(){this[v]&&this[v].setMap&&this[v].setMap(null)}},m)};var n=i(Td),r=i(Ld),o=i(jd);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}}));r(Qd);var Vd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={url:{twoWay:!1,type:String},map:{twoWay:!0,type:Object}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],name:"kmlLayer",ctr:function(){return google.maps.KmlLayer}});t.default=i}));r(Vd);var Dd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},i=(0,r.default)({mappedProps:o,events:[],name:"heatmapLayer",ctr:function(){return google.maps.visualization.HeatmapLayer}});t.default=i}));r(Dd);var Fd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;this.$clusterPromise&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n}))}});t.default=i})),Nd=r(Fd),Ud=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},s=(0,r.default)({mappedProps:a,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",(function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),i=[],a=function(){e.$emit("path_changed",e.$polylineObject.getPath())};i.push([r,r.addListener("insert_at",a)]),i.push([r,r.addListener("remove_at",a)]),i.push([r,r.addListener("set_at",a)]),t=function(){i.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=s}));r(Ud);var qd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},u=(0,r.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:s,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){if(!e.path){var t=e;t.path;e=a(t,["path"])}if(!e.paths){var n=e;n.paths;e=a(n,["paths"])}},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var i=function(){t.$emit("paths_changed",e.getPaths())},a=[],s=e.getPaths(),u=0;u<s.getLength();u+=1){var l=s.getAt(u);a.push([l,l.addListener("insert_at",i)]),a.push([l,l.addListener("remove_at",i)]),a.push([l,l.addListener("set_at",i)])}a.push([s,s.addListener("insert_at",i)]),a.push([s,s.addListener("remove_at",i)]),a.push([s,s.addListener("set_at",i)]),n=function(){a.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var i=e.getPath(),a=[],s=function(){t.$emit("path_changed",e.getPath())};a.push([i,i.addListener("insert_at",s)]),a.push([i,i.addListener("remove_at",s)]),a.push([i,i.addListener("set_at",s)]),n=function(){a.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=u}));r(qd);var zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(zd);var Bd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(Bd);var Hd,Gd=(Hd=require("../components-implementation/drawing-manager")).default||Hd;Gd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(e.$slots,"default",{setDrawingMode:e.setDrawingMode,deleteSelection:e.deleteSelection})])},Gd.__file="node_modules/gmap-vue/dist/components/drawing-manager.vue";var Wd=Object.freeze({__proto__:null,default:Gd}),Zd=function(e){return e.default||e}(require("../components-implementation/info-window")),Kd={ref:"flyaway"};Zd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Kd,[t.createCommentVNode(" so named because it will fly away to another component "),t.renderSlot(e.$slots,"default")],512)])},Zd.__file="node_modules/gmap-vue/dist/components/info-window.vue";var Yd=Object.freeze({__proto__:null,default:Zd}),Xd=function(e){return e.default||e}(require("../components-implementation/map")),Jd={class:"vue-map-container"},ep={ref:"vue-map",class:"vue-map"},tp={class:"vue-map-hidden"};function np(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}np("\n.vue-map-container {\n position: relative;\n}\n.vue-map-container .vue-map {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n.vue-map-hidden {\n display: none;\n}\n"),Xd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",Jd,[t.createElementVNode("div",ep,null,512),t.createElementVNode("div",tp,[t.renderSlot(e.$slots,"default")]),t.renderSlot(e.$slots,"visible")])},Xd.__file="node_modules/gmap-vue/dist/components/map.vue";var rp=Object.freeze({__proto__:null,default:Xd}),op=function(e){return e.default||e}(require("../components-implementation/street-view-panorama")),ip={class:"vue-street-view-pano-container"},ap={ref:"vue-street-view-pano",class:"vue-street-view-pano"};np("\n.vue-street-view-pano-container {\n position: relative;\n}\n.vue-street-view-pano-container .vue-street-view-pano {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n"),op.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",ip,[t.createElementVNode("div",ap,null,512),t.renderSlot(e.$slots,"default")])},op.__file="node_modules/gmap-vue/dist/components/street-view-panorama.vue";var sp=Object.freeze({__proto__:null,default:op}),up=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}}));r(up);var lp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=up)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},a={mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",(function(){t.value=e.defaultPlace})),this.$gmapApiPromiseLazy().then((function(){var t=(0,xd.getPropsValues)(e,i);if(e.selectFirstOnEnter&&(0,r.default)(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=o(i,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,xd.bindProps)(e,e.autoCompleter,n),e.autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.autoCompleter.getPlace())}))}))},created:function(){throw new Error("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:i};t.default=a})),cp=r(lp),dp=["textContent"],pp=["placeholder"];cp.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("label",null,[t.createElementVNode("span",{textContent:t.toDisplayString(e.label)},null,8,dp),t.createElementVNode("input",{type:"text",placeholder:e.placeholder,class:t.normalizeClass(e.className),ref:"input"},null,10,pp)])},cp.__file="node_modules/gmap-vue/dist/components/place-input.vue";var hp=Object.freeze({__proto__:null,default:cp,__moduleExports:lp}),fp=function(e){return e.default||e}(require("../components-implementation/autocomplete")),gp={key:0};fp.render=function(e,n,r,o,i,a){return e.$scopedSlots.input?(t.openBlock(),t.createElementBlock("span",gp,[t.renderSlot(e.$slots,"input",{attrs:e.$attrs,listeners:e.$listeners,ref:e.input})])):e.$scopedSlots.input?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("input",t.mergeProps({key:1,ref:"input"},e.$attrs,t.toHandlers(e.$listeners)),null,16))},fp.__file="node_modules/gmap-vue/dist/components/autocomplete.vue";var mp=Object.freeze({__proto__:null,default:fp}),yp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}}}));r(yp);var vp=i(Wd),bp=i(Yd),Cp=i(rp),Op=i(sp),_p=i(hp),wp=i(mp),Sp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(e,t){t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({installComponents:!0,autobindAllEvents:!1},t),w=new e({data:{gmapApi:null}});var y=new e,v=(0,r.default)(n.default,w)(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=y,this.$gmapOptions=t,this.$gmapApiPromiseLazy=v}}),e.$gmapDefaultResizeBus=y,e.$gmapApiPromiseLazy=v,t.installComponents&&(e.component("GmapMap",h.default),e.component("GmapMarker",a.default),e.component("GmapInfoWindow",p.default),e.component("GmapHeatmapLayer",i.default),e.component("GmapKmlLayer",o.default),e.component("GmapPolyline",s.default),e.component("GmapPolygon",u.default),e.component("GmapCircle",l.default),e.component("GmapRectangle",c.default),e.component("GmapDrawingManager",d.default),e.component("GmapAutocomplete",m.default),e.component("GmapPlaceInput",g.default),e.component("GmapStreetViewPanorama",f.default))},t.gmapApi=function(){return w.gmapApi&&window.google},Object.defineProperty(t,"loadGmapApi",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"KmlLayer",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HeatmapLayer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"DrawingManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"InfoWindow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"StreetViewPanorama",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"PlaceInput",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Autocomplete",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"MapElementMixin",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"MapElementFactory",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"MountableMixin",{enumerable:!0,get:function(){return b.default}}),t.Cluster=void 0;var n=C(Id),r=C(Ad),o=C(Vd),i=C(Dd),a=C(Fd),s=C(Ud),u=C(qd),l=C(zd),c=C(Bd),d=C(vp),p=C(bp),h=C(Cp),f=C(Op),g=C(_p),m=C(wp),y=C(Ld),v=C(Qd),b=C(yp);function C(e){return e&&e.__esModule?e:{default:e}}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Cluster=void 0;var w=null})),Pp=r(Sp),$p=Sp.install,kp=Sp.gmapApi,Ip=Sp.Cluster,Ep=Object.freeze({__proto__:null,default:Pp,__moduleExports:Sp,install:$p,gmapApi:kp,Cluster:Ip}),Ap=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}}));r(Ap);for(var Tp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(Td),r=s(yp),o=s(Ap),i=s(Rd),a=s(jd);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},h=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],f=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){var e;this.$mapObject&&(e=this.$mapObject)[t].apply(e,arguments)},e}),{}),g={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}},m={mixins:[r.default],props:(0,a.default)(p),provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},beforeDestroy:function(){var e=this.getRecycleKey();window[e]&&(window[e].div=this.$mapObject.getDiv())},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],r=c({},e.options,{},(0,xd.getPropsValues)(e,p)),a=(r.options,u(r,["options"])),s=e.getRecycleKey();return e.options.recycle&&window[s]?(t.appendChild(window[s].div),e.$mapObject=window[s].map,e.$mapObject.setOptions(a)):(e.$mapObject=new google.maps.Map(t,a),window[s]={map:e.$mapObject}),(0,xd.bindProps)(e,e.$mapObject,p),(0,n.default)(e,e.$mapObject,h),(0,o.default)((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()})),(0,i.default)(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:c({},g,{},f,{getRecycleKey:function(){return this.options.recycle?"__gmc__"+this.options.recycle:"__gmc__"}})};t.default=m}))),Rp="0123456789bcdefghjkmnpqrstuvwxyz",xp={},Lp=0;Lp<Rp.length;Lp++)xp[Rp.charAt(Lp)]=Lp;var Mp=[0,5,7,8,11,12,13,15,16,17,18],jp=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Mp[i]}else void 0===n&&(n=9);for(var a,s=[],u=0,l=0,c=0,d=90,p=-90,h=180,f=-180;s.length<n;)if(l%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(d+p)/2)?(c=1+(c<<1),p=a):(c=0+(c<<1),d=a),l++,5===++u){var g=Rp[c];s.push(g),u=0,c=0}return s.join("")},Qp=function(e,t,n){n=n||52;for(var r,o=0,i=90,a=-90,s=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(s+u)/2)?(l+=1,u=r):s=r:e>(r=(i+a)/2)?(l+=1,a=r):i=r,o++;return l},Vp=function(e){for(var t,n=!0,r=90,o=-90,i=180,a=-180,s=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();s=xp[c];for(var d=4;d>=0;d--){var p=s>>d&1;n?(t=(i+a)/2,1===p?a=t:i=t):(t=(r+o)/2,1===p?o=t:r=t),n=!n}}return[o,a,r,i]},Dp=function(e,t){for(var n=90,r=-90,o=180,i=-180,a=0,s=(t=t||52)/2,u=0;u<s;u++)a=Fp(e,2*(s-u)-1),0===Fp(e,2*(s-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Fp(e,t){return e/Math.pow(2,t)&1}var Np=function(e){var t=Vp(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},Up=function(e,t){var n=Dp(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},qp=function(e,t){var n=Np(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=Bp(o),r=Hp(r),jp(r,o,e.length)},zp=function(e,t,n){var r=Up(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=Bp(i),o=Hp(o),Qp(o,i,n)};function Bp(e){return e>180?e%180-180:e<-180?180+e%180:e}function Hp(e){return e>90?90:e<-90?-90:e}var Gp={ENCODE_AUTO:"auto",encode:jp,encode_uint64:Qp,encode_int:Qp,decode:Np,decode_int:Up,decode_uint64:Up,decode_bbox:Vp,decode_bbox_uint64:Dp,decode_bbox_int:Dp,neighbor:qp,neighbor_int:zp,neighbors:function(e){var t,n,r=e.length,o=Np(e),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*s,n=Bp(n=a+o*u),t=Hp(t),jp(t,n,r)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},neighbors_int:function(e,t){var n,r,o=Up(e,t=t||52),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*s,r=Bp(r=a+o*u),n=Hp(n),Qp(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=jp(e,t,o=o||9),a=jp(n,r,o),s=Np(i),u=2*s.error.latitude,l=2*s.error.longitude,c=Vp(i),d=Vp(a),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(qp(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Qp(e,t,o=o||52),a=Qp(n,r,o),s=Up(i,o),u=2*s.error.latitude,l=2*s.error.longitude,c=Dp(i,o),d=Dp(a,o),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(zp(i,[g,m],o));return f}},Wp=Xe.setStreaming,Zp=Xe.setQueryOptions,Kp=Xe.updateQuery,Yp=Xe.loadMore,Xp=Xe.setValue,Jp=Xe.updateComponentProps,eh=Xe.setDefaultQuery,th=Xe.recordResultClick,nh=Xe.setMapData,rh=et.isEqual,oh=et.getQueryOptions,ih=et.getClassName,ah=et.parseHits,sh=et.getOptionsFromQuery,uh=et.getResultStats,lh={lat:37.7749,lng:122.4194},ch={width:"100%",height:"100vh",position:"relative"};function dh(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return tt({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function ph(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=Gp.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var hh={name:"ReactiveMap",props:{className:Un.string,componentId:Un.stringRequired,dataField:Un.stringRequired,react:Un.react,size:Un.number,sortBy:Un.sortBy,URLParams:St.bool,autoCenter:St.bool,getMapRef:St.func.isRequired,center:Un.location,defaultCenter:Un.location,defaultPin:Un.string,defaultZoom:St.number.def(13),defaultQuery:Un.func,innerClass:Un.style,loader:Un.title,render:Un.func,renderItem:Un.func,renderError:Un.title,pages:St.number.def(5),currentPage:St.number.def(0),pagination:St.bool,showMarkers:St.bool,defaultSearchAsMove:St.bool,showSearchAsMove:St.bool,defaultRadius:Un.number,unit:Un.string,autoClosePopover:St.bool,renderMap:St.func.isRequired,renderPopover:St.func,calculateMarkers:St.func,searchAsMoveLabel:St.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return tt({},uh(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return ur(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!hr(e,t,null,this.$props)){var n=oh(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),sh(this.$defaultQuery)&&(n=tt({},n,sh(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){rh(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){rh(e,t)||this.$emit("data",this.getData())},time:function(e,t){rh(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!rh(e,t)){var r=this.promotedResults,o=this.hits,i=ah(o)||[],a=ah(r)||[],s=i;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(s=s.filter((function(e){return!u.includes(e._id)}))),s=[].concat(a,s)}s=s.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return tt({},e,((t={})[n.dataField]=ph(e[n.dataField]),t))})),this.filteredResults=this.addNoise(s),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!rh(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(lh)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=tt({},e),i=t.parseLocation(e[t.dataField]),a=JSON.stringify(i),s=n[a]||0;o[t.dataField]=s?dh(i,s):i,r=[].concat(r,[o]),n[a]=s+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,a=0;n.forEach((function(e){if(e){var t,n,r=ph(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var s=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=s,i+=u,a+=l}})),o/=r,i/=r,a/=r;var s=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*s/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=ah(o)||[],a=ah(t)||[],s=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=tt({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return sr(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=oh(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,tt({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var a;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var s={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=s;var u={geo_bounding_box:(a={},a[this.dataField]=s,a)};if(this.$defaultQuery){var l=this.$defaultQuery.query;if(l)return{must:[u,l]}}return u}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=oh(this.$props);this.from=e,this.loadMoreAction(this.componentId,tt({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return tt({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?ir(e)?e(this.error):e:null},renderSearchAsMove:function(){var e=this.$createElement;return this.showSearchAsMove?e("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},attrs:{className:ih(this.innerClass,"checkboxContainer")||null}},[e(_u,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:ih(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:ih(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Gn,{attrs:{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass}})}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},T.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},T.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=oh(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=tt({},t,sh(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,a=this.center||this.defaultCenter,s=this.getArrPosition(a),u={distance:this.defaultRadius,coordinates:s.lat+", "+s.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:tt({},ch,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&t,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},fh=Rr(or((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:Yp,setPageURL:Xp,setQueryOptions:Zp,setStreaming:Wp,updateQuery:Kp,updateComponentProps:Jp,setDefaultQuery:eh,recordResultClick:th,setMapData:nh})(hh),{componentType:T.reactiveMap,internalComponent:!0});hh.install=function(e){e.component(hh.name,fh)},hh.componentType=T.reactiveMap;var gh=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};function mh(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push(n+":"+e[n]),t}),[]).join(";")}function yh(e){return e?e+"px":void 0}var vh=function(e){function t(t,n){var r;return(r=e.call(this)||this).cluster_=t,r.styles_=n,r.center_=null,r.div_=null,r.sums_=null,r.visible_=!1,r.style=null,r.setMap(t.getMap()),r}nt(t,e);var n=t.prototype;return n.onAdd=function(){var e,t,n=this,r=this.cluster_.getMarkerClusterer(),o=google.maps.version.split("."),i=o[0],a=o[1],s=100*parseInt(i,10)+parseInt(a,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){t=e})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){e=!0,t=!1})),s>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(e){e.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(o){if(e=!1,!t){if(google.maps.event.trigger(r,"click",n.cluster_),google.maps.event.trigger(r,"clusterclick",n.cluster_),r.getZoomOnClick()){var i=r.getMaxZoom(),a=n.cluster_.getBounds();r.getMap().fitBounds(a),setTimeout((function(){r.getMap().fitBounds(a),null!==i&&r.getMap().getZoom()>i&&r.getMap().setZoom(i+1)}),100)}o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(r,"mouseover",n.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(r,"mouseout",n.cluster_)}))},n.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.draw=function(){if(this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px"}},n.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},n.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},n.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+mh({position:"absolute",top:yh(this.anchorText_[0]),left:yh(this.anchorText_[1]),color:this.style.textColor,"font-size":yh(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:yh(this.style.width),"line-height":yh(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},n.getImageElementHtml=function(){var e=(this.style.backgroundPosition||"0 0").split(" "),t=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),r={};this.cluster_.getMarkerClusterer().getEnableRetinaIcons()?r={width:yh(this.style.width),height:yh(this.style.height)}:r={clip:"rect("+-1*n+"px, "+(-1*t+this.style.width)+"px, "+(-1*n+this.style.height)+"px, "+-1*t+"px)"};var o=mh(Object.assign({position:"absolute",top:yh(n),left:yh(t)},r));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+o+'"/>'},n.useStyle=function(e){this.sums_=e;var t=Math.max(0,e.index-1);t=Math.min(this.styles_.length-1,t),this.style=this.styles_[t],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+t)},n.setCenter=function(e){this.center_=e},n.createCss_=function(e){return mh({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:yh(e.y),left:yh(e.x),width:yh(this.style.width),height:yh(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},n.getPosFromLatLng_=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x=Math.floor(t.x-this.anchorIcon_[1]),t.y=Math.floor(t.y-this.anchorIcon_[0]),t},t}(gh),bh=function(){function e(e){this.markerClusterer_=e,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new vh(this,this.markerClusterer_.getStyles())}var t=e.prototype;return t.getSize=function(){return this.markers_.length},t.getMarkers=function(){return this.markers_},t.getCenter=function(){return this.center_},t.getMap=function(){return this.map_},t.getMarkerClusterer=function(){return this.markerClusterer_},t.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},t.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.addMarker=function(e){if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,n=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,r=(this.center_.lng()*(t-1)+e.getPosition().lng())/t;this.center_=new google.maps.LatLng(n,r),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();e.isAdded=!0,this.markers_.push(e);var o=this.markers_.length,i=this.markerClusterer_.getMaxZoom();if(null!==i&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o===this.minClusterSize_)for(var a=0;a<o;a++)this.markers_[a].setMap(null);else e.setMap(null);return!0},t.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},t.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},t.updateIcon=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();if(null!==t&&this.map_.getZoom()>t)this.clusterIcon_.hide();else if(e<this.minClusterSize_)this.clusterIcon_.hide();else{var n=this.markerClusterer_.getStyles().length,r=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(r),this.clusterIcon_.show()}},t.isMarkerAlreadyAdded_=function(e){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(var t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},e}(),Ch=function(e,t,n){return void 0!==e[t]?e[t]:n},Oh=function(e){function t(n,r,o){var i;return void 0===r&&(r=[]),void 0===o&&(o={}),(i=e.call(this)||this).options=o,i.markers_=[],i.clusters_=[],i.listeners_=[],i.activeMap_=null,i.ready_=!1,i.ariaLabelFn=i.options.ariaLabelFn||function(){return""},i.zIndex_=i.options.zIndex||google.maps.Marker.MAX_ZINDEX+1,i.gridSize_=i.options.gridSize||60,i.minClusterSize_=i.options.minimumClusterSize||2,i.maxZoom_=i.options.maxZoom||null,i.styles_=i.options.styles||[],i.title_=i.options.title||"",i.zoomOnClick_=Ch(i.options,"zoomOnClick",!0),i.averageCenter_=Ch(i.options,"averageCenter",!1),i.ignoreHidden_=Ch(i.options,"ignoreHidden",!1),i.enableRetinaIcons_=Ch(i.options,"enableRetinaIcons",!1),i.imagePath_=i.options.imagePath||t.IMAGE_PATH,i.imageExtension_=i.options.imageExtension||t.IMAGE_EXTENSION,i.imageSizes_=i.options.imageSizes||t.IMAGE_SIZES,i.calculator_=i.options.calculator||t.CALCULATOR,i.batchSize_=i.options.batchSize||t.BATCH_SIZE,i.batchSizeIE_=i.options.batchSizeIE||t.BATCH_SIZE_IE,i.clusterClass_=i.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(i.batchSize_=i.batchSizeIE_),i.setupStyles_(),i.addMarkers(r,!0),i.setMap(n),i}nt(t,e);var n=t.prototype;return n.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var t=e.getMap(),n=t.minZoom||0,r=Math.min(t.maxZoom||100,t.mapTypes[t.getMapTypeId()].maxZoom),o=Math.min(Math.max(e.getMap().getZoom(),n),r);e.prevZoom_!=o&&(e.prevZoom_=o,e.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){e.redraw_()}))]},n.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},n.draw=function(){},n.setupStyles_=function(){if(!(this.styles_.length>0))for(var e=0;e<this.imageSizes_.length;e++){var n=this.imageSizes_[e];this.styles_.push(t.withDefaultStyle({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:n,width:n}))}},n.fitMapToMarkers=function(e){for(var t=this.getMarkers(),n=new google.maps.LatLngBounds,r=0;r<t.length;r++)!t[r].getVisible()&&this.getIgnoreHidden()||n.extend(t[r].getPosition());this.getMap().fitBounds(n,e)},n.getGridSize=function(){return this.gridSize_},n.setGridSize=function(e){this.gridSize_=e},n.getMinimumClusterSize=function(){return this.minClusterSize_},n.setMinimumClusterSize=function(e){this.minClusterSize_=e},n.getMaxZoom=function(){return this.maxZoom_},n.setMaxZoom=function(e){this.maxZoom_=e},n.getZIndex=function(){return this.zIndex_},n.setZIndex=function(e){this.zIndex_=e},n.getStyles=function(){return this.styles_},n.setStyles=function(e){this.styles_=e},n.getTitle=function(){return this.title_},n.setTitle=function(e){this.title_=e},n.getZoomOnClick=function(){return this.zoomOnClick_},n.setZoomOnClick=function(e){this.zoomOnClick_=e},n.getAverageCenter=function(){return this.averageCenter_},n.setAverageCenter=function(e){this.averageCenter_=e},n.getIgnoreHidden=function(){return this.ignoreHidden_},n.setIgnoreHidden=function(e){this.ignoreHidden_=e},n.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},n.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},n.getImageExtension=function(){return this.imageExtension_},n.setImageExtension=function(e){this.imageExtension_=e},n.getImagePath=function(){return this.imagePath_},n.setImagePath=function(e){this.imagePath_=e},n.getImageSizes=function(){return this.imageSizes_},n.setImageSizes=function(e){this.imageSizes_=e},n.getCalculator=function(){return this.calculator_},n.setCalculator=function(e){this.calculator_=e},n.getBatchSizeIE=function(){return this.batchSizeIE_},n.setBatchSizeIE=function(e){this.batchSizeIE_=e},n.getClusterClass=function(){return this.clusterClass_},n.setClusterClass=function(e){this.clusterClass_=e},n.getMarkers=function(){return this.markers_},n.getTotalMarkers=function(){return this.markers_.length},n.getClusters=function(){return this.clusters_},n.getTotalClusters=function(){return this.clusters_.length},n.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},n.addMarkers=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},n.pushMarkerTo_=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready_&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},n.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},n.removeMarkers=function(e,t){for(var n=!1,r=0;r<e.length;r++){var o=this.removeMarker_(e[r]);n=n||o}return!t&&n&&this.repaint(),n},n.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n=0;n<this.markers_.length;n++)if(e===this.markers_[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers_.splice(t,1),!0)},n.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},n.repaint=function(){var e=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var t=0;t<e.length;t++)e[t].remove()}),0)},n.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),r=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),o=t.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var i=t.fromLatLngToDivPixel(r);i.x-=this.gridSize_,i.y+=this.gridSize_;var a=t.fromDivPixelToLatLng(o),s=t.fromDivPixelToLatLng(i);return e.extend(a),e.extend(s),e},n.redraw_=function(){this.createClusters_(0)},n.resetViewport_=function(e){for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.markers_.length;n++){var r=this.markers_[n];r.isAdded=!1,e&&r.setMap(null)}},n.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},n.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},n.addToClosestCluster_=function(e){for(var t=4e4,n=null,r=0;r<this.clusters_.length;r++){var o=this.clusters_[r],i=o.getCenter();if(i){var a=this.distanceBetweenPoints_(i,e.getPosition());a<t&&(t=a,n=o)}}if(n&&n.isMarkerInClusterBounds(e))n.addMarker(e);else{var s=new bh(this);s.addMarker(e),this.clusters_.push(s)}},n.createClusters_=function(e){var t=this;if(this.ready_){var n;0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var r=this.getExtendedBounds(n),o=Math.min(e+this.batchSize_,this.markers_.length),i=e;i<o;i++){var a=this.markers_[i];!a.isAdded&&this.isMarkerInBounds_(a,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&a.getVisible())&&this.addToClosestCluster_(a)}if(o<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters_(o)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(var s=0;s<this.clusters_.length;s++)this.clusters_[s].updateIcon()}}},t.CALCULATOR=function(e,t){for(var n=0,r=e.length,o=r;0!==o;)o=Math.floor(o/10),n++;return n=Math.min(n,t),{text:r.toString(),index:n,title:""}},t.withDefaultStyle=function(e){return Object.assign({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:e.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},e)},t}(gh);Oh.BATCH_SIZE=2e3,Oh.BATCH_SIZE_IE=500,Oh.IMAGE_PATH="../images/m",Oh.IMAGE_EXTENSION="png",Oh.IMAGE_SIZES=[53,56,66,78,90];var _h,wh,Sh,Ph=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Oh),r=o(Qd);function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a={maxZoom:{type:Number,twoWay:!1},batchSizeIE:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},enableRetinaIcons:{type:Boolean,twoWay:!1},gridSize:{type:Number,twoWay:!1},averageCenter:{type:Boolean,twoWay:!1},ignoreHidden:{type:Boolean,twoWay:!1},imageExtension:{type:String,twoWay:!1},imagePath:{type:String,twoWay:!1},imageSizes:{type:Array,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},clusterClass:{type:String,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}},s=(0,r.default)({mappedProps:a,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===n.default)throw new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");return n.default},ctrArgs:function(e){return[e.map,[],i(e,["map"])]},render:function(e){return e("div",this.$slots.default)},afterCreate:function(e){var t=this,n=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};Object.keys(a).forEach((function(e){a[e].twoWay&&t.$on("".concat(e.toLowerCase(),"_changed"),n)}))},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});t.default=s}))),$h=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},a=(0,r.default)({mappedProps:i,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.flyaway,this.$markerPromise){var n=e;n.position;return e=o(n,["position"]),this.$markerPromise.then((function(e){return t.$markerObject=e,e}))}},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",(function(){e._openInfoWindow()}))}});t.default=a}))),kh={name:"InfoWindowWrapper",props:{id:St.string,renderPopover:St.func,infoWindowProps:St.object,events:St.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e($h,{ref:this.id+"-Info-Window",props:tt({},this.infoWindowProps),on:tt({},n)},[e("div",[t(this.handleClose)])])}},Ih={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:St.func.isRequired,handleMouseOver:St.func,handleFocus:St.func,handleMouseOut:St.func,handleBlur:St.func,handleClick:St.func},data:function(){return{opacity:.01}},mixins:[Md],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r}nt(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},Eh=Gt("div")(_h||(_h=it(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),Ah=Gt("div")(wh||(wh=it(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),Th=Ut(Sh||(Sh=it(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Rh=Xe.recordResultClick,xh={name:"GoogleMapMarker",props:{index:St.number,marker:St.object.isRequired,getPosition:St.func.isRequired,defaultPin:St.string,renderItem:St.func,setOpenMarkers:St.func.isRequired,handlePreserveCenter:St.func.isRequired,autoClosePopover:St.bool,openMarkers:St.object,renderPopover:St.func,highlightMarkerOnHover:St.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,a=n.autoClosePopover,s=n.handlePreserveCenter,u=i._id;r(a?((e={})[u]=!0,e):tt({},o,((t={})[u]=!0,t))),s(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,a=n._id,s=(i[a],ot(i,[a].map(at)));t(r?{}:s),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,a=i.getPosition,s=i.renderPopover,u=i.openMarkers;return t&&(o={position:a(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(kh,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,a=n.renderPopover,s=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Ih,{key:u._id,attrs:{metaData:u,marker:r(u),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Th}},[t(Eh,[c.label]),t(Ah),a?e.renderPopoverClick(u,!0):null])}},props:tt({},s)});if(!("icon"in c))return t(Ih,{key:u._id,attrs:{metaData:u,marker:r(u),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Th}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:tt({},s)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Nd,{key:u._id,attrs:{zIndex:l.zIndex,position:r(u),options:{metaData:u},icon:this.markerIcon||l.icon},on:{click:function(){return e.openMarker()},mouseover:this.increaseMarkerZIndex,mouseout:this.removeMarkerZIndex},props:tt({},s)},[a?this.renderPopoverClick(u):null])}},Lh=or((function(){return null}),{recordResultClick:Rh})(xh),Mh={name:"GoogleMapMarkers",props:{resultsToRender:St.array,getPosition:St.func,renderItem:St.func,renderClusterPopover:St.func,defaultPin:St.string,autoClosePopover:St.bool,handlePreserveCenter:St.func,renderPopover:St.func,markerProps:St.object,clusterProps:St.object,showMarkerClusters:St.bool,highlightMarkerOnHover:St.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getClusterMarkers:function(){return this.clickedCluster&&Array.isArray(this.clickedCluster.getMarkers())?this.clickedCluster.getMarkers().map((function(e){return e.metaData})):[]},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=arguments[0],n=this.$props.resultsToRender,r=this.openMarkers,o={openMarkers:r,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?t("div",[t(Ph,{props:tt({},this.clusterProps),on:{click:function(t){e.clickedCluster=t,e.clusterMarkers=e.getClusterMarkers(),e.$emit("open-cluster-popover",e.clusterMarkers)}},ref:"clusterRef"},[n.map((function(n,r){return t(Lh,{attrs:{index:r,marker:n},props:tt({},o),on:tt({},e.$listeners)})}))]),this.clickedCluster&&this.renderClusterPopover?t(kh,{attrs:{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}}}):null]):t("div",[n.map((function(n,r){return t(Lh,{attrs:{index:r,marker:n},props:tt({},o),on:tt({},e.$listeners)})}))])}},jh={name:"ReactiveGoogleMap",props:{className:Un.string,componentId:Un.stringRequired,dataField:Un.stringRequired,defaultQuery:St.func,loader:Un.title,defaultZoom:St.number.def(13),react:Un.react,size:Un.number,sortBy:Un.sortBy,URLParams:St.bool,mapProps:St.object,showMarkers:St.bool.def(!0),showMarkerClusters:St.bool.def(!1),searchAsMove:St.bool.def(!1),searchAsMoveLabel:St.string,markerProps:St.object,clusterProps:St.object,renderItem:St.func,showSearchAsMove:St.bool.def(!0),autoClosePopover:St.bool,pagination:St.bool,defaultPin:St.string,autoCenter:St.bool,defaultCenter:Un.location,center:Un.location,defaultRadius:Un.number,unit:Un.string,pages:St.number.def(5),calculateMarkers:St.func,highlightMarkerOnHover:St.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,a=e.handleOnDragEnd,s=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,d=e.autoClosePopover,p=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(Tp,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:tt({},this.mapProps),on:{zoom_changed:i,dragend:a,idle:s}},[this.showMarkers?h(Mh,{attrs:{resultsToRender:n,getPosition:c,markerProps:this.markerProps,clusterProps:this.clusterProps,handlePreserveCenter:l,highlightMarkerOnHover:this.highlightMarkerOnHover,renderItem:this.$scopedSlots.renderItem?function(){return{custom:t.$scopedSlots.renderItem}}:this.renderItem,defaultPin:p,autoClosePopover:d,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:tt({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(fh,Hr([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(jh.name,jh),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(Ep,{load:{key:t.key,libraries:"places"},installComponents:!1})}};jh.componentType=T.reactiveMap;var Qh=["aggs","size"],Vh=["query"],Dh=["query"],Fh=[T.numberBox,T.ratingsFilter],Nh=[T.reactiveList,T.reactiveMap];function Uh(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var qh,zh,Bh=function(e){var t=e.theme;return Ut(qh||(qh=it(["\n\tcolor: ",";\n"])),t.colors.alertColor)},Hh=Gt("div")(zh||(zh=it(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&Bh})),Gh=et.getClassName,Wh=et.isEqual,Zh={name:"RangeInput",components:{RangeSlider:od},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Un.string,default:""},defaultValue:Un.range,validateRange:Un.func,value:Un.range,dataField:Un.stringRequired,innerClass:Un.style,range:{types:Un.range,default:function(){return{start:0,end:10}}},rangeLabels:Un.rangeLabels,stepValue:Un.number,componentStyle:Un.style,componentId:Un.stringRequired,includeNullValues:St.bool,beforeValueChange:Un.func,customQuery:Un.func,data:Un.data,filterLabel:Un.string,react:Un.react,showFilter:St.bool.def(!0),showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),sliderOptions:St.object.def({}),nestedField:Un.string},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!Wh(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=tt({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=tt({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){Wh(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,d=t.includeNullValues,p=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,C=t.URLParams,O=t.sliderOptions,_=t.nestedField;return e(Xa,{style:l,class:n},[e(od,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:d,beforeValueChange:p,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:C,sliderOptions:O,nestedField:_},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(_o,{class:Gh(s,"input-container")||""},[e(_o,{attrs:{direction:"column",flex:2}},[e(Da,{key:a+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":a+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:Gh(s,"input")||"",domProps:tt({},{value:this.currentValue.start})}),!this.isStartValid&&e(Hh,{attrs:{alert:!0}},["Input range is invalid"])]),e(_o,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(_o,{attrs:{direction:"column",flex:2}},[e(Da,{key:a+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":a+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:Gh(s,"input")||"",domProps:tt({},{value:this.currentValue.end})}),!this.isEndValid&&e(Hh,{attrs:{alert:!0}},["Input range is invalid"])])])])}},Kh=Rr(or((function(e){return{themePreset:e.config.themePreset}}),{})(Zh),{componentType:T.rangeInput});Zh.install=function(e){e.component(Zh.name,Kh)},Zh.componentType=T.rangeInput;var Yh=[zo,Dc,Hc,Di,Bs,hu,ju,Wu,_c,Tc,rd,Cd,ac,hc,Gl,wl,Ql,$d,Zh];function Xh(e){Yh.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&Xh(window.Vue);var Jh={version:"1.16.0-alpha.52",install:Xh};e.DataSearch=Bs,e.DynamicRangeSlider=Cd,e.MultiDropdownList=Ql,e.MultiList=Wu,e.MultiRange=Tc,e.RangeInput=Zh,e.RangeSlider=rd,e.ReactiveBase=Di,e.ReactiveComponent=ac,e.ReactiveGoogleMap=jh,e.ReactiveList=zo,e.ResultCard=Dc,e.ResultList=Hc,e.SearchBox=hu,e.SelectedFilters=hc,e.SingleDropdownList=wl,e.SingleList=ju,e.SingleRange=_c,e.StateProvider=$d,e.ToggleButton=Gl,e.default=Jh,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=tt({},n.enableAppbase&&tt({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers),u={url:n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",app:n.app,credentials:i,transformRequest:n.transformRequest||null,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null},l=$i(u),c=[],d={},p={},h={},f={},g={},m=[],y={},v=[],b={},C={},_={},w={},S={},$={},I={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){R.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Nh.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,h=u.reference,m=void 0===e.showFilter||e.showFilter;Fh.includes(n)&&(m=!1),d=F(d,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(S[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&($[e.componentId]=e.defaultQuery(l,r));var y={};e&&e.source.generateQueryOptions&&(y=tt({},y,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),y&&Object.keys(y).length||v&&Object.keys(v).length){var b=y||{},C=b.aggs,O=b.size,_=ot(b,Qh);if(C&&Object.keys(C).length&&(o=!0,y=tt({},y,{aggs:C,size:void 0===O?100:O})),_&&Object.keys(_).length||v&&Object.keys(v).length){_||(_={}),v||(v={});var w=tt({},_,v,{size:O});if(o&&(w=tt({},_,v)),i){var A=e.currentPage?e.currentPage-1:0;d[e.componentId]&&d[e.componentId].value&&(A=d[e.componentId].value-1||0);var T=e.size||10,x=A*T;r.from=x,w=tt({},w,v,{size:T,from:x})}y=tt({},y,w)}}if(e.react||o||i){var L=e.react;(o||i)&&(L=Se(L,a)),g=P(g,{type:"WATCH_COMPONENT",component:e.componentId,react:L})}if(o&&!xe(e.componentType)){var M=function(e,t){var n=Uh(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return tt({query:be(r)},Ce(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},j=M.query,Q=ot(M,Vh);p=k(p,{type:"SET_QUERY",component:a,query:j}),f=E(f,{type:"SET_QUERY_OPTIONS",component:a,options:tt({},y,Q)})}var V=function(e,t){var n=Uh(t,e);if(e.customQuery){var r=e.customQuery(n,e);return tt({query:be(r)},Ce(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,N=ot(V,Dh),U=D;p=k(p,{type:"SET_QUERY",component:e.componentId,query:U}),f=E(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:tt({},N)}),r.componentType=n,I[e.componentId]=r})),w={components:c,dependencyTree:g,queryList:p,queryOptions:f,selectedValues:d,internalValues:{},props:I,customQueries:S,defaultQueries:$},e.forEach((function(e){var t=we(e.componentId,g,p,f),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var s=tt({query:tt({},r)},o,f[e.componentId]);if(h=tt({},h,((a={})[e.componentId]=s,a)),n.enableAppbase){var l,c=Re(e.componentId,Te(w,e.componentId,f&&f[e.componentId]?{from:f[e.componentId].from}:null));if(c)y=tt({},y,((l={})[e.componentId]=c,l),Ae(w,e.componentId,v))}else{var d=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:d},s])}}})),w.queryLog=h;var A=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},T=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){A(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=tt({},C,((o={})[t]=e.aggregations,o)),_=ne(_,{type:O,aggregations:e.aggregations,append:!1}));b=tt({},b,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){w=tt({},w,{hits:b,aggregations:C}),r(w)}))};if(u.graphQLUrl){(function(e){if(u.transformRequest&&"function"==typeof u.transformRequest){var t=u.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(m).then((function(e){Ne(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){T(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(y).length){m=Object.keys(y).map((function(e){return y[e]}));var x={};u.analyticsConfig&&(x.recordAnalytics=je(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,x.userId=je(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,x.enableQueryRules=je(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,x.customEvents=je(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,x).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=v.map((function(r){return new Promise((function(s,u){A(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return tt({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)C=tt({},C,((c={})[r]=u.aggregations,c));a[r]=e._timestamp,b=tt({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){w=tt({},w,{hits:b,timestamp:a,aggregations:C,compositeAggregations:_,promotedResults:t,settings:i,customData:o,rawData:n}),r(w)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){T(e)})).catch((function(e){return o(e)}))}))},e.install=Xh,e.version="1.16.0-alpha.52",Object.defineProperty(e,"__esModule",{value:!0})}));
36
+ */function rs(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var os,is,as={functional:!0,props:{activeClassName:String,activeIndex:Number,activeStyle:Object,autoEscape:Boolean,findChunks:Function,highlightClassName:String,highlightStyle:Object,highlightTag:[Object,Function,String],sanitize:Function,searchWords:{type:Array,validator:function(e){return e.every((function(e){return"string"==typeof e}))},required:!0},textToHighlight:{type:String,required:!0},unhighlightClassName:String,unhighlightStyle:Object},render:function(e,t){var n,r=t.props,o=r.activeClassName,i=void 0===o?"":o,a=r.activeIndex,s=void 0===a?-1:a,u=r.activeStyle,l=r.autoEscape,c=r.caseSensitive,d=void 0!==c&&c,p=r.findChunks,h=r.highlightClassName,f=void 0===h?"":h,g=r.highlightStyle,m=void 0===g?{}:g,y=r.highlightTag,v=void 0===y?"mark":y,b=r.sanitize,C=r.searchWords,O=r.textToHighlight,_=r.unhighlightClassName,w=void 0===_?"":_,S=r.unhighlightStyle,P=t.data,$=ns({autoEscape:l,caseSensitive:d,findChunks:p,sanitize:b,searchWords:C,textToHighlight:O}),k=v,I=-1,E="";return e("span",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){rs(e,t,n[t])}))}return e}({},P),$.map((function(t,r){var o=O.substr(t.start,t.end-t.start);if(t.highlight){var a=++I===+s;E="".concat(f," ").concat(a?i:""),n=!0===a&&null!=u?Object.assign({},m,u):m;var l={class:E,key:r,style:n};return"string"!=typeof k&&(l.props={highlightIndex:I}),P.scopedSlots?e(k,l,[P.scopedSlots.default({children:o,highlightIndex:I})]):e(k,l,o)}return e("span",{class:w,key:r,style:S},o)})))}},ss={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},us=Gt("span")(os||(os=it(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ls={name:"SuggestionItem",props:{currentValue:Un.string,suggestion:Un.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,a=t.image,s=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!s&&!u?e(as,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:ss}}):e(us,{domProps:{innerHTML:n}})]):n:o||a||i?e(_o,{attrs:{alignItems:"center",css:{width:"100%"}}},[a&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:a,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(_o,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(as,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:ss},class:Ut({fontSize:"1rem"})})]),i&&e("div",{class:Dt("trim",Ut({marginTop:3}))},[e(as,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:ss}})])])]):r}},cs={name:"SearchSvg",props:["styles"],render:function(){var e=arguments[0];return e("svg",{attrs:{alt:"Search",height:"12",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon",style:tt({transform:"scale(1.35)",position:"relative"},this.$props.styles?this.$props.styles:{})},[e("title",["Search"]),e("path",{attrs:{d:"M6.02945,10.20327a4.17382,4.17382,0,1,1,4.17382-4.17382A4.15609,4.15609,0,0,1,6.02945,10.20327Zm9.69195,4.2199L10.8989,9.59979A5.88021,5.88021,0,0,0,12.058,6.02856,6.00467,6.00467,0,1,0,9.59979,10.8989l4.82338,4.82338a.89729.89729,0,0,0,1.29912,0,.89749.89749,0,0,0-.00087-1.29909Z"}})])}},ds={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Clear",xmlns:"http://www.w3.org/2000/svg",height:"20px",viewBox:"0 0 24 24",width:"20px"},class:"cancel-icon"},[e("title",["Clear"]),e("path",{attrs:{d:"M0 0h24v24H0V0z",fill:"none"}}),e("path",{attrs:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"}})])}};Nt(is||(is=it(["\n\t#el_TvxDfTAtKp {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_D93PK3GbmJ {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t\tfill: #d8d8d8;\n\t}\n"])));var ps,hs={name:"MicSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_xS0FRzQjJ",width:28,height:28,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("g",{attrs:{id:"el_TvxDfTAtKp",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_D93PK3GbmJ",fillRule:"nonzero"},style:{fill:"#595959"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uly3EwA2O3"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_tnDbR4ytu4"}})])])])}};Nt(ps||(ps=it(["\n\t#el_X81iT9kZYo {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_gMpyalCphp {\n\t\t-webkit-transform: translate(163px, 131px);\n\t\ttransform: translate(163px, 131px);\n\t}\n\t#el_c7H-3u-D4l {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_qhFcdAAFwo {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_M8X8g37WOI {\n\t\tstroke: #e83137;\n\t\tstroke-width: 21;\n\t}\n"])));var fs,gs={name:"MuteSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{style:{transform:"scale(1.5)"},attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",id:"el_D1rEpH2zj",width:28,height:28,className:this.$props.className}},[e("g",{attrs:{id:"el_X81iT9kZYo",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_gMpyalCphp"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_c7H-3u-D4l",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,-2.84217094e-14 76.9864699,-2.84217094e-14 C55.8825877,-2.84217094e-14 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_qhFcdAAFwo",fillRule:"nonzero"},style:{fill:"#595959"}}),e("path",{attrs:{d:"M11.5,206.5 L142.5,12.5",id:"el_M8X8g37WOI",strokeLinecap:"round",strokeLinejoin:"round"}})])])])}};Nt(fs||(fs=it(["\n\t@-webkit-keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_6WKby7wXqV_an_qqO-rxbNc {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t13.89% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_Wi-my975tM_an_XhXP1epXB {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t27.78% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DkfFFTaFxy8_an_T2XxzvIaA {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t41.67% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_34IgwiMB5rf_an_TPom3H2LI {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t55.56% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_DeebuCsPTGA_an_aYTRBE7Na {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t69.44% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_ZOjjrPTvyrv_an_l_BjBNzXw {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t83.33% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@-webkit-keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t@keyframes kf_el_2FATegVmf0K_an_wLg4ofuFx {\n\t\t0% {\n\t\t\topacity: 0;\n\t\t}\n\t\t97.22% {\n\t\t\topacity: 1;\n\t\t}\n\t\t100% {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\t#el_hiibMG0x- * {\n\t\t-webkit-animation-duration: 1.2s;\n\t\tanimation-duration: 1.2s;\n\t\t-webkit-animation-iteration-count: infinite;\n\t\tanimation-iteration-count: infinite;\n\t\t-webkit-animation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0, 0, 1, 1);\n\t}\n\t#el_QJeJ_2CDw5 {\n\t\tstroke: none;\n\t\tstroke-width: 1;\n\t\tfill: none;\n\t}\n\t#el_UYYCfubTRf {\n\t\t-webkit-transform: translate(163px, 123px);\n\t\ttransform: translate(163px, 123px);\n\t}\n\t#el_uzZNtK32Zi {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_EYKQ2N9Kgy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6SDP2LAgKC {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t}\n\t#el_-Vm65Ltfy7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_q04iZcSim4 {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_6WKby7wXqV {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\tanimation-name: kf_el_6WKby7wXqV_an_qqO-rxbNc;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_9bggsfQOtU {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_NKxqi9eIym {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_Wi-my975tM {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\tanimation-name: kf_el_Wi-my975tM_an_XhXP1epXB;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_zclQ34fvf7 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_1OsvRT8HkeZ {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DkfFFTaFxy8 {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\tanimation-name: kf_el_DkfFFTaFxy8_an_T2XxzvIaA;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_aa9sjx4H0vA {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_tea114vWg0J {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_34IgwiMB5rf {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\tanimation-name: kf_el_34IgwiMB5rf_an_TPom3H2LI;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_z5u6RAFhx7d {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_7nfuWmA5Uhy {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_DeebuCsPTGA {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\tanimation-name: kf_el_DeebuCsPTGA_an_aYTRBE7Na;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el__ZcqlS20zcw {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_8DnEQnD7VWV {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_ZOjjrPTvyrv {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\tanimation-name: kf_el_ZOjjrPTvyrv_an_l_BjBNzXw;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_FYYKCI_u24e {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_XZty4MnTp5Y {\n\t\tfill: #d8d8d8;\n\t}\n\t#el_2FATegVmf0K {\n\t\t-webkit-transform: translate(37.846924px, 0px);\n\t\ttransform: translate(37.846924px, 0px);\n\t\t-webkit-animation-fill-mode: backwards;\n\t\tanimation-fill-mode: backwards;\n\t\topacity: 0;\n\t\t-webkit-animation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\tanimation-name: kf_el_2FATegVmf0K_an_wLg4ofuFx;\n\t\t-webkit-animation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t\tanimation-timing-function: cubic-bezier(0.42, 0, 1, 1);\n\t}\n\t#el_RMT1KUfbdF8 {\n\t\tfill: #0B6AFF;\n\t}\n\t#el_RgLcovvFiO1 {\n\t\tfill: #d8d8d8;\n\t}\n"])));var ms,ys={name:"ListenSvg",props:["className"],render:function(){var e=arguments[0];return e("svg",{attrs:{viewBox:"0 0 480 480",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",id:"el_hiibMG0x-",width:28,height:29,className:this.$props.className},style:{transform:"scale(1.5)"}},[e("defs",[e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-1"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-3"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-5"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-7"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-9"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-11"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-13"}}),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"path-15"}})]),e("g",{attrs:{id:"el_QJeJ_2CDw5",fillRule:"evenodd"}},[e("g",{attrs:{id:"el_UYYCfubTRf"}},[e("path",{attrs:{d:"M142.731204,111 C137.280427,111 132.719573,114.852 131.82965,120.095 C127.268796,145.24 104.464526,164.5 76.9881611,164.5 C49.5117965,164.5 26.7075263,145.24 22.1466723,120.095 C21.2567496,114.852 16.6958955,111 11.2451187,111 C4.45945784,111 -0.880078594,116.778 0.121084488,123.198 C5.57186127,155.298 32.2695435,180.443 65.8641269,185.044 L65.8641269,207.3 C65.8641269,213.185 70.8699423,218 76.9881611,218 C83.10638,218 88.1121954,213.185 88.1121954,207.3 L88.1121954,185.044 C121.706779,180.443 148.404461,155.298 153.855238,123.198 C154.967641,116.778 149.516864,111 142.731204,111 Z",id:"el_uzZNtK32Zi",fillRule:"nonzero"},style:{fill:"#0B6AFF"}}),e("path",{attrs:{d:"M76.9864699,147.789474 C98.090352,147.789474 115.126016,131.286316 115.126016,110.842105 L115.126016,36.9473684 C115.126016,16.5031579 98.090352,0 76.9864699,0 C55.8825877,0 38.8469239,16.5031579 38.8469239,36.9473684 L38.8469239,110.842105 C38.8469239,131.286316 55.8825877,147.789474 76.9864699,147.789474 Z",id:"el_EYKQ2N9Kgy",fillRule:"nonzero"}}),e("g",{attrs:{id:"el_6SDP2LAgKC"}},[e("mask",{attrs:{id:"mask-2",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-1"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_-Vm65Ltfy7",fillRule:"nonzero",mask:"url(#mask-2)"}}),e("rect",{attrs:{id:"el_q04iZcSim4",mask:"url(#mask-2)",x:"0.279",width:"77",height:"130"}})]),e("g",{attrs:{id:"el_6WKby7wXqV"}},[e("mask",{attrs:{id:"mask-4",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-3"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_9bggsfQOtU",fillRule:"nonzero",mask:"url(#mask-4)"}}),e("rect",{attrs:{id:"el_NKxqi9eIym",mask:"url(#mask-4)",x:"0.279",width:"77",height:"115"}})]),e("g",{attrs:{id:"el_Wi-my975tM"}},[e("mask",{attrs:{id:"mask-6",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-5"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_zclQ34fvf7",fillRule:"nonzero",mask:"url(#mask-6)"}}),e("rect",{attrs:{id:"el_1OsvRT8HkeZ",mask:"url(#mask-6)",x:"0.279",width:"77",height:"100"}})]),e("g",{attrs:{id:"el_DkfFFTaFxy8"}},[e("mask",{attrs:{id:"mask-8",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-7"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_aa9sjx4H0vA",fillRule:"nonzero",mask:"url(#mask-8)"}}),e("rect",{attrs:{id:"el_tea114vWg0J",mask:"url(#mask-8)",x:"0.279",width:"77",height:"85"}})]),e("g",{attrs:{id:"el_34IgwiMB5rf"}},[e("mask",{attrs:{id:"mask-10",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-9"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_z5u6RAFhx7d",fillRule:"nonzero",mask:"url(#mask-10)"}}),e("rect",{attrs:{id:"el_7nfuWmA5Uhy",mask:"url(#mask-10)",x:"0.279",width:"77",height:"70"}})]),e("g",{attrs:{id:"el_DeebuCsPTGA"}},[e("mask",{attrs:{id:"mask-12",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-11"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el__ZcqlS20zcw",fillRule:"nonzero",mask:"url(#mask-12)"}}),e("rect",{attrs:{id:"el_8DnEQnD7VWV",mask:"url(#mask-12)",x:"0.279",width:"77",height:"55"}})]),e("g",{attrs:{id:"el_ZOjjrPTvyrv"}},[e("mask",{attrs:{id:"mask-14",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-13"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_FYYKCI_u24e",fillRule:"nonzero",mask:"url(#mask-14)"}}),e("rect",{attrs:{id:"el_XZty4MnTp5Y",mask:"url(#mask-14)",x:"0.279",width:"77",height:"40"}})]),e("g",{attrs:{id:"el_2FATegVmf0K"}},[e("mask",{attrs:{id:"mask-16",fill:"#fff"}},[e("use",{attrs:{"xlink:href":"#path-15"}})]),e("path",{attrs:{d:"M38.779092,147.789474 C60.0824253,147.789474 77.279092,131.286316 77.279092,110.842105 L77.279092,36.9473684 C77.279092,16.5031579 60.0824253,0 38.779092,0 C17.4757586,0 0.279091964,16.5031579 0.279091964,36.9473684 L0.279091964,110.842105 C0.279091964,131.286316 17.4757586,147.789474 38.779092,147.789474 Z",id:"el_RMT1KUfbdF8",fillRule:"nonzero",mask:"url(#mask-16)"}}),e("rect",{attrs:{id:"el_RgLcovvFiO1",mask:"url(#mask-16)",x:"0.279",width:"77",height:"25"}})])])])])}},vs="INACTIVE",bs="STOPPED",Cs="ACTIVE",Os="DENIED",_s={name:"Mic",props:{children:Un.title,lang:St.string.def("en-US"),iconPosition:St.string.def("left"),handleResult:Un.func,onNoMatch:Un.func,onError:Un.func,getInstance:Un.func,render:Un.func,className:Un.string,applyClearStyle:St.bool,showIcon:St.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return sr(t,this)},stopMic:function(){this.instance&&(this.status=vs,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===Cs&&(this.status=vs);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,a=t.getInstance,s=window.SpeechRecognition;if(this.instance&&this.status!==Os)return this.status=vs,this.instance.stop(),void(this.instance=null);this.instance=new s,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,a&&a(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=Cs},this.instance.onresult=function(t){var r=t.results,o=t.timeStamp;e.stopMic(),n&&n({results:r,timeStamp:o}),e.results.push({results:r,timeStamp:o})},this.instance.onnomatch=function(e){return r?r(e):console.warn(e)},this.instance.onerror=function(t){"no-speech"===t.error||"audio-capture"===t.error?e.status=vs:"not-allowed"===t.error&&(e.status=Os),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=vs},this.instance.onaudioend=function(){e.status=vs}}}},computed:{hasCustomRenderer:function(){return ur(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case Cs:return e(ys,{attrs:{className:n},nativeOn:{click:this.handleClick}});case bs:case Os:return e(gs,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(hs,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:vs}},created:function(){this.results=[],"undefined"!=typeof window&&(window.SpeechRecognition=window.webkitSpeechRecognition||window.SpeechRecognition||null,window.SpeechRecognition||console.error("SpeechRecognition is not supported in this browser. Please check the browser compatibility at https://developer.mozilla.org/en-US/docs/Web/API/SpeechRecognition#Browser_compatibility."))},render:function(){var e=arguments[0];return this.hasCustomRenderer?this.getComponent():e(za,[this.Icon])}},ws={name:"CustomSvg",props:{className:String,icon:Function,type:String},data:function(){return{customIcon:this.$props.icon&&"function"==typeof this.$props.icon?this.$props.icon():null}},render:function(){var e=arguments[0];return this.customIcon?e("div",{class:this.$props.className},[this.customIcon]):"recent-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9zm-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8H12z"}})]):"promoted-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"20",alt:"promoted search",height:"20",viewBox:"0 0 24 24"},class:this.$props.className,style:{fill:"#707070"}},[e("path",{attrs:{d:"M12 .587l3.668 7.568 8.332 1.151-6.064 5.828 1.48 8.279-7.416-3.967-7.417 3.967 1.481-8.279-6.064-5.828 8.332-1.151z"}})]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Search",height:"20",width:"20",viewBox:"0 0 24 24"},style:{fill:"#707070"},class:this.$props.className},[e("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e("path",{attrs:{d:"M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"}})]):e(cs,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},Ss=Xe.updateQuery,Ps=Xe.setQueryOptions,$s=Xe.setCustomQuery,ks=Xe.setDefaultQuery,Is=Xe.setCustomHighlightOptions,Es=Xe.recordSuggestionClick,As=Xe.loadPopularSuggestions,Ts=Xe.getRecentSearches,Rs=Xe.resetStoreForComponent,xs=et.debounce,Ls=et.checkValueChange,Ms=et.getClassName,js=et.extractQueryFromCustomQuery,Qs=et.getOptionsForCustomQuery,Vs=et.isEqual,Ds=et.getCompositeAggsQuery,Fs=et.withClickIds,Ns=et.getResultStats,Us=et.handleOnSuggestions,qs=et.getTopSuggestions,zs=et.normalizeDataField,Bs={name:"DataSearch",data:function(){var e=this.$props;return this.__state={currentValue:"",isOpen:!1,normalizedSuggestions:[],isPending:!1},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.enableQuerySuggestions,n=e.renderQuerySuggestions,r=e.enableRecentSearches,o=e.distinctField,i=e.distinctFieldConfig,a=e.index;t&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),n&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!o&&!i||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&a&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=this.selectedValue||"",(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=xs(this.handleText,this.$props.debounce),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},computed:{suggestionsList:function(){var e=[];return!this.$data.currentValue&&this.$props.defaultSuggestions&&this.$props.defaultSuggestions.length?e=this.$props.defaultSuggestions:this.$data.currentValue&&(e=this.normalizedSuggestions),Fs(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return qs(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue||!this.enableDefaultSuggestions)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return tt({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return tt({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return qs(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return ur(this)},stats:function(){return Ns(this)}},props:{options:Un.options,autoFocus:St.bool,autosuggest:St.bool.def(!0),beforeValueChange:Un.func,className:St.string.def(""),clearIcon:Un.children,componentId:Un.stringRequired,customHighlight:Un.func,customQuery:Un.func,defaultQuery:Un.func,dataField:St.oneOfType([St.string,St.shape({field:St.string,weight:St.number}),St.arrayOf(St.string),St.arrayOf({field:St.string,weight:St.number})]),aggregationField:Un.string,aggregationSize:St.number,size:St.number,debounce:St.number.def(0),defaultValue:Un.string,excludeFields:Un.excludeFields,value:Un.value,defaultSuggestions:Un.suggestions,enableSynonyms:St.bool.def(!0),enableQuerySuggestions:St.bool.def(!1),enablePopularSuggestions:St.bool.def(!1),enableRecentSearches:St.bool.def(!1),fieldWeights:Un.fieldWeights,filterLabel:Un.string,fuzziness:Un.fuzziness,highlight:St.bool,highlightField:Un.stringOrArray,icon:Un.children,iconPosition:St.oneOf(["left","right"]).def("left"),includeFields:Un.includeFields,innerClass:Un.style,innerRef:St.string.def("searchInputField"),render:Un.func,renderQuerySuggestions:Un.func,renderPopularSuggestions:Un.func,parseSuggestion:Un.func,renderNoSuggestion:Un.title,renderError:Un.title,placeholder:St.string.def("Search"),queryFormat:St.oneOf(["and","or"]).def("or"),react:Un.react,showClear:St.bool.def(!0),showDistinctSuggestions:St.bool.def(!0),showFilter:St.bool.def(!0),showIcon:St.bool.def(!0),title:Un.title,theme:Un.style,URLParams:St.bool.def(!1),strictSelection:St.bool.def(!1),nestedField:Un.string,enablePredictiveSuggestions:St.bool.def(!1),recentSearchesIcon:St.any,popularSearchesIcon:St.any,showVoiceSearch:St.bool.def(!1),getMicInstance:Un.func,renderMic:Un.func,distinctField:Un.string,distinctFieldConfig:Un.props,focusShortcuts:St.arrayOf(St.oneOfType([St.string,St.number])).def(["/"]),addonBefore:St.any,addonAfter:St.any,expandSuggestionsContainer:St.bool.def(!0),index:St.string,enableDefaultSuggestions:St.bool.def(!0)},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=Bs.highlightQuery(this.$props)||{};this.queryOptions=tt({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)}else this.queryOptions=this.getBasicQueryOptions(),this.setQueryOptions(this.$props.componentId,this.queryOptions);this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Vs(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)},suggestions:function(e){Array.isArray(e)&&this.$data.currentValue.trim().length&&(this.$emit("suggestions",e),this.normalizedSuggestions=this.onSuggestions(e))},selectedValue:function(e,t){t!==e&&this.$data.currentValue!==e&&(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",Je.CLEAR_VALUE),this.setValue(e||"",!0,this.$props))},focusShortcuts:function(){this.listenForFocusShortcuts()}},methods:{handleText:function(e){this.$props.autosuggest?this.updateDefaultQueryHandler(e,this.$props):this.updateQueryHandler(this.$props.componentId,e,this.$props)},validateDataField:function(){var e=Bs.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},updateQueryOptions:function(){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=Bs.highlightQuery(this.$props)||{};this.queryOptions=tt({},e,this.getBasicQueryOptions()),this.setQueryOptions(this.$props.componentId,this.queryOptions)},getComponent:function(e,t){void 0===e&&(e={}),void 0===t&&(t=!1);var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.suggestionsList,promotedData:this.promotedResults,aggregationData:this.aggregationData,rawData:this.rawData,customData:this.customData,value:n,triggerClickAnalytics:this.triggerClickAnalytics,resultStats:this.stats,querySuggestions:this.normalizedPopularSuggestions,popularSuggestions:this.normalizedPopularSuggestions};return t?function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=t.$scopedSlots||t.$props,r=n.renderQuerySuggestions,o=n.renderPopularSuggestions||r;return o?o(e):null}({downshiftProps:e,data:this.normalizedPopularSuggestions,value:n,loading:this.isLoading,error:this.error},this):sr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=_e(this.$props);return e&&(t.aggs=Ds({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return Us(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,Je.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o){var i=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0);Ls(n.componentId,e,n.beforeValueChange,(function(){e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.currentValue=e,t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===Je.SUGGESTION_SELECT||""===e?i.updateQueryHandler(n.componentId,e,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,e,n)):i.handleTextChange(e),i.$emit("valueChange",e),i.$emit("value-change",e),e===i.lastUsedQuery?(i.suggestions=i.onSuggestions(i.suggestions),i.$emit("suggestions",i.suggestions)):e||(i.suggestions=[],i.$emit("suggestions",i.suggestions))}))},updateDefaultQueryHandler:function(e,t){if(e||!1!==t.enableDefaultSuggestions){var n,r=Bs.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=js(o);i&&(r=i),n=Qs(o),dr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,tt({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=Bs.defaultQuery(t,n);if(o){var l=o(t,n),c=js(l);c&&(u=c),r=Qs(l),pr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,tt({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:a,URLParams:s,componentType:"DATASEARCH"})},handleFocus:function(e){this.isOpen=!0,this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&(this.isPending=!1,this.setValue(t[0][0].transcript.trim(),!0))},triggerQuery:function(e){var t=(void 0!==e&&e).isOpen,n=void 0!==t&&t;void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!n))},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.suggestionsList.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.isPending=!1,this.setValue("",!0),this.onValueSelectedHandler("",Je.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0!==this.$props.value&&(this.isPending=!0),"Enter"===e.key&&null===t&&(this.setValue(e.target.value,!0),this.onValueSelectedHandler(e.target.value,Je.ENTER_PRESS)),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=e.target.value;this.$data.isOpen||(this.isOpen=!0),void 0===this.$props.value?this.setValue(t):(this.isPending=!0,this.$emit("change",t,this.triggerQuery,e))},onSuggestionSelected:function(e){var t=this.$props.value;this.triggerClickAnalytics(e._click_id),void 0===t?this.setValue(e.value,!0,this.$props,Je.SUGGESTION_SELECT):(this.isPending=!1,this.$emit("change",e.value,this.triggerQuery)),this.onValueSelectedHandler(e.value,Je.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(cs):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(es,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[ir(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ds):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(es,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Aa,[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Aa,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(qa,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(za,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(_s,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ms(o,"mic")||null}}),"right"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(qa,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;gr(n)||(ia(vr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),ia("*",(function(t){var r=Cr(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(ia[r[o]]){e.focusSearchBox(t);break}}})))}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=n.expandSuggestionsContainer,a=n.enableDefaultSuggestions,s=this.$scopedSlots,u=s.recentSearchesIcon,l=s.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==a||this.currentValue||(c=!1),t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Ms(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Ya,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var a=n.getInputEvents,s=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&c?t("ul",{class:Fa(e.themePreset,r)+" "+Ms(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:tt({},d({item:n})),on:tt({},p({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ls,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:tt({},d({item:n})),on:tt({},p({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(ws,{attrs:{className:Ms(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(ws,{attrs:{className:Ms(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ls,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),fr(e)?e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:tt({},d({item:n})),on:tt({},p({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(ws,{attrs:{className:Ms(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ls,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Na},[t(da,[e.renderInputAddonBefore(),t(Ea,[t(Da,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:Ms(e.$props.innerClass,"input"),on:tt({},a({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:tt({},s({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m()])}}}):t("div",{class:Na},[t(da,[this.renderInputAddonBefore(),t(Ea,[t(Da,{class:Ms(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:tt({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:function(t){e.$emit("keyDown",t,e.triggerQuery),e.$emit("key-down",t,e.triggerQuery)},keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:tt({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n=null;if(e){var r=zs(t.dataField,t.fieldWeights);n={bool:{should:Bs.shouldQuery(e,r,t),minimum_should_match:"1"}}}return""===e&&(n=null),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)},highlightQuery:function(e){if(e.customHighlight)return e.customHighlight(e);if(!e.highlight)return null;var t={},n=e.highlightField?e.highlightField:e.dataField;return"string"==typeof n?t[n]={}:Array.isArray(n)&&n.forEach((function(e){t[e]={}})),{highlight:tt({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},Hs=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],isLoading:!!e.isLoading[t.componentId+"_active"],themePreset:e.config.themePreset,error:e.error[t.componentId],analytics:e.analytics,enableAppbase:e.config.enableAppbase,headers:e.appbaseRef.headers,promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,popularSuggestions:e.querySuggestions[t.componentId],defaultPopularSuggestions:e.defaultPopularSuggestions[t.componentId],componentProps:e.props[t.componentId],lastUsedQuery:e.queryToHits[t.componentId],recentSearches:e.recentSearches.data}}),{setQueryOptions:Ps,updateQuery:Ss,setCustomQuery:$s,setDefaultQuery:ks,setCustomHighlightOptions:Is,recordSuggestionClick:Es,loadPopularSuggestions:As,getRecentSearches:Ts,resetStoreForComponent:Rs})(Bs),{componentType:T.dataSearch,internalComponent:Bs.hasInternalComponent()});Bs.install=function(e){e.component(Bs.name,Hs)},Bs.componentType=T.dataSearch;var Gs,Ws,Zs,Ks,Ys,Xs,Js=Gt("button")(ms||(ms=it(["\n\tdisplay: flex;\n\tmargin-left: auto;\n\tposition: relative;\n\tright: -3px;\n\tborder: none;\n\toutline: none;\n\tbackground: transparent;\n\tpadding: 0;\n\tz-index: 111000;\n\n\tsvg {\n\t\tcursor: pointer;\n\t\tfill: #707070;\n\t\theight: 20px;\n\t}\n\n\t&:hover {\n\t\tsvg {\n\t\t\tfill: #1c1a1a;\n\t\t}\n\t}\n"]))),eu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(Js,{on:{click:this.$listeners.click}},[e("svg",{attrs:{viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M8 17v-7.586l8.293 8.293c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414l-8.293-8.293h7.586c0.552 0 1-0.448 1-1s-0.448-1-1-1h-10c-0.552 0-1 0.448-1 1v10c0 0.552 0.448 1 1 1s1-0.448 1-1z"}})])])},methods:{clicked:function(e){e.stopPropagation(),window.console.log("hey",e)}}},tu=Xe.updateQuery,nu=Xe.setCustomQuery,ru=Xe.setDefaultQuery,ou=Xe.recordSuggestionClick,iu=et.debounce,au=et.checkValueChange,su=et.getClassName,uu=et.isEqual,lu=et.getCompositeAggsQuery,cu=et.withClickIds,du=et.getResultStats,pu=et.normalizeDataField,hu={name:"SearchBox",data:function(){var e=this.$props;return this.__state={currentValue:"",isOpen:!1,normalizedSuggestions:[]},this.internalComponent=e.componentId+"__internal",this.__state},inject:{theme:{from:"theme_reactivesearch"}},created:function(){var e=this.$props,t=e.distinctField,n=e.distinctFieldConfig,r=e.index;this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!t&&!n||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&r&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue=this.selectedValue||this.value||this.defaultValue||"",this.handleTextChange=iu(this.handleText,this.$props.debounce),this.setValue(this.currentValue,!0,this.$props,void 0,!1,this.selectedCategory),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return ur(this)},stats:function(){return du(this)}},props:{autoFocus:St.bool,autosuggest:St.bool.def(!0),beforeValueChange:Un.func,className:St.string.def(""),clearIcon:Un.children,componentId:Un.stringRequired,customHighlight:Un.func,customQuery:Un.func,defaultQuery:Un.func,dataField:St.oneOfType([St.string,St.shape({field:St.string,weight:St.number}),St.arrayOf(St.string),St.arrayOf({field:St.string,weight:St.number})]),aggregationField:Un.string,aggregationSize:St.number,size:St.number,debounce:St.number.def(0),defaultValue:Un.string,excludeFields:Un.excludeFields,value:Un.value,defaultSuggestions:Un.suggestions,enableSynonyms:St.bool.def(!0),enableQuerySuggestions:St.bool.def(!1),enablePopularSuggestions:St.bool.def(!1),enableRecentSuggestions:St.bool.def(!1),fieldWeights:Un.fieldWeights,filterLabel:Un.string,fuzziness:Un.fuzziness,highlight:St.bool,highlightField:Un.stringOrArray,icon:Un.children,iconPosition:St.oneOf(["left","right"]).def("left"),includeFields:Un.includeFields,innerClass:Un.style,innerRef:St.string.def("searchInputField"),render:Un.func,renderNoSuggestion:Un.title,renderError:Un.title,placeholder:St.string.def("Search"),queryFormat:St.oneOf(["and","or"]).def("or"),react:Un.react,showClear:St.bool.def(!0),showDistinctSuggestions:St.bool.def(!0),showFilter:St.bool.def(!0),showIcon:St.bool.def(!0),title:Un.title,theme:Un.style,URLParams:St.bool.def(!1),strictSelection:St.bool.def(!1),nestedField:Un.string,enablePredictiveSuggestions:St.bool.def(!1),recentSearchesIcon:St.any,popularSearchesIcon:St.any,showVoiceSearch:St.bool.def(!1),getMicInstance:Un.func,renderMic:Un.func,distinctField:Un.string,distinctFieldConfig:Un.props,focusShortcuts:St.arrayOf(St.oneOfType([St.string,St.number])).def(["/"]),addonBefore:St.any,addonAfter:St.any,expandSuggestionsContainer:St.bool.def(!0),index:St.string,popularSuggestionsConfig:St.object,recentSuggestionsConfig:St.object,applyStopwords:St.bool,customStopwords:Un.stringArray,onData:Un.func,renderItem:Un.func,enterButton:St.bool.def(!1),renderEnterButton:St.any},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){uu(e,t)||this.triggerCustomQuery(this.$data.currentValue)},fieldWeights:function(){this.triggerCustomQuery(this.$data.currentValue)},fuzziness:function(){this.triggerCustomQuery(this.$data.currentValue)},queryFormat:function(){this.triggerCustomQuery(this.$data.currentValue)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){uu(e,t)||this.setValue(e,!0,this.$props,""===e?Je.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(cu(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(cu(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){t!==e&&this.$data.currentValue!==e&&(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",Je.CLEAR_VALUE),void 0===this.$props.value&&this.setValue(e||"",!0,this.$props))},focusShortcuts:function(){this.listenForFocusShortcuts()},rawData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:e,aggregationData:this.aggregationData,loading:this.isLoading,error:this.isError})},aggregationData:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:e,loading:this.isLoading,error:this.isError})},loading:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:e,error:this.isError})},error:function(e){this.$emit("on-data",{data:this.normalizedSuggestions,rawData:this.rawData,aggregationData:this.aggregationData,loading:this.isLoading,error:e})},debounce:function(e,t){uu(e,t)||(this.handleTextChange=iu(this.handleText,e))}},methods:{handleText:function(e,t){t===Je.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=hu.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(!this.enableAppbase){if(!n)return void console.error(t);if("string"!=typeof n&&"object"!=typeof n&&!Array.isArray(n))return void console.error("Invalid dataField supplied to "+e+". Validation failed.");Array.isArray(n)&&0===n.length&&console.error(t)}},getComponent:function(e){void 0===e&&(e={});var t=this.$data.currentValue,n={error:this.error,loading:this.isLoading,downshiftProps:e,data:this.normalizedSuggestions,rawData:this.rawData,value:t,resultStats:this.stats};return sr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=_e(this.$props);return e&&(t.aggs=lu({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,Je.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var a=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);au(n.componentId,e,n.beforeValueChange,(function(){a.currentValue=e,t?(a.$props.autosuggest&&(o&&(a.isOpen=!1),a.triggerDefaultQuery(e)),n.strictSelection?r===Je.SUGGESTION_SELECT||""===e?a.triggerCustomQuery(e,i):a.setValue("",!0):void 0===n.value&&a.triggerCustomQuery(e,i)):a.handleTextChange(e,r),a.$emit("valueChange",e),a.$emit("value-change",e)}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=hu.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),dr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:T.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,a=n.URLParams,s="string"!=typeof e?this.$data.currentValue:e,u=hu.defaultQuery(s+(t?" in "+t:""),this.$props);if(r){var l=r(s,this.$props).query;l&&(u=l),pr(this.$props.componentId,this.setCustomQuery,this.$props,s)}this.updateQuery({componentId:this.$props.componentId,query:u,value:s,label:o,showFilter:i,URLParams:a,componentType:T.searchBox,category:t})},handleFocus:function(e){this.$props.autosuggest&&(this.isOpen=!0),this.$emit("focus",e)},handleVoiceResults:function(e){var t=e.results;t&&t[0]&&t[0].isFinal&&t[0][0]&&t[0][0].transcript&&t[0][0].transcript.trim()&&this.setValue(t[0][0].transcript.trim(),!0)},triggerQuery:function(e){var t=e.isOpen,n=void 0===t?void 0:t,r=e.customQuery,o=void 0===r||r,i=e.defaultQuery,a=void 0===i||i,s=e.value,u=void 0===s?void 0:s,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),a&&this.triggerDefaultQuery(u)},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.normalizedSuggestions.find((function(t){return t._click_id===e}));r&&r.source&&r.source._id&&(n=r.source._id)}this.recordSuggestionClick(e,n)},clearValue:function(){this.setValue("",!1,this.$props,Je.CLEAR_VALUE,!1),this.onValueSelectedHandler("",Je.CLEAR_VALUE)},handleKeyDown:function(e,t){void 0===t&&(t=null),"Enter"===e.key&&(!1===this.$props.autosuggest?this.enterButtonOnClick():null===t&&(this.setValue(e.target.value,!0),this.onValueSelectedHandler(e.target.value,Je.ENTER_PRESS))),this.$emit("keyDown",e,this.triggerQuery),this.$emit("key-down",e,this.triggerQuery)},onInputChange:function(e){var t=this,n=e.target.value;!this.$data.isOpen&&this.$props.autosuggest&&(this.isOpen=!0),void 0===this.$props.value?this.setValue(n,!1,this.$props,""===n?Je.CLEAR_VALUE:void 0):this.$emit("change",n,(function(e){var r=e.isOpen;return t.triggerQuery({defaultQuery:!0,customQuery:!0,value:n,isOpen:r})}),e)},onSuggestionSelected:function(e){var t=this;this.isOpen=!1;var n=this.$props.value;this.triggerClickAnalytics(e._click_id),void 0===n?this.setValue(e.value,!0,this.$props,Je.SUGGESTION_SELECT,!1,e._category):this.$emit("change",e.value,(function(n){var r=n.isOpen;return t.triggerQuery({isOpen:r,value:e.value,categoryValue:e._category})})),this.onValueSelectedHandler(e.value,Je.SUGGESTION_SELECT,e.source)},onValueSelectedHandler:function(e){void 0===e&&(e=this.$data.currentValue);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.$emit.apply(this,["valueSelected",e].concat(n)),this.$emit.apply(this,["value-selected",e].concat(n))},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){return"dark"===this.themePreset?e===t?"#555":"#424242":e===t?"#eee":"#fff"},renderIcon:function(){var e=this.$createElement;return this.$props.showIcon?this.$props.icon||e(cs):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(es,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[ir(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ds):null},renderNoSuggestions:function(e){void 0===e&&(e=[]);var t=this.$createElement,n=this.$props,r=n.theme,o=n.innerClass,i=this.$scopedSlots.renderNoSuggestion||this.$props.renderNoSuggestion,a=this.$scopedSlots.renderError||this.$props.renderError,s=this.$data,u=s.isOpen,l=s.currentValue;return!i||!u||e.length||this.isLoading||!l||a&&this.error?null:t(es,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},renderInputAddonBefore:function(){var e=this.$createElement,t=this.$scopedSlots.addonBefore;return t?e(Aa,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Aa,{class:"addon-after"},[t()]):null},enterButtonOnClick:function(){this.triggerQuery({isOpen:!1,value:this.currentValue,customQuery:!0})},renderEnterButtonElement:function(){var e=this,t=this.$createElement,n=this.$props,r=n.enterButton,o=n.innerClass,i=this.$scopedSlots.renderEnterButton;if(r){return t("div",{class:"enter-button-wrapper"},[i?i(e.enterButtonOnClick):t(Dn,{class:"enter-btn "+su(o,"enter-button"),attrs:{primary:!0},on:{click:e.enterButtonOnClick}},["Search"])])}return null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,a=t.showVoiceSearch,s=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(qa,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(za,{on:{click:this.clearValue},attrs:{showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(_s,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:su(o,"mic")||null}}),"right"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(qa,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&s&&e(za,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])])])},focusSearchBox:function(e){var t,n,r=e.target||e.srcElement,o=r.tagName;r.isContentEditable||"INPUT"===o||"SELECT"===o||"TEXTAREA"===o||null==(t=this.$refs)||null==(n=t[this.$props.innerRef])||n.focus()},listenForFocusShortcuts:function(){var e=this,t=this.$props.focusShortcuts,n=void 0===t?["/"]:t;gr(n)||(ia(vr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),ia("*",(function(t){var r=Cr(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(ia[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=t,this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(eu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,a=i.recentSearchesIcon,s=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:su(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(Ya,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,c=n.getInputProps,d=n.getItemProps,p=n.getItemEvents,h=n.isOpen,f=n.highlightedIndex,g=n.setHighlightedIndex,m=function(){var n=function(e){switch(e){case ye.Recent:return a;case ye.Popular:return s;default:return null}};return t("div",[e.hasCustomRenderer&&e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f}),e.renderErrorComponent(),!e.hasCustomRenderer&&h&&u?t("ul",{class:Fa(e.themePreset,r)+" "+su(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:tt({},d({item:r})),on:tt({},p({item:r})),key:o+1+"-"+r.value,style:{backgroundColor:e.getBackgroundColor(f,o),justifyContent:"flex-start",alignItems:"center"}},l?[l(r)]:[t("div",{style:{padding:"0 10px 0 0",display:"flex"}},[t(ws,{attrs:{className:su(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ls,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:Na},[t(da,[e.renderInputAddonBefore(),t(Ea,[t(Da,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,autoFocus:e.$props.autoFocus,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:su(e.$props.innerClass,"input"),on:tt({},i({onInput:e.onInputChange,onBlur:function(t){e.$emit("blur",t,e.triggerQuery)},onFocus:e.handleFocus,onKeyPress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},onKeyDown:function(t){return e.handleKeyDown(t,f)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){g(null)}})),domProps:tt({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m()])}}}):t("div",{class:Na},[t(da,[this.renderInputAddonBefore(),t(Ea,[t(Da,{class:su(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,themePreset:this.themePreset},on:tt({},{blur:function(t){e.$emit("blur",t,e.triggerQuery)},keypress:function(t){e.$emit("keyPress",t,e.triggerQuery),e.$emit("key-press",t,e.triggerQuery)},input:this.onInputChange,focus:function(t){e.$emit("focus",t,e.triggerQuery)},keydown:this.handleKeyDown,keyup:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)}}),domProps:tt({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""}),ref:this.$props.innerRef}),this.renderIcons()]),this.renderInputAddonAfter(),this.renderEnterButtonElement()])])])},destroyed:function(){document.removeEventListener("keydown",this.onKeyDown)},defaultQuery:function(e,t){var n,r=pu(t.dataField,t.fieldWeights);return(n={bool:{should:hu.shouldQuery(e,r,t),minimum_should_match:"1"}})&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},shouldQuery:function(e,t,n){var r=[],o=[],i=t.map((function(e){var t=e.field+(e.weight?"^"+e.weight:"");return e.field.endsWith(".keyword")||e.field.endsWith(".autosuggest")||e.field.endsWith(".search")||o.push(t),t}));return n.searchOperators||n.queryString?{query:e,fields:i,default_operator:n.queryFormat}:"and"===n.queryFormat?(r.push({multi_match:{query:e,fields:i,type:"cross_fields",operator:"and"}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"and"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"and"}}),r):(r.push({multi_match:{query:e,fields:i,type:"best_fields",operator:"or",fuzziness:n.fuzziness?n.fuzziness:0}}),r.push({multi_match:{query:e,fields:i,type:"phrase",operator:"or"}}),o.length>0&&r.push({multi_match:{query:e,fields:o,type:"phrase_prefix",operator:"or"}}),r)}},fu=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,selectedCategory:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].category||null,suggestions:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],themePreset:e.config.themePreset,isLoading:!!e.isLoading[t.componentId+"_active"],error:e.error[t.componentId],enableAppbase:e.config.enableAppbase,time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{updateQuery:tu,setCustomQuery:nu,setDefaultQuery:ru,recordSuggestionClick:ou})(hu),{componentType:T.searchBox,internalComponent:!0});hu.install=function(e){e.component(hu.name,fu)},hu.componentType=T.searchBox;var gu="15px",mu="15px",yu="4px",vu=Ut(Gs||(Gs=it(["\n\tborder: 0;\n\tclip: rect(1px, 1px, 1px, 1px);\n\tclip-path: inset(50%);\n\theight: 1px;\n\toverflow: hidden;\n\tpadding: 0;\n\tposition: absolute;\n\twidth: 1px;\n\twhite-space: nowrap;\n"]))),bu=Ut(Ws||(Ws=it(["\n\t+ label {\n\t\tpadding-left: 0;\n\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder: 0;\n\t\t\tmargin: 0;\n\t\t\tvisibility: hidden;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\tfont-weight: bold;\n\t\t}\n\t}\n"]))),Cu=function(e){var t=e.theme;return Ut(Zs||(Zs=it(["\n\t",";\n\n\t&:focus {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tbox-shadow: 0 0 0 2px ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:hover {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\t\t}\n\t}\n\n\t&:active {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\ttransition-duration: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t+ label {\n\t\tposition: relative;\n\t\tuser-select: none;\n\t\tdisplay: flex;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\talign-items: center;\n\t\tcursor: pointer;\n\n\t\t&::before {\n\t\t\tbackground-color: #fff;\n\t\t\tborder: 1px solid ",";\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tcolor: ",";\n\t\t\tmargin-right: calc("," * 0.5);\n\t\t\ttop: 50%;\n\t\t\tleft: 0;\n\t\t\twidth: ",";\n\t\t\theight: ",";\n\t\t\tdisplay: inline-block;\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&::after {\n\t\t\tbox-sizing: content-box;\n\t\t\tcontent: '';\n\t\t\tbackground-color: ",";\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 2);\n\t\t\twidth: calc("," - ",");\n\t\t\theight: calc("," - ",");\n\t\t\tmargin-top: calc("," / -2 - "," / -2);\n\t\t\ttransform: scale(0);\n\t\t\ttransform-origin: 50%;\n\t\t\ttransition: transform 200ms ease-out;\n\t\t}\n\t}\n"])),vu,Rn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Rn(.1,t.colors.textColor),t.colors.primaryColor,gu,gu,mu,t.colors.primaryColor,yu,gu,yu,mu,yu,mu,yu)},Ou=Gt("input")(Ks||(Ks=it(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 50%;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t+ label {\n\t\t\t\tcolor: ",";\n\n\t\t\t\t&::before {\n\t\t\t\t\tanimation: none;\n\t\t\t\t\tfilter: none;\n\t\t\t\t\ttransition: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tanimation: none;\n\t\t\t\tbackground-color: #fff;\n\t\t\t\tborder-color: ",";\n\t\t}\n\n\t\t&::after {\n\t\t\ttransform: scale(1);\n\t\t}\n\t}\n"])),Cu,(function(e){return e.show?null:bu}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),_u=Gt("input")(Ys||(Ys=it(["\n\t",";\n\t",";\n\n\t+ label {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-radius: 0;\n\t\t}\n\n\t\t&::after {\n\t\t\tbackground-color: transparent;\n\t\t\ttop: 50%;\n\t\t\tleft: calc(1px + "," / 5);\n\t\t\twidth: calc("," / 2);\n\t\t\theight: calc("," / 5);\n\t\t\tmargin-top: calc("," / -2 / 2 * 0.8);\n\t\t\tborder-style: solid;\n\t\t\tborder-color: ",";\n\t\t\tborder-width: 0 0 2px 2px;\n\t\t\tborder-radius: 0;\n\t\t\tborder-image: none;\n\t\t\ttransform: rotate(-45deg) scale(0);\n\t\t\ttransition: none;\n\t\t}\n\t}\n\n\t&:checked {\n\t\t+ label {\n\t\t\t&::before {\n\t\t\t\tborder-color: ",";\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\ttransform: rotate(-45deg) scale(1);\n\t\t\t\ttransition: transform 200ms ease-out;\n\t\t\t}\n\t\t}\n\t}\n"])),Cu,(function(e){return e.show?null:bu}),gu,gu,gu,mu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),wu=Gt("ul")(Xs||(Xs=it(["\n\tlist-style: none;\n\tpadding: 0;\n\tmargin: 0;\n\tmax-height: 240px;\n\tposition: relative;\n\toverflow-y: auto;\n\tpadding-bottom: 12px;\n\n\tli {\n\t\theight 30px;\n\t\tdisplay: flex;\n\t\tflex-direction: row;\n\t\talign-items: center;\n\t\tpadding-left: 2px;\n\t}\n"]))),Su=et.getAggsOrder,Pu=function(e,t){var n,r=e,o=t.dataField,i=t.size,a=t.sortBy,s=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:tt({field:o,size:i,order:Su(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),tt({},r,function(e){var t={};if(e.defaultQuery){var n=e.defaultQuery([],e);n&&(n.query&&(t.query=n.query),n.aggs&&(t.aggs=n.aggs))}return t}(t))},$u=Xe.updateQuery,ku=Xe.setQueryOptions,Iu=Xe.setCustomQuery,Eu=Xe.setDefaultQuery,Au=et.getQueryOptions,Tu=et.checkValueChange,Ru=et.getClassName,xu=et.isEqual,Lu=et.extractQueryFromCustomQuery,Mu=et.getOptionsForCustomQuery,ju={name:"SingleList",props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultValue:Un.string,value:Un.value,defaultQuery:Un.func,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Search"),react:Un.react,render:Un.func,renderItem:Un.func,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),showRadio:St.bool.def(!0),showSearch:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),nestedField:Un.string,index:St.string,enableStrictSelection:St.bool.def(!1)},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){xu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return ir(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ge(String(t.key)).toLowerCase().includes(ge(e.$data.searchTerm.toLowerCase())))}));return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Ru(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(wu,{class:Ru(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(Ou,{class:Ru(this.$props.innerClass,"radio"),attrs:{id:this.$props.componentId+"-"+r,name:this.$props.componentId,value:r,readOnly:!0,show:this.$props.showRadio},on:{click:this.handleClick},domProps:tt({},{checked:this.$data.currentValue===r})}),t("label",{class:Ru(this.$props.innerClass,"label")||null,attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.currentValue===String(n.key)?"active":""},[t(Ou,{class:Ru(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,readOnly:!0,type:"radio",show:e.$props.showRadio},on:{click:e.handleClick},domProps:tt({},{checked:e.currentValue===String(n.key)})}),t("label",{class:Ru(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:Ru(e.$props.innerClass,"count")||null},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=e;e===this.$data.currentValue&&(r="");Tu(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateDefaultQueryHandler:function(e,t){var n=ju.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Lu(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=Mu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=ju.defaultQuery(e,t);if(n){var o=n(e,t);r=Lu(o);var i=Mu(o);pr(t.componentId,this.setCustomQuery,t,e),this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleList})},generateQueryOptions:function(e){var t=Au(e);return Pu(t,e)},updateQueryHandlerOptions:function(e){var t=ju.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Mu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,tt({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Da,{class:Ru(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return sr(i,this)},handleClick:function(e){var t=e;return cr(e)&&(t=e.target.value),(!this.enableStrictSelection||t!==this.currentValue)&&(void 0===this.$props.value?this.setValue(t):this.$emit("change",t),!0)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Ru(this.$props.innerClass,"noResults")||null},[ir(t)?t():t])}},computed:{hasCustomRenderer:function(){return ur(this)}},generateQueryOptions:function(e){var t=Au(e);return Pu(t,e)},defaultQuery:function(e,t){var n,r=null;(t.selectAllLabel&&t.selectAllLabel===e&&(t.showMissing&&(r={match_all:{}}),r={exists:{field:t.dataField}}),e)&&(r={term:(n={},n[t.dataField]=e,n)},t.showMissing&&t.missingLabel===e&&(r={bool:{must_not:{exists:{field:t.dataField}}}}));return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},hasInternalComponent:function(){return!0}},Qu=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:ku,updateQuery:$u,setCustomQuery:Iu,setDefaultQuery:Eu})(ju),{componentType:T.singleList,internalComponent:ju.hasInternalComponent()});ju.install=function(e){e.component(ju.name,Qu)},ju.componentType=T.singleList;var Vu=Xe.updateQuery,Du=Xe.setQueryOptions,Fu=Xe.setCustomQuery,Nu=Xe.setDefaultQuery,Uu=et.isEqual,qu=et.getQueryOptions,zu=et.checkValueChange,Bu=et.getClassName,Hu=et.extractQueryFromCustomQuery,Gu=et.getOptionsForCustomQuery,Wu={name:"MultiList",props:{defaultValue:Un.stringArray,value:Un.stringArray,queryFormat:St.oneOf(["and","or"]).def("or"),showCheckbox:St.bool.def(!0),beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultQuery:Un.func,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Search"),react:Un.react,render:Un.func,renderItem:Un.func,renderError:Un.title,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),showSearch:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),nestedField:Un.string,index:St.string},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryHandlerOptions(this.$props);var e=this.selectedValue||this.$props.value||this.$props.defaultValue;this.setValue(e,!this.selectedValue)},mounted:function(){var e=Object.keys(this.$data.currentValue);void 0===this.$props.value||Uu(this.$props.value,e)||this.$emit("change",e)},watch:{options:function(e){e&&(this.modifiedOptions=e[this.$props.dataField]?e[this.$props.dataField].buckets:[])},size:function(){this.updateQueryHandlerOptions(this.$props)},sortBy:function(){this.updateQueryHandlerOptions(this.$props)},dataField:function(){this.updateQueryHandlerOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},value:function(e,t){Uu(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){Uu(t,e)||this.setValue(e,!0)},selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),Uu(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.selectAllLabel,o=n.renderItem,i=n.renderError,a=this.$scopedSlots.renderItem||o,s=this.$scopedSlots.renderError||i;if(s&&this.error)return ir(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length&&!this.isLoading){if(!this.renderNoResult)return null;this.renderNoResult()}var u=this.$data.modifiedOptions;this.$props.transformData&&(u=this.$props.transformData(u));var l=u.filter((function(t){return!!String(t.key).length&&(!e.$props.showSearch||!e.$data.searchTerm||ge(String(t.key)).toLowerCase().includes(ge(e.$data.searchTerm).toLowerCase()))}));return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Bu(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(wu,{class:Bu(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(_u,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:Bu(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:tt({},{checked:!!this.currentValue[r]})}),t("label",{class:Bu(this.$props.innerClass,"label"),attrs:{for:this.$props.componentId+"-"+r}},[r])]):null,this.hasCustomRenderer||0!==l.length||this.isLoading?l.map((function(n){return t("li",{key:n.key,class:e.$data.currentValue[n.key]?"active":""},[t(_u,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:Bu(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:tt({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:Bu(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[a?a({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:Bu(e.$props.innerClass,"count")},[" (",n.doc_count,")"])])])])})):this.renderNoResult()])])},methods:{setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ot(s,[o].map(at)));i=tt({},u)}}else{if(i[e]){var l=i,c=(l[e],ot(l,[e].map(at)));i=tt({},c)}else Array.isArray(e)?e.forEach((function(e){i[e]=!0})):i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ot(d,[o].map(at)));i=tt({},p)}a=Object.keys(i)}zu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=Wu.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Hu(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=Gu(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wu.defaultQuery(e,t);if(n){var o=n(e,t);r=Hu(o),pr(t.componentId,this.setCustomQuery,t,e);var i=Gu(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiList})},generateQueryOptions:function(e){var t=qu(e);return Pu(t,e)},updateQueryHandlerOptions:function(e){var t=Wu.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=Gu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,tt({},t,r))}else this.setQueryOptions(this.internalComponent,t)},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},renderSearch:function(){var e=this.$createElement;return this.$props.showSearch?e(Da,{class:Bu(this.$props.innerClass,"input")||"",on:{input:this.handleInputChange},attrs:{value:this.$data.searchTerm,placeholder:this.$props.placeholder,themePreset:this.$props.themePreset},style:{margin:"0 0 8px"}}):null},handleClick:function(e){var t=e;cr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=ar(n||[],t);this.$emit("change",r)}},getComponent:function(){var e=this.$data,t=e.currentValue,n=e.modifiedOptions,r=this.$props.transformData,o=n;r&&(o=r(o));var i={error:this.error,loading:this.isLoading,value:t,data:o,rawData:this.rawData,handleChange:this.handleClick};return sr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:Bu(this.$props.innerClass,"noResults")||null},[ir(t)?t():t])}},computed:{hasCustomRenderer:function(){return ur(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=qu(e);return Pu(t,e)}},Zu={setQueryOptions:Du,updateQuery:Vu,setCustomQuery:Fu,setDefaultQuery:Nu};Wu.hasInternalComponent=function(){return!0};var Ku,Yu,Xu,Ju,el=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),Zu)(Wu),{componentType:T.multiList,internalComponent:Wu.hasInternalComponent()});Wu.install=function(e){e.component(Wu.name,el)},Wu.componentType=T.multiList;var tl,nl,rl=Ut(Ku||(Ku=it(["\n\tmin-height: 0;\n\theight: 30px;\n\tborder: 0;\n\tbox-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;\n\tborder-radius: 2px;\n"]))),ol=function(e){var t=e.theme;return Ut(Yu||(Yu=it(["\n\tbackground-color: ",";\n\tborder-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.borderColor,t.colors.textColor,t.colors.backgroundColor)},il=Gt("button")(Xu||(Xu=it(["\n\twidth: 100%;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: space-between;\n\tmin-height: 42px;\n\tborder-radius: 0;\n\toutline: none;\n\tpadding: 5px 12px;\n\tfont-size: 0.9rem;\n\tline-height: 1.2rem;\n\tbackground-color: #fff;\n\tborder: 1px solid #ccc;\n\tcolor: #424242;\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t",";\n\n\t& > div {\n\t\twidth: calc(100% - 24px);\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\ttext-align: left;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: #fcfcfc;\n\t}\n\n\t",";\n"])),(function(e){return e.small?rl:null}),(function(e){return"dark"===e.themePreset&&ol})),al=Gt("span")(Ju||(Ju=it(["\n\twidth: 16px;\n\theight: 16px;\n\tdisplay: inline-block;\n\tposition: relative;\n\tuser-select: none;\n\talign-items: center;\n\n\t&::after {\n\t\tbox-sizing: content-box;\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\tbackground-color: transparent;\n\t\ttop: 50%;\n\t\tleft: 0;\n\t\twidth: 8px;\n\t\theight: 4px;\n\t\tmargin-top: -4px;\n\t\tborder-style: solid;\n\t\tborder-color: ",";\n\t\tborder-width: 0 0 2px 2px;\n\t\tborder-radius: 0;\n\t\tborder-image: none;\n\t\ttransform: rotate(-45deg) scale(1);\n\t\ttransition: all 200ms ease-out;\n\t}\n"])),(function(e){return e.theme.colors.primaryColor})),sl=Ut(tl||(tl=it(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),ul=Gt("span")(nl||(nl=it(["\n\t&::before {\n\t\tcontent: '';\n\t\tborder-style: solid;\n\t\tborder-width: 0.15em 0.15em 0 0;\n\t\tdisplay: inline-block;\n\t\theight: 0.45em;\n\t\tposition: relative;\n\t\ttop: 0.35em;\n\t\tleft: 0;\n\t\ttransform: rotate(135deg);\n\t\tvertical-align: top;\n\t\twidth: 0.45em;\n\n\t\t",";\n\t}\n"])),(function(e){return e.open?sl:null})),ll=et.getClassName,cl={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Un.style,items:Un.data,keyField:St.string.def("key"),labelField:St.string.def("label"),multi:St.bool,placeholder:Un.string,returnsObject:St.bool,customLabelRenderer:Un.func,hasCustomRenderer:St.bool,customRenderer:Un.func,renderItem:Un.func,renderNoResults:St.any,handleChange:Un.func,transformData:Un.func,selectedItem:Un.selectedValue,showCount:St.bool,single:St.bool,small:St.bool.def(!1),themePreset:Un.themePreset,showSearch:St.bool,showClear:St.bool,searchPlaceholder:St.string.def("Type here to search...")},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.items,o=n.selectedItem,i=n.placeholder,a=n.labelField,s=n.keyField,u=n.themePreset,l=n.renderItem,c=n.transformData,d=n.footer,p=n.customLabelRenderer,h=n.hasCustomRenderer,f=n.customRenderer,g=r;c&&(g=c(g));var m=g.filter((function(t){return!!String(t[a]).length&&(!e.$props.showSearch||!e.$data.searchTerm||ge(String(t[a])).toLowerCase().includes(ge(e.$data.searchTerm.toLowerCase())))}));return t(Ya,{attrs:{isOpen:this.$data.isOpen,selectedItem:o,handleChange:this.onChange,handleMouseup:this.handleStateChange},scopedSlots:{default:function(n){var r=n.getItemProps,c=n.isOpen,y=n.highlightedIndex,v=n.getButtonProps,b=n.getItemEvents,C=n.getInputEvents;return t("div",{class:Na},[t(il,{on:tt({},tt({},v({onClick:e.toggle}))),class:ll(e.$props.innerClass,"select")||"",attrs:{title:o?e.renderToString(o):i,small:e.$props.small,themePreset:e.$props.themePreset}},[p?p(o):t("div",[o?e.renderToString(o):i]),t(ul,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Fa(u,e.theme)+" "+(e.$props.small?"small":"")+" "+ll(e.$props.innerClass,"list")},[e.$props.showSearch?e.renderSearchbox({on:{input:C({onInput:e.handleInputChange}).input}}):null,h||0!==m.length?m.map((function(n,i){var u=e.$props.multi&&(o&&!!o[n[s]]||Array.isArray(o)&&o.find((function(e){return e[a]===n[a]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:tt({},r({item:n})),on:tt({},b({item:n})),key:n[s],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[a],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[a]?t("span",{domProps:{innerHTML:n[a]}}):n[a],e.$props.showCount&&n.doc_count&&t("span",{class:ll(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(al,{class:ll(e.$props.innerClass,"icon")||""}):null])})):e.renderNoResult(),d]):null])}}})},methods:{toggle:function(){this.isOpen=!this.$data.isOpen},close:function(){this.isOpen=!1},onChange:function(e){this.$props.returnsObject?this.$props.handleChange(e):this.$props.handleChange(e[this.$props.keyField]),this.$props.multi||(this.isOpen=!1,this.searchTerm="")},handleStateChange:function(e){var t=e.isOpen;this.isOpen=t},getBackgroundColor:function(e,t){var n="dark"===this.$props.themePreset;return e?n?"#555":"#eee":t?n?"#686868":"#fafafa":n?"#424242":"#fff"},handleInputChange:function(e){var t=e.target.value;this.searchTerm=t},clearSearchTerm:function(){this.searchTerm=""},renderToString:function(e){var t=this,n=this.$props.customLabelRenderer;if(n){var r=n(e);if("string"==typeof r)return r}return Array.isArray(e)&&e.length?e.map((function(e){return t.renderToString(e)})).join(", "):e&&"object"==typeof e?e[this.$props.labelField]?e[this.$props.labelField]:Object.keys(e).length?this.renderToString(Object.keys(e)):this.$props.placeholder:e},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:ll(this.$props.innerClass,"noResults")||null},[ir(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,a=n.themePreset,s=n.innerClass,u=t(Da,Hr([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:a},style:{border:0,borderBottom:"1px solid #ddd"},class:ll(s,"input")},e]));return i?t(Ea,[u,this.searchTerm&&t(qa,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(za,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(ds)])])]):u}}},dl=Xe.updateQuery,pl=Xe.setQueryOptions,hl=Xe.setCustomQuery,fl=Xe.setDefaultQuery,gl=et.getQueryOptions,ml=et.checkValueChange,yl=et.checkPropChange,vl=et.getClassName,bl=et.isEqual,Cl=et.getCompositeAggsQuery,Ol=et.extractQueryFromCustomQuery,_l=et.getOptionsForCustomQuery,wl={name:"SingleDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultQuery:Un.func,defaultValue:Un.string,value:Un.value,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Select a value"),react:Un.react,renderLabel:Un.func,render:Un.func,renderItem:Un.func,renderError:Un.title,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),showSearch:St.bool.def(!1),showClear:St.bool.def(!1),showLoadMore:St.bool.def(!1),loadMoreLabel:St.oneOfType([St.string,St.any]).def("Load More"),nestedField:Un.string,index:St.string,searchPlaceholder:St.string.def("Type here to search...")},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{options:function(e,t){var n=this;e&&yl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){bl(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,d=this.$scopedSlots.renderLabel||a,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?ir(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:vl(this.$props.innerClass,"title")||""},[this.$props.title]),e(cl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return tt({},e,{key:String(e.key)})}))),handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",showCount:this.$props.showCount,hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,renderItem:l,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,themePreset:this.themePreset,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:Fn}},[e(Dn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:d}})])):p&&ir(p)?e("div",[p()]):p&&!ir(p)?p:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);ml(t.componentId,e,t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler(e,t),n.$emit("valueChange",e),n.$emit("value-change",e)}))},handleChange:function(e){void 0===this.$props.value?this.setValue(e):this.$emit("change",e)},updateDefaultQueryHandler:function(e,t){var n=wl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Ol(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=_l(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=wl.defaultQuery(e,t);if(n){var o=n(e,t);r=Ol(o),pr(t.componentId,this.setCustomQuery,t,e);var i=_l(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleDropdownList})},generateQueryOptions:function(e,t){var n=gl(e);return e.showLoadMore?Cl({query:n,props:e,after:t}):Pu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=wl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=_l(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,tt({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return sr(r,this)}},computed:{hasCustomRenderer:function(){return ur(this)}},defaultQuery:function(e,t){var n=null;if(t.selectAllLabel&&t.selectAllLabel===e)t.showMissing&&(n={match_all:{}}),n={exists:{field:t.dataField}};else if(e){var r;t.showMissing&&t.missingLabel===e&&(n={bool:{must_not:{exists:{field:t.dataField}}}}),n={term:(r={},r[t.dataField]=e,r)}}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=gl(e);return e.showLoadMore?Cl({query:n,props:e,after:t}):Pu(n,e)},hasInternalComponent:function(){return!0}},Sl=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||"",themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:pl,updateQuery:dl,setCustomQuery:hl,setDefaultQuery:fl})(wl),{componentType:T.singleDropdownList,internalComponent:wl.hasInternalComponent()});wl.install=function(e){e.component(wl.name,Sl)},wl.componentType=T.singleDropdownList;var Pl=Xe.updateQuery,$l=Xe.setQueryOptions,kl=Xe.setCustomQuery,Il=Xe.setDefaultQuery,El=et.isEqual,Al=et.getQueryOptions,Tl=et.checkValueChange,Rl=et.checkPropChange,xl=et.getClassName,Ll=et.getCompositeAggsQuery,Ml=et.extractQueryFromCustomQuery,jl=et.getOptionsForCustomQuery,Ql={name:"MultiDropdownList",data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:[],after:{},isLastBucket:!1},this.internalComponent=e.componentId+"__internal",this.__state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,dataField:Un.stringRequired,defaultValue:Un.stringArray,value:Un.stringArray,defaultQuery:Un.func,filterLabel:Un.string,innerClass:Un.style,placeholder:St.string.def("Select values"),queryFormat:St.oneOf(["and","or"]).def("or"),react:Un.react,renderLabel:Un.func,render:Un.func,renderItem:Un.func,renderError:Un.title,renderNoResults:St.any,transformData:Un.func,selectAllLabel:Un.string,showCount:St.bool.def(!0),showFilter:St.bool.def(!0),size:St.number,sortBy:St.oneOf(["asc","desc","count"]).def("count"),title:Un.title,URLParams:St.bool.def(!1),showMissing:St.bool.def(!1),missingLabel:St.string.def("N/A"),showSearch:St.bool.def(!1),showClear:St.bool.def(!1),showLoadMore:St.bool.def(!1),loadMoreLabel:St.oneOfType([St.string,St.any]).def("Load More"),nestedField:Un.string,index:St.string,searchPlaceholder:St.string.def("Type here to search...")},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var e=this.$props;this.modifiedOptions=this.options&&this.options[e.dataField]?this.options[e.dataField].buckets:[],pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),dr(this.componentId,this.setDefaultQuery,this.$props,this.currentValue)},beforeMount:function(){this.updateQueryOptions(this.$props),this.selectedValue?this.setValue(this.selectedValue,!0):this.$props.value?this.setValue(this.$props.value,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{selectedValue:function(e){var t=this,n=Object.keys(this.$data.currentValue);this.$props.selectAllLabel&&(n=n.filter((function(e){return e!==t.$props.selectAllLabel})),this.$data.currentValue[this.$props.selectAllLabel]&&(n=[this.$props.selectAllLabel])),El(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&Rl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var a=e[o].buckets,s=[].concat(i,a.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!a.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=s}else n.modifiedOptions=e[n.$props.dataField]?e[n.$props.dataField].buckets:[]}))},size:function(){this.updateQueryOptions(this.$props)},sortBy:function(){this.updateQueryOptions(this.$props)},dataField:function(){this.updateQueryOptions(this.$props),this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0)},value:function(e,t){El(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.componentId,this.$data.currentValue,this.$props)}},render:function(){var e=arguments[0],t=this.$props,n=t.showLoadMore,r=t.loadMoreLabel,o=t.renderItem,i=t.renderError,a=t.renderLabel,s=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||a,c=this.$data.isLastBucket,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,p=[];return u&&this.error?ir(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(p=[{key:this.$props.selectAllLabel}]),e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:xl(this.$props.innerClass,"title")||""},[this.$props.title]),e(cl,{attrs:{innerClass:this.$props.innerClass,items:[].concat(p,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return tt({},e,{key:String(e.key)})}))),hasCustomRenderer:this.hasCustomRenderer,customRenderer:this.getComponent,handleChange:this.handleChange,selectedItem:this.$data.currentValue,placeholder:this.$props.placeholder,labelField:"key",multi:!0,showCount:this.$props.showCount,themePreset:this.themePreset,renderItem:s,renderNoResults:this.$scopedSlots.renderNoResults||this.$props.renderNoResults,showSearch:this.$props.showSearch,showClear:this.$props.showClear,searchPlaceholder:this.$props.searchPlaceholder,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:Fn}},[e(Dn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):d&&ir(d)?e("div",[d()]):d&&!ir(d)?d:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=ar(this.currentValue,e);this.$emit("change",t)}},setValue:function(e,t,n){var r=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props);var o=this.$props.selectAllLabel,i=this.$data.currentValue,a=null;if(o&&e.includes(o))i[o]?(i={},a=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,a=[o]);else if(t){if(a=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var s=i,u=(s[o],ot(s,[o].map(at)));i=tt({},u)}}else{if(i[e]){var l=i,c=(l[e],ot(l,[e].map(at)));i=tt({},c)}else i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ot(d,[o].map(at)));i=tt({},p)}a=Object.keys(i)}Tl(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=tt({},i),r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n=Ql.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Ml(r);o&&(n=o),dr(t.componentId,this.setDefaultQuery,t,e);var i=jl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:T.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ql.defaultQuery(e,t);if(n){var o=n(e,t);r=Ml(o),pr(t.componentId,this.setCustomQuery,t,e);var i=jl(o);this.setQueryOptions(t.componentId,i,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiDropdownList})},generateQueryOptions:function(e,t){var n=Al(e);return e.showLoadMore?Ll({query:n,props:e,after:t}):Pu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Ql.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=jl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,tt({},n,o))}else this.setQueryOptions(this.internalComponent,n)},handleLoadMore:function(){this.updateQueryOptions(this.$props,!0)},getComponent:function(e,t){void 0===t&&(t={});var n=this.$data.currentValue,r={error:this.error,loading:this.isLoading,value:n,data:e||[],rawData:this.rawData,handleChange:this.handleChange,downshiftProps:t};return sr(r,this)}},computed:{hasCustomRenderer:function(){return ur(this)}},defaultQuery:function(e,t){var n=null,r=t.queryFormat;void 0===r&&(r="or");var o="or"===r?"terms":"term";if(!Array.isArray(e)||0===e.length)return null;if(t.selectAllLabel&&e.includes(t.selectAllLabel))n=t.showMissing?{match_all:{}}:{exists:{field:t.dataField}};else if(e){var i;if("or"===r)if(t.showMissing){var a,s,u=e.includes(t.missingLabel),l=[(s={},s[o]=(a={},a[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),a),s)];u&&(l=l.concat({bool:{must_not:{exists:{field:t.dataField}}}})),i={bool:{should:l}}}else{var c,d;(d={})[o]=((c={})[t.dataField]=e,c),i=d}else i={bool:{must:e.map((function(e){var n,r;return(r={})[o]=((n={})[t.dataField]=e,n),r}))}};n=e.length?i:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Al(e);return e.showLoadMore?Ll({query:n,props:e,after:t}):Pu(n,e)},hasInternalComponent:function(){return!0}},Vl=Rr(or((function(e,t){return{options:t.nestedField&&e.aggregations[t.componentId]?e.aggregations[t.componentId].reactivesearch_nested:e.aggregations[t.componentId],rawData:e.rawData[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,themePreset:e.config.themePreset,error:e.error[t.componentId],componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:$l,updateQuery:Pl,setCustomQuery:kl,setDefaultQuery:Il})(Ql),{componentType:T.multiDropdownList,internalComponent:Ql.hasInternalComponent()});Ql.install=function(e){e.component(Ql.name,Vl)},Ql.componentType=T.multiDropdownList;var Dl=Xe.updateQuery,Fl=Xe.setQueryOptions,Nl=Xe.setCustomQuery,Ul=et.isEqual,ql=et.checkValueChange,zl=et.getClassName,Bl=et.getOptionsFromQuery,Hl=et.handleA11yAction,Gl={name:"ToggleButton",props:{componentId:Un.stringRequired,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.any,value:Un.stringOrArray,filterLabel:Un.string,nestedField:Un.string,innerClass:Un.style,multiSelect:St.bool,react:Un.react,showFilter:St.bool,title:Un.title,URLParams:St.bool,renderItem:Un.func,index:St.string,enableStrictSelection:St.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=Gl.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(Gl.parseValue(e,this.$props))},dataField:function(){this.updateQuery(this.$data.currentValue,this.$props)},nestedField:function(){this.updateQuery(this.$data.currentValue,this.$props)},value:function(e,t){Ul(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)Ul(this.$data.currentValue,e)||Ul(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;Ul(n,this.selectedValue)||Ul(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQuery(this.$data.currentValue,this.$props)}},methods:{handleToggle:function(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!0);var o=this.$data.currentValue,i=e,a=[];a=t?Gl.parseValue(i,n):this.$props.multiSelect?o.some((function(e){return e.value===i.value}))?o.filter((function(e){return e.value!==i.value})):o.concat(i):o.some((function(e){return e.value===i.value}))?[]:[i],this.setValue(a,n,r)},setReact:function(e){e.react&&this.watchComponent(e.componentId,e.react)},setValue:function(e,t,n){var r=this;void 0===t&&(t=this.$props),void 0===n&&(n=!0);ql(t.componentId,t.multiSelect?e:e[0],t.beforeValueChange,(function(){var o=function(){r.updateQuery(e,t),r.$emit("valueChange",e),r.$emit("value-change",e)};n?(r.currentValue=e,o()):o()}))},updateQuery:function(e,t){var n=e;t.multiSelect||(n=e[0]?e[0].value:null);var r=t.customQuery,o=Gl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,Bl(r(e,t)),!1),pr(t.componentId,this.setCustomQuery,t,e));this.updateQueryHandler({componentId:t.componentId,query:o,value:n,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return Ul(e,t)})))&&(void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value),!0)},renderButton:function(e){var t=this,n=this.$createElement,r=this.$scopedSlots.renderItem||this.renderItem,o=this.$data.currentValue.some((function(t){return t.value===e.value}));return r?r({item:e,isSelected:o,handleClick:function(){return t.handleClick(e)}}):n(Dn,{class:zl(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return Hl(n,(function(){return t.handleClick(e)}))}},key:e.value,attrs:{primary:o,large:!0,tabIndex:o?"-1":"0"}},[e.label])}},render:function(){var e=this,t=arguments[0];return t(Xa,{class:Mn},[this.$props.title&&t(Gr,{class:zl(this.$props.innerClass,"title")},[this.$props.title]),this.$props.data.map((function(t){return e.renderButton(t)}))])},parseValue:function(e,t){return Array.isArray(e)?"string"==typeof e[0]?t.data.filter((function(t){return e.includes(t.value)})):e:t.data.filter((function(t){return t.value===e}))},defaultQuery:function(e,t){var n=null;return e&&e.length&&(n={bool:{boost:1,minimum_should_match:1,should:e.map((function(e){var n;return{term:(n={},n[t.dataField]=e.value,n)}}))}}),n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n}},Wl=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQueryHandler:Dl,setQueryOptions:Fl,setCustomQuery:Nl})(Gl),{componentType:T.toggleButton});Gl.install=function(e){e.component(Gl.name,Wl)},Gl.componentType=T.toggleButton;var Zl=["options"],Kl=Xe.updateQuery,Yl=Xe.setQueryOptions,Xl=Xe.setCustomQuery,Jl=Xe.setDefaultQuery,ec=et.parseHits,tc=et.isEqual,nc=et.getCompositeAggsQuery,rc=et.getResultStats,oc=et.extractQueryFromCustomQuery,ic=et.getOptionsForCustomQuery,ac={name:"ReactiveComponent",props:{componentId:Un.stringRequired,aggregationField:Un.string,aggregationSize:St.number,size:St.number,defaultQuery:Un.func,customQuery:Un.func,filterLabel:Un.string,react:Un.react,showFilter:St.bool.def(!0),URLParams:St.bool.def(!1),distinctField:Un.string,distinctFieldConfig:Un.props,index:St.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,pr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig,l=t.index;if(this.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.enableAppbase||!s&&!u||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),!this.enableAppbase&&l&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),n){var c=n(this.selectedValue,t),d=oc(c),p=c?ic(c):null;p?this.setQueryOptions(r,tt({},p,this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:d,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}if(this.setQuery=function(n){var r=n.options,o=ot(n,Zl),i=o.query;i&&i.query&&(i=i.query);var a=tt({},r,{query:i}),s=a;i&&i.id&&(s=i),e.setCustomQuery(t.componentId,s),r&&e.setQueryOptions(t.componentId,tt({},e.getAggsQuery(),r),!1),e.updateQuery(tt({},o,{query:a.query,componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal"),this.internalComponent&&this.$props.defaultQuery){dr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=oc(this.$defaultQuery),f=ic(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,tt({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){tc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){tc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){tc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){tc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){tc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){tc(e,t)||this.$emit("data",this.getData())},total:function(e,t){tc(e,t)||this.$emit("data",this.getData())},time:function(e,t){tc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!hr(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=oc(this.$defaultQuery),r=ic(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,tt({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),dr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!hr(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=oc(this.$customQuery),o=ic(this.$customQuery);o?this.setQueryOptions(n,tt({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),pr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue),this.updateQuery({componentId:n,query:r})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=tt({error:n,loading:r},this.getData(),{value:o,setQuery:this.setQuery});return e("div",[t(i)])}catch(e){return null}},methods:{getAggsQuery:function(){return this.aggregationField?{aggs:nc({props:this.$props,showTopHits:!0,value:this.selectedValue}).aggs}:{}},getData:function(){var e=this.hits,t=this.aggregations,n=this.aggregationData,r=this.promotedResults,o=this.rawData,i=ec(e);if(r.length){var a=r.map((function(e){return e._id})).filter(Boolean);a&&(i=i.filter((function(e){return!a.includes(e._id)}))),i=[].concat(r,i)}return{data:i,aggregationData:n,rawData:o,aggregations:t,promotedData:r,resultStats:this.stats}}},computed:{stats:function(){return rc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},sc=Rr(or((function(e,t){return{aggregations:e.aggregations[t.componentId]&&e.aggregations[t.componentId]||null,aggregationData:e.compositeAggregations[t.componentId]||[],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits||[],rawData:e.rawData[t.componentId],error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,promotedResults:e.promotedResults[t.componentId]||[],time:e.hits[t.componentId]&&e.hits[t.componentId].time||0,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{setQueryOptions:Yl,updateQuery:Kl,setCustomQuery:Xl,setDefaultQuery:Jl})(ac),{componentType:T.reactiveComponent});ac.install=function(e){e.component(ac.name,sc)},ac.componentType=T.reactiveComponent;var uc=Xe.setValue,lc=Xe.clearValues,cc=Xe.resetValuesToDefault,dc=et.getClassName,pc=et.handleA11yAction,hc={name:"SelectedFilters",props:{className:St.string.def(""),clearAllLabel:St.string.def("Clear All"),innerClass:Un.style,showClearAll:St.bool.def(!0),title:Un.title,resetToDefault:St.bool.def(!1),clearAllBlacklistComponents:St.array,resetToValues:St.object},inject:{theme:{from:"theme_reactivesearch"}},render:function(){var e=this,t=arguments[0];if(this.$scopedSlots.default)return this.$scopedSlots.default({components:this.components,selectedValues:this.selectedValues,clearValues:this.clearValues,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(Xa,{class:xn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(Gr,{class:dc(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r?t(Dn,{class:dc(this.$props.innerClass,"button")||"",on:tt({},{click:this.clearValues,keypress:function(t){return pc(t,(function(){return e.clearValues()}))}}),attrs:{tabIndex:"0"}},[this.$props.clearAllLabel]):null])},methods:{remove:function(e,t){void 0===t&&(t=null),this.setValue(e,null),this.$emit("clear",e,t)},clearValues:function(){var e=this.resetToDefault,t=this.resetToValues,n=this.clearAllBlacklistComponents;e?this.resetValuesToDefault(n):this.clearValuesAction(t,n),this.$emit("clear",t)},renderValue:function(e,t){var n=this;if(t&&e.length)return e.map((function(e){return n.renderValue(e)})).join(", ");if(e&&"object"==typeof e){var r=("string"==typeof e.label?e.label:e.value)||e.key||e.distance||null;return e.location&&(r=e.location+" - "+r),r}return e},renderFilters:function(){var e=this,t=this.$createElement,n=this.selectedValues;return Object.keys(n).filter((function(t){return e.components.includes(t)&&n[t].showFilter})).map((function(r,o){var i=n[r],a=i.label,s=i.value,u=Array.isArray(s);if(a&&(u&&s.length||!u&&s)){var l=e.renderValue(s,u);return t(Dn,{class:dc(e.$props.innerClass,"button")||"",key:r+"-"+(o+1),on:tt({},{click:function(){return e.remove(r,s)},keypress:function(t){return pc(t,(function(){return e.remove(r,s)}))}}),attrs:{tabIndex:"0"}},[t("span",[n[r].label,": ",l]),t("span",["✕"])])}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},fc=or((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:lc,setValue:uc,resetValuesToDefault:cc})(hc);hc.install=function(e){e.component(hc.name,fc)};var gc=Xe.updateQuery,mc=Xe.setQueryOptions,yc=Xe.setCustomQuery,vc=et.isEqual,bc=et.checkValueChange,Cc=et.getClassName,Oc=et.getOptionsFromQuery,_c={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.string,value:Un.value,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),showRadio:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),nestedField:Un.string,index:St.string},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue):this.$props.value?this.setValue(this.$props.value):this.$props.defaultValue&&this.setValue(this.$props.defaultValue)},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e)},value:function(e,t){vc(e,t)||this.setValue(e)},selectedValue:function(e){vc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Cc(this.$props.innerClass,"title")},[this.$props.title]),t(wu,{class:Cc(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(Ou,{class:Cc(e.$props.innerClass,"radio"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"radio",checked:r,show:e.$props.showRadio},on:{change:e.handleChange}}),t("label",{class:Cc(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);var r=_c.parseValue(e,t);bc(t.componentId,r,t.beforeValueChange,(function(){n.currentValue=r,n.updateQueryHandler(r,t),n.$emit("valueChange",r),n.$emit("value-change",r)}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=_c.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Oc(n(e,t));pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleRange})},handleChange:function(e){void 0===this.$props.value?this.setValue(e.target.value):this.$emit("change",e.target.value)}},parseValue:function(e,t){return t.data.find((function(t){return t.label===e}))||null},defaultQuery:function(e,t){var n,r=null;e&&(r={range:(n={},n[t.dataField]={gte:e.start,lte:e.end,boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r}},wc=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:gc,setQueryOptions:mc,setCustomQuery:yc})(_c),{componentType:T.singleRange});_c.install=function(e){e.component(_c.name,wc)},_c.componentType=T.singleRange;var Sc=Xe.updateQuery,Pc=Xe.setQueryOptions,$c=Xe.setCustomQuery,kc=et.isEqual,Ic=et.checkValueChange,Ec=et.getClassName,Ac=et.getOptionsFromQuery,Tc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Un.func,className:St.string.def(""),componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.stringArray,value:Un.stringArray,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),nestedField:Un.string,index:St.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=ar(this.selectedValues,e.target.value);this.$emit("change",t)}},selectItem:function(e,t,n,r){var o=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===r&&(r=!1);var i=this.currentValue,a=this.selectedValues;if(e)if(t){i=Tc.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:tt({},a,s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],ot(u,[e].map(at)));a=l}else{var c,d=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,d),a=tt({},a,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],a={};Ic(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=a,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(a)),o.$emit("value-change",Object.keys(a))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=Tc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Ac(n(e,t));pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiRange})}},watch:{dataField:function(){this.updateQueryHandler(this.$data.currentValue,this.$props)},defaultValue:function(e){this.selectItem(e,!0,void 0,!0)},value:function(e,t){kc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){kc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){this.selectedValue?this.selectItem(this.selectedValue,!0):this.$props.value?this.selectItem(this.$props.value,!0):this.$props.defaultValue&&this.selectItem(this.$props.defaultValue,!0)},render:function(){var e=this,t=arguments[0];return t(Xa,{class:this.$props.className},[this.$props.title&&t(Gr,{class:Ec(this.$props.innerClass,"title")},[this.$props.title]),t(wu,{class:Ec(this.$props.innerClass,"list")},[this.$props.data.map((function(n){var r=!!e.$data.currentValue&&e.$data.currentValue.label===n.label;return t("li",{key:n.label,class:r?"active":""},[t(_u,{class:Ec(e.$props.innerClass,"checkbox"),attrs:{id:e.$props.componentId+"-"+n.label,name:e.$props.componentId,value:n.label,type:"Checkbox",show:e.$props.showCheckbox},domProps:tt({},{checked:e.selectedValues[n.label]}),on:tt({},{click:e.handleClick})}),t("label",{class:Ec(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.label}},[n.label])])}))])])},parseValue:function(e,t){return e?t.data.filter((function(t){return e.includes(t.label)})):null},defaultQuery:function(e,t){var n,r,o=null;return e&&e.length&&(o={bool:{should:(n=t.dataField,r=e,r.length>0?r.map((function(e){var t;return{range:(t={},t[n]={gte:e.start,lte:e.end,boost:2},t)}})):null),minimum_should_match:1,boost:1}}),o&&t.nestedField?{query:{nested:{path:t.nestedField,query:o}}}:o}},Rc=Rr(or((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Sc,setQueryOptions:Pc,setCustomQuery:$c})(Tc),{componentType:T.multiRange});Tc.install=function(e){e.component(Tc.name,Rc)},Tc.componentType=T.multiRange;var xc,Lc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Gr,Hr([{},this.$props]),[t])},install:function(e){e.component(Lc.name,Lc)}},Mc=["src"],jc={name:"ResultCardImage",props:{src:St.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ot(t,Mc);return e(po,Hr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(jc.name,jc)}},Qc={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Hr([{},n]),[r])},install:function(e){e.component(Qc.name,Qc)}},Vc=["href","target"],Dc={name:"ResultCard",components:{ResultCardTitle:Lc,ResultCardImage:jc,ResultCardDescription:Qc},props:{target:St.string.def("_blank"),href:Un.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ot(n,Vc);return e(ho,Hr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(Dc.name,Dc),e.component(Lc.name,Lc),e.component(jc.name,jc),e.component(Qc.name,Qc)}},Fc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Hr([{},n]),[r])},install:function(e){e.component(Fc.name,Fc)}},Nc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Hr([{},n]),[r])},install:function(e){e.component(Nc.name,Nc)}},Uc=["src","small"],qc={name:"ResultListImage",props:{src:St.string.isRequired,small:St.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ot(t,Uc);return e(Kr,Hr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(qc.name,qc)}},zc={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Gr,Hr([{},this.$props]),[t])},install:function(e){e.component(zc.name,zc)}},Bc=["href","target"],Hc={name:"ResultList",props:{href:Un.string,target:St.string.def("_blank")},components:{ResultListContent:Fc,ResultListDescription:Nc,ResultListImage:qc,ResultListTitle:zc},data:function(){return this.__state={hasImage:!1,isSmall:!1},this.__state},mounted:function(){var e=this.$slots.default.find((function(e){return e.componentOptions&&e.componentOptions.tag===qc.name}));e&&e.componentOptions&&e.componentOptions.propsData&&(this.hasImage=!0,e.componentOptions.propsData.small&&(this.isSmall=!0))},render:function(){var e=arguments[0],t=this.$props,n=t.href,r=t.target,o=ot(t,Bc),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(Yr,Hr([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(Hc.name,Hc),e.component(Fc.name,Fc),e.component(Nc.name,Nc),e.component(qc.name,qc),e.component(zc.name,zc)}},Gc={name:"NoSsr",functional:!0,props:{placeholder:String,placeholderTag:{type:String,default:"div"}},render:function(e,t){var n=t.parent,r=t.slots,o=t.props,i=r(),a=i.default;void 0===a&&(a=[]);var s=i.placeholder;return n._isMounted?a:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||s)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||s):a.length>0?a.map((function(){return e(!1)})):e(!1))}},Wc=Gt("div")(xc||(xc=it(["\n\tmargin-top: 30px;\n\tpadding: 10px;\n\n\t/* component style */\n\t.vue-slider-disabled {\n\t\topacity: 0.5;\n\t\tcursor: not-allowed;\n\t}\n\n\t/* rail style */\n\t.vue-slider-rail {\n\t\tbackground-color: #ccc;\n\t\tborder-radius: 15px;\n\t\theight: 4px;\n\t}\n\n\t/* process style */\n\t.vue-slider-process {\n\t\tbackground-color: #0b6aff;\n\t\tborder-radius: 15px;\n\t}\n\n\t/* mark style */\n\t.vue-slider-mark {\n\t\tz-index: 4;\n\t}\n\n\t.vue-slider-mark:first-child .vue-slider-mark-step,\n\t.vue-slider-mark:last-child .vue-slider-mark-step {\n\t\tdisplay: none;\n\t}\n\n\t.vue-slider-mark-step {\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: rgba(0, 0, 0, 0.16);\n\t}\n\n\t.vue-slider-mark-label {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t}\n\n\t/* dot style */\n\t.vue-slider-dot {\n\t\tz-index: 2;\n\t}\n\n\t.vue-slider-dot-handle {\n\t\tcursor: pointer;\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder-radius: 50%;\n\t\tbackground-color: #fff;\n\t\tbox-sizing: border-box;\n\t\tborder: 1px solid #9a9a9a;\n\t\tz-index: 2;\n\t\tbox-shadow: 0.5px 0.5px 2px 1px rgb(0 0 0 / 32%);\n\t}\n\n\t.vue-slider-dot-handle-disabled {\n\t\tcursor: not-allowed;\n\t\tbackground-color: #ccc;\n\t}\n\n\t.vue-slider-dot-tooltip-inner {\n\t\tfont-size: 14px;\n\t\twhite-space: nowrap;\n\t\tpadding: 2px 5px;\n\t\tmin-width: 20px;\n\t\ttext-align: center;\n\t\tcolor: #fff;\n\t\tborder-radius: 5px;\n\t\tborder: 1px solid #3498db;\n\t\tbackground-color: #3498db;\n\t\tbox-sizing: content-box;\n\t}\n\n\t.vue-slider-dot-tooltip-inner::after {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-top::after {\n\t\ttop: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-top-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-bottom::after {\n\t\tbottom: 100%;\n\t\tleft: 50%;\n\t\ttransform: translate(-50%, 0);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-bottom-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-left::after {\n\t\tleft: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-left-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-inner-right::after {\n\t\tright: 100%;\n\t\ttop: 50%;\n\t\ttransform: translate(0, -50%);\n\t\theight: 0;\n\t\twidth: 0;\n\t\tborder-color: transparent;\n\t\tborder-style: solid;\n\t\tborder-width: 5px;\n\t\tborder-right-color: inherit;\n\t}\n\n\t.vue-slider-dot-tooltip-wrapper {\n\t\topacity: 0;\n\t\ttransition: all 0.3s;\n\t}\n\t.vue-slider-dot-tooltip-wrapper-show {\n\t\topacity: 1;\n\t}\n\n\t.label-container {\n\t\tmargin: 10px 0;\n\t\twidth: 100%;\n\t}\n\n\t.range-label-right {\n\t\tfloat: right;\n\t}\n"]))),Zc=function(){var e={NoSSR:Gc};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@3.2.15/dist/vue-slider-component.umd.min.js"),t.onload=function(){var t=Pt["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},Kc=Xe.updateQuery,Yc=Xe.setQueryOptions,Xc=Xe.setCustomQuery,Jc=et.checkValueChange,ed=et.getClassName,td=et.getOptionsFromQuery,nd=et.isEqual,rd={name:"RangeSlider",components:Zc(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Un.func,className:St.string.def(""),range:St.shape({start:St.integer.def(0),end:St.integer.def(10)}),rangeLabels:Un.rangeLabels,componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.range,value:Un.range,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),sliderOptions:St.object.def({}),nestedField:Un.string,index:St.string},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(){var e=this.$refs.slider.getValue();this.handleSliderChange(e)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);Jc(t.componentId,{start:e[0],end:e[1]},t.beforeValueChange,(function(){n.currentValue=e,n.updateQueryHandler([e[0],e[1]],t),n.$emit("valueChange",{start:e[0],end:e[1]}),n.$emit("value-change",{start:e[0],end:e[1]})}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=rd.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=td(n(e,t));pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,a=t.range,s=a.start,u=a.end,l=e[0],c=e[1],d=l===s&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!d,URLParams:t.URLParams,componentType:T.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(rd.parseValue(e,this.$props))},value:function(e,t){nd(e,t)||this.handleChange(rd.parseValue(e,this.$props))},selectedValue:function(e){nd(this.$data.currentValue,e)||(this.handleChange(rd.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){this.$props.range||console.error("%crange is not defined. Read more about this at https://opensource.appbase.io/reactive-manual/vue/range-components/rangeslider.html#props","font-size: 12.5px;"),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},beforeMount:function(){var e=this.$props,t=e.value,n=e.defaultValue,r=this.selectedValue;this.$props.range&&(Array.isArray(r)?this.handleChange(r):r?this.handleChange(rd.parseValue(r,this.$props)):t?this.handleChange(rd.parseValue(t,this.$props)):n&&this.handleChange(rd.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:ed(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(Gc,[e(Wc,{class:ed(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:this.currentValue,min:this.$props.range.start,max:this.$props.range.end,dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:tt({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:ed(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:ed(this.$props.innerClass,"label")||"range-label-right"},[this.$props.rangeLabels.end])])])]):null])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e,t){return e?Array.isArray(e)?e:[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},od=Rr(or((function(e,t){return{options:e.aggregations[t.componentId]?e.aggregations[t.componentId][t.dataField]&&e.aggregations[t.componentId][t.dataField].buckets:[],selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{updateQuery:Kc,setQueryOptions:Yc,setCustomQuery:Xc})(rd),{componentType:T.rangeSlider});rd.install=function(e){e.component(rd.name,od)},rd.componentType=T.rangeSlider;var id=Xe.addComponent,ad=Xe.removeComponent,sd=Xe.watchComponent,ud=Xe.updateQuery,ld=Xe.setQueryListener,cd=Xe.setQueryOptions,dd=Xe.setComponentProps,pd=Xe.setCustomQuery,hd=Xe.updateComponentProps,fd=et.checkValueChange,gd=et.getClassName,md=et.isEqual,yd=et.checkSomePropChange,vd=et.extractQueryFromCustomQuery,bd=et.getOptionsForCustomQuery,Cd={name:"DynamicRangeSlider",components:Zc(),props:{beforeValueChange:Un.func,className:St.string.def(""),rangeLabels:Un.func,componentId:Un.stringRequired,customQuery:Un.func,data:Un.data,dataField:Un.stringRequired,defaultValue:Un.func,filterLabel:Un.string,innerClass:Un.style,react:Un.react,showFilter:St.bool.def(!0),destroyOnUnmount:St.bool,showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),sliderOptions:St.object.def({}),nestedField:Un.string,index:St.string,value:Un.range},data:function(){return this.internalRangeComponent=this.$props.componentId+"__range__internal",{currentValue:null,stats:[]}},created:function(){var e=this;this.setQueryListener(this.$props.componentId,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.$emit.apply(e,["queryChange"].concat(n)),e.$emit.apply(e,["query-change"].concat(n))}),null),this.setComponentProps(this.componentId,this.$props,T.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,T.dynamicRangeSlider),!this.enableAppbase&&this.$props.index&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),pr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){var e=[];this.$$store&&(e=this.$$store.getState().components);var t=this.$props.value;(this.destroyOnUnmount||-1===e.indexOf(this.componentId))&&(this.addComponent(this.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue?this.handleChange(Cd.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Cd.parseValue(t,this.$props)),this.updateRangeQueryOptions())},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent))},methods:{isControlled:function(){return!(!this.$props.value||!this.$listeners)},setDefaultValue:function(e){var t=e.start,n=e.end;if(this.$props.defaultValue){var r=this.$props.defaultValue(t,n),o=r.start,i=r.end;this.handleChange([o,i])}else this.isControlled()?this.handleChange(Cd.parseValue(this.$props.value),"change"):this.currentValue=[t,n]},setReact:function(){this.$props.react?(this.watchComponent(this.internalRangeComponent,this.$props.react),this.watchComponent(this.$props.componentId,this.$props.react)):(this.watchComponent(this.internalRangeComponent,{}),this.watchComponent(this.$props.componentId,{}))},rangeQuery:function(){return{min:{min:{field:this.$props.dataField}},max:{max:{field:this.$props.dataField}}}},updateRangeQueryOptions:function(){var e,t={};this.$props.nestedField?((e={})[this.$props.nestedField]={nested:{path:this.$props.nestedField},aggs:this.rangeQuery()},t=e):t=this.rangeQuery();this.setQueryOptions(this.internalRangeComponent,{aggs:t})},handleSlider:function(){var e=this.$refs.slider.getValue();void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleChange:function(e){var t=this,n=[this.range?Math.max(this.range.start,e[0]):e[0],this.range?Math.min(this.range.end,e[1]):e[1]];fd(this.$props.componentId,{start:n[0],end:n[1]},this.$props.beforeValueChange,(function(){t.currentValue=n,t.updateQueryHandler(n,t.$props),t.$emit("valueChange",{start:n[0],end:n[1]}),t.$emit("value-change",{start:n[0],end:n[1]})}))},updateQueryHandler:function(e){var t=Cd.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=vd(n);r&&(t=r);var o=bd(n);pr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},a=i.start,s=i.end,u=e[0],l=e[1],c=u===a&&l===s;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:T.dynamicRangeSlider})}},computed:{labels:function(){return this.rangeLabels?this.rangeLabels(this.range.start,this.range.end):null}},watch:{$props:{deep:!0,handler:function(e){var t=this,n=lr(e);yd(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,T.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,T.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!md(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Cd.parseValue(t,this.$props))}},range:function(e,t){if(!md(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},a=i.start,s=i.end,u=r===a?e.start:r,l=o===s?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){hr(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){md(e,t)||this.handleChange(Cd.parseValue(e,this.$props))}},render:function(){var e=arguments[0];if(!this.range||!this.currentValue)return null;var t=this.range,n=t.start,r=t.end;return e(Xa,{class:this.$props.className},[this.$props.title&&e(Gr,{class:gd(this.$props.innerClass,"title")},[this.$props.title]),e(Gc,[e(Wc,{class:gd(this.$props.innerClass,"slider")},[e("vue-slider-component",{ref:"slider",attrs:{value:[Math.floor(Math.max(n,this.currentValue[0])),Math.ceil(Math.min(r,this.currentValue[1]))],min:Math.floor(Math.min(n,this.currentValue[0])),max:Math.ceil(Math.max(r,this.currentValue[1])),dotSize:20,height:4,"enable-cross":!1,tooltip:"always"},on:{"drag-end":this.handleSlider},props:tt({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:gd(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:gd(this.$props.innerClass,"label")||"range-label-right"},[this.labels.end])]):null])])])},defaultQuery:function(e,t){var n,r=null;Array.isArray(e)&&e.length&&(r={range:(n={},n[t.dataField]={gte:e[0],lte:e[1],boost:2},n)});return r&&t.nestedField?{query:{nested:{path:t.nestedField,query:r}}}:r},parseValue:function(e){return e?Array.isArray(e)?e:[e.start,e.end]:[]},hasInternalComponent:function(){return!0}},Od=or((function(e,t){var n=e.aggregations[t.componentId],r=e.aggregations[t.componentId+"__range__internal"],o=n&&n[t.dataField],i=e.aggregations[t.componentId+"__range__internal"];return t.nestedField?(o=o&&n[t.dataField][t.nestedField]&&n[t.dataField][t.nestedField].buckets?n[t.dataField][t.nestedField].buckets:[],i=i&&r[t.nestedField].min?{start:r[t.nestedField].min.value,end:r[t.nestedField].max.value}:null):(o=o&&n[t.dataField].buckets?n[t.dataField].buckets:[],i=i&&r.min?{start:r.min.value,end:r.max.value}:null),{options:o,range:i,selectedValue:e.selectedValues[t.componentId]?e.selectedValues[t.componentId].value:null,componentProps:e.props[t.componentId],enableAppbase:e.config.enableAppbase}}),{addComponent:id,removeComponent:ad,updateQuery:ud,watchComponent:sd,setQueryListener:ld,setQueryOptions:cd,setComponentProps:dd,setCustomQuery:pd,updateComponentProps:hd})(Cd);Cd.install=function(e){e.component(Cd.name,Od)},Cd.componentType=T.dynamicRangeSlider;var _d=et.getSearchState,wd=function(e){return void 0===e&&(e={}),tt({},e,{props:e.componentProps})},Sd=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(Array.isArray(r)){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Pd=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return tt({},n,((o={})[r]=Object.keys(e[r]).filter((function(e){return t.includes(e)})).reduce((function(t,n){return t[n]=e[r][n],t}),{}),o))}),{})},$d={name:"StateProvider",props:{onChange:St.func,componentIds:St.oneOfType([St.string,St.arrayOf(St.string)]),includeKeys:St.arrayOf(St.string).def(["hits","value","aggregations","error"]),strict:St.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Pd(_d(wd(this.searchStateProps)),this.includeKeys)},computed:{searchStateProps:function(){return{selectedValues:this.selectedValues||{},queryLog:this.queryLog,dependencyTree:this.dependencyTree,componentProps:this.componentProps,hits:this.hits,aggregations:this.aggregations,isLoading:this.isLoading,error:this.error,promotedResults:this.promotedResults,rawData:this.rawData}}},watch:{searchState:function(e,t){this.isStateChanged(e,t)&&this.$emit("change",t,e)},selectedValues:function(e,t){this.calculateSearchState(e,t)},queryLog:function(e,t){this.calculateSearchState(e,t)},dependencyTree:function(e,t){this.calculateSearchState(e,t)},componentProps:function(e,t){this.calculateSearchState(e,t)},hits:function(e,t){this.calculateSearchState(e,t)},aggregations:function(e,t){this.calculateSearchState(e,t)},isLoading:function(e,t){this.calculateSearchState(e,t)},error:function(e,t){this.calculateSearchState(e,t)},componentIds:function(e,t){this.calculateSearchState(e,t)},includeKeys:function(e,t){this.calculateSearchState(e,t)},promotedResults:function(e,t){this.calculateSearchState(e,t)},rawData:function(e,t){this.calculateSearchState(e,t)},customData:function(e,t){this.calculateSearchState(e,t)},settings:function(e,t){this.calculateSearchState(e,t)}},methods:{isStateChanged:function(e,t){return JSON.stringify(t)!==JSON.stringify(e)},calculateSearchState:function(e,t){this.isStateChanged(e,t)&&(this.searchState=Pd(_d(wd(this.searchStateProps)),this.includeKeys))}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e}):null}},kd=or((function(e,t){return{selectedValues:Sd(e.selectedValues,t),queryLog:Sd(e.queryLog,t),dependencyTree:Sd(e.dependencyTree,t),componentProps:Sd(e.props,t),hits:Sd(e.hits,t),aggregations:Sd(e.aggregations,t),isLoading:Sd(e.isLoading,t),error:Sd(e.error,t),promotedResults:Sd(e.promotedResults,t),customData:Sd(e.customData,t),settings:Sd(e.settings,t),rawData:Sd(e.rawData,t)}}),{})($d);$d.install=function(e){e.component($d.name,kd)};var Id=o((function(e,t){function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,o=(r=!1,function(e,t){if("undefined"!=typeof document){if(r)throw new Error("You already started the loading of google maps");r=!0;var o=document.createElement("SCRIPT");if("object"!==n(e))throw new Error("options should be an object");Object.prototype.isPrototypeOf.call(Array.prototype,e.libraries)&&(e.libraries=e.libraries.join(",")),e.callback="vueGoogleMapsInit";var i="https://maps.googleapis.com/";"boolean"==typeof t&&!0===t&&(i="https://maps.google.cn/");var a=Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&"),s="".concat(i,"maps/api/js?").concat(a);o.setAttribute("src",s),o.setAttribute("async",""),o.setAttribute("defer",""),document.head.appendChild(o)}});t.default=o}));r(Id);var Ed=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default=function(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}}));r(Ed);var Ad=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return function(n){function o(){return t.gmapApi={},window.google}if(n.load)return(0,r.default)((function(){return"undefined"==typeof window?new Promise((function(){})).then(o):new Promise((function(t,r){try{window.vueGoogleMapsInit=t,e(n.load,n.loadCn)}catch(e){r(e)}})).then(o)}));var i=new Promise((function(e){"undefined"!=typeof window&&(window.vueGoogleMapsInit=e)})).then(o);return(0,r.default)((function(){return i}))}};var n,r=(n=Ed)&&n.__esModule?n:{default:n}}));r(Ad);var Td=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){n.forEach((function(n){(e.$gmapOptions.autobindAllEvents||e.$listeners[n])&&t.addListener(n,(function(t){e.$emit(n,t)}))}))}}));r(Td);var Rd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;function i(){o||(o=!0,e.$nextTick((function(){o=!1,n()})))}t.forEach((function(t){e.$watch(t,i,{immediate:r})}))}}));r(Rd);var xd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getPropsValues=function(e,t){return Object.keys(t).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})},t.bindProps=function(e,t,n){Object.keys(n).forEach((function(i){var a=n[i],s=a.twoWay,u=a.type,l=a.trackProperties;if(!a.noBind){var c="set".concat(o(i)),d="get".concat(o(i)),p="".concat(i.toLowerCase(),"_changed"),h=e[i];if(void 0===t[c])throw new Error("".concat(c," is not a method of (the Maps object corresponding to) ").concat(e.$options._componentTag));u===Object&&l?(0,r.default)(e,l.map((function(e){return"".concat(i,".").concat(e)})),(function(){t[c](e[i])}),void 0!==e[i]):e.$watch(i,(function(){var n=e[i];t[c](n)}),{immediate:void 0!==h,deep:u===Object}),s&&(e.$gmapOptions.autobindAllEvents||e.$listeners[p])&&t.addListener(p,(function(){e.$emit(p,t[d]())}))}}))};var n,r=(n=Rd)&&n.__esModule?n:{default:n};function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}}));r(xd);xd.getPropsValues,xd.bindProps;var Ld=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={inject:{$mapPromise:{default:"abcdef"}},provide:function(){var e=this;return this.$mapPromise.then((function(t){e.$map=t})),{}}}})),Md=r(Ld),jd=o((function(e,t){function n(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.entries(e).map((function(e){var t=n(e,2),r=t[0],o=t[1],i={};return"type"in o&&(i.type=o.type),"default"in o&&(i.default=o.default),"required"in o&&(i.required=o.required),[r,i]})).reduce((function(e,t){var r=n(t,2),o=r[0],i=r[1];return e[o]=i,e}),{})}}));r(jd);var Qd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.mappedProps,i=e.name,s=e.ctr,d=e.ctrArgs,p=e.events,h=e.beforeCreate,f=e.afterCreate,g=e.props,m=c(e,["mappedProps","name","ctr","ctrArgs","events","beforeCreate","afterCreate","props"]),y="$".concat(i,"Promise"),v="$".concat(i,"Object");return function(e,t){if(!e)throw new Error(t)}(!(m.props instanceof Array),"`props` should be an object, not Array"),u({},"undefined"!=typeof GENERATE_DOC?{$vgmOptions:e}:{},{mixins:[r.default],props:u({},g,{},(0,o.default)(t)),render:function(){return""},provide:function(){var e=this,r=this.$mapPromise.then((function(n){e.$map=n;var r=u({},e.options,{map:n},(0,xd.getPropsValues)(e,t)),o=(r.options,c(r,["options"]));if(h){var i=h.bind(e)(o);if(i instanceof Promise)return i.then((function(){return{options:o}}))}return{options:o}})).then((function(r){var o,i,u=r.options,l=s();return e[v]=d?new((o=Function.prototype.bind).call.apply(o,[l,null].concat(function(e){if(Array.isArray(e))return a(e)}(i=d(u,(0,xd.getPropsValues)(e,g||{})))||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(e,t):void 0}}(i)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))):new l(u),(0,xd.bindProps)(e,e[v],t),(0,n.default)(e,e[v],p),f&&f.bind(e)(e[v]),e[v]}));return this[y]=r,l({},y,r)},destroyed:function(){this[v]&&this[v].setMap&&this[v].setMap(null)}},m)};var n=i(Td),r=i(Ld),o=i(jd);function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}}));r(Qd);var Vd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={url:{twoWay:!1,type:String},map:{twoWay:!0,type:Object}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","mouseup","mousedown","mouseover","mouseout"],name:"kmlLayer",ctr:function(){return google.maps.KmlLayer}});t.default=i}));r(Vd);var Dd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={options:{type:Object,twoWay:!1,default:function(){}},data:{type:Array,twoWay:!0}},i=(0,r.default)({mappedProps:o,events:[],name:"heatmapLayer",ctr:function(){return google.maps.visualization.HeatmapLayer}});t.default=i}));r(Dd);var Fd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={animation:{twoWay:!0,type:Number},attribution:{type:Object},clickable:{type:Boolean,twoWay:!0,default:!0},cursor:{type:String,twoWay:!0},draggable:{type:Boolean,twoWay:!0,default:!1},icon:{twoWay:!0},label:{},opacity:{type:Number,default:1},options:{type:Object},place:{type:Object},position:{type:Object,twoWay:!0},shape:{type:Object,twoWay:!0},title:{type:String,twoWay:!0},zIndex:{type:Number,twoWay:!0},visible:{twoWay:!0,default:!0}},i=(0,r.default)({mappedProps:o,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"marker",ctr:function(){return google.maps.Marker},inject:{$clusterPromise:{default:null}},render:function(e){return this.$slots.default&&0!==this.$slots.default.length?1===this.$slots.default.length?this.$slots.default[0]:e("div",this.$slots.default):""},destroyed:function(){this.$markerObject&&(this.$clusterObject?this.$clusterObject.removeMarker(this.$markerObject,!0):this.$markerObject.setMap(null))},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},afterCreate:function(e){var t=this;this.$clusterPromise&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n}))}});t.default=i})),Nd=r(Fd),Ud=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},s=(0,r.default)({mappedProps:a,props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],name:"polyline",ctr:function(){return google.maps.Polyline},afterCreate:function(){var e=this,t=function(){};this.$watch("path",(function(n){if(n){t(),e.$polylineObject.setPath(n);var r=e.$polylineObject.getPath(),i=[],a=function(){e.$emit("path_changed",e.$polylineObject.getPath())};i.push([r,r.addListener("insert_at",a)]),i.push([r,r.addListener("remove_at",a)]),i.push([r,r.addListener("set_at",a)]),t=function(){i.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=s}));r(Ud);var qd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var s={draggable:{type:Boolean},editable:{type:Boolean},options:{type:Object},path:{type:Array,twoWay:!0,noBind:!0},paths:{type:Array,twoWay:!0,noBind:!0}},u=(0,r.default)({props:{deepWatch:{type:Boolean,default:!1}},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"],mappedProps:s,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){if(!e.path){var t=e;t.path;e=a(t,["path"])}if(!e.paths){var n=e;n.paths;e=a(n,["paths"])}},afterCreate:function(e){var t=this,n=function(){};this.$watch("paths",(function(r){if(r){n(),e.setPaths(r);for(var i=function(){t.$emit("paths_changed",e.getPaths())},a=[],s=e.getPaths(),u=0;u<s.getLength();u+=1){var l=s.getAt(u);a.push([l,l.addListener("insert_at",i)]),a.push([l,l.addListener("remove_at",i)]),a.push([l,l.addListener("set_at",i)])}a.push([s,s.addListener("insert_at",i)]),a.push([s,s.addListener("remove_at",i)]),a.push([s,s.addListener("set_at",i)]),n=function(){a.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0}),this.$watch("path",(function(r){if(r){n(),e.setPaths(r);var i=e.getPath(),a=[],s=function(){t.$emit("path_changed",e.getPath())};a.push([i,i.addListener("insert_at",s)]),a.push([i,i.addListener("remove_at",s)]),a.push([i,i.addListener("set_at",s)]),n=function(){a.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=u}));r(qd);var zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={center:{type:Object,twoWay:!0,required:!0},radius:{type:Number,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"circle",ctr:function(){return google.maps.Circle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(zd);var Bd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};var o={bounds:{type:Object,twoWay:!0},draggable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},options:{type:Object,twoWay:!1}},i=(0,r.default)({mappedProps:o,name:"rectangle",ctr:function(){return google.maps.Rectangle},events:["click","dblclick","drag","dragend","dragstart","mousedown","mousemove","mouseout","mouseover","mouseup","rightclick"]});t.default=i}));r(Bd);var Hd,Gd=(Hd=require("../components-implementation/drawing-manager")).default||Hd;Gd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(e.$slots,"default",{setDrawingMode:e.setDrawingMode,deleteSelection:e.deleteSelection})])},Gd.__file="node_modules/gmap-vue/dist/components/drawing-manager.vue";var Wd=Object.freeze({__proto__:null,default:Gd}),Zd=function(e){return e.default||e}(require("../components-implementation/info-window")),Kd={ref:"flyaway"};Zd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",Kd,[t.createCommentVNode(" so named because it will fly away to another component "),t.renderSlot(e.$slots,"default")],512)])},Zd.__file="node_modules/gmap-vue/dist/components/info-window.vue";var Yd=Object.freeze({__proto__:null,default:Zd}),Xd=function(e){return e.default||e}(require("../components-implementation/map")),Jd={class:"vue-map-container"},ep={ref:"vue-map",class:"vue-map"},tp={class:"vue-map-hidden"};function np(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}np("\n.vue-map-container {\n position: relative;\n}\n.vue-map-container .vue-map {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n.vue-map-hidden {\n display: none;\n}\n"),Xd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",Jd,[t.createElementVNode("div",ep,null,512),t.createElementVNode("div",tp,[t.renderSlot(e.$slots,"default")]),t.renderSlot(e.$slots,"visible")])},Xd.__file="node_modules/gmap-vue/dist/components/map.vue";var rp=Object.freeze({__proto__:null,default:Xd}),op=function(e){return e.default||e}(require("../components-implementation/street-view-panorama")),ip={class:"vue-street-view-pano-container"},ap={ref:"vue-street-view-pano",class:"vue-street-view-pano"};np("\n.vue-street-view-pano-container {\n position: relative;\n}\n.vue-street-view-pano-container .vue-street-view-pano {\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n position: absolute;\n}\n"),op.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("div",ip,[t.createElementVNode("div",ap,null,512),t.renderSlot(e.$slots,"default")])},op.__file="node_modules/gmap-vue/dist/components/street-view-panorama.vue";var sp=Object.freeze({__proto__:null,default:op}),up=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.addEventListener?e.addEventListener:e.attachEvent;function n(n,r){if("keydown"===n){var o=r;r=function(t){var n=document.getElementsByClassName("pac-item-selected").length>0;if(13===t.which&&!n){var r=document.createEvent("Event");r.keyCode=40,r.which=40,o.apply(e,[r])}o.apply(e,[t])}}t.apply(e,[n,r])}e.addEventListener=n,e.attachEvent=n}}));r(up);var lp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=up)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={bounds:{type:Object},defaultPlace:{type:String,default:""},componentRestrictions:{type:Object,default:null},types:{type:Array,default:function(){return[]}},placeholder:{required:!1,type:String},className:{required:!1,type:String},label:{required:!1,type:String,default:null},selectFirstOnEnter:{require:!1,type:Boolean,default:!1}},a={mounted:function(){var e=this,t=this.$refs.input;t.value=this.defaultPlace,this.$watch("defaultPlace",(function(){t.value=e.defaultPlace})),this.$gmapApiPromiseLazy().then((function(){var t=(0,xd.getPropsValues)(e,i);if(e.selectFirstOnEnter&&(0,r.default)(e.$refs.input),"function"!=typeof google.maps.places.Autocomplete)throw new Error("google.maps.places.Autocomplete is undefined. Did you add 'places' to libraries when loading Google Maps?");e.autoCompleter=new google.maps.places.Autocomplete(e.$refs.input,t);var n=o(i,["placeholder","place","defaultPlace","className","label","selectFirstOnEnter"]);(0,xd.bindProps)(e,e.autoCompleter,n),e.autoCompleter.addListener("place_changed",(function(){e.$emit("place_changed",e.autoCompleter.getPlace())}))}))},created:function(){throw new Error("The PlaceInput class is deprecated! Please consider using the Autocomplete input instead")},props:i};t.default=a})),cp=r(lp),dp=["textContent"],pp=["placeholder"];cp.render=function(e,n,r,o,i,a){return t.openBlock(),t.createElementBlock("label",null,[t.createElementVNode("span",{textContent:t.toDisplayString(e.label)},null,8,dp),t.createElementVNode("input",{type:"text",placeholder:e.placeholder,class:t.normalizeClass(e.className),ref:"input"},null,10,pp)])},cp.__file="node_modules/gmap-vue/dist/components/place-input.vue";var hp=Object.freeze({__proto__:null,default:cp,__moduleExports:lp}),fp=function(e){return e.default||e}(require("../components-implementation/autocomplete")),gp={key:0};fp.render=function(e,n,r,o,i,a){return e.$scopedSlots.input?(t.openBlock(),t.createElementBlock("span",gp,[t.renderSlot(e.$slots,"input",{attrs:e.$attrs,listeners:e.$listeners,ref:e.input})])):e.$scopedSlots.input?t.createCommentVNode("v-if",!0):(t.openBlock(),t.createElementBlock("input",t.mergeProps({key:1,ref:"input"},e.$attrs,t.toHandlers(e.$listeners)),null,16))},fp.__file="node_modules/gmap-vue/dist/components/autocomplete.vue";var mp=Object.freeze({__proto__:null,default:fp}),yp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;t.default={props:["resizeBus"],data:function(){return{_actualResizeBus:null}},created:function(){void 0===this.resizeBus?this.$data._actualResizeBus=this.$gmapDefaultResizeBus:this.$data._actualResizeBus=this.resizeBus},methods:{_resizeCallback:function(){this.resize()},_delayedResizeCallback:function(){var e=this;this.$nextTick((function(){return e._resizeCallback()}))}},watch:{resizeBus:function(e){this.$data._actualResizeBus=e},"$data._actualResizeBus":function(e,t){t&&t.$off("resize",this._delayedResizeCallback),e&&e.$on("resize",this._delayedResizeCallback)}},destroyed:function(){this.$data._actualResizeBus&&this.$data._actualResizeBus.$off("resize",this._delayedResizeCallback)}}}));r(yp);var vp=i(Wd),bp=i(Yd),Cp=i(rp),Op=i(sp),_p=i(hp),wp=i(mp),Sp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.install=function(e,t){t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?O(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({installComponents:!0,autobindAllEvents:!1},t),w=new e({data:{gmapApi:null}});var y=new e,v=(0,r.default)(n.default,w)(t);e.mixin({created:function(){this.$gmapDefaultResizeBus=y,this.$gmapOptions=t,this.$gmapApiPromiseLazy=v}}),e.$gmapDefaultResizeBus=y,e.$gmapApiPromiseLazy=v,t.installComponents&&(e.component("GmapMap",h.default),e.component("GmapMarker",a.default),e.component("GmapInfoWindow",p.default),e.component("GmapHeatmapLayer",i.default),e.component("GmapKmlLayer",o.default),e.component("GmapPolyline",s.default),e.component("GmapPolygon",u.default),e.component("GmapCircle",l.default),e.component("GmapRectangle",c.default),e.component("GmapDrawingManager",d.default),e.component("GmapAutocomplete",m.default),e.component("GmapPlaceInput",g.default),e.component("GmapStreetViewPanorama",f.default))},t.gmapApi=function(){return w.gmapApi&&window.google},Object.defineProperty(t,"loadGmapApi",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"KmlLayer",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"HeatmapLayer",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"Marker",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(t,"DrawingManager",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"InfoWindow",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(t,"Map",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(t,"StreetViewPanorama",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"PlaceInput",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(t,"Autocomplete",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(t,"MapElementMixin",{enumerable:!0,get:function(){return y.default}}),Object.defineProperty(t,"MapElementFactory",{enumerable:!0,get:function(){return v.default}}),Object.defineProperty(t,"MountableMixin",{enumerable:!0,get:function(){return b.default}}),t.Cluster=void 0;var n=C(Id),r=C(Ad),o=C(Vd),i=C(Dd),a=C(Fd),s=C(Ud),u=C(qd),l=C(zd),c=C(Bd),d=C(vp),p=C(bp),h=C(Cp),f=C(Op),g=C(_p),m=C(wp),y=C(Ld),v=C(Qd),b=C(yp);function C(e){return e&&e.__esModule?e:{default:e}}function O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Cluster=void 0;var w=null})),Pp=r(Sp),$p=Sp.install,kp=Sp.gmapApi,Ip=Sp.Cluster,Ep=Object.freeze({__proto__:null,default:Pp,__moduleExports:Sp,install:$p,gmapApi:kp,Cluster:Ip}),Ap=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=0;e((function(){t+=1}),(function(){t=Math.max(0,t-1)}),(function(){return 0===t}))}}));r(Ap);for(var Tp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(Td),r=s(yp),o=s(Ap),i=s(Rd),a=s(jd);function s(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p={center:{required:!0,twoWay:!0,type:Object,noBind:!0},zoom:{required:!1,twoWay:!0,type:Number,noBind:!0},heading:{type:Number,twoWay:!0},mapTypeId:{twoWay:!0,type:String},tilt:{twoWay:!0,type:Number},options:{type:Object,default:function(){return{}}}},h=["bounds_changed","click","dblclick","drag","dragend","dragstart","idle","mousemove","mouseout","mouseover","resize","rightclick","tilesloaded"],f=["panBy","panTo","panToBounds","fitBounds"].reduce((function(e,t){return e[t]=function(){var e;this.$mapObject&&(e=this.$mapObject)[t].apply(e,arguments)},e}),{}),g={resize:function(){this.$mapObject&&google.maps.event.trigger(this.$mapObject,"resize")},resizePreserveCenter:function(){if(this.$mapObject){var e=this.$mapObject.getCenter();google.maps.event.trigger(this.$mapObject,"resize"),this.$mapObject.setCenter(e)}},_resizeCallback:function(){this.resizePreserveCenter()}},m={mixins:[r.default],props:(0,a.default)(p),provide:function(){var e=this;return this.$mapPromise=new Promise((function(t,n){e.$mapPromiseDeferred={resolve:t,reject:n}})),{$mapPromise:this.$mapPromise}},computed:{finalLat:function(){return this.center&&"function"==typeof this.center.lat?this.center.lat():this.center.lat},finalLng:function(){return this.center&&"function"==typeof this.center.lng?this.center.lng():this.center.lng},finalLatLng:function(){return{lat:this.finalLat,lng:this.finalLng}}},watch:{zoom:function(e){this.$mapObject&&this.$mapObject.setZoom(e)}},beforeDestroy:function(){var e=this.getRecycleKey();window[e]&&(window[e].div=this.$mapObject.getDiv())},mounted:function(){var e=this;return this.$gmapApiPromiseLazy().then((function(){var t=e.$refs["vue-map"],r=c({},e.options,{},(0,xd.getPropsValues)(e,p)),a=(r.options,u(r,["options"])),s=e.getRecycleKey();return e.options.recycle&&window[s]?(t.appendChild(window[s].div),e.$mapObject=window[s].map,e.$mapObject.setOptions(a)):(e.$mapObject=new google.maps.Map(t,a),window[s]={map:e.$mapObject}),(0,xd.bindProps)(e,e.$mapObject,p),(0,n.default)(e,e.$mapObject,h),(0,o.default)((function(t,n,r){e.$mapObject.addListener("center_changed",(function(){r()&&e.$emit("center_changed",e.$mapObject.getCenter()),n()})),(0,i.default)(e,["finalLat","finalLng"],(function(){t(),e.$mapObject.setCenter(e.finalLatLng)}))})),e.$mapObject.addListener("zoom_changed",(function(){e.$emit("zoom_changed",e.$mapObject.getZoom())})),e.$mapObject.addListener("bounds_changed",(function(){e.$emit("bounds_changed",e.$mapObject.getBounds())})),e.$mapPromiseDeferred.resolve(e.$mapObject),e.$mapObject})).catch((function(e){throw e}))},methods:c({},g,{},f,{getRecycleKey:function(){return this.options.recycle?"__gmc__"+this.options.recycle:"__gmc__"}})};t.default=m}))),Rp="0123456789bcdefghjkmnpqrstuvwxyz",xp={},Lp=0;Lp<Rp.length;Lp++)xp[Rp.charAt(Lp)]=Lp;var Mp=[0,5,7,8,11,12,13,15,16,17,18],jp=function(e,t,n){if("auto"===n){if("number"==typeof e||"number"==typeof t)throw new Error("string notation required for auto precision.");var r=e.split(".")[1].length,o=t.split(".")[1].length,i=Math.max(r,o);n=Mp[i]}else void 0===n&&(n=9);for(var a,s=[],u=0,l=0,c=0,d=90,p=-90,h=180,f=-180;s.length<n;)if(l%2==0?t>(a=(h+f)/2)?(c=1+(c<<1),f=a):(c=0+(c<<1),h=a):e>(a=(d+p)/2)?(c=1+(c<<1),p=a):(c=0+(c<<1),d=a),l++,5===++u){var g=Rp[c];s.push(g),u=0,c=0}return s.join("")},Qp=function(e,t,n){n=n||52;for(var r,o=0,i=90,a=-90,s=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(s+u)/2)?(l+=1,u=r):s=r:e>(r=(i+a)/2)?(l+=1,a=r):i=r,o++;return l},Vp=function(e){for(var t,n=!0,r=90,o=-90,i=180,a=-180,s=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();s=xp[c];for(var d=4;d>=0;d--){var p=s>>d&1;n?(t=(i+a)/2,1===p?a=t:i=t):(t=(r+o)/2,1===p?o=t:r=t),n=!n}}return[o,a,r,i]},Dp=function(e,t){for(var n=90,r=-90,o=180,i=-180,a=0,s=(t=t||52)/2,u=0;u<s;u++)a=Fp(e,2*(s-u)-1),0===Fp(e,2*(s-u)-2)?n=(n+r)/2:r=(n+r)/2,0===a?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Fp(e,t){return e/Math.pow(2,t)&1}var Np=function(e){var t=Vp(e),n=(t[0]+t[2])/2,r=(t[1]+t[3])/2;return{latitude:n,longitude:r,error:{latitude:t[2]-n,longitude:t[3]-r}}},Up=function(e,t){var n=Dp(e,t),r=(n[0]+n[2])/2,o=(n[1]+n[3])/2;return{latitude:r,longitude:o,error:{latitude:n[2]-r,longitude:n[3]-o}}},qp=function(e,t){var n=Np(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=Bp(o),r=Hp(r),jp(r,o,e.length)},zp=function(e,t,n){var r=Up(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=Bp(i),o=Hp(o),Qp(o,i,n)};function Bp(e){return e>180?e%180-180:e<-180?180+e%180:e}function Hp(e){return e>90?90:e<-90?-90:e}var Gp={ENCODE_AUTO:"auto",encode:jp,encode_uint64:Qp,encode_int:Qp,decode:Np,decode_int:Up,decode_uint64:Up,decode_bbox:Vp,decode_bbox_uint64:Dp,decode_bbox_int:Dp,neighbor:qp,neighbor_int:zp,neighbors:function(e){var t,n,r=e.length,o=Np(e),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*s,n=Bp(n=a+o*u),t=Hp(t),jp(t,n,r)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},neighbors_int:function(e,t){var n,r,o=Up(e,t=t||52),i=o.latitude,a=o.longitude,s=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*s,r=Bp(r=a+o*u),n=Hp(n),Qp(n,r,t)}return[l(1,0),l(1,1),l(0,1),l(-1,1),l(-1,0),l(-1,-1),l(0,-1),l(1,-1)]},bboxes:function(e,t,n,r,o){for(var i=jp(e,t,o=o||9),a=jp(n,r,o),s=Np(i),u=2*s.error.latitude,l=2*s.error.longitude,c=Vp(i),d=Vp(a),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(qp(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Qp(e,t,o=o||52),a=Qp(n,r,o),s=Up(i,o),u=2*s.error.latitude,l=2*s.error.longitude,c=Dp(i,o),d=Dp(a,o),p=Math.round((d[0]-c[0])/u),h=Math.round((d[1]-c[1])/l),f=[],g=0;g<=p;g++)for(var m=0;m<=h;m++)f.push(zp(i,[g,m],o));return f}},Wp=Xe.setStreaming,Zp=Xe.setQueryOptions,Kp=Xe.updateQuery,Yp=Xe.loadMore,Xp=Xe.setValue,Jp=Xe.updateComponentProps,eh=Xe.setDefaultQuery,th=Xe.recordResultClick,nh=Xe.setMapData,rh=et.isEqual,oh=et.getQueryOptions,ih=et.getClassName,ah=et.parseHits,sh=et.getOptionsFromQuery,uh=et.getResultStats,lh={lat:37.7749,lng:122.4194},ch={width:"100%",height:"100vh",position:"relative"};function dh(e,t){var n=function(e){if(isNaN(e))return 0;for(var t=1,n=0;Math.round(e*t)/t!==e;)t*=10,n+=1;return n}(e.lat),r=n>=6?4:n-2,o=1/Math.pow(10,r)*t;return tt({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function ph(e){switch(Array.isArray(e)?"array":typeof e){case"string":if(e.indexOf(",")>-1){var t=e.split(",");return{lat:parseFloat(t[0]),lng:parseFloat(t[1])}}var n=Gp.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var hh={name:"ReactiveMap",props:{className:Un.string,componentId:Un.stringRequired,dataField:Un.stringRequired,react:Un.react,size:Un.number,sortBy:Un.sortBy,URLParams:St.bool,autoCenter:St.bool,getMapRef:St.func.isRequired,center:Un.location,defaultCenter:Un.location,defaultPin:Un.string,defaultZoom:St.number.def(13),defaultQuery:Un.func,innerClass:Un.style,loader:Un.title,render:Un.func,renderItem:Un.func,renderError:Un.title,pages:St.number.def(5),currentPage:St.number.def(0),pagination:St.bool,showMarkers:St.bool,defaultSearchAsMove:St.bool,showSearchAsMove:St.bool,defaultRadius:Un.number,unit:Un.string,autoClosePopover:St.bool,renderMap:St.func.isRequired,renderPopover:St.func,calculateMarkers:St.func,searchAsMoveLabel:St.string.def("Search as I move the map")},preserveCenter:!1,data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,zoom:e.defaultZoom,searchAsMove:e.defaultSearchAsMove,currentPageState:t,mapBoxBounds:null,markersData:null},this.__state},computed:{totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},stats:function(){var e=this.getAllData().resultsToRender;return tt({},uh(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return ur(this)}},watch:{defaultZoom:function(e){this.zoom=e},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},defaultQuery:function(e,t){if(!hr(e,t,null,this.$props)){var n=oh(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=this.$defaultQuery||{},o=r.sort,i=r.query;o&&(n.sort=this.$defaultQuery.sort),sh(this.$defaultQuery)&&(n=tt({},n,sh(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var a={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,a),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){rh(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){rh(e,t)||this.$emit("data",this.getData())},time:function(e,t){rh(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.pagination&&this.isLoading&&(t||e)&&this.$emit("page-change",this.currentPageState+1,this.totalPages)},rawData:function(e,t){var n=this;if(!rh(e,t)){var r=this.promotedResults,o=this.hits,i=ah(o)||[],a=ah(r)||[],s=i;if(a.length){var u=a.map((function(e){return e._id})).filter(Boolean);u&&(s=s.filter((function(e){return!u.includes(e._id)}))),s=[].concat(a,s)}s=s.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return tt({},e,((t={})[n.dataField]=ph(e[n.dataField]),t))})),this.filteredResults=this.addNoise(s),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!rh(e,t)){var n=!!this.center,r=this.getGeoQuery(this.$props);this.setDefaultQueryForRSAPI();var o={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,r,n,!0,o)}}},methods:{parseLocation:function(e){return Array.isArray(e)?{lat:Number(e[0]),lng:Number(e[1])}:{lat:e?Number(e.lat):this.defaultCenter.lat,lng:e?Number(void 0===e.lon?e.lng:e.lon):this.defaultCenter.lng}},getDefaultCenter:function(){return this.defaultCenter?this.parseLocation(this.defaultCenter):this.parseLocation(lh)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=tt({},e),i=t.parseLocation(e[t.dataField]),a=JSON.stringify(i),s=n[a]||0;o[t.dataField]=s?dh(i,s):i,r=[].concat(r,[o]),n[a]=s+1})),r},getPosition:function(e){return e?this.parseLocation(e[this.dataField]):null},getHitsCenter:function(e){var t=this,n=e.map((function(e){return e[t.dataField]}));if(n.length){var r=n.length,o=0,i=0,a=0;n.forEach((function(e){if(e){var t,n,r=ph(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var s=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=s,i+=u,a+=l}})),o/=r,i/=r,a/=r;var s=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(a,u)/Math.PI,lng:180*s/Math.PI}}return!1},getCenter:function(e){var t=this;if(this.center)return this.parseLocation(this.center);var n=this.getMapRef();if(n&&"function"==typeof n.getCenter&&this.$options.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.$options.preserveCenter=!1}),100),this.parseLocation({lat:r.lat(),lng:r.lng()})}return e&&e.length?this.autoCenter?this.getHitsCenter(e)||this.getDefaultCenter():e[0]&&e[0][this.dataField]?this.getPosition(e[0]):this.getDefaultCenter():this.getDefaultCenter()},handleZoomChange:function(e){if(e){var t=this.zoom;this.searchAsMove?(this.zoom=e,this.$options.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.$options.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.$options.preserveCenter=e},handleOnIdle:function(){if(this.hits&&this.hits.length&&this.searchAsMove){var e=!!this.center;this.setGeoQuery(e)}this.$emit("idle")},setGeoQuery:function(e){if(void 0===e&&(e=!1),e||!this.skipBoundingBox&&!this.mapBoxBounds){this.$defaultQuery=this.getGeoQuery();var t=!!this.center,n=this.searchAsMove,r={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery,t,n,r)}this.skipBoundingBox=!1},getMapParams:function(){var e=this.getData().data,t=this.showMarkers,n=this.defaultPin,r=this.renderPopover,o=this.autoClosePopover,i=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:i,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.$options.preserveCenter,handleOnDragEnd:this.handleOnDragEnd,handleOnIdle:this.handleOnIdle,handleZoomChange:this.handleZoomChange}},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.customData,r=this.currentPage,o=this.hits,i=ah(o)||[],a=ah(t)||[],s=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:a,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData,o=e.resultsToRender;return{data:this.withClickIds(o),aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=tt({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return sr(e,this)},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.size*e,n=oh(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,tt({},n,{from:t}),!1),this.URLParams&&this.setPageURL(this.componentId,e+1,this.componentId,!1,!0)}},setDefaultQueryForRSAPI:function(){if(this.defaultQuery&&"function"==typeof this.defaultQuery){var e=this.defaultQuery();this.setDefaultQuery(this.componentId,e)}},getArrPosition:function(e){return{lat:e.lat,lon:e.lon||e.lng}},getGeoQuery:function(e){void 0===e&&(e=this.$props),this.$defaultQuery=e.defaultQuery?e.defaultQuery():null;var t,n,r,o=this.getMapRef(),i=!(!o||"function"!=typeof o.getBounds)&&o.getBounds();if(i){var a;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var s={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=s;var u={geo_bounding_box:(a={},a[this.dataField]=s,a)};if(this.$defaultQuery){var l=this.$defaultQuery.query;if(l)return{must:[u,l]}}return u}return this.$defaultQuery?this.$defaultQuery.query:null},getGeoDistanceQuery:function(){var e,t=this.center||this.defaultCenter;return t&&this.defaultRadius?(this.skipBoundingBox=!0,{geo_distance:(e={distance:""+this.defaultRadius+this.unit},e[this.dataField]=this.getArrPosition(t),e)}):null},loadMore:function(){if(this.hits&&!this.pagination&&this.total!==this.hits.length){var e=this.from+this.size,t=oh(this.$props);this.from=e,this.loadMoreAction(this.componentId,tt({},t,{from:e}),!0)}},triggerClickAnalytics:function(e,t){var n=t;if(!n){var r=this.getData().data.find((function(t){return t._click_id===e}));r&&r._id&&(n=r._id)}this.recordResultClick(e,n)},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return tt({},e,{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove,this.$emit("search-as-move",this.searchAsMove)},renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?ir(e)?e(this.error):e:null},renderSearchAsMove:function(){var e=this.$createElement;return this.showSearchAsMove?e("div",{style:{position:"absolute",bottom:"30px",left:"10px",width:"240px",backgroundColor:"#fff",padding:"8px 10px",boxShadow:"rgba(0,0,0,0.3) 0px 1px 4px -1px",borderRadius:2,zIndex:1e4},attrs:{className:ih(this.innerClass,"checkboxContainer")||null}},[e(_u,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:ih(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:ih(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Gn,{attrs:{pages:this.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.innerClass}})}},created:function(){this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.updateComponentProps(this.componentId,{from:this.from},T.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},T.reactiveMap)},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e,t=oh(this.$props);(t.from=this.$data.from,this.$props.sortBy)&&(t.sort=[(e={},e[this.$props.dataField]={order:this.$props.sortBy},e)]);if(this.$defaultQuery=null,this.$props.defaultQuery){this.$defaultQuery=this.$props.defaultQuery(),t=tt({},t,sh(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI();var n={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1,n)}else{var r=this.getGeoDistanceQuery();if(r){var o=!!this.center,i=this.searchAsMove,a=this.center||this.defaultCenter,s=this.getArrPosition(a),u={distance:this.defaultRadius,coordinates:s.lat+", "+s.lon};this.setMapData(this.componentId,r,o,i,u)}}this.setQueryOptions(this.componentId,t,!(this.$defaultQuery&&this.$defaultQuery.query))},render:function(){var e=arguments[0],t=this.$scopedSlots.loader||this.$props.loader;return e("div",{style:tt({},ch,this.$props.style),class:this.$props.className},[this.renderErrorComponent(),this.isLoading&&t,this.hasCustomRender?this.getComponent():null,this.renderMap(this.getMapParams()),this.pagination?this.renderPagination():null])}},fh=Rr(or((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,error:e.error[t.componentId],isLoading:e.isLoading[t.componentId],hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],total:e.hits[t.componentId]&&e.hits[t.componentId].total,time:e.hits[t.componentId]&&e.hits[t.componentId].time,rawData:e.rawData[t.componentId],hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden}}),{loadMoreAction:Yp,setPageURL:Xp,setQueryOptions:Zp,setStreaming:Wp,updateQuery:Kp,updateComponentProps:Jp,setDefaultQuery:eh,recordResultClick:th,setMapData:nh})(hh),{componentType:T.reactiveMap,internalComponent:!0});hh.install=function(e){e.component(hh.name,fh)},hh.componentType=T.reactiveMap;var gh=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};function mh(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push(n+":"+e[n]),t}),[]).join(";")}function yh(e){return e?e+"px":void 0}var vh=function(e){function t(t,n){var r;return(r=e.call(this)||this).cluster_=t,r.styles_=n,r.center_=null,r.div_=null,r.sums_=null,r.visible_=!1,r.style=null,r.setMap(t.getMap()),r}nt(t,e);var n=t.prototype;return n.onAdd=function(){var e,t,n=this,r=this.cluster_.getMarkerClusterer(),o=google.maps.version.split("."),i=o[0],a=o[1],s=100*parseInt(i,10)+parseInt(a,10);this.div_=document.createElement("div"),this.visible_&&this.show(),this.getPanes().overlayMouseTarget.appendChild(this.div_),this.boundsChangedListener_=google.maps.event.addListener(this.getMap(),"bounds_changed",(function(){t=e})),google.maps.event.addDomListener(this.div_,"mousedown",(function(){e=!0,t=!1})),s>=332&&google.maps.event.addDomListener(this.div_,"touchstart",(function(e){e.stopPropagation()})),google.maps.event.addDomListener(this.div_,"click",(function(o){if(e=!1,!t){if(google.maps.event.trigger(r,"click",n.cluster_),google.maps.event.trigger(r,"clusterclick",n.cluster_),r.getZoomOnClick()){var i=r.getMaxZoom(),a=n.cluster_.getBounds();r.getMap().fitBounds(a),setTimeout((function(){r.getMap().fitBounds(a),null!==i&&r.getMap().getZoom()>i&&r.getMap().setZoom(i+1)}),100)}o.cancelBubble=!0,o.stopPropagation&&o.stopPropagation()}})),google.maps.event.addDomListener(this.div_,"mouseover",(function(){google.maps.event.trigger(r,"mouseover",n.cluster_)})),google.maps.event.addDomListener(this.div_,"mouseout",(function(){google.maps.event.trigger(r,"mouseout",n.cluster_)}))},n.onRemove=function(){this.div_&&this.div_.parentNode&&(this.hide(),google.maps.event.removeListener(this.boundsChangedListener_),google.maps.event.clearInstanceListeners(this.div_),this.div_.parentNode.removeChild(this.div_),this.div_=null)},n.draw=function(){if(this.visible_){var e=this.getPosFromLatLng_(this.center_);this.div_.style.top=e.y+"px",this.div_.style.left=e.x+"px"}},n.hide=function(){this.div_&&(this.div_.style.display="none"),this.visible_=!1},n.show=function(){this.div_&&(this.div_.className=this.className_,this.div_.style.cssText=this.createCss_(this.getPosFromLatLng_(this.center_)),this.div_.innerHTML=(this.style.url?this.getImageElementHtml():"")+this.getLabelDivHtml(),void 0===this.sums_.title||""===this.sums_.title?this.div_.title=this.cluster_.getMarkerClusterer().getTitle():this.div_.title=this.sums_.title,this.div_.style.display=""),this.visible_=!0},n.getLabelDivHtml=function(){return'\n<div aria-label="'+this.cluster_.getMarkerClusterer().ariaLabelFn(this.sums_.text)+'" style="'+mh({position:"absolute",top:yh(this.anchorText_[0]),left:yh(this.anchorText_[1]),color:this.style.textColor,"font-size":yh(this.style.textSize),"font-family":this.style.fontFamily,"font-weight":this.style.fontWeight,"font-style":this.style.fontStyle,"text-decoration":this.style.textDecoration,"text-align":"center",width:yh(this.style.width),"line-height":yh(this.style.textLineHeight)})+'" tabindex="0">\n <span aria-hidden="true">'+this.sums_.text+"</span>\n</div>\n"},n.getImageElementHtml=function(){var e=(this.style.backgroundPosition||"0 0").split(" "),t=parseInt(e[0].replace(/^\s+|\s+$/g,""),10),n=parseInt(e[1].replace(/^\s+|\s+$/g,""),10),r={};this.cluster_.getMarkerClusterer().getEnableRetinaIcons()?r={width:yh(this.style.width),height:yh(this.style.height)}:r={clip:"rect("+-1*n+"px, "+(-1*t+this.style.width)+"px, "+(-1*n+this.style.height)+"px, "+-1*t+"px)"};var o=mh(Object.assign({position:"absolute",top:yh(n),left:yh(t)},r));return'<img alt="'+this.sums_.text+'" aria-hidden="true" src="'+this.style.url+'" style="'+o+'"/>'},n.useStyle=function(e){this.sums_=e;var t=Math.max(0,e.index-1);t=Math.min(this.styles_.length-1,t),this.style=this.styles_[t],this.anchorText_=this.style.anchorText||[0,0],this.anchorIcon_=this.style.anchorIcon||[Math.floor(this.style.height/2),Math.floor(this.style.width/2)],this.className_=this.cluster_.getMarkerClusterer().getClusterClass()+" "+(this.style.className||"cluster-"+t)},n.setCenter=function(e){this.center_=e},n.createCss_=function(e){return mh({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:yh(e.y),left:yh(e.x),width:yh(this.style.width),height:yh(this.style.height),cursor:"pointer",position:"absolute","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-o-user-select":"none","user-select":"none"})},n.getPosFromLatLng_=function(e){var t=this.getProjection().fromLatLngToDivPixel(e);return t.x=Math.floor(t.x-this.anchorIcon_[1]),t.y=Math.floor(t.y-this.anchorIcon_[0]),t},t}(gh),bh=function(){function e(e){this.markerClusterer_=e,this.map_=this.markerClusterer_.getMap(),this.minClusterSize_=this.markerClusterer_.getMinimumClusterSize(),this.averageCenter_=this.markerClusterer_.getAverageCenter(),this.markers_=[],this.center_=null,this.bounds_=null,this.clusterIcon_=new vh(this,this.markerClusterer_.getStyles())}var t=e.prototype;return t.getSize=function(){return this.markers_.length},t.getMarkers=function(){return this.markers_},t.getCenter=function(){return this.center_},t.getMap=function(){return this.map_},t.getMarkerClusterer=function(){return this.markerClusterer_},t.getBounds=function(){for(var e=new google.maps.LatLngBounds(this.center_,this.center_),t=this.getMarkers(),n=0;n<t.length;n++)e.extend(t[n].getPosition());return e},t.remove=function(){this.clusterIcon_.setMap(null),this.markers_=[],delete this.markers_},t.addMarker=function(e){if(this.isMarkerAlreadyAdded_(e))return!1;if(this.center_){if(this.averageCenter_){var t=this.markers_.length+1,n=(this.center_.lat()*(t-1)+e.getPosition().lat())/t,r=(this.center_.lng()*(t-1)+e.getPosition().lng())/t;this.center_=new google.maps.LatLng(n,r),this.calculateBounds_()}}else this.center_=e.getPosition(),this.calculateBounds_();e.isAdded=!0,this.markers_.push(e);var o=this.markers_.length,i=this.markerClusterer_.getMaxZoom();if(null!==i&&this.map_.getZoom()>i)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o<this.minClusterSize_)e.getMap()!==this.map_&&e.setMap(this.map_);else if(o===this.minClusterSize_)for(var a=0;a<o;a++)this.markers_[a].setMap(null);else e.setMap(null);return!0},t.isMarkerInClusterBounds=function(e){return this.bounds_.contains(e.getPosition())},t.calculateBounds_=function(){var e=new google.maps.LatLngBounds(this.center_,this.center_);this.bounds_=this.markerClusterer_.getExtendedBounds(e)},t.updateIcon=function(){var e=this.markers_.length,t=this.markerClusterer_.getMaxZoom();if(null!==t&&this.map_.getZoom()>t)this.clusterIcon_.hide();else if(e<this.minClusterSize_)this.clusterIcon_.hide();else{var n=this.markerClusterer_.getStyles().length,r=this.markerClusterer_.getCalculator()(this.markers_,n);this.clusterIcon_.setCenter(this.center_),this.clusterIcon_.useStyle(r),this.clusterIcon_.show()}},t.isMarkerAlreadyAdded_=function(e){if(this.markers_.indexOf)return-1!==this.markers_.indexOf(e);for(var t=0;t<this.markers_.length;t++)if(e===this.markers_[t])return!0;return!1},e}(),Ch=function(e,t,n){return void 0!==e[t]?e[t]:n},Oh=function(e){function t(n,r,o){var i;return void 0===r&&(r=[]),void 0===o&&(o={}),(i=e.call(this)||this).options=o,i.markers_=[],i.clusters_=[],i.listeners_=[],i.activeMap_=null,i.ready_=!1,i.ariaLabelFn=i.options.ariaLabelFn||function(){return""},i.zIndex_=i.options.zIndex||google.maps.Marker.MAX_ZINDEX+1,i.gridSize_=i.options.gridSize||60,i.minClusterSize_=i.options.minimumClusterSize||2,i.maxZoom_=i.options.maxZoom||null,i.styles_=i.options.styles||[],i.title_=i.options.title||"",i.zoomOnClick_=Ch(i.options,"zoomOnClick",!0),i.averageCenter_=Ch(i.options,"averageCenter",!1),i.ignoreHidden_=Ch(i.options,"ignoreHidden",!1),i.enableRetinaIcons_=Ch(i.options,"enableRetinaIcons",!1),i.imagePath_=i.options.imagePath||t.IMAGE_PATH,i.imageExtension_=i.options.imageExtension||t.IMAGE_EXTENSION,i.imageSizes_=i.options.imageSizes||t.IMAGE_SIZES,i.calculator_=i.options.calculator||t.CALCULATOR,i.batchSize_=i.options.batchSize||t.BATCH_SIZE,i.batchSizeIE_=i.options.batchSizeIE||t.BATCH_SIZE_IE,i.clusterClass_=i.options.clusterClass||"cluster",-1!==navigator.userAgent.toLowerCase().indexOf("msie")&&(i.batchSize_=i.batchSizeIE_),i.setupStyles_(),i.addMarkers(r,!0),i.setMap(n),i}nt(t,e);var n=t.prototype;return n.onAdd=function(){var e=this;this.activeMap_=this.getMap(),this.ready_=!0,this.repaint(),this.prevZoom_=this.getMap().getZoom(),this.listeners_=[google.maps.event.addListener(this.getMap(),"zoom_changed",(function(){var t=e.getMap(),n=t.minZoom||0,r=Math.min(t.maxZoom||100,t.mapTypes[t.getMapTypeId()].maxZoom),o=Math.min(Math.max(e.getMap().getZoom(),n),r);e.prevZoom_!=o&&(e.prevZoom_=o,e.resetViewport_(!1))})),google.maps.event.addListener(this.getMap(),"idle",(function(){e.redraw_()}))]},n.onRemove=function(){for(var e=0;e<this.markers_.length;e++)this.markers_[e].getMap()!==this.activeMap_&&this.markers_[e].setMap(this.activeMap_);for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.listeners_.length;n++)google.maps.event.removeListener(this.listeners_[n]);this.listeners_=[],this.activeMap_=null,this.ready_=!1},n.draw=function(){},n.setupStyles_=function(){if(!(this.styles_.length>0))for(var e=0;e<this.imageSizes_.length;e++){var n=this.imageSizes_[e];this.styles_.push(t.withDefaultStyle({url:this.imagePath_+(e+1)+"."+this.imageExtension_,height:n,width:n}))}},n.fitMapToMarkers=function(e){for(var t=this.getMarkers(),n=new google.maps.LatLngBounds,r=0;r<t.length;r++)!t[r].getVisible()&&this.getIgnoreHidden()||n.extend(t[r].getPosition());this.getMap().fitBounds(n,e)},n.getGridSize=function(){return this.gridSize_},n.setGridSize=function(e){this.gridSize_=e},n.getMinimumClusterSize=function(){return this.minClusterSize_},n.setMinimumClusterSize=function(e){this.minClusterSize_=e},n.getMaxZoom=function(){return this.maxZoom_},n.setMaxZoom=function(e){this.maxZoom_=e},n.getZIndex=function(){return this.zIndex_},n.setZIndex=function(e){this.zIndex_=e},n.getStyles=function(){return this.styles_},n.setStyles=function(e){this.styles_=e},n.getTitle=function(){return this.title_},n.setTitle=function(e){this.title_=e},n.getZoomOnClick=function(){return this.zoomOnClick_},n.setZoomOnClick=function(e){this.zoomOnClick_=e},n.getAverageCenter=function(){return this.averageCenter_},n.setAverageCenter=function(e){this.averageCenter_=e},n.getIgnoreHidden=function(){return this.ignoreHidden_},n.setIgnoreHidden=function(e){this.ignoreHidden_=e},n.getEnableRetinaIcons=function(){return this.enableRetinaIcons_},n.setEnableRetinaIcons=function(e){this.enableRetinaIcons_=e},n.getImageExtension=function(){return this.imageExtension_},n.setImageExtension=function(e){this.imageExtension_=e},n.getImagePath=function(){return this.imagePath_},n.setImagePath=function(e){this.imagePath_=e},n.getImageSizes=function(){return this.imageSizes_},n.setImageSizes=function(e){this.imageSizes_=e},n.getCalculator=function(){return this.calculator_},n.setCalculator=function(e){this.calculator_=e},n.getBatchSizeIE=function(){return this.batchSizeIE_},n.setBatchSizeIE=function(e){this.batchSizeIE_=e},n.getClusterClass=function(){return this.clusterClass_},n.setClusterClass=function(e){this.clusterClass_=e},n.getMarkers=function(){return this.markers_},n.getTotalMarkers=function(){return this.markers_.length},n.getClusters=function(){return this.clusters_},n.getTotalClusters=function(){return this.clusters_.length},n.addMarker=function(e,t){this.pushMarkerTo_(e),t||this.redraw_()},n.addMarkers=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&this.pushMarkerTo_(e[n]);t||this.redraw_()},n.pushMarkerTo_=function(e){var t=this;e.getDraggable()&&google.maps.event.addListener(e,"dragend",(function(){t.ready_&&(e.isAdded=!1,t.repaint())})),e.isAdded=!1,this.markers_.push(e)},n.removeMarker=function(e,t){var n=this.removeMarker_(e);return!t&&n&&this.repaint(),n},n.removeMarkers=function(e,t){for(var n=!1,r=0;r<e.length;r++){var o=this.removeMarker_(e[r]);n=n||o}return!t&&n&&this.repaint(),n},n.removeMarker_=function(e){var t=-1;if(this.markers_.indexOf)t=this.markers_.indexOf(e);else for(var n=0;n<this.markers_.length;n++)if(e===this.markers_[n]){t=n;break}return-1!==t&&(e.setMap(null),this.markers_.splice(t,1),!0)},n.clearMarkers=function(){this.resetViewport_(!0),this.markers_=[]},n.repaint=function(){var e=this.clusters_.slice();this.clusters_=[],this.resetViewport_(!1),this.redraw_(),setTimeout((function(){for(var t=0;t<e.length;t++)e[t].remove()}),0)},n.getExtendedBounds=function(e){var t=this.getProjection(),n=new google.maps.LatLng(e.getNorthEast().lat(),e.getNorthEast().lng()),r=new google.maps.LatLng(e.getSouthWest().lat(),e.getSouthWest().lng()),o=t.fromLatLngToDivPixel(n);o.x+=this.gridSize_,o.y-=this.gridSize_;var i=t.fromLatLngToDivPixel(r);i.x-=this.gridSize_,i.y+=this.gridSize_;var a=t.fromDivPixelToLatLng(o),s=t.fromDivPixelToLatLng(i);return e.extend(a),e.extend(s),e},n.redraw_=function(){this.createClusters_(0)},n.resetViewport_=function(e){for(var t=0;t<this.clusters_.length;t++)this.clusters_[t].remove();this.clusters_=[];for(var n=0;n<this.markers_.length;n++){var r=this.markers_[n];r.isAdded=!1,e&&r.setMap(null)}},n.distanceBetweenPoints_=function(e,t){var n=(t.lat()-e.lat())*Math.PI/180,r=(t.lng()-e.lng())*Math.PI/180,o=Math.sin(n/2)*Math.sin(n/2)+Math.cos(e.lat()*Math.PI/180)*Math.cos(t.lat()*Math.PI/180)*Math.sin(r/2)*Math.sin(r/2);return 6371*(2*Math.atan2(Math.sqrt(o),Math.sqrt(1-o)))},n.isMarkerInBounds_=function(e,t){return t.contains(e.getPosition())},n.addToClosestCluster_=function(e){for(var t=4e4,n=null,r=0;r<this.clusters_.length;r++){var o=this.clusters_[r],i=o.getCenter();if(i){var a=this.distanceBetweenPoints_(i,e.getPosition());a<t&&(t=a,n=o)}}if(n&&n.isMarkerInClusterBounds(e))n.addMarker(e);else{var s=new bh(this);s.addMarker(e),this.clusters_.push(s)}},n.createClusters_=function(e){var t=this;if(this.ready_){var n;0===e&&(google.maps.event.trigger(this,"clusteringbegin",this),void 0!==this.timerRefStatic&&(clearTimeout(this.timerRefStatic),delete this.timerRefStatic)),n=this.getMap().getZoom()>3?new google.maps.LatLngBounds(this.getMap().getBounds().getSouthWest(),this.getMap().getBounds().getNorthEast()):new google.maps.LatLngBounds(new google.maps.LatLng(85.02070771743472,-178.48388434375),new google.maps.LatLng(-85.08136444384544,178.00048865625));for(var r=this.getExtendedBounds(n),o=Math.min(e+this.batchSize_,this.markers_.length),i=e;i<o;i++){var a=this.markers_[i];!a.isAdded&&this.isMarkerInBounds_(a,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&a.getVisible())&&this.addToClosestCluster_(a)}if(o<this.markers_.length)this.timerRefStatic=window.setTimeout((function(){t.createClusters_(o)}),0);else{delete this.timerRefStatic,google.maps.event.trigger(this,"clusteringend",this);for(var s=0;s<this.clusters_.length;s++)this.clusters_[s].updateIcon()}}},t.CALCULATOR=function(e,t){for(var n=0,r=e.length,o=r;0!==o;)o=Math.floor(o/10),n++;return n=Math.min(n,t),{text:r.toString(),index:n,title:""}},t.withDefaultStyle=function(e){return Object.assign({textColor:"black",textSize:11,textDecoration:"none",textLineHeight:e.height,fontWeight:"bold",fontStyle:"normal",fontFamily:"Arial,sans-serif",backgroundPosition:"0 0"},e)},t}(gh);Oh.BATCH_SIZE=2e3,Oh.BATCH_SIZE_IE=500,Oh.IMAGE_PATH="../images/m",Oh.IMAGE_EXTENSION="png",Oh.IMAGE_SIZES=[53,56,66,78,90];var _h,wh,Sh,Ph=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(Oh),r=o(Qd);function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a={maxZoom:{type:Number,twoWay:!1},batchSizeIE:{type:Number,twoWay:!1},calculator:{type:Function,twoWay:!1},enableRetinaIcons:{type:Boolean,twoWay:!1},gridSize:{type:Number,twoWay:!1},averageCenter:{type:Boolean,twoWay:!1},ignoreHidden:{type:Boolean,twoWay:!1},imageExtension:{type:String,twoWay:!1},imagePath:{type:String,twoWay:!1},imageSizes:{type:Array,twoWay:!1},minimumClusterSize:{type:Number,twoWay:!1},clusterClass:{type:String,twoWay:!1},styles:{type:Array,twoWay:!1},zoomOnClick:{type:Boolean,twoWay:!1}},s=(0,r.default)({mappedProps:a,events:["click","rightclick","dblclick","drag","dragstart","dragend","mouseup","mousedown","mouseover","mouseout"],name:"cluster",ctr:function(){if(void 0===n.default)throw new Error("MarkerClusterer is not installed! require() it or include it from https://cdnjs.cloudflare.com/ajax/libs/js-marker-clusterer/1.0.0/markerclusterer.js");return n.default},ctrArgs:function(e){return[e.map,[],i(e,["map"])]},render:function(e){return e("div",this.$slots.default)},afterCreate:function(e){var t=this,n=function(){var t=e.getMarkers();e.clearMarkers(),e.addMarkers(t)};Object.keys(a).forEach((function(e){a[e].twoWay&&t.$on("".concat(e.toLowerCase(),"_changed"),n)}))},updated:function(){this.$clusterObject&&this.$clusterObject.repaint()},beforeDestroy:function(){var e=this;this.$children.forEach((function(t){t.$clusterObject===e.$clusterObject&&(t.$clusterObject=null)})),this.$clusterObject&&this.$clusterObject.clearMarkers()}});t.default=s}))),$h=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Qd)&&n.__esModule?n:{default:n};function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var i={options:{type:Object,required:!1,default:function(){return{}}},position:{type:Object,twoWay:!0},zIndex:{type:Number,twoWay:!0}},a=(0,r.default)({mappedProps:i,events:["domready","closeclick","content_changed"],name:"infoWindow",ctr:function(){return google.maps.InfoWindow},props:{opened:{type:Boolean,default:!0}},inject:{$markerPromise:{default:null}},mounted:function(){var e=this.$refs.flyaway;e.parentNode.removeChild(e)},beforeCreate:function(e){var t=this;if(e.content=this.$refs.flyaway,this.$markerPromise){var n=e;n.position;return e=o(n,["position"]),this.$markerPromise.then((function(e){return t.$markerObject=e,e}))}},methods:{_openInfoWindow:function(){this.opened?null!==this.$markerObject?this.$infoWindowObject.open(this.$map,this.$markerObject):this.$infoWindowObject.open(this.$map):this.$infoWindowObject.close()}},afterCreate:function(){var e=this;this._openInfoWindow(),this.$watch("opened",(function(){e._openInfoWindow()}))}});t.default=a}))),kh={name:"InfoWindowWrapper",props:{id:St.string,renderPopover:St.func,infoWindowProps:St.object,events:St.object},data:function(){return{infoWindowRef:null}},mounted:function(){this.infoWindowRef=this.$refs[this.id+"-Info-Window"]},methods:{handleClose:function(){this.infoWindowRef.$infoWindowObject.close()}},render:function(){var e=arguments[0],t=this.renderPopover,n=this.events;return e($h,{ref:this.id+"-Info-Window",props:tt({},this.infoWindowProps),on:tt({},n)},[e("div",[t(this.handleClose)])])}},Ih={name:"MarkerWithLabel",props:{metaData:{type:Object,default:void 0},marker:{type:Object,default:void 0},offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},alignment:{type:String,default:"top"},zIndex:{type:Number,default:50},cssPosition:{type:Boolean,default:!1},renderMarker:St.func.isRequired,handleMouseOver:St.func,handleFocus:St.func,handleMouseOut:St.func,handleBlur:St.func,handleClick:St.func},data:function(){return{opacity:.01}},mixins:[Md],inject:{$clusterPromise:{default:null}},computed:{lat:function(){return parseFloat(Number.isNaN(this.marker.lat)?this.marker.latitude:this.marker.lat)},lng:function(){return parseFloat(Number.isNaN(this.marker.lng)?this.marker.longitude:this.marker.lng)},latLng:function(){return this.marker instanceof window.google.maps.LatLng?this.marker:new window.google.maps.LatLng(this.lat,this.lng)}},watch:{marker:function(){var e=this;this.$mapPromise.then((function(){return e.$overlay.setPosition()}))},zIndex:function(){this.$overlay&&this.$overlay.repaint()}},beforeCreate:function(e){return this.$clusterPromise&&(e.map=null),this.$clusterPromise},destroyed:function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0)},provide:function(){var e=this,t=this;return this.$mapPromise.then((function(n){var r=function(e){function n(n){var r;return(r=e.call(this)||this).metaData=t.metaData,r.setMap(n),r.draw=function(){return r.repaint()},r.setPosition=function(){return r.repaint()},r}nt(n,e);var r=n.prototype;return r.repaint=function(){var e=t.$el,n=this.getProjection();if(n&&e){var r,o,i=n.fromLatLngToDivPixel(t.latLng);switch(t.alignment){case"top":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight;break;case"bottom":r=i.x-e.offsetWidth/2,o=i.y;break;case"left":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight/2;break;case"right":r=i.x,o=i.y-e.offsetHeight/2;break;case"center":r=i.x-e.offsetWidth/2,o=i.y-e.offsetHeight/2;break;case"topleft":case"lefttop":r=i.x-e.offsetWidth,o=i.y-e.offsetHeight;break;case"topright":case"righttop":r=i.x,o=i.y-e.offsetHeight;break;case"bottomleft":case"leftop":r=i.x-e.offsetWidth,o=i.y;break;case"bottomright":case"rightbottom":r=i.x,o=i.y;break;default:throw new Error("Invalid alignment type of custom marker!")}t.cssPosition?e.style.transform="translate("+(r+t.offsetX)+"px, "+(o+t.offsetY)+"px)":(e.style.left=r+t.offsetX+"px",e.style.top=o+t.offsetY+"px"),e.style["z-index"]=t.zIndex}},r.onAdd=function(){this.$clusterObject?this.$clusterObject.removeMarker(this.$overlay,!0):this.$overlay&&(this.$overlay.setMap(null),this.$overlay=void 0);var e=t.$el,n=this.getPanes();e.style.position="absolute",e.style.display="inline-block",e.style.zIndex=t.zIndex,n.overlayLayer.appendChild(e),n.overlayMouseTarget.appendChild(e),this.getDraggable=function(){return!1},this.getPosition=function(){return new window.google.maps.LatLng(t.lat,t.lng)},t.afterCreate(this)},r.onRemove=function(){if(t.$el){var e=window.navigator.userAgent;e.indexOf("MSIE ")>0||e.match(/Trident.*rv\:11\./)?t.$el.parentNode.removeChild(t.$el):t.$el.remove()}},n}(window.google.maps.OverlayView);e.$overlay=new r(n),setTimeout((function(){e.$overlay&&(e.$overlay.repaint(),e.opacity=1)}),100)}))},methods:{afterCreate:function(e){var t=this;this.$clusterPromise&&!this.isMarkerAdded&&this.$clusterPromise.then((function(n){n.addMarker(e),t.$clusterObject=n,t.isMarkerAdded=!0}))}},render:function(){var e=arguments[0];return e("div",{style:{opacity:this.opacity},on:{mouseover:this.handleMouseOver,mouseout:this.handleMouseOut,click:this.handleClick}},[this.renderMarker()])}},Eh=Gt("div")(_h||(_h=it(["\n\theight: 24px;\n\twidth: auto;\n\tbackground-color: #fff;\n\tborder-radius: 2px;\n\tcolor: #222;\n\tbox-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);\n\tpadding: 3px 6px;\n\tfont-size: 15px;\n"]))),Ah=Gt("div")(wh||(wh=it(["\n\tborder-color: rgba(0, 0, 0, 0.2);\n\tborder-style: solid;\n\tborder-width: 0 1px 1px 0;\n\tmargin-left: -6px;\n\tbackground-color: #fff;\n\tmargin-top: -6px;\n\twidth: 12px;\n\theight: 12px;\n\t-webkit-transform: rotate(45deg);\n\t-ms-transform: rotate(45deg);\n\ttransform: rotate(45deg);\n"]))),Th=Ut(Sh||(Sh=it(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),Rh=Xe.recordResultClick,xh={name:"GoogleMapMarker",props:{index:St.number,marker:St.object.isRequired,getPosition:St.func.isRequired,defaultPin:St.string,renderItem:St.func,setOpenMarkers:St.func.isRequired,handlePreserveCenter:St.func.isRequired,autoClosePopover:St.bool,openMarkers:St.object,renderPopover:St.func,highlightMarkerOnHover:St.bool},data:function(){return{zIndex:0,markerIcon:null}},methods:{increaseMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex+=1),e(!0)},removeMarkerZIndex:function(){var e=this.$props.handlePreserveCenter;this.highlightMarkerOnHover&&(this.zIndex-=1),e(!0)},openMarker:function(){var e,t,n=this.$props,r=n.setOpenMarkers,o=n.openMarkers,i=n.marker,a=n.autoClosePopover,s=n.handlePreserveCenter,u=i._id;r(a?((e={})[u]=!0,e):tt({},o,((t={})[u]=!0,t))),s(!0),this.triggerAnalytics(),this.$emit("open-marker-popover",i)},closeMarker:function(){var e=this.$props,t=e.setOpenMarkers,n=e.marker,r=e.autoClosePopover,o=e.handlePreserveCenter,i=e.openMarkers,a=n._id,s=(i[a],ot(i,[a].map(at)));t(r?{}:s),o(!0),this.$emit("close-marker-popover",n)},triggerAnalytics:function(){this.recordResultClick(this.index,this.marker._id)},renderPopoverClick:function(e,t){var n=this;void 0===t&&(t=!1);var r=this.$createElement,o={},i=this.$props,a=i.getPosition,s=i.renderPopover,u=i.openMarkers;return t&&(o={position:a(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(kh,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return s({item:e,handleClose:function(){t(),n.closeMarker()}})},infoWindowProps:{zIndex:500,position:o.position,options:o.defaultOptions},events:{closeclick:function(){return n.closeMarker()}}}}):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,a=n.renderPopover,s=n.markerProps,u=n.marker,l={};if(this.zIndex&&(l.zIndex=window.google.maps.Marker.MAX_ZINDEX+this.zIndex),o){u.setIcon=function(t){e.markerIcon=t};var c=o(u);if("label"in c)return t(Ih,{key:u._id,attrs:{metaData:u,marker:r(u),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Th}},[t(Eh,[c.label]),t(Ah),a?e.renderPopoverClick(u,!0):null])}},props:tt({},s)});if(!("icon"in c))return t(Ih,{key:u._id,attrs:{metaData:u,marker:r(u),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,zIndex:l.zIndex,renderMarker:function(){return t("div",{attrs:{css:Th}},["function"==typeof c.custom?c.custom(u):c.custom,a?e.renderPopoverClick(u,!0):null])}},props:tt({},s)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Nd,{key:u._id,attrs:{zIndex:l.zIndex,position:r(u),options:{metaData:u},icon:this.markerIcon||l.icon},on:{click:function(){return e.openMarker()},mouseover:this.increaseMarkerZIndex,mouseout:this.removeMarkerZIndex},props:tt({},s)},[a?this.renderPopoverClick(u):null])}},Lh=or((function(){return null}),{recordResultClick:Rh})(xh),Mh={name:"GoogleMapMarkers",props:{resultsToRender:St.array,getPosition:St.func,renderItem:St.func,renderClusterPopover:St.func,defaultPin:St.string,autoClosePopover:St.bool,handlePreserveCenter:St.func,renderPopover:St.func,markerProps:St.object,clusterProps:St.object,showMarkerClusters:St.bool,highlightMarkerOnHover:St.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},getClusterMarkers:function(){return this.clickedCluster&&Array.isArray(this.clickedCluster.getMarkers())?this.clickedCluster.getMarkers().map((function(e){return e.metaData})):[]},getAdditionalProps:function(){return{position:{lat:this.clickedCluster.getCenter().lat(),lng:this.clickedCluster.getCenter().lng()},defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}},closeMarker:function(){this.clickedCluster=null,this.clusterMarkers=[],this.$emit("close-cluster-popover")}},render:function(){var e=this,t=arguments[0],n=this.$props.resultsToRender,r=this.openMarkers,o={openMarkers:r,setMarkerOnTop:this.setMarkerOnTop,setOpenMarkers:this.setOpenMarkers,getPosition:this.getPosition,renderItem:this.renderItem,defaultPin:this.defaultPin,autoClosePopover:this.autoClosePopover,handlePreserveCenter:this.handlePreserveCenter,renderPopover:this.renderPopover,markerProps:this.markerProps,showMarkerClusters:this.showMarkerClusters,highlightMarkerOnHover:this.highlightMarkerOnHover};return this.showMarkerClusters?t("div",[t(Ph,{props:tt({},this.clusterProps),on:{click:function(t){e.clickedCluster=t,e.clusterMarkers=e.getClusterMarkers(),e.$emit("open-cluster-popover",e.clusterMarkers)}},ref:"clusterRef"},[n.map((function(n,r){return t(Lh,{attrs:{index:r,marker:n},props:tt({},o),on:tt({},e.$listeners)})}))]),this.clickedCluster&&this.renderClusterPopover?t(kh,{attrs:{id:"cluster",infoWindowProps:{zIndex:500,position:this.getAdditionalProps().position,options:this.getAdditionalProps().defaultOptions},renderPopover:function(t){return e.renderClusterPopover({markers:e.clusterMarkers,cluster:e.clickedCluster,handleClose:function(){t(),e.closeMarker()}})},events:{closeclick:this.closeMarker}}}):null]):t("div",[n.map((function(n,r){return t(Lh,{attrs:{index:r,marker:n},props:tt({},o),on:tt({},e.$listeners)})}))])}},jh={name:"ReactiveGoogleMap",props:{className:Un.string,componentId:Un.stringRequired,dataField:Un.stringRequired,defaultQuery:St.func,loader:Un.title,defaultZoom:St.number.def(13),react:Un.react,size:Un.number,sortBy:Un.sortBy,URLParams:St.bool,mapProps:St.object,showMarkers:St.bool.def(!0),showMarkerClusters:St.bool.def(!1),searchAsMove:St.bool.def(!1),searchAsMoveLabel:St.string,markerProps:St.object,clusterProps:St.object,renderItem:St.func,showSearchAsMove:St.bool.def(!0),autoClosePopover:St.bool,pagination:St.bool,defaultPin:St.string,autoCenter:St.bool,defaultCenter:Un.location,center:Un.location,defaultRadius:Un.number,unit:Un.string,pages:St.number.def(5),calculateMarkers:St.func,highlightMarkerOnHover:St.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,a=e.handleOnDragEnd,s=e.handleOnIdle,u=e.renderSearchAsMove,l=e.handlePreserveCenter,c=e.getPosition,d=e.autoClosePopover,p=e.defaultPin,h=this.$createElement;return h("div",{style:{width:"100%",height:"100%",position:"relative"}},[h(Tp,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:tt({},this.mapProps),on:{zoom_changed:i,dragend:a,idle:s}},[this.showMarkers?h(Mh,{attrs:{resultsToRender:n,getPosition:c,markerProps:this.markerProps,clusterProps:this.clusterProps,handlePreserveCenter:l,highlightMarkerOnHover:this.highlightMarkerOnHover,renderItem:this.$scopedSlots.renderItem?function(){return{custom:t.$scopedSlots.renderItem}}:this.renderItem,defaultPin:p,autoClosePopover:d,renderPopover:this.$scopedSlots.renderPopover,renderClusterPopover:this.$scopedSlots.renderClusterPopover,showMarkerClusters:this.showMarkerClusters},on:tt({},this.$listeners)}):null]),u()])},getMapRef:function(){return this.mapRef}},mounted:function(){var e=this;this.$refs.mapRef&&this.$refs.mapRef.$mapPromise.then((function(t){e.mapRef=t}))},render:function(){var e=arguments[0];return e(fh,Hr([{attrs:{getMapRef:this.getMapRef,renderMap:this.renderMap,componentId:this.componentId,className:this.className,dataField:this.dataField,defaultZoom:this.defaultZoom,react:this.react,size:this.size,sortBy:this.sortBy,pagination:this.pagination,uRLParams:this.URLParams,defaultSearchAsMove:this.searchAsMove,showSearchAsMove:this.showSearchAsMove,searchAsMoveLabel:this.searchAsMoveLabel,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,autoCenter:this.autoCenter,defaultCenter:this.defaultCenter,defaultRadius:this.defaultRadius,unit:this.unit,pages:this.pages,center:this.center,loader:this.loader,calculateMarkers:this.calculateMarkers}},{scopedSlots:this.$scopedSlots,on:this.$listeners}]))},install:function(e,t){e.component(jh.name,jh),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(Ep,{load:{key:t.key,libraries:"places"},installComponents:!1})}};jh.componentType=T.reactiveMap;var Qh=["aggs","size"],Vh=["query"],Dh=["query"],Fh=[T.numberBox,T.ratingsFilter],Nh=[T.reactiveList,T.reactiveMap];function Uh(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var qh,zh,Bh=function(e){var t=e.theme;return Ut(qh||(qh=it(["\n\tcolor: ",";\n"])),t.colors.alertColor)},Hh=Gt("div")(zh||(zh=it(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&Bh})),Gh=et.getClassName,Wh=et.isEqual,Zh={name:"RangeInput",components:{RangeSlider:od},inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:{start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10},isStartValid:!0,isEndValid:!0}},props:{className:{types:Un.string,default:""},defaultValue:Un.range,validateRange:Un.func,value:Un.range,dataField:Un.stringRequired,innerClass:Un.style,range:{types:Un.range,default:function(){return{start:0,end:10}}},rangeLabels:Un.rangeLabels,stepValue:Un.number,componentStyle:Un.style,componentId:Un.stringRequired,includeNullValues:St.bool,beforeValueChange:Un.func,customQuery:Un.func,data:Un.data,filterLabel:Un.string,react:Un.react,showFilter:St.bool.def(!0),showCheckbox:St.bool.def(!0),title:Un.title,URLParams:St.bool.def(!1),sliderOptions:St.object.def({}),nestedField:Un.string},methods:{shouldUpdate:function(e){var t=this.$props.validateRange;return t&&e?t([e.start,e.end]):!!e&&e.start<=e.end},isControlled:function(){return!(!this.$props.value||!this.$listeners)},handleChange:function(e,t){var n=e;if(this.shouldUpdate(e)&&!Wh(e,this.currentValue))switch(t){case"change":e||(n={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=tt({},n),this.$emit("change",this.$data.currentValue);break;case"value-change":this.$emit("valueChange",this.$data.currentValue),this.$emit("value-change",this.$data.currentValue);break;default:this.$data.currentValue=tt({},n)}},handleOnChange:function(e){this.handleChange(e||this.$props.range,"change")},handleValueChange:function(e){this.handleChange(e,"value-change")},handleInputChange:function(e){var t=e.target,n=t.name,r=t.value;Number.isNaN(r)?"start"===n?this.$data.isStartValid=!1:this.$data.isEndValid=!1:"start"!==n||this.$data.isStartValid?"end"!==n||this.$data.isEndValid||(this.$data.isEndValid=!0):this.$data.isStartValid=!0,this.$data.isStartValid&&this.$data.isEndValid&&("start"===n?this.handleChange({start:Number(r),end:this.$data.currentValue.end},"change"):this.handleChange({start:this.$data.currentValue.start,end:Number(r)},"change"))}},watch:{defaultValue:function(e,t){t.start===e.start&&t.end===e.end||this.handleChange(e)},value:function(e,t){Wh(e,t)||this.isControlled()&&this.handleChange(e,"change")}},created:function(){this.$props.defaultValue&&this.$props.defaultValue.start&&this.$props.defaultValue.end&&this.handleChange(this.$props.defaultValue),this.isControlled()&&this.handleChange(this.$props.value,"change")},render:function(){var e=arguments[0],t=this.$props,n=t.className,r=t.dataField,o=t.range,i=t.rangeLabels,a=t.componentId,s=t.innerClass,u=t.stepValue,l=t.componentStyle,c=t.themePreset,d=t.includeNullValues,p=t.beforeValueChange,h=t.customQuery,f=t.data,g=t.filterLabel,m=t.react,y=t.showFilter,v=t.showCheckbox,b=t.title,C=t.URLParams,O=t.sliderOptions,_=t.nestedField;return e(Xa,{style:l,class:n},[e(od,{attrs:{componentId:a,value:{start:this.currentValue.start,end:this.currentValue.end},range:o,dataField:r,rangeLabels:i,includeNullValues:d,beforeValueChange:p,customQuery:h,data:f,filterLabel:g,react:m,showFilter:y,showCheckbox:v,title:b,uRLParams:C,sliderOptions:O,nestedField:_},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(_o,{class:Gh(s,"input-container")||""},[e(_o,{attrs:{direction:"column",flex:2}},[e(Da,{key:a+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":a+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:Gh(s,"input")||"",domProps:tt({},{value:this.currentValue.start})}),!this.isStartValid&&e(Hh,{attrs:{alert:!0}},["Input range is invalid"])]),e(_o,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(_o,{attrs:{direction:"column",flex:2}},[e(Da,{key:a+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":a+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:Gh(s,"input")||"",domProps:tt({},{value:this.currentValue.end})}),!this.isEndValid&&e(Hh,{attrs:{alert:!0}},["Input range is invalid"])])])])}},Kh=Rr(or((function(e){return{themePreset:e.config.themePreset}}),{})(Zh),{componentType:T.rangeInput});Zh.install=function(e){e.component(Zh.name,Kh)},Zh.componentType=T.rangeInput;var Yh=[zo,Dc,Hc,Di,Bs,hu,ju,Wu,_c,Tc,rd,Cd,ac,hc,Gl,wl,Ql,$d,Zh];function Xh(e){Yh.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&Xh(window.Vue);var Jh={version:"1.16.0-alpha.55",install:Xh};e.DataSearch=Bs,e.DynamicRangeSlider=Cd,e.MultiDropdownList=Ql,e.MultiList=Wu,e.MultiRange=Tc,e.RangeInput=Zh,e.RangeSlider=rd,e.ReactiveBase=Di,e.ReactiveComponent=ac,e.ReactiveGoogleMap=jh,e.ReactiveList=zo,e.ResultCard=Dc,e.ResultList=Hc,e.SearchBox=hu,e.SelectedFilters=hc,e.SingleDropdownList=wl,e.SingleList=ju,e.SingleRange=_c,e.StateProvider=$d,e.ToggleButton=Gl,e.default=Jh,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,a=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,s=tt({},n.enableAppbase&&tt({"X-Search-Client":"ReactiveSearch Vue"},!1===a&&{"X-Enable-Telemetry":!1}),n.headers),u={url:n.url&&""!==n.url.trim()?n.url:"https://scalr.api.appbase.io",app:n.app,credentials:i,transformRequest:n.transformRequest||null,type:n.type?n.type:"*",transformResponse:n.transformResponse||null,graphQLUrl:n.graphQLUrl||"",headers:s,analyticsConfig:n.appbaseConfig||null},l=$i(u),c=[],d={},p={},h={},f={},g={},m=[],y={},v=[],b={},C={},_={},w={},S={},$={},I={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){R.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Nh.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,u=function(e,t,n){if(e&&e[t])try{return{value:JSON.parse(e[t]),reference:"URL"}}catch(n){return{value:e[t],reference:"URL"}}return{value:n,reference:"DEFAULT"}}(t,e.componentId,e.value||e.defaultValue),l=u.value,h=u.reference,m=void 0===e.showFilter||e.showFilter;Fh.includes(n)&&(m=!1),d=F(d,{type:"SET_VALUE",component:e.componentId,label:s,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(S[e.componentId]=e.customQuery(l,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&($[e.componentId]=e.defaultQuery(l,r));var y={};e&&e.source.generateQueryOptions&&(y=tt({},y,e.source.generateQueryOptions(e)));var v={};if(e.source.highlightQuery&&(v=e.source.highlightQuery(e)),y&&Object.keys(y).length||v&&Object.keys(v).length){var b=y||{},C=b.aggs,O=b.size,_=ot(b,Qh);if(C&&Object.keys(C).length&&(o=!0,y=tt({},y,{aggs:C,size:void 0===O?100:O})),_&&Object.keys(_).length||v&&Object.keys(v).length){_||(_={}),v||(v={});var w=tt({},_,v,{size:O});if(o&&(w=tt({},_,v)),i){var A=e.currentPage?e.currentPage-1:0;d[e.componentId]&&d[e.componentId].value&&(A=d[e.componentId].value-1||0);var T=e.size||10,x=A*T;r.from=x,w=tt({},w,v,{size:T,from:x})}y=tt({},y,w)}}if(e.react||o||i){var L=e.react;(o||i)&&(L=Se(L,a)),g=P(g,{type:"WATCH_COMPONENT",component:e.componentId,react:L})}if(o&&!xe(e.componentType)){var M=function(e,t){var n=Uh(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return tt({query:be(r)},Ce(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},j=M.query,Q=ot(M,Vh);p=k(p,{type:"SET_QUERY",component:a,query:j}),f=E(f,{type:"SET_QUERY_OPTIONS",component:a,options:tt({},y,Q)})}var V=function(e,t){var n=Uh(t,e);if(e.customQuery){var r=e.customQuery(n,e);return tt({query:be(r)},Ce(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,N=ot(V,Dh),U=D;p=k(p,{type:"SET_QUERY",component:e.componentId,query:U}),f=E(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:tt({},N)}),r.componentType=n,I[e.componentId]=r})),w={components:c,dependencyTree:g,queryList:p,queryOptions:f,selectedValues:d,internalValues:{},props:I,customQueries:S,defaultQueries:$},e.forEach((function(e){var t=we(e.componentId,g,p,f),r=t.queryObj,o=t.options,i=["aggs","from","sort"];if(r&&Object.keys(r).length||o&&Object.keys(o).some((function(e){return i.includes(e)}))){var a;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var s=tt({query:tt({},r)},o,f[e.componentId]);if(h=tt({},h,((a={})[e.componentId]=s,a)),n.enableAppbase){var l,c=Re(e.componentId,Te(w,e.componentId,f&&Object.keys(f[e.componentId]).length?{from:f[e.componentId].from}:null));if(c)y=tt({},y,((l={})[e.componentId]=c,l),Ae(w,e.componentId,v))}else{var d=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:d},s])}}})),w.queryLog=h;var A=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},T=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){A(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=tt({},C,((o={})[t]=e.aggregations,o)),_=ne(_,{type:O,aggregations:e.aggregations,append:!1}));b=tt({},b,((n={})[t]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},n)),r()})).catch((function(e){return o(e)}))}))}));Promise.all(t).then((function(){w=tt({},w,{hits:b,aggregations:C}),r(w)}))};if(u.graphQLUrl){(function(e){if(u.transformRequest&&"function"==typeof u.transformRequest){var t=u.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(m).then((function(e){Ne(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){T(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(y).length){m=Object.keys(y).map((function(e){return y[e]}));var x={};u.analyticsConfig&&(x.recordAnalytics=je(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,x.userId=je(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,x.enableQueryRules=je(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,x.customEvents=je(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,x).then((function(e){!function(e){var t={},n={},o={},i={},a={},s=v.map((function(r){return new Promise((function(s,u){A(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return tt({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)C=tt({},C,((c={})[r]=u.aggregations,c));a[r]=e._timestamp,b=tt({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),s()}})).catch((function(e){return u(e)}))}))}));Promise.all(s).then((function(){w=tt({},w,{hits:b,timestamp:a,aggregations:C,compositeAggregations:_,promotedResults:t,settings:i,customData:o,rawData:n}),r(w)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){T(e)})).catch((function(e){return o(e)}))}))},e.install=Xh,e.version="1.16.0-alpha.55",Object.defineProperty(e,"__esModule",{value:!0})}));
37
37
  //# sourceMappingURL=reactivesearch-vue.umd.min.js.map