1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[940],{628:(e,t,r)=>{"use strict";r.d(t,{Ah:()=>o,eX:()=>s,r2:()=>c});var n=r(46892),i=r(11038),a=r(18975);function s(e,t,r){var n=t.getHelper();return{uiState:r,helper:n,parent:t,instantSearchInstance:e,state:n.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,scopedResults:[],searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function o(e,t,r){var n=t.getResultsForWidget(r),i=t.getHelper();return{helper:i,parent:t,instantSearchInstance:e,results:n,scopedResults:t.getScopedResults(),state:n&&"_state"in n?n._state:i.state,renderState:e.renderState,templatesConfig:e.templatesConfig,createURL:t.createURL,searchMetadata:{isSearchStalled:"stalled"===e.status},status:e.status,error:e.error}}function c(e){var t=e.renderState,r=e.instantSearchInstance,s=e.parent,o=s?s.getIndexId():r.mainIndex.getIndexId();r.renderState=(0,a._)((0,i._)({},r.renderState),(0,n._)({},o,(0,i._)({},r.renderState[o],t)))}},2217:(e,t,r)=>{"use strict";var n=r(28989);if(n)try{n([],"length")}catch(e){n=null}e.exports=n},2706:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>Z});var n="2.17.3";function i(e){return e.reduce(function(e,t){var r=e.events,e=e.additionalParams;return"index"in t?{additionalParams:e,events:r.concat([t])}:{events:r,additionalParams:t}},{events:[],additionalParams:void 0})}var a=function(){try{return!!navigator.cookieEnabled}catch(e){return!1}},s=function(){try{return!!navigator.sendBeacon}catch(e){return!1}},o=function(){try{return!!XMLHttpRequest}catch(e){return!1}},c=function(){try{return void 0!==fetch}catch(e){return!1}},u=function(){};u.get=function(e){var t=null==(t=this.store)?void 0:t.getItem(e);if(!t)return null;try{return JSON.parse(t)}catch(e){return null}},u.set=function(e,t){var r;try{null!=(r=this.store)&&r.setItem(e,JSON.stringify(t))}catch(t){console.error("Unable to set "+e+" in localStorage, storage may be full.")}},u.remove=function(e){var t;null!=(t=this.store)&&t.removeItem(e)},u.store=function(){try{var e="__test_localStorage__";return globalThis.localStorage.setItem(e,e),globalThis.localStorage.removeItem(e),globalThis.localStorage}catch(e){}}();var l="AlgoliaObjectQueryCache";function h(){var e;return null!=(e=u.get(l))?e:{}}function f(e){var t,r;u.set(l,Object.keys(t=e).length>5e3?(r=Object.entries(r=t).sort(function(e,t){return e=e[1][1],t[1][1]-e})).slice(0,r.length-1e3-1).reduce(function(e,t){var r=t[0],t=t[1];return Object.assign(Object.assign({},e),((e={})[r]=t,e))},{}):t)}function d(e,t,r){var n=h();n[e+"_"+t]=[r,Date.now()],f(n)}var p=function(e){return void 0===e},m=function(e){return"function"==typeof e},g=["insights-js ("+n+")","insights-js-browser-esm ("+n+")"];function v(e){-1===this._ua.indexOf(e)&&this._ua.push(e)}function y(e){return m(e)&&e(this.version),this.version}function b(e,t){var r={};for(i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,i=Object.getOwnPropertySymbols(e);n<i.length;n++)0>t.indexOf(i[n])&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]]);return r}function _(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})}var R="_ALGOLIA",S=function(e,t,r){var n=new Date,r=(n.setTime(n.getTime()+r),"expires="+n.toUTCString());document.cookie=e+"="+t+";"+r+";path=/"},x=function(e){for(var t=e+"=",r=document.cookie.split(";"),n=0;n<r.length;n++){for(var i=r[n];" "===i.charAt(0);)i=i.substring(1);if(0===i.indexOf(t))return i.substring(t.length,i.length)}return""};function w(){var e=x(R);!this._userToken||e&&""!==e&&0===e.indexOf("anonymous-")||S(R,this._userToken,this._cookieDuration)}function P(e){(e=void 0!==e&&e)?this.setUserToken("anonymous-"+_()):a()&&((e=x(R))&&""!==e&&0===e.indexOf("anonymous-")?this.setUserToken(e):S(R,e=this.setUserToken("anonymous-"+_()),this._cookieDuration))}function F(e){return this._userToken=e,m(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken),this._userToken}function j(e,t){return m(t)&&t(null,this._userToken),this._userToken}function O(e,t){this._onUserTokenChangeCallback=e,t&&t.immediate&&m(this._onUserTokenChangeCallback)&&this._onUserTokenChangeCallback(this._userToken)}function E(e){return this._authenticatedUserToken=e,m(this._onAuthenticatedUserTokenChangeCallback)&&this._onAuthenticatedUserTokenChangeCallback(this._authenticatedUserToken),this._authenticatedUserToken}function A(e,t){return m(t)&&t(null,this._authenticatedUserToken),this._authenticatedUserToken}function T(e,t){this._onAuthenticatedUserTokenChangeCallback=e,t&&t.immediate&&m(this._onAuthenticatedUserTokenChangeCallback)&&this._onAuthenticatedUserTokenChangeCallback(this._authenticatedUserToken)}function I(e,t){return t.map(function(t){return Object.assign({eventType:e},t)})}function k(e,t,r){return r.map(function(r){return Object.assign({eventType:e,eventSubtype:t},r)})}function C(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=i(t),a=n.events,n=n.additionalParams;return a.forEach(function(t){var r=t.index,n=t.queryID;return t.objectIDs.forEach(function(t){return!e._userHasOptedOut&&d(r,t,n)})}),this.sendEvents(I("click",a),n)}function D(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("click",n),r)}function N(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("click",n),r)}function H(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("conversion",n),r)}function U(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=i(t),a=n.events,n=n.additionalParams;return a.forEach(function(t){var r=t.index,n=t.queryID,i=t.objectIDs,a=t.objectData;
1return i.forEach(function(t,i){i=null!=(i=null==(i=null==a?void 0:a[i])?void 0:i.queryID)?i:n,!e._userHasOptedOut&&i&&d(r,t,i)})}),this.sendEvents(k("conversion","addToCart",a),n)}function W(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(k("conversion","purchase",n),r)}function L(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("conversion",n),r)}function Q(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n=i(t),a=n.events,n=n.additionalParams;return a.forEach(function(t){var r=t.index,n=t.objectIDs,i=t.objectData;return n.forEach(function(t,n){n=null==(n=null==i?void 0:i[n])?void 0:n.queryID,!e._userHasOptedOut&&n&&d(r,t,n)})}),this.sendEvents(k("conversion","addToCart",a),n)}function $(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(k("conversion","purchase",n),r)}function M(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("conversion",n),r)}var q=["de","us"];function B(e){var t,r,n,i,a,s,o,c;if(!p((e=void 0===e?{}:e).region)&&-1===q.indexOf(e.region))throw Error("optional region is incorrect, please provide either one of: "+q.join(", ")+".");if(!(p(e.cookieDuration)||"number"==typeof e.cookieDuration&&isFinite(e.cookieDuration)&&Math.floor(e.cookieDuration)===e.cookieDuration))throw Error("optional cookieDuration is incorrect, expected an integer.");r=this,n=e,i={_userHasOptedOut:!!e.userHasOptedOut,_region:e.region,_host:e.host,_anonymousUserToken:null==(t=e.anonymousUserToken)||t,_useCookie:null!=(t=e.useCookie)&&t,_cookieDuration:e.cookieDuration||15552e6},a=n.partial,s=b(n,["partial"]),a||Object.assign(r,i),Object.assign(r,Object.keys(s).reduce(function(e,t){return Object.assign(Object.assign({},e),((e={})["_"+t]=s[t],e))},{})),this._endpointOrigin=this._host||(this._region?"https://insights."+this._region+".algolia.io":"https://insights.algolia.io"),this._ua=[].concat(g),e.authenticatedUserToken&&this.setAuthenticatedUserToken(e.authenticatedUserToken),e.userToken?this.setUserToken(e.userToken):this._userToken||this._userHasOptedOut||!this._useCookie?(o=this,void 0!==o._userToken&&"number"!=typeof(c=o._userToken)&&0===c.indexOf("anonymous-")&&o._useCookie&&!o._userHasOptedOut&&this.saveTokenAsCookie()):this.setAnonymousUserToken()}function V(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("view",n),r)}function J(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var r=i(e),n=r.events,r=r.additionalParams;return this.sendEvents(I("view",n),r)}var K=function(e){var t;e=e.requestFn,this._endpointOrigin="https://insights.algolia.io",this._anonymousUserToken=!0,this._userHasOptedOut=!1,this._useCookie=!1,this._cookieDuration=15552e6,this._ua=[],this.version=n,this.sendEvents=(t=e,function(e,r){var n,i,a,s,o,c,u,l,d,m,g,v,y=this;if(this._userHasOptedOut)return Promise.resolve(!1);if(!(!p(this._apiKey)&&!p(this._appId)||(null==(_=null==r?void 0:r.headers)?void 0:_["X-Algolia-Application-Id"])&&(null==(_=null==r?void 0:r.headers)?void 0:_["X-Algolia-API-Key"])))throw Error("Before calling any methods on the analytics, you first need to call the 'init' function with appId and apiKey parameters or provide custom credentials in additional parameters.");!this._userToken&&this._anonymousUserToken&&this.setAnonymousUserToken(!0);var _=(null!=r&&r.inferQueryID?e.map(function(e){var t,r,n;return(n=e).queryID||"conversion"!==n.eventType||(t=[],r=null==(r=e.objectIDs)?void 0:r.map(function(r,n){var i,a,s=null==(s=e.objectData)?void 0:s[n];return null!=s&&s.queryID?s:((n=(null!=(i=e.index,a=r,n=h()[i+"_"+a])?n:[])[0])&&t.push(r),Object.assign(Object.assign({},s),{queryID:n}))}),0===t.length)?e:Object.assign(Object.assign({},e),{objectData:r,objectIDsWithInferredQueryID:t})}):e).map(function(e){var t=e.filters,r=b(e,["filters"]),e=Object.assign(Object.assign({},r),{userToken:null!=(r=null==e?void 0:e.userToken)?r:y._userToken,authenticatedUserToken:null!=(r=null==e?void 0:e.authenticatedUserToken)?r:y._authenticatedUserToken});return p(t)||(e.filters=t.map(encodeURIComponent)),e});return 0===_.length?Promise.resolve(!1):"function"==typeof(null==(n=t,i=this._ua,a=this._endpointOrigin,s=_,o=this._appId,c=this._apiKey,u=(d=void 0===(d=null==r?void 0:r.headers)?{}:d)["X-Algolia-Application-Id"],l=d["X-Algolia-API-Key"],d=b(d,["X-Algolia-Application-Id","X-Algolia-API-Key"]),v=e=n(a+"/1/events?"+Object.keys(m=Object.assign({"X-Algolia-Application-Id":null!=u?u:o,"X-Algolia-API-Key":null!=l?l:c,"X-Algolia-Agent":encodeURIComponent(i.join("; "))},d)).map(function(e){return e+"="+m[e]}).join("&"),{events:s}))?void 0:v.then)?e.then((g=_,function(e){return e&&g.filter(function(e){var t=e.eventType,r=e.eventSubtype,e=e.objectIDs;return"conversion"===t&&"purchase"===r&&(null==e?void 0:e.length)}
1).forEach(function(e){var t,r,n;return t=e.index,r=e.objectIDs,n=h(),void(r.forEach(function(e){delete n[t+"_"+e]}),f(n))}),e})):e}).bind(this),this.init=B.bind(this),this.addAlgoliaAgent=v.bind(this),this.saveTokenAsCookie=w.bind(this),this.setUserToken=F.bind(this),this.setAnonymousUserToken=P.bind(this),this.getUserToken=j.bind(this),this.onUserTokenChange=O.bind(this),this.setAuthenticatedUserToken=E.bind(this),this.getAuthenticatedUserToken=A.bind(this),this.onAuthenticatedUserTokenChange=T.bind(this),this.clickedObjectIDsAfterSearch=C.bind(this),this.clickedObjectIDs=D.bind(this),this.clickedFilters=N.bind(this),this.convertedObjectIDsAfterSearch=H.bind(this),this.purchasedObjectIDsAfterSearch=W.bind(this),this.addedToCartObjectIDsAfterSearch=U.bind(this),this.convertedObjectIDs=L.bind(this),this.addedToCartObjectIDs=Q.bind(this),this.purchasedObjectIDs=$.bind(this),this.convertedFilters=M.bind(this),this.viewedObjectIDs=V.bind(this),this.viewedFilters=J.bind(this),this.getVersion=y.bind(this)},z=function(e,t){return new Promise(function(r,n){var i=JSON.stringify(t),a=new XMLHttpRequest;a.addEventListener("readystatechange",function(){4===a.readyState&&200===a.status?r(!0):4===a.readyState&&r(!1)}),a.addEventListener("error",function(){return n()}),a.addEventListener("timeout",function(){return r(!1)}),a.open("POST",e),a.setRequestHeader("Content-Type","application/json"),a.send(i)})},G=function(e,t){var r=JSON.stringify(t),r=navigator.sendBeacon(e,r);return Promise.resolve(!!r||z(e,t))},X=function(e,t){return new Promise(function(r,n){fetch(e,{method:"POST",body:JSON.stringify(t),headers:{"Content-Type":"application/json"}}).then(function(e){r(200===e.status)}).catch(function(e){n(e)})})};let Z=function(e){var t,r,e=(t=new K({requestFn:e}),function(e){for(var r=[],n=arguments.length-1;0<n--;)r[n]=arguments[n+1];if(e&&m(t[e]))return t[e].apply(t,r);console.warn("The method `"+e+"` doesn't exist.")});if("object"==typeof window&&!window.AlgoliaAnalyticsObject){for(;r=_(),void 0!==window[r];);window.AlgoliaAnalyticsObject=r,window[window.AlgoliaAnalyticsObject]=e}return e.version=n,e}(function(){if(s())return G;if(o())return z;if(c())return X;throw Error("Could not find a supported HTTP request client in this environment.")}())},3971:(e,t,r)=>{"use strict";r.d(t,{I:()=>s});var n=r(24752),i=r(57176),a=r(32412);function s(){var e=(0,n.useContext)(i.t);return(0,a.V)(null!==e),e}},4084:(e,t,r)=>{"use strict";var n=r(87896),i=r(67912);e.exports=function(e,t){var r,a,s={};return t.forEach(function(t){t.forEach(function(t,r){e.includes(t.objectID)||(s[t.objectID]?s[t.objectID]={indexSum:s[t.objectID].indexSum+r,count:s[t.objectID].count+1}:s[t.objectID]={indexSum:r,count:1})})}),(r=t.length,a=[],Object.keys(s).forEach(function(e){s[e].count<2&&(s[e].indexSum+=100),a.push({objectID:e,avgOfIndices:s[e].indexSum/r})}),a.sort(function(e,t){return e.avgOfIndices>t.avgOfIndices?1:-1})).reduce(function(e,r){var a=n(i(t),function(e){return e.objectID===r.objectID});return a?e.concat(a):e},[])}},5106:(e,t,r)=>{"use strict";var n=r(96334),i=r(74706),a=r(27898),s=r(48910),o=r(29246);function c(e,t,r,i){return new n(e,t,r,i)}c.version=r(46915),c.AlgoliaSearchHelper=n,c.SearchParameters=s,c.RecommendParameters=i,c.SearchResults=o,c.RecommendResults=a,e.exports=c},5588:e=>{"use strict";e.exports="u">typeof Reflect&&Reflect&&Reflect.apply},5894:(e,t,r)=>{"use strict";function n(e,t){if(void 0===e||"function"!=typeof e)throw Error("The render function is not valid (received type ".concat(Object.prototype.toString.call(e).slice(8,-1),").\n\n").concat(t))}r.d(t,{t:()=>n})},6865:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=["ais.index","ais.feedContainer"];function i(e){return n.includes(e.$$type)}},7233:(e,t,r)=>{"use strict";r.d(t,{l:()=>m});var n=r(11038),i=r(18975),a=r(12804),s=r(5894),o=r(70365),c=r(60442),u=(0,a.V)({name:"sort-by",connector:!0});function l(e){return"strategy"in e&&void 0!==e.strategy}function h(e){return l(e)?e.strategy:e.value}function f(e,t){if(!t)return!1;var r=e[t];return void 0!==r&&l(r)}var d=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:c.l;(0,s.t)(e,u());var r={};return function(a){var s=a||{},c=s.items,d=s.transformItems,p=void 0===d?function(e){return e}:d;if(!Array.isArray(c))throw Error(u("The `items` option expects an array of objects."));var m={};
1return c.forEach(function(e,t){var r="value"in e&&void 0!==e.value,n="strategy"in e&&void 0!==e.strategy;if(r&&n)throw Error(u("Item at index ".concat(t,' cannot have both "value" and "strategy" properties.')));if(!r&&!n)throw Error(u("Item at index ".concat(t,' must have either a "value" or "strategy" property.')));m[h(e)]=e}),r.itemsLookup=m,{$$type:"ais.sortBy",init:function(t){var r=t.instantSearchInstance;if(c.some(function(e){return"strategy"in e&&e.strategy})&&!r.compositionID)throw Error(u('Sorting strategies can only be used in composition mode. Please provide a "compositionID" to your InstantSearch instance.'));var a=this.getWidgetRenderState(t),s=a.currentRefinement;(0,o.I)(c,function(e){return h(e)===s}),e((0,i._)((0,n._)({},a),{instantSearchInstance:r}),!0)},render:function(t){var r=t.instantSearchInstance;e((0,i._)((0,n._)({},this.getWidgetRenderState(t)),{instantSearchInstance:r}),!1)},dispose:function(e){var n=e.state;return(t(),r.isUsingComposition&&n.sortBy&&(n=n.setQueryParameter("sortBy",void 0)),r.initialValue&&n.index!==r.initialValue)?n.setIndex(r.initialValue):n},getRenderState:function(e,t){return(0,i._)((0,n._)({},e),{sortBy:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.helper,i=e.state,s=e.parent,o=e.instantSearchInstance;!r.initialValue&&s&&(r.initialValue=s.getIndexName()),r.refine||(r.isUsingComposition=!!(null==o?void 0:o.compositionID),r.refine=function(e){var t=r.itemsLookup[e];t&&l(t)?n.setQueryParameter("sortBy",t.strategy).search():n.setQueryParameter("sortBy",void 0).setIndex(e).search()});var u=p(c,{results:t}).map(function(e){return{label:e.label,value:h(e)}}),d=r.isUsingComposition&&f(r.itemsLookup,i.sortBy)?i.sortBy:i.index,m=!t||0===t.nbHits;return{currentRefinement:d,options:u,refine:r.refine,hasNoResults:m,canRefine:!m&&c.length>0,widgetParams:a}},getWidgetUiState:function(e,t){var a=t.searchParameters,s=r.isUsingComposition&&f(r.itemsLookup,a.sortBy)?a.sortBy:a.index;return(0,i._)((0,n._)({},e),{sortBy:s!==r.initialValue?s:void 0})},getWidgetSearchParameters:function(e,t){var n=t.uiState,i=(!n.sortBy||Object.prototype.hasOwnProperty.call(r.itemsLookup,n.sortBy)?n.sortBy:void 0)||r.initialValue||e.index;if(f(r.itemsLookup,i)){var a=r.itemsLookup[i];return e.setQueryParameter("sortBy",a.strategy)}return e.setQueryParameter("index",i)}}}},p=r(48209);function m(e,t){return(0,p.Z)(d,e,t)}},7489:(e,t,r)=>{"use strict";r.d(t,{B:()=>g});var n=r(52453),i=r(54701),a=r(24752),s=r(11038),o=r(18975),c=r(12804),u=r(5894),l=r(60442),h=(0,c.V)({name:"dynamic-widgets",connector:!0}),f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.l;return(0,u.t)(e,h()),function(r){var n=r.widgets,a=r.maxValuesPerFacet,c=void 0===a?20:a,u=r.facets,l=void 0===u?["*"]:u,f=r.transformItems,d=void 0===f?function(e){return e}:f,p=r.fallbackWidget;if(!(n&&Array.isArray(n)&&n.every(function(e){return(void 0===e?"undefined":(0,i._)(e))==="object"})))throw Error(h("The `widgets` option expects an array of widgets."));if(!Array.isArray(l))throw Error(h("The `facets` option only accepts an array of facets, you passed ".concat(JSON.stringify(l))));var m=new Map;return{$$type:"ais.dynamicWidgets",init:function(t){n.forEach(function(e){var r=function(e,t){var r,n=null==(r=e.getWidgetRenderState)?void 0:r.call(e,t),i=null;if(n&&n.widgetParams){var a=n.widgetParams;a.attribute?i=a.attribute:Array.isArray(a.attributes)&&(i=a.attributes[0])}if("string"!=typeof i)throw Error("Could not find the attribute of the widget:\n\n".concat(JSON.stringify(e),"\n\nPlease check whether the widget's getWidgetRenderState returns widgetParams.attribute correctly."));return i}(e,t);m.set(r,{widget:e,isMounted:!1})}),e((0,o._)((0,s._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=t.parent,n=this.getWidgetRenderState(t),i=[],a=[];p&&n.attributesToRender.forEach(function(e){if(!m.has(e)){var t=p({attribute:e});m.set(e,{widget:t,isMounted:!1})}}),m.forEach(function(e,t){var r=e.widget,s=e.isMounted,o=n.attributesToRender.indexOf(t)>-1;!s&&o?(a.push(r),m.set(t,{widget:r,isMounted:!0}
1)):s&&!o&&(i.push(r),m.set(t,{widget:r,isMounted:!1}))}),r.addWidgets(a),setTimeout(function(){return r.removeWidgets(i)},0),e((0,o._)((0,s._)({},n),{instantSearchInstance:t.instantSearchInstance}),!1)},dispose:function(e){var r=e.parent,n=[];m.forEach(function(e){var t=e.widget;e.isMounted&&n.push(t)}),r.removeWidgets(n),t()},getWidgetSearchParameters:function(e){return l.reduce(function(e,t){return e.addFacet(t)},e.setQueryParameters({maxValuesPerFacet:Math.max(c||0,e.maxValuesPerFacet||0)}))},getRenderState:function(e,t){return(0,o._)((0,s._)({},e),{dynamicWidgets:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t,n,i,a,s=e.results;if(e.state,!s)return{attributesToRender:[],widgetParams:r};var o=d(null!=(t=null==(a=s.renderingContent)||null==(i=a.facetOrdering)||null==(n=i.facets)?void 0:n.order)?t:[],{results:s});if(!Array.isArray(o))throw Error(h("The `transformItems` option expects a function that returns an Array."));return{attributesToRender:o,widgetParams:r}}}}},d=r(48209),p=r(32412);function m(){return null}function g(e){var t,r=e.children,c=e.fallbackComponent,u=(0,n._)(e,["children","fallbackComponent"]),l=a.default.useRef(void 0===c?m:c),h=(t={$$widgetType:"ais.dynamicWidgets"},(0,d.Z)(f,(0,o._)((0,s._)({},u),{widgets:[]}),t)).attributesToRender,g=new Map;return a.default.Children.forEach(r,function(e){var t=function e(t){if((void 0===t?"undefined":(0,i._)(t))==="object"&&t.props){if(t.props.attribute)return t.props.attribute;if(Array.isArray(t.props.attributes))return t.props.attributes[0];if(t.props.children)return(0,p.V)(1===a.default.Children.count(t.props.children)),e(a.default.Children.only(t.props.children))}}(e);(0,p.V)(void 0!==t),g.set(t,e)}),a.default.createElement(a.default.Fragment,null,h.map(function(e){return a.default.createElement(a.Fragment,{key:e},g.get(e)||a.default.createElement(l.current,{attribute:e}))}))}},7863:(e,t,r)=>{"use strict";var n=r(74487),i=r(67884),a=r(36098),s={addRefinement:function(e,t,r){if(s.isRefined(e,t,r))return e;var i=""+r,a=e[t]?e[t].concat(i):[i],o={};return o[t]=a,n(o,e)},removeRefinement:function(e,t,r){if(void 0===r)return s.clearRefinement(e,function(e,r){return t===r});var n=""+r;return s.clearRefinement(e,function(e,r){return t===r&&n===e})},toggleRefinement:function(e,t,r){if(void 0===r)throw Error("toggleRefinement should be used with a value");return s.isRefined(e,t,r)?s.removeRefinement(e,t,r):s.addRefinement(e,t,r)},clearRefinement:function(e,t,r){if(void 0===t)return i(e)?{}:e;if("string"==typeof t)return a(e,[t]);if("function"==typeof t){var n=!1,s=Object.keys(e).reduce(function(i,a){var s=e[a]||[],o=s.filter(function(e){return!t(e,a,r)});return o.length!==s.length&&(n=!0),i[a]=o,i},{});return n?s:e}},isRefined:function(e,t,r){var n=!!e[t]&&e[t].length>0;return void 0!==r&&n?-1!==e[t].indexOf(""+r):n}};e.exports=s},8969:(e,t,r)=>{"use strict";r.d(t,{i:()=>s,x:()=>l});var n={"&":"&","<":"<",">":">",'"':""","'":"'"},i=/[&<>"']/g,a=RegExp(i.source);function s(e){return e&&a.test(e)?e.replace(i,function(e){return n[e]}):e}var o={"&":"&","<":"<",">":">",""":'"',"'":"'"},c=/&(amp|quot|lt|gt|#39);/g,u=RegExp(c.source);function l(e){return e&&u.test(e)?e.replace(c,function(e){return o[e]}):e}},10548:e=>{"use strict";e.exports=function(e){return Array.isArray(e)?e.filter(Boolean):[]}},11038:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(46892);function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},i=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),i.forEach(function(t){(0,n._)(e,t,r[t])})}return e}},12367:e=>{"use strict";e.exports=Function.prototype.call},12420:e=>{"use strict";var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch(e){t=!1}e.exports=t},12804:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=t.map(function(e){var t;return"https://www.algolia.com/doc/api-reference/widgets/"+e.name+"/js/"+(void 0!==(t=e.connector)&&t?"#connector":"")}).join(", ");return function(e){return[e,"See documentation: ".concat(n)].filter(
1Boolean).join("\n\n")}}r.d(t,{V:()=>n})},13129:(e,t,r)=>{"use strict";function n(e,t){return null!=t&&"u">typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}r.d(t,{_:()=>n})},14288:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{_:()=>n})},14931:(e,t,r)=>{"use strict";r.d(t,{C:()=>a});var n=r(71252),i=r(24752);function a(){return(0,n._)((0,i.useReducer)(function(e){return e+1},0),2)[1]}},15570:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){return Array.isArray(t)?e.concat(t):e.concat([t])},[]).filter(Boolean).join(" ")}r.d(t,{cx:()=>n})},15959:e=>{"use strict";e.exports=function(e,t){e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}},16035:e=>{"use strict";e.exports=Object},17994:(e,t,r)=>{"use strict";var n=r(56568);e.exports=Function.prototype.bind||n},18132:(e,t,r)=>{"use strict";r.d(t,{j:()=>function e(t,r,a){var s,o;if((null==a?void 0:a(t,r))||t===r)return!0;if(t&&r&&(s=t.constructor)===r.constructor){if(s===Date)return t.getTime()===r.getTime();if(s===RegExp)return t.toString()===r.toString();if(s===Array){if((o=t.length)===r.length)for(;o--&&e(t[o],r[o],a););return -1===o}if(!s||(void 0===t?"undefined":(0,n._)(t))==="object"){for(s in o=0,t)if(i.call(t,s)&&++o&&!i.call(r,s)||!(s in r)||!e(t[s],r[s],a))return!1;return Object.keys(r).length===o}}return t!=t&&r!=r}});var n=r(54701),i=Object.prototype.hasOwnProperty},18267:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(14288),i=r(34021),a=r(52093);function s(e){return function(e){if(Array.isArray(e))return(0,n._)(e)}(e)||(0,i._)(e)||(0,a._)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},18332:e=>{"use strict";e.exports=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}},18975:(e,t,r)=>{"use strict";function n(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r.d(t,{_:()=>n})},19173:e=>{"use strict";function t(e){return"function"==typeof e||Array.isArray(e)||"[object Object]"===Object.prototype.toString.call(e)}e.exports=function(e){t(e)||(e={});for(var r=1,n=arguments.length;r<n;r++){var i=arguments[r];t(i)&&function e(r,n){if(r===n)return r;for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)&&"__proto__"!==i&&"constructor"!==i){var a=n[i],s=r[i];(void 0===s||void 0!==a)&&(t(s)&&t(a)?r[i]=e(s,a):r[i]="object"==typeof a&&null!==a?e(Array.isArray(a)?[]:{},a):a)}return r}(e,i)}return e}},19754:(e,t,r)=>{"use strict";r.d(t,{m:()=>a});var n=r(24752),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},20160:e=>{"use strict";e.exports=function(e,t,r){if(!Array.isArray(e))return[];Array.isArray(r)||(r=[]);var n=e.map(function(e,r){return{criteria:t.map(function(t){return e[t]}),index:r,value:e}});return n.sort(function(e,t){for(var n=-1;++n<e.criteria.length;){var i=function(e,t){if(e!==t){var r=void 0!==e,n=null===e,i=void 0!==t,a=null===t;if(!a&&e>t||n&&i||!r)return 1;if(!n&&e<t||a&&r||!i)return -1}return 0}(e.criteria[n],t.criteria[n]);if(i){if(n>=r.length)return i;if("desc"===r[n])return-i;return i}}return e.index-t.index}),n.map(function(e){return e.value})}},20531:e=>{"use strict";e.exports=ReferenceError},21361:(e,t,r)=>{"use strict";var n=r(19173);function i(e){return Object.keys(e).sort().reduce(function(t,r){return t[r]=e[r],t},{})}var a={_getQueries:function(e,t){var r=[];return r.push({indexName:e,params:a._getHitsSearchParams(t)}),t.getRefinedDisjunctiveFacets().forEach(function(n){r.push({indexName:e,params:a._getDisjunctiveFacetSearchParams(t,n)})}
vendor: 2,611 bytes, line 1
1),t.getRefinedHierarchicalFacets().forEach(function(n){var i=t.getHierarchicalFacetByName(n),s=t.getHierarchicalRefinement(n),o=t._getHierarchicalFacetSeparator(i);if(s.length>0&&s[0].split(o).length>1){var c=s[0].split(o).slice(0,-1).reduce(function(e,t,r){return e.concat({attribute:i.attributes[r],value:0===r?t:[e[e.length-1].value,t].join(o)})},[]);c.forEach(function(n,s){var o=a._getDisjunctiveFacetSearchParams(t,n.attribute,0===s);function u(e){return i.attributes.some(function(t){return t===e.split(":")[0]})}var l=(o.facetFilters||[]).reduce(function(e,t){if(Array.isArray(t)){var r=t.filter(function(e){return!u(e)});r.length>0&&e.push(r)}return"string"!=typeof t||u(t)||e.push(t),e},[]),h=c[s-1];s>0?o.facetFilters=l.concat(h.attribute+":"+h.value):l.length>0?o.facetFilters=l:delete o.facetFilters,r.push({indexName:e,params:o})})}}),r},_getCompositionQueries:function(e){return[{compositionID:e.index,requestBody:{params:a._getCompositionHitsSearchParams(e)}}]},_getHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};return t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s),i(n({},e.getQueryParams(),c))},_getCompositionHitsSearchParams:function(e){var t=e.facets.concat(e.disjunctiveFacets.map(function(t){return e.disjunctiveFacetsRefinements&&e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].length>0?"disjunctive("+t+")":t})).concat(a._getHitsHierarchicalFacetsAttributes(e)).sort(),r=a._getFacetFilters(e),s=a._getNumericFilters(e),o=a._getTagFilters(e),c={};t.length>0&&(c.facets=t.indexOf("*")>-1?["*"]:t),o.length>0&&(c.tagFilters=o),r.length>0&&(c.facetFilters=r),s.length>0&&(c.numericFilters=s);var u=e.getQueryParams();return delete u.highlightPreTag,delete u.highlightPostTag,delete u.index,i(n({},u,c))},_getDisjunctiveFacetSearchParams:function(e,t,r){var s=a._getFacetFilters(e,t,r),o=a._getNumericFilters(e,t),c=a._getTagFilters(e),u={hitsPerPage:0,page:0,analytics:!1,clickAnalytics:!1};c.length>0&&(u.tagFilters=c);var l=e.getHierarchicalFacetByName(t);return l?u.facets=a._getDisjunctiveHierarchicalFacetAttribute(e,l,r):u.facets=t,o.length>0&&(u.numericFilters=o),s.length>0&&(u.facetFilters=s),i(n({},e.getQueryParams(),u))},_getNumericFilters:function(e,t){if(e.numericFilters)return e.numericFilters;var r=[];return Object.keys(e.numericRefinements).forEach(function(n){var i=e.numericRefinements[n]||{};
1Object.keys(i).forEach(function(e){var a=i[e]||[];t!==n&&a.forEach(function(t){if(Array.isArray(t)){var i=t.map(function(t){return n+e+t});r.push(i)}else r.push(n+e+t)})})}),r},_getTagFilters:function(e){return e.tagFilters?e.tagFilters:e.tagRefinements.join(",")},_getFacetFilters:function(e,t,r){var n=[],i=e.facetsRefinements||{};Object.keys(i).sort().forEach(function(e){(i[e]||[]).slice().sort().forEach(function(t){n.push(e+":"+t)})});var a=e.facetsExcludes||{};Object.keys(a).sort().forEach(function(e){(a[e]||[]).sort().forEach(function(t){n.push(e+":-"+t)})});var s=e.disjunctiveFacetsRefinements||{};Object.keys(s).sort().forEach(function(e){var r=s[e]||[];if(e!==t&&r&&0!==r.length){var i=[];r.slice().sort().forEach(function(t){i.push(e+":"+t)}),n.push(i)}});var o=e.hierarchicalFacetsRefinements||{};return Object.keys(o).sort().forEach(function(i){var a,s,c=(o[i]||[])[0];if(void 0!==c){var u=e.getHierarchicalFacetByName(i),l=e._getHierarchicalFacetSeparator(u),h=e._getHierarchicalRootPath(u);if(t===i){if(-1===c.indexOf(l)||!h&&!0===r||h&&h.split(l).length===c.split(l).length)return;h?(s=h.split(l).length-1,c=h):(s=c.split(l).length-2,c=c.slice(0,c.lastIndexOf(l))),a=u.attributes[s]}else s=c.split(l).length-1,a=u.attributes[s];a&&n.push([a+":"+c])}}),n},_getHitsHierarchicalFacetsAttributes:function(e){return e.hierarchicalFacets.reduce(function(t,r){var n=e.getHierarchicalRefinement(r.name)[0];if(!n)return t.push(r.attributes[0]),t;var i=e._getHierarchicalFacetSeparator(r),a=n.split(i).length,s=r.attributes.slice(0,a+1);return t.concat(s)},[])},_getDisjunctiveHierarchicalFacetAttribute:function(e,t,r){var n=e._getHierarchicalFacetSeparator(t);if(!0===r){var i=e._getHierarchicalRootPath(t),a=0;return i&&(a=i.split(n).length),[t.attributes[a]]}var s=(e.getHierarchicalRefinement(t.name)[0]||"").split(n).length-1;return t.attributes.slice(0,s+1)},getSearchForFacetQuery:function(e,t,r,s){var o=s.isDisjunctiveFacet(e)?s.clearRefinements(e):s,c={facetQuery:t,facetName:e};return"number"==typeof r&&(c.maxFacetHits=r),i(n({},a._getHitsSearchParams(o),c))}};e.exports=a},21520:(e,t,r)=>{"use strict";function n(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{fallback:function(){}}).fallback;return"u"<typeof window?t():e({window:window})}r.d(t,{x:()=>n})},23516:(e,t,r)=>{"use strict";var n=Function.prototype.call,i=Object.prototype.hasOwnProperty;e.exports=r(17994).call(n,i)},23894:(e,t,r)=>{"use strict";r.d(t,{v:()=>a});var n=r(18267),i=Promise.resolve();function a(e){var t=null,r=!1,a=function(){for(var a=arguments.length,s=Array(a),o=0;o<a;o++)s[o]=arguments[o];null===t&&(t=i.then(function(){if(t=null,r){r=!1;return}e.apply(void 0,(0,n._)(s))}))};return a.wait=function(){if(null===t)throw Error("The deferred function should be called before calling `wait()`");return t},a.cancel=function(){null!==t&&(r=!0)},a}},26097:(e,t,r)=>{"use strict";r.d(t,{P:()=>a});var n=r(11038),i=r(18975);function a(e,t){return t?e.map(function(e){return(0,i._)((0,n._)({},e),{__queryID:t})}):e}},27647:(e,t,r)=>{"use strict";r.d(t,{m:()=>n});var n=(0,r(24752).createContext)(null)},27898:e=>{"use strict";function t(e,t){this._state=e,this._rawResults={};var r=this;e.params.forEach(function(e){var n=e.$$id;r[n]=t[n],r._rawResults[n]=t[n]})}t.prototype={constructor:t},e.exports=t},28793:(e,t,r)=>{"use strict";r.d(t,{r:()=>a});var n=r(24752),i=(0,n.createContext)(null);function a(){return(0,n.useContext)(i)}},28949:(e,t,r)=>{"use strict";function n(e){if(Array.isArray(e))return e}r.d(t,{_:()=>n})},28989:e=>{"use strict";e.exports=Object.getOwnPropertyDescriptor},29246:(e,t,r)=>{"use strict";var n=r(10548),i=r(74487),a=r(52268),s=r(87896),o=r(18332),c=r(91024),u=r(57842),l=r(20160),h=a.escapeFacetValue,f=a.unescapeFacetValue,d=r(44520);function p(e){var t={};return e.forEach(function(e,r){t[e]=r}),t}function m(e,t,r){t&&t[r]&&(e.stats=t[r])}function g(e,t,r){var a=t[0]||{};this._rawResults=t;var c=this;Object.keys(a).forEach(function(e){c[e]=a[e]});var l=i(r,{persistHierarchicalRootCount:!1});Object.keys(l).forEach(function(e){c[e]=l[e]}),this.processingTimeMS=t.reduce(function(e,t){return void 0===t.processingTimeMS?e:e+t.processingTimeMS},0),this.disjunctiveFacets=[],this.hierarchicalFacets=e.hierarchicalFacets.map(function(){return[]}),this.facets=[];var h=e.getRefinedDisjunctiveFacets(),g=p(e.facets),v=p(e.disjunctiveFacets),y=1,b=
1a.facets||{};Object.keys(b).forEach(function(t){var r=b[t],n=(l=e.hierarchicalFacets,s(l,function(e){return(e.attributes||[]).indexOf(t)>-1}));if(n){var i=n.attributes.indexOf(t),u=o(e.hierarchicalFacets,function(e){return e.name===n.name});c.hierarchicalFacets[u][i]={attribute:t,data:r,exhaustive:a.exhaustiveFacetsCount}}else{var l,h,f=-1!==e.disjunctiveFacets.indexOf(t),d=-1!==e.facets.indexOf(t);f&&(h=v[t],c.disjunctiveFacets[h]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(c.disjunctiveFacets[h],a.facets_stats,t)),d&&(h=g[t],c.facets[h]={name:t,data:r,exhaustive:a.exhaustiveFacetsCount},m(c.facets[h],a.facets_stats,t))}}),this.hierarchicalFacets=n(this.hierarchicalFacets),h.forEach(function(r){var n=t[y],s=n&&n.facets?n.facets:{},l=e.getHierarchicalFacetByName(r);Object.keys(s).forEach(function(t){var r,h=s[t];if(l){r=o(e.hierarchicalFacets,function(e){return e.name===l.name});var d=o(c.hierarchicalFacets[r],function(e){return e.attribute===t});if(-1===d)return;c.hierarchicalFacets[r][d].data=c.persistHierarchicalRootCount?u(c.hierarchicalFacets[r][d].data,h):i(h,c.hierarchicalFacets[r][d].data)}else{r=v[t];var p=a.facets&&a.facets[t]||{};c.disjunctiveFacets[r]={name:t,data:u(p,h),exhaustive:n.exhaustiveFacetsCount},m(c.disjunctiveFacets[r],n.facets_stats,t),e.disjunctiveFacetsRefinements[t]&&e.disjunctiveFacetsRefinements[t].forEach(function(n){!c.disjunctiveFacets[r].data[n]&&e.disjunctiveFacetsRefinements[t].indexOf(f(n))>-1&&(c.disjunctiveFacets[r].data[n]=0)})}}),y++}),e.getRefinedHierarchicalFacets().forEach(function(r){var n=e.getHierarchicalFacetByName(r),a=e._getHierarchicalFacetSeparator(n),s=e.getHierarchicalRefinement(r);0===s.length||s[0].split(a).length<2||t.slice(y).forEach(function(t){var r=t&&t.facets?t.facets:{};Object.keys(r).forEach(function(t){var u=r[t],l=o(e.hierarchicalFacets,function(e){return e.name===n.name}),h=o(c.hierarchicalFacets[l],function(e){return e.attribute===t});if(-1!==h){var f={};if(s.length>0&&!c.persistHierarchicalRootCount){var d=s[0].split(a)[0];f[d]=c.hierarchicalFacets[l][h].data[d]}c.hierarchicalFacets[l][h].data=i(f,u,c.hierarchicalFacets[l][h].data)}}),y++})}),Object.keys(e.facetsExcludes).forEach(function(t){var r=e.facetsExcludes[t],n=g[t];c.facets[n]={name:t,data:b[t],exhaustive:a.exhaustiveFacetsCount},r.forEach(function(e){c.facets[n]=c.facets[n]||{name:t},c.facets[n].data=c.facets[n].data||{},c.facets[n].data[e]=0})}),this.hierarchicalFacets=this.hierarchicalFacets.map(d(e)),this.facets=n(this.facets),this.disjunctiveFacets=n(this.disjunctiveFacets),this._state=e}function v(e,t){var r=s(e,function(e){return e.name===t});return r&&r.stats}function y(e,t,r,n,i){var a=s(i,function(e){return e.name===r}),o=a&&a.data&&a.data[n]?a.data[n]:0;return{type:t,attributeName:r,name:n,count:o,exhaustive:a&&a.exhaustive||!1}}g.prototype.getFacetByName=function(e){function t(t){return t.name===e}return s(this.facets,t)||s(this.disjunctiveFacets,t)||s(this.hierarchicalFacets,t)},g.DEFAULT_SORT=["isRefined:desc","count:desc","name:asc"],g.prototype.getFacetValues=function(e,t){var r,n=function(e,t){function r(e){return e.name===t}if(e._state.isConjunctiveFacet(t)){var n=s(e.facets,r);return n?Object.keys(n.data).map(function(r){var i=h(r);return{name:r,escapedValue:i,count:n.data[r],isRefined:e._state.isFacetRefined(t,i),isExcluded:e._state.isExcludeRefined(t,r)}}):[]}if(e._state.isDisjunctiveFacet(t)){var i=s(e.disjunctiveFacets,r);return i?Object.keys(i.data).map(function(r){var n=h(r);return{name:r,escapedValue:n,count:i.data[r],isRefined:e._state.isDisjunctiveFacetRefined(t,n)}}):[]}if(e._state.isHierarchicalFacet(t)){var a=s(e.hierarchicalFacets,r);if(!a)return a;var o=e._state.getHierarchicalFacetByName(t),c=e._state._getHierarchicalFacetSeparator(o),u=f(e._state.getHierarchicalRefinement(t)[0]||"");0===u.indexOf(o.rootPath)&&(u=u.replace(o.rootPath+c,""));var l=u.split(c);return l.unshift(t),function e(t,r,n){t.isRefined=t.name===(r[n]&&r[n].trim()),t.data&&t.data.forEach(function(t){e(t,r,n+1)})}(a,l,0),a}}(this,e);if(n){var a=i(t,{sortBy:g.DEFAULT_SORT,facetOrdering:!(t&&t.sortBy)}),o=this;return r=Array.isArray(n)?[e]:o._state.getHierarchicalFacetByName(n.name).attributes,function e(t,r,n,a){if(a=a||0,Array.isArray(r))return t(r,n[a]);if(!r.data||0===r.data.length)return r;var s=r.data.map(function(r){return e(t,r,n,a+1)});return i({data:t(s,n[a])},r)}(function(e,t){var r,n,i,s,u,h,f,d=o.renderingContent&&o.renderingContent.facetOrdering&&o.renderingContent.facetOrdering.values&&o.renderingContent.facetOrdering.values[t];if(a.facetOrdering&&d)return n=[],i=[],s=d.hide||[],u=(d.order||[]).reduce(function(e,t,r){return e[t]=r,e},{}),e.forEach(function(e){var t=e.path||e.name,r=s.indexOf(t)>-1;r||void 0===u[t]?r||i.push(e):n[u[t]]=e}),n=n.filter(function(e){return e}),"hidden"===(h=d.sortRemainingBy)?n:(r="alpha"===h?[["path","name"],["asc","asc"]]:[["count"],["desc"]],n.concat(l(i,r[0],r[1])));if(Array.isArray(a.sortBy)){var p=c(a.sortBy,g.DEFAULT_SORT),m=l(e,p[0],p[1]),v=d&&d.hide?d.hide:[];if(v.length>0){var y=[];return m.forEach(function(e){var t=e.path||e.name;-1===v.indexOf(t)&&y.push(e)}),y}return m}if("function"==typeof a.sortBy)return f=a.sortBy,e.sort(f);throw Error("options.sortBy is optional but if defined it must be either an array of str
1ing (predicates) or a sorting function")},n,r)}},g.prototype.getFacetStats=function(e){return this._state.isConjunctiveFacet(e)?v(this.facets,e):this._state.isDisjunctiveFacet(e)?v(this.disjunctiveFacets,e):void 0},g.prototype.getRefinements=function(){var e=this._state,t=this,r=[];return Object.keys(e.facetsRefinements).forEach(function(n){e.facetsRefinements[n].forEach(function(i){r.push(y(e,"facet",n,i,t.facets))})}),Object.keys(e.facetsExcludes).forEach(function(n){e.facetsExcludes[n].forEach(function(i){r.push(y(e,"exclude",n,i,t.facets))})}),Object.keys(e.disjunctiveFacetsRefinements).forEach(function(n){e.disjunctiveFacetsRefinements[n].forEach(function(i){r.push(y(e,"disjunctive",n,i,t.disjunctiveFacets))})}),Object.keys(e.hierarchicalFacetsRefinements).forEach(function(n){e.hierarchicalFacetsRefinements[n].forEach(function(i){var a,o,c,u,l,h,f,d,p,m,g;r.push((a=e,o=n,c=i,u=t.hierarchicalFacets,l=a.getHierarchicalFacetByName(o),h=a._getHierarchicalFacetSeparator(l),f=c.split(h),d=s(u,function(e){return e.name===o}),m=(p=f.reduce(function(e,t){var r=e&&s(e.data,function(e){return e.name===t});return void 0!==r?r:e},d))&&p.count||0,g=p&&p.exhaustive||!1,{type:"hierarchical",attributeName:o,name:p&&p.path||"",count:m,exhaustive:g}))})}),Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t];Object.keys(n).forEach(function(e){n[e].forEach(function(n){r.push({type:"numeric",attributeName:t,name:n,numericValue:n,operator:e})})})}),e.tagRefinements.forEach(function(e){r.push({type:"tag",attributeName:"_tags",name:e})}),r},e.exports=g},29964:e=>{"use strict";e.exports=EvalError},31080:(e,t,r)=>{"use strict";var n=r(24752),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useState,s=n.useEffect,o=n.useLayoutEffect,c=n.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!i(e,r)}catch(e){return!0}}var l="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),n=a({inst:{value:r,getSnapshot:t}}),i=n[0].inst,l=n[1];return o(function(){i.value=r,i.getSnapshot=t,u(i)&&l({inst:i})},[e,r,t]),s(function(){return u(i)&&l({inst:i}),e(function(){u(i)&&l({inst:i})})},[e]),c(r),r};t.useSyncExternalStore=void 0!==n.useSyncExternalStore?n.useSyncExternalStore:l},31722:(e,t,r)=>{"use strict";r.d(t,{J:()=>o});var n=r(11038),i=r(18975),a=r(5106);function s(e){var t,r,n;return new a.SearchResults(e,[{query:null!=(t=e.query)?t:"",page:null!=(r=e.page)?r:0,hitsPerPage:null!=(n=e.hitsPerPage)?n:20,hits:[],nbHits:0,nbPages:0,params:"",exhaustiveNbHits:!0,exhaustiveFacetsCount:!0,processingTimeMS:0,index:e.index}],{__isArtificial:!0})}function o(e){var t=e.getHelper(),r=e.getResults()||s(t.state),a=e.getScopedResults().map(function(t){var a=t.indexId===e.getIndexId()?r:s(t.helper.state);return(0,i._)((0,n._)({},t),{results:t.results||a})});return{results:r,scopedResults:a,recommendResults:t.lastRecommendResults}}},32412:(e,t,r)=>{"use strict";function n(e,t){if(!e)throw Error("Invariant failed")}r.d(t,{V:()=>n})},34021:(e,t,r)=>{"use strict";function n(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}r.d(t,{_:()=>n})},34062:e=>{"use strict";e.exports=function(e,t){return e.filter(function(r,n){return t.indexOf(r)>-1&&e.indexOf(r)===n})}},34672:(e,t,r)=>{"use strict";var n,i=r(70061),a=r(2217);try{n=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var s=!!n&&a&&a(Object.prototype,"__proto__"),o=Object,c=o.getPrototypeOf;e.exports=s&&"function"==typeof s.get?i([s.get]):"function"==typeof c&&function(e){return c(null==e?e:o(e))}},35095:(e,t,r)=>{"use strict";function n(e){return e.filter(function(e,t,r){return r.indexOf(e)===t})}r.d(t,{s:()=>n})},36098:e=>{"use strict";e.exports=function(e,t){if(null===e)return{};var r,n,i={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}},36912:(e,t,r)=>{"use strict";var n="u">typeof Symbol&&Symbol,i=r(82286);e.exports=function(){return"function"==typeof n&&"function"==typeof Symbol&&"symbol"==typeof n("foo")&&"symbol"==typeof Symbol("bar")&&i()}},37926:(e,t,r)=>{"use strict";e.exports=r(16035).getPrototypeOf||null},39247:(e,t,r)=>{"use strict";r.d(t,{c:()=>s});var n=r(11038),i=r(58721);function a(e,t){var r=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return t?e.replace(new RegExp("".concat(r?"/":"").concat(t,"(\\/|\\?|$)")),"$1"):e}function s(e){var t,r=e||{},s=r.beforePopState,o=r.singletonRouter,c=r.serverUrl,u=r.beforeStart,l=r.beforeDispose,h=r.routerOptions,f=function(){return!0};if("u"<typeof window)return(0,i.A)((0,n._)({getLocation:function(){return new URL(c)}},h));var d=!1,p=(0,i.A)((0,n._)({start:function(e){u&&u(e);var r,n=o.pathname;function i(){var e=o.asPath.split("?")[0],t=new URL(window.location.href).pathname;return t=a(t,o.locale,"/"!==e),e!==t}t=function(){o.pathname!==n||d||e(),d=!1},o.events.on("routeChangeComplete",t),(null==(r=o.router)?void 0:r._bps)&&(f=o.router._bps),o.beforePopState(function(e){return s?s({state:e,libraryBeforePopState:i,ownBeforePopState:f}):i()})},dispose:function(){l&&l(),o.events.off("routeChangeComplete",t),o.beforePopState(f)},push:function(e){var t=a(e,o.locale);o.push(t,void 0,{shallow:!0}),d=!0}},h));return p._isNextRouter=!0,p.$$type="ais.nextjs",p}},39488:e=>{"use strict";e.exports=URIError},41002:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(11038),i=r(18975);function a(e,t,r){return e.map(function(e,a){return(0,i._)((0,n._)({},e),{__position:r*t+a+1})})}},41301:(e,t,r)=>{"use strict";function n(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}r.d(t,{_:()=>n})},41425:(e,t,r)=>{"use strict";var n=r(73800),i=r(42218);e.exports={formats:r(95849),parse:i,stringify:n}},42043:(e,t,r)=>{"use strict";var n=r(90042),i=r(70061),a=i([n("%String.prototype.indexOf%")]);e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&a(e,".prototype.")>-1?i([r]):r}},42149:(e,t,r)=>{"use strict";r.d(t,{w:()=>s});
1var n=r(71252),i=r(24752),a=r(18132);function s(e){var t=(0,n._)((0,i.useState)(function(){return e}),2),r=t[0],s=t[1];return(0,a.j)(r,e)||s(e),r}},42218:(e,t,r)=>{"use strict";var n=r(58244),i=Object.prototype.hasOwnProperty,a=Array.isArray,s={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:n.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e,t,r){if(e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(1===t.arrayLimit?"":"s")+" allowed in an array.");return e},c=function(e,t){var r={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;c=c.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,t.throwOnLimitExceeded?u+1:u);if(t.throwOnLimitExceeded&&l.length>u)throw RangeError("Parameter limit exceeded. Only "+u+" parameter"+(1===u?"":"s")+" allowed.");var h=-1,f=t.charset;if(t.charsetSentinel)for(d=0;d<l.length;++d)0===l[d].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[d]?f="utf-8":"utf8=%26%2310003%3B"===l[d]&&(f="iso-8859-1"),h=d,d=l.length);for(d=0;d<l.length;++d)if(d!==h){var d,p,m,g=l[d],v=g.indexOf("]="),y=-1===v?g.indexOf("="):v+1;-1===y?(p=t.decoder(g,s.decoder,f,"key"),m=t.strictNullHandling?null:""):(p=t.decoder(g.slice(0,y),s.decoder,f,"key"),m=n.maybeMap(o(g.slice(y+1),t,a(r[p])?r[p].length:0),function(e){return t.decoder(e,s.decoder,f,"value")})),m&&t.interpretNumericEntities&&"iso-8859-1"===f&&(m=String(m).replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),g.indexOf("[]=")>-1&&(m=a(m)?[m]:m);var b=i.call(r,p);b&&"combine"===t.duplicates?r[p]=n.combine(r[p],m):b&&"last"!==t.duplicates||(r[p]=m)}return r},u=function(e,t,r,i){var a=0;if(e.length>0&&"[]"===e[e.length-1]){var s=e.slice(0,-1).join("");a=Array.isArray(t)&&t[s]?t[s].length:0}for(var c=i?t:o(t,r,a),u=e.length-1;u>=0;--u){var l,h=e[u];if("[]"===h&&r.parseArrays)l=r.allowEmptyArrays&&(""===c||r.strictNullHandling&&null===c)?[]:n.combine([],c);else{l=r.plainObjects?{__proto__:null}:{};var f="["===h.charAt(0)&&"]"===h.charAt(h.length-1)?h.slice(1,-1):h,d=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,p=parseInt(d,10);r.parseArrays||""!==d?!isNaN(p)&&h!==d&&String(p)===d&&p>=0&&r.parseArrays&&p<=r.arrayLimit?(l=[])[p]=c:"__proto__"!==d&&(l[d]=c):l={0:c}}c=l}return c},l=function(e,t,r,n){if(e){var a=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,s=/(\[[^[\]]*])/g,o=r.depth>0&&/(\[[^[\]]*])/.exec(a),c=o?a.slice(0,o.index):a,l=[];if(c){if(!r.plainObjects&&i.call(Object.prototype,c)&&!r.allowPrototypes)return;l.push(c)}for(var h=0;r.depth>0&&null!==(o=s.exec(a))&&h<r.depth;){if(h+=1,!r.plainObjects&&i.call(Object.prototype,o[1].slice(1,-1))&&!r.allowPrototypes)return;l.push(o[1])}if(o){if(!0===r.strictDepth)throw RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");l.push("["+a.slice(o.index)+"]")}return u(l,t,r,n)}},h=function(e){if(!e)return s;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.decodeDotInKeys&&"boolean"!=typeof e.decodeDotInKeys)throw TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(void 0!==e.throwOnLimitExceeded&&"boolean"!=typeof e.throwOnLimitExceeded)throw TypeError("`throwOnLimitExceeded` option must be a boolean");var t=void 0===e.charset?s.charset:e.charset,r=void 0===e.duplicates?s.duplicates:e.duplicates;if("combine"!==r&&"first"!==r&&"last"!==r)throw TypeError("The duplicates option must be either combine, first, or last");return{allowDots:void 0===e.allowDots?!0===e.decodeDotInKeys||s.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:s.allowEmptyArrays,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:s.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:s.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:s.arrayLimit,charset
1:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:s.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:s.comma,decodeDotInKeys:"boolean"==typeof e.decodeDotInKeys?e.decodeDotInKeys:s.decodeDotInKeys,decoder:"function"==typeof e.decoder?e.decoder:s.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:s.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:s.depth,duplicates:r,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:s.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:s.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:s.plainObjects,strictDepth:"boolean"==typeof e.strictDepth?!!e.strictDepth:s.strictDepth,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:s.strictNullHandling,throwOnLimitExceeded:"boolean"==typeof e.throwOnLimitExceeded&&e.throwOnLimitExceeded}};e.exports=function(e,t){var r=h(t);if(""===e||null==e)return r.plainObjects?{__proto__:null}:{};for(var i="string"==typeof e?c(e,r):e,a=r.plainObjects?{__proto__:null}:{},s=Object.keys(i),o=0;o<s.length;++o){var u=s[o],f=l(u,i[u],r,"string"==typeof e);a=n.merge(a,f,r)}return!0===r.allowSparse?a:n.compact(a)}},42761:(e,t,r)=>{"use strict";r.d(t,{E:()=>i});var n=r(24752),i="u">typeof window?n.useLayoutEffect:n.useEffect},44520:(e,t,r)=>{"use strict";e.exports=function(e){return function(t,r){var n,u,l,h,f,d=e.hierarchicalFacets[r],p=e.hierarchicalFacetsRefinements[d.name]&&e.hierarchicalFacetsRefinements[d.name][0]||"",m=e._getHierarchicalFacetSeparator(d),g=e._getHierarchicalRootPath(d),v=e._getHierarchicalShowParentLevel(d),y=a(e._getHierarchicalFacetSortBy(d)),b=t.every(function(e){return e.exhaustive}),_=(n=y,u=m,l=g,h=v,f=p,function(e,t,r){var a=e;if(r>0){var d=0;for(a=e;d<r;)a=i(a&&Array.isArray(a.data)?a.data:[],function(e){return e.isRefined}),d++}if(a){var p=Object.keys(t.data).map(function(e){return[e,t.data[e]]}).filter(function(e){var t,r,n,i,s,o;return t=e[0],r=a.path||l,n=f,i=u,s=l,o=h,(!s||0===t.indexOf(s)&&s!==t)&&(!s&&-1===t.indexOf(i)||s&&t.split(i).length-s.split(i).length==1||-1===t.indexOf(i)&&-1===n.indexOf(i)||0===n.indexOf(t)||0===t.indexOf(r+i)&&(o||0===t.indexOf(n)))});a.data=s(p.map(function(e){var r,n,i,a,s,l,h=e[0];return r=e[1],n=h,i=u,a=c(f),s=t.exhaustive,{name:(l=n.split(i))[l.length-1].trim(),path:n,escapedValue:o(n),count:r,isRefined:a===n||0===a.indexOf(n+i),exhaustive:s,data:null}}),n[0],n[1])}return e}),R=t;return g&&(R=t.slice(g.split(m).length)),R.reduce(_,{name:e.hierarchicalFacets[r].name,count:null,isRefined:!0,path:null,escapedValue:null,exhaustive:b,data:null})}};var n=r(52268),i=r(87896),a=r(91024),s=r(20160),o=n.escapeFacetValue,c=n.unescapeFacetValue},44924:(e,t,r)=>{"use strict";function n(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}r.d(t,{_:()=>n})},44960:(e,t,r)=>{"use strict";r.d(t,{R:()=>s});var n=r(24752),i=r(27647),a=r(32412);function s(){var e=(0,n.useContext)(i.m);return(0,a.V)(null!==e),e}},46022:(e,t,r)=>{"use strict";function n(e){return btoa(encodeURIComponent(JSON.stringify(e)))}r.d(t,{h:()=>n})},46809:(e,t,r)=>{"use strict";e.exports=r(31080)},46892:(e,t,r)=>{"use strict";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}r.d(t,{_:()=>n})},46915:e=>{"use strict";e.exports="3.29.1"},47442:e=>{"use strict";e.exports=Math.abs},47456:(e,t,r)=>{"use strict";function n(e={serializable:!0}){let t={};return{get(r,n,i={miss:()=>Promise.resolve()}){let a=JSON.stringify(r);if(a in t)return Promise.resolve(e.serializable?JSON.parse(t[a]):t[a]);let s=n();return s.then(e=>i.miss(e)).then(()=>s)},set:(r,n)=>(t[JSON.stringify(r)]=e.serializable?JSON.stringify(n):n,Promise.resolve(n)),delete:e=>(delete t[JSON.stringify(e)],Promise.resolve()),clear:()=>(t={},Promise.resolve())}}function i(e,t="up"){let r=Date.now();return{...e,status:t,lastUpdate:r,isUp:function(){return"up"===t||Date.now()-r>12e4},isTimedOut:function(){return"timed out"===t&&Date.now()-r<=12e4}}}r.d(t,{p:()=>d});
1var a=class extends Error{name="AlgoliaError";constructor(e,t){super(e),t&&(this.name=t)}},s=class extends a{stackTrace;constructor(e,t,r){super(e,r),this.stackTrace=t}},o=class extends s{constructor(e){super("Unreachable hosts - your application id may be incorrect. If the error persists, please visit our help center https://alg.li/support-unreachable-hosts or reach out to the Algolia Support team: https://alg.li/support",e,"RetryError")}},c=class extends s{status;constructor(e,t,r,n="ApiError"){super(e,r,n),this.status=t}},u=class extends a{response;constructor(e,t){super(e,"DeserializationError"),this.response=t}},l=class extends c{error;constructor(e,t,r,n){super(e,t,n,"DetailedApiError"),this.error=r}};function h(e){let t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return{...e,request:{...e.request,headers:{...e.request.headers,...t}}}}var f="5.53.0";function d(e,t,r){if(!e||"string"!=typeof e)throw Error("`appId` is missing.");if(!t||"string"!=typeof t)throw Error("`apiKey` is missing.");let{compression:a,...s}=r||{};return function({appId:e,apiKey:t,authMode:r,algoliaAgents:n,...a}){let s=function(e,t,r="WithinHeaders"){let n={"x-algolia-api-key":t,"x-algolia-application-id":e};return{headers:()=>"WithinHeaders"===r?n:{},queryParameters:()=>"WithinQueryParameters"===r?n:{}}}(e,t,r),d=function({hosts:e,hostsCache:t,baseHeaders:r,logger:n,baseQueryParameters:a,algoliaAgent:s,timeouts:f,requester:d,requestsCache:p,responsesCache:m,compress:g,compression:v}){async function y(e){let r=await Promise.all(e.map(e=>t.get(e,()=>Promise.resolve(i(e))))),n=r.filter(e=>e.isUp()),a=r.filter(e=>e.isTimedOut()),s=[...n,...a];return{hosts:s.length>0?s:e,getTimeout:(e,t)=>(0===a.length&&0===e?1:a.length+3+e)*t}}async function b(p,m,b){var _,R;let S,x,w=[],P=function(e,t){if("GET"!==e.method&&(void 0!==e.data||void 0!==t.data))return JSON.stringify(Array.isArray(e.data)?e.data:{...e.data,...t.data})}(p,m),F=(_=p.headers,R=m.headers,S={Accept:"application/json",...r,..._,...R},x={},Object.keys(S).forEach(e=>{let t=S[e];x[e.toLowerCase()]=t}),x),j="gzip"===v&&void 0!==P&&P.length>750&&("POST"===p.method||"PUT"===p.method);j&&void 0===g&&n.info("Compression is disabled because no compress method is available.");let O=j&&void 0!==g,E=O?await g(P):P;O&&(F["content-encoding"]="gzip");let A="GET"===p.method?{...p.data,...m.data}:{},T={...a,...p.queryParameters,...A};if(s.value&&(T["x-algolia-agent"]=s.value),m&&m.queryParameters)for(let e of Object.keys(m.queryParameters))m.queryParameters[e]&&"[object Object]"!==Object.prototype.toString.call(m.queryParameters[e])?T[e]=m.queryParameters[e].toString():T[e]=m.queryParameters[e];let I=0,k=async(e,r)=>{var a,s;let g,v,y=e.pop();if(void 0===y)throw new o(w.map(e=>h(e)));let _={...f,...m.timeouts},R={data:E,headers:F,method:p.method,url:(s=p.path,g=Object.keys(a=T).filter(e=>void 0!==a[e]).sort().map(e=>`${e}=${encodeURIComponent("[object Array]"===Object.prototype.toString.call(a[e])?a[e].join(","):a[e]).replace(/\+/g,"%20")}`).join("&"),v=`${y.protocol}://${y.url}${y.port?`:${y.port}`:""}/${"/"===s.charAt(0)?s.substring(1):s}`,g.length&&(v+=`?${g}`),v),connectTimeout:r(I,_.connect),responseTimeout:r(I,b?_.read:_.write)},S=t=>{let r={request:R,response:t,host:y,triesLeft:e.length};return w.push(r),r},x=await d.send(R);if(function({isTimedOut:e,status:t}){return e||function({isTimedOut:e,status:t}){return!e&&0==~~t}({isTimedOut:e,status:t})||2!=~~(t/100)&&4!=~~(t/100)}(x)){let a=S(x);return x.isTimedOut&&I++,n.info("Retryable failure",h(a)),await t.set(y,i(y,x.isTimedOut?"timed out":"down")),k(e,r)}if(function({status:e}){return 2==~~(e/100)}(x)){try{return JSON.parse(x.content)}catch(e){throw new u(e.message,x)}}throw S(x),function({content:e,status:t},r){try{let n=JSON.parse(e);if("error"in n)return new l(n.message,t,n.error,r);return new c(n.message,t,r)}catch{}return new c(e,t,r)}(x,w)},C=e.filter(e=>"readWrite"===e.accept||(b?"read"===e.accept:"write"===e.accept)),D=await y(C);return k([...D.hosts].reverse(),D.getTimeout)}return{hostsCache:t,requester:d,timeouts:f,logger:n,algoliaAgent:s,baseHeaders:r,baseQueryParameters:a,hosts:e,request:function(e,t={}){let n=e.useReadTransporter||"GET"===e.method;if(!0!==(t.cacheable||e.cacheable))return b(e,t,n);let i={request:e,requestOptions:t,transporter:{queryParameters:a,headers:r}};return m.get(i,()=>p.get(i,()=>p.set(i,b(e,t,n)).then(e=>Promise.all([p.delete(i),e]),e=>Promise.all([p.delete(i),Promise.reject(e)])).then(([e,t])=>t)),{miss:e=>m.set(i,e)})},requestsCache:p,responsesCache:m}}({hosts:[{url:`${e}-dsn.algolia.net`,accept:"read",protocol:"https"},{url:`${e}.algolia.net`,accept:"write",protocol:"https"}].concat(function(e){for(let t=e.length-1;t>0;t--){let r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}([{url:`${e}-1.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-2.algolianet.com`,accept:"readWrite",protocol:"https"},{url:`${e}-3.algolianet.com`,accept:"readWrite",protocol:"https"}
1])),...a,algoliaAgent:function({algoliaAgents:e,client:t,version:r}){let n,i=(n={value:`Algolia for JavaScript (${r})`,add(e){let t=`; ${e.segment}${void 0!==e.version?` (${e.version})`:""}`;return -1===n.value.indexOf(t)&&(n.value=`${n.value}${t}`),n}}).add({segment:t,version:r});return e.forEach(e=>i.add(e)),i}({algoliaAgents:n,client:"Lite",version:f}),baseHeaders:{"content-type":"text/plain",...s.headers(),...a.baseHeaders},baseQueryParameters:{...s.queryParameters(),...a.baseQueryParameters}});return{transporter:d,appId:e,apiKey:t,clearCache:()=>Promise.all([d.requestsCache.clear(),d.responsesCache.clear()]).then(()=>void 0),get _ua(){return d.algoliaAgent.value},addAlgoliaAgent(e,t){d.algoliaAgent.add({segment:e,version:t})},setClientApiKey({apiKey:e}){r&&"WithinHeaders"!==r?d.baseQueryParameters["x-algolia-api-key"]=e:d.baseHeaders["x-algolia-api-key"]=e},searchForHits(e,t){return this.search(e,t)},searchForFacets(e,t){return this.search(e,t)},customPost({path:e,parameters:t,body:r},n){if(!e)throw Error("Parameter `path` is required when calling `customPost`.");let i="/{path}".replace("{path}",e);return d.request({method:"POST",path:i,queryParameters:t||{},headers:{},data:r||{}},n)},getRecommendations(e,t){if(e&&Array.isArray(e)&&(e={requests:e}),!e)throw Error("Parameter `getRecommendationsParams` is required when calling `getRecommendations`.");if(!e.requests)throw Error("Parameter `getRecommendationsParams.requests` is required when calling `getRecommendations`.");let r={method:"POST",path:"/1/indexes/*/recommendations",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return d.request(r,t)},search(e,t){if(e&&Array.isArray(e)&&(e={requests:e.map(({params:e,...t})=>"facet"===t.type?{...t,...e,type:"facet"}:{...t,...e,facet:void 0,maxFacetHits:void 0,facetQuery:void 0})}),!e)throw Error("Parameter `searchMethodParams` is required when calling `search`.");if(!e.requests)throw Error("Parameter `searchMethodParams.requests` is required when calling `search`.");let r={method:"POST",path:"/1/indexes/*/queries",queryParameters:{},headers:{},data:e,useReadTransporter:!0,cacheable:!0};return d.request(r,t)}}}({appId:e,apiKey:t,timeouts:{connect:1e3,read:2e3,write:3e4},logger:{debug:(e,t)=>Promise.resolve(),info:(e,t)=>Promise.resolve(),error:(e,t)=>Promise.resolve()},requester:{send:function(e){return new Promise(t=>{let r=new XMLHttpRequest;r.open(e.method,e.url,!0),Object.keys(e.headers).forEach(t=>r.setRequestHeader(t,e.headers[t]));let n=(e,n)=>setTimeout(()=>{r.abort(),t({status:0,content:n,isTimedOut:!0})},e),i=n(e.connectTimeout,"Connection timeout"),a;r.onreadystatechange=()=>{r.readyState>r.OPENED&&void 0===a&&(clearTimeout(i),a=n(e.responseTimeout,"Socket timeout"))},r.onerror=()=>{0===r.status&&(clearTimeout(i),clearTimeout(a),t({content:r.responseText||"Network request failed",status:r.status,isTimedOut:!1}))},r.onload=()=>{clearTimeout(i),clearTimeout(a),t({content:r.responseText,status:r.status,isTimedOut:!1})},r.send(e.data)})}},algoliaAgents:[{segment:"Browser"}],authMode:"WithinQueryParameters",responsesCache:n(),requestsCache:n({serializable:!1}),hostsCache:function e(t){let r=[...t.caches],n=r.shift();return void 0===n?{get:(e,t,r={miss:()=>Promise.resolve()})=>t().then(e=>Promise.all([e,r.miss(e)])).then(([e])=>e),set:(e,t)=>Promise.resolve(t),delete:e=>Promise.resolve(),clear:()=>Promise.resolve()}:{get:(t,i,a={miss:()=>Promise.resolve()})=>n.get(t,i,a).catch(()=>e({caches:r}).get(t,i,a)),set:(t,i)=>n.set(t,i).catch(()=>e({caches:r}).set(t,i)),delete:t=>n.delete(t).catch(()=>e({caches:r}).delete(t)),clear:()=>n.clear().catch(()=>e({caches:r}).clear())}}({caches:[function(e){let t,r=`algolia-client-js-${e.key}`;function n(){return void 0===t&&(t=e.localStorage||window.localStorage),t}function i(){return JSON.parse(n().getItem(r)||"{}")}function a(){return new Promise(e=>setTimeout(e,0))}return{get:(t,s,o={miss:()=>Promise.resolve()})=>a().then(()=>{let a,c,u,l,{namespace:h,changed:f}=(a=e.timeToLive?1e3*e.timeToLive:null,c=i(),u=new Date().getTime(),l=!1,{namespace:Object.fromEntries(Object.entries(c).filter(([,e])=>e&&void 0!==e.timestamp&&(!a||!(e.timestamp+a<u))||(l=!0,!1))),changed:l}),d=h[JSON.stringify(t)];return(f&&n().setItem(r,JSON.stringify(h)),d)?d.value:s().then(e=>o.miss(e).then(()=>e))}),set:(e,t)=>a().then(()=>{let a=i();return a[JSON.stringify(e)]={timestamp:new Date().getTime(),value:t},n().setItem(r,JSON.stringify(a)),t}),delete:e=>a().then(()=>{let t=i();delete t[JSON.stringify(e)],n().setItem(r,JSON.stringify(t))}),clear:()=>Promise.resolve().then(()=>{n().removeItem(r)})}}({key:`${f}-${e}`}),n()]}),...s})}},47732:(e,t,r)=>{"use strict";r.d(t,{t:()=>a});var n=r(24752),i=(0,n.createContext)({countRef:{current:0},waitForResultsRef:null,ignoreMultipleHooksWarning:!1});function a(){return(0,n.useContext)(i)}},48209:(e,t,r)=>{"use strict";r.d(t,{Z:()=>b});var n=r(11038),i=r(52453),a=r(71252),s=r(28949),o=r(34021),c=r(44924),u=r(52093),l=r(24752),h=r(18132),f=r(31722),d=r(44960),p=r(3971),m=r(28793),g=r(19754),v=r(42149),y=r(56502);function b(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,b=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,_=(t=[r,b],(0,s._)(t)||(0,o._)(t)||(0,u._)(t)||(0,c._)()),R=_[0],S=_.slice(1),x=(0,a._)(S,1)[0],w=void 0===x?{}:x,P=w.skipSuspense,F=(0,i._)(w,["skipSuspense"]),j=(0,m.r)(),O=(0,g.m)(),E=(0,p.I)(),A=(0,d.R)(),T=(0,v.w)(void 0===R?{}:R),I=(0,v.w)(F),k=(0,l.useRef)(!0),C=(0,l.useRef)(null),D=(0,l.useRef)(E.status),N=(0,l.useMemo)(function(){var t=e(function(e,t){if(t){k.current=!0;return}if(k.current){var r=e.instantSearchInstance;e.widgetParams;var n=(0,i._)(e,["instantSearchInstance","widgetParams"]);(0,h.j)(n,C.current,function(e,t){return(null==e?void 0:e.constructor)===Function&&(null==t?void 0:t.constructor)===Function})&&r.status===D.current||(W(n),C.current=n,D.current=r.status)}},function(){k.current=!1});return(0,n._)({},t(T),I)},[e,T,I]),H=(0,a._)((0,l.useState)(function(){if(N.getWidgetRenderState){var e,t=A.getHelper(),r=A.getWidgetUiState({})[A.getIndexId()];t.state=(null==(e=N.getWidgetSearchParameters)?void 0:e.call(N,t.state,{uiState:r}))||t.state;var n=(0,f.J)(A),a=n.results,s=n.scopedResults,o=n.recommendResults,c=N.getWidgetRenderState({helper:t,parent:A,instantSearchInstance:E,results:"recommend"===N.dependsOn&&o&&O?o[O.recommendIdx.current++]:a,scopedResults:s,state:t.state,render
vendor: 13,463 bytes, line 1
1State:E.renderState,templatesConfig:E.templatesConfig,createURL:A.createURL,searchMetadata:{isSearchStalled:"stalled"===E.status},status:E.status,error:E.error});return c.widgetParams,(0,i._)(c,["widgetParams"])}return{}}),2),U=H[0],W=H[1];return(0,y.Q)({widget:N,parentIndex:A,props:T,shouldSsr:!!j,skipSuspense:void 0!==P&&P}),U}},48910:(e,t,r)=>{"use strict";var n=r(74487),i=r(87896),a=r(34062),s=r(19173),o=r(67884),c=r(36098),u=r(92582),l=r(51277),h=r(7863);function f(e,t){return Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every(function(e,r){return f(t[r],e)}):e===t}function d(e){var t=e?d._parseNumbers(e):{};void 0===t.userToken||l(t.userToken)||console.warn("[algoliasearch-helper] The `userToken` parameter is invalid. This can lead to wrong analytics.\n - Format: [a-zA-Z0-9_-]{1,64}"),this.facets=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||{};var r=this;Object.keys(t).forEach(function(e){var n=-1!==d.PARAMETERS.indexOf(e),i=void 0!==t[e];!n&&i&&(r[e]=t[e])})}function p(e){var t=parseFloat(e);return isFinite(t)?t:null}d.PARAMETERS=Object.keys(new d),d._parseNumbers=function(e){if(e instanceof d)return e;var t={};if(["aroundPrecision","aroundRadius","getRankingInfo","minWordSizefor2Typos","minWordSizefor1Typo","page","maxValuesPerFacet","distinct","minimumAroundRadius","hitsPerPage","minProximity"].forEach(function(r){var n=e[r];if("string"==typeof n){var i=parseFloat(n);isNaN(i)?t[r]=n:isFinite(i)?t[r]=i:t[r]=null}else"number"!=typeof n||isFinite(n)||(t[r]=null)}),Array.isArray(e.insideBoundingBox)&&(t.insideBoundingBox=e.insideBoundingBox.map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):e})),e.numericRefinements){var r={};Object.keys(e.numericRefinements).forEach(function(t){var n=e.numericRefinements[t]||{};r[t]={},Object.keys(n).forEach(function(e){var i=n[e].map(function(e){return Array.isArray(e)?e.map(function(e){return"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null}):"string"==typeof e?p(e):"number"!=typeof e||isFinite(e)?e:null});r[t][e]=i})}),t.numericRefinements=r}return s(e,t)},d.make=function(e){var t=new d(e);return(e.hierarchicalFacets||[]).forEach(function(e){if(e.rootPath){var r=t.getHierarchicalRefinement(e.name);r.length>0&&0!==r[0].indexOf(e.rootPath)&&(t=t.clearRefinements(e.name)),0===(r=t.getHierarchicalRefinement(e.name)).length&&(t=t.toggleHierarchicalFacetRefinement(e.name,e.rootPath))}}),t},d.validate=function(e,t){var r=t||{};return e.tagFilters&&r.tagRefinements&&r.tagRefinements.length>0?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."):e.tagRefinements.length>0&&r.tagFilters?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&&r.numericRefinements&&o(r.numericRefinements)?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."):o(e.numericRefinements)&&r.numericFilters?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},d.prototype={constructor:d,clearRefinements:function(e){var t={numericRefinements:this._clearNumericRefinements(e),facetsRefinements:h.clearRefinement(this.facetsRefinements,e,"conjunctiveFacet"),facetsExcludes:h.clearRefinement(this.facetsExcludes,e,"exclude"),disjunctiveFacetsRefinements:h.clearRefinement(this.disjunctiveFacetsRefinements,e,"disjunctiveFacet"),hierarchicalFacetsRefinements:h.clearRefinement(this.hierarchicalFacetsRefinements,e,"hierarchicalFacet")};return t.numericRefinements===this.numericRefinements&&t.facetsRefinements===this.facetsRefinements&&t.facetsExcludes===this.facetsExcludes&&t.disjunctiveFacetsRefinements===this.disjunctiveFacetsRefinements&&t.hierarchicalFacetsRefinements===this.hierarchicalFacetsRefinements?this:this.setQueryParameters(t)},clearTags:function(){return void 0===this.tagFilters&&0===this.tagRefinements.length?this:this.setQueryParameters({tagFilters:void 0,tagRefinements:[]})},setIndex:function(e){return e===this.index?this:this.setQueryParameters({index:e})},setQuery:function(e){return e===this.query?this:this.setQueryParameters({query:e})},setPage:function(e){return e===this.page?this:this.setQueryParameters({page:e})},setFacets:function(e){return this.setQueryParameters({facets:e})},setDisjunctiveFacets:function(e){return this.setQueryParameters({disjunctiveFacets:e})},setHitsPerPage:function(e){return this.hitsPerPage===e?this:this.setQueryParameters({hitsPerPage:e})},setTypoTolerance:function(e){return this.typoTolerance===e?this:this.setQueryParameters({typoTolerance:e})},addNumericRefinement:function(e,t,r){var n=u(r);if(this.isNumericRefined(e,t,n))return this;var i=s({},this.numericRefinements);return i[e]=s({},i[e]),i[e][t]?(i[e][t]=i[e][t].slice(),i[e][t].push(n)):i[e][t]=[n],this.setQueryParameters({numericRefinements:i})},getConjunctiveRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsRefinements[e]||[]},getDisjunctiveRefinements:function(e){return this.isDisjunctiveFacet(e)&&this.disjunctiveFacetsRefinements[e]||[]},getHierarchicalRefinement:function(e){return this.hierarchicalFacetsRefinements[e]||[]},getExcludeRefinements:function(e){return this.isConjunctiveFacet(e)&&this.facetsExcludes[e]||[]},removeNumericRefinement:function(e,t,r){return void 0!==r?this.isNumericRefined(e,t,r)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(n,i){return i===e&&n.op===t&&f(n.val,u(r))})}):this:void 0!==t?this.isNumericRefined(e,t)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(r,n){return n===e&&r.op===t})}):this:this.isNumericRefined(e)?this.setQueryParameters({numericRefinements:this._clearNumericRefinements(function(t,r){return r===e})}):this},getNumericRefinements:function(e){return this.numericRefinements[e]||{}},getNumericRefinement:function(e,t){return this.numericRefinements[e]&&this.numericRefinements[e][t]},_clearNumericRefinements:function(e){if(void 0===e)return o(this.numericRefinements)?{}:this.numericRefinements;if("string"==typeof e)return c(this.numericRefinements,[e]);if("function"==typeof e){var t=!1,r=this.numericRefinements,n=Object.keys(r).reduce(function(n,i){var a=r[i],s={};return Object.keys(a=a||{}).forEach(function(r){var n=a[r]||[],o=[];n.forEach(function(t){e({val:t,op:r},i,"numeric")||o.push(t)}),o.length!==n.length&&(t=!0),s[r]=o}),n[i]=s,n},{});return t?n: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 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 Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this:this.setQueryParameters({facetsRefinements:h.addRefinement(this.facetsRefinements,e,t)})},addExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this:this.setQueryParameters({facetsExcludes:h.addRefinement(this.facetsExcludes,e,t)})},addDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this:this.setQueryParameters({disjunctiveFacetsRefinements:h.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(e){return this.isConjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({facets:this.facets.filter(function(t){return t!==e})}):this},removeDisjunctiveFacet:function(e){return this.isDisjunctiveFacet(e)?this.clearRefinements(e).setQueryParameters({disjunctiveFacets:this.disjunctiveFacets.filter(function(t){return t!==e})}):this},removeHierarchicalFacet:function(e){return this.isHierarchicalFacet(e)?this.clearRefinements(e).setQueryParameters({hierarchicalFacets:this.hierarchicalFacets.filter(function(t){return t.name!==e})}):this},removeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsRefinements,e,t)?this.setQueryParameters({facetsRefinements:h.removeRefinement(this.facetsRefinements,e,t)}):this},removeExcludeRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return h.isRefined(this.facetsExcludes,e,t)?this.setQueryParameters({facetsExcludes:h.removeRefinement(this.facetsExcludes,e,t)}):this},removeDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return h.isRefined(this.disjunctiveFacetsRefinements,e,t)?this.setQueryParameters({disjunctiveFacetsRefinements:h.removeRefinement(this.disjunctiveFacetsRefinements,e,t)}):this},removeTagRefinement:function(e){if(!this.isTagRefined(e))return this;var t={tagRefinements:this.tagRefinements.filter(function(t){return t!==e})};return this.setQueryParameters(t)},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 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 Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsRefinements:h.toggleRefinement(this.facetsRefinements,e,t)})},toggleExcludeFacetRefinement:function(e,t){if(!this.isConjunctiveFacet(e))throw Error(e+" is not defined in the facets attribute of the helper configuration");return this.setQueryParameters({facetsExcludes:h.toggleRefinement(this.facetsExcludes,e,t)})},toggleDisjunctiveFacetRefinement:function(e,t){if(!this.isDisjunctiveFacet(e))throw Error(e+" is not defined in the disjunctiveFacets attribute of the helper configuration");return this.setQueryParameters({disjunctiveFacetsRefinements:h.toggleRefinement(this.disjunctiveFacetsRefinements,e,t)})},toggleHierarchicalFacetRefinement:function(e,t){if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration");var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e)),i={};return void 0!==this.hierarchicalFacetsRefinements[e]&&this.hierarchicalFacetsRefinements[e].length>0&&(this.hierarchicalFacetsRefinements[e][0]===t||0===this.hierarchicalFacetsRefinements[e][0].indexOf(t+r))?-1===t.indexOf(r)?i[e]=[]:i[e]=[t.slice(0,t.lastIndexOf(r))]:i[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(i,this.hierarchicalFacetsRefinements)})},addHierarchicalFacetRefinement:function(e,t){if(this.isHierarchicalFacetRefined(e))throw Error(e+" is already refined.");if(!this.isHierarchicalFacet(e))throw Error(e+" is not defined in the hierarchicalFacets attribute of the helper configuration.");var r={};return r[e]=[t],this.setQueryParameters({hierarchicalFacetsRefinements:n(r,this.hierarchicalFacetsRefinements)})},removeHierarchicalFacetRefinement:function(e){if(!this.isHierarchicalFacetRefined(e))return this;var t={};return t[e]=[],this.setQueryParameters({hierarchicalFacetsRefinements:n(t,this.hierarchicalFacetsRefinements)})},toggleTagRefinement:function(e){return this.isTagRefined(e)?this.removeTagRefinement(e):this.addTagRefinement(e)},isDisjunctiveFacet:function(e){return this.disjunctiveFacets.indexOf(e)>-1},isHierarchicalFacet:function(e){return void 0!==this.getHierarchicalFacetByName(e)},isConjunctiveFacet:function(e){return this.facets.indexOf(e)>-1},isFacetRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRef
1ined(this.facetsRefinements,e,t)},isExcludeRefined:function(e,t){return!!this.isConjunctiveFacet(e)&&h.isRefined(this.facetsExcludes,e,t)},isDisjunctiveFacetRefined:function(e,t){return!!this.isDisjunctiveFacet(e)&&h.isRefined(this.disjunctiveFacetsRefinements,e,t)},isHierarchicalFacetRefined:function(e,t){if(!this.isHierarchicalFacet(e))return!1;var r=this.getHierarchicalRefinement(e);return t?-1!==r.indexOf(t):r.length>0},isNumericRefined:function(e,t,r){if(void 0===r&&void 0===t)return!!this.numericRefinements[e];var n,a=this.numericRefinements[e]&&void 0!==this.numericRefinements[e][t];if(void 0===r||!a)return a;var s=u(r),o=void 0!==(n=this.numericRefinements[e][t],i(n,function(e){return f(e,s)}));return a&&o},isTagRefined:function(e){return -1!==this.tagRefinements.indexOf(e)},getRefinedDisjunctiveFacets:function(){var e=this,t=a(Object.keys(this.numericRefinements).filter(function(t){return Object.keys(e.numericRefinements[t]).length>0}),this.disjunctiveFacets);return Object.keys(this.disjunctiveFacetsRefinements).filter(function(t){return e.disjunctiveFacetsRefinements[t].length>0}).concat(t).concat(this.getRefinedHierarchicalFacets()).sort()},getRefinedHierarchicalFacets:function(){var e=this;return a(this.hierarchicalFacets.map(function(e){return e.name}),Object.keys(this.hierarchicalFacetsRefinements).filter(function(t){return e.hierarchicalFacetsRefinements[t].length>0})).sort()},getUnrefinedDisjunctiveFacets:function(){var e=this.getRefinedDisjunctiveFacets();return this.disjunctiveFacets.filter(function(t){return -1===e.indexOf(t)})},managedParameters:["index","facets","disjunctiveFacets","facetsRefinements","hierarchicalFacets","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacetsRefinements"],getQueryParams:function(){var e=this.managedParameters,t={},r=this;return Object.keys(this).forEach(function(n){var i=r[n];-1===e.indexOf(n)&&void 0!==i&&(t[n]=i)}),t},setQueryParameter:function(e,t){if(this[e]===t)return this;var r={};return r[e]=t,this.setQueryParameters(r)},setQueryParameters:function(e){if(!e)return this;var t=d.validate(this,e);if(t)throw t;var r=this,n=d._parseNumbers(e),i=Object.keys(this).reduce(function(e,t){return e[t]=r[t],e},{}),a=Object.keys(n).reduce(function(e,t){var r=void 0!==e[t],i=void 0!==n[t];return r&&!i?c(e,[t]):(i&&(e[t]=n[t]),e)},i);return new this.constructor(a)},resetPage:function(){return void 0===this.page?this:this.setPage(0)},_getHierarchicalFacetSortBy:function(e){return e.sortBy||["isRefined:desc","name:asc"]},_getHierarchicalFacetSeparator:function(e){return e.separator||" > "},_getHierarchicalRootPath:function(e){return e.rootPath||null},_getHierarchicalShowParentLevel:function(e){return"boolean"!=typeof e.showParentLevel||e.showParentLevel},getHierarchicalFacetByName:function(e){return i(this.hierarchicalFacets,function(t){return t.name===e})},getHierarchicalFacetBreadcrumb:function(e){if(!this.isHierarchicalFacet(e))return[];var t=this.getHierarchicalRefinement(e)[0];if(!t)return[];var r=this._getHierarchicalFacetSeparator(this.getHierarchicalFacetByName(e));return t.split(r).map(function(e){return e.trim()})},toString:function(){return JSON.stringify(this,null,2)}},e.exports=d},51277:e=>{"use strict";e.exports=function(e){return null!==e&&/^[a-zA-Z0-9_-]{1,64}$/.test(e)}},51869:(e,t,r)=>{"use strict";r.d(t,{A:()=>S});var n=r(46892),i=r(13129),a=r(11038),s=r(18975),o=r(52453),c=r(18267),u=r(5106),l=0,h=r(23894);function f(e){for(var t=e.getParent(),r=[e.getHelper().state];null!==t;)r=[t.getHelper().state].concat(r),t=t.getParent();return r}var d=r(12804),p=r(6865),m=r(61969),g=r(628),v=(0,d.V)({name:"index-widget"});function y(e,t){var r=t.state,n=t.recommendState,i=t.isPageReset,a=t._uiState;r!==e.state&&(e.state=r,e.emit("change",{state:e.state,results:e.lastResults,isPageReset:i,_uiState:a})),n!==e.recommendState&&(e.recommendState=n)}function b(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return e.reduce(function(e,r){return!(0,p.l)(r)&&(r.getWidgetUiState||r.getWidgetState)?r.getWidgetUiState?r.getWidgetUiState(e,t):r.getWidgetState(e,t):e},r)}function _(e,t){var r=t.initialSearchParameters,n=(0,o._)(t,["initialSearchParameters"]);return e.reduce(function(e,t){return!t.getWidgetSearchParameters||(0,p.l)(t)?e:"search"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):t.getWidgetSearchParameters(e,n)},r)}function R(e,t){var r=t.initialRecommendParameters,n=(0,o._)(t,["initialRecommendParameters"]);return e.reduce(function(e,t){return!(0,p.l)(t)&&"recommend"===t.dependsOn&&t.getWidgetParameters?t.getWidgetParameters(e,n):e},r)}var S=function(e){if(void 0===e||void 0===e.indexName&&!e.EXPERIMENTAL_isolated)throw Error(v("The `indexName` option is required."));var t=e.indexName,r=void 0===t?"":t,o=e.indexId,d=void 0===o?r:o,S=e.EXPERIMENTAL_isolated,x=void 0!==S&&S,w=[],P={},F=null,j=null,O=null,E=null,A=null,T=!1,I=!1;return{$$type:"ais.index",$$widgetType:"ais.index",_isolated:x,getIndexName:function(){return r},getIndexId:function(){return d},getHelper:function(){return O},getResults:function(){return(null==E?void 0:E.lastResults)?(E.lastResults._state=O.state,E.lastResults):null},getResultsForWidget:function(e){return"recommend"!==e.dependsOn||(0,p.l)(e)||void 0===e.$$id?this.getResults():(null==O?void 0:O.lastRecommendResults)?O.lastRecommendResults[e.$$id]:null},getPreviousState:function(){return A},getScopedResults:function(){var e=this.getParent();return function e(t){return t.filter(p.l).reduce(function(t,r){return t.concat.apply(t,[{indexId:r.getIndexId(),results:r.getResults(),helper:r.getHelper()}].concat((0,c._)(e(r.getWidgets()))))},[])}(e?e.getWidgets():0===r.length?this.getWidgets():[this])},getParent:function(){return x?null:j},createURL:function(e){return"function"==typeof e?F._createURL((0,n._)({},d,e(P))):F._createURL((0,n._)({},d,b(w,{searchParameters:e,helper:O})))},scheduleLocalSearch:(0,h.v)(function(){x&&(null==O||O.search())}),getWidgets:function(){return w},addWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(v("The `addWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.init&&"function"!=typeof e.render}))throw Error(v("The widget definition expects a `render` and/or an `init` method."));return r.forEach(function(e){(e.parent=t,!(0,p.l)(e))&&(F&&"recommend"===e.dependsOn?F._hasRecommendWidget=!0:F?F._hasSearchWidget=!0:"recommend"===e.dependsOn?T=!0:I=!0,"recommend"===e.dependsOn&&(e.$$id=l++))}),w=w.concat(r),F&&r.length&&(y(O,{state:_(w,{uiState:P,initialSearchParameters:O.state}),recommendState:R(w,{uiState:P,initialRecommendParameters:O.recommendState}),_uiState:P}),r.forEach(function(e){if(e.getRenderState){var r=e.getRenderState(F.renderState[t.getIndexId()]||{},(0,g.eX)(F,t,F._initialUiState));(0,g.r2)({renderState:r,instantSearchInstance:F,parent:t})}}),r.forEach(function(e){e.init&&e.init((0,g.eX)(F,t,F._initialUiState))}),x?this.scheduleLocalSearch():F.scheduleSearch()),this},removeWidgets:function(e){var t=this;if(!Array.isArray(e))throw Error(v("The `removeWidgets` method expects an array of widgets."));var r=e.reduce(function(e,t){return e.concat(Array.isArray(t)?t:[t])},[]);if(r.some(function(e){return"function"!=typeof e.dispose}))throw Error(v("The widget definition expects a `dispose` method."));if((w=w.filter(function(e){return -1===r.indexOf(e)}
1)).forEach(function(e){e.parent=void 0,(0,p.l)(e)||(F&&"recommend"===e.dependsOn?F._hasRecommendWidget=!0:F?F._hasSearchWidget=!0:"recommend"===e.dependsOn?T=!0:I=!0)}),F&&r.length){var n=r.reduce(function(e,r){var n=r.dispose({helper:O,state:e.cleanedSearchState,recommendState:e.cleanedRecommendState,parent:t});return(0,i._)(n,u.RecommendParameters)?e.cleanedRecommendState=n:n&&(e.cleanedSearchState=n),e},{cleanedSearchState:O.state,cleanedRecommendState:O.recommendState}),a=n.cleanedSearchState,s=n.cleanedRecommendState,o=F.future.preserveSharedStateOnUnmount?_(w,{uiState:P,initialSearchParameters:new u.SearchParameters({index:this.getIndexName()})}):_(w,{uiState:b(w,{searchParameters:a,helper:O}),initialSearchParameters:a});P=b(w,{searchParameters:o,helper:O}),O.setState(o),O.recommendState=s,w.length&&(x?this.scheduleLocalSearch():F.scheduleSearch())}return this},init:function(e){var t,n=this,i=e.instantSearchInstance,a=e.parent,s=e.uiState;if(null===O){F=i,j=a,P=s[d]||{};var o=i.mainHelper,l=_(w,{uiState:P,initialSearchParameters:new u.SearchParameters({index:r})}),h=R(w,{uiState:P,initialRecommendParameters:new u.RecommendParameters});(O=u(o.getClient(),l.index,l)).recommendState=h,O.search=function(){return x?(i.status="loading",n.render({instantSearchInstance:i}),i.compositionID?O.searchWithComposition():O.searchOnlyWithDerivedHelpers()):i.onStateChange?(i.onStateChange({uiState:i.mainIndex.getWidgetUiState({}),setUiState:function(e){return i.setUiState(e,!1)}}),o):o.search()},O.searchWithoutTriggeringOnStateChange=function(){return o.search()},O.searchForFacetValues=function(e,t,r,i){var a=m.p.apply(void 0,[o.state].concat((0,c._)(f(n)))).setQueryParameters(i);return o.searchForFacetValues(e,t,r,a)};var v=r?O:u({},"__empty_index__",{});E=(x?v:function(e,t){for(;e;){if(e._isolated)return e.getHelper();e=e.getParent()}return t}(a,o)).derive(function(){return m.p.apply(void 0,[o.state].concat((0,c._)(f(n))))},function(){return n.getHelper().recommendState});var S=null==(t=i._initialResults)?void 0:t[this.getIndexId()];if(null==S?void 0:S.results){var k=new u.SearchResults(new u.SearchParameters(S.state),S.results);E.lastResults=k,O.lastResults=k}if(null==S?void 0:S.recommendResults){var C=new u.RecommendResults(new u.RecommendParameters({params:S.recommendResults.params}),S.recommendResults.results);E.lastRecommendResults=C,O.lastRecommendResults=C}O.on("change",function(e){e.isPageReset&&function e(t){var r=t.filter(p.l);0!==r.length&&r.forEach(function(t){var r=t.getHelper();y(r,{state:r.state.resetPage(),recommendState:r.recommendState,isPageReset:!0}),e(t.getWidgets())})}(w)}),E.on("search",function(){i.scheduleStalledRender()}),E.on("result",function(e){var t=e.results;i.scheduleRender(),O.lastResults=t,A=null==t?void 0:t._state}),E.on("recommend:result",function(e){var t=e.recommend;i.scheduleRender(),O.lastRecommendResults=t.results}
1),w.forEach(function(e){if(e.getRenderState){var t=e.getRenderState(i.renderState[n.getIndexId()]||{},(0,g.eX)(i,n,s));(0,g.r2)({renderState:t,instantSearchInstance:i,parent:n})}}),w.forEach(function(e){e.init&&e.init((0,g.eX)(i,n,s))}),O.on("change",function(e){var t=e.state,r=e._uiState;P=b(w,{searchParameters:t,helper:O},r||{}),i.onStateChange||i.onInternalStateChange()}),S&&i.scheduleRender(),T&&(i._hasRecommendWidget=!0),I&&(i._hasSearchWidget=!0)}},render:function(e){var t=this,n=e.instantSearchInstance;"error"===n.status&&!n.mainHelper.hasPendingRequests()&&A&&O.setState(A);var i=this.getResults()||(null==E?void 0:E.lastRecommendResults)||x&&!r?w:w.filter(function(e){return e.shouldRender});(i=i.filter(function(e){return!e.shouldRender||e.shouldRender({instantSearchInstance:n})})).forEach(function(e){if(e.getRenderState){var r=e.getRenderState(n.renderState[t.getIndexId()]||{},(0,g.Ah)(n,t,e));(0,g.r2)({renderState:r,instantSearchInstance:n,parent:t})}}),i.forEach(function(e){e.render&&e.render((0,g.Ah)(n,t,e))})},dispose:function(){var e=this;w.forEach(function(t){t.dispose&&O&&t.dispose({helper:O,state:O.state,recommendState:O.recommendState,parent:e})}),F=null,j=null,null==O||O.removeAllListeners(),O=null,null==E||E.detach(),E=null},getWidgetUiState:function(e){return w.filter(p.l).filter(function(e){return!e._isolated}).reduce(function(e,t){return t.getWidgetUiState(e)},(0,s._)((0,a._)({},e),(0,n._)({},d,(0,a._)({},e[d],P))))},getWidgetState:function(e){return this.getWidgetUiState(e)},getWidgetSearchParameters:function(e,t){var r=t.uiState;return _(w,{uiState:r,initialSearchParameters:e})},shouldRender:function(){return!0},refreshUiState:function(){P=b(w,{searchParameters:this.getHelper().state,helper:this.getHelper()},P)},setIndexUiState:function(e){var t="function"==typeof e?e(P):e;F.setUiState(function(e){return(0,s._)((0,a._)({},e),(0,n._)({},d,t))})}}}},52093:(e,t,r)=>{"use strict";r.d(t,{_:()=>i});var n=r(14288);function i(e,t){if(e){if("string"==typeof e)return(0,n._)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return(0,n._)(e,t)}}},52268:e=>{"use strict";e.exports={escapeFacetValue:function(e){return"string"!=typeof e?e:String(e).replace(/^-/,"\\-")},unescapeFacetValue:function(e){return"string"!=typeof e?e:e.replace(/^\\-/,"-")}}},52453:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,i,a={};if("u">typeof Reflect&&Reflect.ownKeys){for(i=0,r=Reflect.ownKeys(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}if(a=function(e,t){if(null==e)return{};var r,n,i={},a=Object.getOwnPropertyNames(e);for(n=0;n<a.length;n++)r=a[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r]);return i}(e,t),Object.getOwnPropertySymbols)for(i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n]);return a}r.d(t,{_:()=>n})},52487:(e,t,r)=>{"use strict";r.d(t,{G:()=>eg});var n=r(52453),i=r(24752),a=r(27647),s=r(57176),o=r(11038),c=r(18267);function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(l=function(){return!!e})()}var h=r(54701),f=r(41301),d=r(99756),p=r(46892);function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var g=r(13129),v=r(88452),y=r(5106),b=r(18975),_=r(71252),R=r(21520);function S(e){if(e.appId&&e.apiKey)return[e.appId,e.apiKey];if(!e.transporter)return[e.applicationID,e.apiKey];var t=e.transporter,r=t.headers||t.baseHeaders,n=t.queryParameters||t.baseQueryParameters,i="x-algolia-application-id",a="x-algolia-api-key";return[r[i]||n[i],r[a]||n[a]]}var x=r(70365),w=r(60442),P="2.17.2",F="https://cdn.jsdelivr.net/npm/search-insights@".concat(P,"/dist/search-insights.min.js");function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.insightsClient,r=e.insightsInitParams,n=e.onEvent,i=e.$$internal,a=void 0!==i&&i,s=e.$$automatic,u=void 0!==s&&s,l=t;t||null===t||(0,R.x)(function(e){var t=e.window,r=t.AlgoliaAnalyticsObject||"aa";"string"==typeof r&&(l=t[r]),l||(t.AlgoliaAnalyticsObject=r,t[r]||(t[r]=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];t[r].queue||(t[r].queue=[]),t[r].queue.push(n)},t[r].version=P,t[r].shouldAddScript=!0),l=t[r])});var f=l||w.l;return function(e){var t,i,s,l=e.instantSearchInstance,d=l.middleware.filter(function(e){return"ais.insights"===e.instance.$$type&&e.instance.$$internal}).map(function(e){return e.creator});l.unuse.apply(l,(0,c._)(d));var p=(0,_._)(S(l.client),2),m=p[0],g=p[1],v=void 0,y=void 0,R=void 0,P=f.queue;return Array.isArray(P)&&(y=(t=(0,_._)(["setUserToken","init"].map(function(e){return(0,_._)((0,x.I)(P.slice().reverse(),function(t){return(0,_._)(t,1)[0]===e})||[],2)[1]}),2))[0],v=t[1]),f("getUserToken",null,function(e,t){R=E(t)}),(r||!O(f))&&f("init",(0,o._)({appId:m,apiKey:g,partial:!0},r)),{$$type:"ais.insights",$$internal:a,$$automatic:u,onStateChange:function(){},subscribe:function(){if(f.shouldAddScript){var e="[insights middleware]: could not load search-insights.js. Please load it manually following https://alg.li/insights-init";try{var t=document.createElement("script");t.async=!0,t.src=F,t.onerror=function(){l.emit("error",Error(e))},document.body.appendChild(t),f.shouldAddScript=!1}catch(t){f.shouldAddScript=!1,l.emit("error",Error(e))}}},started:function(){f("addAlgoliaAgent","insights-middleware"),s=l.mainHelper;var e,t,c,d,p,m,g,w,P,F,j,A,T=f.queue;Array.isArray(T)&&(y=(F=(0,_._)(["setUserToken","init"].map(function(e){return(0,_._)((0,x.I)(T.slice().reverse(),function(t){return(0,_._)(t,1)[0]===e})||[],2)[1]}),2))[0],v=F[1]),d=(null==(c=(e=l)._initialResults)||null==(t=c[e.indexName])?void 0:t.state)||{},p=e.mainHelper.state,i={userToken:d.userToken||p.userToken,clickAnalytics:d.clickAnalytics||p.clickAnalytics},u||s.overrideStateWithoutTriggeringChangeEvent((0,b._)((0,o._)({},s.state),{clickAnalytics:!0})),a||l.scheduleSearch();var I=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=E(e);if(r){var n=s.state.userToken;t?i():setTimeout(i,0)}function i(){s.overrideStateWithoutTriggeringChangeEvent((0,b._)((0,o._)({},s.state),{userToken:r})),n&&n!==e&&l.scheduleSearch()}};function k(e){I(e,!0),f("setUserToken",e)}var C=void 0,D=function(){if(("u"<typeof document?"undefined":(0,h._)(document))==="object"&&"string"==typeof document.cookie)for(var e="".concat("_ALGOLIA","="),t=document.cookie.split(";"),r=0;r<t.length;r++){for(var n=t[r];" "===n.charAt(0);)n=n.substring(1);if(0===n.indexOf(e))return n.substring(e.length,n.length)}}();C=D||"anonymous-".concat("xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}));var N=i.userToken;(null==r?void 0:r.userToken)&&(j=r.userToken),j?k(j):N?k(N):R?k(R):y?k(y):C&&(k(C),((null==r?void 0:r.useCookie)||(null==v?void 0:v.useCookie))&&(m=C,g=(null==r?void 0:r.cookieDuration)||(null==v?void 0:v.cookieDuration),(w=new Date).setTime(w.getTime()+(g||15552e6)),P="expires=".concat(w.toUTCString()),document.cookie="_ALGOLIA=".concat(m,";").concat(P,";path=/"))),f("onUserTokenChange",function(e){return I(e,!0)},{immediate:!0});var H=f;O(f)&&(H=function(e,t){var r=(0,_._)(S(l.client),2);return f(e,t,{headers:{"X-Algolia-Application-Id":r[0],"X-Algolia-API-Key":r[1]}})});var U=new Set;l.mainHelper.derivedHelpers[0].on("result",function(e){var t=e.results;t&&(!t.queryID||t.queryID!==A)&&(A=t.queryID,U.clear())}),l.sendEventToInsights=function(e){if(n)n(e,H);else if(e.insightsMethod){if("viewedObjectIDs"===e.insightsMethod){var t=e.payload,r=t.objectIDs.filter(function(e){return!U.has(e)});if(0===r.length)return;r.forEach(function(e){return U.add(e)}),t.objectIDs=r}e.payload.algoliaSource=["instantsearch"],u&&e.payload.algoliaSource.pu
1sh("instantsearch-automatic"),"internal"===e.eventModifier&&e.payload.algoliaSource.push("instantsearch-internal"),H(e.insightsMethod,e.payload)}}},unsubscribe:function(){f("onUserTokenChange",void 0),l.sendEventToInsights=w.l,s&&i&&(s.overrideStateWithoutTriggeringChangeEvent((0,o._)({},s.state,i)),l.scheduleSearch())}}}}function O(e){var t=(0,_._)((e.version||"").split(".").map(Number),2),r=t[0],n=t[1];return r>=3||2===r&&n>=6||1===r&&n>=10}function E(e){if(e)return"number"==typeof e?e.toString():e}var A=r(6865),T=r(628),I=r(58721);function k(e){return e.configure,(0,n._)(e,["configure"])}var C=r(80370),D=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.router,r=void 0===t?(0,I.A)():t,n=e.stateMapping,i=void 0===n?{$$type:"ais.simple",stateToRoute:function(e){return Object.keys(e).reduce(function(t,r){return(0,b._)((0,o._)({},t),(0,p._)({},r,k(e[r])))},{})},routeToState:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,r){var n=e[r];return(void 0===n?"undefined":(0,h._)(n))!=="object"||null===n?t:(0,b._)((0,o._)({},t),(0,p._)({},r,k(n)))},{})}}:n,a=e.$$internal,s=void 0!==a&&a;return function(e){var t=e.instantSearchInstance;t._createURL=function(e){var n=0===t.mainIndex.getWidgets().length?t._initialUiState:t.mainIndex.getWidgetUiState({}),a=Object.keys(e).reduce(function(t,r){return(0,b._)((0,o._)({},t),(0,p._)({},r,e[r]))},n),s=i.stateToRoute(a);return r.createURL(s)};var n=void 0,a=t._initialUiState;return{$$type:"ais.router({router:".concat(r.$$type||"__unknown__",", stateMapping:").concat(i.$$type||"__unknown__","})"),$$internal:s,onStateChange:function(e){var t=e.uiState,a=i.stateToRoute(t);void 0!==n&&(0,C.n)(n,a)||(r.write(a),n=a)},subscribe:function(){t._initialUiState=(0,o._)({},a,i.routeToState(r.read())),r.onUpdate(function(e){t.mainIndex.getWidgets().length>0&&t.setUiState(i.routeToState(e))})},started:function(){var e;null==(e=r.start)||e.call(r)},unsubscribe:function(){r.dispose()}}}},N=r(51869),H=function(e){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.descendantName,n=t.modifierName;return"".concat("ais","-").concat(e).concat(r?"-".concat(r):"").concat(n?"--".concat(n):"")}};function U(e,t){return(Array.isArray(t)?t:t.split(".")).reduce(function(e,t){return e&&e[t]},e)}var W=r(53649),L=H("Highlight");function Q(e){var t=W.sn.highlightPreTag,r=W.sn.highlightPostTag;return e.map(function(e){return e.isHighlighted?t+e.value+r:e.value}).join("")}var $=r(8969),M=new RegExp(/\w/i);function q(e){return e.some(function(e){return e.isHighlighted})?e.map(function(t,r){var n,i,a,s,c;return(0,b._)((0,o._)({},t),{isHighlighted:(a=e[r],s=(null==(n=e[r+1])?void 0:n.isHighlighted)||!0,c=(null==(i=e[r-1])?void 0:i.isHighlighted)||!0,M.test((0,$.x)(a.value))||c!==s?!a.isHighlighted:!c)})}):e.map(function(e){return(0,b._)((0,o._)({},e),{isHighlighted:!1})})}var B=r(54407),V=H("ReverseHighlight"),J=H("Snippet"),K=H("ReverseSnippet"),z=r(46022);function G(e){var t;return(null==(t=e.compositionFeedsResults)?void 0:t.length)?e.compositionFeedsResults:e.results||[]}function X(e){var t=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var i=0;return e.replace(/%s/g,function(){return encodeURIComponent(r[i++])})};return Object.keys(e).map(function(r){var n;return t("%s=%s",r,(n=e[r],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n))?JSON.stringify(e[r]):e[r])}).join("&")}function Z(e,t){var r=e[t.getIndexId()]||{};t.getHelper().setState(t.getWidgetSearchParameters(t.getHelper().state,{uiState:r})),t.getWidgets().filter(A.l).forEach(function(t){return Z(e,t)})}var Y=r(12804),ee=r(23894),et=(0,Y.V)({name:"instantsearch"});function er(){return"#"}var en={preserveSharedStateOnUnmount:!1,persistHierarchicalRootCount:!1},ei=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function t(e){(0,f._)(this,t),r=function(e,t){t=u(t);var r=l()?Reflect.construct(t,[],u(e).constructor):t.apply(e,void 0);if(r&&("object"===(0,h._)(r)||"function"==typeof r))return r;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,t),(0,p._)(r,"client",void 0),(0,p._)(r,"indexName",void 0),(0,p._)(r,"compositionID",void 0),(0,p._)(r,"insightsClient",void 0),(0,p._)(r,"onStateChange",null),(0,p._)(r,"future",void 0),(0,p._)(r,"helper",void 0),(0,p._)(r,"mainHelper",void 0),(0,p._)(r,"mainIndex",void 0),(0,p._)(r,"started",void 0),(0,p._)(r,"templatesConfig",void 0),(0,p._)(r,"render
1State",{}),(0,p._)(r,"_stalledSearchDelay",void 0),(0,p._)(r,"_searchStalledTimer",void 0),(0,p._)(r,"_initialUiState",void 0),(0,p._)(r,"_initialResults",void 0),(0,p._)(r,"_manuallyResetScheduleSearch",!1),(0,p._)(r,"_resetScheduleSearch",void 0),(0,p._)(r,"_createURL",void 0),(0,p._)(r,"_searchFunction",void 0),(0,p._)(r,"_mainHelperSearch",void 0),(0,p._)(r,"_hasSearchWidget",!1),(0,p._)(r,"_hasRecommendWidget",!1),(0,p._)(r,"_insights",void 0),(0,p._)(r,"middleware",[]),(0,p._)(r,"sendEventToInsights",void 0),(0,p._)(r,"status","idle"),(0,p._)(r,"error",void 0),(0,p._)(r,"scheduleSearch",(0,ee.v)(function(){r.started&&r.mainHelper.search()})),(0,p._)(r,"scheduleRender",(0,ee.v)(function(){var e,t=!(arguments.length>0)||void 0===arguments[0]||arguments[0];(null==(e=r.mainHelper)?void 0:e.hasPendingRequests())||(clearTimeout(r._searchStalledTimer),r._searchStalledTimer=null,t&&(r.status="idle",r.error=void 0)),r.mainIndex.render({instantSearchInstance:r}),r.emit("render")})),(0,p._)(r,"onInternalStateChange",(0,ee.v)(function(){var e=r.mainIndex.getWidgetUiState({});r.middleware.forEach(function(t){t.instance.onStateChange({uiState:e})})})),r.setMaxListeners(100);var r,n=e.indexName,i=e.compositionID,a=e.numberLocale,s=e.initialUiState,c=e.routing,d=void 0===c?null:c,m=e.insights,g=void 0===m?void 0:m,v=e.searchFunction,y=e.stalledSearchDelay,_=e.searchClient,S=void 0===_?null:_,x=e.insightsClient,P=void 0===x?null:x,F=e.onStateChange,O=e.future,E=void 0===O?(0,o._)({},en,e.future||{}):O;if(null===S)throw Error(et("The `searchClient` option is required."));if("function"!=typeof S.search)throw 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 S.addAlgoliaAgent&&S.addAlgoliaAgent("instantsearch.js (".concat("4.99.0",")")),P&&"function"!=typeof P)throw Error(et("The `insightsClient` option should be a function."));if(r.client=S,r.future=E,r.insightsClient=P,r.indexName=void 0===n?"":n,r.compositionID=i,r.helper=null,r.mainHelper=null,r.mainIndex=(0,N.A)({indexName:r.compositionID||r.indexName}),r.onStateChange=void 0===F?null:F,r.started=!1,r.templatesConfig={helpers:{formatNumber:function(e,t){var r;return r=Number(t(e)),r.toLocaleString(a)},highlight:function(e,t){try{var r,n,i,a,s,c,u,l,h,f=JSON.parse(e);return t((n=(r=(0,b._)((0,o._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(U(s._highlightResult,n)||{}).value,h=L({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(W.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(W.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe highlight helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseHighlight:function(e,t){try{var r,n,i,a,s,c,u,l,h,f=JSON.parse(e);return t((n=(r=(0,b._)((0,o._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(U(s._highlightResult,n)||{}).value,h=V({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),Q(q((0,B.I)(void 0===l?"":l))).replace(RegExp(W.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(W.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n The reverseHighlight helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},snippet:function(e,t){try{var r,n,i,a,s,c,u,l,h,f=JSON.parse(e);return t((n=(r=(0,b._)((0,o._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasses,u=void 0===c?{}:c,l=(U(s._snippetResult,n)||{}).value,h=J({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),(void 0===l?"":l).replace(RegExp(W.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(W.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\nThe snippet helper expects a JSON object of the format:\n{ "attribute": "name", "highlightedTagName": "mark" }')}},reverseSnippet:function(e,t){try{var r,n,i,a,s,c,u,l,h,f=JSON.parse(e);return t((n=(r=(0,b._)((0,o._)({},f),{hit:this})).attribute,i=r.highlightedTagName,a=void 0===i?"mark":i,s=r.hit,c=r.cssClasse
1s,u=void 0===c?{}:c,l=(U(s._snippetResult,n)||{}).value,h=K({descendantName:"highlighted"})+(u.highlighted?" ".concat(u.highlighted):""),Q(q((0,B.I)(void 0===l?"":l))).replace(RegExp(W.sn.highlightPreTag,"g"),"<".concat(a,' class="').concat(h,'">')).replace(RegExp(W.sn.highlightPostTag,"g"),"</".concat(a,">"))))}catch(e){throw Error('\n The reverseSnippet helper expects a JSON object of the format:\n { "attribute": "name", "highlightedTagName": "mark" }')}},insights:function(e,t){try{var r,n=JSON.parse(e),i=n.method,a=n.payload;return t((r=(0,o._)({objectIDs:[this.objectID]},a),function(e){var t,r=e.method,n=e.payload;if((void 0===n?"undefined":(0,h._)(n))!=="object")throw Error("The insights helper expects the payload to be an object.");try{t=(0,z.h)(n)}catch(e){throw Error("Could not JSON serialize the payload object.")}return'data-insights-method="'.concat(r,'" data-insights-payload="').concat(t,'"')}({method:i,payload:r})))}catch(e){throw Error('\nThe insights helper expects a JSON object of the format:\n{ "method": "method-name", "payload": { "eventName": "name of the event" } }')}}},compileOptions:{}},r._stalledSearchDelay=void 0===y?200:y,r._searchStalledTimer=null,r._createURL=er,r._initialUiState=void 0===s?{}:s,r._initialResults=null,r._insights=g,v&&(r._searchFunction=v),r.sendEventToInsights=w.l,d){var I="boolean"==typeof d?{}:d;I.$$internal=!0,r.use(D(I))}if(g){var k="boolean"==typeof g?{}:g;k.$$internal=!0,r.use(j(k))}return(0,R.x)(function(e){var t,r;return(null==(r=e.window.navigator)||null==(t=r.userAgent)?void 0:t.indexOf("Algolia Crawler"))>-1},{fallback:function(){return!1}})&&r.use(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.$$internal,r=void 0!==t&&t;return function(e){var t=e.instantSearchInstance,n={widgets:[]},i=document.createElement("meta"),a=document.querySelector("head");return i.name="instantsearch:widgets",{$$type:"ais.metadata",$$internal:r,onStateChange:function(){},subscribe:function(){setTimeout(function(){var e;n.ua=(e=t.client).transporter&&e.transporter.userAgent?e.transporter.userAgent.value:e._ua,function e(t,r,n){var i=(0,T.eX)(r,r.mainIndex,r._initialUiState);t.forEach(function(t){var a={};if(t.getWidgetRenderState){var s=t.getWidgetRenderState(i);s&&s.widgetParams&&(a=s.widgetParams)}var o=Object.keys(a).filter(function(e){return void 0!==a[e]});n.widgets.push({type:t.$$type,widgetType:t.$$widgetType,params:o}),(0,A.l)(t)&&e(t.getWidgets(),r,n)})}(t.mainIndex.getWidgets(),t,n),t.middleware.forEach(function(e){return n.widgets.push({middleware:!0,type:e.instance.$$type,internal:e.instance.$$internal})}),i.content=JSON.stringify(n),a.appendChild(i)},0)},started:function(){},unsubscribe:function(){i.remove()}}}}({$$internal:!0})),r}return t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e),(0,d._)(t,[{key:"_isSearchStalled",get:function(){return"stalled"===this.status}},{key:"use",value:function(){for(var e=this,t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];var i=r.map(function(t){var r=(0,o._)({$$type:"__unknown__",$$internal:!1,subscribe:w.l,started:w.l,unsubscribe:w.l,onStateChange:w.l},t({instantSearchInstance:e}));return e.middleware.push({creator:t,instance:r}),r});return this.started&&i.forEach(function(e){e.subscribe(),e.started()}),this}},{key:"unuse",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.middleware.filter(function(e){return t.includes(e.creator)}).forEach(function(e){return e.instance.unsubscribe()}),this.middleware=this.middleware.filter(function(e){return!t.includes(e.creator)}),this}},{key:"EXPERIMENTAL_use",value:function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return this.use.apply(this,(0,c._)(t))}},{key:"addWidget",value:function(e){return this.addWidgets([e])}},{key:"addWidgets",value:function(e){if(!Array.isArray(e))throw Error(et("The `addWidgets` method expects an array of widgets. Please use `addWidget`."));if(this.compositionID&&e.some(function(e){return!Array.isArray(e)&&(0,A.l)(e)&&!e._isolated}))throw Error(et("The `index` widget cannot be used with a composition-based InstantSearch implementation."));return this.mainIndex.addWidgets(e),this}},{key:"removeWidget",value:function(e){return this.removeWidgets([e])}},{key:"removeWidgets",value:function(e){if(!Array.isArray(e))throw Error(et("The `removeWidgets` method expects an array of widgets. Please use `removeWidget`."));return this.mainIndex.removeWidgets(e),this}},{key:"start",value:function(){var e=this;if(this.started)throw Error(et("The `start` method has already been called once."));var t=this.mainHelper||y(this.client,this.indexName,void 0,{persistHierarchicalRootCount:this.future.persistHierarchicalRootCount});if(this.compositionID&&(t.searchForFacetValues=t.searchForCompositionFacetValues.bind(t)),t.search=function(){return e.status="loading",e.scheduleRender(!1),e._hasSearchWidget&&(e.compositionID?t.searchWithComposition():t.searchOnlyWithDerivedHelpers()),e._hasRecommendWidget&&t.recommend(),t},this._searchFunction){var r={search:function(){return new Promise(w.l)}};this._mainHelperSearch=t.search.bind(t),t.search=function(){var n=e.mainIndex.getHelper(),i=y(r,n.state.index,n.state);return i.once("search",function(t){var r=t.state;n.overrideStateWithoutTriggeringChangeEvent(r),e._mainHelperSearch()}),i.on("change",function(e){var t=e.state;n.setState(t)}),e._searchFunction(i),t}}if(t.on("error",function(t){var r=t.error;if(!(0,g._)(r,Error)){var n=r;r=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},Error(n.message))}r.error=r,e.error=r,e.status="error",e.scheduleRender(!1),e.emit("error",r)}),this.mainHelper=t,this.middleware.forEach(function(e){e.instance.subscribe()}),this.mainIndex.init({instantSearchInstance:this,parent:null,uiState:this._initialUiState}),this._initialResults){!function(e,t){if(t&&("transporter"in e&&!e._cacheHydrated||e._useCache&&"function"==typeof e.addAlgoliaAgent)){var r=[Object.keys(t).reduce(function(e,r){var n=t[r],i=n.state,a=n.requestParam
1s,s=G(n),c=s&&i?s.map(function(e,t){return(0,o._)({indexName:i.index||e.index},(null==a?void 0:a[t])||e.params?{params:X((null==a?void 0:a[t])||e.params.split("&").reduce(function(e,t){var r=(0,_._)(t.split("="),2),n=r[0],i=r[1];return e[n]=i?decodeURIComponent(i):"",e},{}))}:{})}):[];return e.concat(c)},[])],n=Object.keys(t).reduce(function(e,r){var n=G(t[r]);return n?e.concat(n):e},[]);if("transporter"in e&&!e._cacheHydrated){e._cacheHydrated=!0;var i=e.search.bind(e);e.search=function(t){for(var r=arguments.length,n=Array(r>1?r-1:0),a=1;a<r;a++)n[a-1]=arguments[a];var s=Array.isArray(t)?t.map(function(e){return(0,b._)((0,o._)({},e),{params:X(e.params)})}):X(t.requestBody.params);return e.transporter.responsesCache.get({method:"search",args:[s].concat((0,c._)(n))},function(){return i.apply(void 0,[t].concat((0,c._)(n)))})},e.transporter.responsesCache.set({method:"search",args:r},{results:n})}if(!("transporter"in e)){var a="/1/indexes/*/queries_body_".concat(JSON.stringify({requests:r}));e.cache=(0,b._)((0,o._)({},e.cache),(0,p._)({},a,JSON.stringify({results:Object.keys(t).map(function(e){return G(t[e])})})))}}}(this.client,this._initialResults),this.mainHelper._recommendCache=Object.keys(n=this._initialResults).reduce(function(e,t){var r=n[t];return r.recommendResults?(0,o._)({},e,r.recommendResults.results):e},{});var n,i=this.scheduleSearch;this.scheduleSearch=(0,ee.v)(w.l),this._manuallyResetScheduleSearch?this._resetScheduleSearch=function(){e.scheduleSearch=i}:(0,ee.v)(function(){e.scheduleSearch=i})()}else this.mainIndex.getWidgets().length>0&&this.scheduleSearch();this.helper=this.mainIndex.getHelper(),this.started=!0,this.middleware.forEach(function(e){e.instance.started()}),void 0===this._insights&&t.derivedHelpers[0].once("result",function(){e.mainIndex.getScopedResults().some(function(e){var t=e.results;return null==t?void 0:t._automaticInsights})&&e.use(j({$$internal:!0,$$automatic:!0}))})}},{key:"dispose",value:function(){var e;this.scheduleSearch.cancel(),this.scheduleRender.cancel(),clearTimeout(this._searchStalledTimer),this.removeWidgets(this.mainIndex.getWidgets()),this.mainIndex.dispose(),this.started=!1,this.removeAllListeners(),null==(e=this.mainHelper)||e.removeAllListeners(),this.mainHelper=null,this.helper=null,this.middleware.forEach(function(e){e.instance.unsubscribe()})}},{key:"scheduleStalledRender",value:function(){var e=this;this._searchStalledTimer||(this._searchStalledTimer=setTimeout(function(){e.status="stalled",e.scheduleRender()},this._stalledSearchDelay))}},{key:"setUiState",value:function(e){var t=this,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1];if(!this.mainHelper)throw Error(et("The `start` method needs to be called before `setUiState`."));this.mainIndex.refreshUiState();var n="function"==typeof e?e(this.mainIndex.getWidgetUiState({})):e;this.onStateChange&&r?this.onStateChange({uiState:n,setUiState:function(e){Z("function"==typeof e?e(n):e,t.mainIndex),t.scheduleSearch(),t.onInternalStateChange()}}):(Z(n,this.mainIndex),this.scheduleSearch(),this.onInternalStateChange())}},{key:"getUiState",value:function(){return this.started&&this.mainIndex.refreshUiState(),this.mainIndex.getWidgetUiState({})}},{key:"createURL",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!this.started)throw Error(et("The `start` method needs to be called before `createURL`."));return this._createURL(e)}},{key:"refresh",value:function(){if(!this.mainHelper)throw Error(et("The `start` method needs to be called before `refresh`."));this.mainHelper.clearCache().search()}}]),t}(v),ea=r(46809),es="7.33.1",eo=r(18132),ec=r(14931),eu=r(28793),el=r(19754),eh=r(47732),ef=r(23727),ed=["react (".concat(i.version,")"),"react-instantsearch (".concat(es,")"),"react-instantsearch-core (".concat(es,")")],ep="react-instantsearch-server (".concat(es,")");function em(e,t){"function"==typeof e.addAlgoliaAgent&&t.filter(Boolean).forEach(function(t){e.addAlgoliaAgent(t)})}function eg(e){var t=e.children,r=function(e){var t=(0,ec.C)(),r=(0,eu.r)(),n=(0,el.m)(),a=(0,eh.t)().waitForResultsRef,s=null==n?void 0:n.initialResults,u=(0,i.useRef)(e),l=r||s||a,h=(0,i.useRef)(null);if((null==n?void 0:n.ssrSearchRef)&&(h=n.ssrSearchRef),null===h.current){var f,d,p=new ei(e);p._schedule=function(e){p._schedule.queue.push(e),clearTimeout(p._schedule.timer),p._schedule.timer=setTimeout(function(){p._schedule.queue.forEach(function(e){e()}),p._schedule.queue=[]},0)},p._schedule.queue=[],l&&(p._initialResults=s||{},p._manuallyResetScheduleSearch=!0),em(e.searchClient,(0,c._)(ed).concat([r&&ep,(d="u">typeof window&&(null==(f=window.next)?void 0:f.version)||(void 0!==ef?null==ef.env?void 0:"":void 0))?"next.js (".concat(d,")"):null])),l&&p.start(),r&&r.notifyServer({search:p}
1),e.routing,h.current=p}var m,g=h.current,v=u.current;v.indexName!==e.indexName&&(g.helper.setIndex(e.indexName||"").search(),u.current=e),v.searchClient!==e.searchClient&&(em(e.searchClient,(0,c._)(ed).concat([r&&ep])),g.mainHelper.setClient(e.searchClient).search(),u.current=e),v.onStateChange!==e.onStateChange&&(g.onStateChange=e.onStateChange,u.current=e),v.searchFunction!==e.searchFunction&&(g._searchFunction=e.searchFunction,u.current=e),v.stalledSearchDelay!==e.stalledSearchDelay&&(g._stalledSearchDelay=null!=(m=e.stalledSearchDelay)?m:200,u.current=e),(0,eo.j)(v.future,e.future)||(g.future=(0,o._)({},en,e.future),u.current=e);var y=(0,i.useRef)(null);return(0,ea.useSyncExternalStore)((0,i.useCallback)(function(){var e=h.current;return null===y.current?e.started||(e.start(),t()):(clearTimeout(y.current),e._preventWidgetCleanup=!1),function(){null!=n&&n.ssrSearchRef||(clearTimeout(e._schedule.timer),y.current=setTimeout(function(){e.dispose()}),e._preventWidgetCleanup=!0)}},[t,n]),function(){return h.current},function(){return h.current})}((0,n._)(e,["children"]));return r.started?i.default.createElement(s.t.Provider,{value:r},i.default.createElement(a.m.Provider,{value:r.mainIndex},t,i.default.createElement(ev,{search:r}))):null}function ev(e){var t=e.search;return(0,i.useEffect)(function(){t._resetScheduleSearch&&t._resetScheduleSearch()},[t]),null}},53649:(e,t,r)=>{"use strict";r.d(t,{FU:()=>u,sn:()=>l,ef:()=>p,S8:()=>d});var n=r(46892);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var a=r(11038),s=r(18975),o=r(8969),c=r(61541),u={highlightPreTag:"__ais-highlight__",highlightPostTag:"__/ais-highlight__"},l={highlightPreTag:"<mark>",highlightPostTag:"</mark>"};function h(e){return(0,o.i)(e).replace(RegExp(u.highlightPreTag,"g"),l.highlightPreTag).replace(RegExp(u.highlightPostTag,"g"),l.highlightPostTag)}function f(e){return(0,c.Q)(e)&&"string"!=typeof e.value?Object.keys(e).reduce(function(t,r){return(0,s._)((0,a._)({},t),(0,n._)({},r,f(e[r])))},{}):Array.isArray(e)?e.map(f):(0,s._)((0,a._)({},e),{value:h(e.value)})}function d(e){return void 0===e.__escaped&&((e=e.map(function(e){var t=e;if(null==t)throw TypeError("Cannot destructure "+t);var r=i({},e);return r._highlightResult&&(r._highlightResult=f(r._highlightResult)),r._snippetResult&&(r._snippetResult=f(r._snippetResult)),r})).__escaped=!0),e}function p(e){return e.map(function(e){return(0,s._)((0,a._)({},e),{highlighted:h(e.highlighted)})})}},54257:(e,t,r)=>{"use strict";var n=r(88452);function i(e,t,r){this.main=e,this.fn=t,this.recommendFn=r,this.lastResults=null,this.lastRecommendResults=null}r(15959)(i,n),i.prototype.detach=function(){this.removeAllListeners(),this.main.detachDerivedHelper(this)},i.prototype.getModifiedState=function(e){return this.fn(e)},i.prototype.getModifiedRecommendState=function(e){return this.recommendFn(e)},e.exports=i},54407:(e,t,r)=>{"use strict";r.d(t,{I:()=>i});var n=r(53649);function i(e){var t=n.sn.highlightPostTag,r=n.sn.highlightPreTag,i=e.split(r),a=i.shift(),s=a?[{value:a,isHighlighted:!1}]:[];return i.forEach(function(e){var r=e.split(t);s.push({value:r[0],isHighlighted:!0}),""!==r[1]&&s.push({value:r[1],isHighlighted:!1})}),s}},54701:(e,t,r)=>{"use strict";function n(e){return e&&"u">typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}r.d(t,{_:()=>n})},56502:(e,t,r)=>{"use strict";r.d(t,{Q:()=>l});var n=r(62965),i=r(24752),a=r(18132),s=i.use,o=r(3971),c=r(42761),u=r(47732);function l(e){var t,r,l,h=e.widget,f=e.parentIndex,d=e.props,p=e.shouldSsr,m=e.skipSuspense,g=(0,u.t)(),v=g.waitForResultsRef,y=g.countRef;g.ignoreMultipleHooksWarning;var b=(0,i.useRef)(d);(0,i.useEffect)(function(){b.current=d},[d]);var _=(0,i.useRef)(h);(0,i.useEffect)(function(){_.current=h},[h]);var R=(0,i.useRef)(null),S=p&&!f.getWidgets().includes(h),x=(0,o.I)();(0,c.E)(function(){var e=_.current;return R.current?(clearTimeout(R.current),(0,a.j)(d,b.current)||(f.removeWidgets([e]),f.addWidgets([h]))):p||f.addWidgets([h]),function(){R.current=setTimeout(function(){x._schedule(function(){x._preventWidgetCleanup||f.removeWidgets([e])})})}},[f,h,p,x,d]),(S||(null==v||null==(t=v.current)?void 0:t.status)==="pending")&&f.addWidgets([h]),(null==v?void 0:v.current)&&!m&&(s(v.current),!(0,n.Q)(h)&&(null==(l=x.helper)?void 0:l.lastResults)&&s(v.current)),(null==v||null==(r=v.current)?void 0:r.status)==="fulfilled"&&(y.current+=1)}},56568:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var i=0;i<t.length;i+=1)r[i+e.length]=t[i];return r},i=function(e,t){for(var r=[],n=t||0,i=0;n<e.length;n+=1,i+=1)r[i]=e[n];return r},a=function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r};e.exports=function(e){var s,o=this;if("function"!=typeof o||"[object Function]"!==t.apply(o))throw TypeError("Function.prototype.bind called on incompatible "+o);
1for(var c=i(arguments,1),u=r(0,o.length-c.length),l=[],h=0;h<u;h++)l[h]="$"+h;if(s=Function("binder","return function ("+a(l,",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof s){var t=o.apply(this,n(c,arguments));return Object(t)===t?t:this}return o.apply(e,n(c,arguments))}),o.prototype){var f=function(){};f.prototype=o.prototype,s.prototype=new f,f.prototype=null}return s}},57176:(e,t,r)=>{"use strict";r.d(t,{t:()=>n});var n=(0,r(24752).createContext)(null)},57448:e=>{"use strict";e.exports=Math.pow},57842:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEach(function(r){var n="number"==typeof e[r]?e[r]:0,i=t[r];void 0!==i&&i>=n&&(void 0!==e[r]&&delete e[r],e[r]=i)}),e},{})}},58074:e=>{"use strict";e.exports=Math.round},58244:(e,t,r)=>{"use strict";var n=r(95849),i=Object.prototype.hasOwnProperty,a=Array.isArray,s=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),o=function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(a(r)){for(var n=[],i=0;i<r.length;++i)void 0!==r[i]&&n.push(r[i]);t.obj[t.prop]=n}}},c=function(e,t){for(var r=t&&t.plainObjects?{__proto__:null}:{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,r){return e[r]=t[r],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var i=t[n],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var u=s[c],l=a[u];"object"==typeof l&&null!==l&&-1===r.indexOf(l)&&(t.push({obj:a,prop:u}),r.push(l))}return o(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,i,a){if(0===e.length)return e;var o=e;if("symbol"==typeof e?o=Symbol.prototype.toString.call(e):"string"!=typeof e&&(o=String(e)),"iso-8859-1"===r)return escape(o).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",u=0;u<o.length;u+=1024){for(var l=o.length>=1024?o.slice(u,u+1024):o,h=[],f=0;f<l.length;++f){var d=l.charCodeAt(f);if(45===d||46===d||95===d||126===d||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||a===n.RFC1738&&(40===d||41===d)){h[h.length]=l.charAt(f);continue}if(d<128){h[h.length]=s[d];continue}if(d<2048){h[h.length]=s[192|d>>6]+s[128|63&d];continue}if(d<55296||d>=57344){h[h.length]=s[224|d>>12]+s[128|d>>6&63]+s[128|63&d];continue}f+=1,d=65536+((1023&d)<<10|1023&l.charCodeAt(f)),h[h.length]=s[240|d>>18]+s[128|d>>12&63]+s[128|d>>6&63]+s[128|63&d]}c+=h.join("")}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(a(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r&&"function"!=typeof r){if(a(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!i.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var s=t;return(a(t)&&!a(r)&&(s=c(t,n)),a(t)&&a(r))?(r.forEach(function(r,a){if(i.call(t,a)){var s=t[a];s&&"object"==typeof s&&r&&"object"==typeof r?t[a]=e(s,r,n):t.push(r)}else t[a]=r}),t):Object.keys(r).reduce(function(t,a){var s=r[a];return i.call(t,a)?t[a]=e(t[a],s,n):t[a]=s,t},s)}}},58721:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(41301),i=r(99756),a=r(46892),s=r(41425),o=r(21520),c=function(e){e&&(window.document.title=e)},u=function(){function e(t){var r=this,i=t.windowTitle,s=t.writeDelay,u=t.createURL,l=t.parseURL,h=t.getLocation,f=t.start,d=t.dispose,p=t.push,m=t.cleanUrlOnDispose;(0,n._)(this,e),(0,a._)(this,"$$type","ais.browser"),(0,a._)(this,"windowTitle",void 0),(0,a._)(this,"writeDelay",void 0),(0,a._)(this,"_createURL",void 0),(0,a._)(this,"parseURL",void 0),(0,a._)(this,"getLocation",void 0),(0,a._)(this,"writeTimer",void 0),(0,a._)(this,"_onPopState",void 0),(0,a._)(this,"inPopState",!1),(0,a._)(this,"isDisposed",!1),(0,a._)(this,"latestAcknowledgedHistory",0),(0,a._)(this,"_start",void 0),(0,a._)(this,"_dispose",void 0),(0,a._)(this,"_push",void 0),(0,a._)(this,"_cleanUrlOnDispose",void 0),this.windowTitle=i,this.writeTimer=void 0,this.writeDelay=void 0===s?400:s,this._createURL=u,this.parseURL=l,this.getLocation=h,this._start=f,this._dispose=d,this._push=p,this._cleanUrlOnDispose=void 0===m||m,(0,o.x)(function(e){var t=e.window;c(r.windowTitle&&r.windowTitle(r.read())),r.latestAcknowledgedHistory=t.history.length})}return(0,i._)(e,[{key:"read",value:function(){return this.parseURL({qsModule:s,location:this.getLocation()})}},{key:"write",value:function(e){var t=this;(0,o.x)(function(r){var n=r.window,i=t.createURL(e),a=t.windowTitle&&t.windowTitle(e);t.writeTimer&&clearTimeout(t.writeTimer),t.writeTimer=setTimeout(function(){c(a),t.shouldWrite(i)&&(t._push?t._push(i):n.history.pushState(e,a||"",i),t.latestAcknowledgedHistory=n.history.length),t.inPopState=!1,t.writeTimer=void 0},t.writeDelay)})}}
1,{key:"onUpdate",value:function(e){var t=this;this._start&&this._start(function(){e(t.read())}),this._onPopState=function(){t.writeTimer&&(clearTimeout(t.writeTimer),t.writeTimer=void 0),t.inPopState=!0,e(t.read())},(0,o.x)(function(e){e.window.addEventListener("popstate",t._onPopState)})}},{key:"createURL",value:function(e){return this._createURL({qsModule:s,routeState:e,location:this.getLocation()})}},{key:"dispose",value:function(){var e=this;this._dispose&&this._dispose(),this.isDisposed=!0,(0,o.x)(function(t){var r=t.window;e._onPopState&&r.removeEventListener("popstate",e._onPopState)}),this.writeTimer&&clearTimeout(this.writeTimer),this._cleanUrlOnDispose&&this.write({})}},{key:"start",value:function(){this.isDisposed=!1}},{key:"shouldWrite",value:function(e){var t=this;return(0,o.x)(function(r){var n=r.window;if(t.isDisposed&&!t._cleanUrlOnDispose)return!1;var i=!(t.isDisposed&&t.latestAcknowledgedHistory!==n.history.length);return!t.inPopState&&i&&e!==n.location.href})}}]),e}();function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.createURL,r=void 0===t?function(e){var t=e.qsModule,r=e.routeState,n=e.location,i=n.protocol,a=n.hostname,s=n.port,o=void 0===s?"":s,c=n.pathname,u=n.hash,l=t.stringify(r),h=""===o?"":":".concat(o);return l?"".concat(i,"//").concat(a).concat(h).concat(c,"?").concat(l).concat(u):"".concat(i,"//").concat(a).concat(h).concat(c).concat(u)}:t,n=e.parseURL,i=void 0===n?function(e){var t=e.qsModule,r=e.location;return t.parse(r.search.slice(1),{arrayLimit:99})}:n,a=e.writeDelay,s=e.windowTitle,c=e.getLocation;return new u({createURL:r,parseURL:i,writeDelay:void 0===a?400:a,windowTitle:s,getLocation:void 0===c?function(){return(0,o.x)(function(e){return e.window.location},{fallback:function(){throw Error("You need to provide `getLocation` to the `history` router in environments where `window` does not exist.")}})}:c,start:e.start,dispose:e.dispose,push:e.push,cleanUrlOnDispose:e.cleanUrlOnDispose})}},59776:e=>{"use strict";e.exports=Math.floor},59998:e=>{"use strict";e.exports=Math.min},60442:(e,t,r)=>{"use strict";function n(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r]}r.d(t,{l:()=>n})},60707:(e,t,r)=>{"use strict";var n=r(79999);e.exports=function(e){return n(e)||0===e?e:e<0?-1:1}},61541:(e,t,r)=>{"use strict";r.d(t,{Q:()=>i});var n=r(54701);function i(e){if((void 0===e?"undefined":(0,n._)(e))!=="object"||null===e||"[object Object]"!==(null===e?void 0===e?"[object Undefined]":"[object Null]":Object.prototype.toString.call(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}},61969:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(11038),i=r(52453),a=r(35095),s=function(e,t){t.facets,t.disjunctiveFacets,t.facetsRefinements,t.facetsExcludes,t.disjunctiveFacetsRefinements,t.numericRefinements,t.tagRefinements,t.hierarchicalFacets,t.hierarchicalFacetsRefinements,t.ruleContexts;var r=(0,i._)(t,["facets","disjunctiveFacets","facetsRefinements","facetsExcludes","disjunctiveFacetsRefinements","numericRefinements","tagRefinements","hierarchicalFacets","hierarchicalFacetsRefinements","ruleContexts"]);return e.setQueryParameters(r)},o=function(e,t){var r=(0,a.s)([].concat(e.ruleContexts).concat(t.ruleContexts).filter(Boolean));return r.length>0?e.setQueryParameters({ruleContexts:r}):e},c=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.reduce(function(e,t){var r,i,a,c,u,l,h,f;return s((f=o((r=e.setQueryParameters({hierarchicalFacetsRefinements:(0,n._)({},e.hierarchicalFacetsRefinements,t.hierarchicalFacetsRefinements)}),i=r.setQueryParameters({hierarchicalFacets:t.hierarchicalFacets.reduce(function(e,t){var r=function(e,t){if(!Array.isArray(e))return -1;for(var r=0;r<e.length;r++)if(t(e[r]))return r;return -1}(e,function(e){return e.name===t.name});if(-1===r)return e.concat(t);var n=e.slice();return n.splice(r,1,t),n},r.hierarchicalFacets)}),a=t.tagRefinements.reduce(function(e,t){return e.addTagRefinement(t)},i),c=a.setQueryParameters({numericRefinements:(0,n._)({},a.numericRefinements,t.numericRefinements)}),u=c.setQueryParameters({disjunctiveFacetsRefinements:(0,n._)({},c.disjunctiveFacetsRefinements,t.disjunctiveFacetsRefinements)}),l=u.setQueryParameters({facetsExcludes:(0,n._)({},u.facetsExcludes,t.facetsExcludes)}),h=l.setQueryParameters({facetsRefinements:(0,n._)({},l.facetsRefinements,t.facetsRefinements)}),t.disjunctiveFacets.reduce(function(e,t){return e.addDisjunctiveFacet(t)},h)),t),t.facets.reduce(function(e,t){return e.addFacet(t)},f)),t)})}},62965:(e,t,r)=>{"use strict";function n(e){return"ais.dynamicWidgets"===e.$$type||"ais.feeds"===e.$$type}r.d(t,{Q:()=>n})},63197:(e,t,r)=>{"use strict";r.d(t,{U0:()=>c,Zp:()=>u});var n=r(11038),i=r(71252),a=r(54701),s=r(46022);function o(e){var t=e.helper,r=e.widgetType;e.methodName;var s=e.args,o=e.instantSearchInstance;if(1===s.length&&"object"===(0,a._)(s[0]))return[s[0]];var c=(0,i._)(s[0].split(":"),2),u=c[0],l=c[1],h=s[1],f=s[2],d=s[3]||{};if(!h||("click"===u||"conversion"===u)&&!f)return[];var p=Array.isArray(h)?h:[h];if(0===p.length)return[];var m=p[0].__queryID,g=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,r=[],n=0;n<Math.ceil(e.length/t);
1n++)r.push(e.slice(n*t,(n+1)*t));return r}(p),v=g.map(function(e){return e.map(function(e){return e.objectID})}),y=g.map(function(e){return e.map(function(e){return e.__position})});return"view"===u?"idle"!==o.status?[]:g.map(function(e,i){var a;return{insightsMethod:"viewedObjectIDs",widgetType:r,eventType:u,payload:(0,n._)({eventName:f||"Hits Viewed",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,objectIDs:v[i]},d),hits:e,eventModifier:l}}):"click"===u?g.map(function(e,i){var a;return{insightsMethod:"clickedObjectIDsAfterSearch",widgetType:r,eventType:u,payload:(0,n._)({eventName:f||"Hit Clicked",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:m,objectIDs:v[i],positions:y[i]},d),hits:e,eventModifier:l}}):"conversion"===u?g.map(function(e,i){var a;return{insightsMethod:"convertedObjectIDsAfterSearch",widgetType:r,eventType:u,payload:(0,n._)({eventName:f||"Hit Converted",index:(null==(a=t.lastResults)?void 0:a.index)||t.state.index,queryID:m,objectIDs:v[i]},d),hits:e,eventModifier:l}}):[]}function c(e){var t=e.instantSearchInstance,r=e.helper,n=e.widgetType,i={},a=void 0;return function(){for(var e=arguments.length,s=Array(e),c=0;c<e;c++)s[c]=arguments[c];o({widgetType:n,helper:r,methodName:"sendEvent",args:s,instantSearchInstance:t}).forEach(function(e){"click"===e.eventType&&"internal"===e.eventModifier&&i[e.eventType]||(i[e.eventType]=!0,t.sendEventToInsights(e))}),clearTimeout(a),a=setTimeout(function(){i={}},0)}}function u(e){var t=e.helper,r=e.widgetType,n=e.instantSearchInstance;return function(){for(var e=arguments.length,i=Array(e),a=0;a<e;a++)i[a]=arguments[a];var c=o({widgetType:r,helper:t,methodName:"bindEvent",args:i,instantSearchInstance:n});return c.length?"data-insights-event=".concat((0,s.h)(c)):""}}},63273:(e,t,r)=>{"use strict";r.d(t,{q:()=>x});var n=r(46892),i=r(11038),a=r(18975),s=r(52453),o=r(18267),c=r(6865),u=r(62965),l=r(12804),h=r(5894),f=r(63197),d=r(53649),p=r(41002),m=r(26097),g=r(60442),v=r(80370),y=(0,l.V)({name:"infinite-hits",connector:!0});function b(e){var t=e||{};return t.page,(0,s._)(t,["page"])}function _(e){var t=e||{};return t.clickAnalytics,t.userToken,(0,s._)(t,["clickAnalytics","userToken"])}var R=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g.l;return(0,h.t)(e,y()),function(r){var s,l,h,g,y,R,S=r||{},x=S.escapeHTML,w=void 0===x||x,P=S.transformItems,F=void 0===P?function(e){return e}:P,j=S.cache,O=void 0===j?(s=null,l=null,{read:function(e){var t=e.state;return(0,v.n)(l,b(t))?s:null},write:function(e){var t=e.state,r=e.hits;l=b(t),s=r}}):j,E=function(e,t){var r,n=e.page,i=void 0===n?0:n,a=Object.keys(t).map(Number);
1return 0===a.length?i:(r=Math).min.apply(r,[i].concat((0,o._)(a)))},A=function(e,t){var r,n=e.page,i=void 0===n?0:n,a=Object.keys(t).map(Number);return 0===a.length?i:(r=Math).max.apply(r,[i].concat((0,o._)(a)))};return{$$type:"ais.infiniteHits",init:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){var r=t.instantSearchInstance,n=this.getWidgetRenderState(t);e((0,a._)((0,i._)({},n),{instantSearchInstance:r}),!1),y("view:internal",n.currentPageHits)},getRenderState:function(e,t){return(0,a._)((0,i._)({},e),{infiniteHits:this.getWidgetRenderState(t)})},getWidgetRenderState:function(e){var t=e.results,n=e.helper,s=e.parent,o=e.state,l=e.instantSearchInstance,v=function(){var e=s.getPreviousState()||o;return O.read({state:_(e)})||{}},b=[],S=s.getPreviousState()||o,x=v(),P=null==t||null==(I=t.renderingContent)||null==(T=I.widgets)||null==(j=T.banners)?void 0:j[0];if(h||(h=function(){return function(){var e=v();n.overrideStateWithoutTriggeringChangeEvent((0,a._)((0,i._)({},n.state),{page:E(n.state,e)-1})).searchWithoutTriggeringOnStateChange()}()},g=function(){return function(){var e=v();n.setPage(A(n.state,e)+1).search()}()}),y||(y=(0,f.U0)({instantSearchInstance:l,helper:n,widgetType:this.$$type}),R=(0,f.Zp)({helper:n,widgetType:this.$$type,instantSearchInstance:l})),t){var j,T,I,k,C,D,N=S.page,H=void 0===N?0:N;w&&t.hits.length>0&&(t.hits=(0,d.S8)(t.hits));var U=(0,p.g)(t.hits,t.page,t.hitsPerPage),W=F((0,m.P)(U,t.queryID),{results:t}),L=!1;!function e(t,r){r(t),t.getWidgets().forEach(function(t){(0,c.l)(t)&&e(t,r)})}(l.mainIndex,function(e){!L&&e.getWidgets().some(u.Q)&&(L=!0)});var Q=!(null==(C=S.disjunctiveFacets)?void 0:C.length)&&!(S.facets||[]).filter(function(e){return"*"!==e}).length&&!(null==(D=S.hierarchicalFacets)?void 0:D.length);void 0!==x[H]||t.__isArtificial||"idle"!==l.status||L&&Q||(x[H]=W,O.write({state:_(S),hits:x})),b=W,k=0===E(S,x)}else k=void 0===S.page||0===E(S,x);var $=Object.keys(x).map(Number).sort(function(e,t){return e-t}).reduce(function(e,t){return e.concat(x[t])},[]),M=!t||t.nbPages<=A(S,x)+1;return{hits:$,items:$,currentPageHits:b,sendEvent:y,bindEvent:R,banner:P,results:t||void 0,showPrevious:h,showMore:g,isFirstPage:k,isLastPage:M,widgetParams:r}},dispose:function(e){var r=e.state;t();var s=r.setQueryParameter("page",void 0);return w?s.setQueryParameters(Object.keys(d.FU).reduce(function(e,t){return(0,a._)((0,i._)({},e),(0,n._)({},t,void 0))},{})):s},getWidgetUiState:function(e,t){var r=t.searchParameters.page||0;return r?(0,a._)((0,i._)({},e),{page:r+1}):e},getWidgetSearchParameters:function(e,t){var r=t.uiState,n=e;w&&(n=e.setQueryParameters(d.FU));var i=r.page?r.page-1:0;return n.setQueryParameter("page",i)}}}},S=r(48209);function x(e,t){return(0,S.Z)(R,e,t)}},64246:e=>{"use strict";e.exports=TypeError},66420:(e,t,r)=>{"use strict";var n=r(64246),i=r(86339),a=r(85821),s=r(97852),o=r(91449)||s||a;e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new n("Side channel does not contain "+i(e))},delete:function(t){return!!e&&e.delete(t)},get:function(t){return e&&e.get(t)},has:function(t){return!!e&&e.has(t)},set:function(t,r){e||(e=o()),e.set(t,r)}};return t}},67884:e=>{"use strict";e.exports=function(e){return e&&Object.keys(e).length>0}},67912:e=>{e.exports=function(e){return e.reduce(function(e,t){return e.concat(t)},[])}},70061:(e,t,r)=>{"use strict";var n=r(17994),i=r(64246),a=r(12367),s=r(98915);e.exports=function(e){if(e.length<1||"function"!=typeof e[0])throw new i("a function is required");return s(n,a,e)}},70365:(e,t,r)=>{"use strict";function n(e,t){for(var r,n=0;n<e.length;n++)if(t(r=e[n],n,e))return r}r.d(t,{I:()=>n})},71252:(e,t,r)=>{"use strict";r.d(t,{_:()=>s});var n=r(28949),i=r(44924),a=r(52093);function s(e,t){return(0,n._)(e)||function(e,t){var r,n,i=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],s=!0,o=!1;try{for(i=i.call(e);!(s=(r=i.next()).done)&&(a.push(r.value),!t||a.length!==t);s=!0);}catch(e){o=!0,n=e}finally{try{s||null==i.return||i.return()}finally{if(o)throw n}}return a}}(e,t)||(0,a._)(e,t)||(0,i._)()}},73681:e=>{"use strict";e.exports=Function.prototype.apply},73800:(e,t,r)=>{"use strict";var n=r(66420),i=r(58244),a=r(95849),s=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,u=Array.prototype.push,l=function(e,t){u.apply(e,c(t)?t:[t])},h=Date.prototype.toISOString,f=a.default,d={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset
1:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:i.encode,encodeValuesOnly:!1,filter:void 0,format:f,formatter:a.formatters[f],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p={},m=function e(t,r,a,s,o,u,h,f,m,g,v,y,b,_,R,S,x,w){for(var P,F,j=t,O=w,E=0,A=!1;void 0!==(O=O.get(p))&&!A;){var T=O.get(t);if(E+=1,void 0!==T)if(T===E)throw RangeError("Cyclic object value");else A=!0;void 0===O.get(p)&&(E=0)}if("function"==typeof g?j=g(r,j):j instanceof Date?j=b(j):"comma"===a&&c(j)&&(j=i.maybeMap(j,function(e){return e instanceof Date?b(e):e})),null===j){if(u)return m&&!S?m(r,d.encoder,x,"key",_):r;j=""}if("string"==typeof(P=j)||"number"==typeof P||"boolean"==typeof P||"symbol"==typeof P||"bigint"==typeof P||i.isBuffer(j))return m?[R(S?r:m(r,d.encoder,x,"key",_))+"="+R(m(j,d.encoder,x,"value",_))]:[R(r)+"="+R(String(j))];var I=[];if(void 0===j)return I;if("comma"===a&&c(j))S&&m&&(j=i.maybeMap(j,m)),F=[{value:j.length>0?j.join(",")||null:void 0}];else if(c(g))F=g;else{var k=Object.keys(j);F=v?k.sort(v):k}var C=f?String(r).replace(/\./g,"%2E"):String(r),D=s&&c(j)&&1===j.length?C+"[]":C;if(o&&c(j)&&0===j.length)return D+"[]";for(var N=0;N<F.length;++N){var H=F[N],U="object"==typeof H&&H&&void 0!==H.value?H.value:j[H];if(!h||null!==U){var W=y&&f?String(H).replace(/\./g,"%2E"):String(H),L=c(j)?"function"==typeof a?a(D,W):D:D+(y?"."+W:"["+W+"]");w.set(t,E);var Q=n();Q.set(p,w),l(I,e(U,L,a,s,o,u,h,f,"comma"===a&&S&&c(j)?null:m,g,v,y,b,_,R,S,x,Q))}}return I},g=function(e){if(!e)return d;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t,r=e.charset||d.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=a.default;if(void 0!==e.format){if(!s.call(a.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=a.formatters[n],u=d.filter;if(("function"==typeof e.filter||c(e.filter))&&(u=e.filter),t=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":d.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var l=void 0===e.allowDots?!0===e.encodeDotInKeys||d.allowDots:!!e.allowDots;return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:d.addQueryPrefix,allowDots:l,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:d.allowEmptyArrays,arrayFormat:t,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:d.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?d.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:d.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:d.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:d.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:d.encodeValuesOnly,filter:u,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:d.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:d.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:d.strictNullHandling}};e.exports=function(e,t){var r,i=e,a=g(t);"function"==typeof a.filter?i=(0,a.filter)("",i):c(a.filter)&&(r=a.filter);var s=[];if("object"!=typeof i||null===i)return"";var u=o[a.arrayFormat],h="comma"===u&&a.commaRoundTrip;r||(r=Object.keys(i)),a.sort&&r.sort(a.sort);for(var f=n(),d=0;d<r.length;++d){var p=r[d],v=i[p];a.skipNulls&&null===v||l(s,m(v,p,u,h,a.allowEmptyArrays,a.strictNullHandling,a.skipNulls,a.encodeDotInKeys,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,f))}var y=s.join(a.delimiter),b=!0===a.addQueryPrefix?"?":"";return a.charsetSentinel&&("iso-8859-1"===a.charset?b+="utf8=%26%2310003%3B&":b+="utf8=%E2%9C%93&"),y.length>0?b+y:""}},74432:e=>{"use strict";e.exports=Math.max},74487:e=>{"use strict";e.exports=function(){var e=Array.prototype.slice.call(arguments);return e.reduceRight(function(e,t){return Object.keys(Object(t)).forEac
1h(function(r){void 0!==t[r]&&(void 0!==e[r]&&delete e[r],e[r]=t[r])}),e},{})}},74706:e=>{"use strict";function t(e){e=e||{},this.params=e.params||[]}t.prototype={constructor:t,addParams:function(e){var r=this.params.slice();return r.push(e),new t({params:r})},removeParams:function(e){return new t({params:this.params.filter(function(t){return t.$$id!==e})})},addFrequentlyBoughtTogether:function(e){return this.addParams(Object.assign({},e,{model:"bought-together"}))},addRelatedProducts:function(e){return this.addParams(Object.assign({},e,{model:"related-products"}))},addTrendingItems:function(e){return this.addParams(Object.assign({},e,{model:"trending-items"}))},addTrendingFacets:function(e){return this.addParams(Object.assign({},e,{model:"trending-facets"}))},addLookingSimilar:function(e){return this.addParams(Object.assign({},e,{model:"looking-similar"}))},_buildQueries:function(e,t){return this.params.filter(function(e){return void 0===t[e.$$id]}).map(function(t){var r=Object.assign({},t,{indexName:e,threshold:t.threshold||0});return delete r.$$id,r})}},e.exports=t},75523:(e,t,r)=>{"use strict";r.d(t,{d:()=>a});var n=r(52453),i=r(24752);function a(e){var t=e.isShowingMore,r=e.translations,a=(0,n._)(e,["isShowingMore","translations"]);return i.default.createElement("button",a,r.showMoreButtonText({isShowingMore:t}))}},76068:e=>{"use strict";e.exports="u">typeof Reflect&&Reflect.getPrototypeOf||null},79999:e=>{"use strict";e.exports=Number.isNaN||function(e){return e!=e}},80370:(e,t,r)=>{"use strict";function n(e){return e!==Object(e)}r.d(t,{n:()=>function e(t,r){if(t===r)return!0;if(n(t)||n(r)||"function"==typeof t||"function"==typeof r)return t===r;if(Object.keys(t).length!==Object.keys(r).length)return!1;var i=!0,a=!1,s=void 0;try{for(var o,c=Object.keys(t)[Symbol.iterator]();!(i=(o=c.next()).done);i=!0){var u=o.value;if(!(u in r)||!e(t[u],r[u]))return!1}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return!0}})},81724:(e,t,r)=>{"use strict";r.d(t,{D:()=>s});var n=r(11038),i=r(71252),a=r(54701);function s(e){var t=e.instantSearchInstance,r=e.helper,s=e.attribute,o=e.widgetType;return function(){for(var e,c=arguments.length,u=Array(c),l=0;l<c;l++)u[l]=arguments[l];var h=(0,i._)(u,4),f=h[1],d=h[2],p=h[3],m=(0,i._)(u[0].split(":"),2),g=m[0],v=m[1],y="string"==typeof s?s:s(f);1===u.length&&"object"===(0,a._)(u[0])?t.sendEventToInsights(u[0]):"click"===g&&u.length>=2&&u.length<=4&&((r.state.isHierarchicalFacet(y)?r.state.isHierarchicalFacetRefined(y,f):r.state.isConjunctiveFacet(y)?r.state.isFacetRefined(y,f):r.state.isDisjunctiveFacetRefined(y,f))||t.sendEventToInsights({insightsMethod:"clickedFilters",widgetType:o,eventType:g,eventModifier:v,payload:(0,n._)({eventName:void 0===d?"Filter Applied":d,index:(null==(e=r.lastResults)?void 0:e.index)||r.state.index,filters:["".concat(y,":").concat(f)]},void 0===p?{}:p),attribute:y}))}}},82286:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t||"[object Symbol]"!==Object.prototype.toString.call(t)||"[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(var n in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var a=Object.getOwnPropertyDescriptor(e,t);if(42!==a.value||!0!==a.enumerable)return!1}return!0}},85821:(e,t,r)=>{"use strict";var n=r(86339),i=r(64246),a=function(e,t,r){for(var n,i=e;null!=(n=i.next);i=n)if(n.key===t)return i.next=n.next,r||(n.next=e.next,e.next=n),n},s=function(e,t){if(e){var r=a(e,t);return r&&r.value}},o=function(e,t,r){var n=a(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}},c=function(e,t){if(e)return a(e,t,!0)};e.exports=function(){var e,t={assert:function(e){if(!t.has(e))throw new i("Side channel does not contain "+n(e))},delete:function(t){var r=e&&e.next,n=c(e,t);return n&&r&&r===n&&(e=void 0),!!n},get:function(t){return s(e,t)},has:function(t){var r;return!!(r=e)&&!!a(r,t)},set:function(t,r){e||(e={next:void 0}),o(e,t,r)}};return t}},86339:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,a=n&&i&&"function"==typeof i.get?i.get:null,s=n&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,u=o&&c&&"function"==typeof c.get?c.get:null,l=o&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,d="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,m=Object.prototype.toString,g=Function.prototype.toString,v=String.prototype.match,y=String.prototype.slice,b=String.prototype.replace,_=String.prototype.toUpperCase,R=String.prototype.toLowerCase,S=RegExp.prototype.test,x=Array.prototype.concat,w=Array.prototype.join,P=Array.prototype.slice,F=Math.floor,j="function"==typeof BigInt?BigInt.prototype.valueOf:null,O=Object.getOwnPropertySymbols,E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A?"object":"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,k=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function C(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-F(-e):F(e);if(n!==e){var i=String(n),a=y.call(t,i.length+1);return b.call(i,r,"$&_")+"."+b.call(b.call(a,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}
1var D=r(14058),N=D.custom,H=q(N)?N:null,U={__proto__:null,double:'"',single:"'"},W={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function L(e,t,r){var n=U[r.quoteStyle||t];return n+e+n}function Q(e){return!T||!("object"==typeof e&&(T in e||void 0!==e[T]))}function $(e){return"[object Array]"===J(e)&&Q(e)}function M(e){return"[object RegExp]"===J(e)&&Q(e)}function q(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!E)return!1;try{return E.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,i,o){var c,m,_,S,F,O=n||{};if(V(O,"quoteStyle")&&!V(U,O.quoteStyle))throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(O,"maxStringLength")&&("number"==typeof O.maxStringLength?O.maxStringLength<0&&O.maxStringLength!==1/0:null!==O.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var N=!V(O,"customInspect")||O.customInspect;if("boolean"!=typeof N&&"symbol"!==N)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(V(O,"indent")&&null!==O.indent&&" "!==O.indent&&!(parseInt(O.indent,10)===O.indent&&O.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(V(O,"numericSeparator")&&"boolean"!=typeof O.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var B=O.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,r){if(t.length>r.maxStringLength){var n=t.length-r.maxStringLength;return e(y.call(t,0,r.maxStringLength),r)+("... "+n)+" more character"+(n>1?"s":"")}var i=W[r.quoteStyle||"single"];return i.lastIndex=0,L(b.call(b.call(t,i,"\\$1"),/[\x00-\x1f]/g,z),"single",r)}(t,O);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var et=String(t);return B?C(t,et):et}if("bigint"==typeof t){var er=String(t)+"n";return B?C(t,er):er}var en=void 0===O.depth?5:O.depth;if(void 0===i&&(i=0),i>=en&&en>0&&"object"==typeof t)return $(t)?"[Array]":"[Object]";var ei=function(e,t){var r;if(" "===e.indent)r=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;r=w.call(Array(e.indent+1)," ")}return{base:r,prev:w.call(Array(t+1),r)}}(O,i);if(void 0===o)o=[];else if(K(o,t)>=0)return"[Circular]";function ea(t,r,n){if(r&&(o=P.call(o)).push(r),n){var a={depth:O.depth};return V(O,"quoteStyle")&&(a.quoteStyle=O.quoteStyle),e(t,a,i+1,o)}return e(t,O,i+1,o)}if("function"==typeof t&&!M(t)){var es=function(e){if(e.name)return e.name;var t=v.call(g.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),eo=ee(t,ea);return"[Function"+(es?": "+es:" (anonymous)")+"]"+(eo.length>0?" { "+w.call(eo,", ")+" }":"")}if(q(t)){var ec=A?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):E.call(t);return"object"!=typeof t||A?ec:G(ec)}if((eu=t)&&"object"==typeof eu&&("u">typeof HTMLElement&&eu instanceof HTMLElement||"string"==typeof eu.nodeName&&"function"==typeof eu.getAttribute)){for(var eu,el,eh="<"+R.call(String(t.nodeName)),ef=t.attributes||[],ed=0;ed<ef.length;ed++){eh+=" "+ef[ed].name+"="+L((el=ef[ed].value,b.call(String(el),/"/g,""")),"double",O)}return eh+=">",t.childNodes&&t.childNodes.length&&(eh+="..."),eh+="</"+R.call(String(t.nodeName))+">"}if($(t)){if(0===t.length)return"[]";var ep=ee(t,ea);return ei&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(ep)?"["+Y(ep,ei)+"]":"[ "+w.call(ep,", ")+" ]"}if("[object Error]"===J(c=t)&&Q(c)){var em=ee(t,ea);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===em.length?"["+String(t)+"]":"{ ["+String(t)+"] "+w.call(em,", ")+" }":"{ ["+String(t)+"] "+w.call(x.call("[cause]: "+ea(t.cause),em),", ")+" }"}
1if("object"==typeof t&&N){if(H&&"function"==typeof t[H]&&D)return D(t,{depth:en-i});else if("symbol"!==N&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eg=[];return s&&s.call(t,function(e,r){eg.push(ea(r,t,!0)+" => "+ea(e,t))}),Z("Map",a.call(t),eg,ei)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ev=[];return l&&l.call(t,function(e){ev.push(ea(e,t))}),Z("Set",u.call(t),ev,ei)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return X("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return X("WeakSet");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{return d.call(e),!0}catch(e){}return!1}(t))return X("WeakRef");if("[object Number]"===J(m=t)&&Q(m))return G(ea(Number(t)));if(function(e){if(!e||"object"!=typeof e||!j)return!1;try{return j.call(e),!0}catch(e){}return!1}(t))return G(ea(j.call(t)));if("[object Boolean]"===J(_=t)&&Q(_))return G(p.call(t));if("[object String]"===J(S=t)&&Q(S))return G(ea(String(t)));if("u">typeof window&&t===window)return"{ [object Window] }";if("u">typeof globalThis&&t===globalThis||void 0!==r.g&&t===r.g)return"{ [object globalThis] }";if(!("[object Date]"===J(F=t)&&Q(F))&&!M(t)){var ey=ee(t,ea),eb=k?k(t)===Object.prototype:t instanceof Object||t.constructor===Object,e_=t instanceof Object?"":"null prototype",eR=!eb&&T&&Object(t)===t&&T in t?y.call(J(t),8,-1):e_?"Object":"",eS=(eb||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eR||e_?"["+w.call(x.call([],eR||[],e_||[]),": ")+"] ":"");return 0===ey.length?eS+"{}":ei?eS+"{"+Y(ey,ei)+"}":eS+"{ "+w.call(ey,", ")+" }"}return String(t)};var B=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,t){return B.call(e,t)}function J(e){return m.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return -1}function z(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function G(e){return"Object("+e+")"}function X(e){return e+" { ? }"}function Z(e,t,r,n){return e+" ("+t+") {"+(n?Y(r,n):w.call(r,", "))+"}"}function Y(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+w.call(e,","+r)+"\n"+t.prev}function ee(e,t){var r,n=$(e),i=[];if(n){i.length=e.length;for(var a=0;a<e.length;a++)i[a]=V(e,a)?t(e[a],e):""}var s="function"==typeof O?O(e):[];if(A){r={};for(var o=0;o<s.length;o++)r["$"+s[o]]=s[o]}for(var c in e)if(V(e,c)&&(!n||String(Number(c))!==c||!(c<e.length)))if(A&&r["$"+c]instanceof Symbol)continue;else S.call(/[^\w$]/,c)?i.push(t(c,e)+": "+t(e[c],e)):i.push(c+": "+t(e[c],e));if("function"==typeof O)for(var u=0;u<s.length;u++)I.call(e,s[u])&&i.push("["+t(s[u])+"]: "+t(e[s[u]],e));return i}},87896:e=>{"use strict";e.exports=function(e,t){if(Array.isArray(e)){for(var r=0;r<e.length;r++)if(t(e[r]))return e[r]}}},88452:e=>{function t(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function n(e){return"object"==typeof e&&null!==e}e.exports=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},t.prototype.emit=function(e){var t,i,a,s,o,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||n(this._events.error)&&!this._events.error.length)){if(t=arguments[1],t instanceof Error)throw t;var u=Error('Uncaught, unspecified "error" event. ('+t+")");throw u.context=t,u}if(void 0===(i=this._events[e]))return!1;if(r(i))switch(arguments.length){case 1:i.call(this);break;case 2:i.call(this,arguments[1]);break;case 3:i.call(this,arguments[1],arguments[2]);break;
1default:s=Array.prototype.slice.call(arguments,1),i.apply(this,s)}else if(n(i))for(o=0,s=Array.prototype.slice.call(arguments,1),a=(c=i.slice()).length;o<a;o++)c[o].apply(this,s);return!0},t.prototype.addListener=function(e,i){var a;if(!r(i))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(i.listener)?i.listener:i),this._events[e]?n(this._events[e])?this._events[e].push(i):this._events[e]=[this._events[e],i]:this._events[e]=i,n(this._events[e])&&!this._events[e].warned&&(a=void 0===this._maxListeners?t.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(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},t.prototype.on=t.prototype.addListener,t.prototype.once=function(e,t){if(!r(t))throw TypeError("listener must be a function");var n=!1;function i(){this.removeListener(e,i),n||(n=!0,t.apply(this,arguments))}return i.listener=t,this.on(e,i),this},t.prototype.removeListener=function(e,t){var i,a,s,o;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(s=(i=this._events[e]).length,a=-1,i===t||r(i.listener)&&i.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(n(i)){for(o=s;o-- >0;)if(i[o]===t||i[o].listener&&i[o].listener===t){a=o;break}if(a<0)return this;1===i.length?(i.length=0,delete this._events[e]):i.splice(a,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},t.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(r(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},t.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},t.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},t.listenerCount=function(e,t){return e.listenerCount(t)}},90042:(e,t,r)=>{"use strict";var n,i=r(16035),a=r(97258),s=r(29964),o=r(94971),c=r(20531),u=r(93185),l=r(64246),h=r(39488),f=r(47442),d=r(59776),p=r(74432),m=r(59998),g=r(57448),v=r(58074),y=r(60707),b=Function,_=function(e){try{return b('"use strict"; return ('+e+").constructor;")()}catch(e){}},R=r(2217),S=r(12420),x=function(){throw new l},w=R?function(){try{return arguments.callee,x}catch(e){try{return R(arguments,"callee").get}catch(e){return x}}}():x,P=r(36912)(),F=r(93086),j=r(37926),O=r(76068),E=r(73681),A=r(12367),T={},I="u">typeof Uint8Array&&F?F(Uint8Array):n,k={__proto__:null,"%AggregateError%":"u"<typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"u"<typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":P&&F?F([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":T,"%AsyncGenerator%":T,"%AsyncGeneratorFunction%":T,"%AsyncIteratorPrototype%":T,"%Atomics%":"u"<typeof Atomics?n:Atomics,"%BigInt%":"u"<typeof BigInt?n:BigInt,"%BigInt64Array%":"u"<typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"u"<typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"u"<typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":a,"%eval%":eval,"%EvalError%":s,"%Float16Array%":"u"<typeof Float16Array?n:Float16Array,"%Float32Array%":"u"<typeof Float32Array?n:Float32Array,"%Float64Array%":"u"<typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"u"<typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":b,"%GeneratorFunction%":T,"%Int8Array%":"u"<typeof Int8Array?n:Int8Array,"%Int16Array%":"u"<typeof Int16Array?n:Int16Array,"%Int32Array%":"u"<typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":P&&F?F(F([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"u"<typeof Map?n:Map,"%MapIteratorPrototype%":"u">typeof Map&&P&&F?F(new Map()[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":i,"%Object.getOwnPropertyDescriptor%":R,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"u"<typeof Promise?n:Promise,"%Proxy%":"u"<typeof Proxy?n:Proxy,"%RangeError%":o,"%ReferenceError%":c,"%Reflect%":"u"<typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"u"<typeof Set?n:Set,"%SetIteratorPrototype%":"u">typeof Set&&P&&F?F(new Set()[Symbol.iterator]()):n,"%SharedArrayBuffer%":"u"<typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":P&&F?F(""[Symbol.iterator]()):n,"%Symbol%":P?Symbol:n,"%SyntaxError%":u,"%ThrowTypeError%":w,"%TypedArray%":I,"%TypeError%":l,"%Uint8Array%":"u"<typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"u"<typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"u"<typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"u"<typeof Uint32Array?n:Uint32Array,"%URIError%":h,"%WeakMap%":"u"<typeof WeakMap?n:WeakMap,"%WeakRef%":"u"<typeof WeakRef?n:WeakRef,"%WeakSet%":"u"<typeof WeakSet?n:WeakSet,"%Function.prototype.call%":A,"%Function.prototype.apply%":E,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":j,"%Math.abs%":f,"%Math.floor%":d,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":g,"%Math.round%":v,"%Math.sign%":y,"%Reflect.getPrototypeOf%":O};if(F)try{null.error}catch(e){var C=F(F(e));k["%Error.prototype%"]=C}var D=function e(t){var r;if("%AsyncFunction%"===t)r=_("async function () {}");else if("%GeneratorFunction%"===t)r=_("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=_("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&F&&(r=F(i.prototype))}return k[t]=r,r},N={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},H=r(17994),U=r(23516),W=H.call(A,Array.prototype.concat),L=H.call(E,Array.prototype.splice),Q=H.call(A,String.prototype.replace),$=H.call(A,String.prototype.slice),M=H.call(A,RegExp.prototype.exec),q=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,B=/\\(\\)?/g,V=function(e){var t=$(e,0,1),r=$(e,-1);if("%"===t&&"%"!==r)throw new u("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new u("invalid intrinsic syntax, expected opening `%`");var n=[];return Q(e,q,function(e,t,r,i){n[n.length]=r?Q(i,B,"$1"):t||e}),n},J=function(e,t){var r,n=e;if(U(N,n)&&(n="%"+(r=N[n])[0]+"%"),U(k,n)){var i=k[n];if(i===T&&(i=D(n)),void 0===i&&!t)throw new l("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new u("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new l("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new l('"allowMissing" argument must be a boolean');if(null===M(/^%?[^%]*%?$/,e))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=V(e),n=r.length>0?r[0]:"",i=J("%"+n+"%",t),a=i.name,s=i.value,o=!1,c=i.alias;c&&(n=c[0],L(r,W([0,1],c)));for(var h=1,f=!0;h<r.length;h+=1){var d=r[h],p=$(d,0,1),m=$(d,-1);if(('"'===p||"'"===p||"`"===p||'"'===m||"'"===m||"`"===m)&&p!==m)throw new u("property names with quotes must have matching quotes");if("constructor"!==d&&f||(o=!0),n+="."+d,U(k,a="%"+n+"%"))s=k[a];else if(null!=s){if(!(d in s)){if(!t)throw new l("base intrinsic for "+e+" exists, but the property is not available.");return}if(R&&h+1>=r.length){var g=R(s,d);s=(f=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:s[d]}else f=U(s,d),s=s[d];f&&!o&&(k[a]=s)}}return s}},91024:(e,t,r)=>{"use strict";var n=r(87896);e.exports=function(e,t){var r=(t||[]).map(function(e){return e.split(":")});return e.reduce(function(e,t){var i=t.split(":"),a=n(r,function(e){return e[0]===i[0]});return i.length>1||!a?(e[0].push(i[0]),e[1].push(i[1])):(e[0].push(a[0]),e[1].push(a[1])),e},[[],[]])}},91449:(e,t,r)=>{"use strict";
1var n=r(90042),i=r(42043),a=r(86339),s=r(97852),o=r(64246),c=n("%WeakMap%",!0),u=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),f=i("WeakMap.prototype.delete",!0);e.exports=c?function(){var e,t,r={assert:function(e){if(!r.has(e))throw new o("Side channel does not contain "+a(e))},delete:function(r){if(c&&r&&("object"==typeof r||"function"==typeof r)){if(e)return f(e,r)}else if(s&&t)return t.delete(r);return!1},get:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?u(e,r):t&&t.get(r)},has:function(r){return c&&r&&("object"==typeof r||"function"==typeof r)&&e?h(e,r):!!t&&t.has(r)},set:function(r,n){c&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new c),l(e,r,n)):s&&(t||(t=s()),t.set(r,n))}};return r}:s},92582:e=>{"use strict";e.exports=function e(t){if("number"==typeof t)return t;if("string"==typeof t)return parseFloat(t);if(Array.isArray(t))return t.map(e);throw Error("The value should be a number, a parsable string or an array of those.")}},93086:(e,t,r)=>{"use strict";var n=r(76068),i=r(37926),a=r(34672);e.exports=n?function(e){return n(e)}:i?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw TypeError("getProto: not an object");return i(e)}:a?function(e){return a(e)}:null},93185:e=>{"use strict";e.exports=SyntaxError},94689:(e,t,r)=>{"use strict";r.d(t,{J:()=>g});var n=r(46892),i=r(11038),a=r(18975),s=r(52453),o=r(53649),c=r(12804),u=r(5894),l=r(81724),h=r(60442),f=(0,c.V)({name:"refinement-list",connector:!0}),d=["isRefined","count:desc","name:asc"],p=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.l;return(0,u.t)(e,f()),function(r){var c,u,h,p=r||{},m=p.attribute,g=p.operator,v=void 0===g?"or":g,y=p.limit,b=void 0===y?10:y,_=p.showMore,R=void 0!==_&&_,S=p.showMoreLimit,x=void 0===S?20:S,w=p.sortBy,P=void 0===w?d:w,F=p.escapeFacetValues,j=void 0===F||F,O=p.transformItems,E=void 0===O?function(e){return e}:O;if(!m)throw Error(f("The `attribute` option is required."));if(!/^(and|or)$/.test(v))throw Error(f('The `operator` must one of: `"and"`, `"or"` (got "'.concat(v,'").')));if(!0===R&&x<=b)throw Error(f("`showMoreLimit` should be greater than `limit`."));var A=function(e){var t=e.name,r=e.escapedValue,n=(0,s._)(e,["name","escapedValue"]);return(0,a._)((0,i._)({},n),{value:r,label:t,highlighted:t})},T=[],I=!0,k=!1,C=function(){};function D(){C()}var N=function(){return function(){}};return{$$type:"ais.refinementList",init:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!0)},render:function(t){e((0,a._)((0,i._)({},this.getWidgetRenderState(t)),{instantSearchInstance:t.instantSearchInstance}),!1)},getRenderState:function(e,t){return(0,a._)((0,i._)({},e),{refinementList:(0,a._)((0,i._)({},e.refinementList),(0,n._)({},m,this.getWidgetRenderState(t)))})},getWidgetRenderState:function(t){var n=this,f=t.results,p=t.state,g=t.createURL,v=t.instantSearchInstance,y=t.helper,_=[],S=[];if(h&&u&&N||(h=(0,l.D)({instantSearchInstance:v,helper:y,attribute:m,widgetType:this.$$type}),u=function(e){h("click:internal",e),y.toggleFacetRefinement(m,e).search()},w=this,N=function(t){return function(r){var n=t.instantSearchInstance,u=t.results;if(""===r&&T)e((0,a._)((0,i._)({},w.getWidgetRenderState((0,a._)((0,i._)({},t),{results:c}))),{instantSearchInstance:n}),!1);else{var l={highlightPreTag:j?o.FU.highlightPreTag:o.sn.highlightPreTag,highlightPostTag:j?o.FU.highlightPostTag:o.sn.highlightPostTag};y.searchForFacetValues(m,r,Math.min(k?x:b,100),l).then(function(r){var l=E((j?(0,o.ef)(r.facetHits):r.facetHits).map(function(e){var t=e.escapedValue,r=e.value,n=(0,s._)(e,["escapedValue","value"]);return(0,a._)((0,i._)({},n),{value:t,label:r})}),{results:u});e((0,a._)((0,i._)({},w.getWidgetRenderState((0,a._)((0,i._)({},t),{results:c}))),{items:l,canToggleShowMore:!1,canRefine:!0,isFromSearch:!0,instantSearchInstance:n}),!1)})}}}),f){var w,F,O=f.getFacetValues(m,{sortBy:P,facetOrdering:P===d});_=E((S=O&&Array.isArray(O)?O:[]).slice(0,k?x:b).map(A),{results:f});var H=p.maxValuesPerFacet,U=k?x:b;I=H>U?S.length<=U:S.length<U,c=f,T=_,t.results&&(F=this,C=function(){k=!k,F.render(t)})}var W=N&&N(t),L=k&&T.length>b,Q=R&&!I;return{createURL:function(e){return g(function(t){return n.getWidgetUiState(t,{searchParameters:p.resetPage().toggleFacetRefinement(m,e),helper:y})})}
1,items:_,refine:u,searchForItems:W,isFromSearch:!1,canRefine:_.length>0,widgetParams:r,isShowingMore:k,canToggleShowMore:L||Q,toggleShowMore:D,sendEvent:h,hasExhaustiveItems:I}},dispose:function(e){var r=e.state;t();var n=r.setQueryParameter("maxValuesPerFacet",void 0);return"and"===v?n.removeFacet(m):n.removeDisjunctiveFacet(m)},getWidgetUiState:function(e,t){var r,s,o=t.searchParameters,c="or"===v?o.getDisjunctiveRefinements(m):o.getConjunctiveRefinements(m);return r=(0,a._)((0,i._)({},e),{refinementList:(0,a._)((0,i._)({},e.refinementList),(0,n._)({},m,c))}),s=m,r.refinementList&&(r.refinementList[s]&&0!==r.refinementList[s].length||delete r.refinementList[s],0===Object.keys(r.refinementList).length&&delete r.refinementList),r},getWidgetSearchParameters:function(e,t){var r=t.uiState,s="or"===v;if(e.isHierarchicalFacet(m)||s&&e.isConjunctiveFacet(m)||!s&&e.isDisjunctiveFacet(m))return e;var o=r.refinementList&&r.refinementList[m],c=s?e.addDisjunctiveFacet(m).removeDisjunctiveFacetRefinement(m):e.addFacet(m).removeFacetRefinement(m),u=Math.max(c.maxValuesPerFacet||0,R?x:b),l=c.setQueryParameter("maxValuesPerFacet",u);if(!o){var h=s?"disjunctiveFacetsRefinements":"facetsRefinements";return l.setQueryParameters((0,n._)({},h,(0,a._)((0,i._)({},l[h]),(0,n._)({},m,[]))))}return o.reduce(function(e,t){return s?e.addDisjunctiveFacetRefinement(m,t):e.addFacetRefinement(m,t)},l)}}}},m=r(48209);function g(e,t){return(0,m.Z)(p,e,t)}},94971:e=>{"use strict";e.exports=RangeError},95849:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC3986";e.exports={default:n,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}},96334:(e,t,r)=>{"use strict";var n=r(88452),i=r(54257),a=r(52268).escapeFacetValue,s=r(15959),o=r(19173),c=r(67884),u=r(36098),l=r(74706),h=r(27898),f=r(21361),d=r(48910),p=r(29246),m=r(4084),g=r(46915);function v(e,t,r,n){"function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.setClient(e);var i=r||{};i.index=t,this.state=d.make(i),this.recommendState=new l({params:i.recommendState}),this.lastResults=null,this.lastRecommendResults=null,this._queryId=0,this._recommendQueryId=0,this._lastQueryIdReceived=-1,this._lastRecommendQueryIdReceived=-1,this.derivedHelpers=[],this._currentNbQueries=0,this._currentNbRecommendQueries=0,this._searchResultsOptions=n,this._recommendCache={}}function y(e){if(e<0)throw Error("Page requested below 0.");return this._change({state:this.state.setPage(e),isPageReset:!1}),this}function b(){return this.state.page}s(v,n),v.prototype.search=function(){return this._search({onlyWithDerivedHelpers:!1}),this},v.prototype.searchOnlyWithDerivedHelpers=function(){return this._search({onlyWithDerivedHelpers:!0}),this},v.prototype.searchWithComposition=function(){return this._runComposition({onlyWithDerivedHelpers:!0}),this},v.prototype.recommend=function(){return this._recommend(),this},v.prototype.getQuery=function(){var e=this.state;return f._getHitsSearchParams(e)},v.prototype.searchOnce=function(e,t){var r=e?this.state.setQueryParameters(e):this.state,n=f._getQueries(r.index,r),i=this;return(this._currentNbQueries++,this.emit("searchOnce",{state:r}),t)?void this.client.search(n).then(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(null,new p(r,e.results),r)}).catch(function(e){i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),t(e,null,r)}):this.client.search(n).then(function(e){return i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),{content:new p(r,e.results),state:r,_originalResponse:e}},function(e){throw i._currentNbQueries--,0===i._currentNbQueries&&i.emit("searchQueueEmpty"),e})},v.prototype.findAnswers=function(e){console.warn("[algoliasearch-helper] answers is no longer supported");var t=this.state,r=this.derivedHelpers[0];if(!r)return Promise.resolve([]);var n=r.getModifiedState(t),i=o({attributesForPrediction:e.attributesForPrediction,nbHits:e.nbHits},{params:u(f._getHitsSearchParams(n),["attributesToSnippet","hitsPerPage","restrictSearchableAttributes","snippetEllipsisText"])}),a="search for answers was called, but this client does not have a function client.initIndex(index).findAnswers";if("function"!=typeof this.client.initIndex)throw Error(a);var s=this.client.initIndex(n.index);if("function"!=typeof s.findAnswers)throw Error(a);return s.findAnswers(n.query,e.queryLanguages,i)},v.prototype.searchForFacetValues=function(e,t,r,n){var i,s="function"==typeof this.client.searchForFacetValues&&"function"!=typeof this.client.searchForFacets,o="function"==typeof this.client.initIndex;if(!s&&!o&&"function"!=typeof this.client.search)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues or client.initIndex(index).searchForFacetValues");var c=this.state.setQueryParameters(n||{}),u=c.isDisjunctiveFacet(e),l=f.getSearchForFacetQuery(e,t,r,c);this._currentNbQueries++;var h=this;s?i=this.client.searchForFacetValues([{indexName:c.index,params:l}]):o?i=this.client.initIndex(c.index).searchForFacetValues(l):(delete l.facetName,i=this.client.search([{type:"facet",facet:e,indexName:c.index,params:l}]).then(function(e){return e.results[0]}
vendor: 9,412 bytes, line 1
1)),this.emit("searchForFacetValues",{state:c,facet:e,query:t});var d=this.lastResults&&this.lastResults.index===c.index&&this.lastResults.renderingContent&&this.lastResults.renderingContent.facetOrdering&&this.lastResults.renderingContent.facetOrdering.values&&this.lastResults.renderingContent.facetOrdering.values[e]&&this.lastResults.renderingContent.facetOrdering.values[e].hide||[];return i.then(function(t){return h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),(t=Array.isArray(t)?t[0]:t).facetHits=t.facetHits.reduce(function(t,r){return d.indexOf(r.value)>-1||(r.escapedValue=a(r.value),r.isRefined=u?c.isDisjunctiveFacetRefined(e,r.escapedValue):c.isFacetRefined(e,r.escapedValue),t.push(r)),t},[]),t},function(e){throw h._currentNbQueries--,0===h._currentNbQueries&&h.emit("searchQueueEmpty"),e})},v.prototype.searchForCompositionFacetValues=function(e,t,r,n){if("function"!=typeof this.client.searchForFacetValues)throw Error("search for facet values (searchable) was called, but this client does not have a function client.searchForFacetValues");var i,s=this.state.setQueryParameters(n||{}),o=s.isDisjunctiveFacet(e);this._currentNbQueries++;var c=this;return i=this.client.searchForFacetValues({compositionID:s.index,facetName:e,searchForFacetValuesRequest:{params:{query:t,maxFacetHits:r,searchQuery:f._getCompositionHitsSearchParams(s)}}}),this.emit("searchForFacetValues",{state:s,facet:e,query:t}),i.then(function(t){return c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),(t=t.results[0]).facetHits.forEach(function(t){t.escapedValue=a(t.value),t.isRefined=o?s.isDisjunctiveFacetRefined(e,t.escapedValue):s.isFacetRefined(e,t.escapedValue)}),t},function(e){throw c._currentNbQueries--,0===c._currentNbQueries&&c.emit("searchQueueEmpty"),e})},v.prototype.setQuery=function(e){return this._change({state:this.state.resetPage().setQuery(e),isPageReset:!0}),this},v.prototype.clearRefinements=function(e){return this._change({state:this.state.resetPage().clearRefinements(e),isPageReset:!0}),this},v.prototype.clearTags=function(){return this._change({state:this.state.resetPage().clearTags(),isPageReset:!0}),this},v.prototype.addDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addDisjunctiveRefine=function(){return this.addDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.addHierarchicalFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addHierarchicalFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().addNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.addFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().addFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.addRefine=function(){return this.addFacetRefinement.apply(this,arguments)},v.prototype.addFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().addExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.addExclude=function(){return this.addFacetExclusion.apply(this,arguments)},v.prototype.addTag=function(e){return this._change({state:this.state.resetPage().addTagRefinement(e),isPageReset:!0}),this},v.prototype.addFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.addFrequentlyBoughtTogether(e)}),this},v.prototype.addRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.addRelatedProducts(e)}),this},v.prototype.addTrendingItems=function(e){return this._recommendChange({state:this.recommendState.addTrendingItems(e)}),this},v.prototype.addTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.addTrendingFacets(e)}),this},v.prototype.addLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.addLookingSimilar(e)}),this},v.prototype.removeNumericRefinement=function(e,t,r){return this._change({state:this.state.resetPage().removeNumericRefinement(e,t,r),isPageReset:!0}),this},v.prototype.removeDisjunctiveFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeDisjunctiveFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeDisjunctiveRefine=function(){return this.removeDisjunctiveFacetRefinement.apply(this,arguments)},v.prototype.removeHierarchicalFacetRefinement=function(e){return this._change({state:this.state.resetPage().removeHierarchicalFacetRefinement(e),isPageReset:!0}),this},v.prototype.removeFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().removeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.removeRefine=function(){return this.removeFacetRefinement.apply(this,arguments)},v.prototype.removeFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().removeExcludeRefinement(e,t),isPageReset:!0}),this},v.prototype.removeExclude=function(){return this.removeFacetExclusion.apply(this,arguments)},v.prototype.removeTag=function(e){return this._change({state:this.state.resetPage().removeTagRefinement(e),isPageReset:!0}),this},v.prototype.removeFrequentlyBoughtTogether=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeRelatedProducts=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingItems=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeTrendingFacets=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.removeLookingSimilar=function(e){return this._recommendChange({state:this.recommendState.removeParams(e)}),this},v.prototype.toggleFacetExclusion=function(e,t){return this._change({state:this.state.resetPage().toggleExcludeFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleExclude=function(){return this.toggleFacetExclusion.apply(this,arguments)},v.prototype.toggleRefinement=function(e,t){return this.toggleFacetRefinement(e,t)},v.prototype.toggleFacetRefinement=function(e,t){return this._change({state:this.state.resetPage().toggleFacetRefinement(e,t),isPageReset:!0}),this},v.prototype.toggleRefine=function(){return this.toggleFacetRefinement.apply(this,arguments)},v.prototype.toggleTag=function(e){return this._change({state:this.state.resetPage().toggleTagRefinement(e),isPageReset:!0}),this},v.prototype.nextPage=function(){var e=this.state.page||0;return this.setPage(e+1)},v.prototype.previousPage=function(){var e=this.state.page||0;return this.setPage(e-1)},v.prototype.setCurrentPage=y,v.prototype.setPage=y,v.prototype.setIndex=function(e){return this._change({state:this.state.resetPage().setIndex(e),isPageReset:!0}),this},v.prototype.setQueryParameter=function(e,t){return this._change({state:this.state.resetPage().setQueryParameter(e,t),isPageReset:!0}),this},v.prototype.setState=function(e){return this._change({state:d.make(e),isPageReset:!1}),this},v.prototype.overrideStateWithoutTriggeringChangeEvent=function(e){return this.state=new d(e),this},v.prototype.hasRefinements=function(e){return!!c(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))},v.prototype.isExcluded=function(e,t){return this.state.isExcludeRefined(e,t)},v.prototype.isDisjunctiveRefined=function(e,t){return this.state.isDisjunctiveFacetRefined(e,t)},v.prototype.hasTag=function(e){return this.state.isTagRefined(e)},v.prototype.isTagRefined=function(){return this.hasTagRefinements.apply(this,arguments)},v.prototype.getIndex=function(){return this.state.index},v.prototype.getCurrentPage=b,v.prototype.getPage=b,v.prototype.getTags=function(){return this.state.tagRefinements},v.prototype.getRefinements=function(e){var t=[];this.state.isConjunctiveFacet(e)?(this.state.getConjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"conjunctive"})}),this.state.getExcludeRefinements(e).forEach(function(e){t.push({value:e,type:"exclude"})})):this.state.isDisjunctiveFacet(e)&&this.state.getDisjunctiveRefinements(e).forEach(function(e){t.push({value:e,type:"disjunctive"})});var r=this.state.getNumericRefinements(e);return Object.keys(r).forEach(function(e){var n=r[e];t.push({value:n,operator:e,type:"numeric"})}),t},v.prototype.getNumericRefinement=function(e,t){return this.state.getNumericRefinement(e,t)},v.prototype.getHierarchicalFacetBreadcrumb=function(e){return this.state.getHierarchicalFacetBreadcrumb(e)},v.prototype._search=function(e){var t=this.state,r=[],n=[];e.onlyWithDerivedHelpers||(n=f._getQueries(t.index,t),r.push({state:t,queriesCount:n.length,helper:this}),this.emit("search",{state:t,results:this.lastResults}));var i=this.derivedHelpers.map(function(e){var n=e.getModifiedState(t),i=n.index?f._getQueries(n.index,n):[];return r.push({state:n,queriesCount:i.length,helper:e}),e.emit("search",{state:n,results:e.lastResults}),i}),a=Array.prototype.concat.apply(n,i),s=this._queryId++;if(this._currentNbQueries++,!a.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,r,s));
1try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,r,s)).catch(this._dispatchAlgoliaError.bind(this,s))}catch(e){this.emit("error",{error:e})}},v.prototype._runComposition=function(){var e=this.state,t=[],r=this.derivedHelpers.map(function(r){var n=r.getModifiedState(e),i=f._getCompositionQueries(n);return t.push({state:n,helper:r}),r.emit("search",{state:n,results:r.lastResults}),i}),n=Array.prototype.concat.apply([],r),i=this._queryId++;if(this._currentNbQueries++,!n.length)return Promise.resolve({results:[]}).then(this._dispatchAlgoliaResponse.bind(this,t,i));if(n.length>1)throw Error("Only one query is allowed when using a composition.");var a=n[0];try{this.client.search(a).then(this._dispatchAlgoliaResponse.bind(this,t,i)).catch(this._dispatchAlgoliaError.bind(this,i))}catch(e){this.emit("error",{error:e})}},v.prototype._recommend=function(){var e=this.state,t=this.recommendState,r=this.getIndex(),n=[{state:t,index:r,helper:this}],i=t.params.map(function(e){return e.$$id});this.emit("fetch",{recommend:{state:t,results:this.lastRecommendResults}});var a=this._recommendCache,s=this.derivedHelpers.map(function(t){var r=t.getModifiedState(e).index;if(!r)return[];var s=t.getModifiedRecommendState(new l);return n.push({state:s,index:r,helper:t}),i=Array.prototype.concat.apply(i,s.params.map(function(e){return e.$$id})),t.emit("fetch",{recommend:{state:s,results:t.lastRecommendResults}}),s._buildQueries(r,a)}),o=Array.prototype.concat.apply(this.recommendState._buildQueries(r,a),s);if(0!==o.length){if(o.length>0&&void 0===this.client.getRecommendations)return void console.warn("Please update algoliasearch/lite to the latest version in order to use recommend widgets.");var c=this._recommendQueryId++;this._currentNbRecommendQueries++;try{this.client.getRecommendations(o).then(this._dispatchRecommendResponse.bind(this,c,n,i)).catch(this._dispatchRecommendError.bind(this,c))}catch(e){this.emit("error",{error:e})}}},v.prototype._dispatchAlgoliaResponse=function(e,t,r){var n=this;if(!(t<this._lastQueryIdReceived)){this._currentNbQueries-=t-this._lastQueryIdReceived,this._lastQueryIdReceived=t,0===this._currentNbQueries&&this.emit("searchQueueEmpty");var i=r.results.slice(),a=Object.keys(r).reduce(function(e,t){return"results"!==t&&(e[t]=r[t]),e},{});Object.keys(a).length<=0&&(a=void 0),e.forEach(function(e){var t=e.state,r=e.queriesCount,s=e.helper,o=void 0!==r?i.splice(0,r):i;if(!t.index)return void s.emit("result",{results:null,state:t});if(o.length>0&&o[0].feedID){var c=o.map(function(e){var r=new p(t,[e],n._searchResultsOptions);return void 0!==a&&(r._rawContent=a),r});s.lastResults=new p(t,[o[0]],n._searchResultsOptions),s.lastResults.feeds=c,void 0!==a&&(s.lastResults._rawContent=a)}else s.lastResults=new p(t,o,n._searchResultsOptions),void 0!==a&&(s.lastResults._rawContent=a);s.emit("result",{results:s.lastResults,state:t})})}},v.prototype._dispatchRecommendResponse=function(e,t,r,n){if(!(e<this._lastRecommendQueryIdReceived)){this._currentNbRecommendQueries-=e-this._lastRecommendQueryIdReceived,this._lastRecommendQueryIdReceived=e,0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty");var i=this._recommendCache,a={};r.filter(function(e){return void 0===i[e]}).forEach(function(e,t){a[e]||(a[e]=[]),a[e].push(t)}),Object.keys(a).forEach(function(e){var t=a[e],s=n.results[t[0]];if(1===t.length){i[e]=s;return}i[e]=Object.assign({},s,{hits:m(r,t.map(function(e){return n.results[e].hits}))})});var s={};r.forEach(function(e){s[e]=i[e]}),t.forEach(function(e){var t=e.state,r=e.helper;e.index?(r.lastRecommendResults=new h(t,s),r.emit("recommend:result",{recommend:{results:r.lastRecommendResults,state:t}})):r.emit("recommend:result",{results:null,state:t})})}},v.prototype._dispatchAlgoliaError=function(e,t){e<this._lastQueryIdReceived||(this._currentNbQueries-=e-this._lastQueryIdReceived,this._lastQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbQueries&&this.emit("searchQueueEmpty"))},v.prototype._dispatchRecommendError=function(e,t){e<this._lastRecommendQueryIdReceived||(this._currentNbRecommendQueries-=e-this._lastRecommendQueryId
1Received,this._lastRecommendQueryIdReceived=e,this.emit("error",{error:t}),0===this._currentNbRecommendQueries&&this.emit("recommendQueueEmpty"))},v.prototype.containsRefinement=function(e,t,r,n){return e||0!==t.length||0!==r.length||0!==n.length},v.prototype._hasDisjunctiveRefinements=function(e){return this.state.disjunctiveRefinements[e]&&this.state.disjunctiveRefinements[e].length>0},v.prototype._change=function(e){var t=e.state,r=e.isPageReset;t!==this.state&&(this.state=t,this.emit("change",{state:this.state,results:this.lastResults,isPageReset:r}))},v.prototype._recommendChange=function(e){var t=e.state;t!==this.recommendState&&(this.recommendState=t,this.emit("recommend:change",{search:{results:this.lastResults,state:this.state},recommend:{results:this.lastRecommendResults,state:this.recommendState}}))},v.prototype.clearCache=function(){return this.client.clearCache&&this.client.clearCache(),this},v.prototype.setClient=function(e){return this.client===e||("function"==typeof e.addAlgoliaAgent&&e.addAlgoliaAgent("JS Helper ("+g+")"),this.client=e),this},v.prototype.getClient=function(){return this.client},v.prototype.derive=function(e,t){var r=new i(this,e,t);return this.derivedHelpers.push(r),r},v.prototype.detachDerivedHelper=function(e){var t=this.derivedHelpers.indexOf(e);if(-1===t)throw Error("Derived helper already detached");this.derivedHelpers.splice(t,1)},v.prototype.hasPendingRequests=function(){return this._currentNbQueries>0},e.exports=v},97258:e=>{"use strict";e.exports=Error},97852:(e,t,r)=>{"use strict";var n=r(90042),i=r(42043),a=r(86339),s=r(64246),o=n("%Map%",!0),c=i("Map.prototype.get",!0),u=i("Map.prototype.set",!0),l=i("Map.prototype.has",!0),h=i("Map.prototype.delete",!0),f=i("Map.prototype.size",!0);e.exports=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new s("Side channel does not contain "+a(e))},delete:function(t){if(e){var r=h(e,t);return 0===f(e)&&(e=void 0),r}return!1},get:function(t){if(e)return c(e,t)},has:function(t){return!!e&&l(e,t)},set:function(t,r){e||(e=new o),u(e,t,r)}};return t}},98915:(e,t,r)=>{"use strict";var n=r(17994),i=r(73681),a=r(12367);e.exports=r(5588)||n.call(a,i)},99756:(e,t,r)=>{"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,{_:()=>i})}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.