@appbaseio/reactivesearch-vue 1.16.0-alpha.6 → 1.16.0-alpha.62
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.
- package/dist/@appbaseio/reactivesearch-vue.umd.js +16030 -13113
- package/dist/@appbaseio/reactivesearch-vue.umd.js.map +1 -1
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js +5 -5
- package/dist/@appbaseio/reactivesearch-vue.umd.min.js.map +1 -1
- package/dist/cjs/Button-446f819e.js +68 -0
- package/dist/cjs/{DownShift-966a58cb.js → CancelSvg-9f258f4f.js} +60 -16
- package/dist/cjs/Card-642547a8.js +30 -0
- package/dist/cjs/{ComponentWrapper-603848ed.js → ComponentWrapper-ad3dad02.js} +40 -21
- package/dist/cjs/{Container-6cdd3864.js → Container-daf30918.js} +3 -11
- package/dist/cjs/DataSearch-86914b10.js +2322 -0
- package/dist/cjs/DataSearch.js +18 -2151
- package/dist/cjs/{DropDown-f6224ac8.js → DropDown-5513ea77.js} +80 -95
- package/dist/cjs/DynamicRangeSlider.js +107 -43
- package/dist/cjs/Flex-aa517a13.js +52 -0
- package/dist/cjs/FormControlList-c195a592.js +47 -0
- package/dist/cjs/Input-e6603a7e.js +79 -0
- package/dist/cjs/ListItem-8c9e0d68.js +46 -0
- package/dist/cjs/MultiDropdownList.js +102 -68
- package/dist/cjs/MultiList.js +80 -50
- package/dist/cjs/MultiRange.js +21 -16
- package/dist/cjs/{Pagination-af399262.js → Pagination-fe5452fc.js} +14 -8
- package/dist/cjs/RangeInput.js +29 -45
- package/dist/cjs/RangeSlider.js +32 -30
- package/dist/cjs/ReactiveBase.js +87 -56
- package/dist/cjs/ReactiveComponent.js +75 -62
- package/dist/cjs/ReactiveGoogleMap.js +262 -191
- package/dist/cjs/ReactiveList.js +189 -241
- package/dist/cjs/ResultCard.js +8 -6
- package/dist/cjs/ResultList.js +8 -6
- package/dist/cjs/SelectedFilters.js +66 -34
- package/dist/cjs/SingleDropdownList.js +88 -60
- package/dist/cjs/SingleList.js +53 -35
- package/dist/cjs/SingleRange.js +19 -14
- package/dist/cjs/StateProvider.js +39 -10
- package/dist/cjs/{Title-65d39104.js → Title-1de7d0f4.js} +3 -11
- package/dist/cjs/ToggleButton.js +36 -16
- package/dist/cjs/{_rollupPluginBabelHelpers-4abdbfff.js → _rollupPluginBabelHelpers-c705cbe6.js} +2 -4
- package/dist/cjs/{index-baca18c4.js → index-6a167fe0.js} +99 -13
- package/dist/cjs/index.js +31 -25
- package/dist/cjs/initReactivesearch.js +178 -104
- package/dist/cjs/install-004c6aa4.js +1408 -0
- package/dist/cjs/install.js +42 -44
- package/dist/cjs/ssr-3027b848.js +39 -0
- package/dist/cjs/{utils-ea846a20.js → utils-d6a52588.js} +2 -2
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/{vueTypes-c21f265b.js → vueTypes-6de9d2a9.js} +9 -4
- package/dist/es/Button-d8bc15ea.js +59 -0
- package/dist/es/{DownShift-92347b5e.js → CancelSvg-4cfae5fd.js} +56 -17
- package/dist/es/Card-450683f1.js +23 -0
- package/dist/es/{ComponentWrapper-c4c91949.js → ComponentWrapper-424e86fd.js} +40 -21
- package/dist/es/Container-ba826e96.js +10 -0
- package/dist/es/DataSearch-e71a1014.js +2307 -0
- package/dist/es/DataSearch.js +17 -2150
- package/dist/es/{DropDown-3d4291f1.js → DropDown-7d9a15c1.js} +79 -94
- package/dist/es/DynamicRangeSlider.js +107 -43
- package/dist/es/Flex-1f0795c3.js +47 -0
- package/dist/es/FormControlList-c22d64f6.js +40 -0
- package/dist/es/Input-7a2a9fac.js +71 -0
- package/dist/es/ListItem-cad14c5e.js +39 -0
- package/dist/es/MultiDropdownList.js +102 -68
- package/dist/es/MultiList.js +80 -50
- package/dist/es/MultiRange.js +21 -16
- package/dist/es/{Pagination-c2a00175.js → Pagination-3f350098.js} +14 -8
- package/dist/es/RangeInput.js +29 -45
- package/dist/es/RangeSlider.js +32 -30
- package/dist/es/ReactiveBase.js +87 -56
- package/dist/es/ReactiveComponent.js +75 -62
- package/dist/es/ReactiveGoogleMap.js +262 -191
- package/dist/es/ReactiveList.js +189 -241
- package/dist/es/ResultCard.js +8 -6
- package/dist/es/ResultList.js +8 -6
- package/dist/es/SelectedFilters.js +66 -34
- package/dist/es/SingleDropdownList.js +88 -60
- package/dist/es/SingleList.js +53 -35
- package/dist/es/SingleRange.js +19 -14
- package/dist/es/StateProvider.js +39 -10
- package/dist/es/Title-3342664a.js +10 -0
- package/dist/es/ToggleButton.js +36 -16
- package/dist/es/{_rollupPluginBabelHelpers-ecf6c03c.js → _rollupPluginBabelHelpers-76660dab.js} +2 -4
- package/dist/es/{index-185b6266.js → index-7788a843.js} +95 -14
- package/dist/es/index.js +27 -22
- package/dist/es/initReactivesearch.js +179 -105
- package/dist/es/install-b7b604cc.js +1401 -0
- package/dist/es/install.js +40 -46
- package/dist/es/ssr-b2c0b401.js +33 -0
- package/dist/es/{utils-57cc8789.js → utils-9e68acee.js} +2 -2
- package/dist/es/version.js +1 -1
- package/dist/es/{vueTypes-98d938a9.js → vueTypes-9326e0be.js} +9 -4
- package/package.json +6 -4
- package/dist/cjs/Button-d48d4365.js +0 -146
- package/dist/cjs/Card-9748fbb2.js +0 -58
- package/dist/cjs/Flex-befd65fc.js +0 -160
- package/dist/cjs/FormControlList-f3857d4b.js +0 -105
- package/dist/cjs/Input-95cb19f8.js +0 -178
- package/dist/cjs/ListItem-84d185cf.js +0 -84
- package/dist/cjs/ssr-3ca8a14f.js +0 -47
- package/dist/es/Button-27cc8574.js +0 -137
- package/dist/es/Card-1f93780d.js +0 -51
- package/dist/es/Container-88c805ef.js +0 -18
- package/dist/es/Flex-16d1103a.js +0 -155
- package/dist/es/FormControlList-96d44e7b.js +0 -98
- package/dist/es/Input-1159c4b5.js +0 -170
- package/dist/es/ListItem-d22510c9.js +0 -77
- package/dist/es/Title-f0217338.js +0 -18
- package/dist/es/ssr-a710392b.js +0 -41
|
@@ -1,9 +1,9 @@
|
|
|
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}var a="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var s=function(e){var t,n=e.Symbol;return"function"==typeof n?n.observable?t=n.observable:(t=n("observable"),n.observable=t):t="@@observable",t}("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==a?a:"undefined"!=typeof module?module:Function("return this")()),u=function(){return Math.random().toString(36).substring(7).split("").join(".")},l={INIT:"@@redux/INIT"+u(),REPLACE:"@@redux/REPLACE"+u(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+u()}};function c(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 d(e,t){var n=t&&t.type;return"Given "+(n&&'action "'+String(n)+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function p(e,t){return function(){return t(e.apply(this,arguments))}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);return Object.getOwnPropertySymbols&&n.push.apply(n,Object.getOwnPropertySymbols(e)),t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(n,!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}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:l,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("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return g({},n,{dispatch:r=m.apply(void 0,i)(n.dispatch)})}}},bindActionCreators:function(e,t){if("function"==typeof e)return p(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=p(o,t))}return n},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:l.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:l.PROBE_UNKNOWN_ACTION()}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+l.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')}))}(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],l=n[u],c=e[u],p=l(c,t);if(void 0===p){var h=d(u,t);throw new Error(h)}o[u]=p,r=r||p!==c}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("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function.");if("function"==typeof n&&void 0===r&&(r=n,n=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(e)(t,n)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var i=t,a=n,u=[],d=u,p=!1;function h(){d===u&&(d=u.slice())}function f(){if(p)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function g(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(p)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribelistener for more details.");var t=!0;return h(),d.push(e),function(){if(t){if(p)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribelistener for more details.");t=!1,h();var n=d.indexOf(e);d.splice(n,1),u=null}}}function m(e){if(!c(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(p)throw new Error("Reducers may not dispatch actions.");try{p=!0,a=i(a,e)}finally{p=!1}for(var t=u=d,n=0;n<t.length;n++){(0,t[n])()}return e}function y(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");i=e,m({type:l.REPLACE})}function v(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new TypeError("Expected the observer to be an object.");function n(){e.next&&e.next(f())}return n(),{unsubscribe:t(n)}}})[s]=function(){return this},e}return m({type:l.INIT}),(o={dispatch:m,subscribe:g,getState:f,replaceReducer:y})[s]=v,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 _=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_VALUE="SET_VALUE",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_STREAMING="SET_STREAMING",t.PUSH_TO_STREAM_HITS="PUSH_TO_STREAM_HITS",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"}));r(_);_.ADD_COMPONENT,_.REMOVE_COMPONENT,_.WATCH_COMPONENT,_.SET_QUERY,_.SET_QUERY_OPTIONS,_.EXECUTE_QUERY,_.UPDATE_HITS,_.UPDATE_AGGS,_.UPDATE_COMPOSITE_AGGS,_.ADD_CONFIG,_.ADD_APPBASE_REF,_.LOG_QUERY,_.LOG_COMBINED_QUERY,_.SET_VALUE,_.SET_INTERNAL_VALUE,_.PATCH_VALUE,_.CLEAR_VALUES,_.SET_LOADING,_.SET_ERROR,_.SET_STREAMING,_.PUSH_TO_STREAM_HITS,_.SET_TIMESTAMP,_.SET_HEADERS,_.SET_MAP_DATA,_.SET_QUERY_LISTENER,_.STORE_KEY,_.SET_SEARCH_ID,_.SET_PROMOTED_RESULTS,_.SET_DEFAULT_QUERY,_.SET_CUSTOM_QUERY,_.SET_CUSTOM_HIGHLIGHT_OPTIONS,_.SET_CUSTOM_DATA,_.SET_APPLIED_SETTINGS,_.SET_PROPS,_.UPDATE_PROPS,_.REMOVE_PROPS,_.SET_SUGGESTIONS_SEARCH_VALUE,_.CLEAR_SUGGESTIONS_SEARCH_VALUE,_.SET_SUGGESTIONS_SEARCH_ID,_.UPDATE_ANALYTICS_CONFIG,_.SET_RAW_DATA,_.SET_POPULAR_SUGGESTIONS,_.SET_DEFAULT_POPULAR_SUGGESTIONS,_.SET_QUERY_TO_HITS,_.RECENT_SEARCHES_SUCCESS,_.RECENT_SEARCHES_ERROR;var w=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===_.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===_.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}}));r(w);var O=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===_.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(O);var C=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===_.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),S=r(C),P=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===_.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),k=r(P),$=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===_.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),I=r($),E=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",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"},t.validProps=["componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","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","unit"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"}}));r(E);var T=E.componentTypes,A=(E.queryTypes,E.validProps),x=(E.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=[E.componentTypes.numberBox,E.componentTypes.tagCloud,E.componentTypes.toggleButton,E.componentTypes.datePicker,E.componentTypes.dateRange,E.componentTypes.multiDataList,E.componentTypes.multiDropdownList,E.componentTypes.multiList,E.componentTypes.singleDataList,E.componentTypes.singleDropdownList,E.componentTypes.singleList,E.componentTypes.dynamicRangeSlider,E.componentTypes.multiDropdownRange,E.componentTypes.multiRange,E.componentTypes.rangeSlider,E.componentTypes.ratingsFilter,E.componentTypes.singleDropdownRange,E.componentTypes.singleRange],o=[E.componentTypes.dateRange,E.componentTypes.dynamicRangeSlider,E.componentTypes.rangeSlider,E.componentTypes.rangeInput,E.componentTypes.ratingsFilter],i=[E.componentTypes.singleRange,E.componentTypes.singleDropdownRange,E.componentTypes.multiRange,E.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={searchStateHeader:!1,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 R=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===_.ADD_CONFIG)return n({},e,{analyticsConfig:n({},x.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===_.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});return e}}));r(R);var j=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===_.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(j);var M=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===_.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===_.PUSH_TO_STREAM_HITS){var a=e[t.component].total;return t.hit._deleted?a-=1:t.hit._updated||(a+=1),n({},e,o({},t.component,n({},e[t.component],{total:a})))}if(t.type===_.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));r(M);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};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===_.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(L);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===_.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.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];switch(t.type){case _.SET_VALUE:return n({},e,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}));case _.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case _.CLEAR_VALUES:return{};case _.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}})),D=r(V),F=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 _.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case _.CLEAR_VALUES:return{};case _.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default:return e}}}));r(F);var 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];if(t.type===_.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===_.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var s=r(e,[t.component,t.component+"_active"]);return s}return e}}));r(N);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===_.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(q);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===_.SET_STREAMING)return!t.status&&e[t.component]&&e[t.component].ref&&e[t.component].ref.stop(),n({},e,o({},t.component,{status:t.status,ref:t.ref}));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(U);var H=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===_.PUSH_TO_STREAM_HITS){var a=e[t.component]||[];return a=a.filter((function(e){return e._id!==t.hit._id})),n({},e,o({},t.component,[t.hit].concat(i(a))))}if(t.type===_.SET_STREAMING){if(!t.status&&e[t.component]){e[t.component];var s=r(e,[t.component]);return s}}else if(t.type===_.REMOVE_COMPONENT){e[t.component];var u=r(e,[t.component]);return u}return e}}));r(H);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===_.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===_.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===_.SET_HEADERS)return t.headers;return e}}));r(B);var G=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===_.SET_MAP_DATA)return r({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery});if(t.type===_.REMOVE_COMPONENT){e[t.component];var o=n(e,[t.component]);return o}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};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===_.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case _.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case _.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case _.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case _.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case _.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=[E.componentTypes.dataSearch,E.componentTypes.categorySearch]}));r(Z);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===_.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(Y);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===_.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(K);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===_.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.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];if(t.type===_.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}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){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 _.SET_PROPS:return n({},e,o({},t.component,t.options));case _.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case _.REMOVE_PROPS:case _.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default: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===_.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===_.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}return e}}));r(te);var ne=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===_.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||[],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: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}}));r(ne);var 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===_.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===_.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===_.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===_.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===_.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===_.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===_.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===_.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===_.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===_.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===_.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));r(le);var ce=i(y),de=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=be(w),r=be(O),o=be(C),i=be(P),a=be($),s=be(R),u=be(j),l=be(M),c=be(L),d=be(Q),p=be(V),h=be(F),f=be(N),g=be(q),m=be(U),y=be(H),v=be(z),b=be(B),_=be(G),S=be(W),k=be(Z),I=be(Y),E=be(K),T=be(X),A=be(J),x=be(ee),D=be(te),de=be(ne),pe=be(re),he=be(oe),fe=be(ie),ge=be(ae),me=be(se),ye=be(ue),ve=be(le);function be(e){return e&&e.__esModule?e:{default:e}}t.default=(0,ce.combineReducers)({components:n.default,customQueries:A.default,defaultQueries:T.default,customHighlightOptions:he.default,settings:pe.default,watchMan:r.default,queryList:i.default,queryOptions:a.default,dependencyTree:o.default,appbaseRef:u.default,config:s.default,hits:l.default,promotedResults:I.default,customData:E.default,aggregations:D.default,compositeAggregations:de.default,queryLog:c.default,combinedLog:d.default,selectedValues:p.default,internalValues:h.default,isLoading:f.default,error:g.default,stream:m.default,streamHits:y.default,timestamp:v.default,headers:b.default,mapData:_.default,queryListener:S.default,analytics:k.default,props:x.default,rawData:fe.default,querySuggestions:ge.default,defaultPopularSuggestions:me.default,queryToHits:ye.default,recentSearches:ve.default})}));r(de);var pe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setValue=function(e,t,n,r,o,i,a,s){return{type:_.SET_VALUE,component:e,value:t,label:n,showFilter:r,URLParams:o,componentType:i,category:a,meta:s}},t.setInternalValue=function(e,t,n,r,o){return{type:_.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:_.PATCH_VALUE,component:e,payload:t}},t.clearValues=function(){return{type:_.CLEAR_VALUES}}}));r(pe);pe.setValue,pe.setInternalValue,pe.patchValue,pe.clearValues;var he=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=function(e,t){return{type:_.SET_RAW_DATA,component:e,response:t}},t.setLoading=function(e,t){return{type:_.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:_.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:_.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:_.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:_.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:_.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:_.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:_.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:_.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:_.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:_.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:_.LOG_COMBINED_QUERY,component:e,query:t}},t.setStreaming=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:_.SET_STREAMING,component:e,status:t,ref:n}},t.setHeaders=function(e){return{type:_.SET_HEADERS,headers:e}},t.setPromotedResults=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:_.SET_PROMOTED_RESULTS,results:e,component:t}},t.setPopularSuggestions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:_.SET_POPULAR_SUGGESTIONS,suggestions:e,component:t}},t.setDefaultPopularSuggestions=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1];return{type:_.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}},t.setCustomData=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:_.SET_CUSTOM_DATA,data:e,component:t}},t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:_.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:_.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}}}));r(he);he.setRawData,he.setLoading,he.setError,he.setTimestamp,he.setSearchId,he.setSuggestionsSearchId,he.setQuery,he.setCustomQuery,he.setDefaultQuery,he.setCustomHighlightOptions,he.updateQueryOptions,he.logQuery,he.logCombinedQuery,he.setStreaming,he.setHeaders,he.setPromotedResults,he.setPopularSuggestions,he.setDefaultPopularSuggestions,he.setCustomData,he.setAppliedSettings,he.setQueryListener;var fe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.updateAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:_.UPDATE_AGGS,component:e,aggregations:t,append:n}},t.updateCompositeAggs=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:_.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return{type:_.UPDATE_HITS,component:e,hits:t.hits,total:"object"==typeof t.total?t.total.value:t.total,hidden:r,time:n,append:o}},t.saveQueryToHits=function(e,t){return{type:_.SET_QUERY_TO_HITS,component:e,query:t}},t.pushToStreamHits=function(e,t){return{type:_.PUSH_TO_STREAM_HITS,component:e,hit:t}}}));r(fe);fe.updateAggs,fe.updateCompositeAggs,fe.updateHits,fe.saveQueryToHits,fe.pushToStreamHits;var ge=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 s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(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,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(l(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(l(1));return n(f)(e,t)}if("function"!=typeof e)throw new Error(l(2));var o=e,i=t,s=[],a=s,u=!1;function d(){a===s&&(a=s.slice())}function g(){if(u)throw new Error(l(3));return i}function m(e){if("function"!=typeof e)throw new Error(l(4));if(u)throw new Error(l(5));var t=!0;return d(),a.push(e),function(){if(t){if(u)throw new Error(l(6));t=!1,d();var n=a.indexOf(e);a.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(u)throw new Error(l(9));try{u=!0,i=o(i,e)}finally{u=!1}for(var t=s=a,n=0;n<t.length;n++){(0,t[n])()}return e}function v(e){if("function"!=typeof e)throw new Error(l(10));o=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}),(r={dispatch:y,subscribe:m,getState:g,replaceReducer:v})[c]=b,r}var g=f;function m(e,t){return function(){return t(e.apply(this,arguments))}}function y(e,t){if("function"==typeof e)return m(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]=m(o,t))}return n}function v(){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 b=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=v.apply(void 0,i)(n.dispatch),u(u({},n),{},{dispatch:r})}}},bindActionCreators:y,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,s=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={},a=0;a<s.length;a++){var u=s[a],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||s.length!==Object.keys(e).length)?o:e}},compose:v,createStore:f,legacy_createStore:g});function C(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 O=C();O.withExtraArgument=C;var _=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_APPBASE_QUERY="SET_APPBASE_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.UPDATE_CONFIG="UPDATE_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_MAP_RESULTS="SET_MAP_RESULTS",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.SET_VALUES="SET_VALUES",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(_);_.ADD_COMPONENT,_.REMOVE_COMPONENT,_.WATCH_COMPONENT,_.SET_QUERY,_.SET_APPBASE_QUERY,_.SET_QUERY_OPTIONS,_.EXECUTE_QUERY,_.UPDATE_HITS,_.UPDATE_AGGS;var S=_.UPDATE_COMPOSITE_AGGS,w=(_.ADD_CONFIG,_.UPDATE_CONFIG,_.ADD_APPBASE_REF,_.LOG_QUERY,_.LOG_COMBINED_QUERY,_.SET_INTERNAL_VALUE,_.PATCH_VALUE,_.CLEAR_VALUES,_.SET_LOADING,_.SET_ERROR,_.SET_TIMESTAMP,_.SET_HEADERS,_.SET_MAP_DATA,_.SET_MAP_RESULTS,_.SET_QUERY_LISTENER,_.STORE_KEY,_.SET_SEARCH_ID,_.SET_PROMOTED_RESULTS,_.SET_DEFAULT_QUERY,_.SET_CUSTOM_QUERY,_.SET_CUSTOM_HIGHLIGHT_OPTIONS,_.SET_CUSTOM_DATA,_.SET_APPLIED_SETTINGS,_.SET_PROPS,_.UPDATE_PROPS,_.REMOVE_PROPS,_.SET_SUGGESTIONS_SEARCH_VALUE,_.CLEAR_SUGGESTIONS_SEARCH_VALUE,_.SET_SUGGESTIONS_SEARCH_ID,_.UPDATE_ANALYTICS_CONFIG,_.SET_RAW_DATA,_.SET_POPULAR_SUGGESTIONS,_.SET_DEFAULT_POPULAR_SUGGESTIONS,_.SET_QUERY_TO_HITS,_.RECENT_SEARCHES_SUCCESS,_.RECENT_SEARCHES_ERROR,_.SET_VALUE,_.SET_VALUES,_.RESET_TO_DEFAULT,_.SET_GOOGLE_MAP_SCRIPT_LOADING,_.SET_GOOGLE_MAP_SCRIPT_LOADED,_.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===_.ADD_COMPONENT)return[].concat(n(e),[t.component]);if(t.type===_.REMOVE_COMPONENT)return e.filter((function(e){return e!==t.component}));return e}})));r(w);var $=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===_.WATCH_COMPONENT){var i=o(t.react),s=n({},e);return Object.keys(s).forEach((function(e){s[e]=s[e].filter((function(e){return e!==t.component}))})),i.forEach((function(e){Array.isArray(s[e])?s[e]=[].concat(r(s[e]),[t.component]):s[e]=[t.component]})),s}return e}}));r($);var E=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===_.WATCH_COMPONENT)return n({},e,o({},t.component,t.react));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),T=r(E),P=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===_.SET_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),I=r(P),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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(t.type===_.SET_APPBASE_QUERY)return n({},e,t.query);return e}}));r(k);var A=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===_.SET_QUERY_OPTIONS)return n({},e,o({},t.component,t.options));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}})),R=r(A),x=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.componentTypes={reactiveList:"REACTIVELIST",dataSearch:"DATASEARCH",categorySearch:"CATEGORYSEARCH",searchBox:"SEARCHBOX",singleList:"SINGLELIST",multiList:"MULTILIST",singleDataList:"SINGLEDATALIST",tabDataList:"TABDATALIST",singleDropdownList:"SINGLEDROPDOWNLIST",multiDataList:"MULTIDATALIST",multiDropdownList:"MULTIDROPDOWNLIST",singleDropdownRange:"SINGLEDROPDOWNRANGE",treeList:"TREELIST",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",reactiveChart:"REACTIVE_CHART"},t.queryTypes={search:"search",term:"term",range:"range",geo:"geo",suggestion:"suggestion"},t.validProps=["type","componentType","aggregationField","aggregationSize","distinctField","distinctFieldConfig","index","aggregations","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","searchboxId","endpoint"],t.CLEAR_ALL={NEVER:"never",ALWAYS:"always",DEFAULT:"default"},t.SEARCH_COMPONENTS_MODES={SELECT:"select",TAG:"tag"}}));r(x);var L=x.componentTypes,M=(x.queryTypes,x.validProps),j=(x.CLEAR_ALL,x.SEARCH_COMPONENTS_MODES),Q=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 s,a=e["function"==typeof Symbol?Symbol.iterator:"@@iterator"]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&a.return&&a.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=[x.componentTypes.numberBox,x.componentTypes.tagCloud,x.componentTypes.toggleButton,x.componentTypes.datePicker,x.componentTypes.dateRange,x.componentTypes.multiDataList,x.componentTypes.multiDropdownList,x.componentTypes.multiList,x.componentTypes.singleDataList,x.componentTypes.singleDropdownList,x.componentTypes.singleList,x.componentTypes.dynamicRangeSlider,x.componentTypes.multiDropdownRange,x.componentTypes.multiRange,x.componentTypes.rangeSlider,x.componentTypes.ratingsFilter,x.componentTypes.singleDropdownRange,x.componentTypes.singleRange,x.componentTypes.treeList],o=[x.componentTypes.dateRange,x.componentTypes.dynamicRangeSlider,x.componentTypes.rangeSlider,x.componentTypes.rangeInput,x.componentTypes.ratingsFilter],i=[x.componentTypes.singleRange,x.componentTypes.singleDropdownRange,x.componentTypes.multiRange,x.componentTypes.multiDropdownRange];function s(e,t){return e+"="+t.start+"~"+t.end}function a(e,t){var n=t.label,r=t.value,a=t.componentType,u=n||e;return o.includes(a)?u+"="+r[0]+"~"+r[1]:i.includes(a)?Array.isArray(r)?r.map((function(e){return s(u,e)})).join():s(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=a,t.parseRangeObject=s,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 a(t[0],t[1])})).join():null}}));r(Q);Q.parseCustomEvents,Q.parseRangeObject,Q.parseFilterValue,Q.rangeObjectComponents,Q.rangeComponents,Q.filterComponents,Q.defaultAnalyticsConfig;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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{analyticsConfig:Q.defaultAnalyticsConfig},t=arguments[1];if(t.type===_.ADD_CONFIG)return n({},e,{analyticsConfig:n({},Q.defaultAnalyticsConfig,t.analyticsConfig)});if(t.type===_.UPDATE_ANALYTICS_CONFIG)return n({},e,{analyticsConfig:n({},e.analyticsConfig,t.analyticsConfig)});if(t.type===_.UPDATE_CONFIG)return n({},e,t.config);return e}}));r(V);var D=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===_.ADD_APPBASE_REF)return t.appbaseRef;return e}}));r(D);var F=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===_.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===_.REMOVE_COMPONENT){e[t.component];var s=r(e,[t.component]);return s}return e}}));r(F);var 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];if(t.type===_.LOG_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}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===_.LOG_COMBINED_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}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];switch(t.type){case _.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 _.SET_VALUES:var s=t.componentsValues?Object.keys(t.componentsValues):[];if(s.length){var a={};return s.forEach((function(r){a[r]=n({},e[r],{value:t.componentsValues[r]})})),n({},e,a)}return e;case _.PATCH_VALUE:return n({},e,o({},t.component,n({},e[t.component],t.payload)));case _.CLEAR_VALUES:var u={};return t.resetValues&&Object.keys(t.resetValues).forEach((function(r){u[r]=n({},e[r],{value:t.resetValues[r]})})),Array.isArray(t.clearAllBlacklistComponents)&&Object.keys(e).forEach((function(n){t.clearAllBlacklistComponents.includes(n)&&(u[n]=e[n])})),u;case _.REMOVE_COMPONENT:e[t.component];var l=r(e,[t.component]);return l;case _.RESET_TO_DEFAULT:return n({},e,t.defaultValues);default:return e}}})),z=r(q),B=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 _.SET_INTERNAL_VALUE:return n({},e,o({},t.component,{value:t.value,componentType:t.componentType,category:t.category,meta:t.meta}));case _.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 _.RESET_TO_DEFAULT:return n({},e,t.defaultValues);case _.REMOVE_COMPONENT:e[t.component];var s=r(e,[t.component]);return s;default:return e}}}));r(B);var H=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===_.SET_LOADING){var i,s=e[t.component+"_active"]||0;return t.isLoading?s+=1:s&&(s-=1),n({},e,(o(i={},t.component,t.isLoading),o(i,t.component+"_active",s),i),t.isLoading?o({},t.component+"_timestamp",(new Date).getTime()):null)}if(t.type===_.REMOVE_COMPONENT){e[t.component],e[t.component+"_active"];var a=r(e,[t.component,t.component+"_active"]);return a}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===_.SET_ERROR)return n({},e,o({},t.component,t.error));if(t.type===_.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};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===_.SET_TIMESTAMP)return n({},e,o({},t.component,t.timestamp));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(W);var Z=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===_.SET_HEADERS)return t.headers;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===_.SET_MAP_DATA)return n({},e,o({},t.componentId,{query:t.query,persistMapQuery:t.persistMapQuery}));if(t.type===_.SET_MAP_RESULTS)return n({},e,o({},t.componentId,n({},e[t.componentId],t.payload)));if(t.type===_.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===_.SET_QUERY_LISTENER)return n({},e,o({},t.component,{onQueryChange:t.onQueryChange,onError:t.onError}));if(t.type===_.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};t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1];switch(t.type){case _.SET_VALUE:return o.includes(t.componentType)?{searchValue:t.value,searchId:null}:e;case _.SET_SEARCH_ID:return n({},e,{searchId:t.searchId});case _.SET_SUGGESTIONS_SEARCH_VALUE:return n({},e,{suggestionsSearchValue:t.value,suggestionsSearchId:null});case _.SET_SUGGESTIONS_SEARCH_ID:return n({},e,{suggestionsSearchId:t.searchId});case _.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=[x.componentTypes.dataSearch,x.componentTypes.categorySearch]}));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];if(t.type===_.SET_PROMOTED_RESULTS)return n({},e,o({},t.component,t.results.map((function(e){return n({},e,{_promoted:!0})}))));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}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){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===_.SET_CUSTOM_DATA)return n({},e,o({},t.component,t.data));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}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){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===_.SET_DEFAULT_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(te);var ne=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===_.SET_CUSTOM_QUERY)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(ne);var 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){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 _.SET_PROPS:return n({},e,o({},t.component,t.options));case _.UPDATE_PROPS:return n({},e,o({},t.component,n({},e[t.component],t.options)));case _.REMOVE_PROPS:case _.REMOVE_COMPONENT:e[t.component];var i=r(e,[t.component]);return i;default: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,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===_.UPDATE_AGGS){if(t.append){var s=Object.keys(e[t.component])[0],a=t.aggregations[s],u=a.buckets,l=i(a,["buckets"]);return n({},e,r({},t.component,r({},s,n({buckets:[].concat(o(e[t.component][s].buckets),o(u))},l))))}return n({},e,r({},t.component,t.aggregations))}if(t.type===_.REMOVE_COMPONENT){e[t.component];var c=i(e,[t.component]);return c}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,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===_.UPDATE_COMPOSITE_AGGS){var s=Object.values(t.aggregations)&&Object.values(t.aggregations)[0],a=Object.keys(t.aggregations)[0];if(!s)return e;var u=[];s.buckets&&Array.isArray(s.buckets)&&(u=s.buckets);var l=u.map((function(e){var t=e.doc_count,r=e.key,o=e[a],s={},u={};if(o&&o.hits){var l=o.hits.hits[0];u=l._source,s=i(l,["_source"])}return n({_doc_count:t,_key:"string"==typeof r?r:r[a],top_hits:o},s,u)}));return n({},e,r({},t.component,t.append?[].concat(o(e[t.component]),o(l)):l))}return e}})),se=r(ie),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===_.SET_APPLIED_SETTINGS)return n({},e,r({},t.component,t.data));return e}}));r(ae);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===_.SET_CUSTOM_HIGHLIGHT_OPTIONS)return n({},e,o({},t.component,t.data));if(t.type===_.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});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===_.SET_RAW_DATA)return n({},e,o({},t.component,t.response));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}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};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===_.SET_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(ce);var de=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===_.SET_DEFAULT_POPULAR_SUGGESTIONS)return n({},e,r({},t.component,t.suggestions));return e}}));r(de);var pe=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===_.SET_QUERY_TO_HITS)return n({},e,o({},t.component,t.query));if(t.type===_.REMOVE_COMPONENT){e[t.component];var i=r(e,[t.component]);return i}return e}}));r(pe);var he=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===_.RECENT_SEARCHES_SUCCESS)return{error:null,data:t.data};if(t.type===_.RECENT_SEARCHES_ERROR)return{error:t.error};return e}}));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.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,t=arguments[1],o=t.type,i=t.loading,s=t.loaded,a=t.error;if(o===_.SET_GOOGLE_MAP_SCRIPT_LOADING)return n({},r,{loading:i});if(o===_.SET_GOOGLE_MAP_SCRIPT_LOADED)return n({},r,{loaded:s});if(o===_.SET_GOOGLE_MAP_SCRIPT_ERROR)return n({},r,{error:a});return e};var r={loading:!1,loaded:!1,error:null}}));r(fe);var ge=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=be(w),r=be($),o=be(E),i=be(P),s=be(k),a=be(A),u=be(V),l=be(D),c=be(F),d=be(N),p=be(U),h=be(q),f=be(B),g=be(H),m=be(G),y=be(W),v=be(Z),C=be(K),O=be(Y),_=be(X),S=be(J),T=be(ee),I=be(te),R=be(ne),x=be(re),L=be(oe),M=be(ie),j=be(ae),Q=be(ue),z=be(le),se=be(ce),ge=be(de),me=be(pe),ye=be(he),ve=be(fe);function be(e){return e&&e.__esModule?e:{default:e}}t.default=(0,b.combineReducers)({components:n.default,customQueries:R.default,defaultQueries:I.default,customHighlightOptions:Q.default,settings:j.default,watchMan:r.default,queryList:i.default,queryOptions:a.default,dependencyTree:o.default,appbaseRef:l.default,config:u.default,hits:c.default,promotedResults:S.default,customData:T.default,aggregations:L.default,compositeAggregations:M.default,queryLog:d.default,combinedLog:p.default,selectedValues:h.default,internalValues:f.default,isLoading:g.default,error:m.default,timestamp:y.default,headers:v.default,mapData:C.default,queryListener:O.default,analytics:_.default,props:x.default,rawData:z.default,querySuggestions:se.default,defaultPopularSuggestions:ge.default,queryToHits:me.default,recentSearches:ye.default,urlValues:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e},googleMapScriptStatus:ve.default,lastUsedAppbaseQuery:s.default})}));r(ge);var me=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(me);var ye=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(ye);var ve=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=a;var r,o=(r=ye)&&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 s=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 a(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,s={};if(r){var a=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(a)+")\\w+",p=new RegExp(d,"i"),h=p.exec(c);if(h||(d="^("+u(a)+")",h=(p=new RegExp(d,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(a.length).split(" ").slice(0,o+1).join(" "),g=a+'<mark class="highlight">'+f+"</mark>",m=""+a+f;return s[g]?e:(s[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 a(e).toLowerCase().includes(a(t))})))&&!b.includes(e)||r._promoted){var s={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({},s,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("."),a=t[i[0]];if(t[n]){var u=t[n],l=s(u);if(l&&"string"==typeof l)return O(l,t,r)}if(Array.isArray(a)&&(a.length>1&&(a=a.filter((function(e){return e&&e.toString().toLowerCase().includes(o.toString().toLowerCase())}))),a=a[0]),a)if(i.length>1){var c=n.substring(i[0].length+1);e(a,c,r)}else{var d=s(a);if(d)return O(d,t,r)}}return!1}(e,t)}))}))};if(_(),v.length<r.length&&!C&&y&&(C=!0,_()),f){var S=l({suggestions:v,currentValue:o,wordsToShowAfterHighlight:m});v=S}if(p){var w={},$=[];return v.forEach((function(e){e.source&&e.source._id&&(w[e.source._id]||($.push(e),w[e.source._id]=!0))})),$}return v}}));r(ve);var be=ve.replaceDiacritics,Ce=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformRequestUsingEndpoint=t.flatten=t.saveDataAsFile=t.transformTreeListLocalStateIntoQueryComptaibleFormat=t.transformRawTreeListData=t.recLookup=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,s=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(a(r),[i]))}else if("string"==typeof t[o]){var s=p(d(o),n[t[o]]);s&&Object.keys(s).length&&(r=[].concat(a(r),[s]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&Object.keys(u).length&&(r=[].concat(a(r),[u]))}})),Array.isArray(r)&&r.length)return{bool:{must:r}};if(r&&Object.keys(r).length)return r;return null}(t[e],r),s=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:s}},t.pushToAndClause=function e(t,r){var o=n({},t);if(o.and)return Array.isArray(o.and)?(o.and=[].concat(a(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 s=n(o);s instanceof Promise?s.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,s=e.promotedResults;return n({numberOfResults:t},r>0?{numberOfPages:Math.ceil(t/r)}:null,{time:o||0,hidden:i,promoted:s?s.length:0})},t.extractFieldsFromSource=O,t.normalizeDataField=_,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,s=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(a(c),a(l))}var p=(0,o.default)({fields:u,suggestions:l,currentValue:t.toLowerCase(),showDistinctSuggestions:n.showDistinctSuggestions,enablePredictiveSuggestions:s,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)},t.setDeep=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.reduce((function(e,o,i){return r&&"object"!=typeof e[o]&&i!==t.length-1?(e[o]={},e[o]):i===t.length-1?(e[o]=n,n):"object"==typeof e[o]?e[o]:{}}),e)};var r=i(me),o=i(ve);function i(e){return e&&e.__esModule?e:{default:e}}function s(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 a(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(a(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=s(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=s(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]||{},s=i.hidden,a=i.total,u=i.time;t[o]=n({},t[o],{resultStats:n({},t[o].resultStats,{numberOfResults:a,time:u,promoted:r[o]&&r[o].length,hidden:s||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,s=e.props,a=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(s),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(a,"hits"),y(l,"aggregations"),y(c,"isLoading"),y(d,"error"),y(p,"promotedData"),y(h,"settings"),y(f,"customData"),y(g,"rawData"),v(a,m,p)),y(i,"react"),m},t.updateInternalQuery=function(e,t,r,o,i,s){var a=o.defaultQuery,u=void 0,c=i;if(a){var d=a(r,o);c=(d||{}).query,u=y(d),l(e,o,r)}c?(o.setQueryOptions(e,n({},u,t||i)),o.updateQuery(n({componentId:e,query:c,value:r},s))):o.setQueryOptions(e,n({},u,t||i))};var b=function(e,t){var n={},r=e.defaultQuery;if(r){var o=r(t,e);if(o){o.query;var i=s(o,["query"]);i&&(n=i)}}return n};t.extractQueryFromDefaultQuery=b;t.getAggsQuery=function(e,t,r){var o=t,i=r.dataField,s=r.size,a=r.sortBy,l=r.showMissing,c=r.missingLabel;return o.size=0,o.aggs=u({},i,{terms:n({field:i,size:s,order:h(a||"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,s=void 0===i?null:i,a=e.showTopHits,l=void 0!==a&&a,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},s)},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],s=r?r+"."+i:i;return Number.isNaN(parseInt(i,10))||(s=r||i),t[i]&&"object"==typeof t[i]?n({},o,e(t[i],s)):n({},o,u({},s,!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 S=t.queryFormatMillisecondsMap={minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629746e3,quarter:7889238e3,year:31556952e3},w=(t.getCalendarIntervalErrorMessage=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"minute",n=Object.keys(S),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(S)[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 w(n)?n(e):w(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 w(n)||w(t)},t.recLookup=function e(t,n){try{var r=n.split(".");return 1===r.length?t[r[0]]:e(t[r[0]],r.slice(1).join("."))}catch(e){return!1}};t.transformRawTreeListData=function e(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[];if(t instanceof Object){var s=Object.keys(t);s.forEach((function(s){Array.isArray(t[s].buckets)&&t[s].buckets.forEach((function(t){i.push(n({key:t.key,count:t.doc_count,level:o},t[r[o+1]]instanceof Object?{list:e(u({},r[o+1],t[r[o+1]]),r,o+1)}:{}))}))}))}return i},t.transformTreeListLocalStateIntoQueryComptaibleFormat=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=[];return t instanceof Object&&(Object.keys(t).length?Object.keys(t).forEach((function(o){t[o]instanceof Object&&r.push.apply(r,a(e(t[o],n?n+" > "+o:o))),!0===t[o]&&r.push(n?n+" > "+o:o)})):n&&r.push(n)),r},t.saveDataAsFile=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"exportedData",t=arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"csv",r=t,o="text/"+n;"json"===n&&(r=JSON.stringify(r,0,4));var i=new Blob([r],{type:o}),s=document.createElement("a");s.download=e+"."+n,s.href=window.URL.createObjectURL(i),s.dataset.downloadurl=[o,s.download,s.href].join(":");var a=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!0});s.dispatchEvent(a),s.remove()},t.flatten=function(e){var t={};return function e(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(Object(n)!==n)t[r]=n;else if(Array.isArray(n))t[r]=JSON.stringify(n);else{var o=!0;Object.keys(n).forEach((function(t){o=!1,e(n[t],r?r+"."+t:t)})),o&&r&&(t[r]={})}}(e),t};t.transformRequestUsingEndpoint=function(e,t){if(t instanceof Object){var r=t.headers,o=void 0===r?{}:r,i=t.body,a=s(t,["headers","body"]);return n({},e,a,{headers:n({},e.headers,o)},i instanceof Object?{body:JSON.stringify(i)}:{})}return e}}));r(Ce);Ce.transformRequestUsingEndpoint,Ce.flatten,Ce.saveDataAsFile,Ce.transformTreeListLocalStateIntoQueryComptaibleFormat,Ce.transformRawTreeListData,Ce.recLookup,Ce.hasCustomRenderer,Ce.getComponent,Ce.isFunction,Ce.getCalendarIntervalErrorMessage,Ce.queryFormatMillisecondsMap,Ce.featuredSuggestionsActionTypes;var Oe=Ce.suggestionTypes,_e=(Ce.getTopSuggestions,Ce.withClickIds),Se=(Ce.getCompositeAggsQuery,Ce.getAggsQuery,Ce.extractQueryFromDefaultQuery,Ce.updateInternalQuery,Ce.getSearchState,Ce.extractQueryFromCustomQuery),we=Ce.getOptionsForCustomQuery,$e=(Ce.getOptionsFromQuery,Ce.parseHits,Ce.handleA11yAction,Ce.getInnerKey,Ce.getClassName,Ce.checkSomePropChange,Ce.checkPropChange,Ce.updateDefaultQuery,Ce.updateCustomQuery,Ce.isEqual),Ee=(Ce.compareQueries,Ce.debounce,Ce.getQueryOptions),Te=Ce.buildQuery,Pe=Ce.pushToAndClause,Ie=(Ce.checkValueChange,Ce.getAggsOrder,Ce.formatDate,Ce.getResultStats,Ce.extractFieldsFromSource,Ce.normalizeDataField,Ce.handleOnSuggestions,Ce.isValidDateRangeQueryFormat,Ce.setDeep,o((function(e,t){function n(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{type:_.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:_.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:_.UPDATE_COMPOSITE_AGGS,component:e,aggregations:t,append:n}},t.updateHits=r,t.saveQueryToHits=function(e,t){return{type:_.SET_QUERY_TO_HITS,component:e,query:t}},t.mockDataForTesting=function(e,t){return function(o){t.hasOwnProperty("error")&&o((0,ke.setError)(e,t.error)),t.hasOwnProperty("aggregations")&&o(n(e,t.aggregations)),t.hasOwnProperty("hits")&&o(r(e,t,t.time||void 0))}}})));r(Ie);Ie.updateAggs,Ie.updateCompositeAggs,Ie.updateHits,Ie.saveQueryToHits,Ie.mockDataForTesting;var ke=o((function(e,t){function n(e,t){return{type:_.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:_.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:_.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:_.SET_DEFAULT_POPULAR_SUGGESTIONS,suggestions:e,component:t}}function s(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:_.SET_CUSTOM_DATA,data:e,component:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.setRawData=n,t.setLoading=function(e,t){return{type:_.SET_LOADING,component:e,isLoading:t}},t.setError=function(e,t){return{type:_.SET_ERROR,component:e,error:t}},t.setTimestamp=function(e,t){return{type:_.SET_TIMESTAMP,component:e,timestamp:t}},t.setSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:_.SET_SEARCH_ID,searchId:e}},t.setSuggestionsSearchId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:_.SET_SUGGESTIONS_SEARCH_ID,searchId:e}},t.setQuery=function(e,t){return{type:_.SET_QUERY,component:e,query:t}},t.setCustomQuery=function(e,t){return{type:_.SET_CUSTOM_QUERY,component:e,query:t}},t.setDefaultQuery=function(e,t){return{type:_.SET_DEFAULT_QUERY,component:e,query:t}},t.setCustomHighlightOptions=function(e,t){return{type:_.SET_CUSTOM_HIGHLIGHT_OPTIONS,component:e,data:t}},t.updateQueryOptions=function(e,t){return{type:_.SET_QUERY_OPTIONS,component:e,options:t}},t.logQuery=function(e,t){return{type:_.LOG_QUERY,component:e,query:t}},t.logCombinedQuery=function(e,t){return{type:_.LOG_COMBINED_QUERY,component:e,query:t}},t.setHeaders=function(e){return{type:_.SET_HEADERS,headers:e}},t.setPromotedResults=r,t.setPopularSuggestions=o,t.setDefaultPopularSuggestions=i,t.setCustomData=s,t.setAppliedSettings=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments[1];return{type:_.SET_APPLIED_SETTINGS,data:e,component:t}},t.setQueryListener=function(e,t,n){return{type:_.SET_QUERY_LISTENER,component:e,onQueryChange:t,onError:n}},t.setGoogleMapScriptLoading=function(e){return{type:_.SET_GOOGLE_MAP_SCRIPT_LOADING,loading:e}},t.setGoogleMapScriptLoaded=function(e){return{type:_.SET_GOOGLE_MAP_SCRIPT_LOADED,loaded:e}},t.setGoogleMapScriptError=function(e){return{type:_.SET_GOOGLE_MAP_SCRIPT_ERROR,error:e}},t.resetStoreForComponent=function(e){return function(t){t(n(e,null)),t(s(null,e)),t(r([],e)),t(o([],e)),t(i([],e)),t((0,Ie.updateAggs)(e,null)),t((0,Ie.updateCompositeAggs)(e,{})),t((0,Ie.updateHits)(e,{hits:[],total:0},0))}},t.setLastUsedAppbaseQuery=function(e){return{type:_.SET_APPBASE_QUERY,query:e}}}));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,ke.setLastUsedAppbaseQuery;var Ae=o((function(e){
|
|
2
2
|
/**
|
|
3
3
|
* @preserve XDate v@VERSION
|
|
4
4
|
* Docs & Licensing: http://arshaw.com/xdate/
|
|
5
5
|
*/
|
|
6
|
-
!function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],a=["Years","Months","Days"],s=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,d=p.prototype;function p(){return h(this instanceof p?this:new p,arguments)}function h(e,n){var r,o=n.length;if(Q(n[o-1])&&(r=n[--o],n=j(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof p?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):L(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=p.parsers,a=0;a<i.length;a++)if(o=i[a](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=T(e[0]));else e[0]=new t;return Q(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?T(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,a=R(I,e[0],o),s=R(E,e[0],o),u=!1;2==r.length&&Q(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:a(1),s(t,r),u&&a(1)!=i&&(s(1,[a(1)-1]),s(2,[A(a(0),a(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=p(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=s[i],o+=I(t,!1,i)-I(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var a=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-a)/864e5)+(t-u-(e-a))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),a=new t(l(r,o,i)),s=_(b(r,o,i)),n.floor(n.round((a-s)/864e5)/7)+1;var r,o,i,a,s}function b(e,n,r){var o=new t(l(e,n,r));return o<_(e)?e-1:o>=_(e+1)?e+1:e}function _(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function w(e,t,n,r){var o=R(I,e,r),i=R(E,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var a=_(n);r||(a=T(a)),e.setTime(a.getTime()),i(2,[o(2)+7*(t-1)])}function O(e,t,n,r,o){var i=p.locales,a=i[p.defaultLocale]||{},s=R(I,e,o);return n=(L(n)?i[n]:n)||{},C(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(s(t));return s(e)}),(function(e){return n[e]||a[e]}),o)}function C(e,t,n,r,o){for(var i,a,s="";i=t.match(u);)s+=t.substr(0,i.index),i[1]?s+=S(e,i[1],n,r,o):i[3]?(a=C(e,i[4],n,r,o),parseInt(a.replace(/\D/g,""),10)&&(s+=a)):s+=i[7]||"'",t=t.substr(i.index+i[0].length);return s+t}function S(e,t,n,r,o){for(var i,a=t.length,s="";a>0;)void 0!==(i=P(e,t.substr(0,a),n,r,o))?(s+=i,a=(t=t.substr(a)).length):a--;return s+t}function P(e,t,r,o,i){var a=p.formatters[t];if(L(a))return C(e,a,r,o,i);if("function"==typeof a)return a(e,i||!1,o);switch(t){case"fff":return V(r(6),3);case"s":return r(5);case"ss":return V(r(5));case"m":return r(4);case"mm":return V(r(4));case"h":return r(3)%12||12;case"hh":return V(r(3)%12||12);case"H":return r(3);case"HH":return V(r(3));case"d":return r(2);case"dd":return V(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return V(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return k(r,o).substr(0,1).toLowerCase();case"tt":return k(r,o).toLowerCase();case"T":return k(r,o).substr(0,1);case"TT":return k(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),a=n.abs(r)%60,s=i;"zz"==t?s=V(i):"zzz"==t&&(s=V(i)+":"+V(a));return o+s}(e,t);case"w":return v(r);case"ww":return V(v(r));case"S":var s=r(2);return s>10&&s<20?"th":["st","nd","rd"][s%10-1]||"th"}}function k(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function $(e){return!isNaN(e[0].getTime())}function I(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function E(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function T(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function A(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function x(e){return function(){return e.apply(void 0,[this].concat(j(arguments)))}}function R(e){var t=j(arguments,1);return function(){return e.apply(void 0,t.concat(j(arguments)))}}function j(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function M(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function L(e){return"string"==typeof e}function Q(e){return"boolean"==typeof e}function V(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}d.length=1,d.splice=r.prototype.splice,d.getUTCMode=x(f),d.setUTCMode=x(g),d.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},M(i,(function(e,t){d["get"+e]=function(){return I(this[0],f(this),t)},8!=t&&(d["getUTC"+e]=function(){return I(this[0],!0,t)}),7!=t&&(d["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(d["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},d["add"+(a[t]||e)]=function(e,r){return function e(t,r,o,a){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,a||!1),u!=o&&r<6&&e(t,r+1,(o-u)*s[r],a)}(this,t,e,r),this},d["diff"+(a[t]||e)]=function(e){return y(this,e,t)}))})),d.getWeek=function(){return v(R(I,this,!1))},d.getUTCWeek=function(){return v(R(I,this,!0))},d.setWeek=function(e,t){return w(this,e,t,!1),this},d.setUTCWeek=function(e,t){return w(this,e,t,!0),this},d.addWeeks=function(e){return this.addDays(7*Number(e))},d.diffWeeks=function(e){return y(this,e,2)/7},p.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=T(i)),r.setTime(i.getTime())}}],p.parse=function(e){return+p(""+e)},d.toString=function(e,t,n){return void 0!==e&&$(this)?O(this,e,t,n,f(this)):this[0].toString()},d.toUTCString=d.toGMTString=function(e,t,n){return void 0!==e&&$(this)?O(this,e,t,n,!0):this[0].toUTCString()},d.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},p.defaultLocale="",p.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},p.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},M(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){d[e]=function(){return this[0][e]()}})),d.setTime=function(e){return this[0].setTime(e),this},d.valid=x($),d.clone=function(){return new p(this)},d.clearTime=function(){return this.setHours(0,0,0,0)},d.toDate=function(){return new t(this[0].getTime())},p.now=function(){return(new t).getTime()},p.today=function(){return(new p).clearTime()},p.UTC=l,p.getDaysInMonth=A,e.exports&&(e.exports=p)}(Date,Math,Array)})),me=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(me);var ye=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)}var o=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 i(e){for(var t=e?String(e):"",n=[/[\300-\306]/g,/[\340-\346]/g,/[\310-\313]/g,/[\350-\353]/g,/[\314-\317]/g,/[\354-\357]/g,/[\322-\330]/g,/[\362-\370]/g,/[\331-\334]/g,/[\371-\374]/g,/[\321]/g,/[\361]/g,/[\307]/g,/[\347]/g],r=["A","a","E","e","I","i","O","o","U","u","N","n","C","c"],o=0;o<n.length;o+=1)t=t.replace(n[o],r[o]);return t}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var s=function(e){var t=e.suggestions,o=e.currentValue,i=e.wordsToShowAfterHighlight,s={};if(o){var u=o.trim();return t.reduce((function(e,t){var o=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(o,"text/html").documentElement.textContent,d="^("+a(u)+")\\w+",p=new RegExp(d,"i"),h=p.exec(c);if(h||(d="^("+a(u)+")",h=(p=new RegExp(d,"i")).exec(c)),h){var f=c.slice(h.index,c.length).slice(u.length).split(" ").slice(0,i+1).join(" "),g=u+'<mark class="highlight">'+f+"</mark>",m=""+u+f;return s[g]?e:(s[g]=1,[].concat(r(e),[n({},l,{label:g,value:m,isPredictiveSuggestion:!0})]))}return e}),[])}return[]};t.default=function(e){var t=e.fields,a=e.suggestions,u=e.currentValue,l=e.suggestionProperties,c=void 0===l?[]:l,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=[],_=!1,w=function(e,t,o){if((_||u.trim().split(" ").some((function(t){return i(e).toLowerCase().includes(i(t))})))&&!b.includes(e)||o._promoted){var a={label:e,value:e,source:o},s={};Array.isArray(c)&&c.length>0&&c.forEach((function(e){t.hasOwnProperty(e)&&(s=n({},s,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,s);if(b=[].concat(r(b),[e]),v=[].concat(r(v),[l]),p)return!0}return!1},O=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("."),a=t[i[0]];if(Array.isArray(a)&&(a.length>1&&(a=a.filter((function(e){return e&&e.toString().toLowerCase().includes(u.toString().toLowerCase())}))),a=a[0]),a)if(i.length>1){var s=n.substring(i[0].length+1);e(a,s,r)}else{var l=o(a);if(l)return w(l,t,r)}}return!1},C=function(){p?a.forEach((function(e){t.some((function(t){return O(e,t)}))})):a.forEach((function(e){t.forEach((function(t){O(e,t)}))}))};if(C(),v.length<a.length&&!_&&y&&(_=!0,C()),f){var S=s({suggestions:v,currentValue:u,wordsToShowAfterHighlight:m});v=S}return v}}));r(ye);var ve=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getTopSuggestions=t.withClickIds=t.getCompositeAggsQuery=t.getAggsQuery=t.extractQueryFromDefaultQuery=t.updateInternalQuery=t.getSearchState=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.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]:null})).filter((function(e){return!!e})));i&&(r=[].concat(s(r),[i]))}else if("string"==typeof t[o]){var a=p(d(o),n[t[o]]);a&&(r=[].concat(s(r),[a]))}else if("object"==typeof t[o]&&null!==t[o]){var u=e(t[o],n);u&&(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_seconds":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,hidden:i,promoted:a&&a.length})},t.extractFieldsFromSource=w,t.handleOnSuggestions=function(e,t,n){var r=n.parseSuggestion,i=n.promotedResults,a=n.enablePredictiveSuggestions,u=void 0;n.dataField?u=Array.isArray(n.dataField)?n.dataField:[n.dataField]:e&&Array.isArray(e)&&e.length>0&&e[0]&&e[0]._source&&(u=w(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};var r=i(me),o=i(ye);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"}:{_term: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={};e._updated?r._updated=e._updated:e._deleted&&(r._deleted=e._deleted);var o=n({},e);return t&&(o=g(e)),Object.keys(o).filter((function(e){return"_source"!==e})).reduce((function(e,t){return e[t]=o[t],e}),n({highlight:o.highlight||{}},o._source,r))}))),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};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.getOptionsFromQuery=y;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 _=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 w(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 parseInt(i,10)&&(a=r||i),"object"==typeof t[i]?n({},o,e(t[i],a)):n({},o,u({},a,!0))}),[])}(e);return Object.keys(t)}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 _(i)}}));r(ve);ve.getTopSuggestions,ve.withClickIds,ve.getCompositeAggsQuery,ve.getAggsQuery,ve.extractQueryFromDefaultQuery,ve.updateInternalQuery,ve.getSearchState,ve.getOptionsFromQuery,ve.parseHits,ve.handleA11yAction,ve.getInnerKey,ve.getClassName,ve.checkSomePropChange,ve.checkPropChange,ve.updateDefaultQuery,ve.updateCustomQuery;var be=ve.isEqual,_e=(ve.debounce,ve.getQueryOptions),we=ve.buildQuery,Oe=ve.pushToAndClause,Ce=(ve.checkValueChange,ve.getAggsOrder,ve.formatDate,ve.getResultStats,ve.extractFieldsFromSource,ve.handleOnSuggestions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=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.flatReactProp=S;var o,i=(o=ge)&&o.__esModule?o:{default:o};function a(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 s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u=t.componentToTypeMap=(s(n={},E.componentTypes.reactiveList,E.queryTypes.search),s(n,E.componentTypes.dataSearch,E.queryTypes.search),s(n,E.componentTypes.categorySearch,E.queryTypes.search),s(n,E.componentTypes.singleList,E.queryTypes.term),s(n,E.componentTypes.multiList,E.queryTypes.term),s(n,E.componentTypes.singleDataList,E.queryTypes.term),s(n,E.componentTypes.singleDropdownList,E.queryTypes.term),s(n,E.componentTypes.multiDataList,E.queryTypes.term),s(n,E.componentTypes.multiDropdownList,E.queryTypes.term),s(n,E.componentTypes.tagCloud,E.queryTypes.term),s(n,E.componentTypes.toggleButton,E.queryTypes.term),s(n,E.componentTypes.numberBox,E.queryTypes.term),s(n,E.componentTypes.datePicker,E.queryTypes.range),s(n,E.componentTypes.dateRange,E.queryTypes.range),s(n,E.componentTypes.dynamicRangeSlider,E.queryTypes.range),s(n,E.componentTypes.singleDropdownRange,E.queryTypes.range),s(n,E.componentTypes.multiDropdownRange,E.queryTypes.range),s(n,E.componentTypes.singleRange,E.queryTypes.range),s(n,E.componentTypes.multiRange,E.queryTypes.range),s(n,E.componentTypes.rangeSlider,E.queryTypes.range),s(n,E.componentTypes.ratingsFilter,E.queryTypes.range),s(n,E.componentTypes.rangeInput,E.queryTypes.range),s(n,E.componentTypes.geoDistanceDropdown,E.queryTypes.geo),s(n,E.componentTypes.geoDistanceSlider,E.queryTypes.geo),s(n,E.componentTypes.reactiveMap,E.queryTypes.geo),n),l=[E.componentTypes.multiRange,E.componentTypes.multiDropdownRange],c=[E.componentTypes.dateRange,E.componentTypes.datePicker],d=[E.componentTypes.categorySearch,E.componentTypes.dataSearch],p=[E.componentTypes.singleList,E.componentTypes.multiList,E.componentTypes.singleDropdownList,E.componentTypes.multiDropdownList],h=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},f=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},g=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},m=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},y=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},v=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return d.includes(e)},b=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===E.componentTypes.multiDataList||e===E.componentTypes.singleDataList},_=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p.includes(e)},w=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var r=t.type?t.type:u[t.componentType];return v(t.componentType)||t.dataField?{id:e,type:r,dataField:h(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:h(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:h(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig}:null}return null},O=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},C=t.extractPropsFromState=function(e,t,n){var o=e.props[t];if(!o)return null;var a=u[o.componentType],s=e.selectedValues[t]||e.internalValues[t],d=null!=s?s.value:void 0,p=o.queryFormat,h=o.interval,f=u[o.componentType],w=o.dataField,C=void 0,S=void 0,P=o.from,k=o.aggregationSize;if(a===E.queryTypes.term){if(o.showLoadMore&&_(o.componentType)&&(S=!0),null!=d&&"object"==typeof d&&d.value)d=d.value;else if(Array.isArray(d)){var $=[];d.forEach((function(e){null!=e&&"object"==typeof e&&e.value?$.push(e.value):$.push(e)})),d=$}o.size&&(k=o.size)}if(a===E.queryTypes.range){if(Array.isArray(d))d=l.includes(o.componentType)?d.map((function(e){return{start:e.start,end:e.end}})):{start:d[0],end:d[1]};else if(o.showHistogram){var I=g(t),T=e.internalValues[I];if(!T){var A=m(t);T=e.internalValues[A]}T&&Array.isArray(T.value)&&(d={start:T.value[0],end:T.value[1]},h=O(h,d))}y(t)?C=["min","max"]:o.showHistogram&&(C=["histogram"]),c.includes(o.componentType)&&(p="or",d&&("string"==typeof d?d={start:(0,ve.formatDate)(new i.default(d).addHours(-24),o),end:(0,ve.formatDate)(new i.default(d),o)}:Array.isArray(d)&&(d=d.map((function(e){return{start:(0,ve.formatDate)(new i.default(e).addHours(-24),o),end:(0,ve.formatDate)(new i.default(e),o)}})))))}if(a===E.queryTypes.geo){d=void 0;var x=e.selectedValues[t]||e.internalValues[t]||e.internalValues[g(t)];x&&x.meta&&(x.meta.distance&&x.meta.coordinates&&(d={distance:x.meta.distance,location:x.meta.coordinates},o.unit&&(d.unit=o.unit)),x.meta.mapBoxBounds&&x.meta.mapBoxBounds.top_left&&x.meta.mapBoxBounds.bottom_right&&(d={geoBoundingBox:{topLeft:x.meta.mapBoxBounds.top_left[1]+", "+x.meta.mapBoxBounds.top_left[0],bottomRight:x.meta.mapBoxBounds.bottom_right[1]+", "+x.meta.mapBoxBounds.bottom_right[0]}}))}if(o.componentType===E.componentTypes.numberBox&&("exact"===p?f="term":(f="range",d="lte"===p?{end:d,boost:2}:{start:d,boost:2}),p="or"),o.componentType===E.componentTypes.reactiveComponent&&(f="term",w="reactive_component_field",d=void 0),v(o.componentType)&&!d&&(d=""),b(o.componentType)){var R=o.data,j=[];d&&Array.isArray(d)?j=d:d&&"string"==typeof d&&(j=[d]);var M=[];j.length&&R&&Array.isArray(R)&&j.forEach((function(e){var t=R.find((function(t){return t.label===e}));t&&t.value&&M.push(t.value)})),d=M.length?M:void 0}return o.componentType===E.componentTypes.reactiveList&&(d>0&&(P=(d-1)*(o.size||10)),d=void 0),r({},o,{aggregationSize:k,dataField:w,queryFormat:p,type:f,aggregations:C,interval:h,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:d,pagination:S,from:P},n)};function S(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(a(n),[t[r]]):Array.isArray(t[r])?n=[].concat(a(n),a(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r={},o=S(e.dependencyTree[t],t);return o.forEach((function(t){var o=e.props[t],i=o?v(o.componentType):null,a=e.customQueries[t];if((!f(t)||i)&&((e.selectedValues[t]||e.internalValues[t]||a)&&!r[t])){var s=!1;Array.isArray(n)&&n.includes(t)&&(s=!0);var u=w(t,C(e,t),s);u&&(r[t]=u)}})),r}})));r(Ce);var Se=Ce.getDependentQueries,Pe=Ce.extractPropsFromState,ke=(Ce.getValidInterval,Ce.getRSQuery),$e=(Ce.hasPaginationSupport,Ce.isComponentUsesLabelAsValue,Ce.isSearchComponent,Ce.isDRSRangeComponent,Ce.getHistogramComponentID,Ce.getInternalComponentID),Ie=(Ce.isInternalComponent,Ce.getNormalizedField,Ce.componentToTypeMap,Ce.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=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.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)};var r=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},o=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},i=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},a=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,i=void 0===r?null:r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},s=arguments[2],u=a(),l=u.queryListener;try{console.error(JSON.stringify(i))}catch(e){console.error(i)}n.forEach((function(e){o(a,e)&&(l[e]&&l[e].onError&&l[e].onError(i),s((0,he.setError)(e,i)),s((0,he.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,i=e.orderOfQueries,s=void 0===i?[]:i,u=e.appendToHits,l=void 0!==u&&u,c=e.appendToAggs,d=void 0!==c&&c,p=e.isInternalComponent,h=void 0!==p&&p,f=e.componentType,g=void 0===f?"":f,m=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},y=arguments[2],v=m(),b=v.config,_=v.internalValues,w=[E.componentTypes.dataSearch,E.componentTypes.categorySearch],O=h&&-1!==w.indexOf(g),C=t._headers?t._headers.get("X-Search-Id"):null;C&&y(O?(0,he.setSuggestionsSearchId)(C):(0,he.setSearchId)(C)),s.forEach((function(e){o(m,e)&&(t.settings&&y((0,he.setAppliedSettings)(t.settings,e)),r(t[e],b,e).then((function(r){if(r){var o=m().timestamp;if(void 0===o[e]||o[e]<t._timestamp){var i=r.promoted;if(i){var a=i.map((function(e){return n({},e.doc,{_position:e.position})}));y((0,he.setPromotedResults)(a,e))}else y((0,he.setPromotedResults)([],e));if(y((0,he.setRawData)(e,r)),y((0,he.setCustomData)(r.customData,e)),r.hits){y((0,he.setTimestamp)(e,t._timestamp)),y((0,fe.updateHits)(e,r.hits,r.took,r.hits&&r.hits.hidden,l));var s=(0,Ce.getInternalComponentID)(e);_[s]&&y((0,fe.saveQueryToHits)(e,_[s].value))}r.aggregations&&(y((0,fe.updateAggs)(e,r.aggregations,d)),y((0,fe.updateCompositeAggs)(e,r.aggregations,d)))}y((0,he.setLoading)(e,!1))}})).catch((function(e){a({orderOfQueries:s,error:e},m,y)})))}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,i=e.isSuggestionsQuery,s=void 0!==i&&i,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,d=void 0!==c&&c,p=e.appendToAggs,h=void 0!==p&&p,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(o(f,e)){var i=n._headers?n._headers.get("X-Search-Id"):null;i&&g(s?(0,he.setSuggestionsSearchId)(i):(0,he.setSearchId)(i));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),p=c.config,m=c.internalValues;r(u,p,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,he.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,he.setPromotedResults)(o,e):(0,he.setPromotedResults)([],e)),t.hits){g((0,he.setTimestamp)(e,n._timestamp)),g((0,fe.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,d));var i=(0,Ce.getInternalComponentID)(e);m[i]&&g((0,fe.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,fe.updateAggs)(e,t.aggregations,h)),g((0,fe.updateCompositeAggs)(e,t.aggregations,h)))}g((0,he.setLoading)(e,!1))})).catch((function(e){a({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],a=o&&o.value||"";return[{id:i(t),dataField:["key","key.autosuggest"],size:5,value:a,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:a,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:a,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:a,type:"phrase_prefix"}}]}}}}]}})));r(Ie);Ie.getSuggestionQuery;var Ee=Ie.isPropertyDefined,Te=(Ie.handleResponseMSearch,Ie.handleResponse,Ie.handleError,Ie.getQuerySuggestionsId,Ie.isComponentActive,Ie.handleTransformResponse,Ie.executeQueryListener,o((function(e,t){function n(e,t,n){return{type:_.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return function(a){if(a(n(e,t,r)),a((0,pe.setInternalValue)((0,Ce.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){a((0,je.executeQuery)(e,!1,!0))}}}})));r(Te);Te.updateMapData,Te.setMapData;var Ae=o((function(e,t){var r=function(e){function t(){this.fetch=!1,this.DOMException=e.DOMException}return t.prototype=e,new t}("undefined"!=typeof self?self:n);!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,a="ArrayBuffer"in e;if(a)var s=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&s.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():a&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(_)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[l(e)]},p.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},p.prototype.set=function(e,t){this.map[l(e)]=c(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function _(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function w(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(w.prototype),w.prototype.clone=function(){return new w(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},w.error=function(){var e=new w(null,{status:0,statusText:""});return e.type="error",e};var O=[301,302,303,307,308];w.redirect=function(e,t){if(-1===O.indexOf(t))throw new RangeError("Invalid status code");return new w(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function C(e,n){return new Promise((function(r,i){var a=new b(e,n);if(a.signal&&a.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function u(){s.abort()}s.onload=function(){var e,t,n={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in s?s.responseURL:n.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;r(new w(o,n))},s.onerror=function(){i(new TypeError("Network request failed"))},s.ontimeout=function(){i(new TypeError("Network request failed"))},s.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o&&(s.responseType="blob"),a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})),a.signal&&(a.signal.addEventListener("abort",u),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",u)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}C.polyfill=!0,e.fetch||(e.fetch=C,e.Headers=p,e.Request=b,e.Response=w),t.Headers=p,t.Request=b,t.Response=w,t.fetch=C}({})}(r),delete r.fetch.polyfill,(t=r.fetch).default=r.fetch,t.fetch=r.fetch,t.Headers=r.Headers,t.Request=r.Request,t.Response=r.Response,e.exports=t})),xe=(Ae.fetch,Ae.Headers,Ae.Request,Ae.Response,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=(n=Ae)&&n.__esModule?n:{default:n};t.default=function(e,t,n,o,i){var a=n?t.replace("//","//"+n+"@"):t;return(0,r.default)(e,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic50(host: "'+a+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+o+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(i.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:{"Content-Type":"application/graphql"}}).then((function(e){return e.json()})).then((function(e){return e.data.elastic50.msearch})).catch((function(e){console.error(e)}))}}))),Re=r(xe),je=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.loadPopularSuggestions=u,t.executeQuery=d,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,he.updateQueryOptions)(e,t)),n&&r(d(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,a=e.showFilter,s=void 0===a||a,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,p=void 0===c?null:c,h=e.category,f=void 0===h?null:h,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,pe.setInternalValue)(t,r,p,f,m)):(e((0,pe.setValue)(t,r,i,s,l,p,f,m)),p===E.componentTypes.dynamicRangeSlider?e((0,pe.setInternalValue)((0,Ce.getHistogramComponentID)(t),r,p,f,m)):e((0,pe.setInternalValue)(t+"__internal",r,p,f,m))),e((0,he.setQuery)(t,o)),y&&e(d(t,!0,!1,p))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,s){var u=s(),d=(0,ve.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),p=d.queryObj,h=d.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!p||p&&!Object.keys(p).length)&&(p={match_all:{}});var g=n({query:n({},p)},h);if(!(0,ve.isEqual)(f[e],g))if(i((0,he.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;Ce.componentToTypeMap[y.componentType]===E.queryTypes.term&&(v=y.dataField);var b=(0,Ce.getRSQuery)(e,(0,Ce.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(a({},e,b),(0,Ce.getDependentQueries)(s(),e,[])),i(c({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(l([{preference:e},g],[e],r,!1,o))}}};var r=i(x),o=i(xe);function i(e){return e&&e.__esModule?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){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){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,a=r.props,s=r.internalValues,u=o&&o.enableAppbase,l=a[e]||{},c=s[e],d=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){var p=(0,Ie.getSuggestionQuery)(n,e);i.getQuerySuggestions(p).then((function(n){var r=n[(0,Ie.getQuerySuggestionsId)(e)];t(d?(0,he.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,he.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,Ie.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}function l(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(l,c){var d=c(),p=d.appbaseRef,h=d.config,f=d.headers,g=d.analytics,m=d.selectedValues,y={},v=[E.componentTypes.dataSearch,E.componentTypes.categorySearch],b=a&&-1!==v.indexOf(u);if(h.analytics){if(h.analyticsConfig.suggestionAnalytics&&b){var _=g.suggestionsSearchValue;!(!h.analyticsConfig.emptyQuery&&!_)&&(y={"X-Search-Query":_||""})}else{var w=g.searchValue,O=g.searchId,C=(0,r.default)(m);if(O)y=n({"X-Search-Id":O,"X-Search-Query":w||""},C&&{"X-Search-Filters":C});else{var S=!(!h.analyticsConfig.emptyQuery&&!w);y=n(S&&{"X-Search-Query":w||""},C&&{"X-Search-Filters":C})}}if(h.analyticsConfig.searchStateHeader){var P=(0,ve.getSearchState)(c(),!0);P&&Object.keys(P).length&&(y["X-Search-State"]=JSON.stringify(P))}h.analyticsConfig.userId&&(y["X-User-Id"]=h.analyticsConfig.userId),h.analyticsConfig.customEvents&&(y["X-Search-CustomEvent"]=(0,x.parseCustomEvents)(h.analyticsConfig.customEvents))}t.forEach((function(e){l((0,he.setLoading)(e,!0)),l((0,he.setError)(e,null))})),h.graphQLUrl?(0,o.default)(h.graphQLUrl,h.url,h.credentials,h.app,e).then((function(e){(0,Ie.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:i,appendToAggs:s},c,l)})).catch((function(e){(0,Ie.handleError)({orderOfQueries:t,error:e},c,l)})):(p.setHeaders(n({},f,y)),p.msearch({type:"*"===h.type?"":h.type,body:e}).then((function(e){(0,Ie.handleResponseMSearch)({res:e,isSuggestionsQuery:b,orderOfQueries:t,appendToHits:i,appendToAggs:s},c,l)})).catch((function(e){(0,Ie.handleError)({orderOfQueries:t,error:e},c,l)})))}}function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.query,r=e.orderOfQueries,o=e.appendToHits,i=void 0!==o&&o,a=e.isInternalComponent,s=void 0!==a&&a,l=e.appendToAggs,c=void 0!==l&&l,d=e.componentType,p=e.componentId;return function(e,o){var a=o(),l=a.appbaseRef,h=a.config,f=a.headers,g=!1;h&&((0,Ie.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,Ie.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,Ie.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var m={recordAnalytics:g};h.analyticsConfig&&(m.userId=(0,Ie.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,m.enableQueryRules=(0,Ie.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,m.customEvents=(0,Ie.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0),r.forEach((function(t){e((0,he.setLoading)(t,!0)),e((0,he.setError)(t,null))})),l.setHeaders(n({},f)),s&&e(u(p)),l.reactiveSearchv3(t,m).then((function(t){(0,Ie.handleResponse)({res:t,isInternalComponent:s,orderOfQueries:r,appendToHits:i,appendToAggs:c,componentType:d,componentId:p},o,e)})).catch((function(t){(0,Ie.handleError)({orderOfQueries:r,error:t},o,e)}))}}function d(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4];return function(u,d){var p=d(),h=p.queryLog,f=p.stream,g=p.appbaseRef,m=p.config,y=p.mapData,v=p.watchMan,b=p.dependencyTree,_=p.queryList,w=p.queryOptions,O=p.queryListener,C=p.props,S=[e],P=[],k={},$=[],I=m&&m.enableAppbase;if(t){var E=v[e]||[];S=[].concat(s(S),s(E))}var T={match_all:{}};S.forEach((function(t){var o=(0,ve.buildQuery)(t,b,_,w),l=o.queryObj,c=o.options,p=["aggs","from","sort"];if(l&&Object.keys(l).length||c&&Object.keys(c).some((function(e){return p.includes(e)}))){(!l||l&&!Object.keys(l).length)&&(l=n({},T));var v=n({query:n({},l)},c,w[t]),C=n({query:n({},l)},c,w[t]),S=h[t];if(r||!(0,ve.isEqual)(v,S)){$=[].concat(s($),[t]),u((0,he.logQuery)(t,C));var E=Object.keys(y).includes(t);if(E&&y[t].query){var A=v.query;v.query={bool:{must:[A,y[t].query]}},y[t].persistMapQuery||u((0,Te.updateMapData)(e,null,!1));var x=d().combinedLog;if((0,ve.isEqual)(x[t],v))return;u((0,he.logCombinedQuery)(t,v))}if((0,Ie.executeQueryListener)(O[t],S,v),f[t]&&f[t].status){f[t].ref&&f[t].ref.stop();var R=g.searchStream({type:"*"===m.type?"":m.type,body:v},(function(e){e._id&&u((0,fe.pushToStreamHits)(t,e))}),(function(e){O[t]&&O[t].onError&&O[t].onError(e),console.warn(e),u((0,he.setError)(t,e)),u((0,he.setLoading)(t,!1))}));u((0,he.setStreaming)(t,!0,R))}if(I){var j=(0,Ce.getRSQuery)(t,(0,Ce.extractPropsFromState)(d(),t,i?{from:i.from}:null));if(j&&(k=n({},k,a({},t,j),(0,Ce.getDependentQueries)(d(),t,$))),E){var M=(0,Ce.getInternalComponentID)(t),L=(0,Ce.getRSQuery)(M,(0,Ce.extractPropsFromState)(d(),M,i?{from:i.from}:null));L&&(k[M]=n({},L,{execute:!1}))}}else P=[].concat(s(P),[{preference:t},v])}}})),I&&(P=Object.keys(k).map((function(e){return k[e]}))),P.length&&u(I?c({query:P,orderOfQueries:$,isInternalComponent:e.endsWith("__internal"),componentType:o,props:C[e],componentId:e}):l(P,$,!1,e.endsWith("__internal"),void 0,o))}}}));r(je);je.loadPopularSuggestions,je.executeQuery,je.setQueryOptions,je.updateQuery,je.loadMore;var Me=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:_.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:_.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:_.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,je.executeQuery)(e))}}}));r(Me);Me.addComponent,Me.removeComponent,Me.watchComponent;var Le=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.setComponentProps=function(e,t,o){return{type:_.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:_.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:_.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){E.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(Le);Le.setComponentProps,Le.updateComponentProps,Le.removeComponentProps;var Qe=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){var t=e.url,o=e.app,i=e.credentials,a=e.headers,s=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;s?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},s,u+1)}),headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:_.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:_.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:_.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,a=o.headers,s=o.appbaseRef,u=s.url,l=s.protocol,c=s.credentials,d=i.app,p=(l+"://"+u||"").replace(/\/+$/,""),h={headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},f="",g=function(e,t){f+=f?"&"+e+"="+t:e+"="+t};i.analyticsConfig&&i.analyticsConfig.userId&&g("user_id",i.analyticsConfig.userId),e&&(e.size&&g("size",String(e.size)),e.from&&g("from",e.from),e.to&&g("to",e.to),e.minChars&&g("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){g(t,e.customEvents[t])}))),fetch(p+"/_analytics/"+d+"/recent-searches?"+f,h).then((function(e){return e.status>=500||e.status>=400?t({type:_.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:_.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:_.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:_.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.searchId,l=a.headers,c=a.appbaseRef,d=c.url,p=c.protocol,h=c.credentials,f=s.app,g=p+"://"+d;if(s.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var a=i(),s=a.config,u=a.analytics.suggestionsSearchId,l=a.headers,c=a.appbaseRef,d=c.url,p=c.protocol,h=c.credentials,f=s.app,g=p+"://"+d;if(s.analytics&&(void 0===s.analyticsConfig||void 0===s.analyticsConfig.suggestionAnalytics||s.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),a=i.config.app,s=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,d=u.credentials,p=(c+"://"+l).replace(/\/+$/,"");!p.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(p+"/"+a+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(d)})})}}}));r(Qe);Qe.setSuggestionsSearchValue,Qe.clearSuggestionsSearchValue;var Ve=Qe.updateAnalyticsConfig,De=(Qe.getRecentSearches,Qe.recordResultClick,Qe.recordSuggestionClick,Qe.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Me).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Me[e]}})})),Object.keys(fe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return fe[e]}})})),Object.keys(Te).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Te[e]}})})),Object.keys(je).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return je[e]}})})),Object.keys(pe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return pe[e]}})})),Object.keys(Le).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Le[e]}})})),Object.keys(Qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Qe[e]}})})),Object.keys(he).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return he[e]}})}))})));if(r(De),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var Fe=Object.freeze({__proto__:null}),Ne=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(Ne);var qe=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=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.default=function(e){var t=n({},e,{config:n({},e.config,{analyticsConfig:e.config&&e.config.analyticsConfig?n({},x.defaultAnalyticsConfig,e.config.analyticsConfig):x.defaultAnalyticsConfig})});return(0,ce.createStore)(o.default,t,k)};var r=y(b),o=y(de),i=m(De),a=m(ve),s=y(ye),u=y(E),l=y(Fe),c=y(Ne),d=y(V),p=y(P),h=y($),f=y(C),g=y(ee);function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var v=_.STORE_KEY,w=s.default,O=c.default,S={valueReducer:d.default,queryOptionsReducer:h.default,queryReducer:p.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=a,t.causes=O,t.suggestions=w,t.Actions=i,t.storeKey=v,t.polyfills=l.default,t.Reducers=S,t.constants=u.default;var k=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):ce.compose)((0,ce.applyMiddleware)(r.default))})),Ue=r(qe),He=(qe.constants,qe.Reducers,qe.polyfills,qe.storeKey,qe.Actions),ze=(qe.suggestions,qe.causes),Be=qe.helper;function Ge(){return(Ge=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}).apply(this,arguments)}function We(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ze(e,t)}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ye(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}function Ke(e,t){return t||(t=e.slice(0)),e.raw=t,e}function Xe(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
6
|
+
!function(t,n,r,o){var i=["FullYear","Month","Date","Hours","Minutes","Seconds","Milliseconds","Day","Year"],s=["Years","Months","Days"],a=[12,31,24,60,60,1e3,1],u=new RegExp("(([a-zA-Z])\\2*)|(\\((('.*?'|\\(.*?\\)|.)*?)\\))|('(.*?)')"),l=t.UTC,c=t.prototype.toUTCString,d=p.prototype;function p(){return h(this instanceof p?this:new p,arguments)}function h(e,n){var r,o=n.length;if(Q(n[o-1])&&(r=n[--o],n=L(n,0,o)),o)if(1==o){var i=n[0];i instanceof t?e[0]=new t(i.getTime()):!function(e){return"number"==typeof e}(i)?i instanceof p?e[0]=function(e){var n=new t(e[0].getTime());f(e)&&(n.toString=c);return n}(i):j(i)&&(e[0]=new t(0),e=function(e,n,r){for(var o,i=p.parsers,s=0;s<i.length;s++)if(o=i[s](e,n,r))return o;return r[0]=new t(e),r}(i,r||!1,e)):e[0]=new t(i)}else e[0]=new t(l.apply(t,n)),r||(e[0]=k(e[0]));else e[0]=new t;return Q(r)&&g(e,r),e}function f(e){return e[0].toString===c}function g(e,n,r){var o;return n?f(e)||(r&&(e[0]=(o=e[0],new t(l(o.getFullYear(),o.getMonth(),o.getDate(),o.getHours(),o.getMinutes(),o.getSeconds(),o.getMilliseconds())))),e[0].toString=c):f(e)&&(e[0]=r?k(e[0]):new t(e[0].getTime())),e}function m(e,t,n,r,o){var i,s=x(P,e[0],o),a=x(I,e[0],o),u=!1;2==r.length&&Q(r[1])&&(u=r[1],r=[n]),i=1==t?(n%12+12)%12:s(1),a(t,r),u&&s(1)!=i&&(a(1,[s(1)-1]),a(2,[A(s(0),s(1))]))}function y(e,t,r){e=e.clone().setUTCMode(!0,!0),t=p(t).setUTCMode(!0,!0);var o=0;if(0==r||1==r){for(var i=6;i>=r;i--)o/=a[i],o+=P(t,!1,i)-P(e,!1,i);1==r&&(o+=12*(t.getFullYear()-e.getFullYear()))}else if(2==r){var s=e.toDate().setUTCHours(0,0,0,0),u=t.toDate().setUTCHours(0,0,0,0);o=n.round((u-s)/864e5)+(t-u-(e-s))/864e5}else o=(t-e)/[36e5,6e4,1e3,1][r-3];return o}function v(e){return r=e(0),o=e(1),i=e(2),s=new t(l(r,o,i)),a=C(b(r,o,i)),n.floor(n.round((s-a)/864e5)/7)+1;var r,o,i,s,a}function b(e,n,r){var o=new t(l(e,n,r));return o<C(e)?e-1:o>=C(e+1)?e+1:e}function C(e){var n=new t(l(e,0,4));return n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+6)%7),n}function O(e,t,n,r){var o=x(P,e,r),i=x(I,e,r);void 0===n&&(n=b(o(0),o(1),o(2)));var s=C(n);r||(s=k(s)),e.setTime(s.getTime()),i(2,[o(2)+7*(t-1)])}function _(e,t,n,r,o){var i=p.locales,s=i[p.defaultLocale]||{},a=x(P,e,o);return n=(j(n)?i[n]:n)||{},S(e,t,(function(e){if(r)for(var t=(7==e?2:e)-1;t>=0;t--)r.push(a(t));return a(e)}),(function(e){return n[e]||s[e]}),o)}function S(e,t,n,r,o){for(var i,s,a="";i=t.match(u);)a+=t.substr(0,i.index),i[1]?a+=w(e,i[1],n,r,o):i[3]?(s=S(e,i[4],n,r,o),parseInt(s.replace(/\D/g,""),10)&&(a+=s)):a+=i[7]||"'",t=t.substr(i.index+i[0].length);return a+t}function w(e,t,n,r,o){for(var i,s=t.length,a="";s>0;)void 0!==(i=$(e,t.substr(0,s),n,r,o))?(a+=i,s=(t=t.substr(s)).length):s--;return a+t}function $(e,t,r,o,i){var s=p.formatters[t];if(j(s))return S(e,s,r,o,i);if("function"==typeof s)return s(e,i||!1,o);switch(t){case"fff":return V(r(6),3);case"s":return r(5);case"ss":return V(r(5));case"m":return r(4);case"mm":return V(r(4));case"h":return r(3)%12||12;case"hh":return V(r(3)%12||12);case"H":return r(3);case"HH":return V(r(3));case"d":return r(2);case"dd":return V(r(2));case"ddd":return o("dayNamesShort")[r(7)]||"";case"dddd":return o("dayNames")[r(7)]||"";case"M":return r(1)+1;case"MM":return V(r(1)+1);case"MMM":return o("monthNamesShort")[r(1)]||"";case"MMMM":return o("monthNames")[r(1)]||"";case"yy":return(r(0)+"").substring(2);case"yyyy":return r(0);case"t":return E(r,o).substr(0,1).toLowerCase();case"tt":return E(r,o).toLowerCase();case"T":return E(r,o).substr(0,1);case"TT":return E(r,o);case"z":case"zz":case"zzz":return i?"Z":function(e,t){var r=e.getTimezoneOffset(),o=r<0?"+":"-",i=n.floor(n.abs(r)/60),s=n.abs(r)%60,a=i;"zz"==t?a=V(i):"zzz"==t&&(a=V(i)+":"+V(s));return o+a}(e,t);case"w":return v(r);case"ww":return V(v(r));case"S":var a=r(2);return a>10&&a<20?"th":["st","nd","rd"][a%10-1]||"th"}}function E(e,t){return e(3)<12?t("amDesignator"):t("pmDesignator")}function T(e){return!isNaN(e[0].getTime())}function P(e,t,n){return e["get"+(t?"UTC":"")+i[n]]()}function I(e,t,n,r){e["set"+(t?"UTC":"")+i[n]].apply(e,r)}function k(e){return new t(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())}function A(e,n){return 32-new t(l(e,n,32)).getUTCDate()}function R(e){return function(){return e.apply(void 0,[this].concat(L(arguments)))}}function x(e){var t=L(arguments,1);return function(){return e.apply(void 0,t.concat(L(arguments)))}}function L(e,t,n){return r.prototype.slice.call(e,t||0,void 0===n?e.length:n)}function M(e,t){for(var n=0;n<e.length;n++)t(e[n],n)}function j(e){return"string"==typeof e}function Q(e){return"boolean"==typeof e}function V(e,t){for(t=t||2,e+="";e.length<t;)e="0"+e;return e}d.length=1,d.splice=r.prototype.splice,d.getUTCMode=R(f),d.setUTCMode=R(g),d.getTimezoneOffset=function(){return f(this)?0:this[0].getTimezoneOffset()},M(i,(function(e,t){d["get"+e]=function(){return P(this[0],f(this),t)},8!=t&&(d["getUTC"+e]=function(){return P(this[0],!0,t)}),7!=t&&(d["set"+e]=function(e){return m(this,t,e,arguments,f(this)),this},8!=t&&(d["setUTC"+e]=function(e){return m(this,t,e,arguments,!0),this},d["add"+(s[t]||e)]=function(e,r){return function e(t,r,o,s){o=Number(o);var u=n.floor(o);t["set"+i[r]](t["get"+i[r]]()+u,s||!1),u!=o&&r<6&&e(t,r+1,(o-u)*a[r],s)}(this,t,e,r),this},d["diff"+(s[t]||e)]=function(e){return y(this,e,t)}))})),d.getWeek=function(){return v(x(P,this,!1))},d.getUTCWeek=function(){return v(x(P,this,!0))},d.setWeek=function(e,t){return O(this,e,t,!1),this},d.setUTCWeek=function(e,t){return O(this,e,t,!0),this},d.addWeeks=function(e){return this.addDays(7*Number(e))},d.diffWeeks=function(e){return y(this,e,2)/7},p.parsers=[function(e,n,r){var o=e.match(/^(\d{4})(-(\d{2})(-(\d{2})([T ](\d{2}):(\d{2})(:(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/);if(o){var i=new t(l(o[1],o[3]?o[3]-1:0,o[5]||1,o[7]||0,o[8]||0,o[10]||0,o[12]?1e3*Number("0."+o[12]):0));return o[13]?o[14]&&i.setUTCMinutes(i.getUTCMinutes()+("-"==o[15]?1:-1)*(60*Number(o[16])+(o[18]?Number(o[18]):0))):n||(i=k(i)),r.setTime(i.getTime())}}],p.parse=function(e){return+p(""+e)},d.toString=function(e,t,n){return void 0!==e&&T(this)?_(this,e,t,n,f(this)):this[0].toString()},d.toUTCString=d.toGMTString=function(e,t,n){return void 0!==e&&T(this)?_(this,e,t,n,!0):this[0].toUTCString()},d.toISOString=function(){return this.toUTCString("yyyy-MM-dd'T'HH:mm:ss(.fff)zzz")},p.defaultLocale="",p.locales={"":{monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],amDesignator:"AM",pmDesignator:"PM"}},p.formatters={i:"yyyy-MM-dd'T'HH:mm:ss(.fff)",u:"yyyy-MM-dd'T'HH:mm:ss(.fff)zzz"},M(["getTime","valueOf","toDateString","toTimeString","toLocaleString","toLocaleDateString","toLocaleTimeString","toJSON"],(function(e){d[e]=function(){return this[0][e]()}})),d.setTime=function(e){return this[0].setTime(e),this},d.valid=R(T),d.clone=function(){return new p(this)},d.clearTime=function(){return this.setHours(0,0,0,0)},d.toDate=function(){return new t(this[0].getTime())},p.now=function(){return(new t).getTime()},p.today=function(){return(new p).clearTime()},p.UTC=l,p.getDaysInMonth=A,e.exports&&(e.exports=p)}(Date,Math,Array)})),Re=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getDependentQueries=t.extractPropsFromState=t.getValidInterval=t.getRSQuery=t.hasPaginationSupport=t.isComponentUsesLabelAsValue=t.isSearchComponent=t.isDRSRangeComponent=t.getHistogramComponentID=t.getInternalComponentID=t.isInternalComponent=t.getNormalizedField=t.componentToTypeMap=void 0;var n,r=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.flatReactProp=$;var o=s(Ae),i=s(me);function s(e){return e&&e.__esModule?e:{default:e}}function a(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}var l=t.componentToTypeMap=(u(n={},x.componentTypes.reactiveList,x.queryTypes.search),u(n,x.componentTypes.dataSearch,x.queryTypes.search),u(n,x.componentTypes.categorySearch,x.queryTypes.search),u(n,x.componentTypes.searchBox,x.queryTypes.suggestion),u(n,x.componentTypes.singleList,x.queryTypes.term),u(n,x.componentTypes.multiList,x.queryTypes.term),u(n,x.componentTypes.singleDataList,x.queryTypes.term),u(n,x.componentTypes.singleDropdownList,x.queryTypes.term),u(n,x.componentTypes.multiDataList,x.queryTypes.term),u(n,x.componentTypes.multiDropdownList,x.queryTypes.term),u(n,x.componentTypes.tagCloud,x.queryTypes.term),u(n,x.componentTypes.toggleButton,x.queryTypes.term),u(n,x.componentTypes.reactiveChart,x.queryTypes.term),u(n,x.componentTypes.treeList,x.queryTypes.term),u(n,x.componentTypes.numberBox,x.queryTypes.term),u(n,x.componentTypes.datePicker,x.queryTypes.range),u(n,x.componentTypes.dateRange,x.queryTypes.range),u(n,x.componentTypes.dynamicRangeSlider,x.queryTypes.range),u(n,x.componentTypes.singleDropdownRange,x.queryTypes.range),u(n,x.componentTypes.multiDropdownRange,x.queryTypes.range),u(n,x.componentTypes.singleRange,x.queryTypes.range),u(n,x.componentTypes.multiRange,x.queryTypes.range),u(n,x.componentTypes.rangeSlider,x.queryTypes.range),u(n,x.componentTypes.ratingsFilter,x.queryTypes.range),u(n,x.componentTypes.rangeInput,x.queryTypes.range),u(n,x.componentTypes.geoDistanceDropdown,x.queryTypes.geo),u(n,x.componentTypes.geoDistanceSlider,x.queryTypes.geo),u(n,x.componentTypes.reactiveMap,x.queryTypes.geo),n),c=[x.componentTypes.multiRange,x.componentTypes.multiDropdownRange],d=[x.componentTypes.dateRange,x.componentTypes.datePicker],p=[x.componentTypes.categorySearch,x.componentTypes.dataSearch,x.componentTypes.searchBox],h=[x.componentTypes.singleList,x.componentTypes.multiList,x.componentTypes.singleDropdownList,x.componentTypes.multiDropdownList],f=t.getNormalizedField=function(e){return e&&!Array.isArray(e)?[e]:e},g=t.isInternalComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__internal")},m=t.getInternalComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__internal"},y=t.getHistogramComponentID=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__histogram__internal"},v=t.isDRSRangeComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.endsWith("__range__internal")},b=t.isSearchComponent=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return p.includes(e)},C=t.isComponentUsesLabelAsValue=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e===x.componentTypes.multiDataList||e===x.componentTypes.singleDataList||e===x.componentTypes.tabDataList},O=t.hasPaginationSupport=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return h.includes(e)},_=t.getRSQuery=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(t&&e){var o=t.type?t.type:l[t.componentType];if(!b(t.componentType)&&!t.dataField)return null;var i=void 0;return t.endpoint instanceof Object&&(i=t.endpoint),r({id:e,type:o,dataField:f(t.dataField),execute:n,react:t.react,highlight:t.highlight,highlightField:f(t.highlightField),fuzziness:t.fuzziness,searchOperators:t.searchOperators,includeFields:t.includeFields,excludeFields:t.excludeFields,size:t.size,aggregationSize:t.aggregationSize,from:t.from,queryFormat:t.queryFormat,sortBy:t.sortBy,fieldWeights:f(t.fieldWeights),includeNullValues:t.includeNullValues,aggregationField:t.aggregationField||void 0,categoryField:t.categoryField||void 0,missingLabel:t.missingLabel||void 0,showMissing:t.showMissing,nestedField:t.nestedField||void 0,interval:t.interval,customHighlight:t.customHighlight,customQuery:t.customQuery,defaultQuery:t.defaultQuery,value:t.value,categoryValue:t.categoryValue||void 0,after:t.after||void 0,aggregations:t.aggregations||void 0,enableSynonyms:t.enableSynonyms,selectAllLabel:t.selectAllLabel,pagination:t.pagination,queryString:t.queryString,distinctField:t.distinctField,distinctFieldConfig:t.distinctFieldConfig,index:t.index},o===x.queryTypes.suggestion?r({enablePopularSuggestions:t.enablePopularSuggestions,enableRecentSuggestions:t.enableRecentSuggestions,popularSuggestionsConfig:t.popularSuggestionsConfig,recentSuggestionsConfig:t.recentSuggestionsConfig,applyStopwords:t.applyStopwords,customStopwords:t.customStopwords,enablePredictiveSuggestions:t.enablePredictiveSuggestions,featuredSuggestionsConfig:t.featuredSuggestionsConfig,indexSuggestionsConfig:t.indexSuggestionsConfig,enableFeaturedSuggestions:t.enableFeaturedSuggestions,enableIndexSuggestions:t.enableIndexSuggestions},t.searchboxId?{searchboxId:t.searchboxId}:{}):{},{calendarInterval:t.calendarInterval,endpoint:i})}return null},S=t.getValidInterval=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Math.ceil((t.end-t.start)/100)||1;return e?e<n?n:e:n},w=t.extractPropsFromState=function(e,t,n){var s=e.props[t];if(!s)return null;var a=s.type?s.type:l[s.componentType],u=e.selectedValues[t]||e.internalValues[t],p=null!=u?u.value:void 0,h=s.queryFormat,f=void 0,g=s.interval,_=a,w=s.dataField,$=s.aggregations,E=void 0,T=s.from;if(a===x.queryTypes.term)if(s.showLoadMore&&O(s.componentType)&&(E=!0),null!=p&&"object"==typeof p&&p.value)p=p.value;else if(Array.isArray(p)){var P=[];p.forEach((function(e){null!=e&&"object"==typeof e&&e.value?P.push(e.value):P.push(e)})),p=P}if(a===x.queryTypes.range){if(Array.isArray(p))p=c.includes(s.componentType)?p.map((function(e){return{start:e.start,end:e.end}})):{start:p[0],end:p[1]};else if(s.showHistogram){var I=m(t),k=e.internalValues[I];if(!k){var A=y(t);k=e.internalValues[A]}k&&Array.isArray(k.value)&&(p={start:k.value[0],end:k.value[1]},g=S(g,p))}v(t)?$=["min","max"]:s.showHistogram&&($=["histogram"]),s.componentType!==x.componentTypes.dynamicRangeSlider&&s.componentType!==x.componentTypes.rangeSlider||(f=Object.keys(i.default).includes(h)?s.calendarInterval:void 0,p&&(p=(0,Ce.isValidDateRangeQueryFormat)(s.queryFormat)?{start:(0,Ce.formatDate)(new o.default(p.start),s),end:(0,Ce.formatDate)(new o.default(p.end),s)}:{start:parseFloat(p.start),end:parseFloat(p.end)})),d.includes(s.componentType)&&(h="or",p&&("string"==typeof p?p={start:(0,Ce.formatDate)(new o.default(p).addHours(-24),s),end:(0,Ce.formatDate)(new o.default(p),s)}:Array.isArray(p)&&(p=p.map((function(e){return{start:(0,Ce.formatDate)(new o.default(e).addHours(-24),s),end:(0,Ce.formatDate)(new o.default(e),s)}})))))}if(a===x.queryTypes.geo){p=void 0;var R=e.selectedValues[t]||e.internalValues[t]||e.internalValues[m(t)];R&&R.meta&&(R.meta.distance&&R.meta.coordinates&&(p={distance:R.meta.distance,location:R.meta.coordinates},s.unit&&(p.unit=s.unit)),R.meta.mapBoxBounds&&R.meta.mapBoxBounds.top_left&&R.meta.mapBoxBounds.bottom_right&&(p={geoBoundingBox:{topLeft:R.meta.mapBoxBounds.top_left[1]+", "+R.meta.mapBoxBounds.top_left[0],bottomRight:R.meta.mapBoxBounds.bottom_right[1]+", "+R.meta.mapBoxBounds.bottom_right[0]}}))}if(s.componentType===x.componentTypes.numberBox&&("exact"===h?_="term":(_="range",p="lte"===h?{end:p,boost:2}:{start:p,boost:2}),h="or"),s.componentType===x.componentTypes.reactiveComponent&&(_="term",w="reactive_component_field",p=void 0),b(s.componentType)&&!p&&(p=""),C(s.componentType)){var L=s.data,M=[];p&&Array.isArray(p)?M=p:p&&"string"==typeof p&&(M=[p]);var j=[];M.length&&L&&Array.isArray(L)&&M.forEach((function(e){var t=L.find((function(t){return t.label===e}));t&&t.value&&j.push(t.value)})),p=j.length?j:void 0}s.componentType===x.componentTypes.reactiveList&&(p>0&&(T=(p-1)*(s.size||10)),p=void 0);var Q=p||void 0;s.componentType===x.componentTypes.searchBox&&Array.isArray(Q)&&(Q=void 0);var V=void 0;return e.config.endpoint instanceof Object&&(V=e.config.endpoint),s.endpoint instanceof Object&&(V=r({},V||{},s.endpoint)),r({},s,{endpoint:V,calendarInterval:f,dataField:w,queryFormat:h,type:_,aggregations:$,interval:g,react:e.dependencyTree?e.dependencyTree[t]:void 0,customQuery:e.customQueries?e.customQueries[t]:void 0,defaultQuery:e.defaultQueries?e.defaultQueries[t]:void 0,customHighlight:e.customHighlightOptions?e.customHighlightOptions[t]:void 0,categoryValue:e.internalValues[t]?e.internalValues[t].category:void 0,value:Q,pagination:E,from:T},n)};function $(e,t){var n=[];return function e(t){t&&Object.keys(t)&&Object.keys(t).forEach((function(r){t[r]&&("string"==typeof t[r]?n=[].concat(a(n),[t[r]]):Array.isArray(t[r])?n=[].concat(a(n),a(t[r])):"object"==typeof t[r]&&e(t[r]))}))}(e),n=n.filter((function(e){return e!==t}))}t.getDependentQueries=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o={},i=$(e.dependencyTree[t],t);return i.forEach((function(t){var i=t,s=e.customQueries[i];if(!g(i)){var a=e.selectedValues[i]||e.internalValues[i];if((a||s)&&!o[i]){var u=!1;Array.isArray(n)&&n.includes(i)&&(u=!0);var l=e.props[i],c=_(i,w(e,i,r({},l&&l.componentType===x.componentTypes.searchBox?r({},!1===u?{type:x.queryTypes.search}:{},a.category?{categoryValue:a.category}:{},a.value?{value:a.value}:{}):{})),u);c&&(o[i]=c)}}})),o}}));r(Re);var xe=Re.getDependentQueries,Le=Re.extractPropsFromState,Me=(Re.getValidInterval,Re.getRSQuery),je=(Re.hasPaginationSupport,Re.isComponentUsesLabelAsValue,Re.isSearchComponent),Qe=(Re.isDRSRangeComponent,Re.getHistogramComponentID,Re.getInternalComponentID),Ve=Re.isInternalComponent,De=(Re.getNormalizedField,Re.componentToTypeMap,Re.flatReactProp,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.getSuggestionQuery=t.isPropertyDefined=t.handleResponseMSearch=t.handleResponse=t.handleError=t.getQuerySuggestionsId=t.isComponentActive=t.handleTransformResponse=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};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.executeQueryListener=function(e,t,n){e&&e.onQueryChange&&e.onQueryChange(t,n)},t.updateStoreConfig=function(e){return function(t){t({type:_.UPDATE_CONFIG,config:e})}};var o=t.handleTransformResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return t.transformResponse&&"function"==typeof t.transformResponse?t.transformResponse(e,n):new Promise((function(t){return t(e)}))},i=t.isComponentActive=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e(),r=n.components;return!!r.includes(t)},s=t.getQuerySuggestionsId=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+"__suggestions"},a=t.handleError=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.orderOfQueries,n=void 0===t?[]:t,r=e.error,o=void 0===r?null:r,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},a=arguments[2],u=s(),l=u.queryListener;try{console.error(JSON.stringify(o))}catch(e){console.error(o)}n.forEach((function(e){i(s,e)&&(l[e]&&l[e].onError&&l[e].onError(o),a((0,ke.setError)(e,o)),a((0,ke.setLoading)(e,!1)))}))};t.handleResponse=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.res,s=e.orderOfQueries,u=void 0===s?[]:s,l=e.appendToHits,c=void 0!==l&&l,d=e.appendToAggs,p=void 0!==d&&d,h=e.isSuggestionsQuery,f=void 0!==h&&h,g=e.query,m=e.queryId,y=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},v=arguments[2],b=y(),C=b.config,O=b.internalValues,_=b.lastUsedAppbaseQuery,S=t._headers?t._headers.get("X-Search-Id"):null;S&&v(f?(0,ke.setSuggestionsSearchId)(S):(0,ke.setSearchId)(S)),u.forEach((function(e){if(i(y,e)){if(_[e]&&_[e].queryId&&m&&_[e].queryId!==m)return;t.settings&&v((0,ke.setAppliedSettings)(t.settings,e)),o(t[e],C,e).then((function(o){if(o){var i=y(),s=i.timestamp,a=i.props;if(void 0===s[e]||s[e]<t._timestamp){var u=o.promoted;if(u){var l=u.map((function(e){return n({},e.doc,{_position:e.position})}));v((0,ke.setPromotedResults)(l,e))}else v((0,ke.setPromotedResults)([],e));if(v((0,ke.setRawData)(e,o)),v((0,ke.setCustomData)(o.customData,e)),o.hits){v((0,ke.setTimestamp)(e,t._timestamp)),a[e].componentType===x.componentTypes.reactiveList&&g.find((function(t){return t.id===e})).execute&&v((0,ke.setLastUsedAppbaseQuery)(r({},e,g))),v((0,Ie.updateHits)(e,o.hits,o.took,o.hits&&o.hits.hidden,c));var d=(0,Re.getInternalComponentID)(e);O[d]&&v((0,Ie.saveQueryToHits)(e,O[d].value))}o.aggregations&&(v((0,Ie.updateAggs)(e,o.aggregations,p)),v((0,Ie.updateCompositeAggs)(e,o.aggregations,p)))}v((0,ke.setLoading)(e,!1))}})).catch((function(e){a({orderOfQueries:u,error:e},y,v)}))}}))},t.handleResponseMSearch=function(e){var t=e.res,n=void 0===t?{}:t,r=e.isSuggestionsQuery,s=void 0!==r&&r,u=e.orderOfQueries,l=void 0===u?[]:u,c=e.appendToHits,d=void 0!==c&&c,p=e.appendToAggs,h=void 0!==p&&p,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},g=arguments[2];l.forEach((function(e,t){if(i(f,e)){var r=n._headers?n._headers.get("X-Search-Id"):null;r&&g(s?(0,ke.setSuggestionsSearchId)(r):(0,ke.setSearchId)(r));var u=n;n&&Array.isArray(n.responses)&&n.responses[t]&&(u=n.responses[t]);var c=f(),p=c.config,m=c.internalValues;o(u,p,e).then((function(t){var r=f().timestamp;if(void 0===r[e]||r[e]<n._timestamp){g((0,ke.setRawData)(e,t));var o=t.promoted||n.promoted;if(g(o?(0,ke.setPromotedResults)(o,e):(0,ke.setPromotedResults)([],e)),t.hits){g((0,ke.setTimestamp)(e,n._timestamp)),g((0,Ie.updateHits)(e,t.hits,t.took,t.hits&&t.hits.hidden,d));var i=(0,Re.getInternalComponentID)(e);m[i]&&g((0,Ie.saveQueryToHits)(e,m[i].value))}t.aggregations&&(g((0,Ie.updateAggs)(e,t.aggregations,h)),g((0,Ie.updateCompositeAggs)(e,t.aggregations,h)))}g((0,ke.setLoading)(e,!1))})).catch((function(e){a({orderOfQueries:l,error:e},f,g)}))}}))},t.isPropertyDefined=function(e){return null!=e},t.getSuggestionQuery=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=arguments[1],n=e(),r=n.internalValues,o=r[t],i=o&&o.value||"";return[{id:s(t),dataField:["key","key.autosuggest"],size:5,value:i,defaultQuery:{query:{bool:{minimum_should_match:1,should:[{function_score:{field_value_factor:{field:"count",modifier:"sqrt",missing:1}}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],fuzziness:0,operator:"or",query:i,type:"best_fields"}},{multi_match:{fields:["key^9","key.autosuggest^1","key.keyword^10"],operator:"or",query:i,type:"phrase"}},{multi_match:{fields:["key^9"],operator:"or",query:i,type:"phrase_prefix"}}]}}}}]}})));r(De);De.getSuggestionQuery;var Fe=De.isPropertyDefined,Ne=(De.handleResponseMSearch,De.handleResponse,De.handleError,De.getQuerySuggestionsId,De.isComponentActive,De.handleTransformResponse,De.executeQueryListener,De.updateStoreConfig,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,s,a,u,l){return function(c,d){var p=d(),h=p.urlValues,f=p.selectedValues,g=p.watchMan,m=p.props,y=l;(0,Ce.isEqual)(h[e],t)&&(y="URL");var v={},b=[x.componentTypes.reactiveList,x.componentTypes.reactiveMap].includes(m[e]&&m[e].componentType),C=f[e]&&f[e].value;if(!(0,Ce.isEqual)(C,t)&&m[e]&&!b){var O=[e],S=g[e]||[];(O=[].concat(r(O),r(S))).forEach((function(e){var t=m[e];"URL"!==y&&t&&[x.componentTypes.reactiveList,x.componentTypes.reactiveMap].includes(t.componentType)&&null!==f[e]&&(v[e]=null)}))}b&&t<2&&(!C||C<2)||c({type:_.SET_VALUE,component:e,reference:y,value:t,label:n,showFilter:o,URLParams:i,componentType:s,category:a,meta:u,componentsToReset:v})}},t.resetValuesToDefault=function(e){return function(t,r){var o=r(),i=o.selectedValues,s=o.props,a={},u=void 0;Object.keys(i).forEach((function(t){Array.isArray(e)&&e.includes(t)||(s[t]&&s[t].componentType&&s[t].defaultValue?[x.componentTypes.rangeSlider,x.componentTypes.rangeInput,x.componentTypes.ratingsFilter,x.componentTypes.dateRange].includes(s[t].componentType)?u="object"==typeof s[t].defaultValue?[s[t].defaultValue.start,s[t].defaultValue.end]:null:[x.componentTypes.multiDropdownList,x.componentTypes.multiDataList,x.componentTypes.multiList,x.componentTypes.singleDataList,x.componentTypes.singleDropdownList,x.componentTypes.singleList,x.componentTypes.tagCloud,x.componentTypes.toggleButton,x.componentTypes.multiDropdownRange,x.componentTypes.multiRange,x.componentTypes.singleDropdownRange,x.componentTypes.singleRange,x.componentTypes.dataSearch,x.componentTypes.datePicker,x.componentTypes.treeList].includes(s[t].componentType)?u=s[t].defaultValue:[x.componentTypes.categorySearch].includes(s[t].componentType)&&(u=s[t].defaultValue?s[t].defaultValue.term:""):u=null,(0,Ce.isEqual)(i[t].value,u)||(a=n({},a,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:_.RESET_TO_DEFAULT,defaultValues:a})}},t.setInternalValue=function(e,t,n,r,o){return{type:_.SET_INTERNAL_VALUE,component:e,value:t,componentType:n,category:r,meta:o}},t.patchValue=function(e,t){return{type:_.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:_.CLEAR_VALUES,resetValues:e,clearAllBlacklistComponents:t}},t.setValues=function(e){return function(t){t((0,De.updateStoreConfig)({queryLockConfig:{initialTimestamp:(new Date).getTime(),lockTime:300}})),t({type:_.SET_VALUES,componentsValues:e})}}})));r(Ne);Ne.setValue,Ne.resetValuesToDefault,Ne.setInternalValue,Ne.patchValue,Ne.clearValues;var Ue=Ne.setValues,qe=o((function(e,t){function n(e,t,n){return{type:_.SET_MAP_DATA,componentId:e,query:t,persistMapQuery:n}}Object.defineProperty(t,"__esModule",{value:!0}),t.updateMapData=n,t.setMapData=function(e,t,r,o){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"";return function(a){if(a(n(e,t,r)),a((0,Ne.setInternalValue)((0,Re.getInternalComponentID)(e),void 0,void 0,void 0,i)),o){a((0,We.executeQuery)(e,!1,!0,x.componentTypes.reactiveMap,{},s))}}},t.setMapResults=function(e,t){var n=t.center,r=t.zoom,o=t.markers;return{type:_.SET_MAP_RESULTS,componentId:e,payload:{center:n,zoom:r,markers:o}}}}));r(qe);qe.updateMapData,qe.setMapData,qe.setMapResults;var ze=o((function(e,t){var r="undefined"!=typeof self?self:n,o=function(){function e(){this.fetch=!1,this.DOMException=r.DOMException}return e.prototype=r,new e}();!function(e){!function(t){var n="URLSearchParams"in e,r="Symbol"in e&&"iterator"in Symbol,o="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),i="FormData"in e,s="ArrayBuffer"in e;if(s)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};function l(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function c(e){return"string"!=typeof e&&(e=String(e)),e}function d(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r&&(t[Symbol.iterator]=function(){return t}),t}function p(e){this.map={},e instanceof p?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function h(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function f(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function g(e){var t=new FileReader,n=f(t);return t.readAsArrayBuffer(e),n}function m(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function y(){return this.bodyUsed=!1,this._initBody=function(e){var t;this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:i&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:n&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():s&&o&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=m(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):s&&(ArrayBuffer.prototype.isPrototypeOf(e)||u(e))?this._bodyArrayBuffer=m(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):n&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o&&(this.blob=function(){var e=h(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?h(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(g)}),this.text=function(){var e,t,n,r=h(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=f(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},i&&(this.formData=function(){return this.text().then(C)}),this.json=function(){return this.text().then(JSON.parse)},this}p.prototype.append=function(e,t){e=l(e),t=c(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},p.prototype.delete=function(e){delete this.map[l(e)]},p.prototype.get=function(e){return e=l(e),this.has(e)?this.map[e]:null},p.prototype.has=function(e){return this.map.hasOwnProperty(l(e))},p.prototype.set=function(e,t){this.map[l(e)]=c(t)},p.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},p.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),d(e)},p.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),d(e)},p.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),d(e)},r&&(p.prototype[Symbol.iterator]=p.prototype.entries);var v=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function b(e,t){var n,r,o=(t=t||{}).body;if(e instanceof b){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new p(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new p(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),v.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function C(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function O(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new p(t.headers),this.url=t.url||"",this._initBody(e)}b.prototype.clone=function(){return new b(this,{body:this._bodyInit})},y.call(b.prototype),y.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];O.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},t.DOMException=e.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function S(e,n){return new Promise((function(r,i){var s=new b(e,n);if(s.signal&&s.signal.aborted)return i(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function u(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new p,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;r(new O(o,n))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.onabort=function(){i(new t.DOMException("Aborted","AbortError"))},a.open(s.method,s.url,!0),"include"===s.credentials?a.withCredentials=!0:"omit"===s.credentials&&(a.withCredentials=!1),"responseType"in a&&o&&(a.responseType="blob"),s.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),s.signal&&(s.signal.addEventListener("abort",u),a.onreadystatechange=function(){4===a.readyState&&s.signal.removeEventListener("abort",u)}),a.send(void 0===s._bodyInit?null:s._bodyInit)}))}S.polyfill=!0,e.fetch||(e.fetch=S,e.Headers=p,e.Request=b,e.Response=O),t.Headers=p,t.Request=b,t.Response=O,t.fetch=S,Object.defineProperty(t,"__esModule",{value:!0})}({})}(o),o.fetch.ponyfill=!0,delete o.fetch.polyfill;var i=o;(t=i.fetch).default=i.fetch,t.fetch=i.fetch,t.Headers=i.Headers,t.Request=i.Request,t.Response=i.Response,e.exports=t})),Be=r(ze),He=(ze.fetch,ze.Headers,ze.Request,ze.Response,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n,r=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},o=(n=ze)&&n.__esModule?n:{default:n};t.default=function(e){var t=e.graphQLUrl,n=e.url,i=e.credentials,s=e.app,a=e.query,u=e.headers,l=i?n.replace("//","//"+i+"@"):n;return(0,o.default)(t,{method:"POST",body:'\n\t\t\tquery{\n\t\t\t\telastic77(host: "'+l+'"){\n\t\t\t\t\tmsearch(\n\t\t\t\t\t\tindex: "'+s+'"\n\t\t\t\t\t\tbody: '+JSON.stringify(a.map((function(e){return JSON.stringify(e)})))+"\n\t\t\t\t\t)\n\t\t\t\t}\n\t\t\t}\n\t\t",headers:r({},u,{"Content-Type":"application/graphql"})}).then((function(e){return e.json()})).then((function(e){return e.data.elastic77.msearch})).catch((function(e){console.error(e)}))}}))),Ge=r(He),We=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.loadPopularSuggestions=u,t.executeQuery=f,t.setQueryOptions=function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(r){r((0,ke.updateQueryOptions)(e,t)),n&&r(f(e,!0))}},t.updateQuery=function(e){var t=e.componentId,n=e.query,r=e.value,o=e.label,i=void 0===o?null:o,s=e.showFilter,a=void 0===s||s,u=e.URLParams,l=void 0!==u&&u,c=e.componentType,d=void 0===c?null:c,p=e.category,h=void 0===p?null:p,g=e.meta,m=void 0===g?{}:g,y=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],v=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return function(e){var o=n;n&&n.query&&(o=n.query),t.endsWith("__internal")?e((0,Ne.setInternalValue)(t,r,d,h,m)):(e((0,Ne.setValue)(t,r,i,a,l,d,h,m)),v&&(d===x.componentTypes.dynamicRangeSlider?e((0,Ne.setInternalValue)((0,Re.getHistogramComponentID)(t),r,d,h,m)):e((0,Ne.setInternalValue)(t+"__internal",r,d,h,m)))),e((0,ke.setQuery)(t,o)),y&&e(f(t,!0,!1,d))}},t.loadMore=function(e,t){var r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return function(i,a){var u=a(),l=(0,Ce.buildQuery)(e,u.dependencyTree,u.queryList,u.queryOptions),p=l.queryObj,h=l.options,f=u.queryLog;h||(h={}),h=n({},h,t),(!p||p&&!Object.keys(p).length)&&(p={match_all:{}});var g=n({query:n({},p)},h);if(!(0,Ce.compareQueries)(f[e],g))if(i((0,ke.logQuery)(e,g)),u.config&&u.config.enableAppbase){var m,y=u.props[e]||{},v=y.aggregationField;Re.componentToTypeMap[y.componentType]===x.queryTypes.term&&(v=y.dataField);var b=(0,Re.getRSQuery)(e,(0,Re.extractPropsFromState)(u,e,{from:h.from,after:u.aggregations[e]&&u.aggregations[e][v]&&u.aggregations[e][v].after_key||void 0}));m=n(s({},e,b),(0,Re.getDependentQueries)(a(),e,[])),i(d({query:Object.keys(m).map((function(e){return m[e]})),orderOfQueries:[e],appendToHits:r,appendToAggs:o}))}else{i(c([{preference:u.config&&u.config.analyticsConfig&&u.config.analyticsConfig.userId?u.config.analyticsConfig.userId+"_"+e:e},g],[e],r,!1,o))}}},t.loadDataToExport=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",o=arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];return function(s,u){var l=u(),c=l.appbaseRef,d=l.lastUsedAppbaseQuery[t];if(d){var p=d.map((function(e){return e.id===t?n({},e,{deepPaginationConfig:{cursor:r},deepPagination:!0,size:o<1e3?o:1e3,sortField:"_id",sortBy:"asc"}):e}));return o&&Array.isArray(i)&&o<=i.length?i:c.reactiveSearchv3(p).then((function(n){var r=n[t].hits.hits;return Array.isArray(r)&&0!==r.length?s(e(t,r[r.length-1]._id,n[t].hits.total.value,[].concat(a(i),a(r)))):i})).catch((function(e){console.error("Error fetching data to export! ",e)}))}return console.error("Error fetching data to export!")}};var r=i(Q),o=i(He);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(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){return function(t,n){var r=n(),o=r.config,i=r.appbaseRef,s=r.props,a=r.internalValues,u=o&&o.enableAppbase,l=s[e]||{},c=a[e],d=c&&c.value||"";if(u&&(l.enablePopularSuggestions||l.enableQuerySuggestions)){if(o.mongodb)return void t((0,ke.setDefaultPopularSuggestions)([],e.split("__internal")[0]));var p=(0,De.getSuggestionQuery)(n,e);i.getQuerySuggestions(p).then((function(n){var r=n[(0,De.getQuerySuggestionsId)(e)];t(d?(0,ke.setPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]):(0,ke.setDefaultPopularSuggestions)(r&&r.hits&&r.hits.hits,e.split("__internal")[0]))})).catch((function(r){(0,De.handleError)({orderOfQueries:[e],error:r},n,t)}))}}}var l=function(e,t){if(e&&"function"==typeof e){var n=e(t);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(t)};function c(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u=arguments[5];return function(c,d){var p=d(),h=p.appbaseRef,f=p.config,g=p.headers,m=p.analytics,y=p.selectedValues,v={},b=[x.componentTypes.dataSearch,x.componentTypes.categorySearch],C=s&&-1!==b.indexOf(u);if(f.analytics){if(f.analyticsConfig.suggestionAnalytics&&C){var O=m.suggestionsSearchValue;!(!f.analyticsConfig.emptyQuery&&!O)&&(v={"X-Search-Query":O||""})}else{var _=m.searchValue,S=m.searchId,w=(0,r.default)(y);if(S)v=n({"X-Search-Id":S,"X-Search-Query":_||""},w&&{"X-Search-Filters":w});else{var $=!(!f.analyticsConfig.emptyQuery&&!_);v=n($&&{"X-Search-Query":_||""},w&&{"X-Search-Filters":w})}}f.analyticsConfig.userId&&(v["X-User-Id"]=f.analyticsConfig.userId),f.analyticsConfig.customEvents&&(v["X-Search-CustomEvent"]=(0,Q.parseCustomEvents)(f.analyticsConfig.customEvents))}if(t.forEach((function(e){c((0,ke.setLoading)(e,!0)),c((0,ke.setError)(e,null))})),f.graphQLUrl){var E={graphQLUrl:f.graphQLUrl,url:f.url,credentials:f.credentials,app:f.app,query:e,headers:g};l(h.transformRequest,E).then((function(e){(0,o.default)(e).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:C,orderOfQueries:t,appendToHits:i,appendToAggs:a},d,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},d,c)}))})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},d,c)}))}else h.setHeaders(n({},g,v)),h.msearch({type:"*"===f.type?"":f.type,body:e}).then((function(e){(0,De.handleResponseMSearch)({res:e,isSuggestionsQuery:C,orderOfQueries:t,appendToHits:i,appendToAggs:a},d,c)})).catch((function(e){(0,De.handleError)({orderOfQueries:t,error:e},d,c)}))}}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.queryId,r=e.query,o=e.orderOfQueries,i=e.appendToHits,s=void 0!==i&&i,a=e.isSuggestionsQuery,l=void 0!==a&&a,c=e.searchComponentID,d=e.appendToAggs,p=void 0!==d&&d;return function(e,i){var a=i(),d=a.appbaseRef,h=a.config,f=a.headers,g=!1;h&&((0,De.isPropertyDefined)(h.analytics)?g=h.analytics:h.analyticsConfig&&((0,De.isPropertyDefined)(h.analyticsConfig.recordAnalytics)?g=h.analyticsConfig.recordAnalytics:(0,De.isPropertyDefined)(h.analyticsConfig.analytics)&&(g=h.analyticsConfig.analytics)));var m={recordAnalytics:g};h.analyticsConfig&&(m.userId=(0,De.isPropertyDefined)(h.analyticsConfig.userId)?h.analyticsConfig.userId:void 0,m.enableQueryRules=(0,De.isPropertyDefined)(h.analyticsConfig.enableQueryRules)?h.analyticsConfig.enableQueryRules:void 0,m.customEvents=(0,De.isPropertyDefined)(h.analyticsConfig.customEvents)?h.analyticsConfig.customEvents:void 0),o.forEach((function(t){e((0,ke.setLoading)(t,!0)),e((0,ke.setError)(t,null))})),d.setHeaders(n({},f)),l&&c&&e(u(c)),d.reactiveSearchv3(r,m).then((function(n){(0,De.handleResponse)({res:n,orderOfQueries:o,appendToHits:s,appendToAggs:p,query:r,queryId:t},i,e)})).catch((function(n){(0,De.handleError)({orderOfQueries:o,error:n,queryId:t},i,e)}))}}var p=[],h=!1;function f(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=arguments[3],i=arguments[4],u=arguments[5];return function(l,f){var g=f(),m=g.queryLog,y=g.config,v=g.mapData,b=g.watchMan,C=g.dependencyTree,O=g.queryList,_=g.queryOptions,S=g.queryListener,w=g.props,$=g.internalValues,E=y.initialQueriesSyncTime,T=y.initialTimestamp,P=u||(new Date).getTime();y.queryLockConfig instanceof Object&&(E=y.queryLockConfig.lockTime,T=y.queryLockConfig.initialTimestamp);var I=[e],k=[],A={},R=[],L=y&&y.enableAppbase;if(t){var M=b[e]||[];I=[].concat(a(I),a(M))}var j={match_all:{}};if(I.forEach((function(t){var o=(0,Ce.buildQuery)(t,C,O,_),u=o.queryObj,c=o.options,d=["aggs","from","sort"];if(u&&Object.keys(u).length||c&&Object.keys(c).some((function(e){return d.includes(e)}))){(!u||u&&!Object.keys(u).length)&&(u=n({},j));var p=n({query:n({},u)},c,_[t]),h=n({query:n({},u)},c,_[t]),g=m[t];if(r||!(0,Ce.compareQueries)(p,g,!1)){R=[].concat(a(R),[t]);var b=Object.keys(v).includes(t);if(b&&l((0,ke.setLastUsedAppbaseQuery)(s({},t,{queryId:P}))),l((0,ke.logQuery)(t,h)),b&&v[t].query){var E=p.query;p.query={bool:{must:[E,v[t].query]}},v[t].persistMapQuery||l((0,qe.updateMapData)(e,null,!1));var T=f().combinedLog;if((0,Ce.compareQueries)(T[t],p))return;l((0,ke.logCombinedQuery)(t,p))}if((0,De.executeQueryListener)(S[t],g,p),L){var I=void 0,x=e.endsWith("__internal"),M=w[e];x&&M&&(0,Re.isSearchComponent)(M.componentType)&&(I=$[e]&&$[e].value);var Q=(0,Re.getRSQuery)(t,(0,Re.extractPropsFromState)(f(),t,n({},I?{value:I}:null,i?{from:i.from}:null)));if(Q&&(A=n({},A,s({},t,Q),(0,Re.getDependentQueries)(f(),t,R))),b){var V=(0,Re.getInternalComponentID)(t),D=(0,Re.getRSQuery)(V,(0,Re.extractPropsFromState)(f(),V,i?{from:i.from}:null));D&&(A[V]=n({},D,{execute:!1}))}}else{var F=y&&y.analyticsConfig&&y.analyticsConfig.userId?y.analyticsConfig.userId+"_"+t:t;k=[].concat(a(k),[{preference:F},p])}}}})),L&&(k=Object.keys(A).map((function(e){return A[e]}))),k.length)if(L){var Q=[x.componentTypes.dataSearch,x.componentTypes.categorySearch],V=e.endsWith("__internal")&&-1!==Q.indexOf(o);(new Date).getTime()-T<E?(h&&!y.queryLockConfig||setTimeout((function(){var e=[],t=!1,n="",r={},o={},i={};p.forEach((function(s){t||(t=s.isSuggestionsQuery),n||(n=s.searchComponentID),Array.isArray(s.query)&&s.query.forEach((function(e){e.execute&&(i[e.id]=e.execute);var t=e;i[e.id]&&(t.execute=!0),o[e.id]=t})),Array.isArray(s.orderOfQueries)&&s.orderOfQueries.forEach((function(t){r[t.id]?r[t.id]=!0:e=[t].concat(a(e))}))}));var s=Object.values(o);s.length&&l(d({query:s,orderOfQueries:e,isSuggestionsQuery:t,searchComponentID:n})),p=[],l((0,De.updateStoreConfig)({queryLockConfig:void 0}))}),E),h=!0,p.push({query:k,orderOfQueries:R,isSuggestionsQuery:V,searchComponentID:e})):l(d({queryId:P,query:k,orderOfQueries:R,isSuggestionsQuery:V,searchComponentID:e}))}else l(c(k,R,!1,e.endsWith("__internal"),void 0,o))}}}));r(We);We.loadPopularSuggestions,We.executeQuery,We.setQueryOptions,We.updateQuery,We.loadMore,We.loadDataToExport;var Ze=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.addComponent=function(e){return{type:_.ADD_COMPONENT,component:e}},t.removeComponent=function(e){return{type:_.REMOVE_COMPONENT,component:e}},t.watchComponent=function(e,t){return function(n){n(function(e,t){return{type:_.WATCH_COMPONENT,component:e,react:t}}(e,t)),n((0,We.executeQuery)(e))}}}));r(Ze);Ze.addComponent,Ze.removeComponent,Ze.watchComponent;var Ke=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.setComponentProps=function(e,t,o){return{type:_.SET_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.updateComponentProps=function(e,t,o){return{type:_.UPDATE_PROPS,component:e,options:r(n({},t,{componentType:o}))}},t.removeComponentProps=function(e){return{type:_.REMOVE_PROPS,component:e}};var r=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={};return Object.keys(e).forEach((function(n){x.validProps.includes(n)&&(t[n]=e[n])})),t}}));r(Ke);Ke.setComponentProps,Ke.updateComponentProps,Ke.removeComponentProps;var Ye=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){var t=e.url,o=e.app,i=e.credentials,s=e.headers,a=e.documentId,u=e.clickPosition,l=e.queryId,c=e.clickType;a?fetch(t+"/"+o+"/_analytics/click",{method:"PUT",body:JSON.stringify({query_id:l,click_type:c||"result",click_on:r({},a,u+1)}),headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(i)})}):console.warn("ReactiveSearch: document id is required to record the click analytics")}t.setSuggestionsSearchValue=function(e){return{type:_.SET_SUGGESTIONS_SEARCH_VALUE,value:e}},t.clearSuggestionsSearchValue=function(){return{type:_.CLEAR_SUGGESTIONS_SEARCH_VALUE}},t.updateAnalyticsConfig=function(e){return{type:_.UPDATE_ANALYTICS_CONFIG,analyticsConfig:e}},t.getRecentSearches=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{size:5,minChars:3};return function(t,r){var o=r(),i=o.config,s=o.headers,a=o.appbaseRef,u=a.url,l=a.protocol,c=a.credentials,d=i.app,p=i.mongodb,h=(l+"://"+u||"").replace(/\/+$/,""),f={headers:n({},s,{"Content-Type":"application/json",Authorization:"Basic "+btoa(c)})},g="",m=function(e,t){g+=g?"&"+e+"="+t:e+"="+t};return i.analyticsConfig&&i.analyticsConfig.userId&&m("user_id",i.analyticsConfig.userId),e&&(e.size&&m("size",String(e.size)),e.from&&m("from",e.from),e.to&&m("to",e.to),e.minChars&&m("min_chars",String(e.minChars)),e.customEvents&&Object.keys(e.customEvents).forEach((function(t){m(t,e.customEvents[t])}))),p?t({type:_.RECENT_SEARCHES_SUCCESS,data:[]}):fetch(h+"/_analytics/"+d+"/recent-searches?"+g,f).then((function(e){return e.status>=500||e.status>=400?t({type:_.RECENT_SEARCHES_ERROR,error:e}):e.json().then((function(e){return t({type:_.RECENT_SEARCHES_SUCCESS,data:e})})).catch((function(e){return t({type:_.RECENT_SEARCHES_ERROR,error:e})}))})).catch((function(e){return t({type:_.RECENT_SEARCHES_ERROR,error:e})}))}},t.recordResultClick=function(e,t){return function(r,i){var s=i(),a=s.config,u=s.analytics.searchId,l=s.headers,c=s.appbaseRef,d=c.url,p=c.protocol,h=c.credentials,f=a.app,g=p+"://"+d;if(a.analytics&&u){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Click":!0,"X-Search-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,queryId:u})}}},t.recordSuggestionClick=function(e,t){return function(r,i){var s=i(),a=s.config,u=s.analytics.suggestionsSearchId,l=s.headers,c=s.appbaseRef,d=c.url,p=c.protocol,h=c.credentials,f=a.app,g=p+"://"+d;if(a.analytics&&(void 0===a.analyticsConfig||void 0===a.analyticsConfig.suggestionAnalytics||a.analyticsConfig.suggestionAnalytics)&&u&&void 0!==e){var m=l;delete m["X-Search-Query"];var y=(g||"").replace(/\/+$/,"");y.includes("scalr.api.appbase.io")?fetch(y+"/"+f+"/_analytics",{method:"POST",headers:n({},m,{"Content-Type":"application/json",Authorization:"Basic "+btoa(h),"X-Search-Id":u,"X-Search-Suggestions-Click":!0,"X-Search-Suggestions-ClickPosition":e+1})}):o({url:y,app:f,credentials:h,parsedHeaders:m,documentId:t,clickPosition:e,clickType:"suggestion",queryId:u})}}},t.recordImpressions=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(r,o){var i=o(),s=i.config.app,a=i.headers,u=i.appbaseRef,l=u.url,c=u.protocol,d=u.credentials,p=(c+"://"+l).replace(/\/+$/,"");!p.includes("scalr.api.appbase.io")&&e&&t.length&&fetch(p+"/"+s+"/_analytics/search",{method:"PUT",body:JSON.stringify({query_id:e,impressions:t}),keepalive:!0,headers:n({},a,{"Content-Type":"application/json",Authorization:"Basic "+btoa(d)})})}}}));r(Ye);Ye.setSuggestionsSearchValue,Ye.clearSuggestionsSearchValue;var Xe=Ye.updateAnalyticsConfig,Je=(Ye.getRecentSearches,Ye.recordResultClick,Ye.recordSuggestionClick,Ye.recordImpressions,o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(Ze).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ze[e]}})})),Object.keys(Ie).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ie[e]}})})),Object.keys(qe).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return qe[e]}})})),Object.keys(We).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return We[e]}})})),Object.keys(Ne).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ne[e]}})})),Object.keys(Ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ke[e]}})})),Object.keys(Ye).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return Ye[e]}})})),Object.keys(ke).forEach((function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return ke[e]}})}))})));if(r(Je),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],o=0;o<n;){var i=t[o];if(e.call(r,i,o,t))return i;o++}},configurable:!0,writable:!0}),String.prototype.endsWith||(String.prototype.endsWith=function(e){var t=this.length-e.length;return t>=0&&this.lastIndexOf(e)===t}),"function"!=typeof Event){"undefined"!=typeof window&&(window.Event=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t})}var et=Object.freeze({__proto__:null}),tt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n={ENTER_PRESS:"ENTER_PRESS",SUGGESTION_SELECT:"SUGGESTION_SELECT",CLEAR_VALUE:"CLEAR_VALUE",SEARCH_ICON_CLICK:"SEARCH_ICON_CLICK"};t.default=n}));r(tt);var nt=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.constants=t.Reducers=t.polyfills=t.storeKey=t.Actions=t.suggestions=t.causes=t.helper=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.default=function(e){var t=n({},e,{config:n({},e.config,{analyticsConfig:e.config&&e.config.analyticsConfig?n({},Q.defaultAnalyticsConfig,e.config.analyticsConfig):Q.defaultAnalyticsConfig})});return(0,b.createStore)(o.default,t,$)};var r=y(O),o=y(ge),i=m(Je),s=m(Ce),a=y(ve),u=y(x),l=y(et),c=y(tt),d=y(q),p=y(P),h=y(A),f=y(E),g=y(re);function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function y(e){return e&&e.__esModule?e:{default:e}}var v=_.STORE_KEY,C=a.default,S=c.default,w={valueReducer:d.default,queryOptionsReducer:h.default,queryReducer:p.default,dependencyTreeReducer:f.default,propsReducer:g.default};t.helper=s,t.causes=S,t.suggestions=C,t.Actions=i,t.storeKey=v,t.polyfills=l.default,t.Reducers=w,t.constants=u.default;var $=("object"==typeof window&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}):b.compose)((0,b.applyMiddleware)(r.default))})),rt=r(nt),ot=(nt.constants,nt.Reducers,nt.polyfills,nt.storeKey,nt.Actions),it=(nt.suggestions,nt.causes),st=nt.helper;function at(){return(at=Object.assign?Object.assign.bind():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}).apply(this,arguments)}function ut(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,lt(e,t)}function lt(e,t){return(lt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ct(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}function dt(e,t){return t||(t=e.slice(0)),e.raw=t,e}function pt(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}
|
|
7
7
|
/*!
|
|
8
8
|
* isobject <https://github.com/jonschlinkert/isobject>
|
|
9
9
|
*
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
17
17
|
* Released under the MIT License.
|
|
18
18
|
*/
|
|
19
|
-
function Je(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function et(e){var t,n;return!1!==Je(e)&&("function"==typeof(t=e.constructor)&&(!1!==Je(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var tt=Object.prototype,nt=tt.toString,rt=tt.hasOwnProperty,ot=/^\s*function (\w+)/;function it(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(ot);return n&&n[1]}function at(){}var st=function(){return!0},ut=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},lt=Array.isArray||function(e){return"[object Array]"===nt.call(e)},ct=function(e){return"[object Function]"===nt.call(e)};function dt(e,t,n){var r;return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),function(e){Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?ct(e)||pt(this,e)?(lt(e)?this.default=function(){return[].concat(e)}:et(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(ht(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}((r=t,Object.defineProperty(r,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}))),n?function(e){Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}(t):Object.defineProperty(t,"validate",{value:function(){return ht(e+' - "validate" method not supported on this type'),this},enumerable:!1}),ct(t.validator)&&(t.validator=t.validator.bind(t)),t}function pt(e,t,n){void 0===n&&(n=!1);var r,o=e,i=!0;et(e)||(o={type:e});var a,s=o._vueTypes_name?o._vueTypes_name+" - ":"";if(rt.call(o,"type")&&null!==o.type){if(void 0===o.type)throw new TypeError("[VueTypes error]: Setting type to undefined is not allowed.");if(!o.required&&void 0===t)return i;lt(o.type)?(i=o.type.some((function(e){return pt(e,t,!0)})),r=o.type.map((function(e){return it(e)})).join(" or ")):i="Array"===(r=it(o))?lt(t):"Object"===r?et(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(e){if(null==e)return null;var t=e.constructor.toString().match(ot);return t&&t[1]}(t)===r:t instanceof o.type}return i?rt.call(o,"validator")&&ct(o.validator)?(n&&(a=ht,ht=at),i=o.validator(t),a&&(ht=a),i||!1!==n||ht(s+"custom validation failed"),i):i:(!1===n&&ht(s+'value "'+t+'" should be of type "'+r+'"'),!1)}var ht=at;var ft={get any(){return dt("any",{type:null},!0)},get func(){return dt("function",{type:Function},!0).def(ft.sensibleDefaults.func)},get bool(){return dt("boolean",{type:Boolean},!0).def(ft.sensibleDefaults.bool)},get string(){return dt("string",{type:String},!0).def(ft.sensibleDefaults.string)},get number(){return dt("number",{type:Number},!0).def(ft.sensibleDefaults.number)},get array(){return dt("array",{type:Array},!0).def(ft.sensibleDefaults.array)},get object(){return dt("object",{type:Object},!0).def(ft.sensibleDefaults.object)},get integer(){return dt("integer",{type:Number,validator:function(e){return ut(e)}}).def(ft.sensibleDefaults.integer)},get symbol(){return dt("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),lt(e))return e.forEach((function(e){return ft.extend(e)})),this;var t,n,r=e,o=r.name,i=r.validate,a=void 0!==i&&i,s=r.getter,u=void 0!==s&&s,l=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}(r,["name","validate","getter"]);if(t=ft,n=o,rt.call(t,n))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,d=l.type,p=l.validator,h=void 0===p?st:p;if(d&&d._vueTypes_name){delete l.type;for(var f=["type","required","default"],g=0;g<f.length;g+=1){var m=f[g];void 0!==d[m]&&(l[m]=d[m])}a=!1,ct(d.validator)&&(l.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.validator.apply(d,t)&&h.apply(this,t)})}if(u)c={get:function(){return dt(o,Object.assign({},l),a)},enumerable:!0,configurable:!1};else{var y=l.validator;c={value:function(){var e=dt(o,Object.assign({},l),a);if(y){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.validator=y.bind.apply(y,[e].concat(n))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,o,c)},custom:function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return dt(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||ht(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!lt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t='oneOf - value should be one of "'+e.join('", "')+'"',n=e.reduce((function(e,t){return null!=t&&-1===e.indexOf(t.constructor)&&e.push(t.constructor),e}),[]);return dt("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||ht(t),r}})},instanceOf:function(e){return dt("instanceOf",{type:e})},oneOfType:function(e){if(!lt(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(et(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(ct(n.validator))return t=!0,e;if(n.type){if(lt(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return dt("oneOfType",{type:n});var r=e.map((function(e){return e&<(e.type)?e.type.map(it):it(e)})).reduce((function(e,t){return e.concat(lt(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||pt(e.type,t,!0):pt(e,t,!0)}));return n||ht('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return dt("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return pt(e,t)}));return n||ht('arrayOf - value must be an array of "'+it(e)+'"'),n}})},objectOf:function(e){return dt("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return pt(e,t[n])}));return n||ht('objectOf - value must be an object of "'+it(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=dt("shape",{type:Object,validator:function(r){var o=this;if(!et(r))return!1;var i=Object.keys(r);return n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))?(ht('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):i.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(ht('shape - object is missing "'+n+'" property'),!1):pt(e[n],r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}};!function(e){var t={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0};Object.defineProperty(e,"sensibleDefaults",{enumerable:!1,set:function(e){t=!1===e?{}:!0===e?{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}:e},get:function(){return t}})}(ft),ft.utils={validate:function(e,t){return pt(t,e,!0)},toType:dt};var gt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function mt(e){function t(e,t,r){var o=t.trim().split(f);t=o;var i=o.length,a=e.length;switch(a){case 0:case 1:var s=0;for(e=0===a?"":e[0]+" ";s<i;++s)t[s]=n(e,t[s],r).trim();break;default:var u=s=0;for(t=[];s<i;++s)for(var l=0;l<a;++l)t[u++]=n(e[l]+" ",o[s],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var a=e+";",s=2*t+3*n+4*i;if(944===s){e=a.indexOf(":",9)+1;var u=a.substring(e,a.length-1).trim();return u=a.substring(0,e).trim()+u+";",1===E||2===E&&o(u,1)?"-webkit-"+u+u:u}if(0===E||2===E&&!o(a,1))return a;switch(s){case 1015:return 97===a.charCodeAt(10)?"-webkit-"+a+a:a;case 951:return 116===a.charCodeAt(3)?"-webkit-"+a+a:a;case 963:return 110===a.charCodeAt(5)?"-webkit-"+a+a:a;case 1009:if(100!==a.charCodeAt(4))break;case 969:case 942:return"-webkit-"+a+a;case 978:return"-webkit-"+a+"-moz-"+a+a;case 1019:case 983:return"-webkit-"+a+"-moz-"+a+"-ms-"+a+a;case 883:if(45===a.charCodeAt(8))return"-webkit-"+a+a;if(0<a.indexOf("image-set(",11))return a.replace(P,"$1-webkit-$2")+a;break;case 932:if(45===a.charCodeAt(4))switch(a.charCodeAt(5)){case 103:return"-webkit-box-"+a.replace("-grow","")+"-webkit-"+a+"-ms-"+a.replace("grow","positive")+a;case 115:return"-webkit-"+a+"-ms-"+a.replace("shrink","negative")+a;case 98:return"-webkit-"+a+"-ms-"+a.replace("basis","preferred-size")+a}return"-webkit-"+a+"-ms-"+a+a;case 964:return"-webkit-"+a+"-ms-flex-"+a+a;case 1023:if(99!==a.charCodeAt(8))break;return"-webkit-box-pack"+(u=a.substring(a.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+a+"-ms-flex-pack"+u+a;case 1005:return p.test(a)?a.replace(d,":-webkit-")+a.replace(d,":-moz-")+a:a;case 1e3:switch(t=(u=a.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=a.replace(b,"tb");break;case 232:u=a.replace(b,"tb-rl");break;case 220:u=a.replace(b,"lr");break;default:return a}return"-webkit-"+a+"-ms-"+u+a;case 1017:if(-1===a.indexOf("sticky",9))break;case 975:switch(t=(a=e).length-10,s=(u=(33===a.charCodeAt(t)?a.substring(0,t):a).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102<s?"inline-":"")+"box")+";"+a.replace(u,"-webkit-"+u)+";"+a.replace(u,"-ms-"+u+"box")+";"+a}return a+";";case 938:if(45===a.charCodeAt(5))switch(a.charCodeAt(6)){case 105:return u=a.replace("-items",""),"-webkit-"+a+"-webkit-box-"+u+"-ms-flex-"+u+a;case 115:return"-webkit-"+a+"-ms-flex-item-"+a.replace(O,"")+a;default:return"-webkit-"+a+"-ms-flex-line-pack"+a.replace("align-content","").replace(O,"")+a}break;case 973:case 989:if(45!==a.charCodeAt(3)||122===a.charCodeAt(4))break;case 931:case 953:if(!0===S.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):a.replace(u,"-webkit-"+u)+a.replace(u,"-moz-"+u.replace("fill-",""))+a;break;case 962:if(a="-webkit-"+a+(102===a.charCodeAt(5)?"-ms-"+a:"")+a,211===n+i&&105===a.charCodeAt(13)&&0<a.indexOf("transform",10))return a.substring(0,a.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+a}return a}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?r:r.replace(C,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function a(e,t,n,r,o,i,a,s,l,c){for(var d,p=0,h=t;p<x;++p)switch(d=A[p].call(u,e,h,n,r,o,i,a,s,l,c)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?E=1:(E=2,R=e):E=0),s}function u(e,n){var s=e;if(33>s.charCodeAt(0)&&(s=s.trim()),s=[s],0<x){var u=a(-1,n,s,s,$,k,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var d=function e(n,s,u,d,p){for(var h,f,g,b,w,O=0,C=0,S=0,P=0,A=0,R=0,M=g=h=0,L=0,Q=0,V=0,D=0,F=u.length,N=F-1,q="",U="",H="",z="";L<F;){if(f=u.charCodeAt(L),L===N&&0!==C+P+S+O&&(0!==C&&(f=47===C?10:47),P=S=O=0,F++,N++),0===C+P+S+O){if(L===N&&(0<Q&&(q=q.replace(c,"")),0<q.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:q+=u.charAt(L)}f=59}switch(f){case 123:for(h=(q=q.trim()).charCodeAt(0),g=1,D=++L;L<F;){switch(f=u.charCodeAt(L)){case 123:g++;break;case 125:g--;break;case 47:switch(f=u.charCodeAt(L+1)){case 42:case 47:e:{for(M=L+1;M<N;++M)switch(u.charCodeAt(M)){case 47:if(42===f&&42===u.charCodeAt(M-1)&&L+2!==M){L=M+1;break e}break;case 10:if(47===f){L=M+1;break e}}L=M}}break;case 91:f++;case 40:f++;case 34:case 39:for(;L++<N&&u.charCodeAt(L)!==f;);}if(0===g)break;L++}switch(g=u.substring(D,L),0===h&&(h=(q=q.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<Q&&(q=q.replace(c,"")),f=q.charCodeAt(1)){case 100:case 109:case 115:case 45:Q=s;break;default:Q=T}if(D=(g=e(s,Q,g,f,p+1)).length,0<x&&(w=a(3,g,Q=t(T,q,V),s,$,k,D,f,p,d),q=Q.join(""),void 0!==w&&0===(D=(g=w.trim()).length)&&(f=0,g="")),0<D)switch(f){case 115:q=q.replace(_,i);case 100:case 109:case 45:g=q+"{"+g+"}";break;case 107:g=(q=q.replace(m,"$1 $2"))+"{"+g+"}",g=1===E||2===E&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=q+g,112===d&&(U+=g,g="")}else g="";break;default:g=e(s,t(s,q,V),g,d,p+1)}H+=g,g=V=Q=M=h=0,q="",f=u.charCodeAt(++L);break;case 125:case 59:if(1<(D=(q=(0<Q?q.replace(c,""):q).trim()).length))switch(0===M&&(h=q.charCodeAt(0),45===h||96<h&&123>h)&&(D=(q=q.replace(" ",":")).length),0<x&&void 0!==(w=a(1,q,s,n,$,k,U.length,d,p,d))&&0===(D=(q=w.trim()).length)&&(q="\0\0"),h=q.charCodeAt(0),f=q.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){z+=q+u.charAt(L);break}default:58!==q.charCodeAt(D-1)&&(U+=r(q,h,f,q.charCodeAt(2)))}V=Q=M=h=0,q="",f=u.charCodeAt(++L)}}switch(f){case 13:case 10:47===C?C=0:0===1+h&&107!==d&&0<q.length&&(Q=1,q+="\0"),0<x*j&&a(0,q,s,n,$,k,U.length,d,p,d),k=1,$++;break;case 59:case 125:if(0===C+P+S+O){k++;break}default:switch(k++,b=u.charAt(L),f){case 9:case 32:if(0===P+O+C)switch(A){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===P+C+O&&(Q=V=1,b="\f"+b);break;case 108:if(0===P+C+O+I&&0<M)switch(L-M){case 2:112===A&&58===u.charCodeAt(L-3)&&(I=A);case 8:111===R&&(I=R)}break;case 58:0===P+C+O&&(M=L);break;case 44:0===C+S+P+O&&(Q=1,b+="\r");break;case 34:case 39:0===C&&(P=P===f?0:0===P?f:P);break;case 91:0===P+C+S&&O++;break;case 93:0===P+C+S&&O--;break;case 41:0===P+C+O&&S--;break;case 40:if(0===P+C+O){if(0===h)switch(2*A+3*R){case 533:break;default:h=1}S++}break;case 64:0===C+S+P+O+M+g&&(g=1);break;case 42:case 47:if(!(0<P+O+S))switch(C){case 0:switch(2*f+3*u.charCodeAt(L+1)){case 235:C=47;break;case 220:D=L,C=42}break;case 42:47===f&&42===A&&D+2!==L&&(33===u.charCodeAt(D+2)&&(U+=u.substring(D,L+1)),b="",C=0)}}0===C&&(q+=b)}R=A,A=f,L++}if(0<(D=U.length)){if(Q=s,0<x&&(void 0!==(w=a(2,U,Q,n,$,k,D,d,p,d))&&0===(U=w).length))return z+U+H;if(U=Q.join(",")+"{"+U+"}",0!=E*I){switch(2!==E||o(U,2)||(I=0),I){case 111:U=U.replace(v,":-moz-$1")+U;break;case 112:U=U.replace(y,"::-webkit-input-$1")+U.replace(y,"::-moz-$1")+U.replace(y,":-ms-input-$1")+U}I=0}}return z+U+H}(T,s,n,0,0);return 0<x&&(void 0!==(u=a(-2,d,s,s,$,k,d.length,0,0,0))&&(d=u)),"",I=0,k=$=1,d}var l=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,_=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,O=/-self|flex-/g,C=/[^]*?(:[rp][el]a[\w-]+)[^]*/,S=/stretch|:\s*\w+\-(?:conte|avail)/,P=/([^-])(image-set\()/,k=1,$=1,I=0,E=1,T=[],A=[],x=0,R=null,j=0;return u.use=function e(t){switch(t){case void 0:case null:x=A.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:A[x++]=t;break;case Boolean:j=0|!!t}}return e},u.set=s,void 0!==e&&s(e),u}var yt,vt,bt=o((function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,a,s,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})),_t=/[A-Z]|^ms/g,wt=(yt=function(e){return e.replace(_t,"-$&").toLowerCase()},vt={},function(e){return void 0===vt[e]&&(vt[e]=yt(e)),vt[e]}),Ot=function(e,t){return null==t||"boolean"==typeof t?"":1===gt[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},Ct=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var a=void 0;switch(typeof i){case"boolean":break;case"function":a=e([i()]);break;case"object":if(Array.isArray(i))a=e(i);else for(var s in a="",i)i[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=i}a&&(o&&(o+=" "),o+=a)}}return o},St="undefined"!=typeof document;function Pt(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var kt=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=Pt(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var r=Pt(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(Pt(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();var $t=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,o=t.key||"css",i=bt((function(e){n+=e,St&&s.insert(e,l)}));void 0!==t.prefix&&(r={prefix:t.prefix});var a={registered:{},inserted:{},nonce:t.nonce,key:o},s=new kt(t);St&&s.inject();var u=new mt(r);u.use(t.stylisPlugins)(i);var l="";function c(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return f.call(this,e);default:var r=a.registered[e];return!1===t&&void 0!==r?r:e}}var d,p,h=new WeakMap;function f(e){if(h.has(e))return h.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=c.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==a.registered[e[n]]?t+=n+"{"+a.registered[e[n]]+"}":t+=wt(n)+":"+Ot(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===a.registered[e[n][0]]?e[n].forEach((function(e){t+=wt(n)+":"+Ot(n,e)+";"})):t+=n+"{"+c.call(this,e[n],!1)+"}"}),this),h.set(e,t),t}var g=/label:\s*([^\s;\n{]+)\s*;/g,m=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},y=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=c.call(this,e,!1)):n+=e[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return i.forEach((function(r,o){n+=c.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])}),this),p=n,n=n.replace(g,(function(e,t){return r+="-"+t,""})),d=m(n,r),n};function v(e,t){void 0===a.inserted[d]&&(n="",u(e,t),a.inserted[d]=n)}var b=function(){var e=y.apply(this,arguments),t=o+"-"+d;return void 0===a.registered[t]&&(a.registered[t]=p),v("."+t,e),t};function _(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==a.registered[t]?e.push(t):n+=t+" "})),n}function w(e,t){var n=[],r=_(n,e);return n.length<2?e:r+b(n,t)}function O(e){a.inserted[e]=!0}if(St){var C=document.querySelectorAll("[data-emotion-"+o+"]");Array.prototype.forEach.call(C,(function(e){s.tags[0].parentNode.insertBefore(e,s.tags[0]),e.getAttribute("data-emotion-"+o).split(" ").forEach(O)}))}var S={flush:function(){St&&(s.flush(),s.inject()),a.inserted={},a.registered={}},hydrate:function(e){e.forEach(O)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return w(Ct(t))},merge:w,getRegisteredStyles:_,injectGlobal:function(){var e=y.apply(this,arguments);v("",e)},keyframes:function(){var e=y.apply(this,arguments),t="animation-"+d;return v("","@keyframes "+t+"{"+e+"}"),t},css:b,sheet:s,caches:a};return e.__SECRET_EMOTION__=S,S}(void 0!==a?a:{}),It=($t.flush,$t.hydrate,$t.cx),Et=($t.merge,$t.getRegisteredStyles),Tt=$t.injectGlobal,At=($t.keyframes,$t.css),xt=($t.sheet,$t.caches,function(e){for(var t=arguments,n=1;n<arguments.length;n++)for(var r in arguments[n])e[r]=t[n][r];return e}),Rt="__emotion_styles";function jt(e){return(jt="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)}function Mt(e){return Array.isArray(e)?e.join(" "):"object"===jt(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var Lt=function(e,t){var n,r,o,i;void 0!==t&&(n=t.e,r=t.label,o=t.target,i=t.props);var a=e.__emotion_real===e,s=void 0===n&&a&&e.__emotion_base||e;return function(){var t=a&&void 0!==e[Rt]?e[Rt].slice(0):[];if(void 0!==r&&t.push("label:".concat(r,";")),void 0===n){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];if(null===l[0]||void 0===l[0].raw)t.push.apply(t,l);else{t.push(l[0][0]);for(var d=l.length,p=1;p<d;p++)t.push(l[p],l[0][p])}}var h={name:"Styled".concat(e.name||r||"Component"),functional:!0,inject:{theme:{from:"theme_reactivesearch",default:null}},props:i,render:function(r,i){var a=i.data,s=i.children,u=i.props,l=i.injections,c="",d=[],p=Mt(a.class),h={};for(var f in a.attrs)"$"!==f[0]&&(h[f]=a.attrs[f]);if(p&&(c+=void 0===n?Et(d,p):"".concat(p," ")),void 0===n){var g={mergedProps:xt({theme:l.theme},u)};c+=At.apply(g,t.concat(d))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,xt({},a,{attrs:h,class:c}),s)}};return h[Rt]=t,h.__emotion_base=s,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};function Qt(){return(Qt=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}).apply(this,arguments)}function Vt(e){return Math.round(255*e)}function Dt(e,t,n){return Vt(e)+","+Vt(t)+","+Vt(n)}function Ft(e,t,n,r){if(void 0===r&&(r=Dt),0===t)return r(n,n,n);var o=e%360/60,i=(1-Math.abs(2*n-1))*t,a=i*(1-Math.abs(o%2-1)),s=0,u=0,l=0;o>=0&&o<1?(s=i,u=a):o>=1&&o<2?(s=a,u=i):o>=2&&o<3?(u=i,l=a):o>=3&&o<4?(u=a,l=i):o>=4&&o<5?(s=a,l=i):o>=5&&o<6&&(s=i,l=a);var c=n-i/2;return r(s+c,u+c,l+c)}var Nt={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var qt=/^#[a-fA-F0-9]{6}$/,Ut=/^#[a-fA-F0-9]{8}$/,Ht=/^#[a-fA-F0-9]{3}$/,zt=/^#[a-fA-F0-9]{4}$/,Bt=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,Gt=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,Wt=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,Zt=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function Yt(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return Nt[t]?"#"+Nt[t]:e}(e);if(t.match(qt))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(Ut)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(Ht))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(zt)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=Bt.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=Gt.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var a=Wt.exec(t);if(a){var s="rgb("+Ft(parseInt(""+a[1],10),parseInt(""+a[2],10)/100,parseInt(""+a[3],10)/100)+")",u=Bt.exec(s);if(!u)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+s+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=Zt.exec(t);if(l){var c="rgb("+Ft(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",d=Bt.exec(c);if(!d)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+c+".");return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+l[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function Kt(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),a=Math.min(n,r,o),s=(i+a)/2;if(i===a)return void 0!==e.alpha?{hue:0,saturation:0,lightness:s,alpha:e.alpha}:{hue:0,saturation:0,lightness:s};var u=i-a,l=s>.5?u/(2-i-a):u/(i+a);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:s,alpha:e.alpha}:{hue:t,saturation:l,lightness:s}}(Yt(e))}var Xt=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function Jt(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function en(e){return Jt(Math.round(255*e))}function tn(e,t,n){return Xt("#"+en(e)+en(t)+en(n))}function nn(e,t,n){return Ft(e,t,n,tn)}function rn(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Xt("#"+Jt(e)+Jt(t)+Jt(n));if("object"==typeof e&&void 0===t&&void 0===n)return Xt("#"+Jt(e.red)+Jt(e.green)+Jt(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function on(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=Yt(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?rn(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?rn(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var an="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function sn(e){if("object"!=typeof e)throw new Error(an);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return on(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return rn(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?nn(e,t,n):"rgba("+Ft(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?nn(e.hue,e.saturation,e.lightness):"rgba("+Ft(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return nn(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return nn(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}(e);throw new Error(an)}function un(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function ln(e,t,n){return Math.max(e,Math.min(t,n))}function cn(e,t){var n=Kt(t);return sn(Qt({},n,{lightness:ln(0,1,n.lightness-parseFloat(e))}))}var dn=un(cn);function pn(e,t){var n=Kt(t);return sn(Qt({},n,{lightness:ln(0,1,n.lightness+parseFloat(e))}))}var hn=un(pn);function fn(){var e=Ke(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ",";\n\tcolor: ",";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ",";\n\t\tbox-shadow: ",";\n\t}\n\n\t",";\n\t",";\n\t",";\n"]);return fn=function(){return e},e}function gn(){var e=Ke(["\n\tbackground-color: ",";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"]);return gn=function(){return e},e}function mn(){var e=Ke(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"]);return mn=function(){return e},e}function yn(){var e=Ke(["\n\tbackground-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"]);return yn=function(){return e},e}function vn(){var e=Ke(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]);return vn=function(){return e},e}function bn(){var e=Ke(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"]);return bn=function(){return e},e}function _n(){var e=Ke(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\ta {\n\t\tmargin: 0 3px;\n\t}\n"]);return _n=function(){return e},e}function wn(){var e=Ke(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"]);return wn=function(){return e},e}var On=function(e){var t=e.colors.borderColor;return At(wn(),t||"#fff")},Cn=At(_n()),Sn=At(bn()),Pn=(At(vn()),function(e){var t=e.theme;return At(yn(),t.colors.primaryColor,t.colors.primaryTextColor,dn(.1,t.colors.primaryColor))}),kn=function(){return At(mn())},$n=function(e){var t=e.theme;return At(gn(),t.colors.backgroundColor?hn(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?hn(.2,t.colors.backgroundColor):"#fafafa")},In=Lt("a")(fn(),(function(e){return e.theme.colors.backgroundColor||"#eee"}),(function(e){return e.theme.colors.textColor}),(function(e){var t=e.theme;return t.colors.backgroundColor?dn(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return on(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+on(e.theme.colors.primaryColor,.3)}),(function(e){return e.primary?Pn:null}),(function(e){return e.disabled?$n:null}),(function(e){return e.large&&kn})),En=At({margin:"5px 0",display:"flex",justifyContent:"center"});ft.sensibleDefaults=!1;var Tn=ft.oneOfType([ft.string,ft.arrayOf(ft.string),ft.object,ft.arrayOf(ft.object)]);var An={any:ft.any,bool:ft.bool,boolRequired:ft.bool.isRequired,components:ft.arrayOf(ft.string),children:ft.any,data:ft.arrayOf(ft.object),dataFieldArray:ft.oneOfType([ft.string,ft.arrayOf(ft.string)]).isRequired,dataNumberBox:ft.shape({label:ft.string,start:ft.number.isRequired,end:ft.number.isRequired}).isRequired,date:ft.oneOfType([ft.string,ft.arrayOf(ft.string)]),dateObject:ft.object,excludeFields:ft.arrayOf(ft.string),fieldWeights:ft.arrayOf(ft.number),filterLabel:ft.string,func:ft.func,funcRequired:ft.func.isRequired,fuzziness:ft.oneOf([0,1,2,"AUTO"]),headers:ft.object,hits:ft.arrayOf(ft.object),iconPosition:ft.oneOf(["left","right"]),includeFields:ft.arrayOf(ft.string),labelPosition:ft.oneOf(["left","right","top","bottom"]),number:ft.number,options:ft.oneOfType([ft.arrayOf(ft.object),ft.object]),paginationAt:ft.oneOf(["top","bottom","both"]),range:ft.shape({start:ft.number.isRequired,end:ft.number.isRequired}),rangeLabels:ft.shape({start:ft.string.isRequired,end:ft.string.isRequired}),react:ft.shape({and:Tn,or:Tn,not:Tn}),selectedValues:ft.object,selectedValue:ft.oneOfType([ft.string,ft.arrayOf(ft.string),ft.arrayOf(ft.object),ft.object,Number,ft.arrayOf(Number)]),suggestions:ft.arrayOf(ft.object),supportedOrientations:ft.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:ft.oneOf(["asc","desc"]),sortOptions:ft.arrayOf(ft.shape({label:ft.string,dataField:ft.string,sortBy:ft.string})),sortByWithCount:ft.oneOf(["asc","desc","count"]),stats:ft.arrayOf(ft.object),string:ft.string,stringArray:ft.arrayOf(ft.string),stringOrArray:ft.oneOfType([ft.string,ft.arrayOf(ft.string)]),stringRequired:ft.string.isRequired,style:ft.object,themePreset:ft.oneOf(["light","dark"]),queryFormatSearch:ft.oneOf(["and","or"]),queryFormatNumberBox:ft.oneOf(["exact","lte","gte"]),params:ft.object.isRequired,props:ft.object,rangeLabelsAlign:ft.oneOf(["left","right"]),title:ft.oneOfType([ft.string,ft.any]),tooltipTrigger:ft.oneOf(["always","none","hover"]),location:ft.custom((function(e){return e&&e.lat&&e.lng?isNaN(e.lat)?(console.error(new Error("lat value must be a number")),!1):isNaN(e.lat)?(console.error(new Error("lng value must be a number")),!1):e.lat<-90||e.lat>90?(console.error(new Error("lat value should be between -90 and 90.")),!1):!(e.lat<-180||e.lat>180)||(console.error(new Error("lng value should be between -180 and 180.")),!1):(console.error(new Error("location must be an object with lat and lng keys defined")),!1)})),unit:ft.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:ft.string.def(void 0),analyticsConfig:ft.shape({searchStateHeader:ft.bool,emptyQuery:ft.bool,suggestionAnalytics:ft.bool,userId:ft.string,customEvents:ft.object}),appbaseConfig:ft.shape({enableQueryRules:ft.bool,recordAnalytics:ft.bool,searchStateHeader:ft.bool,emptyQuery:ft.bool,suggestionAnalytics:ft.bool,userId:ft.string,customEvents:ft.object})},xn=Be.getClassName,Rn=Be.handleA11yAction;function jn(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Mn={name:"Pagination",functional:!0,props:{currentPage:An.number,innerClass:An.style,pages:An.number,setPage:An.func,totalPages:An.number,showEndPage:An.bool,prevLabel:An.string,nextLabel:An.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},i=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var a=xn(r.innerClass,"button"),s=0===r.currentPage,u=a||s?a+" "+(s?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,i=r.totalPages,s=r.setPage,u=r.showEndPage,l="start"===e?jn(t,o,u):Math.max(2,Math.ceil(i-(t-1)/2+1)),c=[];if(l<=i){var d=t<i?l+(t-1):i+1;u&&(d="start"===e?l+(Math.ceil(t/2)-t%2):i+1),o>i-t+2&&(d=(l=Math.max(2,i-t+2))+t);for(var p=function(e){var t=o===e-1,r=n(In,{class:a||t?a+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return Rn(t,(function(){return s(e-1)}))},click:function(){return s(e-1)}}},[e]);e<=i+1&&c.push(r)},h=l;h<Math.min(i+1,d);h+=1)p(h)}return c},c=function(){var e=r.showEndPage,t=r.currentPage,n=r.totalPages,o=r.pages;return e?t<=n-o+2||n<=o?l("start"):null:l("start")};return n("div",{class:Cn+" "+xn(r.innerClass,"pagination")},[n(In,{class:xn(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return Rn(e,o)},click:o}},[r.prevLabel||"Prev"]),n(In,{class:u,attrs:{primary:s,tabIndex:"0"},on:{keyPress:function(e){return Rn(e,(function(){return r.setPage(0)}))},click:function(){return r.setPage(0)}}},["1"]),r.showEndPage&&r.currentPage>=Math.floor(r.pages/2)+!!(r.pages%2)?n("span",["..."]):null,c(),r.showEndPage&&r.pages>2&&r.currentPage<=r.totalPages-Math.ceil(.75*r.pages)?n("span",["..."]):null,r.showEndPage&&r.totalPages>=r.pages&&l("end"),n(In,{class:xn(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return Rn(e,i)},click:i}},[r.nextLabel||"Next"])])}};function Ln(){var e=Ke(["\n\twidth: 110px;\n"]);return Ln=function(){return e},e}Mn.install=function(e){e.component(Mn.name,Mn)};var Qn=Lt("img")(Ln()),Vn={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(Qn,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},Dn=function(){return Math.random().toString(36).substring(7).split("").join(".")};Dn(),Dn();function Fn(e,t){return function(){return t(e.apply(this,arguments))}}var Nn=Object.prototype.hasOwnProperty;function qn(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var Un=function(){return{}},Hn={},zn=function(e,t){return void 0===e&&(e=Un),void 0===t&&(t=Hn),function(n){var r=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var i;return Ge(Ge({},r),{},((i={})[o]=e[o](t,n),i))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")}(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=Ge(Ge({},r(this.$$store.getState(),this.$props||{})),function(e,t){if("function"==typeof e)return Fn(e,t);if("object"!=typeof e||null===e)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===e?"null":typeof e)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=Fn(o,t))}return n}(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return Ge(Ge({},t),{},((r={})[n]=e[n],r))}),{})},created:function(){var e,t,n,o,i=this;this._unsubscribe=(e=this.$$store,n=function(e){Object.keys(e).forEach((function(t){i.$set(i,t,e[t])}))},o=(t=function(e){return r(e,i.$props||{})})(e.getState()),e.subscribe((function(){var r=t(e.getState());if(!function(e,t){if(qn(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o+=1)if(!Nn.call(t,n[o])||!qn(e[n[o]],t[n[o]]))return!1;return!0}(o,r)){var i=o;n(o=r,i)}})))},beforeDestroy:function(){this._unsubscribe()}}}},Bn=Be.updateDefaultQuery,Gn=Be.updateCustomQuery,Wn=Be.isEqual,Zn=function(){return zn.apply(void 0,arguments)},Yn=function(e){return"function"==typeof e};function Kn(e,t){var n=Object.keys(e).map((function(t){return e[t]?t:null}));return n.includes(t)?n.filter((function(e){return e!==t})):[].concat(n,[t])}var Xn=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$scopedSlots||t.$props).render;return n?n(e):null},Jn=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||e.$props).render;return Boolean(t)},er=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return A.includes(e)}))},tr=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},nr=function(e,t,n,r){Bn(e,Ge(Ge({},n),{},{setDefaultQuery:t}),r)},rr=function(e,t,n,r){Gn(e,Ge(Ge({},n),{},{setCustomQuery:t}),r)},or=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||Wn(t(n,r),e(n,r))},ir=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},ar=He.addComponent,sr=He.removeComponent,ur=He.watchComponent,lr=He.setQueryListener,cr=He.setComponentProps,dr=He.updateComponentProps,pr=Be.pushToAndClause,hr=Be.checkPropChange,fr=Be.checkSomePropChange,gr=function(e,t){return{savedComponentProps:e.props[t.componentId]}},mr={addComponent:ar,removeComponent:sr,setQueryListener:lr,watchComponent:ur,setComponentProps:cr,updateComponentProps:dr},yr=function(e,t){return void 0===t&&(t={}),Zn(gr,mr)(function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",created:function(){var e=Ge({},this.$attrs),t={};Object.keys(e).forEach((function(n){t[function(e){return void 0===e&&(e=""),e.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("")||""}(n)]=e[n]})),this.componentProps=t,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react},beforeMount:function(){var e=this;this.addComponent(this.componentId);this.setQueryListener(this.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))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType),(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===T.reactiveComponent)&&(this.internalComponent=$e(this.componentId)),this.internalComponent&&(this.addComponent(this.internalComponent),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType))},mounted:function(){this.internalComponent&&this.setReact(this.componentProps)},beforeDestroy:function(){this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent)},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=er(e);fr(e,this.savedComponentProps,r,(function(){n.updateComponentProps(n.componentId,e,t.componentType),n.updateComponentProps(n.internalComponent,e,t.componentType)}))}},react:function(e,t){var n=this;hr(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e){var t=e.react;if(this.internalComponent)if(t){var n=pr(t,this.internalComponent);this.watchComponent(e.componentId,n)}else this.watchComponent(e.componentId,{and:this.internalComponent});else this.watchComponent(e.componentId,t)}},render:function(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}}}(e,t))};function vr(){return(vr=Object.assign||function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var br=["attrs","props","domProps"],_r=["class","style","directives"],wr=["on","nativeOn"],Or=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Cr=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==br.indexOf(n))e[n]=vr({},e[n],t[n]);else if(-1!==_r.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=r.concat(o)}else if(-1!==wr.indexOf(n))for(var i in t[n])if(e[n][i]){var a=e[n][i]instanceof Array?e[n][i]:[e[n][i]],s=t[n][i]instanceof Array?t[n][i]:[t[n][i]];e[n][i]=a.concat(s)}else e[n][i]=t[n][i];else if("hook"==n)for(var u in t[n])e[n][u]=e[n][u]?Or(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})};function Sr(){var e=Ke(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"]);return Sr=function(){return e},e}var Pr=Lt("h2")(Sr(),(function(e){return e.theme.colors.titleColor}));function kr(){var e=Ke(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ",";\n\tcolor: ",";\n\t","; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ",";\n\t\tpadding-left: ",";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"]);return kr=function(){return e},e}function $r(){var e=Ke(["\n\twidth: 160px;\n\theight: 160px;\n\t",";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ",";\n"]);return $r=function(){return e},e}function Ir(){var e=Ke(["\n\twidth: 100px;\n\theight: 100px;\n"]);return Ir=function(){return e},e}function Er(){var e=Ke(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]);return Er=function(){return e},e}var Tr=At(Er()),Ar=At(Ir()),xr=Lt("div")($r(),(function(e){return e.small?Ar:null}),(function(e){return"url("+e.src+")"})),Rr=Lt("a")(kr(),(function(e){var t=e.theme;return t.colors.backgroundColor?hn(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?hn(.3,t.colors.backgroundColor):hn(.68,t.colors.textColor)}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null}),(function(e){var t=e.theme;return t.colors.backgroundColor?hn(.2,t.colors.backgroundColor):"#fdfefd"}),(function(e){return e.image?e.small?"calc(100% - 100px)":"calc(100% - 160px)":"100%"}),(function(e){return e.image?"10px":0})),jr={name:"ResultListWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Cr([{attrs:{className:Tr}},n]),[r])}};function Mr(){var e=Ke(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ",";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ",";\n\t",";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"]);return Mr=function(){return e},e}function Lr(){var e=Ke(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ",";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"]);return Lr=function(){return e},e}function Qr(){var e=Ke(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]);return Qr=function(){return e},e}jr.install=function(e){e.component(jr.name,jr)};var Vr=At(Qr()),Dr=Lt("div")(Lr(),(function(e){return e.theme.colors.backgroundColor||"#fcfcfc"})),Fr=Lt("a")(Mr(),(function(e){var t=e.theme;return t.colors.backgroundColor?hn(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),Nr={name:"ResultCardsWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Cr([{attrs:{className:Vr}},n]),[r])}};function qr(){var e=Ke(["\n\t\t\tflex-basis: ",";\n\t\t"]);return qr=function(){return e},e}function Ur(){var e=Ke(["\n\t\t\tflex-direction: ",";\n\t\t"]);return Ur=function(){return e},e}function Hr(){var e=Ke(["\n\t\t\tflex: ",";\n\t\t"]);return Hr=function(){return e},e}function zr(){var e=Ke(["\n\t\t\talign-items: ",";\n\t\t"]);return zr=function(){return e},e}function Br(){var e=Ke(["\n\t\t\tjustify-content: ",";\n\t\t"]);return Br=function(){return e},e}function Gr(){var e=Ke(["\n\tdisplay: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ",";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ",";\n\t\t}\n\t}\n"]);return Gr=function(){return e},e}function Wr(){var e=Ke(["\n\tborder: 1px solid ",";\n"]);return Wr=function(){return e},e}function Zr(){var e=Ke(["\n\tflex-direction: column-reverse;\n"]);return Zr=function(){return e},e}function Yr(){var e=Ke(["\n\tflex-direction: column;\n"]);return Yr=function(){return e},e}function Kr(){var e=Ke(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]);return Kr=function(){return e},e}function Xr(){var e=Ke(["\n\tflex-direction: row;\n\talign-items: center;\n"]);return Xr=function(){return e},e}Nr.install=function(e){e.component(Nr.name,Nr)};var Jr=At(Xr()),eo=At(Kr()),to=At(Yr()),no=At(Zr()),ro=function(e){var t=e.theme.colors;return At(Wr(),t.borderColor||"#ccc")},oo=Lt("div")(Gr(),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return("left"===e.labelPosition||"right"===e.iconPosition)&&Jr}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&eo}),(function(e){return"top"===e.labelPosition&&to}),(function(e){return"bottom"===e.labelPosition&&no}),(function(e){return e.showBorder&&ro}),(function(e){return e.justifyContent&&At(Br(),e.justifyContent)}),(function(e){return e.alignItems&&At(zr(),e.alignItems)}),(function(e){return e.flex&&At(Hr(),e.flex)}),(function(e){return e.direction&&At(Ur(),e.direction)}),(function(e){return e.basis&&At(qr(),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||hn(.3,t.textColor)}),(function(e){return e.theme.colors.textColor}));function io(){var e=Ke(["\n\tcolor: #424242;\n\theight: 32px;\n\tfont-size: 0.82rem;\n\tpadding: 0 25px 0 10px;\n\tbackground: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)\n\t\tno-repeat 95% 50%;\n\tbackground-color: #fff;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t-webkit-border-radius: 0;\n\tborder-radius: 0;\n\tborder: 0;\n\toutline: 1px solid #ddd;\n\toutline-offset: -1px;\n"]);return io=function(){return e},e}function ao(){var e=Ke(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]);return ao=function(){return e},e}var so=At(ao()),uo=At(io()),lo=He.recordImpressions,co=Be.isEqual,po={name:"ImpressionTracker",inject:["$$store"],props:{hits:An.hits},created:function(){this.currentHits=[],this.trackedIds={},this.waitingToBeTracked={}},mounted:function(){this.setCurrentHits(this.hits),window&&window.addEventListener("scroll",this.tracker)},destroy:function(){this.clearTrackerInterval()},watch:{hits:function(e,t){if(e&&e!==t){var n=t.map((function(e){return e._id})),r=e.map((function(e){return e._id}));co(r,n)||this.setCurrentHits(e)}}},methods:{inViewPort:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},setCurrentHits:function(e){this.currentHits=e,this.trackedIds={},e&&e.length&&(this.tracker(),this.setTrackerInterval())},recordImpression:function(){var e=this;if(Object.keys(this.waitingToBeTracked).length){var t=Ge({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e,t,n=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(e){var t=document.getElementById(e);if(t&&n.inViewPort(t)){var r=n.currentHits.find((function(t){return t._id===e}));n.trackedIds[e]=!0,n.addToWaitingList(r)}})),e=this.recordImpression,t=300,clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default}},ho=Zn((function(){return null}),{trackImpressions:lo})(po),fo=He.setStreaming,go=He.setQueryOptions,mo=He.updateQuery,yo=He.loadMore,vo=He.setValue,bo=He.updateComponentProps,_o=He.setDefaultQuery,wo=He.recordResultClick,Oo=Be.isEqual,Co=Be.getQueryOptions,So=Be.getClassName,Po=Be.parseHits,ko=Be.getOptionsFromQuery,$o=Be.getCompositeAggsQuery,Io=Be.getResultStats,Eo={name:"ReactiveList",components:{ResultListWrapper:jr,ResultCardsWrapper:Nr},data:function(){var e=this.$props,t=0;return e.currentPage&&(t=Math.max(e.currentPage-1,0)),this.__state={from:t*e.size,isLoading:!0,currentPageState:t},this.__state},created:function(){var e=this,t=this.$props,n=t.distinctField,r=t.distinctFieldConfig;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll"),this.config.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.config.enableAppbase||!n&&!r||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.defaultPage>=0&&(this.currentPageState=this.defaultPage,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=this.defaultSortOption?this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0,this.updateComponentProps(this.componentId,{from:this.from},T.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},T.reactiveList)},props:{currentPage:ft.number.def(0),includeFields:An.includeFields.def(["*"]),className:An.string,componentId:An.stringRequired,dataField:An.stringRequired,aggregationField:An.string,aggregationSize:ft.number,defaultQuery:An.func,defaultSortOption:An.string,excludeFields:An.excludeFields.def([]),innerClass:An.style,listClass:ft.string.def(""),loader:An.title,render:An.func,renderItem:An.func,renderNoResults:ft.any.def("No Results found."),renderError:An.title,renderResultStats:An.func,pages:ft.number.def(5),pagination:ft.bool.def(!1),infiniteScroll:ft.bool.def(!0),paginationAt:An.paginationAt.def("bottom"),react:An.react,scrollOnChange:ft.bool.def(!0),showResultStats:ft.bool.def(!0),showEndPage:ft.bool.def(!1),size:ft.number.def(10),sortBy:An.sortBy,sortOptions:An.sortOptions,stream:An.bool,URLParams:ft.bool.def(!1),prevLabel:An.string,nextLabel:An.string,distinctField:An.string,distinctFieldConfig:An.props},computed:{shouldRenderPagination:function(){return this.pagination&&!this.aggregationField},totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},hasPageChangeListener:function(){return this.$listeners&&this.$listeners.pageChange},hasResultStatsListener:function(){return this.$listeners&&this.$listeners.resultStats},stats:function(){var e=this.getAllData().filteredResults;return Ge(Ge({},Io(this)),{},{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return Jn(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination}},watch:{sortOptions:function(e,t){Oo(t,e)||this.updateQueryOptions(this.$props)},sortBy:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},size:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},dataField:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},includeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},excludeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},defaultQuery:function(e,t){if(!or(e,t,null,this.$props)){var n=Co(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),ko(this.$defaultQuery)&&(n=Ge(Ge({},n),ko(this.$defaultQuery))),nr(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,Ge(Ge({},n),this.getAggsQuery()),!i),this.updateQuery({componentId:this.internalComponent,query:i},!0),this.currentPageState=0,this.from=0}},stream:function(e,t){t!==e&&this.setStreaming(this.$props.componentId,e)},streamHits:function(){this.$emit("data",this.getData())},promotedResults:function(e,t){Oo(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){Oo(e,t)||this.$emit("data",this.getData())},time:function(e,t){Oo(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getAllData()),this.shouldRenderPagination?this.isLoading&&(t||e)&&(this.hasPageChangeListener?(this.$emit("pageChange",this.currentPageState+1,this.totalPages),this.$emit("page-change",this.currentPageState+1,this.totalPages)):this.scrollOnChange&&window.scrollTo(0,0)):t&&e&&(t.length===e.length&&e.length!==this.$props.total||e.length<t.length&&(this.scrollOnChange&&window.scrollTo(0,0),this.from=0))},rawData:function(e,t){Oo(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e?window.removeEventListener("scroll",this.scrollHandler):window.addEventListener("scroll",this.scrollHandler))},defaultPage:function(e){this.currentPageState!==e&&this.defaultPage!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.$props.stream&&this.setStreaming(this.$props.componentId,!0),this.defaultPage<0&&this.currentPage>0&&this.$props.URLParams&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,!0);var e=Co(this.$props);if(e.from=this.$data.from,this.$props.sortOptions){var t,n=this.$props.sortOptions[this.sortOptionIndex].dataField,r=this.$props.sortOptions[this.sortOptionIndex].sortBy;e.sort=[(t={},t[n]={order:r},t)],this.updateComponentProps(this.componentId,{dataField:n,sortBy:r},T.reactiveList)}else if(this.$props.sortBy){var o;e.sort=[(o={},o[this.$props.dataField]={order:this.$props.sortBy},o)]}this.$defaultQuery=null,this.$props.defaultQuery&&(this.$defaultQuery=this.$props.defaultQuery(),e=Ge(Ge({},e),ko(this.$defaultQuery)),this.$defaultQuery.sort&&(e.sort=this.$defaultQuery.sort),nr(this.componentId,this.setDefaultQuery,this.$props));var i=(this.$defaultQuery||{}).query;this.setQueryOptions(this.$props.componentId,Ge(Ge({},e),this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:i},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeDestroy:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=arguments[0],t=this.$data.hits,n=Po(t)||[],r=Po(this.$data.streamHits)||[];return e("div",{style:this.$props.style,class:this.$props.className},[this.isLoading&&this.shouldRenderPagination&&this.showInfiniteScroll&&(this.$scopedSlots.loader||this.$props.loader),this.renderErrorComponent(),e(oo,{attrs:{labelPosition:this.$props.sortOptions?"right":"left"},class:So(this.$props.innerClass,"resultsInfo")},[this.$props.sortOptions?this.renderSortOptions():null,this.$props.showResultStats?this.renderStats():null]),this.isLoading||0!==n.length||0!==r.length?null:this.renderNoResult(),!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(Mn,{attrs:{pages:this.$props.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel}}),this.renderResults(),this.isLoading&&!this.shouldRenderPagination?this.$props.loader||e("div",{style:{textAlign:"center",margin:"20px 0",color:"#666"}},["Loading..."]):null,!this.shouldRenderPagination||"bottom"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(Mn,{attrs:{pages:this.$props.pages,totalPages:Math.ceil(this.$data.total/this.$props.size),currentPage:this.currentPageState,setPage:this.setPage,showEndPage:this.$props.showEndPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel}}),this.config.url.endsWith("appbase.io")&&n.length?e(oo,{attrs:{direction:"row-reverse"},class:So(this.$props.innerClass,"poweredBy")},[e(Vn)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?Yn(e)?e(this.error):e:null},renderResults:function(){var e=this,t=this.$createElement,n=this.$props.size,r=this.$data.hits,o=Po(r)||[],i=Po(this.$data.streamHits)||[],a=o,s=this.$scopedSlots.renderItem||this.$props.renderItem;if(i.length){var u=i.map((function(e){return e._id}));a=a.filter((function(e){return!u.includes(e._id)}))}var l=this.hasCustomRender?this.getComponent():t("div",{class:this.$props.listClass+" "+So(this.$props.innerClass,"list")},[[].concat(i,a).map((function(t,r){return s({item:t,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*n+r)}})}))]);return this.analytics?t(ho,{attrs:{hits:a}},[l]):l},updateQueryOptions:function(e){var t=Co(e);if(t.from=this.$data.from,e.sortOptions){var n,r=e.defaultSortOption?e.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0;t.sort=[(n={},n[e.sortOptions[r].dataField]={order:e.sortOptions[r].sortBy},n)]}else if(e.sortBy){var o;t.sort=[(o={},o[e.dataField]={order:e.sortBy},o)]}this.setQueryOptions(this.$props.componentId,Ge(Ge({},t),this.getAggsQuery()),!0)},getAggsQuery:function(){var e=this.$props,t=e.size,n=e.aggregationField,r=this.$data.afterKey,o={size:t};return n&&(o.aggs=$o({props:this.$props,after:r||null,showTopHits:!0}).aggs),o},scrollHandler:function(){!this.isLoading&&window.innerHeight+window.pageYOffset+300>=document.body.scrollHeight&&this.loadMore()},loadMore:function(){if((!this.aggregationField||this.afterKey)&&this.hits&&!this.shouldRenderPagination&&this.total>this.hits.length){var e=this.$data.from+this.$props.size;if(this.hits.length<e)return;var t=Ge(Ge({},Co(this.$props)),this.getAggsQuery());this.from=e,nr(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,Ge(Ge({},t),{},{from:e}),!0,!!this.aggregationField)}},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.$props.size*e,n=Co(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,Ge(Ge({},n),{},{from:t}),!1),this.$props.URLParams&&this.setPageURL(this.$props.componentId,e+1,this.$props.componentId,!1,!0)}},renderStats:function(){var e=this.$createElement,t=this.$scopedSlots.renderResultStats||this.$props.renderResultStats;return t&&this.$data.total?t(this.stats):this.stats.numberOfResults?e("p",{class:so+" "+So(this.$props.innerClass,"resultStats")},[this.stats.numberOfResults," results found in ",this.stats.time,"ms"]):null},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:So(this.$props.innerClass,"noResults")||null},[Yn(t)?t():t])},handleSortChange:function(e){var t,n=e.target.value,r=Co(this.$props);r.from=0;var o=this.$props.sortOptions[n].dataField,i=this.$props.sortOptions[n].sortBy;r.sort=[(t={},t[o]={order:i},t)],this.sortOptionIndex=n,this.updateComponentProps(this.componentId,{dataField:o,sortBy:i},T.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.currentPageState=0,this.from=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)},renderSortOptions:function(){var e=this.$createElement;return e("select",{class:uo+" "+So(this.$props.innerClass,"sortOptions"),attrs:{name:"sort-options","aria-label":"Sort options"},on:{change:this.handleSortChange},domProps:{value:this.sortOptionIndex}},[this.$props.sortOptions.map((function(t,n){return e("option",{key:t.label,domProps:{value:n}},[t.label])}))])},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return Ge(Ge({},e),{},{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,i=this.hits,a=this.streamHits,s=Po(i)||[],u=Po(a)||[],l=Po(t)||[],c=s,d=o*e;if(u.length){var p=u.map((function(e){return e._id}));c=c.filter((function(e){return!p.includes(e._id)}))}if(l.length){var h=l.map((function(e){return e._id})).filter(Boolean);h&&(c=c.filter((function(e){return!h.includes(e._id)}))),c=[].concat(u,l,c)}return{results:s,streamResults:u,filteredResults:c,customData:r||{},promotedResults:l,aggregationData:n,loadMore:this.loadMore,base:d,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.streamResults,n=e.filteredResults,r=e.promotedResults,o=e.aggregationData,i=e.customData;return{data:this.withClickIds(n),aggregationData:this.withClickIds(o||[]),streamData:this.withClickIds(t),promotedData:this.withClickIds(r),rawData:this.rawData,resultStats:this.stats,customData:i}},getComponent:function(){var e=Ge({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerAnalytics:this.triggerClickAnalytics,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return Xn(e,this)}}},To={loadMoreAction:yo,setPageURL:vo,setQueryOptions:go,setStreaming:fo,updateQuery:mo,updateComponentProps:bo,setDefaultQuery:_o,recordResultClick:wo};Eo.generateQueryOptions=function(e){var t=Co(Ge({includeFields:["*"],excludeFields:[]},e)),n=e.size,r=e.dataField,o=e.defaultSortOption,i=e.sortOptions,a=e.currentPage,s=e.sortBy;t.from=a?(a-1)*(n||10):0,t.size=n||10;if(i)t.sort=[function(){var e;if(o){var t,n=i.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[i[0].dataField]={order:i[0].sortBy},e}()];else if(s){var u;t.sort=[(u={},u[r]={order:s},u)]}return t};var Ao=yr(Zn((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1||-1,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId]||[],promotedResults:e.promotedResults[t.componentId]||[],customData:e.customData[t.componentId],streamHits:e.streamHits[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,analytics:e.config&&e.config.analytics,config:e.config,error:e.error[t.componentId],afterKey:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.aggregationField]&&e.aggregations[t.componentId][t.aggregationField].after_key,componentProps:e.props[t.componentId],isLoading:e.isLoading[t.componentId]||!1}}),To)(Eo),{componentType:T.reactiveList,internalComponent:!0});Eo.install=function(e){e.component(Eo.name,Ao),e.component(jr.name,jr),e.component(Nr.name,Nr)},Eo.componentType=T.reactiveList;var xo=function(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}};function Ro(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var jo,Mo,Lo,Qo,Vo=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var a=1e3;r&&"number"==typeof r.maxKeys&&(a=r.maxKeys);var s=e.length;a>0&&s>a&&(s=a);for(var u=0;u<s;++u){var l,c,d,p,h=e[u].replace(i,"%20"),f=h.indexOf(n);f>=0?(l=h.substr(0,f),c=h.substr(f+1)):(l=h,c=""),d=decodeURIComponent(l),p=decodeURIComponent(c),Ro(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o},Do=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},Fo=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(Do(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(Do(e))})).join(t):o+encodeURIComponent(Do(e[r]))})).join(t):r?encodeURIComponent(Do(r))+n+encodeURIComponent(Do(e)):""},No=o((function(e,t){t.decode=t.parse=Vo,t.encode=t.stringify=Fo})),qo=(No.decode,No.parse,No.encode,No.stringify,o((function(e){var t=function(e){function t(){this.fetch=!1}return t.prototype=e,new t}("undefined"!=typeof self?self:n);(function(e){!function(e){if(!e.fetch){var t="URLSearchParams"in e,n="Symbol"in e&&"iterator"in Symbol,r="FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),o="FormData"in e,i="ArrayBuffer"in e;if(i)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=function(e){return e&&DataView.prototype.isPrototypeOf(e)},u=ArrayBuffer.isView||function(e){return e&&a.indexOf(Object.prototype.toString.call(e))>-1};f.prototype.append=function(e,t){e=d(e),t=p(t);var n=this.map[e];this.map[e]=n?n+","+t:t},f.prototype.delete=function(e){delete this.map[d(e)]},f.prototype.get=function(e){return e=d(e),this.has(e)?this.map[e]:null},f.prototype.has=function(e){return this.map.hasOwnProperty(d(e))},f.prototype.set=function(e,t){this.map[d(e)]=p(t)},f.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},f.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},f.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},f.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},n&&(f.prototype[Symbol.iterator]=f.prototype.entries);var l=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];_.prototype.clone=function(){return new _(this,{body:this._bodyInit})},b.call(_.prototype),b.call(O.prototype),O.prototype.clone=function(){return new O(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},O.error=function(){var e=new O(null,{status:0,statusText:""});return e.type="error",e};var c=[301,302,303,307,308];O.redirect=function(e,t){if(-1===c.indexOf(t))throw new RangeError("Invalid status code");return new O(null,{status:t,headers:{location:e}})},e.Headers=f,e.Request=_,e.Response=O,e.fetch=function(e,t){return new Promise((function(n,o){var i=new _(e,t),a=new XMLHttpRequest;a.onload=function(){var e,t,r={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new f,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in a?a.responseURL:r.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;n(new O(o,r))},a.onerror=function(){o(new TypeError("Network request failed"))},a.ontimeout=function(){o(new TypeError("Network request failed"))},a.open(i.method,i.url,!0),"include"===i.credentials?a.withCredentials=!0:"omit"===i.credentials&&(a.withCredentials=!1),"responseType"in a&&r&&(a.responseType="blob"),i.headers.forEach((function(e,t){a.setRequestHeader(t,e)})),a.send(void 0===i._bodyInit?null:i._bodyInit)}))},e.fetch.polyfill=!0}function d(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function p(e){return"string"!=typeof e&&(e=String(e)),e}function h(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return n&&(t[Symbol.iterator]=function(){return t}),t}function f(e){this.map={},e instanceof f?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function g(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function m(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function y(e){var t=new FileReader,n=m(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function b(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(r&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(o&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(i&&r&&s(e))this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!i||!ArrayBuffer.prototype.isPrototypeOf(e)&&!u(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=v(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r&&(this.blob=function(){var e=g(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?g(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(y)}),this.text=function(){var e,t,n,r=g(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=m(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o&&(this.formData=function(){return this.text().then(w)}),this.json=function(){return this.text().then(JSON.parse)},this}function _(e,t){var n,r,o=(t=t||{}).body;if(e instanceof _){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new f(e.headers)),this.method=e.method,this.mode=e.mode,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new f(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),l.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function w(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function O(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new f(t.headers),this.url=t.url||"",this._initBody(e)}}(void 0!==e?e:this)}).call(t,void 0);var r=t.fetch;r.Response=t.Response,r.Request=t.Request,r.Headers=t.Headers;e.exports&&(e.exports=r,e.exports.default=r)}))),Uo={'"':'"',"\\":"\\","/":"/",b:"\b",f:"\f",n:"\n",r:"\r",t:"\t"},Ho=function(e){throw{name:"SyntaxError",message:e,at:jo,text:Lo}},zo=function(e){return e&&e!==Mo&&Ho("Expected '"+e+"' instead of '"+Mo+"'"),Mo=Lo.charAt(jo),jo+=1,Mo},Bo=function(){var e,t="";for("-"===Mo&&(t="-",zo("-"));Mo>="0"&&Mo<="9";)t+=Mo,zo();if("."===Mo)for(t+=".";zo()&&Mo>="0"&&Mo<="9";)t+=Mo;if("e"===Mo||"E"===Mo)for(t+=Mo,zo(),"-"!==Mo&&"+"!==Mo||(t+=Mo,zo());Mo>="0"&&Mo<="9";)t+=Mo,zo();if(e=+t,isFinite(e))return e;Ho("Bad number")},Go=function(){var e,t,n,r="";if('"'===Mo)for(;zo();){if('"'===Mo)return zo(),r;if("\\"===Mo)if(zo(),"u"===Mo){for(n=0,t=0;t<4&&(e=parseInt(zo(),16),isFinite(e));t+=1)n=16*n+e;r+=String.fromCharCode(n)}else{if("string"!=typeof Uo[Mo])break;r+=Uo[Mo]}else r+=Mo}Ho("Bad string")},Wo=function(){for(;Mo&&Mo<=" ";)zo()};Qo=function(){switch(Wo(),Mo){case"{":return function(){var e,t={};if("{"===Mo){if(zo("{"),Wo(),"}"===Mo)return zo("}"),t;for(;Mo;){if(e=Go(),Wo(),zo(":"),Object.hasOwnProperty.call(t,e)&&Ho('Duplicate key "'+e+'"'),t[e]=Qo(),Wo(),"}"===Mo)return zo("}"),t;zo(","),Wo()}}Ho("Bad object")}();case"[":return function(){var e=[];if("["===Mo){if(zo("["),Wo(),"]"===Mo)return zo("]"),e;for(;Mo;){if(e.push(Qo()),Wo(),"]"===Mo)return zo("]"),e;zo(","),Wo()}}Ho("Bad array")}();case'"':return Go();case"-":return Bo();default:return Mo>="0"&&Mo<="9"?Bo():function(){switch(Mo){case"t":return zo("t"),zo("r"),zo("u"),zo("e"),!0;case"f":return zo("f"),zo("a"),zo("l"),zo("s"),zo("e"),!1;case"n":return zo("n"),zo("u"),zo("l"),zo("l"),null}Ho("Unexpected '"+Mo+"'")}()}};var Zo,Yo,Ko,Xo=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Jo={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function ei(e){return Xo.lastIndex=0,Xo.test(e)?'"'+e.replace(Xo,(function(e){var t=Jo[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)}))+'"':'"'+e+'"'}var ti="undefined"!=typeof JSON?JSON:{parse:function(e,t){var n;return Lo=e,jo=0,Mo=" ",n=Qo(),Wo(),Mo&&Ho("Syntax error"),"function"==typeof t?function e(n,r){var o,i,a=n[r];if(a&&"object"==typeof a)for(o in a)Object.prototype.hasOwnProperty.call(a,o)&&(void 0!==(i=e(a,o))?a[o]=i:delete a[o]);return t.call(n,r,a)}({"":n},""):n},stringify:function(e,t,n){var r;if(Zo="",Yo="","number"==typeof n)for(r=0;r<n;r+=1)Yo+=" ";else"string"==typeof n&&(Yo=n);if(Ko=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return function e(t,n){var r,o,i,a,s,u=Zo,l=n[t];switch(l&&"object"==typeof l&&"function"==typeof l.toJSON&&(l=l.toJSON(t)),"function"==typeof Ko&&(l=Ko.call(n,t,l)),typeof l){case"string":return ei(l);case"number":return isFinite(l)?String(l):"null";case"boolean":case"null":return String(l);case"object":if(!l)return"null";if(Zo+=Yo,s=[],"[object Array]"===Object.prototype.toString.apply(l)){for(a=l.length,r=0;r<a;r+=1)s[r]=e(r,l)||"null";return i=0===s.length?"[]":Zo?"[\n"+Zo+s.join(",\n"+Zo)+"\n"+u+"]":"["+s.join(",")+"]",Zo=u,i}if(Ko&&"object"==typeof Ko)for(a=Ko.length,r=0;r<a;r+=1)"string"==typeof(o=Ko[r])&&(i=e(o,l))&&s.push(ei(o)+(Zo?": ":":")+i);else for(o in l)Object.prototype.hasOwnProperty.call(l,o)&&(i=e(o,l))&&s.push(ei(o)+(Zo?": ":":")+i);return i=0===s.length?"{}":Zo?"{\n"+Zo+s.join(",\n"+Zo)+"\n"+u+"}":"{"+s.join(",")+"}",Zo=u,i}}("",{"":e})}},ni=function(e,t){t||(t={}),"function"==typeof t&&(t={cmp:t});var n=t.space||"";"number"==typeof n&&(n=Array(n+1).join(" "));var r,o="boolean"==typeof t.cycles&&t.cycles,i=t.replacer||function(e,t){return t},a=t.cmp&&(r=t.cmp,function(e){return function(t,n){var o={key:t,value:e[t]},i={key:n,value:e[n]};return r(o,i)}}),s=[];return function e(t,r,u,l){var c=n?"\n"+new Array(l+1).join(n):"",d=n?": ":":";if(u&&u.toJSON&&"function"==typeof u.toJSON&&(u=u.toJSON()),void 0!==(u=i.call(t,r,u))){if("object"!=typeof u||null===u)return ti.stringify(u);if(ri(u)){for(var p=[],h=0;h<u.length;h++){var f=e(u,h,u[h],l+1)||ti.stringify(null);p.push(c+n+f)}return"["+p.join(",")+c+"]"}if(-1!==s.indexOf(u)){if(o)return ti.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}s.push(u);var g=oi(u).sort(a&&a(u));for(p=[],h=0;h<g.length;h++){var m=e(u,r=g[h],u[r],l+1);if(m){var y=ti.stringify(r)+d+m;p.push(c+n+y)}}return s.splice(s.indexOf(u),1),"{"+p.join(",")+c+"}"}}({"":e},"",e,0)},ri=Array.isArray||function(e){return"[object Array]"==={}.toString.call(e)},oi=Object.keys||function(e){var t=Object.prototype.hasOwnProperty||function(){return!0},n=[];for(var r in e)t.call(e,r)&&n.push(r);return n},ii="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};function ai(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",i=0,a=0,s=n;r.charAt(0|a)||(s="=",a%1);o+=s.charAt(63&i>>8-a%1*8)){if((e=r.charCodeAt(a+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');i=i<<8|e}return o}function si(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e&&"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<e.length;n+=1){var r=e[n];if(!r)return new Error("query object can not have an empty value");if(!r.id)return new Error("'id' field must be present in query object");if(("search"!==r.type||t)&&!r.dataField)return new Error("'dataField' field must be present in query object");if(r.dataField&&"[object Array]"!==Object.prototype.toString.call(r.dataField))return new Error("'dataField' field must be an array")}return!0}return new Error("invalid query value, 'query' value must be an array")}function ui(e,t){var n=[],r={object:null,string:""};Object.keys(t).forEach((function(o){var i=t[o];ii(e[o])===i&&e[o]!==r[i]||n.push(o)}));for(var o="",i=0;i<n.length;i+=1)o+=n[i]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function li(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||0!==Object.keys(e).length||e.constructor!==Object?JSON.parse(JSON.stringify(e)):null}function ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t?Object.keys(e).forEach((function(t){n[t]=encodeURI(e[t])})):n=e,n}function di(e){var t=xo(e.url||""),n=t.auth,r=void 0===n?null:n,o=t.host,i=void 0===o?"":o,a=t.path,s=void 0===a?"":a,u=t.protocol,l=void 0===u?"":u,c=i+s;if("string"!=typeof c||""===c)throw new Error("URL not present in options.");if("string"!=typeof e.app||""===e.app)throw new Error("App name is not present in options.");if("string"!=typeof l||""===l)throw new Error("Protocol is not present in url. URL should be of the form https://scalr.api.appbase.io");"/"===c.slice(-1)&&(c=c.slice(0,-1));var d=r||null;if("string"==typeof e.credentials&&""!==e.credentials?d=e.credentials:"string"==typeof e.username&&""!==e.username&&"string"==typeof e.password&&""!==e.password&&(d=e.username+":"+e.password),function(e){return function(e,t){return-1!==e.indexOf(t)}(e,"scalr.api.appbase.io")}(c)&&null===d)throw new Error("Authentication information is not present. Did you add credentials?");this.url=c,this.protocol=l,this.app=e.app,this.credentials=d,this.headers={}}function pi(e){var t=this;return new Promise((function(n,r){var o=li(e);try{var i=o.method,a=o.path,s=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI?".suggestions":t.app,d=u,p=a.endsWith("msearch")||a.endsWith("bulk")?"application/x-ndjson":"application/json",h=Object.assign({},{Accept:"application/json","Content-Type":p},t.headers),f=Date.now();t.credentials&&(h.Authorization="Basic "+ai(t.credentials));var g={method:i,headers:h};if(Array.isArray(d)){var m="";d.forEach((function(e){m+=JSON.stringify(e),m+="\n"})),d=m}else d=JSON.stringify(d)||{};0!==Object.keys(d).length&&(g.body=d);var y={},v="";s&&(v="?"+No.stringify(s));var b=t.protocol+"://"+t.url+"/"+c+"/"+a+v;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:b},g)).then((function(e){var t=Object.assign({},e),o=t.url;return delete t.url,qo(o||b,t).then((function(e){return e.status>=500?r(e):(y=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(l&&t&&"[object Object]"===Object.prototype.toString.call(t)&&u&&u.query&&u.query instanceof Array){var o=0,i=u.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&(o+=1)})),o>0&&i===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var a=Object.assign({},t,{_timestamp:f,_headers:y});return n(a)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}var hi="undefined"!=typeof window?window.WebSocket:require("ws");function fi(e,t,n,r){var o=this;try{var i=li(e),a=i.method,s=i.path,u=i.params,l=e.body;l&&"object"===(void 0===l?"undefined":ii(l))||(l={});return this.wsClosed=function(){r&&r()},this.stop=function(){o.ws.onmessage=void 0,o.ws.onclose=void 0,o.ws.onerror=void 0,o.wsClosed();var e=JSON.parse(JSON.stringify(o.request));e.unsubscribe=!0,!0!==o.unsubscribed&&o.send(e),o.unsubscribed=!0},this.reconnect=function(){return o.stop(),fi(e,t,n,r)},this.processError=function(e){n?n(e):console.warn(e)},this.processMessage=function(e){var r=JSON.parse(JSON.stringify(e));if(r.id||!r.message)return r.id===o.id?r.message?(delete r.id,void(n&&n(r))):(r.query_id&&(o.query_id=r.query_id),r.channel&&(o.channel=r.channel),void(r.body&&""!==r.body&&t&&t(r.body))):void(!r.id&&r.channel&&r.channel===o.channel&&t&&t(r.event));n&&n(r)},o.ws=new hi("wss://"+o.url+"/"+o.app),o.id="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})),o.request={id:o.id,path:o.app+"/"+s+"?"+No.stringify(u),method:a,body:l},o.credentials&&(o.request.authorization="Basic "+ai(o.credentials)),o.result={},o.closeHandler=function(){o.wsClosed()},o.errorHandler=function(e){o.processError.apply(o,[e])},o.messageHandler=function(e){var t=JSON.parse(e.data);t.body&&t.body.status>=400?o.processError.apply(o,[t]):o.processMessage.apply(o,[t])},o.send=function(e){!function e(t,n){setTimeout((function(){1===t.readyState?null!=n&&n():e(t,n)}),5)}(o.ws,(function(){try{o.ws.send(JSON.stringify(e))}catch(e){console.warn(e)}}))},o.ws.onmessage=o.messageHandler,o.ws.onerror=o.errorHandler,o.ws.onclose=o.closeHandler,o.send(o.request),o.result.stop=o.stop,o.result.reconnect=o.reconnect,o.result}catch(e){return n?n(e):console.warn(e),null}}function gi(e){var t=li(e),n=ui(t,{type:"string",body:"object"});if(!0!==n)throw n;var r=t.type,o=t.id,i=t.body;delete t.type,delete t.body,delete t.id;var a=void 0;return a=o?r+"/"+encodeURIComponent(o):r,this.performFetchRequest({method:"POST",path:a,params:t,body:i})}function mi(e){var t=li(e),n=ui(t,{type:"string",id:"string"});if(!0!==n)throw n;var r=t.type,o=t.id;delete t.type,delete t.id;var i=r+"/"+encodeURIComponent(o);return this.performFetchRequest({method:"GET",path:i,params:t})}function yi(e){var t=li(e),n=ui(t,{type:"string",id:"string",body:"object"});if(!0!==n)throw n;var r=t.type,o=t.id,i=t.body;delete t.type,delete t.id,delete t.body;var a=r+"/"+encodeURIComponent(o)+"/_update";return this.performFetchRequest({method:"POST",path:a,params:t,body:i})}function vi(e){var t=li(e),n=ui(t,{type:"string",id:"string"});if(!0!==n)throw n;var r=t.type,o=t.id;delete t.type,delete t.id;var i=r+"/"+encodeURIComponent(o);return this.performFetchRequest({method:"DELETE",path:i,params:t})}function bi(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_bulk":"/_bulk",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function _i(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function wi(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function Oi(e,t){var n=li(t),r=si(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,isRSAPI:!0})}function Ci(e){var t=li(e),n=ui(t,{type:"string",id:"string"});if(!0!==n)throw n;var r=t.type,o=t.id;delete t.type,delete t.id,delete t.stream,!0===t.stream?t.stream="true":(delete t.stream,t.streamonly="true");for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return this.performWsRequest.apply(this,[{method:"GET",path:r+"/"+encodeURIComponent(o),params:t}].concat(a))}function Si(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;if(void 0===t.type||Array.isArray(t.type)&&0===t.type.length)throw new Error("Missing fields: type");var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body,delete t.stream,t.streamonly="true";for(var i=arguments.length,a=Array(i>1?i-1:0),s=1;s<i;s++)a[s-1]=arguments[s];return this.performWsRequest.apply(this,[{method:"POST",path:r+"/_search",params:t,body:o}].concat(a))}function Pi(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var i=this,a=li(e),s=a.body,u=void 0,l=void 0,c=ui(a,{body:"object"});if(!0!==c)throw c;if(void 0===a.type||"string"!=typeof a.type&&!Array.isArray(a.type)||""===a.type||0===a.type.length)throw new Error("fields missing: type");if(!0!==(c=ui(a.body,{query:"object"})))throw c;Array.isArray(a.type)?(u=a.type,l=a.type.join()):(u=[a.type],l=a.type);var d=[],p=s,h=p.query;if("string"==typeof t){var f={};f.url=t,f.method="GET",d.push(f)}else if(t.constructor===Array)d=t;else{if(t!==Object(t))throw new Error("fields missing: second argument(webhook) is necessary");d.push(t)}var g=function(){(s={}).webhooks=d,s.query=h,s.type=u};g();var m=ai(ni(h)),y=".percolator/webhooks-0-"+l+"-0-"+m;return this.change=function(){if(d=[],"string"==typeof a){var e={};e.url=a,e.method="POST",d.push(e)}else if(a.constructor===Array)d=a;else{if(a!==Object(a))throw new Error("fields missing: one of webhook or url fields is required");d.push(a)}return g(),i.performRequest("POST")},this.stop=function(){return s=void 0,i.performRequest("DELETE")},this.performRequest=function(e){var t=i.performWsRequest.apply(i,[{method:e,path:y,body:s}].concat(r));return t.change=i.change,t.stop=i.stop,t},this.performRequest("POST")}function ki(){var e=this;return new Promise((function(t,n){try{return e.performFetchRequest({method:"GET",path:"_mapping"}).then((function(n){var r=Object.keys(n[e.app].mappings).filter((function(e){return"_default_"!==e}));return t(r)}))}catch(e){return n(e)}}))}function $i(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function Ii(e,t){var n=li(t),r=si(e,!0);if(!0!==r)throw r;var o={settings:n,query:e};return this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,isRSAPI:!0,isSuggestionsAPI:!0})}function Ei(e){var t=new di(e);return di.prototype.performFetchRequest=pi,di.prototype.performWsRequest=fi,di.prototype.index=gi,di.prototype.get=mi,di.prototype.update=yi,di.prototype.delete=vi,di.prototype.bulk=bi,di.prototype.search=_i,di.prototype.msearch=wi,di.prototype.reactiveSearchv3=Oi,di.prototype.getQuerySuggestions=Ii,di.prototype.getStream=Ci,di.prototype.searchStream=Si,di.prototype.searchStreamToURL=Pi,di.prototype.getTypes=ki,di.prototype.getMappings=$i,di.prototype.setHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.headers=t?ci(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}
|
|
19
|
+
function ht(e){return!0==(null!=(t=e)&&"object"==typeof t&&!1===Array.isArray(t))&&"[object Object]"===Object.prototype.toString.call(e);var t}function ft(e){var t,n;return!1!==ht(e)&&("function"==typeof(t=e.constructor)&&(!1!==ht(n=t.prototype)&&!1!==n.hasOwnProperty("isPrototypeOf")))}var gt=Object.prototype,mt=gt.toString,yt=gt.hasOwnProperty,vt=/^\s*function (\w+)/;function bt(e){var t=null!=e?e.type?e.type:e:null,n=t&&t.toString().match(vt);return n&&n[1]}function Ct(){}var Ot=function(){return!0},_t=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e},St=Array.isArray||function(e){return"[object Array]"===mt.call(e)},wt=function(e){return"[object Function]"===mt.call(e)};function $t(e,t,n){var r;return void 0===n&&(n=!1),Object.defineProperty(t,"_vueTypes_name",{enumerable:!1,writable:!1,value:e}),function(e){Object.defineProperty(e,"def",{value:function(e){return void 0!==e||this.default?wt(e)||Et(this,e)?(St(e)?this.default=function(){return[].concat(e)}:ft(e)?this.default=function(){return Object.assign({},e)}:this.default=e,this):(Tt(this._vueTypes_name+' - invalid default value: "'+e+'"',e),this):this},enumerable:!1,writable:!1})}((r=t,Object.defineProperty(r,"isRequired",{get:function(){return this.required=!0,this},enumerable:!1}))),n?function(e){Object.defineProperty(e,"validate",{value:function(e){return this.validator=e.bind(this),this},enumerable:!1})}(t):Object.defineProperty(t,"validate",{value:function(){return Tt(e+' - "validate" method not supported on this type'),this},enumerable:!1}),wt(t.validator)&&(t.validator=t.validator.bind(t)),t}function Et(e,t,n){void 0===n&&(n=!1);var r,o=e,i=!0;ft(e)||(o={type:e});var s,a=o._vueTypes_name?o._vueTypes_name+" - ":"";if(yt.call(o,"type")&&null!==o.type){if(void 0===o.type)throw new TypeError("[VueTypes error]: Setting type to undefined is not allowed.");if(!o.required&&void 0===t)return i;St(o.type)?(i=o.type.some((function(e){return Et(e,t,!0)})),r=o.type.map((function(e){return bt(e)})).join(" or ")):i="Array"===(r=bt(o))?St(t):"Object"===r?ft(t):"String"===r||"Number"===r||"Boolean"===r||"Function"===r?function(e){if(null==e)return null;var t=e.constructor.toString().match(vt);return t&&t[1]}(t)===r:t instanceof o.type}return i?yt.call(o,"validator")&&wt(o.validator)?(n&&(s=Tt,Tt=Ct),i=o.validator(t),s&&(Tt=s),i||!1!==n||Tt(a+"custom validation failed"),i):i:(!1===n&&Tt(a+'value "'+t+'" should be of type "'+r+'"'),!1)}var Tt=Ct;var Pt,It,kt={get any(){return $t("any",{type:null},!0)},get func(){return $t("function",{type:Function},!0).def(kt.sensibleDefaults.func)},get bool(){return $t("boolean",{type:Boolean},!0).def(kt.sensibleDefaults.bool)},get string(){return $t("string",{type:String},!0).def(kt.sensibleDefaults.string)},get number(){return $t("number",{type:Number},!0).def(kt.sensibleDefaults.number)},get array(){return $t("array",{type:Array},!0).def(kt.sensibleDefaults.array)},get object(){return $t("object",{type:Object},!0).def(kt.sensibleDefaults.object)},get integer(){return $t("integer",{type:Number,validator:function(e){return _t(e)}}).def(kt.sensibleDefaults.integer)},get symbol(){return $t("symbol",{type:null,validator:function(e){return"symbol"==typeof e}},!0)},extend:function(e){if(void 0===e&&(e={}),St(e))return e.forEach((function(e){return kt.extend(e)})),this;var t,n,r=e,o=r.name,i=r.validate,s=void 0!==i&&i,a=r.getter,u=void 0!==a&&a,l=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}(r,["name","validate","getter"]);if(t=kt,n=o,yt.call(t,n))throw new TypeError('[VueTypes error]: Type "'+o+'" already defined');var c,d=l.type,p=l.validator,h=void 0===p?Ot:p;if(d&&d._vueTypes_name){delete l.type;for(var f=["type","required","default"],g=0;g<f.length;g+=1){var m=f[g];void 0!==d[m]&&(l[m]=d[m])}s=!1,wt(d.validator)&&(l.validator=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return d.validator.apply(d,t)&&h.apply(this,t)})}if(u)c={get:function(){return $t(o,Object.assign({},l),s)},enumerable:!0,configurable:!1};else{var y=l.validator;c={value:function(){var e=$t(o,Object.assign({},l),s);if(y){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];e.validator=y.bind.apply(y,[e].concat(n))}return e},writable:!1,enumerable:!0,configurable:!1}}return Object.defineProperty(this,o,c)},custom:function(e,t){if(void 0===t&&(t="custom validation failed"),"function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return $t(e.name||"<<anonymous function>>",{validator:function(n){var r=e(n);return r||Tt(this._vueTypes_name+" - "+t),r}})},oneOf:function(e){if(!St(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t='oneOf - value should be one of "'+e.join('", "')+'"',n=e.reduce((function(e,t){return null!=t&&-1===e.indexOf(t.constructor)&&e.push(t.constructor),e}),[]);return $t("oneOf",{type:n.length>0?n:null,validator:function(n){var r=-1!==e.indexOf(n);return r||Tt(t),r}})},instanceOf:function(e){return $t("instanceOf",{type:e})},oneOfType:function(e){if(!St(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");var t=!1,n=e.reduce((function(e,n){if(ft(n)){if("oneOf"===n._vueTypes_name)return e.concat(n.type||[]);if(wt(n.validator))return t=!0,e;if(n.type){if(St(n.type))return e.concat(n.type);e.push(n.type)}return e}return e.push(n),e}),[]);if(!t)return $t("oneOfType",{type:n});var r=e.map((function(e){return e&&St(e.type)?e.type.map(bt):bt(e)})).reduce((function(e,t){return e.concat(St(t)?t:[t])}),[]).join('", "');return this.custom((function(t){var n=e.some((function(e){return"oneOf"===e._vueTypes_name?!e.type||Et(e.type,t,!0):Et(e,t,!0)}));return n||Tt('oneOfType - value type should be one of "'+r+'"'),n}))},arrayOf:function(e){return $t("arrayOf",{type:Array,validator:function(t){var n=t.every((function(t){return Et(e,t)}));return n||Tt('arrayOf - value must be an array of "'+bt(e)+'"'),n}})},objectOf:function(e){return $t("objectOf",{type:Object,validator:function(t){var n=Object.keys(t).every((function(n){return Et(e,t[n])}));return n||Tt('objectOf - value must be an object of "'+bt(e)+'"'),n}})},shape:function(e){var t=Object.keys(e),n=t.filter((function(t){return e[t]&&!0===e[t].required})),r=$t("shape",{type:Object,validator:function(r){var o=this;if(!ft(r))return!1;var i=Object.keys(r);return n.length>0&&n.some((function(e){return-1===i.indexOf(e)}))?(Tt('shape - at least one of required properties "'+n.join('", "')+'" is not present'),!1):i.every((function(n){return-1===t.indexOf(n)?!0===o._vueTypes_isLoose||(Tt('shape - object is missing "'+n+'" property'),!1):Et(e[n],r[n])}))}});return Object.defineProperty(r,"_vueTypes_isLoose",{enumerable:!1,writable:!0,value:!1}),Object.defineProperty(r,"loose",{get:function(){return this._vueTypes_isLoose=!0,this},enumerable:!1}),r}};Pt=kt,It={func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0},Object.defineProperty(Pt,"sensibleDefaults",{enumerable:!1,set:function(e){It=!1===e?{}:!0===e?{func:function(){},bool:!0,string:"",number:0,array:function(){return[]},object:function(){return{}},integer:0}:e},get:function(){return It}}),kt.utils={validate:function(e,t){return Et(t,e,!0)},toType:$t};var At="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{};var Rt={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function xt(e){function t(e,t,r){var o=t.trim().split(f);t=o;var i=o.length,s=e.length;switch(s){case 0:case 1:var a=0;for(e=0===s?"":e[0]+" ";a<i;++a)t[a]=n(e,t[a],r).trim();break;default:var u=a=0;for(t=[];a<i;++a)for(var l=0;l<s;++l)t[u++]=n(e[l]+" ",o[a],r).trim()}return t}function n(e,t,n){var r=t.charCodeAt(0);switch(33>r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(g,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function r(e,t,n,i){var s=e+";",a=2*t+3*n+4*i;if(944===a){e=s.indexOf(":",9)+1;var u=s.substring(e,s.length-1).trim();return u=s.substring(0,e).trim()+u+";",1===I||2===I&&o(u,1)?"-webkit-"+u+u:u}if(0===I||2===I&&!o(s,1))return s;switch(a){case 1015:return 97===s.charCodeAt(10)?"-webkit-"+s+s:s;case 951:return 116===s.charCodeAt(3)?"-webkit-"+s+s:s;case 963:return 110===s.charCodeAt(5)?"-webkit-"+s+s:s;case 1009:if(100!==s.charCodeAt(4))break;case 969:case 942:return"-webkit-"+s+s;case 978:return"-webkit-"+s+"-moz-"+s+s;case 1019:case 983:return"-webkit-"+s+"-moz-"+s+"-ms-"+s+s;case 883:if(45===s.charCodeAt(8))return"-webkit-"+s+s;if(0<s.indexOf("image-set(",11))return s.replace($,"$1-webkit-$2")+s;break;case 932:if(45===s.charCodeAt(4))switch(s.charCodeAt(5)){case 103:return"-webkit-box-"+s.replace("-grow","")+"-webkit-"+s+"-ms-"+s.replace("grow","positive")+s;case 115:return"-webkit-"+s+"-ms-"+s.replace("shrink","negative")+s;case 98:return"-webkit-"+s+"-ms-"+s.replace("basis","preferred-size")+s}return"-webkit-"+s+"-ms-"+s+s;case 964:return"-webkit-"+s+"-ms-flex-"+s+s;case 1023:if(99!==s.charCodeAt(8))break;return"-webkit-box-pack"+(u=s.substring(s.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+s+"-ms-flex-pack"+u+s;case 1005:return p.test(s)?s.replace(d,":-webkit-")+s.replace(d,":-moz-")+s:s;case 1e3:switch(t=(u=s.substring(13).trim()).indexOf("-")+1,u.charCodeAt(0)+u.charCodeAt(t)){case 226:u=s.replace(b,"tb");break;case 232:u=s.replace(b,"tb-rl");break;case 220:u=s.replace(b,"lr");break;default:return s}return"-webkit-"+s+"-ms-"+u+s;case 1017:if(-1===s.indexOf("sticky",9))break;case 975:switch(t=(s=e).length-10,a=(u=(33===s.charCodeAt(t)?s.substring(0,t):s).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|u.charCodeAt(7))){case 203:if(111>u.charCodeAt(8))break;case 115:s=s.replace(u,"-webkit-"+u)+";"+s;break;case 207:case 102:s=s.replace(u,"-webkit-"+(102<a?"inline-":"")+"box")+";"+s.replace(u,"-webkit-"+u)+";"+s.replace(u,"-ms-"+u+"box")+";"+s}return s+";";case 938:if(45===s.charCodeAt(5))switch(s.charCodeAt(6)){case 105:return u=s.replace("-items",""),"-webkit-"+s+"-webkit-box-"+u+"-ms-flex-"+u+s;case 115:return"-webkit-"+s+"-ms-flex-item-"+s.replace(_,"")+s;default:return"-webkit-"+s+"-ms-flex-line-pack"+s.replace("align-content","").replace(_,"")+s}break;case 973:case 989:if(45!==s.charCodeAt(3)||122===s.charCodeAt(4))break;case 931:case 953:if(!0===w.test(e))return 115===(u=e.substring(e.indexOf(":")+1)).charCodeAt(0)?r(e.replace("stretch","fill-available"),t,n,i).replace(":fill-available",":stretch"):s.replace(u,"-webkit-"+u)+s.replace(u,"-moz-"+u.replace("fill-",""))+s;break;case 962:if(s="-webkit-"+s+(102===s.charCodeAt(5)?"-ms-"+s:"")+s,211===n+i&&105===s.charCodeAt(13)&&0<s.indexOf("transform",10))return s.substring(0,s.indexOf(";",27)+1).replace(h,"$1-webkit-$2")+s}return s}function o(e,t){var n=e.indexOf(1===t?":":"{"),r=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),x(2!==t?r:r.replace(S,"$1"),n,t)}function i(e,t){var n=r(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(O," or ($1)").substring(4):"("+t+")"}function s(e,t,n,r,o,i,s,a,l,c){for(var d,p=0,h=t;p<R;++p)switch(d=A[p].call(u,e,h,n,r,o,i,s,a,l,c)){case void 0:case!1:case!0:case null:break;default:h=d}if(h!==t)return h}function a(e){return void 0!==(e=e.prefix)&&(x=null,e?"function"!=typeof e?I=1:(I=2,x=e):I=0),a}function u(e,n){var a=e;if(33>a.charCodeAt(0)&&(a=a.trim()),a=[a],0<R){var u=s(-1,n,a,a,T,E,0,0,0,0);void 0!==u&&"string"==typeof u&&(n=u)}var d=function e(n,a,u,d,p){for(var h,f,g,b,O,_=0,S=0,w=0,$=0,A=0,x=0,M=g=h=0,j=0,Q=0,V=0,D=0,F=u.length,N=F-1,U="",q="",z="",B="";j<F;){if(f=u.charCodeAt(j),j===N&&0!==S+$+w+_&&(0!==S&&(f=47===S?10:47),$=w=_=0,F++,N++),0===S+$+w+_){if(j===N&&(0<Q&&(U=U.replace(c,"")),0<U.trim().length)){switch(f){case 32:case 9:case 59:case 13:case 10:break;default:U+=u.charAt(j)}f=59}switch(f){case 123:for(h=(U=U.trim()).charCodeAt(0),g=1,D=++j;j<F;){switch(f=u.charCodeAt(j)){case 123:g++;break;case 125:g--;break;case 47:switch(f=u.charCodeAt(j+1)){case 42:case 47:e:{for(M=j+1;M<N;++M)switch(u.charCodeAt(M)){case 47:if(42===f&&42===u.charCodeAt(M-1)&&j+2!==M){j=M+1;break e}break;case 10:if(47===f){j=M+1;break e}}j=M}}break;case 91:f++;case 40:f++;case 34:case 39:for(;j++<N&&u.charCodeAt(j)!==f;);}if(0===g)break;j++}switch(g=u.substring(D,j),0===h&&(h=(U=U.replace(l,"").trim()).charCodeAt(0)),h){case 64:switch(0<Q&&(U=U.replace(c,"")),f=U.charCodeAt(1)){case 100:case 109:case 115:case 45:Q=a;break;default:Q=k}if(D=(g=e(a,Q,g,f,p+1)).length,0<R&&(O=s(3,g,Q=t(k,U,V),a,T,E,D,f,p,d),U=Q.join(""),void 0!==O&&0===(D=(g=O.trim()).length)&&(f=0,g="")),0<D)switch(f){case 115:U=U.replace(C,i);case 100:case 109:case 45:g=U+"{"+g+"}";break;case 107:g=(U=U.replace(m,"$1 $2"))+"{"+g+"}",g=1===I||2===I&&o("@"+g,3)?"@-webkit-"+g+"@"+g:"@"+g;break;default:g=U+g,112===d&&(q+=g,g="")}else g="";break;default:g=e(a,t(a,U,V),g,d,p+1)}z+=g,g=V=Q=M=h=0,U="",f=u.charCodeAt(++j);break;case 125:case 59:if(1<(D=(U=(0<Q?U.replace(c,""):U).trim()).length))switch(0===M&&(h=U.charCodeAt(0),45===h||96<h&&123>h)&&(D=(U=U.replace(" ",":")).length),0<R&&void 0!==(O=s(1,U,a,n,T,E,q.length,d,p,d))&&0===(D=(U=O.trim()).length)&&(U="\0\0"),h=U.charCodeAt(0),f=U.charCodeAt(1),h){case 0:break;case 64:if(105===f||99===f){B+=U+u.charAt(j);break}default:58!==U.charCodeAt(D-1)&&(q+=r(U,h,f,U.charCodeAt(2)))}V=Q=M=h=0,U="",f=u.charCodeAt(++j)}}switch(f){case 13:case 10:47===S?S=0:0===1+h&&107!==d&&0<U.length&&(Q=1,U+="\0"),0<R*L&&s(0,U,a,n,T,E,q.length,d,p,d),E=1,T++;break;case 59:case 125:if(0===S+$+w+_){E++;break}default:switch(E++,b=u.charAt(j),f){case 9:case 32:if(0===$+_+S)switch(A){case 44:case 58:case 9:case 32:b="";break;default:32!==f&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===$+S+_&&(Q=V=1,b="\f"+b);break;case 108:if(0===$+S+_+P&&0<M)switch(j-M){case 2:112===A&&58===u.charCodeAt(j-3)&&(P=A);case 8:111===x&&(P=x)}break;case 58:0===$+S+_&&(M=j);break;case 44:0===S+w+$+_&&(Q=1,b+="\r");break;case 34:case 39:0===S&&($=$===f?0:0===$?f:$);break;case 91:0===$+S+w&&_++;break;case 93:0===$+S+w&&_--;break;case 41:0===$+S+_&&w--;break;case 40:if(0===$+S+_){if(0===h)switch(2*A+3*x){case 533:break;default:h=1}w++}break;case 64:0===S+w+$+_+M+g&&(g=1);break;case 42:case 47:if(!(0<$+_+w))switch(S){case 0:switch(2*f+3*u.charCodeAt(j+1)){case 235:S=47;break;case 220:D=j,S=42}break;case 42:47===f&&42===A&&D+2!==j&&(33===u.charCodeAt(D+2)&&(q+=u.substring(D,j+1)),b="",S=0)}}0===S&&(U+=b)}x=A,A=f,j++}if(0<(D=q.length)){if(Q=a,0<R&&(void 0!==(O=s(2,q,Q,n,T,E,D,d,p,d))&&0===(q=O).length))return B+q+z;if(q=Q.join(",")+"{"+q+"}",0!=I*P){switch(2!==I||o(q,2)||(P=0),P){case 111:q=q.replace(v,":-moz-$1")+q;break;case 112:q=q.replace(y,"::-webkit-input-$1")+q.replace(y,"::-moz-$1")+q.replace(y,":-ms-input-$1")+q}P=0}}return B+q+z}(k,a,n,0,0);return 0<R&&(void 0!==(u=s(-2,d,a,a,T,E,d.length,0,0,0))&&(d=u)),"",P=0,E=T=1,d}var l=/^\0+/g,c=/[\0\r\f]/g,d=/: */g,p=/zoo|gra/,h=/([,: ])(transform)/g,f=/,\r+?/g,g=/([\t\r\n ])*\f?&/g,m=/@(k\w+)\s*(\S*)\s*/,y=/::(place)/g,v=/:(read-only)/g,b=/[svh]\w+-[tblr]{2}/,C=/\(\s*(.*)\s*\)/g,O=/([\s\S]*?);/g,_=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,w=/stretch|:\s*\w+\-(?:conte|avail)/,$=/([^-])(image-set\()/,E=1,T=1,P=0,I=1,k=[],A=[],R=0,x=null,L=0;return u.use=function e(t){switch(t){case void 0:case null:R=A.length=0;break;default:switch(t.constructor){case Array:for(var n=0,r=t.length;n<r;++n)e(t[n]);break;case Function:A[R++]=t;break;case Boolean:L=0|!!t}}return e},u.set=a,void 0!==e&&a(e),u}var Lt,Mt,jt=o((function(e,t){e.exports=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,o,i,s,a,u,l,c,d){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(o[0]+r),"";default:return r+(0===d?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}})),Qt=/[A-Z]|^ms/g,Vt=(Lt=function(e){return e.replace(Qt,"-$&").toLowerCase()},Mt={},function(e){return void 0===Mt[e]&&(Mt[e]=Lt(e)),Mt[e]}),Dt=function(e,t){return null==t||"boolean"==typeof t?"":1===Rt[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},Ft=function e(t){for(var n=t.length,r=0,o="";r<n;r++){var i=t[r];if(null!=i){var s=void 0;switch(typeof i){case"boolean":break;case"function":s=e([i()]);break;case"object":if(Array.isArray(i))s=e(i);else for(var a in s="",i)i[a]&&a&&(s&&(s+=" "),s+=a);break;default:s=i}s&&(o&&(o+=" "),o+=s)}}return o},Nt="undefined"!=typeof document;function Ut(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var qt=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=Ut(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var r=Ut(this.opts);this.tags.push(r),r.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(Ut(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();var zt=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,r,o=t.key||"css",i=jt((function(e){n+=e,Nt&&a.insert(e,l)}));void 0!==t.prefix&&(r={prefix:t.prefix});var s={registered:{},inserted:{},nonce:t.nonce,key:o},a=new qt(t);Nt&&a.inject();var u=new xt(r);u.use(t.stylisPlugins)(i);var l="";function c(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":if(void 0!==e.__emotion_styles){var n=e.toString();return n}return c.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return f.call(this,e);default:var r=s.registered[e];return!1===t&&void 0!==r?r:e}}var d,p,h=new WeakMap;function f(e){if(h.has(e))return h.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=c.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==s.registered[e[n]]?t+=n+"{"+s.registered[e[n]]+"}":t+=Vt(n)+":"+Dt(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===s.registered[e[n][0]]?e[n].forEach((function(e){t+=Vt(n)+":"+Dt(n,e)+";"})):t+=n+"{"+c.call(this,e[n],!1)+"}"}),this),h.set(e,t),t}var g=/label:\s*([^\s;\n{]+)\s*;/g,m=function(e,t){return function(e){for(var t,n=e.length,r=n^n,o=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(o)|(255&e.charCodeAt(++o))<<8|(255&e.charCodeAt(++o))<<16|(255&e.charCodeAt(++o))<<24))+((1540483477*(t>>>16)&65535)<<16),r=1540483477*(65535&r)+((1540483477*(r>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++o;switch(n){case 3:r^=(255&e.charCodeAt(o+2))<<16;case 2:r^=(255&e.charCodeAt(o+1))<<8;case 1:r=1540483477*(65535&(r^=255&e.charCodeAt(o)))+((1540483477*(r>>>16)&65535)<<16)}return r=1540483477*(65535&(r^=r>>>13))+((1540483477*(r>>>16)&65535)<<16),((r^=r>>>15)>>>0).toString(36)}(e+t)+t},y=function(e){var t=!0,n="",r="";null==e||void 0===e.raw?(t=!1,n+=c.call(this,e,!1)):n+=e[0];for(var o=arguments.length,i=new Array(o>1?o-1:0),s=1;s<o;s++)i[s-1]=arguments[s];return i.forEach((function(r,o){n+=c.call(this,r,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[o+1]&&(n+=e[o+1])}),this),p=n,n=n.replace(g,(function(e,t){return r+="-"+t,""})),d=m(n,r),n};function v(e,t){void 0===s.inserted[d]&&(n="",u(e,t),s.inserted[d]=n)}var b=function(){var e=y.apply(this,arguments),t=o+"-"+d;return void 0===s.registered[t]&&(s.registered[t]=p),v("."+t,e),t};function C(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==s.registered[t]?e.push(t):n+=t+" "})),n}function O(e,t){var n=[],r=C(n,e);return n.length<2?e:r+b(n,t)}function _(e){s.inserted[e]=!0}if(Nt){var S=document.querySelectorAll("[data-emotion-"+o+"]");Array.prototype.forEach.call(S,(function(e){a.tags[0].parentNode.insertBefore(e,a.tags[0]),e.getAttribute("data-emotion-"+o).split(" ").forEach(_)}))}var w={flush:function(){Nt&&(a.flush(),a.inject()),s.inserted={},s.registered={}},hydrate:function(e){e.forEach(_)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return O(Ft(t))},merge:O,getRegisteredStyles:C,injectGlobal:function(){var e=y.apply(this,arguments);v("",e)},keyframes:function(){var e=y.apply(this,arguments),t="animation-"+d;return v("","@keyframes "+t+"{"+e+"}"),t},css:b,sheet:a,caches:s};return e.__SECRET_EMOTION__=w,w}(void 0!==At?At:{}),Bt=(zt.flush,zt.hydrate,zt.cx),Ht=(zt.merge,zt.getRegisteredStyles),Gt=zt.injectGlobal,Wt=(zt.keyframes,zt.css),Zt=(zt.sheet,zt.caches,function(e){for(var t=arguments,n=1;n<arguments.length;n++)for(var r in arguments[n])e[r]=t[n][r];return e}),Kt="__emotion_styles";function Yt(e){return(Yt="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)}function Xt(e){return Array.isArray(e)?e.join(" "):"object"===Yt(e)?Object.keys(e).filter((function(t){return Boolean(e[t])})).join(" "):e}var Jt=function(e,t){var n,r,o,i;void 0!==t&&(n=t.e,r=t.label,o=t.target,i=t.props);var s=e.__emotion_real===e,a=void 0===n&&s&&e.__emotion_base||e;return function(){var t=s&&void 0!==e[Kt]?e[Kt].slice(0):[];if(void 0!==r&&t.push("label:".concat(r,";")),void 0===n){for(var u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];if(null===l[0]||void 0===l[0].raw)t.push.apply(t,l);else{t.push(l[0][0]);for(var d=l.length,p=1;p<d;p++)t.push(l[p],l[0][p])}}var h={name:"Styled".concat(e.name||r||"Component"),functional:!0,inject:{theme:{from:"theme_reactivesearch",default:null}},props:i,render:function(r,i){var s=i.data,a=i.children,u=i.props,l=i.injections,c="",d=[],p=Xt(s.class),h={};for(var f in s.attrs)"$"!==f[0]&&(h[f]=s.attrs[f]);if(p&&(c+=void 0===n?Ht(d,p):"".concat(p," ")),void 0===n){var g={mergedProps:Zt({theme:l.theme},u)};c+=Wt.apply(g,t.concat(d))}else c+=n;return void 0!==o&&(c+=" ".concat(o)),r(e,Zt({},s,{attrs:h,class:c}),a)}};return h[Kt]=t,h.__emotion_base=a,h.__emotion_real=h,Object.defineProperty(h,"toString",{enumerable:!1,value:function(){return".".concat(o)}}),h}};function en(){return(en=Object.assign?Object.assign.bind():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}).apply(this,arguments)}function tn(e){return Math.round(255*e)}function nn(e,t,n){return tn(e)+","+tn(t)+","+tn(n)}function rn(e,t,n,r){if(void 0===r&&(r=nn),0===t)return r(n,n,n);var o=e%360/60,i=(1-Math.abs(2*n-1))*t,s=i*(1-Math.abs(o%2-1)),a=0,u=0,l=0;o>=0&&o<1?(a=i,u=s):o>=1&&o<2?(a=s,u=i):o>=2&&o<3?(u=i,l=s):o>=3&&o<4?(u=s,l=i):o>=4&&o<5?(a=s,l=i):o>=5&&o<6&&(a=i,l=s);var c=n-i/2;return r(a+c,u+c,l+c)}var on={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"639",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"};var sn=/^#[a-fA-F0-9]{6}$/,an=/^#[a-fA-F0-9]{8}$/,un=/^#[a-fA-F0-9]{3}$/,ln=/^#[a-fA-F0-9]{4}$/,cn=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/,dn=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/,pn=/^hsl\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*\)$/,hn=/^hsla\(\s*(\d{0,3}[.]?[0-9]+)\s*,\s*(\d{1,3})%\s*,\s*(\d{1,3})%\s*,\s*([-+]?[0-9]*[.]?[0-9]+)\s*\)$/;function fn(e){if("string"!=typeof e)throw new Error("Passed an incorrect argument to a color function, please pass a string representation of a color.");var t=function(e){if("string"!=typeof e)return e;var t=e.toLowerCase();return on[t]?"#"+on[t]:e}(e);if(t.match(sn))return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16)};if(t.match(an)){var n=parseFloat((parseInt(""+t[7]+t[8],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[2],16),green:parseInt(""+t[3]+t[4],16),blue:parseInt(""+t[5]+t[6],16),alpha:n}}if(t.match(un))return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16)};if(t.match(ln)){var r=parseFloat((parseInt(""+t[4]+t[4],16)/255).toFixed(2));return{red:parseInt(""+t[1]+t[1],16),green:parseInt(""+t[2]+t[2],16),blue:parseInt(""+t[3]+t[3],16),alpha:r}}var o=cn.exec(t);if(o)return{red:parseInt(""+o[1],10),green:parseInt(""+o[2],10),blue:parseInt(""+o[3],10)};var i=dn.exec(t);if(i)return{red:parseInt(""+i[1],10),green:parseInt(""+i[2],10),blue:parseInt(""+i[3],10),alpha:parseFloat(""+i[4])};var s=pn.exec(t);if(s){var a="rgb("+rn(parseInt(""+s[1],10),parseInt(""+s[2],10)/100,parseInt(""+s[3],10)/100)+")",u=cn.exec(a);if(!u)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+a+".");return{red:parseInt(""+u[1],10),green:parseInt(""+u[2],10),blue:parseInt(""+u[3],10)}}var l=hn.exec(t);if(l){var c="rgb("+rn(parseInt(""+l[1],10),parseInt(""+l[2],10)/100,parseInt(""+l[3],10)/100)+")",d=cn.exec(c);if(!d)throw new Error("Couldn't generate valid rgb string from "+t+", it returned "+c+".");return{red:parseInt(""+d[1],10),green:parseInt(""+d[2],10),blue:parseInt(""+d[3],10),alpha:parseFloat(""+l[4])}}throw new Error("Couldn't parse the color string. Please provide the color as a string in hex, rgb, rgba, hsl or hsla notation.")}function gn(e){return function(e){var t,n=e.red/255,r=e.green/255,o=e.blue/255,i=Math.max(n,r,o),s=Math.min(n,r,o),a=(i+s)/2;if(i===s)return void 0!==e.alpha?{hue:0,saturation:0,lightness:a,alpha:e.alpha}:{hue:0,saturation:0,lightness:a};var u=i-s,l=a>.5?u/(2-i-s):u/(i+s);switch(i){case n:t=(r-o)/u+(r<o?6:0);break;case r:t=(o-n)/u+2;break;default:t=(n-r)/u+4}return t*=60,void 0!==e.alpha?{hue:t,saturation:l,lightness:a,alpha:e.alpha}:{hue:t,saturation:l,lightness:a}}(fn(e))}var mn=function(e){return 7===e.length&&e[1]===e[2]&&e[3]===e[4]&&e[5]===e[6]?"#"+e[1]+e[3]+e[5]:e};function yn(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function vn(e){return yn(Math.round(255*e))}function bn(e,t,n){return mn("#"+vn(e)+vn(t)+vn(n))}function Cn(e,t,n){return rn(e,t,n,bn)}function On(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return mn("#"+yn(e)+yn(t)+yn(n));if("object"==typeof e&&void 0===t&&void 0===n)return mn("#"+yn(e.red)+yn(e.green)+yn(e.blue));throw new Error("Passed invalid arguments to rgb, please pass multiple numbers e.g. rgb(255, 205, 100) or an object e.g. rgb({ red: 255, green: 205, blue: 100 }).")}function _n(e,t,n,r){if("string"==typeof e&&"number"==typeof t){var o=fn(e);return"rgba("+o.red+","+o.green+","+o.blue+","+t+")"}if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?On(e,t,n):"rgba("+e+","+t+","+n+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?On(e.red,e.green,e.blue):"rgba("+e.red+","+e.green+","+e.blue+","+e.alpha+")";throw new Error("Passed invalid arguments to rgba, please pass multiple numbers e.g. rgb(255, 205, 100, 0.75) or an object e.g. rgb({ red: 255, green: 205, blue: 100, alpha: 0.75 }).")}var Sn="Passed invalid argument to toColorString, please pass a RgbColor, RgbaColor, HslColor or HslaColor object.";function wn(e){if("object"!=typeof e)throw new Error(Sn);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&"number"==typeof e.alpha}(e))return _n(e);if(function(e){return"number"==typeof e.red&&"number"==typeof e.green&&"number"==typeof e.blue&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return On(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&"number"==typeof e.alpha}(e))return function(e,t,n,r){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n&&"number"==typeof r)return r>=1?Cn(e,t,n):"rgba("+rn(e,t,n)+","+r+")";if("object"==typeof e&&void 0===t&&void 0===n&&void 0===r)return e.alpha>=1?Cn(e.hue,e.saturation,e.lightness):"rgba("+rn(e.hue,e.saturation,e.lightness)+","+e.alpha+")";throw new Error("Passed invalid arguments to hsla, please pass multiple numbers e.g. hsl(360, 0.75, 0.4, 0.7) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75, alpha: 0.7 }).")}(e);if(function(e){return"number"==typeof e.hue&&"number"==typeof e.saturation&&"number"==typeof e.lightness&&("number"!=typeof e.alpha||void 0===e.alpha)}(e))return function(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Cn(e,t,n);if("object"==typeof e&&void 0===t&&void 0===n)return Cn(e.hue,e.saturation,e.lightness);throw new Error("Passed invalid arguments to hsl, please pass multiple numbers e.g. hsl(360, 0.75, 0.4) or an object e.g. rgb({ hue: 255, saturation: 0.4, lightness: 0.75 }).")}(e);throw new Error(Sn)}function $n(e){return function e(t,n,r){return function(){var o=r.concat(Array.prototype.slice.call(arguments));return o.length>=n?t.apply(this,o):e(t,n,o)}}(e,e.length,[])}function En(e,t,n){return Math.max(e,Math.min(t,n))}function Tn(e,t){var n=gn(t);return wn(en({},n,{lightness:En(0,1,n.lightness-parseFloat(e))}))}var Pn=$n(Tn);function In(e,t){var n=gn(t);return wn(en({},n,{lightness:En(0,1,n.lightness+parseFloat(e))}))}var kn,An,Rn,xn,Ln,Mn,jn,Qn,Vn=$n(In),Dn=function(e){var t=e.colors.borderColor;return Wt(kn||(kn=dt(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 2px 3px;\n\t\tpadding: 5px 8px;\n\t\tfont-size: 0.85rem;\n\t\tposition: relative;\n\n\t\tspan:first-child {\n\t\t\tmax-width: 260px;\n\t\t\twhite-space: nowrap;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\tmargin-right: 26px;\n\t\t}\n\n\t\tspan:last-child {\n\t\t\tdisplay: flex;\n\t\t\theight: 100%;\n\t\t\ttop: 0;\n\t\t\tright: 8px;\n\t\t\tposition: absolute;\n\t\t\talign-items: center;\n\t\t\tborder-left: 1px solid ",";\n\t\t\tpadding-left: 8px;\n\t\t\tmargin-left: 8px;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tspan:first-child {\n\t\t\t\ttext-decoration: line-through;\n\t\t\t}\n\t\t}\n\t}\n"])),t||"#fff")},Fn=Wt(An||(An=dt(["\n\tmargin: 10px -3px;\n\tmax-width: 100%;\n\ttext-align: center;\n\n\ta {\n\t\tmargin: 0 3px;\n\t}\n"]))),Nn=Wt(Rn||(Rn=dt(["\n\tmargin: 0 -3px;\n\tmax-width: 100%;\n\n\ta {\n\t\tmargin: 3px 3px;\n\t}\n"]))),Un=(Wt(xn||(xn=dt(["\n\tmargin: 0 -5px;\n\ta {\n\t\tmargin: 5px;\n\t}\n\tspan {\n\t\tmargin: 0 5px;\n\t}\n"]))),function(e){var t=e.theme;return Wt(Ln||(Ln=dt(["\n\tbackground-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.primaryColor,t.colors.primaryTextColor,Pn(.1,t.colors.primaryColor))}),qn=function(){return Wt(Mn||(Mn=dt(["\n\tmin-height: 40px;\n\tpadding: 10px 20px;\n"])))},zn=function(e){var t=e.theme;return Wt(jn||(jn=dt(["\n\tbackground-color: ",";\n\tcolor: #ccc;\n\tcursor: not-allowed;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor?Vn(.1,t.colors.backgroundColor):"#fafafa",t.colors.backgroundColor?Vn(.2,t.colors.backgroundColor):"#fafafa")},Bn=Jt("a")(Qn||(Qn=dt(["\n\tdisplay: inline-flex;\n\tjustify-content: center;\n\talign-items: center;\n\tborder-radius: 3px;\n\tborder: 1px solid transparent;\n\tmin-height: 30px;\n\tword-wrap: break-word;\n\tpadding: 5px 12px;\n\tline-height: 1.2rem;\n\tbackground-color: ",";\n\tcolor: ",";\n\tcursor: pointer;\n\tuser-select: none;\n\ttransition: all 0.3s ease;\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:focus {\n\t\toutline: 0;\n\t\tborder-color: ",";\n\t\tbox-shadow: ",";\n\t}\n\n\t",";\n\t",";\n\t",";\n\n\t&.enter-btn {\n\t\tborder-top-left-radius: 0px;\n\t\tborder-bottom-left-radius: 0px;\n\t\theight: 100%;\n\t}\n"])),(function(e){return e.theme.colors.backgroundColor||"#eee"}),(function(e){return e.theme.colors.textColor}),(function(e){var t=e.theme;return t.colors.backgroundColor?Pn(.1,t.colors.backgroundColor):"#ccc"}),(function(e){return _n(e.theme.colors.primaryColor,.6)}),(function(e){return"0 0 0 2px "+_n(e.theme.colors.primaryColor,.3)}),(function(e){return e.primary?Un:null}),(function(e){return e.disabled?zn:null}),(function(e){return e.large&&qn})),Hn=Wt({margin:"5px 0",display:"flex",justifyContent:"center"});kt.sensibleDefaults=!1;var Gn=kt.oneOfType([kt.string,kt.arrayOf(kt.string),kt.object,kt.arrayOf(kt.object)]);var Wn={any:kt.any,bool:kt.bool,boolRequired:kt.bool.isRequired,components:kt.arrayOf(kt.string),children:kt.any,data:kt.arrayOf(kt.object),dataFieldArray:kt.oneOfType([kt.string,kt.arrayOf(kt.string)]).isRequired,dataNumberBox:kt.shape({label:kt.string,start:kt.number.isRequired,end:kt.number.isRequired}).isRequired,date:kt.oneOfType([kt.string,kt.arrayOf(kt.string)]),dateObject:kt.object,excludeFields:kt.arrayOf(kt.string),fieldWeights:kt.arrayOf(kt.number),filterLabel:kt.string,func:kt.func,funcRequired:kt.func.isRequired,fuzziness:kt.oneOf([0,1,2,"AUTO"]),headers:kt.object,hits:kt.arrayOf(kt.object),iconPosition:kt.oneOf(["left","right"]),includeFields:kt.arrayOf(kt.string),labelPosition:kt.oneOf(["left","right","top","bottom"]),number:kt.number,options:kt.oneOfType([kt.arrayOf(kt.object),kt.object]),paginationAt:kt.oneOf(["top","bottom","both"]),range:kt.shape({start:kt.number.isRequired,end:kt.number.isRequired}),rangeLabels:kt.shape({start:kt.string.isRequired,end:kt.string.isRequired}),react:kt.shape({and:Gn,or:Gn,not:Gn}),selectedValues:kt.object,selectedValue:kt.oneOfType([kt.string,kt.arrayOf(kt.string),kt.arrayOf(kt.object),kt.object,Number,kt.arrayOf(Number)]),suggestions:kt.arrayOf(kt.object),supportedOrientations:kt.oneOf(["portrait","portrait-upside-down","landscape","landscape-left","landscape-right"]),sortBy:kt.oneOf(["asc","desc"]),sortOptions:kt.arrayOf(kt.shape({label:kt.string,dataField:kt.string,sortBy:kt.string})),sortByWithCount:kt.oneOf(["asc","desc","count"]),stats:kt.arrayOf(kt.object),string:kt.string,stringArray:kt.arrayOf(kt.string),stringOrArray:kt.oneOfType([kt.string,kt.arrayOf(kt.string)]),stringRequired:kt.string.isRequired,style:kt.object,themePreset:kt.oneOf(["light","dark"]),queryFormatSearch:kt.oneOf(["and","or"]),queryFormatNumberBox:kt.oneOf(["exact","lte","gte"]),params:kt.object.isRequired,props:kt.object,rangeLabelsAlign:kt.oneOf(["left","right"]),title:kt.oneOfType([kt.string,kt.any]),tooltipTrigger:kt.oneOf(["always","none","hover"]),location:kt.custom((function(e){return e&&e.lat&&e.lng?isNaN(e.lat)?(console.error(new Error("lat value must be a number")),!1):isNaN(e.lat)?(console.error(new Error("lng value must be a number")),!1):e.lat<-90||e.lat>90?(console.error(new Error("lat value should be between -90 and 90.")),!1):!(e.lat<-180||e.lat>180)||(console.error(new Error("lng value should be between -180 and 180.")),!1):(console.error(new Error("location must be an object with lat and lng keys defined")),!1)})),unit:kt.oneOf(["mi","miles","yd","yards","ft","feet","in","inch","km","kilometers","m","meters","cm","centimeters","mm","millimeters","NM","nmi","nauticalmiles"]),value:kt.string.def(void 0),analyticsConfig:kt.shape({emptyQuery:kt.bool,suggestionAnalytics:kt.bool,userId:kt.string,customEvents:kt.object}),appbaseConfig:kt.shape({recordAnalytics:kt.bool,emptyQuery:kt.bool,suggestionAnalytics:kt.bool,enableQueryRules:kt.bool,enableSearchRelevancy:kt.bool,userId:kt.string,useCache:kt.bool,customEvents:kt.object,enableTelemetry:kt.bool.def(!0)}).def({}),mongodb:kt.shape({db:kt.string,collection:kt.string})},Zn=st.getClassName,Kn=st.handleA11yAction;function Yn(e,t,n){var r=parseInt(e/2,10),o=t-(n?Math.ceil(r/2)-1:r);return o>1?o:2}var Xn,Jn={name:"Pagination",functional:!0,props:{currentPage:Wn.number,innerClass:Wn.style,pages:Wn.number,setPage:Wn.func,totalPages:Wn.number,showEndPage:kt.bool,prevLabel:Wn.string,nextLabel:Wn.string},render:function(e,t){var n=arguments[0],r=t.props,o=function(){r.currentPage&&r.setPage(r.currentPage-1)},i=function(){r.currentPage<r.totalPages-1&&r.setPage(r.currentPage+1)};if(!r.totalPages)return null;var s=Zn(r.innerClass,"button"),a=0===r.currentPage,u=s||a?s+" "+(a?"active":""):"",l=function(e){var t=r.pages,o=r.currentPage,i=r.totalPages,a=r.setPage,u=r.showEndPage,l="start"===e?Yn(t,o,u):Math.max(2,Math.ceil(i-(t-1)/2+1)),c=[],d=l;if(l<=i){var p=t<i?l+(t-1):i+1;u&&(p="start"===e?l+(Math.ceil(t/2)-t%2):i+1),o>i-t+2&&(l=Math.max(2,i-t+2),p=l+t);for(var h=function(e){var t=o===e-1,r=n(Bn,{class:s||t?s+" "+(t?"active":""):"",attrs:{primary:t,tabIndex:"0",alt:"page-"+e},on:{keyPress:function(t){return Kn(t,(function(){return a(e-1)}))},click:function(){return a(e-1)}}},[e]);e<=i+1&&(c.push(r),e===Math.min(i+1,p)-1&&(d=e))},f=l;f<Math.min(i+1,p);f+=1)h(f)}return[c,l,d]},c=function(){var e=r.showEndPage,t=r.currentPage,n=r.totalPages,o=r.pages;return e?t<=n-o+2||n<o?l("start")[0]:null:l("start")[0]};return n("div",{class:Fn+" "+Zn(r.innerClass,"pagination")},[n(Bn,{class:Zn(r.innerClass,"button")||"",attrs:{disabled:0===r.currentPage,tabIndex:"0"},on:{keyPress:function(e){return Kn(e,o)},click:o}},[r.prevLabel||"Prev"]),n(Bn,{class:u,attrs:{primary:a,tabIndex:"0"},on:{keyPress:function(e){return Kn(e,(function(){return r.setPage(0)}))},click:function(){return r.setPage(0)}}},["1"]),r.showEndPage&&r.currentPage>=Math.floor(r.pages/2)+!!(r.pages%2)&&2!==l("start")[1]?n("span",["..."]):null,c(),r.showEndPage&&r.pages>2&&r.currentPage<=r.totalPages-Math.ceil(.75*r.pages)&&l("start")[2]!==l("end")[1]-1?n("span",["..."]):null,r.showEndPage&&r.totalPages>=r.pages&&l("end")[0],n(Bn,{class:Zn(r.innerClass,"button")||"",attrs:{disabled:r.currentPage>=r.totalPages-1,tabIndex:"0"},on:{keyPress:function(e){return Kn(e,i)},click:i}},[r.nextLabel||"Next"])])}};Jn.install=function(e){e.component(Jn.name,Jn)};var er=Jt("img")(Xn||(Xn=dt(["\n\twidth: 110px;\n"]))),tr={functional:!0,render:function(e){return e("a",{attrs:{href:"https://appbase.io/",target:"_blank",rel:"noopener noreferrer"}},[e(er,{attrs:{src:"https://cdn.jsdelivr.net/gh/appbaseio/cdn@d2ec210045e59104ee5485841fa17b23fc83f097/appbase/logos/rbc-logo.svg"}})])}},nr=Object.prototype.hasOwnProperty;function rr(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}var or=function(){return{}},ir={},sr=function(e,t){return void 0===e&&(e=or),void 0===t&&(t=ir),function(n){var r=function(e){if("function"==typeof e)return e;if(e===Object(e))return function(t,n){return Object.keys(e).filter((function(t){return"function"==typeof e[t]})).reduce((function(r,o){var i;return at({},r,((i={})[o]=e[o](t,n),i))}),{})};throw new Error("[revux] - mapState provided to connect is invalid")}(e);return{name:"connect-"+n.name,mixins:[n],inject:["$$store"],data:function(){var e=at({},r(this.$$store.getState(),this.$props||{}),y(t,this.$$store.dispatch));return Object.keys(e).reduce((function(t,n){var r;return at({},t,((r={})[n]=e[n],r))}),{})},created:function(){var e,t,n,o,i=this;this._unsubscribe=(e=this.$$store,n=function(e){Object.keys(e).forEach((function(t){i.$set(i,t,e[t])}))},o=(t=function(e){return r(e,i.$props||{})})(e.getState()),e.subscribe((function(){var r=t(e.getState());if(!function(e,t){if(rr(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o+=1)if(!nr.call(t,n[o])||!rr(e[n[o]],t[n[o]]))return!1;return!0}(o,r)){var i=o;n(o=r,i)}})))},beforeDestroy:function(){this._unsubscribe()}}}},ar=st.updateDefaultQuery,ur=st.updateCustomQuery,lr=st.isEqual,cr=function(){return sr.apply(void 0,arguments)},dr=function(e){return"function"==typeof e};function pr(e,t){var n;Array.isArray(e)?n=[].concat(e):n=Object.keys(e).map((function(t){return e[t]?t:null}));return n.includes(t)?n.filter((function(e){return e!==t})):[].concat(n,[t])}var hr=function(e,t){void 0===e&&(e={}),void 0===t&&(t={});var n=(t.$scopedSlots||t.$props).render;return n?n(e):null},fr=function(e){void 0===e&&(e={});var t=(e.$scopedSlots||e.$props).render;return Boolean(t)},gr=function(e){return void 0===e&&(e={}),Object.keys(e).filter((function(e){return M.includes(e)}))},mr=function(e){return!!(e&&e.stopPropagation&&e.preventDefault)},yr=function(e,t,n,r){ar(e,at({},n,{setDefaultQuery:t}),r)},vr=function(e,t,n,r){ur(e,at({},n,{setCustomQuery:t}),r)},br=function(e,t,n,r){return"function"!=typeof e||"function"!=typeof t||lr(t(n,r),e(n,r))},Cr=function(e){void 0===e&&(e={});var t=e.$scopedSlots||e.$props,n=t.renderQuerySuggestions,r=t.renderPopularSuggestions;return Boolean(r)||Boolean(n)},Or=function(e){return!(e&&e.length&&Object.keys(e).length)};function _r(e){return/^-?\d+$/.test(e)}function Sr(e){var t=e,n=t-48*Math.floor(t/48);return String.fromCharCode(t>=96?n:t)}function wr(e){if(Or(e))return[];var t=[];return e.forEach((function(e){if("string"==typeof e)if("string"==typeof(s=e)&&-1!==s.indexOf("+")){for(var n,r=e.split("+"),o=[],i=0;i<r.length;i+=1)_r(r[i])?o.push(Sr(+r[i])):o.push(r[i]);n=o.join("+"),t.push(n)}else _r(e)?t.push(Sr(+e)):t.push(e);else t.push(Sr(e));var s})),t}var $r=["shift","ctrl","alt","control","option","cmd","command"];function Er(e){return e.filter((function(e){return $r.includes(e)}))}function Tr(e){return"string"!=typeof e?e:e.replace(/&#([0-9]{1,3});/gi,(function(e,t){var n=parseInt(t,10);return String.fromCharCode(n)}))}var Pr=ot.addComponent,Ir=ot.removeComponent,kr=ot.watchComponent,Ar=ot.setQueryListener,Rr=ot.setComponentProps,xr=ot.updateComponentProps,Lr=st.pushToAndClause,Mr=st.checkPropChange,jr=st.checkSomePropChange,Qr=function(e,t){return{savedComponentProps:e.props[t.componentId]}},Vr={addComponent:Pr,removeComponent:Ir,setQueryListener:Ar,watchComponent:kr,setComponentProps:Rr,updateComponentProps:xr},Dr=function(e,t){return void 0===t&&(t={}),cr(Qr,Vr)(function(e,t){return void 0===t&&(t={componentType:null,internalComponent:!1}),{name:"ComponentWrapper",props:{destroyOnUnmount:kt.bool.def(!1)},created:function(){var e=at({},this.$attrs),t={};Object.keys(e).forEach((function(n){var r;t[(r=n,void 0===r&&(r=""),r.split("-").map((function(e,t){return t?e.charAt(0).toUpperCase()+e.slice(1).toLowerCase():e})).join("")||"")]=e[n]})),this.componentProps=t,this.componentId=this.componentProps.componentId,this.react=this.componentProps.react},beforeMount:function(){var e=this,n=[];this.$$store&&(n=this.$$store.getState().components);if(this.destroyOnUnmount||-1===n.indexOf(this.componentProps.componentId)){this.addComponent(this.componentId);this.setQueryListener(this.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))}),(function(t){e.$emit("error",t)})),this.setComponentProps(this.componentId,this.componentProps,t.componentType)}(t.internalComponent||this.componentProps.defaultQuery&&t.componentType===L.reactiveComponent)&&(this.internalComponent=Qe(this.componentId)),this.internalComponent&&(this.destroyOnUnmount||-1===n.indexOf(this.internalComponent))&&(this.addComponent(this.internalComponent),this.setComponentProps(this.internalComponent,this.componentProps,t.componentType))},mounted:function(){this.internalComponent&&this.setReact(this.componentProps)},beforeDestroy:function(){this.destroyOnUnmount&&(this.removeComponent(this.componentId),this.internalComponent&&this.removeComponent(this.internalComponent))},watch:{$attrs:{deep:!0,handler:function(e){var n=this,r=gr(e);jr(e,this.savedComponentProps,r,(function(){n.updateComponentProps(n.componentId,e,t.componentType),n.updateComponentProps(n.internalComponent,e,t.componentType)}))}},react:function(e,t){var n=this;Mr(e,t,(function(){return n.setReact(n.componentProps)}))}},methods:{setReact:function(e){var t=e.react;if(this.internalComponent)if(t){var n=Lr(t,this.internalComponent);this.watchComponent(e.componentId,n)}else this.watchComponent(e.componentId,{and:this.internalComponent});else this.watchComponent(e.componentId,t)}},render:function(t){return t(e,{attrs:this.$attrs,on:this.$listeners,scopedSlots:this.$scopedSlots,slots:this.$slots})}}}(e,t))};function Fr(){return(Fr=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)}var Nr,Ur,qr,zr,Br,Hr,Gr,Wr,Zr=["attrs","props","domProps"],Kr=["class","style","directives"],Yr=["on","nativeOn"],Xr=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},Jr=function(e){return e.reduce((function(e,t){for(var n in t)if(e[n])if(-1!==Zr.indexOf(n))e[n]=Fr({},e[n],t[n]);else if(-1!==Kr.indexOf(n)){var r=e[n]instanceof Array?e[n]:[e[n]],o=t[n]instanceof Array?t[n]:[t[n]];e[n]=[].concat(r,o)}else if(-1!==Yr.indexOf(n))for(var i in t[n])if(e[n][i]){var s=e[n][i]instanceof Array?e[n][i]:[e[n][i]],a=t[n][i]instanceof Array?t[n][i]:[t[n][i]];e[n][i]=[].concat(s,a)}else e[n][i]=t[n][i];else if("hook"===n)for(var u in t[n])e[n][u]=e[n][u]?Xr(e[n][u],t[n][u]):t[n][u];else e[n]=t[n];else e[n]=t[n];return e}),{})},eo=Jt("h2")(Nr||(Nr=dt(["\n\tmargin: 0 0 8px;\n\tfont-size: 1rem;\n\tcolor: ",";\n"])),(function(e){return e.theme.colors.titleColor})),to=Wt(Ur||(Ur=dt(["\n\tdisplay: flex;\n\tflex-direction: column;\n\tmargin: 0;\n\tborder-radius: 0.25rem;\n\toverflow: hidden;\n"]))),no=Wt(qr||(qr=dt(["\n\twidth: 100px;\n\theight: 100px;\n"]))),ro=Jt("div")(zr||(zr=dt(["\n\twidth: 160px;\n\theight: 160px;\n\t",";\n\tmargin: 0;\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n\tbackground-image: ",";\n"])),(function(e){return e.small?no:null}),(function(e){return"url("+e.src+")"})),oo=Jt("a")(Br||(Br=dt(["\n\twidth: 100%;\n\theight: auto;\n\toutline: none;\n\ttext-decoration: none;\n\tborder-radius: 0;\n\tbackground-color: ",";\n\tdisplay: flex;\n\tflex-direction: row;\n\tmargin: 0;\n\tpadding: 10px;\n\tborder-bottom: 1px solid ",";\n\tcolor: ",";\n\t","; all 0.3s ease;\n\n\t&:hover, &:focus {\n\t\tbackground-color: ",";\n\t}\n\n\t&:last-child {\n\t\tborder: 0;\n\t}\n\n\th2 {\n\t\twidth: 100%;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 0 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\twidth: ",";\n\t\tpadding-left: ",";\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover, &:focus {\n\t\tbox-shadow: 0 0 0 0 rgba(0,0,0,0.10);\n\t}\n\n\t@media (max-width: 420px) {\n\t\tmin-width: 0;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover, &:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?Vn(.1,t.colors.backgroundColor):"#fff"}),(function(e){var t=e.theme;return t.colors.backgroundColor?Vn(.3,t.colors.backgroundColor):Vn(.68,t.colors.textColor)}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null}),(function(e){var t=e.theme;return t.colors.backgroundColor?Vn(.2,t.colors.backgroundColor):"#fdfefd"}),(function(e){return e.image?e.small?"calc(100% - 100px)":"calc(100% - 160px)":"100%"}),(function(e){return e.image?"10px":0})),io={name:"ResultListWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Jr([{attrs:{className:to}},n]),[r])}};io.install=function(e){e.component(io.name,io)};var so,ao,uo,lo,co,po,ho,fo,go,mo,yo,vo=Wt(Hr||(Hr=dt(["\n\tdisplay: flex;\n\tflex-direction: row;\n\tjustify-content: center;\n\tflex-wrap: wrap;\n\tmargin: 0 -8px;\n\n\t@media (max-width: 420px) {\n\t\tmargin: 0;\n\t}\n"]))),bo=Jt("div")(Gr||(Gr=dt(["\n\twidth: calc(100% + 20px);\n\theight: 220px;\n\tmargin: -10px -10px 0;\n\tbackground-color: ",";\n\tbackground-size: contain;\n\tbackground-position: center center;\n\tbackground-repeat: no-repeat;\n"])),(function(e){return e.theme.colors.backgroundColor||"#fcfcfc"})),Co=Jt("a")(Wr||(Wr=dt(["\n\twidth: auto;\n\tflex-grow: 1;\n\toutline: none;\n\ttext-decoration: none;\n\tmin-width: 240px;\n\tmax-width: 250px;\n\tborder-radius: 0.25rem;\n\tbackground-color: ",";\n\theight: 300px;\n\tdisplay: flex;\n\tflex-direction: column;\n\tjustify-content: space-between;\n\tmargin: 8px;\n\tpadding: 10px;\n\toverflow: hidden;\n\tbox-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.2);\n\tcolor: ",";\n\t",";\n\ttransition: all 0.3s ease;\n\n\th2 {\n\t\twidth: 100%;\n\t\tfont-size: 0.9rem;\n\t\tline-height: 1.2rem;\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t\tmargin: 0;\n\t\tpadding: 10px 0 8px;\n\t}\n\n\tp {\n\t\tmargin: 0;\n\t}\n\n\tarticle {\n\t\tflex-grow: 1;\n\t\tfont-size: 0.9rem;\n\t}\n\n\t&:hover,\n\t&:focus {\n\t\tbox-shadow: 0 0 8px 1px rgba(0, 0, 0, 0.3);\n\t}\n\n\t@media (max-width: 420px) {\n\t\twidth: 50%;\n\t\tmin-width: 0;\n\t\theight: 210px;\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tbox-shadow: none;\n\t\tborder: 1px solid #eee;\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbox-shadow: 0;\n\t\t}\n\t}\n"])),(function(e){var t=e.theme;return t.colors.backgroundColor?Vn(.1,t.colors.backgroundColor):"#fff"}),(function(e){return e.theme.colors.textColor}),(function(e){return e.href?"cursor: pointer":null})),Oo={name:"ResultCardsWrapper",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Jr([{attrs:{className:vo}},n]),[r])}};Oo.install=function(e){e.component(Oo.name,Oo)};var _o,So,wo=Wt(so||(so=dt(["\n\tflex-direction: row;\n\talign-items: center;\n"]))),$o=Wt(ao||(ao=dt(["\n\tflex-direction: row-reverse;\n\talign-items: center;\n"]))),Eo=Wt(uo||(uo=dt(["\n\tflex-direction: column;\n"]))),To=Wt(lo||(lo=dt(["\n\tflex-direction: column-reverse;\n"]))),Po=function(e){var t=e.theme.colors;return Wt(co||(co=dt(["\n\tborder: 1px solid ",";\n"])),t.borderColor||"#ccc")},Io=Jt("div")(po||(po=dt(["\n\tdisplay: ",";\n\t",";\n\t",";\n\t",";\n\t",";\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\tsvg.cancel-icon {\n\t\tcursor: pointer;\n\t\tfill: ",";\n\t\tflex-basis: 30px;\n\n\t\t&:hover {\n\t\t\tfill: ",";\n\t\t}\n\t}\n"])),(function(e){return e.inline?"inline-flex":"flex"}),(function(e){return("left"===e.labelPosition||"right"===e.iconPosition)&&wo}),(function(e){return("right"===e.labelPosition||"left"===e.iconPosition)&&$o}),(function(e){return"top"===e.labelPosition&&Eo}),(function(e){return"bottom"===e.labelPosition&&To}),(function(e){return e.showBorder&&Po}),(function(e){return e.justifyContent&&Wt(ho||(ho=dt(["\n\t\t\tjustify-content: ",";\n\t\t"])),e.justifyContent)}),(function(e){return e.alignItems&&Wt(fo||(fo=dt(["\n\t\t\talign-items: ",";\n\t\t"])),e.alignItems)}),(function(e){return e.flex&&Wt(go||(go=dt(["\n\t\t\tflex: ",";\n\t\t"])),e.flex)}),(function(e){return e.direction&&Wt(mo||(mo=dt(["\n\t\t\tflex-direction: ",";\n\t\t"])),e.direction)}),(function(e){return e.basis&&Wt(yo||(yo=dt(["\n\t\t\tflex-basis: ",";\n\t\t"])),e.basis)}),(function(e){var t=e.theme.colors;return t.borderColor||Vn(.3,t.textColor)}),(function(e){return e.theme.colors.textColor})),ko=Wt(_o||(_o=dt(["\n\tflex-grow: 1;\n\tfont-size: 0.82rem;\n"]))),Ao=Wt(So||(So=dt(["\n\tcolor: #424242;\n\theight: 32px;\n\tfont-size: 0.82rem;\n\tpadding: 0 25px 0 10px;\n\tbackground: url(data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0Ljk1IDEwIj48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6I2ZmZjt9LmNscy0ye2ZpbGw6IzQ0NDt9PC9zdHlsZT48L2RlZnM+PHRpdGxlPmFycm93czwvdGl0bGU+PHJlY3QgY2xhc3M9ImNscy0xIiB3aWR0aD0iNC45NSIgaGVpZ2h0PSIxMCIvPjxwb2x5Z29uIGNsYXNzPSJjbHMtMiIgcG9pbnRzPSIxLjQxIDQuNjcgMi40OCAzLjE4IDMuNTQgNC42NyAxLjQxIDQuNjciLz48cG9seWdvbiBjbGFzcz0iY2xzLTIiIHBvaW50cz0iMy41NCA1LjMzIDIuNDggNi44MiAxLjQxIDUuMzMgMy41NCA1LjMzIi8+PC9zdmc+)\n\t\tno-repeat 95% 50%;\n\tbackground-color: #fff;\n\t-moz-appearance: none;\n\t-webkit-appearance: none;\n\tappearance: none;\n\t-webkit-border-radius: 0;\n\tborder-radius: 0;\n\tborder: 0;\n\toutline: 1px solid #ddd;\n\toutline-offset: -1px;\n"]))),Ro=ot.recordImpressions,xo=st.isEqual,Lo={name:"ImpressionTracker",inject:["$$store"],props:{hits:Wn.hits},created:function(){this.currentHits=[],this.trackedIds={},this.waitingToBeTracked={}},mounted:function(){this.setCurrentHits(this.hits),window&&window.addEventListener("scroll",this.tracker)},destroy:function(){this.clearTrackerInterval()},watch:{hits:function(e,t){if(e&&e!==t){var n=t.map((function(e){return e._id})),r=e.map((function(e){return e._id}));xo(r,n)||this.setCurrentHits(e)}}},methods:{inViewPort:function(e){var t=e.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.right<=(window.innerWidth||document.documentElement.clientWidth)},setCurrentHits:function(e){this.currentHits=e,this.trackedIds={},e&&e.length&&(this.tracker(),this.setTrackerInterval())},recordImpression:function(){var e=this;if(Object.keys(this.waitingToBeTracked).length){var t=at({},this.waitingToBeTracked);Object.keys(t).forEach((function(n){t[n]&&t[n].length&&(e.trackImpressions(n,t[n]),delete e.waitingToBeTracked[n])}))}},addToWaitingList:function(e){var t=this.getQueryId();if(e&&t){var n={id:e._id,index:e._index};this.waitingToBeTracked[t]?this.waitingToBeTracked[t].push(n):this.waitingToBeTracked[t]=[n]}},tracker:function(){var e,t,n=this;this.getHitIds().length?(window&&document&&this.getHitIds().forEach((function(e){var t=document.getElementById(e);if(t&&n.inViewPort(t)){var r=n.currentHits.find((function(t){return t._id===e}));n.trackedIds[e]=!0,n.addToWaitingList(r)}})),e=this.recordImpression,t=300,clearTimeout(e._tId),e._tId=setTimeout((function(){e()}),t)):this.clearTrackerInterval()},setTrackerInterval:function(){this.intervalID=setInterval(this.tracker,1e3)},clearTrackerInterval:function(){this.intervalID&&(clearInterval(this.intervalID),this.intervalID=null)},getQueryId:function(){var e=this.$$store?this.$$store.getState():null;return e?e.analytics.searchId:null},getHitIds:function(){var e=this;return this.currentHits.map((function(e){return e._id})).filter((function(t){return!e.trackedIds[t]}))}},render:function(){return this.$slots.default}},Mo=cr((function(){return null}),{trackImpressions:Ro})(Lo),jo=ot.setQueryOptions,Qo=ot.updateQuery,Vo=ot.loadMore,Do=ot.setValue,Fo=ot.updateComponentProps,No=ot.setDefaultQuery,Uo=ot.recordResultClick,qo=st.isEqual,zo=st.getQueryOptions,Bo=st.getClassName,Ho=st.parseHits,Go=st.getCompositeAggsQuery,Wo=st.getResultStats,Zo=st.extractQueryFromCustomQuery,Ko=st.getOptionsForCustomQuery,Yo={name:"ReactiveList",components:{ResultListWrapper:io,ResultCardsWrapper:Oo},data:function(){var e=0,t=this.defaultPage||-1;return t>=0?e=t:this.currentPage&&(e=Math.max(this.currentPage-1,0)),this.__state={from:e*this.size,currentPageState:e},this.__state},created:function(){var e=this,t=this.$props,n=t.distinctField,r=t.distinctFieldConfig,o=t.index;this.pagination&&this.aggregationField&&console.warn("Pagination is not supported when aggregationField is present. The list will be rendered with infinite scroll"),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||!n&&!r||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&&o&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`.");var i=this.defaultPage||-1;i>=0&&(this.currentPageState=i,this.from=this.currentPageState*this.$props.size),this.internalComponent=this.$props.componentId+"__internal",this.sortOptionIndex=0,this.defaultSortOption&&this.sortOptions&&Array.isArray(this.sortOptions)&&(this.sortOptionIndex=this.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption}))),this.urlSortOption&&(this.sortOptionIndex=this.$props.sortOptions.findIndex((function(t){return t.label===e.urlSortOption}))||0),this.updateComponentProps(this.componentId,{from:this.from},L.reactiveList),this.updateComponentProps(this.internalComponent,{from:this.from},L.reactiveList)},props:{currentPage:kt.number.def(0),includeFields:Wn.includeFields,className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,aggregationField:Wn.string,aggregationSize:kt.number,defaultQuery:Wn.func,defaultSortOption:Wn.string,excludeFields:Wn.excludeFields,innerClass:Wn.style,listClass:kt.string.def(""),loader:Wn.title,render:Wn.func,renderItem:Wn.func,renderNoResults:kt.any.def("No Results found."),renderError:Wn.title,renderResultStats:Wn.func,pages:kt.number.def(5),pagination:kt.bool.def(!1),infiniteScroll:kt.bool.def(!0),paginationAt:kt.oneOf(["top","bottom","both"]).def("bottom"),react:Wn.react,scrollOnChange:kt.bool.def(!0),showResultStats:kt.bool.def(!0),showEndPage:kt.bool.def(!1),size:kt.number.def(10),sortBy:Wn.sortBy,sortOptions:Wn.sortOptions,URLParams:kt.bool.def(!1),prevLabel:Wn.string,nextLabel:Wn.string,distinctField:Wn.string,distinctFieldConfig:Wn.props,index:kt.string},computed:{shouldRenderPagination:function(){return this.pagination&&!this.aggregationField},totalPages:function(){return Math.ceil(this.total/this.$props.size)||0},hasPageChangeListener:function(){return this.$listeners&&this.$listeners.pageChange},hasResultStatsListener:function(){return this.$listeners&&this.$listeners.resultStats},stats:function(){return at({},Wo(this),{currentPage:this.currentPageState,displayedResults:this.data.length})},hasCustomRender:function(){return fr(this)},showInfiniteScroll:function(){return this.infiniteScroll&&!this.shouldRenderPagination},data:function(){var e=Ho(this.hits)||[],t=Ho(this.promotedResults)||[],n=e;if(t.length){var r=t.map((function(e){return e._id})).filter(Boolean);r&&(n=n.filter((function(e){return!r.includes(e._id)}))),n=[].concat(t,n)}return _e(n)}},watch:{sortOptions:function(e,t){qo(t,e)||this.updateQueryOptions(this.$props)},sortBy:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},size:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},dataField:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},includeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},excludeFields:function(e,t){t!==e&&this.updateQueryOptions(this.$props)},defaultQuery:function(e,t){if(!br(e,t,null,this.$props)){var n=zo(this.$props);n.from=0,this.$defaultQuery=e(null,this.$props);var r=Zo(this.$defaultQuery),o=Ko(this.$defaultQuery);o&&(n=at({},n,o)),yr(this.componentId,this.setDefaultQuery,this.$props),this.setQueryOptions(this.$props.componentId,at({},n,this.getAggsQuery()),!r),this.updateQuery({componentId:this.internalComponent,query:r},!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){qo(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){qo(e,t)||this.$emit("data",this.getData())},time:function(e,t){qo(e,t)||this.$emit("data",this.getData())},hits:function(e,t){this.$emit("data",this.getData()),this.shouldRenderPagination?this.isLoading&&(t||e)&&(this.hasPageChangeListener?(this.$emit("pageChange",this.currentPageState+1,this.totalPages),this.$emit("page-change",this.currentPageState+1,this.totalPages)):this.scrollOnChange&&window.scrollTo(0,0)):t&&e&&(t.length===e.length&&e.length!==this.$props.total||e.length<t.length&&(this.scrollOnChange&&window.scrollTo(0,0),this.from=0))},rawData:function(e,t){qo(e,t)||this.$emit("data",this.getData())},currentPage:function(e,t){t!==e&&e>0&&e<=this.totalPages&&this.setPage(e-1)},infiniteScroll:function(e,t){e!==t&&(e?window.removeEventListener("scroll",this.scrollHandler):window.addEventListener("scroll",this.scrollHandler))},defaultPage:function(e,t){this.currentPageState!==e&&t!==e&&this.setPage(e>=0?e:0)}},mounted:function(){this.defaultPage<0&&this.currentPage>0&&this.setPageURL(this.$props.componentId,this.currentPage,this.$props.componentId,!1,this.URLParams);var e=zo(this.$props);if(e.from=this.$data.from,this.sortOptions&&this.sortOptions[this.sortOptionIndex]){var t,n=this.sortOptions[this.sortOptionIndex].dataField,r=this.sortOptions[this.sortOptionIndex].sortBy;e.sort=[(t={},t[n]={order:r},t)],this.updateComponentProps(this.componentId,{dataField:n,sortBy:r},L.reactiveList)}else if(this.$props.sortBy){var o;e.sort=[(o={},o[this.$props.dataField]={order:this.$props.sortBy},o)]}this.$defaultQuery=null,this.$props.defaultQuery&&(this.$defaultQuery=this.$props.defaultQuery(),e=at({},e,Ko(this.$defaultQuery)),yr(this.componentId,this.setDefaultQuery,this.$props));var i=Zo(this.$defaultQuery);this.setQueryOptions(this.$props.componentId,at({},e,this.getAggsQuery()),!1),this.$defaultQuery?this.updateQuery({componentId:this.internalComponent,query:i},!1):this.updateQuery({componentId:this.internalComponent,query:null},!1),this.showInfiniteScroll&&window.addEventListener("scroll",this.scrollHandler)},beforeDestroy:function(){this.showInfiniteScroll&&window.removeEventListener("scroll",this.scrollHandler)},render:function(){var e=arguments[0],t=this.$data.hits,n=Ho(t)||[];return e("div",{style:this.$props.style,class:this.$props.className},[this.isLoading&&this.shouldRenderPagination&&this.showInfiniteScroll&&(this.$scopedSlots.loader||this.$props.loader),this.renderErrorComponent(),e(Io,{attrs:{labelPosition:this.sortOptions?"right":"left"},class:Bo(this.$props.innerClass,"resultsInfo")},[this.sortOptions?this.renderSortOptions():null,this.$props.showResultStats&&n.length?this.renderStats():null]),!this.isLoading&&t&&0===t.length?this.renderNoResult():null,!this.shouldRenderPagination||"top"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(Jn,{attrs:{pages:this.$props.pages,totalPages:this.totalPages,currentPage:this.currentPageState,setPage:this.setPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel}}),this.renderResults(),this.isLoading&&!this.shouldRenderPagination?this.$scopedSlots.loader||this.$props.loader||e("div",{style:{textAlign:"center",margin:"20px 0",color:"#666"}},["Loading..."]):null,!this.shouldRenderPagination||"bottom"!==this.$props.paginationAt&&"both"!==this.$props.paginationAt?null:e(Jn,{attrs:{pages:this.$props.pages,totalPages:Math.ceil(this.$data.total/this.$props.size),currentPage:this.currentPageState,setPage:this.setPage,showEndPage:this.$props.showEndPage,innerClass:this.$props.innerClass,prevLabel:this.$props.prevLabel,nextLabel:this.$props.nextLabel}}),this.url.endsWith("appbase.io")&&n.length?e(Io,{attrs:{direction:"row-reverse"},class:Bo(this.$props.innerClass,"poweredBy")},[e(tr)]):null])},methods:{renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?dr(e)?e(this.error):e:null},renderResults:function(){var e=this,t=this.$createElement,n=this.$props.size,r=this.$scopedSlots.renderItem||this.$props.renderItem,o=this.hasCustomRender?this.getComponent():t("div",{class:this.$props.listClass+" "+Bo(this.$props.innerClass,"list")},[this.data.map((function(t,o){return r({item:t,count:e.currentPageState*n+o+1,triggerClickAnalytics:function(){return e.triggerClickAnalytics(e.currentPageState*n+o)}})}))]);return this.analytics?t(Mo,{attrs:{hits:this.data}},[o]):o},updateQueryOptions:function(e){var t=zo(e);if(t.from=this.$data.from,e.sortOptions&&Array.isArray(e.sortOptions)){var n,r=e.defaultSortOption?e.sortOptions.findIndex((function(t){return t.label===e.defaultSortOption})):0;if(e.sortOptions[r])t.sort=[(n={},n[e.sortOptions[r].dataField]={order:e.sortOptions[r].sortBy},n)]}else if(e.sortBy){var o;t.sort=[(o={},o[e.dataField]={order:e.sortBy},o)]}this.setQueryOptions(this.$props.componentId,at({},t,this.getAggsQuery()),!0)},getAggsQuery:function(){var e=this.$props,t=e.size,n=e.aggregationField,r=this.$data.afterKey,o={size:t};return n&&(o.aggs=Go({props:this.$props,after:r||null,showTopHits:!0}).aggs),o},scrollHandler:function(){!this.isLoading&&window.innerHeight+window.pageYOffset+300>=document.body.scrollHeight&&this.loadMore()},loadMore:function(){if((!this.aggregationField||this.afterKey)&&this.hits&&!this.shouldRenderPagination&&this.total>this.hits.length){var e=this.$data.from+this.$props.size;if(this.hits.length<e)return;var t=at({},zo(this.$props),this.getAggsQuery());this.from=e,yr(this.componentId,this.setDefaultQuery,this.$props),this.loadMoreAction(this.$props.componentId,at({},t,{from:e}),!0,!!this.aggregationField)}},setPage:function(e){if(e!==this.currentPageState){this.$emit("pageClick",e+1),this.$emit("page-click",e+1);var t=this.$props.size*e,n=zo(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.$props.componentId,at({},n,{from:t}),!1),this.setPageURL(this.$props.componentId,e+1,this.$props.componentId,!1,this.URLParams)}},renderStats:function(){var e=this.$createElement,t=this.$scopedSlots.renderResultStats||this.$props.renderResultStats;return t&&this.$data.total?t(this.stats):this.stats.numberOfResults?e("p",{class:ko+" "+Bo(this.$props.innerClass,"resultStats")},[this.stats.numberOfResults," results found in ",this.stats.time||0,"ms"]):null},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return this.$scopedSlots.renderNoResults?dr(t)?t():t:e("p",{class:Bo(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])},handleSortChange:function(e){var t=e.target.value;if(this.sortOptions&&this.sortOptions[t]){var n,r=zo(this.$props);r.from=0;var o=this.sortOptions[t].dataField,i=this.sortOptions[t].sortBy;r.sort=[(n={},n[o]={order:i},n)],this.sortOptionIndex=t,this.updateComponentProps(this.componentId,{dataField:o,sortBy:i},L.reactiveList),this.setQueryOptions(this.$props.componentId,r,!0),this.setPage(0),this.currentPageState=0,this.from=0;var s=this.$props.sortOptions[this.sortOptionIndex]?this.$props.sortOptions[this.sortOptionIndex].label:null;this.setPageURL(this.$props.componentId+"sortOption",s,this.$props.componentId+"sortOption",!1,this.$props.URLParams)}},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)},renderSortOptions:function(){var e=this.$createElement;return e("select",{class:Ao+" "+Bo(this.$props.innerClass,"sortOptions"),attrs:{name:"sort-options","aria-label":"Sort options"},on:{change:this.handleSortChange},domProps:{value:this.sortOptionIndex}},[this.sortOptions.map((function(t,n){return e("option",{key:t.label,domProps:{value:n}},[t.label])}))])},withClickIds:function(e){var t=this.getAllData().base;return e.map((function(e,n){return at({},e,{_click_id:t+n})}))},getAllData:function(){var e=this.size,t=this.promotedResults,n=this.aggregationData,r=this.customData,o=this.currentPage,i=this.hits,s=o*e;return{results:Ho(i)||[],customData:r||{},promotedResults:Ho(t)||[],aggregationData:n,loadMore:this.loadMore,base:s,triggerClickAnalytics:this.triggerClickAnalytics}},getData:function(){var e=this.getAllData(),t=e.promotedResults,n=e.aggregationData,r=e.customData;return{data:this.data,aggregationData:this.withClickIds(n||[]),promotedData:this.withClickIds(t||[]),rawData:this.rawData,resultStats:this.stats,customData:r}},getComponent:function(){var e=at({error:this.error,loading:this.isLoading||!1,loadMore:this.loadMore,triggerAnalytics:this.triggerClickAnalytics,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return hr(e,this)}}},Xo={loadMoreAction:Vo,setPageURL:Do,setQueryOptions:jo,updateQuery:Qo,updateComponentProps:Fo,setDefaultQuery:No,recordResultClick:Uo};Yo.generateQueryOptions=function(e){var t=zo(e),n=e.size,r=e.dataField,o=e.defaultSortOption,i=e.sortOptions,s=e.currentPage,a=e.sortBy;t.from=s?(s-1)*(n||10):0,t.size=n||10;if(i)t.sort=[function(){var e;if(o){var t,n=i.find((function(e){return e.label===o}));if(n)return(t={})[n.dataField]={order:n.sortBy},t}return(e={})[i[0].dataField]={order:i[0].sortBy},e}()];else if(a){var u;t.sort=[(u={},u[r]={order:a},u)]}return t},Yo.hasInternalComponent=function(){return!0};var Jo=Dr(cr((function(e,t){return{defaultPage:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value-1,urlSortOption:e.selectedValues[t.componentId+"sortOption"]&&e.selectedValues[t.componentId+"sortOption"].value,hits:e.hits[t.componentId]&&e.hits[t.componentId].hits,rawData:e.rawData[t.componentId],aggregationData:e.compositeAggregations[t.componentId],promotedResults:e.promotedResults[t.componentId],customData:e.customData[t.componentId],time:e.hits[t.componentId]&&e.hits[t.componentId].time,total:e.hits[t.componentId]&&e.hits[t.componentId].total,hidden:e.hits[t.componentId]&&e.hits[t.componentId].hidden,analytics:e.config&&e.config.analytics,enableAppbase:e.config.enableAppbase,url:e.config.url,error:e.error[t.componentId],afterKey:e.aggregations[t.componentId]&&e.aggregations[t.componentId][t.aggregationField]&&e.aggregations[t.componentId][t.aggregationField].after_key,componentProps:e.props[t.componentId],isLoading:e.isLoading[t.componentId]}}),Xo)(Yo),{componentType:L.reactiveList,internalComponent:Yo.hasInternalComponent()});Yo.install=function(e){e.component(Yo.name,Jo),e.component(io.name,io),e.component(Oo.name,Oo)},Yo.componentType=L.reactiveList;var ei=function(e){var t=RegExp("^(([^:/?#]*)?://)?(((.*)?@)?([^/?#]*)?)([^?#]*)(\\?([^#]*))?(#(.*))?"),n=e.match(t);return{protocol:n[2],auth:n[5],host:n[6],path:n[7],query:n[9],hash:n[11]}};function ti(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var ni=function(e,t,n,r){t=t||"&",n=n||"=";var o={};if("string"!=typeof e||0===e.length)return o;var i=/\+/g;e=e.split(t);var s=1e3;r&&"number"==typeof r.maxKeys&&(s=r.maxKeys);var a=e.length;s>0&&a>s&&(a=s);for(var u=0;u<a;++u){var l,c,d,p,h=e[u].replace(i,"%20"),f=h.indexOf(n);f>=0?(l=h.substr(0,f),c=h.substr(f+1)):(l=h,c=""),d=decodeURIComponent(l),p=decodeURIComponent(c),ti(o,d)?Array.isArray(o[d])?o[d].push(p):o[d]=[o[d],p]:o[d]=p}return o},ri=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}},oi=function(e,t,n,r){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map((function(r){var o=encodeURIComponent(ri(r))+n;return Array.isArray(e[r])?e[r].map((function(e){return o+encodeURIComponent(ri(e))})).join(t):o+encodeURIComponent(ri(e[r]))})).filter(Boolean).join(t):r?encodeURIComponent(ri(r))+n+encodeURIComponent(ri(e)):""},ii=o((function(e,t){t.decode=t.parse=ni,t.encode=t.stringify=oi})),si=(ii.decode,ii.parse,ii.encode,ii.stringify,"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});function ai(e){if(e&&"[object Array]"===Object.prototype.toString.call(e)){for(var t=0;t<e.length;t+=1){var n=e[t];if(!n)return new Error("query object can not have an empty value");if(!n.id)return new Error("'id' field must be present in query object")}return!0}return new Error("invalid query value, 'query' value must be an array")}function ui(e,t){var n=[],r={object:null,string:"",number:0};Object.keys(t).forEach((function(o){var i=t[o].split("|").find((function(t){return si(e[o])===t}));i&&e[o]!==r[i]||n.push(o)}));for(var o="",i=0;i<n.length;i+=1)o+=n[i]+", ";return!(n.length>0)||new Error("fields missing: "+o)}function li(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e||0!==Object.keys(e).length||e.constructor!==Object?JSON.parse(JSON.stringify(e)):null}function ci(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n={};return t?Object.keys(e).forEach((function(t){n[t]=encodeURI(e[t])})):n=e,n}function di(e,t){var n={};return e&&(n.index=e),t&&(t.db&&(n.db=t.db),t.collection&&(n.collection=t.collection)),n}function pi(e,t){var n={};return t?(Object.assign(n,{"X-Search-Client":"Appbase JS"}),!1===e&&Object.assign(n,{"X-Enable-Telemetry":e}),n):n}var hi={MONGODB:"mongodb",ELASTICSEARCH:"elasticsearch"},fi="array",gi="object",mi="boolean",yi="string",vi=function(e){return(void 0===e?"undefined":si(e))===gi?Array.isArray(e)?fi:gi:void 0===e?"undefined":si(e)};var bi={mongodb:{url:{type:yi,required:!0},app:{type:yi,required:!1},credentials:{type:yi,required:!1},enableTelemetry:{type:mi,required:!1},mongodb:{type:gi,required:!0},username:{type:yi,required:!1},password:{type:yi,required:!1}},elasticsearch:{url:{type:yi,required:!0},app:{type:yi,required:!0},credentials:{type:yi,required:!1},enableTelemetry:{type:mi,required:!1},username:{type:yi,required:!1},password:{type:yi,required:!1}}};function Ci(e){var t=ei(e.url||""),n=t.auth,r=void 0===n?null:n,o=t.host,i=void 0===o?"":o,s=t.path,a=void 0===s?"":s,u=t.protocol,l=void 0===u?"":u,c=e.url;"/"===(c=i+a).slice(-1)&&(c=c.slice(0,-1));var d=hi[e.mongodb?"MONGODB":"ELASTICSEARCH"],p=bi[d];if(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=Object.keys(e).filter((function(t){return!!e[t]})),o=Object.keys(t),i=[];o.forEach((function(e){t[e].required&&i.push(e)})),i.forEach((function(e){if(!r.includes(e))throw new Error(e+" is required when using the "+n+" Search backend.")})),r.forEach((function(r){if(!o.includes(r))throw new Error(r+" property isn't accepted property by "+n+" backend.");var i=Array.isArray(t[r].type)?t[r].type:[].concat(t[r].type),s=vi(e[r]);if(!i.includes(s))throw new Error("The property "+r+" is expected with type(s) ["+i.join(", ")+"], but type was set as "+s+".")}))}({url:e.url,app:e.app,credentials:e.credentials,username:e.username,password:e.password,enableTelemetry:e.enableTelemetry,mongodb:e.mongodb},p,d),"string"!=typeof l||""===l)throw new Error("Protocol is not present in url. URL should be of the form https://appbase-demo-ansible-abxiydt-arc.searchbase.io");var h=r||null;if("string"==typeof e.credentials&&""!==e.credentials?h=e.credentials:"string"==typeof e.username&&""!==e.username&&"string"==typeof e.password&&""!==e.password&&(h=e.username+":"+e.password),!e.mongodb&&function(e){return t="scalr.api.appbase.io",-1!==e.indexOf(t);var t}(c)&&null===h)throw new Error("Authentication information is not present. Did you add credentials?");this.url=c,this.protocol=l,this.app=e.app,this.credentials=h,e.mongodb&&(this.mongodb=e.mongodb),"boolean"==typeof e.enableTelemetry&&(this.enableTelemetry=e.enableTelemetry)}function Oi(e){var t=this;return new Promise((function(n,r){var o=li(e);try{var i=o.method,s=o.path,a=o.params,u=o.body,l=o.isRSAPI,c=o.isSuggestionsAPI,d=o.isMongoRequest,p=void 0!==d&&d,h=c?".suggestions":t.app,f=u,g=s.endsWith("msearch")||s.endsWith("bulk")?"application/x-ndjson":"application/json",m=Object.assign({},{Accept:"application/json","Content-Type":g},e.headers,t.headers),y=Date.now();t.credentials&&(m.Authorization="Basic "+function(){for(var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r=t,o="",i=0,s=0,a=n;r.charAt(0|s)||(a="=",s%1);o+=a.charAt(63&i>>8-s%1*8)){if((e=r.charCodeAt(s+=3/4))>255)throw new Error('"btoa" failed: The string to be encoded contains characters outside of the Latin1 range.');i=i<<8|e}return o}(t.credentials));var v={method:i,headers:m};if(Array.isArray(f)){var b="";f.forEach((function(e){b+=JSON.stringify(e),b+="\n"})),f=b}else f=JSON.stringify(f)||{};0!==Object.keys(f).length&&(v.body=f);var C={},O="";a&&(O="?"+ii.stringify(a));var _=p?t.protocol+"://"+t.url:t.protocol+"://"+t.url+"/"+h+"/"+s+O;return function(e){if(t.transformRequest&&"function"==typeof t.transformRequest){var n=t.transformRequest(e);return n instanceof Promise?n:Promise.resolve(n)}return Promise.resolve(e)}(Object.assign({},{url:_},v)).then((function(e){var t=Object.assign({},e),o=t.url;return delete t.url,Be(o||_,Object.assign({},t,{headers:l&&!p?Object.assign({},t.headers,{"x-timestamp":(new Date).getTime()}):t.headers})).then((function(e){return e.status>=500?r(e):(C=e.headers,e.json().then((function(t){if(e.status>=400)return r(e);if(t&&t.error)return r(t);if(l&&t&&"[object Object]"===Object.prototype.toString.call(t)&&u&&u.query&&u.query instanceof Array){var o=0,i=u.query.filter((function(e){return e.execute||void 0===e.execute})).length;if(t&&Object.keys(t).forEach((function(e){t[e]&&Object.prototype.hasOwnProperty.call(t[e],"error")&&t[e].error&&(o+=1)})),o>0&&i===o)return r(t)}if(t&&t.responses instanceof Array&&t.responses.length===t.responses.filter((function(e){return Object.prototype.hasOwnProperty.call(e,"error")})).length)return r(t);var s=Object.assign({},t,{_timestamp:y,_headers:C});return n(s)})).catch((function(e){return r(e)})))})).catch((function(e){return r(e)}))})).catch((function(e){return r(e)}))}catch(e){return r(e)}}))}function _i(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,s=t.body;delete t.type,delete t.body,delete t.id;var a=void 0;return a=i?o?o+"/"+encodeURIComponent(i):encodeURIComponent(i):o,this.performFetchRequest({method:"POST",path:a,params:t,body:s})}function Si(e){var t=li(e),n=ui(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var s=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"GET",path:s,params:t})}function wi(e){var t=li(e),n=ui(t,{id:"string|number",body:"object"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id,s=t.body;delete t.type,delete t.id,delete t.body;var a=o+"/"+encodeURIComponent(i)+"/_update";return this.performFetchRequest({method:"POST",path:a,params:t,body:s})}function $i(e){var t=li(e),n=ui(t,{id:"string|number"});if(!0!==n)throw n;var r=t.type,o=void 0===r?"_doc":r,i=t.id;delete t.type,delete t.id;var s=o+"/"+encodeURIComponent(i);return this.performFetchRequest({method:"DELETE",path:s,params:t})}function Ei(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=t.type,o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_bulk":"_bulk",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function Ti(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_search":"_search",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function Pi(e){var t=li(e),n=ui(t,{body:"object"});if(!0!==n)throw n;var r=void 0;r=Array.isArray(t.type)?t.type.join():t.type;var o=t.body;delete t.type,delete t.body;var i=void 0;return i=r?r+"/_msearch":"_msearch",this.performFetchRequest({method:"POST",path:i,params:t,body:o})}function Ii(e,t){var n=li(t),r=ai(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:di(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch",body:o,headers:pi(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function ki(e,t){var n=li(t),r=ai(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:di(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:pi(this.enableTelemetry,!this.mongodb),isRSAPI:!0,isMongoRequest:!!this.mongodb})}function Ai(){return this.performFetchRequest({method:"GET",path:"_mapping"})}function Ri(e,t){var n=li(t),r=ai(e);if(!0!==r)throw r;var o={settings:n,query:e};return this.mongodb&&Object.assign(o,{mongodb:di(this.app,this.mongodb)}),this.performFetchRequest({method:"POST",path:"_reactivesearch.v3",body:o,headers:pi(this.enableTelemetry),isRSAPI:!0,isSuggestionsAPI:!0,isMongoRequest:!!this.mongodb})}function xi(e){var t=new Ci(e);return Ci.prototype.performFetchRequest=Oi,Ci.prototype.index=_i,Ci.prototype.get=Si,Ci.prototype.update=wi,Ci.prototype.delete=$i,Ci.prototype.bulk=Ei,Ci.prototype.search=Ti,Ci.prototype.msearch=Pi,Ci.prototype.reactiveSearch=Ii,Ci.prototype.reactiveSearchv3=ki,Ci.prototype.getQuerySuggestions=Ri,Ci.prototype.getMappings=Ai,Ci.prototype.setHeaders=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.headers=t?ci(e):e},"undefined"!=typeof window&&(window.Appbase=t),t}
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
22
22
|
*
|
|
23
23
|
* @author Jerry Bendy <jerry@icewingcc.com>
|
|
24
24
|
* @licence MIT
|
|
25
25
|
*
|
|
26
|
-
*/!function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),a=c.prototype,s=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){a.append=function(e,t){g(this.__URLSearchParams__,e,t)},a.delete=function(e){delete this.__URLSearchParams__[e]},a.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},a.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},a.has=function(e){return e in this.__URLSearchParams__},a.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},a.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=d(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+d(r[e]));return i.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new c(t[0]).toString())}}):c});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=f(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],a=r[i];for(n=0;n<a.length;n++)this.append(i,a[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},s&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function p(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return s&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"==typeof e)if(m(e))for(var n=0;n<e.length;n++){var r=e[n];if(!m(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),a=0;a<i.length;a++){var s=i[a],u=s.indexOf("=");-1<u?g(t,p(s.slice(0,u)),p(s.slice(u+1))):s&&g(t,p(s),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function m(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}(void 0!==n?n:"undefined"!=typeof window?window:n);var Ti={name:"Provider",props:{store:{type:Object,required:!0,validator:function(e){if(!e.dispatch&&!e.subscribe&&!e.getState)throw new Error("[reactivesearch-vue] - store provided is not a valid redux store");return!0}}},provide:function(){return{$$store:this.store}},render:function(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}};function Ai(){var e=Ke(["\n\tfont-family: ",";\n\tfont-size: ",";\n\tcolor: ",";\n\twidth: 100%;\n\n\tinput,\n\tbutton,\n\ttextarea,\n\tselect {\n\t\tfont-family: ",";\n\t}\n\n\t*,\n\t*:before,\n\t*:after {\n\t\tbox-sizing: border-box;\n\t}\n"]);return Ai=function(){return e},e}var xi=Lt({name:"Base",functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,i=t.children;return delete o.attrs.as,e(r,Cr([{},o]),[i])}})(Ai(),(function(e){return e.theme.typography.fontFamily}),(function(e){return e.theme.typography.fontSize}),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.typography.fontFamily})),Ri=He.setHeaders,ji=He.setValue,Mi=Be.isEqual,Li={name:"URLParamsProvider",props:{className:An.string,headers:An.headers,getSearchParams:An.func,setSearchParams:An.func,as:An.string.def("div")},mounted:function(){var e=this;this.init(),window.onpopstate=function(){e.init();var t=Array.from(e.params.keys());Object.keys(e.currentSelectedState).filter((function(e){return!t.includes(e)})).forEach((function(t){e.setValue(t,null)})),Array.from(e.params.entries()).forEach((function(t){try{var n=t[0],r=t[1],o=e.selectedValues[n]||{label:n},i=o.label,a=o.showFilter,s=o.URLParams;e.setValue(n,JSON.parse(r),i,a,s)}catch(e){console.error(e)}}))}},watch:{$route:function(){this.checkForURLParamsChange()},selectedValues:function(e,t){var n=this;if(this.currentSelectedState=e,!Mi(e,t)){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString);var r=Object.keys(e),o=Array.from(this.params.keys());r.filter((function(t){return e[t].URLParams})).forEach((function(r){if(n.hasValidValue(e[r])||n.hasValidValue(t[r])){var i=e[r];i.URLParams?i.category?n.setURL(r,n.getValue({category:i.category,value:i.value})):n.setURL(r,n.getValue(i.value)):(n.params.delete(r),n.pushToHistory())}else!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),n.pushToHistory())})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),n.pushToHistory()})),r.length||(Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&n.params.delete(e)})),this.pushToHistory())}},headers:function(e,t){Mi(t,e)||this.setHeaders(e)}},methods:{init:function(){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),this.currentSelectedState=this.selectedValues||{}},checkForURLParamsChange:function(){var e;window&&((this.$props.getSearchParams?this.$props.getSearchParams():window.location.search)!==this.searchString&&("function"==typeof Event?e=new Event("popstate"):(e=document.createEvent("Event")).initEvent("popstate",!0,!0),window.dispatchEvent(e)))},hasValidValue:function(e){return!!e&&(Array.isArray(e.value)?!!e.value.length:!!e.value)},getValue:function(e){var t=this;return Array.isArray(e)&&e.length?e.map((function(e){return t.getValue(e)})):e&&"object"==typeof e?e.location||e.category?e:e.label||e.key||null:e},setURL:function(e,t){if(this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),!t||"string"==typeof t&&""===t.trim()||Array.isArray(t)&&0===t.length)this.params.delete(e),this.pushToHistory();else{var n=JSON.stringify(this.getValue(t));n!==this.params.get(e)&&(this.params.set(e,n),this.pushToHistory())}},pushToHistory:function(){var e=this.params.toString()?"?"+this.params.toString():"",t=""+window.location.href.split("?")[0]+e;this.$props.setSearchParams?this.$props.setSearchParams(t):window.history.pushState&&window.history.pushState({path:t},"",t),this.init()}},render:function(){var e=arguments[0],t=this.$slots.default;return e(xi,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},Qi={setHeaders:Ri,setValue:ji};Li.install=function(e){e.component(Li.name,Li)};var Vi=Zn((function(e){return{selectedValues:e.selectedValues,searchComponents:e.components}}),Qi)(Li),Di={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',fontSize:"16px"},Fi={typography:Di,colors:{textColor:"#424242",primaryTextColor:"#fff",primaryColor:"#0B6AFF",titleColor:"#424242",alertColor:"#d9534f",borderColor:"#595959"}},Ni={typography:Di,colors:{textColor:"#fff",backgroundColor:"#212121",primaryTextColor:"#fff",primaryColor:"#2196F3",titleColor:"#fff",alertColor:"#d9534f",borderColor:"#666"}};var qi={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){void 0!==this.analyticsConfig&&console.warn("Warning(ReactiveSearch): The `analyticsConfig` prop has been marked as deprecated, please use the `appbaseConfig` prop instead.")},props:{app:An.stringRequired,analytics:ft.bool,analyticsConfig:An.analyticsConfig,appbaseConfig:An.appbaseConfig,enableAppbase:An.bool.def(!1),credentials:An.string,headers:An.headers,queryParams:An.string,theme:ft.object.def({}),themePreset:ft.string.def("light"),type:An.string,url:An.string,mapKey:An.string,className:An.string,initialState:ft.object.def({}),transformRequest:An.func,transformResponse:An.func,as:ft.string.def("div"),getSearchParams:An.func,setSearchParams:An.func},provide:function(){return{theme_reactivesearch:(n=this.$props.themePreset,e="light"===n?Fi:Ni,t=this.$props.theme,void 0===e&&(e={}),void 0===t&&(t={}),{typography:Ge(Ge({},e.typography),t.typography),colors:Ge(Ge({},e.colors),t.colors),component:Ge(Ge({},e.component),t.component)}),store:this.store};var e,t,n},watch:{app:function(){this.updateState(this.$props)},url:function(){this.updateState(this.$props)},type:function(){this.updateState(this.$props)},credentials:function(){this.updateState(this.$props)},mapKey:function(){this.updateState(this.$props)},headers:function(){this.updateState(this.$props)},analyticsConfig:function(e,t){be(e,t)||this.store&&this.store.dispatch(Ve(e))},appbaseConfig:function(e,t){be(e,t)||this.store&&this.store.dispatch(Ve(e))}},methods:{updateState:function(e){this.setStore(e),this.key=this.state.key+"-0"},setStore:function(e){var t=e.url&&""!==e.url.trim()&&!e.credentials?null:e.credentials,n=Ge(Ge({},e.analyticsConfig),e.appbaseConfig),r={url:e.url&&""!==e.url.trim()?e.url:"https://scalr.api.appbase.io",app:e.app,credentials:t,type:e.type?e.type:"*",transformRequest:e.transformRequest,transformResponse:e.transformResponse,enableAppbase:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:n},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var i=new URLSearchParams(o),a={};Array.from(i.keys()).forEach((function(e){try{var t,n=JSON.parse(i.get(e)),r={};n.value?r.value=n.value:r.value=n,n.category&&(r.category=n.category),a=Ge(Ge({},a),{},((t={})[e]=r,t))}catch(e){}}));var s=e.headers,u=void 0===s?{}:s,l=e.themePreset,c=Ei(r);this.$props.transformRequest&&(c.transformRequest=this.$props.transformRequest),this.$props.transformResponse&&(c.transformResponse=this.$props.transformResponse);var d=Ge({config:Ge(Ge({},r),{},{mapKey:e.mapKey,themePreset:l}),appbaseRef:c,selectedValues:a,headers:u},this.$props.initialState);this.store=Ue(d)}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.headers,o=n.style,i=n.className;return e(Ti,{attrs:{store:this.store}},[e(Vi,{attrs:{as:this.$props.as,headers:r,className:i,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:o},[t])])}};function Ui(){var e=Ke(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\ttop: 41px;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t","\n"]);return Ui=function(){return e},e}function Hi(){var e=Ke(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]);return Hi=function(){return e},e}function zi(){var e=Ke(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\ttop: 41px;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 395px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t",";\n"]);return zi=function(){return e},e}function Bi(){var e=Ke(["\n\t\t\tpadding-right: 48px;\n\t\t"]);return Bi=function(){return e},e}function Gi(){var e=Ke(["\n\t\t\tpadding-right: 32px;\n\t\t"]);return Gi=function(){return e},e}function Wi(){var e=Ke(["\n\t\t\tpadding-right: 32px;\n\t\t"]);return Wi=function(){return e},e}function Zi(){var e=Ke(["\n\t\t\tpadding-left: 32px;\n\t\t"]);return Zi=function(){return e},e}function Yi(){var e=Ke(["\n\t",";\n\t",";\n\n\t",";\n\n\t",";\n\n\t",";\n\n\t",";\n\n\t",";\n"]);return Yi=function(){return e},e}function Ki(){var e=Ke(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"]);return Ki=function(){return e},e}function Xi(){var e=Ke(["\n\tborder-color: ",";\n"]);return Xi=function(){return e},e}function Ji(){var e=Ke(["\n\twidth: 100%;\n\theight: 42px;\n\tpadding: 8px 12px;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fafafa;\n\tfont-size: 0.9rem;\n\toutline: none;\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n"]);return Ji=function(){return e},e}function ea(){var e=Ke(["\n\tborder: 1px solid ",";\n"]);return ea=function(){return e},e}qi.install=function(e){e.component(qi.name,qi)};var ta=function(e){var t=e.theme;return At(ea(),t.colors.alertColor)},na=At(Ji()),ra=function(e){return At(Xi(),e.colors.borderColor)},oa=function(e){var t=e.theme;return At(Ki(),t.colors.backgroundColor,t.colors.textColor,ra(t),t.colors.backgroundColor)},ia=Lt("input")(Yi(),na,(function(e){return"dark"===e.themePreset&&oa}),(function(e){return e.showIcon&&"left"===e.iconPosition&&At(Zi())}),(function(e){return e.showIcon&&"right"===e.iconPosition&&At(Wi())}),(function(e){return e.showClear&&At(Gi())}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&At(Bi())}),(function(e){return e.alert&&ta})),aa=function(e,t){return At(zi(),"dark"===e&&ra(t))},sa=At(Hi()),ua=function(e,t){return At(Ui(),"dark"===e&&ra(t))};function la(){var e=Ke(["\n\tposition: absolute;\n\ttop: ",";\n\tcursor: pointer;\n\t",";\n\t",";\n\t",";\n\tsvg.search-icon {\n\t\tfill: ",";\n\t}\n\tsvg.cancel-icon {\n\t\tfill: ",";\n\t}\n"]);return la=function(){return e},e}function ca(){var e=Ke(["\n\tpadding-right: 29px;\n\tright: 0;\n"]);return ca=function(){return e},e}function da(){var e=Ke(["\n\tpadding-right: 12px;\n\tright: 0;\n"]);return da=function(){return e},e}function pa(){var e=Ke(["\n\tpadding-left: 12px;\n\tleft: 0;\n"]);return pa=function(){return e},e}var ha=At(pa()),fa=At(da()),ga=At(ca()),ma=Lt("div")(la(),(function(e){return e.isClearIcon?"12px":"13px"}),(function(e){var t=e.iconPosition;return"left"===t?ha:"right"===t?fa:null}),(function(e){return e.clearIcon&&ga}),(function(e){return!e.showIcon&&"padding-right:10px"}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.borderColor}));function ya(e){return null!=e&&"object"==typeof e&&1===e.nodeType}function va(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function ba(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return va(n.overflowY,t)||va(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function _a(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var wa=function(e,t){null!==e&&function(e,t){var n=t.scrollMode,r=t.block,o=t.inline,i=t.boundary,a=t.skipOverflowHiddenElements,s="function"==typeof i?i:function(e){return e!==i};if(!ya(e))throw new TypeError("Invalid target");for(var u=document.scrollingElement||document.documentElement,l=[],c=e;ya(c)&&s(c);){if((c=c.parentNode)===u){l.push(c);break}c===document.body&&ba(c)&&!ba(document.documentElement)||ba(c,a)&&l.push(c)}for(var d=window.visualViewport?visualViewport.width:innerWidth,p=window.visualViewport?visualViewport.height:innerHeight,h=window.scrollX||pageXOffset,f=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),m=g.height,y=g.width,v=g.top,b=g.right,_=g.bottom,w=g.left,O="start"===r||"nearest"===r?v:"end"===r?_:v+m/2,C="center"===o?w+y/2:"end"===o?b:w,S=[],P=0;P<l.length;P++){var k=l[P],$=k.getBoundingClientRect(),I=$.height,E=$.width,T=$.top,A=$.right,x=$.bottom,R=$.left;if("if-needed"===n&&v>=0&&w>=0&&_<=p&&b<=d&&v>=T&&_<=x&&w>=R&&b<=A)return S;var j=getComputedStyle(k),M=parseInt(j.borderLeftWidth,10),L=parseInt(j.borderTopWidth,10),Q=parseInt(j.borderRightWidth,10),V=parseInt(j.borderBottomWidth,10),D=0,F=0,N="offsetWidth"in k?k.offsetWidth-k.clientWidth-M-Q:0,q="offsetHeight"in k?k.offsetHeight-k.clientHeight-L-V:0;if(u===k)D="start"===r?O:"end"===r?O-p:"nearest"===r?_a(f,f+p,p,L,V,f+O,f+O+m,m):O-p/2,F="start"===o?C:"center"===o?C-d/2:"end"===o?C-d:_a(h,h+d,d,M,Q,h+C,h+C+y,y),D=Math.max(0,D+f),F=Math.max(0,F+h);else{D="start"===r?O-T-L:"end"===r?O-x+V+q:"nearest"===r?_a(T,x,I,L,V+q,O,O+m,m):O-(T+I/2)+q/2,F="start"===o?C-R-M:"center"===o?C-(R+E/2)+N/2:"end"===o?C-A+Q+N:_a(R,A,E,M,Q+N,C,C+y,y);var U=k.scrollLeft,H=k.scrollTop;O+=H-(D=Math.max(0,Math.min(H+D,k.scrollHeight-I+q))),C+=U-(F=Math.max(0,Math.min(U+F,k.scrollWidth-E+N)))}S.push({el:k,top:D,left:F})}return S}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},Oa={props:["isOpen","inputValue","selectedItem","highlightedIndex","handleChange","itemToString","handleMouseup"],data:function(){return{isMouseDown:!1,internal_isOpen:!1,internal_inputValue:"",internal_selectedItem:null,internal_highlightedIndex:null,internal_eventsCalled:{}}},computed:{mergedState:function(){var e=this;return Object.keys(this.$props).reduce((function(t,n){var r;return Ge(Ge({},t),{},((r={})[n]=e.isControlledProp(n)?e.$props[n]:e["internal_"+n],r))}),{})},internalItemCount:function(){return this.items.length}},mounted:function(){window.addEventListener("mousedown",this.handleWindowMousedown),window.addEventListener("mouseup",this.handleWindowMouseup)},beforeDestroy:function(){window.removeEventListener("mousedown",this.handleWindowMousedown),window.removeEventListener("mouseup",this.handleWindowMouseup)},methods:{handleWindowMousedown:function(){this.isMouseDown=!0},handleWindowMouseup:function(e){this.isMouseDown=!1,e.target!==this.$refs.rootNode&&this.$refs.rootNode.contains(e.target)||!this.mergedState.isOpen||this.isMouseDown||(this.reset(),this.$props.handleMouseup&&this.$props.handleMouseup({isOpen:!1}))},keyDownArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownEnter:function(e){this.mergedState.isOpen&&(e.preventDefault(),this.selectHighlightedItem())},keyDownEscape:function(e){e.preventDefault(),this.reset()},selectHighlightedItem:function(){return this.selectItemAtIndex(this.mergedState.highlightedIndex)},selectItemAtIndex:function(e){var t=this.items[e];null!=t&&this.selectItem(t)},selectItem:function(e){this.$props.handleChange&&this.$props.handleChange(e),this.setState({isOpen:!1,highlightedIndex:null,selectedItem:e,inputValue:function(){return this.isControlledProp("selectedItem")?"":"object"==typeof e?e.label||"":e}.call(this)})},changeHighlightedIndex:function(e){if(!(this.internalItemCount<0)){var t=this.mergedState.highlightedIndex;null===t&&(t=e>0?-1:this.internalItemCount+1);var n=t+e;n<0?n=this.internalItemCount:n>this.internalItemCount&&(n=0),this.setHighlightedIndex(n)}},setHighlightedIndex:function(e){void 0===e&&(e=null),this.setState({highlightedIndex:e});var t=document.getElementById("Downshift"+e);wa(t,this.rootNode)},reset:function(){var e=this.mergedState.selectedItem;this.setState({isOpen:!1,highlightedIndex:null,inputValue:e})},getItemProps:function(e){var t=e.index,n=e.item,r=t;return void 0===t?(this.$props.itemToString?this.items.push(this.$props.itemToString(n)):this.items.push(n),r=this.items.indexOf(n)):this.items[r]=n,{id:"Downshift"+r}},getItemEvents:function(e){var t=e.index,n=e.item,r=t;void 0===t&&(r=this.items.indexOf(n));var o=this;return setTimeout((function(){o.internal_eventsCalled[t]=!1}),0),{mouseenter:function(){o.setHighlightedIndex(r)},mousedown:function(e){o.internal_eventsCalled[t]||(o.internal_eventsCalled[t]=!0,e.stopPropagation(),o.selectItemAtIndex(r))},click:function(e){o.internal_eventsCalled[t]||(o.internal_eventsCalled[t]=!0,e.stopPropagation(),o.selectItemAtIndex(r))}}},getInputProps:function(e){var t=e.value,n=this.mergedState.inputValue;return t!==n&&this.setState({inputValue:t}),{value:n}},getButtonProps:function(e){var t=this,n=e.onClick,r=e.onKeyDown,o=e.onKeyUp,i=e.onBlur;return{click:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),r&&r(e)},keyup:function(e){o&&o(e)},blur:function(e){i&&i(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,i=e.onKeyPress,a=e.onKeyDown,s=e.onKeyUp;return{input:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},focus:function(e){o&&o(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),a&&a(e)},keypress:function(e){i&&i(e)},keyup:function(e){s&&s(e)},blur:function(e){r&&r(e)},click:e.onClick}},getHelpersAndState:function(){return Ge({getItemProps:this.getItemProps,getItemEvents:this.getItemEvents,getInputProps:this.getInputProps,getInputEvents:this.getInputEvents,getButtonProps:this.getButtonProps,setHighlightedIndex:this.setHighlightedIndex},this.mergedState)},isControlledProp:function(e){return void 0!==this.$props[e]},setState:function(e){var t=this;Object.keys(e).forEach((function(n){t.isControlledProp(n)?(t.$emit(n+"Change",e[n]),t.$emit(n+"-change",e[n])):t["internal_"+n]=e[n]})),this.$emit("stateChange",this.mergedState),this.$emit("state-change",this.mergedState)}},render:function(){var e=arguments[0];return this.items=[],e("div",{ref:"rootNode"},[this.$scopedSlots.default&&this.$scopedSlots.default(Ge({},this.getHelpersAndState()))])}};function Ca(){var e=Ke(["\n\t",";\n"]);return Ca=function(){return e},e}var Sa=Lt("div")(Ca(),(function(e){return e.theme.component})),Pa=Be.getClassName,ka={name:"SuggestionWrapper",props:{innerClassName:An.string,themePreset:An.themePreset,innerClass:An.style},render:function(){var e=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:ua(n)+" "+Pa(r,o||"")},[e("li",[this.$scopedSlots.default()])])}},$a=o((function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,a=void 0!==i&&i,s=e.findChunks,u=void 0===s?r:s,l=e.sanitize,c=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:a,sanitize:l,searchWords:c,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,a=e.searchWords,s=e.textToHighlight;return s=o(s),a.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}(r));for(var i=new RegExp(r,n?"g":"gi"),a=void 0;a=i.exec(s);){var u=a.index,l=i.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),a.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])}));r($a);var Ia=$a.findAll;
|
|
26
|
+
*/!function(e){var t,n=e.URLSearchParams&&e.URLSearchParams.prototype.get?e.URLSearchParams:null,r=n&&"a=1"===new n({a:1}).toString(),o=n&&"+"===new n("s=%2B").get("s"),i=!n||((t=new n).append("s"," &"),"s=+%26"===t.toString()),s=c.prototype,a=!(!e.Symbol||!e.Symbol.iterator);if(!(n&&r&&o&&i)){s.append=function(e,t){g(this.__URLSearchParams__,e,t)},s.delete=function(e){delete this.__URLSearchParams__[e]},s.get=function(e){var t=this.__URLSearchParams__;return e in t?t[e][0]:null},s.getAll=function(e){var t=this.__URLSearchParams__;return e in t?t[e].slice(0):[]},s.has=function(e){return e in this.__URLSearchParams__},s.set=function(e,t){this.__URLSearchParams__[e]=[""+t]},s.toString=function(){var e,t,n,r,o=this.__URLSearchParams__,i=[];for(t in o)for(n=d(t),e=0,r=o[t];e<r.length;e++)i.push(n+"="+d(r[e]));return i.join("&")};var u=!!o&&n&&!r&&e.Proxy;Object.defineProperty(e,"URLSearchParams",{value:u?new Proxy(n,{construct:function(e,t){return new e(new c(t[0]).toString())}}):c});var l=e.URLSearchParams.prototype;l.polyfill=!0,l.forEach=l.forEach||function(e,t){var n=f(this.toString());Object.getOwnPropertyNames(n).forEach((function(r){n[r].forEach((function(n){e.call(t,n,r,this)}),this)}),this)},l.sort=l.sort||function(){var e,t,n,r=f(this.toString()),o=[];for(e in r)o.push(e);for(o.sort(),t=0;t<o.length;t++)this.delete(o[t]);for(t=0;t<o.length;t++){var i=o[t],s=r[i];for(n=0;n<s.length;n++)this.append(i,s[n])}},l.keys=l.keys||function(){var e=[];return this.forEach((function(t,n){e.push(n)})),h(e)},l.values=l.values||function(){var e=[];return this.forEach((function(t){e.push(t)})),h(e)},l.entries=l.entries||function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),h(e)},a&&(l[e.Symbol.iterator]=l[e.Symbol.iterator]||l.entries)}function c(e){((e=e||"")instanceof URLSearchParams||e instanceof c)&&(e=e.toString()),this.__URLSearchParams__=f(e)}function d(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'\(\)~]|%20|%00/g,(function(e){return t[e]}))}function p(e){return e.replace(/[ +]/g,"%20").replace(/(%[a-f0-9]{2})+/gi,(function(e){return decodeURIComponent(e)}))}function h(t){var n={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return a&&(n[e.Symbol.iterator]=function(){return n}),n}function f(e){var t={};if("object"==typeof e)if(m(e))for(var n=0;n<e.length;n++){var r=e[n];if(!m(r)||2!==r.length)throw new TypeError("Failed to construct 'URLSearchParams': Sequence initializer must only contain pair elements");g(t,r[0],r[1])}else for(var o in e)e.hasOwnProperty(o)&&g(t,o,e[o]);else{0===e.indexOf("?")&&(e=e.slice(1));for(var i=e.split("&"),s=0;s<i.length;s++){var a=i[s],u=a.indexOf("=");-1<u?g(t,p(a.slice(0,u)),p(a.slice(u+1))):a&&g(t,p(a),"")}}return t}function g(e,t,n){var r="string"==typeof n?n:null!=n&&"function"==typeof n.toString?n.toString():JSON.stringify(n);t in e?e[t].push(r):e[t]=[r]}function m(e){return!!e&&"[object Array]"===Object.prototype.toString.call(e)}}(void 0!==n?n:"undefined"!=typeof window?window:n);var Li,Mi={name:"Provider",props:{store:{type:Object,required:!0,validator:function(e){if(!e.dispatch&&!e.subscribe&&!e.getState)throw new Error("[reactivesearch-vue] - store provided is not a valid redux store");return!0}}},provide:function(){return{$$store:this.store}},render:function(e){return this.$slots.default.length>1?e("div",this.$slots.default):this.$slots.default[0]}},ji=Jt({name:"Base",functional:!0,render:function(e,t){var n=t.data.attrs.as,r=void 0===n?"div":n,o=t.data,i=t.children;return delete o.attrs.as,e(r,Jr([{},o]),[i])}})(Li||(Li=dt(["\n\tfont-family: ",";\n\tfont-size: ",";\n\tcolor: ",";\n\twidth: 100%;\n\n\tinput,\n\tbutton,\n\ttextarea,\n\tselect {\n\t\tfont-family: ",";\n\t}\n\n\t*,\n\t*:before,\n\t*:after {\n\t\tbox-sizing: border-box;\n\t}\n"])),(function(e){return e.theme.typography.fontFamily}),(function(e){return e.theme.typography.fontSize}),(function(e){return e.theme.colors.textColor}),(function(e){return e.theme.typography.fontFamily})),Qi=ot.setHeaders,Vi=ot.setValue,Di=st.isEqual,Fi={name:"URLParamsProvider",props:{className:Wn.string,headers:Wn.headers,getSearchParams:Wn.func,setSearchParams:Wn.func,as:kt.string.def("div")},mounted:function(){var e=this;this.init(),window.onpopstate=function(){e.init();var t=Array.from(e.params.keys());Object.keys(e.currentSelectedState).filter((function(e){return!t.includes(e)})).forEach((function(t){e.setValue(t,null,void 0,void 0,void 0,void 0,void 0,void 0,"URL")})),Array.from(e.params.entries()).forEach((function(t){try{var n=t[0],r=t[1],o=e.selectedValues[n]||{label:n},i=o.label,s=o.showFilter,a=o.URLParams;e.setValue(n,JSON.parse(r),i,s,a,void 0,void 0,void 0,"URL")}catch(e){console.error(e)}}))}},watch:{$route:function(){this.checkForURLParamsChange()},selectedValues:function(e,t){var n=this;if(!Di(e,t)){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString);var r=Object.keys(e),o=Array.from(this.params.keys()),i=!1;r.filter((function(t){return e[t].URLParams})).forEach((function(r){var s=e[r];n.hasValidValue(e[r])||n.hasValidValue(t[r])?s.URLParams?s.category?n.setURL(r,n.getValue({category:s.category,value:s.value}))&&(i=!0):n.setURL(r,n.getValue(s.value))&&(i=!0):(n.params.delete(r),i=!0):!n.hasValidValue(e[r])&&o.includes(r)&&(n.params.delete(r),i=!0)})),Object.keys(e).filter((function(e){return!r.includes(e)})).forEach((function(e){n.params.delete(e),i=!0})),r.length||Array.from(this.params.keys()).forEach((function(e){n.searchComponents&&n.searchComponents.includes(e)&&(n.params.delete(e),i=!0)})),i&&this.pushToHistory()}},headers:function(e,t){Di(t,e)||this.setHeaders(e)}},methods:{init:function(){this.searchString=this.$props.getSearchParams?this.$props.getSearchParams():window.location.search,this.params=new URLSearchParams(this.searchString),this.currentSelectedState=this.selectedValues||{}},checkForURLParamsChange:function(){var e;window&&((this.$props.getSearchParams?this.$props.getSearchParams():window.location.search)!==this.searchString&&("function"==typeof Event?e=new Event("popstate"):(e=document.createEvent("Event")).initEvent("popstate",!0,!0),window.dispatchEvent(e)))},hasValidValue:function(e){return!!e&&(Array.isArray(e.value)?!!e.value.length:!!e.value)},getValue:function(e){var t=this;return Array.isArray(e)&&e.length?e.map((function(e){return t.getValue(e)})):e&&"object"==typeof e?e.location||e.category?e:e.label||e.key||null:e},setURL:function(e,t){if(!t||"string"==typeof t&&""===t.trim()||Array.isArray(t)&&0===t.length)return this.params.delete(e),!0;var n=JSON.stringify(t);return n!==this.params.get(e)&&(this.params.set(e,n),!0)},pushToHistory:function(){var e=this.params.toString()?"?"+this.params.toString():"",t=""+window.location.href.split("?")[0]+e;this.$props.setSearchParams?this.$props.setSearchParams(t):window.history.pushState&&window.history.pushState({path:t},"",t),this.init()}},render:function(){var e=arguments[0],t=this.$slots.default;return e(ji,{attrs:{as:this.$props.as},class:this.$props.className},[t])}},Ni={setHeaders:Qi,setValue:Vi};Fi.install=function(e){e.component(Fi.name,Fi)};var Ui=cr((function(e){return{selectedValues:e.selectedValues,searchComponents:e.components}}),Ni)(Fi),qi={fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Noto Sans", "Ubuntu", "Droid Sans", "Helvetica Neue", sans-serif',fontSize:"16px"},zi={typography:qi,colors:{textColor:"#424242",primaryTextColor:"#fff",primaryColor:"#0B6AFF",titleColor:"#424242",alertColor:"#d9534f",borderColor:"#595959"}},Bi={typography:qi,colors:{textColor:"#fff",backgroundColor:"#212121",primaryTextColor:"#fff",primaryColor:"#2196F3",titleColor:"#fff",alertColor:"#d9534f",borderColor:"#666"}};var Hi={name:"ReactiveBase",data:function(){return this.state={key:"__REACTIVE_BASE__"},this.state},created:function(){this.setStore(this.$props)},mounted:function(){void 0!==this.analyticsConfig&&console.warn("Warning(ReactiveSearch): The `analyticsConfig` prop has been marked as deprecated, please use the `appbaseConfig` prop instead.")},props:{app:Wn.string,analytics:kt.bool,analyticsConfig:Wn.analyticsConfig,appbaseConfig:Wn.appbaseConfig,enableAppbase:kt.bool.def(!1),credentials:Wn.string,headers:Wn.headers,queryParams:Wn.string,theme:kt.object.def({}),themePreset:kt.string.def("light"),type:Wn.string,url:Wn.string,mapKey:Wn.string,initialQueriesSyncTime:Wn.number,className:Wn.string,initialState:kt.object.def({}),transformRequest:Wn.func,transformResponse:Wn.func,as:kt.string.def("div"),getSearchParams:Wn.func,setSearchParams:Wn.func,mongodb:Wn.mongodb},provide:function(){return{theme_reactivesearch:(n=this.$props.themePreset,e="light"===n?zi:Bi,t=this.$props.theme,void 0===e&&(e={}),void 0===t&&(t={}),{typography:at({},e.typography,t.typography),colors:at({},e.colors,t.colors),component:at({},e.component,t.component)}),store:this.store};var e,t,n},watch:{app:function(){this.updateState(this.$props)},url:function(){this.updateState(this.$props)},type:function(){this.updateState(this.$props)},credentials:function(){this.updateState(this.$props)},mapKey:function(){this.updateState(this.$props)},headers:function(){this.updateState(this.$props)},analyticsConfig:function(e,t){$e(e,t)||this.store&&this.store.dispatch(Xe(e))},appbaseConfig:function(e,t){$e(e,t)||this.store&&this.store.dispatch(Xe(e))},mongodb:function(){this.updateState(this.$props)}},computed:{getHeaders:function(){var e=this.$props,t=e.enableAppbase,n=e.headers,r=e.appbaseConfig,o=e.mongodb,i=(r||{}).enableTelemetry;return at({},t&&!o&&at({"X-Search-Client":"ReactiveSearch Vue"},!1===i&&{"X-Enable-Telemetry":!1}),n)}},methods:{updateState:function(e){this.setStore(e),this.key=this.state.key+"-0"},setStore:function(e){var t=e.url&&""!==e.url.trim()&&!e.credentials?null:e.credentials,n=at({},e.analyticsConfig,e.appbaseConfig),r={url:e.url&&""!==e.url.trim()?e.url:"",app:e.app,credentials:t,type:e.type?e.type:"*",transformRequest:e.transformRequest,transformResponse:e.transformResponse,enableAppbase:e.enableAppbase,analytics:e.appbaseConfig?e.appbaseConfig.recordAnalytics:e.analytics,analyticsConfig:n,mongodb:e.mongodb},o="";o="undefined"!=typeof window?window.location.search:e.queryParams||"";var i=new URLSearchParams(o),s={},a={};Array.from(i.keys()).forEach((function(e){try{var t,n,r=JSON.parse(i.get(e)),o={};r.value?o.value=r.value:o.value=r,r.category&&(o.category=r.category),o.reference="URL",s=at({},s,((t={})[e]=o,t)),a=at({},a,((n={})[e]=o.value,n))}catch(e){}}));var u=e.themePreset,l=xi(r);this.$props.transformRequest&&(l.transformRequest=this.$props.transformRequest),this.$props.transformResponse&&(l.transformResponse=this.$props.transformResponse);var c=at({config:at({},r,{initialQueriesSyncTime:e.initialQueriesSyncTime,initialTimestamp:(new Date).getTime(),mapKey:e.mapKey,themePreset:u}),appbaseRef:l,selectedValues:s,urlValues:a,headers:this.getHeaders},this.$props.initialState);this.store=rt(c)}},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.style,o=n.className;return e(Mi,{attrs:{store:this.store}},[e(Ui,{attrs:{as:this.$props.as,headers:this.getHeaders,className:o,getSearchParams:this.getSearchParams,setSearchParams:this.setSearchParams},style:r},[t])])},install:function(e){e.component(Hi.name,Hi)}},Gi="undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().indexOf("firefox")>0;function Wi(e,t,n,r){e.addEventListener?e.addEventListener(t,n,r):e.attachEvent&&e.attachEvent("on".concat(t),(function(){n(window.event)}))}function Zi(e,t){for(var n=t.slice(0,t.length-1),r=0;r<n.length;r++)n[r]=e[n[r].toLowerCase()];return n}function Ki(e){"string"!=typeof e&&(e="");for(var t=(e=e.replace(/\s/g,"")).split(","),n=t.lastIndexOf("");n>=0;)t[n-1]+=",",t.splice(n,1),n=t.lastIndexOf("");return t}for(var Yi={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Gi?173:189,"=":Gi?61:187,";":Gi?59:186,"'":222,"[":219,"]":221,"\\":220},Xi={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,command:91},Ji={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},es={16:!1,18:!1,17:!1,91:!1},ts={},ns=1;ns<20;ns++)Yi["f".concat(ns)]=111+ns;var rs=[],os=!1,is="all",ss=[],as=function(e){return Yi[e.toLowerCase()]||Xi[e.toLowerCase()]||e.toUpperCase().charCodeAt(0)};function us(e){is=e||"all"}function ls(){return is||"all"}var cs=function(e){var t=e.key,n=e.scope,r=e.method,o=e.splitKey,i=void 0===o?"+":o;Ki(t).forEach((function(e){var t=e.split(i),o=t.length,s=t[o-1],a="*"===s?"*":as(s);if(ts[a]){n||(n=ls());var u=o>1?Zi(Xi,t):[];ts[a]=ts[a].filter((function(e){return!((!r||e.method===r)&&e.scope===n&&function(e,t){for(var n=e.length>=t.length?e:t,r=e.length>=t.length?t:e,o=!0,i=0;i<n.length;i++)-1===r.indexOf(n[i])&&(o=!1);return o}(e.mods,u))}))}}))};function ds(e,t,n,r){var o;if(t.element===r&&(t.scope===n||"all"===t.scope)){for(var i in o=t.mods.length>0,es)Object.prototype.hasOwnProperty.call(es,i)&&(!es[i]&&t.mods.indexOf(+i)>-1||es[i]&&-1===t.mods.indexOf(+i))&&(o=!1);(0!==t.mods.length||es[16]||es[18]||es[17]||es[91])&&!o&&"*"!==t.shortcut||!1===t.method(e,t)&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0))}}function ps(e,t){var n=ts["*"],r=e.keyCode||e.which||e.charCode;if(hs.filter.call(this,e)){if(93!==r&&224!==r||(r=91),-1===rs.indexOf(r)&&229!==r&&rs.push(r),["ctrlKey","altKey","shiftKey","metaKey"].forEach((function(t){var n=Ji[t];e[t]&&-1===rs.indexOf(n)?rs.push(n):!e[t]&&rs.indexOf(n)>-1?rs.splice(rs.indexOf(n),1):"metaKey"===t&&e[t]&&3===rs.length&&(e.ctrlKey||e.shiftKey||e.altKey||(rs=rs.slice(rs.indexOf(n))))})),r in es){for(var o in es[r]=!0,Xi)Xi[o]===r&&(hs[o]=!0);if(!n)return}for(var i in es)Object.prototype.hasOwnProperty.call(es,i)&&(es[i]=e[Ji[i]]);e.getModifierState&&(!e.altKey||e.ctrlKey)&&e.getModifierState("AltGraph")&&(-1===rs.indexOf(17)&&rs.push(17),-1===rs.indexOf(18)&&rs.push(18),es[17]=!0,es[18]=!0);var s=ls();if(n)for(var a=0;a<n.length;a++)n[a].scope===s&&("keydown"===e.type&&n[a].keydown||"keyup"===e.type&&n[a].keyup)&&ds(e,n[a],s,t);if(r in ts)for(var u=0;u<ts[r].length;u++)if(("keydown"===e.type&&ts[r][u].keydown||"keyup"===e.type&&ts[r][u].keyup)&&ts[r][u].key){for(var l=ts[r][u],c=l.splitKey,d=l.key.split(c),p=[],h=0;h<d.length;h++)p.push(as(d[h]));p.sort().join("")===rs.sort().join("")&&ds(e,l,s,t)}}}function hs(e,t,n){rs=[];var r=Ki(e),o=[],i="all",s=document,a=0,u=!1,l=!0,c="+",d=!1;for(void 0===n&&"function"==typeof t&&(n=t),"[object Object]"===Object.prototype.toString.call(t)&&(t.scope&&(i=t.scope),t.element&&(s=t.element),t.keyup&&(u=t.keyup),void 0!==t.keydown&&(l=t.keydown),void 0!==t.capture&&(d=t.capture),"string"==typeof t.splitKey&&(c=t.splitKey)),"string"==typeof t&&(i=t);a<r.length;a++)o=[],(e=r[a].split(c)).length>1&&(o=Zi(Xi,e)),(e="*"===(e=e[e.length-1])?"*":as(e))in ts||(ts[e]=[]),ts[e].push({keyup:u,keydown:l,scope:i,mods:o,shortcut:r[a],method:n,key:r[a],splitKey:c,element:s});void 0!==s&&!function(e){return ss.indexOf(e)>-1}(s)&&window&&(ss.push(s),Wi(s,"keydown",(function(e){ps(e,s)}),d),os||(os=!0,Wi(window,"focus",(function(){rs=[]}),d)),Wi(s,"keyup",(function(e){ps(e,s),function(e){var t=e.keyCode||e.which||e.charCode,n=rs.indexOf(t);if(n>=0&&rs.splice(n,1),e.key&&"meta"===e.key.toLowerCase()&&rs.splice(0,rs.length),93!==t&&224!==t||(t=91),t in es)for(var r in es[t]=!1,Xi)Xi[r]===t&&(hs[r]=!1)}(e)}),d))}var fs,gs={setScope:us,getScope:ls,deleteScope:function(e,t){var n,r;for(var o in e||(e=ls()),ts)if(Object.prototype.hasOwnProperty.call(ts,o))for(n=ts[o],r=0;r<n.length;)n[r].scope===e?n.splice(r,1):r++;ls()===e&&us(t||"all")},getPressedKeyCodes:function(){return rs.slice(0)},isPressed:function(e){return"string"==typeof e&&(e=as(e)),-1!==rs.indexOf(e)},filter:function(e){var t=e.target||e.srcElement,n=t.tagName,r=!0;return!t.isContentEditable&&("INPUT"!==n&&"TEXTAREA"!==n&&"SELECT"!==n||t.readOnly)||(r=!1),r},trigger:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"all";Object.keys(ts).forEach((function(n){var r=ts[n].find((function(n){return n.scope===t&&n.shortcut===e}));r&&r.method&&r.method()}))},unbind:function(e){if(void 0===e)Object.keys(ts).forEach((function(e){return delete ts[e]}));else if(Array.isArray(e))e.forEach((function(e){e.key&&cs(e)}));else if("object"==typeof e)e.key&&cs(e);else if("string"==typeof e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=n[0],i=n[1];"function"==typeof o&&(i=o,o=""),cs({key:e,scope:o,method:i,splitKey:"+"})}},keyMap:Yi,modifier:Xi,modifierMap:Ji};for(var ms in gs)Object.prototype.hasOwnProperty.call(gs,ms)&&(hs[ms]=gs[ms]);if("undefined"!=typeof window){var ys=window.hotkeys;hs.noConflict=function(e){return e&&window.hotkeys===hs&&(window.hotkeys=ys),hs},window.hotkeys=hs}var vs,bs=Jt("div")(fs||(fs=dt(["\n display: flex;\n align-items: stretch;\n width: 100%;\n"])));bs.defaultProps={className:"input-group"};var Cs,Os,_s,Ss,ws,$s,Es,Ts,Ps,Is,ks,As,Rs,xs,Ls,Ms,js,Qs=Jt("span")(vs||(vs=dt(["\n flex: 1;\n position: relative;\n"]))),Vs=Jt("span")(Cs||(Cs=dt(["\n display: flex;\n align-items: center;\n justify-content: center;\n background-color: #fafafa;\n border: 1px solid #ccc;\n border-radius: 2px;\n color: rgba(0, 0, 0, 0.85);\n font-size: 14px;\n font-weight: 400;\n padding: 0 11px;\n position: relative;\n transition: all 0.3s;\n box-sizing: border-box;\n overflow: hidden;\n\n &:first-of-type {\n border-right: none;\n }\n &:last-of-type {\n border-left: none;\n }\n"])));Vs.defaultProps={className:"input-addon"};var Ds,Fs,Ns,Us,qs,zs=function(e){var t=e.theme;return Wt(Os||(Os=dt(["\n\tborder: 1px solid ",";\n"])),t.colors.alertColor)},Bs=Wt(_s||(_s=dt(["\n\twidth: 100%;\n\tline-height: 1.5;\n\tmin-height: 42px;\n\tpadding: 8px 12px;\n\tborder: 1px solid #ccc;\n\tbackground-color: #fafafa;\n\tfont-size: 0.9rem;\n\toutline: none;\n\theight: 100%;\n\n\t&:focus {\n\t\tbackground-color: #fff;\n\t}\n"]))),Hs=function(e){return Wt(Ss||(Ss=dt(["\n\tborder-color: ",";\n"])),e.colors.borderColor)},Gs=Jt("input")($s||($s=dt(["\n\t",";\n\t",";\n\n\t",";\n\n\t",";\n\n\t",";\n\t",";\n\n\t",";\n\n\t",";\n\t",";\n\t",";\n\n\t",";\n"])),Bs,(function(e){var t=e.themePreset,n=e.theme;return"dark"===t&&function(e){var t=e.theme;return Wt(ws||(ws=dt(["\n\tbackground-color: ",";\n\tcolor: ",";\n\t",";\n\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"])),t.colors.backgroundColor,t.colors.textColor,Hs(t),t.colors.backgroundColor)}({theme:n})}),(function(e){return e.showIcon&&"left"===e.iconPosition&&Wt(Es||(Es=dt(["\n\t\t\tpadding-left: 36px;\n\t\t"])))}),(function(e){return e.showIcon&&"right"===e.iconPosition&&Wt(Ts||(Ts=dt(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&Wt(Ps||(Ps=dt(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&Wt(Is||(Is=dt(["\n\t\t\tpadding-right: 36px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&"right"===e.iconPosition&&Wt(ks||(ks=dt(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&"right"===e.iconPosition&&Wt(As||(As=dt(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showVoiceSearch&&e.showIcon&&Wt(Rs||(Rs=dt(["\n\t\t\tpadding-right: 66px;\n\t\t"])))}),(function(e){return e.showClear&&e.showIcon&&e.showVoiceSearch&&"right"===e.iconPosition&&Wt(xs||(xs=dt(["\n\t\t\tpadding-right: 90px;\n\t\t"])))}),(function(e){return e.alert&&zs})),Ws=function(e,t){return Wt(Ls||(Ls=dt(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: min(100vh, 402px);\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tcursor: pointer;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\n\t\t&:hover,\n\t\t&:focus {\n\t\t\tbackground-color: #eee;\n\t\t}\n\t}\n\n\t",";\n"])),"dark"===e&&t&&Hs(t))},Zs=Wt(Ms||(Ms=dt(["\n\tposition: relative;\n\t.cancel-icon {\n\t\tcursor: pointer;\n\t}\n"]))),Ks=function(e,t){return Wt(js||(js=dt(["\n\tdisplay: block;\n\twidth: 100%;\n\tborder: 1px solid #ccc;\n\tborder-top: none;\n\tbackground-color: #fff;\n\tfont-size: 0.9rem;\n\tz-index: 3;\n\tposition: absolute;\n\tmargin: 0;\n\tpadding: 0;\n\tlist-style: none;\n\tmax-height: 260px;\n\toverflow-y: auto;\n\n\t&.small {\n\t\ttop: 30px;\n\t}\n\n\tli {\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\tpadding: 10px;\n\t\tuser-select: none;\n\n\t\t& > .trim {\n\t\t\tdisplay: -webkit-box;\n\t\t\tdisplay: block;\n\t\t\twidth: 100%;\n\t\t\tmax-height: 2.3rem;\n\t\t\tline-height: 1.2rem;\n\t\t\t-webkit-line-clamp: 2;\n\t\t\t-webkit-box-orient: vertical;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t\twhite-space: nowrap;\n\t\t}\n\t}\n\n\t","\n"])),"dark"===e&&t&&Hs(t))},Ys=Jt("div")(Ds||(Ds=dt(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tgrid-gap: 6px;\n\tmargin: 0 10px;\n\theight: 100%;\n\n\t",";\n\n\t",";\n"])),(function(e){return"absolute"===e.positionType?Wt(Fs||(Fs=dt(["\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: 50%;\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t"]))):null}),(function(e){var t=e.groupPosition;return Wt("right"===t?Ns||(Ns=dt(["\n\t\t\t\t\tright: 0;\n\t\t\t "])):Us||(Us=dt(["\n\t\t\t\t\tleft: 0;\n\t\t\t "])))})),Xs=Jt("div")(qs||(qs=dt(["\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\tmax-width: 23px;\n\twidth: max-content;\n\tcursor: pointer;\n\theight: 100%;min-width:20px;\n\n\tsvg.search-icon {\n\t\tfill: ",";\n\t\ttransform:scale(1.5);\n\t}\n\n\tsvg.cancel-icon {\n\t\tfill: ",";\n\t}\n"])),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.borderColor||"#000"}));function Js(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function ea(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function ta(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return ea(n.overflowY,t)||ea(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function na(e,t,n,r,o,i,s,a){return i<e&&s>t||i>e&&s<t?0:i<=e&&a<=n||s>=t&&a>=n?i-e-r:s>t&&a<n||i<e&&a>n?s-t+o:0}var ra,oa=function(e,t){null!==e&&function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,s=t.boundary,a=t.skipOverflowHiddenElements,u="function"==typeof s?s:function(e){return e!==s};if(!Js(e))throw new TypeError("Invalid target");for(var l=document.scrollingElement||document.documentElement,c=[],d=e;Js(d)&&u(d);){if((d=d.parentElement)===l){c.push(d);break}null!=d&&d===document.body&&ta(d)&&!ta(document.documentElement)||null!=d&&ta(d,a)&&c.push(d)}for(var p=n.visualViewport?n.visualViewport.width:innerWidth,h=n.visualViewport?n.visualViewport.height:innerHeight,f=window.scrollX||pageXOffset,g=window.scrollY||pageYOffset,m=e.getBoundingClientRect(),y=m.height,v=m.width,b=m.top,C=m.right,O=m.bottom,_=m.left,S="start"===o||"nearest"===o?b:"end"===o?O:b+y/2,w="center"===i?_+v/2:"end"===i?C:_,$=[],E=0;E<c.length;E++){var T=c[E],P=T.getBoundingClientRect(),I=P.height,k=P.width,A=P.top,R=P.right,x=P.bottom,L=P.left;if("if-needed"===r&&b>=0&&_>=0&&O<=h&&C<=p&&b>=A&&O<=x&&_>=L&&C<=R)return $;var M=getComputedStyle(T),j=parseInt(M.borderLeftWidth,10),Q=parseInt(M.borderTopWidth,10),V=parseInt(M.borderRightWidth,10),D=parseInt(M.borderBottomWidth,10),F=0,N=0,U="offsetWidth"in T?T.offsetWidth-T.clientWidth-j-V:0,q="offsetHeight"in T?T.offsetHeight-T.clientHeight-Q-D:0;if(l===T)F="start"===o?S:"end"===o?S-h:"nearest"===o?na(g,g+h,h,Q,D,g+S,g+S+y,y):S-h/2,N="start"===i?w:"center"===i?w-p/2:"end"===i?w-p:na(f,f+p,p,j,V,f+w,f+w+v,v),F=Math.max(0,F+g),N=Math.max(0,N+f);else{F="start"===o?S-A-Q:"end"===o?S-x+D+q:"nearest"===o?na(A,x,I,Q,D+q,S,S+y,y):S-(A+I/2)+q/2,N="start"===i?w-L-j:"center"===i?w-(L+k/2)+U/2:"end"===i?w-R+V+U:na(L,R,k,j,V+U,w,w+v,v);var z=T.scrollLeft,B=T.scrollTop;S+=B-(F=Math.max(0,Math.min(B+F,T.scrollHeight-I+q))),w+=z-(N=Math.max(0,Math.min(z+N,T.scrollWidth-k+U)))}$.push({el:T,top:F,left:N})}return $}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"}).forEach((function(e){var t=e.el,n=e.top,r=e.left;t.scrollTop=n,t.scrollLeft=r}))},ia={props:["isOpen","inputValue","selectedItem","highlightedIndex","handleChange","itemToString","handleMouseup"],data:function(){return{isMouseDown:!1,internal_isOpen:!1,internal_inputValue:"",internal_selectedItem:null,internal_highlightedIndex:null}},computed:{mergedState:function(){var e=this;return Object.keys(this.$props).reduce((function(t,n){var r;return at({},t,((r={})[n]=e.isControlledProp(n)?e.$props[n]:e["internal_"+n],r))}),{})},internalItemCount:function(){return this.items.length}},mounted:function(){window.addEventListener("mousedown",this.handleWindowMousedown),window.addEventListener("mouseup",this.handleWindowMouseup)},beforeDestroy:function(){window.removeEventListener("mousedown",this.handleWindowMousedown),window.removeEventListener("mouseup",this.handleWindowMouseup)},methods:{handleWindowMousedown:function(){this.isMouseDown=!0},handleWindowMouseup:function(e){this.isMouseDown=!1,e.target!==this.$refs.rootNode&&this.$refs.rootNode.contains(e.target)||!this.mergedState.isOpen||this.isMouseDown||(this.reset(),this.$props.handleMouseup&&this.$props.handleMouseup({isOpen:!1}))},keyDownArrowDown:function(e){e.preventDefault();var t=e.shiftKey?5:1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownArrowUp:function(e){e.preventDefault();var t=e.shiftKey?-5:-1;this.mergedState.isOpen?this.changeHighlightedIndex(t):(this.setState({isOpen:!0}),this.setHighlightedIndex())},keyDownEnter:function(e){this.mergedState.isOpen&&(e.preventDefault(),this.selectHighlightedItem())},keyDownEscape:function(e){e.preventDefault(),this.reset()},selectHighlightedItem:function(){return this.selectItemAtIndex(this.mergedState.highlightedIndex)},selectItemAtIndex:function(e){var t=this.items[e];null!=t&&this.selectItem(t)},selectItem:function(e){this.$props.handleChange&&this.$props.handleChange(e),this.setState({isOpen:!1,highlightedIndex:null,selectedItem:e,inputValue:function(){return this.isControlledProp("selectedItem")?"":"object"==typeof e?e.label||"":e}.call(this)})},changeHighlightedIndex:function(e){if(!(this.internalItemCount<0)){var t=this.mergedState.highlightedIndex;null===t&&(t=e>0?-1:this.internalItemCount+1);var n=t+e;n<0?n=this.internalItemCount:n>this.internalItemCount&&(n=0),this.setHighlightedIndex(n)}},setHighlightedIndex:function(e){void 0===e&&(e=null),this.setState({highlightedIndex:e});var t=document.getElementById("Downshift"+e);oa(t,this.rootNode)},reset:function(){var e=this.mergedState.selectedItem;this.setState({isOpen:!1,highlightedIndex:null,inputValue:e})},getItemProps:function(e){var t=e.index,n=e.item,r=t;return void 0===t?(this.$props.itemToString?this.items.push(this.$props.itemToString(n)):this.items.push(n),r=this.items.indexOf(n)):this.items[r]=n,{id:"Downshift"+r}},getItemEvents:function(e){var t=e.index,n=e.item,r=t;void 0===t&&(r=this.items.indexOf(n));var o=this;return{mouseenter:function(){o.setHighlightedIndex(r)},click:function(e){e.stopPropagation(),o.selectItemAtIndex(r)}}},getInputProps:function(e){var t=e.value,n=this.mergedState.inputValue;return t!==n&&this.setState({inputValue:t}),{value:n}},getButtonProps:function(e){var t=this,n=e.onClick,r=e.onKeyDown,o=e.onKeyUp,i=e.onBlur;return{click:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),r&&r(e)},keyup:function(e){o&&o(e)},blur:function(e){i&&i(e)}}},getInputEvents:function(e){var t=this,n=e.onInput,r=e.onBlur,o=e.onFocus,i=e.onKeyPress,s=e.onKeyDown,a=e.onKeyUp;return{input:function(e){t.setState({isOpen:!0,inputValue:e.target.value}),n&&n(e)},focus:function(e){o&&o(e)},keydown:function(e){e.key&&t["keyDown"+e.key]&&t["keyDown"+e.key].call(t,e),s&&s(e)},keypress:function(e){i&&i(e)},keyup:function(e){a&&a(e)},blur:function(e){r&&r(e)},click:e.onClick}},getHelpersAndState:function(){return at({getItemProps:this.getItemProps,getItemEvents:this.getItemEvents,getInputProps:this.getInputProps,getInputEvents:this.getInputEvents,getButtonProps:this.getButtonProps,setHighlightedIndex:this.setHighlightedIndex},this.mergedState)},isControlledProp:function(e){return void 0!==this.$props[e]},setState:function(e){var t=this;Object.keys(e).forEach((function(n){t.isControlledProp(n)?(t.$emit(n+"Change",e[n]),t.$emit(n+"-change",e[n])):t["internal_"+n]=e[n]})),this.$emit("stateChange",this.mergedState),this.$emit("state-change",this.mergedState)}},render:function(){var e=arguments[0];return this.items=[],e("div",{ref:"rootNode"},[this.$scopedSlots.default&&this.$scopedSlots.default(at({},this.getHelpersAndState()))])}},sa=Jt("div")(ra||(ra=dt(["\n\t",";\n"])),(function(e){return e.theme.component})),aa=st.getClassName,ua={name:"SuggestionWrapper",props:{innerClassName:Wn.string,themePreset:Wn.themePreset,innerClass:Wn.style},render:function(){var e=arguments[0],t=this.$props,n=t.themePreset,r=t.innerClass,o=t.innerClassName;return e("div",{class:Ks(n)+" "+aa(r,o||"")},[e("li",[this.$scopedSlots.default()])])}},la=o((function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){e.exports=n(1)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=n(2);Object.defineProperty(t,"combineChunks",{enumerable:!0,get:function(){return r.combineChunks}}),Object.defineProperty(t,"fillInChunks",{enumerable:!0,get:function(){return r.fillInChunks}}),Object.defineProperty(t,"findAll",{enumerable:!0,get:function(){return r.findAll}}),Object.defineProperty(t,"findChunks",{enumerable:!0,get:function(){return r.findChunks}})},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.findAll=function(e){var t=e.autoEscape,i=e.caseSensitive,s=void 0!==i&&i,a=e.findChunks,u=void 0===a?r:a,l=e.sanitize,c=e.searchWords,d=e.textToHighlight;return o({chunksToHighlight:n({chunks:u({autoEscape:t,caseSensitive:s,sanitize:l,searchWords:c,textToHighlight:d})}),totalLength:d?d.length:0})};var n=t.combineChunks=function(e){var t=e.chunks;return t=t.sort((function(e,t){return e.start-t.start})).reduce((function(e,t){if(0===e.length)return[t];var n=e.pop();if(t.start<=n.end){var r=Math.max(n.end,t.end);e.push({highlight:!1,start:n.start,end:r})}else e.push(n,t);return e}),[])},r=function(e){var t=e.autoEscape,n=e.caseSensitive,r=e.sanitize,o=void 0===r?i:r,s=e.searchWords,a=e.textToHighlight;return a=o(a),s.filter((function(e){return e})).reduce((function(e,r){r=o(r),t&&(r=r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"));for(var i=new RegExp(r,n?"g":"gi"),s=void 0;s=i.exec(a);){var u=s.index,l=i.lastIndex;l>u&&e.push({highlight:!1,start:u,end:l}),s.index===i.lastIndex&&i.lastIndex++}return e}),[])};t.findChunks=r;var o=t.fillInChunks=function(e){var t=e.chunksToHighlight,n=e.totalLength,r=[],o=function(e,t,n){t-e>0&&r.push({start:e,end:t,highlight:n})};if(0===t.length)o(0,n,!1);else{var i=0;t.forEach((function(e){o(i,e.start,!1),o(e.start,e.end,!0),i=e.end})),o(i,n,!1)}return r};function i(e){return e}}])}));r(la);var ca=la.findAll;
|
|
27
27
|
/*!
|
|
28
28
|
* vue-highlight-words © Yichang Liu, 2019
|
|
29
29
|
*
|
|
@@ -33,5 +33,5 @@ function Je(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 Ea(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ta={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,_=r.searchWords,w=r.textToHighlight,O=r.unhighlightClassName,C=void 0===O?"":O,S=r.unhighlightStyle,P=t.data,k=Ia({autoEscape:l,caseSensitive:d,findChunks:p,sanitize:b,searchWords:_,textToHighlight:w}),$=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){Ea(e,t,n[t])}))}return e}({},P),k.map((function(t,r){var o=w.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 $&&(l.props={highlightIndex:I}),P.scopedSlots?e($,l,[P.scopedSlots.default({children:o,highlightIndex:I})]):e($,l,o)}return e("span",{class:C,key:r,style:S},o)})))}};function Aa(){var e=Ke(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]);return Aa=function(){return e},e}var xa={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},Ra=Lt("span")(Aa()),ja={name:"SuggestionItem",props:{currentValue:An.string,suggestion:An.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;return n?"string"==typeof n?e("div",{class:"trim"},[s?e(Ra,{domProps:{innerHTML:n}}):e(Ta,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:xa}})]):n:o||a||i?e(oo,{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(oo,{attrs:{direction:"column",css:{width:a?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(Ta,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:xa},class:At({fontSize:"1rem"})})]),i&&e("div",{class:It("trim",At({marginTop:3}))},[e(Ta,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:xa}})])])]):r}},Ma={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Search",height:"14",width:"10",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 15"},class:"search-icon"},[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"}})])}},La={functional:!0,render:function(e){return e("svg",{attrs:{alt:"Clear",height:"10",width:"8",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 212.982 212.982"},class:"cancel-icon"},[e("title",["Clear"]),e("path",{attrs:{d:"M131.804,106.491l75.936-75.936c6.99-6.99,6.99-18.323,0-25.312c-6.99-6.99-18.322-6.99-25.312,0l-75.937,75.937L30.554,5.242c-6.99-6.99-18.322-6.99-25.312,0c-6.989,6.99-6.989,18.323,0,25.312l75.937,75.936L5.242,182.427c-6.989,6.99-6.989,18.323,0,25.312c6.99,6.99,18.322,6.99,25.312,0l75.937-75.937l75.937,75.937c6.989,6.99,18.322,6.99,25.312,0c6.99-6.99,6.99-18.322,0-25.312L131.804,106.491z"}})])}};function Qa(){var e=Ke(["\n\theight: 40px;\n\tposition: absolute;\n\ttop: 8px;\n\tcursor: pointer;\n\tright: 15px;\n\t","\n\t","\n width: 11px;\n"]);return Qa=function(){return e},e}function Va(){var e=Ke(["\n\tright: 35px;\n"]);return Va=function(){return e},e}var Da=At(Va()),Fa=Lt("div")(Qa(),(function(e){var t=e.iconPosition,n=e.showClear;return n&&"left"!==t?"right: 51px;":"right"===t||n?Da:null}),(function(e){var t=e.showIcon,n=e.showClear;return!t&&n?"right: 32px;":t||n?null:"right: 15px;"}));function Na(){var e=Ke(["\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"]);return Na=function(){return e},e}Tt(Na());var qa={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}},[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"}})])])])}};function Ua(){var e=Ke(["\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"]);return Ua=function(){return e},e}Tt(Ua());var Ha={name:"MuteSvg",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_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"}})])])])}};function za(){var e=Ke(["\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"]);return za=function(){return e},e}Tt(za());var Ba={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}},[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"}})])])])])}},Ga="INACTIVE",Wa="STOPPED",Za="ACTIVE",Ya="DENIED",Ka={name:"Mic",props:{children:An.title,lang:An.string.def("en-US"),iconPosition:An.string.def("left"),handleResult:An.func,onNoMatch:An.func,onError:An.func,getInstance:An.func,render:An.func,className:An.string,applyClearStyle:An.bool,showIcon:An.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return Xn(t,this)},stopMic:function(){this.instance&&(this.status=Ga,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===Za&&(this.status=Ga);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!==Ya)return this.status=Ga,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=Za},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=Ga:"not-allowed"===t.error&&(e.status=Ya),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=Ga},this.instance.onaudioend=function(){e.status=Ga}}}},computed:{hasCustomRenderer:function(){return Jn(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case Za:return e(Ba,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Wa:case Ya:return e(Ha,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(qa,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:Ga}},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],t=this.$props,n=t.iconPosition,r=t.applyClearStyle,o=t.showIcon;return this.hasCustomRenderer?this.getComponent():e(Fa,{attrs:{showIcon:o,showClear:r,iconPosition:n}},[this.Icon])}},Xa={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]):"popular-search-icon"===this.$props.type?e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Popular Searches",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("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",alt:"Recent Searches",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"}})])}},Ja=He.updateQuery,es=He.setQueryOptions,ts=He.setCustomQuery,ns=He.setDefaultQuery,rs=He.setCustomHighlightOptions,os=He.recordSuggestionClick,is=He.loadPopularSuggestions,as=He.getRecentSearches,ss=Be.debounce,us=Be.checkValueChange,ls=Be.getClassName,cs=Be.getOptionsFromQuery,ds=Be.isEqual,ps=Be.getCompositeAggsQuery,hs=Be.withClickIds,fs=Be.getResultStats,gs=Be.handleOnSuggestions,ms=Be.getTopSuggestions,ys={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,t=this.$props,n=t.enableQuerySuggestions,r=t.renderQuerySuggestions,o=t.enableRecentSearches,i=t.distinctField,a=t.distinctFieldConfig;n&&console.warn("Warning(ReactiveSearch): The `enableQuerySuggestions` prop has been marked as deprecated, please use the `enablePopularSuggestions` prop instead."),r&&console.warn("Warning(ReactiveSearch): The `renderQuerySuggestions` prop has been marked as deprecated, please use the `renderPopularSuggestions` prop instead."),this.config.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.config.enableAppbase||!i&&!a||console.warn("Warning(ReactiveSearch): In order to use the `distinctField` and `distinctFieldConfig` props, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.loadPopularSuggestions(this.$props.componentId),this.currentValue=this.selectedValue||"",o&&this.getRecentSearches(),this.handleTextChange=ss((function(t){e.$props.autosuggest?e.updateDefaultQueryHandler(t,e.$props):e.updateQueryHandler(e.$props.componentId,t,e.$props)}),this.$props.debounce),rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),nr(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),hs(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return ms(this.currentValue?this.popularSuggestions:this.defaultPopularSuggestions||[],this.currentValue,this.showDistinctSuggestions)},defaultSearchSuggestions:function(){var e=this.enableQuerySuggestions||this.enablePopularSuggestions;if(this.currentValue)return[];var t=(this.defaultPopularSuggestions||[]).map((function(e){return Ge(Ge({},e),{},{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return Ge(Ge({},e),{},{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return ms(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return Jn(this)},stats:function(){return fs(this)}},props:{options:An.options,autoFocus:An.bool,autosuggest:ft.bool.def(!0),beforeValueChange:An.func,className:ft.string.def(""),clearIcon:An.children,componentId:An.stringRequired,customHighlight:An.func,customQuery:An.func,defaultQuery:An.func,dataField:ft.oneOfType([ft.string,ft.arrayOf(ft.string)]),aggregationField:An.string,aggregationSize:ft.number,size:ft.number.def(10),debounce:ft.number.def(0),defaultValue:An.string,excludeFields:An.excludeFields.def([]),value:An.value,defaultSuggestions:An.suggestions,enableSynonyms:An.bool.def(!0),enableQuerySuggestions:ft.bool.def(!1),enablePopularSuggestions:ft.bool.def(!1),enableRecentSearches:ft.bool.def(!1),fieldWeights:An.fieldWeights,filterLabel:An.string,fuzziness:An.fuzziness,highlight:An.bool,highlightField:An.stringOrArray,icon:An.children,iconPosition:ft.oneOf(["left","right"]).def("left"),includeFields:An.includeFields.def(["*"]),innerClass:An.style,innerRef:An.string,render:An.func,renderQuerySuggestions:An.func,renderPopularSuggestions:An.func,parseSuggestion:An.func,renderNoSuggestion:An.title,renderError:An.title,placeholder:ft.string.def("Search"),queryFormat:ft.oneOf(["and","or"]).def("or"),react:An.react,showClear:ft.bool.def(!0),showDistinctSuggestions:ft.bool.def(!0),showFilter:ft.bool.def(!0),showIcon:ft.bool.def(!0),title:An.title,theme:An.style,URLParams:ft.bool.def(!1),strictSelection:ft.bool.def(!1),nestedField:An.string,enablePredictiveSuggestions:ft.bool.def(!1),recentSearchesIcon:ft.any,popularSearchesIcon:ft.any,showVoiceSearch:An.bool.def(!1),getMicInstance:An.func,renderMic:An.func,distinctField:An.string,distinctFieldConfig:An.props},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=ys.highlightQuery(this.$props)||{};this.queryOptions=Ge(Ge({},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)},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){ds(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){or(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("",ze.CLEAR_VALUE),this.setValue(e||"",!0,this.$props))}},methods:{validateDataField:function(){var e=ys.name,t="dataField supplied to "+e+" is required. Validation failed.",n=this.$props.dataField;if(this.config&&!this.config.enableAppbase){if(!n)return void console.error(t);if("string"!=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=ys.highlightQuery(this.$props)||{};this.queryOptions=Ge(Ge({},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):Xn(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=_e(this.$props);return e&&(t.aggs=ps({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return gs(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,ze.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);us(n.componentId,e,n.beforeValueChange,(function(){!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches(),i.currentValue=e,t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===ze.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){var n,r=ys.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=cs(o),nr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,Ge(Ge({},this.queryOptions),n)),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.dataSearch})},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,a=n.showFilter,s=n.URLParams,u=ys.defaultQuery(t,n);if(o){var l=o(t,n),c=l.query;c&&(u=c),r=cs(l),rr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,Ge(Ge({},this.queryOptions),r))}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.$props.onFocus&&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),this.$props.autosuggest&&(this.isOpen=!0))},triggerQuery:function(){void 0!==this.$props.value&&(this.isPending=!1,this.setValue(this.$props.value,!0))},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("",ze.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,ze.ENTER_PRESS)),this.$props.onKeyDown&&(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,ze.SUGGESTION_SELECT):this.$emit("change",e.value,this.triggerQuery),this.onValueSelectedHandler(e.value,ze.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(Ma):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ka,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[Yn(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(La):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(ka,{attrs:{innerClass:o,themePreset:this.themePreset,theme:r,innerClassName:"noSuggestion"},scopedSlots:{default:function(){return"function"==typeof i?i(l):i}}})},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",[l&&r&&e(ma,{on:{click:this.clearValue},attrs:{iconPosition:"right",clearIcon:"right"===n,showIcon:s,isClearIcon:!0}},[this.renderCancelIcon()]),a&&e(Ka,{attrs:{getInstance:i,render:u,iconPosition:n,handleResult:this.handleVoiceResults,className:ls(o,"mic")||null,applyClearStyle:!!l&&r,showIcon:s}}),e(ma,{on:{click:this.handleSearchIconClick},attrs:{showIcon:s,iconPosition:n}},[this.renderIcon()])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.size,i=this.$scopedSlots,a=i.recentSearchesIcon,s=i.popularSearchesIcon,u=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return t(Sa,{class:this.$props.className},[this.$props.title&&t(Pr,{class:ls(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(Oa,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var i=n.getInputEvents,l=n.getInputProps,c=n.getItemProps,d=n.getItemEvents,p=n.isOpen,h=n.highlightedIndex,f=n.setHighlightedIndex;return t("div",{class:sa},[t(ia,{attrs:{id:e.$props.componentId+"-input",showIcon:e.$props.showIcon,showClear:e.$props.showClear,iconPosition:e.$props.iconPosition,placeholder:e.$props.placeholder,themePreset:e.themePreset,autocomplete:"off"},ref:e.$props.innerRef,class:ls(e.$props.innerClass,"input"),on:Ge({},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,h)},onKeyUp:function(t){e.$emit("keyUp",t,e.triggerQuery),e.$emit("key-up",t,e.triggerQuery)},onClick:function(){f(null)}})),domProps:Ge({},l({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),e.hasCustomRenderer&&e.getComponent({isOpen:p,getItemProps:c,getItemEvents:d,highlightedIndex:h}),e.renderErrorComponent(),!e.hasCustomRenderer&&p&&u?t("ul",{class:aa(e.themePreset,r)+" "+ls(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o).map((function(n,r){return t("li",{domProps:Ge({},c({item:n})),on:Ge({},d({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(h,r)}},[t(ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:Ge({},c({item:n})),on:Ge({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(h,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[n.source&&n.source._recent_search&&t(Xa,{attrs:{className:ls(e.$props.innerClass,"recent-search-icon")||null,icon:a,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(Xa,{attrs:{className:ls(e.$props.innerClass,"popular-search-icon")||null,icon:s,type:"popular-search-icon"}})]),t(ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),ir(e)?e.getComponent({isOpen:p,getItemProps:c,getItemEvents:d,highlightedIndex:h},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:Ge({},c({item:n})),on:Ge({},d({item:n})),key:e.suggestionsList.length+r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(h,e.suggestionsList.length+r),justifyContent:"flex-start"}},[t("div",{style:{padding:"0 10px 0 0"}},[t(Xa,{attrs:{className:ls(e.$props.innerClass,"popular-search-icon")||null,icon:s,type:"popular-search-icon"}})]),t(ja,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)," "])}}}):t("div",{class:sa},[t(ia,{class:ls(this.$props.innerClass,"input")||"",attrs:{placeholder:this.$props.placeholder,iconPosition:this.$props.iconPosition,showIcon:this.$props.showIcon,showClear:this.$props.showClear,innerRef:this.$props.innerRef,themePreset:this.themePreset},on:Ge({},{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:Ge({},{autofocus:this.$props.autoFocus,value:this.$data.currentValue?this.$data.currentValue:""})}),this.renderIcons()])])},defaultQuery:function(e,t){var n=null,r=[];return e&&(Array.isArray(t.dataField)?r=t.dataField:t.dataField&&(r=[t.dataField]),n={bool:{should:ys.shouldQuery(e,r,t),minimum_should_match:"1"}}),""===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,t){var r=e+(Array.isArray(n.fieldWeights)&&n.fieldWeights[t]?"^"+n.fieldWeights[t]:"");return e.endsWith(".keyword")||e.endsWith(".autosuggest")||e.endsWith(".search")||o.push(r),r}));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:Ge({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}}},vs=yr(Zn((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,config:e.config,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:es,updateQuery:Ja,setCustomQuery:ts,setDefaultQuery:ns,setCustomHighlightOptions:rs,recordSuggestionClick:os,loadPopularSuggestions:is,getRecentSearches:as})(ys),{componentType:T.dataSearch,internalComponent:!0});function bs(){var e=Ke(["\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"]);return bs=function(){return e},e}function _s(){var e=Ke(["\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"]);return _s=function(){return e},e}function ws(){var e=Ke(["\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"]);return ws=function(){return e},e}function Os(){var e=Ke(["\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"]);return Os=function(){return e},e}function Cs(){var e=Ke(["\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"]);return Cs=function(){return e},e}function Ss(){var e=Ke(["\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"]);return Ss=function(){return e},e}ys.install=function(e){e.component(ys.name,vs)},ys.componentType=T.dataSearch;var Ps="15px",ks="15px",$s="4px",Is=At(Ss()),Es=At(Cs()),Ts=function(e){var t=e.theme;return At(Os(),Is,hn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||hn(.1,t.colors.textColor),t.colors.primaryColor,Ps,Ps,ks,t.colors.primaryColor,$s,Ps,$s,ks,$s,ks,$s)},As=Lt("input")(ws(),Ts,(function(e){return e.show?null:Es}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),xs=Lt("input")(_s(),Ts,(function(e){return e.show?null:Es}),Ps,Ps,Ps,ks,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Rs=Lt("ul")(bs()),js=Be.getAggsOrder,Ms=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:Ge({field:o,size:i,order:js(a||"count")},s?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),Ge(Ge({},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))},Ls=He.updateQuery,Qs=He.setQueryOptions,Vs=He.setCustomQuery,Ds=He.setDefaultQuery,Fs=Be.getQueryOptions,Ns=Be.checkValueChange,qs=Be.getClassName,Us=Be.getOptionsFromQuery,Hs=Be.isEqual,zs={name:"SingleList",props:{beforeValueChange:An.func,className:An.string.def(""),componentId:An.stringRequired,customQuery:An.func,dataField:An.stringRequired,defaultValue:An.string,value:An.value,defaultQuery:An.func,filterLabel:An.string,innerClass:An.style,placeholder:ft.string.def("Search"),react:An.react,render:An.func,renderItem:An.func,renderNoResults:ft.any,transformData:An.func,selectAllLabel:An.string,showCount:ft.bool.def(!0),showFilter:ft.bool.def(!0),showRadio:ft.bool.def(!0),showSearch:ft.bool.def(!0),size:ft.number.def(100),sortBy:ft.oneOf(["asc","desc","count"]).def("count"),title:An.title,URLParams:ft.bool.def(!1),showMissing:ft.bool.def(!1),missingLabel:ft.string.def("N/A"),nestedField:An.string,enableStrictSelection:ft.bool.def(!1)},data:function(){var e=this.$props;return this.__state={currentValue:"",modifiedOptions:e.options&&e.options[e.dataField]?e.options[e.dataField].buckets:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),nr(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){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){Hs(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){or(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 Yn(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length)return null;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||String(t.key).toLowerCase().includes(e.$data.searchTerm.toLowerCase()))}));return t(Sa,{class:this.$props.className},[this.$props.title&&t(Pr,{class:qs(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Rs,{class:qs(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(As,{class:qs(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:Ge({},{checked:this.$data.currentValue===r})}),t("label",{class:qs(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(As,{class:qs(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:Ge({},{checked:e.currentValue===String(n.key)})}),t("label",{class:qs(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:qs(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="");Ns(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,r=zs.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=Us(o),nr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.singleList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=zs.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Us(r(e,t)),rr(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleList})},generateQueryOptions:function(e){var t=Fs(e);return Ms(t,e)},updateQueryHandlerOptions:function(e){var t=zs.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Us(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,Ge(Ge({},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(ia,{class:qs(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 Xn(i,this)},handleClick:function(e){var t=e;return tr(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:qs(this.$props.innerClass,"noResults")||null},[Yn(t)?t():t])}},computed:{hasCustomRenderer:function(){return Jn(this)}},generateQueryOptions:function(e){var t=Fs(e);return Ms(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}},Bs=yr(Zn((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]}}),{setQueryOptions:Qs,updateQuery:Ls,setCustomQuery:Vs,setDefaultQuery:Ds})(zs),{componentType:T.singleList,internalComponent:!0});zs.install=function(e){e.component(zs.name,Bs)},zs.componentType=T.singleList;var Gs=He.updateQuery,Ws=He.setQueryOptions,Zs=He.setCustomQuery,Ys=He.setDefaultQuery,Ks=Be.isEqual,Xs=Be.getQueryOptions,Js=Be.checkValueChange,eu=Be.getClassName,tu=Be.getOptionsFromQuery,nu={name:"MultiList",props:{defaultValue:An.stringArray,value:An.stringArray,queryFormat:ft.oneOf(["and","or"]).def("or"),showCheckbox:ft.bool.def(!0),beforeValueChange:An.func,className:An.string.def(""),componentId:An.stringRequired,customQuery:An.func,dataField:An.stringRequired,defaultQuery:An.func,filterLabel:An.string,innerClass:An.style,placeholder:ft.string.def("Search"),react:An.react,render:An.func,renderItem:An.func,renderError:An.title,renderNoResults:ft.any,transformData:An.func,selectAllLabel:An.string,showCount:ft.bool.def(!0),showFilter:ft.bool.def(!0),showSearch:ft.bool.def(!0),size:ft.number.def(100),sortBy:ft.oneOf(["asc","desc","count"]).def("count"),title:An.title,URLParams:ft.bool.def(!1),showMissing:ft.bool.def(!1),missingLabel:ft.string.def("N/A"),nestedField:An.string},data:function(){var e=this.$props;return this.__state={currentValue:{},modifiedOptions:e.options&&e.options[e.dataField]?e.options[e.dataField].buckets:[],searchTerm:""},this.internalComponent=e.componentId+"__internal",this.__state},created:function(){rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),nr(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,!0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0)},watch:{options:function(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){Ks(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){Ks(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])),Ks(n,e)||this.setValue(e||[],!0)},defaultQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){or(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 Yn(s)?s(this.error):s;if(!this.hasCustomRenderer&&0===this.modifiedOptions.length)return null;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||String(t.key).toLowerCase().includes(e.$data.searchTerm.toLowerCase()))}));return t(Sa,{class:this.$props.className},[this.$props.title&&t(Pr,{class:eu(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Rs,{class:eu(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(xs,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:eu(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:Ge({},{checked:!!this.currentValue[r]})}),t("label",{class:eu(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(xs,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:eu(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:Ge({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:eu(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:eu(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],Ye(s,[o].map(Xe)));i=Ge({},u)}}else{if(i[e]){var l=i,c=(l[e],Ye(l,[e].map(Xe)));i=Ge({},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],Ye(d,[o].map(Xe)));i=Ge({},p)}a=Object.keys(i)}Js(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,r=nu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=tu(o),nr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.multiList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=nu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=tu(r(e,t)),rr(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiList})},generateQueryOptions:function(e){var t=Xs(e);return Ms(t,e)},updateQueryHandlerOptions:function(e){var t=nu.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=tu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,Ge(Ge({},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(ia,{class:eu(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;tr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=Kn(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 Xn(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:eu(this.$props.innerClass,"noResults")||null},[Yn(t)?t():t])}},computed:{hasCustomRenderer:function(){return Jn(this)}},defaultQuery:function(e,t){var n=null,r="or"===t.queryFormat?"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 o;if("or"===t.queryFormat)if(t.showMissing){var i,a,s=e.includes(t.missingLabel),u=[(a={},a[r]=(i={},i[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),i),a)];s&&(u=u.concat({bool:{must_not:{exists:{field:t.dataField}}}})),o={bool:{should:u}}}else{var l,c;(c={})[r]=((l={})[t.dataField]=e,l),o=c}else o={bool:{must:e.map((function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o}))}};n=e.length?o:null}return n&&t.nestedField&&(n={query:{nested:{path:t.nestedField,query:n}}}),n},generateQueryOptions:function(e){var t=Xs(e);return Ms(t,e)}},ru=yr(Zn((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]}}),{setQueryOptions:Ws,updateQuery:Gs,setCustomQuery:Zs,setDefaultQuery:Ys})(nu),{componentType:T.multiList,internalComponent:!0});function ou(){var e=Ke(["\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"]);return ou=function(){return e},e}function iu(){var e=Ke(["\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"]);return iu=function(){return e},e}function au(){var e=Ke(["\n\tbackground-color: ",";\n\tborder-color: ",";\n\tcolor: ",";\n\n\t&:hover,\n\t&:focus {\n\t\tbackground-color: ",";\n\t}\n"]);return au=function(){return e},e}function su(){var e=Ke(["\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"]);return su=function(){return e},e}nu.install=function(e){e.component(nu.name,ru)},nu.componentType=T.multiList;var uu=At(su()),lu=function(e){var t=e.theme;return At(au(),t.colors.backgroundColor,t.colors.borderColor,t.colors.textColor,t.colors.backgroundColor)},cu=Lt("button")(iu(),(function(e){return e.small?uu:null}),(function(e){return"dark"===e.themePreset&&lu})),du=Lt("span")(ou(),(function(e){return e.theme.colors.primaryColor}));function pu(){var e=Ke(["\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"]);return pu=function(){return e},e}function hu(){var e=Ke(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]);return hu=function(){return e},e}var fu=At(hu()),gu=Lt("span")(pu(),(function(e){return e.open?fu:null})),mu=Be.getClassName,yu={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:An.style,items:An.data,keyField:ft.string.def("key"),labelField:ft.string.def("label"),multi:An.bool,placeholder:An.string,returnsObject:An.bool,customLabelRenderer:An.func,hasCustomRenderer:An.bool,customRenderer:An.func,renderItem:An.func,renderNoResults:ft.any,handleChange:An.func,transformData:An.func,selectedItem:An.selectedValue,showCount:An.bool,single:An.bool,small:ft.bool.def(!1),themePreset:An.themePreset,showSearch:An.bool},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||String(t[a]).toLowerCase().includes(e.$data.searchTerm.toLowerCase()))}));return t(Oa,{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;return t("div",{class:sa},[t(cu,{on:Ge({},Ge({},v({onClick:e.toggle}))),class:mu(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(gu,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:aa(u,e.theme)+" "+(e.$props.small?"small":"")+" "+mu(e.$props.innerClass,"list")},[e.$props.showSearch?t(ia,{attrs:{id:e.$props.componentId+"-input",showIcon:!1,placeholder:"Type here to search...",value:e.$data.searchTerm,themePreset:u},style:{border:0,borderBottom:"1px solid #ddd"},class:mu(e.$props.innerClass,"input"),on:{change:e.handleInputChange}}):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:Ge({},r({item:n})),on:Ge({},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:mu(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(du,{class:mu(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)},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},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:mu(this.$props.innerClass,"noResults")||null},[Yn(t)?t():t])}}},vu=He.updateQuery,bu=He.setQueryOptions,_u=He.setCustomQuery,wu=He.setDefaultQuery,Ou=Be.getQueryOptions,Cu=Be.checkValueChange,Su=Be.checkPropChange,Pu=Be.getClassName,ku=Be.getOptionsFromQuery,$u=Be.isEqual,Iu=Be.getCompositeAggsQuery,Eu={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:An.func,className:ft.string.def(""),componentId:An.stringRequired,customQuery:An.func,dataField:An.stringRequired,defaultQuery:An.func,defaultValue:An.string,value:An.value,filterLabel:An.string,innerClass:An.style,placeholder:ft.string.def("Select a value"),react:An.react,renderLabel:An.func,render:An.func,renderItem:An.func,renderError:An.title,renderNoResults:ft.any,transformData:An.func,selectAllLabel:An.string,showCount:ft.bool.def(!0),showFilter:ft.bool.def(!0),size:ft.number.def(100),sortBy:ft.oneOf(["asc","desc","count"]).def("count"),title:An.title,URLParams:ft.bool.def(!1),showMissing:ft.bool.def(!1),missingLabel:ft.string.def("N/A"),showSearch:ft.bool.def(!1),showLoadMore:ft.bool.def(!1),loadMoreLabel:ft.oneOfType([ft.string,ft.any]).def("Load More"),nestedField:An.string},created:function(){rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),nr(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;Su(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){$u(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){or(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;return c&&this.error?Yn(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(Sa,{class:this.$props.className},[this.$props.title&&e(Pr,{class:Pu(this.$props.innerClass,"title")||""},[this.$props.title]),e(yu,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return Ge(Ge({},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,transformData:this.$props.transformData,footer:n&&!s&&e("div",{attrs:{css:En}},[e(In,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:d}})])):null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);Cu(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,r=Eu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=ku(o),nr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.singleDropdownList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=Eu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=ku(r(e,t)),rr(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.singleDropdownList})},generateQueryOptions:function(e,t){var n=Ou(e);return e.showLoadMore?Iu({query:n,props:e,after:t}):Ms(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Eu.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=ku(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,Ge(Ge({},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 Xn(r,this)}},computed:{hasCustomRenderer:function(){return Jn(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=Ou(e);return e.showLoadMore?Iu({query:n,props:e,after:t}):Ms(n,e)}},Tu=yr(Zn((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]}}),{setQueryOptions:bu,updateQuery:vu,setCustomQuery:_u,setDefaultQuery:wu})(Eu),{componentType:T.singleDropdownList,internalComponent:!0});Eu.install=function(e){e.component(Eu.name,Tu)},Eu.componentType=T.singleDropdownList;var Au=He.updateQuery,xu=He.setQueryOptions,Ru=He.setCustomQuery,ju=He.setDefaultQuery,Mu=Be.isEqual,Lu=Be.getQueryOptions,Qu=Be.checkValueChange,Vu=Be.checkPropChange,Du=Be.getClassName,Fu=Be.getOptionsFromQuery,Nu=Be.getCompositeAggsQuery,qu={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:An.func,className:ft.string.def(""),componentId:An.stringRequired,customQuery:An.func,dataField:An.stringRequired,defaultValue:An.stringArray,value:An.stringArray,defaultQuery:An.func,filterLabel:An.string,innerClass:An.style,placeholder:ft.string.def("Select values"),queryFormat:ft.oneOf(["and","or"]).def("or"),react:An.react,renderLabel:An.func,render:An.func,renderItem:An.func,renderError:An.title,renderNoResults:ft.any,transformData:An.func,selectAllLabel:An.string,showCount:ft.bool.def(!0),showFilter:ft.bool.def(!0),size:ft.number.def(100),sortBy:ft.oneOf(["asc","desc","count"]).def("count"),title:An.title,URLParams:ft.bool.def(!1),showMissing:ft.bool.def(!1),missingLabel:ft.string.def("N/A"),showSearch:ft.bool.def(!1),showLoadMore:ft.bool.def(!1),loadMoreLabel:ft.oneOfType([ft.string,ft.any]).def("Load More"),nestedField:An.string},created:function(){rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),nr(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])),Mu(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;Vu(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){Mu(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){or(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=[];return u&&this.error?Yn(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length?(this.$props.selectAllLabel&&(d=[{key:this.$props.selectAllLabel}]),e(Sa,{class:this.$props.className},[this.$props.title&&e(Pr,{class:Du(this.$props.innerClass,"title")||""},[this.$props.title]),e(yu,{attrs:{innerClass:this.$props.innerClass,items:[].concat(d,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return Ge(Ge({},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,transformData:this.$props.transformData,footer:n&&!c&&e("div",{attrs:{css:En}},[e(In,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=Kn(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],Ye(s,[o].map(Xe)));i=Ge({},u)}}else{if(i[e]){var l=i,c=(l[e],Ye(l,[e].map(Xe)));i=Ge({},c)}else i[e]=!0;if(o&&o in i){var d=i,p=(d[o],Ye(d,[o].map(Xe)));i=Ge({},p)}a=Object.keys(i)}Qu(n.componentId,a,n.beforeValueChange,(function(){r.currentValue=i,r.updateQueryHandler(a,n),r.$emit("valueChange",a),r.$emit("value-change",a)}))},updateDefaultQueryHandler:function(e,t){var n,r=qu.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{};o.query&&(r=o.query),n=Fu(o),nr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,n),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:T.multiDropdownList})},updateQueryHandler:function(e,t){var n,r=t.customQuery,o=qu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Fu(r(e,t)),rr(t.componentId,this.setCustomQuery,t,e));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams,componentType:T.multiDropdownList})},generateQueryOptions:function(e,t){var n=Lu(e);return e.showLoadMore?Nu({query:n,props:e,after:t}):Ms(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=qu.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Fu(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,Ge(Ge({},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 Xn(r,this)}},computed:{hasCustomRenderer:function(){return Jn(this)}},defaultQuery:function(e,t){var n=null,r="or"===t.queryFormat?"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 o;if("or"===t.queryFormat)if(t.showMissing){var i,a,s=e.includes(t.missingLabel),u=[(a={},a[r]=(i={},i[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),i),a)];s&&(u=u.concat({bool:{must_not:{exists:{field:t.dataField}}}})),o={bool:{should:u}}}else{var l,c;(c={})[r]=((l={})[t.dataField]=e,l),o=c}else o={bool:{must:e.map((function(e){var n,o;return(o={})[r]=((n={})[t.dataField]=e,n),o}))}};n=e.length?o:null}return n&&t.nestedField?{query:{nested:{path:t.nestedField,query:n}}}:n},generateQueryOptions:function(e,t){var n=Lu(e);return e.showLoadMore?Nu({query:n,props:e,after:t}):Ms(n,e)}},Uu=yr(Zn((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]}}),{setQueryOptions:xu,updateQuery:Au,setCustomQuery:Ru,setDefaultQuery:ju})(qu),{componentType:T.multiDropdownList,internalComponent:!0});qu.install=function(e){e.component(qu.name,Uu)},qu.componentType=T.multiDropdownList;var Hu=He.updateQuery,zu=He.setQueryOptions,Bu=He.setCustomQuery,Gu=Be.isEqual,Wu=Be.checkValueChange,Zu=Be.getClassName,Yu=Be.getOptionsFromQuery,Ku=Be.handleA11yAction,Xu={name:"ToggleButton",props:{componentId:An.stringRequired,data:An.data,dataField:An.stringRequired,defaultValue:An.stringOrArray,value:An.stringOrArray,filterLabel:An.string,nestedField:An.string,innerClass:An.style,multiSelect:An.bool,react:An.react,showFilter:An.bool,title:An.title,URLParams:An.bool,renderItem:An.func},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=Xu.parseValue(t,e);this.setValue(n),this.$data.currentValue.length&&this.handleToggle(this.$data.currentValue,!0,e,!1)},created:function(){rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(Xu.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){Gu(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)Gu(this.$data.currentValue,e)||Gu(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;Gu(n,this.selectedValue)||Gu(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){or(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?Xu.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);Wu(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=Xu.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,Yu(r(e,t))),rr(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){void 0===this.$props.value?this.handleToggle(e):this.$emit("change",e.value)},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(In,{class:Zu(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return Ku(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(Sa,{class:Sn},[this.$props.title&&t(Pr,{class:Zu(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}},Ju=yr(Zn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}}),{updateQueryHandler:Hu,setQueryOptions:zu,setCustomQuery:Bu})(Xu),{componentType:T.toggleButton});Xu.install=function(e){e.component(Xu.name,Ju)},Xu.componentType=T.toggleButton;var el=He.updateQuery,tl=He.setQueryOptions,nl=He.setCustomQuery,rl=He.setDefaultQuery,ol=Be.parseHits,il=Be.isEqual,al=Be.getCompositeAggsQuery,sl=Be.getOptionsFromQuery,ul=Be.getResultStats,ll={name:"ReactiveComponent",props:{componentId:An.stringRequired,aggregationField:An.string,aggregationSize:ft.number,size:ft.number.def(20),defaultQuery:An.func,customQuery:An.func,filterLabel:An.string,react:An.react,showFilter:ft.bool.def(!0),URLParams:ft.bool.def(!1),distinctField:An.string,distinctFieldConfig:An.props},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,rr(this.componentId,this.setCustomQuery,this.$props,void 0);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,a=t.URLParams,s=t.distinctField,u=t.distinctFieldConfig;if(this.config.enableAppbase&&this.aggregationField&&""!==this.aggregationField&&console.warn("Warning(ReactiveSearch): The `aggregationField` prop has been marked as deprecated, please use the `distinctField` prop instead."),this.config.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`."),n){var l=n(t),c=(l||{}).query,d=l?sl(l):null;d?this.setQueryOptions(r,Ge(Ge({},d),this.getAggsQuery()),!1):this.setQueryOptions(r,this.getAggsQuery(),!1),this.updateQuery({componentId:r,query:c,value:this.selectedValue||null,label:o,showFilter:i,URLParams:a})}this.setQuery=function(n){var r=n.options,o=Ye(n,["options"]);if(r&&e.setQueryOptions(t.componentId,Ge(Ge({},r),e.getAggsQuery()),!1),o&&o.query||r){var i=Ge({},r);o&&o.query&&(i.query=o.query),e.setCustomQuery(t.componentId,i)}e.updateQuery(Ge(Ge({},o),{},{componentId:t.componentId,label:t.filterLabel,showFilter:t.showFilter,URLParams:t.URLParams}))},t.defaultQuery&&(this.internalComponent=t.componentId+"__internal")},beforeMount:function(){if(this.internalComponent&&this.$props.defaultQuery){nr(this.componentId,this.setDefaultQuery,this.$props,void 0),this.$defaultQuery=this.$props.defaultQuery();var e=this.$defaultQuery||{},t=e.query,n=Ye(e,["query"]);n?this.setQueryOptions(this.internalComponent,Ge(Ge({},n),this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:t||null})}},watch:{hits:function(e,t){il(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){il(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){il(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){il(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){il(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){il(e,t)||this.$emit("data",this.getData())},total:function(e,t){il(e,t)||this.$emit("data",this.getData())},time:function(e,t){il(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!or(e,t,void 0,this.$props)){this.$defaultQuery=e();var n=this.$defaultQuery||{},r=n.query,o=Ye(n,["query"]);o?this.setQueryOptions(this.internalComponent,Ge(Ge({},o),this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),nr(this.componentId,this.setDefaultQuery,this.$props,void 0),this.updateQuery({componentId:this.internalComponent,query:r||null})}},customQuery:function(e,t){if(e&&!or(e,t,void 0,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.$props);var r=this.$customQuery||{},o=r.query,i=Ye(r,["query"]);i?this.setQueryOptions(n,Ge(Ge({},i),this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),rr(this.componentId,this.setCustomQuery,this.$props,void 0),this.updateQuery({componentId:n,query:o||null})}}},render:function(){var e=arguments[0];try{var t=this.$scopedSlots.default,n=this.error,r=this.isLoading,o=this.selectedValue,i=Ge(Ge({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:al({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=ol(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 ul(this)}}},cl=yr(Zn((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],config:e.config}}),{setQueryOptions:tl,updateQuery:el,setCustomQuery:nl,setDefaultQuery:rl})(ll),{componentType:T.reactiveComponent});ll.install=function(e){e.component(ll.name,cl)},ll.componentType=T.reactiveComponent;var dl=He.setValue,pl=He.clearValues,hl=Be.getClassName,fl=Be.handleA11yAction,gl={name:"SelectedFilters",props:{className:ft.string.def(""),clearAllLabel:ft.string.def("Clear All"),innerClass:An.style,showClearAll:ft.bool.def(!0),title:An.title},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});var n=this.renderFilters(),r=!!n.length;return t(Sa,{class:On(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(Pr,{class:hl(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r?t(In,{class:hl(this.$props.innerClass,"button")||"",on:Ge({},{click:this.clearValues,keypress:function(t){return fl(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(){this.clearValuesAction(),this.$emit("clear",null)},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(In,{class:hl(e.$props.innerClass,"button")||"",key:r+"-"+(o+1),on:Ge({},{click:function(){return e.remove(r,s)},keypress:function(t){return fl(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)}}},ml=Zn((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:pl,setValue:dl})(gl);gl.install=function(e){e.component(gl.name,ml)};var yl=He.updateQuery,vl=He.setQueryOptions,bl=He.setCustomQuery,_l=Be.isEqual,wl=Be.checkValueChange,Ol=Be.getClassName,Cl=Be.getOptionsFromQuery,Sl={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:An.func,className:ft.string.def(""),componentId:An.stringRequired,customQuery:An.func,data:An.data,dataField:An.stringRequired,defaultValue:An.string,value:An.value,filterLabel:An.string,innerClass:An.style,react:An.react,showFilter:ft.bool.def(!0),showRadio:ft.bool.def(!0),title:An.title,URLParams:ft.bool.def(!1),nestedField:An.string},created:function(){rr(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){_l(e,t)||this.setValue(e)},selectedValue:function(e){_l(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(Sa,{class:this.$props.className},[this.$props.title&&t(Pr,{class:Ol(this.$props.innerClass,"title")},[this.$props.title]),t(Rs,{class:Ol(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(As,{class:Ol(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:Ol(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=Sl.parseValue(e,t);wl(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,r=t.customQuery,o=Sl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Cl(r(e,t)),rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,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}},Pl=yr(Zn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}}),{updateQuery:yl,setQueryOptions:vl,setCustomQuery:bl})(Sl),{componentType:T.singleRange});Sl.install=function(e){e.component(Sl.name,Pl)},Sl.componentType=T.singleRange;var kl=He.updateQuery,$l=He.setQueryOptions,Il=He.setCustomQuery,El=Be.isEqual,Tl=Be.checkValueChange,Al=Be.getClassName,xl=Be.getOptionsFromQuery,Rl={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:An.func,className:ft.string.def(""),componentId:An.stringRequired,customQuery:An.func,data:An.data,dataField:An.stringRequired,defaultValue:An.stringArray,value:An.stringArray,filterLabel:An.string,innerClass:An.style,react:An.react,showFilter:ft.bool.def(!0),showCheckbox:ft.bool.def(!0),title:An.title,URLParams:ft.bool.def(!1),nestedField:An.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=Kn(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=Rl.parseValue(e,n);var s={};i.forEach((function(e){s[[e.label]]=!0})),a=r?s:Ge(Ge({},a),s)}else if(a[e]){i=i.filter((function(t){return t.label!==e}));var u=a,l=(u[e],Ye(u,[e].map(Xe)));a=l}else{var c,d=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,d),a=Ge(Ge({},a),{},((c={})[e]=!0,c))}else i=[],a={};Tl(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,r=t.customQuery,o=Rl.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=xl(r(e,t)),rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue));this.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,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){El(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){El(this.$data.currentValue,e)||this.selectItem(e)},customQuery:function(e,t){or(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},created:function(){rr(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(Sa,{class:this.$props.className},[this.$props.title&&t(Pr,{class:Al(this.$props.innerClass,"title")},[this.$props.title]),t(Rs,{class:Al(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(xs,{class:Al(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:Ge({},{checked:e.selectedValues[n.label]}),on:Ge({},{click:e.handleClick})}),t("label",{class:Al(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}},jl=yr(Zn((function(e,t){return{selectedValue:e.selectedValues[t.componentId]&&e.selectedValues[t.componentId].value||null,componentProps:e.props[t.componentId]}}),{updateQuery:kl,setQueryOptions:$l,setCustomQuery:Il})(Rl),{componentType:T.multiRange});Rl.install=function(e){e.component(Rl.name,jl)},Rl.componentType=T.multiRange;var Ml={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Pr,Cr([{},this.$props]),[t])},install:function(e){e.component(Ml.name,Ml)}},Ll={name:"ResultCardImage",props:{src:ft.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=Ye(t,["src"]);return e(Dr,Cr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Ll.name,Ll)}},Ql={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Cr([{},n]),[r])},install:function(e){e.component(Ql.name,Ql)}},Vl={name:"ResultCard",components:{ResultCardTitle:Ml,ResultCardImage:Ll,ResultCardDescription:Ql},props:{target:ft.string.def("_blank"),href:An.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=Ye(n,["href","target"]);return e(Fr,Cr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(Vl.name,Vl),e.component(Ml.name,Ml),e.component(Ll.name,Ll),e.component(Ql.name,Ql)}},Dl={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Cr([{},n]),[r])},install:function(e){e.component(Dl.name,Dl)}},Fl={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Cr([{},n]),[r])},install:function(e){e.component(Fl.name,Fl)}},Nl={name:"ResultListImage",props:{src:ft.string.isRequired,small:ft.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=Ye(t,["src","small"]);return e(xr,Cr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(Nl.name,Nl)}},ql={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(Pr,Cr([{},this.$props]),[t])},install:function(e){e.component(ql.name,ql)}},Ul={name:"ResultList",props:{href:An.string,target:ft.string.def("_blank")},components:{ResultListContent:Dl,ResultListDescription:Fl,ResultListImage:Nl,ResultListTitle:ql},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===Nl.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=Ye(t,["href","target"]),i=this.hasImage,a=this.isSmall,s=this.$slots.default;return e(Rr,Cr([{attrs:{href:n,image:i,small:a,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[s])},install:function(e){e.component(Ul.name,Ul),e.component(Dl.name,Dl),e.component(Fl.name,Fl),e.component(Nl.name,Nl),e.component(ql.name,ql)}},Hl={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))}};function zl(){var e=Ke(['\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}\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-color: #000;\n\t\tbackground-color: #000;\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']);return zl=function(){return e},e}var Bl=Lt("div")(zl()),Gl=function(){var e={NoSSR:Hl};try{var t=document.createElement("script");t.setAttribute("src","https://cdn.jsdelivr.net/npm/vue-slider-component@2.8.2/dist/index.js"),t.onload=function(){var t=a["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},Wl=He.updateQuery,Zl=He.setQueryOptions,Yl=He.setCustomQuery,Kl=Be.checkValueChange,Xl=Be.getClassName,Jl=Be.getOptionsFromQuery,ec=Be.isEqual,tc={name:"RangeSlider",components:Gl(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:An.func,className:ft.string.def(""),range:ft.shape({start:ft.integer.def(0),end:ft.integer.def(10)}),rangeLabels:An.rangeLabels,componentId:An.stringRequired,customQuery:An.func,data:An.data,dataField:An.stringRequired,defaultValue:An.range,value:An.range,filterLabel:An.string,innerClass:An.style,react:An.react,showFilter:ft.bool.def(!0),showCheckbox:ft.bool.def(!0),title:An.title,URLParams:ft.bool.def(!1),sliderOptions:ft.object.def({}),nestedField:An.string},methods:{handleSliderChange:function(e){void 0===this.$props.value?this.handleChange(e):this.$emit("change",{start:e[0],end:e[1]})},handleSlider:function(e){var t=this;clearTimeout(this.handleSliderChange._tId),this.handleSliderChange._tId=setTimeout((function(){t.handleSliderChange(e)}),100)},handleChange:function(e,t){var n=this;void 0===t&&(t=this.$props);Kl(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,r=t.customQuery,o=tc.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,n=Jl(r(e,t)),rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue));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.setQueryOptions(t.componentId,n),this.updateQuery({componentId:t.componentId,query:o,value:e,label:t.filterLabel,showFilter:i&&!d,URLParams:t.URLParams,componentType:T.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(tc.parseValue(e,this.$props))},value:function(e,t){ec(e,t)||this.handleChange(tc.parseValue(e,this.$props))},selectedValue:function(e){ec(this.$data.currentValue,e)||(this.handleChange(tc.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){or(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;"),rr(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(tc.parseValue(r,this.$props)):t?this.handleChange(tc.parseValue(t,this.$props)):n&&this.handleChange(tc.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(Sa,{class:this.$props.className},[this.$props.title&&e(Pr,{class:Xl(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(Hl,[e(Bl,{class:Xl(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},props:Ge({},this.$props.sliderOptions),on:Ge({},{input:this.handleSlider})}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:Xl(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:Xl(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?[e.start,e.end]:t.range?[t.range.start,t.range.end]:[]}},nc=yr(Zn((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]}}),{updateQuery:Wl,setQueryOptions:Zl,setCustomQuery:Yl})(tc),{componentType:T.rangeSlider});tc.install=function(e){e.component(tc.name,nc)},tc.componentType=T.rangeSlider;var rc=He.addComponent,oc=He.removeComponent,ic=He.watchComponent,ac=He.updateQuery,sc=He.setQueryListener,uc=He.setQueryOptions,lc=He.setComponentProps,cc=He.setCustomQuery,dc=He.updateComponentProps,pc=Be.checkValueChange,hc=Be.getClassName,fc=Be.getOptionsFromQuery,gc=Be.isEqual,mc=Be.checkSomePropChange,yc={name:"DynamicRangeSlider",components:Gl(),props:{beforeValueChange:An.func,className:ft.string.def(""),rangeLabels:An.func,componentId:An.stringRequired,customQuery:An.func,data:An.data,dataField:An.stringRequired,defaultValue:An.func,filterLabel:An.string,innerClass:An.style,react:An.react,showFilter:ft.bool.def(!0),showCheckbox:ft.bool.def(!0),title:An.title,URLParams:ft.bool.def(!1),sliderOptions:ft.object.def({}),nestedField:An.string},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),rr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},mounted:function(){this.setReact()},beforeMount:function(){this.addComponent(this.$props.componentId),this.addComponent(this.internalRangeComponent),Array.isArray(this.selectedValue)?this.handleChange(this.selectedValue):this.selectedValue&&this.handleChange(yc.parseValue(this.selectedValue,this.$props)),this.updateRangeQueryOptions()},beforeUpdate:function(){this.currentValue||this.setDefaultValue(this.range)},beforeDestroy:function(){this.removeComponent(this.$props.componentId),this.removeComponent(this.internalRangeComponent)},methods:{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.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(e){this.handleChange(e.currentValue)},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]];pc(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,n=yc.defaultQuery(e,this.$props);this.$props.customQuery&&(n=(this.$props.customQuery(e,this.$props)||{}).query,t=fc(this.$props.customQuery(e,this.$props)),rr(this.componentId,this.setCustomQuery,this.$props,e));var r=this.range||{start:e[0],end:e[1]},o=r.start,i=r.end,a=e[0],s=e[1],u=a===o&&s===i;this.setQueryOptions(this.$props.componentId,t),this.updateQuery({componentId:this.$props.componentId,query:n,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!u,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=er(e);mc(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(!gc(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.handleChange(yc.parseValue(t,this.$props))}},range:function(e,t){if(!gc(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){or(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)}},render:function(){var e=arguments[0];if(!this.range)return null;var t=this.range,n=t.start,r=t.end;return e(Sa,{class:this.$props.className},[this.$props.title&&e(Pr,{class:hc(this.$props.innerClass,"title")},[this.$props.title]),e(Hl,[e(Bl,{class:hc(this.$props.innerClass,"slider")},[e("vue-slider-component",{attrs:{value:[Math.max(n,this.currentValue[0]),Math.min(r,this.currentValue[1])],min:Math.min(n,this.currentValue[0]),max:Math.max(r,this.currentValue[1]),dotSize:20,height:4,"enable-cross":!1},on:{"drag-end":this.handleSlider},props:Ge({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:hc(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:hc(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.start,e.end]}},vc=Zn((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]}}),{addComponent:rc,removeComponent:oc,updateQuery:ac,watchComponent:ic,setQueryListener:sc,setQueryOptions:uc,setComponentProps:lc,setCustomQuery:cc,updateComponentProps:dc})(yc);yc.install=function(e){e.component(yc.name,vc)},yc.componentType=T.dynamicRangeSlider;var bc=Be.getSearchState,_c=function(e){return Ge(Ge({},e),{},{props:e.componentProps})},wc=function(e,t){void 0===t&&(t={});var n,r=t.componentIds;if("string"==typeof r)return(n={})[r]=e[r],n;if(r instanceof Array){var o={};return r.forEach((function(t){o[t]=e[t]})),o}return e},Oc=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return Ge(Ge({},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))}),{})},Cc={name:"StateProvider",props:{onChange:ft.func,componentIds:ft.oneOfType([ft.string,ft.arrayOf(ft.string)]),includeKeys:ft.arrayOf(ft.string).def(["hits","value","aggregations","error"]),strict:ft.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},mounted:function(){this.searchState=Oc(bc(_c(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",e,t)},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=Oc(bc(_c(this.searchStateProps)),this.includeKeys))}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e}):null}},Sc=Zn((function(e,t){return{selectedValues:wc(e.selectedValues,t),queryLog:wc(e.queryLog,t),dependencyTree:wc(e.dependencyTree,t),componentProps:wc(e.props,t),hits:wc(e.hits,t),aggregations:wc(e.aggregations,t),isLoading:wc(e.isLoading,t),error:wc(e.error,t),promotedResults:wc(e.promotedResults,t),customData:wc(e.customData,t),settings:wc(e.settings,t),rawData:wc(e.rawData,t)}}),{})(Cc);Cc.install=function(e){e.component(Cc.name,Sc)};var Pc=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(Pc);var kc=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(kc);var $c=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=kc)&&n.__esModule?n:{default:n}}));r($c);var Ic=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(Ic);var Ec=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(Ec);var Tc=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=Ec)&&n.__esModule?n:{default:n};function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}}));r(Tc);Tc.getPropsValues,Tc.bindProps;var Ac=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})),{}}}})),xc=r(Ac),Rc=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(Rc);var jc=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,Tc.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,Tc.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,Tc.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(Ic),r=i(Ac),o=i(Rc);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(jc);var Mc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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(Mc);var Lc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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(Lc);var Qc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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})),Vc=r(Qc),Dc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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(Dc);var Fc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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(Fc);var Nc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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(Nc);var qc=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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(qc);var Uc,Hc=(Uc=require("../components-implementation/drawing-manager")).default||Uc;Hc.render=function(e,n,r,o,i,a){return t.openBlock(),t.createBlock("div",null,[t.renderSlot(e.$slots,"default",{setDrawingMode:e.setDrawingMode,deleteSelection:e.deleteSelection})])},Hc.__file="node_modules/gmap-vue/dist/components/drawing-manager.vue";var zc=Object.freeze({__proto__:null,default:Hc}),Bc=function(e){return e.default||e}(require("../components-implementation/info-window")),Gc={ref:"flyaway"};Bc.render=function(e,n,r,o,i,a){return t.openBlock(),t.createBlock("div",null,[t.createVNode("div",Gc,[t.createCommentVNode(" so named because it will fly away to another component "),t.renderSlot(e.$slots,"default")],512)])},Bc.__file="node_modules/gmap-vue/dist/components/info-window.vue";var Wc=Object.freeze({__proto__:null,default:Bc}),Zc=function(e){return e.default||e}(require("../components-implementation/map")),Yc={class:"vue-map-container"},Kc={ref:"vue-map",class:"vue-map"},Xc={class:"vue-map-hidden"};function Jc(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))}}Jc("\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"),Zc.render=function(e,n,r,o,i,a){return t.openBlock(),t.createBlock("div",Yc,[t.createVNode("div",Kc,null,512),t.createVNode("div",Xc,[t.renderSlot(e.$slots,"default")]),t.renderSlot(e.$slots,"visible")])},Zc.__file="node_modules/gmap-vue/dist/components/map.vue";var ed=Object.freeze({__proto__:null,default:Zc}),td=function(e){return e.default||e}(require("../components-implementation/street-view-panorama")),nd={class:"vue-street-view-pano-container"},rd={ref:"vue-street-view-pano",class:"vue-street-view-pano"};Jc("\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"),td.render=function(e,n,r,o,i,a){return t.openBlock(),t.createBlock("div",nd,[t.createVNode("div",rd,null,512),t.renderSlot(e.$slots,"default")])},td.__file="node_modules/gmap-vue/dist/components/street-view-panorama.vue";var od=Object.freeze({__proto__:null,default:td}),id=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(id);var ad=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=id)&&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,Tc.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,Tc.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})),sd=r(ad);sd.render=function(e,n,r,o,i,a){return t.openBlock(),t.createBlock("label",null,[t.createVNode("span",{textContent:t.toDisplayString(e.label)},null,8,["textContent"]),t.createVNode("input",{type:"text",placeholder:e.placeholder,class:e.className,ref:"input"},null,10,["placeholder"])])},sd.__file="node_modules/gmap-vue/dist/components/place-input.vue";var ud=Object.freeze({__proto__:null,default:sd,__moduleExports:ad}),ld=function(e){return e.default||e}(require("../components-implementation/autocomplete")),cd={key:0};ld.render=function(e,n,r,o,i,a){return e.$scopedSlots.input?(t.openBlock(),t.createBlock("span",cd,[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.createBlock("input",t.mergeProps({key:1,ref:"input"},e.$attrs,t.toHandlers(e.$listeners)),null,16))},ld.__file="node_modules/gmap-vue/dist/components/autocomplete.vue";var dd=Object.freeze({__proto__:null,default:ld}),pd=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(pd);var hd=i(zc),fd=i(Wc),gd=i(ed),md=i(od),yd=i(ud),vd=i(dd),bd=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?w(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({installComponents:!0,autobindAllEvents:!1},t),C=new e({data:{gmapApi:null}});var y=new e,v=(0,r.default)(n.default,C)(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 C.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=_(Pc),r=_($c),o=_(Mc),i=_(Lc),a=_(Qc),s=_(Dc),u=_(Fc),l=_(Nc),c=_(qc),d=_(hd),p=_(fd),h=_(gd),f=_(md),g=_(yd),m=_(vd),y=_(Ac),v=_(jc),b=_(pd);function _(e){return e&&e.__esModule?e:{default:e}}function w(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 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.Cluster=void 0;var C=null})),_d=r(bd),wd=bd.install,Od=bd.gmapApi,Cd=bd.Cluster,Sd=Object.freeze({__proto__:null,default:_d,__moduleExports:bd,install:wd,gmapApi:Od,Cluster:Cd}),Pd=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(Pd);for(var kd=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(Ic),r=s(pd),o=s(Pd),i=s(Ec),a=s(Rc);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,Tc.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,Tc.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}))),$d="0123456789bcdefghjkmnpqrstuvwxyz",Id={},Ed=0;Ed<$d.length;Ed++)Id[$d.charAt(Ed)]=Ed;var Td=[0,5,7,8,11,12,13,15,16,17,18],Ad=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=Td[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=$d[c];s.push(g),u=0,c=0}return s.join("")},xd=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},Rd=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=Id[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]},jd=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=Md(e,2*(s-u)-1),0===Md(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 Md(e,t){return e/Math.pow(2,t)&1}var Ld=function(e){var t=Rd(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}}},Qd=function(e,t){var n=jd(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}}},Vd=function(e,t){var n=Ld(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=Fd(o),r=Nd(r),Ad(r,o,e.length)},Dd=function(e,t,n){var r=Qd(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=Fd(i),o=Nd(o),xd(o,i,n)};function Fd(e){return e>180?e%180-180:e<-180?180+e%180:e}function Nd(e){return e>90?90:e<-90?-90:e}var qd={ENCODE_AUTO:"auto",encode:Ad,encode_uint64:xd,encode_int:xd,decode:Ld,decode_int:Qd,decode_uint64:Qd,decode_bbox:Rd,decode_bbox_uint64:jd,decode_bbox_int:jd,neighbor:Vd,neighbor_int:Dd,neighbors:function(e){var t,n,r=e.length,o=Ld(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=Fd(n=a+o*u),t=Nd(t),Ad(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=Qd(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=Fd(r=a+o*u),n=Nd(n),xd(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=Ad(e,t,o=o||9),a=Ad(n,r,o),s=Ld(i),u=2*s.error.latitude,l=2*s.error.longitude,c=Rd(i),d=Rd(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(Vd(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=xd(e,t,o=o||52),a=xd(n,r,o),s=Qd(i,o),u=2*s.error.latitude,l=2*s.error.longitude,c=jd(i,o),d=jd(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(Dd(i,[g,m],o));return f}},Ud=He.setStreaming,Hd=He.setQueryOptions,zd=He.updateQuery,Bd=He.loadMore,Gd=He.setValue,Wd=He.updateComponentProps,Zd=He.setDefaultQuery,Yd=He.recordResultClick,Kd=He.setMapData,Xd=Be.isEqual,Jd=Be.getQueryOptions,ep=Be.getClassName,tp=Be.parseHits,np=Be.getOptionsFromQuery,rp=Be.getResultStats,op={lat:37.7749,lng:122.4194},ip={width:"100%",height:"100vh",position:"relative"};function ap(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 Ge(Ge({},e),{},{lat:parseFloat((e.lat+o).toFixed(n))})}function sp(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=qd.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var up={name:"ReactiveMap",props:{className:An.string,componentId:An.stringRequired,dataField:An.stringRequired,react:An.react,size:An.number,sortBy:An.sortBy,URLParams:An.bool,autoCenter:An.bool,getMapRef:ft.func.isRequired,center:An.location,defaultCenter:An.location,defaultPin:An.string,defaultZoom:ft.number.def(13),markerProps:An.props,defaultQuery:An.func,innerClass:An.style,loader:An.title,render:An.func,renderItem:An.func,renderError:An.title,pages:ft.number.def(5),currentPage:ft.number.def(0),pagination:An.bool,showMarkers:An.bool,defaultSearchAsMove:An.bool,showSearchAsMove:An.bool,defaultRadius:An.number,unit:An.string,autoClosePopover:An.bool,renderMap:ft.func.isRequired,renderPopover:ft.func,calculateMarkers:ft.func},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,preserveCenter:!1,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 Ge(Ge({},rp(this)),{},{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return Jn(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(!or(e,t,null,this.$props)){var n=Jd(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),np(this.$defaultQuery)&&(n=Ge(Ge({},n),np(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!i);this.setDefaultQueryForRSAPI(),this.props.setMapData(this.componentId,i,!0,!0),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){Xd(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){Xd(e,t)||this.$emit("data",this.getData())},time:function(e,t){Xd(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(!Xd(e,t)){var r=this.promotedResults,o=this.hits,i=tp(o)||[],a=tp(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 Ge(Ge({},e),{},((t={})[n.dataField]=sp(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(!Xd(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(op)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=Ge({},e),i=t.parseLocation(e[t.dataField]),a=JSON.stringify(i),s=n[a]||0;o[t.dataField]=s?ap(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=sp(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.preserveCenter){var r=n.getCenter();return setTimeout((function(){t.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.preserveCenter=!0,this.setGeoQuery(!0)):this.zoom=e,t!==e&&this.$emit("zoom-changed",e)}},handleOnDragEnd:function(){this.searchAsMove&&(this.preserveCenter=!0,this.setGeoQuery(!0)),this.$emit("drag-end")},handlePreserveCenter:function(e){this.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.markerProps,a=this.renderItem;return{resultsToRender:e,center:this.getCenter(e),getPosition:this.getPosition,zoom:this.zoom,renderItem:a,showMarkers:t,defaultPin:n,renderPopover:r,autoClosePopover:o,renderSearchAsMove:this.renderSearchAsMove,markerProps:i,handlePreserveCenter:this.handlePreserveCenter,preserveCenter:this.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=tp(o)||[],a=tp(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=Ge({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return Xn(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=Jd(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,Ge(Ge({},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();if(this.mapBoxBounds){var t,n={geo_bounding_box:(t={},t[this.dataField]=this.mapBoxBounds,t)},r=e,o=r.query,i=Ye(r,["query"]);o&&(e=Ge({query:{must:[n,o]}},i))}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=Jd(this.$props);this.from=e,this.loadMoreAction(this.componentId,Ge(Ge({},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 Ge(Ge({},e),{},{_click_id:t+n})}))},toggleSearchAsMove:function(){this.searchAsMove=!this.searchAsMove},renderErrorComponent:function(){var e=this.$scopedSlots.renderError||this.$props.renderError;return e&&this.error&&!this.isLoading?Yn(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:ep(this.innerClass,"checkboxContainer")||null}},[e(xs,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:ep(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:ep(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},["Search as I move the map"])]):null},renderPagination:function(){return(0,this.$createElement)(Mn,{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=Jd(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=Ge(Ge({},t),np(this.$defaultQuery)),this.$defaultQuery.sort&&(t.sort=this.$defaultQuery.sort);this.setDefaultQueryForRSAPI(),this.setMapData(this.componentId,this.$defaultQuery.query,!0,!1)}else{var n=this.getGeoDistanceQuery();if(n){var r=!!this.center,o=this.searchAsMove,i=this.center||this.defaultCenter,a=this.getArrPosition(i),s={distance:this.defaultRadius,coordinates:a.lat+", "+a.lon};this.setMapData(this.componentId,n,r,o,s)}}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:Ge(Ge({},ip),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])}},lp=yr(Zn((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:Bd,setPageURL:Gd,setQueryOptions:Hd,setStreaming:Ud,updateQuery:zd,updateComponentProps:Wd,setDefaultQuery:Zd,recordResultClick:Yd,setMapData:Kd})(up),{componentType:T.reactiveMap,internalComponent:!0});up.install=function(e){e.component(up.name,lp)},up.componentType=T.reactiveMap;var cp=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};function dp(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push(n+":"+e[n]),t}),[]).join(";")}function pp(e){return e?e+"px":void 0}var hp=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}We(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="'+dp({position:"absolute",top:pp(this.anchorText_[0]),left:pp(this.anchorText_[1]),color:this.style.textColor,"font-size":pp(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:pp(this.style.width),"line-height":pp(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:pp(this.style.width),height:pp(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=dp(Object.assign({position:"absolute",top:pp(n),left:pp(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 dp({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:pp(e.y),left:pp(e.x),width:pp(this.style.width),height:pp(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}(cp),fp=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 hp(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}(),gp=function(e,t,n){return void 0!==e[t]?e[t]:n},mp=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_=gp(i.options,"zoomOnClick",!0),i.averageCenter_=gp(i.options,"averageCenter",!1),i.ignoreHidden_=gp(i.options,"ignoreHidden",!1),i.enableRetinaIcons_=gp(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}We(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 fp(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}(cp);mp.BATCH_SIZE=2e3,mp.BATCH_SIZE_IE=500,mp.IMAGE_PATH="../images/m",mp.IMAGE_EXTENSION="png",mp.IMAGE_SIZES=[53,56,66,78,90];var yp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(mp),r=o(jc);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}))),vp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=jc)&&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}))),bp={name:"MarkerWithLabel",props:{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:ft.func.isRequired,handleMouseOver:ft.func,handleFocus:ft.func,handleMouseOut:ft.func,handleBlur:ft.func,handleClick:ft.func},data:function(){return{opacity:.01}},mixins:[xc],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(t){var n;return(n=e.call(this)||this).setMap(t),n.draw=function(){return n.repaint()},n.setPosition=function(){return n.repaint()},n}We(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,focus:this.handleFocus,mouseout:this.handleMouseOut,blur:this.handleBlur,click:this.handleClick}},[this.renderMarker()])}};function _p(){var e=Ke(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]);return _p=function(){return e},e}function wp(){var e=Ke(["\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"]);return wp=function(){return e},e}function Op(){var e=Ke(["\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"]);return Op=function(){return e},e}var Cp=Lt("div")(Op()),Sp=Lt("div")(wp()),Pp=At(_p()),kp=He.recordResultClick,$p={name:"GoogleMapMarker",props:{index:ft.number,marker:ft.object.isRequired,getPosition:ft.func.isRequired,markerOnTop:ft.string,defaultPin:ft.string,renderItem:ft.func,setMarkerOnTop:ft.func.isRequired,setOpenMarkers:ft.func.isRequired,handlePreserveCenter:ft.func.isRequired,autoClosePopover:ft.bool,openMarkers:ft.object,renderPopover:ft.func},methods:{increaseMarkerZIndex:function(){var e=this.$props,t=e.setMarkerOnTop,n=e.handlePreserveCenter;t(e.marker._id),n(!0)},removeMarkerZIndex:function(){var e=this.$props,t=e.setMarkerOnTop,n=e.handlePreserveCenter;t(null),n(!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):Ge(Ge({},o),{},((t={})[u]=!0,t))),s(!0),this.triggerAnalytics()},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],Ye(i,[a].map(Xe)));t(r?{}:s),o(!0)},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(vp,{attrs:{zIndex:500,position:o.position,options:o.defaultOptions},key:e._id+"-InfoWindow",on:{closeclick:function(){return n.closeMarker()}}},[r("div",[s(e)])]):null}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.getPosition,o=n.renderItem,i=n.defaultPin,a=n.autoClosePopover,s=n.handlePreserveCenter,u=n.renderPopover,l=n.markerProps,c=n.marker,d=n.markerOnTop,p={};if(d===c._id&&(p.zIndex=window.google.maps.Marker.MAX_ZINDEX+1),o){var h=o(c);if("label"in h)return t(bp,{key:c._id,attrs:{marker:r(c),labelAnchor:new window.google.maps.Point(0,30),handleMouseOver:this.increaseMarkerZIndex,handleFocus:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleBlur:this.removeMarkerZIndex,handleClick:this.openMarker,zIndex:p.zIndex,renderMarker:function(){return t("div",{attrs:{css:Pp}},[t(Cp,[h.label]),t(Sp),u?e.renderPopoverClick(c,!0):null])}},props:Ge({},l)});if(!("icon"in h))return t(bp,{key:c._id,attrs:{marker:r(c),handleClick:this.openMarker,handleMouseOver:this.increaseMarkerZIndex,handleFocus:this.increaseMarkerZIndex,handleMouseOut:this.removeMarkerZIndex,handleBlur:this.removeMarkerZIndex,zIndex:p.zIndex,renderMarker:function(){return t("div",{attrs:{css:Pp}},["function"==typeof h.custom?h.custom(c):h.custom,u?e.renderPopoverClick(c,!0):null])}},props:Ge({},l)});p.icon=h.icon}else i&&(p.icon={url:i});return t(Vc,{key:c._id,attrs:{icon:p.icon,zIndex:p.zIndex,position:r(c)},on:{click:function(){return e.openMarker(c._id,a||!1,s)},mouseover:this.increaseMarkerZIndex,focus:this.increaseMarkerZIndex,mouseout:this.removeMarkerZIndex,blur:this.removeMarkerZIndex},props:Ge({},l)},[u?this.renderPopoverClick(c):null])}},Ip=Zn((function(){return null}),{recordResultClick:kp})($p),Ep={name:"GoogleMapMarkers",props:{resultsToRender:ft.array,getPosition:ft.func,renderItem:ft.func,defaultPin:ft.string,autoClosePopover:ft.bool,handlePreserveCenter:ft.func,renderPopover:ft.func,markerProps:ft.object,showMarkerClusters:ft.bool},data:function(){return{markerOnTop:null,openMarkers:{}}},methods:{setMarkerOnTop:function(e){this.markerOnTop=e},setOpenMarkers:function(e){this.openMarkers=e}},render:function(){var e=arguments[0],t=this.$props.resultsToRender,n=this.markerOnTop,r=this.openMarkers,o={markerOnTop:n,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};return this.showMarkerClusters?e(yp,[t.map((function(t,n){return e(Ip,{attrs:{index:n,marker:t},props:Ge({},o)})}))]):e("div",[t.map((function(t,n){return e(Ip,{attrs:{index:n,marker:t},props:Ge({},o)})}))])}},Tp={name:"ReactiveGoogleMap",props:{className:An.string,componentId:An.stringRequired,dataField:An.stringRequired,defaultQuery:An.func,loader:An.title,defaultZoom:ft.number.def(13),react:An.react,size:An.number,sortBy:An.sortBy,URLParams:An.bool,mapProps:ft.object,showMarkers:ft.bool.def(!0),showMarkerClusters:ft.bool.def(!1),searchAsMove:ft.bool.def(!1),markerProps:An.props,renderItem:ft.func,showSearchAsMove:An.bool.def(!0),autoClosePopover:ft.bool,pagination:ft.bool,defaultPin:ft.string,autoCenter:ft.bool,defaultCenter:An.location,center:An.location,defaultRadius:An.number,unit:An.string,pages:ft.number.def(5),calculateMarkers:ft.func},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.markerProps,p=e.autoClosePopover,h=e.renderPopover,f=e.defaultPin,g=this.$createElement;return g("div",{style:{width:"100%",height:"100%",position:"relative"}},[g(kd,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:Ge({},this.mapProps),on:{zoom_changed:i,dragend:a,idle:s}},[this.showMarkers?g(Ep,{attrs:{resultsToRender:n,getPosition:c,markerProps:d,handlePreserveCenter:l,renderItem:this.$scopedSlots.renderItem?function(){return{custom:t.$scopedSlots.renderItem}}:this.renderItem,defaultPin:f,autoClosePopover:p,renderPopover:h,showMarkerClusters:this.showMarkerClusters}}):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=this,t=arguments[0];return t(lp,Cr([{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,showMarkers:this.showMarkers,markerProps:this.markerProps,autoClosePopover:this.autoClosePopover,defaultPin:this.defaultPin,defaultQuery:this.defaultQuery,renderPopover:this.$scopedSlots.renderPopover?function(t){return e.$scopedSlots.renderPopover(t)}:null,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(Tp.name,Tp),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(Sd,{load:{key:t.key,libraries:"places"},installComponents:!1})}};Tp.componentType=T.reactiveMap;var Ap=[T.dataSearch,T.categorySearch],xp=[T.reactiveList,T.reactiveMap,T.singleList,T.multiList,T.tagCloud].concat(Ap),Rp=[T.numberBox,T.ratingsFilter],jp=[T.reactiveList,T.reactiveMap];function Mp(e,t,n){if(jp.includes(n))return e.defaultQuery?e.defaultQuery():{};var r=function(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}(t,e);if(e.customQuery){var o=e.customQuery(r,e);return o&&o.query}return e.source.defaultQuery?e.source.defaultQuery(r,e):{}}function Lp(){var e=Ke(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"]);return Lp=function(){return e},e}function Qp(){var e=Ke(["\n\tcolor: ",";\n"]);return Qp=function(){return e},e}var Vp=function(e){var t=e.theme;return At(Qp(),t.colors.alertColor)},Dp=Lt("div")(Lp(),(function(e){return e.alert&&Vp})),Fp=(Be.checkValueChange,Be.getClassName),Np=(Be.getOptionsFromQuery,Be.isEqual),qp={name:"RangeInput",components:{RangeSlider:nc},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:An.string,default:""},defaultValue:An.range,validateRange:An.func,value:An.range,dataField:An.stringRequired,innerClass:An.style,range:{types:An.range,default:function(){return{start:0,end:10}}},rangeLabels:An.rangeLabels,stepValue:An.number,componentStyle:An.style,componentId:An.stringRequired,includeNullValues:An.bool,beforeValueChange:An.func,customQuery:An.func,data:An.data,filterLabel:An.string,react:An.react,showFilter:ft.bool.def(!0),showCheckbox:ft.bool.def(!0),title:An.title,URLParams:ft.bool.def(!1),sliderOptions:ft.object.def({}),nestedField:An.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){if(this.shouldUpdate(e)&&!Np(e,this.currentValue))switch(t){case"change":e||(e={start:this.$props.range?this.$props.range.start:0,end:this.$props.range?this.$props.range.end:10}),this.$data.currentValue=Ge({},e),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=Ge({},e)}},handleOnChange:function(e){this.handleChange(e,"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){Np(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)},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,_=t.URLParams,w=t.sliderOptions,O=t.nestedField;return e(Sa,{style:l,class:n},[e(nc,{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:_,sliderOptions:w,nestedField:O},on:{change:this.handleOnChange,"value-change":this.handleValueChange}}),e(oo,{class:Fp(s,"input-container")||""},[e(oo,{attrs:{direction:"column",flex:2}},[e(ia,{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:Fp(s,"input")||"",domProps:Ge({},{value:this.currentValue.start})}),!this.isStartValid&&e(Dp,{attrs:{alert:!0}},["Input range is invalid"])]),e(oo,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(oo,{attrs:{direction:"column",flex:2}},[e(ia,{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:Fp(s,"input")||"",domProps:Ge({},{value:this.currentValue.end})}),!this.isEndValid&&e(Dp,{attrs:{alert:!0}},["Input range is invalid"])])])])}},Up=yr(Zn((function(e,t){return{themePreset:e.config.themePreset}}),{})(qp),{componentType:T.rangeInput});qp.install=function(e){e.component(qp.name,Up)},qp.componentType=T.rangeInput;var Hp=[Eo,Vl,Ul,qi,ys,zs,nu,Sl,Rl,tc,yc,ll,gl,Xu,Eu,qu,Cc,qp];function zp(e){Hp.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&zp(window.Vue);var Bp={version:"1.16.0-alpha.6",install:zp};e.DataSearch=ys,e.DynamicRangeSlider=yc,e.MultiDropdownList=qu,e.MultiList=nu,e.MultiRange=Rl,e.RangeInput=qp,e.RangeSlider=tc,e.ReactiveBase=qi,e.ReactiveComponent=ll,e.ReactiveGoogleMap=Tp,e.ReactiveList=Eo,e.ResultCard=Vl,e.ResultList=Ul,e.SelectedFilters=gl,e.SingleDropdownList=Eu,e.SingleList=zs,e.SingleRange=Sl,e.StateProvider=Cc,e.ToggleButton=Xu,e.default=Bp,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={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:n.headers||{},analyticsConfig:n.appbaseConfig||null},s=Ei(a),u=[],l={},c={},d={},p={},h={},f=[],g={},m=[],y={},v={},b={},_={},w={},O={};e.forEach((function(e){var n=e.source.componentType;u=[].concat(u,[e.componentId]);var r={};Object.keys(e).forEach((function(t){A.includes(t)&&(r[t]=e[t])}));var o=!1;e.customQuery&&"function"==typeof e.customQuery&&(_[e.componentId]=e.customQuery(e.value,r)),e.defaultQuery&&"function"==typeof e.defaultQuery&&(w[e.componentId]=e.defaultQuery(e.value,r));var i=jp.includes(n),a=e.componentId+"__internal",s=e.filterLabel||e.componentId,d=function(e,t,n){if(!e)return n;if(e[t])try{return JSON.parse(e[t])}catch(r){return e[t]||n}return n}(t,e.componentId,e.value||e.defaultValue),f=void 0===e.showFilter||e.showFilter;if(Rp.includes(n)&&(f=!1),l=D(l,{type:"SET_VALUE",component:e.componentId,label:s,value:d,showFilter:f,URLParams:e.URLParams||!1}),xp.includes(n)){var g=e.source.generateQueryOptions?e.source.generateQueryOptions(e):null,m={};if(Ap.includes(n)&&e.highlight&&(m=e.source.highlightQuery(e)),g&&Object.keys(g).length||m&&Object.keys(m).length){var y=g||{},v=y.aggs,b=y.size,C=Ye(y,["aggs","size"]);if(v&&Object.keys(v).length&&(o=!0,p=I(p,{type:"SET_QUERY_OPTIONS",component:a,options:{aggs:v,size:void 0===b?100:b}})),C&&Object.keys(C).length||m&&Object.keys(m).length){C||(C={}),m||(m={});var P=Ge(Ge(Ge({},C),m),{},{size:b});if(o&&(P=Ge(Ge({},C),m)),i){var $=e.currentPage?e.currentPage-1:0;l[e.componentId]&&l[e.componentId].value&&($=l[e.componentId].value-1||0);var E=e.size||10,T=$*E;r.from=T,P=Ge(Ge(Ge({},P),m),{},{size:E,from:T})}p=I(p,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:Ge({},P)})}}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Oe(x,a)),h=S(h,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(i){var R=Mp(e,null,n).query;c=k(c,{type:"SET_QUERY",component:a,query:R})}else c=k(c,{type:"SET_QUERY",component:e.componentId,query:Mp(e,d,n)});r.componentType=n,O[e.componentId]=r})),b={components:u,dependencyTree:h,queryList:c,queryOptions:p,selectedValues:l,internalValues:{},props:O,customQueries:_,defaultQueries:w},e.forEach((function(e){var t=we(e.componentId,h,c,p),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:{}}),m=[].concat(m,[e.componentId]);var s=Ge(Ge({query:Ge({},r)},o),p[e.componentId]);if(d=Ge(Ge({},d),{},((a={})[e.componentId]=s,a)),n.enableAppbase){var u,l=ke(e.componentId,Pe(b,e.componentId,p&&p[e.componentId]?{from:p[e.componentId].from}:null));if(l)g=Ge(Ge(Ge({},g),((u={})[e.componentId]=l,u)),Se(b,e.componentId,m))}else f=[].concat(f,[{preference:e.componentId},s])}})),b.queryLog=d;var C=function(e,t){return a.transformResponse&&"function"==typeof a.transformResponse?a.transformResponse(e,t):new Promise((function(t){return t(e)}))},P=function(e){var t=m.map((function(t,n){return new Promise((function(r,o){C(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(v=Ge(Ge({},v),{},((o={})[t]=e.aggregations,o)));y=Ge(Ge({},y),{},((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(){b=Ge(Ge({},b),{},{hits:y,aggregations:v}),r(b)}))};if(a.graphQLUrl){(function(e){if(a.transformRequest&&"function"==typeof a.transformRequest){var t=a.transformRequest(e);return t instanceof Promise?t:Promise.resolve(t)}return Promise.resolve(e)})(f).then((function(e){Re(a.graphQLUrl,a.url,a.credentials,a.app,e).then((function(e){P(e)})).catch((function(e){return o(e)}))})).catch((function(e){return o(e)}))}else if(n.enableAppbase&&Object.keys(g).length){f=Object.keys(g).map((function(e){return g[e]}));var $={};a.analyticsConfig&&($.recordAnalytics=Ee(a.analyticsConfig.recordAnalytics)?a.analyticsConfig.recordAnalytics:void 0,$.userId=Ee(a.analyticsConfig.userId)?a.analyticsConfig.userId:void 0,$.enableQueryRules=Ee(a.analyticsConfig.enableQueryRules)?a.analyticsConfig.enableQueryRules:void 0,$.customEvents=Ee(a.analyticsConfig.customEvents)?a.analyticsConfig.customEvents:void 0),s.reactiveSearchv3(f,$).then((function(e){!function(e){var t={},n={},o={},i=m.map((function(r){return new Promise((function(i,a){C(e[r],r).then((function(e){if(e){var a,s;if(e.promoted&&(t[r]=e.promoted.map((function(e){return Ge(Ge({},e.doc),{},{_position:e.position})}))),n[r]=e,e.customData&&(o[r]=e.customData),e.aggregations)v=Ge(Ge({},v),{},((s={})[r]=e.aggregations,s));y=Ge(Ge({},y),{},((a={})[r]={hits:e.hits.hits,total:"object"==typeof e.hits.total?e.hits.total.value:e.hits.total,time:e.took},a)),i()}})).catch((function(e){return a(e)}))}))}));Promise.all(i).then((function(){b=Ge(Ge({},b),{},{hits:y,aggregations:v,promotedResults:t,customData:o,rawData:n}),r(b)}))}(e)})).catch((function(e){return o(e)}))}else s.msearch({type:"*"===a.type?"":a.type,body:f}).then((function(e){P(e)})).catch((function(e){return o(e)}))}))},e.install=zp,e.version="1.16.0-alpha.6",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
36
|
+
*/function da(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var pa,ha,fa={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,s=r.activeIndex,a=void 0===s?-1:s,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,S=void 0===_?"":_,w=r.unhighlightStyle,$=t.data,E=ca({autoEscape:l,caseSensitive:d,findChunks:p,sanitize:b,searchWords:C,textToHighlight:O}),T=v,P=-1,I="";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){da(e,t,n[t])}))}return e}({},$),E.map((function(t,r){var o=O.substr(t.start,t.end-t.start);if(t.highlight){var s=++P===+a;I="".concat(f," ").concat(s?i:""),n=!0===s&&null!=u?Object.assign({},m,u):m;var l={class:I,key:r,style:n};return"string"!=typeof T&&(l.props={highlightIndex:P}),$.scopedSlots?e(T,l,[$.scopedSlots.default({children:o,highlightIndex:P})]):e(T,l,o)}return e("span",{class:S,key:r,style:w},o)})))}},ga={fontWeight:600,padding:0,backgroundColor:"transparent",color:"inherit"},ma=Jt("span")(pa||(pa=dt(["\n\t.highlight {\n\t\tbackground: transparent;\n\t\tcolor: inherit;\n\t\tfont-weight: 600;\n\t\tpadding: 0;\n\t}\n"]))),ya={name:"SuggestionItem",props:{currentValue:Wn.string,suggestion:Wn.any},render:function(){var e=arguments[0],t=this.suggestion,n=t.label,r=t.value,o=t.title,i=t.description,s=t.image,a=t.isPredictiveSuggestion,u=t._suggestion_type,l=t._category;return n?"string"==typeof n?e("div",{class:"trim"},[l||!a&&!u?e(fa,{attrs:{searchWords:l?[l]:this.currentValue.split(" "),textToHighlight:n,autoEscape:!0,highlightStyle:ga}}):e(ma,{domProps:{innerHTML:n}})]):n:o||s||i?e(Io,{attrs:{alignItems:"center",css:{width:"100%"}}},[s&&e("div",{attrs:{css:{margin:"auto",marginRight:10}}},[e("img",{attrs:{src:s,alt:" ",height:"50px",width:"50px",css:{objectFit:"contain"}}})]),e(Io,{attrs:{direction:"column",css:{width:s?"calc(100% - 60px)":"100%"}}},[o&&e("div",{class:"trim"},[e(fa,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:o,highlightStyle:ga},class:Wt({fontSize:"1rem"})})]),i&&e("div",{class:Bt("trim",Wt({marginTop:3}))},[e(fa,{attrs:{searchWords:this.currentValue.split(" "),textToHighlight:i,highlightStyle:ga}})])])]):r}},va={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:at({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"}})])}},ba={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"}})])}};Gt(ha||(ha=dt(["\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 Ca,Oa={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"}})])])])}};Gt(Ca||(Ca=dt(["\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 _a,Sa={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"}})])])])}};Gt(_a||(_a=dt(["\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 wa,$a,Ea,Ta={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"}})])])])])}},Pa="INACTIVE",Ia="STOPPED",ka="ACTIVE",Aa="DENIED",Ra={name:"Mic",props:{children:Wn.title,lang:kt.string.def("en-US"),iconPosition:kt.string.def("left"),handleResult:Wn.func,onNoMatch:Wn.func,onError:Wn.func,getInstance:Wn.func,render:Wn.func,className:Wn.string,applyClearStyle:kt.bool,showIcon:kt.bool},methods:{getComponent:function(){var e=this.$data.status,t={handleClick:this.handleClick,status:e};return hr(t,this)},stopMic:function(){this.instance&&(this.status=Pa,this.instance.stop(),this.instance=null)},handleClick:function(){var e=this;if(this.results=[],window&&window.SpeechRecognition){this.$data.status===ka&&(this.status=Pa);var t=this.$props,n=t.handleResult,r=t.onNoMatch,o=t.onError,i=t.lang,s=t.getInstance,a=window.SpeechRecognition;if(this.instance&&this.status!==Aa)return this.status=Pa,this.instance.stop(),void(this.instance=null);this.instance=new a,this.instance.continuous=!0,this.instance.interimResults=!0,this.instance.lang=i,s&&s(this.instance),this.instance.start(),this.instance.onstart=function(){e.status=ka},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=Pa:"not-allowed"===t.error&&(e.status=Aa),console.error(t),o&&o(t)},this.instance.onspeechend=function(){e.status=Pa},this.instance.onaudioend=function(){e.status=Pa}}}},computed:{hasCustomRenderer:function(){return fr(this)},Icon:function(){var e=this.$createElement,t=this.$data.status,n=this.$props.className;switch(t){case ka:return e(Ta,{attrs:{className:n},nativeOn:{click:this.handleClick}});case Ia:case Aa:return e(Sa,{attrs:{className:n},nativeOn:{click:this.handleClick}});default:return e(Oa,{attrs:{className:n},nativeOn:{click:this.handleClick}})}}},data:function(){return{status:Pa}},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(Xs,[this.Icon])}},xa={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(va,{attrs:{styles:{position:"relative",fill:"#707070",left:"3px",marginRight:"8px"}}})}},La=Jt("div")(wa||(wa=dt(["\n\tdisplay: flex;\n\tflex-wrap: wrap;\n\tmargin-top: 10px;\n\twidth: 100%;\n"]))),Ma=Jt("span")($a||($a=dt(["\n\tcursor: default;\n\tbox-sizing: border-box;\n\tmargin: 0 4px 4px 0;\n\tcolor: #000000d9;\n\tfont-size: 14px;\n\tfont-variant: tabular-nums;\n\tline-height: 1.5715;\n\tlist-style: none;\n\tfont-feature-settings: 'tnum';\n\tdisplay: inline-block;\n\theight: auto;\n\tpadding: 0 2px 0 7px;\n\tfont-size: 12px;\n\tline-height: 22px;\n\twhite-space: nowrap;\n\tbackground: #fafafa;\n\tborder: 1px solid #d9d9d9;\n\tborder-radius: 2px;\n\topacity: 1;\n\ttransition: all 0.3s;\n\n\tspan.close-icon {\n\t\tsvg {\n\t\t\tcursor: pointer;\n\t\t\theight: 15px;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t\tfill: #262626;\n\t\t}\n\t}\n"]))),ja=ot.updateQuery,Qa=ot.setQueryOptions,Va=ot.setCustomQuery,Da=ot.setDefaultQuery,Fa=ot.setCustomHighlightOptions,Na=ot.recordSuggestionClick,Ua=ot.loadPopularSuggestions,qa=ot.getRecentSearches,za=ot.resetStoreForComponent,Ba=st.debounce,Ha=st.checkValueChange,Ga=st.getClassName,Wa=st.extractQueryFromCustomQuery,Za=st.getOptionsForCustomQuery,Ka=st.isEqual,Ya=st.getCompositeAggsQuery,Xa=st.withClickIds,Ja=st.getResultStats,eu=st.handleOnSuggestions,tu=st.getTopSuggestions,nu=st.normalizeDataField,ru={name:"DataSearch",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],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,s=e.index;e.mode===j.TAG&&(this.$options.isTagsMode=!0),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&&s&&console.warn("Warning(ReactiveSearch): In order to use the `index` prop, the `enableAppbase` prop must be set to true in `ReactiveBase`."),this.currentValue="",this.$options.isTagsMode&&(this.currentValue=""),(this.$props.enableDefaultSuggestions||this.currentValue)&&(this.loadPopularSuggestions(this.$props.componentId),r&&this.getRecentSearches()),this.handleTextChange=Ba(this.handleText,this.$props.debounce),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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),Xa(e)},topSuggestions:function(){return this.currentValue&&(this.enableQuerySuggestions||this.enablePopularSuggestions)?this.normalizedPopularSuggestions:[]},normalizedRecentSearches:function(){return this.recentSearches||[]},normalizedPopularSuggestions:function(){return tu(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 at({},e,{_popular_suggestion:!0})})),n=(this.normalizedRecentSearches||[]).map((function(e){return at({},e,{_recent_search:!0})})),r=e?[].concat(n,t||[]):n;return tu(r,this.currentValue,this.showDistinctSuggestions)},hasCustomRenderer:function(){return fr(this)},stats:function(){return Ja(this)}},props:{options:Wn.options,autoFocus:kt.bool,autosuggest:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),clearIcon:Wn.children,componentId:Wn.stringRequired,customHighlight:Wn.func,customQuery:Wn.func,defaultQuery:Wn.func,dataField:kt.oneOfType([kt.string,kt.shape({field:kt.string,weight:kt.number}),kt.arrayOf(kt.string),kt.arrayOf({field:kt.string,weight:kt.number})]),aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,debounce:kt.number.def(0),defaultValue:Wn.string,excludeFields:Wn.excludeFields,value:kt.oneOfType([kt.arrayOf(kt.string),Wn.value]),defaultSuggestions:Wn.suggestions,enableSynonyms:kt.bool.def(!0),enableQuerySuggestions:kt.bool.def(!1),enablePopularSuggestions:kt.bool.def(!1),enableRecentSearches:kt.bool.def(!1),fieldWeights:Wn.fieldWeights,filterLabel:Wn.string,fuzziness:Wn.fuzziness,highlight:kt.bool,highlightField:Wn.stringOrArray,icon:Wn.children,iconPosition:kt.oneOf(["left","right"]).def("left"),includeFields:Wn.includeFields,innerClass:Wn.style,innerRef:kt.string.def("searchInputField"),render:Wn.func,renderQuerySuggestions:Wn.func,renderPopularSuggestions:Wn.func,parseSuggestion:Wn.func,renderNoSuggestion:Wn.title,renderError:Wn.title,placeholder:kt.string.def("Search"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,showClear:kt.bool.def(!0),showDistinctSuggestions:kt.bool.def(!0),showFilter:kt.bool.def(!0),showIcon:kt.bool.def(!0),title:Wn.title,theme:Wn.style,URLParams:kt.bool.def(!1),strictSelection:kt.bool.def(!1),nestedField:Wn.string,enablePredictiveSuggestions:kt.bool.def(!1),recentSearchesIcon:kt.any,popularSearchesIcon:kt.any,showVoiceSearch:kt.bool.def(!1),getMicInstance:Wn.func,renderMic:Wn.func,distinctField:Wn.string,distinctFieldConfig:Wn.props,focusShortcuts:kt.arrayOf(kt.oneOfType([kt.string,kt.number])).def(["/"]),addonBefore:kt.any,addonAfter:kt.any,expandSuggestionsContainer:kt.bool.def(!0),index:kt.string,enableDefaultSuggestions:kt.bool.def(!0),mode:kt.oneOf(["select","tag"]).def("select"),renderSelectedTags:kt.any},beforeMount:function(){if(this.$props.highlight){this.customHighlight&&"function"==typeof this.customHighlight&&this.setCustomHighlightOptions(this.componentId,this.customHighlight(this.$props));var e=ru.highlightQuery(this.$props)||{};this.queryOptions=at({},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,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{highlight:function(){this.updateQueryOptions()},dataField:function(){this.updateQueryOptions(),this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},highlightField:function(){this.updateQueryOptions()},fieldWeights:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},fuzziness:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},queryFormat:function(){this.updateQueryHandler(this.$props.componentId,this.$options.isTagsMode?this.$data.selectedTags:this.$data.currentValue,this.$props)},defaultValue:function(e){this.setValue(e,!0,this.$props)},value:function(e,t){Ka(e,t)||this.setValue(e,!0,this.$props,void 0,!1)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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){Ka(e,t)||(this.$options.isTagsMode?Ka(this.$data.selectedTags,e):this.$data.currentValue===e)||(!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]),this.setValue(e||"",!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0))},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=ru.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=ru.highlightQuery(this.$props)||{};this.queryOptions=at({},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):hr(r,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=Ee(this.$props);return e&&(t.aggs=Ya({props:this.$props,showTopHits:!0}).aggs),t},onSuggestions:function(e){return eu(e,this.$data.currentValue,this)},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.isPending=!1,this.setValue(e,!0),this.onValueSelectedHandler(e,it.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);Ha(n.componentId,e,n.beforeValueChange,(function(){if(!i.$options.isTagsMode||!Ka(e,i.selectedTags)){if(e||!1!==n.enableDefaultSuggestions?!e&&i.currentValue&&i.enableRecentSearches&&i.getRecentSearches():i.resetStoreForComponent(n.componentId),i.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(i.selectedTags)&&i.selectedTags.length){if("string"==typeof e&&i.selectedTags.includes(e))return void(i.isOpen=!1);if(i.selectedTags=[].concat(i.selectedTags),"string"==typeof e&&e)i.selectedTags.push(e);else if(Array.isArray(e)&&!Ka(i.selectedTags,e)){var s=Array.from(new Set([].concat(i.selectedTags,e)));i.selectedTags=s}}else e&&(i.selectedTags="string"!=typeof e?e:[].concat(e));i.currentValue=""}else i.currentValue=e;var a=e;i.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(a=Array.isArray(i.selectedTags)&&i.selectedTags.length?i.selectedTags:void 0),t?(i.$props.autosuggest&&(o&&(i.isOpen=!1),"string"==typeof e&&i.updateDefaultQueryHandler(e,i.$props)),n.strictSelection?r===it.SUGGESTION_SELECT||(i.$options.isTagsMode?0===i.selectedTags.length:""===e)?i.updateQueryHandler(n.componentId,a,n):i.setValue("",!0):i.updateQueryHandler(n.componentId,a,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=ru.defaultQuery(e,t);if(this.defaultQuery){var o=this.defaultQuery(e,t)||{},i=Wa(o);i&&(r=i),n=Za(o),yr(t.componentId,this.setDefaultQuery,t,e)}this.setQueryOptions(this.internalComponent,at({},this.queryOptions,n),!1),this.updateQuery({componentId:this.internalComponent,query:r,value:e,componentType:L.dataSearch})}else this.resetStoreForComponent(t.componentId)},updateQueryHandler:function(e,t,n){var r,o=n.customQuery,i=n.filterLabel,s=n.showFilter,a=n.URLParams,u=ru.defaultQuery(t,n);if(o){var l=o(t,n),c=Wa(l);c&&(u=c),r=Za(l),vr(n.componentId,this.setCustomQuery,n,t),this.setQueryOptions(e,at({},this.queryOptions,r),!1)}this.isPending||this.updateQuery({componentId:e,query:u,value:t,label:i,showFilter:s,URLParams:a,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("",it.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.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.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;if(this.triggerClickAnalytics(e._click_id),void 0===t)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT);else if(this.$options.isTagsMode){var n=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[];if(this.selectedTags.includes(e.value))return void(this.isOpen=!1);n.push(e.value),this.setValue(n,!0,this.$props,it.SUGGESTION_SELECT,!0),this.$emit("change",n,this.triggerQuery)}else this.$emit("change",e.value,this.triggerQuery);this.isPending=!1,this.onValueSelectedHandler(e.value,it.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(va):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ua,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[dr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ba):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,s=this.$scopedSlots.renderError||this.$props.renderError,a=this.$data,u=a.isOpen,l=a.currentValue;return!i||!u||e.length||this.isLoading||!l||s&&this.error?null:t(ua,{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(Vs,[t()]):null},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Ma,{class:Ga(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n(ba)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(La,[n.map((function(t){return e.renderTag(t)})),r&&t(Ma,{class:Ga(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t(ba)])])])},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Vs,[t()]):null},renderIcons:function(){var e=this.$createElement,t=this.$props,n=t.iconPosition,r=t.showClear,o=t.innerClass,i=t.getMicInstance,s=t.showVoiceSearch,a=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Xs,{on:{click:this.clearValue},attrs:{showIcon:a,isClearIcon:!0}},[this.renderCancelIcon()]),s&&e(Ra,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:Ga(o,"mic")||null}}),"right"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(Ys,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&a&&e(Xs,{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;Or(n)||(hs(wr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hs("*",(function(t){var r=Er(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hs[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,s=n.enableDefaultSuggestions,a=this.$scopedSlots,u=a.recentSearchesIcon,l=a.popularSearchesIcon,c=this.currentValue?this.suggestionsList.length||this.topSuggestions.length:this.defaultSearchSuggestions.length;return!1!==s||this.currentValue||(c=!1),t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Ga(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.defaultSuggestions||this.$props.autosuggest?t(ia,{attrs:{id:this.$props.componentId+"-downshift",handleChange:this.onSuggestionSelected,handleMouseup:this.handleStateChange,isOpen:this.$data.isOpen},scopedSlots:{default:function(n){var s=n.getInputEvents,a=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:Ws(e.themePreset,r)+" "+Ga(e.$props.innerClass,"list")},[e.suggestionsList.slice(0,o||10).map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},p({item:n})),key:r+1+"-"+n.value,style:{backgroundColor:e.getBackgroundColor(f,r)}},[t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),e.defaultSearchSuggestions.map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},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(xa,{attrs:{className:Ga(e.$props.innerClass,"recent-search-icon")||null,icon:u,type:"recent-search-icon"}}),n.source&&n.source._popular_suggestion&&t(xa,{attrs:{className:Ga(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])})),Cr(e)?e.getComponent({isOpen:h,getItemProps:d,getItemEvents:p,highlightedIndex:f},!0):e.topSuggestions.map((function(n,r){return t("li",{domProps:at({},d({item:n})),on:at({},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(xa,{attrs:{className:Ga(e.$props.innerClass,"popular-search-icon")||null,icon:l,type:"popular-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:n}})])}))]):e.renderNoSuggestions(e.suggestionsList)])};return t("div",{class:Zs},[t(bs,[e.renderInputAddonBefore(),t(Qs,[t(Gs,{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:Ga(e.$props.innerClass,"input"),on:at({},s({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:at({},a({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!i&&m()])," ",e.renderInputAddonAfter()]),i&&m(),e.renderTags()])}}}):t("div",{class:Zs},[t(bs,[this.renderInputAddonBefore(),t(Qs,[t(Gs,{class:Ga(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:at({},{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:at({},{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=nu(t.dataField,t.fieldWeights);n={bool:{should:ru.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:at({pre_tags:["<mark>"],post_tags:["</mark>"],fields:t},e.highlightField&&{require_field_match:!1})}},hasInternalComponent:function(){return!0}},ou=Dr(cr((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:Qa,updateQuery:ja,setCustomQuery:Va,setDefaultQuery:Da,setCustomHighlightOptions:Fa,recordSuggestionClick:Na,loadPopularSuggestions:Ua,getRecentSearches:qa,resetStoreForComponent:za})(ru),{componentType:L.dataSearch,internalComponent:ru.hasInternalComponent()});ru.install=function(e){e.component(ru.name,ou)},ru.componentType=L.dataSearch;var iu,su,au,uu,lu,cu,du=Jt("button")(Ea||(Ea=dt(["\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"]))),pu={name:"AutoFillSvg",render:function(){var e=arguments[0];return e(du,{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)}}},hu=ot.updateQuery,fu=ot.setCustomQuery,gu=ot.setDefaultQuery,mu=ot.recordSuggestionClick,yu=st.debounce,vu=st.checkValueChange,bu=st.getClassName,Cu=st.isEqual,Ou=st.getCompositeAggsQuery,_u=st.withClickIds,Su=st.getResultStats,wu=st.normalizeDataField,$u={name:"SearchBox",isTagsMode:!1,data:function(){var e=this.$props;return this.__state={currentValue:"",selectedTags:[],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;e.mode===j.TAG&&(this.$options.isTagsMode=!0),this.$options.isTagsMode&&console.warn("Warning(ReactiveSearch): The `categoryField` prop is not supported when `mode` prop is set to `tag`"),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=Tr(this.selectedValue||this.value||this.defaultValue||""),this.$options.isTagsMode&&(this.currentValue=""),this.handleTextChange=yu(this.handleText,this.$props.debounce),this.triggerCustomQuery(this.currentValue,this.selectedCategory),this.triggerDefaultQuery(this.currentValue)},computed:{hasCustomRenderer:function(){return fr(this)},stats:function(){return Su(this)}},props:{autoFocus:kt.bool,autosuggest:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),clearIcon:Wn.children,componentId:Wn.stringRequired,customHighlight:Wn.func,customQuery:Wn.func,defaultQuery:Wn.func,dataField:kt.oneOfType([kt.string,kt.shape({field:kt.string,weight:kt.number}),kt.arrayOf(kt.string),kt.arrayOf({field:kt.string,weight:kt.number})]),aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,debounce:kt.number.def(0),defaultValue:Wn.string,excludeFields:Wn.excludeFields,value:kt.oneOfType([kt.arrayOf(kt.string),Wn.value]),defaultSuggestions:Wn.suggestions,enableSynonyms:kt.bool.def(!0),enableQuerySuggestions:kt.bool.def(!1),enablePopularSuggestions:kt.bool.def(!1),enableRecentSuggestions:kt.bool.def(!1),fieldWeights:Wn.fieldWeights,filterLabel:Wn.string,fuzziness:Wn.fuzziness,highlight:kt.bool,highlightField:Wn.stringOrArray,icon:Wn.children,iconPosition:kt.oneOf(["left","right"]).def("left"),includeFields:Wn.includeFields,innerClass:Wn.style,innerRef:kt.string.def("searchInputField"),render:Wn.func,renderNoSuggestion:Wn.title,renderError:Wn.title,placeholder:kt.string.def("Search"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,showClear:kt.bool.def(!0),showDistinctSuggestions:kt.bool.def(!0),showFilter:kt.bool.def(!0),showIcon:kt.bool.def(!0),title:Wn.title,theme:Wn.style,URLParams:kt.bool.def(!1),strictSelection:kt.bool.def(!1),nestedField:Wn.string,enablePredictiveSuggestions:kt.bool.def(!1),recentSearchesIcon:kt.any,popularSearchesIcon:kt.any,showVoiceSearch:kt.bool.def(!1),getMicInstance:Wn.func,renderMic:Wn.func,distinctField:Wn.string,distinctFieldConfig:Wn.props,focusShortcuts:kt.arrayOf(kt.oneOfType([kt.string,kt.number])).def(["/"]),addonBefore:kt.any,addonAfter:kt.any,expandSuggestionsContainer:kt.bool.def(!0),index:kt.string,popularSuggestionsConfig:kt.object,recentSuggestionsConfig:kt.object,applyStopwords:kt.bool,customStopwords:Wn.stringArray,onData:Wn.func,renderItem:Wn.func,enterButton:kt.bool.def(!1),renderEnterButton:kt.any,mode:kt.oneOf(["select","tag"]).def("select"),renderSelectedTags:kt.any,searchboxId:kt.string},beforeMount:function(){this.selectedValue?this.setValue(this.selectedValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.value?this.setValue(this.$props.value,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0):this.$props.defaultValue&&this.setValue(this.$props.defaultValue,!0,this.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0)},mounted:function(){this.listenForFocusShortcuts()},watch:{dataField:function(e,t){Cu(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){Cu(e,t)||this.setValue(e,!0,this.$props,""===e?it.CLEAR_VALUE:void 0,!1)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.triggerDefaultQuery(this.$data.currentValue)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.triggerCustomQuery(this.$data.currentValue)},suggestions:function(e){var t=[];Array.isArray(e)&&e.length?t=[].concat(_u(e)):Array.isArray(this.$props.defaultSuggestions)&&this.$props.defaultSuggestions.length&&(t=[].concat(_u(this.$props.defaultSuggestions))),this.normalizedSuggestions=t},selectedValue:function(e,t){if(!Cu(e,t)&&(this.$options.isTagsMode?!Cu(this.$data.selectedTags,e):this.$data.currentValue!==e)){!e&&this.$data.currentValue&&this.onValueSelectedHandler("",it.CLEAR_VALUE),this.$options.isTagsMode&&(this.selectedTags=[]);var n=e?void 0:it.CLEAR_VALUE;this.$options.isTagsMode&&(n=it.SUGGESTION_SELECT),this.setValue(e||"",!0,this.$props,n)}},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){Cu(e,t)||(this.handleTextChange=yu(this.handleText,e))}},methods:{handleText:function(e,t){t===it.CLEAR_VALUE?(this.triggerCustomQuery(e),this.triggerDefaultQuery(e)):this.$props.autosuggest?this.triggerDefaultQuery(e):this.$props.enterButton||this.triggerCustomQuery(e)},validateDataField:function(){var e=$u.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 hr(n,this)},getBasicQueryOptions:function(){var e=this.$props.aggregationField,t=Ee(this.$props);return e&&(t.aggs=Ou({props:this.$props,showTopHits:!0}).aggs),t},handleSearchIconClick:function(){var e=this.currentValue;e.trim()&&(this.setValue(e,!0),this.onValueSelectedHandler(e,it.SEARCH_ICON_CLICK))},setValue:function(e,t,n,r,o,i){var s=this;void 0===t&&(t=!1),void 0===n&&(n=this.$props),void 0===o&&(o=!0),void 0===i&&(i=void 0);vu(n.componentId,e,n.beforeValueChange,(function(){if(!s.$options.isTagsMode||!Cu(e,s.selectedTags)){if(s.$options.isTagsMode&&r===it.SUGGESTION_SELECT){if(Array.isArray(s.selectedTags)&&s.selectedTags.length){if("string"==typeof e&&s.selectedTags.includes(e))return void(s.isOpen=!1);if(s.selectedTags=[].concat(s.selectedTags),"string"==typeof e&&e)s.selectedTags.push(e);else if(Array.isArray(e)&&!Cu(s.selectedTags,e)){var a=Array.from(new Set([].concat(s.selectedTags,e)));s.selectedTags=a}}else e&&(s.selectedTags="string"!=typeof e?e:[].concat(e));s.currentValue=""}else s.currentValue=Tr(e);var u=e;s.$options.isTagsMode&&r===it.SUGGESTION_SELECT&&(u=Array.isArray(s.selectedTags)&&s.selectedTags.length?s.selectedTags:void 0),t?(s.$props.autosuggest&&(o&&(s.isOpen=!1),"string"==typeof s.currentValue&&s.triggerDefaultQuery(s.currentValue)),n.strictSelection?r===it.SUGGESTION_SELECT||(s.$options.isTagsMode?0===s.selectedTags.length:""===e)?s.triggerCustomQuery(u,s.$options.isTagsMode?void 0:i):s.setValue("",!0):void 0!==n.value&&r!==it.SUGGESTION_SELECT&&r!==it.CLEAR_VALUE||s.triggerCustomQuery(u,s.$options.isTagsMode?void 0:i)):s.handleTextChange(e,r),s.$emit("valueChange",e),s.$emit("value-change",e)}}))},triggerDefaultQuery:function(e){if(this.$props.autosuggest){var t="string"!=typeof e?this.currentValue:e,n=$u.defaultQuery(t,this.$props);if(this.defaultQuery){var r=this.defaultQuery(t,this.$props)||{};r.query&&(n=r.query),yr(this.$props.componentId,this.setDefaultQuery,this.$props,t)}this.updateQuery({componentId:this.internalComponent,query:n,value:t,componentType:L.searchBox})}},triggerCustomQuery:function(e,t){void 0===t&&(t=void 0);var n=this.$props,r=n.customQuery,o=n.filterLabel,i=n.showFilter,s=n.URLParams,a="string"!=typeof e?this.$data.currentValue:e;this.$options.isTagsMode&&(a=e);var u=$u.defaultQuery(a+(t?" in "+t:""),this.$props);if(r){var l=r(a,this.$props).query;l&&(u=l),vr(this.$props.componentId,this.setCustomQuery,this.$props,a)}this.updateQuery({componentId:this.$props.componentId,query:u,value:a,label:o,showFilter:i,URLParams:s,componentType:L.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,s=void 0===i||i,a=e.value,u=void 0===a?void 0:a,l=e.categoryValue,c=void 0===l?void 0:l;"boolean"==typeof n&&(this.isOpen=n),o&&this.triggerCustomQuery(u,c),s&&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,it.CLEAR_VALUE,!1),this.onValueSelectedHandler("",it.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.$props,this.$options.isTagsMode?it.SUGGESTION_SELECT:void 0),this.onValueSelectedHandler(e.target.value,it.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?it.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;if(this.triggerClickAnalytics(e._click_id),void 0===n)this.setValue(e.value,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category);else{var r=e.value;if(this.$options.isTagsMode){if(r=Array.isArray(this.selectedTags)?[].concat(this.selectedTags):[],this.selectedTags.includes(e.value))return void(this.isOpen=!1);r.push(e.value)}this.setValue(r,!0,this.$props,it.SUGGESTION_SELECT,!1,e._category),this.$emit("change",r,(function(n){var o=n.isOpen;return t.triggerQuery(at({isOpen:o,value:r},!t.$options.isTagsMode&&{categoryValue:e._category}))}))}this.onValueSelectedHandler(e.value,it.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(va):null},renderErrorComponent:function(){var e=this.$createElement,t=this.$scopedSlots.renderError||this.$props.renderError;return this.error&&t&&this.$data.currentValue&&!this.isLoading?e(ua,{attrs:{innerClass:this.$props.innerClass,innerClassName:"error",theme:this.theme,themePreset:this.themePreset}},[dr(t)?t(this.error):t]):null},renderCancelIcon:function(){var e=this.$createElement;return this.$props.showClear?this.$props.clearIcon||e(ba):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,s=this.$scopedSlots.renderError||this.$props.renderError,a=this.$data,u=a.isOpen,l=a.currentValue;return!i||!u||e.length||this.isLoading||!l||s&&this.error?null:t(ua,{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(Vs,{class:"addon-before"},[t()]):null},renderInputAddonAfter:function(){var e=this.$createElement,t=this.$scopedSlots.addonAfter;return t?e(Vs,{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(Bn,{class:"enter-btn "+bu(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,s=t.showVoiceSearch,a=t.showIcon,u=this.$scopedSlots.renderMic||this.$props.renderMic,l=this.$data.currentValue;return e("div",[e(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[l&&r&&e(Xs,{on:{click:this.clearValue},attrs:{showIcon:a,isClearIcon:!0}},[this.renderCancelIcon()]),s&&e(Ra,{attrs:{getInstance:i,render:u,handleResult:this.handleVoiceResults,className:bu(o,"mic")||null}}),"right"===n&&a&&e(Xs,{on:{click:this.handleSearchIconClick}},[this.renderIcon()])]),e(Ys,{attrs:{groupPosition:"left",positionType:"absolute"}},["left"===n&&a&&e(Xs,{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;Or(n)||(hs(wr(n).join(","),(function(t,n){t.preventDefault(),e.focusSearchBox(t)})),hs("*",(function(t){var r=Er(n);if(0!==r.length)for(var o=0;o<r.length;o+=1){if(hs[r[o]]){e.focusSearchBox(t);break}}})))},onAutofillClick:function(e){var t=e.value;this.isOpen=!0,this.currentValue=Tr(t),this.triggerDefaultQuery(t)},renderAutoFill:function(e){var t=this,n=this.$createElement;return e._category?null:n(pu,{on:{click:function(n){n.stopPropagation(),t.onAutofillClick(e)}}})},renderTag:function(e){var t=this,n=this.$createElement,r=this.$props.innerClass;return n(Ma,{class:bu(r,"selected-tag")||""},[n("span",[e]),n("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:function(){return t.clearTag(e)}}},[n(ba)])])},clearAllTags:function(){this.selectedTags=[],this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},clearTag:function(e){this.selectedTags=[].concat(this.selectedTags.filter((function(t){return t!==e}))),this.setValue("",!0,this.$props,it.SUGGESTION_SELECT),void 0!==this.$props.value&&this.$emit("change",this.selectedTags,this.triggerQuery)},renderTags:function(){var e=this,t=this.$createElement;if(!Array.isArray(this.selectedTags))return null;var n=[].concat(this.selectedTags),r=n.length>1,o=this.$scopedSlots.renderSelectedTags||this.$props.renderSelectedTags;return o?o({values:this.selectedTags,handleClear:this.clearTag,handleClearAll:this.clearAllTags}):t(La,[n.map((function(t){return e.renderTag(t)})),r&&t(Ma,{class:bu(this.$props.innerClass,"selected-tag")||""},[t("span",["Clear All"]),t("span",{attrs:{role:"img","aria-label":"delete-tag"},class:"close-icon",on:{click:this.clearAllTags}},[t(ba)])])])}},render:function(){var e=this,t=arguments[0],n=this.$props,r=n.theme,o=n.expandSuggestionsContainer,i=this.$scopedSlots,s=i.recentSearchesIcon,a=i.popularSearchesIcon,u=Array.isArray(this.normalizedSuggestions)&&this.normalizedSuggestions.length,l=this.$scopedSlots.renderItem||this.$props.renderItem;return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:bu(this.$props.innerClass,"title")||""},[this.$props.title]),this.$props.autosuggest?t(ia,{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 Oe.Recent:return s;case Oe.Popular:return a;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:Ws(e.themePreset,r)+" "+bu(e.$props.innerClass,"list")},[e.normalizedSuggestions.map((function(r,o){return t("li",{domProps:at({},d({item:r})),on:at({},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(xa,{attrs:{className:bu(e.$props.innerClass,r._suggestion_type+"-search-icon")||null,icon:n(r._suggestion_type),type:r._suggestion_type+"-search-icon"}})]),t(ya,{attrs:{currentValue:e.currentValue,suggestion:r}}),e.renderAutoFill(r)])}))]):e.renderNoSuggestions(e.normalizedSuggestions)])};return t("div",{class:Zs},[t(bs,[e.renderInputAddonBefore(),t(Qs,[t(Gs,{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:bu(e.$props.innerClass,"input"),on:at({},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:at({},c({value:null===e.$data.currentValue?"":e.$data.currentValue}))}),e.renderIcons(),!o&&m()]),e.renderInputAddonAfter(),e.renderEnterButtonElement()]),o&&m(),e.renderTags()])}}}):t("div",{class:Zs},[t(bs,[this.renderInputAddonBefore(),t(Qs,[t(Gs,{class:bu(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:at({},{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:at({},{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=wu(t.dataField,t.fieldWeights);return(n={bool:{should:$u.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)}},Eu=Dr(cr((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:hu,setCustomQuery:fu,setDefaultQuery:gu,recordSuggestionClick:mu})($u),{componentType:L.searchBox,internalComponent:!0});$u.install=function(e){e.component($u.name,Eu)},$u.componentType=L.searchBox;var Tu="15px",Pu="15px",Iu="4px",ku=Wt(iu||(iu=dt(["\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"]))),Au=Wt(su||(su=dt(["\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"]))),Ru=function(e){var t=e.theme;return Wt(au||(au=dt(["\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"])),ku,Vn(.4,t.colors.primaryColor),t.colors.primaryColor,t.colors.borderColor||Vn(.1,t.colors.textColor),t.colors.primaryColor,Tu,Tu,Pu,t.colors.primaryColor,Iu,Tu,Iu,Pu,Iu,Pu,Iu)},xu=Jt("input")(uu||(uu=dt(["\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"])),Ru,(function(e){return e.show?null:Au}),(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Lu=Jt("input")(lu||(lu=dt(["\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"])),Ru,(function(e){return e.show?null:Au}),Tu,Tu,Tu,Pu,(function(e){return e.theme.colors.primaryColor}),(function(e){return e.theme.colors.primaryColor})),Mu=Jt("ul")(cu||(cu=dt(["\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"]))),ju=st.getAggsOrder,Qu=function(e,t){var n,r=e,o=t.dataField,i=t.size,s=t.sortBy,a=t.showMissing,u=t.missingLabel;return r.size=0,r.aggs=((n={})[o]={terms:at({field:o,size:i,order:ju(s||"count")},a?{missing:u}:{})},n),t.nestedField&&(r.aggs={reactivesearch_nested:{nested:{path:t.nestedField},aggs:r.aggs}}),at({},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))},Vu=ot.updateQuery,Du=ot.setQueryOptions,Fu=ot.setCustomQuery,Nu=ot.setDefaultQuery,Uu=st.getQueryOptions,qu=st.checkValueChange,zu=st.getClassName,Bu=st.isEqual,Hu=st.extractQueryFromCustomQuery,Gu=st.getOptionsForCustomQuery,Wu={name:"SingleList",props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultValue:Wn.string,value:Wn.value,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Search"),react:Wn.react,render:Wn.func,renderItem:Wn.func,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),showRadio:kt.bool.def(!0),showSearch:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),nestedField:Wn.string,index:kt.string,enableStrictSelection:kt.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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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){Bu(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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,s=this.$scopedSlots.renderItem||o,a=this.$scopedSlots.renderError||i;if(a&&this.error)return dr(a)?a(this.error):a;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||be(String(t.key)).toLowerCase().includes(be(e.$data.searchTerm.toLowerCase())))}));return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:zu(this.$props.innerClass,"title")||""},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Mu,{class:zu(this.$props.innerClass,"list")||""},[r?t("li",{key:r,class:this.$data.currentValue===r?"active":""},[t(xu,{class:zu(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:at({},{checked:this.$data.currentValue===r})}),t("label",{class:zu(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(xu,{class:zu(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:at({},{checked:e.currentValue===String(n.key)})}),t("label",{class:zu(e.$props.innerClass,"label")||null,attrs:{for:e.$props.componentId+"-"+n.key}},[s?s({label:n.key,count:n.doc_count,isChecked:e.currentValue===String(n.key)}):t("span",[n.key,e.$props.showCount&&t("span",{class:zu(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="");qu(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=Wu.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Hu(r);o&&(n=o),yr(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:L.singleList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Wu.defaultQuery(e,t);if(n){var o=n(e,t);r=Hu(o);var i=Gu(o);vr(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:L.singleList})},generateQueryOptions:function(e){var t=Uu(e);return Qu(t,e)},updateQueryHandlerOptions:function(e){var t=Wu.generateQueryOptions(e);if(e.defaultQuery){var n=this.$data.currentValue,r=Gu(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,at({},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(Gs,{class:zu(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 hr(i,this)},handleClick:function(e){var t=e;return mr(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:zu(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])}},computed:{hasCustomRenderer:function(){return fr(this)}},generateQueryOptions:function(e){var t=Uu(e);return Qu(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}},Zu=Dr(cr((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:Du,updateQuery:Vu,setCustomQuery:Fu,setDefaultQuery:Nu})(Wu),{componentType:L.singleList,internalComponent:Wu.hasInternalComponent()});Wu.install=function(e){e.component(Wu.name,Zu)},Wu.componentType=L.singleList;var Ku=ot.updateQuery,Yu=ot.setQueryOptions,Xu=ot.setCustomQuery,Ju=ot.setDefaultQuery,el=st.isEqual,tl=st.getQueryOptions,nl=st.checkValueChange,rl=st.getClassName,ol=st.extractQueryFromCustomQuery,il=st.getOptionsForCustomQuery,sl={name:"MultiList",props:{defaultValue:Wn.stringArray,value:Wn.stringArray,queryFormat:kt.oneOf(["and","or"]).def("or"),showCheckbox:kt.bool.def(!0),beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Search"),react:Wn.react,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),showSearch:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),nestedField:Wn.string,index:kt.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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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||el(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){el(t,e)||this.setValue(e,!0)},defaultValue:function(e,t){el(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])),el(n,e)||(void 0===this.value?this.setValue(e,!0):this.$emit("change",e))},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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,s=this.$scopedSlots.renderItem||o,a=this.$scopedSlots.renderError||i;if(a&&this.error)return dr(a)?a(this.error):a;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||be(String(t.key)).toLowerCase().includes(be(e.$data.searchTerm).toLowerCase()))}));return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:rl(this.$props.innerClass,"title")},[this.$props.title]),this.renderSearch(),this.hasCustomRenderer?this.getComponent():t(Mu,{class:rl(this.$props.innerClass,"list")},[r?t("li",{key:r,class:this.currentValue[r]?"active":""},[t(Lu,{attrs:{type:"checkbox",id:this.$props.componentId+"-"+r,name:r,value:r,show:this.$props.showCheckbox},class:rl(this.$props.innerClass,"checkbox"),on:{click:this.handleClick},domProps:at({},{checked:!!this.currentValue[r]})}),t("label",{class:rl(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(Lu,{attrs:{type:"checkbox",id:e.$props.componentId+"-"+n.key,name:e.$props.componentId,value:n.key,show:e.$props.showCheckbox},class:rl(e.$props.innerClass,"checkbox"),on:{click:e.handleClick},domProps:at({},{checked:!!e.$data.currentValue[n.key]})}),t("label",{class:rl(e.$props.innerClass,"label"),attrs:{for:e.$props.componentId+"-"+n.key}},[s?s({label:n.key,count:n.doc_count,isChecked:!!e.$data.currentValue[n.key]}):t("span",[n.key,e.$props.showCount&&t("span",{class:rl(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,s=null;if(o&&(Array.isArray(e)&&e.includes(o)||"string"==typeof e&&e===o))i[o]?(i={},s=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,s=[o]);else if(t){if(s=e,i={},e&&e.length&&e.forEach((function(e){i[e]=!0})),o&&o in i){var a=i,u=(a[o],ct(a,[o].map(pt)));i=at({},u)}}else{if(i[e]){var l=i,c=(l[e],ct(l,[e].map(pt)));i=at({},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],ct(d,[o].map(pt)));i=at({},p)}s=Object.keys(i)}nl(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=Object.assign({},i),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=sl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=ol(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=il(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.multiList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=sl.defaultQuery(e,t);if(n){var o=n(e,t);r=ol(o),vr(t.componentId,this.setCustomQuery,t,e);var i=il(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:L.multiList})},generateQueryOptions:function(e){var t=tl(e);return Qu(t,e)},updateQueryHandlerOptions:function(e){var t=sl.generateQueryOptions(e);if(e.defaultQuery){var n=Object.keys(this.$data.currentValue),r=il(e.defaultQuery(n,e));this.setQueryOptions(this.internalComponent,at({},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(Gs,{class:rl(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;mr(e)&&(t=e.target.value);var n=this.$props.value;if(void 0===n)this.setValue(t);else{var r=pr(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 hr(i,this)},renderNoResult:function(){var e=this.$createElement,t=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return e("p",{class:rl(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])}},computed:{hasCustomRenderer:function(){return fr(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 s,a,u=e.includes(t.missingLabel),l=[(a={},a[o]=(s={},s[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),s),a)];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=tl(e);return Qu(t,e)}},al={setQueryOptions:Yu,updateQuery:Ku,setCustomQuery:Xu,setDefaultQuery:Ju};sl.hasInternalComponent=function(){return!0};var ul,ll,cl,dl,pl=Dr(cr((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}}),al)(sl),{componentType:L.multiList,internalComponent:sl.hasInternalComponent()});sl.install=function(e){e.component(sl.name,pl)},sl.componentType=L.multiList;var hl,fl,gl=Wt(ul||(ul=dt(["\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"]))),ml=function(e){var t=e.theme;return Wt(ll||(ll=dt(["\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)},yl=Jt("button")(cl||(cl=dt(["\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?gl:null}),(function(e){return"dark"===e.themePreset&&ml})),vl=Jt("span")(dl||(dl=dt(["\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})),bl=Wt(hl||(hl=dt(["\n\ttop: 0.55em;\n\ttransform: rotate(-45deg);\n"]))),Cl=Jt("span")(fl||(fl=dt(["\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?bl:null})),Ol=st.getClassName,_l={data:function(){return this.__state={isOpen:!1,searchTerm:""},this.__state},inject:{theme:{from:"theme_reactivesearch"}},props:{innerClass:Wn.style,items:Wn.data,keyField:kt.string.def("key"),labelField:kt.string.def("label"),multi:kt.bool,placeholder:Wn.string,returnsObject:kt.bool,customLabelRenderer:Wn.func,hasCustomRenderer:kt.bool,customRenderer:Wn.func,renderItem:Wn.func,renderNoResults:kt.any,handleChange:Wn.func,transformData:Wn.func,selectedItem:Wn.selectedValue,showCount:kt.bool,single:kt.bool,small:kt.bool.def(!1),themePreset:Wn.themePreset,showSearch:kt.bool,showClear:kt.bool,searchPlaceholder:kt.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,s=n.labelField,a=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[s]).length&&(!e.$props.showSearch||!e.$data.searchTerm||be(String(t[s])).toLowerCase().includes(be(e.$data.searchTerm.toLowerCase())))}));return t(ia,{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:Zs},[t(yl,{on:at({},at({},v({onClick:e.toggle}))),class:Ol(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(Cl,{attrs:{open:c}})]),h?f(g,{getItemProps:r,isOpen:c,highlightedIndex:y,getButtonProps:v,getItemEvents:b}):c&&g.length?t("ul",{class:Ws(u,e.theme)+" "+(e.$props.small?"small":"")+" "+Ol(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[a]]||Array.isArray(o)&&o.find((function(e){return e[s]===n[s]})));return e.$props.multi||(u=n.key===o),t("li",{domProps:at({},r({item:n})),on:at({},b({item:n})),key:n[a],class:u?"active":"",style:{backgroundColor:e.getBackgroundColor(y===i,u)}},[l?l({label:n[s],count:n.doc_count,isChecked:u&&e.$props.multi}):t("div",["string"==typeof n[s]?t("span",{domProps:{innerHTML:n[s]}}):n[s],e.$props.showCount&&n.doc_count&&t("span",{class:Ol(e.$props.innerClass,"count")||""},[" (",n.doc_count,")"])]),u&&e.$props.multi?t(vl,{class:Ol(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:Ol(this.$props.innerClass,"noResults")||null},[dr(t)?t():t])},renderSearchbox:function(e){var t=this.$createElement,n=this.$props,r=n.componentId,o=n.searchPlaceholder,i=n.showClear,s=n.themePreset,a=n.innerClass,u=t(Gs,Jr([{attrs:{id:r+"-input",showIcon:!1,showClear:i,placeholder:o,value:this.$data.searchTerm,themePreset:s},style:{border:0,borderBottom:"1px solid #ddd"},class:Ol(a,"input")},e]));return i?t(Qs,[u,this.searchTerm&&t(Ys,{attrs:{groupPosition:"right",positionType:"absolute"}},[t(Xs,{on:{click:this.clearSearchTerm},attrs:{isClearIcon:!0}},[t(ba)])])]):u}}},Sl=ot.updateQuery,wl=ot.setQueryOptions,$l=ot.setCustomQuery,El=ot.setDefaultQuery,Tl=st.getQueryOptions,Pl=st.checkValueChange,Il=st.checkPropChange,kl=st.getClassName,Al=st.isEqual,Rl=st.getCompositeAggsQuery,xl=st.extractQueryFromCustomQuery,Ll=st.getOptionsForCustomQuery,Ml={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:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultQuery:Wn.func,defaultValue:Wn.string,value:Wn.value,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Select a value"),react:Wn.react,renderLabel:Wn.func,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),showSearch:kt.bool.def(!1),showClear:kt.bool.def(!1),showLoadMore:kt.bool.def(!1),loadMoreLabel:kt.oneOfType([kt.string,kt.any]).def("Load More"),nestedField:Wn.string,index:kt.string,searchPlaceholder:kt.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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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&&Il(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var s=e[o].buckets,a=[].concat(i,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=a}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){Al(e,t)||this.setValue(e)},selectedValue:function(e){this.$data.currentValue!==e&&this.setValue(e||"")},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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,s=t.renderLabel,a=this.$data.isLastBucket,u=[],l=this.$scopedSlots.renderItem||o,c=this.$scopedSlots.renderError||i,d=this.$scopedSlots.renderLabel||s,p=this.$scopedSlots.renderNoResults||this.$props.renderNoResults;return c&&this.error?dr(c)?c(this.error):c:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(u=[{key:this.$props.selectAllLabel}]),e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:kl(this.$props.innerClass,"title")||""},[this.$props.title]),e(_l,{attrs:{innerClass:this.$props.innerClass,items:[].concat(u,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return at({},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&&!a&&e("div",{attrs:{css:Hn}},[e(Bn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:d}})])):p&&dr(p)?e("div",[p()]):p&&!dr(p)?p:null},methods:{setValue:function(e,t){var n=this;void 0===t&&(t=this.$props);Pl(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=Ml.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=xl(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Ll(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.singleDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Ml.defaultQuery(e,t);if(n){var o=n(e,t);r=xl(o),vr(t.componentId,this.setCustomQuery,t,e);var i=Ll(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:L.singleDropdownList})},generateQueryOptions:function(e,t){var n=Tl(e);return e.showLoadMore?Rl({query:n,props:e,after:t}):Qu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Ml.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=this.$data.currentValue,o=Ll(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,at({},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 hr(r,this)}},computed:{hasCustomRenderer:function(){return fr(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=Tl(e);return e.showLoadMore?Rl({query:n,props:e,after:t}):Qu(n,e)},hasInternalComponent:function(){return!0}},jl=Dr(cr((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:wl,updateQuery:Sl,setCustomQuery:$l,setDefaultQuery:El})(Ml),{componentType:L.singleDropdownList,internalComponent:Ml.hasInternalComponent()});Ml.install=function(e){e.component(Ml.name,jl)},Ml.componentType=L.singleDropdownList;var Ql=ot.updateQuery,Vl=ot.setQueryOptions,Dl=ot.setCustomQuery,Fl=ot.setDefaultQuery,Nl=st.isEqual,Ul=st.getQueryOptions,ql=st.checkValueChange,zl=st.checkPropChange,Bl=st.getClassName,Hl=st.getCompositeAggsQuery,Gl=st.extractQueryFromCustomQuery,Wl=st.getOptionsForCustomQuery,Zl={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:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,dataField:Wn.stringRequired,defaultValue:Wn.stringArray,value:Wn.stringArray,defaultQuery:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,placeholder:kt.string.def("Select values"),queryFormat:kt.oneOf(["and","or"]).def("or"),react:Wn.react,renderLabel:Wn.func,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,renderNoResults:kt.any,transformData:Wn.func,selectAllLabel:Wn.string,showCount:kt.bool.def(!0),showFilter:kt.bool.def(!0),size:kt.number,sortBy:kt.oneOf(["asc","desc","count"]).def("count"),title:Wn.title,URLParams:kt.bool.def(!1),showMissing:kt.bool.def(!1),missingLabel:kt.string.def("N/A"),showSearch:kt.bool.def(!1),showClear:kt.bool.def(!1),showLoadMore:kt.bool.def(!1),loadMoreLabel:kt.oneOfType([kt.string,kt.any]).def("Load More"),nestedField:Wn.string,index:kt.string,searchPlaceholder:kt.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:[],vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),yr(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])),Nl(n,e)||this.setValue(e||[],!0)},options:function(e,t){var n=this;e&&zl(t,e,(function(){var t=n.$props,r=t.showLoadMore,o=t.dataField,i=n.$data.modifiedOptions;if(r){var s=e[o].buckets,a=[].concat(i,s.map((function(e){return{key:e.key[o],doc_count:e.doc_count}}))),u=e[o].after_key,l=!s.length;n.after={after:u},n.isLastBucket=l,n.modifiedOptions=a}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){Nl(e,t)||this.setValue(e,!0)},defaultQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateDefaultQueryHandler(this.$data.currentValue,this.$props)},customQuery:function(e,t){br(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,s=t.renderLabel,a=this.$scopedSlots.renderItem||o,u=this.$scopedSlots.renderError||i,l=this.$scopedSlots.renderLabel||s,c=this.$data.isLastBucket,d=this.$scopedSlots.renderNoResults||this.$props.renderNoResults,p=[];return u&&this.error?dr(u)?u(this.error):u:this.hasCustomRenderer||0!==this.$data.modifiedOptions.length||this.isLoading?(this.$props.selectAllLabel&&(p=[{key:this.$props.selectAllLabel}]),e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:Bl(this.$props.innerClass,"title")||""},[this.$props.title]),e(_l,{attrs:{innerClass:this.$props.innerClass,items:[].concat(p,this.$data.modifiedOptions.filter((function(e){return String(e.key).trim().length})).map((function(e){return at({},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:a,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:Hn}},[e(Bn,{on:{click:this.handleLoadMore}},[r])]),customLabelRenderer:l}})])):d&&dr(d)?e("div",[d()]):d&&!dr(d)?d:null},methods:{handleChange:function(e){if(void 0===this.$props.value)this.setValue(e);else{var t=pr(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,s=null;if(o&&e.includes(o))i[o]?(i={},s=[]):(this.$data.modifiedOptions.forEach((function(e){i[e.key]=!0})),i[o]=!0,s=[o]);else if(t){if(s=e,i={},Array.isArray(e)&&e.forEach((function(e){i[e]=!0})),o&&o in i){var a=i,u=(a[o],ct(a,[o].map(pt)));i=at({},u)}}else{if(i[e]){var l=i,c=(l[e],ct(l,[e].map(pt)));i=at({},c)}else i[e]=!0;if(o&&o in i){var d=i,p=(d[o],ct(d,[o].map(pt)));i=at({},p)}s=Object.keys(i)}ql(n.componentId,s,n.beforeValueChange,(function(){r.currentValue=at({},i),r.updateQueryHandler(s,n),r.$emit("valueChange",s),r.$emit("value-change",s)}))},updateDefaultQueryHandler:function(e,t){var n=Zl.defaultQuery(e,t);if(this.defaultQuery){var r=this.defaultQuery(e,t)||{},o=Gl(r);o&&(n=o),yr(t.componentId,this.setDefaultQuery,t,e);var i=Wl(r);this.setQueryOptions(this.internalComponent,i,!1)}this.updateQuery({componentId:this.internalComponent,query:n,value:e,componentType:L.multiDropdownList})},updateQueryHandler:function(e,t){var n=t.customQuery,r=Zl.defaultQuery(e,t);if(n){var o=n(e,t);r=Gl(o),vr(t.componentId,this.setCustomQuery,t,e);var i=Wl(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:L.multiDropdownList})},generateQueryOptions:function(e,t){var n=Ul(e);return e.showLoadMore?Hl({query:n,props:e,after:t}):Qu(n,e)},updateQueryOptions:function(e,t){void 0===t&&(t=!1),e.showLoadMore&&!t&&(this.modifiedOptions=[]);var n=Zl.generateQueryOptions(e,t?this.$data.after:{});if(e.defaultQuery){var r=Object.keys(this.$data.currentValue),o=Wl(e.defaultQuery(r,e));this.setQueryOptions(this.internalComponent,at({},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 hr(r,this)}},computed:{hasCustomRenderer:function(){return fr(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 s,a,u=e.includes(t.missingLabel),l=[(a={},a[o]=(s={},s[t.dataField]=e.filter((function(e){return e!==t.missingLabel})),s),a)];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=Ul(e);return e.showLoadMore?Hl({query:n,props:e,after:t}):Qu(n,e)},hasInternalComponent:function(){return!0}},Kl=Dr(cr((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:Vl,updateQuery:Ql,setCustomQuery:Dl,setDefaultQuery:Fl})(Zl),{componentType:L.multiDropdownList,internalComponent:Zl.hasInternalComponent()});Zl.install=function(e){e.component(Zl.name,Kl)},Zl.componentType=L.multiDropdownList;var Yl=ot.updateQuery,Xl=ot.setQueryOptions,Jl=ot.setCustomQuery,ec=st.isEqual,tc=st.checkValueChange,nc=st.getClassName,rc=st.getOptionsFromQuery,oc=st.handleA11yAction,ic={name:"ToggleButton",props:{componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.any,value:Wn.stringOrArray,filterLabel:Wn.string,nestedField:Wn.string,innerClass:Wn.style,multiSelect:kt.bool,react:Wn.react,showFilter:kt.bool,title:Wn.title,URLParams:kt.bool,renderItem:Wn.func,index:kt.string,enableStrictSelection:kt.bool},data:function(){return this.__state={currentValue:[]},this.__state},beforeMount:function(){var e=this.$props,t=this.selectedValue||e.value||e.defaultValue||[],n=ic.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`."),vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue)},watch:{defaultValue:function(e){this.setValue(ic.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){ec(e,t)||this.handleToggle(e,!0,this.$props)},selectedValue:function(e,t){if(this.$props.multiSelect)ec(this.$data.currentValue,e)||ec(t,e)||this.handleToggle(e||[],!0,this.$props);else{var n=this.$data.currentValue[0]?this.$data.currentValue[0].value:null;ec(n,this.selectedValue)||ec(t,this.selectedValue)||this.handleToggle(this.selectedValue||[],!0,this.$props)}},customQuery:function(e,t){br(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,s=[];s=t?ic.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(s,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);tc(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=ic.defaultQuery(e,t);r&&(o=(r(e,t)||{}).query,this.setQueryOptions(t.componentId,rc(r(e,t)),!1),vr(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:L.toggleButton})},handleClick:function(e){var t=this.$props,n=t.enableStrictSelection,r=t.multiSelect;return!(n&&!r&&this.$data.currentValue.find((function(t){return ec(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(Bn,{class:nc(this.$props.innerClass,"button")+" "+(o?"active":""),on:{click:function(){return t.handleClick(e)},keypress:function(n){return oc(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(sa,{class:Nn},[this.$props.title&&t(eo,{class:nc(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}},sc=Dr(cr((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:Yl,setQueryOptions:Xl,setCustomQuery:Jl})(ic),{componentType:L.toggleButton});ic.install=function(e){e.component(ic.name,sc)},ic.componentType=L.toggleButton;var ac=["options"],uc=ot.updateQuery,lc=ot.setQueryOptions,cc=ot.setCustomQuery,dc=ot.setDefaultQuery,pc=st.parseHits,hc=st.isEqual,fc=st.getCompositeAggsQuery,gc=st.getResultStats,mc=st.extractQueryFromCustomQuery,yc=st.getOptionsForCustomQuery,vc={name:"ReactiveComponent",props:{componentId:Wn.stringRequired,aggregationField:Wn.string,aggregationSize:kt.number,size:kt.number,defaultQuery:Wn.func,customQuery:Wn.func,filterLabel:Wn.string,react:Wn.react,showFilter:kt.bool.def(!0),URLParams:kt.bool.def(!1),distinctField:Wn.string,distinctFieldConfig:Wn.props,index:kt.string},created:function(){var e=this,t=this.$props;this.internalComponent=null,this.$defaultQuery=null,vr(this.componentId,this.setCustomQuery,this.$props,this.selectedValue);var n=t.customQuery,r=t.componentId,o=t.filterLabel,i=t.showFilter,s=t.URLParams,a=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||!a&&!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=mc(c),p=c?yc(c):null;p?this.setQueryOptions(r,at({},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:s})}if(this.setQuery=function(n){var r=n.options,o=ct(n,ac),i=o.query;i&&i.query&&(i=i.query);var s=at({},r,{query:i}),a=s;i&&i.id&&(a=i),e.setCustomQuery(t.componentId,a),r&&e.setQueryOptions(t.componentId,at({},e.getAggsQuery(),r),!1),e.updateQuery(at({},o,{query:s.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){yr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.$defaultQuery=this.$props.defaultQuery(this.selectedValue,this.$props);var h=mc(this.$defaultQuery),f=yc(this.$defaultQuery);f?this.setQueryOptions(this.internalComponent,at({},f,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),this.updateQuery({componentId:this.internalComponent,query:h})}},watch:{hits:function(e,t){hc(e,t)||this.$emit("data",this.getData())},rawData:function(e,t){hc(e,t)||this.$emit("data",this.getData())},aggregations:function(e,t){hc(e,t)||this.$emit("data",this.getData())},aggregationData:function(e,t){hc(e,t)||this.$emit("data",this.getData())},promotedResults:function(e,t){hc(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){hc(e,t)||this.$emit("data",this.getData())},total:function(e,t){hc(e,t)||this.$emit("data",this.getData())},time:function(e,t){hc(e,t)||this.$emit("data",this.getData())},defaultQuery:function(e,t){if(e&&!br(e,t,this.selectedValue,this.$props)){this.$defaultQuery=e(this.selectedValue,this.$props);var n=mc(this.$defaultQuery),r=yc(this.$defaultQuery);r?this.setQueryOptions(this.internalComponent,at({},r,this.getAggsQuery()),!1):this.setQueryOptions(this.internalComponent,this.getAggsQuery(),!1),yr(this.componentId,this.setDefaultQuery,this.$props,this.selectedValue),this.updateQuery({componentId:this.internalComponent,query:n})}},customQuery:function(e,t){if(e&&!br(e,t,this.selectedValue,this.$props)){var n=this.$props.componentId;this.$customQuery=e(this.selectedValue,this.$props);var r=mc(this.$customQuery),o=yc(this.$customQuery);o?this.setQueryOptions(n,at({},o,this.getAggsQuery()),!1):this.setQueryOptions(n,this.getAggsQuery(),!1),vr(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=at({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:fc({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=pc(e);if(r.length){var s=r.map((function(e){return e._id})).filter(Boolean);s&&(i=i.filter((function(e){return!s.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 gc(this)}},hasInternalComponent:function(e){return!!e.defaultQuery}},bc=Dr(cr((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:lc,updateQuery:uc,setCustomQuery:cc,setDefaultQuery:dc})(vc),{componentType:L.reactiveComponent});vc.install=function(e){e.component(vc.name,bc)},vc.componentType=L.reactiveComponent;var Cc=ot.setValue,Oc=ot.clearValues,_c=ot.resetValuesToDefault,Sc=st.getClassName,wc=st.handleA11yAction,$c={name:"SelectedFilters",props:{className:kt.string.def(""),clearAllLabel:kt.string.def("Clear All"),innerClass:Wn.style,showClearAll:kt.bool.def(!0),title:Wn.title,resetToDefault:kt.bool.def(!1),clearAllBlacklistComponents:kt.array,resetToValues:kt.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,clearValue:this.clearValue,setValue:this.setValue,resetValuesToDefault:this.resetValuesToDefault});var n=this.renderFilters(),r=!!n.length;return t(sa,{class:Dn(this.theme)+" "+(this.$props.className||"")},[this.$props.title&&r&&t(eo,{class:Sc(this.$props.innerClass,"title")||""},[this.$props.title]),n,this.$props.showClearAll&&r&&n.length>1?t(Bn,{class:Sc(this.$props.innerClass,"button")||"",on:at({},{click:this.clearValues,keypress:function(t){return wc(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)},clearValue:function(e){var t=this.resetToDefault,n=this.resetToValues;t?this.resetValuesToDefault(this.components.filter((function(t){return t!==e}))):this.setValue(e,(null==n?void 0:n[e])||null),this.$emit("clear",null==n?void 0:n[e])},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},renderFilterButton:function(e,t,n,r){var o=this.$createElement;return o(Bn,{class:Sc(this.$props.innerClass,"button")||"",key:t,on:at({},{click:n,keypress:function(e){return wc(e,n)}}),attrs:{tabIndex:"0"}},[o("span",[r]),o("span",["✕"])])},renderFilters:function(){var e=this,t=this.selectedValues;return Object.keys(t).filter((function(n){return e.components.includes(n)&&t[n].showFilter})).map((function(n,r){var o=t[n],i=o.label,s=o.value,a=Array.isArray(s);if(i&&(a&&s.length||!a&&s)){var u=e.renderValue(s,a);return e.renderFilterButton(n,n+"-"+(r+1),(function(){return e.remove(n,s)}),t[n].label+": "+Tr(u))}return null})).filter(Boolean)}},watch:{selectedValues:function(e){this.$emit("change",e)}}},Ec=cr((function(e){return{components:e.components,selectedValues:e.selectedValues}}),{clearValuesAction:Oc,setValue:Cc,resetValuesToDefault:_c})($c);$c.install=function(e){e.component($c.name,Ec)};var Tc=ot.updateQuery,Pc=ot.setQueryOptions,Ic=ot.setCustomQuery,kc=st.isEqual,Ac=st.checkValueChange,Rc=st.getClassName,xc=st.getOptionsFromQuery,Lc={name:"SingleRange",data:function(){return this.__state={currentValue:null},this.type="range",this.__state},props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.string,value:Wn.value,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showRadio:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),nestedField:Wn.string,index:kt.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`."),vr(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){kc(e,t)||this.setValue(e)},selectedValue:function(e){kc(this.$data.currentValue,e)||this.setValue(e)},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue,this.$props)}},render:function(){var e=this,t=arguments[0];return t(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Rc(this.$props.innerClass,"title")},[this.$props.title]),t(Mu,{class:Rc(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(xu,{class:Rc(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:Rc(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="string"==typeof e?Lc.parseValue(e,t):e;Ac(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=Lc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=xc(n(e,t));vr(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:L.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}},Mc=Dr(cr((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:Tc,setQueryOptions:Pc,setCustomQuery:Ic})(Lc),{componentType:L.singleRange});Lc.install=function(e){e.component(Lc.name,Mc)},Lc.componentType=L.singleRange;var jc=ot.updateQuery,Qc=ot.setQueryOptions,Vc=ot.setCustomQuery,Dc=st.isEqual,Fc=st.checkValueChange,Nc=st.getClassName,Uc=st.getOptionsFromQuery,qc={name:"MultiRange",data:function(){return this.state={currentValue:[],showModal:!1,selectedValues:{}},this.type="range",this.state},props:{beforeValueChange:Wn.func,className:kt.string.def(""),componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.stringArray,value:Wn.stringArray,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),nestedField:Wn.string,index:kt.string},methods:{handleClick:function(e){if(void 0===this.$props.value)this.selectItem(e.target.value);else{var t=pr(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,s=this.selectedValues;if(e)if(t){i=qc.parseValue(e,n);var a={};i.forEach((function(e){a[[e.label]]=!0})),s=r?a:at({},s,a)}else if(s[e]){i=i.filter((function(t){return t.label!==e}));var u=s,l=(u[e],ct(u,[e].map(pt)));s=l}else{var c,d=n.data.filter((function(t){return-1!==e.indexOf(t.label)}));i=[].concat(i,d),s=at({},s,((c={})["object"==typeof e?e.label:e]=!0,c))}else i=[],s={};Fc(n.componentId,i,n.beforeValueChange,(function(){o.currentValue=i,o.selectedValues=s,o.updateQueryHandler(i,n),o.$emit("valueChange",Object.keys(s)),o.$emit("value-change",Object.keys(s))}))},updateQueryHandler:function(e,t){var n=t.customQuery,r=qc.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=Uc(n(e,t));vr(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:L.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){Dc(e,t)||this.selectItem(e,!0,void 0,!0)},selectedValue:function(e){Dc(this.$data.currentValue,e)||this.selectItem(e,!0,void 0,!0)},customQuery:function(e,t){br(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`."),vr(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(sa,{class:this.$props.className},[this.$props.title&&t(eo,{class:Nc(this.$props.innerClass,"title")},[this.$props.title]),t(Mu,{class:Nc(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(Lu,{class:Nc(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:at({},{checked:e.selectedValues[n.label]}),on:at({},{click:e.handleClick})}),t("label",{class:Nc(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}},zc=Dr(cr((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:jc,setQueryOptions:Qc,setCustomQuery:Vc})(qc),{componentType:L.multiRange});qc.install=function(e){e.component(qc.name,zc)},qc.componentType=L.multiRange;var Bc,Hc={name:"ResultCardTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(eo,Jr([{},this.$props]),[t])},install:function(e){e.component(Hc.name,Hc)}},Gc=["src"],Wc={name:"ResultCardImage",props:{src:kt.string.isRequired},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=ct(t,Gc);return e(bo,Jr([{style:{backgroundImage:"url("+n+")"}},r]))},install:function(e){e.component(Wc.name,Wc)}},Zc={name:"ResultCardDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Jr([{},n]),[r])},install:function(e){e.component(Zc.name,Zc)}},Kc=["href","target"],Yc={name:"ResultCard",components:{ResultCardTitle:Hc,ResultCardImage:Wc,ResultCardDescription:Zc},props:{target:kt.string.def("_blank"),href:Wn.string},render:function(){var e=arguments[0],t=this.$slots.default,n=this.$props,r=n.href,o=n.target,i=ct(n,Kc);return e(Co,Jr([{attrs:{href:r,target:o,rel:"_blank"===o?"noopener noreferrer":null}},i]),[t])},install:function(e){e.component(Yc.name,Yc),e.component(Hc.name,Hc),e.component(Wc.name,Wc),e.component(Zc.name,Zc)}},Xc={name:"ResultListContent",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("article",Jr([{},n]),[r])},install:function(e){e.component(Xc.name,Xc)}},Jc={name:"ResultListDescription",functional:!0,render:function(e,t){var n=t.props,r=t.children,o=arguments[0];return o("div",Jr([{},n]),[r])},install:function(e){e.component(Jc.name,Jc)}},ed=["src","small"],td={name:"ResultListImage",props:{src:kt.string.isRequired,small:kt.bool.def(!1)},render:function(){var e=arguments[0],t=this.$props,n=t.src,r=t.small,o=ct(t,ed);return e(ro,Jr([{attrs:{src:n,small:r}},o]))},install:function(e){e.component(td.name,td)}},nd={name:"ResultListTitle",render:function(){var e=arguments[0],t=this.$slots.default;return e(eo,Jr([{},this.$props]),[t])},install:function(e){e.component(nd.name,nd)}},rd=["href","target"],od={name:"ResultList",props:{href:Wn.string,target:kt.string.def("_blank")},components:{ResultListContent:Xc,ResultListDescription:Jc,ResultListImage:td,ResultListTitle:nd},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===td.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=ct(t,rd),i=this.hasImage,s=this.isSmall,a=this.$slots.default;return e(oo,Jr([{attrs:{href:n,image:i,small:s,target:r,rel:"_blank"===r?"noopener noreferrer":null}},o]),[a])},install:function(e){e.component(od.name,od),e.component(Xc.name,Xc),e.component(Jc.name,Jc),e.component(td.name,td),e.component(nd.name,nd)}},id={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(),s=i.default;void 0===s&&(s=[]);var a=i.placeholder;return n._isMounted?s:(n.$once("hook:mounted",(function(){n.$forceUpdate()})),o.placeholderTag&&(o.placeholder||a)?e(o.placeholderTag,{class:["no-ssr-placeholder"]},o.placeholder||a):s.length>0?s.map((function(){return e(!1)})):e(!1))}},sd=Jt("div")(Bc||(Bc=dt(["\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"]))),ad=function(){var e={NoSSR:id};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=At["vue-slider-component"];e["vue-slider-component"]=t},document.head.appendChild(t)}catch(e){console.error("Unable to load vue-slider",e)}return e},ud=ot.updateQuery,ld=ot.setQueryOptions,cd=ot.setCustomQuery,dd=st.checkValueChange,pd=st.getClassName,hd=st.getOptionsFromQuery,fd=st.isEqual,gd={name:"RangeSlider",components:ad(),inject:{theme:{from:"theme_reactivesearch"}},data:function(){return{currentValue:this.$props.range?[this.$props.range.start,this.$props.range.end]:[],stats:[]}},props:{beforeValueChange:Wn.func,className:kt.string.def(""),range:kt.shape({start:kt.integer.def(0),end:kt.integer.def(10)}),rangeLabels:Wn.rangeLabels,componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.range,value:Wn.range,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string,index:kt.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);dd(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=gd.defaultQuery(e,t);if(n){r=(n(e,t)||{}).query;var o=hd(n(e,t));vr(this.componentId,this.setCustomQuery,this.$props,this.currentValue),this.setQueryOptions(t.componentId,o,!1)}var i=t.showFilter,s=t.range,a=s.start,u=s.end,l=e[0],c=e[1],d=l===a&&c===u;this.updateQuery({componentId:t.componentId,query:r,value:e,label:t.filterLabel,showFilter:i&&!d,URLParams:t.URLParams,componentType:L.rangeSlider})}},watch:{defaultValue:function(e){this.handleChange(gd.parseValue(e,this.$props))},value:function(e,t){fd(e,t)||this.handleChange(gd.parseValue(e,this.$props))},selectedValue:function(e){fd(this.$data.currentValue,e)||(this.handleChange(gd.parseValue(e,this.$props)),this.$emit("change",e))},customQuery:function(e,t){br(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`."),vr(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(gd.parseValue(r,this.$props)):t?this.handleChange(gd.parseValue(t,this.$props)):n&&this.handleChange(gd.parseValue(n,this.$props)))},render:function(){var e=arguments[0];return e(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:pd(this.$props.innerClass,"title")},[this.$props.title]),this.$props.range?e(id,[e(sd,{class:pd(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:at({},this.$props.sliderOptions)}),this.$props.rangeLabels&&e("div",{class:"label-container"},[e("label",{class:pd(this.$props.innerClass,"label")||"range-label-left"},[this.$props.rangeLabels.start]),e("label",{class:pd(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]:[]}},md=Dr(cr((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:ud,setQueryOptions:ld,setCustomQuery:cd})(gd),{componentType:L.rangeSlider});gd.install=function(e){e.component(gd.name,md)},gd.componentType=L.rangeSlider;var yd=ot.addComponent,vd=ot.removeComponent,bd=ot.watchComponent,Cd=ot.updateQuery,Od=ot.setQueryListener,_d=ot.setQueryOptions,Sd=ot.setComponentProps,wd=ot.setCustomQuery,$d=ot.updateComponentProps,Ed=st.checkValueChange,Td=st.getClassName,Pd=st.isEqual,Id=st.checkSomePropChange,kd=st.extractQueryFromCustomQuery,Ad=st.getOptionsForCustomQuery,Rd={name:"DynamicRangeSlider",components:ad(),props:{beforeValueChange:Wn.func,className:kt.string.def(""),rangeLabels:Wn.func,componentId:Wn.stringRequired,customQuery:Wn.func,data:Wn.data,dataField:Wn.stringRequired,defaultValue:Wn.func,filterLabel:Wn.string,innerClass:Wn.style,react:Wn.react,showFilter:kt.bool.def(!0),destroyOnUnmount:kt.bool,showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.string,index:kt.string,value:Wn.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,L.dynamicRangeSlider),this.setComponentProps(this.internalRangeComponent,this.$props,L.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`."),vr(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(Rd.parseValue(this.selectedValue,this.$props)):t&&this.handleChange(Rd.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(Rd.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]];Ed(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=Rd.defaultQuery(e,this.$props);if(this.$props.customQuery){var n=this.$props.customQuery(e,this.$props),r=kd(n);r&&(t=r);var o=Ad(n);vr(this.componentId,this.setCustomQuery,this.$props,e),this.setQueryOptions(this.$props.componentId,o,!1)}var i=this.range||{start:e[0],end:e[1]},s=i.start,a=i.end,u=e[0],l=e[1],c=u===s&&l===a;this.updateQuery({componentId:this.$props.componentId,query:t,value:e,label:this.$props.filterLabel,showFilter:this.$props.showFilter&&!c,URLParams:this.$props.URLParams,componentType:L.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=gr(e);Id(e,this.componentProps,n,(function(){t.updateComponentProps(t.componentId,e,L.dynamicRangeSlider),t.updateComponentProps(t.internalRangeComponent,e,L.dynamicRangeSlider)}))}},react:function(){this.setReact()},selectedValue:function(e){if(!Pd(e,this.currentValue)){var t=e||{start:this.range.start,end:this.range.end};this.$emit("change",t),this.handleChange(Rd.parseValue(t,this.$props))}},range:function(e,t){if(!Pd(e,t)&&this.currentValue){var n=this.currentValue||[],r=n[0],o=n[1],i=t||{},s=i.start,a=i.end,u=r===s?e.start:r,l=o===a?e.end:o;this.handleChange([u,l])}},customQuery:function(e,t){br(e,t,this.$data.currentValue,this.$props)||this.updateQueryHandler(this.$data.currentValue)},value:function(e,t){Pd(e,t)||this.handleChange(Rd.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(sa,{class:this.$props.className},[this.$props.title&&e(eo,{class:Td(this.$props.innerClass,"title")},[this.$props.title]),e(id,[e(sd,{class:Td(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:at({},this.$props.sliderOptions)}),this.labels?e("div",{class:"label-container"},[e("label",{class:Td(this.$props.innerClass,"label")||"range-label-left"},[this.labels.start]),e("label",{class:Td(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}},xd=cr((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:yd,removeComponent:vd,updateQuery:Cd,watchComponent:bd,setQueryListener:Od,setQueryOptions:_d,setComponentProps:Sd,setCustomQuery:wd,updateComponentProps:$d})(Rd);Rd.install=function(e){e.component(Rd.name,xd)},Rd.componentType=L.dynamicRangeSlider;var Ld=st.getSearchState,Md=function(e){return void 0===e&&(e={}),at({},e,{props:e.componentProps})},jd=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},Qd=function(e,t){return Object.keys(e).reduce((function(n,r){var o;return at({},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))}),{})},Vd={name:"StateProvider",props:{onChange:kt.func,componentIds:kt.oneOfType([kt.string,kt.arrayOf(kt.string)]),includeKeys:kt.arrayOf(kt.string).def(["hits","value","aggregations","error"]),strict:kt.bool.def(!0)},data:function(){return this.__state={searchState:null},this.__state},created:function(){this.searchState=Qd(Ld(Md(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=Qd(Ld(Md(this.searchStateProps)),this.includeKeys))},setSearchState:function(e){void 0===e&&(e={});var t=this.components,n={};t.filter((function(e){return!Ve(e)})).forEach((function(t){n[t]=t in e?e[t]:null})),this.setValues(n)}},render:function(){var e=this.searchState,t=this.$scopedSlots.default;return t?t({searchState:e,setSearchState:this.setSearchState}):null}},Dd=cr((function(e,t){return{selectedValues:jd(e.selectedValues,t),queryLog:jd(e.queryLog,t),dependencyTree:jd(e.dependencyTree,t),componentProps:jd(e.props,t),hits:jd(e.hits,t),aggregations:jd(e.aggregations,t),isLoading:jd(e.isLoading,t),error:jd(e.error,t),promotedResults:jd(e.promotedResults,t),customData:jd(e.customData,t),settings:jd(e.settings,t),rawData:jd(e.rawData,t),components:jd(e.components,t)}}),{setValues:Ue})(Vd);Vd.install=function(e){e.component(Vd.name,Dd)};var Fd=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 s=Object.keys(e).map((function(t){return"".concat(encodeURIComponent(t),"=").concat(encodeURIComponent(e[t]))})).join("&"),a="".concat(i,"maps/api/js?").concat(s);o.setAttribute("src",a),o.setAttribute("async",""),o.setAttribute("defer",""),document.head.appendChild(o)}});t.default=o}));r(Fd);var Nd=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(Nd);var Ud=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=Nd)&&n.__esModule?n:{default:n}}));r(Ud);var qd=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(qd);var zd=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(zd);var Bd=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 s=n[i],a=s.twoWay,u=s.type,l=s.trackProperties;if(!s.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}),a&&(e.$gmapOptions.autobindAllEvents||e.$listeners[p])&&t.addListener(p,(function(){e.$emit(p,t[d]())}))}}))};var n,r=(n=zd)&&n.__esModule?n:{default:n};function o(e){return e.charAt(0).toUpperCase()+e.slice(1)}}));r(Bd);Bd.getPropsValues,Bd.bindProps;var Hd=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})),{}}}})),Gd=r(Hd),Wd=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 s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.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(Wd);var Zd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.mappedProps,i=e.name,a=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,Bd.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=a();return e[v]=d?new((o=Function.prototype.bind).call.apply(o,[l,null].concat(function(e){if(Array.isArray(e))return s(e)}(i=d(u,(0,Bd.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 s(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)?s(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,Bd.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(qd),r=i(Hd),o=i(Wd);function i(e){return e&&e.__esModule?e:{default:e}}function s(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){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?a(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(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(Zd);var Kd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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(Kd);var Yd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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(Yd);var Xd=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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})),Jd=r(Xd),ep=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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 s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.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 s={draggable:{type:Boolean},editable:{type:Boolean},options:{twoWay:!1,type:Object},path:{type:Array,twoWay:!0}},a=(0,r.default)({mappedProps:s,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=[],s=function(){e.$emit("path_changed",e.$polylineObject.getPath())};i.push([r,r.addListener("insert_at",s)]),i.push([r,r.addListener("remove_at",s)]),i.push([r,r.addListener("set_at",s)]),t=function(){i.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=a}));r(ep);var tp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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 s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==a.return||a.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 s(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={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:a,name:"polygon",ctr:function(){return google.maps.Polygon},beforeCreate:function(e){if(!e.path){var t=e;t.path;e=s(t,["path"])}if(!e.paths){var n=e;n.paths;e=s(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())},s=[],a=e.getPaths(),u=0;u<a.getLength();u+=1){var l=a.getAt(u);s.push([l,l.addListener("insert_at",i)]),s.push([l,l.addListener("remove_at",i)]),s.push([l,l.addListener("set_at",i)])}s.push([a,a.addListener("insert_at",i)]),s.push([a,a.addListener("remove_at",i)]),s.push([a,a.addListener("set_at",i)]),n=function(){s.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(),s=[],a=function(){t.$emit("path_changed",e.getPath())};s.push([i,i.addListener("insert_at",a)]),s.push([i,i.addListener("remove_at",a)]),s.push([i,i.addListener("set_at",a)]),n=function(){s.forEach((function(e){var t=o(e,2)[1];google.maps.event.removeListener(t)}))}}}),{deep:this.deepWatch,immediate:!0})}});t.default=u}));r(tp);var np=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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(np);var rp=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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(rp);var op,ip=(op=require("../components-implementation/drawing-manager")).default||op;ip.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(e.$slots,"default",{setDrawingMode:e.setDrawingMode,deleteSelection:e.deleteSelection})])},ip.__file="node_modules/gmap-vue/dist/components/drawing-manager.vue";var sp=Object.freeze({__proto__:null,default:ip}),ap=function(e){return e.default||e}(require("../components-implementation/info-window")),up={ref:"flyaway"};ap.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",up,[t.createCommentVNode(" so named because it will fly away to another component "),t.renderSlot(e.$slots,"default")],512)])},ap.__file="node_modules/gmap-vue/dist/components/info-window.vue";var lp=Object.freeze({__proto__:null,default:ap}),cp=function(e){return e.default||e}(require("../components-implementation/map")),dp={class:"vue-map-container"},pp={ref:"vue-map",class:"vue-map"},hp={class:"vue-map-hidden"};function fp(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))}}fp("\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"),cp.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",dp,[t.createElementVNode("div",pp,null,512),t.createElementVNode("div",hp,[t.renderSlot(e.$slots,"default")]),t.renderSlot(e.$slots,"visible")])},cp.__file="node_modules/gmap-vue/dist/components/map.vue";var gp=Object.freeze({__proto__:null,default:cp}),mp=function(e){return e.default||e}(require("../components-implementation/street-view-panorama")),yp={class:"vue-street-view-pano-container"},vp={ref:"vue-street-view-pano",class:"vue-street-view-pano"};fp("\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"),mp.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("div",yp,[t.createElementVNode("div",vp,null,512),t.renderSlot(e.$slots,"default")])},mp.__file="node_modules/gmap-vue/dist/components/street-view-panorama.vue";var bp=Object.freeze({__proto__:null,default:mp}),Cp=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(Cp);var Op=o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Cp)&&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}},s={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,Bd.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,Bd.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=s})),_p=r(Op),Sp=["textContent"],wp=["placeholder"];_p.render=function(e,n,r,o,i,s){return t.openBlock(),t.createElementBlock("label",null,[t.createElementVNode("span",{textContent:t.toDisplayString(e.label)},null,8,Sp),t.createElementVNode("input",{type:"text",placeholder:e.placeholder,class:t.normalizeClass(e.className),ref:"input"},null,10,wp)])},_p.__file="node_modules/gmap-vue/dist/components/place-input.vue";var $p=Object.freeze({__proto__:null,default:_p,__moduleExports:Op}),Ep=function(e){return e.default||e}(require("../components-implementation/autocomplete")),Tp={key:0};Ep.render=function(e,n,r,o,i,s){return e.$scopedSlots.input?(t.openBlock(),t.createElementBlock("span",Tp,[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,!0)),null,16))},Ep.__file="node_modules/gmap-vue/dist/components/autocomplete.vue";var Pp=Object.freeze({__proto__:null,default:Ep}),Ip=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(Ip);var kp=i(sp),Ap=i(lp),Rp=i(gp),xp=i(bp),Lp=i($p),Mp=i(Pp),jp=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),S=new e({data:{gmapApi:null}});var y=new e,v=(0,r.default)(n.default,S)(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",s.default),e.component("GmapInfoWindow",p.default),e.component("GmapHeatmapLayer",i.default),e.component("GmapKmlLayer",o.default),e.component("GmapPolyline",a.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 S.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 s.default}}),Object.defineProperty(t,"Polyline",{enumerable:!0,get:function(){return a.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(Fd),r=C(Ud),o=C(Kd),i=C(Yd),s=C(Xd),a=C(ep),u=C(tp),l=C(np),c=C(rp),d=C(kp),p=C(Ap),h=C(Rp),f=C(xp),g=C(Lp),m=C(Mp),y=C(Hd),v=C(Zd),b=C(Ip);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 S=null})),Qp=r(jp),Vp=jp.install,Dp=jp.gmapApi,Fp=jp.Cluster,Np=Object.freeze({__proto__:null,default:Qp,__moduleExports:jp,install:Vp,gmapApi:Dp,Cluster:Fp}),Up=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(Up);for(var qp=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(qd),r=a(Ip),o=a(Up),i=a(zd),s=a(Wd);function a(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,s.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,Bd.getPropsValues)(e,p)),s=(r.options,u(r,["options"])),a=e.getRecycleKey();return e.options.recycle&&window[a]?(t.appendChild(window[a].div),e.$mapObject=window[a].map,e.$mapObject.setOptions(s)):(e.$mapObject=new google.maps.Map(t,s),window[a]={map:e.$mapObject}),(0,Bd.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}))),zp="0123456789bcdefghjkmnpqrstuvwxyz",Bp={},Hp=0;Hp<zp.length;Hp++)Bp[zp.charAt(Hp)]=Hp;var Gp=[0,5,7,8,11,12,13,15,16,17,18],Wp=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=Gp[i]}else void 0===n&&(n=9);for(var s,a=[],u=0,l=0,c=0,d=90,p=-90,h=180,f=-180;a.length<n;)if(l%2==0?t>(s=(h+f)/2)?(c=1+(c<<1),f=s):(c=0+(c<<1),h=s):e>(s=(d+p)/2)?(c=1+(c<<1),p=s):(c=0+(c<<1),d=s),l++,5===++u){var g=zp[c];a.push(g),u=0,c=0}return a.join("")},Zp=function(e,t,n){n=n||52;for(var r,o=0,i=90,s=-90,a=180,u=-180,l=0;o<n;)l*=2,o%2==0?t>(r=(a+u)/2)?(l+=1,u=r):a=r:e>(r=(i+s)/2)?(l+=1,s=r):i=r,o++;return l},Kp=function(e){for(var t,n=!0,r=90,o=-90,i=180,s=-180,a=0,u=0,l=e.length;u<l;u++){var c=e[u].toLowerCase();a=Bp[c];for(var d=4;d>=0;d--){var p=a>>d&1;n?(t=(i+s)/2,1===p?s=t:i=t):(t=(r+o)/2,1===p?o=t:r=t),n=!n}}return[o,s,r,i]},Yp=function(e,t){for(var n=90,r=-90,o=180,i=-180,s=0,a=(t=t||52)/2,u=0;u<a;u++)s=Xp(e,2*(a-u)-1),0===Xp(e,2*(a-u)-2)?n=(n+r)/2:r=(n+r)/2,0===s?o=(o+i)/2:i=(o+i)/2;return[r,i,n,o]};function Xp(e,t){return e/Math.pow(2,t)&1}var Jp=function(e){var t=Kp(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}}},eh=function(e,t){var n=Yp(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}}},th=function(e,t){var n=Jp(e),r=n.latitude+t[0]*n.error.latitude*2,o=n.longitude+t[1]*n.error.longitude*2;return o=rh(o),r=oh(r),Wp(r,o,e.length)},nh=function(e,t,n){var r=eh(e,n=n||52),o=r.latitude+t[0]*r.error.latitude*2,i=r.longitude+t[1]*r.error.longitude*2;return i=rh(i),o=oh(o),Zp(o,i,n)};function rh(e){return e>180?e%180-180:e<-180?180+e%180:e}function oh(e){return e>90?90:e<-90?-90:e}var ih={ENCODE_AUTO:"auto",encode:Wp,encode_uint64:Zp,encode_int:Zp,decode:Jp,decode_int:eh,decode_uint64:eh,decode_bbox:Kp,decode_bbox_uint64:Yp,decode_bbox_int:Yp,neighbor:th,neighbor_int:nh,neighbors:function(e){var t,n,r=e.length,o=Jp(e),i=o.latitude,s=o.longitude,a=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return t=i+e*a,n=rh(n=s+o*u),t=oh(t),Wp(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=eh(e,t=t||52),i=o.latitude,s=o.longitude,a=2*o.error.latitude,u=2*o.error.longitude;function l(e,o){return n=i+e*a,r=rh(r=s+o*u),n=oh(n),Zp(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=Wp(e,t,o=o||9),s=Wp(n,r,o),a=Jp(i),u=2*a.error.latitude,l=2*a.error.longitude,c=Kp(i),d=Kp(s),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(th(i,[g,m]));return f},bboxes_int:function(e,t,n,r,o){for(var i=Zp(e,t,o=o||52),s=Zp(n,r,o),a=eh(i,o),u=2*a.error.latitude,l=2*a.error.longitude,c=Yp(i,o),d=Yp(s,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(nh(i,[g,m],o));return f}},sh=ot.setStreaming,ah=ot.setQueryOptions,uh=ot.updateQuery,lh=ot.loadMore,ch=ot.setValue,dh=ot.updateComponentProps,ph=ot.setDefaultQuery,hh=ot.recordResultClick,fh=ot.setMapData,gh=st.isEqual,mh=st.getQueryOptions,yh=st.getClassName,vh=st.parseHits,bh=st.getOptionsFromQuery,Ch=st.getResultStats,Oh={lat:37.7749,lng:122.4194},_h={width:"100%",height:"100vh",position:"relative"};function Sh(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 at({},e,{lat:parseFloat((e.lat+o).toFixed(n))})}function wh(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=ih.decode(e);return{lat:n.latitude,lng:n.longitude};case"array":return{lat:e[1],lng:e[0]};default:return e}}var $h={name:"ReactiveMap",props:{className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,react:Wn.react,size:Wn.number,sortBy:Wn.sortBy,URLParams:kt.bool,autoCenter:kt.bool,getMapRef:kt.func.isRequired,center:Wn.location,defaultCenter:Wn.location,defaultPin:Wn.string,defaultZoom:kt.number.def(13),defaultQuery:Wn.func,innerClass:Wn.style,loader:Wn.title,render:Wn.func,renderItem:Wn.func,renderError:Wn.title,pages:kt.number.def(5),currentPage:kt.number.def(0),pagination:kt.bool,showMarkers:kt.bool,defaultSearchAsMove:kt.bool,showSearchAsMove:kt.bool,defaultRadius:Wn.number,unit:Wn.string,autoClosePopover:kt.bool,renderMap:kt.func.isRequired,renderPopover:kt.func,calculateMarkers:kt.func,searchAsMoveLabel:kt.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 at({},Ch(this),{currentPage:this.currentPageState,displayedResults:e.length})},hasCustomRender:function(){return fr(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(!br(e,t,null,this.$props)){var n=mh(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),bh(this.$defaultQuery)&&(n=at({},n,bh(this.$defaultQuery))),this.setQueryOptions(this.$props.componentId,n,!1);this.setDefaultQueryForRSAPI();var s={mapBoxBounds:this.mapBoxBounds};this.setMapData(this.componentId,i,!0,!0,s),this.currentPageState=0,this.from=0}},promotedResults:function(e,t){gh(e,t)||this.$emit("data",this.getData())},hidden:function(e,t){gh(e,t)||this.$emit("data",this.getData())},time:function(e,t){gh(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(!gh(e,t)){var r=this.promotedResults,o=this.hits,i=vh(o)||[],s=vh(r)||[],a=i;if(s.length){var u=s.map((function(e){return e._id})).filter(Boolean);u&&(a=a.filter((function(e){return!u.includes(e._id)}))),a=[].concat(s,a)}a=a.filter((function(e){return!!e[n.dataField]})).map((function(e){var t;return at({},e,((t={})[n.dataField]=wh(e[n.dataField]),t))})),this.filteredResults=this.addNoise(a),this.calculateMarkers&&(this.markersData=this.calculateMarkers({data:this.filteredResults,rawData:this.rawData})||[]),this.$emit("data",this.getData())}},center:function(e,t){if(!gh(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(Oh)},addNoise:function(e){var t=this,n={},r=[];return e.forEach((function(e){var o=at({},e),i=t.parseLocation(e[t.dataField]),s=JSON.stringify(i),a=n[s]||0;o[t.dataField]=a?Sh(i,a):i,r=[].concat(r,[o]),n[s]=a+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,s=0;n.forEach((function(e){if(e){var t,n,r=wh(e);t=r.lat*Math.PI/180,n=(void 0!==r.lng?r.lng:r.lon)*Math.PI/180;var a=Math.cos(t)*Math.cos(n),u=Math.cos(t)*Math.sin(n),l=Math.sin(t);o+=a,i+=u,s+=l}})),o/=r,i/=r,s/=r;var a=Math.atan2(i,o),u=Math.sqrt(o*o+i*i);return{lat:180*Math.atan2(s,u)/Math.PI,lng:180*a/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=vh(o)||[],s=vh(t)||[],a=r*e,u=this.filteredResults||[];return this.markersData&&(u=this.markersData),{results:i,resultsToRender:u,customData:n||{},promotedResults:s,loadMore:this.loadMore,base:a,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=at({error:this.error,loading:this.isLoading,loadMore:this.loadMore,triggerClickAnalytics:this.triggerClickAnalytics,setPage:this.setPage},this.getData());return hr(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=mh(this.$props);n.from=this.$data.from,this.from=t,this.currentPageState=e,this.loadMoreAction(this.componentId,at({},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 s;t=i.getNorthEast().lat(),n=i.getSouthWest().lat(),r=i.getNorthEast().lng();var a={top_left:[i.getSouthWest().lng(),t],bottom_right:[r,n]};this.mapBoxBounds=a;var u={geo_bounding_box:(s={},s[this.dataField]=a,s)};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=mh(this.$props);this.from=e,this.loadMoreAction(this.componentId,at({},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 at({},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?dr(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:yh(this.innerClass,"checkboxContainer")||null}},[e(Lu,{attrs:{type:"checkbox",id:this.$props.componentId+"-searchasmove",checked:this.searchAsMove,show:!0},class:yh(this.$props.innerClass,"checkbox"),on:{click:this.toggleSearchAsMove}}),e("label",{attrs:{className:yh(this.innerClass,"label")||null,for:this.$props.componentId+"-searchasmove"}},[this.searchAsMoveLabel])]):null},renderPagination:function(){return(0,this.$createElement)(Jn,{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},L.reactiveMap),this.updateComponentProps(this.internalComponent,{from:this.from},L.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=mh(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=at({},t,bh(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,s=this.center||this.defaultCenter,a=this.getArrPosition(s),u={distance:this.defaultRadius,coordinates:a.lat+", "+a.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:at({},_h,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])}},Eh=Dr(cr((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:lh,setPageURL:ch,setQueryOptions:ah,setStreaming:sh,updateQuery:uh,updateComponentProps:dh,setDefaultQuery:ph,recordResultClick:hh,setMapData:fh})($h),{componentType:L.reactiveMap,internalComponent:!0});$h.install=function(e){e.component($h.name,Eh)},$h.componentType=L.reactiveMap;var Th=function e(){!function(e,t){for(var n in t.prototype)e.prototype[n]=t.prototype[n]}(e,google.maps.OverlayView)};function Ph(e){return Object.keys(e).reduce((function(t,n){return e[n]&&t.push(n+":"+e[n]),t}),[]).join(";")}function Ih(e){return e?e+"px":void 0}var kh=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}ut(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],s=o[1],a=100*parseInt(i,10)+parseInt(s,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})),a>=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(),s=n.cluster_.getBounds();r.getMap().fitBounds(s),setTimeout((function(){r.getMap().fitBounds(s),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="'+Ph({position:"absolute",top:Ih(this.anchorText_[0]),left:Ih(this.anchorText_[1]),color:this.style.textColor,"font-size":Ih(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:Ih(this.style.width),"line-height":Ih(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:Ih(this.style.width),height:Ih(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=Ph(Object.assign({position:"absolute",top:Ih(n),left:Ih(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 Ph({"z-index":""+this.cluster_.getMarkerClusterer().getZIndex(),top:Ih(e.y),left:Ih(e.x),width:Ih(this.style.width),height:Ih(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}(Th),Ah=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 kh(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 s=0;s<o;s++)this.markers_[s].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}(),Rh=function(e,t,n){return void 0!==e[t]?e[t]:n},xh=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_=Rh(i.options,"zoomOnClick",!0),i.averageCenter_=Rh(i.options,"averageCenter",!1),i.ignoreHidden_=Rh(i.options,"ignoreHidden",!1),i.enableRetinaIcons_=Rh(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}ut(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 s=t.fromDivPixelToLatLng(o),a=t.fromDivPixelToLatLng(i);return e.extend(s),e.extend(a),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 s=this.distanceBetweenPoints_(i,e.getPosition());s<t&&(t=s,n=o)}}if(n&&n.isMarkerInClusterBounds(e))n.addMarker(e);else{var a=new Ah(this);a.addMarker(e),this.clusters_.push(a)}},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 s=this.markers_[i];!s.isAdded&&this.isMarkerInBounds_(s,r)&&(!this.ignoreHidden_||this.ignoreHidden_&&s.getVisible())&&this.addToClosestCluster_(s)}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 a=0;a<this.clusters_.length;a++)this.clusters_[a].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}(Th);xh.BATCH_SIZE=2e3,xh.BATCH_SIZE_IE=500,xh.IMAGE_PATH="../images/m",xh.IMAGE_EXTENSION="png",xh.IMAGE_SIZES=[53,56,66,78,90];var Lh,Mh,jh,Qh=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=o(xh),r=o(Zd);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 s={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}},a=(0,r.default)({mappedProps:s,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(s).forEach((function(e){s[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=a}))),Vh=r(o((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,r=(n=Zd)&&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}},s=(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=s}))),Dh={name:"InfoWindowWrapper",props:{id:kt.string,renderPopover:kt.func,infoWindowProps:kt.object,events:kt.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(Vh,{ref:this.id+"-Info-Window",props:at({},this.infoWindowProps),on:at({},n)},[e("div",[t(this.handleClose)])])}},Fh={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:kt.func.isRequired,handleMouseOver:kt.func,handleFocus:kt.func,handleMouseOut:kt.func,handleBlur:kt.func,handleClick:kt.func},data:function(){return{opacity:.01}},mixins:[Gd],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}ut(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()])}},Nh=Jt("div")(Lh||(Lh=dt(["\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"]))),Uh=Jt("div")(Mh||(Mh=dt(["\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"]))),qh=Wt(jh||(jh=dt(["\n\t&:hover,\n\t&:focus {\n\t\tz-index: 200;\n\t}\n"]))),zh=ot.recordResultClick,Bh={name:"GoogleMapMarker",props:{index:kt.number,marker:kt.object.isRequired,getPosition:kt.func.isRequired,defaultPin:kt.string,renderItem:kt.func,setOpenMarkers:kt.func.isRequired,handlePreserveCenter:kt.func.isRequired,autoClosePopover:kt.bool,openMarkers:kt.object,renderPopover:kt.func,highlightMarkerOnHover:kt.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,s=n.autoClosePopover,a=n.handlePreserveCenter,u=i._id;r(s?((e={})[u]=!0,e):at({},o,((t={})[u]=!0,t))),a(!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,s=n._id,a=(i[s],ct(i,[s].map(pt)));t(r?{}:a),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,s=i.getPosition,a=i.renderPopover,u=i.openMarkers;return t&&(o={position:s(e),defaultOptions:{pixelOffset:new window.google.maps.Size(0,-30)}}),e._id in u?r(Dh,{key:e._id+"-InfoWindow",attrs:{id:e._id,renderPopover:function(t){return a({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,s=n.renderPopover,a=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(Fh,{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:qh}},[t(Nh,[c.label]),t(Uh),s?e.renderPopoverClick(u,!0):null])}},props:at({},a)});if(!("icon"in c))return t(Fh,{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:qh}},["function"==typeof c.custom?c.custom(u):c.custom,s?e.renderPopoverClick(u,!0):null])}},props:at({},a)});l.icon=c.icon}else i&&(l.icon={url:i});return t(Jd,{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:at({},a)},[s?this.renderPopoverClick(u):null])}},Hh=cr((function(){return null}),{recordResultClick:zh})(Bh),Gh={name:"GoogleMapMarkers",props:{resultsToRender:kt.array,getPosition:kt.func,renderItem:kt.func,renderClusterPopover:kt.func,defaultPin:kt.string,autoClosePopover:kt.bool,handlePreserveCenter:kt.func,renderPopover:kt.func,markerProps:kt.object,clusterProps:kt.object,showMarkerClusters:kt.bool,highlightMarkerOnHover:kt.bool},data:function(){return{openMarkers:{},clickedCluster:null,clusterMarkers:[]}},methods:{setOpenMarkers:function(e){this.openMarkers=e},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(Qh,{props:at({},this.clusterProps),on:{click:function(t){var n=t.markers.map((function(e){return e.metaData}));e.clickedCluster=t,e.clusterMarkers=n,e.$emit("open-cluster-popover",e.clusterMarkers)}},ref:"clusterRef"},[n.map((function(n,r){return t(Hh,{attrs:{index:r,marker:n},props:at({},o),on:at({},e.$listeners)})}))]),this.clickedCluster&&this.renderClusterPopover?t(Dh,{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(Hh,{attrs:{index:r,marker:n},props:at({},o),on:at({},e.$listeners)})}))])}},Wh={name:"ReactiveGoogleMap",props:{className:Wn.string,componentId:Wn.stringRequired,dataField:Wn.stringRequired,defaultQuery:kt.func,loader:Wn.title,defaultZoom:kt.number.def(13),react:Wn.react,size:Wn.number,sortBy:Wn.sortBy,URLParams:kt.bool,mapProps:kt.object,showMarkers:kt.bool.def(!0),showMarkerClusters:kt.bool.def(!1),searchAsMove:kt.bool.def(!1),searchAsMoveLabel:kt.string,markerProps:kt.object,clusterProps:kt.object,renderItem:kt.func,showSearchAsMove:kt.bool.def(!0),autoClosePopover:kt.bool,pagination:kt.bool,defaultPin:kt.string,autoCenter:kt.bool,defaultCenter:Wn.location,center:Wn.location,defaultRadius:Wn.number,unit:Wn.string,pages:kt.number.def(5),calculateMarkers:kt.func,highlightMarkerOnHover:kt.bool.def(!0)},methods:{renderMap:function(e){var t=this,n=e.resultsToRender,r=e.center,o=e.zoom,i=e.handleZoomChange,s=e.handleOnDragEnd,a=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(qp,{ref:"mapRef",attrs:{"map-type-id":"terrain",options:{zoomControl:!0},center:r,zoom:o},style:{height:"100%"},props:at({},this.mapProps),on:{zoom_changed:i,dragend:s,idle:a}},[this.showMarkers?h(Gh,{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:at({},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(Eh,Jr([{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(Wh.name,Wh),t&&t.key||console.error("ReactiveSearch: map key is required to use ReactiveGoogleMap component"),e.use(Np,{load:{key:t.key,libraries:"places"},installComponents:!1})}};Wh.componentType=L.reactiveMap;var Zh=["aggs","size"],Kh=["query"],Yh=["query"],Xh=[L.numberBox,L.ratingsFilter],Jh=[L.reactiveList,L.reactiveMap];function ef(e,t){return t.source&&t.source.parseValue?t.source.parseValue(e,t):e}var tf,nf,rf=function(e){var t=e.theme;return Wt(tf||(tf=dt(["\n\tcolor: ",";\n"])),t.colors.alertColor)},of=Jt("div")(nf||(nf=dt(["\n\t",";\n\tfont-size: 13px;\n\tmargin: 8px;\n"])),(function(e){return e.alert&&rf})),sf=st.getClassName,af=st.isEqual,uf={name:"RangeInput",components:{RangeSlider:md},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:Wn.string,default:""},defaultValue:Wn.range,validateRange:Wn.func,value:Wn.range,dataField:Wn.stringRequired,innerClass:Wn.style,range:{types:Wn.range,default:function(){return{start:0,end:10}}},rangeLabels:Wn.rangeLabels,stepValue:Wn.number,componentStyle:Wn.style,componentId:Wn.stringRequired,includeNullValues:kt.bool,beforeValueChange:Wn.func,customQuery:Wn.func,data:Wn.data,filterLabel:Wn.string,react:Wn.react,showFilter:kt.bool.def(!0),showCheckbox:kt.bool.def(!0),title:Wn.title,URLParams:kt.bool.def(!1),sliderOptions:kt.object.def({}),nestedField:Wn.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)&&!af(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=at({},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=at({},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){af(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,s=t.componentId,a=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(sa,{style:l,class:n},[e(md,{attrs:{componentId:s,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(Io,{class:sf(a,"input-container")||""},[e(Io,{attrs:{direction:"column",flex:2}},[e(Gs,{key:s+"-start-value",attrs:{name:"start",type:"number",step:u,themePreset:c,"aria-label":s+"-start-input",min:this.$props.range?this.$props.range.start:0,alert:!this.isStartValid},on:{change:this.handleInputChange},class:sf(a,"input")||"",domProps:at({},{value:this.currentValue.start})}),!this.isStartValid&&e(of,{attrs:{alert:!0}},["Input range is invalid"])]),e(Io,{attrs:{justifyContent:"center",alignItems:"center",flex:1}},["-"]),e(Io,{attrs:{direction:"column",flex:2}},[e(Gs,{key:s+"-end-value",attrs:{name:"end",type:"number",step:u,themePreset:c,"aria-label":s+"-end-input",max:this.$props.range?this.$props.range.end:10,alert:!this.isEndValid},on:{change:this.handleInputChange},class:sf(a,"input")||"",domProps:at({},{value:this.currentValue.end})}),!this.isEndValid&&e(of,{attrs:{alert:!0}},["Input range is invalid"])])])])}},lf=Dr(cr((function(e){return{themePreset:e.config.themePreset}}),{})(uf),{componentType:L.rangeInput});uf.install=function(e){e.component(uf.name,lf)},uf.componentType=L.rangeInput;var cf=[Yo,Yc,od,Hi,ru,$u,Wu,sl,Lc,qc,gd,Rd,vc,$c,ic,Ml,Zl,Vd,uf];function df(e){cf.map((function(t){return e.use(t),null}))}"undefined"!=typeof window&&window.Vue&&df(window.Vue);var pf={version:"1.16.0-alpha.62",install:df};e.DataSearch=ru,e.DynamicRangeSlider=Rd,e.MultiDropdownList=Zl,e.MultiList=sl,e.MultiRange=qc,e.RangeInput=uf,e.RangeSlider=gd,e.ReactiveBase=Hi,e.ReactiveComponent=vc,e.ReactiveGoogleMap=Wh,e.ReactiveList=Yo,e.ResultCard=Yc,e.ResultList=od,e.SearchBox=$u,e.SelectedFilters=$c,e.SingleDropdownList=Ml,e.SingleList=Wu,e.SingleRange=Lc,e.StateProvider=Vd,e.ToggleButton=ic,e.default=pf,e.initReactivesearch=function(e,t,n){return new Promise((function(r,o){var i=n.url&&""!==n.url.trim()&&!n.credentials?null:n.credentials,s=!n.appbaseConfig||void 0===n.appbaseConfig.enableTelemetry||n.appbaseConfig.enableTelemetry,a=at({},n.enableAppbase&&at({"X-Search-Client":"ReactiveSearch Vue"},!1===s&&{"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:a,analyticsConfig:n.appbaseConfig||null},l=xi(u),c=[],d={},p={},h={},f={},g={},m=[],y={},v=[],b={},C={},O={},_={},w={},$={},E={};e.forEach((function(e){var n=e.source.componentType;c=[].concat(c,[e.componentId]);var r={};Object.keys(e).forEach((function(t){M.includes(t)&&(r[t]=e[t])}));var o=!1;e.source.hasInternalComponent&&(o=e.source.hasInternalComponent(e));var i=Jh.includes(n),s=e.componentId+"__internal",a=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;Xh.includes(n)&&(m=!1),d=z(d,{type:"SET_VALUE",component:e.componentId,label:a,value:l,reference:h,showFilter:m,URLParams:e.URLParams||!1}),e.customQuery&&"function"==typeof e.customQuery&&(w[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=at({},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,_=ct(b,Zh);if(C&&Object.keys(C).length&&(o=!0,y=at({},y,{aggs:C,size:void 0===O?100:O})),_&&Object.keys(_).length||v&&Object.keys(v).length){_||(_={}),v||(v={});var S=at({},_,v,{size:O});if(o&&(S=at({},_,v)),i){var P=e.currentPage?e.currentPage-1:0;d[e.componentId]&&d[e.componentId].value&&(P=d[e.componentId].value-1||0);var k=e.size||10,A=P*k;r.from=A,S=at({},S,v,{size:k,from:A})}y=at({},y,S)}}if(e.react||o||i){var x=e.react;(o||i)&&(x=Pe(x,s)),g=T(g,{type:"WATCH_COMPONENT",component:e.componentId,react:x})}if(o&&!je(e.componentType)){var L=function(e,t){var n=ef(t,e);if(e.defaultQuery){var r=e.defaultQuery(n,e);return at({query:Se(r)},we(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:{}}(e,l)||{},j=L.query,Q=ct(L,Kh);p=I(p,{type:"SET_QUERY",component:s,query:j}),f=R(f,{type:"SET_QUERY_OPTIONS",component:s,options:at({},y,Q)})}var V=function(e,t){var n=ef(t,e);if(e.customQuery){var r=e.customQuery(n,e);return at({query:Se(r)},we(r))}return e.source.defaultQuery?{query:e.source.defaultQuery(n,e)}:null}(e,l)||{},D=V.query,F=ct(V,Yh),N=D;p=I(p,{type:"SET_QUERY",component:e.componentId,query:N}),f=R(f,{type:"SET_QUERY_OPTIONS",component:e.componentId,options:at({},F)}),r.componentType=n,E[e.componentId]=r})),_={components:c,dependencyTree:g,queryList:p,queryOptions:f,selectedValues:d,internalValues:{},props:E,customQueries:w,defaultQueries:$},e.forEach((function(e){var t=Te(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 s;(!r||r&&!Object.keys(r).length)&&(r={match_all:{}}),v=[].concat(v,[e.componentId]);var a=at({query:at({},r)},o,f[e.componentId]);if(h=at({},h,((s={})[e.componentId]=a,s)),n.enableAppbase){var l,c=Me(e.componentId,Le(_,e.componentId,f&&Object.keys(f[e.componentId]).length?{from:f[e.componentId].from}:null));if(c)y=at({},y,((l={})[e.componentId]=c,l),xe(_,e.componentId,v))}else{var d=u&&u.analyticsConfig&&u.analyticsConfig.userId?u.analyticsConfig.userId+"_"+e:e;m=[].concat(m,[{preference:d},a])}}})),_.queryLog=h;var P=function(e,t){return u.transformResponse&&"function"==typeof u.transformResponse?u.transformResponse(e,t):new Promise((function(t){return t(e)}))},k=function(e){var t=v.map((function(t,n){return new Promise((function(r,o){P(e.responses[n],t).then((function(e){var n,o;e.aggregations&&(C=at({},C,((o={})[t]=e.aggregations,o)),O=se(O,{type:S,aggregations:e.aggregations,append:!1}));b=at({},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(){_=at({},_,{hits:b,aggregations:C}),r(_)}))};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){Ge(u.graphQLUrl,u.url,u.credentials,u.app,e).then((function(e){k(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 A={};u.analyticsConfig&&(A.recordAnalytics=Fe(u.analyticsConfig.recordAnalytics)?u.analyticsConfig.recordAnalytics:void 0,A.userId=Fe(u.analyticsConfig.userId)?u.analyticsConfig.userId:void 0,A.enableQueryRules=Fe(u.analyticsConfig.enableQueryRules)?u.analyticsConfig.enableQueryRules:void 0,A.customEvents=Fe(u.analyticsConfig.customEvents)?u.analyticsConfig.customEvents:void 0),l.reactiveSearchv3(m,A).then((function(e){!function(e){var t={},n={},o={},i={},s={},a=v.map((function(r){return new Promise((function(a,u){P(e[r],r).then((function(u){if(u){var l,c;if(u.promoted&&(t[r]=u.promoted.map((function(e){return at({},e.doc,{_position:e.position})}))),n[r]=u,u.customData&&(o[r]=u.customData),u.settings&&(i[r]=u.settings),u.aggregations)C=at({},C,((c={})[r]=u.aggregations,c));s[r]=e._timestamp,b=at({},b,((l={})[r]={hits:u.hits.hits,total:"object"==typeof u.hits.total?u.hits.total.value:u.hits.total,time:u.took},l)),a()}})).catch((function(e){return u(e)}))}))}));Promise.all(a).then((function(){_=at({},_,{hits:b,timestamp:s,aggregations:C,compositeAggregations:O,promotedResults:t,settings:i,customData:o,rawData:n}),r(_)}))}(e)})).catch((function(e){return o(e)}))}else l.msearch({type:"*"===u.type?"":u.type,body:m}).then((function(e){k(e)})).catch((function(e){return o(e)}))}))},e.install=df,e.version="1.16.0-alpha.62",Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
37
37
|
//# sourceMappingURL=reactivesearch-vue.umd.min.js.map
|