=")||[],1)[0],l=D(s.getNumericRefinement(w,"<=")||[],1)[0],d=void 0===n||""===n,h=void 0===r||""===r,f=kr({min:d?void 0:parseFloat(n),max:h?void 0:parseFloat(r),precision:N}),m=f.min,p=f.max;i=ot(_)||o!==m?ot(_)&&d?_:m:void 0,a=ot(P)||c!==p?ot(P)&&h?P:p:void 0;var g=void 0===i,v=ot(o)&&o<=i,y=g||ot(i)&&(!ot(o)||v),b=void 0===a,R=ot(a)&&a<=c,S=b||ot(a)&&(!ot(c)||R);return(u!==i||l!==a)&&y&&S?(s=s.removeNumericRefinement(w),ot(i)&&(s=s.addNumericRefinement(w,">=",i)),ot(a)&&(s=s.addNumericRefinement(w,"<=",a)),s.resetPage()):null}(i,a,t,n);r&&i.setState(r).search()}}return{$$type:"ais.range",init:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},getRenderState:function(e,t){return W(W({},e),{},{range:W(W({},e.range),{},j({},w,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.helper,r=e.instantSearchInstance,i=Ke(t&&t.disjunctiveFacets||[],function(e){return e.name===w}),a=function(e){return kr({min:ot(_)?_:ot(e.min)?e.min:0,max:ot(P)?P:ot(e.max)?e.max:0,precision:N})}(i&&i.stats||{min:void 0,max:void 0}),s=function(e){var t=D(e.getNumericRefinement(w,">=")||[],1)[0],n=D(e.getNumericRefinement(w,"<=")||[],1)[0];return[ot(t)?t:-1/0,ot(n)?n:1/0]}(n);return{refine:u(n,t?a:{min:void 0,max:void 0}),canRefine:a.min!==a.max,format:c,range:a,sendEvent:function(e){return function(){1!==arguments.length||e.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}}(r),widgetParams:W(W({},o),{},{precision:N}),start:s}},dispose:function(e){var t=e.state;return i(),t.removeDisjunctiveFacet(w).removeNumericRefinement(w)},getWidgetUiState:function(e,t){var n=t.searchParameters.getNumericRefinements(w),r=n[">="],i=void 0===r?[]:r,a=n["<="],s=void 0===a?[]:a;return 0===i.length&&0===s.length?e:W(W({},e),{},{range:W(W({},e.range),{},j({},w,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(w).setQueryParameters({numericRefinements:W(W({},e.numericRefinements),{},j({},w,{}))});ot(_)&&(r=r.addNumericRefinement(w,">=",_)),ot(P)&&(r=r.addNumericRefinement(w,"<=",P));var i=n.range&&n.range[w];if(!i||-1===i.indexOf(":"))return r;var a=D(i.split(":").map(parseFloat),2),s=a[0],o=a[1];return ot(s)&&(!ot(_)||_=")).addNumericRefinement(w,">=",s)),ot(o)&&(!ot(P)||op||g&&!P;return{createURL:function(e){return r(n.resetPage().toggleFacetRefinement(m,e))},items:s,refine:S,searchForItems:d,isFromSearch:!1,canRefine:0="])&&void 0!==t&&t.length)return n[">="][0]}function r(e,t){var n=y(e)===Number(t),r=e.resetPage().removeNumericRefinement(g);return n?r:r.addNumericRefinement(g,"<=",v).addNumericRefinement(g,">=",Number(t))}var b=function(e){return function(e,t){p("click",t),e.setState(r(e.state,t)).search()}.bind(null,e)},R=function(e){var t=e.state,n=e.createURL;return function(e){return n(r(t,e))}};return{$$type:Kr,init:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return W(W({},e),{},{ratingMenu:W(W({},e.ratingMenu),{},j({},g,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.results,r=e.state,i=e.instantSearchInstance,a=e.createURL,s=[];p=p||function(e){var o=e.instantSearchInstance,c=e.helper,u=e.getRefinedStar,l=e.attribute;return function(){for(var e=arguments.length,t=new Array(e),n=0;n=").concat(i)]},attribute:l})}else o.sendEventToInsights(t[0])}}({instantSearchInstance:i,helper:t,getRefinedStar:function(){return y(t.state)},attribute:g});var o=!1,c=0,u=null==n?void 0:n.getFacetValues(g,{});if(n&&u){u.length,function(e){var r=0;e.forEach(function(e){var t=D(e.name.split("."),2)[1],n=void 0===t?"":t;r=Math.max(r,n.length)})}(u);for(var l=y(r),d=function(n){var e=l===n;o=o||e;var t=u.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=v}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0);if(c+=t,l&&!e&&0===t)return"continue";var r=P(new Array(Math.floor(v/1))).map(function(e,t){return 1*t=",r):i.setQueryParameters({numericRefinements:W(W({},i.numericRefinements),{},j({},g,{}))})}}}}function Wr(n,e){var t=1 ":n,i=e.rootPath,a=void 0===i?null:i,o=e.transformItems,c=void 0===o?function(e){return e}:o;if(!t||!Array.isArray(t)||0===t.length)throw new Error(Yr("The `attributes` option expects an array of strings."));var u=D(t,1)[0];function l(e,t){if(t)return e.resetPage().toggleFacetRefinement(u,t);var n=e.getHierarchicalFacetBreadcrumb(u);return 0===n.length?e:e.resetPage().toggleFacetRefinement(u,n[0])}return{$$type:"ais.breadcrumb",init:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){h()},getRenderState:function(e,t){return W(W({},e),{},{breadcrumb:W(W({},e.breadcrumb),{},j({},u,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.createURL,r=e.results,i=e.state;var a=function(){if(!r||0===i.hierarchicalFacets.length)return[];var e=D(i.hierarchicalFacets,1)[0].name,t=r.getFacetValues(e,{}),n=Array.isArray(t.data)?t.data:[];return c(function(n){return n.map(function(e,t){return{label:e.label,value:t+1===n.length?null:n[t+1].value}})}(function n(e){return e.reduce(function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data)&&(e=e.concat(n(t.data)))),e},[])}(n)),{results:r})}();return f.createURL||(f.createURL=function(e){return n(l(t.state,e))}),f.refine||(f.refine=function(e){t.setState(l(t.state,e)).search()}),{canRefine:0")}function li(c,u){return function(e){var t=e||{},a=t.hit,s=t.matchingPatterns,n=t.transformSearchParameters,r=void 0===n?function(e){return e}:n;if(!a)throw new Error(ci("The `hit` option is required."));if(!s)throw new Error(ci("The `matchingPatterns` option is required."));var i=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ge(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return ui({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[ui({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),o=W({},r(new pe.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:i})));return W(W({},oi(c,u)({searchParameters:o})),{},{$$type:"ais.configureRelatedItems"})}}var di=Ve({name:"autocomplete",connector:!0}),hi=Ve({name:"query-rules",connector:!0});function fi(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=tt(i.lastResults||{},a,!0).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(P(e),P(n.filter(function(e){return r.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(t,"-").concat(e))})))},[])}({helper:t,sharedHelperState:a,trackedFilters:r}),c=i([].concat(P(n),P(o))).slice(0,10);st(s,c)||t.overrideStateWithoutTriggeringChangeEvent(W(W({},a),{},{ruleContexts:c}))}function mi(d,e){var h=1= 4.8.0 required."));m=Ue(n.findAnswers,u),b(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(n){var r=this,e=n.state.query;if(!e)return v=!(g=[]),void b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1);g=[],v=!0,b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1),p(m(e,i,W(W({},f),{},{nbHits:s,attributesForPrediction:a}))).then(function(e){if(e){d&&0":7,"=":8,_v:9,"{":10,"&":11,_t:12},R.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,d="",h=[],f=!1,m=0,p=0,g="{{",v="}}";function y(){0"==n.tag&&(n.indent=h[r].text.toString()),h.splice(r,1));else t||h.push({tag:"\n"});f=!1,p=h.length}for(t&&(t=t.split(" "),g=t[0],v=t[1]),m=0;m":m,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};R.walk(e.nodes,n);var r=t.partials[m(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};R.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+h(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=p('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+f(e.n)+'("'+h(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=p('"'+h(e.text)+'"')},"{":e,"&":e},R.walk=function(e,t){for(var n,r=0,i=e.length;r/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});Fi.Template=Ci.Template,Fi.template=Fi.Template;var Ei=Fi,ki=function(e,t,n,r){var i;t[0]=0;for(var a=1;a"===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(Qn),Mi=Ti(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t"}},sa=Ve({name:"breadcrumb"}),oa=Pt("Breadcrumb"),ca={resetLabel:function(){return"Clear refinements"}},ua=Ve({name:"clear-refinements"}),la=Pt("ClearRefinements"),da=Ve({name:"current-refinements"}),ha=Pt("CurrentRefinements"),fa={header:function(){return""},loader:function(){return""},item:function(e){return JSON.stringify(e)}},ma=Ve({name:"answers"}),pa=Pt("Answers"),ga=Ve({name:"dynamic-widgets"}),va=Pt("DynamicWidgets");function ya(e){var t=document.createElement("div");return t.className=va({descendantName:"widget"}),e.appendChild(t),t}function ba(e){var t=e||{},n=t.container,r=t.widgets,i=t.fallbackWidget,a=M(t,["container","widgets","fallbackWidget"]);if(!n)throw new Error(ga("The `container` option is required."));if(!(r&&Array.isArray(r)&&r.every(function(e){return"function"==typeof e})))throw new Error(ga("The `widgets` option expects an array of callbacks."));var s=Ze(n),o=document.createElement("div");o.className=va();var c=new Map,u=[],l=Ri(function(e,t){var n=e.attributesToRender;t&&s.appendChild(o),n.forEach(function(e){if(c.has(e)){var t=c.get(e);o.appendChild(t)}})},function(){s.removeChild(o)})(W(W({},a),{},{widgets:u,fallbackWidget:"function"==typeof i?function(e){var t=e.attribute,n=ya(o);return c.set(t,n),i({attribute:t,container:n})}:void 0}));return W(W({},l),{},{init:function(i){r.forEach(function(e){var t=ya(o),n=e(t),r=nt(n,i);c.set(r,t),u.push(n)}),l.init(i)},$$widgetType:"ais.dynamicWidgets"})}function Ra(e){var t=e.className,n=e.disabled,r=void 0!==n&&n;return Qn("button",{className:t,onClick:e.onClick,disabled:r},e.children)}function Sa(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,a=e.children;return Qn("label",{className:t},Qn("input",{className:n,type:"checkbox",checked:r,onChange:i}),a)}function wa(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,d=e.templateProps;return Qn($n,null,n&&Qn("div",null,r&&Qn("div",{className:t.control},a||!o?Qn(Sa,{classNameLabel:xi(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},Qn(Gi,h({},d,{templateKey:"toggle",rootTagName:"span"}))):Qn(Ra,{className:t.redo,disabled:!o,onClick:u},Qn(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&Qn("div",{className:t.control},Qn(Ra,{className:xi(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},Qn(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),i&&s&&Qn(Ra,{className:t.reset,onClick:l},Qn(Gi,h({},d,{templateKey:"reset",rootTagName:"span"})))))}function _a(e){var t=e.refine,n=e.mapInstance;return t({northEast:n.getBounds().getNorthEast().toJSON(),southWest:n.getBounds().getSouthWest().toJSON()})}function Pa(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0}function Na(e,t){var n=e.items,r=e.position,i=e.currentRefinement,a=e.refine,s=e.clearMapRefinement,o=e.toggleRefineOnMapMove,c=e.isRefineOnMapMove,u=e.setMapMoveSinceLastRefine,l=e.hasMapMoveSinceLastRefine,d=e.isRefinedWithMap,h=e.widgetParams,f=e.instantSearchInstance,m=h.container,p=h.googleReference,g=h.cssClasses,v=h.templates,y=h.initialZoom,b=h.initialPosition,R=h.enableRefine,S=h.enableClearMapRefinement,w=h.enableRefineControl,_=h.mapOptions,P=h.createMarker,N=h.markerOptions,x=h.renderState;if(t){x.isUserInteraction=!0,x.isPendingRefine=!1,x.markers=[];var I=document.createElement("div");I.className=g.root,m.appendChild(I);var T=document.createElement("div");T.className=g.map,I.appendChild(T);var F=document.createElement("div");F.className=g.tree,I.appendChild(F),x.mapInstance=new p.maps.Map(T,W({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:p.maps.ControlPosition.LEFT_TOP}},_));return p.maps.event.addListenerOnce(x.mapInstance,"idle",function(){function e(){x.isUserInteraction&&R&&(u(),c()&&(x.isPendingRefine=!0))}x.mapInstance.addListener("center_changed",e),x.mapInstance.addListener("zoom_changed",e),x.mapInstance.addListener("dragstart",e),x.mapInstance.addListener("idle",function(){x.isUserInteraction&&x.isPendingRefine&&(x.isPendingRefine=!1,_a({mapInstance:x.mapInstance,refine:a}))})}),void(x.templateProps=Ii({templatesConfig:f.templatesConfig,templates:v}))}var C=n.map(function(e){return e.objectID}),E=D(function(e,a){return e.reduce(function(e,t){var n=D(e,2),r=n[0],i=n[1];return a.includes(t.__id)?[r.concat(t),i]:[r,i.concat(t)]},[[],[]])}(x.markers,C),2),k=E[0],j=E[1],L=k.map(function(e){return e.__id}),M=n.filter(function(e){return!L.includes(e.objectID)});j.forEach(function(e){return e.setMap(null)}),x.markers=k.concat(M.map(function(n){var r=P({map:x.mapInstance,item:n});return Object.keys(N.events).forEach(function(t){r.addListener(t,function(e){N.events[t]({map:x.mapInstance,event:e,item:n,marker:r})})}),r}));var H=!l(),O=i?0:null,A=!i&&Boolean(x.markers.length)?function(e,t){var n=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:n.getNorthEast().toJSON(),southWest:n.getSouthWest().toJSON()}}(p,x.markers):i;A&&H?Pa(x,function(){x.mapInstance.fitBounds(new p.maps.LatLngBounds(A.southWest,A.northEast),O)}):H&&Pa(x,function(){x.mapInstance.setCenter(r||b),x.mapInstance.setZoom(y)}),lr(Qn(wa,{cssClasses:g,enableRefine:R,enableRefineControl:w,enableClearMapRefinement:S,isRefineOnMapMove:c(),isRefinedWithMap:d(),hasMapMoveSinceLastRefine:l(),onRefineToggle:o,onRefineClick:function(){return _a({mapInstance:x.mapInstance,refine:a})},onClearClick:s,templateProps:x.templateProps}),m.querySelector(".".concat(g.tree)))}var xa=Qn("p",null,"Your custom HTML Marker"),Ia={HTMLMarker:function(){return xa},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},Ta=Ve({name:"geo-search"}),Fa=Pt("GeoSearch");function Ca(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,s=e.templateKey,o=e.templateData,c=e.subItems;return Qn("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},Qn(Gi,h({},a,{templateKey:s,data:o})),c)}var Ea={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,onChange:ge,onSubmit:ge,onReset:ge,refine:ge},ka=function(){L(i,Kn);var r=O(i);function i(){var s;E(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=n.__.length&&n.__.push({__V:gs}),n.__[e]}function _s(e){return ms=1,function(e,t,n){var i=ws(os++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Cs(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],!(i.__c=cs).u)){cs.u=!0;var a=cs.shouldComponentUpdate;cs.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});return r.every(function(e){return!e.__N})?!a||a.call(this,e,t,n):!r.every(function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})&&(!a||a.call(this,e,t,n))}}return i.__N||i.__}(Cs,e)}function Ps(e){return ms=5,function(e,t){var n=ws(os++,7);return Fs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}(function(){return{current:e}},[])}function Ns(){for(var t;t=ps.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Is),t.__H.__h.forEach(Ts),t.__H.__h=[]}catch(e){t.__H.__h=[],Mn.__e(e,t.__v)}}Mn.__b=function(e){cs=null,vs&&vs(e)},Mn.__r=function(e){ys&&ys(e),os=0;var t=(cs=e.__c).__H;t&&(us===cs?(t.__h=[],cs.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=gs,e.__N=e.i=void 0})):(t.__h.forEach(Is),t.__h.forEach(Ts),t.__h=[])),us=cs},Mn.diffed=function(e){bs&&bs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ps.push(t)&&ls===Mn.requestAnimationFrame||((ls=Mn.requestAnimationFrame)||function(e){function t(){clearTimeout(r),xs&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);xs&&(n=requestAnimationFrame(t))})(Ns)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==gs&&(e.__=e.__V),e.i=void 0,e.__V=gs})),us=cs=null},Mn.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Is),t.__h=t.__h.filter(function(e){return!e.__||Ts(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],Mn.__e(e,t.__v)}}),Rs&&Rs(e,n)},Mn.unmount=function(e){Ss&&Ss(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Is(e)}catch(e){t=e}}),t&&Mn.__e(t,n.__v))};var xs="function"==typeof requestAnimationFrame;function Is(e){var t=cs,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),cs=t}function Ts(e){var t=cs;e.__c=e.__(),cs=t}function Fs(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Cs(e,t){return"function"==typeof t?t(e):t}function Es(t){var e=D(_s(t.isCollapsed),2),n=e[0],r=e[1],i=D(_s(!1),2),a=i[0],s=i[1],o=Ps(null);return function(e,t){var n=ws(os++,3);!Mn.__s&&Fs(n.__H,t)&&(n.__=e,n.i=t,cs.__H.__h.push(n))}(function(){var e=o.current;if(e)return e.appendChild(t.bodyElement),function(){e.removeChild(t.bodyElement)}},[o,t.bodyElement]),a||t.isCollapsed===n||r(t.isCollapsed),Qn("div",{className:xi(t.cssClasses.root,t.hidden&&t.cssClasses.noRefinementRoot,t.collapsible&&t.cssClasses.collapsibleRoot,n&&t.cssClasses.collapsedRoot),hidden:t.hidden},t.templates.header&&Qn("div",{className:t.cssClasses.header},Qn(Gi,{templates:t.templates,templateKey:"header",rootTagName:"span",data:t.data}),t.collapsible&&Qn("button",{className:t.cssClasses.collapseButton,"aria-expanded":!n,onClick:function(e){e.preventDefault(),s(!0),r(function(e){return!e})}},Qn(Gi,{templates:t.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:n}}))),Qn("div",{className:t.cssClasses.body,ref:o}),t.templates.footer&&Qn(Gi,{templates:t.templates,templateKey:"footer",rootProps:{className:t.cssClasses.footer},data:t.data}))}function ks(e){var t=e.url,n=e.theme,r=e.cssClasses;return Qn("div",{className:r.root},Qn("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},Qn("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 572 64",style:{width:"auto"}},Qn("path",{fill:"dark"===n?"#FFF":"#36395A",d:"M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-3.4a10 10 0 0 1-3.3-7.9c0-2.4.6-4.6 1.8-6.4a12 12 0 0 1 5-4.3c2.2-1 4.7-1.6 7.5-1.6s5.5.5 7.6 1.6a12 12 0 0 1 5 4.4c1.2 1.8 1.8 4 1.8 6.7h-6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1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 0 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"}))))}function js(e){var t=e.cssClasses,n=e.templates,r=e.items;return Qn(Gi,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}var Ls=Ve({name:"panel"}),Ms=Pt("Panel"),Hs=Pt("PoweredBy"),Os=Ve({name:"powered-by"}),As=Ve({name:"query-rule-context"}),Ws={default:function(e){var t=e.items;return JSON.stringify(t,null,2)}},Ds=Ve({name:"query-rule-custom-data"}),Bs=Pt("QueryRuleCustomData"),Us=function(){L(a,Kn);var i=O(a);function a(){var r;E(this,a);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,n=e.max,r=(n-t)/34;return[t].concat(P(ht({end:33}).map(function(e){return t+r*(e+1)})),[n])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,r=e.step;if(r)return[].concat(P(ht({start:t,end:n,step:r})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,a=e.cssClasses,s=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,o=s.min,c=s.max,u=this.computeSnapPoints({min:o,max:c,step:n}),l=!1===r?[]:this.computeDefaultPitPoints({min:o,max:c});return Qn("div",{className:xi(a.root,this.isDisabled&&a.disabledRoot)},Qn(co,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:o,max:c,pitComponent:uo,pitPoints:l,snap:!0,snapPoints:u,values:this.isDisabled?[o,c]:i,disabled:this.isDisabled}))}}]),a}(),ho=Ve({name:"range-slider"}),fo=Pt("RangeSlider");function mo(e){var t=e.children,n=e.count,r=e.value,i=e.url,a=e.cssClasses;return n?Qn("a",{className:xi(a.link),"aria-label":"".concat(r," & up"),href:i},t):Qn("div",{className:xi(a.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}function po(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?Qn("div",{className:t.root},Qn(Gi,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),Qn("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},Qn(Gi,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null}function go(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,a=M(e,["nbHits","nbSortedHits","cssClasses","templateProps"]);return Qn("div",{className:xi(r.root)},Qn(Gi,h({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:W({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===l&&(a+=", Page: ".concat(e.state.page||0)),m!==a&&(s(i,e.state,e.results),m=a)}}var h,f=null,m="",p=!0;!0===c&&(p=!1);function g(){d(f)}function v(){d(f)}return{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===a&&(document.addEventListener("click",g),window.addEventListener("beforeunload",v))},render:function(e){var t=e.results,n=e.state;!0!==p?(f={results:t,state:n},h&&clearTimeout(h),h=window.setTimeout(function(){return d(f)},r)):p=!1},dispose:function(){!0===a&&(document.removeEventListener("click",g),window.removeEventListener("beforeunload",v))},getRenderState:function(e,t){return W(W({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,o=t.templates,c=void 0===o?{}:o,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(sa("The `container` option is required."));var d=Ze(n),h={root:xi(oa(),l.root),noRefinementRoot:xi(oa({modifierName:"noRefinement"}),l.noRefinementRoot),list:xi(oa({descendantName:"list"}),l.list),item:xi(oa({descendantName:"item"}),l.item),selectedItem:xi(oa({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:xi(oa({descendantName:"separator"}),l.separator),link:xi(oa({descendantName:"link"}),l.link)},f=function(e){var o=e.containerNode,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,s=e.refine;t?u.templateProps=Ii({defaultTemplates:aa,templatesConfig:i.templatesConfig,templates:l}):lr(Qn(ea,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:d,cssClasses:h,renderState:{},templates:c});return W(W({},Br(f,function(){return lr(null,d)})({attributes:r,separator:i,rootPath:a,transformItems:s})),{},{$$widgetType:"ais.breadcrumb"})},clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.includedAttributes,s=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(ua("The `container` option is required."));var l=Ze(n),d={root:xi(la(),u.root),button:xi(la({descendantName:"button"}),u.button),disabledButton:xi(la({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},h=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.canRefine,i=e.instantSearchInstance;t?o.templateProps=Ii({defaultTemplates:ca,templatesConfig:i.templatesConfig,templates:c}):lr(Qn(ta,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:l,cssClasses:d,renderState:{},templates:i});return W(W({},yn(h,function(){return lr(null,l)})({includedAttributes:a,excludedAttributes:s,transformItems:o})),{},{$$widgetType:"ais.clearRefinements"})},configure:function(e){return W(W({},oi(ge)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,o=t.transformItems;if(!n)throw new Error(da("The `container` option is required."));var c=Ze(n),u={root:xi(ha(),s.root),noRefinementRoot:xi(ha({modifierName:"noRefinement"}),s.noRefinementRoot),list:xi(ha({descendantName:"list"}),s.list),item:xi(ha({descendantName:"item"}),s.item),label:xi(ha({descendantName:"label"}),s.label),category:xi(ha({descendantName:"category"}),s.category),categoryLabel:xi(ha({descendantName:"categoryLabel"}),s.categoryLabel),delete:xi(ha({descendantName:"delete"}),s.delete)};return W(W({},Sn(ra,function(){return lr(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})),{},{$$widgetType:"ais.currentRefinements"})},EXPERIMENTAL_answers:function(e){var t=e||{},n=t.container,r=t.attributesForPrediction,i=t.queryLanguages,a=t.nbHits,s=t.searchDebounceTime,o=t.renderDebounceTime,c=t.escapeHTML,u=t.extraParameters,l=t.templates,d=void 0===l?{}:l,h=t.cssClasses,f=void 0===h?{}:h;if(!n)throw new Error(ma("The `container` option is required."));var m=Ze(n),p={root:xi(pa(),f.root),emptyRoot:xi(pa({modifierName:"empty"}),f.emptyRoot),header:xi(pa({descendantName:"header"}),f.header),loader:xi(pa({descendantName:"loader"}),f.loader),list:xi(pa({descendantName:"list"}),f.list),item:xi(pa({descendantName:"item"}),f.item)},g=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.hits,r=e.isLoading,i=e.instantSearchInstance;t?o.templateProps=Ii({defaultTemplates:fa,templatesConfig:i.templatesConfig,templates:c}):lr(Qn(ia,{cssClasses:s,hits:n,isLoading:r,templateProps:o.templateProps}),a)}}({containerNode:m,cssClasses:p,templates:d,renderState:{}});return W(W({},yi(g,function(){return lr(null,m)})({attributesForPrediction:r,queryLanguages:i,nbHits:a,searchDebounceTime:s,renderDebounceTime:o,escapeHTML:c,extraParameters:u})),{},{$$widgetType:"ais.answers"})},EXPERIMENTAL_configureRelatedItems:function(e){return W(W({},li(ge)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},geoSearch:function(e){var t=e||{},n=t.initialZoom,r=void 0===n?1:n,i=t.initialPosition,a=void 0===i?{lat:0,lng:0}:i,s=t.templates,o=void 0===s?{}:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.builtInMarker,d=void 0===l?{}:l,h=t.customHTMLMarker,f=t.enableRefine,m=void 0===f||f,p=t.enableClearMapRefinement,g=void 0===p||p,v=t.enableRefineControl,y=void 0===v||v,b=t.container,R=t.googleReference,S=M(t,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]);if(!b)throw new Error(Ta("The `container` option is required."));if(!R)throw new Error(Ta("The `googleReference` option is required."));var w=Ze(b),_={root:xi(Fa(),u.root),tree:Fa({descendantName:"tree"}),map:xi(Fa({descendantName:"map"}),u.map),control:xi(Fa({descendantName:"control"}),u.control),label:xi(Fa({descendantName:"label"}),u.label),selectedLabel:xi(Fa({descendantName:"label",modifierName:"selected"}),u.selectedLabel),input:xi(Fa({descendantName:"input"}),u.input),redo:xi(Fa({descendantName:"redo"}),u.redo),disabledRedo:xi(Fa({descendantName:"redo",modifierName:"disabled"}),u.disabledRedo),reset:xi(Fa({descendantName:"reset"}),u.reset)},P=W(W({},Ia),o),N=W(W({},{createOptions:function(){return{}},events:{}}),d),x=(Boolean(h)||Boolean(o.HTMLMarker))&&W(W({},{createOptions:function(){return{}},events:{}}),h),I=function(d){return function(){L(l,d.maps.OverlayView);var u=O(l);function l(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,o=e.anchor,c=void 0===o?{x:0,y:0}:o;return E(this,l),j(H(t=u.call(this)),"__id",void 0),j(H(t),"anchor",void 0),j(H(t),"offset",void 0),j(H(t),"listeners",void 0),j(H(t),"latLng",void 0),j(H(t),"element",void 0),t.__id=n,t.anchor=c,t.listeners={},t.latLng=new d.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===C(a)?lr(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return k(l,[{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}}]),l}()}(R),T=x?function(e){var t=e.item,n=M(e,["item"]);return new I(W(W(W({},x.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc,className:xi(Fa({descendantName:"marker"})),template:Xi({templateKey:"HTMLMarker",templates:P,data:t})}))}:function(e){var t=e.item,n=M(e,["item"]);return new R.maps.Marker(W(W(W({},N.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc}))},F=x||N;return W(W({},ti(Na,function(){return lr(null,w)})(W(W({},S),{},{renderState:{},container:w,googleReference:R,initialZoom:r,initialPosition:a,templates:P,cssClasses:_,createMarker:T,markerOptions:F,enableRefine:m,enableClearMapRefinement:g,enableRefineControl:y}))),{},{$$widgetType:"ais.geoSearch"})},hierarchicalMenu:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.showParentLevel,o=t.limit,c=t.showMore,u=void 0!==c&&c,l=t.showMoreLimit,d=t.sortBy,h=t.transformItems,f=t.templates,m=void 0===f?{}:f,p=t.cssClasses,g=void 0===p?{}:p;if(!n)throw new Error(Ha("The `container` option is required."));var v=Ze(n),y=function(e){var u=e.cssClasses,l=e.containerNode,d=e.showMore,h=e.templates,f=e.renderState;return function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;t?f.templateProps=Ii({defaultTemplates:Ma,templatesConfig:a.templatesConfig,templates:h}):lr(Qn(La,{createURL:n,cssClasses:u,facetValues:r,templateProps:f.templateProps,toggleRefinement:i,showMore:d,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}({cssClasses:{root:xi(Oa(),g.root),noRefinementRoot:xi(Oa({modifierName:"noRefinement"}),g.noRefinementRoot),list:xi(Oa({descendantName:"list"}),g.list),childList:xi(Oa({descendantName:"list",modifierName:"child"}),g.childList),item:xi(Oa({descendantName:"item"}),g.item),selectedItem:xi(Oa({descendantName:"item",modifierName:"selected"}),g.selectedItem),parentItem:xi(Oa({descendantName:"item",modifierName:"parent"}),g.parentItem),link:xi(Oa({descendantName:"link"}),g.link),selectedItemLink:xi(Oa({descendantName:"link",modifierName:"selected"}),g.selectedItemLink),label:xi(Oa({descendantName:"label"}),g.label),count:xi(Oa({descendantName:"count"}),g.count),showMore:xi(Oa({descendantName:"showMore"}),g.showMore),disabledShowMore:xi(Oa({descendantName:"showMore",modifierName:"disabled"}),g.disabledShowMore)},containerNode:v,templates:m,showMore:u,renderState:{}});return W(W({},In(y,function(){return lr(null,v)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:u,showMoreLimit:l,sortBy:d,transformItems:h})),{},{$$widgetType:"ais.hierarchicalMenu"})},hits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o;if(!n)throw new Error(Wa("The `container` option is required."));var u=Ze(n),l={root:xi(Da(),c.root),emptyRoot:xi(Da({modifierName:"empty"}),c.emptyRoot),list:xi(Da({descendantName:"list"}),c.list),item:xi(Da({descendantName:"item"}),c.item)},d=function(e){var o=e.renderState,c=e.cssClasses,u=e.containerNode,l=e.templates;return function(e,t){var n=e.hits,r=e.results,i=e.instantSearchInstance,a=e.insights,s=e.bindEvent;t?o.templateProps=Ii({defaultTemplates:Aa,templatesConfig:i.templatesConfig,templates:l}):lr(Qn(Ba,{cssClasses:c,hits:n,results:r,templateProps:o.templateProps,insights:a,sendEvent:function(e){i.sendEventToInsights(e)},bindEvent:s}),u)}}({containerNode:u,cssClasses:l,renderState:{},templates:s});return W(W({},jn(Tn)(d,function(){return lr(null,u)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"})},hitsPerPage:function(e){var t=e||{},n=t.container,r=t.items,i=t.cssClasses,a=void 0===i?{}:i,s=t.transformItems;if(!n)throw new Error(qa("The `container` option is required."));var o=Ze(n),c={root:xi(Qa(),a.root),select:xi(Qa({descendantName:"select"}),a.select),option:xi(Qa({descendantName:"option"}),a.option)},u=function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.items,r=e.refine;if(!t){var i=(Ke(n,function(e){return e.isRefined})||{}).value;lr(Qn("div",{className:s.root},Qn(Ua,{cssClasses:s,currentValue:i,options:n,setValue:r})),a)}}}({containerNode:o,cssClasses:c});return W(W({},fr(u,function(){return lr(null,o)})({items:r,transformItems:s})),{},{$$widgetType:"ais.hitsPerPage"})},index:wt,infiniteHits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o,u=t.showPrevious,l=t.cache;if(!n)throw new Error($a("The `container` option is required."));var d=Ze(n),h={root:xi(Ka(),c.root),emptyRoot:xi(Ka({modifierName:"empty"}),c.emptyRoot),item:xi(Ka({descendantName:"item"}),c.item),list:xi(Ka({descendantName:"list"}),c.list),loadPrevious:xi(Ka({descendantName:"loadPrevious"}),c.loadPrevious),disabledLoadPrevious:xi(Ka({descendantName:"loadPrevious",modifierName:"disabled"}),c.disabledLoadPrevious),loadMore:xi(Ka({descendantName:"loadMore"}),c.loadMore),disabledLoadMore:xi(Ka({descendantName:"loadMore",modifierName:"disabled"}),c.disabledLoadMore)},f=function(e){var d=e.containerNode,h=e.cssClasses,f=e.renderState,m=e.templates,p=e.showPrevious;return function(e,t){var n=e.hits,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent;t?f.templateProps=Ii({defaultTemplates:Va,templatesConfig:c.templatesConfig,templates:m}):lr(Qn(za,{cssClasses:h,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:function(e){c.sendEventToInsights(e)},bindEvent:l}),d)}}({containerNode:d,cssClasses:h,templates:s,showPrevious:u,renderState:{}});return W(W({},jn(yr)(f,function(){return lr(null,d)})({escapeHTML:r,transformItems:i,showPrevious:u,cache:l})),{},{$$widgetType:"ais.infiniteHits"})},menu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=t.limit,s=t.showMore,o=t.showMoreLimit,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(Za("The `container` option is required."));var f=Ze(n),m={root:xi(Ya(),u.root),noRefinementRoot:xi(Ya({modifierName:"noRefinement"}),u.noRefinementRoot),list:xi(Ya({descendantName:"list"}),u.list),item:xi(Ya({descendantName:"item"}),u.item),selectedItem:xi(Ya({descendantName:"item",modifierName:"selected"}),u.selectedItem),link:xi(Ya({descendantName:"link"}),u.link),label:xi(Ya({descendantName:"label"}),u.label),count:xi(Ya({descendantName:"count"}),u.count),showMore:xi(Ya({descendantName:"showMore"}),u.showMore),disabledShowMore:xi(Ya({descendantName:"showMore",modifierName:"disabled"}),u.disabledShowMore)},p=function(e){var l=e.containerNode,d=e.cssClasses,h=e.renderState,f=e.templates,m=e.showMore;return function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;if(t)h.templateProps=Ii({defaultTemplates:Ja,templatesConfig:a.templatesConfig,templates:f});else{var u=r.map(function(e){return W(W({},e),{},{url:i(e.value)})});lr(Qn(La,{createURL:i,cssClasses:d,facetValues:u,showMore:m,templateProps:h.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}}({containerNode:f,cssClasses:m,renderState:{},templates:d,showMore:s});return W(W({},br(p,function(){return lr(null,f)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:h})),{},{$$widgetType:"ais.menu"})},menuSelect:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=void 0===i?["name:asc"]:i,s=t.limit,o=void 0===s?10:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(es("The `container` option is required."));var f=Ze(n),m={root:xi(ts(),u.root),noRefinementRoot:xi(ts({modifierName:"noRefinement"}),u.noRefinementRoot),select:xi(ts({descendantName:"select"}),u.select),option:xi(ts({descendantName:"option"}),u.option)},p=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.instantSearchInstance;t?o.templateProps=Ii({defaultTemplates:Ga,templatesConfig:i.templatesConfig,templates:c}):lr(Qn(Xa,{cssClasses:s,items:r,refine:n,templateProps:o.templateProps}),a)}}({containerNode:f,cssClasses:m,renderState:{},templates:d});return W(W({},br(p,function(){return lr(null,f)})({attribute:r,limit:o,sortBy:a,transformItems:h})),{},{$$widgetType:"ais.menuSelect"})},numericMenu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.items,a=t.cssClasses,s=void 0===a?{}:a,o=t.templates,c=void 0===o?{}:o,u=t.transformItems;if(!n)throw new Error(rs("The `container` option is required."));var l=Ze(n),d={root:xi(is(),s.root),noRefinementRoot:xi(is({modifierName:"noRefinement"}),s.noRefinementRoot),list:xi(is({descendantName:"list"}),s.list),item:xi(is({descendantName:"item"}),s.item),selectedItem:xi(is({descendantName:"item",modifierName:"selected"}),s.selectedItem),label:xi(is({descendantName:"label"}),s.label),radio:xi(is({descendantName:"radio"}),s.radio),labelText:xi(is({descendantName:"labelText"}),s.labelText)},h=function(e){var s=e.containerNode,o=e.attribute,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,a=e.items;t?u.templateProps=Ii({defaultTemplates:ns,templatesConfig:r.templatesConfig,templates:l}):lr(Qn(La,{createURL:n,cssClasses:c,facetValues:a,templateProps:u.templateProps,toggleRefinement:i,attribute:o}),s)}}({containerNode:l,attribute:r,cssClasses:d,renderState:{},templates:c});return W(W({},Rr(h,function(){return lr(null,l)})({attribute:r,items:i,transformItems:u})),{},{$$widgetType:"ais.numericMenu"})},pagination:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.cssClasses,s=void 0===a?{}:a,o=t.totalPages,c=t.padding,u=t.showFirst,l=void 0===u||u,d=t.showLast,h=void 0===d||d,f=t.showPrevious,m=void 0===f||f,p=t.showNext,g=void 0===p||p,v=t.scrollTo,y=void 0===v?"body":v;if(!n)throw new Error(hs("The `container` option is required."));var b=Ze(n),R=!0===y?"body":y,S=!1!==R&&Ze(R),w={root:xi(ds(),s.root),noRefinementRoot:xi(ds({modifierName:"noRefinement"}),s.noRefinementRoot),list:xi(ds({descendantName:"list"}),s.list),item:xi(ds({descendantName:"item"}),s.item),firstPageItem:xi(ds({descendantName:"item",modifierName:"firstPage"}),s.firstPageItem),lastPageItem:xi(ds({descendantName:"item",modifierName:"lastPage"}),s.lastPageItem),previousPageItem:xi(ds({descendantName:"item",modifierName:"previousPage"}),s.previousPageItem),nextPageItem:xi(ds({descendantName:"item",modifierName:"nextPage"}),s.nextPageItem),pageItem:xi(ds({descendantName:"item",modifierName:"page"}),s.pageItem),selectedItem:xi(ds({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:xi(ds({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:xi(ds({descendantName:"link"}),s.link)},_=W(W({},fs),i),P=function(e){var u=e.containerNode,l=e.cssClasses,d=e.templates,h=e.showFirst,f=e.showLast,m=e.showPrevious,p=e.showNext,g=e.scrollToNode;return 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;if(!t){lr(Qn(as,{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)}}}({containerNode:b,cssClasses:w,templates:_,showFirst:l,showLast:h,showPrevious:m,showNext:g,scrollToNode:S});return W(W({},Tr(P,function(){return lr(null,b)})({totalPages:o,padding:c})),{},{$$widgetType:"ais.pagination"})},panel:function(e){var t=e||{},n=t.templates,r=void 0===n?{}:n,i=t.hidden,c=void 0===i?function(){return!1}:i,a=t.collapsed,s=t.cssClasses,o=void 0===s?{}:s,u=document.createElement("div"),l=Boolean(a),d="function"==typeof a?a:function(){return!1},h={root:xi(Ms(),o.root),noRefinementRoot:xi(Ms({modifierName:"noRefinement"}),o.noRefinementRoot),collapsibleRoot:xi(Ms({modifierName:"collapsible"}),o.collapsibleRoot),collapsedRoot:xi(Ms({modifierName:"collapsed"}),o.collapsedRoot),collapseButton:xi(Ms({descendantName:"collapseButton"}),o.collapseButton),collapseIcon:xi(Ms({descendantName:"collapseIcon"}),o.collapseIcon),body:xi(Ms({descendantName:"body"}),o.body),header:xi(Ms({descendantName:"header"}),o.header),footer:xi(Ms({descendantName:"footer"}),o.footer)};return function(t){return function(e){if(!e||!e.container)throw new Error(Ls("The `container` option is required in the widget within the panel."));var i=Ze(e.container),s=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templates;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;lr(Qn(Es,{cssClasses:o,hidden:n,collapsible:r,isCollapsed:i,templates:c,data:t,bodyElement:s}),a)}}({containerNode:i,bodyContainerNode:u,cssClasses:h,templates:W(W({},{header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'')}}),r)}),o=t(W(W({},e),{},{container:u}));return W(W({},o),{},{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 "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(t){return g(this.hierarchicalFacets,function(e){return e.name===t})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(n).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}};var w=S;function _(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=void 0!==t,a=null===t;if(!a&&t=i.length?r:"desc"===i[n]?-r:r}return e.index-t.index}),t.map(function(e){return e.value})};var e=function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},F=function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")},A=function(d){return function(e,t){var n=d.hierarchicalFacets[t],r=d.hierarchicalFacetsRefinements[n.name]&&d.hierarchicalFacetsRefinements[n.name][0]||"",i=d._getHierarchicalFacetSeparator(n),a=d._getHierarchicalRootPath(n),s=d._getHierarchicalShowParentLevel(n),o=I(d._getHierarchicalFacetSortBy(n)),c=e.every(function(e){return e.exhaustive}),u=function(o,c,u,l,d){return function(e,n,t){var r=e;if(0n&&(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},Y.prototype.once=function(e,t){if(!G(t))throw TypeError("listener must be a function");var n=!1;function r(){this.removeListener(e,r),n||(n=!0,t.apply(this,arguments))}return r.listener=t,this.on(e,r),this},Y.prototype.removeListener=function(e,t){var n,r,i,a;if(!G(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(n=this._events[e]).length,r=-1,n===t||G(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(ee(n)){for(a=i;0":">",'"':""","'":"'"},Se=/[&<>"']/g,we=RegExp(Se.source);var _e={"&":"&","<":"<",">":">",""":'"',"'":"'"},Pe=/&(amp|quot|lt|gt|#39);/g,Ne=RegExp(Pe.source);function xe(e){return e&&Ne.test(e)?e.replace(Pe,function(e){return _e[e]}):e}function Ie(e){if(!function(e){return"object"===C(e)&&null!==e}(e)||"[object Object]"!==function(e){return null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}(e))return!1;if(null===Object.getPrototypeOf(e))return!0;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var Te={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},Fe={highlightPreTag:"",highlightPostTag:""};function Ce(e){return function(e){return e&&we.test(e)?e.replace(Se,function(e){return Re[e]}):e}(e).replace(new RegExp(Te.highlightPreTag,"g"),Fe.highlightPreTag).replace(new RegExp(Te.highlightPostTag,"g"),Fe.highlightPostTag)}function Ee(n){return Ie(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return W(W({},e),{},j({},t,Ee(n[t])))},{}):Array.isArray(n)?n.map(Ee):W(W({},n),{},{value:Ce(n.value)})}function ke(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=h({},e);return t._highlightResult&&(t._highlightResult=Ee(t._highlightResult)),t._snippetResult&&(t._snippetResult=Ee(t._snippetResult)),t})).__escaped=!0),e}function je(e){var t=Fe.highlightPreTag,n=Fe.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+n:e.value}).join("")}function Le(e){var c=e.instantSearchInstance,u=e.helper,l=e.attribute,d=e.widgetType;return function(){for(var e=arguments.length,t=new Array(e),n=0;n')).replace(new RegExp(Fe.highlightPostTag,"g"),"".concat(r,">"))}var It=Pt("ReverseHighlight");function Tt(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=(Ge(i._highlightResult,t)||{}).value,c=void 0===o?"":o,u=It({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return je(pt(Ye(c))).replace(new RegExp(Fe.highlightPreTag,"g"),"<".concat(r,' class="').concat(u,'">')).replace(new RegExp(Fe.highlightPostTag,"g"),"".concat(r,">"))}var Ft=Pt("Snippet");function Ct(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=(Ge(i._snippetResult,t)||{}).value,c=void 0===o?"":o,u=Ft({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return c.replace(new RegExp(Fe.highlightPreTag,"g"),"<".concat(r,' class="').concat(u,'">')).replace(new RegExp(Fe.highlightPostTag,"g"),"".concat(r,">"))}var Et=Pt("ReverseSnippet");function kt(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=e.hit,a=e.cssClasses,s=void 0===a?{}:a,o=(Ge(i._snippetResult,t)||{}).value,c=void 0===o?"":o,u=Et({descendantName:"highlighted"})+(s.highlighted?" ".concat(s.highlighted):"");return je(pt(Ye(c))).replace(new RegExp(Fe.highlightPreTag,"g"),"<".concat(r,' class="').concat(u,'">')).replace(new RegExp(Fe.highlightPostTag,"g"),"".concat(r,">"))}function jt(e,t){return function(e){var t,n=e.method,r=e.payload;if("object"!==C(r))throw new Error("The insights helper expects the payload to be an object.");try{t=Me(r)}catch(e){throw new Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(n,'" data-insights-payload="').concat(t,'"')}({method:e,payload:t})}var Lt="_ALGOLIA";function Mt(){return function(e){if("object"===("undefined"==typeof document?"undefined":C(document))&&"string"==typeof document.cookie)for(var t="".concat(e,"="),n=document.cookie.split(";"),r=0;r>6]+Yt[128|63&c]:c<55296||57344<=c?s+=Yt[224|c>>12]+Yt[128|c>>6&63]+Yt[128|63&c]:(o+=1,c=65536+((1023&c)<<10|1023&a.charCodeAt(o)),s+=Yt[240|c>>18]+Yt[128|c>>12&63]+Yt[128|c>>6&63]+Yt[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(Zt(e)){for(var n=[],r=0;r=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attribute,type:e.type,value:t,label:n};return void 0!==e.operator&&(r.operator=e.operator),void 0!==e.count&&(r.count=e.count),void 0!==e.exhaustive&&(r.exhaustive=e.exhaustive),r}function In(x,e){var I=1 ":t,n=e.rootPath,c=void 0===n?null:n,r=e.showParentLevel,u=void 0===r||r,i=e.limit,l=void 0===i?10:i,a=e.showMore,m=void 0!==a&&a,s=e.showMoreLimit,p=void 0===s?20:s,o=e.sortBy,g=void 0===o?En:o,v=e.transformItems,y=void 0===v?function(e){return e}:v;if(!h||!Array.isArray(h)||0===h.length)throw new Error(Cn("The `attributes` option expects an array of strings."));if(!0===m&&p<=l)throw new Error(Cn("The `showMoreLimit` option must be greater than `limit`."));var b,R,S=D(h,1)[0],w=function(){};function _(){w()}var P=!1;function N(){return P?p:l}return{$$type:"ais.hierarchicalMenu",init:function(e){var t=e.instantSearchInstance;x(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;w=function(e,t){return function(){P=!P,t.render(e)}}(e,this),x(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},dispose:function(e){var t=e.state;return I(),t.removeHierarchicalFacet(S).setQueryParameter("maxValuesPerFacet",void 0)},getRenderState:function(e,t){return W(W({},e),{},{hierarchicalMenu:W(W({},e.hierarchicalMenu),{},j({},S,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=e.helper,s=[],o=!1;if(b=b||Le({instantSearchInstance:i,helper:a,attribute:function(e){var t=e.split(f).length-1;return h[t]},widgetType:this.$$type}),R=R||function(e){b("click",e),a.toggleFacetRefinement(S,e).search()},t){var c=t.getFacetValues(S,{sortBy:g,facetOrdering:g===En}),u=c&&!Array.isArray(c)&&c.data?c.data:[],l=(n.maxValuesPerFacet||0)>N()?u.length<=N():u.lengthS()),a=v(c.slice(0,S()).map(function(e){var t=e.name,n=e.escapedValue;e.path;return W(W({},M(e,["name","escapedValue","path"])),{},{label:t,value:n})}),{results:t})}return{items:a,createURL:d,refine:h,sendEvent:l,canRefine:0="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""===i&&""===a?e:W(W({},e),{},{numericMenu:W(W({},e.numericMenu),{},j({},f,"".concat(i,":").concat(a)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.numericMenu&&n.numericMenu[f],i=e.clearRefinements(f);if(!r)return i.setQueryParameters({numericRefinements:W(W({},i.numericRefinements),{},j({},f,{}))});if(-1===r.indexOf(":"))return i.addNumericRefinement(f,"=",Number(r));var a=D(r.split(":").map(parseFloat),2),s=a[0],o=a[1],c=ot(s)?i.addNumericRefinement(f,">=",s):i;return ot(o)?c.addNumericRefinement(f,"<=",o):c},getRenderState:function(e,t){return W(W({},e),{},{numericMenu:W(W({},e.numericMenu),{},j({},f,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.state,r=e.instantSearchInstance,i=e.helper,a=e.createURL;g.refine||(g.refine=function(e){var t=xr(i.state,f,e);g.sendEvent("click",e),i.setState(t).search()}),g.createURL||(g.createURL=function(t){return function(e){return a(xr(t,f,e))}}),g.sendEvent||(g.sendEvent=function(e){var t=e.instantSearchInstance;return function(){1!==arguments.length||t.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}}({instantSearchInstance:r}));var s,o=!t||0===t.nbHits,c=function(i){return m.map(function(e){var t=e.start,n=e.end,r=e.label;return{label:r,value:encodeURI(JSON.stringify({start:t,end:n})),isRefined:Nr(i,f,{start:t,end:n,label:r})}})}(n),u=!0,l=function(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=v(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(o)throw a}}}}(c);try{for(l.s();!(s=l.n()).done;){var d=s.value;if(d.isRefined&&"{}"!==decodeURI(d.value)){u=!1;break}}}catch(e){l.e(e)}finally{l.f()}return{createURL:g.createURL(n),items:p(c,{results:t}),hasNoResults:o,canRefine:!(o&&u),refine:g.refine,sendEvent:g.sendEvent,widgetParams:h}}}}}var Sr=jn(yr),wr=Ve({name:"menu",connector:!0}),_r=["isRefined","name:asc"],Pr=Ve({name:"numeric-menu",connector:!0});function Nr(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end?n.start===n.end?Ir(r,"=",n.start):Ir(r,">=",n.start)&&Ir(r,"<=",n.end):void 0!==n.start?Ir(r,">=",n.start):void 0!==n.end?Ir(r,"<=",n.end):void 0===n.start&&void 0===n.end&&Object.keys(r).every(function(e){return 0===(r[e]||[]).length})}function xr(e,t,n){var r=e,i=JSON.parse(decodeURI(n)),a=r.getNumericRefinements(t);if(void 0===i.start&&void 0===i.end)return r.removeNumericRefinement(t);if(Nr(r,t,i)||(r=r.removeNumericRefinement(t)),void 0!==i.start&&void 0!==i.end){if(i.start>i.end)throw new Error("option.start should be > to option.end");if(i.start===i.end)return r=Ir(a,"=",i.start)?r.removeNumericRefinement(t,"=",i.start):r.addNumericRefinement(t,"=",i.start)}return void 0!==i.start&&(Ir(a,">=",i.start)&&(r=r.removeNumericRefinement(t,">=",i.start)),r=r.addNumericRefinement(t,">=",i.start)),void 0!==i.end&&(Ir(a,"<=",i.end)&&(r=r.removeNumericRefinement(t,"<=",i.end)),r=r.addNumericRefinement(t,"<=",i.end)),"number"==typeof r.page&&(r.page=0),r}function Ir(e,t,n){return void 0!==e[t]&&e[t].includes(n)}function Tr(n,e){var r=1=")||[],1)[0],l=D(s.getNumericRefinement(w,"<=")||[],1)[0],d=void 0===n||""===n,h=void 0===r||""===r,f=kr({min:d?void 0:parseFloat(n),max:h?void 0:parseFloat(r),precision:N}),m=f.min,p=f.max;i=ot(_)||o!==m?ot(_)&&d?_:m:void 0,a=ot(P)||c!==p?ot(P)&&h?P:p:void 0;var g=void 0===i,v=ot(o)&&o<=i,y=g||ot(i)&&(!ot(o)||v),b=void 0===a,R=ot(a)&&a<=c,S=b||ot(a)&&(!ot(c)||R);return(u!==i||l!==a)&&y&&S?(s=s.removeNumericRefinement(w),ot(i)&&(s=s.addNumericRefinement(w,">=",i)),ot(a)&&(s=s.addNumericRefinement(w,"<=",a)),s.resetPage()):null}(i,a,t,n);r&&i.setState(r).search()}}return{$$type:"ais.range",init:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){r(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},getRenderState:function(e,t){return W(W({},e),{},{range:W(W({},e.range),{},j({},w,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.results,n=e.helper,r=e.instantSearchInstance,i=Ke(t&&t.disjunctiveFacets||[],function(e){return e.name===w}),a=function(e){return kr({min:ot(_)?_:ot(e.min)?e.min:0,max:ot(P)?P:ot(e.max)?e.max:0,precision:N})}(i&&i.stats||{min:void 0,max:void 0}),s=function(e){var t=D(e.getNumericRefinement(w,">=")||[],1)[0],n=D(e.getNumericRefinement(w,"<=")||[],1)[0];return[ot(t)?t:-1/0,ot(n)?n:1/0]}(n);return{refine:u(n,t?a:{min:void 0,max:void 0}),canRefine:a.min!==a.max,format:c,range:a,sendEvent:function(e){return function(){1!==arguments.length||e.sendEventToInsights(arguments.length<=0?void 0:arguments[0])}}(r),widgetParams:W(W({},o),{},{precision:N}),start:s}},dispose:function(e){var t=e.state;return i(),t.removeDisjunctiveFacet(w).removeNumericRefinement(w)},getWidgetUiState:function(e,t){var n=t.searchParameters.getNumericRefinements(w),r=n[">="],i=void 0===r?[]:r,a=n["<="],s=void 0===a?[]:a;return 0===i.length&&0===s.length?e:W(W({},e),{},{range:W(W({},e.range),{},j({},w,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.addDisjunctiveFacet(w).setQueryParameters({numericRefinements:W(W({},e.numericRefinements),{},j({},w,{}))});ot(_)&&(r=r.addNumericRefinement(w,">=",_)),ot(P)&&(r=r.addNumericRefinement(w,"<=",P));var i=n.range&&n.range[w];if(!i||-1===i.indexOf(":"))return r;var a=D(i.split(":").map(parseFloat),2),s=a[0],o=a[1];return ot(s)&&(!ot(_)||_=")).addNumericRefinement(w,">=",s)),ot(o)&&(!ot(P)||op||g&&!P;return{createURL:function(e){return r(n.resetPage().toggleFacetRefinement(m,e))},items:s,refine:S,searchForItems:d,isFromSearch:!1,canRefine:0="])&&void 0!==t&&t.length)return n[">="][0]}function r(e,t){var n=y(e)===Number(t),r=e.resetPage().removeNumericRefinement(g);return n?r:r.addNumericRefinement(g,"<=",v).addNumericRefinement(g,">=",Number(t))}var b=function(e){return function(e,t){p("click",t),e.setState(r(e.state,t)).search()}.bind(null,e)},R=function(e){var t=e.state,n=e.createURL;return function(e){return n(r(t,e))}};return{$$type:Kr,init:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!0)},render:function(e){var t=e.instantSearchInstance;n(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:t}),!1)},getRenderState:function(e,t){return W(W({},e),{},{ratingMenu:W(W({},e.ratingMenu),{},j({},g,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.results,r=e.state,i=e.instantSearchInstance,a=e.createURL,s=[];p=p||function(e){var o=e.instantSearchInstance,c=e.helper,u=e.getRefinedStar,l=e.attribute;return function(){for(var e=arguments.length,t=new Array(e),n=0;n=").concat(i)]},attribute:l})}else o.sendEventToInsights(t[0])}}({instantSearchInstance:i,helper:t,getRefinedStar:function(){return y(t.state)},attribute:g});var o=!1,c=0,u=null==n?void 0:n.getFacetValues(g,{});if(n&&u){u.length,function(e){var r=0;e.forEach(function(e){var t=D(e.name.split("."),2)[1],n=void 0===t?"":t;r=Math.max(r,n.length)})}(u);for(var l=y(r),d=function(n){var e=l===n;o=o||e;var t=u.filter(function(e){return Number(e.name)>=n&&Number(e.name)<=v}).map(function(e){return e.count}).reduce(function(e,t){return e+t},0);if(c+=t,l&&!e&&0===t)return"continue";var r=P(new Array(Math.floor(v/1))).map(function(e,t){return 1*t=",r):i.setQueryParameters({numericRefinements:W(W({},i.numericRefinements),{},j({},g,{}))})}}}}function Wr(n,e){var t=1 ":n,i=e.rootPath,a=void 0===i?null:i,o=e.transformItems,c=void 0===o?function(e){return e}:o;if(!t||!Array.isArray(t)||0===t.length)throw new Error(Yr("The `attributes` option expects an array of strings."));var u=D(t,1)[0];function l(e,t){if(t)return e.resetPage().toggleFacetRefinement(u,t);var n=e.getHierarchicalFacetBreadcrumb(u);return 0===n.length?e:e.resetPage().toggleFacetRefinement(u,n[0])}return{$$type:"ais.breadcrumb",init:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(e){d(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!1)},dispose:function(){h()},getRenderState:function(e,t){return W(W({},e),{},{breadcrumb:W(W({},e.breadcrumb),{},j({},u,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(e){var t=e.helper,n=e.createURL,r=e.results,i=e.state;var a=function(){if(!r||0===i.hierarchicalFacets.length)return[];var e=D(i.hierarchicalFacets,1)[0].name,t=r.getFacetValues(e,{}),n=Array.isArray(t.data)?t.data:[];return c(function(n){return n.map(function(e,t){return{label:e.label,value:t+1===n.length?null:n[t+1].value}})}(function n(e){return e.reduce(function(e,t){return t.isRefined&&(e.push({label:t.name,value:t.escapedValue}),Array.isArray(t.data)&&(e=e.concat(n(t.data)))),e},[])}(n)),{results:r})}();return f.createURL||(f.createURL=function(e){return n(l(t.state,e))}),f.refine||(f.refine=function(e){t.setState(l(t.state,e)).search()}),{canRefine:0")}function li(c,u){return function(e){var t=e||{},a=t.hit,s=t.matchingPatterns,n=t.transformSearchParameters,r=void 0===n?function(e){return e}:n;if(!a)throw new Error(ci("The `hit` option is required."));if(!s)throw new Error(ci("The `matchingPatterns` option is required."));var i=Object.keys(s).reduce(function(e,t){var n=s[t],r=Ge(a,t),i=n.score;return Array.isArray(r)?[].concat(P(e),[r.map(function(e){return ui({attributeName:t,attributeValue:e,attributeScore:i})})]):"string"==typeof r?[].concat(P(e),[ui({attributeName:t,attributeValue:r,attributeScore:i})]):e},[]),o=W({},r(new pe.SearchParameters({sumOrFiltersScores:!0,facetFilters:["objectID:-".concat(a.objectID)],optionalFilters:i})));return W(W({},oi(c,u)({searchParameters:o})),{},{$$type:"ais.configureRelatedItems"})}}var di=Ve({name:"autocomplete",connector:!0}),hi=Ve({name:"query-rules",connector:!0});function fi(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.state,s=a.ruleContexts||[],o=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=tt(i.lastResults||{},a,!0).filter(function(e){return e.attribute===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(P(e),P(n.filter(function(e){return r.includes(e)}).map(function(e){return function(e){return e.replace(/[^a-z0-9-_]+/gi,"_")}("ais-".concat(t,"-").concat(e))})))},[])}({helper:t,sharedHelperState:a,trackedFilters:r}),c=i([].concat(P(n),P(o))).slice(0,10);st(s,c)||t.overrideStateWithoutTriggeringChangeEvent(W(W({},a),{},{ruleContexts:c}))}function mi(d,e){var h=1= 4.8.0 required."));m=Ue(n.findAnswers,u),b(W(W({},this.getWidgetRenderState(e)),{},{instantSearchInstance:e.instantSearchInstance}),!0)},render:function(n){var r=this,e=n.state.query;if(!e)return v=!(g=[]),void b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1);g=[],v=!0,b(W(W({},this.getWidgetRenderState(n)),{},{instantSearchInstance:n.instantSearchInstance}),!1),p(m(e,i,W(W({},f),{},{nbHits:s,attributesForPrediction:a}))).then(function(e){if(e){d&&0":7,"=":8,_v:9,"{":10,"&":11,_t:12},R.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,d="",h=[],f=!1,m=0,p=0,g="{{",v="}}";function y(){0"==n.tag&&(n.indent=h[r].text.toString()),h.splice(r,1));else t||h.push({tag:"\n"});f=!1,p=h.length}for(t&&(t=t.split(" "),g=t[0],v=t[1]),m=0;m":m,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};R.walk(e.nodes,n);var r=t.partials[m(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};R.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+h(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=p('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+f(e.n)+'("'+h(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=p('"'+h(e.text)+'"')},"{":e,"&":e},R.walk=function(e,t){for(var n,r=0,i=e.length;r/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var d=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});Fi.Template=Ci.Template,Fi.template=Fi.Template;var Ei=Fi,ki=function(e,t,n,r){var i;t[0]=0;for(var a=1;a"===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(Qn),Mi=Ti(function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t"}},sa=Ve({name:"breadcrumb"}),oa=Pt("Breadcrumb"),ca={resetLabel:function(){return"Clear refinements"}},ua=Ve({name:"clear-refinements"}),la=Pt("ClearRefinements"),da=Ve({name:"current-refinements"}),ha=Pt("CurrentRefinements"),fa={header:function(){return""},loader:function(){return""},item:function(e){return JSON.stringify(e)}},ma=Ve({name:"answers"}),pa=Pt("Answers"),ga=Ve({name:"dynamic-widgets"}),va=Pt("DynamicWidgets");function ya(e){var t=document.createElement("div");return t.className=va({descendantName:"widget"}),e.appendChild(t),t}function ba(e){var t=e||{},n=t.container,r=t.widgets,i=t.fallbackWidget,a=M(t,["container","widgets","fallbackWidget"]);if(!n)throw new Error(ga("The `container` option is required."));if(!(r&&Array.isArray(r)&&r.every(function(e){return"function"==typeof e})))throw new Error(ga("The `widgets` option expects an array of callbacks."));var s=Ze(n),o=document.createElement("div");o.className=va();var c=new Map,u=[],l=Ri(function(e,t){var n=e.attributesToRender;t&&s.appendChild(o),n.forEach(function(e){if(c.has(e)){var t=c.get(e);o.appendChild(t)}})},function(){s.removeChild(o)})(W(W({},a),{},{widgets:u,fallbackWidget:"function"==typeof i?function(e){var t=e.attribute,n=ya(o);return c.set(t,n),i({attribute:t,container:n})}:void 0}));return W(W({},l),{},{init:function(i){r.forEach(function(e){var t=ya(o),n=e(t),r=nt(n,i);c.set(r,t),u.push(n)}),l.init(i)},$$widgetType:"ais.dynamicWidgets"})}function Ra(e){var t=e.className,n=e.disabled,r=void 0!==n&&n;return Qn("button",{className:t,onClick:e.onClick,disabled:r},e.children)}function Sa(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,a=e.children;return Qn("label",{className:t},Qn("input",{className:n,type:"checkbox",checked:r,onChange:i}),a)}function wa(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,d=e.templateProps;return Qn($n,null,n&&Qn("div",null,r&&Qn("div",{className:t.control},a||!o?Qn(Sa,{classNameLabel:xi(t.label,a&&t.selectedLabel),classNameInput:t.input,checked:a,onToggle:c},Qn(Gi,h({},d,{templateKey:"toggle",rootTagName:"span"}))):Qn(Ra,{className:t.redo,disabled:!o,onClick:u},Qn(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&Qn("div",{className:t.control},Qn(Ra,{className:xi(t.redo,!o&&t.disabledRedo),disabled:!o,onClick:u},Qn(Gi,h({},d,{templateKey:"redo",rootTagName:"span"})))),i&&s&&Qn(Ra,{className:t.reset,onClick:l},Qn(Gi,h({},d,{templateKey:"reset",rootTagName:"span"})))))}function _a(e){var t=e.refine,n=e.mapInstance;return t({northEast:n.getBounds().getNorthEast().toJSON(),southWest:n.getBounds().getSouthWest().toJSON()})}function Pa(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0}function Na(e,t){var n=e.items,r=e.position,i=e.currentRefinement,a=e.refine,s=e.clearMapRefinement,o=e.toggleRefineOnMapMove,c=e.isRefineOnMapMove,u=e.setMapMoveSinceLastRefine,l=e.hasMapMoveSinceLastRefine,d=e.isRefinedWithMap,h=e.widgetParams,f=e.instantSearchInstance,m=h.container,p=h.googleReference,g=h.cssClasses,v=h.templates,y=h.initialZoom,b=h.initialPosition,R=h.enableRefine,S=h.enableClearMapRefinement,w=h.enableRefineControl,_=h.mapOptions,P=h.createMarker,N=h.markerOptions,x=h.renderState;if(t){x.isUserInteraction=!0,x.isPendingRefine=!1,x.markers=[];var I=document.createElement("div");I.className=g.root,m.appendChild(I);var T=document.createElement("div");T.className=g.map,I.appendChild(T);var F=document.createElement("div");F.className=g.tree,I.appendChild(F),x.mapInstance=new p.maps.Map(T,W({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:p.maps.ControlPosition.LEFT_TOP}},_));return p.maps.event.addListenerOnce(x.mapInstance,"idle",function(){function e(){x.isUserInteraction&&R&&(u(),c()&&(x.isPendingRefine=!0))}x.mapInstance.addListener("center_changed",e),x.mapInstance.addListener("zoom_changed",e),x.mapInstance.addListener("dragstart",e),x.mapInstance.addListener("idle",function(){x.isUserInteraction&&x.isPendingRefine&&(x.isPendingRefine=!1,_a({mapInstance:x.mapInstance,refine:a}))})}),void(x.templateProps=Ii({templatesConfig:f.templatesConfig,templates:v}))}var C=n.map(function(e){return e.objectID}),E=D(function(e,a){return e.reduce(function(e,t){var n=D(e,2),r=n[0],i=n[1];return a.includes(t.__id)?[r.concat(t),i]:[r,i.concat(t)]},[[],[]])}(x.markers,C),2),k=E[0],j=E[1],L=k.map(function(e){return e.__id}),M=n.filter(function(e){return!L.includes(e.objectID)});j.forEach(function(e){return e.setMap(null)}),x.markers=k.concat(M.map(function(n){var r=P({map:x.mapInstance,item:n});return Object.keys(N.events).forEach(function(t){r.addListener(t,function(e){N.events[t]({map:x.mapInstance,event:e,item:n,marker:r})})}),r}));var H=!l(),O=i?0:null,A=!i&&Boolean(x.markers.length)?function(e,t){var n=t.reduce(function(e,t){return e.extend(t.getPosition())},new e.maps.LatLngBounds);return{northEast:n.getNorthEast().toJSON(),southWest:n.getSouthWest().toJSON()}}(p,x.markers):i;A&&H?Pa(x,function(){x.mapInstance.fitBounds(new p.maps.LatLngBounds(A.southWest,A.northEast),O)}):H&&Pa(x,function(){x.mapInstance.setCenter(r||b),x.mapInstance.setZoom(y)}),lr(Qn(wa,{cssClasses:g,enableRefine:R,enableRefineControl:w,enableClearMapRefinement:S,isRefineOnMapMove:c(),isRefinedWithMap:d(),hasMapMoveSinceLastRefine:l(),onRefineToggle:o,onRefineClick:function(){return _a({mapInstance:x.mapInstance,refine:a})},onClearClick:s,templateProps:x.templateProps}),m.querySelector(".".concat(g.tree)))}var xa=Qn("p",null,"Your custom HTML Marker"),Ia={HTMLMarker:function(){return xa},reset:function(){return"Clear the map refinement"},toggle:function(){return"Search as I move the map"},redo:function(){return"Redo search here"}},Ta=Ve({name:"geo-search"}),Fa=Pt("GeoSearch");function Ca(e){var t=e.className,n=e.handleClick,r=e.facetValueToRefine,i=e.isRefined,a=e.templateProps,s=e.templateKey,o=e.templateData,c=e.subItems;return Qn("li",{className:t,onClick:function(e){n({facetValueToRefine:r,isRefined:i,originalEvent:e})}},Qn(Gi,h({},a,{templateKey:s,data:o})),c)}var Ea={query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,onChange:ge,onSubmit:ge,onReset:ge,refine:ge},ka=function(){L(i,Kn);var r=O(i);function i(){var s;E(this,i);for(var e=arguments.length,t=new Array(e),n=0;n=n.__.length&&n.__.push({__V:gs}),n.__[e]}function _s(e){return ms=1,function(e,t,n){var i=ws(os++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):Cs(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],!(i.__c=cs).u)){cs.u=!0;var a=cs.shouldComponentUpdate;cs.shouldComponentUpdate=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});return r.every(function(e){return!e.__N})?!a||a.call(this,e,t,n):!r.every(function(e){if(!e.__N)return!0;var t=e.__[0];return e.__=e.__N,e.__N=void 0,t===e.__[0]})&&(!a||a.call(this,e,t,n))}}return i.__N||i.__}(Cs,e)}function Ps(e){return ms=5,function(e,t){var n=ws(os++,7);return Fs(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}(function(){return{current:e}},[])}function Ns(){for(var t;t=ps.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(Is),t.__H.__h.forEach(Ts),t.__H.__h=[]}catch(e){t.__H.__h=[],Mn.__e(e,t.__v)}}Mn.__b=function(e){cs=null,vs&&vs(e)},Mn.__r=function(e){ys&&ys(e),os=0;var t=(cs=e.__c).__H;t&&(us===cs?(t.__h=[],cs.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=gs,e.__N=e.i=void 0})):(t.__h.forEach(Is),t.__h.forEach(Ts),t.__h=[])),us=cs},Mn.diffed=function(e){bs&&bs(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==ps.push(t)&&ls===Mn.requestAnimationFrame||((ls=Mn.requestAnimationFrame)||function(e){function t(){clearTimeout(r),xs&&cancelAnimationFrame(n),setTimeout(e)}var n,r=setTimeout(t,100);xs&&(n=requestAnimationFrame(t))})(Ns)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==gs&&(e.__=e.__V),e.i=void 0,e.__V=gs})),us=cs=null},Mn.__c=function(e,n){n.some(function(t){try{t.__h.forEach(Is),t.__h=t.__h.filter(function(e){return!e.__||Ts(e)})}catch(e){n.some(function(e){e.__h&&(e.__h=[])}),n=[],Mn.__e(e,t.__v)}}),Rs&&Rs(e,n)},Mn.unmount=function(e){Ss&&Ss(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Is(e)}catch(e){t=e}}),t&&Mn.__e(t,n.__v))};var xs="function"==typeof requestAnimationFrame;function Is(e){var t=cs,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),cs=t}function Ts(e){var t=cs;e.__c=e.__(),cs=t}function Fs(n,e){return!n||n.length!==e.length||e.some(function(e,t){return e!==n[t]})}function Cs(e,t){return"function"==typeof t?t(e):t}function Es(t){var e=D(_s(t.isCollapsed),2),n=e[0],r=e[1],i=D(_s(!1),2),a=i[0],s=i[1],o=Ps(null);return function(e,t){var n=ws(os++,3);!Mn.__s&&Fs(n.__H,t)&&(n.__=e,n.i=t,cs.__H.__h.push(n))}(function(){var e=o.current;if(e)return e.appendChild(t.bodyElement),function(){e.removeChild(t.bodyElement)}},[o,t.bodyElement]),a||t.isCollapsed===n||r(t.isCollapsed),Qn("div",{className:xi(t.cssClasses.root,t.hidden&&t.cssClasses.noRefinementRoot,t.collapsible&&t.cssClasses.collapsibleRoot,n&&t.cssClasses.collapsedRoot),hidden:t.hidden},t.templates.header&&Qn("div",{className:t.cssClasses.header},Qn(Gi,{templates:t.templates,templateKey:"header",rootTagName:"span",data:t.data}),t.collapsible&&Qn("button",{className:t.cssClasses.collapseButton,"aria-expanded":!n,onClick:function(e){e.preventDefault(),s(!0),r(function(e){return!e})}},Qn(Gi,{templates:t.templates,templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:n}}))),Qn("div",{className:t.cssClasses.body,ref:o}),t.templates.footer&&Qn(Gi,{templates:t.templates,templateKey:"footer",rootProps:{className:t.cssClasses.footer},data:t.data}))}function ks(e){var t=e.url,n=e.theme,r=e.cssClasses;return Qn("div",{className:r.root},Qn("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},Qn("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 572 64",style:{width:"auto"}},Qn("path",{fill:"dark"===n?"#FFF":"#36395A",d:"M16 48.3c-3.4 0-6.3-.6-8.7-1.7A12.4 12.4 0 0 1 1.9 42C.6 40 0 38 0 35.4h6.5a6.7 6.7 0 0 0 3.9 6c1.4.7 3.3 1.1 5.6 1.1 2.2 0 4-.3 5.4-1a7 7 0 0 0 3-2.4 6 6 0 0 0 1-3.4c0-1.5-.6-2.8-1.9-3.7-1.3-1-3.3-1.6-5.9-1.8l-4-.4c-3.7-.3-6.6-1.4-8.8-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 0 9.1 13.9h.5zM452.8 13.4c-6.2 0-11.7 3.3-14.8 8.2a18.5 18.5 0 0 0 3.6 24.3 10.4 10.4 0 0 0 13 .6c2.2-1.5 3.8-3.7 4.5-6.1v7.8c0 2.8-.8 5-2.2 6.3-1.5 1.5-4 2.2-7.5 2.2l-6-.3c-.3 0-.7.2-.8.5l-1.6 5.5c-.1.4.1.8.5 1h.1c2.8.4 5.5.6 7 .6 6.3 0 11-1.4 14-4.1 2.7-2.5 4.2-6.3 4.5-11.4V14.2c0-.5-.4-.8-.8-.8h-13.5zm6.3 8.2v18.3a9.6 9.6 0 0 1-5.6 2h-1a10.3 10.3 0 0 1-8.8-14c1.4-3.7 5-6.3 9-6.3h6.4zM291 31.5A32 32 0 0 1 322.8 0h30.8c.6 0 1.2.5 1.2 1.2v61.5c0 1.1-1.3 1.7-2.2 1l-19.2-17a18 18 0 0 1-11 3.4 18.1 18.1 0 1 1 18.2-14.8c-.1.4-.5.7-.9.6-.1 0-.3 0-.4-.2l-3.8-3.4c-.4-.3-.6-.8-.7-1.4a12 12 0 1 0-2.4 8.3c.4-.4 1-.5 1.6-.2l14.7 13.1v-46H323a26 26 0 1 0 10 49.7c.8-.4 1.6-.2 2.3.3l3 2.7c.3.2.3.7 0 1l-.2.2a32 32 0 0 1-47.2-28.6z"}))))}function js(e){var t=e.cssClasses,n=e.templates,r=e.items;return Qn(Gi,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}var Ls=Ve({name:"panel"}),Ms=Pt("Panel"),Hs=Pt("PoweredBy"),Os=Ve({name:"powered-by"}),As=Ve({name:"query-rule-context"}),Ws={default:function(e){var t=e.items;return JSON.stringify(t,null,2)}},Ds=Ve({name:"query-rule-custom-data"}),Bs=Pt("QueryRuleCustomData"),Us=function(){L(a,Kn);var i=O(a);function a(){var r;E(this,a);for(var e=arguments.length,t=new Array(e),n=0;n=this.props.max}},{key:"computeDefaultPitPoints",value:function(e){var t=e.min,n=e.max,r=(n-t)/34;return[t].concat(P(ht({end:33}).map(function(e){return t+r*(e+1)})),[n])}},{key:"computeSnapPoints",value:function(e){var t=e.min,n=e.max,r=e.step;if(r)return[].concat(P(ht({start:t,end:n,step:r})),[n])}},{key:"render",value:function(){var e=this.props,t=e.tooltips,n=e.step,r=e.pips,i=e.values,a=e.cssClasses,s=this.isDisabled?{min:this.props.min,max:this.props.max+.001}:this.props,o=s.min,c=s.max,u=this.computeSnapPoints({min:o,max:c,step:n}),l=!1===r?[]:this.computeDefaultPitPoints({min:o,max:c});return Qn("div",{className:xi(a.root,this.isDisabled&&a.disabledRoot)},Qn(co,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:o,max:c,pitComponent:uo,pitPoints:l,snap:!0,snapPoints:u,values:this.isDisabled?[o,c]:i,disabled:this.isDisabled}))}}]),a}(),ho=Ve({name:"range-slider"}),fo=Pt("RangeSlider");function mo(e){var t=e.children,n=e.count,r=e.value,i=e.url,a=e.cssClasses;return n?Qn("a",{className:xi(a.link),"aria-label":"".concat(r," & up"),href:i},t):Qn("div",{className:xi(a.link),"aria-label":"".concat(r," & up"),disabled:!0},t)}function po(e){var t=e.cssClasses,n=e.templates,r=e.isRelevantSorted,i=e.isVirtualReplica,a=e.refine;return i?Qn("div",{className:t.root},Qn(Gi,{templateKey:"text",templates:n,rootProps:{className:t.text},data:{isRelevantSorted:r}}),Qn("button",{type:"button",className:t.button,onClick:function(){a(r?0:void 0)}},Qn(Gi,{rootTagName:"span",templateKey:"button",templates:n,data:{isRelevantSorted:r}}))):null}function go(e){var t=e.nbHits,n=e.nbSortedHits,r=e.cssClasses,i=e.templateProps,a=M(e,["nbHits","nbSortedHits","cssClasses","templateProps"]);return Qn("div",{className:xi(r.root)},Qn(Gi,h({},i,{templateKey:"text",rootTagName:"span",rootProps:{className:r.text},data:W({hasManySortedResults:n&&1=")&&r.hasOwnProperty("<="))r[">="]&&r[">="][0]===r["<="]&&r["<="][0]?t.push("".concat(n,"=").concat(n,"_").concat(r[">="])):t.push("".concat(n,"=").concat(n,"_").concat(r[">="],"to").concat(r["<="]));else if(r.hasOwnProperty(">="))t.push("".concat(n,"=").concat(n,"_from").concat(r[">="]));else if(r.hasOwnProperty("<="))t.push("".concat(n,"=").concat(n,"_to").concat(r["<="]));else if(r.hasOwnProperty("=")){var i=[];for(var a in r["="])r["="].hasOwnProperty(a)&&i.push(r["="][a]);t.push("".concat(n,"=").concat(n,"_").concat(i.join("-")))}}return t.join("&")}(e.state.numericRefinements);""!==n&&t.push(n),""!==r&&t.push(r);var i=t.join("&"),a="Query: ".concat(e.state.query||"",", ").concat(i);!0===l&&(a+=", Page: ".concat(e.state.page||0)),m!==a&&(s(i,e.state,e.results),m=a)}}var h,f=null,m="",p=!0;!0===c&&(p=!1);function g(){d(f)}function v(){d(f)}return{$$type:"ais.analytics",$$widgetType:"ais.analytics",init:function(){!0===a&&(document.addEventListener("click",g),window.addEventListener("beforeunload",v))},render:function(e){var t=e.results,n=e.state;!0!==p?(f={results:t,state:n},h&&clearTimeout(h),h=window.setTimeout(function(){return d(f)},r)):p=!1},dispose:function(){!0===a&&(document.removeEventListener("click",g),window.removeEventListener("beforeunload",v))},getRenderState:function(e,t){return W(W({},e),{},{analytics:this.getWidgetRenderState(t)})},getWidgetRenderState:function(){return{widgetParams:e}}}},breadcrumb:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.transformItems,o=t.templates,c=void 0===o?{}:o,u=t.cssClasses,l=void 0===u?{}:u;if(!n)throw new Error(sa("The `container` option is required."));var d=Ze(n),h={root:xi(oa(),l.root),noRefinementRoot:xi(oa({modifierName:"noRefinement"}),l.noRefinementRoot),list:xi(oa({descendantName:"list"}),l.list),item:xi(oa({descendantName:"item"}),l.item),selectedItem:xi(oa({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:xi(oa({descendantName:"separator"}),l.separator),link:xi(oa({descendantName:"link"}),l.link)},f=function(e){var o=e.containerNode,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.canRefine,r=e.createURL,i=e.instantSearchInstance,a=e.items,s=e.refine;t?u.templateProps=Ii({defaultTemplates:aa,templatesConfig:i.templatesConfig,templates:l}):lr(Qn(ea,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:d,cssClasses:h,renderState:{},templates:c});return W(W({},Br(f,function(){return lr(null,d)})({attributes:r,separator:i,rootPath:a,transformItems:s})),{},{$$widgetType:"ais.breadcrumb"})},clearRefinements:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.includedAttributes,s=t.excludedAttributes,o=t.transformItems,c=t.cssClasses,u=void 0===c?{}:c;if(!n)throw new Error(ua("The `container` option is required."));var l=Ze(n),d={root:xi(la(),u.root),button:xi(la({descendantName:"button"}),u.button),disabledButton:xi(la({descendantName:"button",modifierName:"disabled"}),u.disabledButton)},h=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.canRefine,i=e.instantSearchInstance;t?o.templateProps=Ii({defaultTemplates:ca,templatesConfig:i.templatesConfig,templates:c}):lr(Qn(ta,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:l,cssClasses:d,renderState:{},templates:i});return W(W({},yn(h,function(){return lr(null,l)})({includedAttributes:a,excludedAttributes:s,transformItems:o})),{},{$$widgetType:"ais.clearRefinements"})},configure:function(e){return W(W({},oi(ge)({searchParameters:e})),{},{$$widgetType:"ais.configure"})},currentRefinements:function(e){var t=e||{},n=t.container,r=t.includedAttributes,i=t.excludedAttributes,a=t.cssClasses,s=void 0===a?{}:a,o=t.transformItems;if(!n)throw new Error(da("The `container` option is required."));var c=Ze(n),u={root:xi(ha(),s.root),noRefinementRoot:xi(ha({modifierName:"noRefinement"}),s.noRefinementRoot),list:xi(ha({descendantName:"list"}),s.list),item:xi(ha({descendantName:"item"}),s.item),label:xi(ha({descendantName:"label"}),s.label),category:xi(ha({descendantName:"category"}),s.category),categoryLabel:xi(ha({descendantName:"categoryLabel"}),s.categoryLabel),delete:xi(ha({descendantName:"delete"}),s.delete)};return W(W({},Sn(ra,function(){return lr(null,c)})({container:c,cssClasses:u,includedAttributes:r,excludedAttributes:i,transformItems:o})),{},{$$widgetType:"ais.currentRefinements"})},EXPERIMENTAL_answers:function(e){var t=e||{},n=t.container,r=t.attributesForPrediction,i=t.queryLanguages,a=t.nbHits,s=t.searchDebounceTime,o=t.renderDebounceTime,c=t.escapeHTML,u=t.extraParameters,l=t.templates,d=void 0===l?{}:l,h=t.cssClasses,f=void 0===h?{}:h;if(!n)throw new Error(ma("The `container` option is required."));var m=Ze(n),p={root:xi(pa(),f.root),emptyRoot:xi(pa({modifierName:"empty"}),f.emptyRoot),header:xi(pa({descendantName:"header"}),f.header),loader:xi(pa({descendantName:"loader"}),f.loader),list:xi(pa({descendantName:"list"}),f.list),item:xi(pa({descendantName:"item"}),f.item)},g=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.hits,r=e.isLoading,i=e.instantSearchInstance;t?o.templateProps=Ii({defaultTemplates:fa,templatesConfig:i.templatesConfig,templates:c}):lr(Qn(ia,{cssClasses:s,hits:n,isLoading:r,templateProps:o.templateProps}),a)}}({containerNode:m,cssClasses:p,templates:d,renderState:{}});return W(W({},yi(g,function(){return lr(null,m)})({attributesForPrediction:r,queryLanguages:i,nbHits:a,searchDebounceTime:s,renderDebounceTime:o,escapeHTML:c,extraParameters:u})),{},{$$widgetType:"ais.answers"})},EXPERIMENTAL_configureRelatedItems:function(e){return W(W({},li(ge)(e)),{},{$$widgetType:"ais.configureRelatedItems"})},geoSearch:function(e){var t=e||{},n=t.initialZoom,r=void 0===n?1:n,i=t.initialPosition,a=void 0===i?{lat:0,lng:0}:i,s=t.templates,o=void 0===s?{}:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.builtInMarker,d=void 0===l?{}:l,h=t.customHTMLMarker,f=t.enableRefine,m=void 0===f||f,p=t.enableClearMapRefinement,g=void 0===p||p,v=t.enableRefineControl,y=void 0===v||v,b=t.container,R=t.googleReference,S=M(t,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]);if(!b)throw new Error(Ta("The `container` option is required."));if(!R)throw new Error(Ta("The `googleReference` option is required."));var w=Ze(b),_={root:xi(Fa(),u.root),tree:Fa({descendantName:"tree"}),map:xi(Fa({descendantName:"map"}),u.map),control:xi(Fa({descendantName:"control"}),u.control),label:xi(Fa({descendantName:"label"}),u.label),selectedLabel:xi(Fa({descendantName:"label",modifierName:"selected"}),u.selectedLabel),input:xi(Fa({descendantName:"input"}),u.input),redo:xi(Fa({descendantName:"redo"}),u.redo),disabledRedo:xi(Fa({descendantName:"redo",modifierName:"disabled"}),u.disabledRedo),reset:xi(Fa({descendantName:"reset"}),u.reset)},P=W(W({},Ia),o),N=W(W({},{createOptions:function(){return{}},events:{}}),d),x=(Boolean(h)||Boolean(o.HTMLMarker))&&W(W({},{createOptions:function(){return{}},events:{}}),h),I=function(d){return function(){L(l,d.maps.OverlayView);var u=O(l);function l(e){var t,n=e.__id,r=e.position,i=e.map,a=e.template,s=e.className,o=e.anchor,c=void 0===o?{x:0,y:0}:o;return E(this,l),j(H(t=u.call(this)),"__id",void 0),j(H(t),"anchor",void 0),j(H(t),"offset",void 0),j(H(t),"listeners",void 0),j(H(t),"latLng",void 0),j(H(t),"element",void 0),t.__id=n,t.anchor=c,t.listeners={},t.latLng=new d.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute","object"===C(a)?lr(a,t.element):t.element.innerHTML=a,t.setMap(i),t}return k(l,[{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}}]),l}()}(R),T=x?function(e){var t=e.item,n=M(e,["item"]);return new I(W(W(W({},x.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc,className:xi(Fa({descendantName:"marker"})),template:Xi({templateKey:"HTMLMarker",templates:P,data:t})}))}:function(e){var t=e.item,n=M(e,["item"]);return new R.maps.Marker(W(W(W({},N.createOptions(t)),n),{},{__id:t.objectID,position:t._geoloc}))},F=x||N;return W(W({},ti(Na,function(){return lr(null,w)})(W(W({},S),{},{renderState:{},container:w,googleReference:R,initialZoom:r,initialPosition:a,templates:P,cssClasses:_,createMarker:T,markerOptions:F,enableRefine:m,enableClearMapRefinement:g,enableRefineControl:y}))),{},{$$widgetType:"ais.geoSearch"})},hierarchicalMenu:function(e){var t=e||{},n=t.container,r=t.attributes,i=t.separator,a=t.rootPath,s=t.showParentLevel,o=t.limit,c=t.showMore,u=void 0!==c&&c,l=t.showMoreLimit,d=t.sortBy,h=t.transformItems,f=t.templates,m=void 0===f?{}:f,p=t.cssClasses,g=void 0===p?{}:p;if(!n)throw new Error(Ha("The `container` option is required."));var v=Ze(n),y=function(e){var u=e.cssClasses,l=e.containerNode,d=e.showMore,h=e.templates,f=e.renderState;return function(e,t){var n=e.createURL,r=e.items,i=e.refine,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;t?f.templateProps=Ii({defaultTemplates:Ma,templatesConfig:a.templatesConfig,templates:h}):lr(Qn(La,{createURL:n,cssClasses:u,facetValues:r,templateProps:f.templateProps,toggleRefinement:i,showMore:d,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}({cssClasses:{root:xi(Oa(),g.root),noRefinementRoot:xi(Oa({modifierName:"noRefinement"}),g.noRefinementRoot),list:xi(Oa({descendantName:"list"}),g.list),childList:xi(Oa({descendantName:"list",modifierName:"child"}),g.childList),item:xi(Oa({descendantName:"item"}),g.item),selectedItem:xi(Oa({descendantName:"item",modifierName:"selected"}),g.selectedItem),parentItem:xi(Oa({descendantName:"item",modifierName:"parent"}),g.parentItem),link:xi(Oa({descendantName:"link"}),g.link),selectedItemLink:xi(Oa({descendantName:"link",modifierName:"selected"}),g.selectedItemLink),label:xi(Oa({descendantName:"label"}),g.label),count:xi(Oa({descendantName:"count"}),g.count),showMore:xi(Oa({descendantName:"showMore"}),g.showMore),disabledShowMore:xi(Oa({descendantName:"showMore",modifierName:"disabled"}),g.disabledShowMore)},containerNode:v,templates:m,showMore:u,renderState:{}});return W(W({},In(y,function(){return lr(null,v)})({attributes:r,separator:i,rootPath:a,showParentLevel:s,limit:o,showMore:u,showMoreLimit:l,sortBy:d,transformItems:h})),{},{$$widgetType:"ais.hierarchicalMenu"})},hits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o;if(!n)throw new Error(Wa("The `container` option is required."));var u=Ze(n),l={root:xi(Da(),c.root),emptyRoot:xi(Da({modifierName:"empty"}),c.emptyRoot),list:xi(Da({descendantName:"list"}),c.list),item:xi(Da({descendantName:"item"}),c.item)},d=function(e){var o=e.renderState,c=e.cssClasses,u=e.containerNode,l=e.templates;return function(e,t){var n=e.hits,r=e.results,i=e.instantSearchInstance,a=e.insights,s=e.bindEvent;t?o.templateProps=Ii({defaultTemplates:Aa,templatesConfig:i.templatesConfig,templates:l}):lr(Qn(Ba,{cssClasses:c,hits:n,results:r,templateProps:o.templateProps,insights:a,sendEvent:function(e){i.sendEventToInsights(e)},bindEvent:s}),u)}}({containerNode:u,cssClasses:l,renderState:{},templates:s});return W(W({},jn(Tn)(d,function(){return lr(null,u)})({escapeHTML:r,transformItems:i})),{},{$$widgetType:"ais.hits"})},hitsPerPage:function(e){var t=e||{},n=t.container,r=t.items,i=t.cssClasses,a=void 0===i?{}:i,s=t.transformItems;if(!n)throw new Error(qa("The `container` option is required."));var o=Ze(n),c={root:xi(Qa(),a.root),select:xi(Qa({descendantName:"select"}),a.select),option:xi(Qa({descendantName:"option"}),a.option)},u=function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.items,r=e.refine;if(!t){var i=(Ke(n,function(e){return e.isRefined})||{}).value;lr(Qn("div",{className:s.root},Qn(Ua,{cssClasses:s,currentValue:i,options:n,setValue:r})),a)}}}({containerNode:o,cssClasses:c});return W(W({},fr(u,function(){return lr(null,o)})({items:r,transformItems:s})),{},{$$widgetType:"ais.hitsPerPage"})},index:wt,infiniteHits:function(e){var t=e||{},n=t.container,r=t.escapeHTML,i=t.transformItems,a=t.templates,s=void 0===a?{}:a,o=t.cssClasses,c=void 0===o?{}:o,u=t.showPrevious,l=t.cache;if(!n)throw new Error($a("The `container` option is required."));var d=Ze(n),h={root:xi(Ka(),c.root),emptyRoot:xi(Ka({modifierName:"empty"}),c.emptyRoot),item:xi(Ka({descendantName:"item"}),c.item),list:xi(Ka({descendantName:"list"}),c.list),loadPrevious:xi(Ka({descendantName:"loadPrevious"}),c.loadPrevious),disabledLoadPrevious:xi(Ka({descendantName:"loadPrevious",modifierName:"disabled"}),c.disabledLoadPrevious),loadMore:xi(Ka({descendantName:"loadMore"}),c.loadMore),disabledLoadMore:xi(Ka({descendantName:"loadMore",modifierName:"disabled"}),c.disabledLoadMore)},f=function(e){var d=e.containerNode,h=e.cssClasses,f=e.renderState,m=e.templates,p=e.showPrevious;return function(e,t){var n=e.hits,r=e.results,i=e.showMore,a=e.showPrevious,s=e.isFirstPage,o=e.isLastPage,c=e.instantSearchInstance,u=e.insights,l=e.bindEvent;t?f.templateProps=Ii({defaultTemplates:Va,templatesConfig:c.templatesConfig,templates:m}):lr(Qn(za,{cssClasses:h,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u,sendEvent:function(e){c.sendEventToInsights(e)},bindEvent:l}),d)}}({containerNode:d,cssClasses:h,templates:s,showPrevious:u,renderState:{}});return W(W({},jn(yr)(f,function(){return lr(null,d)})({escapeHTML:r,transformItems:i,showPrevious:u,cache:l})),{},{$$widgetType:"ais.infiniteHits"})},menu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=t.limit,s=t.showMore,o=t.showMoreLimit,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(Za("The `container` option is required."));var f=Ze(n),m={root:xi(Ya(),u.root),noRefinementRoot:xi(Ya({modifierName:"noRefinement"}),u.noRefinementRoot),list:xi(Ya({descendantName:"list"}),u.list),item:xi(Ya({descendantName:"item"}),u.item),selectedItem:xi(Ya({descendantName:"item",modifierName:"selected"}),u.selectedItem),link:xi(Ya({descendantName:"link"}),u.link),label:xi(Ya({descendantName:"label"}),u.label),count:xi(Ya({descendantName:"count"}),u.count),showMore:xi(Ya({descendantName:"showMore"}),u.showMore),disabledShowMore:xi(Ya({descendantName:"showMore",modifierName:"disabled"}),u.disabledShowMore)},p=function(e){var l=e.containerNode,d=e.cssClasses,h=e.renderState,f=e.templates,m=e.showMore;return function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance,s=e.isShowingMore,o=e.toggleShowMore,c=e.canToggleShowMore;if(t)h.templateProps=Ii({defaultTemplates:Ja,templatesConfig:a.templatesConfig,templates:f});else{var u=r.map(function(e){return W(W({},e),{},{url:i(e.value)})});lr(Qn(La,{createURL:i,cssClasses:d,facetValues:u,showMore:m,templateProps:h.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}}({containerNode:f,cssClasses:m,renderState:{},templates:d,showMore:s});return W(W({},br(p,function(){return lr(null,f)})({attribute:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,transformItems:h})),{},{$$widgetType:"ais.menu"})},menuSelect:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.sortBy,a=void 0===i?["name:asc"]:i,s=t.limit,o=void 0===s?10:s,c=t.cssClasses,u=void 0===c?{}:c,l=t.templates,d=void 0===l?{}:l,h=t.transformItems;if(!n)throw new Error(es("The `container` option is required."));var f=Ze(n),m={root:xi(ts(),u.root),noRefinementRoot:xi(ts({modifierName:"noRefinement"}),u.noRefinementRoot),select:xi(ts({descendantName:"select"}),u.select),option:xi(ts({descendantName:"option"}),u.option)},p=function(e){var a=e.containerNode,s=e.cssClasses,o=e.renderState,c=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.instantSearchInstance;t?o.templateProps=Ii({defaultTemplates:Ga,templatesConfig:i.templatesConfig,templates:c}):lr(Qn(Xa,{cssClasses:s,items:r,refine:n,templateProps:o.templateProps}),a)}}({containerNode:f,cssClasses:m,renderState:{},templates:d});return W(W({},br(p,function(){return lr(null,f)})({attribute:r,limit:o,sortBy:a,transformItems:h})),{},{$$widgetType:"ais.menuSelect"})},numericMenu:function(e){var t=e||{},n=t.container,r=t.attribute,i=t.items,a=t.cssClasses,s=void 0===a?{}:a,o=t.templates,c=void 0===o?{}:o,u=t.transformItems;if(!n)throw new Error(rs("The `container` option is required."));var l=Ze(n),d={root:xi(is(),s.root),noRefinementRoot:xi(is({modifierName:"noRefinement"}),s.noRefinementRoot),list:xi(is({descendantName:"list"}),s.list),item:xi(is({descendantName:"item"}),s.item),selectedItem:xi(is({descendantName:"item",modifierName:"selected"}),s.selectedItem),label:xi(is({descendantName:"label"}),s.label),radio:xi(is({descendantName:"radio"}),s.radio),labelText:xi(is({descendantName:"labelText"}),s.labelText)},h=function(e){var s=e.containerNode,o=e.attribute,c=e.cssClasses,u=e.renderState,l=e.templates;return function(e,t){var n=e.createURL,r=e.instantSearchInstance,i=e.refine,a=e.items;t?u.templateProps=Ii({defaultTemplates:ns,templatesConfig:r.templatesConfig,templates:l}):lr(Qn(La,{createURL:n,cssClasses:c,facetValues:a,templateProps:u.templateProps,toggleRefinement:i,attribute:o}),s)}}({containerNode:l,attribute:r,cssClasses:d,renderState:{},templates:c});return W(W({},Rr(h,function(){return lr(null,l)})({attribute:r,items:i,transformItems:u})),{},{$$widgetType:"ais.numericMenu"})},pagination:function(e){var t=e||{},n=t.container,r=t.templates,i=void 0===r?{}:r,a=t.cssClasses,s=void 0===a?{}:a,o=t.totalPages,c=t.padding,u=t.showFirst,l=void 0===u||u,d=t.showLast,h=void 0===d||d,f=t.showPrevious,m=void 0===f||f,p=t.showNext,g=void 0===p||p,v=t.scrollTo,y=void 0===v?"body":v;if(!n)throw new Error(hs("The `container` option is required."));var b=Ze(n),R=!0===y?"body":y,S=!1!==R&&Ze(R),w={root:xi(ds(),s.root),noRefinementRoot:xi(ds({modifierName:"noRefinement"}),s.noRefinementRoot),list:xi(ds({descendantName:"list"}),s.list),item:xi(ds({descendantName:"item"}),s.item),firstPageItem:xi(ds({descendantName:"item",modifierName:"firstPage"}),s.firstPageItem),lastPageItem:xi(ds({descendantName:"item",modifierName:"lastPage"}),s.lastPageItem),previousPageItem:xi(ds({descendantName:"item",modifierName:"previousPage"}),s.previousPageItem),nextPageItem:xi(ds({descendantName:"item",modifierName:"nextPage"}),s.nextPageItem),pageItem:xi(ds({descendantName:"item",modifierName:"page"}),s.pageItem),selectedItem:xi(ds({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:xi(ds({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:xi(ds({descendantName:"link"}),s.link)},_=W(W({},fs),i),P=function(e){var u=e.containerNode,l=e.cssClasses,d=e.templates,h=e.showFirst,f=e.showLast,m=e.showPrevious,p=e.showNext,g=e.scrollToNode;return 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;if(!t){lr(Qn(as,{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)}}}({containerNode:b,cssClasses:w,templates:_,showFirst:l,showLast:h,showPrevious:m,showNext:g,scrollToNode:S});return W(W({},Tr(P,function(){return lr(null,b)})({totalPages:o,padding:c})),{},{$$widgetType:"ais.pagination"})},panel:function(e){var t=e||{},n=t.templates,r=void 0===n?{}:n,i=t.hidden,c=void 0===i?function(){return!1}:i,a=t.collapsed,s=t.cssClasses,o=void 0===s?{}:s,u=document.createElement("div"),l=Boolean(a),d="function"==typeof a?a:function(){return!1},h={root:xi(Ms(),o.root),noRefinementRoot:xi(Ms({modifierName:"noRefinement"}),o.noRefinementRoot),collapsibleRoot:xi(Ms({modifierName:"collapsible"}),o.collapsibleRoot),collapsedRoot:xi(Ms({modifierName:"collapsed"}),o.collapsedRoot),collapseButton:xi(Ms({descendantName:"collapseButton"}),o.collapseButton),collapseIcon:xi(Ms({descendantName:"collapseIcon"}),o.collapseIcon),body:xi(Ms({descendantName:"body"}),o.body),header:xi(Ms({descendantName:"header"}),o.header),footer:xi(Ms({descendantName:"footer"}),o.footer)};return function(t){return function(e){if(!e||!e.container)throw new Error(Ls("The `container` option is required in the widget within the panel."));var i=Ze(e.container),s=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templates;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;lr(Qn(Es,{cssClasses:o,hidden:n,collapsible:r,isCollapsed:i,templates:c,data:t,bodyElement:s}),a)}}({containerNode:i,bodyContainerNode:u,cssClasses:h,templates:W(W({},{header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'')}}),r)}),o=t(W(W({},e),{},{container:u}));return W(W({},o),{},{init:function(){for(var e=arguments.length,t=new Array(e),n=0;n