LocalCDN-Firefox-Chrome-Brave/resources/instantsearch.js/3.7.0/instantsearch.production.mi...

4 lines
288 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*! InstantSearch.js 3.7.0 | © Algolia, Inc. and contributors; MIT License | https://github.com/algolia/instantsearch.js */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).instantsearch=t()}(this,function(){"use strict";function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)}return n}function H(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(n,!0).forEach(function(e){F(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(n).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function I(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e,t,n){return(s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&a(i,n.prototype),i}).apply(null,arguments)}function k(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],0<=t.indexOf(n)||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?o(e):t}function U(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var s,o=e[Symbol.iterator]();!(r=(s=o.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw a}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function b(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var l=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r},e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function n(e,t){return e(t={exports:{}},t.exports),t.exports}var c="object"==typeof e&&e&&e.Object===Object&&e,u="object"==typeof self&&self&&self.Object===Object&&self,N=c||u||Function("return this")(),h=N.Symbol,p=Object.prototype,m=p.hasOwnProperty,v=p.toString,g=h?h.toStringTag:void 0;var y=function(e){var t=m.call(e,g),n=e[g];try{var r=!(e[g]=void 0)}catch(e){}var i=v.call(e);return r&&(t?e[g]=n:delete e[g]),i},w=Object.prototype.toString;var R=function(e){return w.call(e)},S=h?h.toStringTag:void 0;var P=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?y(e):R(e)};var _=function(e){return null!=e&&"object"==typeof e};var x=function(e){return _(e)&&"[object Arguments]"==P(e)},C=Object.prototype,E=C.hasOwnProperty,j=C.propertyIsEnumerable,A=x(function(){return arguments}())?x:function(e){return _(e)&&E.call(e,"callee")&&!j.call(e,"callee")},D=Array.isArray;function B(){return!1}var V=n(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?N.Buffer:void 0,a=(i?i.isBuffer:void 0)||B;e.exports=a}),Q=/^(?:0|[1-9]\d*)$/;var q=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Q.test(e))&&-1<e&&e%1==0&&e<t};var W=function(e){return"number"==typeof e&&-1<e&&e%1==0&&e<=9007199254740991},z={};z["[object Float32Array]"]=z["[object Float64Array]"]=z["[object Int8Array]"]=z["[object Int16Array]"]=z["[object Int32Array]"]=z["[object Uint8Array]"]=z["[object Uint8ClampedArray]"]=z["[object Uint16Array]"]=z["[object Uint32Array]"]=!0,z["[object Arguments]"]=z["[object Array]"]=z["[object ArrayBuffer]"]=z["[object Boolean]"]=z["[object DataView]"]=z["[object Date]"]=z["[object Error]"]=z["[object Function]"]=z["[object Map]"]=z["[object Number]"]=z["[object Object]"]=z["[object RegExp]"]=z["[object Set]"]=z["[object String]"]=z["[object WeakMap]"]=!1;function K(e){return _(e)&&W(e.length)&&!!z[P(e)]}var Y=function(t){return function(e){return t(e)}},$=n(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n&&c.process,a=function(){try{var e=r&&r.require&&r.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}),G=$&&$.isTypedArray,J=G?Y(G):K,Z=Object.prototype.hasOwnProperty;var X=function(e,t){var n=D(e),r=!n&&A(e),i=!n&&!r&&V(e),a=!n&&!r&&!i&&J(e),s=n||r||i||a,o=s?l(e.length,String):[],c=o.length;for(var u in e)!t&&!Z.call(e,u)||s&&("length"==u||i&&("offset"==u||"parent"==u)||a&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||q(u,c))||o.push(u);return o},ee=Object.prototype;var te=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ee)};var ne=function(t,n){return function(e){return t(n(e))}},re=ne(Object.keys,Object),ie=Object.prototype.hasOwnProperty;var ae=function(e){if(!te(e))return re(e);var t=[];for(var n in Object(e))ie.call(e,n)&&"constructor"!=n&&t.push(n);return t};var se=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};var oe=function(e){if(!se(e))return!1;var t=P(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};var ce=function(e){return null!=e&&W(e.length)&&!oe(e)};var ue=function(e){return ce(e)?X(e):ae(e)};var le,he=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},fe=N["__core-js_shared__"],de=(le=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||""))?"Symbol(src)_1."+le:"";var pe=function(e){return!!de&&de in e},me=Function.prototype.toString;var ve=function(e){if(null!=e){try{return me.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ge=/^\[object .+?Constructor\]$/,ye=Function.prototype,be=Object.prototype,we=ye.toString,Re=be.hasOwnProperty,Se=RegExp("^"+we.call(Re).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Pe=function(e){return!(!se(e)||pe(e))&&(oe(e)?Se:ge).test(ve(e))};var _e=function(e,t){return null==e?void 0:e[t]};var Ne=function(e,t){var n=_e(e,t);return Pe(n)?n:void 0},xe=Ne(Object,"create");function Ce(){this.__data__=xe?xe(null):{},this.size=0}function Fe(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Ee=Object.prototype.hasOwnProperty;function je(e){var t=this.__data__;if(xe){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Ee.call(t,e)?t[e]:void 0}var Te=Object.prototype.hasOwnProperty;function Me(e){var t=this.__data__;return xe?void 0!==t[e]:Te.call(t,e)}function Ie(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this}function Le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Le.prototype.clear=Ce,Le.prototype.delete=Fe,Le.prototype.get=je,Le.prototype.has=Me,Le.prototype.set=Ie;var ke=Le;function Oe(){this.__data__=[],this.size=0}var Ae=function(e,t){return e===t||e!=e&&t!=t};var De=function(e,t){for(var n=e.length;n--;)if(Ae(e[n][0],t))return n;return-1},He=Array.prototype.splice;function Ue(e){var t=this.__data__,n=De(t,e);return!(n<0)&&(n==t.length-1?t.pop():He.call(t,n,1),--this.size,!0)}function Be(e){var t=this.__data__,n=De(t,e);return n<0?void 0:t[n][1]}function Ve(e){return-1<De(this.__data__,e)}function Qe(e,t){var n=this.__data__,r=De(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qe.prototype.clear=Oe,qe.prototype.delete=Ue,qe.prototype.get=Be,qe.prototype.has=Ve,qe.prototype.set=Qe;var We=qe,ze=Ne(N,"Map");var Ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var n=e.__data__;return Ke(t)?n["string"==typeof t?"string":"hash"]:n.map};function $e(e){var t=Ye(this,e).delete(e);return this.size-=t?1:0,t}function Ge(e){return Ye(this,e).get(e)}function Je(e){return Ye(this,e).has(e)}function Ze(e,t){var n=Ye(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Xe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Xe.prototype.clear=function(){this.size=0,this.__data__={hash:new ke,map:new(ze||We),string:new ke}},Xe.prototype.delete=$e,Xe.prototype.get=Ge,Xe.prototype.has=Je,Xe.prototype.set=Ze;var et=Xe;function tt(e){return this.__data__.has(e)}function nt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new et;++t<n;)this.add(e[t])}nt.prototype.add=nt.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},nt.prototype.has=tt;var rt=nt;var it=function(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1};function at(e){return e!=e}var st=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1};var ot=function(e,t,n){return t==t?st(e,t,n):it(e,at,n)};var ct=function(e,t){return!!(null==e?0:e.length)&&-1<ot(e,t,0)};function ut(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var lt=function(e,t){return e.has(t)},ht=Math.min;var ft=function(e,t,n){for(var r=n?ut:ct,i=e[0].length,a=e.length,s=a,o=Array(a),c=1/0,u=[];s--;){var l=e[s];s&&t&&(l=he(l,Y(t))),c=ht(l.length,c),o[s]=!n&&(t||120<=i&&120<=l.length)?new rt(s&&l):void 0}l=e[0];var h=-1,f=o[0];e:for(;++h<i&&u.length<c;){var d=l[h],p=t?t(d):d;if(d=n||0!==d?d:0,!(f?lt(f,p):r(u,p,n))){for(s=a;--s;){var m=o[s];if(!(m?lt(m,p):r(e[s],p,n)))continue e}f&&f.push(p),u.push(d)}}return u};function dt(e){return e}var pt=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},mt=Math.max;var vt=function(a,s,o){return s=mt(void 0===s?a.length-1:s,0),function(){for(var e=arguments,t=-1,n=mt(e.length-s,0),r=Array(n);++t<n;)r[t]=e[s+t];t=-1;for(var i=Array(s+1);++t<s;)i[t]=e[t];return i[s]=o(r),pt(a,this,i)}};var gt=function(e){return function(){return e}},yt=function(){try{var e=Ne(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),bt=yt?function(e,t){return yt(e,"toString",{configurable:!0,enumerable:!1,value:gt(t),writable:!0})}:dt,wt=Date.now;var Rt=function(n){var r=0,i=0;return function(){var e=wt(),t=16-(e-i);if(i=e,0<t){if(800<=++r)return arguments[0]}else r=0;return n.apply(void 0,arguments)}},St=Rt(bt);var Pt=function(e,t){return St(vt(e,t,dt),e+"")};var _t=function(e){return _(e)&&ce(e)};function Nt(e){return _t(e)?e:[]}var xt=Pt(function(e){var t=he(e,Nt);return t.length&&t[0]===e[0]?ft(t):[]});var Ct=function(c){return function(e,t,n){for(var r=-1,i=Object(e),a=n(e),s=a.length;s--;){var o=a[c?s:++r];if(!1===t(i[o],o,i))break}return e}}();var Ft=function(e,t){return e&&Ct(e,t,ue)};var Et=function(e){return"function"==typeof e?e:dt};var jt=function(e,t){return e&&Ft(e,Et(t))};var Tt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e};var Mt=function(a,s){return function(e,t){if(null==e)return e;if(!ce(e))return a(e,t);for(var n=e.length,r=s?n:-1,i=Object(e);(s?r--:++r<n)&&!1!==t(i[r],r,i););return e}}(Ft);var It=function(e,t){return(D(e)?Tt:Mt)(e,Et(t))};var Lt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,a=[];++n<r;){var s=e[n];t(s,n,e)&&(a[i++]=s)}return a};function kt(e,r){var i=[];return Mt(e,function(e,t,n){r(e,t,n)&&i.push(e)}),i}function Ot(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function At(e){return this.__data__.get(e)}function Dt(e){return this.__data__.has(e)}function Ht(e,t){var n=this.__data__;if(n instanceof We){var r=n.__data__;if(!ze||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new et(r)}return n.set(e,t),this.size=n.size,this}function Ut(e){var t=this.__data__=new We(e);this.size=t.size}Ut.prototype.clear=function(){this.__data__=new We,this.size=0},Ut.prototype.delete=Ot,Ut.prototype.get=At,Ut.prototype.has=Dt,Ut.prototype.set=Ht;var Bt=Ut;var Vt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1};var Qt=function(e,t,n,r,i,a){var s=1&n,o=e.length,c=t.length;if(o!=c&&!(s&&o<c))return!1;var u=a.get(e);if(u&&a.get(t))return u==t;var l=-1,h=!0,f=2&n?new rt:void 0;for(a.set(e,t),a.set(t,e);++l<o;){var d=e[l],p=t[l];if(r)var m=s?r(p,d,l,t,e,a):r(d,p,l,e,t,a);if(void 0!==m){if(m)continue;h=!1;break}if(f){if(!Vt(t,function(e,t){if(!lt(f,t)&&(d===e||i(d,e,n,r,a)))return f.push(t)})){h=!1;break}}else if(d!==p&&!i(d,p,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h},qt=N.Uint8Array;function Wt(e){var n=-1,r=Array(e.size);return e.forEach(function(e,t){r[++n]=[t,e]}),r}function zt(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var Kt=h?h.prototype:void 0,Yt=Kt?Kt.valueOf:void 0;var $t=function(e,t,n,r,i,a,s){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!a(new qt(e),new qt(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Ae(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var o=Wt;case"[object Set]":var c=1&r;if(o||(o=zt),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var l=Qt(o(e),o(t),r,i,a,s);return s.delete(e),l;case"[object Symbol]":if(Yt)return Yt.call(e)==Yt.call(t)}return!1};var Gt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e};var Jt=function(e,t,n){var r=t(e);return D(e)?r:Gt(r,n(e))};function Zt(){return[]}var Xt=Object.prototype.propertyIsEnumerable,en=Object.getOwnPropertySymbols,tn=en?function(t){return null==t?[]:(t=Object(t),Lt(en(t),function(e){return Xt.call(t,e)}))}:Zt;var nn=function(e){return Jt(e,ue,tn)},rn=Object.prototype.hasOwnProperty;var an=function(e,t,n,r,i,a){var s=1&n,o=nn(e),c=o.length;if(c!=nn(t).length&&!s)return!1;for(var u=c;u--;){var l=o[u];if(!(s?l in t:rn.call(t,l)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var f=!0;a.set(e,t),a.set(t,e);for(var d=s;++u<c;){var p=e[l=o[u]],m=t[l];if(r)var v=s?r(m,p,l,t,e,a):r(p,m,l,e,t,a);if(!(void 0===v?p===m||i(p,m,n,r,a):v)){f=!1;break}d||(d="constructor"==l)}if(f&&!d){var g=e.constructor,y=t.constructor;g!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y)&&(f=!1)}return a.delete(e),a.delete(t),f},sn=Ne(N,"DataView"),on=Ne(N,"Promise"),cn=Ne(N,"Set"),un=Ne(N,"WeakMap"),ln="[object Map]",hn="[object Promise]",fn="[object Set]",dn="[object WeakMap]",pn="[object DataView]",mn=ve(sn),vn=ve(ze),gn=ve(on),yn=ve(cn),bn=ve(un),wn=P;(sn&&wn(new sn(new ArrayBuffer(1)))!=pn||ze&&wn(new ze)!=ln||on&&wn(on.resolve())!=hn||cn&&wn(new cn)!=fn||un&&wn(new un)!=dn)&&(wn=function(e){var t=P(e),n="[object Object]"==t?e.constructor:void 0,r=n?ve(n):"";if(r)switch(r){case mn:return pn;case vn:return ln;case gn:return hn;case yn:return fn;case bn:return dn}return t});var Rn=wn,Sn="[object Arguments]",Pn="[object Array]",_n="[object Object]",Nn=Object.prototype.hasOwnProperty;var xn=function(e,t,n,r,i,a){var s=D(e),o=D(t),c=s?Pn:Rn(e),u=o?Pn:Rn(t),l=(c=c==Sn?_n:c)==_n,h=(u=u==Sn?_n:u)==_n,f=c==u;if(f&&V(e)){if(!V(t))return!1;l=!(s=!0)}if(f&&!l)return a||(a=new Bt),s||J(e)?Qt(e,t,n,r,i,a):$t(e,t,c,n,r,i,a);if(!(1&n)){var d=l&&Nn.call(e,"__wrapped__"),p=h&&Nn.call(t,"__wrapped__");if(d||p){var m=d?e.value():e,v=p?t.value():t;return a||(a=new Bt),i(m,v,n,r,a)}}return f&&(a||(a=new Bt),an(e,t,n,r,i,a))};var Cn=function e(t,n,r,i,a){return t===n||(null==t||null==n||!_(t)&&!_(n)?t!=t&&n!=n:xn(t,n,r,i,e,a))};var Fn=function(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=Object(e);i--;){var o=n[i];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<a;){var c=(o=n[i])[0],u=e[c],l=o[1];if(s&&o[2]){if(void 0===u&&!(c in e))return!1}else{var h=new Bt;if(r)var f=r(u,l,c,e,t,h);if(!(void 0===f?Cn(l,u,3,r,h):f))return!1}}return!0};var En=function(e){return e==e&&!se(e)};var jn=function(e){for(var t=ue(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,En(i)]}return t};var Tn=function(t,n){return function(e){return null!=e&&(e[t]===n&&(void 0!==n||t in Object(e)))}};var Mn=function(t){var n=jn(t);return 1==n.length&&n[0][2]?Tn(n[0][0],n[0][1]):function(e){return e===t||Fn(e,t,n)}};var In=function(e){return"symbol"==typeof e||_(e)&&"[object Symbol]"==P(e)},Ln=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,kn=/^\w*$/;var On=function(e,t){if(D(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!In(e))||(kn.test(e)||!Ln.test(e)||null!=t&&e in Object(t))},An="Expected a function";function Dn(i,a){if("function"!=typeof i||null!=a&&"function"!=typeof a)throw new TypeError(An);var s=function(){var e=arguments,t=a?a.apply(this,e):e[0],n=s.cache;if(n.has(t))return n.get(t);var r=i.apply(this,e);return s.cache=n.set(t,r)||n,r};return s.cache=new(Dn.Cache||et),s}Dn.Cache=et;var Hn=Dn;var Un=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Bn=/\\(\\)?/g,Vn=function(e){var t=Hn(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var i=[];return 46===e.charCodeAt(0)&&i.push(""),e.replace(Un,function(e,t,n,r){i.push(n?r.replace(Bn,"$1"):t||e)}),i}),Qn=1/0,qn=h?h.prototype:void 0,Wn=qn?qn.toString:void 0;var zn=function e(t){if("string"==typeof t)return t;if(D(t))return he(t,e)+"";if(In(t))return Wn?Wn.call(t):"";var n=t+"";return"0"==n&&1/t==-Qn?"-0":n};var Kn=function(e){return null==e?"":zn(e)};var Yn=function(e,t){return D(e)?e:On(e,t)?[e]:Vn(Kn(e))};var $n=function(e){if("string"==typeof e||In(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t};var Gn=function(e,t){for(var n=0,r=(t=Yn(t,e)).length;null!=e&&n<r;)e=e[$n(t[n++])];return n&&n==r?e:void 0};var Jn=function(e,t,n){var r=null==e?void 0:Gn(e,t);return void 0===r?n:r};function Zn(e,t){return null!=e&&t in Object(e)}var Xn=function(e,t,n){for(var r=-1,i=(t=Yn(t,e)).length,a=!1;++r<i;){var s=$n(t[r]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++r!=i?a:!!(i=null==e?0:e.length)&&W(i)&&q(s,i)&&(D(e)||A(e))};var er=function(e,t){return null!=e&&Xn(e,t,Zn)};var tr=function(n,r){return On(n)&&En(r)?Tn($n(n),r):function(e){var t=Jn(e,n);return void 0===t&&t===r?er(e,n):Cn(r,t,3)}};var nr=function(t){return function(e){return null==e?void 0:e[t]}};var rr=function(t){return function(e){return Gn(e,t)}};var ir=function(e){return On(e)?nr($n(e)):rr(e)};var ar=function(e){return"function"==typeof e?e:null==e?dt:"object"==typeof e?D(e)?tr(e[0],e[1]):Mn(e):ir(e)};var sr=function(e,t){return(D(e)?Lt:kt)(e,ar(t))};var or=function(e,r){var i=-1,a=ce(e)?Array(e.length):[];return Mt(e,function(e,t,n){a[++i]=r(e,t,n)}),a};var cr=function(e,t){return(D(e)?he:or)(e,ar(t))};function ur(e,t,n,r){var i=-1,a=null==e?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function lr(e,r,i,a,t){return t(e,function(e,t,n){i=a?(a=!1,e):r(i,e,t,n)}),i}var hr=function(e,t,n){var r=D(e)?ur:lr,i=arguments.length<3;return r(e,ar(t),n,i,Mt)};var fr=function(e,t,n){"__proto__"==t&&yt?yt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},dr=Object.prototype.hasOwnProperty;var pr=function(e,t,n){var r=e[t];dr.call(e,t)&&Ae(r,n)&&(void 0!==n||t in e)||fr(e,t,n)};var mr=function(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var o=t[a],c=r?r(n[o],e[o],o,n,e):void 0;void 0===c&&(c=e[o]),i?fr(n,o,c):pr(n,o,c)}return n};var vr=function(e,t){return e&&mr(t,ue(t),e)};var gr=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},yr=Object.prototype.hasOwnProperty;var br=function(e){if(!se(e))return gr(e);var t=te(e),n=[];for(var r in e)("constructor"!=r||!t&&yr.call(e,r))&&n.push(r);return n};var wr=function(e){return ce(e)?X(e,!0):br(e)};var Rr=function(e,t){return e&&mr(t,wr(t),e)},Sr=n(function(e,t){var n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,i=r&&r.exports===n?N.Buffer:void 0,a=i?i.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=a?a(n):new e.constructor(n);return e.copy(r),r}});var Pr=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t};var _r=function(e,t){return mr(e,tn(e),t)},Nr=ne(Object.getPrototypeOf,Object),xr=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Gt(t,tn(e)),e=Nr(e);return t}:Zt;var Cr=function(e,t){return mr(e,xr(e),t)};var Fr=function(e){return Jt(e,wr,xr)},Er=Object.prototype.hasOwnProperty;var jr=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Er.call(e,"index")&&(n.index=e.index,n.input=e.input),n};var Tr=function(e){var t=new e.constructor(e.byteLength);return new qt(t).set(new qt(e)),t};var Mr=function(e,t){var n=t?Tr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},Ir=/\w*$/;var Lr=function(e){var t=new e.constructor(e.source,Ir.exec(e));return t.lastIndex=e.lastIndex,t},kr=h?h.prototype:void 0,Or=kr?kr.valueOf:void 0;var Ar=function(e){return Or?Object(Or.call(e)):{}};var Dr=function(e,t){var n=t?Tr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};var Hr=function(e,t,n){var r=e.constructor;switch(t){case"[object ArrayBuffer]":return Tr(e);case"[object Boolean]":case"[object Date]":return new r(+e);case"[object DataView]":return Mr(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return Dr(e,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(e);case"[object RegExp]":return Lr(e);case"[object Set]":return new r;case"[object Symbol]":return Ar(e)}},Ur=Object.create;function Br(){}var Vr=function(e){if(!se(e))return{};if(Ur)return Ur(e);Br.prototype=e;var t=new Br;return Br.prototype=void 0,t};var Qr=function(e){return"function"!=typeof e.constructor||te(e)?{}:Vr(Nr(e))};function qr(e){return _(e)&&"[object Map]"==Rn(e)}var Wr=$&&$.isMap,zr=Wr?Y(Wr):qr;function Kr(e){return _(e)&&"[object Set]"==Rn(e)}var Yr=$&&$.isSet,$r=Yr?Y(Yr):Kr,Gr=1,Jr=2,Zr=4,Xr="[object Arguments]",ei="[object Function]",ti="[object GeneratorFunction]",ni="[object Object]",ri={};ri[Xr]=ri["[object Array]"]=ri["[object ArrayBuffer]"]=ri["[object DataView]"]=ri["[object Boolean]"]=ri["[object Date]"]=ri["[object Float32Array]"]=ri["[object Float64Array]"]=ri["[object Int8Array]"]=ri["[object Int16Array]"]=ri["[object Int32Array]"]=ri["[object Map]"]=ri["[object Number]"]=ri[ni]=ri["[object RegExp]"]=ri["[object Set]"]=ri["[object String]"]=ri["[object Symbol]"]=ri["[object Uint8Array]"]=ri["[object Uint8ClampedArray]"]=ri["[object Uint16Array]"]=ri["[object Uint32Array]"]=!0,ri["[object Error]"]=ri[ei]=ri["[object WeakMap]"]=!1;var ii=function n(r,i,a,e,t,s){var o,c=i&Gr,u=i&Jr,l=i&Zr;if(a&&(o=t?a(r,e,t,s):a(r)),void 0!==o)return o;if(!se(r))return r;var h=D(r);if(h){if(o=jr(r),!c)return Pr(r,o)}else{var f=Rn(r),d=f==ei||f==ti;if(V(r))return Sr(r,c);if(f==ni||f==Xr||d&&!t){if(o=u||d?{}:Qr(r),!c)return u?Cr(r,Rr(o,r)):_r(r,vr(o,r))}else{if(!ri[f])return t?r:{};o=Hr(r,f,c)}}s||(s=new Bt);var p=s.get(r);if(p)return p;s.set(r,o),$r(r)?r.forEach(function(e){o.add(n(e,i,a,e,r,s))}):zr(r)&&r.forEach(function(e,t){o.set(t,n(e,i,a,t,r,s))});var m=l?u?Fr:nn:u?keysIn:ue,v=h?void 0:m(r);return Tt(v||r,function(e,t){v&&(e=r[t=e]),pr(o,t,n(e,i,a,t,r,s))}),o};var ai=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};var si=function(e,t,n){var r=-1,i=e.length;t<0&&(t=i<-t?0:i+t),(n=i<n?i:n)<0&&(n+=i),i=n<t?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a};var oi=function(e,t){return t.length<2?e:Gn(e,si(t,0,-1))};var ci=function(e,t){return t=Yn(t,e),null==(e=oi(e,t))||delete e[$n(ai(t))]},ui=Function.prototype,li=Object.prototype,hi=ui.toString,fi=li.hasOwnProperty,di=hi.call(Object);var pi=function(e){if(!_(e)||"[object Object]"!=P(e))return!1;var t=Nr(e);if(null===t)return!0;var n=fi.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&hi.call(n)==di};function mi(e){return pi(e)?void 0:e}var vi=h?h.isConcatSpreadable:void 0;var gi=function(e){return D(e)||A(e)||!!(vi&&e&&e[vi])};var yi=function e(t,n,r,i,a){var s=-1,o=t.length;for(r||(r=gi),a||(a=[]);++s<o;){var c=t[s];0<n&&r(c)?1<n?e(c,n-1,r,i,a):Gt(a,c):i||(a[a.length]=c)}return a};var bi=function(e){return(null==e?0:e.length)?yi(e,1):[]};var wi=function(e){return St(vt(e,void 0,bi),e+"")},Ri=wi(function(t,e){var n={};if(null==t)return n;var r=!1;e=he(e,function(e){return e=Yn(e,t),r||(r=1<e.length),e}),mr(t,Fr(t),n),r&&(n=ii(n,7,mi));for(var i=e.length;i--;)ci(n,e[i]);return n}),Si=/^\s+|\s+$/g,Pi=/^[-+]0x[0-9a-f]+$/i,_i=/^0b[01]+$/i,Ni=/^0o[0-7]+$/i,xi=parseInt;var Ci=function(e){if("number"==typeof e)return e;if(In(e))return NaN;if(se(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=se(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Si,"");var n=_i.test(e);return n||Ni.test(e)?xi(e.slice(2),n?2:8):Pi.test(e)?NaN:+e};var Fi=function(e){return e?(e=Ci(e))!==1/0&&e!==-1/0?e==e?e:0:17976931348623157e292*(e<0?-1:1):0===e?e:0};var Ei=function(e){var t=Fi(e),n=t%1;return t==t?n?t-n:t:0},ji=Math.max;var Ti=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ei(n);return i<0&&(i=ji(r+i,0)),ot(e,t,i)};var Mi=function(e){return"number"==typeof e||_(e)&&"[object Number]"==P(e)};var Ii=function(e){return Mi(e)&&e!=+e},Li=Object.prototype.hasOwnProperty;var ki=function(e){if(null==e)return!0;if(ce(e)&&(D(e)||"string"==typeof e||"function"==typeof e.splice||V(e)||J(e)||A(e)))return!e.length;var t=Rn(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(te(e))return!ae(e).length;for(var n in e)if(Li.call(e,n))return!1;return!0};var Oi=function(e,t){return Cn(e,t)};var Ai=function(e){return void 0===e};var Di=function(e){return"string"==typeof e||!D(e)&&_(e)&&"[object String]"==P(e)};var Hi=function(s){return function(e,t,n){var r=Object(e);if(!ce(e)){var i=ar(t);e=ue(e),t=function(e){return i(r[e],e,r)}}var a=s(e,t,n);return-1<a?r[i?e[a]:a]:void 0}},Ui=Math.max;var Bi=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:Ei(n);return i<0&&(i=Ui(r+i,0)),it(e,ar(t),i)},Vi=Hi(Bi);var Qi=function(e,t,n){var r=e.length;return n=void 0===n?r:n,!t&&r<=n?e:si(e,t,n)};var qi=function(e,t){for(var n=e.length;n--&&-1<ot(t,e[n],0););return n};var Wi=function(e,t){for(var n=-1,r=e.length;++n<r&&-1<ot(t,e[n],0););return n};var zi=function(e){return e.split("")},Ki=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Yi=function(e){return Ki.test(e)},$i="\\ud800-\\udfff",Gi="["+$i+"]",Ji="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Zi="\\ud83c[\\udffb-\\udfff]",Xi="[^"+$i+"]",ea="(?:\\ud83c[\\udde6-\\uddff]){2}",ta="[\\ud800-\\udbff][\\udc00-\\udfff]",na="(?:"+Ji+"|"+Zi+")"+"?",ra="[\\ufe0e\\ufe0f]?",ia=ra+na+("(?:\\u200d(?:"+[Xi,ea,ta].join("|")+")"+ra+na+")*"),aa="(?:"+[Xi+Ji+"?",Ji,ea,ta,Gi].join("|")+")",sa=RegExp(Zi+"(?="+Zi+")|"+aa+ia,"g");var oa=function(e){return e.match(sa)||[]};var ca=function(e){return Yi(e)?oa(e):zi(e)},ua=/^\s+|\s+$/g;var la=function(e,t,n){if((e=Kn(e))&&(n||void 0===t))return e.replace(ua,"");if(!e||!(t=zn(t)))return e;var r=ca(e),i=ca(t),a=Wi(r,i),s=qi(r,i)+1;return Qi(r,a,s).join("")};var ha=function(e,t,n){if(!se(n))return!1;var r=typeof t;return!!("number"==r?ce(n)&&q(t,n.length):"string"==r&&t in n)&&Ae(n[t],e)},fa=Object.prototype,da=fa.hasOwnProperty,pa=Pt(function(e,t){e=Object(e);var n=-1,r=t.length,i=2<r?t[2]:void 0;for(i&&ha(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=wr(a),o=-1,c=s.length;++o<c;){var u=s[o],l=e[u];(void 0===l||Ae(l,fa[u])&&!da.call(e,u))&&(e[u]=a[u])}return e});var ma=function(e,t,n){(void 0===n||Ae(e[t],n))&&(void 0!==n||t in e)||fr(e,t,n)};var va=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]};var ga=function(e){return mr(e,wr(e))};var ya=function(e,t,n,r,i,a,s){var o=va(e,n),c=va(t,n),u=s.get(c);if(u)ma(e,n,u);else{var l=a?a(o,c,n+"",e,t,s):void 0,h=void 0===l;if(h){var f=D(c),d=!f&&V(c),p=!f&&!d&&J(c);l=c,f||d||p?l=D(o)?o:_t(o)?Pr(o):d?Sr(c,!(h=!1)):p?Dr(c,!(h=!1)):[]:pi(c)||A(c)?A(l=o)?l=ga(o):se(o)&&!oe(o)||(l=Qr(c)):h=!1}h&&(s.set(c,l),i(l,c,r,a,s),s.delete(c)),ma(e,n,l)}};var ba=function r(i,a,s,o,c){i!==a&&Ct(a,function(e,t){if(c||(c=new Bt),se(e))ya(i,a,t,s,r,o,c);else{var n=o?o(va(i,t),e,t+"",i,a,c):void 0;void 0===n&&(n=e),ma(i,t,n)}},wr)};var wa=function(o){return Pt(function(e,t){var n=-1,r=t.length,i=1<r?t[r-1]:void 0,a=2<r?t[2]:void 0;for(i=3<o.length&&"function"==typeof i?(r--,i):void 0,a&&ha(t[0],t[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++n<r;){var s=t[n];s&&o(e,s,n,i)}return e})}(function(e,t,n){ba(e,t,n)});var Ra=function e(t){if(Mi(t))return t;if(Di(t))return parseFloat(t);if(Array.isArray(t))return cr(t,e);throw new Error("The value should be a number, a parseable string or an array of those.")};var Sa=function(n,e){var r={},t=sr(e,function(e){return-1!==e.indexOf("attribute:")}),i=cr(t,function(e){return e.split(":")[1]});-1===Ti(i,"*")?It(i,function(e){n.isConjunctiveFacet(e)&&n.isFacetRefined(e)&&(r.facetsRefinements||(r.facetsRefinements={}),r.facetsRefinements[e]=n.facetsRefinements[e]),n.isDisjunctiveFacet(e)&&n.isDisjunctiveFacetRefined(e)&&(r.disjunctiveFacetsRefinements||(r.disjunctiveFacetsRefinements={}),r.disjunctiveFacetsRefinements[e]=n.disjunctiveFacetsRefinements[e]),n.isHierarchicalFacet(e)&&n.isHierarchicalFacetRefined(e)&&(r.hierarchicalFacetsRefinements||(r.hierarchicalFacetsRefinements={}),r.hierarchicalFacetsRefinements[e]=n.hierarchicalFacetsRefinements[e]);var t=n.getNumericRefinements(e);ki(t)||(r.numericRefinements||(r.numericRefinements={}),r.numericRefinements[e]=n.numericRefinements[e])}):(ki(n.numericRefinements)||(r.numericRefinements=n.numericRefinements),ki(n.facetsRefinements)||(r.facetsRefinements=n.facetsRefinements),ki(n.disjunctiveFacetsRefinements)||(r.disjunctiveFacetsRefinements=n.disjunctiveFacetsRefinements),ki(n.hierarchicalFacetsRefinements)||(r.hierarchicalFacetsRefinements=n.hierarchicalFacetsRefinements));var a=sr(e,function(e){return-1===e.indexOf("attribute:")});return It(a,function(e){r[e]=n[e]}),r},Pa={addRefinement:function(e,t,n){if(Pa.isRefined(e,t,n))return e;var r=""+n,i=e[t]?e[t].concat(r):[r],a={};return a[t]=i,pa({},a,e)},removeRefinement:function(e,n,t){if(Ai(t))return Pa.clearRefinement(e,n);var r=""+t;return Pa.clearRefinement(e,function(e,t){return n===t&&r===e})},toggleRefinement:function(e,t,n){if(Ai(n))throw new Error("toggleRefinement should be used with a value");return Pa.isRefined(e,t,n)?Pa.removeRefinement(e,t,n):Pa.addRefinement(e,t,n)},clearRefinement:function(e,i,a){if(Ai(i))return ki(e)?e:{};if(Di(i))return ki(e[i])?e:Ri(e,i);if(oe(i)){var s=!1,t=hr(e,function(e,t,n){var r=sr(t,function(e){return!i(e,n,a)});return ki(r)?s=!0:(r.length!==t.length&&(s=!0),e[n]=r),e},{});return s?t:e}},isRefined:function(e,t,n){var r=Ti,i=!!e[t]&&0<e[t].length;if(Ai(n)||!i)return i;var a=""+n;return-1!==r(e[t],a)}},_a=Pa;function Na(e){var t=e?Na._parseNumbers(e):{};this.index=t.index||"",this.query=t.query||"",this.facets=t.facets||[],this.disjunctiveFacets=t.disjunctiveFacets||[],this.hierarchicalFacets=t.hierarchicalFacets||[],this.facetsRefinements=t.facetsRefinements||{},this.facetsExcludes=t.facetsExcludes||{},this.disjunctiveFacetsRefinements=t.disjunctiveFacetsRefinements||{},this.numericRefinements=t.numericRefinements||{},this.tagRefinements=t.tagRefinements||[],this.hierarchicalFacetsRefinements=t.hierarchicalFacetsRefinements||{},this.numericFilters=t.numericFilters,this.tagFilters=t.tagFilters,this.optionalTagFilters=t.optionalTagFilters,this.optionalFacetFilters=t.optionalFacetFilters,this.hitsPerPage=t.hitsPerPage,this.maxValuesPerFacet=t.maxValuesPerFacet,this.page=t.page||0,this.queryType=t.queryType,this.typoTolerance=t.typoTolerance,this.minWordSizefor1Typo=t.minWordSizefor1Typo,this.minWordSizefor2Typos=t.minWordSizefor2Typos,this.minProximity=t.minProximity,this.allowTyposOnNumericTokens=t.allowTyposOnNumericTokens,this.ignorePlurals=t.ignorePlurals,this.restrictSearchableAttributes=t.restrictSearchableAttributes,this.advancedSyntax=t.advancedSyntax,this.analytics=t.analytics,this.analyticsTags=t.analyticsTags,this.synonyms=t.synonyms,this.replaceSynonymsInHighlight=t.replaceSynonymsInHighlight,this.optionalWords=t.optionalWords,this.removeWordsIfNoResults=t.removeWordsIfNoResults,this.attributesToRetrieve=t.attributesToRetrieve,this.attributesToHighlight=t.attributesToHighlight,this.highlightPreTag=t.highlightPreTag,this.highlightPostTag=t.highlightPostTag,this.attributesToSnippet=t.attributesToSnippet,this.getRankingInfo=t.getRankingInfo,this.distinct=t.distinct,this.aroundLatLng=t.aroundLatLng,this.aroundLatLngViaIP=t.aroundLatLngViaIP,this.aroundRadius=t.aroundRadius,this.minimumAroundRadius=t.minimumAroundRadius,this.aroundPrecision=t.aroundPrecision,this.insideBoundingBox=t.insideBoundingBox,this.insidePolygon=t.insidePolygon,this.snippetEllipsisText=t.snippetEllipsisText,this.disableExactOnAttributes=t.disableExactOnAttributes,this.enableExactOnSingleWordQuery=t.enableExactOnSingleWordQuery,this.offset=t.offset,this.length=t.length;var n=this;jt(t,function(e,t){-1===Na.PARAMETERS.indexOf(t)&&(n[t]=e)})}Na.PARAMETERS=ue(new Na),Na._parseNumbers=function(r){if(r instanceof Na)return r;var i={};if(It(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"],function(e){var t=r[e];if(Di(t)){var n=parseFloat(t);i[e]=Ii(n)?t:n}}),Array.isArray(r.insideBoundingBox)&&(i.insideBoundingBox=r.insideBoundingBox.map(function(e){return e.map(function(e){return parseFloat(e)})})),r.numericRefinements){var a={};It(r.numericRefinements,function(e,r){a[r]={},It(e,function(e,t){var n=cr(e,function(e){return Array.isArray(e)?cr(e,function(e){return Di(e)?parseFloat(e):e}):Di(e)?parseFloat(e):e});a[r][t]=n})}),i.numericRefinements=a}return wa({},r,i)},Na.make=function(e){var n=new Na(e);return It(e.hierarchicalFacets,function(e){if(e.rootPath){var t=n.getHierarchicalRefinement(e.name);0<t.length&&0!==t[0].indexOf(e.rootPath)&&(n=n.clearRefinements(e.name)),0===(t=n.getHierarchicalRefinement(e.name)).length&&(n=n.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),n},Na.validate=function(e,t){var n=t||{};return e.tagFilters&&n.tagRefinements&&0<n.tagRefinements.length?new Error("[Tags] Cannot switch from the managed tag API to the advanced API. It is probably an error, if it is really what you want, you should first clear the tags with clearTags method."):0<e.tagRefinements.length&&n.tagFilters?new Error("[Tags] Cannot switch from the advanced tag API to the managed API. It is probably an error, if it is not, you should first clear the tags with clearTags method."):e.numericFilters&&n.numericRefinements&&!ki(n.numericRefinements)?new Error("[Numeric filters] Can't switch from the advanced to the managed API. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):!ki(e.numericRefinements)&&n.numericFilters?new Error("[Numeric filters] Can't switch from the managed API to the advanced. It is probably an error, if this is really what you want, you have to first clear the numeric filters."):null},Na.prototype={constructor:Na,clearRefinements:function(e){var t=_a.clearRefinement,n={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:t(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:t(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:t(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:t(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return n.numericRefinements===this.numericRefinements&&n.facetsRefinements===this.facetsRefinements&&n.facetsExcludes===this.facetsExcludes&&n.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&n.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(n)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,n){var r=Ra(n);if(this.isNumericRefined(e,t,r))return this;var i=wa({},this.numericRefinements);return i[e]=wa({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(r)):i[e][t]=[r],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.facetsExcludes[e]||[]},removeNumericRefinement:function(n,r,e){if(void 0===e)return void 0!==r?this.isNumericRefined(n,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===n&&e.op===r})}):this:this.isNumericRefined(n)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===n})}):this;var i=Ra(e);return this.isNumericRefined(n,r,i)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(e,t){return t===n&&e.op===r&&Oi(e.val,i)})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(a){if(Ai(a))return ki(this.numericRefinements)?this.numericRefinements:{};if(Di(a))return ki(this.numericRefinements[a])?this.numericRefinements:Ri(this.numericRefinements,a);if(oe(a)){var s=!1,e=hr(this.numericRefinements,function(e,t,r){var i={};return It(t,function(e,t){var n=[];It(e,function(e){a({val:e,op:t},r,"numeric")||n.push(e)}),ki(n)?s=!0:(n.length!==e.length&&(s=!0),i[t]=n)}),ki(i)||(e[r]=i),e},{});return s?e:this.numericRefinements}},addFacet:function(e){return this.isConjunctiveFacet(e)?this:this.setQueryParameters({facets:this.facets.concat([e])})},addDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this:this.setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.concat([e])})},addHierarchicalFacet:function(e){if(this.isHierarchicalFacet(e.name))throw new Error("Cannot declare two hierarchical facets with the same name: `"+e.name+"`");return this.setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.concat([e])})},addFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return _a.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:_a.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return _a.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:_a.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return _a.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:_a.addRefinement(this.disjunctiveFacetsRefinements,e,t)})},addTagRefinement:function(e){if(this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.concat(e)};return this.setQueryParameters(t)},removeFacet:function(t){return this.isConjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({facets:sr(this.facets,function(e){return e!==t})}):this},removeDisjunctiveFacet:function(t){return this.isDisjunctiveFacet(t)?this.clearRefinements(t).setQueryParameters({disjunctiveFacets:sr(this.disjunctiveFacets,function(e){return e!==t})}):this},removeHierarchicalFacet:function(t){return this.isHierarchicalFacet(t)?this.clearRefinements(t).setQueryParameters({hierarchicalFacets:sr(this.hierarchicalFacets,function(e){return e.name!==t})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return _a.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:_a.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return _a.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:_a.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return _a.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:_a.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(t){if(!this.isTagRefined(t))return this;var e={tagRefinements:sr(this.tagRefinements,function(e){return e!==t})};return this.setQueryParameters(e)},toggleRefinement:function(e,t){return this.toggleFacetRefinement(e,t)},toggleFacetRefinement:function(e,t){if(this.isHierarchicalFacet(e))return this.toggleHierarchicalFacetRefinement(e,t);if(this.isConjunctiveFacet(e))return this.toggleConjunctiveFacetRefinement(e,t);if(this.isDisjunctiveFacet(e))return this.toggleDisjunctiveFacetRefinement(e,t);throw new Error("Cannot refine the undeclared facet "+e+"; it should be added to the helper options facets, disjunctiveFacets or hierarchicalFacets")},toggleConjunctiveFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:_a.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:_a.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:_a.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r={};return void 0!==this.hierarchicalFacetsRefinements[e]&&0<this.hierarchicalFacetsRefinements[e].length&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+n))?-1===t.indexOf(n)?r[e]=[]:r[e]=[t.slice(0,t.lastIndexOf(n))]:r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:pa({},r,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw new Error(e+" is already refined.");var n={};return n[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:pa({},n,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))throw new Error(e+" is not refined.");var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:pa({},t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return-1<Ti(this.disjunctiveFacets,e)},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return-1<Ti(this.facets,e)},isFacetRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return _a.isRefined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){if(!this.isConjunctiveFacet(e))throw new Error(e+" is not defined in the facets attribute of the helper configuration");return _a.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){if(!this.isDisjunctiveFacet(e))throw new Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return _a.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))throw new Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var n=this.getHierarchicalRefinement(e);return t?-1!==Ti(n,t):0<n.length},isNumericRefined:function(e,t,n){if(Ai(n)&&Ai(t))return!!this.numericRefinements[e];var r=this.numericRefinements[e]&&!Ai(this.numericRefinements[e][t]);if(Ai(n)||!r)return r;var i=Ra(n),a=!Ai(function(e,t){return Vi(e,function(e){return Oi(e,t)})}(this.numericRefinements[e][t],i));return r&&a},isTagRefined:function(e){return-1!==Ti(this.tagRefinements,e)},getRefinedDisjunctiveFacets:function(){var e=xt(ue(this.numericRefinements),this.disjunctiveFacets);return ue(this.disjunctiveFacetsRefinements).concat(e).concat(this.getRefinedHierarchicalFacets())},getRefinedHierarchicalFacets:function(){return xt(cr(this.hierarchicalFacets,"name"),ue(this.hierarchicalFacetsRefinements))},getUnrefinedDisjunctiveFacets:function(){var t=this.getRefinedDisjunctiveFacets();return sr(this.disjunctiveFacets,function(e){return-1===Ti(t,e)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements"],getQueryParams:function(){var n=this.managedParameters,r={};return jt(this,function(e,t){-1===Ti(n,t)&&void 0!==e&&(r[t]=e)}),r},getQueryParameter:function(e){if(!this.hasOwnProperty(e))throw new Error("Parameter '"+e+"' is not an attribute of SearchParameters (http://algolia.github.io/algoliasearch-helper-js/docs/SearchParameters.html)");return this[e]},setQueryParameter:function(e,t){if(this[e]===t)return this;var n={};return n[e]=t,this.setQueryParameters(n)},setQueryParameters:function(n){if(!n)return this;var e=Na.validate(this,n);if(e)throw e;var r=Na._parseNumbers(n);return this.mutateMe(function(t){var e=ue(n);return It(e,function(e){t[e]=r[e]}),t})},filter:function(e){return Sa(this,e)},mutateMe:function(e){var t=new this.constructor(this);return e(t,this),t},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return Vi(this.hierarchicalFacets,{name:e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))throw new Error("Cannot get the breadcrumb of an unknown hierarchical facet: `"+e+"`");var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var n=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),r=t.split(n);return cr(r,la)},toString:function(){return JSON.stringify(this,null,2)}};var xa=Na;var Ca=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i};var Fa=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);void 0!==a&&(n=void 0===n?a:n+a)}return n};var Ea=function(e,t){return e&&e.length?Fa(e,ar(t)):0};var ja=function(t,e){return he(e,function(e){return t[e]})};var Ta=function(e){return null==e?[]:ja(e,ue(e))},Ma=Math.max;var Ia=function(e,t,n,r){e=ce(e)?e:Ta(e),n=n&&!r?Ei(n):0;var i=e.length;return n<0&&(n=Ma(i+n,0)),Di(e)?n<=i&&-1<e.indexOf(t,n):!!i&&-1<ot(e,t,n)};var La=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e};var ka=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,i=e==e,a=In(e),s=void 0!==t,o=null===t,c=t==t,u=In(t);if(!o&&!u&&!a&&t<e||a&&s&&c&&!o&&!u||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!u&&e<t||u&&n&&i&&!r&&!a||o&&n&&i||!s&&i||!c)return-1}return 0};var Oa=function(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,s=i.length,o=n.length;++r<s;){var c=ka(i[r],a[r]);if(c)return o<=r?c:c*("desc"==n[r]?-1:1)}return e.index-t.index};var Aa=function(e,r,n){var i=-1;r=he(r.length?r:[dt],Y(ar));var t=or(e,function(t,e,n){return{criteria:he(r,function(e){return e(t)}),index:++i,value:t}});return La(t,function(e,t){return Oa(e,t,n)})};var Da=function(e,t,n,r){return null==e?[]:(D(t)||(t=null==t?[]:[t]),D(n=r?void 0:n)||(n=null==n?[]:[n]),Aa(e,t,n))},Ha=un&&new un,Ua=Ha?function(e,t){return Ha.set(e,t),e}:dt;var Ba=function(r){return function(){var e=arguments;switch(e.length){case 0:return new r;case 1:return new r(e[0]);case 2:return new r(e[0],e[1]);case 3:return new r(e[0],e[1],e[2]);case 4:return new r(e[0],e[1],e[2],e[3]);case 5:return new r(e[0],e[1],e[2],e[3],e[4]);case 6:return new r(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new r(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var t=Vr(r.prototype),n=r.apply(t,e);return se(n)?n:t}};var Va=function(t,e,n){var r=1&e,i=Ba(t);return function e(){return(this&&this!==N&&this instanceof e?i:t).apply(r?n:this,arguments)}},Qa=Math.max;var qa=function(e,t,n,r){for(var i=-1,a=e.length,s=n.length,o=-1,c=t.length,u=Qa(a-s,0),l=Array(c+u),h=!r;++o<c;)l[o]=t[o];for(;++i<s;)(h||i<a)&&(l[n[i]]=e[i]);for(;u--;)l[o++]=e[i++];return l},Wa=Math.max;var za=function(e,t,n,r){for(var i=-1,a=e.length,s=-1,o=n.length,c=-1,u=t.length,l=Wa(a-o,0),h=Array(l+u),f=!r;++i<l;)h[i]=e[i];for(var d=i;++c<u;)h[d+c]=t[c];for(;++s<o;)(f||i<a)&&(h[d+n[s]]=e[i++]);return h};var Ka=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r};function Ya(){}function $a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}var Ga=($a.prototype=Vr(Ya.prototype)).constructor=$a;var Ja=Ha?function(e){return Ha.get(e)}:function(){},Za={},Xa=Object.prototype.hasOwnProperty;var es=function(e){for(var t=e.name+"",n=Za[t],r=Xa.call(Za,t)?n.length:0;r--;){var i=n[r],a=i.func;if(null==a||a==e)return i.name}return t};function ts(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}var ns=(ts.prototype=Vr(Ya.prototype)).constructor=ts;var rs=function(e){if(e instanceof Ga)return e.clone();var t=new ns(e.__wrapped__,e.__chain__);return t.__actions__=Pr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t},is=Object.prototype.hasOwnProperty;function as(e){if(_(e)&&!D(e)&&!(e instanceof Ga)){if(e instanceof ns)return e;if(is.call(e,"__wrapped__"))return rs(e)}return new ns(e)}var ss=(as.prototype=Ya.prototype).constructor=as;var os=function(e){var t=es(e),n=ss[t];if("function"!=typeof n||!(t in Ga.prototype))return!1;if(e===n)return!0;var r=Ja(n);return!!r&&e===r[0]},cs=Rt(Ua),us=/\{\n\/\* \[wrapped with (.+)\] \*/,ls=/,? & /;var hs=function(e){var t=e.match(us);return t?t[1].split(ls):[]},fs=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;var ds=function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(1<n?"& ":"")+t[r],t=t.join(2<n?", ":" "),e.replace(fs,"{\n/* [wrapped with "+t+"] */\n")},ps=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];var ms=function(n,r){return Tt(ps,function(e){var t="_."+e[0];r&e[1]&&!ct(n,t)&&n.push(t)}),n.sort()};var vs=function(e,t,n){var r=t+"";return St(e,ds(r,ms(hs(r),n)))};var gs=function(e,t,n,r,i,a,s,o,c,u){var l=8&t;t|=l?32:64,4&(t&=~(l?64:32))||(t&=-4);var h=[e,t,i,l?a:void 0,l?s:void 0,l?void 0:a,l?void 0:s,o,c,u],f=n.apply(void 0,h);return os(e)&&cs(f,h),f.placeholder=r,vs(f,e,t)};var ys=function(e){return e.placeholder},bs=Math.min;var ws=function(e,t){for(var n=e.length,r=bs(t.length,n),i=Pr(e);r--;){var a=t[r];e[r]=q(a,n)?i[a]:void 0}return e},Rs="__lodash_placeholder__";var Ss=function(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var s=e[n];s!==t&&s!==Rs||(e[n]=Rs,a[i++]=n)}return a},Ps=1,_s=2,Ns=8,xs=16,Cs=128,Fs=512;function Es(u,l,h,f,d,p,m,v,g,y){var b=l&Cs,w=l&Ps,R=l&_s,S=l&(Ns|xs),P=l&Fs,_=R?void 0:Ba(u);return function e(){for(var t=arguments.length,n=Array(t),r=t;r--;)n[r]=arguments[r];if(S)var i=ys(e),a=Ka(n,i);if(f&&(n=qa(n,f,d,S)),p&&(n=za(n,p,m,S)),t-=a,S&&t<y){var s=Ss(n,i);return gs(u,l,Es,e.placeholder,h,n,s,v,g,y-t)}var o=w?h:this,c=R?o[u]:u;return t=n.length,v?n=ws(n,v):P&&1<t&&n.reverse(),b&&g<t&&(n.length=g),this&&this!==N&&this instanceof e&&(c=_||Ba(c)),c.apply(o,n)}}var js=Es;var Ts=function(s,o,c){var u=Ba(s);return function e(){for(var t=arguments.length,n=Array(t),r=t,i=ys(e);r--;)n[r]=arguments[r];var a=t<3&&n[0]!==i&&n[t-1]!==i?[]:Ss(n,i);return(t-=a.length)<c?gs(s,o,js,e.placeholder,void 0,n,a,void 0,void 0,c-t):pt(this&&this!==N&&this instanceof e?u:s,this,n)}};var Ms=function(o,e,c,u){var l=1&e,h=Ba(o);return function e(){for(var t=-1,n=arguments.length,r=-1,i=u.length,a=Array(i+n),s=this&&this!==N&&this instanceof e?h:o;++r<i;)a[r]=u[r];for(;n--;)a[r++]=arguments[++t];return pt(s,l?c:this,a)}},Is="__lodash_placeholder__",Ls=Math.min;var ks=function(e,t){var n=e[1],r=t[1],i=n|r,a=i<131,s=128==r&&8==n||128==r&&256==n&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&r&&(e[2]=t[2],i|=1&n?0:4);var o=t[3];if(o){var c=e[3];e[3]=c?qa(c,o,t[4]):o,e[4]=c?Ss(e[3],Is):t[4]}return(o=t[5])&&(c=e[5],e[5]=c?za(c,o,t[6]):o,e[6]=c?Ss(e[5],Is):t[6]),(o=t[7])&&(e[7]=o),128&r&&(e[8]=null==e[8]?t[8]:Ls(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e},Os=Math.max;var As=function(e,t,n,r,i,a,s,o){var c=2&t;if(!c&&"function"!=typeof e)throw new TypeError("Expected a function");var u=r?r.length:0;if(u||(t&=-97,r=i=void 0),s=void 0===s?s:Os(Ei(s),0),o=void 0===o?o:Ei(o),u-=i?i.length:0,64&t){var l=r,h=i;r=i=void 0}var f=c?void 0:Ja(e),d=[e,t,n,r,i,l,h,a,s,o];if(f&&ks(d,f),e=d[0],t=d[1],n=d[2],r=d[3],i=d[4],!(o=d[9]=void 0===d[9]?c?0:e.length:Os(d[9]-u,0))&&24&t&&(t&=-25),t&&1!=t)p=8==t||16==t?Ts(e,t,o):32!=t&&33!=t||i.length?js.apply(void 0,d):Ms(e,t,n,r);else var p=Va(e,t,n);return vs((f?Ua:cs)(p,d),e,t)},Ds=Pt(function(e,t){var n=Ss(t,ys(Ds));return As(e,32,void 0,t,n)});Ds.placeholder={};var Hs=Ds,Us=Pt(function(e,t){var n=Ss(t,ys(Us));return As(e,64,void 0,t,n)});Us.placeholder={};var Bs=Us;var Vs=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=t<=e?e:t)),e};function Qs(e,i){return hr(e,function(e,t){var n=t.split(":");if(i&&1===n.length){var r=Vi(i,function(e){return qs(e,t[0])});r&&(n=r.split(":"))}return e[0].push(n[0]),e[1].push(n[1]),e},[[],[]])}var qs=function(e,t,n){return e=Kn(e),n=null==n?0:Vs(Ei(n),0,e.length),t=zn(t),e.slice(n,n+t.length)==t};var Ws=function(e,t,n,r){if(!se(e))return e;for(var i=-1,a=(t=Yn(t,e)).length,s=a-1,o=e;null!=o&&++i<a;){var c=$n(t[i]),u=n;if(i!=s){var l=o[c];void 0===(u=r?r(l,c,o):void 0)&&(u=se(l)?l:q(t[i+1])?[]:{})}pr(o,c,u),o=o[c]}return e};var zs=function(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var s=t[r],o=Gn(e,s);n(o,s)&&Ws(a,Yn(s,e),o)}return a};var Ks=function(e,n){if(null==e)return{};var t=he(Fr(e),function(e){return[e]});return n=ar(n),zs(e,t,function(e,t){return n(e,t[0])})},Ys=function(u){return function(e,t){var n=u.hierarchicalFacets[t],r=u.hierarchicalFacetsRefinements[n.name]&&u.hierarchicalFacetsRefinements[n.name][0]||"",i=u._getHierarchicalFacetSeparator(n),a=u._getHierarchicalRootPath(n),s=u._getHierarchicalShowParentLevel(n),o=function(s,o,c,u,l){return function(e,t,n){var r=e;if(0<n){var i=0;for(r=e;i<n;)r=r&&Vi(r.data,{isRefined:!0}),i++}if(r){var a=function(n,r,i,a,s){return function(e,t){return(!a||0===t.indexOf(a)&&a!==t)&&(!a&&-1===t.indexOf(i)||a&&t.split(i).length-a.split(i).length==1||-1===t.indexOf(i)&&-1===r.indexOf(i)||0===r.indexOf(t)||0===t.indexOf(n+i)&&(s||0===t.indexOf(r)))}}(r.path||c,l,o,c,u);r.data=Da(cr(Ks(t.data,a),function(n,r){return function(e,t){return{name:la(ai(t.split(n))),path:t,count:e,isRefined:r===t||0===r.indexOf(t+n),data:null}}}(o,l)),s[0],s[1])}return e}}(Qs(u._getHierarchicalFacetSortBy(n)),i,a,s,r),c=e;return a&&(c=e.slice(a.split(i).length)),hr(c,o,{name:u.hierarchicalFacets[t].name,count:null,isRefined:!0,path:null,data:null})}};function $s(e){var n={};return It(e,function(e,t){n[e]=t}),n}function Gs(e,t,n){t&&t[n]&&(e.stats=t[n])}function Js(u,n){var c=n[0];this._rawResults=n,this.query=c.query,this.parsedQuery=c.parsedQuery,this.hits=c.hits,this.index=c.index,this.hitsPerPage=c.hitsPerPage,this.nbHits=c.nbHits,this.nbPages=c.nbPages,this.page=c.page,this.processingTimeMS=Ea(n,"processingTimeMS"),this.aroundLatLng=c.aroundLatLng,this.automaticRadius=c.automaticRadius,this.serverUsed=c.serverUsed,this.timeoutCounts=c.timeoutCounts,this.timeoutHits=c.timeoutHits,this.exhaustiveFacetsCount=c.exhaustiveFacetsCount,this.exhaustiveNbHits=c.exhaustiveNbHits,this.userData=c.userData,this.queryID=c.queryID,this.disjunctiveFacets=[],this.hierarchicalFacets=cr(u.hierarchicalFacets,function(){return[]}),this.facets=[];var e=u.getRefinedDisjunctiveFacets(),l=$s(u.facets),h=$s(u.disjunctiveFacets),r=1,f=this;It(c.facets,function(e,t){var n=function(e,t){return Vi(e,function(e){return Ia(e.attributes,t)})}(u.hierarchicalFacets,t);if(n){var r=n.attributes.indexOf(t),i=Bi(u.hierarchicalFacets,{name:n.name});f.hierarchicalFacets[i][r]={attribute:t,data:e,exhaustive:c.exhaustiveFacetsCount}}else{var a,s=-1!==Ti(u.disjunctiveFacets,t),o=-1!==Ti(u.facets,t);s&&(a=h[t],f.disjunctiveFacets[a]={name:t,data:e,exhaustive:c.exhaustiveFacetsCount},Gs(f.disjunctiveFacets[a],c.facets_stats,t)),o&&(a=l[t],f.facets[a]={name:t,data:e,exhaustive:c.exhaustiveFacetsCount},Gs(f.facets[a],c.facets_stats,t))}}),this.hierarchicalFacets=Ca(this.hierarchicalFacets),It(e,function(e){var a=n[r],s=u.getHierarchicalFacetByName(e);It(a.facets,function(e,t){var n;if(s){n=Bi(u.hierarchicalFacets,{name:s.name});var r=Bi(f.hierarchicalFacets[n],{attribute:t});if(-1===r)return;f.hierarchicalFacets[n][r].data=wa({},f.hierarchicalFacets[n][r].data,e)}else{n=h[t];var i=c.facets&&c.facets[t]||{};f.disjunctiveFacets[n]={name:t,data:pa({},e,i),exhaustive:a.exhaustiveFacetsCount},Gs(f.disjunctiveFacets[n],a.facets_stats,t),u.disjunctiveFacetsRefinements[t]&&It(u.disjunctiveFacetsRefinements[t],function(e){!f.disjunctiveFacets[n].data[e]&&-1<Ti(u.disjunctiveFacetsRefinements[t],e)&&(f.disjunctiveFacets[n].data[e]=0)})}}),r++}),It(u.getRefinedHierarchicalFacets(),function(e){var s=u.getHierarchicalFacetByName(e),o=u._getHierarchicalFacetSeparator(s),c=u.getHierarchicalRefinement(e);if(!(0===c.length||c[0].split(o).length<2)){var t=n[r];It(t.facets,function(e,t){var n=Bi(u.hierarchicalFacets,{name:s.name}),r=Bi(f.hierarchicalFacets[n],{attribute:t});if(-1!==r){var i={};if(0<c.length){var a=c[0].split(o)[0];i[a]=f.hierarchicalFacets[n][r].data[a]}f.hierarchicalFacets[n][r].data=pa(i,e,f.hierarchicalFacets[n][r].data)}}),r++}}),It(u.facetsExcludes,function(e,t){var n=l[t];f.facets[n]={name:t,data:c.facets[t],exhaustive:c.exhaustiveFacetsCount},It(e,function(e){f.facets[n]=f.facets[n]||{name:t},f.facets[n].data=f.facets[n].data||{},f.facets[n].data[e]=0})}),this.hierarchicalFacets=cr(this.hierarchicalFacets,Ys(u)),this.facets=Ca(this.facets),this.disjunctiveFacets=Ca(this.disjunctiveFacets),this._state=u}function Zs(e,t){if(!t.data||0===t.data.length)return t;var n=e(cr(t.data,Hs(Zs,e)));return wa({},t,{data:n})}function Xs(e,t){return t.sort(e)}function eo(e,t){var n=Vi(e,{name:t});return n&&n.stats}function to(e,t,n,r,i){var a=Vi(i,{name:n});return{type:t,attributeName:n,name:r,count:Jn(a,"data["+r+"]")||0,exhaustive:Jn(a,"exhaustive")||!1}}Js.prototype.getFacetByName=function(e){var t={name:e};return Vi(this.facets,t)||Vi(this.disjunctiveFacets,t)||Vi(this.hierarchicalFacets,t)},Js.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],Js.prototype.getFacetValues=function(e,t){var n=function(n,r){var e={name:r};if(n._state.isConjunctiveFacet(r)){var t=Vi(n.facets,e);return t?cr(t.data,function(e,t){return{name:t,count:e,isRefined:n._state.isFacetRefined(r,t),isExcluded:n._state.isExcludeRefined(r,t)}}):[]}if(n._state.isDisjunctiveFacet(r)){var i=Vi(n.disjunctiveFacets,e);return i?cr(i.data,function(e,t){return{name:t,count:e,isRefined:n._state.isDisjunctiveFacetRefined(r,t)}}):[]}if(n._state.isHierarchicalFacet(r))return Vi(n.hierarchicalFacets,e)}(this,e);if(!n)throw new Error(e+" is not a retrieved facet.");var r=pa({},t,{sortBy:Js.DEFAULT_SORT});if(Array.isArray(r.sortBy)){var i=Qs(r.sortBy,Js.DEFAULT_SORT);return Array.isArray(n)?Da(n,i[0],i[1]):Zs(Bs(Da,i[0],i[1]),n)}if(oe(r.sortBy))return Array.isArray(n)?n.sort(r.sortBy):Zs(Hs(Xs,r.sortBy),n);throw new Error("options.sortBy is optional but if defined it must be either an array of string (predicates) or a sorting function")},Js.prototype.getFacetStats=function(e){if(this._state.isConjunctiveFacet(e))return eo(this.facets,e);if(this._state.isDisjunctiveFacet(e))return eo(this.disjunctiveFacets,e);throw new Error(e+" is not present in `facets` or `disjunctiveFacets`")},Js.prototype.getRefinements=function(){var n=this._state,r=this,i=[];return It(n.facetsRefinements,function(e,t){It(e,function(e){i.push(to(n,"facet",t,e,r.facets))})}),It(n.facetsExcludes,function(e,t){It(e,function(e){i.push(to(n,"exclude",t,e,r.facets))})}),It(n.disjunctiveFacetsRefinements,function(e,t){It(e,function(e){i.push(to(n,"disjunctive",t,e,r.disjunctiveFacets))})}),It(n.hierarchicalFacetsRefinements,function(e,t){It(e,function(e){i.push(function(e,t,n,r){for(var i=Vi(r,{name:t}),a=e.getHierarchicalFacetByName(t),s=n.split(a.separator),o=s[s.length-1],c=0;void 0!==i&&c<s.length;++c)i=Vi(i.data,{name:s[c]});var u=Jn(i,"count"),l=Jn(i,"exhaustive");return{type:"hierarchical",attributeName:t,name:o,count:u||0,exhaustive:l||!1}}(n,t,e,r.hierarchicalFacets))})}),It(n.numericRefinements,function(e,n){It(e,function(e,t){It(e,function(e){i.push({type:"numeric",attributeName:n,name:e,numericValue:e,operator:t})})})}),It(n.tagRefinements,function(e){i.push({type:"tag",attributeName:"_tags",name:e})}),i};var no=Js;function ro(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}var io=ro;function ao(e){return"function"==typeof e}function so(e){return"object"==typeof e&&null!==e}function oo(e){return void 0===e}(ro.EventEmitter=ro).prototype._events=void 0,ro.prototype._maxListeners=void 0,ro.defaultMaxListeners=10,ro.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},ro.prototype.emit=function(e){var t,n,r,i,a,s;if(this._events||(this._events={}),"error"===e&&(!this._events.error||so(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var o=new Error('Uncaught, unspecified "error" event. ('+t+")");throw o.context=t,o}if(oo(n=this._events[e]))return!1;if(ao(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),n.apply(this,i)}else if(so(n))for(i=Array.prototype.slice.call(arguments,1),r=(s=n.slice()).length,a=0;a<r;a++)s[a].apply(this,i);return!0},ro.prototype.on=ro.prototype.addListener=function(e,t){var n;if(!ao(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,ao(t.listener)?t.listener:t),this._events[e]?so(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,so(this._events[e])&&!this._events[e].warned&&(n=oo(this._maxListeners)?ro.defaultMaxListeners:this._maxListeners)&&0<n&&this._events[e].length>n&&(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},ro.prototype.once=function(e,t){if(!ao(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},ro.prototype.removeListener=function(e,t){var n,r,i,a;if(!ao(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||ao(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(so(n)){for(a=i;0<a--;)if(n[a]===t||n[a].listener&&n[a].listener===t){r=a;break}if(r<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(r,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},ro.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(ao(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},ro.prototype.listeners=function(e){return this._events&&this._events[e]?ao(this._events[e])?[this._events[e]]:this._events[e].slice():[]},ro.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(ao(t))return 1;if(t)return t.length}return 0},ro.listenerCount=function(e,t){return e.listenerCount(t)};var co=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})};function uo(e,t){this.main=e,this.fn=t,this.lastResults=null}co(uo,io.EventEmitter),uo.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},uo.prototype.getModifiedState=function(e){return this.fn(e)};var lo=uo,ho={_getQueries:function(i,a){var s=[];return s.push({indexName:i,params:ho._getHitsSearchParams(a)}),It(a.getRefinedDisjunctiveFacets(),function(e){s.push({indexName:i,params:ho._getDisjunctiveFacetSearchParams(a,e)})}),It(a.getRefinedHierarchicalFacets(),function(e){var t=a.getHierarchicalFacetByName(e),n=a.getHierarchicalRefinement(e),r=a._getHierarchicalFacetSeparator(t);0<n.length&&1<n[0].split(r).length&&s.push({indexName:i,params:ho._getDisjunctiveFacetSearchParams(a,e,!0)})}),s},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(ho._getHitsHierarchicalFacetsAttributes(e)),n=ho._getFacetFilters(e),r=ho._getNumericFilters(e),i={facets:t,tagFilters:ho._getTagFilters(e)};return 0<n.length&&(i.facetFilters=n),0<r.length&&(i.numericFilters=r),wa(e.getQueryParams(),i)},_getDisjunctiveFacetSearchParams:function(e,t,n){var r=ho._getFacetFilters(e,t,n),i=ho._getNumericFilters(e,t),a={hitsPerPage:1,page:0,attributesToRetrieve:[],attributesToHighlight:[],attributesToSnippet:[],tagFilters:ho._getTagFilters(e),analytics:!1,clickAnalytics:!1},s=e.getHierarchicalFacetByName(t);return a.facets=s?ho._getDisjunctiveHierarchicalFacetAttribute(e,s,n):t,0<i.length&&(a.numericFilters=i),0<r.length&&(a.facetFilters=r),wa(e.getQueryParams(),a)},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var i=[];return It(e.numericRefinements,function(e,r){It(e,function(e,n){t!==r&&It(e,function(e){if(Array.isArray(e)){var t=cr(e,function(e){return r+n+e});i.push(t)}else i.push(r+n+e)})})}),i},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(c,u,l){var h=[];return It(c.facetsRefinements,function(e,t){It(e,function(e){h.push(t+":"+e)})}),It(c.facetsExcludes,function(e,t){It(e,function(e){h.push(t+":-"+e)})}),It(c.disjunctiveFacetsRefinements,function(e,t){if(t!==u&&e&&0!==e.length){var n=[];It(e,function(e){n.push(t+":"+e)}),h.push(n)}}),It(c.hierarchicalFacetsRefinements,function(e,t){var n=e[0];if(void 0!==n){var r,i,a=c.getHierarchicalFacetByName(t),s=c._getHierarchicalFacetSeparator(a),o=c._getHierarchicalRootPath(a);if(u===t){if(-1===n.indexOf(s)||!o&&!0===l||o&&o.split(s).length===n.split(s).length)return;n=o?(i=o.split(s).length-1,o):(i=n.split(s).length-2,n.slice(0,n.lastIndexOf(s))),r=a.attributes[i]}else i=n.split(s).length-1,r=a.attributes[i];r&&h.push([r+":"+n])}}),h},_getHitsHierarchicalFacetsAttributes:function(s){return hr(s.hierarchicalFacets,function(e,t){var n=s.getHierarchicalRefinement(t.name)[0];if(!n)return e.push(t.attributes[0]),e;var r=s._getHierarchicalFacetSeparator(t),i=n.split(r).length,a=t.attributes.slice(0,i+1);return e.concat(a)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,n){var r=e._getHierarchicalFacetSeparator(t);if(!0===n){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(r).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(r).length-1;return t.attributes.slice(0,1+s)},getSearchForFacetQuery:function(e,t,n,r){var i=r.isDisjunctiveFacet(e)?r.clearRefinements(e):r,a={facetQuery:t,facetName:e};return"number"==typeof n&&(a.maxFacetHits=n),wa(ho._getHitsSearchParams(i),a)}},fo=ho;var po=function(e,r,i,a){return Ft(e,function(e,t,n){r(a,i(e),t,n)}),a};function mo(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n}function vo(e,t){ko.apply(e,Lo(t)?t:[t])}function go(e,t,n,r,i,a,s,o,c,u,l,h,f){var d=e;if("function"==typeof s?d=s(t,d):d instanceof Date?d=u(d):"comma"===n&&Lo(d)&&(d=d.join(",")),null===d){if(r)return a&&!h?a(t,Ao.encoder,f):t;d=""}if("string"==typeof d||"number"==typeof d||"boolean"==typeof d||Fo.isBuffer(d))return a?[l(h?t:a(t,Ao.encoder,f))+"="+l(a(d,Ao.encoder,f))]:[l(t)+"="+l(String(d))];var p,m=[];if(void 0===d)return m;if(Lo(s))p=s;else{var v=Object.keys(d);p=o?v.sort(o):v}for(var g=0;g<p.length;++g){var y=p[g];i&&null===d[y]||(Lo(d)?vo(m,go(d[y],"function"==typeof n?n(t,y):t,n,r,i,a,s,o,c,u,l,h,f)):vo(m,go(d[y],t+(c?"."+y:"["+y+"]"),n,r,i,a,s,o,c,u,l,h,f)))}return m}function yo(e,t,n){if(e){var r=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,i=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(r),s=a?r.slice(0,a.index):r,o=[];if(s){if(!n.plainObjects&&Do.call(Object.prototype,s)&&!n.allowPrototypes)return;o.push(s)}for(var c=0;null!==(a=i.exec(r))&&c<n.depth;){if(c+=1,!n.plainObjects&&Do.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;o.push(a[1])}return a&&o.push("["+r.slice(a.index)+"]"),function(e,t,n){for(var r=t,i=e.length-1;0<=i;--i){var a,s=e[i];if("[]"===s&&n.parseArrays)a=[].concat(r);else{a=n.plainObjects?Object.create(null):{};var o="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=parseInt(o,10);n.parseArrays||""!==o?!isNaN(c)&&s!==o&&String(c)===o&&0<=c&&n.parseArrays&&c<=n.arrayLimit?(a=[])[c]=r:a[o]=r:a={0:r}}r=a}return r}(o,t,n)}}var bo=function(n,r){return function(e,t){return po(e,n,r(t),{})}},wo=Object.prototype.toString,Ro=bo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=wo.call(t)),e[t]=n},gt(dt)),So={advancedSyntax:"aS",allowTyposOnNumericTokens:"aTONT",analyticsTags:"aT",analytics:"a",aroundLatLngViaIP:"aLLVIP",aroundLatLng:"aLL",aroundPrecision:"aP",aroundRadius:"aR",attributesToHighlight:"aTH",attributesToRetrieve:"aTR",attributesToSnippet:"aTS",disjunctiveFacetsRefinements:"dFR",disjunctiveFacets:"dF",distinct:"d",facetsExcludes:"fE",facetsRefinements:"fR",facets:"f",getRankingInfo:"gRI",hierarchicalFacetsRefinements:"hFR",hierarchicalFacets:"hF",highlightPostTag:"hPoT",highlightPreTag:"hPrT",hitsPerPage:"hPP",ignorePlurals:"iP",index:"idx",insideBoundingBox:"iBB",insidePolygon:"iPg",length:"l",maxValuesPerFacet:"mVPF",minimumAroundRadius:"mAR",minProximity:"mP",minWordSizefor1Typo:"mWS1T",minWordSizefor2Typos:"mWS2T",numericFilters:"nF",numericRefinements:"nR",offset:"o",optionalWords:"oW",page:"p",queryType:"qT",query:"q",removeWordsIfNoResults:"rWINR",replaceSynonymsInHighlight:"rSIH",restrictSearchableAttributes:"rSA",synonyms:"s",tagFilters:"tF",tagRefinements:"tR",typoTolerance:"tT",optionalTagFilters:"oTF",optionalFacetFilters:"oFF",snippetEllipsisText:"sET",disableExactOnAttributes:"dEOA",enableExactOnSingleWordQuery:"eEOSWQ"},Po=Ro(So),_o={ENCODED_PARAMETERS:ue(Po),decode:function(e){return Po[e]},encode:function(e){return So[e]}},No=Object.prototype.hasOwnProperty,xo=Array.isArray,Co=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),Fo={arrayToObject:mo,assign:function(e,n){return Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],a=i.obj[i.prop],s=Object.keys(a),o=0;o<s.length;++o){var c=s[o],u=a[c];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t.push({obj:a,prop:c}),n.push(u))}return function(e){for(;1<e.length;){var t=e.pop(),n=t.obj[t.prop];if(xo(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n){if(0===e.length)return e;var r="string"==typeof e?e:String(e);if("iso-8859-1"===n)return escape(r).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var i="",a=0;a<r.length;++a){var s=r.charCodeAt(a);45===s||46===s||95===s||126===s||48<=s&&s<=57||65<=s&&s<=90||97<=s&&s<=122?i+=r.charAt(a):s<128?i+=Co[s]:s<2048?i+=Co[192|s>>6]+Co[128|63&s]:s<55296||57344<=s?i+=Co[224|s>>12]+Co[128|s>>6&63]+Co[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&r.charCodeAt(a)),i+=Co[240|s>>18]+Co[128|s>>12&63]+Co[128|s>>6&63]+Co[128|63&s])}return i},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)},merge:function r(i,a,s){if(!a)return i;if("object"!=typeof a){if(xo(i))i.push(a);else{if(!i||"object"!=typeof i)return[i,a];(s&&(s.plainObjects||s.allowPrototypes)||!No.call(Object.prototype,a))&&(i[a]=!0)}return i}if(!i||"object"!=typeof i)return[i].concat(a);var e=i;return xo(i)&&!xo(a)&&(e=mo(i,s)),xo(i)&&xo(a)?(a.forEach(function(e,t){if(No.call(i,t)){var n=i[t];n&&"object"==typeof n&&e&&"object"==typeof e?i[t]=r(n,e,s):i.push(e)}else i[t]=e}),i):Object.keys(a).reduce(function(e,t){var n=a[t];return No.call(e,t)?e[t]=r(e[t],n,s):e[t]=n,e},e)}},Eo=String.prototype.replace,jo=/%20/g,To={default:"RFC3986",formatters:{RFC1738:function(e){return Eo.call(e,jo,"+")},RFC3986:function(e){return e}},RFC1738:"RFC1738",RFC3986:"RFC3986"},Mo=Object.prototype.hasOwnProperty,Io={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},Lo=Array.isArray,ko=Array.prototype.push,Oo=Date.prototype.toISOString,Ao={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Fo.encode,encodeValuesOnly:!1,formatter:To.formatters[To.default],indices:!1,serializeDate:function(e){return Oo.call(e)},skipNulls:!1,strictNullHandling:!1},Do=Object.prototype.hasOwnProperty,Ho={allowDots:!1,allowPrototypes:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Fo.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Uo={formats:To,parse:function(e,t){var n=function(e){if(!e)return Ho;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new Error("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?Ho.charset:e.charset;return{allowDots:void 0===e.allowDots?Ho.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:Ho.allowPrototypes,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:Ho.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ho.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:Ho.comma,decoder:"function"==typeof e.decoder?e.decoder:Ho.decoder,delimiter:"string"==typeof e.delimiter||Fo.isRegExp(e.delimiter)?e.delimiter:Ho.delimiter,depth:"number"==typeof e.depth?e.depth:Ho.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:Ho.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:Ho.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:Ho.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ho.strictNullHandling}}(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var r="string"==typeof e?function(e,t){var n,r={},i=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,s=i.split(t.delimiter,a),o=-1,c=t.charset;if(t.charsetSentinel)for(n=0;n<s.length;++n)0===s[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===s[n]?c="utf-8":"utf8=%26%2310003%3B"===s[n]&&(c="iso-8859-1"),o=n,n=s.length);for(n=0;n<s.length;++n)if(n!==o){var u,l,h=s[n],f=h.indexOf("]="),d=-1===f?h.indexOf("="):f+1;(l=-1===d?(u=t.decoder(h,Ho.decoder,c),t.strictNullHandling?null:""):(u=t.decoder(h.slice(0,d),Ho.decoder,c),t.decoder(h.slice(d+1),Ho.decoder,c)))&&t.interpretNumericEntities&&"iso-8859-1"===c&&(l=l.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),l&&t.comma&&-1<l.indexOf(",")&&(l=l.split(",")),Do.call(r,u)?r[u]=Fo.combine(r[u],l):r[u]=l}return r}(e,n):e,i=n.plainObjects?Object.create(null):{},a=Object.keys(r),s=0;s<a.length;++s){var o=a[s],c=yo(o,r[o],n);i=Fo.merge(i,c,n)}return Fo.compact(i)},stringify:function(e,t){var n,r=e,i=function(e){if(!e)return Ao;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||Ao.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=To.default;if(void 0!==e.format){if(!Mo.call(To.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var r=To.formatters[n],i=Ao.filter;return"function"!=typeof e.filter&&!Lo(e.filter)||(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:Ao.addQueryPrefix,allowDots:void 0===e.allowDots?Ao.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:Ao.charsetSentinel,delimiter:void 0===e.delimiter?Ao.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:Ao.encode,encoder:"function"==typeof e.encoder?e.encoder:Ao.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:Ao.encodeValuesOnly,filter:i,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:Ao.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:Ao.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:Ao.strictNullHandling}}(t);"function"==typeof i.filter?r=(0,i.filter)("",r):Lo(i.filter)&&(n=i.filter);var a,s=[];if("object"!=typeof r||null===r)return"";a=t&&t.arrayFormat in Io?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var o=Io[a];n||(n=Object.keys(r)),i.sort&&n.sort(i.sort);for(var c=0;c<n.length;++c){var u=n[c];i.skipNulls&&null===r[u]||vo(s,go(r[u],u,o,i.strictNullHandling,i.skipNulls,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.formatter,i.encodeValuesOnly,i.charset))}var l=s.join(i.delimiter),h=!0===i.addQueryPrefix?"?":"";return i.charsetSentinel&&("iso-8859-1"===i.charset?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),0<l.length?h+l:""}},Bo=Pt(function(e,t,n){var r=1;if(n.length){var i=Ss(n,ys(Bo));r|=32}return As(e,r,t,n,i)});Bo.placeholder={};var Vo=Bo;var Qo=function(n,e){return zs(n,e,function(e,t){return er(n,t)})},qo=wi(function(e,t){return null==e?{}:Qo(e,t)});var Wo=function(e,r){var i={};return r=ar(r),Ft(e,function(e,t,n){fr(i,r(e,t,n),e)}),i};var zo=function(e,r){var i={};return r=ar(r),Ft(e,function(e,t,n){fr(i,t,r(e,t,n))}),i},Ko=Fo.encode;function Yo(e){return pi(e)?zo(e,Yo):Array.isArray(e)?cr(e,Yo):Di(e)?Ko(e):e}var $o=["dFR","fR","nR","hFR","tR"],Go=_o.ENCODED_PARAMETERS;function Jo(e,t,n,r){if(null!==e&&(n=n.replace(e,""),r=r.replace(e,"")),n=t[n]||n,r=t[r]||r,-1!==Go.indexOf(n)||-1!==Go.indexOf(r)){if("q"===n)return-1;if("q"===r)return 1;var i=-1!==$o.indexOf(n),a=-1!==$o.indexOf(r);if(i&&!a)return 1;if(a&&!i)return-1}return n.localeCompare(r)}var Zo={getStateFromQueryString:function(e,t){var r=t&&t.prefix||"",n=t&&t.mapping||{},i=Ro(n),a=Uo.parse(e),s=new RegExp("^"+r),o=Wo(a,function(e,t){var n=r&&s.test(t)?t.replace(s,""):t;return _o.decode(i[n]||n)||n}),c=xa._parseNumbers(o);return qo(c,xa.PARAMETERS)},getUnrecognizedParametersInQueryString:function(e,t){var n=t&&t.prefix,r=t&&t.mapping||{},i=Ro(r),a={},s=Uo.parse(e);if(n){var o=new RegExp("^"+n);It(s,function(e,t){o.test(t)||(a[t]=e)})}else It(s,function(e,t){_o.decode(i[t]||t)||(a[t]=e)});return a},getQueryStringFromState:function(e,t){var n=t&&t.moreAttributes,r=t&&t.prefix||"",i=t&&t.mapping||{},a=t&&t.safe||!1,s=Ro(i),o=a?e:Yo(e),c=Wo(o,function(e,t){var n=_o.encode(t);return r+(i[n]||n)}),u=""===r?null:new RegExp("^"+r),l=Vo(Jo,null,u,s);if(ki(n))return Uo.stringify(c,{encode:a,sort:l});var h=Uo.stringify(c,{encode:a,sort:l}),f=Uo.stringify(n,{encode:a});return h?h+"&"+f:f}},Xo="2.28.0";function ec(e,t,n){e.addAlgoliaAgent&&!rc(e)&&e.addAlgoliaAgent("JS Helper (2.28.0)"),this.setClient(e);var r=n||{};r.index=t,this.state=xa.make(r),this.lastResults=null,this._queryId=0,this._lastQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0}function tc(e){if(e<0)throw new Error("Page requested below 0.");return this._change(this.state.setPage(e)),this}function nc(){return this.state.page}function rc(e){var t=e._ua;return!!t&&-1!==t.indexOf("JS Helper")}co(ec,io.EventEmitter),ec.prototype.search=function(){return this._search(),this},ec.prototype.getQuery=function(){var e=this.state;return fo._getHitsSearchParams(e)},ec.prototype.searchOnce=function(e,t){var n=e?this.state.setQueryParameters(e):this.state,r=fo._getQueries(n.index,n),i=this;if(this._currentNbQueries++,this.emit("searchOnce",n),!t)return this.client.search(r).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new no(n,e.results),state:n,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e});this.client.search(r).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new no(n,e.results),n)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,n)})},ec.prototype.searchForFacetValues=function(t,e,n,r){var i="function"==typeof this.client.searchForFacetValues;if(!i&&"function"!=typeof this.client.initIndex)throw new Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var a=this.state.setQueryParameters(r||{}),s=a.isDisjunctiveFacet(t),o=fo.getSearchForFacetQuery(t,e,n,a);this._currentNbQueries++;var c=this;return this.emit("searchForFacetValues",a,t,e),(i?this.client.searchForFacetValues([{indexName:a.index,params:o}]):this.client.initIndex(a.index).searchForFacetValues(o)).then(function(e){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(e=Array.isArray(e)?e[0]:e).facetHits=It(e.facetHits,function(e){e.isRefined=s?a.isDisjunctiveFacetRefined(t,e.value):a.isFacetRefined(t,e.value)}),e},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},ec.prototype.setQuery=function(e){return this._change(this.state.setPage(0).setQuery(e)),this},ec.prototype.clearRefinements=function(e){return this._change(this.state.setPage(0).clearRefinements(e)),this},ec.prototype.clearTags=function(){return this._change(this.state.setPage(0).clearTags()),this},ec.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addDisjunctiveFacetRefinement(e,t)),this},ec.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},ec.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addHierarchicalFacetRefinement(e,t)),this},ec.prototype.addNumericRefinement=function(e,t,n){return this._change(this.state.setPage(0).addNumericRefinement(e,t,n)),this},ec.prototype.addFacetRefinement=function(e,t){return this._change(this.state.setPage(0).addFacetRefinement(e,t)),this},ec.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},ec.prototype.addFacetExclusion=function(e,t){return this._change(this.state.setPage(0).addExcludeRefinement(e,t)),this},ec.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},ec.prototype.addTag=function(e){return this._change(this.state.setPage(0).addTagRefinement(e)),this},ec.prototype.removeNumericRefinement=function(e,t,n){return this._change(this.state.setPage(0).removeNumericRefinement(e,t,n)),this},ec.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change(this.state.setPage(0).removeDisjunctiveFacetRefinement(e,t)),this},ec.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},ec.prototype.removeHierarchicalFacetRefinement=function(e){return this._change(this.state.setPage(0).removeHierarchicalFacetRefinement(e)),this},ec.prototype.removeFacetRefinement=function(e,t){return this._change(this.state.setPage(0).removeFacetRefinement(e,t)),this},ec.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},ec.prototype.removeFacetExclusion=function(e,t){return this._change(this.state.setPage(0).removeExcludeRefinement(e,t)),this},ec.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},ec.prototype.removeTag=function(e){return this._change(this.state.setPage(0).removeTagRefinement(e)),this},ec.prototype.toggleFacetExclusion=function(e,t){return this._change(this.state.setPage(0).toggleExcludeFacetRefinement(e,t)),this},ec.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},ec.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},ec.prototype.toggleFacetRefinement=function(e,t){return this._change(this.state.setPage(0).toggleFacetRefinement(e,t)),this},ec.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},ec.prototype.toggleTag=function(e){return this._change(this.state.setPage(0).toggleTagRefinement(e)),this},ec.prototype.nextPage=function(){return this.setPage(this.state.page+1)},ec.prototype.previousPage=function(){return this.setPage(this.state.page-1)},ec.prototype.setCurrentPage=tc,ec.prototype.setPage=tc,ec.prototype.setIndex=function(e){return this._change(this.state.setPage(0).setIndex(e)),this},ec.prototype.setQueryParameter=function(e,t){return this._change(this.state.setPage(0).setQueryParameter(e,t)),this},ec.prototype.setState=function(e){return this._change(xa.make(e)),this},ec.prototype.getState=function(e){return void 0===e?this.state:this.state.filter(e)},ec.prototype.getStateAsQueryString=function(e){var t=e&&e.filters||["query","attribute:*"],n=this.getState(t);return Zo.getQueryStringFromState(n,e)},ec.getConfigurationFromQueryString=Zo.getStateFromQueryString,ec.getForeignConfigurationInQueryString=Zo.getUnrecognizedParametersInQueryString,ec.prototype.setStateFromQueryString=function(e,t){var n=t&&t.triggerChange||!1,r=Zo.getStateFromQueryString(e,t),i=this.state.setQueryParameters(r);n?this.setState(i):this.overrideStateWithoutTriggeringChangeEvent(i)},ec.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new xa(e),this},ec.prototype.isRefined=function(e,t){if(this.state.isConjunctiveFacet(e))return this.state.isFacetRefined(e,t);if(this.state.isDisjunctiveFacet(e))return this.state.isDisjunctiveFacetRefined(e,t);throw new Error(e+" is not properly defined in this helper configuration(use the facets or disjunctiveFacets keys to configure it)")},ec.prototype.hasRefinements=function(e){return!ki(this.state.getNumericRefinements(e))||(this.state.isConjunctiveFacet(e)?this.state.isFacetRefined(e):this.state.isDisjunctiveFacet(e)?this.state.isDisjunctiveFacetRefined(e):!!this.state.isHierarchicalFacet(e)&&this.state.isHierarchicalFacetRefined(e))},ec.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},ec.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},ec.prototype.hasTag=function(e){return this.state.isTagRefined(e)},ec.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},ec.prototype.getIndex=function(){return this.state.index},ec.prototype.getCurrentPage=nc,ec.prototype.getPage=nc,ec.prototype.getTags=function(){return this.state.tagRefinements},ec.prototype.getQueryParameter=function(e){return this.state.getQueryParameter(e)},ec.prototype.getRefinements=function(e){var n=[];if(this.state.isConjunctiveFacet(e)){var t=this.state.getConjunctiveRefinements(e);It(t,function(e){n.push({value:e,type:"conjunctive"})});var r=this.state.getExcludeRefinements(e);It(r,function(e){n.push({value:e,type:"exclude"})})}else if(this.state.isDisjunctiveFacet(e)){var i=this.state.getDisjunctiveRefinements(e);It(i,function(e){n.push({value:e,type:"disjunctive"})})}var a=this.state.getNumericRefinements(e);return It(a,function(e,t){n.push({value:e,operator:t,type:"numeric"})}),n},ec.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},ec.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},ec.prototype._search=function(){var r=this.state,e=fo._getQueries(r.index,r),i=[{state:r,queriesCount:e.length,helper:this}];this.emit("search",r,this.lastResults);var t=cr(this.derivedHelpers,function(e){var t=e.getModifiedState(r),n=fo._getQueries(t.index,t);return i.push({state:t,queriesCount:n.length,helper:e}),e.emit("search",t,e.lastResults),n}),n=e.concat(bi(t)),a=this._queryId++;this._currentNbQueries++;try{this.client.search(n).then(this._dispatchAlgoliaResponse.bind(this,i,a)).catch(this._dispatchAlgoliaError.bind(this,a))}catch(e){this.emit("error",e)}},ec.prototype._dispatchAlgoliaResponse=function(e,t,n){if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var s=n.results.slice();It(e,function(e){var t=e.state,n=e.queriesCount,r=e.helper,i=s.splice(0,n),a=r.lastResults=new no(t,i);r.emit("result",a,t)})}},ec.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",t),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},ec.prototype.containsRefinement=function(e,t,n,r){return e||0!==t.length||0!==n.length||0!==r.length},ec.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&0<this.state.disjunctiveRefinements[e].length},ec.prototype._change=function(e){e!==this.state&&(this.state=e,this.emit("change",this.state,this.lastResults))},ec.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},ec.prototype.setClient=function(e){return this.client===e||(e.addAlgoliaAgent&&!rc(e)&&e.addAlgoliaAgent("JS Helper (2.28.0)"),this.client=e),this},ec.prototype.getClient=function(){return this.client},ec.prototype.derive=function(e){var t=new lo(this,e);return this.derivedHelpers.push(t),t},ec.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw new Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},ec.prototype.hasPendingRequests=function(){return 0<this._currentNbQueries};var ic=ec;function ac(e,t,n){return new ic(e,t,n)}ac.version=Xo,ac.AlgoliaSearchHelper=ic,ac.SearchParameters=xa,ac.SearchResults=no,ac.url=Zo;var sc=ac;function oc(e){var t="string"==typeof e,n=t?document.querySelector(e):e;if(function(e){return e instanceof HTMLElement||Boolean(e)&&0<e.nodeType}(n))return n;var r="Container must be `string` or `HTMLElement`.";throw t&&(r+=" Unable to find ".concat(e)),new Error(r)}function cc(e){return 1===e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey}function uc(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}function lc(e){var t=e.defaultTemplates,n=e.templates;return H({templatesConfig:e.templatesConfig},function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return uc([].concat(b(Object.keys(a)),b(Object.keys(s)))).reduce(function(e,t){var n=a[t],r=s[t],i=void 0!==r&&r!==n;return e.templates[t]=i?r:n,e.useCustomCompileOptions[t]=i,e},{templates:{},useCustomCompileOptions:{}})}(t,n))}var hc=n(function(e,t){!function(w){var R=/\S/,t=/\"/g,n=/\n/g,r=/\r/g,i=/\\/g,a=/\u2028/,s=/\u2029/;function S(e){"}"===e.n.substr(e.n.length-1)&&(e.n=e.n.substring(0,e.n.length-1))}function P(e){return e.trim?e.trim():e.replace(/^\s*|\s*$/g,"")}function _(e,t,n){if(t.charAt(n)!=e.charAt(0))return!1;for(var r=1,i=e.length;r<i;r++)if(t.charAt(n+r)!=e.charAt(r))return!1;return!0}w.tags={"#":1,"^":2,"<":3,$:4,"/":5,"!":6,">":7,"=":8,_v:9,"{":10,"&":11,_t:12},w.scan=function(e,t){var n,r,i,a,s,o=e.length,c=0,u=null,l=null,h="",f=[],d=!1,p=0,m=0,v="{{",g="}}";function y(){0<h.length&&(f.push({tag:"_t",text:new String(h)}),h="")}function b(e,t){if(y(),e&&function(){for(var e=!0,t=m;t<f.length;t++)if(!(e=w.tags[f[t].tag]<w.tags._v||"_t"==f[t].tag&&null===f[t].text.match(R)))return!1;return e}())for(var n,r=m;r<f.length;r++)f[r].text&&((n=f[r+1])&&">"==n.tag&&(n.indent=f[r].text.toString()),f.splice(r,1));else t||f.push({tag:"\n"});d=!1,m=f.length}for(t&&(t=t.split(" "),v=t[0],g=t[1]),p=0;p<o;p++)0==c?_(v,e,p)?(--p,y(),c=1):"\n"==e.charAt(p)?b(d):h+=e.charAt(p):1==c?(p+=v.length-1,c="="==(u=(l=w.tags[e.charAt(p+1)])?e.charAt(p+1):"_v")?(r=p,void 0,i="="+g,a=(n=e).indexOf(i,r),s=P(n.substring(n.indexOf("=",r)+1,a)).split(" "),v=s[0],g=s[s.length-1],p=a+i.length-1,0):(l&&p++,2),d=p):_(g,e,p)?(f.push({tag:u,n:P(h),otag:v,ctag:g,i:"/"==u?d-v.length:p+g.length}),h="",p+=g.length-1,c=0,"{"==u&&("}}"==g?p++:S(f[f.length-1]))):h+=e.charAt(p);return b(d,!0),f};var u={_t:!0,"\n":!0,$:!0,"/":!0};function l(e,t){for(var n=0,r=t.length;n<r;n++)if(t[n].o==e.n)return e.tag="#",!0}function h(e,t,n){for(var r=0,i=n.length;r<i;r++)if(n[r].c==e&&n[r].o==t)return!0}function o(e){var t=[];for(var n in e.partials)t.push('"'+f(n)+'":{name:"'+f(e.partials[n].name)+'", '+o(e.partials[n])+"}");return"partials: {"+t.join(",")+"}, subs: "+function(e){var t=[];for(var n in e)t.push('"'+f(n)+'": function(c,p,t,i) {'+e[n]+"}");return"{ "+t.join(",")+" }"}(e.subs)}w.stringify=function(e,t,n){return"{code: function (c,p,i) { "+w.wrapMain(e.code)+" },"+o(e)+"}"};var c=0;function f(e){return e.replace(i,"\\\\").replace(t,'\\"').replace(n,"\\n").replace(r,"\\r").replace(a,"\\u2028").replace(s,"\\u2029")}function d(e){return~e.indexOf(".")?"d":"f"}function p(e,t){var n="<"+(t.prefix||"")+e.n+c++;return t.partials[n]={name:e.n,partials:{}},t.code+='t.b(t.rp("'+f(n)+'",c,p,"'+(e.indent||"")+'"));',n}function e(e,t){t.code+="t.b(t.t(t."+d(e.n)+'("'+f(e.n)+'",c,p,0)));'}function m(e){return"t.b("+e+");"}w.generate=function(e,t,n){c=0;var r={code:"",subs:{},partials:{}};return w.walk(e,r),n.asString?this.stringify(r,t,n):this.makeTemplate(r,t,n)},w.wrapMain=function(e){return'var t=this;t.b(i=i||"");'+e+"return t.fl();"},w.template=w.Template,w.makeTemplate=function(e,t,n){var r=this.makePartials(e);return r.code=new Function("c","p","i",this.wrapMain(e.code)),new this.template(r,t,this,n)},w.makePartials=function(e){var t,n={subs:{},partials:e.partials,name:e.name};for(t in n.partials)n.partials[t]=this.makePartials(n.partials[t]);for(t in e.subs)n.subs[t]=new Function("c","p","t","i",e.subs[t]);return n},w.codegen={"#":function(e,t){t.code+="if(t.s(t."+d(e.n)+'("'+f(e.n)+'",c,p,1),c,p,0,'+e.i+","+e.end+',"'+e.otag+" "+e.ctag+'")){t.rs(c,p,function(c,p,t){',w.walk(e.nodes,t),t.code+="});c.pop();}"},"^":function(e,t){t.code+="if(!t.s(t."+d(e.n)+'("'+f(e.n)+'",c,p,1),c,p,1,0,0,"")){',w.walk(e.nodes,t),t.code+="};"},">":p,"<":function(e,t){var n={partials:{},code:"",subs:{},inPartial:!0};w.walk(e.nodes,n);var r=t.partials[p(e,t)];r.subs=n.subs,r.partials=n.partials},$:function(e,t){var n={subs:{},code:"",partials:t.partials,prefix:e.n};w.walk(e.nodes,n),t.subs[e.n]=n.code,t.inPartial||(t.code+='t.sub("'+f(e.n)+'",c,p,i);')},"\n":function(e,t){t.code+=m('"\\n"'+(e.last?"":" + i"))},_v:function(e,t){t.code+="t.b(t.v(t."+d(e.n)+'("'+f(e.n)+'",c,p,0)));'},_t:function(e,t){t.code+=m('"'+f(e.text)+'"')},"{":e,"&":e},w.walk=function(e,t){for(var n,r=0,i=e.length;r<i;r++)(n=w.codegen[e[r].tag])&&n(e[r],t);return t},w.parse=function(e,t,n){return function e(t,n,r,i){var a,s=[],o=null,c=null;for(a=r[r.length-1];0<t.length;){if(c=t.shift(),a&&"<"==a.tag&&!(c.tag in u))throw new Error("Illegal content in < super tag.");if(w.tags[c.tag]<=w.tags.$||l(c,i))r.push(c),c.nodes=e(t,c.tag,r,i);else{if("/"==c.tag){if(0===r.length)throw new Error("Closing tag without opener: /"+c.n);if(o=r.pop(),c.n!=o.n&&!h(c.n,o.n,i))throw new Error("Nesting error: "+o.n+" vs. "+c.n);return o.end=c.i,s}"\n"==c.tag&&(c.last=0==t.length||"\n"==t[0].tag)}s.push(c)}if(0<r.length)throw new Error("missing closing tag: "+r.pop().n);return s}(e,0,[],(n=n||{}).sectionTags||[])},w.cache={},w.cacheKey=function(e,t){return[e,!!t.asString,!!t.disableLambda,t.delimiters,!!t.modelGet].join("||")},w.compile=function(e,t){t=t||{};var n=w.cacheKey(e,t),r=this.cache[n];if(r){var i=r.partials;for(var a in i)delete i[a].instance;return r}return r=this.generate(this.parse(this.scan(e,t.delimiters),e,t),e,t),this.cache[n]=r}}(t)}),fc=n(function(e,t){!function(e){function l(e,t,n){var r;return t&&"object"==typeof t&&(void 0!==t[e]?r=t[e]:n&&t.get&&"function"==typeof t.get&&(r=t.get(e))),r}e.Template=function(e,t,n,r){e=e||{},this.r=e.code||this.r,this.c=n,this.options=r||{},this.text=t||"",this.partials=e.partials||{},this.subs=e.subs||{},this.buf=""},e.Template.prototype={r:function(e,t,n){return""},v:function(e){return e=o(e),s.test(e)?e.replace(t,"&amp;").replace(n,"&lt;").replace(r,"&gt;").replace(i,"&#39;").replace(a,"&quot;"):e},t:o,render:function(e,t,n){return this.ri([e],t||{},n)},ri:function(e,t,n){return this.r(e,t,n)},ep:function(e,t){var n=this.partials[e],r=t[n.name];if(n.instance&&n.base==r)return n.instance;if("string"==typeof r){if(!this.c)throw new Error("No compiler available.");r=this.c.compile(r,this.options)}if(!r)return null;if(this.partials[e].base=r,n.subs){for(key in t.stackText||(t.stackText={}),n.subs)t.stackText[key]||(t.stackText[key]=void 0!==this.activeSub&&t.stackText[this.activeSub]?t.stackText[this.activeSub]:this.text);r=function(e,t,n,r,i,a){function s(){}function o(){}var c;o.prototype=(s.prototype=e).subs;var u=new s;for(c in u.subs=new o,u.subsText={},u.buf="",r=r||{},u.stackSubs=r,u.subsText=a,t)r[c]||(r[c]=t[c]);for(c in r)u.subs[c]=r[c];for(c in i=i||{},u.stackPartials=i,n)i[c]||(i[c]=n[c]);for(c in i)u.partials[c]=i[c];return u}(r,n.subs,n.partials,this.stackSubs,this.stackPartials,t.stackText)}return this.partials[e].instance=r},rp:function(e,t,n,r){var i=this.ep(e,n);return i?i.ri(t,n,r):""},rs:function(e,t,n){var r=e[e.length-1];if(h(r))for(var i=0;i<r.length;i++)e.push(r[i]),n(e,t,this),e.pop();else n(e,t,this)},s:function(e,t,n,r,i,a,s){var o;return(!h(e)||0!==e.length)&&("function"==typeof e&&(e=this.ms(e,t,n,r,i,a,s)),o=!!e,!r&&o&&t&&t.push("object"==typeof e?e:t[t.length-1]),o)},d:function(e,t,n,r){var i,a=e.split("."),s=this.f(a[0],t,n,r),o=this.options.modelGet,c=null;if("."===e&&h(t[t.length-2]))s=t[t.length-1];else for(var u=1;u<a.length;u++)s=void 0!==(i=l(a[u],s,o))?(c=s,i):"";return!(r&&!s)&&(r||"function"!=typeof s||(t.push(c),s=this.mv(s,t,n),t.pop()),s)},f:function(e,t,n,r){for(var i=!1,a=!1,s=this.options.modelGet,o=t.length-1;0<=o;o--)if(void 0!==(i=l(e,t[o],s))){a=!0;break}return a?(r||"function"!=typeof i||(i=this.mv(i,t,n)),i):!r&&""},ls:function(e,t,n,r,i){var a=this.options.delimiters;return this.options.delimiters=i,this.b(this.ct(o(e.call(t,r)),t,n)),this.options.delimiters=a,!1},ct:function(e,t,n){if(this.options.disableLambda)throw new Error("Lambda features disabled.");return this.c.compile(e,this.options).render(t,n)},b:function(e){this.buf+=e},fl:function(){var e=this.buf;return this.buf="",e},ms:function(e,t,n,r,i,a,s){var o,c=t[t.length-1],u=e.call(c);return"function"==typeof u?!!r||(o=this.activeSub&&this.subsText&&this.subsText[this.activeSub]?this.subsText[this.activeSub]:this.text,this.ls(u,c,n,o.substring(i,a),s)):u},mv:function(e,t,n){var r=t[t.length-1],i=e.call(r);return"function"==typeof i?this.ct(o(i.call(r)),r,n):i},sub:function(e,t,n,r){var i=this.subs[e];i&&(this.activeSub=e,i(t,n,this,r),this.activeSub=!1)}};var t=/&/g,n=/</g,r=/>/g,i=/\'/g,a=/\"/g,s=/[&<>\"\']/;function o(e){return String(null==e?"":e)}var h=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}}(t)});hc.Template=fc.Template,hc.template=hc.Template;var dc=hc;function pc(e){var t=e.templates,n=e.templateKey,r=e.compileOptions,i=e.helpers,a=e.data,s=t[n],o=f(s),c="function"===o;if(!("string"===o)&&!c)throw new Error("Template must be 'string' or 'function', was '".concat(o,"' (key: ").concat(n,")"));if(c)return s(a);var u=function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=1<arguments.length?arguments[1]:void 0,a=2<arguments.length?arguments[2]:void 0;return Object.keys(r).reduce(function(e,n){return H({},e,F({},n,function(){var t=this;return function(e){return r[n].call(a,e,function(e){return dc.compile(e,i).render(t)})}}))},{})}(i,r,a);return dc.compile(s,r).render(H({},a,{helpers:u})).replace(/[ \n\r\t\f\xA0]+/g,function(e){return e.replace(/(^|\xA0+)[^\xA0]+/g,"$1 ")}).trim()}function mc(e,t,n){return Array.prototype.find?e.find(t,n):e.filter(t,n)[0]}function vc(e){return String(e).replace(/^\\-/,"-")}function gc(i,e,a,s){var o,t=4<arguments.length&&void 0!==arguments[4]?arguments[4]:[],n={type:e,attributeName:a,name:s},c=mc(t,function(e){return e.name===a});"hierarchical"===e?function(){for(var e=i.getHierarchicalFacetByName(a),n=s.split(e.separator),t=function(t){c=c&&c.data&&mc(Object.keys(c.data).map(function(t){return function(e){return t[e]}}(c.data)),function(e){return e.name===n[t]})},r=0;void 0!==c&&r<n.length;++r)t(r);o=c&&c.count}():o=c&&c.data&&c.data[n.name];var r=c&&c.exhaustive;return void 0!==o&&(n.count=o),void 0!==r&&(n.exhaustive=r),n}function yc(n,r){var e=2<arguments.length&&void 0!==arguments[2]&&arguments[2],i=[],t=r.facetsRefinements,a=void 0===t?{}:t,s=r.facetsExcludes,o=void 0===s?{}:s,c=r.disjunctiveFacetsRefinements,u=void 0===c?{}:c,l=r.hierarchicalFacetsRefinements,h=void 0===l?{}:l,f=r.numericRefinements,d=void 0===f?{}:f,p=r.tagRefinements,m=void 0===p?[]:p;return Object.keys(a).forEach(function(t){a[t].forEach(function(e){i.push(gc(r,"facet",t,e,n.facets))})}),Object.keys(o).forEach(function(t){o[t].forEach(function(e){i.push({type:"exclude",attributeName:t,name:e,exclude:!0})})}),Object.keys(u).forEach(function(t){u[t].forEach(function(e){i.push(gc(r,"disjunctive",t,vc(e),n.disjunctiveFacets))})}),Object.keys(h).forEach(function(t){h[t].forEach(function(e){i.push(gc(r,"hierarchical",t,e,n.hierarchicalFacets))})}),Object.keys(d).forEach(function(n){var r=d[n];Object.keys(r).forEach(function(t){var e=r[t];(Array.isArray(e)?e:[e]).forEach(function(e){i.push({type:"numeric",attributeName:n,name:"".concat(e),numericValue:e,operator:t})})})}),m.forEach(function(e){i.push({type:"tag",attributeName:"_tags",name:e})}),e&&r.query&&r.query.trim()&&i.push({attributeName:"query",type:"query",name:r.query,query:r.query}),i}function bc(e){var t=e.helper,n=e.attributesToClear,r=void 0===n?[]:n,i=t.state.setPage(0);return r.forEach(function(e){i="_tags"===e?i.clearTags():i.clearRefinements(e)}),-1!==r.indexOf("query")&&(i=i.setQuery("")),i}function wc(e){return"number"==typeof e&&e<0&&(e=String(e).replace(/^-/,"\\-")),e}function Rc(e,t){if(void 0===e||"function"!=typeof e)throw new Error('The render function is not valid (got type "'.concat(f(e),'").\n\n').concat(t))}function Sc(e,t){return t.split(".").reduce(function(e,t){return e&&e[t]},e)}function Pc(){}function _c(e){return"number"==typeof e&&isFinite(e)}function Nc(e){if(!function(e){return"object"===f(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}function xc(e){var t=e.start,n=void 0===t?0:t,r=e.end,i=e.step,a=void 0===i?1:i,s=0===a?1:a,o=Math.round((r-n)/s);return b(Array(o)).map(function(e,t){return(n+t)*s})}function Cc(e){return e!==Object(e)}function Fc(e,t){if(e===t)return!0;if(Cc(e)||Cc(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(!(i in t))return!1;if(!Fc(e[i],t[i]))return!1}return!0}var Ec={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jc=/[&<>"']/g,Tc=RegExp(jc.source);function Mc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(r){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(e){var t=r[e],n=i[e];Array.isArray(t)&&Array.isArray(n)?r[e]=uc([].concat(b(t),b(n))):Nc(t)&&Nc(n)?r[e]=Mc(t,n):r[e]=n}),r},{})}function Ic(e){var t=e.name,n=e.connector;return["https://www.algolia.com/doc/api-reference/widgets/",t,"/js/",void 0!==n&&n?"#connector":""].join("")}function Lc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.map(function(e){return Ic(e)}).join(", ");return function(e){return[e,"See documentation: ".concat(r)].filter(Boolean).join("\n\n")}}var kc=Pc,Oc=/^(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)$/;function Ac(e){return Array.isArray(e)?function(e){var t=U(e,1)[0],n=U(t=void 0===t?[]:t,4),r=n[0],i=n[1],a=n[2],s=n[3];if(!(r&&i&&a&&s))throw new Error('Invalid value for "insideBoundingBox" parameter: ['.concat(e,"]"));return{northEast:{lat:r,lng:i},southWest:{lat:a,lng:s}}}(e):function(e){var t=U(e.split(",").map(parseFloat),4),n=t[0],r=t[1],i=t[2],a=t[3];if(!(n&&r&&i&&a))throw new Error('Invalid value for "insideBoundingBox" parameter: "'.concat(e,'"'));return{northEast:{lat:n,lng:r},southWest:{lat:i,lng:a}}}(e)}var Dc=function(e,n,r){return e.map(function(e,t){return H({},e,{__position:r*n+t+1})})},Hc=function(e,t){return t?e.map(function(e){return H({},e,{__queryID:t})}):e},Uc=function(){function i(e){var t=e.router,n=e.stateMapping,r=e.instantSearchInstance;T(this,i),F(this,"instantSearchInstance",void 0),F(this,"router",void 0),F(this,"stateMapping",void 0),F(this,"isFirstRender",!0),F(this,"currentUiState",void 0),F(this,"initState",void 0),F(this,"renderURLFromState",void 0),this.router=t,this.stateMapping=n,this.instantSearchInstance=r,this.currentUiState=this.stateMapping.routeToState(this.router.read())}return M(i,[{key:"getAllSearchParameters",value:function(e){var t=e.currentSearchParameters,n=e.uiState;return this.instantSearchInstance.widgets.reduce(function(e,t){return t.getWidgetSearchParameters?t.getWidgetSearchParameters(e,{uiState:n}):e},t)}},{key:"getAllUiStates",value:function(e){var n=e.searchParameters,t=this.instantSearchInstance.widgets,r=this.instantSearchInstance.helper;return t.reduce(function(e,t){return t.getWidgetState?t.getWidgetState(e,{helper:r,searchParameters:n}):e},{})}},{key:"setupRouting",value:function(r){var i=this,a=this.instantSearchInstance.helper;this.router.onUpdate(function(e){var t=i.stateMapping.routeToState(e);if(!Fc(t,i.getAllUiStates({searchParameters:a.state}))){i.currentUiState=t;var n=i.getAllSearchParameters({currentSearchParameters:r,uiState:i.currentUiState});a.overrideStateWithoutTriggeringChangeEvent(n).search()}}),this.renderURLFromState=function(e){i.currentUiState=i.getAllUiStates({searchParameters:e});var t=i.stateMapping.stateToRoute(i.currentUiState);i.router.write(t)},a.on("change",this.renderURLFromState);var e=this.getAllUiStates({searchParameters:r});if(!Fc(this.initState,e)){this.currentUiState=e;var t=this.stateMapping.stateToRoute(this.currentUiState);this.router.write(t)}}},{key:"getConfiguration",value:function(e){var t=sc.SearchParameters.make(e);return H({},this.getAllSearchParameters({uiState:this.currentUiState,currentSearchParameters:t}))}},{key:"init",value:function(e){var t=e.state;this.initState=this.getAllUiStates({searchParameters:t})}},{key:"render",value:function(e){var t=e.state;this.isFirstRender&&(this.isFirstRender=!1,this.setupRouting(t))}},{key:"dispose",value:function(e){var t=e.helper,n=e.state;this.renderURLFromState&&this.instantSearchInstance.helper.removeListener("change",this.renderURLFromState),this.router.dispose&&this.router.dispose({helper:t,state:n})}},{key:"createURL",value:function(e){var t=this.getAllUiStates({searchParameters:e}),n=this.stateMapping.stateToRoute(t);return this.router.createURL(n)}},{key:"onHistoryChange",value:function(r){var i=this,a=this.instantSearchInstance.helper;this.router.onUpdate(function(e){var t=i.stateMapping.routeToState(e);if(!Fc(t,i.getAllUiStates({searchParameters:a.state}))){i.currentUiState=t;var n=i.getAllSearchParameters({currentSearchParameters:a.state,uiState:i.currentUiState});r(H({},n))}})}}]),i}(),Bc=function(){function e(){T(this,e)}return M(e,[{key:"stateToRoute",value:function(e){return e}},{key:"routeToState",value:function(e){return e}}]),e}();function Vc(){return new Bc}function Qc(e){var t=e.qsModule,n=e.routeState,r=e.location,i=r.protocol,a=r.hostname,s=r.port,o=void 0===s?"":s,c=r.pathname,u=r.hash,l=t.stringify(n),h=""===o?"":":".concat(o);return n&&0!==Object.keys(n).length?"".concat(i,"//").concat(a).concat(h).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(a).concat(h).concat(c).concat(u)}function qc(e){var t=e.qsModule,n=e.location;return t.parse(n.search.slice(1),{arrayLimit:99})}function Wc(e){e&&(window.document.title=e)}var zc=function(){function u(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.windowTitle,n=e.writeDelay,r=void 0===n?400:n,i=e.createURL,a=void 0===i?Qc:i,s=e.parseURL,o=void 0===s?qc:s;T(this,u),F(this,"windowTitle",void 0),F(this,"writeDelay",void 0),F(this,"_createURL",void 0),F(this,"parseURL",void 0),F(this,"writeTimer",void 0),this.windowTitle=t,this.writeTimer=void 0,this.writeDelay=r,this._createURL=a,this.parseURL=o;var c=this.windowTitle&&this.windowTitle(this.read());Wc(c)}return M(u,[{key:"read",value:function(){return this.parseURL({qsModule:Uo,location:window.location})}},{key:"write",value:function(e){var t=this,n=this.createURL(e),r=this.windowTitle&&this.windowTitle(e);this.writeTimer&&window.clearTimeout(this.writeTimer),this.writeTimer=window.setTimeout(function(){Wc(r),window.history.pushState(e,r||"",n),t.writeTimer=void 0},this.writeDelay)}},{key:"onUpdate",value:function(n){var r=this;this._onPopState=function(e){r.writeTimer&&(window.clearTimeout(r.writeTimer),r.writeTimer=void 0);var t=e.state;n(t||r.read())},window.addEventListener("popstate",this._onPopState)}},{key:"createURL",value:function(e){return this._createURL({qsModule:Uo,routeState:e,location:window.location})}},{key:"dispose",value:function(){this._onPopState&&window.removeEventListener("popstate",this._onPopState),this.writeTimer&&window.clearTimeout(this.writeTimer),this.write({})}}]),u}();function Kc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s(zc,t)}var Yc={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},$c={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function Gc(e){return function(e){return e&&Tc.test(e)?e.replace(jc,function(e){return Ec[e]}):e}(e).replace(new RegExp(Yc.highlightPreTag,"g"),$c.highlightPreTag).replace(new RegExp(Yc.highlightPostTag,"g"),$c.highlightPostTag)}function Jc(n){return Nc(n)&&"string"!=typeof n.value?Object.keys(n).reduce(function(e,t){return H({},e,F({},t,Jc(n[t])))},{}):Array.isArray(n)?n.map(Jc):H({},n,{value:Gc(n.value)})}function Zc(e){return void 0===e.__escaped&&((e=e.map(function(e){return e._highlightResult&&(e._highlightResult=Jc(e._highlightResult)),e._snippetResult&&(e._snippetResult=Jc(e._snippetResult)),e})).__escaped=!0),e}function Xc(a){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.descendantName,n=e.modifierName,r=t?"-".concat(t):"",i=n?"--".concat(n):"";return"".concat("ais","-").concat(a).concat(r).concat(i)}}var eu=Xc("Highlight");function tu(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=Sc(e.hit,"_highlightResult.".concat(t,".value"))||"",a=eu({descendantName:"highlighted"});return i.replace(new RegExp($c.highlightPreTag,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp($c.highlightPostTag,"g"),"</".concat(r,">"))}var nu=Xc("Snippet");function ru(e){var t=e.attribute,n=e.highlightedTagName,r=void 0===n?"mark":n,i=Sc(e.hit,"_snippetResult.".concat(t,".value"))||"",a=nu({descendantName:"highlighted"});return i.replace(new RegExp($c.highlightPreTag,"g"),"<".concat(r,' class="').concat(a,'">')).replace(new RegExp($c.highlightPostTag,"g"),"</".concat(r,">"))}var iu=Lc({name:"instantsearch"}),au={stateMapping:Vc(),router:Kc()};function su(){return"#"}var ou=function(e){function m(e){var t;T(this,m),t=O(this,L(m).call(this));var n=e.indexName,r=void 0===n?null:n,i=e.numberLocale,a=e.searchParameters,s=e.routing,o=void 0===s?null:s,c=e.searchFunction,u=e.stalledSearchDelay,l=void 0===u?200:u,h=e.searchClient,f=void 0===h?null:h,d=e.insightsClient,p=void 0===d?null:d;if(null===r)throw new Error(iu("The `indexName` option is required."));if(null===f)throw new Error(iu("The `searchClient` option is required."));if(void 0!==e.urlSync)throw new Error(iu("The `urlSync` option was removed in InstantSearch.js 3. You may want to use the `routing` option."));if("function"!=typeof f.search)throw new Error("The `searchClient` must implement a `search` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/going-further/backend-search/in-depth/backend-instantsearch/js/");if("function"==typeof f.addAlgoliaAgent&&f.addAlgoliaAgent("instantsearch.js (".concat("3.7.0",")")),p&&"function"!=typeof p)throw new Error("The provided `insightsClient` must be a function.");return kc(!a,"The `searchParameters` option is deprecated and will not be supported in InstantSearch.js 4.x.\n\nYou can replace it with the `configure` widget:\n\n```\nsearch.addWidgets([\n configure(".concat(JSON.stringify(a,null,2),")\n]);\n```\n\nSee ").concat(Ic({name:"configure"}))),t.client=f,t.insightsClient=p,t.helper=null,t.indexName=r,t.searchParameters=H({},a,{index:r}),t.widgets=[],t.templatesConfig={helpers:function(e){var n=e.numberLocale;return{formatNumber:function(e,t){return Number(t(e)).toLocaleString(n)},highlight:function(e,t){try{return t(tu(H({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{return t(ru(H({},JSON.parse(e),{hit:this})))}catch(e){throw new Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}}}}({numberLocale:i}),compileOptions:{}},t._stalledSearchDelay=l,c&&(t._searchFunction=c),!0===o?t.routing=au:Nc(o)&&(t.routing=H({},au,{},o)),t}return I(m,io),M(m,[{key:"addWidget",value:function(e){this.addWidgets([e])}},{key:"addWidgets",value:function(e){var t=this;if(!Array.isArray(e))throw new Error(iu("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));var n=this.widgets.pop();e.forEach(function(e){if(void 0===e.render&&void 0===e.init)throw new Error("The widget definition expects a `render` and/or an `init` method.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/");t.widgets.push(e)}),n&&this.widgets.push(n),this.started&&Boolean(e.length)&&(this.searchParameters=this.widgets.reduce(cu,H({},this.helper.state)),this.helper.setState(this.searchParameters),e.forEach(function(e){e.init&&e.init({state:t.helper.state,helper:t.helper,templatesConfig:t.templatesConfig,createURL:t._createAbsoluteURL,onHistoryChange:t._onHistoryChange,instantSearchInstance:t})}),this.helper.search())}},{key:"removeWidget",value:function(e){this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){var n=this;if(!Array.isArray(e))throw new Error(iu("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));e.forEach(function(t){if(!n.widgets.includes(t)||"function"!=typeof t.dispose)throw new Error("The `dispose` method is required to remove the widget.\n\nSee: https://www.algolia.com/doc/guides/building-search-ui/widgets/create-your-own-widgets/js/#the-widget-lifecycle-and-api");n.widgets=n.widgets.filter(function(e){return e!==t});var e=t.dispose({helper:n.helper,state:n.helper.state});e&&(n.searchParameters=n.widgets.reduce(cu,H({},e)),n.helper.setState(n.searchParameters))}),setTimeout(function(){0<n.widgets.length&&n.helper.search()},0)}},{key:"refresh",value:function(){this.helper&&this.helper.clearCache().search()}},{key:"start",value:function(){var t=this;if(this.started)throw new Error(iu("The `start` method has already been called once."));if(this.routing){var e=new Uc(H({},this.routing,{instantSearchInstance:this}));this._onHistoryChange=e.onHistoryChange.bind(e),this._createURL=e.createURL.bind(e),this._createAbsoluteURL=this._createURL,this.widgets.push(e)}else this._createURL=su,this._createAbsoluteURL=su,this._onHistoryChange=Pc;this.searchParameters=this.widgets.reduce(cu,this.searchParameters);var n=sc(this.client,this.searchParameters.index||this.indexName,this.searchParameters);this._searchFunction&&(this._mainHelperSearch=n.search.bind(n),n.search=function(){var e=sc({search:function(){return new Promise(Pc)}},n.state.index,n.state);e.once("search",function(e){n.overrideStateWithoutTriggeringChangeEvent(e),t._mainHelperSearch()}),t._searchFunction(e)}),this.helper=n,this._init(n.state,this.helper),this.helper.on("result",this._render.bind(this,this.helper)),this.helper.on("error",function(e){t.emit("error",e)}),this._searchStalledTimer=null,this._isSearchStalled=!0,this.helper.search(),this.helper.on("search",function(){t._isSearchStalled||t._searchStalledTimer||(t._searchStalledTimer=setTimeout(function(){t._isSearchStalled=!0,t._render(t.helper,t.helper.lastResults,t.helper.lastResults._state)},t._stalledSearchDelay))}),this.started=!0}},{key:"dispose",value:function(){this.removeWidgets(this.widgets),this.started=!1,this.helper.removeAllListeners(),this.helper=null}},{key:"createURL",value:function(e){if(!this._createURL)throw new Error("The `start` method needs to be called before `createURL`.");return this._createURL(this.helper.state.setQueryParameters(e))}},{key:"_render",value:function(t,n,r){var i=this;this.helper.hasPendingRequests()||(clearTimeout(this._searchStalledTimer),this._searchStalledTimer=null,this._isSearchStalled=!1),this.widgets.forEach(function(e){e.render&&e.render({templatesConfig:i.templatesConfig,results:n,state:r,helper:t,createURL:i._createAbsoluteURL,instantSearchInstance:i,searchMetadata:{isSearchStalled:i._isSearchStalled}})}),this.emit("render")}},{key:"_init",value:function(t,n){var r=this;this.widgets.forEach(function(e){e.init&&e.init({state:t,helper:n,templatesConfig:r.templatesConfig,createURL:r._createAbsoluteURL,onHistoryChange:r._onHistoryChange,instantSearchInstance:r})})}}]),m}();function cu(e,t){if(!t.getConfiguration)return e;var n=t.getConfiguration(e);if(!n)return e;if(!n.hierarchicalFacets)return Mc(e,n);var r=n.hierarchicalFacets,i=k(n,["hierarchicalFacets"]);return Mc(H({},e,{hierarchicalFacets:r.reduce(function(e,t){var n=function(e,t){if(!Array.isArray(e))return-1;for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}(e,function(e){return e.name===t.name});if(-1===n)return e.concat(t);var r=e.slice();return r.splice(n,1,t),r},e.hierarchicalFacets||[])}),i)}var uu=Lc({name:"clear-refinements",connector:!0});function lu(u){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(u,uu()),function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(a.includedAttributes&&a.excludedAttributes)throw new Error(uu("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var e=a.includedAttributes,s=void 0===e?[]:e,t=a.excludedAttributes,o=void 0===t?["query"]:t,n=a.transformItems,c=void 0===n?function(e){return e}:n;return{init:function(e){var t=e.helper,n=e.instantSearchInstance,r=e.createURL,i=0<hu({helper:t,includedAttributes:s,excludedAttributes:o,transformItems:c}).length;this._refine=function(){t.setState(bc({helper:t,attributesToClear:hu({helper:t,includedAttributes:s,excludedAttributes:o,transformItems:c})})).search()},this._createURL=function(){return r(bc({helper:t,attributesToClear:hu({helper:t,includedAttributes:s,excludedAttributes:o,transformItems:c})}))},u({hasRefinements:i,refine:this._refine,createURL:this._createURL,instantSearchInstance:n,widgetParams:a},!0)},render:function(e){var t=e.helper,n=e.instantSearchInstance,r=0<hu({helper:t,includedAttributes:s,excludedAttributes:o,transformItems:c}).length;u({hasRefinements:r,refine:this._refine,createURL:this._createURL,instantSearchInstance:n,widgetParams:a},!1)},dispose:function(){r()}}}}function hu(e){var t=e.helper,n=e.includedAttributes,r=e.excludedAttributes,i=e.transformItems,a=-1!==n.indexOf("query")||-1===r.indexOf("query");return i(yc(t.lastResults||{},t.state,a).map(function(e){return e.attributeName}).filter(function(e){return 0===n.length||-1!==n.indexOf(e)}).filter(function(e){return"query"===e&&a||-1===r.indexOf(e)}))}var fu=Lc({name:"current-refinements",connector:!0});function du(h){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(h,fu()),function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(o.includedAttributes&&o.excludedAttributes)throw new Error(fu("The options `includedAttributes` and `excludedAttributes` cannot be used together."));var c=o.includedAttributes,e=o.excludedAttributes,u=void 0===e?["query"]:e,t=o.transformItems,l=void 0===t?function(e){return e}:t;return{init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance,i=l(pu({results:{},state:t.state,helper:t,includedAttributes:c,excludedAttributes:u}));h({items:i,refine:function(e){return vu(t,e)},createURL:function(e){return n(mu(t.state,e))},instantSearchInstance:r,widgetParams:o},!0)},render:function(e){var t=e.results,n=e.helper,r=e.state,i=e.createURL,a=e.instantSearchInstance,s=l(pu({results:t,state:r,helper:n,includedAttributes:c,excludedAttributes:u}));h({items:s,refine:function(e){return vu(n,e)},createURL:function(e){return i(mu(n.state,e))},instantSearchInstance:a,widgetParams:o},!1)},dispose:function(){n()}}}}function pu(e){var t=e.results,n=e.state,r=e.helper,i=e.includedAttributes,a=e.excludedAttributes,s=-1!==(i||[]).indexOf("query")||-1===(a||[]).indexOf("query"),o=i?function(e){return-1!==i.indexOf(e.attributeName)}:function(e){return-1===a.indexOf(e.attributeName)};return function(n,r){return n.reduce(function(e,t){return[].concat(b(e.filter(function(e){return e.attribute!==t.attribute})),[{attribute:t.attribute,label:t.attribute,refinements:n.filter(function(e){return e.attribute===t.attribute}).sort(function(e,t){return"numeric"===e.type?e.value-t.value:0}),refine:function(e){return vu(r,e)}}])},[])}(yc(t,n,s).filter(o).map(gu),r)}function mu(e,t){switch(t.type){case"facet":return e.removeFacetRefinement(t.attribute,t.value);case"disjunctive":return e.removeDisjunctiveFacetRefinement(t.attribute,t.value);case"hierarchical":return e.removeHierarchicalFacetRefinement(t.attribute);case"exclude":return e.removeExcludeRefinement(t.attribute,t.value);case"numeric":return e.removeNumericRefinement(t.attribute,t.operator,t.value);case"tag":return e.removeTagRefinement(t.value);case"query":return e.setQueryParameter("query","");default:throw new Error("clearRefinement: type ".concat(t.type," is not handled"))}}function vu(e,t){e.setState(mu(e.state,t)).search()}function gu(e){var t="numeric"===e.type?Number(e.name):e.name,n=e.operator?"".concat(function(e){switch(e){case">=":return"≥";case"<=":return"≤";default:return e}}(e.operator)," ").concat(e.name):e.name,r={attribute:e.attributeName,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}var yu=Lc({name:"hierarchical-menu",connector:!0});function bu(b){var w=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(b,yu()),function(){var l=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o=l.attributes,e=l.separator,c=void 0===e?" > ":e,t=l.rootPath,u=void 0===t?null:t,n=l.showParentLevel,h=void 0===n||n,r=l.limit,f=void 0===r?10:r,i=l.showMore,d=void 0!==i&&i,a=l.showMoreLimit,p=void 0===a?20:a,s=l.sortBy,m=void 0===s?["name:asc"]:s,v=l.transformItems,g=void 0===v?function(e){return e}:v;if(!o||!Array.isArray(o)||0===o.length)throw new Error(yu("The `attributes` option expects an array of strings."));if(!0===d&&p<=f)throw new Error(yu("The `showMoreLimit` option must be greater than `limit`."));var y=U(o,1)[0];return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return this.isShowingMore?p:f},getConfiguration:function(e){if(e.hierarchicalFacets){var t=mc(e.hierarchicalFacets,function(e){return e.name===y}),n=t&&Fc(t.attributes,o),r=t&&t.separator===c,i=t&&t.rootPath===u;if(t&&!(n&&r&&i))return kc(!1,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}var a={hierarchicalFacets:[{name:y,attributes:o,separator:c,rootPath:u,showParentLevel:h}]},s=e.maxValuesPerFacet||0;return a.maxValuesPerFacet=Math.max(s,d?p:f),a},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._refine=function(e){t.toggleRefinement(y,e).search()},b({items:[],createURL:function(e){return n(t.state.toggleRefinement(y,e))},refine:this._refine,instantSearchInstance:r,widgetParams:l,isShowingMore:!1,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},_prepareFacetValues:function(e,i){var a=this;return e.slice(0,this.getLimit()).map(function(e){var t=e.name,n=e.path,r=k(e,["name","path"]);return Array.isArray(r.data)&&(r.data=a._prepareFacetValues(r.data,i)),H({},r,{label:t,value:n})})},render:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=t.getFacetValues(y,{sortBy:m}).data||[],s=g(this._prepareFacetValues(a),n);var o=n.getQueryParameter("maxValuesPerFacet"),c=this.getLimit(),u=c<o?a.length<=c:a.length<c;this.toggleShowMore=this.createToggleShowMore(e),b({items:s,refine:this._refine,createURL:function(e){return r(n.toggleRefinement(y,e))},instantSearchInstance:i,widgetParams:l,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:d&&(this.isShowingMore||!u)},!1)},dispose:function(e){var t=e.state;w();var n=t;return t.isHierarchicalFacetRefined(y)&&(n=t.removeHierarchicalFacetRefinement(y)),(n=n.removeHierarchicalFacet(y)).maxValuesPerFacet===f&&n.setQueryParameters("maxValuesPerFacet",void 0),n},getWidgetState:function(e,t){var n=t.searchParameters.getHierarchicalFacetBreadcrumb(y);return n&&0!==n.length?e.hierarchicalMenu&&Fc(n,e.hierarchicalMenu[y])?e:H({},e,{hierarchicalMenu:H({},e.hierarchicalMenu,F({},y,n))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.hierarchicalMenu&&n.hierarchicalMenu[y]?e.clearRefinements(y).toggleRefinement(y,n.hierarchicalMenu[y].join(c)):e}}}}var wu=Lc({name:"hits",connector:!0});function Ru(o){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(o,wu()),function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=i.escapeHTML,a=void 0===e||e,t=i.transformItems,s=void 0===t?function(e){return e}:t;return{getConfiguration:function(){return a?Yc:void 0},init:function(e){var t=e.instantSearchInstance;o({hits:[],results:void 0,instantSearchInstance:t,widgetParams:i},!0)},render:function(e){var t=e.results,n=e.instantSearchInstance;a&&0<t.hits.length&&(t.hits=Zc(t.hits));var r=t.hits.__escaped;t.hits=Dc(t.hits,t.page,t.hitsPerPage),t.hits=Hc(t.hits,t.queryID),t.hits=s(t.hits),t.hits.__escaped=r,o({hits:t.hits,results:t,instantSearchInstance:n,widgetParams:i},!1)},dispose:function(){n()}}}}function Su(e){var t=e.method,n=e.results,r=e.hits,i=e.objectIDs,a=n.index,s=function(n,e){return e.map(function(t){var e=mc(n,function(e){return e.objectID===t});if(void 0===e)throw new Error('Could not find objectID "'.concat(t,'" passed to `clickedObjectIDsAfterSearch` in the returned hits. This is necessary to infer the absolute position and the query ID.'));return e})}(r,i),o=function(e){var t=uc(e.map(function(e){return e.__queryID}));if(1<t.length)throw new Error("Insights currently allows a single `queryID`. The `objectIDs` provided map to multiple `queryID`s.");var n=t[0];if("string"!=typeof n)throw new Error("Could not infer `queryID`. Ensure InstantSearch is configured with `clickAnalytics: true`");return n}(s);switch(t){case"clickedObjectIDsAfterSearch":return{index:a,queryID:o,objectIDs:i,positions:function(e){return e.map(function(e){return e.__position})}(s)};case"convertedObjectIDsAfterSearch":return{index:a,queryID:o,objectIDs:i};default:throw new Error('Unsupported method passed to insights: "'.concat(t,'".'))}}var Pu=function(r,i,a){return function(e,t){if(!Array.isArray(t.objectIDs))throw new TypeError("Expected `objectIDs` to be an array.");var n=Su({method:e,results:i,hits:a,objectIDs:t.objectIDs});r(e,H({},n,{},t))}};function _u(n){return function(e,t){return n(function(s){return function(e,t){var n=e.results,r=e.hits,i=e.instantSearchInstance;if(n&&r&&i&&i.insightsClient){var a=Pu(i.insightsClient,n,r);return s(H({},e,{insights:a}),t)}return s(e,t)}}(e),t)}}var Nu=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,a=n?Symbol.for("react.fragment"):60107,s=n?Symbol.for("react.strict_mode"):60108,o=n?Symbol.for("react.profiler"):60114,c=n?Symbol.for("react.provider"):60109,u=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,h=n?Symbol.for("react.concurrent_mode"):60111,f=n?Symbol.for("react.forward_ref"):60112,d=n?Symbol.for("react.suspense"):60113,p=n?Symbol.for("react.memo"):60115,m=n?Symbol.for("react.lazy"):60116;function v(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case h:case a:case o:case s:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case c:return e;default:return t}}case m:case p:case i:return t}}}function g(e){return v(e)===h}t.typeOf=v,t.AsyncMode=l,t.ConcurrentMode=h,t.ContextConsumer=u,t.ContextProvider=c,t.Element=r,t.ForwardRef=f,t.Fragment=a,t.Lazy=m,t.Memo=p,t.Portal=i,t.Profiler=o,t.StrictMode=s,t.Suspense=d,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===a||e===h||e===o||e===s||e===d||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===p||e.$$typeof===c||e.$$typeof===u||e.$$typeof===f)},t.isAsyncMode=function(e){return g(e)||v(e)===l},t.isConcurrentMode=g,t.isContextConsumer=function(e){return v(e)===u},t.isContextProvider=function(e){return v(e)===c},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return v(e)===f},t.isFragment=function(e){return v(e)===a},t.isLazy=function(e){return v(e)===m},t.isMemo=function(e){return v(e)===p},t.isPortal=function(e){return v(e)===i},t.isProfiler=function(e){return v(e)===o},t.isStrictMode=function(e){return v(e)===s},t.isSuspense=function(e){return v(e)===d}});t(Nu);Nu.typeOf,Nu.AsyncMode,Nu.ConcurrentMode,Nu.ContextConsumer,Nu.ContextProvider,Nu.Element,Nu.ForwardRef,Nu.Fragment,Nu.Lazy,Nu.Memo,Nu.Portal,Nu.Profiler,Nu.StrictMode,Nu.Suspense,Nu.isValidElementType,Nu.isAsyncMode,Nu.isConcurrentMode,Nu.isContextConsumer,Nu.isContextProvider,Nu.isElement,Nu.isForwardRef,Nu.isFragment,Nu.isLazy,Nu.isMemo,Nu.isPortal,Nu.isProfiler,Nu.isStrictMode,Nu.isSuspense;var xu=n(function(e,t){});t(xu);xu.typeOf,xu.AsyncMode,xu.ConcurrentMode,xu.ContextConsumer,xu.ContextProvider,xu.Element,xu.ForwardRef,xu.Fragment,xu.Lazy,xu.Memo,xu.Portal,xu.Profiler,xu.StrictMode,xu.Suspense,xu.isValidElementType,xu.isAsyncMode,xu.isConcurrentMode,xu.isContextConsumer,xu.isContextProvider,xu.isElement,xu.isForwardRef,xu.isFragment,xu.isLazy,xu.isMemo,xu.isPortal,xu.isProfiler,xu.isStrictMode,xu.isSuspense,n(function(e){e.exports=Nu});var Cu=Object.getOwnPropertySymbols,Fu=Object.prototype.hasOwnProperty,Eu=Object.prototype.propertyIsEnumerable;!function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()||Object.assign,Function.call.bind(Object.prototype.hasOwnProperty);function ju(){}function Tu(){}Tu.resetWarningCache=ju;var Mu=n(function(e){e.exports=function(){function e(e,t,n,r,i,a){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==a){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}var n={array:e.isRequired=e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Tu,resetWarningCache:ju};return n.PropTypes=n}()}),Iu=function(){},Lu={},ku=[],Ou=[];function Au(e,t){var n,r,i,a,s=Ou;for(a=arguments.length;2<a--;)ku.push(arguments[a]);for(t&&null!=t.children&&(ku.length||ku.push(t.children),delete t.children);ku.length;)if((r=ku.pop())&&void 0!==r.pop)for(a=r.length;a--;)ku.push(r[a]);else"boolean"==typeof r&&(r=null),(i="function"!=typeof e)&&(null==r?r="":"number"==typeof r?r=String(r):"string"!=typeof r&&(i=!1)),i&&n?s[s.length-1]+=r:s===Ou?s=[r]:s.push(r),n=i;var o=new Iu;return o.nodeName=e,o.children=s,o.attributes=null==t?void 0:t,o.key=null==t?void 0:t.key,void 0!==Lu.vnode&&Lu.vnode(o),o}function Du(e,t){for(var n in t)e[n]=t[n];return e}function Hu(e,t){null!=e&&("function"==typeof e?e(t):e.current=t)}var Uu="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var Bu=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,Vu=[];function Qu(e){!e._dirty&&(e._dirty=!0)&&1==Vu.push(e)&&Uu(qu)}function qu(){for(var e;e=Vu.pop();)e._dirty&&ul(e)}function Wu(e,t){return e.normalizedNodeName===t||e.nodeName.toLowerCase()===t.toLowerCase()}function zu(e){var t=Du({},e.attributes);t.children=e.children;var n=e.nodeName.defaultProps;if(void 0!==n)for(var r in n)void 0===t[r]&&(t[r]=n[r]);return t}function Ku(e){var t=e.parentNode;t&&t.removeChild(e)}function Yu(e,t,n,r,i){if("className"===t&&(t="class"),"key"===t);else if("ref"===t)Hu(n,null),Hu(r,e);else if("class"!==t||i)if("style"===t){if(r&&"string"!=typeof r&&"string"!=typeof n||(e.style.cssText=r||""),r&&"object"==typeof r){if("string"!=typeof n)for(var a in n)a in r||(e.style[a]="");for(var a in r)e.style[a]="number"==typeof r[a]&&!1===Bu.test(a)?r[a]+"px":r[a]}}else if("dangerouslySetInnerHTML"===t)r&&(e.innerHTML=r.__html||"");else if("o"==t[0]&&"n"==t[1]){var s=t!==(t=t.replace(/Capture$/,""));t=t.toLowerCase().substring(2),r?n||e.addEventListener(t,$u,s):e.removeEventListener(t,$u,s),(e._listeners||(e._listeners={}))[t]=r}else if("list"!==t&&"type"!==t&&!i&&t in e){try{e[t]=null==r?"":r}catch(e){}null!=r&&!1!==r||"spellcheck"==t||e.removeAttribute(t)}else{var o=i&&t!==(t=t.replace(/^xlink:?/,""));null==r||!1===r?o?e.removeAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase()):e.removeAttribute(t):"function"!=typeof r&&(o?e.setAttributeNS("http://www.w3.org/1999/xlink",t.toLowerCase(),r):e.setAttribute(t,r))}else e.className=r||""}function $u(e){return this._listeners[e.type](Lu.event&&Lu.event(e)||e)}var Gu=[],Ju=0,Zu=!1,Xu=!1;function el(){for(var e;e=Gu.shift();)e.componentDidMount&&e.componentDidMount()}function tl(e,t,n,r,i,a){Ju++||(Zu=null!=i&&void 0!==i.ownerSVGElement,Xu=null!=e&&!("__preactattr_"in e));var s=nl(e,t,n,r,a);return i&&s.parentNode!==i&&i.appendChild(s),--Ju||(Xu=!1,a||el()),s}function nl(e,t,n,r,i){var a=e,s=Zu;if(null!=t&&"boolean"!=typeof t||(t=""),"string"==typeof t||"number"==typeof t)return e&&void 0!==e.splitText&&e.parentNode&&(!e._component||i)?e.nodeValue!=t&&(e.nodeValue=t):(a=document.createTextNode(t),e&&(e.parentNode&&e.parentNode.replaceChild(a,e),rl(e,!0))),a.__preactattr_=!0,a;var o=t.nodeName;if("function"==typeof o)return function(e,t,n,r){var i=e&&e._component,a=i,s=e,o=i&&e._componentConstructor===t.nodeName,c=o,u=zu(t);for(;i&&!c&&(i=i._parentComponent);)c=i.constructor===t.nodeName;i&&c&&(!r||i._component)?(cl(i,u,3,n,r),e=i.base):(a&&!o&&(ll(a),e=s=null),i=sl(t.nodeName,u,n),e&&!i.nextBase&&(i.nextBase=e,s=null),cl(i,u,1,n,r),e=i.base,s&&e!==s&&(s._component=null,rl(s,!1)));return e}(e,t,n,r);if(Zu="svg"===o||"foreignObject"!==o&&Zu,o=String(o),(!e||!Wu(e,o))&&(a=function(e,t){var n=t?document.createElementNS("http://www.w3.org/2000/svg",e):document.createElement(e);return n.normalizedNodeName=e,n}(o,Zu),e)){for(;e.firstChild;)a.appendChild(e.firstChild);e.parentNode&&e.parentNode.replaceChild(a,e),rl(e,!0)}var c=a.firstChild,u=a.__preactattr_,l=t.children;if(null==u){u=a.__preactattr_={};for(var h=a.attributes,f=h.length;f--;)u[h[f].name]=h[f].value}return!Xu&&l&&1===l.length&&"string"==typeof l[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=l[0]&&(c.nodeValue=l[0]):(l&&l.length||null!=c)&&function(e,t,n,r,i){var a,s,o,c,u,l=e.childNodes,h=[],f={},d=0,p=0,m=l.length,v=0,g=t?t.length:0;if(0!==m)for(var y=0;y<m;y++){var b=l[y],w=b.__preactattr_;null!=(R=g&&w?b._component?b._component.__key:w.key:null)?(d++,f[R]=b):(w||(void 0!==b.splitText?!i||b.nodeValue.trim():i))&&(h[v++]=b)}if(0!==g)for(y=0;y<g;y++){var R;if(c=t[y],(u=null)!=(R=c.key))d&&void 0!==f[R]&&(u=f[R],f[R]=void 0,d--);else if(p<v)for(a=p;a<v;a++)if(void 0!==h[a]&&(S=s=h[a],_=i,"string"==typeof(P=c)||"number"==typeof P?void 0!==S.splitText:"string"==typeof P.nodeName?!S._componentConstructor&&Wu(S,P.nodeName):_||S._componentConstructor===P.nodeName)){u=s,h[a]=void 0,a===v-1&&v--,a===p&&p++;break}u=nl(u,c,n,r),o=l[y],u&&u!==e&&u!==o&&(null==o?e.appendChild(u):u===o.nextSibling?Ku(o):e.insertBefore(u,o))}var S,P,_;if(d)for(var y in f)void 0!==f[y]&&rl(f[y],!1);for(;p<=v;)void 0!==(u=h[v--])&&rl(u,!1)}(a,l,n,r,Xu||null!=u.dangerouslySetInnerHTML),function(e,t,n){var r;for(r in n)t&&null!=t[r]||null==n[r]||Yu(e,r,n[r],n[r]=void 0,Zu);for(r in t)"children"===r||"innerHTML"===r||r in n&&t[r]===("value"===r||"checked"===r?e[r]:n[r])||Yu(e,r,n[r],n[r]=t[r],Zu)}(a,t.attributes,u),Zu=s,a}function rl(e,t){var n=e._component;n?ll(n):(null!=e.__preactattr_&&Hu(e.__preactattr_.ref,null),!1!==t&&null!=e.__preactattr_||Ku(e),il(e))}function il(e){for(e=e.lastChild;e;){var t=e.previousSibling;rl(e,!0),e=t}}var al=[];function sl(e,t,n){var r,i=al.length;for(e.prototype&&e.prototype.render?(r=new e(t,n),hl.call(r,t,n)):((r=new hl(t,n)).constructor=e,r.render=ol);i--;)if(al[i].constructor===e)return r.nextBase=al[i].nextBase,al.splice(i,1),r;return r}function ol(e,t,n){return this.constructor(e,n)}function cl(e,t,n,r,i){e._disable||(e._disable=!0,e.__ref=t.ref,e.__key=t.key,delete t.ref,delete t.key,void 0===e.constructor.getDerivedStateFromProps&&(!e.base||i?e.componentWillMount&&e.componentWillMount():e.componentWillReceiveProps&&e.componentWillReceiveProps(t,r)),r&&r!==e.context&&(e.prevContext||(e.prevContext=e.context),e.context=r),e.prevProps||(e.prevProps=e.props),e.props=t,e._disable=!1,0!==n&&(1!==n&&!1===Lu.syncComponentUpdates&&e.base?Qu(e):ul(e,1,i)),Hu(e.__ref,e))}function ul(e,t,n,r){if(!e._disable){var i,a,s,o=e.props,c=e.state,u=e.context,l=e.prevProps||o,h=e.prevState||c,f=e.prevContext||u,d=e.base,p=e.nextBase,m=d||p,v=e._component,g=!1,y=f;if(e.constructor.getDerivedStateFromProps&&(c=Du(Du({},c),e.constructor.getDerivedStateFromProps(o,c)),e.state=c),d&&(e.props=l,e.state=h,e.context=f,2!==t&&e.shouldComponentUpdate&&!1===e.shouldComponentUpdate(o,c,u)?g=!0:e.componentWillUpdate&&e.componentWillUpdate(o,c,u),e.props=o,e.state=c,e.context=u),e.prevProps=e.prevState=e.prevContext=e.nextBase=null,e._dirty=!1,!g){i=e.render(o,c,u),e.getChildContext&&(u=Du(Du({},u),e.getChildContext())),d&&e.getSnapshotBeforeUpdate&&(y=e.getSnapshotBeforeUpdate(l,h));var b,w,R=i&&i.nodeName;if("function"==typeof R){var S=zu(i);(a=v)&&a.constructor===R&&S.key==a.__key?cl(a,S,1,u,!1):(b=a,e._component=a=sl(R,S,u),a.nextBase=a.nextBase||p,a._parentComponent=e,cl(a,S,0,u,!1),ul(a,1,n,!0)),w=a.base}else s=m,(b=v)&&(s=e._component=null),!m&&1!==t||(s&&(s._component=null),w=tl(s,i,u,n||!d,m&&m.parentNode,!0));if(m&&w!==m&&a!==v){var P=m.parentNode;P&&w!==P&&(P.replaceChild(w,m),b||(m._component=null,rl(m,!1)))}if(b&&ll(b),(e.base=w)&&!r){for(var _=e,N=e;N=N._parentComponent;)(_=N).base=w;w._component=_,w._componentConstructor=_.constructor}}for(!d||n?Gu.push(e):g||e.componentDidUpdate&&e.componentDidUpdate(l,h,y);e._renderCallbacks.length;)e._renderCallbacks.pop().call(e);Ju||r||el()}}function ll(e){var t=e.base;e._disable=!0,e.componentWillUnmount&&e.componentWillUnmount(),e.base=null;var n=e._component;n?ll(n):t&&(null!=t.__preactattr_&&Hu(t.__preactattr_.ref,null),Ku(e.nextBase=t),al.push(e),il(t)),Hu(e.__ref,null)}function hl(e,t){this._dirty=!0,this.context=t,this.props=e,this.state=this.state||{},this._renderCallbacks=[]}function fl(e,t,n){return tl(n,e,{},!1,t,!1)}Du(hl.prototype,{setState:function(e,t){this.prevState||(this.prevState=this.state),this.state=Du(Du({},this.state),"function"==typeof e?e(this.state,this.props):e),t&&this._renderCallbacks.push(t),Qu(this)},forceUpdate:function(e){e&&this._renderCallbacks.push(e),ul(this,2)},render:function(){}});var dl="a abbr address area article aside audio b base bdi bdo big blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 h2 h3 h4 h5 h6 head header hgroup hr html i iframe img input ins kbd keygen label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt ruby s samp script section select small source span strong style sub summary sup table tbody td textarea tfoot th thead time title tr track u ul var video wbr circle clipPath defs ellipse g image line linearGradient mask path pattern polygon polyline radialGradient rect stop svg text tspan".split(" "),pl="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ml="undefined"!=typeof Symbol&&Symbol.for?Symbol.for("__preactCompatWrapper"):"__preactCompatWrapper",vl={constructor:1,render:1,shouldComponentUpdate:1,componentWillReceiveProps:1,componentWillUpdate:1,componentDidUpdate:1,componentWillMount:1,componentDidMount:1,componentWillUnmount:1,componentDidUnmount:1},gl=/^(?:accent|alignment|arabic|baseline|cap|clip|color|fill|flood|font|glyph|horiz|marker|overline|paint|stop|strikethrough|stroke|text|underline|unicode|units|v|vector|vert|word|writing|x)[A-Z]/,yl={},bl=!1;try{bl=!1}catch(e){}function wl(){return null}var Rl=Au("a",null).constructor;Rl.prototype.$$typeof=pl,Rl.prototype.preactCompatUpgraded=!1,Rl.prototype.preactCompatNormalized=!1,Object.defineProperty(Rl.prototype,"type",{get:function(){return this.nodeName},set:function(e){this.nodeName=e},configurable:!0}),Object.defineProperty(Rl.prototype,"props",{get:function(){return this.attributes},set:function(e){this.attributes=e},configurable:!0});var Sl=Lu.event;Lu.event=function(e){return Sl&&(e=Sl(e)),e.persist=Object,e.nativeEvent=e};var Pl=Lu.vnode;function _l(e,t,n){var r=t&&t._preactCompatRendered&&t._preactCompatRendered.base;r&&r.parentNode!==t&&(r=null),!r&&t&&(r=t.firstElementChild);for(var i=t.childNodes.length;i--;)t.childNodes[i]!==r&&t.removeChild(t.childNodes[i]);var a=fl(e,t,r);return t&&(t._preactCompatRendered=a&&(a._component||{base:a})),"function"==typeof n&&n(),a&&a._component||a}Lu.vnode=function(e){if(!e.preactCompatUpgraded){e.preactCompatUpgraded=!0;var t=e.nodeName,n=e.attributes=null==e.attributes?{}:Ul({},e.attributes);"function"==typeof t?(!0===t[ml]||t.prototype&&"isReactComponent"in t.prototype)&&(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),e.preactCompatNormalized||Al(e),function(e){var t=e.nodeName,n=e.attributes;e.attributes={},t.defaultProps&&Ul(e.attributes,t.defaultProps);n&&Ul(e.attributes,n)}(e)):(e.children&&""===String(e.children)&&(e.children=void 0),e.children&&(n.children=e.children),n.defaultValue&&(n.value||0===n.value||(n.value=n.defaultValue),delete n.defaultValue),function(e,t){var n,r,i;if(t){for(i in t)if(n=gl.test(i))break;if(n)for(i in r=e.attributes={},t)t.hasOwnProperty(i)&&(r[gl.test(i)?i.replace(/([A-Z0-9])/,"-$1").toLowerCase():i]=t[i])}}(e,n))}Pl&&Pl(e)};var Nl=function(){};function xl(e,t,n,r){var i=_l(Au(Nl,{context:e.context},t),n),a=i._component||i.base;return r&&r.call(a,i),a}function Cl(e){xl(this,e.vnode,e.container)}function Fl(e){var t=e._preactCompatRendered&&e._preactCompatRendered.base;return!(!t||t.parentNode!==e)&&(fl(Au(wl),e,t),!0)}Nl.prototype.getChildContext=function(){return this.props.context},Nl.prototype.render=function(e){return e.children[0]};var El,jl=[],Tl={map:function(e,t,n){return null==e?null:(e=Tl.toArray(e),n&&n!==e&&(t=t.bind(n)),e.map(t))},forEach:function(e,t,n){if(null==e)return null;e=Tl.toArray(e),n&&n!==e&&(t=t.bind(n)),e.forEach(t)},count:function(e){return e&&e.length||0},only:function(e){if(1!==(e=Tl.toArray(e)).length)throw new Error("Children.only() expects only one child.");return e[0]},toArray:function(e){return null==e?[]:jl.concat(e)}};function Ml(e){return Ol.bind(null,e)}for(var Il={},Ll=dl.length;Ll--;)Il[dl[Ll]]=Ml(dl[Ll]);function kl(e){var t=e[ml];return t?!0===t?e:t:(t=function(e){return Ql({displayName:e.displayName||e.name,render:function(){return e(this.props,this.context)}})}(e),Object.defineProperty(t,ml,{configurable:!0,value:!0}),t.displayName=e.displayName,t.propTypes=e.propTypes,t.defaultProps=e.defaultProps,Object.defineProperty(e,ml,{configurable:!0,value:t}),t)}function Ol(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return function e(t,n){for(var r=n||0;r<t.length;r++){var i=t[r];Array.isArray(i)?e(i):i&&"object"==typeof i&&!Dl(i)&&(i.props&&i.type||i.attributes&&i.nodeName||i.children)&&(t[r]=Ol(i.type||i.nodeName,i.props||i.attributes,i.children))}}(e,2),Al(Au.apply(void 0,e))}function Al(e){e.preactCompatNormalized=!0,function(e){var t=e.attributes||(e.attributes={});Hl.enumerable="className"in t,t.className&&(t.class=t.className);Object.defineProperty(t,"className",Hl)}(e),function(e){return"function"==typeof e&&!(e.prototype&&e.prototype.render)}(e.nodeName)&&(e.nodeName=kl(e.nodeName));var t=e.attributes.ref,n=t&&typeof t;return!El||"string"!==n&&"number"!==n||(e.attributes.ref=function(t,n){return n._refProxies[t]||(n._refProxies[t]=function(e){n&&n.refs&&null===(n.refs[t]=e)&&(delete n._refProxies[t],n=null)})}(t,El)),function(e){var t=e.nodeName,n=e.attributes;if(!n||"string"!=typeof t)return;var r={};for(var i in n)r[i.toLowerCase()]=i;r.ondoubleclick&&(n.ondblclick=n[r.ondoubleclick],delete n[r.ondoubleclick]);if(r.onchange&&("textarea"===t||"input"===t.toLowerCase()&&!/^fil|che|rad/i.test(n.type))){var a=r.oninput||"oninput";n[a]||(n[a]=Wl([n[a],n[r.onchange]]),delete n[r.onchange])}}(e),e}function Dl(e){return e&&(e instanceof Rl||e.$$typeof===pl)}var Hl={configurable:!0,get:function(){return this.class},set:function(e){this.class=e}};function Ul(e,t){for(var n=arguments,r=1,i=void 0;r<arguments.length;r++)if(i=n[r])for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a]);return e}function Bl(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}function Vl(){}function Ql(e){function t(e,t){!function(e){for(var t in e){var n=e[t];"function"!=typeof n||n.__bound||vl.hasOwnProperty(t)||((e[t]=n.bind(e)).__bound=!0)}}(this),Gl.call(this,e,t,yl),zl.call(this,e,t)}return(e=Ul({constructor:t},e)).mixins&&function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=Wl(t[n].concat(e[n]||jl),"getDefaultProps"===n||"getInitialState"===n||"getChildContext"===n))}(e,function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];for(var i in r)r.hasOwnProperty(i)&&"function"==typeof r[i]&&(t[i]||(t[i]=[])).push(r[i])}return t}(e.mixins)),e.statics&&Ul(t,e.statics),e.propTypes&&(t.propTypes=e.propTypes),e.defaultProps&&(t.defaultProps=e.defaultProps),e.getDefaultProps&&(t.defaultProps=e.getDefaultProps.call(t)),Vl.prototype=Gl.prototype,t.prototype=Ul(new Vl,e),t.displayName=e.displayName||"Component",t}function ql(e,t,n){if("string"==typeof t&&(t=e.constructor.prototype[t]),"function"==typeof t)return t.apply(e,n)}function Wl(a,s){return function(){for(var e,t=arguments,n=0;n<a.length;n++){var r=ql(this,a[n],t);if(s&&null!=r)for(var i in e||(e={}),r)r.hasOwnProperty(i)&&(e[i]=r[i]);else void 0!==r&&(e=r)}return e}}function zl(e,t){Kl.call(this,e,t),this.componentWillReceiveProps=Wl([Kl,this.componentWillReceiveProps||"componentWillReceiveProps"]),this.render=Wl([Kl,Yl,this.render||"render",$l])}function Kl(e,t){if(e){var n=e.children;if(n&&Array.isArray(n)&&1===n.length&&("string"==typeof n[0]||"function"==typeof n[0]||n[0]instanceof Rl)&&(e.children=n[0],e.children&&"object"==typeof e.children&&(e.children.length=1,e.children[0]=e.children)),bl){var r="function"==typeof this?this:this.constructor,i=this.propTypes||r.propTypes,a=this.displayName||r.name;i&&Mu.checkPropTypes(i,e,"prop",a)}}}function Yl(e){El=this}function $l(){El===this&&(El=null)}function Gl(e,t,n){hl.call(this,e,t),this.state=this.getInitialState?this.getInitialState():{},this.refs={},this._refProxies={},n!==yl&&zl.call(this,e,t)}function Jl(e,t){Gl.call(this,e,t)}Ul(Gl.prototype=new hl,{constructor:Gl,isReactComponent:{},replaceState:function(e,t){for(var n in this.setState(e,t),this.state)n in e||delete this.state[n]},getDOMNode:function(){return this.base},isMounted:function(){return!!this.base}}),Vl.prototype=Gl.prototype,(Jl.prototype=new Vl).isPureReactComponent=!0,Jl.prototype.shouldComponentUpdate=function(e,t){return Bl(this.props,e)||Bl(this.state,t)};function Zl(e){return function(i){return Xl.createElement("div",{onClick:function(e){if(function(e){return e.hasAttribute("data-insights-method")}(e.target)){if(!i.insights)throw new Error("The `insightsClient` option has not been provided to `instantsearch`.");var t=function(e){var t=e.getAttribute("data-insights-method"),n=e.getAttribute("data-insights-payload");if("string"!=typeof n)throw new Error("The insights helper expects `data-insights-payload` to be a base64-encoded JSON string.");try{return{method:t,payload:JSON.parse(atob(n))}}catch(e){throw new Error("The insights helper was unable to parse `data-insights-payload`.")}}(e.target),n=t.method,r=t.payload;i.insights(n,r)}}},Xl.createElement(e,i))}}var Xl={version:"15.1.0",DOM:Il,PropTypes:Mu,Children:Tl,render:_l,hydrate:_l,createClass:Ql,createPortal:function(e,t){return Au(Cl,{vnode:e,container:t})},createFactory:Ml,createElement:Ol,cloneElement:function(e,t){for(var n=[],r=arguments.length-2;0<r--;)n[r]=arguments[r+2];if(!Dl(e))return e;var i=e.attributes||e.props,a=[Au(e.nodeName||e.type,Ul({},i),e.children||i&&i.children),t];return n&&n.length?a.push(n):t&&t.children&&a.push(t.children),Al(function(e,t){return Au(e.nodeName,Du(Du({},e.attributes),t),2<arguments.length?[].slice.call(arguments,2):e.children)}.apply(void 0,a))},createRef:function(){return{}},isValidElement:Dl,findDOMNode:function(e){return e&&(e.base||1===e.nodeType&&e)||null},unmountComponentAtNode:Fl,Component:Gl,PureComponent:Jl,unstable_renderSubtreeIntoContainer:xl,unstable_batchedUpdates:function(e){e()},__spread:Ul},eh=_u(Ru),th=Lc({name:"hits-per-page",connector:!0});function nh(c){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(c,th()),function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=a.items,t=a.transformItems,s=void 0===t?function(e){return e}:t,o=e;if(!Array.isArray(o))throw new Error(th("The `items` option expects an array of objects."));var n=o.filter(function(e){return e.default});if(1<n.length)throw new Error(th("More than one default value is specified in `items`."));var r=mc(e,function(e){return!0===e.default});return{getConfiguration:function(){return 0<n.length?{hitsPerPage:n[0].value}:{}},init:function(e){var t=e.helper,n=e.createURL,r=e.state,i=e.instantSearchInstance;o.some(function(e){return Number(r.hitsPerPage)===Number(e.value)})||(kc(void 0!==r.hitsPerPage,"\n`hitsPerPage` is not defined.\nThe option `hitsPerPage` needs to be set using the `configure` widget.\n\nLearn more: https://community.algolia.com/instantsearch.js/v2/widgets/configure.html\n "),kc(!1,'\nThe `items` option of `hitsPerPage` does not contain the "hits per page" value coming from the state: '.concat(r.hitsPerPage,".\n\nYou may want to add another entry to the `items` option with this value.")),o=[{value:"",label:""}].concat(b(o))),this.setHitsPerPage=function(e){return e||0===e?t.setQueryParameter("hitsPerPage",e).search():t.setQueryParameter("hitsPerPage",void 0).search()},this.createURL=function(t){return function(e){return n(t.setQueryParameter("hitsPerPage",e||0===e?e:void 0))}},c({items:s(this._normalizeItems(r)),refine:this.setHitsPerPage,createURL:this.createURL(t.state),hasNoResults:!0,widgetParams:a,instantSearchInstance:i},!0)},render:function(e){var t=e.state,n=e.results,r=e.instantSearchInstance,i=0===n.nbHits;c({items:s(this._normalizeItems(t)),refine:this.setHitsPerPage,createURL:this.createURL(t),hasNoResults:i,widgetParams:a,instantSearchInstance:r},!1)},_normalizeItems:function(e){var t=e.hitsPerPage;return o.map(function(e){return H({},e,{isRefined:Number(e.value)===Number(t)})})},dispose:function(){i()},getWidgetState:function(e,t){var n=t.searchParameters.hitsPerPage;return r&&n===r.value||void 0===n||e.hitsPerPage===n?e:H({},e,{hitsPerPage:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.hitsPerPage?e.setQueryParameter("hitsPerPage",n.hitsPerPage):r?e.setQueryParameter("hitsPerPage",r.value):e.setQueryParameter("hitsPerPage",void 0)}}}}function rh(y){var a=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(y,ih()),function(u){var l,h,f,e=u||{},t=e.escapeHTML,d=void 0===t||t,n=e.transformItems,p=void 0===n?function(e){return e}:n,r=e.showPrevious,i=void 0!==r&&r,m=[],v=1/0,g=-1;return{getConfiguration:function(){return d?Yc:{}},init:function(e){var t=e.instantSearchInstance,n=e.helper;h=function(e){return function(){e.overrideStateWithoutTriggeringChangeEvent(H({},e.state,{page:v-1})).search()}}(n),f=function(e){return function(){e.setPage(g+1).search()}}(n),v=n.state.page,g=n.state.page,y({hits:m,results:void 0,showPrevious:h,showMore:f,isFirstPage:0===v,isLastPage:!0,instantSearchInstance:t,widgetParams:u},!0)},render:function(e){var t=e.results,n=e.state,r=e.instantSearchInstance,i=n.page,a=k(n,["page"]);Fc(a,l)||(m=[],g=v=i,l=a),d&&0<t.hits.length&&(t.hits=Zc(t.hits));var s=t.hits.__escaped;t.hits=Dc(t.hits,t.page,t.hitsPerPage),t.hits=Hc(t.hits,t.queryID),t.hits=p(t.hits),t.hits.__escaped=s,g<i||!m.length?(m=[].concat(b(m),b(t.hits)),g=i):i<v&&(m=[].concat(b(t.hits),b(m)),v=i);var o=0===v,c=t.nbPages<=t.page+1;y({hits:m,results:t,showPrevious:h,showMore:f,isFirstPage:o,isLastPage:c,instantSearchInstance:r,widgetParams:u},!1)},dispose:function(){a()},getWidgetState:function(e,t){var n=t.searchParameters.page;return i&&0!==n&&n+1!==e.page?H({},e,{page:n+1}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(!i)return e;var r=n.page;return r?e.setQueryParameter("page",r-1):e.setQueryParameter("page",0)}}}}var ih=Lc({name:"infinite-hits",connector:!0}),ah=_u(rh),sh=Lc({name:"menu",connector:!0});function oh(f){var d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(f,sh()),function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=a.attribute,e=a.limit,r=void 0===e?10:e,t=a.showMore,o=void 0!==t&&t,n=a.showMoreLimit,i=void 0===n?20:n,c=a.sortBy,u=void 0===c?["isRefined","name:asc"]:c,l=a.transformItems,h=void 0===l?function(e){return e}:l;if(!s)throw new Error(sh("The `attribute` option is required."));if(!0===o&&i<=r)throw new Error(sh("The `showMoreLimit` option must be greater than `limit`."));return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this,n=e.results,r=e.instantSearchInstance;return function(){t.isShowingMore=!t.isShowingMore,t.render({results:n,instantSearchInstance:r})}},getLimit:function(){return this.isShowingMore?i:r},refine:function(n){return function(e){var t=U(n.getHierarchicalFacetBreadcrumb(s),1)[0];n.toggleRefinement(s,e||t).search()}},getConfiguration:function(e){var t={hierarchicalFacets:[{name:s,attributes:[s]}]},n=e.maxValuesPerFacet||0;return t.maxValuesPerFacet=Math.max(n,o?i:r),t},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),this._createURL=function(e){return n(t.state.toggleRefinement(s,e))},this._refine=this.refine(t),f({items:[],createURL:this._createURL,refine:this._refine,instantSearchInstance:r,canRefine:!1,widgetParams:a,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:!1},!0)},render:function(e){var t=e.results,n=e.instantSearchInstance,r=t.getFacetValues(s,{sortBy:u}).data||[],i=h(r.slice(0,this.getLimit()).map(function(e){var t=e.name,n=e.path;return H({},k(e,["name","path"]),{label:t,value:n})}));this.toggleShowMore=this.createToggleShowMore({results:t,instantSearchInstance:n}),f({items:i,createURL:this._createURL,refine:this._refine,instantSearchInstance:n,canRefine:0<i.length,widgetParams:a,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore,canToggleShowMore:o&&(this.isShowingMore||r.length>this.getLimit())},!1)},dispose:function(e){var t=e.state;d();var n=t;return t.isHierarchicalFacetRefined(s)&&(n=t.removeHierarchicalFacetRefinement(s)),((n=n.removeHierarchicalFacet(s)).maxValuesPerFacet===r||i&&n.maxValuesPerFacet===i)&&n.setQueryParameters("maxValuesPerFacet",void 0),n},getWidgetState:function(e,t){var n=U(t.searchParameters.getHierarchicalFacetBreadcrumb(s),1)[0];return!n||e.menu&&e.menu[s]===n?e:H({},e,{menu:H({},e.menu,F({},s,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;if(n.menu&&n.menu[s]){var r=n.menu[s];return e.isHierarchicalFacetRefined(s,r)?e:e.toggleRefinement(s,r)}if(e.isHierarchicalFacetRefined(s)){var i=U(e.getHierarchicalFacetBreadcrumb(s),1)[0];return e.toggleRefinement(s,i)}return e}}}}var ch=Lc({name:"numeric-menu",connector:!0});function uh(o){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(o,ch()),function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},u=i.attribute,a=i.items,e=i.transformItems,s=void 0===e?function(e){return e}:e;if(!u)throw new Error(ch("The `attribute` option is required."));if(!a)throw new Error(ch("The `items` option expects an array of objects."));return{init:function(e){var n=e.helper,r=e.createURL,t=e.instantSearchInstance;this._refine=function(e){var t=hh(n.state,u,a,e);n.setState(t).search()},this._createURL=function(t){return function(e){return r(hh(t,u,a,e))}},this._prepareItems=function(r){return a.map(function(e){var t=e.start,n=e.end;return{label:e.label,value:window.encodeURI(JSON.stringify({start:t,end:n})),isRefined:lh(r,u,{start:t,end:n})}})},o({createURL:this._createURL(n.state),items:s(this._prepareItems(n.state)),hasNoResults:!0,refine:this._refine,instantSearchInstance:t,widgetParams:i},!0)},render:function(e){var t=e.results,n=e.state,r=e.instantSearchInstance;o({createURL:this._createURL(n),items:s(this._prepareItems(n)),hasNoResults:0===t.nbHits,refine:this._refine,instantSearchInstance:r,widgetParams:i},!1)},dispose:function(e){var t=e.state;return n(),t.clearRefinements(u)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(u),r=n["="]&&n["="][0];if(r||0===r)return H({},e,{numericMenu:H({},e.numericMenu,F({},u,"".concat(n["="])))});var i=n[">="]&&n[">="][0]||"",a=n["<="]&&n["<="][0]||"";return""!==i||""!==a?e.numericMenu&&e.numericMenu[u]==="".concat(i,":").concat(a)?e:H({},e,{numericMenu:H({},e.numericMenu,F({},u,"".concat(i,":").concat(a)))}):e},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=e.clearRefinements(u),i=n.numericMenu&&n.numericMenu[u];if(!i)return r;var a=-1===i.indexOf(":")&&i;if(a)return r.addNumericRefinement(u,"=",a);var s=U(i.split(":").map(parseFloat),2),o=s[0],c=s[1];return _c(o)&&(r=r.addNumericRefinement(u,">=",o)),_c(c)&&(r=r.addNumericRefinement(u,"<=",c)),r}}}}function lh(e,t,n){var r=e.getNumericRefinements(t);return void 0!==n.start&&void 0!==n.end&&n.start===n.end?fh(r,"=",n.start):void 0!==n.start?fh(r,">=",n.start):void 0!==n.end?fh(r,"<=",n.end):void 0===n.start&&void 0===n.end?0===Object.keys(r).length:void 0}function hh(e,t,n,r){var i=e,a=JSON.parse(window.decodeURI(r)),s=i.getNumericRefinements(t);if(void 0===a.start&&void 0===a.end)return i.clearRefinements(t);if(lh(i,t,a)||(i=i.clearRefinements(t)),void 0!==a.start&&void 0!==a.end){if(a.start>a.end)throw new Error("option.start should be > to option.end");if(a.start===a.end)return i=fh(s,"=",a.start)?i.removeNumericRefinement(t,"=",a.start):i.addNumericRefinement(t,"=",a.start)}return void 0!==a.start&&(i=fh(s,">=",a.start)?i.removeNumericRefinement(t,">=",a.start):i.addNumericRefinement(t,">=",a.start)),void 0!==a.end&&(i=fh(s,"<=",a.end)?i.removeNumericRefinement(t,"<=",a.end):i.addNumericRefinement(t,"<=",a.end)),i.page=0,i}function fh(e,t,n){return void 0!==e[t]&&e[t].includes(n)}var dh=function(){function t(e){T(this,t),this.currentPage=e.currentPage,this.total=e.total,this.padding=e.padding}return M(t,[{key:"pages",value:function(){var e=this.total,t=this.currentPage,n=this.padding;if(0===e)return[0];var r=this.nbPagesDisplayed(n,e);if(r===e)return xc({end:e});var i=this.calculatePaddingLeft(t,n,e,r);return xc({start:t-i,end:t+(r-i)})}},{key:"nbPagesDisplayed",value:function(e,t){return Math.min(2*e+1,t)}},{key:"calculatePaddingLeft",value:function(e,t,n,r){return e<=t?e:n-t<=e?r-(n-e):t}},{key:"isLastPage",value:function(){return this.currentPage===this.total-1}},{key:"isFirstPage",value:function(){return 0===this.currentPage}}]),t}(),ph=Lc({name:"pagination",connector:!0});function mh(o){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(o,ph()),function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=a.totalPages,e=a.padding,s=new dh({currentPage:0,total:0,padding:void 0===e?3:e});return{init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this.refine=function(e){t.setPage(e),t.search()},this.createURL=function(t){return function(e){return n(t.setPage(e))}},o({createURL:this.createURL(t.state),currentRefinement:t.getPage()||0,nbHits:0,nbPages:0,pages:[],isFirstPage:!0,isLastPage:!0,refine:this.refine,widgetParams:a,instantSearchInstance:r},!0)},getMaxPage:function(e){var t=e.nbPages;return void 0!==n?Math.min(n,t):t},render:function(e){var t=e.results,n=e.state,r=e.instantSearchInstance,i=this.getMaxPage(t);s.currentPage=n.page,s.total=i,o({createURL:this.createURL(n),currentRefinement:n.page,refine:this.refine,nbHits:t.nbHits,nbPages:i,pages:s.pages(),isFirstPage:s.isFirstPage(),isLastPage:s.isLastPage(),widgetParams:a,instantSearchInstance:r},!1)},dispose:function(){t()},getWidgetState:function(e,t){var n=t.searchParameters.page;return 0===n||n+1===e.page?e:H({},e,{page:n+1})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n.page?e.setQueryParameter("page",n.page-1):e.setQueryParameter("page",0)}}}}var vh=Lc({name:"range-input",connector:!0},{name:"range-slider",connector:!0});function gh(h){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(h,vh()),function(){var c=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},S=c.attribute,P=c.min,_=c.max,e=c.precision,u=void 0===e?2:e;if(!S)throw new Error(vh("The `attribute` option is required."));function N(e){return Number(Number(e).toFixed(u))}var x=_c(P),C=_c(_),l={from:function(e){return e},to:function(e){return N(e).toLocaleString()}};return{_getCurrentRange:function(e){var t,n,r=Math.pow(10,u);return t=x?P:_c(e.min)?e.min:0,n=C?_:_c(e.max)?e.max:0,{min:Math.floor(t*r)/r,max:Math.ceil(n*r)/r}},_getCurrentRefinement:function(e){var t=U(e.getNumericRefinement(S,">=")||[],1)[0],n=U(e.getNumericRefinement(S,"<=")||[],1)[0];return[_c(t)?t:-1/0,_c(n)?n:1/0]},_refine:function(w,R){return function(){var e,t,n=U(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[],2),r=n[0],i=n[1],a=R.min,s=R.max,o=U(w.getNumericRefinement(S,">=")||[],1)[0],c=U(w.getNumericRefinement(S,"<=")||[],1)[0],u=void 0===r||""===r,l=void 0===i||""===i,h=u?void 0:parseFloat(r),f=l?void 0:parseFloat(i);t=C||s!==f?C&&l?_:f:void 0;var d=void 0===(e=x||a!==h?x&&u?P:h:void 0),p=_c(e),m=_c(a),v=d||p&&(!m||m&&a<=e),g=void 0===t,y=_c(t),b=_c(s);(o!==e||c!==t)&&v&&(g||y&&(!b||b&&t<=s))&&(w.clearRefinements(S),p&&w.addNumericRefinement(S,">=",N(e)),y&&w.addNumericRefinement(S,"<=",N(t)),w.search())}},getConfiguration:function(e){var t={disjunctiveFacets:[S]},n=x||C,r=e&&e.numericRefinements&&void 0!==e.numericRefinements[S],i=_c(P),a=_c(_);return n&&!r&&(i&&a?P<_:i||a)&&(t.numericRefinements=F({},S,{}),x&&(t.numericRefinements[S][">="]=[P]),C&&(t.numericRefinements[S]["<="]=[_])),t},init:function(e){var t=e.helper,n=e.instantSearchInstance,r=this._getCurrentRange({}),i=this._getCurrentRefinement(t);h({refine:this._refine(t,{}),format:l,range:r,widgetParams:H({},c,{precision:u}),start:i,instantSearchInstance:n},!0)},render:function(e){var t=e.results,n=e.helper,r=e.instantSearchInstance,i=mc(t.disjunctiveFacets||[],function(e){return e.name===S}),a=i&&i.stats||{},s=this._getCurrentRange(a),o=this._getCurrentRefinement(n);h({refine:this._refine(n,s),format:l,range:s,widgetParams:H({},c,{precision:u}),start:o,instantSearchInstance:r},!1)},dispose:function(e){var t=e.state;return n(),t.removeNumericRefinement(S).removeDisjunctiveFacet(S)},getWidgetState:function(e,t){var n=t.searchParameters.getNumericRefinements(S),r=n[">="],i=void 0===r?"":r,a=n["<="],s=void 0===a?"":a;return""===i&&""===s||e&&e.range&&e.range[S]==="".concat(i,":").concat(s)?e:H({},e,{range:H({},e.range,F({},S,"".concat(i,":").concat(s)))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n&&n.range&&n.range[S];if(!r||-1===r.indexOf(":"))return e;var i=e.getNumericRefinements(S),a=i[">="],s=void 0===a?[NaN]:a,o=i["<="],c=void 0===o?[NaN]:o,u=e.clearRefinements(S),l=U(r.split(":").map(parseFloat),2),h=l[0],f=l[1];return s.includes(h)&&c.includes(f)?e:(_c(h)&&(u=u.addNumericRefinement(S,">=",h)),_c(f)&&(u=u.addNumericRefinement(S,"<=",f)),u)}}}}var yh=Lc({name:"refinement-list",connector:!0});function bh(_){var N=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(_,yh()),function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},p=d.attribute,e=d.operator,i=void 0===e?"or":e,t=d.limit,m=void 0===t?10:t,n=d.showMore,v=void 0!==n&&n,r=d.showMoreLimit,a=void 0===r?20:r,s=d.sortBy,u=void 0===s?["isRefined","count:desc","name:asc"]:s,o=d.escapeFacetValues,l=void 0===o||o,c=d.transformItems,h=void 0===c?function(e){return e}:c;if(!p)throw new Error(yh("The `attribute` option is required."));if(!/^(and|or)$/.test(i))throw new Error(yh('The `operator` must one of: `"and"`, `"or"` (got "'.concat(i,'").')));if(!0===v&&a<=m)throw new Error(yh("`showMoreLimit` should be greater than `limit`."));function f(e){var t=e.name;return H({},k(e,["name"]),{label:t,value:t,highlighted:t})}function g(e){return e?a:m}function y(e){var t=e.items,n=e.state,r=e.createURL,i=e.helperSpecializedSearchFacetValues,a=e.refine,s=e.isFromSearch,o=e.isFirstSearch,c=e.isShowingMore,u=e.toggleShowMore,l=e.instantSearchInstance,h=i&&i(n,r,i,a,l,c),f=c&&S.length>m||v&&!s&&!P;_({createURL:function(e){return r(n.toggleRefinement(p,e))},items:t,refine:a,searchForItems:h,instantSearchInstance:l,isFromSearch:s,canRefine:s||0<t.length,widgetParams:d,isShowingMore:c,canToggleShowMore:f,toggleShowMore:u,hasExhaustiveItems:P},o)}function b(n,u){return function(r,i,a,s,o,c){return function(e){if(""===e&&S)y({items:S,state:r,createURL:i,helperSpecializedSearchFacetValues:a,refine:s,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:o,toggleShowMore:u,isShowingMore:c});else{var t={highlightPreTag:l?Yc.highlightPreTag:$c.highlightPreTag,highlightPostTag:l?Yc.highlightPostTag:$c.highlightPostTag};n.searchForFacetValues(p,e,g(c),t).then(function(e){var t=l?function(e){return e.map(function(e){return H({},e,{highlighted:Gc(e.highlighted)})})}(e.facetHits):e.facetHits,n=h(t.map(function(e){var t=e.value;return H({},k(e,["value"]),{value:t,label:t})}));y({items:n,state:r,createURL:i,helperSpecializedSearchFacetValues:a,refine:s,isFromSearch:!0,isFirstSearch:!1,instantSearchInstance:o,isShowingMore:c})})}}}}var w,R,S=[],P=!0;return{isShowingMore:!1,toggleShowMore:function(){},cachedToggleShowMore:function(){this.toggleShowMore()},createToggleShowMore:function(e){var t=this;return function(){t.isShowingMore=!t.isShowingMore,t.render(e)}},getLimit:function(){return g(this.isShowingMore)},getConfiguration:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=F({},"and"===i?"facets":"disjunctiveFacets",[p]),n=e.maxValuesPerFacet||0;return t.maxValuesPerFacet=Math.max(n,v?a:m),t},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this.cachedToggleShowMore=this.cachedToggleShowMore.bind(this),R=function(e){return t.toggleRefinement(p,e).search()},w=b(t,this.cachedToggleShowMore),y({items:[],state:t.state,createURL:n,helperSpecializedSearchFacetValues:w,refine:R,isFromSearch:!1,isFirstSearch:!0,instantSearchInstance:r,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},render:function(e){var t=e.results,n=e.state,r=e.createURL,i=e.instantSearchInstance,a=t.getFacetValues(p,{sortBy:u}),s=h(a.slice(0,this.getLimit()).map(f)),o=n.getQueryParameter("maxValuesPerFacet"),c=this.getLimit();P=c<o?a.length<=c:a.length<c,S=s,this.toggleShowMore=this.createToggleShowMore(e),y({items:s,state:n,createURL:r,helperSpecializedSearchFacetValues:w,refine:R,isFromSearch:!1,isFirstSearch:!1,instantSearchInstance:i,isShowingMore:this.isShowingMore,toggleShowMore:this.cachedToggleShowMore})},dispose:function(e){var t=e.state;return N(),"and"===i?t.removeFacetRefinement(p).removeFacet(p):t.removeDisjunctiveFacetRefinement(p).removeDisjunctiveFacet(p)},getWidgetState:function(e,t){var n=t.searchParameters,r="or"===i?n.getDisjunctiveRefinements(p):n.getConjunctiveRefinements(p);return 0===r.length||e.refinementList&&Fc(r,e.refinementList[p])?e:H({},e,{refinementList:H({},e.refinementList,F({},p,r))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.refinementList&&n.refinementList[p];return void 0===r?e:r.reduce(function(e,t){return"or"===i?e.addDisjunctiveFacetRefinement(p,t):e.addFacetRefinement(p,t)},e.clearRefinements(p))}}}}var wh=Lc({name:"search-box",connector:!0});function Rh(c){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(c,wh()),function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=a.queryHook;function o(e){return function(){e.setQuery(""),e.search()}}return{_clear:function(){},_cachedClear:function(){this._clear()},init:function(e){var n,r=e.helper,t=e.instantSearchInstance;function i(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];e!==r.state.query&&(n=r.state.query,r.setQuery(e)),t&&void 0!==n&&n!==e&&r.search()}this._cachedClear=this._cachedClear.bind(this),this._clear=o(r),this._refine=s?function(e){return s(e,i)}:i,c({query:r.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:a,instantSearchInstance:t},!0)},render:function(e){var t=e.helper,n=e.instantSearchInstance,r=e.searchMetadata;this._clear=o(t),c({query:t.state.query,refine:this._refine,clear:this._cachedClear,widgetParams:a,instantSearchInstance:n,isSearchStalled:r.isSearchStalled},!1)},dispose:function(e){var t=e.state;return n(),t.setQuery("")},getWidgetState:function(e,t){var n=t.searchParameters.query;return""===n||e&&e.query===n?e:H({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQuery(n.query||"")}}}}var Sh=Lc({name:"sort-by",connector:!0});function Ph(c){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(c,Sh()),function(){var a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=a.items,e=a.transformItems,o=void 0===e?function(e){return e}:e;if(!Array.isArray(s))throw new Error(Sh("The `items` option expects an array of objects."));return{init:function(e){var t=e.helper,n=e.instantSearchInstance,r=t.state.index,i=mc(s,function(e){return e.value===r});this.initialIndex=n.indexName,this.setIndex=function(e){t.setIndex(e).search()},kc(i,'The index named "'.concat(r,'" is not listed in the `items` of `sortBy`.')),c({currentRefinement:r,options:o(s),refine:this.setIndex,hasNoResults:!0,widgetParams:a,instantSearchInstance:n},!0)},render:function(e){var t=e.helper,n=e.results,r=e.instantSearchInstance;c({currentRefinement:t.state.index,options:o(s),refine:this.setIndex,hasNoResults:0===n.nbHits,widgetParams:a,instantSearchInstance:r},!1)},dispose:function(e){var t=e.state;return n(),t.setIndex(this.initialIndex)},getWidgetState:function(e,t){var n=t.searchParameters,r=n.getQueryParameter("index");return r===this.initialIndex||e&&e.sortBy===r?e:H({},e,{sortBy:n.getQueryParameter("index")})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQueryParameter("index",n.sortBy||this.initialIndex)}}}}var _h=Lc({name:"rating-menu",connector:!0});function Nh(v){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(v,_h()),function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},p=d.attribute,e=d.max,m=void 0===e?5:e;if(!p)throw new Error(_h("The `attribute` option is required."));return{getConfiguration:function(){return{disjunctiveFacets:[p]}},init:function(e){var t=e.helper,n=e.createURL,r=e.instantSearchInstance;this._toggleRefinement=this._toggleRefinement.bind(this,t),this._createURL=function(t){return function(e){return n(t.toggleRefinement(p,e))}},v({instantSearchInstance:r,items:[],hasNoResults:!0,refine:this._toggleRefinement,createURL:this._createURL(t.state),widgetParams:d},!0)},render:function(e){for(var t=e.helper,n=e.results,r=e.state,i=e.instantSearchInstance,a=[],s={},o=m;0<=o;--o)s[o]=0;n.getFacetValues(p).forEach(function(e){var t=Math.round(e.name);if(t&&!(m<t))for(var n=t;1<=n;--n)s[n]+=e.count});for(var c=this._getRefinedStar(t.state),u=m-1;1<=u;--u){var l=s[u];if(!c||u===c||0!==l){for(var h=[],f=1;f<=m;++f)h.push(f<=u);a.push({stars:h,name:String(u),value:String(u),count:l,isRefined:c===u})}}v({instantSearchInstance:i,items:a,hasNoResults:0===n.nbHits,refine:this._toggleRefinement,createURL:this._createURL(r),widgetParams:d},!1)},dispose:function(e){var t=e.state;return n(),t.removeDisjunctiveFacetRefinement(p).removeDisjunctiveFacet(p)},getWidgetState:function(e,t){var n=t.searchParameters,r=this._getRefinedStar(n);return void 0===r||e&&e.ratingMenu&&e.ratingMenu[p]===r?e:H({},e,{ratingMenu:H({},e.ratingMenu,F({},p,r))})},getWidgetSearchParameters:function(e,t){var n=t.uiState,r=n.ratingMenu&&n.ratingMenu[p];if(r===this._getRefinedStar(e))return e;var i=e.clearRefinements(p);if(void 0!==r)for(var a=Number(r);a<=m;++a)i=i.addDisjunctiveFacetRefinement(p,a);return i},_toggleRefinement:function(e,t){var n=this._getRefinedStar(e.state)===Number(t);if(e.clearRefinements(p),!n)for(var r=Number(t);r<=m;++r)e.addDisjunctiveFacetRefinement(p,r);e.search()},_getRefinedStar:function(e){var t=void 0;return e.getDisjunctiveRefinements(p).forEach(function(e){(!t||Number(e)<t)&&(t=Number(e))}),t}}}}var xh=Lc({name:"stats",connector:!0});function Ch(i){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(i,xh()),function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return{init:function(e){var t=e.helper,n=e.instantSearchInstance;i({instantSearchInstance:n,hitsPerPage:t.state.hitsPerPage,nbHits:0,nbPages:0,page:t.state.page,processingTimeMS:-1,query:t.state.query,widgetParams:r},!0)},render:function(e){var t=e.results,n=e.instantSearchInstance;i({instantSearchInstance:n,hitsPerPage:t.hitsPerPage,nbHits:t.nbHits,nbPages:t.nbPages,page:t.page,processingTimeMS:t.processingTimeMS,query:t.query,widgetParams:r},!1)},dispose:function(){e()}}}}var Fh=Lc({name:"toggle-refinement",connector:!0});function Eh(y){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(y,Fh()),function(){var d=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},p=d.attribute,e=d.on,t=void 0===e||e,n=d.off;if(!p)throw new Error(Fh("The `attribute` option is required."));var m=void 0!==n,v=wc(t),g=m?wc(n):void 0;return{getConfiguration:function(){return{disjunctiveFacets:[p]}},_toggleRefinement:function(e){(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).isRefined?(e.removeDisjunctiveFacetRefinement(p,v),m&&e.addDisjunctiveFacetRefinement(p,g)):(m&&e.removeDisjunctiveFacetRefinement(p,g),e.addDisjunctiveFacetRefinement(p,v)),e.search()},init:function(e){var t=this,n=e.state,r=e.helper,i=e.createURL,a=e.instantSearchInstance;this._createURL=function(e){return function(){return i(n.removeDisjunctiveFacetRefinement(p,e?v:g).addDisjunctiveFacetRefinement(p,e?g:v))}},this.toggleRefinement=function(e){t._toggleRefinement(r,e)};var s=n.isDisjunctiveFacetRefined(p,v);if(m&&!s){var o=r.getPage();r.addDisjunctiveFacetRefinement(p,g).setPage(o)}var c={name:p,isRefined:s,count:null,onFacetValue:{isRefined:s,count:0},offFacetValue:{isRefined:m&&!s,count:0}};y({value:c,createURL:this._createURL(c.isRefined),refine:this.toggleRefinement,instantSearchInstance:a,widgetParams:d},!0)},render:function(e){var t=e.helper,n=e.results,r=e.state,i=e.instantSearchInstance,a=t.state.isDisjunctiveFacetRefined(p,v),s=void 0!==g&&g,o=n.getFacetValues(p),c=mc(o,function(e){return e.name===vc(v)}),u={isRefined:void 0!==c&&c.isRefined,count:void 0===c?null:c.count},l=m?mc(o,function(e){return e.name===vc(s)}):void 0,h={isRefined:void 0!==l&&l.isRefined,count:void 0===l?o.reduce(function(e,t){return e+t.count},0):l.count},f={name:p,isRefined:a,count:(a?h:u).count,onFacetValue:u,offFacetValue:h};y({value:f,state:r,createURL:this._createURL(f.isRefined),refine:this.toggleRefinement,helper:t,instantSearchInstance:i,widgetParams:d},!1)},dispose:function(e){var t=e.state;return r(),t.removeDisjunctiveFacetRefinement(p).removeDisjunctiveFacet(p)},getWidgetState:function(e,t){var n=t.searchParameters.isDisjunctiveFacetRefined(p,v);return!n||e&&e.toggle&&e.toggle[p]===n?e:H({},e,{toggle:H({},e.toggle,F({},p,n))})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return Boolean(n.toggle&&n.toggle[p])?m?e.removeDisjunctiveFacetRefinement(p,g).addDisjunctiveFacetRefinement(p,v):e.addDisjunctiveFacetRefinement(p,v):m?e.removeDisjunctiveFacetRefinement(p,v).addDisjunctiveFacetRefinement(p,g):e.removeDisjunctiveFacetRefinement(p,v)}}}}var jh=Lc({name:"breadcrumb",connector:!0});function Th(u){var l=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(u,jh()),function(){var o=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=o.attributes,e=o.separator,r=void 0===e?" > ":e,t=o.rootPath,i=void 0===t?null:t,a=o.transformItems,c=void 0===a?function(e){return e}:a;if(!n||!Array.isArray(n)||0===n.length)throw new Error(jh("The `attributes` option expects an array of strings."));var s=U(n,1)[0];return{getConfiguration:function(e){if(e.hierarchicalFacets){var t=mc(e.hierarchicalFacets,function(e){return e.name===s});if(t)return kc(Fc(t.attributes,n)&&t.separator===r&&t.rootPath===i,"Using Breadcrumb and HierarchicalMenu on the same facet with different options overrides the configuration of the HierarchicalMenu."),{}}return{hierarchicalFacets:[{attributes:n,name:s,separator:r,rootPath:i}]}},init:function(e){var n=e.createURL,r=e.helper,t=e.instantSearchInstance;this._createURL=function(e){if(!e){var t=r.getHierarchicalFacetBreadcrumb(s);if(0<t.length)return n(r.state.toggleRefinement(s,t[0]))}return n(r.state.toggleRefinement(s,e))},this._refine=function(e){if(e)r.toggleRefinement(s,e).search();else{var t=r.getHierarchicalFacetBreadcrumb(s);0<t.length&&r.toggleRefinement(s,t[0]).search()}},u({createURL:this._createURL,canRefine:!1,instantSearchInstance:t,items:[],refine:this._refine,widgetParams:o},!0)},render:function(e){var t=e.instantSearchInstance,n=e.results,r=U(e.state.hierarchicalFacets,1)[0].name,i=n.getFacetValues(r),a=Array.isArray(i.data)?i.data:[],s=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.path}),Array.isArray(t.data)&&(e=e.concat(n(t.data)))),e},[])}(a)));u({canRefine:0<s.length,createURL:this._createURL,instantSearchInstance:t,items:s,refine:this._refine,widgetParams:o},!1)},dispose:function(){l()}}}}function Mh(P){var r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(P,Ih()),function(){var u=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=u.enableRefineOnMapMove,t=void 0===e||e,n=u.transformItems,l=void 0===n?function(e){return e}:n;kc(!1,"\nThe option `enableGeolocationWithIP` has been removed from the GeoSearch widget.\nPlease consider using the `Configure` widget instead:\n\nsearch.addWidget(\n configure({\n aroundLatLngViaIP: ".concat(u.enableGeolocationWithIP||"true",",\n })\n);\n\nYou can find more information inside the migration guide:\nhttp://community.algolia.com/instantsearch.js/migration-guide\n ")),kc(void 0===u.position,"\nThe option `position` has been removed from the GeoSearch widget.\nPlease consider using the `Configure` widget instead:\n\nsearch.addWidget(\n configure({\n aroundLatLng: '".concat(u.position&&u.position.lat,", ").concat(u.position&&u.position.lng,"',\n })\n);\n\nYou can find more information inside the migration guide:\nhttp://community.algolia.com/instantsearch.js/migration-guide\n ")),kc(void 0===u.radius,"\nThe option `radius` has been removed from the GeoSearch widget.\nPlease consider using the `Configure` widget instead:\n\nsearch.addWidget(\n configure({\n aroundRadius: ".concat(u.radius,",\n })\n);\n\nYou can find more information inside the migration guide:\n\nhttp://community.algolia.com/instantsearch.js/migration-guide\n ")),kc(void 0===u.precision,"\nThe option `precision` has been removed from the GeoSearch widget.\nPlease consider using the `Configure` widget instead:\n\nsearch.addWidget(\n configure({\n aroundPrecision: ".concat(u.precision,",\n })\n);\n\nYou can find more information inside the migration guide:\n\nhttp://community.algolia.com/instantsearch.js/migration-guide\n "));function h(e){return e.aroundLatLng&&function(e){var t=e.match(Oc);if(!t)throw new Error('Invalid value for "aroundLatLng" parameter: "'.concat(e,'"'));return{lat:parseFloat(t[1]),lng:parseFloat(t[2])}}(e.aroundLatLng)}function f(e){return e.insideBoundingBox&&Ac(e.insideBoundingBox)}function d(i){return function(e){var t=e.northEast,n=e.southWest,r=[t.lat,t.lng,n.lat,n.lng].join();i.setQueryParameter("insideBoundingBox",r).search(),S.hasMapMoveSinceLastRefine=!1,S.lastRefineBoundingBox=r}}function p(e){return function(){e.setQueryParameter("insideBoundingBox").search()}}function m(e){return function(){return Boolean(e.insideBoundingBox)}}function v(){return S.internalToggleRefineOnMapMove()}function g(e,t){return function(){S.isRefineOnMapMove=!S.isRefineOnMapMove,e(t)}}function y(){return S.isRefineOnMapMove}function b(){return S.internalSetMapMoveSinceLastRefine()}function w(t,n){return function(){var e=!0!==S.hasMapMoveSinceLastRefine;S.hasMapMoveSinceLastRefine=!0,e&&t(n)}}function R(){return S.hasMapMoveSinceLastRefine}var S={isRefineOnMapMove:t,hasMapMoveSinceLastRefine:!1,lastRefinePosition:"",lastRefineBoundingBox:"",internalToggleRefineOnMapMove:Pc,internalSetMapMoveSinceLastRefine:Pc};return{init:function(e){var t=e.state,n=e.helper,r=e.instantSearchInstance;S.internalToggleRefineOnMapMove=g(Pc,e),S.internalSetMapMoveSinceLastRefine=w(Pc,e),P({items:[],position:h(t),currentRefinement:f(t),refine:d(n),clearMapRefinement:p(n),isRefinedWithMap:m(t),toggleRefineOnMapMove:v,isRefineOnMapMove:y,setMapMoveSinceLastRefine:b,hasMapMoveSinceLastRefine:R,widgetParams:u,instantSearchInstance:r},!0)},render:function e(t){var n=t.results,r=t.helper,i=t.instantSearchInstance,a=r.state,s=Boolean(a.aroundLatLng)&&Boolean(S.lastRefinePosition)&&a.aroundLatLng!==S.lastRefinePosition,o=!a.insideBoundingBox&&Boolean(S.lastRefineBoundingBox)&&a.insideBoundingBox!==S.lastRefineBoundingBox;(s||o)&&(S.hasMapMoveSinceLastRefine=!1),S.lastRefinePosition=a.aroundLatLng||"",S.lastRefineBoundingBox=a.insideBoundingBox||"",S.internalToggleRefineOnMapMove=g(e,t),S.internalSetMapMoveSinceLastRefine=w(e,t);var c=l(n.hits.filter(function(e){return e._geoloc}));P({items:c,position:h(a),currentRefinement:f(a),refine:d(r),clearMapRefinement:p(r),isRefinedWithMap:m(a),toggleRefineOnMapMove:v,isRefineOnMapMove:y,setMapMoveSinceLastRefine:b,hasMapMoveSinceLastRefine:R,widgetParams:u,instantSearchInstance:i},!1)},dispose:function(e){var t=e.state;return r(),t.setQueryParameter("insideBoundingBox")},getWidgetState:function(e,t){var n=t.searchParameters.insideBoundingBox;return!n||e&&e.geoSearch&&e.geoSearch.boundingBox===n?e:H({},e,{geoSearch:{boundingBox:n}})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return n&&n.geoSearch?e.setQueryParameter("insideBoundingBox",n.geoSearch.boundingBox):e.setQueryParameter("insideBoundingBox")}}}}var Ih=Lc({name:"geo-search",connector:!0}),Lh=Lc({name:"powered-by",connector:!0});function kh(r){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;Rc(r,Lh());var a="https://www.algolia.com/?utm_source=instantsearch.js&utm_medium=website&"+"utm_content=".concat("undefined"!=typeof window&&window.location?window.location.hostname:"","&")+"utm_campaign=poweredby";return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?a:t;return{init:function(){r({url:n,widgetParams:e},!0)},render:function(){r({url:n,widgetParams:e},!1)},dispose:function(){i()}}}}var Oh=Lc({name:"configure",connector:!0});function Ah(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Pc,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return function(){var i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};if(!Nc(i.searchParameters))throw new Error(Oh("The `searchParameters` option expects an object."));return{getConfiguration:function(){return i.searchParameters},init:function(e){var t=e.helper;this._refine=this.refine(t),n({refine:this._refine,widgetParams:i},!0)},refine:function(n){var r=this;return function(e){var t=cu(H({},r.removeSearchParameters(n.state)),{getConfiguration:function(){return e}});n.setState(t).search(),i.searchParameters=e}},render:function(){n({refine:this._refine,widgetParams:i},!1)},dispose:function(e){var t=e.state;return r(),this.removeSearchParameters(t)},removeSearchParameters:function(e){return e.mutateMe(function(t){Object.keys(i.searchParameters).forEach(function(e){delete t[e]})})}}}}var Dh=Lc({name:"autocomplete",connector:!0});var Hh=Lc({name:"query-rules",connector:!0});function Uh(e){var t=this.helper,n=this.initialRuleContexts,r=this.trackedFilters,i=this.transformRuleContexts,a=e.ruleContexts||[],s=function(e){var i=e.helper,a=e.sharedHelperState,s=e.trackedFilters;return Object.keys(s).reduce(function(e,t){var n=yc(i.lastResults||{},a).filter(function(e){return e.attributeName===t}).map(function(e){return e.numericValue||e.name}),r=(0,s[t])(n);return[].concat(b(e),b(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:e,trackedFilters:r}),o=[].concat(b(n),b(s));kc(o.length<=10,"\nThe maximum number of `ruleContexts` is 10. They have been sliced to that limit.\nConsider using `transformRuleContexts` to minimize the number of rules sent to Algolia.\n");var c=i(o).slice(0,10);Fc(a,c)||t.overrideStateWithoutTriggeringChangeEvent(H({},e,{ruleContexts:c}))}function Bh(d){var p=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(d,Hh()),function(a){var e=a||{},t=e.trackedFilters,i=void 0===t?{}:t,n=e.transformRuleContexts,s=void 0===n?function(e){return e}:n,r=e.transformItems,o=void 0===r?function(e){return e}:r;Object.keys(i).forEach(function(e){if("function"!=typeof i[e])throw new Error(Hh("'The \"".concat(e,'" filter value in the `trackedFilters` option expects a function.')))});var c,u,l=0<Object.keys(i).length,h=[];return{init:function(e){var t=e.helper,n=e.state,r=e.instantSearchInstance;h=n.ruleContexts||[],c=Uh.bind({helper:t,initialRuleContexts:h,trackedFilters:i,transformRuleContexts:s}),l&&((function(e){return[e.disjunctiveFacetsRefinements,e.facetsRefinements,e.hierarchicalFacetsRefinements,e.numericRefinements].some(function(e){return Boolean(e&&0<Object.keys(e).length)})}(n)||Boolean(a.transformRuleContexts))&&c(n),t.on("change",c)),d({items:[],instantSearchInstance:r,widgetParams:a},!0)},render:(u=function(e){var t=e.results,n=e.instantSearchInstance,r=t.userData,i=o(void 0===r?[]:r);d({items:i,instantSearchInstance:n,widgetParams:a},!1)},f.toString=function(){return u.toString()},f),dispose:function(e){var t=e.helper,n=e.state;return p(),l?(t.removeListener("change",c),n.setQueryParameter("ruleContexts",h)):n}};function f(e){return u.apply(this,arguments)}}}function Vh(e){function t(e){return{status:e,transcript:"",isSpeechFinal:!1,errorCode:void 0}}function n(){return Boolean(m)}function r(){return"askingPermission"===v.status||"waiting"===v.status||"recognizing"===v.status}function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};v=H({},v,{},e),p()}function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"initial";i(t(e))}function s(){i({status:"waiting"})}function o(e){i({status:"error",errorCode:e.error})}function c(e){i({status:"recognizing",transcript:e.results[0]&&e.results[0][0]&&e.results[0][0].transcript||"",isSpeechFinal:e.results[0]&&e.results[0].isFinal}),f&&v.transcript&&d(v.transcript)}function u(){v.errorCode||!v.transcript||f||d(v.transcript),"error"!==v.status&&i({status:"finished"})}function l(){h&&(h.stop(),h.removeEventListener("start",s),h.removeEventListener("error",o),h.removeEventListener("result",c),h.removeEventListener("end",u),h=void 0)}var h,f=e.searchAsYouSpeak,d=e.onQueryChange,p=e.onStateChange,m=window.webkitSpeechRecognition||window.SpeechRecognition,v=t("initial");return{getState:function(){return v},isBrowserSupported:n,isListening:r,toggleListening:function(){n()&&(r()?(l(),a("finished")):(h=new m)&&(a("askingPermission"),h.interimResults=!0,h.addEventListener("start",s),h.addEventListener("error",o),h.addEventListener("result",c),h.addEventListener("end",u),h.start()))},dispose:l}}function Qh(u){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(u,qh()),function(c){function a(e){var t=e.isFirstRendering,n=e.instantSearchInstance,r=e.voiceSearchHelper,i=r.isBrowserSupported,a=r.isListening,s=r.toggleListening,o=r.getState;u({isBrowserSupported:i(),isListening:a(),toggleListening:s,voiceListeningState:o(),widgetParams:c,instantSearchInstance:n},t)}var e=c.searchAsYouSpeak,s=void 0!==e&&e;return{init:function(e){var t,n=this,r=e.helper,i=e.instantSearchInstance;this._refine=function(e){e!==r.state.query&&(t=r.state.query,r.setQuery(e)),void 0!==t&&t!==e&&r.search()},this._voiceSearchHelper=Vh({searchAsYouSpeak:s,onQueryChange:function(e){return n._refine(e)},onStateChange:function(){a({isFirstRendering:!1,instantSearchInstance:i,voiceSearchHelper:n._voiceSearchHelper})}}),a({isFirstRendering:!0,instantSearchInstance:i,voiceSearchHelper:this._voiceSearchHelper})},render:function(e){var t=e.instantSearchInstance;a({isFirstRendering:!1,instantSearchInstance:t,voiceSearchHelper:this._voiceSearchHelper})},dispose:function(e){var t=e.state;return this._voiceSearchHelper.dispose(),n(),t.setQuery("")},getWidgetState:function(e,t){var n=t.searchParameters.query;return""===n||e&&e.query===n?e:H({},e,{query:n})},getWidgetSearchParameters:function(e,t){var n=t.uiState;return e.setQuery(n.query||"")}}}}var qh=Lc({name:"voice-search",connector:!0}),Wh=Object.freeze({connectClearRefinements:lu,connectCurrentRefinements:du,connectHierarchicalMenu:bu,connectHits:Ru,connectHitsWithInsights:eh,connectHitsPerPage:nh,connectInfiniteHits:rh,connectInfiniteHitsWithInsights:ah,connectMenu:oh,connectNumericMenu:uh,connectPagination:mh,connectRange:gh,connectRefinementList:bh,connectSearchBox:Rh,connectSortBy:Ph,connectRatingMenu:Nh,connectStats:Ch,connectToggleRefinement:Eh,connectBreadcrumb:Th,connectGeoSearch:Mh,connectPoweredBy:kh,connectConfigure:Ah,connectAutocomplete:function(a){var s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Pc;return Rc(a,Dh()),function(){var r=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=r.escapeHTML,i=void 0===e||e,t=r.indices,n=void 0===t?[]:t;if(!Array.isArray(n))throw new Error(Dh("The `indices` option expects an array of objects."));return{getConfiguration:function(){return i?Yc:void 0},init:function(e){var i=this,t=e.instantSearchInstance,a=e.helper;this._refine=this.refine(a),this.indices=[{helper:a,label:"primary",index:a.getIndex(),results:void 0,hits:[]}],n.forEach(function(e){var t=e.label,n=e.value,r=a.derive(function(e){return e.setIndex(n)});i.indices.push({label:t,index:n,helper:r,results:void 0,hits:[]}),r.on("result",function(e){return i.saveResults({results:e,label:t})})}),this.instantSearchInstance=t,this.renderWithAllIndices({isFirstRendering:!0})},saveResults:function(e){var t=e.results,n=e.label,r=mc(this.indices,function(e){return e.label===n});i&&t&&t.hits&&0<t.hits.length&&(t.hits=Zc(t.hits)),r.results=t,r.hits=t&&t.hits&&Array.isArray(t.hits)?t.hits:[],this.renderWithAllIndices()},refine:function(t){return function(e){return t.setQuery(e).search()}},render:function(e){var t=e.results;this.saveResults({results:t,label:this.indices[0].label})},renderWithAllIndices:function(){var e=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).isFirstRendering,t=void 0!==e&&e,n=this.indices[0].helper.state.query;a({widgetParams:r,currentRefinement:n,indices:this.indices.map(function(e){return{index:e.index,label:e.label,hits:e.hits,results:e.results}}),instantSearchInstance:this.instantSearchInstance,refine:this._refine},t)},dispose:function(){this.indices.slice(1).forEach(function(e){return e.helper.detach()}),s()}}}},connectQueryRules:Bh,connectVoiceSearch:Qh}),zh=n(function(e){function s(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"==r||"number"==r)e.push(n);else if(Array.isArray(n)&&n.length){var i=s.apply(null,n);i&&e.push(i)}else if("object"==r)for(var a in n)o.call(n,a)&&n[a]&&e.push(a)}}return e.join(" ")}var o;o={}.hasOwnProperty,e.exports?(s.default=s,e.exports=s):window.classNames=s}),Kh=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"shouldComponentUpdate",value:function(e){return!Fc(this.props.data,e.data)||this.props.templateKey!==e.templateKey||!Fc(this.props.rootProps,e.rootProps)}},{key:"render",value:function(){var e=this.props.rootTagName,t=this.props.useCustomCompileOptions[this.props.templateKey]?this.props.templatesConfig.compileOptions:{},n=pc({templates:this.props.templates,templateKey:this.props.templateKey,compileOptions:t,helpers:this.props.templatesConfig.helpers,data:this.props.data});return null===n?null:Xl.createElement(e,d({},this.props.rootProps,{dangerouslySetInnerHTML:{__html:n}}))}}]),t}();Kh.defaultProps={data:{},rootTagName:"div",useCustomCompileOptions:{},templates:{},templatesConfig:{}};function Yh(e){var t=e.hasRefinements,n=e.refine,r=e.cssClasses,i=e.templateProps;return Xl.createElement("div",{className:r.root},Xl.createElement(Kh,d({},i,{templateKey:"resetLabel",rootTagName:"button",rootProps:{className:zh(r.button,F({},r.disabledButton,!t)),onClick:n,disabled:!t},data:{hasRefinements:t}})))}var $h={resetLabel:"Clear refinements"},Gh=Lc({name:"clear-refinements"}),Jh=Xc("ClearRefinements");function Zh(e){var t=e.items,n=e.cssClasses;return Xl.createElement("div",{className:n.root},Xl.createElement("ul",{className:n.list},t.map(function(t,e){return Xl.createElement("li",{key:"".concat(t.attribute,"-").concat(e),className:n.item},Xl.createElement("span",{className:n.label},function(e){return e.toString().charAt(0).toUpperCase()+e.toString().slice(1)}(t.label),":"),t.refinements.map(function(e){return Xl.createElement("span",{key:function(e){var t=e.attribute,n=e.value;return[t,e.type,n,e.operator].map(function(e){return e}).filter(Boolean).join(":")}(e),className:n.category},Xl.createElement("span",{className:n.categoryLabel},"query"===e.attribute?Xl.createElement("q",null,e.label):e.label),Xl.createElement("button",{className:n.delete,onClick:function(t){return function(e){cc(e)||(e.preventDefault(),t())}}(t.refine.bind(null,e))},"✕"))}))})))}var Xh=Lc({name:"current-refinements"}),ef=Xc("CurrentRefinements");function tf(e){var t=e.className,n=e.disabled,r=e.onClick,i=e.children;return Xl.createElement("button",{className:t,onClick:r,disabled:n},i)}tf.defaultProps={disabled:!1};function nf(e){var t=e.classNameLabel,n=e.classNameInput,r=e.checked,i=e.onToggle,a=e.children;return Xl.createElement("label",{className:t},Xl.createElement("input",{className:n,type:"checkbox",checked:r,onChange:i}),a)}function rf(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,h=e.templateProps;return n&&Xl.createElement("div",null,r&&Xl.createElement("div",{className:t.control},a||!o?Xl.createElement(nf,{classNameLabel:zh(t.label,F({},t.selectedLabel,a)),classNameInput:t.input,checked:a,onToggle:c},Xl.createElement(Kh,d({},h,{templateKey:"toggle",rootTagName:"span"}))):Xl.createElement(tf,{className:t.redo,disabled:!o,onClick:u},Xl.createElement(Kh,d({},h,{templateKey:"redo",rootTagName:"span"})))),!r&&!a&&Xl.createElement("div",{className:t.control},Xl.createElement(tf,{className:zh(t.redo,F({},t.disabledRedo,!o)),disabled:!o,onClick:u},Xl.createElement(Kh,d({},h,{templateKey:"redo",rootTagName:"span"})))),i&&s&&Xl.createElement(tf,{className:t.reset,onClick:l},Xl.createElement(Kh,d({},h,{templateKey:"reset",rootTagName:"span"}))))}function af(e){var t=e.refine,n=e.mapInstance;return t({northEast:n.getBounds().getNorthEast().toJSON(),southWest:n.getBounds().getSouthWest().toJSON()})}function sf(e,t){e.isUserInteraction=!1,t(),e.isUserInteraction=!0}function of(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,h=e.isRefinedWithMap,f=e.widgetParams,d=e.instantSearchInstance,p=f.container,m=f.googleReference,v=f.cssClasses,g=f.templates,y=f.initialZoom,b=f.initialPosition,w=f.enableRefine,R=f.enableClearMapRefinement,S=f.enableRefineControl,P=f.mapOptions,_=f.createMarker,N=f.markerOptions,x=f.renderState;if(t){x.isUserInteraction=!0,x.isPendingRefine=!1,x.markers=[];var C=document.createElement("div");C.className=v.root,p.appendChild(C);var F=document.createElement("div");F.className=v.map,C.appendChild(F);var E=document.createElement("div");E.className=v.tree,C.appendChild(E),x.mapInstance=new m.maps.Map(F,H({mapTypeControl:!1,fullscreenControl:!1,streetViewControl:!1,clickableIcons:!1,zoomControlOptions:{position:m.maps.ControlPosition.LEFT_TOP}},P));return m.maps.event.addListenerOnce(x.mapInstance,"idle",function(){function e(){x.isUserInteraction&&w&&(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,af({mapInstance:x.mapInstance,refine:a}))})}),void(x.templateProps=lc({templatesConfig:d.templatesConfig,templates:g}))}var j=n.map(function(e){return e.objectID}),T=U(function(e,a){return e.reduce(function(e,t){var n=U(e,2),r=n[0],i=n[1];return a.includes(t.__id)?[r.concat(t),i]:[r,i.concat(t)]},[[],[]])}(x.markers,j),2),M=T[0],I=T[1],L=M.map(function(e){return e.__id}),k=n.filter(function(e){return!L.includes(e.objectID)});I.forEach(function(e){return e.setMap(null)}),x.markers=M.concat(k.map(function(n){var r=_({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 O=!l(),A=i?0:null,D=!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()}}(m,x.markers):i;D&&O?sf(x,function(){x.mapInstance.fitBounds(new m.maps.LatLngBounds(D.southWest,D.northEast),A)}):O&&sf(x,function(){x.mapInstance.setCenter(r||b),x.mapInstance.setZoom(y)}),_l(Xl.createElement(rf,{cssClasses:v,enableRefine:w,enableRefineControl:S,enableClearMapRefinement:R,isRefineOnMapMove:c(),isRefinedWithMap:h(),hasMapMoveSinceLastRefine:l(),onRefineToggle:o,onRefineClick:function(){return af({mapInstance:x.mapInstance,refine:a})},onClearClick:s,templateProps:x.templateProps}),p.querySelector(".".concat(v.tree)))}var cf={HTMLMarker:"<p>Your custom HTML Marker</p>",reset:"Clear the map refinement",toggle:"Search as I move the map",redo:"Redo search here"},uf=Lc({name:"geo-search"}),lf=Xc("GeoSearch"),hf=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"componentWillMount",value:function(){this.handleClick=this.handleClick.bind(this)}},{key:"shouldComponentUpdate",value:function(e){return!Fc(this.props,e)}},{key:"handleClick",value:function(e){this.props.handleClick({facetValueToRefine:this.props.facetValueToRefine,isRefined:this.props.isRefined,originalEvent:e})}},{key:"render",value:function(){return Xl.createElement("li",{className:this.props.className,onClick:this.handleClick},Xl.createElement(Kh,d({},this.props.templateProps,{templateKey:this.props.templateKey,data:this.props.templateData})),this.props.subItems)}}]),t}(),ff=function(e){function i(){var e,s;T(this,i);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return F(o(s=O(this,(e=L(i)).call.apply(e,[this].concat(n)))),"state",{query:s.props.searchAsYouType?"":s.props.query}),F(o(s),"onChange",function(e){var t=s.props,n=t.searchAsYouType,r=t.refine,i=t.onChange,a=e.target.value;n?r(a):s.setState({query:a}),i(e)}),F(o(s),"onSubmit",function(e){var t=s.props,n=t.searchAsYouType,r=t.refine,i=t.onSubmit;return e.preventDefault(),e.stopPropagation(),s.input.blur(),n||r(s.state.query),i(e),!1}),F(o(s),"onReset",function(e){var t=s.props,n=t.searchAsYouType,r=t.refine,i=t.onReset;s.input.focus(),r(""),n||s.setState({query:""}),i(e)}),s}return I(i,Gl),M(i,[{key:"resetInput",value:function(){this.setState({query:""})}},{key:"render",value:function(){var t=this,e=this.props,n=e.cssClasses,r=e.placeholder,i=e.autofocus,a=e.showSubmit,s=e.showReset,o=e.showLoadingIndicator,c=e.templates,u=e.isSearchStalled,l=e.searchAsYouType?this.props.query:this.state.query;return Xl.createElement("div",{className:n.root},Xl.createElement("form",{action:"",role:"search",className:n.form,noValidate:!0,onSubmit:this.onSubmit,onReset:this.onReset},Xl.createElement("input",{ref:function(e){return t.input=e},value:l,disabled:this.props.disabled,className:n.input,type:"search",placeholder:r,autoFocus:i,autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1,maxLength:512,onChange:this.onChange}),Xl.createElement(Kh,{templateKey:"submit",rootTagName:"button",rootProps:{className:n.submit,type:"submit",title:"Submit the search query.",hidden:!a},templates:c,data:{cssClasses:n}}),Xl.createElement(Kh,{templateKey:"reset",rootTagName:"button",rootProps:{className:n.reset,type:"reset",title:"Clear the search query.",hidden:!(s&&l.trim()&&!u)},templates:c,data:{cssClasses:n}}),o&&Xl.createElement(Kh,{templateKey:"loadingIndicator",rootTagName:"span",rootProps:{className:n.loadingIndicator,hidden:!u},templates:c,data:{cssClasses:n}})))}}]),i}();F(ff,"defaultProps",{query:"",showSubmit:!0,showReset:!0,showLoadingIndicator:!0,autofocus:!1,searchAsYouType:!0,isSearchStalled:!1,disabled:!1,onChange:Pc,onSubmit:Pc,onReset:Pc,refine:Pc});var df=function(e){function s(e){var t;return T(this,s),(t=O(this,L(s).call(this,e))).handleItemClick=t.handleItemClick.bind(o(t)),t}return I(s,Gl),M(s,[{key:"shouldComponentUpdate",value:function(e,t){var n=t!==this.state,r=!Fc(this.props.facetValues,e.facetValues);return n||r}},{key:"refine",value:function(e,t){this.props.toggleRefinement(e,t)}},{key:"_generateFacetItem",value:function(e){var t,n,r=e.data&&0<e.data.length;r&&(n=Xl.createElement(s,d({},this.props,{depth:this.props.depth+1,facetValues:e.data,showMore:!1,className:this.props.cssClasses.childList})));var i=H({},e,{url:this.props.createURL(e.value),attribute:this.props.attribute,cssClasses:this.props.cssClasses}),a=e.value;return void 0!==e.isRefined&&(a+="/".concat(e.isRefined)),void 0!==e.count&&(a+="/".concat(e.count)),Xl.createElement(hf,{templateKey:"item",key:a,facetValueToRefine:e.value,handleClick:this.handleItemClick,isRefined:e.isRefined,className:zh(this.props.cssClasses.item,(t={},F(t,this.props.cssClasses.selectedItem,e.isRefined),F(t,this.props.cssClasses.disabledItem,!e.count),F(t,this.props.cssClasses.parentItem,r),t)),subItems:n,templateData:i,templateProps:this.props.templateProps})}},{key:"handleItemClick",value:function(e){var t=e.facetValueToRefine,n=e.originalEvent,r=e.isRefined;if(!(cc(n)||r&&n.target.parentNode.querySelector('input[type="radio"]:checked')))if("INPUT"!==n.target.tagName){for(var i=n.target;i!==n.currentTarget;){if("LABEL"===i.tagName&&(i.querySelector('input[type="checkbox"]')||i.querySelector('input[type="radio"]')))return;"A"===i.tagName&&i.href&&n.preventDefault(),i=i.parentNode}n.stopPropagation(),this.refine(t,r)}else this.refine(t,r)}},{key:"componentWillReceiveProps",value:function(e){this.searchBox&&!e.isFromSearch&&this.searchBox.resetInput()}},{key:"refineFirstValue",value:function(){var e=this.props.facetValues[0];if(e){var t=e.value;this.props.toggleRefinement(t)}}},{key:"render",value:function(){var t=this,e=zh(this.props.cssClasses.list,F({},"".concat(this.props.cssClasses.depth).concat(this.props.depth),this.props.cssClasses.depth)),n=zh(this.props.cssClasses.showMore,F({},this.props.cssClasses.disabledShowMore,!(!0===this.props.showMore&&this.props.canToggleShowMore))),r=!0===this.props.showMore&&Xl.createElement(Kh,d({},this.props.templateProps,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:n,disabled:!this.props.canToggleShowMore,onClick:this.props.toggleShowMore},data:{isShowingMore:this.props.isShowingMore}})),i=!0!==this.props.searchIsAlwaysActive&&!(this.props.isFromSearch||!this.props.hasExhaustiveItems),a=this.props.searchFacetValues&&Xl.createElement("div",{className:this.props.cssClasses.searchBox},Xl.createElement(ff,{ref:function(e){return t.searchBox=e},placeholder:this.props.searchPlaceholder,disabled:i,cssClasses:this.props.cssClasses.searchable,templates:this.props.templateProps.templates,onChange:function(e){return t.props.searchFacetValues(e.target.value)},onReset:function(){return t.props.searchFacetValues("")},onSubmit:function(){return t.refineFirstValue()},searchAsYouType:!1})),s=this.props.facetValues&&0<this.props.facetValues.length&&Xl.createElement("ul",{className:e},this.props.facetValues.map(this._generateFacetItem,this)),o=this.props.searchFacetValues&&this.props.isFromSearch&&0===this.props.facetValues.length&&Xl.createElement(Kh,d({},this.props.templateProps,{templateKey:"searchableNoResults",rootProps:{className:this.props.cssClasses.noResults}}));return Xl.createElement("div",{className:zh(this.props.cssClasses.root,F({},this.props.cssClasses.noRefinementRoot,!this.props.facetValues||0===this.props.facetValues.length),this.props.className)},this.props.children,a,s,o,r)}}]),s}();df.defaultProps={cssClasses:{},depth:0};var pf={item:'<a class="{{cssClasses.link}}" href="{{url}}"><span class="{{cssClasses.label}}">{{label}}</span><span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span></a>',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},mf=Lc({name:"hierarchical-menu"}),vf=Xc("HierarchicalMenu");function gf(e){var t=e.results,n=e.hits,r=e.cssClasses,i=e.templateProps;return 0===t.hits.length?Xl.createElement(Kh,d({},i,{templateKey:"empty",rootProps:{className:zh(r.root,r.emptyRoot)},data:t})):Xl.createElement("div",{className:r.root},Xl.createElement("ol",{className:r.list},n.map(function(e,t){return Xl.createElement(Kh,d({},i,{templateKey:"item",rootTagName:"li",rootProps:{className:r.item},key:e.objectID,data:H({},e,{__hitIndex:t})}))})))}gf.defaultProps={results:{hits:[]},hits:[]};var yf={empty:"No results",item:function(e){return JSON.stringify(e,null,2)}},bf=Lc({name:"hits"}),wf=Xc("Hits"),Rf=Zl(gf);var Sf=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"componentWillMount",value:function(){this.handleChange=this.handleChange.bind(this)}},{key:"handleChange",value:function(e){this.props.setValue(e.target.value)}},{key:"render",value:function(){var t=this,e=this.props,n=e.currentValue,r=e.options;return Xl.createElement("select",{className:zh(this.props.cssClasses.select),onChange:this.handleChange,value:"".concat(n)},r.map(function(e){return Xl.createElement("option",{className:zh(t.props.cssClasses.option),key:e.label+e.value,value:"".concat(e.value)},e.label)}))}}]),t}(),Pf=Lc({name:"hits-per-page"}),_f=Xc("HitsPerPage");var Nf={empty:"No results",showPreviousText:"Show previous results",showMoreText:"Show more results",item:function(e){return JSON.stringify(e,null,2)}},xf=Lc({name:"infinite-hits"}),Cf=Xc("InfiniteHits"),Ff=Zl(function(e){var t=e.results,n=e.hits,r=e.hasShowPrevious,i=e.showPrevious,a=e.showMore,s=e.isFirstPage,o=e.isLastPage,c=e.cssClasses,u=e.templateProps;return 0===t.hits.length?Xl.createElement(Kh,d({},u,{templateKey:"empty",rootProps:{className:zh(c.root,c.emptyRoot)},data:t})):Xl.createElement("div",{className:c.root},r&&Xl.createElement(Kh,d({},u,{templateKey:"showPreviousText",rootTagName:"button",rootProps:{className:zh(c.loadPrevious,F({},c.disabledLoadPrevious,s)),disabled:s,onClick:i}})),Xl.createElement("ol",{className:c.list},n.map(function(e,t){return Xl.createElement(Kh,d({},u,{templateKey:"item",rootTagName:"li",rootProps:{className:c.item},key:e.objectID,data:H({},e,{__hitIndex:t})}))})),Xl.createElement(Kh,d({},u,{templateKey:"showMoreText",rootTagName:"button",rootProps:{className:zh(c.loadMore,F({},c.disabledLoadMore,o)),disabled:o,onClick:a}})))}),Ef={item:'<a class="{{cssClasses.link}}" href="{{url}}"><span class="{{cssClasses.label}}">{{label}}</span><span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span></a>',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n "},jf=Lc({name:"menu"}),Tf=Xc("Menu");var Mf={item:'<label class="{{cssClasses.label}}">\n <input type="checkbox"\n class="{{cssClasses.checkbox}}"\n value="{{value}}"\n {{#isRefined}}checked{{/isRefined}} />\n <span class="{{cssClasses.labelText}}">{{{highlighted}}}</span>\n <span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span>\n</label>',showMoreText:"\n {{#isShowingMore}}\n Show less\n {{/isShowingMore}}\n {{^isShowingMore}}\n Show more\n {{/isShowingMore}}\n ",searchableNoResults:"No results",searchableReset:'\n <svg class="{{cssClasses.resetIcon}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">\n <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>\n </svg>\n ',searchableSubmit:'\n <svg class="{{cssClasses.submitIcon}}" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">\n <path d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"></path>\n </svg>\n ',searchableLoadingIndicator:'\n <svg class="{{cssClasses.loadingIcon}}" width="16" height="16" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#444">\n <g fill="none" fillRule="evenodd">\n <g transform="translate(1 1)" strokeWidth="2">\n <circle strokeOpacity=".5" cx="18" cy="18" r="18" />\n <path d="M36 18c0-9.94-8.06-18-18-18">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="1s"\n repeatCount="indefinite"\n />\n </path>\n </g>\n </g>\n </svg>\n '},If=Lc({name:"refinement-list"}),Lf=Xc("RefinementList"),kf=Xc("SearchBox");var Of={item:'<label class="{{cssClasses.label}}">\n <input type="radio" class="{{cssClasses.radio}}" name="{{attribute}}"{{#isRefined}} checked{{/isRefined}} />\n <span class="{{cssClasses.labelText}}">{{label}}</span>\n</label>'},Af=Lc({name:"numeric-menu"}),Df=Xc("NumericMenu");var Hf=function(e){function t(){return T(this,t),O(this,L(t).apply(this,arguments))}return I(t,Gl),M(t,[{key:"componentWillMount",value:function(){this.handleClick=this.handleClick.bind(this)}},{key:"shouldComponentUpdate",value:function(e){return!Fc(this.props,e)}},{key:"handleClick",value:function(e){this.props.handleClick(this.props.pageNumber,e)}},{key:"render",value:function(){var e=this.props,t=e.cssClasses,n=e.label,r=e.ariaLabel,i=e.url,a=e.isDisabled,s="span",o={className:t.link,dangerouslySetInnerHTML:{__html:n}};a||(s="a",o=H({},o,{"aria-label":r,href:i,onClick:this.handleClick}));var c=Xl.createElement(s,o);return Xl.createElement("li",{className:t.item},c)}}]),t}(),Uf=function(e){function a(){var e,n;T(this,a);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return F(o(n=O(this,(e=L(a)).call.apply(e,[this].concat(r)))),"handleClick",function(e,t){cc(t)||(t.preventDefault(),n.props.setCurrentPage(e))}),n}return I(a,Gl),M(a,[{key:"pageLink",value:function(e){var t=e.label,n=e.ariaLabel,r=e.pageNumber,i=e.additionalClassName,a=void 0===i?null:i,s=e.isDisabled,o=void 0!==s&&s,c=e.isSelected,u=void 0!==c&&c,l=e.createURL,h={item:zh(this.props.cssClasses.item,a),link:this.props.cssClasses.link};o?h.item=zh(h.item,this.props.cssClasses.disabledItem):u&&(h.item=zh(h.item,this.props.cssClasses.selectedItem));var f=l&&!o?l(r):"#";return Xl.createElement(Hf,{ariaLabel:n,cssClasses:h,handleClick:this.handleClick,isDisabled:o,key:t+r+n,label:t,pageNumber:r,url:f})}},{key:"previousPageLink",value:function(e){var t=e.isFirstPage,n=e.currentPage,r=e.createURL;return this.pageLink({ariaLabel:"Previous",additionalClassName:this.props.cssClasses.previousPageItem,isDisabled:0===this.props.nbHits||t,label:this.props.templates.previous,pageNumber:n-1,createURL:r})}},{key:"nextPageLink",value:function(e){var t=e.isLastPage,n=e.currentPage,r=e.createURL;return this.pageLink({ariaLabel:"Next",additionalClassName:this.props.cssClasses.nextPageItem,isDisabled:0===this.props.nbHits||t,label:this.props.templates.next,pageNumber:n+1,createURL:r})}},{key:"firstPageLink",value:function(e){var t=e.isFirstPage,n=e.createURL;return this.pageLink({ariaLabel:"First",additionalClassName:this.props.cssClasses.firstPageItem,isDisabled:0===this.props.nbHits||t,label:this.props.templates.first,pageNumber:0,createURL:n})}},{key:"lastPageLink",value:function(e){var t=e.isLastPage,n=e.nbPages,r=e.createURL;return this.pageLink({ariaLabel:"Last",additionalClassName:this.props.cssClasses.lastPageItem,isDisabled:0===this.props.nbHits||t,label:this.props.templates.last,pageNumber:n-1,createURL:r})}},{key:"pages",value:function(e){var t=this,n=e.currentPage,r=e.pages,i=e.createURL;return r.map(function(e){return t.pageLink({ariaLabel:e+1,additionalClassName:t.props.cssClasses.pageItem,isSelected:e===n,label:e+1,pageNumber:e,createURL:i})})}},{key:"render",value:function(){return Xl.createElement("div",{className:zh(this.props.cssClasses.root,F({},this.props.cssClasses.noRefinementRoot,this.props.isFirstPage))},Xl.createElement("ul",{className:this.props.cssClasses.list},this.props.showFirst&&this.firstPageLink(this.props),this.props.showPrevious&&this.previousPageLink(this.props),this.pages(this.props),this.props.showNext&&this.nextPageLink(this.props),this.props.showLast&&this.lastPageLink(this.props)))}}]),a}();Uf.defaultProps={nbHits:0,currentPage:0,nbPages:0};var Bf=Lc({name:"pagination"}),Vf=Xc("Pagination"),Qf={previous:"",next:"",first:"«",last:"»"};var qf=function(e){function t(e){var n;return T(this,t),F(o(n=O(this,L(t).call(this,e))),"onChange",function(t){return function(e){n.setState(F({},t,e.currentTarget.value))}}),F(o(n),"onSubmit",function(e){e.preventDefault(),n.props.refine([n.state.min,n.state.max])}),n.state={min:e.values.min,max:e.values.max},n}return I(t,Gl),M(t,[{key:"componentWillReceiveProps",value:function(e){this.setState({min:e.values.min,max:e.values.max})}},{key:"render",value:function(){var e=this.state,t=e.min,n=e.max,r=this.props,i=r.min,a=r.max,s=r.step,o=r.cssClasses,c=r.templateProps,u=a<=i,l=Boolean(t||n),h=zh(o.root,F({},o.noRefinement,!l));return Xl.createElement("div",{className:h},Xl.createElement("form",{className:o.form,onSubmit:this.onSubmit},Xl.createElement("label",{className:o.label},Xl.createElement("input",{className:zh(o.input,o.inputMin),type:"number",min:i,max:a,step:s,value:t,onChange:this.onChange("min"),placeholder:i,disabled:u})),Xl.createElement(Kh,d({},c,{templateKey:"separatorText",rootTagName:"span",rootProps:{className:o.separator}})),Xl.createElement("label",{className:o.label},Xl.createElement("input",{className:zh(o.input,o.inputMax),type:"number",min:i,max:a,step:s,value:n,onChange:this.onChange("max"),placeholder:a,disabled:u})),Xl.createElement(Kh,d({},c,{templateKey:"submitText",rootTagName:"button",rootProps:{type:"submit",className:o.submit,disabled:u}}))))}}]),t}(),Wf=Lc({name:"range-input"}),zf=Xc("RangeInput");var Kf={reset:'\n<svg class="{{cssClasses.resetIcon}}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" width="10" height="10">\n <path d="M8.114 10L.944 2.83 0 1.885 1.886 0l.943.943L10 8.113l7.17-7.17.944-.943L20 1.886l-.943.943-7.17 7.17 7.17 7.17.943.944L18.114 20l-.943-.943-7.17-7.17-7.17 7.17-.944.943L0 18.114l.943-.943L8.113 10z"></path>\n</svg>\n ',submit:'\n<svg class="{{cssClasses.submitIcon}}" xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 40 40">\n <path d="M26.804 29.01c-2.832 2.34-6.465 3.746-10.426 3.746C7.333 32.756 0 25.424 0 16.378 0 7.333 7.333 0 16.378 0c9.046 0 16.378 7.333 16.378 16.378 0 3.96-1.406 7.594-3.746 10.426l10.534 10.534c.607.607.61 1.59-.004 2.202-.61.61-1.597.61-2.202.004L26.804 29.01zm-10.426.627c7.323 0 13.26-5.936 13.26-13.26 0-7.32-5.937-13.257-13.26-13.257C9.056 3.12 3.12 9.056 3.12 16.378c0 7.323 5.936 13.26 13.258 13.26z"></path>\n</svg>\n ',loadingIndicator:'\n<svg class="{{cssClasses.loadingIcon}}" width="16" height="16" viewBox="0 0 38 38" xmlns="http://www.w3.org/2000/svg" stroke="#444">\n <g fill="none" fillRule="evenodd">\n <g transform="translate(1 1)" strokeWidth="2">\n <circle strokeOpacity=".5" cx="18" cy="18" r="18" />\n <path d="M36 18c0-9.94-8.06-18-18-18">\n <animateTransform\n attributeName="transform"\n type="rotate"\n from="0 18 18"\n to="360 18 18"\n dur="1s"\n repeatCount="indefinite"\n />\n </path>\n </g>\n </g>\n</svg>\n '},Yf=Lc({name:"search-box"}),$f=Xc("SearchBox");var Gf=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.KEYS={DOWN:40,END:35,ESC:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,RIGHT:39,UP:38},t.PERCENT_EMPTY=0,t.PERCENT_FULL=100});t(Gf);Gf.KEYS,Gf.PERCENT_EMPTY,Gf.PERCENT_FULL;var Jf=n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default={getPosition:function(e,t,n){return(e-t)/(n-t)*100},getValue:function(e,t,n){var r=e/100;return 0===e?t:100===e?n:Math.round((n-t)*r+t)}}});t(Jf);function Zf(e){var t=e.style,n=e.children,r=Math.round(parseFloat(t.left)),i=[0,50,100].includes(r),a=Array.isArray(n)?n[0]:n,s=Math.round(100*parseInt(a,10))/100;return Xl.createElement("div",{style:H({},t,{marginLeft:100===r?"-2px":0}),className:zh("rheostat-marker","rheostat-marker-horizontal",{"rheostat-marker-large":i})},i&&Xl.createElement("div",{className:"rheostat-value"},s))}var Xf=t(n(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var v=o(Xl),a=o(Mu),y=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}}(Gf),s=o(Jf);function o(e){return e&&e.__esModule?e:{default:e}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function p(e){return["rheostat","vertical"===e.orientation?"rheostat-vertical":"rheostat-horizontal"].concat(e.className.split(" ")).join(" ")}var w=Object.prototype.hasOwnProperty,h=a.default.arrayOf(a.default.number),f=a.default.oneOfType([a.default.func,a.default.string]);function d(e){return Number(e.currentTarget.getAttribute("data-handle-key"))}function m(e){e.stopPropagation(),e.preventDefault()}var g=(l(R,v.default.Component),r(R,[{key:"render",value:function(){return v.default.createElement("button",n({},this.props,{type:"button"}))}}]),R);function R(){return c(this,R),u(this,(R.__proto__||Object.getPrototypeOf(R)).apply(this,arguments))}var S={algorithm:a.default.shape({getValue:a.default.func,getPosition:a.default.func}),children:a.default.node,className:a.default.string,disabled:a.default.bool,handle:f,max:a.default.number,min:a.default.number,onClick:a.default.func,onChange:a.default.func,onKeyPress:a.default.func,onSliderDragEnd:a.default.func,onSliderDragMove:a.default.func,onSliderDragStart:a.default.func,onValuesUpdated:a.default.func,orientation:a.default.oneOf(["horizontal","vertical"]),pitComponent:f,pitPoints:h,progressBar:f,snap:a.default.bool,snapPoints:h,values:h},P={algorithm:s.default,className:"",children:null,disabled:!1,handle:g,max:y.PERCENT_FULL,min:y.PERCENT_EMPTY,onClick:null,onChange:null,onKeyPress:null,onSliderDragEnd:null,onSliderDragMove:null,onSliderDragStart:null,onValuesUpdated:null,orientation:"horizontal",pitComponent:null,pitPoints:[],progressBar:"div",snap:!1,snapPoints:[],values:[y.PERCENT_EMPTY]},_=(l(N,v.default.Component),r(N,[{key:"componentWillReceiveProps",value:function(n){var e=this.props,t=e.className,r=e.disabled,i=e.min,a=e.max,s=e.orientation,o=this.state,c=o.values,u=o.slidingIndex,l=n.min!==i||n.max!==a,h=c.length!==n.values.length||c.some(function(e,t){return n.values[t]!==e}),f=n.className!==t||n.orientation!==s,d=n.disabled&&!r;f&&this.setState({className:p(n)}),(l||h)&&this.updateNewValues(n),d&&null!==u&&this.endSlide()}},{key:"getPublicState",value:function(){var e=this.props,t=e.min;return{max:e.max,min:t,values:this.state.values}}},{key:"getSliderBoundingBox",value:function(){var e=this.refs.rheostat,t=e.getDOMNode?e.getDOMNode():e,n=t.getBoundingClientRect();return{height:n.height||t.clientHeight,left:n.left,top:n.top,width:n.width||t.clientWidth}}},{key:"getProgressStyle",value:function(e){var t=this.state.handlePos,n=t[e];if(0===e)return"vertical"===this.props.orientation?{height:String(n)+"%",top:0}:{left:0,width:String(n)+"%"};var r=t[e-1],i=n-r;return"vertical"===this.props.orientation?{height:i+"%",top:String(r)+"%"}:{left:String(r)+"%",width:i+"%"}}},{key:"getMinValue",value:function(e){return this.state.values[e-1]?Math.max(this.props.min,this.state.values[e-1]):this.props.min}},{key:"getMaxValue",value:function(e){return this.state.values[e+1]?Math.min(this.props.max,this.state.values[e+1]):this.props.max}},{key:"getHandleDimensions",value:function(e,t){var n=e.currentTarget||null;return n?"vertical"===this.props.orientation?n.clientHeight/t.height*y.PERCENT_FULL/2:n.clientWidth/t.width*y.PERCENT_FULL/2:0}},{key:"getClosestSnapPoint",value:function(n){return this.props.snapPoints.length?this.props.snapPoints.reduce(function(e,t){return Math.abs(e-n)<Math.abs(t-n)?e:t}):n}},{key:"getSnapPosition",value:function(e){if(!this.props.snap)return e;var t=this.props,n=t.algorithm,r=t.max,i=t.min,a=n.getValue(e,i,r),s=this.getClosestSnapPoint(a);return n.getPosition(s,i,r)}},{key:"getNextPositionForKey",value:function(e,t){var n,r=this.state,i=r.handlePos,a=r.values,s=this.props,o=s.algorithm,c=s.max,u=s.min,l=s.snapPoints,h=this.props.snap,f=a[e],d=i[e],p=d,m=1;100<=c?d=Math.round(d):m=100/(c-u);var v=null;h&&(v=l.indexOf(this.getClosestSnapPoint(a[e])));var g=(b(n={},y.KEYS.LEFT,function(e){return-1*e}),b(n,y.KEYS.RIGHT,function(e){return 1*e}),b(n,y.KEYS.UP,function(e){return 1*e}),b(n,y.KEYS.DOWN,function(e){return-1*e}),b(n,y.KEYS.PAGE_DOWN,function(e){return 1<e?-e:-10*e}),b(n,y.KEYS.PAGE_UP,function(e){return 1<e?e:10*e}),n);if(w.call(g,t))d+=g[t](m),h&&(p<d?v<l.length-1&&(f=l[v+1]):0<v&&(f=l[v-1]));else if(t===y.KEYS.HOME)d=y.PERCENT_EMPTY,h&&(f=l[0]);else{if(t!==y.KEYS.END)return null;d=y.PERCENT_FULL,h&&(f=l[l.length-1])}return h?o.getPosition(f,u,c):d}},{key:"getNextState",value:function(n,e){var t=this,r=this.state.handlePos,i=this.props,a=i.max,s=i.min,o=this.validatePosition(n,e),c=r.map(function(e,t){return t===n?o:e});return{handlePos:c,values:c.map(function(e){return t.props.algorithm.getValue(e,s,a)})}}},{key:"getClosestHandle",value:function(r){var i=this.state.handlePos;return i.reduce(function(e,t,n){return Math.abs(i[n]-r)<Math.abs(i[e]-r)?n:e},0)}},{key:"setStartSlide",value:function(e,t,n){var r=this.getSliderBoundingBox();this.setState({handleDimensions:this.getHandleDimensions(e,r),mousePos:{x:t,y:n},sliderBox:r,slidingIndex:d(e)})}},{key:"startMouseSlide",value:function(e){this.setStartSlide(e,e.clientX,e.clientY),"function"==typeof document.addEventListener?(document.addEventListener("mousemove",this.handleMouseSlide,!1),document.addEventListener("mouseup",this.endSlide,!1)):(document.attachEvent("onmousemove",this.handleMouseSlide),document.attachEvent("onmouseup",this.endSlide)),m(e)}},{key:"startTouchSlide",value:function(e){if(!(1<e.changedTouches.length)){var t=e.changedTouches[0];this.setStartSlide(e,t.clientX,t.clientY),document.addEventListener("touchmove",this.handleTouchSlide,!1),document.addEventListener("touchend",this.endSlide,!1),this.props.onSliderDragStart&&this.props.onSliderDragStart(),m(e)}}},{key:"handleMouseSlide",value:function(e){null!==this.state.slidingIndex&&(this.handleSlide(e.clientX,e.clientY),m(e))}},{key:"handleTouchSlide",value:function(e){if(null!==this.state.slidingIndex)if(1<e.changedTouches.length)this.endSlide();else{var t=e.changedTouches[0];this.handleSlide(t.clientX,t.clientY),m(e)}}},{key:"handleSlide",value:function(e,t){var n=this.state,r=n.slidingIndex,i=n.sliderBox,a="vertical"===this.props.orientation?(t-i.top)/i.height*y.PERCENT_FULL:(e-i.left)/i.width*y.PERCENT_FULL;this.slideTo(r,a),this.canMove(r,a)&&(this.setState({x:e,y:t}),this.props.onSliderDragMove&&this.props.onSliderDragMove())}},{key:"endSlide",value:function(){var e=this,t=this.state.slidingIndex;if(this.setState({slidingIndex:null}),"function"==typeof document.removeEventListener?(document.removeEventListener("mouseup",this.endSlide,!1),document.removeEventListener("touchend",this.endSlide,!1),document.removeEventListener("touchmove",this.handleTouchSlide,!1),document.removeEventListener("mousemove",this.handleMouseSlide,!1)):(document.detachEvent("onmousemove",this.handleMouseSlide),document.detachEvent("onmouseup",this.endSlide)),this.props.onSliderDragEnd&&this.props.onSliderDragEnd(),this.props.snap){var n=this.getSnapPosition(this.state.handlePos[t]);this.slideTo(t,n,function(){return e.fireChangeEvent()})}else this.fireChangeEvent()}},{key:"handleClick",value:function(e){var t=this;if(!e.target.getAttribute("data-handle-key")){var n=this.getSliderBoundingBox(),r=("vertical"===this.props.orientation?(e.clientY-n.top)/n.height:(e.clientX-n.left)/n.width)*y.PERCENT_FULL,i=this.getClosestHandle(r),a=this.getSnapPosition(r);this.slideTo(i,a,function(){return t.fireChangeEvent()}),this.props.onClick&&this.props.onClick()}}},{key:"handleKeydown",value:function(e){var t=this,n=d(e);if(e.keyCode!==y.KEYS.ESC){var r=this.getNextPositionForKey(n,e.keyCode);null!==r&&(this.canMove(n,r)&&(this.slideTo(n,r,function(){return t.fireChangeEvent()}),this.props.onKeyPress&&this.props.onKeyPress()),m(e))}else e.currentTarget.blur()}},{key:"validatePosition",value:function(e,t){var n=this.state,r=n.handlePos,i=n.handleDimensions;return Math.max(Math.min(t,void 0!==r[e+1]?r[e+1]-i:y.PERCENT_FULL),void 0!==r[e-1]?r[e-1]+i:y.PERCENT_EMPTY)}},{key:"validateValues",value:function(e,t){var n=t||this.props,i=n.max,a=n.min;return e.map(function(e,t,n){var r=Math.max(Math.min(e,i),a);return n.length&&r<n[t-1]?n[t-1]:r})}},{key:"canMove",value:function(e,t){var n=this.state,r=n.handlePos,i=n.handleDimensions;return!(t<y.PERCENT_EMPTY||t>y.PERCENT_FULL||(void 0!==r[e+1]?r[e+1]-i:1/0)<t||t<(void 0!==r[e-1]?r[e-1]+i:-1/0))}},{key:"fireChangeEvent",value:function(){var e=this.props.onChange;e&&e(this.getPublicState())}},{key:"slideTo",value:function(e,t,n){var r=this,i=this.getNextState(e,t);this.setState(i,function(){var e=r.props.onValuesUpdated;e&&e(r.getPublicState()),n&&n()})}},{key:"updateNewValues",value:function(e){var t=this;if(null===this.state.slidingIndex){var n=e.max,r=e.min,i=e.values,a=this.props.algorithm,s=this.validateValues(i,e);this.setState({handlePos:s.map(function(e){return a.getPosition(e,r,n)}),values:s},function(){return t.fireChangeEvent()})}}},{key:"render",value:function(){var r=this,e=this.props,i=e.algorithm,t=e.children,a=e.disabled,s=e.handle,o=e.max,c=e.min,u=e.orientation,l=e.pitComponent,n=e.pitPoints,h=e.progressBar,f=this.state,d=f.className,p=f.handlePos,m=f.values;return v.default.createElement("div",{className:d,ref:"rheostat",onClick:!a&&this.handleClick,style:{position:"relative"}},v.default.createElement("div",{className:"rheostat-background"}),p.map(function(e,t){var n="vertical"===u?{top:String(e)+"%",position:"absolute"}:{left:String(e)+"%",position:"absolute"};return v.default.createElement(s,{"aria-valuemax":r.getMaxValue(t),"aria-valuemin":r.getMinValue(t),"aria-valuenow":m[t],"aria-disabled":a,"data-handle-key":t,className:"rheostat-handle",key:"handle-"+String(t),onClick:r.killEvent,onKeyDown:!a&&r.handleKeydown,onMouseDown:!a&&r.startMouseSlide,onTouchStart:!a&&r.startTouchSlide,role:"slider",style:n,tabIndex:0})}),p.map(function(e,t,n){return 0===t&&1<n.length?null:v.default.createElement(h,{className:"rheostat-progress",key:"progress-bar-"+String(t),style:r.getProgressStyle(t)})}),l&&n.map(function(e){var t=i.getPosition(e,c,o),n="vertical"===u?{top:String(t)+"%",position:"absolute"}:{left:String(t)+"%",position:"absolute"};return v.default.createElement(l,{key:"pit-"+String(e),style:n},e)}),t)}}]),N);function N(e){c(this,N);var t=u(this,(N.__proto__||Object.getPrototypeOf(N)).call(this,e)),n=t.props,r=n.algorithm,i=n.max,a=n.min,s=n.values;return t.state={className:p(t.props),handlePos:s.map(function(e){return r.getPosition(e,a,i)}),handleDimensions:0,mousePos:null,sliderBox:{},slidingIndex:null,values:s},t.getPublicState=t.getPublicState.bind(t),t.getSliderBoundingBox=t.getSliderBoundingBox.bind(t),t.getProgressStyle=t.getProgressStyle.bind(t),t.getMinValue=t.getMinValue.bind(t),t.getMaxValue=t.getMaxValue.bind(t),t.getHandleDimensions=t.getHandleDimensions.bind(t),t.getClosestSnapPoint=t.getClosestSnapPoint.bind(t),t.getSnapPosition=t.getSnapPosition.bind(t),t.getNextPositionForKey=t.getNextPositionForKey.bind(t),t.getNextState=t.getNextState.bind(t),t.handleClick=t.handleClick.bind(t),t.getClosestHandle=t.getClosestHandle.bind(t),t.setStartSlide=t.setStartSlide.bind(t),t.startMouseSlide=t.startMouseSlide.bind(t),t.startTouchSlide=t.startTouchSlide.bind(t),t.handleMouseSlide=t.handleMouseSlide.bind(t),t.handleTouchSlide=t.handleTouchSlide.bind(t),t.handleSlide=t.handleSlide.bind(t),t.endSlide=t.endSlide.bind(t),t.handleKeydown=t.handleKeydown.bind(t),t.validatePosition=t.validatePosition.bind(t),t.validateValues=t.validateValues.bind(t),t.canMove=t.canMove.bind(t),t.fireChangeEvent=t.fireChangeEvent.bind(t),t.slideTo=t.slideTo.bind(t),t.updateNewValues=t.updateNewValues.bind(t),t}_.propTypes=S,_.defaultProps=P,t.default=_})),ed=function(e){function a(){var e,n;T(this,a);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return F(o(n=O(this,(e=L(a)).call.apply(e,[this].concat(r)))),"handleChange",function(e){var t=e.values;n.isDisabled||n.props.refine(t)}),F(o(n),"createHandleComponent",function(i){return function(e){var t=Math.round(100*parseFloat(e["aria-valuenow"]))/100,n=i&&i.format?i.format(t):t,r=zh(e.className,{"rheostat-handle-lower":0===e["data-handle-key"],"rheostat-handle-upper":1===e["data-handle-key"]});return Xl.createElement("div",d({},e,{className:r}),i&&Xl.createElement("div",{className:"rheostat-tooltip"},n))}}),n}return I(a,Gl),M(a,[{key:"computeDefaultPitPoints",value:function(e){var t=e.min,n=e.max,r=(n-t)/34;return[t].concat(b(xc({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(b(xc({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 Xl.createElement("div",{className:zh(a.root,F({},a.disabledRoot,this.isDisabled))},Xl.createElement(Xf,{handle:this.createHandleComponent(t),onChange:this.handleChange,min:o,max:c,pitComponent:Zf,pitPoints:l,snap:!0,snapPoints:u,values:this.isDisabled?[o,c]:i,disabled:this.isDisabled}))}},{key:"isDisabled",get:function(){return this.props.min>=this.props.max}}]),a}(),td=Lc({name:"range-slider"}),nd=Xc("RangeSlider");var rd=Lc({name:"sort-by"}),id=Xc("SortBy");var ad={item:'{{#count}}<a class="{{cssClasses.link}}" aria-label="{{value}} & up" href="{{href}}">{{/count}}{{^count}}<div class="{{cssClasses.link}}" aria-label="{{value}} & up" disabled>{{/count}}\n {{#stars}}<svg class="{{cssClasses.starIcon}} {{#.}}{{cssClasses.fullStarIcon}}{{/.}}{{^.}}{{cssClasses.emptyStarIcon}}{{/.}}" aria-hidden="true" width="24" height="24">\n {{#.}}<use xlink:href="#ais-RatingMenu-starSymbol"></use>{{/.}}{{^.}}<use xlink:href="#ais-RatingMenu-starEmptySymbol"></use>{{/.}}\n </svg>{{/stars}}\n <span class="{{cssClasses.label}}">& Up</span>\n {{#count}}<span class="{{cssClasses.count}}">{{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}}</span>{{/count}}\n{{#count}}</a>{{/count}}{{^count}}</div>{{/count}}'},sd=Lc({name:"rating-menu"}),od=Xc("RatingMenu"),cd=Xl.createElement("path",{d:"M12 .288l2.833 8.718h9.167l-7.417 5.389 2.833 8.718-7.416-5.388-7.417 5.388 2.833-8.718-7.416-5.389h9.167z"}),ud=Xl.createElement("path",{d:"M12 6.76l1.379 4.246h4.465l-3.612 2.625 1.379 4.246-3.611-2.625-3.612 2.625 1.379-4.246-3.612-2.625h4.465l1.38-4.246zm0-6.472l-2.833 8.718h-9.167l7.416 5.389-2.833 8.718 7.417-5.388 7.416 5.388-2.833-8.718 7.417-5.389h-9.167l-2.833-8.718z"});function ld(e){var t=e.nbHits,n=e.hitsPerPage,r=e.nbPages,i=e.page,a=e.processingTimeMS,s=e.query,o=e.templateProps,c=e.cssClasses;return Xl.createElement("div",{className:c.root},Xl.createElement(Kh,d({},o,{templateKey:"text",rootTagName:"span",rootProps:{className:c.text},data:{hasManyResults:1<t,hasNoResults:0===t,hasOneResult:1===t,hitsPerPage:n,nbHits:t,nbPages:r,page:i,processingTimeMS:a,query:s,cssClasses:c}})))}var hd={text:"{{#hasNoResults}}No results{{/hasNoResults}}\n {{#hasOneResult}}1 result{{/hasOneResult}}\n {{#hasManyResults}}{{#helpers.formatNumber}}{{nbHits}}{{/helpers.formatNumber}} results{{/hasManyResults}} found in {{processingTimeMS}}ms"},fd=Lc({name:"stats"}),dd=Xc("Stats");function pd(e){var t=e.currentRefinement,n=e.refine,r=e.cssClasses,i=e.templateProps;return Xl.createElement("div",{className:r.root},Xl.createElement("label",{className:r.label},Xl.createElement("input",{className:r.checkbox,type:"checkbox",checked:t.isRefined,onChange:function(e){return n(!e.target.checked)}}),Xl.createElement(Kh,d({},i,{rootTagName:"span",rootProps:{className:r.labelText},templateKey:"labelText",data:t}))))}var md={labelText:"{{name}}"},vd=Lc({name:"toggle-refinement"}),gd=Xc("ToggleRefinement");var yd=Lc({name:"analytics"});function bd(e){var t=e.createURL,n=e.items,r=e.refine,i=e.cssClasses,a=e.templateProps;return Xl.createElement("div",{className:zh(i.root,F({},i.noRefinementRoot,0===n.length))},Xl.createElement("ul",{className:i.list},Xl.createElement("li",{className:zh(i.item,F({},i.selectedItem,0===n.length))},Xl.createElement(Kh,d({},a,{templateKey:"home",rootTagName:"a",rootProps:{className:i.link,href:t(null),onClick:function(e){e.preventDefault(),r(null)}}}))),n.map(function(e){var a=e.cssClasses,s=e.createURL,o=e.refine,c=e.templateProps;return function(t,e,n){var r=e===n.length-1,i=r?t.label:Xl.createElement("a",{className:a.link,href:s(t.value),onClick:function(e){e.preventDefault(),o(t.value)}},t.label);return Xl.createElement("li",{key:t.label+e,className:zh(a.item,F({},a.selectedItem,r))},Xl.createElement(Kh,d({},c,{templateKey:"separator",rootTagName:"span",rootProps:{className:a.separator,"aria-hidden":!0}})),i)}}({cssClasses:i,createURL:t,refine:r,templateProps:a}))))}var wd={home:"Home",separator:">"},Rd=Lc({name:"breadcrumb"}),Sd=Xc("Breadcrumb");var Pd=function(e){function a(){var e,n;T(this,a);for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return F(o(n=O(this,(e=L(a)).call.apply(e,[this].concat(r)))),"handleSelectChange",function(e){var t=e.target.value;n.props.refine(t)}),n}return I(a,Gl),M(a,[{key:"render",value:function(){var e=this.props,t=e.cssClasses,n=e.templateProps,r=e.items,i=(mc(r,function(e){return e.isRefined})||{value:""}).value,a=zh(t.root,F({},t.noRefinementRoot,0===r.length));return Xl.createElement("div",{className:a},Xl.createElement("select",{className:t.select,value:i,onChange:this.handleSelectChange},Xl.createElement(Kh,d({},n,{templateKey:"defaultOption",rootTagName:"option",rootProps:{value:"",className:t.option}})),r.map(function(e){return Xl.createElement(Kh,d({},n,{templateKey:"item",rootTagName:"option",rootProps:{value:e.value,className:t.option},key:e.value,data:e}))})))}}]),a}(),_d={item:"{{label}} ({{#helpers.formatNumber}}{{count}}{{/helpers.formatNumber}})",defaultOption:"See all"},Nd=Lc({name:"menu-select"}),xd=Xc("MenuSelect");function Cd(e){var t=e.url,n=e.theme,r=e.cssClasses;return Xl.createElement("div",{className:r.root},Xl.createElement("a",{href:t,target:"_blank",className:r.link,"aria-label":"Search by Algolia",rel:"noopener noreferrer"},Xl.createElement("svg",{height:"1.2em",className:r.logo,viewBox:"0 0 168 24",style:{width:"auto"}},Xl.createElement("path",{fill:"dark"===n?"#FFF":"#5D6494",d:"M6.97 6.68V8.3a4.47 4.47 0 0 0-2.42-.67 2.2 2.2 0 0 0-1.38.4c-.34.26-.5.6-.5 1.02 0 .43.16.77.49 1.03.33.25.83.53 1.51.83a7.04 7.04 0 0 1 1.9 1.08c.34.24.58.54.73.89.15.34.23.74.23 1.18 0 .95-.33 1.7-1 2.24a4 4 0 0 1-2.6.81 5.71 5.71 0 0 1-2.94-.68v-1.71c.84.63 1.81.94 2.92.94.58 0 1.05-.14 1.39-.4.34-.28.5-.65.5-1.13 0-.29-.1-.55-.3-.8a2.2 2.2 0 0 0-.65-.53 23.03 23.03 0 0 0-1.64-.78 13.67 13.67 0 0 1-1.11-.64c-.12-.1-.28-.22-.46-.4a1.72 1.72 0 0 1-.39-.5 4.46 4.46 0 0 1-.22-.6c-.07-.23-.1-.48-.1-.75 0-.91.33-1.63 1-2.17a4 4 0 0 1 2.57-.8c.97 0 1.8.18 2.47.52zm7.47 5.7v-.3a2.26 2.26 0 0 0-.5-1.44c-.3-.35-.74-.53-1.32-.53-.53 0-.99.2-1.37.58-.38.39-.62.95-.72 1.68h3.91zm1 2.79v1.4c-.6.34-1.38.51-2.36.51a4.02 4.02 0 0 1-3-1.13 4.04 4.04 0 0 1-1.11-2.97c0-1.3.34-2.32 1.02-3.06a3.38 3.38 0 0 1 2.6-1.1c1.03 0 1.85.32 2.46.96.6.64.9 1.57.9 2.78 0 .33-.03.68-.09 1.04h-5.31c.1.7.4 1.24.89 1.61.49.38 1.1.56 1.85.56.86 0 1.58-.2 2.15-.6zm6.61-1.78h-1.21c-.6 0-1.05.12-1.35.36-.3.23-.46.53-.46.89 0 .37.12.66.36.88.23.2.57.32 1.02.32.5 0 .9-.15 1.2-.43.3-.28.44-.65.44-1.1v-.92zm-4.07-2.55V9.33a4.96 4.96 0 0 1 2.5-.55c2.1 0 3.17 1.03 3.17 3.08V17H22.1v-.96c-.42.68-1.15 1.02-2.19 1.02-.76 0-1.38-.22-1.84-.66-.46-.44-.7-1-.7-1.68 0-.78.3-1.38.88-1.81.59-.43 1.4-.65 2.46-.65h1.34v-.46c0-.55-.13-.97-.4-1.25-.26-.29-.7-.43-1.32-.43-.86 0-1.65.24-2.35.72zm9.34-1.93v1.42c.39-1 1.1-1.5 2.12-1.5.15 0 .31.02.5.05v1.53c-.23-.1-.48-.14-.76-.14-.54 0-.99.24-1.34.71a2.8 2.8 0 0 0-.52 1.71V17h-1.57V8.91h1.57zm5 4.09a3 3 0 0 0 .76 2.01c.47.53 1.14.8 2 .8.64 0 1.24-.18 1.8-.53v1.4c-.53.32-1.2.48-2 .48a3.98 3.98 0 0 1-4.17-4.18c0-1.16.38-2.15 1.14-2.98a4 4 0 0 1 3.1-1.23c.7 0 1.34.15 1.92.44v1.44a3.24 3.24 0 0 0-1.77-.5A2.65 2.65 0 0 0 32.33 13zm7.92-7.28v4.58c.46-1 1.3-1.5 2.5-1.5.8 0 1.42.24 1.9.73.48.5.72 1.17.72 2.05V17H43.8v-5.1c0-.56-.14-.99-.43-1.29-.28-.3-.65-.45-1.1-.45-.54 0-1 .2-1.42.6-.4.4-.61 1.02-.61 1.85V17h-1.56V5.72h1.56zM55.2 15.74c.6 0 1.1-.25 1.5-.76.4-.5.6-1.16.6-1.95 0-.92-.2-1.62-.6-2.12-.4-.5-.92-.74-1.55-.74-.56 0-1.05.22-1.5.67-.44.45-.66 1.13-.66 2.06 0 .96.22 1.67.64 2.14.43.47.95.7 1.57.7zM53 5.72v4.42a2.74 2.74 0 0 1 2.43-1.34c1.03 0 1.86.38 2.51 1.15.65.76.97 1.78.97 3.05 0 1.13-.3 2.1-.92 2.9-.62.81-1.47 1.21-2.54 1.21s-1.9-.45-2.46-1.34V17h-1.58V5.72H53zm9.9 11.1l-3.22-7.9h1.74l1 2.62 1.26 3.42c.1-.32.48-1.46 1.15-3.42l.91-2.63h1.66l-2.92 7.87c-.78 2.07-1.96 3.1-3.56 3.1-.28 0-.53-.02-.73-.07v-1.34c.17.04.35.06.54.06 1.03 0 1.76-.57 2.17-1.7z"}),Fd,Ed,Xl.createElement("path",{fill:"dark"===n?"#FFF":"#5468FF",d:"M120.92 18.8c-4.38.02-4.38-3.54-4.38-4.1V1.36l2.67-.42v13.25c0 .32 0 2.36 1.71 2.37v2.24zm-10.84-2.18c.82 0 1.43-.04 1.85-.12v-2.72a5.48 5.48 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.11-.44.28-.58.49a.93.93 0 0 0-.22.65c0 .63.22 1 .61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.62.11 2.23.33.6.22 1.09.53 1.44.92.36.4.61.92.76 1.48.16.56.23 1.17.23 1.85v6.87c-.4.1-1.03.2-1.86.32-.84.12-1.78.18-2.82.18-.69 0-1.32-.07-1.9-.2a4 4 0 0 1-1.46-.63c-.4-.3-.72-.67-.96-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.39-1.53.26-.45.6-.82 1.04-1.1.45-.3.95-.5 1.54-.62a8.8 8.8 0 0 1 3.79.05v-.44c0-.3-.04-.6-.11-.87a1.78 1.78 0 0 0-1.1-1.22c-.31-.12-.7-.2-1.15-.2a9.75 9.75 0 0 0-2.95.46l-.33-2.19c.34-.12.84-.23 1.48-.35.65-.12 1.34-.18 2.08-.18zm52.84 9.63c.82 0 1.43-.05 1.85-.13V13.7a5.42 5.42 0 0 0-1.57-.2c-.3 0-.6.02-.9.07-.3.04-.57.12-.81.24-.24.12-.44.28-.58.5a.93.93 0 0 0-.22.65c0 .63.22.99.61 1.23.4.24.94.36 1.62.36zm-.23-9.7c.88 0 1.63.11 2.23.33.6.22 1.1.53 1.45.92.35.39.6.92.76 1.48.15.56.23 1.18.23 1.85v6.88c-.41.08-1.03.19-1.87.31-.83.12-1.77.18-2.81.18-.7 0-1.33-.06-1.9-.2a4 4 0 0 1-1.47-.63c-.4-.3-.72-.67-.95-1.13a4.3 4.3 0 0 1-.34-1.8c0-.66.13-1.08.38-1.53.26-.45.61-.82 1.05-1.1.44-.3.95-.5 1.53-.62a8.8 8.8 0 0 1 3.8.05v-.43c0-.31-.04-.6-.12-.88-.07-.28-.2-.52-.38-.73a1.78 1.78 0 0 0-.73-.5c-.3-.1-.68-.2-1.14-.2a9.85 9.85 0 0 0-2.95.47l-.32-2.19a11.63 11.63 0 0 1 3.55-.53zm-8.03-1.27a1.62 1.62 0 0 0 0-3.24 1.62 1.62 0 1 0 0 3.24zm1.35 13.22h-2.7V7.27l2.7-.42V18.8zm-4.72 0c-4.38.02-4.38-3.54-4.38-4.1l-.01-13.34 2.67-.42v13.25c0 .32 0 2.36 1.72 2.37v2.24zm-8.7-5.9a4.7 4.7 0 0 0-.74-2.79 2.4 2.4 0 0 0-2.07-1 2.4 2.4 0 0 0-2.06 1 4.7 4.7 0 0 0-.74 2.8c0 1.16.25 1.94.74 2.62a2.4 2.4 0 0 0 2.07 1.02c.88 0 1.57-.34 2.07-1.02.49-.68.73-1.46.73-2.63zm2.74 0a6.46 6.46 0 0 1-1.52 4.23c-.49.53-1.07.94-1.76 1.22-.68.29-1.73.45-2.26.45-.53 0-1.58-.15-2.25-.45a5.1 5.1 0 0 1-2.88-3.13 7.3 7.3 0 0 1-.01-4.84 5.13 5.13 0 0 1 2.9-3.1 5.67 5.67 0 0 1 2.22-.42c.81 0 1.56.14 2.24.42.69.29 1.28.69 1.75 1.22.49.52.87 1.15 1.14 1.89a7 7 0 0 1 .43 2.5zm-20.14 0c0 1.11.25 2.36.74 2.88.5.52 1.13.78 1.91.78a4.07 4.07 0 0 0 2.12-.6V9.33c-.19-.04-.99-.2-1.76-.23a2.67 2.67 0 0 0-2.23 1 4.73 4.73 0 0 0-.78 2.8zm7.44 5.27c0 1.82-.46 3.16-1.4 4-.94.85-2.37 1.27-4.3 1.27-.7 0-2.17-.13-3.34-.4l.43-2.11c.98.2 2.27.26 2.95.26 1.08 0 1.84-.22 2.3-.66.46-.43.68-1.08.68-1.94v-.44a5.2 5.2 0 0 1-2.54.6 5.6 5.6 0 0 1-2.01-.36 4.2 4.2 0 0 1-2.58-2.71 9.88 9.88 0 0 1 .02-5.35 4.92 4.92 0 0 1 2.93-2.96 6.6 6.6 0 0 1 2.43-.46 19.64 19.64 0 0 1 4.43.66v10.6z"}))))}var Fd=Xl.createElement("path",{fill:"#5468FF",d:"M78.99.94h16.6a2.97 2.97 0 0 1 2.96 2.96v16.6a2.97 2.97 0 0 1-2.97 2.96h-16.6a2.97 2.97 0 0 1-2.96-2.96V3.9A2.96 2.96 0 0 1 79 .94"}),Ed=Xl.createElement("path",{fill:"#FFF",d:"M89.63 5.97v-.78a.98.98 0 0 0-.98-.97h-2.28a.98.98 0 0 0-.97.97V6c0 .09.08.15.17.13a7.13 7.13 0 0 1 3.9-.02c.08.02.16-.04.16-.13m-6.25 1L83 6.6a.98.98 0 0 0-1.38 0l-.46.46a.97.97 0 0 0 0 1.38l.38.39c.06.06.15.04.2-.02a7.49 7.49 0 0 1 1.63-1.62c.07-.04.08-.14.02-.2m4.16 2.45v3.34c0 .1.1.17.2.12l2.97-1.54c.06-.03.08-.12.05-.18a3.7 3.7 0 0 0-3.08-1.87c-.07 0-.14.06-.14.13m0 8.05a4.49 4.49 0 1 1 0-8.98 4.49 4.49 0 0 1 0 8.98m0-10.85a6.37 6.37 0 1 0 0 12.74 6.37 6.37 0 0 0 0-12.74"}),jd=Xc("PoweredBy"),Td=Lc({name:"powered-by"});var Md=function(e){function a(){var e,t;T(this,a);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return F(o(t=O(this,(e=L(a)).call.apply(e,[this].concat(r)))),"state",{collapsed:t.props.collapsed,controlled:!1}),t}return I(a,Gl),M(a,[{key:"componentDidMount",value:function(){this.bodyRef.appendChild(this.props.bodyElement)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.cssClasses,i=n.hidden,a=n.collapsible,s=n.templateProps,o=n.data;return Xl.createElement("div",{className:zh(r.root,(e={},F(e,r.noRefinementRoot,i),F(e,r.collapsibleRoot,a),F(e,r.collapsedRoot,this.state.collapsed),e)),hidden:i},s.templates.header&&Xl.createElement("div",{className:r.header},Xl.createElement(Kh,d({},s,{templateKey:"header",rootTagName:"span",data:o})),a&&Xl.createElement("button",{className:r.collapseButton,"aria-expanded":!this.state.collapsed,onClick:function(e){e.preventDefault(),t.setState(function(e){return{controlled:!0,collapsed:!e.collapsed}})}},Xl.createElement(Kh,d({},s,{templateKey:"collapseButtonText",rootTagName:"span",data:{collapsed:this.state.collapsed}})))),Xl.createElement("div",{className:r.body,ref:function(e){return t.bodyRef=e}}),s.templates.footer&&Xl.createElement(Kh,d({},s,{templateKey:"footer",rootProps:{className:r.footer},data:o})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return t.controlled||e.collapsed===t.collapsed?null:{collapsed:e.collapsed}}}]),a}(),Id=Lc({name:"panel"}),Ld=Xc("Panel");function kd(e){var t=e.cssClasses,n=e.isBrowserSupported,r=e.isListening,i=e.toggleListening,a=e.voiceListeningState,s=e.templates,o=a.status,c=a.transcript,u=a.isSpeechFinal,l=a.errorCode;return Xl.createElement("div",{className:t.root},Xl.createElement(Kh,{templateKey:"buttonText",rootTagName:"button",rootProps:{className:t.button,type:"button",title:"Search by voice".concat(n?"":" (not supported on this browser)"),onClick:function(e){e.currentTarget.blur(),i()},disabled:!n},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:s}),Xl.createElement(Kh,{templateKey:"status",rootProps:{className:t.status},data:{status:o,errorCode:l,isListening:r,transcript:c,isSpeechFinal:u,isBrowserSupported:n},templates:s}))}function Od(e){var t=e.isBrowserSupported,n=e.isListening,r=e.toggleListening,i=e.voiceListeningState,a=e.widgetParams,s=a.container,o=a.cssClasses,c=a.templates;_l(Xl.createElement(kd,{cssClasses:o,templates:c,isBrowserSupported:t,isListening:n,toggleListening:r,voiceListeningState:i}),s)}function Ad(e){var t=e.cssClasses,n=e.templates,r=e.items;return Xl.createElement(Kh,{templateKey:"default",templates:n,rootProps:{className:t.root},data:{items:r}})}function Dd(e){var t=e.items,n=e.widgetParams,r=n.container,i=n.cssClasses,a=n.templates;_l(Xl.createElement(Ad,{cssClasses:i,templates:a,items:t}),r)}function Hd(e){return new ou(e)}var Ud={buttonText:function(e){var t=e.status,n=e.errorCode,r=e.isListening;return'<svg\n xmlns="http://www.w3.org/2000/svg"\n width="16"\n height="16"\n viewBox="0 0 24 24"\n fill="none"\n stroke="currentColor"\n stroke-width="2"\n stroke-linecap="round"\n stroke-linejoin="round"\n >\n '.concat(function(e,t,n){return"error"===e&&"not-allowed"===t?'<line x1="1" y1="1" x2="23" y2="23"></line>\n <path d="M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"></path>\n <path d="M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"></path>\n <line x1="12" y1="19" x2="12" y2="23"></line>\n <line x1="8" y1="23" x2="16" y2="23"></line>':'<path\n d="M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z"\n fill="'.concat(n?"currentColor":"none",'">\n </path>\n <path d="M19 10v2a7 7 0 0 1-14 0v-2"></path>\n <line x1="12" y1="19" x2="12" y2="23"></line>\n <line x1="8" y1="23" x2="16" y2="23"></line>')}(t,n,r),"\n </svg>")},status:"<p>{{transcript}}</p>"},Bd=Lc({name:"voice-search"}),Vd=Xc("VoiceSearch"),Qd=Lc({name:"query-rule-custom-data"}),qd=Xc("QueryRuleCustomData"),Wd=Lc({name:"query-rule-context"}),zd=Object.freeze({clearRefinements:function(e){var t=e.container,n=e.templates,r=void 0===n?$h:n,i=e.includedAttributes,a=e.excludedAttributes,s=e.transformItems,o=e.cssClasses,c=void 0===o?{}:o;if(!t)throw new Error(Gh("The `container` option is required."));var u=oc(t),l={root:zh(Jh(),c.root),button:zh(Jh({descendantName:"button"}),c.button),disabledButton:zh(Jh({descendantName:"button",modifierName:"disabled"}),c.disabledButton)};return lu(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.hasRefinements,i=e.instantSearchInstance;t?o.templateProps=lc({defaultTemplates:$h,templatesConfig:i.templatesConfig,templates:c}):_l(Xl.createElement(Yh,{refine:n,cssClasses:s,hasRefinements:r,templateProps:o.templateProps}),a)}}({containerNode:u,cssClasses:l,renderState:{},templates:r}),function(){return Fl(u)})({includedAttributes:i,excludedAttributes:a,transformItems:s})},configure:function(e){return Ah()({searchParameters:e})},currentRefinements:function(e){var t=e.container,n=e.includedAttributes,r=e.excludedAttributes,i=e.cssClasses,a=void 0===i?{}:i,s=e.transformItems;if(!t)throw new Error(Xh("The `container` option is required."));var o=oc(t),c={root:zh(ef(),a.root),list:zh(ef({descendantName:"list"}),a.list),item:zh(ef({descendantName:"item"}),a.item),label:zh(ef({descendantName:"label"}),a.label),category:zh(ef({descendantName:"category"}),a.category),categoryLabel:zh(ef({descendantName:"categoryLabel"}),a.categoryLabel),delete:zh(ef({descendantName:"delete"}),a.delete)};return du(function(e){var r=e.containerNode,i=e.cssClasses;return function(e,t){var n=e.items;t||_l(Xl.createElement(Zh,{cssClasses:i,items:n}),r)}}({containerNode:o,cssClasses:c}),function(){return Fl(o)})({includedAttributes:n,excludedAttributes:r,transformItems:s})},geoSearch:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.initialZoom,n=void 0===t?1:t,r=e.initialPosition,i=void 0===r?{lat:0,lng:0}:r,a=e.templates,s=void 0===a?{}:a,o=e.cssClasses,c=void 0===o?{}:o,u=e.builtInMarker,l=void 0===u?{}:u,h=e.customHTMLMarker,f=e.enableRefine,d=void 0===f||f,p=e.enableClearMapRefinement,m=void 0===p||p,v=e.enableRefineControl,g=void 0===v||v,y=e.container,b=e.googleReference,w=k(e,["initialZoom","initialPosition","templates","cssClasses","builtInMarker","customHTMLMarker","enableRefine","enableClearMapRefinement","enableRefineControl","container","googleReference"]),R={createOptions:Pc,events:{}},S={createOptions:Pc,events:{}};if(!y)throw new Error(uf("The `container` option is required."));if(!b)throw new Error(uf("The `googleReference` option is required."));var P=oc(y),_={root:zh(lf(),c.root),tree:lf({descendantName:"tree"}),map:zh(lf({descendantName:"map"}),c.map),control:zh(lf({descendantName:"control"}),c.control),label:zh(lf({descendantName:"label"}),c.label),selectedLabel:zh(lf({descendantName:"label",modifierName:"selected"}),c.selectedLabel),input:zh(lf({descendantName:"input"}),c.input),redo:zh(lf({descendantName:"redo"}),c.redo),disabledRedo:zh(lf({descendantName:"redo",modifierName:"disabled"}),c.disabledRedo),reset:zh(lf({descendantName:"reset"}),c.reset)},N=H({},cf,{},s),x=H({},R,{},l),C=(Boolean(h)||Boolean(s.HTMLMarker))&&H({},S,{},h),F=function(l){return function(e){function u(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 T(this,u),(t=O(this,L(u).call(this))).__id=n,t.anchor=c,t.listeners={},t.latLng=new l.maps.LatLng(r),t.element=document.createElement("div"),t.element.className=s,t.element.style.position="absolute",t.element.innerHTML=a,t.setMap(i),t}return I(u,l.maps.OverlayView),M(u,[{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=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,this.element.addEventListener(e,t)}},{key:"getPosition",value:function(){return this.latLng}}]),u}()}(b),E=C?function(e){var t=e.item,n=k(e,["item"]);return new F(H({},C.createOptions(t),{},n,{__id:t.objectID,position:t._geoloc,className:zh(lf({descendantName:"marker"})),template:pc({templateKey:"HTMLMarker",templates:N,data:t})}))}:function(e){var t=e.item,n=k(e,["item"]);return new b.maps.Marker(H({},x.createOptions(t),{},n,{__id:t.objectID,position:t._geoloc}))},j=C||x;return Mh(of,function(){for(Fl(P.querySelector(".".concat(_.tree)));P.firstChild;)P.removeChild(P.firstChild)})(H({},w,{renderState:{},container:P,googleReference:b,initialZoom:n,initialPosition:i,templates:N,cssClasses:_,createMarker:E,markerOptions:j,enableRefine:d,enableClearMapRefinement:m,enableRefineControl:g}))},hierarchicalMenu:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attributes,r=e.separator,i=e.rootPath,a=e.showParentLevel,s=e.limit,o=e.showMore,c=void 0!==o&&o,u=e.showMoreLimit,l=e.sortBy,h=e.transformItems,f=e.templates,d=void 0===f?pf:f,p=e.cssClasses,m=void 0===p?{}:p;if(!t)throw new Error(mf("The `container` option is required."));var v=oc(t);return bu(function(e){var u=e.cssClasses,l=e.containerNode,h=e.showMore,f=e.templates,d=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?d.templateProps=lc({defaultTemplates:pf,templatesConfig:a.templatesConfig,templates:f}):_l(Xl.createElement(df,{createURL:n,cssClasses:u,facetValues:r,templateProps:d.templateProps,toggleRefinement:i,showMore:h,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}({cssClasses:{root:zh(vf(),m.root),noRefinementRoot:zh(vf({modifierName:"noRefinement"}),m.noRefinementRoot),list:zh(vf({descendantName:"list"}),m.list),childList:zh(vf({descendantName:"list",modifierName:"child"}),m.childList),item:zh(vf({descendantName:"item"}),m.item),selectedItem:zh(vf({descendantName:"item",modifierName:"selected"}),m.selectedItem),parentItem:zh(vf({descendantName:"item",modifierName:"parent"}),m.parentItem),link:zh(vf({descendantName:"link"}),m.link),label:zh(vf({descendantName:"label"}),m.label),count:zh(vf({descendantName:"count"}),m.count),showMore:zh(vf({descendantName:"showMore"}),m.showMore),disabledShowMore:zh(vf({descendantName:"showMore",modifierName:"disabled"}),m.disabledShowMore)},containerNode:v,templates:d,showMore:c,renderState:{}}),function(){return Fl(v)})({attributes:n,separator:r,rootPath:i,showParentLevel:a,limit:s,showMore:c,showMoreLimit:u,sortBy:l,transformItems:h})},hits:function(e){var t=e.container,n=e.escapeHTML,r=e.transformItems,i=e.templates,a=void 0===i?yf:i,s=e.cssClasses,o=void 0===s?{}:s;if(!t)throw new Error(bf("The `container` option is required."));kc(void 0===a.allItems,"The template `allItems` does not exist since InstantSearch.js 3.\n\nYou may want to migrate using `connectHits`: ".concat(Ic({name:"hits",connector:!0}),"."));var c=oc(t),u={root:zh(wf(),o.root),emptyRoot:zh(wf({modifierName:"empty"}),o.emptyRoot),list:zh(wf({descendantName:"list"}),o.list),item:zh(wf({descendantName:"item"}),o.item)},l=function(e){var s=e.renderState,o=e.cssClasses,c=e.containerNode,u=e.templates;return function(e,t){var n=e.hits,r=e.results,i=e.instantSearchInstance,a=e.insights;t?s.templateProps=lc({defaultTemplates:yf,templatesConfig:i.templatesConfig,templates:u}):_l(Xl.createElement(Rf,{cssClasses:o,hits:n,results:r,templateProps:s.templateProps,insights:a}),c)}}({containerNode:c,cssClasses:u,renderState:{},templates:a});return _u(Ru)(l,function(){return Fl(c)})({escapeHTML:n,transformItems:r})},hitsPerPage:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.items,r=e.cssClasses,i=void 0===r?{}:r,a=e.transformItems;if(!t)throw new Error(Pf("The `container` option is required."));var s=oc(t),o={root:zh(_f(),i.root),select:zh(_f({descendantName:"select"}),i.select),option:zh(_f({descendantName:"option"}),i.option)};return nh(function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.items,r=e.refine;if(!t){var i=(mc(n,function(e){return e.isRefined})||{}).value;_l(Xl.createElement("div",{className:s.root},Xl.createElement(Sf,{cssClasses:s,currentValue:i,options:n,setValue:r})),a)}}}({containerNode:s,cssClasses:o}),function(){return Fl(s)})({items:n,transformItems:a})},infiniteHits:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.escapeHTML,r=e.transformItems,i=e.templates,a=void 0===i?Nf:i,s=e.cssClasses,o=void 0===s?{}:s,c=e.showPrevious;if(!t)throw new Error(xf("The `container` option is required."));kc(void 0===a.allItems,"The template `allItems` does not exist since InstantSearch.js 3.\n\n You may want to migrate using `connectInfiniteHits`: ".concat(Ic({name:"infinite-hits",connector:!0}),"."));var u=oc(t),l={root:zh(Cf(),o.root),emptyRoot:zh(Cf({modifierName:"empty"}),o.emptyRoot),item:zh(Cf({descendantName:"item"}),o.item),list:zh(Cf({descendantName:"list"}),o.list),loadPrevious:zh(Cf({descendantName:"loadPrevious"}),o.loadPrevious),disabledLoadPrevious:zh(Cf({descendantName:"loadPrevious",modifierName:"disabled"}),o.disabledLoadPrevious),loadMore:zh(Cf({descendantName:"loadMore"}),o.loadMore),disabledLoadMore:zh(Cf({descendantName:"loadMore",modifierName:"disabled"}),o.disabledLoadMore)},h=function(e){var l=e.cssClasses,h=e.containerNode,f=e.renderState,d=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;t?f.templateProps=lc({defaultTemplates:Nf,templatesConfig:c.templatesConfig,templates:d}):_l(Xl.createElement(Ff,{cssClasses:l,hits:n,results:r,hasShowPrevious:p,showPrevious:a,showMore:i,templateProps:f.templateProps,isFirstPage:s,isLastPage:o,insights:u}),h)}}({containerNode:u,cssClasses:l,templates:a,showPrevious:c,renderState:{}});return _u(rh)(h,function(){return Fl(u)})({escapeHTML:n,transformItems:r,showPrevious:c})},menu:function(e){var t=e.container,n=e.attribute,r=e.sortBy,i=e.limit,a=e.showMore,s=e.showMoreLimit,o=e.cssClasses,c=void 0===o?{}:o,u=e.templates,l=void 0===u?Ef:u,h=e.transformItems;if(!t)throw new Error(jf("The `container` option is required."));var f=oc(t),d={root:zh(Tf(),c.root),noRefinementRoot:zh(Tf({modifierName:"noRefinement"}),c.noRefinementRoot),list:zh(Tf({descendantName:"list"}),c.list),item:zh(Tf({descendantName:"item"}),c.item),selectedItem:zh(Tf({descendantName:"item",modifierName:"selected"}),c.selectedItem),link:zh(Tf({descendantName:"link"}),c.link),label:zh(Tf({descendantName:"label"}),c.label),count:zh(Tf({descendantName:"count"}),c.count),showMore:zh(Tf({descendantName:"showMore"}),c.showMore),disabledShowMore:zh(Tf({descendantName:"showMore",modifierName:"disabled"}),c.disabledShowMore)};return oh(function(e){var l=e.containerNode,h=e.cssClasses,f=e.renderState,d=e.templates,p=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)f.templateProps=lc({defaultTemplates:Ef,templatesConfig:a.templatesConfig,templates:d});else{var u=r.map(function(e){return H({},e,{url:i(e.name)})});_l(Xl.createElement(df,{createURL:i,cssClasses:h,facetValues:u,showMore:p,templateProps:f.templateProps,toggleRefinement:n,toggleShowMore:o,isShowingMore:s,canToggleShowMore:c}),l)}}}({containerNode:f,cssClasses:d,renderState:{},templates:l,showMore:a}),function(){return Fl(f)})({attribute:n,limit:i,showMore:a,showMoreLimit:s,sortBy:r,transformItems:h})},refinementList:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.operator,i=e.sortBy,a=e.limit,s=e.showMore,o=e.showMoreLimit,c=e.searchable,u=void 0!==c&&c,l=e.searchablePlaceholder,h=void 0===l?"Search...":l,f=e.searchableEscapeFacetValues,d=void 0===f||f,p=e.searchableIsAlwaysActive,m=void 0===p||p,v=e.cssClasses,g=void 0===v?{}:v,y=e.templates,b=void 0===y?Mf:y,w=e.transformItems;if(!t)throw new Error(If("The `container` option is required."));var R=!!u&&Boolean(d),S=oc(t),P=function(e){var t=H({},e,{submit:e.searchableSubmit,reset:e.searchableReset,loadingIndicator:e.searchableLoadingIndicator});return t.searchableReset,t.searchableSubmit,t.searchableLoadingIndicator,k(t,["searchableReset","searchableSubmit","searchableLoadingIndicator"])}(H({},Mf,{},b)),_={root:zh(Lf(),g.root),noRefinementRoot:zh(Lf({modifierName:"noRefinement"}),g.noRefinementRoot),list:zh(Lf({descendantName:"list"}),g.list),item:zh(Lf({descendantName:"item"}),g.item),selectedItem:zh(Lf({descendantName:"item",modifierName:"selected"}),g.selectedItem),searchBox:zh(Lf({descendantName:"searchBox"}),g.searchBox),label:zh(Lf({descendantName:"label"}),g.label),checkbox:zh(Lf({descendantName:"checkbox"}),g.checkbox),labelText:zh(Lf({descendantName:"labelText"}),g.labelText),count:zh(Lf({descendantName:"count"}),g.count),noResults:zh(Lf({descendantName:"noResults"}),g.noResults),showMore:zh(Lf({descendantName:"showMore"}),g.showMore),disabledShowMore:zh(Lf({descendantName:"showMore",modifierName:"disabled"}),g.disabledShowMore),searchable:{root:zh(kf(),g.searchableRoot),form:zh(kf({descendantName:"form"}),g.searchableForm),input:zh(kf({descendantName:"input"}),g.searchableInput),submit:zh(kf({descendantName:"submit"}),g.searchableSubmit),submitIcon:zh(kf({descendantName:"submitIcon"}),g.searchableSubmitIcon),reset:zh(kf({descendantName:"reset"}),g.searchableReset),resetIcon:zh(kf({descendantName:"resetIcon"}),g.searchableResetIcon),loadingIndicator:zh(kf({descendantName:"loadingIndicator"}),g.searchableLoadingIndicator),loadingIcon:zh(kf({descendantName:"loadingIcon"}),g.searchableLoadingIcon)}};return bh(function(e){var f=e.containerNode,d=e.cssClasses,p=e.templates,m=e.renderState,v=e.showMore,g=e.searchable,y=e.searchablePlaceholder,b=e.searchableIsAlwaysActive;return function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.searchForItems,s=e.isFromSearch,o=e.instantSearchInstance,c=e.toggleShowMore,u=e.isShowingMore,l=e.hasExhaustiveItems,h=e.canToggleShowMore;t?m.templateProps=lc({templatesConfig:o.templatesConfig,templates:p}):_l(Xl.createElement(df,{createURL:i,cssClasses:d,facetValues:r,templateProps:m.templateProps,toggleRefinement:n,searchFacetValues:g?a:void 0,searchPlaceholder:y,searchIsAlwaysActive:b,isFromSearch:s,showMore:v&&!s&&0<r.length,toggleShowMore:c,isShowingMore:u,hasExhaustiveItems:l,canToggleShowMore:h}),f)}}({containerNode:S,cssClasses:_,templates:P,renderState:{},searchable:u,searchablePlaceholder:h,searchableIsAlwaysActive:m,showMore:s}),function(){return Fl(S)})({attribute:n,operator:r,limit:a,showMore:s,showMoreLimit:o,sortBy:i,escapeFacetValues:R,transformItems:w})},numericMenu:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.items,i=e.cssClasses,a=void 0===i?{}:i,s=e.templates,o=void 0===s?Of:s,c=e.transformItems;if(!t)throw new Error(Af("The `container` option is required."));var u=oc(t),l={root:zh(Df(),a.root),noRefinementRoot:zh(Df({modifierName:"noRefinement"}),a.noRefinementRoot),list:zh(Df({descendantName:"list"}),a.list),item:zh(Df({descendantName:"item"}),a.item),selectedItem:zh(Df({descendantName:"item",modifierName:"selected"}),a.selectedItem),label:zh(Df({descendantName:"label"}),a.label),radio:zh(Df({descendantName:"radio"}),a.radio),labelText:zh(Df({descendantName:"labelText"}),a.labelText)};return uh(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=lc({defaultTemplates:Of,templatesConfig:r.templatesConfig,templates:l}):_l(Xl.createElement(df,{createURL:n,cssClasses:c,facetValues:a,templateProps:u.templateProps,toggleRefinement:i,attribute:o}),s)}}({containerNode:u,attribute:n,cssClasses:l,renderState:{},templates:o}),function(){return Fl(u)})({attribute:n,items:r,transformItems:c})},pagination:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.templates,r=void 0===n?{}:n,i=e.cssClasses,a=void 0===i?{}:i,s=e.totalPages,o=e.padding,c=e.showFirst,u=void 0===c||c,l=e.showLast,h=void 0===l||l,f=e.showPrevious,d=void 0===f||f,p=e.showNext,m=void 0===p||p,v=e.scrollTo,g=void 0===v?"body":v;if(!t)throw new Error(Bf("The `container` option is required."));var y=oc(t),b=!0===g?"body":g,w=!1!==b&&oc(b),R={root:zh(Vf(),a.root),noRefinementRoot:zh(Vf({modifierName:"noRefinement"}),a.noRefinementRoot),list:zh(Vf({descendantName:"list"}),a.list),item:zh(Vf({descendantName:"item"}),a.item),firstPageItem:zh(Vf({descendantName:"item",modifierName:"firstPage"}),a.firstPageItem),lastPageItem:zh(Vf({descendantName:"item",modifierName:"lastPage"}),a.lastPageItem),previousPageItem:zh(Vf({descendantName:"item",modifierName:"previousPage"}),a.previousPageItem),nextPageItem:zh(Vf({descendantName:"item",modifierName:"nextPage"}),a.nextPageItem),pageItem:zh(Vf({descendantName:"item",modifierName:"page"}),a.pageItem),selectedItem:zh(Vf({descendantName:"item",modifierName:"selected"}),a.selectedItem),disabledItem:zh(Vf({descendantName:"item",modifierName:"disabled"}),a.disabledItem),link:zh(Vf({descendantName:"link"}),a.link)},S=H({},Qf,{},r);return mh(function(e){var l=e.containerNode,h=e.cssClasses,f=e.templates,d=e.totalPages,p=e.showFirst,m=e.showLast,v=e.showPrevious,g=e.showNext,y=e.scrollToNode;return function(e,t){var n=e.createURL,r=e.currentRefinement,i=e.nbHits,a=e.nbPages,s=e.pages,o=e.isFirstPage,c=e.isLastPage,u=e.refine;if(!t){_l(Xl.createElement(Uf,{createURL:n,cssClasses:h,currentPage:r,templates:f,nbHits:i,nbPages:a,pages:s,totalPages:d,isFirstPage:o,isLastPage:c,setCurrentPage:function(e){u(e),!1!==y&&y.scrollIntoView()},showFirst:p,showLast:m,showPrevious:v,showNext:g}),l)}}}({containerNode:y,cssClasses:R,templates:S,showFirst:u,showLast:h,showPrevious:d,showNext:m,padding:o,scrollToNode:w}),function(){return Fl(y)})({totalPages:s,padding:o})},rangeInput:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.min,i=e.max,a=e.precision,s=void 0===a?0:a,o=e.cssClasses,c=void 0===o?{}:o,u=e.templates,l=void 0===u?{}:u;if(!t)throw new Error(Wf("The `container` option is required."));var h=oc(t),f=H({separatorText:"to",submitText:"Go"},l),d={root:zh(zf(),c.root),noRefinement:zh(zf({modifierName:"noRefinement"})),form:zh(zf({descendantName:"form"}),c.form),label:zh(zf({descendantName:"label"}),c.label),input:zh(zf({descendantName:"input"}),c.input),inputMin:zh(zf({descendantName:"input",modifierName:"min"}),c.inputMin),inputMax:zh(zf({descendantName:"input",modifierName:"max"}),c.inputMax),separator:zh(zf({descendantName:"separator"}),c.separator),submit:zh(zf({descendantName:"submit"}),c.submit)};return gh(function(e){var p=e.containerNode,m=e.cssClasses,v=e.renderState,g=e.templates;return function(e,t){var n=e.refine,r=e.range,i=e.start,a=e.widgetParams,s=e.instantSearchInstance;if(t)v.templateProps=lc({templatesConfig:s.templatesConfig,templates:g});else{var o=r.min,c=r.max,u=U(i,2),l=u[0],h=u[1],f=1/Math.pow(10,a.precision),d={min:l!==-1/0&&l!==o?l:void 0,max:h!==1/0&&h!==c?h:void 0};_l(Xl.createElement(qf,{min:o,max:c,step:f,values:d,cssClasses:m,refine:n,templateProps:v.templateProps}),p)}}}({containerNode:h,cssClasses:d,templates:f,renderState:{}}),function(){return Fl(h)})({attribute:n,min:r,max:i,precision:s})},searchBox:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.placeholder,r=void 0===n?"":n,i=e.cssClasses,a=void 0===i?{}:i,s=e.autofocus,o=void 0!==s&&s,c=e.searchAsYouType,u=void 0===c||c,l=e.showReset,h=void 0===l||l,f=e.showSubmit,d=void 0===f||f,p=e.showLoadingIndicator,m=void 0===p||p,v=e.queryHook,g=e.templates;if(!t)throw new Error(Yf("The `container` option is required."));var y=oc(t);if("INPUT"===y.tagName)throw new Error("The `container` option doesn't accept `input` elements since InstantSearch.js 3.\n\nYou may want to migrate using `connectSearchBox`: ".concat(Ic({name:"searchbox",connector:!0}),"."));kc("boolean"==typeof o,"The `autofocus` option only supports boolean values since InstantSearch.js 3.");var b={root:zh($f(),a.root),form:zh($f({descendantName:"form"}),a.form),input:zh($f({descendantName:"input"}),a.input),submit:zh($f({descendantName:"submit"}),a.submit),submitIcon:zh($f({descendantName:"submitIcon"}),a.submitIcon),reset:zh($f({descendantName:"reset"}),a.reset),resetIcon:zh($f({descendantName:"resetIcon"}),a.resetIcon),loadingIndicator:zh($f({descendantName:"loadingIndicator"}),a.loadingIndicator),loadingIcon:zh($f({descendantName:"loadingIcon"}),a.loadingIcon)};return Rh(function(e){var i=e.containerNode,a=e.cssClasses,s=e.placeholder,o=e.templates,c=e.autofocus,u=e.searchAsYouType,l=e.showReset,h=e.showSubmit,f=e.showLoadingIndicator;return function(e){var t=e.refine,n=e.query,r=e.isSearchStalled;_l(Xl.createElement(ff,{query:n,placeholder:s,autofocus:c,refine:t,searchAsYouType:u,templates:o,showSubmit:h,showReset:l,showLoadingIndicator:f,isSearchStalled:r,cssClasses:a}),i)}}({containerNode:y,cssClasses:b,placeholder:r,templates:H({},Kf,{},g),autofocus:o,searchAsYouType:u,showReset:h,showSubmit:d,showLoadingIndicator:m}),function(){return Fl(y)})({queryHook:v})},rangeSlider:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.min,i=e.max,a=e.cssClasses,s=void 0===a?{}:a,o=e.step,c=e.pips,u=void 0===c||c,l=e.precision,h=void 0===l?0:l,f=e.tooltips,d=void 0===f||f;if(!t)throw new Error(td("The `container` option is required."));var p=oc(t),m={root:zh(nd(),s.root),disabledRoot:zh(nd({modifierName:"disabled"}),s.disabledRoot)};return gh(function(e){var d=e.containerNode,p=e.cssClasses,m=e.pips,v=e.step,g=e.tooltips;return function(e,t){var n=e.refine,r=e.range,i=e.start;if(!t){var a=r.min,s=r.max,o=U(i,2),c=o[0],u=o[1],l=c===-1/0?a:c,h=u===1/0?s:u,f=[s<l?s:l,h<a?a:h];_l(Xl.createElement(ed,{cssClasses:p,refine:n,min:a,max:s,values:f,tooltips:g,step:v,pips:m}),d)}}}({containerNode:p,step:o,pips:u,tooltips:d,renderState:{},cssClasses:m}),function(){return Fl(p)})({attribute:n,min:r,max:i,precision:h})},sortBy:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.items,r=e.cssClasses,i=void 0===r?{}:r,a=e.transformItems;if(!t)throw new Error(rd("The `container` option is required."));var s=oc(t),o={root:zh(id(),i.root),select:zh(id({descendantName:"select"}),i.select),option:zh(id({descendantName:"option"}),i.option)};return Ph(function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.currentRefinement,r=e.options,i=e.refine;t||_l(Xl.createElement("div",{className:s.root},Xl.createElement(Sf,{cssClasses:s,currentValue:n,options:r,setValue:i})),a)}}({containerNode:s,cssClasses:o}),function(){return Fl(s)})({items:n,transformItems:a})},ratingMenu:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.max,i=void 0===r?5:r,a=e.cssClasses,s=void 0===a?{}:a,o=e.templates,c=void 0===o?ad:o;if(!t)throw new Error(sd("The `container` option is required."));var u=oc(t),l={root:zh(od(),s.root),noRefinementRoot:zh(od({modifierName:"noRefinement"}),s.noRefinementRoot),list:zh(od({descendantName:"list"}),s.list),item:zh(od({descendantName:"item"}),s.item),selectedItem:zh(od({descendantName:"item",modifierName:"selected"}),s.selectedItem),disabledItem:zh(od({descendantName:"item",modifierName:"disabled"}),s.disabledItem),link:zh(od({descendantName:"link"}),s.link),starIcon:zh(od({descendantName:"starIcon"}),s.starIcon),fullStarIcon:zh(od({descendantName:"starIcon",modifierName:"full"}),s.fullStarIcon),emptyStarIcon:zh(od({descendantName:"starIcon",modifierName:"empty"}),s.emptyStarIcon),label:zh(od({descendantName:"label"}),s.label),count:zh(od({descendantName:"count"}),s.count)};return Nh(function(e){var s=e.containerNode,o=e.cssClasses,c=e.templates,u=e.renderState;return function(e,t){var n=e.refine,r=e.items,i=e.createURL,a=e.instantSearchInstance;t?u.templateProps=lc({defaultTemplates:ad,templatesConfig:a.templatesConfig,templates:c}):_l(Xl.createElement(df,{createURL:i,cssClasses:o,facetValues:r,templateProps:u.templateProps,toggleRefinement:n},Xl.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",style:"display:none;"},Xl.createElement("symbol",{id:od({descendantName:"starSymbol"}),viewBox:"0 0 24 24"},cd),Xl.createElement("symbol",{id:od({descendantName:"starEmptySymbol"}),viewBox:"0 0 24 24"},ud))),s)}}({containerNode:u,cssClasses:l,renderState:{},templates:c}),function(){return Fl(u)})({attribute:n,max:i})},stats:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.cssClasses,r=void 0===n?{}:n,i=e.templates,a=void 0===i?hd:i;if(!t)throw new Error(fd("The `container` option is required."));var s=oc(t),o={root:zh(dd(),r.root),text:zh(dd({descendantName:"text"}),r.text)};return Ch(function(e){var u=e.containerNode,l=e.cssClasses,h=e.renderState,f=e.templates;return function(e,t){var n=e.hitsPerPage,r=e.nbHits,i=e.nbPages,a=e.page,s=e.processingTimeMS,o=e.query,c=e.instantSearchInstance;t?h.templateProps=lc({defaultTemplates:hd,templatesConfig:c.templatesConfig,templates:f}):_l(Xl.createElement(ld,{cssClasses:l,hitsPerPage:n,nbHits:r,nbPages:i,page:a,processingTimeMS:s,query:o,templateProps:h.templateProps}),u)}}({containerNode:s,cssClasses:o,renderState:{},templates:a}),function(){return Fl(s)})()},toggleRefinement:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attribute,r=e.cssClasses,i=void 0===r?{}:r,a=e.templates,s=void 0===a?md:a,o=e.on,c=void 0===o||o,u=e.off;if(!t)throw new Error(vd("The `container` option is required."));var l=oc(t),h={root:zh(gd(),i.root),label:zh(gd({descendantName:"label"}),i.label),checkbox:zh(gd({descendantName:"checkbox"}),i.checkbox),labelText:zh(gd({descendantName:"labelText"}),i.labelText)};return Eh(function(e){var s=e.containerNode,o=e.cssClasses,c=e.renderState,u=e.templates;return function(e,t){var n=e.value,r=e.createURL,i=e.refine,a=e.instantSearchInstance;t?c.templateProps=lc({defaultTemplates:md,templatesConfig:a.templatesConfig,templates:u}):_l(Xl.createElement(pd,{createURL:r,cssClasses:o,currentRefinement:n,templateProps:c.templateProps,refine:function(e){return i({isRefined:e})}}),s)}}({containerNode:l,cssClasses:h,renderState:{},templates:s}),function(){return Fl(l)})({attribute:n,on:c,off:u})},analytics:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},s=e.pushFunction,t=e.delay,r=void 0===t?3e3:t,n=e.triggerOnUIInteraction,i=void 0!==n&&n,a=e.pushInitialSearch,o=void 0===a||a,c=e.pushPagination,u=void 0!==c&&c;if(!s)throw new Error(yd("The `pushFunction` option is required."));function l(e){if(null!==e){var t=[],n=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n].join("+");t.push("".concat(encodeURIComponent(n),"=").concat(encodeURIComponent(n),"_").concat(encodeURIComponent(r)))}return t.join("&")}(H({},e.state.disjunctiveFacetsRefinements,{},e.state.facetsRefinements,{},e.state.hierarchicalFacetsRefinements)),r=function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(r.hasOwnProperty(">=")&&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===u&&(a+=", Page: ".concat(e.state.page)),d!==a&&(s(i,e.state,e.results),d=a)}}var h,f=null,d="",p=!0;function m(){l(f)}function v(){l(f)}return!0===o&&(p=!1),{init:function(){!0===i&&(document.addEventListener("click",m),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 l(f)},r)):p=!1},dispose:function(){!0===i&&(document.removeEventListener("click",m),window.removeEventListener("beforeunload",v))}}},breadcrumb:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.attributes,r=e.separator,i=e.rootPath,a=void 0===i?null:i,s=e.transformItems,o=e.templates,c=void 0===o?wd:o,u=e.cssClasses,l=void 0===u?{}:u;if(!t)throw new Error(Rd("The `container` option is required."));var h=oc(t),f={root:zh(Sd(),l.root),noRefinementRoot:zh(Sd({modifierName:"noRefinement"}),l.noRefinementRoot),list:zh(Sd({descendantName:"list"}),l.list),item:zh(Sd({descendantName:"item"}),l.item),selectedItem:zh(Sd({descendantName:"item",modifierName:"selected"}),l.selectedItem),separator:zh(Sd({descendantName:"separator"}),l.separator),link:zh(Sd({descendantName:"link"}),l.link)};return Th(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=lc({defaultTemplates:wd,templatesConfig:i.templatesConfig,templates:l}):_l(Xl.createElement(bd,{canRefine:n,cssClasses:c,createURL:r,items:a,refine:s,templateProps:u.templateProps}),o)}}({containerNode:h,cssClasses:f,renderState:{},templates:c}),function(){return Fl(h)})({attributes:n,separator:r,rootPath:a,transformItems:s})},menuSelect:function(e){var t=e.container,n=e.attribute,r=e.sortBy,i=void 0===r?["name:asc"]:r,a=e.limit,s=void 0===a?10:a,o=e.cssClasses,c=void 0===o?{}:o,u=e.templates,l=void 0===u?_d:u,h=e.transformItems;if(!t)throw new Error(Nd("The `container` option is required."));var f=oc(t),d={root:zh(xd(),c.root),noRefinementRoot:zh(xd({modifierName:"noRefinement"}),c.noRefinementRoot),select:zh(xd({descendantName:"select"}),c.select),option:zh(xd({descendantName:"option"}),c.option)};return oh(function(e){var s=e.containerNode,o=e.cssClasses,c=e.renderState,u=e.templates;return function(e,t){var n=e.refine,r=e.items,i=e.canRefine,a=e.instantSearchInstance;t?c.templateProps=lc({defaultTemplates:_d,templatesConfig:a.templatesConfig,templates:u}):_l(Xl.createElement(Pd,{cssClasses:o,items:r,refine:n,templateProps:c.templateProps,canRefine:i}),s)}}({containerNode:f,cssClasses:d,renderState:{},templates:l}),function(){return Fl(f)})({attribute:n,limit:s,sortBy:i,transformItems:h})},poweredBy:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.cssClasses,r=void 0===n?{}:n,i=e.theme,a=void 0===i?"light":i;if(!t)throw new Error(Td("The `container` option is required."));var s=oc(t),o={root:zh(jd(),jd({modifierName:"dark"===a?"dark":"light"}),r.root),link:zh(jd({descendantName:"link"}),r.link),logo:zh(jd({descendantName:"logo"}),r.logo)};return kh(function(e){var a=e.containerNode,s=e.cssClasses;return function(e,t){var n=e.url,r=e.widgetParams;if(t){var i=r.theme;_l(Xl.createElement(Cd,{cssClasses:s,url:n,theme:i}),a)}else;}}({containerNode:s,cssClasses:o}),function(){return Fl(s)})({theme:a})},panel:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.templates,r=void 0===t?{}:t,n=e.hidden,o=void 0===n?function(){return!1}:n,i=e.collapsed,a=e.cssClasses,s=void 0===a?{}:a;kc("function"==typeof o,'The `hidden` option in the "panel" widget expects a function returning a boolean (received "'.concat(f(o),'" type).')),kc(void 0===i||"function"==typeof i,'The `collapsed` option in the "panel" widget expects a function returning a boolean (received "'.concat(f(i),'" type).'));var c=document.createElement("div"),u=Boolean(i),l="function"==typeof i?i:function(){return!1},h={root:zh(Ld(),s.root),noRefinementRoot:zh(Ld({modifierName:"noRefinement"}),s.noRefinementRoot),collapsibleRoot:zh(Ld({modifierName:"collapsible"}),s.collapsibleRoot),collapsedRoot:zh(Ld({modifierName:"collapsed"}),s.collapsedRoot),collapseButton:zh(Ld({descendantName:"collapseButton"}),s.collapseButton),collapseIcon:zh(Ld({descendantName:"collapseIcon"}),s.collapseIcon),body:zh(Ld({descendantName:"body"}),s.body),header:zh(Ld({descendantName:"header"}),s.header),footer:zh(Ld({descendantName:"footer"}),s.footer)};return function(n){return function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=e.container;if(!i)throw new Error(Id("The `container` option is required in the widget within the panel."));var t=lc({defaultTemplates:{header:"",footer:"",collapseButtonText:function(e){var t=e.collapsed;return'<svg\n class="'.concat(h.collapseIcon,'"\n width="1em"\n height="1em"\n viewBox="0 0 500 500"\n >\n <path d="').concat(t?"M100 250l300-150v300z":"M250 400l150-300H100z",'" fill="currentColor" />\n </svg>')}},templates:r}),a=function(e){var a=e.containerNode,s=e.bodyContainerNode,o=e.cssClasses,c=e.templateProps;return function(e){var t=e.options,n=e.hidden,r=e.collapsible,i=e.collapsed;_l(Xl.createElement(Md,{cssClasses:o,hidden:n,collapsible:r,collapsed:i,templateProps:c,data:t,bodyElement:s}),a)}}({containerNode:oc(i),bodyContainerNode:c,cssClasses:h,templateProps:t});a({options:{},hidden:!0,collapsible:u,collapsed:!1});var s=n(H({},e,{container:c}));return H({},s,{dispose:function(){if(Fl(oc(i)),"function"==typeof s.dispose){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=s.dispose).call.apply(e,[this].concat(n))}},render:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=t[0];a({options:i,hidden:Boolean(o(i)),collapsible:u,collapsed:Boolean(l(i))}),"function"==typeof s.render&&(r=s.render).call.apply(r,[this].concat(t))}})}}},voiceSearch:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.cssClasses,r=void 0===n?{}:n,i=e.templates,a=e.searchAsYouSpeak;if(!t)throw new Error(Bd("The `container` option is required."));var s=oc(t),o={root:zh(Vd(),r.root),button:zh(Vd({descendantName:"button"}),r.button),status:zh(Vd({descendantName:"status"}),r.status)};return Qh(Od,function(){return Fl(s)})({container:s,cssClasses:o,templates:H({},Ud,{},i),searchAsYouSpeak:a})},queryRuleCustomData:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.container,n=e.cssClasses,r=void 0===n?{}:n,i=e.templates,a=void 0===i?{}:i,s=e.transformItems,o=void 0===s?function(e){return e}:s;if(!t)throw new Error(Qd("The `container` option is required."));var c={root:zh(qd(),r.root)},u=H({},{default:function(e){var t=e.items;return JSON.stringify(t,null,2)}},{},a),l=oc(t);return Bh(Dd,function(){Fl(l)})({container:l,cssClasses:c,templates:u,transformItems:o})},queryRuleContext:function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=e.trackedFilters,n=e.transformRuleContexts;if(!t)throw new Error(Wd("The `trackedFilters` option is required."));return Bh(Pc)({trackedFilters:t,transformRuleContexts:n})}}),Kd=Object.freeze({history:Kc}),Yd=Object.freeze({simple:Vc});return Hd.routers=Kd,Hd.stateMappings=Yd,Hd.connectors=Wh,Hd.widgets=zd,Hd.version="3.7.0",Hd.highlight=tu,Hd.snippet=ru,Hd.insights=function(e,t){return function(e){var t,n=e.method,r=e.payload;if("object"!==f(r))throw new Error("The insights helper expects the payload to be an object.");try{t=btoa(JSON.stringify(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})},Hd});
//# sourceMappingURL=instantsearch.production.min.js.map