diff --git a/view/frontend/web/js/lib/algolia-instantsearch.min.js b/view/frontend/web/js/lib/algolia-instantsearch.min.js index 6893dae1a..640c1503a 100644 --- a/view/frontend/web/js/lib/algolia-instantsearch.min.js +++ b/view/frontend/web/js/lib/algolia-instantsearch.min.js @@ -1,2 +1,2 @@ /*! InstantSearch.js 4.77.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).instantsearch=t()}(this,function(){"use strict";var a=0;function o(t,e){var n,r=Object.keys(t);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(t),e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),r.push.apply(r,n)),r}function T(t){for(var e=1;ee.length)&&(t=e.length);for(var n=0,r=new Array(t);n":">",'"':""","'":"'"},ee=/[&<>"']/g,te=RegExp(ee.source);var ne={"&":"&","<":"<",">":">",""":'"',"'":"'"},re=/&(amp|quot|lt|gt|#39);/g,ie=RegExp(re.source);function ae(e){return e&&ie.test(e)?e.replace(re,function(e){return ne[e]}):e}function se(e){if("object"===D(t=e)&&null!==t&&"[object Object]"===(null===(t=e)?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t))){var t;if(null===Object.getPrototypeOf(e))return 1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}}var O={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},u={highlightPreTag:"",highlightPostTag:""};function oe(e){return((e=e)&&te.test(e)?e.replace(ee,function(e){return G[e]}):e).replace(new RegExp(O.highlightPreTag,"g"),u.highlightPreTag).replace(new RegExp(O.highlightPostTag,"g"),u.highlightPostTag)}function ce(n){return se(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return T(T({},e),{},E({},t,ce(n[t])))},{}):Array.isArray(n)?n.map(ce):T(T({},n),{},{value:oe(n.value)})}function ue(e){return void 0===e.__escaped&&((e=e.map(function(e){e=g({},(V(e),e));return e._highlightResult&&(e._highlightResult=ce(e._highlightResult)),e._snippetResult&&(e._snippetResult=ce(e._snippetResult)),e})).__escaped=!0),e}function le(e){var t=u.highlightPreTag,n=u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function de(e){var h=e.instantSearchInstance,f=e.helper,m=e.attribute,p=e.widgetType;return function(){for(var e=arguments.length,t=new Array(e),n=0;n= 4.8.0 required."));u=ye(n.findAnswers,p),y(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(t){var n=this,e=t.state.query;e?(s=[],o=!0,y(T(T({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!1),r(u(e,l,T(T({},v),{},{nbHits:f,attributesForPrediction:d}))).then(function(e){e&&(g&&0t&&(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")},n.prototype.once=function(e,t){var n;if(ct(t))return n=!1,r.listener=t,this.on(e,r),this;throw TypeError("listener must be a function");function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}},n.prototype.removeListener=function(e,t){var n,r,i,a;if(!ct(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(n=this._events[e]).length,r=-1,n===t||ct(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ut(n)){for(a=i;0 "},_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)}};function jt(e){return Array.isArray(e)?e.filter(Boolean):[]}function kt(e,t){if(Array.isArray(e))for(var n=0;n=i.length)&&"desc"===i[n]?-r:r}return e.index-t.index}),e.map(function(e){return e.value})):[]},Ht=function(m){return function(e,t){function n(e,s,t){var n,o=e;if(0t.avgOfIndices?1:-1}).reduce(function(e,t){var n=v(r.reduce(function(e,t){return e.concat(t)},[]),function(e){return e.objectID===t.objectID});return n?e.concat(n):e},[])},pt="3.23.0",Zt=mt;function e(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.23.0)"),this.setClient(e);e=n||{};e.index=t,this.state=Lt.make(e),this.recommendState=new _t({params:e.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}function Yt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Xt(){return this.state.page}dt(e,ot),e.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},e.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},e.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},e.prototype.recommend=function(){return this._recommend(),this},e.prototype.getQuery=function(){var e=this.state;return It._getHitsSearchParams(e)},e.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,e=It._getQueries(n.index,n),r=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(e).then(function(e){return r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),{content:new zt(n,e.results),state:n,_originalResponse:e}},function(e){throw r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(null,new zt(n,e.results),n)}).catch(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(e,null,n)})},e.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var n=n.getModifiedState(t),t=yt({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:Rt(It._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),r="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(r);var i=this.client.initIndex(n.index);if("function"!=typeof i.findAnswers)throw new Error(r);return i.findAnswers(n.query,e.queryLanguages,t)},e.prototype.searchForFacetValues=function(t,e,n,r){var i,a,s,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,c="function"==typeof this.client.initIndex;if(o||c||"function"==typeof this.client.search)return i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(t),r=It.getSearchForFacetQuery(t,e,n,i),this._currentNbQueries++,s=this,n=o?this.client.searchForFacetValues([{indexName:i.index,params:r}]):c?this.client.initIndex(i.index).searchForFacetValues(r):(delete r.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:r}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),n.then(function(e){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=Zt(e.value),e.isRefined=a?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.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")},e.prototype.searchForCompositionFacetValues=function(t,e,n,r){if("function"!=typeof this.client.searchForFacetValues)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(t),s=(this._currentNbQueries++,this),r=this.client.searchForFacetValues({compositionID:i.index,facetName:t,searchForFacetValuesRequest:{params:{query:e,maxFacetHits:n,searchQuery:It._getCompositionHitsSearchParams(i)}}});return this.emit("searchForFacetValues",{state:i,facet:t,query:e}),r.then(function(e){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(e=e.results[0]).facetHits.forEach(function(e){e.escapedValue=Zt(e.value),e.isRefined=a?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),e})},e.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},e.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},e.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},e.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},e.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},e.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},e.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},e.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},e.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},e.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},e.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},e.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},e.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},e.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},e.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},e.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},e.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},e.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},e.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},e.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},e.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},e.prototype.setCurrentPage=Yt,e.prototype.setPage=Yt,e.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},e.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},e.prototype.setState=function(e){return this._change({state:Lt.make(e),isPageReset:!1}),this},e.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Lt(e),this},e.prototype.hasRefinements=function(e){return!!bt(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))},e.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},e.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},e.prototype.hasTag=function(e){return this.state.isTagRefined(e)},e.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},e.prototype.getIndex=function(){return this.state.index},e.prototype.getCurrentPage=Xt,e.prototype.getPage=Xt,e.prototype.getTags=function(){return this.state.tagRefinements},e.prototype.getRefinements=function(e){var n=[],r=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){n.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(r).forEach(function(e){var t=r[e];n.push({value:t,operator:e,type:"numeric"})}),n},e.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},e.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},e.prototype._search=function(e){var r=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=It._getQueries(r.index,r),i.push({state:r,queriesCount:t.length,helper:this}),this.emit("search",{state:r,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(r),n=t.index?It._getQueries(t.index,t):[];return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),n})),t=Array.prototype.concat.apply(t,e),e=this._queryId++;if(this._currentNbQueries++,!t.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,e));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})}},e.prototype._runComposition=function(){var r=this.state,i=[],e=this.derivedHelpers.map(function(e){var t=e.getModifiedState(r),n=It._getCompositionQueries(t);return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),n}),e=Array.prototype.concat.apply([],e),t=this._queryId++;if(this._currentNbQueries++,!e.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,t));if(1")}function on(n,r){return function(e){var t,e=e||{},a=e.hit,s=e.matchingPatterns,e=e.transformSearchParameters,e=void 0===e?function(e){return e}:e;if(!a)throw new Error(an("The `hit` option is required."));if(s)return t=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ie(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return sn({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[sn({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),e=T({},e(new R.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:t}))),T(T({},rn(n,r)({searchParameters:e})),{},{$$type:"ais.configureRelatedItems"});throw new Error(an("The `matchingPatterns` option is required."))}}function cn(u){var s=1=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,t={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.count&&(t.count=e.count),void 0!==e.exhaustive&&(t.exhaustive=e.exhaustive),t}function yn(c){var n=1 ":t,t=e.rootPath,r=void 0===t?null:t,t=e.showParentLevel,i=void 0===t||t,t=e.limit,a=void 0===t?10:t,t=e.showMore,h=void 0!==t&&t,t=e.showMoreLimit,s=void 0===t?20:t,t=e.sortBy,f=void 0===t?Sn:t,t=e.transformItems,m=void 0===t?function(e){return e}:t;if(!l||!Array.isArray(l)||0===l.length)throw new Error(Rn("The `attributes` option expects an array of strings."));if(!0===h&&s<=a)throw new Error(Rn("The `showMoreLimit` option must be greater than `limit`."));var p,g,v=k(l,1)[0],o=function(){};function y(){o()}var b=!1;function R(){return b?s:a}return{$$type:"ais.hierarchicalMenu",init:function(e){var t=e.instantSearchInstance;c(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t,n,r=e.instantSearchInstance;t=e,o=function(){b=!b,n.render(t)},c(T(T({},(n=this).getWidgetRenderState(e)),{},{instantSearchInstance:r}),!1)},dispose:function(e){e=e.state;return n(),e.removeHierarchicalFacet(v).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return T(T({},e),{},{hierarchicalMenu:T(T({},e.hierarchicalMenu),{},E({},v,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,n=this,r=e.results,i=e.state,a=e.createURL,s=e.instantSearchInstance,o=e.helper,e=[],c=!1;return p=p||de({instantSearchInstance:s,helper:o,attribute:function(e){e=e.split(d).length-1;return l[e]},widgetType:this.$$type}),g=g||function(e){p("click:internal",e),o.toggleFacetRefinement(v,e).search()},r&&(s=(s=r.getFacetValues(v,{sortBy:f,facetOrdering:f===Sn}))&&!Array.isArray(s)&&s.data?s.data:[],t=(i.maxValuesPerFacet||0)>R()?s.length<=R():s.lengthS()),c=v(e.slice(0,S()).map(function(e){var t=e.name,n=e.escapedValue;e.path;return T(T({},j(e,ur)),{},{label:t,value:n})}),{results:i})),{items:c,createURL:h,refine:f,sendEvent:d,canRefine:0="]&&t[">="][0]||"",t=t["<="]&&t["<="][0]||"",e=T(T({},e),{},{numericMenu:T(T({},e.numericMenu),{},E({},p,"".concat(n,":").concat(t)))}),n=p,e.numericMenu&&(":"===e.numericMenu[n]&&delete e.numericMenu[n],0===Object.keys(e.numericMenu).length)&&delete e.numericMenu,e)},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,t=t.numericMenu&&t.numericMenu[p],e=e.setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},p,{}))});return t?-1===t.indexOf(":")?e.addNumericRefinement(p,"=",Number(t)):(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],n=b(n)?e.addNumericRefinement(p,">=",n):e,b(t)?n.addNumericRefinement(p,"<=",t):n):e},getRenderState:function(e,t){return T(T({},e),{},{numericMenu:T(T({},e.numericMenu),{},E({},p,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,r,n,i=this,a=e.results,s=e.state,o=e.instantSearchInstance,c=e.helper,u=e.createURL,e=(m.refine||(m.refine=function(e){var t=pr(c.state,p,e);m.sendEvent("click:internal",e),c.setState(t).search()}),m.createURL||(m.createURL=function(n){return function(t){return u(function(e){return i.getWidgetUiState(e,{searchParameters:pr(n,p,t),helper:c})})}}),m.sendEvent||(m.sendEvent=(t={instantSearchInstance:o}.instantSearchInstance,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])})),!a||0===a.nbHits),o=(r=s,g.map(function(e){var t=e.start,n=e.end,e=e.label;return{label:e,value:encodeURI(JSON.stringify({start:t,end:n})),isRefined:mr(r,p,{start:t,end:n,label:e})}})),l=!0,d=function(e,t){var n,r,i,a,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=z(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o);try{for(d.s();!(n=d.n()).done;){var h=n.value;if(h.isRefined&&"{}"!==decodeURI(h.value)){l=!1;break}}}catch(e){d.e(e)}finally{d.f()}return{createURL:m.createURL(s),items:v(o,{results:a}),hasNoResults:e,canRefine:!(e&&l),refine:m.refine,sendEvent:m.sendEvent,widgetParams:f}}};throw new Error(fr("The `items` option expects an array of objects."))}}var fr=l({name:"numeric-menu",connector:!0});function mr(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?gr(r,"=",n.start):gr(r,">=",n.start)&&gr(r,"<=",n.end):void 0!==n.start?gr(r,">=",n.start):void 0!==n.end?gr(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function pr(e,t,n){var n=JSON.parse(decodeURI(n)),r=e.getNumericRefinements(t);if(void 0===n.start&&void 0===n.end)return e.removeNumericRefinement(t);if(mr(e,t,n)||(e=e.removeNumericRefinement(t)),void 0!==n.start&&void 0!==n.end){if(n.start>n.end)throw new Error("option.start should be > to option.end");if(n.start===n.end)return e=gr(r,"=",n.start)?e.removeNumericRefinement(t,"=",n.start):e.addNumericRefinement(t,"=",n.start)}return void 0!==n.start&&(e=(e=gr(r,">=",n.start)?e.removeNumericRefinement(t,">=",n.start):e).addNumericRefinement(t,">=",n.start)),"number"==typeof(e=void 0!==n.end?(e=gr(r,"<=",n.end)?e.removeNumericRefinement(t,"<=",n.end):e).addNumericRefinement(t,"<=",n.end):e).page&&(e.page=0),e}function gr(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function vr(n){var t=1=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),t}(),br=l({name:"pagination",connector:!0}),Rr=l({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function Sr(e){var t=e.min,n=e.max,e=e.precision,e=Math.pow(10,e);return{min:t&&Math.floor(t*e)/e,max:n&&Math.ceil(n*e)/e}}function _r(n){var r=1=")||[],1)[0],s=k(e.getNumericRefinement(u,"<=")||[],1)[0],o=void 0===n||""===n,c=void 0===r||""===r,n=Sr({min:o?void 0:parseFloat(n),max:c?void 0:parseFloat(r),precision:h}),r=n.min,n=n.max,o=b(l)||i!==r?b(l)&&o?l:r:void 0,r=b(d)||t!==n?b(d)&&c?d:n:void 0,c=void 0===o,n=b(i)&&i<=o,c=c||b(o)&&(!b(i)||n),i=void 0===r,n=b(r)&&r<=t,i=i||b(r)&&(!b(t)||n);return(a!==o||s!==r)&&c&&i?(e=e.removeNumericRefinement(u),b(o)&&(e=e.addNumericRefinement(u,">=",o)),(e=b(r)?e.addNumericRefinement(u,"<=",r):e).resetPage()):null};function f(n,r){return function(){var e=k(0=")||[],1)[0],i=k(i.getNumericRefinement(u,"<=")||[],1)[0],[b(s)?s:-1/0,b(i)?i:1/0]),i=f(r,n?a:{min:void 0,max:void 0});return{refine:i,canRefine:a.min!==a.max,format:c,range:a,sendEvent:(t=e,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}),widgetParams:T(T({},o),{},{precision:h}),start:s}},dispose:function(e){e=e.state;return r(),e.removeDisjunctiveFacet(u).removeNumericRefinement(u)},getWidgetUiState:function(e,t){var t=t.searchParameters.getNumericRefinements(u),n=t[">="],n=void 0===n?[]:n,t=t["<="],t=void 0===t?[]:t;return 0===n.length&&0===t.length?e:T(T({},e),{},{range:T(T({},e.range),{},E({},u,"".concat(n,":").concat(t)))})},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,e=e.addDisjunctiveFacet(u).setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},u,{}))}),t=(b(l)&&(e=e.addNumericRefinement(u,">=",l)),b(d)&&(e=e.addNumericRefinement(u,"<=",d)),t.range&&t.range[u]);return e=t&&-1!==t.indexOf(":")&&(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],b(n)&&(!b(l)||l=")).addNumericRefinement(u,">=",n)),b(t))&&(!b(d)||tm,d=p&&!w;return{createURL:function(t){return s(function(e){return r.getWidgetUiState(e,{searchParameters:a.resetPage().toggleFacetRefinement(f,t),helper:c})})},items:u,refine:R,searchForItems:o,isFromSearch:!1,canRefine:0="])&&t.length)return e[">="][0]},b=function(e){return function(e,t){v("click:internal",t),e.setState(s(e.state,t)).search()}.bind(null,e)},R=function(e){var n=e.state,r=e.createURL,i=e.getWidgetUiState,a=e.helper;return function(t){return r(function(e){return i(e,{searchParameters:s(n,t),helper:a})})}},{$$type:Hr,init:function(e){var t=e.instantSearchInstance;n(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return T(T({},e),{},{ratingMenu:T(T({},e.ratingMenu),{},E({},S,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var o,c,u,l,t,n=e.helper,r=e.results,i=e.state,a=e.instantSearchInstance,e=e.createURL,s=[],d=(v||(o=(a={instantSearchInstance:a,helper:n,getRefinedStar:function(){return y(n.state)},attribute:S}).instantSearchInstance,c=a.helper,u=a.getRefinedStar,l=a.attribute,v=function(){for(var e,t,n,r,i=arguments.length,a=new Array(i),s=0;s=").concat(e)]},attribute:l}))}),!1),h=0,f=null==r?void 0:r.getFacetValues(S,{});if(r&&f){f.length,t=0,f.forEach(function(e){e=k(e.name.split("."),2)[1];t=Math.max(t,(void 0===e?"":e).length)});for(var m=y(i),p=1;p<_;p+=1)(function(n){var e=m===n,t=(d=d||e,f.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=_}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0));if(h+=t,m&&!e&&0===t)return;var r=P(new Array(Math.floor(+_))).map(function(e,t){return+t=",t):e.setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},S,{}))})}};throw new Error(Mr("The `attribute` option is required."));function s(e,t){var n=y(e)===Number(t),e=e.resetPage().removeNumericRefinement(S);return n?e:e.addNumericRefinement(S,"<=",_).addNumericRefinement(S,">=",Number(t))}}}var kr=l({name:"related-products",connector:!0}),Or=l({name:"search-box",connector:!0}),Lr=l({name:"sort-by",connector:!0}),Mr=l({name:"rating-menu",connector:!0}),Hr="ais.ratingMenu";function Ar(r){var e=1 ":t,t=e.rootPath,a=void 0===t?null:t,t=e.transformItems,o=void 0===t?function(e){return e}:t;if(r&&Array.isArray(r)&&0!==r.length)return n=k(r,1)[0],{$$type:"ais.breadcrumb",init:function(e){u(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){u(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){l()},getRenderState:function(e,t){return T(T({},e),{},{breadcrumb:T(T({},e.breadcrumb),{},E({},n,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var n=this,r=e.helper,i=e.createURL,t=e.results,e=e.state;var a,e=t&&0!==e.hierarchicalFacets.length?(e=k(e.hierarchicalFacets,1)[0].name,e=(e=t.getFacetValues(e,{}))&&!Array.isArray(e)&&e.data?e.data:[],o((a=function n(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data))?e.concat(n(t.data)):e},[])}(e)).map(function(e,t){return{label:e.label,value:t+1===a.length?null:a[t+1].value}}),{results:t})):[];return d.createURL||(d.createURL=function(t){return i(function(e){return n.getWidgetUiState(e,{searchParameters:c(r.state,t),helper:r})})}),d.refine||(d.refine=function(e){r.setState(c(r.state,e)).search()}),{canRefine:0')).replace(new RegExp(u.highlightPostTag,"g"),""))}var gi=t("ReverseHighlight");function vi(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ie(r._highlightResult,t)||{}).value,t=void 0===r?"":r,r=gi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var yi=t("Snippet");function bi(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=yi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return t.replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var Ri=t("ReverseSnippet");function Si(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=Ri({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var _i="_ALGOLIA";function wi(){var e=_i;if("object"===("undefined"==typeof document?"undefined":D(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+$i[128|63&c]:c<55296||57344<=c?s+=$i[224|c>>12]+$i[128|c>>6&63]+$i[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=$i[240|c>>18]+$i[128|c>>12&63]+$i[128|c>>6&63]+$i[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Wi(e)){for(var n=[],r=0;r"===t?(r=1,""):t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),(s=(r=s)[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length?t:t[0]}.bind(L);function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ea(e,t){return e(t={exports:{}},t.exports),t.exports}var ja=Ta(Ea(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.__.length&&t.__.push({__V:us}),t.__[e]}function gs(e){os=1;var a,t=ws,n=void 0,s=ps(is++,2);return s.t=t,s.__c||(s.__=[n?n(e):ws(void 0,e),function(e){var t=(s.__N||s.__)[0],e=s.t(t,e);t!==e&&(s.__N=[e,s.__[1]],s.__c.setState({}))}],(s.__c=f).u)||(f.u=!0,a=f.shouldComponentUpdate,f.shouldComponentUpdate=function(e,t,n){var r,i;return!s.__c.__H||((r=s.__c.__H.__.filter(function(e){return e.__c})).every(function(e){return!e.__N})||(i=!1,r.forEach(function(e){var t;e.__N&&(t=e.__[0],e.__=e.__N,e.__N=void 0,t!==e.__[0])&&(i=!0)}),!!i))&&(!a||a.call(this,e,t,n))}),s.__N||s.__}function vs(e){return os=5,t=function(){return{current:e}},n=[],_s((r=ps(is++,7)).__H,n)?(r.__V=t(),r.i=n,r.__h=t,r.__V):r.__;var t,n,r}function ys(){for(var t;t=cs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Rs),t.__H.__h.forEach(Ss),t.__H.__h=[]}catch(e){t.__H.__h=[],I.__e(e,t.__v)}}I.__b=function(e){"function"!=typeof e.type||e.o||e.type===C?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),f=null,ls&&ls(e)},I.__r=function(e){ds&&ds(e),is=0;e=(f=e.__c).__H;e&&(as===f?(e.__h=[],f.__h=[],e.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=us,e.__N=e.i=void 0})):(e.__h.forEach(Rs),e.__h.forEach(Ss),e.__h=[])),as=f},I.diffed=function(e){hs&&hs(e);e=e.__c;e&&e.__H&&(!e.__H.__h.length||1!==cs.push(e)&&ss===I.requestAnimationFrame||((ss=I.requestAnimationFrame)||function(e){function t(){clearTimeout(r),bs&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);bs&&(n=requestAnimationFrame(t))})(ys),e.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==us&&(e.__=e.__V),e.i=void 0,e.__V=us})),as=f=null},I.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Rs),t.__h=t.__h.filter(function(e){return!e.__||Ss(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],I.__e(e,t.__v)}}),fs&&fs(e,n)},I.unmount=function(e){ms&&ms(e);var t,e=e.__c;e&&e.__H&&(e.__H.__.forEach(function(e){try{Rs(e)}catch(e){t=e}}),e.__H=void 0,t)&&I.__e(t,e.__v)};var bs="function"==typeof requestAnimationFrame;function Rs(e){var t=f,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),f=t}function Ss(e){var t=f;e.__c=e.__(),f=t}function _s(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function ws(e,t){return"function"==typeof t?t(e):t}Ps=(fi={createElement:L,Fragment:C}).createElement,Ns=fi.Fragment;var Ps,Ns,xs=function(e){var t=e.listRef,n=e.nextButtonRef,r=e.previousButtonRef,i=e.carouselIdRef,a=e.classNames,a=void 0===a?{}:a,s=e.itemComponent,o=void 0===s?$a({createElement:Ps,Fragment:Ns}):s,s=e.previousIconComponent,s=void 0===s?Va:s,c=e.nextIconComponent,c=void 0===c?Ka:c,u=e.items,l=e.translations,d=e.sendEvent,e=Aa(e,qa),l=function(t){for(var e=1;e=t.current.scrollWidth)},onKeyDown:function(e){"ArrowLeft"===e.key?(e.preventDefault(),f()):"ArrowRight"===e.key&&(e.preventDefault(),m())}},u.map(function(e,t){return Ps("li",{key:e.objectID,className:H(h.item),"aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(u.length),onClick:function(){d("click:internal",e,"Item Clicked")},onAuxClick:function(){d("click:internal",e,"Item Clicked")}},Ps(o,{item:e}))})),Ps("button",{ref:n,title:l.nextButtonTitle,"aria-label":l.nextButtonLabel,"aria-controls":i.current,className:H(h.navigation,h.navigationNext),onClick:function(e){e.preventDefault(),m()}},Ps(c,{createElement:Ps})))};function Is(e){var t={listRef:vs(null),nextButtonRef:vs(null),previousButtonRef:vs(null),carouselIdRef:vs("ais-Carousel-".concat(Qa++))};return L(xs,g({},t,e))}fi=Object.freeze({__proto__:null,carousel:function(){var e=0":7,"=":8,_v:9,"{":10,"&":11,_t:12},S.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l="",d=[],h=!1,f=0,m=0,p="{{",g="}}";function v(){0"==n.tag&&(n.indent=d[r].text.toString()),d.splice(r,1));else t||d.push({tag:"\n"});h=!1,m=d.length}for(t&&(t=t.split(" "),p=t[0],g=t[1]),f=0;f":a,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0},e=(S.walk(e.nodes,n),t.partials[a(e,t)]);e.subs=n.subs,e.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};S.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+i(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=o('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+n(e.n)+'("'+i(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=o('"'+i(e.text)+'"')},"{":s,"&":s},S.walk=function(e,t){for(var n,r=0,i=e.length;r/g,a=/\'/g,o=/\"/g,c=/[&<>\"\']/,d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}),ks=(Es.Template=js.Template,Es.template=Es.Template,Es),Os=(Fs=(js={createElement:L,Fragment:C}).createElement,Ts=js.Fragment,Cs={createElement:Fs,Fragment:Ts}.createElement,function(e){var r=e.parts,t=e.highlightedTagName,i=void 0===t?"mark":t,t=e.nonHighlightedTagName,a=void 0===t?"span":t,t=e.separator,s=void 0===t?", ":t,t=e.className,n=e.classNames,o=void 0===n?{}:n,n=Aa(e,Za);return Fs("span",ja({},n,{className:H(o.root,t)}),r.map(function(e,t){var n=t===r.length-1;return Fs(Ts,{key:t},e.map(function(e,t){return Fs(Ls,{key:t,classNames:o,highlightedTagName:i,nonHighlightedTagName:a,isHighlighted:e.isHighlighted},e.value)}),!n&&Fs("span",{className:o.separator},s))}))});function Ls(e){var t=e.classNames,n=e.children,r=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return Cs(i?r:e,{className:i?t.highlighted:t.nonHighlighted},n)}var Ms=["classNames"];function Hs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Ms);return L(Os,g({classNames:{root:H("ais-Highlight",t.root),highlighted:H("ais-Highlight-highlighted",t.highlighted),nonHighlighted:H("ais-Highlight-nonHighlighted",t.nonHighlighted),separator:H("ais-Highlight-separator",t.separator)}},e))}var As=["hit","attribute","cssClasses"];function Ds(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Hs,g({},j(e,As),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(ae(e.value||""))}),classNames:r}))}var Ws=["classNames"];function $s(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Ws);return L(Os,g({classNames:{root:H("ais-ReverseHighlight",t.root),highlighted:H("ais-ReverseHighlight-highlighted",t.highlighted),nonHighlighted:H("ais-ReverseHighlight-nonHighlighted",t.nonHighlighted),separator:H("ais-ReverseHighlight-separator",t.separator)}},e))}var Bs=["hit","attribute","cssClasses"],qs=["isHighlighted"];function Us(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L($s,g({},j(e,Bs),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return T(T({},j(e,qs)),{},{isHighlighted:!t})})}),classNames:r}))}var Qs=["classNames"];function Vs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Qs);return L(Os,g({classNames:{root:H("ais-ReverseSnippet",t.root),highlighted:H("ais-ReverseSnippet-highlighted",t.highlighted),nonHighlighted:H("ais-ReverseSnippet-nonHighlighted",t.nonHighlighted),separator:H("ais-ReverseSnippet-separator",t.separator)}},e))}var Ks=["hit","attribute","cssClasses"],zs=["isHighlighted"];function Js(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Vs,g({},j(e,Ks),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return T(T({},j(e,zs)),{},{isHighlighted:!t})})}),classNames:r}))}var Zs=["classNames"];function Ys(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Zs);return L(Os,g({classNames:{root:H("ais-Snippet",t.root),highlighted:H("ais-Snippet-highlighted",t.highlighted),nonHighlighted:H("ais-Snippet-nonHighlighted",t.nonHighlighted),separator:H("ais-Snippet-separator",t.separator)}},e))}var Xs=["hit","attribute","cssClasses"];function Gs(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Ys,g({},j(e,Xs),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(ae(e.value||""))}),classNames:r}))}function eo(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=e.bindEvent,e=e.sendEvent,t=t[n];if("string"!=typeof t&&"function"!=typeof t)throw new Error("Template must be 'string' or 'function', was '".concat(D(t),"' (key: ").concat(n,")"));return"function"==typeof t?((n=s||{}).html=Fa,n.sendEvent=e,n.components={Highlight:Ds,ReverseHighlight:Us,Snippet:Gs,ReverseSnippet:Js},t(a,n)):(s=function(e,t,n){var r=0"}},bo=l({name:"breadcrumb"}),Ro=t("Breadcrumb"),So=function(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,e=e.templateProps;return L("div",{className:r.root},L(S,g({},e,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:H(r.button,!t&&r.disabledButton),onClick:n,disabled:!t},data:{hasRefinements:t}})))},_o={resetLabel:function(){return"Clear refinements"}},wo=l({name:"clear-refinements"}),Po=t("ClearRefinements"),No=function(e){var t=e.items,a=e.cssClasses,e=e.canRefine;return L("div",{className:H(a.root,!e&&a.noRefinementRoot)},L("ul",{className:a.list},t.map(function(i,e){return L("li",{key:"".concat(i.indexName,"-").concat(i.attribute,"-").concat(e),className:a.item},L("span",{className:a.label},(e=i.label).toString().charAt(0).toUpperCase()+e.toString().slice(1),": "),i.refinements.map(function(e){return L("span",{key:(n=e.attribute,r=e.value,[n,e.type,r,e.operator].map(function(e){return e}).filter(Boolean).join(":")),className:a.category},L("span",{className:a.categoryLabel},"query"===e.attribute?L("q",null,e.label):e.label),L("button",{className:a.delete,type:"button",onClick:(t=i.refine.bind(null,e),function(e){He(e)||(e.preventDefault(),t())})},"✕"));var t,n,r}))})))},xo=l({name:"current-refinements"}),Io=t("CurrentRefinements"),Co=L("p",null,"Your custom HTML Marker"),Fo={HTMLMarker:function(){return Co},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},To=function(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,i=e.enableClearMapRefinement,a=e.isRefineOnMapMove,s=e.isRefinedWithMap,o=e.hasMapMoveSinceLastRefine,c=e.onRefineToggle,u=e.onRefineClick,l=e.onClearClick,e=e.templateProps;return L(C,null,n&&L("div",null,r&&L("div",{className:t.control},a||!o?L(mo,{classNameLabel:H(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},L(S,g({},e,{templateKey:"toggle",rootTagName:"span"}))):L(fo,{className:t.redo,disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&L("div",{className:t.control},L(fo,{className:H(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),i&&s&&L(fo,{className:t.reset,onClick:l},L(S,g({},e,{templateKey:"reset",rootTagName:"span"})))))},Eo=function(e){var t=e.refine,e=e.mapInstance;return t({northEast:e.getBounds().getNorthEast().toJSON(),southWest:e.getBounds().getSouthWest().toJSON()})},jo=function(e,r){return e.reduce(function(e,t){var e=k(e,2),n=e[0],e=e[1];return r.includes(t.__id)?[n.concat(t),e]:[n,e.concat(t)]},[[],[]])},ko=function(e,t){t=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:t.getNorthEast().toJSON(),southWest:t.getSouthWest().toJSON()}},Oo=function(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0},Lo=["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"],Mo=["item"],Ho=["item"],Ao=l({name:"geo-search"}),Do=t("GeoSearch"),js={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:w,onSubmit:w,onReset:w,refine:w},Wo=function(){q(i,Hn);var r=K(i);function i(){var a;W(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,e=e.max,n=(e-t)/34;return[t].concat(P(Ge({end:33}).map(function(e){return t+n*(e+1)})),[e])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,e=e.step;if(e)return[].concat(P(Ge({start:t,end:n,step:e})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,e=e.cssClasses,a=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,s=a.min,a=a.max,n=this.computeSnapPoints({min:s,max:a,step:n}),r=!1===r?[]:this.computeDefaultPitPoints({min:s,max:a});return L("div",{className:H(e.root,this.isDisabled&&e.disabledRoot)},L(cu,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:s,max:a,pitComponent:$c,pitPoints:r,snap:!0,snapPoints:n,values:this.isDisabled?[s,a]:i,disabled:this.isDisabled}))}}]),a}()),lu=l({name:"range-slider"}),du=t("RangeSlider");function hu(e){var t=e.children,n=e.count,r=e.value,i=e.url,e=e.cssClasses;return n?L("a",{className:H(e.link),"aria-label":"".concat(r," & up"),href:i},t):L("div",{className:H(e.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}var fu={item:function(e){var t=e.count,n=e.value,r=e.url,i=e.stars,a=e.cssClasses;return L(hu,{count:t,value:n,url:r,cssClasses:a},i.map(function(e,t){return L("svg",{key:t,className:H(a.starIcon,e?a.fullStarIcon:a.emptyStarIcon),"aria-hidden":"true",width:"24",height:"24"},L("use",{xlinkHref:e?"#ais-RatingMenu-starSymbol":"#ais-RatingMenu-starEmptySymbol"}))}),L("span",{"aria-hidden":"true",className:H(a.label)},"& Up"),t&&L("span",{className:H(a.count)},Ra(t)))}},mu=l({name:"rating-menu"}),m=t("RatingMenu"),pu=L("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"}),gu=L("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"}),vu=L("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"}),yu=L("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"}),bu=L("g",{fill:"none","fill-rule":"evenodd"},L("g",{transform:"translate(1 1)","stroke-width":"2"},L("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),L("path",{d:"M36 18c0-9.94-8.06-18-18-18"},L("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),Ru={reset:function(e){return L("svg",{className:e.cssClasses.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},vu)},submit:function(e){return L("svg",{className:e.cssClasses.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},yu)},loadingIndicator:function(e){return L("svg",{"aria-label":"Results are loading",className:e.cssClasses.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},bu)}},Su={item:function(e){var t=e.cssClasses,n=e.count,r=e.value,i=e.highlighted,a=e.isRefined,e=e.isFromSearch;return L("label",{className:H(t.label)},L("input",{type:"checkbox",className:H(t.checkbox),value:r,defaultChecked:a}),L("span",{className:H(t.labelText),dangerouslySetInnerHTML:e?{__html:i}:void 0},!e&&i),L("span",{className:H(t.count)},Ra(n)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}},_u=l({name:"refinement-list"}),wu=t("RefinementList"),Pu=t("SearchBox"),Nu=function(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?L("div",{className:t.root},L(S,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),L("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},L(S,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null},xu={text:function(){return""},button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},Iu=l({name:"relevant-sort"}),Cu=t("RelevantSort"),Fu=l({name:"search-box"}),Tu=t("SearchBox"),Eu=l({name:"sort-by"}),ju=t("SortBy"),ku=["nbHits","nbSortedHits","cssClasses","templateProps"],Ou=function(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,e=j(e,ku);return L("div",{className:H(r.root)},L(S,g({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:T({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?n.push("".concat(t,"=").concat(t,"_").concat(r[">="])):n.push("".concat(t,"=").concat(t,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))n.push("".concat(t,"=").concat(t,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))n.push("".concat(t,"=").concat(t,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i,a=[];for(i in r["="])r["="].hasOwnProperty(i)&&a.push(r["="][i]);n.push("".concat(t,"=").concat(t,"_").concat(a.join("-")))}}return n.join("&")},r=function(e){var t,n,r;null!==e&&(t=[],n=i(T(T(T({},e.state.disjunctiveFacetsRefinements),e.state.facetsRefinements),e.state.hierarchicalFacetsRefinements)),r=a(e.state.numericRefinements),""!==n&&t.push(n),""!==r&&t.push(r),n=t.join("&"),r="Query: ".concat(e.state.query||"",", ").concat(n),!0===p&&(r+=", Page: ".concat(e.state.page||0)),s!==r)&&(d(n,e.state,e.results),s=r)},c=!(s="")===(void 0===h||h)?!1:!0,t=function(){r(n)},u=function(){r(n)},{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===m&&(document.addEventListener("click",t),window.addEventListener("beforeunload",u))},render:function(e){var t=e.results,e=e.state;t&&(!0===c?c=!1:(n={results:t,state:e},o&&clearTimeout(o),o=window.setTimeout(function(){return r(n)},f)))},dispose:function(){!0===m&&(document.removeEventListener("click",t),window.removeEventListener("beforeunload",u))},getRenderState:function(e,t){return T(T({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}};throw new Error(go("The `pushFunction` option is required."))},breadcrumb:function(e){var t,s,o,c,u,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,l=e.transformItems,d=e.templates,d=void 0===d?{}:d,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(Ro(),e.root),noRefinementRoot:H(Ro({modifierName:"noRefinement"}),e.noRefinementRoot),list:H(Ro({descendantName:"list"}),e.list),item:H(Ro({descendantName:"item"}),e.item),selectedItem:H(Ro({descendantName:"item",modifierName:"selected"}),e.selectedItem),separator:H(Ro({descendantName:"separator"}),e.separator),link:H(Ro({descendantName:"link"}),e.link)},s=(e={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,o=e.cssClasses,c=e.renderState,u=e.templates,T(T({},$r(function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,e=e.refine;t?c.templateProps=A({defaultTemplates:yo,templatesConfig:i.templatesConfig,templates:u}):M(L(vo,{canRefine:n,cssClasses:o,createURL:r,items:a,refine:e,templateProps:c.templateProps}),s)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,transformItems:l})),{},{$$widgetType:"ais.breadcrumb"});throw new Error(bo("The `container` option is required."))},clearRefinements:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,c=e.includedAttributes,u=e.excludedAttributes,l=e.transformItems,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(Po(),e.root),button:H(Po({descendantName:"button"}),e.button),disabledButton:H(Po({descendantName:"button",modifierName:"disabled"}),e.disabledButton)},i=(e={containerNode:t,cssClasses:n,renderState:{},templates:r}).containerNode,a=e.cssClasses,s=e.renderState,o=e.templates,T(T({},un(function(e,t){var n=e.refine,r=e.canRefine,e=e.instantSearchInstance;t?s.templateProps=A({defaultTemplates:_o,templatesConfig:e.templatesConfig,templates:o}):M(L(So,{refine:n,cssClasses:a,hasRefinements:r,templateProps:s.templateProps}),i)},function(){return M(null,t)})({includedAttributes:c,excludedAttributes:u,transformItems:l})),{},{$$widgetType:"ais.clearRefinements"});throw new Error(wo("The `container` option is required."))},configure:function(e){return T(T({},rn(w)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t,e=e||{},n=e.container,r=e.includedAttributes,i=e.excludedAttributes,a=e.cssClasses,a=void 0===a?{}:a,e=e.transformItems;if(n)return t=x(n),n={root:H(Io(),a.root),noRefinementRoot:H(Io({modifierName:"noRefinement"}),a.noRefinementRoot),list:H(Io({descendantName:"list"}),a.list),item:H(Io({descendantName:"item"}),a.item),label:H(Io({descendantName:"label"}),a.label),category:H(Io({descendantName:"category"}),a.category),categoryLabel:H(Io({descendantName:"categoryLabel"}),a.categoryLabel),delete:H(Io({descendantName:"delete"}),a.delete)},T(T({},hn(ho,function(){return M(null,t)})({container:t,cssClasses:n,includedAttributes:r,excludedAttributes:i,transformItems:e})),{},{$$widgetType:"ais.currentRefinements"});throw new Error(xo("The `container` option is required."))},geoSearch:function(e){var t,n,r,i,a,u,e=e||{},s=e.initialZoom,s=void 0===s?1:s,o=e.initialPosition,o=void 0===o?{lat:0,lng:0}:o,c=e.templates,c=void 0===c?{}:c,l=e.cssClasses,l=void 0===l?{}:l,d=e.builtInMarker,d=void 0===d?{}:d,h=e.customHTMLMarker,f=e.enableRefine,f=void 0===f||f,m=e.enableClearMapRefinement,m=void 0===m||m,p=e.enableRefineControl,p=void 0===p||p,g=e.container,v=e.googleReference,e=j(e,Lo);if(!g)throw new Error(Ao("The `container` option is required."));if(v)return t=x(g),g={root:H(Do(),l.root),tree:Do({descendantName:"tree"}),map:H(Do({descendantName:"map"}),l.map),control:H(Do({descendantName:"control"}),l.control),label:H(Do({descendantName:"label"}),l.label),selectedLabel:H(Do({descendantName:"label",modifierName:"selected"}),l.selectedLabel),input:H(Do({descendantName:"input"}),l.input),redo:H(Do({descendantName:"redo"}),l.redo),disabledRedo:H(Do({descendantName:"redo",modifierName:"disabled"}),l.disabledRedo),reset:H(Do({descendantName:"reset"}),l.reset)},n=T(T({},Fo),c),r=T(T({},{createOptions:function(){return{}},events:{}}),d),i=(Boolean(h)||Boolean(c.HTMLMarker))&&T(T({},{createOptions:function(){return{}},events:{}}),h),u=v,a=function(){q(c,u.maps.OverlayView);var o=K(c);function c(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,e=e.anchor,e=void 0===e?{x:0,y:0}:e;return W(this,c),E(y(t=o.call(this)),"__id",void 0),E(y(t),"anchor",void 0),E(y(t),"offset",void 0),E(y(t),"listeners",void 0),E(y(t),"latLng",void 0),E(y(t),"element",void 0),t.__id=n,t.anchor=e,t.listeners={},t.latLng=new u.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===D(a)?M(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return B(c,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var t=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(e){t.element.removeEventListener(e,t.listeners[e])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),c}(),l=i?function(e){var t=e.item,e=j(e,Ho);return new a(T(T(T({},i.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc,className:H(Do({descendantName:"marker"})),template:eo({templateKey:"HTMLMarker",templates:n,data:t})}))}:function(e){var t=e.item,e=j(e,Mo);return new v.maps.Marker(T(T(T({},r.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc}))},d=i||r,T(T({},Zr(po,function(){return M(null,t)})(T(T({},e),{},{templates:n,renderState:{},container:t,googleReference:v,initialZoom:s,initialPosition:o,cssClasses:g,createMarker:l,markerOptions:d,enableRefine:f,enableClearMapRefinement:m,enableRefineControl:p}))),{},{$$widgetType:"ais.geoSearch"});throw new Error(Ao("The `googleReference` option is required."))},hierarchicalMenu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,s=e.showParentLevel,o=e.limit,f=e.showMore,f=void 0!==f&&f,m=e.showMoreLimit,p=e.sortBy,g=e.transformItems,v=e.templates,v=void 0===v?{}:v,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(_(),e.root),noRefinementRoot:H(_({modifierName:"noRefinement"}),e.noRefinementRoot),list:H(_({descendantName:"list"}),e.list),childList:H(_({descendantName:"list",modifierName:"child"}),e.childList),item:H(_({descendantName:"item"}),e.item),selectedItem:H(_({descendantName:"item",modifierName:"selected"}),e.selectedItem),parentItem:H(_({descendantName:"item",modifierName:"parent"}),e.parentItem),link:H(_({descendantName:"link"}),e.link),selectedItemLink:H(_({descendantName:"link",modifierName:"selected"}),e.selectedItemLink),label:H(_({descendantName:"label"}),e.label),count:H(_({descendantName:"count"}),e.count),showMore:H(_({descendantName:"showMore"}),e.showMore),disabledShowMore:H(_({descendantName:"showMore",modifierName:"disabled"}),e.disabledShowMore)},c=(e={cssClasses:n,containerNode:t,templates:v,showMore:f,renderState:{}}).cssClasses,u=e.containerNode,l=e.showMore,d=e.templates,h=e.renderState,T(T({},yn(function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?h.templateProps=A({defaultTemplates:Ko,templatesConfig:a.templatesConfig,templates:d}):M(L(Vo,{createURL:n,cssClasses:c,facetValues:r,templateProps:h.templateProps,toggleRefinement:i,showMore:l,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),u)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:f,showMoreLimit:m,sortBy:p,transformItems:g})),{},{$$widgetType:"ais.hierarchicalMenu"});throw new Error(zo("The `container` option is required."))},hits:function(e){var t,u,l,d,h,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),u=(n={containerNode:t,cssClasses:e,renderState:{},templates:a}).renderState,l=n.cssClasses,d=n.containerNode,h=n.templates,T(T({},Nn(_n)(function(e,t){var i,n=e.items,r=e.results,a=e.instantSearchInstance,s=e.insights,o=e.bindEvent,c=e.sendEvent,e=e.banner;t?u.templateProps=A({defaultTemplates:Jo,templatesConfig:a.templatesConfig,templates:h}):(i=Xn({insights:s,sendEvent:c}),M(L(Xo,{hits:n,itemComponent:function(e){var t=e.hit,n=e.index,r=j(e,Zo);return L(S,g({},u.templateProps,{templateKey:"item",rootTagName:"li",rootProps:T(T({},r),{},{onClick:function(e){i(e),r.onClick()},onAuxClick:function(e){i(e),r.onAuxClick()}}),data:T(T({},t),{},{get __hitIndex(){return n}}),bindEvent:o,sendEvent:c}))},sendEvent:c,classNames:l,emptyComponent:function(e){e=g({},(V(e),e));return L(S,g({},u.templateProps,{rootProps:e,templateKey:"empty",data:r,rootTagName:"fragment"}))},banner:e,bannerComponent:h.banner?function(e){return L(S,g({},u.templateProps,{templateKey:"banner",data:e,rootTagName:"fragment"}))}:void 0}),d))},function(){return M(null,t)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"});throw new Error(Yo("The `container` option is required."))},hitsPerPage:function(e){var t,r,i,e=e||{},n=e.container,a=e.items,s=e.cssClasses,s=void 0===s?{}:s,e=e.transformItems;if(n)return t=x(n),n={root:H(rc(),s.root),select:H(rc({descendantName:"select"}),s.select),option:H(rc({descendantName:"option"}),s.option)},r=(s={containerNode:t,cssClasses:n}).containerNode,i=s.cssClasses,T(T({},er(function(e,t){var n=e.items,e=e.refine;t||(t=(_e(n,function(e){return e.isRefined})||{}).value,M(L("div",{className:i.root},L(ec,{cssClasses:i,currentValue:t,options:n,setValue:e})),r))},function(){return M(null,t)})({items:a,transformItems:e})),{},{$$widgetType:"ais.hitsPerPage"});throw new Error(nc("The `container` option is required."))},index:ya,infiniteHits:function(e){var t,h,f,m,p,g,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,s=e.cssClasses,s=void 0===s?{}:s,o=e.showPrevious,e=e.cache;if(n)return t=x(n),n={root:H(oc(),s.root),emptyRoot:H(oc({modifierName:"empty"}),s.emptyRoot),item:H(oc({descendantName:"item"}),s.item),list:H(oc({descendantName:"list"}),s.list),loadPrevious:H(oc({descendantName:"loadPrevious"}),s.loadPrevious),disabledLoadPrevious:H(oc({descendantName:"loadPrevious",modifierName:"disabled"}),s.disabledLoadPrevious),loadMore:H(oc({descendantName:"loadMore"}),s.loadMore),disabledLoadMore:H(oc({descendantName:"loadMore",modifierName:"disabled"}),s.disabledLoadMore),bannerRoot:H(oc({descendantName:"banner"}),s.bannerRoot),bannerImage:H(oc({descendantName:"banner-image"}),s.bannerImage),bannerLink:H(oc({descendantName:"banner-link"}),s.bannerLink)},h=(s={containerNode:t,cssClasses:n,templates:a,showPrevious:o,renderState:{}}).containerNode,f=s.cssClasses,m=s.renderState,p=s.templates,g=s.showPrevious,T(T({},Nn(or)(function(e,t){var n=e.items,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent,d=e.sendEvent,e=e.banner;t?m.templateProps=A({defaultTemplates:ac,templatesConfig:c.templatesConfig,templates:p}):M(L(ic,{cssClasses:f,hits:n,results:r,hasShowPrevious:g,showPrevious:a,showMore:i,templateProps:m.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:d,bindEvent:l,banner:e}),h)},function(){return M(null,t)})({escapeHTML:r,transformItems:i,showPrevious:o,cache:e})),{},{$$widgetType:"ais.infiniteHits"});throw new Error(sc("The `container` option is required."))},menu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attribute,i=e.sortBy,a=e.limit,s=e.showMore,o=e.showMoreLimit,f=e.cssClasses,f=void 0===f?{}:f,m=e.templates,m=void 0===m?{}:m,e=e.transformItems;if(n)return t=x(n),n={root:H(lc(),f.root),noRefinementRoot:H(lc({modifierName:"noRefinement"}),f.noRefinementRoot),list:H(lc({descendantName:"list"}),f.list),item:H(lc({descendantName:"item"}),f.item),selectedItem:H(lc({descendantName:"item",modifierName:"selected"}),f.selectedItem),link:H(lc({descendantName:"link"}),f.link),label:H(lc({descendantName:"label"}),f.label),count:H(lc({descendantName:"count"}),f.count),showMore:H(lc({descendantName:"showMore"}),f.showMore),disabledShowMore:H(lc({descendantName:"showMore",modifierName:"disabled"}),f.disabledShowMore)},c=(f={containerNode:t,cssClasses:n,renderState:{},templates:m,showMore:s}).containerNode,u=f.cssClasses,l=f.renderState,d=f.templates,h=f.showMore,T(T({},cr(function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?l.templateProps=A({defaultTemplates:cc,templatesConfig:a.templatesConfig,templates:d}):(t=r.map(function(e){return T(T({},e),{},{url:i(e.value)})}),M(L(Vo,{createURL:i,cssClasses:u,facetValues:t,showMore:h,templateProps:l.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),c))},function(){return M(null,t)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:e})),{},{$$widgetType:"ais.menu"});throw new Error(uc("The `container` option is required."))},menuSelect:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.attribute,c=e.sortBy,c=void 0===c?["name:asc"]:c,u=e.limit,u=void 0===u?10:u,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=x(n),n={root:H(mc(),l.root),noRefinementRoot:H(mc({modifierName:"noRefinement"}),l.noRefinementRoot),select:H(mc({descendantName:"select"}),l.select),option:H(mc({descendantName:"option"}),l.option)},i=(l={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,a=l.cssClasses,s=l.renderState,o=l.templates,T(T({},cr(function(e,t){var n=e.refine,r=e.items,e=e.instantSearchInstance;t?s.templateProps=A({defaultTemplates:hc,templatesConfig:e.templatesConfig,templates:o}):M(L(dc,{cssClasses:a,items:r,refine:n,templateProps:s.templateProps}),i)},function(){return M(null,t)})({attribute:r,limit:u,sortBy:c,transformItems:e})),{},{$$widgetType:"ais.menuSelect"});throw new Error(fc("The `container` option is required."))},numericMenu:function(e){var t,a,s,o,c,u,e=e||{},n=e.container,r=e.attribute,i=e.items,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=x(n),n={root:H(vc(),l.root),noRefinementRoot:H(vc({modifierName:"noRefinement"}),l.noRefinementRoot),list:H(vc({descendantName:"list"}),l.list),item:H(vc({descendantName:"item"}),l.item),selectedItem:H(vc({descendantName:"item",modifierName:"selected"}),l.selectedItem),label:H(vc({descendantName:"label"}),l.label),radio:H(vc({descendantName:"radio"}),l.radio),labelText:H(vc({descendantName:"labelText"}),l.labelText)},a=(l={containerNode:t,attribute:r,cssClasses:n,renderState:{},templates:d}).containerNode,s=l.attribute,o=l.cssClasses,c=l.renderState,u=l.templates,T(T({},hr(function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,e=e.items;t?c.templateProps=A({defaultTemplates:pc,templatesConfig:r.templatesConfig,templates:u}):M(L(Vo,{createURL:n,cssClasses:o,facetValues:e,templateProps:c.templateProps,toggleRefinement:i,attribute:s}),a)},function(){return M(null,t)})({attribute:r,items:i,transformItems:e})),{},{$$widgetType:"ais.numericMenu"});throw new Error(gc("The `container` option is required."))},pagination:function(e){var t,u,l,d,h,f,m,p,g,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,i=e.cssClasses,i=void 0===i?{}:i,a=e.totalPages,s=e.padding,o=e.showFirst,o=void 0===o||o,c=e.showLast,c=void 0===c||c,v=e.showPrevious,v=void 0===v||v,y=e.showNext,y=void 0===y||y,e=e.scrollTo,e=void 0===e?"body":e;if(n)return t=x(n),e=!1!==(n=!0===e?"body":e)&&x(n),n={root:H(Rc(),i.root),noRefinementRoot:H(Rc({modifierName:"noRefinement"}),i.noRefinementRoot),list:H(Rc({descendantName:"list"}),i.list),item:H(Rc({descendantName:"item"}),i.item),firstPageItem:H(Rc({descendantName:"item",modifierName:"firstPage"}),i.firstPageItem),lastPageItem:H(Rc({descendantName:"item",modifierName:"lastPage"}),i.lastPageItem),previousPageItem:H(Rc({descendantName:"item",modifierName:"previousPage"}),i.previousPageItem),nextPageItem:H(Rc({descendantName:"item",modifierName:"nextPage"}),i.nextPageItem),pageItem:H(Rc({descendantName:"item",modifierName:"page"}),i.pageItem),selectedItem:H(Rc({descendantName:"item",modifierName:"selected"}),i.selectedItem),disabledItem:H(Rc({descendantName:"item",modifierName:"disabled"}),i.disabledItem),link:H(Rc({descendantName:"link"}),i.link)},i=T(T({},_c),r),u=(r={containerNode:t,cssClasses:n,templates:i,showFirst:o,showLast:c,showPrevious:v,showNext:y,scrollToNode:e}).containerNode,l=r.cssClasses,d=r.templates,h=r.showFirst,f=r.showLast,m=r.showPrevious,p=r.showNext,g=r.scrollToNode,T(T({},vr(function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbPages,a=e.pages,s=e.isFirstPage,o=e.isLastPage,c=e.refine;t||M(L(yc,{createURL:n,cssClasses:l,currentPage:r,templates:d,nbPages:i,pages:a,isFirstPage:s,isLastPage:o,setCurrentPage:function(e){c(e),!1!==g&&g.scrollIntoView()},showFirst:h,showLast:f,showPrevious:m,showNext:p}),u)},function(){return M(null,t)})({totalPages:a,padding:s})),{},{$$widgetType:"ais.pagination"});throw new Error(Sc("The `container` option is required."))},panel:function(e){var e=e||{},t=e.templates,r=void 0===t?{}:t,t=e.hidden,d=void 0===t?function(){return!1}:t,t=e.collapsed,e=e.cssClasses,e=void 0===e?{}:e,h=document.createElement("div"),f=Boolean(t),m="function"==typeof t?t:function(){return!1},p={root:H(Ic(),e.root),noRefinementRoot:H(Ic({modifierName:"noRefinement"}),e.noRefinementRoot),collapsibleRoot:H(Ic({modifierName:"collapsible"}),e.collapsibleRoot),collapsedRoot:H(Ic({modifierName:"collapsed"}),e.collapsedRoot),collapseButton:H(Ic({descendantName:"collapseButton"}),e.collapseButton),collapseIcon:H(Ic({descendantName:"collapseIcon"}),e.collapseIcon),body:H(Ic({descendantName:"body"}),e.body),header:H(Ic({descendantName:"header"}),e.header),footer:H(Ic({descendantName:"footer"}),e.footer)};return function(n){return function(e){var i,a,t,s,o,c,u,l;if(e&&e.container)return i=x(e.container),t={containerNode:i,bodyContainerNode:h,cssClasses:p,templates:T(T({},{collapseButtonText:function(e){e=e.collapsed;return'\n \n ')}}),r)},s=t.containerNode,o=t.bodyContainerNode,c=t.cssClasses,u=t.templates,a=function(e){var t=e.options,n=e.hidden,r=e.collapsible,e=e.collapsed;M(L(wc,{cssClasses:c,hidden:n,collapsible:r,isCollapsed:e,templates:u,data:t,bodyElement:o}),s)},l=n(T(T({},e),{},{container:h})),T(T({},l),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n":">",'"':""","'":"'"},ee=/[&<>"']/g,te=RegExp(ee.source);var ne={"&":"&","<":"<",">":">",""":'"',"'":"'"},re=/&(amp|quot|lt|gt|#39);/g,ie=RegExp(re.source);function ae(e){return e&&ie.test(e)?e.replace(re,function(e){return ne[e]}):e}function se(e){if("object"===D(t=e)&&null!==t&&"[object Object]"===(null===(t=e)?void 0===t?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t))){var t;if(null===Object.getPrototypeOf(e))return 1;for(var n=e;null!==Object.getPrototypeOf(n);)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n}}var O={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},u={highlightPreTag:"",highlightPostTag:""};function oe(e){return((e=e)&&te.test(e)?e.replace(ee,function(e){return G[e]}):e).replace(new RegExp(O.highlightPreTag,"g"),u.highlightPreTag).replace(new RegExp(O.highlightPostTag,"g"),u.highlightPostTag)}function ce(n){return se(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return T(T({},e),{},E({},t,ce(n[t])))},{}):Array.isArray(n)?n.map(ce):T(T({},n),{},{value:oe(n.value)})}function ue(e){return void 0===e.__escaped&&((e=e.map(function(e){e=g({},(V(e),e));return e._highlightResult&&(e._highlightResult=ce(e._highlightResult)),e._snippetResult&&(e._snippetResult=ce(e._snippetResult)),e})).__escaped=!0),e}function le(e){var t=u.highlightPreTag,n=u.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function de(e){var h=e.instantSearchInstance,f=e.helper,m=e.attribute,p=e.widgetType;return function(){for(var e=arguments.length,t=new Array(e),n=0;n= 4.8.0 required."));u=ye(n.findAnswers,p),y(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(t){var n=this,e=t.state.query;e?(s=[],o=!0,y(T(T({},this.getWidgetRenderState(t)),{},{instantSearchInstance:t.instantSearchInstance}),!1),r(u(e,l,T(T({},v),{},{nbHits:f,attributesForPrediction:d}))).then(function(e){e&&(g&&0t&&(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")},n.prototype.once=function(e,t){var n;if(ct(t))return n=!1,r.listener=t,this.on(e,r),this;throw TypeError("listener must be a function");function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}},n.prototype.removeListener=function(e,t){var n,r,i,a;if(!ct(t))throw TypeError("listener must be a function");if(this._events&&this._events[e])if(i=(n=this._events[e]).length,r=-1,n===t||ct(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ut(n)){for(a=i;0 "},_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)}};function jt(e){return Array.isArray(e)?e.filter(Boolean):[]}function kt(e,t){if(Array.isArray(e))for(var n=0;n=i.length)&&"desc"===i[n]?-r:r}return e.index-t.index}),e.map(function(e){return e.value})):[]},Ht=function(m){return function(e,t){function n(e,s,t){var n,o=e;if(0t.avgOfIndices?1:-1}).reduce(function(e,t){var n=v(r.reduce(function(e,t){return e.concat(t)},[]),function(e){return e.objectID===t.objectID});return n?e.concat(n):e},[])},pt="3.23.0",Zt=mt;function e(e,t,n,r){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper (3.23.0)"),this.setClient(e);e=n||{};e.index=t,this.state=Lt.make(e),this.recommendState=new _t({params:e.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=r,this._recommendCache={}}function Yt(e){if(e<0)throw new Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function Xt(){return this.state.page}dt(e,ot),e.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},e.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},e.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},e.prototype.recommend=function(){return this._recommend(),this},e.prototype.getQuery=function(){var e=this.state;return It._getHitsSearchParams(e)},e.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,e=It._getQueries(n.index,n),r=this;if(this._currentNbQueries++,this.emit("searchOnce",{state:n}),!t)return this.client.search(e).then(function(e){return r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),{content:new zt(n,e.results),state:n,_originalResponse:e}},function(e){throw r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),e});this.client.search(e).then(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(null,new zt(n,e.results),n)}).catch(function(e){r._currentNbQueries--,0===r._currentNbQueries&&r.emit("searchQueueEmpty"),t(e,null,n)})},e.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,n=this.derivedHelpers[0];if(!n)return Promise.resolve([]);var n=n.getModifiedState(t),t=yt({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:Rt(It._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),r="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(r);var i=this.client.initIndex(n.index);if("function"!=typeof i.findAnswers)throw new Error(r);return i.findAnswers(n.query,e.queryLanguages,t)},e.prototype.searchForFacetValues=function(t,e,n,r){var i,a,s,o="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,c="function"==typeof this.client.initIndex;if(o||c||"function"==typeof this.client.search)return i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(t),r=It.getSearchForFacetQuery(t,e,n,i),this._currentNbQueries++,s=this,n=o?this.client.searchForFacetValues([{indexName:i.index,params:r}]):c?this.client.initIndex(i.index).searchForFacetValues(r):(delete r.facetName,this.client.search([{type:"facet",facet:t,indexName:i.index,params:r}]).then(function(e){return e.results[0]})),this.emit("searchForFacetValues",{state:i,facet:t,query:e}),n.then(function(e){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits.forEach(function(e){e.escapedValue=Zt(e.value),e.isRefined=a?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.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")},e.prototype.searchForCompositionFacetValues=function(t,e,n,r){if("function"!=typeof this.client.searchForFacetValues)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i=this.state.setQueryParameters(r||{}),a=i.isDisjunctiveFacet(t),s=(this._currentNbQueries++,this),r=this.client.searchForFacetValues({compositionID:i.index,facetName:t,searchForFacetValuesRequest:{params:{query:e,maxFacetHits:n,searchQuery:It._getCompositionHitsSearchParams(i)}}});return this.emit("searchForFacetValues",{state:i,facet:t,query:e}),r.then(function(e){return s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),(e=e.results[0]).facetHits.forEach(function(e){e.escapedValue=Zt(e.value),e.isRefined=a?i.isDisjunctiveFacetRefined(t,e.escapedValue):i.isFacetRefined(t,e.escapedValue)}),e},function(e){throw s._currentNbQueries--,0===s._currentNbQueries&&s.emit("searchQueueEmpty"),e})},e.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},e.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},e.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},e.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},e.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},e.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},e.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},e.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},e.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},e.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},e.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},e.prototype.removeNumericRefinement=function(e,t,n){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,n),isPageReset:!0}),this},e.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},e.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},e.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},e.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},e.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},e.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},e.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},e.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},e.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},e.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},e.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},e.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},e.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},e.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},e.prototype.setCurrentPage=Yt,e.prototype.setPage=Yt,e.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},e.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},e.prototype.setState=function(e){return this._change({state:Lt.make(e),isPageReset:!1}),this},e.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new Lt(e),this},e.prototype.hasRefinements=function(e){return!!bt(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))},e.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},e.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},e.prototype.hasTag=function(e){return this.state.isTagRefined(e)},e.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},e.prototype.getIndex=function(){return this.state.index},e.prototype.getCurrentPage=Xt,e.prototype.getPage=Xt,e.prototype.getTags=function(){return this.state.tagRefinements},e.prototype.getRefinements=function(e){var n=[],r=(this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){n.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){n.push({value:e,type:"disjunctive"})}),this.state.getNumericRefinements(e));return Object.keys(r).forEach(function(e){var t=r[e];n.push({value:t,operator:e,type:"numeric"})}),n},e.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},e.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},e.prototype._search=function(e){var r=this.state,i=[],t=[],e=(e.onlyWithDerivedHelpers||(t=It._getQueries(r.index,r),i.push({state:r,queriesCount:t.length,helper:this}),this.emit("search",{state:r,results:this.lastResults})),this.derivedHelpers.map(function(e){var t=e.getModifiedState(r),n=t.index?It._getQueries(t.index,t):[];return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),n})),t=Array.prototype.concat.apply(t,e),e=this._queryId++;if(this._currentNbQueries++,!t.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,e));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})}},e.prototype._runComposition=function(){var r=this.state,i=[],e=this.derivedHelpers.map(function(e){var t=e.getModifiedState(r),n=It._getCompositionQueries(t);return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",{state:t,results:e.lastResults}),n}),e=Array.prototype.concat.apply([],e),t=this._queryId++;if(this._currentNbQueries++,!e.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,i,t));if(1")}function on(n,r){return function(e){var t,e=e||{},a=e.hit,s=e.matchingPatterns,e=e.transformSearchParameters,e=void 0===e?function(e){return e}:e;if(!a)throw new Error(an("The `hit` option is required."));if(s)return t=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ie(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return sn({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[sn({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),e=T({},e(new R.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:t}))),T(T({},rn(n,r)({searchParameters:e})),{},{$$type:"ais.configureRelatedItems"});throw new Error(an("The `matchingPatterns` option is required."))}}function cn(u){var s=1=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,t={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(t.operator=e.operator),void 0!==e.count&&(t.count=e.count),void 0!==e.exhaustive&&(t.exhaustive=e.exhaustive),t}function yn(c){var n=1 ":t,t=e.rootPath,r=void 0===t?null:t,t=e.showParentLevel,i=void 0===t||t,t=e.limit,a=void 0===t?10:t,t=e.showMore,h=void 0!==t&&t,t=e.showMoreLimit,s=void 0===t?20:t,t=e.sortBy,f=void 0===t?Sn:t,t=e.transformItems,m=void 0===t?function(e){return e}:t;if(!l||!Array.isArray(l)||0===l.length)throw new Error(Rn("The `attributes` option expects an array of strings."));if(!0===h&&s<=a)throw new Error(Rn("The `showMoreLimit` option must be greater than `limit`."));var p,g,v=k(l,1)[0],o=function(){};function y(){o()}var b=!1;function R(){return b?s:a}return{$$type:"ais.hierarchicalMenu",init:function(e){var t=e.instantSearchInstance;c(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t,n,r=e.instantSearchInstance;t=e,o=function(){b=!b,n.render(t)},c(T(T({},(n=this).getWidgetRenderState(e)),{},{instantSearchInstance:r}),!1)},dispose:function(e){e=e.state;return n(),e.removeHierarchicalFacet(v).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return T(T({},e),{},{hierarchicalMenu:T(T({},e.hierarchicalMenu),{},E({},v,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,n=this,r=e.results,i=e.state,a=e.createURL,s=e.instantSearchInstance,o=e.helper,e=[],c=!1;return p=p||de({instantSearchInstance:s,helper:o,attribute:function(e){e=e.split(d).length-1;return l[e]},widgetType:this.$$type}),g=g||function(e){p("click:internal",e),o.toggleFacetRefinement(v,e).search()},r&&(s=(s=r.getFacetValues(v,{sortBy:f,facetOrdering:f===Sn}))&&!Array.isArray(s)&&s.data?s.data:[],t=(i.maxValuesPerFacet||0)>R()?s.length<=R():s.lengthS()),c=v(e.slice(0,S()).map(function(e){var t=e.name,n=e.escapedValue;e.path;return T(T({},j(e,ur)),{},{label:t,value:n})}),{results:i})),{items:c,createURL:h,refine:f,sendEvent:d,canRefine:0="]&&t[">="][0]||"",t=t["<="]&&t["<="][0]||"",e=T(T({},e),{},{numericMenu:T(T({},e.numericMenu),{},E({},p,"".concat(n,":").concat(t)))}),n=p,e.numericMenu&&(":"===e.numericMenu[n]&&delete e.numericMenu[n],0===Object.keys(e.numericMenu).length)&&delete e.numericMenu,e)},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,t=t.numericMenu&&t.numericMenu[p],e=e.setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},p,{}))});return t?-1===t.indexOf(":")?e.addNumericRefinement(p,"=",Number(t)):(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],n=b(n)?e.addNumericRefinement(p,">=",n):e,b(t)?n.addNumericRefinement(p,"<=",t):n):e},getRenderState:function(e,t){return T(T({},e),{},{numericMenu:T(T({},e.numericMenu),{},E({},p,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t,r,n,i=this,a=e.results,s=e.state,o=e.instantSearchInstance,c=e.helper,u=e.createURL,e=(m.refine||(m.refine=function(e){var t=pr(c.state,p,e);m.sendEvent("click:internal",e),c.setState(t).search()}),m.createURL||(m.createURL=function(n){return function(t){return u(function(e){return i.getWidgetUiState(e,{searchParameters:pr(n,p,t),helper:c})})}}),m.sendEvent||(m.sendEvent=(t={instantSearchInstance:o}.instantSearchInstance,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])})),!a||0===a.nbHits),o=(r=s,g.map(function(e){var t=e.start,n=e.end,e=e.label;return{label:e,value:encodeURI(JSON.stringify({start:t,end:n})),isRefined:mr(r,p,{start:t,end:n,label:e})}})),l=!0,d=function(e,t){var n,r,i,a,s="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(s)return r=!(n=!0),{s:function(){s=s.call(e)},n:function(){var e=s.next();return n=e.done,e},e:function(e){r=!0,i=e},f:function(){try{n||null==s.return||s.return()}finally{if(r)throw i}}};if(Array.isArray(e)||(s=z(e))||t&&e&&"number"==typeof e.length)return s&&(e=s),a=0,{s:t=function(){},n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:t};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(o);try{for(d.s();!(n=d.n()).done;){var h=n.value;if(h.isRefined&&"{}"!==decodeURI(h.value)){l=!1;break}}}catch(e){d.e(e)}finally{d.f()}return{createURL:m.createURL(s),items:v(o,{results:a}),hasNoResults:e,canRefine:!(e&&l),refine:m.refine,sendEvent:m.sendEvent,widgetParams:f}}};throw new Error(fr("The `items` option expects an array of objects."))}}var fr=l({name:"numeric-menu",connector:!0});function mr(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?gr(r,"=",n.start):gr(r,">=",n.start)&&gr(r,"<=",n.end):void 0!==n.start?gr(r,">=",n.start):void 0!==n.end?gr(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function pr(e,t,n){var n=JSON.parse(decodeURI(n)),r=e.getNumericRefinements(t);if(void 0===n.start&&void 0===n.end)return e.removeNumericRefinement(t);if(mr(e,t,n)||(e=e.removeNumericRefinement(t)),void 0!==n.start&&void 0!==n.end){if(n.start>n.end)throw new Error("option.start should be > to option.end");if(n.start===n.end)return e=gr(r,"=",n.start)?e.removeNumericRefinement(t,"=",n.start):e.addNumericRefinement(t,"=",n.start)}return void 0!==n.start&&(e=(e=gr(r,">=",n.start)?e.removeNumericRefinement(t,">=",n.start):e).addNumericRefinement(t,">=",n.start)),"number"==typeof(e=void 0!==n.end?(e=gr(r,"<=",n.end)?e.removeNumericRefinement(t,"<=",n.end):e).addNumericRefinement(t,"<=",n.end):e).page&&(e.page=0),e}function gr(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function vr(n){var t=1=this.total-1}},{key:"isFirstPage",value:function(){return this.currentPage<=0}}]),t}(),br=l({name:"pagination",connector:!0}),Rr=l({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function Sr(e){var t=e.min,n=e.max,e=e.precision,e=Math.pow(10,e);return{min:t&&Math.floor(t*e)/e,max:n&&Math.ceil(n*e)/e}}function _r(n){var r=1=")||[],1)[0],s=k(e.getNumericRefinement(u,"<=")||[],1)[0],o=void 0===n||""===n,c=void 0===r||""===r,n=Sr({min:o?void 0:parseFloat(n),max:c?void 0:parseFloat(r),precision:h}),r=n.min,n=n.max,o=b(l)||i!==r?b(l)&&o?l:r:void 0,r=b(d)||t!==n?b(d)&&c?d:n:void 0,c=void 0===o,n=b(i)&&i<=o,c=c||b(o)&&(!b(i)||n),i=void 0===r,n=b(r)&&r<=t,i=i||b(r)&&(!b(t)||n);return(a!==o||s!==r)&&c&&i?(e=e.removeNumericRefinement(u),b(o)&&(e=e.addNumericRefinement(u,">=",o)),(e=b(r)?e.addNumericRefinement(u,"<=",r):e).resetPage()):null};function f(n,r){return function(){var e=k(0=")||[],1)[0],i=k(i.getNumericRefinement(u,"<=")||[],1)[0],[b(s)?s:-1/0,b(i)?i:1/0]),i=f(r,n?a:{min:void 0,max:void 0});return{refine:i,canRefine:a.min!==a.max,format:c,range:a,sendEvent:(t=e,function(){1===arguments.length&&t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}),widgetParams:T(T({},o),{},{precision:h}),start:s}},dispose:function(e){e=e.state;return r(),e.removeDisjunctiveFacet(u).removeNumericRefinement(u)},getWidgetUiState:function(e,t){var t=t.searchParameters.getNumericRefinements(u),n=t[">="],n=void 0===n?[]:n,t=t["<="],t=void 0===t?[]:t;return 0===n.length&&0===t.length?e:T(T({},e),{},{range:T(T({},e.range),{},E({},u,"".concat(n,":").concat(t)))})},getWidgetSearchParameters:function(e,t){var n,t=t.uiState,e=e.addDisjunctiveFacet(u).setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},u,{}))}),t=(b(l)&&(e=e.addNumericRefinement(u,">=",l)),b(d)&&(e=e.addNumericRefinement(u,"<=",d)),t.range&&t.range[u]);return e=t&&-1!==t.indexOf(":")&&(n=(t=k(t.split(":").map(parseFloat),2))[0],t=t[1],b(n)&&(!b(l)||l=")).addNumericRefinement(u,">=",n)),b(t))&&(!b(d)||tm,d=p&&!w;return{createURL:function(t){return s(function(e){return r.getWidgetUiState(e,{searchParameters:a.resetPage().toggleFacetRefinement(f,t),helper:c})})},items:u,refine:R,searchForItems:o,isFromSearch:!1,canRefine:0="])&&t.length)return e[">="][0]},b=function(e){return function(e,t){v("click:internal",t),e.setState(s(e.state,t)).search()}.bind(null,e)},R=function(e){var n=e.state,r=e.createURL,i=e.getWidgetUiState,a=e.helper;return function(t){return r(function(e){return i(e,{searchParameters:s(n,t),helper:a})})}},{$$type:Hr,init:function(e){var t=e.instantSearchInstance;n(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return T(T({},e),{},{ratingMenu:T(T({},e.ratingMenu),{},E({},S,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var o,c,u,l,t,n=e.helper,r=e.results,i=e.state,a=e.instantSearchInstance,e=e.createURL,s=[],d=(v||(o=(a={instantSearchInstance:a,helper:n,getRefinedStar:function(){return y(n.state)},attribute:S}).instantSearchInstance,c=a.helper,u=a.getRefinedStar,l=a.attribute,v=function(){for(var e,t,n,r,i=arguments.length,a=new Array(i),s=0;s=").concat(e)]},attribute:l}))}),!1),h=0,f=null==r?void 0:r.getFacetValues(S,{});if(r&&f){f.length,t=0,f.forEach(function(e){e=k(e.name.split("."),2)[1];t=Math.max(t,(void 0===e?"":e).length)});for(var m=y(i),p=1;p<_;p+=1)(function(n){var e=m===n,t=(d=d||e,f.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=_}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0));if(h+=t,m&&!e&&0===t)return;var r=P(new Array(Math.floor(+_))).map(function(e,t){return+t=",t):e.setQueryParameters({numericRefinements:T(T({},e.numericRefinements),{},E({},S,{}))})}};throw new Error(Mr("The `attribute` option is required."));function s(e,t){var n=y(e)===Number(t),e=e.resetPage().removeNumericRefinement(S);return n?e:e.addNumericRefinement(S,"<=",_).addNumericRefinement(S,">=",Number(t))}}}var kr=l({name:"related-products",connector:!0}),Or=l({name:"search-box",connector:!0}),Lr=l({name:"sort-by",connector:!0}),Mr=l({name:"rating-menu",connector:!0}),Hr="ais.ratingMenu";function Ar(r){var e=1 ":t,t=e.rootPath,a=void 0===t?null:t,t=e.transformItems,o=void 0===t?function(e){return e}:t;if(r&&Array.isArray(r)&&0!==r.length)return n=k(r,1)[0],{$$type:"ais.breadcrumb",init:function(e){u(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){u(T(T({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){l()},getRenderState:function(e,t){return T(T({},e),{},{breadcrumb:T(T({},e.breadcrumb),{},E({},n,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var n=this,r=e.helper,i=e.createURL,t=e.results,e=e.state;var a,e=t&&0!==e.hierarchicalFacets.length?(e=k(e.hierarchicalFacets,1)[0].name,e=(e=t.getFacetValues(e,{}))&&!Array.isArray(e)&&e.data?e.data:[],o((a=function n(e){return e.reduce(function(e,t){return e=t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data))?e.concat(n(t.data)):e},[])}(e)).map(function(e,t){return{label:e.label,value:t+1===a.length?null:a[t+1].value}}),{results:t})):[];return d.createURL||(d.createURL=function(t){return i(function(e){return n.getWidgetUiState(e,{searchParameters:c(r.state,t),helper:r})})}),d.refine||(d.refine=function(e){r.setState(c(r.state,e)).search()}),{canRefine:0')).replace(new RegExp(u.highlightPostTag,"g"),""))}var gi=t("ReverseHighlight");function vi(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ie(r._highlightResult,t)||{}).value,t=void 0===r?"":r,r=gi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var yi=t("Snippet");function bi(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=yi({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return t.replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var Ri=t("ReverseSnippet");function Si(e){var t=e.attribute,n=e.highlightedTagName,n=void 0===n?"mark":n,r=e.hit,e=e.cssClasses,e=void 0===e?{}:e,r=(Ie(r._snippetResult,t)||{}).value,t=void 0===r?"":r,r=Ri({descendantName:"highlighted"})+(e.highlighted?" ".concat(e.highlighted):"");return le(nt(Ne(t))).replace(new RegExp(u.highlightPreTag,"g"),"<".concat(n,' class="').concat(r,'">')).replace(new RegExp(u.highlightPostTag,"g"),""))}var _i="_ALGOLIA";function wi(){var e=_i;if("object"===("undefined"==typeof document?"undefined":D(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+$i[128|63&c]:c<55296||57344<=c?s+=$i[224|c>>12]+$i[128|c>>6&63]+$i[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=$i[240|c>>18]+$i[128|c>>12&63]+$i[128|c>>6&63]+$i[128|63&c])}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(Wi(e)){for(var n=[],r=0;r"===t?(r=1,""):t+i[0]:a?t===a?a="":i+=t:'"'===t||"'"===t?a=t:">"===t?(o(),r=1):r&&("="===t?(r=5,n=i,i=""):"/"===t&&(r<5||">"===e[c][u+1])?(o(),3===r&&(s=s[0]),(s=(r=s)[0]).push(2,0,r),r=0):" "===t||"\t"===t||"\n"===t||"\r"===t?(o(),r=2):i+=t),3===r&&"!--"===i&&(r=4,s=s[0])}return o(),s}(e)),t),arguments,[])).length?t:t[0]}.bind(L);function Ta(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ea(e,t){return e(t={exports:{}},t.exports),t.exports}var ja=Ta(Ea(function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t=t.__.length&&t.__.push({__V:us}),t.__[e]}function gs(e){os=1;var a,t=ws,n=void 0,s=ps(is++,2);return s.t=t,s.__c||(s.__=[n?n(e):ws(void 0,e),function(e){var t=(s.__N||s.__)[0],e=s.t(t,e);t!==e&&(s.__N=[e,s.__[1]],s.__c.setState({}))}],(s.__c=f).u)||(f.u=!0,a=f.shouldComponentUpdate,f.shouldComponentUpdate=function(e,t,n){var r,i;return!s.__c.__H||((r=s.__c.__H.__.filter(function(e){return e.__c})).every(function(e){return!e.__N})||(i=!1,r.forEach(function(e){var t;e.__N&&(t=e.__[0],e.__=e.__N,e.__N=void 0,t!==e.__[0])&&(i=!0)}),!!i))&&(!a||a.call(this,e,t,n))}),s.__N||s.__}function vs(e){return os=5,t=function(){return{current:e}},n=[],_s((r=ps(is++,7)).__H,n)?(r.__V=t(),r.i=n,r.__h=t,r.__V):r.__;var t,n,r}function ys(){for(var t;t=cs.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Rs),t.__H.__h.forEach(Ss),t.__H.__h=[]}catch(e){t.__H.__h=[],I.__e(e,t.__v)}}I.__b=function(e){"function"!=typeof e.type||e.o||e.type===C?e.o||(e.o=e.__&&e.__.o?e.__.o:""):e.o=(e.__&&e.__.o?e.__.o:"")+(e.__&&e.__.__k?e.__.__k.indexOf(e):0),f=null,ls&&ls(e)},I.__r=function(e){ds&&ds(e),is=0;e=(f=e.__c).__H;e&&(as===f?(e.__h=[],f.__h=[],e.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=us,e.__N=e.i=void 0})):(e.__h.forEach(Rs),e.__h.forEach(Ss),e.__h=[])),as=f},I.diffed=function(e){hs&&hs(e);e=e.__c;e&&e.__H&&(!e.__H.__h.length||1!==cs.push(e)&&ss===I.requestAnimationFrame||((ss=I.requestAnimationFrame)||function(e){function t(){clearTimeout(r),bs&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);bs&&(n=requestAnimationFrame(t))})(ys),e.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==us&&(e.__=e.__V),e.i=void 0,e.__V=us})),as=f=null},I.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Rs),t.__h=t.__h.filter(function(e){return!e.__||Ss(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],I.__e(e,t.__v)}}),fs&&fs(e,n)},I.unmount=function(e){ms&&ms(e);var t,e=e.__c;e&&e.__H&&(e.__H.__.forEach(function(e){try{Rs(e)}catch(e){t=e}}),e.__H=void 0,t)&&I.__e(t,e.__v)};var bs="function"==typeof requestAnimationFrame;function Rs(e){var t=f,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),f=t}function Ss(e){var t=f;e.__c=e.__(),f=t}function _s(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function ws(e,t){return"function"==typeof t?t(e):t}Ps=(fi={createElement:L,Fragment:C}).createElement,Ns=fi.Fragment;var Ps,Ns,xs=function(e){var t=e.listRef,n=e.nextButtonRef,r=e.previousButtonRef,i=e.carouselIdRef,a=e.classNames,a=void 0===a?{}:a,s=e.itemComponent,o=void 0===s?$a({createElement:Ps,Fragment:Ns}):s,s=e.previousIconComponent,s=void 0===s?Va:s,c=e.nextIconComponent,c=void 0===c?Ka:c,u=e.items,l=e.translations,d=e.sendEvent,e=Aa(e,qa),l=function(t){for(var e=1;e=t.current.scrollWidth)},onKeyDown:function(e){"ArrowLeft"===e.key?(e.preventDefault(),f()):"ArrowRight"===e.key&&(e.preventDefault(),m())}},u.map(function(e,t){return Ps("li",{key:e.objectID,className:H(h.item),"aria-roledescription":"slide","aria-label":"".concat(t+1," of ").concat(u.length),onClick:function(){d("click:internal",e,"Item Clicked")},onAuxClick:function(){d("click:internal",e,"Item Clicked")}},Ps(o,{item:e}))})),Ps("button",{ref:n,title:l.nextButtonTitle,"aria-label":l.nextButtonLabel,"aria-controls":i.current,className:H(h.navigation,h.navigationNext),onClick:function(e){e.preventDefault(),m()}},Ps(c,{createElement:Ps})))};function Is(e){var t={listRef:vs(null),nextButtonRef:vs(null),previousButtonRef:vs(null),carouselIdRef:vs("ais-Carousel-".concat(Qa++))};return L(xs,g({},t,e))}fi=Object.freeze({__proto__:null,carousel:function(){var e=0":7,"=":8,_v:9,"{":10,"&":11,_t:12},S.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l="",d=[],h=!1,f=0,m=0,p="{{",g="}}";function v(){0"==n.tag&&(n.indent=d[r].text.toString()),d.splice(r,1));else t||d.push({tag:"\n"});h=!1,m=d.length}for(t&&(t=t.split(" "),p=t[0],g=t[1]),f=0;f":a,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0},e=(S.walk(e.nodes,n),t.partials[a(e,t)]);e.subs=n.subs,e.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};S.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+i(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=o('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+n(e.n)+'("'+i(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=o('"'+i(e.text)+'"')},"{":s,"&":s},S.walk=function(e,t){for(var n,r=0,i=e.length;r/g,a=/\'/g,o=/\"/g,c=/[&<>\"\']/,d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}),ks=(Es.Template=js.Template,Es.template=Es.Template,Es),Os=(Fs=(js={createElement:L,Fragment:C}).createElement,Ts=js.Fragment,Cs={createElement:Fs,Fragment:Ts}.createElement,function(e){var r=e.parts,t=e.highlightedTagName,i=void 0===t?"mark":t,t=e.nonHighlightedTagName,a=void 0===t?"span":t,t=e.separator,s=void 0===t?", ":t,t=e.className,n=e.classNames,o=void 0===n?{}:n,n=Aa(e,Za);return Fs("span",ja({},n,{className:H(o.root,t)}),r.map(function(e,t){var n=t===r.length-1;return Fs(Ts,{key:t},e.map(function(e,t){return Fs(Ls,{key:t,classNames:o,highlightedTagName:i,nonHighlightedTagName:a,isHighlighted:e.isHighlighted},e.value)}),!n&&Fs("span",{className:o.separator},s))}))});function Ls(e){var t=e.classNames,n=e.children,r=e.highlightedTagName,i=e.isHighlighted,e=e.nonHighlightedTagName;return Cs(i?r:e,{className:i?t.highlighted:t.nonHighlighted},n)}var Ms=["classNames"];function Hs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Ms);return L(Os,g({classNames:{root:H("ais-Highlight",t.root),highlighted:H("ais-Highlight-highlighted",t.highlighted),nonHighlighted:H("ais-Highlight-nonHighlighted",t.nonHighlighted),separator:H("ais-Highlight-separator",t.separator)}},e))}var As=["hit","attribute","cssClasses"];function Ds(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Hs,g({},j(e,As),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(ae(e.value||""))}),classNames:r}))}var Ws=["classNames"];function $s(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Ws);return L(Os,g({classNames:{root:H("ais-ReverseHighlight",t.root),highlighted:H("ais-ReverseHighlight-highlighted",t.highlighted),nonHighlighted:H("ais-ReverseHighlight-nonHighlighted",t.nonHighlighted),separator:H("ais-ReverseHighlight-separator",t.separator)}},e))}var Bs=["hit","attribute","cssClasses"],qs=["isHighlighted"];function Us(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L($s,g({},j(e,Bs),{parts:it(Ie(t._highlightResult,n)||[]).map(function(e){return Ne(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return T(T({},j(e,qs)),{},{isHighlighted:!t})})}),classNames:r}))}var Qs=["classNames"];function Vs(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Qs);return L(Os,g({classNames:{root:H("ais-ReverseSnippet",t.root),highlighted:H("ais-ReverseSnippet-highlighted",t.highlighted),nonHighlighted:H("ais-ReverseSnippet-nonHighlighted",t.nonHighlighted),separator:H("ais-ReverseSnippet-separator",t.separator)}},e))}var Ks=["hit","attribute","cssClasses"],zs=["isHighlighted"];function Js(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Vs,g({},j(e,Ks),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(ae(e.value||"")).map(function(e){var t=e.isHighlighted;return T(T({},j(e,zs)),{},{isHighlighted:!t})})}),classNames:r}))}var Zs=["classNames"];function Ys(e){var t=e.classNames,t=void 0===t?{}:t,e=j(e,Zs);return L(Os,g({classNames:{root:H("ais-Snippet",t.root),highlighted:H("ais-Snippet-highlighted",t.highlighted),nonHighlighted:H("ais-Snippet-nonHighlighted",t.nonHighlighted),separator:H("ais-Snippet-separator",t.separator)}},e))}var Xs=["hit","attribute","cssClasses"];function Gs(e){var t=e.hit,n=e.attribute,r=e.cssClasses;return L(Ys,g({},j(e,Xs),{parts:it(Ie(t._snippetResult,n)||[]).map(function(e){return Ne(ae(e.value||""))}),classNames:r}))}function eo(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=e.bindEvent,e=e.sendEvent,t=t[n];if("string"!=typeof t&&"function"!=typeof t)throw new Error("Template must be 'string' or 'function', was '".concat(D(t),"' (key: ").concat(n,")"));return"function"==typeof t?((n=s||{}).html=Fa,n.sendEvent=e,n.components={Highlight:Ds,ReverseHighlight:Us,Snippet:Gs,ReverseSnippet:Js},t(a,n)):(s=function(e,t,n){var r=00&&this.nodes[0].nodeValue&&(this.nodes[0].nodeValue="")}},{key:"render",value:function(){return L("div",{ref:this.ref})}}]),a}(),S=function(){q(t,Hn);var e=K(t);function t(){return W(this,t),e.apply(this,arguments)}return B(t,[{key:"shouldComponentUpdate",value:function(e){return!Me(this.props.data,e.data)||this.props.templateKey!==e.templateKey||!Me(this.props.rootProps,e.rootProps)}},{key:"render",value:function(){var e="fragment"===this.props.rootTagName?C:this.props.rootTagName,t=this.props.useCustomCompileOptions[this.props.templateKey]?this.props.templatesConfig.compileOptions:{},t=eo({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:t,helpers:this.props.templatesConfig.helpers,data:this.props.data,bindEvent:this.props.bindEvent,sendEvent:this.props.sendEvent});return null===t?null:"object"===D(t)?L(e,this.props.rootProps,t):e===C?L(to,{content:t,key:Math.random()}):L(e,g({},this.props.rootProps,{dangerouslySetInnerHTML:{__html:t}}))}}]),t}(),no=(E(S,"defaultProps",{data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}}),function(e){var t=e.hits,n=e.isLoading,r=e.cssClasses,i=e.templateProps;return L("div",{className:H(r.root,0===t.length&&r.emptyRoot)},L(S,g({},i,{templateKey:"header",rootProps:{className:r.header},data:{hits:t,isLoading:n}})),n?L(S,g({},i,{templateKey:"loader",rootProps:{className:r.loader}})):L("ul",{className:r.list},t.map(function(e,t){return L(S,g({},i,{templateKey:"item",rootTagName:"li",rootProps:{className:r.item},key:e.objectID,data:T(T({},e),{},{get __hitIndex(){return t}})}))})))}),ro={header:function(){return""},loader:function(){return""},item:function(e){return JSON.stringify(e)}},io=l({name:"answers"}),ao=t("Answers"),Es=Z(function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.attributesForPrediction,c=e.queryLanguages,u=e.nbHits,l=e.searchDebounceTime,d=e.renderDebounceTime,h=e.escapeHTML,f=e.extraParameters,m=e.templates,m=void 0===m?{}:m,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(ao(),e.root),emptyRoot:H(ao({modifierName:"empty"}),e.emptyRoot),header:H(ao({descendantName:"header"}),e.header),loader:H(ao({descendantName:"loader"}),e.loader),list:H(ao({descendantName:"list"}),e.list),item:H(ao({descendantName:"item"}),e.item)},i=(e={containerNode:t,cssClasses:n,templates:m,renderState:{}}).containerNode,a=e.cssClasses,s=e.renderState,o=e.templates,T(T({},at(function(e,t){var n=e.hits,r=e.isLoading,e=e.instantSearchInstance;t?s.templateProps=A({defaultTemplates:ro,templatesConfig:e.templatesConfig,templates:o}):M(L(no,{cssClasses:a,hits:n,isLoading:r,templateProps:s.templateProps}),i)},function(){return M(null,t)})({attributesForPrediction:r,queryLanguages:c,nbHits:u,searchDebounceTime:l,renderDebounceTime:d,escapeHTML:h,extraParameters:f})),{},{$$widgetType:"ais.answers"});throw new Error(io("The `container` option is required."))}),so=["container","widgets","fallbackWidget"],oo=l({name:"dynamic-widgets"}),co=t("DynamicWidgets");function uo(e){var t=document.createElement("div");return t.className=co({descendantName:"widget"}),e.appendChild(t),t}function lo(e){var n,i,a,s,t,r=(e=e||{}).container,o=e.widgets,c=e.fallbackWidget,e=j(e,so);if(!r)throw new Error(oo("The `container` option is required."));if(o&&Array.isArray(o)&&o.every(function(e){return"function"==typeof e}))return n=x(r),(i=document.createElement("div")).className=co(),a=new Map,s=[],t=cn(function(e,t){e=e.attributesToRender;t&&n.appendChild(i),e.forEach(function(e){a.has(e)&&(e=a.get(e),i.appendChild(e))})},function(){n.removeChild(i)})(T(T({},e),{},{widgets:s,fallbackWidget:"function"==typeof c?function(e){var e=e.attribute,t=uo(i);return a.set(e,t),c({attribute:e,container:t})}:void 0})),T(T({},t),{},{init:function(r){o.forEach(function(e){var t=uo(i),e=e(t),n=Te(e,r);a.set(n,t),s.push(e)}),t.init(r)},$$widgetType:"ais.dynamicWidgets"});throw new Error(oo("The `widgets` option expects an array of callbacks."))}function ho(e,t){var n=e.items,r=e.widgetParams,e=e.canRefine;t||(t=r.container,r=r.cssClasses,M(L(No,{cssClasses:r,items:n,canRefine:e}),t))}function fo(e){var t=e.className,n=e.disabled;return L("button",{className:t,onClick:e.onClick,disabled:void 0!==n&&n},e.children)}function mo(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,e=e.children;return L("label",{className:t},L("input",{className:n,type:"checkbox",checked:r,onChange:i}),e)}function po(e,t){var n,r,i,a,s=e.items,o=e.position,c=e.currentRefinement,u=e.refine,l=e.clearMapRefinement,d=e.toggleRefineOnMapMove,h=e.isRefineOnMapMove,f=e.setMapMoveSinceLastRefine,m=e.hasMapMoveSinceLastRefine,p=e.isRefinedWithMap,g=e.widgetParams,e=e.instantSearchInstance,v=g.container,y=g.googleReference,b=g.cssClasses,R=g.templates,S=g.initialZoom,_=g.initialPosition,w=g.enableRefine,P=g.enableClearMapRefinement,N=g.enableRefineControl,x=g.mapOptions,I=g.createMarker,C=g.markerOptions,F=g.renderState;t?(F.isUserInteraction=!0,F.isPendingRefine=!1,F.markers=[],(g=document.createElement("div")).className=b.root,v.appendChild(g),(t=document.createElement("div")).className=b.map,g.appendChild(t),(n=document.createElement("div")).className=b.tree,g.appendChild(n),F.mapInstance=new y.maps.Map(t,T({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:y.maps.ControlPosition.LEFT_TOP}},x)),y.maps.event.addListenerOnce(F.mapInstance,"idle",function(){function e(){F.isUserInteraction&&w&&(f(),h())&&(F.isPendingRefine=!0)}F.mapInstance.addListener("center_changed",e),F.mapInstance.addListener("zoom_changed",e),F.mapInstance.addListener("dragstart",e),F.mapInstance.addListener("idle",function(){F.isUserInteraction&&F.isPendingRefine&&(F.isPendingRefine=!1,Eo({mapInstance:F.mapInstance,refine:u}))})}),F.templateProps=A({templatesConfig:e.templatesConfig,templates:R})):(g=s.map(function(e){return e.objectID}),t=(n=k(jo(F.markers,g),2))[0],x=n[1],r=t.map(function(e){return e.__id}),e=s.filter(function(e){return!r.includes(e.objectID)}),x.forEach(function(e){return e.setMap(null)}),F.markers=t.concat(e.map(function(n){var r=I({map:F.mapInstance,item:n});return Object.keys(C.events).forEach(function(t){r.addListener(t,function(e){C.events[t]({map:F.mapInstance,event:e,item:n,marker:r})})}),r})),R=!m(),i=c?0:null,(a=!c&&Boolean(F.markers.length)?ko(y,F.markers):c)&&R?Oo(F,function(){F.mapInstance.fitBounds(new y.maps.LatLngBounds(a.southWest,a.northEast),i)}):R&&Oo(F,function(){F.mapInstance.setCenter(o||_),F.mapInstance.setZoom(S)}),M(L(To,{cssClasses:b,enableRefine:w,enableRefineControl:N,enableClearMapRefinement:P,isRefineOnMapMove:h(),isRefinedWithMap:p(),hasMapMoveSinceLastRefine:m(),onRefineToggle:d,onRefineClick:function(){return Eo({mapInstance:F.mapInstance,refine:u})},onClearClick:l,templateProps:F.templateProps}),v.querySelector(".".concat(b.tree))))}var go=l({name:"analytics"}),vo=function(e){var r=e.items,i=e.cssClasses,a=e.templateProps,s=e.createURL,o=e.refine;return L("div",{className:H(i.root,0===r.length&&i.noRefinementRoot)},L("ul",{className:i.list},L("li",{className:H(i.item,0===r.length&&i.selectedItem)},L(S,g({},a,{templateKey:"home",rootTagName:"a",rootProps:{className:i.link,href:s(null),onClick:function(e){He(e)||(e.preventDefault(),o(null))}}}))),r.map(function(t,e){var n=e===r.length-1;return L("li",{key:t.label+e,className:H(i.item,n&&i.selectedItem)},L(S,g({},a,{templateKey:"separator",rootTagName:"span",rootProps:{className:i.separator,"aria-hidden":!0}})),n?t.label:L("a",{className:i.link,href:s(t.value),onClick:function(e){He(e)||(e.preventDefault(),o(t.value))}},t.label))})))},yo={home:function(){return"Home"},separator:function(){return">"}},bo=l({name:"breadcrumb"}),Ro=t("Breadcrumb"),So=function(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,e=e.templateProps;return L("div",{className:r.root},L(S,g({},e,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:H(r.button,!t&&r.disabledButton),onClick:n,disabled:!t},data:{hasRefinements:t}})))},_o={resetLabel:function(){return"Clear refinements"}},wo=l({name:"clear-refinements"}),Po=t("ClearRefinements"),No=function(e){var t=e.items,a=e.cssClasses,e=e.canRefine;return L("div",{className:H(a.root,!e&&a.noRefinementRoot)},L("ul",{className:a.list},t.map(function(i,e){return L("li",{key:"".concat(i.indexName,"-").concat(i.attribute,"-").concat(e),className:a.item},L("span",{className:a.label},(e=i.label).toString().charAt(0).toUpperCase()+e.toString().slice(1),": "),i.refinements.map(function(e){return L("span",{key:(n=e.attribute,r=e.value,[n,e.type,r,e.operator].map(function(e){return e}).filter(Boolean).join(":")),className:a.category},L("span",{className:a.categoryLabel},"query"===e.attribute?L("q",null,e.label):e.label),L("button",{className:a.delete,type:"button",onClick:(t=i.refine.bind(null,e),function(e){He(e)||(e.preventDefault(),t())})},"✕"));var t,n,r}))})))},xo=l({name:"current-refinements"}),Io=t("CurrentRefinements"),Co=L("p",null,"Your custom HTML Marker"),Fo={HTMLMarker:function(){return Co},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},To=function(e){var t=e.cssClasses,n=e.enableRefine,r=e.enableRefineControl,i=e.enableClearMapRefinement,a=e.isRefineOnMapMove,s=e.isRefinedWithMap,o=e.hasMapMoveSinceLastRefine,c=e.onRefineToggle,u=e.onRefineClick,l=e.onClearClick,e=e.templateProps;return L(C,null,n&&L("div",null,r&&L("div",{className:t.control},a||!o?L(mo,{classNameLabel:H(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},L(S,g({},e,{templateKey:"toggle",rootTagName:"span"}))):L(fo,{className:t.redo,disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&L("div",{className:t.control},L(fo,{className:H(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},L(S,g({},e,{templateKey:"redo",rootTagName:"span"})))),i&&s&&L(fo,{className:t.reset,onClick:l},L(S,g({},e,{templateKey:"reset",rootTagName:"span"})))))},Eo=function(e){var t=e.refine,e=e.mapInstance;return t({northEast:e.getBounds().getNorthEast().toJSON(),southWest:e.getBounds().getSouthWest().toJSON()})},jo=function(e,r){return e.reduce(function(e,t){var e=k(e,2),n=e[0],e=e[1];return r.includes(t.__id)?[n.concat(t),e]:[n,e.concat(t)]},[[],[]])},ko=function(e,t){t=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:t.getNorthEast().toJSON(),southWest:t.getSouthWest().toJSON()}},Oo=function(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0},Lo=["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"],Mo=["item"],Ho=["item"],Ao=l({name:"geo-search"}),Do=t("GeoSearch"),js={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,ignoreCompositionEvents:!1,isSearchStalled:!1,disabled:!1,ariaLabel:"Search",onChange:w,onSubmit:w,onReset:w,refine:w},Wo=function(){q(i,Hn);var r=K(i);function i(){var a;W(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,e=e.max,n=(e-t)/34;return[t].concat(P(Ge({end:33}).map(function(e){return t+n*(e+1)})),[e])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,e=e.step;if(e)return[].concat(P(Ge({start:t,end:n,step:e})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,e=e.cssClasses,a=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,s=a.min,a=a.max,n=this.computeSnapPoints({min:s,max:a,step:n}),r=!1===r?[]:this.computeDefaultPitPoints({min:s,max:a});return L("div",{className:H(e.root,this.isDisabled&&e.disabledRoot)},L(cu,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:s,max:a,pitComponent:$c,pitPoints:r,snap:!0,snapPoints:n,values:this.isDisabled?[s,a]:i,disabled:this.isDisabled}))}}]),a}()),lu=l({name:"range-slider"}),du=t("RangeSlider");function hu(e){var t=e.children,n=e.count,r=e.value,i=e.url,e=e.cssClasses;return n?L("a",{className:H(e.link),"aria-label":"".concat(r," & up"),href:i},t):L("div",{className:H(e.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}var fu={item:function(e){var t=e.count,n=e.value,r=e.url,i=e.stars,a=e.cssClasses;return L(hu,{count:t,value:n,url:r,cssClasses:a},i.map(function(e,t){return L("svg",{key:t,className:H(a.starIcon,e?a.fullStarIcon:a.emptyStarIcon),"aria-hidden":"true",width:"24",height:"24"},L("use",{xlinkHref:e?"#ais-RatingMenu-starSymbol":"#ais-RatingMenu-starEmptySymbol"}))}),L("span",{"aria-hidden":"true",className:H(a.label)},"& Up"),t&&L("span",{className:H(a.count)},Ra(t)))}},mu=l({name:"rating-menu"}),m=t("RatingMenu"),pu=L("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"}),gu=L("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"}),vu=L("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"}),yu=L("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"}),bu=L("g",{fill:"none","fill-rule":"evenodd"},L("g",{transform:"translate(1 1)","stroke-width":"2"},L("circle",{"stroke-opacity":".5",cx:"18",cy:"18",r:"18"}),L("path",{d:"M36 18c0-9.94-8.06-18-18-18"},L("animateTransform",{attributeName:"transform",type:"rotate",from:"0 18 18",to:"360 18 18",dur:"1s",repeatCount:"indefinite"})))),Ru={reset:function(e){return L("svg",{className:e.cssClasses.resetIcon,viewBox:"0 0 20 20",width:"10",height:"10","aria-hidden":"true"},vu)},submit:function(e){return L("svg",{className:e.cssClasses.submitIcon,width:"10",height:"10",viewBox:"0 0 40 40","aria-hidden":"true"},yu)},loadingIndicator:function(e){return L("svg",{"aria-label":"Results are loading",className:e.cssClasses.loadingIcon,width:"16",height:"16",viewBox:"0 0 38 38",stroke:"#444","aria-hidden":"true"},bu)}},Su={item:function(e){var t=e.cssClasses,n=e.count,r=e.value,i=e.highlighted,a=e.isRefined,e=e.isFromSearch;return L("label",{className:H(t.label)},L("input",{type:"checkbox",className:H(t.checkbox),value:r,defaultChecked:a}),L("span",{className:H(t.labelText),dangerouslySetInnerHTML:e?{__html:i}:void 0},!e&&i),L("span",{className:H(t.count)},Ra(n)))},showMoreText:function(e){return e.isShowingMore?"Show less":"Show more"},searchableNoResults:function(){return"No results"}},_u=l({name:"refinement-list"}),wu=t("RefinementList"),Pu=t("SearchBox"),Nu=function(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?L("div",{className:t.root},L(S,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),L("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},L(S,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null},xu={text:function(){return""},button:function(e){return e.isRelevantSorted?"See all results":"See relevant results"}},Iu=l({name:"relevant-sort"}),Cu=t("RelevantSort"),Fu=l({name:"search-box"}),Tu=t("SearchBox"),Eu=l({name:"sort-by"}),ju=t("SortBy"),ku=["nbHits","nbSortedHits","cssClasses","templateProps"],Ou=function(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,e=j(e,ku);return L("div",{className:H(r.root)},L(S,g({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:T({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?n.push("".concat(t,"=").concat(t,"_").concat(r[">="])):n.push("".concat(t,"=").concat(t,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))n.push("".concat(t,"=").concat(t,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))n.push("".concat(t,"=").concat(t,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i,a=[];for(i in r["="])r["="].hasOwnProperty(i)&&a.push(r["="][i]);n.push("".concat(t,"=").concat(t,"_").concat(a.join("-")))}}return n.join("&")},r=function(e){var t,n,r;null!==e&&(t=[],n=i(T(T(T({},e.state.disjunctiveFacetsRefinements),e.state.facetsRefinements),e.state.hierarchicalFacetsRefinements)),r=a(e.state.numericRefinements),""!==n&&t.push(n),""!==r&&t.push(r),n=t.join("&"),r="Query: ".concat(e.state.query||"",", ").concat(n),!0===p&&(r+=", Page: ".concat(e.state.page||0)),s!==r)&&(d(n,e.state,e.results),s=r)},c=!(s="")===(void 0===h||h)?!1:!0,t=function(){r(n)},u=function(){r(n)},{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===m&&(document.addEventListener("click",t),window.addEventListener("beforeunload",u))},render:function(e){var t=e.results,e=e.state;t&&(!0===c?c=!1:(n={results:t,state:e},o&&clearTimeout(o),o=window.setTimeout(function(){return r(n)},f)))},dispose:function(){!0===m&&(document.removeEventListener("click",t),window.removeEventListener("beforeunload",u))},getRenderState:function(e,t){return T(T({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}};throw new Error(go("The `pushFunction` option is required."))},breadcrumb:function(e){var t,s,o,c,u,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,l=e.transformItems,d=e.templates,d=void 0===d?{}:d,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(Ro(),e.root),noRefinementRoot:H(Ro({modifierName:"noRefinement"}),e.noRefinementRoot),list:H(Ro({descendantName:"list"}),e.list),item:H(Ro({descendantName:"item"}),e.item),selectedItem:H(Ro({descendantName:"item",modifierName:"selected"}),e.selectedItem),separator:H(Ro({descendantName:"separator"}),e.separator),link:H(Ro({descendantName:"link"}),e.link)},s=(e={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,o=e.cssClasses,c=e.renderState,u=e.templates,T(T({},$r(function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,e=e.refine;t?c.templateProps=A({defaultTemplates:yo,templatesConfig:i.templatesConfig,templates:u}):M(L(vo,{canRefine:n,cssClasses:o,createURL:r,items:a,refine:e,templateProps:c.templateProps}),s)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,transformItems:l})),{},{$$widgetType:"ais.breadcrumb"});throw new Error(bo("The `container` option is required."))},clearRefinements:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,c=e.includedAttributes,u=e.excludedAttributes,l=e.transformItems,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(Po(),e.root),button:H(Po({descendantName:"button"}),e.button),disabledButton:H(Po({descendantName:"button",modifierName:"disabled"}),e.disabledButton)},i=(e={containerNode:t,cssClasses:n,renderState:{},templates:r}).containerNode,a=e.cssClasses,s=e.renderState,o=e.templates,T(T({},un(function(e,t){var n=e.refine,r=e.canRefine,e=e.instantSearchInstance;t?s.templateProps=A({defaultTemplates:_o,templatesConfig:e.templatesConfig,templates:o}):M(L(So,{refine:n,cssClasses:a,hasRefinements:r,templateProps:s.templateProps}),i)},function(){return M(null,t)})({includedAttributes:c,excludedAttributes:u,transformItems:l})),{},{$$widgetType:"ais.clearRefinements"});throw new Error(wo("The `container` option is required."))},configure:function(e){return T(T({},rn(w)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t,e=e||{},n=e.container,r=e.includedAttributes,i=e.excludedAttributes,a=e.cssClasses,a=void 0===a?{}:a,e=e.transformItems;if(n)return t=x(n),n={root:H(Io(),a.root),noRefinementRoot:H(Io({modifierName:"noRefinement"}),a.noRefinementRoot),list:H(Io({descendantName:"list"}),a.list),item:H(Io({descendantName:"item"}),a.item),label:H(Io({descendantName:"label"}),a.label),category:H(Io({descendantName:"category"}),a.category),categoryLabel:H(Io({descendantName:"categoryLabel"}),a.categoryLabel),delete:H(Io({descendantName:"delete"}),a.delete)},T(T({},hn(ho,function(){return M(null,t)})({container:t,cssClasses:n,includedAttributes:r,excludedAttributes:i,transformItems:e})),{},{$$widgetType:"ais.currentRefinements"});throw new Error(xo("The `container` option is required."))},geoSearch:function(e){var t,n,r,i,a,u,e=e||{},s=e.initialZoom,s=void 0===s?1:s,o=e.initialPosition,o=void 0===o?{lat:0,lng:0}:o,c=e.templates,c=void 0===c?{}:c,l=e.cssClasses,l=void 0===l?{}:l,d=e.builtInMarker,d=void 0===d?{}:d,h=e.customHTMLMarker,f=e.enableRefine,f=void 0===f||f,m=e.enableClearMapRefinement,m=void 0===m||m,p=e.enableRefineControl,p=void 0===p||p,g=e.container,v=e.googleReference,e=j(e,Lo);if(!g)throw new Error(Ao("The `container` option is required."));if(v)return t=x(g),g={root:H(Do(),l.root),tree:Do({descendantName:"tree"}),map:H(Do({descendantName:"map"}),l.map),control:H(Do({descendantName:"control"}),l.control),label:H(Do({descendantName:"label"}),l.label),selectedLabel:H(Do({descendantName:"label",modifierName:"selected"}),l.selectedLabel),input:H(Do({descendantName:"input"}),l.input),redo:H(Do({descendantName:"redo"}),l.redo),disabledRedo:H(Do({descendantName:"redo",modifierName:"disabled"}),l.disabledRedo),reset:H(Do({descendantName:"reset"}),l.reset)},n=T(T({},Fo),c),r=T(T({},{createOptions:function(){return{}},events:{}}),d),i=(Boolean(h)||Boolean(c.HTMLMarker))&&T(T({},{createOptions:function(){return{}},events:{}}),h),u=v,a=function(){q(c,u.maps.OverlayView);var o=K(c);function c(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,e=e.anchor,e=void 0===e?{x:0,y:0}:e;return W(this,c),E(y(t=o.call(this)),"__id",void 0),E(y(t),"anchor",void 0),E(y(t),"offset",void 0),E(y(t),"listeners",void 0),E(y(t),"latLng",void 0),E(y(t),"element",void 0),t.__id=n,t.anchor=e,t.listeners={},t.latLng=new u.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===D(a)?M(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return B(c,[{key:"onAdd",value:function(){this.getPanes().overlayMouseTarget.appendChild(this.element);var e=this.element.getBoundingClientRect();this.offset={x:this.anchor.x+e.width/2,y:this.anchor.y+e.height},this.element.style.width="".concat(e.width,"px")}},{key:"draw",value:function(){var e=this.getProjection().fromLatLngToDivPixel(this.latLng);this.element.style.left="".concat(Math.round(e.x-this.offset.x),"px"),this.element.style.top="".concat(Math.round(e.y-this.offset.y),"px"),this.element.style.zIndex=String(parseInt(this.element.style.top,10))}},{key:"onRemove",value:function(){var t=this;this.element&&(this.element.parentNode.removeChild(this.element),Object.keys(this.listeners).forEach(function(e){t.element.removeEventListener(e,t.listeners[e])}),delete this.element,delete this.listeners)}},{key:"addListener",value:function(e,t){this.listeners[e]=t;var n=this.element;return n.addEventListener(e,t),{remove:function(){return n.removeEventListener(e,t)}}}},{key:"getPosition",value:function(){return this.latLng}}]),c}(),l=i?function(e){var t=e.item,e=j(e,Ho);return new a(T(T(T({},i.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc,className:H(Do({descendantName:"marker"})),template:eo({templateKey:"HTMLMarker",templates:n,data:t})}))}:function(e){var t=e.item,e=j(e,Mo);return new v.maps.Marker(T(T(T({},r.createOptions(t)),e),{},{__id:t.objectID,position:t._geoloc}))},d=i||r,T(T({},Zr(po,function(){return M(null,t)})(T(T({},e),{},{templates:n,renderState:{},container:t,googleReference:v,initialZoom:s,initialPosition:o,cssClasses:g,createMarker:l,markerOptions:d,enableRefine:f,enableClearMapRefinement:m,enableRefineControl:p}))),{},{$$widgetType:"ais.geoSearch"});throw new Error(Ao("The `googleReference` option is required."))},hierarchicalMenu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attributes,i=e.separator,a=e.rootPath,s=e.showParentLevel,o=e.limit,f=e.showMore,f=void 0!==f&&f,m=e.showMoreLimit,p=e.sortBy,g=e.transformItems,v=e.templates,v=void 0===v?{}:v,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),n={root:H(_(),e.root),noRefinementRoot:H(_({modifierName:"noRefinement"}),e.noRefinementRoot),list:H(_({descendantName:"list"}),e.list),childList:H(_({descendantName:"list",modifierName:"child"}),e.childList),item:H(_({descendantName:"item"}),e.item),selectedItem:H(_({descendantName:"item",modifierName:"selected"}),e.selectedItem),parentItem:H(_({descendantName:"item",modifierName:"parent"}),e.parentItem),link:H(_({descendantName:"link"}),e.link),selectedItemLink:H(_({descendantName:"link",modifierName:"selected"}),e.selectedItemLink),label:H(_({descendantName:"label"}),e.label),count:H(_({descendantName:"count"}),e.count),showMore:H(_({descendantName:"showMore"}),e.showMore),disabledShowMore:H(_({descendantName:"showMore",modifierName:"disabled"}),e.disabledShowMore)},c=(e={cssClasses:n,containerNode:t,templates:v,showMore:f,renderState:{}}).cssClasses,u=e.containerNode,l=e.showMore,d=e.templates,h=e.renderState,T(T({},yn(function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?h.templateProps=A({defaultTemplates:Ko,templatesConfig:a.templatesConfig,templates:d}):M(L(Vo,{createURL:n,cssClasses:c,facetValues:r,templateProps:h.templateProps,toggleRefinement:i,showMore:l,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),u)},function(){return M(null,t)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:f,showMoreLimit:m,sortBy:p,transformItems:g})),{},{$$widgetType:"ais.hierarchicalMenu"});throw new Error(zo("The `container` option is required."))},hits:function(e){var t,u,l,d,h,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,e=e.cssClasses,e=void 0===e?{}:e;if(n)return t=x(n),u=(n={containerNode:t,cssClasses:e,renderState:{},templates:a}).renderState,l=n.cssClasses,d=n.containerNode,h=n.templates,T(T({},Nn(_n)(function(e,t){var i,n=e.items,r=e.results,a=e.instantSearchInstance,s=e.insights,o=e.bindEvent,c=e.sendEvent,e=e.banner;t?u.templateProps=A({defaultTemplates:Jo,templatesConfig:a.templatesConfig,templates:h}):(i=Xn({insights:s,sendEvent:c}),M(L(Xo,{hits:n,itemComponent:function(e){var t=e.hit,n=e.index,r=j(e,Zo);return L(S,g({},u.templateProps,{templateKey:"item",rootTagName:"li",rootProps:T(T({},r),{},{onClick:function(e){i(e),r.onClick()},onAuxClick:function(e){i(e),r.onAuxClick()}}),data:T(T({},t),{},{get __hitIndex(){return n}}),bindEvent:o,sendEvent:c}))},sendEvent:c,classNames:l,emptyComponent:function(e){e=g({},(V(e),e));return L(S,g({},u.templateProps,{rootProps:e,templateKey:"empty",data:r,rootTagName:"fragment"}))},banner:e,bannerComponent:h.banner?function(e){return L(S,g({},u.templateProps,{templateKey:"banner",data:e,rootTagName:"fragment"}))}:void 0}),d))},function(){return M(null,t)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"});throw new Error(Yo("The `container` option is required."))},hitsPerPage:function(e){var t,r,i,e=e||{},n=e.container,a=e.items,s=e.cssClasses,s=void 0===s?{}:s,e=e.transformItems;if(n)return t=x(n),n={root:H(rc(),s.root),select:H(rc({descendantName:"select"}),s.select),option:H(rc({descendantName:"option"}),s.option)},r=(s={containerNode:t,cssClasses:n}).containerNode,i=s.cssClasses,T(T({},er(function(e,t){var n=e.items,e=e.refine;t||(t=(_e(n,function(e){return e.isRefined})||{}).value,M(L("div",{className:i.root},L(ec,{cssClasses:i,currentValue:t,options:n,setValue:e})),r))},function(){return M(null,t)})({items:a,transformItems:e})),{},{$$widgetType:"ais.hitsPerPage"});throw new Error(nc("The `container` option is required."))},index:ya,infiniteHits:function(e){var t,h,f,m,p,g,e=e||{},n=e.container,r=e.escapeHTML,i=e.transformItems,a=e.templates,a=void 0===a?{}:a,s=e.cssClasses,s=void 0===s?{}:s,o=e.showPrevious,e=e.cache;if(n)return t=x(n),n={root:H(oc(),s.root),emptyRoot:H(oc({modifierName:"empty"}),s.emptyRoot),item:H(oc({descendantName:"item"}),s.item),list:H(oc({descendantName:"list"}),s.list),loadPrevious:H(oc({descendantName:"loadPrevious"}),s.loadPrevious),disabledLoadPrevious:H(oc({descendantName:"loadPrevious",modifierName:"disabled"}),s.disabledLoadPrevious),loadMore:H(oc({descendantName:"loadMore"}),s.loadMore),disabledLoadMore:H(oc({descendantName:"loadMore",modifierName:"disabled"}),s.disabledLoadMore),bannerRoot:H(oc({descendantName:"banner"}),s.bannerRoot),bannerImage:H(oc({descendantName:"banner-image"}),s.bannerImage),bannerLink:H(oc({descendantName:"banner-link"}),s.bannerLink)},h=(s={containerNode:t,cssClasses:n,templates:a,showPrevious:o,renderState:{}}).containerNode,f=s.cssClasses,m=s.renderState,p=s.templates,g=s.showPrevious,T(T({},Nn(or)(function(e,t){var n=e.items,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent,d=e.sendEvent,e=e.banner;t?m.templateProps=A({defaultTemplates:ac,templatesConfig:c.templatesConfig,templates:p}):M(L(ic,{cssClasses:f,hits:n,results:r,hasShowPrevious:g,showPrevious:a,showMore:i,templateProps:m.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:d,bindEvent:l,banner:e}),h)},function(){return M(null,t)})({escapeHTML:r,transformItems:i,showPrevious:o,cache:e})),{},{$$widgetType:"ais.infiniteHits"});throw new Error(sc("The `container` option is required."))},menu:function(e){var t,c,u,l,d,h,e=e||{},n=e.container,r=e.attribute,i=e.sortBy,a=e.limit,s=e.showMore,o=e.showMoreLimit,f=e.cssClasses,f=void 0===f?{}:f,m=e.templates,m=void 0===m?{}:m,e=e.transformItems;if(n)return t=x(n),n={root:H(lc(),f.root),noRefinementRoot:H(lc({modifierName:"noRefinement"}),f.noRefinementRoot),list:H(lc({descendantName:"list"}),f.list),item:H(lc({descendantName:"item"}),f.item),selectedItem:H(lc({descendantName:"item",modifierName:"selected"}),f.selectedItem),link:H(lc({descendantName:"link"}),f.link),label:H(lc({descendantName:"label"}),f.label),count:H(lc({descendantName:"count"}),f.count),showMore:H(lc({descendantName:"showMore"}),f.showMore),disabledShowMore:H(lc({descendantName:"showMore",modifierName:"disabled"}),f.disabledShowMore)},c=(f={containerNode:t,cssClasses:n,renderState:{},templates:m,showMore:s}).containerNode,u=f.cssClasses,l=f.renderState,d=f.templates,h=f.showMore,T(T({},cr(function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,e=e.canToggleShowMore;t?l.templateProps=A({defaultTemplates:cc,templatesConfig:a.templatesConfig,templates:d}):(t=r.map(function(e){return T(T({},e),{},{url:i(e.value)})}),M(L(Vo,{createURL:i,cssClasses:u,facetValues:t,showMore:h,templateProps:l.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:e}),c))},function(){return M(null,t)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:e})),{},{$$widgetType:"ais.menu"});throw new Error(uc("The `container` option is required."))},menuSelect:function(e){var t,i,a,s,o,e=e||{},n=e.container,r=e.attribute,c=e.sortBy,c=void 0===c?["name:asc"]:c,u=e.limit,u=void 0===u?10:u,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=x(n),n={root:H(mc(),l.root),noRefinementRoot:H(mc({modifierName:"noRefinement"}),l.noRefinementRoot),select:H(mc({descendantName:"select"}),l.select),option:H(mc({descendantName:"option"}),l.option)},i=(l={containerNode:t,cssClasses:n,renderState:{},templates:d}).containerNode,a=l.cssClasses,s=l.renderState,o=l.templates,T(T({},cr(function(e,t){var n=e.refine,r=e.items,e=e.instantSearchInstance;t?s.templateProps=A({defaultTemplates:hc,templatesConfig:e.templatesConfig,templates:o}):M(L(dc,{cssClasses:a,items:r,refine:n,templateProps:s.templateProps}),i)},function(){return M(null,t)})({attribute:r,limit:u,sortBy:c,transformItems:e})),{},{$$widgetType:"ais.menuSelect"});throw new Error(fc("The `container` option is required."))},numericMenu:function(e){var t,a,s,o,c,u,e=e||{},n=e.container,r=e.attribute,i=e.items,l=e.cssClasses,l=void 0===l?{}:l,d=e.templates,d=void 0===d?{}:d,e=e.transformItems;if(n)return t=x(n),n={root:H(vc(),l.root),noRefinementRoot:H(vc({modifierName:"noRefinement"}),l.noRefinementRoot),list:H(vc({descendantName:"list"}),l.list),item:H(vc({descendantName:"item"}),l.item),selectedItem:H(vc({descendantName:"item",modifierName:"selected"}),l.selectedItem),label:H(vc({descendantName:"label"}),l.label),radio:H(vc({descendantName:"radio"}),l.radio),labelText:H(vc({descendantName:"labelText"}),l.labelText)},a=(l={containerNode:t,attribute:r,cssClasses:n,renderState:{},templates:d}).containerNode,s=l.attribute,o=l.cssClasses,c=l.renderState,u=l.templates,T(T({},hr(function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,e=e.items;t?c.templateProps=A({defaultTemplates:pc,templatesConfig:r.templatesConfig,templates:u}):M(L(Vo,{createURL:n,cssClasses:o,facetValues:e,templateProps:c.templateProps,toggleRefinement:i,attribute:s}),a)},function(){return M(null,t)})({attribute:r,items:i,transformItems:e})),{},{$$widgetType:"ais.numericMenu"});throw new Error(gc("The `container` option is required."))},pagination:function(e){var t,u,l,d,h,f,m,p,g,e=e||{},n=e.container,r=e.templates,r=void 0===r?{}:r,i=e.cssClasses,i=void 0===i?{}:i,a=e.totalPages,s=e.padding,o=e.showFirst,o=void 0===o||o,c=e.showLast,c=void 0===c||c,v=e.showPrevious,v=void 0===v||v,y=e.showNext,y=void 0===y||y,e=e.scrollTo,e=void 0===e?"body":e;if(n)return t=x(n),e=!1!==(n=!0===e?"body":e)&&x(n),n={root:H(Rc(),i.root),noRefinementRoot:H(Rc({modifierName:"noRefinement"}),i.noRefinementRoot),list:H(Rc({descendantName:"list"}),i.list),item:H(Rc({descendantName:"item"}),i.item),firstPageItem:H(Rc({descendantName:"item",modifierName:"firstPage"}),i.firstPageItem),lastPageItem:H(Rc({descendantName:"item",modifierName:"lastPage"}),i.lastPageItem),previousPageItem:H(Rc({descendantName:"item",modifierName:"previousPage"}),i.previousPageItem),nextPageItem:H(Rc({descendantName:"item",modifierName:"nextPage"}),i.nextPageItem),pageItem:H(Rc({descendantName:"item",modifierName:"page"}),i.pageItem),selectedItem:H(Rc({descendantName:"item",modifierName:"selected"}),i.selectedItem),disabledItem:H(Rc({descendantName:"item",modifierName:"disabled"}),i.disabledItem),link:H(Rc({descendantName:"link"}),i.link)},i=T(T({},_c),r),u=(r={containerNode:t,cssClasses:n,templates:i,showFirst:o,showLast:c,showPrevious:v,showNext:y,scrollToNode:e}).containerNode,l=r.cssClasses,d=r.templates,h=r.showFirst,f=r.showLast,m=r.showPrevious,p=r.showNext,g=r.scrollToNode,T(T({},vr(function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbPages,a=e.pages,s=e.isFirstPage,o=e.isLastPage,c=e.refine;t||M(L(yc,{createURL:n,cssClasses:l,currentPage:r,templates:d,nbPages:i,pages:a,isFirstPage:s,isLastPage:o,setCurrentPage:function(e){c(e),!1!==g&&g.scrollIntoView()},showFirst:h,showLast:f,showPrevious:m,showNext:p}),u)},function(){return M(null,t)})({totalPages:a,padding:s})),{},{$$widgetType:"ais.pagination"});throw new Error(Sc("The `container` option is required."))},panel:function(e){var e=e||{},t=e.templates,r=void 0===t?{}:t,t=e.hidden,d=void 0===t?function(){return!1}:t,t=e.collapsed,e=e.cssClasses,e=void 0===e?{}:e,h=document.createElement("div"),f=Boolean(t),m="function"==typeof t?t:function(){return!1},p={root:H(Ic(),e.root),noRefinementRoot:H(Ic({modifierName:"noRefinement"}),e.noRefinementRoot),collapsibleRoot:H(Ic({modifierName:"collapsible"}),e.collapsibleRoot),collapsedRoot:H(Ic({modifierName:"collapsed"}),e.collapsedRoot),collapseButton:H(Ic({descendantName:"collapseButton"}),e.collapseButton),collapseIcon:H(Ic({descendantName:"collapseIcon"}),e.collapseIcon),body:H(Ic({descendantName:"body"}),e.body),header:H(Ic({descendantName:"header"}),e.header),footer:H(Ic({descendantName:"footer"}),e.footer)};return function(n){return function(e){var i,a,t,s,o,c,u,l;if(e&&e.container)return i=x(e.container),t={containerNode:i,bodyContainerNode:h,cssClasses:p,templates:T(T({},{collapseButtonText:function(e){e=e.collapsed;return'\n \n ')}}),r)},s=t.containerNode,o=t.bodyContainerNode,c=t.cssClasses,u=t.templates,a=function(e){var t=e.options,n=e.hidden,r=e.collapsible,e=e.collapsed;M(L(wc,{cssClasses:c,hidden:n,collapsible:r,isCollapsed:e,templates:u,data:t,bodyElement:o}),s)},l=n(T(T({},e),{},{container:h})),T(T({},l),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;n