react-instantsearch 6.39.0 → 6.39.1
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/package.json +5 -5
- package/dist/umd/Dom.js +7 -4
- package/dist/umd/Dom.js.map +1 -1
- package/dist/umd/Dom.min.js +1 -1
- package/dist/umd/Dom.min.js.map +1 -1
- package/package.json +5 -5
package/dist/umd/Dom.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! React InstantSearch UNRELEASED | © Algolia, inc. | https://github.com/algolia/instantsearch.js */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e=e||self).ReactInstantSearch=e.ReactInstantSearch||{},e.ReactInstantSearch.Dom={}),e.React)}(this,function(e,o){"use strict";var d="default"in o?o.default:o,A="undefined"!=typeof Element,M="function"==typeof Map,D="function"==typeof Set,q="function"==typeof ArrayBuffer;var H=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1}else if(M&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1;for(a=t.entries();!(i=a.next()).done;)if(!e(i.value[1],r.get(i.value[0])))return!1}else if(D&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1}else if(q&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1}else{if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;if(A&&t instanceof Element)return!1;for(i=n;0!=i--;)if(!("_owner"===o[i]&&t.$$typeof||e(t[o[i]],r[o[i]])))return!1}return!0}return t!=t&&r!=r}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function B(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function L(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?B(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==$(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===$(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function $(e){return($="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 Q(e){z.then(e)}var U=function(e,t){if(e!==t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<r.length;o++)if(!i.call(t,r[o])||e[r[o]]!==t[r[o]])return!1}return!0},W=function(e){return e.displayName||e.name||"UnknownComponent"},z=Promise.resolve(),Y=function n(i){return Object.keys(i).forEach(function(e){var t,r=i[e];"object"!==$(t=r)||null===t||Array.isArray(t)||((t=r)&&0<Object.keys(t).length?n(r):delete i[e])}),i};function Z(e,r,n){return e.map(function(e,t){return L(L({},e),{},{__position:r*n+t+1})})}function J(e,t){return t?e.map(function(e){return L(L({},e),{},{__queryID:t})}):e}function K(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function G(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];0<=t.indexOf(o)||(r[o]=e[o])}return r}var X=function(e,t){return(Array.isArray(t)?t:t.replace(/\[(\d+)]/g,".$1").split(".")).reduce(function(e,t){return e?e[t]:void 0},e)};function ee(e){return e.replace(/^\\-/,"-")}var te=o.createContext({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),re=te.Consumer,ne=te.Provider,te=o.createContext(void 0),ie=te.Consumer,oe=te.Provider,ae=["contextValue"];function ce(e){return(ce="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 ue(){return(ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function se(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function le(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?le(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function me(e,t){return(me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function he(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ye(r),t=(e=n?(e=ye(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,r){(t=de(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function de(e){e=function(e,t){if("object"!==ce(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ce(e)?e:String(e)}function be(s){var a;if(s.displayName)return a="function"==typeof s.getSearchParameters||"function"==typeof s.getMetadata||"function"==typeof s.transitionState,function(i){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e);var r,n=he(o);function o(e){var i;if(this instanceof o)return u(c(i=n.call(this,e)),"unsubscribe",void 0),u(c(i),"unregisterWidget",void 0),u(c(i),"cleanupTimerRef",null),u(c(i),"isUnmounting",!1),u(c(i),"state",{providedProps:i.getProvidedProps(i.props)}),u(c(i),"refine",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onInternalStateUpdate((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"createURL",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i.props.contextValue.createHrefForState((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"searchForFacetValues",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onSearchForFacetValues((e=s.searchForFacetValues).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),s.getSearchParameters&&i.props.contextValue.onSearchParameters(s.getSearchParameters.bind(c(i)),{ais:i.props.contextValue,multiIndexContext:i.props.indexContextValue},i.props,s.getMetadata&&s.getMetadata.bind(c(i)),s.displayName),i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe(function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})}),a&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(e,t){return"function"==typeof s.shouldComponentUpdate?s.shouldComponentUpdate.call(this,this.props,e,this.state,t):(e=U(this.props,e),null===this.state.providedProps||null===t.providedProps?this.state.providedProps!==t.providedProps||!e:!e||!U(this.state.providedProps,t.providedProps))}},{key:"componentDidUpdate",value:function(e){H(e,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),a&&(this.props.contextValue.widgetsManager.update(),"function"==typeof s.transitionState)&&this.props.contextValue.onSearchStateChange(s.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets)))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout(function(){var e;t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"==typeof s.cleanUp)&&(e=s.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets),t.props.contextValue.store.setState(fe(fe({},t.props.contextValue.store.getState()),{},{widgets:e})),t.props.contextValue.onSearchStateChange(Y(e)))})}},{key:"getProvidedProps",value:function(e){var t=this.props.contextValue.store.getState(),r=t.widgets,n=t.results,i=t.resultsFacetValues,o=t.searching,a=t.searchingForFacetValues,c=t.isSearchStalled,u=t.metadata,t=t.error;return s.getProvidedProps.call(this,e,r,{results:n,searching:o,searchingForFacetValues:a,isSearchStalled:c,error:t},u,i)}},{key:"getSearchParameters",value:function(e){return"function"==typeof s.getSearchParameters?s.getSearchParameters.call(this,e,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(e){return"function"==typeof s.getMetadata?s.getMetadata.call(this,this.props,e):{}}},{key:"transitionState",value:function(e,t){return"function"==typeof s.transitionState?s.transitionState.call(this,this.props,e,t):t}},{key:"render",value:function(){var e,t,r=this.props,r=(r.contextValue,se(r,ae)),n=this.state.providedProps;return null===n?null:(e="function"==typeof s.refine?{refine:this.refine,createURL:this.createURL}:{},t="function"==typeof s.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{},d.createElement(i,ue({},r,n,e,t)))}}])&&pe(t.prototype,e),r&&pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);return u(t,"displayName","".concat(s.displayName,"(").concat(W(i),")")),u(t,"$$type",s.$$type),u(t,"$$widgetType",e.$$widgetType),u(t,"propTypes",s.propTypes),u(t,"defaultProps",s.defaultProps),u(t,"_connectorDesc",s),t};throw new Error("`createConnector` requires you to provide a `displayName` property.")}function t(r){return function(e,t){var n=be(r)(e,t);return function(r){return d.createElement(re,null,function(t){return d.createElement(ie,null,function(e){return d.createElement(n,ue({contextValue:t,indexContextValue:e},r))})})}}}var ve={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function ge(e){var t,r=e.preTag,n=e.postTag,e=e.highlightedValue,e=(void 0===e?"":e).split(r),i=e.shift(),o=""===i?[]:[{value:i,isHighlighted:!1}];return n===r?(t=!0,e.forEach(function(e){o.push({value:e,isHighlighted:t}),t=!t})):e.forEach(function(e){e=e.split(n);o.push({value:e[0],isHighlighted:!0}),""!==e[1]&&o.push({value:e[1],isHighlighted:!1})}),o}var xe="6.39.0";function we(e){return(we="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 Oe(){return(Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fe(n.key),n)}}function Pe(e,t){return(Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Se(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ee(r),t=(e=n?(e=Ee(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===we(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return je(t)}}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e){e=function(e,t){if("object"!==we(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===we(e)?e:String(e)}function r(s){return function(n){var e=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pe(t,e);var r,c=Se(u);function u(){var o,e=this,t=u;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=c.call.apply(c,[this].concat(i)),e=je(o),t=function(e){var t=o.props.translations,t=(t&&t.hasOwnProperty(e)?t:s)[e];if("function"!=typeof t)return t;for(var r=arguments.length,n=new Array(1<r?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)},(r=Fe(r="translate"))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,o}return t=u,(e=[{key:"render",value:function(){return d.createElement(n,Oe({translate:this.translate},this.props))}}])&&Re(t.prototype,e),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component),t=n.displayName||n.name||"UnknownComponent";return e.displayName="Translatable(".concat(t,")"),e}}function _e(e){return(_e="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 Ce(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(e,t,r){return(t=function(e){e=function(e,t){if("object"!==_e(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===_e(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return Ne(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function y(e,t){if(e.results){if(e.results.hits)return e.results;t=h(t);if(e.results[t])return e.results[t]}return null}function Ne(e){return e&&e.multiIndexContext}function b(t,e,r,n,i){var o,a,c,u,s,l,f;return Ne(r)?(r=h(r),i?(c=e,u=r,l=i,s=(s=n)?{page:1}:void 0,f=(a=t).indices&&a.indices[u]?p(p({},a.indices),{},m({},u,p(p({},a.indices[u]),{},(m(f={},l,p(p({},a.indices[u][l]),c)),m(f,"page",1),f)))):p(p({},a.indices),{},m({},u,p(m({},l,c),s))),p(p({},a),{},{indices:f})):(u=e,l=r,c=(c=n)?{page:1}:void 0,l=(s=t).indices&&s.indices[l]?p(p({},s.indices),{},m({},l,p(p(p({},s.indices[l]),u),c))):p(p({},s.indices),{},m({},l,p(p({},u),c))),p(p({},s),{},{indices:l}))):(t.indices&&n&&Object.keys(t.indices).forEach(function(e){t=b(t,{page:1},{multiIndexContext:{targetedIndex:e}},!0,i)}),i?(a=e,f=i,r=(r=n)?{page:1}:void 0,p(p({},o=t),{},m({},f,p(p({},o[f]),a)),r)):(o=e,r=(r=n)?{page:1}:void 0,p(p(p({},t),o),r)))}function Te(e){e=e.match(/^([^.]*)\.(.*)/);return{namespace:e&&e[1],attributeName:e&&e[2]}}function a(e,t,r,n,i){var o,a=h(r),c=Te(n),u=c.namespace,c=c.attributeName,r={multiIndex:Ne(r),indexId:a,namespace:u,attributeName:c,id:n,searchState:t};return u=(a=r).multiIndex,c=a.indexId,n=a.namespace,t=a.attributeName,o=a.id,a=a.searchState,(u&&n?a.indices&&a.indices[c]&&a.indices[c][n]&&Object.hasOwnProperty.call(a.indices[c][n],t):u?a.indices&&a.indices[c]&&Object.hasOwnProperty.call(a.indices[c],o):n?a[n]&&Object.hasOwnProperty.call(a[n],t):Object.hasOwnProperty.call(a,o))?(c=(u=r).multiIndex,n=u.indexId,t=u.namespace,a=u.attributeName,o=u.id,u=u.searchState,c&&t?u.indices[n][t][a]:c?u.indices[n][o]:t?u[t][a]:u[o]):e.defaultRefinement||i}function n(e,t,r){var n,i,o,a,c=h(t),u=Te(r),s=u.namespace,u=u.attributeName;return Ne(t)&&Boolean(e.indices)?(c=(t={attribute:u,searchState:e,indexId:c,id:r,namespace:s}).searchState,i=t.indexId,n=t.id,a=t.namespace,t=t.attribute,o=c.indices[i],a&&o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,p(p({},o),{},m({},a,G(o[a],[t])))))}):o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,G(o,[n])))}):c):(t=(a={attribute:u,searchState:e,id:r,namespace:s}).searchState,i=a.id,o=a.namespace,a=a.attribute,o?p(p({},t),{},m({},o,G(t[o],[a]))):G(t,[i]))}function Ve(e){return(Ve="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)}var Ie=["children","contextValue","indexContextValue"],ke=["children","contextValue","indexContextValue"];function Ae(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(r),!0).forEach(function(e){De(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function De(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ve(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ve(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function He(){return"configure"}var te=t({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;t=qe(t,Ie);return e.setQueryParameters(t)},transitionState:function(e,t,r){var n=He(),i=(e.children,e.contextValue,e.indexContextValue,qe(e,ke)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter(function(e){return-1===o.indexOf(e)}):[];return this._props=e,b(r,De({},n,Me(Me({},G(r[n],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(r,e){var n=He(),t=h({ais:r.contextValue,multiIndexContext:r.indexContextValue}),i=Ne({ais:r.contextValue,multiIndexContext:r.indexContextValue})&&e.indices?e.indices[t]:e,t=(i&&i[n]?Object.keys(i[n]):[]).reduce(function(e,t){return r[t]||(e[t]=i[n][t]),e},{});return b(e,De({},n,t),{ais:r.contextValue,multiIndexContext:r.indexContextValue})}})(function(){return null},{$$widgetType:"ais.configure"}),i=("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};i.now||i.mozNow||i.msNow||i.oNow||i.webkitNow;function Be(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function Le(e,t){var r,n;if(e!==t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"__proto__"!==i&&"constructor"!==i&&(r=t[i],void 0!==(n=e[i])&&void 0===r||(Be(n)&&Be(r)?e[i]=Le(n,r):e[i]="object"==typeof(n=r)&&null!==n?Le(Array.isArray(n)?[]:{},n):n));return e}function $e(){return Array.prototype.slice.call(arguments).reduceRight(function(t,r){return Object.keys(Object(r)).forEach(function(e){void 0!==r[e]&&(void 0!==t[e]&&delete t[e],t[e]=r[e])}),t},{})}var Qe=function(e){Be(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var n=arguments[t];Be(n)&&Le(e,n)}return e};var Ue=function(r,n){return r.filter(function(e,t){return-1<n.indexOf(e)&&r.indexOf(e)===t})},v=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]};var We=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")};var ze=function(e,t){if(null===e)return{};for(var r,n={},i=Object.keys(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||(n[r]=e[r]);return n};var Ye=function(e){return e&&0<Object.keys(e).length},Ze={addRefinement:function(e,t,r){var n;return Ze.isRefined(e,t,r)?e:(r=""+r,r=e[t]?e[t].concat(r):[r],(n={})[t]=r,$e({},n,e))},removeRefinement:function(e,r,t){var n;return void 0===t?Ze.clearRefinement(e,function(e,t){return r===t}):(n=""+t,Ze.clearRefinement(e,function(e,t){return r===t&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return Ze.isRefined(e,t,r)?Ze.removeRefinement(e,t,r):Ze.addRefinement(e,t,r)},clearRefinement:function(i,o,a){var c,e;return void 0===o?Ye(i)?{}:i:"string"==typeof o?ze(i,[o]):"function"==typeof o?(c=!1,e=Object.keys(i).reduce(function(e,t){var r=i[t]||[],n=r.filter(function(e){return!o(e,t,a)});return n.length!==r.length&&(c=!0),e[t]=n,e},{}),c?e:i):void 0},isRefined:function(e,t,r){var n=!!e[t]&&0<e[t].length;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}},s=Ze;function Je(e,r){return Array.isArray(e)&&Array.isArray(r)?e.length===r.length&&e.every(function(e,t){return Je(r[t],e)}):e===r}function l(e){var n=e?l._parseNumbers(e):{},i=(void 0===n.userToken||null!==(e=n.userToken)&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=n.facets||[],this.disjunctiveFacets=n.disjunctiveFacets||[],this.hierarchicalFacets=n.hierarchicalFacets||[],this.facetsRefinements=n.facetsRefinements||{},this.facetsExcludes=n.facetsExcludes||{},this.disjunctiveFacetsRefinements=n.disjunctiveFacetsRefinements||{},this.numericRefinements=n.numericRefinements||{},this.tagRefinements=n.tagRefinements||[],this.hierarchicalFacetsRefinements=n.hierarchicalFacetsRefinements||{},this);Object.keys(n).forEach(function(e){var t=-1!==l.PARAMETERS.indexOf(e),r=void 0!==n[e];!t&&r&&(i[e]=n[e])})}l.PARAMETERS=Object.keys(new l),l._parseNumbers=function(i){var n,o;return i instanceof l?i:(n={},["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(e){var t,r=i[e];"string"==typeof r&&(t=parseFloat(r),n[e]=isNaN(t)?r:t)}),Array.isArray(i.insideBoundingBox)&&(n.insideBoundingBox=i.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),i.numericRefinements&&(o={},Object.keys(i.numericRefinements).forEach(function(r){var n=i.numericRefinements[r]||{};o[r]={},Object.keys(n).forEach(function(e){var t=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});o[r][e]=t})}),n.numericRefinements=o),Qe({},i,n))},l.make=function(e){var r=new l(e);return(e.hierarchicalFacets||[]).forEach(function(e){var t;e.rootPath&&0===(t=(r=0<(t=r.getHierarchicalRefinement(e.name)).length&&0!==t[0].indexOf(e.rootPath)?r.clearRefinements(e.name):r).getHierarchicalRefinement(e.name)).length&&(r=r.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}),r},l.validate=function(e,t){t=t||{};return e.tagFilters&&t.tagRefinements&&0<t.tagRefinements.length?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):0<e.tagRefinements.length&&t.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&t.numericRefinements&&Ye(t.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):Ye(e.numericRefinements)&&t.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},l.prototype={constructor:l,clearRefinements:function(e){e={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:s.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:s.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:s.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:s.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return e.numericRefinements===this.numericRefinements&&e.facetsRefinements===this.facetsRefinements&&e.facetsExcludes===this.facetsExcludes&&e.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&e.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(e)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n,r=We(r);return this.isNumericRefined(e,t,r)?this:((n=Qe({},this.numericRefinements))[e]=Qe({},n[e]),n[e][t]?(n[e][t]=n[e][t].slice(),n[e][t].push(r)):n[e][t]=[r],this.setQueryParameters({numericRefinements:n}))},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(r,n,i){return void 0!==i?this.isNumericRefined(r,n,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n&&Je(e.val,We(i))})}):this:void 0!==n?this.isNumericRefined(r,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n})}):this:this.isNumericRefined(r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(a){var c,t,e;return void 0===a?Ye(this.numericRefinements)?{}:this.numericRefinements:"string"==typeof a?ze(this.numericRefinements,[a]):"function"==typeof a?(c=!1,t=this.numericRefinements,e=Object.keys(t).reduce(function(e,n){var i=t[n],o={},i=i||{};return Object.keys(i).forEach(function(t){var e=i[t]||[],r=[];e.forEach(function(e){a({val:e,op:t},n,"numeric")||r.push(e)}),r.length!==e.length&&(c=!0),o[t]=r}),e[n]=o,e},{}),c?e:this.numericRefinements):void 0},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:s.addRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:s.addRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return s.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:s.addRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},addTagRefinement:function(e){return this.isTagRefined(e)?this:(e={tagRefinements:this.tagRefinements.concat(e)},this.setQueryParameters(e))},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(e){return e!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(e){return e!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(e){return e.name!==t})}):this},removeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:s.removeRefinement(this.facetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:s.removeRefinement(this.facetsExcludes,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return s.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:s.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},removeTagRefinement:function(t){var e;return this.isTagRefined(t)?(e={tagRefinements:this.tagRefinements.filter(function(e){return e!==t})},this.setQueryParameters(e)):this},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsRefinements:s.toggleRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleExcludeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsExcludes:s.toggleRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return this.setQueryParameters({disjunctiveFacetsRefinements:s.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},toggleHierarchicalFacetRefinement:function(e,t){var r,n;if(this.isHierarchicalFacet(e))return r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={},void 0!==this.hierarchicalFacetsRefinements[e]&&0<this.hierarchicalFacetsRefinements[e].length&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:$e({},n,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration")},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var r;if(this.isHierarchicalFacet(e))return(r={})[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:$e({},r,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.")},removeHierarchicalFacetRefinement:function(e){var t;return this.isHierarchicalFacetRefined(e)?((t={})[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:$e({},t,this.hierarchicalFacetsRefinements)})):this},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return-1<this.disjunctiveFacets.indexOf(e)},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return-1<this.facets.indexOf(e)},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&s.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&s.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&s.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){return!!this.isHierarchicalFacet(e)&&(e=this.getHierarchicalRefinement(e),t?-1!==e.indexOf(t):0<e.length)},isNumericRefined:function(e,t,r){var n,i;return void 0===r&&void 0===t?!!this.numericRefinements[e]:(n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t],void 0!==r&&n?(r=We(r),t=void 0!==(e=this.numericRefinements[e][t],i=r,v(e,function(e){return Je(e,i)})),n&&t):n)},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var t=this,e=Ue(Object.keys(this.numericRefinements).filter(function(e){return 0<Object.keys(t.numericRefinements[e]).length}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(e){return 0<t.disjunctiveFacetsRefinements[e].length}).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return Ue(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(e){return 0<t.hierarchicalFacetsRefinements[e].length}))},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(e){return-1===t.indexOf(e)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var r=this.managedParameters,n={},i=this;return Object.keys(this).forEach(function(e){var t=i[e];-1===r.indexOf(e)&&void 0!==t&&(n[e]=t)}),n},setQueryParameter:function(e,t){var r;return this[e]===t?this:((r={})[e]=t,this.setQueryParameters(r))},setQueryParameters:function(e){if(!e)return this;var t=l.validate(this,e);if(t)throw t;var r=this,i=l._parseNumbers(e),t=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),e=Object.keys(i).reduce(function(e,t){var r=void 0!==e[t],n=void 0!==i[t];return r&&!n?ze(e,[t]):(n&&(e[t]=i[t]),e)},t);return new this.constructor(e)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return v(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){var t;return this.isHierarchicalFacet(e)&&(t=this.getHierarchicalRefinement(e)[0])?(e=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),t.split(e).map(function(e){return e.trim()})):[]},toString:function(){return JSON.stringify(this,null,2)}};var Ke=l;function Ge(e){return Array.isArray(e)?e.filter(Boolean):[]}function Xe(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function et(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var r=t.split(":"),t=v(n,function(e){return e[0]===r[0]});return 1<r.length||!t?(e[0].push(r[0]),e[1].push(r[1])):(e[0].push(t[0]),e[1].push(t[1])),e},[[],[]])}var tt=function(e,r,i){return Array.isArray(e)?(Array.isArray(i)||(i=[]),(e=e.map(function(t,e){return{criteria:r.map(function(e){return t[e]}),index:e,value:t}})).sort(function(e,t){for(var r=-1;++r<e.criteria.length;){var n=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,o=null===t;if(!o&&t<e||n&&i||!r)return 1;if(!n&&e<t||o&&r||!i)return-1}return 0}(e.criteria[r],t.criteria[r]);if(n)return!(r>=i.length)&&"desc"===i[r]?-n:n}return e.index-t.index}),e.map(function(e){return e.value})):[]};var i=function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},f=function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")},rt=function(h){return function(e,t){function r(e,a,t){var r,c=e;if(0<t){var n=0;for(c=e;n<t;){var i=c&&Array.isArray(c.data)?c.data:[],c=v(i,function(e){return e.isRefined});n++}}return c&&(r=Object.keys(a.data).map(function(e){return[e,a.data[e]]}).filter(function(e){var t,r,n,i,o,e=e[0];return e=e,t=c.path||s,r=f,n=u,o=l,(!(i=s)||0===e.indexOf(i)&&i!==e)&&(!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length==1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(o||0===e.indexOf(r)))}),c.data=tt(r.map(function(e){var t,r,n,i,o=e[0],e=e[1];return e=e,o=o,t=u,r=it(f),n=a.exhaustive,{name:(i=o.split(t))[i.length-1].trim(),path:o,escapedValue:nt(o),count:e,isRefined:r===o||0===r.indexOf(o+t),exhaustive:n,data:null}}),o[0],o[1])),e}var o,u,s,l,f,n=h.hierarchicalFacets[t],i=h.hierarchicalFacetsRefinements[n.name]&&h.hierarchicalFacetsRefinements[n.name][0]||"",a=h._getHierarchicalFacetSeparator(n),c=h._getHierarchicalRootPath(n),p=h._getHierarchicalShowParentLevel(n),n=et(h._getHierarchicalFacetSortBy(n)),m=e.every(function(e){return e.exhaustive}),n=(o=n,u=a,l=p,f=i,e);return(n=(s=c)?e.slice(c.split(a).length):n).reduce(r,{name:h.hierarchicalFacets[t].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:m,data:null})}},nt=i,it=f;var ot=i,at=f;function ct(e){var r={};return e.forEach(function(e,t){r[e]=t}),r}function ut(e,t,r){t&&t[r]&&(e.stats=t[r])}function st(l,t,r){var c=t[0],f=(this._rawResults=t,this),e=(Object.keys(c).forEach(function(e){f[e]=c[e]}),Object.keys(r||{}).forEach(function(e){f[e]=r[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=l.hierarchicalFacets.map(function(){return[]}),this.facets=[],l.getRefinedDisjunctiveFacets()),u=ct(l.facets),s=ct(l.disjunctiveFacets),n=1,p=c.facets||{};Object.keys(p).forEach(function(e){var t,r,n,i,o=p[e],a=(n=l.hierarchicalFacets,t=e,v(n,function(e){return-1<(e.attributes||[]).indexOf(t)}));a?(n=a.attributes.indexOf(e),r=Xe(l.hierarchicalFacets,function(e){return e.name===a.name}),f.hierarchicalFacets[r][n]={attribute:e,data:o,exhaustive:c.exhaustiveFacetsCount}):(r=-1!==l.disjunctiveFacets.indexOf(e),n=-1!==l.facets.indexOf(e),r&&(i=s[e],f.disjunctiveFacets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},ut(f.disjunctiveFacets[i],c.facets_stats,e)),n&&(i=u[e],f.facets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},ut(f.facets[i],c.facets_stats,e)))}),this.hierarchicalFacets=Ge(this.hierarchicalFacets),e.forEach(function(e){var i=t[n],o=i&&i.facets?i.facets:{},a=l.getHierarchicalFacetByName(e);Object.keys(o).forEach(function(t){var r,e,n=o[t];a?(r=Xe(l.hierarchicalFacets,function(e){return e.name===a.name}),-1!==(e=Xe(f.hierarchicalFacets[r],function(e){return e.attribute===t}))&&(f.hierarchicalFacets[r][e].data=Qe({},f.hierarchicalFacets[r][e].data,n))):(r=s[t],e=c.facets&&c.facets[t]||{},f.disjunctiveFacets[r]={name:t,data:$e({},n,e),exhaustive:i.exhaustiveFacetsCount},ut(f.disjunctiveFacets[r],i.facets_stats,t),l.disjunctiveFacetsRefinements[t]&&l.disjunctiveFacetsRefinements[t].forEach(function(e){!f.disjunctiveFacets[r].data[e]&&-1<l.disjunctiveFacetsRefinements[t].indexOf(at(e))&&(f.disjunctiveFacets[r].data[e]=0)}))}),n++}),l.getRefinedHierarchicalFacets().forEach(function(e){var c=l.getHierarchicalFacetByName(e),u=l._getHierarchicalFacetSeparator(c),s=l.getHierarchicalRefinement(e);0===s.length||s[0].split(u).length<2||t.slice(n).forEach(function(e){var a=e&&e.facets?e.facets:{};Object.keys(a).forEach(function(t){var e,r,n=a[t],i=Xe(l.hierarchicalFacets,function(e){return e.name===c.name}),o=Xe(f.hierarchicalFacets[i],function(e){return e.attribute===t});-1!==o&&(e={},0<s.length&&(e[r=s[0].split(u)[0]]=f.hierarchicalFacets[i][o].data[r]),f.hierarchicalFacets[i][o].data=$e(e,n,f.hierarchicalFacets[i][o].data))}),n++})}),Object.keys(l.facetsExcludes).forEach(function(t){var e=l.facetsExcludes[t],r=u[t];f.facets[r]={name:t,data:c.facets[t],exhaustive:c.exhaustiveFacetsCount},e.forEach(function(e){f.facets[r]=f.facets[r]||{name:t},f.facets[r].data=f.facets[r].data||{},f.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(rt(l)),this.facets=Ge(this.facets),this.disjunctiveFacets=Ge(this.disjunctiveFacets),this._state=l}function lt(r,n){function e(e){return e.name===n}var i,o,t,a;return r._state.isConjunctiveFacet(n)?(i=v(r.facets,e))?Object.keys(i.data).map(function(e){var t=ot(e);return{name:e,escapedValue:t,count:i.data[e],isRefined:r._state.isFacetRefined(n,t),isExcluded:r._state.isExcludeRefined(n,e)}}):[]:r._state.isDisjunctiveFacet(n)?(o=v(r.disjunctiveFacets,e))?Object.keys(o.data).map(function(e){var t=ot(e);return{name:e,escapedValue:t,count:o.data[e],isRefined:r._state.isDisjunctiveFacetRefined(n,t)}}):[]:r._state.isHierarchicalFacet(n)?((t=v(r.hierarchicalFacets,e))&&(a=r._state.getHierarchicalFacetByName(n),(a=at(r._state.getHierarchicalRefinement(n)[0]||"").split(r._state._getHierarchicalFacetSeparator(a))).unshift(n),function t(e,r,n){e.isRefined=e.name===r[n];e.data&&e.data.forEach(function(e){t(e,r,n+1)})}(t,a,0)),t):void 0}function ft(e,t){e=v(e,function(e){return e.name===t});return e&&e.stats}function pt(e,t,r,n,i){var i=v(i,function(e){return e.name===r}),o=i&&i.data&&i.data[n]?i.data[n]:0,i=i&&i.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:i}}st.prototype.getFacetByName=function(t){function e(e){return e.name===t}return v(this.facets,e)||v(this.disjunctiveFacets,e)||v(this.hierarchicalFacets,e)},st.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],st.prototype.getFacetValues=function(e,t){var a,c,r=lt(this,e);if(r)return a=$e({},t,{sortBy:st.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),c=this,function t(r,e,n,i){var o;return i=i||0,Array.isArray(e)?r(e,n[i]):e.data&&0!==e.data.length?(o=e.data.map(function(e){return t(r,e,n,i+1)}),o=r(o,n[i]),$e({data:o},e)):e}(function(e,t){if(a.facetOrdering){t=t;o=(o=c).renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(Boolean(o))return t=e,r=[],n=[],i=((o=o).order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),t.forEach(function(e){var t=e.path||e.name;void 0!==i[t]?r[i[t]]=e:n.push(e)}),r=r.filter(function(e){return e}),"hidden"===(t=o.sortRemainingBy)?r:r.concat(tt(n,(o="alpha"===t?[["path","name"],["asc","asc"]]:[["count"],["desc"]])[0],o[1]))}var r,n,i,o;if(Array.isArray(a.sortBy))return t=et(a.sortBy,st.DEFAULT_SORT),tt(e,t[0],t[1]);if("function"==typeof a.sortBy)return o=a.sortBy,e.sort(o);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,Array.isArray(r)?[e]:c._state.getHierarchicalFacetByName(r.name).attributes)},st.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?ft(this.facets,e):this._state.isDisjunctiveFacet(e)?ft(this.disjunctiveFacets,e):void 0},st.prototype.getRefinements=function(){var a=this._state,c=this,u=[];return Object.keys(a.facetsRefinements).forEach(function(t){a.facetsRefinements[t].forEach(function(e){u.push(pt(0,"facet",t,e,c.facets))})}),Object.keys(a.facetsExcludes).forEach(function(t){a.facetsExcludes[t].forEach(function(e){u.push(pt(0,"exclude",t,e,c.facets))})}),Object.keys(a.disjunctiveFacetsRefinements).forEach(function(t){a.disjunctiveFacetsRefinements[t].forEach(function(e){u.push(pt(0,"disjunctive",t,e,c.disjunctiveFacets))})}),Object.keys(a.hierarchicalFacetsRefinements).forEach(function(o){a.hierarchicalFacetsRefinements[o].forEach(function(e){var t,r,n,i;u.push((t=a,r=o,e=e,n=c.hierarchicalFacets,i=t.getHierarchicalFacetByName(r),t=t._getHierarchicalFacetSeparator(i),i=e.split(t),e=v(n,function(e){return e.name===r}),t=i.reduce(function(e,t){var r=e&&v(e.data,function(e){return e.name===t});return void 0!==r?r:e},e),n=t&&t.count||0,i=t&&t.exhaustive||!1,e=t&&t.path||"",{type:"hierarchical",attributeName:r,name:e,count:n,exhaustive:i}))})}),Object.keys(a.numericRefinements).forEach(function(r){var e=a.numericRefinements[r];Object.keys(e).forEach(function(t){e[t].forEach(function(e){u.push({type:"numeric",attributeName:r,name:e,numericValue:e,operator:t})})})}),a.tagRefinements.forEach(function(e){u.push({type:"tag",attributeName:"_tags",name:e})}),u};var mt=st;function g(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}f=g;function x(e){return"function"==typeof e}function ht(e){return"object"==typeof e&&null!==e}function yt(e){return void 0===e}g.prototype._events=void 0,g.prototype._maxListeners=void 0,g.defaultMaxListeners=10,g.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},g.prototype.emit=function(e){var t,r,n,i,o,a,c;if((this._events||(this._events={}),"error"===e)&&(!this._events.error||ht(this._events.error)&&!this._events.error.length))throw(c=arguments[1])instanceof Error?c:((a=new Error('Uncaught, unspecified "error" event. ('+c+")")).context=c,a);if(yt(t=this._events[e]))return!1;if(x(t))switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),t.apply(this,n)}else if(ht(t))for(n=Array.prototype.slice.call(arguments,1),r=(o=t.slice()).length,i=0;i<r;i++)o[i].apply(this,n);return!0},g.prototype.on=g.prototype.addListener=function(e,t){if(x(t))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,x(t.listener)?t.listener:t),this._events[e]?ht(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,ht(this._events[e])&&!this._events[e].warned&&(t=yt(this._maxListeners)?g.defaultMaxListeners:this._maxListeners)&&0<t&&this._events[e].length>t&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},g.prototype.once=function(e,t){var r;if(x(t))return r=!1,n.listener=t,this.on(e,n),this;throw TypeError("listener must be a function");function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}},g.prototype.removeListener=function(e,t){var r,n,i,o;if(!x(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(r=this._events[e]).length,n=-1,r===t||x(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ht(r)){for(o=i;0<o--;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},g.prototype.removeAllListeners=function(e){var t,r;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);this.removeAllListeners("removeListener"),this._events={}}else{if(x(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);delete this._events[e]}else 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this},g.prototype.listeners=function(e){e=this._events&&this._events[e]?x(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},g.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(x(e))return 1;if(e)return e.length}return 0},g.listenerCount=function(e,t){return e.listenerCount(t)};var w=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})};function dt(e,t){this.main=e,this.fn=t,this.lastResults=null}w(dt,f),dt.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},dt.prototype.getModifiedState=function(e){return this.fn(e)};var bt=dt;function vt(r){return Object.keys(r).sort(function(e,t){return e.localeCompare(t)}).reduce(function(e,t){return e[t]=r[t],e},{})}var O={_getQueries:function(c,u){var s=[];return s.push({indexName:c,params:O._getHitsSearchParams(u)}),u.getRefinedDisjunctiveFacets().forEach(function(e){s.push({indexName:c,params:O._getDisjunctiveFacetSearchParams(u,e)})}),u.getRefinedHierarchicalFacets().forEach(function(e){var o,a=u.getHierarchicalFacetByName(e),e=u.getHierarchicalRefinement(e),n=u._getHierarchicalFacetSeparator(a);0<e.length&&1<e[0].split(n).length&&(o=e[0].split(n).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:a.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(n)})},[])).forEach(function(e,t){e=O._getDisjunctiveFacetSearchParams(u,e.attribute,0===t);function n(t){return a.attributes.some(function(e){return e===t.split(":")[0]})}var r=(e.facetFilters||[]).reduce(function(e,t){var r;return Array.isArray(t)&&0<(r=t.filter(function(e){return!n(e)})).length&&e.push(r),"string"!=typeof t||n(t)||e.push(t),e},[]),i=o[t-1];e.facetFilters=0<t?r.concat(i.attribute+":"+i.value):0<r.length?r:void 0,s.push({indexName:c,params:e})})}),s},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(O._getHitsHierarchicalFacetsAttributes(e)),r=O._getFacetFilters(e),n=O._getNumericFilters(e),i=O._getTagFilters(e),t={facets:-1<t.indexOf("*")?["*"]:t,tagFilters:i};return 0<r.length&&(t.facetFilters=r),0<n.length&&(t.numericFilters=n),vt(Qe({},e.getQueryParams(),t))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=O._getFacetFilters(e,t,r),i=O._getNumericFilters(e,t),o=O._getTagFilters(e),a={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1},o=(0<o.length&&(a.tagFilters=o),e.getHierarchicalFacetByName(t));return a.facets=o?O._getDisjunctiveHierarchicalFacetAttribute(e,o,r):t,0<i.length&&(a.numericFilters=i),0<n.length&&(a.facetFilters=n),vt(Qe({},e.getQueryParams(),a))},_getNumericFilters:function(e,i){var o;return e.numericFilters||(o=[],Object.keys(e.numericRefinements).forEach(function(n){var t=e.numericRefinements[n]||{};Object.keys(t).forEach(function(r){var e=t[r]||[];i!==n&&e.forEach(function(e){var t;Array.isArray(e)?(t=e.map(function(e){return n+r+e}),o.push(t)):o.push(n+r+e)})})}),o)},_getTagFilters:function(e){return e.tagFilters||e.tagRefinements.join(",")},_getFacetFilters:function(a,c,u){var s=[],e=a.facetsRefinements||{},r=(Object.keys(e).forEach(function(t){(e[t]||[]).forEach(function(e){s.push(t+":"+e)})}),a.facetsExcludes||{}),n=(Object.keys(r).forEach(function(t){(r[t]||[]).forEach(function(e){s.push(t+":-"+e)})}),a.disjunctiveFacetsRefinements||{}),l=(Object.keys(n).forEach(function(t){var r,e=n[t]||[];t!==c&&e&&0!==e.length&&(r=[],e.forEach(function(e){r.push(t+":"+e)}),s.push(r))}),a.hierarchicalFacetsRefinements||{});return Object.keys(l).forEach(function(e){var t=(l[e]||[])[0];if(void 0!==t){var r,n=a.getHierarchicalFacetByName(e),i=a._getHierarchicalFacetSeparator(n),o=a._getHierarchicalRootPath(n);if(c===e){if(-1===t.indexOf(i)||!o&&!0===u||o&&o.split(i).length===t.split(i).length)return;t=o?(r=o.split(i).length-1,o):(r=t.split(i).length-2,t.slice(0,t.lastIndexOf(i)))}else r=t.split(i).length-1;(e=n.attributes[r])&&s.push([e+":"+t])}}),s},_getHitsHierarchicalFacetsAttributes:function(i){return i.hierarchicalFacets.reduce(function(e,t){var r,n=i.getHierarchicalRefinement(t.name)[0];return n?(r=i._getHierarchicalFacetSeparator(t),n=n.split(r).length,r=t.attributes.slice(0,n+1),e.concat(r)):(e.push(t.attributes[0]),e)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n,i=e._getHierarchicalFacetSeparator(t);return!0===r?(r=0,(n=e._getHierarchicalRootPath(t))&&(r=n.split(i).length),[t.attributes[r]]):(n=(e.getHierarchicalRefinement(t.name)[0]||"").split(i).length-1,t.attributes.slice(0,1+n))},getSearchForFacetQuery:function(e,t,r,n){n=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,t={facetQuery:t,facetName:e};return"number"==typeof r&&(t.maxFacetHits=r),vt(Qe({},O._getHitsSearchParams(n),t))}},gt=O,R="3.11.3",xt=i;function P(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.11.3)"),this.setClient(e);e=r||{};e.index=t,this.state=Ke.make(e),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function wt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Ot(){return this.state.page}w(P,f),P.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},P.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},P.prototype.getQuery=function(){var e=this.state;return gt._getHitsSearchParams(e)},P.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,e=gt._getQueries(r.index,r),n=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(e).then(function(e){return n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),{content:new mt(r,e.results),state:r,_originalResponse:e}},function(e){throw n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(null,new mt(r,e.results),r)}).catch(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(e,null,r)})},P.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var r=r.getModifiedState(t),t=Qe({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:ze(gt._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),n="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(n);var i=this.client.initIndex(r.index);if("function"!=typeof i.findAnswers)throw new Error(n);return i.findAnswers(r.query,e.queryLanguages,t)},P.prototype.searchForFacetValues=function(t,e,r,n){var i,o,a,c="function"==typeof this.client.searchForFacetValues,u="function"==typeof this.client.initIndex;if(c||u||"function"==typeof this.client.search)return i=this.state.setQueryParameters(n||{}),o=i.isDisjunctiveFacet(t),n=gt.getSearchForFacetQuery(t,e,r,i),this._currentNbQueries++,a=this,r=c?this.client.searchForFacetValues([{indexName:i.index,params:n}]):u?this.client.initIndex(i.index).searchForFacetValues(n):(delete n.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:n}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),r.then(function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=xt(e.value),e.isRefined=o?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e});throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues")},P.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},P.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},P.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},P.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},P.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},P.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},P.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},P.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},P.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},P.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},P.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},P.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},P.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},P.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},P.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},P.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},P.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},P.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},P.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},P.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},P.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},P.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},P.prototype.setCurrentPage=wt,P.prototype.setPage=wt,P.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},P.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},P.prototype.setState=function(e){return this._change({state:Ke.make(e),isPageReset:!1}),this},P.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Ke(e),this},P.prototype.hasRefinements=function(e){return!!Ye(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},P.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},P.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},P.prototype.hasTag=function(e){return this.state.isTagRefined(e)},P.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},P.prototype.getIndex=function(){return this.state.index},P.prototype.getCurrentPage=Ot,P.prototype.getPage=Ot,P.prototype.getTags=function(){return this.state.tagRefinements},P.prototype.getRefinements=function(e){var r=[],n=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){r.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(n).forEach(function(e){var t=n[e];r.push({value:t,operator:e,type:"numeric"})}),r},P.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},P.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},P.prototype._search=function(e){var n=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=gt._getQueries(n.index,n),i.push({state:n,queriesCount:t.length,helper:this}),this.emit("search",{state:n,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(n),r=gt._getQueries(t.index,t);return i.push({state:t,queriesCount:r.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),r})),t=Array.prototype.concat.apply(t,e),e=this._queryId++;this._currentNbQueries++;try{this.client.search(t).then(this._dispatchAlgoliaResponse.bind(this,i,e)).catch(this._dispatchAlgoliaError.bind(this,e))}catch(e){this.emit("error",{error:e})}},P.prototype._dispatchAlgoliaResponse=function(e,t,r){var n;t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty"),n=r.results.slice(),e.forEach(function(e){var t=e.state,r=e.queriesCount,e=e.helper,r=n.splice(0,r),r=e.lastResults=new mt(t,r);e.emit("result",{results:r,state:t})}))},P.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},P.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},P.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&0<this.state.disjunctiveRefinements[e].length},P.prototype._change=function(e){var t=e.state,e=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:e}))},P.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},P.prototype.setClient=function(e){return this.client!==e&&("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.11.3)"),this.client=e),this},P.prototype.getClient=function(){return this.client},P.prototype.derive=function(e){e=new bt(this,e);return this.derivedHelpers.push(e),e},P.prototype.detachDerivedHelper=function(e){e=this.derivedHelpers.indexOf(e);if(-1===e)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)},P.prototype.hasPendingRequests=function(){return 0<this._currentNbQueries};var Rt=P;function Pt(e,t,r){return new Rt(e,t,r)}Pt.version=R,Pt.AlgoliaSearchHelper=Rt,Pt.SearchParameters=Ke,Pt.SearchResults=mt;var St=Pt;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 Et(e){return function(e){if(Array.isArray(e))return Ft(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Ft(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ft(e,t):void 0}(e)||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.")}()}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _t(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_t(Object(r),!0).forEach(function(e){Nt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Nt(e,t,r){return(t=function(e){e=function(e,t){if("object"!==jt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===jt(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tt(e){var t=e.attributeName,r=e.attributeValue,e=e.attributeScore;return"".concat(t,":").concat(r,"<score=").concat(e||1,">")}function Vt(){return"configure"}function It(o){var e=Object.keys(o.matchingPatterns).reduce(function(e,t){var r=o.matchingPatterns[t],n=X(o.hit,t),i=r.score;return Array.isArray(n)?[].concat(Et(e),[n.map(function(e){return Tt({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof n?[].concat(Et(e),[Tt({attributeName:t,attributeValue:n,attributeScore:i})]):e},[]);return o.transformSearchParameters(new St.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(o.hit.objectID)],optionalFilters:e}))}i=t({displayName:"AlgoliaConfigureRelatedItems",$$type:"ais.configureRelatedItems",defaultProps:{transformSearchParameters:function(e){return Ct({},e)}},getProvidedProps:function(){return{}},getSearchParameters:function(e,t){return e.setQueryParameters(It(t))},transitionState:function(e,t,r){var n,i=Vt(),o=(n=Y(It(e)),Object.keys(n).forEach(function(e){var t=n[e];Array.isArray(t)&&0===t.length&&delete n[e]}),n),a=Object.keys(o),c=this._searchParameters?Object.keys(this._searchParameters).filter(function(e){return-1===a.indexOf(e)}):[];return this._searchParameters=o,b(r,Nt({},i,Ct(Ct({},G(r[i],c)),o)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r=this,n=Vt(),i=h({ais:e.contextValue,multiIndexContext:e.indexContextValue}),o=Ne({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[i]:t,i=(o&&o[n]?Object.keys(o[n]):[]).reduce(function(e,t){return r._searchParameters[t]||(e[t]=o[n][t]),e},{});return b(t,Nt({},n,i),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}});function kt(e,t){return e(t={exports:{}},t.exports),t.exports}var w="function"==typeof Symbol&&Symbol.for,At=w?Symbol.for("react.element"):60103,Mt=w?Symbol.for("react.portal"):60106,Dt=w?Symbol.for("react.fragment"):60107,qt=w?Symbol.for("react.strict_mode"):60108,Ht=w?Symbol.for("react.profiler"):60114,Bt=w?Symbol.for("react.provider"):60109,Lt=w?Symbol.for("react.context"):60110,$t=w?Symbol.for("react.async_mode"):60111,Qt=w?Symbol.for("react.concurrent_mode"):60111,Ut=w?Symbol.for("react.forward_ref"):60112,Wt=w?Symbol.for("react.suspense"):60113,zt=w?Symbol.for("react.suspense_list"):60120,Yt=w?Symbol.for("react.memo"):60115,Zt=w?Symbol.for("react.lazy"):60116,Jt=w?Symbol.for("react.block"):60121,Kt=w?Symbol.for("react.fundamental"):60117,Gt=w?Symbol.for("react.responder"):60118,Xt=w?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case At:switch(e=e.type){case $t:case Qt:case Dt:case Ht:case qt:case Wt:return e;default:switch(e=e&&e.$$typeof){case Lt:case Ut:case Zt:case Yt:case Bt:return e;default:return t}}case Mt:return t}}}function er(e){return S(e)===Qt}var tr={AsyncMode:$t,ConcurrentMode:Qt,ContextConsumer:Lt,ContextProvider:Bt,Element:At,ForwardRef:Ut,Fragment:Dt,Lazy:Zt,Memo:Yt,Portal:Mt,Profiler:Ht,StrictMode:qt,Suspense:Wt,isAsyncMode:function(e){return er(e)||S(e)===$t},isConcurrentMode:er,isContextConsumer:function(e){return S(e)===Lt},isContextProvider:function(e){return S(e)===Bt},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===At},isForwardRef:function(e){return S(e)===Ut},isFragment:function(e){return S(e)===Dt},isLazy:function(e){return S(e)===Zt},isMemo:function(e){return S(e)===Yt},isPortal:function(e){return S(e)===Mt},isProfiler:function(e){return S(e)===Ht},isStrictMode:function(e){return S(e)===qt},isSuspense:function(e){return S(e)===Wt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Dt||e===Qt||e===Ht||e===qt||e===Wt||e===zt||"object"==typeof e&&null!==e&&(e.$$typeof===Zt||e.$$typeof===Yt||e.$$typeof===Bt||e.$$typeof===Lt||e.$$typeof===Ut||e.$$typeof===Kt||e.$$typeof===Gt||e.$$typeof===Xt||e.$$typeof===Jt)},typeOf:S},f=kt(function(e,t){});f.AsyncMode,f.ConcurrentMode,f.ContextConsumer,f.ContextProvider,f.Element,f.ForwardRef,f.Fragment,f.Lazy,f.Memo,f.Portal,f.Profiler,f.StrictMode,f.Suspense,f.isAsyncMode,f.isConcurrentMode,f.isContextConsumer,f.isContextProvider,f.isElement,f.isForwardRef,f.isFragment,f.isLazy,f.isMemo,f.isPortal,f.isProfiler,f.isStrictMode,f.isSuspense,f.isValidElementType,f.typeOf,kt(function(e){e.exports=tr});function rr(){}function nr(){}nr.resetWarningCache=rr;R=kt(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:nr,resetWarningCache:rr}).PropTypes=e});function ir(){return null}ir.propTypes={hit:R.object.isRequired,matchingPatterns:R.object.isRequired,transformSearchParameters:R.func};w=i(ir,{$$widgetType:"ais.configureRelatedItems"});function or(e){return(or="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 ar(e){var t;if("object"===or(t=e)&&t.props)return e.props.attribute||(Array.isArray(e.props.attributes)?e.props.attributes[0]:e.props.children?ar(d.Children.only(e.props.children)):void 0)}var cr=t({displayName:"AlgoliaDynamicWidgets",$$type:"ais.dynamicWidgets",defaultProps:{transformItems:function(e){return e},maxValuesPerFacet:20},propTypes:{transformItems:R.func,facets:R.arrayOf(R.string),maxValuesPerFacet:R.number},getProvidedProps:function(e,t,r){var n,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!e.facets||Array.isArray(e.facets)&&e.facets.length<=1&&("*"===e.facets[0]||void 0===e.facets[0]))return r?(n=r.renderingContent&&r.renderingContent.facetOrdering&&r.renderingContent.facetOrdering.facets&&r.renderingContent.facetOrdering.facets.order||[],20<(n=e.transformItems(n,{results:r})).length&&!e.facets&&console.warn("More than ".concat(20," facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning.")),e.maxValuesPerFacet<r._state.maxValuesPerFacet&&console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(e.maxValuesPerFacet,") is smaller than one of the limits set by a widget (").concat(r._state.maxValuesPerFacet,"). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted.")),{attributesToRender:n}):{attributesToRender:[]};throw new Error('The `facets` prop only accepts [] or ["*"], you passed '.concat(JSON.stringify(e.facets)))},getSearchParameters:function(e,t){return(t.facets||["*"]).reduce(function(e,t){return e.addFacet(t)},e.setQueryParameters({maxValuesPerFacet:Math.max(t.maxValuesPerFacet||0,e.maxValuesPerFacet||0)}))}})(function(e){var t=e.children,r=e.attributesToRender,n=void 0===(e=e.fallbackComponent)?function(){return null}:e,i=new Map;return d.Children.forEach(t,function(e){var t=ar(e);if(!t)throw new Error('Could not find "attribute" prop for '.concat(W(e),"."));i.set(t,e)}),d.createElement(d.Fragment,null,r.map(function(e){return d.createElement(o.Fragment,{key:e},i.get(e)||d.createElement(n,{attribute:e}))}))},{$$widgetType:"ais.dynamicWidgets"});function ur(e){return(ur="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 sr(){return(sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dr(n.key),n)}}function fr(e,t){return(fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pr(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=hr(r),t=(e=n?(e=hr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ur(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mr(t)}}function mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(e){return(hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(e,t,r){(t=dr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function dr(e){e=function(e,t){if("object"!==ur(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ur(e)?e:String(e)}function br(e){return{targetedIndex:e.indexId}}var vr=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fr(t,e);var r,n=pr(i);function i(e){if(this instanceof i)return yr(mr(e=n.call(this,e)),"state",{indexContext:br(e.props)}),yr(mr(e),"unregisterWidget",void 0),e.props.contextValue.onSearchParameters(e.getSearchParameters.bind(mr(e)),{ais:e.props.contextValue,multiIndexContext:e.state.indexContext},e.props,void 0,i.displayName),e;throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e){return{indexContext:br(e)}}}],(r=[{key:"componentDidMount",value:function(){this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this)}},{key:"componentDidUpdate",value:function(e){this.props.indexName!==e.indexName&&this.props.contextValue.widgetsManager.update()}},{key:"componentWillUnmount",value:function(){"function"==typeof this.unregisterWidget&&this.unregisterWidget()}},{key:"getSearchParameters",value:function(e,t){return e.setIndex((this.props||t).indexName)}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(oe,{value:this.state.indexContext},this.props.children)}}])&&lr(t.prototype,r),e&&lr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);yr(vr,"propTypes",{indexName:R.string.isRequired,indexId:R.string.isRequired,children:R.node}),yr(vr,"displayName","AlgoliaIndex"),yr(vr,"$$type","ais.index"),yr(vr,"$$widgetType","ais.index");var gr=["resultsFacetValues"],xr=["resultsFacetValues"],wr=["resultsFacetValues"];function Or(e){return(Or="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 Rr(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Pr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pr(Object(r),!0).forEach(function(e){Sr(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Sr(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Or(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Or(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jr(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(o.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat(xe,")")))}var Er=function(e){return Ne({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},Fr=function(e,t){return e.props.indexContextValue.targetedIndex===t},_r=function(e){return Boolean(e.props.indexId)},Cr=function(e,t){return e.props.indexId===t},Nr=function(e,t){e=_r(e),t=_r(t);return e&&!t?-1:!e&&t?1:0};function Tr(r){return Object.keys(r).map(function(e){return function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}("%s=%s",e,(t=r[e],"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(r[e]):r[e]));var t}).join("&")}function Vr(e){var i,t,r,n,o,a,c,u,s,l=e.indexName,f=e.initialState,f=void 0===f?{}:f,p=e.searchClient,m=e.resultsState,h=e.stalledSearchDelay,y=St(p,l,_({},ve)),d=(jr(p),y.on("search",function(){b=b||setTimeout(function(){var e=R.getState(),e=(e.resultsFacetValues,Rr(e,wr));R.setState(_(_({},e),{},{isSearchStalled:!0}))},h)}).on("result",E({indexId:l})).on("error",F),!1),b=null,v=y.state,g=(t=function(){var e=P(R.getState().widgets);R.setState(_(_({},R.getState()),{},{metadata:e,searching:!0})),j()},n=!(r=[]),{registerWidget:function(e){return r.push(e),x(),function(){r.splice(r.indexOf(e),1),x()}},update:x,getWidgets:function(){return r}});function x(){n||(n=!0,Q(function(){n=!1,t()}))}o=p,(e=m)&&(o.transporter&&!o._cacheHydrated||o._useCache&&"function"==typeof o.addAlgoliaAgent)&&(o.transporter&&!o._cacheHydrated&&(o._cacheHydrated=!0,a=o.search,o.search=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e.map(function(e){return _(_({},e),{},{params:Tr(e.params)})});return o.transporter.responsesCache.get({method:"search",args:[i].concat(r)},function(){return a.apply(void 0,[e].concat(r))})}),Array.isArray(e.results)?(s=o,c=e.results,s.transporter?s.transporter.responsesCache.set({method:"search",args:[c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])]},{results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}):(u="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])})),s.cache=_(_({},s.cache),{},Sr({},u,JSON.stringify({results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}))))):(s=e,(u=o).transporter?u.transporter.responsesCache.set({method:"search",args:[s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})]},{results:s.rawResults}):(c="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})})),u.cache=_(_({},u.cache),{},Sr({},c,JSON.stringify({results:s.rawResults}))))));e={widgets:f,metadata:(p=m)?p.metadata.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _({value:function(){return{}}},e)})})})})}):[],results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce(function(e,t){return _(_({},e),{},Sr({},t._internalIndexId,new St.SearchResults(new St.SearchParameters(t.state),t.rawResults)))},{});return new St.SearchResults(new St.SearchParameters(e.state),e.rawResults)}(m),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1},w=e,O=[];var w,O,R={getState:function(){return w},setState:function(e){w=e,O.forEach(function(e){return e()})},subscribe:function(e){return O.push(e),function(){O.splice(O.indexOf(e),1)}}};function P(t){return g.getWidgets().filter(function(e){return Boolean(e.getMetadata)}).map(function(e){return e.getMetadata(t)})}function S(){var t=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){return!Er(e)&&!_r(e)}).reduce(function(e,t){return t.getSearchParameters(e)},v),e=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=Er(e)&&Fr(e,l),e=_r(e)&&Cr(e,l);return t||e}).sort(Nr).reduce(function(e,t){return t.getSearchParameters(e)},t),r=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=Er(e)&&!Fr(e,l),e=_r(e)&&!Cr(e,l);return t||e}).sort(Nr).reduce(function(e,t){var r=Er(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return _(_({},e),{},Sr({},r,n.concat(t)))},{});return{mainParameters:e,derivedParameters:Object.keys(r).map(function(e){return{parameters:r[e].reduce(function(e,t){return t.getSearchParameters(e)},t),indexId:e}})}}function j(){var e,t;d||(e=(t=S()).mainParameters,t=t.derivedParameters,i=t.length+1,y.derivedHelpers.slice().forEach(function(e){e.detach()}),t.forEach(function(e){var t=e.indexId,r=e.parameters;y.derive(function(){return r}).on("result",E({indexId:t})).on("error",F)}),y.setState(e),y.search())}function E(e){var n=e.indexId;return function(e){i--;var t=R.getState(),r=!y.derivedHelpers.length,t=t.results||{},t=!r&&t.getFacetByName?{}:t,r=(t=r?e.results:_(_({},t),{},Sr({},n,e.results)),R.getState()),e=r.isSearchStalled,r=(y.hasPendingRequests()||(clearTimeout(b),b=null,e=!1),r.resultsFacetValues,Rr(r,gr));R.setState(_(_({},r),{},{results:t,isSearchStalled:e,searching:0<i,error:null}))}}function F(e){var e=e.error,t=R.getState(),r=t.isSearchStalled,t=(y.hasPendingRequests()||(clearTimeout(b),r=!1),t.resultsFacetValues,Rr(t,xr));R.setState(_(_({},t),{},{isSearchStalled:r,error:e,searching:!1}))}return{store:R,widgetsManager:g,getWidgetsIds:function(){return R.getState().metadata.reduce(function(e,t){return void 0!==t.id?e.concat(t.id):e},[])},getSearchParameters:S,onSearchForFacetValues:function(e){var r=e.facetName,n=e.query,e=e.maxFacetHits,e=Math.max(1,Math.min(void 0===e?10:e,100));R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!0})),y.searchForFacetValues(r,n,e).then(function(e){var t;R.setState(_(_({},R.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:_(_({},R.getState().resultsFacetValues),{},(Sr(t={},r,e.facetHits),Sr(t,"query",n),t))}))},function(e){R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!1,error:e}))}).catch(function(e){setTimeout(function(){throw e})})},onExternalStateUpdate:function(e){var t=P(e);R.setState(_(_({},R.getState()),{},{widgets:e,metadata:t,searching:!0})),j()},transitionState:function(e){var r=R.getState().widgets;return g.getWidgets().filter(function(e){return Boolean(e.transitionState)}).reduce(function(e,t){return t.transitionState(r,e)},e)},updateClient:function(e){jr(e),y.setClient(e),j()},updateIndex:function(e){v=v.setIndex(e)},clearCache:function(){y.clearCache(),j()},skipSearch:function(){d=!0}}}function Ir(e){return(Ir="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 kr(e,t){var o,r=document.createElement("meta"),n=document.querySelector("head"),t=(r.name="algolia:metadata",t=t,o=["contextValue","indexContextValue"],e=(e=e).map(function(e){var t=e.props,e=e.constructor,r=e._connectorDesc||{},n=r.defaultProps,i=void 0===n?{}:n,n=r.displayName;return{displayName:void 0===n?e.displayName:n,$$type:e.$$type,$$widgetType:e.$$widgetType,params:Object.keys(t).filter(function(e){return!o.includes(e)&&i[e]!==t[e]&&void 0!==t[e]})}}),{ua:t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua,widgets:e});r.content=JSON.stringify(t),n.appendChild(r)}function Ar(e){return(Ar="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 Mr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Dr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mr(Object(r),!0).forEach(function(e){Qr(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function qr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ur(n.key),n)}}function Hr(e,t){return(Hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Br(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=$r(r),t=(e=n?(e=$r(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ar(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Lr(t)}}function Lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $r(e){return($r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qr(e,t,r){(t=Ur(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ur(e){e=function(e,t){if("object"!==Ar(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ar(e)?e:String(e)}function Wr(e){return Boolean(e.searchState)}f=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hr(t,e);var r,n=Br(i);function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");Qr(Lr(e=n.call(this,e)),"cleanupTimerRef",null),Qr(Lr(e),"isUnmounting",!1);var t=Vr({indexName:e.props.indexName,searchClient:e.props.searchClient,initialState:e.props.searchState||{},resultsState:e.props.resultsState,stalledSearchDelay:e.props.stalledSearchDelay}),r={store:t.store,widgetsManager:t.widgetsManager,mainTargetedIndex:e.props.indexName,onInternalStateUpdate:e.onWidgetsInternalStateUpdate.bind(Lr(e)),createHrefForState:e.createHrefForState.bind(Lr(e)),onSearchForFacetValues:e.onSearchForFacetValues.bind(Lr(e)),onSearchStateChange:e.onSearchStateChange.bind(Lr(e)),onSearchParameters:e.onSearchParameters.bind(Lr(e))};return e.state={isControlled:Wr(e.props),instantSearchManager:t,contextValue:r},e}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e,t){var r=Wr(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!H(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:Dr(Dr({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],(r=[{key:"componentDidUpdate",value:function(e){var t=Wr(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),"object"===("undefined"==typeof window?"undefined":Ir(window))&&"object"===Ir(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===Ir(window.document)&&kr(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout(function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()})}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){var o;this.props.onSearchParameters&&(o=this.props.searchState||{},this.props.onSearchParameters(e,t,r,o)),this.props.widgetsCollector&&(o=this.props.searchState||{},this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:o,displayName:i}))}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(ne,{value:this.state.contextValue},this.props.children)}}])&&qr(t.prototype,r),e&&qr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);function zr(e){return(zr="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 Yr(e,t,r){return(t=function(e){e=function(e,t){if("object"!==zr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===zr(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qr(f,"defaultProps",{stalledSearchDelay:200,refresh:!1}),Qr(f,"propTypes",{indexName:R.string.isRequired,searchClient:R.shape({search:R.func.isRequired,searchForFacetValues:R.func,addAlgoliaAgent:R.func,clearCache:R.func}).isRequired,createURL:R.func,refresh:R.bool,searchState:R.object,onSearchStateChange:R.func,onSearchParameters:R.func,widgetsCollector:R.func,resultsState:R.oneOfType([R.object,R.array]),children:R.node,stalledSearchDelay:R.number});function Zr(e){return e.attributes[0]}i=t({displayName:"AlgoliaBreadcrumb",$$type:"ais.breadcrumb",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},transformItems:R.func},getProvidedProps:function(e,t,r){var n=Zr(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(n))?(n=(r=r.getFacetValues(n)).data?function r(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),t.data)?e.concat(r(t.data)):e},[])}(r.data):[],{canRefine:0<(r=e.transformItems?e.transformItems(n):n).length,items:r}):{items:[],canRefine:!1}},refine:function(e,t,r){return n={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Yr({},Zr(e),r||""),n,!0,"hierarchicalMenu");var n}});function Jr(e){return(Jr="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 Kr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Gr(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Kr(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==Jr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Jr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Kr(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}var Xr=t({displayName:"AlgoliaCurrentRefinements",$$type:"ais.currentRefinements",propTypes:{transformItems:R.func},getProvidedProps:function(r,e,t,n){n=n.reduce(function(e,t){return void 0===t.items||!r.clearsQuery&&"query"===t.id||r.clearsQuery&&"query"===t.id&&""===t.items[0].currentRefinement?e:e.concat(t.items.map(function(e){return Gr(Gr({},e),{},{id:t.id,index:t.index})}))},[]),n=r.transformItems?r.transformItems(n):n;return{items:n,canRefine:0<n.length}},refine:function(e,t,r){return(r instanceof Array?r.map(function(e){return e.value}):[r]).reduce(function(e,t){return t(e)},t)}});function en(e){return(en="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 tn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function rn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tn(Object(r),!0).forEach(function(e){nn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function nn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==en(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==en(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===en(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function on(e){return e.attributes[0]}var an="hierarchicalMenu";function cn(e,t,r){t=a(e,t,r,"".concat(an,".").concat(on(e)),null);return""===t?null:t}function un(e,u,s,l){return e.map(function(e){return{label:e.name,value:(t=e.escapedValue,n=(r=u).id,i=u.attributes,o=u.separator,a=u.rootPath,c=u.showParentLevel,null===(r=cn(u,s,l))?t:new St.SearchParameters({hierarchicalFacets:[{name:n,attributes:i,separator:o,rootPath:a,showParentLevel:c}]}).toggleHierarchicalFacetRefinement(n,r).toggleHierarchicalFacetRefinement(n,t).getHierarchicalRefinement(n)[0]),count:e.count,isRefined:e.isRefined,items:e.data&&un(e.data,u,s,l)};var t,r,n,i,o,a,c})}function sn(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e.slice(0,t).map(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e.items)?rn(rn({},e),{},{items:sn(e.items,t)}):e})}function ln(e,t,r,n){return b(t,nn({},on(e),r||""),n,!0,an)}function fn(e){var t=e.attribute,r=e.hit,n=e.highlightProperty,i=void 0===(i=e.preTag)?ve.highlightPreTag:i,e=e.postTag,t={attribute:t,highlightProperty:n,hit:r,preTag:i,postTag:void 0===e?ve.highlightPostTag:e},o=void 0===(n=t.preTag)?"<em>":n,a=void 0===(n=t.postTag)?"</em>":n,n=t.highlightProperty,r=t.attribute;if(t=t.hit)return t=X(t[n],r)||{},Array.isArray(t)?t.map(function(e){return ge({preTag:o,postTag:a,highlightedValue:e.value})}):ge({preTag:o,postTag:a,highlightedValue:t.value});throw new Error("`hit`, the matching record, must be provided")}var pn=["name:asc"],mn=t({displayName:"AlgoliaHierarchicalMenu",$$type:"ais.hierarchicalMenu",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},separator:R.string,rootPath:R.string,showParentLevel:R.bool,defaultRefinement:R.string,showMore:R.bool,limit:R.number,showMoreLimit:R.number,transformItems:R.func,facetOrdering:R.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,separator:" > ",rootPath:null,showParentLevel:!0,facetOrdering:!0},getProvidedProps:function(e,t,r){var n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.facetOrdering,c=on(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(c))?(n=n?o:i,i=(o=r.getFacetValues(c,{sortBy:pn,facetOrdering:a})).data?un(o.data,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}):[],r=e.transformItems?e.transformItems(i):i,{items:sn(r,n),currentRefinement:cn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:0<r.length}):{items:[],currentRefinement:cn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:!1}},refine:function(e,t,r){return ln(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(an,".").concat(on(r)));var r},getSearchParameters:function(e,t,r){var n=t.attributes,i=t.separator,o=t.rootPath,a=t.showParentLevel,c=t.showMore,u=t.limit,s=t.showMoreLimit,l=t.contextValue,f=on(t),c=c?s:u,s=(e=e.addHierarchicalFacet({name:f,attributes:n,separator:i,rootPath:o,showParentLevel:a}).setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,c)}),cn(t,r,{ais:l,multiIndexContext:t.indexContextValue}));return e=null!==s?e.toggleHierarchicalFacetRefinement(f,s):e},getMetadata:function(t,e){var r=t.attributes[0],n=on(t),e=cn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),r=e?[{label:"".concat(r,": ").concat(ee(e)),attribute:r,value:function(e){return ln(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]:[];return{id:n,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:r}}}),hn=t({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propTypes:{},getProvidedProps:function(){return{highlight:fn}}}),yn=t({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{hits:J(Z(r.hits,r.hitsPerPage,r.page),r.queryID)}:{hits:[]}},getSearchParameters:function(e){return e}});function dn(e){return(dn="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 bn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(r),!0).forEach(function(e){gn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function gn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==dn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==dn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===dn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xn(){return"hitsPerPage"}function wn(e,t,r){e=a(e,t,r,"hitsPerPage",null);return"string"==typeof e?parseInt(e,10):e}var j=t({displayName:"AlgoliaHitsPerPage",$$type:"ais.hitsPerPage",propTypes:{defaultRefinement:R.number.isRequired,items:R.arrayOf(R.shape({label:R.string,value:R.number.isRequired})).isRequired,transformItems:R.func},getProvidedProps:function(e,t){var r=wn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?vn(vn({},e),{},{isRefined:!0}):vn(vn({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,gn({},"hitsPerPage",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},xn())},getSearchParameters:function(e,t,r){return e.setHitsPerPage(wn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(){return{id:xn()}}});function On(e){return(On="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)}var Rn=["page"];function Pn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==On(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===On(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sn(e){return function(e){if(Array.isArray(e))return jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?jn(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jn(e,t):void 0}(e)||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.")}()}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function En(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Fn(e){e=e||{};e.page;return En(e,Rn)}var _n=t({displayName:"AlgoliaInfiniteHits",$$type:"ais.infiniteHits",getProvidedProps:function(e,t,r){var n,i,o,a,c,u,s,l,f,p,m=this,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?(n=r.page,u=r.hits,f=r.hitsPerPage,i=r.nbPages,o=r._state,this._cache=e.cache||this._cache||(c=a=void 0,{read:function(e){e=e.state;return H(c,Fn(e))?a:null},write:function(e){var t=e.state,e=e.hits;c=Fn(t),a=e}}),e=this._cache.read({state:o})||{},u=J(Z(u,f,n),r.queryID),e[n]=u,this._cache.write({state:o,hits:e}),s=Math.min.apply(Math,Sn(Object.keys(e).map(Number))),l=Math.max.apply(Math,Sn(Object.keys(e).map(Number))),f=0<s,r=l<i-1,{hits:(p=e,Object.keys(p).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(p[t])},[])),hasPrevious:f,hasMore:r,refinePrevious:function(e){return m.refine(e,s-1)},refineNext:function(e){return m.refine(e,l+1)}}):{hits:[],hasPrevious:!1,hasMore:!1,refine:function(){},refinePrevious:function(){},refineNext:function(){}}},getSearchParameters:function(e,t,r){return e.setQueryParameters({page:(t={ais:(e=t).contextValue,multiIndexContext:t.indexContextValue},("string"==typeof(e=a(e,r,t,"page",1))?parseInt(e,10):e)-1)})},refine:function(e,t,r,n){return b(t,Pn({},"page",n+1),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!1)}});function Cn(e){return(Cn="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 Nn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Cn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Cn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tn="menu";function Vn(e){return e.attribute}function In(e,t,r){t=a(e,t,r,"".concat(Tn,".").concat(Vn(e)),null);return""===t?null:t}function kn(e,t,r,n){return e===In(t,r,n)?"":e}function An(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function Mn(e,t,r,n){return b(t,Nn({},Vn(e),r||""),n,!0,Tn)}var Dn=["count:desc","name:asc"],E=t({displayName:"AlgoliaMenu",$$type:"ais.menu",propTypes:{attribute:R.string.isRequired,showMore:R.bool,limit:R.number,showMoreLimit:R.number,defaultRefinement:R.string,transformItems:R.func,searchable:R.bool,facetOrdering:R.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:kn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:a?void 0:Dn,facetOrdering:u}).map(function(e){return{label:e.name,value:kn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,An(t)),currentRefinement:In(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:In(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:s}},refine:function(e,t,r){return Mn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:An(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Tn,".").concat(Vn(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=(e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,An(t))})).addDisjunctiveFacet(n),In(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}));return e=null!==r?e.addDisjunctiveFacetRefinement(n,r):e},getMetadata:function(t,e){var r=Vn(t),e=In(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:r,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat(t.attribute,": ").concat(ee(e)),attribute:t.attribute,value:function(e){return Mn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function qn(e){return(qn="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 Hn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==qn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===qn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){var r;if(e)return"string"==typeof e?Ln(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ln(e,t):void 0}(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 Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $n(e){var t;return void 0===e.start&&void 0===e.end?"":(t=void 0!==e.start?e.start:"",e=void 0!==e.end?e.end:"","".concat(t,":").concat(e))}var Qn="multiRange";function Un(e){return e.attribute}function Wn(e,t,r){return a(e,t,r,"".concat(Qn,".").concat(Un(e)),"")}function zn(e,t,r,n){return b(t,Hn({},Un(e),r),n,!0,Qn)}var Yn=t({displayName:"AlgoliaNumericMenu",$$type:"ais.numericMenu",propTypes:{id:R.string,attribute:R.string.isRequired,items:R.arrayOf(R.shape({label:R.node,start:R.number,end:R.number})).isRequired,transformItems:R.func},getProvidedProps:function(a,e,t){var r=a.attribute,c=Wn(a,e,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),u=y(t,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),e=a.items.map(function(e){var t,r,n,i,o=$n(e);return{label:e.label,value:o,isRefined:o===c,noRefinement:!(!u||(e=Un(a),o=o,t=(t=u).getFacetByName(e)?t.getFacetStats(e):null,e=o.split(":"),i=0===Number(e[0])||""===o?Number.NEGATIVE_INFINITY:Number(e[0]),o=0===Number(e[1])||""===o?Number.POSITIVE_INFINITY:Number(e[1]),Boolean(t)&&(e=i,n=o,(r=t).min>=e&&r.min<=n||r.max>=e&&r.max<=n||(e=o,(r=i)>=(n=t).min&&r<=n.max)||e>=n.min&&e<=n.max)))}}),t=u&&u.getFacetByName(r)?u.getFacetStats(r):null,r=K(e,function(e){return!0===e.isRefined}),r=(e.some(function(e){return""===e.value})||e.push({value:"",isRefined:void 0===r,noRefinement:!t,label:"All"}),a.transformItems?a.transformItems(e):e);return{items:r,currentRefinement:c,canRefine:0<r.length&&r.some(function(e){return!1===e.noRefinement})}},refine:function(e,t,r){return zn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Qn,".").concat(Un(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,t=0===(r=Wn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})).length?{start:null,end:null}:(t=(r=Bn(r.split(":"),2))[0],r=r[1],{start:0<t.length?parseFloat(t):null,end:0<r.length?parseFloat(r):null}),r=t.start,t=t.end;return e=e.addDisjunctiveFacet(n),"number"==typeof r&&(e=e.addNumericRefinement(n,">=",r)),e="number"==typeof t?e.addNumericRefinement(n,"<=",t):e},getMetadata:function(t,e){var r,n=Un(t),i=Wn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),e=[],o=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return""!==i&&(r=K(t.items,function(e){return $n(e)===i}).label,e.push({label:"".concat(t.attribute,": ").concat(r),attribute:t.attribute,currentRefinement:r,value:function(e){return zn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})}})),{id:n,index:o,items:e}}});function Zn(e){return(Zn="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 Jn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Zn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Zn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kn(){return"page"}function Gn(e,t,r){e=a(e,t,r,"page",1);return"string"==typeof e?parseInt(e,10):e}var Xn=t({displayName:"AlgoliaPagination",$$type:"ais.pagination",getProvidedProps:function(e,t,r){var r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{nbPages:r=r.nbPages,currentRefinement:Gn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:1<r}:null},refine:function(e,t,r){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Jn({},"page",r),e,!1)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},Kn())},getSearchParameters:function(e,t,r){return e.setPage(Gn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1)},getMetadata:function(){return{id:Kn()}}}),ei=t({displayName:"AlgoliaPoweredBy",$$type:"ais.poweredBy",getProvidedProps:function(){var e="undefined"==typeof window||void 0===window.location?"":window.location.hostname;return{url:"https://www.algolia.com/?utm_source=react-instantsearch&utm_medium=website&"+"utm_content=".concat(e,"&")+"utm_campaign=poweredby"}}});function ti(e){return(ti="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 ri(e,t,r){return(t=function(e){e=function(e,t){if("object"!==ti(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ti(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ti(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ni(e){return e.attribute}var ii="range";function oi(e,t,r,n){var t=a(e,t,n,"".concat(ii,".").concat(ni(e)),{}),n=t.min,t=t.max,i=Boolean(e.precision),n={min:n="string"==typeof n?i?parseFloat(n):parseInt(n,10):n,max:t="string"==typeof t?i?parseFloat(t):parseInt(t,10):t},i=void 0!==e.min,t=void 0!==e.max,e=void 0!==n.min,o=void 0!==n.max;if(i&&e&&n.min<r.min)throw Error("You can't provide min value lower than range.");if(t&&o&&n.max>r.max)throw Error("You can't provide max value greater than range.");return i&&!e&&(n.min=r.min),t&&!o&&(n.max=r.max),n}function ai(e,t){return{min:(void 0!==e.min?e:t).min,max:(void 0!==e.max?e:t).max}}function ci(e,t,r,n){e=e||r!==n?e&&t?r:n:void 0;return e}function ui(e,t,r,n,i){var o=r.min,r=r.max,a=n.min,n=n.max,c=void 0===o||""===o,u=void 0===r||""===r,o=c?void 0:parseFloat(o),r=u?void 0:parseFloat(r),s=c||isFinite(o),l=u||isFinite(r);if(!s||!l)throw Error("You can't provide non finite values to the range connector.");if(o<a)throw Error("You can't provide min value lower than range.");if(n<r)throw Error("You can't provide max value greater than range.");return b(t,ri({},ni(e),{min:ci(void 0!==e.min,c,a,o),max:ci(void 0!==e.max,u,n,r)}),i,!0,ii)}var si=t({displayName:"AlgoliaRange",$$type:"ais.range",propTypes:{id:R.string,attribute:R.string.isRequired,defaultRefinement:R.shape({min:R.number,max:R.number}),min:R.number,max:R.number,precision:R.number,header:R.node,footer:R.node},defaultProps:{precision:0},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.precision,o=e.min,a=e.max,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),c=r&&r.getFacetByName(n),u=c&&r.getFacetStats(n)||{},c=(c?r.getFacetValues(n):[]).map(function(e){return{value:e.name,count:e.count}}),u=(r={min:o,max:a},n=u,o=i,o=Math.pow(10,o),a="number"==typeof r.min&&isFinite(r.min)?r.min:"number"==typeof n.min&&isFinite(n.min)?n.min:void 0,r="number"==typeof r.max&&isFinite(r.max)?r.max:"number"==typeof n.max&&isFinite(n.max)?n.max:void 0,{min:void 0!==a?Math.floor(a*o)/o:a,max:void 0!==r?Math.ceil(r*o)/o:r}),n=u.min,a=u.max,o=(this._currentRange={min:n,max:a},oi(e,t,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue}));return{min:n,max:a,canRefine:0<c.length,currentRefinement:ai(o,this._currentRange),count:c,precision:i}},refine:function(e,t,r){return ui(e,t,r,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(ii,".").concat(ni(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=oi(t,r,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=r.min,r=r.max;return e=e.addDisjunctiveFacet(n),void 0!==t&&(e=e.addNumericRefinement(n,">=",t)),e=void 0!==r?e.addNumericRefinement(n,"<=",r):e},getMetadata:function(t,e){var r=this,n=this._currentRange,i=n.min,n=n.max,e=oi(t,e,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),o=e.min,e=e.max,a=[],c=void 0!==o,u=void 0!==e;return(c&&o!==i||u&&e!==n)&&(c=[c?"".concat(o," <= "):"",t.attribute,u?" <= ".concat(e):""],a.push({label:c.join(""),attribute:t.attribute,value:function(e){return ui(t,e,{},r._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:ai({min:o,max:e},{min:i,max:n})})),{id:ni(t),index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:a}}});function li(e){return(li="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 fi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==li(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==li(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===li(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pi="refinementList";function mi(e){return e.attribute}function hi(e,t,r){t=a(e,t,r,"".concat(pi,".").concat(mi(e)),[]);return"string"!=typeof t?t:t?[t]:[]}function yi(t,e,r,n){e=hi(e,r,n);return-1===e.indexOf(t)?e.concat([t]):e.filter(function(e){return e!==t})}function di(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function bi(e,t,r,n){return b(t,fi({},mi(e),0<r.length?r:""),n,!0,pi)}var vi=["isRefined","count:desc","name:asc"],gi=t({displayName:"AlgoliaRefinementList",$$type:"ais.refinementList",propTypes:{id:R.string,attribute:R.string.isRequired,operator:R.oneOf(["and","or"]),showMore:R.bool,limit:R.number,showMoreLimit:R.number,defaultRefinement:R.arrayOf(R.oneOfType([R.string,R.number])),searchable:R.bool,transformItems:R.func,facetOrdering:R.bool},defaultProps:{operator:"or",showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:yi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:vi,facetOrdering:u}).map(function(e){return{label:e.name,value:yi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,di(t)),currentRefinement:hi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:hi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),canRefine:s,isFromSearch:l,searchable:a}},refine:function(e,t,r){return bi(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:di(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(pi,".").concat(mi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i="and"===t.operator?"addFacet":"addDisjunctiveFacet",o="".concat(i,"Refinement");return e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,di(t))}))[i](n),hi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}).reduce(function(e,t){return e[o](n,t)},e)},getMetadata:function(r,n){var e=mi(r),i={ais:r.contextValue,multiIndexContext:r.indexContextValue};return{id:e,index:h(i),items:0<hi(r,n,i).length?[{attribute:r.attribute,label:"".concat(r.attribute,": "),currentRefinement:hi(r,n,i),value:function(e){return bi(r,e,[],i)},items:hi(r,n,i).map(function(t){return{label:ee("".concat(t)),value:function(e){e=hi(r,e,i).filter(function(e){return e!==t});return bi(r,n,e,i)}}})}]:[]}}}),xi=t({displayName:"AlgoliaScrollTo",$$type:"ais.scrollTo",propTypes:{scrollOn:R.string},defaultProps:{scrollOn:"page"},getProvidedProps:function(e,t){var r=e.scrollOn,n=a(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},r,null),e=(this._prevSearchState||(this._prevSearchState={}),G(t=Ne({ais:e.contextValue,multiIndexContext:e.indexContextValue})?t.indices?t.indices[h({ais:e.contextValue,multiIndexContext:e.indexContextValue})]:{}:t,["configure",r])),t=U(this._prevSearchState,e);return this._prevSearchState=e,{value:n,hasNotChanged:t}}});function wi(e){return(wi="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 Oi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==wi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==wi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===wi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ri(){return"query"}function Pi(e,t,r){e=a(e,t,r,"query","");return e||""}function Si(e,t,r,n){return b(t,Oi({},"query",r),n,!0)}var ji=t({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:R.string},getProvidedProps:function(e,t,r){return{currentRefinement:Pi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return Si(0,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},n(t,e,Ri())},getSearchParameters:function(e,t,r){return e.setQuery(Pi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(t,e){e=Pi(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:"query",index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat("query",": ").concat(e),value:function(e){return Si(0,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function Ei(e){return(Ei="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 Fi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ei(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ei(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _i(){return"relevancyStrictness"}var Ci=t({displayName:"AlgoliaRelevantSort",$$type:"ais.relevantSort",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{isVirtualReplica:void 0!==r.appliedRelevancyStrictness,isRelevantSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness}:{isVirtualReplica:!1,isRelevantSorted:!1}},getSearchParameters:function(e,t,r){return e.setQueryParameter("relevancyStrictness",(e={ais:t.contextValue,multiIndexContext:t.indexContextValue},a(t,r,e,"relevancyStrictness")))},refine:function(e,t,r){return b(t,Fi({},_i(),r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)}});function Ni(e){return(Ni="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 Ti(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Vi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ti(Object(r),!0).forEach(function(e){Ii(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ti(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ii(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ni(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ni(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ki(){return"sortBy"}function Ai(e,t,r){e=a(e,t,r,"sortBy",null);return e||null}var Mi=t({displayName:"AlgoliaSortBy",$$type:"ais.sortBy",propTypes:{defaultRefinement:R.string,items:R.arrayOf(R.shape({label:R.string,value:R.string.isRequired})).isRequired,transformItems:R.func},getProvidedProps:function(e,t){var r=Ai(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?Vi(Vi({},e),{},{isRefined:!0}):Vi(Vi({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,Ii({},"sortBy",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},ki())},getSearchParameters:function(e,t,r){r=Ai(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return e.setIndex(r)},getMetadata:function(){return{id:ki()}}}),Di=t({displayName:"AlgoliaStats",$$type:"ais.stats",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{areHitsSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness&&r.nbHits!==r.nbSortedHits,nbHits:r.nbHits,nbSortedHits:r.nbSortedHits,processingTimeMS:r.processingTimeMS}:null}});function qi(e){return(qi="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 Hi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==qi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===qi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bi(e){return e.attribute}var Li="toggle",$i=["0","false","null","undefined"];function Qi(e,t,r){t=a(e,t,r,"".concat(Li,".").concat(Bi(e)),!1);return-1===$i.indexOf(t)&&Boolean(t)}function Ui(e,t,r,n){return b(t,Hi({},Bi(e),r||!1),n,!0,Li)}R=t({displayName:"AlgoliaToggle",$$type:"ais.toggle",propTypes:{label:R.string.isRequired,attribute:R.string.isRequired,value:R.any.isRequired,filter:R.func,defaultRefinement:R.bool},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.value,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=Qi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),e=r&&r.getFacetByName(n)?r.getFacetValues(n):null,r=e&&e.length?K(e,function(e){return e.name===i.toString()}):null,n=r&&r.count,r=e&&e.length?e.reduce(function(e,t){return e+t.count},0):null;return{currentRefinement:t,canRefine:t?null!==r&&0<r:null!==n&&0<n,count:{checked:r,unchecked:n}}},refine:function(e,t,r){return Ui(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Li,".").concat(Bi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i=t.value,o=t.filter,r=Qi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=e.addDisjunctiveFacet(n);return t=r&&(t=t.addDisjunctiveFacetRefinement(n,i),o)?o(t):t},getMetadata:function(t,e){var r=Bi(t),e=Qi(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),n=[],i=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return e&&n.push({label:t.label,currentRefinement:e,attribute:t.attribute,value:function(e){return Ui(t,e,!1,{ais:t.contextValue,multiIndexContext:t.indexContextValue})}}),{id:r,index:i,items:n}}});function Wi(){}function zi(){}zi.resetWarningCache=Wi;var F=kt(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:zi,resetWarningCache:Wi}).PropTypes=e}),C=kt(function(e){function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n,i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r))r.length&&(n=a.apply(null,r))&&e.push(n);else if("object"==i)if(r.toString===Object.prototype.toString)for(var o in r)c.call(r,o)&&r[o]&&e.push(o);else e.push(r.toString())}}return e.join(" ")}var c;c={}.hasOwnProperty,e.exports?e.exports=a.default=a:window.classNames=a});function Yi(e){return function(e){if(Array.isArray(e))return Zi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Zi(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zi(e,t):void 0}(e)||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.")}()}function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(e){return e||""===e}).map(function(e){var t="".concat(o,"-").concat(i);return e?"".concat(t,"-").concat(e):t});return C(n)}}function Ji(e){var t=e.start,r=void 0===t?0:t,t=e.end,e=e.step,e=void 0===e?1:e,n=0===e?1:e,e=Math.round((t-r)/n);return Yi(Array(e)).map(function(e,t){return(r+t)*n})}function Ki(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function Gi(e){return(Gi="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 Xi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oo(n.key),n)}}function eo(e,t){return(eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function to(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=no(r),t=(e=n?(e=no(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Gi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ro(t)}}function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function no(e){return(no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function io(e,t,r){(t=oo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function oo(e){e=function(e,t){if("object"!==Gi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Gi(e)?e:String(e)}var ao=N("Panel"),co=o.createContext(function(){}),uo=co.Consumer,so=co.Provider,co=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eo(t,e);var r,a=to(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return io(ro(t=a.call.apply(a,[this].concat(i))),"state",{canRefine:!0}),io(ro(t),"setCanRefine",function(e){t.setState({canRefine:e})}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.header,e=e.footer,i=this.state.canRefine;return d.createElement("div",{className:C(ao("",!i&&"-noRefinement"),r)},n&&d.createElement("div",{className:ao("header")},n),d.createElement("div",{className:ao("body")},d.createElement(so,{value:this.setCanRefine},t)),e&&d.createElement("div",{className:ao("footer")},e))}}])&&Xi(t.prototype,e),r&&Xi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function lo(e){return(lo="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 fo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yo(n.key),n)}}function po(e,t){return(po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ho(r),t=(e=n?(e=ho(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ho(e){return(ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yo(e){e=function(e,t){if("object"!==lo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===lo(e)?e:String(e)}io(co,"propTypes",{children:F.node.isRequired,className:F.string,header:F.node,footer:F.node}),io(co,"defaultProps",{className:"",header:null,footer:null});function T(e){var t=e.canRefine,r=e.children;return d.createElement(uo,null,function(e){return d.createElement(bo,{setCanRefine:e,canRefine:t},r)})}var bo=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&po(t,e);var r,n=mo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.setCanRefine(this.props.canRefine)}},{key:"componentDidUpdate",value:function(e){e.canRefine!==this.props.canRefine&&this.props.setCanRefine(this.props.canRefine)}},{key:"render",value:function(){return this.props.children}}])&&fo(t.prototype,e),r&&fo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);V=bo,Ao="propTypes",Do={children:F.node.isRequired,canRefine:F.bool.isRequired,setCanRefine:F.func.isRequired},(Ao=yo(Ao))in V?Object.defineProperty(V,Ao,{value:Do,enumerable:!0,configurable:!0,writable:!0}):V[Ao]=Do;function vo(e){return(vo="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 go(){return(go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jo(n.key),n)}}function wo(e,t){return(wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Po(r),t=(e=n?(e=Po(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===vo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ro(t)}}function Ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e){return(Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function So(e,t,r){(t=jo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function jo(e){e=function(e,t){if("object"!==vo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===vo(e)?e:String(e)}var Eo=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wo(t,e);var r,a=Oo(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return So(Ro(n=a.call.apply(a,[this].concat(i))),"onClick",function(e){var t,r;r=1===(t=e).button,Boolean(r||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)||(n.props.onClick(),e.preventDefault())}),n}return t=c,(e=[{key:"render",value:function(){return d.createElement("a",go({},this.props,{onClick:this.onClick}))}}])&&xo(t.prototype,e),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Fo(e){return(Fo="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 _o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Io(n.key),n)}}function Co(e,t){return(Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function No(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=To(r),t=(e=n?(e=To(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Fo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function To(e){return(To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vo(e,t,r){(t=Io(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Io(e){e=function(e,t){if("object"!==Fo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Fo(e)?e:String(e)}So(Eo,"propTypes",{onClick:F.func.isRequired});var ko=N("Breadcrumb"),V=F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired})),Ao=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Co(t,e);var r,n=No(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.canRefine,n=e.createURL,i=e.items,o=e.refine,r=e.rootURL,a=e.separator,c=e.translate,e=e.className,c=t?d.createElement("li",{className:ko("item")},d.createElement(Eo,{className:ko("link"),onClick:function(){return r?null:o()},href:r||n()},c("rootLabel"))):null,u=i.map(function(e,t){var r=t===i.length-1;return d.createElement("li",{className:ko("item",r&&"item--selected"),key:t},d.createElement("span",{className:ko("separator")},a),r?e.label:d.createElement(Eo,{className:ko("link"),onClick:function(){return o(e.value)},href:n(e.value)},e.label))});return d.createElement("div",{className:C(ko("",!t&&"-noRefinement"),e)},d.createElement("ul",{className:ko("list")},c,u))}}])&&_o(t.prototype,e),r&&_o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Mo=(Vo(Ao,"propTypes",{canRefine:F.bool.isRequired,createURL:F.func.isRequired,items:V,refine:F.func.isRequired,rootURL:F.string,separator:F.node,translate:F.func.isRequired,className:F.string}),Vo(Ao,"defaultProps",{rootURL:null,separator:" > ",className:""}),r({rootLabel:"Home"})(Ao)),Do=i(function(e){return d.createElement(T,e,d.createElement(Mo,e))},{$$widgetType:"ais.breadcrumb"});function qo(e){return(qo="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 Ho(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Uo(n.key),n)}}function Bo(e,t){return(Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Lo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=$o(r),t=(e=n?(e=$o(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function $o(e){return($o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qo(e,t,r){(t=Uo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Uo(e){e=function(e,t){if("object"!==qo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===qo(e)?e:String(e)}function Wo(e){var t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:C(Zo("",!r&&"-noRefinement"),e)},d.createElement("ul",{className:Zo("list",!r&&"list--noRefinement")},t.map(function(e){return d.createElement("li",{key:e.label,className:Zo("item")},d.createElement("span",{className:Zo("label")},e.label),e.items?e.items.map(function(e){return d.createElement("span",{key:e.label,className:Zo("category")},d.createElement("span",{className:Zo("categoryLabel")},e.label),d.createElement("button",{className:Zo("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e)))}):d.createElement("span",{className:Zo("category")},d.createElement("button",{className:Zo("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e))))})))}var zo=N("ClearRefinements"),V=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bo(t,e);var r,n=Lo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:C(zo(""),e)},d.createElement("button",{className:zo("button",!r&&"button--disabled"),onClick:function(){return n(t)},disabled:!r},i("reset")))}}])&&Ho(t.prototype,e),r&&Ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Yo=(Qo(V,"propTypes",{items:F.arrayOf(F.object).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Qo(V,"defaultProps",{className:""}),r({reset:"Clear all filters"})(V)),Ao=Xr(function(e){return d.createElement(T,e,d.createElement(Yo,e))},{$$widgetType:"ais.clearRefinements"}),Zo=N("CurrentRefinements"),Jo=F.arrayOf(F.shape({label:F.string.isRequired,value:F.func.isRequired,items:function(){return Jo.apply(void 0,arguments)}})),Ko=(Wo.defaultProps={className:""},r({clearFilter:"✕"})(Wo)),i=Xr(function(e){return d.createElement(T,e,d.createElement(Ko,e))},{$$widgetType:"ais.currentRefinements"});function Go(e){return(Go="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 Xo(){return(Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ea(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function ta(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(r),!0).forEach(function(e){I(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ra(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ca(n.key),n)}}function na(e,t){return(na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ia(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=aa(r),t=(e=n?(e=aa(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Go(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return oa(t)}}function oa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aa(e){return(aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t,r){return(t=ca(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ca(e){e=function(e,t){if("object"!==Go(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Go(e)?e:String(e)}var ua=N("SearchBox"),V=d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:ua("loadingIcon")},d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},d.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),d.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},d.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),Xr=d.createElement("svg",{className:ua("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10"},d.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),sa=d.createElement("svg",{className:ua("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40"},d.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),la=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&na(t,e);var r,n=ia(i);function i(e){var o;if(this instanceof i)return I(oa(o=n.call(this)),"getQuery",function(){return o.props.searchAsYouType?o.props.currentRefinement:o.state.query}),I(oa(o),"onInputMount",function(e){o.input=e,o.props.inputRef&&("function"==typeof o.props.inputRef?o.props.inputRef(e):o.props.inputRef.current=e)}),I(oa(o),"onKeyDown",function(e){var t,r,n;o.props.focusShortcuts&&(t=o.props.focusShortcuts.map(function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}),r=(n=e.target||e.srcElement).tagName,n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||(n=e.which||e.keyCode,-1!==t.indexOf(n)&&(o.input.focus(),e.stopPropagation(),e.preventDefault())))}),I(oa(o),"onSubmit",function(e){e.preventDefault(),e.stopPropagation(),o.input.blur();var e=o.props,t=e.refine;return e.searchAsYouType||t(o.getQuery()),!1}),I(oa(o),"onChange",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onChange,i=e.target.value;r?n(i):o.setState({query:i}),t&&t(e)}),I(oa(o),"onReset",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onReset;n(""),o.input.focus(),r||o.setState({query:""}),t&&t(e)}),o.state={query:e.searchAsYouType?null:e.currentRefinement},o;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var r=this,e=this.props,t=e.className,n=e.inputId,i=e.translate,o=e.autoFocus,a=e.loadingIndicator,c=e.submit,e=e.reset,u=this.getQuery(),s=Object.keys(this.props).reduce(function(e,t){return-1===["onsubmit","onreset","onchange"].indexOf(t.toLowerCase())&&0===t.indexOf("on")?ta(ta({},e),{},I({},t,r.props[t])):e},{}),l=this.props.showLoadingIndicator&&this.props.isSearchStalled;return d.createElement("div",{className:C(ua(""),t)},d.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit||this.onSubmit,onReset:this.onReset,className:ua("form",l&&"form--stalledSearch"),action:"",role:"search"},d.createElement("input",Xo({ref:this.onInputMount,id:n,type:"search",placeholder:i("placeholder"),autoFocus:o,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:u,onChange:this.onChange},s,{className:ua("input")})),d.createElement("button",{type:"submit",title:i("submitTitle"),className:ua("submit")},c),d.createElement("button",{type:"reset",title:i("resetTitle"),className:ua("reset"),hidden:!u||l},e),this.props.showLoadingIndicator&&d.createElement("span",{hidden:!l,className:ua("loadingIndicator")},a)))}}])&&ra(t.prototype,e),r&&ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),fa=(I(la,"propTypes",{currentRefinement:F.string,className:F.string,refine:F.func.isRequired,translate:F.func.isRequired,loadingIndicator:F.node,reset:F.node,submit:F.node,focusShortcuts:F.arrayOf(F.oneOfType([F.string,F.number])),autoFocus:F.bool,searchAsYouType:F.bool,onSubmit:F.func,onReset:F.func,onChange:F.func,isSearchStalled:F.bool,showLoadingIndicator:F.bool,formRef:F.oneOfType([F.func,F.exact({current:F.object})]),inputRef:F.oneOfType([F.func,F.exact({current:F.object})]),inputId:F.string}),I(la,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:V,reset:Xr,submit:sa}),r({resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(la));function pa(e){return(pa="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 ma(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ga(n.key),n)}}function ha(e,t){return(ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ya(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ba(r),t=(e=n?(e=ba(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===pa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return da(t)}}function da(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function va(e,t,r){(t=ga(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function ga(e){e=function(e,t){if("object"!==pa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===pa(e)?e:String(e)}var xa=F.arrayOf(F.shape({value:F.any,label:F.node.isRequired,items:function(){return xa.apply(void 0,arguments)}})),wa=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ha(t,e);var r,i=ya(o);function o(){var n;if(this instanceof o)return va(da(n=i.call(this)),"onShowMoreClick",function(){n.setState(function(e){return{extended:!e.extended}})}),va(da(n),"getLimit",function(){var e=n.props,t=e.limit,e=e.showMoreLimit;return n.state.extended?e:t}),va(da(n),"resetQuery",function(){n.setState({query:""})}),va(da(n),"renderItem",function(t,e){var r=t.items&&Boolean(t.items.length);return d.createElement("li",{key:t.key||t.label,className:n.props.cx("item",t.isRefined&&"item--selected",t.noRefinement&&"item--noRefinement",r&&"item--parent")},n.props.renderItem(t,e),r&&d.createElement("ul",{className:n.props.cx("list","list--child")},t.items.slice(0,n.getLimit()).map(function(e){return n.renderItem(e,t)})))}),n.state={extended:!1,query:""},n;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderShowMore",value:function(){var e=this.props,t=e.showMore,r=e.translate,e=e.cx,n=this.state.extended,i=this.props.limit>=this.props.items.length;return t?d.createElement("button",{disabled:i,className:e("showMore",i&&"showMore--disabled"),onClick:this.onShowMoreClick},r("showMore",n)):null}},{key:"renderSearchBox",value:function(){var t=this,e=this.props,r=e.cx,n=e.searchForItems,i=e.isFromSearch,o=e.translate,a=e.items,c=e.selectItem,e=0===a.length&&""!==this.state.query?d.createElement("div",{className:r("noResults")},o("noResults")):null;return d.createElement("div",{className:r("searchBox")},d.createElement(fa,{currentRefinement:this.state.query,refine:function(e){t.setState({query:e}),n(e)},focusShortcuts:[],translate:o,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),i&&0<a.length&&c(a[0],t.resetQuery)}}),e)}},{key:"render",value:function(){var t=this,e=this.props,r=e.cx,n=e.items,i=e.className,o=e.searchable,e=e.canRefine,o=o?this.renderSearchBox():null,i=C(r("",!e&&"-noRefinement"),i);return 0===n.length?d.createElement("div",{className:i},o):d.createElement("div",{className:i},o,d.createElement("ul",{className:r("list",!e&&"list--noRefinement")},n.slice(0,this.getLimit()).map(function(e){return t.renderItem(e,t.resetQuery)})),this.renderShowMore())}}])&&ma(t.prototype,e),r&&ma(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);function Oa(e){return(Oa="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 Ra(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_a(n.key),n)}}function Pa(e,t){return(Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Sa(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ea(r),t=(e=n?(e=Ea(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Oa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ja(t)}}function ja(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(e){return(Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fa(e,t,r){(t=_a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function _a(e){e=function(e,t){if("object"!==Oa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Oa(e)?e:String(e)}va(wa,"propTypes",{cx:F.func.isRequired,translate:F.func,items:xa,renderItem:F.func.isRequired,selectItem:F.func,className:F.string,showMore:F.bool,limit:F.number,showMoreLimit:F.number,show:F.func,searchForItems:F.func,searchable:F.bool,isFromSearch:F.bool,canRefine:F.bool}),va(wa,"defaultProps",{className:"",isFromSearch:!1});function Ca(e){var t=e.cx,r=e.value,n=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return d.createElement(i?n:e,{className:t(i?"highlighted":"nonHighlighted")},r)}function Na(e){var n=e.cx,t=e.hit,r=e.attribute,i=e.highlight,o=e.highlightProperty,a=e.tagName,c=e.nonHighlightedTagName,u=e.separator,e=e.className,s=i({hit:t,attribute:r,highlightProperty:o});return d.createElement("span",{className:C(n(""),e)},s.map(function(e,t){var r;return Array.isArray(e)?(r=t===s.length-1,d.createElement("span",{key:t},e.map(function(e,t){return d.createElement(Ca,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}),!r&&d.createElement("span",{className:n("separator")},u))):d.createElement(Ca,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}))}var Ta=N("HierarchicalMenu"),Va=F.arrayOf(F.shape({label:F.string.isRequired,value:F.string,count:F.number.isRequired,items:function(){return Va.apply(void 0,arguments)}})),V=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pa(t,e);var r,a=Sa(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Fa(ja(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e){var t=i.props,r=t.createURL,n=t.refine;return d.createElement(Eo,{className:Ta("link",e.isRefined&&"link--selected"),onClick:function(){return n(e.value)},href:r(e.value)},d.createElement("span",{className:Ta("label")},e.label)," ",d.createElement("span",{className:Ta("count")},e.count))}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,cx:Ta,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,canRefine:a,className:e})}}])&&Ra(t.prototype,e),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Ia=(Fa(V,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,canRefine:F.bool.isRequired,items:Va,showMore:F.bool,className:F.string,limit:F.number,showMoreLimit:F.number,transformItems:F.func}),Fa(V,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"}})(V)),Xr=mn(function(e){return d.createElement(T,e,d.createElement(Ia,e))},{$$widgetType:"ais.hierarchicalMenu"});function ka(){return(ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Na.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "};function Aa(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}var Ma=N("Highlight"),Da=hn(function(e){return d.createElement(Na,ka({},e,{highlightProperty:"_highlightResult",cx:Ma}))},{$$widgetType:"ais.highlight"}),qa=N("Hits"),sa=(F.shape({objectID:F.oneOfType([F.string,F.number]).isRequired}),yn(function(e){var t=e.hits,r=e.className,r=void 0===r?"":r,e=e.hitComponent,n=void 0===e?Aa:e;return d.createElement("div",{className:C(qa(""),r)},d.createElement("ul",{className:qa("list")},t.map(function(e){return d.createElement("li",{className:qa("item"),key:e.objectID},d.createElement(n,{hit:e}))})))},{$$widgetType:"ais.hits"}));function Ha(e){return(Ha="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 Ba(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,za(n.key),n)}}function La(e,t){return(La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $a(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ua(r),t=(e=n?(e=Ua(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ha(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qa(t)}}function Qa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wa(e,t,r){(t=za(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function za(e){e=function(e,t){if("object"!==Ha(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ha(e)?e:String(e)}var Ya=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&La(t,e);var r,a=$a(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Wa(Qa(t=a.call.apply(a,[this].concat(i))),"onChange",function(e){t.props.onSelect(e.target.value)}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.id,n=e.items,e=e.selectedItem;return d.createElement("select",{id:r,className:t("select"),value:e,onChange:this.onChange},n.map(function(e){return d.createElement("option",{className:t("option"),key:void 0===e.key?e.value:e.key,disabled:e.disabled,value:e.value},void 0===e.label?e.value:e.label)}))}}])&&Ba(t.prototype,e),r&&Ba(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Za(e){return(Za="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 Ja(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tc(n.key),n)}}function Ka(e,t){return(Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ga(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Xa(r),t=(e=n?(e=Xa(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Za(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Xa(e){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ec(e,t,r){(t=tc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function tc(e){e=function(e,t){if("object"!==Za(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Za(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Za(e)?e:String(e)}Wa(Ya,"propTypes",{cx:F.func.isRequired,id:F.string,onSelect:F.func.isRequired,items:F.arrayOf(F.shape({value:F.oneOfType([F.string,F.number]).isRequired,key:F.oneOfType([F.string,F.number]),label:F.string,disabled:F.bool})).isRequired,selectedItem:F.oneOfType([F.string,F.number]).isRequired});var rc=N("HitsPerPage"),la=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ka(t,e);var r,n=Ga(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:C(rc(""),e)},d.createElement(Ya,{id:t,onSelect:i,selectedItem:n,items:r,cx:rc}))}}])&&Ja(t.prototype,e),r&&Ja(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),V=(ec(la,"propTypes",{id:F.string,items:F.arrayOf(F.shape({value:F.number.isRequired,label:F.string})).isRequired,currentRefinement:F.number.isRequired,refine:F.func.isRequired,className:F.string}),ec(la,"defaultProps",{className:""}),j(la,{$$widgetType:"ais.hitsPerPage"}));function nc(e){return(nc="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 ic(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==nc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===nc(e)?e:String(e)}(n.key),n)}}function oc(e,t){return(oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ac(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=cc(r),t=(e=n?(e=cc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===nc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function cc(e){return(cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uc=N("InfiniteHits"),mn=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oc(t,e);var r,n=ac(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.hitComponent,r=e.hits,n=e.showPrevious,i=e.hasPrevious,o=e.hasMore,a=e.refinePrevious,c=e.refineNext,u=e.translate,e=e.className;return d.createElement("div",{className:C(uc(""),e)},n&&d.createElement("button",{className:uc("loadPrevious",!i&&"loadPrevious--disabled"),onClick:function(){return a()},disabled:!i},u("loadPrevious")),d.createElement("ul",{className:uc("list")},r.map(function(e){return d.createElement("li",{key:e.objectID,className:uc("item")},d.createElement(t,{hit:e}))})),d.createElement("button",{className:uc("loadMore",!o&&"loadMore--disabled"),onClick:function(){return c()},disabled:!o},u("loadMore")))}}])&&ic(t.prototype,e),r&&ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);mn.defaultProps={className:"",showPrevious:!1,hitComponent:function(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}};yn=_n(r({loadPrevious:"Load previous",loadMore:"Load more"})(mn),{$$widgetType:"ais.infiniteHits"});function sc(e){return(sc="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 lc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dc(n.key),n)}}function fc(e,t){return(fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=hc(r),t=(e=n?(e=hc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===sc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mc(t)}}function mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hc(e){return(hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yc(e,t,r){(t=dc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function dc(e){e=function(e,t){if("object"!==sc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==sc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===sc(e)?e:String(e)}var bc=N("Menu"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fc(t,e);var r,a=pc(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yc(mc(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e,t){var r=i.props.createURL,n=i.props.isFromSearch?d.createElement(Da,{attribute:"label",hit:e}):e.label;return d.createElement(Eo,{className:bc("link"),onClick:function(){return i.selectItem(e,t)},href:r(e.value)},d.createElement("span",{className:bc("label")},n)," ",d.createElement("span",{className:bc("count")},e.count))}),yc(mc(i),"selectItem",function(e,t){t(),i.props.refine(e.value)}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,selectItem:this.selectItem,cx:bc,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e})}}])&&lc(t.prototype,e),r&&lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),vc=(yc(j,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,searchForItems:F.func.isRequired,searchable:F.bool,createURL:F.func.isRequired,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired,count:F.number.isRequired,isRefined:F.bool.isRequired})),isFromSearch:F.bool.isRequired,canRefine:F.bool.isRequired,showMore:F.bool,limit:F.number,showMoreLimit:F.number,transformItems:F.func,className:F.string}),yc(j,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(j)),la=E(function(e){return d.createElement(T,e,d.createElement(vc,e))},{$$widgetType:"ais.menu"});function gc(e){return(gc="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 xc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jc(n.key),n)}}function wc(e,t){return(wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Pc(r),t=(e=n?(e=Pc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===gc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Rc(t)}}function Rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pc(e){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sc(e,t,r){(t=jc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function jc(e){e=function(e,t){if("object"!==gc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===gc(e)?e:String(e)}var Ec=N("MenuSelect"),_n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wc(t,e);var r,a=Oc(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Sc(Rc(t=a.call.apply(a,[this].concat(i))),"handleSelectChange",function(e){e=e.target.value;t.props.refine("ais__see__all__option"===e?"":e)}),t}return t=c,(e=[{key:"selectedValue",get:function(){return(Ki(this.props.items,function(e){return!0===e.isRefined})||{value:"ais__see__all__option"}).value}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.canRefine,i=e.translate,e=e.className;return d.createElement("div",{className:C(Ec("",!n&&"-noRefinement"),e)},d.createElement("select",{id:t,value:this.selectedValue,onChange:this.handleSelectChange,className:Ec("select")},d.createElement("option",{value:"ais__see__all__option",className:Ec("option")},i("seeAllOption")),r.map(function(e){return d.createElement("option",{key:e.value,value:e.value,className:Ec("option")},e.label," (",e.count,")")})))}}])&&xc(t.prototype,e),r&&xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Fc=(Sc(_n,"propTypes",{id:F.string,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired,count:F.oneOfType([F.number.isRequired,F.string.isRequired]),isRefined:F.bool.isRequired})).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Sc(_n,"defaultProps",{className:""}),r({seeAllOption:"See all"})(_n)),mn=E(function(e){return d.createElement(T,e,d.createElement(Fc,e))},{$$widgetType:"ais.menuSelect"});function _c(e){return(_c="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 Cc(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Nc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cc(Object(r),!0).forEach(function(e){Mc(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cc(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Tc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dc(n.key),n)}}function Vc(e,t){return(Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ic(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ac(r),t=(e=n?(e=Ac(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===_c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return kc(t)}}function kc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ac(e){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mc(e,t,r){(t=Dc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Dc(e){e=function(e,t){if("object"!==_c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===_c(e)?e:String(e)}var qc=N("NumericMenu"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vc(t,e);var r,a=Ic(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Mc(kc(n=a.call.apply(a,[this].concat(i))),"renderItem",function(e){var t=n.props,r=t.refine,t=t.translate;return d.createElement("label",{className:qc("label")},d.createElement("input",{className:qc("radio"),type:"radio",checked:e.isRefined,disabled:e.noRefinement,onChange:function(){return r(e.value)}}),d.createElement("span",{className:qc("labelText")},""===e.value?t("all"):e.label))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,showMore:!1,canRefine:r,cx:qc,items:t.map(function(e){return Nc(Nc({},e),{},{key:e.value})}),className:e})}}])&&Tc(t.prototype,e),r&&Tc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Hc=(Mc(j,"propTypes",{items:F.arrayOf(F.shape({label:F.node.isRequired,value:F.string.isRequired,isRefined:F.bool.isRequired,noRefinement:F.bool.isRequired})).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Mc(j,"defaultProps",{className:""}),r({all:"All"})(j)),_n=Yn(function(e){return d.createElement(T,e,d.createElement(Hc,e))},{$$widgetType:"ais.numericMenu"});function Bc(e){return(Bc="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 Lc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wc(n.key),n)}}function $c(e,t){return($c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Uc(r),t=(e=n?(e=Uc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Uc(e){return(Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wc(e){e=function(e,t){if("object"!==Bc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bc(e)?e:String(e)}var E=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$c(t,e);var r,n=Qc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.createURL,n=e.items,i=e.onSelect,e=e.canRefine;return d.createElement("ul",{className:t("list",!e&&"list--noRefinement")},n.map(function(e){return d.createElement("li",{key:void 0===e.key?e.value:e.key,className:t("item",e.selected&&!e.disabled&&"item--selected",e.disabled&&"item--disabled",e.modifier)},e.disabled?d.createElement("span",{className:t("link")},void 0===e.label?e.value:e.label):d.createElement(Eo,{className:t("link",e.selected&&"link--selected"),"aria-label":e.ariaLabel,href:r(e.value),onClick:function(){return i(e.value)}},void 0===e.label?e.value:e.label))}))}}])&&Lc(t.prototype,e),r&&Lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),zc=(j=E,Yn="propTypes",yu={cx:F.func.isRequired,createURL:F.func.isRequired,items:F.arrayOf(F.shape({value:F.oneOfType([F.string,F.number,F.object]).isRequired,key:F.oneOfType([F.string,F.number]),label:F.node,modifier:F.string,ariaLabel:F.string,disabled:F.bool})),onSelect:F.func.isRequired,canRefine:F.bool.isRequired},(Yn=Wc(Yn))in j?Object.defineProperty(j,Yn,{value:yu,enumerable:!0,configurable:!0,writable:!0}):j[Yn]=yu,["listComponent","nbPages","totalPages","currentRefinement","padding","showFirst","showPrevious","showNext","showLast","refine","createURL","canRefine","translate","className"]);function Yc(e){return(Yc="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 Zc(){return(Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Jc(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Kc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ru(n.key),n)}}function Gc(e,t){return(Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=eu(r),t=(e=n?(e=eu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Yc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function eu(e){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tu(e,t,r){(t=ru(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function ru(e){e=function(e,t){if("object"!==Yc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Yc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Yc(e)?e:String(e)}var nu=N("Pagination");function iu(e,t,r){var n,i,o=Math.min(2*r+1,t);return o===t?Ji({start:1,end:t+1}):(t=t,i=o,i=(n=e)<=(r=r)?n:t-r<=n?i-(t-n):r+1,Ji({start:1+(e-i),end:e+(o-i)+1}))}var j=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gc(t,e);var r,n=Xc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"getItem",value:function(e,t,r){var n=this.props,i=n.nbPages,o=n.totalPages,n=n.translate;return{key:"".concat(e,".").concat(r),modifier:e,disabled:r<1||r>=Math.min(o,i),label:n(t,r),value:r,ariaLabel:n("aria".concat(0===(e=t).length?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))),r)}}},{key:"render",value:function(){var e=this.props,t=e.listComponent,r=e.nbPages,n=e.totalPages,i=e.currentRefinement,o=e.padding,a=e.showFirst,c=e.showPrevious,u=e.showNext,s=e.showLast,l=e.refine,f=e.createURL,p=e.canRefine,m=e.translate,h=e.className,e=Jc(e,zc),r=Math.min(r,n),n=r,y=[];return a&&y.push({key:"first",modifier:"item--firstPage",disabled:1===i,label:m("first"),value:1,ariaLabel:m("ariaFirst")}),c&&y.push({key:"previous",modifier:"item--previousPage",disabled:1===i,label:m("previous"),value:i-1,ariaLabel:m("ariaPrevious")}),y=y.concat(iu(i,r,o).map(function(e){return{key:e,modifier:"item--page",label:m("page",e),value:e,selected:e===i,ariaLabel:m("ariaPage",e)}})),u&&y.push({key:"next",modifier:"item--nextPage",disabled:i===n||n<=1,label:m("next"),value:i+1,ariaLabel:m("ariaNext")}),s&&y.push({key:"last",modifier:"item--lastPage",disabled:i===n||n<=1,label:m("last"),value:n,ariaLabel:m("ariaLast")}),d.createElement("div",{className:C(nu("",!p&&"-noRefinement"),h)},d.createElement(t,Zc({},e,{cx:nu,items:y,onSelect:l,createURL:f,canRefine:p})))}}])&&Kc(t.prototype,e),r&&Kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),ou=(tu(j,"propTypes",{nbPages:F.number.isRequired,currentRefinement:F.number.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,canRefine:F.bool.isRequired,translate:F.func.isRequired,listComponent:F.func,showFirst:F.bool,showPrevious:F.bool,showNext:F.bool,showLast:F.bool,padding:F.number,totalPages:F.number,className:F.string}),tu(j,"defaultProps",{listComponent:E,showFirst:!0,showPrevious:!0,showNext:!0,showLast:!1,padding:3,totalPages:1/0,className:""}),r({previous:"‹",next:"›",first:"«",last:"»",page:function(e){return e.toString()},ariaPrevious:"Previous page",ariaNext:"Next page",ariaFirst:"First page",ariaLast:"Last page",ariaPage:function(e){return"Page ".concat(e.toString())}})(j)),Yn=Xn(function(e){return d.createElement(T,e,d.createElement(ou,e))},{$$widgetType:"ais.pagination"});function au(e){return(au="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 cu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fu(n.key),n)}}function uu(e,t){return(uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function su(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=lu(r),t=(e=n?(e=lu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===au(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function lu(e){return(lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e){e=function(e,t){if("object"!==au(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==au(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===au(e)?e:String(e)}var pu=N("PoweredBy"),mu=d.createElement("path",{fill:"#003DFF",d:"M249.5 64.2V1.4c0-.9-.7-1.5-1.6-1.4L236.2 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.6-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7ZM443.5 24.4h-11.8c-.8 0-1.4.6-1.4 1.4v62c0 .8.6 1.4 1.4 1.4h11.8c.8 0 1.4-.6 1.4-1.4v-62c0-.8-.6-1.4-1.4-1.4ZM431.7 16.6h11.8c.8 0 1.4-.6 1.4-1.3v-14c0-.8-.7-1.4-1.6-1.3L431.5 2a1.4 1.4 0 0 0-1.2 1.3v12c0 .8.6 1.4 1.4 1.4Zm-20.5 47.6V1.4c0-.9-.7-1.5-1.5-1.4L397.9 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.5-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7Zm-30.7-31c-2.6-2.8-5.8-5-9.6-6.5a31.7 31.7 0 0 0-12-2.3c-4.5 0-8.5.7-12.2 2.3A27.9 27.9 0 0 0 331 43.5a39.6 39.6 0 0 0 0 26.3c1.5 4 3.6 7.5 6.2 10.3 2.6 2.9 5.8 5 9.5 6.7a38 38 0 0 0 12.2 2.4c2.8 0 8.6-.9 12.3-2.4a27 27 0 0 0 9.5-6.7 35.1 35.1 0 0 0 8.3-23c0-4.9-.8-9.6-2.4-13.6-1.5-4-3.5-7.4-6.1-10.2ZM370 71.5a13.1 13.1 0 0 1-11.2 5.6 13 13 0 0 1-11.2-5.6c-2.7-3.6-4-7.9-4-14.2 0-6.3 1.3-11.5 4-15.1a13 13 0 0 1 11.1-5.5 13 13 0 0 1 11.3 5.5c2.6 3.6 4 8.8 4 15 0 6.4-1.3 10.6-4 14.3Zm-161.6-47H197a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.9 45.9 18.8 18.8 0 0 0 11.2 3.1H191.2l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13Zm0 48.3a17.8 17.8 0 0 1-10.4 3.5h-.2a12.5 12.5 0 0 1-.7 0A18.4 18.4 0 0 1 180.4 51c2.7-6.8 9-11.6 16.6-11.6h11.5v33.3Zm289-48.3H486a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.8 45.9 18.8 18.8 0 0 0 11.3 3.1h1.1l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13.1Zm0 48.3a17.8 17.8 0 0 1-10.5 3.5h-.9A18.4 18.4 0 0 1 469.4 51c2.6-6.8 9-11.6 16.6-11.6h11.5v33.3ZM306.3 24.4h-11.5a32 32 0 0 0-27 15 33.7 33.7 0 0 0-5.1 14.6 34.6 34.6 0 0 0 0 7.6c1 8.9 5.4 16.7 11.8 22a19.5 19.5 0 0 0 2.2 1.7 18.8 18.8 0 0 0 21.6-.6c3.8-2.7 6.7-6.7 8-11.1V87.9c0 5-1.3 8.9-4 11.5-2.7 2.6-7.3 3.9-13.6 3.9-2.6 0-6.7-.2-10.9-.6a1.4 1.4 0 0 0-1.4 1l-3 10a1.4 1.4 0 0 0 1.1 1.8c5 .7 10 1 12.8 1 11.4 0 19.8-2.4 25.3-7.4 5-4.6 7.8-11.4 8.2-20.7V25.8c0-.8-.6-1.4-1.3-1.4h-13.2Zm0 15s.2 32.4 0 33.4a17.5 17.5 0 0 1-10 3.4h-.2a13.6 13.6 0 0 1-1.7 0A18.7 18.7 0 0 1 278.3 51c2.6-6.8 9-11.6 16.5-11.6h11.5ZM58.2 0A58.3 58.3 0 1 0 86 109.5c.9-.5 1-1.6.3-2.2l-5.5-4.9a3.8 3.8 0 0 0-4-.6A47 47 0 0 1 11 57.5 47.3 47.3 0 0 1 58.2 11h47.3v84L78.7 71.2a2 2 0 0 0-3 .3 22 22 0 1 1 4.4-15.2 4 4 0 0 0 1.3 2.6l7 6.2c.8.7 2 .3 2.3-.8a33 33 0 0 0-30.4-39 33 33 0 0 0-35 32 33.3 33.3 0 0 0 32.2 33.9 32.8 32.8 0 0 0 20-6.3l35.1 31c1.5 1.4 3.9.3 3.9-1.7V2.2a2.2 2.2 0 0 0-2.2-2.2h-56Z"}),hu=d.createElement(function(){return d.createElement("svg",{viewBox:"0 0 512 117",width:"118",height:"27",className:pu("logo")},mu)},null),yu=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uu(t,e);var r,n=su(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.url,r=e.translate,e=e.className;return d.createElement("div",{className:C(pu(""),e)},d.createElement("span",{className:pu("text")},r("searchBy"))," ",d.createElement("a",{href:t,target:"_blank",className:pu("link"),"aria-label":"Algolia",rel:"noopener noreferrer"},hu))}}])&&cu(t.prototype,e),r&&cu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);E=yu,j="propTypes",Xn={url:F.string.isRequired,translate:F.func.isRequired,className:F.string},(j=fu(j))in E?Object.defineProperty(E,j,{value:Xn,enumerable:!0,configurable:!0,writable:!0}):E[j]=Xn;E=ei(r({searchBy:"Search by"})(yu),{$$widgetType:"ais.poweredBy"});function du(e){return(du="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 bu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ru(n.key),n)}}function vu(e,t){return(vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=wu(r),t=(e=n?(e=wu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===du(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xu(t)}}function xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wu(e){return(wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ou(e,t,r){(t=Ru(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ru(e){e=function(e,t){if("object"!==du(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==du(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===du(e)?e:String(e)}var Pu=N("RangeInput"),j=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vu(t,e);var r,n=gu(i);function i(e){var t;if(this instanceof i)return Ou(xu(t=n.call(this,e)),"onSubmit",function(e){e.preventDefault(),t.props.refine({min:t.state.from,max:t.state.to})}),t.state=t.normalizeStateForRendering(e),t;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){!this.props.canRefine||e.currentRefinement.min===this.props.currentRefinement.min&&e.currentRefinement.max===this.props.currentRefinement.max||this.setState(this.normalizeStateForRendering(this.props))}},{key:"normalizeStateForRendering",value:function(e){var t=e.canRefine,r=e.min,n=e.max,e=e.currentRefinement,i=e.min,e=e.max;return{from:t&&void 0!==i&&i!==r?i:"",to:t&&void 0!==e&&e!==n?e:""}}},{key:"normalizeRangeForRendering",value:function(e){var t=e.canRefine,r=e.min,e=e.max,n=void 0!==r,i=void 0!==e;return{min:t&&n&&i?r:"",max:t&&n&&i?e:""}}},{key:"render",value:function(){var t=this,e=this.state,r=e.from,e=e.to,n=this.props,i=n.precision,o=n.translate,a=n.canRefine,n=n.className,c=this.normalizeRangeForRendering(this.props),u=c.min,c=c.max,i=1/Math.pow(10,i);return d.createElement("div",{className:C(Pu("",!a&&"-noRefinement"),n)},d.createElement("form",{className:Pu("form"),onSubmit:this.onSubmit},d.createElement("input",{className:Pu("input","input--min"),type:"number",min:u,max:c,value:r,step:i,placeholder:u,disabled:!a,onChange:function(e){return t.setState({from:e.currentTarget.value})}}),d.createElement("span",{className:Pu("separator")},o("separator")),d.createElement("input",{className:Pu("input","input--max"),type:"number",min:u,max:c,value:e,step:i,placeholder:c,disabled:!a,onChange:function(e){return t.setState({to:e.currentTarget.value})}}),d.createElement("button",{className:Pu("submit"),type:"submit"},o("submit"))))}}])&&bu(t.prototype,e),r&&bu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Su=(Ou(j,"propTypes",{canRefine:F.bool.isRequired,precision:F.number.isRequired,translate:F.func.isRequired,refine:F.func.isRequired,min:F.number,max:F.number,currentRefinement:F.shape({min:F.number,max:F.number}),className:F.string}),Ou(j,"defaultProps",{currentRefinement:{},className:""}),r({submit:"ok",separator:"to"})(j)),Xn=si(function(e){return d.createElement(T,e,d.createElement(Su,e))},{$$widgetType:"ais.rangeInput"}),ju=d.createElement("div",null,"We do not provide any Slider, see the documentation to learn how to connect one easily:",d.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"},"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"));function Eu(e){return(Eu="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 Fu(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fu(Object(r),!0).forEach(function(e){ku(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fu(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Cu(){return(Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Nu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Au(n.key),n)}}function Tu(e,t){return(Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Iu(r),t=(e=n?(e=Iu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Eu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Iu(e){return(Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ku(e,t,r){(t=Au(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Au(e){e=function(e,t){if("object"!==Eu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Eu(e)?e:String(e)}var k=N("RatingMenu"),Mu=d.createElement("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),Du=d.createElement("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}),ei=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tu(t,e);var r,n=Vu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"onClick",value:function(e,t,r){r.preventDefault(),r.stopPropagation(),e===this.props.currentRefinement.min&&t===this.props.currentRefinement.max?this.props.refine({min:this.props.min,max:this.props.max}):this.props.refine({min:e,max:t})}},{key:"buildItem",value:function(e){for(var t=e.max,r=e.lowerBound,n=e.count,i=e.translate,o=e.createURL,e=e.isLastSelectableItem,a=!n,c=this.props.currentRefinement.min<r,c=e&&c||!a&&r===this.props.currentRefinement.min&&t===this.props.currentRefinement.max,u=[],s=0,l=0;l<t;l++)l<r&&s++,u.push([d.createElement("svg",{key:l,className:k("starIcon",r<=l?"starIcon--empty":"starIcon--full"),"aria-hidden":"true",width:"24",height:"24"},d.createElement("use",{xlinkHref:"#".concat(k(r<=l?"starEmptySymbol":"starSymbol"))}))," "]);e=a||e&&c?{}:{href:o({min:r,max:t}),onClick:this.onClick.bind(this,r,t)};return d.createElement("li",{key:r,className:k("item",c&&"item--selected",a&&"item--disabled")},d.createElement("a",Cu({className:k("link"),"aria-label":"".concat(s).concat(i("ratingLabel"))},e),u,d.createElement("span",{className:k("label"),"aria-hidden":"true"},i("ratingLabel"))," ",d.createElement("span",{className:k("count")},n)))}},{key:"render",value:function(){var n=this,e=this.props,t=e.min,r=e.max,i=e.translate,o=e.count,a=e.createURL,c=e.canRefine,e=e.className,u=void 0!==t&&0<=t?t:1,s=void 0!==r&&0<=r?r:0,t=s-u+1,l=o.map(function(e){return _u(_u({},e),{},{value:parseFloat(e.value)})}).filter(function(e){return e.value>=u&&e.value<=s}),r=Ji({start:0,end:Math.max(t,0)}).map(function(t){return Ki(l,function(e){return e.value===s-t})||{value:s-t,count:0,total:0}}).reduce(function(e,t,r){return e.concat(_u(_u({},t),{},{total:0===r?t.count:e[r-1].total+t.count}))},[]).map(function(e,t,r){return n.buildItem({lowerBound:e.value,count:e.total,isLastSelectableItem:r.length-1===t,max:s,translate:i,createURL:a})});return d.createElement("div",{className:C(k("",!c&&"-noRefinement"),e)},d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},d.createElement("symbol",{id:k("starSymbol"),viewBox:"0 0 24 24"},Mu),d.createElement("symbol",{id:k("starEmptySymbol"),viewBox:"0 0 24 24"},Du)),d.createElement("ul",{className:k("list",!c&&"list--noRefinement")},r))}}])&&Nu(t.prototype,e),r&&Nu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),qu=(ku(ei,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,min:F.number,max:F.number,currentRefinement:F.shape({min:F.number,max:F.number}),count:F.arrayOf(F.shape({value:F.string,count:F.number})),canRefine:F.bool.isRequired,className:F.string}),ku(ei,"defaultProps",{className:""}),r({ratingLabel:" & Up"})(ei)),yu=si(function(e){return d.createElement(T,e,d.createElement(qu,e))},{$$widgetType:"ais.ratingMenu"});function Hu(e){return(Hu="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 Bu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zu(n.key),n)}}function Lu(e,t){return(Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $u(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Uu(r),t=(e=n?(e=Uu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Hu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qu(t)}}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uu(e){return(Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wu(e,t,r){(t=zu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function zu(e){e=function(e,t){if("object"!==Hu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Hu(e)?e:String(e)}var Yu=N("RefinementList"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lu(t,e);var r,a=$u(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Wu(Qu(n=a.call.apply(a,[this].concat(i))),"state",{query:""}),Wu(Qu(n),"selectItem",function(e,t){t(),n.props.refine(e.value)}),Wu(Qu(n),"renderItem",function(e,t){var r=n.props.isFromSearch?d.createElement(Da,{attribute:"label",hit:e}):e.label;return d.createElement("label",{className:Yu("label")},d.createElement("input",{className:Yu("checkbox"),type:"checkbox",checked:e.isRefined,onChange:function(){return n.selectItem(e,t)}}),d.createElement("span",{className:Yu("labelText")},r)," ",d.createElement("span",{className:Yu("count")},e.count.toLocaleString()))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,selectItem:this.selectItem,cx:Yu,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e,query:this.state.query})}}])&&Bu(t.prototype,e),r&&Bu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Zu=(Wu(j,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,searchForItems:F.func.isRequired,searchable:F.bool,createURL:F.func.isRequired,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.arrayOf(F.string).isRequired,count:F.number.isRequired,isRefined:F.bool.isRequired})),isFromSearch:F.bool.isRequired,canRefine:F.bool.isRequired,showMore:F.bool,limit:F.number,showMoreLimit:F.number,transformItems:F.func,className:F.string}),Wu(j,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(j)),ei=gi(function(e){return d.createElement(T,e,d.createElement(Zu,e))},{$$widgetType:"ais.refinementList"});function Ju(e){return(Ju="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 Ku(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ts(n.key),n)}}function Gu(e,t){return(Gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=es(r),t=(e=n?(e=es(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ju(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function es(e){return(es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ts(e){e=function(e,t){if("object"!==Ju(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ju(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ju(e)?e:String(e)}var rs=N("ScrollTo"),si=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gu(t,e);var r,n=Xu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.value,t=t.hasNotChanged;r!==e.value&&t&&this.el.scrollIntoView()}},{key:"render",value:function(){var t=this;return d.createElement("div",{ref:function(e){return t.el=e},className:rs("")},this.props.children)}}])&&Ku(t.prototype,e),r&&Ku(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),j=(j=si,gi="propTypes",as={value:F.any,children:F.node,hasNotChanged:F.bool},(gi=ts(gi))in j?Object.defineProperty(j,gi,{value:as,enumerable:!0,configurable:!0,writable:!0}):j[gi]=as,xi(si,{$$widgetType:"ais.scrollTo"})),gi=ji(fa,{$$widgetType:"ais.searchBox"});function ns(){return(ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function is(e){return e=e.isRelevantSorted,d.createElement("span",null,e?"See all results":"See relevant results")}var os=N("Snippet"),as=hn(function(e){return d.createElement(Na,ns({},e,{highlightProperty:"_snippetResult",cx:os}))},{$$widgetType:"ais.snippet"}),cs=N("RelevantSort"),xi=Ci(function(e){var t=e.className,t=void 0===t?"":t,r=e.isVirtualReplica,n=e.isRelevantSorted,i=e.buttonTextComponent,i=void 0===i?is:i,o=e.textComponent,a=e.refine;return r?d.createElement("div",{className:C(cs(""),t)},d.createElement("div",{className:cs("text")},o&&d.createElement(o,{isRelevantSorted:n})),d.createElement("button",{className:cs("button"),onClick:function(){return a(n?0:void 0)}},d.createElement(i,{isRelevantSorted:n}))):null},{$$widgetType:"ais.relevantSort"});function us(e){return(us="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 ss(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hs(n.key),n)}}function ls(e,t){return(ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fs(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ps(r),t=(e=n?(e=ps(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===us(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ps(e){return(ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ms(e,t,r){(t=hs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function hs(e){e=function(e,t){if("object"!==us(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==us(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===us(e)?e:String(e)}function ys(e){var t=e.currentRefinement,r=e.label,n=e.canRefine,i=e.refine,e=e.className;return d.createElement("div",{className:C(vs("",!n&&"-noRefinement"),e)},d.createElement("label",{className:vs("label")},d.createElement("input",{className:vs("checkbox"),type:"checkbox",checked:t,onChange:function(e){return i(e.target.checked)}}),d.createElement("span",{className:vs("labelText")},r)))}var ds=N("SortBy"),si=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ls(t,e);var r,n=fs(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:C(ds(""),e)},d.createElement(Ya,{id:t,cx:ds,items:r,selectedItem:n,onSelect:i}))}}])&&ss(t.prototype,e),r&&ss(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),ji=(ms(si,"propTypes",{id:F.string,items:F.arrayOf(F.shape({label:F.string,value:F.string.isRequired})).isRequired,currentRefinement:F.string.isRequired,refine:F.func.isRequired,className:F.string}),ms(si,"defaultProps",{className:""}),Mi(si,{$$widgetType:"ais.sortBy"})),bs=N("Stats"),hn=Di(r({stats:function(e,t,r,n){return(n&&e!==r?"".concat(r.toLocaleString()," relevant results sorted out of ").concat(e.toLocaleString()," found in "):"".concat(e.toLocaleString()," results found in ")).concat(t.toLocaleString(),"ms")}})(function(e){var t=e.className,t=void 0===t?"":t,r=e.areHitsSorted,n=e.nbHits,i=e.nbSortedHits,o=e.processingTimeMS,e=e.translate;return d.createElement("div",{className:C(bs(""),t)},d.createElement("span",{className:bs("text")},e("stats",n,o,i,r)))}),{$$widgetType:"ais.stats"}),vs=N("ToggleRefinement"),Ci=(ys.defaultProps={className:""},R(ys,{$$widgetType:"ais.toggleRefinement"})),gs=["children","className"];function xs(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}var ws=N("DynamicWidgets");function Os(e){var t=e.children,r=e.className,e=xs(e,gs);return d.createElement("div",{className:C(ws(""),r)},d.createElement(cr,e,t))}F=Os;e.Breadcrumb=Do,e.ClearRefinements=Ao,e.Configure=te,e.CurrentRefinements=i,e.DynamicWidgets=Os,e.ExperimentalConfigureRelatedItems=w,e.ExperimentalDynamicWidgets=F,e.HierarchicalMenu=Xr,e.Highlight=Da,e.Hits=sa,e.HitsPerPage=V,e.Index=function(t){var r=t.indexName;return d.createElement(re,null,function(e){return d.createElement(vr,sr({contextValue:e,indexId:r},t))})},e.InfiniteHits=yn,e.InstantSearch=f,e.Menu=la,e.MenuSelect=mn,e.NumericMenu=_n,e.Pagination=Yn,e.Panel=co,e.PoweredBy=E,e.RangeInput=Xn,e.RangeSlider=function(){return ju},e.RatingMenu=yu,e.RefinementList=ei,e.RelevantSort=xi,e.ScrollTo=j,e.SearchBox=gi,e.Snippet=as,e.SortBy=ji,e.Stats=hn,e.ToggleRefinement=Ci,e.getInsightsAnonymousUserToken=function(){for(var e="_ALGOLIA",t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("react")):"function"==typeof define&&define.amd?define(["exports","react"],t):t(((e=e||self).ReactInstantSearch=e.ReactInstantSearch||{},e.ReactInstantSearch.Dom={}),e.React)}(this,function(e,o){"use strict";var d="default"in o?o.default:o,A="undefined"!=typeof Element,M="function"==typeof Map,D="function"==typeof Set,q="function"==typeof ArrayBuffer;var H=function(e,t){try{return function e(t,r){if(t===r)return!0;if(t&&r&&"object"==typeof t&&"object"==typeof r){if(t.constructor!==r.constructor)return!1;var n,i,o,a;if(Array.isArray(t)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(!e(t[i],r[i]))return!1}else if(M&&t instanceof Map&&r instanceof Map){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1;for(a=t.entries();!(i=a.next()).done;)if(!e(i.value[1],r.get(i.value[0])))return!1}else if(D&&t instanceof Set&&r instanceof Set){if(t.size!==r.size)return!1;for(a=t.entries();!(i=a.next()).done;)if(!r.has(i.value[0]))return!1}else if(q&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(r)){if((n=t.length)!=r.length)return!1;for(i=n;0!=i--;)if(t[i]!==r[i])return!1}else{if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if((n=(o=Object.keys(t)).length)!==Object.keys(r).length)return!1;for(i=n;0!=i--;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;if(A&&t instanceof Element)return!1;for(i=n;0!=i--;)if(!("_owner"===o[i]&&t.$$typeof||e(t[o[i]],r[o[i]])))return!1}return!0}return t!=t&&r!=r}(e,t)}catch(e){if((e.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw e}};function B(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function L(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?B(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==$(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==$(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===$(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):B(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}function $(e){return($="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 Q(e){z.then(e)}var U=function(e,t){if(e!==t){var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var i=Object.prototype.hasOwnProperty,o=0;o<r.length;o++)if(!i.call(t,r[o])||e[r[o]]!==t[r[o]])return!1}return!0},W=function(e){return e.displayName||e.name||"UnknownComponent"},z=Promise.resolve(),Y=function n(i){return Object.keys(i).forEach(function(e){var t,r=i[e];"object"!==$(t=r)||null===t||Array.isArray(t)||((t=r)&&0<Object.keys(t).length?n(r):delete i[e])}),i};function Z(e,r,n){return e.map(function(e,t){return L(L({},e),{},{__position:r*n+t+1})})}function J(e,t){return t?e.map(function(e){return L(L({},e),{},{__queryID:t})}):e}function K(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function G(e,t){if(null==e)return{};for(var r={},n=Object.keys(e),i=0;i<n.length;i++){var o=n[i];0<=t.indexOf(o)||(r[o]=e[o])}return r}var X=function(e,t){return(Array.isArray(t)?t:t.replace(/\[(\d+)]/g,".$1").split(".")).reduce(function(e,t){return e?e[t]:void 0},e)};function ee(e){return e.replace(/^\\-/,"-")}var te=o.createContext({onInternalStateUpdate:function(){},createHrefForState:function(){return"#"},onSearchForFacetValues:function(){},onSearchStateChange:function(){},onSearchParameters:function(){},store:{},widgetsManager:{},mainTargetedIndex:""}),re=te.Consumer,ne=te.Provider,te=o.createContext(void 0),ie=te.Consumer,oe=te.Provider,ae=["contextValue"];function ce(e){return(ce="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 ue(){return(ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function se(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function le(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function fe(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?le(Object(r),!0).forEach(function(e){u(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):le(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function pe(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,de(n.key),n)}}function me(e,t){return(me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function he(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ye(r),t=(e=n?(e=ye(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ce(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return c(t)}}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ye(e){return(ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t,r){(t=de(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function de(e){e=function(e,t){if("object"!==ce(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ce(e)?e:String(e)}function be(s){var a;if(s.displayName)return a="function"==typeof s.getSearchParameters||"function"==typeof s.getMetadata||"function"==typeof s.transitionState,function(i){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},t=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&me(t,e);var r,n=he(o);function o(e){var i;if(this instanceof o)return u(c(i=n.call(this,e)),"unsubscribe",void 0),u(c(i),"unregisterWidget",void 0),u(c(i),"cleanupTimerRef",null),u(c(i),"isUnmounting",!1),u(c(i),"state",{providedProps:i.getProvidedProps(i.props)}),u(c(i),"refine",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onInternalStateUpdate((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"createURL",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return i.props.contextValue.createHrefForState((e=s.refine).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),u(c(i),"searchForFacetValues",function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];i.props.contextValue.onSearchForFacetValues((e=s.searchForFacetValues).call.apply(e,[c(i),i.props,i.props.contextValue.store.getState().widgets].concat(r)))}),s.getSearchParameters&&i.props.contextValue.onSearchParameters(s.getSearchParameters.bind(c(i)),{ais:i.props.contextValue,multiIndexContext:i.props.indexContextValue},i.props,s.getMetadata&&s.getMetadata.bind(c(i)),s.displayName),i;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"componentDidMount",value:function(){var e=this;this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),this.unsubscribe=this.props.contextValue.store.subscribe(function(){e.isUnmounting||e.setState({providedProps:e.getProvidedProps(e.props)})}),a&&(this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this))}},{key:"shouldComponentUpdate",value:function(e,t){return"function"==typeof s.shouldComponentUpdate?s.shouldComponentUpdate.call(this,this.props,e,this.state,t):(e=U(this.props,e),null===this.state.providedProps||null===t.providedProps?this.state.providedProps!==t.providedProps||!e:!e||!U(this.state.providedProps,t.providedProps))}},{key:"componentDidUpdate",value:function(e){H(e,this.props)||(this.setState({providedProps:this.getProvidedProps(this.props)}),a&&(this.props.contextValue.widgetsManager.update(),"function"==typeof s.transitionState)&&this.props.contextValue.onSearchStateChange(s.transitionState.call(this,this.props,this.props.contextValue.store.getState().widgets,this.props.contextValue.store.getState().widgets)))}},{key:"componentWillUnmount",value:function(){var t=this;this.cleanupTimerRef=setTimeout(function(){var e;t.isUnmounting=!0,t.unsubscribe&&t.unsubscribe(),t.unregisterWidget&&(t.unregisterWidget(),"function"==typeof s.cleanUp)&&(e=s.cleanUp.call(t,t.props,t.props.contextValue.store.getState().widgets),t.props.contextValue.store.setState(fe(fe({},t.props.contextValue.store.getState()),{},{widgets:e})),t.props.contextValue.onSearchStateChange(Y(e)))})}},{key:"getProvidedProps",value:function(e){var t=this.props.contextValue.store.getState(),r=t.widgets,n=t.results,i=t.resultsFacetValues,o=t.searching,a=t.searchingForFacetValues,c=t.isSearchStalled,u=t.metadata,t=t.error;return s.getProvidedProps.call(this,e,r,{results:n,searching:o,searchingForFacetValues:a,isSearchStalled:c,error:t},u,i)}},{key:"getSearchParameters",value:function(e){return"function"==typeof s.getSearchParameters?s.getSearchParameters.call(this,e,this.props,this.props.contextValue.store.getState().widgets):null}},{key:"getMetadata",value:function(e){return"function"==typeof s.getMetadata?s.getMetadata.call(this,this.props,e):{}}},{key:"transitionState",value:function(e,t){return"function"==typeof s.transitionState?s.transitionState.call(this,this.props,e,t):t}},{key:"render",value:function(){var e,t,r=this.props,r=(r.contextValue,se(r,ae)),n=this.state.providedProps;return null===n?null:(e="function"==typeof s.refine?{refine:this.refine,createURL:this.createURL}:{},t="function"==typeof s.searchForFacetValues?{searchForItems:this.searchForFacetValues}:{},d.createElement(i,ue({},r,n,e,t)))}}])&&pe(t.prototype,e),r&&pe(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);return u(t,"displayName","".concat(s.displayName,"(").concat(W(i),")")),u(t,"$$type",s.$$type),u(t,"$$widgetType",e.$$widgetType),u(t,"propTypes",s.propTypes),u(t,"defaultProps",s.defaultProps),u(t,"_connectorDesc",s),t};throw new Error("`createConnector` requires you to provide a `displayName` property.")}function t(r){return function(e,t){var n=be(r)(e,t);return function(r){return d.createElement(re,null,function(t){return d.createElement(ie,null,function(e){return d.createElement(n,ue({contextValue:t,indexContextValue:e},r))})})}}}var ve={highlightPreTag:"<ais-highlight-0000000000>",highlightPostTag:"</ais-highlight-0000000000>"};function ge(e){var t,r=e.preTag,n=e.postTag,e=e.highlightedValue,e=(void 0===e?"":e).split(r),i=e.shift(),o=""===i?[]:[{value:i,isHighlighted:!1}];return n===r?(t=!0,e.forEach(function(e){o.push({value:e,isHighlighted:t}),t=!t})):e.forEach(function(e){e=e.split(n);o.push({value:e[0],isHighlighted:!0}),""!==e[1]&&o.push({value:e[1],isHighlighted:!1})}),o}var xe="6.39.1";function we(e){return(we="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 Oe(){return(Oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Re(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Fe(n.key),n)}}function Pe(e,t){return(Pe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Se(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ee(r),t=(e=n?(e=Ee(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===we(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return je(t)}}function je(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e){e=function(e,t){if("object"!==we(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==we(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===we(e)?e:String(e)}function r(s){return function(n){var e=function(e){var t=u;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pe(t,e);var r,c=Se(u);function u(){var o,e=this,t=u;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r,n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];return o=c.call.apply(c,[this].concat(i)),e=je(o),t=function(e){var t=o.props.translations,t=(t&&t.hasOwnProperty(e)?t:s)[e];if("function"!=typeof t)return t;for(var r=arguments.length,n=new Array(1<r?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return t.apply(void 0,n)},(r=Fe(r="translate"))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,o}return t=u,(e=[{key:"render",value:function(){return d.createElement(n,Oe({translate:this.translate},this.props))}}])&&Re(t.prototype,e),r&&Re(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(o.Component),t=n.displayName||n.name||"UnknownComponent";return e.displayName="Translatable(".concat(t,")"),e}}function _e(e){return(_e="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 Ce(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function p(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ce(Object(r),!0).forEach(function(e){m(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ce(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function m(e,t,r){return(t=function(e){e=function(e,t){if("object"!==_e(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_e(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===_e(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return Ne(e)?e.multiIndexContext.targetedIndex:e.ais.mainTargetedIndex}function y(e,t){if(e.results){if(e.results.hits)return e.results;t=h(t);if(e.results[t])return e.results[t]}return null}function Ne(e){return e&&e.multiIndexContext}function b(t,e,r,n,i){var o,a,c,u,s,l,f;return Ne(r)?(r=h(r),i?(c=e,u=r,l=i,s=(s=n)?{page:1}:void 0,f=(a=t).indices&&a.indices[u]?p(p({},a.indices),{},m({},u,p(p({},a.indices[u]),{},(m(f={},l,p(p({},a.indices[u][l]),c)),m(f,"page",1),f)))):p(p({},a.indices),{},m({},u,p(m({},l,c),s))),p(p({},a),{},{indices:f})):(u=e,l=r,c=(c=n)?{page:1}:void 0,l=(s=t).indices&&s.indices[l]?p(p({},s.indices),{},m({},l,p(p(p({},s.indices[l]),u),c))):p(p({},s.indices),{},m({},l,p(p({},u),c))),p(p({},s),{},{indices:l}))):(t.indices&&n&&Object.keys(t.indices).forEach(function(e){t=b(t,{page:1},{multiIndexContext:{targetedIndex:e}},!0,i)}),i?(a=e,f=i,r=(r=n)?{page:1}:void 0,p(p({},o=t),{},m({},f,p(p({},o[f]),a)),r)):(o=e,r=(r=n)?{page:1}:void 0,p(p(p({},t),o),r)))}function Te(e){e=e.match(/^([^.]*)\.(.*)/);return{namespace:e&&e[1],attributeName:e&&e[2]}}function a(e,t,r,n,i){var o,a=h(r),c=Te(n),u=c.namespace,c=c.attributeName,r={multiIndex:Ne(r),indexId:a,namespace:u,attributeName:c,id:n,searchState:t};return u=(a=r).multiIndex,c=a.indexId,n=a.namespace,t=a.attributeName,o=a.id,a=a.searchState,(u&&n?a.indices&&a.indices[c]&&a.indices[c][n]&&Object.hasOwnProperty.call(a.indices[c][n],t):u?a.indices&&a.indices[c]&&Object.hasOwnProperty.call(a.indices[c],o):n?a[n]&&Object.hasOwnProperty.call(a[n],t):Object.hasOwnProperty.call(a,o))?(c=(u=r).multiIndex,n=u.indexId,t=u.namespace,a=u.attributeName,o=u.id,u=u.searchState,c&&t?u.indices[n][t][a]:c?u.indices[n][o]:t?u[t][a]:u[o]):e.defaultRefinement||i}function n(e,t,r){var n,i,o,a,c=h(t),u=Te(r),s=u.namespace,u=u.attributeName;return Ne(t)&&Boolean(e.indices)?(c=(t={attribute:u,searchState:e,indexId:c,id:r,namespace:s}).searchState,i=t.indexId,n=t.id,a=t.namespace,t=t.attribute,o=c.indices[i],a&&o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,p(p({},o),{},m({},a,G(o[a],[t])))))}):o?p(p({},c),{},{indices:p(p({},c.indices),{},m({},i,G(o,[n])))}):c):(t=(a={attribute:u,searchState:e,id:r,namespace:s}).searchState,i=a.id,o=a.namespace,a=a.attribute,o?p(p({},t),{},m({},o,G(t[o],[a]))):G(t,[i]))}function Ve(e){return(Ve="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)}var Ie=["children","contextValue","indexContextValue"],ke=["children","contextValue","indexContextValue"];function Ae(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Me(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ae(Object(r),!0).forEach(function(e){De(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ae(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function De(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ve(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ve(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ve(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qe(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function He(){return"configure"}var te=t({displayName:"AlgoliaConfigure",$$type:"ais.configure",getProvidedProps:function(){return{}},getSearchParameters:function(e,t){t.children,t.contextValue,t.indexContextValue;t=qe(t,Ie);return e.setQueryParameters(t)},transitionState:function(e,t,r){var n=He(),i=(e.children,e.contextValue,e.indexContextValue,qe(e,ke)),o=Object.keys(e),a=this._props?Object.keys(this._props).filter(function(e){return-1===o.indexOf(e)}):[];return this._props=e,b(r,De({},n,Me(Me({},G(r[n],a)),i)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(r,e){var n=He(),t=h({ais:r.contextValue,multiIndexContext:r.indexContextValue}),i=Ne({ais:r.contextValue,multiIndexContext:r.indexContextValue})&&e.indices?e.indices[t]:e,t=(i&&i[n]?Object.keys(i[n]):[]).reduce(function(e,t){return r[t]||(e[t]=i[n][t]),e},{});return b(e,De({},n,t),{ais:r.contextValue,multiIndexContext:r.indexContextValue})}})(function(){return null},{$$widgetType:"ais.configure"}),i=("undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{}).performance||{};i.now||i.mozNow||i.msNow||i.oNow||i.webkitNow;function Be(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}function Le(e,t){var r,n;if(e!==t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&"__proto__"!==i&&"constructor"!==i&&(r=t[i],void 0!==(n=e[i])&&void 0===r||(Be(n)&&Be(r)?e[i]=Le(n,r):e[i]="object"==typeof(n=r)&&null!==n?Le(Array.isArray(n)?[]:{},n):n));return e}function $e(){return Array.prototype.slice.call(arguments).reduceRight(function(t,r){return Object.keys(Object(r)).forEach(function(e){void 0!==r[e]&&(void 0!==t[e]&&delete t[e],t[e]=r[e])}),t},{})}var Qe=function(e){Be(e)||(e={});for(var t=1,r=arguments.length;t<r;t++){var n=arguments[t];Be(n)&&Le(e,n)}return e};var Ue=function(r,n){return r.filter(function(e,t){return-1<n.indexOf(e)&&r.indexOf(e)===t})},v=function(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]};var We=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw new Error("The value should be a number, a parsable string or an array of those.")};var ze=function(e,t){if(null===e)return{};for(var r,n={},i=Object.keys(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||(n[r]=e[r]);return n};var Ye=function(e){return e&&0<Object.keys(e).length},Ze={addRefinement:function(e,t,r){var n;return Ze.isRefined(e,t,r)?e:(r=""+r,r=e[t]?e[t].concat(r):[r],(n={})[t]=r,$e({},n,e))},removeRefinement:function(e,r,t){var n;return void 0===t?Ze.clearRefinement(e,function(e,t){return r===t}):(n=""+t,Ze.clearRefinement(e,function(e,t){return r===t&&n===e}))},toggleRefinement:function(e,t,r){if(void 0===r)throw new Error("toggleRefinement should be used with a value");return Ze.isRefined(e,t,r)?Ze.removeRefinement(e,t,r):Ze.addRefinement(e,t,r)},clearRefinement:function(i,o,a){var c,e;return void 0===o?Ye(i)?{}:i:"string"==typeof o?ze(i,[o]):"function"==typeof o?(c=!1,e=Object.keys(i).reduce(function(e,t){var r=i[t]||[],n=r.filter(function(e){return!o(e,t,a)});return n.length!==r.length&&(c=!0),e[t]=n,e},{}),c?e:i):void 0},isRefined:function(e,t,r){var n=!!e[t]&&0<e[t].length;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}},s=Ze;function Je(e,r){return Array.isArray(e)&&Array.isArray(r)?e.length===r.length&&e.every(function(e,t){return Je(r[t],e)}):e===r}function l(e){var n=e?l._parseNumbers(e):{},i=(void 0===n.userToken||null!==(e=n.userToken)&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=n.facets||[],this.disjunctiveFacets=n.disjunctiveFacets||[],this.hierarchicalFacets=n.hierarchicalFacets||[],this.facetsRefinements=n.facetsRefinements||{},this.facetsExcludes=n.facetsExcludes||{},this.disjunctiveFacetsRefinements=n.disjunctiveFacetsRefinements||{},this.numericRefinements=n.numericRefinements||{},this.tagRefinements=n.tagRefinements||[],this.hierarchicalFacetsRefinements=n.hierarchicalFacetsRefinements||{},this);Object.keys(n).forEach(function(e){var t=-1!==l.PARAMETERS.indexOf(e),r=void 0!==n[e];!t&&r&&(i[e]=n[e])})}l.PARAMETERS=Object.keys(new l),l._parseNumbers=function(i){var n,o;return i instanceof l?i:(n={},["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(e){var t,r=i[e];"string"==typeof r&&(t=parseFloat(r),n[e]=isNaN(t)?r:t)}),Array.isArray(i.insideBoundingBox)&&(n.insideBoundingBox=i.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return parseFloat(e)}):e})),i.numericRefinements&&(o={},Object.keys(i.numericRefinements).forEach(function(r){var n=i.numericRefinements[r]||{};o[r]={},Object.keys(n).forEach(function(e){var t=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?parseFloat(e):e}):"string"==typeof e?parseFloat(e):e});o[r][e]=t})}),n.numericRefinements=o),Qe({},i,n))},l.make=function(e){var r=new l(e);return(e.hierarchicalFacets||[]).forEach(function(e){var t;e.rootPath&&0===(t=(r=0<(t=r.getHierarchicalRefinement(e.name)).length&&0!==t[0].indexOf(e.rootPath)?r.clearRefinements(e.name):r).getHierarchicalRefinement(e.name)).length&&(r=r.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}),r},l.validate=function(e,t){t=t||{};return e.tagFilters&&t.tagRefinements&&0<t.tagRefinements.length?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):0<e.tagRefinements.length&&t.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&t.numericRefinements&&Ye(t.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):Ye(e.numericRefinements)&&t.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},l.prototype={constructor:l,clearRefinements:function(e){e={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:s.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:s.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:s.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:s.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return e.numericRefinements===this.numericRefinements&&e.facetsRefinements===this.facetsRefinements&&e.facetsExcludes===this.facetsExcludes&&e.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&e.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(e)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n,r=We(r);return this.isNumericRefined(e,t,r)?this:((n=Qe({},this.numericRefinements))[e]=Qe({},n[e]),n[e][t]?(n[e][t]=n[e][t].slice(),n[e][t].push(r)):n[e][t]=[r],this.setQueryParameters({numericRefinements:n}))},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(r,n,i){return void 0!==i?this.isNumericRefined(r,n,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n&&Je(e.val,We(i))})}):this:void 0!==n?this.isNumericRefined(r,n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r&&e.op===n})}):this:this.isNumericRefined(r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===r})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(a){var c,t,e;return void 0===a?Ye(this.numericRefinements)?{}:this.numericRefinements:"string"==typeof a?ze(this.numericRefinements,[a]):"function"==typeof a?(c=!1,t=this.numericRefinements,e=Object.keys(t).reduce(function(e,n){var i=t[n],o={},i=i||{};return Object.keys(i).forEach(function(t){var e=i[t]||[],r=[];e.forEach(function(e){a({val:e,op:t},n,"numeric")||r.push(e)}),r.length!==e.length&&(c=!0),o[t]=r}),e[n]=o,e},{}),c?e:this.numericRefinements):void 0},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:s.addRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:s.addRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},addDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return s.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:s.addRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},addTagRefinement:function(e){return this.isTagRefined(e)?this:(e={tagRefinements:this.tagRefinements.concat(e)},this.setQueryParameters(e))},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:this.facets.filter(function(e){return e!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(e){return e!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(e){return e.name!==t})}):this},removeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:s.removeRefinement(this.facetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeExcludeRefinement:function(e,t){if(this.isConjunctiveFacet(e))return s.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:s.removeRefinement(this.facetsExcludes,e,t)}):this;throw new Error(e+" is not defined in the facets attribute of the helper configuration")},removeDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return s.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:s.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this;throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},removeTagRefinement:function(t){var e;return this.isTagRefined(t)?(e={tagRefinements:this.tagRefinements.filter(function(e){return e!==t})},this.setQueryParameters(e)):this},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsRefinements:s.toggleRefinement(this.facetsRefinements,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleExcludeFacetRefinement:function(e,t){if(this.isConjunctiveFacet(e))return this.setQueryParameters({facetsExcludes:s.toggleRefinement(this.facetsExcludes,e,t)});throw new Error(e+" is not defined in the facets attribute of the helper configuration")},toggleDisjunctiveFacetRefinement:function(e,t){if(this.isDisjunctiveFacet(e))return this.setQueryParameters({disjunctiveFacetsRefinements:s.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)});throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration")},toggleHierarchicalFacetRefinement:function(e,t){var r,n;if(this.isHierarchicalFacet(e))return r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),n={},void 0!==this.hierarchicalFacetsRefinements[e]&&0<this.hierarchicalFacetsRefinements[e].length&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?n[e]=[]:n[e]=[t.slice(0,t.lastIndexOf(r))]:n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:$e({},n,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration")},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var r;if(this.isHierarchicalFacet(e))return(r={})[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:$e({},r,this.hierarchicalFacetsRefinements)});throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.")},removeHierarchicalFacetRefinement:function(e){var t;return this.isHierarchicalFacetRefined(e)?((t={})[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:$e({},t,this.hierarchicalFacetsRefinements)})):this},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return-1<this.disjunctiveFacets.indexOf(e)},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return-1<this.facets.indexOf(e)},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&s.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&s.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&s.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){return!!this.isHierarchicalFacet(e)&&(e=this.getHierarchicalRefinement(e),t?-1!==e.indexOf(t):0<e.length)},isNumericRefined:function(e,t,r){var n,i;return void 0===r&&void 0===t?!!this.numericRefinements[e]:(n=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t],void 0!==r&&n?(r=We(r),t=void 0!==(e=this.numericRefinements[e][t],i=r,v(e,function(e){return Je(e,i)})),n&&t):n)},isTagRefined:function(e){return-1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var t=this,e=Ue(Object.keys(this.numericRefinements).filter(function(e){return 0<Object.keys(t.numericRefinements[e]).length}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(e){return 0<t.disjunctiveFacetsRefinements[e].length}).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){var t=this;return Ue(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(e){return 0<t.hierarchicalFacetsRefinements[e].length}))},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(e){return-1===t.indexOf(e)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var r=this.managedParameters,n={},i=this;return Object.keys(this).forEach(function(e){var t=i[e];-1===r.indexOf(e)&&void 0!==t&&(n[e]=t)}),n},setQueryParameter:function(e,t){var r;return this[e]===t?this:((r={})[e]=t,this.setQueryParameters(r))},setQueryParameters:function(e){if(!e)return this;var t=l.validate(this,e);if(t)throw t;var r=this,i=l._parseNumbers(e),t=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),e=Object.keys(i).reduce(function(e,t){var r=void 0!==e[t],n=void 0!==i[t];return r&&!n?ze(e,[t]):(n&&(e[t]=i[t]),e)},t);return new this.constructor(e)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return v(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){var t;return this.isHierarchicalFacet(e)&&(t=this.getHierarchicalRefinement(e)[0])?(e=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),t.split(e).map(function(e){return e.trim()})):[]},toString:function(){return JSON.stringify(this,null,2)}};var Ke=l;function Ge(e){return Array.isArray(e)?e.filter(Boolean):[]}function Xe(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function et(e,t){var n=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var r=t.split(":"),t=v(n,function(e){return e[0]===r[0]});return 1<r.length||!t?(e[0].push(r[0]),e[1].push(r[1])):(e[0].push(t[0]),e[1].push(t[1])),e},[[],[]])}var tt=function(e,r,i){return Array.isArray(e)?(Array.isArray(i)||(i=[]),(e=e.map(function(t,e){return{criteria:r.map(function(e){return t[e]}),index:e,value:t}})).sort(function(e,t){for(var r=-1;++r<e.criteria.length;){var n=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,o=null===t;if(!o&&t<e||n&&i||!r)return 1;if(!n&&e<t||o&&r||!i)return-1}return 0}(e.criteria[r],t.criteria[r]);if(n)return!(r>=i.length)&&"desc"===i[r]?-n:n}return e.index-t.index}),e.map(function(e){return e.value})):[]};var i=function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},f=function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")},rt=function(h){return function(e,t){function r(e,a,t){var r,c=e;if(0<t){var n=0;for(c=e;n<t;){var i=c&&Array.isArray(c.data)?c.data:[],c=v(i,function(e){return e.isRefined});n++}}return c&&(r=Object.keys(a.data).map(function(e){return[e,a.data[e]]}).filter(function(e){var t,r,n,i,o,e=e[0];return e=e,t=c.path||s,r=f,n=u,o=l,(!(i=s)||0===e.indexOf(i)&&i!==e)&&(!i&&-1===e.indexOf(n)||i&&e.split(n).length-i.split(n).length==1||-1===e.indexOf(n)&&-1===r.indexOf(n)||0===r.indexOf(e)||0===e.indexOf(t+n)&&(o||0===e.indexOf(r)))}),c.data=tt(r.map(function(e){var t,r,n,i,o=e[0],e=e[1];return e=e,o=o,t=u,r=it(f),n=a.exhaustive,{name:(i=o.split(t))[i.length-1].trim(),path:o,escapedValue:nt(o),count:e,isRefined:r===o||0===r.indexOf(o+t),exhaustive:n,data:null}}),o[0],o[1])),e}var o,u,s,l,f,n=h.hierarchicalFacets[t],i=h.hierarchicalFacetsRefinements[n.name]&&h.hierarchicalFacetsRefinements[n.name][0]||"",a=h._getHierarchicalFacetSeparator(n),c=h._getHierarchicalRootPath(n),p=h._getHierarchicalShowParentLevel(n),n=et(h._getHierarchicalFacetSortBy(n)),m=e.every(function(e){return e.exhaustive}),n=(o=n,u=a,l=p,f=i,e);return(n=(s=c)?e.slice(c.split(a).length):n).reduce(r,{name:h.hierarchicalFacets[t].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:m,data:null})}},nt=i,it=f;var ot=i,at=f;function ct(e){var r={};return e.forEach(function(e,t){r[e]=t}),r}function ut(e,t,r){t&&t[r]&&(e.stats=t[r])}function st(l,t,r){var c=t[0],f=(this._rawResults=t,this),e=(Object.keys(c).forEach(function(e){f[e]=c[e]}),Object.keys(r||{}).forEach(function(e){f[e]=r[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=l.hierarchicalFacets.map(function(){return[]}),this.facets=[],l.getRefinedDisjunctiveFacets()),u=ct(l.facets),s=ct(l.disjunctiveFacets),n=1,p=c.facets||{};Object.keys(p).forEach(function(e){var t,r,n,i,o=p[e],a=(n=l.hierarchicalFacets,t=e,v(n,function(e){return-1<(e.attributes||[]).indexOf(t)}));a?(n=a.attributes.indexOf(e),r=Xe(l.hierarchicalFacets,function(e){return e.name===a.name}),f.hierarchicalFacets[r][n]={attribute:e,data:o,exhaustive:c.exhaustiveFacetsCount}):(r=-1!==l.disjunctiveFacets.indexOf(e),n=-1!==l.facets.indexOf(e),r&&(i=s[e],f.disjunctiveFacets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},ut(f.disjunctiveFacets[i],c.facets_stats,e)),n&&(i=u[e],f.facets[i]={name:e,data:o,exhaustive:c.exhaustiveFacetsCount},ut(f.facets[i],c.facets_stats,e)))}),this.hierarchicalFacets=Ge(this.hierarchicalFacets),e.forEach(function(e){var i=t[n],o=i&&i.facets?i.facets:{},a=l.getHierarchicalFacetByName(e);Object.keys(o).forEach(function(t){var r,e,n=o[t];a?(r=Xe(l.hierarchicalFacets,function(e){return e.name===a.name}),-1!==(e=Xe(f.hierarchicalFacets[r],function(e){return e.attribute===t}))&&(f.hierarchicalFacets[r][e].data=Qe({},f.hierarchicalFacets[r][e].data,n))):(r=s[t],e=c.facets&&c.facets[t]||{},f.disjunctiveFacets[r]={name:t,data:$e({},n,e),exhaustive:i.exhaustiveFacetsCount},ut(f.disjunctiveFacets[r],i.facets_stats,t),l.disjunctiveFacetsRefinements[t]&&l.disjunctiveFacetsRefinements[t].forEach(function(e){!f.disjunctiveFacets[r].data[e]&&-1<l.disjunctiveFacetsRefinements[t].indexOf(at(e))&&(f.disjunctiveFacets[r].data[e]=0)}))}),n++}),l.getRefinedHierarchicalFacets().forEach(function(e){var c=l.getHierarchicalFacetByName(e),u=l._getHierarchicalFacetSeparator(c),s=l.getHierarchicalRefinement(e);0===s.length||s[0].split(u).length<2||t.slice(n).forEach(function(e){var a=e&&e.facets?e.facets:{};Object.keys(a).forEach(function(t){var e,r,n=a[t],i=Xe(l.hierarchicalFacets,function(e){return e.name===c.name}),o=Xe(f.hierarchicalFacets[i],function(e){return e.attribute===t});-1!==o&&(e={},0<s.length&&(e[r=s[0].split(u)[0]]=f.hierarchicalFacets[i][o].data[r]),f.hierarchicalFacets[i][o].data=$e(e,n,f.hierarchicalFacets[i][o].data))}),n++})}),Object.keys(l.facetsExcludes).forEach(function(t){var e=l.facetsExcludes[t],r=u[t];f.facets[r]={name:t,data:c.facets[t],exhaustive:c.exhaustiveFacetsCount},e.forEach(function(e){f.facets[r]=f.facets[r]||{name:t},f.facets[r].data=f.facets[r].data||{},f.facets[r].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(rt(l)),this.facets=Ge(this.facets),this.disjunctiveFacets=Ge(this.disjunctiveFacets),this._state=l}function lt(r,n){function e(e){return e.name===n}var i,o,t,a;return r._state.isConjunctiveFacet(n)?(i=v(r.facets,e))?Object.keys(i.data).map(function(e){var t=ot(e);return{name:e,escapedValue:t,count:i.data[e],isRefined:r._state.isFacetRefined(n,t),isExcluded:r._state.isExcludeRefined(n,e)}}):[]:r._state.isDisjunctiveFacet(n)?(o=v(r.disjunctiveFacets,e))?Object.keys(o.data).map(function(e){var t=ot(e);return{name:e,escapedValue:t,count:o.data[e],isRefined:r._state.isDisjunctiveFacetRefined(n,t)}}):[]:r._state.isHierarchicalFacet(n)?((t=v(r.hierarchicalFacets,e))&&(a=r._state.getHierarchicalFacetByName(n),(a=at(r._state.getHierarchicalRefinement(n)[0]||"").split(r._state._getHierarchicalFacetSeparator(a))).unshift(n),function t(e,r,n){e.isRefined=e.name===r[n];e.data&&e.data.forEach(function(e){t(e,r,n+1)})}(t,a,0)),t):void 0}function ft(e,t){e=v(e,function(e){return e.name===t});return e&&e.stats}function pt(e,t,r,n,i){var i=v(i,function(e){return e.name===r}),o=i&&i.data&&i.data[n]?i.data[n]:0,i=i&&i.exhaustive||!1;return{type:t,attributeName:r,name:n,count:o,exhaustive:i}}st.prototype.getFacetByName=function(t){function e(e){return e.name===t}return v(this.facets,e)||v(this.disjunctiveFacets,e)||v(this.hierarchicalFacets,e)},st.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],st.prototype.getFacetValues=function(e,t){var a,c,r=lt(this,e);if(r)return a=$e({},t,{sortBy:st.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),c=this,function t(r,e,n,i){var o;return i=i||0,Array.isArray(e)?r(e,n[i]):e.data&&0!==e.data.length?(o=e.data.map(function(e){return t(r,e,n,i+1)}),o=r(o,n[i]),$e({data:o},e)):e}(function(e,t){if(a.facetOrdering){t=t;o=(o=c).renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(Boolean(o))return t=e,r=[],n=[],i=((o=o).order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),t.forEach(function(e){var t=e.path||e.name;void 0!==i[t]?r[i[t]]=e:n.push(e)}),r=r.filter(function(e){return e}),"hidden"===(t=o.sortRemainingBy)?r:r.concat(tt(n,(o="alpha"===t?[["path","name"],["asc","asc"]]:[["count"],["desc"]])[0],o[1]))}var r,n,i,o;if(Array.isArray(a.sortBy))return t=et(a.sortBy,st.DEFAULT_SORT),tt(e,t[0],t[1]);if("function"==typeof a.sortBy)return o=a.sortBy,e.sort(o);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},r,Array.isArray(r)?[e]:c._state.getHierarchicalFacetByName(r.name).attributes)},st.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?ft(this.facets,e):this._state.isDisjunctiveFacet(e)?ft(this.disjunctiveFacets,e):void 0},st.prototype.getRefinements=function(){var a=this._state,c=this,u=[];return Object.keys(a.facetsRefinements).forEach(function(t){a.facetsRefinements[t].forEach(function(e){u.push(pt(0,"facet",t,e,c.facets))})}),Object.keys(a.facetsExcludes).forEach(function(t){a.facetsExcludes[t].forEach(function(e){u.push(pt(0,"exclude",t,e,c.facets))})}),Object.keys(a.disjunctiveFacetsRefinements).forEach(function(t){a.disjunctiveFacetsRefinements[t].forEach(function(e){u.push(pt(0,"disjunctive",t,e,c.disjunctiveFacets))})}),Object.keys(a.hierarchicalFacetsRefinements).forEach(function(o){a.hierarchicalFacetsRefinements[o].forEach(function(e){var t,r,n,i;u.push((t=a,r=o,e=e,n=c.hierarchicalFacets,i=t.getHierarchicalFacetByName(r),t=t._getHierarchicalFacetSeparator(i),i=e.split(t),e=v(n,function(e){return e.name===r}),t=i.reduce(function(e,t){var r=e&&v(e.data,function(e){return e.name===t});return void 0!==r?r:e},e),n=t&&t.count||0,i=t&&t.exhaustive||!1,e=t&&t.path||"",{type:"hierarchical",attributeName:r,name:e,count:n,exhaustive:i}))})}),Object.keys(a.numericRefinements).forEach(function(r){var e=a.numericRefinements[r];Object.keys(e).forEach(function(t){e[t].forEach(function(e){u.push({type:"numeric",attributeName:r,name:e,numericValue:e,operator:t})})})}),a.tagRefinements.forEach(function(e){u.push({type:"tag",attributeName:"_tags",name:e})}),u};var mt=st;function g(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}f=g;function x(e){return"function"==typeof e}function ht(e){return"object"==typeof e&&null!==e}function yt(e){return void 0===e}g.prototype._events=void 0,g.prototype._maxListeners=void 0,g.defaultMaxListeners=10,g.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},g.prototype.emit=function(e){var t,r,n,i,o,a,c;if((this._events||(this._events={}),"error"===e)&&(!this._events.error||ht(this._events.error)&&!this._events.error.length))throw(c=arguments[1])instanceof Error?c:((a=new Error('Uncaught, unspecified "error" event. ('+c+")")).context=c,a);if(yt(t=this._events[e]))return!1;if(x(t))switch(arguments.length){case 1:t.call(this);break;case 2:t.call(this,arguments[1]);break;case 3:t.call(this,arguments[1],arguments[2]);break;default:n=Array.prototype.slice.call(arguments,1),t.apply(this,n)}else if(ht(t))for(n=Array.prototype.slice.call(arguments,1),r=(o=t.slice()).length,i=0;i<r;i++)o[i].apply(this,n);return!0},g.prototype.on=g.prototype.addListener=function(e,t){if(x(t))return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,x(t.listener)?t.listener:t),this._events[e]?ht(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,ht(this._events[e])&&!this._events[e].warned&&(t=yt(this._maxListeners)?g.defaultMaxListeners:this._maxListeners)&&0<t&&this._events[e].length>t&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace)&&console.trace(),this;throw TypeError("listener must be a function")},g.prototype.once=function(e,t){var r;if(x(t))return r=!1,n.listener=t,this.on(e,n),this;throw TypeError("listener must be a function");function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}},g.prototype.removeListener=function(e,t){var r,n,i,o;if(!x(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(r=this._events[e]).length,n=-1,r===t||x(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ht(r)){for(o=i;0<o--;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},g.prototype.removeAllListeners=function(e){var t,r;if(this._events)if(this._events.removeListener)if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);this.removeAllListeners("removeListener"),this._events={}}else{if(x(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);delete this._events[e]}else 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e];return this},g.prototype.listeners=function(e){e=this._events&&this._events[e]?x(this._events[e])?[this._events[e]]:this._events[e].slice():[];return e},g.prototype.listenerCount=function(e){if(this._events){e=this._events[e];if(x(e))return 1;if(e)return e.length}return 0},g.listenerCount=function(e,t){return e.listenerCount(t)};var w=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})};function dt(e,t){this.main=e,this.fn=t,this.lastResults=null}w(dt,f),dt.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},dt.prototype.getModifiedState=function(e){return this.fn(e)};var bt=dt;function vt(r){return Object.keys(r).sort(function(e,t){return e.localeCompare(t)}).reduce(function(e,t){return e[t]=r[t],e},{})}var O={_getQueries:function(c,u){var s=[];return s.push({indexName:c,params:O._getHitsSearchParams(u)}),u.getRefinedDisjunctiveFacets().forEach(function(e){s.push({indexName:c,params:O._getDisjunctiveFacetSearchParams(u,e)})}),u.getRefinedHierarchicalFacets().forEach(function(e){var o,a=u.getHierarchicalFacetByName(e),e=u.getHierarchicalRefinement(e),n=u._getHierarchicalFacetSeparator(a);0<e.length&&1<e[0].split(n).length&&(o=e[0].split(n).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:a.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(n)})},[])).forEach(function(e,t){e=O._getDisjunctiveFacetSearchParams(u,e.attribute,0===t);function n(t){return a.attributes.some(function(e){return e===t.split(":")[0]})}var r=(e.facetFilters||[]).reduce(function(e,t){var r;return Array.isArray(t)&&0<(r=t.filter(function(e){return!n(e)})).length&&e.push(r),"string"!=typeof t||n(t)||e.push(t),e},[]),i=o[t-1];e.facetFilters=0<t?r.concat(i.attribute+":"+i.value):0<r.length?r:void 0,s.push({indexName:c,params:e})})}),s},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(O._getHitsHierarchicalFacetsAttributes(e)),r=O._getFacetFilters(e),n=O._getNumericFilters(e),i=O._getTagFilters(e),t={facets:-1<t.indexOf("*")?["*"]:t,tagFilters:i};return 0<r.length&&(t.facetFilters=r),0<n.length&&(t.numericFilters=n),vt(Qe({},e.getQueryParams(),t))},_getDisjunctiveFacetSearchParams:function(e,t,r){var n=O._getFacetFilters(e,t,r),i=O._getNumericFilters(e,t),o=O._getTagFilters(e),a={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1},o=(0<o.length&&(a.tagFilters=o),e.getHierarchicalFacetByName(t));return a.facets=o?O._getDisjunctiveHierarchicalFacetAttribute(e,o,r):t,0<i.length&&(a.numericFilters=i),0<n.length&&(a.facetFilters=n),vt(Qe({},e.getQueryParams(),a))},_getNumericFilters:function(e,i){var o;return e.numericFilters||(o=[],Object.keys(e.numericRefinements).forEach(function(n){var t=e.numericRefinements[n]||{};Object.keys(t).forEach(function(r){var e=t[r]||[];i!==n&&e.forEach(function(e){var t;Array.isArray(e)?(t=e.map(function(e){return n+r+e}),o.push(t)):o.push(n+r+e)})})}),o)},_getTagFilters:function(e){return e.tagFilters||e.tagRefinements.join(",")},_getFacetFilters:function(a,c,u){var s=[],e=a.facetsRefinements||{},r=(Object.keys(e).forEach(function(t){(e[t]||[]).forEach(function(e){s.push(t+":"+e)})}),a.facetsExcludes||{}),n=(Object.keys(r).forEach(function(t){(r[t]||[]).forEach(function(e){s.push(t+":-"+e)})}),a.disjunctiveFacetsRefinements||{}),l=(Object.keys(n).forEach(function(t){var r,e=n[t]||[];t!==c&&e&&0!==e.length&&(r=[],e.forEach(function(e){r.push(t+":"+e)}),s.push(r))}),a.hierarchicalFacetsRefinements||{});return Object.keys(l).forEach(function(e){var t=(l[e]||[])[0];if(void 0!==t){var r,n=a.getHierarchicalFacetByName(e),i=a._getHierarchicalFacetSeparator(n),o=a._getHierarchicalRootPath(n);if(c===e){if(-1===t.indexOf(i)||!o&&!0===u||o&&o.split(i).length===t.split(i).length)return;t=o?(r=o.split(i).length-1,o):(r=t.split(i).length-2,t.slice(0,t.lastIndexOf(i)))}else r=t.split(i).length-1;(e=n.attributes[r])&&s.push([e+":"+t])}}),s},_getHitsHierarchicalFacetsAttributes:function(i){return i.hierarchicalFacets.reduce(function(e,t){var r,n=i.getHierarchicalRefinement(t.name)[0];return n?(r=i._getHierarchicalFacetSeparator(t),n=n.split(r).length,r=t.attributes.slice(0,n+1),e.concat(r)):(e.push(t.attributes[0]),e)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n,i=e._getHierarchicalFacetSeparator(t);return!0===r?(r=0,(n=e._getHierarchicalRootPath(t))&&(r=n.split(i).length),[t.attributes[r]]):(n=(e.getHierarchicalRefinement(t.name)[0]||"").split(i).length-1,t.attributes.slice(0,1+n))},getSearchForFacetQuery:function(e,t,r,n){n=n.isDisjunctiveFacet(e)?n.clearRefinements(e):n,t={facetQuery:t,facetName:e};return"number"==typeof r&&(t.maxFacetHits=r),vt(Qe({},O._getHitsSearchParams(n),t))}},gt=O,R="3.11.3",xt=i;function P(e,t,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.11.3)"),this.setClient(e);e=r||{};e.index=t,this.state=Ke.make(e),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function wt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Ot(){return this.state.page}w(P,f),P.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},P.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},P.prototype.getQuery=function(){var e=this.state;return gt._getHitsSearchParams(e)},P.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,e=gt._getQueries(r.index,r),n=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:r}),!t)return this.client.search(e).then(function(e){return n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),{content:new mt(r,e.results),state:r,_originalResponse:e}},function(e){throw n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(null,new mt(r,e.results),r)}).catch(function(e){n._currentNbQueries--,0===n._currentNbQueries&&n.emit("searchQueueEmpty"),t(e,null,r)})},P.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var r=r.getModifiedState(t),t=Qe({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:ze(gt._getHitsSearchParams(r),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),n="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw new Error(n);var i=this.client.initIndex(r.index);if("function"!=typeof i.findAnswers)throw new Error(n);return i.findAnswers(r.query,e.queryLanguages,t)},P.prototype.searchForFacetValues=function(t,e,r,n){var i,o,a,c="function"==typeof this.client.searchForFacetValues,u="function"==typeof this.client.initIndex;if(c||u||"function"==typeof this.client.search)return i=this.state.setQueryParameters(n||{}),o=i.isDisjunctiveFacet(t),n=gt.getSearchForFacetQuery(t,e,r,i),this._currentNbQueries++,a=this,r=c?this.client.searchForFacetValues([{indexName:i.index,params:n}]):u?this.client.initIndex(i.index).searchForFacetValues(n):(delete n.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:n}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),r.then(function(e){return a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=xt(e.value),e.isRefined=o?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw a._currentNbQueries--,0===a._currentNbQueries&&a.emit("searchQueueEmpty"),e});throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues")},P.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},P.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},P.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},P.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},P.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},P.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},P.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},P.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},P.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},P.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},P.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},P.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},P.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},P.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},P.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},P.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},P.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},P.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},P.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},P.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},P.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},P.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},P.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},P.prototype.setCurrentPage=wt,P.prototype.setPage=wt,P.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},P.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},P.prototype.setState=function(e){return this._change({state:Ke.make(e),isPageReset:!1}),this},P.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Ke(e),this},P.prototype.hasRefinements=function(e){return!!Ye(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},P.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},P.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},P.prototype.hasTag=function(e){return this.state.isTagRefined(e)},P.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},P.prototype.getIndex=function(){return this.state.index},P.prototype.getCurrentPage=Ot,P.prototype.getPage=Ot,P.prototype.getTags=function(){return this.state.tagRefinements},P.prototype.getRefinements=function(e){var r=[],n=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){r.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){r.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(n).forEach(function(e){var t=n[e];r.push({value:t,operator:e,type:"numeric"})}),r},P.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},P.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},P.prototype._search=function(e){var n=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=gt._getQueries(n.index,n),i.push({state:n,queriesCount:t.length,helper:this}),this.emit("search",{state:n,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(n),r=gt._getQueries(t.index,t);return i.push({state:t,queriesCount:r.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),r})),t=Array.prototype.concat.apply(t,e),e=this._queryId++;this._currentNbQueries++;try{this.client.search(t).then(this._dispatchAlgoliaResponse.bind(this,i,e)).catch(this._dispatchAlgoliaError.bind(this,e))}catch(e){this.emit("error",{error:e})}},P.prototype._dispatchAlgoliaResponse=function(e,t,r){var n;t<this._lastQueryIdReceived||(this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty"),n=r.results.slice(),e.forEach(function(e){var t=e.state,r=e.queriesCount,e=e.helper,r=n.splice(0,r),r=e.lastResults=new mt(t,r);e.emit("result",{results:r,state:t})}))},P.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},P.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},P.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&0<this.state.disjunctiveRefinements[e].length},P.prototype._change=function(e){var t=e.state,e=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:e}))},P.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},P.prototype.setClient=function(e){return this.client!==e&&("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.11.3)"),this.client=e),this},P.prototype.getClient=function(){return this.client},P.prototype.derive=function(e){e=new bt(this,e);return this.derivedHelpers.push(e),e},P.prototype.detachDerivedHelper=function(e){e=this.derivedHelpers.indexOf(e);if(-1===e)throw new Error("Derived helper already detached");this.derivedHelpers.splice(e,1)},P.prototype.hasPendingRequests=function(){return 0<this._currentNbQueries};var Rt=P;function Pt(e,t,r){return new Rt(e,t,r)}Pt.version=R,Pt.AlgoliaSearchHelper=Rt,Pt.SearchParameters=Ke,Pt.SearchResults=mt;var St=Pt;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 Et(e){return function(e){if(Array.isArray(e))return Ft(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Ft(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ft(e,t):void 0}(e)||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.")}()}function Ft(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _t(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Ct(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?_t(Object(r),!0).forEach(function(e){Nt(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):_t(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Nt(e,t,r){return(t=function(e){e=function(e,t){if("object"!==jt(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==jt(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===jt(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Tt(e){var t=e.attributeName,r=e.attributeValue,e=e.attributeScore;return"".concat(t,":").concat(r,"<score=").concat(e||1,">")}function Vt(){return"configure"}function It(o){var e=Object.keys(o.matchingPatterns).reduce(function(e,t){var r=o.matchingPatterns[t],n=X(o.hit,t),i=r.score;return Array.isArray(n)?[].concat(Et(e),[n.map(function(e){return Tt({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof n?[].concat(Et(e),[Tt({attributeName:t,attributeValue:n,attributeScore:i})]):e},[]);return o.transformSearchParameters(new St.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(o.hit.objectID)],optionalFilters:e}))}i=t({displayName:"AlgoliaConfigureRelatedItems",$$type:"ais.configureRelatedItems",defaultProps:{transformSearchParameters:function(e){return Ct({},e)}},getProvidedProps:function(){return{}},getSearchParameters:function(e,t){return e.setQueryParameters(It(t))},transitionState:function(e,t,r){var n,i=Vt(),o=(n=Y(It(e)),Object.keys(n).forEach(function(e){var t=n[e];Array.isArray(t)&&0===t.length&&delete n[e]}),n),a=Object.keys(o),c=this._searchParameters?Object.keys(this._searchParameters).filter(function(e){return-1===a.indexOf(e)}):[];return this._searchParameters=o,b(r,Nt({},i,Ct(Ct({},G(r[i],c)),o)),{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){var r=this,n=Vt(),i=h({ais:e.contextValue,multiIndexContext:e.indexContextValue}),o=Ne({ais:e.contextValue,multiIndexContext:e.indexContextValue})&&t.indices?t.indices[i]:t,i=(o&&o[n]?Object.keys(o[n]):[]).reduce(function(e,t){return r._searchParameters[t]||(e[t]=o[n][t]),e},{});return b(t,Nt({},n,i),{ais:e.contextValue,multiIndexContext:e.indexContextValue})}});function kt(e,t){return e(t={exports:{}},t.exports),t.exports}var w="function"==typeof Symbol&&Symbol.for,At=w?Symbol.for("react.element"):60103,Mt=w?Symbol.for("react.portal"):60106,Dt=w?Symbol.for("react.fragment"):60107,qt=w?Symbol.for("react.strict_mode"):60108,Ht=w?Symbol.for("react.profiler"):60114,Bt=w?Symbol.for("react.provider"):60109,Lt=w?Symbol.for("react.context"):60110,$t=w?Symbol.for("react.async_mode"):60111,Qt=w?Symbol.for("react.concurrent_mode"):60111,Ut=w?Symbol.for("react.forward_ref"):60112,Wt=w?Symbol.for("react.suspense"):60113,zt=w?Symbol.for("react.suspense_list"):60120,Yt=w?Symbol.for("react.memo"):60115,Zt=w?Symbol.for("react.lazy"):60116,Jt=w?Symbol.for("react.block"):60121,Kt=w?Symbol.for("react.fundamental"):60117,Gt=w?Symbol.for("react.responder"):60118,Xt=w?Symbol.for("react.scope"):60119;function S(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case At:switch(e=e.type){case $t:case Qt:case Dt:case Ht:case qt:case Wt:return e;default:switch(e=e&&e.$$typeof){case Lt:case Ut:case Zt:case Yt:case Bt:return e;default:return t}}case Mt:return t}}}function er(e){return S(e)===Qt}var tr={AsyncMode:$t,ConcurrentMode:Qt,ContextConsumer:Lt,ContextProvider:Bt,Element:At,ForwardRef:Ut,Fragment:Dt,Lazy:Zt,Memo:Yt,Portal:Mt,Profiler:Ht,StrictMode:qt,Suspense:Wt,isAsyncMode:function(e){return er(e)||S(e)===$t},isConcurrentMode:er,isContextConsumer:function(e){return S(e)===Lt},isContextProvider:function(e){return S(e)===Bt},isElement:function(e){return"object"==typeof e&&null!==e&&e.$$typeof===At},isForwardRef:function(e){return S(e)===Ut},isFragment:function(e){return S(e)===Dt},isLazy:function(e){return S(e)===Zt},isMemo:function(e){return S(e)===Yt},isPortal:function(e){return S(e)===Mt},isProfiler:function(e){return S(e)===Ht},isStrictMode:function(e){return S(e)===qt},isSuspense:function(e){return S(e)===Wt},isValidElementType:function(e){return"string"==typeof e||"function"==typeof e||e===Dt||e===Qt||e===Ht||e===qt||e===Wt||e===zt||"object"==typeof e&&null!==e&&(e.$$typeof===Zt||e.$$typeof===Yt||e.$$typeof===Bt||e.$$typeof===Lt||e.$$typeof===Ut||e.$$typeof===Kt||e.$$typeof===Gt||e.$$typeof===Xt||e.$$typeof===Jt)},typeOf:S},f=kt(function(e,t){});f.AsyncMode,f.ConcurrentMode,f.ContextConsumer,f.ContextProvider,f.Element,f.ForwardRef,f.Fragment,f.Lazy,f.Memo,f.Portal,f.Profiler,f.StrictMode,f.Suspense,f.isAsyncMode,f.isConcurrentMode,f.isContextConsumer,f.isContextProvider,f.isElement,f.isForwardRef,f.isFragment,f.isLazy,f.isMemo,f.isPortal,f.isProfiler,f.isStrictMode,f.isSuspense,f.isValidElementType,f.typeOf,kt(function(e){e.exports=tr});function rr(){}function nr(){}nr.resetWarningCache=rr;R=kt(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:nr,resetWarningCache:rr}).PropTypes=e});function ir(){return null}ir.propTypes={hit:R.object.isRequired,matchingPatterns:R.object.isRequired,transformSearchParameters:R.func};w=i(ir,{$$widgetType:"ais.configureRelatedItems"});function or(e){return(or="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 ar(e){var t;if("object"===or(t=e)&&t.props)return e.props.attribute||(Array.isArray(e.props.attributes)?e.props.attributes[0]:e.props.children?ar(d.Children.only(e.props.children)):void 0)}var cr=t({displayName:"AlgoliaDynamicWidgets",$$type:"ais.dynamicWidgets",defaultProps:{transformItems:function(e){return e},maxValuesPerFacet:20},propTypes:{transformItems:R.func,facets:R.arrayOf(R.string),maxValuesPerFacet:R.number},getProvidedProps:function(e,t,r){var n,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});if(!e.facets||Array.isArray(e.facets)&&e.facets.length<=1&&("*"===e.facets[0]||void 0===e.facets[0]))return r?(n=r.renderingContent&&r.renderingContent.facetOrdering&&r.renderingContent.facetOrdering.facets&&r.renderingContent.facetOrdering.facets.order||[],20<(n=e.transformItems(n,{results:r})).length&&!e.facets&&console.warn("More than ".concat(20," facets are requested to be displayed without explicitly setting which facets to retrieve. This could have a performance impact. Set \"facets\" to [] to do two smaller network requests, or explicitly to ['*'] to avoid this warning.")),e.maxValuesPerFacet<r._state.maxValuesPerFacet&&console.warn("The maxValuesPerFacet set by dynamic widgets (".concat(e.maxValuesPerFacet,") is smaller than one of the limits set by a widget (").concat(r._state.maxValuesPerFacet,"). This causes a mismatch in query parameters and thus an extra network request when that widget is mounted.")),{attributesToRender:n}):{attributesToRender:[]};throw new Error('The `facets` prop only accepts [] or ["*"], you passed '.concat(JSON.stringify(e.facets)))},getSearchParameters:function(e,t){return(t.facets||["*"]).reduce(function(e,t){return e.addFacet(t)},e.setQueryParameters({maxValuesPerFacet:Math.max(t.maxValuesPerFacet||0,e.maxValuesPerFacet||0)}))}})(function(e){var t=e.children,r=e.attributesToRender,n=void 0===(e=e.fallbackComponent)?function(){return null}:e,i=new Map;return d.Children.forEach(t,function(e){var t=ar(e);if(!t)throw new Error('Could not find "attribute" prop for '.concat(W(e),"."));i.set(t,e)}),d.createElement(d.Fragment,null,r.map(function(e){return d.createElement(o.Fragment,{key:e},i.get(e)||d.createElement(n,{attribute:e}))}))},{$$widgetType:"ais.dynamicWidgets"});function ur(e){return(ur="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 sr(){return(sr=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function lr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dr(n.key),n)}}function fr(e,t){return(fr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pr(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=hr(r),t=(e=n?(e=hr(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===ur(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mr(t)}}function mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hr(e){return(hr=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yr(e,t,r){(t=dr(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function dr(e){e=function(e,t){if("object"!==ur(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ur(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ur(e)?e:String(e)}function br(e){return{targetedIndex:e.indexId}}var vr=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fr(t,e);var r,n=pr(i);function i(e){if(this instanceof i)return yr(mr(e=n.call(this,e)),"state",{indexContext:br(e.props)}),yr(mr(e),"unregisterWidget",void 0),e.props.contextValue.onSearchParameters(e.getSearchParameters.bind(mr(e)),{ais:e.props.contextValue,multiIndexContext:e.state.indexContext},e.props,void 0,i.displayName),e;throw new TypeError("Cannot call a class as a function")}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e){return{indexContext:br(e)}}}],(r=[{key:"componentDidMount",value:function(){this.unregisterWidget=this.props.contextValue.widgetsManager.registerWidget(this)}},{key:"componentDidUpdate",value:function(e){this.props.indexName!==e.indexName&&this.props.contextValue.widgetsManager.update()}},{key:"componentWillUnmount",value:function(){"function"==typeof this.unregisterWidget&&this.unregisterWidget()}},{key:"getSearchParameters",value:function(e,t){return e.setIndex((this.props||t).indexName)}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(oe,{value:this.state.indexContext},this.props.children)}}])&&lr(t.prototype,r),e&&lr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);yr(vr,"propTypes",{indexName:R.string.isRequired,indexId:R.string.isRequired,children:R.node}),yr(vr,"displayName","AlgoliaIndex"),yr(vr,"$$type","ais.index"),yr(vr,"$$widgetType","ais.index");var gr=["resultsFacetValues"],xr=["resultsFacetValues"],wr=["resultsFacetValues"];function Or(e){return(Or="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 Rr(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Pr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Pr(Object(r),!0).forEach(function(e){Sr(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Pr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Sr(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Or(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Or(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jr(e){"function"==typeof e.addAlgoliaAgent&&(e.addAlgoliaAgent("react (".concat(o.version,")")),e.addAlgoliaAgent("react-instantsearch (".concat(xe,")")))}var Er=function(e){return Ne({ais:e.props.contextValue,multiIndexContext:e.props.indexContextValue})},Fr=function(e,t){return e.props.indexContextValue.targetedIndex===t},_r=function(e){return Boolean(e.props.indexId)},Cr=function(e,t){return e.props.indexId===t},Nr=function(e,t){e=_r(e),t=_r(t);return e&&!t?-1:!e&&t?1:0};function Tr(r){return Object.keys(r).map(function(e){return function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})}("%s=%s",e,(t=r[e],"[object Object]"===Object.prototype.toString.call(t)||"[object Array]"===Object.prototype.toString.call(t)?JSON.stringify(r[e]):r[e]));var t}).join("&")}function Vr(e){var i,t,r,n,o,a,c,u,s,l=e.indexName,f=e.initialState,f=void 0===f?{}:f,p=e.searchClient,m=e.resultsState,h=e.stalledSearchDelay,y=St(p,l,_({},ve)),d=(jr(p),y.on("search",function(){b=b||setTimeout(function(){var e=R.getState(),e=(e.resultsFacetValues,Rr(e,wr));R.setState(_(_({},e),{},{isSearchStalled:!0}))},h)}).on("result",E({indexId:l})).on("error",F),!1),b=null,v=y.state,g=(t=function(){var e=P(R.getState().widgets);R.setState(_(_({},R.getState()),{},{metadata:e,searching:!0})),j()},n=!(r=[]),{registerWidget:function(e){return r.push(e),x(),function(){r.splice(r.indexOf(e),1),x()}},update:x,getWidgets:function(){return r}});function x(){n||(n=!0,Q(function(){n=!1,t()}))}o=p,(e=m)&&(o.transporter&&!o._cacheHydrated||o._useCache&&"function"==typeof o.addAlgoliaAgent)&&(o.transporter&&!o._cacheHydrated&&(o._cacheHydrated=!0,a=o.search,o.search=function(e){for(var t=arguments.length,r=new Array(1<t?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=e.map(function(e){return _(_({},e),{},{params:Tr(e.params)})});return o.transporter.responsesCache.get({method:"search",args:[i].concat(r)},function(){return a.apply(void 0,[e].concat(r))})}),Array.isArray(e.results)?(s=o,c=e.results,s.transporter?s.transporter.responsesCache.set({method:"search",args:[c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])]},{results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}):(u="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:c.reduce(function(e,t){return e.concat(t.rawResults.map(function(e){return{indexName:e.index,params:e.params}}))},[])})),s.cache=_(_({},s.cache),{},Sr({},u,JSON.stringify({results:c.reduce(function(e,t){return e.concat(t.rawResults)},[])}))))):(s=e,(u=o).transporter?u.transporter.responsesCache.set({method:"search",args:[s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})]},{results:s.rawResults}):(c="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:s.rawResults.map(function(e){return{indexName:e.index,params:e.params}})})),u.cache=_(_({},u.cache),{},Sr({},c,JSON.stringify({results:s.rawResults}))))));e={widgets:f,metadata:(p=m)?p.metadata.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _(_({value:function(){return{}}},e),{},{items:e.items&&e.items.map(function(e){return _({value:function(){return{}}},e)})})})})}):[],results:function(e){if(!e)return null;if(Array.isArray(e.results))return e.results.reduce(function(e,t){return _(_({},e),{},Sr({},t._internalIndexId,new St.SearchResults(new St.SearchParameters(t.state),t.rawResults)))},{});return new St.SearchResults(new St.SearchParameters(e.state),e.rawResults)}(m),error:null,searching:!1,isSearchStalled:!0,searchingForFacetValues:!1},w=e,O=[];var w,O,R={getState:function(){return w},setState:function(e){w=e,O.forEach(function(e){return e()})},subscribe:function(e){return O.push(e),function(){O.splice(O.indexOf(e),1)}}};function P(t){return g.getWidgets().filter(function(e){return Boolean(e.getMetadata)}).map(function(e){return e.getMetadata(t)})}function S(){var t=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){return!Er(e)&&!_r(e)}).reduce(function(e,t){return t.getSearchParameters(e)},v),e=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=Er(e)&&Fr(e,l),e=_r(e)&&Cr(e,l);return t||e}).sort(Nr).reduce(function(e,t){return t.getSearchParameters(e)},t),r=g.getWidgets().filter(function(e){return Boolean(e.getSearchParameters)}).filter(function(e){var t=Er(e)&&!Fr(e,l),e=_r(e)&&!Cr(e,l);return t||e}).sort(Nr).reduce(function(e,t){var r=Er(t)?t.props.indexContextValue.targetedIndex:t.props.indexId,n=e[r]||[];return _(_({},e),{},Sr({},r,n.concat(t)))},{});return{mainParameters:e,derivedParameters:Object.keys(r).map(function(e){return{parameters:r[e].reduce(function(e,t){return t.getSearchParameters(e)},t),indexId:e}})}}function j(){var e,t;d||(e=(t=S()).mainParameters,t=t.derivedParameters,i=t.length+1,y.derivedHelpers.slice().forEach(function(e){e.detach()}),t.forEach(function(e){var t=e.indexId,r=e.parameters;y.derive(function(){return r}).on("result",E({indexId:t})).on("error",F)}),y.setState(e),y.search())}function E(e){var n=e.indexId;return function(e){i--;var t=R.getState(),r=!y.derivedHelpers.length,t=t.results||{},t=!r&&t.getFacetByName?{}:t,r=(t=r?e.results:_(_({},t),{},Sr({},n,e.results)),R.getState()),e=r.isSearchStalled,r=(y.hasPendingRequests()||(clearTimeout(b),b=null,e=!1),r.resultsFacetValues,Rr(r,gr));R.setState(_(_({},r),{},{results:t,isSearchStalled:e,searching:0<i,error:null}))}}function F(e){var e=e.error,t=R.getState(),r=t.isSearchStalled,t=(y.hasPendingRequests()||(clearTimeout(b),r=!1),t.resultsFacetValues,Rr(t,xr));R.setState(_(_({},t),{},{isSearchStalled:r,error:e,searching:!1}))}return{store:R,widgetsManager:g,getWidgetsIds:function(){return R.getState().metadata.reduce(function(e,t){return void 0!==t.id?e.concat(t.id):e},[])},getSearchParameters:S,onSearchForFacetValues:function(e){var r=e.facetName,n=e.query,e=e.maxFacetHits,e=Math.max(1,Math.min(void 0===e?10:e,100));R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!0})),y.searchForFacetValues(r,n,e).then(function(e){var t;R.setState(_(_({},R.getState()),{},{error:null,searchingForFacetValues:!1,resultsFacetValues:_(_({},R.getState().resultsFacetValues),{},(Sr(t={},r,e.facetHits),Sr(t,"query",n),t))}))},function(e){R.setState(_(_({},R.getState()),{},{searchingForFacetValues:!1,error:e}))}).catch(function(e){setTimeout(function(){throw e})})},onExternalStateUpdate:function(e){var t=P(e);R.setState(_(_({},R.getState()),{},{widgets:e,metadata:t,searching:!0})),j()},transitionState:function(e){var r=R.getState().widgets;return g.getWidgets().filter(function(e){return Boolean(e.transitionState)}).reduce(function(e,t){return t.transitionState(r,e)},e)},updateClient:function(e){jr(e),y.setClient(e),j()},updateIndex:function(e){v=v.setIndex(e)},clearCache:function(){y.clearCache(),j()},skipSearch:function(){d=!0}}}function Ir(e){return(Ir="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 kr(e,t){var o,r=document.createElement("meta"),n=document.querySelector("head"),t=(r.name="algolia:metadata",t=t,o=["contextValue","indexContextValue"],e=(e=e).map(function(e){var t=e.props,e=e.constructor,r=e._connectorDesc||{},n=r.defaultProps,i=void 0===n?{}:n,n=r.displayName;return{displayName:void 0===n?e.displayName:n,$$type:e.$$type,$$widgetType:e.$$widgetType,params:Object.keys(t).filter(function(e){return!o.includes(e)&&i[e]!==t[e]&&void 0!==t[e]})}}),{ua:t.transporter&&t.transporter.userAgent?t.transporter.userAgent.value:t._ua,widgets:e});r.content=JSON.stringify(t),n.appendChild(r)}function Ar(e){return(Ar="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 Mr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Dr(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Mr(Object(r),!0).forEach(function(e){Qr(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Mr(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function qr(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ur(n.key),n)}}function Hr(e,t){return(Hr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Br(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=$r(r),t=(e=n?(e=$r(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ar(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Lr(t)}}function Lr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $r(e){return($r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qr(e,t,r){(t=Ur(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ur(e){e=function(e,t){if("object"!==Ar(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ar(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ar(e)?e:String(e)}function Wr(e){return Boolean(e.searchState)}f=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Hr(t,e);var r,n=Br(i);function i(e){if(!(this instanceof i))throw new TypeError("Cannot call a class as a function");Qr(Lr(e=n.call(this,e)),"cleanupTimerRef",null),Qr(Lr(e),"isUnmounting",!1);var t=Vr({indexName:e.props.indexName,searchClient:e.props.searchClient,initialState:e.props.searchState||{},resultsState:e.props.resultsState,stalledSearchDelay:e.props.stalledSearchDelay}),r={store:t.store,widgetsManager:t.widgetsManager,mainTargetedIndex:e.props.indexName,onInternalStateUpdate:e.onWidgetsInternalStateUpdate.bind(Lr(e)),createHrefForState:e.createHrefForState.bind(Lr(e)),onSearchForFacetValues:e.onSearchForFacetValues.bind(Lr(e)),onSearchStateChange:e.onSearchStateChange.bind(Lr(e)),onSearchParameters:e.onSearchParameters.bind(Lr(e))};return e.state={isControlled:Wr(e.props),instantSearchManager:t,contextValue:r},e}return t=i,e=[{key:"getDerivedStateFromProps",value:function(e,t){var r=Wr(e),n=t.instantSearchManager.store.getState().widgets,i=e.searchState;return r&&!H(n,i)&&t.instantSearchManager.onExternalStateUpdate(e.searchState),{isControlled:r,contextValue:Dr(Dr({},t.contextValue),{},{mainTargetedIndex:e.indexName})}}}],(r=[{key:"componentDidUpdate",value:function(e){var t=Wr(e);if(t&&!this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being controlled to uncontrolled");if(!t&&this.state.isControlled)throw new Error("You can't switch <InstantSearch> from being uncontrolled to controlled");this.props.refresh!==e.refresh&&this.props.refresh&&this.state.instantSearchManager.clearCache(),e.indexName!==this.props.indexName&&this.state.instantSearchManager.updateIndex(this.props.indexName),e.searchClient!==this.props.searchClient&&this.state.instantSearchManager.updateClient(this.props.searchClient)}},{key:"componentDidMount",value:function(){this.cleanupTimerRef&&(clearTimeout(this.cleanupTimerRef),this.cleanupTimerRef=null),"object"===("undefined"==typeof window?"undefined":Ir(window))&&"object"===Ir(window.navigator)&&"string"==typeof window.navigator.userAgent&&window.navigator.userAgent.includes("Algolia Crawler")&&"object"===Ir(window.document)&&kr(this.state.instantSearchManager.widgetsManager.getWidgets(),this.props.searchClient)}},{key:"componentWillUnmount",value:function(){var e=this;this.cleanupTimerRef=setTimeout(function(){e.isUnmounting=!0,e.state.instantSearchManager.skipSearch()})}},{key:"createHrefForState",value:function(e){return e=this.state.instantSearchManager.transitionState(e),this.state.isControlled&&this.props.createURL?this.props.createURL(e,this.getKnownKeys()):"#"}},{key:"onWidgetsInternalStateUpdate",value:function(e){e=this.state.instantSearchManager.transitionState(e),this.onSearchStateChange(e),this.state.isControlled||this.state.instantSearchManager.onExternalStateUpdate(e)}},{key:"onSearchStateChange",value:function(e){this.props.onSearchStateChange&&!this.isUnmounting&&this.props.onSearchStateChange(e)}},{key:"onSearchParameters",value:function(e,t,r,n,i){var o;this.props.onSearchParameters&&(o=this.props.searchState||{},this.props.onSearchParameters(e,t,r,o)),this.props.widgetsCollector&&(o=this.props.searchState||{},this.props.widgetsCollector({getSearchParameters:e,getMetadata:n,context:t,props:r,searchState:o,displayName:i}))}},{key:"onSearchForFacetValues",value:function(e){this.state.instantSearchManager.onSearchForFacetValues(e)}},{key:"getKnownKeys",value:function(){return this.state.instantSearchManager.getWidgetsIds()}},{key:"render",value:function(){return 0===o.Children.count(this.props.children)?null:d.createElement(ne,{value:this.state.contextValue},this.props.children)}}])&&qr(t.prototype,r),e&&qr(t,e),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);function zr(e){return(zr="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 Yr(e,t,r){return(t=function(e){e=function(e,t){if("object"!==zr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==zr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===zr(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Qr(f,"defaultProps",{stalledSearchDelay:200,refresh:!1}),Qr(f,"propTypes",{indexName:R.string.isRequired,searchClient:R.shape({search:R.func.isRequired,searchForFacetValues:R.func,addAlgoliaAgent:R.func,clearCache:R.func}).isRequired,createURL:R.func,refresh:R.bool,searchState:R.object,onSearchStateChange:R.func,onSearchParameters:R.func,widgetsCollector:R.func,resultsState:R.oneOfType([R.object,R.array]),children:R.node,stalledSearchDelay:R.number});function Zr(e){return e.attributes[0]}i=t({displayName:"AlgoliaBreadcrumb",$$type:"ais.breadcrumb",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},transformItems:R.func},getProvidedProps:function(e,t,r){var n=Zr(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(n))?(n=(r=r.getFacetValues(n)).data?function r(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),t.data)?e.concat(r(t.data)):e},[])}(r.data):[],{canRefine:0<(r=e.transformItems?e.transformItems(n):n).length,items:r}):{items:[],canRefine:!1}},refine:function(e,t,r){return n={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Yr({},Zr(e),r||""),n,!0,"hierarchicalMenu");var n}});function Jr(e){return(Jr="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 Kr(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Gr(n){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Kr(Object(i),!0).forEach(function(e){var t,r;t=n,r=i[e=e],(e=function(e){e=function(e,t){if("object"!==Jr(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Jr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Jr(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Kr(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}var Xr=t({displayName:"AlgoliaCurrentRefinements",$$type:"ais.currentRefinements",propTypes:{transformItems:R.func},getProvidedProps:function(r,e,t,n){n=n.reduce(function(e,t){return void 0===t.items||!r.clearsQuery&&"query"===t.id||r.clearsQuery&&"query"===t.id&&""===t.items[0].currentRefinement?e:e.concat(t.items.map(function(e){return Gr(Gr({},e),{},{id:t.id,index:t.index})}))},[]),n=r.transformItems?r.transformItems(n):n;return{items:n,canRefine:0<n.length}},refine:function(e,t,r){return(r instanceof Array?r.map(function(e){return e.value}):[r]).reduce(function(e,t){return t(e)},t)}});function en(e){return(en="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 tn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function rn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?tn(Object(r),!0).forEach(function(e){nn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function nn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==en(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==en(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===en(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function on(e){return e.attributes[0]}var an="hierarchicalMenu";function cn(e,t,r){t=a(e,t,r,"".concat(an,".").concat(on(e)),null);return""===t?null:t}function un(e,u,s,l){return e.map(function(e){return{label:e.name,value:(t=e.escapedValue,n=(r=u).id,i=u.attributes,o=u.separator,a=u.rootPath,c=u.showParentLevel,null===(r=cn(u,s,l))?t:new St.SearchParameters({hierarchicalFacets:[{name:n,attributes:i,separator:o,rootPath:a,showParentLevel:c}]}).toggleHierarchicalFacetRefinement(n,r).toggleHierarchicalFacetRefinement(n,t).getHierarchicalRefinement(n)[0]),count:e.count,isRefined:e.isRefined,items:e.data&&un(e.data,u,s,l)};var t,r,n,i,o,a,c})}function sn(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;return e.slice(0,t).map(function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e.items)?rn(rn({},e),{},{items:sn(e.items,t)}):e})}function ln(e,t,r,n){return b(t,nn({},on(e),r||""),n,!0,an)}function fn(e){var t=e.attribute,r=e.hit,n=e.highlightProperty,i=void 0===(i=e.preTag)?ve.highlightPreTag:i,e=e.postTag,t={attribute:t,highlightProperty:n,hit:r,preTag:i,postTag:void 0===e?ve.highlightPostTag:e},o=void 0===(n=t.preTag)?"<em>":n,a=void 0===(n=t.postTag)?"</em>":n,n=t.highlightProperty,r=t.attribute;if(t=t.hit)return t=X(t[n],r)||{},Array.isArray(t)?t.map(function(e){return ge({preTag:o,postTag:a,highlightedValue:e.value})}):ge({preTag:o,postTag:a,highlightedValue:t.value});throw new Error("`hit`, the matching record, must be provided")}var pn=["name:asc"],mn=t({displayName:"AlgoliaHierarchicalMenu",$$type:"ais.hierarchicalMenu",propTypes:{attributes:function(e,t,r){if(!Array.isArray(e[t])||e[t].some(function(e){return"string"!=typeof e})||e[t].length<1)return new Error("Invalid prop ".concat(t," supplied to ").concat(r,". Expected an Array of Strings"))},separator:R.string,rootPath:R.string,showParentLevel:R.bool,defaultRefinement:R.string,showMore:R.bool,limit:R.number,showMoreLimit:R.number,transformItems:R.func,facetOrdering:R.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,separator:" > ",rootPath:null,showParentLevel:!0,facetOrdering:!0},getProvidedProps:function(e,t,r){var n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.facetOrdering,c=on(e),r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return Boolean(r)&&Boolean(r.getFacetByName(c))?(n=n?o:i,i=(o=r.getFacetValues(c,{sortBy:pn,facetOrdering:a})).data?un(o.data,e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}):[],r=e.transformItems?e.transformItems(i):i,{items:sn(r,n),currentRefinement:cn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:0<r.length}):{items:[],currentRefinement:cn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:!1}},refine:function(e,t,r){return ln(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(an,".").concat(on(r)));var r},getSearchParameters:function(e,t,r){var n=t.attributes,i=t.separator,o=t.rootPath,a=t.showParentLevel,c=t.showMore,u=t.limit,s=t.showMoreLimit,l=t.contextValue,f=on(t),c=c?s:u,s=(e=e.addHierarchicalFacet({name:f,attributes:n,separator:i,rootPath:o,showParentLevel:a}).setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,c)}),cn(t,r,{ais:l,multiIndexContext:t.indexContextValue}));return e=null!==s?e.toggleHierarchicalFacetRefinement(f,s):e},getMetadata:function(t,e){var r=t.attributes[0],n=on(t),e=cn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),r=e?[{label:"".concat(r,": ").concat(ee(e)),attribute:r,value:function(e){return ln(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]:[];return{id:n,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:r}}}),hn=t({displayName:"AlgoliaHighlighter",$$type:"ais.highlighter",propTypes:{},getProvidedProps:function(){return{highlight:fn}}}),yn=t({displayName:"AlgoliaHits",$$type:"ais.hits",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{hits:J(Z(r.hits,r.hitsPerPage,r.page),r.queryID)}:{hits:[]}},getSearchParameters:function(e){return e}});function dn(e){return(dn="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 bn(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function vn(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(r),!0).forEach(function(e){gn(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bn(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function gn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==dn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==dn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===dn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xn(){return"hitsPerPage"}function wn(e,t,r){e=a(e,t,r,"hitsPerPage",null);return"string"==typeof e?parseInt(e,10):e}var j=t({displayName:"AlgoliaHitsPerPage",$$type:"ais.hitsPerPage",propTypes:{defaultRefinement:R.number.isRequired,items:R.arrayOf(R.shape({label:R.string,value:R.number.isRequired})).isRequired,transformItems:R.func},getProvidedProps:function(e,t){var r=wn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?vn(vn({},e),{},{isRefined:!0}):vn(vn({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,gn({},"hitsPerPage",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},xn())},getSearchParameters:function(e,t,r){return e.setHitsPerPage(wn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(){return{id:xn()}}});function On(e){return(On="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)}var Rn=["page"];function Pn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==On(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==On(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===On(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Sn(e){return function(e){if(Array.isArray(e))return jn(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?jn(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?jn(e,t):void 0}(e)||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.")}()}function jn(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function En(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Fn(e){e=e||{};e.page;return En(e,Rn)}var _n=t({displayName:"AlgoliaInfiniteHits",$$type:"ais.infiniteHits",getProvidedProps:function(e,t,r){var n,i,o,a,c,u,s,l,f,p,m=this,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?(n=r.page,u=r.hits,f=r.hitsPerPage,i=r.nbPages,o=r._state,this._cache=e.cache||this._cache||(c=a=void 0,{read:function(e){e=e.state;return H(c,Fn(e))?a:null},write:function(e){var t=e.state,e=e.hits;c=Fn(t),a=e}}),e=this._cache.read({state:o})||{},u=J(Z(u,f,n),r.queryID),e[n]=u,this._cache.write({state:o,hits:e}),s=Math.min.apply(Math,Sn(Object.keys(e).map(Number))),l=Math.max.apply(Math,Sn(Object.keys(e).map(Number))),f=0<s,r=l<i-1,{hits:(p=e,Object.keys(p).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(p[t])},[])),hasPrevious:f,hasMore:r,refinePrevious:function(e){return m.refine(e,s-1)},refineNext:function(e){return m.refine(e,l+1)}}):{hits:[],hasPrevious:!1,hasMore:!1,refine:function(){},refinePrevious:function(){},refineNext:function(){}}},getSearchParameters:function(e,t,r){return e.setQueryParameters({page:(t={ais:(e=t).contextValue,multiIndexContext:t.indexContextValue},("string"==typeof(e=a(e,r,t,"page",1))?parseInt(e,10):e)-1)})},refine:function(e,t,r,n){return b(t,Pn({},"page",n+1),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!1)}});function Cn(e){return(Cn="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 Nn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Cn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Cn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Cn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Tn="menu";function Vn(e){return e.attribute}function In(e,t,r){t=a(e,t,r,"".concat(Tn,".").concat(Vn(e)),null);return""===t?null:t}function kn(e,t,r,n){return e===In(t,r,n)?"":e}function An(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function Mn(e,t,r,n){return b(t,Nn({},Vn(e),r||""),n,!0,Tn)}var Dn=["count:desc","name:asc"],E=t({displayName:"AlgoliaMenu",$$type:"ais.menu",propTypes:{attribute:R.string.isRequired,showMore:R.bool,limit:R.number,showMoreLimit:R.number,defaultRefinement:R.string,transformItems:R.func,searchable:R.bool,facetOrdering:R.bool},defaultProps:{showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:kn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:a?void 0:Dn,facetOrdering:u}).map(function(e){return{label:e.name,value:kn(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,An(t)),currentRefinement:In(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:In(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:s}},refine:function(e,t,r){return Mn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:An(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Tn,".").concat(Vn(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=(e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,An(t))})).addDisjunctiveFacet(n),In(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}));return e=null!==r?e.addDisjunctiveFacetRefinement(n,r):e},getMetadata:function(t,e){var r=Vn(t),e=In(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:r,index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat(t.attribute,": ").concat(ee(e)),attribute:t.attribute,value:function(e){return Mn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function qn(e){return(qn="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 Hn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==qn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==qn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===qn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,a,c=[],u=!0,s=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=o.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){s=!0,i=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(s)throw i}}return c}}(e,t)||function(e,t){var r;if(e)return"string"==typeof e?Ln(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ln(e,t):void 0}(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 Ln(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $n(e){var t;return void 0===e.start&&void 0===e.end?"":(t=void 0!==e.start?e.start:"",e=void 0!==e.end?e.end:"","".concat(t,":").concat(e))}var Qn="multiRange";function Un(e){return e.attribute}function Wn(e,t,r){return a(e,t,r,"".concat(Qn,".").concat(Un(e)),"")}function zn(e,t,r,n){return b(t,Hn({},Un(e),r),n,!0,Qn)}var Yn=t({displayName:"AlgoliaNumericMenu",$$type:"ais.numericMenu",propTypes:{id:R.string,attribute:R.string.isRequired,items:R.arrayOf(R.shape({label:R.node,start:R.number,end:R.number})).isRequired,transformItems:R.func},getProvidedProps:function(a,e,t){var r=a.attribute,c=Wn(a,e,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),u=y(t,{ais:a.contextValue,multiIndexContext:a.indexContextValue}),e=a.items.map(function(e){var t,r,n,i,o=$n(e);return{label:e.label,value:o,isRefined:o===c,noRefinement:!(!u||(e=Un(a),o=o,t=(t=u).getFacetByName(e)?t.getFacetStats(e):null,e=o.split(":"),i=0===Number(e[0])||""===o?Number.NEGATIVE_INFINITY:Number(e[0]),o=0===Number(e[1])||""===o?Number.POSITIVE_INFINITY:Number(e[1]),Boolean(t)&&(e=i,n=o,(r=t).min>=e&&r.min<=n||r.max>=e&&r.max<=n||(e=o,(r=i)>=(n=t).min&&r<=n.max)||e>=n.min&&e<=n.max)))}}),t=u&&u.getFacetByName(r)?u.getFacetStats(r):null,r=K(e,function(e){return!0===e.isRefined}),r=(e.some(function(e){return""===e.value})||e.push({value:"",isRefined:void 0===r,noRefinement:!t,label:"All"}),a.transformItems?a.transformItems(e):e);return{items:r,currentRefinement:c,canRefine:0<r.length&&r.some(function(e){return!1===e.noRefinement})}},refine:function(e,t,r){return zn(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Qn,".").concat(Un(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,t=0===(r=Wn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})).length?{start:null,end:null}:(t=(r=Bn(r.split(":"),2))[0],r=r[1],{start:0<t.length?parseFloat(t):null,end:0<r.length?parseFloat(r):null}),r=t.start,t=t.end;return e=e.addDisjunctiveFacet(n),"number"==typeof r&&(e=e.addNumericRefinement(n,">=",r)),e="number"==typeof t?e.addNumericRefinement(n,"<=",t):e},getMetadata:function(t,e){var r,n=Un(t),i=Wn(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),e=[],o=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return""!==i&&(r=K(t.items,function(e){return $n(e)===i}).label,e.push({label:"".concat(t.attribute,": ").concat(r),attribute:t.attribute,currentRefinement:r,value:function(e){return zn(t,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})}})),{id:n,index:o,items:e}}});function Zn(e){return(Zn="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 Jn(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Zn(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Zn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Zn(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kn(){return"page"}function Gn(e,t,r){e=a(e,t,r,"page",1);return"string"==typeof e?parseInt(e,10):e}var Xn=t({displayName:"AlgoliaPagination",$$type:"ais.pagination",getProvidedProps:function(e,t,r){var r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{nbPages:r=r.nbPages,currentRefinement:Gn(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),canRefine:1<r}:null},refine:function(e,t,r){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},b(t,Jn({},"page",r),e,!1)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},Kn())},getSearchParameters:function(e,t,r){return e.setPage(Gn(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue})-1)},getMetadata:function(){return{id:Kn()}}}),ei=t({displayName:"AlgoliaPoweredBy",$$type:"ais.poweredBy",getProvidedProps:function(){var e="undefined"==typeof window||void 0===window.location?"":window.location.hostname;return{url:"https://www.algolia.com/?utm_source=react-instantsearch&utm_medium=website&"+"utm_content=".concat(e,"&")+"utm_campaign=poweredby"}}});function ti(e){return(ti="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 ri(e,t,r){return(t=function(e){e=function(e,t){if("object"!==ti(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==ti(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===ti(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ni(e){return e.attribute}var ii="range";function oi(e,t,r,n){var t=a(e,t,n,"".concat(ii,".").concat(ni(e)),{}),n=t.min,t=t.max,i=Boolean(e.precision),n={min:n="string"==typeof n?i?parseFloat(n):parseInt(n,10):n,max:t="string"==typeof t?i?parseFloat(t):parseInt(t,10):t},i=void 0!==e.min,t=void 0!==e.max,e=void 0!==n.min,o=void 0!==n.max;if(i&&e&&n.min<r.min)throw Error("You can't provide min value lower than range.");if(t&&o&&n.max>r.max)throw Error("You can't provide max value greater than range.");return i&&!e&&(n.min=r.min),t&&!o&&(n.max=r.max),n}function ai(e,t){return{min:(void 0!==e.min?e:t).min,max:(void 0!==e.max?e:t).max}}function ci(e,t,r,n){e=e||r!==n?e&&t?r:n:void 0;return e}function ui(e,t,r,n,i){var o=r.min,r=r.max,a=n.min,n=n.max,c=void 0===o||""===o,u=void 0===r||""===r,o=c?void 0:parseFloat(o),r=u?void 0:parseFloat(r),s=c||isFinite(o),l=u||isFinite(r);if(!s||!l)throw Error("You can't provide non finite values to the range connector.");if(o<a)throw Error("You can't provide min value lower than range.");if(n<r)throw Error("You can't provide max value greater than range.");return b(t,ri({},ni(e),{min:ci(void 0!==e.min,c,a,o),max:ci(void 0!==e.max,u,n,r)}),i,!0,ii)}var si=t({displayName:"AlgoliaRange",$$type:"ais.range",propTypes:{id:R.string,attribute:R.string.isRequired,defaultRefinement:R.shape({min:R.number,max:R.number}),min:R.number,max:R.number,precision:R.number,header:R.node,footer:R.node},defaultProps:{precision:0},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.precision,o=e.min,a=e.max,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),c=r&&r.getFacetByName(n),u=c&&r.getFacetStats(n)||{},c=(c?r.getFacetValues(n):[]).map(function(e){return{value:e.name,count:e.count}}),u=(r={min:o,max:a},n=u,o=i,o=Math.pow(10,o),a="number"==typeof r.min&&isFinite(r.min)?r.min:"number"==typeof n.min&&isFinite(n.min)?n.min:void 0,r="number"==typeof r.max&&isFinite(r.max)?r.max:"number"==typeof n.max&&isFinite(n.max)?n.max:void 0,{min:void 0!==a?Math.floor(a*o)/o:a,max:void 0!==r?Math.ceil(r*o)/o:r}),n=u.min,a=u.max,o=(this._currentRange={min:n,max:a},oi(e,t,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue}));return{min:n,max:a,canRefine:0<c.length,currentRefinement:ai(o,this._currentRange),count:c,precision:i}},refine:function(e,t,r){return ui(e,t,r,this._currentRange,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(ii,".").concat(ni(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,r=oi(t,r,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=r.min,r=r.max;return e=e.addDisjunctiveFacet(n),void 0!==t&&(e=e.addNumericRefinement(n,">=",t)),e=void 0!==r?e.addNumericRefinement(n,"<=",r):e},getMetadata:function(t,e){var r=this,n=this._currentRange,i=n.min,n=n.max,e=oi(t,e,this._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),o=e.min,e=e.max,a=[],c=void 0!==o,u=void 0!==e;return(c&&o!==i||u&&e!==n)&&(c=[c?"".concat(o," <= "):"",t.attribute,u?" <= ".concat(e):""],a.push({label:c.join(""),attribute:t.attribute,value:function(e){return ui(t,e,{},r._currentRange,{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:ai({min:o,max:e},{min:i,max:n})})),{id:ni(t),index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:a}}});function li(e){return(li="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 fi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==li(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==li(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===li(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var pi="refinementList";function mi(e){return e.attribute}function hi(e,t,r){t=a(e,t,r,"".concat(pi,".").concat(mi(e)),[]);return"string"!=typeof t?t:t?[t]:[]}function yi(t,e,r,n){e=hi(e,r,n);return-1===e.indexOf(t)?e.concat([t]):e.filter(function(e){return e!==t})}function di(e){var t=e.showMore,r=e.limit,e=e.showMoreLimit;return t?e:r}function bi(e,t,r,n){return b(t,fi({},mi(e),0<r.length?r:""),n,!0,pi)}var vi=["isRefined","count:desc","name:asc"],gi=t({displayName:"AlgoliaRefinementList",$$type:"ais.refinementList",propTypes:{id:R.string,attribute:R.string.isRequired,operator:R.oneOf(["and","or"]),showMore:R.bool,limit:R.number,showMoreLimit:R.number,defaultRefinement:R.arrayOf(R.oneOfType([R.string,R.number])),searchable:R.bool,transformItems:R.func,facetOrdering:R.bool},defaultProps:{operator:"or",showMore:!1,limit:10,showMoreLimit:20,facetOrdering:!0},getProvidedProps:function(t,r,e,n,i){var o=t.attribute,a=t.searchable,c=t.indexContextValue,u=t.facetOrdering,e=y(e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),s=Boolean(e)&&Boolean(e.getFacetByName(o)),l=Boolean(i&&i[o]&&""!==i.query);if(a&&c)throw new Error("react-instantsearch: searching in *List is not available when used inside a multi index context");return s?(c=l?i[o].map(function(e){return{label:e.value,value:yi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),_highlightResult:{label:{value:e.highlighted}},count:e.count,isRefined:e.isRefined}}):e.getFacetValues(o,{sortBy:vi,facetOrdering:u}).map(function(e){return{label:e.name,value:yi(e.escapedValue,t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),count:e.count,isRefined:e.isRefined}}),{items:(i=t.transformItems?t.transformItems(c):c).slice(0,di(t)),currentRefinement:hi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),isFromSearch:l,searchable:a,canRefine:0<i.length}):{items:[],currentRefinement:hi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),canRefine:s,isFromSearch:l,searchable:a}},refine:function(e,t,r){return bi(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},searchForFacetValues:function(e,t,r){return{facetName:e.attribute,query:r,maxFacetHits:di(e)}},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(pi,".").concat(mi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i="and"===t.operator?"addFacet":"addDisjunctiveFacet",o="".concat(i,"Refinement");return e=(e=e.setQueryParameters({maxValuesPerFacet:Math.max(e.maxValuesPerFacet||0,di(t))}))[i](n),hi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}).reduce(function(e,t){return e[o](n,t)},e)},getMetadata:function(r,n){var e=mi(r),i={ais:r.contextValue,multiIndexContext:r.indexContextValue};return{id:e,index:h(i),items:0<hi(r,n,i).length?[{attribute:r.attribute,label:"".concat(r.attribute,": "),currentRefinement:hi(r,n,i),value:function(e){return bi(r,e,[],i)},items:hi(r,n,i).map(function(t){return{label:ee("".concat(t)),value:function(e){e=hi(r,e,i).filter(function(e){return e!==t});return bi(r,n,e,i)}}})}]:[]}}}),xi=t({displayName:"AlgoliaScrollTo",$$type:"ais.scrollTo",propTypes:{scrollOn:R.string},defaultProps:{scrollOn:"page"},getProvidedProps:function(e,t){var r=e.scrollOn,n=a(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},r,null),e=(this._prevSearchState||(this._prevSearchState={}),G(t=Ne({ais:e.contextValue,multiIndexContext:e.indexContextValue})?t.indices?t.indices[h({ais:e.contextValue,multiIndexContext:e.indexContextValue})]:{}:t,["configure",r])),t=U(this._prevSearchState,e);return this._prevSearchState=e,{value:n,hasNotChanged:t}}});function wi(e){return(wi="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 Oi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==wi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==wi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===wi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ri(){return"query"}function Pi(e,t,r){e=a(e,t,r,"query","");return e||""}function Si(e,t,r,n){return b(t,Oi({},"query",r),n,!0)}var ji=t({displayName:"AlgoliaSearchBox",$$type:"ais.searchBox",propTypes:{defaultRefinement:R.string},getProvidedProps:function(e,t,r){return{currentRefinement:Pi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),isSearchStalled:r.isSearchStalled}},refine:function(e,t,r){return Si(0,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:e.contextValue,multiIndexContext:e.indexContextValue},n(t,e,Ri())},getSearchParameters:function(e,t,r){return e.setQuery(Pi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}))},getMetadata:function(t,e){e=Pi(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return{id:"query",index:h({ais:t.contextValue,multiIndexContext:t.indexContextValue}),items:null===e?[]:[{label:"".concat("query",": ").concat(e),value:function(e){return Si(0,e,"",{ais:t.contextValue,multiIndexContext:t.indexContextValue})},currentRefinement:e}]}}});function Ei(e){return(Ei="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 Fi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ei(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ei(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ei(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _i(){return"relevancyStrictness"}var Ci=t({displayName:"AlgoliaRelevantSort",$$type:"ais.relevantSort",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{isVirtualReplica:void 0!==r.appliedRelevancyStrictness,isRelevantSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness}:{isVirtualReplica:!1,isRelevantSorted:!1}},getSearchParameters:function(e,t,r){return e.setQueryParameter("relevancyStrictness",(e={ais:t.contextValue,multiIndexContext:t.indexContextValue},a(t,r,e,"relevancyStrictness")))},refine:function(e,t,r){return b(t,Fi({},_i(),r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)}});function Ni(e){return(Ni="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 Ti(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Vi(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Ti(Object(r),!0).forEach(function(e){Ii(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ti(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Ii(e,t,r){return(t=function(e){e=function(e,t){if("object"!==Ni(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ni(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ni(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ki(){return"sortBy"}function Ai(e,t,r){e=a(e,t,r,"sortBy",null);return e||null}var Mi=t({displayName:"AlgoliaSortBy",$$type:"ais.sortBy",propTypes:{defaultRefinement:R.string,items:R.arrayOf(R.shape({label:R.string,value:R.string.isRequired})).isRequired,transformItems:R.func},getProvidedProps:function(e,t){var r=Ai(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=e.items.map(function(e){return e.value===r?Vi(Vi({},e),{},{isRefined:!0}):Vi(Vi({},e),{},{isRefined:!1})});return{items:e.transformItems?e.transformItems(t):t,currentRefinement:r}},refine:function(e,t,r){return b(t,Ii({},"sortBy",r),{ais:e.contextValue,multiIndexContext:e.indexContextValue},!0)},cleanUp:function(e,t){return n(t,{ais:e.contextValue,multiIndexContext:e.indexContextValue},ki())},getSearchParameters:function(e,t,r){r=Ai(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue});return e.setIndex(r)},getMetadata:function(){return{id:ki()}}}),Di=t({displayName:"AlgoliaStats",$$type:"ais.stats",getProvidedProps:function(e,t,r){r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue});return r?{areHitsSorted:void 0!==r.appliedRelevancyStrictness&&0<r.appliedRelevancyStrictness&&r.nbHits!==r.nbSortedHits,nbHits:r.nbHits,nbSortedHits:r.nbSortedHits,processingTimeMS:r.processingTimeMS}:null}});function qi(e){return(qi="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 Hi(e,t,r){return(t=function(e){e=function(e,t){if("object"!==qi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==qi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===qi(e)?e:String(e)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bi(e){return e.attribute}var Li="toggle",$i=["0","false","null","undefined"];function Qi(e,t,r){t=a(e,t,r,"".concat(Li,".").concat(Bi(e)),!1);return-1===$i.indexOf(t)&&Boolean(t)}function Ui(e,t,r,n){return b(t,Hi({},Bi(e),r||!1),n,!0,Li)}R=t({displayName:"AlgoliaToggle",$$type:"ais.toggle",propTypes:{label:R.string.isRequired,attribute:R.string.isRequired,value:R.any.isRequired,filter:R.func,defaultRefinement:R.bool},getProvidedProps:function(e,t,r){var n=e.attribute,i=e.value,r=y(r,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),t=Qi(e,t,{ais:e.contextValue,multiIndexContext:e.indexContextValue}),e=r&&r.getFacetByName(n)?r.getFacetValues(n):null,r=e&&e.length?K(e,function(e){return e.name===i.toString()}):null,n=r&&r.count,r=e&&e.length?e.reduce(function(e,t){return e+t.count},0):null;return{currentRefinement:t,canRefine:t?null!==r&&0<r:null!==n&&0<n,count:{checked:r,unchecked:n}}},refine:function(e,t,r){return Ui(e,t,r,{ais:e.contextValue,multiIndexContext:e.indexContextValue})},cleanUp:function(e,t){return e={ais:(r=e).contextValue,multiIndexContext:e.indexContextValue},n(t,e,"".concat(Li,".").concat(Bi(r)));var r},getSearchParameters:function(e,t,r){var n=t.attribute,i=t.value,o=t.filter,r=Qi(t,r,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),t=e.addDisjunctiveFacet(n);return t=r&&(t=t.addDisjunctiveFacetRefinement(n,i),o)?o(t):t},getMetadata:function(t,e){var r=Bi(t),e=Qi(t,e,{ais:t.contextValue,multiIndexContext:t.indexContextValue}),n=[],i=h({ais:t.contextValue,multiIndexContext:t.indexContextValue});return e&&n.push({label:t.label,currentRefinement:e,attribute:t.attribute,value:function(e){return Ui(t,e,!1,{ais:t.contextValue,multiIndexContext:t.indexContextValue})}}),{id:r,index:i,items:n}}});function Wi(){}function zi(){}zi.resetWarningCache=Wi;var F=kt(function(e){function t(e,t,r,n,i,o){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==o)throw(o=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")).name="Invariant Violation",o}function r(){return t}e.exports=(e={array:t.isRequired=t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:r,element:t,elementType:t,instanceOf:r,node:t,objectOf:r,oneOf:r,oneOfType:r,shape:r,exact:r,checkPropTypes:zi,resetWarningCache:Wi}).PropTypes=e}),C=kt(function(e){function a(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var n,i=typeof r;if("string"==i||"number"==i)e.push(r);else if(Array.isArray(r))r.length&&(n=a.apply(null,r))&&e.push(n);else if("object"==i)if(r.toString===Object.prototype.toString)for(var o in r)c.call(r,o)&&r[o]&&e.push(o);else e.push(r.toString())}}return e.join(" ")}var c;c={}.hasOwnProperty,e.exports?e.exports=a.default=a:window.classNames=a});function Yi(e){return function(e){if(Array.isArray(e))return Zi(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){var r;if(e)return"string"==typeof e?Zi(e,t):"Map"===(r="Object"===(r=Object.prototype.toString.call(e).slice(8,-1))&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zi(e,t):void 0}(e)||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.")}()}function Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function N(i){var o=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"ais";return function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.filter(function(e){return e||""===e}).map(function(e){var t="".concat(o,"-").concat(i);return e?"".concat(t,"-").concat(e):t});return C(n)}}function Ji(e){var t=e.start,r=void 0===t?0:t,t=e.end,e=e.step,e=void 0===e?1:e,n=0===e?1:e,e=Math.round((t-r)/n);return Yi(Array(e)).map(function(e,t){return(r+t)*n})}function Ki(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}function Gi(e){return(Gi="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 Xi(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,oo(n.key),n)}}function eo(e,t){return(eo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function to(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=no(r),t=(e=n?(e=no(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Gi(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ro(t)}}function ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function no(e){return(no=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function io(e,t,r){(t=oo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function oo(e){e=function(e,t){if("object"!==Gi(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Gi(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Gi(e)?e:String(e)}var ao=N("Panel"),co=o.createContext(function(){}),uo=co.Consumer,so=co.Provider,co=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&eo(t,e);var r,a=to(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return io(ro(t=a.call.apply(a,[this].concat(i))),"state",{canRefine:!0}),io(ro(t),"setCanRefine",function(e){t.setState({canRefine:e})}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.children,r=e.className,n=e.header,e=e.footer,i=this.state.canRefine;return d.createElement("div",{className:C(ao("",!i&&"-noRefinement"),r)},n&&d.createElement("div",{className:ao("header")},n),d.createElement("div",{className:ao("body")},d.createElement(so,{value:this.setCanRefine},t)),e&&d.createElement("div",{className:ao("footer")},e))}}])&&Xi(t.prototype,e),r&&Xi(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function lo(e){return(lo="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 fo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yo(n.key),n)}}function po(e,t){return(po=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function mo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ho(r),t=(e=n?(e=ho(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===lo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ho(e){return(ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yo(e){e=function(e,t){if("object"!==lo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==lo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===lo(e)?e:String(e)}io(co,"propTypes",{children:F.node.isRequired,className:F.string,header:F.node,footer:F.node}),io(co,"defaultProps",{className:"",header:null,footer:null});function T(e){var t=e.canRefine,r=e.children;return d.createElement(uo,null,function(e){return d.createElement(bo,{setCanRefine:e,canRefine:t},r)})}var bo=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&po(t,e);var r,n=mo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){this.props.setCanRefine(this.props.canRefine)}},{key:"componentDidUpdate",value:function(e){e.canRefine!==this.props.canRefine&&this.props.setCanRefine(this.props.canRefine)}},{key:"render",value:function(){return this.props.children}}])&&fo(t.prototype,e),r&&fo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);V=bo,Ao="propTypes",Do={children:F.node.isRequired,canRefine:F.bool.isRequired,setCanRefine:F.func.isRequired},(Ao=yo(Ao))in V?Object.defineProperty(V,Ao,{value:Do,enumerable:!0,configurable:!0,writable:!0}):V[Ao]=Do;function vo(e){return(vo="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 go(){return(go=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xo(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jo(n.key),n)}}function wo(e,t){return(wo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Po(r),t=(e=n?(e=Po(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===vo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Ro(t)}}function Ro(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Po(e){return(Po=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function So(e,t,r){(t=jo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function jo(e){e=function(e,t){if("object"!==vo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==vo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===vo(e)?e:String(e)}var Eo=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wo(t,e);var r,a=Oo(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return So(Ro(n=a.call.apply(a,[this].concat(i))),"onClick",function(e){var t,r;r=1===(t=e).button,Boolean(r||t.altKey||t.ctrlKey||t.metaKey||t.shiftKey)||(n.props.onClick(),e.preventDefault())}),n}return t=c,(e=[{key:"render",value:function(){return d.createElement("a",go({},this.props,{onClick:this.onClick}))}}])&&xo(t.prototype,e),r&&xo(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Fo(e){return(Fo="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 _o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Io(n.key),n)}}function Co(e,t){return(Co=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function No(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=To(r),t=(e=n?(e=To(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Fo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function To(e){return(To=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vo(e,t,r){(t=Io(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Io(e){e=function(e,t){if("object"!==Fo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Fo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Fo(e)?e:String(e)}So(Eo,"propTypes",{onClick:F.func.isRequired});var ko=N("Breadcrumb"),V=F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired})),Ao=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Co(t,e);var r,n=No(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.canRefine,n=e.createURL,i=e.items,o=e.refine,r=e.rootURL,a=e.separator,c=e.translate,e=e.className,c=t?d.createElement("li",{className:ko("item")},d.createElement(Eo,{className:ko("link"),onClick:function(){return r?null:o()},href:r||n()},c("rootLabel"))):null,u=i.map(function(e,t){var r=t===i.length-1;return d.createElement("li",{className:ko("item",r&&"item--selected"),key:t},d.createElement("span",{className:ko("separator")},a),r?e.label:d.createElement(Eo,{className:ko("link"),onClick:function(){return o(e.value)},href:n(e.value)},e.label))});return d.createElement("div",{className:C(ko("",!t&&"-noRefinement"),e)},d.createElement("ul",{className:ko("list")},c,u))}}])&&_o(t.prototype,e),r&&_o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Mo=(Vo(Ao,"propTypes",{canRefine:F.bool.isRequired,createURL:F.func.isRequired,items:V,refine:F.func.isRequired,rootURL:F.string,separator:F.node,translate:F.func.isRequired,className:F.string}),Vo(Ao,"defaultProps",{rootURL:null,separator:" > ",className:""}),r({rootLabel:"Home"})(Ao)),Do=i(function(e){return d.createElement(T,e,d.createElement(Mo,e))},{$$widgetType:"ais.breadcrumb"});function qo(e){return(qo="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 Ho(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Uo(n.key),n)}}function Bo(e,t){return(Bo=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Lo(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=$o(r),t=(e=n?(e=$o(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===qo(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function $o(e){return($o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qo(e,t,r){(t=Uo(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Uo(e){e=function(e,t){if("object"!==qo(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==qo(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===qo(e)?e:String(e)}function Wo(e){var t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:C(Zo("",!r&&"-noRefinement"),e)},d.createElement("ul",{className:Zo("list",!r&&"list--noRefinement")},t.map(function(e){return d.createElement("li",{key:e.label,className:Zo("item")},d.createElement("span",{className:Zo("label")},e.label),e.items?e.items.map(function(e){return d.createElement("span",{key:e.label,className:Zo("category")},d.createElement("span",{className:Zo("categoryLabel")},e.label),d.createElement("button",{className:Zo("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e)))}):d.createElement("span",{className:Zo("category")},d.createElement("button",{className:Zo("delete"),onClick:function(){return n(e.value)}},i("clearFilter",e))))})))}var zo=N("ClearRefinements"),V=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Bo(t,e);var r,n=Lo(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,n=e.refine,i=e.translate,e=e.className;return d.createElement("div",{className:C(zo(""),e)},d.createElement("button",{className:zo("button",!r&&"button--disabled"),onClick:function(){return n(t)},disabled:!r},i("reset")))}}])&&Ho(t.prototype,e),r&&Ho(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Yo=(Qo(V,"propTypes",{items:F.arrayOf(F.object).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Qo(V,"defaultProps",{className:""}),r({reset:"Clear all filters"})(V)),Ao=Xr(function(e){return d.createElement(T,e,d.createElement(Yo,e))},{$$widgetType:"ais.clearRefinements"}),Zo=N("CurrentRefinements"),Jo=F.arrayOf(F.shape({label:F.string.isRequired,value:F.func.isRequired,items:function(){return Jo.apply(void 0,arguments)}})),Ko=(Wo.defaultProps={className:""},r({clearFilter:"✕"})(Wo)),i=Xr(function(e){return d.createElement(T,e,d.createElement(Ko,e))},{$$widgetType:"ais.currentRefinements"});function Go(e){return(Go="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 Xo(){return(Xo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ea(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function ta(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ea(Object(r),!0).forEach(function(e){I(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ea(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function ra(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ca(n.key),n)}}function na(e,t){return(na=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ia(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=aa(r),t=(e=n?(e=aa(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Go(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return oa(t)}}function oa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aa(e){return(aa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t,r){return(t=ca(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function ca(e){e=function(e,t){if("object"!==Go(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Go(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Go(e)?e:String(e)}var ua=N("SearchBox"),V=d.createElement("svg",{width:"18",height:"18",viewBox:"0 0 38 38",xmlns:"http://www.w3.org/2000/svg",stroke:"#444",className:ua("loadingIcon"),"aria-hidden":"true"},d.createElement("g",{fill:"none",fillRule:"evenodd"},d.createElement("g",{transform:"translate(1 1)",strokeWidth:"2"},d.createElement("circle",{strokeOpacity:".5",cx:"18",cy:"18",r:"18"}),d.createElement("path",{d:"M36 18c0-9.94-8.06-18-18-18"},d.createElement("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"}))))),Xr=d.createElement("svg",{className:ua("resetIcon"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},d.createElement("path",{d:"M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"})),sa=d.createElement("svg",{className:ua("submitIcon"),xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},d.createElement("path",{d:"M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"})),la=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&na(t,e);var r,n=ia(i);function i(e){var o;if(this instanceof i)return I(oa(o=n.call(this)),"getQuery",function(){return o.props.searchAsYouType?o.props.currentRefinement:o.state.query}),I(oa(o),"onInputMount",function(e){o.input=e,o.props.inputRef&&("function"==typeof o.props.inputRef?o.props.inputRef(e):o.props.inputRef.current=e)}),I(oa(o),"onKeyDown",function(e){var t,r,n;o.props.focusShortcuts&&(t=o.props.focusShortcuts.map(function(e){return"string"==typeof e?e.toUpperCase().charCodeAt(0):e}),r=(n=e.target||e.srcElement).tagName,n.isContentEditable||"INPUT"===r||"SELECT"===r||"TEXTAREA"===r||(n=e.which||e.keyCode,-1!==t.indexOf(n)&&(o.input.focus(),e.stopPropagation(),e.preventDefault())))}),I(oa(o),"onSubmit",function(e){e.preventDefault(),e.stopPropagation(),o.input.blur();var e=o.props,t=e.refine;return e.searchAsYouType||t(o.getQuery()),!1}),I(oa(o),"onChange",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onChange,i=e.target.value;r?n(i):o.setState({query:i}),t&&t(e)}),I(oa(o),"onReset",function(e){var t=o.props,r=t.searchAsYouType,n=t.refine,t=t.onReset;n(""),o.input.focus(),r||o.setState({query:""}),t&&t(e)}),o.state={query:e.searchAsYouType?null:e.currentRefinement},o;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.onKeyDown)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"componentDidUpdate",value:function(e){this.props.searchAsYouType||e.currentRefinement===this.props.currentRefinement||this.setState({query:this.props.currentRefinement})}},{key:"render",value:function(){var r=this,e=this.props,t=e.className,n=e.inputId,i=e.translate,o=e.autoFocus,a=e.loadingIndicator,c=e.submit,e=e.reset,u=this.getQuery(),s=Object.keys(this.props).reduce(function(e,t){return-1===["onsubmit","onreset","onchange"].indexOf(t.toLowerCase())&&0===t.indexOf("on")?ta(ta({},e),{},I({},t,r.props[t])):e},{}),l=this.props.showLoadingIndicator&&this.props.isSearchStalled;return d.createElement("div",{className:C(ua(""),t)},d.createElement("form",{ref:this.props.formRef,noValidate:!0,onSubmit:this.props.onSubmit||this.onSubmit,onReset:this.onReset,className:ua("form",l&&"form--stalledSearch"),action:"",role:"search"},d.createElement("input",Xo({ref:this.onInputMount,id:n,type:"search",placeholder:i("placeholder"),autoFocus:o,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",required:!0,maxLength:"512",value:u,onChange:this.onChange},s,{className:ua("input")})),d.createElement("button",{type:"submit",title:i("submitTitle"),className:ua("submit")},c),d.createElement("button",{type:"reset",title:i("resetTitle"),className:ua("reset"),hidden:!u||l},e),this.props.showLoadingIndicator&&d.createElement("span",{hidden:!l,className:ua("loadingIndicator")},a)))}}])&&ra(t.prototype,e),r&&ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),fa=(I(la,"propTypes",{currentRefinement:F.string,className:F.string,refine:F.func.isRequired,translate:F.func.isRequired,loadingIndicator:F.node,reset:F.node,submit:F.node,focusShortcuts:F.arrayOf(F.oneOfType([F.string,F.number])),autoFocus:F.bool,searchAsYouType:F.bool,onSubmit:F.func,onReset:F.func,onChange:F.func,isSearchStalled:F.bool,showLoadingIndicator:F.bool,formRef:F.oneOfType([F.func,F.exact({current:F.object})]),inputRef:F.oneOfType([F.func,F.exact({current:F.object})]),inputId:F.string}),I(la,"defaultProps",{currentRefinement:"",className:"",focusShortcuts:["s","/"],autoFocus:!1,searchAsYouType:!0,showLoadingIndicator:!1,isSearchStalled:!1,loadingIndicator:V,reset:Xr,submit:sa}),r({resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(la));function pa(e){return(pa="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 ma(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ga(n.key),n)}}function ha(e,t){return(ha=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ya(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ba(r),t=(e=n?(e=ba(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===pa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return da(t)}}function da(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ba(e){return(ba=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function va(e,t,r){(t=ga(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function ga(e){e=function(e,t){if("object"!==pa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==pa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===pa(e)?e:String(e)}var xa=F.arrayOf(F.shape({value:F.any,label:F.node.isRequired,items:function(){return xa.apply(void 0,arguments)}})),wa=function(e){var t=o;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ha(t,e);var r,i=ya(o);function o(){var n;if(this instanceof o)return va(da(n=i.call(this)),"onShowMoreClick",function(){n.setState(function(e){return{extended:!e.extended}})}),va(da(n),"getLimit",function(){var e=n.props,t=e.limit,e=e.showMoreLimit;return n.state.extended?e:t}),va(da(n),"resetQuery",function(){n.setState({query:""})}),va(da(n),"renderItem",function(t,e){var r=t.items&&Boolean(t.items.length);return d.createElement("li",{key:t.key||t.label,className:n.props.cx("item",t.isRefined&&"item--selected",t.noRefinement&&"item--noRefinement",r&&"item--parent")},n.props.renderItem(t,e),r&&d.createElement("ul",{className:n.props.cx("list","list--child")},t.items.slice(0,n.getLimit()).map(function(e){return n.renderItem(e,t)})))}),n.state={extended:!1,query:""},n;throw new TypeError("Cannot call a class as a function")}return t=o,(e=[{key:"renderShowMore",value:function(){var e=this.props,t=e.showMore,r=e.translate,e=e.cx,n=this.state.extended,i=this.props.limit>=this.props.items.length;return t?d.createElement("button",{disabled:i,className:e("showMore",i&&"showMore--disabled"),onClick:this.onShowMoreClick},r("showMore",n)):null}},{key:"renderSearchBox",value:function(){var t=this,e=this.props,r=e.cx,n=e.searchForItems,i=e.isFromSearch,o=e.translate,a=e.items,c=e.selectItem,e=0===a.length&&""!==this.state.query?d.createElement("div",{className:r("noResults")},o("noResults")):null;return d.createElement("div",{className:r("searchBox")},d.createElement(fa,{currentRefinement:this.state.query,refine:function(e){t.setState({query:e}),n(e)},focusShortcuts:[],translate:o,onSubmit:function(e){e.preventDefault(),e.stopPropagation(),i&&0<a.length&&c(a[0],t.resetQuery)}}),e)}},{key:"render",value:function(){var t=this,e=this.props,r=e.cx,n=e.items,i=e.className,o=e.searchable,e=e.canRefine,o=o?this.renderSearchBox():null,i=C(r("",!e&&"-noRefinement"),i);return 0===n.length?d.createElement("div",{className:i},o):d.createElement("div",{className:i},o,d.createElement("ul",{className:r("list",!e&&"list--noRefinement")},n.slice(0,this.getLimit()).map(function(e){return t.renderItem(e,t.resetQuery)})),this.renderShowMore())}}])&&ma(t.prototype,e),r&&ma(t,r),Object.defineProperty(t,"prototype",{writable:!1}),o}(o.Component);function Oa(e){return(Oa="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 Ra(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,_a(n.key),n)}}function Pa(e,t){return(Pa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Sa(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ea(r),t=(e=n?(e=Ea(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Oa(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ja(t)}}function ja(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ea(e){return(Ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fa(e,t,r){(t=_a(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function _a(e){e=function(e,t){if("object"!==Oa(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Oa(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Oa(e)?e:String(e)}va(wa,"propTypes",{cx:F.func.isRequired,translate:F.func,items:xa,renderItem:F.func.isRequired,selectItem:F.func,className:F.string,showMore:F.bool,limit:F.number,showMoreLimit:F.number,show:F.func,searchForItems:F.func,searchable:F.bool,isFromSearch:F.bool,canRefine:F.bool}),va(wa,"defaultProps",{className:"",isFromSearch:!1});function Ca(e){var t=e.cx,r=e.value,n=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return d.createElement(i?n:e,{className:t(i?"highlighted":"nonHighlighted")},r)}function Na(e){var n=e.cx,t=e.hit,r=e.attribute,i=e.highlight,o=e.highlightProperty,a=e.tagName,c=e.nonHighlightedTagName,u=e.separator,e=e.className,s=i({hit:t,attribute:r,highlightProperty:o});return d.createElement("span",{className:C(n(""),e)},s.map(function(e,t){var r;return Array.isArray(e)?(r=t===s.length-1,d.createElement("span",{key:t},e.map(function(e,t){return d.createElement(Ca,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}),!r&&d.createElement("span",{className:n("separator")},u))):d.createElement(Ca,{cx:n,key:t,value:e.value,highlightedTagName:a,nonHighlightedTagName:c,isHighlighted:e.isHighlighted})}))}var Ta=N("HierarchicalMenu"),Va=F.arrayOf(F.shape({label:F.string.isRequired,value:F.string,count:F.number.isRequired,items:function(){return Va.apply(void 0,arguments)}})),V=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Pa(t,e);var r,a=Sa(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Fa(ja(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e){var t=i.props,r=t.createURL,n=t.refine;return d.createElement(Eo,{className:Ta("link",e.isRefined&&"link--selected"),onClick:function(){return n(e.value)},href:r(e.value)},d.createElement("span",{className:Ta("label")},e.label)," ",d.createElement("span",{className:Ta("count")},e.count))}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,cx:Ta,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,canRefine:a,className:e})}}])&&Ra(t.prototype,e),r&&Ra(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Ia=(Fa(V,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,canRefine:F.bool.isRequired,items:Va,showMore:F.bool,className:F.string,limit:F.number,showMoreLimit:F.number,transformItems:F.func}),Fa(V,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"}})(V)),Xr=mn(function(e){return d.createElement(T,e,d.createElement(Ia,e))},{$$widgetType:"ais.hierarchicalMenu"});function ka(){return(ka=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}Na.defaultProps={tagName:"em",nonHighlightedTagName:"span",className:"",separator:", "};function Aa(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}var Ma=N("Highlight"),Da=hn(function(e){return d.createElement(Na,ka({},e,{highlightProperty:"_highlightResult",cx:Ma}))},{$$widgetType:"ais.highlight"}),qa=N("Hits"),sa=(F.shape({objectID:F.oneOfType([F.string,F.number]).isRequired}),yn(function(e){var t=e.hits,r=e.className,r=void 0===r?"":r,e=e.hitComponent,n=void 0===e?Aa:e;return d.createElement("div",{className:C(qa(""),r)},d.createElement("ul",{className:qa("list")},t.map(function(e){return d.createElement("li",{className:qa("item"),key:e.objectID},d.createElement(n,{hit:e}))})))},{$$widgetType:"ais.hits"}));function Ha(e){return(Ha="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 Ba(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,za(n.key),n)}}function La(e,t){return(La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $a(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ua(r),t=(e=n?(e=Ua(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ha(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qa(t)}}function Qa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ua(e){return(Ua=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wa(e,t,r){(t=za(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function za(e){e=function(e,t){if("object"!==Ha(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ha(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ha(e)?e:String(e)}var Ya=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&La(t,e);var r,a=$a(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Wa(Qa(t=a.call.apply(a,[this].concat(i))),"onChange",function(e){t.props.onSelect(e.target.value)}),t}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.id,n=e.items,e=e.selectedItem;return d.createElement("select",{id:r,className:t("select"),value:e,onChange:this.onChange},n.map(function(e){return d.createElement("option",{className:t("option"),key:void 0===e.key?e.value:e.key,disabled:e.disabled,value:e.value},void 0===e.label?e.value:e.label)}))}}])&&Ba(t.prototype,e),r&&Ba(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component);function Za(e){return(Za="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 Ja(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,tc(n.key),n)}}function Ka(e,t){return(Ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ga(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Xa(r),t=(e=n?(e=Xa(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Za(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Xa(e){return(Xa=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ec(e,t,r){(t=tc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function tc(e){e=function(e,t){if("object"!==Za(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Za(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Za(e)?e:String(e)}Wa(Ya,"propTypes",{cx:F.func.isRequired,id:F.string,onSelect:F.func.isRequired,items:F.arrayOf(F.shape({value:F.oneOfType([F.string,F.number]).isRequired,key:F.oneOfType([F.string,F.number]),label:F.string,disabled:F.bool})).isRequired,selectedItem:F.oneOfType([F.string,F.number]).isRequired});var rc=N("HitsPerPage"),la=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ka(t,e);var r,n=Ga(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:C(rc(""),e)},d.createElement(Ya,{id:t,onSelect:i,selectedItem:n,items:r,cx:rc}))}}])&&Ja(t.prototype,e),r&&Ja(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),V=(ec(la,"propTypes",{id:F.string,items:F.arrayOf(F.shape({value:F.number.isRequired,label:F.string})).isRequired,currentRefinement:F.number.isRequired,refine:F.func.isRequired,className:F.string}),ec(la,"defaultProps",{className:""}),j(la,{$$widgetType:"ais.hitsPerPage"}));function nc(e){return(nc="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 ic(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){e=function(e,t){if("object"!==nc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==nc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===nc(e)?e:String(e)}(n.key),n)}}function oc(e,t){return(oc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ac(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=cc(r),t=(e=n?(e=cc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===nc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function cc(e){return(cc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var uc=N("InfiniteHits"),mn=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&oc(t,e);var r,n=ac(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.hitComponent,r=e.hits,n=e.showPrevious,i=e.hasPrevious,o=e.hasMore,a=e.refinePrevious,c=e.refineNext,u=e.translate,e=e.className;return d.createElement("div",{className:C(uc(""),e)},n&&d.createElement("button",{className:uc("loadPrevious",!i&&"loadPrevious--disabled"),onClick:function(){return a()},disabled:!i},u("loadPrevious")),d.createElement("ul",{className:uc("list")},r.map(function(e){return d.createElement("li",{key:e.objectID,className:uc("item")},d.createElement(t,{hit:e}))})),d.createElement("button",{className:uc("loadMore",!o&&"loadMore--disabled"),onClick:function(){return c()},disabled:!o},u("loadMore")))}}])&&ic(t.prototype,e),r&&ic(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);mn.defaultProps={className:"",showPrevious:!1,hitComponent:function(e){return d.createElement("div",{style:{borderBottom:"1px solid #bbb",paddingBottom:"5px",marginBottom:"5px",wordBreak:"break-all"}},JSON.stringify(e).slice(0,100),"...")}};yn=_n(r({loadPrevious:"Load previous",loadMore:"Load more"})(mn),{$$widgetType:"ais.infiniteHits"});function sc(e){return(sc="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 lc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,dc(n.key),n)}}function fc(e,t){return(fc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function pc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=hc(r),t=(e=n?(e=hc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===sc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return mc(t)}}function mc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hc(e){return(hc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function yc(e,t,r){(t=dc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function dc(e){e=function(e,t){if("object"!==sc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==sc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===sc(e)?e:String(e)}var bc=N("Menu"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&fc(t,e);var r,a=pc(c);function c(){var i,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return yc(mc(i=a.call.apply(a,[this].concat(n))),"renderItem",function(e,t){var r=i.props.createURL,n=i.props.isFromSearch?d.createElement(Da,{attribute:"label",hit:e}):e.label;return d.createElement(Eo,{className:bc("link"),onClick:function(){return i.selectItem(e,t)},href:r(e.value)},d.createElement("span",{className:bc("label")},n)," ",d.createElement("span",{className:bc("count")},e.count))}),yc(mc(i),"selectItem",function(e,t){t(),i.props.refine(e.value)}),i}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,selectItem:this.selectItem,cx:bc,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e})}}])&&lc(t.prototype,e),r&&lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),vc=(yc(j,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,searchForItems:F.func.isRequired,searchable:F.bool,createURL:F.func.isRequired,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired,count:F.number.isRequired,isRefined:F.bool.isRequired})),isFromSearch:F.bool.isRequired,canRefine:F.bool.isRequired,showMore:F.bool,limit:F.number,showMoreLimit:F.number,transformItems:F.func,className:F.string}),yc(j,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(j)),la=E(function(e){return d.createElement(T,e,d.createElement(vc,e))},{$$widgetType:"ais.menu"});function gc(e){return(gc="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 xc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,jc(n.key),n)}}function wc(e,t){return(wc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Oc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Pc(r),t=(e=n?(e=Pc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===gc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Rc(t)}}function Rc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pc(e){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sc(e,t,r){(t=jc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function jc(e){e=function(e,t){if("object"!==gc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==gc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===gc(e)?e:String(e)}var Ec=N("MenuSelect"),_n=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&wc(t,e);var r,a=Oc(c);function c(){var t,e=this,r=c;if(!(e instanceof r))throw new TypeError("Cannot call a class as a function");for(var n=arguments.length,i=new Array(n),o=0;o<n;o++)i[o]=arguments[o];return Sc(Rc(t=a.call.apply(a,[this].concat(i))),"handleSelectChange",function(e){e=e.target.value;t.props.refine("ais__see__all__option"===e?"":e)}),t}return t=c,(e=[{key:"selectedValue",get:function(){return(Ki(this.props.items,function(e){return!0===e.isRefined})||{value:"ais__see__all__option"}).value}},{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.canRefine,i=e.translate,e=e.className;return d.createElement("div",{className:C(Ec("",!n&&"-noRefinement"),e)},d.createElement("select",{id:t,value:this.selectedValue,onChange:this.handleSelectChange,className:Ec("select")},d.createElement("option",{value:"ais__see__all__option",className:Ec("option")},i("seeAllOption")),r.map(function(e){return d.createElement("option",{key:e.value,value:e.value,className:Ec("option")},e.label," (",e.count,")")})))}}])&&xc(t.prototype,e),r&&xc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Fc=(Sc(_n,"propTypes",{id:F.string,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.string.isRequired,count:F.oneOfType([F.number.isRequired,F.string.isRequired]),isRefined:F.bool.isRequired})).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Sc(_n,"defaultProps",{className:""}),r({seeAllOption:"See all"})(_n)),mn=E(function(e){return d.createElement(T,e,d.createElement(Fc,e))},{$$widgetType:"ais.menuSelect"});function _c(e){return(_c="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 Cc(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function Nc(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Cc(Object(r),!0).forEach(function(e){Mc(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Cc(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Tc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Dc(n.key),n)}}function Vc(e,t){return(Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Ic(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Ac(r),t=(e=n?(e=Ac(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===_c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return kc(t)}}function kc(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ac(e){return(Ac=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Mc(e,t,r){(t=Dc(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Dc(e){e=function(e,t){if("object"!==_c(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==_c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===_c(e)?e:String(e)}var qc=N("NumericMenu"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Vc(t,e);var r,a=Ic(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Mc(kc(n=a.call.apply(a,[this].concat(i))),"renderItem",function(e){var t=n.props,r=t.refine,t=t.translate;return d.createElement("label",{className:qc("label")},d.createElement("input",{className:qc("radio"),type:"radio",checked:e.isRefined,disabled:e.noRefinement,onChange:function(){return r(e.value)}}),d.createElement("span",{className:qc("labelText")},""===e.value?t("all"):e.label))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.items,r=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,showMore:!1,canRefine:r,cx:qc,items:t.map(function(e){return Nc(Nc({},e),{},{key:e.value})}),className:e})}}])&&Tc(t.prototype,e),r&&Tc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Hc=(Mc(j,"propTypes",{items:F.arrayOf(F.shape({label:F.node.isRequired,value:F.string.isRequired,isRefined:F.bool.isRequired,noRefinement:F.bool.isRequired})).isRequired,canRefine:F.bool.isRequired,refine:F.func.isRequired,translate:F.func.isRequired,className:F.string}),Mc(j,"defaultProps",{className:""}),r({all:"All"})(j)),_n=Yn(function(e){return d.createElement(T,e,d.createElement(Hc,e))},{$$widgetType:"ais.numericMenu"});function Bc(e){return(Bc="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 Lc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Wc(n.key),n)}}function $c(e,t){return($c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Qc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Uc(r),t=(e=n?(e=Uc(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Bc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Uc(e){return(Uc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wc(e){e=function(e,t){if("object"!==Bc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Bc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Bc(e)?e:String(e)}var E=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&$c(t,e);var r,n=Qc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.cx,r=e.createURL,n=e.items,i=e.onSelect,e=e.canRefine;return d.createElement("ul",{className:t("list",!e&&"list--noRefinement")},n.map(function(e){return d.createElement("li",{key:void 0===e.key?e.value:e.key,className:t("item",e.selected&&!e.disabled&&"item--selected",e.disabled&&"item--disabled",e.modifier)},e.disabled?d.createElement("span",{className:t("link")},void 0===e.label?e.value:e.label):d.createElement(Eo,{className:t("link",e.selected&&"link--selected"),"aria-label":e.ariaLabel,href:r(e.value),onClick:function(){return i(e.value)}},void 0===e.label?e.value:e.label))}))}}])&&Lc(t.prototype,e),r&&Lc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),zc=(j=E,Yn="propTypes",yu={cx:F.func.isRequired,createURL:F.func.isRequired,items:F.arrayOf(F.shape({value:F.oneOfType([F.string,F.number,F.object]).isRequired,key:F.oneOfType([F.string,F.number]),label:F.node,modifier:F.string,ariaLabel:F.string,disabled:F.bool})),onSelect:F.func.isRequired,canRefine:F.bool.isRequired},(Yn=Wc(Yn))in j?Object.defineProperty(j,Yn,{value:yu,enumerable:!0,configurable:!0,writable:!0}):j[Yn]=yu,["listComponent","nbPages","totalPages","currentRefinement","padding","showFirst","showPrevious","showNext","showLast","refine","createURL","canRefine","translate","className"]);function Yc(e){return(Yc="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 Zc(){return(Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Jc(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}function Kc(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ru(n.key),n)}}function Gc(e,t){return(Gc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xc(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=eu(r),t=(e=n?(e=eu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Yc(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function eu(e){return(eu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tu(e,t,r){(t=ru(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function ru(e){e=function(e,t){if("object"!==Yc(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Yc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Yc(e)?e:String(e)}var nu=N("Pagination");function iu(e,t,r){var n,i,o=Math.min(2*r+1,t);return o===t?Ji({start:1,end:t+1}):(t=t,i=o,i=(n=e)<=(r=r)?n:t-r<=n?i-(t-n):r+1,Ji({start:1+(e-i),end:e+(o-i)+1}))}var j=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gc(t,e);var r,n=Xc(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"getItem",value:function(e,t,r){var n=this.props,i=n.nbPages,o=n.totalPages,n=n.translate;return{key:"".concat(e,".").concat(r),modifier:e,disabled:r<1||r>=Math.min(o,i),label:n(t,r),value:r,ariaLabel:n("aria".concat(0===(e=t).length?"":"".concat(e[0].toUpperCase()).concat(e.slice(1))),r)}}},{key:"render",value:function(){var e=this.props,t=e.listComponent,r=e.nbPages,n=e.totalPages,i=e.currentRefinement,o=e.padding,a=e.showFirst,c=e.showPrevious,u=e.showNext,s=e.showLast,l=e.refine,f=e.createURL,p=e.canRefine,m=e.translate,h=e.className,e=Jc(e,zc),r=Math.min(r,n),n=r,y=[];return a&&y.push({key:"first",modifier:"item--firstPage",disabled:1===i,label:m("first"),value:1,ariaLabel:m("ariaFirst")}),c&&y.push({key:"previous",modifier:"item--previousPage",disabled:1===i,label:m("previous"),value:i-1,ariaLabel:m("ariaPrevious")}),y=y.concat(iu(i,r,o).map(function(e){return{key:e,modifier:"item--page",label:m("page",e),value:e,selected:e===i,ariaLabel:m("ariaPage",e)}})),u&&y.push({key:"next",modifier:"item--nextPage",disabled:i===n||n<=1,label:m("next"),value:i+1,ariaLabel:m("ariaNext")}),s&&y.push({key:"last",modifier:"item--lastPage",disabled:i===n||n<=1,label:m("last"),value:n,ariaLabel:m("ariaLast")}),d.createElement("div",{className:C(nu("",!p&&"-noRefinement"),h)},d.createElement(t,Zc({},e,{cx:nu,items:y,onSelect:l,createURL:f,canRefine:p})))}}])&&Kc(t.prototype,e),r&&Kc(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),ou=(tu(j,"propTypes",{nbPages:F.number.isRequired,currentRefinement:F.number.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,canRefine:F.bool.isRequired,translate:F.func.isRequired,listComponent:F.func,showFirst:F.bool,showPrevious:F.bool,showNext:F.bool,showLast:F.bool,padding:F.number,totalPages:F.number,className:F.string}),tu(j,"defaultProps",{listComponent:E,showFirst:!0,showPrevious:!0,showNext:!0,showLast:!1,padding:3,totalPages:1/0,className:""}),r({previous:"‹",next:"›",first:"«",last:"»",page:function(e){return e.toString()},ariaPrevious:"Previous page",ariaNext:"Next page",ariaFirst:"First page",ariaLast:"Last page",ariaPage:function(e){return"Page ".concat(e.toString())}})(j)),Yn=Xn(function(e){return d.createElement(T,e,d.createElement(ou,e))},{$$widgetType:"ais.pagination"});function au(e){return(au="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 cu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,fu(n.key),n)}}function uu(e,t){return(uu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function su(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=lu(r),t=(e=n?(e=lu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===au(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function lu(e){return(lu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fu(e){e=function(e,t){if("object"!==au(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==au(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===au(e)?e:String(e)}var pu=N("PoweredBy"),mu=d.createElement("path",{fill:"#003DFF",d:"M249.5 64.2V1.4c0-.9-.7-1.5-1.6-1.4L236.2 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.6-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7ZM443.5 24.4h-11.8c-.8 0-1.4.6-1.4 1.4v62c0 .8.6 1.4 1.4 1.4h11.8c.8 0 1.4-.6 1.4-1.4v-62c0-.8-.6-1.4-1.4-1.4ZM431.7 16.6h11.8c.8 0 1.4-.6 1.4-1.3v-14c0-.8-.7-1.4-1.6-1.3L431.5 2a1.4 1.4 0 0 0-1.2 1.3v12c0 .8.6 1.4 1.4 1.4Zm-20.5 47.6V1.4c0-.9-.7-1.5-1.5-1.4L397.9 2a1.4 1.4 0 0 0-1.2 1.3V67c0 3 0 21.6 22.4 22.3a1.4 1.4 0 0 0 1.5-1.4v-9.5c0-.7-.5-1.3-1.2-1.4-8.2-.9-8.2-11-8.2-12.7Zm-30.7-31c-2.6-2.8-5.8-5-9.6-6.5a31.7 31.7 0 0 0-12-2.3c-4.5 0-8.5.7-12.2 2.3A27.9 27.9 0 0 0 331 43.5a39.6 39.6 0 0 0 0 26.3c1.5 4 3.6 7.5 6.2 10.3 2.6 2.9 5.8 5 9.5 6.7a38 38 0 0 0 12.2 2.4c2.8 0 8.6-.9 12.3-2.4a27 27 0 0 0 9.5-6.7 35.1 35.1 0 0 0 8.3-23c0-4.9-.8-9.6-2.4-13.6-1.5-4-3.5-7.4-6.1-10.2ZM370 71.5a13.1 13.1 0 0 1-11.2 5.6 13 13 0 0 1-11.2-5.6c-2.7-3.6-4-7.9-4-14.2 0-6.3 1.3-11.5 4-15.1a13 13 0 0 1 11.1-5.5 13 13 0 0 1 11.3 5.5c2.6 3.6 4 8.8 4 15 0 6.4-1.3 10.6-4 14.3Zm-161.6-47H197a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.9 45.9 18.8 18.8 0 0 0 11.2 3.1H191.2l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13Zm0 48.3a17.8 17.8 0 0 1-10.4 3.5h-.2a12.5 12.5 0 0 1-.7 0A18.4 18.4 0 0 1 180.4 51c2.7-6.8 9-11.6 16.6-11.6h11.5v33.3Zm289-48.3H486a32 32 0 0 0-27 15 33.8 33.8 0 0 0 8.8 45.9 18.8 18.8 0 0 0 11.3 3.1h1.1l.6-.2h.2a21 21 0 0 0 16.5-14.6V87c0 .8.6 1.4 1.4 1.4h11.7c.8 0 1.4-.6 1.4-1.4V25.8c0-.8-.6-1.4-1.4-1.4h-13.1Zm0 48.3a17.8 17.8 0 0 1-10.5 3.5h-.9A18.4 18.4 0 0 1 469.4 51c2.6-6.8 9-11.6 16.6-11.6h11.5v33.3ZM306.3 24.4h-11.5a32 32 0 0 0-27 15 33.7 33.7 0 0 0-5.1 14.6 34.6 34.6 0 0 0 0 7.6c1 8.9 5.4 16.7 11.8 22a19.5 19.5 0 0 0 2.2 1.7 18.8 18.8 0 0 0 21.6-.6c3.8-2.7 6.7-6.7 8-11.1V87.9c0 5-1.3 8.9-4 11.5-2.7 2.6-7.3 3.9-13.6 3.9-2.6 0-6.7-.2-10.9-.6a1.4 1.4 0 0 0-1.4 1l-3 10a1.4 1.4 0 0 0 1.1 1.8c5 .7 10 1 12.8 1 11.4 0 19.8-2.4 25.3-7.4 5-4.6 7.8-11.4 8.2-20.7V25.8c0-.8-.6-1.4-1.3-1.4h-13.2Zm0 15s.2 32.4 0 33.4a17.5 17.5 0 0 1-10 3.4h-.2a13.6 13.6 0 0 1-1.7 0A18.7 18.7 0 0 1 278.3 51c2.6-6.8 9-11.6 16.5-11.6h11.5ZM58.2 0A58.3 58.3 0 1 0 86 109.5c.9-.5 1-1.6.3-2.2l-5.5-4.9a3.8 3.8 0 0 0-4-.6A47 47 0 0 1 11 57.5 47.3 47.3 0 0 1 58.2 11h47.3v84L78.7 71.2a2 2 0 0 0-3 .3 22 22 0 1 1 4.4-15.2 4 4 0 0 0 1.3 2.6l7 6.2c.8.7 2 .3 2.3-.8a33 33 0 0 0-30.4-39 33 33 0 0 0-35 32 33.3 33.3 0 0 0 32.2 33.9 32.8 32.8 0 0 0 20-6.3l35.1 31c1.5 1.4 3.9.3 3.9-1.7V2.2a2.2 2.2 0 0 0-2.2-2.2h-56Z"}),hu=d.createElement(function(){return d.createElement("svg",{viewBox:"0 0 512 117",width:"118",height:"27",className:pu("logo")},mu)},null),yu=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&uu(t,e);var r,n=su(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.url,r=e.translate,e=e.className;return d.createElement("div",{className:C(pu(""),e)},d.createElement("span",{className:pu("text")},r("searchBy"))," ",d.createElement("a",{href:t,target:"_blank",className:pu("link"),"aria-label":"Algolia",rel:"noopener noreferrer"},hu))}}])&&cu(t.prototype,e),r&&cu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component);E=yu,j="propTypes",Xn={url:F.string.isRequired,translate:F.func.isRequired,className:F.string},(j=fu(j))in E?Object.defineProperty(E,j,{value:Xn,enumerable:!0,configurable:!0,writable:!0}):E[j]=Xn;E=ei(r({searchBy:"Search by"})(yu),{$$widgetType:"ais.poweredBy"});function du(e){return(du="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 bu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Ru(n.key),n)}}function vu(e,t){return(vu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function gu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=wu(r),t=(e=n?(e=wu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===du(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return xu(t)}}function xu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wu(e){return(wu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ou(e,t,r){(t=Ru(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Ru(e){e=function(e,t){if("object"!==du(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==du(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===du(e)?e:String(e)}var Pu=N("RangeInput"),j=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&vu(t,e);var r,n=gu(i);function i(e){var t;if(this instanceof i)return Ou(xu(t=n.call(this,e)),"onSubmit",function(e){e.preventDefault(),t.props.refine({min:t.state.from,max:t.state.to})}),t.state=t.normalizeStateForRendering(e),t;throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){!this.props.canRefine||e.currentRefinement.min===this.props.currentRefinement.min&&e.currentRefinement.max===this.props.currentRefinement.max||this.setState(this.normalizeStateForRendering(this.props))}},{key:"normalizeStateForRendering",value:function(e){var t=e.canRefine,r=e.min,n=e.max,e=e.currentRefinement,i=e.min,e=e.max;return{from:t&&void 0!==i&&i!==r?i:"",to:t&&void 0!==e&&e!==n?e:""}}},{key:"normalizeRangeForRendering",value:function(e){var t=e.canRefine,r=e.min,e=e.max,n=void 0!==r,i=void 0!==e;return{min:t&&n&&i?r:"",max:t&&n&&i?e:""}}},{key:"render",value:function(){var t=this,e=this.state,r=e.from,e=e.to,n=this.props,i=n.precision,o=n.translate,a=n.canRefine,n=n.className,c=this.normalizeRangeForRendering(this.props),u=c.min,c=c.max,i=1/Math.pow(10,i);return d.createElement("div",{className:C(Pu("",!a&&"-noRefinement"),n)},d.createElement("form",{className:Pu("form"),onSubmit:this.onSubmit},d.createElement("input",{className:Pu("input","input--min"),type:"number",min:u,max:c,value:r,step:i,placeholder:u,disabled:!a,onChange:function(e){return t.setState({from:e.currentTarget.value})}}),d.createElement("span",{className:Pu("separator")},o("separator")),d.createElement("input",{className:Pu("input","input--max"),type:"number",min:u,max:c,value:e,step:i,placeholder:c,disabled:!a,onChange:function(e){return t.setState({to:e.currentTarget.value})}}),d.createElement("button",{className:Pu("submit"),type:"submit"},o("submit"))))}}])&&bu(t.prototype,e),r&&bu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),Su=(Ou(j,"propTypes",{canRefine:F.bool.isRequired,precision:F.number.isRequired,translate:F.func.isRequired,refine:F.func.isRequired,min:F.number,max:F.number,currentRefinement:F.shape({min:F.number,max:F.number}),className:F.string}),Ou(j,"defaultProps",{currentRefinement:{},className:""}),r({submit:"ok",separator:"to"})(j)),Xn=si(function(e){return d.createElement(T,e,d.createElement(Su,e))},{$$widgetType:"ais.rangeInput"}),ju=d.createElement("div",null,"We do not provide any Slider, see the documentation to learn how to connect one easily:",d.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"},"https://www.algolia.com/doc/api-reference/widgets/range-slider/react/"));function Eu(e){return(Eu="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 Fu(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?Fu(Object(r),!0).forEach(function(e){ku(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fu(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function Cu(){return(Cu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Nu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Au(n.key),n)}}function Tu(e,t){return(Tu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Vu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Iu(r),t=(e=n?(e=Iu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Eu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function Iu(e){return(Iu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ku(e,t,r){(t=Au(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function Au(e){e=function(e,t){if("object"!==Eu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Eu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Eu(e)?e:String(e)}var k=N("RatingMenu"),Mu=d.createElement("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),Du=d.createElement("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"}),ei=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Tu(t,e);var r,n=Vu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"onClick",value:function(e,t,r){r.preventDefault(),r.stopPropagation(),e===this.props.currentRefinement.min&&t===this.props.currentRefinement.max?this.props.refine({min:this.props.min,max:this.props.max}):this.props.refine({min:e,max:t})}},{key:"buildItem",value:function(e){for(var t=e.max,r=e.lowerBound,n=e.count,i=e.translate,o=e.createURL,e=e.isLastSelectableItem,a=!n,c=this.props.currentRefinement.min<r,c=e&&c||!a&&r===this.props.currentRefinement.min&&t===this.props.currentRefinement.max,u=[],s=0,l=0;l<t;l++)l<r&&s++,u.push([d.createElement("svg",{key:l,className:k("starIcon",r<=l?"starIcon--empty":"starIcon--full"),"aria-hidden":"true",width:"24",height:"24"},d.createElement("use",{xlinkHref:"#".concat(k(r<=l?"starEmptySymbol":"starSymbol"))}))," "]);e=a||e&&c?{}:{href:o({min:r,max:t}),onClick:this.onClick.bind(this,r,t)};return d.createElement("li",{key:r,className:k("item",c&&"item--selected",a&&"item--disabled")},d.createElement("a",Cu({className:k("link"),"aria-label":"".concat(s).concat(i("ratingLabel"))},e),u,d.createElement("span",{className:k("label"),"aria-hidden":"true"},i("ratingLabel"))," ",d.createElement("span",{className:k("count")},n)))}},{key:"render",value:function(){var n=this,e=this.props,t=e.min,r=e.max,i=e.translate,o=e.count,a=e.createURL,c=e.canRefine,e=e.className,u=void 0!==t&&0<=t?t:1,s=void 0!==r&&0<=r?r:0,t=s-u+1,l=o.map(function(e){return _u(_u({},e),{},{value:parseFloat(e.value)})}).filter(function(e){return e.value>=u&&e.value<=s}),r=Ji({start:0,end:Math.max(t,0)}).map(function(t){return Ki(l,function(e){return e.value===s-t})||{value:s-t,count:0,total:0}}).reduce(function(e,t,r){return e.concat(_u(_u({},t),{},{total:0===r?t.count:e[r-1].total+t.count}))},[]).map(function(e,t,r){return n.buildItem({lowerBound:e.value,count:e.total,isLastSelectableItem:r.length-1===t,max:s,translate:i,createURL:a})});return d.createElement("div",{className:C(k("",!c&&"-noRefinement"),e)},d.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:{display:"none"}},d.createElement("symbol",{id:k("starSymbol"),viewBox:"0 0 24 24"},Mu),d.createElement("symbol",{id:k("starEmptySymbol"),viewBox:"0 0 24 24"},Du)),d.createElement("ul",{className:k("list",!c&&"list--noRefinement")},r))}}])&&Nu(t.prototype,e),r&&Nu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),qu=(ku(ei,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,createURL:F.func.isRequired,min:F.number,max:F.number,currentRefinement:F.shape({min:F.number,max:F.number}),count:F.arrayOf(F.shape({value:F.string,count:F.number})),canRefine:F.bool.isRequired,className:F.string}),ku(ei,"defaultProps",{className:""}),r({ratingLabel:" & Up"})(ei)),yu=si(function(e){return d.createElement(T,e,d.createElement(qu,e))},{$$widgetType:"ais.ratingMenu"});function Hu(e){return(Hu="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 Bu(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,zu(n.key),n)}}function Lu(e,t){return(Lu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function $u(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=Uu(r),t=(e=n?(e=Uu(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Hu(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Qu(t)}}function Qu(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Uu(e){return(Uu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Wu(e,t,r){(t=zu(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function zu(e){e=function(e,t){if("object"!==Hu(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Hu(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Hu(e)?e:String(e)}var Yu=N("RefinementList"),j=function(e){var t=c;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Lu(t,e);var r,a=$u(c);function c(){var n,e=this,t=c;if(!(e instanceof t))throw new TypeError("Cannot call a class as a function");for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Wu(Qu(n=a.call.apply(a,[this].concat(i))),"state",{query:""}),Wu(Qu(n),"selectItem",function(e,t){t(),n.props.refine(e.value)}),Wu(Qu(n),"renderItem",function(e,t){var r=n.props.isFromSearch?d.createElement(Da,{attribute:"label",hit:e}):e.label;return d.createElement("label",{className:Yu("label")},d.createElement("input",{className:Yu("checkbox"),type:"checkbox",checked:e.isRefined,onChange:function(){return n.selectItem(e,t)}}),d.createElement("span",{className:Yu("labelText")},r)," ",d.createElement("span",{className:Yu("count")},e.count.toLocaleString()))}),n}return t=c,(e=[{key:"render",value:function(){var e=this.props,t=e.translate,r=e.items,n=e.showMore,i=e.limit,o=e.showMoreLimit,a=e.isFromSearch,c=e.searchForItems,u=e.searchable,s=e.canRefine,e=e.className;return d.createElement(wa,{renderItem:this.renderItem,selectItem:this.selectItem,cx:Yu,translate:t,items:r,showMore:n,limit:i,showMoreLimit:o,isFromSearch:a,searchForItems:c,searchable:u,canRefine:s,className:e,query:this.state.query})}}])&&Bu(t.prototype,e),r&&Bu(t,r),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Component),Zu=(Wu(j,"propTypes",{translate:F.func.isRequired,refine:F.func.isRequired,searchForItems:F.func.isRequired,searchable:F.bool,createURL:F.func.isRequired,items:F.arrayOf(F.shape({label:F.string.isRequired,value:F.arrayOf(F.string).isRequired,count:F.number.isRequired,isRefined:F.bool.isRequired})),isFromSearch:F.bool.isRequired,canRefine:F.bool.isRequired,showMore:F.bool,limit:F.number,showMoreLimit:F.number,transformItems:F.func,className:F.string}),Wu(j,"defaultProps",{className:""}),r({showMore:function(e){return e?"Show less":"Show more"},noResults:"No results",submit:null,reset:null,resetTitle:"Clear the search query.",submitTitle:"Submit your search query.",placeholder:"Search here…"})(j)),ei=gi(function(e){return d.createElement(T,e,d.createElement(Zu,e))},{$$widgetType:"ais.refinementList"});function Ju(e){return(Ju="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 Ku(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,ts(n.key),n)}}function Gu(e,t){return(Gu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Xu(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=es(r),t=(e=n?(e=es(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===Ju(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function es(e){return(es=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ts(e){e=function(e,t){if("object"!==Ju(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==Ju(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===Ju(e)?e:String(e)}var rs=N("ScrollTo"),si=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Gu(t,e);var r,n=Xu(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"componentDidUpdate",value:function(e){var t=this.props,r=t.value,t=t.hasNotChanged;r!==e.value&&t&&this.el.scrollIntoView()}},{key:"render",value:function(){var t=this;return d.createElement("div",{ref:function(e){return t.el=e},className:rs("")},this.props.children)}}])&&Ku(t.prototype,e),r&&Ku(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),j=(j=si,gi="propTypes",as={value:F.any,children:F.node,hasNotChanged:F.bool},(gi=ts(gi))in j?Object.defineProperty(j,gi,{value:as,enumerable:!0,configurable:!0,writable:!0}):j[gi]=as,xi(si,{$$widgetType:"ais.scrollTo"})),gi=ji(fa,{$$widgetType:"ais.searchBox"});function ns(){return(ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r,n=arguments[t];for(r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function is(e){return e=e.isRelevantSorted,d.createElement("span",null,e?"See all results":"See relevant results")}var os=N("Snippet"),as=hn(function(e){return d.createElement(Na,ns({},e,{highlightProperty:"_snippetResult",cx:os}))},{$$widgetType:"ais.snippet"}),cs=N("RelevantSort"),xi=Ci(function(e){var t=e.className,t=void 0===t?"":t,r=e.isVirtualReplica,n=e.isRelevantSorted,i=e.buttonTextComponent,i=void 0===i?is:i,o=e.textComponent,a=e.refine;return r?d.createElement("div",{className:C(cs(""),t)},d.createElement("div",{className:cs("text")},o&&d.createElement(o,{isRelevantSorted:n})),d.createElement("button",{className:cs("button"),onClick:function(){return a(n?0:void 0)}},d.createElement(i,{isRelevantSorted:n}))):null},{$$widgetType:"ais.relevantSort"});function us(e){return(us="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 ss(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,hs(n.key),n)}}function ls(e,t){return(ls=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function fs(r){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}();return function(){var e,t=ps(r),t=(e=n?(e=ps(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments),this);if(e&&("object"===us(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}}function ps(e){return(ps=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ms(e,t,r){(t=hs(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r}function hs(e){e=function(e,t){if("object"!==us(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!==us(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(e,"string");return"symbol"===us(e)?e:String(e)}function ys(e){var t=e.currentRefinement,r=e.label,n=e.canRefine,i=e.refine,e=e.className;return d.createElement("div",{className:C(vs("",!n&&"-noRefinement"),e)},d.createElement("label",{className:vs("label")},d.createElement("input",{className:vs("checkbox"),type:"checkbox",checked:t,onChange:function(e){return i(e.target.checked)}}),d.createElement("span",{className:vs("labelText")},r)))}var ds=N("SortBy"),si=function(e){var t=i;if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ls(t,e);var r,n=fs(i);function i(){var e=this,t=i;if(e instanceof t)return n.apply(this,arguments);throw new TypeError("Cannot call a class as a function")}return t=i,(e=[{key:"render",value:function(){var e=this.props,t=e.id,r=e.items,n=e.currentRefinement,i=e.refine,e=e.className;return d.createElement("div",{className:C(ds(""),e)},d.createElement(Ya,{id:t,cx:ds,items:r,selectedItem:n,onSelect:i}))}}])&&ss(t.prototype,e),r&&ss(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(o.Component),ji=(ms(si,"propTypes",{id:F.string,items:F.arrayOf(F.shape({label:F.string,value:F.string.isRequired})).isRequired,currentRefinement:F.string.isRequired,refine:F.func.isRequired,className:F.string}),ms(si,"defaultProps",{className:""}),Mi(si,{$$widgetType:"ais.sortBy"})),bs=N("Stats"),hn=Di(r({stats:function(e,t,r,n){return(n&&e!==r?"".concat(r.toLocaleString()," relevant results sorted out of ").concat(e.toLocaleString()," found in "):"".concat(e.toLocaleString()," results found in ")).concat(t.toLocaleString(),"ms")}})(function(e){var t=e.className,t=void 0===t?"":t,r=e.areHitsSorted,n=e.nbHits,i=e.nbSortedHits,o=e.processingTimeMS,e=e.translate;return d.createElement("div",{className:C(bs(""),t)},d.createElement("span",{className:bs("text")},e("stats",n,o,i,r)))}),{$$widgetType:"ais.stats"}),vs=N("ToggleRefinement"),Ci=(ys.defaultProps={className:""},R(ys,{$$widgetType:"ais.toggleRefinement"})),gs=["children","className"];function xs(e,t){if(null==e)return{};var r,n=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],0<=t.indexOf(r)||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols)for(var i=Object.getOwnPropertySymbols(e),o=0;o<i.length;o++)r=i[o],0<=t.indexOf(r)||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r]);return n}var ws=N("DynamicWidgets");function Os(e){var t=e.children,r=e.className,e=xs(e,gs);return d.createElement("div",{className:C(ws(""),r)},d.createElement(cr,e,t))}F=Os;e.Breadcrumb=Do,e.ClearRefinements=Ao,e.Configure=te,e.CurrentRefinements=i,e.DynamicWidgets=Os,e.ExperimentalConfigureRelatedItems=w,e.ExperimentalDynamicWidgets=F,e.HierarchicalMenu=Xr,e.Highlight=Da,e.Hits=sa,e.HitsPerPage=V,e.Index=function(t){var r=t.indexName;return d.createElement(re,null,function(e){return d.createElement(vr,sr({contextValue:e,indexId:r},t))})},e.InfiniteHits=yn,e.InstantSearch=f,e.Menu=la,e.MenuSelect=mn,e.NumericMenu=_n,e.Pagination=Yn,e.Panel=co,e.PoweredBy=E,e.RangeInput=Xn,e.RangeSlider=function(){return ju},e.RatingMenu=yu,e.RefinementList=ei,e.RelevantSort=xi,e.ScrollTo=j,e.SearchBox=gi,e.Snippet=as,e.SortBy=ji,e.Stats=hn,e.ToggleRefinement=Ci,e.getInsightsAnonymousUserToken=function(){for(var e="_ALGOLIA",t="".concat(e,"="),r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}},Object.defineProperty(e,"__esModule",{value:!0})});
|
|
3
3
|
//# sourceMappingURL=Dom.min.js.map
|